@univerjs-pro/sheets-shape 1.0.0-alpha.1 → 1.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2294c8=_0x10e5;(function(_0x4d9f1d,_0x3815bc){const _0x4f039b=_0x10e5,_0x47dd03=_0x4d9f1d();while(!![]){try{const _0x5b786c=parseInt(_0x4f039b(0x20c))/0x1*(parseInt(_0x4f039b(0x1d6))/0x2)+-parseInt(_0x4f039b(0x1dc))/0x3+parseInt(_0x4f039b(0x1fe))/0x4*(parseInt(_0x4f039b(0x1c6))/0x5)+parseInt(_0x4f039b(0x23e))/0x6+-parseInt(_0x4f039b(0x24a))/0x7+parseInt(_0x4f039b(0x1e6))/0x8+parseInt(_0x4f039b(0x201))/0x9;if(_0x5b786c===_0x3815bc)break;else _0x47dd03['push'](_0x47dd03['shift']());}catch(_0x1e04c8){_0x47dd03['push'](_0x47dd03['shift']());}}}(_0x2ff6,0xd870b));import{ConnectorCoordinateTransform as _0x226b98,ShapeArrowSizeEnum as _0x1a009f,ShapeArrowTypeEnum as _0x1b13c3,ShapeFillEnum as _0x17ad7b,ShapeGradientTypeEnum as _0xc86cba,ShapeLineCapEnum as _0x21b06d,ShapeLineDashEnum as _0x51187e,ShapeLineJoinEnum as _0x45dc6f,ShapeLineTypeEnum as _0x2121d7,ShapeTypeEnum as _0x4f25b2,computeConnectorRouteLayout as _0x8012ef,getBasicShapeRotateBound as _0x5350e5,isConnectorShape as _0xe1c987,routeConnectorLineShape as _0x1966ac}from'@univerjs-pro/engine-shape';import{FEnum as _0x468a15}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x11c2a4,DEFAULT_SHAPE_WIDTH as _0xdabd8b,InsertShapeCommand as _0x2b5f84,SetShapeDrawingDataCommand as _0x4bd9a0,SheetsShapeService as _0x5c3722,UpdateConnectorRelationCommand as _0x3ac70a}from'@univerjs-pro/sheets-shape';function _0x2ff6(){const _0x4aa9d5=['executeCommand','getShapeModel','build','stroke','setAbsolutePosition','1875964jeiWQX','constructor','abs','15225786xAednD','setStrokeLineDashType','getWorkbook','ShapeTypeEnum','getConnectionSiteList','SolidFill','drawingType','_resolveEndpoints','setEndArrowSize','ang','defineProperty','7PSNceE','drawId','capType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','worldRect','GradientFill','getDrawingData','Skeleton\x20for\x20unitId\x20','setNoneFill','_commandService','getAdjustValueByName','height','subUnitId','ShapeLineJoinEnum','adjustValues','localToWorld','top','ShapeArrowSizeEnum','type','NoFill','fillType','shapeType','string','prototype','getConnectionSites','cxnIndex','lineJoinType','transform','object','getDrawingByParam','insertShape','rotation','length','_injector','setStrokeColor','ShapeArrowTypeEnum','\x20and\x20subUnitId\x20','symbol','getStartConnectInfo','shapeId','cos','connectShapes','DRAWING_SHAPE','getSheetId','call','function','ShapeLineCapEnum','gradientType','setEndArrowType','2709090pIvfIz','connectionSiteIndex','relation','getDrawingPoints','setStrokeLineType','size','find','getSize','setWidth','fill','isLineShape','getConnectorLinePoints','11366705cvCvsZ','width','15plLmKY','getShapeRelation','ShapeFillEnum','flipX','unitId','ShapeLineTypeEnum','ensureSkeleton','setStartArrowSize','updateShape','getShapeId','stringify','opacity','updateContext','shapeData','getAdjustPoints','getAdjustNames','108326TSsoHM','setStrokeWidth','endArrow','setShapeGradientFill','removeShape','setHeight','4286337SAgFHD','left','ShapeLineDashEnum','_resolveExistingOrFreeEndpoint','default','getShapeData','flipY','get','getShapes','keys','78000tfLxHq','_preloadShapeProperties',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','getEndConnectInfo','\x20not\x20found','gradientAngle','getUnitId','ShapeGradientTypeEnum','setStartArrowType','startArrow','setShapeType','shape','setStrokeOpacity','from','point','gradientStops','getShapeType','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','extend'];_0x2ff6=function(){return _0x4aa9d5;};return _0x2ff6();}import{DrawingTypeEnum as _0x285b45,generateRandomId as _0x4e4bad}from'@univerjs/core';import{IDrawingManagerService as _0x4e860d}from'@univerjs/drawing';import{SheetSkeletonService as _0xe5b182,convertPositionCellToSheetOverGrid as _0x439023}from'@univerjs/sheets';import{ISheetDrawingService as _0xa71416,RemoveSheetDrawingCommand as _0x1b2369}from'@univerjs/sheets-drawing';import{FWorksheet as _0x4f6f37}from'@univerjs/sheets/facade';var k=class extends _0x468a15{get[_0x2294c8(0x204)](){return _0x4f25b2;}get[_0x2294c8(0x1c8)](){return _0x17ad7b;}get[_0x2294c8(0x1ed)](){return _0xc86cba;}get[_0x2294c8(0x1cb)](){return _0x2121d7;}get[_0x2294c8(0x1de)](){return _0x51187e;}get[_0x2294c8(0x23b)](){return _0x21b06d;}get[_0x2294c8(0x21a)](){return _0x45dc6f;}get[_0x2294c8(0x230)](){return _0x1b13c3;}get[_0x2294c8(0x21e)](){return _0x1a009f;}};_0x468a15[_0x2294c8(0x1f8)](k);function A(_0xf329cf){'@babel/helpers - typeof';const _0x27b098=_0x2294c8;return A=typeof Symbol==_0x27b098(0x23a)&&typeof Symbol['iterator']==_0x27b098(0x232)?function(_0x13f09d){return typeof _0x13f09d;}:function(_0x30c5f2){const _0x10ed6f=_0x27b098;return _0x30c5f2&&typeof Symbol==_0x10ed6f(0x23a)&&_0x30c5f2[_0x10ed6f(0x1ff)]===Symbol&&_0x30c5f2!==Symbol[_0x10ed6f(0x224)]?_0x10ed6f(0x232):typeof _0x30c5f2;},A(_0xf329cf);}function j(_0x179464,_0x20af1c){const _0x4f28d2=_0x2294c8;if(A(_0x179464)!=_0x4f28d2(0x229)||!_0x179464)return _0x179464;var _0x3d5b3e=_0x179464[Symbol['toPrimitive']];if(_0x3d5b3e!==void 0x0){var _0x5aa1ec=_0x3d5b3e[_0x4f28d2(0x239)](_0x179464,_0x20af1c||_0x4f28d2(0x1e0));if(A(_0x5aa1ec)!=_0x4f28d2(0x229))return _0x5aa1ec;throw TypeError(_0x4f28d2(0x20f));}return(_0x20af1c===_0x4f28d2(0x223)?String:Number)(_0x179464);}function M(_0x14370d){const _0x5381fe=_0x2294c8;var _0x4df15d=j(_0x14370d,_0x5381fe(0x223));return A(_0x4df15d)=='symbol'?_0x4df15d:_0x4df15d+'';}function N(_0x359362,_0x144c50,_0x430d56){const _0x12cec9=_0x2294c8;return(_0x144c50=M(_0x144c50))in _0x359362?Object[_0x12cec9(0x20b)](_0x359362,_0x144c50,{'value':_0x430d56,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x359362[_0x144c50]=_0x430d56,_0x359362;}var P=class{constructor(_0x5de167,_0x23939b,_0x1f7e1a,_0x986594){const _0xf485ad=_0x2294c8;N(this,_0xf485ad(0x1ca),void 0x0),N(this,_0xf485ad(0x219),void 0x0),N(this,_0xf485ad(0x20d),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0xf485ad(0x1c5),_0xdabd8b),N(this,_0xf485ad(0x218),_0x11c2a4),N(this,_0xf485ad(0x222),void 0x0),N(this,_0xf485ad(0x1d3),{}),N(this,_0xf485ad(0x22e),void 0x0),this[_0xf485ad(0x1ca)]=_0x5de167,this[_0xf485ad(0x219)]=_0x23939b,this[_0xf485ad(0x20d)]=_0x1f7e1a||_0x4e4bad(),this[_0xf485ad(0x22e)]=_0x986594;}['setPosition'](_0x1bcaa6,_0x5bef2a,_0x1c221b,_0x90f467){const _0x3697a8=_0x2294c8;let _0x4dd757=this['_injector'][_0x3697a8(0x1e3)](_0xe5b182)[_0x3697a8(0x1cc)](this[_0x3697a8(0x1ca)],this['subUnitId']);if(!_0x4dd757)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x3697a8(0x1ca)]+'\x20and\x20subUnitId\x20'+this[_0x3697a8(0x219)]+_0x3697a8(0x1ea));let {transform:_0x4eb9cd}=_0x439023(this[_0x3697a8(0x1ca)],this[_0x3697a8(0x219)],{'row':_0x1bcaa6,'column':_0x5bef2a,'rowOffset':_0x1c221b,'columnOffset':_0x90f467},0x1,0x1,_0x4dd757);return this['x']=_0x4eb9cd[_0x3697a8(0x1dd)],this['y']=_0x4eb9cd[_0x3697a8(0x21d)],this;}[_0x2294c8(0x1fd)](_0x50bac6,_0x3914c7){return this['x']=_0x50bac6,this['y']=_0x3914c7,this;}[_0x2294c8(0x1f0)](_0x236164){const _0x30e354=_0x2294c8;return this[_0x30e354(0x222)]=_0x236164,this;}['setShapeData'](_0x5b82f9){const _0x1a3f48=_0x2294c8;return _0x5b82f9['shapeType']&&this[_0x1a3f48(0x1f0)](_0x5b82f9[_0x1a3f48(0x222)]),this['shapeData']={..._0x5b82f9},this;}['setShapeSolidFill'](_0x313fdf,_0x5b570d){const _0x2c93fa=_0x2294c8;return this[_0x2c93fa(0x1d3)][_0x2c93fa(0x247)]||(this[_0x2c93fa(0x1d3)]['fill']={}),this[_0x2c93fa(0x1d3)][_0x2c93fa(0x247)][_0x2c93fa(0x221)]=_0x17ad7b[_0x2c93fa(0x206)],_0x313fdf!==void 0x0&&(this[_0x2c93fa(0x1d3)]['fill']['color']=_0x313fdf),_0x5b570d!==void 0x0&&(this[_0x2c93fa(0x1d3)]['fill'][_0x2c93fa(0x1d1)]=_0x5b570d),this;}[_0x2294c8(0x1d9)](_0x55d2fe,_0x385c53,_0x664497){const _0x361935=_0x2294c8;if(_0x385c53===void 0x0||_0x385c53[_0x361935(0x22d)]===0x0)throw Error('colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.');return this['shapeData'][_0x361935(0x247)]||(this['shapeData'][_0x361935(0x247)]={}),this[_0x361935(0x1d3)][_0x361935(0x247)][_0x361935(0x1f5)]=_0x385c53,this[_0x361935(0x1d3)][_0x361935(0x247)][_0x361935(0x221)]=_0x17ad7b[_0x361935(0x212)],this[_0x361935(0x1d3)][_0x361935(0x247)][_0x361935(0x23c)]=_0x55d2fe,_0x664497!==void 0x0&&(this[_0x361935(0x1d3)][_0x361935(0x247)][_0x361935(0x1eb)]=_0x664497),this;}[_0x2294c8(0x215)](){const _0x1ff339=_0x2294c8;return this[_0x1ff339(0x1d3)][_0x1ff339(0x247)]={'fillType':_0x17ad7b[_0x1ff339(0x220)]},this;}[_0x2294c8(0x22f)](_0x2fa00e){const _0xaffb99=_0x2294c8;return this[_0xaffb99(0x1d3)][_0xaffb99(0x1fc)]||(this[_0xaffb99(0x1d3)]['stroke']={}),this[_0xaffb99(0x1d3)]['stroke']['color']=_0x2fa00e,this;}[_0x2294c8(0x1d7)](_0xbf4748){const _0x125361=_0x2294c8;return this[_0x125361(0x1d3)]['stroke']||(this['shapeData'][_0x125361(0x1fc)]={}),this[_0x125361(0x1d3)][_0x125361(0x1fc)][_0x125361(0x1c5)]=_0xbf4748,this;}[_0x2294c8(0x202)](_0x29ca2a){const _0x41785a=_0x2294c8;return this[_0x41785a(0x1d3)][_0x41785a(0x1fc)]||(this[_0x41785a(0x1d3)][_0x41785a(0x1fc)]={}),this[_0x41785a(0x1d3)][_0x41785a(0x1fc)]['dashType']=_0x29ca2a,this;}['setStrokeLineJoinType'](_0x45b777){const _0x1cc131=_0x2294c8;return this[_0x1cc131(0x1d3)][_0x1cc131(0x1fc)]||(this[_0x1cc131(0x1d3)][_0x1cc131(0x1fc)]={}),this[_0x1cc131(0x1d3)]['stroke'][_0x1cc131(0x227)]=_0x45b777,this;}['setStrokeLineCapType'](_0x33ba9d){const _0x375a73=_0x2294c8;return this[_0x375a73(0x1d3)][_0x375a73(0x1fc)]||(this['shapeData']['stroke']={}),this[_0x375a73(0x1d3)][_0x375a73(0x1fc)][_0x375a73(0x20e)]=_0x33ba9d,this;}[_0x2294c8(0x1f2)](_0x23590f){const _0x3696cf=_0x2294c8;return this[_0x3696cf(0x1d3)][_0x3696cf(0x1fc)]||(this[_0x3696cf(0x1d3)][_0x3696cf(0x1fc)]={}),this['shapeData']['stroke']['opacity']=_0x23590f,this;}[_0x2294c8(0x242)](_0x4874cd){const _0x13eb83=_0x2294c8;return this[_0x13eb83(0x1d3)][_0x13eb83(0x1fc)]||(this['shapeData'][_0x13eb83(0x1fc)]={}),this[_0x13eb83(0x1d3)][_0x13eb83(0x1fc)]['lineStrokeType']=_0x4874cd,this;}[_0x2294c8(0x246)](_0x4ea888){return this['width']=_0x4ea888,this;}[_0x2294c8(0x1db)](_0x12a528){const _0x5f910d=_0x2294c8;return this[_0x5f910d(0x218)]=_0x12a528,this;}[_0x2294c8(0x248)](){const _0x1f090f=_0x2294c8;let _0x4715c3=this['_injector'][_0x1f090f(0x1e3)](_0x5c3722)['getShapeModel'](this[_0x1f090f(0x1ca)],this['subUnitId'],this[_0x1f090f(0x20d)]);return _0x4715c3?_0xe1c987(_0x4715c3[_0x1f090f(0x1f6)]()):this[_0x1f090f(0x222)]?_0xe1c987(this[_0x1f090f(0x222)]):!0x1;}[_0x2294c8(0x225)](){const _0x3260f3=_0x2294c8;let _0x411a55=this[_0x3260f3(0x22e)]['get'](_0x5c3722)['getShapeModel'](this[_0x3260f3(0x1ca)],this[_0x3260f3(0x219)],this['drawId']);if(!_0x411a55)return[];let _0x3d5dfa=this[_0x3260f3(0x22e)]['get'](_0x4e860d)[_0x3260f3(0x22a)]({'unitId':this['unitId'],'subUnitId':this['subUnitId'],'drawingId':this[_0x3260f3(0x20d)]});if(!(_0x3d5dfa!=null&&_0x3d5dfa['transform']))return[];let {width:_0x3e7e55=0x0,height:_0x47b691=0x0}=_0x3d5dfa[_0x3260f3(0x228)];return _0x411a55['updateContext']({'width':_0x3e7e55,'height':_0x47b691}),_0x411a55[_0x3260f3(0x205)]();}[_0x2294c8(0x1d4)](){const _0x514a6d=_0x2294c8;let _0x16fdf4=this[_0x514a6d(0x22e)]['get'](_0x5c3722)[_0x514a6d(0x1fa)](this[_0x514a6d(0x1ca)],this['subUnitId'],this[_0x514a6d(0x20d)]);if(!_0x16fdf4)return[];let _0x1706b3=this[_0x514a6d(0x22e)][_0x514a6d(0x1e3)](_0x4e860d)[_0x514a6d(0x22a)]({'unitId':this['unitId'],'subUnitId':this[_0x514a6d(0x219)],'drawingId':this[_0x514a6d(0x20d)]});if(!(_0x1706b3!=null&&_0x1706b3[_0x514a6d(0x228)]))return[];let {width:_0x41dce9=0x0,height:_0x33e58c=0x0}=_0x1706b3[_0x514a6d(0x228)];return _0x16fdf4['updateContext']({'width':_0x41dce9,'height':_0x33e58c}),_0x16fdf4[_0x514a6d(0x241)]();}[_0x2294c8(0x249)](){const _0x411be5=_0x2294c8;let _0x132594=this[_0x411be5(0x22e)][_0x411be5(0x1e3)](_0x5c3722)[_0x411be5(0x1fa)](this[_0x411be5(0x1ca)],this['subUnitId'],this[_0x411be5(0x20d)]);if(!_0x132594||!_0xe1c987(_0x132594[_0x411be5(0x1f6)]()))return[];let _0x2b025b=this[_0x411be5(0x22e)][_0x411be5(0x1e3)](_0x4e860d)['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this[_0x411be5(0x219)],'drawingId':this[_0x411be5(0x20d)]});if(!(_0x2b025b!=null&&_0x2b025b[_0x411be5(0x228)]))return[];let {width:_0x476173=0x0,height:_0xd1f238=0x0}=_0x2b025b[_0x411be5(0x228)];return _0x132594[_0x411be5(0x1d2)]({'width':_0x476173,'height':_0xd1f238}),_0x132594[_0x411be5(0x249)]();}[_0x2294c8(0x233)](){const _0x486827=_0x2294c8;var _0x438855;let _0x8ed768=this[_0x486827(0x22e)][_0x486827(0x1e3)](_0x5c3722)[_0x486827(0x1fa)](this[_0x486827(0x1ca)],this[_0x486827(0x219)],this[_0x486827(0x20d)]);return _0x8ed768?(_0x438855=_0x8ed768[_0x486827(0x233)]())==null?null:_0x438855:null;}[_0x2294c8(0x1e9)](){const _0x1b2317=_0x2294c8;var _0x1724a0;let _0x48e208=this['_injector'][_0x1b2317(0x1e3)](_0x5c3722)[_0x1b2317(0x1fa)](this[_0x1b2317(0x1ca)],this[_0x1b2317(0x219)],this['drawId']);return _0x48e208?(_0x1724a0=_0x48e208[_0x1b2317(0x1e9)]())==null?null:_0x1724a0:null;}[_0x2294c8(0x1fb)](){const _0x5cc4ee=_0x2294c8;var _0x153fbb,_0x4e7bde;if(!this[_0x5cc4ee(0x222)])throw Error(_0x5cc4ee(0x1f7));if(this['x']===0x0||this['y']===0x0){let _0x5aaea5=this['_injector'][_0x5cc4ee(0x1e3)](_0xe5b182)['ensureSkeleton'](this['unitId'],this['subUnitId']);if(!_0x5aaea5)throw Error(_0x5cc4ee(0x214)+this[_0x5cc4ee(0x1ca)]+_0x5cc4ee(0x231)+this['subUnitId']+'\x20not\x20found');let {transform:_0x3312e3}=_0x439023(this[_0x5cc4ee(0x1ca)],this[_0x5cc4ee(0x219)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x5aaea5);this['x']=this['x']>0x0?this['x']:_0x3312e3[_0x5cc4ee(0x1dd)],this['y']=this['y']>0x0?this['y']:_0x3312e3[_0x5cc4ee(0x21d)];}return this['width']=(_0x153fbb=this[_0x5cc4ee(0x1c5)])==null?_0xdabd8b:_0x153fbb,this['height']=(_0x4e7bde=this[_0x5cc4ee(0x218)])==null?_0x11c2a4:_0x4e7bde,{'unitId':this[_0x5cc4ee(0x1ca)],'subUnitId':this[_0x5cc4ee(0x219)],'shapeId':this[_0x5cc4ee(0x20d)],'shapeType':this[_0x5cc4ee(0x222)],'shapeData':Object[_0x5cc4ee(0x1e5)](this[_0x5cc4ee(0x1d3)])[_0x5cc4ee(0x22d)]>0x0?this['shapeData']:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x5cc4ee(0x218)]};}[_0x2294c8(0x1cf)](){const _0x299801=_0x2294c8;return this[_0x299801(0x20d)];}[_0x2294c8(0x1f6)](){const _0x2bbab4=_0x2294c8;return this[_0x2bbab4(0x222)];}[_0x2294c8(0x1e1)](){const _0x3e91c9=_0x2294c8;return this[_0x3e91c9(0x1d3)];}['getPosition'](){return{'x':this['x'],'y':this['y']};}[_0x2294c8(0x245)](){const _0x18b848=_0x2294c8;return{'width':this['width'],'height':this[_0x18b848(0x218)]};}},F=class extends P{constructor(_0x3ceb21,_0x42f34b,_0x53d6a9,_0x54f813){const _0x37e36c=_0x2294c8;super(_0x3ceb21,_0x42f34b,_0x53d6a9,_0x54f813),N(this,_0x37e36c(0x1d3),{});}[_0x2294c8(0x1f0)](_0x13a1a3){const _0x2c6723=_0x2294c8;if(!_0xe1c987(_0x13a1a3))throw Error(_0x2c6723(0x210)+_0x13a1a3+_0x2c6723(0x1e8));return super['setShapeType'](_0x13a1a3),this;}[_0x2294c8(0x1ee)](_0x599217){const _0x1d3eea=_0x2294c8;var _0x2609be,_0x39a67e;return(_0x2609be=this[_0x1d3eea(0x1d3)])!=null&&_0x2609be['ln']||(this['shapeData']['ln']={}),!((_0x39a67e=this[_0x1d3eea(0x1d3)])==null||(_0x39a67e=_0x39a67e['ln'])==null)&&_0x39a67e['startArrow']||(this[_0x1d3eea(0x1d3)]['ln'][_0x1d3eea(0x1ef)]={}),this[_0x1d3eea(0x1d3)]['ln'][_0x1d3eea(0x1ef)][_0x1d3eea(0x21f)]=_0x599217,this;}[_0x2294c8(0x23d)](_0x3dd134){const _0x5aa569=_0x2294c8;var _0xfa308,_0x351dd6;return(_0xfa308=this[_0x5aa569(0x1d3)])!=null&&_0xfa308['ln']||(this[_0x5aa569(0x1d3)]['ln']={}),!((_0x351dd6=this[_0x5aa569(0x1d3)])==null||(_0x351dd6=_0x351dd6['ln'])==null)&&_0x351dd6[_0x5aa569(0x1d8)]||(this[_0x5aa569(0x1d3)]['ln'][_0x5aa569(0x1d8)]={}),this['shapeData']['ln']['endArrow'][_0x5aa569(0x21f)]=_0x3dd134,this;}[_0x2294c8(0x1cd)](_0x31eab9){const _0xf4d18e=_0x2294c8;var _0x40bd11,_0x134d29;return(_0x40bd11=this[_0xf4d18e(0x1d3)])!=null&&_0x40bd11['ln']||(this[_0xf4d18e(0x1d3)]['ln']={}),!((_0x134d29=this['shapeData'])==null||(_0x134d29=_0x134d29['ln'])==null)&&_0x134d29[_0xf4d18e(0x1ef)]||(this[_0xf4d18e(0x1d3)]['ln']['startArrow']={}),this[_0xf4d18e(0x1d3)]['ln']['startArrow'][_0xf4d18e(0x243)]=_0x31eab9,this;}[_0x2294c8(0x209)](_0x5179ba){const _0x3a6800=_0x2294c8;var _0x4f9409,_0x250ee5;return(_0x4f9409=this[_0x3a6800(0x1d3)])!=null&&_0x4f9409['ln']||(this[_0x3a6800(0x1d3)]['ln']={}),!((_0x250ee5=this[_0x3a6800(0x1d3)])==null||(_0x250ee5=_0x250ee5['ln'])==null)&&_0x250ee5[_0x3a6800(0x1d8)]||(this[_0x3a6800(0x1d3)]['ln']['endArrow']={}),this['shapeData']['ln'][_0x3a6800(0x1d8)][_0x3a6800(0x243)]=_0x5179ba,this;}[_0x2294c8(0x1fb)](){return super['build']();}[_0x2294c8(0x1e9)](){const _0x271a70=_0x2294c8;var _0x3b5a6e;return((_0x3b5a6e=this[_0x271a70(0x1d3)])==null||(_0x3b5a6e=_0x3b5a6e[_0x271a70(0x240)])==null?void 0x0:_0x3b5a6e['to'])||null;}[_0x2294c8(0x233)](){const _0x7f272e=_0x2294c8;var _0x19b794;return((_0x19b794=this['shapeData'])==null||(_0x19b794=_0x19b794[_0x7f272e(0x240)])==null?void 0x0:_0x19b794[_0x7f272e(0x1f3)])||null;}};function I(_0x20336c,_0x1dfd7b,_0x14df5a,_0x36efcb,_0x4a590e,_0x25c7a7){const _0x331a96=_0x2294c8;let _0x45800d=_0x4a590e[_0x331a96(0x1fa)](_0x20336c,_0x1dfd7b,_0x14df5a);if(!_0x45800d)return null;let _0x3d7c50=_0x25c7a7['getDrawingByParam']({'unitId':_0x20336c,'subUnitId':_0x1dfd7b,'drawingId':_0x14df5a});if(!(_0x3d7c50!=null&&_0x3d7c50[_0x331a96(0x228)]))return null;let {left:_0x310935=0x0,top:_0x519fae=0x0,width:_0x201003=0x0,height:_0x525de1=0x0,flipX:_0x2ed3e6=!0x1,flipY:_0x2b6667=!0x1,angle:_0x134923}=_0x3d7c50[_0x331a96(0x228)];_0x45800d[_0x331a96(0x1d2)]({'width':_0x201003,'height':_0x525de1});let _0x1ac5ed=_0x45800d[_0x331a96(0x205)]()[_0x331a96(0x244)](_0x58cc8e=>_0x58cc8e['index']===_0x36efcb);if(!_0x1ac5ed)return null;let _0x15ec78=_0x2ed3e6?_0x201003-_0x1ac5ed['x']:_0x1ac5ed['x'],_0x438821=_0x2b6667?_0x525de1-_0x1ac5ed['y']:_0x1ac5ed['y'];if(_0x134923&&_0x134923!==0x0){let _0x3f203a=_0x134923*Math['PI']/0xb4,_0x283e8d=Math[_0x331a96(0x235)](_0x3f203a),_0x2d1844=Math['sin'](_0x3f203a),_0x3820d9=_0x201003/0x2,_0x3f63bf=_0x525de1/0x2,_0x36e6f8=_0x15ec78-_0x3820d9,_0xbb0eb9=_0x438821-_0x3f63bf;_0x15ec78=_0x3820d9+_0x36e6f8*_0x283e8d-_0xbb0eb9*_0x2d1844,_0x438821=_0x3f63bf+_0x36e6f8*_0x2d1844+_0xbb0eb9*_0x283e8d;}_0x15ec78+=_0x310935,_0x438821+=_0x519fae;let _0x527b10=_0x1ac5ed[_0x331a96(0x20a)]/0xea60;_0x2ed3e6&&(_0x527b10=0xb4-_0x527b10),_0x2b6667&&(_0x527b10=-_0x527b10),_0x527b10+=_0x134923||0x0,_0x527b10=(_0x527b10%0x168+0x168)%0x168;let _0x1104a8=_0x5350e5({'left':_0x310935,'top':_0x519fae,'width':_0x201003,'height':_0x525de1},_0x134923||0x0);return{'point':{'x':_0x15ec78,'y':_0x438821},'angle':_0x527b10,'bounds':_0x1104a8};}function L(_0x457973,_0x467354){const _0x2b083d=_0x2294c8;let _0x4c5881=_0x467354['x']-_0x457973['x'],_0x268f7e=_0x467354['y']-_0x457973['y'];return Math[_0x2b083d(0x200)](_0x4c5881)>=Math['abs'](_0x268f7e)?_0x4c5881>=0x0?0xb4:0x0:_0x268f7e>=0x0?0x10e:0x5a;}function R(_0x42ebd4,_0x41045c,_0x346f0d,_0x42f598,_0x49e4fa,_0x5868c6,_0x69a39d){const _0xb7570f=_0x2294c8;let _0x1de5ea=_0x5868c6[_0xb7570f(0x1fa)](_0x42ebd4,_0x41045c,_0x346f0d);if(!_0x1de5ea)return null;let _0xf9636d=_0x69a39d['getDrawingByParam']({'unitId':_0x42ebd4,'subUnitId':_0x41045c,'drawingId':_0x346f0d});if(!(_0xf9636d!=null&&_0xf9636d[_0xb7570f(0x228)]))return null;let {left:_0x1d932a=0x0,top:_0x654a09=0x0,width:_0x17721b=0x0,height:_0x5db118=0x0,flipX:_0x374390=!0x1,flipY:_0x529e77=!0x1}=_0xf9636d['transform'];_0x1de5ea['updateContext']({'width':_0x17721b,'height':_0x5db118});let _0xdfeaa6=_0x1de5ea[_0xb7570f(0x249)]();if(_0xdfeaa6['length']<0x2)return null;let _0x311ead=_0x42f598?_0xdfeaa6[0x0]:_0xdfeaa6[_0xdfeaa6['length']-0x1],_0x5efb79=new _0x226b98({'left':_0x1d932a,'top':_0x654a09,'width':_0x17721b,'height':_0x5db118,'flipX':_0x374390,'flipY':_0x529e77})[_0xb7570f(0x21c)](_0x311ead);return{'point':_0x5efb79,'angle':L(_0x49e4fa[_0xb7570f(0x1f4)],_0x5efb79),'bounds':{'left':_0x5efb79['x'],'top':_0x5efb79['y'],'width':0x0,'height':0x0}};}function _0x10e5(_0x2a12c3,_0x79ac5a){_0x2a12c3=_0x2a12c3-0x1c5;const _0x2ff63f=_0x2ff6();let _0x10e548=_0x2ff63f[_0x2a12c3];return _0x10e548;}var z=class extends _0x4f6f37{async[_0x2294c8(0x22b)](_0x518ede){const _0x2687ee=_0x2294c8;let {unitId:_0x13c442,subUnitId:_0x590a86,shapeId:_0x499271,shapeType:_0x459c80,shapeData:_0x2e719a,x:_0x317d35,y:_0x4583c4,width:_0x2650aa,height:_0x5b6add}=_0x518ede;return this[_0x2687ee(0x216)][_0x2687ee(0x1f9)](_0x2b5f84['id'],{'unitId':_0x13c442,'subUnitId':_0x590a86,'shapeId':_0x499271,'shapeType':_0x459c80,'shapeData':_0x2e719a,'position':{'x':_0x317d35,'y':_0x4583c4},'width':_0x2650aa,'height':_0x5b6add});}async[_0x2294c8(0x1ce)](_0x534acf){const _0x3e9c87=_0x2294c8;let {unitId:_0x3cd1c5,subUnitId:_0x42e559,shapeId:_0x33282e,shapeType:_0x57fd12,shapeData:_0x12c1db,x:_0x3b4908,y:_0xf60132,width:_0x1887e3,height:_0x203ae6}=_0x534acf;return this[_0x3e9c87(0x216)][_0x3e9c87(0x1f9)](_0x4bd9a0['id'],{'unitId':_0x3cd1c5,'subUnitId':_0x42e559,'shapeId':_0x33282e,'shapeType':_0x57fd12,'shapeData':_0x12c1db,'position':{'x':_0x3b4908,'y':_0xf60132},'width':_0x1887e3,'height':_0x203ae6});}['newShape'](_0x339dd0){const _0x5de9c2=_0x2294c8;let _0x1489bb=this[_0x5de9c2(0x203)]()[_0x5de9c2(0x1ec)](),_0x472bb4=this[_0x5de9c2(0x238)]();if(_0x339dd0){let _0x4e3568=new P(_0x1489bb,_0x472bb4,_0x339dd0[_0x5de9c2(0x20d)],this['_injector']);return this[_0x5de9c2(0x1e7)](_0x4e3568,_0x1489bb,_0x472bb4,_0x339dd0[_0x5de9c2(0x20d)]),_0x4e3568;}return new P(_0x1489bb,_0x472bb4,_0x4e4bad(),this['_injector']);}['newConnector'](_0x43fc0d){const _0x47823c=_0x2294c8;let _0x3f05c9=this[_0x47823c(0x203)]()[_0x47823c(0x1ec)](),_0x4f1ee3=this['getSheetId']();if(_0x43fc0d){let _0x220291=new F(_0x3f05c9,_0x4f1ee3,_0x43fc0d['drawId'],this[_0x47823c(0x22e)]);return this['_preloadShapeProperties'](_0x220291,_0x3f05c9,_0x4f1ee3,_0x43fc0d[_0x47823c(0x20d)]),_0x220291;}return new F(_0x3f05c9,_0x4f1ee3,_0x4e4bad(),this[_0x47823c(0x22e)]);}[_0x2294c8(0x1e4)](){const _0x7390e2=_0x2294c8;let _0x120489=this[_0x7390e2(0x22e)][_0x7390e2(0x1e3)](_0xa71416),_0x3d597f=this[_0x7390e2(0x203)]()['getUnitId'](),_0x2a2e0f=this[_0x7390e2(0x238)](),_0x509c9f=_0x120489[_0x7390e2(0x213)](_0x3d597f,_0x2a2e0f);if(!_0x509c9f)return[];let _0xc15c52=[];for(let [_0x253011,_0x1d4231]of Object['entries'](_0x509c9f))if(_0x1d4231&&_0x1d4231[_0x7390e2(0x207)]===_0x285b45[_0x7390e2(0x237)]){let _0x57cf5c=new P(_0x3d597f,_0x2a2e0f,_0x253011,this[_0x7390e2(0x22e)]);this[_0x7390e2(0x1e7)](_0x57cf5c,_0x3d597f,_0x2a2e0f,_0x253011),_0xc15c52['push'](_0x57cf5c);}return _0xc15c52;}[_0x2294c8(0x1da)](_0x5dcdfe){const _0x2c691b=_0x2294c8;let {unitId:_0x3bb5ec,subUnitId:_0xbcc1d0,drawId:_0x1004d8}=_0x5dcdfe;return this[_0x2c691b(0x216)][_0x2c691b(0x1f9)](_0x1b2369['id'],{'unitId':_0x3bb5ec,'drawings':[{'unitId':_0x3bb5ec,'subUnitId':_0xbcc1d0,'drawingId':_0x1004d8,'drawingType':_0x285b45[_0x2c691b(0x237)]}]});}async[_0x2294c8(0x236)](_0x10c630){const _0x4e2616=_0x2294c8;let {connector:_0x90d6cd,startTarget:_0x410607,endTarget:_0x49f4f8}=_0x10c630;if(!_0x410607&&!_0x49f4f8)return!0x1;let _0x4fe5f4=this['getWorkbook']()[_0x4e2616(0x1ec)](),_0x1d5dca=this[_0x4e2616(0x238)](),_0x5b30a5=this[_0x4e2616(0x22e)][_0x4e2616(0x1e3)](_0x5c3722),_0x42ea4c=this[_0x4e2616(0x22e)]['get'](_0x4e860d),_0x3f9b57=_0x5b30a5[_0x4e2616(0x1fa)](_0x4fe5f4,_0x1d5dca,_0x90d6cd[_0x4e2616(0x20d)]);if(!_0x3f9b57)return!0x1;let _0x1e639e=_0x3f9b57['getShapeType'](),_0x3fbcad=_0x3f9b57[_0x4e2616(0x1c7)](),_0x32b2f6={};for(let _0x14f71e of _0x3f9b57[_0x4e2616(0x1d5)]()){let _0x23047e=_0x3f9b57[_0x4e2616(0x217)](_0x14f71e);_0x23047e!==void 0x0&&(_0x32b2f6[_0x14f71e]=_0x23047e);}let {startInfo:_0x3ca704,endInfo:_0x33e99c}=this[_0x4e2616(0x208)](_0x4fe5f4,_0x1d5dca,_0x90d6cd,_0x3f9b57,_0x410607,_0x49f4f8,_0x5b30a5,_0x42ea4c,_0x3fbcad);if(!_0x3ca704||!_0x33e99c)return!0x1;let _0xe9ee61=_0x8012ef(_0x1966ac(_0x3ca704,_0x33e99c,_0x1e639e),_0x1e639e),_0x3834d4={};return _0x410607?_0x3834d4[_0x4e2616(0x1f3)]={'shapeId':_0x410607['shape'][_0x4e2616(0x20d)],'cxnIndex':_0x410607['connectionSiteIndex']}:_0x3fbcad!=null&&_0x3fbcad['from']&&(_0x3834d4[_0x4e2616(0x1f3)]=_0x3fbcad[_0x4e2616(0x1f3)]),_0x49f4f8?_0x3834d4['to']={'shapeId':_0x49f4f8[_0x4e2616(0x1f1)]['drawId'],'cxnIndex':_0x49f4f8['connectionSiteIndex']}:_0x3fbcad!=null&&_0x3fbcad['to']&&(_0x3834d4['to']=_0x3fbcad['to']),this[_0x4e2616(0x216)][_0x4e2616(0x1f9)](_0x3ac70a['id'],{'unitId':_0x4fe5f4,'subUnitId':_0x1d5dca,'connectorShapeId':_0x90d6cd[_0x4e2616(0x20d)],'width':_0xe9ee61[_0x4e2616(0x211)]['width'],'height':_0xe9ee61[_0x4e2616(0x211)][_0x4e2616(0x218)],'left':_0xe9ee61[_0x4e2616(0x211)][_0x4e2616(0x1dd)],'top':_0xe9ee61[_0x4e2616(0x211)][_0x4e2616(0x21d)],'flipX':_0xe9ee61['worldRect'][_0x4e2616(0x1c9)]||!0x1,'flipY':_0xe9ee61[_0x4e2616(0x211)][_0x4e2616(0x1e2)]||!0x1,'oldAdjustValues':_0x32b2f6,'newAdjustValues':_0xe9ee61[_0x4e2616(0x21b)],'newLineType':_0xe9ee61['lineType'],'oldLineType':_0x1e639e,'rotation':_0xe9ee61[_0x4e2616(0x22c)],'oldRelation':_0x3fbcad,'newRelation':_0x3834d4});}[_0x2294c8(0x1e7)](_0x143ada,_0x5976d4,_0xffcd87,_0x5be5dd){const _0x3d4c33=_0x2294c8;let _0x2e2d92=this[_0x3d4c33(0x22e)]['get'](_0x4e860d)[_0x3d4c33(0x22a)]({'unitId':_0x5976d4,'subUnitId':_0xffcd87,'drawingId':_0x5be5dd});if(_0x2e2d92!=null&&_0x2e2d92[_0x3d4c33(0x228)]){var _0x1ccff4,_0x5bd70f,_0x19c628,_0x50ccaf;_0x143ada['x']=(_0x1ccff4=_0x2e2d92[_0x3d4c33(0x228)][_0x3d4c33(0x1dd)])==null?0x0:_0x1ccff4,_0x143ada['y']=(_0x5bd70f=_0x2e2d92[_0x3d4c33(0x228)]['top'])==null?0x0:_0x5bd70f,_0x143ada[_0x3d4c33(0x1c5)]=(_0x19c628=_0x2e2d92[_0x3d4c33(0x228)][_0x3d4c33(0x1c5)])==null?_0x143ada[_0x3d4c33(0x1c5)]:_0x19c628,_0x143ada[_0x3d4c33(0x218)]=(_0x50ccaf=_0x2e2d92[_0x3d4c33(0x228)][_0x3d4c33(0x218)])==null?_0x143ada[_0x3d4c33(0x218)]:_0x50ccaf;}let _0x112727=this[_0x3d4c33(0x22e)][_0x3d4c33(0x1e3)](_0x5c3722)[_0x3d4c33(0x1fa)](_0x5976d4,_0xffcd87,_0x5be5dd);if(_0x112727){_0x143ada[_0x3d4c33(0x222)]=_0x112727[_0x3d4c33(0x1f6)]();let _0x3bd835=_0x112727[_0x3d4c33(0x1e1)]();_0x3bd835&&(_0x143ada[_0x3d4c33(0x1d3)]=JSON['parse'](JSON[_0x3d4c33(0x1d0)](_0x3bd835)));}}[_0x2294c8(0x208)](_0x1dacb4,_0x59248c,_0x17164b,_0x70a6a,_0x5708c8,_0x21c049,_0x1ce575,_0x3fb1bd,_0x2e2563){const _0x1493bd=_0x2294c8;let _0x15ffa2=null,_0x57025e=null;return _0x5708c8&&(_0x15ffa2=I(_0x1dacb4,_0x59248c,_0x5708c8[_0x1493bd(0x1f1)][_0x1493bd(0x20d)],_0x5708c8[_0x1493bd(0x23f)],_0x1ce575,_0x3fb1bd)),_0x21c049&&(_0x57025e=I(_0x1dacb4,_0x59248c,_0x21c049[_0x1493bd(0x1f1)]['drawId'],_0x21c049[_0x1493bd(0x23f)],_0x1ce575,_0x3fb1bd)),_0x15ffa2||(_0x15ffa2=this[_0x1493bd(0x1df)](_0x1dacb4,_0x59248c,_0x17164b['drawId'],!0x0,_0x57025e,_0x2e2563==null?void 0x0:_0x2e2563[_0x1493bd(0x1f3)],_0x1ce575,_0x3fb1bd)),_0x57025e||(_0x57025e=this[_0x1493bd(0x1df)](_0x1dacb4,_0x59248c,_0x17164b[_0x1493bd(0x20d)],!0x1,_0x15ffa2,_0x2e2563==null?void 0x0:_0x2e2563['to'],_0x1ce575,_0x3fb1bd)),{'startInfo':_0x15ffa2,'endInfo':_0x57025e};}['_resolveExistingOrFreeEndpoint'](_0xc5558a,_0x98c206,_0x511892,_0x368ace,_0x3c06ec,_0x5d0a85,_0x67d839,_0x39c03d){const _0x59461b=_0x2294c8;if(_0x5d0a85){let _0x5d38ef=I(_0xc5558a,_0x98c206,_0x5d0a85[_0x59461b(0x234)],_0x5d0a85[_0x59461b(0x226)],_0x67d839,_0x39c03d);if(_0x5d38ef)return _0x5d38ef;}return _0x3c06ec?R(_0xc5558a,_0x98c206,_0x511892,_0x368ace,_0x3c06ec,_0x67d839,_0x39c03d):null;}};_0x4f6f37[_0x2294c8(0x1f8)](z);export{F as FConnectorShape,P as FShape};
|
|
1
|
+
const _0x2065d0=_0xc882;(function(_0x4e4862,_0x4b4ecf){const _0xed047a=_0xc882,_0x1b06fa=_0x4e4862();while(!![]){try{const _0x2cf074=parseInt(_0xed047a(0x120))/0x1*(-parseInt(_0xed047a(0xd5))/0x2)+parseInt(_0xed047a(0x104))/0x3*(parseInt(_0xed047a(0x133))/0x4)+parseInt(_0xed047a(0x145))/0x5*(-parseInt(_0xed047a(0x14f))/0x6)+-parseInt(_0xed047a(0x147))/0x7+-parseInt(_0xed047a(0x100))/0x8+-parseInt(_0xed047a(0xf4))/0x9*(parseInt(_0xed047a(0xf5))/0xa)+parseInt(_0xed047a(0x13a))/0xb*(parseInt(_0xed047a(0x156))/0xc);if(_0x2cf074===_0x4b4ecf)break;else _0x1b06fa['push'](_0x1b06fa['shift']());}catch(_0x542e0d){_0x1b06fa['push'](_0x1b06fa['shift']());}}}(_0x2d32,0xf1bc9));import{ConnectorCoordinateTransform as _0x3b375f,ShapeArrowSizeEnum as _0x2697f2,ShapeArrowTypeEnum as _0x3667a8,ShapeFillEnum as _0x1b6987,ShapeGradientTypeEnum as _0x232bc2,ShapeLineCapEnum as _0x469542,ShapeLineDashEnum as _0x46a87e,ShapeLineJoinEnum as _0x2a526c,ShapeLineTypeEnum as _0x4c85fd,ShapeTypeEnum as _0x34ce3c,computeConnectorRouteLayout as _0x83727e,getBasicShapeRotateBound as _0x564fe0,isConnectorShape as _0x3e4501,routeConnectorLineShape as _0x284ac3}from'@univerjs-pro/engine-shape';import{FEnum as _0x16a57f}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x2678b4,DEFAULT_SHAPE_WIDTH as _0x16c70b,InsertShapeCommand as _0x46d0ed,SetShapeDrawingDataCommand as _0xc951e2,SheetsShapeService as _0x5ea320,UpdateConnectorRelationCommand as _0x2cfebf}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x5677bd,generateRandomId as _0x524228}from'@univerjs/core';import{IDrawingManagerService as _0x278e9f}from'@univerjs/drawing';import{SheetSkeletonService as _0x412dcf,convertPositionCellToSheetOverGrid as _0x364d94}from'@univerjs/sheets';import{ISheetDrawingService as _0x4a1927,RemoveSheetDrawingCommand as _0x54116}from'@univerjs/sheets-drawing';import{FWorksheet as _0x302bd6}from'@univerjs/sheets/facade';var k=class extends _0x16a57f{get[_0x2065d0(0xec)](){return _0x34ce3c;}get['ShapeFillEnum'](){return _0x1b6987;}get[_0x2065d0(0x13b)](){return _0x232bc2;}get[_0x2065d0(0x14a)](){return _0x4c85fd;}get[_0x2065d0(0xee)](){return _0x46a87e;}get[_0x2065d0(0xfa)](){return _0x469542;}get['ShapeLineJoinEnum'](){return _0x2a526c;}get['ShapeArrowTypeEnum'](){return _0x3667a8;}get[_0x2065d0(0x115)](){return _0x2697f2;}};_0x16a57f[_0x2065d0(0x13c)](k);function A(_0x4121cb){'@babel/helpers - typeof';const _0x22e148=_0x2065d0;return A=typeof Symbol=='function'&&typeof Symbol[_0x22e148(0x14e)]==_0x22e148(0x126)?function(_0x461a90){return typeof _0x461a90;}:function(_0x5efcec){const _0x2fecc4=_0x22e148;return _0x5efcec&&typeof Symbol=='function'&&_0x5efcec[_0x2fecc4(0x150)]===Symbol&&_0x5efcec!==Symbol['prototype']?_0x2fecc4(0x126):typeof _0x5efcec;},A(_0x4121cb);}function j(_0xf7cf92,_0x4dda91){const _0x4a5219=_0x2065d0;if(A(_0xf7cf92)!='object'||!_0xf7cf92)return _0xf7cf92;var _0x589f0a=_0xf7cf92[Symbol[_0x4a5219(0x14c)]];if(_0x589f0a!==void 0x0){var _0x169b30=_0x589f0a[_0x4a5219(0x14d)](_0xf7cf92,_0x4dda91||_0x4a5219(0xe0));if(A(_0x169b30)!=_0x4a5219(0xd2))return _0x169b30;throw TypeError(_0x4a5219(0xf6));}return(_0x4dda91===_0x4a5219(0xe3)?String:Number)(_0xf7cf92);}function M(_0x5ca77c){const _0x223c1f=_0x2065d0;var _0x30833e=j(_0x5ca77c,_0x223c1f(0xe3));return A(_0x30833e)=='symbol'?_0x30833e:_0x30833e+'';}function N(_0x484646,_0x58e441,_0x414fd0){const _0x34cd67=_0x2065d0;return(_0x58e441=M(_0x58e441))in _0x484646?Object[_0x34cd67(0x102)](_0x484646,_0x58e441,{'value':_0x414fd0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x484646[_0x58e441]=_0x414fd0,_0x484646;}function _0x2d32(){const _0x2905ed=['subUnitId','3042iNeOyw','38870rgAnsi','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','fillType','connectShapes','updateShape','ShapeLineCapEnum','shapeType','getShapeType','from','_resolveEndpoints','build','6327160FWyZgC','SolidFill','defineProperty','drawingType','4724373rgZrTk','getSize','parse','gradientStops','_preloadShapeProperties','updateContext','_commandService','ensureSkeleton','type','transform','stringify','width','cos','setStrokeLineType','DRAWING_SHAPE','newShape','getWorkbook','ShapeArrowSizeEnum','capType','getShapeId','point','setEndArrowType','push','setStartArrowType','lineType','getEndConnectInfo','getPosition','fill','207rIMdxY','flipY','setShapeSolidFill','relation','setStrokeLineCapType','GradientFill','symbol','connectionSiteIndex','unitId','getAdjustValueByName','flipX','size','shapeId','setStrokeOpacity','setShapeType','getSheetId','getShapeData','entries','setStrokeWidth','4LgljxL','getConnectionSiteList','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','setShapeGradientFill',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','getConnectorLinePoints','getAdjustNames','59085114OWioWU','ShapeGradientTypeEnum','extend','setStrokeLineDashType','worldRect','isLineShape','endArrow','getShapes','adjustValues','setPosition','getDrawingPoints','185065wyJWBL','opacity','9255414UIlcGT','drawId','shape','ShapeLineTypeEnum','keys','toPrimitive','call','iterator','282qjaWYg','constructor','height','executeCommand','color','setNoneFill','getStartConnectInfo','12AhoLqg','setShapeData','NoFill','object','stroke','getDrawingByParam','7628bxVozg','length','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','getDrawingData','find','Skeleton\x20for\x20unitId\x20','insertShape','setStrokeLineJoinType','left','setHeight','shapeData','default','startArrow','\x20not\x20found','string','getUnitId','getShapeModel','sin','setAbsolutePosition','rotation','\x20and\x20subUnitId\x20','_resolveExistingOrFreeEndpoint','_injector','ShapeTypeEnum','get','ShapeLineDashEnum','abs','getShapeRelation','top','index'];_0x2d32=function(){return _0x2905ed;};return _0x2d32();}var P=class{constructor(_0x1be4e6,_0x1fb6f3,_0x2f646a,_0x478602){const _0x5a6bd7=_0x2065d0;N(this,'unitId',void 0x0),N(this,'subUnitId',void 0x0),N(this,_0x5a6bd7(0x148),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x5a6bd7(0x10f),_0x16c70b),N(this,_0x5a6bd7(0x151),_0x2678b4),N(this,'shapeType',void 0x0),N(this,_0x5a6bd7(0xdf),{}),N(this,_0x5a6bd7(0xeb),void 0x0),this[_0x5a6bd7(0x128)]=_0x1be4e6,this[_0x5a6bd7(0xf3)]=_0x1fb6f3,this[_0x5a6bd7(0x148)]=_0x2f646a||_0x524228(),this[_0x5a6bd7(0xeb)]=_0x478602;}[_0x2065d0(0x143)](_0xda45b5,_0x49a4d2,_0x109668,_0x11e57b){const _0x21a2d5=_0x2065d0;let _0x525f63=this[_0x21a2d5(0xeb)]['get'](_0x412dcf)[_0x21a2d5(0x10b)](this[_0x21a2d5(0x128)],this[_0x21a2d5(0xf3)]);if(!_0x525f63)throw Error(_0x21a2d5(0xda)+this[_0x21a2d5(0x128)]+'\x20and\x20subUnitId\x20'+this['subUnitId']+_0x21a2d5(0xe2));let {transform:_0x5bac7a}=_0x364d94(this[_0x21a2d5(0x128)],this['subUnitId'],{'row':_0xda45b5,'column':_0x49a4d2,'rowOffset':_0x109668,'columnOffset':_0x11e57b},0x1,0x1,_0x525f63);return this['x']=_0x5bac7a[_0x21a2d5(0xdd)],this['y']=_0x5bac7a[_0x21a2d5(0xf1)],this;}[_0x2065d0(0xe7)](_0x5e5cfe,_0x398cdd){return this['x']=_0x5e5cfe,this['y']=_0x398cdd,this;}['setShapeType'](_0x217740){const _0x338ecc=_0x2065d0;return this[_0x338ecc(0xfb)]=_0x217740,this;}[_0x2065d0(0xd0)](_0x475963){const _0x35f9ed=_0x2065d0;return _0x475963['shapeType']&&this[_0x35f9ed(0x12e)](_0x475963[_0x35f9ed(0xfb)]),this[_0x35f9ed(0xdf)]={..._0x475963},this;}[_0x2065d0(0x122)](_0x4149ce,_0x4aa373){const _0x4064a7=_0x2065d0;return this[_0x4064a7(0xdf)]['fill']||(this[_0x4064a7(0xdf)][_0x4064a7(0x11f)]={}),this[_0x4064a7(0xdf)][_0x4064a7(0x11f)][_0x4064a7(0xf7)]=_0x1b6987[_0x4064a7(0x101)],_0x4149ce!==void 0x0&&(this[_0x4064a7(0xdf)][_0x4064a7(0x11f)][_0x4064a7(0x153)]=_0x4149ce),_0x4aa373!==void 0x0&&(this[_0x4064a7(0xdf)]['fill']['opacity']=_0x4aa373),this;}[_0x2065d0(0x136)](_0x333bfd,_0x47c3b6,_0x11a4e4){const _0x5ed25b=_0x2065d0;if(_0x47c3b6===void 0x0||_0x47c3b6[_0x5ed25b(0xd6)]===0x0)throw Error(_0x5ed25b(0xd7));return this[_0x5ed25b(0xdf)][_0x5ed25b(0x11f)]||(this[_0x5ed25b(0xdf)]['fill']={}),this[_0x5ed25b(0xdf)][_0x5ed25b(0x11f)][_0x5ed25b(0x107)]=_0x47c3b6,this[_0x5ed25b(0xdf)][_0x5ed25b(0x11f)][_0x5ed25b(0xf7)]=_0x1b6987[_0x5ed25b(0x125)],this[_0x5ed25b(0xdf)][_0x5ed25b(0x11f)]['gradientType']=_0x333bfd,_0x11a4e4!==void 0x0&&(this['shapeData'][_0x5ed25b(0x11f)]['gradientAngle']=_0x11a4e4),this;}[_0x2065d0(0x154)](){const _0x2b66be=_0x2065d0;return this['shapeData']['fill']={'fillType':_0x1b6987[_0x2b66be(0xd1)]},this;}['setStrokeColor'](_0x218c9a){const _0x470cac=_0x2065d0;return this[_0x470cac(0xdf)]['stroke']||(this['shapeData'][_0x470cac(0xd3)]={}),this[_0x470cac(0xdf)]['stroke']['color']=_0x218c9a,this;}[_0x2065d0(0x132)](_0x483c4c){const _0x4b85f4=_0x2065d0;return this[_0x4b85f4(0xdf)]['stroke']||(this[_0x4b85f4(0xdf)][_0x4b85f4(0xd3)]={}),this['shapeData']['stroke'][_0x4b85f4(0x10f)]=_0x483c4c,this;}[_0x2065d0(0x13d)](_0x1fb5d7){const _0x5ea717=_0x2065d0;return this[_0x5ea717(0xdf)][_0x5ea717(0xd3)]||(this[_0x5ea717(0xdf)][_0x5ea717(0xd3)]={}),this['shapeData'][_0x5ea717(0xd3)]['dashType']=_0x1fb5d7,this;}[_0x2065d0(0xdc)](_0x3877b7){const _0x19af81=_0x2065d0;return this[_0x19af81(0xdf)][_0x19af81(0xd3)]||(this['shapeData']['stroke']={}),this[_0x19af81(0xdf)][_0x19af81(0xd3)]['lineJoinType']=_0x3877b7,this;}[_0x2065d0(0x124)](_0x14c864){const _0x46a04e=_0x2065d0;return this[_0x46a04e(0xdf)][_0x46a04e(0xd3)]||(this[_0x46a04e(0xdf)][_0x46a04e(0xd3)]={}),this[_0x46a04e(0xdf)][_0x46a04e(0xd3)][_0x46a04e(0x116)]=_0x14c864,this;}[_0x2065d0(0x12d)](_0x2f646d){const _0x3b2eb8=_0x2065d0;return this[_0x3b2eb8(0xdf)]['stroke']||(this['shapeData']['stroke']={}),this['shapeData'][_0x3b2eb8(0xd3)][_0x3b2eb8(0x146)]=_0x2f646d,this;}[_0x2065d0(0x111)](_0x180670){const _0x14662e=_0x2065d0;return this[_0x14662e(0xdf)]['stroke']||(this['shapeData'][_0x14662e(0xd3)]={}),this['shapeData'][_0x14662e(0xd3)]['lineStrokeType']=_0x180670,this;}['setWidth'](_0x7d9086){const _0x251e93=_0x2065d0;return this[_0x251e93(0x10f)]=_0x7d9086,this;}[_0x2065d0(0xde)](_0x18b29f){return this['height']=_0x18b29f,this;}[_0x2065d0(0x13f)](){const _0x59bb34=_0x2065d0;let _0x1c7a07=this[_0x59bb34(0xeb)]['get'](_0x5ea320)[_0x59bb34(0xe5)](this['unitId'],this['subUnitId'],this[_0x59bb34(0x148)]);return _0x1c7a07?_0x3e4501(_0x1c7a07[_0x59bb34(0xfc)]()):this[_0x59bb34(0xfb)]?_0x3e4501(this[_0x59bb34(0xfb)]):!0x1;}['getConnectionSites'](){const _0x5de0a3=_0x2065d0;let _0x55e1d1=this[_0x5de0a3(0xeb)]['get'](_0x5ea320)[_0x5de0a3(0xe5)](this[_0x5de0a3(0x128)],this[_0x5de0a3(0xf3)],this[_0x5de0a3(0x148)]);if(!_0x55e1d1)return[];let _0x4bcda1=this['_injector'][_0x5de0a3(0xed)](_0x278e9f)['getDrawingByParam']({'unitId':this[_0x5de0a3(0x128)],'subUnitId':this[_0x5de0a3(0xf3)],'drawingId':this['drawId']});if(!(_0x4bcda1!=null&&_0x4bcda1[_0x5de0a3(0x10d)]))return[];let {width:_0xfcb3cf=0x0,height:_0x2c2c80=0x0}=_0x4bcda1[_0x5de0a3(0x10d)];return _0x55e1d1[_0x5de0a3(0x109)]({'width':_0xfcb3cf,'height':_0x2c2c80}),_0x55e1d1[_0x5de0a3(0x134)]();}['getAdjustPoints'](){const _0x5aa4fc=_0x2065d0;let _0x247b37=this[_0x5aa4fc(0xeb)][_0x5aa4fc(0xed)](_0x5ea320)[_0x5aa4fc(0xe5)](this[_0x5aa4fc(0x128)],this['subUnitId'],this[_0x5aa4fc(0x148)]);if(!_0x247b37)return[];let _0x6c53e1=this[_0x5aa4fc(0xeb)][_0x5aa4fc(0xed)](_0x278e9f)['getDrawingByParam']({'unitId':this[_0x5aa4fc(0x128)],'subUnitId':this[_0x5aa4fc(0xf3)],'drawingId':this[_0x5aa4fc(0x148)]});if(!(_0x6c53e1!=null&&_0x6c53e1[_0x5aa4fc(0x10d)]))return[];let {width:_0x152b57=0x0,height:_0x232c39=0x0}=_0x6c53e1[_0x5aa4fc(0x10d)];return _0x247b37[_0x5aa4fc(0x109)]({'width':_0x152b57,'height':_0x232c39}),_0x247b37[_0x5aa4fc(0x144)]();}[_0x2065d0(0x138)](){const _0x56db33=_0x2065d0;let _0x282f50=this[_0x56db33(0xeb)][_0x56db33(0xed)](_0x5ea320)['getShapeModel'](this[_0x56db33(0x128)],this[_0x56db33(0xf3)],this[_0x56db33(0x148)]);if(!_0x282f50||!_0x3e4501(_0x282f50[_0x56db33(0xfc)]()))return[];let _0x42e9b3=this['_injector'][_0x56db33(0xed)](_0x278e9f)[_0x56db33(0xd4)]({'unitId':this['unitId'],'subUnitId':this[_0x56db33(0xf3)],'drawingId':this['drawId']});if(!(_0x42e9b3!=null&&_0x42e9b3[_0x56db33(0x10d)]))return[];let {width:_0x1927a9=0x0,height:_0x3e6e12=0x0}=_0x42e9b3[_0x56db33(0x10d)];return _0x282f50[_0x56db33(0x109)]({'width':_0x1927a9,'height':_0x3e6e12}),_0x282f50[_0x56db33(0x138)]();}[_0x2065d0(0x155)](){const _0x58812e=_0x2065d0;var _0x46ef07;let _0x2e5f5b=this[_0x58812e(0xeb)][_0x58812e(0xed)](_0x5ea320)[_0x58812e(0xe5)](this[_0x58812e(0x128)],this[_0x58812e(0xf3)],this[_0x58812e(0x148)]);return _0x2e5f5b?(_0x46ef07=_0x2e5f5b[_0x58812e(0x155)]())==null?null:_0x46ef07:null;}['getEndConnectInfo'](){const _0x3d6dea=_0x2065d0;var _0x1cb3f6;let _0x249991=this[_0x3d6dea(0xeb)][_0x3d6dea(0xed)](_0x5ea320)[_0x3d6dea(0xe5)](this[_0x3d6dea(0x128)],this[_0x3d6dea(0xf3)],this[_0x3d6dea(0x148)]);return _0x249991?(_0x1cb3f6=_0x249991[_0x3d6dea(0x11d)]())==null?null:_0x1cb3f6:null;}[_0x2065d0(0xff)](){const _0x5a9c43=_0x2065d0;var _0x28bda8,_0x33b72d;if(!this[_0x5a9c43(0xfb)])throw Error('Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().');if(this['x']===0x0||this['y']===0x0){let _0x369182=this['_injector'][_0x5a9c43(0xed)](_0x412dcf)['ensureSkeleton'](this[_0x5a9c43(0x128)],this[_0x5a9c43(0xf3)]);if(!_0x369182)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x5a9c43(0x128)]+_0x5a9c43(0xe9)+this[_0x5a9c43(0xf3)]+'\x20not\x20found');let {transform:_0x181cff}=_0x364d94(this[_0x5a9c43(0x128)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x369182);this['x']=this['x']>0x0?this['x']:_0x181cff[_0x5a9c43(0xdd)],this['y']=this['y']>0x0?this['y']:_0x181cff[_0x5a9c43(0xf1)];}return this[_0x5a9c43(0x10f)]=(_0x28bda8=this['width'])==null?_0x16c70b:_0x28bda8,this[_0x5a9c43(0x151)]=(_0x33b72d=this['height'])==null?_0x2678b4:_0x33b72d,{'unitId':this['unitId'],'subUnitId':this['subUnitId'],'shapeId':this['drawId'],'shapeType':this[_0x5a9c43(0xfb)],'shapeData':Object[_0x5a9c43(0x14b)](this[_0x5a9c43(0xdf)])[_0x5a9c43(0xd6)]>0x0?this[_0x5a9c43(0xdf)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x5a9c43(0x10f)],'height':this['height']};}[_0x2065d0(0x117)](){const _0x1d8f53=_0x2065d0;return this[_0x1d8f53(0x148)];}[_0x2065d0(0xfc)](){const _0x47f002=_0x2065d0;return this[_0x47f002(0xfb)];}[_0x2065d0(0x130)](){return this['shapeData'];}[_0x2065d0(0x11e)](){return{'x':this['x'],'y':this['y']};}[_0x2065d0(0x105)](){const _0x36c599=_0x2065d0;return{'width':this[_0x36c599(0x10f)],'height':this[_0x36c599(0x151)]};}},F=class extends P{constructor(_0x1ee451,_0x26cf9d,_0x2b6418,_0x4b97cd){const _0x506371=_0x2065d0;super(_0x1ee451,_0x26cf9d,_0x2b6418,_0x4b97cd),N(this,_0x506371(0xdf),{});}[_0x2065d0(0x12e)](_0x43a606){const _0x37622f=_0x2065d0;if(!_0x3e4501(_0x43a606))throw Error(_0x37622f(0x135)+_0x43a606+_0x37622f(0x137));return super['setShapeType'](_0x43a606),this;}[_0x2065d0(0x11b)](_0xf976f2){const _0x35eee2=_0x2065d0;var _0x16df1b,_0x17c7a5;return(_0x16df1b=this[_0x35eee2(0xdf)])!=null&&_0x16df1b['ln']||(this[_0x35eee2(0xdf)]['ln']={}),!((_0x17c7a5=this[_0x35eee2(0xdf)])==null||(_0x17c7a5=_0x17c7a5['ln'])==null)&&_0x17c7a5['startArrow']||(this['shapeData']['ln'][_0x35eee2(0xe1)]={}),this[_0x35eee2(0xdf)]['ln']['startArrow'][_0x35eee2(0x10c)]=_0xf976f2,this;}[_0x2065d0(0x119)](_0xcfb6d5){const _0x165ef4=_0x2065d0;var _0x542e29,_0xb5d122;return(_0x542e29=this[_0x165ef4(0xdf)])!=null&&_0x542e29['ln']||(this['shapeData']['ln']={}),!((_0xb5d122=this['shapeData'])==null||(_0xb5d122=_0xb5d122['ln'])==null)&&_0xb5d122[_0x165ef4(0x140)]||(this[_0x165ef4(0xdf)]['ln'][_0x165ef4(0x140)]={}),this[_0x165ef4(0xdf)]['ln'][_0x165ef4(0x140)][_0x165ef4(0x10c)]=_0xcfb6d5,this;}['setStartArrowSize'](_0x40babb){const _0x2a1ecd=_0x2065d0;var _0x4ccceb,_0x2b9cab;return(_0x4ccceb=this[_0x2a1ecd(0xdf)])!=null&&_0x4ccceb['ln']||(this['shapeData']['ln']={}),!((_0x2b9cab=this[_0x2a1ecd(0xdf)])==null||(_0x2b9cab=_0x2b9cab['ln'])==null)&&_0x2b9cab[_0x2a1ecd(0xe1)]||(this[_0x2a1ecd(0xdf)]['ln'][_0x2a1ecd(0xe1)]={}),this['shapeData']['ln']['startArrow'][_0x2a1ecd(0x12b)]=_0x40babb,this;}['setEndArrowSize'](_0x207f54){const _0x472fdd=_0x2065d0;var _0x48a9e1,_0x15b1be;return(_0x48a9e1=this[_0x472fdd(0xdf)])!=null&&_0x48a9e1['ln']||(this[_0x472fdd(0xdf)]['ln']={}),!((_0x15b1be=this[_0x472fdd(0xdf)])==null||(_0x15b1be=_0x15b1be['ln'])==null)&&_0x15b1be[_0x472fdd(0x140)]||(this[_0x472fdd(0xdf)]['ln'][_0x472fdd(0x140)]={}),this[_0x472fdd(0xdf)]['ln']['endArrow'][_0x472fdd(0x12b)]=_0x207f54,this;}['build'](){const _0x5b1fb9=_0x2065d0;return super[_0x5b1fb9(0xff)]();}[_0x2065d0(0x11d)](){const _0x4e34d4=_0x2065d0;var _0x161dbf;return((_0x161dbf=this[_0x4e34d4(0xdf)])==null||(_0x161dbf=_0x161dbf[_0x4e34d4(0x123)])==null?void 0x0:_0x161dbf['to'])||null;}[_0x2065d0(0x155)](){const _0x1bdfb1=_0x2065d0;var _0x5283a6;return((_0x5283a6=this['shapeData'])==null||(_0x5283a6=_0x5283a6[_0x1bdfb1(0x123)])==null?void 0x0:_0x5283a6[_0x1bdfb1(0xfd)])||null;}};function I(_0x2964f9,_0xb47f66,_0x36e184,_0x2ddd10,_0x1de650,_0x119555){const _0x3246fe=_0x2065d0;let _0x35842f=_0x1de650[_0x3246fe(0xe5)](_0x2964f9,_0xb47f66,_0x36e184);if(!_0x35842f)return null;let _0x5b4ec8=_0x119555[_0x3246fe(0xd4)]({'unitId':_0x2964f9,'subUnitId':_0xb47f66,'drawingId':_0x36e184});if(!(_0x5b4ec8!=null&&_0x5b4ec8['transform']))return null;let {left:_0x558f00=0x0,top:_0x310032=0x0,width:_0xf0be38=0x0,height:_0x36d523=0x0,flipX:_0x2e73ac=!0x1,flipY:_0x19a374=!0x1,angle:_0x4bbfc8}=_0x5b4ec8['transform'];_0x35842f[_0x3246fe(0x109)]({'width':_0xf0be38,'height':_0x36d523});let _0x29799d=_0x35842f[_0x3246fe(0x134)]()[_0x3246fe(0xd9)](_0xf38c4e=>_0xf38c4e[_0x3246fe(0xf2)]===_0x2ddd10);if(!_0x29799d)return null;let _0x1f2363=_0x2e73ac?_0xf0be38-_0x29799d['x']:_0x29799d['x'],_0x27b639=_0x19a374?_0x36d523-_0x29799d['y']:_0x29799d['y'];if(_0x4bbfc8&&_0x4bbfc8!==0x0){let _0x3bdb75=_0x4bbfc8*Math['PI']/0xb4,_0x19d091=Math[_0x3246fe(0x110)](_0x3bdb75),_0x5e3528=Math[_0x3246fe(0xe6)](_0x3bdb75),_0x22af2a=_0xf0be38/0x2,_0x41824a=_0x36d523/0x2,_0x1736e6=_0x1f2363-_0x22af2a,_0x1ccc48=_0x27b639-_0x41824a;_0x1f2363=_0x22af2a+_0x1736e6*_0x19d091-_0x1ccc48*_0x5e3528,_0x27b639=_0x41824a+_0x1736e6*_0x5e3528+_0x1ccc48*_0x19d091;}_0x1f2363+=_0x558f00,_0x27b639+=_0x310032;let _0x19ff4b=_0x29799d['ang']/0xea60;_0x2e73ac&&(_0x19ff4b=0xb4-_0x19ff4b),_0x19a374&&(_0x19ff4b=-_0x19ff4b),_0x19ff4b+=_0x4bbfc8||0x0,_0x19ff4b=(_0x19ff4b%0x168+0x168)%0x168;let _0x58d57f=_0x564fe0({'left':_0x558f00,'top':_0x310032,'width':_0xf0be38,'height':_0x36d523},_0x4bbfc8||0x0);return{'point':{'x':_0x1f2363,'y':_0x27b639},'angle':_0x19ff4b,'bounds':_0x58d57f};}function L(_0x36fe82,_0x3c8133){const _0x1a18f3=_0x2065d0;let _0x4e3989=_0x3c8133['x']-_0x36fe82['x'],_0x5e06df=_0x3c8133['y']-_0x36fe82['y'];return Math[_0x1a18f3(0xef)](_0x4e3989)>=Math['abs'](_0x5e06df)?_0x4e3989>=0x0?0xb4:0x0:_0x5e06df>=0x0?0x10e:0x5a;}function R(_0x65c98,_0x15aa04,_0x5d6554,_0x4276e2,_0x2b1d64,_0x15df4a,_0x214463){const _0x1324c8=_0x2065d0;let _0x5beb4a=_0x15df4a[_0x1324c8(0xe5)](_0x65c98,_0x15aa04,_0x5d6554);if(!_0x5beb4a)return null;let _0x3af72d=_0x214463['getDrawingByParam']({'unitId':_0x65c98,'subUnitId':_0x15aa04,'drawingId':_0x5d6554});if(!(_0x3af72d!=null&&_0x3af72d[_0x1324c8(0x10d)]))return null;let {left:_0x396155=0x0,top:_0x1c701b=0x0,width:_0x2dcd3f=0x0,height:_0x342ea1=0x0,flipX:_0x5f11e0=!0x1,flipY:_0x48c956=!0x1}=_0x3af72d[_0x1324c8(0x10d)];_0x5beb4a['updateContext']({'width':_0x2dcd3f,'height':_0x342ea1});let _0x54019b=_0x5beb4a[_0x1324c8(0x138)]();if(_0x54019b['length']<0x2)return null;let _0x8191d3=_0x4276e2?_0x54019b[0x0]:_0x54019b[_0x54019b[_0x1324c8(0xd6)]-0x1],_0x21065c=new _0x3b375f({'left':_0x396155,'top':_0x1c701b,'width':_0x2dcd3f,'height':_0x342ea1,'flipX':_0x5f11e0,'flipY':_0x48c956})['localToWorld'](_0x8191d3);return{'point':_0x21065c,'angle':L(_0x2b1d64[_0x1324c8(0x118)],_0x21065c),'bounds':{'left':_0x21065c['x'],'top':_0x21065c['y'],'width':0x0,'height':0x0}};}var z=class extends _0x302bd6{async[_0x2065d0(0xdb)](_0x6bf9f0){const _0xa7f704=_0x2065d0;let {unitId:_0x2fe75f,subUnitId:_0x29e96c,shapeId:_0x17f684,shapeType:_0x1f462e,shapeData:_0x37341a,x:_0x42ab31,y:_0x25f0bc,width:_0x51b0cc,height:_0x186d63}=_0x6bf9f0;return this[_0xa7f704(0x10a)][_0xa7f704(0x152)](_0x46d0ed['id'],{'unitId':_0x2fe75f,'subUnitId':_0x29e96c,'shapeId':_0x17f684,'shapeType':_0x1f462e,'shapeData':_0x37341a,'position':{'x':_0x42ab31,'y':_0x25f0bc},'width':_0x51b0cc,'height':_0x186d63});}async[_0x2065d0(0xf9)](_0x1ceda1){const _0x4a5ae8=_0x2065d0;let {unitId:_0x19c436,subUnitId:_0x5666ce,shapeId:_0x2e97c6,shapeType:_0x1ac02a,shapeData:_0x3d9256,x:_0x54b966,y:_0x3b2bc4,width:_0x212724,height:_0xfd3e09}=_0x1ceda1;return this[_0x4a5ae8(0x10a)]['executeCommand'](_0xc951e2['id'],{'unitId':_0x19c436,'subUnitId':_0x5666ce,'shapeId':_0x2e97c6,'shapeType':_0x1ac02a,'shapeData':_0x3d9256,'position':{'x':_0x54b966,'y':_0x3b2bc4},'width':_0x212724,'height':_0xfd3e09});}[_0x2065d0(0x113)](_0x3719e1){const _0x5df979=_0x2065d0;let _0x1ab21b=this[_0x5df979(0x114)]()[_0x5df979(0xe4)](),_0x5cc524=this[_0x5df979(0x12f)]();if(_0x3719e1){let _0x8dbe06=new P(_0x1ab21b,_0x5cc524,_0x3719e1['drawId'],this['_injector']);return this['_preloadShapeProperties'](_0x8dbe06,_0x1ab21b,_0x5cc524,_0x3719e1[_0x5df979(0x148)]),_0x8dbe06;}return new P(_0x1ab21b,_0x5cc524,_0x524228(),this[_0x5df979(0xeb)]);}['newConnector'](_0x4c83d4){const _0x2b7dcd=_0x2065d0;let _0xa0436f=this[_0x2b7dcd(0x114)]()[_0x2b7dcd(0xe4)](),_0x12f2ad=this[_0x2b7dcd(0x12f)]();if(_0x4c83d4){let _0x5ca2f7=new F(_0xa0436f,_0x12f2ad,_0x4c83d4[_0x2b7dcd(0x148)],this[_0x2b7dcd(0xeb)]);return this[_0x2b7dcd(0x108)](_0x5ca2f7,_0xa0436f,_0x12f2ad,_0x4c83d4[_0x2b7dcd(0x148)]),_0x5ca2f7;}return new F(_0xa0436f,_0x12f2ad,_0x524228(),this[_0x2b7dcd(0xeb)]);}[_0x2065d0(0x141)](){const _0x3407a2=_0x2065d0;let _0x3fc75b=this[_0x3407a2(0xeb)][_0x3407a2(0xed)](_0x4a1927),_0x4af0eb=this['getWorkbook']()[_0x3407a2(0xe4)](),_0x3ba06e=this['getSheetId'](),_0x50dbc1=_0x3fc75b[_0x3407a2(0xd8)](_0x4af0eb,_0x3ba06e);if(!_0x50dbc1)return[];let _0x531d9d=[];for(let [_0x416b60,_0x29e724]of Object[_0x3407a2(0x131)](_0x50dbc1))if(_0x29e724&&_0x29e724[_0x3407a2(0x103)]===_0x5677bd[_0x3407a2(0x112)]){let _0x5d95ae=new P(_0x4af0eb,_0x3ba06e,_0x416b60,this[_0x3407a2(0xeb)]);this[_0x3407a2(0x108)](_0x5d95ae,_0x4af0eb,_0x3ba06e,_0x416b60),_0x531d9d[_0x3407a2(0x11a)](_0x5d95ae);}return _0x531d9d;}['removeShape'](_0x55087a){const _0x43e6e1=_0x2065d0;let {unitId:_0x1ae37b,subUnitId:_0x3e5154,drawId:_0x4939aa}=_0x55087a;return this['_commandService'][_0x43e6e1(0x152)](_0x54116['id'],{'unitId':_0x1ae37b,'drawings':[{'unitId':_0x1ae37b,'subUnitId':_0x3e5154,'drawingId':_0x4939aa,'drawingType':_0x5677bd[_0x43e6e1(0x112)]}]});}async[_0x2065d0(0xf8)](_0x5509bf){const _0x5c0484=_0x2065d0;let {connector:_0x179649,startTarget:_0x3fd0d8,endTarget:_0x2a3f99}=_0x5509bf;if(!_0x3fd0d8&&!_0x2a3f99)return!0x1;let _0x32fa01=this[_0x5c0484(0x114)]()[_0x5c0484(0xe4)](),_0x10c5c0=this['getSheetId'](),_0x32f5ac=this[_0x5c0484(0xeb)]['get'](_0x5ea320),_0xa5cd66=this[_0x5c0484(0xeb)][_0x5c0484(0xed)](_0x278e9f),_0x4114d0=_0x32f5ac[_0x5c0484(0xe5)](_0x32fa01,_0x10c5c0,_0x179649[_0x5c0484(0x148)]);if(!_0x4114d0)return!0x1;let _0x594e30=_0x4114d0['getShapeType'](),_0x587212=_0x4114d0[_0x5c0484(0xf0)](),_0x2fae29={};for(let _0x426085 of _0x4114d0[_0x5c0484(0x139)]()){let _0x44e505=_0x4114d0[_0x5c0484(0x129)](_0x426085);_0x44e505!==void 0x0&&(_0x2fae29[_0x426085]=_0x44e505);}let {startInfo:_0x3ead14,endInfo:_0x31367d}=this[_0x5c0484(0xfe)](_0x32fa01,_0x10c5c0,_0x179649,_0x4114d0,_0x3fd0d8,_0x2a3f99,_0x32f5ac,_0xa5cd66,_0x587212);if(!_0x3ead14||!_0x31367d)return!0x1;let _0x3dcf7d=_0x83727e(_0x284ac3(_0x3ead14,_0x31367d,_0x594e30),_0x594e30),_0x46e803={};return _0x3fd0d8?_0x46e803['from']={'shapeId':_0x3fd0d8[_0x5c0484(0x149)]['drawId'],'cxnIndex':_0x3fd0d8[_0x5c0484(0x127)]}:_0x587212!=null&&_0x587212['from']&&(_0x46e803[_0x5c0484(0xfd)]=_0x587212[_0x5c0484(0xfd)]),_0x2a3f99?_0x46e803['to']={'shapeId':_0x2a3f99[_0x5c0484(0x149)][_0x5c0484(0x148)],'cxnIndex':_0x2a3f99[_0x5c0484(0x127)]}:_0x587212!=null&&_0x587212['to']&&(_0x46e803['to']=_0x587212['to']),this[_0x5c0484(0x10a)]['executeCommand'](_0x2cfebf['id'],{'unitId':_0x32fa01,'subUnitId':_0x10c5c0,'connectorShapeId':_0x179649[_0x5c0484(0x148)],'width':_0x3dcf7d[_0x5c0484(0x13e)]['width'],'height':_0x3dcf7d['worldRect'][_0x5c0484(0x151)],'left':_0x3dcf7d[_0x5c0484(0x13e)]['left'],'top':_0x3dcf7d[_0x5c0484(0x13e)][_0x5c0484(0xf1)],'flipX':_0x3dcf7d[_0x5c0484(0x13e)][_0x5c0484(0x12a)]||!0x1,'flipY':_0x3dcf7d[_0x5c0484(0x13e)][_0x5c0484(0x121)]||!0x1,'oldAdjustValues':_0x2fae29,'newAdjustValues':_0x3dcf7d[_0x5c0484(0x142)],'newLineType':_0x3dcf7d[_0x5c0484(0x11c)],'oldLineType':_0x594e30,'rotation':_0x3dcf7d[_0x5c0484(0xe8)],'oldRelation':_0x587212,'newRelation':_0x46e803});}[_0x2065d0(0x108)](_0x3be2db,_0x52bb9f,_0x47ef56,_0x3ef3b0){const _0x461f1d=_0x2065d0;let _0xa618d0=this[_0x461f1d(0xeb)]['get'](_0x278e9f)['getDrawingByParam']({'unitId':_0x52bb9f,'subUnitId':_0x47ef56,'drawingId':_0x3ef3b0});if(_0xa618d0!=null&&_0xa618d0['transform']){var _0x8ac435,_0x526249,_0xd66f87,_0x11757a;_0x3be2db['x']=(_0x8ac435=_0xa618d0['transform'][_0x461f1d(0xdd)])==null?0x0:_0x8ac435,_0x3be2db['y']=(_0x526249=_0xa618d0[_0x461f1d(0x10d)][_0x461f1d(0xf1)])==null?0x0:_0x526249,_0x3be2db[_0x461f1d(0x10f)]=(_0xd66f87=_0xa618d0[_0x461f1d(0x10d)][_0x461f1d(0x10f)])==null?_0x3be2db[_0x461f1d(0x10f)]:_0xd66f87,_0x3be2db[_0x461f1d(0x151)]=(_0x11757a=_0xa618d0['transform']['height'])==null?_0x3be2db[_0x461f1d(0x151)]:_0x11757a;}let _0xbdeafb=this[_0x461f1d(0xeb)][_0x461f1d(0xed)](_0x5ea320)[_0x461f1d(0xe5)](_0x52bb9f,_0x47ef56,_0x3ef3b0);if(_0xbdeafb){_0x3be2db[_0x461f1d(0xfb)]=_0xbdeafb[_0x461f1d(0xfc)]();let _0x28924f=_0xbdeafb[_0x461f1d(0x130)]();_0x28924f&&(_0x3be2db[_0x461f1d(0xdf)]=JSON[_0x461f1d(0x106)](JSON[_0x461f1d(0x10e)](_0x28924f)));}}[_0x2065d0(0xfe)](_0x1e1cf8,_0xded6f6,_0x15c85b,_0x14c0ba,_0xb5c460,_0x39a024,_0x3bc6c3,_0x54e7d9,_0x3f06c5){const _0x3f8312=_0x2065d0;let _0xf88db1=null,_0x568ecb=null;return _0xb5c460&&(_0xf88db1=I(_0x1e1cf8,_0xded6f6,_0xb5c460[_0x3f8312(0x149)]['drawId'],_0xb5c460['connectionSiteIndex'],_0x3bc6c3,_0x54e7d9)),_0x39a024&&(_0x568ecb=I(_0x1e1cf8,_0xded6f6,_0x39a024[_0x3f8312(0x149)]['drawId'],_0x39a024[_0x3f8312(0x127)],_0x3bc6c3,_0x54e7d9)),_0xf88db1||(_0xf88db1=this[_0x3f8312(0xea)](_0x1e1cf8,_0xded6f6,_0x15c85b[_0x3f8312(0x148)],!0x0,_0x568ecb,_0x3f06c5==null?void 0x0:_0x3f06c5[_0x3f8312(0xfd)],_0x3bc6c3,_0x54e7d9)),_0x568ecb||(_0x568ecb=this[_0x3f8312(0xea)](_0x1e1cf8,_0xded6f6,_0x15c85b[_0x3f8312(0x148)],!0x1,_0xf88db1,_0x3f06c5==null?void 0x0:_0x3f06c5['to'],_0x3bc6c3,_0x54e7d9)),{'startInfo':_0xf88db1,'endInfo':_0x568ecb};}[_0x2065d0(0xea)](_0x2dc679,_0x5d8af5,_0x5c81b2,_0x2b2999,_0x497305,_0x362710,_0x1c0e33,_0x172927){const _0x3135c4=_0x2065d0;if(_0x362710){let _0x3b507a=I(_0x2dc679,_0x5d8af5,_0x362710[_0x3135c4(0x12c)],_0x362710['cxnIndex'],_0x1c0e33,_0x172927);if(_0x3b507a)return _0x3b507a;}return _0x497305?R(_0x2dc679,_0x5d8af5,_0x5c81b2,_0x2b2999,_0x497305,_0x1c0e33,_0x172927):null;}};_0x302bd6[_0x2065d0(0x13c)](z);function _0xc882(_0x4e7be1,_0x41ee16){_0x4e7be1=_0x4e7be1-0xd0;const _0x2d3242=_0x2d32();let _0xc88242=_0x2d3242[_0x4e7be1];return _0xc88242;}export{F as FConnectorShape,P as FShape};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1b2777=_0x55ca;(function(_0x274e08,_0x1363c2){const _0x4d9193=_0x55ca,_0x25b4dd=_0x274e08();while(!![]){try{const _0x1eec06=parseInt(_0x4d9193(0x103))/0x1*(-parseInt(_0x4d9193(0x123))/0x2)+-parseInt(_0x4d9193(0xb9))/0x3*(parseInt(_0x4d9193(0xf8))/0x4)+-parseInt(_0x4d9193(0x100))/0x5+parseInt(_0x4d9193(0xc0))/0x6*(parseInt(_0x4d9193(0x9b))/0x7)+-parseInt(_0x4d9193(0x12a))/0x8+-parseInt(_0x4d9193(0xf7))/0x9*(-parseInt(_0x4d9193(0x110))/0xa)+parseInt(_0x4d9193(0x9c))/0xb;if(_0x1eec06===_0x1363c2)break;else _0x25b4dd['push'](_0x25b4dd['shift']());}catch(_0x3bd7dd){_0x25b4dd['push'](_0x25b4dd['shift']());}}}(_0x5220,0xca2ae));import{ShapeModel as _0x4b5768,computeConnectorRouteLayout as _0xc69524,createUniqueShapeName as _0x35cb9a,getBasicShapeRotateBound as _0x40b288,isConnectorShape as _0xc963bc,routeConnectorLineShape as _0x4cc214}from'@univerjs-pro/engine-shape';import{CommandType as _0x2d4ac4,DependentOn as _0x2c7cf6,Disposable as _0x543ffa,DrawingTypeEnum as _0x4d3e69,ICommandService as _0xa3208c,IConfigService as _0x1802b3,IResourceManagerService as _0x1fce46,IUndoRedoService as _0x17d14d,IUniverInstanceService as _0x38fcfb,Inject as _0x19216a,Injector as _0x180637,Plugin as _0x11a17d,UniverInstanceType as _0x37476a,generateRandomId as _0x3ef264,merge as _0x14640d,sequenceExecute as _0x16df04,touchDependencies as _0x29f0fc}from'@univerjs/core';function _0x55ca(_0x400b15,_0x441b0d){_0x400b15=_0x400b15-0x99;const _0x522044=_0x5220();let _0x55cae2=_0x522044[_0x400b15];return _0x55cae2;}import{SheetInterceptorService as _0x51d1bf,SheetSkeletonService as _0x2fc9c5,getSheetCommandTarget as _0x1fda72}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x5ec59a,DrawingApplyType as _0x534eeb,ISheetDrawingService as _0x3f2b28,InsertSheetDrawingCommand as _0xff1699,RemoveSheetDrawingCommand as _0x36289e,SetDrawingApplyMutation as _0x2703c3,SetSheetDrawingCommand as _0x6aec62,transformToAxisAlignPosition as _0x45aabc,transformToDrawingPosition as _0x2d6220}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x17d981}from'@univerjs-pro/license';import{IDrawingManagerService as _0x5b1dc7}from'@univerjs/drawing';const L=0xc8,R=0xc8;function z(_0x406b3c){'@babel/helpers - typeof';return z=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x49fdc8){return typeof _0x49fdc8;}:function(_0x5b30e7){const _0x494149=_0x55ca;return _0x5b30e7&&typeof Symbol==_0x494149(0x13b)&&_0x5b30e7[_0x494149(0x11c)]===Symbol&&_0x5b30e7!==Symbol[_0x494149(0xa3)]?_0x494149(0xad):typeof _0x5b30e7;},z(_0x406b3c);}function B(_0x4da072,_0x4db97f){const _0x1cc262=_0x55ca;if(z(_0x4da072)!='object'||!_0x4da072)return _0x4da072;var _0x264778=_0x4da072[Symbol['toPrimitive']];if(_0x264778!==void 0x0){var _0x4e734c=_0x264778[_0x1cc262(0xbe)](_0x4da072,_0x4db97f||'default');if(z(_0x4e734c)!=_0x1cc262(0x118))return _0x4e734c;throw TypeError(_0x1cc262(0xf3));}return(_0x4db97f===_0x1cc262(0xdd)?String:Number)(_0x4da072);}function V(_0x1c5dba){const _0x13323c=_0x55ca;var _0x424ccd=B(_0x1c5dba,_0x13323c(0xdd));return z(_0x424ccd)==_0x13323c(0xad)?_0x424ccd:_0x424ccd+'';}function H(_0x5c3816,_0x5b111f,_0x9f001d){const _0x14169b=_0x55ca;return(_0x5b111f=V(_0x5b111f))in _0x5c3816?Object[_0x14169b(0xb0)](_0x5c3816,_0x5b111f,{'value':_0x9f001d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5c3816[_0x5b111f]=_0x9f001d,_0x5c3816;}var U=class extends _0x543ffa{constructor(){const _0x25433b=_0x55ca;super(),H(this,_0x25433b(0x113),new Map()),H(this,_0x25433b(0xe3),new Set()),H(this,'_groupIds',new Set());}[_0x1b2777(0xc2)](_0xda0a65,_0xddb1a5,_0x2089a2,_0x439bd3){const _0xbf33cf=_0x1b2777;let _0x3bccdf=new _0x4b5768(_0xda0a65,_0xddb1a5,_0x2089a2,_0x439bd3);return this[_0xbf33cf(0x113)][_0xbf33cf(0xba)](_0xddb1a5,_0x3bccdf),_0xc963bc(_0xda0a65)&&this[_0xbf33cf(0xe3)]['add'](_0xddb1a5),_0x3bccdf;}['getBasicShapeRelation'](_0x550e21){const _0x5b4808=_0x1b2777;let _0x42144a=[];for(let _0x3304dd of this['_linesIds']){let _0x4f1c5a=this[_0x5b4808(0x113)]['get'](_0x3304dd);if(_0x4f1c5a){let _0x3f90e3=_0x4f1c5a[_0x5b4808(0xb4)]();if(_0x3f90e3){var _0x10e2e5,_0xdadc62;((_0x10e2e5=_0x3f90e3[_0x5b4808(0xa0)])==null?void 0x0:_0x10e2e5['shapeId'])===_0x550e21&&_0x42144a['push']({..._0x3f90e3[_0x5b4808(0xa0)],'lineShapeId':_0x3304dd,'isFrom':!0x0}),((_0xdadc62=_0x3f90e3['to'])==null?void 0x0:_0xdadc62[_0x5b4808(0x102)])===_0x550e21&&_0x42144a['push']({..._0x3f90e3['to'],'lineShapeId':_0x3304dd,'isFrom':!0x1});}}}return _0x42144a;}[_0x1b2777(0xff)](_0x2869e2){const _0x219345=_0x1b2777;let _0x32e2bc=this[_0x219345(0x113)]['get'](_0x2869e2);if(_0x32e2bc)return _0x32e2bc['getShapeRelation']();}[_0x1b2777(0x10b)](_0x2f5100){const _0x2ca4fc=_0x1b2777;let _0x22e160=this[_0x2ca4fc(0x113)]['get'](_0x2f5100);if(_0x22e160)return _0x22e160[_0x2ca4fc(0x10b)]();}[_0x1b2777(0xdc)](_0x5e5935){const _0x21760b=_0x1b2777;return this[_0x21760b(0x113)][_0x21760b(0x134)](_0x5e5935);}[_0x1b2777(0xcc)](){const _0x4c4b6e=_0x1b2777;return Array[_0x4c4b6e(0xa0)](this[_0x4c4b6e(0x113)][_0x4c4b6e(0xdf)]())[_0x4c4b6e(0x130)](_0xc4514d=>_0xc4514d[_0x4c4b6e(0x117)]()||_0xc4514d[_0x4c4b6e(0xbf)]());}[_0x1b2777(0xb3)](_0x498814){const _0x21451d=_0x1b2777;let _0x22db25=this[_0x21451d(0x113)]['get'](_0x498814);_0x22db25&&(_0xc963bc(_0x22db25['getShapeType']())&&this[_0x21451d(0xe3)][_0x21451d(0x10f)](_0x498814),this[_0x21451d(0x113)][_0x21451d(0x10f)](_0x498814));}[_0x1b2777(0xeb)](){const _0x15b9c4=_0x1b2777;let _0x409e80=[];return this[_0x15b9c4(0x113)][_0x15b9c4(0xa4)](_0x4a9294=>{const _0x145899=_0x15b9c4;_0x409e80['push'](_0x4a9294[_0x145899(0xeb)]());}),_0x409e80;}[_0x1b2777(0xed)](_0x431fdd){const _0x2ffa21=_0x1b2777;for(let _0x2f3b0a of _0x431fdd){let {id:_0x4471f2,shapeType:_0x53c6c5,name:_0x3f0215}=_0x2f3b0a,_0x16b95d=this['addShape'](_0x53c6c5,_0x4471f2,_0x2f3b0a[_0x2ffa21(0xf1)],_0x3f0215);_0x16b95d&&_0x16b95d[_0x2ffa21(0xe0)]()&&this[_0x2ffa21(0xe3)]['add'](_0x4471f2);}}[_0x1b2777(0x122)](){const _0x421825=_0x1b2777;this[_0x421825(0xef)]||(this['_shapes'][_0x421825(0xa4)](_0x16becf=>{const _0x4f8a66=_0x421825;_0x16becf[_0x4f8a66(0x122)]();}),this[_0x421825(0x113)][_0x421825(0x114)](),this[_0x421825(0xe3)][_0x421825(0x114)](),this['_groupIds'][_0x421825(0x114)](),super[_0x421825(0x122)]());}};function W(_0x5a7aa5,_0x2d4550){return function(_0x219768,_0x3f7676){_0x2d4550(_0x219768,_0x3f7676,_0x5a7aa5);};}function G(_0x3b2e62,_0x47fcfb,_0x31ed06,_0x52b22e){const _0x1e5050=_0x1b2777;var _0x3ca514=arguments[_0x1e5050(0xec)],_0x20c0f4=_0x3ca514<0x3?_0x47fcfb:_0x52b22e===null?_0x52b22e=Object[_0x1e5050(0xee)](_0x47fcfb,_0x31ed06):_0x52b22e,_0xdb86fb;if(typeof Reflect==_0x1e5050(0x118)&&typeof Reflect[_0x1e5050(0xfc)]=='function')_0x20c0f4=Reflect[_0x1e5050(0xfc)](_0x3b2e62,_0x47fcfb,_0x31ed06,_0x52b22e);else{for(var _0x2c8f04=_0x3b2e62[_0x1e5050(0xec)]-0x1;_0x2c8f04>=0x0;_0x2c8f04--)(_0xdb86fb=_0x3b2e62[_0x2c8f04])&&(_0x20c0f4=(_0x3ca514<0x3?_0xdb86fb(_0x20c0f4):_0x3ca514>0x3?_0xdb86fb(_0x47fcfb,_0x31ed06,_0x20c0f4):_0xdb86fb(_0x47fcfb,_0x31ed06))||_0x20c0f4);}return _0x3ca514>0x3&&_0x20c0f4&&Object[_0x1e5050(0xb0)](_0x47fcfb,_0x31ed06,_0x20c0f4),_0x20c0f4;}let K=class extends _0x543ffa{constructor(_0x5b1a1d){const _0x48700b=_0x1b2777;super(),this[_0x48700b(0x112)]=_0x5b1a1d,H(this,_0x48700b(0xa9),new Map()),this['_initSnapshot']();}[_0x1b2777(0xb6)](_0x13bf01,_0x165f3f){const _0x2112ac=_0x1b2777;let _0x3c0a10=this[_0x2112ac(0xa9)][_0x2112ac(0x10e)](_0x13bf01);_0x3c0a10||(_0x3c0a10=new Map(),this['_shapeModelManagerMap'][_0x2112ac(0xba)](_0x13bf01,_0x3c0a10));let _0x10b2d2=_0x3c0a10[_0x2112ac(0x10e)](_0x165f3f);return _0x10b2d2||(_0x10b2d2=new U(),_0x3c0a10[_0x2112ac(0xba)](_0x165f3f,_0x10b2d2)),_0x10b2d2;}['insertShape'](_0x41098d,_0x3b218c,_0x35d2d8,_0x114122,_0x31d540,_0x148064){const _0x12f527=_0x1b2777;this['_ensureShapeModelManager'](_0x41098d,_0x3b218c)[_0x12f527(0xc2)](_0x35d2d8,_0x114122,_0x31d540,_0x148064);}[_0x1b2777(0xb3)](_0x9f4c2f,_0x10aaad,_0xcc0751){const _0x231647=_0x1b2777;this[_0x231647(0xb6)](_0x9f4c2f,_0x10aaad)[_0x231647(0xb3)](_0xcc0751);}['getBasicShapeType'](_0x4a20e0,_0x507199,_0x599a0a){const _0x195c52=_0x1b2777;return this[_0x195c52(0xb6)](_0x4a20e0,_0x507199)[_0x195c52(0x10b)](_0x599a0a);}[_0x1b2777(0x10b)](_0x334d4c,_0x2ceec5,_0x4a0881){const _0x123be9=_0x1b2777;return this[_0x123be9(0xb6)](_0x334d4c,_0x2ceec5)[_0x123be9(0x10b)](_0x4a0881);}[_0x1b2777(0xdc)](_0x523c96,_0x120efe,_0x23def1){const _0x4f4a0f=_0x1b2777;return this[_0x4f4a0f(0xb6)](_0x523c96,_0x120efe)[_0x4f4a0f(0xdc)](_0x23def1);}[_0x1b2777(0x126)](_0x133eda,_0x43167a,_0x2d80e3){const _0x338d76=_0x1b2777;return this[_0x338d76(0xb6)](_0x133eda,_0x43167a)['getShapeType'](_0x2d80e3);}[_0x1b2777(0x12c)](_0x2e91b4,_0x48fb61,_0x3e89e4){const _0xf4a329=_0x1b2777;let _0x741a2=this[_0xf4a329(0xb6)](_0x2e91b4,_0x48fb61);if(!_0x741a2[_0xf4a329(0x10b)](_0x3e89e4))return;let _0x207a83=_0x741a2[_0xf4a329(0x113)][_0xf4a329(0x10e)](_0x3e89e4);if(_0x207a83)return _0x207a83[_0xf4a329(0xa2)]();}[_0x1b2777(0xcc)](_0xd26554,_0x2d65ce){const _0x1edde1=_0x1b2777;return this[_0x1edde1(0xb6)](_0xd26554,_0x2d65ce)[_0x1edde1(0xcc)]();}['getShapeModel'](_0x1c224d,_0x324c44,_0x2bfc86){const _0x4f77db=_0x1b2777;return this[_0x4f77db(0xb6)](_0x1c224d,_0x324c44)['_shapes'][_0x4f77db(0x10e)](_0x2bfc86);}[_0x1b2777(0x119)](_0x1a1882,_0x200c36,_0x2a5bcd){const _0x5d3258=_0x1b2777;return this[_0x5d3258(0xb6)](_0x1a1882,_0x200c36)[_0x5d3258(0x119)](_0x2a5bcd);}['getLineShapeRelation'](_0x56e0a9,_0x3579b5,_0xec2178){const _0x4fa56e=_0x1b2777;let _0x22ab84=this['_ensureShapeModelManager'](_0x56e0a9,_0x3579b5)[_0x4fa56e(0x113)][_0x4fa56e(0x10e)](_0xec2178);if(_0x22ab84)return _0x22ab84[_0x4fa56e(0xb4)]();}[_0x1b2777(0x105)](){}[_0x1b2777(0x9d)](_0x24e78c){const _0x2247b1=_0x1b2777;let _0x503002={},_0x3b420c=this[_0x2247b1(0xa9)][_0x2247b1(0x10e)](_0x24e78c);return _0x3b420c&&_0x3b420c[_0x2247b1(0xa4)]((_0x31d710,_0x5930a5)=>{const _0x3f2a5c=_0x2247b1;let _0x2b4b20=_0x31d710['toJSON']();_0x2b4b20[_0x3f2a5c(0xec)]>0x0&&(_0x503002[_0x5930a5]=_0x2b4b20);}),JSON['stringify'](_0x503002);}[_0x1b2777(0x139)](_0x3e9023,_0x5ad212){const _0x209237=_0x1b2777;Object[_0x209237(0x9f)](_0x5ad212)[_0x209237(0xa4)](_0x272d8f=>{const _0x2bfe5a=_0x209237;this[_0x2bfe5a(0xb6)](_0x3e9023,_0x272d8f)[_0x2bfe5a(0xed)](_0x5ad212[_0x272d8f]);});}['toJSON'](){const _0x372fab=_0x1b2777;let _0x930d={};return this[_0x372fab(0xa9)][_0x372fab(0xa4)]((_0x214802,_0x169147)=>{const _0x5ac8c3=_0x372fab;_0x930d[_0x169147]={},_0x214802[_0x5ac8c3(0xa4)]((_0x5e68f3,_0xc8d4ae)=>{const _0x57f301=_0x5ac8c3;_0x930d[_0x169147][_0xc8d4ae]=_0x5e68f3[_0x57f301(0xeb)]();});}),_0x930d;}['fromJSON'](_0x2bf9a6){Object['keys'](_0x2bf9a6)['forEach'](_0x2f3dd5=>{const _0x501e8d=_0x55ca;let _0x3b77aa=_0x2bf9a6[_0x2f3dd5];Object[_0x501e8d(0x9f)](_0x3b77aa)[_0x501e8d(0xa4)](_0x1baf71=>{const _0x33567e=_0x501e8d;this[_0x33567e(0xb6)](_0x2f3dd5,_0x1baf71)[_0x33567e(0xed)](_0x3b77aa[_0x1baf71]);});});}[_0x1b2777(0x101)](){const _0xbc9278=_0x1b2777;this[_0xbc9278(0x112)][_0xbc9278(0xaa)]({'pluginName':_0xbc9278(0xfa),'businesses':[_0x37476a[_0xbc9278(0x11b)]],'toJson':_0xb9192f=>this[_0xbc9278(0x9d)](_0xb9192f),'parseJson':_0x4fea57=>JSON[_0xbc9278(0xa5)](_0x4fea57),'onLoad':(_0x4d5bbe,_0x106b80)=>{const _0x14afc0=_0xbc9278;this[_0x14afc0(0x139)](_0x4d5bbe,_0x106b80);},'onUnLoad':_0x1d625e=>{const _0x51e8d0=_0xbc9278;let _0xe22bab=this[_0x51e8d0(0xa9)][_0x51e8d0(0x10e)](_0x1d625e);_0xe22bab&&(_0xe22bab[_0x51e8d0(0xa4)](_0x549dd2=>{const _0x3af62d=_0x51e8d0;_0x549dd2[_0x3af62d(0x122)]();}),this['_shapeModelManagerMap']['delete'](_0x1d625e));}});}[_0x1b2777(0x122)](){const _0x501602=_0x1b2777;this[_0x501602(0xa9)][_0x501602(0xa4)](_0x3cf640=>{const _0x4a0467=_0x501602;_0x3cf640[_0x4a0467(0xa4)](_0x1a2dd6=>{_0x1a2dd6['dispose']();});});}};K=G([W(0x0,_0x1fce46)],K);const q={'id':'sheet.mutation.insert-shape','type':_0x2d4ac4[_0x1b2777(0xb1)],'handler':(_0x56a6eb,_0x3cf7a7)=>{const _0x56004f=_0x1b2777;let {unitId:_0x4980d5,subUnitId:_0x5bf1db,shapeType:_0x1358b1,shapeId:_0x524b60,shapeName:_0x454e78,shapeData:_0x552638}=_0x3cf7a7;return _0x56a6eb[_0x56004f(0x10e)](K)[_0x56004f(0x12f)](_0x4980d5,_0x5bf1db,_0x1358b1,_0x524b60,_0x552638,_0x454e78),!0x0;}},J={'id':_0x1b2777(0xe9),'type':_0x2d4ac4[_0x1b2777(0xb1)],'handler':(_0x195ddf,_0x2805a4)=>{const _0x2d8398=_0x1b2777;let {unitId:_0x24bb16,subUnitId:_0x182991,shapeId:_0x2547d1}=_0x2805a4;return _0x195ddf[_0x2d8398(0x10e)](K)['removeShape'](_0x24bb16,_0x182991,_0x2547d1),!0x0;}},Y={'type':_0x2d4ac4['COMMAND'],'id':_0x1b2777(0x9a),'handler':(_0x5b9660,_0x468d47)=>{const _0x4c7424=_0x1b2777;var _0x147934,_0xfb3acb,_0x56fe63;let _0x3dcce5=_0x1fda72(_0x5b9660[_0x4c7424(0x10e)](_0x38fcfb),_0x468d47);if(!_0x3dcce5)return!0x1;let _0x1cf566=_0x5b9660[_0x4c7424(0x10e)](_0x2fc9c5),{unitId:_0x3269ef,subUnitId:_0xf103c9}=_0x3dcce5,_0x1e93c3=_0x1cf566[_0x4c7424(0x11a)](_0x3269ef,_0xf103c9);if(!_0x1e93c3)return!0x1;let _0x5845af=_0x5b9660[_0x4c7424(0x10e)](_0xa3208c),_0x32570c=_0x5b9660[_0x4c7424(0x10e)](_0x17d14d),_0x8c089a=_0x5b9660['get'](_0x51d1bf),_0x1d02e1=_0x5b9660[_0x4c7424(0x10e)](_0x3f2b28),_0x570449=_0x5b9660[_0x4c7424(0x10e)](K),{shapeType:_0x234e63,shapeData:_0x1d6c7a}=_0x468d47,_0x332c8b=_0x468d47[_0x4c7424(0x102)]||_0x3ef264(),_0x48ddc9={'unitId':_0x3269ef,'subUnitId':_0xf103c9,'shapeId':_0x332c8b,'shapeName':(_0x147934=_0x468d47[_0x4c7424(0xc1)])==null?_0x35cb9a(_0x234e63,_0x570449[_0x4c7424(0xcc)](_0x3269ef,_0xf103c9)):_0x147934,'shapeType':_0x234e63,'shapeData':_0x1d6c7a},_0x44a293=_0x468d47['width']||0xc8,_0x49311b=_0x468d47[_0x4c7424(0x135)]||0xc8,_0x3124c0=0x0,_0x128d10=0x0,_0x3d28cf={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x38e155={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x468d47['position']){let {x:_0xefaab0,y:_0x3c6182}=_0x468d47[_0x4c7424(0xb5)];_0x3124c0=_0xefaab0,_0x128d10=_0x3c6182,_0x3d28cf=_0x1e93c3[_0x4c7424(0x124)](_0xefaab0,_0x3c6182),_0x38e155=_0x1e93c3[_0x4c7424(0x124)](_0xefaab0+_0x44a293,_0x3c6182+_0x49311b);}else{if(_0x468d47['range']){let {startRow:_0x513d6c,startColumn:_0x205e45}=_0x468d47[_0x4c7424(0xfb)];_0x3d28cf={'row':_0x513d6c,'rowOffset':0xa,'column':_0x205e45,'columnOffset':0xa};let _0x11d9cf=_0x1e93c3[_0x4c7424(0xea)](_0x513d6c,_0x205e45);_0x3124c0=_0x11d9cf[_0x4c7424(0xa7)]+0xa,_0x128d10=_0x11d9cf[_0x4c7424(0xf9)]+0xa,_0x38e155=_0x1e93c3[_0x4c7424(0x124)](_0x3124c0+_0x44a293,_0x128d10+_0x49311b);}}let _0x1ce045={'from':_0x3d28cf,'to':_0x38e155},_0x5d1e57={'unitId':_0x3269ef,'subUnitId':_0xf103c9,'drawingId':_0x332c8b,'drawingType':_0x4d3e69['DRAWING_SHAPE'],'sheetTransform':_0x1ce045,'transform':{'left':_0x3124c0,'top':_0x128d10,'width':_0x44a293,'height':_0x49311b},'data':{'shapeType':_0x234e63,'shapeData':_0x1d6c7a},'axisAlignSheetTransform':_0x1ce045,'allowTransform':!0x0};_0xc963bc(_0x234e63)&&(_0x5d1e57[_0x4c7424(0xf2)][_0x4c7424(0xf5)]=!0x1,_0x5d1e57[_0x4c7424(0xf2)]['rotateEnabled']=!0x1,_0x5d1e57[_0x4c7424(0xf2)]['resizeEnabled']=!0x1,_0x5d1e57[_0x4c7424(0xf2)][_0x4c7424(0xde)]=!0x1,_0x5d1e57[_0x4c7424(0xc6)][_0x4c7424(0xcd)]=!0x1,_0x5d1e57[_0x4c7424(0xc6)][_0x4c7424(0xbb)]=!0x1,_0x5d1e57['transform']['borderEnabled']=!0x1);let {undo:_0x40bd9b,redo:_0x22dfb0,objects:_0x11d2e5}=_0x1d02e1['getBatchAddOp']([_0x5d1e57]),_0x5427c6=_0x8c089a[_0x4c7424(0x10d)]({'id':_0xff1699['id'],'params':{'unitId':_0x3269ef,'drawings':[_0x5d1e57]}}),_0x239935=[...(_0xfb3acb=_0x5427c6[_0x4c7424(0xd5)])==null?[]:_0xfb3acb,{'id':_0x2703c3['id'],'params':{'unitId':_0x3269ef,'subUnitId':_0xf103c9,'op':_0x22dfb0,'objects':_0x11d2e5,'type':_0x534eeb[_0x4c7424(0xd6)]}},{'id':_0x5ec59a['id'],'params':[_0x3269ef]},..._0x5427c6[_0x4c7424(0xd7)],{'id':q['id'],'params':_0x48ddc9}],_0x507e46=[{'id':J['id'],'params':{'unitId':_0x3269ef,'subUnitId':_0xf103c9,'shapeId':_0x332c8b}},...(_0x56fe63=_0x5427c6['preUndos'])==null?[]:_0x56fe63,{'id':_0x2703c3['id'],'params':{'unitId':_0x3269ef,'subUnitId':_0xf103c9,'op':_0x40bd9b,'objects':_0x11d2e5,'type':_0x534eeb[_0x4c7424(0xaf)]}},{'id':_0x5ec59a['id'],'params':[_0x3269ef]},..._0x5427c6['undos']];return _0x16df04(_0x239935,_0x5845af)[_0x4c7424(0xb2)]?(_0x32570c[_0x4c7424(0x125)]({'unitID':_0x3269ef,'undoMutations':_0x507e46,'redoMutations':_0x239935}),!0x0):!0x1;}},X={'id':_0x1b2777(0xcf),'type':_0x2d4ac4[_0x1b2777(0xb1)],'handler':(_0x2b7823,_0x561614)=>{const _0x352e89=_0x1b2777;let {unitId:_0x3d754f,subUnitId:_0x5e5a7a,shapeType:_0x47825f,shapeId:_0x18d440,shapeData:_0x3ad095}=_0x561614,_0x584b72=_0x2b7823['get'](K)[_0x352e89(0xb8)](_0x3d754f,_0x5e5a7a,_0x18d440);return _0x584b72&&(_0x47825f!==void 0x0&&_0x584b72[_0x352e89(0x105)](_0x47825f),_0x3ad095&&(_0x584b72==null||_0x584b72['setShapeData'](_0x3ad095,!0x0))),!0x0;}},ee={'type':_0x2d4ac4[_0x1b2777(0xc4)],'id':_0x1b2777(0xc8),'handler':(_0x3a27c9,_0x35b3bf)=>{const _0x3aebeb=_0x1b2777;var _0x462f99,_0x550383;let _0x453046=_0x1fda72(_0x3a27c9[_0x3aebeb(0x10e)](_0x38fcfb),_0x35b3bf);if(!_0x453046)return!0x1;let _0x4e9f99=_0x3a27c9[_0x3aebeb(0x10e)](_0x2fc9c5),{unitId:_0x5e19b3,subUnitId:_0x43fb46}=_0x453046,_0x2d656e=_0x4e9f99[_0x3aebeb(0x11a)](_0x5e19b3,_0x43fb46);if(!_0x2d656e)return!0x1;let _0x3cf08d=_0x3a27c9[_0x3aebeb(0x10e)](K),{shapeId:_0x39ffc1,shapeType:_0x238a33,shapeData:_0x5904b9,position:_0x31d818,width:_0x1e2a8a,height:_0x4d456f}=_0x35b3bf,_0x1a8e44=_0x3cf08d[_0x3aebeb(0xb8)](_0x5e19b3,_0x43fb46,_0x39ffc1);if(!_0x1a8e44)return!0x1;let _0x555443=_0x3a27c9[_0x3aebeb(0x10e)](_0xa3208c),_0x5e36d7=_0x3a27c9[_0x3aebeb(0x10e)](_0x17d14d),_0xed37da=_0x3a27c9[_0x3aebeb(0x10e)](_0x51d1bf),_0x226163=_0x3a27c9[_0x3aebeb(0x10e)](_0x3f2b28),_0x342e34={'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'shapeId':_0x39ffc1,'shapeType':_0x238a33,'shapeData':_0x5904b9},_0x4bfa7d=_0x1a8e44[_0x3aebeb(0x10b)](),_0x4096c8=_0x1a8e44['getShapeData'](),{x:_0x501798,y:_0x5758a1}=_0x31d818,_0x3dee2d={'from':_0x2d656e['getCellIndexAndOffsetByPosition'](_0x501798,_0x5758a1),'to':_0x2d656e[_0x3aebeb(0x124)](_0x501798+_0x1e2a8a,_0x5758a1+_0x4d456f)},_0x43079e={'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'drawingId':_0x39ffc1,'drawingType':_0x4d3e69[_0x3aebeb(0x11e)],'sheetTransform':_0x3dee2d,'transform':{'left':_0x501798,'top':_0x5758a1,'width':_0x1e2a8a,'height':_0x4d456f},'data':{'shapeType':_0x238a33,'shapeData':_0x5904b9},'axisAlignSheetTransform':_0x3dee2d,'allowTransform':!0x0};_0xc963bc(_0x238a33)&&(_0x43079e['data'][_0x3aebeb(0xf5)]=!0x1,_0x43079e[_0x3aebeb(0xf2)][_0x3aebeb(0xcd)]=!0x1,_0x43079e[_0x3aebeb(0xf2)]['resizeEnabled']=!0x1,_0x43079e[_0x3aebeb(0xf2)]['borderEnabled']=!0x1,_0x43079e[_0x3aebeb(0xc6)][_0x3aebeb(0xcd)]=!0x1,_0x43079e['transform'][_0x3aebeb(0xbb)]=!0x1,_0x43079e[_0x3aebeb(0xc6)][_0x3aebeb(0xde)]=!0x1);let {undo:_0xf01f82,redo:_0x570e66,objects:_0x1e2eb2}=_0x226163[_0x3aebeb(0x99)]([_0x43079e]),_0x59ce19=_0xed37da['onCommandExecute']({'id':_0x6aec62['id'],'params':{'unitId':_0x5e19b3,'drawings':[_0x43079e]}}),_0x15daf4=[...(_0x462f99=_0x59ce19[_0x3aebeb(0xd5)])==null?[]:_0x462f99,{'id':_0x2703c3['id'],'params':{'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'op':_0x570e66,'objects':_0x1e2eb2,'type':_0x534eeb[_0x3aebeb(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x5e19b3]},..._0x59ce19[_0x3aebeb(0xd7)],{'id':X['id'],'params':_0x342e34}],_0x116dd2=[...(_0x550383=_0x59ce19[_0x3aebeb(0xe1)])==null?[]:_0x550383,{'id':_0x2703c3['id'],'params':{'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'op':_0xf01f82,'objects':_0x1e2eb2,'type':_0x534eeb[_0x3aebeb(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x5e19b3]},..._0x59ce19[_0x3aebeb(0xce)],{'id':X['id'],'params':{'unitId':_0x5e19b3,'subUnitId':_0x43fb46,'shapeType':_0x4bfa7d,'shapeId':_0x39ffc1,'shapeData':_0x4096c8}}];return _0x16df04(_0x15daf4,_0x555443)[_0x3aebeb(0xb2)]?(_0x5e36d7[_0x3aebeb(0x125)]({'unitID':_0x5e19b3,'undoMutations':_0x116dd2,'redoMutations':_0x15daf4}),!0x0):!0x1;}},Z={'type':_0x2d4ac4['COMMAND'],'id':_0x1b2777(0x129),'handler':(_0x48e061,_0xf599e8)=>{const _0x30e9c8=_0x1b2777;var _0x264938,_0x171074;let _0x34ba24=_0x1fda72(_0x48e061['get'](_0x38fcfb),_0xf599e8);if(!_0x34ba24)return!0x1;let _0x5bfbc9=_0x48e061[_0x30e9c8(0x10e)](_0x2fc9c5),{unitId:_0x2ca4fb,subUnitId:_0x52fe7e}=_0x34ba24,_0x5c370a=_0x5bfbc9[_0x30e9c8(0x115)](_0x2ca4fb,_0x52fe7e);if(!_0x5c370a)return!0x1;let _0xae6f32=_0x48e061[_0x30e9c8(0x10e)](_0x3f2b28),{shapeId:_0x3a8cd0,flipH:_0x1a0e57,flipV:_0x38f6a6}=_0xf599e8,_0x3c2534=_0xae6f32[_0x30e9c8(0x10a)]({'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'drawingId':_0x3a8cd0});if(!_0x3c2534)return!0x1;let _0x533831=_0x48e061[_0x30e9c8(0x10e)](K)['getShapeModel'](_0x2ca4fb,_0x52fe7e,_0x3a8cd0);if(!_0x533831)return!0x1;let _0x34beb9=_0x48e061[_0x30e9c8(0x10e)](_0xa3208c),_0x29869d=_0x48e061['get'](_0x17d14d),_0x239276=_0x48e061[_0x30e9c8(0x10e)](_0x51d1bf),_0x4d2a66={..._0x3c2534[_0x30e9c8(0xc6)]};_0x1a0e57!==void 0x0&&(_0x4d2a66[_0x30e9c8(0x10c)]=!_0x4d2a66[_0x30e9c8(0x10c)]),_0x38f6a6!==void 0x0&&(_0x4d2a66[_0x30e9c8(0xd0)]=!_0x4d2a66['flipY']);let _0x4f02a1=_0x2d6220(_0x4d2a66,_0x5c370a),_0x21b8ad=_0x45aabc(_0x4d2a66,_0x5c370a),_0x26c64a=_0x533831[_0x30e9c8(0x10b)](),_0xfdf682=_0x533831[_0x30e9c8(0xa2)](),_0x867b43={'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'drawingId':_0x3a8cd0,'drawingType':_0x4d3e69['DRAWING_SHAPE'],'sheetTransform':_0x4f02a1,'transform':_0x4d2a66,'data':{'shapeType':_0x26c64a,'shapeData':_0xfdf682},'axisAlignSheetTransform':_0x21b8ad,'allowTransform':!0x0},{undo:_0x2743e2,redo:_0x467de5,objects:_0x18e6c9}=_0xae6f32[_0x30e9c8(0x99)]([_0x867b43]),_0x286679=_0x239276[_0x30e9c8(0x10d)]({'id':_0x6aec62['id'],'params':{'unitId':_0x2ca4fb,'drawings':[_0x867b43]}}),_0x4a4a7c=[...(_0x264938=_0x286679[_0x30e9c8(0xd5)])==null?[]:_0x264938,{'id':_0x2703c3['id'],'params':{'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'op':_0x467de5,'objects':_0x18e6c9,'type':_0x534eeb[_0x30e9c8(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x2ca4fb]},..._0x286679['redos']],_0x3d4f42=[...(_0x171074=_0x286679['preUndos'])==null?[]:_0x171074,{'id':_0x2703c3['id'],'params':{'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'op':_0x2743e2,'objects':_0x18e6c9,'type':_0x534eeb[_0x30e9c8(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x2ca4fb]},..._0x286679[_0x30e9c8(0xce)]];if(_0xc963bc(_0x26c64a)){let _0x32dd5e=_0x533831[_0x30e9c8(0xb4)]();if(_0x32dd5e){let _0x5a7b3a={..._0x32dd5e};_0x5a7b3a[_0x30e9c8(0xa0)]=void 0x0,_0x5a7b3a['to']=void 0x0,_0x4a4a7c[_0x30e9c8(0xb7)]({'id':X['id'],'params':{'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'shapeId':_0x3a8cd0,'shapeType':_0x26c64a,'shapeData':{'relation':_0x5a7b3a}}}),_0x3d4f42[_0x30e9c8(0xb7)]({'id':X['id'],'params':{'unitId':_0x2ca4fb,'subUnitId':_0x52fe7e,'shapeId':_0x3a8cd0,'shapeType':_0x26c64a,'shapeData':{'relation':_0x32dd5e}}});}}return _0x16df04(_0x4a4a7c,_0x34beb9)['result']?(_0x29869d[_0x30e9c8(0x125)]({'unitID':_0x2ca4fb,'undoMutations':_0x3d4f42,'redoMutations':_0x4a4a7c}),!0x0):!0x1;}},Q={'type':_0x2d4ac4[_0x1b2777(0xc4)],'id':_0x1b2777(0xa1),'handler':(_0x4ee665,_0x1d2249)=>{const _0x24c5bf=_0x1b2777;var _0x3aa8c2,_0x26eec3;let _0x182c7d=_0x1fda72(_0x4ee665[_0x24c5bf(0x10e)](_0x38fcfb),_0x1d2249);if(!_0x182c7d)return!0x1;let _0x215e90=_0x4ee665[_0x24c5bf(0x10e)](_0x2fc9c5),{unitId:_0x167f6f,subUnitId:_0x3b9010}=_0x182c7d,_0x528dfd=_0x215e90[_0x24c5bf(0x115)](_0x167f6f,_0x3b9010);if(!_0x528dfd)return!0x1;let _0x4aceed=_0x4ee665[_0x24c5bf(0x10e)](_0x3f2b28),{shapeId:_0x3bf16c,rotate:_0x1d4fc6}=_0x1d2249,_0x3980aa=_0x4aceed[_0x24c5bf(0x10a)]({'unitId':_0x167f6f,'subUnitId':_0x3b9010,'drawingId':_0x3bf16c});if(!_0x3980aa)return!0x1;let _0x4c497c=_0x4ee665[_0x24c5bf(0x10e)](K)[_0x24c5bf(0xb8)](_0x167f6f,_0x3b9010,_0x3bf16c);if(!_0x4c497c)return!0x1;let _0x22a473=_0x4ee665['get'](_0xa3208c),_0x21cfac=_0x4ee665[_0x24c5bf(0x10e)](_0x17d14d),_0x4bfe8f=_0x4ee665['get'](_0x51d1bf),_0x6c7996={..._0x3980aa[_0x24c5bf(0xc6)]};_0x1d4fc6!==void 0x0&&(_0x6c7996['angle']=(_0x6c7996[_0x24c5bf(0xe8)]||0x0)+_0x1d4fc6);let _0x45de82=_0x2d6220(_0x6c7996,_0x528dfd),_0x16888a=_0x45aabc(_0x6c7996,_0x528dfd),_0x384be5=_0x4c497c['getShapeType'](),_0x37868b=_0x4c497c['getShapeData'](),_0xa45a1c={'unitId':_0x167f6f,'subUnitId':_0x3b9010,'drawingId':_0x3bf16c,'drawingType':_0x4d3e69[_0x24c5bf(0x11e)],'sheetTransform':_0x45de82,'transform':_0x6c7996,'data':{'shapeType':_0x384be5,'shapeData':_0x37868b},'axisAlignSheetTransform':_0x16888a,'allowTransform':!0x0},{undo:_0x2b7507,redo:_0x1cb603,objects:_0x1a9b5d}=_0x4aceed[_0x24c5bf(0x99)]([_0xa45a1c]),_0x489e65=_0x4bfe8f[_0x24c5bf(0x10d)]({'id':_0x6aec62['id'],'params':{'unitId':_0x167f6f,'drawings':[_0xa45a1c]}}),_0x456693=[...(_0x3aa8c2=_0x489e65[_0x24c5bf(0xd5)])==null?[]:_0x3aa8c2,{'id':_0x2703c3['id'],'params':{'unitId':_0x167f6f,'subUnitId':_0x3b9010,'op':_0x1cb603,'objects':_0x1a9b5d,'type':_0x534eeb[_0x24c5bf(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x167f6f]},..._0x489e65[_0x24c5bf(0xd7)]],_0x46358c=[...(_0x26eec3=_0x489e65[_0x24c5bf(0xe1)])==null?[]:_0x26eec3,{'id':_0x2703c3['id'],'params':{'unitId':_0x167f6f,'subUnitId':_0x3b9010,'op':_0x2b7507,'objects':_0x1a9b5d,'type':_0x534eeb['UPDATE']}},{'id':_0x5ec59a['id'],'params':[_0x167f6f]},..._0x489e65[_0x24c5bf(0xce)]];return _0x16df04(_0x456693,_0x22a473)[_0x24c5bf(0xb2)]?(_0x21cfac[_0x24c5bf(0x125)]({'unitID':_0x167f6f,'undoMutations':_0x46358c,'redoMutations':_0x456693}),!0x0):!0x1;}},te={'type':_0x2d4ac4[_0x1b2777(0xc4)],'id':'sheet.command.set-shape-text-vertical-toggle','handler':(_0x3e0ca0,_0x5ac4b2)=>{const _0x2fbda7=_0x1b2777;var _0x42b59b;let _0x2a5e71=_0x1fda72(_0x3e0ca0['get'](_0x38fcfb),_0x5ac4b2);if(!_0x2a5e71)return!0x1;let {unitId:_0x3bf8a0,subUnitId:_0x467450}=_0x2a5e71,{shapeId:_0x17978c}=_0x5ac4b2,_0x1c2769=_0x3e0ca0[_0x2fbda7(0x10e)](K)[_0x2fbda7(0xb8)](_0x3bf8a0,_0x467450,_0x17978c);if(!_0x1c2769)return!0x1;let _0x16ec8b=_0x1c2769[_0x2fbda7(0x12b)](),_0x54a32a=(_0x42b59b=_0x16ec8b==null?void 0x0:_0x16ec8b['isHorizontal'])==null?!0x0:_0x42b59b,_0x5c4340=!_0x54a32a,_0x2758fa=_0x3e0ca0[_0x2fbda7(0x10e)](_0xa3208c),_0x1899f9=_0x3e0ca0[_0x2fbda7(0x10e)](_0x17d14d),_0x2deddc={'unitId':_0x3bf8a0,'subUnitId':_0x467450,'shapeId':_0x17978c,'shapeData':{'shapeText':{'isHorizontal':_0x5c4340}}},_0x82fec3={'unitId':_0x3bf8a0,'subUnitId':_0x467450,'shapeId':_0x17978c,'shapeData':{'shapeText':{'isHorizontal':_0x54a32a}}},_0x27e504=[{'id':X['id'],'params':_0x2deddc}],_0x16597c=[{'id':X['id'],'params':_0x82fec3}];return _0x16df04(_0x27e504,_0x2758fa)[_0x2fbda7(0xb2)]?(_0x1899f9['pushUndoRedo']({'unitID':_0x3bf8a0,'undoMutations':_0x16597c,'redoMutations':_0x27e504}),!0x0):!0x1;}},ne={'type':_0x2d4ac4['COMMAND'],'id':_0x1b2777(0x128),'handler':(_0x5344ba,_0x246558)=>{const _0x30192c=_0x1b2777;var _0x3a3d48,_0x328601,_0x12121b,_0x4a321f;let _0x1c75d3=_0x1fda72(_0x5344ba[_0x30192c(0x10e)](_0x38fcfb),_0x246558);if(!_0x1c75d3)return!0x1;let _0x15709a=_0x5344ba[_0x30192c(0x10e)](_0x2fc9c5),{unitId:_0x3309bb,subUnitId:_0x1945e1}=_0x1c75d3,_0x18ee9f=_0x15709a[_0x30192c(0x115)](_0x3309bb,_0x1945e1);if(!_0x18ee9f)return!0x1;let _0x87fa3c=_0x5344ba[_0x30192c(0x10e)](_0x3f2b28),{connectorShapeId:_0x240910,width:_0x50fcd7,height:_0x9c1af2,left:_0x4198a0,top:_0x5043af,flipX:_0x22df10,flipY:_0x2d657b,rotation:_0xb858bd,oldAdjustValues:_0x43c30b,newAdjustValues:_0x21f304,oldLineType:_0xb66e6,newLineType:_0x5d3dad,oldRelation:_0x7132be,newRelation:_0x5fb073}=_0x246558,_0x2c4646=_0x87fa3c['getDrawingByParam']({'unitId':_0x3309bb,'subUnitId':_0x1945e1,'drawingId':_0x240910});if(!_0x2c4646)return!0x1;let _0x5591ee=_0x5344ba[_0x30192c(0x10e)](K)[_0x30192c(0xb8)](_0x3309bb,_0x1945e1,_0x240910);if(!_0x5591ee)return!0x1;let _0x521fa3=_0x5344ba[_0x30192c(0x10e)](_0xa3208c),_0x480f7f=_0x5344ba[_0x30192c(0x10e)](_0x17d14d),_0x5085c7=_0x5344ba['get'](_0x51d1bf),_0x4adcee={..._0x2c4646[_0x30192c(0xc6)],'width':_0x50fcd7,'height':_0x9c1af2,'left':_0x4198a0,'top':_0x5043af,'flipX':_0x22df10,'flipY':_0x2d657b,'angle':(_0x3a3d48=_0xb858bd==null?(_0x328601=_0x2c4646[_0x30192c(0xc6)])==null?void 0x0:_0x328601[_0x30192c(0xe8)]:_0xb858bd)==null?0x0:_0x3a3d48},_0x38e6ef=_0x2d6220(_0x4adcee,_0x18ee9f),_0x37787c=_0x45aabc(_0x4adcee,_0x18ee9f),_0x172127=_0x5591ee['getShapeType'](),_0x185478=_0x5591ee[_0x30192c(0xa2)](),_0x2a5b4d={'unitId':_0x3309bb,'subUnitId':_0x1945e1,'drawingId':_0x240910,'drawingType':_0x4d3e69['DRAWING_SHAPE'],'sheetTransform':_0x38e6ef,'transform':_0x4adcee,'data':{'shapeType':_0x5d3dad||_0xb66e6||_0x172127,'shapeData':{..._0x185478,'adjustValues':_0x21f304||_0x43c30b||(_0x185478==null?void 0x0:_0x185478['adjustValues']),'relation':_0x5fb073||_0x7132be||(_0x185478==null?void 0x0:_0x185478['relation'])}},'axisAlignSheetTransform':_0x37787c,'allowTransform':!0x0},{undo:_0x266eb1,redo:_0x22cda4,objects:_0x2d79d6}=_0x87fa3c[_0x30192c(0x99)]([_0x2a5b4d]),_0xe78cdb=_0x5085c7['onCommandExecute']({'id':_0x6aec62['id'],'params':{'unitId':_0x3309bb,'drawings':[_0x2a5b4d]}}),_0x55fed2=[...(_0x12121b=_0xe78cdb[_0x30192c(0xd5)])==null?[]:_0x12121b,{'id':_0x2703c3['id'],'params':{'unitId':_0x3309bb,'subUnitId':_0x1945e1,'op':_0x22cda4,'objects':_0x2d79d6,'type':_0x534eeb[_0x30192c(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x3309bb]},..._0xe78cdb[_0x30192c(0xd7)],{'id':X['id'],'params':{'unitId':_0x3309bb,'subUnitId':_0x1945e1,'shapeId':_0x240910,'shapeType':_0x5d3dad,'shapeData':{'adjustValues':_0x21f304,'relation':_0x5fb073}}}],_0x15f412=[...(_0x4a321f=_0xe78cdb[_0x30192c(0xe1)])==null?[]:_0x4a321f,{'id':_0x2703c3['id'],'params':{'unitId':_0x3309bb,'subUnitId':_0x1945e1,'op':_0x266eb1,'objects':_0x2d79d6,'type':_0x534eeb[_0x30192c(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x3309bb]},..._0xe78cdb['undos'],{'id':X['id'],'params':{'unitId':_0x3309bb,'subUnitId':_0x1945e1,'shapeId':_0x240910,'shapeType':_0x172127,'shapeData':{..._0x185478,'adjustValues':_0x43c30b||(_0x185478==null?void 0x0:_0x185478[_0x30192c(0x11f)]),'relation':_0x7132be||(_0x185478==null?void 0x0:_0x185478[_0x30192c(0x13a)])}}}];return _0x16df04(_0x55fed2,_0x521fa3)[_0x30192c(0xb2)]?(_0x480f7f[_0x30192c(0x125)]({'unitID':_0x3309bb,'undoMutations':_0x15f412,'redoMutations':_0x55fed2}),!0x0):!0x1;}},re={'type':_0x2d4ac4[_0x1b2777(0xc4)],'id':_0x1b2777(0xe4),'handler':(_0x13a5e6,_0x50146b)=>{const _0x1fcd11=_0x1b2777;var _0x229e79,_0x2a2be8;let _0x213a4e=_0x1fda72(_0x13a5e6[_0x1fcd11(0x10e)](_0x38fcfb),_0x50146b);if(!_0x213a4e)return!0x1;let _0x2d5074=_0x13a5e6[_0x1fcd11(0x10e)](_0x2fc9c5),{unitId:_0x27196b,subUnitId:_0x3abcb8}=_0x213a4e,_0x467457=_0x2d5074['getSkeleton'](_0x27196b,_0x3abcb8);if(!_0x467457)return!0x1;let _0x43876a=_0x13a5e6[_0x1fcd11(0x10e)](_0x3f2b28),{shapeId:_0x4375dc,width:_0x280057,height:_0xeb5e0e,left:_0xf9503d,top:_0x41249b,flipX:_0x332bb6,flipY:_0x3b11c6,angle:_0x1f0a28,oldAdjustValues:_0x181092,newAdjustValues:_0x594e61,oldLineType:_0x5a8a01,newLineType:_0x2be886}=_0x50146b,_0x42f2f3=_0x43876a[_0x1fcd11(0x10a)]({'unitId':_0x27196b,'subUnitId':_0x3abcb8,'drawingId':_0x4375dc});if(!_0x42f2f3)return!0x1;let _0x42f827=_0x13a5e6[_0x1fcd11(0x10e)](K)[_0x1fcd11(0xb8)](_0x27196b,_0x3abcb8,_0x4375dc);if(!_0x42f827)return!0x1;let _0x2bbb79=_0x13a5e6[_0x1fcd11(0x10e)](_0xa3208c),_0x4aafee=_0x13a5e6[_0x1fcd11(0x10e)](_0x17d14d),_0x147444=_0x13a5e6[_0x1fcd11(0x10e)](_0x51d1bf),_0x4a8b68={..._0x42f2f3[_0x1fcd11(0xc6)],'width':_0x280057,'height':_0xeb5e0e,'left':_0xf9503d,'top':_0x41249b,'flipX':_0x332bb6,'flipY':_0x3b11c6,'angle':_0x1f0a28},_0xc544d3=_0x2d6220(_0x4a8b68,_0x467457),_0x199394=_0x45aabc(_0x4a8b68,_0x467457),_0x62abc3=_0x42f827[_0x1fcd11(0x10b)](),_0x12129d=_0x42f827['getShapeData'](),_0xd98f5d={'unitId':_0x27196b,'subUnitId':_0x3abcb8,'drawingId':_0x4375dc,'drawingType':_0x4d3e69[_0x1fcd11(0x11e)],'sheetTransform':_0xc544d3,'transform':_0x4a8b68,'data':{'shapeType':_0x2be886||_0x5a8a01||_0x62abc3,'shapeData':{..._0x12129d,'adjustValues':_0x594e61||_0x181092||(_0x12129d==null?void 0x0:_0x12129d[_0x1fcd11(0x11f)])}},'axisAlignSheetTransform':_0x199394,'allowTransform':!0x0},{undo:_0x2d42cc,redo:_0x394950,objects:_0x37adc1}=_0x43876a[_0x1fcd11(0x99)]([_0xd98f5d]),_0x552d28=_0x147444[_0x1fcd11(0x10d)]({'id':_0x6aec62['id'],'params':{'unitId':_0x27196b,'drawings':[_0xd98f5d]}}),_0x2557fe=[...(_0x229e79=_0x552d28['preRedos'])==null?[]:_0x229e79,{'id':_0x2703c3['id'],'params':{'unitId':_0x27196b,'subUnitId':_0x3abcb8,'op':_0x394950,'objects':_0x37adc1,'type':_0x534eeb['UPDATE']}},{'id':_0x5ec59a['id'],'params':[_0x27196b]},..._0x552d28[_0x1fcd11(0xd7)],{'id':X['id'],'params':{'unitId':_0x27196b,'subUnitId':_0x3abcb8,'shapeId':_0x4375dc,'shapeType':_0x2be886,'shapeData':{'adjustValues':_0x594e61}}}],_0x2a9c33=[...(_0x2a2be8=_0x552d28[_0x1fcd11(0xe1)])==null?[]:_0x2a2be8,{'id':_0x2703c3['id'],'params':{'unitId':_0x27196b,'subUnitId':_0x3abcb8,'op':_0x2d42cc,'objects':_0x37adc1,'type':_0x534eeb[_0x1fcd11(0xe7)]}},{'id':_0x5ec59a['id'],'params':[_0x27196b]},..._0x552d28[_0x1fcd11(0xce)],{'id':X['id'],'params':{'unitId':_0x27196b,'subUnitId':_0x3abcb8,'shapeId':_0x4375dc,'shapeType':_0x62abc3,'shapeData':{..._0x12129d,'adjustValues':_0x181092||(_0x12129d==null?void 0x0:_0x12129d['adjustValues'])}}}];return _0x16df04(_0x2557fe,_0x2bbb79)[_0x1fcd11(0xb2)]?(_0x4aafee[_0x1fcd11(0x125)]({'unitID':_0x27196b,'undoMutations':_0x2a9c33,'redoMutations':_0x2557fe}),!0x0):!0x1;}},$={'id':'sheet.mutation.update-shape-type','type':_0x2d4ac4[_0x1b2777(0xb1)],'handler':(_0x20977a,_0x3973ef)=>{const _0x401cb6=_0x1b2777;let {unitId:_0x2c9ef0,subUnitId:_0x434f3f,shapeType:_0x48ff2c,shapeId:_0x42bbe7,shapeData:_0x5d9185}=_0x3973ef,_0x155f2e=_0x20977a['get'](K)[_0x401cb6(0xb8)](_0x2c9ef0,_0x434f3f,_0x42bbe7);return _0x155f2e&&(_0x155f2e[_0x401cb6(0x105)](_0x48ff2c),_0x5d9185&&(_0x155f2e==null||_0x155f2e[_0x401cb6(0x11d)](_0x5d9185))),!0x0;}},ie={'id':'sheet.command.update-shape-type','type':_0x2d4ac4[_0x1b2777(0xc4)],'handler':(_0x47c15e,_0x16a230)=>{const _0x3efacb=_0x1b2777;if(!_0x16a230)return!0x1;let _0xd51bea=_0x47c15e['get'](_0xa3208c),_0x5f19ec=_0x47c15e['get'](K),_0x3b4f0a=_0x47c15e['get'](_0x17d14d),_0x16a1a4=[],_0x5d5bc9=[],{unitId:_0x1e8b93,subUnitId:_0x31a359,shapeId:_0xddb8de,shapeType:_0x544bbd,shapeData:_0x39eb48}=_0x16a230,_0x34e07b=_0x5f19ec[_0x3efacb(0xb8)](_0x1e8b93,_0x31a359,_0xddb8de);if(_0x34e07b){let _0x41c422=_0x34e07b[_0x3efacb(0x10b)](),_0x22a1d3=Object[_0x3efacb(0xc9)]({},_0x34e07b[_0x3efacb(0xa2)]()),_0x418a5b={'unitId':_0x1e8b93,'subUnitId':_0x31a359,'shapeId':_0xddb8de,'shapeType':_0x544bbd,'shapeData':_0x39eb48},_0x4d6efa={'unitId':_0x1e8b93,'subUnitId':_0x31a359,'shapeId':_0xddb8de,'shapeType':_0x41c422,'shapeData':_0x22a1d3};return _0x16a1a4['push']({'id':$['id'],'params':_0x418a5b}),_0x5d5bc9['push']({'id':$['id'],'params':_0x4d6efa}),_0x16a1a4['every'](_0x1713f9=>_0xd51bea[_0x3efacb(0x106)](_0x1713f9['id'],_0x1713f9[_0x3efacb(0xf6)]))&&_0x3b4f0a[_0x3efacb(0x125)]({'unitID':_0x1e8b93,'redoMutations':[..._0x16a1a4],'undoMutations':[..._0x5d5bc9]}),!0x0;}return!0x1;}};var ae=_0x1b2777(0x121),oe=_0x1b2777(0xab);const se={};let ce=class extends _0x543ffa{constructor(_0x511283,_0x5c10d6,_0x3489a2,_0x404e4b,_0x4fff45){const _0x122cf4=_0x1b2777;super(),this[_0x122cf4(0xd3)]=_0x511283,this['_sheetInterceptorService']=_0x5c10d6,this[_0x122cf4(0x107)]=_0x3489a2,this[_0x122cf4(0x12e)]=_0x404e4b,this[_0x122cf4(0xa6)]=_0x4fff45,this[_0x122cf4(0x136)](),this[_0x122cf4(0xd9)]();}[_0x1b2777(0x136)](){const _0x3e760e=_0x1b2777;[Y,ee,Z,Q,te,ne,re,q,J,$,X]['forEach'](_0x2c8b59=>this[_0x3e760e(0xae)](this['_commandService'][_0x3e760e(0xbc)](_0x2c8b59)));}[_0x1b2777(0xd9)](){const _0x3a0b28=_0x1b2777;this['disposeWithMe'](this[_0x3a0b28(0xa8)][_0x3a0b28(0x120)]({'getMutations':_0x1cd38b=>{const _0x515113=_0x3a0b28;if(_0x1cd38b['id']===_0x36289e['id']){let {drawings:_0x345653}=_0x1cd38b[_0x515113(0xf6)],_0x2bf523=_0x345653[_0x515113(0xc7)](_0x38638e=>_0x38638e[_0x515113(0x108)]===_0x4d3e69[_0x515113(0x11e)]);if(_0x2bf523[_0x515113(0xec)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x4d6cf5=[],_0x2571e1=[];return _0x2bf523[_0x515113(0xa4)](_0x2a908d=>{const _0x30770b=_0x515113;let {unitId:_0x4cb35d,subUnitId:_0x23ad55,drawingId:_0x229661}=_0x2a908d,_0x1f5098=this['_sheetsShapeService'][_0x30770b(0xb8)](_0x4cb35d,_0x23ad55,_0x229661);if(!_0x1f5098)throw TypeError(_0x30770b(0xd4)+_0x1f5098);_0x4d6cf5['push']({'id':J['id'],'params':{'unitId':_0x4cb35d,'subUnitId':_0x23ad55,'shapeId':_0x229661}}),_0x2571e1[_0x30770b(0xb7)]({'id':q['id'],'params':{'unitId':_0x4cb35d,'subUnitId':_0x23ad55,'shapeId':_0x229661,'shapeType':_0x1f5098[_0x30770b(0x10b)](),'shapeData':_0x1f5098[_0x30770b(0xa2)]()}});let _0x10dd64=this[_0x30770b(0x12e)]['getBasicShapeRelation'](_0x4cb35d,_0x23ad55,_0x229661);if(_0x10dd64)for(let _0x373799 of _0x10dd64){let _0x464049=_0x373799[_0x30770b(0x12d)],_0x49a385=_0x373799[_0x30770b(0xbd)],_0x339cb0=_0x49a385?{'from':void 0x0}:{'to':void 0x0},_0x25a640=_0x49a385?{'from':{'shapeId':_0x373799['shapeId'],'cxnIndex':_0x373799[_0x30770b(0x116)]}}:{'to':{'shapeId':_0x373799[_0x30770b(0x102)],'cxnIndex':_0x373799[_0x30770b(0x116)]}};_0x4d6cf5['push']({'id':X['id'],'params':{'unitId':_0x4cb35d,'subUnitId':_0x23ad55,'shapeId':_0x464049,'shapeData':{'relation':_0x339cb0}}}),_0x2571e1['push']({'id':X['id'],'params':{'unitId':_0x4cb35d,'subUnitId':_0x23ad55,'shapeId':_0x464049,'shapeData':{'relation':_0x25a640}}});}}),{'preRedos':_0x4d6cf5,'redos':[],'preUndos':[],'undos':_0x2571e1};}if(_0x1cd38b['id']===_0x6aec62['id']){let {drawings:_0x52c0a6}=_0x1cd38b[_0x515113(0xf6)],_0x220de4=_0x52c0a6[_0x515113(0xc7)](_0x2a7185=>_0x2a7185[_0x515113(0x108)]===_0x4d3e69[_0x515113(0x11e)]);if(_0x220de4[_0x515113(0xec)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x3866ee=[],_0x19db35=[];for(let _0x30aad0 of _0x220de4){let {unitId:_0x37823b,subUnitId:_0x1bbdc8,drawingId:_0x360609,transform:_0x139aa8}=_0x30aad0;if(!_0x37823b||!_0x1bbdc8||!_0x360609||!_0x139aa8)continue;let _0x25a2a0=this[_0x515113(0x12e)][_0x515113(0xb8)](_0x37823b,_0x1bbdc8,_0x360609);if(!_0x25a2a0)throw TypeError(_0x515113(0xd4)+_0x25a2a0);if(_0xc963bc(_0x25a2a0[_0x515113(0x10b)]())){let _0x5e00fe=this[_0x515113(0x12e)][_0x515113(0xff)](_0x37823b,_0x1bbdc8,_0x360609);_0x5e00fe&&(_0x3866ee[_0x515113(0xb7)]({'id':X['id'],'params':{'unitId':_0x37823b,'subUnitId':_0x1bbdc8,'shapeId':_0x360609,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x19db35['push']({'id':X['id'],'params':{'unitId':_0x37823b,'subUnitId':_0x1bbdc8,'shapeId':_0x360609,'shapeData':{'relation':_0x5e00fe}}}));}else{let _0x137bdf=this['_sheetsShapeService'][_0x515113(0x119)](_0x37823b,_0x1bbdc8,_0x360609);if(_0x137bdf&&_0x137bdf[_0x515113(0xec)]>0x0)for(let _0x106617 of _0x137bdf){let _0x5af678=_0x106617[_0x515113(0x12d)],_0x251609=_0x106617[_0x515113(0xbd)],_0x1f995c=this['_sheetsShapeService'][_0x515113(0xb8)](_0x37823b,_0x1bbdc8,_0x5af678);if(!_0x1f995c)continue;let _0x258b59=_0x1f995c[_0x515113(0xda)](),_0x24d385=_0x1f995c[_0x515113(0x138)]();_0x258b59&&_0x24d385?this[_0x515113(0xcb)](_0x37823b,_0x1bbdc8,_0x5af678,_0x1f995c,_0x258b59,_0x24d385,_0x3866ee,_0x19db35,_0x360609,_0x139aa8):this['_addLineFollowShapeUpdates'](_0x37823b,_0x1bbdc8,_0x5af678,_0x1f995c,_0x251609?_0x258b59:_0x24d385,_0x251609,_0x3866ee,_0x19db35,_0x360609,_0x139aa8);}}}return{'preRedos':[],'redos':_0x3866ee,'preUndos':_0x19db35,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x1b2777(0x111)](_0x110c37,_0x36f00f,_0x33e67b,_0x4c63e3,_0x3832f3){const _0x1ad18b=_0x1b2777;if(!_0x36f00f||!_0x33e67b)return null;let {shapeId:_0x5453af,cxnIndex:_0x3d58b1}=_0x110c37,_0x3e50af=this[_0x1ad18b(0x12e)][_0x1ad18b(0xb8)](_0x36f00f,_0x33e67b,_0x5453af);if(!_0x3e50af)return null;let _0x32f17a=this['_drawingManagerService'][_0x1ad18b(0x10a)]({'unitId':_0x36f00f,'subUnitId':_0x33e67b,'drawingId':_0x5453af});if(!(_0x32f17a!=null&&_0x32f17a['transform']))return null;let {left:_0x3442a=0x0,top:_0x427335=0x0,width:_0x59faab=0x0,height:_0x408d6e=0x0,flipX:_0x53e966=!0x1,flipY:_0x476111=!0x1,angle:_0x54f57a}=_0x32f17a[_0x1ad18b(0xc6)];if(_0x3832f3&&_0x4c63e3===_0x5453af){var _0x1f0cd2,_0x451a25,_0x40ce47,_0x5ac989,_0x23140a,_0x17fb87,_0x466ad1;_0x3442a=(_0x1f0cd2=_0x3832f3['left'])==null?_0x3442a:_0x1f0cd2,_0x427335=(_0x451a25=_0x3832f3[_0x1ad18b(0xd8)])==null?_0x427335:_0x451a25,_0x59faab=(_0x40ce47=_0x3832f3[_0x1ad18b(0x104)])==null?_0x59faab:_0x40ce47,_0x408d6e=(_0x5ac989=_0x3832f3[_0x1ad18b(0x135)])==null?_0x408d6e:_0x5ac989,_0x53e966=(_0x23140a=_0x3832f3[_0x1ad18b(0x10c)])==null?_0x53e966:_0x23140a,_0x476111=(_0x17fb87=_0x3832f3[_0x1ad18b(0xd0)])==null?_0x476111:_0x17fb87,_0x54f57a=(_0x466ad1=_0x3832f3['angle'])==null?_0x54f57a:_0x466ad1;}_0x3e50af[_0x1ad18b(0xe5)]({'width':_0x59faab,'height':_0x408d6e});let _0x4b9367=_0x3e50af['getConnectionSiteList']()[_0x1ad18b(0xd2)](_0x5f5702=>_0x5f5702['index']===_0x3d58b1);if(!_0x4b9367)return null;let _0x3d1d0c=_0x53e966?_0x59faab-_0x4b9367['x']:_0x4b9367['x'],_0x3f1d56=_0x476111?_0x408d6e-_0x4b9367['y']:_0x4b9367['y'];if(_0x54f57a!==0x0&&_0x54f57a!=null){let _0x276b5e=_0x54f57a*Math['PI']/0xb4,_0x26b722=Math[_0x1ad18b(0x9e)](_0x276b5e),_0x2e3305=Math[_0x1ad18b(0x109)](_0x276b5e),_0x270bd4=_0x59faab/0x2,_0x1b6710=_0x408d6e/0x2,_0x3af8da=_0x3d1d0c-_0x270bd4,_0x2faf0d=_0x3f1d56-_0x1b6710;_0x3d1d0c=_0x270bd4+_0x3af8da*_0x26b722-_0x2faf0d*_0x2e3305,_0x3f1d56=_0x1b6710+_0x3af8da*_0x2e3305+_0x2faf0d*_0x26b722;}_0x3d1d0c+=_0x3442a,_0x3f1d56+=_0x427335;let _0x3c4914=_0x4b9367['ang']/0xea60;_0x53e966&&(_0x3c4914=0xb4-_0x3c4914),_0x476111&&(_0x3c4914=-_0x3c4914),_0x3c4914+=_0x54f57a||0x0,_0x3c4914=(_0x3c4914%0x168+0x168)%0x168;let _0x4df82a=_0x40b288({'left':_0x3442a,'top':_0x427335,'width':_0x59faab,'height':_0x408d6e},_0x54f57a||0x0);return{'point':{'x':_0x3d1d0c,'y':_0x3f1d56},'angle':_0x3c4914,'bounds':_0x4df82a};}[_0x1b2777(0xcb)](_0x12a202,_0x198e92,_0x586d87,_0x38579f,_0x49141c,_0x5c8c89,_0x185dd1,_0x15e697,_0x5b8a24,_0xd74126){const _0x5edce5=_0x1b2777;let _0x594a81=this[_0x5edce5(0x107)][_0x5edce5(0x115)](_0x12a202,_0x198e92);if(!_0x594a81)return;let _0x4612a5=_0x38579f[_0x5edce5(0xb4)](),_0x4f7d3c=_0x38579f[_0x5edce5(0xfe)](),_0x1f8659={},_0x365c5e={};_0x4f7d3c[_0x5edce5(0xa4)](_0x2ad86d=>{const _0x4ef58b=_0x5edce5;let _0xe1cb2e=_0x38579f[_0x4ef58b(0xd1)](_0x2ad86d);_0x365c5e[_0x2ad86d]=_0xe1cb2e==null?0x0:_0xe1cb2e;});let _0x5aa757=this[_0x5edce5(0x111)](_0x49141c,_0x12a202,_0x198e92,_0x5b8a24,_0xd74126),_0x297962=this['_getConnectPointInfo'](_0x5c8c89,_0x12a202,_0x198e92,_0x5b8a24,_0xd74126);if(_0x5aa757&&_0x297962){let _0x384a55=_0x38579f[_0x5edce5(0x10b)](),_0x289467=_0x4cc214(_0x5aa757,_0x297962,_0x384a55),_0x4059cf=_0x384a55;if(_0x289467){let _0xe5e3af=_0xc69524(_0x289467,_0x38579f[_0x5edce5(0x10b)]()),_0x3c0888=this[_0x5edce5(0xa6)][_0x5edce5(0x127)](_0x12a202,_0x198e92);if(_0x3c0888&&_0x3c0888[_0x586d87]){let _0x65ccf6=_0x3c0888[_0x586d87];_0x4059cf=_0xe5e3af[_0x5edce5(0xdb)];for(let [_0x3a9e12,_0x5b5301]of Object[_0x5edce5(0xc3)](_0xe5e3af[_0x5edce5(0x11f)]))_0x1f8659[_0x3a9e12]=_0x5b5301;let _0x283c23={..._0x65ccf6[_0x5edce5(0xc6)],'width':_0xe5e3af['worldRect'][_0x5edce5(0x104)],'height':_0xe5e3af['worldRect'][_0x5edce5(0x135)],'left':_0xe5e3af[_0x5edce5(0xc5)][_0x5edce5(0x132)],'top':_0xe5e3af[_0x5edce5(0xc5)][_0x5edce5(0xd8)],'flipX':_0xe5e3af['worldRect'][_0x5edce5(0x10c)],'flipY':_0xe5e3af['worldRect'][_0x5edce5(0xd0)],'angle':_0xe5e3af[_0x5edce5(0xe2)]},_0x39a2c0=_0x2d6220(_0x283c23,_0x594a81),_0x5bde46=_0x45aabc(_0x283c23,_0x594a81),_0x296621={'unitId':_0x12a202,'subUnitId':_0x198e92,'drawingType':_0x4d3e69['DRAWING_SHAPE'],'drawingId':_0x586d87,'transform':_0x283c23,'sheetTransform':_0x39a2c0,'axisAlignSheetTransform':_0x5bde46},{unitId:_0x4c9316,subUnitId:_0x3d4148,undo:_0x2b9d07,redo:_0x112041,objects:_0x292cfa}=this[_0x5edce5(0xa6)]['getBatchUpdateOp']([_0x296621]);_0x185dd1[_0x5edce5(0xb7)]({'id':_0x2703c3['id'],'params':{'unitId':_0x4c9316,'subUnitId':_0x3d4148,'op':_0x112041,'objects':_0x292cfa,'type':_0x534eeb[_0x5edce5(0xe7)]}}),_0x15e697[_0x5edce5(0xb7)]({'id':_0x2703c3['id'],'params':{'unitId':_0x4c9316,'subUnitId':_0x3d4148,'op':_0x2b9d07,'objects':_0x292cfa,'type':_0x534eeb[_0x5edce5(0xe7)]}});}_0x38579f[_0x5edce5(0xf4)]();}_0x185dd1[_0x5edce5(0xb7)]({'id':X['id'],'params':{'unitId':_0x12a202,'subUnitId':_0x198e92,'shapeId':_0x586d87,'shapeType':_0x4059cf,'shapeData':{'adjustValues':_0x1f8659,'relation':_0x4612a5}}}),_0x15e697['push']({'id':X['id'],'params':{'unitId':_0x12a202,'subUnitId':_0x198e92,'shapeId':_0x586d87,'shapeType':_0x384a55,'shapeData':{'adjustValues':_0x365c5e,'relation':_0x4612a5}}});}}[_0x1b2777(0x137)](_0x3aa200,_0x587d7e,_0x4144f7,_0x1c0dff,_0x4c6ed9,_0x4452aa,_0x34c43b,_0x5232bf,_0x538ad8,_0x5340da){const _0x2d7ba0=_0x1b2777;var _0x3f10a4;if(!_0x4c6ed9)return;let _0x1ceda0=this['_sheetSkeletonService'][_0x2d7ba0(0x115)](_0x3aa200,_0x587d7e);if(!_0x1ceda0)return;let _0x325687=(_0x3f10a4=this['_drawingManagerService'][_0x2d7ba0(0x10a)]({'unitId':_0x3aa200,'subUnitId':_0x587d7e,'drawingId':_0x538ad8}))==null?void 0x0:_0x3f10a4[_0x2d7ba0(0xc6)];if(!_0x325687)return;let _0x3340b6=_0x325687[_0x2d7ba0(0x132)]!==_0x5340da['left']||_0x325687[_0x2d7ba0(0xd8)]!==_0x5340da['top'],_0x10dddc=_0x325687[_0x2d7ba0(0x104)]!==_0x5340da[_0x2d7ba0(0x104)]||_0x325687[_0x2d7ba0(0x135)]!==_0x5340da[_0x2d7ba0(0x135)],_0x19573b=_0x325687[_0x2d7ba0(0x10c)]!==_0x5340da[_0x2d7ba0(0x10c)]||_0x325687['flipY']!==_0x5340da[_0x2d7ba0(0xd0)],_0x1b856e=_0x325687[_0x2d7ba0(0xe8)]!==_0x5340da['angle'];if(_0x3340b6&&!_0x10dddc&&!_0x19573b&&!_0x1b856e){var _0x493f59,_0x2306d6,_0x3b96e9,_0x49ce6d;let _0x2d847c=((_0x493f59=_0x5340da[_0x2d7ba0(0x132)])==null?0x0:_0x493f59)-((_0x2306d6=_0x325687[_0x2d7ba0(0x132)])==null?0x0:_0x2306d6),_0x401d65=((_0x3b96e9=_0x5340da[_0x2d7ba0(0xd8)])==null?0x0:_0x3b96e9)-((_0x49ce6d=_0x325687[_0x2d7ba0(0xd8)])==null?0x0:_0x49ce6d),_0xcf994e=this[_0x2d7ba0(0xa6)][_0x2d7ba0(0x127)](_0x3aa200,_0x587d7e);if(_0xcf994e&&_0xcf994e[_0x4144f7]){var _0x38b077,_0x4e0711,_0x556193,_0x2a9f3a;let _0x4c4b43=_0xcf994e[_0x4144f7],_0x5e7afc={..._0x4c4b43['transform'],'left':((_0x38b077=(_0x4e0711=_0x4c4b43['transform'])==null?void 0x0:_0x4e0711['left'])==null?0x0:_0x38b077)+_0x2d847c,'top':((_0x556193=(_0x2a9f3a=_0x4c4b43[_0x2d7ba0(0xc6)])==null?void 0x0:_0x2a9f3a['top'])==null?0x0:_0x556193)+_0x401d65},_0x2ea5f8=_0x2d6220(_0x5e7afc,_0x1ceda0),_0x48c653=_0x45aabc(_0x5e7afc,_0x1ceda0),_0x285aa0={'unitId':_0x3aa200,'subUnitId':_0x587d7e,'drawingType':_0x4d3e69[_0x2d7ba0(0x11e)],'drawingId':_0x4144f7,'transform':_0x5e7afc,'sheetTransform':_0x2ea5f8,'axisAlignSheetTransform':_0x48c653},{unitId:_0x30c7b3,subUnitId:_0x948afe,undo:_0x17153e,redo:_0x20264b,objects:_0x59dbf6}=this['_drawingManagerService'][_0x2d7ba0(0x99)]([_0x285aa0]);_0x34c43b['push']({'id':_0x2703c3['id'],'params':{'unitId':_0x30c7b3,'subUnitId':_0x948afe,'op':_0x20264b,'objects':_0x59dbf6,'type':_0x534eeb[_0x2d7ba0(0xe7)]}}),_0x5232bf[_0x2d7ba0(0xb7)]({'id':_0x2703c3['id'],'params':{'unitId':_0x30c7b3,'subUnitId':_0x948afe,'op':_0x17153e,'objects':_0x59dbf6,'type':_0x534eeb[_0x2d7ba0(0xe7)]}});}}else{let _0x2b0d6f=_0x1c0dff[_0x2d7ba0(0xda)](),_0x493218=_0x1c0dff[_0x2d7ba0(0x138)]();this[_0x2d7ba0(0xcb)](_0x3aa200,_0x587d7e,_0x4144f7,_0x1c0dff,_0x2b0d6f,_0x493218,_0x34c43b,_0x5232bf,_0x538ad8,_0x5340da);}}};ce=G([W(0x0,_0xa3208c),W(0x1,_0x19216a(_0x51d1bf)),W(0x2,_0x19216a(_0x2fc9c5)),W(0x3,_0x19216a(K)),W(0x4,_0x19216a(_0x5b1dc7))],ce);let le=class extends _0x11a17d{constructor(_0x139a9b=se,_0x52b822,_0x18f9fb,_0xffa4e0){const _0x49c0ef=_0x1b2777;super(),this['_config']=_0x139a9b,this[_0x49c0ef(0x133)]=_0x52b822,this[_0x49c0ef(0xd3)]=_0x18f9fb,this['_configService']=_0xffa4e0;let {..._0x37d887}=_0x14640d({},se,this['_config']);this[_0x49c0ef(0xf0)][_0x49c0ef(0xe6)]('sheets-shape.config',_0x37d887);}[_0x1b2777(0xca)](){const _0x5e6648=_0x1b2777;let _0x11dc81=this[_0x5e6648(0x133)];[[U],[K],[ce]][_0x5e6648(0xa4)](_0x110116=>_0x11dc81['add'](_0x110116)),_0x29f0fc(_0x11dc81,[[K],[ce]]);}};H(le,_0x1b2777(0xfd),_0x37476a[_0x1b2777(0x11b)]),H(le,'pluginName',_0x1b2777(0xfa)),H(le,_0x1b2777(0x131),ae),H(le,_0x1b2777(0xac),oe),le=G([_0x2c7cf6(_0x17d981),W(0x1,_0x19216a(_0x180637)),W(0x2,_0xa3208c),W(0x3,_0x1802b3)],le);function _0x5220(){const _0x4fb7a2=['removeShape','getShapeRelation','position','_ensureShapeModelManager','push','getShapeModel','3iJNeah','set','resizeEnabled','registerCommand','isFrom','call','getId','204uZQgjg','shapeName','addShape','entries','COMMAND','worldRect','transform','filter','sheet.command.set-shape-drawing-data','assign','onStarting','_addLineRerouteUpdates','getShapeDisplayNames','rotateEnabled','undos','sheet.mutation.update-shape-data','flipY','getAdjustValueByName','find','_commandService','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','preRedos','INSERT','redos','top','_initCommandInterceptor','getStartConnectInfo','lineType','hasShape','string','borderEnabled','values','isLineShape','preUndos','rotation','_linesIds','sheet.command.update-line-shape-resize','updateContext','setConfig','UPDATE','angle','sheet.mutation.remove-shape','getCellWithCoordByIndex','toJSON','length','fromJSON','getOwnPropertyDescriptor','_disposed','_configService','shapeData','data','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','removeLinePoints','fill','params','11845287OGCLlc','4756316sfbUym','startY','SHEET_SHAPE_PLUGIN','range','decorate','type','getAdjustNames','getLineShapeRelation','5694540zqocwC','_initSnapshot','shapeId','562FpraEj','width','setShapeType','syncExecuteCommand','_sheetSkeletonService','drawingType','sin','getDrawingByParam','getShapeType','flipX','onCommandExecute','get','delete','10nAzoIZ','_getConnectPointInfo','_resourcesManagerService','_shapes','clear','getSkeleton','cxnIndex','getName','object','getBasicShapeRelation','ensureSkeleton','UNIVER_SHEET','constructor','setShapeData','DRAWING_SHAPE','adjustValues','interceptCommand','@univerjs-pro/sheets-shape','dispose','5358WGvjLE','getCellIndexAndOffsetByPosition','pushUndoRedo','getShapeTypeById','getDrawingData','sheet.command.update-connector-relation','sheet.command.toggle-shape-flip','8023112UAnvuW','getShapeTextData','getShapeDataById','lineShapeId','_sheetsShapeService','insertShape','map','packageName','left','_injector','has','height','_initCommands','_addLineFollowShapeUpdates','getEndConnectInfo','_deserializeShapeForUnit','relation','function','getBatchUpdateOp','sheet.command.insert-shape','3017ItWVgg','47671305XTFKFT','_serializeShapeForUnit','cos','keys','from','sheet.command.set-shape-rotate','getShapeData','prototype','forEach','parse','_drawingManagerService','startX','_sheetInterceptorService','_shapeModelManagerMap','registerPluginResource','1.0.0-alpha.1','version','symbol','disposeWithMe','REMOVE','defineProperty','MUTATION','result'];_0x5220=function(){return _0x4fb7a2;};return _0x5220();}export{R as DEFAULT_SHAPE_HEIGHT,L as DEFAULT_SHAPE_WIDTH,Y as InsertShapeCommand,q as InsertSheetsShapeMutation,J as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,Q as SetSheetsShapeRotateCommand,te as SetSheetsShapeTextVerticalToggleCommand,K as SheetsShapeService,Z as ToggleSheetsShapeFlipCommand,le as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,X as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,$ as UpdateSheetsShapeTypeMutation};
|
|
1
|
+
const _0x3f997f=_0x179a;(function(_0x3a96c0,_0x47f223){const _0x23bd79=_0x179a,_0x5ea9b8=_0x3a96c0();while(!![]){try{const _0x4538d3=parseInt(_0x23bd79(0x276))/0x1+-parseInt(_0x23bd79(0x237))/0x2+parseInt(_0x23bd79(0x232))/0x3*(-parseInt(_0x23bd79(0x22b))/0x4)+parseInt(_0x23bd79(0x21c))/0x5+parseInt(_0x23bd79(0x1ee))/0x6*(-parseInt(_0x23bd79(0x242))/0x7)+parseInt(_0x23bd79(0x239))/0x8*(-parseInt(_0x23bd79(0x225))/0x9)+parseInt(_0x23bd79(0x1f0))/0xa;if(_0x4538d3===_0x47f223)break;else _0x5ea9b8['push'](_0x5ea9b8['shift']());}catch(_0x2c0935){_0x5ea9b8['push'](_0x5ea9b8['shift']());}}}(_0x5779,0xb64aa));import{ShapeModel as _0x1f618e,computeConnectorRouteLayout as _0x11fbdc,createUniqueShapeName as _0x124378,getBasicShapeRotateBound as _0x4c4c2c,isConnectorShape as _0x163cf5,routeConnectorLineShape as _0x4d3188}from'@univerjs-pro/engine-shape';import{CommandType as _0x5569b6,DependentOn as _0x5127bc,Disposable as _0x55006e,DrawingTypeEnum as _0x53e1b5,ICommandService as _0x4244e2,IConfigService as _0x1a7ac4,IResourceManagerService as _0x3cdc6d,IUndoRedoService as _0x1cf9fc,IUniverInstanceService as _0x2900d8,Inject as _0x3f9e01,Injector as _0x48d8f4,Plugin as _0x108e80,UniverInstanceType as _0x186b43,generateRandomId as _0xf5a382,merge as _0x39594a,sequenceExecute as _0x3a0205,touchDependencies as _0x5eb370}from'@univerjs/core';import{SheetInterceptorService as _0x296b96,SheetSkeletonService as _0x4fcab3,getSheetCommandTarget as _0x59efd3}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x317e79,DrawingApplyType as _0x1c747c,ISheetDrawingService as _0x4c93e3,InsertSheetDrawingCommand as _0x5bcbb6,RemoveSheetDrawingCommand as _0x511e31,SetDrawingApplyMutation as _0xaa8efd,SetSheetDrawingCommand as _0x3db37e,transformToAxisAlignPosition as _0x1b03b3,transformToDrawingPosition as _0x42d0e0}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x150078}from'@univerjs-pro/license';import{IDrawingManagerService as _0x189d45}from'@univerjs/drawing';const L=0xc8,R=0xc8;function z(_0x5d7d13){'@babel/helpers - typeof';const _0x43e131=_0x179a;return z=typeof Symbol==_0x43e131(0x1fa)&&typeof Symbol[_0x43e131(0x24e)]=='symbol'?function(_0x2911d4){return typeof _0x2911d4;}:function(_0x4d71e4){const _0x2bf7ee=_0x43e131;return _0x4d71e4&&typeof Symbol==_0x2bf7ee(0x1fa)&&_0x4d71e4[_0x2bf7ee(0x230)]===Symbol&&_0x4d71e4!==Symbol[_0x2bf7ee(0x258)]?_0x2bf7ee(0x248):typeof _0x4d71e4;},z(_0x5d7d13);}function B(_0x4a3c32,_0x38f456){const _0x56e708=_0x179a;if(z(_0x4a3c32)!=_0x56e708(0x23d)||!_0x4a3c32)return _0x4a3c32;var _0x2e6e44=_0x4a3c32[Symbol['toPrimitive']];if(_0x2e6e44!==void 0x0){var _0x4c8a32=_0x2e6e44[_0x56e708(0x1e4)](_0x4a3c32,_0x38f456||'default');if(z(_0x4c8a32)!=_0x56e708(0x23d))return _0x4c8a32;throw TypeError(_0x56e708(0x23e));}return(_0x38f456===_0x56e708(0x252)?String:Number)(_0x4a3c32);}function V(_0x5ded41){const _0x3b616e=_0x179a;var _0x3d466a=B(_0x5ded41,'string');return z(_0x3d466a)==_0x3b616e(0x248)?_0x3d466a:_0x3d466a+'';}function H(_0x207df4,_0x5171fb,_0x10de5b){return(_0x5171fb=V(_0x5171fb))in _0x207df4?Object['defineProperty'](_0x207df4,_0x5171fb,{'value':_0x10de5b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x207df4[_0x5171fb]=_0x10de5b,_0x207df4;}function _0x179a(_0x27cc5c,_0x185eb9){_0x27cc5c=_0x27cc5c-0x1d9;const _0x5779b0=_0x5779();let _0x179a9e=_0x5779b0[_0x27cc5c];return _0x179a9e;}var U=class extends _0x55006e{constructor(){const _0x3891b2=_0x179a;super(),H(this,_0x3891b2(0x217),new Map()),H(this,_0x3891b2(0x25c),new Set()),H(this,_0x3891b2(0x264),new Set());}[_0x3f997f(0x202)](_0x2e4cdb,_0x2be17a,_0x1495c3,_0x25d11c){const _0x444483=_0x3f997f;let _0x19ea8b=new _0x1f618e(_0x2e4cdb,_0x2be17a,_0x1495c3,_0x25d11c);return this[_0x444483(0x217)][_0x444483(0x211)](_0x2be17a,_0x19ea8b),_0x163cf5(_0x2e4cdb)&&this[_0x444483(0x25c)][_0x444483(0x224)](_0x2be17a),_0x19ea8b;}[_0x3f997f(0x21e)](_0x31ae77){const _0x334c63=_0x3f997f;let _0x16cd3c=[];for(let _0x3c4708 of this[_0x334c63(0x25c)]){let _0x253565=this[_0x334c63(0x217)][_0x334c63(0x220)](_0x3c4708);if(_0x253565){let _0x358824=_0x253565[_0x334c63(0x20c)]();if(_0x358824){var _0x3998f3,_0x54013e;((_0x3998f3=_0x358824[_0x334c63(0x1f2)])==null?void 0x0:_0x3998f3[_0x334c63(0x26b)])===_0x31ae77&&_0x16cd3c[_0x334c63(0x228)]({..._0x358824[_0x334c63(0x1f2)],'lineShapeId':_0x3c4708,'isFrom':!0x0}),((_0x54013e=_0x358824['to'])==null?void 0x0:_0x54013e[_0x334c63(0x26b)])===_0x31ae77&&_0x16cd3c[_0x334c63(0x228)]({..._0x358824['to'],'lineShapeId':_0x3c4708,'isFrom':!0x1});}}}return _0x16cd3c;}[_0x3f997f(0x25f)](_0x4f63ae){const _0x1eb9a5=_0x3f997f;let _0x507b0d=this[_0x1eb9a5(0x217)][_0x1eb9a5(0x220)](_0x4f63ae);if(_0x507b0d)return _0x507b0d[_0x1eb9a5(0x20c)]();}[_0x3f997f(0x25a)](_0x3bc2d0){const _0x2ed68b=_0x3f997f;let _0x4258bb=this[_0x2ed68b(0x217)][_0x2ed68b(0x220)](_0x3bc2d0);if(_0x4258bb)return _0x4258bb[_0x2ed68b(0x25a)]();}[_0x3f997f(0x273)](_0x33a3ac){const _0x40c765=_0x3f997f;return this[_0x40c765(0x217)][_0x40c765(0x1ed)](_0x33a3ac);}[_0x3f997f(0x23a)](){const _0x1c34fd=_0x3f997f;return Array[_0x1c34fd(0x1f2)](this[_0x1c34fd(0x217)][_0x1c34fd(0x1fd)]())['map'](_0x4b94b8=>_0x4b94b8[_0x1c34fd(0x234)]()||_0x4b94b8[_0x1c34fd(0x1eb)]());}[_0x3f997f(0x1fe)](_0x5dbfde){const _0x202041=_0x3f997f;let _0x12b6a1=this[_0x202041(0x217)][_0x202041(0x220)](_0x5dbfde);_0x12b6a1&&(_0x163cf5(_0x12b6a1[_0x202041(0x25a)]())&&this['_linesIds'][_0x202041(0x26f)](_0x5dbfde),this[_0x202041(0x217)]['delete'](_0x5dbfde));}[_0x3f997f(0x266)](){const _0x5ec2ad=_0x3f997f;let _0x5be94f=[];return this[_0x5ec2ad(0x217)][_0x5ec2ad(0x209)](_0xf7e022=>{const _0xeee8eb=_0x5ec2ad;_0x5be94f[_0xeee8eb(0x228)](_0xf7e022['toJSON']());}),_0x5be94f;}[_0x3f997f(0x1f6)](_0x5e9c02){const _0x347e98=_0x3f997f;for(let _0x195603 of _0x5e9c02){let {id:_0x284607,shapeType:_0xd6f552,name:_0x9349b7}=_0x195603,_0x264b77=this[_0x347e98(0x202)](_0xd6f552,_0x284607,_0x195603[_0x347e98(0x24d)],_0x9349b7);_0x264b77&&_0x264b77['isLineShape']()&&this[_0x347e98(0x25c)]['add'](_0x284607);}}[_0x3f997f(0x271)](){const _0x12ab43=_0x3f997f;this[_0x12ab43(0x26c)]||(this['_shapes'][_0x12ab43(0x209)](_0x147846=>{const _0x10a9dc=_0x12ab43;_0x147846[_0x10a9dc(0x271)]();}),this[_0x12ab43(0x217)][_0x12ab43(0x24c)](),this[_0x12ab43(0x25c)][_0x12ab43(0x24c)](),this[_0x12ab43(0x264)][_0x12ab43(0x24c)](),super[_0x12ab43(0x271)]());}};function W(_0x502cf4,_0x1c84a8){return function(_0xe106f6,_0x2cdd25){_0x1c84a8(_0xe106f6,_0x2cdd25,_0x502cf4);};}function _0x5779(){const _0x516f57=['sheet.mutation.update-shape-data','cos','getShapeRelation','_sheetsShapeService','rotation','sheet.mutation.insert-shape','redos','set','flipY','setShapeType','position','width','getCellIndexAndOffsetByPosition','_shapes','_initCommands','COMMAND','sheets-shape.config','getAdjustValueByName','2015960zWDbWZ','onStarting','getBasicShapeRelation','MUTATION','get','insertShape','cxnIndex','_config','add','25938vHHxyU','left','getDrawingData','push','sheet.command.toggle-shape-flip','REMOVE','4qIkEnd','getShapeData','1.0.0-alpha.2','_getConnectPointInfo','shapeName','constructor','parse','1487172nSiqme','preUndos','getName','_injector','UPDATE','1198758byRxRA','disposeWithMe','856MDcVbi','getShapeDisplayNames','getStartConnectInfo','sheet.command.set-shape-rotate','object','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_shapeModelManagerMap','startX','onCommandExecute','14CMyWOv','registerCommand','sheet.mutation.update-shape-type','params','getCellWithCoordByIndex','SHEET_SHAPE_PLUGIN','symbol','transform','every','_resourcesManagerService','clear','shapeData','iterator','getSkeleton','_sheetInterceptorService','getAdjustNames','string','getShapeModel','sheet.command.update-line-shape-resize','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','_serializeShapeForUnit','sheet.command.set-shape-text-vertical-toggle','prototype','top','getShapeType','lineShapeId','_linesIds','keys','pluginName','getLineShapeRelation','sheet.command.insert-shape','relation','rotateEnabled','getShapeDataById','_groupIds','fill','toJSON','lineType','_addLineRerouteUpdates','entries','setShapeData','shapeId','_disposed','getShapeTextData','getDrawingByParam','delete','_sheetSkeletonService','dispose','getEndConnectInfo','hasShape','packageName','find','1043931jpSpEZ','decorate','getOwnPropertyDescriptor','sheet.command.update-connector-relation','preRedos','_commandService','assign','result','interceptCommand','getBatchUpdateOp','setConfig','ensureSkeleton','_deserializeShapeForUnit','call','DRAWING_SHAPE','resizeEnabled','_configService','ang','undos','type','getId','sheet.mutation.remove-shape','has','2764938GGnPfE','filter','16246660DUrcvZ','pushUndoRedo','from','_ensureShapeModelManager','_initSnapshot','sin','fromJSON','angle','_addLineFollowShapeUpdates','borderEnabled','function','range','worldRect','values','removeShape','registerPluginResource','isFrom','height','addShape','adjustValues','data','updateContext','flipX','_drawingManagerService','length','forEach'];_0x5779=function(){return _0x516f57;};return _0x5779();}function G(_0x45b701,_0x3ce31c,_0x4af5af,_0x401be5){const _0x359cae=_0x3f997f;var _0x1f4dcb=arguments[_0x359cae(0x208)],_0xcc02de=_0x1f4dcb<0x3?_0x3ce31c:_0x401be5===null?_0x401be5=Object[_0x359cae(0x1d9)](_0x3ce31c,_0x4af5af):_0x401be5,_0x1dea35;if(typeof Reflect==_0x359cae(0x23d)&&typeof Reflect['decorate']==_0x359cae(0x1fa))_0xcc02de=Reflect[_0x359cae(0x277)](_0x45b701,_0x3ce31c,_0x4af5af,_0x401be5);else{for(var _0x4a4aa5=_0x45b701[_0x359cae(0x208)]-0x1;_0x4a4aa5>=0x0;_0x4a4aa5--)(_0x1dea35=_0x45b701[_0x4a4aa5])&&(_0xcc02de=(_0x1f4dcb<0x3?_0x1dea35(_0xcc02de):_0x1f4dcb>0x3?_0x1dea35(_0x3ce31c,_0x4af5af,_0xcc02de):_0x1dea35(_0x3ce31c,_0x4af5af))||_0xcc02de);}return _0x1f4dcb>0x3&&_0xcc02de&&Object['defineProperty'](_0x3ce31c,_0x4af5af,_0xcc02de),_0xcc02de;}let K=class extends _0x55006e{constructor(_0x301074){const _0x3112bd=_0x3f997f;super(),this['_resourcesManagerService']=_0x301074,H(this,'_shapeModelManagerMap',new Map()),this[_0x3112bd(0x1f4)]();}['_ensureShapeModelManager'](_0x365421,_0x5f9a1e){const _0x1e1ced=_0x3f997f;let _0x15bac2=this[_0x1e1ced(0x23f)][_0x1e1ced(0x220)](_0x365421);_0x15bac2||(_0x15bac2=new Map(),this[_0x1e1ced(0x23f)][_0x1e1ced(0x211)](_0x365421,_0x15bac2));let _0xf18491=_0x15bac2[_0x1e1ced(0x220)](_0x5f9a1e);return _0xf18491||(_0xf18491=new U(),_0x15bac2[_0x1e1ced(0x211)](_0x5f9a1e,_0xf18491)),_0xf18491;}[_0x3f997f(0x221)](_0x52abc2,_0xe21f3a,_0x2cd375,_0x3cb191,_0x55087a,_0x7a2220){this['_ensureShapeModelManager'](_0x52abc2,_0xe21f3a)['addShape'](_0x2cd375,_0x3cb191,_0x55087a,_0x7a2220);}['removeShape'](_0x120be4,_0x123218,_0x2b32ae){const _0x1bb578=_0x3f997f;this[_0x1bb578(0x1f3)](_0x120be4,_0x123218)[_0x1bb578(0x1fe)](_0x2b32ae);}['getBasicShapeType'](_0x2191bc,_0x317c4a,_0x1384e8){const _0x4d4c6e=_0x3f997f;return this['_ensureShapeModelManager'](_0x2191bc,_0x317c4a)[_0x4d4c6e(0x25a)](_0x1384e8);}[_0x3f997f(0x25a)](_0x480d84,_0x3cd9bd,_0x5beb7e){const _0x3b2376=_0x3f997f;return this['_ensureShapeModelManager'](_0x480d84,_0x3cd9bd)[_0x3b2376(0x25a)](_0x5beb7e);}['hasShape'](_0x16c452,_0x309a5b,_0x51fe90){const _0x4e38c1=_0x3f997f;return this['_ensureShapeModelManager'](_0x16c452,_0x309a5b)[_0x4e38c1(0x273)](_0x51fe90);}['getShapeTypeById'](_0x5c06be,_0x5ba15f,_0x5e9904){const _0x5c4d48=_0x3f997f;return this[_0x5c4d48(0x1f3)](_0x5c06be,_0x5ba15f)['getShapeType'](_0x5e9904);}[_0x3f997f(0x263)](_0x25661a,_0x2a2141,_0x241291){const _0x5eabca=_0x3f997f;let _0x3466cb=this[_0x5eabca(0x1f3)](_0x25661a,_0x2a2141);if(!_0x3466cb[_0x5eabca(0x25a)](_0x241291))return;let _0x53caa6=_0x3466cb[_0x5eabca(0x217)][_0x5eabca(0x220)](_0x241291);if(_0x53caa6)return _0x53caa6[_0x5eabca(0x22c)]();}[_0x3f997f(0x23a)](_0x5dc314,_0x508e67){const _0x1bc57d=_0x3f997f;return this[_0x1bc57d(0x1f3)](_0x5dc314,_0x508e67)[_0x1bc57d(0x23a)]();}[_0x3f997f(0x253)](_0x2b2cc1,_0x5f09f8,_0x195165){const _0xafa0c2=_0x3f997f;return this[_0xafa0c2(0x1f3)](_0x2b2cc1,_0x5f09f8)[_0xafa0c2(0x217)][_0xafa0c2(0x220)](_0x195165);}[_0x3f997f(0x21e)](_0x58899b,_0x28114d,_0xd54fe8){const _0x31fb4d=_0x3f997f;return this[_0x31fb4d(0x1f3)](_0x58899b,_0x28114d)[_0x31fb4d(0x21e)](_0xd54fe8);}[_0x3f997f(0x25f)](_0x4ed1da,_0x460382,_0x5dbba4){const _0x4a3703=_0x3f997f;let _0x411b8f=this[_0x4a3703(0x1f3)](_0x4ed1da,_0x460382)['_shapes'][_0x4a3703(0x220)](_0x5dbba4);if(_0x411b8f)return _0x411b8f[_0x4a3703(0x20c)]();}[_0x3f997f(0x213)](){}[_0x3f997f(0x256)](_0x2a0ee6){const _0x394f6c=_0x3f997f;let _0x49873f={},_0x16de56=this[_0x394f6c(0x23f)]['get'](_0x2a0ee6);return _0x16de56&&_0x16de56[_0x394f6c(0x209)]((_0x55ee04,_0x1a625b)=>{const _0x3bc862=_0x394f6c;let _0x2a36fd=_0x55ee04['toJSON']();_0x2a36fd[_0x3bc862(0x208)]>0x0&&(_0x49873f[_0x1a625b]=_0x2a36fd);}),JSON['stringify'](_0x49873f);}[_0x3f997f(0x1e3)](_0xe889a9,_0x5b98ad){const _0x4952b4=_0x3f997f;Object[_0x4952b4(0x25d)](_0x5b98ad)[_0x4952b4(0x209)](_0x1c9863=>{const _0x26c8ad=_0x4952b4;this[_0x26c8ad(0x1f3)](_0xe889a9,_0x1c9863)[_0x26c8ad(0x1f6)](_0x5b98ad[_0x1c9863]);});}['toJSON'](){const _0x3d8578=_0x3f997f;let _0x46656e={};return this[_0x3d8578(0x23f)][_0x3d8578(0x209)]((_0x5c476d,_0x35916a)=>{const _0x204958=_0x3d8578;_0x46656e[_0x35916a]={},_0x5c476d[_0x204958(0x209)]((_0x26de09,_0x438ea4)=>{const _0xabdd8c=_0x204958;_0x46656e[_0x35916a][_0x438ea4]=_0x26de09[_0xabdd8c(0x266)]();});}),_0x46656e;}[_0x3f997f(0x1f6)](_0x405a37){Object['keys'](_0x405a37)['forEach'](_0x6c6d91=>{const _0x500412=_0x179a;let _0xe8e986=_0x405a37[_0x6c6d91];Object[_0x500412(0x25d)](_0xe8e986)[_0x500412(0x209)](_0x351613=>{const _0x540ecb=_0x500412;this[_0x540ecb(0x1f3)](_0x6c6d91,_0x351613)['fromJSON'](_0xe8e986[_0x351613]);});});}[_0x3f997f(0x1f4)](){const _0x1155ab=_0x3f997f;this[_0x1155ab(0x24b)][_0x1155ab(0x1ff)]({'pluginName':_0x1155ab(0x247),'businesses':[_0x186b43['UNIVER_SHEET']],'toJson':_0xbe39eb=>this[_0x1155ab(0x256)](_0xbe39eb),'parseJson':_0x55070c=>JSON[_0x1155ab(0x231)](_0x55070c),'onLoad':(_0x14a296,_0x504161)=>{const _0x3f5e20=_0x1155ab;this[_0x3f5e20(0x1e3)](_0x14a296,_0x504161);},'onUnLoad':_0x129930=>{const _0x33fe8a=_0x1155ab;let _0x436456=this[_0x33fe8a(0x23f)][_0x33fe8a(0x220)](_0x129930);_0x436456&&(_0x436456['forEach'](_0x3c7082=>{const _0x5808b3=_0x33fe8a;_0x3c7082[_0x5808b3(0x271)]();}),this[_0x33fe8a(0x23f)]['delete'](_0x129930));}});}[_0x3f997f(0x271)](){const _0x39dd48=_0x3f997f;this[_0x39dd48(0x23f)][_0x39dd48(0x209)](_0x3294ef=>{const _0x577af6=_0x39dd48;_0x3294ef[_0x577af6(0x209)](_0x6535c=>{const _0x22266a=_0x577af6;_0x6535c[_0x22266a(0x271)]();});});}};K=G([W(0x0,_0x3cdc6d)],K);const q={'id':_0x3f997f(0x20f),'type':_0x5569b6['MUTATION'],'handler':(_0xb3e613,_0x17d9fa)=>{const _0x1c1ff5=_0x3f997f;let {unitId:_0x134951,subUnitId:_0xdbca35,shapeType:_0x49bd0f,shapeId:_0x39dea5,shapeName:_0x20d3c3,shapeData:_0x2b15e9}=_0x17d9fa;return _0xb3e613[_0x1c1ff5(0x220)](K)[_0x1c1ff5(0x221)](_0x134951,_0xdbca35,_0x49bd0f,_0x39dea5,_0x2b15e9,_0x20d3c3),!0x0;}},J={'id':_0x3f997f(0x1ec),'type':_0x5569b6['MUTATION'],'handler':(_0x1f6aff,_0x452790)=>{const _0x1802f3=_0x3f997f;let {unitId:_0x32fd9c,subUnitId:_0x207728,shapeId:_0x171654}=_0x452790;return _0x1f6aff[_0x1802f3(0x220)](K)[_0x1802f3(0x1fe)](_0x32fd9c,_0x207728,_0x171654),!0x0;}},Y={'type':_0x5569b6[_0x3f997f(0x219)],'id':_0x3f997f(0x260),'handler':(_0xcc8c70,_0x23fad2)=>{const _0x3c71ea=_0x3f997f;var _0x380a6a,_0x2638ed,_0x21c98f;let _0x27ae84=_0x59efd3(_0xcc8c70[_0x3c71ea(0x220)](_0x2900d8),_0x23fad2);if(!_0x27ae84)return!0x1;let _0x3af437=_0xcc8c70[_0x3c71ea(0x220)](_0x4fcab3),{unitId:_0x491f5d,subUnitId:_0x4bb950}=_0x27ae84,_0x4e3add=_0x3af437[_0x3c71ea(0x1e2)](_0x491f5d,_0x4bb950);if(!_0x4e3add)return!0x1;let _0x56efea=_0xcc8c70[_0x3c71ea(0x220)](_0x4244e2),_0x46734a=_0xcc8c70[_0x3c71ea(0x220)](_0x1cf9fc),_0x4f55f0=_0xcc8c70[_0x3c71ea(0x220)](_0x296b96),_0x40b3eb=_0xcc8c70[_0x3c71ea(0x220)](_0x4c93e3),_0x572a5d=_0xcc8c70[_0x3c71ea(0x220)](K),{shapeType:_0x337d5b,shapeData:_0x17b0ea}=_0x23fad2,_0x1b8c8f=_0x23fad2[_0x3c71ea(0x26b)]||_0xf5a382(),_0x4496e8={'unitId':_0x491f5d,'subUnitId':_0x4bb950,'shapeId':_0x1b8c8f,'shapeName':(_0x380a6a=_0x23fad2[_0x3c71ea(0x22f)])==null?_0x124378(_0x337d5b,_0x572a5d[_0x3c71ea(0x23a)](_0x491f5d,_0x4bb950)):_0x380a6a,'shapeType':_0x337d5b,'shapeData':_0x17b0ea},_0xdf2ea4=_0x23fad2[_0x3c71ea(0x215)]||0xc8,_0x2ed8bd=_0x23fad2[_0x3c71ea(0x201)]||0xc8,_0x250494=0x0,_0x2720d4=0x0,_0x4ca93b={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x5c1f3b={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x23fad2[_0x3c71ea(0x214)]){let {x:_0x5529ea,y:_0x3aa7e0}=_0x23fad2[_0x3c71ea(0x214)];_0x250494=_0x5529ea,_0x2720d4=_0x3aa7e0,_0x4ca93b=_0x4e3add['getCellIndexAndOffsetByPosition'](_0x5529ea,_0x3aa7e0),_0x5c1f3b=_0x4e3add[_0x3c71ea(0x216)](_0x5529ea+_0xdf2ea4,_0x3aa7e0+_0x2ed8bd);}else{if(_0x23fad2[_0x3c71ea(0x1fb)]){let {startRow:_0x3c7ccc,startColumn:_0x12199e}=_0x23fad2[_0x3c71ea(0x1fb)];_0x4ca93b={'row':_0x3c7ccc,'rowOffset':0xa,'column':_0x12199e,'columnOffset':0xa};let _0x76f6b6=_0x4e3add[_0x3c71ea(0x246)](_0x3c7ccc,_0x12199e);_0x250494=_0x76f6b6[_0x3c71ea(0x240)]+0xa,_0x2720d4=_0x76f6b6['startY']+0xa,_0x5c1f3b=_0x4e3add[_0x3c71ea(0x216)](_0x250494+_0xdf2ea4,_0x2720d4+_0x2ed8bd);}}let _0x14629a={'from':_0x4ca93b,'to':_0x5c1f3b},_0x205d15={'unitId':_0x491f5d,'subUnitId':_0x4bb950,'drawingId':_0x1b8c8f,'drawingType':_0x53e1b5[_0x3c71ea(0x1e5)],'sheetTransform':_0x14629a,'transform':{'left':_0x250494,'top':_0x2720d4,'width':_0xdf2ea4,'height':_0x2ed8bd},'data':{'shapeType':_0x337d5b,'shapeData':_0x17b0ea},'axisAlignSheetTransform':_0x14629a,'allowTransform':!0x0};_0x163cf5(_0x337d5b)&&(_0x205d15[_0x3c71ea(0x204)][_0x3c71ea(0x265)]=!0x1,_0x205d15['data'][_0x3c71ea(0x262)]=!0x1,_0x205d15[_0x3c71ea(0x204)]['resizeEnabled']=!0x1,_0x205d15[_0x3c71ea(0x204)][_0x3c71ea(0x1f9)]=!0x1,_0x205d15[_0x3c71ea(0x249)]['rotateEnabled']=!0x1,_0x205d15[_0x3c71ea(0x249)][_0x3c71ea(0x1e6)]=!0x1,_0x205d15[_0x3c71ea(0x249)][_0x3c71ea(0x1f9)]=!0x1);let {undo:_0x216447,redo:_0x2a3ca8,objects:_0x6c3428}=_0x40b3eb['getBatchAddOp']([_0x205d15]),_0x4a9945=_0x4f55f0[_0x3c71ea(0x241)]({'id':_0x5bcbb6['id'],'params':{'unitId':_0x491f5d,'drawings':[_0x205d15]}}),_0x5c84f0=[...(_0x2638ed=_0x4a9945['preRedos'])==null?[]:_0x2638ed,{'id':_0xaa8efd['id'],'params':{'unitId':_0x491f5d,'subUnitId':_0x4bb950,'op':_0x2a3ca8,'objects':_0x6c3428,'type':_0x1c747c['INSERT']}},{'id':_0x317e79['id'],'params':[_0x491f5d]},..._0x4a9945['redos'],{'id':q['id'],'params':_0x4496e8}],_0x20646e=[{'id':J['id'],'params':{'unitId':_0x491f5d,'subUnitId':_0x4bb950,'shapeId':_0x1b8c8f}},...(_0x21c98f=_0x4a9945[_0x3c71ea(0x233)])==null?[]:_0x21c98f,{'id':_0xaa8efd['id'],'params':{'unitId':_0x491f5d,'subUnitId':_0x4bb950,'op':_0x216447,'objects':_0x6c3428,'type':_0x1c747c[_0x3c71ea(0x22a)]}},{'id':_0x317e79['id'],'params':[_0x491f5d]},..._0x4a9945[_0x3c71ea(0x1e9)]];return _0x3a0205(_0x5c84f0,_0x56efea)[_0x3c71ea(0x1de)]?(_0x46734a[_0x3c71ea(0x1f1)]({'unitID':_0x491f5d,'undoMutations':_0x20646e,'redoMutations':_0x5c84f0}),!0x0):!0x1;}},X={'id':_0x3f997f(0x20a),'type':_0x5569b6[_0x3f997f(0x21f)],'handler':(_0x5d4464,_0x3c92c5)=>{const _0x369c84=_0x3f997f;let {unitId:_0x5ea8a5,subUnitId:_0x49c1d6,shapeType:_0x410c1d,shapeId:_0x5b4d36,shapeData:_0x374bb2}=_0x3c92c5,_0x3646f1=_0x5d4464[_0x369c84(0x220)](K)['getShapeModel'](_0x5ea8a5,_0x49c1d6,_0x5b4d36);return _0x3646f1&&(_0x410c1d!==void 0x0&&_0x3646f1[_0x369c84(0x213)](_0x410c1d),_0x374bb2&&(_0x3646f1==null||_0x3646f1[_0x369c84(0x26a)](_0x374bb2,!0x0))),!0x0;}},ee={'type':_0x5569b6[_0x3f997f(0x219)],'id':'sheet.command.set-shape-drawing-data','handler':(_0x235a51,_0x5dc8c8)=>{const _0x1ad1fb=_0x3f997f;var _0x44fcf0,_0x5ee835;let _0x3a5b4b=_0x59efd3(_0x235a51['get'](_0x2900d8),_0x5dc8c8);if(!_0x3a5b4b)return!0x1;let _0x3267d3=_0x235a51[_0x1ad1fb(0x220)](_0x4fcab3),{unitId:_0x56448c,subUnitId:_0x423ddf}=_0x3a5b4b,_0x365b9b=_0x3267d3[_0x1ad1fb(0x1e2)](_0x56448c,_0x423ddf);if(!_0x365b9b)return!0x1;let _0x100241=_0x235a51['get'](K),{shapeId:_0x13d0f9,shapeType:_0x4ac19a,shapeData:_0x3ad2f7,position:_0x4b97b2,width:_0x2f94be,height:_0x6592a7}=_0x5dc8c8,_0x249fd6=_0x100241[_0x1ad1fb(0x253)](_0x56448c,_0x423ddf,_0x13d0f9);if(!_0x249fd6)return!0x1;let _0x43c97f=_0x235a51[_0x1ad1fb(0x220)](_0x4244e2),_0x2941e7=_0x235a51[_0x1ad1fb(0x220)](_0x1cf9fc),_0x4d9487=_0x235a51[_0x1ad1fb(0x220)](_0x296b96),_0x281b0e=_0x235a51['get'](_0x4c93e3),_0x5b54f9={'unitId':_0x56448c,'subUnitId':_0x423ddf,'shapeId':_0x13d0f9,'shapeType':_0x4ac19a,'shapeData':_0x3ad2f7},_0x470123=_0x249fd6['getShapeType'](),_0x2e4226=_0x249fd6[_0x1ad1fb(0x22c)](),{x:_0x40f759,y:_0x53b81f}=_0x4b97b2,_0x309537={'from':_0x365b9b[_0x1ad1fb(0x216)](_0x40f759,_0x53b81f),'to':_0x365b9b['getCellIndexAndOffsetByPosition'](_0x40f759+_0x2f94be,_0x53b81f+_0x6592a7)},_0x582e4b={'unitId':_0x56448c,'subUnitId':_0x423ddf,'drawingId':_0x13d0f9,'drawingType':_0x53e1b5['DRAWING_SHAPE'],'sheetTransform':_0x309537,'transform':{'left':_0x40f759,'top':_0x53b81f,'width':_0x2f94be,'height':_0x6592a7},'data':{'shapeType':_0x4ac19a,'shapeData':_0x3ad2f7},'axisAlignSheetTransform':_0x309537,'allowTransform':!0x0};_0x163cf5(_0x4ac19a)&&(_0x582e4b['data'][_0x1ad1fb(0x265)]=!0x1,_0x582e4b[_0x1ad1fb(0x204)][_0x1ad1fb(0x262)]=!0x1,_0x582e4b[_0x1ad1fb(0x204)][_0x1ad1fb(0x1e6)]=!0x1,_0x582e4b['data']['borderEnabled']=!0x1,_0x582e4b[_0x1ad1fb(0x249)]['rotateEnabled']=!0x1,_0x582e4b[_0x1ad1fb(0x249)]['resizeEnabled']=!0x1,_0x582e4b[_0x1ad1fb(0x249)][_0x1ad1fb(0x1f9)]=!0x1);let {undo:_0x904ea7,redo:_0x30b103,objects:_0xe8fa01}=_0x281b0e['getBatchUpdateOp']([_0x582e4b]),_0x33f65a=_0x4d9487[_0x1ad1fb(0x241)]({'id':_0x3db37e['id'],'params':{'unitId':_0x56448c,'drawings':[_0x582e4b]}}),_0x16eb08=[...(_0x44fcf0=_0x33f65a[_0x1ad1fb(0x1db)])==null?[]:_0x44fcf0,{'id':_0xaa8efd['id'],'params':{'unitId':_0x56448c,'subUnitId':_0x423ddf,'op':_0x30b103,'objects':_0xe8fa01,'type':_0x1c747c[_0x1ad1fb(0x236)]}},{'id':_0x317e79['id'],'params':[_0x56448c]},..._0x33f65a['redos'],{'id':X['id'],'params':_0x5b54f9}],_0x55c8b4=[...(_0x5ee835=_0x33f65a['preUndos'])==null?[]:_0x5ee835,{'id':_0xaa8efd['id'],'params':{'unitId':_0x56448c,'subUnitId':_0x423ddf,'op':_0x904ea7,'objects':_0xe8fa01,'type':_0x1c747c[_0x1ad1fb(0x236)]}},{'id':_0x317e79['id'],'params':[_0x56448c]},..._0x33f65a[_0x1ad1fb(0x1e9)],{'id':X['id'],'params':{'unitId':_0x56448c,'subUnitId':_0x423ddf,'shapeType':_0x470123,'shapeId':_0x13d0f9,'shapeData':_0x2e4226}}];return _0x3a0205(_0x16eb08,_0x43c97f)[_0x1ad1fb(0x1de)]?(_0x2941e7[_0x1ad1fb(0x1f1)]({'unitID':_0x56448c,'undoMutations':_0x55c8b4,'redoMutations':_0x16eb08}),!0x0):!0x1;}},Z={'type':_0x5569b6[_0x3f997f(0x219)],'id':_0x3f997f(0x229),'handler':(_0x2bffef,_0x235866)=>{const _0x34cf36=_0x3f997f;var _0x3f82c8,_0x63e94c;let _0x53aed5=_0x59efd3(_0x2bffef[_0x34cf36(0x220)](_0x2900d8),_0x235866);if(!_0x53aed5)return!0x1;let _0x25d5aa=_0x2bffef[_0x34cf36(0x220)](_0x4fcab3),{unitId:_0x8a456a,subUnitId:_0x2cd9d2}=_0x53aed5,_0x5d1439=_0x25d5aa[_0x34cf36(0x24f)](_0x8a456a,_0x2cd9d2);if(!_0x5d1439)return!0x1;let _0x25e151=_0x2bffef[_0x34cf36(0x220)](_0x4c93e3),{shapeId:_0x49eb67,flipH:_0x48757b,flipV:_0x1f7b1b}=_0x235866,_0x216330=_0x25e151[_0x34cf36(0x26e)]({'unitId':_0x8a456a,'subUnitId':_0x2cd9d2,'drawingId':_0x49eb67});if(!_0x216330)return!0x1;let _0x439b79=_0x2bffef['get'](K)[_0x34cf36(0x253)](_0x8a456a,_0x2cd9d2,_0x49eb67);if(!_0x439b79)return!0x1;let _0xa1d2d0=_0x2bffef[_0x34cf36(0x220)](_0x4244e2),_0x40a35b=_0x2bffef[_0x34cf36(0x220)](_0x1cf9fc),_0x1d056b=_0x2bffef['get'](_0x296b96),_0x50abf8={..._0x216330[_0x34cf36(0x249)]};_0x48757b!==void 0x0&&(_0x50abf8[_0x34cf36(0x206)]=!_0x50abf8[_0x34cf36(0x206)]),_0x1f7b1b!==void 0x0&&(_0x50abf8[_0x34cf36(0x212)]=!_0x50abf8[_0x34cf36(0x212)]);let _0x3e1dc1=_0x42d0e0(_0x50abf8,_0x5d1439),_0x1ed91d=_0x1b03b3(_0x50abf8,_0x5d1439),_0x57e2d5=_0x439b79[_0x34cf36(0x25a)](),_0x3debfc=_0x439b79['getShapeData'](),_0x48d0e4={'unitId':_0x8a456a,'subUnitId':_0x2cd9d2,'drawingId':_0x49eb67,'drawingType':_0x53e1b5['DRAWING_SHAPE'],'sheetTransform':_0x3e1dc1,'transform':_0x50abf8,'data':{'shapeType':_0x57e2d5,'shapeData':_0x3debfc},'axisAlignSheetTransform':_0x1ed91d,'allowTransform':!0x0},{undo:_0x12763d,redo:_0x1267ee,objects:_0x9f4093}=_0x25e151[_0x34cf36(0x1e0)]([_0x48d0e4]),_0x56b374=_0x1d056b[_0x34cf36(0x241)]({'id':_0x3db37e['id'],'params':{'unitId':_0x8a456a,'drawings':[_0x48d0e4]}}),_0x26797a=[...(_0x3f82c8=_0x56b374[_0x34cf36(0x1db)])==null?[]:_0x3f82c8,{'id':_0xaa8efd['id'],'params':{'unitId':_0x8a456a,'subUnitId':_0x2cd9d2,'op':_0x1267ee,'objects':_0x9f4093,'type':_0x1c747c[_0x34cf36(0x236)]}},{'id':_0x317e79['id'],'params':[_0x8a456a]},..._0x56b374['redos']],_0x5c336a=[...(_0x63e94c=_0x56b374[_0x34cf36(0x233)])==null?[]:_0x63e94c,{'id':_0xaa8efd['id'],'params':{'unitId':_0x8a456a,'subUnitId':_0x2cd9d2,'op':_0x12763d,'objects':_0x9f4093,'type':_0x1c747c[_0x34cf36(0x236)]}},{'id':_0x317e79['id'],'params':[_0x8a456a]},..._0x56b374['undos']];if(_0x163cf5(_0x57e2d5)){let _0x2875dc=_0x439b79[_0x34cf36(0x20c)]();if(_0x2875dc){let _0x1fddf0={..._0x2875dc};_0x1fddf0['from']=void 0x0,_0x1fddf0['to']=void 0x0,_0x26797a[_0x34cf36(0x228)]({'id':X['id'],'params':{'unitId':_0x8a456a,'subUnitId':_0x2cd9d2,'shapeId':_0x49eb67,'shapeType':_0x57e2d5,'shapeData':{'relation':_0x1fddf0}}}),_0x5c336a[_0x34cf36(0x228)]({'id':X['id'],'params':{'unitId':_0x8a456a,'subUnitId':_0x2cd9d2,'shapeId':_0x49eb67,'shapeType':_0x57e2d5,'shapeData':{'relation':_0x2875dc}}});}}return _0x3a0205(_0x26797a,_0xa1d2d0)['result']?(_0x40a35b[_0x34cf36(0x1f1)]({'unitID':_0x8a456a,'undoMutations':_0x5c336a,'redoMutations':_0x26797a}),!0x0):!0x1;}},Q={'type':_0x5569b6[_0x3f997f(0x219)],'id':_0x3f997f(0x23c),'handler':(_0x47ecbe,_0x506408)=>{const _0x3b6860=_0x3f997f;var _0x2ec3ee,_0x4de1ea;let _0x586c29=_0x59efd3(_0x47ecbe[_0x3b6860(0x220)](_0x2900d8),_0x506408);if(!_0x586c29)return!0x1;let _0x4cb528=_0x47ecbe['get'](_0x4fcab3),{unitId:_0x3e93ab,subUnitId:_0x380ca1}=_0x586c29,_0x12f497=_0x4cb528['getSkeleton'](_0x3e93ab,_0x380ca1);if(!_0x12f497)return!0x1;let _0x5c410d=_0x47ecbe['get'](_0x4c93e3),{shapeId:_0x3af752,rotate:_0x41ecf2}=_0x506408,_0x1f06ea=_0x5c410d[_0x3b6860(0x26e)]({'unitId':_0x3e93ab,'subUnitId':_0x380ca1,'drawingId':_0x3af752});if(!_0x1f06ea)return!0x1;let _0x242dae=_0x47ecbe[_0x3b6860(0x220)](K)['getShapeModel'](_0x3e93ab,_0x380ca1,_0x3af752);if(!_0x242dae)return!0x1;let _0x169201=_0x47ecbe[_0x3b6860(0x220)](_0x4244e2),_0x20f938=_0x47ecbe[_0x3b6860(0x220)](_0x1cf9fc),_0x4c530d=_0x47ecbe[_0x3b6860(0x220)](_0x296b96),_0x1a3a8f={..._0x1f06ea['transform']};_0x41ecf2!==void 0x0&&(_0x1a3a8f[_0x3b6860(0x1f7)]=(_0x1a3a8f[_0x3b6860(0x1f7)]||0x0)+_0x41ecf2);let _0x463818=_0x42d0e0(_0x1a3a8f,_0x12f497),_0x3eebe1=_0x1b03b3(_0x1a3a8f,_0x12f497),_0x3c6641=_0x242dae[_0x3b6860(0x25a)](),_0x234322=_0x242dae[_0x3b6860(0x22c)](),_0x3a9726={'unitId':_0x3e93ab,'subUnitId':_0x380ca1,'drawingId':_0x3af752,'drawingType':_0x53e1b5[_0x3b6860(0x1e5)],'sheetTransform':_0x463818,'transform':_0x1a3a8f,'data':{'shapeType':_0x3c6641,'shapeData':_0x234322},'axisAlignSheetTransform':_0x3eebe1,'allowTransform':!0x0},{undo:_0x2c567f,redo:_0x71ef51,objects:_0x105d4b}=_0x5c410d[_0x3b6860(0x1e0)]([_0x3a9726]),_0x38b10d=_0x4c530d[_0x3b6860(0x241)]({'id':_0x3db37e['id'],'params':{'unitId':_0x3e93ab,'drawings':[_0x3a9726]}}),_0x126a1f=[...(_0x2ec3ee=_0x38b10d['preRedos'])==null?[]:_0x2ec3ee,{'id':_0xaa8efd['id'],'params':{'unitId':_0x3e93ab,'subUnitId':_0x380ca1,'op':_0x71ef51,'objects':_0x105d4b,'type':_0x1c747c[_0x3b6860(0x236)]}},{'id':_0x317e79['id'],'params':[_0x3e93ab]},..._0x38b10d[_0x3b6860(0x210)]],_0x539acf=[...(_0x4de1ea=_0x38b10d['preUndos'])==null?[]:_0x4de1ea,{'id':_0xaa8efd['id'],'params':{'unitId':_0x3e93ab,'subUnitId':_0x380ca1,'op':_0x2c567f,'objects':_0x105d4b,'type':_0x1c747c[_0x3b6860(0x236)]}},{'id':_0x317e79['id'],'params':[_0x3e93ab]},..._0x38b10d[_0x3b6860(0x1e9)]];return _0x3a0205(_0x126a1f,_0x169201)[_0x3b6860(0x1de)]?(_0x20f938[_0x3b6860(0x1f1)]({'unitID':_0x3e93ab,'undoMutations':_0x539acf,'redoMutations':_0x126a1f}),!0x0):!0x1;}},te={'type':_0x5569b6[_0x3f997f(0x219)],'id':_0x3f997f(0x257),'handler':(_0x5d4a15,_0x59cff1)=>{const _0x5afb85=_0x3f997f;var _0xda615;let _0x49228c=_0x59efd3(_0x5d4a15['get'](_0x2900d8),_0x59cff1);if(!_0x49228c)return!0x1;let {unitId:_0x1ea8d7,subUnitId:_0x563212}=_0x49228c,{shapeId:_0x28f9bf}=_0x59cff1,_0x304ecd=_0x5d4a15['get'](K)[_0x5afb85(0x253)](_0x1ea8d7,_0x563212,_0x28f9bf);if(!_0x304ecd)return!0x1;let _0x3fd4d4=_0x304ecd[_0x5afb85(0x26d)](),_0x4990d9=(_0xda615=_0x3fd4d4==null?void 0x0:_0x3fd4d4['isHorizontal'])==null?!0x0:_0xda615,_0x42e07d=!_0x4990d9,_0x128e30=_0x5d4a15[_0x5afb85(0x220)](_0x4244e2),_0x61c8ed=_0x5d4a15[_0x5afb85(0x220)](_0x1cf9fc),_0x187a43={'unitId':_0x1ea8d7,'subUnitId':_0x563212,'shapeId':_0x28f9bf,'shapeData':{'shapeText':{'isHorizontal':_0x42e07d}}},_0x324979={'unitId':_0x1ea8d7,'subUnitId':_0x563212,'shapeId':_0x28f9bf,'shapeData':{'shapeText':{'isHorizontal':_0x4990d9}}},_0x4b3b7a=[{'id':X['id'],'params':_0x187a43}],_0x51974a=[{'id':X['id'],'params':_0x324979}];return _0x3a0205(_0x4b3b7a,_0x128e30)[_0x5afb85(0x1de)]?(_0x61c8ed[_0x5afb85(0x1f1)]({'unitID':_0x1ea8d7,'undoMutations':_0x51974a,'redoMutations':_0x4b3b7a}),!0x0):!0x1;}},ne={'type':_0x5569b6[_0x3f997f(0x219)],'id':_0x3f997f(0x1da),'handler':(_0x712726,_0x1f14b5)=>{const _0x45514d=_0x3f997f;var _0x52b7c4,_0x431306,_0x4bc5e9,_0x36b37c;let _0x2ea8c2=_0x59efd3(_0x712726[_0x45514d(0x220)](_0x2900d8),_0x1f14b5);if(!_0x2ea8c2)return!0x1;let _0x462655=_0x712726[_0x45514d(0x220)](_0x4fcab3),{unitId:_0x303ffd,subUnitId:_0x186d34}=_0x2ea8c2,_0x181623=_0x462655[_0x45514d(0x24f)](_0x303ffd,_0x186d34);if(!_0x181623)return!0x1;let _0x12e47b=_0x712726['get'](_0x4c93e3),{connectorShapeId:_0x3d9e93,width:_0x2e735c,height:_0x1dd701,left:_0x5c16ab,top:_0x459784,flipX:_0x2751e4,flipY:_0x405bf3,rotation:_0x3a992e,oldAdjustValues:_0x49cb7a,newAdjustValues:_0x122ff9,oldLineType:_0x31cf21,newLineType:_0xdc6489,oldRelation:_0x5bbd50,newRelation:_0x2e0d44}=_0x1f14b5,_0x342bb4=_0x12e47b[_0x45514d(0x26e)]({'unitId':_0x303ffd,'subUnitId':_0x186d34,'drawingId':_0x3d9e93});if(!_0x342bb4)return!0x1;let _0xe20dbf=_0x712726['get'](K)[_0x45514d(0x253)](_0x303ffd,_0x186d34,_0x3d9e93);if(!_0xe20dbf)return!0x1;let _0x58454b=_0x712726[_0x45514d(0x220)](_0x4244e2),_0x5d20f1=_0x712726[_0x45514d(0x220)](_0x1cf9fc),_0x59e129=_0x712726[_0x45514d(0x220)](_0x296b96),_0xad8c43={..._0x342bb4[_0x45514d(0x249)],'width':_0x2e735c,'height':_0x1dd701,'left':_0x5c16ab,'top':_0x459784,'flipX':_0x2751e4,'flipY':_0x405bf3,'angle':(_0x52b7c4=_0x3a992e==null?(_0x431306=_0x342bb4[_0x45514d(0x249)])==null?void 0x0:_0x431306[_0x45514d(0x1f7)]:_0x3a992e)==null?0x0:_0x52b7c4},_0x522cea=_0x42d0e0(_0xad8c43,_0x181623),_0x56af22=_0x1b03b3(_0xad8c43,_0x181623),_0x5a3f92=_0xe20dbf[_0x45514d(0x25a)](),_0x4aa24b=_0xe20dbf[_0x45514d(0x22c)](),_0x256368={'unitId':_0x303ffd,'subUnitId':_0x186d34,'drawingId':_0x3d9e93,'drawingType':_0x53e1b5[_0x45514d(0x1e5)],'sheetTransform':_0x522cea,'transform':_0xad8c43,'data':{'shapeType':_0xdc6489||_0x31cf21||_0x5a3f92,'shapeData':{..._0x4aa24b,'adjustValues':_0x122ff9||_0x49cb7a||(_0x4aa24b==null?void 0x0:_0x4aa24b[_0x45514d(0x203)]),'relation':_0x2e0d44||_0x5bbd50||(_0x4aa24b==null?void 0x0:_0x4aa24b[_0x45514d(0x261)])}},'axisAlignSheetTransform':_0x56af22,'allowTransform':!0x0},{undo:_0x177f38,redo:_0x31aa2f,objects:_0x307695}=_0x12e47b[_0x45514d(0x1e0)]([_0x256368]),_0x2c960d=_0x59e129[_0x45514d(0x241)]({'id':_0x3db37e['id'],'params':{'unitId':_0x303ffd,'drawings':[_0x256368]}}),_0x23170d=[...(_0x4bc5e9=_0x2c960d[_0x45514d(0x1db)])==null?[]:_0x4bc5e9,{'id':_0xaa8efd['id'],'params':{'unitId':_0x303ffd,'subUnitId':_0x186d34,'op':_0x31aa2f,'objects':_0x307695,'type':_0x1c747c[_0x45514d(0x236)]}},{'id':_0x317e79['id'],'params':[_0x303ffd]},..._0x2c960d[_0x45514d(0x210)],{'id':X['id'],'params':{'unitId':_0x303ffd,'subUnitId':_0x186d34,'shapeId':_0x3d9e93,'shapeType':_0xdc6489,'shapeData':{'adjustValues':_0x122ff9,'relation':_0x2e0d44}}}],_0x117fa8=[...(_0x36b37c=_0x2c960d[_0x45514d(0x233)])==null?[]:_0x36b37c,{'id':_0xaa8efd['id'],'params':{'unitId':_0x303ffd,'subUnitId':_0x186d34,'op':_0x177f38,'objects':_0x307695,'type':_0x1c747c[_0x45514d(0x236)]}},{'id':_0x317e79['id'],'params':[_0x303ffd]},..._0x2c960d[_0x45514d(0x1e9)],{'id':X['id'],'params':{'unitId':_0x303ffd,'subUnitId':_0x186d34,'shapeId':_0x3d9e93,'shapeType':_0x5a3f92,'shapeData':{..._0x4aa24b,'adjustValues':_0x49cb7a||(_0x4aa24b==null?void 0x0:_0x4aa24b['adjustValues']),'relation':_0x5bbd50||(_0x4aa24b==null?void 0x0:_0x4aa24b[_0x45514d(0x261)])}}}];return _0x3a0205(_0x23170d,_0x58454b)[_0x45514d(0x1de)]?(_0x5d20f1[_0x45514d(0x1f1)]({'unitID':_0x303ffd,'undoMutations':_0x117fa8,'redoMutations':_0x23170d}),!0x0):!0x1;}},re={'type':_0x5569b6[_0x3f997f(0x219)],'id':_0x3f997f(0x254),'handler':(_0x25e951,_0x307571)=>{const _0x56f23a=_0x3f997f;var _0x1c6233,_0x547a7d;let _0x2eca81=_0x59efd3(_0x25e951['get'](_0x2900d8),_0x307571);if(!_0x2eca81)return!0x1;let _0x2bb2ac=_0x25e951['get'](_0x4fcab3),{unitId:_0x11e262,subUnitId:_0x391010}=_0x2eca81,_0x147a06=_0x2bb2ac[_0x56f23a(0x24f)](_0x11e262,_0x391010);if(!_0x147a06)return!0x1;let _0x18d88d=_0x25e951[_0x56f23a(0x220)](_0x4c93e3),{shapeId:_0x477fab,width:_0x1622e2,height:_0x5049e5,left:_0x25d355,top:_0x52bde3,flipX:_0x33616b,flipY:_0x22871f,angle:_0x24c980,oldAdjustValues:_0x466813,newAdjustValues:_0x423197,oldLineType:_0x14cc2a,newLineType:_0x48634d}=_0x307571,_0x59af8c=_0x18d88d[_0x56f23a(0x26e)]({'unitId':_0x11e262,'subUnitId':_0x391010,'drawingId':_0x477fab});if(!_0x59af8c)return!0x1;let _0x219eaf=_0x25e951[_0x56f23a(0x220)](K)[_0x56f23a(0x253)](_0x11e262,_0x391010,_0x477fab);if(!_0x219eaf)return!0x1;let _0x529a6f=_0x25e951['get'](_0x4244e2),_0x47a898=_0x25e951[_0x56f23a(0x220)](_0x1cf9fc),_0x2bb01f=_0x25e951['get'](_0x296b96),_0x31d2d4={..._0x59af8c[_0x56f23a(0x249)],'width':_0x1622e2,'height':_0x5049e5,'left':_0x25d355,'top':_0x52bde3,'flipX':_0x33616b,'flipY':_0x22871f,'angle':_0x24c980},_0x28e0a6=_0x42d0e0(_0x31d2d4,_0x147a06),_0x1d582d=_0x1b03b3(_0x31d2d4,_0x147a06),_0x3c30fb=_0x219eaf['getShapeType'](),_0x2d11f6=_0x219eaf[_0x56f23a(0x22c)](),_0x17269e={'unitId':_0x11e262,'subUnitId':_0x391010,'drawingId':_0x477fab,'drawingType':_0x53e1b5[_0x56f23a(0x1e5)],'sheetTransform':_0x28e0a6,'transform':_0x31d2d4,'data':{'shapeType':_0x48634d||_0x14cc2a||_0x3c30fb,'shapeData':{..._0x2d11f6,'adjustValues':_0x423197||_0x466813||(_0x2d11f6==null?void 0x0:_0x2d11f6[_0x56f23a(0x203)])}},'axisAlignSheetTransform':_0x1d582d,'allowTransform':!0x0},{undo:_0x31fd8f,redo:_0x1254bb,objects:_0x230f65}=_0x18d88d[_0x56f23a(0x1e0)]([_0x17269e]),_0x2283a6=_0x2bb01f[_0x56f23a(0x241)]({'id':_0x3db37e['id'],'params':{'unitId':_0x11e262,'drawings':[_0x17269e]}}),_0x1cd99f=[...(_0x1c6233=_0x2283a6[_0x56f23a(0x1db)])==null?[]:_0x1c6233,{'id':_0xaa8efd['id'],'params':{'unitId':_0x11e262,'subUnitId':_0x391010,'op':_0x1254bb,'objects':_0x230f65,'type':_0x1c747c[_0x56f23a(0x236)]}},{'id':_0x317e79['id'],'params':[_0x11e262]},..._0x2283a6['redos'],{'id':X['id'],'params':{'unitId':_0x11e262,'subUnitId':_0x391010,'shapeId':_0x477fab,'shapeType':_0x48634d,'shapeData':{'adjustValues':_0x423197}}}],_0x4867a6=[...(_0x547a7d=_0x2283a6['preUndos'])==null?[]:_0x547a7d,{'id':_0xaa8efd['id'],'params':{'unitId':_0x11e262,'subUnitId':_0x391010,'op':_0x31fd8f,'objects':_0x230f65,'type':_0x1c747c[_0x56f23a(0x236)]}},{'id':_0x317e79['id'],'params':[_0x11e262]},..._0x2283a6[_0x56f23a(0x1e9)],{'id':X['id'],'params':{'unitId':_0x11e262,'subUnitId':_0x391010,'shapeId':_0x477fab,'shapeType':_0x3c30fb,'shapeData':{..._0x2d11f6,'adjustValues':_0x466813||(_0x2d11f6==null?void 0x0:_0x2d11f6[_0x56f23a(0x203)])}}}];return _0x3a0205(_0x1cd99f,_0x529a6f)[_0x56f23a(0x1de)]?(_0x47a898[_0x56f23a(0x1f1)]({'unitID':_0x11e262,'undoMutations':_0x4867a6,'redoMutations':_0x1cd99f}),!0x0):!0x1;}},$={'id':_0x3f997f(0x244),'type':_0x5569b6[_0x3f997f(0x21f)],'handler':(_0x1a02a2,_0x53c74a)=>{const _0x23ed66=_0x3f997f;let {unitId:_0x5e68c4,subUnitId:_0x2ac81d,shapeType:_0x34ab85,shapeId:_0x533487,shapeData:_0x47673c}=_0x53c74a,_0x57fd5c=_0x1a02a2[_0x23ed66(0x220)](K)[_0x23ed66(0x253)](_0x5e68c4,_0x2ac81d,_0x533487);return _0x57fd5c&&(_0x57fd5c['setShapeType'](_0x34ab85),_0x47673c&&(_0x57fd5c==null||_0x57fd5c[_0x23ed66(0x26a)](_0x47673c))),!0x0;}},ie={'id':'sheet.command.update-shape-type','type':_0x5569b6[_0x3f997f(0x219)],'handler':(_0x49c004,_0x2b8872)=>{const _0x4f1211=_0x3f997f;if(!_0x2b8872)return!0x1;let _0x33a88f=_0x49c004[_0x4f1211(0x220)](_0x4244e2),_0x490cac=_0x49c004[_0x4f1211(0x220)](K),_0x99fd45=_0x49c004[_0x4f1211(0x220)](_0x1cf9fc),_0x460724=[],_0x429698=[],{unitId:_0x446c4a,subUnitId:_0x425156,shapeId:_0x3bf9e2,shapeType:_0x5e4c01,shapeData:_0x73f1b4}=_0x2b8872,_0x57a649=_0x490cac[_0x4f1211(0x253)](_0x446c4a,_0x425156,_0x3bf9e2);if(_0x57a649){let _0x2efae7=_0x57a649[_0x4f1211(0x25a)](),_0x35988e=Object[_0x4f1211(0x1dd)]({},_0x57a649[_0x4f1211(0x22c)]()),_0x5d836d={'unitId':_0x446c4a,'subUnitId':_0x425156,'shapeId':_0x3bf9e2,'shapeType':_0x5e4c01,'shapeData':_0x73f1b4},_0x3c18f1={'unitId':_0x446c4a,'subUnitId':_0x425156,'shapeId':_0x3bf9e2,'shapeType':_0x2efae7,'shapeData':_0x35988e};return _0x460724[_0x4f1211(0x228)]({'id':$['id'],'params':_0x5d836d}),_0x429698[_0x4f1211(0x228)]({'id':$['id'],'params':_0x3c18f1}),_0x460724[_0x4f1211(0x24a)](_0x3cafb9=>_0x33a88f['syncExecuteCommand'](_0x3cafb9['id'],_0x3cafb9['params']))&&_0x99fd45[_0x4f1211(0x1f1)]({'unitID':_0x446c4a,'redoMutations':[..._0x460724],'undoMutations':[..._0x429698]}),!0x0;}return!0x1;}};var ae='@univerjs-pro/sheets-shape',oe=_0x3f997f(0x22d);const se={};let ce=class extends _0x55006e{constructor(_0x113d4c,_0x864f2d,_0x4c7f24,_0x36df62,_0x54a12a){const _0x42147a=_0x3f997f;super(),this[_0x42147a(0x1dc)]=_0x113d4c,this[_0x42147a(0x250)]=_0x864f2d,this[_0x42147a(0x270)]=_0x4c7f24,this[_0x42147a(0x20d)]=_0x36df62,this[_0x42147a(0x207)]=_0x54a12a,this[_0x42147a(0x218)](),this['_initCommandInterceptor']();}['_initCommands'](){const _0x40ed61=_0x3f997f;[Y,ee,Z,Q,te,ne,re,q,J,$,X][_0x40ed61(0x209)](_0x498afa=>this[_0x40ed61(0x238)](this[_0x40ed61(0x1dc)][_0x40ed61(0x243)](_0x498afa)));}['_initCommandInterceptor'](){const _0x35bbb1=_0x3f997f;this['disposeWithMe'](this[_0x35bbb1(0x250)][_0x35bbb1(0x1df)]({'getMutations':_0x2c27ce=>{const _0x15a1d6=_0x35bbb1;if(_0x2c27ce['id']===_0x511e31['id']){let {drawings:_0x326f71}=_0x2c27ce['params'],_0x33d3c1=_0x326f71[_0x15a1d6(0x1ef)](_0x151f3f=>_0x151f3f['drawingType']===_0x53e1b5['DRAWING_SHAPE']);if(_0x33d3c1['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x1382c0=[],_0x3cb76e=[];return _0x33d3c1[_0x15a1d6(0x209)](_0x2a69d0=>{const _0x254e75=_0x15a1d6;let {unitId:_0x5db7f4,subUnitId:_0x540806,drawingId:_0x10ad8a}=_0x2a69d0,_0x2e27f2=this['_sheetsShapeService']['getShapeModel'](_0x5db7f4,_0x540806,_0x10ad8a);if(!_0x2e27f2)throw TypeError(_0x254e75(0x255)+_0x2e27f2);_0x1382c0[_0x254e75(0x228)]({'id':J['id'],'params':{'unitId':_0x5db7f4,'subUnitId':_0x540806,'shapeId':_0x10ad8a}}),_0x3cb76e['push']({'id':q['id'],'params':{'unitId':_0x5db7f4,'subUnitId':_0x540806,'shapeId':_0x10ad8a,'shapeType':_0x2e27f2['getShapeType'](),'shapeData':_0x2e27f2[_0x254e75(0x22c)]()}});let _0x201cc4=this['_sheetsShapeService'][_0x254e75(0x21e)](_0x5db7f4,_0x540806,_0x10ad8a);if(_0x201cc4)for(let _0xf8419d of _0x201cc4){let _0xf7c6d6=_0xf8419d[_0x254e75(0x25b)],_0x1370c3=_0xf8419d[_0x254e75(0x200)],_0xc9f69d=_0x1370c3?{'from':void 0x0}:{'to':void 0x0},_0x21e1e1=_0x1370c3?{'from':{'shapeId':_0xf8419d[_0x254e75(0x26b)],'cxnIndex':_0xf8419d['cxnIndex']}}:{'to':{'shapeId':_0xf8419d['shapeId'],'cxnIndex':_0xf8419d[_0x254e75(0x222)]}};_0x1382c0['push']({'id':X['id'],'params':{'unitId':_0x5db7f4,'subUnitId':_0x540806,'shapeId':_0xf7c6d6,'shapeData':{'relation':_0xc9f69d}}}),_0x3cb76e[_0x254e75(0x228)]({'id':X['id'],'params':{'unitId':_0x5db7f4,'subUnitId':_0x540806,'shapeId':_0xf7c6d6,'shapeData':{'relation':_0x21e1e1}}});}}),{'preRedos':_0x1382c0,'redos':[],'preUndos':[],'undos':_0x3cb76e};}if(_0x2c27ce['id']===_0x3db37e['id']){let {drawings:_0x42ca0e}=_0x2c27ce[_0x15a1d6(0x245)],_0x26a7e3=_0x42ca0e[_0x15a1d6(0x1ef)](_0x574bbb=>_0x574bbb['drawingType']===_0x53e1b5[_0x15a1d6(0x1e5)]);if(_0x26a7e3['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x1bcb3e=[],_0x27ef21=[];for(let _0x2c68df of _0x26a7e3){let {unitId:_0x52e1d5,subUnitId:_0x525949,drawingId:_0x14e8e6,transform:_0x1bdd54}=_0x2c68df;if(!_0x52e1d5||!_0x525949||!_0x14e8e6||!_0x1bdd54)continue;let _0x562221=this['_sheetsShapeService'][_0x15a1d6(0x253)](_0x52e1d5,_0x525949,_0x14e8e6);if(!_0x562221)throw TypeError(_0x15a1d6(0x255)+_0x562221);if(_0x163cf5(_0x562221[_0x15a1d6(0x25a)]())){let _0x37f182=this[_0x15a1d6(0x20d)]['getLineShapeRelation'](_0x52e1d5,_0x525949,_0x14e8e6);_0x37f182&&(_0x1bcb3e[_0x15a1d6(0x228)]({'id':X['id'],'params':{'unitId':_0x52e1d5,'subUnitId':_0x525949,'shapeId':_0x14e8e6,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x27ef21[_0x15a1d6(0x228)]({'id':X['id'],'params':{'unitId':_0x52e1d5,'subUnitId':_0x525949,'shapeId':_0x14e8e6,'shapeData':{'relation':_0x37f182}}}));}else{let _0x49e853=this[_0x15a1d6(0x20d)][_0x15a1d6(0x21e)](_0x52e1d5,_0x525949,_0x14e8e6);if(_0x49e853&&_0x49e853[_0x15a1d6(0x208)]>0x0)for(let _0x205672 of _0x49e853){let _0x4bd57d=_0x205672['lineShapeId'],_0x1be09c=_0x205672[_0x15a1d6(0x200)],_0x5758f6=this[_0x15a1d6(0x20d)][_0x15a1d6(0x253)](_0x52e1d5,_0x525949,_0x4bd57d);if(!_0x5758f6)continue;let _0x48c813=_0x5758f6[_0x15a1d6(0x23b)](),_0x59fd57=_0x5758f6[_0x15a1d6(0x272)]();_0x48c813&&_0x59fd57?this[_0x15a1d6(0x268)](_0x52e1d5,_0x525949,_0x4bd57d,_0x5758f6,_0x48c813,_0x59fd57,_0x1bcb3e,_0x27ef21,_0x14e8e6,_0x1bdd54):this[_0x15a1d6(0x1f8)](_0x52e1d5,_0x525949,_0x4bd57d,_0x5758f6,_0x1be09c?_0x48c813:_0x59fd57,_0x1be09c,_0x1bcb3e,_0x27ef21,_0x14e8e6,_0x1bdd54);}}}return{'preRedos':[],'redos':_0x1bcb3e,'preUndos':_0x27ef21,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}['_getConnectPointInfo'](_0x3f68dc,_0x1fe57e,_0x33bfaf,_0x218262,_0x25eabf){const _0x118834=_0x3f997f;if(!_0x1fe57e||!_0x33bfaf)return null;let {shapeId:_0x564baa,cxnIndex:_0xde2c0}=_0x3f68dc,_0x9a0fb1=this[_0x118834(0x20d)]['getShapeModel'](_0x1fe57e,_0x33bfaf,_0x564baa);if(!_0x9a0fb1)return null;let _0x188bce=this['_drawingManagerService'][_0x118834(0x26e)]({'unitId':_0x1fe57e,'subUnitId':_0x33bfaf,'drawingId':_0x564baa});if(!(_0x188bce!=null&&_0x188bce[_0x118834(0x249)]))return null;let {left:_0x4b0509=0x0,top:_0x18ad9c=0x0,width:_0x256419=0x0,height:_0x1fe78e=0x0,flipX:_0x3141fb=!0x1,flipY:_0x3765ff=!0x1,angle:_0x63ec}=_0x188bce[_0x118834(0x249)];if(_0x25eabf&&_0x218262===_0x564baa){var _0x2c3ea1,_0x24235c,_0x41c465,_0x19312f,_0x24d581,_0xcd795,_0x45113c;_0x4b0509=(_0x2c3ea1=_0x25eabf[_0x118834(0x226)])==null?_0x4b0509:_0x2c3ea1,_0x18ad9c=(_0x24235c=_0x25eabf[_0x118834(0x259)])==null?_0x18ad9c:_0x24235c,_0x256419=(_0x41c465=_0x25eabf['width'])==null?_0x256419:_0x41c465,_0x1fe78e=(_0x19312f=_0x25eabf[_0x118834(0x201)])==null?_0x1fe78e:_0x19312f,_0x3141fb=(_0x24d581=_0x25eabf[_0x118834(0x206)])==null?_0x3141fb:_0x24d581,_0x3765ff=(_0xcd795=_0x25eabf['flipY'])==null?_0x3765ff:_0xcd795,_0x63ec=(_0x45113c=_0x25eabf[_0x118834(0x1f7)])==null?_0x63ec:_0x45113c;}_0x9a0fb1[_0x118834(0x205)]({'width':_0x256419,'height':_0x1fe78e});let _0x48644f=_0x9a0fb1['getConnectionSiteList']()[_0x118834(0x275)](_0x2becc0=>_0x2becc0['index']===_0xde2c0);if(!_0x48644f)return null;let _0x10bfab=_0x3141fb?_0x256419-_0x48644f['x']:_0x48644f['x'],_0x150955=_0x3765ff?_0x1fe78e-_0x48644f['y']:_0x48644f['y'];if(_0x63ec!==0x0&&_0x63ec!=null){let _0x5ac55d=_0x63ec*Math['PI']/0xb4,_0xa94903=Math[_0x118834(0x20b)](_0x5ac55d),_0x5a96da=Math[_0x118834(0x1f5)](_0x5ac55d),_0x5ab103=_0x256419/0x2,_0x3a96ea=_0x1fe78e/0x2,_0x2b0e62=_0x10bfab-_0x5ab103,_0x22d92d=_0x150955-_0x3a96ea;_0x10bfab=_0x5ab103+_0x2b0e62*_0xa94903-_0x22d92d*_0x5a96da,_0x150955=_0x3a96ea+_0x2b0e62*_0x5a96da+_0x22d92d*_0xa94903;}_0x10bfab+=_0x4b0509,_0x150955+=_0x18ad9c;let _0x2bc334=_0x48644f[_0x118834(0x1e8)]/0xea60;_0x3141fb&&(_0x2bc334=0xb4-_0x2bc334),_0x3765ff&&(_0x2bc334=-_0x2bc334),_0x2bc334+=_0x63ec||0x0,_0x2bc334=(_0x2bc334%0x168+0x168)%0x168;let _0x37f403=_0x4c4c2c({'left':_0x4b0509,'top':_0x18ad9c,'width':_0x256419,'height':_0x1fe78e},_0x63ec||0x0);return{'point':{'x':_0x10bfab,'y':_0x150955},'angle':_0x2bc334,'bounds':_0x37f403};}[_0x3f997f(0x268)](_0x4617eb,_0x508ce2,_0x20e3db,_0x1ab766,_0x32c5fb,_0x1ec52a,_0x3161f1,_0x4f1923,_0x37d544,_0x526dd3){const _0x471ad3=_0x3f997f;let _0xaaf96d=this['_sheetSkeletonService']['getSkeleton'](_0x4617eb,_0x508ce2);if(!_0xaaf96d)return;let _0x547548=_0x1ab766[_0x471ad3(0x20c)](),_0x425538=_0x1ab766[_0x471ad3(0x251)](),_0x5f467e={},_0x5e94d4={};_0x425538['forEach'](_0x4d5ad0=>{const _0x4399d2=_0x471ad3;let _0x11b15c=_0x1ab766[_0x4399d2(0x21b)](_0x4d5ad0);_0x5e94d4[_0x4d5ad0]=_0x11b15c==null?0x0:_0x11b15c;});let _0x623af9=this[_0x471ad3(0x22e)](_0x32c5fb,_0x4617eb,_0x508ce2,_0x37d544,_0x526dd3),_0x51da3e=this['_getConnectPointInfo'](_0x1ec52a,_0x4617eb,_0x508ce2,_0x37d544,_0x526dd3);if(_0x623af9&&_0x51da3e){let _0x14b7b6=_0x1ab766[_0x471ad3(0x25a)](),_0x49d871=_0x4d3188(_0x623af9,_0x51da3e,_0x14b7b6),_0x5da580=_0x14b7b6;if(_0x49d871){let _0x4463c1=_0x11fbdc(_0x49d871,_0x1ab766[_0x471ad3(0x25a)]()),_0xae20=this[_0x471ad3(0x207)][_0x471ad3(0x227)](_0x4617eb,_0x508ce2);if(_0xae20&&_0xae20[_0x20e3db]){let _0x90a018=_0xae20[_0x20e3db];_0x5da580=_0x4463c1[_0x471ad3(0x267)];for(let [_0x2b2d9d,_0xb62c98]of Object[_0x471ad3(0x269)](_0x4463c1[_0x471ad3(0x203)]))_0x5f467e[_0x2b2d9d]=_0xb62c98;let _0x21e966={..._0x90a018['transform'],'width':_0x4463c1[_0x471ad3(0x1fc)]['width'],'height':_0x4463c1[_0x471ad3(0x1fc)][_0x471ad3(0x201)],'left':_0x4463c1[_0x471ad3(0x1fc)]['left'],'top':_0x4463c1['worldRect'][_0x471ad3(0x259)],'flipX':_0x4463c1[_0x471ad3(0x1fc)]['flipX'],'flipY':_0x4463c1[_0x471ad3(0x1fc)][_0x471ad3(0x212)],'angle':_0x4463c1[_0x471ad3(0x20e)]},_0x2db0fc=_0x42d0e0(_0x21e966,_0xaaf96d),_0x5d5c85=_0x1b03b3(_0x21e966,_0xaaf96d),_0xa0887a={'unitId':_0x4617eb,'subUnitId':_0x508ce2,'drawingType':_0x53e1b5[_0x471ad3(0x1e5)],'drawingId':_0x20e3db,'transform':_0x21e966,'sheetTransform':_0x2db0fc,'axisAlignSheetTransform':_0x5d5c85},{unitId:_0xc3f571,subUnitId:_0x539a88,undo:_0x14d2fa,redo:_0x351329,objects:_0x5b65be}=this[_0x471ad3(0x207)][_0x471ad3(0x1e0)]([_0xa0887a]);_0x3161f1[_0x471ad3(0x228)]({'id':_0xaa8efd['id'],'params':{'unitId':_0xc3f571,'subUnitId':_0x539a88,'op':_0x351329,'objects':_0x5b65be,'type':_0x1c747c[_0x471ad3(0x236)]}}),_0x4f1923[_0x471ad3(0x228)]({'id':_0xaa8efd['id'],'params':{'unitId':_0xc3f571,'subUnitId':_0x539a88,'op':_0x14d2fa,'objects':_0x5b65be,'type':_0x1c747c[_0x471ad3(0x236)]}});}_0x1ab766['removeLinePoints']();}_0x3161f1[_0x471ad3(0x228)]({'id':X['id'],'params':{'unitId':_0x4617eb,'subUnitId':_0x508ce2,'shapeId':_0x20e3db,'shapeType':_0x5da580,'shapeData':{'adjustValues':_0x5f467e,'relation':_0x547548}}}),_0x4f1923[_0x471ad3(0x228)]({'id':X['id'],'params':{'unitId':_0x4617eb,'subUnitId':_0x508ce2,'shapeId':_0x20e3db,'shapeType':_0x14b7b6,'shapeData':{'adjustValues':_0x5e94d4,'relation':_0x547548}}});}}[_0x3f997f(0x1f8)](_0x4730b1,_0x3b838,_0x4a9ad4,_0x5a5b18,_0x1c40a0,_0x12caac,_0x4f79f3,_0x122b72,_0x470b70,_0x3eb446){const _0x152584=_0x3f997f;var _0x4e89a8;if(!_0x1c40a0)return;let _0x5d5b08=this[_0x152584(0x270)]['getSkeleton'](_0x4730b1,_0x3b838);if(!_0x5d5b08)return;let _0x568c10=(_0x4e89a8=this[_0x152584(0x207)]['getDrawingByParam']({'unitId':_0x4730b1,'subUnitId':_0x3b838,'drawingId':_0x470b70}))==null?void 0x0:_0x4e89a8[_0x152584(0x249)];if(!_0x568c10)return;let _0x3e5233=_0x568c10['left']!==_0x3eb446[_0x152584(0x226)]||_0x568c10['top']!==_0x3eb446[_0x152584(0x259)],_0xc0c890=_0x568c10[_0x152584(0x215)]!==_0x3eb446['width']||_0x568c10[_0x152584(0x201)]!==_0x3eb446['height'],_0x4c9549=_0x568c10[_0x152584(0x206)]!==_0x3eb446[_0x152584(0x206)]||_0x568c10[_0x152584(0x212)]!==_0x3eb446[_0x152584(0x212)],_0x33e564=_0x568c10[_0x152584(0x1f7)]!==_0x3eb446['angle'];if(_0x3e5233&&!_0xc0c890&&!_0x4c9549&&!_0x33e564){var _0x39ea53,_0x50f8c0,_0xd85e3e,_0x542109;let _0x3863fd=((_0x39ea53=_0x3eb446[_0x152584(0x226)])==null?0x0:_0x39ea53)-((_0x50f8c0=_0x568c10['left'])==null?0x0:_0x50f8c0),_0x4637d7=((_0xd85e3e=_0x3eb446[_0x152584(0x259)])==null?0x0:_0xd85e3e)-((_0x542109=_0x568c10[_0x152584(0x259)])==null?0x0:_0x542109),_0x2a131e=this[_0x152584(0x207)]['getDrawingData'](_0x4730b1,_0x3b838);if(_0x2a131e&&_0x2a131e[_0x4a9ad4]){var _0x2477ee,_0xf2b40a,_0x2d0039,_0x2cb0c5;let _0x1d5967=_0x2a131e[_0x4a9ad4],_0x53e528={..._0x1d5967[_0x152584(0x249)],'left':((_0x2477ee=(_0xf2b40a=_0x1d5967[_0x152584(0x249)])==null?void 0x0:_0xf2b40a[_0x152584(0x226)])==null?0x0:_0x2477ee)+_0x3863fd,'top':((_0x2d0039=(_0x2cb0c5=_0x1d5967[_0x152584(0x249)])==null?void 0x0:_0x2cb0c5[_0x152584(0x259)])==null?0x0:_0x2d0039)+_0x4637d7},_0x3fa7c8=_0x42d0e0(_0x53e528,_0x5d5b08),_0x1071a8=_0x1b03b3(_0x53e528,_0x5d5b08),_0x5be1b5={'unitId':_0x4730b1,'subUnitId':_0x3b838,'drawingType':_0x53e1b5['DRAWING_SHAPE'],'drawingId':_0x4a9ad4,'transform':_0x53e528,'sheetTransform':_0x3fa7c8,'axisAlignSheetTransform':_0x1071a8},{unitId:_0x730a50,subUnitId:_0x3492ba,undo:_0x2095aa,redo:_0x59555f,objects:_0x5de7f5}=this[_0x152584(0x207)][_0x152584(0x1e0)]([_0x5be1b5]);_0x4f79f3['push']({'id':_0xaa8efd['id'],'params':{'unitId':_0x730a50,'subUnitId':_0x3492ba,'op':_0x59555f,'objects':_0x5de7f5,'type':_0x1c747c[_0x152584(0x236)]}}),_0x122b72['push']({'id':_0xaa8efd['id'],'params':{'unitId':_0x730a50,'subUnitId':_0x3492ba,'op':_0x2095aa,'objects':_0x5de7f5,'type':_0x1c747c[_0x152584(0x236)]}});}}else{let _0x26adcb=_0x5a5b18[_0x152584(0x23b)](),_0x4c148a=_0x5a5b18[_0x152584(0x272)]();this[_0x152584(0x268)](_0x4730b1,_0x3b838,_0x4a9ad4,_0x5a5b18,_0x26adcb,_0x4c148a,_0x4f79f3,_0x122b72,_0x470b70,_0x3eb446);}}};ce=G([W(0x0,_0x4244e2),W(0x1,_0x3f9e01(_0x296b96)),W(0x2,_0x3f9e01(_0x4fcab3)),W(0x3,_0x3f9e01(K)),W(0x4,_0x3f9e01(_0x189d45))],ce);let le=class extends _0x108e80{constructor(_0x63afa1=se,_0x2ceb40,_0x1f1929,_0x247e63){const _0x1fd9b2=_0x3f997f;super(),this[_0x1fd9b2(0x223)]=_0x63afa1,this['_injector']=_0x2ceb40,this['_commandService']=_0x1f1929,this[_0x1fd9b2(0x1e7)]=_0x247e63;let {..._0xff2a3b}=_0x39594a({},se,this[_0x1fd9b2(0x223)]);this[_0x1fd9b2(0x1e7)][_0x1fd9b2(0x1e1)](_0x1fd9b2(0x21a),_0xff2a3b);}[_0x3f997f(0x21d)](){const _0x2b4e2d=_0x3f997f;let _0x5db0d6=this[_0x2b4e2d(0x235)];[[U],[K],[ce]][_0x2b4e2d(0x209)](_0x50fb2b=>_0x5db0d6[_0x2b4e2d(0x224)](_0x50fb2b)),_0x5eb370(_0x5db0d6,[[K],[ce]]);}};H(le,_0x3f997f(0x1ea),_0x186b43['UNIVER_SHEET']),H(le,_0x3f997f(0x25e),_0x3f997f(0x247)),H(le,_0x3f997f(0x274),ae),H(le,'version',oe),le=G([_0x5127bc(_0x150078),W(0x1,_0x3f9e01(_0x48d8f4)),W(0x2,_0x4244e2),W(0x3,_0x1a7ac4)],le);export{R as DEFAULT_SHAPE_HEIGHT,L as DEFAULT_SHAPE_WIDTH,Y as InsertShapeCommand,q as InsertSheetsShapeMutation,J as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,Q as SetSheetsShapeRotateCommand,te as SetSheetsShapeTextVerticalToggleCommand,K as SheetsShapeService,Z as ToggleSheetsShapeFlipCommand,le as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,X as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeCommand,$ as UpdateSheetsShapeTypeMutation};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2294c8=_0x10e5;(function(_0x4d9f1d,_0x3815bc){const _0x4f039b=_0x10e5,_0x47dd03=_0x4d9f1d();while(!![]){try{const _0x5b786c=parseInt(_0x4f039b(0x20c))/0x1*(parseInt(_0x4f039b(0x1d6))/0x2)+-parseInt(_0x4f039b(0x1dc))/0x3+parseInt(_0x4f039b(0x1fe))/0x4*(parseInt(_0x4f039b(0x1c6))/0x5)+parseInt(_0x4f039b(0x23e))/0x6+-parseInt(_0x4f039b(0x24a))/0x7+parseInt(_0x4f039b(0x1e6))/0x8+parseInt(_0x4f039b(0x201))/0x9;if(_0x5b786c===_0x3815bc)break;else _0x47dd03['push'](_0x47dd03['shift']());}catch(_0x1e04c8){_0x47dd03['push'](_0x47dd03['shift']());}}}(_0x2ff6,0xd870b));import{ConnectorCoordinateTransform as _0x226b98,ShapeArrowSizeEnum as _0x1a009f,ShapeArrowTypeEnum as _0x1b13c3,ShapeFillEnum as _0x17ad7b,ShapeGradientTypeEnum as _0xc86cba,ShapeLineCapEnum as _0x21b06d,ShapeLineDashEnum as _0x51187e,ShapeLineJoinEnum as _0x45dc6f,ShapeLineTypeEnum as _0x2121d7,ShapeTypeEnum as _0x4f25b2,computeConnectorRouteLayout as _0x8012ef,getBasicShapeRotateBound as _0x5350e5,isConnectorShape as _0xe1c987,routeConnectorLineShape as _0x1966ac}from'@univerjs-pro/engine-shape';import{FEnum as _0x468a15}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x11c2a4,DEFAULT_SHAPE_WIDTH as _0xdabd8b,InsertShapeCommand as _0x2b5f84,SetShapeDrawingDataCommand as _0x4bd9a0,SheetsShapeService as _0x5c3722,UpdateConnectorRelationCommand as _0x3ac70a}from'@univerjs-pro/sheets-shape';function _0x2ff6(){const _0x4aa9d5=['executeCommand','getShapeModel','build','stroke','setAbsolutePosition','1875964jeiWQX','constructor','abs','15225786xAednD','setStrokeLineDashType','getWorkbook','ShapeTypeEnum','getConnectionSiteList','SolidFill','drawingType','_resolveEndpoints','setEndArrowSize','ang','defineProperty','7PSNceE','drawId','capType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','worldRect','GradientFill','getDrawingData','Skeleton\x20for\x20unitId\x20','setNoneFill','_commandService','getAdjustValueByName','height','subUnitId','ShapeLineJoinEnum','adjustValues','localToWorld','top','ShapeArrowSizeEnum','type','NoFill','fillType','shapeType','string','prototype','getConnectionSites','cxnIndex','lineJoinType','transform','object','getDrawingByParam','insertShape','rotation','length','_injector','setStrokeColor','ShapeArrowTypeEnum','\x20and\x20subUnitId\x20','symbol','getStartConnectInfo','shapeId','cos','connectShapes','DRAWING_SHAPE','getSheetId','call','function','ShapeLineCapEnum','gradientType','setEndArrowType','2709090pIvfIz','connectionSiteIndex','relation','getDrawingPoints','setStrokeLineType','size','find','getSize','setWidth','fill','isLineShape','getConnectorLinePoints','11366705cvCvsZ','width','15plLmKY','getShapeRelation','ShapeFillEnum','flipX','unitId','ShapeLineTypeEnum','ensureSkeleton','setStartArrowSize','updateShape','getShapeId','stringify','opacity','updateContext','shapeData','getAdjustPoints','getAdjustNames','108326TSsoHM','setStrokeWidth','endArrow','setShapeGradientFill','removeShape','setHeight','4286337SAgFHD','left','ShapeLineDashEnum','_resolveExistingOrFreeEndpoint','default','getShapeData','flipY','get','getShapes','keys','78000tfLxHq','_preloadShapeProperties',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','getEndConnectInfo','\x20not\x20found','gradientAngle','getUnitId','ShapeGradientTypeEnum','setStartArrowType','startArrow','setShapeType','shape','setStrokeOpacity','from','point','gradientStops','getShapeType','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','extend'];_0x2ff6=function(){return _0x4aa9d5;};return _0x2ff6();}import{DrawingTypeEnum as _0x285b45,generateRandomId as _0x4e4bad}from'@univerjs/core';import{IDrawingManagerService as _0x4e860d}from'@univerjs/drawing';import{SheetSkeletonService as _0xe5b182,convertPositionCellToSheetOverGrid as _0x439023}from'@univerjs/sheets';import{ISheetDrawingService as _0xa71416,RemoveSheetDrawingCommand as _0x1b2369}from'@univerjs/sheets-drawing';import{FWorksheet as _0x4f6f37}from'@univerjs/sheets/facade';var k=class extends _0x468a15{get[_0x2294c8(0x204)](){return _0x4f25b2;}get[_0x2294c8(0x1c8)](){return _0x17ad7b;}get[_0x2294c8(0x1ed)](){return _0xc86cba;}get[_0x2294c8(0x1cb)](){return _0x2121d7;}get[_0x2294c8(0x1de)](){return _0x51187e;}get[_0x2294c8(0x23b)](){return _0x21b06d;}get[_0x2294c8(0x21a)](){return _0x45dc6f;}get[_0x2294c8(0x230)](){return _0x1b13c3;}get[_0x2294c8(0x21e)](){return _0x1a009f;}};_0x468a15[_0x2294c8(0x1f8)](k);function A(_0xf329cf){'@babel/helpers - typeof';const _0x27b098=_0x2294c8;return A=typeof Symbol==_0x27b098(0x23a)&&typeof Symbol['iterator']==_0x27b098(0x232)?function(_0x13f09d){return typeof _0x13f09d;}:function(_0x30c5f2){const _0x10ed6f=_0x27b098;return _0x30c5f2&&typeof Symbol==_0x10ed6f(0x23a)&&_0x30c5f2[_0x10ed6f(0x1ff)]===Symbol&&_0x30c5f2!==Symbol[_0x10ed6f(0x224)]?_0x10ed6f(0x232):typeof _0x30c5f2;},A(_0xf329cf);}function j(_0x179464,_0x20af1c){const _0x4f28d2=_0x2294c8;if(A(_0x179464)!=_0x4f28d2(0x229)||!_0x179464)return _0x179464;var _0x3d5b3e=_0x179464[Symbol['toPrimitive']];if(_0x3d5b3e!==void 0x0){var _0x5aa1ec=_0x3d5b3e[_0x4f28d2(0x239)](_0x179464,_0x20af1c||_0x4f28d2(0x1e0));if(A(_0x5aa1ec)!=_0x4f28d2(0x229))return _0x5aa1ec;throw TypeError(_0x4f28d2(0x20f));}return(_0x20af1c===_0x4f28d2(0x223)?String:Number)(_0x179464);}function M(_0x14370d){const _0x5381fe=_0x2294c8;var _0x4df15d=j(_0x14370d,_0x5381fe(0x223));return A(_0x4df15d)=='symbol'?_0x4df15d:_0x4df15d+'';}function N(_0x359362,_0x144c50,_0x430d56){const _0x12cec9=_0x2294c8;return(_0x144c50=M(_0x144c50))in _0x359362?Object[_0x12cec9(0x20b)](_0x359362,_0x144c50,{'value':_0x430d56,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x359362[_0x144c50]=_0x430d56,_0x359362;}var P=class{constructor(_0x5de167,_0x23939b,_0x1f7e1a,_0x986594){const _0xf485ad=_0x2294c8;N(this,_0xf485ad(0x1ca),void 0x0),N(this,_0xf485ad(0x219),void 0x0),N(this,_0xf485ad(0x20d),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0xf485ad(0x1c5),_0xdabd8b),N(this,_0xf485ad(0x218),_0x11c2a4),N(this,_0xf485ad(0x222),void 0x0),N(this,_0xf485ad(0x1d3),{}),N(this,_0xf485ad(0x22e),void 0x0),this[_0xf485ad(0x1ca)]=_0x5de167,this[_0xf485ad(0x219)]=_0x23939b,this[_0xf485ad(0x20d)]=_0x1f7e1a||_0x4e4bad(),this[_0xf485ad(0x22e)]=_0x986594;}['setPosition'](_0x1bcaa6,_0x5bef2a,_0x1c221b,_0x90f467){const _0x3697a8=_0x2294c8;let _0x4dd757=this['_injector'][_0x3697a8(0x1e3)](_0xe5b182)[_0x3697a8(0x1cc)](this[_0x3697a8(0x1ca)],this['subUnitId']);if(!_0x4dd757)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x3697a8(0x1ca)]+'\x20and\x20subUnitId\x20'+this[_0x3697a8(0x219)]+_0x3697a8(0x1ea));let {transform:_0x4eb9cd}=_0x439023(this[_0x3697a8(0x1ca)],this[_0x3697a8(0x219)],{'row':_0x1bcaa6,'column':_0x5bef2a,'rowOffset':_0x1c221b,'columnOffset':_0x90f467},0x1,0x1,_0x4dd757);return this['x']=_0x4eb9cd[_0x3697a8(0x1dd)],this['y']=_0x4eb9cd[_0x3697a8(0x21d)],this;}[_0x2294c8(0x1fd)](_0x50bac6,_0x3914c7){return this['x']=_0x50bac6,this['y']=_0x3914c7,this;}[_0x2294c8(0x1f0)](_0x236164){const _0x30e354=_0x2294c8;return this[_0x30e354(0x222)]=_0x236164,this;}['setShapeData'](_0x5b82f9){const _0x1a3f48=_0x2294c8;return _0x5b82f9['shapeType']&&this[_0x1a3f48(0x1f0)](_0x5b82f9[_0x1a3f48(0x222)]),this['shapeData']={..._0x5b82f9},this;}['setShapeSolidFill'](_0x313fdf,_0x5b570d){const _0x2c93fa=_0x2294c8;return this[_0x2c93fa(0x1d3)][_0x2c93fa(0x247)]||(this[_0x2c93fa(0x1d3)]['fill']={}),this[_0x2c93fa(0x1d3)][_0x2c93fa(0x247)][_0x2c93fa(0x221)]=_0x17ad7b[_0x2c93fa(0x206)],_0x313fdf!==void 0x0&&(this[_0x2c93fa(0x1d3)]['fill']['color']=_0x313fdf),_0x5b570d!==void 0x0&&(this[_0x2c93fa(0x1d3)]['fill'][_0x2c93fa(0x1d1)]=_0x5b570d),this;}[_0x2294c8(0x1d9)](_0x55d2fe,_0x385c53,_0x664497){const _0x361935=_0x2294c8;if(_0x385c53===void 0x0||_0x385c53[_0x361935(0x22d)]===0x0)throw Error('colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.');return this['shapeData'][_0x361935(0x247)]||(this['shapeData'][_0x361935(0x247)]={}),this[_0x361935(0x1d3)][_0x361935(0x247)][_0x361935(0x1f5)]=_0x385c53,this[_0x361935(0x1d3)][_0x361935(0x247)][_0x361935(0x221)]=_0x17ad7b[_0x361935(0x212)],this[_0x361935(0x1d3)][_0x361935(0x247)][_0x361935(0x23c)]=_0x55d2fe,_0x664497!==void 0x0&&(this[_0x361935(0x1d3)][_0x361935(0x247)][_0x361935(0x1eb)]=_0x664497),this;}[_0x2294c8(0x215)](){const _0x1ff339=_0x2294c8;return this[_0x1ff339(0x1d3)][_0x1ff339(0x247)]={'fillType':_0x17ad7b[_0x1ff339(0x220)]},this;}[_0x2294c8(0x22f)](_0x2fa00e){const _0xaffb99=_0x2294c8;return this[_0xaffb99(0x1d3)][_0xaffb99(0x1fc)]||(this[_0xaffb99(0x1d3)]['stroke']={}),this[_0xaffb99(0x1d3)]['stroke']['color']=_0x2fa00e,this;}[_0x2294c8(0x1d7)](_0xbf4748){const _0x125361=_0x2294c8;return this[_0x125361(0x1d3)]['stroke']||(this['shapeData'][_0x125361(0x1fc)]={}),this[_0x125361(0x1d3)][_0x125361(0x1fc)][_0x125361(0x1c5)]=_0xbf4748,this;}[_0x2294c8(0x202)](_0x29ca2a){const _0x41785a=_0x2294c8;return this[_0x41785a(0x1d3)][_0x41785a(0x1fc)]||(this[_0x41785a(0x1d3)][_0x41785a(0x1fc)]={}),this[_0x41785a(0x1d3)][_0x41785a(0x1fc)]['dashType']=_0x29ca2a,this;}['setStrokeLineJoinType'](_0x45b777){const _0x1cc131=_0x2294c8;return this[_0x1cc131(0x1d3)][_0x1cc131(0x1fc)]||(this[_0x1cc131(0x1d3)][_0x1cc131(0x1fc)]={}),this[_0x1cc131(0x1d3)]['stroke'][_0x1cc131(0x227)]=_0x45b777,this;}['setStrokeLineCapType'](_0x33ba9d){const _0x375a73=_0x2294c8;return this[_0x375a73(0x1d3)][_0x375a73(0x1fc)]||(this['shapeData']['stroke']={}),this[_0x375a73(0x1d3)][_0x375a73(0x1fc)][_0x375a73(0x20e)]=_0x33ba9d,this;}[_0x2294c8(0x1f2)](_0x23590f){const _0x3696cf=_0x2294c8;return this[_0x3696cf(0x1d3)][_0x3696cf(0x1fc)]||(this[_0x3696cf(0x1d3)][_0x3696cf(0x1fc)]={}),this['shapeData']['stroke']['opacity']=_0x23590f,this;}[_0x2294c8(0x242)](_0x4874cd){const _0x13eb83=_0x2294c8;return this[_0x13eb83(0x1d3)][_0x13eb83(0x1fc)]||(this['shapeData'][_0x13eb83(0x1fc)]={}),this[_0x13eb83(0x1d3)][_0x13eb83(0x1fc)]['lineStrokeType']=_0x4874cd,this;}[_0x2294c8(0x246)](_0x4ea888){return this['width']=_0x4ea888,this;}[_0x2294c8(0x1db)](_0x12a528){const _0x5f910d=_0x2294c8;return this[_0x5f910d(0x218)]=_0x12a528,this;}[_0x2294c8(0x248)](){const _0x1f090f=_0x2294c8;let _0x4715c3=this['_injector'][_0x1f090f(0x1e3)](_0x5c3722)['getShapeModel'](this[_0x1f090f(0x1ca)],this['subUnitId'],this[_0x1f090f(0x20d)]);return _0x4715c3?_0xe1c987(_0x4715c3[_0x1f090f(0x1f6)]()):this[_0x1f090f(0x222)]?_0xe1c987(this[_0x1f090f(0x222)]):!0x1;}[_0x2294c8(0x225)](){const _0x3260f3=_0x2294c8;let _0x411a55=this[_0x3260f3(0x22e)]['get'](_0x5c3722)['getShapeModel'](this[_0x3260f3(0x1ca)],this[_0x3260f3(0x219)],this['drawId']);if(!_0x411a55)return[];let _0x3d5dfa=this[_0x3260f3(0x22e)]['get'](_0x4e860d)[_0x3260f3(0x22a)]({'unitId':this['unitId'],'subUnitId':this['subUnitId'],'drawingId':this[_0x3260f3(0x20d)]});if(!(_0x3d5dfa!=null&&_0x3d5dfa['transform']))return[];let {width:_0x3e7e55=0x0,height:_0x47b691=0x0}=_0x3d5dfa[_0x3260f3(0x228)];return _0x411a55['updateContext']({'width':_0x3e7e55,'height':_0x47b691}),_0x411a55[_0x3260f3(0x205)]();}[_0x2294c8(0x1d4)](){const _0x514a6d=_0x2294c8;let _0x16fdf4=this[_0x514a6d(0x22e)]['get'](_0x5c3722)[_0x514a6d(0x1fa)](this[_0x514a6d(0x1ca)],this['subUnitId'],this[_0x514a6d(0x20d)]);if(!_0x16fdf4)return[];let _0x1706b3=this[_0x514a6d(0x22e)][_0x514a6d(0x1e3)](_0x4e860d)[_0x514a6d(0x22a)]({'unitId':this['unitId'],'subUnitId':this[_0x514a6d(0x219)],'drawingId':this[_0x514a6d(0x20d)]});if(!(_0x1706b3!=null&&_0x1706b3[_0x514a6d(0x228)]))return[];let {width:_0x41dce9=0x0,height:_0x33e58c=0x0}=_0x1706b3[_0x514a6d(0x228)];return _0x16fdf4['updateContext']({'width':_0x41dce9,'height':_0x33e58c}),_0x16fdf4[_0x514a6d(0x241)]();}[_0x2294c8(0x249)](){const _0x411be5=_0x2294c8;let _0x132594=this[_0x411be5(0x22e)][_0x411be5(0x1e3)](_0x5c3722)[_0x411be5(0x1fa)](this[_0x411be5(0x1ca)],this['subUnitId'],this[_0x411be5(0x20d)]);if(!_0x132594||!_0xe1c987(_0x132594[_0x411be5(0x1f6)]()))return[];let _0x2b025b=this[_0x411be5(0x22e)][_0x411be5(0x1e3)](_0x4e860d)['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this[_0x411be5(0x219)],'drawingId':this[_0x411be5(0x20d)]});if(!(_0x2b025b!=null&&_0x2b025b[_0x411be5(0x228)]))return[];let {width:_0x476173=0x0,height:_0xd1f238=0x0}=_0x2b025b[_0x411be5(0x228)];return _0x132594[_0x411be5(0x1d2)]({'width':_0x476173,'height':_0xd1f238}),_0x132594[_0x411be5(0x249)]();}[_0x2294c8(0x233)](){const _0x486827=_0x2294c8;var _0x438855;let _0x8ed768=this[_0x486827(0x22e)][_0x486827(0x1e3)](_0x5c3722)[_0x486827(0x1fa)](this[_0x486827(0x1ca)],this[_0x486827(0x219)],this[_0x486827(0x20d)]);return _0x8ed768?(_0x438855=_0x8ed768[_0x486827(0x233)]())==null?null:_0x438855:null;}[_0x2294c8(0x1e9)](){const _0x1b2317=_0x2294c8;var _0x1724a0;let _0x48e208=this['_injector'][_0x1b2317(0x1e3)](_0x5c3722)[_0x1b2317(0x1fa)](this[_0x1b2317(0x1ca)],this[_0x1b2317(0x219)],this['drawId']);return _0x48e208?(_0x1724a0=_0x48e208[_0x1b2317(0x1e9)]())==null?null:_0x1724a0:null;}[_0x2294c8(0x1fb)](){const _0x5cc4ee=_0x2294c8;var _0x153fbb,_0x4e7bde;if(!this[_0x5cc4ee(0x222)])throw Error(_0x5cc4ee(0x1f7));if(this['x']===0x0||this['y']===0x0){let _0x5aaea5=this['_injector'][_0x5cc4ee(0x1e3)](_0xe5b182)['ensureSkeleton'](this['unitId'],this['subUnitId']);if(!_0x5aaea5)throw Error(_0x5cc4ee(0x214)+this[_0x5cc4ee(0x1ca)]+_0x5cc4ee(0x231)+this['subUnitId']+'\x20not\x20found');let {transform:_0x3312e3}=_0x439023(this[_0x5cc4ee(0x1ca)],this[_0x5cc4ee(0x219)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x5aaea5);this['x']=this['x']>0x0?this['x']:_0x3312e3[_0x5cc4ee(0x1dd)],this['y']=this['y']>0x0?this['y']:_0x3312e3[_0x5cc4ee(0x21d)];}return this['width']=(_0x153fbb=this[_0x5cc4ee(0x1c5)])==null?_0xdabd8b:_0x153fbb,this['height']=(_0x4e7bde=this[_0x5cc4ee(0x218)])==null?_0x11c2a4:_0x4e7bde,{'unitId':this[_0x5cc4ee(0x1ca)],'subUnitId':this[_0x5cc4ee(0x219)],'shapeId':this[_0x5cc4ee(0x20d)],'shapeType':this[_0x5cc4ee(0x222)],'shapeData':Object[_0x5cc4ee(0x1e5)](this[_0x5cc4ee(0x1d3)])[_0x5cc4ee(0x22d)]>0x0?this['shapeData']:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x5cc4ee(0x218)]};}[_0x2294c8(0x1cf)](){const _0x299801=_0x2294c8;return this[_0x299801(0x20d)];}[_0x2294c8(0x1f6)](){const _0x2bbab4=_0x2294c8;return this[_0x2bbab4(0x222)];}[_0x2294c8(0x1e1)](){const _0x3e91c9=_0x2294c8;return this[_0x3e91c9(0x1d3)];}['getPosition'](){return{'x':this['x'],'y':this['y']};}[_0x2294c8(0x245)](){const _0x18b848=_0x2294c8;return{'width':this['width'],'height':this[_0x18b848(0x218)]};}},F=class extends P{constructor(_0x3ceb21,_0x42f34b,_0x53d6a9,_0x54f813){const _0x37e36c=_0x2294c8;super(_0x3ceb21,_0x42f34b,_0x53d6a9,_0x54f813),N(this,_0x37e36c(0x1d3),{});}[_0x2294c8(0x1f0)](_0x13a1a3){const _0x2c6723=_0x2294c8;if(!_0xe1c987(_0x13a1a3))throw Error(_0x2c6723(0x210)+_0x13a1a3+_0x2c6723(0x1e8));return super['setShapeType'](_0x13a1a3),this;}[_0x2294c8(0x1ee)](_0x599217){const _0x1d3eea=_0x2294c8;var _0x2609be,_0x39a67e;return(_0x2609be=this[_0x1d3eea(0x1d3)])!=null&&_0x2609be['ln']||(this['shapeData']['ln']={}),!((_0x39a67e=this[_0x1d3eea(0x1d3)])==null||(_0x39a67e=_0x39a67e['ln'])==null)&&_0x39a67e['startArrow']||(this[_0x1d3eea(0x1d3)]['ln'][_0x1d3eea(0x1ef)]={}),this[_0x1d3eea(0x1d3)]['ln'][_0x1d3eea(0x1ef)][_0x1d3eea(0x21f)]=_0x599217,this;}[_0x2294c8(0x23d)](_0x3dd134){const _0x5aa569=_0x2294c8;var _0xfa308,_0x351dd6;return(_0xfa308=this[_0x5aa569(0x1d3)])!=null&&_0xfa308['ln']||(this[_0x5aa569(0x1d3)]['ln']={}),!((_0x351dd6=this[_0x5aa569(0x1d3)])==null||(_0x351dd6=_0x351dd6['ln'])==null)&&_0x351dd6[_0x5aa569(0x1d8)]||(this[_0x5aa569(0x1d3)]['ln'][_0x5aa569(0x1d8)]={}),this['shapeData']['ln']['endArrow'][_0x5aa569(0x21f)]=_0x3dd134,this;}[_0x2294c8(0x1cd)](_0x31eab9){const _0xf4d18e=_0x2294c8;var _0x40bd11,_0x134d29;return(_0x40bd11=this[_0xf4d18e(0x1d3)])!=null&&_0x40bd11['ln']||(this[_0xf4d18e(0x1d3)]['ln']={}),!((_0x134d29=this['shapeData'])==null||(_0x134d29=_0x134d29['ln'])==null)&&_0x134d29[_0xf4d18e(0x1ef)]||(this[_0xf4d18e(0x1d3)]['ln']['startArrow']={}),this[_0xf4d18e(0x1d3)]['ln']['startArrow'][_0xf4d18e(0x243)]=_0x31eab9,this;}[_0x2294c8(0x209)](_0x5179ba){const _0x3a6800=_0x2294c8;var _0x4f9409,_0x250ee5;return(_0x4f9409=this[_0x3a6800(0x1d3)])!=null&&_0x4f9409['ln']||(this[_0x3a6800(0x1d3)]['ln']={}),!((_0x250ee5=this[_0x3a6800(0x1d3)])==null||(_0x250ee5=_0x250ee5['ln'])==null)&&_0x250ee5[_0x3a6800(0x1d8)]||(this[_0x3a6800(0x1d3)]['ln']['endArrow']={}),this['shapeData']['ln'][_0x3a6800(0x1d8)][_0x3a6800(0x243)]=_0x5179ba,this;}[_0x2294c8(0x1fb)](){return super['build']();}[_0x2294c8(0x1e9)](){const _0x271a70=_0x2294c8;var _0x3b5a6e;return((_0x3b5a6e=this[_0x271a70(0x1d3)])==null||(_0x3b5a6e=_0x3b5a6e[_0x271a70(0x240)])==null?void 0x0:_0x3b5a6e['to'])||null;}[_0x2294c8(0x233)](){const _0x7f272e=_0x2294c8;var _0x19b794;return((_0x19b794=this['shapeData'])==null||(_0x19b794=_0x19b794[_0x7f272e(0x240)])==null?void 0x0:_0x19b794[_0x7f272e(0x1f3)])||null;}};function I(_0x20336c,_0x1dfd7b,_0x14df5a,_0x36efcb,_0x4a590e,_0x25c7a7){const _0x331a96=_0x2294c8;let _0x45800d=_0x4a590e[_0x331a96(0x1fa)](_0x20336c,_0x1dfd7b,_0x14df5a);if(!_0x45800d)return null;let _0x3d7c50=_0x25c7a7['getDrawingByParam']({'unitId':_0x20336c,'subUnitId':_0x1dfd7b,'drawingId':_0x14df5a});if(!(_0x3d7c50!=null&&_0x3d7c50[_0x331a96(0x228)]))return null;let {left:_0x310935=0x0,top:_0x519fae=0x0,width:_0x201003=0x0,height:_0x525de1=0x0,flipX:_0x2ed3e6=!0x1,flipY:_0x2b6667=!0x1,angle:_0x134923}=_0x3d7c50[_0x331a96(0x228)];_0x45800d[_0x331a96(0x1d2)]({'width':_0x201003,'height':_0x525de1});let _0x1ac5ed=_0x45800d[_0x331a96(0x205)]()[_0x331a96(0x244)](_0x58cc8e=>_0x58cc8e['index']===_0x36efcb);if(!_0x1ac5ed)return null;let _0x15ec78=_0x2ed3e6?_0x201003-_0x1ac5ed['x']:_0x1ac5ed['x'],_0x438821=_0x2b6667?_0x525de1-_0x1ac5ed['y']:_0x1ac5ed['y'];if(_0x134923&&_0x134923!==0x0){let _0x3f203a=_0x134923*Math['PI']/0xb4,_0x283e8d=Math[_0x331a96(0x235)](_0x3f203a),_0x2d1844=Math['sin'](_0x3f203a),_0x3820d9=_0x201003/0x2,_0x3f63bf=_0x525de1/0x2,_0x36e6f8=_0x15ec78-_0x3820d9,_0xbb0eb9=_0x438821-_0x3f63bf;_0x15ec78=_0x3820d9+_0x36e6f8*_0x283e8d-_0xbb0eb9*_0x2d1844,_0x438821=_0x3f63bf+_0x36e6f8*_0x2d1844+_0xbb0eb9*_0x283e8d;}_0x15ec78+=_0x310935,_0x438821+=_0x519fae;let _0x527b10=_0x1ac5ed[_0x331a96(0x20a)]/0xea60;_0x2ed3e6&&(_0x527b10=0xb4-_0x527b10),_0x2b6667&&(_0x527b10=-_0x527b10),_0x527b10+=_0x134923||0x0,_0x527b10=(_0x527b10%0x168+0x168)%0x168;let _0x1104a8=_0x5350e5({'left':_0x310935,'top':_0x519fae,'width':_0x201003,'height':_0x525de1},_0x134923||0x0);return{'point':{'x':_0x15ec78,'y':_0x438821},'angle':_0x527b10,'bounds':_0x1104a8};}function L(_0x457973,_0x467354){const _0x2b083d=_0x2294c8;let _0x4c5881=_0x467354['x']-_0x457973['x'],_0x268f7e=_0x467354['y']-_0x457973['y'];return Math[_0x2b083d(0x200)](_0x4c5881)>=Math['abs'](_0x268f7e)?_0x4c5881>=0x0?0xb4:0x0:_0x268f7e>=0x0?0x10e:0x5a;}function R(_0x42ebd4,_0x41045c,_0x346f0d,_0x42f598,_0x49e4fa,_0x5868c6,_0x69a39d){const _0xb7570f=_0x2294c8;let _0x1de5ea=_0x5868c6[_0xb7570f(0x1fa)](_0x42ebd4,_0x41045c,_0x346f0d);if(!_0x1de5ea)return null;let _0xf9636d=_0x69a39d['getDrawingByParam']({'unitId':_0x42ebd4,'subUnitId':_0x41045c,'drawingId':_0x346f0d});if(!(_0xf9636d!=null&&_0xf9636d[_0xb7570f(0x228)]))return null;let {left:_0x1d932a=0x0,top:_0x654a09=0x0,width:_0x17721b=0x0,height:_0x5db118=0x0,flipX:_0x374390=!0x1,flipY:_0x529e77=!0x1}=_0xf9636d['transform'];_0x1de5ea['updateContext']({'width':_0x17721b,'height':_0x5db118});let _0xdfeaa6=_0x1de5ea[_0xb7570f(0x249)]();if(_0xdfeaa6['length']<0x2)return null;let _0x311ead=_0x42f598?_0xdfeaa6[0x0]:_0xdfeaa6[_0xdfeaa6['length']-0x1],_0x5efb79=new _0x226b98({'left':_0x1d932a,'top':_0x654a09,'width':_0x17721b,'height':_0x5db118,'flipX':_0x374390,'flipY':_0x529e77})[_0xb7570f(0x21c)](_0x311ead);return{'point':_0x5efb79,'angle':L(_0x49e4fa[_0xb7570f(0x1f4)],_0x5efb79),'bounds':{'left':_0x5efb79['x'],'top':_0x5efb79['y'],'width':0x0,'height':0x0}};}function _0x10e5(_0x2a12c3,_0x79ac5a){_0x2a12c3=_0x2a12c3-0x1c5;const _0x2ff63f=_0x2ff6();let _0x10e548=_0x2ff63f[_0x2a12c3];return _0x10e548;}var z=class extends _0x4f6f37{async[_0x2294c8(0x22b)](_0x518ede){const _0x2687ee=_0x2294c8;let {unitId:_0x13c442,subUnitId:_0x590a86,shapeId:_0x499271,shapeType:_0x459c80,shapeData:_0x2e719a,x:_0x317d35,y:_0x4583c4,width:_0x2650aa,height:_0x5b6add}=_0x518ede;return this[_0x2687ee(0x216)][_0x2687ee(0x1f9)](_0x2b5f84['id'],{'unitId':_0x13c442,'subUnitId':_0x590a86,'shapeId':_0x499271,'shapeType':_0x459c80,'shapeData':_0x2e719a,'position':{'x':_0x317d35,'y':_0x4583c4},'width':_0x2650aa,'height':_0x5b6add});}async[_0x2294c8(0x1ce)](_0x534acf){const _0x3e9c87=_0x2294c8;let {unitId:_0x3cd1c5,subUnitId:_0x42e559,shapeId:_0x33282e,shapeType:_0x57fd12,shapeData:_0x12c1db,x:_0x3b4908,y:_0xf60132,width:_0x1887e3,height:_0x203ae6}=_0x534acf;return this[_0x3e9c87(0x216)][_0x3e9c87(0x1f9)](_0x4bd9a0['id'],{'unitId':_0x3cd1c5,'subUnitId':_0x42e559,'shapeId':_0x33282e,'shapeType':_0x57fd12,'shapeData':_0x12c1db,'position':{'x':_0x3b4908,'y':_0xf60132},'width':_0x1887e3,'height':_0x203ae6});}['newShape'](_0x339dd0){const _0x5de9c2=_0x2294c8;let _0x1489bb=this[_0x5de9c2(0x203)]()[_0x5de9c2(0x1ec)](),_0x472bb4=this[_0x5de9c2(0x238)]();if(_0x339dd0){let _0x4e3568=new P(_0x1489bb,_0x472bb4,_0x339dd0[_0x5de9c2(0x20d)],this['_injector']);return this[_0x5de9c2(0x1e7)](_0x4e3568,_0x1489bb,_0x472bb4,_0x339dd0[_0x5de9c2(0x20d)]),_0x4e3568;}return new P(_0x1489bb,_0x472bb4,_0x4e4bad(),this['_injector']);}['newConnector'](_0x43fc0d){const _0x47823c=_0x2294c8;let _0x3f05c9=this[_0x47823c(0x203)]()[_0x47823c(0x1ec)](),_0x4f1ee3=this['getSheetId']();if(_0x43fc0d){let _0x220291=new F(_0x3f05c9,_0x4f1ee3,_0x43fc0d['drawId'],this[_0x47823c(0x22e)]);return this['_preloadShapeProperties'](_0x220291,_0x3f05c9,_0x4f1ee3,_0x43fc0d[_0x47823c(0x20d)]),_0x220291;}return new F(_0x3f05c9,_0x4f1ee3,_0x4e4bad(),this[_0x47823c(0x22e)]);}[_0x2294c8(0x1e4)](){const _0x7390e2=_0x2294c8;let _0x120489=this[_0x7390e2(0x22e)][_0x7390e2(0x1e3)](_0xa71416),_0x3d597f=this[_0x7390e2(0x203)]()['getUnitId'](),_0x2a2e0f=this[_0x7390e2(0x238)](),_0x509c9f=_0x120489[_0x7390e2(0x213)](_0x3d597f,_0x2a2e0f);if(!_0x509c9f)return[];let _0xc15c52=[];for(let [_0x253011,_0x1d4231]of Object['entries'](_0x509c9f))if(_0x1d4231&&_0x1d4231[_0x7390e2(0x207)]===_0x285b45[_0x7390e2(0x237)]){let _0x57cf5c=new P(_0x3d597f,_0x2a2e0f,_0x253011,this[_0x7390e2(0x22e)]);this[_0x7390e2(0x1e7)](_0x57cf5c,_0x3d597f,_0x2a2e0f,_0x253011),_0xc15c52['push'](_0x57cf5c);}return _0xc15c52;}[_0x2294c8(0x1da)](_0x5dcdfe){const _0x2c691b=_0x2294c8;let {unitId:_0x3bb5ec,subUnitId:_0xbcc1d0,drawId:_0x1004d8}=_0x5dcdfe;return this[_0x2c691b(0x216)][_0x2c691b(0x1f9)](_0x1b2369['id'],{'unitId':_0x3bb5ec,'drawings':[{'unitId':_0x3bb5ec,'subUnitId':_0xbcc1d0,'drawingId':_0x1004d8,'drawingType':_0x285b45[_0x2c691b(0x237)]}]});}async[_0x2294c8(0x236)](_0x10c630){const _0x4e2616=_0x2294c8;let {connector:_0x90d6cd,startTarget:_0x410607,endTarget:_0x49f4f8}=_0x10c630;if(!_0x410607&&!_0x49f4f8)return!0x1;let _0x4fe5f4=this['getWorkbook']()[_0x4e2616(0x1ec)](),_0x1d5dca=this[_0x4e2616(0x238)](),_0x5b30a5=this[_0x4e2616(0x22e)][_0x4e2616(0x1e3)](_0x5c3722),_0x42ea4c=this[_0x4e2616(0x22e)]['get'](_0x4e860d),_0x3f9b57=_0x5b30a5[_0x4e2616(0x1fa)](_0x4fe5f4,_0x1d5dca,_0x90d6cd[_0x4e2616(0x20d)]);if(!_0x3f9b57)return!0x1;let _0x1e639e=_0x3f9b57['getShapeType'](),_0x3fbcad=_0x3f9b57[_0x4e2616(0x1c7)](),_0x32b2f6={};for(let _0x14f71e of _0x3f9b57[_0x4e2616(0x1d5)]()){let _0x23047e=_0x3f9b57[_0x4e2616(0x217)](_0x14f71e);_0x23047e!==void 0x0&&(_0x32b2f6[_0x14f71e]=_0x23047e);}let {startInfo:_0x3ca704,endInfo:_0x33e99c}=this[_0x4e2616(0x208)](_0x4fe5f4,_0x1d5dca,_0x90d6cd,_0x3f9b57,_0x410607,_0x49f4f8,_0x5b30a5,_0x42ea4c,_0x3fbcad);if(!_0x3ca704||!_0x33e99c)return!0x1;let _0xe9ee61=_0x8012ef(_0x1966ac(_0x3ca704,_0x33e99c,_0x1e639e),_0x1e639e),_0x3834d4={};return _0x410607?_0x3834d4[_0x4e2616(0x1f3)]={'shapeId':_0x410607['shape'][_0x4e2616(0x20d)],'cxnIndex':_0x410607['connectionSiteIndex']}:_0x3fbcad!=null&&_0x3fbcad['from']&&(_0x3834d4[_0x4e2616(0x1f3)]=_0x3fbcad[_0x4e2616(0x1f3)]),_0x49f4f8?_0x3834d4['to']={'shapeId':_0x49f4f8[_0x4e2616(0x1f1)]['drawId'],'cxnIndex':_0x49f4f8['connectionSiteIndex']}:_0x3fbcad!=null&&_0x3fbcad['to']&&(_0x3834d4['to']=_0x3fbcad['to']),this[_0x4e2616(0x216)][_0x4e2616(0x1f9)](_0x3ac70a['id'],{'unitId':_0x4fe5f4,'subUnitId':_0x1d5dca,'connectorShapeId':_0x90d6cd[_0x4e2616(0x20d)],'width':_0xe9ee61[_0x4e2616(0x211)]['width'],'height':_0xe9ee61[_0x4e2616(0x211)][_0x4e2616(0x218)],'left':_0xe9ee61[_0x4e2616(0x211)][_0x4e2616(0x1dd)],'top':_0xe9ee61[_0x4e2616(0x211)][_0x4e2616(0x21d)],'flipX':_0xe9ee61['worldRect'][_0x4e2616(0x1c9)]||!0x1,'flipY':_0xe9ee61[_0x4e2616(0x211)][_0x4e2616(0x1e2)]||!0x1,'oldAdjustValues':_0x32b2f6,'newAdjustValues':_0xe9ee61[_0x4e2616(0x21b)],'newLineType':_0xe9ee61['lineType'],'oldLineType':_0x1e639e,'rotation':_0xe9ee61[_0x4e2616(0x22c)],'oldRelation':_0x3fbcad,'newRelation':_0x3834d4});}[_0x2294c8(0x1e7)](_0x143ada,_0x5976d4,_0xffcd87,_0x5be5dd){const _0x3d4c33=_0x2294c8;let _0x2e2d92=this[_0x3d4c33(0x22e)]['get'](_0x4e860d)[_0x3d4c33(0x22a)]({'unitId':_0x5976d4,'subUnitId':_0xffcd87,'drawingId':_0x5be5dd});if(_0x2e2d92!=null&&_0x2e2d92[_0x3d4c33(0x228)]){var _0x1ccff4,_0x5bd70f,_0x19c628,_0x50ccaf;_0x143ada['x']=(_0x1ccff4=_0x2e2d92[_0x3d4c33(0x228)][_0x3d4c33(0x1dd)])==null?0x0:_0x1ccff4,_0x143ada['y']=(_0x5bd70f=_0x2e2d92[_0x3d4c33(0x228)]['top'])==null?0x0:_0x5bd70f,_0x143ada[_0x3d4c33(0x1c5)]=(_0x19c628=_0x2e2d92[_0x3d4c33(0x228)][_0x3d4c33(0x1c5)])==null?_0x143ada[_0x3d4c33(0x1c5)]:_0x19c628,_0x143ada[_0x3d4c33(0x218)]=(_0x50ccaf=_0x2e2d92[_0x3d4c33(0x228)][_0x3d4c33(0x218)])==null?_0x143ada[_0x3d4c33(0x218)]:_0x50ccaf;}let _0x112727=this[_0x3d4c33(0x22e)][_0x3d4c33(0x1e3)](_0x5c3722)[_0x3d4c33(0x1fa)](_0x5976d4,_0xffcd87,_0x5be5dd);if(_0x112727){_0x143ada[_0x3d4c33(0x222)]=_0x112727[_0x3d4c33(0x1f6)]();let _0x3bd835=_0x112727[_0x3d4c33(0x1e1)]();_0x3bd835&&(_0x143ada[_0x3d4c33(0x1d3)]=JSON['parse'](JSON[_0x3d4c33(0x1d0)](_0x3bd835)));}}[_0x2294c8(0x208)](_0x1dacb4,_0x59248c,_0x17164b,_0x70a6a,_0x5708c8,_0x21c049,_0x1ce575,_0x3fb1bd,_0x2e2563){const _0x1493bd=_0x2294c8;let _0x15ffa2=null,_0x57025e=null;return _0x5708c8&&(_0x15ffa2=I(_0x1dacb4,_0x59248c,_0x5708c8[_0x1493bd(0x1f1)][_0x1493bd(0x20d)],_0x5708c8[_0x1493bd(0x23f)],_0x1ce575,_0x3fb1bd)),_0x21c049&&(_0x57025e=I(_0x1dacb4,_0x59248c,_0x21c049[_0x1493bd(0x1f1)]['drawId'],_0x21c049[_0x1493bd(0x23f)],_0x1ce575,_0x3fb1bd)),_0x15ffa2||(_0x15ffa2=this[_0x1493bd(0x1df)](_0x1dacb4,_0x59248c,_0x17164b['drawId'],!0x0,_0x57025e,_0x2e2563==null?void 0x0:_0x2e2563[_0x1493bd(0x1f3)],_0x1ce575,_0x3fb1bd)),_0x57025e||(_0x57025e=this[_0x1493bd(0x1df)](_0x1dacb4,_0x59248c,_0x17164b[_0x1493bd(0x20d)],!0x1,_0x15ffa2,_0x2e2563==null?void 0x0:_0x2e2563['to'],_0x1ce575,_0x3fb1bd)),{'startInfo':_0x15ffa2,'endInfo':_0x57025e};}['_resolveExistingOrFreeEndpoint'](_0xc5558a,_0x98c206,_0x511892,_0x368ace,_0x3c06ec,_0x5d0a85,_0x67d839,_0x39c03d){const _0x59461b=_0x2294c8;if(_0x5d0a85){let _0x5d38ef=I(_0xc5558a,_0x98c206,_0x5d0a85[_0x59461b(0x234)],_0x5d0a85[_0x59461b(0x226)],_0x67d839,_0x39c03d);if(_0x5d38ef)return _0x5d38ef;}return _0x3c06ec?R(_0xc5558a,_0x98c206,_0x511892,_0x368ace,_0x3c06ec,_0x67d839,_0x39c03d):null;}};_0x4f6f37[_0x2294c8(0x1f8)](z);export{F as FConnectorShape,P as FShape};
|
|
1
|
+
const _0x2065d0=_0xc882;(function(_0x4e4862,_0x4b4ecf){const _0xed047a=_0xc882,_0x1b06fa=_0x4e4862();while(!![]){try{const _0x2cf074=parseInt(_0xed047a(0x120))/0x1*(-parseInt(_0xed047a(0xd5))/0x2)+parseInt(_0xed047a(0x104))/0x3*(parseInt(_0xed047a(0x133))/0x4)+parseInt(_0xed047a(0x145))/0x5*(-parseInt(_0xed047a(0x14f))/0x6)+-parseInt(_0xed047a(0x147))/0x7+-parseInt(_0xed047a(0x100))/0x8+-parseInt(_0xed047a(0xf4))/0x9*(parseInt(_0xed047a(0xf5))/0xa)+parseInt(_0xed047a(0x13a))/0xb*(parseInt(_0xed047a(0x156))/0xc);if(_0x2cf074===_0x4b4ecf)break;else _0x1b06fa['push'](_0x1b06fa['shift']());}catch(_0x542e0d){_0x1b06fa['push'](_0x1b06fa['shift']());}}}(_0x2d32,0xf1bc9));import{ConnectorCoordinateTransform as _0x3b375f,ShapeArrowSizeEnum as _0x2697f2,ShapeArrowTypeEnum as _0x3667a8,ShapeFillEnum as _0x1b6987,ShapeGradientTypeEnum as _0x232bc2,ShapeLineCapEnum as _0x469542,ShapeLineDashEnum as _0x46a87e,ShapeLineJoinEnum as _0x2a526c,ShapeLineTypeEnum as _0x4c85fd,ShapeTypeEnum as _0x34ce3c,computeConnectorRouteLayout as _0x83727e,getBasicShapeRotateBound as _0x564fe0,isConnectorShape as _0x3e4501,routeConnectorLineShape as _0x284ac3}from'@univerjs-pro/engine-shape';import{FEnum as _0x16a57f}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x2678b4,DEFAULT_SHAPE_WIDTH as _0x16c70b,InsertShapeCommand as _0x46d0ed,SetShapeDrawingDataCommand as _0xc951e2,SheetsShapeService as _0x5ea320,UpdateConnectorRelationCommand as _0x2cfebf}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x5677bd,generateRandomId as _0x524228}from'@univerjs/core';import{IDrawingManagerService as _0x278e9f}from'@univerjs/drawing';import{SheetSkeletonService as _0x412dcf,convertPositionCellToSheetOverGrid as _0x364d94}from'@univerjs/sheets';import{ISheetDrawingService as _0x4a1927,RemoveSheetDrawingCommand as _0x54116}from'@univerjs/sheets-drawing';import{FWorksheet as _0x302bd6}from'@univerjs/sheets/facade';var k=class extends _0x16a57f{get[_0x2065d0(0xec)](){return _0x34ce3c;}get['ShapeFillEnum'](){return _0x1b6987;}get[_0x2065d0(0x13b)](){return _0x232bc2;}get[_0x2065d0(0x14a)](){return _0x4c85fd;}get[_0x2065d0(0xee)](){return _0x46a87e;}get[_0x2065d0(0xfa)](){return _0x469542;}get['ShapeLineJoinEnum'](){return _0x2a526c;}get['ShapeArrowTypeEnum'](){return _0x3667a8;}get[_0x2065d0(0x115)](){return _0x2697f2;}};_0x16a57f[_0x2065d0(0x13c)](k);function A(_0x4121cb){'@babel/helpers - typeof';const _0x22e148=_0x2065d0;return A=typeof Symbol=='function'&&typeof Symbol[_0x22e148(0x14e)]==_0x22e148(0x126)?function(_0x461a90){return typeof _0x461a90;}:function(_0x5efcec){const _0x2fecc4=_0x22e148;return _0x5efcec&&typeof Symbol=='function'&&_0x5efcec[_0x2fecc4(0x150)]===Symbol&&_0x5efcec!==Symbol['prototype']?_0x2fecc4(0x126):typeof _0x5efcec;},A(_0x4121cb);}function j(_0xf7cf92,_0x4dda91){const _0x4a5219=_0x2065d0;if(A(_0xf7cf92)!='object'||!_0xf7cf92)return _0xf7cf92;var _0x589f0a=_0xf7cf92[Symbol[_0x4a5219(0x14c)]];if(_0x589f0a!==void 0x0){var _0x169b30=_0x589f0a[_0x4a5219(0x14d)](_0xf7cf92,_0x4dda91||_0x4a5219(0xe0));if(A(_0x169b30)!=_0x4a5219(0xd2))return _0x169b30;throw TypeError(_0x4a5219(0xf6));}return(_0x4dda91===_0x4a5219(0xe3)?String:Number)(_0xf7cf92);}function M(_0x5ca77c){const _0x223c1f=_0x2065d0;var _0x30833e=j(_0x5ca77c,_0x223c1f(0xe3));return A(_0x30833e)=='symbol'?_0x30833e:_0x30833e+'';}function N(_0x484646,_0x58e441,_0x414fd0){const _0x34cd67=_0x2065d0;return(_0x58e441=M(_0x58e441))in _0x484646?Object[_0x34cd67(0x102)](_0x484646,_0x58e441,{'value':_0x414fd0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x484646[_0x58e441]=_0x414fd0,_0x484646;}function _0x2d32(){const _0x2905ed=['subUnitId','3042iNeOyw','38870rgAnsi','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','fillType','connectShapes','updateShape','ShapeLineCapEnum','shapeType','getShapeType','from','_resolveEndpoints','build','6327160FWyZgC','SolidFill','defineProperty','drawingType','4724373rgZrTk','getSize','parse','gradientStops','_preloadShapeProperties','updateContext','_commandService','ensureSkeleton','type','transform','stringify','width','cos','setStrokeLineType','DRAWING_SHAPE','newShape','getWorkbook','ShapeArrowSizeEnum','capType','getShapeId','point','setEndArrowType','push','setStartArrowType','lineType','getEndConnectInfo','getPosition','fill','207rIMdxY','flipY','setShapeSolidFill','relation','setStrokeLineCapType','GradientFill','symbol','connectionSiteIndex','unitId','getAdjustValueByName','flipX','size','shapeId','setStrokeOpacity','setShapeType','getSheetId','getShapeData','entries','setStrokeWidth','4LgljxL','getConnectionSiteList','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','setShapeGradientFill',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','getConnectorLinePoints','getAdjustNames','59085114OWioWU','ShapeGradientTypeEnum','extend','setStrokeLineDashType','worldRect','isLineShape','endArrow','getShapes','adjustValues','setPosition','getDrawingPoints','185065wyJWBL','opacity','9255414UIlcGT','drawId','shape','ShapeLineTypeEnum','keys','toPrimitive','call','iterator','282qjaWYg','constructor','height','executeCommand','color','setNoneFill','getStartConnectInfo','12AhoLqg','setShapeData','NoFill','object','stroke','getDrawingByParam','7628bxVozg','length','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','getDrawingData','find','Skeleton\x20for\x20unitId\x20','insertShape','setStrokeLineJoinType','left','setHeight','shapeData','default','startArrow','\x20not\x20found','string','getUnitId','getShapeModel','sin','setAbsolutePosition','rotation','\x20and\x20subUnitId\x20','_resolveExistingOrFreeEndpoint','_injector','ShapeTypeEnum','get','ShapeLineDashEnum','abs','getShapeRelation','top','index'];_0x2d32=function(){return _0x2905ed;};return _0x2d32();}var P=class{constructor(_0x1be4e6,_0x1fb6f3,_0x2f646a,_0x478602){const _0x5a6bd7=_0x2065d0;N(this,'unitId',void 0x0),N(this,'subUnitId',void 0x0),N(this,_0x5a6bd7(0x148),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,_0x5a6bd7(0x10f),_0x16c70b),N(this,_0x5a6bd7(0x151),_0x2678b4),N(this,'shapeType',void 0x0),N(this,_0x5a6bd7(0xdf),{}),N(this,_0x5a6bd7(0xeb),void 0x0),this[_0x5a6bd7(0x128)]=_0x1be4e6,this[_0x5a6bd7(0xf3)]=_0x1fb6f3,this[_0x5a6bd7(0x148)]=_0x2f646a||_0x524228(),this[_0x5a6bd7(0xeb)]=_0x478602;}[_0x2065d0(0x143)](_0xda45b5,_0x49a4d2,_0x109668,_0x11e57b){const _0x21a2d5=_0x2065d0;let _0x525f63=this[_0x21a2d5(0xeb)]['get'](_0x412dcf)[_0x21a2d5(0x10b)](this[_0x21a2d5(0x128)],this[_0x21a2d5(0xf3)]);if(!_0x525f63)throw Error(_0x21a2d5(0xda)+this[_0x21a2d5(0x128)]+'\x20and\x20subUnitId\x20'+this['subUnitId']+_0x21a2d5(0xe2));let {transform:_0x5bac7a}=_0x364d94(this[_0x21a2d5(0x128)],this['subUnitId'],{'row':_0xda45b5,'column':_0x49a4d2,'rowOffset':_0x109668,'columnOffset':_0x11e57b},0x1,0x1,_0x525f63);return this['x']=_0x5bac7a[_0x21a2d5(0xdd)],this['y']=_0x5bac7a[_0x21a2d5(0xf1)],this;}[_0x2065d0(0xe7)](_0x5e5cfe,_0x398cdd){return this['x']=_0x5e5cfe,this['y']=_0x398cdd,this;}['setShapeType'](_0x217740){const _0x338ecc=_0x2065d0;return this[_0x338ecc(0xfb)]=_0x217740,this;}[_0x2065d0(0xd0)](_0x475963){const _0x35f9ed=_0x2065d0;return _0x475963['shapeType']&&this[_0x35f9ed(0x12e)](_0x475963[_0x35f9ed(0xfb)]),this[_0x35f9ed(0xdf)]={..._0x475963},this;}[_0x2065d0(0x122)](_0x4149ce,_0x4aa373){const _0x4064a7=_0x2065d0;return this[_0x4064a7(0xdf)]['fill']||(this[_0x4064a7(0xdf)][_0x4064a7(0x11f)]={}),this[_0x4064a7(0xdf)][_0x4064a7(0x11f)][_0x4064a7(0xf7)]=_0x1b6987[_0x4064a7(0x101)],_0x4149ce!==void 0x0&&(this[_0x4064a7(0xdf)][_0x4064a7(0x11f)][_0x4064a7(0x153)]=_0x4149ce),_0x4aa373!==void 0x0&&(this[_0x4064a7(0xdf)]['fill']['opacity']=_0x4aa373),this;}[_0x2065d0(0x136)](_0x333bfd,_0x47c3b6,_0x11a4e4){const _0x5ed25b=_0x2065d0;if(_0x47c3b6===void 0x0||_0x47c3b6[_0x5ed25b(0xd6)]===0x0)throw Error(_0x5ed25b(0xd7));return this[_0x5ed25b(0xdf)][_0x5ed25b(0x11f)]||(this[_0x5ed25b(0xdf)]['fill']={}),this[_0x5ed25b(0xdf)][_0x5ed25b(0x11f)][_0x5ed25b(0x107)]=_0x47c3b6,this[_0x5ed25b(0xdf)][_0x5ed25b(0x11f)][_0x5ed25b(0xf7)]=_0x1b6987[_0x5ed25b(0x125)],this[_0x5ed25b(0xdf)][_0x5ed25b(0x11f)]['gradientType']=_0x333bfd,_0x11a4e4!==void 0x0&&(this['shapeData'][_0x5ed25b(0x11f)]['gradientAngle']=_0x11a4e4),this;}[_0x2065d0(0x154)](){const _0x2b66be=_0x2065d0;return this['shapeData']['fill']={'fillType':_0x1b6987[_0x2b66be(0xd1)]},this;}['setStrokeColor'](_0x218c9a){const _0x470cac=_0x2065d0;return this[_0x470cac(0xdf)]['stroke']||(this['shapeData'][_0x470cac(0xd3)]={}),this[_0x470cac(0xdf)]['stroke']['color']=_0x218c9a,this;}[_0x2065d0(0x132)](_0x483c4c){const _0x4b85f4=_0x2065d0;return this[_0x4b85f4(0xdf)]['stroke']||(this[_0x4b85f4(0xdf)][_0x4b85f4(0xd3)]={}),this['shapeData']['stroke'][_0x4b85f4(0x10f)]=_0x483c4c,this;}[_0x2065d0(0x13d)](_0x1fb5d7){const _0x5ea717=_0x2065d0;return this[_0x5ea717(0xdf)][_0x5ea717(0xd3)]||(this[_0x5ea717(0xdf)][_0x5ea717(0xd3)]={}),this['shapeData'][_0x5ea717(0xd3)]['dashType']=_0x1fb5d7,this;}[_0x2065d0(0xdc)](_0x3877b7){const _0x19af81=_0x2065d0;return this[_0x19af81(0xdf)][_0x19af81(0xd3)]||(this['shapeData']['stroke']={}),this[_0x19af81(0xdf)][_0x19af81(0xd3)]['lineJoinType']=_0x3877b7,this;}[_0x2065d0(0x124)](_0x14c864){const _0x46a04e=_0x2065d0;return this[_0x46a04e(0xdf)][_0x46a04e(0xd3)]||(this[_0x46a04e(0xdf)][_0x46a04e(0xd3)]={}),this[_0x46a04e(0xdf)][_0x46a04e(0xd3)][_0x46a04e(0x116)]=_0x14c864,this;}[_0x2065d0(0x12d)](_0x2f646d){const _0x3b2eb8=_0x2065d0;return this[_0x3b2eb8(0xdf)]['stroke']||(this['shapeData']['stroke']={}),this['shapeData'][_0x3b2eb8(0xd3)][_0x3b2eb8(0x146)]=_0x2f646d,this;}[_0x2065d0(0x111)](_0x180670){const _0x14662e=_0x2065d0;return this[_0x14662e(0xdf)]['stroke']||(this['shapeData'][_0x14662e(0xd3)]={}),this['shapeData'][_0x14662e(0xd3)]['lineStrokeType']=_0x180670,this;}['setWidth'](_0x7d9086){const _0x251e93=_0x2065d0;return this[_0x251e93(0x10f)]=_0x7d9086,this;}[_0x2065d0(0xde)](_0x18b29f){return this['height']=_0x18b29f,this;}[_0x2065d0(0x13f)](){const _0x59bb34=_0x2065d0;let _0x1c7a07=this[_0x59bb34(0xeb)]['get'](_0x5ea320)[_0x59bb34(0xe5)](this['unitId'],this['subUnitId'],this[_0x59bb34(0x148)]);return _0x1c7a07?_0x3e4501(_0x1c7a07[_0x59bb34(0xfc)]()):this[_0x59bb34(0xfb)]?_0x3e4501(this[_0x59bb34(0xfb)]):!0x1;}['getConnectionSites'](){const _0x5de0a3=_0x2065d0;let _0x55e1d1=this[_0x5de0a3(0xeb)]['get'](_0x5ea320)[_0x5de0a3(0xe5)](this[_0x5de0a3(0x128)],this[_0x5de0a3(0xf3)],this[_0x5de0a3(0x148)]);if(!_0x55e1d1)return[];let _0x4bcda1=this['_injector'][_0x5de0a3(0xed)](_0x278e9f)['getDrawingByParam']({'unitId':this[_0x5de0a3(0x128)],'subUnitId':this[_0x5de0a3(0xf3)],'drawingId':this['drawId']});if(!(_0x4bcda1!=null&&_0x4bcda1[_0x5de0a3(0x10d)]))return[];let {width:_0xfcb3cf=0x0,height:_0x2c2c80=0x0}=_0x4bcda1[_0x5de0a3(0x10d)];return _0x55e1d1[_0x5de0a3(0x109)]({'width':_0xfcb3cf,'height':_0x2c2c80}),_0x55e1d1[_0x5de0a3(0x134)]();}['getAdjustPoints'](){const _0x5aa4fc=_0x2065d0;let _0x247b37=this[_0x5aa4fc(0xeb)][_0x5aa4fc(0xed)](_0x5ea320)[_0x5aa4fc(0xe5)](this[_0x5aa4fc(0x128)],this['subUnitId'],this[_0x5aa4fc(0x148)]);if(!_0x247b37)return[];let _0x6c53e1=this[_0x5aa4fc(0xeb)][_0x5aa4fc(0xed)](_0x278e9f)['getDrawingByParam']({'unitId':this[_0x5aa4fc(0x128)],'subUnitId':this[_0x5aa4fc(0xf3)],'drawingId':this[_0x5aa4fc(0x148)]});if(!(_0x6c53e1!=null&&_0x6c53e1[_0x5aa4fc(0x10d)]))return[];let {width:_0x152b57=0x0,height:_0x232c39=0x0}=_0x6c53e1[_0x5aa4fc(0x10d)];return _0x247b37[_0x5aa4fc(0x109)]({'width':_0x152b57,'height':_0x232c39}),_0x247b37[_0x5aa4fc(0x144)]();}[_0x2065d0(0x138)](){const _0x56db33=_0x2065d0;let _0x282f50=this[_0x56db33(0xeb)][_0x56db33(0xed)](_0x5ea320)['getShapeModel'](this[_0x56db33(0x128)],this[_0x56db33(0xf3)],this[_0x56db33(0x148)]);if(!_0x282f50||!_0x3e4501(_0x282f50[_0x56db33(0xfc)]()))return[];let _0x42e9b3=this['_injector'][_0x56db33(0xed)](_0x278e9f)[_0x56db33(0xd4)]({'unitId':this['unitId'],'subUnitId':this[_0x56db33(0xf3)],'drawingId':this['drawId']});if(!(_0x42e9b3!=null&&_0x42e9b3[_0x56db33(0x10d)]))return[];let {width:_0x1927a9=0x0,height:_0x3e6e12=0x0}=_0x42e9b3[_0x56db33(0x10d)];return _0x282f50[_0x56db33(0x109)]({'width':_0x1927a9,'height':_0x3e6e12}),_0x282f50[_0x56db33(0x138)]();}[_0x2065d0(0x155)](){const _0x58812e=_0x2065d0;var _0x46ef07;let _0x2e5f5b=this[_0x58812e(0xeb)][_0x58812e(0xed)](_0x5ea320)[_0x58812e(0xe5)](this[_0x58812e(0x128)],this[_0x58812e(0xf3)],this[_0x58812e(0x148)]);return _0x2e5f5b?(_0x46ef07=_0x2e5f5b[_0x58812e(0x155)]())==null?null:_0x46ef07:null;}['getEndConnectInfo'](){const _0x3d6dea=_0x2065d0;var _0x1cb3f6;let _0x249991=this[_0x3d6dea(0xeb)][_0x3d6dea(0xed)](_0x5ea320)[_0x3d6dea(0xe5)](this[_0x3d6dea(0x128)],this[_0x3d6dea(0xf3)],this[_0x3d6dea(0x148)]);return _0x249991?(_0x1cb3f6=_0x249991[_0x3d6dea(0x11d)]())==null?null:_0x1cb3f6:null;}[_0x2065d0(0xff)](){const _0x5a9c43=_0x2065d0;var _0x28bda8,_0x33b72d;if(!this[_0x5a9c43(0xfb)])throw Error('Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().');if(this['x']===0x0||this['y']===0x0){let _0x369182=this['_injector'][_0x5a9c43(0xed)](_0x412dcf)['ensureSkeleton'](this[_0x5a9c43(0x128)],this[_0x5a9c43(0xf3)]);if(!_0x369182)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x5a9c43(0x128)]+_0x5a9c43(0xe9)+this[_0x5a9c43(0xf3)]+'\x20not\x20found');let {transform:_0x181cff}=_0x364d94(this[_0x5a9c43(0x128)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x369182);this['x']=this['x']>0x0?this['x']:_0x181cff[_0x5a9c43(0xdd)],this['y']=this['y']>0x0?this['y']:_0x181cff[_0x5a9c43(0xf1)];}return this[_0x5a9c43(0x10f)]=(_0x28bda8=this['width'])==null?_0x16c70b:_0x28bda8,this[_0x5a9c43(0x151)]=(_0x33b72d=this['height'])==null?_0x2678b4:_0x33b72d,{'unitId':this['unitId'],'subUnitId':this['subUnitId'],'shapeId':this['drawId'],'shapeType':this[_0x5a9c43(0xfb)],'shapeData':Object[_0x5a9c43(0x14b)](this[_0x5a9c43(0xdf)])[_0x5a9c43(0xd6)]>0x0?this[_0x5a9c43(0xdf)]:void 0x0,'x':this['x'],'y':this['y'],'width':this[_0x5a9c43(0x10f)],'height':this['height']};}[_0x2065d0(0x117)](){const _0x1d8f53=_0x2065d0;return this[_0x1d8f53(0x148)];}[_0x2065d0(0xfc)](){const _0x47f002=_0x2065d0;return this[_0x47f002(0xfb)];}[_0x2065d0(0x130)](){return this['shapeData'];}[_0x2065d0(0x11e)](){return{'x':this['x'],'y':this['y']};}[_0x2065d0(0x105)](){const _0x36c599=_0x2065d0;return{'width':this[_0x36c599(0x10f)],'height':this[_0x36c599(0x151)]};}},F=class extends P{constructor(_0x1ee451,_0x26cf9d,_0x2b6418,_0x4b97cd){const _0x506371=_0x2065d0;super(_0x1ee451,_0x26cf9d,_0x2b6418,_0x4b97cd),N(this,_0x506371(0xdf),{});}[_0x2065d0(0x12e)](_0x43a606){const _0x37622f=_0x2065d0;if(!_0x3e4501(_0x43a606))throw Error(_0x37622f(0x135)+_0x43a606+_0x37622f(0x137));return super['setShapeType'](_0x43a606),this;}[_0x2065d0(0x11b)](_0xf976f2){const _0x35eee2=_0x2065d0;var _0x16df1b,_0x17c7a5;return(_0x16df1b=this[_0x35eee2(0xdf)])!=null&&_0x16df1b['ln']||(this[_0x35eee2(0xdf)]['ln']={}),!((_0x17c7a5=this[_0x35eee2(0xdf)])==null||(_0x17c7a5=_0x17c7a5['ln'])==null)&&_0x17c7a5['startArrow']||(this['shapeData']['ln'][_0x35eee2(0xe1)]={}),this[_0x35eee2(0xdf)]['ln']['startArrow'][_0x35eee2(0x10c)]=_0xf976f2,this;}[_0x2065d0(0x119)](_0xcfb6d5){const _0x165ef4=_0x2065d0;var _0x542e29,_0xb5d122;return(_0x542e29=this[_0x165ef4(0xdf)])!=null&&_0x542e29['ln']||(this['shapeData']['ln']={}),!((_0xb5d122=this['shapeData'])==null||(_0xb5d122=_0xb5d122['ln'])==null)&&_0xb5d122[_0x165ef4(0x140)]||(this[_0x165ef4(0xdf)]['ln'][_0x165ef4(0x140)]={}),this[_0x165ef4(0xdf)]['ln'][_0x165ef4(0x140)][_0x165ef4(0x10c)]=_0xcfb6d5,this;}['setStartArrowSize'](_0x40babb){const _0x2a1ecd=_0x2065d0;var _0x4ccceb,_0x2b9cab;return(_0x4ccceb=this[_0x2a1ecd(0xdf)])!=null&&_0x4ccceb['ln']||(this['shapeData']['ln']={}),!((_0x2b9cab=this[_0x2a1ecd(0xdf)])==null||(_0x2b9cab=_0x2b9cab['ln'])==null)&&_0x2b9cab[_0x2a1ecd(0xe1)]||(this[_0x2a1ecd(0xdf)]['ln'][_0x2a1ecd(0xe1)]={}),this['shapeData']['ln']['startArrow'][_0x2a1ecd(0x12b)]=_0x40babb,this;}['setEndArrowSize'](_0x207f54){const _0x472fdd=_0x2065d0;var _0x48a9e1,_0x15b1be;return(_0x48a9e1=this[_0x472fdd(0xdf)])!=null&&_0x48a9e1['ln']||(this[_0x472fdd(0xdf)]['ln']={}),!((_0x15b1be=this[_0x472fdd(0xdf)])==null||(_0x15b1be=_0x15b1be['ln'])==null)&&_0x15b1be[_0x472fdd(0x140)]||(this[_0x472fdd(0xdf)]['ln'][_0x472fdd(0x140)]={}),this[_0x472fdd(0xdf)]['ln']['endArrow'][_0x472fdd(0x12b)]=_0x207f54,this;}['build'](){const _0x5b1fb9=_0x2065d0;return super[_0x5b1fb9(0xff)]();}[_0x2065d0(0x11d)](){const _0x4e34d4=_0x2065d0;var _0x161dbf;return((_0x161dbf=this[_0x4e34d4(0xdf)])==null||(_0x161dbf=_0x161dbf[_0x4e34d4(0x123)])==null?void 0x0:_0x161dbf['to'])||null;}[_0x2065d0(0x155)](){const _0x1bdfb1=_0x2065d0;var _0x5283a6;return((_0x5283a6=this['shapeData'])==null||(_0x5283a6=_0x5283a6[_0x1bdfb1(0x123)])==null?void 0x0:_0x5283a6[_0x1bdfb1(0xfd)])||null;}};function I(_0x2964f9,_0xb47f66,_0x36e184,_0x2ddd10,_0x1de650,_0x119555){const _0x3246fe=_0x2065d0;let _0x35842f=_0x1de650[_0x3246fe(0xe5)](_0x2964f9,_0xb47f66,_0x36e184);if(!_0x35842f)return null;let _0x5b4ec8=_0x119555[_0x3246fe(0xd4)]({'unitId':_0x2964f9,'subUnitId':_0xb47f66,'drawingId':_0x36e184});if(!(_0x5b4ec8!=null&&_0x5b4ec8['transform']))return null;let {left:_0x558f00=0x0,top:_0x310032=0x0,width:_0xf0be38=0x0,height:_0x36d523=0x0,flipX:_0x2e73ac=!0x1,flipY:_0x19a374=!0x1,angle:_0x4bbfc8}=_0x5b4ec8['transform'];_0x35842f[_0x3246fe(0x109)]({'width':_0xf0be38,'height':_0x36d523});let _0x29799d=_0x35842f[_0x3246fe(0x134)]()[_0x3246fe(0xd9)](_0xf38c4e=>_0xf38c4e[_0x3246fe(0xf2)]===_0x2ddd10);if(!_0x29799d)return null;let _0x1f2363=_0x2e73ac?_0xf0be38-_0x29799d['x']:_0x29799d['x'],_0x27b639=_0x19a374?_0x36d523-_0x29799d['y']:_0x29799d['y'];if(_0x4bbfc8&&_0x4bbfc8!==0x0){let _0x3bdb75=_0x4bbfc8*Math['PI']/0xb4,_0x19d091=Math[_0x3246fe(0x110)](_0x3bdb75),_0x5e3528=Math[_0x3246fe(0xe6)](_0x3bdb75),_0x22af2a=_0xf0be38/0x2,_0x41824a=_0x36d523/0x2,_0x1736e6=_0x1f2363-_0x22af2a,_0x1ccc48=_0x27b639-_0x41824a;_0x1f2363=_0x22af2a+_0x1736e6*_0x19d091-_0x1ccc48*_0x5e3528,_0x27b639=_0x41824a+_0x1736e6*_0x5e3528+_0x1ccc48*_0x19d091;}_0x1f2363+=_0x558f00,_0x27b639+=_0x310032;let _0x19ff4b=_0x29799d['ang']/0xea60;_0x2e73ac&&(_0x19ff4b=0xb4-_0x19ff4b),_0x19a374&&(_0x19ff4b=-_0x19ff4b),_0x19ff4b+=_0x4bbfc8||0x0,_0x19ff4b=(_0x19ff4b%0x168+0x168)%0x168;let _0x58d57f=_0x564fe0({'left':_0x558f00,'top':_0x310032,'width':_0xf0be38,'height':_0x36d523},_0x4bbfc8||0x0);return{'point':{'x':_0x1f2363,'y':_0x27b639},'angle':_0x19ff4b,'bounds':_0x58d57f};}function L(_0x36fe82,_0x3c8133){const _0x1a18f3=_0x2065d0;let _0x4e3989=_0x3c8133['x']-_0x36fe82['x'],_0x5e06df=_0x3c8133['y']-_0x36fe82['y'];return Math[_0x1a18f3(0xef)](_0x4e3989)>=Math['abs'](_0x5e06df)?_0x4e3989>=0x0?0xb4:0x0:_0x5e06df>=0x0?0x10e:0x5a;}function R(_0x65c98,_0x15aa04,_0x5d6554,_0x4276e2,_0x2b1d64,_0x15df4a,_0x214463){const _0x1324c8=_0x2065d0;let _0x5beb4a=_0x15df4a[_0x1324c8(0xe5)](_0x65c98,_0x15aa04,_0x5d6554);if(!_0x5beb4a)return null;let _0x3af72d=_0x214463['getDrawingByParam']({'unitId':_0x65c98,'subUnitId':_0x15aa04,'drawingId':_0x5d6554});if(!(_0x3af72d!=null&&_0x3af72d[_0x1324c8(0x10d)]))return null;let {left:_0x396155=0x0,top:_0x1c701b=0x0,width:_0x2dcd3f=0x0,height:_0x342ea1=0x0,flipX:_0x5f11e0=!0x1,flipY:_0x48c956=!0x1}=_0x3af72d[_0x1324c8(0x10d)];_0x5beb4a['updateContext']({'width':_0x2dcd3f,'height':_0x342ea1});let _0x54019b=_0x5beb4a[_0x1324c8(0x138)]();if(_0x54019b['length']<0x2)return null;let _0x8191d3=_0x4276e2?_0x54019b[0x0]:_0x54019b[_0x54019b[_0x1324c8(0xd6)]-0x1],_0x21065c=new _0x3b375f({'left':_0x396155,'top':_0x1c701b,'width':_0x2dcd3f,'height':_0x342ea1,'flipX':_0x5f11e0,'flipY':_0x48c956})['localToWorld'](_0x8191d3);return{'point':_0x21065c,'angle':L(_0x2b1d64[_0x1324c8(0x118)],_0x21065c),'bounds':{'left':_0x21065c['x'],'top':_0x21065c['y'],'width':0x0,'height':0x0}};}var z=class extends _0x302bd6{async[_0x2065d0(0xdb)](_0x6bf9f0){const _0xa7f704=_0x2065d0;let {unitId:_0x2fe75f,subUnitId:_0x29e96c,shapeId:_0x17f684,shapeType:_0x1f462e,shapeData:_0x37341a,x:_0x42ab31,y:_0x25f0bc,width:_0x51b0cc,height:_0x186d63}=_0x6bf9f0;return this[_0xa7f704(0x10a)][_0xa7f704(0x152)](_0x46d0ed['id'],{'unitId':_0x2fe75f,'subUnitId':_0x29e96c,'shapeId':_0x17f684,'shapeType':_0x1f462e,'shapeData':_0x37341a,'position':{'x':_0x42ab31,'y':_0x25f0bc},'width':_0x51b0cc,'height':_0x186d63});}async[_0x2065d0(0xf9)](_0x1ceda1){const _0x4a5ae8=_0x2065d0;let {unitId:_0x19c436,subUnitId:_0x5666ce,shapeId:_0x2e97c6,shapeType:_0x1ac02a,shapeData:_0x3d9256,x:_0x54b966,y:_0x3b2bc4,width:_0x212724,height:_0xfd3e09}=_0x1ceda1;return this[_0x4a5ae8(0x10a)]['executeCommand'](_0xc951e2['id'],{'unitId':_0x19c436,'subUnitId':_0x5666ce,'shapeId':_0x2e97c6,'shapeType':_0x1ac02a,'shapeData':_0x3d9256,'position':{'x':_0x54b966,'y':_0x3b2bc4},'width':_0x212724,'height':_0xfd3e09});}[_0x2065d0(0x113)](_0x3719e1){const _0x5df979=_0x2065d0;let _0x1ab21b=this[_0x5df979(0x114)]()[_0x5df979(0xe4)](),_0x5cc524=this[_0x5df979(0x12f)]();if(_0x3719e1){let _0x8dbe06=new P(_0x1ab21b,_0x5cc524,_0x3719e1['drawId'],this['_injector']);return this['_preloadShapeProperties'](_0x8dbe06,_0x1ab21b,_0x5cc524,_0x3719e1[_0x5df979(0x148)]),_0x8dbe06;}return new P(_0x1ab21b,_0x5cc524,_0x524228(),this[_0x5df979(0xeb)]);}['newConnector'](_0x4c83d4){const _0x2b7dcd=_0x2065d0;let _0xa0436f=this[_0x2b7dcd(0x114)]()[_0x2b7dcd(0xe4)](),_0x12f2ad=this[_0x2b7dcd(0x12f)]();if(_0x4c83d4){let _0x5ca2f7=new F(_0xa0436f,_0x12f2ad,_0x4c83d4[_0x2b7dcd(0x148)],this[_0x2b7dcd(0xeb)]);return this[_0x2b7dcd(0x108)](_0x5ca2f7,_0xa0436f,_0x12f2ad,_0x4c83d4[_0x2b7dcd(0x148)]),_0x5ca2f7;}return new F(_0xa0436f,_0x12f2ad,_0x524228(),this[_0x2b7dcd(0xeb)]);}[_0x2065d0(0x141)](){const _0x3407a2=_0x2065d0;let _0x3fc75b=this[_0x3407a2(0xeb)][_0x3407a2(0xed)](_0x4a1927),_0x4af0eb=this['getWorkbook']()[_0x3407a2(0xe4)](),_0x3ba06e=this['getSheetId'](),_0x50dbc1=_0x3fc75b[_0x3407a2(0xd8)](_0x4af0eb,_0x3ba06e);if(!_0x50dbc1)return[];let _0x531d9d=[];for(let [_0x416b60,_0x29e724]of Object[_0x3407a2(0x131)](_0x50dbc1))if(_0x29e724&&_0x29e724[_0x3407a2(0x103)]===_0x5677bd[_0x3407a2(0x112)]){let _0x5d95ae=new P(_0x4af0eb,_0x3ba06e,_0x416b60,this[_0x3407a2(0xeb)]);this[_0x3407a2(0x108)](_0x5d95ae,_0x4af0eb,_0x3ba06e,_0x416b60),_0x531d9d[_0x3407a2(0x11a)](_0x5d95ae);}return _0x531d9d;}['removeShape'](_0x55087a){const _0x43e6e1=_0x2065d0;let {unitId:_0x1ae37b,subUnitId:_0x3e5154,drawId:_0x4939aa}=_0x55087a;return this['_commandService'][_0x43e6e1(0x152)](_0x54116['id'],{'unitId':_0x1ae37b,'drawings':[{'unitId':_0x1ae37b,'subUnitId':_0x3e5154,'drawingId':_0x4939aa,'drawingType':_0x5677bd[_0x43e6e1(0x112)]}]});}async[_0x2065d0(0xf8)](_0x5509bf){const _0x5c0484=_0x2065d0;let {connector:_0x179649,startTarget:_0x3fd0d8,endTarget:_0x2a3f99}=_0x5509bf;if(!_0x3fd0d8&&!_0x2a3f99)return!0x1;let _0x32fa01=this[_0x5c0484(0x114)]()[_0x5c0484(0xe4)](),_0x10c5c0=this['getSheetId'](),_0x32f5ac=this[_0x5c0484(0xeb)]['get'](_0x5ea320),_0xa5cd66=this[_0x5c0484(0xeb)][_0x5c0484(0xed)](_0x278e9f),_0x4114d0=_0x32f5ac[_0x5c0484(0xe5)](_0x32fa01,_0x10c5c0,_0x179649[_0x5c0484(0x148)]);if(!_0x4114d0)return!0x1;let _0x594e30=_0x4114d0['getShapeType'](),_0x587212=_0x4114d0[_0x5c0484(0xf0)](),_0x2fae29={};for(let _0x426085 of _0x4114d0[_0x5c0484(0x139)]()){let _0x44e505=_0x4114d0[_0x5c0484(0x129)](_0x426085);_0x44e505!==void 0x0&&(_0x2fae29[_0x426085]=_0x44e505);}let {startInfo:_0x3ead14,endInfo:_0x31367d}=this[_0x5c0484(0xfe)](_0x32fa01,_0x10c5c0,_0x179649,_0x4114d0,_0x3fd0d8,_0x2a3f99,_0x32f5ac,_0xa5cd66,_0x587212);if(!_0x3ead14||!_0x31367d)return!0x1;let _0x3dcf7d=_0x83727e(_0x284ac3(_0x3ead14,_0x31367d,_0x594e30),_0x594e30),_0x46e803={};return _0x3fd0d8?_0x46e803['from']={'shapeId':_0x3fd0d8[_0x5c0484(0x149)]['drawId'],'cxnIndex':_0x3fd0d8[_0x5c0484(0x127)]}:_0x587212!=null&&_0x587212['from']&&(_0x46e803[_0x5c0484(0xfd)]=_0x587212[_0x5c0484(0xfd)]),_0x2a3f99?_0x46e803['to']={'shapeId':_0x2a3f99[_0x5c0484(0x149)][_0x5c0484(0x148)],'cxnIndex':_0x2a3f99[_0x5c0484(0x127)]}:_0x587212!=null&&_0x587212['to']&&(_0x46e803['to']=_0x587212['to']),this[_0x5c0484(0x10a)]['executeCommand'](_0x2cfebf['id'],{'unitId':_0x32fa01,'subUnitId':_0x10c5c0,'connectorShapeId':_0x179649[_0x5c0484(0x148)],'width':_0x3dcf7d[_0x5c0484(0x13e)]['width'],'height':_0x3dcf7d['worldRect'][_0x5c0484(0x151)],'left':_0x3dcf7d[_0x5c0484(0x13e)]['left'],'top':_0x3dcf7d[_0x5c0484(0x13e)][_0x5c0484(0xf1)],'flipX':_0x3dcf7d[_0x5c0484(0x13e)][_0x5c0484(0x12a)]||!0x1,'flipY':_0x3dcf7d[_0x5c0484(0x13e)][_0x5c0484(0x121)]||!0x1,'oldAdjustValues':_0x2fae29,'newAdjustValues':_0x3dcf7d[_0x5c0484(0x142)],'newLineType':_0x3dcf7d[_0x5c0484(0x11c)],'oldLineType':_0x594e30,'rotation':_0x3dcf7d[_0x5c0484(0xe8)],'oldRelation':_0x587212,'newRelation':_0x46e803});}[_0x2065d0(0x108)](_0x3be2db,_0x52bb9f,_0x47ef56,_0x3ef3b0){const _0x461f1d=_0x2065d0;let _0xa618d0=this[_0x461f1d(0xeb)]['get'](_0x278e9f)['getDrawingByParam']({'unitId':_0x52bb9f,'subUnitId':_0x47ef56,'drawingId':_0x3ef3b0});if(_0xa618d0!=null&&_0xa618d0['transform']){var _0x8ac435,_0x526249,_0xd66f87,_0x11757a;_0x3be2db['x']=(_0x8ac435=_0xa618d0['transform'][_0x461f1d(0xdd)])==null?0x0:_0x8ac435,_0x3be2db['y']=(_0x526249=_0xa618d0[_0x461f1d(0x10d)][_0x461f1d(0xf1)])==null?0x0:_0x526249,_0x3be2db[_0x461f1d(0x10f)]=(_0xd66f87=_0xa618d0[_0x461f1d(0x10d)][_0x461f1d(0x10f)])==null?_0x3be2db[_0x461f1d(0x10f)]:_0xd66f87,_0x3be2db[_0x461f1d(0x151)]=(_0x11757a=_0xa618d0['transform']['height'])==null?_0x3be2db[_0x461f1d(0x151)]:_0x11757a;}let _0xbdeafb=this[_0x461f1d(0xeb)][_0x461f1d(0xed)](_0x5ea320)[_0x461f1d(0xe5)](_0x52bb9f,_0x47ef56,_0x3ef3b0);if(_0xbdeafb){_0x3be2db[_0x461f1d(0xfb)]=_0xbdeafb[_0x461f1d(0xfc)]();let _0x28924f=_0xbdeafb[_0x461f1d(0x130)]();_0x28924f&&(_0x3be2db[_0x461f1d(0xdf)]=JSON[_0x461f1d(0x106)](JSON[_0x461f1d(0x10e)](_0x28924f)));}}[_0x2065d0(0xfe)](_0x1e1cf8,_0xded6f6,_0x15c85b,_0x14c0ba,_0xb5c460,_0x39a024,_0x3bc6c3,_0x54e7d9,_0x3f06c5){const _0x3f8312=_0x2065d0;let _0xf88db1=null,_0x568ecb=null;return _0xb5c460&&(_0xf88db1=I(_0x1e1cf8,_0xded6f6,_0xb5c460[_0x3f8312(0x149)]['drawId'],_0xb5c460['connectionSiteIndex'],_0x3bc6c3,_0x54e7d9)),_0x39a024&&(_0x568ecb=I(_0x1e1cf8,_0xded6f6,_0x39a024[_0x3f8312(0x149)]['drawId'],_0x39a024[_0x3f8312(0x127)],_0x3bc6c3,_0x54e7d9)),_0xf88db1||(_0xf88db1=this[_0x3f8312(0xea)](_0x1e1cf8,_0xded6f6,_0x15c85b[_0x3f8312(0x148)],!0x0,_0x568ecb,_0x3f06c5==null?void 0x0:_0x3f06c5[_0x3f8312(0xfd)],_0x3bc6c3,_0x54e7d9)),_0x568ecb||(_0x568ecb=this[_0x3f8312(0xea)](_0x1e1cf8,_0xded6f6,_0x15c85b[_0x3f8312(0x148)],!0x1,_0xf88db1,_0x3f06c5==null?void 0x0:_0x3f06c5['to'],_0x3bc6c3,_0x54e7d9)),{'startInfo':_0xf88db1,'endInfo':_0x568ecb};}[_0x2065d0(0xea)](_0x2dc679,_0x5d8af5,_0x5c81b2,_0x2b2999,_0x497305,_0x362710,_0x1c0e33,_0x172927){const _0x3135c4=_0x2065d0;if(_0x362710){let _0x3b507a=I(_0x2dc679,_0x5d8af5,_0x362710[_0x3135c4(0x12c)],_0x362710['cxnIndex'],_0x1c0e33,_0x172927);if(_0x3b507a)return _0x3b507a;}return _0x497305?R(_0x2dc679,_0x5d8af5,_0x5c81b2,_0x2b2999,_0x497305,_0x1c0e33,_0x172927):null;}};_0x302bd6[_0x2065d0(0x13c)](z);function _0xc882(_0x4e7be1,_0x41ee16){_0x4e7be1=_0x4e7be1-0xd0;const _0x2d3242=_0x2d32();let _0xc88242=_0x2d3242[_0x4e7be1];return _0xc88242;}export{F as FConnectorShape,P as FShape};
|