@univerjs-pro/sheets-shape 1.0.0-alpha.2 → 1.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -2
- 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/index.d.ts +2 -8
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3f997f=_0x179a;(function(_0x3a96c0,_0x47f223){const _0x23bd79=_0x179a,_0x5ea9b8=_0x3a96c0();while(!![]){try{const _0x4538d3=parseInt(_0x23bd79(0x276))/0x1+-parseInt(_0x23bd79(0x237))/0x2+parseInt(_0x23bd79(0x232))/0x3*(-parseInt(_0x23bd79(0x22b))/0x4)+parseInt(_0x23bd79(0x21c))/0x5+parseInt(_0x23bd79(0x1ee))/0x6*(-parseInt(_0x23bd79(0x242))/0x7)+parseInt(_0x23bd79(0x239))/0x8*(-parseInt(_0x23bd79(0x225))/0x9)+parseInt(_0x23bd79(0x1f0))/0xa;if(_0x4538d3===_0x47f223)break;else _0x5ea9b8['push'](_0x5ea9b8['shift']());}catch(_0x2c0935){_0x5ea9b8['push'](_0x5ea9b8['shift']());}}}(_0x5779,0xb64aa));import{ShapeModel as _0x1f618e,computeConnectorRouteLayout as _0x11fbdc,createUniqueShapeName as _0x124378,getBasicShapeRotateBound as _0x4c4c2c,isConnectorShape as _0x163cf5,routeConnectorLineShape as _0x4d3188}from'@univerjs-pro/engine-shape';import{CommandType as _0x5569b6,DependentOn as _0x5127bc,Disposable as _0x55006e,DrawingTypeEnum as _0x53e1b5,ICommandService as _0x4244e2,IConfigService as _0x1a7ac4,IResourceManagerService as _0x3cdc6d,IUndoRedoService as _0x1cf9fc,IUniverInstanceService as _0x2900d8,Inject as _0x3f9e01,Injector as _0x48d8f4,Plugin as _0x108e80,UniverInstanceType as _0x186b43,generateRandomId as _0xf5a382,merge as _0x39594a,sequenceExecute as _0x3a0205,touchDependencies as _0x5eb370}from'@univerjs/core';import{SheetInterceptorService as _0x296b96,SheetSkeletonService as _0x4fcab3,getSheetCommandTarget as _0x59efd3}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x317e79,DrawingApplyType as _0x1c747c,ISheetDrawingService as _0x4c93e3,InsertSheetDrawingCommand as _0x5bcbb6,RemoveSheetDrawingCommand as _0x511e31,SetDrawingApplyMutation as _0xaa8efd,SetSheetDrawingCommand as _0x3db37e,transformToAxisAlignPosition as _0x1b03b3,transformToDrawingPosition as _0x42d0e0}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x150078}from'@univerjs-pro/license';import{IDrawingManagerService as _0x189d45}from'@univerjs/drawing';const L=0xc8,R=0xc8;function z(_0x5d7d13){'@babel/helpers - typeof';const _0x43e131=_0x179a;return z=typeof Symbol==_0x43e131(0x1fa)&&typeof Symbol[_0x43e131(0x24e)]=='symbol'?function(_0x2911d4){return typeof _0x2911d4;}:function(_0x4d71e4){const _0x2bf7ee=_0x43e131;return _0x4d71e4&&typeof Symbol==_0x2bf7ee(0x1fa)&&_0x4d71e4[_0x2bf7ee(0x230)]===Symbol&&_0x4d71e4!==Symbol[_0x2bf7ee(0x258)]?_0x2bf7ee(0x248):typeof _0x4d71e4;},z(_0x5d7d13);}function B(_0x4a3c32,_0x38f456){const _0x56e708=_0x179a;if(z(_0x4a3c32)!=_0x56e708(0x23d)||!_0x4a3c32)return _0x4a3c32;var _0x2e6e44=_0x4a3c32[Symbol['toPrimitive']];if(_0x2e6e44!==void 0x0){var _0x4c8a32=_0x2e6e44[_0x56e708(0x1e4)](_0x4a3c32,_0x38f456||'default');if(z(_0x4c8a32)!=_0x56e708(0x23d))return _0x4c8a32;throw TypeError(_0x56e708(0x23e));}return(_0x38f456===_0x56e708(0x252)?String:Number)(_0x4a3c32);}function V(_0x5ded41){const _0x3b616e=_0x179a;var _0x3d466a=B(_0x5ded41,'string');return z(_0x3d466a)==_0x3b616e(0x248)?_0x3d466a:_0x3d466a+'';}function H(_0x207df4,_0x5171fb,_0x10de5b){return(_0x5171fb=V(_0x5171fb))in _0x207df4?Object['defineProperty'](_0x207df4,_0x5171fb,{'value':_0x10de5b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x207df4[_0x5171fb]=_0x10de5b,_0x207df4;}function _0x179a(_0x27cc5c,_0x185eb9){_0x27cc5c=_0x27cc5c-0x1d9;const _0x5779b0=_0x5779();let _0x179a9e=_0x5779b0[_0x27cc5c];return _0x179a9e;}var U=class extends _0x55006e{constructor(){const _0x3891b2=_0x179a;super(),H(this,_0x3891b2(0x217),new Map()),H(this,_0x3891b2(0x25c),new Set()),H(this,_0x3891b2(0x264),new Set());}[_0x3f997f(0x202)](_0x2e4cdb,_0x2be17a,_0x1495c3,_0x25d11c){const _0x444483=_0x3f997f;let _0x19ea8b=new _0x1f618e(_0x2e4cdb,_0x2be17a,_0x1495c3,_0x25d11c);return this[_0x444483(0x217)][_0x444483(0x211)](_0x2be17a,_0x19ea8b),_0x163cf5(_0x2e4cdb)&&this[_0x444483(0x25c)][_0x444483(0x224)](_0x2be17a),_0x19ea8b;}[_0x3f997f(0x21e)](_0x31ae77){const _0x334c63=_0x3f997f;let _0x16cd3c=[];for(let _0x3c4708 of this[_0x334c63(0x25c)]){let _0x253565=this[_0x334c63(0x217)][_0x334c63(0x220)](_0x3c4708);if(_0x253565){let _0x358824=_0x253565[_0x334c63(0x20c)]();if(_0x358824){var _0x3998f3,_0x54013e;((_0x3998f3=_0x358824[_0x334c63(0x1f2)])==null?void 0x0:_0x3998f3[_0x334c63(0x26b)])===_0x31ae77&&_0x16cd3c[_0x334c63(0x228)]({..._0x358824[_0x334c63(0x1f2)],'lineShapeId':_0x3c4708,'isFrom':!0x0}),((_0x54013e=_0x358824['to'])==null?void 0x0:_0x54013e[_0x334c63(0x26b)])===_0x31ae77&&_0x16cd3c[_0x334c63(0x228)]({..._0x358824['to'],'lineShapeId':_0x3c4708,'isFrom':!0x1});}}}return _0x16cd3c;}[_0x3f997f(0x25f)](_0x4f63ae){const _0x1eb9a5=_0x3f997f;let _0x507b0d=this[_0x1eb9a5(0x217)][_0x1eb9a5(0x220)](_0x4f63ae);if(_0x507b0d)return _0x507b0d[_0x1eb9a5(0x20c)]();}[_0x3f997f(0x25a)](_0x3bc2d0){const _0x2ed68b=_0x3f997f;let _0x4258bb=this[_0x2ed68b(0x217)][_0x2ed68b(0x220)](_0x3bc2d0);if(_0x4258bb)return _0x4258bb[_0x2ed68b(0x25a)]();}[_0x3f997f(0x273)](_0x33a3ac){const _0x40c765=_0x3f997f;return this[_0x40c765(0x217)][_0x40c765(0x1ed)](_0x33a3ac);}[_0x3f997f(0x23a)](){const _0x1c34fd=_0x3f997f;return Array[_0x1c34fd(0x1f2)](this[_0x1c34fd(0x217)][_0x1c34fd(0x1fd)]())['map'](_0x4b94b8=>_0x4b94b8[_0x1c34fd(0x234)]()||_0x4b94b8[_0x1c34fd(0x1eb)]());}[_0x3f997f(0x1fe)](_0x5dbfde){const _0x202041=_0x3f997f;let _0x12b6a1=this[_0x202041(0x217)][_0x202041(0x220)](_0x5dbfde);_0x12b6a1&&(_0x163cf5(_0x12b6a1[_0x202041(0x25a)]())&&this['_linesIds'][_0x202041(0x26f)](_0x5dbfde),this[_0x202041(0x217)]['delete'](_0x5dbfde));}[_0x3f997f(0x266)](){const _0x5ec2ad=_0x3f997f;let _0x5be94f=[];return this[_0x5ec2ad(0x217)][_0x5ec2ad(0x209)](_0xf7e022=>{const _0xeee8eb=_0x5ec2ad;_0x5be94f[_0xeee8eb(0x228)](_0xf7e022['toJSON']());}),_0x5be94f;}[_0x3f997f(0x1f6)](_0x5e9c02){const _0x347e98=_0x3f997f;for(let _0x195603 of _0x5e9c02){let {id:_0x284607,shapeType:_0xd6f552,name:_0x9349b7}=_0x195603,_0x264b77=this[_0x347e98(0x202)](_0xd6f552,_0x284607,_0x195603[_0x347e98(0x24d)],_0x9349b7);_0x264b77&&_0x264b77['isLineShape']()&&this[_0x347e98(0x25c)]['add'](_0x284607);}}[_0x3f997f(0x271)](){const _0x12ab43=_0x3f997f;this[_0x12ab43(0x26c)]||(this['_shapes'][_0x12ab43(0x209)](_0x147846=>{const _0x10a9dc=_0x12ab43;_0x147846[_0x10a9dc(0x271)]();}),this[_0x12ab43(0x217)][_0x12ab43(0x24c)](),this[_0x12ab43(0x25c)][_0x12ab43(0x24c)](),this[_0x12ab43(0x264)][_0x12ab43(0x24c)](),super[_0x12ab43(0x271)]());}};function W(_0x502cf4,_0x1c84a8){return function(_0xe106f6,_0x2cdd25){_0x1c84a8(_0xe106f6,_0x2cdd25,_0x502cf4);};}function _0x5779(){const _0x516f57=['sheet.mutation.update-shape-data','cos','getShapeRelation','_sheetsShapeService','rotation','sheet.mutation.insert-shape','redos','set','flipY','setShapeType','position','width','getCellIndexAndOffsetByPosition','_shapes','_initCommands','COMMAND','sheets-shape.config','getAdjustValueByName','2015960zWDbWZ','onStarting','getBasicShapeRelation','MUTATION','get','insertShape','cxnIndex','_config','add','25938vHHxyU','left','getDrawingData','push','sheet.command.toggle-shape-flip','REMOVE','4qIkEnd','getShapeData','1.0.0-alpha.2','_getConnectPointInfo','shapeName','constructor','parse','1487172nSiqme','preUndos','getName','_injector','UPDATE','1198758byRxRA','disposeWithMe','856MDcVbi','getShapeDisplayNames','getStartConnectInfo','sheet.command.set-shape-rotate','object','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_shapeModelManagerMap','startX','onCommandExecute','14CMyWOv','registerCommand','sheet.mutation.update-shape-type','params','getCellWithCoordByIndex','SHEET_SHAPE_PLUGIN','symbol','transform','every','_resourcesManagerService','clear','shapeData','iterator','getSkeleton','_sheetInterceptorService','getAdjustNames','string','getShapeModel','sheet.command.update-line-shape-resize','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','_serializeShapeForUnit','sheet.command.set-shape-text-vertical-toggle','prototype','top','getShapeType','lineShapeId','_linesIds','keys','pluginName','getLineShapeRelation','sheet.command.insert-shape','relation','rotateEnabled','getShapeDataById','_groupIds','fill','toJSON','lineType','_addLineRerouteUpdates','entries','setShapeData','shapeId','_disposed','getShapeTextData','getDrawingByParam','delete','_sheetSkeletonService','dispose','getEndConnectInfo','hasShape','packageName','find','1043931jpSpEZ','decorate','getOwnPropertyDescriptor','sheet.command.update-connector-relation','preRedos','_commandService','assign','result','interceptCommand','getBatchUpdateOp','setConfig','ensureSkeleton','_deserializeShapeForUnit','call','DRAWING_SHAPE','resizeEnabled','_configService','ang','undos','type','getId','sheet.mutation.remove-shape','has','2764938GGnPfE','filter','16246660DUrcvZ','pushUndoRedo','from','_ensureShapeModelManager','_initSnapshot','sin','fromJSON','angle','_addLineFollowShapeUpdates','borderEnabled','function','range','worldRect','values','removeShape','registerPluginResource','isFrom','height','addShape','adjustValues','data','updateContext','flipX','_drawingManagerService','length','forEach'];_0x5779=function(){return _0x516f57;};return _0x5779();}function G(_0x45b701,_0x3ce31c,_0x4af5af,_0x401be5){const _0x359cae=_0x3f997f;var _0x1f4dcb=arguments[_0x359cae(0x208)],_0xcc02de=_0x1f4dcb<0x3?_0x3ce31c:_0x401be5===null?_0x401be5=Object[_0x359cae(0x1d9)](_0x3ce31c,_0x4af5af):_0x401be5,_0x1dea35;if(typeof Reflect==_0x359cae(0x23d)&&typeof Reflect['decorate']==_0x359cae(0x1fa))_0xcc02de=Reflect[_0x359cae(0x277)](_0x45b701,_0x3ce31c,_0x4af5af,_0x401be5);else{for(var _0x4a4aa5=_0x45b701[_0x359cae(0x208)]-0x1;_0x4a4aa5>=0x0;_0x4a4aa5--)(_0x1dea35=_0x45b701[_0x4a4aa5])&&(_0xcc02de=(_0x1f4dcb<0x3?_0x1dea35(_0xcc02de):_0x1f4dcb>0x3?_0x1dea35(_0x3ce31c,_0x4af5af,_0xcc02de):_0x1dea35(_0x3ce31c,_0x4af5af))||_0xcc02de);}return _0x1f4dcb>0x3&&_0xcc02de&&Object['defineProperty'](_0x3ce31c,_0x4af5af,_0xcc02de),_0xcc02de;}let K=class extends _0x55006e{constructor(_0x301074){const _0x3112bd=_0x3f997f;super(),this['_resourcesManagerService']=_0x301074,H(this,'_shapeModelManagerMap',new Map()),this[_0x3112bd(0x1f4)]();}['_ensureShapeModelManager'](_0x365421,_0x5f9a1e){const _0x1e1ced=_0x3f997f;let _0x15bac2=this[_0x1e1ced(0x23f)][_0x1e1ced(0x220)](_0x365421);_0x15bac2||(_0x15bac2=new Map(),this[_0x1e1ced(0x23f)][_0x1e1ced(0x211)](_0x365421,_0x15bac2));let _0xf18491=_0x15bac2[_0x1e1ced(0x220)](_0x5f9a1e);return _0xf18491||(_0xf18491=new U(),_0x15bac2[_0x1e1ced(0x211)](_0x5f9a1e,_0xf18491)),_0xf18491;}[_0x3f997f(0x221)](_0x52abc2,_0xe21f3a,_0x2cd375,_0x3cb191,_0x55087a,_0x7a2220){this['_ensureShapeModelManager'](_0x52abc2,_0xe21f3a)['addShape'](_0x2cd375,_0x3cb191,_0x55087a,_0x7a2220);}['removeShape'](_0x120be4,_0x123218,_0x2b32ae){const _0x1bb578=_0x3f997f;this[_0x1bb578(0x1f3)](_0x120be4,_0x123218)[_0x1bb578(0x1fe)](_0x2b32ae);}['getBasicShapeType'](_0x2191bc,_0x317c4a,_0x1384e8){const _0x4d4c6e=_0x3f997f;return this['_ensureShapeModelManager'](_0x2191bc,_0x317c4a)[_0x4d4c6e(0x25a)](_0x1384e8);}[_0x3f997f(0x25a)](_0x480d84,_0x3cd9bd,_0x5beb7e){const _0x3b2376=_0x3f997f;return this['_ensureShapeModelManager'](_0x480d84,_0x3cd9bd)[_0x3b2376(0x25a)](_0x5beb7e);}['hasShape'](_0x16c452,_0x309a5b,_0x51fe90){const _0x4e38c1=_0x3f997f;return this['_ensureShapeModelManager'](_0x16c452,_0x309a5b)[_0x4e38c1(0x273)](_0x51fe90);}['getShapeTypeById'](_0x5c06be,_0x5ba15f,_0x5e9904){const _0x5c4d48=_0x3f997f;return this[_0x5c4d48(0x1f3)](_0x5c06be,_0x5ba15f)['getShapeType'](_0x5e9904);}[_0x3f997f(0x263)](_0x25661a,_0x2a2141,_0x241291){const _0x5eabca=_0x3f997f;let _0x3466cb=this[_0x5eabca(0x1f3)](_0x25661a,_0x2a2141);if(!_0x3466cb[_0x5eabca(0x25a)](_0x241291))return;let _0x53caa6=_0x3466cb[_0x5eabca(0x217)][_0x5eabca(0x220)](_0x241291);if(_0x53caa6)return _0x53caa6[_0x5eabca(0x22c)]();}[_0x3f997f(0x23a)](_0x5dc314,_0x508e67){const _0x1bc57d=_0x3f997f;return this[_0x1bc57d(0x1f3)](_0x5dc314,_0x508e67)[_0x1bc57d(0x23a)]();}[_0x3f997f(0x253)](_0x2b2cc1,_0x5f09f8,_0x195165){const _0xafa0c2=_0x3f997f;return this[_0xafa0c2(0x1f3)](_0x2b2cc1,_0x5f09f8)[_0xafa0c2(0x217)][_0xafa0c2(0x220)](_0x195165);}[_0x3f997f(0x21e)](_0x58899b,_0x28114d,_0xd54fe8){const _0x31fb4d=_0x3f997f;return this[_0x31fb4d(0x1f3)](_0x58899b,_0x28114d)[_0x31fb4d(0x21e)](_0xd54fe8);}[_0x3f997f(0x25f)](_0x4ed1da,_0x460382,_0x5dbba4){const _0x4a3703=_0x3f997f;let _0x411b8f=this[_0x4a3703(0x1f3)](_0x4ed1da,_0x460382)['_shapes'][_0x4a3703(0x220)](_0x5dbba4);if(_0x411b8f)return _0x411b8f[_0x4a3703(0x20c)]();}[_0x3f997f(0x213)](){}[_0x3f997f(0x256)](_0x2a0ee6){const _0x394f6c=_0x3f997f;let _0x49873f={},_0x16de56=this[_0x394f6c(0x23f)]['get'](_0x2a0ee6);return _0x16de56&&_0x16de56[_0x394f6c(0x209)]((_0x55ee04,_0x1a625b)=>{const _0x3bc862=_0x394f6c;let _0x2a36fd=_0x55ee04['toJSON']();_0x2a36fd[_0x3bc862(0x208)]>0x0&&(_0x49873f[_0x1a625b]=_0x2a36fd);}),JSON['stringify'](_0x49873f);}[_0x3f997f(0x1e3)](_0xe889a9,_0x5b98ad){const _0x4952b4=_0x3f997f;Object[_0x4952b4(0x25d)](_0x5b98ad)[_0x4952b4(0x209)](_0x1c9863=>{const _0x26c8ad=_0x4952b4;this[_0x26c8ad(0x1f3)](_0xe889a9,_0x1c9863)[_0x26c8ad(0x1f6)](_0x5b98ad[_0x1c9863]);});}['toJSON'](){const _0x3d8578=_0x3f997f;let _0x46656e={};return this[_0x3d8578(0x23f)][_0x3d8578(0x209)]((_0x5c476d,_0x35916a)=>{const _0x204958=_0x3d8578;_0x46656e[_0x35916a]={},_0x5c476d[_0x204958(0x209)]((_0x26de09,_0x438ea4)=>{const _0xabdd8c=_0x204958;_0x46656e[_0x35916a][_0x438ea4]=_0x26de09[_0xabdd8c(0x266)]();});}),_0x46656e;}[_0x3f997f(0x1f6)](_0x405a37){Object['keys'](_0x405a37)['forEach'](_0x6c6d91=>{const _0x500412=_0x179a;let _0xe8e986=_0x405a37[_0x6c6d91];Object[_0x500412(0x25d)](_0xe8e986)[_0x500412(0x209)](_0x351613=>{const _0x540ecb=_0x500412;this[_0x540ecb(0x1f3)](_0x6c6d91,_0x351613)['fromJSON'](_0xe8e986[_0x351613]);});});}[_0x3f997f(0x1f4)](){const _0x1155ab=_0x3f997f;this[_0x1155ab(0x24b)][_0x1155ab(0x1ff)]({'pluginName':_0x1155ab(0x247),'businesses':[_0x186b43['UNIVER_SHEET']],'toJson':_0xbe39eb=>this[_0x1155ab(0x256)](_0xbe39eb),'parseJson':_0x55070c=>JSON[_0x1155ab(0x231)](_0x55070c),'onLoad':(_0x14a296,_0x504161)=>{const _0x3f5e20=_0x1155ab;this[_0x3f5e20(0x1e3)](_0x14a296,_0x504161);},'onUnLoad':_0x129930=>{const _0x33fe8a=_0x1155ab;let _0x436456=this[_0x33fe8a(0x23f)][_0x33fe8a(0x220)](_0x129930);_0x436456&&(_0x436456['forEach'](_0x3c7082=>{const _0x5808b3=_0x33fe8a;_0x3c7082[_0x5808b3(0x271)]();}),this[_0x33fe8a(0x23f)]['delete'](_0x129930));}});}[_0x3f997f(0x271)](){const _0x39dd48=_0x3f997f;this[_0x39dd48(0x23f)][_0x39dd48(0x209)](_0x3294ef=>{const _0x577af6=_0x39dd48;_0x3294ef[_0x577af6(0x209)](_0x6535c=>{const _0x22266a=_0x577af6;_0x6535c[_0x22266a(0x271)]();});});}};K=G([W(0x0,_0x3cdc6d)],K);const q={'id':_0x3f997f(0x20f),'type':_0x5569b6['MUTATION'],'handler':(_0xb3e613,_0x17d9fa)=>{const _0x1c1ff5=_0x3f997f;let {unitId:_0x134951,subUnitId:_0xdbca35,shapeType:_0x49bd0f,shapeId:_0x39dea5,shapeName:_0x20d3c3,shapeData:_0x2b15e9}=_0x17d9fa;return _0xb3e613[_0x1c1ff5(0x220)](K)[_0x1c1ff5(0x221)](_0x134951,_0xdbca35,_0x49bd0f,_0x39dea5,_0x2b15e9,_0x20d3c3),!0x0;}},J={'id':_0x3f997f(0x1ec),'type':_0x5569b6['MUTATION'],'handler':(_0x1f6aff,_0x452790)=>{const _0x1802f3=_0x3f997f;let {unitId:_0x32fd9c,subUnitId:_0x207728,shapeId:_0x171654}=_0x452790;return _0x1f6aff[_0x1802f3(0x220)](K)[_0x1802f3(0x1fe)](_0x32fd9c,_0x207728,_0x171654),!0x0;}},Y={'type':_0x5569b6[_0x3f997f(0x219)],'id':_0x3f997f(0x260),'handler':(_0xcc8c70,_0x23fad2)=>{const _0x3c71ea=_0x3f997f;var _0x380a6a,_0x2638ed,_0x21c98f;let _0x27ae84=_0x59efd3(_0xcc8c70[_0x3c71ea(0x220)](_0x2900d8),_0x23fad2);if(!_0x27ae84)return!0x1;let _0x3af437=_0xcc8c70[_0x3c71ea(0x220)](_0x4fcab3),{unitId:_0x491f5d,subUnitId:_0x4bb950}=_0x27ae84,_0x4e3add=_0x3af437[_0x3c71ea(0x1e2)](_0x491f5d,_0x4bb950);if(!_0x4e3add)return!0x1;let _0x56efea=_0xcc8c70[_0x3c71ea(0x220)](_0x4244e2),_0x46734a=_0xcc8c70[_0x3c71ea(0x220)](_0x1cf9fc),_0x4f55f0=_0xcc8c70[_0x3c71ea(0x220)](_0x296b96),_0x40b3eb=_0xcc8c70[_0x3c71ea(0x220)](_0x4c93e3),_0x572a5d=_0xcc8c70[_0x3c71ea(0x220)](K),{shapeType:_0x337d5b,shapeData:_0x17b0ea}=_0x23fad2,_0x1b8c8f=_0x23fad2[_0x3c71ea(0x26b)]||_0xf5a382(),_0x4496e8={'unitId':_0x491f5d,'subUnitId':_0x4bb950,'shapeId':_0x1b8c8f,'shapeName':(_0x380a6a=_0x23fad2[_0x3c71ea(0x22f)])==null?_0x124378(_0x337d5b,_0x572a5d[_0x3c71ea(0x23a)](_0x491f5d,_0x4bb950)):_0x380a6a,'shapeType':_0x337d5b,'shapeData':_0x17b0ea},_0xdf2ea4=_0x23fad2[_0x3c71ea(0x215)]||0xc8,_0x2ed8bd=_0x23fad2[_0x3c71ea(0x201)]||0xc8,_0x250494=0x0,_0x2720d4=0x0,_0x4ca93b={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x5c1f3b={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x23fad2[_0x3c71ea(0x214)]){let {x:_0x5529ea,y:_0x3aa7e0}=_0x23fad2[_0x3c71ea(0x214)];_0x250494=_0x5529ea,_0x2720d4=_0x3aa7e0,_0x4ca93b=_0x4e3add['getCellIndexAndOffsetByPosition'](_0x5529ea,_0x3aa7e0),_0x5c1f3b=_0x4e3add[_0x3c71ea(0x216)](_0x5529ea+_0xdf2ea4,_0x3aa7e0+_0x2ed8bd);}else{if(_0x23fad2[_0x3c71ea(0x1fb)]){let {startRow:_0x3c7ccc,startColumn:_0x12199e}=_0x23fad2[_0x3c71ea(0x1fb)];_0x4ca93b={'row':_0x3c7ccc,'rowOffset':0xa,'column':_0x12199e,'columnOffset':0xa};let _0x76f6b6=_0x4e3add[_0x3c71ea(0x246)](_0x3c7ccc,_0x12199e);_0x250494=_0x76f6b6[_0x3c71ea(0x240)]+0xa,_0x2720d4=_0x76f6b6['startY']+0xa,_0x5c1f3b=_0x4e3add[_0x3c71ea(0x216)](_0x250494+_0xdf2ea4,_0x2720d4+_0x2ed8bd);}}let _0x14629a={'from':_0x4ca93b,'to':_0x5c1f3b},_0x205d15={'unitId':_0x491f5d,'subUnitId':_0x4bb950,'drawingId':_0x1b8c8f,'drawingType':_0x53e1b5[_0x3c71ea(0x1e5)],'sheetTransform':_0x14629a,'transform':{'left':_0x250494,'top':_0x2720d4,'width':_0xdf2ea4,'height':_0x2ed8bd},'data':{'shapeType':_0x337d5b,'shapeData':_0x17b0ea},'axisAlignSheetTransform':_0x14629a,'allowTransform':!0x0};_0x163cf5(_0x337d5b)&&(_0x205d15[_0x3c71ea(0x204)][_0x3c71ea(0x265)]=!0x1,_0x205d15['data'][_0x3c71ea(0x262)]=!0x1,_0x205d15[_0x3c71ea(0x204)]['resizeEnabled']=!0x1,_0x205d15[_0x3c71ea(0x204)][_0x3c71ea(0x1f9)]=!0x1,_0x205d15[_0x3c71ea(0x249)]['rotateEnabled']=!0x1,_0x205d15[_0x3c71ea(0x249)][_0x3c71ea(0x1e6)]=!0x1,_0x205d15[_0x3c71ea(0x249)][_0x3c71ea(0x1f9)]=!0x1);let {undo:_0x216447,redo:_0x2a3ca8,objects:_0x6c3428}=_0x40b3eb['getBatchAddOp']([_0x205d15]),_0x4a9945=_0x4f55f0[_0x3c71ea(0x241)]({'id':_0x5bcbb6['id'],'params':{'unitId':_0x491f5d,'drawings':[_0x205d15]}}),_0x5c84f0=[...(_0x2638ed=_0x4a9945['preRedos'])==null?[]:_0x2638ed,{'id':_0xaa8efd['id'],'params':{'unitId':_0x491f5d,'subUnitId':_0x4bb950,'op':_0x2a3ca8,'objects':_0x6c3428,'type':_0x1c747c['INSERT']}},{'id':_0x317e79['id'],'params':[_0x491f5d]},..._0x4a9945['redos'],{'id':q['id'],'params':_0x4496e8}],_0x20646e=[{'id':J['id'],'params':{'unitId':_0x491f5d,'subUnitId':_0x4bb950,'shapeId':_0x1b8c8f}},...(_0x21c98f=_0x4a9945[_0x3c71ea(0x233)])==null?[]:_0x21c98f,{'id':_0xaa8efd['id'],'params':{'unitId':_0x491f5d,'subUnitId':_0x4bb950,'op':_0x216447,'objects':_0x6c3428,'type':_0x1c747c[_0x3c71ea(0x22a)]}},{'id':_0x317e79['id'],'params':[_0x491f5d]},..._0x4a9945[_0x3c71ea(0x1e9)]];return _0x3a0205(_0x5c84f0,_0x56efea)[_0x3c71ea(0x1de)]?(_0x46734a[_0x3c71ea(0x1f1)]({'unitID':_0x491f5d,'undoMutations':_0x20646e,'redoMutations':_0x5c84f0}),!0x0):!0x1;}},X={'id':_0x3f997f(0x20a),'type':_0x5569b6[_0x3f997f(0x21f)],'handler':(_0x5d4464,_0x3c92c5)=>{const _0x369c84=_0x3f997f;let {unitId:_0x5ea8a5,subUnitId:_0x49c1d6,shapeType:_0x410c1d,shapeId:_0x5b4d36,shapeData:_0x374bb2}=_0x3c92c5,_0x3646f1=_0x5d4464[_0x369c84(0x220)](K)['getShapeModel'](_0x5ea8a5,_0x49c1d6,_0x5b4d36);return _0x3646f1&&(_0x410c1d!==void 0x0&&_0x3646f1[_0x369c84(0x213)](_0x410c1d),_0x374bb2&&(_0x3646f1==null||_0x3646f1[_0x369c84(0x26a)](_0x374bb2,!0x0))),!0x0;}},ee={'type':_0x5569b6[_0x3f997f(0x219)],'id':'sheet.command.set-shape-drawing-data','handler':(_0x235a51,_0x5dc8c8)=>{const _0x1ad1fb=_0x3f997f;var _0x44fcf0,_0x5ee835;let _0x3a5b4b=_0x59efd3(_0x235a51['get'](_0x2900d8),_0x5dc8c8);if(!_0x3a5b4b)return!0x1;let _0x3267d3=_0x235a51[_0x1ad1fb(0x220)](_0x4fcab3),{unitId:_0x56448c,subUnitId:_0x423ddf}=_0x3a5b4b,_0x365b9b=_0x3267d3[_0x1ad1fb(0x1e2)](_0x56448c,_0x423ddf);if(!_0x365b9b)return!0x1;let _0x100241=_0x235a51['get'](K),{shapeId:_0x13d0f9,shapeType:_0x4ac19a,shapeData:_0x3ad2f7,position:_0x4b97b2,width:_0x2f94be,height:_0x6592a7}=_0x5dc8c8,_0x249fd6=_0x100241[_0x1ad1fb(0x253)](_0x56448c,_0x423ddf,_0x13d0f9);if(!_0x249fd6)return!0x1;let _0x43c97f=_0x235a51[_0x1ad1fb(0x220)](_0x4244e2),_0x2941e7=_0x235a51[_0x1ad1fb(0x220)](_0x1cf9fc),_0x4d9487=_0x235a51[_0x1ad1fb(0x220)](_0x296b96),_0x281b0e=_0x235a51['get'](_0x4c93e3),_0x5b54f9={'unitId':_0x56448c,'subUnitId':_0x423ddf,'shapeId':_0x13d0f9,'shapeType':_0x4ac19a,'shapeData':_0x3ad2f7},_0x470123=_0x249fd6['getShapeType'](),_0x2e4226=_0x249fd6[_0x1ad1fb(0x22c)](),{x:_0x40f759,y:_0x53b81f}=_0x4b97b2,_0x309537={'from':_0x365b9b[_0x1ad1fb(0x216)](_0x40f759,_0x53b81f),'to':_0x365b9b['getCellIndexAndOffsetByPosition'](_0x40f759+_0x2f94be,_0x53b81f+_0x6592a7)},_0x582e4b={'unitId':_0x56448c,'subUnitId':_0x423ddf,'drawingId':_0x13d0f9,'drawingType':_0x53e1b5['DRAWING_SHAPE'],'sheetTransform':_0x309537,'transform':{'left':_0x40f759,'top':_0x53b81f,'width':_0x2f94be,'height':_0x6592a7},'data':{'shapeType':_0x4ac19a,'shapeData':_0x3ad2f7},'axisAlignSheetTransform':_0x309537,'allowTransform':!0x0};_0x163cf5(_0x4ac19a)&&(_0x582e4b['data'][_0x1ad1fb(0x265)]=!0x1,_0x582e4b[_0x1ad1fb(0x204)][_0x1ad1fb(0x262)]=!0x1,_0x582e4b[_0x1ad1fb(0x204)][_0x1ad1fb(0x1e6)]=!0x1,_0x582e4b['data']['borderEnabled']=!0x1,_0x582e4b[_0x1ad1fb(0x249)]['rotateEnabled']=!0x1,_0x582e4b[_0x1ad1fb(0x249)]['resizeEnabled']=!0x1,_0x582e4b[_0x1ad1fb(0x249)][_0x1ad1fb(0x1f9)]=!0x1);let {undo:_0x904ea7,redo:_0x30b103,objects:_0xe8fa01}=_0x281b0e['getBatchUpdateOp']([_0x582e4b]),_0x33f65a=_0x4d9487[_0x1ad1fb(0x241)]({'id':_0x3db37e['id'],'params':{'unitId':_0x56448c,'drawings':[_0x582e4b]}}),_0x16eb08=[...(_0x44fcf0=_0x33f65a[_0x1ad1fb(0x1db)])==null?[]:_0x44fcf0,{'id':_0xaa8efd['id'],'params':{'unitId':_0x56448c,'subUnitId':_0x423ddf,'op':_0x30b103,'objects':_0xe8fa01,'type':_0x1c747c[_0x1ad1fb(0x236)]}},{'id':_0x317e79['id'],'params':[_0x56448c]},..._0x33f65a['redos'],{'id':X['id'],'params':_0x5b54f9}],_0x55c8b4=[...(_0x5ee835=_0x33f65a['preUndos'])==null?[]:_0x5ee835,{'id':_0xaa8efd['id'],'params':{'unitId':_0x56448c,'subUnitId':_0x423ddf,'op':_0x904ea7,'objects':_0xe8fa01,'type':_0x1c747c[_0x1ad1fb(0x236)]}},{'id':_0x317e79['id'],'params':[_0x56448c]},..._0x33f65a[_0x1ad1fb(0x1e9)],{'id':X['id'],'params':{'unitId':_0x56448c,'subUnitId':_0x423ddf,'shapeType':_0x470123,'shapeId':_0x13d0f9,'shapeData':_0x2e4226}}];return _0x3a0205(_0x16eb08,_0x43c97f)[_0x1ad1fb(0x1de)]?(_0x2941e7[_0x1ad1fb(0x1f1)]({'unitID':_0x56448c,'undoMutations':_0x55c8b4,'redoMutations':_0x16eb08}),!0x0):!0x1;}},Z={'type':_0x5569b6[_0x3f997f(0x219)],'id':_0x3f997f(0x229),'handler':(_0x2bffef,_0x235866)=>{const _0x34cf36=_0x3f997f;var _0x3f82c8,_0x63e94c;let _0x53aed5=_0x59efd3(_0x2bffef[_0x34cf36(0x220)](_0x2900d8),_0x235866);if(!_0x53aed5)return!0x1;let _0x25d5aa=_0x2bffef[_0x34cf36(0x220)](_0x4fcab3),{unitId:_0x8a456a,subUnitId:_0x2cd9d2}=_0x53aed5,_0x5d1439=_0x25d5aa[_0x34cf36(0x24f)](_0x8a456a,_0x2cd9d2);if(!_0x5d1439)return!0x1;let _0x25e151=_0x2bffef[_0x34cf36(0x220)](_0x4c93e3),{shapeId:_0x49eb67,flipH:_0x48757b,flipV:_0x1f7b1b}=_0x235866,_0x216330=_0x25e151[_0x34cf36(0x26e)]({'unitId':_0x8a456a,'subUnitId':_0x2cd9d2,'drawingId':_0x49eb67});if(!_0x216330)return!0x1;let _0x439b79=_0x2bffef['get'](K)[_0x34cf36(0x253)](_0x8a456a,_0x2cd9d2,_0x49eb67);if(!_0x439b79)return!0x1;let _0xa1d2d0=_0x2bffef[_0x34cf36(0x220)](_0x4244e2),_0x40a35b=_0x2bffef[_0x34cf36(0x220)](_0x1cf9fc),_0x1d056b=_0x2bffef['get'](_0x296b96),_0x50abf8={..._0x216330[_0x34cf36(0x249)]};_0x48757b!==void 0x0&&(_0x50abf8[_0x34cf36(0x206)]=!_0x50abf8[_0x34cf36(0x206)]),_0x1f7b1b!==void 0x0&&(_0x50abf8[_0x34cf36(0x212)]=!_0x50abf8[_0x34cf36(0x212)]);let _0x3e1dc1=_0x42d0e0(_0x50abf8,_0x5d1439),_0x1ed91d=_0x1b03b3(_0x50abf8,_0x5d1439),_0x57e2d5=_0x439b79[_0x34cf36(0x25a)](),_0x3debfc=_0x439b79['getShapeData'](),_0x48d0e4={'unitId':_0x8a456a,'subUnitId':_0x2cd9d2,'drawingId':_0x49eb67,'drawingType':_0x53e1b5['DRAWING_SHAPE'],'sheetTransform':_0x3e1dc1,'transform':_0x50abf8,'data':{'shapeType':_0x57e2d5,'shapeData':_0x3debfc},'axisAlignSheetTransform':_0x1ed91d,'allowTransform':!0x0},{undo:_0x12763d,redo:_0x1267ee,objects:_0x9f4093}=_0x25e151[_0x34cf36(0x1e0)]([_0x48d0e4]),_0x56b374=_0x1d056b[_0x34cf36(0x241)]({'id':_0x3db37e['id'],'params':{'unitId':_0x8a456a,'drawings':[_0x48d0e4]}}),_0x26797a=[...(_0x3f82c8=_0x56b374[_0x34cf36(0x1db)])==null?[]:_0x3f82c8,{'id':_0xaa8efd['id'],'params':{'unitId':_0x8a456a,'subUnitId':_0x2cd9d2,'op':_0x1267ee,'objects':_0x9f4093,'type':_0x1c747c[_0x34cf36(0x236)]}},{'id':_0x317e79['id'],'params':[_0x8a456a]},..._0x56b374['redos']],_0x5c336a=[...(_0x63e94c=_0x56b374[_0x34cf36(0x233)])==null?[]:_0x63e94c,{'id':_0xaa8efd['id'],'params':{'unitId':_0x8a456a,'subUnitId':_0x2cd9d2,'op':_0x12763d,'objects':_0x9f4093,'type':_0x1c747c[_0x34cf36(0x236)]}},{'id':_0x317e79['id'],'params':[_0x8a456a]},..._0x56b374['undos']];if(_0x163cf5(_0x57e2d5)){let _0x2875dc=_0x439b79[_0x34cf36(0x20c)]();if(_0x2875dc){let _0x1fddf0={..._0x2875dc};_0x1fddf0['from']=void 0x0,_0x1fddf0['to']=void 0x0,_0x26797a[_0x34cf36(0x228)]({'id':X['id'],'params':{'unitId':_0x8a456a,'subUnitId':_0x2cd9d2,'shapeId':_0x49eb67,'shapeType':_0x57e2d5,'shapeData':{'relation':_0x1fddf0}}}),_0x5c336a[_0x34cf36(0x228)]({'id':X['id'],'params':{'unitId':_0x8a456a,'subUnitId':_0x2cd9d2,'shapeId':_0x49eb67,'shapeType':_0x57e2d5,'shapeData':{'relation':_0x2875dc}}});}}return _0x3a0205(_0x26797a,_0xa1d2d0)['result']?(_0x40a35b[_0x34cf36(0x1f1)]({'unitID':_0x8a456a,'undoMutations':_0x5c336a,'redoMutations':_0x26797a}),!0x0):!0x1;}},Q={'type':_0x5569b6[_0x3f997f(0x219)],'id':_0x3f997f(0x23c),'handler':(_0x47ecbe,_0x506408)=>{const _0x3b6860=_0x3f997f;var _0x2ec3ee,_0x4de1ea;let _0x586c29=_0x59efd3(_0x47ecbe[_0x3b6860(0x220)](_0x2900d8),_0x506408);if(!_0x586c29)return!0x1;let _0x4cb528=_0x47ecbe['get'](_0x4fcab3),{unitId:_0x3e93ab,subUnitId:_0x380ca1}=_0x586c29,_0x12f497=_0x4cb528['getSkeleton'](_0x3e93ab,_0x380ca1);if(!_0x12f497)return!0x1;let _0x5c410d=_0x47ecbe['get'](_0x4c93e3),{shapeId:_0x3af752,rotate:_0x41ecf2}=_0x506408,_0x1f06ea=_0x5c410d[_0x3b6860(0x26e)]({'unitId':_0x3e93ab,'subUnitId':_0x380ca1,'drawingId':_0x3af752});if(!_0x1f06ea)return!0x1;let _0x242dae=_0x47ecbe[_0x3b6860(0x220)](K)['getShapeModel'](_0x3e93ab,_0x380ca1,_0x3af752);if(!_0x242dae)return!0x1;let _0x169201=_0x47ecbe[_0x3b6860(0x220)](_0x4244e2),_0x20f938=_0x47ecbe[_0x3b6860(0x220)](_0x1cf9fc),_0x4c530d=_0x47ecbe[_0x3b6860(0x220)](_0x296b96),_0x1a3a8f={..._0x1f06ea['transform']};_0x41ecf2!==void 0x0&&(_0x1a3a8f[_0x3b6860(0x1f7)]=(_0x1a3a8f[_0x3b6860(0x1f7)]||0x0)+_0x41ecf2);let _0x463818=_0x42d0e0(_0x1a3a8f,_0x12f497),_0x3eebe1=_0x1b03b3(_0x1a3a8f,_0x12f497),_0x3c6641=_0x242dae[_0x3b6860(0x25a)](),_0x234322=_0x242dae[_0x3b6860(0x22c)](),_0x3a9726={'unitId':_0x3e93ab,'subUnitId':_0x380ca1,'drawingId':_0x3af752,'drawingType':_0x53e1b5[_0x3b6860(0x1e5)],'sheetTransform':_0x463818,'transform':_0x1a3a8f,'data':{'shapeType':_0x3c6641,'shapeData':_0x234322},'axisAlignSheetTransform':_0x3eebe1,'allowTransform':!0x0},{undo:_0x2c567f,redo:_0x71ef51,objects:_0x105d4b}=_0x5c410d[_0x3b6860(0x1e0)]([_0x3a9726]),_0x38b10d=_0x4c530d[_0x3b6860(0x241)]({'id':_0x3db37e['id'],'params':{'unitId':_0x3e93ab,'drawings':[_0x3a9726]}}),_0x126a1f=[...(_0x2ec3ee=_0x38b10d['preRedos'])==null?[]:_0x2ec3ee,{'id':_0xaa8efd['id'],'params':{'unitId':_0x3e93ab,'subUnitId':_0x380ca1,'op':_0x71ef51,'objects':_0x105d4b,'type':_0x1c747c[_0x3b6860(0x236)]}},{'id':_0x317e79['id'],'params':[_0x3e93ab]},..._0x38b10d[_0x3b6860(0x210)]],_0x539acf=[...(_0x4de1ea=_0x38b10d['preUndos'])==null?[]:_0x4de1ea,{'id':_0xaa8efd['id'],'params':{'unitId':_0x3e93ab,'subUnitId':_0x380ca1,'op':_0x2c567f,'objects':_0x105d4b,'type':_0x1c747c[_0x3b6860(0x236)]}},{'id':_0x317e79['id'],'params':[_0x3e93ab]},..._0x38b10d[_0x3b6860(0x1e9)]];return _0x3a0205(_0x126a1f,_0x169201)[_0x3b6860(0x1de)]?(_0x20f938[_0x3b6860(0x1f1)]({'unitID':_0x3e93ab,'undoMutations':_0x539acf,'redoMutations':_0x126a1f}),!0x0):!0x1;}},te={'type':_0x5569b6[_0x3f997f(0x219)],'id':_0x3f997f(0x257),'handler':(_0x5d4a15,_0x59cff1)=>{const _0x5afb85=_0x3f997f;var _0xda615;let _0x49228c=_0x59efd3(_0x5d4a15['get'](_0x2900d8),_0x59cff1);if(!_0x49228c)return!0x1;let {unitId:_0x1ea8d7,subUnitId:_0x563212}=_0x49228c,{shapeId:_0x28f9bf}=_0x59cff1,_0x304ecd=_0x5d4a15['get'](K)[_0x5afb85(0x253)](_0x1ea8d7,_0x563212,_0x28f9bf);if(!_0x304ecd)return!0x1;let _0x3fd4d4=_0x304ecd[_0x5afb85(0x26d)](),_0x4990d9=(_0xda615=_0x3fd4d4==null?void 0x0:_0x3fd4d4['isHorizontal'])==null?!0x0:_0xda615,_0x42e07d=!_0x4990d9,_0x128e30=_0x5d4a15[_0x5afb85(0x220)](_0x4244e2),_0x61c8ed=_0x5d4a15[_0x5afb85(0x220)](_0x1cf9fc),_0x187a43={'unitId':_0x1ea8d7,'subUnitId':_0x563212,'shapeId':_0x28f9bf,'shapeData':{'shapeText':{'isHorizontal':_0x42e07d}}},_0x324979={'unitId':_0x1ea8d7,'subUnitId':_0x563212,'shapeId':_0x28f9bf,'shapeData':{'shapeText':{'isHorizontal':_0x4990d9}}},_0x4b3b7a=[{'id':X['id'],'params':_0x187a43}],_0x51974a=[{'id':X['id'],'params':_0x324979}];return _0x3a0205(_0x4b3b7a,_0x128e30)[_0x5afb85(0x1de)]?(_0x61c8ed[_0x5afb85(0x1f1)]({'unitID':_0x1ea8d7,'undoMutations':_0x51974a,'redoMutations':_0x4b3b7a}),!0x0):!0x1;}},ne={'type':_0x5569b6[_0x3f997f(0x219)],'id':_0x3f997f(0x1da),'handler':(_0x712726,_0x1f14b5)=>{const _0x45514d=_0x3f997f;var _0x52b7c4,_0x431306,_0x4bc5e9,_0x36b37c;let _0x2ea8c2=_0x59efd3(_0x712726[_0x45514d(0x220)](_0x2900d8),_0x1f14b5);if(!_0x2ea8c2)return!0x1;let _0x462655=_0x712726[_0x45514d(0x220)](_0x4fcab3),{unitId:_0x303ffd,subUnitId:_0x186d34}=_0x2ea8c2,_0x181623=_0x462655[_0x45514d(0x24f)](_0x303ffd,_0x186d34);if(!_0x181623)return!0x1;let _0x12e47b=_0x712726['get'](_0x4c93e3),{connectorShapeId:_0x3d9e93,width:_0x2e735c,height:_0x1dd701,left:_0x5c16ab,top:_0x459784,flipX:_0x2751e4,flipY:_0x405bf3,rotation:_0x3a992e,oldAdjustValues:_0x49cb7a,newAdjustValues:_0x122ff9,oldLineType:_0x31cf21,newLineType:_0xdc6489,oldRelation:_0x5bbd50,newRelation:_0x2e0d44}=_0x1f14b5,_0x342bb4=_0x12e47b[_0x45514d(0x26e)]({'unitId':_0x303ffd,'subUnitId':_0x186d34,'drawingId':_0x3d9e93});if(!_0x342bb4)return!0x1;let _0xe20dbf=_0x712726['get'](K)[_0x45514d(0x253)](_0x303ffd,_0x186d34,_0x3d9e93);if(!_0xe20dbf)return!0x1;let _0x58454b=_0x712726[_0x45514d(0x220)](_0x4244e2),_0x5d20f1=_0x712726[_0x45514d(0x220)](_0x1cf9fc),_0x59e129=_0x712726[_0x45514d(0x220)](_0x296b96),_0xad8c43={..._0x342bb4[_0x45514d(0x249)],'width':_0x2e735c,'height':_0x1dd701,'left':_0x5c16ab,'top':_0x459784,'flipX':_0x2751e4,'flipY':_0x405bf3,'angle':(_0x52b7c4=_0x3a992e==null?(_0x431306=_0x342bb4[_0x45514d(0x249)])==null?void 0x0:_0x431306[_0x45514d(0x1f7)]:_0x3a992e)==null?0x0:_0x52b7c4},_0x522cea=_0x42d0e0(_0xad8c43,_0x181623),_0x56af22=_0x1b03b3(_0xad8c43,_0x181623),_0x5a3f92=_0xe20dbf[_0x45514d(0x25a)](),_0x4aa24b=_0xe20dbf[_0x45514d(0x22c)](),_0x256368={'unitId':_0x303ffd,'subUnitId':_0x186d34,'drawingId':_0x3d9e93,'drawingType':_0x53e1b5[_0x45514d(0x1e5)],'sheetTransform':_0x522cea,'transform':_0xad8c43,'data':{'shapeType':_0xdc6489||_0x31cf21||_0x5a3f92,'shapeData':{..._0x4aa24b,'adjustValues':_0x122ff9||_0x49cb7a||(_0x4aa24b==null?void 0x0:_0x4aa24b[_0x45514d(0x203)]),'relation':_0x2e0d44||_0x5bbd50||(_0x4aa24b==null?void 0x0:_0x4aa24b[_0x45514d(0x261)])}},'axisAlignSheetTransform':_0x56af22,'allowTransform':!0x0},{undo:_0x177f38,redo:_0x31aa2f,objects:_0x307695}=_0x12e47b[_0x45514d(0x1e0)]([_0x256368]),_0x2c960d=_0x59e129[_0x45514d(0x241)]({'id':_0x3db37e['id'],'params':{'unitId':_0x303ffd,'drawings':[_0x256368]}}),_0x23170d=[...(_0x4bc5e9=_0x2c960d[_0x45514d(0x1db)])==null?[]:_0x4bc5e9,{'id':_0xaa8efd['id'],'params':{'unitId':_0x303ffd,'subUnitId':_0x186d34,'op':_0x31aa2f,'objects':_0x307695,'type':_0x1c747c[_0x45514d(0x236)]}},{'id':_0x317e79['id'],'params':[_0x303ffd]},..._0x2c960d[_0x45514d(0x210)],{'id':X['id'],'params':{'unitId':_0x303ffd,'subUnitId':_0x186d34,'shapeId':_0x3d9e93,'shapeType':_0xdc6489,'shapeData':{'adjustValues':_0x122ff9,'relation':_0x2e0d44}}}],_0x117fa8=[...(_0x36b37c=_0x2c960d[_0x45514d(0x233)])==null?[]:_0x36b37c,{'id':_0xaa8efd['id'],'params':{'unitId':_0x303ffd,'subUnitId':_0x186d34,'op':_0x177f38,'objects':_0x307695,'type':_0x1c747c[_0x45514d(0x236)]}},{'id':_0x317e79['id'],'params':[_0x303ffd]},..._0x2c960d[_0x45514d(0x1e9)],{'id':X['id'],'params':{'unitId':_0x303ffd,'subUnitId':_0x186d34,'shapeId':_0x3d9e93,'shapeType':_0x5a3f92,'shapeData':{..._0x4aa24b,'adjustValues':_0x49cb7a||(_0x4aa24b==null?void 0x0:_0x4aa24b['adjustValues']),'relation':_0x5bbd50||(_0x4aa24b==null?void 0x0:_0x4aa24b[_0x45514d(0x261)])}}}];return _0x3a0205(_0x23170d,_0x58454b)[_0x45514d(0x1de)]?(_0x5d20f1[_0x45514d(0x1f1)]({'unitID':_0x303ffd,'undoMutations':_0x117fa8,'redoMutations':_0x23170d}),!0x0):!0x1;}},re={'type':_0x5569b6[_0x3f997f(0x219)],'id':_0x3f997f(0x254),'handler':(_0x25e951,_0x307571)=>{const _0x56f23a=_0x3f997f;var _0x1c6233,_0x547a7d;let _0x2eca81=_0x59efd3(_0x25e951['get'](_0x2900d8),_0x307571);if(!_0x2eca81)return!0x1;let _0x2bb2ac=_0x25e951['get'](_0x4fcab3),{unitId:_0x11e262,subUnitId:_0x391010}=_0x2eca81,_0x147a06=_0x2bb2ac[_0x56f23a(0x24f)](_0x11e262,_0x391010);if(!_0x147a06)return!0x1;let _0x18d88d=_0x25e951[_0x56f23a(0x220)](_0x4c93e3),{shapeId:_0x477fab,width:_0x1622e2,height:_0x5049e5,left:_0x25d355,top:_0x52bde3,flipX:_0x33616b,flipY:_0x22871f,angle:_0x24c980,oldAdjustValues:_0x466813,newAdjustValues:_0x423197,oldLineType:_0x14cc2a,newLineType:_0x48634d}=_0x307571,_0x59af8c=_0x18d88d[_0x56f23a(0x26e)]({'unitId':_0x11e262,'subUnitId':_0x391010,'drawingId':_0x477fab});if(!_0x59af8c)return!0x1;let _0x219eaf=_0x25e951[_0x56f23a(0x220)](K)[_0x56f23a(0x253)](_0x11e262,_0x391010,_0x477fab);if(!_0x219eaf)return!0x1;let _0x529a6f=_0x25e951['get'](_0x4244e2),_0x47a898=_0x25e951[_0x56f23a(0x220)](_0x1cf9fc),_0x2bb01f=_0x25e951['get'](_0x296b96),_0x31d2d4={..._0x59af8c[_0x56f23a(0x249)],'width':_0x1622e2,'height':_0x5049e5,'left':_0x25d355,'top':_0x52bde3,'flipX':_0x33616b,'flipY':_0x22871f,'angle':_0x24c980},_0x28e0a6=_0x42d0e0(_0x31d2d4,_0x147a06),_0x1d582d=_0x1b03b3(_0x31d2d4,_0x147a06),_0x3c30fb=_0x219eaf['getShapeType'](),_0x2d11f6=_0x219eaf[_0x56f23a(0x22c)](),_0x17269e={'unitId':_0x11e262,'subUnitId':_0x391010,'drawingId':_0x477fab,'drawingType':_0x53e1b5[_0x56f23a(0x1e5)],'sheetTransform':_0x28e0a6,'transform':_0x31d2d4,'data':{'shapeType':_0x48634d||_0x14cc2a||_0x3c30fb,'shapeData':{..._0x2d11f6,'adjustValues':_0x423197||_0x466813||(_0x2d11f6==null?void 0x0:_0x2d11f6[_0x56f23a(0x203)])}},'axisAlignSheetTransform':_0x1d582d,'allowTransform':!0x0},{undo:_0x31fd8f,redo:_0x1254bb,objects:_0x230f65}=_0x18d88d[_0x56f23a(0x1e0)]([_0x17269e]),_0x2283a6=_0x2bb01f[_0x56f23a(0x241)]({'id':_0x3db37e['id'],'params':{'unitId':_0x11e262,'drawings':[_0x17269e]}}),_0x1cd99f=[...(_0x1c6233=_0x2283a6[_0x56f23a(0x1db)])==null?[]:_0x1c6233,{'id':_0xaa8efd['id'],'params':{'unitId':_0x11e262,'subUnitId':_0x391010,'op':_0x1254bb,'objects':_0x230f65,'type':_0x1c747c[_0x56f23a(0x236)]}},{'id':_0x317e79['id'],'params':[_0x11e262]},..._0x2283a6['redos'],{'id':X['id'],'params':{'unitId':_0x11e262,'subUnitId':_0x391010,'shapeId':_0x477fab,'shapeType':_0x48634d,'shapeData':{'adjustValues':_0x423197}}}],_0x4867a6=[...(_0x547a7d=_0x2283a6['preUndos'])==null?[]:_0x547a7d,{'id':_0xaa8efd['id'],'params':{'unitId':_0x11e262,'subUnitId':_0x391010,'op':_0x31fd8f,'objects':_0x230f65,'type':_0x1c747c[_0x56f23a(0x236)]}},{'id':_0x317e79['id'],'params':[_0x11e262]},..._0x2283a6[_0x56f23a(0x1e9)],{'id':X['id'],'params':{'unitId':_0x11e262,'subUnitId':_0x391010,'shapeId':_0x477fab,'shapeType':_0x3c30fb,'shapeData':{..._0x2d11f6,'adjustValues':_0x466813||(_0x2d11f6==null?void 0x0:_0x2d11f6[_0x56f23a(0x203)])}}}];return _0x3a0205(_0x1cd99f,_0x529a6f)[_0x56f23a(0x1de)]?(_0x47a898[_0x56f23a(0x1f1)]({'unitID':_0x11e262,'undoMutations':_0x4867a6,'redoMutations':_0x1cd99f}),!0x0):!0x1;}},$={'id':_0x3f997f(0x244),'type':_0x5569b6[_0x3f997f(0x21f)],'handler':(_0x1a02a2,_0x53c74a)=>{const _0x23ed66=_0x3f997f;let {unitId:_0x5e68c4,subUnitId:_0x2ac81d,shapeType:_0x34ab85,shapeId:_0x533487,shapeData:_0x47673c}=_0x53c74a,_0x57fd5c=_0x1a02a2[_0x23ed66(0x220)](K)[_0x23ed66(0x253)](_0x5e68c4,_0x2ac81d,_0x533487);return _0x57fd5c&&(_0x57fd5c['setShapeType'](_0x34ab85),_0x47673c&&(_0x57fd5c==null||_0x57fd5c[_0x23ed66(0x26a)](_0x47673c))),!0x0;}},ie={'id':'sheet.command.update-shape-type','type':_0x5569b6[_0x3f997f(0x219)],'handler':(_0x49c004,_0x2b8872)=>{const _0x4f1211=_0x3f997f;if(!_0x2b8872)return!0x1;let _0x33a88f=_0x49c004[_0x4f1211(0x220)](_0x4244e2),_0x490cac=_0x49c004[_0x4f1211(0x220)](K),_0x99fd45=_0x49c004[_0x4f1211(0x220)](_0x1cf9fc),_0x460724=[],_0x429698=[],{unitId:_0x446c4a,subUnitId:_0x425156,shapeId:_0x3bf9e2,shapeType:_0x5e4c01,shapeData:_0x73f1b4}=_0x2b8872,_0x57a649=_0x490cac[_0x4f1211(0x253)](_0x446c4a,_0x425156,_0x3bf9e2);if(_0x57a649){let _0x2efae7=_0x57a649[_0x4f1211(0x25a)](),_0x35988e=Object[_0x4f1211(0x1dd)]({},_0x57a649[_0x4f1211(0x22c)]()),_0x5d836d={'unitId':_0x446c4a,'subUnitId':_0x425156,'shapeId':_0x3bf9e2,'shapeType':_0x5e4c01,'shapeData':_0x73f1b4},_0x3c18f1={'unitId':_0x446c4a,'subUnitId':_0x425156,'shapeId':_0x3bf9e2,'shapeType':_0x2efae7,'shapeData':_0x35988e};return _0x460724[_0x4f1211(0x228)]({'id':$['id'],'params':_0x5d836d}),_0x429698[_0x4f1211(0x228)]({'id':$['id'],'params':_0x3c18f1}),_0x460724[_0x4f1211(0x24a)](_0x3cafb9=>_0x33a88f['syncExecuteCommand'](_0x3cafb9['id'],_0x3cafb9['params']))&&_0x99fd45[_0x4f1211(0x1f1)]({'unitID':_0x446c4a,'redoMutations':[..._0x460724],'undoMutations':[..._0x429698]}),!0x0;}return!0x1;}};var ae='@univerjs-pro/sheets-shape',oe=_0x3f997f(0x22d);const se={};let ce=class extends _0x55006e{constructor(_0x113d4c,_0x864f2d,_0x4c7f24,_0x36df62,_0x54a12a){const _0x42147a=_0x3f997f;super(),this[_0x42147a(0x1dc)]=_0x113d4c,this[_0x42147a(0x250)]=_0x864f2d,this[_0x42147a(0x270)]=_0x4c7f24,this[_0x42147a(0x20d)]=_0x36df62,this[_0x42147a(0x207)]=_0x54a12a,this[_0x42147a(0x218)](),this['_initCommandInterceptor']();}['_initCommands'](){const _0x40ed61=_0x3f997f;[Y,ee,Z,Q,te,ne,re,q,J,$,X][_0x40ed61(0x209)](_0x498afa=>this[_0x40ed61(0x238)](this[_0x40ed61(0x1dc)][_0x40ed61(0x243)](_0x498afa)));}['_initCommandInterceptor'](){const _0x35bbb1=_0x3f997f;this['disposeWithMe'](this[_0x35bbb1(0x250)][_0x35bbb1(0x1df)]({'getMutations':_0x2c27ce=>{const _0x15a1d6=_0x35bbb1;if(_0x2c27ce['id']===_0x511e31['id']){let {drawings:_0x326f71}=_0x2c27ce['params'],_0x33d3c1=_0x326f71[_0x15a1d6(0x1ef)](_0x151f3f=>_0x151f3f['drawingType']===_0x53e1b5['DRAWING_SHAPE']);if(_0x33d3c1['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x1382c0=[],_0x3cb76e=[];return _0x33d3c1[_0x15a1d6(0x209)](_0x2a69d0=>{const _0x254e75=_0x15a1d6;let {unitId:_0x5db7f4,subUnitId:_0x540806,drawingId:_0x10ad8a}=_0x2a69d0,_0x2e27f2=this['_sheetsShapeService']['getShapeModel'](_0x5db7f4,_0x540806,_0x10ad8a);if(!_0x2e27f2)throw TypeError(_0x254e75(0x255)+_0x2e27f2);_0x1382c0[_0x254e75(0x228)]({'id':J['id'],'params':{'unitId':_0x5db7f4,'subUnitId':_0x540806,'shapeId':_0x10ad8a}}),_0x3cb76e['push']({'id':q['id'],'params':{'unitId':_0x5db7f4,'subUnitId':_0x540806,'shapeId':_0x10ad8a,'shapeType':_0x2e27f2['getShapeType'](),'shapeData':_0x2e27f2[_0x254e75(0x22c)]()}});let _0x201cc4=this['_sheetsShapeService'][_0x254e75(0x21e)](_0x5db7f4,_0x540806,_0x10ad8a);if(_0x201cc4)for(let _0xf8419d of _0x201cc4){let _0xf7c6d6=_0xf8419d[_0x254e75(0x25b)],_0x1370c3=_0xf8419d[_0x254e75(0x200)],_0xc9f69d=_0x1370c3?{'from':void 0x0}:{'to':void 0x0},_0x21e1e1=_0x1370c3?{'from':{'shapeId':_0xf8419d[_0x254e75(0x26b)],'cxnIndex':_0xf8419d['cxnIndex']}}:{'to':{'shapeId':_0xf8419d['shapeId'],'cxnIndex':_0xf8419d[_0x254e75(0x222)]}};_0x1382c0['push']({'id':X['id'],'params':{'unitId':_0x5db7f4,'subUnitId':_0x540806,'shapeId':_0xf7c6d6,'shapeData':{'relation':_0xc9f69d}}}),_0x3cb76e[_0x254e75(0x228)]({'id':X['id'],'params':{'unitId':_0x5db7f4,'subUnitId':_0x540806,'shapeId':_0xf7c6d6,'shapeData':{'relation':_0x21e1e1}}});}}),{'preRedos':_0x1382c0,'redos':[],'preUndos':[],'undos':_0x3cb76e};}if(_0x2c27ce['id']===_0x3db37e['id']){let {drawings:_0x42ca0e}=_0x2c27ce[_0x15a1d6(0x245)],_0x26a7e3=_0x42ca0e[_0x15a1d6(0x1ef)](_0x574bbb=>_0x574bbb['drawingType']===_0x53e1b5[_0x15a1d6(0x1e5)]);if(_0x26a7e3['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x1bcb3e=[],_0x27ef21=[];for(let _0x2c68df of _0x26a7e3){let {unitId:_0x52e1d5,subUnitId:_0x525949,drawingId:_0x14e8e6,transform:_0x1bdd54}=_0x2c68df;if(!_0x52e1d5||!_0x525949||!_0x14e8e6||!_0x1bdd54)continue;let _0x562221=this['_sheetsShapeService'][_0x15a1d6(0x253)](_0x52e1d5,_0x525949,_0x14e8e6);if(!_0x562221)throw TypeError(_0x15a1d6(0x255)+_0x562221);if(_0x163cf5(_0x562221[_0x15a1d6(0x25a)]())){let _0x37f182=this[_0x15a1d6(0x20d)]['getLineShapeRelation'](_0x52e1d5,_0x525949,_0x14e8e6);_0x37f182&&(_0x1bcb3e[_0x15a1d6(0x228)]({'id':X['id'],'params':{'unitId':_0x52e1d5,'subUnitId':_0x525949,'shapeId':_0x14e8e6,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x27ef21[_0x15a1d6(0x228)]({'id':X['id'],'params':{'unitId':_0x52e1d5,'subUnitId':_0x525949,'shapeId':_0x14e8e6,'shapeData':{'relation':_0x37f182}}}));}else{let _0x49e853=this[_0x15a1d6(0x20d)][_0x15a1d6(0x21e)](_0x52e1d5,_0x525949,_0x14e8e6);if(_0x49e853&&_0x49e853[_0x15a1d6(0x208)]>0x0)for(let _0x205672 of _0x49e853){let _0x4bd57d=_0x205672['lineShapeId'],_0x1be09c=_0x205672[_0x15a1d6(0x200)],_0x5758f6=this[_0x15a1d6(0x20d)][_0x15a1d6(0x253)](_0x52e1d5,_0x525949,_0x4bd57d);if(!_0x5758f6)continue;let _0x48c813=_0x5758f6[_0x15a1d6(0x23b)](),_0x59fd57=_0x5758f6[_0x15a1d6(0x272)]();_0x48c813&&_0x59fd57?this[_0x15a1d6(0x268)](_0x52e1d5,_0x525949,_0x4bd57d,_0x5758f6,_0x48c813,_0x59fd57,_0x1bcb3e,_0x27ef21,_0x14e8e6,_0x1bdd54):this[_0x15a1d6(0x1f8)](_0x52e1d5,_0x525949,_0x4bd57d,_0x5758f6,_0x1be09c?_0x48c813:_0x59fd57,_0x1be09c,_0x1bcb3e,_0x27ef21,_0x14e8e6,_0x1bdd54);}}}return{'preRedos':[],'redos':_0x1bcb3e,'preUndos':_0x27ef21,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getConnectPointInfo'](_0x3f68dc,_0x1fe57e,_0x33bfaf,_0x218262,_0x25eabf){const _0x118834=_0x3f997f;if(!_0x1fe57e||!_0x33bfaf)return null;let {shapeId:_0x564baa,cxnIndex:_0xde2c0}=_0x3f68dc,_0x9a0fb1=this[_0x118834(0x20d)]['getShapeModel'](_0x1fe57e,_0x33bfaf,_0x564baa);if(!_0x9a0fb1)return null;let _0x188bce=this['_drawingManagerService'][_0x118834(0x26e)]({'unitId':_0x1fe57e,'subUnitId':_0x33bfaf,'drawingId':_0x564baa});if(!(_0x188bce!=null&&_0x188bce[_0x118834(0x249)]))return null;let {left:_0x4b0509=0x0,top:_0x18ad9c=0x0,width:_0x256419=0x0,height:_0x1fe78e=0x0,flipX:_0x3141fb=!0x1,flipY:_0x3765ff=!0x1,angle:_0x63ec}=_0x188bce[_0x118834(0x249)];if(_0x25eabf&&_0x218262===_0x564baa){var _0x2c3ea1,_0x24235c,_0x41c465,_0x19312f,_0x24d581,_0xcd795,_0x45113c;_0x4b0509=(_0x2c3ea1=_0x25eabf[_0x118834(0x226)])==null?_0x4b0509:_0x2c3ea1,_0x18ad9c=(_0x24235c=_0x25eabf[_0x118834(0x259)])==null?_0x18ad9c:_0x24235c,_0x256419=(_0x41c465=_0x25eabf['width'])==null?_0x256419:_0x41c465,_0x1fe78e=(_0x19312f=_0x25eabf[_0x118834(0x201)])==null?_0x1fe78e:_0x19312f,_0x3141fb=(_0x24d581=_0x25eabf[_0x118834(0x206)])==null?_0x3141fb:_0x24d581,_0x3765ff=(_0xcd795=_0x25eabf['flipY'])==null?_0x3765ff:_0xcd795,_0x63ec=(_0x45113c=_0x25eabf[_0x118834(0x1f7)])==null?_0x63ec:_0x45113c;}_0x9a0fb1[_0x118834(0x205)]({'width':_0x256419,'height':_0x1fe78e});let _0x48644f=_0x9a0fb1['getConnectionSiteList']()[_0x118834(0x275)](_0x2becc0=>_0x2becc0['index']===_0xde2c0);if(!_0x48644f)return null;let _0x10bfab=_0x3141fb?_0x256419-_0x48644f['x']:_0x48644f['x'],_0x150955=_0x3765ff?_0x1fe78e-_0x48644f['y']:_0x48644f['y'];if(_0x63ec!==0x0&&_0x63ec!=null){let _0x5ac55d=_0x63ec*Math['PI']/0xb4,_0xa94903=Math[_0x118834(0x20b)](_0x5ac55d),_0x5a96da=Math[_0x118834(0x1f5)](_0x5ac55d),_0x5ab103=_0x256419/0x2,_0x3a96ea=_0x1fe78e/0x2,_0x2b0e62=_0x10bfab-_0x5ab103,_0x22d92d=_0x150955-_0x3a96ea;_0x10bfab=_0x5ab103+_0x2b0e62*_0xa94903-_0x22d92d*_0x5a96da,_0x150955=_0x3a96ea+_0x2b0e62*_0x5a96da+_0x22d92d*_0xa94903;}_0x10bfab+=_0x4b0509,_0x150955+=_0x18ad9c;let _0x2bc334=_0x48644f[_0x118834(0x1e8)]/0xea60;_0x3141fb&&(_0x2bc334=0xb4-_0x2bc334),_0x3765ff&&(_0x2bc334=-_0x2bc334),_0x2bc334+=_0x63ec||0x0,_0x2bc334=(_0x2bc334%0x168+0x168)%0x168;let _0x37f403=_0x4c4c2c({'left':_0x4b0509,'top':_0x18ad9c,'width':_0x256419,'height':_0x1fe78e},_0x63ec||0x0);return{'point':{'x':_0x10bfab,'y':_0x150955},'angle':_0x2bc334,'bounds':_0x37f403};}[_0x3f997f(0x268)](_0x4617eb,_0x508ce2,_0x20e3db,_0x1ab766,_0x32c5fb,_0x1ec52a,_0x3161f1,_0x4f1923,_0x37d544,_0x526dd3){const _0x471ad3=_0x3f997f;let _0xaaf96d=this['_sheetSkeletonService']['getSkeleton'](_0x4617eb,_0x508ce2);if(!_0xaaf96d)return;let _0x547548=_0x1ab766[_0x471ad3(0x20c)](),_0x425538=_0x1ab766[_0x471ad3(0x251)](),_0x5f467e={},_0x5e94d4={};_0x425538['forEach'](_0x4d5ad0=>{const _0x4399d2=_0x471ad3;let _0x11b15c=_0x1ab766[_0x4399d2(0x21b)](_0x4d5ad0);_0x5e94d4[_0x4d5ad0]=_0x11b15c==null?0x0:_0x11b15c;});let _0x623af9=this[_0x471ad3(0x22e)](_0x32c5fb,_0x4617eb,_0x508ce2,_0x37d544,_0x526dd3),_0x51da3e=this['_getConnectPointInfo'](_0x1ec52a,_0x4617eb,_0x508ce2,_0x37d544,_0x526dd3);if(_0x623af9&&_0x51da3e){let _0x14b7b6=_0x1ab766[_0x471ad3(0x25a)](),_0x49d871=_0x4d3188(_0x623af9,_0x51da3e,_0x14b7b6),_0x5da580=_0x14b7b6;if(_0x49d871){let _0x4463c1=_0x11fbdc(_0x49d871,_0x1ab766[_0x471ad3(0x25a)]()),_0xae20=this[_0x471ad3(0x207)][_0x471ad3(0x227)](_0x4617eb,_0x508ce2);if(_0xae20&&_0xae20[_0x20e3db]){let _0x90a018=_0xae20[_0x20e3db];_0x5da580=_0x4463c1[_0x471ad3(0x267)];for(let [_0x2b2d9d,_0xb62c98]of Object[_0x471ad3(0x269)](_0x4463c1[_0x471ad3(0x203)]))_0x5f467e[_0x2b2d9d]=_0xb62c98;let _0x21e966={..._0x90a018['transform'],'width':_0x4463c1[_0x471ad3(0x1fc)]['width'],'height':_0x4463c1[_0x471ad3(0x1fc)][_0x471ad3(0x201)],'left':_0x4463c1[_0x471ad3(0x1fc)]['left'],'top':_0x4463c1['worldRect'][_0x471ad3(0x259)],'flipX':_0x4463c1[_0x471ad3(0x1fc)]['flipX'],'flipY':_0x4463c1[_0x471ad3(0x1fc)][_0x471ad3(0x212)],'angle':_0x4463c1[_0x471ad3(0x20e)]},_0x2db0fc=_0x42d0e0(_0x21e966,_0xaaf96d),_0x5d5c85=_0x1b03b3(_0x21e966,_0xaaf96d),_0xa0887a={'unitId':_0x4617eb,'subUnitId':_0x508ce2,'drawingType':_0x53e1b5[_0x471ad3(0x1e5)],'drawingId':_0x20e3db,'transform':_0x21e966,'sheetTransform':_0x2db0fc,'axisAlignSheetTransform':_0x5d5c85},{unitId:_0xc3f571,subUnitId:_0x539a88,undo:_0x14d2fa,redo:_0x351329,objects:_0x5b65be}=this[_0x471ad3(0x207)][_0x471ad3(0x1e0)]([_0xa0887a]);_0x3161f1[_0x471ad3(0x228)]({'id':_0xaa8efd['id'],'params':{'unitId':_0xc3f571,'subUnitId':_0x539a88,'op':_0x351329,'objects':_0x5b65be,'type':_0x1c747c[_0x471ad3(0x236)]}}),_0x4f1923[_0x471ad3(0x228)]({'id':_0xaa8efd['id'],'params':{'unitId':_0xc3f571,'subUnitId':_0x539a88,'op':_0x14d2fa,'objects':_0x5b65be,'type':_0x1c747c[_0x471ad3(0x236)]}});}_0x1ab766['removeLinePoints']();}_0x3161f1[_0x471ad3(0x228)]({'id':X['id'],'params':{'unitId':_0x4617eb,'subUnitId':_0x508ce2,'shapeId':_0x20e3db,'shapeType':_0x5da580,'shapeData':{'adjustValues':_0x5f467e,'relation':_0x547548}}}),_0x4f1923[_0x471ad3(0x228)]({'id':X['id'],'params':{'unitId':_0x4617eb,'subUnitId':_0x508ce2,'shapeId':_0x20e3db,'shapeType':_0x14b7b6,'shapeData':{'adjustValues':_0x5e94d4,'relation':_0x547548}}});}}[_0x3f997f(0x1f8)](_0x4730b1,_0x3b838,_0x4a9ad4,_0x5a5b18,_0x1c40a0,_0x12caac,_0x4f79f3,_0x122b72,_0x470b70,_0x3eb446){const _0x152584=_0x3f997f;var _0x4e89a8;if(!_0x1c40a0)return;let _0x5d5b08=this[_0x152584(0x270)]['getSkeleton'](_0x4730b1,_0x3b838);if(!_0x5d5b08)return;let _0x568c10=(_0x4e89a8=this[_0x152584(0x207)]['getDrawingByParam']({'unitId':_0x4730b1,'subUnitId':_0x3b838,'drawingId':_0x470b70}))==null?void 0x0:_0x4e89a8[_0x152584(0x249)];if(!_0x568c10)return;let _0x3e5233=_0x568c10['left']!==_0x3eb446[_0x152584(0x226)]||_0x568c10['top']!==_0x3eb446[_0x152584(0x259)],_0xc0c890=_0x568c10[_0x152584(0x215)]!==_0x3eb446['width']||_0x568c10[_0x152584(0x201)]!==_0x3eb446['height'],_0x4c9549=_0x568c10[_0x152584(0x206)]!==_0x3eb446[_0x152584(0x206)]||_0x568c10[_0x152584(0x212)]!==_0x3eb446[_0x152584(0x212)],_0x33e564=_0x568c10[_0x152584(0x1f7)]!==_0x3eb446['angle'];if(_0x3e5233&&!_0xc0c890&&!_0x4c9549&&!_0x33e564){var _0x39ea53,_0x50f8c0,_0xd85e3e,_0x542109;let _0x3863fd=((_0x39ea53=_0x3eb446[_0x152584(0x226)])==null?0x0:_0x39ea53)-((_0x50f8c0=_0x568c10['left'])==null?0x0:_0x50f8c0),_0x4637d7=((_0xd85e3e=_0x3eb446[_0x152584(0x259)])==null?0x0:_0xd85e3e)-((_0x542109=_0x568c10[_0x152584(0x259)])==null?0x0:_0x542109),_0x2a131e=this[_0x152584(0x207)]['getDrawingData'](_0x4730b1,_0x3b838);if(_0x2a131e&&_0x2a131e[_0x4a9ad4]){var _0x2477ee,_0xf2b40a,_0x2d0039,_0x2cb0c5;let _0x1d5967=_0x2a131e[_0x4a9ad4],_0x53e528={..._0x1d5967[_0x152584(0x249)],'left':((_0x2477ee=(_0xf2b40a=_0x1d5967[_0x152584(0x249)])==null?void 0x0:_0xf2b40a[_0x152584(0x226)])==null?0x0:_0x2477ee)+_0x3863fd,'top':((_0x2d0039=(_0x2cb0c5=_0x1d5967[_0x152584(0x249)])==null?void 0x0:_0x2cb0c5[_0x152584(0x259)])==null?0x0:_0x2d0039)+_0x4637d7},_0x3fa7c8=_0x42d0e0(_0x53e528,_0x5d5b08),_0x1071a8=_0x1b03b3(_0x53e528,_0x5d5b08),_0x5be1b5={'unitId':_0x4730b1,'subUnitId':_0x3b838,'drawingType':_0x53e1b5['DRAWING_SHAPE'],'drawingId':_0x4a9ad4,'transform':_0x53e528,'sheetTransform':_0x3fa7c8,'axisAlignSheetTransform':_0x1071a8},{unitId:_0x730a50,subUnitId:_0x3492ba,undo:_0x2095aa,redo:_0x59555f,objects:_0x5de7f5}=this[_0x152584(0x207)][_0x152584(0x1e0)]([_0x5be1b5]);_0x4f79f3['push']({'id':_0xaa8efd['id'],'params':{'unitId':_0x730a50,'subUnitId':_0x3492ba,'op':_0x59555f,'objects':_0x5de7f5,'type':_0x1c747c[_0x152584(0x236)]}}),_0x122b72['push']({'id':_0xaa8efd['id'],'params':{'unitId':_0x730a50,'subUnitId':_0x3492ba,'op':_0x2095aa,'objects':_0x5de7f5,'type':_0x1c747c[_0x152584(0x236)]}});}}else{let _0x26adcb=_0x5a5b18[_0x152584(0x23b)](),_0x4c148a=_0x5a5b18[_0x152584(0x272)]();this[_0x152584(0x268)](_0x4730b1,_0x3b838,_0x4a9ad4,_0x5a5b18,_0x26adcb,_0x4c148a,_0x4f79f3,_0x122b72,_0x470b70,_0x3eb446);}}};ce=G([W(0x0,_0x4244e2),W(0x1,_0x3f9e01(_0x296b96)),W(0x2,_0x3f9e01(_0x4fcab3)),W(0x3,_0x3f9e01(K)),W(0x4,_0x3f9e01(_0x189d45))],ce);let le=class extends _0x108e80{constructor(_0x63afa1=se,_0x2ceb40,_0x1f1929,_0x247e63){const _0x1fd9b2=_0x3f997f;super(),this[_0x1fd9b2(0x223)]=_0x63afa1,this['_injector']=_0x2ceb40,this['_commandService']=_0x1f1929,this[_0x1fd9b2(0x1e7)]=_0x247e63;let {..._0xff2a3b}=_0x39594a({},se,this[_0x1fd9b2(0x223)]);this[_0x1fd9b2(0x1e7)][_0x1fd9b2(0x1e1)](_0x1fd9b2(0x21a),_0xff2a3b);}[_0x3f997f(0x21d)](){const _0x2b4e2d=_0x3f997f;let _0x5db0d6=this[_0x2b4e2d(0x235)];[[U],[K],[ce]][_0x2b4e2d(0x209)](_0x50fb2b=>_0x5db0d6[_0x2b4e2d(0x224)](_0x50fb2b)),_0x5eb370(_0x5db0d6,[[K],[ce]]);}};H(le,_0x3f997f(0x1ea),_0x186b43['UNIVER_SHEET']),H(le,_0x3f997f(0x25e),_0x3f997f(0x247)),H(le,_0x3f997f(0x274),ae),H(le,'version',oe),le=G([_0x5127bc(_0x150078),W(0x1,_0x3f9e01(_0x48d8f4)),W(0x2,_0x4244e2),W(0x3,_0x1a7ac4)],le);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,le as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,X as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,$ as UpdateSheetsShapeTypeMutation};
|
|
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};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -3,17 +3,12 @@ export type { IInsertSheetsShapeCommandParams } from './commands/command/add-sha
|
|
|
3
3
|
export { SetShapeDrawingDataCommand } from './commands/command/set-shape-drawing-data.command';
|
|
4
4
|
export type { ISetShapeDrawingDataCommandParams } from './commands/command/set-shape-drawing-data.command';
|
|
5
5
|
export { ToggleSheetsShapeFlipCommand } from './commands/command/set-shape-flip.command';
|
|
6
|
-
export type { IUpdateSheetsShapeFlipCommandParams } from './commands/command/set-shape-flip.command';
|
|
7
6
|
export { SetSheetsShapeRotateCommand } from './commands/command/set-shape-rotate.command';
|
|
8
|
-
export type { IUpdateSheetsShapeRotateCommandParams } from './commands/command/set-shape-rotate.command';
|
|
9
7
|
export { SetSheetsShapeTextVerticalToggleCommand } from './commands/command/set-shape-text-vertical-toggle.command';
|
|
10
|
-
export type { ISetSheetsShapeTextVerticalToggleCommandParams, } from './commands/command/set-shape-text-vertical-toggle.command';
|
|
11
8
|
export { UpdateConnectorRelationCommand } from './commands/command/update-connector-relation.command';
|
|
12
9
|
export type { IUpdateConnectorRelationCommandParams } from './commands/command/update-connector-relation.command';
|
|
13
10
|
export { UpdateLineShapeResizeCommand } from './commands/command/update-line-shape-resize.command';
|
|
14
11
|
export type { IUpdateSheetsShapeResizeCommandParams } from './commands/command/update-line-shape-resize.command';
|
|
15
|
-
export { UpdateSheetsShapeTypeCommand } from './commands/command/update-shape-type.command';
|
|
16
|
-
export type { IUpdateSheetsShapeTypeCommandParams } from './commands/command/update-shape-type.command';
|
|
17
12
|
export { InsertSheetsShapeMutation } from './commands/mutation/add-shape.mutation';
|
|
18
13
|
export type { IInsertSheetsShapeMutationParams } from './commands/mutation/add-shape.mutation';
|
|
19
14
|
export { RemoveSheetsShapeMutation } from './commands/mutation/remove-shape.mutation';
|
|
@@ -21,8 +16,7 @@ export type { IRemoveSheetsShapeMutationParams } from './commands/mutation/remov
|
|
|
21
16
|
export { UpdateSheetsShapeDataMutation } from './commands/mutation/update-shape-data.mutation';
|
|
22
17
|
export type { IUpdateSheetsShapeDataMutationParams } from './commands/mutation/update-shape-data.mutation';
|
|
23
18
|
export { UpdateSheetsShapeTypeMutation } from './commands/mutation/update-shape-type.mutation';
|
|
24
|
-
export
|
|
25
|
-
export {
|
|
26
|
-
export type { IDrawingShapeData, ISheetShapeDrawingParam } from './common/types';
|
|
19
|
+
export { DEFAULT_SHAPE_HEIGHT, DEFAULT_SHAPE_WIDTH, } from './common/const';
|
|
20
|
+
export type { IDrawingShapeData, ISheetShapeDrawingParam, } from './common/types';
|
|
27
21
|
export { UniverSheetsShapePlugin } from './plugin';
|
|
28
22
|
export { SheetsShapeService } from './services/sheet-shape-services';
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x26ee(_0x313de2,_0x420ea0){_0x313de2=_0x313de2-0xf4;const _0x19321d=_0x1932();let _0x26ee43=_0x19321d[_0x313de2];return _0x26ee43;}function _0x1932(){const _0x4c4efe=['type','DrawingTypeEnum','getDrawingByParam','FEnum','top','setShapeSolidFill','getUnitId','ISheetDrawingService','size','opacity','3EdVmDW','SheetSkeletonService','lineType','setStrokeLineCapType','NoFill','setPosition','@univerjs/sheets-drawing','DEFAULT_SHAPE_WIDTH','isLineShape','RemoveSheetDrawingCommand','prototype','endArrow','getAdjustNames','drawId','convertPositionCellToSheetOverGrid','DRAWING_SHAPE','connectionSiteIndex','dashType','shape','getConnectorLinePoints','Module','constructor','subUnitId','getSize','setStrokeColor','lineStrokeType','setShapeData','UniverSheetsFacade','relation','getSheetId','UniverCoreFacade','localToWorld','symbol','getConnectionSiteList','3828335BKacSI','capType','ShapeLineDashEnum','getShapeId','UniverSheetsDrawing','112095POkZns','FConnectorShape','fillType','_injector','getShapeRelation','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','_commandService','exports','computeConnectorRouteLayout','amd','isConnectorShape','left','updateContext','gradientType','object','generateRandomId','getConnectionSites','removeShape','7790502JhVGRT','setStrokeOpacity','setWidth','index','_resolveEndpoints','ShapeFillEnum','UniverCore','newConnector','call','SolidFill','flipY','getDrawingPoints','shapeData','1104128fsdJUC','string','getDrawingData','IDrawingManagerService','getAdjustPoints','adjustValues','getAdjustValueByName',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','setStrokeLineJoinType','abs','ShapeGradientTypeEnum','ShapeLineJoinEnum','getShapeType','setHeight','connectShapes','5852900jqmTwB','ShapeLineTypeEnum','setShapeType','build','setStartArrowSize','@univerjs-pro/engine-shape','_resolveExistingOrFreeEndpoint','Skeleton\x20for\x20unitId\x20','FShape','FWorksheet','getShapeModel','ConnectorCoordinateTransform','lineJoinType','ensureSkeleton','unitId','shapeType','setStrokeLineType','rotation','UniverProSheetsShapeFacade','getShapes','@univerjs/sheets/facade','2551330fzCFRT','GradientFill','UniverProEngineShape','width','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','cxnIndex','routeConnectorLineShape','\x20not\x20found','defineProperty','get','insertShape','getShapeData','getStartConnectInfo','fill','toPrimitive','setNoneFill','UniverDrawing','parse','getWorkbook','setStrokeLineDashType','from','ShapeLineCapEnum','startArrow','@univerjs/core/facade','DEFAULT_SHAPE_HEIGHT','27WfKEyR','setStrokeWidth','cos','8rzAHdR','extend','ang','color','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','worldRect','entries','_preloadShapeProperties','stroke','gradientStops','775964ccKrZz','ShapeTypeEnum','getEndConnectInfo','function','sin','SheetsShapeService','height','setShapeGradientFill','drawingType','keys','setEndArrowSize','find','transform','\x20and\x20subUnitId\x20','@univerjs/drawing','InsertShapeCommand','stringify'];_0x1932=function(){return _0x4c4efe;};return _0x1932();}(function(_0x2c877c,_0x4aa4e5){const _0x23ad7d=_0x26ee,_0x2af1e6=_0x2c877c();while(!![]){try{const _0x3168b2=-parseInt(_0x23ad7d(0x18c))/0x1+-parseInt(_0x23ad7d(0x100))/0x2+-parseInt(_0x23ad7d(0x165))/0x3*(-parseInt(_0x23ad7d(0x14a))/0x4)+-parseInt(_0x23ad7d(0x10f))/0x5+parseInt(_0x23ad7d(0x19e))/0x6+parseInt(_0x23ad7d(0x187))/0x7*(parseInt(_0x23ad7d(0x140))/0x8)+parseInt(_0x23ad7d(0x13d))/0x9*(parseInt(_0x23ad7d(0x124))/0xa);if(_0x3168b2===_0x4aa4e5)break;else _0x2af1e6['push'](_0x2af1e6['shift']());}catch(_0x146a7f){_0x2af1e6['push'](_0x2af1e6['shift']());}}}(_0x1932,0xeccf5),function(_0x4a6cad,_0x146459){const _0x1f2542=_0x26ee;typeof exports==_0x1f2542(0x19a)&&typeof module<'u'?_0x146459(exports,require('@univerjs-pro/engine-shape'),require('@univerjs/core/facade'),require('@univerjs-pro/sheets-shape'),require('@univerjs/core'),require('@univerjs/drawing'),require('@univerjs/sheets'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets/facade')):typeof define==_0x1f2542(0x14d)&&define[_0x1f2542(0x195)]?define([_0x1f2542(0x193),_0x1f2542(0x114),_0x1f2542(0x13b),'@univerjs-pro/sheets-shape','@univerjs/core',_0x1f2542(0x158),'@univerjs/sheets',_0x1f2542(0x16b),_0x1f2542(0x123)],_0x146459):(_0x4a6cad=typeof globalThis<'u'?globalThis:_0x4a6cad||self,_0x146459(_0x4a6cad[_0x1f2542(0x121)]={},_0x4a6cad[_0x1f2542(0x126)],_0x4a6cad[_0x1f2542(0x183)],_0x4a6cad['UniverProSheetsShape'],_0x4a6cad[_0x1f2542(0xf9)],_0x4a6cad[_0x1f2542(0x134)],_0x4a6cad['UniverSheets'],_0x4a6cad[_0x1f2542(0x18b)],_0x4a6cad[_0x1f2542(0x180)]));}(this,function(_0x3f4ebe,_0x30d003,_0x30334d,_0x1706a2,_0x2991ea,_0x344e73,_0x779c46,_0x1a1a5f,_0x1a5cd0){const _0x298834=_0x26ee;Object[_0x298834(0x12c)](_0x3f4ebe,Symbol['toStringTag'],{'value':_0x298834(0x179)});var _0x275b46=class extends _0x30334d[_0x298834(0x15e)]{get[_0x298834(0x14b)](){const _0x709fdb=_0x298834;return _0x30d003[_0x709fdb(0x14b)];}get[_0x298834(0xf8)](){const _0x4b8df8=_0x298834;return _0x30d003[_0x4b8df8(0xf8)];}get['ShapeGradientTypeEnum'](){const _0x5aeca7=_0x298834;return _0x30d003[_0x5aeca7(0x10a)];}get['ShapeLineTypeEnum'](){const _0x15ab39=_0x298834;return _0x30d003[_0x15ab39(0x110)];}get[_0x298834(0x189)](){const _0x2c15fc=_0x298834;return _0x30d003[_0x2c15fc(0x189)];}get[_0x298834(0x139)](){const _0x31aaa9=_0x298834;return _0x30d003[_0x31aaa9(0x139)];}get[_0x298834(0x10b)](){const _0x162602=_0x298834;return _0x30d003[_0x162602(0x10b)];}get['ShapeArrowTypeEnum'](){return _0x30d003['ShapeArrowTypeEnum'];}get['ShapeArrowSizeEnum'](){return _0x30d003['ShapeArrowSizeEnum'];}};_0x30334d['FEnum'][_0x298834(0x141)](_0x275b46);function _0x29c63e(_0x5b9745){'@babel/helpers - typeof';const _0x1f560d=_0x298834;return _0x29c63e=typeof Symbol==_0x1f560d(0x14d)&&typeof Symbol['iterator']=='symbol'?function(_0x235429){return typeof _0x235429;}:function(_0x29a84d){const _0x5e5ed3=_0x1f560d;return _0x29a84d&&typeof Symbol==_0x5e5ed3(0x14d)&&_0x29a84d[_0x5e5ed3(0x17a)]===Symbol&&_0x29a84d!==Symbol[_0x5e5ed3(0x16f)]?_0x5e5ed3(0x185):typeof _0x29a84d;},_0x29c63e(_0x5b9745);}function _0x3f8474(_0x4ef8ea,_0xe1f691){const _0x39ed47=_0x298834;if(_0x29c63e(_0x4ef8ea)!='object'||!_0x4ef8ea)return _0x4ef8ea;var _0xbd1384=_0x4ef8ea[Symbol[_0x39ed47(0x132)]];if(_0xbd1384!==void 0x0){var _0x17eefe=_0xbd1384[_0x39ed47(0xfb)](_0x4ef8ea,_0xe1f691||'default');if(_0x29c63e(_0x17eefe)!=_0x39ed47(0x19a))return _0x17eefe;throw TypeError(_0x39ed47(0x128));}return(_0xe1f691===_0x39ed47(0x101)?String:Number)(_0x4ef8ea);}function _0x2549bf(_0x5435f1){const _0x1ab4e8=_0x298834;var _0x26a232=_0x3f8474(_0x5435f1,_0x1ab4e8(0x101));return _0x29c63e(_0x26a232)==_0x1ab4e8(0x185)?_0x26a232:_0x26a232+'';}function _0x2370a3(_0x241f35,_0x3d2be4,_0x3ab674){const _0x639db=_0x298834;return(_0x3d2be4=_0x2549bf(_0x3d2be4))in _0x241f35?Object[_0x639db(0x12c)](_0x241f35,_0x3d2be4,{'value':_0x3ab674,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x241f35[_0x3d2be4]=_0x3ab674,_0x241f35;}var _0x45d2be=class{constructor(_0x331a64,_0x1b27b8,_0x3bfa2f,_0x3162a5){const _0x43ee2d=_0x298834;_0x2370a3(this,_0x43ee2d(0x11d),void 0x0),_0x2370a3(this,'subUnitId',void 0x0),_0x2370a3(this,'drawId',void 0x0),_0x2370a3(this,'x',0x0),_0x2370a3(this,'y',0x0),_0x2370a3(this,_0x43ee2d(0x127),_0x1706a2[_0x43ee2d(0x16c)]),_0x2370a3(this,_0x43ee2d(0x150),_0x1706a2[_0x43ee2d(0x13c)]),_0x2370a3(this,'shapeType',void 0x0),_0x2370a3(this,_0x43ee2d(0xff),{}),_0x2370a3(this,'_injector',void 0x0),this[_0x43ee2d(0x11d)]=_0x331a64,this[_0x43ee2d(0x17b)]=_0x1b27b8,this[_0x43ee2d(0x172)]=_0x3bfa2f||(0x0,_0x2991ea[_0x43ee2d(0x19b)])(),this[_0x43ee2d(0x18f)]=_0x3162a5;}[_0x298834(0x16a)](_0xba27c8,_0x5593cb,_0x167dd4,_0x4701e2){const _0x2dbead=_0x298834;let _0x22257c=this['_injector'][_0x2dbead(0x12d)](_0x779c46[_0x2dbead(0x166)])['ensureSkeleton'](this[_0x2dbead(0x11d)],this['subUnitId']);if(!_0x22257c)throw Error(_0x2dbead(0x116)+this[_0x2dbead(0x11d)]+_0x2dbead(0x157)+this['subUnitId']+'\x20not\x20found');let {transform:_0x494f8d}=(0x0,_0x779c46[_0x2dbead(0x173)])(this[_0x2dbead(0x11d)],this[_0x2dbead(0x17b)],{'row':_0xba27c8,'column':_0x5593cb,'rowOffset':_0x167dd4,'columnOffset':_0x4701e2},0x1,0x1,_0x22257c);return this['x']=_0x494f8d[_0x2dbead(0x197)],this['y']=_0x494f8d[_0x2dbead(0x15f)],this;}['setAbsolutePosition'](_0x50e165,_0x331446){return this['x']=_0x50e165,this['y']=_0x331446,this;}[_0x298834(0x111)](_0x3106c3){const _0x1a6224=_0x298834;return this[_0x1a6224(0x11e)]=_0x3106c3,this;}[_0x298834(0x17f)](_0x39d5fb){const _0x37b395=_0x298834;return _0x39d5fb[_0x37b395(0x11e)]&&this['setShapeType'](_0x39d5fb[_0x37b395(0x11e)]),this[_0x37b395(0xff)]={..._0x39d5fb},this;}[_0x298834(0x160)](_0x5781e4,_0x521732){const _0x79d6e0=_0x298834;return this[_0x79d6e0(0xff)]['fill']||(this[_0x79d6e0(0xff)]['fill']={}),this[_0x79d6e0(0xff)][_0x79d6e0(0x131)][_0x79d6e0(0x18e)]=_0x30d003[_0x79d6e0(0xf8)][_0x79d6e0(0xfc)],_0x5781e4!==void 0x0&&(this[_0x79d6e0(0xff)][_0x79d6e0(0x131)]['color']=_0x5781e4),_0x521732!==void 0x0&&(this[_0x79d6e0(0xff)][_0x79d6e0(0x131)][_0x79d6e0(0x164)]=_0x521732),this;}[_0x298834(0x151)](_0x3cf481,_0x344f9a,_0x10dc86){const _0x25c2c0=_0x298834;if(_0x344f9a===void 0x0||_0x344f9a['length']===0x0)throw Error(_0x25c2c0(0x191));return this[_0x25c2c0(0xff)][_0x25c2c0(0x131)]||(this[_0x25c2c0(0xff)][_0x25c2c0(0x131)]={}),this[_0x25c2c0(0xff)][_0x25c2c0(0x131)][_0x25c2c0(0x149)]=_0x344f9a,this[_0x25c2c0(0xff)][_0x25c2c0(0x131)]['fillType']=_0x30d003['ShapeFillEnum'][_0x25c2c0(0x125)],this[_0x25c2c0(0xff)]['fill'][_0x25c2c0(0x199)]=_0x3cf481,_0x10dc86!==void 0x0&&(this['shapeData']['fill']['gradientAngle']=_0x10dc86),this;}[_0x298834(0x133)](){const _0x56432f=_0x298834;return this[_0x56432f(0xff)][_0x56432f(0x131)]={'fillType':_0x30d003[_0x56432f(0xf8)][_0x56432f(0x169)]},this;}[_0x298834(0x17d)](_0x500b16){const _0x35dd90=_0x298834;return this[_0x35dd90(0xff)][_0x35dd90(0x148)]||(this['shapeData'][_0x35dd90(0x148)]={}),this[_0x35dd90(0xff)][_0x35dd90(0x148)][_0x35dd90(0x143)]=_0x500b16,this;}[_0x298834(0x13e)](_0x36701c){const _0x318922=_0x298834;return this[_0x318922(0xff)][_0x318922(0x148)]||(this['shapeData'][_0x318922(0x148)]={}),this[_0x318922(0xff)]['stroke'][_0x318922(0x127)]=_0x36701c,this;}[_0x298834(0x137)](_0x45e3d8){const _0x230c72=_0x298834;return this[_0x230c72(0xff)]['stroke']||(this[_0x230c72(0xff)]['stroke']={}),this[_0x230c72(0xff)][_0x230c72(0x148)][_0x230c72(0x176)]=_0x45e3d8,this;}[_0x298834(0x108)](_0x375995){const _0x181366=_0x298834;return this[_0x181366(0xff)][_0x181366(0x148)]||(this[_0x181366(0xff)][_0x181366(0x148)]={}),this['shapeData']['stroke'][_0x181366(0x11b)]=_0x375995,this;}[_0x298834(0x168)](_0x428c4a){const _0x42fec5=_0x298834;return this[_0x42fec5(0xff)]['stroke']||(this['shapeData'][_0x42fec5(0x148)]={}),this[_0x42fec5(0xff)]['stroke'][_0x42fec5(0x188)]=_0x428c4a,this;}[_0x298834(0xf4)](_0xf35481){const _0x1370c1=_0x298834;return this[_0x1370c1(0xff)][_0x1370c1(0x148)]||(this[_0x1370c1(0xff)][_0x1370c1(0x148)]={}),this[_0x1370c1(0xff)][_0x1370c1(0x148)][_0x1370c1(0x164)]=_0xf35481,this;}[_0x298834(0x11f)](_0x2fe961){const _0x10dae1=_0x298834;return this[_0x10dae1(0xff)][_0x10dae1(0x148)]||(this[_0x10dae1(0xff)]['stroke']={}),this['shapeData']['stroke'][_0x10dae1(0x17e)]=_0x2fe961,this;}[_0x298834(0xf5)](_0x12865c){const _0x44c642=_0x298834;return this[_0x44c642(0x127)]=_0x12865c,this;}[_0x298834(0x10d)](_0x148184){return this['height']=_0x148184,this;}[_0x298834(0x16d)](){const _0x2c9537=_0x298834;let _0x2a629d=this['_injector']['get'](_0x1706a2[_0x2c9537(0x14f)])[_0x2c9537(0x119)](this[_0x2c9537(0x11d)],this['subUnitId'],this[_0x2c9537(0x172)]);return _0x2a629d?(0x0,_0x30d003['isConnectorShape'])(_0x2a629d['getShapeType']()):this['shapeType']?(0x0,_0x30d003[_0x2c9537(0x196)])(this['shapeType']):!0x1;}[_0x298834(0x19c)](){const _0x1cd969=_0x298834;let _0x2eeb76=this[_0x1cd969(0x18f)][_0x1cd969(0x12d)](_0x1706a2[_0x1cd969(0x14f)])[_0x1cd969(0x119)](this[_0x1cd969(0x11d)],this[_0x1cd969(0x17b)],this[_0x1cd969(0x172)]);if(!_0x2eeb76)return[];let _0x272205=this[_0x1cd969(0x18f)]['get'](_0x344e73[_0x1cd969(0x103)])[_0x1cd969(0x15d)]({'unitId':this[_0x1cd969(0x11d)],'subUnitId':this['subUnitId'],'drawingId':this[_0x1cd969(0x172)]});if(!(_0x272205!=null&&_0x272205[_0x1cd969(0x156)]))return[];let {width:_0xe6f47=0x0,height:_0x2d2f66=0x0}=_0x272205[_0x1cd969(0x156)];return _0x2eeb76[_0x1cd969(0x198)]({'width':_0xe6f47,'height':_0x2d2f66}),_0x2eeb76[_0x1cd969(0x186)]();}[_0x298834(0x104)](){const _0x35059d=_0x298834;let _0x55625f=this[_0x35059d(0x18f)][_0x35059d(0x12d)](_0x1706a2['SheetsShapeService'])[_0x35059d(0x119)](this[_0x35059d(0x11d)],this[_0x35059d(0x17b)],this[_0x35059d(0x172)]);if(!_0x55625f)return[];let _0x337496=this[_0x35059d(0x18f)][_0x35059d(0x12d)](_0x344e73[_0x35059d(0x103)])[_0x35059d(0x15d)]({'unitId':this[_0x35059d(0x11d)],'subUnitId':this['subUnitId'],'drawingId':this[_0x35059d(0x172)]});if(!(_0x337496!=null&&_0x337496['transform']))return[];let {width:_0x3c4b4a=0x0,height:_0x31de8b=0x0}=_0x337496[_0x35059d(0x156)];return _0x55625f[_0x35059d(0x198)]({'width':_0x3c4b4a,'height':_0x31de8b}),_0x55625f[_0x35059d(0xfe)]();}[_0x298834(0x178)](){const _0x2d6417=_0x298834;let _0x5e6b6e=this[_0x2d6417(0x18f)][_0x2d6417(0x12d)](_0x1706a2['SheetsShapeService'])[_0x2d6417(0x119)](this[_0x2d6417(0x11d)],this[_0x2d6417(0x17b)],this[_0x2d6417(0x172)]);if(!_0x5e6b6e||!(0x0,_0x30d003['isConnectorShape'])(_0x5e6b6e[_0x2d6417(0x10c)]()))return[];let _0x53a487=this['_injector'][_0x2d6417(0x12d)](_0x344e73['IDrawingManagerService'])['getDrawingByParam']({'unitId':this[_0x2d6417(0x11d)],'subUnitId':this['subUnitId'],'drawingId':this[_0x2d6417(0x172)]});if(!(_0x53a487!=null&&_0x53a487[_0x2d6417(0x156)]))return[];let {width:_0x5ccebc=0x0,height:_0x2a58f2=0x0}=_0x53a487[_0x2d6417(0x156)];return _0x5e6b6e[_0x2d6417(0x198)]({'width':_0x5ccebc,'height':_0x2a58f2}),_0x5e6b6e[_0x2d6417(0x178)]();}[_0x298834(0x130)](){const _0x2066d8=_0x298834;var _0x48938a;let _0x5df7c1=this['_injector'][_0x2066d8(0x12d)](_0x1706a2[_0x2066d8(0x14f)])[_0x2066d8(0x119)](this[_0x2066d8(0x11d)],this['subUnitId'],this[_0x2066d8(0x172)]);return _0x5df7c1?(_0x48938a=_0x5df7c1['getStartConnectInfo']())==null?null:_0x48938a:null;}[_0x298834(0x14c)](){const _0x517f8b=_0x298834;var _0x5cfdc4;let _0x50d078=this[_0x517f8b(0x18f)][_0x517f8b(0x12d)](_0x1706a2['SheetsShapeService'])[_0x517f8b(0x119)](this['unitId'],this[_0x517f8b(0x17b)],this[_0x517f8b(0x172)]);return _0x50d078?(_0x5cfdc4=_0x50d078['getEndConnectInfo']())==null?null:_0x5cfdc4:null;}[_0x298834(0x112)](){const _0x5cbdfe=_0x298834;var _0x449ad8,_0x4e6b31;if(!this[_0x5cbdfe(0x11e)])throw Error('Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().');if(this['x']===0x0||this['y']===0x0){let _0x1f9394=this[_0x5cbdfe(0x18f)][_0x5cbdfe(0x12d)](_0x779c46[_0x5cbdfe(0x166)])[_0x5cbdfe(0x11c)](this[_0x5cbdfe(0x11d)],this[_0x5cbdfe(0x17b)]);if(!_0x1f9394)throw Error(_0x5cbdfe(0x116)+this[_0x5cbdfe(0x11d)]+_0x5cbdfe(0x157)+this[_0x5cbdfe(0x17b)]+_0x5cbdfe(0x12b));let {transform:_0x223bef}=(0x0,_0x779c46[_0x5cbdfe(0x173)])(this[_0x5cbdfe(0x11d)],this[_0x5cbdfe(0x17b)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x1f9394);this['x']=this['x']>0x0?this['x']:_0x223bef[_0x5cbdfe(0x197)],this['y']=this['y']>0x0?this['y']:_0x223bef[_0x5cbdfe(0x15f)];}return this[_0x5cbdfe(0x127)]=(_0x449ad8=this['width'])==null?_0x1706a2['DEFAULT_SHAPE_WIDTH']:_0x449ad8,this[_0x5cbdfe(0x150)]=(_0x4e6b31=this[_0x5cbdfe(0x150)])==null?_0x1706a2[_0x5cbdfe(0x13c)]:_0x4e6b31,{'unitId':this[_0x5cbdfe(0x11d)],'subUnitId':this[_0x5cbdfe(0x17b)],'shapeId':this[_0x5cbdfe(0x172)],'shapeType':this[_0x5cbdfe(0x11e)],'shapeData':Object[_0x5cbdfe(0x153)](this[_0x5cbdfe(0xff)])['length']>0x0?this['shapeData']:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x5cbdfe(0x127)],'height':this['height']};}[_0x298834(0x18a)](){const _0x2646bf=_0x298834;return this[_0x2646bf(0x172)];}[_0x298834(0x10c)](){const _0x3049f7=_0x298834;return this[_0x3049f7(0x11e)];}[_0x298834(0x12f)](){const _0x5d21b9=_0x298834;return this[_0x5d21b9(0xff)];}['getPosition'](){return{'x':this['x'],'y':this['y']};}[_0x298834(0x17c)](){const _0x388143=_0x298834;return{'width':this[_0x388143(0x127)],'height':this[_0x388143(0x150)]};}},_0x54b05e=class extends _0x45d2be{constructor(_0x4ae1a6,_0x3cfbdb,_0xd4c290,_0x18c041){const _0x135c16=_0x298834;super(_0x4ae1a6,_0x3cfbdb,_0xd4c290,_0x18c041),_0x2370a3(this,_0x135c16(0xff),{});}[_0x298834(0x111)](_0x319541){const _0x4aaf18=_0x298834;if(!(0x0,_0x30d003[_0x4aaf18(0x196)])(_0x319541))throw Error(_0x4aaf18(0x144)+_0x319541+_0x4aaf18(0x107));return super[_0x4aaf18(0x111)](_0x319541),this;}['setStartArrowType'](_0x12d178){const _0x244d0a=_0x298834;var _0x4815b2,_0x3c44cd;return(_0x4815b2=this[_0x244d0a(0xff)])!=null&&_0x4815b2['ln']||(this[_0x244d0a(0xff)]['ln']={}),!((_0x3c44cd=this[_0x244d0a(0xff)])==null||(_0x3c44cd=_0x3c44cd['ln'])==null)&&_0x3c44cd['startArrow']||(this[_0x244d0a(0xff)]['ln'][_0x244d0a(0x13a)]={}),this[_0x244d0a(0xff)]['ln']['startArrow'][_0x244d0a(0x15b)]=_0x12d178,this;}['setEndArrowType'](_0x8429b5){const _0x5f5dae=_0x298834;var _0xedb090,_0x138684;return(_0xedb090=this['shapeData'])!=null&&_0xedb090['ln']||(this['shapeData']['ln']={}),!((_0x138684=this[_0x5f5dae(0xff)])==null||(_0x138684=_0x138684['ln'])==null)&&_0x138684[_0x5f5dae(0x170)]||(this[_0x5f5dae(0xff)]['ln']['endArrow']={}),this[_0x5f5dae(0xff)]['ln'][_0x5f5dae(0x170)][_0x5f5dae(0x15b)]=_0x8429b5,this;}[_0x298834(0x113)](_0x56eb39){const _0x339684=_0x298834;var _0x4c1731,_0x1d71d1;return(_0x4c1731=this['shapeData'])!=null&&_0x4c1731['ln']||(this[_0x339684(0xff)]['ln']={}),!((_0x1d71d1=this[_0x339684(0xff)])==null||(_0x1d71d1=_0x1d71d1['ln'])==null)&&_0x1d71d1[_0x339684(0x13a)]||(this[_0x339684(0xff)]['ln'][_0x339684(0x13a)]={}),this[_0x339684(0xff)]['ln']['startArrow'][_0x339684(0x163)]=_0x56eb39,this;}[_0x298834(0x154)](_0x183411){const _0x51aba6=_0x298834;var _0x70a0f9,_0xbf3284;return(_0x70a0f9=this[_0x51aba6(0xff)])!=null&&_0x70a0f9['ln']||(this[_0x51aba6(0xff)]['ln']={}),!((_0xbf3284=this[_0x51aba6(0xff)])==null||(_0xbf3284=_0xbf3284['ln'])==null)&&_0xbf3284['endArrow']||(this[_0x51aba6(0xff)]['ln']['endArrow']={}),this[_0x51aba6(0xff)]['ln'][_0x51aba6(0x170)][_0x51aba6(0x163)]=_0x183411,this;}[_0x298834(0x112)](){const _0x4e32e6=_0x298834;return super[_0x4e32e6(0x112)]();}[_0x298834(0x14c)](){const _0x5dbfd7=_0x298834;var _0x40a6b8;return((_0x40a6b8=this[_0x5dbfd7(0xff)])==null||(_0x40a6b8=_0x40a6b8[_0x5dbfd7(0x181)])==null?void 0x0:_0x40a6b8['to'])||null;}[_0x298834(0x130)](){const _0x5b4b3d=_0x298834;var _0x338b9b;return((_0x338b9b=this[_0x5b4b3d(0xff)])==null||(_0x338b9b=_0x338b9b[_0x5b4b3d(0x181)])==null?void 0x0:_0x338b9b[_0x5b4b3d(0x138)])||null;}};function _0x280f9e(_0x4a86bc,_0x38590a,_0x27bebe,_0x35607b,_0x301296,_0x83336b){const _0x45227e=_0x298834;let _0x383573=_0x301296[_0x45227e(0x119)](_0x4a86bc,_0x38590a,_0x27bebe);if(!_0x383573)return null;let _0xc4816f=_0x83336b[_0x45227e(0x15d)]({'unitId':_0x4a86bc,'subUnitId':_0x38590a,'drawingId':_0x27bebe});if(!(_0xc4816f!=null&&_0xc4816f[_0x45227e(0x156)]))return null;let {left:_0x328c6e=0x0,top:_0x46a5f1=0x0,width:_0x2985b9=0x0,height:_0x263716=0x0,flipX:_0x29982f=!0x1,flipY:_0x3d8852=!0x1,angle:_0x645ca9}=_0xc4816f[_0x45227e(0x156)];_0x383573['updateContext']({'width':_0x2985b9,'height':_0x263716});let _0x4766db=_0x383573[_0x45227e(0x186)]()[_0x45227e(0x155)](_0x1c89b0=>_0x1c89b0[_0x45227e(0xf6)]===_0x35607b);if(!_0x4766db)return null;let _0x29b77b=_0x29982f?_0x2985b9-_0x4766db['x']:_0x4766db['x'],_0x4e418c=_0x3d8852?_0x263716-_0x4766db['y']:_0x4766db['y'];if(_0x645ca9&&_0x645ca9!==0x0){let _0x16c50f=_0x645ca9*Math['PI']/0xb4,_0x23843b=Math[_0x45227e(0x13f)](_0x16c50f),_0x2d7128=Math[_0x45227e(0x14e)](_0x16c50f),_0x335d55=_0x2985b9/0x2,_0x1964d3=_0x263716/0x2,_0x250938=_0x29b77b-_0x335d55,_0x3c9933=_0x4e418c-_0x1964d3;_0x29b77b=_0x335d55+_0x250938*_0x23843b-_0x3c9933*_0x2d7128,_0x4e418c=_0x1964d3+_0x250938*_0x2d7128+_0x3c9933*_0x23843b;}_0x29b77b+=_0x328c6e,_0x4e418c+=_0x46a5f1;let _0x1d2d90=_0x4766db[_0x45227e(0x142)]/0xea60;_0x29982f&&(_0x1d2d90=0xb4-_0x1d2d90),_0x3d8852&&(_0x1d2d90=-_0x1d2d90),_0x1d2d90+=_0x645ca9||0x0,_0x1d2d90=(_0x1d2d90%0x168+0x168)%0x168;let _0x456469=(0x0,_0x30d003['getBasicShapeRotateBound'])({'left':_0x328c6e,'top':_0x46a5f1,'width':_0x2985b9,'height':_0x263716},_0x645ca9||0x0);return{'point':{'x':_0x29b77b,'y':_0x4e418c},'angle':_0x1d2d90,'bounds':_0x456469};}function _0x5e3e43(_0x574e79,_0x3dc7e2){const _0x317429=_0x298834;let _0x442fc0=_0x3dc7e2['x']-_0x574e79['x'],_0x42c3ca=_0x3dc7e2['y']-_0x574e79['y'];return Math[_0x317429(0x109)](_0x442fc0)>=Math[_0x317429(0x109)](_0x42c3ca)?_0x442fc0>=0x0?0xb4:0x0:_0x42c3ca>=0x0?0x10e:0x5a;}function _0x4b6fa8(_0x475297,_0x5d070e,_0x2b1478,_0x1e59ac,_0x31ffb7,_0x554520,_0x5cf67f){const _0xba726=_0x298834;let _0xd7f20d=_0x554520['getShapeModel'](_0x475297,_0x5d070e,_0x2b1478);if(!_0xd7f20d)return null;let _0x5799ef=_0x5cf67f['getDrawingByParam']({'unitId':_0x475297,'subUnitId':_0x5d070e,'drawingId':_0x2b1478});if(!(_0x5799ef!=null&&_0x5799ef[_0xba726(0x156)]))return null;let {left:_0x16430e=0x0,top:_0x32f88e=0x0,width:_0xcbcc5f=0x0,height:_0x2b2ae2=0x0,flipX:_0x3bef30=!0x1,flipY:_0x320717=!0x1}=_0x5799ef[_0xba726(0x156)];_0xd7f20d[_0xba726(0x198)]({'width':_0xcbcc5f,'height':_0x2b2ae2});let _0x11e55d=_0xd7f20d[_0xba726(0x178)]();if(_0x11e55d['length']<0x2)return null;let _0x1b3fda=_0x1e59ac?_0x11e55d[0x0]:_0x11e55d[_0x11e55d['length']-0x1],_0x15afdf=new _0x30d003[(_0xba726(0x11a))]({'left':_0x16430e,'top':_0x32f88e,'width':_0xcbcc5f,'height':_0x2b2ae2,'flipX':_0x3bef30,'flipY':_0x320717})[_0xba726(0x184)](_0x1b3fda);return{'point':_0x15afdf,'angle':_0x5e3e43(_0x31ffb7['point'],_0x15afdf),'bounds':{'left':_0x15afdf['x'],'top':_0x15afdf['y'],'width':0x0,'height':0x0}};}var _0xccd761=class extends _0x1a5cd0['FWorksheet']{async[_0x298834(0x12e)](_0x285d9b){const _0x1400a7=_0x298834;let {unitId:_0x36066d,subUnitId:_0x26ab3b,shapeId:_0x3863e1,shapeType:_0x587b5b,shapeData:_0x8bf21e,x:_0x141729,y:_0x1ee5d3,width:_0x557c55,height:_0x18aa19}=_0x285d9b;return this['_commandService']['executeCommand'](_0x1706a2[_0x1400a7(0x159)]['id'],{'unitId':_0x36066d,'subUnitId':_0x26ab3b,'shapeId':_0x3863e1,'shapeType':_0x587b5b,'shapeData':_0x8bf21e,'position':{'x':_0x141729,'y':_0x1ee5d3},'width':_0x557c55,'height':_0x18aa19});}async['updateShape'](_0x3d438b){let {unitId:_0x58e12e,subUnitId:_0x1e6c9f,shapeId:_0x4f4dd3,shapeType:_0x544b6a,shapeData:_0x39b7ec,x:_0x3aa1e6,y:_0x1a01ad,width:_0x156022,height:_0x1e516f}=_0x3d438b;return this['_commandService']['executeCommand'](_0x1706a2['SetShapeDrawingDataCommand']['id'],{'unitId':_0x58e12e,'subUnitId':_0x1e6c9f,'shapeId':_0x4f4dd3,'shapeType':_0x544b6a,'shapeData':_0x39b7ec,'position':{'x':_0x3aa1e6,'y':_0x1a01ad},'width':_0x156022,'height':_0x1e516f});}['newShape'](_0x3c49d3){const _0x304ab2=_0x298834;let _0x4a0894=this[_0x304ab2(0x136)]()['getUnitId'](),_0x191240=this[_0x304ab2(0x182)]();if(_0x3c49d3){let _0x2f7433=new _0x45d2be(_0x4a0894,_0x191240,_0x3c49d3[_0x304ab2(0x172)],this[_0x304ab2(0x18f)]);return this[_0x304ab2(0x147)](_0x2f7433,_0x4a0894,_0x191240,_0x3c49d3[_0x304ab2(0x172)]),_0x2f7433;}return new _0x45d2be(_0x4a0894,_0x191240,(0x0,_0x2991ea[_0x304ab2(0x19b)])(),this[_0x304ab2(0x18f)]);}[_0x298834(0xfa)](_0x582923){const _0x244bde=_0x298834;let _0x2cf208=this[_0x244bde(0x136)]()[_0x244bde(0x161)](),_0x3913f4=this[_0x244bde(0x182)]();if(_0x582923){let _0xfc82b9=new _0x54b05e(_0x2cf208,_0x3913f4,_0x582923[_0x244bde(0x172)],this[_0x244bde(0x18f)]);return this[_0x244bde(0x147)](_0xfc82b9,_0x2cf208,_0x3913f4,_0x582923['drawId']),_0xfc82b9;}return new _0x54b05e(_0x2cf208,_0x3913f4,(0x0,_0x2991ea['generateRandomId'])(),this[_0x244bde(0x18f)]);}[_0x298834(0x122)](){const _0x1ec1f4=_0x298834;let _0x27130e=this['_injector'][_0x1ec1f4(0x12d)](_0x1a1a5f[_0x1ec1f4(0x162)]),_0xe4164b=this['getWorkbook']()[_0x1ec1f4(0x161)](),_0x15a5f0=this['getSheetId'](),_0xafd825=_0x27130e[_0x1ec1f4(0x102)](_0xe4164b,_0x15a5f0);if(!_0xafd825)return[];let _0xc970db=[];for(let [_0x5c863d,_0x3adf18]of Object[_0x1ec1f4(0x146)](_0xafd825))if(_0x3adf18&&_0x3adf18[_0x1ec1f4(0x152)]===_0x2991ea[_0x1ec1f4(0x15c)][_0x1ec1f4(0x174)]){let _0x5317cc=new _0x45d2be(_0xe4164b,_0x15a5f0,_0x5c863d,this[_0x1ec1f4(0x18f)]);this[_0x1ec1f4(0x147)](_0x5317cc,_0xe4164b,_0x15a5f0,_0x5c863d),_0xc970db['push'](_0x5317cc);}return _0xc970db;}[_0x298834(0x19d)](_0x32b2db){const _0x2be3e3=_0x298834;let {unitId:_0x7abbd4,subUnitId:_0x2c8dde,drawId:_0x2d2b5a}=_0x32b2db;return this[_0x2be3e3(0x192)]['executeCommand'](_0x1a1a5f[_0x2be3e3(0x16e)]['id'],{'unitId':_0x7abbd4,'drawings':[{'unitId':_0x7abbd4,'subUnitId':_0x2c8dde,'drawingId':_0x2d2b5a,'drawingType':_0x2991ea['DrawingTypeEnum'][_0x2be3e3(0x174)]}]});}async[_0x298834(0x10e)](_0x29919d){const _0x1939a3=_0x298834;let {connector:_0x367837,startTarget:_0x4f2457,endTarget:_0x47932f}=_0x29919d;if(!_0x4f2457&&!_0x47932f)return!0x1;let _0x56c385=this[_0x1939a3(0x136)]()['getUnitId'](),_0x4d4099=this[_0x1939a3(0x182)](),_0x2cff1a=this[_0x1939a3(0x18f)]['get'](_0x1706a2[_0x1939a3(0x14f)]),_0x4ca241=this[_0x1939a3(0x18f)]['get'](_0x344e73[_0x1939a3(0x103)]),_0x2e0740=_0x2cff1a['getShapeModel'](_0x56c385,_0x4d4099,_0x367837[_0x1939a3(0x172)]);if(!_0x2e0740)return!0x1;let _0x12a18b=_0x2e0740[_0x1939a3(0x10c)](),_0x377f00=_0x2e0740[_0x1939a3(0x190)](),_0x2f183d={};for(let _0x5dd461 of _0x2e0740[_0x1939a3(0x171)]()){let _0x4a8199=_0x2e0740[_0x1939a3(0x106)](_0x5dd461);_0x4a8199!==void 0x0&&(_0x2f183d[_0x5dd461]=_0x4a8199);}let {startInfo:_0xeebe73,endInfo:_0x243671}=this[_0x1939a3(0xf7)](_0x56c385,_0x4d4099,_0x367837,_0x2e0740,_0x4f2457,_0x47932f,_0x2cff1a,_0x4ca241,_0x377f00);if(!_0xeebe73||!_0x243671)return!0x1;let _0x4a7bed=(0x0,_0x30d003[_0x1939a3(0x194)])((0x0,_0x30d003[_0x1939a3(0x12a)])(_0xeebe73,_0x243671,_0x12a18b),_0x12a18b),_0x1d73f3={};return _0x4f2457?_0x1d73f3[_0x1939a3(0x138)]={'shapeId':_0x4f2457['shape'][_0x1939a3(0x172)],'cxnIndex':_0x4f2457[_0x1939a3(0x175)]}:_0x377f00!=null&&_0x377f00[_0x1939a3(0x138)]&&(_0x1d73f3[_0x1939a3(0x138)]=_0x377f00[_0x1939a3(0x138)]),_0x47932f?_0x1d73f3['to']={'shapeId':_0x47932f[_0x1939a3(0x177)][_0x1939a3(0x172)],'cxnIndex':_0x47932f[_0x1939a3(0x175)]}:_0x377f00!=null&&_0x377f00['to']&&(_0x1d73f3['to']=_0x377f00['to']),this[_0x1939a3(0x192)]['executeCommand'](_0x1706a2['UpdateConnectorRelationCommand']['id'],{'unitId':_0x56c385,'subUnitId':_0x4d4099,'connectorShapeId':_0x367837[_0x1939a3(0x172)],'width':_0x4a7bed[_0x1939a3(0x145)][_0x1939a3(0x127)],'height':_0x4a7bed[_0x1939a3(0x145)]['height'],'left':_0x4a7bed['worldRect'][_0x1939a3(0x197)],'top':_0x4a7bed[_0x1939a3(0x145)][_0x1939a3(0x15f)],'flipX':_0x4a7bed[_0x1939a3(0x145)]['flipX']||!0x1,'flipY':_0x4a7bed[_0x1939a3(0x145)][_0x1939a3(0xfd)]||!0x1,'oldAdjustValues':_0x2f183d,'newAdjustValues':_0x4a7bed[_0x1939a3(0x105)],'newLineType':_0x4a7bed[_0x1939a3(0x167)],'oldLineType':_0x12a18b,'rotation':_0x4a7bed[_0x1939a3(0x120)],'oldRelation':_0x377f00,'newRelation':_0x1d73f3});}[_0x298834(0x147)](_0x1f1b72,_0x5ded83,_0x1cb31c,_0x7261e7){const _0x2cbde6=_0x298834;let _0x3d4ce3=this[_0x2cbde6(0x18f)][_0x2cbde6(0x12d)](_0x344e73['IDrawingManagerService'])[_0x2cbde6(0x15d)]({'unitId':_0x5ded83,'subUnitId':_0x1cb31c,'drawingId':_0x7261e7});if(_0x3d4ce3!=null&&_0x3d4ce3[_0x2cbde6(0x156)]){var _0x4b6192,_0x37e247,_0x39872d,_0x52210e;_0x1f1b72['x']=(_0x4b6192=_0x3d4ce3['transform'][_0x2cbde6(0x197)])==null?0x0:_0x4b6192,_0x1f1b72['y']=(_0x37e247=_0x3d4ce3[_0x2cbde6(0x156)][_0x2cbde6(0x15f)])==null?0x0:_0x37e247,_0x1f1b72[_0x2cbde6(0x127)]=(_0x39872d=_0x3d4ce3[_0x2cbde6(0x156)][_0x2cbde6(0x127)])==null?_0x1f1b72[_0x2cbde6(0x127)]:_0x39872d,_0x1f1b72[_0x2cbde6(0x150)]=(_0x52210e=_0x3d4ce3[_0x2cbde6(0x156)][_0x2cbde6(0x150)])==null?_0x1f1b72[_0x2cbde6(0x150)]:_0x52210e;}let _0x2bb6a1=this[_0x2cbde6(0x18f)][_0x2cbde6(0x12d)](_0x1706a2[_0x2cbde6(0x14f)])[_0x2cbde6(0x119)](_0x5ded83,_0x1cb31c,_0x7261e7);if(_0x2bb6a1){_0x1f1b72['shapeType']=_0x2bb6a1[_0x2cbde6(0x10c)]();let _0x4503c1=_0x2bb6a1[_0x2cbde6(0x12f)]();_0x4503c1&&(_0x1f1b72['shapeData']=JSON[_0x2cbde6(0x135)](JSON[_0x2cbde6(0x15a)](_0x4503c1)));}}[_0x298834(0xf7)](_0x37386a,_0x3b1466,_0x39bd91,_0x504e71,_0x48dfa4,_0x370390,_0x4a2b90,_0x49033a,_0x40fe99){const _0x50843b=_0x298834;let _0x619f9b=null,_0x40bff1=null;return _0x48dfa4&&(_0x619f9b=_0x280f9e(_0x37386a,_0x3b1466,_0x48dfa4[_0x50843b(0x177)][_0x50843b(0x172)],_0x48dfa4[_0x50843b(0x175)],_0x4a2b90,_0x49033a)),_0x370390&&(_0x40bff1=_0x280f9e(_0x37386a,_0x3b1466,_0x370390[_0x50843b(0x177)]['drawId'],_0x370390[_0x50843b(0x175)],_0x4a2b90,_0x49033a)),_0x619f9b||(_0x619f9b=this[_0x50843b(0x115)](_0x37386a,_0x3b1466,_0x39bd91[_0x50843b(0x172)],!0x0,_0x40bff1,_0x40fe99==null?void 0x0:_0x40fe99[_0x50843b(0x138)],_0x4a2b90,_0x49033a)),_0x40bff1||(_0x40bff1=this[_0x50843b(0x115)](_0x37386a,_0x3b1466,_0x39bd91[_0x50843b(0x172)],!0x1,_0x619f9b,_0x40fe99==null?void 0x0:_0x40fe99['to'],_0x4a2b90,_0x49033a)),{'startInfo':_0x619f9b,'endInfo':_0x40bff1};}[_0x298834(0x115)](_0x2cbec0,_0x4b45af,_0x29140e,_0x203dd2,_0x55d338,_0x45b4a6,_0x37839f,_0x5c7798){const _0x28a6e1=_0x298834;if(_0x45b4a6){let _0x20310f=_0x280f9e(_0x2cbec0,_0x4b45af,_0x45b4a6['shapeId'],_0x45b4a6[_0x28a6e1(0x129)],_0x37839f,_0x5c7798);if(_0x20310f)return _0x20310f;}return _0x55d338?_0x4b6fa8(_0x2cbec0,_0x4b45af,_0x29140e,_0x203dd2,_0x55d338,_0x37839f,_0x5c7798):null;}};_0x1a5cd0[_0x298834(0x118)]['extend'](_0xccd761),_0x3f4ebe[_0x298834(0x18d)]=_0x54b05e,_0x3f4ebe[_0x298834(0x117)]=_0x45d2be;}));
|
|
1
|
+
function _0x1027(_0x2dc7f1,_0x4d8fa8){_0x2dc7f1=_0x2dc7f1-0xad;const _0x5b7141=_0x5b71();let _0x10270f=_0x5b7141[_0x2dc7f1];return _0x10270f;}(function(_0x4a3d9e,_0x367b18){const _0x56406f=_0x1027,_0x3b3f9f=_0x4a3d9e();while(!![]){try{const _0x2d1db8=-parseInt(_0x56406f(0xea))/0x1*(-parseInt(_0x56406f(0xe9))/0x2)+parseInt(_0x56406f(0xfb))/0x3+-parseInt(_0x56406f(0xb6))/0x4*(parseInt(_0x56406f(0xc3))/0x5)+-parseInt(_0x56406f(0x142))/0x6*(-parseInt(_0x56406f(0x132))/0x7)+parseInt(_0x56406f(0x113))/0x8*(-parseInt(_0x56406f(0xb8))/0x9)+parseInt(_0x56406f(0xfe))/0xa+-parseInt(_0x56406f(0x107))/0xb;if(_0x2d1db8===_0x367b18)break;else _0x3b3f9f['push'](_0x3b3f9f['shift']());}catch(_0x1b6665){_0x3b3f9f['push'](_0x3b3f9f['shift']());}}}(_0x5b71,0xd0da6),function(_0xda5adb,_0x5ef639){const _0x556793=_0x1027;typeof exports==_0x556793(0xef)&&typeof module<'u'?_0x5ef639(exports,require('@univerjs-pro/engine-shape'),require('@univerjs/core/facade'),require('@univerjs-pro/sheets-shape'),require('@univerjs/core'),require('@univerjs/drawing'),require('@univerjs/sheets'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets/facade')):typeof define==_0x556793(0xd4)&&define[_0x556793(0xc6)]?define(['exports',_0x556793(0xbb),_0x556793(0x11a),_0x556793(0xc2),'@univerjs/core',_0x556793(0x14e),_0x556793(0xc9),'@univerjs/sheets-drawing',_0x556793(0xd6)],_0x5ef639):(_0xda5adb=typeof globalThis<'u'?globalThis:_0xda5adb||self,_0x5ef639(_0xda5adb[_0x556793(0xd5)]={},_0xda5adb[_0x556793(0xb3)],_0xda5adb[_0x556793(0xbd)],_0xda5adb['UniverProSheetsShape'],_0xda5adb['UniverCore'],_0xda5adb[_0x556793(0x124)],_0xda5adb[_0x556793(0x145)],_0xda5adb['UniverSheetsDrawing'],_0xda5adb[_0x556793(0xb1)]));}(this,function(_0x5c5861,_0x54c147,_0xd9f9e0,_0x375338,_0x24ae8f,_0x440193,_0x2597b1,_0x57bb3a,_0xad8875){const _0x52ed0f=_0x1027;Object['defineProperty'](_0x5c5861,Symbol['toStringTag'],{'value':_0x52ed0f(0xdf)});var _0xf9d592=class extends _0xd9f9e0[_0x52ed0f(0xeb)]{get['ShapeTypeEnum'](){const _0x1312b7=_0x52ed0f;return _0x54c147[_0x1312b7(0x11c)];}get[_0x52ed0f(0xe2)](){const _0x474e54=_0x52ed0f;return _0x54c147[_0x474e54(0xe2)];}get['ShapeGradientTypeEnum'](){const _0x5eee5e=_0x52ed0f;return _0x54c147[_0x5eee5e(0x146)];}get['ShapeLineTypeEnum'](){const _0x2866d3=_0x52ed0f;return _0x54c147[_0x2866d3(0xf2)];}get[_0x52ed0f(0xf3)](){const _0x8690e6=_0x52ed0f;return _0x54c147[_0x8690e6(0xf3)];}get['ShapeLineCapEnum'](){return _0x54c147['ShapeLineCapEnum'];}get[_0x52ed0f(0x10b)](){const _0x533114=_0x52ed0f;return _0x54c147[_0x533114(0x10b)];}get[_0x52ed0f(0x136)](){const _0x57e546=_0x52ed0f;return _0x54c147[_0x57e546(0x136)];}get['ShapeArrowSizeEnum'](){return _0x54c147['ShapeArrowSizeEnum'];}};_0xd9f9e0[_0x52ed0f(0xeb)][_0x52ed0f(0x12d)](_0xf9d592);function _0x4e7bd6(_0x20f485){'@babel/helpers - typeof';const _0x2efa50=_0x52ed0f;return _0x4e7bd6=typeof Symbol==_0x2efa50(0xd4)&&typeof Symbol[_0x2efa50(0x143)]==_0x2efa50(0x134)?function(_0x3805bc){return typeof _0x3805bc;}:function(_0x429edb){const _0x336a81=_0x2efa50;return _0x429edb&&typeof Symbol==_0x336a81(0xd4)&&_0x429edb[_0x336a81(0x101)]===Symbol&&_0x429edb!==Symbol[_0x336a81(0x104)]?_0x336a81(0x134):typeof _0x429edb;},_0x4e7bd6(_0x20f485);}function _0x92ee77(_0x2d5e9b,_0x1b71d9){const _0x581213=_0x52ed0f;if(_0x4e7bd6(_0x2d5e9b)!=_0x581213(0xef)||!_0x2d5e9b)return _0x2d5e9b;var _0x4cd0fe=_0x2d5e9b[Symbol['toPrimitive']];if(_0x4cd0fe!==void 0x0){var _0x1e260b=_0x4cd0fe[_0x581213(0xda)](_0x2d5e9b,_0x1b71d9||_0x581213(0xf8));if(_0x4e7bd6(_0x1e260b)!=_0x581213(0xef))return _0x1e260b;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1b71d9==='string'?String:Number)(_0x2d5e9b);}function _0x301c6b(_0x4d4ad8){const _0x16a4a5=_0x52ed0f;var _0x33d870=_0x92ee77(_0x4d4ad8,_0x16a4a5(0x13f));return _0x4e7bd6(_0x33d870)==_0x16a4a5(0x134)?_0x33d870:_0x33d870+'';}function _0x494f4f(_0x162e6c,_0x995d13,_0x89383f){return(_0x995d13=_0x301c6b(_0x995d13))in _0x162e6c?Object['defineProperty'](_0x162e6c,_0x995d13,{'value':_0x89383f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x162e6c[_0x995d13]=_0x89383f,_0x162e6c;}var _0x559842=class{constructor(_0x574ef3,_0x12cfc0,_0x5c9f20,_0x5de6ef){const _0x3e1a76=_0x52ed0f;_0x494f4f(this,_0x3e1a76(0xc4),void 0x0),_0x494f4f(this,_0x3e1a76(0x120),void 0x0),_0x494f4f(this,_0x3e1a76(0x105),void 0x0),_0x494f4f(this,'x',0x0),_0x494f4f(this,'y',0x0),_0x494f4f(this,'width',_0x375338[_0x3e1a76(0x123)]),_0x494f4f(this,'height',_0x375338[_0x3e1a76(0x13e)]),_0x494f4f(this,_0x3e1a76(0xb2),void 0x0),_0x494f4f(this,_0x3e1a76(0x109),{}),_0x494f4f(this,_0x3e1a76(0x117),void 0x0),this['unitId']=_0x574ef3,this['subUnitId']=_0x12cfc0,this[_0x3e1a76(0x105)]=_0x5c9f20||(0x0,_0x24ae8f[_0x3e1a76(0x12a)])(),this[_0x3e1a76(0x117)]=_0x5de6ef;}['setPosition'](_0x503a45,_0x397def,_0x1be62a,_0x28b311){const _0x25b066=_0x52ed0f;let _0x217a1a=this['_injector'][_0x25b066(0xe0)](_0x2597b1[_0x25b066(0x10e)])[_0x25b066(0xcd)](this[_0x25b066(0xc4)],this[_0x25b066(0x120)]);if(!_0x217a1a)throw Error(_0x25b066(0x139)+this[_0x25b066(0xc4)]+_0x25b066(0x14d)+this[_0x25b066(0x120)]+_0x25b066(0x125));let {transform:_0x415aa6}=(0x0,_0x2597b1[_0x25b066(0x12f)])(this[_0x25b066(0xc4)],this[_0x25b066(0x120)],{'row':_0x503a45,'column':_0x397def,'rowOffset':_0x1be62a,'columnOffset':_0x28b311},0x1,0x1,_0x217a1a);return this['x']=_0x415aa6['left'],this['y']=_0x415aa6['top'],this;}[_0x52ed0f(0x103)](_0x5ea00b,_0x34e72f){return this['x']=_0x5ea00b,this['y']=_0x34e72f,this;}[_0x52ed0f(0xfa)](_0x32e078){const _0x564217=_0x52ed0f;return this[_0x564217(0xb2)]=_0x32e078,this;}[_0x52ed0f(0x128)](_0x2c4969){const _0xa46bdd=_0x52ed0f;return _0x2c4969[_0xa46bdd(0xb2)]&&this[_0xa46bdd(0xfa)](_0x2c4969['shapeType']),this[_0xa46bdd(0x109)]={..._0x2c4969},this;}[_0x52ed0f(0xdb)](_0x5e7449,_0x33fa99){const _0x3de7d1=_0x52ed0f;return this[_0x3de7d1(0x109)]['fill']||(this[_0x3de7d1(0x109)][_0x3de7d1(0x14b)]={}),this[_0x3de7d1(0x109)][_0x3de7d1(0x14b)][_0x3de7d1(0xba)]=_0x54c147[_0x3de7d1(0xe2)][_0x3de7d1(0xdc)],_0x5e7449!==void 0x0&&(this[_0x3de7d1(0x109)][_0x3de7d1(0x14b)][_0x3de7d1(0xfd)]=_0x5e7449),_0x33fa99!==void 0x0&&(this[_0x3de7d1(0x109)]['fill'][_0x3de7d1(0x141)]=_0x33fa99),this;}['setShapeGradientFill'](_0x1103c0,_0x11b081,_0x396e50){const _0x13676b=_0x52ed0f;if(_0x11b081===void 0x0||_0x11b081[_0x13676b(0x110)]===0x0)throw Error(_0x13676b(0xd3));return this['shapeData'][_0x13676b(0x14b)]||(this[_0x13676b(0x109)][_0x13676b(0x14b)]={}),this['shapeData']['fill']['gradientStops']=_0x11b081,this[_0x13676b(0x109)][_0x13676b(0x14b)][_0x13676b(0xba)]=_0x54c147[_0x13676b(0xe2)][_0x13676b(0xfc)],this['shapeData'][_0x13676b(0x14b)][_0x13676b(0x116)]=_0x1103c0,_0x396e50!==void 0x0&&(this[_0x13676b(0x109)][_0x13676b(0x14b)]['gradientAngle']=_0x396e50),this;}['setNoneFill'](){const _0x4ad0c0=_0x52ed0f;return this[_0x4ad0c0(0x109)][_0x4ad0c0(0x14b)]={'fillType':_0x54c147[_0x4ad0c0(0xe2)][_0x4ad0c0(0x133)]},this;}[_0x52ed0f(0xde)](_0x5c1983){const _0xb3bba4=_0x52ed0f;return this[_0xb3bba4(0x109)][_0xb3bba4(0xb0)]||(this[_0xb3bba4(0x109)][_0xb3bba4(0xb0)]={}),this[_0xb3bba4(0x109)][_0xb3bba4(0xb0)][_0xb3bba4(0xfd)]=_0x5c1983,this;}['setStrokeWidth'](_0x55e0b6){const _0x45de39=_0x52ed0f;return this[_0x45de39(0x109)][_0x45de39(0xb0)]||(this[_0x45de39(0x109)][_0x45de39(0xb0)]={}),this[_0x45de39(0x109)][_0x45de39(0xb0)][_0x45de39(0x10f)]=_0x55e0b6,this;}[_0x52ed0f(0xc7)](_0x226d25){const _0x2af9c4=_0x52ed0f;return this[_0x2af9c4(0x109)][_0x2af9c4(0xb0)]||(this[_0x2af9c4(0x109)]['stroke']={}),this[_0x2af9c4(0x109)]['stroke'][_0x2af9c4(0x114)]=_0x226d25,this;}[_0x52ed0f(0x148)](_0x186e19){const _0x17b1a9=_0x52ed0f;return this[_0x17b1a9(0x109)][_0x17b1a9(0xb0)]||(this[_0x17b1a9(0x109)][_0x17b1a9(0xb0)]={}),this[_0x17b1a9(0x109)][_0x17b1a9(0xb0)]['lineJoinType']=_0x186e19,this;}['setStrokeLineCapType'](_0x183da5){const _0x43b2fc=_0x52ed0f;return this[_0x43b2fc(0x109)][_0x43b2fc(0xb0)]||(this[_0x43b2fc(0x109)][_0x43b2fc(0xb0)]={}),this[_0x43b2fc(0x109)][_0x43b2fc(0xb0)][_0x43b2fc(0x11e)]=_0x183da5,this;}['setStrokeOpacity'](_0xd43cc3){const _0x47c682=_0x52ed0f;return this[_0x47c682(0x109)][_0x47c682(0xb0)]||(this['shapeData']['stroke']={}),this[_0x47c682(0x109)]['stroke']['opacity']=_0xd43cc3,this;}[_0x52ed0f(0xd9)](_0x41bfd8){const _0x209cd6=_0x52ed0f;return this[_0x209cd6(0x109)]['stroke']||(this[_0x209cd6(0x109)][_0x209cd6(0xb0)]={}),this['shapeData'][_0x209cd6(0xb0)]['lineStrokeType']=_0x41bfd8,this;}[_0x52ed0f(0x12e)](_0x35e3ba){return this['width']=_0x35e3ba,this;}[_0x52ed0f(0xe6)](_0x4f78d2){const _0x55b985=_0x52ed0f;return this[_0x55b985(0xe4)]=_0x4f78d2,this;}[_0x52ed0f(0x14f)](){const _0x46f6e3=_0x52ed0f;let _0x3296a5=this[_0x46f6e3(0x117)]['get'](_0x375338[_0x46f6e3(0x135)])[_0x46f6e3(0x10a)](this['unitId'],this[_0x46f6e3(0x120)],this[_0x46f6e3(0x105)]);return _0x3296a5?(0x0,_0x54c147['isConnectorShape'])(_0x3296a5[_0x46f6e3(0x100)]()):this[_0x46f6e3(0xb2)]?(0x0,_0x54c147[_0x46f6e3(0x150)])(this[_0x46f6e3(0xb2)]):!0x1;}[_0x52ed0f(0xdd)](){const _0x4fd65f=_0x52ed0f;let _0x409c89=this[_0x4fd65f(0x117)][_0x4fd65f(0xe0)](_0x375338[_0x4fd65f(0x135)])[_0x4fd65f(0x10a)](this[_0x4fd65f(0xc4)],this[_0x4fd65f(0x120)],this[_0x4fd65f(0x105)]);if(!_0x409c89)return[];let _0x426675=this[_0x4fd65f(0x117)]['get'](_0x440193['IDrawingManagerService'])[_0x4fd65f(0xf7)]({'unitId':this[_0x4fd65f(0xc4)],'subUnitId':this[_0x4fd65f(0x120)],'drawingId':this[_0x4fd65f(0x105)]});if(!(_0x426675!=null&&_0x426675[_0x4fd65f(0xbf)]))return[];let {width:_0x487bcf=0x0,height:_0x4cb53b=0x0}=_0x426675[_0x4fd65f(0xbf)];return _0x409c89[_0x4fd65f(0xff)]({'width':_0x487bcf,'height':_0x4cb53b}),_0x409c89[_0x4fd65f(0xb9)]();}['getAdjustPoints'](){const _0x50a0a9=_0x52ed0f;let _0x4101c4=this[_0x50a0a9(0x117)][_0x50a0a9(0xe0)](_0x375338[_0x50a0a9(0x135)])['getShapeModel'](this['unitId'],this['subUnitId'],this['drawId']);if(!_0x4101c4)return[];let _0x4dce4=this[_0x50a0a9(0x117)][_0x50a0a9(0xe0)](_0x440193[_0x50a0a9(0xbe)])['getDrawingByParam']({'unitId':this[_0x50a0a9(0xc4)],'subUnitId':this['subUnitId'],'drawingId':this[_0x50a0a9(0x105)]});if(!(_0x4dce4!=null&&_0x4dce4[_0x50a0a9(0xbf)]))return[];let {width:_0x2a9687=0x0,height:_0x9eba5c=0x0}=_0x4dce4['transform'];return _0x4101c4[_0x50a0a9(0xff)]({'width':_0x2a9687,'height':_0x9eba5c}),_0x4101c4[_0x50a0a9(0x119)]();}[_0x52ed0f(0xb7)](){const _0x5a3740=_0x52ed0f;let _0x27cab5=this[_0x5a3740(0x117)][_0x5a3740(0xe0)](_0x375338['SheetsShapeService'])[_0x5a3740(0x10a)](this[_0x5a3740(0xc4)],this['subUnitId'],this[_0x5a3740(0x105)]);if(!_0x27cab5||!(0x0,_0x54c147[_0x5a3740(0x150)])(_0x27cab5[_0x5a3740(0x100)]()))return[];let _0x4c60cf=this[_0x5a3740(0x117)][_0x5a3740(0xe0)](_0x440193[_0x5a3740(0xbe)])[_0x5a3740(0xf7)]({'unitId':this[_0x5a3740(0xc4)],'subUnitId':this[_0x5a3740(0x120)],'drawingId':this['drawId']});if(!(_0x4c60cf!=null&&_0x4c60cf['transform']))return[];let {width:_0xe93364=0x0,height:_0xf7d10b=0x0}=_0x4c60cf['transform'];return _0x27cab5['updateContext']({'width':_0xe93364,'height':_0xf7d10b}),_0x27cab5['getConnectorLinePoints']();}[_0x52ed0f(0x140)](){const _0x12c870=_0x52ed0f;var _0x2459a4;let _0x3632b9=this['_injector']['get'](_0x375338['SheetsShapeService'])[_0x12c870(0x10a)](this[_0x12c870(0xc4)],this[_0x12c870(0x120)],this[_0x12c870(0x105)]);return _0x3632b9?(_0x2459a4=_0x3632b9[_0x12c870(0x140)]())==null?null:_0x2459a4:null;}[_0x52ed0f(0x115)](){const _0x3d5094=_0x52ed0f;var _0x13085b;let _0x530203=this[_0x3d5094(0x117)][_0x3d5094(0xe0)](_0x375338[_0x3d5094(0x135)])[_0x3d5094(0x10a)](this[_0x3d5094(0xc4)],this['subUnitId'],this[_0x3d5094(0x105)]);return _0x530203?(_0x13085b=_0x530203[_0x3d5094(0x115)]())==null?null:_0x13085b:null;}['build'](){const _0x104fba=_0x52ed0f;var _0x3e79d9,_0x24ae80;if(!this[_0x104fba(0xb2)])throw Error(_0x104fba(0x12c));if(this['x']===0x0||this['y']===0x0){let _0x33bf34=this['_injector'][_0x104fba(0xe0)](_0x2597b1[_0x104fba(0x10e)])[_0x104fba(0xcd)](this['unitId'],this[_0x104fba(0x120)]);if(!_0x33bf34)throw Error(_0x104fba(0x139)+this[_0x104fba(0xc4)]+'\x20and\x20subUnitId\x20'+this['subUnitId']+'\x20not\x20found');let {transform:_0x37c535}=(0x0,_0x2597b1['convertPositionCellToSheetOverGrid'])(this['unitId'],this[_0x104fba(0x120)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x33bf34);this['x']=this['x']>0x0?this['x']:_0x37c535[_0x104fba(0xd8)],this['y']=this['y']>0x0?this['y']:_0x37c535['top'];}return this[_0x104fba(0x10f)]=(_0x3e79d9=this[_0x104fba(0x10f)])==null?_0x375338[_0x104fba(0x123)]:_0x3e79d9,this[_0x104fba(0xe4)]=(_0x24ae80=this['height'])==null?_0x375338['DEFAULT_SHAPE_HEIGHT']:_0x24ae80,{'unitId':this[_0x104fba(0xc4)],'subUnitId':this[_0x104fba(0x120)],'shapeId':this[_0x104fba(0x105)],'shapeType':this[_0x104fba(0xb2)],'shapeData':Object[_0x104fba(0xf5)](this[_0x104fba(0x109)])[_0x104fba(0x110)]>0x0?this['shapeData']:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x104fba(0x10f)],'height':this[_0x104fba(0xe4)]};}[_0x52ed0f(0x121)](){const _0x175e0a=_0x52ed0f;return this[_0x175e0a(0x105)];}[_0x52ed0f(0x100)](){return this['shapeType'];}[_0x52ed0f(0xe3)](){const _0x60a2e7=_0x52ed0f;return this[_0x60a2e7(0x109)];}[_0x52ed0f(0xad)](){return{'x':this['x'],'y':this['y']};}['getSize'](){const _0x2bfd25=_0x52ed0f;return{'width':this['width'],'height':this[_0x2bfd25(0xe4)]};}},_0x23d7b7=class extends _0x559842{constructor(_0x36db9b,_0x52abb0,_0x3ee330,_0x3563f5){const _0x32e014=_0x52ed0f;super(_0x36db9b,_0x52abb0,_0x3ee330,_0x3563f5),_0x494f4f(this,_0x32e014(0x109),{});}[_0x52ed0f(0xfa)](_0x62ca8f){const _0x22c07f=_0x52ed0f;if(!(0x0,_0x54c147[_0x22c07f(0x150)])(_0x62ca8f))throw Error(_0x22c07f(0x144)+_0x62ca8f+',\x20but\x20expected\x20a\x20connector\x20shape\x20type.');return super[_0x22c07f(0xfa)](_0x62ca8f),this;}[_0x52ed0f(0x126)](_0x4082cd){const _0x336997=_0x52ed0f;var _0xb31865,_0x34d86e;return(_0xb31865=this[_0x336997(0x109)])!=null&&_0xb31865['ln']||(this[_0x336997(0x109)]['ln']={}),!((_0x34d86e=this[_0x336997(0x109)])==null||(_0x34d86e=_0x34d86e['ln'])==null)&&_0x34d86e['startArrow']||(this[_0x336997(0x109)]['ln']['startArrow']={}),this[_0x336997(0x109)]['ln'][_0x336997(0x14a)][_0x336997(0x149)]=_0x4082cd,this;}[_0x52ed0f(0x129)](_0x25b3bc){const _0x2dc309=_0x52ed0f;var _0x35327d,_0x36d1f4;return(_0x35327d=this[_0x2dc309(0x109)])!=null&&_0x35327d['ln']||(this[_0x2dc309(0x109)]['ln']={}),!((_0x36d1f4=this[_0x2dc309(0x109)])==null||(_0x36d1f4=_0x36d1f4['ln'])==null)&&_0x36d1f4['endArrow']||(this[_0x2dc309(0x109)]['ln'][_0x2dc309(0xc1)]={}),this[_0x2dc309(0x109)]['ln'][_0x2dc309(0xc1)]['type']=_0x25b3bc,this;}['setStartArrowSize'](_0x4771fe){const _0x1f25bf=_0x52ed0f;var _0x419d69,_0x269af4;return(_0x419d69=this[_0x1f25bf(0x109)])!=null&&_0x419d69['ln']||(this[_0x1f25bf(0x109)]['ln']={}),!((_0x269af4=this[_0x1f25bf(0x109)])==null||(_0x269af4=_0x269af4['ln'])==null)&&_0x269af4[_0x1f25bf(0x14a)]||(this[_0x1f25bf(0x109)]['ln'][_0x1f25bf(0x14a)]={}),this['shapeData']['ln'][_0x1f25bf(0x14a)]['size']=_0x4771fe,this;}['setEndArrowSize'](_0xdab2d5){const _0xc6d037=_0x52ed0f;var _0x2de8aa,_0x5dd47f;return(_0x2de8aa=this[_0xc6d037(0x109)])!=null&&_0x2de8aa['ln']||(this[_0xc6d037(0x109)]['ln']={}),!((_0x5dd47f=this[_0xc6d037(0x109)])==null||(_0x5dd47f=_0x5dd47f['ln'])==null)&&_0x5dd47f[_0xc6d037(0xc1)]||(this[_0xc6d037(0x109)]['ln'][_0xc6d037(0xc1)]={}),this[_0xc6d037(0x109)]['ln'][_0xc6d037(0xc1)][_0xc6d037(0xe1)]=_0xdab2d5,this;}[_0x52ed0f(0x108)](){return super['build']();}['getEndConnectInfo'](){const _0x3631a1=_0x52ed0f;var _0x2c5dcd;return((_0x2c5dcd=this[_0x3631a1(0x109)])==null||(_0x2c5dcd=_0x2c5dcd['relation'])==null?void 0x0:_0x2c5dcd['to'])||null;}['getStartConnectInfo'](){const _0x2603ba=_0x52ed0f;var _0x5f061e;return((_0x5f061e=this[_0x2603ba(0x109)])==null||(_0x5f061e=_0x5f061e[_0x2603ba(0xf0)])==null?void 0x0:_0x5f061e['from'])||null;}};function _0x2e3edc(_0x481d13,_0x35e733,_0x45d2f4,_0x34b8cd,_0x454d5d,_0x4a4982){const _0x6174a4=_0x52ed0f;let _0x375340=_0x454d5d[_0x6174a4(0x10a)](_0x481d13,_0x35e733,_0x45d2f4);if(!_0x375340)return null;let _0x4ca4cc=_0x4a4982[_0x6174a4(0xf7)]({'unitId':_0x481d13,'subUnitId':_0x35e733,'drawingId':_0x45d2f4});if(!(_0x4ca4cc!=null&&_0x4ca4cc['transform']))return null;let {left:_0x3bdece=0x0,top:_0x352a9e=0x0,width:_0x2c85ae=0x0,height:_0x598d19=0x0,flipX:_0x165def=!0x1,flipY:_0x31fec7=!0x1,angle:_0xcd3265}=_0x4ca4cc[_0x6174a4(0xbf)];_0x375340[_0x6174a4(0xff)]({'width':_0x2c85ae,'height':_0x598d19});let _0x18f319=_0x375340[_0x6174a4(0xb9)]()['find'](_0x5500fa=>_0x5500fa[_0x6174a4(0xee)]===_0x34b8cd);if(!_0x18f319)return null;let _0x420240=_0x165def?_0x2c85ae-_0x18f319['x']:_0x18f319['x'],_0x3d914d=_0x31fec7?_0x598d19-_0x18f319['y']:_0x18f319['y'];if(_0xcd3265&&_0xcd3265!==0x0){let _0x12f9f3=_0xcd3265*Math['PI']/0xb4,_0x377f67=Math[_0x6174a4(0x147)](_0x12f9f3),_0x300cec=Math[_0x6174a4(0x102)](_0x12f9f3),_0x4a7b9d=_0x2c85ae/0x2,_0x44b035=_0x598d19/0x2,_0x24b5f7=_0x420240-_0x4a7b9d,_0xd4a88f=_0x3d914d-_0x44b035;_0x420240=_0x4a7b9d+_0x24b5f7*_0x377f67-_0xd4a88f*_0x300cec,_0x3d914d=_0x44b035+_0x24b5f7*_0x300cec+_0xd4a88f*_0x377f67;}_0x420240+=_0x3bdece,_0x3d914d+=_0x352a9e;let _0x16d670=_0x18f319[_0x6174a4(0xd7)]/0xea60;_0x165def&&(_0x16d670=0xb4-_0x16d670),_0x31fec7&&(_0x16d670=-_0x16d670),_0x16d670+=_0xcd3265||0x0,_0x16d670=(_0x16d670%0x168+0x168)%0x168;let _0x2fefd9=(0x0,_0x54c147[_0x6174a4(0x137)])({'left':_0x3bdece,'top':_0x352a9e,'width':_0x2c85ae,'height':_0x598d19},_0xcd3265||0x0);return{'point':{'x':_0x420240,'y':_0x3d914d},'angle':_0x16d670,'bounds':_0x2fefd9};}function _0x3931d8(_0x2ac480,_0x299931){const _0x27f7ac=_0x52ed0f;let _0x1ff6cb=_0x299931['x']-_0x2ac480['x'],_0x5232e9=_0x299931['y']-_0x2ac480['y'];return Math[_0x27f7ac(0xf4)](_0x1ff6cb)>=Math[_0x27f7ac(0xf4)](_0x5232e9)?_0x1ff6cb>=0x0?0xb4:0x0:_0x5232e9>=0x0?0x10e:0x5a;}function _0x3f3edb(_0x26bd28,_0xc16a7e,_0x5ebd31,_0x49920b,_0x262df4,_0x4eaaa7,_0x4d0c20){const _0x4cff53=_0x52ed0f;let _0x13185b=_0x4eaaa7[_0x4cff53(0x10a)](_0x26bd28,_0xc16a7e,_0x5ebd31);if(!_0x13185b)return null;let _0xfcf831=_0x4d0c20[_0x4cff53(0xf7)]({'unitId':_0x26bd28,'subUnitId':_0xc16a7e,'drawingId':_0x5ebd31});if(!(_0xfcf831!=null&&_0xfcf831['transform']))return null;let {left:_0x5238ea=0x0,top:_0x48e460=0x0,width:_0x422e4f=0x0,height:_0x5517c4=0x0,flipX:_0x562383=!0x1,flipY:_0xe61155=!0x1}=_0xfcf831[_0x4cff53(0xbf)];_0x13185b[_0x4cff53(0xff)]({'width':_0x422e4f,'height':_0x5517c4});let _0x351983=_0x13185b[_0x4cff53(0xb7)]();if(_0x351983['length']<0x2)return null;let _0x55394a=_0x49920b?_0x351983[0x0]:_0x351983[_0x351983['length']-0x1],_0x268014=new _0x54c147[(_0x4cff53(0x13c))]({'left':_0x5238ea,'top':_0x48e460,'width':_0x422e4f,'height':_0x5517c4,'flipX':_0x562383,'flipY':_0xe61155})[_0x4cff53(0xe5)](_0x55394a);return{'point':_0x268014,'angle':_0x3931d8(_0x262df4[_0x4cff53(0x130)],_0x268014),'bounds':{'left':_0x268014['x'],'top':_0x268014['y'],'width':0x0,'height':0x0}};}var _0x335196=class extends _0xad8875['FWorksheet']{async[_0x52ed0f(0x127)](_0x115218){const _0x59a8a6=_0x52ed0f;let {unitId:_0x2420ab,subUnitId:_0x551390,shapeId:_0x2d335f,shapeType:_0x5da283,shapeData:_0x3c20f8,x:_0x20456e,y:_0x20d2fc,width:_0x123d57,height:_0x25c62b}=_0x115218;return this[_0x59a8a6(0x12b)][_0x59a8a6(0x122)](_0x375338[_0x59a8a6(0x13d)]['id'],{'unitId':_0x2420ab,'subUnitId':_0x551390,'shapeId':_0x2d335f,'shapeType':_0x5da283,'shapeData':_0x3c20f8,'position':{'x':_0x20456e,'y':_0x20d2fc},'width':_0x123d57,'height':_0x25c62b});}async[_0x52ed0f(0x10c)](_0x291f71){const _0x58c6c0=_0x52ed0f;let {unitId:_0x3c0f01,subUnitId:_0xc81c8f,shapeId:_0x161511,shapeType:_0x1eeb53,shapeData:_0xef1d25,x:_0x5bc9d7,y:_0xfee400,width:_0x23d61f,height:_0xc71978}=_0x291f71;return this[_0x58c6c0(0x12b)][_0x58c6c0(0x122)](_0x375338[_0x58c6c0(0xf1)]['id'],{'unitId':_0x3c0f01,'subUnitId':_0xc81c8f,'shapeId':_0x161511,'shapeType':_0x1eeb53,'shapeData':_0xef1d25,'position':{'x':_0x5bc9d7,'y':_0xfee400},'width':_0x23d61f,'height':_0xc71978});}[_0x52ed0f(0xc0)](_0x58a2f6){const _0x2f0f22=_0x52ed0f;let _0x2da051=this[_0x2f0f22(0xcc)]()[_0x2f0f22(0x111)](),_0x15dd04=this[_0x2f0f22(0xd0)]();if(_0x58a2f6){let _0x2849b8=new _0x559842(_0x2da051,_0x15dd04,_0x58a2f6[_0x2f0f22(0x105)],this['_injector']);return this['_preloadShapeProperties'](_0x2849b8,_0x2da051,_0x15dd04,_0x58a2f6[_0x2f0f22(0x105)]),_0x2849b8;}return new _0x559842(_0x2da051,_0x15dd04,(0x0,_0x24ae8f[_0x2f0f22(0x12a)])(),this[_0x2f0f22(0x117)]);}['newConnector'](_0x4aed42){const _0x677d8e=_0x52ed0f;let _0x1c9bb4=this[_0x677d8e(0xcc)]()['getUnitId'](),_0xbffc59=this[_0x677d8e(0xd0)]();if(_0x4aed42){let _0x246420=new _0x23d7b7(_0x1c9bb4,_0xbffc59,_0x4aed42[_0x677d8e(0x105)],this[_0x677d8e(0x117)]);return this[_0x677d8e(0xcb)](_0x246420,_0x1c9bb4,_0xbffc59,_0x4aed42['drawId']),_0x246420;}return new _0x23d7b7(_0x1c9bb4,_0xbffc59,(0x0,_0x24ae8f[_0x677d8e(0x12a)])(),this['_injector']);}[_0x52ed0f(0xf9)](){const _0x3cdb14=_0x52ed0f;let _0x1bd570=this[_0x3cdb14(0x117)]['get'](_0x57bb3a[_0x3cdb14(0xe7)]),_0x4e5d91=this[_0x3cdb14(0xcc)]()[_0x3cdb14(0x111)](),_0xa12fcc=this[_0x3cdb14(0xd0)](),_0x109f5a=_0x1bd570[_0x3cdb14(0x14c)](_0x4e5d91,_0xa12fcc);if(!_0x109f5a)return[];let _0x4d3cb0=[];for(let [_0x148255,_0x4a9e0e]of Object[_0x3cdb14(0xca)](_0x109f5a))if(_0x4a9e0e&&_0x4a9e0e[_0x3cdb14(0xd2)]===_0x24ae8f['DrawingTypeEnum'][_0x3cdb14(0xce)]){let _0x3289de=new _0x559842(_0x4e5d91,_0xa12fcc,_0x148255,this[_0x3cdb14(0x117)]);this[_0x3cdb14(0xcb)](_0x3289de,_0x4e5d91,_0xa12fcc,_0x148255),_0x4d3cb0[_0x3cdb14(0x118)](_0x3289de);}return _0x4d3cb0;}[_0x52ed0f(0xb4)](_0x3f2fcb){const _0x32dc22=_0x52ed0f;let {unitId:_0x4c789b,subUnitId:_0xe511ca,drawId:_0x12d8ce}=_0x3f2fcb;return this['_commandService'][_0x32dc22(0x122)](_0x57bb3a[_0x32dc22(0xc5)]['id'],{'unitId':_0x4c789b,'drawings':[{'unitId':_0x4c789b,'subUnitId':_0xe511ca,'drawingId':_0x12d8ce,'drawingType':_0x24ae8f[_0x32dc22(0x11b)][_0x32dc22(0xce)]}]});}async[_0x52ed0f(0xcf)](_0x508c82){const _0x4bd382=_0x52ed0f;let {connector:_0x405ab2,startTarget:_0x37e859,endTarget:_0x2b6e30}=_0x508c82;if(!_0x37e859&&!_0x2b6e30)return!0x1;let _0x2128a9=this['getWorkbook']()[_0x4bd382(0x111)](),_0x274061=this[_0x4bd382(0xd0)](),_0x56e25f=this[_0x4bd382(0x117)][_0x4bd382(0xe0)](_0x375338[_0x4bd382(0x135)]),_0x1e22d6=this[_0x4bd382(0x117)][_0x4bd382(0xe0)](_0x440193['IDrawingManagerService']),_0x592233=_0x56e25f['getShapeModel'](_0x2128a9,_0x274061,_0x405ab2[_0x4bd382(0x105)]);if(!_0x592233)return!0x1;let _0x27a902=_0x592233[_0x4bd382(0x100)](),_0x347e48=_0x592233[_0x4bd382(0x11d)](),_0x473048={};for(let _0x1eb9eb of _0x592233[_0x4bd382(0x13a)]()){let _0x4ec336=_0x592233[_0x4bd382(0xae)](_0x1eb9eb);_0x4ec336!==void 0x0&&(_0x473048[_0x1eb9eb]=_0x4ec336);}let {startInfo:_0x1e3ee2,endInfo:_0x54dd82}=this[_0x4bd382(0x151)](_0x2128a9,_0x274061,_0x405ab2,_0x592233,_0x37e859,_0x2b6e30,_0x56e25f,_0x1e22d6,_0x347e48);if(!_0x1e3ee2||!_0x54dd82)return!0x1;let _0x204f6e=(0x0,_0x54c147[_0x4bd382(0x138)])((0x0,_0x54c147[_0x4bd382(0x131)])(_0x1e3ee2,_0x54dd82,_0x27a902),_0x27a902),_0x375197={};return _0x37e859?_0x375197['from']={'shapeId':_0x37e859[_0x4bd382(0xf6)]['drawId'],'cxnIndex':_0x37e859[_0x4bd382(0x112)]}:_0x347e48!=null&&_0x347e48[_0x4bd382(0xec)]&&(_0x375197[_0x4bd382(0xec)]=_0x347e48['from']),_0x2b6e30?_0x375197['to']={'shapeId':_0x2b6e30[_0x4bd382(0xf6)]['drawId'],'cxnIndex':_0x2b6e30['connectionSiteIndex']}:_0x347e48!=null&&_0x347e48['to']&&(_0x375197['to']=_0x347e48['to']),this[_0x4bd382(0x12b)][_0x4bd382(0x122)](_0x375338[_0x4bd382(0x10d)]['id'],{'unitId':_0x2128a9,'subUnitId':_0x274061,'connectorShapeId':_0x405ab2[_0x4bd382(0x105)],'width':_0x204f6e[_0x4bd382(0xe8)]['width'],'height':_0x204f6e['worldRect'][_0x4bd382(0xe4)],'left':_0x204f6e[_0x4bd382(0xe8)][_0x4bd382(0xd8)],'top':_0x204f6e[_0x4bd382(0xe8)]['top'],'flipX':_0x204f6e[_0x4bd382(0xe8)][_0x4bd382(0xd1)]||!0x1,'flipY':_0x204f6e[_0x4bd382(0xe8)][_0x4bd382(0xed)]||!0x1,'oldAdjustValues':_0x473048,'newAdjustValues':_0x204f6e['adjustValues'],'newLineType':_0x204f6e[_0x4bd382(0xbc)],'oldLineType':_0x27a902,'rotation':_0x204f6e['rotation'],'oldRelation':_0x347e48,'newRelation':_0x375197});}[_0x52ed0f(0xcb)](_0x33cfce,_0x1fadf3,_0x4dbac9,_0x15aef0){const _0x5e6c34=_0x52ed0f;let _0x51eacc=this[_0x5e6c34(0x117)][_0x5e6c34(0xe0)](_0x440193[_0x5e6c34(0xbe)])[_0x5e6c34(0xf7)]({'unitId':_0x1fadf3,'subUnitId':_0x4dbac9,'drawingId':_0x15aef0});if(_0x51eacc!=null&&_0x51eacc[_0x5e6c34(0xbf)]){var _0x41119c,_0x495c5e,_0x1edac5,_0x4a6f71;_0x33cfce['x']=(_0x41119c=_0x51eacc['transform'][_0x5e6c34(0xd8)])==null?0x0:_0x41119c,_0x33cfce['y']=(_0x495c5e=_0x51eacc[_0x5e6c34(0xbf)][_0x5e6c34(0x13b)])==null?0x0:_0x495c5e,_0x33cfce['width']=(_0x1edac5=_0x51eacc[_0x5e6c34(0xbf)][_0x5e6c34(0x10f)])==null?_0x33cfce[_0x5e6c34(0x10f)]:_0x1edac5,_0x33cfce[_0x5e6c34(0xe4)]=(_0x4a6f71=_0x51eacc[_0x5e6c34(0xbf)][_0x5e6c34(0xe4)])==null?_0x33cfce[_0x5e6c34(0xe4)]:_0x4a6f71;}let _0x5f18a9=this['_injector'][_0x5e6c34(0xe0)](_0x375338[_0x5e6c34(0x135)])[_0x5e6c34(0x10a)](_0x1fadf3,_0x4dbac9,_0x15aef0);if(_0x5f18a9){_0x33cfce[_0x5e6c34(0xb2)]=_0x5f18a9[_0x5e6c34(0x100)]();let _0x2df62f=_0x5f18a9[_0x5e6c34(0xe3)]();_0x2df62f&&(_0x33cfce[_0x5e6c34(0x109)]=JSON[_0x5e6c34(0xc8)](JSON[_0x5e6c34(0x106)](_0x2df62f)));}}[_0x52ed0f(0x151)](_0x42ae80,_0x3dbf54,_0x411234,_0x2f4411,_0x18b954,_0x2438db,_0x3c282f,_0x1912c0,_0x5f2cf0){const _0x2cdeaa=_0x52ed0f;let _0x12faa6=null,_0x34261f=null;return _0x18b954&&(_0x12faa6=_0x2e3edc(_0x42ae80,_0x3dbf54,_0x18b954[_0x2cdeaa(0xf6)][_0x2cdeaa(0x105)],_0x18b954[_0x2cdeaa(0x112)],_0x3c282f,_0x1912c0)),_0x2438db&&(_0x34261f=_0x2e3edc(_0x42ae80,_0x3dbf54,_0x2438db['shape'][_0x2cdeaa(0x105)],_0x2438db[_0x2cdeaa(0x112)],_0x3c282f,_0x1912c0)),_0x12faa6||(_0x12faa6=this[_0x2cdeaa(0xb5)](_0x42ae80,_0x3dbf54,_0x411234[_0x2cdeaa(0x105)],!0x0,_0x34261f,_0x5f2cf0==null?void 0x0:_0x5f2cf0['from'],_0x3c282f,_0x1912c0)),_0x34261f||(_0x34261f=this[_0x2cdeaa(0xb5)](_0x42ae80,_0x3dbf54,_0x411234[_0x2cdeaa(0x105)],!0x1,_0x12faa6,_0x5f2cf0==null?void 0x0:_0x5f2cf0['to'],_0x3c282f,_0x1912c0)),{'startInfo':_0x12faa6,'endInfo':_0x34261f};}[_0x52ed0f(0xb5)](_0x25501c,_0x3b57b0,_0x5e6a88,_0x1d965f,_0x42824f,_0x242f37,_0x474540,_0x2d3e0f){const _0xe093ce=_0x52ed0f;if(_0x242f37){let _0xdcf728=_0x2e3edc(_0x25501c,_0x3b57b0,_0x242f37['shapeId'],_0x242f37[_0xe093ce(0x11f)],_0x474540,_0x2d3e0f);if(_0xdcf728)return _0xdcf728;}return _0x42824f?_0x3f3edb(_0x25501c,_0x3b57b0,_0x5e6a88,_0x1d965f,_0x42824f,_0x474540,_0x2d3e0f):null;}};_0xad8875[_0x52ed0f(0xaf)][_0x52ed0f(0x12d)](_0x335196),_0x5c5861['FConnectorShape']=_0x23d7b7,_0x5c5861['FShape']=_0x559842;}));function _0x5b71(){const _0x258fcc=['getEndConnectInfo','gradientType','_injector','push','getDrawingPoints','@univerjs/core/facade','DrawingTypeEnum','ShapeTypeEnum','getShapeRelation','capType','cxnIndex','subUnitId','getShapeId','executeCommand','DEFAULT_SHAPE_WIDTH','UniverDrawing','\x20not\x20found','setStartArrowType','insertShape','setShapeData','setEndArrowType','generateRandomId','_commandService','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','extend','setWidth','convertPositionCellToSheetOverGrid','point','routeConnectorLineShape','3071775sNkoIZ','NoFill','symbol','SheetsShapeService','ShapeArrowTypeEnum','getBasicShapeRotateBound','computeConnectorRouteLayout','Skeleton\x20for\x20unitId\x20','getAdjustNames','top','ConnectorCoordinateTransform','InsertShapeCommand','DEFAULT_SHAPE_HEIGHT','string','getStartConnectInfo','opacity','12uUANNZ','iterator','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','UniverSheets','ShapeGradientTypeEnum','cos','setStrokeLineJoinType','type','startArrow','fill','getDrawingData','\x20and\x20subUnitId\x20','@univerjs/drawing','isLineShape','isConnectorShape','_resolveEndpoints','getPosition','getAdjustValueByName','FWorksheet','stroke','UniverSheetsFacade','shapeType','UniverProEngineShape','removeShape','_resolveExistingOrFreeEndpoint','4037988cEjXUB','getConnectorLinePoints','2303289aDSEVm','getConnectionSiteList','fillType','@univerjs-pro/engine-shape','lineType','UniverCoreFacade','IDrawingManagerService','transform','newShape','endArrow','@univerjs-pro/sheets-shape','5Rfwdnt','unitId','RemoveSheetDrawingCommand','amd','setStrokeLineDashType','parse','@univerjs/sheets','entries','_preloadShapeProperties','getWorkbook','ensureSkeleton','DRAWING_SHAPE','connectShapes','getSheetId','flipX','drawingType','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','function','UniverProSheetsShapeFacade','@univerjs/sheets/facade','ang','left','setStrokeLineType','call','setShapeSolidFill','SolidFill','getConnectionSites','setStrokeColor','Module','get','size','ShapeFillEnum','getShapeData','height','localToWorld','setHeight','ISheetDrawingService','worldRect','208282bmPxsK','9PShRDc','FEnum','from','flipY','index','object','relation','SetShapeDrawingDataCommand','ShapeLineTypeEnum','ShapeLineDashEnum','abs','keys','shape','getDrawingByParam','default','getShapes','setShapeType','4359846kkfFGn','GradientFill','color','14847330lnZfCO','updateContext','getShapeType','constructor','sin','setAbsolutePosition','prototype','drawId','stringify','20507201AoPwGM','build','shapeData','getShapeModel','ShapeLineJoinEnum','updateShape','UpdateConnectorRelationCommand','SheetSkeletonService','width','length','getUnitId','connectionSiteIndex','32YSuQuc','dashType'];_0x5b71=function(){return _0x258fcc;};return _0x5b71();}
|