@univerjs-pro/sheets-shape 1.0.0-alpha.5 → 1.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5c01d6=_0xfb69;(function(_0x58e130,_0x127b57){const _0x1da190=_0xfb69,_0x2b0e32=_0x58e130();while(!![]){try{const _0x378088=parseInt(_0x1da190(0x160))/0x1+-parseInt(_0x1da190(0x131))/0x2*(parseInt(_0x1da190(0x1d9))/0x3)+-parseInt(_0x1da190(0x1db))/0x4+-parseInt(_0x1da190(0x130))/0x5*(-parseInt(_0x1da190(0x1ce))/0x6)+-parseInt(_0x1da190(0x127))/0x7+parseInt(_0x1da190(0x1dc))/0x8+parseInt(_0x1da190(0x15f))/0x9*(parseInt(_0x1da190(0x1bb))/0xa);if(_0x378088===_0x127b57)break;else _0x2b0e32['push'](_0x2b0e32['shift']());}catch(_0x49c7f5){_0x2b0e32['push'](_0x2b0e32['shift']());}}}(_0x301a,0xbcd50));import{IShapeHostAdapterRegistry as _0x10d679,ShapeModel as _0x57a534,UniverShapePlugin as _0x53390e,computeConnectorRouteLayout as _0x2fc0b6,createUniqueShapeName as _0x4b528f,getBasicShapeRotateBound as _0x272c36,isConnectorShape as _0x517c66,routeConnectorLineShape as _0x4cca6c}from'@univerjs-pro/engine-shape';import{ArrangeTypeEnum as _0x4abaa6,CommandType as _0x22ee2b,DependentOn as _0x59fb5e,Disposable as _0x1dc17c,DrawingTypeEnum as _0x3fcfb7,ICommandService as _0x5c6888,IConfigService as _0x344a70,IResourceManagerService as _0x11cd5e,IUndoRedoService as _0x1107ce,IUniverInstanceService as _0x1d3366,Inject as _0x36bfee,Injector as _0x2fd07f,Plugin as _0x9b668a,Tools as _0xfd6b8f,UniverInstanceType as _0xf7260a,generateRandomId as _0x518436,merge as _0x12549a,sequenceExecute as _0x263a3c,touchDependencies as _0x1f2a99}from'@univerjs/core';import{SheetInterceptorService as _0x133228,SheetSkeletonService as _0x3c7b6a,getSheetCommandTarget as _0x2abc39}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x312f26,DrawingApplyType as _0x484cad,ISheetDrawingService as _0xf49d13,InsertSheetDrawingCommand as _0x2949ae,RemoveSheetDrawingCommand as _0x4cbcd6,SetDrawingApplyMutation as _0x187b38,SetDrawingArrangeCommand as _0xc2414d,SetSheetDrawingCommand as _0xbe173f,transformToAxisAlignPosition as _0x5d5502,transformToDrawingPosition as _0x526ffb}from'@univerjs/sheets-drawing';function _0xfb69(_0x27ba8f,_0x536348){_0x27ba8f=_0x27ba8f-0x125;const _0x301a1d=_0x301a();let _0xfb6914=_0x301a1d[_0x27ba8f];return _0xfb6914;}import{UniverLicensePlugin as _0xaf9fa9}from'@univerjs-pro/license';import{IDrawingManagerService as _0x42c33a}from'@univerjs/drawing';const B=0xc8,V=0xc8;function H(_0x4ed0ba){'@babel/helpers - typeof';const _0x78c3f8=_0xfb69;return H=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x78c3f8(0x147)?function(_0x381510){return typeof _0x381510;}:function(_0x2419d9){const _0x5da360=_0x78c3f8;return _0x2419d9&&typeof Symbol=='function'&&_0x2419d9[_0x5da360(0x152)]===Symbol&&_0x2419d9!==Symbol[_0x5da360(0x150)]?_0x5da360(0x147):typeof _0x2419d9;},H(_0x4ed0ba);}function U(_0x520ed9,_0x12d020){const _0x124886=_0xfb69;if(H(_0x520ed9)!=_0x124886(0x1d1)||!_0x520ed9)return _0x520ed9;var _0x40d5b9=_0x520ed9[Symbol[_0x124886(0x1ca)]];if(_0x40d5b9!==void 0x0){var _0x5c4c51=_0x40d5b9[_0x124886(0x1b6)](_0x520ed9,_0x12d020||'default');if(H(_0x5c4c51)!='object')return _0x5c4c51;throw TypeError(_0x124886(0x181));}return(_0x12d020===_0x124886(0x12c)?String:Number)(_0x520ed9);}function W(_0x4fd953){const _0x2a2219=_0xfb69;var _0x1200ca=U(_0x4fd953,_0x2a2219(0x12c));return H(_0x1200ca)==_0x2a2219(0x147)?_0x1200ca:_0x1200ca+'';}function G(_0x1b860b,_0x2a4704,_0x5e4214){const _0x4e7c8b=_0xfb69;return(_0x2a4704=W(_0x2a4704))in _0x1b860b?Object[_0x4e7c8b(0x12e)](_0x1b860b,_0x2a4704,{'value':_0x5e4214,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1b860b[_0x2a4704]=_0x5e4214,_0x1b860b;}var K=class extends _0x1dc17c{constructor(){const _0x58f613=_0xfb69;super(),G(this,_0x58f613(0x184),new Map()),G(this,_0x58f613(0x17b),new Set()),G(this,_0x58f613(0x1b0),new Set());}[_0x5c01d6(0x1a4)](_0x345f40,_0x548dbd,_0x4a6c49,_0x36bef4){const _0x13b31b=_0x5c01d6;let _0x596c52=new _0x57a534(_0x345f40,_0x548dbd,_0x4a6c49,_0x36bef4);return this[_0x13b31b(0x184)][_0x13b31b(0x1a6)](_0x548dbd,_0x596c52),_0x517c66(_0x345f40)&&this[_0x13b31b(0x17b)][_0x13b31b(0x1ab)](_0x548dbd),_0x596c52;}[_0x5c01d6(0x1a3)](_0x58bda9){const _0x9c816e=_0x5c01d6;let _0x3984a2=[];for(let _0x24c36e of this[_0x9c816e(0x17b)]){let _0x1d4776=this['_shapes']['get'](_0x24c36e);if(_0x1d4776){let _0x41d70f=_0x1d4776[_0x9c816e(0x183)]();if(_0x41d70f){var _0x27ef12,_0x4b34c8;((_0x27ef12=_0x41d70f['from'])==null?void 0x0:_0x27ef12['shapeId'])===_0x58bda9&&_0x3984a2['push']({..._0x41d70f[_0x9c816e(0x1d2)],'lineShapeId':_0x24c36e,'isFrom':!0x0}),((_0x4b34c8=_0x41d70f['to'])==null?void 0x0:_0x4b34c8[_0x9c816e(0x142)])===_0x58bda9&&_0x3984a2[_0x9c816e(0x189)]({..._0x41d70f['to'],'lineShapeId':_0x24c36e,'isFrom':!0x1});}}}return _0x3984a2;}['getLineShapeRelation'](_0x301c9a){const _0x5296a2=_0x5c01d6;let _0x39d7d4=this[_0x5296a2(0x184)][_0x5296a2(0x1a0)](_0x301c9a);if(_0x39d7d4)return _0x39d7d4[_0x5296a2(0x183)]();}['getShapeType'](_0x46aa52){const _0x3c7a9d=_0x5c01d6;let _0x3f2a80=this[_0x3c7a9d(0x184)]['get'](_0x46aa52);if(_0x3f2a80)return _0x3f2a80[_0x3c7a9d(0x1be)]();}[_0x5c01d6(0x158)](_0x201fea){const _0x4e2d44=_0x5c01d6;return this[_0x4e2d44(0x184)][_0x4e2d44(0x155)](_0x201fea);}['getShapeDisplayNames'](){const _0x91eec5=_0x5c01d6;return Array[_0x91eec5(0x1d2)](this[_0x91eec5(0x184)][_0x91eec5(0x1d7)]())['map'](_0x4764ee=>_0x4764ee[_0x91eec5(0x12b)]()||_0x4764ee['getId']());}[_0x5c01d6(0x143)](_0x5e0f09){const _0x1bb501=_0x5c01d6;let _0x28bb76=this[_0x1bb501(0x184)][_0x1bb501(0x1a0)](_0x5e0f09);_0x28bb76&&(_0x517c66(_0x28bb76[_0x1bb501(0x1be)]())&&this['_linesIds'][_0x1bb501(0x195)](_0x5e0f09),this['_shapes'][_0x1bb501(0x195)](_0x5e0f09));}['toJSON'](){const _0x1c93c5=_0x5c01d6;let _0x2415b6=[];return this[_0x1c93c5(0x184)][_0x1c93c5(0x1da)](_0x49bd99=>{const _0xef5577=_0x1c93c5;_0x2415b6[_0xef5577(0x189)](_0x49bd99[_0xef5577(0x196)]());}),_0x2415b6;}[_0x5c01d6(0x1c4)](_0x1b4b65){const _0x41e318=_0x5c01d6;for(let _0x5d634e of _0x1b4b65){let {id:_0x2cf153,shapeType:_0x2d6a7d,name:_0x21b7e7}=_0x5d634e,_0x4fef9a=this[_0x41e318(0x1a4)](_0x2d6a7d,_0x2cf153,_0x5d634e['shapeData'],_0x21b7e7);_0x4fef9a&&_0x4fef9a['isLineShape']()&&this['_linesIds'][_0x41e318(0x1ab)](_0x2cf153);}}[_0x5c01d6(0x1a8)](){const _0x5f045b=_0x5c01d6;this['_disposed']||(this[_0x5f045b(0x184)]['forEach'](_0x1b73c0=>{const _0x4f8349=_0x5f045b;_0x1b73c0[_0x4f8349(0x1a8)]();}),this[_0x5f045b(0x184)][_0x5f045b(0x1cb)](),this['_linesIds'][_0x5f045b(0x1cb)](),this['_groupIds'][_0x5f045b(0x1cb)](),super[_0x5f045b(0x1a8)]());}};function q(_0x21409b,_0x48f56a){return function(_0x54bb1b,_0x44a5fa){_0x48f56a(_0x54bb1b,_0x44a5fa,_0x21409b);};}function J(_0x4241b,_0x569e6f,_0x4dc27f,_0x2c44a5){const _0x22e4d1=_0x5c01d6;var _0x5da1f7=arguments['length'],_0x3d2450=_0x5da1f7<0x3?_0x569e6f:_0x2c44a5===null?_0x2c44a5=Object[_0x22e4d1(0x1bd)](_0x569e6f,_0x4dc27f):_0x2c44a5,_0xd325ce;if(typeof Reflect==_0x22e4d1(0x1d1)&&typeof Reflect[_0x22e4d1(0x16e)]=='function')_0x3d2450=Reflect[_0x22e4d1(0x16e)](_0x4241b,_0x569e6f,_0x4dc27f,_0x2c44a5);else{for(var _0x55632d=_0x4241b['length']-0x1;_0x55632d>=0x0;_0x55632d--)(_0xd325ce=_0x4241b[_0x55632d])&&(_0x3d2450=(_0x5da1f7<0x3?_0xd325ce(_0x3d2450):_0x5da1f7>0x3?_0xd325ce(_0x569e6f,_0x4dc27f,_0x3d2450):_0xd325ce(_0x569e6f,_0x4dc27f))||_0x3d2450);}return _0x5da1f7>0x3&&_0x3d2450&&Object[_0x22e4d1(0x12e)](_0x569e6f,_0x4dc27f,_0x3d2450),_0x3d2450;}let Y=class extends _0x1dc17c{constructor(_0x56203b){const _0x2d87c7=_0x5c01d6;super(),this[_0x2d87c7(0x145)]=_0x56203b,G(this,_0x2d87c7(0x17a),new Map()),this['_initSnapshot']();}['_ensureShapeModelManager'](_0xd8ec4f,_0x1c7cf5){const _0x471e69=_0x5c01d6;let _0xd15577=this[_0x471e69(0x17a)]['get'](_0xd8ec4f);_0xd15577||(_0xd15577=new Map(),this[_0x471e69(0x17a)]['set'](_0xd8ec4f,_0xd15577));let _0x20ee1a=_0xd15577[_0x471e69(0x1a0)](_0x1c7cf5);return _0x20ee1a||(_0x20ee1a=new K(),_0xd15577[_0x471e69(0x1a6)](_0x1c7cf5,_0x20ee1a)),_0x20ee1a;}['insertShape'](_0x21d3fb,_0x395dbd,_0x3f9ea,_0x97ad1e,_0x509c60,_0x4ad008){const _0x591938=_0x5c01d6;this[_0x591938(0x17e)](_0x21d3fb,_0x395dbd)['addShape'](_0x3f9ea,_0x97ad1e,_0x509c60,_0x4ad008);}['removeShape'](_0x448411,_0x50f52b,_0x4c2402){const _0x3aecec=_0x5c01d6;this[_0x3aecec(0x17e)](_0x448411,_0x50f52b)['removeShape'](_0x4c2402);}['getBasicShapeType'](_0x3a2a34,_0x1edd88,_0x3cd75f){return this['_ensureShapeModelManager'](_0x3a2a34,_0x1edd88)['getShapeType'](_0x3cd75f);}[_0x5c01d6(0x1be)](_0x1f76ee,_0x491ddb,_0x38b62a){const _0x1a1b90=_0x5c01d6;return this[_0x1a1b90(0x17e)](_0x1f76ee,_0x491ddb)['getShapeType'](_0x38b62a);}[_0x5c01d6(0x158)](_0x56b0a5,_0x2c503c,_0x3d3da4){const _0x3003d3=_0x5c01d6;return this[_0x3003d3(0x17e)](_0x56b0a5,_0x2c503c)[_0x3003d3(0x158)](_0x3d3da4);}[_0x5c01d6(0x172)](_0xc125b,_0x2d993d,_0x3c5de8){const _0x5f1cb4=_0x5c01d6;return this['_ensureShapeModelManager'](_0xc125b,_0x2d993d)[_0x5f1cb4(0x1be)](_0x3c5de8);}[_0x5c01d6(0x182)](_0x256627,_0xb4b818,_0x10babc){const _0x1a6846=_0x5c01d6;let _0x2954d8=this[_0x1a6846(0x17e)](_0x256627,_0xb4b818);if(!_0x2954d8[_0x1a6846(0x1be)](_0x10babc))return;let _0x28eebb=_0x2954d8['_shapes'][_0x1a6846(0x1a0)](_0x10babc);if(_0x28eebb)return _0x28eebb['getShapeData']();}[_0x5c01d6(0x139)](_0x2d73e3,_0x4df4c3){const _0x5a1e46=_0x5c01d6;return this['_ensureShapeModelManager'](_0x2d73e3,_0x4df4c3)[_0x5a1e46(0x139)]();}[_0x5c01d6(0x148)](_0x177c8b,_0x41f43e,_0xdc0547){const _0x318451=_0x5c01d6;return this[_0x318451(0x17e)](_0x177c8b,_0x41f43e)['_shapes']['get'](_0xdc0547);}[_0x5c01d6(0x1a3)](_0x3974a7,_0x5303bf,_0x2a7f3e){const _0x279ebd=_0x5c01d6;return this[_0x279ebd(0x17e)](_0x3974a7,_0x5303bf)[_0x279ebd(0x1a3)](_0x2a7f3e);}[_0x5c01d6(0x18c)](_0x3dcefb,_0x56fbb5,_0x4825c8){const _0x13f2c6=_0x5c01d6;let _0x1be301=this[_0x13f2c6(0x17e)](_0x3dcefb,_0x56fbb5)[_0x13f2c6(0x184)][_0x13f2c6(0x1a0)](_0x4825c8);if(_0x1be301)return _0x1be301[_0x13f2c6(0x183)]();}['setShapeType'](){}['_serializeShapeForUnit'](_0x120ca8){const _0x5a92c7=_0x5c01d6;let _0x5abdcf={},_0x551851=this[_0x5a92c7(0x17a)][_0x5a92c7(0x1a0)](_0x120ca8);return _0x551851&&_0x551851[_0x5a92c7(0x1da)]((_0x436191,_0x4d5a28)=>{const _0x382543=_0x5a92c7;let _0xf02f30=_0x436191['toJSON']();_0xf02f30[_0x382543(0x1b5)]>0x0&&(_0x5abdcf[_0x4d5a28]=_0xf02f30);}),JSON[_0x5a92c7(0x1d4)](_0x5abdcf);}['_deserializeShapeForUnit'](_0xb2f4e,_0x3333e5){const _0x19819e=_0x5c01d6;Object[_0x19819e(0x186)](_0x3333e5)[_0x19819e(0x1da)](_0x5b6ad9=>{const _0x54a925=_0x19819e;this['_ensureShapeModelManager'](_0xb2f4e,_0x5b6ad9)[_0x54a925(0x1c4)](_0x3333e5[_0x5b6ad9]);});}['toJSON'](){const _0x4ceba7=_0x5c01d6;let _0x4344bb={};return this['_shapeModelManagerMap'][_0x4ceba7(0x1da)]((_0x2c601a,_0xcb417c)=>{_0x4344bb[_0xcb417c]={},_0x2c601a['forEach']((_0x194925,_0x1175d1)=>{const _0x3397d9=_0xfb69;_0x4344bb[_0xcb417c][_0x1175d1]=_0x194925[_0x3397d9(0x196)]();});}),_0x4344bb;}[_0x5c01d6(0x1c4)](_0x5bf113){const _0x410d76=_0x5c01d6;Object[_0x410d76(0x186)](_0x5bf113)['forEach'](_0xd394eb=>{const _0x44298d=_0x410d76;let _0x4abf7b=_0x5bf113[_0xd394eb];Object[_0x44298d(0x186)](_0x4abf7b)['forEach'](_0x3cbabf=>{const _0xb3892a=_0x44298d;this['_ensureShapeModelManager'](_0xd394eb,_0x3cbabf)[_0xb3892a(0x1c4)](_0x4abf7b[_0x3cbabf]);});});}[_0x5c01d6(0x197)](){const _0x5ecbf4=_0x5c01d6;this['_resourcesManagerService'][_0x5ecbf4(0x1d5)]({'pluginName':_0x5ecbf4(0x13c),'businesses':[_0xf7260a['UNIVER_SHEET']],'toJson':_0x4f9b3c=>this[_0x5ecbf4(0x14c)](_0x4f9b3c),'parseJson':_0x3f8b83=>JSON[_0x5ecbf4(0x179)](_0x3f8b83),'onLoad':(_0x45020b,_0x28a058)=>{const _0x50003b=_0x5ecbf4;this[_0x50003b(0x1a5)](_0x45020b,_0x28a058);},'onUnLoad':_0x4ccdc7=>{const _0x43e8ce=_0x5ecbf4;let _0x2c0081=this[_0x43e8ce(0x17a)][_0x43e8ce(0x1a0)](_0x4ccdc7);_0x2c0081&&(_0x2c0081[_0x43e8ce(0x1da)](_0x361197=>{const _0x51de24=_0x43e8ce;_0x361197[_0x51de24(0x1a8)]();}),this['_shapeModelManagerMap'][_0x43e8ce(0x195)](_0x4ccdc7));}});}[_0x5c01d6(0x1a8)](){const _0x36ae33=_0x5c01d6;this[_0x36ae33(0x17a)]['forEach'](_0x30e922=>{_0x30e922['forEach'](_0x5c333c=>{const _0x1f12e8=_0xfb69;_0x5c333c[_0x1f12e8(0x1a8)]();});});}};Y=J([q(0x0,_0x11cd5e)],Y);const X={'id':_0x5c01d6(0x16a),'type':_0x22ee2b['MUTATION'],'handler':(_0x30b2ee,_0xcf72d6)=>{const _0x17b304=_0x5c01d6;let {unitId:_0x523bd5,subUnitId:_0x2f1c5f,shapeType:_0x2328eb,shapeId:_0x1b9244,shapeName:_0x1658d0,shapeData:_0xa78170}=_0xcf72d6;return _0x30b2ee[_0x17b304(0x1a0)](Y)[_0x17b304(0x1c3)](_0x523bd5,_0x2f1c5f,_0x2328eb,_0x1b9244,_0xa78170,_0x1658d0),!0x0;}},Z={'id':'sheet.mutation.remove-shape','type':_0x22ee2b['MUTATION'],'handler':(_0x466f6a,_0x5aea19)=>{const _0x3a6dd5=_0x5c01d6;let {unitId:_0x28d662,subUnitId:_0x119d76,shapeId:_0x547f14}=_0x5aea19;return _0x466f6a[_0x3a6dd5(0x1a0)](Y)[_0x3a6dd5(0x143)](_0x28d662,_0x119d76,_0x547f14),!0x0;}},Q={'type':_0x22ee2b[_0x5c01d6(0x169)],'id':_0x5c01d6(0x15d),'handler':(_0x2173cc,_0x5c3a75)=>{const _0xb5b020=_0x5c01d6;var _0x571e35,_0xc24c05,_0x1d5198,_0x1ffa30,_0x4fb7e7,_0x523a59,_0x293f96;let _0x376e69=_0x2abc39(_0x2173cc[_0xb5b020(0x1a0)](_0x1d3366),_0x5c3a75);if(!_0x376e69)return!0x1;let _0x184f67=_0x2173cc[_0xb5b020(0x1a0)](_0x3c7b6a),{unitId:_0x11a572,subUnitId:_0x4768d5}=_0x376e69,_0xc5b40f=_0x184f67['ensureSkeleton'](_0x11a572,_0x4768d5);if(!_0xc5b40f)return!0x1;let _0x351664=_0x2173cc['get'](_0x5c6888),_0x486935=_0x2173cc[_0xb5b020(0x1a0)](_0x1107ce),_0x2eab46=_0x2173cc[_0xb5b020(0x1a0)](_0x133228),_0x169f86=_0x2173cc['get'](_0xf49d13),_0x5c1ba5=_0x2173cc[_0xb5b020(0x1a0)](Y),{shapeType:_0x41cbc3,shapeData:_0x2d85da}=_0x5c3a75,_0x53d0ad=_0x5c3a75[_0xb5b020(0x142)]||_0x518436(),_0x3f61a9={'unitId':_0x11a572,'subUnitId':_0x4768d5,'shapeId':_0x53d0ad,'shapeName':(_0x571e35=_0x5c3a75['shapeName'])==null?_0x4b528f(_0x41cbc3,_0x5c1ba5[_0xb5b020(0x139)](_0x11a572,_0x4768d5)):_0x571e35,'shapeType':_0x41cbc3,'shapeData':_0x2d85da},_0xc37029=_0x5c3a75[_0xb5b020(0x18d)]||0xc8,_0x2904dc=_0x5c3a75[_0xb5b020(0x137)]||0xc8,_0x2f7684=0x0,_0x3f6317=0x0;if(_0x5c3a75['position']){let {x:_0x40cc2e,y:_0x594832}=_0x5c3a75['position'];_0x2f7684=_0x40cc2e,_0x3f6317=_0x594832;}else{if(_0x5c3a75[_0xb5b020(0x16d)]){let {startRow:_0x14ed7a,startColumn:_0x390f90}=_0x5c3a75[_0xb5b020(0x16d)],_0x92851c=_0xc5b40f[_0xb5b020(0x133)](_0x14ed7a,_0x390f90);_0x2f7684=_0x92851c[_0xb5b020(0x1a2)]+0xa,_0x3f6317=_0x92851c['startY']+0xa;}}let _0x923d36={'left':_0x2f7684,'top':_0x3f6317,'width':_0xc37029,'height':_0x2904dc,'angle':(_0xc24c05=_0x5c3a75['rotation'])==null?0x0:_0xc24c05,'flipX':(_0x1d5198=_0x5c3a75[_0xb5b020(0x13b)])==null?!0x1:_0x1d5198,'flipY':(_0x1ffa30=_0x5c3a75[_0xb5b020(0x1b1)])==null?!0x1:_0x1ffa30},_0x5b4677=_0x526ffb(_0x923d36,_0xc5b40f),_0x357a60=_0x5d5502(_0x923d36,_0xc5b40f),_0x3f9f0a={'unitId':_0x11a572,'subUnitId':_0x4768d5,'drawingId':_0x53d0ad,'drawingType':_0x3fcfb7[_0xb5b020(0x12d)],'name':_0x5c3a75[_0xb5b020(0x146)],'description':_0x5c3a75['description'],'sheetTransform':_0x5b4677,'transform':_0x923d36,'data':{'shapeType':_0x41cbc3,'shapeData':_0x2d85da},'axisAlignSheetTransform':_0x357a60,'allowTransform':!0x0,'hidden':_0x5c3a75[_0xb5b020(0x136)]===!0x1,'selectable':(_0x4fb7e7=_0x5c3a75[_0xb5b020(0x15b)])==null?!0x0:_0x4fb7e7};_0x517c66(_0x41cbc3)&&(_0x3f9f0a[_0xb5b020(0x1b4)]['fill']=!0x1,_0x3f9f0a[_0xb5b020(0x1b4)][_0xb5b020(0x15c)]=!0x1,_0x3f9f0a[_0xb5b020(0x1b4)][_0xb5b020(0x140)]=!0x1,_0x3f9f0a[_0xb5b020(0x1b4)][_0xb5b020(0x1aa)]=!0x1,_0x3f9f0a[_0xb5b020(0x1d8)][_0xb5b020(0x15c)]=!0x1,_0x3f9f0a[_0xb5b020(0x1d8)][_0xb5b020(0x140)]=!0x1,_0x3f9f0a[_0xb5b020(0x1d8)][_0xb5b020(0x1aa)]=!0x1);let {undo:_0x4679dd,redo:_0x19c7bc,objects:_0x45ebd1}=_0x169f86[_0xb5b020(0x151)]([_0x3f9f0a]),_0x1bddf9=_0x2eab46[_0xb5b020(0x14f)]({'id':_0x2949ae['id'],'params':{'unitId':_0x11a572,'drawings':[_0x3f9f0a]}}),_0x347f13=[...(_0x523a59=_0x1bddf9['preRedos'])==null?[]:_0x523a59,{'id':_0x187b38['id'],'params':{'unitId':_0x11a572,'subUnitId':_0x4768d5,'op':_0x19c7bc,'objects':_0x45ebd1,'type':_0x484cad[_0xb5b020(0x1c9)]}},{'id':_0x312f26['id'],'params':[_0x11a572]},..._0x1bddf9['redos'],{'id':X['id'],'params':_0x3f61a9}],_0x53e844=[{'id':Z['id'],'params':{'unitId':_0x11a572,'subUnitId':_0x4768d5,'shapeId':_0x53d0ad}},...(_0x293f96=_0x1bddf9[_0xb5b020(0x141)])==null?[]:_0x293f96,{'id':_0x187b38['id'],'params':{'unitId':_0x11a572,'subUnitId':_0x4768d5,'op':_0x4679dd,'objects':_0x45ebd1,'type':_0x484cad[_0xb5b020(0x192)]}},{'id':_0x312f26['id'],'params':[_0x11a572]},..._0x1bddf9[_0xb5b020(0x157)]];return _0x263a3c(_0x347f13,_0x351664)[_0xb5b020(0x16c)]?(_0x486935[_0xb5b020(0x1b8)]({'unitID':_0x11a572,'undoMutations':_0x53e844,'redoMutations':_0x347f13}),!0x0):!0x1;}},$={'id':_0x5c01d6(0x1b7),'type':_0x22ee2b['MUTATION'],'handler':(_0x3f9f75,_0x1557c5)=>{const _0x5cb5b9=_0x5c01d6;let {unitId:_0x4a5609,subUnitId:_0x326c7e,shapeType:_0x1a6ca5,shapeId:_0x270060,shapeData:_0x1c9d68}=_0x1557c5,_0x5d36d9=_0x3f9f75[_0x5cb5b9(0x1a0)](Y)[_0x5cb5b9(0x148)](_0x4a5609,_0x326c7e,_0x270060);return _0x5d36d9&&(_0x1a6ca5!==void 0x0&&_0x5d36d9['setShapeType'](_0x1a6ca5),_0x1c9d68&&(_0x5d36d9==null||_0x5d36d9[_0x5cb5b9(0x156)](_0x1c9d68,!0x0))),!0x0;}},ne={'type':_0x22ee2b[_0x5c01d6(0x169)],'id':'sheet.command.set-shape-drawing-data','handler':(_0x39c886,_0x57c03f)=>{const _0xdd26ba=_0x5c01d6;var _0x255d17,_0x39d4ac,_0x1a6cbc,_0x4d5f9c,_0x3c1e69;let _0x25b154=_0x2abc39(_0x39c886[_0xdd26ba(0x1a0)](_0x1d3366),_0x57c03f);if(!_0x25b154)return!0x1;let _0x7c5f5f=_0x39c886['get'](_0x3c7b6a),{unitId:_0x528c5d,subUnitId:_0x2d6377}=_0x25b154,_0x47a159=_0x7c5f5f[_0xdd26ba(0x193)](_0x528c5d,_0x2d6377);if(!_0x47a159)return!0x1;let _0x24acef=_0x39c886[_0xdd26ba(0x1a0)](Y),{shapeId:_0x49c044,shapeType:_0x146a88,shapeData:_0x16150e,position:_0x165eb4,width:_0x1b7771,height:_0x71b475}=_0x57c03f,_0x3a6298=_0x24acef[_0xdd26ba(0x148)](_0x528c5d,_0x2d6377,_0x49c044);if(!_0x3a6298)return!0x1;let _0xa69028=_0x39c886[_0xdd26ba(0x1a0)](_0x5c6888),_0x2dbf14=_0x39c886[_0xdd26ba(0x1a0)](_0x1107ce),_0x479266=_0x39c886[_0xdd26ba(0x1a0)](_0x133228),_0x429e4f=_0x39c886[_0xdd26ba(0x1a0)](_0xf49d13),_0x4c9703={'unitId':_0x528c5d,'subUnitId':_0x2d6377,'shapeId':_0x49c044,'shapeType':_0x146a88,'shapeData':_0x16150e},_0x56574a=_0x3a6298[_0xdd26ba(0x1be)](),_0x571ba7=_0x3a6298[_0xdd26ba(0x149)](),{x:_0x99662f,y:_0x48db7c}=_0x165eb4,_0x107425={'left':_0x99662f,'top':_0x48db7c,'width':_0x1b7771,'height':_0x71b475,'angle':(_0x255d17=_0x57c03f['rotation'])==null?0x0:_0x255d17,'flipX':(_0x39d4ac=_0x57c03f[_0xdd26ba(0x13b)])==null?!0x1:_0x39d4ac,'flipY':(_0x1a6cbc=_0x57c03f[_0xdd26ba(0x1b1)])==null?!0x1:_0x1a6cbc},_0x3199a6=_0x526ffb(_0x107425,_0x47a159),_0x12df75=_0x5d5502(_0x107425,_0x47a159),_0x1b33fa={'unitId':_0x528c5d,'subUnitId':_0x2d6377,'drawingId':_0x49c044,'drawingType':_0x3fcfb7[_0xdd26ba(0x12d)],'name':_0x57c03f[_0xdd26ba(0x146)],'description':_0x57c03f[_0xdd26ba(0x191)],'sheetTransform':_0x3199a6,'transform':_0x107425,'data':{'shapeType':_0x146a88,'shapeData':_0x16150e},'axisAlignSheetTransform':_0x12df75,'allowTransform':!0x0,'hidden':!_0x57c03f[_0xdd26ba(0x136)],'selectable':_0x57c03f['selectable']};_0x517c66(_0x146a88)&&(_0x1b33fa[_0xdd26ba(0x1b4)][_0xdd26ba(0x161)]=!0x1,_0x1b33fa[_0xdd26ba(0x1b4)][_0xdd26ba(0x15c)]=!0x1,_0x1b33fa[_0xdd26ba(0x1b4)][_0xdd26ba(0x140)]=!0x1,_0x1b33fa[_0xdd26ba(0x1b4)][_0xdd26ba(0x1aa)]=!0x1,_0x1b33fa[_0xdd26ba(0x1d8)]['rotateEnabled']=!0x1,_0x1b33fa[_0xdd26ba(0x1d8)]['resizeEnabled']=!0x1,_0x1b33fa[_0xdd26ba(0x1d8)][_0xdd26ba(0x1aa)]=!0x1);let {undo:_0x1bd4cd,redo:_0x329549,objects:_0x5a91c6}=_0x429e4f[_0xdd26ba(0x14d)]([_0x1b33fa]),_0x5854b2=_0x479266[_0xdd26ba(0x14f)]({'id':_0xbe173f['id'],'params':{'unitId':_0x528c5d,'drawings':[_0x1b33fa]}}),_0x232d83=[...(_0x4d5f9c=_0x5854b2[_0xdd26ba(0x174)])==null?[]:_0x4d5f9c,{'id':_0x187b38['id'],'params':{'unitId':_0x528c5d,'subUnitId':_0x2d6377,'op':_0x329549,'objects':_0x5a91c6,'type':_0x484cad[_0xdd26ba(0x180)]}},{'id':_0x312f26['id'],'params':[_0x528c5d]},..._0x5854b2[_0xdd26ba(0x1cf)],{'id':$['id'],'params':_0x4c9703}],_0x1b3685=[...(_0x3c1e69=_0x5854b2['preUndos'])==null?[]:_0x3c1e69,{'id':_0x187b38['id'],'params':{'unitId':_0x528c5d,'subUnitId':_0x2d6377,'op':_0x1bd4cd,'objects':_0x5a91c6,'type':_0x484cad[_0xdd26ba(0x180)]}},{'id':_0x312f26['id'],'params':[_0x528c5d]},..._0x5854b2[_0xdd26ba(0x157)],{'id':$['id'],'params':{'unitId':_0x528c5d,'subUnitId':_0x2d6377,'shapeType':_0x56574a,'shapeId':_0x49c044,'shapeData':_0x571ba7}}];return _0x263a3c(_0x232d83,_0xa69028)[_0xdd26ba(0x16c)]?(_0x2dbf14[_0xdd26ba(0x1b8)]({'unitID':_0x528c5d,'undoMutations':_0x1b3685,'redoMutations':_0x232d83}),!0x0):!0x1;}},re={'type':_0x22ee2b[_0x5c01d6(0x169)],'id':_0x5c01d6(0x16b),'handler':(_0x126767,_0x4a0b79)=>{const _0x1f4545=_0x5c01d6;var _0x10e471,_0x32e5ca;let _0xd6fbce=_0x2abc39(_0x126767[_0x1f4545(0x1a0)](_0x1d3366),_0x4a0b79);if(!_0xd6fbce)return!0x1;let _0x52a777=_0x126767[_0x1f4545(0x1a0)](_0x3c7b6a),{unitId:_0x4c60bb,subUnitId:_0x4fb292}=_0xd6fbce,_0x8b9da9=_0x52a777[_0x1f4545(0x177)](_0x4c60bb,_0x4fb292);if(!_0x8b9da9)return!0x1;let _0x19920b=_0x126767[_0x1f4545(0x1a0)](_0xf49d13),{shapeId:_0x40d9d8,flipH:_0x5e6e92,flipV:_0x5e2f64}=_0x4a0b79,_0x494524=_0x19920b[_0x1f4545(0x187)]({'unitId':_0x4c60bb,'subUnitId':_0x4fb292,'drawingId':_0x40d9d8});if(!_0x494524)return!0x1;let _0x3b5d78=_0x126767[_0x1f4545(0x1a0)](Y)[_0x1f4545(0x148)](_0x4c60bb,_0x4fb292,_0x40d9d8);if(!_0x3b5d78)return!0x1;let _0x541133=_0x126767[_0x1f4545(0x1a0)](_0x5c6888),_0x363111=_0x126767[_0x1f4545(0x1a0)](_0x1107ce),_0x1104f4=_0x126767['get'](_0x133228),_0x26b351={..._0x494524['transform']};_0x5e6e92!==void 0x0&&(_0x26b351['flipX']=!_0x26b351[_0x1f4545(0x13b)]),_0x5e2f64!==void 0x0&&(_0x26b351[_0x1f4545(0x1b1)]=!_0x26b351[_0x1f4545(0x1b1)]);let _0x58753d=_0x526ffb(_0x26b351,_0x8b9da9),_0x333edd=_0x5d5502(_0x26b351,_0x8b9da9),_0x7dba7a=_0x3b5d78[_0x1f4545(0x1be)](),_0xbeab32=_0x3b5d78[_0x1f4545(0x149)](),_0x4f230b={'unitId':_0x4c60bb,'subUnitId':_0x4fb292,'drawingId':_0x40d9d8,'drawingType':_0x3fcfb7[_0x1f4545(0x12d)],'sheetTransform':_0x58753d,'transform':_0x26b351,'data':{'shapeType':_0x7dba7a,'shapeData':_0xbeab32},'axisAlignSheetTransform':_0x333edd,'allowTransform':!0x0},{undo:_0x41070b,redo:_0x3e317c,objects:_0x113a64}=_0x19920b[_0x1f4545(0x14d)]([_0x4f230b]),_0x26770f=_0x1104f4[_0x1f4545(0x14f)]({'id':_0xbe173f['id'],'params':{'unitId':_0x4c60bb,'drawings':[_0x4f230b]}}),_0x1634b9=[...(_0x10e471=_0x26770f[_0x1f4545(0x174)])==null?[]:_0x10e471,{'id':_0x187b38['id'],'params':{'unitId':_0x4c60bb,'subUnitId':_0x4fb292,'op':_0x3e317c,'objects':_0x113a64,'type':_0x484cad[_0x1f4545(0x180)]}},{'id':_0x312f26['id'],'params':[_0x4c60bb]},..._0x26770f[_0x1f4545(0x1cf)]],_0x2a49f4=[...(_0x32e5ca=_0x26770f[_0x1f4545(0x141)])==null?[]:_0x32e5ca,{'id':_0x187b38['id'],'params':{'unitId':_0x4c60bb,'subUnitId':_0x4fb292,'op':_0x41070b,'objects':_0x113a64,'type':_0x484cad[_0x1f4545(0x180)]}},{'id':_0x312f26['id'],'params':[_0x4c60bb]},..._0x26770f[_0x1f4545(0x157)]];if(_0x517c66(_0x7dba7a)){let _0x1976e7=_0x3b5d78[_0x1f4545(0x183)]();if(_0x1976e7){let _0x12f056={..._0x1976e7};_0x12f056['from']=void 0x0,_0x12f056['to']=void 0x0,_0x1634b9['push']({'id':$['id'],'params':{'unitId':_0x4c60bb,'subUnitId':_0x4fb292,'shapeId':_0x40d9d8,'shapeType':_0x7dba7a,'shapeData':{'relation':_0x12f056}}}),_0x2a49f4[_0x1f4545(0x189)]({'id':$['id'],'params':{'unitId':_0x4c60bb,'subUnitId':_0x4fb292,'shapeId':_0x40d9d8,'shapeType':_0x7dba7a,'shapeData':{'relation':_0x1976e7}}});}}return _0x263a3c(_0x1634b9,_0x541133)[_0x1f4545(0x16c)]?(_0x363111[_0x1f4545(0x1b8)]({'unitID':_0x4c60bb,'undoMutations':_0x2a49f4,'redoMutations':_0x1634b9}),!0x0):!0x1;}},ie={'type':_0x22ee2b[_0x5c01d6(0x169)],'id':_0x5c01d6(0x1d3),'handler':(_0x3c1821,_0x5daedf)=>{const _0x24caeb=_0x5c01d6;var _0x525617,_0x389fff;let _0x43e79f=_0x2abc39(_0x3c1821[_0x24caeb(0x1a0)](_0x1d3366),_0x5daedf);if(!_0x43e79f)return!0x1;let _0x56306c=_0x3c1821['get'](_0x3c7b6a),{unitId:_0x4d368c,subUnitId:_0x147bc7}=_0x43e79f,_0x55672e=_0x56306c[_0x24caeb(0x177)](_0x4d368c,_0x147bc7);if(!_0x55672e)return!0x1;let _0x4fc8f3=_0x3c1821['get'](_0xf49d13),{shapeId:_0x4cb770,rotate:_0x1231d5}=_0x5daedf,_0x489e34=_0x4fc8f3[_0x24caeb(0x187)]({'unitId':_0x4d368c,'subUnitId':_0x147bc7,'drawingId':_0x4cb770});if(!_0x489e34)return!0x1;let _0x5868a4=_0x3c1821[_0x24caeb(0x1a0)](Y)[_0x24caeb(0x148)](_0x4d368c,_0x147bc7,_0x4cb770);if(!_0x5868a4)return!0x1;let _0x1e1dab=_0x3c1821[_0x24caeb(0x1a0)](_0x5c6888),_0x513bce=_0x3c1821['get'](_0x1107ce),_0x51f2a1=_0x3c1821['get'](_0x133228),_0x180205={..._0x489e34[_0x24caeb(0x1d8)]};_0x1231d5!==void 0x0&&(_0x180205[_0x24caeb(0x15a)]=(_0x180205[_0x24caeb(0x15a)]||0x0)+_0x1231d5);let _0x4a1ac9=_0x526ffb(_0x180205,_0x55672e),_0x8df995=_0x5d5502(_0x180205,_0x55672e),_0x181e9c=_0x5868a4[_0x24caeb(0x1be)](),_0x21b89a=_0x5868a4[_0x24caeb(0x149)](),_0x243929={'unitId':_0x4d368c,'subUnitId':_0x147bc7,'drawingId':_0x4cb770,'drawingType':_0x3fcfb7[_0x24caeb(0x12d)],'sheetTransform':_0x4a1ac9,'transform':_0x180205,'data':{'shapeType':_0x181e9c,'shapeData':_0x21b89a},'axisAlignSheetTransform':_0x8df995,'allowTransform':!0x0},{undo:_0x98e949,redo:_0x2501cc,objects:_0x3f23bb}=_0x4fc8f3[_0x24caeb(0x14d)]([_0x243929]),_0x30fafa=_0x51f2a1[_0x24caeb(0x14f)]({'id':_0xbe173f['id'],'params':{'unitId':_0x4d368c,'drawings':[_0x243929]}}),_0x36e308=[...(_0x525617=_0x30fafa[_0x24caeb(0x174)])==null?[]:_0x525617,{'id':_0x187b38['id'],'params':{'unitId':_0x4d368c,'subUnitId':_0x147bc7,'op':_0x2501cc,'objects':_0x3f23bb,'type':_0x484cad[_0x24caeb(0x180)]}},{'id':_0x312f26['id'],'params':[_0x4d368c]},..._0x30fafa['redos']],_0x3950aa=[...(_0x389fff=_0x30fafa[_0x24caeb(0x141)])==null?[]:_0x389fff,{'id':_0x187b38['id'],'params':{'unitId':_0x4d368c,'subUnitId':_0x147bc7,'op':_0x98e949,'objects':_0x3f23bb,'type':_0x484cad[_0x24caeb(0x180)]}},{'id':_0x312f26['id'],'params':[_0x4d368c]},..._0x30fafa[_0x24caeb(0x157)]];return _0x263a3c(_0x36e308,_0x1e1dab)[_0x24caeb(0x16c)]?(_0x513bce['pushUndoRedo']({'unitID':_0x4d368c,'undoMutations':_0x3950aa,'redoMutations':_0x36e308}),!0x0):!0x1;}},ae={'type':_0x22ee2b[_0x5c01d6(0x169)],'id':_0x5c01d6(0x1b3),'handler':(_0x1edf21,_0xdb697b)=>{const _0x4a2db6=_0x5c01d6;var _0x2d4d08;let _0x15beac=_0x2abc39(_0x1edf21[_0x4a2db6(0x1a0)](_0x1d3366),_0xdb697b);if(!_0x15beac)return!0x1;let {unitId:_0x34daf7,subUnitId:_0x2f6b92}=_0x15beac,{shapeId:_0x162403}=_0xdb697b,_0x5c01f7=_0x1edf21[_0x4a2db6(0x1a0)](Y)[_0x4a2db6(0x148)](_0x34daf7,_0x2f6b92,_0x162403);if(!_0x5c01f7)return!0x1;let _0x32d89e=_0x5c01f7[_0x4a2db6(0x17c)](),_0x51bcbc=(_0x2d4d08=_0x32d89e==null?void 0x0:_0x32d89e[_0x4a2db6(0x164)])==null?!0x0:_0x2d4d08,_0x1ebb46=!_0x51bcbc,_0x472887=_0x1edf21[_0x4a2db6(0x1a0)](_0x5c6888),_0x591fbf=_0x1edf21[_0x4a2db6(0x1a0)](_0x1107ce),_0x44b666={'unitId':_0x34daf7,'subUnitId':_0x2f6b92,'shapeId':_0x162403,'shapeData':{'shapeText':{'isHorizontal':_0x1ebb46}}},_0x276e28={'unitId':_0x34daf7,'subUnitId':_0x2f6b92,'shapeId':_0x162403,'shapeData':{'shapeText':{'isHorizontal':_0x51bcbc}}},_0x4bd2ca=[{'id':$['id'],'params':_0x44b666}],_0x2eb632=[{'id':$['id'],'params':_0x276e28}];return _0x263a3c(_0x4bd2ca,_0x472887)[_0x4a2db6(0x16c)]?(_0x591fbf['pushUndoRedo']({'unitID':_0x34daf7,'undoMutations':_0x2eb632,'redoMutations':_0x4bd2ca}),!0x0):!0x1;}},oe={'type':_0x22ee2b[_0x5c01d6(0x169)],'id':_0x5c01d6(0x1a7),'handler':(_0x252a38,_0x572705)=>{const _0x23f310=_0x5c01d6;var _0x5c2c90,_0x366c1f,_0x2051b9,_0x132363;let _0xf6d3a6=_0x2abc39(_0x252a38[_0x23f310(0x1a0)](_0x1d3366),_0x572705);if(!_0xf6d3a6)return!0x1;let _0xb49e0f=_0x252a38[_0x23f310(0x1a0)](_0x3c7b6a),{unitId:_0x348363,subUnitId:_0x2dea7b}=_0xf6d3a6,_0x4d3975=_0xb49e0f[_0x23f310(0x177)](_0x348363,_0x2dea7b);if(!_0x4d3975)return!0x1;let _0x4e49f4=_0x252a38[_0x23f310(0x1a0)](_0xf49d13),{connectorShapeId:_0x4fea05,width:_0x40c0b9,height:_0x477a33,left:_0x930c23,top:_0x2f959b,flipX:_0x57f365,flipY:_0x2b3625,rotation:_0x3e3856,oldAdjustValues:_0x4501f8,newAdjustValues:_0x48f6ec,oldLineType:_0x1adfa5,newLineType:_0x41be73,oldRelation:_0x21308f,newRelation:_0x126017}=_0x572705,_0x50f402=_0x4e49f4['getDrawingByParam']({'unitId':_0x348363,'subUnitId':_0x2dea7b,'drawingId':_0x4fea05});if(!_0x50f402)return!0x1;let _0x126540=_0x252a38['get'](Y)['getShapeModel'](_0x348363,_0x2dea7b,_0x4fea05);if(!_0x126540)return!0x1;let _0x21f1a1=_0x252a38['get'](_0x5c6888),_0xce91dc=_0x252a38[_0x23f310(0x1a0)](_0x1107ce),_0x1f3c10=_0x252a38[_0x23f310(0x1a0)](_0x133228),_0x5782e7={..._0x50f402[_0x23f310(0x1d8)],'width':_0x40c0b9,'height':_0x477a33,'left':_0x930c23,'top':_0x2f959b,'flipX':_0x57f365,'flipY':_0x2b3625,'angle':(_0x5c2c90=_0x3e3856==null?(_0x366c1f=_0x50f402[_0x23f310(0x1d8)])==null?void 0x0:_0x366c1f[_0x23f310(0x15a)]:_0x3e3856)==null?0x0:_0x5c2c90},_0x4ce822=_0x526ffb(_0x5782e7,_0x4d3975),_0x28a04c=_0x5d5502(_0x5782e7,_0x4d3975),_0x75d8a3=_0x126540[_0x23f310(0x1be)](),_0x4ec28c=_0x126540[_0x23f310(0x149)](),_0x4db1aa={'unitId':_0x348363,'subUnitId':_0x2dea7b,'drawingId':_0x4fea05,'drawingType':_0x3fcfb7[_0x23f310(0x12d)],'sheetTransform':_0x4ce822,'transform':_0x5782e7,'data':{'shapeType':_0x41be73||_0x1adfa5||_0x75d8a3,'shapeData':{..._0x4ec28c,'adjustValues':_0x48f6ec||_0x4501f8||(_0x4ec28c==null?void 0x0:_0x4ec28c['adjustValues']),'relation':_0x126017||_0x21308f||(_0x4ec28c==null?void 0x0:_0x4ec28c[_0x23f310(0x19f)])}},'axisAlignSheetTransform':_0x28a04c,'allowTransform':!0x0},{undo:_0x219092,redo:_0x583def,objects:_0x44142e}=_0x4e49f4[_0x23f310(0x14d)]([_0x4db1aa]),_0xca88bc=_0x1f3c10['onCommandExecute']({'id':_0xbe173f['id'],'params':{'unitId':_0x348363,'drawings':[_0x4db1aa]}}),_0x2cf6d1=[...(_0x2051b9=_0xca88bc[_0x23f310(0x174)])==null?[]:_0x2051b9,{'id':_0x187b38['id'],'params':{'unitId':_0x348363,'subUnitId':_0x2dea7b,'op':_0x583def,'objects':_0x44142e,'type':_0x484cad['UPDATE']}},{'id':_0x312f26['id'],'params':[_0x348363]},..._0xca88bc[_0x23f310(0x1cf)],{'id':$['id'],'params':{'unitId':_0x348363,'subUnitId':_0x2dea7b,'shapeId':_0x4fea05,'shapeType':_0x41be73,'shapeData':{'adjustValues':_0x48f6ec,'relation':_0x126017}}}],_0x2b8b5f=[...(_0x132363=_0xca88bc[_0x23f310(0x141)])==null?[]:_0x132363,{'id':_0x187b38['id'],'params':{'unitId':_0x348363,'subUnitId':_0x2dea7b,'op':_0x219092,'objects':_0x44142e,'type':_0x484cad[_0x23f310(0x180)]}},{'id':_0x312f26['id'],'params':[_0x348363]},..._0xca88bc[_0x23f310(0x157)],{'id':$['id'],'params':{'unitId':_0x348363,'subUnitId':_0x2dea7b,'shapeId':_0x4fea05,'shapeType':_0x75d8a3,'shapeData':{..._0x4ec28c,'adjustValues':_0x4501f8||(_0x4ec28c==null?void 0x0:_0x4ec28c['adjustValues']),'relation':_0x21308f||(_0x4ec28c==null?void 0x0:_0x4ec28c[_0x23f310(0x19f)])}}}];return _0x263a3c(_0x2cf6d1,_0x21f1a1)['result']?(_0xce91dc['pushUndoRedo']({'unitID':_0x348363,'undoMutations':_0x2b8b5f,'redoMutations':_0x2cf6d1}),!0x0):!0x1;}},se={'type':_0x22ee2b['COMMAND'],'id':_0x5c01d6(0x185),'handler':(_0x55af6a,_0x51275a)=>{const _0x257749=_0x5c01d6;var _0x39f30c,_0x4f4acc;let _0x438215=_0x2abc39(_0x55af6a[_0x257749(0x1a0)](_0x1d3366),_0x51275a);if(!_0x438215)return!0x1;let _0x5f1433=_0x55af6a[_0x257749(0x1a0)](_0x3c7b6a),{unitId:_0x359ab0,subUnitId:_0x395e39}=_0x438215,_0x37c3e2=_0x5f1433[_0x257749(0x177)](_0x359ab0,_0x395e39);if(!_0x37c3e2)return!0x1;let _0x2901a5=_0x55af6a['get'](_0xf49d13),{shapeId:_0xd8c3d4,width:_0x318c9e,height:_0x353a82,left:_0x4acec3,top:_0x3b047b,flipX:_0x20a1fb,flipY:_0xb1cf6a,angle:_0x33d800,oldAdjustValues:_0x1975c7,newAdjustValues:_0x1abec8,oldLineType:_0x2aebb1,newLineType:_0x4a4fbe}=_0x51275a,_0xd3f885=_0x2901a5['getDrawingByParam']({'unitId':_0x359ab0,'subUnitId':_0x395e39,'drawingId':_0xd8c3d4});if(!_0xd3f885)return!0x1;let _0x2ed569=_0x55af6a[_0x257749(0x1a0)](Y)[_0x257749(0x148)](_0x359ab0,_0x395e39,_0xd8c3d4);if(!_0x2ed569)return!0x1;let _0x37a005=_0x55af6a[_0x257749(0x1a0)](_0x5c6888),_0x56d947=_0x55af6a['get'](_0x1107ce),_0x40bc28=_0x55af6a[_0x257749(0x1a0)](_0x133228),_0x3d9c85={..._0xd3f885[_0x257749(0x1d8)],'width':_0x318c9e,'height':_0x353a82,'left':_0x4acec3,'top':_0x3b047b,'flipX':_0x20a1fb,'flipY':_0xb1cf6a,'angle':_0x33d800},_0x58a4ba=_0x526ffb(_0x3d9c85,_0x37c3e2),_0x142d7e=_0x5d5502(_0x3d9c85,_0x37c3e2),_0x1374f2=_0x2ed569[_0x257749(0x1be)](),_0x5c7fc8=_0x2ed569[_0x257749(0x149)](),_0x3718a0={'unitId':_0x359ab0,'subUnitId':_0x395e39,'drawingId':_0xd8c3d4,'drawingType':_0x3fcfb7[_0x257749(0x12d)],'sheetTransform':_0x58a4ba,'transform':_0x3d9c85,'data':{'shapeType':_0x4a4fbe||_0x2aebb1||_0x1374f2,'shapeData':{..._0x5c7fc8,'adjustValues':_0x1abec8||_0x1975c7||(_0x5c7fc8==null?void 0x0:_0x5c7fc8['adjustValues'])}},'axisAlignSheetTransform':_0x142d7e,'allowTransform':!0x0},{undo:_0x75edf2,redo:_0x3d5e15,objects:_0x4d62e2}=_0x2901a5[_0x257749(0x14d)]([_0x3718a0]),_0x4c709a=_0x40bc28['onCommandExecute']({'id':_0xbe173f['id'],'params':{'unitId':_0x359ab0,'drawings':[_0x3718a0]}}),_0x233be9=[...(_0x39f30c=_0x4c709a['preRedos'])==null?[]:_0x39f30c,{'id':_0x187b38['id'],'params':{'unitId':_0x359ab0,'subUnitId':_0x395e39,'op':_0x3d5e15,'objects':_0x4d62e2,'type':_0x484cad[_0x257749(0x180)]}},{'id':_0x312f26['id'],'params':[_0x359ab0]},..._0x4c709a[_0x257749(0x1cf)],{'id':$['id'],'params':{'unitId':_0x359ab0,'subUnitId':_0x395e39,'shapeId':_0xd8c3d4,'shapeType':_0x4a4fbe,'shapeData':{'adjustValues':_0x1abec8}}}],_0x56311f=[...(_0x4f4acc=_0x4c709a[_0x257749(0x141)])==null?[]:_0x4f4acc,{'id':_0x187b38['id'],'params':{'unitId':_0x359ab0,'subUnitId':_0x395e39,'op':_0x75edf2,'objects':_0x4d62e2,'type':_0x484cad[_0x257749(0x180)]}},{'id':_0x312f26['id'],'params':[_0x359ab0]},..._0x4c709a[_0x257749(0x157)],{'id':$['id'],'params':{'unitId':_0x359ab0,'subUnitId':_0x395e39,'shapeId':_0xd8c3d4,'shapeType':_0x1374f2,'shapeData':{..._0x5c7fc8,'adjustValues':_0x1975c7||(_0x5c7fc8==null?void 0x0:_0x5c7fc8[_0x257749(0x17f)])}}}];return _0x263a3c(_0x233be9,_0x37a005)[_0x257749(0x16c)]?(_0x56d947[_0x257749(0x1b8)]({'unitID':_0x359ab0,'undoMutations':_0x56311f,'redoMutations':_0x233be9}),!0x0):!0x1;}},ce={'id':'sheet.mutation.update-shape-type','type':_0x22ee2b[_0x5c01d6(0x154)],'handler':(_0x54e201,_0x4ff7fa)=>{const _0x763b5d=_0x5c01d6;let {unitId:_0x4d5556,subUnitId:_0x26da0d,shapeType:_0x235e89,shapeId:_0x1dfd99,shapeData:_0x598fee}=_0x4ff7fa,_0x3fe851=_0x54e201[_0x763b5d(0x1a0)](Y)[_0x763b5d(0x148)](_0x4d5556,_0x26da0d,_0x1dfd99);return _0x3fe851&&(_0x3fe851['setShapeType'](_0x235e89),_0x598fee&&(_0x3fe851==null||_0x3fe851[_0x763b5d(0x156)](_0x598fee))),!0x0;}};var le='@univerjs-pro/sheets-shape',ue=_0x5c01d6(0x165);let de=class{constructor(_0x2cfbd6,_0x33f881,_0x10f8b3){const _0x557742=_0x5c01d6;this[_0x557742(0x18f)]=_0x2cfbd6,this[_0x557742(0x171)]=_0x33f881,this[_0x557742(0x1c6)]=_0x10f8b3,G(this,_0x557742(0x1af),_0xf7260a[_0x557742(0x126)]);}[_0x5c01d6(0x144)](_0x4b332c){const _0x291e85=_0x5c01d6;var _0x1ecdfc,_0x459fbc,_0x367f2a,_0x33ccd4,_0x4bdb35,_0x34f636,_0x476ba3,_0x390054,_0x1f0b3c;let _0x23011a=(_0x1ecdfc=this[_0x291e85(0x1c6)][_0x291e85(0x13d)](_0x4b332c[_0x291e85(0x1b9)],_0x4b332c[_0x291e85(0x1c0)]))==null?void 0x0:_0x1ecdfc[_0x4b332c[_0x291e85(0x142)]],_0x520c60=this[_0x291e85(0x171)][_0x291e85(0x1be)](_0x4b332c[_0x291e85(0x1b9)],_0x4b332c[_0x291e85(0x1c0)],_0x4b332c[_0x291e85(0x142)]);if(!_0x23011a||_0x23011a['drawingType']!==_0x3fcfb7[_0x291e85(0x12d)]||!_0x520c60)return null;let _0x25bcc1=_0x23011a[_0x291e85(0x1d8)];return{..._0x4b332c,'shapeType':_0x520c60,'shapeData':_0xfd6b8f[_0x291e85(0x170)]((_0x459fbc=this[_0x291e85(0x171)][_0x291e85(0x182)](_0x4b332c[_0x291e85(0x1b9)],_0x4b332c['subUnitId'],_0x4b332c[_0x291e85(0x142)]))==null?{}:_0x459fbc),'name':_0x23011a[_0x291e85(0x146)],'description':_0x23011a[_0x291e85(0x191)],'visible':_0x23011a[_0x291e85(0x18a)]!==!0x0,'selectable':_0x23011a[_0x291e85(0x15b)]!==!0x1,'transform':{'left':(_0x367f2a=_0x25bcc1==null?void 0x0:_0x25bcc1[_0x291e85(0x125)])==null?0x0:_0x367f2a,'top':(_0x33ccd4=_0x25bcc1==null?void 0x0:_0x25bcc1['top'])==null?0x0:_0x33ccd4,'width':(_0x4bdb35=_0x25bcc1==null?void 0x0:_0x25bcc1[_0x291e85(0x18d)])==null?0xc8:_0x4bdb35,'height':(_0x34f636=_0x25bcc1==null?void 0x0:_0x25bcc1['height'])==null?0xc8:_0x34f636,'rotation':(_0x476ba3=_0x25bcc1==null?void 0x0:_0x25bcc1[_0x291e85(0x15a)])==null?0x0:_0x476ba3,'flipX':(_0x390054=_0x25bcc1==null?void 0x0:_0x25bcc1[_0x291e85(0x13b)])==null?!0x1:_0x390054,'flipY':(_0x1f0b3c=_0x25bcc1==null?void 0x0:_0x25bcc1[_0x291e85(0x1b1)])==null?!0x1:_0x1f0b3c}};}[_0x5c01d6(0x12f)](_0x90018e){const _0x4316dd=_0x5c01d6;var _0x41d65b;let _0x506550=(_0x41d65b=this[_0x4316dd(0x1c6)]['getDrawingData'](_0x90018e['unitId'],_0x90018e[_0x4316dd(0x1c0)]))==null?{}:_0x41d65b;return Object[_0x4316dd(0x1d7)](_0x506550)['filter'](_0x1d74a6=>(_0x1d74a6==null?void 0x0:_0x1d74a6[_0x4316dd(0x1d0)])===_0x3fcfb7[_0x4316dd(0x12d)])[_0x4316dd(0x1ac)](_0x476242=>this[_0x4316dd(0x144)]({..._0x90018e,'shapeId':_0x476242[_0x4316dd(0x1a1)]}))['filter'](_0x1ff12b=>!!_0x1ff12b);}[_0x5c01d6(0x1c2)](_0x7a3b74,_0x2aa345){const _0x311b77=_0x5c01d6;var _0x4e2795,_0x327c46,_0x344af1,_0x204697,_0x13e62c,_0x446afd,_0x17ac12,_0x55f5ca,_0x3f3dc2,_0x345342,_0x40e2f7,_0x5f4f3d,_0x4338e8,_0x50e715,_0x550e0a,_0x4c57e1,_0x28216b,_0x3cb480,_0x3239de;let _0x3cfc48=_0x518436(),_0xe84784={'left':(_0x4e2795=(_0x327c46=_0x2aa345[_0x311b77(0x1d8)])==null?void 0x0:_0x327c46[_0x311b77(0x125)])==null?0x0:_0x4e2795,'top':(_0x344af1=(_0x204697=_0x2aa345[_0x311b77(0x1d8)])==null?void 0x0:_0x204697[_0x311b77(0x1d6)])==null?0x0:_0x344af1,'width':(_0x13e62c=(_0x446afd=_0x2aa345[_0x311b77(0x1d8)])==null?void 0x0:_0x446afd[_0x311b77(0x18d)])==null?0xc8:_0x13e62c,'height':(_0x17ac12=(_0x55f5ca=_0x2aa345['transform'])==null?void 0x0:_0x55f5ca[_0x311b77(0x137)])==null?0xc8:_0x17ac12,'rotation':(_0x3f3dc2=(_0x345342=_0x2aa345['transform'])==null?void 0x0:_0x345342[_0x311b77(0x167)])==null?0x0:_0x3f3dc2,'flipX':(_0x40e2f7=(_0x5f4f3d=_0x2aa345[_0x311b77(0x1d8)])==null?void 0x0:_0x5f4f3d[_0x311b77(0x13b)])==null?!0x1:_0x40e2f7,'flipY':(_0x4338e8=(_0x50e715=_0x2aa345[_0x311b77(0x1d8)])==null?void 0x0:_0x50e715[_0x311b77(0x1b1)])==null?!0x1:_0x4338e8};return this[_0x311b77(0x18f)]['syncExecuteCommand'](Q['id'],{'unitId':_0x7a3b74[_0x311b77(0x1b9)],'subUnitId':_0x7a3b74[_0x311b77(0x1c0)],'shapeId':_0x3cfc48,'shapeType':_0x2aa345[_0x311b77(0x128)],'shapeData':_0x2aa345[_0x311b77(0x18b)],'name':_0x2aa345[_0x311b77(0x146)],'description':_0x2aa345[_0x311b77(0x191)],'position':{'x':_0xe84784[_0x311b77(0x125)],'y':_0xe84784[_0x311b77(0x1d6)]},'width':_0xe84784[_0x311b77(0x18d)],'height':_0xe84784['height'],'rotation':_0xe84784['rotation'],'flipX':_0xe84784[_0x311b77(0x13b)],'flipY':_0xe84784[_0x311b77(0x1b1)],'visible':(_0x550e0a=_0x2aa345['visible'])==null?!0x0:_0x550e0a,'selectable':(_0x4c57e1=_0x2aa345[_0x311b77(0x15b)])==null?!0x0:_0x4c57e1})?{..._0x7a3b74,'shapeId':_0x3cfc48,'shapeType':_0x2aa345[_0x311b77(0x128)],'shapeData':_0xfd6b8f[_0x311b77(0x170)]((_0x28216b=_0x2aa345[_0x311b77(0x18b)])==null?{}:_0x28216b),'name':_0x2aa345[_0x311b77(0x146)],'description':_0x2aa345['description'],'visible':(_0x3cb480=_0x2aa345[_0x311b77(0x136)])==null?!0x0:_0x3cb480,'selectable':(_0x3239de=_0x2aa345[_0x311b77(0x15b)])==null?!0x0:_0x3239de,'transform':_0xe84784}:null;}['updateShape'](_0x13ae18,_0x288f25){const _0x33b2ab=_0x5c01d6;var _0x16ba9d,_0x50b3d5,_0x1c99ef,_0x152c96,_0x4913ff,_0x381014;let _0x143417=this[_0x33b2ab(0x144)](_0x13ae18);if(!_0x143417)return!0x1;let _0x5cb95f={..._0x143417[_0x33b2ab(0x1d8)],..._0x288f25[_0x33b2ab(0x1d8)]};return this[_0x33b2ab(0x18f)][_0x33b2ab(0x1b2)](ne['id'],{'unitId':_0x13ae18[_0x33b2ab(0x1b9)],'subUnitId':_0x13ae18[_0x33b2ab(0x1c0)],'shapeId':_0x13ae18[_0x33b2ab(0x142)],'shapeType':(_0x16ba9d=(_0x50b3d5=_0x288f25[_0x33b2ab(0x128)])==null?(_0x1c99ef=_0x288f25[_0x33b2ab(0x18b)])==null?void 0x0:_0x1c99ef[_0x33b2ab(0x128)]:_0x50b3d5)==null?_0x143417['shapeType']:_0x16ba9d,'shapeData':(_0x152c96=_0x288f25[_0x33b2ab(0x18b)])==null?_0x143417[_0x33b2ab(0x18b)]:_0x152c96,'position':{'x':_0x5cb95f[_0x33b2ab(0x125)],'y':_0x5cb95f[_0x33b2ab(0x1d6)]},'width':_0x5cb95f[_0x33b2ab(0x18d)],'height':_0x5cb95f[_0x33b2ab(0x137)],'rotation':_0x5cb95f[_0x33b2ab(0x167)],'flipX':_0x5cb95f['flipX'],'flipY':_0x5cb95f['flipY'],'name':'name'in _0x288f25?_0x288f25[_0x33b2ab(0x146)]:_0x143417[_0x33b2ab(0x146)],'description':'description'in _0x288f25?_0x288f25['description']:_0x143417[_0x33b2ab(0x191)],'visible':(_0x4913ff=_0x288f25[_0x33b2ab(0x136)])==null?_0x143417[_0x33b2ab(0x136)]:_0x4913ff,'selectable':(_0x381014=_0x288f25[_0x33b2ab(0x15b)])==null?_0x143417[_0x33b2ab(0x15b)]:_0x381014});}['removeShape'](_0x238043){const _0x2a7146=_0x5c01d6;return this[_0x2a7146(0x18f)][_0x2a7146(0x1b2)](_0x4cbcd6['id'],{'unitId':_0x238043[_0x2a7146(0x1b9)],'drawings':[{'unitId':_0x238043[_0x2a7146(0x1b9)],'subUnitId':_0x238043[_0x2a7146(0x1c0)],'drawingId':_0x238043[_0x2a7146(0x142)],'drawingType':_0x3fcfb7[_0x2a7146(0x12d)]}]});}[_0x5c01d6(0x1ba)](_0x290d12){const _0xa2c3a5=_0x5c01d6;return this[_0xa2c3a5(0x14e)](_0x290d12,_0x4abaa6[_0xa2c3a5(0x14a)]);}[_0x5c01d6(0x1c1)](_0xec8af4){const _0x101875=_0x5c01d6;return this[_0x101875(0x14e)](_0xec8af4,_0x4abaa6['forward']);}[_0x5c01d6(0x199)](_0x237bab){const _0x23c817=_0x5c01d6;return this[_0x23c817(0x14e)](_0x237bab,_0x4abaa6[_0x23c817(0x1a9)]);}[_0x5c01d6(0x135)](_0x3c992a){const _0x38f657=_0x5c01d6;return this['_arrange'](_0x3c992a,_0x4abaa6[_0x38f657(0x19d)]);}['_arrange'](_0x4936d6,_0x7b6ea1){const _0x37bad8=_0x5c01d6;return this[_0x37bad8(0x18f)]['syncExecuteCommand'](_0xc2414d['id'],{'unitId':_0x4936d6['unitId'],'subUnitId':_0x4936d6[_0x37bad8(0x1c0)],'drawingIds':[_0x4936d6[_0x37bad8(0x142)]],'arrangeType':_0x7b6ea1});}};function _0x301a(){const _0x76396c=['hostType','_groupIds','flipY','syncExecuteCommand','sheet.command.set-shape-text-vertical-toggle','data','length','call','sheet.mutation.update-shape-data','pushUndoRedo','unitId','bringToFront','50VNPFHA','getEndConnectInfo','getOwnPropertyDescriptor','getShapeType','_config','subUnitId','bringForward','createShape','insertShape','fromJSON','getConnectionSiteList','_drawingService','params','isFrom','INSERT','toPrimitive','clear','_addLineRerouteUpdates','onStarting','94470ssPmkO','redos','drawingType','object','from','sheet.command.set-shape-rotate','stringify','registerPluginResource','top','values','transform','23622okLSew','forEach','243008obVhIH','1111024ItDREk','left','UNIVER_SHEET','3272388WPOhhZ','shapeType','_sheetInterceptorService','packageName','getName','string','DRAWING_SHAPE','defineProperty','listShapes','50dRtswR','242KdmvRv','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','getCellWithCoordByIndex','index','sendToBack','visible','height','_drawingManagerService','getShapeDisplayNames','cos','flipX','SHEET_SHAPE_PLUGIN','getDrawingData','getAdjustValueByName','_injector','resizeEnabled','preUndos','shapeId','removeShape','getShape','_resourcesManagerService','name','symbol','getShapeModel','getShapeData','front','_sheetsShapeService','_serializeShapeForUnit','getBatchUpdateOp','_arrange','onCommandExecute','prototype','getBatchAddOp','constructor','cxnIndex','MUTATION','has','setShapeData','undos','hasShape','setConfig','angle','selectable','rotateEnabled','sheet.command.insert-shape','removeLinePoints','2775645mcUfUr','416093yqGZrs','fill','filter','sin','isHorizontal','1.0.0-alpha.5','pluginName','rotation','lineShapeId','COMMAND','sheet.mutation.insert-shape','sheet.command.toggle-shape-flip','result','range','decorate','type','deepClone','_shapeService','getShapeTypeById','_addLineFollowShapeUpdates','preRedos','register','interceptCommand','getSkeleton','_configService','parse','_shapeModelManagerMap','_linesIds','getShapeTextData','getAdjustNames','_ensureShapeModelManager','adjustValues','UPDATE','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getShapeDataById','getShapeRelation','_shapes','sheet.command.update-line-shape-resize','keys','getDrawingByParam','disposeWithMe','push','hidden','shapeData','getLineShapeRelation','width','worldRect','_commandService','_initCommands','description','REMOVE','ensureSkeleton','_initCommandInterceptor','delete','toJSON','_initSnapshot','find','sendBackward','sheets-shape.config','_sheetSkeletonService','getStartConnectInfo','back','ang','relation','get','drawingId','startX','getBasicShapeRelation','addShape','_deserializeShapeForUnit','set','sheet.command.update-connector-relation','dispose','backward','borderEnabled','add','map','_getConnectPointInfo','registerCommand'];_0x301a=function(){return _0x76396c;};return _0x301a();}de=J([q(0x0,_0x5c6888),q(0x1,_0x36bfee(Y)),q(0x2,_0xf49d13)],de);const fe={};let pe=class extends _0x1dc17c{constructor(_0x3bc6ad,_0x48392b,_0x570c20,_0x17f2fc,_0x174fb7,_0x4d4c2d,_0x5b42c7){const _0x22ac01=_0x5c01d6;super(),this[_0x22ac01(0x18f)]=_0x3bc6ad,this[_0x22ac01(0x129)]=_0x48392b,this[_0x22ac01(0x19b)]=_0x570c20,this[_0x22ac01(0x14b)]=_0x17f2fc,this[_0x22ac01(0x138)]=_0x174fb7,this['_shapeHostAdapterRegistry']=_0x4d4c2d,this[_0x22ac01(0x190)](),this[_0x22ac01(0x194)](),this[_0x22ac01(0x188)](this['_shapeHostAdapterRegistry'][_0x22ac01(0x175)](_0x5b42c7));}[_0x5c01d6(0x190)](){const _0x4061ac=_0x5c01d6;[Q,ne,re,ie,ae,oe,se,X,Z,ce,$][_0x4061ac(0x1da)](_0x54e541=>this['disposeWithMe'](this[_0x4061ac(0x18f)][_0x4061ac(0x1ae)](_0x54e541)));}[_0x5c01d6(0x194)](){const _0x5a4cae=_0x5c01d6;this[_0x5a4cae(0x188)](this[_0x5a4cae(0x129)][_0x5a4cae(0x176)]({'getMutations':_0x1f7727=>{const _0x1618ce=_0x5a4cae;if(_0x1f7727['id']===_0x4cbcd6['id']){let {drawings:_0x35ed58}=_0x1f7727['params'],_0x20ee97=_0x35ed58['filter'](_0x108534=>_0x108534[_0x1618ce(0x1d0)]===_0x3fcfb7['DRAWING_SHAPE']);if(_0x20ee97[_0x1618ce(0x1b5)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x54c6ff=[],_0x44b941=[];return _0x20ee97[_0x1618ce(0x1da)](_0x26811a=>{const _0x47ced4=_0x1618ce;let {unitId:_0x21274b,subUnitId:_0x1bf8f5,drawingId:_0x5cd9b2}=_0x26811a,_0x10f28c=this[_0x47ced4(0x14b)]['getShapeModel'](_0x21274b,_0x1bf8f5,_0x5cd9b2);if(!_0x10f28c)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x10f28c);_0x54c6ff[_0x47ced4(0x189)]({'id':Z['id'],'params':{'unitId':_0x21274b,'subUnitId':_0x1bf8f5,'shapeId':_0x5cd9b2}}),_0x44b941[_0x47ced4(0x189)]({'id':X['id'],'params':{'unitId':_0x21274b,'subUnitId':_0x1bf8f5,'shapeId':_0x5cd9b2,'shapeType':_0x10f28c[_0x47ced4(0x1be)](),'shapeData':_0x10f28c[_0x47ced4(0x149)]()}});let _0xfb2c58=this[_0x47ced4(0x14b)][_0x47ced4(0x1a3)](_0x21274b,_0x1bf8f5,_0x5cd9b2);if(_0xfb2c58)for(let _0x44d731 of _0xfb2c58){let _0x179967=_0x44d731[_0x47ced4(0x168)],_0x1aa392=_0x44d731[_0x47ced4(0x1c8)],_0x178973=_0x1aa392?{'from':void 0x0}:{'to':void 0x0},_0x3dee37=_0x1aa392?{'from':{'shapeId':_0x44d731[_0x47ced4(0x142)],'cxnIndex':_0x44d731[_0x47ced4(0x153)]}}:{'to':{'shapeId':_0x44d731[_0x47ced4(0x142)],'cxnIndex':_0x44d731[_0x47ced4(0x153)]}};_0x54c6ff['push']({'id':$['id'],'params':{'unitId':_0x21274b,'subUnitId':_0x1bf8f5,'shapeId':_0x179967,'shapeData':{'relation':_0x178973}}}),_0x44b941['push']({'id':$['id'],'params':{'unitId':_0x21274b,'subUnitId':_0x1bf8f5,'shapeId':_0x179967,'shapeData':{'relation':_0x3dee37}}});}}),{'preRedos':_0x54c6ff,'redos':[],'preUndos':[],'undos':_0x44b941};}if(_0x1f7727['id']===_0xbe173f['id']){let {drawings:_0x1b4da1}=_0x1f7727[_0x1618ce(0x1c7)],_0x251eb1=_0x1b4da1[_0x1618ce(0x162)](_0x1d9fd5=>_0x1d9fd5[_0x1618ce(0x1d0)]===_0x3fcfb7[_0x1618ce(0x12d)]);if(_0x251eb1['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x20797b=[],_0x2071ba=[];for(let _0x55a20d of _0x251eb1){let {unitId:_0x43da7a,subUnitId:_0xb7fa1d,drawingId:_0x5dbc59,transform:_0x2d45dc}=_0x55a20d;if(!_0x43da7a||!_0xb7fa1d||!_0x5dbc59||!_0x2d45dc)continue;let _0x487490=this['_sheetsShapeService'][_0x1618ce(0x148)](_0x43da7a,_0xb7fa1d,_0x5dbc59);if(!_0x487490)throw TypeError(_0x1618ce(0x132)+_0x487490);if(_0x517c66(_0x487490[_0x1618ce(0x1be)]())){let _0x159d28=this[_0x1618ce(0x14b)][_0x1618ce(0x18c)](_0x43da7a,_0xb7fa1d,_0x5dbc59);_0x159d28&&(_0x20797b[_0x1618ce(0x189)]({'id':$['id'],'params':{'unitId':_0x43da7a,'subUnitId':_0xb7fa1d,'shapeId':_0x5dbc59,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x2071ba['push']({'id':$['id'],'params':{'unitId':_0x43da7a,'subUnitId':_0xb7fa1d,'shapeId':_0x5dbc59,'shapeData':{'relation':_0x159d28}}}));}else{let _0x25464f=this[_0x1618ce(0x14b)][_0x1618ce(0x1a3)](_0x43da7a,_0xb7fa1d,_0x5dbc59);if(_0x25464f&&_0x25464f[_0x1618ce(0x1b5)]>0x0)for(let _0x5363b5 of _0x25464f){let _0x7762ae=_0x5363b5[_0x1618ce(0x168)],_0x4181cf=_0x5363b5[_0x1618ce(0x1c8)],_0xda93c4=this[_0x1618ce(0x14b)][_0x1618ce(0x148)](_0x43da7a,_0xb7fa1d,_0x7762ae);if(!_0xda93c4)continue;let _0x48974f=_0xda93c4[_0x1618ce(0x19c)](),_0x20bfdd=_0xda93c4[_0x1618ce(0x1bc)]();_0x48974f&&_0x20bfdd?this[_0x1618ce(0x1cc)](_0x43da7a,_0xb7fa1d,_0x7762ae,_0xda93c4,_0x48974f,_0x20bfdd,_0x20797b,_0x2071ba,_0x5dbc59,_0x2d45dc):this[_0x1618ce(0x173)](_0x43da7a,_0xb7fa1d,_0x7762ae,_0xda93c4,_0x4181cf?_0x48974f:_0x20bfdd,_0x4181cf,_0x20797b,_0x2071ba,_0x5dbc59,_0x2d45dc);}}}return{'preRedos':[],'redos':_0x20797b,'preUndos':_0x2071ba,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x5c01d6(0x1ad)](_0xbb1c36,_0x3814aa,_0x1610c0,_0x4932cf,_0x223f7a){const _0x3c031e=_0x5c01d6;if(!_0x3814aa||!_0x1610c0)return null;let {shapeId:_0xf400db,cxnIndex:_0x333ea3}=_0xbb1c36,_0x5d796b=this[_0x3c031e(0x14b)][_0x3c031e(0x148)](_0x3814aa,_0x1610c0,_0xf400db);if(!_0x5d796b)return null;let _0x33f47c=this[_0x3c031e(0x138)][_0x3c031e(0x187)]({'unitId':_0x3814aa,'subUnitId':_0x1610c0,'drawingId':_0xf400db});if(!(_0x33f47c!=null&&_0x33f47c[_0x3c031e(0x1d8)]))return null;let {left:_0x1f32ea=0x0,top:_0x1e2c14=0x0,width:_0x489cc8=0x0,height:_0x56a93c=0x0,flipX:_0x2622bf=!0x1,flipY:_0x289344=!0x1,angle:_0x521b75}=_0x33f47c[_0x3c031e(0x1d8)];if(_0x223f7a&&_0x4932cf===_0xf400db){var _0x77beb5,_0x28f0a7,_0x59451b,_0x3499e6,_0x2cfe77,_0xeb6281,_0x359309;_0x1f32ea=(_0x77beb5=_0x223f7a[_0x3c031e(0x125)])==null?_0x1f32ea:_0x77beb5,_0x1e2c14=(_0x28f0a7=_0x223f7a[_0x3c031e(0x1d6)])==null?_0x1e2c14:_0x28f0a7,_0x489cc8=(_0x59451b=_0x223f7a[_0x3c031e(0x18d)])==null?_0x489cc8:_0x59451b,_0x56a93c=(_0x3499e6=_0x223f7a[_0x3c031e(0x137)])==null?_0x56a93c:_0x3499e6,_0x2622bf=(_0x2cfe77=_0x223f7a[_0x3c031e(0x13b)])==null?_0x2622bf:_0x2cfe77,_0x289344=(_0xeb6281=_0x223f7a[_0x3c031e(0x1b1)])==null?_0x289344:_0xeb6281,_0x521b75=(_0x359309=_0x223f7a['angle'])==null?_0x521b75:_0x359309;}_0x5d796b['updateContext']({'width':_0x489cc8,'height':_0x56a93c});let _0x544594=_0x5d796b[_0x3c031e(0x1c5)]()[_0x3c031e(0x198)](_0x1c1075=>_0x1c1075[_0x3c031e(0x134)]===_0x333ea3);if(!_0x544594)return null;let _0x5a4a54=_0x2622bf?_0x489cc8-_0x544594['x']:_0x544594['x'],_0x330509=_0x289344?_0x56a93c-_0x544594['y']:_0x544594['y'];if(_0x521b75!==0x0&&_0x521b75!=null){let _0x50c80c=_0x521b75*Math['PI']/0xb4,_0x1f4436=Math[_0x3c031e(0x13a)](_0x50c80c),_0x3c5644=Math[_0x3c031e(0x163)](_0x50c80c),_0x56d19d=_0x489cc8/0x2,_0x575126=_0x56a93c/0x2,_0x1d053f=_0x5a4a54-_0x56d19d,_0x22763f=_0x330509-_0x575126;_0x5a4a54=_0x56d19d+_0x1d053f*_0x1f4436-_0x22763f*_0x3c5644,_0x330509=_0x575126+_0x1d053f*_0x3c5644+_0x22763f*_0x1f4436;}_0x5a4a54+=_0x1f32ea,_0x330509+=_0x1e2c14;let _0x4da509=_0x544594[_0x3c031e(0x19e)]/0xea60;_0x2622bf&&(_0x4da509=0xb4-_0x4da509),_0x289344&&(_0x4da509=-_0x4da509),_0x4da509+=_0x521b75||0x0,_0x4da509=(_0x4da509%0x168+0x168)%0x168;let _0x1d29f5=_0x272c36({'left':_0x1f32ea,'top':_0x1e2c14,'width':_0x489cc8,'height':_0x56a93c},_0x521b75||0x0);return{'point':{'x':_0x5a4a54,'y':_0x330509},'angle':_0x4da509,'bounds':_0x1d29f5};}[_0x5c01d6(0x1cc)](_0xf5de38,_0x384901,_0x4b187f,_0x2a4684,_0x32f2f9,_0x5b6807,_0x30e884,_0x96422f,_0x1818cc,_0x5d2c65){const _0x37d804=_0x5c01d6;let _0x3cd87c=this[_0x37d804(0x19b)]['getSkeleton'](_0xf5de38,_0x384901);if(!_0x3cd87c)return;let _0x1fd80e=_0x2a4684[_0x37d804(0x183)](),_0x166440=_0x2a4684[_0x37d804(0x17d)](),_0x41edb7={},_0x221ce5={};_0x166440['forEach'](_0x4f4795=>{const _0x55a7ab=_0x37d804;let _0x245e41=_0x2a4684[_0x55a7ab(0x13e)](_0x4f4795);_0x221ce5[_0x4f4795]=_0x245e41==null?0x0:_0x245e41;});let _0x23a1fe=this[_0x37d804(0x1ad)](_0x32f2f9,_0xf5de38,_0x384901,_0x1818cc,_0x5d2c65),_0x321808=this[_0x37d804(0x1ad)](_0x5b6807,_0xf5de38,_0x384901,_0x1818cc,_0x5d2c65);if(_0x23a1fe&&_0x321808){let _0x48091a=_0x2a4684['getShapeType'](),_0x46bb2f=_0x4cca6c(_0x23a1fe,_0x321808,_0x48091a),_0x4fd590=_0x48091a;if(_0x46bb2f){let _0x442a7e=_0x2fc0b6(_0x46bb2f,_0x2a4684[_0x37d804(0x1be)]()),_0x1292df=this[_0x37d804(0x138)][_0x37d804(0x13d)](_0xf5de38,_0x384901);if(_0x1292df&&_0x1292df[_0x4b187f]){let _0x5d6f48=_0x1292df[_0x4b187f];_0x4fd590=_0x442a7e['lineType'];for(let [_0x227ffd,_0x5e9043]of Object['entries'](_0x442a7e[_0x37d804(0x17f)]))_0x41edb7[_0x227ffd]=_0x5e9043;let _0x49cd6a={..._0x5d6f48[_0x37d804(0x1d8)],'width':_0x442a7e['worldRect'][_0x37d804(0x18d)],'height':_0x442a7e[_0x37d804(0x18e)][_0x37d804(0x137)],'left':_0x442a7e[_0x37d804(0x18e)][_0x37d804(0x125)],'top':_0x442a7e[_0x37d804(0x18e)][_0x37d804(0x1d6)],'flipX':_0x442a7e[_0x37d804(0x18e)]['flipX'],'flipY':_0x442a7e[_0x37d804(0x18e)][_0x37d804(0x1b1)],'angle':_0x442a7e[_0x37d804(0x167)]},_0x248778=_0x526ffb(_0x49cd6a,_0x3cd87c),_0x14ed51=_0x5d5502(_0x49cd6a,_0x3cd87c),_0x1cdd68={'unitId':_0xf5de38,'subUnitId':_0x384901,'drawingType':_0x3fcfb7['DRAWING_SHAPE'],'drawingId':_0x4b187f,'transform':_0x49cd6a,'sheetTransform':_0x248778,'axisAlignSheetTransform':_0x14ed51},{unitId:_0x135f1d,subUnitId:_0x121da7,undo:_0x4d5ba7,redo:_0x482fbc,objects:_0x576706}=this[_0x37d804(0x138)]['getBatchUpdateOp']([_0x1cdd68]);_0x30e884[_0x37d804(0x189)]({'id':_0x187b38['id'],'params':{'unitId':_0x135f1d,'subUnitId':_0x121da7,'op':_0x482fbc,'objects':_0x576706,'type':_0x484cad[_0x37d804(0x180)]}}),_0x96422f[_0x37d804(0x189)]({'id':_0x187b38['id'],'params':{'unitId':_0x135f1d,'subUnitId':_0x121da7,'op':_0x4d5ba7,'objects':_0x576706,'type':_0x484cad[_0x37d804(0x180)]}});}_0x2a4684[_0x37d804(0x15e)]();}_0x30e884['push']({'id':$['id'],'params':{'unitId':_0xf5de38,'subUnitId':_0x384901,'shapeId':_0x4b187f,'shapeType':_0x4fd590,'shapeData':{'adjustValues':_0x41edb7,'relation':_0x1fd80e}}}),_0x96422f[_0x37d804(0x189)]({'id':$['id'],'params':{'unitId':_0xf5de38,'subUnitId':_0x384901,'shapeId':_0x4b187f,'shapeType':_0x48091a,'shapeData':{'adjustValues':_0x221ce5,'relation':_0x1fd80e}}});}}[_0x5c01d6(0x173)](_0x207926,_0x18fad4,_0x480bd5,_0x24c6b5,_0x2836c6,_0xf18b1b,_0x275dfd,_0x2766bb,_0x149ecd,_0x32d614){const _0x1cc19c=_0x5c01d6;var _0x18200b;if(!_0x2836c6)return;let _0x3e3f0c=this[_0x1cc19c(0x19b)][_0x1cc19c(0x177)](_0x207926,_0x18fad4);if(!_0x3e3f0c)return;let _0x290462=(_0x18200b=this[_0x1cc19c(0x138)]['getDrawingByParam']({'unitId':_0x207926,'subUnitId':_0x18fad4,'drawingId':_0x149ecd}))==null?void 0x0:_0x18200b[_0x1cc19c(0x1d8)];if(!_0x290462)return;let _0x1dddb7=_0x290462[_0x1cc19c(0x125)]!==_0x32d614[_0x1cc19c(0x125)]||_0x290462[_0x1cc19c(0x1d6)]!==_0x32d614[_0x1cc19c(0x1d6)],_0x6d4f02=_0x290462[_0x1cc19c(0x18d)]!==_0x32d614[_0x1cc19c(0x18d)]||_0x290462[_0x1cc19c(0x137)]!==_0x32d614[_0x1cc19c(0x137)],_0x3b3c79=_0x290462[_0x1cc19c(0x13b)]!==_0x32d614[_0x1cc19c(0x13b)]||_0x290462[_0x1cc19c(0x1b1)]!==_0x32d614[_0x1cc19c(0x1b1)],_0xe18155=_0x290462['angle']!==_0x32d614['angle'];if(_0x1dddb7&&!_0x6d4f02&&!_0x3b3c79&&!_0xe18155){var _0x28b93c,_0x50a0a6,_0x3cacfa,_0x4e6aed;let _0xc6a0e9=((_0x28b93c=_0x32d614[_0x1cc19c(0x125)])==null?0x0:_0x28b93c)-((_0x50a0a6=_0x290462[_0x1cc19c(0x125)])==null?0x0:_0x50a0a6),_0x56a61a=((_0x3cacfa=_0x32d614[_0x1cc19c(0x1d6)])==null?0x0:_0x3cacfa)-((_0x4e6aed=_0x290462[_0x1cc19c(0x1d6)])==null?0x0:_0x4e6aed),_0x1e08fc=this[_0x1cc19c(0x138)][_0x1cc19c(0x13d)](_0x207926,_0x18fad4);if(_0x1e08fc&&_0x1e08fc[_0x480bd5]){var _0x16e810,_0x49db0e,_0x1a0900,_0x106f8b;let _0x587849=_0x1e08fc[_0x480bd5],_0x10ff9d={..._0x587849['transform'],'left':((_0x16e810=(_0x49db0e=_0x587849[_0x1cc19c(0x1d8)])==null?void 0x0:_0x49db0e[_0x1cc19c(0x125)])==null?0x0:_0x16e810)+_0xc6a0e9,'top':((_0x1a0900=(_0x106f8b=_0x587849[_0x1cc19c(0x1d8)])==null?void 0x0:_0x106f8b[_0x1cc19c(0x1d6)])==null?0x0:_0x1a0900)+_0x56a61a},_0x1b01bf=_0x526ffb(_0x10ff9d,_0x3e3f0c),_0x1f5ee5=_0x5d5502(_0x10ff9d,_0x3e3f0c),_0x4804b0={'unitId':_0x207926,'subUnitId':_0x18fad4,'drawingType':_0x3fcfb7[_0x1cc19c(0x12d)],'drawingId':_0x480bd5,'transform':_0x10ff9d,'sheetTransform':_0x1b01bf,'axisAlignSheetTransform':_0x1f5ee5},{unitId:_0x4127aa,subUnitId:_0x136bf9,undo:_0x2495a6,redo:_0x1fa3f9,objects:_0x159e11}=this[_0x1cc19c(0x138)][_0x1cc19c(0x14d)]([_0x4804b0]);_0x275dfd[_0x1cc19c(0x189)]({'id':_0x187b38['id'],'params':{'unitId':_0x4127aa,'subUnitId':_0x136bf9,'op':_0x1fa3f9,'objects':_0x159e11,'type':_0x484cad['UPDATE']}}),_0x2766bb[_0x1cc19c(0x189)]({'id':_0x187b38['id'],'params':{'unitId':_0x4127aa,'subUnitId':_0x136bf9,'op':_0x2495a6,'objects':_0x159e11,'type':_0x484cad[_0x1cc19c(0x180)]}});}}else{let _0x488e94=_0x24c6b5['getStartConnectInfo'](),_0x473677=_0x24c6b5[_0x1cc19c(0x1bc)]();this[_0x1cc19c(0x1cc)](_0x207926,_0x18fad4,_0x480bd5,_0x24c6b5,_0x488e94,_0x473677,_0x275dfd,_0x2766bb,_0x149ecd,_0x32d614);}}};pe=J([q(0x0,_0x5c6888),q(0x1,_0x36bfee(_0x133228)),q(0x2,_0x36bfee(_0x3c7b6a)),q(0x3,_0x36bfee(Y)),q(0x4,_0x36bfee(_0x42c33a)),q(0x5,_0x36bfee(_0x10d679)),q(0x6,_0x36bfee(de))],pe);let me=class extends _0x9b668a{constructor(_0x327a3e=fe,_0x327364,_0x4d6459){const _0x46c33a=_0x5c01d6;super(),this[_0x46c33a(0x1bf)]=_0x327a3e,this[_0x46c33a(0x13f)]=_0x327364,this['_configService']=_0x4d6459;let {..._0x299861}=_0x12549a({},fe,this[_0x46c33a(0x1bf)]);this[_0x46c33a(0x178)][_0x46c33a(0x159)](_0x46c33a(0x19a),_0x299861);}[_0x5c01d6(0x1cd)](){const _0x2816a7=_0x5c01d6;let _0x96343d=this[_0x2816a7(0x13f)];[[K],[Y],[de],[pe]][_0x2816a7(0x1da)](_0x4e8da5=>_0x96343d[_0x2816a7(0x1ab)](_0x4e8da5)),_0x1f2a99(_0x96343d,[[Y],[pe]]);}};G(me,_0x5c01d6(0x16f),_0xf7260a[_0x5c01d6(0x126)]),G(me,_0x5c01d6(0x166),_0x5c01d6(0x13c)),G(me,_0x5c01d6(0x12a),le),G(me,'version',ue),me=J([_0x59fb5e(_0xaf9fa9,_0x53390e),q(0x1,_0x36bfee(_0x2fd07f)),q(0x2,_0x344a70)],me);export{V as DEFAULT_SHAPE_HEIGHT,B as DEFAULT_SHAPE_WIDTH,Q as InsertShapeCommand,X as InsertSheetsShapeMutation,Z as RemoveSheetsShapeMutation,ne as SetShapeDrawingDataCommand,ie as SetSheetsShapeRotateCommand,ae as SetSheetsShapeTextVerticalToggleCommand,Y as SheetsShapeService,re as ToggleSheetsShapeFlipCommand,me as UniverSheetsShapePlugin,oe as UpdateConnectorRelationCommand,se as UpdateLineShapeResizeCommand,$ as UpdateSheetsShapeDataMutation,ce as UpdateSheetsShapeTypeMutation};
|
|
1
|
+
function _0x8bf0(){const _0x51b4a4=['resizeEnabled','iterator','getAdjustNames','sendToBack','borderEnabled','interceptCommand','add','sheet.mutation.insert-shape','entries','width','default','call','getShapeData','17447650ffdTdI','data','UNIVER_SHEET','onStarting','angle','sheet.command.insert-shape','prototype','getShape','getOwnPropertyDescriptor','getShapeTypeById','startY','getDrawingData','sheet.command.set-shape-rotate','delete','flipY','7114968xjuKbC','shapeName','sheet.mutation.remove-shape','getLineShapeRelation','syncExecuteCommand','lineShapeId','map','constructor','symbol','registerPluginResource','has','filter','hostType','_config','from','backward','_injector','params','listShapes','updateContext','name','packageName','transform','function','getAdjustValueByName','SHEET_SHAPE_PLUGIN','adjustValues','fromJSON','shapeType','_getConnectPointInfo','rotateEnabled','_sheetsShapeService','isFrom','getName','version','getBasicShapeType','sendBackward','visible','getBatchAddOp','_addLineFollowShapeUpdates','_shapeService','_linesIds','_initSnapshot','unitId','undos','4799045DWmCAO','drawingType','defineProperty','_shapeModelManagerMap','_arrange','1.0.0-alpha.6','description','decorate','keys','COMMAND','dispose','getShapeDataById','toJSON','setShapeType','range','getEndConnectInfo','height','index','onCommandExecute','selectable','getShapeType','4072488hYbLlr','createShape','rotation','bringForward','getBatchUpdateOp','getBasicShapeRelation','setConfig','subUnitId','_shapes','set','UPDATE','lineType','forward','stringify','position','removeShape','getDrawingByParam','length','getConnectionSiteList','_commandService','_shapeHostAdapterRegistry','addShape','INSERT','result','bringToFront','hidden','_configService','sheet.command.update-line-shape-resize','9bddrdC','redos','getShapeRelation','getShapeTextData','getShapeModel','_disposed','_drawingService','1231944bFsCvl','values','shapeData','2730942VznRON','ensureSkeleton','left','MUTATION','pushUndoRedo','68132scVFPP','_resourcesManagerService','isLineShape','clear','_deserializeShapeForUnit','setShapeData','getSkeleton','worldRect','_initCommandInterceptor','push','preUndos','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','fill','deepClone','pluginName','4tKARmW','string','_initCommands','_ensureShapeModelManager','startX','preRedos','hasShape','_addLineRerouteUpdates','shapeId','forEach','top','toPrimitive','DRAWING_SHAPE','object','disposeWithMe','get','getShapeDisplayNames','sheet.command.toggle-shape-flip','sheet.mutation.update-shape-data','_sheetSkeletonService','find','_sheetInterceptorService','getStartConnectInfo','ang','cos','flipX','_groupIds','_drawingManagerService','cxnIndex','sheet.command.set-shape-drawing-data','4UnEcwi','sheet.command.set-shape-text-vertical-toggle'];_0x8bf0=function(){return _0x51b4a4;};return _0x8bf0();}const _0x2cc36b=_0x10a5;(function(_0x448b49,_0x5d7ca6){const _0x5348ed=_0x10a5,_0x42ec1e=_0x448b49();while(!![]){try{const _0xc3bfc2=-parseInt(_0x5348ed(0x1ea))/0x1*(-parseInt(_0x5348ed(0x1db))/0x2)+parseInt(_0x5348ed(0x1d6))/0x3+parseInt(_0x5348ed(0x150))/0x4*(-parseInt(_0x5348ed(0x19b))/0x5)+parseInt(_0x5348ed(0x1d3))/0x6+-parseInt(_0x5348ed(0x16e))/0x7+-parseInt(_0x5348ed(0x1b0))/0x8+parseInt(_0x5348ed(0x1cc))/0x9*(parseInt(_0x5348ed(0x15f))/0xa);if(_0xc3bfc2===_0x5d7ca6)break;else _0x42ec1e['push'](_0x42ec1e['shift']());}catch(_0x5f0323){_0x42ec1e['push'](_0x42ec1e['shift']());}}}(_0x8bf0,0x7cd8d));import{IShapeHostAdapterRegistry as _0x4d6828,ShapeModel as _0x1ef1d1,UniverShapePlugin as _0x328c12,computeConnectorRouteLayout as _0x548310,createUniqueShapeName as _0x5998cb,getBasicShapeRotateBound as _0x59e897,isConnectorShape as _0xe27082,routeConnectorLineShape as _0x29e2b9}from'@univerjs-pro/engine-shape';import{ArrangeTypeEnum as _0x561c61,CommandType as _0x511404,DependentOn as _0x42c1b6,Disposable as _0x43f200,DrawingTypeEnum as _0xf887e9,ICommandService as _0x890563,IConfigService as _0x12f72b,IResourceManagerService as _0x396a14,IUndoRedoService as _0x533e48,IUniverInstanceService as _0xf45f65,Inject as _0x3ca41c,Injector as _0x40ad4c,Plugin as _0x1195b4,Tools as _0x268a59,UniverInstanceType as _0x331193,generateRandomId as _0x636416,merge as _0x461f5d,sequenceExecute as _0x234cbb,touchDependencies as _0x39cac4}from'@univerjs/core';import{SheetInterceptorService as _0x4765d7,SheetSkeletonService as _0xd25a0a,getSheetCommandTarget as _0x1e50ce}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x52e0f1,DrawingApplyType as _0x4ac3c0,ISheetDrawingService as _0x49153e,InsertSheetDrawingCommand as _0x4b8797,RemoveSheetDrawingCommand as _0x399dba,SetDrawingApplyMutation as _0xfb8b27,SetDrawingArrangeCommand as _0x3a89a3,SetSheetDrawingCommand as _0x354f23,transformToAxisAlignPosition as _0x138bbc,transformToDrawingPosition as _0x13c01e}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x84c587}from'@univerjs-pro/license';import{IDrawingManagerService as _0x300b8c}from'@univerjs/drawing';const B=0xc8,V=0xc8;function H(_0x4ff758){'@babel/helpers - typeof';const _0x52c2c2=_0x10a5;return H=typeof Symbol=='function'&&typeof Symbol[_0x52c2c2(0x153)]=='symbol'?function(_0x2b115a){return typeof _0x2b115a;}:function(_0x336016){const _0x41fdbf=_0x52c2c2;return _0x336016&&typeof Symbol==_0x41fdbf(0x185)&&_0x336016[_0x41fdbf(0x175)]===Symbol&&_0x336016!==Symbol[_0x41fdbf(0x165)]?_0x41fdbf(0x176):typeof _0x336016;},H(_0x4ff758);}function U(_0x6e05ba,_0x37e28f){const _0x51c070=_0x10a5;if(H(_0x6e05ba)!=_0x51c070(0x13f)||!_0x6e05ba)return _0x6e05ba;var _0x4bec83=_0x6e05ba[Symbol[_0x51c070(0x13d)]];if(_0x4bec83!==void 0x0){var _0x1d4ffc=_0x4bec83[_0x51c070(0x15d)](_0x6e05ba,_0x37e28f||_0x51c070(0x15c));if(H(_0x1d4ffc)!=_0x51c070(0x13f))return _0x1d4ffc;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x37e28f==='string'?String:Number)(_0x6e05ba);}function W(_0x108642){const _0x38d592=_0x10a5;var _0x2182a3=U(_0x108642,_0x38d592(0x133));return H(_0x2182a3)==_0x38d592(0x176)?_0x2182a3:_0x2182a3+'';}function G(_0x19688d,_0x17226b,_0x8ea129){const _0x50d9a4=_0x10a5;return(_0x17226b=W(_0x17226b))in _0x19688d?Object[_0x50d9a4(0x19d)](_0x19688d,_0x17226b,{'value':_0x8ea129,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x19688d[_0x17226b]=_0x8ea129,_0x19688d;}var K=class extends _0x43f200{constructor(){const _0x44a1c0=_0x10a5;super(),G(this,_0x44a1c0(0x1b8),new Map()),G(this,_0x44a1c0(0x197),new Set()),G(this,_0x44a1c0(0x14c),new Set());}[_0x2cc36b(0x1c5)](_0x5de0ee,_0x5db7f4,_0x21109b,_0x441a6b){const _0x3f722a=_0x2cc36b;let _0x46d608=new _0x1ef1d1(_0x5de0ee,_0x5db7f4,_0x21109b,_0x441a6b);return this[_0x3f722a(0x1b8)][_0x3f722a(0x1b9)](_0x5db7f4,_0x46d608),_0xe27082(_0x5de0ee)&&this[_0x3f722a(0x197)][_0x3f722a(0x158)](_0x5db7f4),_0x46d608;}[_0x2cc36b(0x1b5)](_0x4d13cd){const _0x4a3fe2=_0x2cc36b;let _0xc5bd65=[];for(let _0x1e4113 of this[_0x4a3fe2(0x197)]){let _0x5657c8=this[_0x4a3fe2(0x1b8)][_0x4a3fe2(0x141)](_0x1e4113);if(_0x5657c8){let _0x4b5b3d=_0x5657c8[_0x4a3fe2(0x1ce)]();if(_0x4b5b3d){var _0x12b001,_0x3c06fd;((_0x12b001=_0x4b5b3d['from'])==null?void 0x0:_0x12b001[_0x4a3fe2(0x13a)])===_0x4d13cd&&_0xc5bd65['push']({..._0x4b5b3d[_0x4a3fe2(0x17c)],'lineShapeId':_0x1e4113,'isFrom':!0x0}),((_0x3c06fd=_0x4b5b3d['to'])==null?void 0x0:_0x3c06fd[_0x4a3fe2(0x13a)])===_0x4d13cd&&_0xc5bd65[_0x4a3fe2(0x1e4)]({..._0x4b5b3d['to'],'lineShapeId':_0x1e4113,'isFrom':!0x1});}}}return _0xc5bd65;}[_0x2cc36b(0x171)](_0x2b0b0e){const _0x379eca=_0x2cc36b;let _0x36c49e=this[_0x379eca(0x1b8)][_0x379eca(0x141)](_0x2b0b0e);if(_0x36c49e)return _0x36c49e[_0x379eca(0x1ce)]();}[_0x2cc36b(0x1af)](_0x32083d){const _0x3ef2ce=_0x2cc36b;let _0x5d1675=this[_0x3ef2ce(0x1b8)][_0x3ef2ce(0x141)](_0x32083d);if(_0x5d1675)return _0x5d1675[_0x3ef2ce(0x1af)]();}['hasShape'](_0x49fd35){const _0x80f07e=_0x2cc36b;return this['_shapes'][_0x80f07e(0x178)](_0x49fd35);}[_0x2cc36b(0x142)](){const _0x5ee1e2=_0x2cc36b;return Array['from'](this['_shapes'][_0x5ee1e2(0x1d4)]())[_0x5ee1e2(0x174)](_0x1e7cc0=>_0x1e7cc0[_0x5ee1e2(0x18f)]()||_0x1e7cc0['getId']());}[_0x2cc36b(0x1bf)](_0x478e96){const _0x55a6e1=_0x2cc36b;let _0xb78646=this[_0x55a6e1(0x1b8)]['get'](_0x478e96);_0xb78646&&(_0xe27082(_0xb78646[_0x55a6e1(0x1af)]())&&this['_linesIds'][_0x55a6e1(0x16c)](_0x478e96),this[_0x55a6e1(0x1b8)]['delete'](_0x478e96));}[_0x2cc36b(0x1a7)](){const _0x5000ab=_0x2cc36b;let _0x4a2265=[];return this[_0x5000ab(0x1b8)]['forEach'](_0x5e0ddf=>{const _0x286db0=_0x5000ab;_0x4a2265[_0x286db0(0x1e4)](_0x5e0ddf[_0x286db0(0x1a7)]());}),_0x4a2265;}[_0x2cc36b(0x189)](_0x5e32d1){const _0x43437a=_0x2cc36b;for(let _0x3ceee3 of _0x5e32d1){let {id:_0x27876c,shapeType:_0x57a38c,name:_0x1b24e3}=_0x3ceee3,_0x79fb8d=this[_0x43437a(0x1c5)](_0x57a38c,_0x27876c,_0x3ceee3[_0x43437a(0x1d5)],_0x1b24e3);_0x79fb8d&&_0x79fb8d[_0x43437a(0x1dd)]()&&this[_0x43437a(0x197)]['add'](_0x27876c);}}[_0x2cc36b(0x1a5)](){const _0x2afc6c=_0x2cc36b;this[_0x2afc6c(0x1d1)]||(this['_shapes'][_0x2afc6c(0x13b)](_0x285911=>{const _0x4271c1=_0x2afc6c;_0x285911[_0x4271c1(0x1a5)]();}),this[_0x2afc6c(0x1b8)][_0x2afc6c(0x1de)](),this[_0x2afc6c(0x197)]['clear'](),this[_0x2afc6c(0x14c)]['clear'](),super[_0x2afc6c(0x1a5)]());}};function q(_0x53c9db,_0x24b37){return function(_0x3048e9,_0x58cbba){_0x24b37(_0x3048e9,_0x58cbba,_0x53c9db);};}function J(_0x297361,_0x56961a,_0x339dee,_0x572cee){const _0x153ee1=_0x2cc36b;var _0x2e5915=arguments['length'],_0xd2c8f6=_0x2e5915<0x3?_0x56961a:_0x572cee===null?_0x572cee=Object[_0x153ee1(0x167)](_0x56961a,_0x339dee):_0x572cee,_0x59b71a;if(typeof Reflect=='object'&&typeof Reflect[_0x153ee1(0x1a2)]==_0x153ee1(0x185))_0xd2c8f6=Reflect[_0x153ee1(0x1a2)](_0x297361,_0x56961a,_0x339dee,_0x572cee);else{for(var _0x1b5bf=_0x297361['length']-0x1;_0x1b5bf>=0x0;_0x1b5bf--)(_0x59b71a=_0x297361[_0x1b5bf])&&(_0xd2c8f6=(_0x2e5915<0x3?_0x59b71a(_0xd2c8f6):_0x2e5915>0x3?_0x59b71a(_0x56961a,_0x339dee,_0xd2c8f6):_0x59b71a(_0x56961a,_0x339dee))||_0xd2c8f6);}return _0x2e5915>0x3&&_0xd2c8f6&&Object[_0x153ee1(0x19d)](_0x56961a,_0x339dee,_0xd2c8f6),_0xd2c8f6;}let Y=class extends _0x43f200{constructor(_0x3d952e){const _0x2d0018=_0x2cc36b;super(),this[_0x2d0018(0x1dc)]=_0x3d952e,G(this,_0x2d0018(0x19e),new Map()),this[_0x2d0018(0x198)]();}[_0x2cc36b(0x135)](_0x3012fb,_0x3abd50){const _0x3bc2b2=_0x2cc36b;let _0x46c77e=this[_0x3bc2b2(0x19e)][_0x3bc2b2(0x141)](_0x3012fb);_0x46c77e||(_0x46c77e=new Map(),this[_0x3bc2b2(0x19e)][_0x3bc2b2(0x1b9)](_0x3012fb,_0x46c77e));let _0x3675c5=_0x46c77e[_0x3bc2b2(0x141)](_0x3abd50);return _0x3675c5||(_0x3675c5=new K(),_0x46c77e[_0x3bc2b2(0x1b9)](_0x3abd50,_0x3675c5)),_0x3675c5;}['insertShape'](_0x1383f5,_0x1457a6,_0x3aa560,_0x511c1a,_0x304445,_0x240eff){const _0x1784be=_0x2cc36b;this['_ensureShapeModelManager'](_0x1383f5,_0x1457a6)[_0x1784be(0x1c5)](_0x3aa560,_0x511c1a,_0x304445,_0x240eff);}[_0x2cc36b(0x1bf)](_0x444bc5,_0x55dcef,_0x35d28b){const _0x5b5d35=_0x2cc36b;this[_0x5b5d35(0x135)](_0x444bc5,_0x55dcef)[_0x5b5d35(0x1bf)](_0x35d28b);}[_0x2cc36b(0x191)](_0x180caf,_0x288362,_0x4ecd0f){const _0x532575=_0x2cc36b;return this[_0x532575(0x135)](_0x180caf,_0x288362)[_0x532575(0x1af)](_0x4ecd0f);}['getShapeType'](_0x2da0df,_0x469ab3,_0x3823d5){const _0x520b7d=_0x2cc36b;return this[_0x520b7d(0x135)](_0x2da0df,_0x469ab3)['getShapeType'](_0x3823d5);}[_0x2cc36b(0x138)](_0x49c473,_0x221a66,_0x29e5a3){const _0x20aa95=_0x2cc36b;return this['_ensureShapeModelManager'](_0x49c473,_0x221a66)[_0x20aa95(0x138)](_0x29e5a3);}[_0x2cc36b(0x168)](_0x4ca70c,_0x53f901,_0x381a4b){const _0x39b6bf=_0x2cc36b;return this[_0x39b6bf(0x135)](_0x4ca70c,_0x53f901)[_0x39b6bf(0x1af)](_0x381a4b);}[_0x2cc36b(0x1a6)](_0x59bb7b,_0x37d49c,_0x42e670){const _0x3a6a6c=_0x2cc36b;let _0x3a8e0e=this[_0x3a6a6c(0x135)](_0x59bb7b,_0x37d49c);if(!_0x3a8e0e[_0x3a6a6c(0x1af)](_0x42e670))return;let _0x5a7e83=_0x3a8e0e[_0x3a6a6c(0x1b8)][_0x3a6a6c(0x141)](_0x42e670);if(_0x5a7e83)return _0x5a7e83['getShapeData']();}['getShapeDisplayNames'](_0x43893e,_0x2bf9ad){const _0xef9732=_0x2cc36b;return this[_0xef9732(0x135)](_0x43893e,_0x2bf9ad)[_0xef9732(0x142)]();}[_0x2cc36b(0x1d0)](_0x51c8ad,_0x5b55db,_0x304409){const _0xb54087=_0x2cc36b;return this['_ensureShapeModelManager'](_0x51c8ad,_0x5b55db)[_0xb54087(0x1b8)][_0xb54087(0x141)](_0x304409);}[_0x2cc36b(0x1b5)](_0xa94662,_0x2372b1,_0x5d4fa4){const _0x343918=_0x2cc36b;return this[_0x343918(0x135)](_0xa94662,_0x2372b1)[_0x343918(0x1b5)](_0x5d4fa4);}[_0x2cc36b(0x171)](_0x4ee759,_0x40bc90,_0x3b9352){const _0x626a6d=_0x2cc36b;let _0x68b995=this[_0x626a6d(0x135)](_0x4ee759,_0x40bc90)[_0x626a6d(0x1b8)][_0x626a6d(0x141)](_0x3b9352);if(_0x68b995)return _0x68b995[_0x626a6d(0x1ce)]();}[_0x2cc36b(0x1a8)](){}['_serializeShapeForUnit'](_0x3e78f0){const _0x22ef61=_0x2cc36b;let _0x813e4={},_0x555a03=this[_0x22ef61(0x19e)][_0x22ef61(0x141)](_0x3e78f0);return _0x555a03&&_0x555a03[_0x22ef61(0x13b)]((_0x70fd66,_0x5ef9dd)=>{const _0xcd6e96=_0x22ef61;let _0x49a4b4=_0x70fd66[_0xcd6e96(0x1a7)]();_0x49a4b4[_0xcd6e96(0x1c1)]>0x0&&(_0x813e4[_0x5ef9dd]=_0x49a4b4);}),JSON[_0x22ef61(0x1bd)](_0x813e4);}[_0x2cc36b(0x1df)](_0x55959f,_0x24dde3){const _0xa124ed=_0x2cc36b;Object[_0xa124ed(0x1a3)](_0x24dde3)[_0xa124ed(0x13b)](_0x34f151=>{const _0x118b64=_0xa124ed;this[_0x118b64(0x135)](_0x55959f,_0x34f151)[_0x118b64(0x189)](_0x24dde3[_0x34f151]);});}[_0x2cc36b(0x1a7)](){const _0x3fefa2=_0x2cc36b;let _0x27891a={};return this[_0x3fefa2(0x19e)][_0x3fefa2(0x13b)]((_0x409f38,_0x264b7f)=>{const _0x3c1f52=_0x3fefa2;_0x27891a[_0x264b7f]={},_0x409f38[_0x3c1f52(0x13b)]((_0x23ff27,_0x17f435)=>{const _0x330d04=_0x3c1f52;_0x27891a[_0x264b7f][_0x17f435]=_0x23ff27[_0x330d04(0x1a7)]();});}),_0x27891a;}['fromJSON'](_0x6bd9de){const _0x9604a6=_0x2cc36b;Object[_0x9604a6(0x1a3)](_0x6bd9de)[_0x9604a6(0x13b)](_0x56f11c=>{const _0x4a230a=_0x9604a6;let _0x35852f=_0x6bd9de[_0x56f11c];Object[_0x4a230a(0x1a3)](_0x35852f)[_0x4a230a(0x13b)](_0x934418=>{const _0x551008=_0x4a230a;this['_ensureShapeModelManager'](_0x56f11c,_0x934418)[_0x551008(0x189)](_0x35852f[_0x934418]);});});}[_0x2cc36b(0x198)](){const _0x59f0f4=_0x2cc36b;this[_0x59f0f4(0x1dc)][_0x59f0f4(0x177)]({'pluginName':_0x59f0f4(0x187),'businesses':[_0x331193['UNIVER_SHEET']],'toJson':_0x23bf37=>this['_serializeShapeForUnit'](_0x23bf37),'parseJson':_0xcef4f1=>JSON['parse'](_0xcef4f1),'onLoad':(_0x2db602,_0x39fd0f)=>{this['_deserializeShapeForUnit'](_0x2db602,_0x39fd0f);},'onUnLoad':_0xec258e=>{const _0x446b28=_0x59f0f4;let _0x350e12=this[_0x446b28(0x19e)][_0x446b28(0x141)](_0xec258e);_0x350e12&&(_0x350e12[_0x446b28(0x13b)](_0x14b49b=>{const _0x490053=_0x446b28;_0x14b49b[_0x490053(0x1a5)]();}),this[_0x446b28(0x19e)][_0x446b28(0x16c)](_0xec258e));}});}[_0x2cc36b(0x1a5)](){const _0x56ca34=_0x2cc36b;this[_0x56ca34(0x19e)][_0x56ca34(0x13b)](_0xbb845e=>{const _0x2e5676=_0x56ca34;_0xbb845e[_0x2e5676(0x13b)](_0x2027da=>{const _0x178b17=_0x2e5676;_0x2027da[_0x178b17(0x1a5)]();});});}};Y=J([q(0x0,_0x396a14)],Y);const X={'id':_0x2cc36b(0x159),'type':_0x511404[_0x2cc36b(0x1d9)],'handler':(_0xc5e23d,_0xe397e4)=>{const _0x4da7b3=_0x2cc36b;let {unitId:_0x4241c6,subUnitId:_0x2e60c0,shapeType:_0xe86d8d,shapeId:_0x107678,shapeName:_0x48f2d1,shapeData:_0x53c785}=_0xe397e4;return _0xc5e23d[_0x4da7b3(0x141)](Y)['insertShape'](_0x4241c6,_0x2e60c0,_0xe86d8d,_0x107678,_0x53c785,_0x48f2d1),!0x0;}},Z={'id':_0x2cc36b(0x170),'type':_0x511404[_0x2cc36b(0x1d9)],'handler':(_0x4d0fd1,_0x5c15a6)=>{const _0x55e339=_0x2cc36b;let {unitId:_0x584dd2,subUnitId:_0x489aa9,shapeId:_0x82e0dc}=_0x5c15a6;return _0x4d0fd1[_0x55e339(0x141)](Y)[_0x55e339(0x1bf)](_0x584dd2,_0x489aa9,_0x82e0dc),!0x0;}},Q={'type':_0x511404[_0x2cc36b(0x1a4)],'id':_0x2cc36b(0x164),'handler':(_0x3a7a6f,_0x3c16a7)=>{const _0xb15e7=_0x2cc36b;var _0xb2cf46,_0x17327c,_0x312db5,_0x51d4e6,_0xd0bbf6,_0x5687f8,_0x28a3f6;let _0xeac7ad=_0x1e50ce(_0x3a7a6f[_0xb15e7(0x141)](_0xf45f65),_0x3c16a7);if(!_0xeac7ad)return!0x1;let _0x171020=_0x3a7a6f[_0xb15e7(0x141)](_0xd25a0a),{unitId:_0x125e6f,subUnitId:_0x386aa3}=_0xeac7ad,_0x2d5db9=_0x171020[_0xb15e7(0x1d7)](_0x125e6f,_0x386aa3);if(!_0x2d5db9)return!0x1;let _0x5f43eb=_0x3a7a6f[_0xb15e7(0x141)](_0x890563),_0x128900=_0x3a7a6f[_0xb15e7(0x141)](_0x533e48),_0x15615e=_0x3a7a6f[_0xb15e7(0x141)](_0x4765d7),_0x8b134b=_0x3a7a6f[_0xb15e7(0x141)](_0x49153e),_0xb71078=_0x3a7a6f[_0xb15e7(0x141)](Y),{shapeType:_0x31f234,shapeData:_0x3bc4ba}=_0x3c16a7,_0xee9390=_0x3c16a7['shapeId']||_0x636416(),_0xd5b17b={'unitId':_0x125e6f,'subUnitId':_0x386aa3,'shapeId':_0xee9390,'shapeName':(_0xb2cf46=_0x3c16a7[_0xb15e7(0x16f)])==null?_0x5998cb(_0x31f234,_0xb71078[_0xb15e7(0x142)](_0x125e6f,_0x386aa3)):_0xb2cf46,'shapeType':_0x31f234,'shapeData':_0x3bc4ba},_0x50a334=_0x3c16a7[_0xb15e7(0x15b)]||0xc8,_0x40cd50=_0x3c16a7[_0xb15e7(0x1ab)]||0xc8,_0x4d4ede=0x0,_0x5837ad=0x0;if(_0x3c16a7[_0xb15e7(0x1be)]){let {x:_0x17e765,y:_0xff11c4}=_0x3c16a7[_0xb15e7(0x1be)];_0x4d4ede=_0x17e765,_0x5837ad=_0xff11c4;}else{if(_0x3c16a7[_0xb15e7(0x1a9)]){let {startRow:_0x5ec876,startColumn:_0x532b75}=_0x3c16a7[_0xb15e7(0x1a9)],_0x3b4ab4=_0x2d5db9['getCellWithCoordByIndex'](_0x5ec876,_0x532b75);_0x4d4ede=_0x3b4ab4[_0xb15e7(0x136)]+0xa,_0x5837ad=_0x3b4ab4[_0xb15e7(0x169)]+0xa;}}let _0x24d983={'left':_0x4d4ede,'top':_0x5837ad,'width':_0x50a334,'height':_0x40cd50,'angle':(_0x17327c=_0x3c16a7['rotation'])==null?0x0:_0x17327c,'flipX':(_0x312db5=_0x3c16a7['flipX'])==null?!0x1:_0x312db5,'flipY':(_0x51d4e6=_0x3c16a7[_0xb15e7(0x16d)])==null?!0x1:_0x51d4e6},_0x3d4057=_0x13c01e(_0x24d983,_0x2d5db9),_0x1cfe73=_0x138bbc(_0x24d983,_0x2d5db9),_0x27fccf={'unitId':_0x125e6f,'subUnitId':_0x386aa3,'drawingId':_0xee9390,'drawingType':_0xf887e9[_0xb15e7(0x13e)],'name':_0x3c16a7[_0xb15e7(0x182)],'description':_0x3c16a7[_0xb15e7(0x1a1)],'sheetTransform':_0x3d4057,'transform':_0x24d983,'data':{'shapeType':_0x31f234,'shapeData':_0x3bc4ba},'axisAlignSheetTransform':_0x1cfe73,'allowTransform':!0x0,'hidden':_0x3c16a7[_0xb15e7(0x193)]===!0x1,'selectable':(_0xd0bbf6=_0x3c16a7[_0xb15e7(0x1ae)])==null?!0x0:_0xd0bbf6};_0xe27082(_0x31f234)&&(_0x27fccf[_0xb15e7(0x160)][_0xb15e7(0x1e7)]=!0x1,_0x27fccf[_0xb15e7(0x160)][_0xb15e7(0x18c)]=!0x1,_0x27fccf[_0xb15e7(0x160)]['resizeEnabled']=!0x1,_0x27fccf[_0xb15e7(0x160)][_0xb15e7(0x156)]=!0x1,_0x27fccf[_0xb15e7(0x184)][_0xb15e7(0x18c)]=!0x1,_0x27fccf[_0xb15e7(0x184)][_0xb15e7(0x152)]=!0x1,_0x27fccf[_0xb15e7(0x184)]['borderEnabled']=!0x1);let {undo:_0x32e2,redo:_0x3a4771,objects:_0x83cfe0}=_0x8b134b[_0xb15e7(0x194)]([_0x27fccf]),_0x7a3159=_0x15615e[_0xb15e7(0x1ad)]({'id':_0x4b8797['id'],'params':{'unitId':_0x125e6f,'drawings':[_0x27fccf]}}),_0x58010f=[...(_0x5687f8=_0x7a3159[_0xb15e7(0x137)])==null?[]:_0x5687f8,{'id':_0xfb8b27['id'],'params':{'unitId':_0x125e6f,'subUnitId':_0x386aa3,'op':_0x3a4771,'objects':_0x83cfe0,'type':_0x4ac3c0[_0xb15e7(0x1c6)]}},{'id':_0x52e0f1['id'],'params':[_0x125e6f]},..._0x7a3159[_0xb15e7(0x1cd)],{'id':X['id'],'params':_0xd5b17b}],_0x532675=[{'id':Z['id'],'params':{'unitId':_0x125e6f,'subUnitId':_0x386aa3,'shapeId':_0xee9390}},...(_0x28a3f6=_0x7a3159[_0xb15e7(0x1e5)])==null?[]:_0x28a3f6,{'id':_0xfb8b27['id'],'params':{'unitId':_0x125e6f,'subUnitId':_0x386aa3,'op':_0x32e2,'objects':_0x83cfe0,'type':_0x4ac3c0['REMOVE']}},{'id':_0x52e0f1['id'],'params':[_0x125e6f]},..._0x7a3159['undos']];return _0x234cbb(_0x58010f,_0x5f43eb)[_0xb15e7(0x1c7)]?(_0x128900['pushUndoRedo']({'unitID':_0x125e6f,'undoMutations':_0x532675,'redoMutations':_0x58010f}),!0x0):!0x1;}},$={'id':_0x2cc36b(0x144),'type':_0x511404['MUTATION'],'handler':(_0x5b74c1,_0x1341a7)=>{const _0x118680=_0x2cc36b;let {unitId:_0x2679b1,subUnitId:_0x286aac,shapeType:_0x12860e,shapeId:_0xc1149f,shapeData:_0x5ebfc9}=_0x1341a7,_0x403113=_0x5b74c1[_0x118680(0x141)](Y)[_0x118680(0x1d0)](_0x2679b1,_0x286aac,_0xc1149f);return _0x403113&&(_0x12860e!==void 0x0&&_0x403113[_0x118680(0x1a8)](_0x12860e),_0x5ebfc9&&(_0x403113==null||_0x403113[_0x118680(0x1e0)](_0x5ebfc9,!0x0))),!0x0;}},ne={'type':_0x511404[_0x2cc36b(0x1a4)],'id':_0x2cc36b(0x14f),'handler':(_0x412661,_0x1f8db8)=>{const _0x26c9bc=_0x2cc36b;var _0x387879,_0x45e274,_0x4ab792,_0x161f65,_0x29492b;let _0xefa5b5=_0x1e50ce(_0x412661[_0x26c9bc(0x141)](_0xf45f65),_0x1f8db8);if(!_0xefa5b5)return!0x1;let _0x50f0d8=_0x412661['get'](_0xd25a0a),{unitId:_0x7dbf26,subUnitId:_0x4fac2d}=_0xefa5b5,_0x168433=_0x50f0d8['ensureSkeleton'](_0x7dbf26,_0x4fac2d);if(!_0x168433)return!0x1;let _0x2263dd=_0x412661[_0x26c9bc(0x141)](Y),{shapeId:_0x43ea2a,shapeType:_0x1e215f,shapeData:_0x310e6b,position:_0x43cd58,width:_0x4486a0,height:_0x52b925}=_0x1f8db8,_0x686b04=_0x2263dd[_0x26c9bc(0x1d0)](_0x7dbf26,_0x4fac2d,_0x43ea2a);if(!_0x686b04)return!0x1;let _0x4faf41=_0x412661[_0x26c9bc(0x141)](_0x890563),_0x454764=_0x412661[_0x26c9bc(0x141)](_0x533e48),_0x326f98=_0x412661['get'](_0x4765d7),_0x56f66a=_0x412661[_0x26c9bc(0x141)](_0x49153e),_0x14f077={'unitId':_0x7dbf26,'subUnitId':_0x4fac2d,'shapeId':_0x43ea2a,'shapeType':_0x1e215f,'shapeData':_0x310e6b},_0x1719cf=_0x686b04[_0x26c9bc(0x1af)](),_0x516387=_0x686b04[_0x26c9bc(0x15e)](),{x:_0x572077,y:_0x74121e}=_0x43cd58,_0x51ba93={'left':_0x572077,'top':_0x74121e,'width':_0x4486a0,'height':_0x52b925,'angle':(_0x387879=_0x1f8db8[_0x26c9bc(0x1b2)])==null?0x0:_0x387879,'flipX':(_0x45e274=_0x1f8db8[_0x26c9bc(0x14b)])==null?!0x1:_0x45e274,'flipY':(_0x4ab792=_0x1f8db8[_0x26c9bc(0x16d)])==null?!0x1:_0x4ab792},_0x438951=_0x13c01e(_0x51ba93,_0x168433),_0x1b2163=_0x138bbc(_0x51ba93,_0x168433),_0x704a9b={'unitId':_0x7dbf26,'subUnitId':_0x4fac2d,'drawingId':_0x43ea2a,'drawingType':_0xf887e9[_0x26c9bc(0x13e)],'name':_0x1f8db8[_0x26c9bc(0x182)],'description':_0x1f8db8[_0x26c9bc(0x1a1)],'sheetTransform':_0x438951,'transform':_0x51ba93,'data':{'shapeType':_0x1e215f,'shapeData':_0x310e6b},'axisAlignSheetTransform':_0x1b2163,'allowTransform':!0x0,'hidden':!_0x1f8db8[_0x26c9bc(0x193)],'selectable':_0x1f8db8['selectable']};_0xe27082(_0x1e215f)&&(_0x704a9b[_0x26c9bc(0x160)]['fill']=!0x1,_0x704a9b[_0x26c9bc(0x160)][_0x26c9bc(0x18c)]=!0x1,_0x704a9b['data']['resizeEnabled']=!0x1,_0x704a9b['data'][_0x26c9bc(0x156)]=!0x1,_0x704a9b[_0x26c9bc(0x184)][_0x26c9bc(0x18c)]=!0x1,_0x704a9b['transform'][_0x26c9bc(0x152)]=!0x1,_0x704a9b['transform'][_0x26c9bc(0x156)]=!0x1);let {undo:_0x141f59,redo:_0x4aa87f,objects:_0x2d3a6d}=_0x56f66a[_0x26c9bc(0x1b4)]([_0x704a9b]),_0x48a8a9=_0x326f98[_0x26c9bc(0x1ad)]({'id':_0x354f23['id'],'params':{'unitId':_0x7dbf26,'drawings':[_0x704a9b]}}),_0x395189=[...(_0x161f65=_0x48a8a9[_0x26c9bc(0x137)])==null?[]:_0x161f65,{'id':_0xfb8b27['id'],'params':{'unitId':_0x7dbf26,'subUnitId':_0x4fac2d,'op':_0x4aa87f,'objects':_0x2d3a6d,'type':_0x4ac3c0[_0x26c9bc(0x1ba)]}},{'id':_0x52e0f1['id'],'params':[_0x7dbf26]},..._0x48a8a9[_0x26c9bc(0x1cd)],{'id':$['id'],'params':_0x14f077}],_0x1ccc7d=[...(_0x29492b=_0x48a8a9[_0x26c9bc(0x1e5)])==null?[]:_0x29492b,{'id':_0xfb8b27['id'],'params':{'unitId':_0x7dbf26,'subUnitId':_0x4fac2d,'op':_0x141f59,'objects':_0x2d3a6d,'type':_0x4ac3c0['UPDATE']}},{'id':_0x52e0f1['id'],'params':[_0x7dbf26]},..._0x48a8a9[_0x26c9bc(0x19a)],{'id':$['id'],'params':{'unitId':_0x7dbf26,'subUnitId':_0x4fac2d,'shapeType':_0x1719cf,'shapeId':_0x43ea2a,'shapeData':_0x516387}}];return _0x234cbb(_0x395189,_0x4faf41)[_0x26c9bc(0x1c7)]?(_0x454764['pushUndoRedo']({'unitID':_0x7dbf26,'undoMutations':_0x1ccc7d,'redoMutations':_0x395189}),!0x0):!0x1;}},re={'type':_0x511404[_0x2cc36b(0x1a4)],'id':_0x2cc36b(0x143),'handler':(_0x2265a0,_0x529cb7)=>{const _0x585996=_0x2cc36b;var _0x389046,_0x38c624;let _0x34452d=_0x1e50ce(_0x2265a0[_0x585996(0x141)](_0xf45f65),_0x529cb7);if(!_0x34452d)return!0x1;let _0x56a9d4=_0x2265a0[_0x585996(0x141)](_0xd25a0a),{unitId:_0x184b82,subUnitId:_0x2323f2}=_0x34452d,_0x2b34f9=_0x56a9d4[_0x585996(0x1e1)](_0x184b82,_0x2323f2);if(!_0x2b34f9)return!0x1;let _0x17e31e=_0x2265a0[_0x585996(0x141)](_0x49153e),{shapeId:_0x280f99,flipH:_0x45cdda,flipV:_0x1a3641}=_0x529cb7,_0x1c57c1=_0x17e31e['getDrawingByParam']({'unitId':_0x184b82,'subUnitId':_0x2323f2,'drawingId':_0x280f99});if(!_0x1c57c1)return!0x1;let _0x642bb3=_0x2265a0[_0x585996(0x141)](Y)['getShapeModel'](_0x184b82,_0x2323f2,_0x280f99);if(!_0x642bb3)return!0x1;let _0x29cf84=_0x2265a0[_0x585996(0x141)](_0x890563),_0x283350=_0x2265a0[_0x585996(0x141)](_0x533e48),_0x4218e5=_0x2265a0[_0x585996(0x141)](_0x4765d7),_0x5e3e9c={..._0x1c57c1[_0x585996(0x184)]};_0x45cdda!==void 0x0&&(_0x5e3e9c[_0x585996(0x14b)]=!_0x5e3e9c[_0x585996(0x14b)]),_0x1a3641!==void 0x0&&(_0x5e3e9c[_0x585996(0x16d)]=!_0x5e3e9c[_0x585996(0x16d)]);let _0x35b3b6=_0x13c01e(_0x5e3e9c,_0x2b34f9),_0x3c5f87=_0x138bbc(_0x5e3e9c,_0x2b34f9),_0x1deb9c=_0x642bb3[_0x585996(0x1af)](),_0x55fc5c=_0x642bb3['getShapeData'](),_0x4aa8c7={'unitId':_0x184b82,'subUnitId':_0x2323f2,'drawingId':_0x280f99,'drawingType':_0xf887e9[_0x585996(0x13e)],'sheetTransform':_0x35b3b6,'transform':_0x5e3e9c,'data':{'shapeType':_0x1deb9c,'shapeData':_0x55fc5c},'axisAlignSheetTransform':_0x3c5f87,'allowTransform':!0x0},{undo:_0x432cb2,redo:_0xfbb312,objects:_0x276cb9}=_0x17e31e[_0x585996(0x1b4)]([_0x4aa8c7]),_0x14151d=_0x4218e5[_0x585996(0x1ad)]({'id':_0x354f23['id'],'params':{'unitId':_0x184b82,'drawings':[_0x4aa8c7]}}),_0x1cdc82=[...(_0x389046=_0x14151d[_0x585996(0x137)])==null?[]:_0x389046,{'id':_0xfb8b27['id'],'params':{'unitId':_0x184b82,'subUnitId':_0x2323f2,'op':_0xfbb312,'objects':_0x276cb9,'type':_0x4ac3c0[_0x585996(0x1ba)]}},{'id':_0x52e0f1['id'],'params':[_0x184b82]},..._0x14151d[_0x585996(0x1cd)]],_0x4caaa7=[...(_0x38c624=_0x14151d[_0x585996(0x1e5)])==null?[]:_0x38c624,{'id':_0xfb8b27['id'],'params':{'unitId':_0x184b82,'subUnitId':_0x2323f2,'op':_0x432cb2,'objects':_0x276cb9,'type':_0x4ac3c0[_0x585996(0x1ba)]}},{'id':_0x52e0f1['id'],'params':[_0x184b82]},..._0x14151d[_0x585996(0x19a)]];if(_0xe27082(_0x1deb9c)){let _0x223613=_0x642bb3['getShapeRelation']();if(_0x223613){let _0x436c42={..._0x223613};_0x436c42['from']=void 0x0,_0x436c42['to']=void 0x0,_0x1cdc82[_0x585996(0x1e4)]({'id':$['id'],'params':{'unitId':_0x184b82,'subUnitId':_0x2323f2,'shapeId':_0x280f99,'shapeType':_0x1deb9c,'shapeData':{'relation':_0x436c42}}}),_0x4caaa7['push']({'id':$['id'],'params':{'unitId':_0x184b82,'subUnitId':_0x2323f2,'shapeId':_0x280f99,'shapeType':_0x1deb9c,'shapeData':{'relation':_0x223613}}});}}return _0x234cbb(_0x1cdc82,_0x29cf84)[_0x585996(0x1c7)]?(_0x283350['pushUndoRedo']({'unitID':_0x184b82,'undoMutations':_0x4caaa7,'redoMutations':_0x1cdc82}),!0x0):!0x1;}},ie={'type':_0x511404['COMMAND'],'id':_0x2cc36b(0x16b),'handler':(_0x3e4d90,_0x2d6316)=>{const _0x9cb9bf=_0x2cc36b;var _0x7dfdd4,_0x371667;let _0x7f1535=_0x1e50ce(_0x3e4d90['get'](_0xf45f65),_0x2d6316);if(!_0x7f1535)return!0x1;let _0x93da82=_0x3e4d90[_0x9cb9bf(0x141)](_0xd25a0a),{unitId:_0x4bf926,subUnitId:_0x52f1a8}=_0x7f1535,_0x559972=_0x93da82['getSkeleton'](_0x4bf926,_0x52f1a8);if(!_0x559972)return!0x1;let _0xa0264d=_0x3e4d90[_0x9cb9bf(0x141)](_0x49153e),{shapeId:_0x3c874d,rotate:_0x45f6ba}=_0x2d6316,_0x40acfd=_0xa0264d[_0x9cb9bf(0x1c0)]({'unitId':_0x4bf926,'subUnitId':_0x52f1a8,'drawingId':_0x3c874d});if(!_0x40acfd)return!0x1;let _0x5bb535=_0x3e4d90['get'](Y)[_0x9cb9bf(0x1d0)](_0x4bf926,_0x52f1a8,_0x3c874d);if(!_0x5bb535)return!0x1;let _0x2f89e1=_0x3e4d90[_0x9cb9bf(0x141)](_0x890563),_0x49c8ee=_0x3e4d90[_0x9cb9bf(0x141)](_0x533e48),_0x5dc9f2=_0x3e4d90['get'](_0x4765d7),_0x2ebd95={..._0x40acfd[_0x9cb9bf(0x184)]};_0x45f6ba!==void 0x0&&(_0x2ebd95[_0x9cb9bf(0x163)]=(_0x2ebd95[_0x9cb9bf(0x163)]||0x0)+_0x45f6ba);let _0x444fdd=_0x13c01e(_0x2ebd95,_0x559972),_0x1a31a5=_0x138bbc(_0x2ebd95,_0x559972),_0x3a8c96=_0x5bb535['getShapeType'](),_0x2be8b0=_0x5bb535[_0x9cb9bf(0x15e)](),_0x248bf5={'unitId':_0x4bf926,'subUnitId':_0x52f1a8,'drawingId':_0x3c874d,'drawingType':_0xf887e9[_0x9cb9bf(0x13e)],'sheetTransform':_0x444fdd,'transform':_0x2ebd95,'data':{'shapeType':_0x3a8c96,'shapeData':_0x2be8b0},'axisAlignSheetTransform':_0x1a31a5,'allowTransform':!0x0},{undo:_0x1ebadb,redo:_0x4d9b80,objects:_0x1cf3e6}=_0xa0264d[_0x9cb9bf(0x1b4)]([_0x248bf5]),_0x3093a=_0x5dc9f2[_0x9cb9bf(0x1ad)]({'id':_0x354f23['id'],'params':{'unitId':_0x4bf926,'drawings':[_0x248bf5]}}),_0x400950=[...(_0x7dfdd4=_0x3093a[_0x9cb9bf(0x137)])==null?[]:_0x7dfdd4,{'id':_0xfb8b27['id'],'params':{'unitId':_0x4bf926,'subUnitId':_0x52f1a8,'op':_0x4d9b80,'objects':_0x1cf3e6,'type':_0x4ac3c0['UPDATE']}},{'id':_0x52e0f1['id'],'params':[_0x4bf926]},..._0x3093a[_0x9cb9bf(0x1cd)]],_0x2f9a9e=[...(_0x371667=_0x3093a[_0x9cb9bf(0x1e5)])==null?[]:_0x371667,{'id':_0xfb8b27['id'],'params':{'unitId':_0x4bf926,'subUnitId':_0x52f1a8,'op':_0x1ebadb,'objects':_0x1cf3e6,'type':_0x4ac3c0['UPDATE']}},{'id':_0x52e0f1['id'],'params':[_0x4bf926]},..._0x3093a[_0x9cb9bf(0x19a)]];return _0x234cbb(_0x400950,_0x2f89e1)[_0x9cb9bf(0x1c7)]?(_0x49c8ee[_0x9cb9bf(0x1da)]({'unitID':_0x4bf926,'undoMutations':_0x2f9a9e,'redoMutations':_0x400950}),!0x0):!0x1;}},ae={'type':_0x511404['COMMAND'],'id':_0x2cc36b(0x151),'handler':(_0x5f1ad7,_0x312f9f)=>{const _0x29f3c8=_0x2cc36b;var _0x3b331e;let _0x4b701c=_0x1e50ce(_0x5f1ad7['get'](_0xf45f65),_0x312f9f);if(!_0x4b701c)return!0x1;let {unitId:_0x5dd6d5,subUnitId:_0x41cf83}=_0x4b701c,{shapeId:_0x5afc26}=_0x312f9f,_0x3ed567=_0x5f1ad7['get'](Y)[_0x29f3c8(0x1d0)](_0x5dd6d5,_0x41cf83,_0x5afc26);if(!_0x3ed567)return!0x1;let _0xf52a21=_0x3ed567[_0x29f3c8(0x1cf)](),_0x3eecdf=(_0x3b331e=_0xf52a21==null?void 0x0:_0xf52a21['isHorizontal'])==null?!0x0:_0x3b331e,_0x358622=!_0x3eecdf,_0xd515ef=_0x5f1ad7[_0x29f3c8(0x141)](_0x890563),_0x539bd3=_0x5f1ad7[_0x29f3c8(0x141)](_0x533e48),_0x1543fe={'unitId':_0x5dd6d5,'subUnitId':_0x41cf83,'shapeId':_0x5afc26,'shapeData':{'shapeText':{'isHorizontal':_0x358622}}},_0x13fe21={'unitId':_0x5dd6d5,'subUnitId':_0x41cf83,'shapeId':_0x5afc26,'shapeData':{'shapeText':{'isHorizontal':_0x3eecdf}}},_0x19a7d4=[{'id':$['id'],'params':_0x1543fe}],_0x200a5d=[{'id':$['id'],'params':_0x13fe21}];return _0x234cbb(_0x19a7d4,_0xd515ef)[_0x29f3c8(0x1c7)]?(_0x539bd3[_0x29f3c8(0x1da)]({'unitID':_0x5dd6d5,'undoMutations':_0x200a5d,'redoMutations':_0x19a7d4}),!0x0):!0x1;}},oe={'type':_0x511404[_0x2cc36b(0x1a4)],'id':'sheet.command.update-connector-relation','handler':(_0x5c82da,_0x28b640)=>{const _0x361330=_0x2cc36b;var _0x421630,_0x1c42a1,_0x5083f1,_0x5dadc5;let _0x5d9006=_0x1e50ce(_0x5c82da['get'](_0xf45f65),_0x28b640);if(!_0x5d9006)return!0x1;let _0x1ed7d3=_0x5c82da['get'](_0xd25a0a),{unitId:_0x2738bc,subUnitId:_0xbeb3b2}=_0x5d9006,_0x519fad=_0x1ed7d3[_0x361330(0x1e1)](_0x2738bc,_0xbeb3b2);if(!_0x519fad)return!0x1;let _0x30bae2=_0x5c82da['get'](_0x49153e),{connectorShapeId:_0x29bab9,width:_0x48a3a8,height:_0x2c9edb,left:_0x4e9c4a,top:_0x460267,flipX:_0x16f2da,flipY:_0x4c6b4e,rotation:_0x3ea08e,oldAdjustValues:_0x27784b,newAdjustValues:_0x226c5f,oldLineType:_0x5d118c,newLineType:_0x4e5288,oldRelation:_0x31571a,newRelation:_0x126384}=_0x28b640,_0x455a3c=_0x30bae2[_0x361330(0x1c0)]({'unitId':_0x2738bc,'subUnitId':_0xbeb3b2,'drawingId':_0x29bab9});if(!_0x455a3c)return!0x1;let _0x8cda1a=_0x5c82da['get'](Y)[_0x361330(0x1d0)](_0x2738bc,_0xbeb3b2,_0x29bab9);if(!_0x8cda1a)return!0x1;let _0x25ee6f=_0x5c82da[_0x361330(0x141)](_0x890563),_0x27e0b9=_0x5c82da[_0x361330(0x141)](_0x533e48),_0x5b7536=_0x5c82da[_0x361330(0x141)](_0x4765d7),_0x2fe4b9={..._0x455a3c[_0x361330(0x184)],'width':_0x48a3a8,'height':_0x2c9edb,'left':_0x4e9c4a,'top':_0x460267,'flipX':_0x16f2da,'flipY':_0x4c6b4e,'angle':(_0x421630=_0x3ea08e==null?(_0x1c42a1=_0x455a3c[_0x361330(0x184)])==null?void 0x0:_0x1c42a1[_0x361330(0x163)]:_0x3ea08e)==null?0x0:_0x421630},_0x4fc5d7=_0x13c01e(_0x2fe4b9,_0x519fad),_0xf90653=_0x138bbc(_0x2fe4b9,_0x519fad),_0x3bcfa3=_0x8cda1a[_0x361330(0x1af)](),_0x1cefe2=_0x8cda1a[_0x361330(0x15e)](),_0x1c0ef6={'unitId':_0x2738bc,'subUnitId':_0xbeb3b2,'drawingId':_0x29bab9,'drawingType':_0xf887e9[_0x361330(0x13e)],'sheetTransform':_0x4fc5d7,'transform':_0x2fe4b9,'data':{'shapeType':_0x4e5288||_0x5d118c||_0x3bcfa3,'shapeData':{..._0x1cefe2,'adjustValues':_0x226c5f||_0x27784b||(_0x1cefe2==null?void 0x0:_0x1cefe2[_0x361330(0x188)]),'relation':_0x126384||_0x31571a||(_0x1cefe2==null?void 0x0:_0x1cefe2['relation'])}},'axisAlignSheetTransform':_0xf90653,'allowTransform':!0x0},{undo:_0x2888d3,redo:_0x456321,objects:_0x57059c}=_0x30bae2[_0x361330(0x1b4)]([_0x1c0ef6]),_0x4d9ac7=_0x5b7536[_0x361330(0x1ad)]({'id':_0x354f23['id'],'params':{'unitId':_0x2738bc,'drawings':[_0x1c0ef6]}}),_0x341c5b=[...(_0x5083f1=_0x4d9ac7[_0x361330(0x137)])==null?[]:_0x5083f1,{'id':_0xfb8b27['id'],'params':{'unitId':_0x2738bc,'subUnitId':_0xbeb3b2,'op':_0x456321,'objects':_0x57059c,'type':_0x4ac3c0[_0x361330(0x1ba)]}},{'id':_0x52e0f1['id'],'params':[_0x2738bc]},..._0x4d9ac7['redos'],{'id':$['id'],'params':{'unitId':_0x2738bc,'subUnitId':_0xbeb3b2,'shapeId':_0x29bab9,'shapeType':_0x4e5288,'shapeData':{'adjustValues':_0x226c5f,'relation':_0x126384}}}],_0x9bdbc8=[...(_0x5dadc5=_0x4d9ac7[_0x361330(0x1e5)])==null?[]:_0x5dadc5,{'id':_0xfb8b27['id'],'params':{'unitId':_0x2738bc,'subUnitId':_0xbeb3b2,'op':_0x2888d3,'objects':_0x57059c,'type':_0x4ac3c0[_0x361330(0x1ba)]}},{'id':_0x52e0f1['id'],'params':[_0x2738bc]},..._0x4d9ac7[_0x361330(0x19a)],{'id':$['id'],'params':{'unitId':_0x2738bc,'subUnitId':_0xbeb3b2,'shapeId':_0x29bab9,'shapeType':_0x3bcfa3,'shapeData':{..._0x1cefe2,'adjustValues':_0x27784b||(_0x1cefe2==null?void 0x0:_0x1cefe2[_0x361330(0x188)]),'relation':_0x31571a||(_0x1cefe2==null?void 0x0:_0x1cefe2['relation'])}}}];return _0x234cbb(_0x341c5b,_0x25ee6f)[_0x361330(0x1c7)]?(_0x27e0b9[_0x361330(0x1da)]({'unitID':_0x2738bc,'undoMutations':_0x9bdbc8,'redoMutations':_0x341c5b}),!0x0):!0x1;}},se={'type':_0x511404['COMMAND'],'id':_0x2cc36b(0x1cb),'handler':(_0x24da6e,_0x3156be)=>{const _0x478700=_0x2cc36b;var _0x18c2c1,_0x216e86;let _0x3f3583=_0x1e50ce(_0x24da6e[_0x478700(0x141)](_0xf45f65),_0x3156be);if(!_0x3f3583)return!0x1;let _0x42a9b5=_0x24da6e[_0x478700(0x141)](_0xd25a0a),{unitId:_0x50d047,subUnitId:_0x3e7eb8}=_0x3f3583,_0x351ea4=_0x42a9b5['getSkeleton'](_0x50d047,_0x3e7eb8);if(!_0x351ea4)return!0x1;let _0x4536bd=_0x24da6e[_0x478700(0x141)](_0x49153e),{shapeId:_0x29ca8e,width:_0x57e369,height:_0x17084e,left:_0x46f885,top:_0x28e864,flipX:_0x5834a6,flipY:_0x3bb406,angle:_0x5aad33,oldAdjustValues:_0x37f415,newAdjustValues:_0x11ee6a,oldLineType:_0xd9130b,newLineType:_0x4bdcae}=_0x3156be,_0xd59bfb=_0x4536bd[_0x478700(0x1c0)]({'unitId':_0x50d047,'subUnitId':_0x3e7eb8,'drawingId':_0x29ca8e});if(!_0xd59bfb)return!0x1;let _0x3dcc42=_0x24da6e[_0x478700(0x141)](Y)['getShapeModel'](_0x50d047,_0x3e7eb8,_0x29ca8e);if(!_0x3dcc42)return!0x1;let _0x2c2479=_0x24da6e[_0x478700(0x141)](_0x890563),_0x2b3d05=_0x24da6e['get'](_0x533e48),_0x2def76=_0x24da6e[_0x478700(0x141)](_0x4765d7),_0x34449e={..._0xd59bfb[_0x478700(0x184)],'width':_0x57e369,'height':_0x17084e,'left':_0x46f885,'top':_0x28e864,'flipX':_0x5834a6,'flipY':_0x3bb406,'angle':_0x5aad33},_0x1a8607=_0x13c01e(_0x34449e,_0x351ea4),_0x405b8b=_0x138bbc(_0x34449e,_0x351ea4),_0x3d1fec=_0x3dcc42[_0x478700(0x1af)](),_0x4def23=_0x3dcc42[_0x478700(0x15e)](),_0x249603={'unitId':_0x50d047,'subUnitId':_0x3e7eb8,'drawingId':_0x29ca8e,'drawingType':_0xf887e9['DRAWING_SHAPE'],'sheetTransform':_0x1a8607,'transform':_0x34449e,'data':{'shapeType':_0x4bdcae||_0xd9130b||_0x3d1fec,'shapeData':{..._0x4def23,'adjustValues':_0x11ee6a||_0x37f415||(_0x4def23==null?void 0x0:_0x4def23[_0x478700(0x188)])}},'axisAlignSheetTransform':_0x405b8b,'allowTransform':!0x0},{undo:_0x318e07,redo:_0x456f73,objects:_0x179a4d}=_0x4536bd[_0x478700(0x1b4)]([_0x249603]),_0x7da503=_0x2def76[_0x478700(0x1ad)]({'id':_0x354f23['id'],'params':{'unitId':_0x50d047,'drawings':[_0x249603]}}),_0x204cf1=[...(_0x18c2c1=_0x7da503[_0x478700(0x137)])==null?[]:_0x18c2c1,{'id':_0xfb8b27['id'],'params':{'unitId':_0x50d047,'subUnitId':_0x3e7eb8,'op':_0x456f73,'objects':_0x179a4d,'type':_0x4ac3c0['UPDATE']}},{'id':_0x52e0f1['id'],'params':[_0x50d047]},..._0x7da503[_0x478700(0x1cd)],{'id':$['id'],'params':{'unitId':_0x50d047,'subUnitId':_0x3e7eb8,'shapeId':_0x29ca8e,'shapeType':_0x4bdcae,'shapeData':{'adjustValues':_0x11ee6a}}}],_0x270a98=[...(_0x216e86=_0x7da503[_0x478700(0x1e5)])==null?[]:_0x216e86,{'id':_0xfb8b27['id'],'params':{'unitId':_0x50d047,'subUnitId':_0x3e7eb8,'op':_0x318e07,'objects':_0x179a4d,'type':_0x4ac3c0[_0x478700(0x1ba)]}},{'id':_0x52e0f1['id'],'params':[_0x50d047]},..._0x7da503[_0x478700(0x19a)],{'id':$['id'],'params':{'unitId':_0x50d047,'subUnitId':_0x3e7eb8,'shapeId':_0x29ca8e,'shapeType':_0x3d1fec,'shapeData':{..._0x4def23,'adjustValues':_0x37f415||(_0x4def23==null?void 0x0:_0x4def23['adjustValues'])}}}];return _0x234cbb(_0x204cf1,_0x2c2479)[_0x478700(0x1c7)]?(_0x2b3d05[_0x478700(0x1da)]({'unitID':_0x50d047,'undoMutations':_0x270a98,'redoMutations':_0x204cf1}),!0x0):!0x1;}},ce={'id':'sheet.mutation.update-shape-type','type':_0x511404[_0x2cc36b(0x1d9)],'handler':(_0x3c01af,_0x4a3262)=>{const _0x178d92=_0x2cc36b;let {unitId:_0x2ca952,subUnitId:_0x55a2c7,shapeType:_0x24d4e4,shapeId:_0x1c576b,shapeData:_0x1b091a}=_0x4a3262,_0x5d3994=_0x3c01af[_0x178d92(0x141)](Y)[_0x178d92(0x1d0)](_0x2ca952,_0x55a2c7,_0x1c576b);return _0x5d3994&&(_0x5d3994[_0x178d92(0x1a8)](_0x24d4e4),_0x1b091a&&(_0x5d3994==null||_0x5d3994[_0x178d92(0x1e0)](_0x1b091a))),!0x0;}};var le='@univerjs-pro/sheets-shape',ue=_0x2cc36b(0x1a0);let de=class{constructor(_0x228f69,_0xde4aa9,_0x329ee3){const _0x330026=_0x2cc36b;this[_0x330026(0x1c3)]=_0x228f69,this['_shapeService']=_0xde4aa9,this['_drawingService']=_0x329ee3,G(this,_0x330026(0x17a),_0x331193[_0x330026(0x161)]);}[_0x2cc36b(0x166)](_0x57279a){const _0x214dda=_0x2cc36b;var _0x23fcb8,_0x1d80b1,_0x556128,_0x40b104,_0xee2934,_0x1f2e0e,_0x481834,_0x7feace,_0xfff582;let _0x2de2c0=(_0x23fcb8=this[_0x214dda(0x1d2)]['getDrawingData'](_0x57279a['unitId'],_0x57279a[_0x214dda(0x1b7)]))==null?void 0x0:_0x23fcb8[_0x57279a[_0x214dda(0x13a)]],_0x1be839=this[_0x214dda(0x196)][_0x214dda(0x1af)](_0x57279a[_0x214dda(0x199)],_0x57279a[_0x214dda(0x1b7)],_0x57279a[_0x214dda(0x13a)]);if(!_0x2de2c0||_0x2de2c0['drawingType']!==_0xf887e9[_0x214dda(0x13e)]||!_0x1be839)return null;let _0x1f28a4=_0x2de2c0[_0x214dda(0x184)];return{..._0x57279a,'shapeType':_0x1be839,'shapeData':_0x268a59[_0x214dda(0x1e8)]((_0x1d80b1=this[_0x214dda(0x196)][_0x214dda(0x1a6)](_0x57279a[_0x214dda(0x199)],_0x57279a['subUnitId'],_0x57279a[_0x214dda(0x13a)]))==null?{}:_0x1d80b1),'name':_0x2de2c0[_0x214dda(0x182)],'description':_0x2de2c0['description'],'visible':_0x2de2c0[_0x214dda(0x1c9)]!==!0x0,'selectable':_0x2de2c0[_0x214dda(0x1ae)]!==!0x1,'transform':{'left':(_0x556128=_0x1f28a4==null?void 0x0:_0x1f28a4[_0x214dda(0x1d8)])==null?0x0:_0x556128,'top':(_0x40b104=_0x1f28a4==null?void 0x0:_0x1f28a4['top'])==null?0x0:_0x40b104,'width':(_0xee2934=_0x1f28a4==null?void 0x0:_0x1f28a4['width'])==null?0xc8:_0xee2934,'height':(_0x1f2e0e=_0x1f28a4==null?void 0x0:_0x1f28a4['height'])==null?0xc8:_0x1f2e0e,'rotation':(_0x481834=_0x1f28a4==null?void 0x0:_0x1f28a4['angle'])==null?0x0:_0x481834,'flipX':(_0x7feace=_0x1f28a4==null?void 0x0:_0x1f28a4['flipX'])==null?!0x1:_0x7feace,'flipY':(_0xfff582=_0x1f28a4==null?void 0x0:_0x1f28a4[_0x214dda(0x16d)])==null?!0x1:_0xfff582}};}[_0x2cc36b(0x180)](_0x41cd8f){const _0x35ea21=_0x2cc36b;var _0xa1c7a1;let _0x2848fa=(_0xa1c7a1=this[_0x35ea21(0x1d2)][_0x35ea21(0x16a)](_0x41cd8f[_0x35ea21(0x199)],_0x41cd8f[_0x35ea21(0x1b7)]))==null?{}:_0xa1c7a1;return Object[_0x35ea21(0x1d4)](_0x2848fa)[_0x35ea21(0x179)](_0x369c80=>(_0x369c80==null?void 0x0:_0x369c80[_0x35ea21(0x19c)])===_0xf887e9[_0x35ea21(0x13e)])[_0x35ea21(0x174)](_0x37587f=>this[_0x35ea21(0x166)]({..._0x41cd8f,'shapeId':_0x37587f['drawingId']}))[_0x35ea21(0x179)](_0x2475b4=>!!_0x2475b4);}[_0x2cc36b(0x1b1)](_0x279556,_0x583a67){const _0x31f8e2=_0x2cc36b;var _0x19580b,_0x2d222a,_0x5a1486,_0x24e43c,_0x4152f4,_0x41aab2,_0x1ba462,_0x3937e9,_0x101767,_0x423961,_0xb27631,_0x2448ba,_0x372394,_0x1d1924,_0x124dc2,_0x1e137a,_0x1cea2a,_0x5e3caa,_0x11bae3;let _0x2ed580=_0x636416(),_0x283669={'left':(_0x19580b=(_0x2d222a=_0x583a67['transform'])==null?void 0x0:_0x2d222a[_0x31f8e2(0x1d8)])==null?0x0:_0x19580b,'top':(_0x5a1486=(_0x24e43c=_0x583a67[_0x31f8e2(0x184)])==null?void 0x0:_0x24e43c[_0x31f8e2(0x13c)])==null?0x0:_0x5a1486,'width':(_0x4152f4=(_0x41aab2=_0x583a67[_0x31f8e2(0x184)])==null?void 0x0:_0x41aab2[_0x31f8e2(0x15b)])==null?0xc8:_0x4152f4,'height':(_0x1ba462=(_0x3937e9=_0x583a67[_0x31f8e2(0x184)])==null?void 0x0:_0x3937e9[_0x31f8e2(0x1ab)])==null?0xc8:_0x1ba462,'rotation':(_0x101767=(_0x423961=_0x583a67[_0x31f8e2(0x184)])==null?void 0x0:_0x423961[_0x31f8e2(0x1b2)])==null?0x0:_0x101767,'flipX':(_0xb27631=(_0x2448ba=_0x583a67['transform'])==null?void 0x0:_0x2448ba[_0x31f8e2(0x14b)])==null?!0x1:_0xb27631,'flipY':(_0x372394=(_0x1d1924=_0x583a67[_0x31f8e2(0x184)])==null?void 0x0:_0x1d1924[_0x31f8e2(0x16d)])==null?!0x1:_0x372394};return this[_0x31f8e2(0x1c3)]['syncExecuteCommand'](Q['id'],{'unitId':_0x279556[_0x31f8e2(0x199)],'subUnitId':_0x279556[_0x31f8e2(0x1b7)],'shapeId':_0x2ed580,'shapeType':_0x583a67[_0x31f8e2(0x18a)],'shapeData':_0x583a67['shapeData'],'name':_0x583a67[_0x31f8e2(0x182)],'description':_0x583a67['description'],'position':{'x':_0x283669[_0x31f8e2(0x1d8)],'y':_0x283669[_0x31f8e2(0x13c)]},'width':_0x283669[_0x31f8e2(0x15b)],'height':_0x283669[_0x31f8e2(0x1ab)],'rotation':_0x283669[_0x31f8e2(0x1b2)],'flipX':_0x283669[_0x31f8e2(0x14b)],'flipY':_0x283669[_0x31f8e2(0x16d)],'visible':(_0x124dc2=_0x583a67[_0x31f8e2(0x193)])==null?!0x0:_0x124dc2,'selectable':(_0x1e137a=_0x583a67[_0x31f8e2(0x1ae)])==null?!0x0:_0x1e137a})?{..._0x279556,'shapeId':_0x2ed580,'shapeType':_0x583a67[_0x31f8e2(0x18a)],'shapeData':_0x268a59['deepClone']((_0x1cea2a=_0x583a67['shapeData'])==null?{}:_0x1cea2a),'name':_0x583a67['name'],'description':_0x583a67['description'],'visible':(_0x5e3caa=_0x583a67[_0x31f8e2(0x193)])==null?!0x0:_0x5e3caa,'selectable':(_0x11bae3=_0x583a67[_0x31f8e2(0x1ae)])==null?!0x0:_0x11bae3,'transform':_0x283669}:null;}['updateShape'](_0x321c6b,_0x2d4448){const _0x490b15=_0x2cc36b;var _0x572c20,_0x4b45c9,_0x38fe99,_0x3995d2,_0xd5c45f,_0x18e9a1;let _0x24390f=this[_0x490b15(0x166)](_0x321c6b);if(!_0x24390f)return!0x1;let _0x154553={..._0x24390f[_0x490b15(0x184)],..._0x2d4448[_0x490b15(0x184)]};return this[_0x490b15(0x1c3)][_0x490b15(0x172)](ne['id'],{'unitId':_0x321c6b[_0x490b15(0x199)],'subUnitId':_0x321c6b['subUnitId'],'shapeId':_0x321c6b[_0x490b15(0x13a)],'shapeType':(_0x572c20=(_0x4b45c9=_0x2d4448[_0x490b15(0x18a)])==null?(_0x38fe99=_0x2d4448['shapeData'])==null?void 0x0:_0x38fe99['shapeType']:_0x4b45c9)==null?_0x24390f[_0x490b15(0x18a)]:_0x572c20,'shapeData':(_0x3995d2=_0x2d4448[_0x490b15(0x1d5)])==null?_0x24390f[_0x490b15(0x1d5)]:_0x3995d2,'position':{'x':_0x154553['left'],'y':_0x154553[_0x490b15(0x13c)]},'width':_0x154553[_0x490b15(0x15b)],'height':_0x154553[_0x490b15(0x1ab)],'rotation':_0x154553['rotation'],'flipX':_0x154553[_0x490b15(0x14b)],'flipY':_0x154553[_0x490b15(0x16d)],'name':'name'in _0x2d4448?_0x2d4448[_0x490b15(0x182)]:_0x24390f['name'],'description':_0x490b15(0x1a1)in _0x2d4448?_0x2d4448[_0x490b15(0x1a1)]:_0x24390f[_0x490b15(0x1a1)],'visible':(_0xd5c45f=_0x2d4448[_0x490b15(0x193)])==null?_0x24390f[_0x490b15(0x193)]:_0xd5c45f,'selectable':(_0x18e9a1=_0x2d4448[_0x490b15(0x1ae)])==null?_0x24390f['selectable']:_0x18e9a1});}[_0x2cc36b(0x1bf)](_0xbcd376){const _0x53c89f=_0x2cc36b;return this[_0x53c89f(0x1c3)][_0x53c89f(0x172)](_0x399dba['id'],{'unitId':_0xbcd376['unitId'],'drawings':[{'unitId':_0xbcd376[_0x53c89f(0x199)],'subUnitId':_0xbcd376[_0x53c89f(0x1b7)],'drawingId':_0xbcd376[_0x53c89f(0x13a)],'drawingType':_0xf887e9[_0x53c89f(0x13e)]}]});}[_0x2cc36b(0x1c8)](_0x52b38b){const _0x15bba8=_0x2cc36b;return this[_0x15bba8(0x19f)](_0x52b38b,_0x561c61['front']);}[_0x2cc36b(0x1b3)](_0xd8bab8){const _0x5b15f9=_0x2cc36b;return this[_0x5b15f9(0x19f)](_0xd8bab8,_0x561c61[_0x5b15f9(0x1bc)]);}[_0x2cc36b(0x192)](_0x113b9f){const _0x1e90bf=_0x2cc36b;return this[_0x1e90bf(0x19f)](_0x113b9f,_0x561c61[_0x1e90bf(0x17d)]);}[_0x2cc36b(0x155)](_0x2c13a8){const _0xe24f22=_0x2cc36b;return this[_0xe24f22(0x19f)](_0x2c13a8,_0x561c61['back']);}[_0x2cc36b(0x19f)](_0x3f2d26,_0x3f44a6){const _0x41e6ed=_0x2cc36b;return this[_0x41e6ed(0x1c3)][_0x41e6ed(0x172)](_0x3a89a3['id'],{'unitId':_0x3f2d26[_0x41e6ed(0x199)],'subUnitId':_0x3f2d26['subUnitId'],'drawingIds':[_0x3f2d26[_0x41e6ed(0x13a)]],'arrangeType':_0x3f44a6});}};function _0x10a5(_0x423ff4,_0x160759){_0x423ff4=_0x423ff4-0x133;const _0x8bf05f=_0x8bf0();let _0x10a5c7=_0x8bf05f[_0x423ff4];return _0x10a5c7;}de=J([q(0x0,_0x890563),q(0x1,_0x3ca41c(Y)),q(0x2,_0x49153e)],de);const fe={};let pe=class extends _0x43f200{constructor(_0x19e8e0,_0x45fcdf,_0x5db162,_0x5d60d5,_0x50fbca,_0x4495df,_0x4ef4ab){const _0x2426af=_0x2cc36b;super(),this[_0x2426af(0x1c3)]=_0x19e8e0,this[_0x2426af(0x147)]=_0x45fcdf,this[_0x2426af(0x145)]=_0x5db162,this[_0x2426af(0x18d)]=_0x5d60d5,this[_0x2426af(0x14d)]=_0x50fbca,this['_shapeHostAdapterRegistry']=_0x4495df,this[_0x2426af(0x134)](),this[_0x2426af(0x1e3)](),this[_0x2426af(0x140)](this[_0x2426af(0x1c4)]['register'](_0x4ef4ab));}[_0x2cc36b(0x134)](){const _0x11a3ca=_0x2cc36b;[Q,ne,re,ie,ae,oe,se,X,Z,ce,$][_0x11a3ca(0x13b)](_0x1845d7=>this[_0x11a3ca(0x140)](this[_0x11a3ca(0x1c3)]['registerCommand'](_0x1845d7)));}['_initCommandInterceptor'](){const _0x47a586=_0x2cc36b;this[_0x47a586(0x140)](this[_0x47a586(0x147)][_0x47a586(0x157)]({'getMutations':_0x3f067d=>{const _0xc260d3=_0x47a586;if(_0x3f067d['id']===_0x399dba['id']){let {drawings:_0x426978}=_0x3f067d[_0xc260d3(0x17f)],_0x3029c6=_0x426978[_0xc260d3(0x179)](_0x584cee=>_0x584cee[_0xc260d3(0x19c)]===_0xf887e9[_0xc260d3(0x13e)]);if(_0x3029c6['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2a8423=[],_0x364217=[];return _0x3029c6[_0xc260d3(0x13b)](_0x1e9a78=>{const _0x444768=_0xc260d3;let {unitId:_0x5eb3d0,subUnitId:_0x53b269,drawingId:_0x243271}=_0x1e9a78,_0x80f258=this[_0x444768(0x18d)]['getShapeModel'](_0x5eb3d0,_0x53b269,_0x243271);if(!_0x80f258)throw TypeError(_0x444768(0x1e6)+_0x80f258);_0x2a8423[_0x444768(0x1e4)]({'id':Z['id'],'params':{'unitId':_0x5eb3d0,'subUnitId':_0x53b269,'shapeId':_0x243271}}),_0x364217['push']({'id':X['id'],'params':{'unitId':_0x5eb3d0,'subUnitId':_0x53b269,'shapeId':_0x243271,'shapeType':_0x80f258['getShapeType'](),'shapeData':_0x80f258[_0x444768(0x15e)]()}});let _0xc08318=this[_0x444768(0x18d)][_0x444768(0x1b5)](_0x5eb3d0,_0x53b269,_0x243271);if(_0xc08318)for(let _0x576bdc of _0xc08318){let _0xb3a585=_0x576bdc[_0x444768(0x173)],_0x4a6678=_0x576bdc[_0x444768(0x18e)],_0xe9399e=_0x4a6678?{'from':void 0x0}:{'to':void 0x0},_0x3281dc=_0x4a6678?{'from':{'shapeId':_0x576bdc[_0x444768(0x13a)],'cxnIndex':_0x576bdc[_0x444768(0x14e)]}}:{'to':{'shapeId':_0x576bdc[_0x444768(0x13a)],'cxnIndex':_0x576bdc[_0x444768(0x14e)]}};_0x2a8423[_0x444768(0x1e4)]({'id':$['id'],'params':{'unitId':_0x5eb3d0,'subUnitId':_0x53b269,'shapeId':_0xb3a585,'shapeData':{'relation':_0xe9399e}}}),_0x364217[_0x444768(0x1e4)]({'id':$['id'],'params':{'unitId':_0x5eb3d0,'subUnitId':_0x53b269,'shapeId':_0xb3a585,'shapeData':{'relation':_0x3281dc}}});}}),{'preRedos':_0x2a8423,'redos':[],'preUndos':[],'undos':_0x364217};}if(_0x3f067d['id']===_0x354f23['id']){let {drawings:_0x41d197}=_0x3f067d[_0xc260d3(0x17f)],_0x5268a1=_0x41d197['filter'](_0x168f54=>_0x168f54[_0xc260d3(0x19c)]===_0xf887e9[_0xc260d3(0x13e)]);if(_0x5268a1[_0xc260d3(0x1c1)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x49ba15=[],_0x4ea50f=[];for(let _0x27ff03 of _0x5268a1){let {unitId:_0x417c25,subUnitId:_0x42864b,drawingId:_0x6a1f26,transform:_0x2f3fe1}=_0x27ff03;if(!_0x417c25||!_0x42864b||!_0x6a1f26||!_0x2f3fe1)continue;let _0x30c3a0=this[_0xc260d3(0x18d)]['getShapeModel'](_0x417c25,_0x42864b,_0x6a1f26);if(!_0x30c3a0)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x30c3a0);if(_0xe27082(_0x30c3a0[_0xc260d3(0x1af)]())){let _0x3205ed=this[_0xc260d3(0x18d)]['getLineShapeRelation'](_0x417c25,_0x42864b,_0x6a1f26);_0x3205ed&&(_0x49ba15['push']({'id':$['id'],'params':{'unitId':_0x417c25,'subUnitId':_0x42864b,'shapeId':_0x6a1f26,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x4ea50f[_0xc260d3(0x1e4)]({'id':$['id'],'params':{'unitId':_0x417c25,'subUnitId':_0x42864b,'shapeId':_0x6a1f26,'shapeData':{'relation':_0x3205ed}}}));}else{let _0x5e8fdb=this[_0xc260d3(0x18d)][_0xc260d3(0x1b5)](_0x417c25,_0x42864b,_0x6a1f26);if(_0x5e8fdb&&_0x5e8fdb[_0xc260d3(0x1c1)]>0x0)for(let _0x27c4da of _0x5e8fdb){let _0x49bb10=_0x27c4da['lineShapeId'],_0x39144e=_0x27c4da['isFrom'],_0x518123=this['_sheetsShapeService'][_0xc260d3(0x1d0)](_0x417c25,_0x42864b,_0x49bb10);if(!_0x518123)continue;let _0x5105b1=_0x518123[_0xc260d3(0x148)](),_0x51f0fe=_0x518123[_0xc260d3(0x1aa)]();_0x5105b1&&_0x51f0fe?this[_0xc260d3(0x139)](_0x417c25,_0x42864b,_0x49bb10,_0x518123,_0x5105b1,_0x51f0fe,_0x49ba15,_0x4ea50f,_0x6a1f26,_0x2f3fe1):this[_0xc260d3(0x195)](_0x417c25,_0x42864b,_0x49bb10,_0x518123,_0x39144e?_0x5105b1:_0x51f0fe,_0x39144e,_0x49ba15,_0x4ea50f,_0x6a1f26,_0x2f3fe1);}}}return{'preRedos':[],'redos':_0x49ba15,'preUndos':_0x4ea50f,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x2cc36b(0x18b)](_0x48fe0a,_0x14a4cc,_0x21b350,_0x4a27eb,_0xce3c40){const _0x4e93cd=_0x2cc36b;if(!_0x14a4cc||!_0x21b350)return null;let {shapeId:_0x8e71ac,cxnIndex:_0x328b96}=_0x48fe0a,_0x532335=this[_0x4e93cd(0x18d)][_0x4e93cd(0x1d0)](_0x14a4cc,_0x21b350,_0x8e71ac);if(!_0x532335)return null;let _0x5e3ee8=this[_0x4e93cd(0x14d)][_0x4e93cd(0x1c0)]({'unitId':_0x14a4cc,'subUnitId':_0x21b350,'drawingId':_0x8e71ac});if(!(_0x5e3ee8!=null&&_0x5e3ee8[_0x4e93cd(0x184)]))return null;let {left:_0xdef41f=0x0,top:_0x24540b=0x0,width:_0x237e1c=0x0,height:_0x1a2680=0x0,flipX:_0x1bcc2c=!0x1,flipY:_0x470355=!0x1,angle:_0x1df407}=_0x5e3ee8['transform'];if(_0xce3c40&&_0x4a27eb===_0x8e71ac){var _0x4b6409,_0x460a65,_0x3fd071,_0x312bd8,_0x4f5123,_0xdf87cc,_0x4b03c5;_0xdef41f=(_0x4b6409=_0xce3c40[_0x4e93cd(0x1d8)])==null?_0xdef41f:_0x4b6409,_0x24540b=(_0x460a65=_0xce3c40[_0x4e93cd(0x13c)])==null?_0x24540b:_0x460a65,_0x237e1c=(_0x3fd071=_0xce3c40[_0x4e93cd(0x15b)])==null?_0x237e1c:_0x3fd071,_0x1a2680=(_0x312bd8=_0xce3c40[_0x4e93cd(0x1ab)])==null?_0x1a2680:_0x312bd8,_0x1bcc2c=(_0x4f5123=_0xce3c40[_0x4e93cd(0x14b)])==null?_0x1bcc2c:_0x4f5123,_0x470355=(_0xdf87cc=_0xce3c40['flipY'])==null?_0x470355:_0xdf87cc,_0x1df407=(_0x4b03c5=_0xce3c40['angle'])==null?_0x1df407:_0x4b03c5;}_0x532335[_0x4e93cd(0x181)]({'width':_0x237e1c,'height':_0x1a2680});let _0x4a26ea=_0x532335[_0x4e93cd(0x1c2)]()[_0x4e93cd(0x146)](_0x35aa9f=>_0x35aa9f[_0x4e93cd(0x1ac)]===_0x328b96);if(!_0x4a26ea)return null;let _0x3c91a9=_0x1bcc2c?_0x237e1c-_0x4a26ea['x']:_0x4a26ea['x'],_0x344c8a=_0x470355?_0x1a2680-_0x4a26ea['y']:_0x4a26ea['y'];if(_0x1df407!==0x0&&_0x1df407!=null){let _0x5b50a4=_0x1df407*Math['PI']/0xb4,_0x1e5e19=Math[_0x4e93cd(0x14a)](_0x5b50a4),_0x503f63=Math['sin'](_0x5b50a4),_0x4d9604=_0x237e1c/0x2,_0x1da8b7=_0x1a2680/0x2,_0x5b4d7c=_0x3c91a9-_0x4d9604,_0x21b824=_0x344c8a-_0x1da8b7;_0x3c91a9=_0x4d9604+_0x5b4d7c*_0x1e5e19-_0x21b824*_0x503f63,_0x344c8a=_0x1da8b7+_0x5b4d7c*_0x503f63+_0x21b824*_0x1e5e19;}_0x3c91a9+=_0xdef41f,_0x344c8a+=_0x24540b;let _0x13b16a=_0x4a26ea[_0x4e93cd(0x149)]/0xea60;_0x1bcc2c&&(_0x13b16a=0xb4-_0x13b16a),_0x470355&&(_0x13b16a=-_0x13b16a),_0x13b16a+=_0x1df407||0x0,_0x13b16a=(_0x13b16a%0x168+0x168)%0x168;let _0x52d4e6=_0x59e897({'left':_0xdef41f,'top':_0x24540b,'width':_0x237e1c,'height':_0x1a2680},_0x1df407||0x0);return{'point':{'x':_0x3c91a9,'y':_0x344c8a},'angle':_0x13b16a,'bounds':_0x52d4e6};}[_0x2cc36b(0x139)](_0x3eef8c,_0x1e71a7,_0x29a771,_0x20aa75,_0x5a9d1d,_0xe4498d,_0x2058dc,_0x13ba19,_0x343ae0,_0x552299){const _0x1975c9=_0x2cc36b;let _0xfd42a3=this['_sheetSkeletonService'][_0x1975c9(0x1e1)](_0x3eef8c,_0x1e71a7);if(!_0xfd42a3)return;let _0x48d0b7=_0x20aa75[_0x1975c9(0x1ce)](),_0x22ed41=_0x20aa75[_0x1975c9(0x154)](),_0x463621={},_0x4cdedf={};_0x22ed41[_0x1975c9(0x13b)](_0x3edf3e=>{const _0x148a12=_0x1975c9;let _0x4c61f7=_0x20aa75[_0x148a12(0x186)](_0x3edf3e);_0x4cdedf[_0x3edf3e]=_0x4c61f7==null?0x0:_0x4c61f7;});let _0x12c763=this[_0x1975c9(0x18b)](_0x5a9d1d,_0x3eef8c,_0x1e71a7,_0x343ae0,_0x552299),_0x1e1b2b=this['_getConnectPointInfo'](_0xe4498d,_0x3eef8c,_0x1e71a7,_0x343ae0,_0x552299);if(_0x12c763&&_0x1e1b2b){let _0x379852=_0x20aa75[_0x1975c9(0x1af)](),_0x13a658=_0x29e2b9(_0x12c763,_0x1e1b2b,_0x379852),_0xee6584=_0x379852;if(_0x13a658){let _0x47b2d5=_0x548310(_0x13a658,_0x20aa75[_0x1975c9(0x1af)]()),_0x3289c5=this[_0x1975c9(0x14d)]['getDrawingData'](_0x3eef8c,_0x1e71a7);if(_0x3289c5&&_0x3289c5[_0x29a771]){let _0xa38acd=_0x3289c5[_0x29a771];_0xee6584=_0x47b2d5[_0x1975c9(0x1bb)];for(let [_0x3e8cc1,_0x4898a5]of Object[_0x1975c9(0x15a)](_0x47b2d5[_0x1975c9(0x188)]))_0x463621[_0x3e8cc1]=_0x4898a5;let _0x45abbb={..._0xa38acd[_0x1975c9(0x184)],'width':_0x47b2d5[_0x1975c9(0x1e2)][_0x1975c9(0x15b)],'height':_0x47b2d5['worldRect'][_0x1975c9(0x1ab)],'left':_0x47b2d5[_0x1975c9(0x1e2)][_0x1975c9(0x1d8)],'top':_0x47b2d5['worldRect'][_0x1975c9(0x13c)],'flipX':_0x47b2d5['worldRect'][_0x1975c9(0x14b)],'flipY':_0x47b2d5[_0x1975c9(0x1e2)][_0x1975c9(0x16d)],'angle':_0x47b2d5['rotation']},_0x3c94d2=_0x13c01e(_0x45abbb,_0xfd42a3),_0x5c0387=_0x138bbc(_0x45abbb,_0xfd42a3),_0x2e3ed4={'unitId':_0x3eef8c,'subUnitId':_0x1e71a7,'drawingType':_0xf887e9[_0x1975c9(0x13e)],'drawingId':_0x29a771,'transform':_0x45abbb,'sheetTransform':_0x3c94d2,'axisAlignSheetTransform':_0x5c0387},{unitId:_0x2a3d9d,subUnitId:_0xac1258,undo:_0x241365,redo:_0x254719,objects:_0x4a07c4}=this['_drawingManagerService'][_0x1975c9(0x1b4)]([_0x2e3ed4]);_0x2058dc['push']({'id':_0xfb8b27['id'],'params':{'unitId':_0x2a3d9d,'subUnitId':_0xac1258,'op':_0x254719,'objects':_0x4a07c4,'type':_0x4ac3c0[_0x1975c9(0x1ba)]}}),_0x13ba19['push']({'id':_0xfb8b27['id'],'params':{'unitId':_0x2a3d9d,'subUnitId':_0xac1258,'op':_0x241365,'objects':_0x4a07c4,'type':_0x4ac3c0[_0x1975c9(0x1ba)]}});}_0x20aa75['removeLinePoints']();}_0x2058dc[_0x1975c9(0x1e4)]({'id':$['id'],'params':{'unitId':_0x3eef8c,'subUnitId':_0x1e71a7,'shapeId':_0x29a771,'shapeType':_0xee6584,'shapeData':{'adjustValues':_0x463621,'relation':_0x48d0b7}}}),_0x13ba19[_0x1975c9(0x1e4)]({'id':$['id'],'params':{'unitId':_0x3eef8c,'subUnitId':_0x1e71a7,'shapeId':_0x29a771,'shapeType':_0x379852,'shapeData':{'adjustValues':_0x4cdedf,'relation':_0x48d0b7}}});}}[_0x2cc36b(0x195)](_0x30b29f,_0x43a987,_0x1acedc,_0x52c149,_0x588319,_0x50ba57,_0x2416d8,_0x3915cb,_0x31b5fe,_0x305a5d){const _0x3393fb=_0x2cc36b;var _0x46c9bf;if(!_0x588319)return;let _0x231cc0=this['_sheetSkeletonService']['getSkeleton'](_0x30b29f,_0x43a987);if(!_0x231cc0)return;let _0x4980dd=(_0x46c9bf=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x30b29f,'subUnitId':_0x43a987,'drawingId':_0x31b5fe}))==null?void 0x0:_0x46c9bf[_0x3393fb(0x184)];if(!_0x4980dd)return;let _0x403e8b=_0x4980dd[_0x3393fb(0x1d8)]!==_0x305a5d[_0x3393fb(0x1d8)]||_0x4980dd[_0x3393fb(0x13c)]!==_0x305a5d[_0x3393fb(0x13c)],_0x292875=_0x4980dd['width']!==_0x305a5d[_0x3393fb(0x15b)]||_0x4980dd[_0x3393fb(0x1ab)]!==_0x305a5d[_0x3393fb(0x1ab)],_0x1e2c0f=_0x4980dd[_0x3393fb(0x14b)]!==_0x305a5d['flipX']||_0x4980dd['flipY']!==_0x305a5d['flipY'],_0x2940c4=_0x4980dd['angle']!==_0x305a5d[_0x3393fb(0x163)];if(_0x403e8b&&!_0x292875&&!_0x1e2c0f&&!_0x2940c4){var _0x4c73ba,_0x4e6046,_0x5cbd5d,_0x1703d4;let _0x3f0020=((_0x4c73ba=_0x305a5d[_0x3393fb(0x1d8)])==null?0x0:_0x4c73ba)-((_0x4e6046=_0x4980dd['left'])==null?0x0:_0x4e6046),_0x1f0f0d=((_0x5cbd5d=_0x305a5d[_0x3393fb(0x13c)])==null?0x0:_0x5cbd5d)-((_0x1703d4=_0x4980dd['top'])==null?0x0:_0x1703d4),_0x1222ce=this['_drawingManagerService'][_0x3393fb(0x16a)](_0x30b29f,_0x43a987);if(_0x1222ce&&_0x1222ce[_0x1acedc]){var _0xa464eb,_0x210bbc,_0x4785f5,_0xa596d8;let _0x1e3ab7=_0x1222ce[_0x1acedc],_0x47c456={..._0x1e3ab7[_0x3393fb(0x184)],'left':((_0xa464eb=(_0x210bbc=_0x1e3ab7[_0x3393fb(0x184)])==null?void 0x0:_0x210bbc[_0x3393fb(0x1d8)])==null?0x0:_0xa464eb)+_0x3f0020,'top':((_0x4785f5=(_0xa596d8=_0x1e3ab7[_0x3393fb(0x184)])==null?void 0x0:_0xa596d8[_0x3393fb(0x13c)])==null?0x0:_0x4785f5)+_0x1f0f0d},_0x41902b=_0x13c01e(_0x47c456,_0x231cc0),_0x2d0913=_0x138bbc(_0x47c456,_0x231cc0),_0x58bca0={'unitId':_0x30b29f,'subUnitId':_0x43a987,'drawingType':_0xf887e9[_0x3393fb(0x13e)],'drawingId':_0x1acedc,'transform':_0x47c456,'sheetTransform':_0x41902b,'axisAlignSheetTransform':_0x2d0913},{unitId:_0x2da137,subUnitId:_0x58b836,undo:_0x385a17,redo:_0x4a7cbc,objects:_0xebbcdf}=this[_0x3393fb(0x14d)]['getBatchUpdateOp']([_0x58bca0]);_0x2416d8['push']({'id':_0xfb8b27['id'],'params':{'unitId':_0x2da137,'subUnitId':_0x58b836,'op':_0x4a7cbc,'objects':_0xebbcdf,'type':_0x4ac3c0[_0x3393fb(0x1ba)]}}),_0x3915cb['push']({'id':_0xfb8b27['id'],'params':{'unitId':_0x2da137,'subUnitId':_0x58b836,'op':_0x385a17,'objects':_0xebbcdf,'type':_0x4ac3c0['UPDATE']}});}}else{let _0x1c04c7=_0x52c149[_0x3393fb(0x148)](),_0x3e0b94=_0x52c149[_0x3393fb(0x1aa)]();this[_0x3393fb(0x139)](_0x30b29f,_0x43a987,_0x1acedc,_0x52c149,_0x1c04c7,_0x3e0b94,_0x2416d8,_0x3915cb,_0x31b5fe,_0x305a5d);}}};pe=J([q(0x0,_0x890563),q(0x1,_0x3ca41c(_0x4765d7)),q(0x2,_0x3ca41c(_0xd25a0a)),q(0x3,_0x3ca41c(Y)),q(0x4,_0x3ca41c(_0x300b8c)),q(0x5,_0x3ca41c(_0x4d6828)),q(0x6,_0x3ca41c(de))],pe);let me=class extends _0x1195b4{constructor(_0xc7b479=fe,_0x9f9138,_0x566a72){const _0x24499c=_0x2cc36b;super(),this[_0x24499c(0x17b)]=_0xc7b479,this[_0x24499c(0x17e)]=_0x9f9138,this[_0x24499c(0x1ca)]=_0x566a72;let {..._0x2bb2d2}=_0x461f5d({},fe,this[_0x24499c(0x17b)]);this[_0x24499c(0x1ca)][_0x24499c(0x1b6)]('sheets-shape.config',_0x2bb2d2);}[_0x2cc36b(0x162)](){const _0x166278=_0x2cc36b;let _0x348faf=this['_injector'];[[K],[Y],[de],[pe]][_0x166278(0x13b)](_0x218d2f=>_0x348faf[_0x166278(0x158)](_0x218d2f)),_0x39cac4(_0x348faf,[[Y],[pe]]);}};G(me,'type',_0x331193[_0x2cc36b(0x161)]),G(me,_0x2cc36b(0x1e9),_0x2cc36b(0x187)),G(me,_0x2cc36b(0x183),le),G(me,_0x2cc36b(0x190),ue),me=J([_0x42c1b6(_0x84c587,_0x328c12),q(0x1,_0x3ca41c(_0x40ad4c)),q(0x2,_0x12f72b)],me);export{V as DEFAULT_SHAPE_HEIGHT,B as DEFAULT_SHAPE_WIDTH,Q as InsertShapeCommand,X as InsertSheetsShapeMutation,Z as RemoveSheetsShapeMutation,ne as SetShapeDrawingDataCommand,ie as SetSheetsShapeRotateCommand,ae as SetSheetsShapeTextVerticalToggleCommand,Y as SheetsShapeService,re as ToggleSheetsShapeFlipCommand,me as UniverSheetsShapePlugin,oe as UpdateConnectorRelationCommand,se as UpdateLineShapeResizeCommand,$ as UpdateSheetsShapeDataMutation,ce as UpdateSheetsShapeTypeMutation};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xf24b5=_0x25c9;(function(_0x324fb6,_0x1db016){const _0x2989b9=_0x25c9,_0x1250a9=_0x324fb6();while(!![]){try{const _0x16b367=parseInt(_0x2989b9(0x16b))/0x1+parseInt(_0x2989b9(0x169))/0x2*(parseInt(_0x2989b9(0x181))/0x3)+-parseInt(_0x2989b9(0x172))/0x4*(-parseInt(_0x2989b9(0x161))/0x5)+-parseInt(_0x2989b9(0x166))/0x6*(-parseInt(_0x2989b9(0x16a))/0x7)+parseInt(_0x2989b9(0x165))/0x8*(parseInt(_0x2989b9(0x182))/0x9)+-parseInt(_0x2989b9(0x17c))/0xa*(-parseInt(_0x2989b9(0x15e))/0xb)+parseInt(_0x2989b9(0x15b))/0xc*(-parseInt(_0x2989b9(0x16c))/0xd);if(_0x16b367===_0x1db016)break;else _0x1250a9['push'](_0x1250a9['shift']());}catch(_0x41ebc6){_0x1250a9['push'](_0x1250a9['shift']());}}}(_0x4b67,0x9bf83));import{IShapeHostAdapterRegistry as _0x14c4a7,isConnectorShape as _0x40fc65}from'@univerjs-pro/engine-shape';import{FConnectorShape as _0x2ee254,FShape as _0x1a6be7}from'@univerjs-pro/engine-shape/facade';import{UniverInstanceType as _0x4548b}from'@univerjs/core';function _0x4b67(){const _0x4c27dd=['UNIVER_SHEET','_createShapeHandle','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.','[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22','2339890HmeMqJ','createShape','getShape','warn','top','15XDDiQB','9CsCIFJ','108xFxLzq','_shapeRef','_injector','22zXgtFx','setPosition','getUnitId','95IbaWLI','map','shapeType','\x22\x20and\x20sheet\x20\x22','3273856uDoJTy','410556pTbuzI','listShapes','_getShapeAdapter','18156vGbAIr','126kroCdJ','470814BMtagm','4095026vVIarc','getShapes','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','_getShapeScope','getSheetId','extend','178692FEAfqu','get','getWorkbook','createInstance','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.','\x22\x20was\x20not\x20found.'];_0x4b67=function(){return _0x4c27dd;};return _0x4b67();}function _0x25c9(_0x178a68,_0x2ec63c){_0x178a68=_0x178a68-0x15b;const _0x4b67a9=_0x4b67();let _0x25c9bd=_0x4b67a9[_0x178a68];return _0x25c9bd;}import{FWorksheet as _0x277bae}from'@univerjs/sheets/facade';import{SheetSkeletonService as _0x1e3822,convertPositionCellToSheetOverGrid as _0x24e1f5}from'@univerjs/sheets';var c=class extends _0x1a6be7{[_0xf24b5(0x15f)](_0x10fdff,_0x264370,_0xc1a522,_0x574934){const _0x17922f=_0xf24b5;let {unitId:_0x168bb1,subUnitId:_0x32ab41}=this[_0x17922f(0x15c)],_0x2a1711=this['_injector']['get'](_0x1e3822)['ensureSkeleton'](_0x168bb1,_0x32ab41);if(!_0x2a1711)return console[_0x17922f(0x17f)]('[Sheet\x20Shape\x20Facade]:\x20Skeleton\x20for\x20unit\x20\x22'+_0x168bb1+_0x17922f(0x164)+_0x32ab41+_0x17922f(0x177)),this;let {transform:_0x1f44f7}=_0x24e1f5(_0x168bb1,_0x32ab41,{'row':_0x10fdff,'column':_0x264370,'rowOffset':_0xc1a522,'columnOffset':_0x574934},0x1,0x1,_0x2a1711);return this['setAbsolutePosition'](_0x1f44f7['left'],_0x1f44f7[_0x17922f(0x180)]);}},l=class extends _0x277bae{['insertShape'](_0xfd7641){const _0x27fa50=_0xf24b5;let _0x2452f6=this[_0x27fa50(0x168)]();if(!_0x2452f6)return null;try{let _0x278ec7=_0x2452f6[_0x27fa50(0x17d)](this[_0x27fa50(0x16f)](),_0xfd7641);return _0x278ec7?this[_0x27fa50(0x179)](_0x278ec7):(console[_0x27fa50(0x17f)]('[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.'),null);}catch(_0x37d6cb){return console[_0x27fa50(0x17f)](_0x27fa50(0x17a),_0x37d6cb),null;}}['getShape'](_0x172fd7){const _0x9165b7=_0xf24b5;let _0x2948a7=this[_0x9165b7(0x168)]();if(!_0x2948a7)return null;try{let _0x26f46={...this['_getShapeScope'](),'shapeId':_0x172fd7},_0xb32a00=_0x2948a7[_0x9165b7(0x17e)](_0x26f46);return _0xb32a00?this[_0x9165b7(0x179)](_0xb32a00):(console[_0x9165b7(0x17f)](_0x9165b7(0x17b)+_0x172fd7+'\x22\x20was\x20not\x20found.'),null);}catch(_0xc30c9a){return console['warn'](_0x9165b7(0x16e)+_0x172fd7+'\x22.',_0xc30c9a),null;}}[_0xf24b5(0x16d)](){const _0x1fb0fc=_0xf24b5;let _0x3ed610=this[_0x1fb0fc(0x168)]();if(!_0x3ed610)return[];try{return _0x3ed610[_0x1fb0fc(0x167)](this[_0x1fb0fc(0x16f)]())[_0x1fb0fc(0x162)](_0x17c021=>this[_0x1fb0fc(0x179)](_0x17c021));}catch(_0x1b98eb){return console[_0x1fb0fc(0x17f)](_0x1fb0fc(0x176),_0x1b98eb),[];}}[_0xf24b5(0x16f)](){const _0x10105d=_0xf24b5;return{'hostType':_0x4548b[_0x10105d(0x178)],'unitId':this[_0x10105d(0x174)]()[_0x10105d(0x160)](),'subUnitId':this[_0x10105d(0x170)]()};}[_0xf24b5(0x168)](){const _0x4c75a6=_0xf24b5;return this['_injector'][_0x4c75a6(0x173)](_0x14c4a7)[_0x4c75a6(0x173)](_0x4548b[_0x4c75a6(0x178)]);}[_0xf24b5(0x179)](_0x52cf00){const _0x2f0d3e=_0xf24b5;let {unitId:_0xcbb81,subUnitId:_0x3a96fd,shapeId:_0x2c9bdb}=_0x52cf00,_0x540b2e={'unitId':_0xcbb81,'subUnitId':_0x3a96fd,'shapeId':_0x2c9bdb,'hostType':_0x4548b[_0x2f0d3e(0x178)]};return _0x40fc65(_0x52cf00[_0x2f0d3e(0x163)])?this['_injector'][_0x2f0d3e(0x175)](_0x2ee254,_0x540b2e,this[_0x2f0d3e(0x15d)]):this[_0x2f0d3e(0x15d)][_0x2f0d3e(0x175)](c,_0x540b2e,this['_injector']);}};_0x277bae[_0xf24b5(0x171)](l);export{c as FSheetShape};
|