@univerjs-pro/sheets-shape 1.0.0-alpha.1 → 1.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -2
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/index.d.ts +2 -8
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/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 _0x5523e0=_0x2aba;(function(_0x1b66b5,_0x376c4e){const _0xc56224=_0x2aba,_0x4f92be=_0x1b66b5();while(!![]){try{const _0x4a3954=-parseInt(_0xc56224(0x1f1))/0x1*(-parseInt(_0xc56224(0x23b))/0x2)+parseInt(_0xc56224(0x253))/0x3+parseInt(_0xc56224(0x222))/0x4+parseInt(_0xc56224(0x1e1))/0x5*(-parseInt(_0xc56224(0x258))/0x6)+-parseInt(_0xc56224(0x236))/0x7*(-parseInt(_0xc56224(0x206))/0x8)+-parseInt(_0xc56224(0x218))/0x9+-parseInt(_0xc56224(0x216))/0xa;if(_0x4a3954===_0x376c4e)break;else _0x4f92be['push'](_0x4f92be['shift']());}catch(_0x18c2a2){_0x4f92be['push'](_0x4f92be['shift']());}}}(_0x59b9,0x94035));import{ConnectorCoordinateTransform as _0x2c8646,ShapeArrowSizeEnum as _0xbd8ef1,ShapeArrowTypeEnum as _0x15f5e2,ShapeFillEnum as _0x43d314,ShapeGradientTypeEnum as _0x1afe24,ShapeLineCapEnum as _0x3e3d43,ShapeLineDashEnum as _0x35181a,ShapeLineJoinEnum as _0x119aef,ShapeLineTypeEnum as _0x3981c7,ShapeTypeEnum as _0x2c552c,computeConnectorRouteLayout as _0x35c7a4,getBasicShapeRotateBound as _0x9d2fc0,isConnectorShape as _0x47ce93,routeConnectorLineShape as _0x26078f}from'@univerjs-pro/engine-shape';import{FEnum as _0x310fbe}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x57dbe8,DEFAULT_SHAPE_WIDTH as _0x133010,InsertShapeCommand as _0x349e23,SetShapeDrawingDataCommand as _0x3363bb,SheetsShapeService as _0x5d7a9e,UpdateConnectorRelationCommand as _0x167b3e}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x3372c3,generateRandomId as _0x478e17}from'@univerjs/core';import{IDrawingManagerService as _0x2fcdbd}from'@univerjs/drawing';import{SheetSkeletonService as _0x1e583d,convertPositionCellToSheetOverGrid as _0x99372e}from'@univerjs/sheets';import{ISheetDrawingService as _0x5bfdfe,RemoveSheetDrawingCommand as _0x28db79}from'@univerjs/sheets-drawing';import{FWorksheet as _0x3ba9d2}from'@univerjs/sheets/facade';var k=class extends _0x310fbe{get['ShapeTypeEnum'](){return _0x2c552c;}get[_0x5523e0(0x24e)](){return _0x43d314;}get[_0x5523e0(0x1dc)](){return _0x1afe24;}get[_0x5523e0(0x1d8)](){return _0x3981c7;}get[_0x5523e0(0x1f3)](){return _0x35181a;}get[_0x5523e0(0x25a)](){return _0x3e3d43;}get['ShapeLineJoinEnum'](){return _0x119aef;}get[_0x5523e0(0x21c)](){return _0x15f5e2;}get[_0x5523e0(0x232)](){return _0xbd8ef1;}};_0x310fbe[_0x5523e0(0x23a)](k);function A(_0x234b46){'@babel/helpers - typeof';const _0x4bddd0=_0x5523e0;return A=typeof Symbol==_0x4bddd0(0x212)&&typeof Symbol[_0x4bddd0(0x223)]==_0x4bddd0(0x20b)?function(_0x46ce91){return typeof _0x46ce91;}:function(_0x4865a2){const _0xcbe5e3=_0x4bddd0;return _0x4865a2&&typeof Symbol==_0xcbe5e3(0x212)&&_0x4865a2['constructor']===Symbol&&_0x4865a2!==Symbol[_0xcbe5e3(0x237)]?_0xcbe5e3(0x20b):typeof _0x4865a2;},A(_0x234b46);}function j(_0x424949,_0x2d6a93){const _0x2e8329=_0x5523e0;if(A(_0x424949)!=_0x2e8329(0x205)||!_0x424949)return _0x424949;var _0x494530=_0x424949[Symbol[_0x2e8329(0x1f9)]];if(_0x494530!==void 0x0){var _0x562668=_0x494530['call'](_0x424949,_0x2d6a93||'default');if(A(_0x562668)!=_0x2e8329(0x205))return _0x562668;throw TypeError(_0x2e8329(0x24b));}return(_0x2d6a93===_0x2e8329(0x201)?String:Number)(_0x424949);}function M(_0x1db180){const _0x1333c4=_0x5523e0;var _0x228580=j(_0x1db180,_0x1333c4(0x201));return A(_0x228580)==_0x1333c4(0x20b)?_0x228580:_0x228580+'';}function N(_0x21dacf,_0x33bf68,_0x121c1e){const _0x14c499=_0x5523e0;return(_0x33bf68=M(_0x33bf68))in _0x21dacf?Object[_0x14c499(0x233)](_0x21dacf,_0x33bf68,{'value':_0x121c1e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x21dacf[_0x33bf68]=_0x121c1e,_0x21dacf;}var P=class{constructor(_0x3e1787,_0x448e23,_0x24fb1b,_0x3bcfe5){const _0x5a6e6c=_0x5523e0;N(this,_0x5a6e6c(0x1dd),void 0x0),N(this,_0x5a6e6c(0x1de),void 0x0),N(this,_0x5a6e6c(0x24c),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,'width',_0x133010),N(this,_0x5a6e6c(0x227),_0x57dbe8),N(this,_0x5a6e6c(0x1fd),void 0x0),N(this,_0x5a6e6c(0x1f0),{}),N(this,'_injector',void 0x0),this[_0x5a6e6c(0x1dd)]=_0x3e1787,this[_0x5a6e6c(0x1de)]=_0x448e23,this[_0x5a6e6c(0x24c)]=_0x24fb1b||_0x478e17(),this[_0x5a6e6c(0x200)]=_0x3bcfe5;}[_0x5523e0(0x1f5)](_0x2e7b0e,_0x1198bb,_0x315892,_0x2fcdc2){const _0x23e074=_0x5523e0;let _0x336175=this[_0x23e074(0x200)]['get'](_0x1e583d)['ensureSkeleton'](this[_0x23e074(0x1dd)],this[_0x23e074(0x1de)]);if(!_0x336175)throw Error(_0x23e074(0x245)+this['unitId']+_0x23e074(0x203)+this['subUnitId']+'\x20not\x20found');let {transform:_0x3b6860}=_0x99372e(this[_0x23e074(0x1dd)],this[_0x23e074(0x1de)],{'row':_0x2e7b0e,'column':_0x1198bb,'rowOffset':_0x315892,'columnOffset':_0x2fcdc2},0x1,0x1,_0x336175);return this['x']=_0x3b6860[_0x23e074(0x208)],this['y']=_0x3b6860[_0x23e074(0x255)],this;}[_0x5523e0(0x239)](_0x29e5fc,_0x3903e7){return this['x']=_0x29e5fc,this['y']=_0x3903e7,this;}[_0x5523e0(0x1f7)](_0x243df4){return this['shapeType']=_0x243df4,this;}[_0x5523e0(0x220)](_0x4bc536){const _0x3df2a3=_0x5523e0;return _0x4bc536[_0x3df2a3(0x1fd)]&&this[_0x3df2a3(0x1f7)](_0x4bc536[_0x3df2a3(0x1fd)]),this['shapeData']={..._0x4bc536},this;}[_0x5523e0(0x1ff)](_0x370b00,_0x469d0b){const _0x51b252=_0x5523e0;return this[_0x51b252(0x1f0)][_0x51b252(0x1d7)]||(this[_0x51b252(0x1f0)][_0x51b252(0x1d7)]={}),this[_0x51b252(0x1f0)][_0x51b252(0x1d7)]['fillType']=_0x43d314[_0x51b252(0x1ec)],_0x370b00!==void 0x0&&(this[_0x51b252(0x1f0)][_0x51b252(0x1d7)][_0x51b252(0x211)]=_0x370b00),_0x469d0b!==void 0x0&&(this[_0x51b252(0x1f0)]['fill']['opacity']=_0x469d0b),this;}[_0x5523e0(0x228)](_0x34621d,_0x109d2f,_0xb8b8b2){const _0x4bc870=_0x5523e0;if(_0x109d2f===void 0x0||_0x109d2f['length']===0x0)throw Error(_0x4bc870(0x257));return this[_0x4bc870(0x1f0)][_0x4bc870(0x1d7)]||(this[_0x4bc870(0x1f0)][_0x4bc870(0x1d7)]={}),this['shapeData'][_0x4bc870(0x1d7)][_0x4bc870(0x1e3)]=_0x109d2f,this[_0x4bc870(0x1f0)][_0x4bc870(0x1d7)][_0x4bc870(0x256)]=_0x43d314[_0x4bc870(0x204)],this[_0x4bc870(0x1f0)][_0x4bc870(0x1d7)]['gradientType']=_0x34621d,_0xb8b8b2!==void 0x0&&(this[_0x4bc870(0x1f0)][_0x4bc870(0x1d7)][_0x4bc870(0x1d9)]=_0xb8b8b2),this;}[_0x5523e0(0x1df)](){const _0x360a37=_0x5523e0;return this['shapeData']['fill']={'fillType':_0x43d314[_0x360a37(0x23e)]},this;}[_0x5523e0(0x1e6)](_0x1a4f61){const _0xdf2320=_0x5523e0;return this[_0xdf2320(0x1f0)][_0xdf2320(0x22d)]||(this[_0xdf2320(0x1f0)][_0xdf2320(0x22d)]={}),this[_0xdf2320(0x1f0)][_0xdf2320(0x22d)]['color']=_0x1a4f61,this;}[_0x5523e0(0x21d)](_0x37df85){const _0x11f2ed=_0x5523e0;return this['shapeData'][_0x11f2ed(0x22d)]||(this[_0x11f2ed(0x1f0)][_0x11f2ed(0x22d)]={}),this['shapeData'][_0x11f2ed(0x22d)][_0x11f2ed(0x21b)]=_0x37df85,this;}[_0x5523e0(0x23f)](_0x524e0f){const _0x4ec96d=_0x5523e0;return this[_0x4ec96d(0x1f0)][_0x4ec96d(0x22d)]||(this[_0x4ec96d(0x1f0)]['stroke']={}),this['shapeData'][_0x4ec96d(0x22d)][_0x4ec96d(0x231)]=_0x524e0f,this;}[_0x5523e0(0x219)](_0x5e233d){const _0x2ef107=_0x5523e0;return this['shapeData'][_0x2ef107(0x22d)]||(this['shapeData'][_0x2ef107(0x22d)]={}),this[_0x2ef107(0x1f0)][_0x2ef107(0x22d)][_0x2ef107(0x1ed)]=_0x5e233d,this;}['setStrokeLineCapType'](_0x56527e){const _0x2b2abd=_0x5523e0;return this[_0x2b2abd(0x1f0)][_0x2b2abd(0x22d)]||(this[_0x2b2abd(0x1f0)][_0x2b2abd(0x22d)]={}),this[_0x2b2abd(0x1f0)][_0x2b2abd(0x22d)]['capType']=_0x56527e,this;}['setStrokeOpacity'](_0x3dff69){const _0x1fee7e=_0x5523e0;return this[_0x1fee7e(0x1f0)]['stroke']||(this[_0x1fee7e(0x1f0)][_0x1fee7e(0x22d)]={}),this[_0x1fee7e(0x1f0)][_0x1fee7e(0x22d)][_0x1fee7e(0x1e0)]=_0x3dff69,this;}[_0x5523e0(0x21f)](_0x11ec54){const _0x24cd1f=_0x5523e0;return this[_0x24cd1f(0x1f0)][_0x24cd1f(0x22d)]||(this[_0x24cd1f(0x1f0)][_0x24cd1f(0x22d)]={}),this[_0x24cd1f(0x1f0)][_0x24cd1f(0x22d)][_0x24cd1f(0x224)]=_0x11ec54,this;}[_0x5523e0(0x226)](_0x1d40a2){const _0x54589e=_0x5523e0;return this[_0x54589e(0x21b)]=_0x1d40a2,this;}[_0x5523e0(0x25b)](_0x236e7e){return this['height']=_0x236e7e,this;}[_0x5523e0(0x20f)](){const _0x14d184=_0x5523e0;let _0x3e8143=this['_injector'][_0x14d184(0x1e5)](_0x5d7a9e)['getShapeModel'](this[_0x14d184(0x1dd)],this[_0x14d184(0x1de)],this[_0x14d184(0x24c)]);return _0x3e8143?_0x47ce93(_0x3e8143[_0x14d184(0x22f)]()):this[_0x14d184(0x1fd)]?_0x47ce93(this[_0x14d184(0x1fd)]):!0x1;}[_0x5523e0(0x1db)](){const _0x49a28b=_0x5523e0;let _0x9669e3=this[_0x49a28b(0x200)][_0x49a28b(0x1e5)](_0x5d7a9e)[_0x49a28b(0x21a)](this[_0x49a28b(0x1dd)],this['subUnitId'],this[_0x49a28b(0x24c)]);if(!_0x9669e3)return[];let _0x30be06=this[_0x49a28b(0x200)][_0x49a28b(0x1e5)](_0x2fcdbd)[_0x49a28b(0x20c)]({'unitId':this['unitId'],'subUnitId':this[_0x49a28b(0x1de)],'drawingId':this[_0x49a28b(0x24c)]});if(!(_0x30be06!=null&&_0x30be06[_0x49a28b(0x24f)]))return[];let {width:_0x2e0f26=0x0,height:_0x2bb2ca=0x0}=_0x30be06[_0x49a28b(0x24f)];return _0x9669e3[_0x49a28b(0x248)]({'width':_0x2e0f26,'height':_0x2bb2ca}),_0x9669e3[_0x49a28b(0x1fc)]();}['getAdjustPoints'](){const _0x48b25e=_0x5523e0;let _0x230bf8=this['_injector']['get'](_0x5d7a9e)['getShapeModel'](this[_0x48b25e(0x1dd)],this[_0x48b25e(0x1de)],this[_0x48b25e(0x24c)]);if(!_0x230bf8)return[];let _0x5b59a2=this[_0x48b25e(0x200)][_0x48b25e(0x1e5)](_0x2fcdbd)[_0x48b25e(0x20c)]({'unitId':this[_0x48b25e(0x1dd)],'subUnitId':this[_0x48b25e(0x1de)],'drawingId':this['drawId']});if(!(_0x5b59a2!=null&&_0x5b59a2[_0x48b25e(0x24f)]))return[];let {width:_0x5cac7d=0x0,height:_0x49641c=0x0}=_0x5b59a2['transform'];return _0x230bf8[_0x48b25e(0x248)]({'width':_0x5cac7d,'height':_0x49641c}),_0x230bf8[_0x48b25e(0x1fb)]();}[_0x5523e0(0x1eb)](){const _0x4aa196=_0x5523e0;let _0x25983f=this[_0x4aa196(0x200)][_0x4aa196(0x1e5)](_0x5d7a9e)['getShapeModel'](this['unitId'],this['subUnitId'],this[_0x4aa196(0x24c)]);if(!_0x25983f||!_0x47ce93(_0x25983f[_0x4aa196(0x22f)]()))return[];let _0x361be5=this[_0x4aa196(0x200)][_0x4aa196(0x1e5)](_0x2fcdbd)[_0x4aa196(0x20c)]({'unitId':this[_0x4aa196(0x1dd)],'subUnitId':this[_0x4aa196(0x1de)],'drawingId':this[_0x4aa196(0x24c)]});if(!(_0x361be5!=null&&_0x361be5['transform']))return[];let {width:_0x5d2ce9=0x0,height:_0x4b6d1b=0x0}=_0x361be5['transform'];return _0x25983f[_0x4aa196(0x248)]({'width':_0x5d2ce9,'height':_0x4b6d1b}),_0x25983f[_0x4aa196(0x1eb)]();}['getStartConnectInfo'](){const _0x24803a=_0x5523e0;var _0x4cfdde;let _0x4483c7=this[_0x24803a(0x200)][_0x24803a(0x1e5)](_0x5d7a9e)['getShapeModel'](this[_0x24803a(0x1dd)],this[_0x24803a(0x1de)],this[_0x24803a(0x24c)]);return _0x4483c7?(_0x4cfdde=_0x4483c7[_0x24803a(0x20e)]())==null?null:_0x4cfdde:null;}[_0x5523e0(0x242)](){const _0x489fef=_0x5523e0;var _0x24a86d;let _0x204581=this['_injector'][_0x489fef(0x1e5)](_0x5d7a9e)['getShapeModel'](this[_0x489fef(0x1dd)],this[_0x489fef(0x1de)],this[_0x489fef(0x24c)]);return _0x204581?(_0x24a86d=_0x204581['getEndConnectInfo']())==null?null:_0x24a86d:null;}[_0x5523e0(0x250)](){const _0x38dd3b=_0x5523e0;var _0x103da9,_0x1d221e;if(!this['shapeType'])throw Error(_0x38dd3b(0x20a));if(this['x']===0x0||this['y']===0x0){let _0x131088=this[_0x38dd3b(0x200)][_0x38dd3b(0x1e5)](_0x1e583d)[_0x38dd3b(0x217)](this[_0x38dd3b(0x1dd)],this[_0x38dd3b(0x1de)]);if(!_0x131088)throw Error(_0x38dd3b(0x245)+this[_0x38dd3b(0x1dd)]+_0x38dd3b(0x203)+this[_0x38dd3b(0x1de)]+_0x38dd3b(0x210));let {transform:_0x187de0}=_0x99372e(this[_0x38dd3b(0x1dd)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x131088);this['x']=this['x']>0x0?this['x']:_0x187de0[_0x38dd3b(0x208)],this['y']=this['y']>0x0?this['y']:_0x187de0[_0x38dd3b(0x255)];}return this[_0x38dd3b(0x21b)]=(_0x103da9=this[_0x38dd3b(0x21b)])==null?_0x133010:_0x103da9,this[_0x38dd3b(0x227)]=(_0x1d221e=this['height'])==null?_0x57dbe8:_0x1d221e,{'unitId':this[_0x38dd3b(0x1dd)],'subUnitId':this[_0x38dd3b(0x1de)],'shapeId':this['drawId'],'shapeType':this[_0x38dd3b(0x1fd)],'shapeData':Object[_0x38dd3b(0x246)](this[_0x38dd3b(0x1f0)])[_0x38dd3b(0x202)]>0x0?this[_0x38dd3b(0x1f0)]:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x38dd3b(0x227)]};}['getShapeId'](){const _0x4e20a0=_0x5523e0;return this[_0x4e20a0(0x24c)];}[_0x5523e0(0x22f)](){const _0x77626=_0x5523e0;return this[_0x77626(0x1fd)];}[_0x5523e0(0x1e9)](){const _0x34984b=_0x5523e0;return this[_0x34984b(0x1f0)];}[_0x5523e0(0x209)](){return{'x':this['x'],'y':this['y']};}['getSize'](){const _0x341daf=_0x5523e0;return{'width':this[_0x341daf(0x21b)],'height':this[_0x341daf(0x227)]};}},F=class extends P{constructor(_0x2124d3,_0x2c2bc6,_0x3fb5b7,_0x121577){const _0x370c87=_0x5523e0;super(_0x2124d3,_0x2c2bc6,_0x3fb5b7,_0x121577),N(this,_0x370c87(0x1f0),{});}[_0x5523e0(0x1f7)](_0x4b71d0){const _0x47b0ab=_0x5523e0;if(!_0x47ce93(_0x4b71d0))throw Error(_0x47b0ab(0x1ef)+_0x4b71d0+_0x47b0ab(0x24a));return super[_0x47b0ab(0x1f7)](_0x4b71d0),this;}[_0x5523e0(0x241)](_0x38a9f9){const _0x3612c5=_0x5523e0;var _0x1f1f95,_0x333d25;return(_0x1f1f95=this[_0x3612c5(0x1f0)])!=null&&_0x1f1f95['ln']||(this[_0x3612c5(0x1f0)]['ln']={}),!((_0x333d25=this[_0x3612c5(0x1f0)])==null||(_0x333d25=_0x333d25['ln'])==null)&&_0x333d25[_0x3612c5(0x1e4)]||(this[_0x3612c5(0x1f0)]['ln'][_0x3612c5(0x1e4)]={}),this[_0x3612c5(0x1f0)]['ln'][_0x3612c5(0x1e4)][_0x3612c5(0x23c)]=_0x38a9f9,this;}[_0x5523e0(0x22a)](_0x1238b2){const _0x336e0c=_0x5523e0;var _0x3359b2,_0x162c97;return(_0x3359b2=this[_0x336e0c(0x1f0)])!=null&&_0x3359b2['ln']||(this[_0x336e0c(0x1f0)]['ln']={}),!((_0x162c97=this[_0x336e0c(0x1f0)])==null||(_0x162c97=_0x162c97['ln'])==null)&&_0x162c97[_0x336e0c(0x1e8)]||(this[_0x336e0c(0x1f0)]['ln'][_0x336e0c(0x1e8)]={}),this[_0x336e0c(0x1f0)]['ln']['endArrow'][_0x336e0c(0x23c)]=_0x1238b2,this;}[_0x5523e0(0x229)](_0x37efcc){const _0x304e44=_0x5523e0;var _0x35ce02,_0x50b40f;return(_0x35ce02=this[_0x304e44(0x1f0)])!=null&&_0x35ce02['ln']||(this['shapeData']['ln']={}),!((_0x50b40f=this[_0x304e44(0x1f0)])==null||(_0x50b40f=_0x50b40f['ln'])==null)&&_0x50b40f[_0x304e44(0x1e4)]||(this['shapeData']['ln'][_0x304e44(0x1e4)]={}),this[_0x304e44(0x1f0)]['ln']['startArrow']['size']=_0x37efcc,this;}[_0x5523e0(0x1f4)](_0x35a2da){const _0x3e5cd8=_0x5523e0;var _0x42639e,_0x238f0d;return(_0x42639e=this[_0x3e5cd8(0x1f0)])!=null&&_0x42639e['ln']||(this['shapeData']['ln']={}),!((_0x238f0d=this['shapeData'])==null||(_0x238f0d=_0x238f0d['ln'])==null)&&_0x238f0d['endArrow']||(this[_0x3e5cd8(0x1f0)]['ln'][_0x3e5cd8(0x1e8)]={}),this['shapeData']['ln'][_0x3e5cd8(0x1e8)]['size']=_0x35a2da,this;}[_0x5523e0(0x250)](){const _0x481078=_0x5523e0;return super[_0x481078(0x250)]();}[_0x5523e0(0x242)](){const _0x54f62b=_0x5523e0;var _0x5f34a3;return((_0x5f34a3=this['shapeData'])==null||(_0x5f34a3=_0x5f34a3[_0x54f62b(0x1fe)])==null?void 0x0:_0x5f34a3['to'])||null;}[_0x5523e0(0x20e)](){const _0x5f2a69=_0x5523e0;var _0x335f3c;return((_0x335f3c=this[_0x5f2a69(0x1f0)])==null||(_0x335f3c=_0x335f3c[_0x5f2a69(0x1fe)])==null?void 0x0:_0x335f3c['from'])||null;}};function I(_0xfc613b,_0x3656a0,_0xb041d4,_0x2135b2,_0x565acf,_0x3a9b2a){const _0x31abb0=_0x5523e0;let _0x7b6980=_0x565acf[_0x31abb0(0x21a)](_0xfc613b,_0x3656a0,_0xb041d4);if(!_0x7b6980)return null;let _0x15caec=_0x3a9b2a[_0x31abb0(0x20c)]({'unitId':_0xfc613b,'subUnitId':_0x3656a0,'drawingId':_0xb041d4});if(!(_0x15caec!=null&&_0x15caec[_0x31abb0(0x24f)]))return null;let {left:_0x3b95e2=0x0,top:_0x540750=0x0,width:_0xbec466=0x0,height:_0x2d4501=0x0,flipX:_0x5737d8=!0x1,flipY:_0x5767ba=!0x1,angle:_0x8bb293}=_0x15caec[_0x31abb0(0x24f)];_0x7b6980[_0x31abb0(0x248)]({'width':_0xbec466,'height':_0x2d4501});let _0x2745fe=_0x7b6980[_0x31abb0(0x1fc)]()[_0x31abb0(0x25c)](_0x13134f=>_0x13134f[_0x31abb0(0x1fa)]===_0x2135b2);if(!_0x2745fe)return null;let _0x2cc2f8=_0x5737d8?_0xbec466-_0x2745fe['x']:_0x2745fe['x'],_0x514467=_0x5767ba?_0x2d4501-_0x2745fe['y']:_0x2745fe['y'];if(_0x8bb293&&_0x8bb293!==0x0){let _0x4e5096=_0x8bb293*Math['PI']/0xb4,_0x44c016=Math['cos'](_0x4e5096),_0x2b6eb0=Math[_0x31abb0(0x254)](_0x4e5096),_0x27cc43=_0xbec466/0x2,_0x4eea1a=_0x2d4501/0x2,_0xe704bd=_0x2cc2f8-_0x27cc43,_0x21b1aa=_0x514467-_0x4eea1a;_0x2cc2f8=_0x27cc43+_0xe704bd*_0x44c016-_0x21b1aa*_0x2b6eb0,_0x514467=_0x4eea1a+_0xe704bd*_0x2b6eb0+_0x21b1aa*_0x44c016;}_0x2cc2f8+=_0x3b95e2,_0x514467+=_0x540750;let _0x2b0faa=_0x2745fe[_0x31abb0(0x215)]/0xea60;_0x5737d8&&(_0x2b0faa=0xb4-_0x2b0faa),_0x5767ba&&(_0x2b0faa=-_0x2b0faa),_0x2b0faa+=_0x8bb293||0x0,_0x2b0faa=(_0x2b0faa%0x168+0x168)%0x168;let _0x503729=_0x9d2fc0({'left':_0x3b95e2,'top':_0x540750,'width':_0xbec466,'height':_0x2d4501},_0x8bb293||0x0);return{'point':{'x':_0x2cc2f8,'y':_0x514467},'angle':_0x2b0faa,'bounds':_0x503729};}function L(_0xe2550,_0x252f2e){const _0x334749=_0x5523e0;let _0x232f11=_0x252f2e['x']-_0xe2550['x'],_0x470ee7=_0x252f2e['y']-_0xe2550['y'];return Math[_0x334749(0x230)](_0x232f11)>=Math['abs'](_0x470ee7)?_0x232f11>=0x0?0xb4:0x0:_0x470ee7>=0x0?0x10e:0x5a;}function R(_0x36880e,_0x487852,_0x50d0fb,_0x355690,_0x4bf932,_0xa176fb,_0x24fa3d){const _0x4afe69=_0x5523e0;let _0x4ca2da=_0xa176fb['getShapeModel'](_0x36880e,_0x487852,_0x50d0fb);if(!_0x4ca2da)return null;let _0xcea9af=_0x24fa3d[_0x4afe69(0x20c)]({'unitId':_0x36880e,'subUnitId':_0x487852,'drawingId':_0x50d0fb});if(!(_0xcea9af!=null&&_0xcea9af['transform']))return null;let {left:_0x1db18b=0x0,top:_0x555e1b=0x0,width:_0x3ef2d6=0x0,height:_0x1cac70=0x0,flipX:_0x6212ab=!0x1,flipY:_0x20ebbf=!0x1}=_0xcea9af[_0x4afe69(0x24f)];_0x4ca2da[_0x4afe69(0x248)]({'width':_0x3ef2d6,'height':_0x1cac70});let _0x121124=_0x4ca2da[_0x4afe69(0x1eb)]();if(_0x121124[_0x4afe69(0x202)]<0x2)return null;let _0xa506b6=_0x355690?_0x121124[0x0]:_0x121124[_0x121124['length']-0x1],_0x90d43b=new _0x2c8646({'left':_0x1db18b,'top':_0x555e1b,'width':_0x3ef2d6,'height':_0x1cac70,'flipX':_0x6212ab,'flipY':_0x20ebbf})[_0x4afe69(0x1f8)](_0xa506b6);return{'point':_0x90d43b,'angle':L(_0x4bf932[_0x4afe69(0x244)],_0x90d43b),'bounds':{'left':_0x90d43b['x'],'top':_0x90d43b['y'],'width':0x0,'height':0x0}};}function _0x2aba(_0x103f8d,_0x2b8068){_0x103f8d=_0x103f8d-0x1d7;const _0x59b991=_0x59b9();let _0x2aba6e=_0x59b991[_0x103f8d];return _0x2aba6e;}var z=class extends _0x3ba9d2{async['insertShape'](_0x375502){const _0x315126=_0x5523e0;let {unitId:_0x2d1e54,subUnitId:_0x4c0f91,shapeId:_0x35b94e,shapeType:_0x5ad9c8,shapeData:_0x271e22,x:_0x200840,y:_0x26d6d1,width:_0x44beb4,height:_0x5e1872}=_0x375502;return this[_0x315126(0x1ee)][_0x315126(0x22c)](_0x349e23['id'],{'unitId':_0x2d1e54,'subUnitId':_0x4c0f91,'shapeId':_0x35b94e,'shapeType':_0x5ad9c8,'shapeData':_0x271e22,'position':{'x':_0x200840,'y':_0x26d6d1},'width':_0x44beb4,'height':_0x5e1872});}async[_0x5523e0(0x23d)](_0x2c36c1){const _0xb9e3bc=_0x5523e0;let {unitId:_0x3733bb,subUnitId:_0x207590,shapeId:_0x403d41,shapeType:_0x5f5d4d,shapeData:_0x7dcf04,x:_0x2b71c7,y:_0x2c55ee,width:_0x57f6bf,height:_0x481a2e}=_0x2c36c1;return this[_0xb9e3bc(0x1ee)][_0xb9e3bc(0x22c)](_0x3363bb['id'],{'unitId':_0x3733bb,'subUnitId':_0x207590,'shapeId':_0x403d41,'shapeType':_0x5f5d4d,'shapeData':_0x7dcf04,'position':{'x':_0x2b71c7,'y':_0x2c55ee},'width':_0x57f6bf,'height':_0x481a2e});}[_0x5523e0(0x20d)](_0x56f169){const _0x44c659=_0x5523e0;let _0x1abee6=this['getWorkbook']()[_0x44c659(0x243)](),_0x29ea8c=this[_0x44c659(0x214)]();if(_0x56f169){let _0x5dad36=new P(_0x1abee6,_0x29ea8c,_0x56f169[_0x44c659(0x24c)],this[_0x44c659(0x200)]);return this['_preloadShapeProperties'](_0x5dad36,_0x1abee6,_0x29ea8c,_0x56f169[_0x44c659(0x24c)]),_0x5dad36;}return new P(_0x1abee6,_0x29ea8c,_0x478e17(),this[_0x44c659(0x200)]);}['newConnector'](_0x53a5b1){const _0x5cfa82=_0x5523e0;let _0x23c4d6=this[_0x5cfa82(0x249)]()['getUnitId'](),_0x5432ec=this[_0x5cfa82(0x214)]();if(_0x53a5b1){let _0xbc3c5a=new F(_0x23c4d6,_0x5432ec,_0x53a5b1[_0x5cfa82(0x24c)],this[_0x5cfa82(0x200)]);return this[_0x5cfa82(0x251)](_0xbc3c5a,_0x23c4d6,_0x5432ec,_0x53a5b1['drawId']),_0xbc3c5a;}return new F(_0x23c4d6,_0x5432ec,_0x478e17(),this[_0x5cfa82(0x200)]);}['getShapes'](){const _0x45f8b4=_0x5523e0;let _0x577427=this[_0x45f8b4(0x200)][_0x45f8b4(0x1e5)](_0x5bfdfe),_0x1006b5=this[_0x45f8b4(0x249)]()[_0x45f8b4(0x243)](),_0xb7ca65=this[_0x45f8b4(0x214)](),_0x1e5dab=_0x577427['getDrawingData'](_0x1006b5,_0xb7ca65);if(!_0x1e5dab)return[];let _0x306c4b=[];for(let [_0x1aa741,_0x130992]of Object[_0x45f8b4(0x240)](_0x1e5dab))if(_0x130992&&_0x130992[_0x45f8b4(0x1e7)]===_0x3372c3['DRAWING_SHAPE']){let _0x2b9d7e=new P(_0x1006b5,_0xb7ca65,_0x1aa741,this[_0x45f8b4(0x200)]);this[_0x45f8b4(0x251)](_0x2b9d7e,_0x1006b5,_0xb7ca65,_0x1aa741),_0x306c4b['push'](_0x2b9d7e);}return _0x306c4b;}['removeShape'](_0x1aed9e){const _0x80b68f=_0x5523e0;let {unitId:_0x426fb4,subUnitId:_0x29d21,drawId:_0xa99c57}=_0x1aed9e;return this['_commandService']['executeCommand'](_0x28db79['id'],{'unitId':_0x426fb4,'drawings':[{'unitId':_0x426fb4,'subUnitId':_0x29d21,'drawingId':_0xa99c57,'drawingType':_0x3372c3[_0x80b68f(0x1ea)]}]});}async[_0x5523e0(0x247)](_0x2429a0){const _0x1eec79=_0x5523e0;let {connector:_0x5942da,startTarget:_0x5b0f8e,endTarget:_0x361c85}=_0x2429a0;if(!_0x5b0f8e&&!_0x361c85)return!0x1;let _0x379033=this['getWorkbook']()[_0x1eec79(0x243)](),_0xf99479=this[_0x1eec79(0x214)](),_0x412e90=this[_0x1eec79(0x200)][_0x1eec79(0x1e5)](_0x5d7a9e),_0x7282b0=this[_0x1eec79(0x200)][_0x1eec79(0x1e5)](_0x2fcdbd),_0x1970bd=_0x412e90[_0x1eec79(0x21a)](_0x379033,_0xf99479,_0x5942da[_0x1eec79(0x24c)]);if(!_0x1970bd)return!0x1;let _0x41fee6=_0x1970bd[_0x1eec79(0x22f)](),_0x53e5ff=_0x1970bd[_0x1eec79(0x234)](),_0x210905={};for(let _0x2a5d41 of _0x1970bd[_0x1eec79(0x21e)]()){let _0x225f6d=_0x1970bd[_0x1eec79(0x1f6)](_0x2a5d41);_0x225f6d!==void 0x0&&(_0x210905[_0x2a5d41]=_0x225f6d);}let {startInfo:_0x3443a2,endInfo:_0xe3ba13}=this[_0x1eec79(0x1da)](_0x379033,_0xf99479,_0x5942da,_0x1970bd,_0x5b0f8e,_0x361c85,_0x412e90,_0x7282b0,_0x53e5ff);if(!_0x3443a2||!_0xe3ba13)return!0x1;let _0x15d352=_0x35c7a4(_0x26078f(_0x3443a2,_0xe3ba13,_0x41fee6),_0x41fee6),_0x4f9a49={};return _0x5b0f8e?_0x4f9a49[_0x1eec79(0x22b)]={'shapeId':_0x5b0f8e[_0x1eec79(0x259)][_0x1eec79(0x24c)],'cxnIndex':_0x5b0f8e['connectionSiteIndex']}:_0x53e5ff!=null&&_0x53e5ff[_0x1eec79(0x22b)]&&(_0x4f9a49[_0x1eec79(0x22b)]=_0x53e5ff[_0x1eec79(0x22b)]),_0x361c85?_0x4f9a49['to']={'shapeId':_0x361c85[_0x1eec79(0x259)][_0x1eec79(0x24c)],'cxnIndex':_0x361c85[_0x1eec79(0x225)]}:_0x53e5ff!=null&&_0x53e5ff['to']&&(_0x4f9a49['to']=_0x53e5ff['to']),this[_0x1eec79(0x1ee)][_0x1eec79(0x22c)](_0x167b3e['id'],{'unitId':_0x379033,'subUnitId':_0xf99479,'connectorShapeId':_0x5942da['drawId'],'width':_0x15d352['worldRect']['width'],'height':_0x15d352['worldRect'][_0x1eec79(0x227)],'left':_0x15d352[_0x1eec79(0x24d)]['left'],'top':_0x15d352[_0x1eec79(0x24d)][_0x1eec79(0x255)],'flipX':_0x15d352[_0x1eec79(0x24d)][_0x1eec79(0x207)]||!0x1,'flipY':_0x15d352['worldRect'][_0x1eec79(0x235)]||!0x1,'oldAdjustValues':_0x210905,'newAdjustValues':_0x15d352['adjustValues'],'newLineType':_0x15d352[_0x1eec79(0x1f2)],'oldLineType':_0x41fee6,'rotation':_0x15d352[_0x1eec79(0x221)],'oldRelation':_0x53e5ff,'newRelation':_0x4f9a49});}[_0x5523e0(0x251)](_0x2181da,_0x36d130,_0x3ff58b,_0x1d0538){const _0x45efbb=_0x5523e0;let _0x120ae3=this[_0x45efbb(0x200)][_0x45efbb(0x1e5)](_0x2fcdbd)[_0x45efbb(0x20c)]({'unitId':_0x36d130,'subUnitId':_0x3ff58b,'drawingId':_0x1d0538});if(_0x120ae3!=null&&_0x120ae3[_0x45efbb(0x24f)]){var _0x26d959,_0x37cad1,_0x200952,_0x37304f;_0x2181da['x']=(_0x26d959=_0x120ae3[_0x45efbb(0x24f)][_0x45efbb(0x208)])==null?0x0:_0x26d959,_0x2181da['y']=(_0x37cad1=_0x120ae3[_0x45efbb(0x24f)]['top'])==null?0x0:_0x37cad1,_0x2181da[_0x45efbb(0x21b)]=(_0x200952=_0x120ae3['transform'][_0x45efbb(0x21b)])==null?_0x2181da[_0x45efbb(0x21b)]:_0x200952,_0x2181da[_0x45efbb(0x227)]=(_0x37304f=_0x120ae3[_0x45efbb(0x24f)][_0x45efbb(0x227)])==null?_0x2181da[_0x45efbb(0x227)]:_0x37304f;}let _0x3b5810=this[_0x45efbb(0x200)][_0x45efbb(0x1e5)](_0x5d7a9e)[_0x45efbb(0x21a)](_0x36d130,_0x3ff58b,_0x1d0538);if(_0x3b5810){_0x2181da['shapeType']=_0x3b5810[_0x45efbb(0x22f)]();let _0x13aac9=_0x3b5810[_0x45efbb(0x1e9)]();_0x13aac9&&(_0x2181da[_0x45efbb(0x1f0)]=JSON[_0x45efbb(0x238)](JSON[_0x45efbb(0x1e2)](_0x13aac9)));}}[_0x5523e0(0x1da)](_0x2b3ed1,_0x1c93c7,_0x414413,_0xcc149b,_0x3ce4b2,_0x2a202c,_0x554142,_0x2fe704,_0x3aead9){const _0x6f437c=_0x5523e0;let _0x8cf541=null,_0x54415b=null;return _0x3ce4b2&&(_0x8cf541=I(_0x2b3ed1,_0x1c93c7,_0x3ce4b2[_0x6f437c(0x259)][_0x6f437c(0x24c)],_0x3ce4b2[_0x6f437c(0x225)],_0x554142,_0x2fe704)),_0x2a202c&&(_0x54415b=I(_0x2b3ed1,_0x1c93c7,_0x2a202c[_0x6f437c(0x259)][_0x6f437c(0x24c)],_0x2a202c[_0x6f437c(0x225)],_0x554142,_0x2fe704)),_0x8cf541||(_0x8cf541=this['_resolveExistingOrFreeEndpoint'](_0x2b3ed1,_0x1c93c7,_0x414413[_0x6f437c(0x24c)],!0x0,_0x54415b,_0x3aead9==null?void 0x0:_0x3aead9[_0x6f437c(0x22b)],_0x554142,_0x2fe704)),_0x54415b||(_0x54415b=this['_resolveExistingOrFreeEndpoint'](_0x2b3ed1,_0x1c93c7,_0x414413[_0x6f437c(0x24c)],!0x1,_0x8cf541,_0x3aead9==null?void 0x0:_0x3aead9['to'],_0x554142,_0x2fe704)),{'startInfo':_0x8cf541,'endInfo':_0x54415b};}[_0x5523e0(0x213)](_0x1816d4,_0x31819e,_0x499fe1,_0x397d1f,_0x2b5422,_0x4ef3e3,_0x2c0918,_0x16dbe2){const _0xdb6d5=_0x5523e0;if(_0x4ef3e3){let _0x58ba2c=I(_0x1816d4,_0x31819e,_0x4ef3e3[_0xdb6d5(0x252)],_0x4ef3e3[_0xdb6d5(0x22e)],_0x2c0918,_0x16dbe2);if(_0x58ba2c)return _0x58ba2c;}return _0x2b5422?R(_0x1816d4,_0x31819e,_0x499fe1,_0x397d1f,_0x2b5422,_0x2c0918,_0x16dbe2):null;}};_0x3ba9d2[_0x5523e0(0x23a)](z);export{F as FConnectorShape,P as FShape};function _0x59b9(){const _0x5b1979=['stroke','cxnIndex','getShapeType','abs','dashType','ShapeArrowSizeEnum','defineProperty','getShapeRelation','flipY','7fpVIsj','prototype','parse','setAbsolutePosition','extend','706uwvOcB','type','updateShape','NoFill','setStrokeLineDashType','entries','setStartArrowType','getEndConnectInfo','getUnitId','point','Skeleton\x20for\x20unitId\x20','keys','connectShapes','updateContext','getWorkbook',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','drawId','worldRect','ShapeFillEnum','transform','build','_preloadShapeProperties','shapeId','1360089yHYIWG','sin','top','fillType','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','5293122bpsgfs','shape','ShapeLineCapEnum','setHeight','find','fill','ShapeLineTypeEnum','gradientAngle','_resolveEndpoints','getConnectionSites','ShapeGradientTypeEnum','unitId','subUnitId','setNoneFill','opacity','5JaxLFb','stringify','gradientStops','startArrow','get','setStrokeColor','drawingType','endArrow','getShapeData','DRAWING_SHAPE','getConnectorLinePoints','SolidFill','lineJoinType','_commandService','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','shapeData','1141skAjTi','lineType','ShapeLineDashEnum','setEndArrowSize','setPosition','getAdjustValueByName','setShapeType','localToWorld','toPrimitive','index','getDrawingPoints','getConnectionSiteList','shapeType','relation','setShapeSolidFill','_injector','string','length','\x20and\x20subUnitId\x20','GradientFill','object','6970336LWmnwp','flipX','left','getPosition','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','symbol','getDrawingByParam','newShape','getStartConnectInfo','isLineShape','\x20not\x20found','color','function','_resolveExistingOrFreeEndpoint','getSheetId','ang','5011650ZCJpGI','ensureSkeleton','6729021VsKJyC','setStrokeLineJoinType','getShapeModel','width','ShapeArrowTypeEnum','setStrokeWidth','getAdjustNames','setStrokeLineType','setShapeData','rotation','4039416yhjhBy','iterator','lineStrokeType','connectionSiteIndex','setWidth','height','setShapeGradientFill','setStartArrowSize','setEndArrowType','from','executeCommand'];_0x59b9=function(){return _0x5b1979;};return _0x59b9();}
|
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 _0x24315c=_0x401b;(function(_0xc03872,_0x98d5d4){const _0xab5daf=_0x401b,_0xa84df9=_0xc03872();while(!![]){try{const _0x54e72f=-parseInt(_0xab5daf(0x15e))/0x1+parseInt(_0xab5daf(0x102))/0x2*(-parseInt(_0xab5daf(0x178))/0x3)+parseInt(_0xab5daf(0x167))/0x4+-parseInt(_0xab5daf(0x166))/0x5*(-parseInt(_0xab5daf(0x10e))/0x6)+-parseInt(_0xab5daf(0x137))/0x7+-parseInt(_0xab5daf(0x12c))/0x8+-parseInt(_0xab5daf(0x12b))/0x9*(-parseInt(_0xab5daf(0x180))/0xa);if(_0x54e72f===_0x98d5d4)break;else _0xa84df9['push'](_0xa84df9['shift']());}catch(_0x41edee){_0xa84df9['push'](_0xa84df9['shift']());}}}(_0xb7bc,0x3fb0d));import{ShapeModel as _0x4935d1,computeConnectorRouteLayout as _0x11cba5,createUniqueShapeName as _0x3c2717,getBasicShapeRotateBound as _0xee328b,isConnectorShape as _0x45bbc3,routeConnectorLineShape as _0x696e80}from'@univerjs-pro/engine-shape';import{CommandType as _0x395a1d,DependentOn as _0x173671,Disposable as _0x205493,DrawingTypeEnum as _0xcd5ef0,ICommandService as _0x12d889,IConfigService as _0x5ad0ed,IResourceManagerService as _0x5d31ed,IUndoRedoService as _0x32f094,IUniverInstanceService as _0x14f0b3,Inject as _0x396a8a,Injector as _0x1e351a,Plugin as _0x307e7b,UniverInstanceType as _0xf89464,generateRandomId as _0x26e08e,merge as _0x5db2e6,sequenceExecute as _0x2d1a4f,touchDependencies as _0x46da78}from'@univerjs/core';function _0x401b(_0x9a3a2f,_0x5b27b6){_0x9a3a2f=_0x9a3a2f-0xe4;const _0xb7bc48=_0xb7bc();let _0x401b30=_0xb7bc48[_0x9a3a2f];return _0x401b30;}import{SheetInterceptorService as _0x3d6fd9,SheetSkeletonService as _0x3dac38,getSheetCommandTarget as _0x37d1c8}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x2ec674,DrawingApplyType as _0x366655,ISheetDrawingService as _0x189a5a,InsertSheetDrawingCommand as _0x12582e,RemoveSheetDrawingCommand as _0x30f0fe,SetDrawingApplyMutation as _0xb6a54f,SetSheetDrawingCommand as _0x1ecf99,transformToAxisAlignPosition as _0x58930a,transformToDrawingPosition as _0x4f2943}from'@univerjs/sheets-drawing';import{UniverLicensePlugin as _0x1837ff}from'@univerjs-pro/license';import{IDrawingManagerService as _0x3f7bd4}from'@univerjs/drawing';const L=0xc8,R=0xc8;function z(_0x1ce3e0){'@babel/helpers - typeof';const _0x43454c=_0x401b;return z=typeof Symbol==_0x43454c(0xe6)&&typeof Symbol['iterator']==_0x43454c(0x114)?function(_0x3c66c3){return typeof _0x3c66c3;}:function(_0x1012d8){const _0x5b8c20=_0x43454c;return _0x1012d8&&typeof Symbol==_0x5b8c20(0xe6)&&_0x1012d8[_0x5b8c20(0x17f)]===Symbol&&_0x1012d8!==Symbol[_0x5b8c20(0x12e)]?'symbol':typeof _0x1012d8;},z(_0x1ce3e0);}function B(_0x15d54d,_0x45bb57){const _0x45269c=_0x401b;if(z(_0x15d54d)!='object'||!_0x15d54d)return _0x15d54d;var _0x29057e=_0x15d54d[Symbol[_0x45269c(0x17e)]];if(_0x29057e!==void 0x0){var _0x273260=_0x29057e[_0x45269c(0x158)](_0x15d54d,_0x45bb57||_0x45269c(0x135));if(z(_0x273260)!=_0x45269c(0x125))return _0x273260;throw TypeError(_0x45269c(0x103));}return(_0x45bb57===_0x45269c(0x111)?String:Number)(_0x15d54d);}function V(_0x146be5){const _0x1e12dc=_0x401b;var _0x2a3d69=B(_0x146be5,_0x1e12dc(0x111));return z(_0x2a3d69)==_0x1e12dc(0x114)?_0x2a3d69:_0x2a3d69+'';}function H(_0x355373,_0x5fdeb4,_0x4e5afa){return(_0x5fdeb4=V(_0x5fdeb4))in _0x355373?Object['defineProperty'](_0x355373,_0x5fdeb4,{'value':_0x4e5afa,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x355373[_0x5fdeb4]=_0x4e5afa,_0x355373;}var U=class extends _0x205493{constructor(){const _0x5a69c7=_0x401b;super(),H(this,_0x5a69c7(0x174),new Map()),H(this,_0x5a69c7(0x14b),new Set()),H(this,_0x5a69c7(0x17c),new Set());}[_0x24315c(0x14e)](_0x52c245,_0x4eced4,_0x31beae,_0x3a89da){const _0x114c2b=_0x24315c;let _0xfd11ab=new _0x4935d1(_0x52c245,_0x4eced4,_0x31beae,_0x3a89da);return this['_shapes'][_0x114c2b(0x12a)](_0x4eced4,_0xfd11ab),_0x45bbc3(_0x52c245)&&this['_linesIds'][_0x114c2b(0x145)](_0x4eced4),_0xfd11ab;}[_0x24315c(0x163)](_0xb0dca4){const _0x4862d6=_0x24315c;let _0x1311cc=[];for(let _0x15bb76 of this['_linesIds']){let _0x22f42d=this[_0x4862d6(0x174)]['get'](_0x15bb76);if(_0x22f42d){let _0x5f31e9=_0x22f42d[_0x4862d6(0x179)]();if(_0x5f31e9){var _0x5619bf,_0x4ffbdf;((_0x5619bf=_0x5f31e9['from'])==null?void 0x0:_0x5619bf['shapeId'])===_0xb0dca4&&_0x1311cc[_0x4862d6(0x12f)]({..._0x5f31e9['from'],'lineShapeId':_0x15bb76,'isFrom':!0x0}),((_0x4ffbdf=_0x5f31e9['to'])==null?void 0x0:_0x4ffbdf['shapeId'])===_0xb0dca4&&_0x1311cc[_0x4862d6(0x12f)]({..._0x5f31e9['to'],'lineShapeId':_0x15bb76,'isFrom':!0x1});}}}return _0x1311cc;}[_0x24315c(0xff)](_0x3f5741){const _0x5c452c=_0x24315c;let _0x1a62ea=this[_0x5c452c(0x174)][_0x5c452c(0x123)](_0x3f5741);if(_0x1a62ea)return _0x1a62ea['getShapeRelation']();}['getShapeType'](_0xc7728a){const _0x47def0=_0x24315c;let _0xb859c8=this['_shapes'][_0x47def0(0x123)](_0xc7728a);if(_0xb859c8)return _0xb859c8['getShapeType']();}[_0x24315c(0xf1)](_0x1a9ee7){const _0x18cbc8=_0x24315c;return this[_0x18cbc8(0x174)]['has'](_0x1a9ee7);}[_0x24315c(0x147)](){const _0x28171e=_0x24315c;return Array[_0x28171e(0x161)](this['_shapes'][_0x28171e(0x15d)]())['map'](_0x33511d=>_0x33511d['getName']()||_0x33511d[_0x28171e(0xe8)]());}[_0x24315c(0x10d)](_0x3ae981){const _0x1b11ff=_0x24315c;let _0x3516e2=this['_shapes'][_0x1b11ff(0x123)](_0x3ae981);_0x3516e2&&(_0x45bbc3(_0x3516e2[_0x1b11ff(0x126)]())&&this[_0x1b11ff(0x14b)]['delete'](_0x3ae981),this[_0x1b11ff(0x174)][_0x1b11ff(0x175)](_0x3ae981));}[_0x24315c(0x13f)](){const _0x2ada0c=_0x24315c;let _0x274a93=[];return this[_0x2ada0c(0x174)][_0x2ada0c(0x107)](_0x22032b=>{const _0x5b56c5=_0x2ada0c;_0x274a93[_0x5b56c5(0x12f)](_0x22032b['toJSON']());}),_0x274a93;}[_0x24315c(0x11c)](_0x44ace5){const _0x5bae49=_0x24315c;for(let _0x24d060 of _0x44ace5){let {id:_0x32ddb6,shapeType:_0x25f2e1,name:_0x3f822b}=_0x24d060,_0x25e55a=this[_0x5bae49(0x14e)](_0x25f2e1,_0x32ddb6,_0x24d060[_0x5bae49(0x108)],_0x3f822b);_0x25e55a&&_0x25e55a[_0x5bae49(0x140)]()&&this[_0x5bae49(0x14b)][_0x5bae49(0x145)](_0x32ddb6);}}[_0x24315c(0x152)](){const _0x440289=_0x24315c;this['_disposed']||(this[_0x440289(0x174)][_0x440289(0x107)](_0x4c95ee=>{const _0xebb0fb=_0x440289;_0x4c95ee[_0xebb0fb(0x152)]();}),this[_0x440289(0x174)][_0x440289(0x106)](),this['_linesIds'][_0x440289(0x106)](),this['_groupIds'][_0x440289(0x106)](),super[_0x440289(0x152)]());}};function W(_0x1bb470,_0x5c4068){return function(_0x2175e8,_0x481caf){_0x5c4068(_0x2175e8,_0x481caf,_0x1bb470);};}function G(_0x3ad02e,_0x13b348,_0x3b114c,_0x96ada6){const _0x8ecea5=_0x24315c;var _0xa58497=arguments[_0x8ecea5(0x142)],_0x257d42=_0xa58497<0x3?_0x13b348:_0x96ada6===null?_0x96ada6=Object[_0x8ecea5(0x17b)](_0x13b348,_0x3b114c):_0x96ada6,_0x19050b;if(typeof Reflect==_0x8ecea5(0x125)&&typeof Reflect[_0x8ecea5(0x101)]==_0x8ecea5(0xe6))_0x257d42=Reflect[_0x8ecea5(0x101)](_0x3ad02e,_0x13b348,_0x3b114c,_0x96ada6);else{for(var _0x2368a9=_0x3ad02e[_0x8ecea5(0x142)]-0x1;_0x2368a9>=0x0;_0x2368a9--)(_0x19050b=_0x3ad02e[_0x2368a9])&&(_0x257d42=(_0xa58497<0x3?_0x19050b(_0x257d42):_0xa58497>0x3?_0x19050b(_0x13b348,_0x3b114c,_0x257d42):_0x19050b(_0x13b348,_0x3b114c))||_0x257d42);}return _0xa58497>0x3&&_0x257d42&&Object[_0x8ecea5(0xe9)](_0x13b348,_0x3b114c,_0x257d42),_0x257d42;}let K=class extends _0x205493{constructor(_0xc58489){const _0xebb66=_0x24315c;super(),this[_0xebb66(0x10f)]=_0xc58489,H(this,'_shapeModelManagerMap',new Map()),this['_initSnapshot']();}['_ensureShapeModelManager'](_0x250ecf,_0x17ed59){const _0x4124ba=_0x24315c;let _0xb681f7=this[_0x4124ba(0xfd)][_0x4124ba(0x123)](_0x250ecf);_0xb681f7||(_0xb681f7=new Map(),this[_0x4124ba(0xfd)][_0x4124ba(0x12a)](_0x250ecf,_0xb681f7));let _0x4358af=_0xb681f7[_0x4124ba(0x123)](_0x17ed59);return _0x4358af||(_0x4358af=new U(),_0xb681f7['set'](_0x17ed59,_0x4358af)),_0x4358af;}[_0x24315c(0x171)](_0xb9fcc7,_0x2b6dab,_0x4c6b2b,_0x3549ad,_0x3a4737,_0x338688){const _0x72adea=_0x24315c;this[_0x72adea(0x17d)](_0xb9fcc7,_0x2b6dab)[_0x72adea(0x14e)](_0x4c6b2b,_0x3549ad,_0x3a4737,_0x338688);}[_0x24315c(0x10d)](_0x51e0bd,_0x270521,_0x1e78ee){const _0x12a97f=_0x24315c;this[_0x12a97f(0x17d)](_0x51e0bd,_0x270521)['removeShape'](_0x1e78ee);}[_0x24315c(0x169)](_0x2a610d,_0x285378,_0x247e92){const _0x1e5eb8=_0x24315c;return this['_ensureShapeModelManager'](_0x2a610d,_0x285378)[_0x1e5eb8(0x126)](_0x247e92);}[_0x24315c(0x126)](_0x52a040,_0x397a5b,_0x41445a){const _0x2f6e1e=_0x24315c;return this[_0x2f6e1e(0x17d)](_0x52a040,_0x397a5b)['getShapeType'](_0x41445a);}['hasShape'](_0x5e9b94,_0x4259bb,_0x4e8ad4){const _0xe1f048=_0x24315c;return this[_0xe1f048(0x17d)](_0x5e9b94,_0x4259bb)[_0xe1f048(0xf1)](_0x4e8ad4);}[_0x24315c(0x14d)](_0x468f70,_0x5e6eb3,_0x2e9acb){const _0x3a148d=_0x24315c;return this['_ensureShapeModelManager'](_0x468f70,_0x5e6eb3)[_0x3a148d(0x126)](_0x2e9acb);}[_0x24315c(0x154)](_0x1735e0,_0x2e8046,_0x4f9217){const _0x4b3af6=_0x24315c;let _0x14707f=this['_ensureShapeModelManager'](_0x1735e0,_0x2e8046);if(!_0x14707f[_0x4b3af6(0x126)](_0x4f9217))return;let _0x3f4ba2=_0x14707f[_0x4b3af6(0x174)]['get'](_0x4f9217);if(_0x3f4ba2)return _0x3f4ba2[_0x4b3af6(0x15a)]();}[_0x24315c(0x147)](_0xb594c0,_0x91dabb){const _0x4d26b9=_0x24315c;return this['_ensureShapeModelManager'](_0xb594c0,_0x91dabb)[_0x4d26b9(0x147)]();}[_0x24315c(0xfe)](_0x5a05a6,_0x158693,_0x40f94d){const _0x309eaf=_0x24315c;return this[_0x309eaf(0x17d)](_0x5a05a6,_0x158693)[_0x309eaf(0x174)]['get'](_0x40f94d);}[_0x24315c(0x163)](_0x3764aa,_0x2db5a0,_0x4ca799){const _0x528c6c=_0x24315c;return this[_0x528c6c(0x17d)](_0x3764aa,_0x2db5a0)[_0x528c6c(0x163)](_0x4ca799);}['getLineShapeRelation'](_0x37a5ef,_0x34c7eb,_0xfcbcfa){const _0x550e72=_0x24315c;let _0x196b57=this[_0x550e72(0x17d)](_0x37a5ef,_0x34c7eb)[_0x550e72(0x174)][_0x550e72(0x123)](_0xfcbcfa);if(_0x196b57)return _0x196b57['getShapeRelation']();}[_0x24315c(0xee)](){}[_0x24315c(0x11b)](_0x33b596){const _0x3d816c=_0x24315c;let _0x5b6eb0={},_0x479351=this['_shapeModelManagerMap']['get'](_0x33b596);return _0x479351&&_0x479351[_0x3d816c(0x107)]((_0x439456,_0x4ced2b)=>{const _0x5549e2=_0x3d816c;let _0x41e6fc=_0x439456['toJSON']();_0x41e6fc[_0x5549e2(0x142)]>0x0&&(_0x5b6eb0[_0x4ced2b]=_0x41e6fc);}),JSON[_0x3d816c(0x110)](_0x5b6eb0);}['_deserializeShapeForUnit'](_0x10f250,_0x5926ac){Object['keys'](_0x5926ac)['forEach'](_0x4408c4=>{const _0x731fa0=_0x401b;this[_0x731fa0(0x17d)](_0x10f250,_0x4408c4)[_0x731fa0(0x11c)](_0x5926ac[_0x4408c4]);});}[_0x24315c(0x13f)](){const _0xbd12c8=_0x24315c;let _0x1d1843={};return this[_0xbd12c8(0xfd)][_0xbd12c8(0x107)]((_0x45802e,_0x1beda6)=>{_0x1d1843[_0x1beda6]={},_0x45802e['forEach']((_0x2f95f7,_0x3ab917)=>{const _0x522db1=_0x401b;_0x1d1843[_0x1beda6][_0x3ab917]=_0x2f95f7[_0x522db1(0x13f)]();});}),_0x1d1843;}[_0x24315c(0x11c)](_0x59b049){const _0x3d5cf1=_0x24315c;Object[_0x3d5cf1(0x130)](_0x59b049)[_0x3d5cf1(0x107)](_0x414404=>{const _0x1bec2a=_0x3d5cf1;let _0x1ced3a=_0x59b049[_0x414404];Object[_0x1bec2a(0x130)](_0x1ced3a)[_0x1bec2a(0x107)](_0x1388ce=>{const _0xa04aca=_0x1bec2a;this[_0xa04aca(0x17d)](_0x414404,_0x1388ce)['fromJSON'](_0x1ced3a[_0x1388ce]);});});}['_initSnapshot'](){const _0x52b2d7=_0x24315c;this[_0x52b2d7(0x10f)][_0x52b2d7(0x10b)]({'pluginName':_0x52b2d7(0x157),'businesses':[_0xf89464[_0x52b2d7(0xe4)]],'toJson':_0x2804af=>this['_serializeShapeForUnit'](_0x2804af),'parseJson':_0x5d121c=>JSON['parse'](_0x5d121c),'onLoad':(_0x5c8343,_0x16ea18)=>{const _0x3cd385=_0x52b2d7;this[_0x3cd385(0x16b)](_0x5c8343,_0x16ea18);},'onUnLoad':_0x5c4582=>{const _0x1cd860=_0x52b2d7;let _0x5800f4=this[_0x1cd860(0xfd)]['get'](_0x5c4582);_0x5800f4&&(_0x5800f4[_0x1cd860(0x107)](_0x146e1a=>{const _0x5e808a=_0x1cd860;_0x146e1a[_0x5e808a(0x152)]();}),this[_0x1cd860(0xfd)][_0x1cd860(0x175)](_0x5c4582));}});}['dispose'](){const _0x1b4674=_0x24315c;this['_shapeModelManagerMap'][_0x1b4674(0x107)](_0x3d60ec=>{const _0x226027=_0x1b4674;_0x3d60ec[_0x226027(0x107)](_0x5499a6=>{const _0x1b7315=_0x226027;_0x5499a6[_0x1b7315(0x152)]();});});}};K=G([W(0x0,_0x5d31ed)],K);const q={'id':_0x24315c(0x141),'type':_0x395a1d[_0x24315c(0x12d)],'handler':(_0x64355f,_0x312452)=>{const _0x304296=_0x24315c;let {unitId:_0x2cd38d,subUnitId:_0x3da279,shapeType:_0x120e8d,shapeId:_0x3b25a4,shapeName:_0x5d5e59,shapeData:_0x39fa47}=_0x312452;return _0x64355f[_0x304296(0x123)](K)[_0x304296(0x171)](_0x2cd38d,_0x3da279,_0x120e8d,_0x3b25a4,_0x39fa47,_0x5d5e59),!0x0;}},J={'id':_0x24315c(0xf0),'type':_0x395a1d[_0x24315c(0x12d)],'handler':(_0x12c03d,_0x27b2d8)=>{const _0x1f9479=_0x24315c;let {unitId:_0x3d57eb,subUnitId:_0x3baa2e,shapeId:_0x4a661d}=_0x27b2d8;return _0x12c03d[_0x1f9479(0x123)](K)['removeShape'](_0x3d57eb,_0x3baa2e,_0x4a661d),!0x0;}},Y={'type':_0x395a1d[_0x24315c(0x129)],'id':_0x24315c(0x13b),'handler':(_0x1e4a2f,_0x117963)=>{const _0x92334a=_0x24315c;var _0x2c1b4b,_0x26a27d,_0x43a825;let _0x277143=_0x37d1c8(_0x1e4a2f[_0x92334a(0x123)](_0x14f0b3),_0x117963);if(!_0x277143)return!0x1;let _0x972c38=_0x1e4a2f[_0x92334a(0x123)](_0x3dac38),{unitId:_0x39311c,subUnitId:_0x5ef38f}=_0x277143,_0x5260b3=_0x972c38[_0x92334a(0x133)](_0x39311c,_0x5ef38f);if(!_0x5260b3)return!0x1;let _0x275562=_0x1e4a2f[_0x92334a(0x123)](_0x12d889),_0x26250a=_0x1e4a2f['get'](_0x32f094),_0x1303cd=_0x1e4a2f[_0x92334a(0x123)](_0x3d6fd9),_0x4e872f=_0x1e4a2f['get'](_0x189a5a),_0x52897e=_0x1e4a2f[_0x92334a(0x123)](K),{shapeType:_0xa1c1a7,shapeData:_0x21acfc}=_0x117963,_0x211e57=_0x117963[_0x92334a(0xed)]||_0x26e08e(),_0x565f51={'unitId':_0x39311c,'subUnitId':_0x5ef38f,'shapeId':_0x211e57,'shapeName':(_0x2c1b4b=_0x117963['shapeName'])==null?_0x3c2717(_0xa1c1a7,_0x52897e[_0x92334a(0x147)](_0x39311c,_0x5ef38f)):_0x2c1b4b,'shapeType':_0xa1c1a7,'shapeData':_0x21acfc},_0x507ce8=_0x117963[_0x92334a(0xf3)]||0xc8,_0x426032=_0x117963[_0x92334a(0x109)]||0xc8,_0x3783a4=0x0,_0x187198=0x0,_0xa421d={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x376cfb={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x117963[_0x92334a(0x172)]){let {x:_0x6dfedd,y:_0x5aa0c2}=_0x117963['position'];_0x3783a4=_0x6dfedd,_0x187198=_0x5aa0c2,_0xa421d=_0x5260b3[_0x92334a(0x182)](_0x6dfedd,_0x5aa0c2),_0x376cfb=_0x5260b3[_0x92334a(0x182)](_0x6dfedd+_0x507ce8,_0x5aa0c2+_0x426032);}else{if(_0x117963[_0x92334a(0x128)]){let {startRow:_0x2adc5b,startColumn:_0x592ef0}=_0x117963[_0x92334a(0x128)];_0xa421d={'row':_0x2adc5b,'rowOffset':0xa,'column':_0x592ef0,'columnOffset':0xa};let _0x1c28c2=_0x5260b3['getCellWithCoordByIndex'](_0x2adc5b,_0x592ef0);_0x3783a4=_0x1c28c2['startX']+0xa,_0x187198=_0x1c28c2['startY']+0xa,_0x376cfb=_0x5260b3[_0x92334a(0x182)](_0x3783a4+_0x507ce8,_0x187198+_0x426032);}}let _0x2fbd6f={'from':_0xa421d,'to':_0x376cfb},_0x288e61={'unitId':_0x39311c,'subUnitId':_0x5ef38f,'drawingId':_0x211e57,'drawingType':_0xcd5ef0[_0x92334a(0xe7)],'sheetTransform':_0x2fbd6f,'transform':{'left':_0x3783a4,'top':_0x187198,'width':_0x507ce8,'height':_0x426032},'data':{'shapeType':_0xa1c1a7,'shapeData':_0x21acfc},'axisAlignSheetTransform':_0x2fbd6f,'allowTransform':!0x0};_0x45bbc3(_0xa1c1a7)&&(_0x288e61[_0x92334a(0x116)][_0x92334a(0x15c)]=!0x1,_0x288e61[_0x92334a(0x116)]['rotateEnabled']=!0x1,_0x288e61[_0x92334a(0x116)][_0x92334a(0x10c)]=!0x1,_0x288e61[_0x92334a(0x116)][_0x92334a(0xf4)]=!0x1,_0x288e61[_0x92334a(0x181)][_0x92334a(0x146)]=!0x1,_0x288e61[_0x92334a(0x181)][_0x92334a(0x10c)]=!0x1,_0x288e61[_0x92334a(0x181)][_0x92334a(0xf4)]=!0x1);let {undo:_0x1fd36b,redo:_0x554cbe,objects:_0x37c855}=_0x4e872f[_0x92334a(0x113)]([_0x288e61]),_0x18be28=_0x1303cd[_0x92334a(0x117)]({'id':_0x12582e['id'],'params':{'unitId':_0x39311c,'drawings':[_0x288e61]}}),_0x136cdf=[...(_0x26a27d=_0x18be28[_0x92334a(0x153)])==null?[]:_0x26a27d,{'id':_0xb6a54f['id'],'params':{'unitId':_0x39311c,'subUnitId':_0x5ef38f,'op':_0x554cbe,'objects':_0x37c855,'type':_0x366655[_0x92334a(0x16e)]}},{'id':_0x2ec674['id'],'params':[_0x39311c]},..._0x18be28['redos'],{'id':q['id'],'params':_0x565f51}],_0x21f043=[{'id':J['id'],'params':{'unitId':_0x39311c,'subUnitId':_0x5ef38f,'shapeId':_0x211e57}},...(_0x43a825=_0x18be28[_0x92334a(0x148)])==null?[]:_0x43a825,{'id':_0xb6a54f['id'],'params':{'unitId':_0x39311c,'subUnitId':_0x5ef38f,'op':_0x1fd36b,'objects':_0x37c855,'type':_0x366655['REMOVE']}},{'id':_0x2ec674['id'],'params':[_0x39311c]},..._0x18be28['undos']];return _0x2d1a4f(_0x136cdf,_0x275562)[_0x92334a(0x132)]?(_0x26250a['pushUndoRedo']({'unitID':_0x39311c,'undoMutations':_0x21f043,'redoMutations':_0x136cdf}),!0x0):!0x1;}},X={'id':_0x24315c(0x15f),'type':_0x395a1d[_0x24315c(0x12d)],'handler':(_0x3884cc,_0x1eb60d)=>{const _0x2c325f=_0x24315c;let {unitId:_0x23fc26,subUnitId:_0x13f2a2,shapeType:_0x41acd7,shapeId:_0x1fd74b,shapeData:_0x60231a}=_0x1eb60d,_0x1e1c0a=_0x3884cc[_0x2c325f(0x123)](K)['getShapeModel'](_0x23fc26,_0x13f2a2,_0x1fd74b);return _0x1e1c0a&&(_0x41acd7!==void 0x0&&_0x1e1c0a[_0x2c325f(0xee)](_0x41acd7),_0x60231a&&(_0x1e1c0a==null||_0x1e1c0a[_0x2c325f(0x13a)](_0x60231a,!0x0))),!0x0;}},ee={'type':_0x395a1d[_0x24315c(0x129)],'id':_0x24315c(0x162),'handler':(_0x50517c,_0x4317a0)=>{const _0x49eab5=_0x24315c;var _0x57a3f9,_0x36ab24;let _0x32eb3c=_0x37d1c8(_0x50517c[_0x49eab5(0x123)](_0x14f0b3),_0x4317a0);if(!_0x32eb3c)return!0x1;let _0x462ead=_0x50517c[_0x49eab5(0x123)](_0x3dac38),{unitId:_0x14b07b,subUnitId:_0x4fe54a}=_0x32eb3c,_0x29aaf2=_0x462ead[_0x49eab5(0x133)](_0x14b07b,_0x4fe54a);if(!_0x29aaf2)return!0x1;let _0x5e365f=_0x50517c['get'](K),{shapeId:_0x25369d,shapeType:_0x17488f,shapeData:_0x711b51,position:_0x6361ed,width:_0x198717,height:_0x3fddfc}=_0x4317a0,_0x538a86=_0x5e365f[_0x49eab5(0xfe)](_0x14b07b,_0x4fe54a,_0x25369d);if(!_0x538a86)return!0x1;let _0x3897cc=_0x50517c[_0x49eab5(0x123)](_0x12d889),_0x15d4ce=_0x50517c[_0x49eab5(0x123)](_0x32f094),_0x3232d1=_0x50517c['get'](_0x3d6fd9),_0x28a5df=_0x50517c[_0x49eab5(0x123)](_0x189a5a),_0xf0c65f={'unitId':_0x14b07b,'subUnitId':_0x4fe54a,'shapeId':_0x25369d,'shapeType':_0x17488f,'shapeData':_0x711b51},_0x4a0080=_0x538a86['getShapeType'](),_0x34b559=_0x538a86[_0x49eab5(0x15a)](),{x:_0x1a81b2,y:_0x1ba525}=_0x6361ed,_0x2f92c4={'from':_0x29aaf2[_0x49eab5(0x182)](_0x1a81b2,_0x1ba525),'to':_0x29aaf2[_0x49eab5(0x182)](_0x1a81b2+_0x198717,_0x1ba525+_0x3fddfc)},_0x210b52={'unitId':_0x14b07b,'subUnitId':_0x4fe54a,'drawingId':_0x25369d,'drawingType':_0xcd5ef0['DRAWING_SHAPE'],'sheetTransform':_0x2f92c4,'transform':{'left':_0x1a81b2,'top':_0x1ba525,'width':_0x198717,'height':_0x3fddfc},'data':{'shapeType':_0x17488f,'shapeData':_0x711b51},'axisAlignSheetTransform':_0x2f92c4,'allowTransform':!0x0};_0x45bbc3(_0x17488f)&&(_0x210b52[_0x49eab5(0x116)][_0x49eab5(0x15c)]=!0x1,_0x210b52[_0x49eab5(0x116)][_0x49eab5(0x146)]=!0x1,_0x210b52['data'][_0x49eab5(0x10c)]=!0x1,_0x210b52[_0x49eab5(0x116)][_0x49eab5(0xf4)]=!0x1,_0x210b52[_0x49eab5(0x181)][_0x49eab5(0x146)]=!0x1,_0x210b52[_0x49eab5(0x181)]['resizeEnabled']=!0x1,_0x210b52[_0x49eab5(0x181)]['borderEnabled']=!0x1);let {undo:_0x5356e6,redo:_0x57012b,objects:_0x1cfd58}=_0x28a5df[_0x49eab5(0x143)]([_0x210b52]),_0x150554=_0x3232d1['onCommandExecute']({'id':_0x1ecf99['id'],'params':{'unitId':_0x14b07b,'drawings':[_0x210b52]}}),_0x4eeefa=[...(_0x57a3f9=_0x150554[_0x49eab5(0x153)])==null?[]:_0x57a3f9,{'id':_0xb6a54f['id'],'params':{'unitId':_0x14b07b,'subUnitId':_0x4fe54a,'op':_0x57012b,'objects':_0x1cfd58,'type':_0x366655['UPDATE']}},{'id':_0x2ec674['id'],'params':[_0x14b07b]},..._0x150554[_0x49eab5(0x16f)],{'id':X['id'],'params':_0xf0c65f}],_0x578ec6=[...(_0x36ab24=_0x150554[_0x49eab5(0x148)])==null?[]:_0x36ab24,{'id':_0xb6a54f['id'],'params':{'unitId':_0x14b07b,'subUnitId':_0x4fe54a,'op':_0x5356e6,'objects':_0x1cfd58,'type':_0x366655[_0x49eab5(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x14b07b]},..._0x150554['undos'],{'id':X['id'],'params':{'unitId':_0x14b07b,'subUnitId':_0x4fe54a,'shapeType':_0x4a0080,'shapeId':_0x25369d,'shapeData':_0x34b559}}];return _0x2d1a4f(_0x4eeefa,_0x3897cc)['result']?(_0x15d4ce[_0x49eab5(0x127)]({'unitID':_0x14b07b,'undoMutations':_0x578ec6,'redoMutations':_0x4eeefa}),!0x0):!0x1;}},Z={'type':_0x395a1d[_0x24315c(0x129)],'id':_0x24315c(0x164),'handler':(_0x33fe83,_0x14face)=>{const _0x1e6d55=_0x24315c;var _0x14d41a,_0x404b2a;let _0x194836=_0x37d1c8(_0x33fe83[_0x1e6d55(0x123)](_0x14f0b3),_0x14face);if(!_0x194836)return!0x1;let _0x2781c6=_0x33fe83[_0x1e6d55(0x123)](_0x3dac38),{unitId:_0x41b84b,subUnitId:_0x5b443c}=_0x194836,_0x16962f=_0x2781c6[_0x1e6d55(0x16c)](_0x41b84b,_0x5b443c);if(!_0x16962f)return!0x1;let _0x4e0522=_0x33fe83[_0x1e6d55(0x123)](_0x189a5a),{shapeId:_0x58ce04,flipH:_0x547ce3,flipV:_0x141732}=_0x14face,_0x1e8e35=_0x4e0522[_0x1e6d55(0x17a)]({'unitId':_0x41b84b,'subUnitId':_0x5b443c,'drawingId':_0x58ce04});if(!_0x1e8e35)return!0x1;let _0x2a86f6=_0x33fe83[_0x1e6d55(0x123)](K)[_0x1e6d55(0xfe)](_0x41b84b,_0x5b443c,_0x58ce04);if(!_0x2a86f6)return!0x1;let _0x2a71bb=_0x33fe83[_0x1e6d55(0x123)](_0x12d889),_0xab5832=_0x33fe83[_0x1e6d55(0x123)](_0x32f094),_0x5c5ca9=_0x33fe83[_0x1e6d55(0x123)](_0x3d6fd9),_0x5c8e5c={..._0x1e8e35[_0x1e6d55(0x181)]};_0x547ce3!==void 0x0&&(_0x5c8e5c[_0x1e6d55(0x105)]=!_0x5c8e5c[_0x1e6d55(0x105)]),_0x141732!==void 0x0&&(_0x5c8e5c[_0x1e6d55(0x15b)]=!_0x5c8e5c[_0x1e6d55(0x15b)]);let _0x3ebb29=_0x4f2943(_0x5c8e5c,_0x16962f),_0x51af3b=_0x58930a(_0x5c8e5c,_0x16962f),_0x19441b=_0x2a86f6['getShapeType'](),_0x3be835=_0x2a86f6[_0x1e6d55(0x15a)](),_0x1b32f0={'unitId':_0x41b84b,'subUnitId':_0x5b443c,'drawingId':_0x58ce04,'drawingType':_0xcd5ef0[_0x1e6d55(0xe7)],'sheetTransform':_0x3ebb29,'transform':_0x5c8e5c,'data':{'shapeType':_0x19441b,'shapeData':_0x3be835},'axisAlignSheetTransform':_0x51af3b,'allowTransform':!0x0},{undo:_0x3384d1,redo:_0x3fd125,objects:_0x4b1586}=_0x4e0522[_0x1e6d55(0x143)]([_0x1b32f0]),_0x4b1505=_0x5c5ca9[_0x1e6d55(0x117)]({'id':_0x1ecf99['id'],'params':{'unitId':_0x41b84b,'drawings':[_0x1b32f0]}}),_0x17b8e3=[...(_0x14d41a=_0x4b1505['preRedos'])==null?[]:_0x14d41a,{'id':_0xb6a54f['id'],'params':{'unitId':_0x41b84b,'subUnitId':_0x5b443c,'op':_0x3fd125,'objects':_0x4b1586,'type':_0x366655['UPDATE']}},{'id':_0x2ec674['id'],'params':[_0x41b84b]},..._0x4b1505[_0x1e6d55(0x16f)]],_0x273c9b=[...(_0x404b2a=_0x4b1505[_0x1e6d55(0x148)])==null?[]:_0x404b2a,{'id':_0xb6a54f['id'],'params':{'unitId':_0x41b84b,'subUnitId':_0x5b443c,'op':_0x3384d1,'objects':_0x4b1586,'type':_0x366655[_0x1e6d55(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x41b84b]},..._0x4b1505[_0x1e6d55(0x136)]];if(_0x45bbc3(_0x19441b)){let _0x83fd0d=_0x2a86f6[_0x1e6d55(0x179)]();if(_0x83fd0d){let _0x17c560={..._0x83fd0d};_0x17c560[_0x1e6d55(0x161)]=void 0x0,_0x17c560['to']=void 0x0,_0x17b8e3[_0x1e6d55(0x12f)]({'id':X['id'],'params':{'unitId':_0x41b84b,'subUnitId':_0x5b443c,'shapeId':_0x58ce04,'shapeType':_0x19441b,'shapeData':{'relation':_0x17c560}}}),_0x273c9b['push']({'id':X['id'],'params':{'unitId':_0x41b84b,'subUnitId':_0x5b443c,'shapeId':_0x58ce04,'shapeType':_0x19441b,'shapeData':{'relation':_0x83fd0d}}});}}return _0x2d1a4f(_0x17b8e3,_0x2a71bb)[_0x1e6d55(0x132)]?(_0xab5832['pushUndoRedo']({'unitID':_0x41b84b,'undoMutations':_0x273c9b,'redoMutations':_0x17b8e3}),!0x0):!0x1;}},Q={'type':_0x395a1d[_0x24315c(0x129)],'id':_0x24315c(0x14f),'handler':(_0x482f7d,_0x5c4434)=>{const _0x726d3e=_0x24315c;var _0xf9fe6d,_0x33cc50;let _0x41ac78=_0x37d1c8(_0x482f7d[_0x726d3e(0x123)](_0x14f0b3),_0x5c4434);if(!_0x41ac78)return!0x1;let _0x48e98f=_0x482f7d['get'](_0x3dac38),{unitId:_0x259cd3,subUnitId:_0x45b871}=_0x41ac78,_0x4d7ac7=_0x48e98f[_0x726d3e(0x16c)](_0x259cd3,_0x45b871);if(!_0x4d7ac7)return!0x1;let _0x3dad01=_0x482f7d[_0x726d3e(0x123)](_0x189a5a),{shapeId:_0x16bcaf,rotate:_0x2398b7}=_0x5c4434,_0x3e2668=_0x3dad01[_0x726d3e(0x17a)]({'unitId':_0x259cd3,'subUnitId':_0x45b871,'drawingId':_0x16bcaf});if(!_0x3e2668)return!0x1;let _0xf665c6=_0x482f7d[_0x726d3e(0x123)](K)[_0x726d3e(0xfe)](_0x259cd3,_0x45b871,_0x16bcaf);if(!_0xf665c6)return!0x1;let _0x368328=_0x482f7d[_0x726d3e(0x123)](_0x12d889),_0x13015d=_0x482f7d[_0x726d3e(0x123)](_0x32f094),_0xd5c8e=_0x482f7d[_0x726d3e(0x123)](_0x3d6fd9),_0x3bd1e4={..._0x3e2668[_0x726d3e(0x181)]};_0x2398b7!==void 0x0&&(_0x3bd1e4[_0x726d3e(0x104)]=(_0x3bd1e4[_0x726d3e(0x104)]||0x0)+_0x2398b7);let _0x494672=_0x4f2943(_0x3bd1e4,_0x4d7ac7),_0x2db895=_0x58930a(_0x3bd1e4,_0x4d7ac7),_0x1d1b2e=_0xf665c6[_0x726d3e(0x126)](),_0x4b7f7a=_0xf665c6['getShapeData'](),_0x29dd6e={'unitId':_0x259cd3,'subUnitId':_0x45b871,'drawingId':_0x16bcaf,'drawingType':_0xcd5ef0[_0x726d3e(0xe7)],'sheetTransform':_0x494672,'transform':_0x3bd1e4,'data':{'shapeType':_0x1d1b2e,'shapeData':_0x4b7f7a},'axisAlignSheetTransform':_0x2db895,'allowTransform':!0x0},{undo:_0x57485c,redo:_0x304b11,objects:_0x5ab21f}=_0x3dad01[_0x726d3e(0x143)]([_0x29dd6e]),_0x3919f9=_0xd5c8e[_0x726d3e(0x117)]({'id':_0x1ecf99['id'],'params':{'unitId':_0x259cd3,'drawings':[_0x29dd6e]}}),_0x4f13a7=[...(_0xf9fe6d=_0x3919f9[_0x726d3e(0x153)])==null?[]:_0xf9fe6d,{'id':_0xb6a54f['id'],'params':{'unitId':_0x259cd3,'subUnitId':_0x45b871,'op':_0x304b11,'objects':_0x5ab21f,'type':_0x366655[_0x726d3e(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x259cd3]},..._0x3919f9[_0x726d3e(0x16f)]],_0x501f25=[...(_0x33cc50=_0x3919f9[_0x726d3e(0x148)])==null?[]:_0x33cc50,{'id':_0xb6a54f['id'],'params':{'unitId':_0x259cd3,'subUnitId':_0x45b871,'op':_0x57485c,'objects':_0x5ab21f,'type':_0x366655[_0x726d3e(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x259cd3]},..._0x3919f9[_0x726d3e(0x136)]];return _0x2d1a4f(_0x4f13a7,_0x368328)[_0x726d3e(0x132)]?(_0x13015d[_0x726d3e(0x127)]({'unitID':_0x259cd3,'undoMutations':_0x501f25,'redoMutations':_0x4f13a7}),!0x0):!0x1;}},te={'type':_0x395a1d[_0x24315c(0x129)],'id':_0x24315c(0xf2),'handler':(_0x31e371,_0x248e34)=>{const _0x24d013=_0x24315c;var _0x198f00;let _0x351f63=_0x37d1c8(_0x31e371[_0x24d013(0x123)](_0x14f0b3),_0x248e34);if(!_0x351f63)return!0x1;let {unitId:_0x252320,subUnitId:_0x36bae7}=_0x351f63,{shapeId:_0x3c287c}=_0x248e34,_0x4a72e0=_0x31e371[_0x24d013(0x123)](K)['getShapeModel'](_0x252320,_0x36bae7,_0x3c287c);if(!_0x4a72e0)return!0x1;let _0x2d6232=_0x4a72e0[_0x24d013(0xef)](),_0xa33a25=(_0x198f00=_0x2d6232==null?void 0x0:_0x2d6232[_0x24d013(0x112)])==null?!0x0:_0x198f00,_0x53f305=!_0xa33a25,_0x2b697c=_0x31e371[_0x24d013(0x123)](_0x12d889),_0x3211ba=_0x31e371['get'](_0x32f094),_0x23536d={'unitId':_0x252320,'subUnitId':_0x36bae7,'shapeId':_0x3c287c,'shapeData':{'shapeText':{'isHorizontal':_0x53f305}}},_0x2c81a9={'unitId':_0x252320,'subUnitId':_0x36bae7,'shapeId':_0x3c287c,'shapeData':{'shapeText':{'isHorizontal':_0xa33a25}}},_0x58cf59=[{'id':X['id'],'params':_0x23536d}],_0x42631a=[{'id':X['id'],'params':_0x2c81a9}];return _0x2d1a4f(_0x58cf59,_0x2b697c)[_0x24d013(0x132)]?(_0x3211ba['pushUndoRedo']({'unitID':_0x252320,'undoMutations':_0x42631a,'redoMutations':_0x58cf59}),!0x0):!0x1;}},ne={'type':_0x395a1d[_0x24315c(0x129)],'id':_0x24315c(0xfc),'handler':(_0x15024b,_0x466f1c)=>{const _0x196d25=_0x24315c;var _0x2741b9,_0x3e8752,_0x359cee,_0x3a617c;let _0x5b2e33=_0x37d1c8(_0x15024b[_0x196d25(0x123)](_0x14f0b3),_0x466f1c);if(!_0x5b2e33)return!0x1;let _0x20376d=_0x15024b[_0x196d25(0x123)](_0x3dac38),{unitId:_0x408576,subUnitId:_0x3fcb77}=_0x5b2e33,_0x15b674=_0x20376d[_0x196d25(0x16c)](_0x408576,_0x3fcb77);if(!_0x15b674)return!0x1;let _0x230328=_0x15024b[_0x196d25(0x123)](_0x189a5a),{connectorShapeId:_0x1a4f88,width:_0x1e176a,height:_0x379e23,left:_0x3a7138,top:_0x46521e,flipX:_0x5bf3d3,flipY:_0x1adb59,rotation:_0x362bec,oldAdjustValues:_0x14d18b,newAdjustValues:_0x375af5,oldLineType:_0x3ce00c,newLineType:_0x2a61a5,oldRelation:_0x4938ad,newRelation:_0xe09d53}=_0x466f1c,_0x695d86=_0x230328['getDrawingByParam']({'unitId':_0x408576,'subUnitId':_0x3fcb77,'drawingId':_0x1a4f88});if(!_0x695d86)return!0x1;let _0xee11b3=_0x15024b[_0x196d25(0x123)](K)[_0x196d25(0xfe)](_0x408576,_0x3fcb77,_0x1a4f88);if(!_0xee11b3)return!0x1;let _0x13db62=_0x15024b[_0x196d25(0x123)](_0x12d889),_0xf8996c=_0x15024b['get'](_0x32f094),_0x1438a4=_0x15024b[_0x196d25(0x123)](_0x3d6fd9),_0x54cca6={..._0x695d86['transform'],'width':_0x1e176a,'height':_0x379e23,'left':_0x3a7138,'top':_0x46521e,'flipX':_0x5bf3d3,'flipY':_0x1adb59,'angle':(_0x2741b9=_0x362bec==null?(_0x3e8752=_0x695d86[_0x196d25(0x181)])==null?void 0x0:_0x3e8752[_0x196d25(0x104)]:_0x362bec)==null?0x0:_0x2741b9},_0x1d4280=_0x4f2943(_0x54cca6,_0x15b674),_0x40f961=_0x58930a(_0x54cca6,_0x15b674),_0x3e5b75=_0xee11b3[_0x196d25(0x126)](),_0x17225f=_0xee11b3[_0x196d25(0x15a)](),_0x4ef619={'unitId':_0x408576,'subUnitId':_0x3fcb77,'drawingId':_0x1a4f88,'drawingType':_0xcd5ef0['DRAWING_SHAPE'],'sheetTransform':_0x1d4280,'transform':_0x54cca6,'data':{'shapeType':_0x2a61a5||_0x3ce00c||_0x3e5b75,'shapeData':{..._0x17225f,'adjustValues':_0x375af5||_0x14d18b||(_0x17225f==null?void 0x0:_0x17225f['adjustValues']),'relation':_0xe09d53||_0x4938ad||(_0x17225f==null?void 0x0:_0x17225f[_0x196d25(0xf7)])}},'axisAlignSheetTransform':_0x40f961,'allowTransform':!0x0},{undo:_0x283ad4,redo:_0x23fa35,objects:_0x23f523}=_0x230328[_0x196d25(0x143)]([_0x4ef619]),_0x3a68d6=_0x1438a4[_0x196d25(0x117)]({'id':_0x1ecf99['id'],'params':{'unitId':_0x408576,'drawings':[_0x4ef619]}}),_0x21af47=[...(_0x359cee=_0x3a68d6[_0x196d25(0x153)])==null?[]:_0x359cee,{'id':_0xb6a54f['id'],'params':{'unitId':_0x408576,'subUnitId':_0x3fcb77,'op':_0x23fa35,'objects':_0x23f523,'type':_0x366655[_0x196d25(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x408576]},..._0x3a68d6['redos'],{'id':X['id'],'params':{'unitId':_0x408576,'subUnitId':_0x3fcb77,'shapeId':_0x1a4f88,'shapeType':_0x2a61a5,'shapeData':{'adjustValues':_0x375af5,'relation':_0xe09d53}}}],_0x3b6453=[...(_0x3a617c=_0x3a68d6[_0x196d25(0x148)])==null?[]:_0x3a617c,{'id':_0xb6a54f['id'],'params':{'unitId':_0x408576,'subUnitId':_0x3fcb77,'op':_0x283ad4,'objects':_0x23f523,'type':_0x366655[_0x196d25(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x408576]},..._0x3a68d6[_0x196d25(0x136)],{'id':X['id'],'params':{'unitId':_0x408576,'subUnitId':_0x3fcb77,'shapeId':_0x1a4f88,'shapeType':_0x3e5b75,'shapeData':{..._0x17225f,'adjustValues':_0x14d18b||(_0x17225f==null?void 0x0:_0x17225f[_0x196d25(0x144)]),'relation':_0x4938ad||(_0x17225f==null?void 0x0:_0x17225f[_0x196d25(0xf7)])}}}];return _0x2d1a4f(_0x21af47,_0x13db62)[_0x196d25(0x132)]?(_0xf8996c[_0x196d25(0x127)]({'unitID':_0x408576,'undoMutations':_0x3b6453,'redoMutations':_0x21af47}),!0x0):!0x1;}},re={'type':_0x395a1d[_0x24315c(0x129)],'id':'sheet.command.update-line-shape-resize','handler':(_0x49ab1b,_0x139581)=>{const _0x34eb40=_0x24315c;var _0x5dc58d,_0x33b024;let _0x56f6f5=_0x37d1c8(_0x49ab1b[_0x34eb40(0x123)](_0x14f0b3),_0x139581);if(!_0x56f6f5)return!0x1;let _0x25c6e5=_0x49ab1b['get'](_0x3dac38),{unitId:_0x1cfa76,subUnitId:_0x18f382}=_0x56f6f5,_0x5b2274=_0x25c6e5[_0x34eb40(0x16c)](_0x1cfa76,_0x18f382);if(!_0x5b2274)return!0x1;let _0x1daf6d=_0x49ab1b[_0x34eb40(0x123)](_0x189a5a),{shapeId:_0x48de14,width:_0x58c257,height:_0x2d07ca,left:_0x1f1b5f,top:_0x3da833,flipX:_0x1279e9,flipY:_0x9e9afa,angle:_0x5e935c,oldAdjustValues:_0x4dfae9,newAdjustValues:_0x399594,oldLineType:_0x247afd,newLineType:_0x9a85a6}=_0x139581,_0xbe3706=_0x1daf6d[_0x34eb40(0x17a)]({'unitId':_0x1cfa76,'subUnitId':_0x18f382,'drawingId':_0x48de14});if(!_0xbe3706)return!0x1;let _0x220436=_0x49ab1b[_0x34eb40(0x123)](K)[_0x34eb40(0xfe)](_0x1cfa76,_0x18f382,_0x48de14);if(!_0x220436)return!0x1;let _0x5a6345=_0x49ab1b[_0x34eb40(0x123)](_0x12d889),_0x23ea96=_0x49ab1b[_0x34eb40(0x123)](_0x32f094),_0x1c3f4d=_0x49ab1b[_0x34eb40(0x123)](_0x3d6fd9),_0x533d9c={..._0xbe3706[_0x34eb40(0x181)],'width':_0x58c257,'height':_0x2d07ca,'left':_0x1f1b5f,'top':_0x3da833,'flipX':_0x1279e9,'flipY':_0x9e9afa,'angle':_0x5e935c},_0x2ad213=_0x4f2943(_0x533d9c,_0x5b2274),_0x233e3b=_0x58930a(_0x533d9c,_0x5b2274),_0xd6b0f0=_0x220436['getShapeType'](),_0x5a6f71=_0x220436[_0x34eb40(0x15a)](),_0x187045={'unitId':_0x1cfa76,'subUnitId':_0x18f382,'drawingId':_0x48de14,'drawingType':_0xcd5ef0[_0x34eb40(0xe7)],'sheetTransform':_0x2ad213,'transform':_0x533d9c,'data':{'shapeType':_0x9a85a6||_0x247afd||_0xd6b0f0,'shapeData':{..._0x5a6f71,'adjustValues':_0x399594||_0x4dfae9||(_0x5a6f71==null?void 0x0:_0x5a6f71[_0x34eb40(0x144)])}},'axisAlignSheetTransform':_0x233e3b,'allowTransform':!0x0},{undo:_0x187125,redo:_0x445c4a,objects:_0x15381a}=_0x1daf6d['getBatchUpdateOp']([_0x187045]),_0x3ec909=_0x1c3f4d[_0x34eb40(0x117)]({'id':_0x1ecf99['id'],'params':{'unitId':_0x1cfa76,'drawings':[_0x187045]}}),_0x3e8563=[...(_0x5dc58d=_0x3ec909['preRedos'])==null?[]:_0x5dc58d,{'id':_0xb6a54f['id'],'params':{'unitId':_0x1cfa76,'subUnitId':_0x18f382,'op':_0x445c4a,'objects':_0x15381a,'type':_0x366655[_0x34eb40(0x100)]}},{'id':_0x2ec674['id'],'params':[_0x1cfa76]},..._0x3ec909[_0x34eb40(0x16f)],{'id':X['id'],'params':{'unitId':_0x1cfa76,'subUnitId':_0x18f382,'shapeId':_0x48de14,'shapeType':_0x9a85a6,'shapeData':{'adjustValues':_0x399594}}}],_0x1b38bd=[...(_0x33b024=_0x3ec909[_0x34eb40(0x148)])==null?[]:_0x33b024,{'id':_0xb6a54f['id'],'params':{'unitId':_0x1cfa76,'subUnitId':_0x18f382,'op':_0x187125,'objects':_0x15381a,'type':_0x366655['UPDATE']}},{'id':_0x2ec674['id'],'params':[_0x1cfa76]},..._0x3ec909[_0x34eb40(0x136)],{'id':X['id'],'params':{'unitId':_0x1cfa76,'subUnitId':_0x18f382,'shapeId':_0x48de14,'shapeType':_0xd6b0f0,'shapeData':{..._0x5a6f71,'adjustValues':_0x4dfae9||(_0x5a6f71==null?void 0x0:_0x5a6f71[_0x34eb40(0x144)])}}}];return _0x2d1a4f(_0x3e8563,_0x5a6345)[_0x34eb40(0x132)]?(_0x23ea96[_0x34eb40(0x127)]({'unitID':_0x1cfa76,'undoMutations':_0x1b38bd,'redoMutations':_0x3e8563}),!0x0):!0x1;}},ie={'id':'sheet.mutation.update-shape-type','type':_0x395a1d['MUTATION'],'handler':(_0x1228bd,_0x47f0d8)=>{const _0x4585a7=_0x24315c;let {unitId:_0xa0d2c5,subUnitId:_0x3f6f91,shapeType:_0x27607e,shapeId:_0x2293f7,shapeData:_0x34a923}=_0x47f0d8,_0x302f7b=_0x1228bd[_0x4585a7(0x123)](K)[_0x4585a7(0xfe)](_0xa0d2c5,_0x3f6f91,_0x2293f7);return _0x302f7b&&(_0x302f7b[_0x4585a7(0xee)](_0x27607e),_0x34a923&&(_0x302f7b==null||_0x302f7b[_0x4585a7(0x13a)](_0x34a923))),!0x0;}};var ae=_0x24315c(0x134),oe=_0x24315c(0x118);const se={};let ce=class extends _0x205493{constructor(_0x305bd5,_0x231a0c,_0x4ff6db,_0x512675,_0x1a771a){const _0x311f30=_0x24315c;super(),this[_0x311f30(0x173)]=_0x305bd5,this[_0x311f30(0x120)]=_0x231a0c,this[_0x311f30(0x115)]=_0x4ff6db,this[_0x311f30(0xea)]=_0x512675,this[_0x311f30(0x139)]=_0x1a771a,this[_0x311f30(0x13c)](),this[_0x311f30(0x11f)]();}['_initCommands'](){const _0x244553=_0x24315c;[Y,ee,Z,Q,te,ne,re,q,J,ie,X]['forEach'](_0x382c1e=>this['disposeWithMe'](this[_0x244553(0x173)][_0x244553(0x124)](_0x382c1e)));}['_initCommandInterceptor'](){const _0x3c4eab=_0x24315c;this[_0x3c4eab(0x138)](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0x289a06=>{const _0x1f150f=_0x3c4eab;if(_0x289a06['id']===_0x30f0fe['id']){let {drawings:_0x4b4ab9}=_0x289a06[_0x1f150f(0x13e)],_0x1b5ce6=_0x4b4ab9[_0x1f150f(0x168)](_0x53b1cd=>_0x53b1cd[_0x1f150f(0x11d)]===_0xcd5ef0[_0x1f150f(0xe7)]);if(_0x1b5ce6[_0x1f150f(0x142)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x521f61=[],_0xa4773d=[];return _0x1b5ce6[_0x1f150f(0x107)](_0x12b6d8=>{const _0x167caa=_0x1f150f;let {unitId:_0x210e6d,subUnitId:_0x39e27c,drawingId:_0x5afa4a}=_0x12b6d8,_0x479332=this[_0x167caa(0xea)][_0x167caa(0xfe)](_0x210e6d,_0x39e27c,_0x5afa4a);if(!_0x479332)throw TypeError(_0x167caa(0x159)+_0x479332);_0x521f61[_0x167caa(0x12f)]({'id':J['id'],'params':{'unitId':_0x210e6d,'subUnitId':_0x39e27c,'shapeId':_0x5afa4a}}),_0xa4773d[_0x167caa(0x12f)]({'id':q['id'],'params':{'unitId':_0x210e6d,'subUnitId':_0x39e27c,'shapeId':_0x5afa4a,'shapeType':_0x479332[_0x167caa(0x126)](),'shapeData':_0x479332[_0x167caa(0x15a)]()}});let _0x5bdbca=this[_0x167caa(0xea)]['getBasicShapeRelation'](_0x210e6d,_0x39e27c,_0x5afa4a);if(_0x5bdbca)for(let _0x219883 of _0x5bdbca){let _0x403be3=_0x219883[_0x167caa(0x16d)],_0x38eb0f=_0x219883[_0x167caa(0x176)],_0x146368=_0x38eb0f?{'from':void 0x0}:{'to':void 0x0},_0x54bdd9=_0x38eb0f?{'from':{'shapeId':_0x219883[_0x167caa(0xed)],'cxnIndex':_0x219883['cxnIndex']}}:{'to':{'shapeId':_0x219883[_0x167caa(0xed)],'cxnIndex':_0x219883['cxnIndex']}};_0x521f61[_0x167caa(0x12f)]({'id':X['id'],'params':{'unitId':_0x210e6d,'subUnitId':_0x39e27c,'shapeId':_0x403be3,'shapeData':{'relation':_0x146368}}}),_0xa4773d['push']({'id':X['id'],'params':{'unitId':_0x210e6d,'subUnitId':_0x39e27c,'shapeId':_0x403be3,'shapeData':{'relation':_0x54bdd9}}});}}),{'preRedos':_0x521f61,'redos':[],'preUndos':[],'undos':_0xa4773d};}if(_0x289a06['id']===_0x1ecf99['id']){let {drawings:_0x11fdd4}=_0x289a06[_0x1f150f(0x13e)],_0x27561c=_0x11fdd4['filter'](_0x2e9816=>_0x2e9816[_0x1f150f(0x11d)]===_0xcd5ef0['DRAWING_SHAPE']);if(_0x27561c[_0x1f150f(0x142)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x3bb089=[],_0x168888=[];for(let _0x5c7181 of _0x27561c){let {unitId:_0x41f9e7,subUnitId:_0xf9198,drawingId:_0x272056,transform:_0x323e1b}=_0x5c7181;if(!_0x41f9e7||!_0xf9198||!_0x272056||!_0x323e1b)continue;let _0x2da13b=this[_0x1f150f(0xea)][_0x1f150f(0xfe)](_0x41f9e7,_0xf9198,_0x272056);if(!_0x2da13b)throw TypeError('Fail\x20to\x20get\x20shape\x20model,\x20get:\x20'+_0x2da13b);if(_0x45bbc3(_0x2da13b[_0x1f150f(0x126)]())){let _0x724255=this[_0x1f150f(0xea)][_0x1f150f(0xff)](_0x41f9e7,_0xf9198,_0x272056);_0x724255&&(_0x3bb089['push']({'id':X['id'],'params':{'unitId':_0x41f9e7,'subUnitId':_0xf9198,'shapeId':_0x272056,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x168888[_0x1f150f(0x12f)]({'id':X['id'],'params':{'unitId':_0x41f9e7,'subUnitId':_0xf9198,'shapeId':_0x272056,'shapeData':{'relation':_0x724255}}}));}else{let _0x19e317=this[_0x1f150f(0xea)][_0x1f150f(0x163)](_0x41f9e7,_0xf9198,_0x272056);if(_0x19e317&&_0x19e317[_0x1f150f(0x142)]>0x0)for(let _0x33f25b of _0x19e317){let _0x4cdb60=_0x33f25b['lineShapeId'],_0x4f6d74=_0x33f25b[_0x1f150f(0x176)],_0x21629e=this[_0x1f150f(0xea)]['getShapeModel'](_0x41f9e7,_0xf9198,_0x4cdb60);if(!_0x21629e)continue;let _0x1e0b4f=_0x21629e[_0x1f150f(0xf9)](),_0x1e093c=_0x21629e[_0x1f150f(0x14c)]();_0x1e0b4f&&_0x1e093c?this['_addLineRerouteUpdates'](_0x41f9e7,_0xf9198,_0x4cdb60,_0x21629e,_0x1e0b4f,_0x1e093c,_0x3bb089,_0x168888,_0x272056,_0x323e1b):this[_0x1f150f(0xf5)](_0x41f9e7,_0xf9198,_0x4cdb60,_0x21629e,_0x4f6d74?_0x1e0b4f:_0x1e093c,_0x4f6d74,_0x3bb089,_0x168888,_0x272056,_0x323e1b);}}}return{'preRedos':[],'redos':_0x3bb089,'preUndos':_0x168888,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x24315c(0x150)](_0x24595a,_0x27f69b,_0x148fc6,_0x3b2931,_0x194b2f){const _0x8b3a83=_0x24315c;if(!_0x27f69b||!_0x148fc6)return null;let {shapeId:_0x115394,cxnIndex:_0x1e3a71}=_0x24595a,_0x1605a9=this[_0x8b3a83(0xea)][_0x8b3a83(0xfe)](_0x27f69b,_0x148fc6,_0x115394);if(!_0x1605a9)return null;let _0x4ae344=this['_drawingManagerService'][_0x8b3a83(0x17a)]({'unitId':_0x27f69b,'subUnitId':_0x148fc6,'drawingId':_0x115394});if(!(_0x4ae344!=null&&_0x4ae344['transform']))return null;let {left:_0x198aaf=0x0,top:_0x5f1e28=0x0,width:_0x117c2c=0x0,height:_0x4ccba4=0x0,flipX:_0xedb0de=!0x1,flipY:_0xfc2670=!0x1,angle:_0x8b0c41}=_0x4ae344[_0x8b3a83(0x181)];if(_0x194b2f&&_0x3b2931===_0x115394){var _0x55b549,_0x393d02,_0x1be053,_0x1d64f7,_0x48965f,_0x94f709,_0x4d190f;_0x198aaf=(_0x55b549=_0x194b2f['left'])==null?_0x198aaf:_0x55b549,_0x5f1e28=(_0x393d02=_0x194b2f['top'])==null?_0x5f1e28:_0x393d02,_0x117c2c=(_0x1be053=_0x194b2f[_0x8b3a83(0xf3)])==null?_0x117c2c:_0x1be053,_0x4ccba4=(_0x1d64f7=_0x194b2f['height'])==null?_0x4ccba4:_0x1d64f7,_0xedb0de=(_0x48965f=_0x194b2f['flipX'])==null?_0xedb0de:_0x48965f,_0xfc2670=(_0x94f709=_0x194b2f['flipY'])==null?_0xfc2670:_0x94f709,_0x8b0c41=(_0x4d190f=_0x194b2f[_0x8b3a83(0x104)])==null?_0x8b0c41:_0x4d190f;}_0x1605a9[_0x8b3a83(0x13d)]({'width':_0x117c2c,'height':_0x4ccba4});let _0x49968b=_0x1605a9[_0x8b3a83(0x11a)]()['find'](_0x35e9ff=>_0x35e9ff[_0x8b3a83(0x11e)]===_0x1e3a71);if(!_0x49968b)return null;let _0x402f22=_0xedb0de?_0x117c2c-_0x49968b['x']:_0x49968b['x'],_0x1eb4d3=_0xfc2670?_0x4ccba4-_0x49968b['y']:_0x49968b['y'];if(_0x8b0c41!==0x0&&_0x8b0c41!=null){let _0x113d3d=_0x8b0c41*Math['PI']/0xb4,_0x33c171=Math['cos'](_0x113d3d),_0x1ec104=Math[_0x8b3a83(0xec)](_0x113d3d),_0x1c48e8=_0x117c2c/0x2,_0x2eaa52=_0x4ccba4/0x2,_0x28fee3=_0x402f22-_0x1c48e8,_0x17612b=_0x1eb4d3-_0x2eaa52;_0x402f22=_0x1c48e8+_0x28fee3*_0x33c171-_0x17612b*_0x1ec104,_0x1eb4d3=_0x2eaa52+_0x28fee3*_0x1ec104+_0x17612b*_0x33c171;}_0x402f22+=_0x198aaf,_0x1eb4d3+=_0x5f1e28;let _0x14e81b=_0x49968b[_0x8b3a83(0x14a)]/0xea60;_0xedb0de&&(_0x14e81b=0xb4-_0x14e81b),_0xfc2670&&(_0x14e81b=-_0x14e81b),_0x14e81b+=_0x8b0c41||0x0,_0x14e81b=(_0x14e81b%0x168+0x168)%0x168;let _0x158b62=_0xee328b({'left':_0x198aaf,'top':_0x5f1e28,'width':_0x117c2c,'height':_0x4ccba4},_0x8b0c41||0x0);return{'point':{'x':_0x402f22,'y':_0x1eb4d3},'angle':_0x14e81b,'bounds':_0x158b62};}[_0x24315c(0xe5)](_0x467ae0,_0x2c34de,_0x1f17cc,_0x2d637a,_0x252478,_0x5f1e5b,_0x288159,_0xf02e1f,_0x2f0a13,_0x1a6568){const _0x1f2302=_0x24315c;let _0x34df8b=this[_0x1f2302(0x115)][_0x1f2302(0x16c)](_0x467ae0,_0x2c34de);if(!_0x34df8b)return;let _0x534d50=_0x2d637a[_0x1f2302(0x179)](),_0xb37424=_0x2d637a[_0x1f2302(0x122)](),_0x45c0a1={},_0xc1ed1e={};_0xb37424['forEach'](_0x42eb2d=>{const _0x41c1d4=_0x1f2302;let _0x5f397c=_0x2d637a[_0x41c1d4(0x155)](_0x42eb2d);_0xc1ed1e[_0x42eb2d]=_0x5f397c==null?0x0:_0x5f397c;});let _0x1ef877=this['_getConnectPointInfo'](_0x252478,_0x467ae0,_0x2c34de,_0x2f0a13,_0x1a6568),_0x3a047e=this[_0x1f2302(0x150)](_0x5f1e5b,_0x467ae0,_0x2c34de,_0x2f0a13,_0x1a6568);if(_0x1ef877&&_0x3a047e){let _0x54a9c2=_0x2d637a[_0x1f2302(0x126)](),_0xc8a074=_0x696e80(_0x1ef877,_0x3a047e,_0x54a9c2),_0x377062=_0x54a9c2;if(_0xc8a074){let _0x2ede50=_0x11cba5(_0xc8a074,_0x2d637a[_0x1f2302(0x126)]()),_0x2014a8=this[_0x1f2302(0x139)][_0x1f2302(0x177)](_0x467ae0,_0x2c34de);if(_0x2014a8&&_0x2014a8[_0x1f17cc]){let _0x3f423c=_0x2014a8[_0x1f17cc];_0x377062=_0x2ede50[_0x1f2302(0x10a)];for(let [_0x51f4c9,_0x17cac8]of Object[_0x1f2302(0x131)](_0x2ede50[_0x1f2302(0x144)]))_0x45c0a1[_0x51f4c9]=_0x17cac8;let _0xe020f6={..._0x3f423c[_0x1f2302(0x181)],'width':_0x2ede50[_0x1f2302(0x16a)][_0x1f2302(0xf3)],'height':_0x2ede50[_0x1f2302(0x16a)][_0x1f2302(0x109)],'left':_0x2ede50[_0x1f2302(0x16a)]['left'],'top':_0x2ede50['worldRect'][_0x1f2302(0xfb)],'flipX':_0x2ede50[_0x1f2302(0x16a)][_0x1f2302(0x105)],'flipY':_0x2ede50[_0x1f2302(0x16a)][_0x1f2302(0x15b)],'angle':_0x2ede50[_0x1f2302(0x165)]},_0x3e7b18=_0x4f2943(_0xe020f6,_0x34df8b),_0x46f757=_0x58930a(_0xe020f6,_0x34df8b),_0x58f680={'unitId':_0x467ae0,'subUnitId':_0x2c34de,'drawingType':_0xcd5ef0[_0x1f2302(0xe7)],'drawingId':_0x1f17cc,'transform':_0xe020f6,'sheetTransform':_0x3e7b18,'axisAlignSheetTransform':_0x46f757},{unitId:_0x2db575,subUnitId:_0x4358cc,undo:_0xf8710e,redo:_0x4bf341,objects:_0x4c26ab}=this[_0x1f2302(0x139)][_0x1f2302(0x143)]([_0x58f680]);_0x288159[_0x1f2302(0x12f)]({'id':_0xb6a54f['id'],'params':{'unitId':_0x2db575,'subUnitId':_0x4358cc,'op':_0x4bf341,'objects':_0x4c26ab,'type':_0x366655[_0x1f2302(0x100)]}}),_0xf02e1f[_0x1f2302(0x12f)]({'id':_0xb6a54f['id'],'params':{'unitId':_0x2db575,'subUnitId':_0x4358cc,'op':_0xf8710e,'objects':_0x4c26ab,'type':_0x366655[_0x1f2302(0x100)]}});}_0x2d637a['removeLinePoints']();}_0x288159['push']({'id':X['id'],'params':{'unitId':_0x467ae0,'subUnitId':_0x2c34de,'shapeId':_0x1f17cc,'shapeType':_0x377062,'shapeData':{'adjustValues':_0x45c0a1,'relation':_0x534d50}}}),_0xf02e1f[_0x1f2302(0x12f)]({'id':X['id'],'params':{'unitId':_0x467ae0,'subUnitId':_0x2c34de,'shapeId':_0x1f17cc,'shapeType':_0x54a9c2,'shapeData':{'adjustValues':_0xc1ed1e,'relation':_0x534d50}}});}}[_0x24315c(0xf5)](_0x4125c6,_0x4108e3,_0x3e95ac,_0x38d541,_0x457d39,_0x14cd57,_0x2203d8,_0x46fe46,_0x35a6df,_0x2ea272){const _0x362ef3=_0x24315c;var _0x120464;if(!_0x457d39)return;let _0x20fb58=this[_0x362ef3(0x115)]['getSkeleton'](_0x4125c6,_0x4108e3);if(!_0x20fb58)return;let _0x20d4a0=(_0x120464=this['_drawingManagerService'][_0x362ef3(0x17a)]({'unitId':_0x4125c6,'subUnitId':_0x4108e3,'drawingId':_0x35a6df}))==null?void 0x0:_0x120464['transform'];if(!_0x20d4a0)return;let _0xdc6c27=_0x20d4a0[_0x362ef3(0x151)]!==_0x2ea272[_0x362ef3(0x151)]||_0x20d4a0[_0x362ef3(0xfb)]!==_0x2ea272[_0x362ef3(0xfb)],_0x182554=_0x20d4a0[_0x362ef3(0xf3)]!==_0x2ea272[_0x362ef3(0xf3)]||_0x20d4a0['height']!==_0x2ea272[_0x362ef3(0x109)],_0x338097=_0x20d4a0['flipX']!==_0x2ea272[_0x362ef3(0x105)]||_0x20d4a0[_0x362ef3(0x15b)]!==_0x2ea272[_0x362ef3(0x15b)],_0x203758=_0x20d4a0['angle']!==_0x2ea272[_0x362ef3(0x104)];if(_0xdc6c27&&!_0x182554&&!_0x338097&&!_0x203758){var _0x1fc980,_0x5055a9,_0x43cbf7,_0x53ed90;let _0x4bae6b=((_0x1fc980=_0x2ea272['left'])==null?0x0:_0x1fc980)-((_0x5055a9=_0x20d4a0[_0x362ef3(0x151)])==null?0x0:_0x5055a9),_0x1517ec=((_0x43cbf7=_0x2ea272[_0x362ef3(0xfb)])==null?0x0:_0x43cbf7)-((_0x53ed90=_0x20d4a0[_0x362ef3(0xfb)])==null?0x0:_0x53ed90),_0x7d811f=this[_0x362ef3(0x139)]['getDrawingData'](_0x4125c6,_0x4108e3);if(_0x7d811f&&_0x7d811f[_0x3e95ac]){var _0x4f055f,_0x5626ea,_0x5cdbaa,_0x4c62d1;let _0x56d57f=_0x7d811f[_0x3e95ac],_0x32262e={..._0x56d57f[_0x362ef3(0x181)],'left':((_0x4f055f=(_0x5626ea=_0x56d57f[_0x362ef3(0x181)])==null?void 0x0:_0x5626ea[_0x362ef3(0x151)])==null?0x0:_0x4f055f)+_0x4bae6b,'top':((_0x5cdbaa=(_0x4c62d1=_0x56d57f[_0x362ef3(0x181)])==null?void 0x0:_0x4c62d1['top'])==null?0x0:_0x5cdbaa)+_0x1517ec},_0x15130f=_0x4f2943(_0x32262e,_0x20fb58),_0x497605=_0x58930a(_0x32262e,_0x20fb58),_0x463f71={'unitId':_0x4125c6,'subUnitId':_0x4108e3,'drawingType':_0xcd5ef0[_0x362ef3(0xe7)],'drawingId':_0x3e95ac,'transform':_0x32262e,'sheetTransform':_0x15130f,'axisAlignSheetTransform':_0x497605},{unitId:_0x3e67ae,subUnitId:_0x19ff27,undo:_0x152113,redo:_0x12899e,objects:_0x4dc288}=this['_drawingManagerService'][_0x362ef3(0x143)]([_0x463f71]);_0x2203d8['push']({'id':_0xb6a54f['id'],'params':{'unitId':_0x3e67ae,'subUnitId':_0x19ff27,'op':_0x12899e,'objects':_0x4dc288,'type':_0x366655[_0x362ef3(0x100)]}}),_0x46fe46[_0x362ef3(0x12f)]({'id':_0xb6a54f['id'],'params':{'unitId':_0x3e67ae,'subUnitId':_0x19ff27,'op':_0x152113,'objects':_0x4dc288,'type':_0x366655[_0x362ef3(0x100)]}});}}else{let _0x185f7e=_0x38d541[_0x362ef3(0xf9)](),_0x1acd93=_0x38d541[_0x362ef3(0x14c)]();this[_0x362ef3(0xe5)](_0x4125c6,_0x4108e3,_0x3e95ac,_0x38d541,_0x185f7e,_0x1acd93,_0x2203d8,_0x46fe46,_0x35a6df,_0x2ea272);}}};ce=G([W(0x0,_0x12d889),W(0x1,_0x396a8a(_0x3d6fd9)),W(0x2,_0x396a8a(_0x3dac38)),W(0x3,_0x396a8a(K)),W(0x4,_0x396a8a(_0x3f7bd4))],ce);let $=class extends _0x307e7b{constructor(_0xa3f5a=se,_0x4ba299,_0x3afd75,_0x4f7f35){const _0x4dc86b=_0x24315c;super(),this[_0x4dc86b(0x170)]=_0xa3f5a,this[_0x4dc86b(0xf8)]=_0x4ba299,this[_0x4dc86b(0x173)]=_0x3afd75,this[_0x4dc86b(0x119)]=_0x4f7f35;let {..._0x22d231}=_0x5db2e6({},se,this[_0x4dc86b(0x170)]);this[_0x4dc86b(0x119)][_0x4dc86b(0x149)](_0x4dc86b(0x121),_0x22d231);}[_0x24315c(0xfa)](){const _0x50551b=_0x24315c;let _0x4c2c22=this[_0x50551b(0xf8)];[[U],[K],[ce]][_0x50551b(0x107)](_0x4394e1=>_0x4c2c22[_0x50551b(0x145)](_0x4394e1)),_0x46da78(_0x4c2c22,[[K],[ce]]);}};H($,_0x24315c(0x156),_0xf89464['UNIVER_SHEET']),H($,_0x24315c(0xeb),_0x24315c(0x157)),H($,_0x24315c(0xf6),ae),H($,_0x24315c(0x160),oe),$=G([_0x173671(_0x1837ff),W(0x1,_0x396a8a(_0x1e351a)),W(0x2,_0x12d889),W(0x3,_0x5ad0ed)],$);function _0xb7bc(){const _0x1699fe=['sin','shapeId','setShapeType','getShapeTextData','sheet.mutation.remove-shape','hasShape','sheet.command.set-shape-text-vertical-toggle','width','borderEnabled','_addLineFollowShapeUpdates','packageName','relation','_injector','getStartConnectInfo','onStarting','top','sheet.command.update-connector-relation','_shapeModelManagerMap','getShapeModel','getLineShapeRelation','UPDATE','decorate','175178jpZVZp','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','angle','flipX','clear','forEach','shapeData','height','lineType','registerPluginResource','resizeEnabled','removeShape','326628DBCCVx','_resourcesManagerService','stringify','string','isHorizontal','getBatchAddOp','symbol','_sheetSkeletonService','data','onCommandExecute','1.0.0-alpha.3','_configService','getConnectionSiteList','_serializeShapeForUnit','fromJSON','drawingType','index','_initCommandInterceptor','_sheetInterceptorService','sheets-shape.config','getAdjustNames','get','registerCommand','object','getShapeType','pushUndoRedo','range','COMMAND','set','9PuoqpV','3121448kaqGfy','MUTATION','prototype','push','keys','entries','result','ensureSkeleton','@univerjs-pro/sheets-shape','default','undos','3394636HKIaFk','disposeWithMe','_drawingManagerService','setShapeData','sheet.command.insert-shape','_initCommands','updateContext','params','toJSON','isLineShape','sheet.mutation.insert-shape','length','getBatchUpdateOp','adjustValues','add','rotateEnabled','getShapeDisplayNames','preUndos','setConfig','ang','_linesIds','getEndConnectInfo','getShapeTypeById','addShape','sheet.command.set-shape-rotate','_getConnectPointInfo','left','dispose','preRedos','getShapeDataById','getAdjustValueByName','type','SHEET_SHAPE_PLUGIN','call','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','getShapeData','flipY','fill','values','384500XizpTB','sheet.mutation.update-shape-data','version','from','sheet.command.set-shape-drawing-data','getBasicShapeRelation','sheet.command.toggle-shape-flip','rotation','5HhUqEA','723460OLhgAY','filter','getBasicShapeType','worldRect','_deserializeShapeForUnit','getSkeleton','lineShapeId','INSERT','redos','_config','insertShape','position','_commandService','_shapes','delete','isFrom','getDrawingData','6bPnyrz','getShapeRelation','getDrawingByParam','getOwnPropertyDescriptor','_groupIds','_ensureShapeModelManager','toPrimitive','constructor','14603810YnCHYo','transform','getCellIndexAndOffsetByPosition','UNIVER_SHEET','_addLineRerouteUpdates','function','DRAWING_SHAPE','getId','defineProperty','_sheetsShapeService','pluginName'];_0xb7bc=function(){return _0x1699fe;};return _0xb7bc();}export{R as DEFAULT_SHAPE_HEIGHT,L as DEFAULT_SHAPE_WIDTH,Y as InsertShapeCommand,q as InsertSheetsShapeMutation,J as RemoveSheetsShapeMutation,ee as SetShapeDrawingDataCommand,Q as SetSheetsShapeRotateCommand,te as SetSheetsShapeTextVerticalToggleCommand,K as SheetsShapeService,Z as ToggleSheetsShapeFlipCommand,$ as UniverSheetsShapePlugin,ne as UpdateConnectorRelationCommand,re as UpdateLineShapeResizeCommand,X as UpdateSheetsShapeDataMutation,ie as UpdateSheetsShapeTypeMutation};
|
package/lib/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 _0x5523e0=_0x2aba;(function(_0x1b66b5,_0x376c4e){const _0xc56224=_0x2aba,_0x4f92be=_0x1b66b5();while(!![]){try{const _0x4a3954=-parseInt(_0xc56224(0x1f1))/0x1*(-parseInt(_0xc56224(0x23b))/0x2)+parseInt(_0xc56224(0x253))/0x3+parseInt(_0xc56224(0x222))/0x4+parseInt(_0xc56224(0x1e1))/0x5*(-parseInt(_0xc56224(0x258))/0x6)+-parseInt(_0xc56224(0x236))/0x7*(-parseInt(_0xc56224(0x206))/0x8)+-parseInt(_0xc56224(0x218))/0x9+-parseInt(_0xc56224(0x216))/0xa;if(_0x4a3954===_0x376c4e)break;else _0x4f92be['push'](_0x4f92be['shift']());}catch(_0x18c2a2){_0x4f92be['push'](_0x4f92be['shift']());}}}(_0x59b9,0x94035));import{ConnectorCoordinateTransform as _0x2c8646,ShapeArrowSizeEnum as _0xbd8ef1,ShapeArrowTypeEnum as _0x15f5e2,ShapeFillEnum as _0x43d314,ShapeGradientTypeEnum as _0x1afe24,ShapeLineCapEnum as _0x3e3d43,ShapeLineDashEnum as _0x35181a,ShapeLineJoinEnum as _0x119aef,ShapeLineTypeEnum as _0x3981c7,ShapeTypeEnum as _0x2c552c,computeConnectorRouteLayout as _0x35c7a4,getBasicShapeRotateBound as _0x9d2fc0,isConnectorShape as _0x47ce93,routeConnectorLineShape as _0x26078f}from'@univerjs-pro/engine-shape';import{FEnum as _0x310fbe}from'@univerjs/core/facade';import{DEFAULT_SHAPE_HEIGHT as _0x57dbe8,DEFAULT_SHAPE_WIDTH as _0x133010,InsertShapeCommand as _0x349e23,SetShapeDrawingDataCommand as _0x3363bb,SheetsShapeService as _0x5d7a9e,UpdateConnectorRelationCommand as _0x167b3e}from'@univerjs-pro/sheets-shape';import{DrawingTypeEnum as _0x3372c3,generateRandomId as _0x478e17}from'@univerjs/core';import{IDrawingManagerService as _0x2fcdbd}from'@univerjs/drawing';import{SheetSkeletonService as _0x1e583d,convertPositionCellToSheetOverGrid as _0x99372e}from'@univerjs/sheets';import{ISheetDrawingService as _0x5bfdfe,RemoveSheetDrawingCommand as _0x28db79}from'@univerjs/sheets-drawing';import{FWorksheet as _0x3ba9d2}from'@univerjs/sheets/facade';var k=class extends _0x310fbe{get['ShapeTypeEnum'](){return _0x2c552c;}get[_0x5523e0(0x24e)](){return _0x43d314;}get[_0x5523e0(0x1dc)](){return _0x1afe24;}get[_0x5523e0(0x1d8)](){return _0x3981c7;}get[_0x5523e0(0x1f3)](){return _0x35181a;}get[_0x5523e0(0x25a)](){return _0x3e3d43;}get['ShapeLineJoinEnum'](){return _0x119aef;}get[_0x5523e0(0x21c)](){return _0x15f5e2;}get[_0x5523e0(0x232)](){return _0xbd8ef1;}};_0x310fbe[_0x5523e0(0x23a)](k);function A(_0x234b46){'@babel/helpers - typeof';const _0x4bddd0=_0x5523e0;return A=typeof Symbol==_0x4bddd0(0x212)&&typeof Symbol[_0x4bddd0(0x223)]==_0x4bddd0(0x20b)?function(_0x46ce91){return typeof _0x46ce91;}:function(_0x4865a2){const _0xcbe5e3=_0x4bddd0;return _0x4865a2&&typeof Symbol==_0xcbe5e3(0x212)&&_0x4865a2['constructor']===Symbol&&_0x4865a2!==Symbol[_0xcbe5e3(0x237)]?_0xcbe5e3(0x20b):typeof _0x4865a2;},A(_0x234b46);}function j(_0x424949,_0x2d6a93){const _0x2e8329=_0x5523e0;if(A(_0x424949)!=_0x2e8329(0x205)||!_0x424949)return _0x424949;var _0x494530=_0x424949[Symbol[_0x2e8329(0x1f9)]];if(_0x494530!==void 0x0){var _0x562668=_0x494530['call'](_0x424949,_0x2d6a93||'default');if(A(_0x562668)!=_0x2e8329(0x205))return _0x562668;throw TypeError(_0x2e8329(0x24b));}return(_0x2d6a93===_0x2e8329(0x201)?String:Number)(_0x424949);}function M(_0x1db180){const _0x1333c4=_0x5523e0;var _0x228580=j(_0x1db180,_0x1333c4(0x201));return A(_0x228580)==_0x1333c4(0x20b)?_0x228580:_0x228580+'';}function N(_0x21dacf,_0x33bf68,_0x121c1e){const _0x14c499=_0x5523e0;return(_0x33bf68=M(_0x33bf68))in _0x21dacf?Object[_0x14c499(0x233)](_0x21dacf,_0x33bf68,{'value':_0x121c1e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x21dacf[_0x33bf68]=_0x121c1e,_0x21dacf;}var P=class{constructor(_0x3e1787,_0x448e23,_0x24fb1b,_0x3bcfe5){const _0x5a6e6c=_0x5523e0;N(this,_0x5a6e6c(0x1dd),void 0x0),N(this,_0x5a6e6c(0x1de),void 0x0),N(this,_0x5a6e6c(0x24c),void 0x0),N(this,'x',0x0),N(this,'y',0x0),N(this,'width',_0x133010),N(this,_0x5a6e6c(0x227),_0x57dbe8),N(this,_0x5a6e6c(0x1fd),void 0x0),N(this,_0x5a6e6c(0x1f0),{}),N(this,'_injector',void 0x0),this[_0x5a6e6c(0x1dd)]=_0x3e1787,this[_0x5a6e6c(0x1de)]=_0x448e23,this[_0x5a6e6c(0x24c)]=_0x24fb1b||_0x478e17(),this[_0x5a6e6c(0x200)]=_0x3bcfe5;}[_0x5523e0(0x1f5)](_0x2e7b0e,_0x1198bb,_0x315892,_0x2fcdc2){const _0x23e074=_0x5523e0;let _0x336175=this[_0x23e074(0x200)]['get'](_0x1e583d)['ensureSkeleton'](this[_0x23e074(0x1dd)],this[_0x23e074(0x1de)]);if(!_0x336175)throw Error(_0x23e074(0x245)+this['unitId']+_0x23e074(0x203)+this['subUnitId']+'\x20not\x20found');let {transform:_0x3b6860}=_0x99372e(this[_0x23e074(0x1dd)],this[_0x23e074(0x1de)],{'row':_0x2e7b0e,'column':_0x1198bb,'rowOffset':_0x315892,'columnOffset':_0x2fcdc2},0x1,0x1,_0x336175);return this['x']=_0x3b6860[_0x23e074(0x208)],this['y']=_0x3b6860[_0x23e074(0x255)],this;}[_0x5523e0(0x239)](_0x29e5fc,_0x3903e7){return this['x']=_0x29e5fc,this['y']=_0x3903e7,this;}[_0x5523e0(0x1f7)](_0x243df4){return this['shapeType']=_0x243df4,this;}[_0x5523e0(0x220)](_0x4bc536){const _0x3df2a3=_0x5523e0;return _0x4bc536[_0x3df2a3(0x1fd)]&&this[_0x3df2a3(0x1f7)](_0x4bc536[_0x3df2a3(0x1fd)]),this['shapeData']={..._0x4bc536},this;}[_0x5523e0(0x1ff)](_0x370b00,_0x469d0b){const _0x51b252=_0x5523e0;return this[_0x51b252(0x1f0)][_0x51b252(0x1d7)]||(this[_0x51b252(0x1f0)][_0x51b252(0x1d7)]={}),this[_0x51b252(0x1f0)][_0x51b252(0x1d7)]['fillType']=_0x43d314[_0x51b252(0x1ec)],_0x370b00!==void 0x0&&(this[_0x51b252(0x1f0)][_0x51b252(0x1d7)][_0x51b252(0x211)]=_0x370b00),_0x469d0b!==void 0x0&&(this[_0x51b252(0x1f0)]['fill']['opacity']=_0x469d0b),this;}[_0x5523e0(0x228)](_0x34621d,_0x109d2f,_0xb8b8b2){const _0x4bc870=_0x5523e0;if(_0x109d2f===void 0x0||_0x109d2f['length']===0x0)throw Error(_0x4bc870(0x257));return this[_0x4bc870(0x1f0)][_0x4bc870(0x1d7)]||(this[_0x4bc870(0x1f0)][_0x4bc870(0x1d7)]={}),this['shapeData'][_0x4bc870(0x1d7)][_0x4bc870(0x1e3)]=_0x109d2f,this[_0x4bc870(0x1f0)][_0x4bc870(0x1d7)][_0x4bc870(0x256)]=_0x43d314[_0x4bc870(0x204)],this[_0x4bc870(0x1f0)][_0x4bc870(0x1d7)]['gradientType']=_0x34621d,_0xb8b8b2!==void 0x0&&(this[_0x4bc870(0x1f0)][_0x4bc870(0x1d7)][_0x4bc870(0x1d9)]=_0xb8b8b2),this;}[_0x5523e0(0x1df)](){const _0x360a37=_0x5523e0;return this['shapeData']['fill']={'fillType':_0x43d314[_0x360a37(0x23e)]},this;}[_0x5523e0(0x1e6)](_0x1a4f61){const _0xdf2320=_0x5523e0;return this[_0xdf2320(0x1f0)][_0xdf2320(0x22d)]||(this[_0xdf2320(0x1f0)][_0xdf2320(0x22d)]={}),this[_0xdf2320(0x1f0)][_0xdf2320(0x22d)]['color']=_0x1a4f61,this;}[_0x5523e0(0x21d)](_0x37df85){const _0x11f2ed=_0x5523e0;return this['shapeData'][_0x11f2ed(0x22d)]||(this[_0x11f2ed(0x1f0)][_0x11f2ed(0x22d)]={}),this['shapeData'][_0x11f2ed(0x22d)][_0x11f2ed(0x21b)]=_0x37df85,this;}[_0x5523e0(0x23f)](_0x524e0f){const _0x4ec96d=_0x5523e0;return this[_0x4ec96d(0x1f0)][_0x4ec96d(0x22d)]||(this[_0x4ec96d(0x1f0)]['stroke']={}),this['shapeData'][_0x4ec96d(0x22d)][_0x4ec96d(0x231)]=_0x524e0f,this;}[_0x5523e0(0x219)](_0x5e233d){const _0x2ef107=_0x5523e0;return this['shapeData'][_0x2ef107(0x22d)]||(this['shapeData'][_0x2ef107(0x22d)]={}),this[_0x2ef107(0x1f0)][_0x2ef107(0x22d)][_0x2ef107(0x1ed)]=_0x5e233d,this;}['setStrokeLineCapType'](_0x56527e){const _0x2b2abd=_0x5523e0;return this[_0x2b2abd(0x1f0)][_0x2b2abd(0x22d)]||(this[_0x2b2abd(0x1f0)][_0x2b2abd(0x22d)]={}),this[_0x2b2abd(0x1f0)][_0x2b2abd(0x22d)]['capType']=_0x56527e,this;}['setStrokeOpacity'](_0x3dff69){const _0x1fee7e=_0x5523e0;return this[_0x1fee7e(0x1f0)]['stroke']||(this[_0x1fee7e(0x1f0)][_0x1fee7e(0x22d)]={}),this[_0x1fee7e(0x1f0)][_0x1fee7e(0x22d)][_0x1fee7e(0x1e0)]=_0x3dff69,this;}[_0x5523e0(0x21f)](_0x11ec54){const _0x24cd1f=_0x5523e0;return this[_0x24cd1f(0x1f0)][_0x24cd1f(0x22d)]||(this[_0x24cd1f(0x1f0)][_0x24cd1f(0x22d)]={}),this[_0x24cd1f(0x1f0)][_0x24cd1f(0x22d)][_0x24cd1f(0x224)]=_0x11ec54,this;}[_0x5523e0(0x226)](_0x1d40a2){const _0x54589e=_0x5523e0;return this[_0x54589e(0x21b)]=_0x1d40a2,this;}[_0x5523e0(0x25b)](_0x236e7e){return this['height']=_0x236e7e,this;}[_0x5523e0(0x20f)](){const _0x14d184=_0x5523e0;let _0x3e8143=this['_injector'][_0x14d184(0x1e5)](_0x5d7a9e)['getShapeModel'](this[_0x14d184(0x1dd)],this[_0x14d184(0x1de)],this[_0x14d184(0x24c)]);return _0x3e8143?_0x47ce93(_0x3e8143[_0x14d184(0x22f)]()):this[_0x14d184(0x1fd)]?_0x47ce93(this[_0x14d184(0x1fd)]):!0x1;}[_0x5523e0(0x1db)](){const _0x49a28b=_0x5523e0;let _0x9669e3=this[_0x49a28b(0x200)][_0x49a28b(0x1e5)](_0x5d7a9e)[_0x49a28b(0x21a)](this[_0x49a28b(0x1dd)],this['subUnitId'],this[_0x49a28b(0x24c)]);if(!_0x9669e3)return[];let _0x30be06=this[_0x49a28b(0x200)][_0x49a28b(0x1e5)](_0x2fcdbd)[_0x49a28b(0x20c)]({'unitId':this['unitId'],'subUnitId':this[_0x49a28b(0x1de)],'drawingId':this[_0x49a28b(0x24c)]});if(!(_0x30be06!=null&&_0x30be06[_0x49a28b(0x24f)]))return[];let {width:_0x2e0f26=0x0,height:_0x2bb2ca=0x0}=_0x30be06[_0x49a28b(0x24f)];return _0x9669e3[_0x49a28b(0x248)]({'width':_0x2e0f26,'height':_0x2bb2ca}),_0x9669e3[_0x49a28b(0x1fc)]();}['getAdjustPoints'](){const _0x48b25e=_0x5523e0;let _0x230bf8=this['_injector']['get'](_0x5d7a9e)['getShapeModel'](this[_0x48b25e(0x1dd)],this[_0x48b25e(0x1de)],this[_0x48b25e(0x24c)]);if(!_0x230bf8)return[];let _0x5b59a2=this[_0x48b25e(0x200)][_0x48b25e(0x1e5)](_0x2fcdbd)[_0x48b25e(0x20c)]({'unitId':this[_0x48b25e(0x1dd)],'subUnitId':this[_0x48b25e(0x1de)],'drawingId':this['drawId']});if(!(_0x5b59a2!=null&&_0x5b59a2[_0x48b25e(0x24f)]))return[];let {width:_0x5cac7d=0x0,height:_0x49641c=0x0}=_0x5b59a2['transform'];return _0x230bf8[_0x48b25e(0x248)]({'width':_0x5cac7d,'height':_0x49641c}),_0x230bf8[_0x48b25e(0x1fb)]();}[_0x5523e0(0x1eb)](){const _0x4aa196=_0x5523e0;let _0x25983f=this[_0x4aa196(0x200)][_0x4aa196(0x1e5)](_0x5d7a9e)['getShapeModel'](this['unitId'],this['subUnitId'],this[_0x4aa196(0x24c)]);if(!_0x25983f||!_0x47ce93(_0x25983f[_0x4aa196(0x22f)]()))return[];let _0x361be5=this[_0x4aa196(0x200)][_0x4aa196(0x1e5)](_0x2fcdbd)[_0x4aa196(0x20c)]({'unitId':this[_0x4aa196(0x1dd)],'subUnitId':this[_0x4aa196(0x1de)],'drawingId':this[_0x4aa196(0x24c)]});if(!(_0x361be5!=null&&_0x361be5['transform']))return[];let {width:_0x5d2ce9=0x0,height:_0x4b6d1b=0x0}=_0x361be5['transform'];return _0x25983f[_0x4aa196(0x248)]({'width':_0x5d2ce9,'height':_0x4b6d1b}),_0x25983f[_0x4aa196(0x1eb)]();}['getStartConnectInfo'](){const _0x24803a=_0x5523e0;var _0x4cfdde;let _0x4483c7=this[_0x24803a(0x200)][_0x24803a(0x1e5)](_0x5d7a9e)['getShapeModel'](this[_0x24803a(0x1dd)],this[_0x24803a(0x1de)],this[_0x24803a(0x24c)]);return _0x4483c7?(_0x4cfdde=_0x4483c7[_0x24803a(0x20e)]())==null?null:_0x4cfdde:null;}[_0x5523e0(0x242)](){const _0x489fef=_0x5523e0;var _0x24a86d;let _0x204581=this['_injector'][_0x489fef(0x1e5)](_0x5d7a9e)['getShapeModel'](this[_0x489fef(0x1dd)],this[_0x489fef(0x1de)],this[_0x489fef(0x24c)]);return _0x204581?(_0x24a86d=_0x204581['getEndConnectInfo']())==null?null:_0x24a86d:null;}[_0x5523e0(0x250)](){const _0x38dd3b=_0x5523e0;var _0x103da9,_0x1d221e;if(!this['shapeType'])throw Error(_0x38dd3b(0x20a));if(this['x']===0x0||this['y']===0x0){let _0x131088=this[_0x38dd3b(0x200)][_0x38dd3b(0x1e5)](_0x1e583d)[_0x38dd3b(0x217)](this[_0x38dd3b(0x1dd)],this[_0x38dd3b(0x1de)]);if(!_0x131088)throw Error(_0x38dd3b(0x245)+this[_0x38dd3b(0x1dd)]+_0x38dd3b(0x203)+this[_0x38dd3b(0x1de)]+_0x38dd3b(0x210));let {transform:_0x187de0}=_0x99372e(this[_0x38dd3b(0x1dd)],this['subUnitId'],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x131088);this['x']=this['x']>0x0?this['x']:_0x187de0[_0x38dd3b(0x208)],this['y']=this['y']>0x0?this['y']:_0x187de0[_0x38dd3b(0x255)];}return this[_0x38dd3b(0x21b)]=(_0x103da9=this[_0x38dd3b(0x21b)])==null?_0x133010:_0x103da9,this[_0x38dd3b(0x227)]=(_0x1d221e=this['height'])==null?_0x57dbe8:_0x1d221e,{'unitId':this[_0x38dd3b(0x1dd)],'subUnitId':this[_0x38dd3b(0x1de)],'shapeId':this['drawId'],'shapeType':this[_0x38dd3b(0x1fd)],'shapeData':Object[_0x38dd3b(0x246)](this[_0x38dd3b(0x1f0)])[_0x38dd3b(0x202)]>0x0?this[_0x38dd3b(0x1f0)]:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x38dd3b(0x227)]};}['getShapeId'](){const _0x4e20a0=_0x5523e0;return this[_0x4e20a0(0x24c)];}[_0x5523e0(0x22f)](){const _0x77626=_0x5523e0;return this[_0x77626(0x1fd)];}[_0x5523e0(0x1e9)](){const _0x34984b=_0x5523e0;return this[_0x34984b(0x1f0)];}[_0x5523e0(0x209)](){return{'x':this['x'],'y':this['y']};}['getSize'](){const _0x341daf=_0x5523e0;return{'width':this[_0x341daf(0x21b)],'height':this[_0x341daf(0x227)]};}},F=class extends P{constructor(_0x2124d3,_0x2c2bc6,_0x3fb5b7,_0x121577){const _0x370c87=_0x5523e0;super(_0x2124d3,_0x2c2bc6,_0x3fb5b7,_0x121577),N(this,_0x370c87(0x1f0),{});}[_0x5523e0(0x1f7)](_0x4b71d0){const _0x47b0ab=_0x5523e0;if(!_0x47ce93(_0x4b71d0))throw Error(_0x47b0ab(0x1ef)+_0x4b71d0+_0x47b0ab(0x24a));return super[_0x47b0ab(0x1f7)](_0x4b71d0),this;}[_0x5523e0(0x241)](_0x38a9f9){const _0x3612c5=_0x5523e0;var _0x1f1f95,_0x333d25;return(_0x1f1f95=this[_0x3612c5(0x1f0)])!=null&&_0x1f1f95['ln']||(this[_0x3612c5(0x1f0)]['ln']={}),!((_0x333d25=this[_0x3612c5(0x1f0)])==null||(_0x333d25=_0x333d25['ln'])==null)&&_0x333d25[_0x3612c5(0x1e4)]||(this[_0x3612c5(0x1f0)]['ln'][_0x3612c5(0x1e4)]={}),this[_0x3612c5(0x1f0)]['ln'][_0x3612c5(0x1e4)][_0x3612c5(0x23c)]=_0x38a9f9,this;}[_0x5523e0(0x22a)](_0x1238b2){const _0x336e0c=_0x5523e0;var _0x3359b2,_0x162c97;return(_0x3359b2=this[_0x336e0c(0x1f0)])!=null&&_0x3359b2['ln']||(this[_0x336e0c(0x1f0)]['ln']={}),!((_0x162c97=this[_0x336e0c(0x1f0)])==null||(_0x162c97=_0x162c97['ln'])==null)&&_0x162c97[_0x336e0c(0x1e8)]||(this[_0x336e0c(0x1f0)]['ln'][_0x336e0c(0x1e8)]={}),this[_0x336e0c(0x1f0)]['ln']['endArrow'][_0x336e0c(0x23c)]=_0x1238b2,this;}[_0x5523e0(0x229)](_0x37efcc){const _0x304e44=_0x5523e0;var _0x35ce02,_0x50b40f;return(_0x35ce02=this[_0x304e44(0x1f0)])!=null&&_0x35ce02['ln']||(this['shapeData']['ln']={}),!((_0x50b40f=this[_0x304e44(0x1f0)])==null||(_0x50b40f=_0x50b40f['ln'])==null)&&_0x50b40f[_0x304e44(0x1e4)]||(this['shapeData']['ln'][_0x304e44(0x1e4)]={}),this[_0x304e44(0x1f0)]['ln']['startArrow']['size']=_0x37efcc,this;}[_0x5523e0(0x1f4)](_0x35a2da){const _0x3e5cd8=_0x5523e0;var _0x42639e,_0x238f0d;return(_0x42639e=this[_0x3e5cd8(0x1f0)])!=null&&_0x42639e['ln']||(this['shapeData']['ln']={}),!((_0x238f0d=this['shapeData'])==null||(_0x238f0d=_0x238f0d['ln'])==null)&&_0x238f0d['endArrow']||(this[_0x3e5cd8(0x1f0)]['ln'][_0x3e5cd8(0x1e8)]={}),this['shapeData']['ln'][_0x3e5cd8(0x1e8)]['size']=_0x35a2da,this;}[_0x5523e0(0x250)](){const _0x481078=_0x5523e0;return super[_0x481078(0x250)]();}[_0x5523e0(0x242)](){const _0x54f62b=_0x5523e0;var _0x5f34a3;return((_0x5f34a3=this['shapeData'])==null||(_0x5f34a3=_0x5f34a3[_0x54f62b(0x1fe)])==null?void 0x0:_0x5f34a3['to'])||null;}[_0x5523e0(0x20e)](){const _0x5f2a69=_0x5523e0;var _0x335f3c;return((_0x335f3c=this[_0x5f2a69(0x1f0)])==null||(_0x335f3c=_0x335f3c[_0x5f2a69(0x1fe)])==null?void 0x0:_0x335f3c['from'])||null;}};function I(_0xfc613b,_0x3656a0,_0xb041d4,_0x2135b2,_0x565acf,_0x3a9b2a){const _0x31abb0=_0x5523e0;let _0x7b6980=_0x565acf[_0x31abb0(0x21a)](_0xfc613b,_0x3656a0,_0xb041d4);if(!_0x7b6980)return null;let _0x15caec=_0x3a9b2a[_0x31abb0(0x20c)]({'unitId':_0xfc613b,'subUnitId':_0x3656a0,'drawingId':_0xb041d4});if(!(_0x15caec!=null&&_0x15caec[_0x31abb0(0x24f)]))return null;let {left:_0x3b95e2=0x0,top:_0x540750=0x0,width:_0xbec466=0x0,height:_0x2d4501=0x0,flipX:_0x5737d8=!0x1,flipY:_0x5767ba=!0x1,angle:_0x8bb293}=_0x15caec[_0x31abb0(0x24f)];_0x7b6980[_0x31abb0(0x248)]({'width':_0xbec466,'height':_0x2d4501});let _0x2745fe=_0x7b6980[_0x31abb0(0x1fc)]()[_0x31abb0(0x25c)](_0x13134f=>_0x13134f[_0x31abb0(0x1fa)]===_0x2135b2);if(!_0x2745fe)return null;let _0x2cc2f8=_0x5737d8?_0xbec466-_0x2745fe['x']:_0x2745fe['x'],_0x514467=_0x5767ba?_0x2d4501-_0x2745fe['y']:_0x2745fe['y'];if(_0x8bb293&&_0x8bb293!==0x0){let _0x4e5096=_0x8bb293*Math['PI']/0xb4,_0x44c016=Math['cos'](_0x4e5096),_0x2b6eb0=Math[_0x31abb0(0x254)](_0x4e5096),_0x27cc43=_0xbec466/0x2,_0x4eea1a=_0x2d4501/0x2,_0xe704bd=_0x2cc2f8-_0x27cc43,_0x21b1aa=_0x514467-_0x4eea1a;_0x2cc2f8=_0x27cc43+_0xe704bd*_0x44c016-_0x21b1aa*_0x2b6eb0,_0x514467=_0x4eea1a+_0xe704bd*_0x2b6eb0+_0x21b1aa*_0x44c016;}_0x2cc2f8+=_0x3b95e2,_0x514467+=_0x540750;let _0x2b0faa=_0x2745fe[_0x31abb0(0x215)]/0xea60;_0x5737d8&&(_0x2b0faa=0xb4-_0x2b0faa),_0x5767ba&&(_0x2b0faa=-_0x2b0faa),_0x2b0faa+=_0x8bb293||0x0,_0x2b0faa=(_0x2b0faa%0x168+0x168)%0x168;let _0x503729=_0x9d2fc0({'left':_0x3b95e2,'top':_0x540750,'width':_0xbec466,'height':_0x2d4501},_0x8bb293||0x0);return{'point':{'x':_0x2cc2f8,'y':_0x514467},'angle':_0x2b0faa,'bounds':_0x503729};}function L(_0xe2550,_0x252f2e){const _0x334749=_0x5523e0;let _0x232f11=_0x252f2e['x']-_0xe2550['x'],_0x470ee7=_0x252f2e['y']-_0xe2550['y'];return Math[_0x334749(0x230)](_0x232f11)>=Math['abs'](_0x470ee7)?_0x232f11>=0x0?0xb4:0x0:_0x470ee7>=0x0?0x10e:0x5a;}function R(_0x36880e,_0x487852,_0x50d0fb,_0x355690,_0x4bf932,_0xa176fb,_0x24fa3d){const _0x4afe69=_0x5523e0;let _0x4ca2da=_0xa176fb['getShapeModel'](_0x36880e,_0x487852,_0x50d0fb);if(!_0x4ca2da)return null;let _0xcea9af=_0x24fa3d[_0x4afe69(0x20c)]({'unitId':_0x36880e,'subUnitId':_0x487852,'drawingId':_0x50d0fb});if(!(_0xcea9af!=null&&_0xcea9af['transform']))return null;let {left:_0x1db18b=0x0,top:_0x555e1b=0x0,width:_0x3ef2d6=0x0,height:_0x1cac70=0x0,flipX:_0x6212ab=!0x1,flipY:_0x20ebbf=!0x1}=_0xcea9af[_0x4afe69(0x24f)];_0x4ca2da[_0x4afe69(0x248)]({'width':_0x3ef2d6,'height':_0x1cac70});let _0x121124=_0x4ca2da[_0x4afe69(0x1eb)]();if(_0x121124[_0x4afe69(0x202)]<0x2)return null;let _0xa506b6=_0x355690?_0x121124[0x0]:_0x121124[_0x121124['length']-0x1],_0x90d43b=new _0x2c8646({'left':_0x1db18b,'top':_0x555e1b,'width':_0x3ef2d6,'height':_0x1cac70,'flipX':_0x6212ab,'flipY':_0x20ebbf})[_0x4afe69(0x1f8)](_0xa506b6);return{'point':_0x90d43b,'angle':L(_0x4bf932[_0x4afe69(0x244)],_0x90d43b),'bounds':{'left':_0x90d43b['x'],'top':_0x90d43b['y'],'width':0x0,'height':0x0}};}function _0x2aba(_0x103f8d,_0x2b8068){_0x103f8d=_0x103f8d-0x1d7;const _0x59b991=_0x59b9();let _0x2aba6e=_0x59b991[_0x103f8d];return _0x2aba6e;}var z=class extends _0x3ba9d2{async['insertShape'](_0x375502){const _0x315126=_0x5523e0;let {unitId:_0x2d1e54,subUnitId:_0x4c0f91,shapeId:_0x35b94e,shapeType:_0x5ad9c8,shapeData:_0x271e22,x:_0x200840,y:_0x26d6d1,width:_0x44beb4,height:_0x5e1872}=_0x375502;return this[_0x315126(0x1ee)][_0x315126(0x22c)](_0x349e23['id'],{'unitId':_0x2d1e54,'subUnitId':_0x4c0f91,'shapeId':_0x35b94e,'shapeType':_0x5ad9c8,'shapeData':_0x271e22,'position':{'x':_0x200840,'y':_0x26d6d1},'width':_0x44beb4,'height':_0x5e1872});}async[_0x5523e0(0x23d)](_0x2c36c1){const _0xb9e3bc=_0x5523e0;let {unitId:_0x3733bb,subUnitId:_0x207590,shapeId:_0x403d41,shapeType:_0x5f5d4d,shapeData:_0x7dcf04,x:_0x2b71c7,y:_0x2c55ee,width:_0x57f6bf,height:_0x481a2e}=_0x2c36c1;return this[_0xb9e3bc(0x1ee)][_0xb9e3bc(0x22c)](_0x3363bb['id'],{'unitId':_0x3733bb,'subUnitId':_0x207590,'shapeId':_0x403d41,'shapeType':_0x5f5d4d,'shapeData':_0x7dcf04,'position':{'x':_0x2b71c7,'y':_0x2c55ee},'width':_0x57f6bf,'height':_0x481a2e});}[_0x5523e0(0x20d)](_0x56f169){const _0x44c659=_0x5523e0;let _0x1abee6=this['getWorkbook']()[_0x44c659(0x243)](),_0x29ea8c=this[_0x44c659(0x214)]();if(_0x56f169){let _0x5dad36=new P(_0x1abee6,_0x29ea8c,_0x56f169[_0x44c659(0x24c)],this[_0x44c659(0x200)]);return this['_preloadShapeProperties'](_0x5dad36,_0x1abee6,_0x29ea8c,_0x56f169[_0x44c659(0x24c)]),_0x5dad36;}return new P(_0x1abee6,_0x29ea8c,_0x478e17(),this[_0x44c659(0x200)]);}['newConnector'](_0x53a5b1){const _0x5cfa82=_0x5523e0;let _0x23c4d6=this[_0x5cfa82(0x249)]()['getUnitId'](),_0x5432ec=this[_0x5cfa82(0x214)]();if(_0x53a5b1){let _0xbc3c5a=new F(_0x23c4d6,_0x5432ec,_0x53a5b1[_0x5cfa82(0x24c)],this[_0x5cfa82(0x200)]);return this[_0x5cfa82(0x251)](_0xbc3c5a,_0x23c4d6,_0x5432ec,_0x53a5b1['drawId']),_0xbc3c5a;}return new F(_0x23c4d6,_0x5432ec,_0x478e17(),this[_0x5cfa82(0x200)]);}['getShapes'](){const _0x45f8b4=_0x5523e0;let _0x577427=this[_0x45f8b4(0x200)][_0x45f8b4(0x1e5)](_0x5bfdfe),_0x1006b5=this[_0x45f8b4(0x249)]()[_0x45f8b4(0x243)](),_0xb7ca65=this[_0x45f8b4(0x214)](),_0x1e5dab=_0x577427['getDrawingData'](_0x1006b5,_0xb7ca65);if(!_0x1e5dab)return[];let _0x306c4b=[];for(let [_0x1aa741,_0x130992]of Object[_0x45f8b4(0x240)](_0x1e5dab))if(_0x130992&&_0x130992[_0x45f8b4(0x1e7)]===_0x3372c3['DRAWING_SHAPE']){let _0x2b9d7e=new P(_0x1006b5,_0xb7ca65,_0x1aa741,this[_0x45f8b4(0x200)]);this[_0x45f8b4(0x251)](_0x2b9d7e,_0x1006b5,_0xb7ca65,_0x1aa741),_0x306c4b['push'](_0x2b9d7e);}return _0x306c4b;}['removeShape'](_0x1aed9e){const _0x80b68f=_0x5523e0;let {unitId:_0x426fb4,subUnitId:_0x29d21,drawId:_0xa99c57}=_0x1aed9e;return this['_commandService']['executeCommand'](_0x28db79['id'],{'unitId':_0x426fb4,'drawings':[{'unitId':_0x426fb4,'subUnitId':_0x29d21,'drawingId':_0xa99c57,'drawingType':_0x3372c3[_0x80b68f(0x1ea)]}]});}async[_0x5523e0(0x247)](_0x2429a0){const _0x1eec79=_0x5523e0;let {connector:_0x5942da,startTarget:_0x5b0f8e,endTarget:_0x361c85}=_0x2429a0;if(!_0x5b0f8e&&!_0x361c85)return!0x1;let _0x379033=this['getWorkbook']()[_0x1eec79(0x243)](),_0xf99479=this[_0x1eec79(0x214)](),_0x412e90=this[_0x1eec79(0x200)][_0x1eec79(0x1e5)](_0x5d7a9e),_0x7282b0=this[_0x1eec79(0x200)][_0x1eec79(0x1e5)](_0x2fcdbd),_0x1970bd=_0x412e90[_0x1eec79(0x21a)](_0x379033,_0xf99479,_0x5942da[_0x1eec79(0x24c)]);if(!_0x1970bd)return!0x1;let _0x41fee6=_0x1970bd[_0x1eec79(0x22f)](),_0x53e5ff=_0x1970bd[_0x1eec79(0x234)](),_0x210905={};for(let _0x2a5d41 of _0x1970bd[_0x1eec79(0x21e)]()){let _0x225f6d=_0x1970bd[_0x1eec79(0x1f6)](_0x2a5d41);_0x225f6d!==void 0x0&&(_0x210905[_0x2a5d41]=_0x225f6d);}let {startInfo:_0x3443a2,endInfo:_0xe3ba13}=this[_0x1eec79(0x1da)](_0x379033,_0xf99479,_0x5942da,_0x1970bd,_0x5b0f8e,_0x361c85,_0x412e90,_0x7282b0,_0x53e5ff);if(!_0x3443a2||!_0xe3ba13)return!0x1;let _0x15d352=_0x35c7a4(_0x26078f(_0x3443a2,_0xe3ba13,_0x41fee6),_0x41fee6),_0x4f9a49={};return _0x5b0f8e?_0x4f9a49[_0x1eec79(0x22b)]={'shapeId':_0x5b0f8e[_0x1eec79(0x259)][_0x1eec79(0x24c)],'cxnIndex':_0x5b0f8e['connectionSiteIndex']}:_0x53e5ff!=null&&_0x53e5ff[_0x1eec79(0x22b)]&&(_0x4f9a49[_0x1eec79(0x22b)]=_0x53e5ff[_0x1eec79(0x22b)]),_0x361c85?_0x4f9a49['to']={'shapeId':_0x361c85[_0x1eec79(0x259)][_0x1eec79(0x24c)],'cxnIndex':_0x361c85[_0x1eec79(0x225)]}:_0x53e5ff!=null&&_0x53e5ff['to']&&(_0x4f9a49['to']=_0x53e5ff['to']),this[_0x1eec79(0x1ee)][_0x1eec79(0x22c)](_0x167b3e['id'],{'unitId':_0x379033,'subUnitId':_0xf99479,'connectorShapeId':_0x5942da['drawId'],'width':_0x15d352['worldRect']['width'],'height':_0x15d352['worldRect'][_0x1eec79(0x227)],'left':_0x15d352[_0x1eec79(0x24d)]['left'],'top':_0x15d352[_0x1eec79(0x24d)][_0x1eec79(0x255)],'flipX':_0x15d352[_0x1eec79(0x24d)][_0x1eec79(0x207)]||!0x1,'flipY':_0x15d352['worldRect'][_0x1eec79(0x235)]||!0x1,'oldAdjustValues':_0x210905,'newAdjustValues':_0x15d352['adjustValues'],'newLineType':_0x15d352[_0x1eec79(0x1f2)],'oldLineType':_0x41fee6,'rotation':_0x15d352[_0x1eec79(0x221)],'oldRelation':_0x53e5ff,'newRelation':_0x4f9a49});}[_0x5523e0(0x251)](_0x2181da,_0x36d130,_0x3ff58b,_0x1d0538){const _0x45efbb=_0x5523e0;let _0x120ae3=this[_0x45efbb(0x200)][_0x45efbb(0x1e5)](_0x2fcdbd)[_0x45efbb(0x20c)]({'unitId':_0x36d130,'subUnitId':_0x3ff58b,'drawingId':_0x1d0538});if(_0x120ae3!=null&&_0x120ae3[_0x45efbb(0x24f)]){var _0x26d959,_0x37cad1,_0x200952,_0x37304f;_0x2181da['x']=(_0x26d959=_0x120ae3[_0x45efbb(0x24f)][_0x45efbb(0x208)])==null?0x0:_0x26d959,_0x2181da['y']=(_0x37cad1=_0x120ae3[_0x45efbb(0x24f)]['top'])==null?0x0:_0x37cad1,_0x2181da[_0x45efbb(0x21b)]=(_0x200952=_0x120ae3['transform'][_0x45efbb(0x21b)])==null?_0x2181da[_0x45efbb(0x21b)]:_0x200952,_0x2181da[_0x45efbb(0x227)]=(_0x37304f=_0x120ae3[_0x45efbb(0x24f)][_0x45efbb(0x227)])==null?_0x2181da[_0x45efbb(0x227)]:_0x37304f;}let _0x3b5810=this[_0x45efbb(0x200)][_0x45efbb(0x1e5)](_0x5d7a9e)[_0x45efbb(0x21a)](_0x36d130,_0x3ff58b,_0x1d0538);if(_0x3b5810){_0x2181da['shapeType']=_0x3b5810[_0x45efbb(0x22f)]();let _0x13aac9=_0x3b5810[_0x45efbb(0x1e9)]();_0x13aac9&&(_0x2181da[_0x45efbb(0x1f0)]=JSON[_0x45efbb(0x238)](JSON[_0x45efbb(0x1e2)](_0x13aac9)));}}[_0x5523e0(0x1da)](_0x2b3ed1,_0x1c93c7,_0x414413,_0xcc149b,_0x3ce4b2,_0x2a202c,_0x554142,_0x2fe704,_0x3aead9){const _0x6f437c=_0x5523e0;let _0x8cf541=null,_0x54415b=null;return _0x3ce4b2&&(_0x8cf541=I(_0x2b3ed1,_0x1c93c7,_0x3ce4b2[_0x6f437c(0x259)][_0x6f437c(0x24c)],_0x3ce4b2[_0x6f437c(0x225)],_0x554142,_0x2fe704)),_0x2a202c&&(_0x54415b=I(_0x2b3ed1,_0x1c93c7,_0x2a202c[_0x6f437c(0x259)][_0x6f437c(0x24c)],_0x2a202c[_0x6f437c(0x225)],_0x554142,_0x2fe704)),_0x8cf541||(_0x8cf541=this['_resolveExistingOrFreeEndpoint'](_0x2b3ed1,_0x1c93c7,_0x414413[_0x6f437c(0x24c)],!0x0,_0x54415b,_0x3aead9==null?void 0x0:_0x3aead9[_0x6f437c(0x22b)],_0x554142,_0x2fe704)),_0x54415b||(_0x54415b=this['_resolveExistingOrFreeEndpoint'](_0x2b3ed1,_0x1c93c7,_0x414413[_0x6f437c(0x24c)],!0x1,_0x8cf541,_0x3aead9==null?void 0x0:_0x3aead9['to'],_0x554142,_0x2fe704)),{'startInfo':_0x8cf541,'endInfo':_0x54415b};}[_0x5523e0(0x213)](_0x1816d4,_0x31819e,_0x499fe1,_0x397d1f,_0x2b5422,_0x4ef3e3,_0x2c0918,_0x16dbe2){const _0xdb6d5=_0x5523e0;if(_0x4ef3e3){let _0x58ba2c=I(_0x1816d4,_0x31819e,_0x4ef3e3[_0xdb6d5(0x252)],_0x4ef3e3[_0xdb6d5(0x22e)],_0x2c0918,_0x16dbe2);if(_0x58ba2c)return _0x58ba2c;}return _0x2b5422?R(_0x1816d4,_0x31819e,_0x499fe1,_0x397d1f,_0x2b5422,_0x2c0918,_0x16dbe2):null;}};_0x3ba9d2[_0x5523e0(0x23a)](z);export{F as FConnectorShape,P as FShape};function _0x59b9(){const _0x5b1979=['stroke','cxnIndex','getShapeType','abs','dashType','ShapeArrowSizeEnum','defineProperty','getShapeRelation','flipY','7fpVIsj','prototype','parse','setAbsolutePosition','extend','706uwvOcB','type','updateShape','NoFill','setStrokeLineDashType','entries','setStartArrowType','getEndConnectInfo','getUnitId','point','Skeleton\x20for\x20unitId\x20','keys','connectShapes','updateContext','getWorkbook',',\x20but\x20expected\x20a\x20connector\x20shape\x20type.','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','drawId','worldRect','ShapeFillEnum','transform','build','_preloadShapeProperties','shapeId','1360089yHYIWG','sin','top','fillType','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','5293122bpsgfs','shape','ShapeLineCapEnum','setHeight','find','fill','ShapeLineTypeEnum','gradientAngle','_resolveEndpoints','getConnectionSites','ShapeGradientTypeEnum','unitId','subUnitId','setNoneFill','opacity','5JaxLFb','stringify','gradientStops','startArrow','get','setStrokeColor','drawingType','endArrow','getShapeData','DRAWING_SHAPE','getConnectorLinePoints','SolidFill','lineJoinType','_commandService','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','shapeData','1141skAjTi','lineType','ShapeLineDashEnum','setEndArrowSize','setPosition','getAdjustValueByName','setShapeType','localToWorld','toPrimitive','index','getDrawingPoints','getConnectionSiteList','shapeType','relation','setShapeSolidFill','_injector','string','length','\x20and\x20subUnitId\x20','GradientFill','object','6970336LWmnwp','flipX','left','getPosition','Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().','symbol','getDrawingByParam','newShape','getStartConnectInfo','isLineShape','\x20not\x20found','color','function','_resolveExistingOrFreeEndpoint','getSheetId','ang','5011650ZCJpGI','ensureSkeleton','6729021VsKJyC','setStrokeLineJoinType','getShapeModel','width','ShapeArrowTypeEnum','setStrokeWidth','getAdjustNames','setStrokeLineType','setShapeData','rotation','4039416yhjhBy','iterator','lineStrokeType','connectionSiteIndex','setWidth','height','setShapeGradientFill','setStartArrowSize','setEndArrowType','from','executeCommand'];_0x59b9=function(){return _0x5b1979;};return _0x59b9();}
|