@univerjs-pro/sheets-shape 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3f22e1=_0x1bc7;(function(_0x5db981,_0x5198e7){const _0x9599e9=_0x1bc7,_0x2153fe=_0x5db981();while(!![]){try{const _0x26cd13=parseInt(_0x9599e9(0x15d))/0x1*(parseInt(_0x9599e9(0xc3))/0x2)+parseInt(_0x9599e9(0x15f))/0x3+-parseInt(_0x9599e9(0x9e))/0x4+-parseInt(_0x9599e9(0xbe))/0x5*(parseInt(_0x9599e9(0xa5))/0x6)+parseInt(_0x9599e9(0xee))/0x7*(-parseInt(_0x9599e9(0x124))/0x8)+parseInt(_0x9599e9(0x161))/0x9*(-parseInt(_0x9599e9(0xfa))/0xa)+parseInt(_0x9599e9(0x120))/0xb;if(_0x26cd13===_0x5198e7)break;else _0x2153fe['push'](_0x2153fe['shift']());}catch(_0x3f0e3b){_0x2153fe['push'](_0x2153fe['shift']());}}}(_0x53c9,0xa6681));import{IShapeHostAdapterRegistry as _0x51e3d2,ShapeModel as _0x1215b9,UniverShapePlugin as _0x2314d4,buildConnectorEndpointUpdate as _0x3f9eae,canApplyShapeFormulaLastValue as _0x1af613,computeConnectorRouteLayout as _0x165dc4,createDefaultInsertedShapeData as _0x51c485,createFreeConnectorPointInfo as _0x37fda8,createUniqueShapeName as _0x1f53d8,getBasicShapeRotateBound as _0x80534b,isConnectorShape as _0x2450e1,resolveConnectorRoutePoints as _0x4edb6b,resolveShapeConnectionPoint as _0x139314,routeConnectorLineShape as _0x3d2433}from'@univerjs-pro/engine-shape';import{ArrangeTypeEnum as _0x297960,CommandType as _0xbb8030,DependentOn as _0x1e127b,Disposable as _0x1fb2da,DrawingTypeEnum as _0x22d16c,ICommandService as _0x145f99,IConfigService as _0x3b65ed,IResourceManagerService as _0x53ac65,IUndoRedoService as _0x1468fe,IUniverInstanceService as _0x1c64e6,Inject as _0x250a7c,Injector as _0x440a2e,Plugin as _0x42693f,Tools as _0x459ecb,UniverInstanceType as _0x450045,generateRandomId as _0x37255f,merge as _0x4e08f3,sequenceExecute as _0x3cbe2a,touchDependencies as _0x4916d2}from'@univerjs/core';function _0x1bc7(_0x3b646c,_0x3b9eaf){_0x3b646c=_0x3b646c-0x8e;const _0x53c932=_0x53c9();let _0x1bc7c2=_0x53c932[_0x3b646c];return _0x1bc7c2;}import{SheetInterceptorService as _0x25d093,SheetSkeletonService as _0x2edf17,UniverSheetsPlugin as _0x2945f8,getSheetCommandTarget as _0x2fd931}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x4010d8,DrawingApplyType as _0x4fc098,ISheetDrawingService as _0x332817,InsertSheetDrawingCommand as _0x43e215,RemoveSheetDrawingCommand as _0x5308ac,SetDrawingApplyMutation as _0x3cc575,SetDrawingArrangeCommand as _0x7986a0,SetSheetDrawingCommand as _0xfc3872,SheetDrawingAnchorType as _0x29c1a8,SheetDrawingTransformPlanService as _0x128800,UniverSheetsDrawingPlugin as _0x1d8662,transformToAxisAlignPosition as _0x58b681,transformToDrawingPosition as _0x1c7e91}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x17c4d9}from'@univerjs-pro/license';import{IDrawingManagerService as _0x35c817,UniverDrawingPlugin as _0x36529b}from'@univerjs/drawing';const re=0xc8,ie=0xc8;function ae(_0x2df338){'@babel/helpers - typeof';const _0x2d0721=_0x1bc7;return ae=typeof Symbol==_0x2d0721(0xe7)&&typeof Symbol[_0x2d0721(0xb4)]==_0x2d0721(0xe8)?function(_0x5f3b1c){return typeof _0x5f3b1c;}:function(_0x1c7ac5){const _0x22957d=_0x2d0721;return _0x1c7ac5&&typeof Symbol==_0x22957d(0xe7)&&_0x1c7ac5[_0x22957d(0x122)]===Symbol&&_0x1c7ac5!==Symbol[_0x22957d(0xaa)]?_0x22957d(0xe8):typeof _0x1c7ac5;},ae(_0x2df338);}function oe(_0x402b4c,_0x298a86){const _0x347f99=_0x1bc7;if(ae(_0x402b4c)!='object'||!_0x402b4c)return _0x402b4c;var _0x18f41a=_0x402b4c[Symbol[_0x347f99(0xf2)]];if(_0x18f41a!==void 0x0){var _0x5596d7=_0x18f41a['call'](_0x402b4c,_0x298a86||'default');if(ae(_0x5596d7)!=_0x347f99(0xe0))return _0x5596d7;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x298a86===_0x347f99(0x15c)?String:Number)(_0x402b4c);}function se(_0x53e173){const _0x343eb3=_0x1bc7;var _0x348f93=oe(_0x53e173,_0x343eb3(0x15c));return ae(_0x348f93)==_0x343eb3(0xe8)?_0x348f93:_0x348f93+'';}function X(_0x1f2f9a,_0x1ba7ca,_0xa44fed){const _0x2bb71f=_0x1bc7;return(_0x1ba7ca=se(_0x1ba7ca))in _0x1f2f9a?Object[_0x2bb71f(0xd0)](_0x1f2f9a,_0x1ba7ca,{'value':_0xa44fed,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1f2f9a[_0x1ba7ca]=_0xa44fed,_0x1f2f9a;}var ce=class extends _0x1fb2da{constructor(){const _0x478733=_0x1bc7;super(),X(this,_0x478733(0xa8),new Map()),X(this,_0x478733(0x127),new Set()),X(this,_0x478733(0x163),new Set());}[_0x3f22e1(0x143)](_0x5c4245,_0x556e10,_0x318f44,_0xd31840){const _0x2af95c=_0x3f22e1;let _0x39aca0=new _0x1215b9(_0x5c4245,_0x556e10,_0x318f44,_0xd31840);return this[_0x2af95c(0xa8)]['set'](_0x556e10,_0x39aca0),_0x2450e1(_0x5c4245)&&this[_0x2af95c(0x127)][_0x2af95c(0x147)](_0x556e10),_0x39aca0;}[_0x3f22e1(0xa6)](_0xdac6f6){const _0x38daaf=_0x3f22e1;let _0x1f2561=[];for(let _0x1e00c6 of this[_0x38daaf(0x127)]){let _0x524f7f=this[_0x38daaf(0xa8)][_0x38daaf(0x141)](_0x1e00c6);if(_0x524f7f){let _0x309d76=_0x524f7f['getShapeRelation']();if(_0x309d76){var _0x5d2a26,_0x2bb096;((_0x5d2a26=_0x309d76[_0x38daaf(0xce)])==null?void 0x0:_0x5d2a26['shapeId'])===_0xdac6f6&&_0x1f2561['push']({..._0x309d76[_0x38daaf(0xce)],'lineShapeId':_0x1e00c6,'isFrom':!0x0}),((_0x2bb096=_0x309d76['to'])==null?void 0x0:_0x2bb096['shapeId'])===_0xdac6f6&&_0x1f2561[_0x38daaf(0x150)]({..._0x309d76['to'],'lineShapeId':_0x1e00c6,'isFrom':!0x1});}}}return _0x1f2561;}[_0x3f22e1(0x13e)](_0x3699d2){const _0x5eedd9=_0x3f22e1;let _0x1d2c16=this[_0x5eedd9(0xa8)][_0x5eedd9(0x141)](_0x3699d2);if(_0x1d2c16)return _0x1d2c16[_0x5eedd9(0x116)]();}['getShapeType'](_0x7bb8c6){const _0x3b112f=_0x3f22e1;let _0x201326=this[_0x3b112f(0xa8)][_0x3b112f(0x141)](_0x7bb8c6);if(_0x201326)return _0x201326[_0x3b112f(0x13d)]();}[_0x3f22e1(0x15b)](_0xba26fe){const _0x3e3cd4=_0x3f22e1;return this[_0x3e3cd4(0xa8)][_0x3e3cd4(0x9f)](_0xba26fe);}[_0x3f22e1(0xc7)](){const _0xc7daa2=_0x3f22e1;return Array[_0xc7daa2(0xce)](this[_0xc7daa2(0xa8)][_0xc7daa2(0xac)]())[_0xc7daa2(0x118)](_0x402fe7=>_0x402fe7['getName']()||_0x402fe7[_0xc7daa2(0xd2)]());}['removeShape'](_0x31361b){const _0x2a853a=_0x3f22e1;let _0x723cd3=this[_0x2a853a(0xa8)]['get'](_0x31361b);_0x723cd3&&(_0x2450e1(_0x723cd3['getShapeType']())&&this['_linesIds'][_0x2a853a(0x146)](_0x31361b),this['_shapes'][_0x2a853a(0x146)](_0x31361b));}[_0x3f22e1(0x93)](){const _0x372af5=_0x3f22e1;let _0x184ae2=[];return this['_shapes'][_0x372af5(0xbd)](_0x1ee1a2=>{const _0x363fd3=_0x372af5;_0x184ae2[_0x363fd3(0x150)](_0x1ee1a2[_0x363fd3(0x93)]());}),_0x184ae2;}[_0x3f22e1(0xda)](_0x58892b){const _0x3a66e7=_0x3f22e1;for(let _0x40db80 of _0x58892b){let {id:_0x50559a,shapeType:_0x3ff435,name:_0x104fcd}=_0x40db80,_0x5eddf7=this[_0x3a66e7(0x143)](_0x3ff435,_0x50559a,_0x40db80[_0x3a66e7(0x148)],_0x104fcd);_0x5eddf7&&_0x5eddf7[_0x3a66e7(0xeb)]()&&this[_0x3a66e7(0x127)][_0x3a66e7(0x147)](_0x50559a);}}['dispose'](){const _0x542871=_0x3f22e1;this[_0x542871(0x155)]||(this[_0x542871(0xa8)]['forEach'](_0x95622f=>{const _0x163ab9=_0x542871;_0x95622f[_0x163ab9(0x14a)]();}),this[_0x542871(0xa8)][_0x542871(0x115)](),this[_0x542871(0x127)][_0x542871(0x115)](),this[_0x542871(0x163)]['clear'](),super[_0x542871(0x14a)]());}};function Z(_0x3df8fa,_0x1c5cc4){return function(_0x1ae905,_0xb09947){_0x1c5cc4(_0x1ae905,_0xb09947,_0x3df8fa);};}function le(_0x4cc8bc,_0x5459e2,_0x204a1a,_0x51331d){const _0x56c761=_0x3f22e1;var _0x28fb86=arguments[_0x56c761(0x101)],_0x526651=_0x28fb86<0x3?_0x5459e2:_0x51331d===null?_0x51331d=Object[_0x56c761(0x10f)](_0x5459e2,_0x204a1a):_0x51331d,_0x40b353;if(typeof Reflect==_0x56c761(0xe0)&&typeof Reflect[_0x56c761(0x153)]=='function')_0x526651=Reflect['decorate'](_0x4cc8bc,_0x5459e2,_0x204a1a,_0x51331d);else{for(var _0x4749c1=_0x4cc8bc[_0x56c761(0x101)]-0x1;_0x4749c1>=0x0;_0x4749c1--)(_0x40b353=_0x4cc8bc[_0x4749c1])&&(_0x526651=(_0x28fb86<0x3?_0x40b353(_0x526651):_0x28fb86>0x3?_0x40b353(_0x5459e2,_0x204a1a,_0x526651):_0x40b353(_0x5459e2,_0x204a1a))||_0x526651);}return _0x28fb86>0x3&&_0x526651&&Object[_0x56c761(0xd0)](_0x5459e2,_0x204a1a,_0x526651),_0x526651;}let Q=class extends _0x1fb2da{constructor(_0x2dd41a){const _0x24b5cd=_0x3f22e1;super(),this[_0x24b5cd(0x126)]=_0x2dd41a,X(this,_0x24b5cd(0x14e),new Map()),this[_0x24b5cd(0xe2)]();}[_0x3f22e1(0xf3)](_0x215eaa,_0x2cdae6){const _0x408f80=_0x3f22e1;let _0x34ffae=this['_shapeModelManagerMap'][_0x408f80(0x141)](_0x215eaa);_0x34ffae||(_0x34ffae=new Map(),this[_0x408f80(0x14e)][_0x408f80(0x8e)](_0x215eaa,_0x34ffae));let _0x2341cc=_0x34ffae[_0x408f80(0x141)](_0x2cdae6);return _0x2341cc||(_0x2341cc=new ce(),_0x34ffae[_0x408f80(0x8e)](_0x2cdae6,_0x2341cc)),_0x2341cc;}[_0x3f22e1(0x99)](_0x164745,_0xfd5871,_0x56f94f,_0x2fec32,_0x298a4b,_0x46f905){this['_ensureShapeModelManager'](_0x164745,_0xfd5871)['addShape'](_0x56f94f,_0x2fec32,_0x298a4b,_0x46f905);}['removeShape'](_0x1fc313,_0x7952f6,_0xb91d42){const _0x5d382b=_0x3f22e1;this['_ensureShapeModelManager'](_0x1fc313,_0x7952f6)[_0x5d382b(0xef)](_0xb91d42);}[_0x3f22e1(0x10a)](_0x205ead,_0x4c22af,_0x5e6a6d){const _0x22eddd=_0x3f22e1;return this[_0x22eddd(0xf3)](_0x205ead,_0x4c22af)[_0x22eddd(0x13d)](_0x5e6a6d);}['getShapeType'](_0x1b7cf9,_0x393907,_0x28ac3d){const _0x46243a=_0x3f22e1;return this[_0x46243a(0xf3)](_0x1b7cf9,_0x393907)['getShapeType'](_0x28ac3d);}['hasShape'](_0x4694c3,_0x24b6c4,_0x1d37c7){const _0x51fb89=_0x3f22e1;return this[_0x51fb89(0xf3)](_0x4694c3,_0x24b6c4)[_0x51fb89(0x15b)](_0x1d37c7);}[_0x3f22e1(0xe5)](_0x3b6945,_0x2ceb81,_0x4eb84a){const _0x3d793e=_0x3f22e1;return this['_ensureShapeModelManager'](_0x3b6945,_0x2ceb81)[_0x3d793e(0x13d)](_0x4eb84a);}[_0x3f22e1(0xbb)](_0x2075dc,_0x3d70ee,_0x3727fc){const _0x26393b=_0x3f22e1;let _0x9c25e8=this[_0x26393b(0xf3)](_0x2075dc,_0x3d70ee);if(!_0x9c25e8[_0x26393b(0x13d)](_0x3727fc))return;let _0x59f95f=_0x9c25e8[_0x26393b(0xa8)]['get'](_0x3727fc);if(_0x59f95f)return _0x59f95f[_0x26393b(0xa3)]();}[_0x3f22e1(0xc7)](_0x4f54ea,_0x48a288){const _0x3593c3=_0x3f22e1;return this[_0x3593c3(0xf3)](_0x4f54ea,_0x48a288)[_0x3593c3(0xc7)]();}[_0x3f22e1(0x119)](_0x2e3f78,_0x3d6730,_0xda06bc){const _0x4e9b34=_0x3f22e1;return this[_0x4e9b34(0xf3)](_0x2e3f78,_0x3d6730)[_0x4e9b34(0xa8)][_0x4e9b34(0x141)](_0xda06bc);}[_0x3f22e1(0xa6)](_0x59d82c,_0x97a263,_0x421442){const _0x10e088=_0x3f22e1;return this[_0x10e088(0xf3)](_0x59d82c,_0x97a263)[_0x10e088(0xa6)](_0x421442);}[_0x3f22e1(0x13e)](_0x5b86de,_0x5c0c6f,_0x2ed4e5){const _0x521d77=_0x3f22e1;let _0x185796=this[_0x521d77(0xf3)](_0x5b86de,_0x5c0c6f)[_0x521d77(0xa8)][_0x521d77(0x141)](_0x2ed4e5);if(_0x185796)return _0x185796[_0x521d77(0x116)]();}['setShapeType'](){}[_0x3f22e1(0x12e)](_0x16fb51){const _0x15bdb7=_0x3f22e1;let _0x380d98={},_0x45d654=this[_0x15bdb7(0x14e)][_0x15bdb7(0x141)](_0x16fb51);return _0x45d654&&_0x45d654['forEach']((_0x59065e,_0x393b1c)=>{const _0x1ce011=_0x15bdb7;let _0x2b3f07=_0x59065e[_0x1ce011(0x93)]();_0x2b3f07['length']>0x0&&(_0x380d98[_0x393b1c]=_0x2b3f07);}),JSON[_0x15bdb7(0x125)](_0x380d98);}[_0x3f22e1(0xe4)](_0x14962b,_0x46f271){const _0x23e635=_0x3f22e1;Object[_0x23e635(0x107)](_0x46f271)[_0x23e635(0xbd)](_0x53fc34=>{const _0x2cdd36=_0x23e635;this[_0x2cdd36(0xf3)](_0x14962b,_0x53fc34)[_0x2cdd36(0xda)](_0x46f271[_0x53fc34]);});}[_0x3f22e1(0x93)](){const _0x4ed912=_0x3f22e1;let _0x80a6f0={};return this[_0x4ed912(0x14e)][_0x4ed912(0xbd)]((_0x23ec95,_0x50223f)=>{const _0x3e3a01=_0x4ed912;_0x80a6f0[_0x50223f]={},_0x23ec95[_0x3e3a01(0xbd)]((_0x1f54f6,_0x33d3de)=>{const _0x2de60c=_0x3e3a01;_0x80a6f0[_0x50223f][_0x33d3de]=_0x1f54f6[_0x2de60c(0x93)]();});}),_0x80a6f0;}[_0x3f22e1(0xda)](_0x30ffa5){const _0x345af7=_0x3f22e1;Object[_0x345af7(0x107)](_0x30ffa5)[_0x345af7(0xbd)](_0x3d9802=>{const _0x4fe73d=_0x345af7;let _0x446fa1=_0x30ffa5[_0x3d9802];Object[_0x4fe73d(0x107)](_0x446fa1)['forEach'](_0x47097c=>{const _0x5c8b8f=_0x4fe73d;this[_0x5c8b8f(0xf3)](_0x3d9802,_0x47097c)[_0x5c8b8f(0xda)](_0x446fa1[_0x47097c]);});});}[_0x3f22e1(0xe2)](){const _0x8af85f=_0x3f22e1;this[_0x8af85f(0x126)]['registerPluginResource']({'pluginName':'SHEET_SHAPE_PLUGIN','businesses':[_0x450045[_0x8af85f(0xc5)]],'toJson':_0x3f0757=>this[_0x8af85f(0x12e)](_0x3f0757),'parseJson':_0xc49de5=>JSON[_0x8af85f(0x12d)](_0xc49de5),'onLoad':(_0x496289,_0x3b1895)=>{const _0x55bdba=_0x8af85f;this[_0x55bdba(0xe4)](_0x496289,_0x3b1895);},'onUnLoad':_0x2e09da=>{const _0x8e2179=_0x8af85f;let _0x507422=this[_0x8e2179(0x14e)]['get'](_0x2e09da);_0x507422&&(_0x507422['forEach'](_0x26f864=>{const _0x4fd382=_0x8e2179;_0x26f864[_0x4fd382(0x14a)]();}),this[_0x8e2179(0x14e)][_0x8e2179(0x146)](_0x2e09da));}});}[_0x3f22e1(0x14a)](){const _0x442bb2=_0x3f22e1;this[_0x442bb2(0x14e)][_0x442bb2(0xbd)](_0x379433=>{const _0x3ff01e=_0x442bb2;_0x379433[_0x3ff01e(0xbd)](_0x568514=>{const _0x3eb938=_0x3ff01e;_0x568514[_0x3eb938(0x14a)]();});});}};Q=le([Z(0x0,_0x53ac65)],Q);const ue={'id':_0x3f22e1(0x13b),'type':_0xbb8030[_0x3f22e1(0xb6)],'handler':(_0xe16671,_0x2bbf69)=>{const _0x514bd5=_0x3f22e1;let {unitId:_0x59ae15,subUnitId:_0x56d2ed,shapeType:_0x5e5ac9,shapeId:_0x1995e1,shapeName:_0x5f0d8c,shapeData:_0x396f41}=_0x2bbf69;return _0xe16671[_0x514bd5(0x141)](Q)[_0x514bd5(0x99)](_0x59ae15,_0x56d2ed,_0x5e5ac9,_0x1995e1,_0x459ecb[_0x514bd5(0x145)](_0x396f41),_0x5f0d8c),!0x0;}},de={'id':'sheet.mutation.remove-shape','type':_0xbb8030[_0x3f22e1(0xb6)],'handler':(_0x24e9fa,_0x5e8286)=>{const _0x37158a=_0x3f22e1;let {unitId:_0x533c79,subUnitId:_0x385a70,shapeId:_0x2008b1}=_0x5e8286;return _0x24e9fa[_0x37158a(0x141)](Q)['removeShape'](_0x533c79,_0x385a70,_0x2008b1),!0x0;}},fe={'type':_0xbb8030[_0x3f22e1(0x136)],'id':_0x3f22e1(0x159),'handler':(_0x18e123,_0x551aac)=>{const _0x5564cb=_0x3f22e1;let _0x1e0efc=_0x2fd931(_0x18e123[_0x5564cb(0x141)](_0x1c64e6),_0x551aac);if(!_0x1e0efc)return!0x1;let _0x417682=_0x18e123[_0x5564cb(0x141)](_0x2edf17),{unitId:_0x20fafc,subUnitId:_0x44201b}=_0x1e0efc,_0x135bcf=_0x417682[_0x5564cb(0xfe)](_0x20fafc,_0x44201b);if(!_0x135bcf)return!0x1;let _0x506a46=_0x18e123['get'](_0x145f99),_0x580706=_0x18e123[_0x5564cb(0x141)](_0x1468fe),_0x93b195=_0x18e123[_0x5564cb(0x141)](_0x25d093),_0x344116=_0x18e123[_0x5564cb(0x141)](_0x332817),_0x148a03=_0x18e123['get'](Q),{shapeType:_0x5e4798}=_0x551aac,_0x21e5b0=_0x551aac['shapeData']??_0x51c485(_0x5e4798),_0x523232=_0x551aac[_0x5564cb(0xc8)]||_0x37255f(),_0x35e12f={'unitId':_0x20fafc,'subUnitId':_0x44201b,'shapeId':_0x523232,'shapeName':_0x551aac[_0x5564cb(0x102)]??_0x1f53d8(_0x5e4798,_0x148a03[_0x5564cb(0xc7)](_0x20fafc,_0x44201b)),'shapeType':_0x5e4798,'shapeData':_0x21e5b0},_0x2b8385=_0x551aac[_0x5564cb(0x10c)]||0xc8,_0x4b8ff9=_0x551aac['height']||0xc8,_0x52e4ef=0x0,_0x393dc4=0x0;if(_0x551aac['position']){let {x:_0x2da73d,y:_0x23f538}=_0x551aac[_0x5564cb(0x98)];_0x52e4ef=_0x2da73d,_0x393dc4=_0x23f538;}else{if(_0x551aac[_0x5564cb(0x92)]){let {startRow:_0x5433c1,startColumn:_0x16ba53}=_0x551aac['range'],_0x1c4f8e=_0x135bcf['getCellWithCoordByIndex'](_0x5433c1,_0x16ba53);_0x52e4ef=_0x1c4f8e[_0x5564cb(0x138)]+0xa,_0x393dc4=_0x1c4f8e[_0x5564cb(0x13c)]+0xa;}}let _0x3ff5c1={'left':_0x52e4ef,'top':_0x393dc4,'width':_0x2b8385,'height':_0x4b8ff9,'angle':_0x551aac[_0x5564cb(0xd4)]??0x0,'flipX':_0x551aac[_0x5564cb(0x144)]??!0x1,'flipY':_0x551aac[_0x5564cb(0xd1)]??!0x1},_0x574d22=_0x1c7e91(_0x3ff5c1,_0x135bcf),_0x73fc98=_0x58b681(_0x3ff5c1,_0x135bcf),_0x3c73fd={'unitId':_0x20fafc,'subUnitId':_0x44201b,'drawingId':_0x523232,'drawingType':_0x22d16c[_0x5564cb(0x142)],'anchorType':_0x29c1a8[_0x5564cb(0x109)],'name':_0x551aac[_0x5564cb(0x10d)],'description':_0x551aac[_0x5564cb(0x95)],'sheetTransform':_0x574d22,'transform':_0x3ff5c1,'data':{'shapeType':_0x5e4798,'shapeData':_0x21e5b0},'axisAlignSheetTransform':_0x73fc98,'allowTransform':!0x0,'hidden':_0x551aac[_0x5564cb(0x151)]===!0x1,'selectable':_0x551aac['selectable']??!0x0};_0x2450e1(_0x5e4798)&&(_0x3c73fd[_0x5564cb(0x10e)]['fill']=!0x1,_0x3c73fd[_0x5564cb(0x10e)][_0x5564cb(0xab)]=!0x1,_0x3c73fd[_0x5564cb(0x10e)]['resizeEnabled']=!0x1,_0x3c73fd[_0x5564cb(0x10e)][_0x5564cb(0x11d)]=!0x1,_0x3c73fd[_0x5564cb(0x9c)][_0x5564cb(0xab)]=!0x1,_0x3c73fd[_0x5564cb(0x9c)]['resizeEnabled']=!0x1,_0x3c73fd[_0x5564cb(0x9c)][_0x5564cb(0x11d)]=!0x1);let {undo:_0x58e57a,redo:_0x25f861,objects:_0x58e1f4}=_0x344116[_0x5564cb(0xc9)]([_0x3c73fd]),_0x319687=_0x93b195[_0x5564cb(0x114)]({'id':_0x43e215['id'],'params':{'unitId':_0x20fafc,'drawings':[_0x3c73fd]}}),_0x39b2a7=[..._0x319687[_0x5564cb(0xb5)]??[],{'id':_0x3cc575['id'],'params':{'unitId':_0x20fafc,'subUnitId':_0x44201b,'op':_0x25f861,'objects':_0x58e1f4,'type':_0x4fc098['INSERT']}},{'id':_0x4010d8['id'],'params':[_0x20fafc]},..._0x319687['redos'],{'id':ue['id'],'params':_0x35e12f}],_0x26e4fa=[{'id':de['id'],'params':{'unitId':_0x20fafc,'subUnitId':_0x44201b,'shapeId':_0x523232}},..._0x319687[_0x5564cb(0xb3)]??[],{'id':_0x3cc575['id'],'params':{'unitId':_0x20fafc,'subUnitId':_0x44201b,'op':_0x58e57a,'objects':_0x58e1f4,'type':_0x4fc098['REMOVE']}},{'id':_0x4010d8['id'],'params':[_0x20fafc]},..._0x319687[_0x5564cb(0xff)]];return _0x3cbe2a(_0x39b2a7,_0x506a46)['result']?(_0x580706['pushUndoRedo']({'unitID':_0x20fafc,'undoMutations':_0x26e4fa,'redoMutations':_0x39b2a7}),!0x0):!0x1;}},$={'id':_0x3f22e1(0xdd),'type':_0xbb8030['MUTATION'],'handler':(_0x264be6,_0x6b770e)=>{const _0xbb6529=_0x3f22e1;let {unitId:_0x26624a,subUnitId:_0x4ffefd,shapeType:_0x1ca462,shapeId:_0x3e25ef,shapeData:_0x3dc62d,replace:_0x493f34,formulaLastValueGuard:_0x4ed0db}=_0x6b770e,_0x71163d=_0x264be6['get'](Q)[_0xbb6529(0x119)](_0x26624a,_0x4ffefd,_0x3e25ef);if(_0x71163d){var _0x513ff8;if(!_0x1af613(_0x264be6,{'hostType':_0x450045[_0xbb6529(0xc5)],'unitId':_0x26624a,'subUnitId':_0x4ffefd,'shapeId':_0x3e25ef},(_0x513ff8=_0x71163d['getShapeData']()[_0xbb6529(0x97)])==null?void 0x0:_0x513ff8[_0xbb6529(0x13a)],_0x4ed0db))return!0x0;_0x1ca462!==void 0x0&&_0x71163d[_0xbb6529(0xaf)](_0x1ca462),_0x3dc62d&&(_0x71163d==null||_0x71163d[_0xbb6529(0xb9)](_0x459ecb[_0xbb6529(0x145)](_0x3dc62d),!_0x493f34));}return!0x0;}},pe={'type':_0xbb8030[_0x3f22e1(0x136)],'id':'sheet.command.set-shape-drawing-data','handler':(_0x42d0c3,_0x2b09c2)=>{const _0x1e8f83=_0x3f22e1;let _0x65a2cb=_0x2fd931(_0x42d0c3[_0x1e8f83(0x141)](_0x1c64e6),_0x2b09c2);if(!_0x65a2cb)return!0x1;let _0x13b6e7=_0x42d0c3['get'](_0x2edf17),{unitId:_0x3918da,subUnitId:_0x3d2212}=_0x65a2cb,_0x2294db=_0x13b6e7[_0x1e8f83(0xfe)](_0x3918da,_0x3d2212);if(!_0x2294db)return!0x1;let _0x590980=_0x42d0c3[_0x1e8f83(0x141)](Q),{shapeId:_0x3e888b,shapeType:_0x122226,shapeData:_0x33d449,position:_0x58d790,width:_0x20a780,height:_0x469460}=_0x2b09c2,_0x16d79d=_0x590980[_0x1e8f83(0x119)](_0x3918da,_0x3d2212,_0x3e888b);if(!_0x16d79d)return!0x1;let _0x8d9fdc=_0x42d0c3[_0x1e8f83(0x141)](_0x145f99),_0xf1de03=_0x42d0c3[_0x1e8f83(0x141)](_0x1468fe),_0x4ece14=_0x42d0c3[_0x1e8f83(0x141)](_0x25d093),_0x388637=_0x42d0c3[_0x1e8f83(0x141)](_0x332817),_0x3152ae={'unitId':_0x3918da,'subUnitId':_0x3d2212,'shapeId':_0x3e888b,'shapeType':_0x122226,'shapeData':_0x33d449,'replace':!0x0},_0x218cbf=_0x16d79d['getShapeType'](),_0x186d11=_0x16d79d['getShapeData'](),{x:_0x25a452,y:_0x965f1e}=_0x58d790,_0x4c71d5={'left':_0x25a452,'top':_0x965f1e,'width':_0x20a780,'height':_0x469460,'angle':_0x2b09c2[_0x1e8f83(0xd4)]??0x0,'flipX':_0x2b09c2[_0x1e8f83(0x144)]??!0x1,'flipY':_0x2b09c2['flipY']??!0x1},_0x164d36=_0x1c7e91(_0x4c71d5,_0x2294db),_0x541ab0=_0x58b681(_0x4c71d5,_0x2294db),_0x37223a={'unitId':_0x3918da,'subUnitId':_0x3d2212,'drawingId':_0x3e888b,'drawingType':_0x22d16c['DRAWING_SHAPE'],'name':_0x2b09c2[_0x1e8f83(0x10d)],'description':_0x2b09c2[_0x1e8f83(0x95)],'sheetTransform':_0x164d36,'transform':_0x4c71d5,'data':{'shapeType':_0x122226,'shapeData':_0x33d449},'axisAlignSheetTransform':_0x541ab0,'allowTransform':!0x0,'hidden':!_0x2b09c2[_0x1e8f83(0x151)],'selectable':_0x2b09c2[_0x1e8f83(0x131)]};_0x2450e1(_0x122226)&&(_0x37223a[_0x1e8f83(0x10e)][_0x1e8f83(0x158)]=!0x1,_0x37223a[_0x1e8f83(0x10e)]['rotateEnabled']=!0x1,_0x37223a[_0x1e8f83(0x10e)][_0x1e8f83(0x9d)]=!0x1,_0x37223a[_0x1e8f83(0x10e)]['borderEnabled']=!0x1,_0x37223a[_0x1e8f83(0x9c)][_0x1e8f83(0xab)]=!0x1,_0x37223a[_0x1e8f83(0x9c)]['resizeEnabled']=!0x1,_0x37223a[_0x1e8f83(0x9c)]['borderEnabled']=!0x1);let {undo:_0x3bdb26,redo:_0x2291f4,objects:_0x1d17d8}=_0x388637['getBatchUpdateOp']([_0x37223a]),_0x23a805=_0x4ece14['onCommandExecute']({'id':_0xfc3872['id'],'params':{'unitId':_0x3918da,'drawings':[_0x37223a]}}),_0x2fca1a=[..._0x23a805[_0x1e8f83(0xb5)]??[],{'id':_0x3cc575['id'],'params':{'unitId':_0x3918da,'subUnitId':_0x3d2212,'op':_0x2291f4,'objects':_0x1d17d8,'type':_0x4fc098[_0x1e8f83(0xec)]}},{'id':_0x4010d8['id'],'params':[_0x3918da]},..._0x23a805[_0x1e8f83(0x132)],{'id':$['id'],'params':_0x3152ae}],_0x57f748=[..._0x23a805['preUndos']??[],{'id':_0x3cc575['id'],'params':{'unitId':_0x3918da,'subUnitId':_0x3d2212,'op':_0x3bdb26,'objects':_0x1d17d8,'type':_0x4fc098[_0x1e8f83(0xec)]}},{'id':_0x4010d8['id'],'params':[_0x3918da]},..._0x23a805['undos'],{'id':$['id'],'params':{'unitId':_0x3918da,'subUnitId':_0x3d2212,'shapeType':_0x218cbf,'shapeId':_0x3e888b,'shapeData':_0x186d11,'replace':!0x0}}];return _0x3cbe2a(_0x2fca1a,_0x8d9fdc)[_0x1e8f83(0xd5)]?(_0xf1de03[_0x1e8f83(0xe6)]({'unitID':_0x3918da,'undoMutations':_0x57f748,'redoMutations':_0x2fca1a}),!0x0):!0x1;}},me={'type':_0xbb8030[_0x3f22e1(0x136)],'id':_0x3f22e1(0x139),'handler':(_0x4ca292,_0x310e36)=>{const _0x1df575=_0x3f22e1;let _0x32caa8=_0x2fd931(_0x4ca292[_0x1df575(0x141)](_0x1c64e6),_0x310e36);if(!_0x32caa8)return!0x1;let _0x134567=_0x4ca292[_0x1df575(0x141)](_0x2edf17),{unitId:_0x276216,subUnitId:_0x1060e6}=_0x32caa8,_0x245e61=_0x134567[_0x1df575(0x12c)](_0x276216,_0x1060e6);if(!_0x245e61)return!0x1;let _0x224bd=_0x4ca292[_0x1df575(0x141)](_0x332817),{shapeId:_0x285b76,flipH:_0x384d88,flipV:_0x8add7d}=_0x310e36,_0x58a859=_0x224bd[_0x1df575(0xd8)]({'unitId':_0x276216,'subUnitId':_0x1060e6,'drawingId':_0x285b76});if(!_0x58a859)return!0x1;let _0x422026=_0x4ca292[_0x1df575(0x141)](Q)['getShapeModel'](_0x276216,_0x1060e6,_0x285b76);if(!_0x422026)return!0x1;let _0x5af68a=_0x4ca292['get'](_0x145f99),_0x17737f=_0x4ca292['get'](_0x1468fe),_0x37ff19=_0x4ca292[_0x1df575(0x141)](_0x25d093),_0x2852ef={..._0x58a859[_0x1df575(0x9c)]};_0x384d88!==void 0x0&&(_0x2852ef[_0x1df575(0x144)]=!_0x2852ef['flipX']),_0x8add7d!==void 0x0&&(_0x2852ef['flipY']=!_0x2852ef[_0x1df575(0xd1)]);let _0x24706e=_0x1c7e91(_0x2852ef,_0x245e61),_0xa3b6fc=_0x58b681(_0x2852ef,_0x245e61),_0x50dd5c=_0x422026['getShapeType'](),_0x46ecf9=_0x422026[_0x1df575(0xa3)](),_0x2e83da={'unitId':_0x276216,'subUnitId':_0x1060e6,'drawingId':_0x285b76,'drawingType':_0x22d16c[_0x1df575(0x142)],'sheetTransform':_0x24706e,'transform':_0x2852ef,'data':{'shapeType':_0x50dd5c,'shapeData':_0x46ecf9},'axisAlignSheetTransform':_0xa3b6fc,'allowTransform':!0x0},{undo:_0x9e5d1c,redo:_0x33447b,objects:_0xc47b2c}=_0x224bd[_0x1df575(0x12f)]([_0x2e83da]),_0x111c59=_0x37ff19[_0x1df575(0x114)]({'id':_0xfc3872['id'],'params':{'unitId':_0x276216,'drawings':[_0x2e83da]}}),_0x4b9445=[..._0x111c59[_0x1df575(0xb5)]??[],{'id':_0x3cc575['id'],'params':{'unitId':_0x276216,'subUnitId':_0x1060e6,'op':_0x33447b,'objects':_0xc47b2c,'type':_0x4fc098[_0x1df575(0xec)]}},{'id':_0x4010d8['id'],'params':[_0x276216]},..._0x111c59[_0x1df575(0x132)]],_0x25f8c1=[..._0x111c59[_0x1df575(0xb3)]??[],{'id':_0x3cc575['id'],'params':{'unitId':_0x276216,'subUnitId':_0x1060e6,'op':_0x9e5d1c,'objects':_0xc47b2c,'type':_0x4fc098[_0x1df575(0xec)]}},{'id':_0x4010d8['id'],'params':[_0x276216]},..._0x111c59['undos']];if(_0x2450e1(_0x50dd5c)){let _0x6449a2=_0x422026[_0x1df575(0x116)]();if(_0x6449a2){let _0x32267d={..._0x6449a2};_0x32267d[_0x1df575(0xce)]=void 0x0,_0x32267d['to']=void 0x0,_0x4b9445[_0x1df575(0x150)]({'id':$['id'],'params':{'unitId':_0x276216,'subUnitId':_0x1060e6,'shapeId':_0x285b76,'shapeType':_0x50dd5c,'shapeData':{'relation':_0x32267d}}}),_0x25f8c1[_0x1df575(0x150)]({'id':$['id'],'params':{'unitId':_0x276216,'subUnitId':_0x1060e6,'shapeId':_0x285b76,'shapeType':_0x50dd5c,'shapeData':{'relation':_0x6449a2}}});}}return _0x3cbe2a(_0x4b9445,_0x5af68a)['result']?(_0x17737f['pushUndoRedo']({'unitID':_0x276216,'undoMutations':_0x25f8c1,'redoMutations':_0x4b9445}),!0x0):!0x1;}},he={'type':_0xbb8030[_0x3f22e1(0x136)],'id':_0x3f22e1(0xf4),'handler':(_0xc7d3ea,_0x7d6bbc)=>{const _0x4a8e53=_0x3f22e1;let _0x4bda92=_0x2fd931(_0xc7d3ea[_0x4a8e53(0x141)](_0x1c64e6),_0x7d6bbc);if(!_0x4bda92)return!0x1;let _0x1bd2c0=_0xc7d3ea['get'](_0x2edf17),{unitId:_0x4f69f2,subUnitId:_0x1a4457}=_0x4bda92,_0x87a9ca=_0x1bd2c0[_0x4a8e53(0x12c)](_0x4f69f2,_0x1a4457);if(!_0x87a9ca)return!0x1;let _0x135bbc=_0xc7d3ea[_0x4a8e53(0x141)](_0x332817),{shapeId:_0x404203,rotate:_0x2d3f6e}=_0x7d6bbc,_0x2ac238=_0x135bbc[_0x4a8e53(0xd8)]({'unitId':_0x4f69f2,'subUnitId':_0x1a4457,'drawingId':_0x404203});if(!_0x2ac238)return!0x1;let _0x28ee75=_0xc7d3ea['get'](Q)[_0x4a8e53(0x119)](_0x4f69f2,_0x1a4457,_0x404203);if(!_0x28ee75)return!0x1;let _0x2e147f=_0xc7d3ea[_0x4a8e53(0x141)](_0x145f99),_0x3d1660=_0xc7d3ea[_0x4a8e53(0x141)](_0x1468fe),_0x2b6641=_0xc7d3ea[_0x4a8e53(0x141)](_0x25d093),_0x4b5aec={..._0x2ac238[_0x4a8e53(0x9c)]};_0x2d3f6e!==void 0x0&&(_0x4b5aec[_0x4a8e53(0x162)]=(_0x4b5aec['angle']||0x0)+_0x2d3f6e);let _0x243494=_0x1c7e91(_0x4b5aec,_0x87a9ca),_0xd1876=_0x58b681(_0x4b5aec,_0x87a9ca),_0x2dc532=_0x28ee75[_0x4a8e53(0x13d)](),_0x4df2e6=_0x28ee75[_0x4a8e53(0xa3)](),_0x43dd0d={'unitId':_0x4f69f2,'subUnitId':_0x1a4457,'drawingId':_0x404203,'drawingType':_0x22d16c[_0x4a8e53(0x142)],'sheetTransform':_0x243494,'transform':_0x4b5aec,'data':{'shapeType':_0x2dc532,'shapeData':_0x4df2e6},'axisAlignSheetTransform':_0xd1876,'allowTransform':!0x0},{undo:_0x2e5d35,redo:_0x4a119a,objects:_0x1136c9}=_0x135bbc[_0x4a8e53(0x12f)]([_0x43dd0d]),_0x561edd=_0x2b6641['onCommandExecute']({'id':_0xfc3872['id'],'params':{'unitId':_0x4f69f2,'drawings':[_0x43dd0d]}}),_0x36fc56=[..._0x561edd[_0x4a8e53(0xb5)]??[],{'id':_0x3cc575['id'],'params':{'unitId':_0x4f69f2,'subUnitId':_0x1a4457,'op':_0x4a119a,'objects':_0x1136c9,'type':_0x4fc098[_0x4a8e53(0xec)]}},{'id':_0x4010d8['id'],'params':[_0x4f69f2]},..._0x561edd[_0x4a8e53(0x132)]],_0x340603=[..._0x561edd[_0x4a8e53(0xb3)]??[],{'id':_0x3cc575['id'],'params':{'unitId':_0x4f69f2,'subUnitId':_0x1a4457,'op':_0x2e5d35,'objects':_0x1136c9,'type':_0x4fc098[_0x4a8e53(0xec)]}},{'id':_0x4010d8['id'],'params':[_0x4f69f2]},..._0x561edd[_0x4a8e53(0xff)]];return _0x3cbe2a(_0x36fc56,_0x2e147f)[_0x4a8e53(0xd5)]?(_0x3d1660[_0x4a8e53(0xe6)]({'unitID':_0x4f69f2,'undoMutations':_0x340603,'redoMutations':_0x36fc56}),!0x0):!0x1;}},ge={'type':_0xbb8030[_0x3f22e1(0x136)],'id':_0x3f22e1(0x137),'handler':(_0x3681b1,_0x1b3a21)=>{const _0x59af37=_0x3f22e1;let _0x22d609=_0x2fd931(_0x3681b1[_0x59af37(0x141)](_0x1c64e6),_0x1b3a21);if(!_0x22d609)return!0x1;let {unitId:_0x238552,subUnitId:_0x7d474b}=_0x22d609,{shapeId:_0x2ff3df}=_0x1b3a21,_0x5e9809=_0x3681b1[_0x59af37(0x141)](Q)[_0x59af37(0x119)](_0x238552,_0x7d474b,_0x2ff3df);if(!_0x5e9809)return!0x1;let _0x440b54=_0x5e9809[_0x59af37(0xcd)](),_0x5a6c8a=(_0x440b54==null?void 0x0:_0x440b54['isHorizontal'])??!0x0,_0x5f3d6d=!_0x5a6c8a,_0xff3c1a=_0x3681b1[_0x59af37(0x141)](_0x145f99),_0x2d3910=_0x3681b1[_0x59af37(0x141)](_0x1468fe),_0x2cc447={'unitId':_0x238552,'subUnitId':_0x7d474b,'shapeId':_0x2ff3df,'shapeData':{'shapeText':{'isHorizontal':_0x5f3d6d}}},_0x18221f={'unitId':_0x238552,'subUnitId':_0x7d474b,'shapeId':_0x2ff3df,'shapeData':{'shapeText':{'isHorizontal':_0x5a6c8a}}},_0x1d4613=[{'id':$['id'],'params':_0x2cc447}],_0x3d2314=[{'id':$['id'],'params':_0x18221f}];return _0x3cbe2a(_0x1d4613,_0xff3c1a)[_0x59af37(0xd5)]?(_0x2d3910[_0x59af37(0xe6)]({'unitID':_0x238552,'undoMutations':_0x3d2314,'redoMutations':_0x1d4613}),!0x0):!0x1;}},_e={'type':_0xbb8030[_0x3f22e1(0x136)],'id':'sheet.command.update-connector-relation','handler':(_0x298cf5,_0x1b21e1)=>{const _0x1fc759=_0x3f22e1;var _0x75f10b;let _0x478796=_0x2fd931(_0x298cf5[_0x1fc759(0x141)](_0x1c64e6),_0x1b21e1);if(!_0x478796)return!0x1;let _0x476716=_0x298cf5['get'](_0x2edf17),{unitId:_0x205be1,subUnitId:_0x40fd55}=_0x478796,_0x232727=_0x476716[_0x1fc759(0x12c)](_0x205be1,_0x40fd55);if(!_0x232727)return!0x1;let _0x2f8a04=_0x298cf5['get'](_0x332817),{connectorShapeId:_0x1abe53,width:_0x1ec910,height:_0x4b23ac,left:_0x3d58f3,top:_0x440c00,flipX:_0x45bb3e,flipY:_0x503f04,rotation:_0x1b1575,oldAdjustValues:_0x38902f,newAdjustValues:_0x33382c,oldLineType:_0x450be8,newLineType:_0xe2ccca,oldRelation:_0x3925b7,newRelation:_0x14f9ac}=_0x1b21e1,_0x15ee10=_0x2f8a04[_0x1fc759(0xd8)]({'unitId':_0x205be1,'subUnitId':_0x40fd55,'drawingId':_0x1abe53});if(!_0x15ee10)return!0x1;let _0x20692c=_0x298cf5[_0x1fc759(0x141)](Q)[_0x1fc759(0x119)](_0x205be1,_0x40fd55,_0x1abe53);if(!_0x20692c)return!0x1;let _0x17b37b=_0x298cf5['get'](_0x145f99),_0x58d057=_0x298cf5[_0x1fc759(0x141)](_0x1468fe),_0x41932e=_0x298cf5['get'](_0x25d093),_0x54b13f={..._0x15ee10['transform'],'width':_0x1ec910,'height':_0x4b23ac,'left':_0x3d58f3,'top':_0x440c00,'flipX':_0x45bb3e,'flipY':_0x503f04,'angle':_0x1b1575??((_0x75f10b=_0x15ee10[_0x1fc759(0x9c)])==null?void 0x0:_0x75f10b[_0x1fc759(0x162)])??0x0},_0x4e04fc=_0x1c7e91(_0x54b13f,_0x232727),_0x13f0dc=_0x58b681(_0x54b13f,_0x232727),_0x30b3ef=_0x20692c['getShapeType'](),_0x5325c3=_0x20692c[_0x1fc759(0xa3)](),_0x596672={'unitId':_0x205be1,'subUnitId':_0x40fd55,'drawingId':_0x1abe53,'drawingType':_0x22d16c['DRAWING_SHAPE'],'sheetTransform':_0x4e04fc,'transform':_0x54b13f,'data':{'shapeType':_0xe2ccca||_0x450be8||_0x30b3ef,'shapeData':{..._0x5325c3,'adjustValues':_0x33382c||_0x38902f||(_0x5325c3==null?void 0x0:_0x5325c3[_0x1fc759(0xa2)]),'relation':_0x14f9ac||_0x3925b7||(_0x5325c3==null?void 0x0:_0x5325c3[_0x1fc759(0xbf)])}},'axisAlignSheetTransform':_0x13f0dc,'allowTransform':!0x0},{undo:_0x322833,redo:_0x42db69,objects:_0x5e7307}=_0x2f8a04['getBatchUpdateOp']([_0x596672]),_0x255e26=_0x41932e[_0x1fc759(0x114)]({'id':_0xfc3872['id'],'params':{'unitId':_0x205be1,'drawings':[_0x596672]}}),_0x28bbc0=[..._0x255e26[_0x1fc759(0xb5)]??[],{'id':_0x3cc575['id'],'params':{'unitId':_0x205be1,'subUnitId':_0x40fd55,'op':_0x42db69,'objects':_0x5e7307,'type':_0x4fc098[_0x1fc759(0xec)]}},{'id':_0x4010d8['id'],'params':[_0x205be1]},..._0x255e26['redos'],{'id':$['id'],'params':{'unitId':_0x205be1,'subUnitId':_0x40fd55,'shapeId':_0x1abe53,'shapeType':_0xe2ccca,'shapeData':{'adjustValues':_0x33382c,'relation':_0x14f9ac}}}],_0x289fcc=[..._0x255e26[_0x1fc759(0xb3)]??[],{'id':_0x3cc575['id'],'params':{'unitId':_0x205be1,'subUnitId':_0x40fd55,'op':_0x322833,'objects':_0x5e7307,'type':_0x4fc098['UPDATE']}},{'id':_0x4010d8['id'],'params':[_0x205be1]},..._0x255e26[_0x1fc759(0xff)],{'id':$['id'],'params':{'unitId':_0x205be1,'subUnitId':_0x40fd55,'shapeId':_0x1abe53,'shapeType':_0x30b3ef,'shapeData':{..._0x5325c3,'adjustValues':_0x38902f||(_0x5325c3==null?void 0x0:_0x5325c3['adjustValues']),'relation':_0x3925b7||(_0x5325c3==null?void 0x0:_0x5325c3['relation'])}}}];return _0x3cbe2a(_0x28bbc0,_0x17b37b)[_0x1fc759(0xd5)]?(_0x58d057['pushUndoRedo']({'unitID':_0x205be1,'undoMutations':_0x289fcc,'redoMutations':_0x28bbc0}),!0x0):!0x1;}},ve={'type':_0xbb8030[_0x3f22e1(0x136)],'id':_0x3f22e1(0xdb),'handler':(_0x162b73,_0x43bac5)=>{const _0x4aac6e=_0x3f22e1;let _0x3c0973=_0x2fd931(_0x162b73['get'](_0x1c64e6),_0x43bac5);if(!_0x3c0973)return!0x1;let _0x30417a=_0x162b73[_0x4aac6e(0x141)](_0x2edf17),{unitId:_0x1dceaa,subUnitId:_0x4db2ca}=_0x3c0973,_0x535fa1=_0x30417a['getSkeleton'](_0x1dceaa,_0x4db2ca);if(!_0x535fa1)return!0x1;let _0x56ad4c=_0x162b73[_0x4aac6e(0x141)](_0x332817),{shapeId:_0x2815b4,width:_0x351dd5,height:_0x282b93,left:_0x52aa3d,top:_0x6ac0de,flipX:_0x3767db,flipY:_0x5519d7,angle:_0x225c36,oldAdjustValues:_0x970379,newAdjustValues:_0x479248,oldLineType:_0x39b191,newLineType:_0x3bf7bf}=_0x43bac5,_0x4de7a2=_0x56ad4c[_0x4aac6e(0xd8)]({'unitId':_0x1dceaa,'subUnitId':_0x4db2ca,'drawingId':_0x2815b4});if(!_0x4de7a2)return!0x1;let _0x3915a9=_0x162b73['get'](Q)['getShapeModel'](_0x1dceaa,_0x4db2ca,_0x2815b4);if(!_0x3915a9)return!0x1;let _0x514265=_0x162b73['get'](_0x145f99),_0x3f9763=_0x162b73[_0x4aac6e(0x141)](_0x1468fe),_0x9a9bb5=_0x162b73[_0x4aac6e(0x141)](_0x25d093),_0x37f446={..._0x4de7a2[_0x4aac6e(0x9c)],'width':_0x351dd5,'height':_0x282b93,'left':_0x52aa3d,'top':_0x6ac0de,'flipX':_0x3767db,'flipY':_0x5519d7,'angle':_0x225c36},_0xe9731f=_0x1c7e91(_0x37f446,_0x535fa1),_0x5bfd57=_0x58b681(_0x37f446,_0x535fa1),_0x2dfa68=_0x3915a9[_0x4aac6e(0x13d)](),_0x226e4e=_0x3915a9[_0x4aac6e(0xa3)](),_0x598eb9={'unitId':_0x1dceaa,'subUnitId':_0x4db2ca,'drawingId':_0x2815b4,'drawingType':_0x22d16c[_0x4aac6e(0x142)],'sheetTransform':_0xe9731f,'transform':_0x37f446,'data':{'shapeType':_0x3bf7bf||_0x39b191||_0x2dfa68,'shapeData':{..._0x226e4e,'adjustValues':_0x479248||_0x970379||(_0x226e4e==null?void 0x0:_0x226e4e[_0x4aac6e(0xa2)])}},'axisAlignSheetTransform':_0x5bfd57,'allowTransform':!0x0},{undo:_0x276dff,redo:_0x469929,objects:_0x102a93}=_0x56ad4c[_0x4aac6e(0x12f)]([_0x598eb9]),_0xac77c9=_0x9a9bb5[_0x4aac6e(0x114)]({'id':_0xfc3872['id'],'params':{'unitId':_0x1dceaa,'drawings':[_0x598eb9]}}),_0x425631=[..._0xac77c9['preRedos']??[],{'id':_0x3cc575['id'],'params':{'unitId':_0x1dceaa,'subUnitId':_0x4db2ca,'op':_0x469929,'objects':_0x102a93,'type':_0x4fc098[_0x4aac6e(0xec)]}},{'id':_0x4010d8['id'],'params':[_0x1dceaa]},..._0xac77c9[_0x4aac6e(0x132)],{'id':$['id'],'params':{'unitId':_0x1dceaa,'subUnitId':_0x4db2ca,'shapeId':_0x2815b4,'shapeType':_0x3bf7bf,'shapeData':{'adjustValues':_0x479248}}}],_0x3c81f3=[..._0xac77c9[_0x4aac6e(0xb3)]??[],{'id':_0x3cc575['id'],'params':{'unitId':_0x1dceaa,'subUnitId':_0x4db2ca,'op':_0x276dff,'objects':_0x102a93,'type':_0x4fc098['UPDATE']}},{'id':_0x4010d8['id'],'params':[_0x1dceaa]},..._0xac77c9[_0x4aac6e(0xff)],{'id':$['id'],'params':{'unitId':_0x1dceaa,'subUnitId':_0x4db2ca,'shapeId':_0x2815b4,'shapeType':_0x2dfa68,'shapeData':{..._0x226e4e,'adjustValues':_0x970379||(_0x226e4e==null?void 0x0:_0x226e4e[_0x4aac6e(0xa2)])}}}];return _0x3cbe2a(_0x425631,_0x514265)['result']?(_0x3f9763[_0x4aac6e(0xe6)]({'unitID':_0x1dceaa,'undoMutations':_0x3c81f3,'redoMutations':_0x425631}),!0x0):!0x1;}},ye={'id':_0x3f22e1(0xbc),'type':_0xbb8030[_0x3f22e1(0xb6)],'handler':(_0xb66570,_0x1e99cb)=>{const _0x4217fb=_0x3f22e1;let {unitId:_0x3110e3,subUnitId:_0xc7828e,shapeType:_0x24fd9f,shapeId:_0x31071c,shapeData:_0x292dfd}=_0x1e99cb,_0x113ee1=_0xb66570['get'](Q)[_0x4217fb(0x119)](_0x3110e3,_0xc7828e,_0x31071c);return _0x113ee1&&(_0x113ee1[_0x4217fb(0xaf)](_0x24fd9f),_0x292dfd&&(_0x113ee1==null||_0x113ee1[_0x4217fb(0xb9)](_0x292dfd))),!0x0;}};var be=_0x3f22e1(0x140),xe='1.4.0';function Se(_0x273721){const _0x4385d4=_0x3f22e1;var _0x1f5671,_0x505266,_0x3ed5ba,_0x5a0296,_0x406b65,_0x5e9d8a,_0x59c1d8;return{'left':((_0x1f5671=_0x273721[_0x4385d4(0x9c)])==null?void 0x0:_0x1f5671[_0x4385d4(0xd7)])??0x0,'top':((_0x505266=_0x273721[_0x4385d4(0x9c)])==null?void 0x0:_0x505266[_0x4385d4(0xb2)])??0x0,'width':((_0x3ed5ba=_0x273721[_0x4385d4(0x9c)])==null?void 0x0:_0x3ed5ba[_0x4385d4(0x10c)])??0xc8,'height':((_0x5a0296=_0x273721[_0x4385d4(0x9c)])==null?void 0x0:_0x5a0296[_0x4385d4(0xea)])??0xc8,'rotation':((_0x406b65=_0x273721[_0x4385d4(0x9c)])==null?void 0x0:_0x406b65['rotation'])??0x0,'flipX':((_0x5e9d8a=_0x273721['transform'])==null?void 0x0:_0x5e9d8a[_0x4385d4(0x144)])??!0x1,'flipY':((_0x59c1d8=_0x273721[_0x4385d4(0x9c)])==null?void 0x0:_0x59c1d8[_0x4385d4(0xd1)])??!0x1};}let Ce=class{constructor(_0x29e32c,_0x4c141e,_0x379564,_0x18393f){const _0x675c53=_0x3f22e1;this[_0x675c53(0x94)]=_0x29e32c,this['_shapeService']=_0x4c141e,this['_drawingService']=_0x379564,this[_0x675c53(0x14c)]=_0x18393f,X(this,'hostType',_0x450045[_0x675c53(0xc5)]);}get[_0x3f22e1(0xca)](){return{'subscribe':_0x245829=>{const _0x185e94=_0x1bc7;let _0x4a1928=this[_0x185e94(0x94)][_0x185e94(0xe1)](_0x567992=>{const _0x1881e6=_0x185e94;(_0x567992['id']===ue['id']||_0x567992['id']===de['id']||_0x567992['id']===$['id']||_0x567992['id']===ye['id'])&&_0x245829({'unitId':_0x567992[_0x1881e6(0xb8)][_0x1881e6(0x108)]});});return{'unsubscribe':()=>_0x4a1928['dispose']()};}};}[_0x3f22e1(0x9b)](_0x3cae08){const _0xc3a9c0=_0x3f22e1;var _0x2a4720;let _0x4b270c=(_0x2a4720=this[_0xc3a9c0(0x156)]['getDrawingData'](_0x3cae08[_0xc3a9c0(0x108)],_0x3cae08[_0xc3a9c0(0xcc)]))==null?void 0x0:_0x2a4720[_0x3cae08[_0xc3a9c0(0xc8)]],_0x3c6bd4=this[_0xc3a9c0(0x12a)]['getShapeType'](_0x3cae08[_0xc3a9c0(0x108)],_0x3cae08['subUnitId'],_0x3cae08['shapeId']);if(!_0x4b270c||_0x4b270c[_0xc3a9c0(0xa0)]!==_0x22d16c['DRAWING_SHAPE']||!_0x3c6bd4)return null;let _0x407a73=_0x4b270c['transform'];return{..._0x3cae08,'shapeType':_0x3c6bd4,'shapeData':_0x459ecb[_0xc3a9c0(0x145)](this[_0xc3a9c0(0x12a)][_0xc3a9c0(0xbb)](_0x3cae08[_0xc3a9c0(0x108)],_0x3cae08['subUnitId'],_0x3cae08['shapeId'])??{}),'name':_0x4b270c[_0xc3a9c0(0x10d)],'description':_0x4b270c[_0xc3a9c0(0x95)],'visible':_0x4b270c[_0xc3a9c0(0xcf)]!==!0x0,'selectable':_0x4b270c[_0xc3a9c0(0x131)]!==!0x1,'transform':{'left':(_0x407a73==null?void 0x0:_0x407a73[_0xc3a9c0(0xd7)])??0x0,'top':(_0x407a73==null?void 0x0:_0x407a73[_0xc3a9c0(0xb2)])??0x0,'width':(_0x407a73==null?void 0x0:_0x407a73[_0xc3a9c0(0x10c)])??0xc8,'height':(_0x407a73==null?void 0x0:_0x407a73['height'])??0xc8,'rotation':(_0x407a73==null?void 0x0:_0x407a73[_0xc3a9c0(0x162)])??0x0,'flipX':(_0x407a73==null?void 0x0:_0x407a73[_0xc3a9c0(0x144)])??!0x1,'flipY':(_0x407a73==null?void 0x0:_0x407a73[_0xc3a9c0(0xd1)])??!0x1}};}[_0x3f22e1(0x134)](_0x5e85bd){const _0x470027=_0x3f22e1;let _0x587a35=this[_0x470027(0x156)][_0x470027(0x104)](_0x5e85bd['unitId'],_0x5e85bd[_0x470027(0xcc)])??{};return Object['values'](_0x587a35)['filter'](_0x35ac6c=>(_0x35ac6c==null?void 0x0:_0x35ac6c[_0x470027(0xa0)])===_0x22d16c[_0x470027(0x142)])[_0x470027(0x118)](_0xb4811c=>this[_0x470027(0x9b)]({..._0x5e85bd,'shapeId':_0xb4811c[_0x470027(0x160)]}))['filter'](_0x296744=>!!_0x296744);}[_0x3f22e1(0xcb)](_0x5eceb5){const _0x3ff7a0=_0x3f22e1;let _0x4dbc82=this['_instanceService'][_0x3ff7a0(0xb1)](_0x5eceb5,_0x450045[_0x3ff7a0(0xc5)]);return(_0x4dbc82==null?void 0x0:_0x4dbc82[_0x3ff7a0(0xf6)]()['flatMap'](_0x56f827=>this[_0x3ff7a0(0x134)]({'hostType':this[_0x3ff7a0(0xc6)],'unitId':_0x5eceb5,'subUnitId':_0x56f827['getSheetId']()})))??[];}[_0x3f22e1(0xfc)](_0x157897,_0x51cf1f){const _0x40c0b2=_0x3f22e1;let _0xc23c94=_0x37255f(),_0x54e7b1=Se(_0x51cf1f),_0x1edd5c=_0x459ecb['deepClone'](_0x51cf1f[_0x40c0b2(0x148)]??_0x51c485(_0x51cf1f['shapeType']));return this[_0x40c0b2(0x94)][_0x40c0b2(0x12b)](fe['id'],{'unitId':_0x157897[_0x40c0b2(0x108)],'subUnitId':_0x157897[_0x40c0b2(0xcc)],'shapeId':_0xc23c94,'shapeType':_0x51cf1f[_0x40c0b2(0xfb)],'shapeData':_0x1edd5c,'name':_0x51cf1f[_0x40c0b2(0x10d)],'description':_0x51cf1f[_0x40c0b2(0x95)],'position':{'x':_0x54e7b1[_0x40c0b2(0xd7)],'y':_0x54e7b1[_0x40c0b2(0xb2)]},'width':_0x54e7b1[_0x40c0b2(0x10c)],'height':_0x54e7b1[_0x40c0b2(0xea)],'rotation':_0x54e7b1[_0x40c0b2(0xd4)],'flipX':_0x54e7b1[_0x40c0b2(0x144)],'flipY':_0x54e7b1['flipY'],'visible':_0x51cf1f[_0x40c0b2(0x151)]??!0x0,'selectable':_0x51cf1f[_0x40c0b2(0x131)]??!0x0})?{..._0x157897,'shapeId':_0xc23c94,'shapeType':_0x51cf1f[_0x40c0b2(0xfb)],'shapeData':_0x1edd5c,'name':_0x51cf1f[_0x40c0b2(0x10d)],'description':_0x51cf1f[_0x40c0b2(0x95)],'visible':_0x51cf1f[_0x40c0b2(0x151)]??!0x0,'selectable':_0x51cf1f[_0x40c0b2(0x131)]??!0x0,'transform':_0x54e7b1}:null;}[_0x3f22e1(0x129)](_0x41fab0,_0x3c3a39){const _0x565385=_0x3f22e1;var _0x594f02;let _0x418bf6=this['getShape'](_0x41fab0);if(!_0x418bf6)return!0x1;let _0x4462a1={..._0x418bf6[_0x565385(0x9c)],..._0x3c3a39[_0x565385(0x9c)]};return this['_commandService'][_0x565385(0x12b)](pe['id'],{'unitId':_0x41fab0[_0x565385(0x108)],'subUnitId':_0x41fab0['subUnitId'],'shapeId':_0x41fab0['shapeId'],'shapeType':_0x3c3a39[_0x565385(0xfb)]??((_0x594f02=_0x3c3a39[_0x565385(0x148)])==null?void 0x0:_0x594f02[_0x565385(0xfb)])??_0x418bf6['shapeType'],'shapeData':_0x3c3a39[_0x565385(0x148)]??_0x418bf6['shapeData'],'position':{'x':_0x4462a1[_0x565385(0xd7)],'y':_0x4462a1[_0x565385(0xb2)]},'width':_0x4462a1[_0x565385(0x10c)],'height':_0x4462a1[_0x565385(0xea)],'rotation':_0x4462a1['rotation'],'flipX':_0x4462a1[_0x565385(0x144)],'flipY':_0x4462a1[_0x565385(0xd1)],'name':_0x565385(0x10d)in _0x3c3a39?_0x3c3a39[_0x565385(0x10d)]:_0x418bf6[_0x565385(0x10d)],'description':_0x565385(0x95)in _0x3c3a39?_0x3c3a39[_0x565385(0x95)]:_0x418bf6[_0x565385(0x95)],'visible':_0x3c3a39['visible']??_0x418bf6[_0x565385(0x151)],'selectable':_0x3c3a39[_0x565385(0x131)]??_0x418bf6[_0x565385(0x131)]});}[_0x3f22e1(0xf0)](_0x40eb8c,_0x4bc678,_0x4c0962){const _0x17ccbe=_0x3f22e1;let _0x2af7df=this[_0x17ccbe(0x9b)](_0x40eb8c),_0x7e93c=_0x2af7df==null?void 0x0:_0x2af7df[_0x17ccbe(0x148)]['formulaBinding'];return!_0x2af7df||!_0x7e93c?null:{'id':$['id'],'params':{'unitId':_0x40eb8c[_0x17ccbe(0x108)],'subUnitId':_0x40eb8c['subUnitId'],'shapeId':_0x40eb8c[_0x17ccbe(0xc8)],'shapeData':{..._0x2af7df[_0x17ccbe(0x148)],'formulaBinding':{..._0x7e93c,'lastValue':_0x459ecb[_0x17ccbe(0x145)](_0x4c0962)}},'replace':!0x0,'formulaLastValueGuard':_0x4bc678}};}[_0x3f22e1(0xef)](_0x47c893){const _0xb4a32b=_0x3f22e1;return this[_0xb4a32b(0x94)][_0xb4a32b(0x12b)](_0x5308ac['id'],{'unitId':_0x47c893['unitId'],'drawings':[{'unitId':_0x47c893[_0xb4a32b(0x108)],'subUnitId':_0x47c893['subUnitId'],'drawingId':_0x47c893['shapeId'],'drawingType':_0x22d16c[_0xb4a32b(0x142)]}]});}[_0x3f22e1(0xb7)](_0x40a880){const _0x3b5fbd=_0x3f22e1;return this[_0x3b5fbd(0xf1)](_0x40a880,_0x297960[_0x3b5fbd(0x11b)]);}[_0x3f22e1(0x103)](_0x4e1d9c){const _0xad0052=_0x3f22e1;return this[_0xad0052(0xf1)](_0x4e1d9c,_0x297960[_0xad0052(0x111)]);}[_0x3f22e1(0xae)](_0x1841e2){const _0x3c2e6d=_0x3f22e1;return this[_0x3c2e6d(0xf1)](_0x1841e2,_0x297960[_0x3c2e6d(0x130)]);}[_0x3f22e1(0xe3)](_0x4cb5ad){const _0x39b0a9=_0x3f22e1;return this['_arrange'](_0x4cb5ad,_0x297960[_0x39b0a9(0x128)]);}[_0x3f22e1(0x8f)](_0x399b16,_0x2e9d00){const _0x5128f5=_0x3f22e1;return this[_0x5128f5(0x94)][_0x5128f5(0x12b)](_0x7986a0['id'],{'unitId':_0x399b16[_0x5128f5(0x108)],'subUnitId':_0x399b16[_0x5128f5(0xcc)],'drawingIds':[_0x399b16[_0x5128f5(0xc8)]],'zOrder':_0x2e9d00});}['_arrange'](_0x7da67a,_0x9dfc6b){const _0xa697b=_0x3f22e1;return this[_0xa697b(0x94)][_0xa697b(0x12b)](_0x7986a0['id'],{'unitId':_0x7da67a[_0xa697b(0x108)],'subUnitId':_0x7da67a[_0xa697b(0xcc)],'drawingIds':[_0x7da67a[_0xa697b(0xc8)]],'arrangeType':_0x9dfc6b});}};Ce=le([Z(0x0,_0x145f99),Z(0x1,_0x250a7c(Q)),Z(0x2,_0x332817),Z(0x3,_0x1c64e6)],Ce);const we={};let Te=class extends _0x1fb2da{constructor(_0x15fcd2,_0x1836fa,_0x12f2f4,_0xcf0f58,_0x1ec773,_0x1c591b,_0x3bf494){const _0x267a80=_0x3f22e1;super(),this['_commandService']=_0x15fcd2,this[_0x267a80(0x9a)]=_0x1836fa,this[_0x267a80(0x152)]=_0x12f2f4,this[_0x267a80(0x90)]=_0xcf0f58,this[_0x267a80(0xa9)]=_0x1ec773,this['_shapeHostAdapterRegistry']=_0x1c591b,this['_initCommands'](),this[_0x267a80(0x11f)](),this[_0x267a80(0x121)](this[_0x267a80(0x96)]['register'](_0x3bf494));}[_0x3f22e1(0xf7)](){const _0x5b9abc=_0x3f22e1;[fe,pe,me,he,ge,_e,ve,ue,de,ye,$][_0x5b9abc(0xbd)](_0x47289e=>this['disposeWithMe'](this['_commandService'][_0x5b9abc(0xa1)](_0x47289e)));}[_0x3f22e1(0x11f)](){const _0x3ea173=_0x3f22e1;this[_0x3ea173(0x121)](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0x5b58fd=>{const _0x2bbcc8=_0x3ea173;if(_0x5b58fd['id']===_0x5308ac['id']){let {drawings:_0x1408d7}=_0x5b58fd[_0x2bbcc8(0xb8)],_0x198136=_0x1408d7[_0x2bbcc8(0x14d)](_0x228589=>_0x228589[_0x2bbcc8(0xa0)]===_0x22d16c[_0x2bbcc8(0x142)]);if(_0x198136[_0x2bbcc8(0x101)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x548d15=[],_0x56ebd8=[];return _0x198136[_0x2bbcc8(0xbd)](_0x4f1221=>{const _0x26d8a8=_0x2bbcc8;let {unitId:_0x5416aa,subUnitId:_0x3e0fcc,drawingId:_0x1a16a2}=_0x4f1221,_0x239518=this[_0x26d8a8(0x90)][_0x26d8a8(0x119)](_0x5416aa,_0x3e0fcc,_0x1a16a2);if(!_0x239518)throw TypeError(_0x26d8a8(0xc0)+_0x239518);_0x548d15[_0x26d8a8(0x150)]({'id':de['id'],'params':{'unitId':_0x5416aa,'subUnitId':_0x3e0fcc,'shapeId':_0x1a16a2}}),_0x56ebd8[_0x26d8a8(0x150)]({'id':ue['id'],'params':{'unitId':_0x5416aa,'subUnitId':_0x3e0fcc,'shapeId':_0x1a16a2,'shapeType':_0x239518[_0x26d8a8(0x13d)](),'shapeData':_0x239518[_0x26d8a8(0xa3)]()}});let _0x3b6c5b=this['_sheetsShapeService']['getBasicShapeRelation'](_0x5416aa,_0x3e0fcc,_0x1a16a2);if(_0x3b6c5b)for(let _0x1446fd of _0x3b6c5b){let _0x467d9d=_0x1446fd[_0x26d8a8(0x133)],_0x55db9b=_0x1446fd[_0x26d8a8(0xd6)],_0x19b36a=_0x55db9b?{'from':void 0x0}:{'to':void 0x0},_0x49e634=_0x55db9b?{'from':{'shapeId':_0x1446fd[_0x26d8a8(0xc8)],'cxnIndex':_0x1446fd[_0x26d8a8(0xa4)]}}:{'to':{'shapeId':_0x1446fd[_0x26d8a8(0xc8)],'cxnIndex':_0x1446fd[_0x26d8a8(0xa4)]}};_0x548d15[_0x26d8a8(0x150)]({'id':$['id'],'params':{'unitId':_0x5416aa,'subUnitId':_0x3e0fcc,'shapeId':_0x467d9d,'shapeData':{'relation':_0x19b36a}}}),_0x56ebd8[_0x26d8a8(0x150)]({'id':$['id'],'params':{'unitId':_0x5416aa,'subUnitId':_0x3e0fcc,'shapeId':_0x467d9d,'shapeData':{'relation':_0x49e634}}});}}),{'preRedos':_0x548d15,'redos':[],'preUndos':[],'undos':_0x56ebd8};}if(_0x5b58fd['id']===_0xfc3872['id']){let {drawings:_0x205d5b}=_0x5b58fd[_0x2bbcc8(0xb8)],_0x394fc8=_0x205d5b[_0x2bbcc8(0x14d)](_0xe4f83f=>_0xe4f83f[_0x2bbcc8(0xa0)]===_0x22d16c['DRAWING_SHAPE']);if(_0x394fc8[_0x2bbcc8(0x101)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x2bc17f=[],_0x5e6e4c=[];for(let _0x5b7e13 of _0x394fc8){let {unitId:_0x1e0350,subUnitId:_0x1761b0,drawingId:_0x452039,transform:_0x511956}=_0x5b7e13;if(!_0x1e0350||!_0x1761b0||!_0x452039||!_0x511956)continue;let _0x753250=this[_0x2bbcc8(0x90)]['getShapeModel'](_0x1e0350,_0x1761b0,_0x452039);if(!_0x753250)throw TypeError(_0x2bbcc8(0xc0)+_0x753250);let _0x4b2b2a=_0x753250['getShapeType']();if(_0x2450e1(_0x4b2b2a)){let _0x33e1e3=this[_0x2bbcc8(0x90)][_0x2bbcc8(0x13e)](_0x1e0350,_0x1761b0,_0x452039);_0x33e1e3&&(_0x2bc17f[_0x2bbcc8(0x150)]({'id':$['id'],'params':{'unitId':_0x1e0350,'subUnitId':_0x1761b0,'shapeId':_0x452039,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x5e6e4c['push']({'id':$['id'],'params':{'unitId':_0x1e0350,'subUnitId':_0x1761b0,'shapeId':_0x452039,'shapeData':{'relation':_0x33e1e3}}}));}else{let _0x40622f=this[_0x2bbcc8(0x90)][_0x2bbcc8(0xa6)](_0x1e0350,_0x1761b0,_0x452039);if(_0x40622f&&_0x40622f['length']>0x0)for(let _0x1828ba of _0x40622f){let _0xa494ee=_0x1828ba[_0x2bbcc8(0x133)],_0xa997ac=_0x1828ba[_0x2bbcc8(0xd6)],_0x5123c6=this[_0x2bbcc8(0x90)][_0x2bbcc8(0x119)](_0x1e0350,_0x1761b0,_0xa494ee);if(!_0x5123c6)continue;let _0x16b1e8=_0x5123c6[_0x2bbcc8(0xde)](),_0x257abb=_0x5123c6[_0x2bbcc8(0xdf)]();_0x16b1e8&&_0x257abb?this[_0x2bbcc8(0xb0)](_0x1e0350,_0x1761b0,_0xa494ee,_0x5123c6,_0x16b1e8,_0x257abb,_0x2bc17f,_0x5e6e4c,_0x452039,_0x511956):this[_0x2bbcc8(0x13f)](_0x1e0350,_0x1761b0,_0xa494ee,_0x5123c6,_0xa997ac?_0x16b1e8:_0x257abb,_0xa997ac,_0x2bc17f,_0x5e6e4c,_0x452039,_0x511956);}}}return{'preRedos':[],'redos':_0x2bc17f,'preUndos':_0x5e6e4c,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x3f22e1(0xf5)](_0x3f1a48,_0x264bee,_0x1e352e,_0x40a9c7,_0x505682){const _0x47f4b3=_0x3f22e1;if(!_0x264bee||!_0x1e352e)return null;let {shapeId:_0x5974a6,cxnIndex:_0x135a62}=_0x3f1a48,_0xb6a46a=this[_0x47f4b3(0x90)]['getShapeModel'](_0x264bee,_0x1e352e,_0x5974a6);if(!_0xb6a46a)return null;let _0x176ce6=this[_0x47f4b3(0xa9)]['getDrawingByParam']({'unitId':_0x264bee,'subUnitId':_0x1e352e,'drawingId':_0x5974a6});if(!(_0x176ce6!=null&&_0x176ce6[_0x47f4b3(0x9c)]))return null;let {left:_0x24277a=0x0,top:_0x253640=0x0,width:_0x42b8d8=0x0,height:_0x4cdbc3=0x0,flipX:_0x177d1c=!0x1,flipY:_0x191ae9=!0x1,angle:_0x119eab}=_0x176ce6[_0x47f4b3(0x9c)];_0x505682&&_0x40a9c7===_0x5974a6&&(_0x24277a=_0x505682['left']??_0x24277a,_0x253640=_0x505682[_0x47f4b3(0xb2)]??_0x253640,_0x42b8d8=_0x505682[_0x47f4b3(0x10c)]??_0x42b8d8,_0x4cdbc3=_0x505682[_0x47f4b3(0xea)]??_0x4cdbc3,_0x177d1c=_0x505682[_0x47f4b3(0x144)]??_0x177d1c,_0x191ae9=_0x505682['flipY']??_0x191ae9,_0x119eab=_0x505682['angle']??_0x119eab),_0xb6a46a['updateContext']({'width':_0x42b8d8,'height':_0x4cdbc3});let _0x52bfa3=_0xb6a46a[_0x47f4b3(0xa7)]()['find'](_0x3ff3b8=>_0x3ff3b8[_0x47f4b3(0xc1)]===_0x135a62);if(!_0x52bfa3)return null;let _0x131be1=_0x177d1c?_0x42b8d8-_0x52bfa3['x']:_0x52bfa3['x'],_0x4d4370=_0x191ae9?_0x4cdbc3-_0x52bfa3['y']:_0x52bfa3['y'];if(_0x119eab!==0x0&&_0x119eab!=null){let _0x1ccdd7=_0x119eab*Math['PI']/0xb4,_0x5297e8=Math[_0x47f4b3(0x135)](_0x1ccdd7),_0x2e56da=Math[_0x47f4b3(0x105)](_0x1ccdd7),_0x4ddfa4=_0x42b8d8/0x2,_0x4f767d=_0x4cdbc3/0x2,_0x30d113=_0x131be1-_0x4ddfa4,_0x20d01f=_0x4d4370-_0x4f767d;_0x131be1=_0x4ddfa4+_0x30d113*_0x5297e8-_0x20d01f*_0x2e56da,_0x4d4370=_0x4f767d+_0x30d113*_0x2e56da+_0x20d01f*_0x5297e8;}_0x131be1+=_0x24277a,_0x4d4370+=_0x253640;let _0x511c33=_0x52bfa3[_0x47f4b3(0xf8)]/0xea60;_0x177d1c&&(_0x511c33=0xb4-_0x511c33),_0x191ae9&&(_0x511c33=-_0x511c33),_0x511c33+=_0x119eab||0x0,_0x511c33=(_0x511c33%0x168+0x168)%0x168;let _0x210eb0=_0x80534b({'left':_0x24277a,'top':_0x253640,'width':_0x42b8d8,'height':_0x4cdbc3},_0x119eab||0x0);return{'point':{'x':_0x131be1,'y':_0x4d4370},'angle':_0x511c33,'bounds':_0x210eb0};}[_0x3f22e1(0xb0)](_0x860e59,_0x4516c6,_0x3bc3dd,_0x81721e,_0x29db7e,_0x3ef77e,_0x5206cc,_0x36237e,_0x3bebd2,_0x54d376){const _0x49fd58=_0x3f22e1;let _0x1f3950=this[_0x49fd58(0x152)][_0x49fd58(0x12c)](_0x860e59,_0x4516c6);if(!_0x1f3950)return;let _0x3fd4be=_0x81721e['getShapeRelation'](),_0x5b2ae1=_0x81721e[_0x49fd58(0xd9)](),_0x39aef9={},_0x423ce4={};_0x5b2ae1[_0x49fd58(0xbd)](_0x2bf17a=>{let _0x2e7101=_0x81721e['getAdjustValueByName'](_0x2bf17a);_0x423ce4[_0x2bf17a]=_0x2e7101??0x0;});let _0x2eee5a=this[_0x49fd58(0xf5)](_0x29db7e,_0x860e59,_0x4516c6,_0x3bebd2,_0x54d376),_0x141d95=this[_0x49fd58(0xf5)](_0x3ef77e,_0x860e59,_0x4516c6,_0x3bebd2,_0x54d376);if(_0x2eee5a&&_0x141d95){let _0x280775=_0x81721e['getShapeType'](),_0x1e92b0=_0x3d2433(_0x2eee5a,_0x141d95,_0x280775),_0xc6ed43=_0x280775;if(_0x1e92b0){let _0x42355f=_0x165dc4(_0x1e92b0,_0x81721e[_0x49fd58(0x13d)]()),_0xb06dc0=this[_0x49fd58(0xa9)][_0x49fd58(0x104)](_0x860e59,_0x4516c6);if(_0xb06dc0&&_0xb06dc0[_0x3bc3dd]){let _0x477931=_0xb06dc0[_0x3bc3dd];_0xc6ed43=_0x42355f['lineType'];for(let [_0x4f69df,_0xda658c]of Object['entries'](_0x42355f[_0x49fd58(0xa2)]))_0x39aef9[_0x4f69df]=_0xda658c;let _0x159a5f={..._0x477931['transform'],'width':_0x42355f[_0x49fd58(0x106)][_0x49fd58(0x10c)],'height':_0x42355f[_0x49fd58(0x106)]['height'],'left':_0x42355f[_0x49fd58(0x106)]['left'],'top':_0x42355f['worldRect'][_0x49fd58(0xb2)],'flipX':_0x42355f['worldRect']['flipX'],'flipY':_0x42355f['worldRect'][_0x49fd58(0xd1)],'angle':_0x42355f[_0x49fd58(0xd4)]},_0x46e531=_0x1c7e91(_0x159a5f,_0x1f3950),_0x3d32b5=_0x58b681(_0x159a5f,_0x1f3950),_0x52127a={'unitId':_0x860e59,'subUnitId':_0x4516c6,'drawingType':_0x22d16c[_0x49fd58(0x142)],'drawingId':_0x3bc3dd,'transform':_0x159a5f,'sheetTransform':_0x46e531,'axisAlignSheetTransform':_0x3d32b5},{unitId:_0x6d94f1,subUnitId:_0x2cc19c,undo:_0x1852f8,redo:_0x178585,objects:_0x37603b}=this[_0x49fd58(0xa9)][_0x49fd58(0x12f)]([_0x52127a]);_0x5206cc['push']({'id':_0x3cc575['id'],'params':{'unitId':_0x6d94f1,'subUnitId':_0x2cc19c,'op':_0x178585,'objects':_0x37603b,'type':_0x4fc098['UPDATE']}}),_0x36237e[_0x49fd58(0x150)]({'id':_0x3cc575['id'],'params':{'unitId':_0x6d94f1,'subUnitId':_0x2cc19c,'op':_0x1852f8,'objects':_0x37603b,'type':_0x4fc098[_0x49fd58(0xec)]}});}_0x81721e[_0x49fd58(0x117)]();}_0x5206cc[_0x49fd58(0x150)]({'id':$['id'],'params':{'unitId':_0x860e59,'subUnitId':_0x4516c6,'shapeId':_0x3bc3dd,'shapeType':_0xc6ed43,'shapeData':{'adjustValues':_0x39aef9,'relation':_0x3fd4be}}}),_0x36237e['push']({'id':$['id'],'params':{'unitId':_0x860e59,'subUnitId':_0x4516c6,'shapeId':_0x3bc3dd,'shapeType':_0x280775,'shapeData':{'adjustValues':_0x423ce4,'relation':_0x3fd4be}}});}}[_0x3f22e1(0x13f)](_0x512b6c,_0x55be31,_0x5d0d10,_0x587ae5,_0x75a8ea,_0x133374,_0x3bd498,_0x1607a2,_0x203a85,_0x5966c1){const _0x3260db=_0x3f22e1;var _0x286a43;if(!_0x75a8ea)return;let _0x966663=this[_0x3260db(0x152)][_0x3260db(0x12c)](_0x512b6c,_0x55be31);if(!_0x966663)return;let _0x54fc37=(_0x286a43=this[_0x3260db(0xa9)][_0x3260db(0xd8)]({'unitId':_0x512b6c,'subUnitId':_0x55be31,'drawingId':_0x203a85}))==null?void 0x0:_0x286a43[_0x3260db(0x9c)];if(!_0x54fc37)return;let _0x2a4c0e=_0x54fc37[_0x3260db(0xd7)]!==_0x5966c1['left']||_0x54fc37[_0x3260db(0xb2)]!==_0x5966c1[_0x3260db(0xb2)],_0x418f1e=_0x54fc37[_0x3260db(0x10c)]!==_0x5966c1['width']||_0x54fc37[_0x3260db(0xea)]!==_0x5966c1[_0x3260db(0xea)],_0x483923=_0x54fc37['flipX']!==_0x5966c1['flipX']||_0x54fc37[_0x3260db(0xd1)]!==_0x5966c1[_0x3260db(0xd1)],_0x106121=_0x54fc37[_0x3260db(0x162)]!==_0x5966c1[_0x3260db(0x162)];if(_0x2a4c0e&&!_0x418f1e&&!_0x483923&&!_0x106121){let _0x24f797=(_0x5966c1[_0x3260db(0xd7)]??0x0)-(_0x54fc37[_0x3260db(0xd7)]??0x0),_0x2ab75e=(_0x5966c1[_0x3260db(0xb2)]??0x0)-(_0x54fc37[_0x3260db(0xb2)]??0x0),_0x5f591d=this[_0x3260db(0xa9)][_0x3260db(0x104)](_0x512b6c,_0x55be31);if(_0x5f591d&&_0x5f591d[_0x5d0d10]){var _0x4b0980,_0x57c68a;let _0x4ae593=_0x5f591d[_0x5d0d10],_0x381351={..._0x4ae593['transform'],'left':(((_0x4b0980=_0x4ae593[_0x3260db(0x9c)])==null?void 0x0:_0x4b0980[_0x3260db(0xd7)])??0x0)+_0x24f797,'top':(((_0x57c68a=_0x4ae593[_0x3260db(0x9c)])==null?void 0x0:_0x57c68a[_0x3260db(0xb2)])??0x0)+_0x2ab75e},_0x4c56cd=_0x1c7e91(_0x381351,_0x966663),_0x473cbe=_0x58b681(_0x381351,_0x966663),_0x16ced2={'unitId':_0x512b6c,'subUnitId':_0x55be31,'drawingType':_0x22d16c[_0x3260db(0x142)],'drawingId':_0x5d0d10,'transform':_0x381351,'sheetTransform':_0x4c56cd,'axisAlignSheetTransform':_0x473cbe},{unitId:_0x1184fc,subUnitId:_0x3a8253,undo:_0x5a6f95,redo:_0x2911ec,objects:_0x34255c}=this[_0x3260db(0xa9)][_0x3260db(0x12f)]([_0x16ced2]);_0x3bd498['push']({'id':_0x3cc575['id'],'params':{'unitId':_0x1184fc,'subUnitId':_0x3a8253,'op':_0x2911ec,'objects':_0x34255c,'type':_0x4fc098[_0x3260db(0xec)]}}),_0x1607a2[_0x3260db(0x150)]({'id':_0x3cc575['id'],'params':{'unitId':_0x1184fc,'subUnitId':_0x3a8253,'op':_0x5a6f95,'objects':_0x34255c,'type':_0x4fc098[_0x3260db(0xec)]}});}}else{let _0x281823=_0x587ae5['getStartConnectInfo'](),_0x126622=_0x587ae5['getEndConnectInfo']();this['_addLineRerouteUpdates'](_0x512b6c,_0x55be31,_0x5d0d10,_0x587ae5,_0x281823,_0x126622,_0x3bd498,_0x1607a2,_0x203a85,_0x5966c1);}}};Te=le([Z(0x0,_0x145f99),Z(0x1,_0x250a7c(_0x25d093)),Z(0x2,_0x250a7c(_0x2edf17)),Z(0x3,_0x250a7c(Q)),Z(0x4,_0x250a7c(_0x35c817)),Z(0x5,_0x250a7c(_0x51e3d2)),Z(0x6,_0x250a7c(Ce))],Te);function _0x53c9(){const _0x5f4c10=['left','getDrawingByParam','getAdjustNames','fromJSON','sheet.command.update-line-shape-resize','setConfig','sheet.mutation.update-shape-data','getStartConnectInfo','getEndConnectInfo','object','onCommandExecuted','_initSnapshot','sendToBack','_deserializeShapeForUnit','getShapeTypeById','pushUndoRedo','function','symbol','packageName','height','isLineShape','UPDATE','_resolveBinding','77TfByOy','removeShape','createFormulaLastValueMutation','_arrange','toPrimitive','_ensureShapeModelManager','sheet.command.set-shape-rotate','_getConnectPointInfo','getSheets','_initCommands','ang','_shapeAdapter','20qBxFem','shapeType','createShape','onStarting','ensureSkeleton','undos','_planDeletes','length','shapeName','bringForward','getDrawingData','sin','worldRect','keys','unitId','Both','getBasicShapeType','SHEET_SHAPE_PLUGIN','width','name','data','getOwnPropertyDescriptor','point','forward','_config','_planConnector','onCommandExecute','clear','getShapeRelation','removeLinePoints','map','getShapeModel','_configService','front','deletes','borderEnabled','refresh','_initCommandInterceptor','11460988PJSVOd','disposeWithMe','constructor','getName','487808acUrFd','stringify','_resourcesManagerService','_linesIds','back','updateShape','_shapeService','syncExecuteCommand','getSkeleton','parse','_serializeShapeForUnit','getBatchUpdateOp','backward','selectable','redos','lineShapeId','listShapes','cos','COMMAND','sheet.command.set-shape-text-vertical-toggle','startX','sheet.command.toggle-shape-flip','formula','sheet.mutation.insert-shape','startY','getShapeType','getLineShapeRelation','_addLineFollowShapeUpdates','@univerjs-pro/sheets-shape','get','DRAWING_SHAPE','addShape','flipX','deepClone','delete','add','shapeData','version','dispose','_toSnapshot','_instanceService','filter','_shapeModelManagerMap','pluginName','push','visible','_sheetSkeletonService','decorate','register','_disposed','_drawingService','type','fill','sheet.command.insert-shape','skeleton','hasShape','string','158CPjlMS','sheets-shape.config','3979269MxYTDM','drawingId','1634193CfCxjo','angle','_groupIds','set','setZOrder','_sheetsShapeService','_applyUpdate','range','toJSON','_commandService','description','_shapeHostAdapterRegistry','formulaBinding','position','insertShape','_sheetInterceptorService','getShape','transform','resizeEnabled','2876956aEtNNx','has','drawingType','registerCommand','adjustValues','getShapeData','cxnIndex','58098Zwevaw','getBasicShapeRelation','getConnectionSiteList','_shapes','_drawingManagerService','prototype','rotateEnabled','values','command','sendBackward','setShapeType','_addLineRerouteUpdates','getUnit','top','preUndos','iterator','preRedos','MUTATION','bringToFront','params','setShapeData','originals','getShapeDataById','sheet.mutation.update-shape-type','forEach','575fHARpc','relation','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','index','_injector','14936YJXKNY','mode','UNIVER_SHEET','hostType','getShapeDisplayNames','shapeId','getBatchAddOp','shapeChanged$','listShapesInUnit','subUnitId','getShapeTextData','from','hidden','defineProperty','flipY','getId','updates','rotation','result','isFrom'];_0x53c9=function(){return _0x5f4c10;};return _0x53c9();}let Ee=class extends _0x1fb2da{constructor(_0x257c26,_0x4bb962,_0x4c576c){const _0x153caa=_0x3f22e1;super(),this['_shapeService']=_0x257c26,this[_0x153caa(0xf9)]=_0x4bb962,this['disposeWithMe'](_0x4c576c[_0x153caa(0x154)](this));}[_0x3f22e1(0x9c)](_0x45897c){const _0x1a7f06=_0x3f22e1;let _0x3295fc={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this['_planDeletes'](_0x45897c,_0x3295fc);for(let [_0x2683ff,_0x4306e1]of _0x45897c[_0x1a7f06(0xba)])this[_0x1a7f06(0x113)](_0x45897c,_0x2683ff,_0x4306e1,_0x3295fc);return _0x3295fc;}[_0x3f22e1(0x100)](_0x280113,_0x12c73f){const _0x2b8a2e=_0x3f22e1;if(_0x280113[_0x2b8a2e(0xc4)]===_0x2b8a2e(0xad))for(let _0x232ab2 of _0x280113[_0x2b8a2e(0x11c)]){let _0x2de548=_0x280113[_0x2b8a2e(0xba)][_0x2b8a2e(0x141)](_0x232ab2),_0x529114=this[_0x2b8a2e(0x12a)][_0x2b8a2e(0x119)](_0x280113[_0x2b8a2e(0x108)],_0x280113[_0x2b8a2e(0xcc)],_0x232ab2);(_0x2de548==null?void 0x0:_0x2de548['drawingType'])===_0x22d16c[_0x2b8a2e(0x142)]&&_0x529114&&(_0x12c73f['preRedos'][_0x2b8a2e(0x150)]({'id':de['id'],'params':{'unitId':_0x280113[_0x2b8a2e(0x108)],'subUnitId':_0x280113['subUnitId'],'shapeId':_0x232ab2}}),_0x12c73f['undos'][_0x2b8a2e(0x150)]({'id':ue['id'],'params':{'unitId':_0x280113['unitId'],'subUnitId':_0x280113[_0x2b8a2e(0xcc)],'shapeId':_0x232ab2,'shapeName':_0x529114[_0x2b8a2e(0x123)](),'shapeType':_0x529114[_0x2b8a2e(0x13d)](),'shapeData':_0x459ecb[_0x2b8a2e(0x145)](_0x529114[_0x2b8a2e(0xa3)]())}}));}}[_0x3f22e1(0x113)](_0x136a52,_0x651d59,_0x22047b,_0x5ac15b){const _0x591b96=_0x3f22e1;if(_0x22047b['drawingType']!==_0x22d16c[_0x591b96(0x142)]||_0x136a52[_0x591b96(0x11c)][_0x591b96(0x9f)](_0x651d59))return;let _0x5bf40e=this[_0x591b96(0x12a)]['getShapeModel'](_0x136a52['unitId'],_0x136a52[_0x591b96(0xcc)],_0x651d59);if(!_0x5bf40e||!_0x2450e1(_0x5bf40e[_0x591b96(0x13d)]()))return;let _0x18dd1e=_0x5bf40e[_0x591b96(0x116)]();if(!(_0x136a52[_0x591b96(0xd3)][_0x591b96(0x9f)](_0x651d59)||_0x18dd1e!=null&&_0x18dd1e[_0x591b96(0xce)]&&(_0x136a52['updates']['has'](_0x18dd1e[_0x591b96(0xce)][_0x591b96(0xc8)])||_0x136a52[_0x591b96(0x11c)][_0x591b96(0x9f)](_0x18dd1e[_0x591b96(0xce)][_0x591b96(0xc8)]))||_0x18dd1e!=null&&_0x18dd1e['to']&&(_0x136a52[_0x591b96(0xd3)][_0x591b96(0x9f)](_0x18dd1e['to']['shapeId'])||_0x136a52['deletes']['has'](_0x18dd1e['to']['shapeId']))))return;let _0x3fdd1f=_0x136a52['updates'][_0x591b96(0x141)](_0x651d59)??_0x22047b,_0x2eaada=this[_0x591b96(0x14b)](_0x136a52,_0x3fdd1f);if(!_0x2eaada)return;let _0x2ddd8b=_0x4edb6b(_0x2eaada);if(_0x2ddd8b[_0x591b96(0x101)]<0x2)return;let _0x2df5d8=_0x459ecb['deepClone'](_0x18dd1e??{}),_0x2d1444=_0x2df5d8[_0x591b96(0xce)]&&this[_0x591b96(0xed)](_0x136a52,_0x2df5d8[_0x591b96(0xce)][_0x591b96(0xc8)],_0x2df5d8['from'][_0x591b96(0xa4)]),_0x5c8d89=_0x2df5d8['to']&&this[_0x591b96(0xed)](_0x136a52,_0x2df5d8['to'][_0x591b96(0xc8)],_0x2df5d8['to'][_0x591b96(0xa4)]);_0x2df5d8[_0x591b96(0xce)]&&!_0x2d1444&&delete _0x2df5d8['from'],_0x2df5d8['to']&&!_0x5c8d89&&delete _0x2df5d8['to'];let _0x4e1a96=_0x2d1444||_0x37fda8((_0x5c8d89==null?void 0x0:_0x5c8d89['point'])??_0x2ddd8b[_0x2ddd8b[_0x591b96(0x101)]-0x1],_0x2ddd8b[0x0]),_0x23675f=_0x5c8d89||_0x37fda8((_0x2d1444==null?void 0x0:_0x2d1444[_0x591b96(0x110)])??_0x2ddd8b[0x0],_0x2ddd8b[_0x2ddd8b[_0x591b96(0x101)]-0x1]),_0x378fd3=_0x3f9eae(_0x2eaada,_0x4e1a96,_0x23675f,_0x2df5d8);_0x378fd3!=null&&_0x378fd3[_0x591b96(0x9c)]&&_0x378fd3[_0x591b96(0xfb)]&&_0x378fd3[_0x591b96(0x148)]&&(this['_applyUpdate'](_0x136a52,_0x3fdd1f,_0x378fd3),_0x136a52[_0x591b96(0xc4)]===_0x591b96(0x11e)?(_0x5bf40e[_0x591b96(0xaf)](_0x378fd3['shapeType']),_0x5bf40e[_0x591b96(0xb9)](_0x459ecb[_0x591b96(0x145)](_0x378fd3[_0x591b96(0x148)]),!0x1)):(_0x5ac15b[_0x591b96(0x132)][_0x591b96(0x150)]({'id':$['id'],'params':{'unitId':_0x136a52[_0x591b96(0x108)],'subUnitId':_0x136a52['subUnitId'],'shapeId':_0x651d59,'shapeType':_0x378fd3[_0x591b96(0xfb)],'shapeData':_0x459ecb[_0x591b96(0x145)](_0x378fd3[_0x591b96(0x148)]),'replace':!0x0}}),_0x5ac15b[_0x591b96(0xff)][_0x591b96(0x150)]({'id':$['id'],'params':{'unitId':_0x136a52['unitId'],'subUnitId':_0x136a52[_0x591b96(0xcc)],'shapeId':_0x651d59,'shapeType':_0x5bf40e[_0x591b96(0x13d)](),'shapeData':_0x459ecb[_0x591b96(0x145)](_0x5bf40e[_0x591b96(0xa3)]()),'replace':!0x0}})));}['_resolveBinding'](_0x37a9eb,_0x4bb815,_0xaf608e){const _0x148ec0=_0x3f22e1;if(_0x37a9eb[_0x148ec0(0x11c)][_0x148ec0(0x9f)](_0x4bb815))return null;let _0x49b2c0=_0x37a9eb['updates'][_0x148ec0(0x141)](_0x4bb815)??_0x37a9eb['originals'][_0x148ec0(0x141)](_0x4bb815);if(!_0x49b2c0)return null;let _0x233974=this[_0x148ec0(0x14b)](_0x37a9eb,_0x49b2c0);return _0x233974?_0x139314(_0x233974,_0xaf608e):null;}[_0x3f22e1(0x14b)](_0x2ede91,_0x4b625b){const _0x374598=_0x3f22e1;let _0x3ebdc2={'hostType':_0x450045[_0x374598(0xc5)],'unitId':_0x2ede91[_0x374598(0x108)],'subUnitId':_0x2ede91['subUnitId'],'shapeId':_0x4b625b[_0x374598(0x160)]},_0x490367=this[_0x374598(0xf9)][_0x374598(0x9b)](_0x3ebdc2);return!_0x490367||!_0x4b625b[_0x374598(0x9c)]?null:{..._0x490367,'transform':{'left':_0x4b625b[_0x374598(0x9c)][_0x374598(0xd7)]??0x0,'top':_0x4b625b[_0x374598(0x9c)][_0x374598(0xb2)]??0x0,'width':_0x4b625b[_0x374598(0x9c)][_0x374598(0x10c)]??0x0,'height':_0x4b625b[_0x374598(0x9c)][_0x374598(0xea)]??0x0,'rotation':_0x4b625b[_0x374598(0x9c)]['angle']??0x0,'flipX':_0x4b625b[_0x374598(0x9c)][_0x374598(0x144)]??!0x1,'flipY':_0x4b625b['transform'][_0x374598(0xd1)]??!0x1}};}[_0x3f22e1(0x91)](_0x413cc9,_0x6c9686,_0x5f4c15){const _0x5404f3=_0x3f22e1;let _0x6e2933=_0x6c9686,_0xd404db={..._0x6c9686[_0x5404f3(0x9c)],'left':_0x5f4c15['transform']['left'],'top':_0x5f4c15['transform'][_0x5404f3(0xb2)],'width':_0x5f4c15[_0x5404f3(0x9c)][_0x5404f3(0x10c)],'height':_0x5f4c15[_0x5404f3(0x9c)][_0x5404f3(0xea)],'angle':_0x5f4c15[_0x5404f3(0x9c)][_0x5404f3(0xd4)],'flipX':_0x5f4c15[_0x5404f3(0x9c)][_0x5404f3(0x144)],'flipY':_0x5f4c15[_0x5404f3(0x9c)]['flipY']},_0x38d32a={..._0x6e2933,'transform':_0xd404db,'sheetTransform':_0x1c7e91(_0xd404db,_0x413cc9[_0x5404f3(0x15a)]),'axisAlignSheetTransform':_0x58b681(_0xd404db,_0x413cc9[_0x5404f3(0x15a)]),'data':{..._0x6e2933['data'],'shapeType':_0x5f4c15[_0x5404f3(0xfb)],'shapeData':_0x459ecb[_0x5404f3(0x145)](_0x5f4c15[_0x5404f3(0x148)])}};_0x413cc9['updates']['set'](_0x6c9686[_0x5404f3(0x160)],_0x38d32a);}};Ee=le([Z(0x0,_0x250a7c(Q)),Z(0x1,_0x250a7c(Ce)),Z(0x2,_0x250a7c(_0x128800))],Ee);let De=class extends _0x42693f{constructor(_0x27ae4=we,_0x5c9a35,_0xd4ec72){const _0x3a9193=_0x3f22e1;super(),this['_config']=_0x27ae4,this[_0x3a9193(0xc2)]=_0x5c9a35,this[_0x3a9193(0x11a)]=_0xd4ec72;let {..._0x11857f}=_0x4e08f3({},we,this[_0x3a9193(0x112)]);this[_0x3a9193(0x11a)][_0x3a9193(0xdc)](_0x3a9193(0x15e),_0x11857f);}[_0x3f22e1(0xfd)](){const _0x718091=_0x3f22e1;let _0x558672=this[_0x718091(0xc2)];[[ce],[Q],[Ce],[Ee],[Te]][_0x718091(0xbd)](_0x25cadf=>_0x558672[_0x718091(0x147)](_0x25cadf)),_0x4916d2(_0x558672,[[Q],[Ee],[Te]]);}};X(De,_0x3f22e1(0x157),_0x450045[_0x3f22e1(0xc5)]),X(De,_0x3f22e1(0x14f),_0x3f22e1(0x10b)),X(De,_0x3f22e1(0xe9),be),X(De,_0x3f22e1(0x149),xe),De=le([_0x1e127b(_0x17c4d9,_0x36529b,_0x2314d4,_0x2945f8,_0x1d8662),Z(0x1,_0x250a7c(_0x440a2e)),Z(0x2,_0x3b65ed)],De);export{ie as DEFAULT_SHAPE_HEIGHT,re as DEFAULT_SHAPE_WIDTH,fe as InsertShapeCommand,ue as InsertSheetsShapeMutation,de as RemoveSheetsShapeMutation,pe as SetShapeDrawingDataCommand,he as SetSheetsShapeRotateCommand,ge as SetSheetsShapeTextVerticalToggleCommand,Q as SheetsShapeService,me as ToggleSheetsShapeFlipCommand,De as UniverSheetsShapePlugin,_e as UpdateConnectorRelationCommand,ve as UpdateLineShapeResizeCommand,$ as UpdateSheetsShapeDataMutation,ye as UpdateSheetsShapeTypeMutation};
1
+ const _0x225b1f=_0x2588;(function(_0x44f386,_0x2a9234){const _0x242c9b=_0x2588,_0x5d6669=_0x44f386();while(!![]){try{const _0x1fc419=parseInt(_0x242c9b(0x138))/0x1+parseInt(_0x242c9b(0x1e7))/0x2+parseInt(_0x242c9b(0x15e))/0x3*(parseInt(_0x242c9b(0x1c6))/0x4)+-parseInt(_0x242c9b(0x19f))/0x5+-parseInt(_0x242c9b(0x15a))/0x6*(parseInt(_0x242c9b(0x12f))/0x7)+parseInt(_0x242c9b(0x19c))/0x8+-parseInt(_0x242c9b(0x1da))/0x9;if(_0x1fc419===_0x2a9234)break;else _0x5d6669['push'](_0x5d6669['shift']());}catch(_0x14c77f){_0x5d6669['push'](_0x5d6669['shift']());}}}(_0x6e62,0xe8266));function _0x6e62(){const _0x56f02c=['axisAlignSheetTransform','sheet.command.set-shape-drawing-data','CHART','getShapeRelation','createShape','sheet.command.insert-shape','command','removeShape','every','None','redos','transferShapeTo','cxnIndex','_drawingManagerService','ensureSkeleton','getAdjustValueByName','insertShape','type','_configService','resizeEnabled','GRID','hidden','_planDeletes','result','map','onCommandExecute','find','_shapeService','6sNqMfG','createFormulaLastValueMutation','_instanceService','getBasicShapeRelation','147qtDkPE','_arrange','forward','decorate','_sheetInterceptorService','keys','_injector','pluginName','top','params','UNIVER_SHEET','listShapes','INSERT','setConfig','has','getShapeData','sheet.mutation.insert-shape','from','getDrawingByParam','transform','function','disposeWithMe','unitId','front','getShapeModel','deletes','flipX','_groupIds','getShapeDataById','getSkeleton','forEach','packageName','entries','parse','getBasicShapeType','_shapeAdapter','getBatchUpdateOp','registerCommand','rotation','shapeChanged$','rehostShape','_sheetSkeletonService','sheet.command.update-connector-relation','_resourcesManagerService','getLineShapeRelation','relation','DRAWING_SHAPE','getShapeDisplayNames','getOwnPropertyDescriptor','push','formula','drawings','getName','updateShape','_planConnector','shapeData','fill','angle','clear','setShapeType','values','sin','4228624yEPaPa','get','getShapeType','2637435vHCjUF','constructor','filter','interceptCommand','description','toJSON','_shapes','getConnectionSiteList','startX','length','prototype','hasShape','rotateEnabled','deepClone','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','getSheetId','pushUndoRedo','position','mode','name','backward','height','skeleton','updates','preRedos','_getConnectPointInfo','SHEET_SHAPE_PLUGIN','_getDrawingUpdates','worldRect','isFinite','getShape','lineShapeId','setZOrder','getShapeTextData','_commandService','drawingId','UPDATE','borderEnabled','sendBackward','48876tMLhDS','REMOVE','_addLineRerouteUpdates','bringToFront','version','getUnit','width','visible','_deserializeShapeForUnit','sheet.command.set-shape-rotate','delete','register','getDrawingData','_resolveBinding','left','subUnitId','lineType','onCommandExecuted','getEndConnectInfo','getConfig','5684148voiFWF','1.5.0','ang','object','originals','set','updateContext','_initCommands','MUTATION','dispose','_toSnapshot','getId','_shapeHostAdapterRegistry','745978zCPzIV','getStartConnectInfo','kind','setShapeData','undos','_linesIds','Both','adjustValues','sheets-shape.config','drawingType','_shapeModelManagerMap','_ensureShapeModelManager','onStarting','cos','isHorizontal','fromJSON','symbol','add','sheet.mutation.remove-shape','_addLineFollowShapeUpdates','getSheets','defineProperty','_initCommandInterceptor','data','sendToBack','selectable','_sheetsShapeService','_drawingService','startY','@univerjs-pro/sheets-shape','flipY','preUndos','shapeId','3613414ccqaAd','_initSnapshot','string','getBatchAddOp','shapeType','addShape','COMMAND','syncExecuteCommand','isFrom','1125849ftCBle','formulaBinding','getAdjustNames','_applyUpdate','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','range'];_0x6e62=function(){return _0x56f02c;};return _0x6e62();}import{IShapeHostAdapterRegistry as _0x26e807,ShapeModel as _0x3e1cf5,UniverShapePlugin as _0x2d662f,buildConnectorEndpointUpdate as _0x39a6f1,canApplyShapeFormulaLastValue as _0x5cebb4,computeConnectorRouteLayout as _0x20b01f,createDefaultInsertedShapeData as _0x2169ba,createFreeConnectorPointInfo as _0x21057d,createUniqueShapeName as _0x4ff467,getBasicShapeRotateBound as _0x29238b,isConnectorShape as _0x10aa10,resolveConnectorRoutePoints as _0x2536c2,resolveShapeConnectionPoint as _0x150c8e,routeConnectorLineShape as _0x19932a}from'@univerjs-pro/engine-shape';import{ArrangeTypeEnum as _0x22aed2,CommandType as _0x4e919d,DependentOn as _0x4f8586,Disposable as _0x1b1f35,DrawingTypeEnum as _0x1b1709,ICommandService as _0x1220c4,IConfigService as _0x121a34,IResourceManagerService as _0x35f035,IUndoRedoService as _0x3626df,IUniverInstanceService as _0x2543b8,Inject as _0x9e5ef9,Injector as _0x28f5b9,Plugin as _0x543854,SheetTypes as _0x52a118,Tools as _0x56bc3c,UniverInstanceType as _0x32e2b1,generateRandomId as _0x34af8c,merge as _0x13580a,sequenceExecute as _0x5c6377,touchDependencies as _0x5e640a}from'@univerjs/core';import{SheetInterceptorService as _0x4c2afb,SheetSkeletonService as _0x32f773,UniverSheetsPlugin as _0x5b96cb,getSheetCommandTarget as _0x483059}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x5bdc79,DrawingApplyType as _0x2c701a,ISheetDrawingService as _0x5f3711,InsertSheetDrawingCommand as _0x3f8f5f,RemoveSheetDrawingCommand as _0x52d128,SetDrawingApplyMutation as _0xa539c0,SetDrawingArrangeCommand as _0x51e055,SetSheetDrawingCommand as _0x57d0bf,SetSheetDrawingPlacementCommand as _0xede2d4,SheetDrawingAnchorType as _0x105b85,SheetDrawingTransformPlanService as _0x1cf727,UniverSheetsDrawingPlugin as _0x5ad029,applySheetDrawingPlacement as _0x506f27,transformToAxisAlignPosition as _0x2d2bb4,transformToDrawingPosition as _0x3b3677}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x52e3ac}from'@univerjs-pro/license';import{IDrawingManagerService as _0x410964,UniverDrawingPlugin as _0xa332b5}from'@univerjs/drawing';function _0x2588(_0x46bc4e,_0x426019){_0x46bc4e=_0x46bc4e-0x11e;const _0x6e6291=_0x6e62();let _0x2588aa=_0x6e6291[_0x46bc4e];return _0x2588aa;}const oe=0xc8,se=0xc8;function ce(_0x30e5f7){'@babel/helpers - typeof';const _0x4a6c92=_0x2588;return ce=typeof Symbol==_0x4a6c92(0x172)&&typeof Symbol['iterator']==_0x4a6c92(0x11e)?function(_0x483d1a){return typeof _0x483d1a;}:function(_0x1d18a6){const _0x5074eb=_0x4a6c92;return _0x1d18a6&&typeof Symbol==_0x5074eb(0x172)&&_0x1d18a6[_0x5074eb(0x1a0)]===Symbol&&_0x1d18a6!==Symbol[_0x5074eb(0x1a9)]?_0x5074eb(0x11e):typeof _0x1d18a6;},ce(_0x30e5f7);}function le(_0x222cf9,_0x1b5cf1){const _0x4877cd=_0x2588;if(ce(_0x222cf9)!=_0x4877cd(0x1dd)||!_0x222cf9)return _0x222cf9;var _0x5ab897;if(typeof Symbol<'u'&&(_0x5ab897=_0x222cf9[Symbol['toPrimitive']])!==void 0x0){var _0x2dea99=_0x5ab897['call'](_0x222cf9,_0x1b5cf1||'default');if(ce(_0x2dea99)!='object')return _0x2dea99;throw TypeError(_0x4877cd(0x13c));}return(_0x1b5cf1===_0x4877cd(0x131)?String:Number)(_0x222cf9);}function ue(_0x385692){const _0x2c4242=_0x2588;var _0x41eb79=le(_0x385692,'string');return ce(_0x41eb79)==_0x2c4242(0x11e)?_0x41eb79:_0x41eb79+'';}function X(_0x27e95a,_0x292c44,_0x327181){const _0x3e349f=_0x2588;return(_0x292c44=ue(_0x292c44))in _0x27e95a?Object[_0x3e349f(0x123)](_0x27e95a,_0x292c44,{'value':_0x327181,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x27e95a[_0x292c44]=_0x327181,_0x27e95a;}var de=class extends _0x1b1f35{constructor(){const _0x3cbc68=_0x2588;super(),X(this,_0x3cbc68(0x1a5),new Map()),X(this,_0x3cbc68(0x1ec),new Set()),X(this,_0x3cbc68(0x179),new Set());}['addShape'](_0x3bddbd,_0x19347e,_0x1b557b,_0x3b0b2f){const _0x5261f6=_0x2588;let _0xdc4dee=new _0x3e1cf5(_0x3bddbd,_0x19347e,_0x1b557b,_0x3b0b2f);return this[_0x5261f6(0x1a5)][_0x5261f6(0x1df)](_0x19347e,_0xdc4dee),_0x10aa10(_0x3bddbd)&&this[_0x5261f6(0x1ec)][_0x5261f6(0x11f)](_0x19347e),_0xdc4dee;}[_0x225b1f(0x15d)](_0x233dd1){const _0x8b42aa=_0x225b1f;let _0x3fed1e=[];for(let _0x39dd5d of this['_linesIds']){let _0x3f63ae=this[_0x8b42aa(0x1a5)]['get'](_0x39dd5d);if(_0x3f63ae){let _0x688c39=_0x3f63ae[_0x8b42aa(0x141)]();if(_0x688c39){var _0xcd7d37,_0x2179f0;((_0xcd7d37=_0x688c39[_0x8b42aa(0x16f)])==null?void 0x0:_0xcd7d37['shapeId'])===_0x233dd1&&_0x3fed1e[_0x8b42aa(0x18f)]({..._0x688c39['from'],'lineShapeId':_0x39dd5d,'isFrom':!0x0}),((_0x2179f0=_0x688c39['to'])==null?void 0x0:_0x2179f0['shapeId'])===_0x233dd1&&_0x3fed1e[_0x8b42aa(0x18f)]({..._0x688c39['to'],'lineShapeId':_0x39dd5d,'isFrom':!0x1});}}}return _0x3fed1e;}[_0x225b1f(0x18a)](_0x549d5f){const _0x593be0=_0x225b1f;let _0x5d13a4=this[_0x593be0(0x1a5)][_0x593be0(0x19d)](_0x549d5f);if(_0x5d13a4)return _0x5d13a4[_0x593be0(0x141)]();}[_0x225b1f(0x19e)](_0x17b530){const _0x466333=_0x225b1f;let _0x2bb127=this['_shapes'][_0x466333(0x19d)](_0x17b530);if(_0x2bb127)return _0x2bb127[_0x466333(0x19e)]();}[_0x225b1f(0x1aa)](_0x384704){const _0x1e3832=_0x225b1f;return this[_0x1e3832(0x1a5)][_0x1e3832(0x16c)](_0x384704);}['getShapeDisplayNames'](){const _0x18f965=_0x225b1f;return Array[_0x18f965(0x16f)](this[_0x18f965(0x1a5)]['values']())[_0x18f965(0x156)](_0x233003=>_0x233003[_0x18f965(0x192)]()||_0x233003[_0x18f965(0x1e5)]());}[_0x225b1f(0x149)](_0x294e86,_0x20e499){const _0x39431f=_0x225b1f;let _0x5a8ef7=this[_0x39431f(0x1a5)][_0x39431f(0x19d)](_0x20e499);return!_0x5a8ef7||_0x294e86['hasShape'](_0x20e499)?!0x1:(this[_0x39431f(0x145)](_0x20e499),_0x294e86[_0x39431f(0x1a5)][_0x39431f(0x1df)](_0x20e499,_0x5a8ef7),_0x10aa10(_0x5a8ef7[_0x39431f(0x19e)]())&&_0x294e86[_0x39431f(0x1ec)][_0x39431f(0x11f)](_0x20e499),!0x0);}[_0x225b1f(0x145)](_0x276546){const _0x15a98c=_0x225b1f;let _0xf07f03=this[_0x15a98c(0x1a5)]['get'](_0x276546);_0xf07f03&&(_0x10aa10(_0xf07f03[_0x15a98c(0x19e)]())&&this[_0x15a98c(0x1ec)][_0x15a98c(0x1d0)](_0x276546),this[_0x15a98c(0x1a5)][_0x15a98c(0x1d0)](_0x276546));}[_0x225b1f(0x1a4)](){const _0x4fa41d=_0x225b1f;let _0x5be7f8=[];return this[_0x4fa41d(0x1a5)][_0x4fa41d(0x17c)](_0x4ee4e1=>{const _0x52a815=_0x4fa41d;_0x5be7f8[_0x52a815(0x18f)](_0x4ee4e1[_0x52a815(0x1a4)]());}),_0x5be7f8;}[_0x225b1f(0x1f6)](_0x4c5a42){const _0xc5379c=_0x225b1f;for(let _0x3e7ab6 of _0x4c5a42){let {id:_0x39061a,shapeType:_0x26b78c,name:_0x43ccea}=_0x3e7ab6,_0x2d49fd=this[_0xc5379c(0x134)](_0x26b78c,_0x39061a,_0x3e7ab6[_0xc5379c(0x195)],_0x43ccea);_0x2d49fd&&_0x2d49fd['isLineShape']()&&this[_0xc5379c(0x1ec)][_0xc5379c(0x11f)](_0x39061a);}}[_0x225b1f(0x1e3)](){const _0x396ab6=_0x225b1f;this['_disposed']||(this[_0x396ab6(0x1a5)]['forEach'](_0x5b7d68=>{_0x5b7d68['dispose']();}),this[_0x396ab6(0x1a5)][_0x396ab6(0x198)](),this[_0x396ab6(0x1ec)]['clear'](),this['_groupIds'][_0x396ab6(0x198)](),super[_0x396ab6(0x1e3)]());}};function Z(_0x1eabc4,_0x4e03ca){return function(_0x483c47,_0x5f0146){_0x4e03ca(_0x483c47,_0x5f0146,_0x1eabc4);};}function fe(_0x1c2c90,_0x54cec6,_0x1c9e56,_0x17fda6){const _0x222109=_0x225b1f;var _0x3ba272=arguments['length'],_0x4e66a5=_0x3ba272<0x3?_0x54cec6:_0x17fda6===null?_0x17fda6=Object[_0x222109(0x18e)](_0x54cec6,_0x1c9e56):_0x17fda6,_0x577a9e;if(typeof Reflect=='object'&&typeof Reflect[_0x222109(0x161)]==_0x222109(0x172))_0x4e66a5=Reflect['decorate'](_0x1c2c90,_0x54cec6,_0x1c9e56,_0x17fda6);else{for(var _0xe59129=_0x1c2c90[_0x222109(0x1a8)]-0x1;_0xe59129>=0x0;_0xe59129--)(_0x577a9e=_0x1c2c90[_0xe59129])&&(_0x4e66a5=(_0x3ba272<0x3?_0x577a9e(_0x4e66a5):_0x3ba272>0x3?_0x577a9e(_0x54cec6,_0x1c9e56,_0x4e66a5):_0x577a9e(_0x54cec6,_0x1c9e56))||_0x4e66a5);}return _0x3ba272>0x3&&_0x4e66a5&&Object[_0x222109(0x123)](_0x54cec6,_0x1c9e56,_0x4e66a5),_0x4e66a5;}let Q=class extends _0x1b1f35{constructor(_0x40d24e){const _0x4ccc34=_0x225b1f;super(),this['_resourcesManagerService']=_0x40d24e,X(this,_0x4ccc34(0x1f1),new Map()),this[_0x4ccc34(0x130)]();}[_0x225b1f(0x1f2)](_0x487b29,_0x2f51c0){const _0x195b7b=_0x225b1f;let _0x6c03d5=this[_0x195b7b(0x1f1)][_0x195b7b(0x19d)](_0x487b29);_0x6c03d5||(_0x6c03d5=new Map(),this[_0x195b7b(0x1f1)]['set'](_0x487b29,_0x6c03d5));let _0x396674=_0x6c03d5[_0x195b7b(0x19d)](_0x2f51c0);return _0x396674||(_0x396674=new de(),_0x6c03d5['set'](_0x2f51c0,_0x396674)),_0x396674;}[_0x225b1f(0x14e)](_0x395d85,_0x20ef20,_0x8cada7,_0x2fa691,_0x38f531,_0x20b77b){const _0x321569=_0x225b1f;this['_ensureShapeModelManager'](_0x395d85,_0x20ef20)[_0x321569(0x134)](_0x8cada7,_0x2fa691,_0x38f531,_0x20b77b);}[_0x225b1f(0x186)](_0x346024,_0x29c307,_0xdcecb4,_0x2714de){const _0x4cb31c=_0x225b1f;var _0x383acc;let _0xd285ad=(_0x383acc=this[_0x4cb31c(0x1f1)][_0x4cb31c(0x19d)](_0x346024))==null?void 0x0:_0x383acc[_0x4cb31c(0x19d)](_0x29c307);return!_0xd285ad||_0x29c307===_0xdcecb4?!0x1:_0xd285ad[_0x4cb31c(0x149)](this[_0x4cb31c(0x1f2)](_0x346024,_0xdcecb4),_0x2714de);}[_0x225b1f(0x145)](_0x2c40d8,_0x542187,_0x23e188){const _0x49a3aa=_0x225b1f;this[_0x49a3aa(0x1f2)](_0x2c40d8,_0x542187)['removeShape'](_0x23e188);}[_0x225b1f(0x180)](_0x552d27,_0x6ab3de,_0x4526d8){const _0xce189e=_0x225b1f;return this[_0xce189e(0x1f2)](_0x552d27,_0x6ab3de)['getShapeType'](_0x4526d8);}[_0x225b1f(0x19e)](_0x4c654b,_0x1a07f0,_0x4d096c){const _0x151b63=_0x225b1f;return this[_0x151b63(0x1f2)](_0x4c654b,_0x1a07f0)[_0x151b63(0x19e)](_0x4d096c);}['hasShape'](_0x1462ea,_0x161e27,_0xff720){const _0x351e17=_0x225b1f;return this['_ensureShapeModelManager'](_0x1462ea,_0x161e27)[_0x351e17(0x1aa)](_0xff720);}['getShapeTypeById'](_0x3b005e,_0x1e4cbd,_0xd75998){const _0x16fbda=_0x225b1f;return this[_0x16fbda(0x1f2)](_0x3b005e,_0x1e4cbd)[_0x16fbda(0x19e)](_0xd75998);}['getShapeDataById'](_0x4e8f19,_0x5a3c63,_0x26000f){const _0x131546=_0x225b1f;let _0x259750=this[_0x131546(0x1f2)](_0x4e8f19,_0x5a3c63);if(!_0x259750[_0x131546(0x19e)](_0x26000f))return;let _0x3bc0f1=_0x259750['_shapes'][_0x131546(0x19d)](_0x26000f);if(_0x3bc0f1)return _0x3bc0f1[_0x131546(0x16d)]();}[_0x225b1f(0x18d)](_0x487663,_0x358cdc){const _0x4eb0fc=_0x225b1f;return this[_0x4eb0fc(0x1f2)](_0x487663,_0x358cdc)[_0x4eb0fc(0x18d)]();}[_0x225b1f(0x176)](_0x1a5d3a,_0x199fd0,_0x36edd9){const _0x3cf56b=_0x225b1f;return this[_0x3cf56b(0x1f2)](_0x1a5d3a,_0x199fd0)[_0x3cf56b(0x1a5)][_0x3cf56b(0x19d)](_0x36edd9);}['getBasicShapeRelation'](_0x50ca28,_0x568155,_0x1297a9){const _0x4bba55=_0x225b1f;return this[_0x4bba55(0x1f2)](_0x50ca28,_0x568155)[_0x4bba55(0x15d)](_0x1297a9);}[_0x225b1f(0x18a)](_0x510d97,_0x58bf43,_0x5acd84){const _0x2a995b=_0x225b1f;let _0x3e846a=this[_0x2a995b(0x1f2)](_0x510d97,_0x58bf43)[_0x2a995b(0x1a5)][_0x2a995b(0x19d)](_0x5acd84);if(_0x3e846a)return _0x3e846a[_0x2a995b(0x141)]();}[_0x225b1f(0x199)](){}['_serializeShapeForUnit'](_0xc4ff54){const _0x282fa1=_0x225b1f;let _0x354ad8={},_0x260702=this[_0x282fa1(0x1f1)]['get'](_0xc4ff54);return _0x260702&&_0x260702[_0x282fa1(0x17c)]((_0x31b3e9,_0x287e9a)=>{const _0x2b9553=_0x282fa1;let _0x37b6aa=_0x31b3e9[_0x2b9553(0x1a4)]();_0x37b6aa[_0x2b9553(0x1a8)]>0x0&&(_0x354ad8[_0x287e9a]=_0x37b6aa);}),JSON['stringify'](_0x354ad8);}[_0x225b1f(0x1ce)](_0x477885,_0x71f190){const _0x531689=_0x225b1f;Object[_0x531689(0x163)](_0x71f190)['forEach'](_0x143fce=>{const _0x266c3c=_0x531689;this[_0x266c3c(0x1f2)](_0x477885,_0x143fce)[_0x266c3c(0x1f6)](_0x71f190[_0x143fce]);});}[_0x225b1f(0x1a4)](){const _0x245e30=_0x225b1f;let _0x4f57f2={};return this[_0x245e30(0x1f1)][_0x245e30(0x17c)]((_0x197e34,_0x30efa7)=>{_0x4f57f2[_0x30efa7]={},_0x197e34['forEach']((_0x1589ed,_0x542ac5)=>{_0x4f57f2[_0x30efa7][_0x542ac5]=_0x1589ed['toJSON']();});}),_0x4f57f2;}[_0x225b1f(0x1f6)](_0x5a7295){const _0x570574=_0x225b1f;Object[_0x570574(0x163)](_0x5a7295)[_0x570574(0x17c)](_0x229ecd=>{const _0x1dd67c=_0x570574;let _0x32a699=_0x5a7295[_0x229ecd];Object['keys'](_0x32a699)[_0x1dd67c(0x17c)](_0x291dc0=>{const _0x2536ee=_0x1dd67c;this[_0x2536ee(0x1f2)](_0x229ecd,_0x291dc0)[_0x2536ee(0x1f6)](_0x32a699[_0x291dc0]);});});}[_0x225b1f(0x130)](){const _0x12b52b=_0x225b1f;this[_0x12b52b(0x189)]['registerPluginResource']({'pluginName':_0x12b52b(0x1b9),'businesses':[_0x32e2b1[_0x12b52b(0x168)]],'toJson':_0x3f8e81=>this['_serializeShapeForUnit'](_0x3f8e81),'parseJson':_0x5da1e0=>JSON[_0x12b52b(0x17f)](_0x5da1e0),'onLoad':(_0x1eca70,_0x5dc85d)=>{const _0x2db846=_0x12b52b;this[_0x2db846(0x1ce)](_0x1eca70,_0x5dc85d);},'onUnLoad':_0x2b2246=>{const _0x3df784=_0x12b52b;let _0x147188=this[_0x3df784(0x1f1)][_0x3df784(0x19d)](_0x2b2246);_0x147188&&(_0x147188['forEach'](_0x87f632=>{const _0x2e08cc=_0x3df784;_0x87f632[_0x2e08cc(0x1e3)]();}),this[_0x3df784(0x1f1)][_0x3df784(0x1d0)](_0x2b2246));}});}['dispose'](){const _0x4da379=_0x225b1f;this[_0x4da379(0x1f1)][_0x4da379(0x17c)](_0x14edb4=>{const _0x1979f5=_0x4da379;_0x14edb4[_0x1979f5(0x17c)](_0x586129=>{const _0x2b9447=_0x1979f5;_0x586129[_0x2b9447(0x1e3)]();});});}};Q=fe([Z(0x0,_0x35f035)],Q);const pe={'id':_0x225b1f(0x16e),'type':_0x4e919d[_0x225b1f(0x1e2)],'handler':(_0x52f2a7,_0x3534ad)=>{const _0x507dd8=_0x225b1f;let {unitId:_0x31b3cd,subUnitId:_0x1aec7c,shapeType:_0x48be5b,shapeId:_0x5b6d5e,shapeName:_0x3f7795,shapeData:_0x1a5532}=_0x3534ad;return _0x52f2a7[_0x507dd8(0x19d)](Q)['insertShape'](_0x31b3cd,_0x1aec7c,_0x48be5b,_0x5b6d5e,_0x56bc3c[_0x507dd8(0x1ac)](_0x1a5532),_0x3f7795),!0x0;}},me={'id':_0x225b1f(0x120),'type':_0x4e919d['MUTATION'],'handler':(_0x11ed09,_0x2c6379)=>{let {unitId:_0x47cc1b,subUnitId:_0x2ef336,shapeId:_0x349de1}=_0x2c6379;return _0x11ed09['get'](Q)['removeShape'](_0x47cc1b,_0x2ef336,_0x349de1),!0x0;}},he={'type':_0x4e919d['COMMAND'],'id':_0x225b1f(0x143),'handler':(_0x139bb6,_0x4e96fc)=>{const _0xef97c5=_0x225b1f;let _0x102558=_0x483059(_0x139bb6[_0xef97c5(0x19d)](_0x2543b8),_0x4e96fc);if(!_0x102558)return!0x1;let {unitId:_0x9d3b66,subUnitId:_0x48e83a,worksheet:_0x3a4bca}=_0x102558,_0x1ae62d=_0x3a4bca[_0xef97c5(0x1d9)]()[_0xef97c5(0x14f)]??_0x52a118['GRID'],_0x1193bb=_0x1ae62d===_0x52a118[_0xef97c5(0x140)];if(!_0x1193bb&&_0x1ae62d!==_0x52a118[_0xef97c5(0x152)])return!0x1;let _0x204528=_0x1193bb?void 0x0:_0x139bb6[_0xef97c5(0x19d)](_0x32f773)[_0xef97c5(0x14c)](_0x9d3b66,_0x48e83a);if(!_0x1193bb&&!_0x204528)return!0x1;let _0x42d054=_0x1193bb?_0x4e96fc[_0xef97c5(0x1cc)]??0xc8:_0x4e96fc[_0xef97c5(0x1cc)]||0xc8,_0x371758=_0x1193bb?_0x4e96fc[_0xef97c5(0x1b4)]??0xc8:_0x4e96fc[_0xef97c5(0x1b4)]||0xc8,{position:_0x3f010e}=_0x4e96fc;if(_0x1193bb&&(!Number[_0xef97c5(0x1bc)](_0x42d054)||!Number[_0xef97c5(0x1bc)](_0x371758)||_0x42d054<=0x0||_0x371758<=0x0||_0x3f010e&&(!Number[_0xef97c5(0x1bc)](_0x3f010e['x'])||!Number['isFinite'](_0x3f010e['y']))))return!0x1;let _0x553d93=_0x139bb6[_0xef97c5(0x19d)](_0x1220c4),_0x179833=_0x139bb6['get'](_0x3626df),_0x289ff7=_0x139bb6['get'](_0x4c2afb),_0x6e31ac=_0x139bb6['get'](_0x5f3711),_0x56d31e=_0x139bb6[_0xef97c5(0x19d)](Q),{shapeType:_0x31b8ac}=_0x4e96fc,_0x34d4ac=_0x4e96fc['shapeData']??_0x2169ba(_0x31b8ac),_0xc6a6eb=_0x4e96fc[_0xef97c5(0x12e)]||_0x34af8c(),_0x5052dd={'unitId':_0x9d3b66,'subUnitId':_0x48e83a,'shapeId':_0xc6a6eb,'shapeName':_0x4e96fc['shapeName']??_0x4ff467(_0x31b8ac,_0x56d31e[_0xef97c5(0x18d)](_0x9d3b66,_0x48e83a)),'shapeType':_0x31b8ac,'shapeData':_0x34d4ac},_0x580a0b=0x0,_0x1cc07f=0x0;if(_0x4e96fc[_0xef97c5(0x1b0)]){let {x:_0x1e5e8d,y:_0x4d1b14}=_0x4e96fc[_0xef97c5(0x1b0)];_0x580a0b=_0x1e5e8d,_0x1cc07f=_0x4d1b14;}else{if(_0x4e96fc[_0xef97c5(0x13d)]&&_0x204528){let {startRow:_0x1395a7,startColumn:_0x219a02}=_0x4e96fc[_0xef97c5(0x13d)],_0x159622=_0x204528['getCellWithCoordByIndex'](_0x1395a7,_0x219a02);_0x580a0b=_0x159622[_0xef97c5(0x1a7)]+0xa,_0x1cc07f=_0x159622[_0xef97c5(0x12a)]+0xa;}}let _0x1bb09d={'left':_0x580a0b,'top':_0x1cc07f,'width':_0x42d054,'height':_0x371758,'angle':_0x4e96fc[_0xef97c5(0x184)]??0x0,'flipX':_0x4e96fc[_0xef97c5(0x178)]??!0x1,'flipY':_0x4e96fc[_0xef97c5(0x12c)]??!0x1},_0x2825a5={'row':0x0,'column':0x0,'rowOffset':0x0,'columnOffset':0x0},_0x57ed61=_0x204528?_0x3b3677(_0x1bb09d,_0x204528):{'from':_0x2825a5,'to':_0x2825a5},_0x46785d=_0x204528?_0x2d2bb4(_0x1bb09d,_0x204528):_0x57ed61,_0x1c5163={'unitId':_0x9d3b66,'subUnitId':_0x48e83a,'drawingId':_0xc6a6eb,'drawingType':_0x1b1709[_0xef97c5(0x18c)],'anchorType':_0x105b85[_0xef97c5(0x1ed)],'name':_0x4e96fc['name'],'description':_0x4e96fc[_0xef97c5(0x1a3)],'sheetTransform':_0x57ed61,'transform':_0x1bb09d,'data':{'shapeType':_0x31b8ac,'shapeData':_0x34d4ac},'axisAlignSheetTransform':_0x46785d,'allowTransform':!0x0,'hidden':_0x4e96fc[_0xef97c5(0x1cd)]===!0x1,'selectable':_0x4e96fc[_0xef97c5(0x127)]??!0x0};if(_0x1193bb){let _0x2ab7b3=_0x506f27(_0x1c5163,{'kind':_0x105b85['None'],'left':_0x580a0b,'top':_0x1cc07f,'width':_0x42d054,'height':_0x371758});_0x1c5163={..._0x1c5163,'anchorType':_0x2ab7b3['anchorType'],'transform':_0x2ab7b3[_0xef97c5(0x171)],'sheetTransform':_0x2ab7b3['sheetTransform'],'axisAlignSheetTransform':_0x2ab7b3[_0xef97c5(0x13e)]};}_0x10aa10(_0x31b8ac)&&(_0x1c5163[_0xef97c5(0x125)][_0xef97c5(0x196)]=!0x1,_0x1c5163[_0xef97c5(0x125)]['rotateEnabled']=!0x1,_0x1c5163[_0xef97c5(0x125)]['resizeEnabled']=!0x1,_0x1c5163[_0xef97c5(0x125)][_0xef97c5(0x1c4)]=!0x1,_0x1c5163[_0xef97c5(0x171)][_0xef97c5(0x1ab)]=!0x1,_0x1c5163['transform'][_0xef97c5(0x151)]=!0x1,_0x1c5163['transform'][_0xef97c5(0x1c4)]=!0x1);let {undo:_0x5b951f,redo:_0x71f608,objects:_0x33aa85}=_0x6e31ac[_0xef97c5(0x132)]([_0x1c5163]),_0x313a36=_0x289ff7[_0xef97c5(0x157)]({'id':_0x3f8f5f['id'],'params':{'unitId':_0x9d3b66,'drawings':[_0x1c5163]}}),_0x344e4a=[..._0x313a36['preRedos']??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x9d3b66,'subUnitId':_0x48e83a,'op':_0x71f608,'objects':_0x33aa85,'type':_0x2c701a[_0xef97c5(0x16a)]}},{'id':_0x5bdc79['id'],'params':[_0x9d3b66]},..._0x313a36[_0xef97c5(0x148)],{'id':pe['id'],'params':_0x5052dd}],_0x49eb48=[{'id':me['id'],'params':{'unitId':_0x9d3b66,'subUnitId':_0x48e83a,'shapeId':_0xc6a6eb}},..._0x313a36['preUndos']??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x9d3b66,'subUnitId':_0x48e83a,'op':_0x5b951f,'objects':_0x33aa85,'type':_0x2c701a[_0xef97c5(0x1c7)]}},{'id':_0x5bdc79['id'],'params':[_0x9d3b66]},..._0x313a36[_0xef97c5(0x1eb)]];return _0x5c6377(_0x344e4a,_0x553d93)['result']?(_0x179833[_0xef97c5(0x1af)]({'unitID':_0x9d3b66,'undoMutations':_0x49eb48,'redoMutations':_0x344e4a}),!0x0):!0x1;}},$={'id':'sheet.mutation.update-shape-data','type':_0x4e919d[_0x225b1f(0x1e2)],'handler':(_0x230c66,_0x116d35)=>{const _0x51d824=_0x225b1f;let {unitId:_0x4a190f,subUnitId:_0x4e0ad2,shapeType:_0x1a416f,shapeId:_0x5be7ff,shapeData:_0x4776b9,replace:_0x29e4ff,formulaLastValueGuard:_0x24b848}=_0x116d35,_0x37e9c6=_0x230c66[_0x51d824(0x19d)](Q)['getShapeModel'](_0x4a190f,_0x4e0ad2,_0x5be7ff);if(_0x37e9c6){var _0x177bdd;if(!_0x5cebb4(_0x230c66,{'hostType':_0x32e2b1[_0x51d824(0x168)],'unitId':_0x4a190f,'subUnitId':_0x4e0ad2,'shapeId':_0x5be7ff},(_0x177bdd=_0x37e9c6[_0x51d824(0x16d)]()[_0x51d824(0x139)])==null?void 0x0:_0x177bdd[_0x51d824(0x190)],_0x24b848))return!0x0;_0x1a416f!==void 0x0&&_0x37e9c6[_0x51d824(0x199)](_0x1a416f),_0x4776b9&&(_0x37e9c6==null||_0x37e9c6[_0x51d824(0x1ea)](_0x56bc3c[_0x51d824(0x1ac)](_0x4776b9),!_0x29e4ff));}return!0x0;}},ge={'type':_0x4e919d['COMMAND'],'id':_0x225b1f(0x13f),'handler':(_0x568e52,_0x2e1efc)=>{const _0x31b086=_0x225b1f;let _0x2811a7=_0x483059(_0x568e52['get'](_0x2543b8),_0x2e1efc);if(!_0x2811a7)return!0x1;let _0x555941=_0x568e52[_0x31b086(0x19d)](_0x32f773),{unitId:_0x46bf89,subUnitId:_0x34ab79}=_0x2811a7,_0x388d42=_0x555941['ensureSkeleton'](_0x46bf89,_0x34ab79);if(!_0x388d42)return!0x1;let _0xf7a617=_0x568e52[_0x31b086(0x19d)](Q),{shapeId:_0x397f46,shapeType:_0x3401f5,shapeData:_0x47efe4,position:_0x4bb77b,width:_0x46e26d,height:_0x225a0f}=_0x2e1efc,_0x17d489=_0xf7a617[_0x31b086(0x176)](_0x46bf89,_0x34ab79,_0x397f46);if(!_0x17d489)return!0x1;let _0x14c541=_0x568e52[_0x31b086(0x19d)](_0x1220c4),_0x2e2373=_0x568e52['get'](_0x3626df),_0x5b7859=_0x568e52[_0x31b086(0x19d)](_0x4c2afb),_0x3ee74c=_0x568e52['get'](_0x5f3711),_0x53f96e={'unitId':_0x46bf89,'subUnitId':_0x34ab79,'shapeId':_0x397f46,'shapeType':_0x3401f5,'shapeData':_0x47efe4,'replace':!0x0},_0x1e7fee=_0x17d489[_0x31b086(0x19e)](),_0x426bf5=_0x17d489[_0x31b086(0x16d)](),{x:_0x174522,y:_0x443bdb}=_0x4bb77b,_0x608629={'left':_0x174522,'top':_0x443bdb,'width':_0x46e26d,'height':_0x225a0f,'angle':_0x2e1efc[_0x31b086(0x184)]??0x0,'flipX':_0x2e1efc[_0x31b086(0x178)]??!0x1,'flipY':_0x2e1efc[_0x31b086(0x12c)]??!0x1},_0x4148c4=_0x3b3677(_0x608629,_0x388d42),_0x1b090e=_0x2d2bb4(_0x608629,_0x388d42),_0x5be16d={'unitId':_0x46bf89,'subUnitId':_0x34ab79,'drawingId':_0x397f46,'drawingType':_0x1b1709[_0x31b086(0x18c)],'name':_0x2e1efc[_0x31b086(0x1b2)],'description':_0x2e1efc['description'],'sheetTransform':_0x4148c4,'transform':_0x608629,'data':{'shapeType':_0x3401f5,'shapeData':_0x47efe4},'axisAlignSheetTransform':_0x1b090e,'allowTransform':!0x0,'hidden':!_0x2e1efc[_0x31b086(0x1cd)],'selectable':_0x2e1efc['selectable']};_0x10aa10(_0x3401f5)&&(_0x5be16d[_0x31b086(0x125)][_0x31b086(0x196)]=!0x1,_0x5be16d[_0x31b086(0x125)]['rotateEnabled']=!0x1,_0x5be16d[_0x31b086(0x125)][_0x31b086(0x151)]=!0x1,_0x5be16d[_0x31b086(0x125)]['borderEnabled']=!0x1,_0x5be16d['transform'][_0x31b086(0x1ab)]=!0x1,_0x5be16d[_0x31b086(0x171)]['resizeEnabled']=!0x1,_0x5be16d['transform'][_0x31b086(0x1c4)]=!0x1);let {undo:_0x1e68cb,redo:_0x4f0590,objects:_0x15682c}=_0x3ee74c['getBatchUpdateOp']([_0x5be16d]),_0x376b4f=_0x5b7859[_0x31b086(0x157)]({'id':_0x57d0bf['id'],'params':{'unitId':_0x46bf89,'drawings':[_0x5be16d]}}),_0x512401=[..._0x376b4f[_0x31b086(0x1b7)]??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x46bf89,'subUnitId':_0x34ab79,'op':_0x4f0590,'objects':_0x15682c,'type':_0x2c701a[_0x31b086(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0x46bf89]},..._0x376b4f[_0x31b086(0x148)],{'id':$['id'],'params':_0x53f96e}],_0x4c1cfc=[..._0x376b4f[_0x31b086(0x12d)]??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x46bf89,'subUnitId':_0x34ab79,'op':_0x1e68cb,'objects':_0x15682c,'type':_0x2c701a[_0x31b086(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0x46bf89]},..._0x376b4f[_0x31b086(0x1eb)],{'id':$['id'],'params':{'unitId':_0x46bf89,'subUnitId':_0x34ab79,'shapeType':_0x1e7fee,'shapeId':_0x397f46,'shapeData':_0x426bf5,'replace':!0x0}}];return _0x5c6377(_0x512401,_0x14c541)['result']?(_0x2e2373[_0x31b086(0x1af)]({'unitID':_0x46bf89,'undoMutations':_0x4c1cfc,'redoMutations':_0x512401}),!0x0):!0x1;}},_e={'type':_0x4e919d[_0x225b1f(0x135)],'id':'sheet.command.toggle-shape-flip','handler':(_0x46a1ba,_0x2327c4)=>{const _0x50a91f=_0x225b1f;let _0x26d24d=_0x483059(_0x46a1ba[_0x50a91f(0x19d)](_0x2543b8),_0x2327c4);if(!_0x26d24d)return!0x1;let _0x5d3229=_0x46a1ba[_0x50a91f(0x19d)](_0x32f773),{unitId:_0xb269ce,subUnitId:_0xeca1b3}=_0x26d24d,_0x58c3d4=_0x5d3229[_0x50a91f(0x17b)](_0xb269ce,_0xeca1b3);if(!_0x58c3d4)return!0x1;let _0xb9a7be=_0x46a1ba['get'](_0x5f3711),{shapeId:_0x1fa7d3,flipH:_0x5ecf28,flipV:_0x57135d}=_0x2327c4,_0x36fa9b=_0xb9a7be[_0x50a91f(0x170)]({'unitId':_0xb269ce,'subUnitId':_0xeca1b3,'drawingId':_0x1fa7d3});if(!_0x36fa9b)return!0x1;let _0x46f0b8=_0x46a1ba[_0x50a91f(0x19d)](Q)[_0x50a91f(0x176)](_0xb269ce,_0xeca1b3,_0x1fa7d3);if(!_0x46f0b8)return!0x1;let _0x355689=_0x46a1ba['get'](_0x1220c4),_0x33b380=_0x46a1ba[_0x50a91f(0x19d)](_0x3626df),_0x361d97=_0x46a1ba[_0x50a91f(0x19d)](_0x4c2afb),_0xfaef0f={..._0x36fa9b['transform']};_0x5ecf28!==void 0x0&&(_0xfaef0f[_0x50a91f(0x178)]=!_0xfaef0f[_0x50a91f(0x178)]),_0x57135d!==void 0x0&&(_0xfaef0f[_0x50a91f(0x12c)]=!_0xfaef0f[_0x50a91f(0x12c)]);let _0x27bdb3=_0x3b3677(_0xfaef0f,_0x58c3d4),_0x9c3783=_0x2d2bb4(_0xfaef0f,_0x58c3d4),_0x24585d=_0x46f0b8[_0x50a91f(0x19e)](),_0x2942dd=_0x46f0b8[_0x50a91f(0x16d)](),_0x196302={'unitId':_0xb269ce,'subUnitId':_0xeca1b3,'drawingId':_0x1fa7d3,'drawingType':_0x1b1709[_0x50a91f(0x18c)],'sheetTransform':_0x27bdb3,'transform':_0xfaef0f,'data':{'shapeType':_0x24585d,'shapeData':_0x2942dd},'axisAlignSheetTransform':_0x9c3783,'allowTransform':!0x0},{undo:_0x20fb15,redo:_0x25237d,objects:_0x54906c}=_0xb9a7be[_0x50a91f(0x182)]([_0x196302]),_0x5d8801=_0x361d97['onCommandExecute']({'id':_0x57d0bf['id'],'params':{'unitId':_0xb269ce,'drawings':[_0x196302]}}),_0x43f64d=[..._0x5d8801[_0x50a91f(0x1b7)]??[],{'id':_0xa539c0['id'],'params':{'unitId':_0xb269ce,'subUnitId':_0xeca1b3,'op':_0x25237d,'objects':_0x54906c,'type':_0x2c701a['UPDATE']}},{'id':_0x5bdc79['id'],'params':[_0xb269ce]},..._0x5d8801[_0x50a91f(0x148)]],_0x72680e=[..._0x5d8801['preUndos']??[],{'id':_0xa539c0['id'],'params':{'unitId':_0xb269ce,'subUnitId':_0xeca1b3,'op':_0x20fb15,'objects':_0x54906c,'type':_0x2c701a[_0x50a91f(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0xb269ce]},..._0x5d8801[_0x50a91f(0x1eb)]];if(_0x10aa10(_0x24585d)){let _0x2aba0c=_0x46f0b8[_0x50a91f(0x141)]();if(_0x2aba0c){let _0x269213={..._0x2aba0c};_0x269213[_0x50a91f(0x16f)]=void 0x0,_0x269213['to']=void 0x0,_0x43f64d[_0x50a91f(0x18f)]({'id':$['id'],'params':{'unitId':_0xb269ce,'subUnitId':_0xeca1b3,'shapeId':_0x1fa7d3,'shapeType':_0x24585d,'shapeData':{'relation':_0x269213}}}),_0x72680e[_0x50a91f(0x18f)]({'id':$['id'],'params':{'unitId':_0xb269ce,'subUnitId':_0xeca1b3,'shapeId':_0x1fa7d3,'shapeType':_0x24585d,'shapeData':{'relation':_0x2aba0c}}});}}return _0x5c6377(_0x43f64d,_0x355689)['result']?(_0x33b380[_0x50a91f(0x1af)]({'unitID':_0xb269ce,'undoMutations':_0x72680e,'redoMutations':_0x43f64d}),!0x0):!0x1;}},ve={'type':_0x4e919d[_0x225b1f(0x135)],'id':_0x225b1f(0x1cf),'handler':(_0x4bb44c,_0x51ab9f)=>{const _0x5c8da6=_0x225b1f;let _0x2b745a=_0x483059(_0x4bb44c[_0x5c8da6(0x19d)](_0x2543b8),_0x51ab9f);if(!_0x2b745a)return!0x1;let _0x2570ae=_0x4bb44c[_0x5c8da6(0x19d)](_0x32f773),{unitId:_0x89676a,subUnitId:_0x591d65}=_0x2b745a,_0x1e576d=_0x2570ae['getSkeleton'](_0x89676a,_0x591d65);if(!_0x1e576d)return!0x1;let _0x11b7b0=_0x4bb44c['get'](_0x5f3711),{shapeId:_0x548c88,rotate:_0x206129}=_0x51ab9f,_0x1301f8=_0x11b7b0['getDrawingByParam']({'unitId':_0x89676a,'subUnitId':_0x591d65,'drawingId':_0x548c88});if(!_0x1301f8)return!0x1;let _0x10b004=_0x4bb44c[_0x5c8da6(0x19d)](Q)['getShapeModel'](_0x89676a,_0x591d65,_0x548c88);if(!_0x10b004)return!0x1;let _0x51688b=_0x4bb44c[_0x5c8da6(0x19d)](_0x1220c4),_0x1a42f6=_0x4bb44c[_0x5c8da6(0x19d)](_0x3626df),_0x45ea10=_0x4bb44c['get'](_0x4c2afb),_0x296fd8={..._0x1301f8[_0x5c8da6(0x171)]};_0x206129!==void 0x0&&(_0x296fd8[_0x5c8da6(0x197)]=(_0x296fd8['angle']||0x0)+_0x206129);let _0x475b9a=_0x3b3677(_0x296fd8,_0x1e576d),_0x455db1=_0x2d2bb4(_0x296fd8,_0x1e576d),_0x508cd1=_0x10b004['getShapeType'](),_0x56ade5=_0x10b004[_0x5c8da6(0x16d)](),_0x4f6fe4={'unitId':_0x89676a,'subUnitId':_0x591d65,'drawingId':_0x548c88,'drawingType':_0x1b1709[_0x5c8da6(0x18c)],'sheetTransform':_0x475b9a,'transform':_0x296fd8,'data':{'shapeType':_0x508cd1,'shapeData':_0x56ade5},'axisAlignSheetTransform':_0x455db1,'allowTransform':!0x0},{undo:_0x26aa79,redo:_0x16930f,objects:_0x14a2f5}=_0x11b7b0[_0x5c8da6(0x182)]([_0x4f6fe4]),_0x521c49=_0x45ea10['onCommandExecute']({'id':_0x57d0bf['id'],'params':{'unitId':_0x89676a,'drawings':[_0x4f6fe4]}}),_0x54a0bd=[..._0x521c49[_0x5c8da6(0x1b7)]??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x89676a,'subUnitId':_0x591d65,'op':_0x16930f,'objects':_0x14a2f5,'type':_0x2c701a[_0x5c8da6(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0x89676a]},..._0x521c49[_0x5c8da6(0x148)]],_0x1f6eb1=[..._0x521c49[_0x5c8da6(0x12d)]??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x89676a,'subUnitId':_0x591d65,'op':_0x26aa79,'objects':_0x14a2f5,'type':_0x2c701a[_0x5c8da6(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0x89676a]},..._0x521c49[_0x5c8da6(0x1eb)]];return _0x5c6377(_0x54a0bd,_0x51688b)['result']?(_0x1a42f6[_0x5c8da6(0x1af)]({'unitID':_0x89676a,'undoMutations':_0x1f6eb1,'redoMutations':_0x54a0bd}),!0x0):!0x1;}},ye={'type':_0x4e919d[_0x225b1f(0x135)],'id':'sheet.command.set-shape-text-vertical-toggle','handler':(_0x25e1d5,_0x4bcc67)=>{const _0xe860f6=_0x225b1f;let _0x978063=_0x483059(_0x25e1d5[_0xe860f6(0x19d)](_0x2543b8),_0x4bcc67);if(!_0x978063)return!0x1;let {unitId:_0x3cfd41,subUnitId:_0x337780}=_0x978063,{shapeId:_0x2138a3}=_0x4bcc67,_0x6dae88=_0x25e1d5[_0xe860f6(0x19d)](Q)['getShapeModel'](_0x3cfd41,_0x337780,_0x2138a3);if(!_0x6dae88)return!0x1;let _0x43f15e=_0x6dae88[_0xe860f6(0x1c0)](),_0x3ff202=(_0x43f15e==null?void 0x0:_0x43f15e[_0xe860f6(0x1f5)])??!0x0,_0x4f3008=!_0x3ff202,_0x490733=_0x25e1d5[_0xe860f6(0x19d)](_0x1220c4),_0x4524e9=_0x25e1d5[_0xe860f6(0x19d)](_0x3626df),_0x4da293={'unitId':_0x3cfd41,'subUnitId':_0x337780,'shapeId':_0x2138a3,'shapeData':{'shapeText':{'isHorizontal':_0x4f3008}}},_0x4640d0={'unitId':_0x3cfd41,'subUnitId':_0x337780,'shapeId':_0x2138a3,'shapeData':{'shapeText':{'isHorizontal':_0x3ff202}}},_0x4ba5e5=[{'id':$['id'],'params':_0x4da293}],_0x2c7758=[{'id':$['id'],'params':_0x4640d0}];return _0x5c6377(_0x4ba5e5,_0x490733)[_0xe860f6(0x155)]?(_0x4524e9[_0xe860f6(0x1af)]({'unitID':_0x3cfd41,'undoMutations':_0x2c7758,'redoMutations':_0x4ba5e5}),!0x0):!0x1;}},be={'type':_0x4e919d[_0x225b1f(0x135)],'id':_0x225b1f(0x188),'handler':(_0x23ae85,_0x43c2b2)=>{const _0x132577=_0x225b1f;var _0x583718;let _0x5bdc69=_0x483059(_0x23ae85[_0x132577(0x19d)](_0x2543b8),_0x43c2b2);if(!_0x5bdc69)return!0x1;let _0x3a8730=_0x23ae85[_0x132577(0x19d)](_0x32f773),{unitId:_0x3201c4,subUnitId:_0x2f0b84}=_0x5bdc69,_0x3e2f30=_0x3a8730['getSkeleton'](_0x3201c4,_0x2f0b84);if(!_0x3e2f30)return!0x1;let _0xf54c57=_0x23ae85['get'](_0x5f3711),{connectorShapeId:_0xb18d6,width:_0x5b59df,height:_0x4fe893,left:_0x9a8516,top:_0x5ced4c,flipX:_0x56b6f3,flipY:_0x3518af,rotation:_0x497574,oldAdjustValues:_0x3fc188,newAdjustValues:_0x377f33,oldLineType:_0x2d2d89,newLineType:_0x3cd072,oldRelation:_0x38034e,newRelation:_0xdb4232}=_0x43c2b2,_0xe49db6=_0xf54c57['getDrawingByParam']({'unitId':_0x3201c4,'subUnitId':_0x2f0b84,'drawingId':_0xb18d6});if(!_0xe49db6)return!0x1;let _0x383ffd=_0x23ae85[_0x132577(0x19d)](Q)[_0x132577(0x176)](_0x3201c4,_0x2f0b84,_0xb18d6);if(!_0x383ffd)return!0x1;let _0x59f3e5=_0x23ae85[_0x132577(0x19d)](_0x1220c4),_0x40d03a=_0x23ae85['get'](_0x3626df),_0xfa0c06=_0x23ae85[_0x132577(0x19d)](_0x4c2afb),_0x179955={..._0xe49db6[_0x132577(0x171)],'width':_0x5b59df,'height':_0x4fe893,'left':_0x9a8516,'top':_0x5ced4c,'flipX':_0x56b6f3,'flipY':_0x3518af,'angle':_0x497574??((_0x583718=_0xe49db6[_0x132577(0x171)])==null?void 0x0:_0x583718[_0x132577(0x197)])??0x0},_0xa62121=_0x3b3677(_0x179955,_0x3e2f30),_0x5e94b5=_0x2d2bb4(_0x179955,_0x3e2f30),_0x1fadf0=_0x383ffd['getShapeType'](),_0x10c263=_0x383ffd[_0x132577(0x16d)](),_0x4d7ab6={'unitId':_0x3201c4,'subUnitId':_0x2f0b84,'drawingId':_0xb18d6,'drawingType':_0x1b1709[_0x132577(0x18c)],'sheetTransform':_0xa62121,'transform':_0x179955,'data':{'shapeType':_0x3cd072||_0x2d2d89||_0x1fadf0,'shapeData':{..._0x10c263,'adjustValues':_0x377f33||_0x3fc188||(_0x10c263==null?void 0x0:_0x10c263[_0x132577(0x1ee)]),'relation':_0xdb4232||_0x38034e||(_0x10c263==null?void 0x0:_0x10c263[_0x132577(0x18b)])}},'axisAlignSheetTransform':_0x5e94b5,'allowTransform':!0x0},{undo:_0x1bed5f,redo:_0x1afad7,objects:_0x4baaa7}=_0xf54c57[_0x132577(0x182)]([_0x4d7ab6]),_0x55da7b=_0xfa0c06[_0x132577(0x157)]({'id':_0x57d0bf['id'],'params':{'unitId':_0x3201c4,'drawings':[_0x4d7ab6]}}),_0x23741a=[..._0x55da7b[_0x132577(0x1b7)]??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x3201c4,'subUnitId':_0x2f0b84,'op':_0x1afad7,'objects':_0x4baaa7,'type':_0x2c701a[_0x132577(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0x3201c4]},..._0x55da7b['redos'],{'id':$['id'],'params':{'unitId':_0x3201c4,'subUnitId':_0x2f0b84,'shapeId':_0xb18d6,'shapeType':_0x3cd072,'shapeData':{'adjustValues':_0x377f33,'relation':_0xdb4232}}}],_0x37f59d=[..._0x55da7b[_0x132577(0x12d)]??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x3201c4,'subUnitId':_0x2f0b84,'op':_0x1bed5f,'objects':_0x4baaa7,'type':_0x2c701a[_0x132577(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0x3201c4]},..._0x55da7b[_0x132577(0x1eb)],{'id':$['id'],'params':{'unitId':_0x3201c4,'subUnitId':_0x2f0b84,'shapeId':_0xb18d6,'shapeType':_0x1fadf0,'shapeData':{..._0x10c263,'adjustValues':_0x3fc188||(_0x10c263==null?void 0x0:_0x10c263['adjustValues']),'relation':_0x38034e||(_0x10c263==null?void 0x0:_0x10c263[_0x132577(0x18b)])}}}];return _0x5c6377(_0x23741a,_0x59f3e5)['result']?(_0x40d03a[_0x132577(0x1af)]({'unitID':_0x3201c4,'undoMutations':_0x37f59d,'redoMutations':_0x23741a}),!0x0):!0x1;}},xe={'type':_0x4e919d[_0x225b1f(0x135)],'id':'sheet.command.update-line-shape-resize','handler':(_0x53aa54,_0x4f7367)=>{const _0x446731=_0x225b1f;let _0x3d5122=_0x483059(_0x53aa54[_0x446731(0x19d)](_0x2543b8),_0x4f7367);if(!_0x3d5122)return!0x1;let _0x9a0377=_0x53aa54[_0x446731(0x19d)](_0x32f773),{unitId:_0x4e190a,subUnitId:_0x3a525f}=_0x3d5122,_0x291098=_0x9a0377[_0x446731(0x17b)](_0x4e190a,_0x3a525f);if(!_0x291098)return!0x1;let _0x458fa4=_0x53aa54[_0x446731(0x19d)](_0x5f3711),{shapeId:_0x13c2b5,width:_0x1da22e,height:_0x8a2eb3,left:_0x4cf34e,top:_0x5a774a,flipX:_0x58605d,flipY:_0x3ff1b,angle:_0x58f546,oldAdjustValues:_0x5c4b71,newAdjustValues:_0x23f74c,oldLineType:_0x39222d,newLineType:_0x570b9e}=_0x4f7367,_0x24e18d=_0x458fa4[_0x446731(0x170)]({'unitId':_0x4e190a,'subUnitId':_0x3a525f,'drawingId':_0x13c2b5});if(!_0x24e18d)return!0x1;let _0x91329=_0x53aa54[_0x446731(0x19d)](Q)[_0x446731(0x176)](_0x4e190a,_0x3a525f,_0x13c2b5);if(!_0x91329)return!0x1;let _0x5b6bb0=_0x53aa54[_0x446731(0x19d)](_0x1220c4),_0x4bb681=_0x53aa54[_0x446731(0x19d)](_0x3626df),_0x4a8460=_0x53aa54[_0x446731(0x19d)](_0x4c2afb),_0xd7122f={..._0x24e18d[_0x446731(0x171)],'width':_0x1da22e,'height':_0x8a2eb3,'left':_0x4cf34e,'top':_0x5a774a,'flipX':_0x58605d,'flipY':_0x3ff1b,'angle':_0x58f546},_0x2ff590=_0x3b3677(_0xd7122f,_0x291098),_0x145168=_0x2d2bb4(_0xd7122f,_0x291098),_0x5851ba=_0x91329[_0x446731(0x19e)](),_0x2a24fc=_0x91329['getShapeData'](),_0x29eae9={'unitId':_0x4e190a,'subUnitId':_0x3a525f,'drawingId':_0x13c2b5,'drawingType':_0x1b1709[_0x446731(0x18c)],'sheetTransform':_0x2ff590,'transform':_0xd7122f,'data':{'shapeType':_0x570b9e||_0x39222d||_0x5851ba,'shapeData':{..._0x2a24fc,'adjustValues':_0x23f74c||_0x5c4b71||(_0x2a24fc==null?void 0x0:_0x2a24fc[_0x446731(0x1ee)])}},'axisAlignSheetTransform':_0x145168,'allowTransform':!0x0},{undo:_0x33392d,redo:_0x283bb6,objects:_0x368ae8}=_0x458fa4['getBatchUpdateOp']([_0x29eae9]),_0x1bc5ac=_0x4a8460[_0x446731(0x157)]({'id':_0x57d0bf['id'],'params':{'unitId':_0x4e190a,'drawings':[_0x29eae9]}}),_0x411ce7=[..._0x1bc5ac['preRedos']??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x4e190a,'subUnitId':_0x3a525f,'op':_0x283bb6,'objects':_0x368ae8,'type':_0x2c701a[_0x446731(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0x4e190a]},..._0x1bc5ac[_0x446731(0x148)],{'id':$['id'],'params':{'unitId':_0x4e190a,'subUnitId':_0x3a525f,'shapeId':_0x13c2b5,'shapeType':_0x570b9e,'shapeData':{'adjustValues':_0x23f74c}}}],_0x179f38=[..._0x1bc5ac['preUndos']??[],{'id':_0xa539c0['id'],'params':{'unitId':_0x4e190a,'subUnitId':_0x3a525f,'op':_0x33392d,'objects':_0x368ae8,'type':_0x2c701a[_0x446731(0x1c3)]}},{'id':_0x5bdc79['id'],'params':[_0x4e190a]},..._0x1bc5ac['undos'],{'id':$['id'],'params':{'unitId':_0x4e190a,'subUnitId':_0x3a525f,'shapeId':_0x13c2b5,'shapeType':_0x5851ba,'shapeData':{..._0x2a24fc,'adjustValues':_0x5c4b71||(_0x2a24fc==null?void 0x0:_0x2a24fc[_0x446731(0x1ee)])}}}];return _0x5c6377(_0x411ce7,_0x5b6bb0)[_0x446731(0x155)]?(_0x4bb681[_0x446731(0x1af)]({'unitID':_0x4e190a,'undoMutations':_0x179f38,'redoMutations':_0x411ce7}),!0x0):!0x1;}},Se={'id':'sheet.mutation.update-shape-type','type':_0x4e919d[_0x225b1f(0x1e2)],'handler':(_0xb558d9,_0x1529bc)=>{const _0x1a1b17=_0x225b1f;let {unitId:_0x51008c,subUnitId:_0x327bc4,shapeType:_0x3ba39c,shapeId:_0x33ba06,shapeData:_0x35e23a}=_0x1529bc,_0x41f0a7=_0xb558d9['get'](Q)[_0x1a1b17(0x176)](_0x51008c,_0x327bc4,_0x33ba06);return _0x41f0a7&&(_0x41f0a7[_0x1a1b17(0x199)](_0x3ba39c),_0x35e23a&&(_0x41f0a7==null||_0x41f0a7['setShapeData'](_0x35e23a))),!0x0;}};var Ce=_0x225b1f(0x12b),we=_0x225b1f(0x1db);function Te(_0x208fc4){const _0x4597c6=_0x225b1f;var _0x2b6572,_0x4ea407,_0x377f5c,_0x2df4a1,_0x4e6296,_0xfcdd36,_0x583ae9;return{'left':((_0x2b6572=_0x208fc4[_0x4597c6(0x171)])==null?void 0x0:_0x2b6572[_0x4597c6(0x1d4)])??0x0,'top':((_0x4ea407=_0x208fc4[_0x4597c6(0x171)])==null?void 0x0:_0x4ea407[_0x4597c6(0x166)])??0x0,'width':((_0x377f5c=_0x208fc4[_0x4597c6(0x171)])==null?void 0x0:_0x377f5c[_0x4597c6(0x1cc)])??0xc8,'height':((_0x2df4a1=_0x208fc4[_0x4597c6(0x171)])==null?void 0x0:_0x2df4a1['height'])??0xc8,'rotation':((_0x4e6296=_0x208fc4[_0x4597c6(0x171)])==null?void 0x0:_0x4e6296['rotation'])??0x0,'flipX':((_0xfcdd36=_0x208fc4['transform'])==null?void 0x0:_0xfcdd36[_0x4597c6(0x178)])??!0x1,'flipY':((_0x583ae9=_0x208fc4['transform'])==null?void 0x0:_0x583ae9[_0x4597c6(0x12c)])??!0x1};}let Ee=class{constructor(_0x28986b,_0x2aa6d5,_0x55be29,_0x44e14c){const _0x5ec1e2=_0x225b1f;this[_0x5ec1e2(0x1c1)]=_0x28986b,this[_0x5ec1e2(0x159)]=_0x2aa6d5,this[_0x5ec1e2(0x129)]=_0x55be29,this[_0x5ec1e2(0x15c)]=_0x44e14c,X(this,'hostType',_0x32e2b1[_0x5ec1e2(0x168)]);}get[_0x225b1f(0x185)](){return{'subscribe':_0x5fcb2c=>{const _0x2e78ad=_0x2588;let _0x4dfeeb=this[_0x2e78ad(0x1c1)][_0x2e78ad(0x1d7)](_0x466f34=>{(_0x466f34['id']===pe['id']||_0x466f34['id']===me['id']||_0x466f34['id']===$['id']||_0x466f34['id']===Se['id'])&&_0x5fcb2c({'unitId':_0x466f34['params']['unitId']});});return{'unsubscribe':()=>_0x4dfeeb[_0x2e78ad(0x1e3)]()};}};}[_0x225b1f(0x1bd)](_0x2ce321){const _0x3e09ed=_0x225b1f;var _0x52118c;let _0xa9f2a5=(_0x52118c=this[_0x3e09ed(0x129)][_0x3e09ed(0x1d2)](_0x2ce321['unitId'],_0x2ce321[_0x3e09ed(0x1d5)]))==null?void 0x0:_0x52118c[_0x2ce321[_0x3e09ed(0x12e)]],_0x876e93=this['_shapeService'][_0x3e09ed(0x19e)](_0x2ce321[_0x3e09ed(0x174)],_0x2ce321[_0x3e09ed(0x1d5)],_0x2ce321['shapeId']);if(!_0xa9f2a5||_0xa9f2a5['drawingType']!==_0x1b1709['DRAWING_SHAPE']||!_0x876e93)return null;let _0x355f4f=_0xa9f2a5[_0x3e09ed(0x171)];return{..._0x2ce321,'shapeType':_0x876e93,'shapeData':_0x56bc3c[_0x3e09ed(0x1ac)](this[_0x3e09ed(0x159)][_0x3e09ed(0x17a)](_0x2ce321[_0x3e09ed(0x174)],_0x2ce321['subUnitId'],_0x2ce321[_0x3e09ed(0x12e)])??{}),'name':_0xa9f2a5[_0x3e09ed(0x1b2)],'description':_0xa9f2a5[_0x3e09ed(0x1a3)],'visible':_0xa9f2a5[_0x3e09ed(0x153)]!==!0x0,'selectable':_0xa9f2a5['selectable']!==!0x1,'transform':{'left':(_0x355f4f==null?void 0x0:_0x355f4f[_0x3e09ed(0x1d4)])??0x0,'top':(_0x355f4f==null?void 0x0:_0x355f4f['top'])??0x0,'width':(_0x355f4f==null?void 0x0:_0x355f4f[_0x3e09ed(0x1cc)])??0xc8,'height':(_0x355f4f==null?void 0x0:_0x355f4f[_0x3e09ed(0x1b4)])??0xc8,'rotation':(_0x355f4f==null?void 0x0:_0x355f4f[_0x3e09ed(0x197)])??0x0,'flipX':(_0x355f4f==null?void 0x0:_0x355f4f[_0x3e09ed(0x178)])??!0x1,'flipY':(_0x355f4f==null?void 0x0:_0x355f4f[_0x3e09ed(0x12c)])??!0x1}};}[_0x225b1f(0x169)](_0x37c33d){const _0x3ec6fd=_0x225b1f;let _0x4c6c39=this[_0x3ec6fd(0x129)][_0x3ec6fd(0x1d2)](_0x37c33d[_0x3ec6fd(0x174)],_0x37c33d[_0x3ec6fd(0x1d5)])??{};return Object[_0x3ec6fd(0x19a)](_0x4c6c39)['filter'](_0x192a79=>(_0x192a79==null?void 0x0:_0x192a79[_0x3ec6fd(0x1f0)])===_0x1b1709[_0x3ec6fd(0x18c)])['map'](_0x24c1b3=>this[_0x3ec6fd(0x1bd)]({..._0x37c33d,'shapeId':_0x24c1b3[_0x3ec6fd(0x1c2)]}))[_0x3ec6fd(0x1a1)](_0x4634ed=>!!_0x4634ed);}['listShapesInUnit'](_0x4c0f21){const _0x4eda03=_0x225b1f;let _0x331b45=this[_0x4eda03(0x15c)][_0x4eda03(0x1cb)](_0x4c0f21,_0x32e2b1[_0x4eda03(0x168)]);return(_0x331b45==null?void 0x0:_0x331b45[_0x4eda03(0x122)]()['flatMap'](_0x5d4eb6=>this['listShapes']({'hostType':this['hostType'],'unitId':_0x4c0f21,'subUnitId':_0x5d4eb6[_0x4eda03(0x1ae)]()})))??[];}[_0x225b1f(0x142)](_0x137e83,_0x2f614e){const _0x14c187=_0x225b1f;let _0x3deb8d=_0x34af8c(),_0xd0829f=Te(_0x2f614e),_0xb09078=_0x56bc3c[_0x14c187(0x1ac)](_0x2f614e[_0x14c187(0x195)]??_0x2169ba(_0x2f614e[_0x14c187(0x133)]));return this['_commandService'][_0x14c187(0x136)](he['id'],{'unitId':_0x137e83[_0x14c187(0x174)],'subUnitId':_0x137e83[_0x14c187(0x1d5)],'shapeId':_0x3deb8d,'shapeType':_0x2f614e['shapeType'],'shapeData':_0xb09078,'name':_0x2f614e['name'],'description':_0x2f614e[_0x14c187(0x1a3)],'position':{'x':_0xd0829f[_0x14c187(0x1d4)],'y':_0xd0829f[_0x14c187(0x166)]},'width':_0xd0829f['width'],'height':_0xd0829f['height'],'rotation':_0xd0829f[_0x14c187(0x184)],'flipX':_0xd0829f[_0x14c187(0x178)],'flipY':_0xd0829f[_0x14c187(0x12c)],'visible':_0x2f614e[_0x14c187(0x1cd)]??!0x0,'selectable':_0x2f614e['selectable']??!0x0})?{..._0x137e83,'shapeId':_0x3deb8d,'shapeType':_0x2f614e[_0x14c187(0x133)],'shapeData':_0xb09078,'name':_0x2f614e['name'],'description':_0x2f614e['description'],'visible':_0x2f614e[_0x14c187(0x1cd)]??!0x0,'selectable':_0x2f614e['selectable']??!0x0,'transform':_0xd0829f}:null;}[_0x225b1f(0x193)](_0x396d34,_0x29738e){const _0x283fac=_0x225b1f;var _0x27b8dd;let _0x526496=this[_0x283fac(0x1bd)](_0x396d34);if(!_0x526496)return!0x1;let _0x10c294={..._0x526496[_0x283fac(0x171)],..._0x29738e[_0x283fac(0x171)]};return this[_0x283fac(0x1c1)][_0x283fac(0x136)](ge['id'],{'unitId':_0x396d34[_0x283fac(0x174)],'subUnitId':_0x396d34[_0x283fac(0x1d5)],'shapeId':_0x396d34[_0x283fac(0x12e)],'shapeType':_0x29738e[_0x283fac(0x133)]??((_0x27b8dd=_0x29738e[_0x283fac(0x195)])==null?void 0x0:_0x27b8dd[_0x283fac(0x133)])??_0x526496[_0x283fac(0x133)],'shapeData':_0x29738e[_0x283fac(0x195)]??_0x526496[_0x283fac(0x195)],'position':{'x':_0x10c294['left'],'y':_0x10c294['top']},'width':_0x10c294[_0x283fac(0x1cc)],'height':_0x10c294[_0x283fac(0x1b4)],'rotation':_0x10c294[_0x283fac(0x184)],'flipX':_0x10c294['flipX'],'flipY':_0x10c294[_0x283fac(0x12c)],'name':'name'in _0x29738e?_0x29738e[_0x283fac(0x1b2)]:_0x526496[_0x283fac(0x1b2)],'description':_0x283fac(0x1a3)in _0x29738e?_0x29738e[_0x283fac(0x1a3)]:_0x526496[_0x283fac(0x1a3)],'visible':_0x29738e[_0x283fac(0x1cd)]??_0x526496[_0x283fac(0x1cd)],'selectable':_0x29738e[_0x283fac(0x127)]??_0x526496[_0x283fac(0x127)]});}[_0x225b1f(0x15b)](_0x294a3f,_0x3c7f63,_0x4d4222){const _0x2dd8b4=_0x225b1f;let _0xdf5f98=this['getShape'](_0x294a3f),_0x52673c=_0xdf5f98==null?void 0x0:_0xdf5f98['shapeData'][_0x2dd8b4(0x139)];return!_0xdf5f98||!_0x52673c?null:{'id':$['id'],'params':{'unitId':_0x294a3f[_0x2dd8b4(0x174)],'subUnitId':_0x294a3f['subUnitId'],'shapeId':_0x294a3f[_0x2dd8b4(0x12e)],'shapeData':{..._0xdf5f98['shapeData'],'formulaBinding':{..._0x52673c,'lastValue':_0x56bc3c[_0x2dd8b4(0x1ac)](_0x4d4222)}},'replace':!0x0,'formulaLastValueGuard':_0x3c7f63}};}[_0x225b1f(0x145)](_0x3e98ed){const _0x3bac15=_0x225b1f;return this['_commandService'][_0x3bac15(0x136)](_0x52d128['id'],{'unitId':_0x3e98ed['unitId'],'drawings':[{'unitId':_0x3e98ed[_0x3bac15(0x174)],'subUnitId':_0x3e98ed[_0x3bac15(0x1d5)],'drawingId':_0x3e98ed[_0x3bac15(0x12e)],'drawingType':_0x1b1709[_0x3bac15(0x18c)]}]});}[_0x225b1f(0x1c9)](_0x1a9069){const _0x1a201e=_0x225b1f;return this['_arrange'](_0x1a9069,_0x22aed2[_0x1a201e(0x175)]);}['bringForward'](_0x53f9ae){const _0x436cd2=_0x225b1f;return this[_0x436cd2(0x15f)](_0x53f9ae,_0x22aed2[_0x436cd2(0x160)]);}[_0x225b1f(0x1c5)](_0x1d0ac5){const _0x5a38c2=_0x225b1f;return this[_0x5a38c2(0x15f)](_0x1d0ac5,_0x22aed2[_0x5a38c2(0x1b3)]);}[_0x225b1f(0x126)](_0xa718c1){const _0x454062=_0x225b1f;return this[_0x454062(0x15f)](_0xa718c1,_0x22aed2['back']);}[_0x225b1f(0x1bf)](_0x546dcb,_0x36e5df){const _0x426f23=_0x225b1f;return this[_0x426f23(0x1c1)][_0x426f23(0x136)](_0x51e055['id'],{'unitId':_0x546dcb[_0x426f23(0x174)],'subUnitId':_0x546dcb['subUnitId'],'drawingIds':[_0x546dcb[_0x426f23(0x12e)]],'zOrder':_0x36e5df});}[_0x225b1f(0x15f)](_0x3221df,_0x304c22){const _0x21cc4f=_0x225b1f;return this[_0x21cc4f(0x1c1)][_0x21cc4f(0x136)](_0x51e055['id'],{'unitId':_0x3221df[_0x21cc4f(0x174)],'subUnitId':_0x3221df['subUnitId'],'drawingIds':[_0x3221df[_0x21cc4f(0x12e)]],'arrangeType':_0x304c22});}};Ee=fe([Z(0x0,_0x1220c4),Z(0x1,_0x9e5ef9(Q)),Z(0x2,_0x5f3711),Z(0x3,_0x2543b8)],Ee);const De={};let Oe=class extends _0x1b1f35{constructor(_0x34e7d9,_0x481588,_0x198d11,_0x3411fb,_0x17835b,_0x4d201e,_0x3f9e33,_0x1e5b59){const _0x38e2a6=_0x225b1f;super(),this['_commandService']=_0x34e7d9,this['_sheetInterceptorService']=_0x481588,this[_0x38e2a6(0x187)]=_0x198d11,this['_sheetDrawingService']=_0x3411fb,this['_sheetsShapeService']=_0x17835b,this[_0x38e2a6(0x14b)]=_0x4d201e,this[_0x38e2a6(0x1e6)]=_0x3f9e33,this[_0x38e2a6(0x1e1)](),this['_initCommandInterceptor'](),this[_0x38e2a6(0x173)](this[_0x38e2a6(0x1e6)]['register'](_0x1e5b59));}[_0x225b1f(0x1e1)](){const _0x321459=_0x225b1f;[he,ge,_e,ve,ye,be,xe,pe,me,Se,$][_0x321459(0x17c)](_0x12a8c8=>this['disposeWithMe'](this['_commandService'][_0x321459(0x183)](_0x12a8c8)));}[_0x225b1f(0x124)](){const _0x4e1939=_0x225b1f;this[_0x4e1939(0x173)](this[_0x4e1939(0x162)][_0x4e1939(0x1a2)]({'getMutations':_0x51d926=>{const _0x12f38b=_0x4e1939;if(_0x51d926['id']===_0x52d128['id']){let {drawings:_0xdd42a6}=_0x51d926['params'],_0x2373a3=_0xdd42a6[_0x12f38b(0x1a1)](_0x199677=>_0x199677['drawingType']===_0x1b1709['DRAWING_SHAPE']);if(_0x2373a3[_0x12f38b(0x1a8)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x475c7a=[],_0x4581bc=[];return _0x2373a3[_0x12f38b(0x17c)](_0x3e1411=>{const _0x15e385=_0x12f38b;let {unitId:_0x566bc5,subUnitId:_0x58aa9c,drawingId:_0x32eae0}=_0x3e1411,_0x4f5a89=this[_0x15e385(0x128)][_0x15e385(0x176)](_0x566bc5,_0x58aa9c,_0x32eae0);if(!_0x4f5a89)throw TypeError(_0x15e385(0x1ad)+_0x4f5a89);_0x475c7a[_0x15e385(0x18f)]({'id':me['id'],'params':{'unitId':_0x566bc5,'subUnitId':_0x58aa9c,'shapeId':_0x32eae0}}),_0x4581bc[_0x15e385(0x18f)]({'id':pe['id'],'params':{'unitId':_0x566bc5,'subUnitId':_0x58aa9c,'shapeId':_0x32eae0,'shapeType':_0x4f5a89['getShapeType'](),'shapeData':_0x4f5a89[_0x15e385(0x16d)]()}});let _0xed843c=this[_0x15e385(0x128)]['getBasicShapeRelation'](_0x566bc5,_0x58aa9c,_0x32eae0);if(_0xed843c)for(let _0x251f49 of _0xed843c){let _0x343e4a=_0x251f49[_0x15e385(0x1be)],_0x593132=_0x251f49[_0x15e385(0x137)],_0x30477c=_0x593132?{'from':void 0x0}:{'to':void 0x0},_0x1226dd=_0x593132?{'from':{'shapeId':_0x251f49[_0x15e385(0x12e)],'cxnIndex':_0x251f49[_0x15e385(0x14a)]}}:{'to':{'shapeId':_0x251f49[_0x15e385(0x12e)],'cxnIndex':_0x251f49[_0x15e385(0x14a)]}};_0x475c7a[_0x15e385(0x18f)]({'id':$['id'],'params':{'unitId':_0x566bc5,'subUnitId':_0x58aa9c,'shapeId':_0x343e4a,'shapeData':{'relation':_0x30477c}}}),_0x4581bc[_0x15e385(0x18f)]({'id':$['id'],'params':{'unitId':_0x566bc5,'subUnitId':_0x58aa9c,'shapeId':_0x343e4a,'shapeData':{'relation':_0x1226dd}}});}}),{'preRedos':_0x475c7a,'redos':[],'preUndos':[],'undos':_0x4581bc};}let _0x12f914=this[_0x12f38b(0x1ba)](_0x51d926);if(_0x12f914){let _0x336fdb=_0x12f914[_0x12f38b(0x1a1)](_0x1849c6=>_0x1849c6['drawingType']===_0x1b1709[_0x12f38b(0x18c)]);if(_0x336fdb['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x33c21f=[],_0x5c0750=[];for(let _0x12d24a of _0x336fdb){let {unitId:_0x1db0cc,subUnitId:_0x2641a5,drawingId:_0x119d98,transform:_0x557ece}=_0x12d24a;if(!_0x1db0cc||!_0x2641a5||!_0x119d98||!_0x557ece)continue;let _0x403ccc=this['_sheetsShapeService'][_0x12f38b(0x176)](_0x1db0cc,_0x2641a5,_0x119d98);if(!_0x403ccc)throw TypeError(_0x12f38b(0x1ad)+_0x403ccc);let _0x228f4b=_0x403ccc[_0x12f38b(0x19e)]();if(_0x10aa10(_0x228f4b)){let _0x2be318=this['_sheetsShapeService']['getLineShapeRelation'](_0x1db0cc,_0x2641a5,_0x119d98);_0x2be318&&(_0x33c21f[_0x12f38b(0x18f)]({'id':$['id'],'params':{'unitId':_0x1db0cc,'subUnitId':_0x2641a5,'shapeId':_0x119d98,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x5c0750[_0x12f38b(0x18f)]({'id':$['id'],'params':{'unitId':_0x1db0cc,'subUnitId':_0x2641a5,'shapeId':_0x119d98,'shapeData':{'relation':_0x2be318}}}));}else{let _0x43dd15=this[_0x12f38b(0x128)]['getBasicShapeRelation'](_0x1db0cc,_0x2641a5,_0x119d98);if(_0x43dd15&&_0x43dd15[_0x12f38b(0x1a8)]>0x0)for(let _0x2d16cc of _0x43dd15){let _0xfbcf0b=_0x2d16cc[_0x12f38b(0x1be)],_0x179e29=_0x2d16cc['isFrom'],_0x3153ea=this[_0x12f38b(0x128)][_0x12f38b(0x176)](_0x1db0cc,_0x2641a5,_0xfbcf0b);if(!_0x3153ea)continue;let _0x58bb47=_0x3153ea[_0x12f38b(0x1e8)](),_0x3c2451=_0x3153ea[_0x12f38b(0x1d8)]();_0x58bb47&&_0x3c2451?this[_0x12f38b(0x1c8)](_0x1db0cc,_0x2641a5,_0xfbcf0b,_0x3153ea,_0x58bb47,_0x3c2451,_0x33c21f,_0x5c0750,_0x119d98,_0x557ece):this[_0x12f38b(0x121)](_0x1db0cc,_0x2641a5,_0xfbcf0b,_0x3153ea,_0x179e29?_0x58bb47:_0x3c2451,_0x179e29,_0x33c21f,_0x5c0750,_0x119d98,_0x557ece);}}}return{'preRedos':[],'redos':_0x33c21f,'preUndos':_0x5c0750,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getDrawingUpdates'](_0x21fd4c){const _0xab39b0=_0x225b1f;if(_0x21fd4c['id']===_0x57d0bf['id'])return _0x21fd4c[_0xab39b0(0x167)][_0xab39b0(0x191)];if(_0x21fd4c['id']===_0xede2d4['id']){let _0x1ac48e=_0x21fd4c[_0xab39b0(0x167)],_0x7077bf=_0x1ac48e[_0xab39b0(0x191)][_0xab39b0(0x146)](({placement:_0x2540f4})=>_0x2540f4[_0xab39b0(0x1e9)]===_0x105b85[_0xab39b0(0x147)])?void 0x0:this[_0xab39b0(0x187)][_0xab39b0(0x14c)](_0x1ac48e[_0xab39b0(0x174)],_0x1ac48e[_0xab39b0(0x1d5)]),_0x50cc5e=[];for(let {drawingId:_0x2ec054,placement:_0x18391b}of _0x1ac48e[_0xab39b0(0x191)]){let _0x41d4d3=this['_sheetDrawingService']['getDrawingByParam']({'unitId':_0x1ac48e[_0xab39b0(0x174)],'subUnitId':_0x1ac48e[_0xab39b0(0x1d5)],'drawingId':_0x2ec054});(_0x41d4d3==null?void 0x0:_0x41d4d3['drawingType'])===_0x1b1709[_0xab39b0(0x18c)]&&_0x50cc5e[_0xab39b0(0x18f)](_0x506f27(_0x41d4d3,_0x18391b,_0x7077bf));}return _0x50cc5e;}return null;}[_0x225b1f(0x1b8)](_0x27c250,_0x4c29d6,_0x12af7c,_0x79857c,_0x243405){const _0x23976c=_0x225b1f;if(!_0x4c29d6||!_0x12af7c)return null;let {shapeId:_0x36745e,cxnIndex:_0x32a851}=_0x27c250,_0x5bea01=this[_0x23976c(0x128)][_0x23976c(0x176)](_0x4c29d6,_0x12af7c,_0x36745e);if(!_0x5bea01)return null;let _0x46fc81=this['_drawingManagerService']['getDrawingByParam']({'unitId':_0x4c29d6,'subUnitId':_0x12af7c,'drawingId':_0x36745e});if(!(_0x46fc81!=null&&_0x46fc81['transform']))return null;let {left:_0x4075d8=0x0,top:_0x30bbb6=0x0,width:_0x3c2b77=0x0,height:_0x256296=0x0,flipX:_0x308f1a=!0x1,flipY:_0x5cc99c=!0x1,angle:_0x4c8385}=_0x46fc81['transform'];_0x243405&&_0x79857c===_0x36745e&&(_0x4075d8=_0x243405[_0x23976c(0x1d4)]??_0x4075d8,_0x30bbb6=_0x243405[_0x23976c(0x166)]??_0x30bbb6,_0x3c2b77=_0x243405[_0x23976c(0x1cc)]??_0x3c2b77,_0x256296=_0x243405[_0x23976c(0x1b4)]??_0x256296,_0x308f1a=_0x243405['flipX']??_0x308f1a,_0x5cc99c=_0x243405[_0x23976c(0x12c)]??_0x5cc99c,_0x4c8385=_0x243405[_0x23976c(0x197)]??_0x4c8385),_0x5bea01[_0x23976c(0x1e0)]({'width':_0x3c2b77,'height':_0x256296});let _0x3a2c00=_0x5bea01[_0x23976c(0x1a6)]()[_0x23976c(0x158)](_0x4c14a1=>_0x4c14a1['index']===_0x32a851);if(!_0x3a2c00)return null;let _0x40741f=_0x308f1a?_0x3c2b77-_0x3a2c00['x']:_0x3a2c00['x'],_0x3b2032=_0x5cc99c?_0x256296-_0x3a2c00['y']:_0x3a2c00['y'];if(_0x4c8385!==0x0&&_0x4c8385!=null){let _0x5a5ee0=_0x4c8385*Math['PI']/0xb4,_0x2a16d2=Math[_0x23976c(0x1f4)](_0x5a5ee0),_0x1d4ce9=Math[_0x23976c(0x19b)](_0x5a5ee0),_0x3feb1c=_0x3c2b77/0x2,_0xe1b92f=_0x256296/0x2,_0x1117e4=_0x40741f-_0x3feb1c,_0x1747b8=_0x3b2032-_0xe1b92f;_0x40741f=_0x3feb1c+_0x1117e4*_0x2a16d2-_0x1747b8*_0x1d4ce9,_0x3b2032=_0xe1b92f+_0x1117e4*_0x1d4ce9+_0x1747b8*_0x2a16d2;}_0x40741f+=_0x4075d8,_0x3b2032+=_0x30bbb6;let _0xd716c1=_0x3a2c00[_0x23976c(0x1dc)]/0xea60;_0x308f1a&&(_0xd716c1=0xb4-_0xd716c1),_0x5cc99c&&(_0xd716c1=-_0xd716c1),_0xd716c1+=_0x4c8385||0x0,_0xd716c1=(_0xd716c1%0x168+0x168)%0x168;let _0x530f89=_0x29238b({'left':_0x4075d8,'top':_0x30bbb6,'width':_0x3c2b77,'height':_0x256296},_0x4c8385||0x0);return{'point':{'x':_0x40741f,'y':_0x3b2032},'angle':_0xd716c1,'bounds':_0x530f89};}[_0x225b1f(0x1c8)](_0x519e11,_0x72b99f,_0x2e65ba,_0x590140,_0x24fe9a,_0x54610a,_0x9c9537,_0x6b2f6e,_0x2c6ba2,_0x59498a){const _0x340f1a=_0x225b1f;let _0x4fedb3=this[_0x340f1a(0x187)][_0x340f1a(0x17b)](_0x519e11,_0x72b99f);if(!_0x4fedb3)return;let _0x171386=_0x590140[_0x340f1a(0x141)](),_0x3bee29=_0x590140[_0x340f1a(0x13a)](),_0x34bbd9={},_0x41dad6={};_0x3bee29[_0x340f1a(0x17c)](_0x25ac48=>{const _0x37aa42=_0x340f1a;let _0x6893c3=_0x590140[_0x37aa42(0x14d)](_0x25ac48);_0x41dad6[_0x25ac48]=_0x6893c3??0x0;});let _0x471d2e=this[_0x340f1a(0x1b8)](_0x24fe9a,_0x519e11,_0x72b99f,_0x2c6ba2,_0x59498a),_0x2d0798=this[_0x340f1a(0x1b8)](_0x54610a,_0x519e11,_0x72b99f,_0x2c6ba2,_0x59498a);if(_0x471d2e&&_0x2d0798){let _0x33611e=_0x590140[_0x340f1a(0x19e)](),_0x2f1f22=_0x19932a(_0x471d2e,_0x2d0798,_0x33611e),_0x3c98bb=_0x33611e;if(_0x2f1f22){let _0x44738b=_0x20b01f(_0x2f1f22,_0x590140[_0x340f1a(0x19e)]()),_0x27dba8=this[_0x340f1a(0x14b)][_0x340f1a(0x1d2)](_0x519e11,_0x72b99f);if(_0x27dba8&&_0x27dba8[_0x2e65ba]){let _0x4439d0=_0x27dba8[_0x2e65ba];_0x3c98bb=_0x44738b[_0x340f1a(0x1d6)];for(let [_0x39e4ca,_0x2a3207]of Object[_0x340f1a(0x17e)](_0x44738b[_0x340f1a(0x1ee)]))_0x34bbd9[_0x39e4ca]=_0x2a3207;let _0x1f499f={..._0x4439d0[_0x340f1a(0x171)],'width':_0x44738b[_0x340f1a(0x1bb)][_0x340f1a(0x1cc)],'height':_0x44738b['worldRect'][_0x340f1a(0x1b4)],'left':_0x44738b['worldRect'][_0x340f1a(0x1d4)],'top':_0x44738b[_0x340f1a(0x1bb)][_0x340f1a(0x166)],'flipX':_0x44738b[_0x340f1a(0x1bb)][_0x340f1a(0x178)],'flipY':_0x44738b[_0x340f1a(0x1bb)]['flipY'],'angle':_0x44738b[_0x340f1a(0x184)]},_0x1f88d0=_0x3b3677(_0x1f499f,_0x4fedb3),_0x6a9d84=_0x2d2bb4(_0x1f499f,_0x4fedb3),_0x34e125={'unitId':_0x519e11,'subUnitId':_0x72b99f,'drawingType':_0x1b1709[_0x340f1a(0x18c)],'drawingId':_0x2e65ba,'transform':_0x1f499f,'sheetTransform':_0x1f88d0,'axisAlignSheetTransform':_0x6a9d84},{unitId:_0xe0c30f,subUnitId:_0x4facba,undo:_0x2f4333,redo:_0x359532,objects:_0x553c99}=this['_drawingManagerService'][_0x340f1a(0x182)]([_0x34e125]);_0x9c9537[_0x340f1a(0x18f)]({'id':_0xa539c0['id'],'params':{'unitId':_0xe0c30f,'subUnitId':_0x4facba,'op':_0x359532,'objects':_0x553c99,'type':_0x2c701a[_0x340f1a(0x1c3)]}}),_0x6b2f6e[_0x340f1a(0x18f)]({'id':_0xa539c0['id'],'params':{'unitId':_0xe0c30f,'subUnitId':_0x4facba,'op':_0x2f4333,'objects':_0x553c99,'type':_0x2c701a[_0x340f1a(0x1c3)]}});}_0x590140['removeLinePoints']();}_0x9c9537[_0x340f1a(0x18f)]({'id':$['id'],'params':{'unitId':_0x519e11,'subUnitId':_0x72b99f,'shapeId':_0x2e65ba,'shapeType':_0x3c98bb,'shapeData':{'adjustValues':_0x34bbd9,'relation':_0x171386}}}),_0x6b2f6e['push']({'id':$['id'],'params':{'unitId':_0x519e11,'subUnitId':_0x72b99f,'shapeId':_0x2e65ba,'shapeType':_0x33611e,'shapeData':{'adjustValues':_0x41dad6,'relation':_0x171386}}});}}['_addLineFollowShapeUpdates'](_0x2efc84,_0x38c4be,_0x60a7e7,_0x50a9dc,_0x2535d5,_0x51ea29,_0x27401d,_0x4ff0b5,_0x3353c5,_0x1ed672){const _0x5eaa51=_0x225b1f;var _0x3f7439;if(!_0x2535d5)return;let _0x5b3b08=this['_sheetSkeletonService'][_0x5eaa51(0x17b)](_0x2efc84,_0x38c4be);if(!_0x5b3b08)return;let _0x43a3eb=(_0x3f7439=this[_0x5eaa51(0x14b)]['getDrawingByParam']({'unitId':_0x2efc84,'subUnitId':_0x38c4be,'drawingId':_0x3353c5}))==null?void 0x0:_0x3f7439[_0x5eaa51(0x171)];if(!_0x43a3eb)return;let _0x422330=_0x43a3eb[_0x5eaa51(0x1d4)]!==_0x1ed672['left']||_0x43a3eb[_0x5eaa51(0x166)]!==_0x1ed672[_0x5eaa51(0x166)],_0x506fb4=_0x43a3eb[_0x5eaa51(0x1cc)]!==_0x1ed672[_0x5eaa51(0x1cc)]||_0x43a3eb['height']!==_0x1ed672['height'],_0x32f35c=_0x43a3eb['flipX']!==_0x1ed672['flipX']||_0x43a3eb[_0x5eaa51(0x12c)]!==_0x1ed672[_0x5eaa51(0x12c)],_0x42ff8a=_0x43a3eb['angle']!==_0x1ed672[_0x5eaa51(0x197)];if(_0x422330&&!_0x506fb4&&!_0x32f35c&&!_0x42ff8a){let _0x48f34c=(_0x1ed672[_0x5eaa51(0x1d4)]??0x0)-(_0x43a3eb[_0x5eaa51(0x1d4)]??0x0),_0x2b5ea3=(_0x1ed672['top']??0x0)-(_0x43a3eb['top']??0x0),_0x22fcf6=this[_0x5eaa51(0x14b)][_0x5eaa51(0x1d2)](_0x2efc84,_0x38c4be);if(_0x22fcf6&&_0x22fcf6[_0x60a7e7]){var _0x3eb4bf,_0x4fb057;let _0x571da6=_0x22fcf6[_0x60a7e7],_0x27f4fb={..._0x571da6['transform'],'left':(((_0x3eb4bf=_0x571da6['transform'])==null?void 0x0:_0x3eb4bf['left'])??0x0)+_0x48f34c,'top':(((_0x4fb057=_0x571da6[_0x5eaa51(0x171)])==null?void 0x0:_0x4fb057[_0x5eaa51(0x166)])??0x0)+_0x2b5ea3},_0x35a904=_0x3b3677(_0x27f4fb,_0x5b3b08),_0x294aaa=_0x2d2bb4(_0x27f4fb,_0x5b3b08),_0x2f49fb={'unitId':_0x2efc84,'subUnitId':_0x38c4be,'drawingType':_0x1b1709[_0x5eaa51(0x18c)],'drawingId':_0x60a7e7,'transform':_0x27f4fb,'sheetTransform':_0x35a904,'axisAlignSheetTransform':_0x294aaa},{unitId:_0xa18e63,subUnitId:_0x19aebe,undo:_0x190a19,redo:_0x33b7fb,objects:_0x2cf3fb}=this[_0x5eaa51(0x14b)][_0x5eaa51(0x182)]([_0x2f49fb]);_0x27401d[_0x5eaa51(0x18f)]({'id':_0xa539c0['id'],'params':{'unitId':_0xa18e63,'subUnitId':_0x19aebe,'op':_0x33b7fb,'objects':_0x2cf3fb,'type':_0x2c701a[_0x5eaa51(0x1c3)]}}),_0x4ff0b5[_0x5eaa51(0x18f)]({'id':_0xa539c0['id'],'params':{'unitId':_0xa18e63,'subUnitId':_0x19aebe,'op':_0x190a19,'objects':_0x2cf3fb,'type':_0x2c701a[_0x5eaa51(0x1c3)]}});}}else{let _0x4dbbad=_0x50a9dc['getStartConnectInfo'](),_0x418d6b=_0x50a9dc[_0x5eaa51(0x1d8)]();this[_0x5eaa51(0x1c8)](_0x2efc84,_0x38c4be,_0x60a7e7,_0x50a9dc,_0x4dbbad,_0x418d6b,_0x27401d,_0x4ff0b5,_0x3353c5,_0x1ed672);}}};Oe=fe([Z(0x0,_0x1220c4),Z(0x1,_0x9e5ef9(_0x4c2afb)),Z(0x2,_0x9e5ef9(_0x32f773)),Z(0x3,_0x9e5ef9(_0x5f3711)),Z(0x4,_0x9e5ef9(Q)),Z(0x5,_0x9e5ef9(_0x410964)),Z(0x6,_0x9e5ef9(_0x26e807)),Z(0x7,_0x9e5ef9(Ee))],Oe);let ke=class extends _0x1b1f35{constructor(_0x870562,_0x46faf4,_0x4815b0){const _0x2461a9=_0x225b1f;super(),this[_0x2461a9(0x159)]=_0x870562,this[_0x2461a9(0x181)]=_0x46faf4,this['disposeWithMe'](_0x4815b0[_0x2461a9(0x1d1)](this));}[_0x225b1f(0x171)](_0x32b4db){const _0xfadbf1=_0x225b1f;let _0x518f7e={'preRedos':[],'redos':[],'preUndos':[],'undos':[]};this[_0xfadbf1(0x154)](_0x32b4db,_0x518f7e);for(let [_0x65d011,_0x3a7e9b]of _0x32b4db['originals'])this[_0xfadbf1(0x194)](_0x32b4db,_0x65d011,_0x3a7e9b,_0x518f7e);return _0x518f7e;}[_0x225b1f(0x154)](_0x1b5617,_0x1b839b){const _0x487ccd=_0x225b1f;if(_0x1b5617[_0x487ccd(0x1b1)]===_0x487ccd(0x144))for(let _0x4a9c6f of _0x1b5617[_0x487ccd(0x177)]){let _0x318cf3=_0x1b5617['originals']['get'](_0x4a9c6f),_0x57051b=this[_0x487ccd(0x159)][_0x487ccd(0x176)](_0x1b5617[_0x487ccd(0x174)],_0x1b5617[_0x487ccd(0x1d5)],_0x4a9c6f);(_0x318cf3==null?void 0x0:_0x318cf3[_0x487ccd(0x1f0)])===_0x1b1709[_0x487ccd(0x18c)]&&_0x57051b&&(_0x1b839b[_0x487ccd(0x1b7)]['push']({'id':me['id'],'params':{'unitId':_0x1b5617[_0x487ccd(0x174)],'subUnitId':_0x1b5617['subUnitId'],'shapeId':_0x4a9c6f}}),_0x1b839b['undos'][_0x487ccd(0x18f)]({'id':pe['id'],'params':{'unitId':_0x1b5617['unitId'],'subUnitId':_0x1b5617[_0x487ccd(0x1d5)],'shapeId':_0x4a9c6f,'shapeName':_0x57051b[_0x487ccd(0x192)](),'shapeType':_0x57051b[_0x487ccd(0x19e)](),'shapeData':_0x56bc3c[_0x487ccd(0x1ac)](_0x57051b[_0x487ccd(0x16d)]())}}));}}[_0x225b1f(0x194)](_0x37519b,_0x1645b6,_0x1f1255,_0x1bf5d8){const _0x1adf19=_0x225b1f;if(_0x1f1255['drawingType']!==_0x1b1709[_0x1adf19(0x18c)]||_0x37519b[_0x1adf19(0x177)]['has'](_0x1645b6))return;let _0x105cf1=this[_0x1adf19(0x159)]['getShapeModel'](_0x37519b['unitId'],_0x37519b[_0x1adf19(0x1d5)],_0x1645b6);if(!_0x105cf1||!_0x10aa10(_0x105cf1[_0x1adf19(0x19e)]()))return;let _0x21bb37=_0x105cf1[_0x1adf19(0x141)]();if(!(_0x37519b[_0x1adf19(0x1b6)][_0x1adf19(0x16c)](_0x1645b6)||_0x21bb37!=null&&_0x21bb37[_0x1adf19(0x16f)]&&(_0x37519b[_0x1adf19(0x1b6)]['has'](_0x21bb37[_0x1adf19(0x16f)]['shapeId'])||_0x37519b['deletes']['has'](_0x21bb37['from']['shapeId']))||_0x21bb37!=null&&_0x21bb37['to']&&(_0x37519b[_0x1adf19(0x1b6)]['has'](_0x21bb37['to']['shapeId'])||_0x37519b[_0x1adf19(0x177)][_0x1adf19(0x16c)](_0x21bb37['to']['shapeId']))))return;let _0x17d443=_0x37519b['updates']['get'](_0x1645b6)??_0x1f1255,_0x43e604=this['_toSnapshot'](_0x37519b,_0x17d443);if(!_0x43e604)return;let _0xdfdd08=_0x2536c2(_0x43e604);if(_0xdfdd08[_0x1adf19(0x1a8)]<0x2)return;let _0x5a3bfe=_0x56bc3c[_0x1adf19(0x1ac)](_0x21bb37??{}),_0x29eb68=_0x5a3bfe[_0x1adf19(0x16f)]&&this[_0x1adf19(0x1d3)](_0x37519b,_0x5a3bfe['from'][_0x1adf19(0x12e)],_0x5a3bfe[_0x1adf19(0x16f)][_0x1adf19(0x14a)]),_0x35507a=_0x5a3bfe['to']&&this['_resolveBinding'](_0x37519b,_0x5a3bfe['to']['shapeId'],_0x5a3bfe['to'][_0x1adf19(0x14a)]);_0x5a3bfe[_0x1adf19(0x16f)]&&!_0x29eb68&&delete _0x5a3bfe[_0x1adf19(0x16f)],_0x5a3bfe['to']&&!_0x35507a&&delete _0x5a3bfe['to'];let _0x45834f=_0x29eb68||_0x21057d((_0x35507a==null?void 0x0:_0x35507a['point'])??_0xdfdd08[_0xdfdd08[_0x1adf19(0x1a8)]-0x1],_0xdfdd08[0x0]),_0x4e6817=_0x35507a||_0x21057d((_0x29eb68==null?void 0x0:_0x29eb68['point'])??_0xdfdd08[0x0],_0xdfdd08[_0xdfdd08[_0x1adf19(0x1a8)]-0x1]),_0x339bfe=_0x39a6f1(_0x43e604,_0x45834f,_0x4e6817,_0x5a3bfe);_0x339bfe!=null&&_0x339bfe[_0x1adf19(0x171)]&&_0x339bfe[_0x1adf19(0x133)]&&_0x339bfe['shapeData']&&(this['_applyUpdate'](_0x37519b,_0x17d443,_0x339bfe),_0x37519b['mode']==='refresh'?(_0x105cf1['setShapeType'](_0x339bfe[_0x1adf19(0x133)]),_0x105cf1[_0x1adf19(0x1ea)](_0x56bc3c[_0x1adf19(0x1ac)](_0x339bfe[_0x1adf19(0x195)]),!0x1)):(_0x1bf5d8[_0x1adf19(0x148)][_0x1adf19(0x18f)]({'id':$['id'],'params':{'unitId':_0x37519b[_0x1adf19(0x174)],'subUnitId':_0x37519b[_0x1adf19(0x1d5)],'shapeId':_0x1645b6,'shapeType':_0x339bfe[_0x1adf19(0x133)],'shapeData':_0x56bc3c[_0x1adf19(0x1ac)](_0x339bfe[_0x1adf19(0x195)]),'replace':!0x0}}),_0x1bf5d8[_0x1adf19(0x1eb)][_0x1adf19(0x18f)]({'id':$['id'],'params':{'unitId':_0x37519b[_0x1adf19(0x174)],'subUnitId':_0x37519b[_0x1adf19(0x1d5)],'shapeId':_0x1645b6,'shapeType':_0x105cf1['getShapeType'](),'shapeData':_0x56bc3c[_0x1adf19(0x1ac)](_0x105cf1[_0x1adf19(0x16d)]()),'replace':!0x0}})));}[_0x225b1f(0x1d3)](_0x5a8ff3,_0x1a068a,_0x5129d2){const _0x32b42c=_0x225b1f;if(_0x5a8ff3['deletes'][_0x32b42c(0x16c)](_0x1a068a))return null;let _0x1de944=_0x5a8ff3[_0x32b42c(0x1b6)][_0x32b42c(0x19d)](_0x1a068a)??_0x5a8ff3[_0x32b42c(0x1de)][_0x32b42c(0x19d)](_0x1a068a);if(!_0x1de944)return null;let _0x515f0c=this['_toSnapshot'](_0x5a8ff3,_0x1de944);return _0x515f0c?_0x150c8e(_0x515f0c,_0x5129d2):null;}[_0x225b1f(0x1e4)](_0x37dd0f,_0x20bd52){const _0xd0113b=_0x225b1f;let _0x44d152={'hostType':_0x32e2b1['UNIVER_SHEET'],'unitId':_0x37dd0f['unitId'],'subUnitId':_0x37dd0f[_0xd0113b(0x1d5)],'shapeId':_0x20bd52[_0xd0113b(0x1c2)]},_0x152bb5=this[_0xd0113b(0x181)][_0xd0113b(0x1bd)](_0x44d152);return!_0x152bb5||!_0x20bd52[_0xd0113b(0x171)]?null:{..._0x152bb5,'transform':{'left':_0x20bd52[_0xd0113b(0x171)]['left']??0x0,'top':_0x20bd52[_0xd0113b(0x171)][_0xd0113b(0x166)]??0x0,'width':_0x20bd52[_0xd0113b(0x171)]['width']??0x0,'height':_0x20bd52['transform'][_0xd0113b(0x1b4)]??0x0,'rotation':_0x20bd52[_0xd0113b(0x171)]['angle']??0x0,'flipX':_0x20bd52[_0xd0113b(0x171)]['flipX']??!0x1,'flipY':_0x20bd52[_0xd0113b(0x171)][_0xd0113b(0x12c)]??!0x1}};}[_0x225b1f(0x13b)](_0x1baba0,_0x386c1e,_0x348390){const _0x59c3c0=_0x225b1f;let _0x2bd848=_0x386c1e,_0x2f0e2c={..._0x386c1e[_0x59c3c0(0x171)],'left':_0x348390['transform'][_0x59c3c0(0x1d4)],'top':_0x348390['transform'][_0x59c3c0(0x166)],'width':_0x348390[_0x59c3c0(0x171)][_0x59c3c0(0x1cc)],'height':_0x348390['transform'][_0x59c3c0(0x1b4)],'angle':_0x348390[_0x59c3c0(0x171)]['rotation'],'flipX':_0x348390[_0x59c3c0(0x171)][_0x59c3c0(0x178)],'flipY':_0x348390['transform'][_0x59c3c0(0x12c)]},_0x384de9={..._0x2bd848,'transform':_0x2f0e2c,'sheetTransform':_0x3b3677(_0x2f0e2c,_0x1baba0['skeleton']),'axisAlignSheetTransform':_0x2d2bb4(_0x2f0e2c,_0x1baba0[_0x59c3c0(0x1b5)]),'data':{..._0x2bd848[_0x59c3c0(0x125)],'shapeType':_0x348390[_0x59c3c0(0x133)],'shapeData':_0x56bc3c['deepClone'](_0x348390[_0x59c3c0(0x195)])}};_0x1baba0['updates'][_0x59c3c0(0x1df)](_0x386c1e[_0x59c3c0(0x1c2)],_0x384de9);}};ke=fe([Z(0x0,_0x9e5ef9(Q)),Z(0x1,_0x9e5ef9(Ee)),Z(0x2,_0x9e5ef9(_0x1cf727))],ke);let Ae=class extends _0x543854{constructor(_0x1654c0=De,_0x323927,_0x5e1d9e){const _0x1ecb92=_0x225b1f;super(),this['_config']=_0x1654c0,this['_injector']=_0x323927,this[_0x1ecb92(0x150)]=_0x5e1d9e;let {..._0x3b70bb}=_0x13580a({},De,this['_config']);this[_0x1ecb92(0x150)][_0x1ecb92(0x16b)](_0x1ecb92(0x1ef),_0x3b70bb);}[_0x225b1f(0x1f3)](){const _0x47046d=_0x225b1f;let _0x223b17=this[_0x47046d(0x164)];[[de],[Q],[Ee],[ke],[Oe]][_0x47046d(0x17c)](_0x590ac5=>_0x223b17[_0x47046d(0x11f)](_0x590ac5)),_0x5e640a(_0x223b17,[[Q],[ke],[Oe]]);}};X(Ae,_0x225b1f(0x14f),_0x32e2b1['UNIVER_SHEET']),X(Ae,_0x225b1f(0x165),'SHEET_SHAPE_PLUGIN'),X(Ae,_0x225b1f(0x17d),Ce),X(Ae,_0x225b1f(0x1ca),we),Ae=fe([_0x4f8586(_0x52e3ac,_0xa332b5,_0x2d662f,_0x5b96cb,_0x5ad029),Z(0x1,_0x9e5ef9(_0x28f5b9)),Z(0x2,_0x121a34)],Ae);export{se as DEFAULT_SHAPE_HEIGHT,oe as DEFAULT_SHAPE_WIDTH,he as InsertShapeCommand,pe as InsertSheetsShapeMutation,me as RemoveSheetsShapeMutation,ge as SetShapeDrawingDataCommand,ve as SetSheetsShapeRotateCommand,ye as SetSheetsShapeTextVerticalToggleCommand,Q as SheetsShapeService,_e as ToggleSheetsShapeFlipCommand,Ae as UniverSheetsShapePlugin,be as UpdateConnectorRelationCommand,xe as UpdateLineShapeResizeCommand,$ as UpdateSheetsShapeDataMutation,Se as UpdateSheetsShapeTypeMutation};
@@ -2,18 +2,21 @@ import { IShapeHostAdapterRegistry } from '@univerjs-pro/engine-shape';
2
2
  import { Disposable, ICommandService } from '@univerjs/core';
3
3
  import { IDrawingManagerService } from '@univerjs/drawing';
4
4
  import { SheetInterceptorService, SheetSkeletonService } from '@univerjs/sheets';
5
+ import { ISheetDrawingService } from '@univerjs/sheets-drawing';
5
6
  import { SheetShapeHostAdapter } from '../adapters/sheet-shape-host.adapter';
6
7
  import { SheetsShapeService } from '../services/sheet-shape-services';
7
8
  export declare class SheetsShapeController extends Disposable {
8
9
  private readonly _commandService;
9
10
  private readonly _sheetInterceptorService;
10
11
  private readonly _sheetSkeletonService;
12
+ private readonly _sheetDrawingService;
11
13
  private readonly _sheetsShapeService;
12
14
  private readonly _drawingManagerService;
13
15
  private readonly _shapeHostAdapterRegistry;
14
- constructor(_commandService: ICommandService, _sheetInterceptorService: SheetInterceptorService, _sheetSkeletonService: SheetSkeletonService, _sheetsShapeService: SheetsShapeService, _drawingManagerService: IDrawingManagerService, _shapeHostAdapterRegistry: IShapeHostAdapterRegistry, shapeHostAdapter: SheetShapeHostAdapter);
16
+ constructor(_commandService: ICommandService, _sheetInterceptorService: SheetInterceptorService, _sheetSkeletonService: SheetSkeletonService, _sheetDrawingService: ISheetDrawingService, _sheetsShapeService: SheetsShapeService, _drawingManagerService: IDrawingManagerService, _shapeHostAdapterRegistry: IShapeHostAdapterRegistry, shapeHostAdapter: SheetShapeHostAdapter);
15
17
  private _initCommands;
16
18
  private _initCommandInterceptor;
19
+ private _getDrawingUpdates;
17
20
  /**
18
21
  * Get the IConnectPointInfo for a connected shape based on the relation item.
19
22
  * This retrieves the world coordinates, angle, and bounds of the connection point.
@@ -26,6 +26,7 @@ export declare class SheetShapeModelManager extends Disposable {
26
26
  getShapeType(id: string): ShapeTypeEnum | undefined;
27
27
  hasShape(id: string): boolean;
28
28
  getShapeDisplayNames(): string[];
29
+ transferShapeTo(target: SheetShapeModelManager, id: string): boolean;
29
30
  removeShape(id: string): void;
30
31
  toJSON(): IShapeJSONData[];
31
32
  fromJSON(data: IShapeJSONData[]): void;
@@ -10,6 +10,7 @@ export declare class SheetsShapeService extends Disposable {
10
10
  constructor(_resourcesManagerService: IResourceManagerService);
11
11
  private _ensureShapeModelManager;
12
12
  insertShape(unitId: string, subUnitId: string, shapeType: ShapeTypeEnum, shapeId: string, shapeData?: IShapeData, name?: string): void;
13
+ rehostShape(unitId: string, from: string, to: string, shapeId: string): boolean;
13
14
  removeShape(unitId: string, subUnitId: string, shapeId: string): void;
14
15
  getBasicShapeType(unitId: string, subUnitId: string, shapeId: string): ShapeTypeEnum | undefined;
15
16
  getShapeType(unitId: string, subUnitId: string, shapeId: string): ShapeTypeEnum | undefined;
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x58eb(){const _0x56628a=['get','syncExecuteCommand','subUnitId','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.','amd','toStringTag','84WKyXKi','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.','\x22\x20was\x20not\x20found.','defineProperty','UniverInstanceType','441952zAYkzC','32073KHsoBt','unitId','@univerjs-pro/engine-shape','UniverProEngineShape','SheetDrawingAnchorType','object','267507isbFSK','_createShapeHandle','height','UniverCore','UniverSheetsFacade','461467otpDRs','ICommandService','@univerjs/sheets/facade','_sheetDrawingService','_shapeRef','exports','@univerjs/core','[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22','shapeType','_getShapeAdapter','getSheetId','6lRLXhb','5073444xcpByd','UNIVER_SHEET','_getShapeScope','createInstance','22NwJrUV','118qVycBb','shapeId','3492968pvcEwj','UniverProEngineShapeFacade','FWorksheet','\x22\x20has\x20no\x20transform\x20extent.','length','10vnZuCu','getDrawingByParam','getUnitId','74390lvhWkF','_commandService','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','listShapes','SetSheetDrawingPlacementCommand','transform','insertShape','width','ISheetDrawingService','isConnectorShape','Module','@univerjs/sheets-drawing','@univerjs-pro/engine-shape/facade','decorate','IShapeHostAdapterRegistry','warn','FConnectorShape','_injector','getShape','getShapes','map'];_0x58eb=function(){return _0x56628a;};return _0x58eb();}function _0x1fb5(_0x42e13b,_0x5e4971){_0x42e13b=_0x42e13b-0x84;const _0x58eb82=_0x58eb();let _0x1fb5b2=_0x58eb82[_0x42e13b];return _0x1fb5b2;}(function(_0x5b2131,_0x427d87){const _0x5220aa=_0x1fb5,_0x5c96c4=_0x5b2131();while(!![]){try{const _0x34d1c2=parseInt(_0x5220aa(0x99))/0x1+-parseInt(_0x5220aa(0xaa))/0x2*(-parseInt(_0x5220aa(0x8e))/0x3)+parseInt(_0x5220aa(0x88))/0x4*(-parseInt(_0x5220aa(0xb4))/0x5)+parseInt(_0x5220aa(0xa4))/0x6*(-parseInt(_0x5220aa(0x8d))/0x7)+parseInt(_0x5220aa(0xac))/0x8+parseInt(_0x5220aa(0x94))/0x9*(parseInt(_0x5220aa(0xb1))/0xa)+parseInt(_0x5220aa(0xa9))/0xb*(-parseInt(_0x5220aa(0xa5))/0xc);if(_0x34d1c2===_0x427d87)break;else _0x5c96c4['push'](_0x5c96c4['shift']());}catch(_0x23a892){_0x5c96c4['push'](_0x5c96c4['shift']());}}}(_0x58eb,0x52618),function(_0x4823b3,_0x1630a2){const _0x2e2f77=_0x1fb5;typeof exports==_0x2e2f77(0x93)&&typeof module<'u'?_0x1630a2(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/engine-shape/facade'),require('@univerjs/core'),require('@univerjs/sheets/facade'),require('@univerjs/sheets-drawing')):typeof define=='function'&&define[_0x2e2f77(0x86)]?define([_0x2e2f77(0x9e),_0x2e2f77(0x90),_0x2e2f77(0xc0),_0x2e2f77(0x9f),_0x2e2f77(0x9b),_0x2e2f77(0xbf)],_0x1630a2):(_0x4823b3=typeof globalThis<'u'?globalThis:_0x4823b3||self,_0x1630a2(_0x4823b3['UniverProSheetsShapeFacade']={},_0x4823b3[_0x2e2f77(0x91)],_0x4823b3[_0x2e2f77(0xad)],_0x4823b3[_0x2e2f77(0x97)],_0x4823b3[_0x2e2f77(0x98)],_0x4823b3['UniverSheetsDrawing']));}(this,function(_0x1ef0e8,_0x192301,_0xcfb397,_0x2397b5,_0x25dedd,_0x454e54){const _0x1fdb37=_0x1fb5;Object[_0x1fdb37(0x8b)](_0x1ef0e8,Symbol[_0x1fdb37(0x87)],{'value':_0x1fdb37(0xbe)});function _0xe56fbf(_0x250c73,_0x52cce9){return function(_0x17d1bb,_0x2cf71c){_0x52cce9(_0x17d1bb,_0x2cf71c,_0x250c73);};}function _0x404913(_0x327429,_0x25af8d,_0x17ee38,_0x820fab){const _0x2f11f5=_0x1fdb37;var _0xa72b42=arguments[_0x2f11f5(0xb0)],_0x5d4056=_0xa72b42<0x3?_0x25af8d:_0x820fab===null?_0x820fab=Object['getOwnPropertyDescriptor'](_0x25af8d,_0x17ee38):_0x820fab,_0x5c8b99;if(typeof Reflect==_0x2f11f5(0x93)&&typeof Reflect['decorate']=='function')_0x5d4056=Reflect[_0x2f11f5(0xc1)](_0x327429,_0x25af8d,_0x17ee38,_0x820fab);else{for(var _0x2bdb4f=_0x327429[_0x2f11f5(0xb0)]-0x1;_0x2bdb4f>=0x0;_0x2bdb4f--)(_0x5c8b99=_0x327429[_0x2bdb4f])&&(_0x5d4056=(_0xa72b42<0x3?_0x5c8b99(_0x5d4056):_0xa72b42>0x3?_0x5c8b99(_0x25af8d,_0x17ee38,_0x5d4056):_0x5c8b99(_0x25af8d,_0x17ee38))||_0x5d4056);}return _0xa72b42>0x3&&_0x5d4056&&Object[_0x2f11f5(0x8b)](_0x25af8d,_0x17ee38,_0x5d4056),_0x5d4056;}let _0x11b64e=class extends _0xcfb397['FShape']{constructor(_0x4f50c1,_0x5e6faa,_0x3e692d,_0x417526,_0x1612e7){const _0x38c739=_0x1fdb37;super(_0x4f50c1,_0x5e6faa,_0x3e692d,_0x417526),this[_0x38c739(0x9c)]=_0x1612e7;}['getPlacement'](){const _0x1e1600=_0x1fdb37;let _0x47e81d=this['_sheetDrawingService'][_0x1e1600(0xb2)]({'unitId':this[_0x1e1600(0x9d)][_0x1e1600(0x8f)],'subUnitId':this[_0x1e1600(0x9d)][_0x1e1600(0x84)],'drawingId':this[_0x1e1600(0x9d)][_0x1e1600(0xab)]});return _0x47e81d?(0x0,_0x454e54['getSheetDrawingPlacement'])(_0x47e81d):null;}['setPlacement'](_0x1df981){const _0x71d421=_0x1fdb37;return this[_0x71d421(0xb5)][_0x71d421(0xca)](_0x454e54[_0x71d421(0xb8)]['id'],{'unitId':this['_shapeRef'][_0x71d421(0x8f)],'subUnitId':this[_0x71d421(0x9d)]['subUnitId'],'drawings':[{'drawingId':this[_0x71d421(0x9d)][_0x71d421(0xab)],'placement':_0x1df981}]});}['setPosition'](_0x5f0c0b,_0x578827,_0x3bab06,_0x3caae2){const _0xfa0869=_0x1fdb37;var _0x328563,_0x5cea47;let _0x3ebb6a=this[_0xfa0869(0x9c)][_0xfa0869(0xb2)]({'unitId':this[_0xfa0869(0x9d)][_0xfa0869(0x8f)],'subUnitId':this[_0xfa0869(0x9d)][_0xfa0869(0x84)],'drawingId':this[_0xfa0869(0x9d)][_0xfa0869(0xab)]});if(!_0x3ebb6a)return console[_0xfa0869(0xc3)](_0xfa0869(0xa0)+this[_0xfa0869(0x9d)]['shapeId']+_0xfa0869(0x8a)),this;let _0x4a11f6=(_0x328563=_0x3ebb6a[_0xfa0869(0xb9)])==null?void 0x0:_0x328563[_0xfa0869(0xbb)],_0x1fb06b=(_0x5cea47=_0x3ebb6a[_0xfa0869(0xb9)])==null?void 0x0:_0x5cea47[_0xfa0869(0x96)];return _0x4a11f6==null||_0x1fb06b==null?(console[_0xfa0869(0xc3)](_0xfa0869(0xa0)+this[_0xfa0869(0x9d)]['shapeId']+_0xfa0869(0xaf)),this):(this[_0xfa0869(0xb5)]['syncExecuteCommand'](_0x454e54[_0xfa0869(0xb8)]['id'],{'unitId':this[_0xfa0869(0x9d)][_0xfa0869(0x8f)],'subUnitId':this['_shapeRef']['subUnitId'],'drawings':[{'drawingId':this[_0xfa0869(0x9d)]['shapeId'],'placement':{'kind':_0x454e54[_0xfa0869(0x92)]['Position'],'from':{'row':_0x5f0c0b,'column':_0x578827,'rowOffset':_0x3bab06,'columnOffset':_0x3caae2},'width':_0x4a11f6,'height':_0x1fb06b}}]}),this);}};_0x11b64e=_0x404913([_0xe56fbf(0x2,_0x192301[_0x1fdb37(0xc2)]),_0xe56fbf(0x3,_0x2397b5[_0x1fdb37(0x9a)]),_0xe56fbf(0x4,_0x454e54[_0x1fdb37(0xbc)])],_0x11b64e);var _0x4902cd=class extends _0x25dedd[_0x1fdb37(0xae)]{[_0x1fdb37(0xba)](_0x5283d3){const _0x16dbea=_0x1fdb37;let _0x2819dc=this[_0x16dbea(0xa2)]();if(!_0x2819dc)return null;try{let _0x4828a9=_0x2819dc['createShape'](this[_0x16dbea(0xa7)](),_0x5283d3);return _0x4828a9?this[_0x16dbea(0x95)](_0x4828a9):(console[_0x16dbea(0xc3)](_0x16dbea(0x85)),null);}catch(_0x5d91d3){return console[_0x16dbea(0xc3)](_0x16dbea(0x85),_0x5d91d3),null;}}[_0x1fdb37(0xc6)](_0x109806){const _0x167e7f=_0x1fdb37;let _0xdcaa16=this[_0x167e7f(0xa2)]();if(!_0xdcaa16)return null;try{let _0xfb3f30={...this['_getShapeScope'](),'shapeId':_0x109806},_0x18f065=_0xdcaa16[_0x167e7f(0xc6)](_0xfb3f30);return _0x18f065?this[_0x167e7f(0x95)](_0x18f065):(console[_0x167e7f(0xc3)](_0x167e7f(0xa0)+_0x109806+_0x167e7f(0x8a)),null);}catch(_0x19d709){return console[_0x167e7f(0xc3)](_0x167e7f(0xb6)+_0x109806+'\x22.',_0x19d709),null;}}[_0x1fdb37(0xc7)](){const _0xb15c30=_0x1fdb37;let _0x284479=this[_0xb15c30(0xa2)]();if(!_0x284479)return[];try{return _0x284479[_0xb15c30(0xb7)](this[_0xb15c30(0xa7)]())[_0xb15c30(0xc8)](_0x642d0d=>this[_0xb15c30(0x95)](_0x642d0d));}catch(_0x3e88d4){return console[_0xb15c30(0xc3)](_0xb15c30(0x89),_0x3e88d4),[];}}['_getShapeScope'](){const _0x30edeb=_0x1fdb37;return{'hostType':_0x2397b5[_0x30edeb(0x8c)][_0x30edeb(0xa6)],'unitId':this['getWorkbook']()[_0x30edeb(0xb3)](),'subUnitId':this[_0x30edeb(0xa3)]()};}[_0x1fdb37(0xa2)](){const _0x4b650e=_0x1fdb37;return this['_injector'][_0x4b650e(0xc9)](_0x192301[_0x4b650e(0xc2)])[_0x4b650e(0xc9)](_0x2397b5[_0x4b650e(0x8c)]['UNIVER_SHEET']);}[_0x1fdb37(0x95)](_0xd7acbb){const _0xd9f6f=_0x1fdb37;let {unitId:_0x40d899,subUnitId:_0x43aa82,shapeId:_0x34bbb7}=_0xd7acbb,_0x3ca058={'unitId':_0x40d899,'subUnitId':_0x43aa82,'shapeId':_0x34bbb7,'hostType':_0x2397b5['UniverInstanceType'][_0xd9f6f(0xa6)]};return(0x0,_0x192301[_0xd9f6f(0xbd)])(_0xd7acbb[_0xd9f6f(0xa1)])?this[_0xd9f6f(0xc5)][_0xd9f6f(0xa8)](_0xcfb397[_0xd9f6f(0xc4)],_0x3ca058,this[_0xd9f6f(0xc5)]):this[_0xd9f6f(0xc5)][_0xd9f6f(0xa8)](_0x11b64e,_0x3ca058,this[_0xd9f6f(0xc5)]);}};_0x25dedd[_0x1fdb37(0xae)]['extend'](_0x4902cd),Object['defineProperty'](_0x1ef0e8,'FSheetShape',{'enumerable':!0x0,'get':function(){return _0x11b64e;}});}));
1
+ function _0x25ec(_0xa604a2,_0x398a75){_0xa604a2=_0xa604a2-0xef;const _0xfd09c4=_0xfd09();let _0x25ec4b=_0xfd09c4[_0xa604a2];return _0x25ec4b;}(function(_0x815573,_0x2c45d5){const _0x49b9d9=_0x25ec,_0x416b0f=_0x815573();while(!![]){try{const _0x48ec89=parseInt(_0x49b9d9(0x12b))/0x1+-parseInt(_0x49b9d9(0xfd))/0x2+parseInt(_0x49b9d9(0x10f))/0x3*(-parseInt(_0x49b9d9(0x11f))/0x4)+parseInt(_0x49b9d9(0x105))/0x5+-parseInt(_0x49b9d9(0x102))/0x6+-parseInt(_0x49b9d9(0xf3))/0x7*(-parseInt(_0x49b9d9(0x110))/0x8)+parseInt(_0x49b9d9(0x11e))/0x9;if(_0x48ec89===_0x2c45d5)break;else _0x416b0f['push'](_0x416b0f['shift']());}catch(_0x824771){_0x416b0f['push'](_0x416b0f['shift']());}}}(_0xfd09,0x5fb5f),function(_0x6fa194,_0x2b426b){const _0x228a8c=_0x25ec;typeof exports==_0x228a8c(0xfb)&&typeof module<'u'?_0x2b426b(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/engine-shape/facade'),require('@univerjs/core'),require('@univerjs/sheets/facade'),require('@univerjs/sheets-drawing')):typeof define==_0x228a8c(0x114)&&define['amd']?define([_0x228a8c(0x120),_0x228a8c(0x128),_0x228a8c(0x11b),'@univerjs/core','@univerjs/sheets/facade','@univerjs/sheets-drawing'],_0x2b426b):(_0x6fa194=typeof globalThis<'u'?globalThis:_0x6fa194||self,_0x2b426b(_0x6fa194[_0x228a8c(0x109)]={},_0x6fa194['UniverProEngineShape'],_0x6fa194['UniverProEngineShapeFacade'],_0x6fa194['UniverCore'],_0x6fa194[_0x228a8c(0x104)],_0x6fa194['UniverSheetsDrawing']));}(this,function(_0x35135e,_0x30d987,_0x36ea28,_0x4a4e59,_0x233c7b,_0x10792f){const _0x48d259=_0x25ec;Object['defineProperty'](_0x35135e,Symbol[_0x48d259(0x117)],{'value':'Module'});function _0x3a66ad(_0x341aa6,_0x37294a){return function(_0x523481,_0xec4d52){_0x37294a(_0x523481,_0xec4d52,_0x341aa6);};}function _0x45b87c(_0x2b5109,_0x4e5625,_0x46aa9b,_0x30cbdc){const _0x1ec607=_0x48d259;var _0x290dbc=arguments['length'],_0x23266a=_0x290dbc<0x3?_0x4e5625:_0x30cbdc===null?_0x30cbdc=Object[_0x1ec607(0x111)](_0x4e5625,_0x46aa9b):_0x30cbdc,_0x9e25e7;if(typeof Reflect==_0x1ec607(0xfb)&&typeof Reflect[_0x1ec607(0x11d)]==_0x1ec607(0x114))_0x23266a=Reflect[_0x1ec607(0x11d)](_0x2b5109,_0x4e5625,_0x46aa9b,_0x30cbdc);else{for(var _0x221792=_0x2b5109[_0x1ec607(0x10e)]-0x1;_0x221792>=0x0;_0x221792--)(_0x9e25e7=_0x2b5109[_0x221792])&&(_0x23266a=(_0x290dbc<0x3?_0x9e25e7(_0x23266a):_0x290dbc>0x3?_0x9e25e7(_0x4e5625,_0x46aa9b,_0x23266a):_0x9e25e7(_0x4e5625,_0x46aa9b))||_0x23266a);}return _0x290dbc>0x3&&_0x23266a&&Object[_0x1ec607(0x11a)](_0x4e5625,_0x46aa9b,_0x23266a),_0x23266a;}let _0x13b03f=class extends _0x36ea28[_0x48d259(0x126)]{constructor(_0x195393,_0xda35fd,_0x446f2b,_0xd039ea,_0x44f047){const _0x204918=_0x48d259;super(_0x195393,_0xda35fd,_0x446f2b,_0xd039ea),this[_0x204918(0x103)]=_0x44f047;}[_0x48d259(0x125)](){const _0x2e3f84=_0x48d259;let _0x3582d1=this[_0x2e3f84(0x103)][_0x2e3f84(0xf7)]({'unitId':this['_shapeRef']['unitId'],'subUnitId':this['_shapeRef']['subUnitId'],'drawingId':this[_0x2e3f84(0xfc)][_0x2e3f84(0x122)]});return _0x3582d1?(0x0,_0x10792f['getSheetDrawingPlacement'])(_0x3582d1):null;}['setPlacement'](_0x4aacf0){const _0x398a80=_0x48d259;return this[_0x398a80(0xf5)][_0x398a80(0xf1)](_0x10792f['SetSheetDrawingPlacementCommand']['id'],{'unitId':this['_shapeRef'][_0x398a80(0x12a)],'subUnitId':this[_0x398a80(0xfc)][_0x398a80(0xf2)],'drawings':[{'drawingId':this[_0x398a80(0xfc)]['shapeId'],'placement':_0x4aacf0}]});}[_0x48d259(0x10d)](_0x5d234b,_0x483ea5,_0x16f39c,_0x4232e8){const _0x3e3e05=_0x48d259;var _0x557d0c,_0x18169e;let _0x513ffb=this['_sheetDrawingService'][_0x3e3e05(0xf7)]({'unitId':this[_0x3e3e05(0xfc)][_0x3e3e05(0x12a)],'subUnitId':this['_shapeRef'][_0x3e3e05(0xf2)],'drawingId':this[_0x3e3e05(0xfc)][_0x3e3e05(0x122)]});if(!_0x513ffb)return console['warn'](_0x3e3e05(0x10c)+this[_0x3e3e05(0xfc)][_0x3e3e05(0x122)]+'\x22\x20was\x20not\x20found.'),this;let _0x138578=(_0x557d0c=_0x513ffb[_0x3e3e05(0xfe)])==null?void 0x0:_0x557d0c['width'],_0x1c5e63=(_0x18169e=_0x513ffb['transform'])==null?void 0x0:_0x18169e[_0x3e3e05(0x127)];return _0x138578==null||_0x1c5e63==null?(console[_0x3e3e05(0x112)](_0x3e3e05(0x10c)+this[_0x3e3e05(0xfc)][_0x3e3e05(0x122)]+_0x3e3e05(0x129)),this):(this[_0x3e3e05(0xf5)][_0x3e3e05(0xf1)](_0x10792f[_0x3e3e05(0x119)]['id'],{'unitId':this[_0x3e3e05(0xfc)]['unitId'],'subUnitId':this[_0x3e3e05(0xfc)][_0x3e3e05(0xf2)],'drawings':[{'drawingId':this[_0x3e3e05(0xfc)][_0x3e3e05(0x122)],'placement':{'kind':_0x10792f['SheetDrawingAnchorType'][_0x3e3e05(0x121)],'from':{'row':_0x5d234b,'column':_0x483ea5,'rowOffset':_0x16f39c,'columnOffset':_0x4232e8},'width':_0x138578,'height':_0x1c5e63}}]}),this);}};_0x13b03f=_0x45b87c([_0x3a66ad(0x2,_0x30d987['IShapeHostAdapterRegistry']),_0x3a66ad(0x3,_0x4a4e59[_0x48d259(0x10a)]),_0x3a66ad(0x4,_0x10792f[_0x48d259(0xf0)])],_0x13b03f);var _0x5dfa19=class extends _0x233c7b[_0x48d259(0x113)]{[_0x48d259(0xff)](_0x22eeeb){const _0xa65362=_0x48d259;let _0x1e5d99=this[_0xa65362(0xf6)]();if(!_0x1e5d99)return null;try{let _0x4f2669=_0x1e5d99[_0xa65362(0x11c)](this[_0xa65362(0x118)](),_0x22eeeb);return _0x4f2669?this[_0xa65362(0x106)](_0x4f2669):(console[_0xa65362(0x112)](_0xa65362(0xf8)),null);}catch(_0x4e1028){return console[_0xa65362(0x112)]('[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.',_0x4e1028),null;}}['getShape'](_0x246187){const _0xd021c1=_0x48d259;let _0x359605=this[_0xd021c1(0xf6)]();if(!_0x359605)return null;try{let _0x27884c={...this[_0xd021c1(0x118)](),'shapeId':_0x246187},_0xc01556=_0x359605[_0xd021c1(0x10b)](_0x27884c);return _0xc01556?this[_0xd021c1(0x106)](_0xc01556):(console[_0xd021c1(0x112)]('[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22'+_0x246187+_0xd021c1(0x116)),null);}catch(_0x1d2a9f){return console[_0xd021c1(0x112)]('[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22'+_0x246187+'\x22.',_0x1d2a9f),null;}}['getShapes'](){const _0x432af9=_0x48d259;let _0xf33493=this[_0x432af9(0xf6)]();if(!_0xf33493)return[];try{return _0xf33493[_0x432af9(0x101)](this[_0x432af9(0x118)]())['map'](_0x23e34f=>this[_0x432af9(0x106)](_0x23e34f));}catch(_0x4683fb){return console[_0x432af9(0x112)](_0x432af9(0x123),_0x4683fb),[];}}[_0x48d259(0x118)](){const _0x4d3773=_0x48d259;return{'hostType':_0x4a4e59[_0x4d3773(0x108)][_0x4d3773(0x107)],'unitId':this[_0x4d3773(0x124)]()['getUnitId'](),'subUnitId':this['getSheetId']()};}['_getShapeAdapter'](){const _0x445f20=_0x48d259;return this['_injector'][_0x445f20(0xf9)](_0x30d987[_0x445f20(0x115)])['get'](_0x4a4e59[_0x445f20(0x108)][_0x445f20(0x107)]);}[_0x48d259(0x106)](_0x481eb9){const _0x22039a=_0x48d259;let {unitId:_0x19a59e,subUnitId:_0x2b2060,shapeId:_0x2386dd}=_0x481eb9,_0x534d11={'unitId':_0x19a59e,'subUnitId':_0x2b2060,'shapeId':_0x2386dd,'hostType':_0x4a4e59[_0x22039a(0x108)]['UNIVER_SHEET']};return(0x0,_0x30d987[_0x22039a(0xef)])(_0x481eb9['shapeType'])?this[_0x22039a(0xf4)]['createInstance'](_0x36ea28[_0x22039a(0x100)],_0x534d11,this[_0x22039a(0xf4)]):this[_0x22039a(0xf4)]['createInstance'](_0x13b03f,_0x534d11,this[_0x22039a(0xf4)]);}};_0x233c7b[_0x48d259(0x113)][_0x48d259(0xfa)](_0x5dfa19),Object[_0x48d259(0x11a)](_0x35135e,'FSheetShape',{'enumerable':!0x0,'get':function(){return _0x13b03f;}});}));function _0xfd09(){const _0x588fe0=['function','IShapeHostAdapterRegistry','\x22\x20was\x20not\x20found.','toStringTag','_getShapeScope','SetSheetDrawingPlacementCommand','defineProperty','@univerjs-pro/engine-shape/facade','createShape','decorate','3376170cXFGSx','4GTFEph','exports','Position','shapeId','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20list\x20Shapes.','getWorkbook','getPlacement','FShape','height','@univerjs-pro/engine-shape','\x22\x20has\x20no\x20transform\x20extent.','unitId','573056uXnXld','isConnectorShape','ISheetDrawingService','syncExecuteCommand','subUnitId','7BHzVmo','_injector','_commandService','_getShapeAdapter','getDrawingByParam','[Sheet\x20Shape\x20Facade]:\x20Failed\x20to\x20insert\x20Shape.','get','extend','object','_shapeRef','1451184aanuub','transform','insertShape','FConnectorShape','listShapes','1160418SbCBEJ','_sheetDrawingService','UniverSheetsFacade','3652480BvOPXC','_createShapeHandle','UNIVER_SHEET','UniverInstanceType','UniverProSheetsShapeFacade','ICommandService','getShape','[Sheet\x20Shape\x20Facade]:\x20Shape\x20\x22','setPosition','length','2092647xAvvfU','2639144EgadYu','getOwnPropertyDescriptor','warn','FWorksheet'];_0xfd09=function(){return _0x588fe0;};return _0xfd09();}