@univerjs-pro/sheets-shape 1.0.0-alpha.3 → 1.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/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/adapters/sheet-shape-host.adapter.d.ts +21 -0
- package/lib/types/commands/command/add-shape.command.d.ts +7 -0
- package/lib/types/commands/command/set-shape-drawing-data.command.d.ts +7 -0
- package/lib/types/controllers/sheets-shape.controller.d.ts +4 -1
- package/lib/types/facade/f-shape.d.ts +12 -690
- package/lib/types/facade/f-worksheet.d.ts +44 -209
- package/lib/types/facade/index.d.ts +2 -12
- package/lib/types/plugin.d.ts +2 -3
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -8
- package/lib/types/facade/f-connector-shape.d.ts +0 -189
- package/lib/types/facade/f-enum.d.ts +0 -203
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x24315c=_0x401b;(function(_0xc03872,_0x98d5d4){const _0xab5daf=_0x401b,_0xa84df9=_0xc03872();while(!![]){try{const _0x54e72f=-parseInt(_0xab5daf(0x15e))/0x1+parseInt(_0xab5daf(0x102))/0x2*(-parseInt(_0xab5daf(0x178))/0x3)+parseInt(_0xab5daf(0x167))/0x4+-parseInt(_0xab5daf(0x166))/0x5*(-parseInt(_0xab5daf(0x10e))/0x6)+-parseInt(_0xab5daf(0x137))/0x7+-parseInt(_0xab5daf(0x12c))/0x8+-parseInt(_0xab5daf(0x12b))/0x9*(-parseInt(_0xab5daf(0x180))/0xa);if(_0x54e72f===_0x98d5d4)break;else _0xa84df9['push'](_0xa84df9['shift']());}catch(_0x41edee){_0xa84df9['push'](_0xa84df9['shift']());}}}(_0xb7bc,0x3fb0d));import{ShapeModel as _0x4935d1,computeConnectorRouteLayout as _0x11cba5,createUniqueShapeName as _0x3c2717,getBasicShapeRotateBound as _0xee328b,isConnectorShape as _0x45bbc3,routeConnectorLineShape as _0x696e80}from'@univerjs-pro/engine-shape';import{CommandType as _0x395a1d,DependentOn as _0x173671,Disposable as _0x205493,DrawingTypeEnum as _0xcd5ef0,ICommandService as _0x12d889,IConfigService as _0x5ad0ed,IResourceManagerService as _0x5d31ed,IUndoRedoService as _0x32f094,IUniverInstanceService as _0x14f0b3,Inject as _0x396a8a,Injector as _0x1e351a,Plugin as _0x307e7b,UniverInstanceType as _0xf89464,generateRandomId as _0x26e08e,merge as _0x5db2e6,sequenceExecute as _0x2d1a4f,touchDependencies as _0x46da78}from'@univerjs/core';function _0x401b(_0x9a3a2f,_0x5b27b6){_0x9a3a2f=_0x9a3a2f-0xe4;const _0xb7bc48=_0xb7bc();let _0x401b30=_0xb7bc48[_0x9a3a2f];return _0x401b30;}import{SheetInterceptorService as _0x3d6fd9,SheetSkeletonService as _0x3dac38,getSheetCommandTarget as _0x37d1c8}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x2ec674,DrawingApplyType as _0x366655,ISheetDrawingService as _0x189a5a,InsertSheetDrawingCommand as _0x12582e,RemoveSheetDrawingCommand as _0x30f0fe,SetDrawingApplyMutation as _0xb6a54f,SetSheetDrawingCommand as _0x1ecf99,transformToAxisAlignPosition as _0x58930a,transformToDrawingPosition as _0x4f2943}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x1837ff}from'@univerjs-pro/license';import{IDrawingManagerService as _0x3f7bd4}from'@univerjs/drawing';const L=0xc8,R=0xc8;function z(_0x1ce3e0){'@babel/helpers - typeof';const _0x43454c=_0x401b;return z=typeof Symbol==_0x43454c(0xe6)&&typeof Symbol['iterator']==_0x43454c(0x114)?function(_0x3c66c3){return typeof _0x3c66c3;}:function(_0x1012d8){const _0x5b8c20=_0x43454c;return _0x1012d8&&typeof Symbol==_0x5b8c20(0xe6)&&_0x1012d8[_0x5b8c20(0x17f)]===Symbol&&_0x1012d8!==Symbol[_0x5b8c20(0x12e)]?'symbol':typeof _0x1012d8;},z(_0x1ce3e0);}function B(_0x15d54d,_0x45bb57){const _0x45269c=_0x401b;if(z(_0x15d54d)!='object'||!_0x15d54d)return _0x15d54d;var _0x29057e=_0x15d54d[Symbol[_0x45269c(0x17e)]];if(_0x29057e!==void 0x0){var _0x273260=_0x29057e[_0x45269c(0x158)](_0x15d54d,_0x45bb57||_0x45269c(0x135));if(z(_0x273260)!=_0x45269c(0x125))return _0x273260;throw TypeError(_0x45269c(0x103));}return(_0x45bb57===_0x45269c(0x111)?String:Number)(_0x15d54d);}function V(_0x146be5){const _0x1e12dc=_0x401b;var _0x2a3d69=B(_0x146be5,_0x1e12dc(0x111));return z(_0x2a3d69)==_0x1e12dc(0x114)?_0x2a3d69:_0x2a3d69+'';}function H(_0x355373,_0x5fdeb4,_0x4e5afa){return(_0x5fdeb4=V(_0x5fdeb4))in _0x355373?Object['defineProperty'](_0x355373,_0x5fdeb4,{'value':_0x4e5afa,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x355373[_0x5fdeb4]=_0x4e5afa,_0x355373;}var U=class extends _0x205493{constructor(){const _0x5a69c7=_0x401b;super(),H(this,_0x5a69c7(0x174),new Map()),H(this,_0x5a69c7(0x14b),new Set()),H(this,_0x5a69c7(0x17c),new Set());}[_0x24315c(0x14e)](_0x52c245,_0x4eced4,_0x31beae,_0x3a89da){const _0x114c2b=_0x24315c;let _0xfd11ab=new _0x4935d1(_0x52c245,_0x4eced4,_0x31beae,_0x3a89da);return this['_shapes'][_0x114c2b(0x12a)](_0x4eced4,_0xfd11ab),_0x45bbc3(_0x52c245)&&this['_linesIds'][_0x114c2b(0x145)](_0x4eced4),_0xfd11ab;}[_0x24315c(0x163)](_0xb0dca4){const _0x4862d6=_0x24315c;let _0x1311cc=[];for(let _0x15bb76 of this['_linesIds']){let _0x22f42d=this[_0x4862d6(0x174)]['get'](_0x15bb76);if(_0x22f42d){let _0x5f31e9=_0x22f42d[_0x4862d6(0x179)]();if(_0x5f31e9){var _0x5619bf,_0x4ffbdf;((_0x5619bf=_0x5f31e9['from'])==null?void 0x0:_0x5619bf['shapeId'])===_0xb0dca4&&_0x1311cc[_0x4862d6(0x12f)]({..._0x5f31e9['from'],'lineShapeId':_0x15bb76,'isFrom':!0x0}),((_0x4ffbdf=_0x5f31e9['to'])==null?void 0x0:_0x4ffbdf['shapeId'])===_0xb0dca4&&_0x1311cc[_0x4862d6(0x12f)]({..._0x5f31e9['to'],'lineShapeId':_0x15bb76,'isFrom':!0x1});}}}return _0x1311cc;}[_0x24315c(0xff)](_0x3f5741){const _0x5c452c=_0x24315c;let _0x1a62ea=this[_0x5c452c(0x174)][_0x5c452c(0x123)](_0x3f5741);if(_0x1a62ea)return _0x1a62ea['getShapeRelation']();}['getShapeType'](_0xc7728a){const _0x47def0=_0x24315c;let _0xb859c8=this['_shapes'][_0x47def0(0x123)](_0xc7728a);if(_0xb859c8)return _0xb859c8['getShapeType']();}[_0x24315c(0xf1)](_0x1a9ee7){const _0x18cbc8=_0x24315c;return this[_0x18cbc8(0x174)]['has'](_0x1a9ee7);}[_0x24315c(0x147)](){const _0x28171e=_0x24315c;return Array[_0x28171e(0x161)](this['_shapes'][_0x28171e(0x15d)]())['map'](_0x33511d=>_0x33511d['getName']()||_0x33511d[_0x28171e(0xe8)]());}[_0x24315c(0x10d)](_0x3ae981){const _0x1b11ff=_0x24315c;let _0x3516e2=this['_shapes'][_0x1b11ff(0x123)](_0x3ae981);_0x3516e2&&(_0x45bbc3(_0x3516e2[_0x1b11ff(0x126)]())&&this[_0x1b11ff(0x14b)]['delete'](_0x3ae981),this[_0x1b11ff(0x174)][_0x1b11ff(0x175)](_0x3ae981));}[_0x24315c(0x13f)](){const _0x2ada0c=_0x24315c;let _0x274a93=[];return this[_0x2ada0c(0x174)][_0x2ada0c(0x107)](_0x22032b=>{const _0x5b56c5=_0x2ada0c;_0x274a93[_0x5b56c5(0x12f)](_0x22032b['toJSON']());}),_0x274a93;}[_0x24315c(0x11c)](_0x44ace5){const _0x5bae49=_0x24315c;for(let _0x24d060 of _0x44ace5){let {id:_0x32ddb6,shapeType:_0x25f2e1,name:_0x3f822b}=_0x24d060,_0x25e55a=this[_0x5bae49(0x14e)](_0x25f2e1,_0x32ddb6,_0x24d060[_0x5bae49(0x108)],_0x3f822b);_0x25e55a&&_0x25e55a[_0x5bae49(0x140)]()&&this[_0x5bae49(0x14b)][_0x5bae49(0x145)](_0x32ddb6);}}[_0x24315c(0x152)](){const _0x440289=_0x24315c;this['_disposed']||(this[_0x440289(0x174)][_0x440289(0x107)](_0x4c95ee=>{const _0xebb0fb=_0x440289;_0x4c95ee[_0xebb0fb(0x152)]();}),this[_0x440289(0x174)][_0x440289(0x106)](),this['_linesIds'][_0x440289(0x106)](),this['_groupIds'][_0x440289(0x106)](),super[_0x440289(0x152)]());}};function W(_0x1bb470,_0x5c4068){return function(_0x2175e8,_0x481caf){_0x5c4068(_0x2175e8,_0x481caf,_0x1bb470);};}function G(_0x3ad02e,_0x13b348,_0x3b114c,_0x96ada6){const _0x8ecea5=_0x24315c;var _0xa58497=arguments[_0x8ecea5(0x142)],_0x257d42=_0xa58497<0x3?_0x13b348:_0x96ada6===null?_0x96ada6=Object[_0x8ecea5(0x17b)](_0x13b348,_0x3b114c):_0x96ada6,_0x19050b;if(typeof Reflect==_0x8ecea5(0x125)&&typeof Reflect[_0x8ecea5(0x101)]==_0x8ecea5(0xe6))_0x257d42=Reflect[_0x8ecea5(0x101)](_0x3ad02e,_0x13b348,_0x3b114c,_0x96ada6);else{for(var _0x2368a9=_0x3ad02e[_0x8ecea5(0x142)]-0x1;_0x2368a9>=0x0;_0x2368a9--)(_0x19050b=_0x3ad02e[_0x2368a9])&&(_0x257d42=(_0xa58497<0x3?_0x19050b(_0x257d42):_0xa58497>0x3?_0x19050b(_0x13b348,_0x3b114c,_0x257d42):_0x19050b(_0x13b348,_0x3b114c))||_0x257d42);}return _0xa58497>0x3&&_0x257d42&&Object[_0x8ecea5(0xe9)](_0x13b348,_0x3b114c,_0x257d42),_0x257d42;}let K=class extends _0x205493{constructor(_0xc58489){const _0xebb66=_0x24315c;super(),this[_0xebb66(0x10f)]=_0xc58489,H(this,'_shapeModelManagerMap',new Map()),this['_initSnapshot']();}['_ensureShapeModelManager'](_0x250ecf,_0x17ed59){const _0x4124ba=_0x24315c;let _0xb681f7=this[_0x4124ba(0xfd)][_0x4124ba(0x123)](_0x250ecf);_0xb681f7||(_0xb681f7=new Map(),this[_0x4124ba(0xfd)][_0x4124ba(0x12a)](_0x250ecf,_0xb681f7));let _0x4358af=_0xb681f7[_0x4124ba(0x123)](_0x17ed59);return _0x4358af||(_0x4358af=new U(),_0xb681f7['set'](_0x17ed59,_0x4358af)),_0x4358af;}[_0x24315c(0x171)](_0xb9fcc7,_0x2b6dab,_0x4c6b2b,_0x3549ad,_0x3a4737,_0x338688){const _0x72adea=_0x24315c;this[_0x72adea(0x17d)](_0xb9fcc7,_0x2b6dab)[_0x72adea(0x14e)](_0x4c6b2b,_0x3549ad,_0x3a4737,_0x338688);}[_0x24315c(0x10d)](_0x51e0bd,_0x270521,_0x1e78ee){const _0x12a97f=_0x24315c;this[_0x12a97f(0x17d)](_0x51e0bd,_0x270521)['removeShape'](_0x1e78ee);}[_0x24315c(0x169)](_0x2a610d,_0x285378,_0x247e92){const _0x1e5eb8=_0x24315c;return this['_ensureShapeModelManager'](_0x2a610d,_0x285378)[_0x1e5eb8(0x126)](_0x247e92);}[_0x24315c(0x126)](_0x52a040,_0x397a5b,_0x41445a){const _0x2f6e1e=_0x24315c;return this[_0x2f6e1e(0x17d)](_0x52a040,_0x397a5b)['getShapeType'](_0x41445a);}['hasShape'](_0x5e9b94,_0x4259bb,_0x4e8ad4){const _0xe1f048=_0x24315c;return this[_0xe1f048(0x17d)](_0x5e9b94,_0x4259bb)[_0xe1f048(0xf1)](_0x4e8ad4);}[_0x24315c(0x14d)](_0x468f70,_0x5e6eb3,_0x2e9acb){const _0x3a148d=_0x24315c;return this['_ensureShapeModelManager'](_0x468f70,_0x5e6eb3)[_0x3a148d(0x126)](_0x2e9acb);}[_0x24315c(0x154)](_0x1735e0,_0x2e8046,_0x4f9217){const _0x4b3af6=_0x24315c;let _0x14707f=this['_ensureShapeModelManager'](_0x1735e0,_0x2e8046);if(!_0x14707f[_0x4b3af6(0x126)](_0x4f9217))return;let _0x3f4ba2=_0x14707f[_0x4b3af6(0x174)]['get'](_0x4f9217);if(_0x3f4ba2)return _0x3f4ba2[_0x4b3af6(0x15a)]();}[_0x24315c(0x147)](_0xb594c0,_0x91dabb){const _0x4d26b9=_0x24315c;return this['_ensureShapeModelManager'](_0xb594c0,_0x91dabb)[_0x4d26b9(0x147)]();}[_0x24315c(0xfe)](_0x5a05a6,_0x158693,_0x40f94d){const _0x309eaf=_0x24315c;return this[_0x309eaf(0x17d)](_0x5a05a6,_0x158693)[_0x309eaf(0x174)]['get'](_0x40f94d);}[_0x24315c(0x163)](_0x3764aa,_0x2db5a0,_0x4ca799){const _0x528c6c=_0x24315c;return this[_0x528c6c(0x17d)](_0x3764aa,_0x2db5a0)[_0x528c6c(0x163)](_0x4ca799);}['getLineShapeRelation'](_0x37a5ef,_0x34c7eb,_0xfcbcfa){const _0x550e72=_0x24315c;let _0x196b57=this[_0x550e72(0x17d)](_0x37a5ef,_0x34c7eb)[_0x550e72(0x174)][_0x550e72(0x123)](_0xfcbcfa);if(_0x196b57)return _0x196b57['getShapeRelation']();}[_0x24315c(0xee)](){}[_0x24315c(0x11b)](_0x33b596){const _0x3d816c=_0x24315c;let _0x5b6eb0={},_0x479351=this['_shapeModelManagerMap']['get'](_0x33b596);return _0x479351&&_0x479351[_0x3d816c(0x107)]((_0x439456,_0x4ced2b)=>{const _0x5549e2=_0x3d816c;let _0x41e6fc=_0x439456['toJSON']();_0x41e6fc[_0x5549e2(0x142)]>0x0&&(_0x5b6eb0[_0x4ced2b]=_0x41e6fc);}),JSON[_0x3d816c(0x110)](_0x5b6eb0);}['_deserializeShapeForUnit'](_0x10f250,_0x5926ac){Object['keys'](_0x5926ac)['forEach'](_0x4408c4=>{const _0x731fa0=_0x401b;this[_0x731fa0(0x17d)](_0x10f250,_0x4408c4)[_0x731fa0(0x11c)](_0x5926ac[_0x4408c4]);});}[_0x24315c(0x13f)](){const _0xbd12c8=_0x24315c;let _0x1d1843={};return this[_0xbd12c8(0xfd)][_0xbd12c8(0x107)]((_0x45802e,_0x1beda6)=>{_0x1d1843[_0x1beda6]={},_0x45802e['forEach']((_0x2f95f7,_0x3ab917)=>{const _0x522db1=_0x401b;_0x1d1843[_0x1beda6][_0x3ab917]=_0x2f95f7[_0x522db1(0x13f)]();});}),_0x1d1843;}[_0x24315c(0x11c)](_0x59b049){const _0x3d5cf1=_0x24315c;Object[_0x3d5cf1(0x130)](_0x59b049)[_0x3d5cf1(0x107)](_0x414404=>{const _0x1bec2a=_0x3d5cf1;let _0x1ced3a=_0x59b049[_0x414404];Object[_0x1bec2a(0x130)](_0x1ced3a)[_0x1bec2a(0x107)](_0x1388ce=>{const _0xa04aca=_0x1bec2a;this[_0xa04aca(0x17d)](_0x414404,_0x1388ce)['fromJSON'](_0x1ced3a[_0x1388ce]);});});}['_initSnapshot'](){const _0x52b2d7=_0x24315c;this[_0x52b2d7(0x10f)][_0x52b2d7(0x10b)]({'pluginName':_0x52b2d7(0x157),'businesses':[_0xf89464[_0x52b2d7(0xe4)]],'toJson':_0x2804af=>this['_serializeShapeForUnit'](_0x2804af),'parseJson':_0x5d121c=>JSON['parse'](_0x5d121c),'onLoad':(_0x5c8343,_0x16ea18)=>{const _0x3cd385=_0x52b2d7;this[_0x3cd385(0x16b)](_0x5c8343,_0x16ea18);},'onUnLoad':_0x5c4582=>{const _0x1cd860=_0x52b2d7;let _0x5800f4=this[_0x1cd860(0xfd)]['get'](_0x5c4582);_0x5800f4&&(_0x5800f4[_0x1cd860(0x107)](_0x146e1a=>{const _0x5e808a=_0x1cd860;_0x146e1a[_0x5e808a(0x152)]();}),this[_0x1cd860(0xfd)][_0x1cd860(0x175)](_0x5c4582));}});}['dispose'](){const _0x1b4674=_0x24315c;this['_shapeModelManagerMap'][_0x1b4674(0x107)](_0x3d60ec=>{const _0x226027=_0x1b4674;_0x3d60ec[_0x226027(0x107)](_0x5499a6=>{const _0x1b7315=_0x226027;_0x5499a6[_0x1b7315(0x152)]();});});}};K=G([W(0x0,_0x5d31ed)],K);const q={'id':_0x24315c(0x141),'type':_0x395a1d[_0x24315c(0x12d)],'handler':(_0x64355f,_0x312452)=>{const _0x304296=_0x24315c;let {unitId:_0x2cd38d,subUnitId:_0x3da279,shapeType:_0x120e8d,shapeId:_0x3b25a4,shapeName:_0x5d5e59,shapeData:_0x39fa47}=_0x312452;return _0x64355f[_0x304296(0x123)](K)[_0x304296(0x171)](_0x2cd38d,_0x3da279,_0x120e8d,_0x3b25a4,_0x39fa47,_0x5d5e59),!0x0;}},J={'id':_0x24315c(0xf0),'type':_0x395a1d[_0x24315c(0x12d)],'handler':(_0x12c03d,_0x27b2d8)=>{const _0x1f9479=_0x24315c;let {unitId:_0x3d57eb,subUnitId:_0x3baa2e,shapeId:_0x4a661d}=_0x27b2d8;return _0x12c03d[_0x1f9479(0x123)](K)['removeShape'](_0x3d57eb,_0x3baa2e,_0x4a661d),!0x0;}},Y={'type':_0x395a1d[_0x24315c(0x129)],'id':_0x24315c(0x13b),'handler':(_0x1e4a2f,_0x117963)=>{const _0x92334a=_0x24315c;var _0x2c1b4b,_0x26a27d,_0x43a825;let _0x277143=_0x37d1c8(_0x1e4a2f[_0x92334a(0x123)](_0x14f0b3),_0x117963);if(!_0x277143)return!0x1;let _0x972c38=_0x1e4a2f[_0x92334a(0x123)](_0x3dac38),{unitId:_0x39311c,subUnitId:_0x5ef38f}=_0x277143,_0x5260b3=_0x972c38[_0x92334a(0x133)](_0x39311c,_0x5ef38f);if(!_0x5260b3)return!0x1;let _0x275562=_0x1e4a2f[_0x92334a(0x123)](_0x12d889),_0x26250a=_0x1e4a2f['get'](_0x32f094),_0x1303cd=_0x1e4a2f[_0x92334a(0x123)](_0x3d6fd9),_0x4e872f=_0x1e4a2f['get'](_0x189a5a),_0x52897e=_0x1e4a2f[_0x92334a(0x123)](K),{shapeType:_0xa1c1a7,shapeData:_0x21acfc}=_0x117963,_0x211e57=_0x117963[_0x92334a(0xed)]||_0x26e08e(),_0x565f51={'unitId':_0x39311c,'subUnitId':_0x5ef38f,'shapeId':_0x211e57,'shapeName':(_0x2c1b4b=_0x117963['shapeName'])==null?_0x3c2717(_0xa1c1a7,_0x52897e[_0x92334a(0x147)](_0x39311c,_0x5ef38f)):_0x2c1b4b,'shapeType':_0xa1c1a7,'shapeData':_0x21acfc},_0x507ce8=_0x117963[_0x92334a(0xf3)]||0xc8,_0x426032=_0x117963[_0x92334a(0x109)]||0xc8,_0x3783a4=0x0,_0x187198=0x0,_0xa421d={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x376cfb={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x117963[_0x92334a(0x172)]){let {x:_0x6dfedd,y:_0x5aa0c2}=_0x117963['position'];_0x3783a4=_0x6dfedd,_0x187198=_0x5aa0c2,_0xa421d=_0x5260b3[_0x92334a(0x182)](_0x6dfedd,_0x5aa0c2),_0x376cfb=_0x5260b3[_0x92334a(0x182)](_0x6dfedd+_0x507ce8,_0x5aa0c2+_0x426032);}else{if(_0x117963[_0x92334a(0x128)]){let {startRow:_0x2adc5b,startColumn:_0x592ef0}=_0x117963[_0x92334a(0x128)];_0xa421d={'row':_0x2adc5b,'rowOffset':0xa,'column':_0x592ef0,'columnOffset':0xa};let _0x1c28c2=_0x5260b3['getCellWithCoordByIndex'](_0x2adc5b,_0x592ef0);_0x3783a4=_0x1c28c2['startX']+0xa,_0x187198=_0x1c28c2['startY']+0xa,_0x376cfb=_0x5260b3[_0x92334a(0x182)](_0x3783a4+_0x507ce8,_0x187198+_0x426032);}}let _0x2fbd6f={'from':_0xa421d,'to':_0x376cfb},_0x288e61={'unitId':_0x39311c,'subUnitId':_0x5ef38f,'drawingId':_0x211e57,'drawingType':_0xcd5ef0[_0x92334a(0xe7)],'sheetTransform':_0x2fbd6f,'transform':{'left':_0x3783a4,'top':_0x187198,'width':_0x507ce8,'height':_0x426032},'data':{'shapeType':_0xa1c1a7,'shapeData':_0x21acfc},'axisAlignSheetTransform':_0x2fbd6f,'allowTransform':!0x0};_0x45bbc3(_0xa1c1a7)&&(_0x288e61[_0x92334a(0x116)][_0x92334a(0x15c)]=!0x1,_0x288e61[_0x92334a(0x116)]['rotateEnabled']=!0x1,_0x288e61[_0x92334a(0x116)][_0x92334a(0x10c)]=!0x1,_0x288e61[_0x92334a(0x116)][_0x92334a(0xf4)]=!0x1,_0x288e61[_0x92334a(0x181)][_0x92334a(0x146)]=!0x1,_0x288e61[_0x92334a(0x181)][_0x92334a(0x10c)]=!0x1,_0x288e61[_0x92334a(0x181)][_0x92334a(0xf4)]=!0x1);let {undo:_0x1fd36b,redo:_0x554cbe,objects:_0x37c855}=_0x4e872f[_0x92334a(0x113)]([_0x288e61]),_0x18be28=_0x1303cd[_0x92334a(0x117)]({'id':_0x12582e['id'],'params':{'unitId':_0x39311c,'drawings':[_0x288e61]}}),_0x136cdf=[...(_0x26a27d=_0x18be28[_0x92334a(0x153)])==null?[]:_0x26a27d,{'id':_0xb6a54f['id'],'params':{'unitId':_0x39311c,'subUnitId':_0x5ef38f,'op':_0x554cbe,'objects':_0x37c855,'type':_0x366655[_0x92334a(0x16e)]}},{'id':_0x2ec674['id'],'params':[_0x39311c]},..._0x18be28['redos'],{'id':q['id'],'params':_0x565f51}],_0x21f043=[{'id':J['id'],'params':{'unitId':_0x39311c,'subUnitId':_0x5ef38f,'shapeId':_0x211e57}},...(_0x43a825=_0x18be28[_0x92334a(0x148)])==null?[]:_0x43a825,{'id':_0xb6a54f['id'],'params':{'unitId':_0x39311c,'subUnitId':_0x5ef38f,'op':_0x1fd36b,'objects':_0x37c855,'type':_0x366655['REMOVE']}},{'id':_0x2ec674['id'],'params':[_0x39311c]},..._0x18be28['undos']];return _0x2d1a4f(_0x136cdf,_0x275562)[_0x92334a(0x132)]?(_0x26250a['pushUndoRedo']({'unitID':_0x39311c,'undoMutations':_0x21f043,'redoMutations':_0x136cdf}),!0x0):!0x1;}},X={'id':_0x24315c(0x15f),'type':_0x395a1d[_0x24315c(0x12d)],'handler':(_0x3884cc,_0x1eb60d)=>{const _0x2c325f=_0x24315c;let {unitId:_0x23fc26,subUnitId:_0x13f2a2,shapeType:_0x41acd7,shapeId:_0x1fd74b,shapeData:_0x60231a}=_0x1eb60d,_0x1e1c0a=_0x3884cc[_0x2c325f(0x123)](K)['getShapeModel'](_0x23fc26,_0x13f2a2,_0x1fd74b);return _0x1e1c0a&&(_0x41acd7!==void 0x0&&_0x1e1c0a[_0x2c325f(0xee)](_0x41acd7),_0x60231a&&(_0x1e1c0a==null||_0x1e1c0a[_0x2c325f(0x13a)](_0x60231a,!0x0))),!0x0;}},ee={'type':_0x395a1d[_0x24315c(0x129)],'id':_0x24315c(0x162),'handler':(_0x50517c,_0x4317a0)=>{const _0x49eab5=_0x24315c;var _0x57a3f9,_0x36ab24;let _0x32eb3c=_0x37d1c8(_0x50517c[_0x49eab5(0x123)](_0x14f0b3),_0x4317a0);if(!_0x32eb3c)return!0x1;let _0x462ead=_0x50517c[_0x49eab5(0x123)](_0x3dac38),{unitId:_0x14b07b,subUnitId:_0x4fe54a}=_0x32eb3c,_0x29aaf2=_0x462ead[_0x49eab5(0x133)](_0x14b07b,_0x4fe54a);if(!_0x29aaf2)return!0x1;let _0x5e365f=_0x50517c['get'](K),{shapeId:_0x25369d,shapeType:_0x17488f,shapeData:_0x711b51,position:_0x6361ed,width:_0x198717,height:_0x3fddfc}=_0x4317a0,_0x538a86=_0x5e365f[_0x49eab5(0xfe)](_0x14b07b,_0x4fe54a,_0x25369d);if(!_0x538a86)return!0x1;let _0x3897cc=_0x50517c[_0x49eab5(0x123)](_0x12d889),_0x15d4ce=_0x50517c[_0x49eab5(0x123)](_0x32f094),_0x3232d1=_0x50517c['get'](_0x3d6fd9),_0x28a5df=_0x50517c[_0x49eab5(0x123)](_0x189a5a),_0xf0c65f={'unitId':_0x14b07b,'subUnitId':_0x4fe54a,'shapeId':_0x25369d,'shapeType':_0x17488f,'shapeData':_0x711b51},_0x4a0080=_0x538a86['getShapeType'](),_0x34b559=_0x538a86[_0x49eab5(0x15a)](),{x:_0x1a81b2,y:_0x1ba525}=_0x6361ed,_0x2f92c4={'from':_0x29aaf2[_0x49eab5(0x182)](_0x1a81b2,_0x1ba525),'to':_0x29aaf2[_0x49eab5(0x182)](_0x1a81b2+_0x198717,_0x1ba525+_0x3fddfc)},_0x210b52={'unitId':_0x14b07b,'subUnitId':_0x4fe54a,'drawingId':_0x25369d,'drawingType':_0xcd5ef0['DRAWING_SHAPE'],'sheetTransform':_0x2f92c4,'transform':{'left':_0x1a81b2,'top':_0x1ba525,'width':_0x198717,'height':_0x3fddfc},'data':{'shapeType':_0x17488f,'shapeData':_0x711b51},'axisAlignSheetTransform':_0x2f92c4,'allowTransform':!0x0};_0x45bbc3(_0x17488f)&&(_0x210b52[_0x49eab5(0x116)][_0x49eab5(0x15c)]=!0x1,_0x210b52[_0x49eab5(0x116)][_0x49eab5(0x146)]=!0x1,_0x210b52['data'][_0x49eab5(0x10c)]=!0x1,_0x210b52[_0x49eab5(0x116)][_0x49eab5(0xf4)]=!0x1,_0x210b52[_0x49eab5(0x181)][_0x49eab5(0x146)]=!0x1,_0x210b52[_0x49eab5(0x181)]['resizeEnabled']=!0x1,_0x210b52[_0x49eab5(0x181)]['borderEnabled']=!0x1);let {undo:_0x5356e6,redo:_0x57012b,objects:_0x1cfd58}=_0x28a5df[_0x49eab5(0x143)]([_0x210b52]),_0x150554=_0x3232d1['onCommandExecute']({'id':_0x1ecf99['id'],'params':{'unitId':_0x14b07b,'drawings':[_0x210b52]}}),_0x4eeefa=[...(_0x57a3f9=_0x150554[_0x49eab5(0x153)])==null?[]:_0x57a3f9,{'id':_0xb6a54f['id'],'params':{'unitId':_0x14b07b,'subUnitId':_0x4fe54a,'op':_0x57012b,'objects':_0x1cfd58,'type':_0x366655['UPDATE']}},{'id':_0x2ec674['id'],'params':[_0x14b07b]},..._0x150554[_0x49eab5(0x16f)],{'id':X['id'],'params':_0xf0c65f}],_0x578ec6=[...(_0x36ab24=_0x150554[_0x49eab5(0x148)])==null?[]:_0x36ab24,{'id':_0xb6a54f['id'],'params':{'unitId':_0x14b07b,'subUnitId':_0x4fe54a,'op':_0x5356e6,'objects':_0x1cfd58,'type':_0x366655[_0x49eab5(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x14b07b]},..._0x150554['undos'],{'id':X['id'],'params':{'unitId':_0x14b07b,'subUnitId':_0x4fe54a,'shapeType':_0x4a0080,'shapeId':_0x25369d,'shapeData':_0x34b559}}];return _0x2d1a4f(_0x4eeefa,_0x3897cc)['result']?(_0x15d4ce[_0x49eab5(0x127)]({'unitID':_0x14b07b,'undoMutations':_0x578ec6,'redoMutations':_0x4eeefa}),!0x0):!0x1;}},Z={'type':_0x395a1d[_0x24315c(0x129)],'id':_0x24315c(0x164),'handler':(_0x33fe83,_0x14face)=>{const _0x1e6d55=_0x24315c;var _0x14d41a,_0x404b2a;let _0x194836=_0x37d1c8(_0x33fe83[_0x1e6d55(0x123)](_0x14f0b3),_0x14face);if(!_0x194836)return!0x1;let _0x2781c6=_0x33fe83[_0x1e6d55(0x123)](_0x3dac38),{unitId:_0x41b84b,subUnitId:_0x5b443c}=_0x194836,_0x16962f=_0x2781c6[_0x1e6d55(0x16c)](_0x41b84b,_0x5b443c);if(!_0x16962f)return!0x1;let _0x4e0522=_0x33fe83[_0x1e6d55(0x123)](_0x189a5a),{shapeId:_0x58ce04,flipH:_0x547ce3,flipV:_0x141732}=_0x14face,_0x1e8e35=_0x4e0522[_0x1e6d55(0x17a)]({'unitId':_0x41b84b,'subUnitId':_0x5b443c,'drawingId':_0x58ce04});if(!_0x1e8e35)return!0x1;let _0x2a86f6=_0x33fe83[_0x1e6d55(0x123)](K)[_0x1e6d55(0xfe)](_0x41b84b,_0x5b443c,_0x58ce04);if(!_0x2a86f6)return!0x1;let _0x2a71bb=_0x33fe83[_0x1e6d55(0x123)](_0x12d889),_0xab5832=_0x33fe83[_0x1e6d55(0x123)](_0x32f094),_0x5c5ca9=_0x33fe83[_0x1e6d55(0x123)](_0x3d6fd9),_0x5c8e5c={..._0x1e8e35[_0x1e6d55(0x181)]};_0x547ce3!==void 0x0&&(_0x5c8e5c[_0x1e6d55(0x105)]=!_0x5c8e5c[_0x1e6d55(0x105)]),_0x141732!==void 0x0&&(_0x5c8e5c[_0x1e6d55(0x15b)]=!_0x5c8e5c[_0x1e6d55(0x15b)]);let _0x3ebb29=_0x4f2943(_0x5c8e5c,_0x16962f),_0x51af3b=_0x58930a(_0x5c8e5c,_0x16962f),_0x19441b=_0x2a86f6['getShapeType'](),_0x3be835=_0x2a86f6[_0x1e6d55(0x15a)](),_0x1b32f0={'unitId':_0x41b84b,'subUnitId':_0x5b443c,'drawingId':_0x58ce04,'drawingType':_0xcd5ef0[_0x1e6d55(0xe7)],'sheetTransform':_0x3ebb29,'transform':_0x5c8e5c,'data':{'shapeType':_0x19441b,'shapeData':_0x3be835},'axisAlignSheetTransform':_0x51af3b,'allowTransform':!0x0},{undo:_0x3384d1,redo:_0x3fd125,objects:_0x4b1586}=_0x4e0522[_0x1e6d55(0x143)]([_0x1b32f0]),_0x4b1505=_0x5c5ca9[_0x1e6d55(0x117)]({'id':_0x1ecf99['id'],'params':{'unitId':_0x41b84b,'drawings':[_0x1b32f0]}}),_0x17b8e3=[...(_0x14d41a=_0x4b1505['preRedos'])==null?[]:_0x14d41a,{'id':_0xb6a54f['id'],'params':{'unitId':_0x41b84b,'subUnitId':_0x5b443c,'op':_0x3fd125,'objects':_0x4b1586,'type':_0x366655['UPDATE']}},{'id':_0x2ec674['id'],'params':[_0x41b84b]},..._0x4b1505[_0x1e6d55(0x16f)]],_0x273c9b=[...(_0x404b2a=_0x4b1505[_0x1e6d55(0x148)])==null?[]:_0x404b2a,{'id':_0xb6a54f['id'],'params':{'unitId':_0x41b84b,'subUnitId':_0x5b443c,'op':_0x3384d1,'objects':_0x4b1586,'type':_0x366655[_0x1e6d55(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x41b84b]},..._0x4b1505[_0x1e6d55(0x136)]];if(_0x45bbc3(_0x19441b)){let _0x83fd0d=_0x2a86f6[_0x1e6d55(0x179)]();if(_0x83fd0d){let _0x17c560={..._0x83fd0d};_0x17c560[_0x1e6d55(0x161)]=void 0x0,_0x17c560['to']=void 0x0,_0x17b8e3[_0x1e6d55(0x12f)]({'id':X['id'],'params':{'unitId':_0x41b84b,'subUnitId':_0x5b443c,'shapeId':_0x58ce04,'shapeType':_0x19441b,'shapeData':{'relation':_0x17c560}}}),_0x273c9b['push']({'id':X['id'],'params':{'unitId':_0x41b84b,'subUnitId':_0x5b443c,'shapeId':_0x58ce04,'shapeType':_0x19441b,'shapeData':{'relation':_0x83fd0d}}});}}return _0x2d1a4f(_0x17b8e3,_0x2a71bb)[_0x1e6d55(0x132)]?(_0xab5832['pushUndoRedo']({'unitID':_0x41b84b,'undoMutations':_0x273c9b,'redoMutations':_0x17b8e3}),!0x0):!0x1;}},Q={'type':_0x395a1d[_0x24315c(0x129)],'id':_0x24315c(0x14f),'handler':(_0x482f7d,_0x5c4434)=>{const _0x726d3e=_0x24315c;var _0xf9fe6d,_0x33cc50;let _0x41ac78=_0x37d1c8(_0x482f7d[_0x726d3e(0x123)](_0x14f0b3),_0x5c4434);if(!_0x41ac78)return!0x1;let _0x48e98f=_0x482f7d['get'](_0x3dac38),{unitId:_0x259cd3,subUnitId:_0x45b871}=_0x41ac78,_0x4d7ac7=_0x48e98f[_0x726d3e(0x16c)](_0x259cd3,_0x45b871);if(!_0x4d7ac7)return!0x1;let _0x3dad01=_0x482f7d[_0x726d3e(0x123)](_0x189a5a),{shapeId:_0x16bcaf,rotate:_0x2398b7}=_0x5c4434,_0x3e2668=_0x3dad01[_0x726d3e(0x17a)]({'unitId':_0x259cd3,'subUnitId':_0x45b871,'drawingId':_0x16bcaf});if(!_0x3e2668)return!0x1;let _0xf665c6=_0x482f7d[_0x726d3e(0x123)](K)[_0x726d3e(0xfe)](_0x259cd3,_0x45b871,_0x16bcaf);if(!_0xf665c6)return!0x1;let _0x368328=_0x482f7d[_0x726d3e(0x123)](_0x12d889),_0x13015d=_0x482f7d[_0x726d3e(0x123)](_0x32f094),_0xd5c8e=_0x482f7d[_0x726d3e(0x123)](_0x3d6fd9),_0x3bd1e4={..._0x3e2668[_0x726d3e(0x181)]};_0x2398b7!==void 0x0&&(_0x3bd1e4[_0x726d3e(0x104)]=(_0x3bd1e4[_0x726d3e(0x104)]||0x0)+_0x2398b7);let _0x494672=_0x4f2943(_0x3bd1e4,_0x4d7ac7),_0x2db895=_0x58930a(_0x3bd1e4,_0x4d7ac7),_0x1d1b2e=_0xf665c6[_0x726d3e(0x126)](),_0x4b7f7a=_0xf665c6['getShapeData'](),_0x29dd6e={'unitId':_0x259cd3,'subUnitId':_0x45b871,'drawingId':_0x16bcaf,'drawingType':_0xcd5ef0[_0x726d3e(0xe7)],'sheetTransform':_0x494672,'transform':_0x3bd1e4,'data':{'shapeType':_0x1d1b2e,'shapeData':_0x4b7f7a},'axisAlignSheetTransform':_0x2db895,'allowTransform':!0x0},{undo:_0x57485c,redo:_0x304b11,objects:_0x5ab21f}=_0x3dad01[_0x726d3e(0x143)]([_0x29dd6e]),_0x3919f9=_0xd5c8e[_0x726d3e(0x117)]({'id':_0x1ecf99['id'],'params':{'unitId':_0x259cd3,'drawings':[_0x29dd6e]}}),_0x4f13a7=[...(_0xf9fe6d=_0x3919f9[_0x726d3e(0x153)])==null?[]:_0xf9fe6d,{'id':_0xb6a54f['id'],'params':{'unitId':_0x259cd3,'subUnitId':_0x45b871,'op':_0x304b11,'objects':_0x5ab21f,'type':_0x366655[_0x726d3e(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x259cd3]},..._0x3919f9[_0x726d3e(0x16f)]],_0x501f25=[...(_0x33cc50=_0x3919f9[_0x726d3e(0x148)])==null?[]:_0x33cc50,{'id':_0xb6a54f['id'],'params':{'unitId':_0x259cd3,'subUnitId':_0x45b871,'op':_0x57485c,'objects':_0x5ab21f,'type':_0x366655[_0x726d3e(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x259cd3]},..._0x3919f9[_0x726d3e(0x136)]];return _0x2d1a4f(_0x4f13a7,_0x368328)[_0x726d3e(0x132)]?(_0x13015d[_0x726d3e(0x127)]({'unitID':_0x259cd3,'undoMutations':_0x501f25,'redoMutations':_0x4f13a7}),!0x0):!0x1;}},te={'type':_0x395a1d[_0x24315c(0x129)],'id':_0x24315c(0xf2),'handler':(_0x31e371,_0x248e34)=>{const _0x24d013=_0x24315c;var _0x198f00;let _0x351f63=_0x37d1c8(_0x31e371[_0x24d013(0x123)](_0x14f0b3),_0x248e34);if(!_0x351f63)return!0x1;let {unitId:_0x252320,subUnitId:_0x36bae7}=_0x351f63,{shapeId:_0x3c287c}=_0x248e34,_0x4a72e0=_0x31e371[_0x24d013(0x123)](K)['getShapeModel'](_0x252320,_0x36bae7,_0x3c287c);if(!_0x4a72e0)return!0x1;let _0x2d6232=_0x4a72e0[_0x24d013(0xef)](),_0xa33a25=(_0x198f00=_0x2d6232==null?void 0x0:_0x2d6232[_0x24d013(0x112)])==null?!0x0:_0x198f00,_0x53f305=!_0xa33a25,_0x2b697c=_0x31e371[_0x24d013(0x123)](_0x12d889),_0x3211ba=_0x31e371['get'](_0x32f094),_0x23536d={'unitId':_0x252320,'subUnitId':_0x36bae7,'shapeId':_0x3c287c,'shapeData':{'shapeText':{'isHorizontal':_0x53f305}}},_0x2c81a9={'unitId':_0x252320,'subUnitId':_0x36bae7,'shapeId':_0x3c287c,'shapeData':{'shapeText':{'isHorizontal':_0xa33a25}}},_0x58cf59=[{'id':X['id'],'params':_0x23536d}],_0x42631a=[{'id':X['id'],'params':_0x2c81a9}];return _0x2d1a4f(_0x58cf59,_0x2b697c)[_0x24d013(0x132)]?(_0x3211ba['pushUndoRedo']({'unitID':_0x252320,'undoMutations':_0x42631a,'redoMutations':_0x58cf59}),!0x0):!0x1;}},ne={'type':_0x395a1d[_0x24315c(0x129)],'id':_0x24315c(0xfc),'handler':(_0x15024b,_0x466f1c)=>{const _0x196d25=_0x24315c;var _0x2741b9,_0x3e8752,_0x359cee,_0x3a617c;let _0x5b2e33=_0x37d1c8(_0x15024b[_0x196d25(0x123)](_0x14f0b3),_0x466f1c);if(!_0x5b2e33)return!0x1;let _0x20376d=_0x15024b[_0x196d25(0x123)](_0x3dac38),{unitId:_0x408576,subUnitId:_0x3fcb77}=_0x5b2e33,_0x15b674=_0x20376d[_0x196d25(0x16c)](_0x408576,_0x3fcb77);if(!_0x15b674)return!0x1;let _0x230328=_0x15024b[_0x196d25(0x123)](_0x189a5a),{connectorShapeId:_0x1a4f88,width:_0x1e176a,height:_0x379e23,left:_0x3a7138,top:_0x46521e,flipX:_0x5bf3d3,flipY:_0x1adb59,rotation:_0x362bec,oldAdjustValues:_0x14d18b,newAdjustValues:_0x375af5,oldLineType:_0x3ce00c,newLineType:_0x2a61a5,oldRelation:_0x4938ad,newRelation:_0xe09d53}=_0x466f1c,_0x695d86=_0x230328['getDrawingByParam']({'unitId':_0x408576,'subUnitId':_0x3fcb77,'drawingId':_0x1a4f88});if(!_0x695d86)return!0x1;let _0xee11b3=_0x15024b[_0x196d25(0x123)](K)[_0x196d25(0xfe)](_0x408576,_0x3fcb77,_0x1a4f88);if(!_0xee11b3)return!0x1;let _0x13db62=_0x15024b[_0x196d25(0x123)](_0x12d889),_0xf8996c=_0x15024b['get'](_0x32f094),_0x1438a4=_0x15024b[_0x196d25(0x123)](_0x3d6fd9),_0x54cca6={..._0x695d86['transform'],'width':_0x1e176a,'height':_0x379e23,'left':_0x3a7138,'top':_0x46521e,'flipX':_0x5bf3d3,'flipY':_0x1adb59,'angle':(_0x2741b9=_0x362bec==null?(_0x3e8752=_0x695d86[_0x196d25(0x181)])==null?void 0x0:_0x3e8752[_0x196d25(0x104)]:_0x362bec)==null?0x0:_0x2741b9},_0x1d4280=_0x4f2943(_0x54cca6,_0x15b674),_0x40f961=_0x58930a(_0x54cca6,_0x15b674),_0x3e5b75=_0xee11b3[_0x196d25(0x126)](),_0x17225f=_0xee11b3[_0x196d25(0x15a)](),_0x4ef619={'unitId':_0x408576,'subUnitId':_0x3fcb77,'drawingId':_0x1a4f88,'drawingType':_0xcd5ef0['DRAWING_SHAPE'],'sheetTransform':_0x1d4280,'transform':_0x54cca6,'data':{'shapeType':_0x2a61a5||_0x3ce00c||_0x3e5b75,'shapeData':{..._0x17225f,'adjustValues':_0x375af5||_0x14d18b||(_0x17225f==null?void 0x0:_0x17225f['adjustValues']),'relation':_0xe09d53||_0x4938ad||(_0x17225f==null?void 0x0:_0x17225f[_0x196d25(0xf7)])}},'axisAlignSheetTransform':_0x40f961,'allowTransform':!0x0},{undo:_0x283ad4,redo:_0x23fa35,objects:_0x23f523}=_0x230328[_0x196d25(0x143)]([_0x4ef619]),_0x3a68d6=_0x1438a4[_0x196d25(0x117)]({'id':_0x1ecf99['id'],'params':{'unitId':_0x408576,'drawings':[_0x4ef619]}}),_0x21af47=[...(_0x359cee=_0x3a68d6[_0x196d25(0x153)])==null?[]:_0x359cee,{'id':_0xb6a54f['id'],'params':{'unitId':_0x408576,'subUnitId':_0x3fcb77,'op':_0x23fa35,'objects':_0x23f523,'type':_0x366655[_0x196d25(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x408576]},..._0x3a68d6['redos'],{'id':X['id'],'params':{'unitId':_0x408576,'subUnitId':_0x3fcb77,'shapeId':_0x1a4f88,'shapeType':_0x2a61a5,'shapeData':{'adjustValues':_0x375af5,'relation':_0xe09d53}}}],_0x3b6453=[...(_0x3a617c=_0x3a68d6[_0x196d25(0x148)])==null?[]:_0x3a617c,{'id':_0xb6a54f['id'],'params':{'unitId':_0x408576,'subUnitId':_0x3fcb77,'op':_0x283ad4,'objects':_0x23f523,'type':_0x366655[_0x196d25(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x408576]},..._0x3a68d6[_0x196d25(0x136)],{'id':X['id'],'params':{'unitId':_0x408576,'subUnitId':_0x3fcb77,'shapeId':_0x1a4f88,'shapeType':_0x3e5b75,'shapeData':{..._0x17225f,'adjustValues':_0x14d18b||(_0x17225f==null?void 0x0:_0x17225f[_0x196d25(0x144)]),'relation':_0x4938ad||(_0x17225f==null?void 0x0:_0x17225f[_0x196d25(0xf7)])}}}];return _0x2d1a4f(_0x21af47,_0x13db62)[_0x196d25(0x132)]?(_0xf8996c[_0x196d25(0x127)]({'unitID':_0x408576,'undoMutations':_0x3b6453,'redoMutations':_0x21af47}),!0x0):!0x1;}},re={'type':_0x395a1d[_0x24315c(0x129)],'id':'sheet.command.update-line-shape-resize','handler':(_0x49ab1b,_0x139581)=>{const _0x34eb40=_0x24315c;var _0x5dc58d,_0x33b024;let _0x56f6f5=_0x37d1c8(_0x49ab1b[_0x34eb40(0x123)](_0x14f0b3),_0x139581);if(!_0x56f6f5)return!0x1;let _0x25c6e5=_0x49ab1b['get'](_0x3dac38),{unitId:_0x1cfa76,subUnitId:_0x18f382}=_0x56f6f5,_0x5b2274=_0x25c6e5[_0x34eb40(0x16c)](_0x1cfa76,_0x18f382);if(!_0x5b2274)return!0x1;let _0x1daf6d=_0x49ab1b[_0x34eb40(0x123)](_0x189a5a),{shapeId:_0x48de14,width:_0x58c257,height:_0x2d07ca,left:_0x1f1b5f,top:_0x3da833,flipX:_0x1279e9,flipY:_0x9e9afa,angle:_0x5e935c,oldAdjustValues:_0x4dfae9,newAdjustValues:_0x399594,oldLineType:_0x247afd,newLineType:_0x9a85a6}=_0x139581,_0xbe3706=_0x1daf6d[_0x34eb40(0x17a)]({'unitId':_0x1cfa76,'subUnitId':_0x18f382,'drawingId':_0x48de14});if(!_0xbe3706)return!0x1;let _0x220436=_0x49ab1b[_0x34eb40(0x123)](K)[_0x34eb40(0xfe)](_0x1cfa76,_0x18f382,_0x48de14);if(!_0x220436)return!0x1;let _0x5a6345=_0x49ab1b[_0x34eb40(0x123)](_0x12d889),_0x23ea96=_0x49ab1b[_0x34eb40(0x123)](_0x32f094),_0x1c3f4d=_0x49ab1b[_0x34eb40(0x123)](_0x3d6fd9),_0x533d9c={..._0xbe3706[_0x34eb40(0x181)],'width':_0x58c257,'height':_0x2d07ca,'left':_0x1f1b5f,'top':_0x3da833,'flipX':_0x1279e9,'flipY':_0x9e9afa,'angle':_0x5e935c},_0x2ad213=_0x4f2943(_0x533d9c,_0x5b2274),_0x233e3b=_0x58930a(_0x533d9c,_0x5b2274),_0xd6b0f0=_0x220436['getShapeType'](),_0x5a6f71=_0x220436[_0x34eb40(0x15a)](),_0x187045={'unitId':_0x1cfa76,'subUnitId':_0x18f382,'drawingId':_0x48de14,'drawingType':_0xcd5ef0[_0x34eb40(0xe7)],'sheetTransform':_0x2ad213,'transform':_0x533d9c,'data':{'shapeType':_0x9a85a6||_0x247afd||_0xd6b0f0,'shapeData':{..._0x5a6f71,'adjustValues':_0x399594||_0x4dfae9||(_0x5a6f71==null?void 0x0:_0x5a6f71[_0x34eb40(0x144)])}},'axisAlignSheetTransform':_0x233e3b,'allowTransform':!0x0},{undo:_0x187125,redo:_0x445c4a,objects:_0x15381a}=_0x1daf6d['getBatchUpdateOp']([_0x187045]),_0x3ec909=_0x1c3f4d[_0x34eb40(0x117)]({'id':_0x1ecf99['id'],'params':{'unitId':_0x1cfa76,'drawings':[_0x187045]}}),_0x3e8563=[...(_0x5dc58d=_0x3ec909['preRedos'])==null?[]:_0x5dc58d,{'id':_0xb6a54f['id'],'params':{'unitId':_0x1cfa76,'subUnitId':_0x18f382,'op':_0x445c4a,'objects':_0x15381a,'type':_0x366655[_0x34eb40(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x1cfa76]},..._0x3ec909[_0x34eb40(0x16f)],{'id':X['id'],'params':{'unitId':_0x1cfa76,'subUnitId':_0x18f382,'shapeId':_0x48de14,'shapeType':_0x9a85a6,'shapeData':{'adjustValues':_0x399594}}}],_0x1b38bd=[...(_0x33b024=_0x3ec909[_0x34eb40(0x148)])==null?[]:_0x33b024,{'id':_0xb6a54f['id'],'params':{'unitId':_0x1cfa76,'subUnitId':_0x18f382,'op':_0x187125,'objects':_0x15381a,'type':_0x366655['UPDATE']}},{'id':_0x2ec674['id'],'params':[_0x1cfa76]},..._0x3ec909[_0x34eb40(0x136)],{'id':X['id'],'params':{'unitId':_0x1cfa76,'subUnitId':_0x18f382,'shapeId':_0x48de14,'shapeType':_0xd6b0f0,'shapeData':{..._0x5a6f71,'adjustValues':_0x4dfae9||(_0x5a6f71==null?void 0x0:_0x5a6f71[_0x34eb40(0x144)])}}}];return _0x2d1a4f(_0x3e8563,_0x5a6345)[_0x34eb40(0x132)]?(_0x23ea96[_0x34eb40(0x127)]({'unitID':_0x1cfa76,'undoMutations':_0x1b38bd,'redoMutations':_0x3e8563}),!0x0):!0x1;}},ie={'id':'sheet.mutation.update-shape-type','type':_0x395a1d['MUTATION'],'handler':(_0x1228bd,_0x47f0d8)=>{const _0x4585a7=_0x24315c;let {unitId:_0xa0d2c5,subUnitId:_0x3f6f91,shapeType:_0x27607e,shapeId:_0x2293f7,shapeData:_0x34a923}=_0x47f0d8,_0x302f7b=_0x1228bd[_0x4585a7(0x123)](K)[_0x4585a7(0xfe)](_0xa0d2c5,_0x3f6f91,_0x2293f7);return _0x302f7b&&(_0x302f7b[_0x4585a7(0xee)](_0x27607e),_0x34a923&&(_0x302f7b==null||_0x302f7b[_0x4585a7(0x13a)](_0x34a923))),!0x0;}};var ae=_0x24315c(0x134),oe=_0x24315c(0x118);const se={};let ce=class extends _0x205493{constructor(_0x305bd5,_0x231a0c,_0x4ff6db,_0x512675,_0x1a771a){const _0x311f30=_0x24315c;super(),this[_0x311f30(0x173)]=_0x305bd5,this[_0x311f30(0x120)]=_0x231a0c,this[_0x311f30(0x115)]=_0x4ff6db,this[_0x311f30(0xea)]=_0x512675,this[_0x311f30(0x139)]=_0x1a771a,this[_0x311f30(0x13c)](),this[_0x311f30(0x11f)]();}['_initCommands'](){const _0x244553=_0x24315c;[Y,ee,Z,Q,te,ne,re,q,J,ie,X]['forEach'](_0x382c1e=>this['disposeWithMe'](this[_0x244553(0x173)][_0x244553(0x124)](_0x382c1e)));}['_initCommandInterceptor'](){const _0x3c4eab=_0x24315c;this[_0x3c4eab(0x138)](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0x289a06=>{const _0x1f150f=_0x3c4eab;if(_0x289a06['id']===_0x30f0fe['id']){let {drawings:_0x4b4ab9}=_0x289a06[_0x1f150f(0x13e)],_0x1b5ce6=_0x4b4ab9[_0x1f150f(0x168)](_0x53b1cd=>_0x53b1cd[_0x1f150f(0x11d)]===_0xcd5ef0[_0x1f150f(0xe7)]);if(_0x1b5ce6[_0x1f150f(0x142)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x521f61=[],_0xa4773d=[];return _0x1b5ce6[_0x1f150f(0x107)](_0x12b6d8=>{const _0x167caa=_0x1f150f;let {unitId:_0x210e6d,subUnitId:_0x39e27c,drawingId:_0x5afa4a}=_0x12b6d8,_0x479332=this[_0x167caa(0xea)][_0x167caa(0xfe)](_0x210e6d,_0x39e27c,_0x5afa4a);if(!_0x479332)throw TypeError(_0x167caa(0x159)+_0x479332);_0x521f61[_0x167caa(0x12f)]({'id':J['id'],'params':{'unitId':_0x210e6d,'subUnitId':_0x39e27c,'shapeId':_0x5afa4a}}),_0xa4773d[_0x167caa(0x12f)]({'id':q['id'],'params':{'unitId':_0x210e6d,'subUnitId':_0x39e27c,'shapeId':_0x5afa4a,'shapeType':_0x479332[_0x167caa(0x126)](),'shapeData':_0x479332[_0x167caa(0x15a)]()}});let _0x5bdbca=this[_0x167caa(0xea)]['getBasicShapeRelation'](_0x210e6d,_0x39e27c,_0x5afa4a);if(_0x5bdbca)for(let _0x219883 of _0x5bdbca){let _0x403be3=_0x219883[_0x167caa(0x16d)],_0x38eb0f=_0x219883[_0x167caa(0x176)],_0x146368=_0x38eb0f?{'from':void 0x0}:{'to':void 0x0},_0x54bdd9=_0x38eb0f?{'from':{'shapeId':_0x219883[_0x167caa(0xed)],'cxnIndex':_0x219883['cxnIndex']}}:{'to':{'shapeId':_0x219883[_0x167caa(0xed)],'cxnIndex':_0x219883['cxnIndex']}};_0x521f61[_0x167caa(0x12f)]({'id':X['id'],'params':{'unitId':_0x210e6d,'subUnitId':_0x39e27c,'shapeId':_0x403be3,'shapeData':{'relation':_0x146368}}}),_0xa4773d['push']({'id':X['id'],'params':{'unitId':_0x210e6d,'subUnitId':_0x39e27c,'shapeId':_0x403be3,'shapeData':{'relation':_0x54bdd9}}});}}),{'preRedos':_0x521f61,'redos':[],'preUndos':[],'undos':_0xa4773d};}if(_0x289a06['id']===_0x1ecf99['id']){let {drawings:_0x11fdd4}=_0x289a06[_0x1f150f(0x13e)],_0x27561c=_0x11fdd4['filter'](_0x2e9816=>_0x2e9816[_0x1f150f(0x11d)]===_0xcd5ef0['DRAWING_SHAPE']);if(_0x27561c[_0x1f150f(0x142)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x3bb089=[],_0x168888=[];for(let _0x5c7181 of _0x27561c){let {unitId:_0x41f9e7,subUnitId:_0xf9198,drawingId:_0x272056,transform:_0x323e1b}=_0x5c7181;if(!_0x41f9e7||!_0xf9198||!_0x272056||!_0x323e1b)continue;let _0x2da13b=this[_0x1f150f(0xea)][_0x1f150f(0xfe)](_0x41f9e7,_0xf9198,_0x272056);if(!_0x2da13b)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x2da13b);if(_0x45bbc3(_0x2da13b[_0x1f150f(0x126)]())){let _0x724255=this[_0x1f150f(0xea)][_0x1f150f(0xff)](_0x41f9e7,_0xf9198,_0x272056);_0x724255&&(_0x3bb089['push']({'id':X['id'],'params':{'unitId':_0x41f9e7,'subUnitId':_0xf9198,'shapeId':_0x272056,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x168888[_0x1f150f(0x12f)]({'id':X['id'],'params':{'unitId':_0x41f9e7,'subUnitId':_0xf9198,'shapeId':_0x272056,'shapeData':{'relation':_0x724255}}}));}else{let _0x19e317=this[_0x1f150f(0xea)][_0x1f150f(0x163)](_0x41f9e7,_0xf9198,_0x272056);if(_0x19e317&&_0x19e317[_0x1f150f(0x142)]>0x0)for(let _0x33f25b of _0x19e317){let _0x4cdb60=_0x33f25b['lineShapeId'],_0x4f6d74=_0x33f25b[_0x1f150f(0x176)],_0x21629e=this[_0x1f150f(0xea)]['getShapeModel'](_0x41f9e7,_0xf9198,_0x4cdb60);if(!_0x21629e)continue;let _0x1e0b4f=_0x21629e[_0x1f150f(0xf9)](),_0x1e093c=_0x21629e[_0x1f150f(0x14c)]();_0x1e0b4f&&_0x1e093c?this['_addLineRerouteUpdates'](_0x41f9e7,_0xf9198,_0x4cdb60,_0x21629e,_0x1e0b4f,_0x1e093c,_0x3bb089,_0x168888,_0x272056,_0x323e1b):this[_0x1f150f(0xf5)](_0x41f9e7,_0xf9198,_0x4cdb60,_0x21629e,_0x4f6d74?_0x1e0b4f:_0x1e093c,_0x4f6d74,_0x3bb089,_0x168888,_0x272056,_0x323e1b);}}}return{'preRedos':[],'redos':_0x3bb089,'preUndos':_0x168888,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x24315c(0x150)](_0x24595a,_0x27f69b,_0x148fc6,_0x3b2931,_0x194b2f){const _0x8b3a83=_0x24315c;if(!_0x27f69b||!_0x148fc6)return null;let {shapeId:_0x115394,cxnIndex:_0x1e3a71}=_0x24595a,_0x1605a9=this[_0x8b3a83(0xea)][_0x8b3a83(0xfe)](_0x27f69b,_0x148fc6,_0x115394);if(!_0x1605a9)return null;let _0x4ae344=this['_drawingManagerService'][_0x8b3a83(0x17a)]({'unitId':_0x27f69b,'subUnitId':_0x148fc6,'drawingId':_0x115394});if(!(_0x4ae344!=null&&_0x4ae344['transform']))return null;let {left:_0x198aaf=0x0,top:_0x5f1e28=0x0,width:_0x117c2c=0x0,height:_0x4ccba4=0x0,flipX:_0xedb0de=!0x1,flipY:_0xfc2670=!0x1,angle:_0x8b0c41}=_0x4ae344[_0x8b3a83(0x181)];if(_0x194b2f&&_0x3b2931===_0x115394){var _0x55b549,_0x393d02,_0x1be053,_0x1d64f7,_0x48965f,_0x94f709,_0x4d190f;_0x198aaf=(_0x55b549=_0x194b2f['left'])==null?_0x198aaf:_0x55b549,_0x5f1e28=(_0x393d02=_0x194b2f['top'])==null?_0x5f1e28:_0x393d02,_0x117c2c=(_0x1be053=_0x194b2f[_0x8b3a83(0xf3)])==null?_0x117c2c:_0x1be053,_0x4ccba4=(_0x1d64f7=_0x194b2f['height'])==null?_0x4ccba4:_0x1d64f7,_0xedb0de=(_0x48965f=_0x194b2f['flipX'])==null?_0xedb0de:_0x48965f,_0xfc2670=(_0x94f709=_0x194b2f['flipY'])==null?_0xfc2670:_0x94f709,_0x8b0c41=(_0x4d190f=_0x194b2f[_0x8b3a83(0x104)])==null?_0x8b0c41:_0x4d190f;}_0x1605a9[_0x8b3a83(0x13d)]({'width':_0x117c2c,'height':_0x4ccba4});let _0x49968b=_0x1605a9[_0x8b3a83(0x11a)]()['find'](_0x35e9ff=>_0x35e9ff[_0x8b3a83(0x11e)]===_0x1e3a71);if(!_0x49968b)return null;let _0x402f22=_0xedb0de?_0x117c2c-_0x49968b['x']:_0x49968b['x'],_0x1eb4d3=_0xfc2670?_0x4ccba4-_0x49968b['y']:_0x49968b['y'];if(_0x8b0c41!==0x0&&_0x8b0c41!=null){let _0x113d3d=_0x8b0c41*Math['PI']/0xb4,_0x33c171=Math['cos'](_0x113d3d),_0x1ec104=Math[_0x8b3a83(0xec)](_0x113d3d),_0x1c48e8=_0x117c2c/0x2,_0x2eaa52=_0x4ccba4/0x2,_0x28fee3=_0x402f22-_0x1c48e8,_0x17612b=_0x1eb4d3-_0x2eaa52;_0x402f22=_0x1c48e8+_0x28fee3*_0x33c171-_0x17612b*_0x1ec104,_0x1eb4d3=_0x2eaa52+_0x28fee3*_0x1ec104+_0x17612b*_0x33c171;}_0x402f22+=_0x198aaf,_0x1eb4d3+=_0x5f1e28;let _0x14e81b=_0x49968b[_0x8b3a83(0x14a)]/0xea60;_0xedb0de&&(_0x14e81b=0xb4-_0x14e81b),_0xfc2670&&(_0x14e81b=-_0x14e81b),_0x14e81b+=_0x8b0c41||0x0,_0x14e81b=(_0x14e81b%0x168+0x168)%0x168;let _0x158b62=_0xee328b({'left':_0x198aaf,'top':_0x5f1e28,'width':_0x117c2c,'height':_0x4ccba4},_0x8b0c41||0x0);return{'point':{'x':_0x402f22,'y':_0x1eb4d3},'angle':_0x14e81b,'bounds':_0x158b62};}[_0x24315c(0xe5)](_0x467ae0,_0x2c34de,_0x1f17cc,_0x2d637a,_0x252478,_0x5f1e5b,_0x288159,_0xf02e1f,_0x2f0a13,_0x1a6568){const _0x1f2302=_0x24315c;let _0x34df8b=this[_0x1f2302(0x115)][_0x1f2302(0x16c)](_0x467ae0,_0x2c34de);if(!_0x34df8b)return;let _0x534d50=_0x2d637a[_0x1f2302(0x179)](),_0xb37424=_0x2d637a[_0x1f2302(0x122)](),_0x45c0a1={},_0xc1ed1e={};_0xb37424['forEach'](_0x42eb2d=>{const _0x41c1d4=_0x1f2302;let _0x5f397c=_0x2d637a[_0x41c1d4(0x155)](_0x42eb2d);_0xc1ed1e[_0x42eb2d]=_0x5f397c==null?0x0:_0x5f397c;});let _0x1ef877=this['_getConnectPointInfo'](_0x252478,_0x467ae0,_0x2c34de,_0x2f0a13,_0x1a6568),_0x3a047e=this[_0x1f2302(0x150)](_0x5f1e5b,_0x467ae0,_0x2c34de,_0x2f0a13,_0x1a6568);if(_0x1ef877&&_0x3a047e){let _0x54a9c2=_0x2d637a[_0x1f2302(0x126)](),_0xc8a074=_0x696e80(_0x1ef877,_0x3a047e,_0x54a9c2),_0x377062=_0x54a9c2;if(_0xc8a074){let _0x2ede50=_0x11cba5(_0xc8a074,_0x2d637a[_0x1f2302(0x126)]()),_0x2014a8=this[_0x1f2302(0x139)][_0x1f2302(0x177)](_0x467ae0,_0x2c34de);if(_0x2014a8&&_0x2014a8[_0x1f17cc]){let _0x3f423c=_0x2014a8[_0x1f17cc];_0x377062=_0x2ede50[_0x1f2302(0x10a)];for(let [_0x51f4c9,_0x17cac8]of Object[_0x1f2302(0x131)](_0x2ede50[_0x1f2302(0x144)]))_0x45c0a1[_0x51f4c9]=_0x17cac8;let _0xe020f6={..._0x3f423c[_0x1f2302(0x181)],'width':_0x2ede50[_0x1f2302(0x16a)][_0x1f2302(0xf3)],'height':_0x2ede50[_0x1f2302(0x16a)][_0x1f2302(0x109)],'left':_0x2ede50[_0x1f2302(0x16a)]['left'],'top':_0x2ede50['worldRect'][_0x1f2302(0xfb)],'flipX':_0x2ede50[_0x1f2302(0x16a)][_0x1f2302(0x105)],'flipY':_0x2ede50[_0x1f2302(0x16a)][_0x1f2302(0x15b)],'angle':_0x2ede50[_0x1f2302(0x165)]},_0x3e7b18=_0x4f2943(_0xe020f6,_0x34df8b),_0x46f757=_0x58930a(_0xe020f6,_0x34df8b),_0x58f680={'unitId':_0x467ae0,'subUnitId':_0x2c34de,'drawingType':_0xcd5ef0[_0x1f2302(0xe7)],'drawingId':_0x1f17cc,'transform':_0xe020f6,'sheetTransform':_0x3e7b18,'axisAlignSheetTransform':_0x46f757},{unitId:_0x2db575,subUnitId:_0x4358cc,undo:_0xf8710e,redo:_0x4bf341,objects:_0x4c26ab}=this[_0x1f2302(0x139)][_0x1f2302(0x143)]([_0x58f680]);_0x288159[_0x1f2302(0x12f)]({'id':_0xb6a54f['id'],'params':{'unitId':_0x2db575,'subUnitId':_0x4358cc,'op':_0x4bf341,'objects':_0x4c26ab,'type':_0x366655[_0x1f2302(0x100)]}}),_0xf02e1f[_0x1f2302(0x12f)]({'id':_0xb6a54f['id'],'params':{'unitId':_0x2db575,'subUnitId':_0x4358cc,'op':_0xf8710e,'objects':_0x4c26ab,'type':_0x366655[_0x1f2302(0x100)]}});}_0x2d637a['removeLinePoints']();}_0x288159['push']({'id':X['id'],'params':{'unitId':_0x467ae0,'subUnitId':_0x2c34de,'shapeId':_0x1f17cc,'shapeType':_0x377062,'shapeData':{'adjustValues':_0x45c0a1,'relation':_0x534d50}}}),_0xf02e1f[_0x1f2302(0x12f)]({'id':X['id'],'params':{'unitId':_0x467ae0,'subUnitId':_0x2c34de,'shapeId':_0x1f17cc,'shapeType':_0x54a9c2,'shapeData':{'adjustValues':_0xc1ed1e,'relation':_0x534d50}}});}}[_0x24315c(0xf5)](_0x4125c6,_0x4108e3,_0x3e95ac,_0x38d541,_0x457d39,_0x14cd57,_0x2203d8,_0x46fe46,_0x35a6df,_0x2ea272){const _0x362ef3=_0x24315c;var _0x120464;if(!_0x457d39)return;let _0x20fb58=this[_0x362ef3(0x115)]['getSkeleton'](_0x4125c6,_0x4108e3);if(!_0x20fb58)return;let _0x20d4a0=(_0x120464=this['_drawingManagerService'][_0x362ef3(0x17a)]({'unitId':_0x4125c6,'subUnitId':_0x4108e3,'drawingId':_0x35a6df}))==null?void 0x0:_0x120464['transform'];if(!_0x20d4a0)return;let _0xdc6c27=_0x20d4a0[_0x362ef3(0x151)]!==_0x2ea272[_0x362ef3(0x151)]||_0x20d4a0[_0x362ef3(0xfb)]!==_0x2ea272[_0x362ef3(0xfb)],_0x182554=_0x20d4a0[_0x362ef3(0xf3)]!==_0x2ea272[_0x362ef3(0xf3)]||_0x20d4a0['height']!==_0x2ea272[_0x362ef3(0x109)],_0x338097=_0x20d4a0['flipX']!==_0x2ea272[_0x362ef3(0x105)]||_0x20d4a0[_0x362ef3(0x15b)]!==_0x2ea272[_0x362ef3(0x15b)],_0x203758=_0x20d4a0['angle']!==_0x2ea272[_0x362ef3(0x104)];if(_0xdc6c27&&!_0x182554&&!_0x338097&&!_0x203758){var _0x1fc980,_0x5055a9,_0x43cbf7,_0x53ed90;let _0x4bae6b=((_0x1fc980=_0x2ea272['left'])==null?0x0:_0x1fc980)-((_0x5055a9=_0x20d4a0[_0x362ef3(0x151)])==null?0x0:_0x5055a9),_0x1517ec=((_0x43cbf7=_0x2ea272[_0x362ef3(0xfb)])==null?0x0:_0x43cbf7)-((_0x53ed90=_0x20d4a0[_0x362ef3(0xfb)])==null?0x0:_0x53ed90),_0x7d811f=this[_0x362ef3(0x139)]['getDrawingData'](_0x4125c6,_0x4108e3);if(_0x7d811f&&_0x7d811f[_0x3e95ac]){var _0x4f055f,_0x5626ea,_0x5cdbaa,_0x4c62d1;let _0x56d57f=_0x7d811f[_0x3e95ac],_0x32262e={..._0x56d57f[_0x362ef3(0x181)],'left':((_0x4f055f=(_0x5626ea=_0x56d57f[_0x362ef3(0x181)])==null?void 0x0:_0x5626ea[_0x362ef3(0x151)])==null?0x0:_0x4f055f)+_0x4bae6b,'top':((_0x5cdbaa=(_0x4c62d1=_0x56d57f[_0x362ef3(0x181)])==null?void 0x0:_0x4c62d1['top'])==null?0x0:_0x5cdbaa)+_0x1517ec},_0x15130f=_0x4f2943(_0x32262e,_0x20fb58),_0x497605=_0x58930a(_0x32262e,_0x20fb58),_0x463f71={'unitId':_0x4125c6,'subUnitId':_0x4108e3,'drawingType':_0xcd5ef0[_0x362ef3(0xe7)],'drawingId':_0x3e95ac,'transform':_0x32262e,'sheetTransform':_0x15130f,'axisAlignSheetTransform':_0x497605},{unitId:_0x3e67ae,subUnitId:_0x19ff27,undo:_0x152113,redo:_0x12899e,objects:_0x4dc288}=this['_drawingManagerService'][_0x362ef3(0x143)]([_0x463f71]);_0x2203d8['push']({'id':_0xb6a54f['id'],'params':{'unitId':_0x3e67ae,'subUnitId':_0x19ff27,'op':_0x12899e,'objects':_0x4dc288,'type':_0x366655[_0x362ef3(0x100)]}}),_0x46fe46[_0x362ef3(0x12f)]({'id':_0xb6a54f['id'],'params':{'unitId':_0x3e67ae,'subUnitId':_0x19ff27,'op':_0x152113,'objects':_0x4dc288,'type':_0x366655[_0x362ef3(0x100)]}});}}else{let _0x185f7e=_0x38d541[_0x362ef3(0xf9)](),_0x1acd93=_0x38d541[_0x362ef3(0x14c)]();this[_0x362ef3(0xe5)](_0x4125c6,_0x4108e3,_0x3e95ac,_0x38d541,_0x185f7e,_0x1acd93,_0x2203d8,_0x46fe46,_0x35a6df,_0x2ea272);}}};ce=G([W(0x0,_0x12d889),W(0x1,_0x396a8a(_0x3d6fd9)),W(0x2,_0x396a8a(_0x3dac38)),W(0x3,_0x396a8a(K)),W(0x4,_0x396a8a(_0x3f7bd4))],ce);let $=class extends _0x307e7b{constructor(_0xa3f5a=se,_0x4ba299,_0x3afd75,_0x4f7f35){const _0x4dc86b=_0x24315c;super(),this[_0x4dc86b(0x170)]=_0xa3f5a,this[_0x4dc86b(0xf8)]=_0x4ba299,this[_0x4dc86b(0x173)]=_0x3afd75,this[_0x4dc86b(0x119)]=_0x4f7f35;let {..._0x22d231}=_0x5db2e6({},se,this[_0x4dc86b(0x170)]);this[_0x4dc86b(0x119)][_0x4dc86b(0x149)](_0x4dc86b(0x121),_0x22d231);}[_0x24315c(0xfa)](){const _0x50551b=_0x24315c;let _0x4c2c22=this[_0x50551b(0xf8)];[[U],[K],[ce]][_0x50551b(0x107)](_0x4394e1=>_0x4c2c22[_0x50551b(0x145)](_0x4394e1)),_0x46da78(_0x4c2c22,[[K],[ce]]);}};H($,_0x24315c(0x156),_0xf89464['UNIVER_SHEET']),H($,_0x24315c(0xeb),_0x24315c(0x157)),H($,_0x24315c(0xf6),ae),H($,_0x24315c(0x160),oe),$=G([_0x173671(_0x1837ff),W(0x1,_0x396a8a(_0x1e351a)),W(0x2,_0x12d889),W(0x3,_0x5ad0ed)],$);function _0xb7bc(){const _0x1699fe=['sin','shapeId','setShapeType','getShapeTextData','sheet.mutation.remove-shape','hasShape','sheet.command.set-shape-text-vertical-toggle','width','borderEnabled','_addLineFollowShapeUpdates','packageName','relation','_injector','getStartConnectInfo','onStarting','top','sheet.command.update-connector-relation','_shapeModelManagerMap','getShapeModel','getLineShapeRelation','UPDATE','decorate','175178jpZVZp','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','angle','flipX','clear','forEach','shapeData','height','lineType','registerPluginResource','resizeEnabled','removeShape','326628DBCCVx','_resourcesManagerService','stringify','string','isHorizontal','getBatchAddOp','symbol','_sheetSkeletonService','data','onCommandExecute','1.0.0-alpha.3','_configService','getConnectionSiteList','_serializeShapeForUnit','fromJSON','drawingType','index','_initCommandInterceptor','_sheetInterceptorService','sheets-shape.config','getAdjustNames','get','registerCommand','object','getShapeType','pushUndoRedo','range','COMMAND','set','9PuoqpV','3121448kaqGfy','MUTATION','prototype','push','keys','entries','result','ensureSkeleton','@univerjs-pro/sheets-shape','default','undos','3394636HKIaFk','disposeWithMe','_drawingManagerService','setShapeData','sheet.command.insert-shape','_initCommands','updateContext','params','toJSON','isLineShape','sheet.mutation.insert-shape','length','getBatchUpdateOp','adjustValues','add','rotateEnabled','getShapeDisplayNames','preUndos','setConfig','ang','_linesIds','getEndConnectInfo','getShapeTypeById','addShape','sheet.command.set-shape-rotate','_getConnectPointInfo','left','dispose','preRedos','getShapeDataById','getAdjustValueByName','type','SHEET_SHAPE_PLUGIN','call','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','getShapeData','flipY','fill','values','384500XizpTB','sheet.mutation.update-shape-data','version','from','sheet.command.set-shape-drawing-data','getBasicShapeRelation','sheet.command.toggle-shape-flip','rotation','5HhUqEA','723460OLhgAY','filter','getBasicShapeType','worldRect','_deserializeShapeForUnit','getSkeleton','lineShapeId','INSERT','redos','_config','insertShape','position','_commandService','_shapes','delete','isFrom','getDrawingData','6bPnyrz','getShapeRelation','getDrawingByParam','getOwnPropertyDescriptor','_groupIds','_ensureShapeModelManager','toPrimitive','constructor','14603810YnCHYo','transform','getCellIndexAndOffsetByPosition','UNIVER_SHEET','_addLineRerouteUpdates','function','DRAWING_SHAPE','getId','defineProperty','_sheetsShapeService','pluginName'];_0xb7bc=function(){return _0x1699fe;};return _0xb7bc();}export{R as DEFAULT_SHAPE_HEIGHT,L as DEFAULT_SHAPE_WIDTH,Y as InsertShapeCommand,q as InsertSheetsShapeMutation,J as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,Q as SetSheetsShapeRotateCommand,te as SetSheetsShapeTextVerticalToggleCommand,K as SheetsShapeService,Z as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,X as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeMutation};
|
|
1
|
+
const _0x5c01d6=_0xfb69;(function(_0x58e130,_0x127b57){const _0x1da190=_0xfb69,_0x2b0e32=_0x58e130();while(!![]){try{const _0x378088=parseInt(_0x1da190(0x160))/0x1+-parseInt(_0x1da190(0x131))/0x2*(parseInt(_0x1da190(0x1d9))/0x3)+-parseInt(_0x1da190(0x1db))/0x4+-parseInt(_0x1da190(0x130))/0x5*(-parseInt(_0x1da190(0x1ce))/0x6)+-parseInt(_0x1da190(0x127))/0x7+parseInt(_0x1da190(0x1dc))/0x8+parseInt(_0x1da190(0x15f))/0x9*(parseInt(_0x1da190(0x1bb))/0xa);if(_0x378088===_0x127b57)break;else _0x2b0e32['push'](_0x2b0e32['shift']());}catch(_0x49c7f5){_0x2b0e32['push'](_0x2b0e32['shift']());}}}(_0x301a,0xbcd50));import{IShapeHostAdapterRegistry as _0x10d679,ShapeModel as _0x57a534,UniverShapePlugin as _0x53390e,computeConnectorRouteLayout as _0x2fc0b6,createUniqueShapeName as _0x4b528f,getBasicShapeRotateBound as _0x272c36,isConnectorShape as _0x517c66,routeConnectorLineShape as _0x4cca6c}from'@univerjs-pro/engine-shape';import{ArrangeTypeEnum as _0x4abaa6,CommandType as _0x22ee2b,DependentOn as _0x59fb5e,Disposable as _0x1dc17c,DrawingTypeEnum as _0x3fcfb7,ICommandService as _0x5c6888,IConfigService as _0x344a70,IResourceManagerService as _0x11cd5e,IUndoRedoService as _0x1107ce,IUniverInstanceService as _0x1d3366,Inject as _0x36bfee,Injector as _0x2fd07f,Plugin as _0x9b668a,Tools as _0xfd6b8f,UniverInstanceType as _0xf7260a,generateRandomId as _0x518436,merge as _0x12549a,sequenceExecute as _0x263a3c,touchDependencies as _0x1f2a99}from'@univerjs/core';import{SheetInterceptorService as _0x133228,SheetSkeletonService as _0x3c7b6a,getSheetCommandTarget as _0x2abc39}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x312f26,DrawingApplyType as _0x484cad,ISheetDrawingService as _0xf49d13,InsertSheetDrawingCommand as _0x2949ae,RemoveSheetDrawingCommand as _0x4cbcd6,SetDrawingApplyMutation as _0x187b38,SetDrawingArrangeCommand as _0xc2414d,SetSheetDrawingCommand as _0xbe173f,transformToAxisAlignPosition as _0x5d5502,transformToDrawingPosition as _0x526ffb}from'@univerjs/sheets-drawing';function _0xfb69(_0x27ba8f,_0x536348){_0x27ba8f=_0x27ba8f-0x125;const _0x301a1d=_0x301a();let _0xfb6914=_0x301a1d[_0x27ba8f];return _0xfb6914;}import{UniverLicensePlugin as _0xaf9fa9}from'@univerjs-pro/license';import{IDrawingManagerService as _0x42c33a}from'@univerjs/drawing';const B=0xc8,V=0xc8;function H(_0x4ed0ba){'@babel/helpers - typeof';const _0x78c3f8=_0xfb69;return H=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x78c3f8(0x147)?function(_0x381510){return typeof _0x381510;}:function(_0x2419d9){const _0x5da360=_0x78c3f8;return _0x2419d9&&typeof Symbol=='function'&&_0x2419d9[_0x5da360(0x152)]===Symbol&&_0x2419d9!==Symbol[_0x5da360(0x150)]?_0x5da360(0x147):typeof _0x2419d9;},H(_0x4ed0ba);}function U(_0x520ed9,_0x12d020){const _0x124886=_0xfb69;if(H(_0x520ed9)!=_0x124886(0x1d1)||!_0x520ed9)return _0x520ed9;var _0x40d5b9=_0x520ed9[Symbol[_0x124886(0x1ca)]];if(_0x40d5b9!==void 0x0){var _0x5c4c51=_0x40d5b9[_0x124886(0x1b6)](_0x520ed9,_0x12d020||'default');if(H(_0x5c4c51)!='object')return _0x5c4c51;throw TypeError(_0x124886(0x181));}return(_0x12d020===_0x124886(0x12c)?String:Number)(_0x520ed9);}function W(_0x4fd953){const _0x2a2219=_0xfb69;var _0x1200ca=U(_0x4fd953,_0x2a2219(0x12c));return H(_0x1200ca)==_0x2a2219(0x147)?_0x1200ca:_0x1200ca+'';}function G(_0x1b860b,_0x2a4704,_0x5e4214){const _0x4e7c8b=_0xfb69;return(_0x2a4704=W(_0x2a4704))in _0x1b860b?Object[_0x4e7c8b(0x12e)](_0x1b860b,_0x2a4704,{'value':_0x5e4214,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1b860b[_0x2a4704]=_0x5e4214,_0x1b860b;}var K=class extends _0x1dc17c{constructor(){const _0x58f613=_0xfb69;super(),G(this,_0x58f613(0x184),new Map()),G(this,_0x58f613(0x17b),new Set()),G(this,_0x58f613(0x1b0),new Set());}[_0x5c01d6(0x1a4)](_0x345f40,_0x548dbd,_0x4a6c49,_0x36bef4){const _0x13b31b=_0x5c01d6;let _0x596c52=new _0x57a534(_0x345f40,_0x548dbd,_0x4a6c49,_0x36bef4);return this[_0x13b31b(0x184)][_0x13b31b(0x1a6)](_0x548dbd,_0x596c52),_0x517c66(_0x345f40)&&this[_0x13b31b(0x17b)][_0x13b31b(0x1ab)](_0x548dbd),_0x596c52;}[_0x5c01d6(0x1a3)](_0x58bda9){const _0x9c816e=_0x5c01d6;let _0x3984a2=[];for(let _0x24c36e of this[_0x9c816e(0x17b)]){let _0x1d4776=this['_shapes']['get'](_0x24c36e);if(_0x1d4776){let _0x41d70f=_0x1d4776[_0x9c816e(0x183)]();if(_0x41d70f){var _0x27ef12,_0x4b34c8;((_0x27ef12=_0x41d70f['from'])==null?void 0x0:_0x27ef12['shapeId'])===_0x58bda9&&_0x3984a2['push']({..._0x41d70f[_0x9c816e(0x1d2)],'lineShapeId':_0x24c36e,'isFrom':!0x0}),((_0x4b34c8=_0x41d70f['to'])==null?void 0x0:_0x4b34c8[_0x9c816e(0x142)])===_0x58bda9&&_0x3984a2[_0x9c816e(0x189)]({..._0x41d70f['to'],'lineShapeId':_0x24c36e,'isFrom':!0x1});}}}return _0x3984a2;}['getLineShapeRelation'](_0x301c9a){const _0x5296a2=_0x5c01d6;let _0x39d7d4=this[_0x5296a2(0x184)][_0x5296a2(0x1a0)](_0x301c9a);if(_0x39d7d4)return _0x39d7d4[_0x5296a2(0x183)]();}['getShapeType'](_0x46aa52){const _0x3c7a9d=_0x5c01d6;let _0x3f2a80=this[_0x3c7a9d(0x184)]['get'](_0x46aa52);if(_0x3f2a80)return _0x3f2a80[_0x3c7a9d(0x1be)]();}[_0x5c01d6(0x158)](_0x201fea){const _0x4e2d44=_0x5c01d6;return this[_0x4e2d44(0x184)][_0x4e2d44(0x155)](_0x201fea);}['getShapeDisplayNames'](){const _0x91eec5=_0x5c01d6;return Array[_0x91eec5(0x1d2)](this[_0x91eec5(0x184)][_0x91eec5(0x1d7)]())['map'](_0x4764ee=>_0x4764ee[_0x91eec5(0x12b)]()||_0x4764ee['getId']());}[_0x5c01d6(0x143)](_0x5e0f09){const _0x1bb501=_0x5c01d6;let _0x28bb76=this[_0x1bb501(0x184)][_0x1bb501(0x1a0)](_0x5e0f09);_0x28bb76&&(_0x517c66(_0x28bb76[_0x1bb501(0x1be)]())&&this['_linesIds'][_0x1bb501(0x195)](_0x5e0f09),this['_shapes'][_0x1bb501(0x195)](_0x5e0f09));}['toJSON'](){const _0x1c93c5=_0x5c01d6;let _0x2415b6=[];return this[_0x1c93c5(0x184)][_0x1c93c5(0x1da)](_0x49bd99=>{const _0xef5577=_0x1c93c5;_0x2415b6[_0xef5577(0x189)](_0x49bd99[_0xef5577(0x196)]());}),_0x2415b6;}[_0x5c01d6(0x1c4)](_0x1b4b65){const _0x41e318=_0x5c01d6;for(let _0x5d634e of _0x1b4b65){let {id:_0x2cf153,shapeType:_0x2d6a7d,name:_0x21b7e7}=_0x5d634e,_0x4fef9a=this[_0x41e318(0x1a4)](_0x2d6a7d,_0x2cf153,_0x5d634e['shapeData'],_0x21b7e7);_0x4fef9a&&_0x4fef9a['isLineShape']()&&this['_linesIds'][_0x41e318(0x1ab)](_0x2cf153);}}[_0x5c01d6(0x1a8)](){const _0x5f045b=_0x5c01d6;this['_disposed']||(this[_0x5f045b(0x184)]['forEach'](_0x1b73c0=>{const _0x4f8349=_0x5f045b;_0x1b73c0[_0x4f8349(0x1a8)]();}),this[_0x5f045b(0x184)][_0x5f045b(0x1cb)](),this['_linesIds'][_0x5f045b(0x1cb)](),this['_groupIds'][_0x5f045b(0x1cb)](),super[_0x5f045b(0x1a8)]());}};function q(_0x21409b,_0x48f56a){return function(_0x54bb1b,_0x44a5fa){_0x48f56a(_0x54bb1b,_0x44a5fa,_0x21409b);};}function J(_0x4241b,_0x569e6f,_0x4dc27f,_0x2c44a5){const _0x22e4d1=_0x5c01d6;var _0x5da1f7=arguments['length'],_0x3d2450=_0x5da1f7<0x3?_0x569e6f:_0x2c44a5===null?_0x2c44a5=Object[_0x22e4d1(0x1bd)](_0x569e6f,_0x4dc27f):_0x2c44a5,_0xd325ce;if(typeof Reflect==_0x22e4d1(0x1d1)&&typeof Reflect[_0x22e4d1(0x16e)]=='function')_0x3d2450=Reflect[_0x22e4d1(0x16e)](_0x4241b,_0x569e6f,_0x4dc27f,_0x2c44a5);else{for(var _0x55632d=_0x4241b['length']-0x1;_0x55632d>=0x0;_0x55632d--)(_0xd325ce=_0x4241b[_0x55632d])&&(_0x3d2450=(_0x5da1f7<0x3?_0xd325ce(_0x3d2450):_0x5da1f7>0x3?_0xd325ce(_0x569e6f,_0x4dc27f,_0x3d2450):_0xd325ce(_0x569e6f,_0x4dc27f))||_0x3d2450);}return _0x5da1f7>0x3&&_0x3d2450&&Object[_0x22e4d1(0x12e)](_0x569e6f,_0x4dc27f,_0x3d2450),_0x3d2450;}let Y=class extends _0x1dc17c{constructor(_0x56203b){const _0x2d87c7=_0x5c01d6;super(),this[_0x2d87c7(0x145)]=_0x56203b,G(this,_0x2d87c7(0x17a),new Map()),this['_initSnapshot']();}['_ensureShapeModelManager'](_0xd8ec4f,_0x1c7cf5){const _0x471e69=_0x5c01d6;let _0xd15577=this[_0x471e69(0x17a)]['get'](_0xd8ec4f);_0xd15577||(_0xd15577=new Map(),this[_0x471e69(0x17a)]['set'](_0xd8ec4f,_0xd15577));let _0x20ee1a=_0xd15577[_0x471e69(0x1a0)](_0x1c7cf5);return _0x20ee1a||(_0x20ee1a=new K(),_0xd15577[_0x471e69(0x1a6)](_0x1c7cf5,_0x20ee1a)),_0x20ee1a;}['insertShape'](_0x21d3fb,_0x395dbd,_0x3f9ea,_0x97ad1e,_0x509c60,_0x4ad008){const _0x591938=_0x5c01d6;this[_0x591938(0x17e)](_0x21d3fb,_0x395dbd)['addShape'](_0x3f9ea,_0x97ad1e,_0x509c60,_0x4ad008);}['removeShape'](_0x448411,_0x50f52b,_0x4c2402){const _0x3aecec=_0x5c01d6;this[_0x3aecec(0x17e)](_0x448411,_0x50f52b)['removeShape'](_0x4c2402);}['getBasicShapeType'](_0x3a2a34,_0x1edd88,_0x3cd75f){return this['_ensureShapeModelManager'](_0x3a2a34,_0x1edd88)['getShapeType'](_0x3cd75f);}[_0x5c01d6(0x1be)](_0x1f76ee,_0x491ddb,_0x38b62a){const _0x1a1b90=_0x5c01d6;return this[_0x1a1b90(0x17e)](_0x1f76ee,_0x491ddb)['getShapeType'](_0x38b62a);}[_0x5c01d6(0x158)](_0x56b0a5,_0x2c503c,_0x3d3da4){const _0x3003d3=_0x5c01d6;return this[_0x3003d3(0x17e)](_0x56b0a5,_0x2c503c)[_0x3003d3(0x158)](_0x3d3da4);}[_0x5c01d6(0x172)](_0xc125b,_0x2d993d,_0x3c5de8){const _0x5f1cb4=_0x5c01d6;return this['_ensureShapeModelManager'](_0xc125b,_0x2d993d)[_0x5f1cb4(0x1be)](_0x3c5de8);}[_0x5c01d6(0x182)](_0x256627,_0xb4b818,_0x10babc){const _0x1a6846=_0x5c01d6;let _0x2954d8=this[_0x1a6846(0x17e)](_0x256627,_0xb4b818);if(!_0x2954d8[_0x1a6846(0x1be)](_0x10babc))return;let _0x28eebb=_0x2954d8['_shapes'][_0x1a6846(0x1a0)](_0x10babc);if(_0x28eebb)return _0x28eebb['getShapeData']();}[_0x5c01d6(0x139)](_0x2d73e3,_0x4df4c3){const _0x5a1e46=_0x5c01d6;return this['_ensureShapeModelManager'](_0x2d73e3,_0x4df4c3)[_0x5a1e46(0x139)]();}[_0x5c01d6(0x148)](_0x177c8b,_0x41f43e,_0xdc0547){const _0x318451=_0x5c01d6;return this[_0x318451(0x17e)](_0x177c8b,_0x41f43e)['_shapes']['get'](_0xdc0547);}[_0x5c01d6(0x1a3)](_0x3974a7,_0x5303bf,_0x2a7f3e){const _0x279ebd=_0x5c01d6;return this[_0x279ebd(0x17e)](_0x3974a7,_0x5303bf)[_0x279ebd(0x1a3)](_0x2a7f3e);}[_0x5c01d6(0x18c)](_0x3dcefb,_0x56fbb5,_0x4825c8){const _0x13f2c6=_0x5c01d6;let _0x1be301=this[_0x13f2c6(0x17e)](_0x3dcefb,_0x56fbb5)[_0x13f2c6(0x184)][_0x13f2c6(0x1a0)](_0x4825c8);if(_0x1be301)return _0x1be301[_0x13f2c6(0x183)]();}['setShapeType'](){}['_serializeShapeForUnit'](_0x120ca8){const _0x5a92c7=_0x5c01d6;let _0x5abdcf={},_0x551851=this[_0x5a92c7(0x17a)][_0x5a92c7(0x1a0)](_0x120ca8);return _0x551851&&_0x551851[_0x5a92c7(0x1da)]((_0x436191,_0x4d5a28)=>{const _0x382543=_0x5a92c7;let _0xf02f30=_0x436191['toJSON']();_0xf02f30[_0x382543(0x1b5)]>0x0&&(_0x5abdcf[_0x4d5a28]=_0xf02f30);}),JSON[_0x5a92c7(0x1d4)](_0x5abdcf);}['_deserializeShapeForUnit'](_0xb2f4e,_0x3333e5){const _0x19819e=_0x5c01d6;Object[_0x19819e(0x186)](_0x3333e5)[_0x19819e(0x1da)](_0x5b6ad9=>{const _0x54a925=_0x19819e;this['_ensureShapeModelManager'](_0xb2f4e,_0x5b6ad9)[_0x54a925(0x1c4)](_0x3333e5[_0x5b6ad9]);});}['toJSON'](){const _0x4ceba7=_0x5c01d6;let _0x4344bb={};return this['_shapeModelManagerMap'][_0x4ceba7(0x1da)]((_0x2c601a,_0xcb417c)=>{_0x4344bb[_0xcb417c]={},_0x2c601a['forEach']((_0x194925,_0x1175d1)=>{const _0x3397d9=_0xfb69;_0x4344bb[_0xcb417c][_0x1175d1]=_0x194925[_0x3397d9(0x196)]();});}),_0x4344bb;}[_0x5c01d6(0x1c4)](_0x5bf113){const _0x410d76=_0x5c01d6;Object[_0x410d76(0x186)](_0x5bf113)['forEach'](_0xd394eb=>{const _0x44298d=_0x410d76;let _0x4abf7b=_0x5bf113[_0xd394eb];Object[_0x44298d(0x186)](_0x4abf7b)['forEach'](_0x3cbabf=>{const _0xb3892a=_0x44298d;this['_ensureShapeModelManager'](_0xd394eb,_0x3cbabf)[_0xb3892a(0x1c4)](_0x4abf7b[_0x3cbabf]);});});}[_0x5c01d6(0x197)](){const _0x5ecbf4=_0x5c01d6;this['_resourcesManagerService'][_0x5ecbf4(0x1d5)]({'pluginName':_0x5ecbf4(0x13c),'businesses':[_0xf7260a['UNIVER_SHEET']],'toJson':_0x4f9b3c=>this[_0x5ecbf4(0x14c)](_0x4f9b3c),'parseJson':_0x3f8b83=>JSON[_0x5ecbf4(0x179)](_0x3f8b83),'onLoad':(_0x45020b,_0x28a058)=>{const _0x50003b=_0x5ecbf4;this[_0x50003b(0x1a5)](_0x45020b,_0x28a058);},'onUnLoad':_0x4ccdc7=>{const _0x43e8ce=_0x5ecbf4;let _0x2c0081=this[_0x43e8ce(0x17a)][_0x43e8ce(0x1a0)](_0x4ccdc7);_0x2c0081&&(_0x2c0081[_0x43e8ce(0x1da)](_0x361197=>{const _0x51de24=_0x43e8ce;_0x361197[_0x51de24(0x1a8)]();}),this['_shapeModelManagerMap'][_0x43e8ce(0x195)](_0x4ccdc7));}});}[_0x5c01d6(0x1a8)](){const _0x36ae33=_0x5c01d6;this[_0x36ae33(0x17a)]['forEach'](_0x30e922=>{_0x30e922['forEach'](_0x5c333c=>{const _0x1f12e8=_0xfb69;_0x5c333c[_0x1f12e8(0x1a8)]();});});}};Y=J([q(0x0,_0x11cd5e)],Y);const X={'id':_0x5c01d6(0x16a),'type':_0x22ee2b['MUTATION'],'handler':(_0x30b2ee,_0xcf72d6)=>{const _0x17b304=_0x5c01d6;let {unitId:_0x523bd5,subUnitId:_0x2f1c5f,shapeType:_0x2328eb,shapeId:_0x1b9244,shapeName:_0x1658d0,shapeData:_0xa78170}=_0xcf72d6;return _0x30b2ee[_0x17b304(0x1a0)](Y)[_0x17b304(0x1c3)](_0x523bd5,_0x2f1c5f,_0x2328eb,_0x1b9244,_0xa78170,_0x1658d0),!0x0;}},Z={'id':'sheet.mutation.remove-shape','type':_0x22ee2b['MUTATION'],'handler':(_0x466f6a,_0x5aea19)=>{const _0x3a6dd5=_0x5c01d6;let {unitId:_0x28d662,subUnitId:_0x119d76,shapeId:_0x547f14}=_0x5aea19;return _0x466f6a[_0x3a6dd5(0x1a0)](Y)[_0x3a6dd5(0x143)](_0x28d662,_0x119d76,_0x547f14),!0x0;}},Q={'type':_0x22ee2b[_0x5c01d6(0x169)],'id':_0x5c01d6(0x15d),'handler':(_0x2173cc,_0x5c3a75)=>{const _0xb5b020=_0x5c01d6;var _0x571e35,_0xc24c05,_0x1d5198,_0x1ffa30,_0x4fb7e7,_0x523a59,_0x293f96;let _0x376e69=_0x2abc39(_0x2173cc[_0xb5b020(0x1a0)](_0x1d3366),_0x5c3a75);if(!_0x376e69)return!0x1;let _0x184f67=_0x2173cc[_0xb5b020(0x1a0)](_0x3c7b6a),{unitId:_0x11a572,subUnitId:_0x4768d5}=_0x376e69,_0xc5b40f=_0x184f67['ensureSkeleton'](_0x11a572,_0x4768d5);if(!_0xc5b40f)return!0x1;let _0x351664=_0x2173cc['get'](_0x5c6888),_0x486935=_0x2173cc[_0xb5b020(0x1a0)](_0x1107ce),_0x2eab46=_0x2173cc[_0xb5b020(0x1a0)](_0x133228),_0x169f86=_0x2173cc['get'](_0xf49d13),_0x5c1ba5=_0x2173cc[_0xb5b020(0x1a0)](Y),{shapeType:_0x41cbc3,shapeData:_0x2d85da}=_0x5c3a75,_0x53d0ad=_0x5c3a75[_0xb5b020(0x142)]||_0x518436(),_0x3f61a9={'unitId':_0x11a572,'subUnitId':_0x4768d5,'shapeId':_0x53d0ad,'shapeName':(_0x571e35=_0x5c3a75['shapeName'])==null?_0x4b528f(_0x41cbc3,_0x5c1ba5[_0xb5b020(0x139)](_0x11a572,_0x4768d5)):_0x571e35,'shapeType':_0x41cbc3,'shapeData':_0x2d85da},_0xc37029=_0x5c3a75[_0xb5b020(0x18d)]||0xc8,_0x2904dc=_0x5c3a75[_0xb5b020(0x137)]||0xc8,_0x2f7684=0x0,_0x3f6317=0x0;if(_0x5c3a75['position']){let {x:_0x40cc2e,y:_0x594832}=_0x5c3a75['position'];_0x2f7684=_0x40cc2e,_0x3f6317=_0x594832;}else{if(_0x5c3a75[_0xb5b020(0x16d)]){let {startRow:_0x14ed7a,startColumn:_0x390f90}=_0x5c3a75[_0xb5b020(0x16d)],_0x92851c=_0xc5b40f[_0xb5b020(0x133)](_0x14ed7a,_0x390f90);_0x2f7684=_0x92851c[_0xb5b020(0x1a2)]+0xa,_0x3f6317=_0x92851c['startY']+0xa;}}let _0x923d36={'left':_0x2f7684,'top':_0x3f6317,'width':_0xc37029,'height':_0x2904dc,'angle':(_0xc24c05=_0x5c3a75['rotation'])==null?0x0:_0xc24c05,'flipX':(_0x1d5198=_0x5c3a75[_0xb5b020(0x13b)])==null?!0x1:_0x1d5198,'flipY':(_0x1ffa30=_0x5c3a75[_0xb5b020(0x1b1)])==null?!0x1:_0x1ffa30},_0x5b4677=_0x526ffb(_0x923d36,_0xc5b40f),_0x357a60=_0x5d5502(_0x923d36,_0xc5b40f),_0x3f9f0a={'unitId':_0x11a572,'subUnitId':_0x4768d5,'drawingId':_0x53d0ad,'drawingType':_0x3fcfb7[_0xb5b020(0x12d)],'name':_0x5c3a75[_0xb5b020(0x146)],'description':_0x5c3a75['description'],'sheetTransform':_0x5b4677,'transform':_0x923d36,'data':{'shapeType':_0x41cbc3,'shapeData':_0x2d85da},'axisAlignSheetTransform':_0x357a60,'allowTransform':!0x0,'hidden':_0x5c3a75[_0xb5b020(0x136)]===!0x1,'selectable':(_0x4fb7e7=_0x5c3a75[_0xb5b020(0x15b)])==null?!0x0:_0x4fb7e7};_0x517c66(_0x41cbc3)&&(_0x3f9f0a[_0xb5b020(0x1b4)]['fill']=!0x1,_0x3f9f0a[_0xb5b020(0x1b4)][_0xb5b020(0x15c)]=!0x1,_0x3f9f0a[_0xb5b020(0x1b4)][_0xb5b020(0x140)]=!0x1,_0x3f9f0a[_0xb5b020(0x1b4)][_0xb5b020(0x1aa)]=!0x1,_0x3f9f0a[_0xb5b020(0x1d8)][_0xb5b020(0x15c)]=!0x1,_0x3f9f0a[_0xb5b020(0x1d8)][_0xb5b020(0x140)]=!0x1,_0x3f9f0a[_0xb5b020(0x1d8)][_0xb5b020(0x1aa)]=!0x1);let {undo:_0x4679dd,redo:_0x19c7bc,objects:_0x45ebd1}=_0x169f86[_0xb5b020(0x151)]([_0x3f9f0a]),_0x1bddf9=_0x2eab46[_0xb5b020(0x14f)]({'id':_0x2949ae['id'],'params':{'unitId':_0x11a572,'drawings':[_0x3f9f0a]}}),_0x347f13=[...(_0x523a59=_0x1bddf9['preRedos'])==null?[]:_0x523a59,{'id':_0x187b38['id'],'params':{'unitId':_0x11a572,'subUnitId':_0x4768d5,'op':_0x19c7bc,'objects':_0x45ebd1,'type':_0x484cad[_0xb5b020(0x1c9)]}},{'id':_0x312f26['id'],'params':[_0x11a572]},..._0x1bddf9['redos'],{'id':X['id'],'params':_0x3f61a9}],_0x53e844=[{'id':Z['id'],'params':{'unitId':_0x11a572,'subUnitId':_0x4768d5,'shapeId':_0x53d0ad}},...(_0x293f96=_0x1bddf9[_0xb5b020(0x141)])==null?[]:_0x293f96,{'id':_0x187b38['id'],'params':{'unitId':_0x11a572,'subUnitId':_0x4768d5,'op':_0x4679dd,'objects':_0x45ebd1,'type':_0x484cad[_0xb5b020(0x192)]}},{'id':_0x312f26['id'],'params':[_0x11a572]},..._0x1bddf9[_0xb5b020(0x157)]];return _0x263a3c(_0x347f13,_0x351664)[_0xb5b020(0x16c)]?(_0x486935[_0xb5b020(0x1b8)]({'unitID':_0x11a572,'undoMutations':_0x53e844,'redoMutations':_0x347f13}),!0x0):!0x1;}},$={'id':_0x5c01d6(0x1b7),'type':_0x22ee2b['MUTATION'],'handler':(_0x3f9f75,_0x1557c5)=>{const _0x5cb5b9=_0x5c01d6;let {unitId:_0x4a5609,subUnitId:_0x326c7e,shapeType:_0x1a6ca5,shapeId:_0x270060,shapeData:_0x1c9d68}=_0x1557c5,_0x5d36d9=_0x3f9f75[_0x5cb5b9(0x1a0)](Y)[_0x5cb5b9(0x148)](_0x4a5609,_0x326c7e,_0x270060);return _0x5d36d9&&(_0x1a6ca5!==void 0x0&&_0x5d36d9['setShapeType'](_0x1a6ca5),_0x1c9d68&&(_0x5d36d9==null||_0x5d36d9[_0x5cb5b9(0x156)](_0x1c9d68,!0x0))),!0x0;}},ne={'type':_0x22ee2b[_0x5c01d6(0x169)],'id':'sheet.command.set-shape-drawing-data','handler':(_0x39c886,_0x57c03f)=>{const _0xdd26ba=_0x5c01d6;var _0x255d17,_0x39d4ac,_0x1a6cbc,_0x4d5f9c,_0x3c1e69;let _0x25b154=_0x2abc39(_0x39c886[_0xdd26ba(0x1a0)](_0x1d3366),_0x57c03f);if(!_0x25b154)return!0x1;let _0x7c5f5f=_0x39c886['get'](_0x3c7b6a),{unitId:_0x528c5d,subUnitId:_0x2d6377}=_0x25b154,_0x47a159=_0x7c5f5f[_0xdd26ba(0x193)](_0x528c5d,_0x2d6377);if(!_0x47a159)return!0x1;let _0x24acef=_0x39c886[_0xdd26ba(0x1a0)](Y),{shapeId:_0x49c044,shapeType:_0x146a88,shapeData:_0x16150e,position:_0x165eb4,width:_0x1b7771,height:_0x71b475}=_0x57c03f,_0x3a6298=_0x24acef[_0xdd26ba(0x148)](_0x528c5d,_0x2d6377,_0x49c044);if(!_0x3a6298)return!0x1;let _0xa69028=_0x39c886[_0xdd26ba(0x1a0)](_0x5c6888),_0x2dbf14=_0x39c886[_0xdd26ba(0x1a0)](_0x1107ce),_0x479266=_0x39c886[_0xdd26ba(0x1a0)](_0x133228),_0x429e4f=_0x39c886[_0xdd26ba(0x1a0)](_0xf49d13),_0x4c9703={'unitId':_0x528c5d,'subUnitId':_0x2d6377,'shapeId':_0x49c044,'shapeType':_0x146a88,'shapeData':_0x16150e},_0x56574a=_0x3a6298[_0xdd26ba(0x1be)](),_0x571ba7=_0x3a6298[_0xdd26ba(0x149)](),{x:_0x99662f,y:_0x48db7c}=_0x165eb4,_0x107425={'left':_0x99662f,'top':_0x48db7c,'width':_0x1b7771,'height':_0x71b475,'angle':(_0x255d17=_0x57c03f['rotation'])==null?0x0:_0x255d17,'flipX':(_0x39d4ac=_0x57c03f[_0xdd26ba(0x13b)])==null?!0x1:_0x39d4ac,'flipY':(_0x1a6cbc=_0x57c03f[_0xdd26ba(0x1b1)])==null?!0x1:_0x1a6cbc},_0x3199a6=_0x526ffb(_0x107425,_0x47a159),_0x12df75=_0x5d5502(_0x107425,_0x47a159),_0x1b33fa={'unitId':_0x528c5d,'subUnitId':_0x2d6377,'drawingId':_0x49c044,'drawingType':_0x3fcfb7[_0xdd26ba(0x12d)],'name':_0x57c03f[_0xdd26ba(0x146)],'description':_0x57c03f[_0xdd26ba(0x191)],'sheetTransform':_0x3199a6,'transform':_0x107425,'data':{'shapeType':_0x146a88,'shapeData':_0x16150e},'axisAlignSheetTransform':_0x12df75,'allowTransform':!0x0,'hidden':!_0x57c03f[_0xdd26ba(0x136)],'selectable':_0x57c03f['selectable']};_0x517c66(_0x146a88)&&(_0x1b33fa[_0xdd26ba(0x1b4)][_0xdd26ba(0x161)]=!0x1,_0x1b33fa[_0xdd26ba(0x1b4)][_0xdd26ba(0x15c)]=!0x1,_0x1b33fa[_0xdd26ba(0x1b4)][_0xdd26ba(0x140)]=!0x1,_0x1b33fa[_0xdd26ba(0x1b4)][_0xdd26ba(0x1aa)]=!0x1,_0x1b33fa[_0xdd26ba(0x1d8)]['rotateEnabled']=!0x1,_0x1b33fa[_0xdd26ba(0x1d8)]['resizeEnabled']=!0x1,_0x1b33fa[_0xdd26ba(0x1d8)][_0xdd26ba(0x1aa)]=!0x1);let {undo:_0x1bd4cd,redo:_0x329549,objects:_0x5a91c6}=_0x429e4f[_0xdd26ba(0x14d)]([_0x1b33fa]),_0x5854b2=_0x479266[_0xdd26ba(0x14f)]({'id':_0xbe173f['id'],'params':{'unitId':_0x528c5d,'drawings':[_0x1b33fa]}}),_0x232d83=[...(_0x4d5f9c=_0x5854b2[_0xdd26ba(0x174)])==null?[]:_0x4d5f9c,{'id':_0x187b38['id'],'params':{'unitId':_0x528c5d,'subUnitId':_0x2d6377,'op':_0x329549,'objects':_0x5a91c6,'type':_0x484cad[_0xdd26ba(0x180)]}},{'id':_0x312f26['id'],'params':[_0x528c5d]},..._0x5854b2[_0xdd26ba(0x1cf)],{'id':$['id'],'params':_0x4c9703}],_0x1b3685=[...(_0x3c1e69=_0x5854b2['preUndos'])==null?[]:_0x3c1e69,{'id':_0x187b38['id'],'params':{'unitId':_0x528c5d,'subUnitId':_0x2d6377,'op':_0x1bd4cd,'objects':_0x5a91c6,'type':_0x484cad[_0xdd26ba(0x180)]}},{'id':_0x312f26['id'],'params':[_0x528c5d]},..._0x5854b2[_0xdd26ba(0x157)],{'id':$['id'],'params':{'unitId':_0x528c5d,'subUnitId':_0x2d6377,'shapeType':_0x56574a,'shapeId':_0x49c044,'shapeData':_0x571ba7}}];return _0x263a3c(_0x232d83,_0xa69028)[_0xdd26ba(0x16c)]?(_0x2dbf14[_0xdd26ba(0x1b8)]({'unitID':_0x528c5d,'undoMutations':_0x1b3685,'redoMutations':_0x232d83}),!0x0):!0x1;}},re={'type':_0x22ee2b[_0x5c01d6(0x169)],'id':_0x5c01d6(0x16b),'handler':(_0x126767,_0x4a0b79)=>{const _0x1f4545=_0x5c01d6;var _0x10e471,_0x32e5ca;let _0xd6fbce=_0x2abc39(_0x126767[_0x1f4545(0x1a0)](_0x1d3366),_0x4a0b79);if(!_0xd6fbce)return!0x1;let _0x52a777=_0x126767[_0x1f4545(0x1a0)](_0x3c7b6a),{unitId:_0x4c60bb,subUnitId:_0x4fb292}=_0xd6fbce,_0x8b9da9=_0x52a777[_0x1f4545(0x177)](_0x4c60bb,_0x4fb292);if(!_0x8b9da9)return!0x1;let _0x19920b=_0x126767[_0x1f4545(0x1a0)](_0xf49d13),{shapeId:_0x40d9d8,flipH:_0x5e6e92,flipV:_0x5e2f64}=_0x4a0b79,_0x494524=_0x19920b[_0x1f4545(0x187)]({'unitId':_0x4c60bb,'subUnitId':_0x4fb292,'drawingId':_0x40d9d8});if(!_0x494524)return!0x1;let _0x3b5d78=_0x126767[_0x1f4545(0x1a0)](Y)[_0x1f4545(0x148)](_0x4c60bb,_0x4fb292,_0x40d9d8);if(!_0x3b5d78)return!0x1;let _0x541133=_0x126767[_0x1f4545(0x1a0)](_0x5c6888),_0x363111=_0x126767[_0x1f4545(0x1a0)](_0x1107ce),_0x1104f4=_0x126767['get'](_0x133228),_0x26b351={..._0x494524['transform']};_0x5e6e92!==void 0x0&&(_0x26b351['flipX']=!_0x26b351[_0x1f4545(0x13b)]),_0x5e2f64!==void 0x0&&(_0x26b351[_0x1f4545(0x1b1)]=!_0x26b351[_0x1f4545(0x1b1)]);let _0x58753d=_0x526ffb(_0x26b351,_0x8b9da9),_0x333edd=_0x5d5502(_0x26b351,_0x8b9da9),_0x7dba7a=_0x3b5d78[_0x1f4545(0x1be)](),_0xbeab32=_0x3b5d78[_0x1f4545(0x149)](),_0x4f230b={'unitId':_0x4c60bb,'subUnitId':_0x4fb292,'drawingId':_0x40d9d8,'drawingType':_0x3fcfb7[_0x1f4545(0x12d)],'sheetTransform':_0x58753d,'transform':_0x26b351,'data':{'shapeType':_0x7dba7a,'shapeData':_0xbeab32},'axisAlignSheetTransform':_0x333edd,'allowTransform':!0x0},{undo:_0x41070b,redo:_0x3e317c,objects:_0x113a64}=_0x19920b[_0x1f4545(0x14d)]([_0x4f230b]),_0x26770f=_0x1104f4[_0x1f4545(0x14f)]({'id':_0xbe173f['id'],'params':{'unitId':_0x4c60bb,'drawings':[_0x4f230b]}}),_0x1634b9=[...(_0x10e471=_0x26770f[_0x1f4545(0x174)])==null?[]:_0x10e471,{'id':_0x187b38['id'],'params':{'unitId':_0x4c60bb,'subUnitId':_0x4fb292,'op':_0x3e317c,'objects':_0x113a64,'type':_0x484cad[_0x1f4545(0x180)]}},{'id':_0x312f26['id'],'params':[_0x4c60bb]},..._0x26770f[_0x1f4545(0x1cf)]],_0x2a49f4=[...(_0x32e5ca=_0x26770f[_0x1f4545(0x141)])==null?[]:_0x32e5ca,{'id':_0x187b38['id'],'params':{'unitId':_0x4c60bb,'subUnitId':_0x4fb292,'op':_0x41070b,'objects':_0x113a64,'type':_0x484cad[_0x1f4545(0x180)]}},{'id':_0x312f26['id'],'params':[_0x4c60bb]},..._0x26770f[_0x1f4545(0x157)]];if(_0x517c66(_0x7dba7a)){let _0x1976e7=_0x3b5d78[_0x1f4545(0x183)]();if(_0x1976e7){let _0x12f056={..._0x1976e7};_0x12f056['from']=void 0x0,_0x12f056['to']=void 0x0,_0x1634b9['push']({'id':$['id'],'params':{'unitId':_0x4c60bb,'subUnitId':_0x4fb292,'shapeId':_0x40d9d8,'shapeType':_0x7dba7a,'shapeData':{'relation':_0x12f056}}}),_0x2a49f4[_0x1f4545(0x189)]({'id':$['id'],'params':{'unitId':_0x4c60bb,'subUnitId':_0x4fb292,'shapeId':_0x40d9d8,'shapeType':_0x7dba7a,'shapeData':{'relation':_0x1976e7}}});}}return _0x263a3c(_0x1634b9,_0x541133)[_0x1f4545(0x16c)]?(_0x363111[_0x1f4545(0x1b8)]({'unitID':_0x4c60bb,'undoMutations':_0x2a49f4,'redoMutations':_0x1634b9}),!0x0):!0x1;}},ie={'type':_0x22ee2b[_0x5c01d6(0x169)],'id':_0x5c01d6(0x1d3),'handler':(_0x3c1821,_0x5daedf)=>{const _0x24caeb=_0x5c01d6;var _0x525617,_0x389fff;let _0x43e79f=_0x2abc39(_0x3c1821[_0x24caeb(0x1a0)](_0x1d3366),_0x5daedf);if(!_0x43e79f)return!0x1;let _0x56306c=_0x3c1821['get'](_0x3c7b6a),{unitId:_0x4d368c,subUnitId:_0x147bc7}=_0x43e79f,_0x55672e=_0x56306c[_0x24caeb(0x177)](_0x4d368c,_0x147bc7);if(!_0x55672e)return!0x1;let _0x4fc8f3=_0x3c1821['get'](_0xf49d13),{shapeId:_0x4cb770,rotate:_0x1231d5}=_0x5daedf,_0x489e34=_0x4fc8f3[_0x24caeb(0x187)]({'unitId':_0x4d368c,'subUnitId':_0x147bc7,'drawingId':_0x4cb770});if(!_0x489e34)return!0x1;let _0x5868a4=_0x3c1821[_0x24caeb(0x1a0)](Y)[_0x24caeb(0x148)](_0x4d368c,_0x147bc7,_0x4cb770);if(!_0x5868a4)return!0x1;let _0x1e1dab=_0x3c1821[_0x24caeb(0x1a0)](_0x5c6888),_0x513bce=_0x3c1821['get'](_0x1107ce),_0x51f2a1=_0x3c1821['get'](_0x133228),_0x180205={..._0x489e34[_0x24caeb(0x1d8)]};_0x1231d5!==void 0x0&&(_0x180205[_0x24caeb(0x15a)]=(_0x180205[_0x24caeb(0x15a)]||0x0)+_0x1231d5);let _0x4a1ac9=_0x526ffb(_0x180205,_0x55672e),_0x8df995=_0x5d5502(_0x180205,_0x55672e),_0x181e9c=_0x5868a4[_0x24caeb(0x1be)](),_0x21b89a=_0x5868a4[_0x24caeb(0x149)](),_0x243929={'unitId':_0x4d368c,'subUnitId':_0x147bc7,'drawingId':_0x4cb770,'drawingType':_0x3fcfb7[_0x24caeb(0x12d)],'sheetTransform':_0x4a1ac9,'transform':_0x180205,'data':{'shapeType':_0x181e9c,'shapeData':_0x21b89a},'axisAlignSheetTransform':_0x8df995,'allowTransform':!0x0},{undo:_0x98e949,redo:_0x2501cc,objects:_0x3f23bb}=_0x4fc8f3[_0x24caeb(0x14d)]([_0x243929]),_0x30fafa=_0x51f2a1[_0x24caeb(0x14f)]({'id':_0xbe173f['id'],'params':{'unitId':_0x4d368c,'drawings':[_0x243929]}}),_0x36e308=[...(_0x525617=_0x30fafa[_0x24caeb(0x174)])==null?[]:_0x525617,{'id':_0x187b38['id'],'params':{'unitId':_0x4d368c,'subUnitId':_0x147bc7,'op':_0x2501cc,'objects':_0x3f23bb,'type':_0x484cad[_0x24caeb(0x180)]}},{'id':_0x312f26['id'],'params':[_0x4d368c]},..._0x30fafa['redos']],_0x3950aa=[...(_0x389fff=_0x30fafa[_0x24caeb(0x141)])==null?[]:_0x389fff,{'id':_0x187b38['id'],'params':{'unitId':_0x4d368c,'subUnitId':_0x147bc7,'op':_0x98e949,'objects':_0x3f23bb,'type':_0x484cad[_0x24caeb(0x180)]}},{'id':_0x312f26['id'],'params':[_0x4d368c]},..._0x30fafa[_0x24caeb(0x157)]];return _0x263a3c(_0x36e308,_0x1e1dab)[_0x24caeb(0x16c)]?(_0x513bce['pushUndoRedo']({'unitID':_0x4d368c,'undoMutations':_0x3950aa,'redoMutations':_0x36e308}),!0x0):!0x1;}},ae={'type':_0x22ee2b[_0x5c01d6(0x169)],'id':_0x5c01d6(0x1b3),'handler':(_0x1edf21,_0xdb697b)=>{const _0x4a2db6=_0x5c01d6;var _0x2d4d08;let _0x15beac=_0x2abc39(_0x1edf21[_0x4a2db6(0x1a0)](_0x1d3366),_0xdb697b);if(!_0x15beac)return!0x1;let {unitId:_0x34daf7,subUnitId:_0x2f6b92}=_0x15beac,{shapeId:_0x162403}=_0xdb697b,_0x5c01f7=_0x1edf21[_0x4a2db6(0x1a0)](Y)[_0x4a2db6(0x148)](_0x34daf7,_0x2f6b92,_0x162403);if(!_0x5c01f7)return!0x1;let _0x32d89e=_0x5c01f7[_0x4a2db6(0x17c)](),_0x51bcbc=(_0x2d4d08=_0x32d89e==null?void 0x0:_0x32d89e[_0x4a2db6(0x164)])==null?!0x0:_0x2d4d08,_0x1ebb46=!_0x51bcbc,_0x472887=_0x1edf21[_0x4a2db6(0x1a0)](_0x5c6888),_0x591fbf=_0x1edf21[_0x4a2db6(0x1a0)](_0x1107ce),_0x44b666={'unitId':_0x34daf7,'subUnitId':_0x2f6b92,'shapeId':_0x162403,'shapeData':{'shapeText':{'isHorizontal':_0x1ebb46}}},_0x276e28={'unitId':_0x34daf7,'subUnitId':_0x2f6b92,'shapeId':_0x162403,'shapeData':{'shapeText':{'isHorizontal':_0x51bcbc}}},_0x4bd2ca=[{'id':$['id'],'params':_0x44b666}],_0x2eb632=[{'id':$['id'],'params':_0x276e28}];return _0x263a3c(_0x4bd2ca,_0x472887)[_0x4a2db6(0x16c)]?(_0x591fbf['pushUndoRedo']({'unitID':_0x34daf7,'undoMutations':_0x2eb632,'redoMutations':_0x4bd2ca}),!0x0):!0x1;}},oe={'type':_0x22ee2b[_0x5c01d6(0x169)],'id':_0x5c01d6(0x1a7),'handler':(_0x252a38,_0x572705)=>{const _0x23f310=_0x5c01d6;var _0x5c2c90,_0x366c1f,_0x2051b9,_0x132363;let _0xf6d3a6=_0x2abc39(_0x252a38[_0x23f310(0x1a0)](_0x1d3366),_0x572705);if(!_0xf6d3a6)return!0x1;let _0xb49e0f=_0x252a38[_0x23f310(0x1a0)](_0x3c7b6a),{unitId:_0x348363,subUnitId:_0x2dea7b}=_0xf6d3a6,_0x4d3975=_0xb49e0f[_0x23f310(0x177)](_0x348363,_0x2dea7b);if(!_0x4d3975)return!0x1;let _0x4e49f4=_0x252a38[_0x23f310(0x1a0)](_0xf49d13),{connectorShapeId:_0x4fea05,width:_0x40c0b9,height:_0x477a33,left:_0x930c23,top:_0x2f959b,flipX:_0x57f365,flipY:_0x2b3625,rotation:_0x3e3856,oldAdjustValues:_0x4501f8,newAdjustValues:_0x48f6ec,oldLineType:_0x1adfa5,newLineType:_0x41be73,oldRelation:_0x21308f,newRelation:_0x126017}=_0x572705,_0x50f402=_0x4e49f4['getDrawingByParam']({'unitId':_0x348363,'subUnitId':_0x2dea7b,'drawingId':_0x4fea05});if(!_0x50f402)return!0x1;let _0x126540=_0x252a38['get'](Y)['getShapeModel'](_0x348363,_0x2dea7b,_0x4fea05);if(!_0x126540)return!0x1;let _0x21f1a1=_0x252a38['get'](_0x5c6888),_0xce91dc=_0x252a38[_0x23f310(0x1a0)](_0x1107ce),_0x1f3c10=_0x252a38[_0x23f310(0x1a0)](_0x133228),_0x5782e7={..._0x50f402[_0x23f310(0x1d8)],'width':_0x40c0b9,'height':_0x477a33,'left':_0x930c23,'top':_0x2f959b,'flipX':_0x57f365,'flipY':_0x2b3625,'angle':(_0x5c2c90=_0x3e3856==null?(_0x366c1f=_0x50f402[_0x23f310(0x1d8)])==null?void 0x0:_0x366c1f[_0x23f310(0x15a)]:_0x3e3856)==null?0x0:_0x5c2c90},_0x4ce822=_0x526ffb(_0x5782e7,_0x4d3975),_0x28a04c=_0x5d5502(_0x5782e7,_0x4d3975),_0x75d8a3=_0x126540[_0x23f310(0x1be)](),_0x4ec28c=_0x126540[_0x23f310(0x149)](),_0x4db1aa={'unitId':_0x348363,'subUnitId':_0x2dea7b,'drawingId':_0x4fea05,'drawingType':_0x3fcfb7[_0x23f310(0x12d)],'sheetTransform':_0x4ce822,'transform':_0x5782e7,'data':{'shapeType':_0x41be73||_0x1adfa5||_0x75d8a3,'shapeData':{..._0x4ec28c,'adjustValues':_0x48f6ec||_0x4501f8||(_0x4ec28c==null?void 0x0:_0x4ec28c['adjustValues']),'relation':_0x126017||_0x21308f||(_0x4ec28c==null?void 0x0:_0x4ec28c[_0x23f310(0x19f)])}},'axisAlignSheetTransform':_0x28a04c,'allowTransform':!0x0},{undo:_0x219092,redo:_0x583def,objects:_0x44142e}=_0x4e49f4[_0x23f310(0x14d)]([_0x4db1aa]),_0xca88bc=_0x1f3c10['onCommandExecute']({'id':_0xbe173f['id'],'params':{'unitId':_0x348363,'drawings':[_0x4db1aa]}}),_0x2cf6d1=[...(_0x2051b9=_0xca88bc[_0x23f310(0x174)])==null?[]:_0x2051b9,{'id':_0x187b38['id'],'params':{'unitId':_0x348363,'subUnitId':_0x2dea7b,'op':_0x583def,'objects':_0x44142e,'type':_0x484cad['UPDATE']}},{'id':_0x312f26['id'],'params':[_0x348363]},..._0xca88bc[_0x23f310(0x1cf)],{'id':$['id'],'params':{'unitId':_0x348363,'subUnitId':_0x2dea7b,'shapeId':_0x4fea05,'shapeType':_0x41be73,'shapeData':{'adjustValues':_0x48f6ec,'relation':_0x126017}}}],_0x2b8b5f=[...(_0x132363=_0xca88bc[_0x23f310(0x141)])==null?[]:_0x132363,{'id':_0x187b38['id'],'params':{'unitId':_0x348363,'subUnitId':_0x2dea7b,'op':_0x219092,'objects':_0x44142e,'type':_0x484cad[_0x23f310(0x180)]}},{'id':_0x312f26['id'],'params':[_0x348363]},..._0xca88bc[_0x23f310(0x157)],{'id':$['id'],'params':{'unitId':_0x348363,'subUnitId':_0x2dea7b,'shapeId':_0x4fea05,'shapeType':_0x75d8a3,'shapeData':{..._0x4ec28c,'adjustValues':_0x4501f8||(_0x4ec28c==null?void 0x0:_0x4ec28c['adjustValues']),'relation':_0x21308f||(_0x4ec28c==null?void 0x0:_0x4ec28c[_0x23f310(0x19f)])}}}];return _0x263a3c(_0x2cf6d1,_0x21f1a1)['result']?(_0xce91dc['pushUndoRedo']({'unitID':_0x348363,'undoMutations':_0x2b8b5f,'redoMutations':_0x2cf6d1}),!0x0):!0x1;}},se={'type':_0x22ee2b['COMMAND'],'id':_0x5c01d6(0x185),'handler':(_0x55af6a,_0x51275a)=>{const _0x257749=_0x5c01d6;var _0x39f30c,_0x4f4acc;let _0x438215=_0x2abc39(_0x55af6a[_0x257749(0x1a0)](_0x1d3366),_0x51275a);if(!_0x438215)return!0x1;let _0x5f1433=_0x55af6a[_0x257749(0x1a0)](_0x3c7b6a),{unitId:_0x359ab0,subUnitId:_0x395e39}=_0x438215,_0x37c3e2=_0x5f1433[_0x257749(0x177)](_0x359ab0,_0x395e39);if(!_0x37c3e2)return!0x1;let _0x2901a5=_0x55af6a['get'](_0xf49d13),{shapeId:_0xd8c3d4,width:_0x318c9e,height:_0x353a82,left:_0x4acec3,top:_0x3b047b,flipX:_0x20a1fb,flipY:_0xb1cf6a,angle:_0x33d800,oldAdjustValues:_0x1975c7,newAdjustValues:_0x1abec8,oldLineType:_0x2aebb1,newLineType:_0x4a4fbe}=_0x51275a,_0xd3f885=_0x2901a5['getDrawingByParam']({'unitId':_0x359ab0,'subUnitId':_0x395e39,'drawingId':_0xd8c3d4});if(!_0xd3f885)return!0x1;let _0x2ed569=_0x55af6a[_0x257749(0x1a0)](Y)[_0x257749(0x148)](_0x359ab0,_0x395e39,_0xd8c3d4);if(!_0x2ed569)return!0x1;let _0x37a005=_0x55af6a[_0x257749(0x1a0)](_0x5c6888),_0x56d947=_0x55af6a['get'](_0x1107ce),_0x40bc28=_0x55af6a[_0x257749(0x1a0)](_0x133228),_0x3d9c85={..._0xd3f885[_0x257749(0x1d8)],'width':_0x318c9e,'height':_0x353a82,'left':_0x4acec3,'top':_0x3b047b,'flipX':_0x20a1fb,'flipY':_0xb1cf6a,'angle':_0x33d800},_0x58a4ba=_0x526ffb(_0x3d9c85,_0x37c3e2),_0x142d7e=_0x5d5502(_0x3d9c85,_0x37c3e2),_0x1374f2=_0x2ed569[_0x257749(0x1be)](),_0x5c7fc8=_0x2ed569[_0x257749(0x149)](),_0x3718a0={'unitId':_0x359ab0,'subUnitId':_0x395e39,'drawingId':_0xd8c3d4,'drawingType':_0x3fcfb7[_0x257749(0x12d)],'sheetTransform':_0x58a4ba,'transform':_0x3d9c85,'data':{'shapeType':_0x4a4fbe||_0x2aebb1||_0x1374f2,'shapeData':{..._0x5c7fc8,'adjustValues':_0x1abec8||_0x1975c7||(_0x5c7fc8==null?void 0x0:_0x5c7fc8['adjustValues'])}},'axisAlignSheetTransform':_0x142d7e,'allowTransform':!0x0},{undo:_0x75edf2,redo:_0x3d5e15,objects:_0x4d62e2}=_0x2901a5[_0x257749(0x14d)]([_0x3718a0]),_0x4c709a=_0x40bc28['onCommandExecute']({'id':_0xbe173f['id'],'params':{'unitId':_0x359ab0,'drawings':[_0x3718a0]}}),_0x233be9=[...(_0x39f30c=_0x4c709a['preRedos'])==null?[]:_0x39f30c,{'id':_0x187b38['id'],'params':{'unitId':_0x359ab0,'subUnitId':_0x395e39,'op':_0x3d5e15,'objects':_0x4d62e2,'type':_0x484cad[_0x257749(0x180)]}},{'id':_0x312f26['id'],'params':[_0x359ab0]},..._0x4c709a[_0x257749(0x1cf)],{'id':$['id'],'params':{'unitId':_0x359ab0,'subUnitId':_0x395e39,'shapeId':_0xd8c3d4,'shapeType':_0x4a4fbe,'shapeData':{'adjustValues':_0x1abec8}}}],_0x56311f=[...(_0x4f4acc=_0x4c709a[_0x257749(0x141)])==null?[]:_0x4f4acc,{'id':_0x187b38['id'],'params':{'unitId':_0x359ab0,'subUnitId':_0x395e39,'op':_0x75edf2,'objects':_0x4d62e2,'type':_0x484cad[_0x257749(0x180)]}},{'id':_0x312f26['id'],'params':[_0x359ab0]},..._0x4c709a[_0x257749(0x157)],{'id':$['id'],'params':{'unitId':_0x359ab0,'subUnitId':_0x395e39,'shapeId':_0xd8c3d4,'shapeType':_0x1374f2,'shapeData':{..._0x5c7fc8,'adjustValues':_0x1975c7||(_0x5c7fc8==null?void 0x0:_0x5c7fc8[_0x257749(0x17f)])}}}];return _0x263a3c(_0x233be9,_0x37a005)[_0x257749(0x16c)]?(_0x56d947[_0x257749(0x1b8)]({'unitID':_0x359ab0,'undoMutations':_0x56311f,'redoMutations':_0x233be9}),!0x0):!0x1;}},ce={'id':'sheet.mutation.update-shape-type','type':_0x22ee2b[_0x5c01d6(0x154)],'handler':(_0x54e201,_0x4ff7fa)=>{const _0x763b5d=_0x5c01d6;let {unitId:_0x4d5556,subUnitId:_0x26da0d,shapeType:_0x235e89,shapeId:_0x1dfd99,shapeData:_0x598fee}=_0x4ff7fa,_0x3fe851=_0x54e201[_0x763b5d(0x1a0)](Y)[_0x763b5d(0x148)](_0x4d5556,_0x26da0d,_0x1dfd99);return _0x3fe851&&(_0x3fe851['setShapeType'](_0x235e89),_0x598fee&&(_0x3fe851==null||_0x3fe851[_0x763b5d(0x156)](_0x598fee))),!0x0;}};var le='@univerjs-pro/sheets-shape',ue=_0x5c01d6(0x165);let de=class{constructor(_0x2cfbd6,_0x33f881,_0x10f8b3){const _0x557742=_0x5c01d6;this[_0x557742(0x18f)]=_0x2cfbd6,this[_0x557742(0x171)]=_0x33f881,this[_0x557742(0x1c6)]=_0x10f8b3,G(this,_0x557742(0x1af),_0xf7260a[_0x557742(0x126)]);}[_0x5c01d6(0x144)](_0x4b332c){const _0x291e85=_0x5c01d6;var _0x1ecdfc,_0x459fbc,_0x367f2a,_0x33ccd4,_0x4bdb35,_0x34f636,_0x476ba3,_0x390054,_0x1f0b3c;let _0x23011a=(_0x1ecdfc=this[_0x291e85(0x1c6)][_0x291e85(0x13d)](_0x4b332c[_0x291e85(0x1b9)],_0x4b332c[_0x291e85(0x1c0)]))==null?void 0x0:_0x1ecdfc[_0x4b332c[_0x291e85(0x142)]],_0x520c60=this[_0x291e85(0x171)][_0x291e85(0x1be)](_0x4b332c[_0x291e85(0x1b9)],_0x4b332c[_0x291e85(0x1c0)],_0x4b332c[_0x291e85(0x142)]);if(!_0x23011a||_0x23011a['drawingType']!==_0x3fcfb7[_0x291e85(0x12d)]||!_0x520c60)return null;let _0x25bcc1=_0x23011a[_0x291e85(0x1d8)];return{..._0x4b332c,'shapeType':_0x520c60,'shapeData':_0xfd6b8f[_0x291e85(0x170)]((_0x459fbc=this[_0x291e85(0x171)][_0x291e85(0x182)](_0x4b332c[_0x291e85(0x1b9)],_0x4b332c['subUnitId'],_0x4b332c[_0x291e85(0x142)]))==null?{}:_0x459fbc),'name':_0x23011a[_0x291e85(0x146)],'description':_0x23011a[_0x291e85(0x191)],'visible':_0x23011a[_0x291e85(0x18a)]!==!0x0,'selectable':_0x23011a[_0x291e85(0x15b)]!==!0x1,'transform':{'left':(_0x367f2a=_0x25bcc1==null?void 0x0:_0x25bcc1[_0x291e85(0x125)])==null?0x0:_0x367f2a,'top':(_0x33ccd4=_0x25bcc1==null?void 0x0:_0x25bcc1['top'])==null?0x0:_0x33ccd4,'width':(_0x4bdb35=_0x25bcc1==null?void 0x0:_0x25bcc1[_0x291e85(0x18d)])==null?0xc8:_0x4bdb35,'height':(_0x34f636=_0x25bcc1==null?void 0x0:_0x25bcc1['height'])==null?0xc8:_0x34f636,'rotation':(_0x476ba3=_0x25bcc1==null?void 0x0:_0x25bcc1[_0x291e85(0x15a)])==null?0x0:_0x476ba3,'flipX':(_0x390054=_0x25bcc1==null?void 0x0:_0x25bcc1[_0x291e85(0x13b)])==null?!0x1:_0x390054,'flipY':(_0x1f0b3c=_0x25bcc1==null?void 0x0:_0x25bcc1[_0x291e85(0x1b1)])==null?!0x1:_0x1f0b3c}};}[_0x5c01d6(0x12f)](_0x90018e){const _0x4316dd=_0x5c01d6;var _0x41d65b;let _0x506550=(_0x41d65b=this[_0x4316dd(0x1c6)]['getDrawingData'](_0x90018e['unitId'],_0x90018e[_0x4316dd(0x1c0)]))==null?{}:_0x41d65b;return Object[_0x4316dd(0x1d7)](_0x506550)['filter'](_0x1d74a6=>(_0x1d74a6==null?void 0x0:_0x1d74a6[_0x4316dd(0x1d0)])===_0x3fcfb7[_0x4316dd(0x12d)])[_0x4316dd(0x1ac)](_0x476242=>this[_0x4316dd(0x144)]({..._0x90018e,'shapeId':_0x476242[_0x4316dd(0x1a1)]}))['filter'](_0x1ff12b=>!!_0x1ff12b);}[_0x5c01d6(0x1c2)](_0x7a3b74,_0x2aa345){const _0x311b77=_0x5c01d6;var _0x4e2795,_0x327c46,_0x344af1,_0x204697,_0x13e62c,_0x446afd,_0x17ac12,_0x55f5ca,_0x3f3dc2,_0x345342,_0x40e2f7,_0x5f4f3d,_0x4338e8,_0x50e715,_0x550e0a,_0x4c57e1,_0x28216b,_0x3cb480,_0x3239de;let _0x3cfc48=_0x518436(),_0xe84784={'left':(_0x4e2795=(_0x327c46=_0x2aa345[_0x311b77(0x1d8)])==null?void 0x0:_0x327c46[_0x311b77(0x125)])==null?0x0:_0x4e2795,'top':(_0x344af1=(_0x204697=_0x2aa345[_0x311b77(0x1d8)])==null?void 0x0:_0x204697[_0x311b77(0x1d6)])==null?0x0:_0x344af1,'width':(_0x13e62c=(_0x446afd=_0x2aa345[_0x311b77(0x1d8)])==null?void 0x0:_0x446afd[_0x311b77(0x18d)])==null?0xc8:_0x13e62c,'height':(_0x17ac12=(_0x55f5ca=_0x2aa345['transform'])==null?void 0x0:_0x55f5ca[_0x311b77(0x137)])==null?0xc8:_0x17ac12,'rotation':(_0x3f3dc2=(_0x345342=_0x2aa345['transform'])==null?void 0x0:_0x345342[_0x311b77(0x167)])==null?0x0:_0x3f3dc2,'flipX':(_0x40e2f7=(_0x5f4f3d=_0x2aa345[_0x311b77(0x1d8)])==null?void 0x0:_0x5f4f3d[_0x311b77(0x13b)])==null?!0x1:_0x40e2f7,'flipY':(_0x4338e8=(_0x50e715=_0x2aa345[_0x311b77(0x1d8)])==null?void 0x0:_0x50e715[_0x311b77(0x1b1)])==null?!0x1:_0x4338e8};return this[_0x311b77(0x18f)]['syncExecuteCommand'](Q['id'],{'unitId':_0x7a3b74[_0x311b77(0x1b9)],'subUnitId':_0x7a3b74[_0x311b77(0x1c0)],'shapeId':_0x3cfc48,'shapeType':_0x2aa345[_0x311b77(0x128)],'shapeData':_0x2aa345[_0x311b77(0x18b)],'name':_0x2aa345[_0x311b77(0x146)],'description':_0x2aa345[_0x311b77(0x191)],'position':{'x':_0xe84784[_0x311b77(0x125)],'y':_0xe84784[_0x311b77(0x1d6)]},'width':_0xe84784[_0x311b77(0x18d)],'height':_0xe84784['height'],'rotation':_0xe84784['rotation'],'flipX':_0xe84784[_0x311b77(0x13b)],'flipY':_0xe84784[_0x311b77(0x1b1)],'visible':(_0x550e0a=_0x2aa345['visible'])==null?!0x0:_0x550e0a,'selectable':(_0x4c57e1=_0x2aa345[_0x311b77(0x15b)])==null?!0x0:_0x4c57e1})?{..._0x7a3b74,'shapeId':_0x3cfc48,'shapeType':_0x2aa345[_0x311b77(0x128)],'shapeData':_0xfd6b8f[_0x311b77(0x170)]((_0x28216b=_0x2aa345[_0x311b77(0x18b)])==null?{}:_0x28216b),'name':_0x2aa345[_0x311b77(0x146)],'description':_0x2aa345['description'],'visible':(_0x3cb480=_0x2aa345[_0x311b77(0x136)])==null?!0x0:_0x3cb480,'selectable':(_0x3239de=_0x2aa345[_0x311b77(0x15b)])==null?!0x0:_0x3239de,'transform':_0xe84784}:null;}['updateShape'](_0x13ae18,_0x288f25){const _0x33b2ab=_0x5c01d6;var _0x16ba9d,_0x50b3d5,_0x1c99ef,_0x152c96,_0x4913ff,_0x381014;let _0x143417=this[_0x33b2ab(0x144)](_0x13ae18);if(!_0x143417)return!0x1;let _0x5cb95f={..._0x143417[_0x33b2ab(0x1d8)],..._0x288f25[_0x33b2ab(0x1d8)]};return this[_0x33b2ab(0x18f)][_0x33b2ab(0x1b2)](ne['id'],{'unitId':_0x13ae18[_0x33b2ab(0x1b9)],'subUnitId':_0x13ae18[_0x33b2ab(0x1c0)],'shapeId':_0x13ae18[_0x33b2ab(0x142)],'shapeType':(_0x16ba9d=(_0x50b3d5=_0x288f25[_0x33b2ab(0x128)])==null?(_0x1c99ef=_0x288f25[_0x33b2ab(0x18b)])==null?void 0x0:_0x1c99ef[_0x33b2ab(0x128)]:_0x50b3d5)==null?_0x143417['shapeType']:_0x16ba9d,'shapeData':(_0x152c96=_0x288f25[_0x33b2ab(0x18b)])==null?_0x143417[_0x33b2ab(0x18b)]:_0x152c96,'position':{'x':_0x5cb95f[_0x33b2ab(0x125)],'y':_0x5cb95f[_0x33b2ab(0x1d6)]},'width':_0x5cb95f[_0x33b2ab(0x18d)],'height':_0x5cb95f[_0x33b2ab(0x137)],'rotation':_0x5cb95f[_0x33b2ab(0x167)],'flipX':_0x5cb95f['flipX'],'flipY':_0x5cb95f['flipY'],'name':'name'in _0x288f25?_0x288f25[_0x33b2ab(0x146)]:_0x143417[_0x33b2ab(0x146)],'description':'description'in _0x288f25?_0x288f25['description']:_0x143417[_0x33b2ab(0x191)],'visible':(_0x4913ff=_0x288f25[_0x33b2ab(0x136)])==null?_0x143417[_0x33b2ab(0x136)]:_0x4913ff,'selectable':(_0x381014=_0x288f25[_0x33b2ab(0x15b)])==null?_0x143417[_0x33b2ab(0x15b)]:_0x381014});}['removeShape'](_0x238043){const _0x2a7146=_0x5c01d6;return this[_0x2a7146(0x18f)][_0x2a7146(0x1b2)](_0x4cbcd6['id'],{'unitId':_0x238043[_0x2a7146(0x1b9)],'drawings':[{'unitId':_0x238043[_0x2a7146(0x1b9)],'subUnitId':_0x238043[_0x2a7146(0x1c0)],'drawingId':_0x238043[_0x2a7146(0x142)],'drawingType':_0x3fcfb7[_0x2a7146(0x12d)]}]});}[_0x5c01d6(0x1ba)](_0x290d12){const _0xa2c3a5=_0x5c01d6;return this[_0xa2c3a5(0x14e)](_0x290d12,_0x4abaa6[_0xa2c3a5(0x14a)]);}[_0x5c01d6(0x1c1)](_0xec8af4){const _0x101875=_0x5c01d6;return this[_0x101875(0x14e)](_0xec8af4,_0x4abaa6['forward']);}[_0x5c01d6(0x199)](_0x237bab){const _0x23c817=_0x5c01d6;return this[_0x23c817(0x14e)](_0x237bab,_0x4abaa6[_0x23c817(0x1a9)]);}[_0x5c01d6(0x135)](_0x3c992a){const _0x38f657=_0x5c01d6;return this['_arrange'](_0x3c992a,_0x4abaa6[_0x38f657(0x19d)]);}['_arrange'](_0x4936d6,_0x7b6ea1){const _0x37bad8=_0x5c01d6;return this[_0x37bad8(0x18f)]['syncExecuteCommand'](_0xc2414d['id'],{'unitId':_0x4936d6['unitId'],'subUnitId':_0x4936d6[_0x37bad8(0x1c0)],'drawingIds':[_0x4936d6[_0x37bad8(0x142)]],'arrangeType':_0x7b6ea1});}};function _0x301a(){const _0x76396c=['hostType','_groupIds','flipY','syncExecuteCommand','sheet.command.set-shape-text-vertical-toggle','data','length','call','sheet.mutation.update-shape-data','pushUndoRedo','unitId','bringToFront','50VNPFHA','getEndConnectInfo','getOwnPropertyDescriptor','getShapeType','_config','subUnitId','bringForward','createShape','insertShape','fromJSON','getConnectionSiteList','_drawingService','params','isFrom','INSERT','toPrimitive','clear','_addLineRerouteUpdates','onStarting','94470ssPmkO','redos','drawingType','object','from','sheet.command.set-shape-rotate','stringify','registerPluginResource','top','values','transform','23622okLSew','forEach','243008obVhIH','1111024ItDREk','left','UNIVER_SHEET','3272388WPOhhZ','shapeType','_sheetInterceptorService','packageName','getName','string','DRAWING_SHAPE','defineProperty','listShapes','50dRtswR','242KdmvRv','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','getCellWithCoordByIndex','index','sendToBack','visible','height','_drawingManagerService','getShapeDisplayNames','cos','flipX','SHEET_SHAPE_PLUGIN','getDrawingData','getAdjustValueByName','_injector','resizeEnabled','preUndos','shapeId','removeShape','getShape','_resourcesManagerService','name','symbol','getShapeModel','getShapeData','front','_sheetsShapeService','_serializeShapeForUnit','getBatchUpdateOp','_arrange','onCommandExecute','prototype','getBatchAddOp','constructor','cxnIndex','MUTATION','has','setShapeData','undos','hasShape','setConfig','angle','selectable','rotateEnabled','sheet.command.insert-shape','removeLinePoints','2775645mcUfUr','416093yqGZrs','fill','filter','sin','isHorizontal','1.0.0-alpha.5','pluginName','rotation','lineShapeId','COMMAND','sheet.mutation.insert-shape','sheet.command.toggle-shape-flip','result','range','decorate','type','deepClone','_shapeService','getShapeTypeById','_addLineFollowShapeUpdates','preRedos','register','interceptCommand','getSkeleton','_configService','parse','_shapeModelManagerMap','_linesIds','getShapeTextData','getAdjustNames','_ensureShapeModelManager','adjustValues','UPDATE','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getShapeDataById','getShapeRelation','_shapes','sheet.command.update-line-shape-resize','keys','getDrawingByParam','disposeWithMe','push','hidden','shapeData','getLineShapeRelation','width','worldRect','_commandService','_initCommands','description','REMOVE','ensureSkeleton','_initCommandInterceptor','delete','toJSON','_initSnapshot','find','sendBackward','sheets-shape.config','_sheetSkeletonService','getStartConnectInfo','back','ang','relation','get','drawingId','startX','getBasicShapeRelation','addShape','_deserializeShapeForUnit','set','sheet.command.update-connector-relation','dispose','backward','borderEnabled','add','map','_getConnectPointInfo','registerCommand'];_0x301a=function(){return _0x76396c;};return _0x301a();}de=J([q(0x0,_0x5c6888),q(0x1,_0x36bfee(Y)),q(0x2,_0xf49d13)],de);const fe={};let pe=class extends _0x1dc17c{constructor(_0x3bc6ad,_0x48392b,_0x570c20,_0x17f2fc,_0x174fb7,_0x4d4c2d,_0x5b42c7){const _0x22ac01=_0x5c01d6;super(),this[_0x22ac01(0x18f)]=_0x3bc6ad,this[_0x22ac01(0x129)]=_0x48392b,this[_0x22ac01(0x19b)]=_0x570c20,this[_0x22ac01(0x14b)]=_0x17f2fc,this[_0x22ac01(0x138)]=_0x174fb7,this['_shapeHostAdapterRegistry']=_0x4d4c2d,this[_0x22ac01(0x190)](),this[_0x22ac01(0x194)](),this[_0x22ac01(0x188)](this['_shapeHostAdapterRegistry'][_0x22ac01(0x175)](_0x5b42c7));}[_0x5c01d6(0x190)](){const _0x4061ac=_0x5c01d6;[Q,ne,re,ie,ae,oe,se,X,Z,ce,$][_0x4061ac(0x1da)](_0x54e541=>this['disposeWithMe'](this[_0x4061ac(0x18f)][_0x4061ac(0x1ae)](_0x54e541)));}[_0x5c01d6(0x194)](){const _0x5a4cae=_0x5c01d6;this[_0x5a4cae(0x188)](this[_0x5a4cae(0x129)][_0x5a4cae(0x176)]({'getMutations':_0x1f7727=>{const _0x1618ce=_0x5a4cae;if(_0x1f7727['id']===_0x4cbcd6['id']){let {drawings:_0x35ed58}=_0x1f7727['params'],_0x20ee97=_0x35ed58['filter'](_0x108534=>_0x108534[_0x1618ce(0x1d0)]===_0x3fcfb7['DRAWING_SHAPE']);if(_0x20ee97[_0x1618ce(0x1b5)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x54c6ff=[],_0x44b941=[];return _0x20ee97[_0x1618ce(0x1da)](_0x26811a=>{const _0x47ced4=_0x1618ce;let {unitId:_0x21274b,subUnitId:_0x1bf8f5,drawingId:_0x5cd9b2}=_0x26811a,_0x10f28c=this[_0x47ced4(0x14b)]['getShapeModel'](_0x21274b,_0x1bf8f5,_0x5cd9b2);if(!_0x10f28c)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x10f28c);_0x54c6ff[_0x47ced4(0x189)]({'id':Z['id'],'params':{'unitId':_0x21274b,'subUnitId':_0x1bf8f5,'shapeId':_0x5cd9b2}}),_0x44b941[_0x47ced4(0x189)]({'id':X['id'],'params':{'unitId':_0x21274b,'subUnitId':_0x1bf8f5,'shapeId':_0x5cd9b2,'shapeType':_0x10f28c[_0x47ced4(0x1be)](),'shapeData':_0x10f28c[_0x47ced4(0x149)]()}});let _0xfb2c58=this[_0x47ced4(0x14b)][_0x47ced4(0x1a3)](_0x21274b,_0x1bf8f5,_0x5cd9b2);if(_0xfb2c58)for(let _0x44d731 of _0xfb2c58){let _0x179967=_0x44d731[_0x47ced4(0x168)],_0x1aa392=_0x44d731[_0x47ced4(0x1c8)],_0x178973=_0x1aa392?{'from':void 0x0}:{'to':void 0x0},_0x3dee37=_0x1aa392?{'from':{'shapeId':_0x44d731[_0x47ced4(0x142)],'cxnIndex':_0x44d731[_0x47ced4(0x153)]}}:{'to':{'shapeId':_0x44d731[_0x47ced4(0x142)],'cxnIndex':_0x44d731[_0x47ced4(0x153)]}};_0x54c6ff['push']({'id':$['id'],'params':{'unitId':_0x21274b,'subUnitId':_0x1bf8f5,'shapeId':_0x179967,'shapeData':{'relation':_0x178973}}}),_0x44b941['push']({'id':$['id'],'params':{'unitId':_0x21274b,'subUnitId':_0x1bf8f5,'shapeId':_0x179967,'shapeData':{'relation':_0x3dee37}}});}}),{'preRedos':_0x54c6ff,'redos':[],'preUndos':[],'undos':_0x44b941};}if(_0x1f7727['id']===_0xbe173f['id']){let {drawings:_0x1b4da1}=_0x1f7727[_0x1618ce(0x1c7)],_0x251eb1=_0x1b4da1[_0x1618ce(0x162)](_0x1d9fd5=>_0x1d9fd5[_0x1618ce(0x1d0)]===_0x3fcfb7[_0x1618ce(0x12d)]);if(_0x251eb1['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x20797b=[],_0x2071ba=[];for(let _0x55a20d of _0x251eb1){let {unitId:_0x43da7a,subUnitId:_0xb7fa1d,drawingId:_0x5dbc59,transform:_0x2d45dc}=_0x55a20d;if(!_0x43da7a||!_0xb7fa1d||!_0x5dbc59||!_0x2d45dc)continue;let _0x487490=this['_sheetsShapeService'][_0x1618ce(0x148)](_0x43da7a,_0xb7fa1d,_0x5dbc59);if(!_0x487490)throw TypeError(_0x1618ce(0x132)+_0x487490);if(_0x517c66(_0x487490[_0x1618ce(0x1be)]())){let _0x159d28=this[_0x1618ce(0x14b)][_0x1618ce(0x18c)](_0x43da7a,_0xb7fa1d,_0x5dbc59);_0x159d28&&(_0x20797b[_0x1618ce(0x189)]({'id':$['id'],'params':{'unitId':_0x43da7a,'subUnitId':_0xb7fa1d,'shapeId':_0x5dbc59,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x2071ba['push']({'id':$['id'],'params':{'unitId':_0x43da7a,'subUnitId':_0xb7fa1d,'shapeId':_0x5dbc59,'shapeData':{'relation':_0x159d28}}}));}else{let _0x25464f=this[_0x1618ce(0x14b)][_0x1618ce(0x1a3)](_0x43da7a,_0xb7fa1d,_0x5dbc59);if(_0x25464f&&_0x25464f[_0x1618ce(0x1b5)]>0x0)for(let _0x5363b5 of _0x25464f){let _0x7762ae=_0x5363b5[_0x1618ce(0x168)],_0x4181cf=_0x5363b5[_0x1618ce(0x1c8)],_0xda93c4=this[_0x1618ce(0x14b)][_0x1618ce(0x148)](_0x43da7a,_0xb7fa1d,_0x7762ae);if(!_0xda93c4)continue;let _0x48974f=_0xda93c4[_0x1618ce(0x19c)](),_0x20bfdd=_0xda93c4[_0x1618ce(0x1bc)]();_0x48974f&&_0x20bfdd?this[_0x1618ce(0x1cc)](_0x43da7a,_0xb7fa1d,_0x7762ae,_0xda93c4,_0x48974f,_0x20bfdd,_0x20797b,_0x2071ba,_0x5dbc59,_0x2d45dc):this[_0x1618ce(0x173)](_0x43da7a,_0xb7fa1d,_0x7762ae,_0xda93c4,_0x4181cf?_0x48974f:_0x20bfdd,_0x4181cf,_0x20797b,_0x2071ba,_0x5dbc59,_0x2d45dc);}}}return{'preRedos':[],'redos':_0x20797b,'preUndos':_0x2071ba,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x5c01d6(0x1ad)](_0xbb1c36,_0x3814aa,_0x1610c0,_0x4932cf,_0x223f7a){const _0x3c031e=_0x5c01d6;if(!_0x3814aa||!_0x1610c0)return null;let {shapeId:_0xf400db,cxnIndex:_0x333ea3}=_0xbb1c36,_0x5d796b=this[_0x3c031e(0x14b)][_0x3c031e(0x148)](_0x3814aa,_0x1610c0,_0xf400db);if(!_0x5d796b)return null;let _0x33f47c=this[_0x3c031e(0x138)][_0x3c031e(0x187)]({'unitId':_0x3814aa,'subUnitId':_0x1610c0,'drawingId':_0xf400db});if(!(_0x33f47c!=null&&_0x33f47c[_0x3c031e(0x1d8)]))return null;let {left:_0x1f32ea=0x0,top:_0x1e2c14=0x0,width:_0x489cc8=0x0,height:_0x56a93c=0x0,flipX:_0x2622bf=!0x1,flipY:_0x289344=!0x1,angle:_0x521b75}=_0x33f47c[_0x3c031e(0x1d8)];if(_0x223f7a&&_0x4932cf===_0xf400db){var _0x77beb5,_0x28f0a7,_0x59451b,_0x3499e6,_0x2cfe77,_0xeb6281,_0x359309;_0x1f32ea=(_0x77beb5=_0x223f7a[_0x3c031e(0x125)])==null?_0x1f32ea:_0x77beb5,_0x1e2c14=(_0x28f0a7=_0x223f7a[_0x3c031e(0x1d6)])==null?_0x1e2c14:_0x28f0a7,_0x489cc8=(_0x59451b=_0x223f7a[_0x3c031e(0x18d)])==null?_0x489cc8:_0x59451b,_0x56a93c=(_0x3499e6=_0x223f7a[_0x3c031e(0x137)])==null?_0x56a93c:_0x3499e6,_0x2622bf=(_0x2cfe77=_0x223f7a[_0x3c031e(0x13b)])==null?_0x2622bf:_0x2cfe77,_0x289344=(_0xeb6281=_0x223f7a[_0x3c031e(0x1b1)])==null?_0x289344:_0xeb6281,_0x521b75=(_0x359309=_0x223f7a['angle'])==null?_0x521b75:_0x359309;}_0x5d796b['updateContext']({'width':_0x489cc8,'height':_0x56a93c});let _0x544594=_0x5d796b[_0x3c031e(0x1c5)]()[_0x3c031e(0x198)](_0x1c1075=>_0x1c1075[_0x3c031e(0x134)]===_0x333ea3);if(!_0x544594)return null;let _0x5a4a54=_0x2622bf?_0x489cc8-_0x544594['x']:_0x544594['x'],_0x330509=_0x289344?_0x56a93c-_0x544594['y']:_0x544594['y'];if(_0x521b75!==0x0&&_0x521b75!=null){let _0x50c80c=_0x521b75*Math['PI']/0xb4,_0x1f4436=Math[_0x3c031e(0x13a)](_0x50c80c),_0x3c5644=Math[_0x3c031e(0x163)](_0x50c80c),_0x56d19d=_0x489cc8/0x2,_0x575126=_0x56a93c/0x2,_0x1d053f=_0x5a4a54-_0x56d19d,_0x22763f=_0x330509-_0x575126;_0x5a4a54=_0x56d19d+_0x1d053f*_0x1f4436-_0x22763f*_0x3c5644,_0x330509=_0x575126+_0x1d053f*_0x3c5644+_0x22763f*_0x1f4436;}_0x5a4a54+=_0x1f32ea,_0x330509+=_0x1e2c14;let _0x4da509=_0x544594[_0x3c031e(0x19e)]/0xea60;_0x2622bf&&(_0x4da509=0xb4-_0x4da509),_0x289344&&(_0x4da509=-_0x4da509),_0x4da509+=_0x521b75||0x0,_0x4da509=(_0x4da509%0x168+0x168)%0x168;let _0x1d29f5=_0x272c36({'left':_0x1f32ea,'top':_0x1e2c14,'width':_0x489cc8,'height':_0x56a93c},_0x521b75||0x0);return{'point':{'x':_0x5a4a54,'y':_0x330509},'angle':_0x4da509,'bounds':_0x1d29f5};}[_0x5c01d6(0x1cc)](_0xf5de38,_0x384901,_0x4b187f,_0x2a4684,_0x32f2f9,_0x5b6807,_0x30e884,_0x96422f,_0x1818cc,_0x5d2c65){const _0x37d804=_0x5c01d6;let _0x3cd87c=this[_0x37d804(0x19b)]['getSkeleton'](_0xf5de38,_0x384901);if(!_0x3cd87c)return;let _0x1fd80e=_0x2a4684[_0x37d804(0x183)](),_0x166440=_0x2a4684[_0x37d804(0x17d)](),_0x41edb7={},_0x221ce5={};_0x166440['forEach'](_0x4f4795=>{const _0x55a7ab=_0x37d804;let _0x245e41=_0x2a4684[_0x55a7ab(0x13e)](_0x4f4795);_0x221ce5[_0x4f4795]=_0x245e41==null?0x0:_0x245e41;});let _0x23a1fe=this[_0x37d804(0x1ad)](_0x32f2f9,_0xf5de38,_0x384901,_0x1818cc,_0x5d2c65),_0x321808=this[_0x37d804(0x1ad)](_0x5b6807,_0xf5de38,_0x384901,_0x1818cc,_0x5d2c65);if(_0x23a1fe&&_0x321808){let _0x48091a=_0x2a4684['getShapeType'](),_0x46bb2f=_0x4cca6c(_0x23a1fe,_0x321808,_0x48091a),_0x4fd590=_0x48091a;if(_0x46bb2f){let _0x442a7e=_0x2fc0b6(_0x46bb2f,_0x2a4684[_0x37d804(0x1be)]()),_0x1292df=this[_0x37d804(0x138)][_0x37d804(0x13d)](_0xf5de38,_0x384901);if(_0x1292df&&_0x1292df[_0x4b187f]){let _0x5d6f48=_0x1292df[_0x4b187f];_0x4fd590=_0x442a7e['lineType'];for(let [_0x227ffd,_0x5e9043]of Object['entries'](_0x442a7e[_0x37d804(0x17f)]))_0x41edb7[_0x227ffd]=_0x5e9043;let _0x49cd6a={..._0x5d6f48[_0x37d804(0x1d8)],'width':_0x442a7e['worldRect'][_0x37d804(0x18d)],'height':_0x442a7e[_0x37d804(0x18e)][_0x37d804(0x137)],'left':_0x442a7e[_0x37d804(0x18e)][_0x37d804(0x125)],'top':_0x442a7e[_0x37d804(0x18e)][_0x37d804(0x1d6)],'flipX':_0x442a7e[_0x37d804(0x18e)]['flipX'],'flipY':_0x442a7e[_0x37d804(0x18e)][_0x37d804(0x1b1)],'angle':_0x442a7e[_0x37d804(0x167)]},_0x248778=_0x526ffb(_0x49cd6a,_0x3cd87c),_0x14ed51=_0x5d5502(_0x49cd6a,_0x3cd87c),_0x1cdd68={'unitId':_0xf5de38,'subUnitId':_0x384901,'drawingType':_0x3fcfb7['DRAWING_SHAPE'],'drawingId':_0x4b187f,'transform':_0x49cd6a,'sheetTransform':_0x248778,'axisAlignSheetTransform':_0x14ed51},{unitId:_0x135f1d,subUnitId:_0x121da7,undo:_0x4d5ba7,redo:_0x482fbc,objects:_0x576706}=this[_0x37d804(0x138)]['getBatchUpdateOp']([_0x1cdd68]);_0x30e884[_0x37d804(0x189)]({'id':_0x187b38['id'],'params':{'unitId':_0x135f1d,'subUnitId':_0x121da7,'op':_0x482fbc,'objects':_0x576706,'type':_0x484cad[_0x37d804(0x180)]}}),_0x96422f[_0x37d804(0x189)]({'id':_0x187b38['id'],'params':{'unitId':_0x135f1d,'subUnitId':_0x121da7,'op':_0x4d5ba7,'objects':_0x576706,'type':_0x484cad[_0x37d804(0x180)]}});}_0x2a4684[_0x37d804(0x15e)]();}_0x30e884['push']({'id':$['id'],'params':{'unitId':_0xf5de38,'subUnitId':_0x384901,'shapeId':_0x4b187f,'shapeType':_0x4fd590,'shapeData':{'adjustValues':_0x41edb7,'relation':_0x1fd80e}}}),_0x96422f[_0x37d804(0x189)]({'id':$['id'],'params':{'unitId':_0xf5de38,'subUnitId':_0x384901,'shapeId':_0x4b187f,'shapeType':_0x48091a,'shapeData':{'adjustValues':_0x221ce5,'relation':_0x1fd80e}}});}}[_0x5c01d6(0x173)](_0x207926,_0x18fad4,_0x480bd5,_0x24c6b5,_0x2836c6,_0xf18b1b,_0x275dfd,_0x2766bb,_0x149ecd,_0x32d614){const _0x1cc19c=_0x5c01d6;var _0x18200b;if(!_0x2836c6)return;let _0x3e3f0c=this[_0x1cc19c(0x19b)][_0x1cc19c(0x177)](_0x207926,_0x18fad4);if(!_0x3e3f0c)return;let _0x290462=(_0x18200b=this[_0x1cc19c(0x138)]['getDrawingByParam']({'unitId':_0x207926,'subUnitId':_0x18fad4,'drawingId':_0x149ecd}))==null?void 0x0:_0x18200b[_0x1cc19c(0x1d8)];if(!_0x290462)return;let _0x1dddb7=_0x290462[_0x1cc19c(0x125)]!==_0x32d614[_0x1cc19c(0x125)]||_0x290462[_0x1cc19c(0x1d6)]!==_0x32d614[_0x1cc19c(0x1d6)],_0x6d4f02=_0x290462[_0x1cc19c(0x18d)]!==_0x32d614[_0x1cc19c(0x18d)]||_0x290462[_0x1cc19c(0x137)]!==_0x32d614[_0x1cc19c(0x137)],_0x3b3c79=_0x290462[_0x1cc19c(0x13b)]!==_0x32d614[_0x1cc19c(0x13b)]||_0x290462[_0x1cc19c(0x1b1)]!==_0x32d614[_0x1cc19c(0x1b1)],_0xe18155=_0x290462['angle']!==_0x32d614['angle'];if(_0x1dddb7&&!_0x6d4f02&&!_0x3b3c79&&!_0xe18155){var _0x28b93c,_0x50a0a6,_0x3cacfa,_0x4e6aed;let _0xc6a0e9=((_0x28b93c=_0x32d614[_0x1cc19c(0x125)])==null?0x0:_0x28b93c)-((_0x50a0a6=_0x290462[_0x1cc19c(0x125)])==null?0x0:_0x50a0a6),_0x56a61a=((_0x3cacfa=_0x32d614[_0x1cc19c(0x1d6)])==null?0x0:_0x3cacfa)-((_0x4e6aed=_0x290462[_0x1cc19c(0x1d6)])==null?0x0:_0x4e6aed),_0x1e08fc=this[_0x1cc19c(0x138)][_0x1cc19c(0x13d)](_0x207926,_0x18fad4);if(_0x1e08fc&&_0x1e08fc[_0x480bd5]){var _0x16e810,_0x49db0e,_0x1a0900,_0x106f8b;let _0x587849=_0x1e08fc[_0x480bd5],_0x10ff9d={..._0x587849['transform'],'left':((_0x16e810=(_0x49db0e=_0x587849[_0x1cc19c(0x1d8)])==null?void 0x0:_0x49db0e[_0x1cc19c(0x125)])==null?0x0:_0x16e810)+_0xc6a0e9,'top':((_0x1a0900=(_0x106f8b=_0x587849[_0x1cc19c(0x1d8)])==null?void 0x0:_0x106f8b[_0x1cc19c(0x1d6)])==null?0x0:_0x1a0900)+_0x56a61a},_0x1b01bf=_0x526ffb(_0x10ff9d,_0x3e3f0c),_0x1f5ee5=_0x5d5502(_0x10ff9d,_0x3e3f0c),_0x4804b0={'unitId':_0x207926,'subUnitId':_0x18fad4,'drawingType':_0x3fcfb7[_0x1cc19c(0x12d)],'drawingId':_0x480bd5,'transform':_0x10ff9d,'sheetTransform':_0x1b01bf,'axisAlignSheetTransform':_0x1f5ee5},{unitId:_0x4127aa,subUnitId:_0x136bf9,undo:_0x2495a6,redo:_0x1fa3f9,objects:_0x159e11}=this[_0x1cc19c(0x138)][_0x1cc19c(0x14d)]([_0x4804b0]);_0x275dfd[_0x1cc19c(0x189)]({'id':_0x187b38['id'],'params':{'unitId':_0x4127aa,'subUnitId':_0x136bf9,'op':_0x1fa3f9,'objects':_0x159e11,'type':_0x484cad['UPDATE']}}),_0x2766bb[_0x1cc19c(0x189)]({'id':_0x187b38['id'],'params':{'unitId':_0x4127aa,'subUnitId':_0x136bf9,'op':_0x2495a6,'objects':_0x159e11,'type':_0x484cad[_0x1cc19c(0x180)]}});}}else{let _0x488e94=_0x24c6b5['getStartConnectInfo'](),_0x473677=_0x24c6b5[_0x1cc19c(0x1bc)]();this[_0x1cc19c(0x1cc)](_0x207926,_0x18fad4,_0x480bd5,_0x24c6b5,_0x488e94,_0x473677,_0x275dfd,_0x2766bb,_0x149ecd,_0x32d614);}}};pe=J([q(0x0,_0x5c6888),q(0x1,_0x36bfee(_0x133228)),q(0x2,_0x36bfee(_0x3c7b6a)),q(0x3,_0x36bfee(Y)),q(0x4,_0x36bfee(_0x42c33a)),q(0x5,_0x36bfee(_0x10d679)),q(0x6,_0x36bfee(de))],pe);let me=class extends _0x9b668a{constructor(_0x327a3e=fe,_0x327364,_0x4d6459){const _0x46c33a=_0x5c01d6;super(),this[_0x46c33a(0x1bf)]=_0x327a3e,this[_0x46c33a(0x13f)]=_0x327364,this['_configService']=_0x4d6459;let {..._0x299861}=_0x12549a({},fe,this[_0x46c33a(0x1bf)]);this[_0x46c33a(0x178)][_0x46c33a(0x159)](_0x46c33a(0x19a),_0x299861);}[_0x5c01d6(0x1cd)](){const _0x2816a7=_0x5c01d6;let _0x96343d=this[_0x2816a7(0x13f)];[[K],[Y],[de],[pe]][_0x2816a7(0x1da)](_0x4e8da5=>_0x96343d[_0x2816a7(0x1ab)](_0x4e8da5)),_0x1f2a99(_0x96343d,[[Y],[pe]]);}};G(me,_0x5c01d6(0x16f),_0xf7260a[_0x5c01d6(0x126)]),G(me,_0x5c01d6(0x166),_0x5c01d6(0x13c)),G(me,_0x5c01d6(0x12a),le),G(me,'version',ue),me=J([_0x59fb5e(_0xaf9fa9,_0x53390e),q(0x1,_0x36bfee(_0x2fd07f)),q(0x2,_0x344a70)],me);export{V as DEFAULT_SHAPE_HEIGHT,B as DEFAULT_SHAPE_WIDTH,Q as InsertShapeCommand,X as InsertSheetsShapeMutation,Z as RemoveSheetsShapeMutation,ne as SetShapeDrawingDataCommand,ie as SetSheetsShapeRotateCommand,ae as SetSheetsShapeTextVerticalToggleCommand,Y as SheetsShapeService,re as ToggleSheetsShapeFlipCommand,me as UniverSheetsShapePlugin,oe as UpdateConnectorRelationCommand,se as UpdateLineShapeResizeCommand,$ as UpdateSheetsShapeDataMutation,ce as UpdateSheetsShapeTypeMutation};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5523e0=_0x2aba;(function(_0x1b66b5,_0x376c4e){const _0xc56224=_0x2aba,_0x4f92be=_0x1b66b5();while(!![]){try{const _0x4a3954=-parseInt(_0xc56224(0x1f1))/0x1*(-parseInt(_0xc56224(0x23b))/0x2)+parseInt(_0xc56224(0x253))/0x3+parseInt(_0xc56224(0x222))/0x4+parseInt(_0xc56224(0x1e1))/0x5*(-parseInt(_0xc56224(0x258))/0x6)+-parseInt(_0xc56224(0x236))/0x7*(-parseInt(_0xc56224(0x206))/0x8)+-parseInt(_0xc56224(0x218))/0x9+-parseInt(_0xc56224(0x216))/0xa;if(_0x4a3954===_0x376c4e)break;else _0x4f92be['push'](_0x4f92be['shift']());}catch(_0x18c2a2){_0x4f92be['push'](_0x4f92be['shift']());}}}(_0x59b9,0x94035));import{ConnectorCoordinateTransform as _0x2c8646,ShapeArrowSizeEnum as _0xbd8ef1,ShapeArrowTypeEnum as _0x15f5e2,ShapeFillEnum as _0x43d314,ShapeGradientTypeEnum as _0x1afe24,ShapeLineCapEnum as _0x3e3d43,ShapeLineDashEnum as _0x35181a,ShapeLineJoinEnum as _0x119aef,ShapeLineTypeEnum as _0x3981c7,ShapeTypeEnum as _0x2c552c,computeConnectorRouteLayout as _0x35c7a4,getBasicShapeRotateBound as _0x9d2fc0,isConnectorShape as _0x47ce93,routeConnectorLineShape as _0x26078f}from'@univerjs-pro/engine-shape';import{FEnum as _0x310fbe}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x57dbe8,DEFAULT_SHAPE_WIDTH as _0x133010,InsertShapeCommand as _0x349e23,SetShapeDrawingDataCommand as _0x3363bb,SheetsShapeService as _0x5d7a9e,UpdateConnectorRelationCommand as _0x167b3e}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x3372c3,generateRandomId as _0x478e17}from'@univerjs/core';import{IDrawingManagerService as _0x2fcdbd}from'@univerjs/drawing';import{SheetSkeletonService as _0x1e583d,convertPositionCellToSheetOverGrid as _0x99372e}from'@univerjs/sheets';import{ISheetDrawingService as _0x5bfdfe,RemoveSheetDrawingCommand as _0x28db79}from'@univerjs/sheets-drawing';import{FWorksheet as _0x3ba9d2}from'@univerjs/sheets/facade';var k=class extends _0x310fbe{get['ShapeTypeEnum'](){return _0x2c552c;}get[_0x5523e0(0x24e)](){return _0x43d314;}get[_0x5523e0(0x1dc)](){return _0x1afe24;}get[_0x5523e0(0x1d8)](){return _0x3981c7;}get[_0x5523e0(0x1f3)](){return _0x35181a;}get[_0x5523e0(0x25a)](){return _0x3e3d43;}get['ShapeLineJoinEnum'](){return _0x119aef;}get[_0x5523e0(0x21c)](){return _0x15f5e2;}get[_0x5523e0(0x232)](){return _0xbd8ef1;}};_0x310fbe[_0x5523e0(0x23a)](k);function A(_0x234b46){'@babel/helpers - typeof';const _0x4bddd0=_0x5523e0;return A=typeof Symbol==_0x4bddd0(0x212)&&typeof Symbol[_0x4bddd0(0x223)]==_0x4bddd0(0x20b)?function(_0x46ce91){return typeof _0x46ce91;}:function(_0x4865a2){const _0xcbe5e3=_0x4bddd0;return _0x4865a2&&typeof Symbol==_0xcbe5e3(0x212)&&_0x4865a2['constructor']===Symbol&&_0x4865a2!==Symbol[_0xcbe5e3(0x237)]?_0xcbe5e3(0x20b):typeof _0x4865a2;},A(_0x234b46);}function j(_0x424949,_0x2d6a93){const _0x2e8329=_0x5523e0;if(A(_0x424949)!=_0x2e8329(0x205)||!_0x424949)return _0x424949;var _0x494530=_0x424949[Symbol[_0x2e8329(0x1f9)]];if(_0x494530!==void 0x0){var _0x562668=_0x494530['call'](_0x424949,_0x2d6a93||'default');if(A(_0x562668)!=_0x2e8329(0x205))return _0x562668;throw TypeError(_0x2e8329(0x24b));}return(_0x2d6a93===_0x2e8329(0x201)?String:Number)(_0x424949);}function M(_0x1db180){const _0x1333c4=_0x5523e0;var _0x228580=j(_0x1db180,_0x1333c4(0x201));return A(_0x228580)==_0x1333c4(0x20b)?_0x228580:_0x228580+'';}function N(_0x21dacf,_0x33bf68,_0x121c1e){const _0x14c499=_0x5523e0;return(_0x33bf68=M(_0x33bf68))in _0x21dacf?Object[_0x14c499(0x233)](_0x21dacf,_0x33bf68,{'value':_0x121c1e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x21dacf[_0x33bf68]=_0x121c1e,_0x21dacf;}var P=class{constructor(_0x3e1787,_0x448e23,_0x24fb1b,_0x3bcfe5){const _0x5a6e6c=_0x5523e0;N(this,_0x5a6e6c(0x1dd),void 0x0),N(this,_0x5a6e6c(0x1de),void 0x0),N(this,_0x5a6e6c(0x24c),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,'width',_0x133010),N(this,_0x5a6e6c(0x227),_0x57dbe8),N(this,_0x5a6e6c(0x1fd),void 0x0),N(this,_0x5a6e6c(0x1f0),{}),N(this,'_injector',void 0x0),this[_0x5a6e6c(0x1dd)]=_0x3e1787,this[_0x5a6e6c(0x1de)]=_0x448e23,this[_0x5a6e6c(0x24c)]=_0x24fb1b||_0x478e17(),this[_0x5a6e6c(0x200)]=_0x3bcfe5;}[_0x5523e0(0x1f5)](_0x2e7b0e,_0x1198bb,_0x315892,_0x2fcdc2){const _0x23e074=_0x5523e0;let _0x336175=this[_0x23e074(0x200)]['get'](_0x1e583d)['ensureSkeleton'](this[_0x23e074(0x1dd)],this[_0x23e074(0x1de)]);if(!_0x336175)throw Error(_0x23e074(0x245)+this['unitId']+_0x23e074(0x203)+this['subUnitId']+'\x20not\x20found');let {transform:_0x3b6860}=_0x99372e(this[_0x23e074(0x1dd)],this[_0x23e074(0x1de)],{'row':_0x2e7b0e,'column':_0x1198bb,'rowOffset':_0x315892,'columnOffset':_0x2fcdc2},0x1,0x1,_0x336175);return this['x']=_0x3b6860[_0x23e074(0x208)],this['y']=_0x3b6860[_0x23e074(0x255)],this;}[_0x5523e0(0x239)](_0x29e5fc,_0x3903e7){return this['x']=_0x29e5fc,this['y']=_0x3903e7,this;}[_0x5523e0(0x1f7)](_0x243df4){return this['shapeType']=_0x243df4,this;}[_0x5523e0(0x220)](_0x4bc536){const _0x3df2a3=_0x5523e0;return _0x4bc536[_0x3df2a3(0x1fd)]&&this[_0x3df2a3(0x1f7)](_0x4bc536[_0x3df2a3(0x1fd)]),this['shapeData']={..._0x4bc536},this;}[_0x5523e0(0x1ff)](_0x370b00,_0x469d0b){const _0x51b252=_0x5523e0;return this[_0x51b252(0x1f0)][_0x51b252(0x1d7)]||(this[_0x51b252(0x1f0)][_0x51b252(0x1d7)]={}),this[_0x51b252(0x1f0)][_0x51b252(0x1d7)]['fillType']=_0x43d314[_0x51b252(0x1ec)],_0x370b00!==void 0x0&&(this[_0x51b252(0x1f0)][_0x51b252(0x1d7)][_0x51b252(0x211)]=_0x370b00),_0x469d0b!==void 0x0&&(this[_0x51b252(0x1f0)]['fill']['opacity']=_0x469d0b),this;}[_0x5523e0(0x228)](_0x34621d,_0x109d2f,_0xb8b8b2){const _0x4bc870=_0x5523e0;if(_0x109d2f===void 0x0||_0x109d2f['length']===0x0)throw Error(_0x4bc870(0x257));return this[_0x4bc870(0x1f0)][_0x4bc870(0x1d7)]||(this[_0x4bc870(0x1f0)][_0x4bc870(0x1d7)]={}),this['shapeData'][_0x4bc870(0x1d7)][_0x4bc870(0x1e3)]=_0x109d2f,this[_0x4bc870(0x1f0)][_0x4bc870(0x1d7)][_0x4bc870(0x256)]=_0x43d314[_0x4bc870(0x204)],this[_0x4bc870(0x1f0)][_0x4bc870(0x1d7)]['gradientType']=_0x34621d,_0xb8b8b2!==void 0x0&&(this[_0x4bc870(0x1f0)][_0x4bc870(0x1d7)][_0x4bc870(0x1d9)]=_0xb8b8b2),this;}[_0x5523e0(0x1df)](){const _0x360a37=_0x5523e0;return this['shapeData']['fill']={'fillType':_0x43d314[_0x360a37(0x23e)]},this;}[_0x5523e0(0x1e6)](_0x1a4f61){const _0xdf2320=_0x5523e0;return this[_0xdf2320(0x1f0)][_0xdf2320(0x22d)]||(this[_0xdf2320(0x1f0)][_0xdf2320(0x22d)]={}),this[_0xdf2320(0x1f0)][_0xdf2320(0x22d)]['color']=_0x1a4f61,this;}[_0x5523e0(0x21d)](_0x37df85){const _0x11f2ed=_0x5523e0;return this['shapeData'][_0x11f2ed(0x22d)]||(this[_0x11f2ed(0x1f0)][_0x11f2ed(0x22d)]={}),this['shapeData'][_0x11f2ed(0x22d)][_0x11f2ed(0x21b)]=_0x37df85,this;}[_0x5523e0(0x23f)](_0x524e0f){const _0x4ec96d=_0x5523e0;return this[_0x4ec96d(0x1f0)][_0x4ec96d(0x22d)]||(this[_0x4ec96d(0x1f0)]['stroke']={}),this['shapeData'][_0x4ec96d(0x22d)][_0x4ec96d(0x231)]=_0x524e0f,this;}[_0x5523e0(0x219)](_0x5e233d){const _0x2ef107=_0x5523e0;return this['shapeData'][_0x2ef107(0x22d)]||(this['shapeData'][_0x2ef107(0x22d)]={}),this[_0x2ef107(0x1f0)][_0x2ef107(0x22d)][_0x2ef107(0x1ed)]=_0x5e233d,this;}['setStrokeLineCapType'](_0x56527e){const _0x2b2abd=_0x5523e0;return this[_0x2b2abd(0x1f0)][_0x2b2abd(0x22d)]||(this[_0x2b2abd(0x1f0)][_0x2b2abd(0x22d)]={}),this[_0x2b2abd(0x1f0)][_0x2b2abd(0x22d)]['capType']=_0x56527e,this;}['setStrokeOpacity'](_0x3dff69){const _0x1fee7e=_0x5523e0;return this[_0x1fee7e(0x1f0)]['stroke']||(this[_0x1fee7e(0x1f0)][_0x1fee7e(0x22d)]={}),this[_0x1fee7e(0x1f0)][_0x1fee7e(0x22d)][_0x1fee7e(0x1e0)]=_0x3dff69,this;}[_0x5523e0(0x21f)](_0x11ec54){const _0x24cd1f=_0x5523e0;return this[_0x24cd1f(0x1f0)][_0x24cd1f(0x22d)]||(this[_0x24cd1f(0x1f0)][_0x24cd1f(0x22d)]={}),this[_0x24cd1f(0x1f0)][_0x24cd1f(0x22d)][_0x24cd1f(0x224)]=_0x11ec54,this;}[_0x5523e0(0x226)](_0x1d40a2){const _0x54589e=_0x5523e0;return this[_0x54589e(0x21b)]=_0x1d40a2,this;}[_0x5523e0(0x25b)](_0x236e7e){return this['height']=_0x236e7e,this;}[_0x5523e0(0x20f)](){const _0x14d184=_0x5523e0;let _0x3e8143=this['_injector'][_0x14d184(0x1e5)](_0x5d7a9e)['getShapeModel'](this[_0x14d184(0x1dd)],this[_0x14d184(0x1de)],this[_0x14d184(0x24c)]);return _0x3e8143?_0x47ce93(_0x3e8143[_0x14d184(0x22f)]()):this[_0x14d184(0x1fd)]?_0x47ce93(this[_0x14d184(0x1fd)]):!0x1;}[_0x5523e0(0x1db)](){const _0x49a28b=_0x5523e0;let _0x9669e3=this[_0x49a28b(0x200)][_0x49a28b(0x1e5)](_0x5d7a9e)[_0x49a28b(0x21a)](this[_0x49a28b(0x1dd)],this['subUnitId'],this[_0x49a28b(0x24c)]);if(!_0x9669e3)return[];let _0x30be06=this[_0x49a28b(0x200)][_0x49a28b(0x1e5)](_0x2fcdbd)[_0x49a28b(0x20c)]({'unitId':this['unitId'],'subUnitId':this[_0x49a28b(0x1de)],'drawingId':this[_0x49a28b(0x24c)]});if(!(_0x30be06!=null&&_0x30be06[_0x49a28b(0x24f)]))return[];let {width:_0x2e0f26=0x0,height:_0x2bb2ca=0x0}=_0x30be06[_0x49a28b(0x24f)];return _0x9669e3[_0x49a28b(0x248)]({'width':_0x2e0f26,'height':_0x2bb2ca}),_0x9669e3[_0x49a28b(0x1fc)]();}['getAdjustPoints'](){const _0x48b25e=_0x5523e0;let _0x230bf8=this['_injector']['get'](_0x5d7a9e)['getShapeModel'](this[_0x48b25e(0x1dd)],this[_0x48b25e(0x1de)],this[_0x48b25e(0x24c)]);if(!_0x230bf8)return[];let _0x5b59a2=this[_0x48b25e(0x200)][_0x48b25e(0x1e5)](_0x2fcdbd)[_0x48b25e(0x20c)]({'unitId':this[_0x48b25e(0x1dd)],'subUnitId':this[_0x48b25e(0x1de)],'drawingId':this['drawId']});if(!(_0x5b59a2!=null&&_0x5b59a2[_0x48b25e(0x24f)]))return[];let {width:_0x5cac7d=0x0,height:_0x49641c=0x0}=_0x5b59a2['transform'];return _0x230bf8[_0x48b25e(0x248)]({'width':_0x5cac7d,'height':_0x49641c}),_0x230bf8[_0x48b25e(0x1fb)]();}[_0x5523e0(0x1eb)](){const _0x4aa196=_0x5523e0;let _0x25983f=this[_0x4aa196(0x200)][_0x4aa196(0x1e5)](_0x5d7a9e)['getShapeModel'](this['unitId'],this['subUnitId'],this[_0x4aa196(0x24c)]);if(!_0x25983f||!_0x47ce93(_0x25983f[_0x4aa196(0x22f)]()))return[];let _0x361be5=this[_0x4aa196(0x200)][_0x4aa196(0x1e5)](_0x2fcdbd)[_0x4aa196(0x20c)]({'unitId':this[_0x4aa196(0x1dd)],'subUnitId':this[_0x4aa196(0x1de)],'drawingId':this[_0x4aa196(0x24c)]});if(!(_0x361be5!=null&&_0x361be5['transform']))return[];let {width:_0x5d2ce9=0x0,height:_0x4b6d1b=0x0}=_0x361be5['transform'];return _0x25983f[_0x4aa196(0x248)]({'width':_0x5d2ce9,'height':_0x4b6d1b}),_0x25983f[_0x4aa196(0x1eb)]();}['getStartConnectInfo'](){const _0x24803a=_0x5523e0;var _0x4cfdde;let _0x4483c7=this[_0x24803a(0x200)][_0x24803a(0x1e5)](_0x5d7a9e)['getShapeModel'](this[_0x24803a(0x1dd)],this[_0x24803a(0x1de)],this[_0x24803a(0x24c)]);return _0x4483c7?(_0x4cfdde=_0x4483c7[_0x24803a(0x20e)]())==null?null:_0x4cfdde:null;}[_0x5523e0(0x242)](){const _0x489fef=_0x5523e0;var _0x24a86d;let _0x204581=this['_injector'][_0x489fef(0x1e5)](_0x5d7a9e)['getShapeModel'](this[_0x489fef(0x1dd)],this[_0x489fef(0x1de)],this[_0x489fef(0x24c)]);return _0x204581?(_0x24a86d=_0x204581['getEndConnectInfo']())==null?null:_0x24a86d:null;}[_0x5523e0(0x250)](){const _0x38dd3b=_0x5523e0;var _0x103da9,_0x1d221e;if(!this['shapeType'])throw Error(_0x38dd3b(0x20a));if(this['x']===0x0||this['y']===0x0){let _0x131088=this[_0x38dd3b(0x200)][_0x38dd3b(0x1e5)](_0x1e583d)[_0x38dd3b(0x217)](this[_0x38dd3b(0x1dd)],this[_0x38dd3b(0x1de)]);if(!_0x131088)throw Error(_0x38dd3b(0x245)+this[_0x38dd3b(0x1dd)]+_0x38dd3b(0x203)+this[_0x38dd3b(0x1de)]+_0x38dd3b(0x210));let {transform:_0x187de0}=_0x99372e(this[_0x38dd3b(0x1dd)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x131088);this['x']=this['x']>0x0?this['x']:_0x187de0[_0x38dd3b(0x208)],this['y']=this['y']>0x0?this['y']:_0x187de0[_0x38dd3b(0x255)];}return this[_0x38dd3b(0x21b)]=(_0x103da9=this[_0x38dd3b(0x21b)])==null?_0x133010:_0x103da9,this[_0x38dd3b(0x227)]=(_0x1d221e=this['height'])==null?_0x57dbe8:_0x1d221e,{'unitId':this[_0x38dd3b(0x1dd)],'subUnitId':this[_0x38dd3b(0x1de)],'shapeId':this['drawId'],'shapeType':this[_0x38dd3b(0x1fd)],'shapeData':Object[_0x38dd3b(0x246)](this[_0x38dd3b(0x1f0)])[_0x38dd3b(0x202)]>0x0?this[_0x38dd3b(0x1f0)]:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x38dd3b(0x227)]};}['getShapeId'](){const _0x4e20a0=_0x5523e0;return this[_0x4e20a0(0x24c)];}[_0x5523e0(0x22f)](){const _0x77626=_0x5523e0;return this[_0x77626(0x1fd)];}[_0x5523e0(0x1e9)](){const _0x34984b=_0x5523e0;return this[_0x34984b(0x1f0)];}[_0x5523e0(0x209)](){return{'x':this['x'],'y':this['y']};}['getSize'](){const _0x341daf=_0x5523e0;return{'width':this[_0x341daf(0x21b)],'height':this[_0x341daf(0x227)]};}},F=class extends P{constructor(_0x2124d3,_0x2c2bc6,_0x3fb5b7,_0x121577){const _0x370c87=_0x5523e0;super(_0x2124d3,_0x2c2bc6,_0x3fb5b7,_0x121577),N(this,_0x370c87(0x1f0),{});}[_0x5523e0(0x1f7)](_0x4b71d0){const _0x47b0ab=_0x5523e0;if(!_0x47ce93(_0x4b71d0))throw Error(_0x47b0ab(0x1ef)+_0x4b71d0+_0x47b0ab(0x24a));return super[_0x47b0ab(0x1f7)](_0x4b71d0),this;}[_0x5523e0(0x241)](_0x38a9f9){const _0x3612c5=_0x5523e0;var _0x1f1f95,_0x333d25;return(_0x1f1f95=this[_0x3612c5(0x1f0)])!=null&&_0x1f1f95['ln']||(this[_0x3612c5(0x1f0)]['ln']={}),!((_0x333d25=this[_0x3612c5(0x1f0)])==null||(_0x333d25=_0x333d25['ln'])==null)&&_0x333d25[_0x3612c5(0x1e4)]||(this[_0x3612c5(0x1f0)]['ln'][_0x3612c5(0x1e4)]={}),this[_0x3612c5(0x1f0)]['ln'][_0x3612c5(0x1e4)][_0x3612c5(0x23c)]=_0x38a9f9,this;}[_0x5523e0(0x22a)](_0x1238b2){const _0x336e0c=_0x5523e0;var _0x3359b2,_0x162c97;return(_0x3359b2=this[_0x336e0c(0x1f0)])!=null&&_0x3359b2['ln']||(this[_0x336e0c(0x1f0)]['ln']={}),!((_0x162c97=this[_0x336e0c(0x1f0)])==null||(_0x162c97=_0x162c97['ln'])==null)&&_0x162c97[_0x336e0c(0x1e8)]||(this[_0x336e0c(0x1f0)]['ln'][_0x336e0c(0x1e8)]={}),this[_0x336e0c(0x1f0)]['ln']['endArrow'][_0x336e0c(0x23c)]=_0x1238b2,this;}[_0x5523e0(0x229)](_0x37efcc){const _0x304e44=_0x5523e0;var _0x35ce02,_0x50b40f;return(_0x35ce02=this[_0x304e44(0x1f0)])!=null&&_0x35ce02['ln']||(this['shapeData']['ln']={}),!((_0x50b40f=this[_0x304e44(0x1f0)])==null||(_0x50b40f=_0x50b40f['ln'])==null)&&_0x50b40f[_0x304e44(0x1e4)]||(this['shapeData']['ln'][_0x304e44(0x1e4)]={}),this[_0x304e44(0x1f0)]['ln']['startArrow']['size']=_0x37efcc,this;}[_0x5523e0(0x1f4)](_0x35a2da){const _0x3e5cd8=_0x5523e0;var _0x42639e,_0x238f0d;return(_0x42639e=this[_0x3e5cd8(0x1f0)])!=null&&_0x42639e['ln']||(this['shapeData']['ln']={}),!((_0x238f0d=this['shapeData'])==null||(_0x238f0d=_0x238f0d['ln'])==null)&&_0x238f0d['endArrow']||(this[_0x3e5cd8(0x1f0)]['ln'][_0x3e5cd8(0x1e8)]={}),this['shapeData']['ln'][_0x3e5cd8(0x1e8)]['size']=_0x35a2da,this;}[_0x5523e0(0x250)](){const _0x481078=_0x5523e0;return super[_0x481078(0x250)]();}[_0x5523e0(0x242)](){const _0x54f62b=_0x5523e0;var _0x5f34a3;return((_0x5f34a3=this['shapeData'])==null||(_0x5f34a3=_0x5f34a3[_0x54f62b(0x1fe)])==null?void 0x0:_0x5f34a3['to'])||null;}[_0x5523e0(0x20e)](){const _0x5f2a69=_0x5523e0;var _0x335f3c;return((_0x335f3c=this[_0x5f2a69(0x1f0)])==null||(_0x335f3c=_0x335f3c[_0x5f2a69(0x1fe)])==null?void 0x0:_0x335f3c['from'])||null;}};function I(_0xfc613b,_0x3656a0,_0xb041d4,_0x2135b2,_0x565acf,_0x3a9b2a){const _0x31abb0=_0x5523e0;let _0x7b6980=_0x565acf[_0x31abb0(0x21a)](_0xfc613b,_0x3656a0,_0xb041d4);if(!_0x7b6980)return null;let _0x15caec=_0x3a9b2a[_0x31abb0(0x20c)]({'unitId':_0xfc613b,'subUnitId':_0x3656a0,'drawingId':_0xb041d4});if(!(_0x15caec!=null&&_0x15caec[_0x31abb0(0x24f)]))return null;let {left:_0x3b95e2=0x0,top:_0x540750=0x0,width:_0xbec466=0x0,height:_0x2d4501=0x0,flipX:_0x5737d8=!0x1,flipY:_0x5767ba=!0x1,angle:_0x8bb293}=_0x15caec[_0x31abb0(0x24f)];_0x7b6980[_0x31abb0(0x248)]({'width':_0xbec466,'height':_0x2d4501});let _0x2745fe=_0x7b6980[_0x31abb0(0x1fc)]()[_0x31abb0(0x25c)](_0x13134f=>_0x13134f[_0x31abb0(0x1fa)]===_0x2135b2);if(!_0x2745fe)return null;let _0x2cc2f8=_0x5737d8?_0xbec466-_0x2745fe['x']:_0x2745fe['x'],_0x514467=_0x5767ba?_0x2d4501-_0x2745fe['y']:_0x2745fe['y'];if(_0x8bb293&&_0x8bb293!==0x0){let _0x4e5096=_0x8bb293*Math['PI']/0xb4,_0x44c016=Math['cos'](_0x4e5096),_0x2b6eb0=Math[_0x31abb0(0x254)](_0x4e5096),_0x27cc43=_0xbec466/0x2,_0x4eea1a=_0x2d4501/0x2,_0xe704bd=_0x2cc2f8-_0x27cc43,_0x21b1aa=_0x514467-_0x4eea1a;_0x2cc2f8=_0x27cc43+_0xe704bd*_0x44c016-_0x21b1aa*_0x2b6eb0,_0x514467=_0x4eea1a+_0xe704bd*_0x2b6eb0+_0x21b1aa*_0x44c016;}_0x2cc2f8+=_0x3b95e2,_0x514467+=_0x540750;let _0x2b0faa=_0x2745fe[_0x31abb0(0x215)]/0xea60;_0x5737d8&&(_0x2b0faa=0xb4-_0x2b0faa),_0x5767ba&&(_0x2b0faa=-_0x2b0faa),_0x2b0faa+=_0x8bb293||0x0,_0x2b0faa=(_0x2b0faa%0x168+0x168)%0x168;let _0x503729=_0x9d2fc0({'left':_0x3b95e2,'top':_0x540750,'width':_0xbec466,'height':_0x2d4501},_0x8bb293||0x0);return{'point':{'x':_0x2cc2f8,'y':_0x514467},'angle':_0x2b0faa,'bounds':_0x503729};}function L(_0xe2550,_0x252f2e){const _0x334749=_0x5523e0;let _0x232f11=_0x252f2e['x']-_0xe2550['x'],_0x470ee7=_0x252f2e['y']-_0xe2550['y'];return Math[_0x334749(0x230)](_0x232f11)>=Math['abs'](_0x470ee7)?_0x232f11>=0x0?0xb4:0x0:_0x470ee7>=0x0?0x10e:0x5a;}function R(_0x36880e,_0x487852,_0x50d0fb,_0x355690,_0x4bf932,_0xa176fb,_0x24fa3d){const _0x4afe69=_0x5523e0;let _0x4ca2da=_0xa176fb['getShapeModel'](_0x36880e,_0x487852,_0x50d0fb);if(!_0x4ca2da)return null;let _0xcea9af=_0x24fa3d[_0x4afe69(0x20c)]({'unitId':_0x36880e,'subUnitId':_0x487852,'drawingId':_0x50d0fb});if(!(_0xcea9af!=null&&_0xcea9af['transform']))return null;let {left:_0x1db18b=0x0,top:_0x555e1b=0x0,width:_0x3ef2d6=0x0,height:_0x1cac70=0x0,flipX:_0x6212ab=!0x1,flipY:_0x20ebbf=!0x1}=_0xcea9af[_0x4afe69(0x24f)];_0x4ca2da[_0x4afe69(0x248)]({'width':_0x3ef2d6,'height':_0x1cac70});let _0x121124=_0x4ca2da[_0x4afe69(0x1eb)]();if(_0x121124[_0x4afe69(0x202)]<0x2)return null;let _0xa506b6=_0x355690?_0x121124[0x0]:_0x121124[_0x121124['length']-0x1],_0x90d43b=new _0x2c8646({'left':_0x1db18b,'top':_0x555e1b,'width':_0x3ef2d6,'height':_0x1cac70,'flipX':_0x6212ab,'flipY':_0x20ebbf})[_0x4afe69(0x1f8)](_0xa506b6);return{'point':_0x90d43b,'angle':L(_0x4bf932[_0x4afe69(0x244)],_0x90d43b),'bounds':{'left':_0x90d43b['x'],'top':_0x90d43b['y'],'width':0x0,'height':0x0}};}function _0x2aba(_0x103f8d,_0x2b8068){_0x103f8d=_0x103f8d-0x1d7;const _0x59b991=_0x59b9();let _0x2aba6e=_0x59b991[_0x103f8d];return _0x2aba6e;}var z=class extends _0x3ba9d2{async['insertShape'](_0x375502){const _0x315126=_0x5523e0;let {unitId:_0x2d1e54,subUnitId:_0x4c0f91,shapeId:_0x35b94e,shapeType:_0x5ad9c8,shapeData:_0x271e22,x:_0x200840,y:_0x26d6d1,width:_0x44beb4,height:_0x5e1872}=_0x375502;return this[_0x315126(0x1ee)][_0x315126(0x22c)](_0x349e23['id'],{'unitId':_0x2d1e54,'subUnitId':_0x4c0f91,'shapeId':_0x35b94e,'shapeType':_0x5ad9c8,'shapeData':_0x271e22,'position':{'x':_0x200840,'y':_0x26d6d1},'width':_0x44beb4,'height':_0x5e1872});}async[_0x5523e0(0x23d)](_0x2c36c1){const _0xb9e3bc=_0x5523e0;let {unitId:_0x3733bb,subUnitId:_0x207590,shapeId:_0x403d41,shapeType:_0x5f5d4d,shapeData:_0x7dcf04,x:_0x2b71c7,y:_0x2c55ee,width:_0x57f6bf,height:_0x481a2e}=_0x2c36c1;return this[_0xb9e3bc(0x1ee)][_0xb9e3bc(0x22c)](_0x3363bb['id'],{'unitId':_0x3733bb,'subUnitId':_0x207590,'shapeId':_0x403d41,'shapeType':_0x5f5d4d,'shapeData':_0x7dcf04,'position':{'x':_0x2b71c7,'y':_0x2c55ee},'width':_0x57f6bf,'height':_0x481a2e});}[_0x5523e0(0x20d)](_0x56f169){const _0x44c659=_0x5523e0;let _0x1abee6=this['getWorkbook']()[_0x44c659(0x243)](),_0x29ea8c=this[_0x44c659(0x214)]();if(_0x56f169){let _0x5dad36=new P(_0x1abee6,_0x29ea8c,_0x56f169[_0x44c659(0x24c)],this[_0x44c659(0x200)]);return this['_preloadShapeProperties'](_0x5dad36,_0x1abee6,_0x29ea8c,_0x56f169[_0x44c659(0x24c)]),_0x5dad36;}return new P(_0x1abee6,_0x29ea8c,_0x478e17(),this[_0x44c659(0x200)]);}['newConnector'](_0x53a5b1){const _0x5cfa82=_0x5523e0;let _0x23c4d6=this[_0x5cfa82(0x249)]()['getUnitId'](),_0x5432ec=this[_0x5cfa82(0x214)]();if(_0x53a5b1){let _0xbc3c5a=new F(_0x23c4d6,_0x5432ec,_0x53a5b1[_0x5cfa82(0x24c)],this[_0x5cfa82(0x200)]);return this[_0x5cfa82(0x251)](_0xbc3c5a,_0x23c4d6,_0x5432ec,_0x53a5b1['drawId']),_0xbc3c5a;}return new F(_0x23c4d6,_0x5432ec,_0x478e17(),this[_0x5cfa82(0x200)]);}['getShapes'](){const _0x45f8b4=_0x5523e0;let _0x577427=this[_0x45f8b4(0x200)][_0x45f8b4(0x1e5)](_0x5bfdfe),_0x1006b5=this[_0x45f8b4(0x249)]()[_0x45f8b4(0x243)](),_0xb7ca65=this[_0x45f8b4(0x214)](),_0x1e5dab=_0x577427['getDrawingData'](_0x1006b5,_0xb7ca65);if(!_0x1e5dab)return[];let _0x306c4b=[];for(let [_0x1aa741,_0x130992]of Object[_0x45f8b4(0x240)](_0x1e5dab))if(_0x130992&&_0x130992[_0x45f8b4(0x1e7)]===_0x3372c3['DRAWING_SHAPE']){let _0x2b9d7e=new P(_0x1006b5,_0xb7ca65,_0x1aa741,this[_0x45f8b4(0x200)]);this[_0x45f8b4(0x251)](_0x2b9d7e,_0x1006b5,_0xb7ca65,_0x1aa741),_0x306c4b['push'](_0x2b9d7e);}return _0x306c4b;}['removeShape'](_0x1aed9e){const _0x80b68f=_0x5523e0;let {unitId:_0x426fb4,subUnitId:_0x29d21,drawId:_0xa99c57}=_0x1aed9e;return this['_commandService']['executeCommand'](_0x28db79['id'],{'unitId':_0x426fb4,'drawings':[{'unitId':_0x426fb4,'subUnitId':_0x29d21,'drawingId':_0xa99c57,'drawingType':_0x3372c3[_0x80b68f(0x1ea)]}]});}async[_0x5523e0(0x247)](_0x2429a0){const _0x1eec79=_0x5523e0;let {connector:_0x5942da,startTarget:_0x5b0f8e,endTarget:_0x361c85}=_0x2429a0;if(!_0x5b0f8e&&!_0x361c85)return!0x1;let _0x379033=this['getWorkbook']()[_0x1eec79(0x243)](),_0xf99479=this[_0x1eec79(0x214)](),_0x412e90=this[_0x1eec79(0x200)][_0x1eec79(0x1e5)](_0x5d7a9e),_0x7282b0=this[_0x1eec79(0x200)][_0x1eec79(0x1e5)](_0x2fcdbd),_0x1970bd=_0x412e90[_0x1eec79(0x21a)](_0x379033,_0xf99479,_0x5942da[_0x1eec79(0x24c)]);if(!_0x1970bd)return!0x1;let _0x41fee6=_0x1970bd[_0x1eec79(0x22f)](),_0x53e5ff=_0x1970bd[_0x1eec79(0x234)](),_0x210905={};for(let _0x2a5d41 of _0x1970bd[_0x1eec79(0x21e)]()){let _0x225f6d=_0x1970bd[_0x1eec79(0x1f6)](_0x2a5d41);_0x225f6d!==void 0x0&&(_0x210905[_0x2a5d41]=_0x225f6d);}let {startInfo:_0x3443a2,endInfo:_0xe3ba13}=this[_0x1eec79(0x1da)](_0x379033,_0xf99479,_0x5942da,_0x1970bd,_0x5b0f8e,_0x361c85,_0x412e90,_0x7282b0,_0x53e5ff);if(!_0x3443a2||!_0xe3ba13)return!0x1;let _0x15d352=_0x35c7a4(_0x26078f(_0x3443a2,_0xe3ba13,_0x41fee6),_0x41fee6),_0x4f9a49={};return _0x5b0f8e?_0x4f9a49[_0x1eec79(0x22b)]={'shapeId':_0x5b0f8e[_0x1eec79(0x259)][_0x1eec79(0x24c)],'cxnIndex':_0x5b0f8e['connectionSiteIndex']}:_0x53e5ff!=null&&_0x53e5ff[_0x1eec79(0x22b)]&&(_0x4f9a49[_0x1eec79(0x22b)]=_0x53e5ff[_0x1eec79(0x22b)]),_0x361c85?_0x4f9a49['to']={'shapeId':_0x361c85[_0x1eec79(0x259)][_0x1eec79(0x24c)],'cxnIndex':_0x361c85[_0x1eec79(0x225)]}:_0x53e5ff!=null&&_0x53e5ff['to']&&(_0x4f9a49['to']=_0x53e5ff['to']),this[_0x1eec79(0x1ee)][_0x1eec79(0x22c)](_0x167b3e['id'],{'unitId':_0x379033,'subUnitId':_0xf99479,'connectorShapeId':_0x5942da['drawId'],'width':_0x15d352['worldRect']['width'],'height':_0x15d352['worldRect'][_0x1eec79(0x227)],'left':_0x15d352[_0x1eec79(0x24d)]['left'],'top':_0x15d352[_0x1eec79(0x24d)][_0x1eec79(0x255)],'flipX':_0x15d352[_0x1eec79(0x24d)][_0x1eec79(0x207)]||!0x1,'flipY':_0x15d352['worldRect'][_0x1eec79(0x235)]||!0x1,'oldAdjustValues':_0x210905,'newAdjustValues':_0x15d352['adjustValues'],'newLineType':_0x15d352[_0x1eec79(0x1f2)],'oldLineType':_0x41fee6,'rotation':_0x15d352[_0x1eec79(0x221)],'oldRelation':_0x53e5ff,'newRelation':_0x4f9a49});}[_0x5523e0(0x251)](_0x2181da,_0x36d130,_0x3ff58b,_0x1d0538){const _0x45efbb=_0x5523e0;let _0x120ae3=this[_0x45efbb(0x200)][_0x45efbb(0x1e5)](_0x2fcdbd)[_0x45efbb(0x20c)]({'unitId':_0x36d130,'subUnitId':_0x3ff58b,'drawingId':_0x1d0538});if(_0x120ae3!=null&&_0x120ae3[_0x45efbb(0x24f)]){var _0x26d959,_0x37cad1,_0x200952,_0x37304f;_0x2181da['x']=(_0x26d959=_0x120ae3[_0x45efbb(0x24f)][_0x45efbb(0x208)])==null?0x0:_0x26d959,_0x2181da['y']=(_0x37cad1=_0x120ae3[_0x45efbb(0x24f)]['top'])==null?0x0:_0x37cad1,_0x2181da[_0x45efbb(0x21b)]=(_0x200952=_0x120ae3['transform'][_0x45efbb(0x21b)])==null?_0x2181da[_0x45efbb(0x21b)]:_0x200952,_0x2181da[_0x45efbb(0x227)]=(_0x37304f=_0x120ae3[_0x45efbb(0x24f)][_0x45efbb(0x227)])==null?_0x2181da[_0x45efbb(0x227)]:_0x37304f;}let _0x3b5810=this[_0x45efbb(0x200)][_0x45efbb(0x1e5)](_0x5d7a9e)[_0x45efbb(0x21a)](_0x36d130,_0x3ff58b,_0x1d0538);if(_0x3b5810){_0x2181da['shapeType']=_0x3b5810[_0x45efbb(0x22f)]();let _0x13aac9=_0x3b5810[_0x45efbb(0x1e9)]();_0x13aac9&&(_0x2181da[_0x45efbb(0x1f0)]=JSON[_0x45efbb(0x238)](JSON[_0x45efbb(0x1e2)](_0x13aac9)));}}[_0x5523e0(0x1da)](_0x2b3ed1,_0x1c93c7,_0x414413,_0xcc149b,_0x3ce4b2,_0x2a202c,_0x554142,_0x2fe704,_0x3aead9){const _0x6f437c=_0x5523e0;let _0x8cf541=null,_0x54415b=null;return _0x3ce4b2&&(_0x8cf541=I(_0x2b3ed1,_0x1c93c7,_0x3ce4b2[_0x6f437c(0x259)][_0x6f437c(0x24c)],_0x3ce4b2[_0x6f437c(0x225)],_0x554142,_0x2fe704)),_0x2a202c&&(_0x54415b=I(_0x2b3ed1,_0x1c93c7,_0x2a202c[_0x6f437c(0x259)][_0x6f437c(0x24c)],_0x2a202c[_0x6f437c(0x225)],_0x554142,_0x2fe704)),_0x8cf541||(_0x8cf541=this['_resolveExistingOrFreeEndpoint'](_0x2b3ed1,_0x1c93c7,_0x414413[_0x6f437c(0x24c)],!0x0,_0x54415b,_0x3aead9==null?void 0x0:_0x3aead9[_0x6f437c(0x22b)],_0x554142,_0x2fe704)),_0x54415b||(_0x54415b=this['_resolveExistingOrFreeEndpoint'](_0x2b3ed1,_0x1c93c7,_0x414413[_0x6f437c(0x24c)],!0x1,_0x8cf541,_0x3aead9==null?void 0x0:_0x3aead9['to'],_0x554142,_0x2fe704)),{'startInfo':_0x8cf541,'endInfo':_0x54415b};}[_0x5523e0(0x213)](_0x1816d4,_0x31819e,_0x499fe1,_0x397d1f,_0x2b5422,_0x4ef3e3,_0x2c0918,_0x16dbe2){const _0xdb6d5=_0x5523e0;if(_0x4ef3e3){let _0x58ba2c=I(_0x1816d4,_0x31819e,_0x4ef3e3[_0xdb6d5(0x252)],_0x4ef3e3[_0xdb6d5(0x22e)],_0x2c0918,_0x16dbe2);if(_0x58ba2c)return _0x58ba2c;}return _0x2b5422?R(_0x1816d4,_0x31819e,_0x499fe1,_0x397d1f,_0x2b5422,_0x2c0918,_0x16dbe2):null;}};_0x3ba9d2[_0x5523e0(0x23a)](z);export{F as FConnectorShape,P as FShape};function _0x59b9(){const _0x5b1979=['stroke','cxnIndex','getShapeType','abs','dashType','ShapeArrowSizeEnum','defineProperty','getShapeRelation','flipY','7fpVIsj','prototype','parse','setAbsolutePosition','extend','706uwvOcB','type','updateShape','NoFill','setStrokeLineDashType','entries','setStartArrowType','getEndConnectInfo','getUnitId','point','Skeleton\x20for\x20unitId\x20','keys','connectShapes','updateContext','getWorkbook',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','drawId','worldRect','ShapeFillEnum','transform','build','_preloadShapeProperties','shapeId','1360089yHYIWG','sin','top','fillType','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','5293122bpsgfs','shape','ShapeLineCapEnum','setHeight','find','fill','ShapeLineTypeEnum','gradientAngle','_resolveEndpoints','getConnectionSites','ShapeGradientTypeEnum','unitId','subUnitId','setNoneFill','opacity','5JaxLFb','stringify','gradientStops','startArrow','get','setStrokeColor','drawingType','endArrow','getShapeData','DRAWING_SHAPE','getConnectorLinePoints','SolidFill','lineJoinType','_commandService','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','shapeData','1141skAjTi','lineType','ShapeLineDashEnum','setEndArrowSize','setPosition','getAdjustValueByName','setShapeType','localToWorld','toPrimitive','index','getDrawingPoints','getConnectionSiteList','shapeType','relation','setShapeSolidFill','_injector','string','length','\x20and\x20subUnitId\x20','GradientFill','object','6970336LWmnwp','flipX','left','getPosition','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','symbol','getDrawingByParam','newShape','getStartConnectInfo','isLineShape','\x20not\x20found','color','function','_resolveExistingOrFreeEndpoint','getSheetId','ang','5011650ZCJpGI','ensureSkeleton','6729021VsKJyC','setStrokeLineJoinType','getShapeModel','width','ShapeArrowTypeEnum','setStrokeWidth','getAdjustNames','setStrokeLineType','setShapeData','rotation','4039416yhjhBy','iterator','lineStrokeType','connectionSiteIndex','setWidth','height','setShapeGradientFill','setStartArrowSize','setEndArrowType','from','executeCommand'];_0x59b9=function(){return _0x5b1979;};return _0x59b9();}
|
|
1
|
+
const _0x95e4eb=_0x12b6;(function(_0x4d5561,_0x203469){const _0x57ad42=_0x12b6,_0x51e40b=_0x4d5561();while(!![]){try{const _0x4af441=parseInt(_0x57ad42(0xdc))/0x1*(parseInt(_0x57ad42(0xf8))/0x2)+parseInt(_0x57ad42(0xf9))/0x3*(parseInt(_0x57ad42(0xf3))/0x4)+parseInt(_0x57ad42(0xed))/0x5*(parseInt(_0x57ad42(0xf6))/0x6)+parseInt(_0x57ad42(0xfb))/0x7+parseInt(_0x57ad42(0xd9))/0x8+-parseInt(_0x57ad42(0xf0))/0x9+parseInt(_0x57ad42(0xe3))/0xa*(-parseInt(_0x57ad42(0xfa))/0xb);if(_0x4af441===_0x203469)break;else _0x51e40b['push'](_0x51e40b['shift']());}catch(_0x3a81c3){_0x51e40b['push'](_0x51e40b['shift']());}}}(_0x10d6,0x8b828));import{IShapeHostAdapterRegistry as _0x5d7fdc,isConnectorShape as _0x326445}from'@univerjs-pro/engine-shape';import{FConnectorShape as _0x4c7235,FShape as _0x5caa44}from'@univerjs-pro/engine-shape/facade';import{UniverInstanceType as _0x2fef7e}from'@univerjs/core';import{FWorksheet as _0x46913d}from'@univerjs/sheets/facade';import{SheetSkeletonService as _0x4ddf29,convertPositionCellToSheetOverGrid as _0x557a76}from'@univerjs/sheets';var c=class extends _0x5caa44{['setPosition'](_0x36de79,_0x1eaa41,_0x149907,_0x58f0b8){const _0x707284=_0x12b6;let {unitId:_0x14feee,subUnitId:_0x38d6a8}=this[_0x707284(0xee)],_0x36599d=this[_0x707284(0xfd)][_0x707284(0xf4)](_0x4ddf29)[_0x707284(0xda)](_0x14feee,_0x38d6a8);if(!_0x36599d)return console[_0x707284(0xf1)](_0x707284(0xe0)+_0x14feee+_0x707284(0xe2)+_0x38d6a8+'\x22\x20was\x20not\x20found.'),this;let {transform:_0x238431}=_0x557a76(_0x14feee,_0x38d6a8,{'row':_0x36de79,'column':_0x1eaa41,'rowOffset':_0x149907,'columnOffset':_0x58f0b8},0x1,0x1,_0x36599d);return this[_0x707284(0xea)](_0x238431[_0x707284(0xec)],_0x238431[_0x707284(0xdd)]);}},l=class extends _0x46913d{['insertShape'](_0x4fbd0c){const _0x150b37=_0x12b6;let _0xb691d4=this[_0x150b37(0xe9)]();if(!_0xb691d4)return null;try{let _0x58e6e3=_0xb691d4[_0x150b37(0xef)](this[_0x150b37(0xf7)](),_0x4fbd0c);return _0x58e6e3?this['_createShapeHandle'](_0x58e6e3):(console['warn'](_0x150b37(0xe7)),null);}catch(_0x4e59c1){return console[_0x150b37(0xf1)](_0x150b37(0xe7),_0x4e59c1),null;}}['getShape'](_0x5bd2fc){const _0x3d0bf0=_0x12b6;let _0x72b54a=this[_0x3d0bf0(0xe9)]();if(!_0x72b54a)return null;try{let _0x43c03f={...this[_0x3d0bf0(0xf7)](),'shapeId':_0x5bd2fc},_0x52bfd9=_0x72b54a['getShape'](_0x43c03f);return _0x52bfd9?this['_createShapeHandle'](_0x52bfd9):(console[_0x3d0bf0(0xf1)](_0x3d0bf0(0xdf)+_0x5bd2fc+_0x3d0bf0(0xe4)),null);}catch(_0x2a6877){return console['warn']('[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22'+_0x5bd2fc+'\x22.',_0x2a6877),null;}}['getShapes'](){const _0x31f373=_0x12b6;let _0x5c622b=this[_0x31f373(0xe9)]();if(!_0x5c622b)return[];try{return _0x5c622b[_0x31f373(0xe6)](this['_getShapeScope']())[_0x31f373(0xe5)](_0x1e9630=>this[_0x31f373(0xe1)](_0x1e9630));}catch(_0x2960e5){return console['warn'](_0x31f373(0xf5),_0x2960e5),[];}}[_0x95e4eb(0xf7)](){const _0x2ede3d=_0x95e4eb;return{'hostType':_0x2fef7e[_0x2ede3d(0xdb)],'unitId':this[_0x2ede3d(0xeb)]()[_0x2ede3d(0xde)](),'subUnitId':this[_0x2ede3d(0xe8)]()};}[_0x95e4eb(0xe9)](){const _0x14a401=_0x95e4eb;return this['_injector'][_0x14a401(0xf4)](_0x5d7fdc)[_0x14a401(0xf4)](_0x2fef7e['UNIVER_SHEET']);}[_0x95e4eb(0xe1)](_0x12e1f5){const _0x19c8b9=_0x95e4eb;let {unitId:_0x185a5a,subUnitId:_0x5879e1,shapeId:_0x21422}=_0x12e1f5,_0x4d50f3={'unitId':_0x185a5a,'subUnitId':_0x5879e1,'shapeId':_0x21422,'hostType':_0x2fef7e[_0x19c8b9(0xdb)]};return _0x326445(_0x12e1f5['shapeType'])?this[_0x19c8b9(0xfd)][_0x19c8b9(0xfc)](_0x4c7235,_0x4d50f3,this[_0x19c8b9(0xfd)]):this[_0x19c8b9(0xfd)][_0x19c8b9(0xfc)](c,_0x4d50f3,this[_0x19c8b9(0xfd)]);}};_0x46913d[_0x95e4eb(0xf2)](l);function _0x10d6(){const _0x3a155b=['createShape','4714344BHrPLn','warn','extend','1628DAHLjc','get','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.','2619426xiajsV','_getShapeScope','142210pQMLUf','4374EUqyik','11wvtwNh','2563323anuZGS','createInstance','_injector','7000104BzBsMe','ensureSkeleton','UNIVER_SHEET','16wAvDKT','top','getUnitId','[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22','[Sheet\x20Shape\x20Facade]:\x20Skeleton\x20for\x20unit\x20\x22','_createShapeHandle','\x22\x20and\x20sheet\x20\x22','23136110qdaQDX','\x22\x20was\x20not\x20found.','map','listShapes','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.','getSheetId','_getShapeAdapter','setAbsolutePosition','getWorkbook','left','5eKpfyN','_shapeRef'];_0x10d6=function(){return _0x3a155b;};return _0x10d6();}function _0x12b6(_0x5735e0,_0x5e7a2f){_0x5735e0=_0x5735e0-0xd9;const _0x10d657=_0x10d6();let _0x12b6ff=_0x10d657[_0x5735e0];return _0x12b6ff;}export{c as FSheetShape};
|