@univerjs-pro/engine-shape 1.0.0-alpha.7 → 1.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- 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/facade/f-connector-shape.d.ts +1 -1
- package/lib/types/facade/f-shape-text.d.ts +16 -2
- package/lib/types/facade/f-shape.d.ts +125 -16
- package/lib/types/facade/index.d.ts +1 -1
- package/lib/types/index.d.ts +4 -5
- package/lib/types/models/shape-model.d.ts +10 -1
- package/lib/types/render-engine/shape-render-model.d.ts +1 -24
- package/lib/types/services/shape-host-adapter.service.d.ts +44 -1
- package/lib/types/shape-enum.d.ts +1 -1
- package/lib/types/shape-type.d.ts +22 -46
- package/lib/types/utils/svg-path-data.d.ts +48 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +6 -3
- package/lib/types/util/connector-points-util.d.ts +0 -56
- package/lib/types/utils/shape-shadow.util.d.ts +0 -8
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x433b6d=_0x2cd6;function _0x23f6(){const _0x159a53=['ShapeTextDirection','toPlainText','SolidLine','getHostType','diamond','getDescription','_getConnectorAdapter','setText','setFontFamily','ShapeImageFillModeEnum','2539906jTuCGl','853758btdjkP','width','getEndEndpoint','\x20Shape\x20\x22','linear','[Shape\x20Text\x20Facade]:\x20Failed\x20to\x20update\x20Shape\x20\x22','_mutate','ShapeLineTypeEnum','length','[Shape\x20Facade]:\x20Connector\x20\x22','bindStart','setTextBoxOptions','setShapeData','setSelectable','boolean','\x20Connector\x20Shape\x20\x22','39MAWTSS','updateShape','color','GradientFill','scaleX','angular','ShapeGradientTypeEnum','setStrokeLineJoinType','243988IgsfIA','bring\x20forward','5637924uHQTGC','bindEnd','isFinite','setBold','solid','get','opacity','shapeId','getStartEndpoint','sendToBack','_updateShapeData','customGeometry','end','setStartArrow','set\x20end\x20arrow','update','bring\x20to\x20front','ShapeArrowSizeEnum','top','shapeData','set\x20route\x20points','setImageFill','TRUE','_shapeRef','setTextStyle','_patchShapeData','sendBackward','isCustom','getPlainText','setStartPoint','\x22\x20text.','getConnectionSiteList','setGradientFill','setVerticalAlign','ShapeTypeEnum','bringForward','\x22\x20binding\x20requires\x20a\x20target\x20Shape\x20ID\x20and\x20a\x20non-negative\x20connection\x20site\x20index.','removeShape','start','Shape\x20height\x20must\x20be\x20greater\x20than\x20zero.','setEndPoint','setName','height','getShapeType','getName','\x22\x20must\x20be\x20boolean.','PictureFill','set\x20start\x20point','setStrokeLineCapType','remove','send\x20to\x20back','setRichText','every','7608825doYWHr','relation','warn','startArrow','_injector','setStrikethrough','[Shape\x20Facade]:\x20Connector\x20Shape\x20\x22','setNoneFill','getShape','setStrokeColor','bind\x20','_patchStroke','\x22\x20points\x20must\x20contain\x20finite\x20coordinates.','_mutateConnector','description','_getSnapshot','setShapeType','getSnapshot','46672cHSGSK','Tile','Shape\x20\x22','map','_getGeometryModel','ShapeFillEnum','NoFill','getTransform','setDescription','visible','unbindStart','setStrokeLineDashType','routePoints','bringToFront','Connector\x20relationships\x20and\x20route\x20points\x20require\x20FConnectorShape.','offsetX','isSelectable','[Shape\x20Facade]:\x20Failed\x20to\x20','\x22\x20requires\x20Connector\x20Shape\x20data.','createInstance','setStrokeLineType','isCustomShape','setRoutePoints','_bind','_getAdapter','_getShapeData','setStrokeWidth','getRichText','ShapeLineJoinEnum','lineStrokeType','hostType','deepClone','getDrawingPoints','SolidFill','[Shape\x20Text\x20Facade]:\x20Gradient\x20text\x20fill\x20requires\x20at\x20least\x20two\x20color\x20stops.','ShapeOperatorEnum','selectable','shapeType','gradient','[Shape\x20Facade]:\x20Failed\x20to\x20read\x20Connector\x20Shape\x20\x22','getRoutePoints','radial','[Shape\x20Facade]:\x20Gradient\x20fill\x20requires\x20at\x20least\x20two\x20color\x20stops.','_getConnectorSnapshot','setFontSize','Shape\x20transform\x20\x22','[Shape\x20Facade]:\x20Shape\x20\x22','430VWqTMv','setItalic','stretch','462681vVScNH','unbindEnd','FALSE','left','[Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','set\x20start\x20arrow','getStartConnectInfo','[Shape\x20Facade]:\x20Failed\x20to\x20resolve\x20geometry\x20for\x20Shape\x20\x22','getConnectionSites','Linear','setVisible','none','1253FHmhWY','shapeText','getEndConnectInfo','setTransform','setEndArrow','send\x20backward','\x22\x20was\x20not\x20found.','setStroke','getShapeData','isConnectorShape','[Shape\x20Text\x20Facade]:\x20Shape\x20\x22','transform','updateContext','mode','endArrow','NoLine','stroke','getStartArrow','Shape\x20width\x20must\x20be\x20greater\x20than\x20zero.','rotation','points','offsetY'];_0x23f6=function(){return _0x159a53;};return _0x23f6();}(function(_0x44740d,_0x1c3252){const _0x22c9c8=_0x2cd6,_0x3b3b80=_0x44740d();while(!![]){try{const _0x115ce4=-parseInt(_0x22c9c8(0xfa))/0x1+-parseInt(_0x22c9c8(0xf9))/0x2+-parseInt(_0x22c9c8(0x10a))/0x3*(parseInt(_0x22c9c8(0x112))/0x4)+parseInt(_0x22c9c8(0x149))/0x5+-parseInt(_0x22c9c8(0x114))/0x6+parseInt(_0x22c9c8(0xd9))/0x7*(parseInt(_0x22c9c8(0x15b))/0x8)+-parseInt(_0x22c9c8(0xcd))/0x9*(-parseInt(_0x22c9c8(0xca))/0xa);if(_0x115ce4===_0x1c3252)break;else _0x3b3b80['push'](_0x3b3b80['shift']());}catch(_0x1a8f35){_0x3b3b80['push'](_0x3b3b80['shift']());}}}(_0x23f6,0xe0af8));import{IConnectorShapeHostAdapter as _0x16708f,IShapeHostAdapterRegistry as _0x4ae540,ImageFillModeEnum as _0x2ec5be,ImageSourceTypeEnum as _0x4440bd,ShapeArrowSizeEnum as _0x398055,ShapeArrowTypeEnum as _0xbc4ea7,ShapeFillEnum as _0x2533cb,ShapeGradientTypeEnum as _0x1cbbf7,ShapeLineCapEnum as _0xe84ee6,ShapeLineDashEnum as _0x41789d,ShapeLineJoinEnum as _0x14b1ea,ShapeLineTypeEnum as _0x1b809a,ShapeModel as _0x42c72b,ShapeOperatorEnum as _0x21d5a6,ShapeTextAutoFitType as _0x4c62ac,ShapeTextDirection as _0x3d4681,ShapeTextWrapType as _0x38edac,ShapeTypeEnum as _0x48fcf2,applyRichTextToShapeText as _0x13d644,applyShapeTextAlignment as _0x2c4c22,applyShapeTextBoxOptions as _0x47d449,applyShapeTextStyle as _0x2a3888,applyTextToShapeText as _0x20bed2,isConnectorShape as _0x27d6d1,resolveShapeTextBoxOptions as _0x32c686,shapeTextToRichTextValue as _0x4fa01a}from'@univerjs-pro/engine-shape';import{FBase as _0x422559,FEnum as _0x3915cf}from'@univerjs/core/facade';import{BooleanNumber as _0x1fcab0,Tools as _0x16ae0e}from'@univerjs/core';var A=class extends _0x3915cf{get[_0x433b6d(0x136)](){return _0x48fcf2;}get[_0x433b6d(0x160)](){return _0x2533cb;}get[_0x433b6d(0x110)](){return _0x1cbbf7;}get[_0x433b6d(0xf8)](){return _0x2ec5be;}get['ShapeImageSourceTypeEnum'](){return _0x4440bd;}get[_0x433b6d(0x101)](){return _0x1b809a;}get['ShapeLineDashEnum'](){return _0x41789d;}get['ShapeLineCapEnum'](){return _0xe84ee6;}get[_0x433b6d(0x177)](){return _0x14b1ea;}get[_0x433b6d(0xbe)](){return _0x21d5a6;}get['ShapeArrowTypeEnum'](){return _0xbc4ea7;}get[_0x433b6d(0x125)](){return _0x398055;}get['ShapeTextAutoFitType'](){return _0x4c62ac;}get[_0x433b6d(0xef)](){return _0x3d4681;}get['ShapeTextWrapType'](){return _0x38edac;}};_0x3915cf['extend'](A);function j(_0x496470){const _0x4535ce=_0x433b6d;switch(_0x496470){case _0x1cbbf7['Radial']:return _0x4535ce(0xc4);case _0x1cbbf7['Angular']:return _0x4535ce(0x10f);case _0x1cbbf7['Diamond']:return _0x4535ce(0xf3);case _0x1cbbf7[_0x4535ce(0xd6)]:default:return _0x4535ce(0xfe);}}function M(_0x10919b){const _0x677599=_0x433b6d;return _0x10919b===_0x2ec5be[_0x677599(0x15c)]?'tile':_0x677599(0xcc);}var N=class{constructor(_0x2ea796,_0x20afb7){const _0x20e89=_0x433b6d;this[_0x20e89(0x12b)]=_0x2ea796,this[_0x20e89(0x14d)]=_0x20afb7;}['getRichText'](){const _0x15acdb=_0x433b6d;var _0x5a47a3;return _0x4fa01a((_0x5a47a3=this[_0x15acdb(0x174)]())==null?void 0x0:_0x5a47a3[_0x15acdb(0xda)]);}[_0x433b6d(0x130)](){const _0x127e8f=_0x433b6d;var _0x32b82e,_0x23f97e;return(_0x32b82e=(_0x23f97e=this[_0x127e8f(0x176)]())==null?void 0x0:_0x23f97e[_0x127e8f(0xf0)]())==null?null:_0x32b82e;}[_0x433b6d(0x147)](_0x2e93f1){const _0x2c4866=_0x433b6d;return this[_0x2c4866(0x11e)](_0x32404e=>({..._0x32404e,'shapeText':_0x13d644(_0x32404e[_0x2c4866(0xda)],_0x2e93f1)})),this;}[_0x433b6d(0xf6)](_0x3e8924){const _0x156b21=_0x433b6d;return this[_0x156b21(0x11e)](_0x9519bb=>({..._0x9519bb,'shapeText':_0x20bed2(_0x9519bb[_0x156b21(0xda)],_0x3e8924)})),this;}[_0x433b6d(0x12c)](_0xc04558){const _0x61a6c6=_0x433b6d;return this[_0x61a6c6(0x11e)](_0x176516=>({..._0x176516,'shapeText':_0x2a3888(_0x176516[_0x61a6c6(0xda)],_0xc04558)})),this;}['setColor'](_0x9f34,_0x593d99){const _0x269d12=_0x433b6d;return this['setTextStyle']({'cl':{'rgb':_0x9f34},'textFill':{'type':_0x269d12(0x118),'color':_0x9f34,'opacity':_0x593d99}});}[_0x433b6d(0x150)](){const _0x14f0fc=_0x433b6d;return this['setTextStyle']({'cl':{'rgb':'rgba(0,\x200,\x200,\x200)'},'textFill':{'type':_0x14f0fc(0xd8)}});}[_0x433b6d(0x134)](_0x5084e2,_0x228fbf,_0x30e6df){const _0x105978=_0x433b6d;return _0x228fbf['length']<0x2?(console['warn'](_0x105978(0x17d)),this):this[_0x105978(0x12c)]({'cl':{'rgb':_0x228fbf[0x0][_0x105978(0x10c)]},'textFill':{'type':_0x105978(0xc1),'gradient':{'type':j(_0x5084e2),'angle':_0x30e6df,'stops':_0x228fbf['map'](({position:_0x13294a,color:_0x1fae6f,opacity:_0x1d1fc9})=>({'offset':_0x13294a,'color':_0x1fae6f,'opacity':_0x1d1fc9}))}}});}['setImageFill'](_0x55a269,_0x46f631=_0x4440bd['URL'],_0x46ccb0={}){const _0x1019b4=_0x433b6d;return this['setTextStyle']({'textFill':{'type':'picture','picture':{'source':_0x55a269,'sourceType':_0x46f631,'opacity':_0x46ccb0[_0x1019b4(0x11a)],'mode':M(_0x46ccb0[_0x1019b4(0xe6)]),'scaleX':_0x46ccb0[_0x1019b4(0x10e)],'scaleY':_0x46ccb0['scaleY'],'offsetX':_0x46ccb0[_0x1019b4(0x16a)],'offsetY':_0x46ccb0[_0x1019b4(0xee)]}}});}[_0x433b6d(0xc7)](_0xa7e712){const _0x3878e5=_0x433b6d;return this[_0x3878e5(0x12c)]({'fs':_0xa7e712});}[_0x433b6d(0xf7)](_0x4a70b2){const _0x27d7af=_0x433b6d;return this[_0x27d7af(0x12c)]({'ff':_0x4a70b2});}[_0x433b6d(0x117)](_0x52cad0){const _0x423473=_0x433b6d;return this[_0x423473(0x12c)]({'bl':_0x52cad0?_0x1fcab0[_0x423473(0x12a)]:_0x1fcab0[_0x423473(0xcf)]});}[_0x433b6d(0xcb)](_0x47dce0){const _0x10a3ff=_0x433b6d;return this[_0x10a3ff(0x12c)]({'it':_0x47dce0?_0x1fcab0[_0x10a3ff(0x12a)]:_0x1fcab0[_0x10a3ff(0xcf)]});}['setUnderline'](_0xfa6adc){const _0x41e062=_0x433b6d;return this[_0x41e062(0x12c)]({'ul':{'s':_0xfa6adc?_0x1fcab0[_0x41e062(0x12a)]:_0x1fcab0[_0x41e062(0xcf)]}});}[_0x433b6d(0x14e)](_0x3a7a92){const _0x1785d5=_0x433b6d;return this['setTextStyle']({'st':{'s':_0x3a7a92?_0x1fcab0['TRUE']:_0x1fcab0[_0x1785d5(0xcf)]}});}['setHorizontalAlign'](_0x299f3b){const _0x1831f2=_0x433b6d;return this[_0x1831f2(0x11e)](_0xb96622=>_0x2c4c22(_0xb96622,{'horizontalAlign':_0x299f3b})),this;}[_0x433b6d(0x135)](_0x2478da){return this['_updateShapeData'](_0x3c573f=>_0x2c4c22(_0x3c573f,{'verticalAlign':_0x2478da})),this;}['getTextBoxOptions'](){let _0x102357=this['_getShapeData']();return _0x102357?_0x32c686(_0x102357):null;}[_0x433b6d(0x105)](_0x5052a3){const _0x4977c3=_0x433b6d;return this[_0x4977c3(0x11e)](_0x40a73=>_0x47d449(_0x40a73,_0x5052a3)),this;}['_getAdapter'](){const _0x277eec=_0x433b6d;return this[_0x277eec(0x14d)]['get'](_0x4ae540)[_0x277eec(0x119)](this[_0x277eec(0x12b)][_0x277eec(0x179)]);}[_0x433b6d(0x174)](){const _0x5cc328=_0x433b6d;let _0xe1981c=this[_0x5cc328(0x173)]();if(!_0xe1981c)return null;try{var _0x270061;return((_0x270061=_0xe1981c[_0x5cc328(0x151)](this[_0x5cc328(0x12b)]))==null?void 0x0:_0x270061[_0x5cc328(0x127)])||(console[_0x5cc328(0x14b)](_0x5cc328(0xe3)+this[_0x5cc328(0x12b)][_0x5cc328(0x11b)]+_0x5cc328(0xdf)),null);}catch(_0x61a381){return console[_0x5cc328(0x14b)]('[Shape\x20Text\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22'+this['_shapeRef'][_0x5cc328(0x11b)]+_0x5cc328(0x132),_0x61a381),null;}}[_0x433b6d(0x11e)](_0x29d912){const _0x362f04=_0x433b6d;let _0x565ff2=this[_0x362f04(0x173)]();if(!_0x565ff2)return!0x1;try{var _0x59f3e7;let _0x2d5c4e=(_0x59f3e7=_0x565ff2['getShape'](this[_0x362f04(0x12b)]))==null?void 0x0:_0x59f3e7[_0x362f04(0x127)];if(!_0x2d5c4e)return console[_0x362f04(0x14b)](_0x362f04(0xe3)+this[_0x362f04(0x12b)][_0x362f04(0x11b)]+_0x362f04(0xdf)),!0x1;let _0x5dab6c=_0x565ff2[_0x362f04(0x10b)](this['_shapeRef'],{'shapeData':_0x29d912(_0x2d5c4e)});return _0x5dab6c||console['warn'](_0x362f04(0xff)+this[_0x362f04(0x12b)][_0x362f04(0x11b)]+'\x22\x20text.'),_0x5dab6c;}catch(_0x4db3e3){return console[_0x362f04(0x14b)](_0x362f04(0xff)+this[_0x362f04(0x12b)]['shapeId']+_0x362f04(0x132),_0x4db3e3),!0x1;}}},P=class extends _0x422559{constructor(_0x570db4,_0x328138){const _0x2f0d7c=_0x433b6d;super(),this[_0x2f0d7c(0x12b)]=_0x570db4,this[_0x2f0d7c(0x14d)]=_0x328138;}[_0x433b6d(0xe2)](){return!0x1;}['getId'](){return this['_shapeRef']['shapeId'];}[_0x433b6d(0x140)](){const _0x72273d=_0x433b6d;var _0x397421;return(_0x397421=this[_0x72273d(0x158)]())==null?void 0x0:_0x397421['name'];}[_0x433b6d(0x13d)](_0x3e0d01){return this['update']({'name':_0x3e0d01});}[_0x433b6d(0xf4)](){const _0x4ad498=_0x433b6d;var _0x3a58a2;return(_0x3a58a2=this[_0x4ad498(0x158)]())==null?void 0x0:_0x3a58a2[_0x4ad498(0x157)];}[_0x433b6d(0x163)](_0xd2baef){const _0x4bf4dd=_0x433b6d;return this[_0x4bf4dd(0x123)]({'description':_0xd2baef});}[_0x433b6d(0xf2)](){const _0x35e33b=_0x433b6d;return this[_0x35e33b(0x12b)][_0x35e33b(0x179)];}[_0x433b6d(0x13f)](){const _0x584a8f=_0x433b6d;var _0x46d6c9,_0x7fa163;return(_0x46d6c9=(_0x7fa163=this['_getSnapshot']())==null?void 0x0:_0x7fa163[_0x584a8f(0xc0)])==null?null:_0x46d6c9;}['getShapeData'](){const _0x15432f=_0x433b6d;let _0x5e4f2e=this[_0x15432f(0x158)]();return _0x5e4f2e?_0x16ae0e[_0x15432f(0x17a)](_0x5e4f2e[_0x15432f(0x127)]):null;}[_0x433b6d(0x15a)](){const _0x457cba=_0x433b6d;let _0x43507f=this['_getSnapshot']();return _0x43507f?_0x16ae0e[_0x457cba(0x17a)](_0x43507f):null;}[_0x433b6d(0x162)](){const _0x214f08=_0x433b6d;let _0x4f4476=this[_0x214f08(0x158)]();return _0x4f4476?{..._0x4f4476[_0x214f08(0xe4)]}:null;}['isVisible'](){const _0x572353=_0x433b6d;var _0x469c70,_0x2b5146;return(_0x469c70=(_0x2b5146=this['_getSnapshot']())==null?void 0x0:_0x2b5146[_0x572353(0x164)])==null?!0x1:_0x469c70;}[_0x433b6d(0xd7)](_0x5b3fb3){const _0x53707a=_0x433b6d;return this[_0x53707a(0x123)]({'visible':_0x5b3fb3});}[_0x433b6d(0x16b)](){const _0x421821=_0x433b6d;var _0xf4b206,_0x2bdb97;return(_0xf4b206=(_0x2bdb97=this[_0x421821(0x158)]())==null?void 0x0:_0x2bdb97[_0x421821(0xbf)])==null?!0x1:_0xf4b206;}[_0x433b6d(0x107)](_0x5de53e){const _0x2b788=_0x433b6d;return this[_0x2b788(0x123)]({'selectable':_0x5de53e});}['getText'](){const _0x27ab1c=_0x433b6d;return this[_0x27ab1c(0x14d)][_0x27ab1c(0x16e)](N,this['_shapeRef'],this['_injector']);}[_0x433b6d(0x170)](){const _0x2b854d=_0x433b6d;let _0x1b21e3=this['getShapeData']();return(_0x1b21e3==null?void 0x0:_0x1b21e3[_0x2b854d(0x12f)])===!0x0&&!!_0x1b21e3['customGeometry'];}['getCustomGeometry'](){const _0x5dff4f=_0x433b6d;var _0x3ed00c,_0x26bded;return(_0x3ed00c=(_0x26bded=this[_0x5dff4f(0xe1)]())==null?void 0x0:_0x26bded[_0x5dff4f(0x11f)])==null?null:_0x3ed00c;}[_0x433b6d(0x159)](_0x109e9c){const _0x55dc39=_0x433b6d;return this[_0x55dc39(0x12d)](_0x481de6=>({..._0x481de6,'shapeType':_0x109e9c}),_0x109e9c);}[_0x433b6d(0x106)](_0x58e1fd){const _0x51502c=_0x433b6d;let _0x7404f3=_0x16ae0e[_0x51502c(0x17a)](_0x58e1fd);return this['update']({'shapeType':_0x7404f3[_0x51502c(0xc0)],'shapeData':_0x7404f3});}[_0x433b6d(0xdc)](_0x454274){return this['update']({'transform':_0x454274});}['setSize'](_0x3dfdff,_0x5d958e){return this['setTransform']({'width':_0x3dfdff,'height':_0x5d958e});}['setRotation'](_0x5f2ac7){const _0x2d95a8=_0x433b6d;return this[_0x2d95a8(0xdc)]({'rotation':_0x5f2ac7});}['setAbsolutePosition'](_0x115729,_0x1ac19e){const _0x1649f2=_0x433b6d;return this[_0x1649f2(0xdc)]({'left':_0x115729,'top':_0x1ac19e});}['setCustomGeometry'](_0x33925d){const _0x2edca3=_0x433b6d;let _0x3ac4b1=_0x16ae0e[_0x2edca3(0x17a)](_0x33925d);return this['_patchShapeData'](_0x19bc09=>({..._0x19bc09,'isCustom':!0x0,'customGeometry':_0x3ac4b1}));}[_0x433b6d(0xd5)](){const _0x2ff0ff=_0x433b6d;var _0x451be1,_0x460ed6;return(_0x451be1=(_0x460ed6=this[_0x2ff0ff(0x15f)]())==null?void 0x0:_0x460ed6[_0x2ff0ff(0x133)]()['map'](_0x91eeb=>({..._0x91eeb})))==null?[]:_0x451be1;}['getAdjustPoints'](){const _0x454e02=_0x433b6d;var _0x4f774a,_0x312800;return(_0x4f774a=(_0x312800=this[_0x454e02(0x15f)]())==null?void 0x0:_0x312800[_0x454e02(0x17b)]()[_0x454e02(0x15e)](_0x1b22c3=>({..._0x1b22c3})))==null?[]:_0x4f774a;}[_0x433b6d(0xd3)](){var _0x1e638b;let _0x4ce639=(_0x1e638b=this['_getGeometryModel']())==null?void 0x0:_0x1e638b['getStartConnectInfo']();return _0x4ce639?{..._0x4ce639}:null;}[_0x433b6d(0xdb)](){const _0x22b490=_0x433b6d;var _0x4e00c9;let _0x4bf5f1=(_0x4e00c9=this[_0x22b490(0x15f)]())==null?void 0x0:_0x4e00c9[_0x22b490(0xdb)]();return _0x4bf5f1?{..._0x4bf5f1}:null;}['setSolidFill'](_0x33cd6e,_0x8e8d96){const _0xaa1639=_0x433b6d;return this['_patchShapeData'](_0x362825=>({..._0x362825,'fill':{'fillType':_0x2533cb[_0xaa1639(0x17c)],'color':_0x33cd6e,'opacity':_0x8e8d96}}));}[_0x433b6d(0x134)](_0x494311,_0x152e49,_0x1ecf61){const _0x19beeb=_0x433b6d;return _0x152e49[_0x19beeb(0x102)]<0x2?(console[_0x19beeb(0x14b)](_0x19beeb(0xc5)),this):this[_0x19beeb(0x12d)](_0x3ec88a=>({..._0x3ec88a,'fill':{'fillType':_0x2533cb[_0x19beeb(0x10d)],'gradientType':_0x494311,'gradientStops':_0x16ae0e['deepClone'](_0x152e49),'gradientAngle':_0x1ecf61}}));}[_0x433b6d(0x129)](_0x48690a,_0x26f9b9,_0x47a276={}){const _0x3479a4=_0x433b6d;return this[_0x3479a4(0x12d)](_0x89b88d=>({..._0x89b88d,'fill':{..._0x16ae0e['deepClone'](_0x47a276),'fillType':_0x2533cb[_0x3479a4(0x142)],'fillImageSource':_0x48690a,'fillImageSourceType':_0x26f9b9}}));}[_0x433b6d(0x150)](){const _0x2ecf62=_0x433b6d;return this[_0x2ecf62(0x12d)](_0x56903b=>({..._0x56903b,'fill':{'fillType':_0x2533cb[_0x2ecf62(0x161)]}}));}[_0x433b6d(0xe0)](_0x1e1def){const _0x31d3f4=_0x433b6d;return this[_0x31d3f4(0x12d)](_0x4a8e24=>({..._0x4a8e24,'stroke':_0x16ae0e[_0x31d3f4(0x17a)](_0x1e1def)}));}[_0x433b6d(0x152)](_0xaba992){const _0x25c76f=_0x433b6d;return this[_0x25c76f(0x154)](_0xca9be4=>({..._0xca9be4,'color':_0xaba992,'lineStrokeType':_0xca9be4[_0x25c76f(0x178)]===_0x1b809a[_0x25c76f(0xe8)]?_0x1b809a[_0x25c76f(0xf1)]:_0xca9be4['lineStrokeType']}));}[_0x433b6d(0x175)](_0xf39e91){const _0x5177da=_0x433b6d;return this[_0x5177da(0x154)](_0x555287=>({..._0x555287,'width':_0xf39e91,'lineStrokeType':_0x555287[_0x5177da(0x178)]===_0x1b809a[_0x5177da(0xe8)]?_0x1b809a[_0x5177da(0xf1)]:_0x555287['lineStrokeType']}));}['setStrokeOpacity'](_0x5c06fa){const _0x5a9de8=_0x433b6d;return this[_0x5a9de8(0x154)](_0x2b0b83=>({..._0x2b0b83,'opacity':_0x5c06fa}));}[_0x433b6d(0x166)](_0x48e9c3){const _0x25c108=_0x433b6d;return this[_0x25c108(0x154)](_0x3c157e=>({..._0x3c157e,'dashType':_0x48e9c3}));}[_0x433b6d(0x111)](_0x5d54f9){return this['_patchStroke'](_0x3b622f=>({..._0x3b622f,'lineJoinType':_0x5d54f9}));}[_0x433b6d(0x144)](_0x4dcd1b){const _0x21d552=_0x433b6d;return this[_0x21d552(0x154)](_0x69f31c=>({..._0x69f31c,'capType':_0x4dcd1b}));}[_0x433b6d(0x16f)](_0x65e91f){const _0x322db8=_0x433b6d;return this[_0x322db8(0x154)](_0x3fffdb=>({..._0x3fffdb,'lineStrokeType':_0x65e91f}));}['update'](_0x1f2b22){const _0x1c25cf=_0x433b6d;var _0x45a4ba,_0xf461fa,_0x3bda0c;let _0x5d1004=_0x1f2b22[_0x1c25cf(0x127)],_0xdecd14=_0x5d1004&&(_0x1c25cf(0x14a)in _0x5d1004||_0x1c25cf(0xed)in _0x5d1004)?this[_0x1c25cf(0x13f)]():null,_0x31526a=(_0x45a4ba=(_0xf461fa=_0x1f2b22[_0x1c25cf(0xc0)])==null?(_0x3bda0c=_0x1f2b22[_0x1c25cf(0x127)])==null?void 0x0:_0x3bda0c['shapeType']:_0xf461fa)==null?_0xdecd14:_0x45a4ba,_0x1fc8b6=F(_0x1f2b22,_0x31526a!==null&&_0x27d6d1(_0x31526a));return _0x1fc8b6?(console[_0x1c25cf(0x14b)]('[Shape\x20Facade]:\x20'+_0x1fc8b6),this):(this['_mutate'](_0x1c25cf(0x123),_0x14b9b5=>_0x14b9b5[_0x1c25cf(0x10b)](this[_0x1c25cf(0x12b)],_0x1f2b22)),this);}[_0x433b6d(0x145)](){const _0x4e4082=_0x433b6d;return this[_0x4e4082(0x100)]('remove',_0x4458e4=>_0x4458e4[_0x4e4082(0x139)](this[_0x4e4082(0x12b)]));}[_0x433b6d(0x168)](){const _0x42ea35=_0x433b6d;return this[_0x42ea35(0x100)](_0x42ea35(0x124),_0x31c791=>_0x31c791['bringToFront'](this[_0x42ea35(0x12b)])),this;}['bringForward'](){const _0x15d031=_0x433b6d;return this[_0x15d031(0x100)](_0x15d031(0x113),_0x261bd0=>_0x261bd0[_0x15d031(0x137)](this[_0x15d031(0x12b)])),this;}['sendBackward'](){const _0x4bc5f3=_0x433b6d;return this[_0x4bc5f3(0x100)](_0x4bc5f3(0xde),_0x193ca6=>_0x193ca6[_0x4bc5f3(0x12e)](this[_0x4bc5f3(0x12b)])),this;}[_0x433b6d(0x11d)](){const _0xd48c2d=_0x433b6d;return this[_0xd48c2d(0x100)](_0xd48c2d(0x146),_0x1a6671=>_0x1a6671[_0xd48c2d(0x11d)](this[_0xd48c2d(0x12b)])),this;}[_0x433b6d(0x173)](){const _0xbd90dd=_0x433b6d;return this[_0xbd90dd(0x14d)][_0xbd90dd(0x119)](_0x4ae540)[_0xbd90dd(0x119)](this[_0xbd90dd(0x12b)]['hostType']);}[_0x433b6d(0x12d)](_0x125b83,_0x28624b){const _0x3a0936=_0x433b6d;let _0x581c00=this['getShapeData']();return _0x581c00?this[_0x3a0936(0x123)]({'shapeType':_0x28624b,'shapeData':_0x125b83(_0x581c00)}):this;}[_0x433b6d(0x154)](_0x26f2ec){const _0x398d2f=_0x433b6d;return this[_0x398d2f(0x12d)](_0x265d61=>{const _0x446b30=_0x398d2f;var _0x491831;return{..._0x265d61,'stroke':_0x26f2ec((_0x491831=_0x265d61[_0x446b30(0xe9)])==null?{}:_0x491831)};});}[_0x433b6d(0x158)](){const _0x5371e6=_0x433b6d;let _0xfbac61=this[_0x5371e6(0x173)]();if(!_0xfbac61)return null;try{return _0xfbac61['getShape'](this[_0x5371e6(0x12b)])||(console[_0x5371e6(0x14b)](_0x5371e6(0xc9)+this[_0x5371e6(0x12b)][_0x5371e6(0x11b)]+'\x22\x20was\x20not\x20found.'),null);}catch(_0x28dd23){return console[_0x5371e6(0x14b)](_0x5371e6(0xd1)+this['_shapeRef'][_0x5371e6(0x11b)]+'\x22.',_0x28dd23),null;}}[_0x433b6d(0x15f)](){const _0x4c20b9=_0x433b6d;let _0x207ca5=this[_0x4c20b9(0x158)]();if(!_0x207ca5)return null;try{let _0xfc00f3=new _0x42c72b(_0x207ca5[_0x4c20b9(0xc0)],_0x207ca5[_0x4c20b9(0x11b)],_0x207ca5[_0x4c20b9(0x127)]);return _0xfc00f3[_0x4c20b9(0xe5)]({'width':_0x207ca5[_0x4c20b9(0xe4)][_0x4c20b9(0xfb)],'height':_0x207ca5[_0x4c20b9(0xe4)][_0x4c20b9(0x13e)]}),_0xfc00f3;}catch(_0x556729){return console['warn'](_0x4c20b9(0xd4)+this[_0x4c20b9(0x12b)][_0x4c20b9(0x11b)]+'\x22.',_0x556729),null;}}[_0x433b6d(0x100)](_0x58b34d,_0x1af6bc){const _0x440e74=_0x433b6d;let _0x2167cf=this[_0x440e74(0x173)]();if(!_0x2167cf)return!0x1;try{let _0x43cfd6=_0x1af6bc(_0x2167cf);return _0x43cfd6||console['warn']('[Shape\x20Facade]:\x20Failed\x20to\x20'+_0x58b34d+_0x440e74(0xfd)+this[_0x440e74(0x12b)][_0x440e74(0x11b)]+'\x22.'),_0x43cfd6;}catch(_0x3d59a0){return console['warn'](_0x440e74(0x16c)+_0x58b34d+_0x440e74(0xfd)+this['_shapeRef'][_0x440e74(0x11b)]+'\x22.',_0x3d59a0),!0x1;}}};function _0x2cd6(_0x10c0dd,_0x549036){_0x10c0dd=_0x10c0dd-0xbe;const _0x23f676=_0x23f6();let _0x2cd657=_0x23f676[_0x10c0dd];return _0x2cd657;}function F(_0x13e887,_0x3e36a1=!0x1){const _0x2c17d9=_0x433b6d;for(let _0x65a4dd of[_0x2c17d9(0x164),_0x2c17d9(0xbf)]){let _0x29909f=_0x13e887[_0x65a4dd];if(_0x29909f!==void 0x0&&typeof _0x29909f!='boolean')return _0x2c17d9(0x15d)+_0x65a4dd+_0x2c17d9(0x141);}let _0x4aa9fc=_0x13e887['transform'];if(_0x4aa9fc){for(let _0x1da40b of[_0x2c17d9(0xd0),_0x2c17d9(0x126),_0x2c17d9(0xfb),_0x2c17d9(0x13e),_0x2c17d9(0xec)]){let _0x2d425c=_0x4aa9fc[_0x1da40b];if(_0x2d425c!==void 0x0&&!Number['isFinite'](_0x2d425c))return _0x2c17d9(0xc8)+_0x1da40b+'\x22\x20must\x20be\x20finite.';}if(_0x4aa9fc[_0x2c17d9(0xfb)]!==void 0x0&&_0x4aa9fc['width']<=0x0)return _0x2c17d9(0xeb);if(_0x4aa9fc['height']!==void 0x0&&_0x4aa9fc[_0x2c17d9(0x13e)]<=0x0)return _0x2c17d9(0x13b);for(let _0xeef9f4 of['flipX','flipY']){let _0x526480=_0x4aa9fc[_0xeef9f4];if(_0x526480!==void 0x0&&typeof _0x526480!=_0x2c17d9(0x108))return _0x2c17d9(0xc8)+_0xeef9f4+_0x2c17d9(0x141);}}let _0xd952d0=_0x13e887[_0x2c17d9(0x127)];return!_0x3e36a1&&_0xd952d0&&(_0x2c17d9(0x14a)in _0xd952d0||'points'in _0xd952d0)?_0x2c17d9(0x169):null;}var I=class extends P{[_0x433b6d(0xe2)](){return!0x0;}[_0x433b6d(0x11c)](){const _0x303365=_0x433b6d;let _0x11ae49=this[_0x303365(0xc6)]();return _0x11ae49?_0x16ae0e[_0x303365(0x17a)](_0x11ae49[_0x303365(0x13a)]):null;}[_0x433b6d(0xfc)](){const _0x5a1595=_0x433b6d;let _0x2dc3c5=this[_0x5a1595(0xc6)]();return _0x2dc3c5?_0x16ae0e[_0x5a1595(0x17a)](_0x2dc3c5['end']):null;}[_0x433b6d(0xc3)](){const _0x250c11=_0x433b6d;let _0x47e8dd=this[_0x250c11(0xc6)]();return _0x47e8dd?_0x16ae0e['deepClone'](_0x47e8dd[_0x250c11(0x167)]):null;}[_0x433b6d(0xea)](){const _0x1778c6=_0x433b6d;let _0xe74dae=this['_getConnectorSnapshot']();return _0xe74dae?_0x16ae0e[_0x1778c6(0x17a)](_0xe74dae[_0x1778c6(0x14c)]):null;}['getEndArrow'](){const _0xfcebe9=_0x433b6d;let _0x8f540d=this[_0xfcebe9(0xc6)]();return _0x8f540d?_0x16ae0e[_0xfcebe9(0x17a)](_0x8f540d[_0xfcebe9(0xe7)]):null;}['setShapeType'](_0x1fd7ce){const _0x26c2d3=_0x433b6d;return _0x27d6d1(_0x1fd7ce)?super[_0x26c2d3(0x159)](_0x1fd7ce):(console['warn'](_0x26c2d3(0x14f)+this['_shapeRef']['shapeId']+'\x22\x20requires\x20a\x20Connector\x20Shape\x20type.'),this);}[_0x433b6d(0x106)](_0x4d9d6d){const _0x133d3b=_0x433b6d;return _0x4d9d6d[_0x133d3b(0xc0)]!==void 0x0&&!_0x27d6d1(_0x4d9d6d[_0x133d3b(0xc0)])?(console[_0x133d3b(0x14b)](_0x133d3b(0x14f)+this[_0x133d3b(0x12b)][_0x133d3b(0x11b)]+_0x133d3b(0x16d)),this):super[_0x133d3b(0x106)](_0x4d9d6d);}['bindStart'](_0x332bb2,_0x54d764){const _0x2533a1=_0x433b6d;return this[_0x2533a1(0x172)](_0x2533a1(0x13a),_0x332bb2,_0x54d764),this;}[_0x433b6d(0x115)](_0x44c872,_0xaa3894){const _0x59f7f5=_0x433b6d;return this[_0x59f7f5(0x172)](_0x59f7f5(0x120),_0x44c872,_0xaa3894),this;}[_0x433b6d(0x165)](){const _0x28ccbc=_0x433b6d;return this[_0x28ccbc(0x156)]('unbind\x20start',_0x476863=>_0x476863[_0x28ccbc(0x165)](this[_0x28ccbc(0x12b)])),this;}[_0x433b6d(0xce)](){const _0x25cb13=_0x433b6d;return this[_0x25cb13(0x156)]('unbind\x20end',_0x36d1ef=>_0x36d1ef[_0x25cb13(0xce)](this[_0x25cb13(0x12b)])),this;}[_0x433b6d(0x131)](_0x505537){const _0x34ca23=_0x433b6d;return L(_0x505537,this[_0x34ca23(0x12b)][_0x34ca23(0x11b)])&&this['_mutateConnector'](_0x34ca23(0x143),_0x3059cd=>_0x3059cd['setStartPoint'](this[_0x34ca23(0x12b)],_0x505537)),this;}[_0x433b6d(0x13c)](_0x3177e6){const _0x5f0697=_0x433b6d;return L(_0x3177e6,this[_0x5f0697(0x12b)][_0x5f0697(0x11b)])&&this[_0x5f0697(0x156)]('set\x20end\x20point',_0x50a371=>_0x50a371[_0x5f0697(0x13c)](this[_0x5f0697(0x12b)],_0x3177e6)),this;}[_0x433b6d(0x171)](_0x51e0fb){const _0x4f97ba=_0x433b6d;return _0x51e0fb[_0x4f97ba(0x148)](_0x49ab3f=>L(_0x49ab3f,this['_shapeRef'][_0x4f97ba(0x11b)]))&&this[_0x4f97ba(0x156)](_0x4f97ba(0x128),_0x33b5a9=>_0x33b5a9[_0x4f97ba(0x171)](this[_0x4f97ba(0x12b)],_0x51e0fb)),this;}[_0x433b6d(0x121)](_0x9b7b39,_0x3d190c){const _0x4b1efe=_0x433b6d;return this[_0x4b1efe(0x156)](_0x4b1efe(0xd2),_0x449f92=>_0x449f92[_0x4b1efe(0x121)](this[_0x4b1efe(0x12b)],_0x9b7b39,_0x3d190c)),this;}[_0x433b6d(0xdd)](_0x2ffc04,_0x231698){const _0x2f7399=_0x433b6d;return this[_0x2f7399(0x156)](_0x2f7399(0x122),_0x4000ec=>_0x4000ec[_0x2f7399(0xdd)](this[_0x2f7399(0x12b)],_0x2ffc04,_0x231698)),this;}[_0x433b6d(0xf5)](){const _0x303321=_0x433b6d;return this[_0x303321(0x14d)][_0x303321(0x119)](_0x16708f);}[_0x433b6d(0xc6)](){const _0xaa1b3a=_0x433b6d;let _0x3ad847=this[_0xaa1b3a(0xf5)]();if(!_0x3ad847)return null;try{return _0x3ad847['getConnector'](this[_0xaa1b3a(0x12b)])||(console[_0xaa1b3a(0x14b)](_0xaa1b3a(0x14f)+this[_0xaa1b3a(0x12b)][_0xaa1b3a(0x11b)]+'\x22\x20was\x20not\x20found.'),null);}catch(_0x151655){return console[_0xaa1b3a(0x14b)](_0xaa1b3a(0xc2)+this[_0xaa1b3a(0x12b)][_0xaa1b3a(0x11b)]+'\x22.',_0x151655),null;}}['_bind'](_0x38133b,_0x231eb4,_0x5af6ef){const _0x87e083=_0x433b6d;if(!_0x231eb4||!Number['isInteger'](_0x5af6ef)||_0x5af6ef<0x0)return console[_0x87e083(0x14b)](_0x87e083(0x103)+this['_shapeRef'][_0x87e083(0x11b)]+_0x87e083(0x138)),!0x1;let _0x3879ba={'shapeId':_0x231eb4,'cxnIndex':_0x5af6ef};return this[_0x87e083(0x156)](_0x87e083(0x153)+_0x38133b,_0x78a972=>_0x38133b===_0x87e083(0x13a)?_0x78a972[_0x87e083(0x104)](this['_shapeRef'],_0x3879ba):_0x78a972['bindEnd'](this[_0x87e083(0x12b)],_0x3879ba));}[_0x433b6d(0x156)](_0x1f419b,_0xae1f31){const _0x1df699=_0x433b6d;let _0x4cc3ad=this['_getConnectorAdapter']();if(!_0x4cc3ad)return!0x1;try{let _0x23f4e8=_0xae1f31(_0x4cc3ad);return _0x23f4e8||console['warn'](_0x1df699(0x16c)+_0x1f419b+_0x1df699(0x109)+this[_0x1df699(0x12b)][_0x1df699(0x11b)]+'\x22.'),_0x23f4e8;}catch(_0x4b19a4){return console[_0x1df699(0x14b)]('[Shape\x20Facade]:\x20Failed\x20to\x20'+_0x1f419b+_0x1df699(0x109)+this[_0x1df699(0x12b)]['shapeId']+'\x22.',_0x4b19a4),!0x1;}}};function L(_0x12b1c2,_0x4dec93){const _0x32b112=_0x433b6d;return!Number['isFinite'](_0x12b1c2['x'])||!Number[_0x32b112(0x116)](_0x12b1c2['y'])?(console[_0x32b112(0x14b)](_0x32b112(0x103)+_0x4dec93+_0x32b112(0x155)),!0x1):!0x0;}export{I as FConnectorShape,P as FShape,N as FShapeText};
|
|
1
|
+
const _0x37f47e=_0x8476;(function(_0x5f47eb,_0x4abd52){const _0x2655e9=_0x8476,_0x3b18cf=_0x5f47eb();while(!![]){try{const _0x3c436e=-parseInt(_0x2655e9(0x1e9))/0x1+-parseInt(_0x2655e9(0x18b))/0x2+parseInt(_0x2655e9(0x1e1))/0x3+parseInt(_0x2655e9(0x241))/0x4*(parseInt(_0x2655e9(0x19a))/0x5)+-parseInt(_0x2655e9(0x20c))/0x6+parseInt(_0x2655e9(0x196))/0x7+-parseInt(_0x2655e9(0x223))/0x8*(-parseInt(_0x2655e9(0x229))/0x9);if(_0x3c436e===_0x4abd52)break;else _0x3b18cf['push'](_0x3b18cf['shift']());}catch(_0x20093b){_0x3b18cf['push'](_0x3b18cf['shift']());}}}(_0x5681,0x6e008));import{IConnectorShapeHostAdapter as _0x2afe61,IShapeHostAdapterRegistry as _0x5646d7,ImageFillModeEnum as _0x146104,ImageSourceTypeEnum as _0x501b58,ShapeArrowSizeEnum as _0x1fd4ed,ShapeArrowTypeEnum as _0x521b10,ShapeFillEnum as _0x1e1d7b,ShapeGradientTypeEnum as _0x47f713,ShapeLineCapEnum as _0x2d5f35,ShapeLineDashEnum as _0x1181c0,ShapeLineJoinEnum as _0x3e1a5a,ShapeLineTypeEnum as _0x2bc121,ShapeModel as _0x312d54,ShapeOperatorEnum as _0x28abd0,ShapeTextAutoFitType as _0x48a67b,ShapeTextDirection as _0x276613,ShapeTextWrapType as _0x1c69d8,ShapeTypeEnum as _0x3048a1,applyRichTextToShapeText as _0x58c084,applyShapeTextAlignment as _0x243be9,applyShapeTextBoxOptions as _0x4bd558,applyShapeTextStyle as _0x232f4d,applyTextToShapeText as _0x20fc7e,isConnectorShape as _0x1ce78f,parseSvgPathData as _0x538523,resolveShapeTextBoxOptions as _0x3a18c3,shapeTextToRichTextValue as _0xcf74b6}from'@univerjs-pro/engine-shape';function _0x8476(_0x9376c9,_0x2ccd86){_0x9376c9=_0x9376c9-0x168;const _0x568135=_0x5681();let _0x84761a=_0x568135[_0x9376c9];return _0x84761a;}import{FBase as _0x17417a,FEnum as _0x334ea1}from'@univerjs/core/facade';function _0x5681(){const _0x20a348=['4vLgUpp','ShapeTextAutoFitType','dataArray','\x20Connector\x20Shape\x20\x22','isFinite','[Shape\x20Facade]:\x20Custom\x20geometry\x20connection\x20sites\x20must\x20resolve\x20to\x20finite\x20coordinates.','_shapeHostAdapterRegistry','pathLst','setTransform','toPlainText','flipY','isVisible','defineProperty','isInteger','_patchStroke','_getConnectorAdapter','\x22\x20points\x20must\x20contain\x20finite\x20coordinates.','bindEnd','ShapeLineTypeEnum','bringForward','[Shape\x20Facade]:\x20Failed\x20to\x20read\x20Connector\x20Shape\x20\x22','createInstance','setRichText','picture','PictureFill','setStrokeLineCapType','send\x20backward','setStrokeColor','setCustomGeometry','getEndEndpoint','set\x20start\x20point','relation','ShapeFillEnum','Shape\x20width\x20must\x20be\x20greater\x20than\x20zero.','getCustomGeometry','has','SolidFill','URL','_bind','\x22\x20requires\x20a\x20Connector\x20Shape\x20type.','hostType','selectable','unbind\x20end','updateContext','setSelectable','setCustomGeometryFromSvgPath','getEndConnectInfo','[Shape\x20Facade]:\x20Custom\x20geometry\x20connection\x20site\x20','setEndPoint','872670iDjikp','setStrokeLineType','[Shape\x20Facade]:\x20Shape\x20adjustment\x20\x22','transform','decorate','boolean','flipX','setStrokeOpacity','end','_updateShapeData','getStartEndpoint','1601775ONndQl','ShapeArrowSizeEnum','shapeId','setBold','3508815yfQAjH','\x20requires\x20both\x20\x22x\x22\x20and\x20\x22y\x22.','getStartConnectInfo','gradient','setSize','\x22\x20requires\x20Connector\x20Shape\x20data.','_getGeometryModel','Tile','tile','[Shape\x20Facade]:\x20Failed\x20to\x20','getName','getAdjustNames','getTextBoxOptions','removeShape','getStartArrow','lineStrokeType','unbindStart','unbind\x20start','function','bind\x20','\x22\x20must\x20be\x20boolean.','fill','map','startArrow','setStartPoint','NoLine','setUnderline','setAdjustValueByName','send\x20to\x20back','getRoutePoints','setStrokeLineDashType','setShapeType','setImageFill','_commandService','_getConnectorSnapshot','[Shape\x20Facade]:\x20','getPlainText','rgba(0,\x200,\x200,\x200)','length','ShapeLineDashEnum','Shape\x20transform\x20\x22','object','\x22\x20does\x20not\x20exist.','remove','_getShapeData','isCustom','\x20Shape\x20\x22','shapeData','sendBackward','GradientFill','setNoneFill','getSnapshot','[Shape\x20Facade]:\x20Gradient\x20fill\x20requires\x20at\x20least\x20two\x20color\x20stops.','setText','solid','[Shape\x20Facade]:\x20Shape\x20\x22','_shapeRef','shapeType','offsetY','setFontFamily','setName','setSolidFill','getId','getConnectionSites','entries','getConnector','setFontSize','adjustValues','\x22\x20text.','_getAdapter','_injector','1980258CyeZaX','Shape\x20height\x20must\x20be\x20greater\x20than\x20zero.','FALSE','setStrokeLineJoinType','name','getShapeType','shapeText','ShapeGradientTypeEnum','649956mVsSug','start','getShapeData','width','cxnLst','_mutate','[Shape\x20Facade]:\x20Connector\x20Shape\x20\x22','set\x20end\x20point','setHorizontalAlign','ShapeImageFillModeEnum','getEndArrow','setStroke','none','fromEntries','radial','color','Connector\x20relationships\x20and\x20route\x20points\x20require\x20FConnectorShape.','[Shape\x20Text\x20Facade]:\x20Shape\x20\x22','SolidLine','_mutateConnector','_patchShapeData','top','Radial','update','getConnectionSiteList','scaleX','\x22\x20was\x20not\x20found.','sendToBack','extend','setShapeData','getTransform','set\x20end\x20arrow','warn','angular','setAdjustValues','2834598himSKk','\x22\x20must\x20be\x20finite.','data','TRUE','updateShape','[Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','visible','setRoutePoints','get','set\x20route\x20points','getAdjustInfo','rotation','offsetX','from','bringToFront','setColor','mode','ShapeLineJoinEnum','getText','height','[Shape\x20Text\x20Facade]:\x20Gradient\x20text\x20fill\x20requires\x20at\x20least\x20two\x20color\x20stops.','setRotation','getHostType','1674472NjReXa','getOwnPropertyDescriptor','isCustomShape','stroke','pathData','deepClone','18sHketP','isConnectorShape','setDescription','bindStart','setAbsolutePosition','setTextBoxOptions','setEndArrow','findIndex','stretch','[Shape\x20Text\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','ShapeLineCapEnum','setGradientFill','setTextStyle','[Shape\x20Facade]:\x20Connector\x20\x22','Diamond','_getSnapshot','\x22\x20binding\x20requires\x20a\x20target\x20Shape\x20ID\x20and\x20a\x20non-negative\x20connection\x20site\x20index.','description','ShapeArrowTypeEnum','getShape','left','diamond','scaleY','unbindEnd'];_0x5681=function(){return _0x20a348;};return _0x5681();}import{BooleanNumber as _0x2c38df,ICommandService as _0x27ebba,Tools as _0x30cdfd}from'@univerjs/core';var M=class extends _0x334ea1{get['ShapeTypeEnum'](){return _0x3048a1;}get[_0x37f47e(0x17a)](){return _0x1e1d7b;}get[_0x37f47e(0x1e8)](){return _0x47f713;}get[_0x37f47e(0x1f2)](){return _0x146104;}get['ShapeImageSourceTypeEnum'](){return _0x501b58;}get[_0x37f47e(0x16c)](){return _0x2bc121;}get[_0x37f47e(0x1c1)](){return _0x1181c0;}get[_0x37f47e(0x233)](){return _0x2d5f35;}get[_0x37f47e(0x21d)](){return _0x3e1a5a;}get['ShapeOperatorEnum'](){return _0x28abd0;}get[_0x37f47e(0x23b)](){return _0x521b10;}get[_0x37f47e(0x197)](){return _0x1fd4ed;}get[_0x37f47e(0x242)](){return _0x48a67b;}get['ShapeTextDirection'](){return _0x276613;}get['ShapeTextWrapType'](){return _0x1c69d8;}};_0x334ea1[_0x37f47e(0x205)](M);function N(_0x5602d9){const _0x29a497=_0x37f47e;switch(_0x5602d9){case _0x47f713[_0x29a497(0x1ff)]:return _0x29a497(0x1f7);case _0x47f713['Angular']:return _0x29a497(0x20a);case _0x47f713[_0x29a497(0x237)]:return _0x29a497(0x23e);case _0x47f713['Linear']:default:return'linear';}}function P(_0x2dae96){const _0x517468=_0x37f47e;return _0x2dae96===_0x146104[_0x517468(0x1a1)]?_0x517468(0x1a2):_0x517468(0x231);}var F=class{constructor(_0x3e1fb7,_0x106cdc){const _0x3b5107=_0x37f47e;this[_0x3b5107(0x1d2)]=_0x3e1fb7,this[_0x3b5107(0x1e0)]=_0x106cdc;}['getRichText'](){const _0x2b9358=_0x37f47e;var _0x597ecf;return _0xcf74b6((_0x597ecf=this[_0x2b9358(0x1c6)]())==null?void 0x0:_0x597ecf[_0x2b9358(0x1e7)]);}[_0x37f47e(0x1be)](){const _0x1ebb72=_0x37f47e;var _0x24ff47;return((_0x24ff47=this['getRichText']())==null?void 0x0:_0x24ff47[_0x1ebb72(0x24a)]())??null;}[_0x37f47e(0x170)](_0x19380d){const _0x379f7f=_0x37f47e;return this[_0x379f7f(0x194)](_0x1fcb4a=>({..._0x1fcb4a,'shapeText':_0x58c084(_0x1fcb4a['shapeText'],_0x19380d)})),this;}[_0x37f47e(0x1cf)](_0x2aea40){const _0x361f1a=_0x37f47e;return this[_0x361f1a(0x194)](_0x5821a2=>({..._0x5821a2,'shapeText':_0x20fc7e(_0x5821a2[_0x361f1a(0x1e7)],_0x2aea40)})),this;}[_0x37f47e(0x235)](_0x26d09b){const _0x595a95=_0x37f47e;return this['_updateShapeData'](_0x50a5be=>({..._0x50a5be,'shapeText':_0x232f4d(_0x50a5be[_0x595a95(0x1e7)],_0x26d09b)})),this;}[_0x37f47e(0x21b)](_0x4dbd0d,_0x3f06df){const _0x19493b=_0x37f47e;return this[_0x19493b(0x235)]({'cl':{'rgb':_0x4dbd0d},'textFill':{'type':_0x19493b(0x1d0),'color':_0x4dbd0d,'opacity':_0x3f06df}});}['setNoneFill'](){const _0x4d2ce4=_0x37f47e;return this[_0x4d2ce4(0x235)]({'cl':{'rgb':_0x4d2ce4(0x1bf)},'textFill':{'type':_0x4d2ce4(0x1f5)}});}[_0x37f47e(0x234)](_0x450d3d,_0x5c7761,_0x24f01e){const _0x57a7f8=_0x37f47e;return _0x5c7761['length']<0x2?(console[_0x57a7f8(0x209)](_0x57a7f8(0x220)),this):this['setTextStyle']({'cl':{'rgb':_0x5c7761[0x0][_0x57a7f8(0x1f8)]},'textFill':{'type':_0x57a7f8(0x19d),'gradient':{'type':N(_0x450d3d),'angle':_0x24f01e,'stops':_0x5c7761[_0x57a7f8(0x1b0)](({position:_0xa6a6bd,color:_0x44b9ac,opacity:_0x368deb})=>({'offset':_0xa6a6bd,'color':_0x44b9ac,'opacity':_0x368deb}))}}});}[_0x37f47e(0x1ba)](_0x40c43a,_0x247b2e=_0x501b58[_0x37f47e(0x17f)],_0x2e509c={}){const _0x3d38e4=_0x37f47e;return this[_0x3d38e4(0x235)]({'textFill':{'type':_0x3d38e4(0x171),'picture':{'source':_0x40c43a,'sourceType':_0x247b2e,'opacity':_0x2e509c['opacity'],'mode':P(_0x2e509c[_0x3d38e4(0x21c)]),'scaleX':_0x2e509c[_0x3d38e4(0x202)],'scaleY':_0x2e509c[_0x3d38e4(0x23f)],'offsetX':_0x2e509c[_0x3d38e4(0x218)],'offsetY':_0x2e509c[_0x3d38e4(0x1d4)]}}});}[_0x37f47e(0x1dc)](_0x3c50ac){return this['setTextStyle']({'fs':_0x3c50ac});}[_0x37f47e(0x1d5)](_0x5291a2){const _0x249145=_0x37f47e;return this[_0x249145(0x235)]({'ff':_0x5291a2});}[_0x37f47e(0x199)](_0x2b1927){const _0x46b27a=_0x37f47e;return this[_0x46b27a(0x235)]({'bl':_0x2b1927?_0x2c38df['TRUE']:_0x2c38df[_0x46b27a(0x1e3)]});}['setItalic'](_0x28128f){const _0x22fc31=_0x37f47e;return this['setTextStyle']({'it':_0x28128f?_0x2c38df[_0x22fc31(0x20f)]:_0x2c38df[_0x22fc31(0x1e3)]});}[_0x37f47e(0x1b4)](_0x29ef05){const _0x15b49c=_0x37f47e;return this[_0x15b49c(0x235)]({'ul':{'s':_0x29ef05?_0x2c38df[_0x15b49c(0x20f)]:_0x2c38df[_0x15b49c(0x1e3)]}});}['setStrikethrough'](_0xe54873){const _0x186581=_0x37f47e;return this[_0x186581(0x235)]({'st':{'s':_0xe54873?_0x2c38df['TRUE']:_0x2c38df['FALSE']}});}[_0x37f47e(0x1f1)](_0x3f4c89){const _0xa07e57=_0x37f47e;return this[_0xa07e57(0x194)](_0x4460d5=>_0x243be9(_0x4460d5,{'horizontalAlign':_0x3f4c89})),this;}['setVerticalAlign'](_0x4928d7){return this['_updateShapeData'](_0x12313c=>_0x243be9(_0x12313c,{'verticalAlign':_0x4928d7})),this;}[_0x37f47e(0x1a6)](){const _0x501653=_0x37f47e;let _0x3f8b10=this[_0x501653(0x1c6)]();return _0x3f8b10?_0x3a18c3(_0x3f8b10):null;}[_0x37f47e(0x22e)](_0x26cd4f){return this['_updateShapeData'](_0x10286c=>_0x4bd558(_0x10286c,_0x26cd4f)),this;}['_getAdapter'](){const _0x2f6268=_0x37f47e;return this[_0x2f6268(0x1e0)]['get'](_0x5646d7)[_0x2f6268(0x214)](this[_0x2f6268(0x1d2)][_0x2f6268(0x182)]);}['_getShapeData'](){const _0x3f7516=_0x37f47e;let _0x886007=this[_0x3f7516(0x1df)]();if(!_0x886007)return null;try{var _0x208575;return((_0x208575=_0x886007[_0x3f7516(0x23c)](this[_0x3f7516(0x1d2)]))==null?void 0x0:_0x208575[_0x3f7516(0x1c9)])||(console[_0x3f7516(0x209)](_0x3f7516(0x1fa)+this[_0x3f7516(0x1d2)]['shapeId']+'\x22\x20was\x20not\x20found.'),null);}catch(_0x57bf67){return console['warn'](_0x3f7516(0x232)+this[_0x3f7516(0x1d2)]['shapeId']+_0x3f7516(0x1de),_0x57bf67),null;}}['_updateShapeData'](_0x3b287e){const _0x4c15f5=_0x37f47e;let _0x4b05d5=this[_0x4c15f5(0x1df)]();if(!_0x4b05d5)return!0x1;try{var _0x3e0109;let _0x29d318=(_0x3e0109=_0x4b05d5[_0x4c15f5(0x23c)](this[_0x4c15f5(0x1d2)]))==null?void 0x0:_0x3e0109[_0x4c15f5(0x1c9)];if(!_0x29d318)return console[_0x4c15f5(0x209)](_0x4c15f5(0x1fa)+this[_0x4c15f5(0x1d2)][_0x4c15f5(0x198)]+_0x4c15f5(0x203)),!0x1;let _0x2d5059=_0x4b05d5[_0x4c15f5(0x210)](this['_shapeRef'],{'shapeData':_0x3b287e(_0x29d318)});return _0x2d5059||console['warn']('[Shape\x20Text\x20Facade]:\x20Failed\x20to\x20update\x20Shape\x20\x22'+this[_0x4c15f5(0x1d2)]['shapeId']+_0x4c15f5(0x1de)),_0x2d5059;}catch(_0x1f890b){return console[_0x4c15f5(0x209)]('[Shape\x20Text\x20Facade]:\x20Failed\x20to\x20update\x20Shape\x20\x22'+this[_0x4c15f5(0x1d2)]['shapeId']+_0x4c15f5(0x1de),_0x1f890b),!0x1;}}};function I(_0x5ec222,_0x590ee4){return function(_0x56f3ee,_0x5ed20f){_0x590ee4(_0x56f3ee,_0x5ed20f,_0x5ec222);};}function L(_0x20d5ba,_0x5d1d44,_0x5c813c,_0x5ab6d2){const _0x35fea0=_0x37f47e;var _0x455472=arguments['length'],_0x6bcd63=_0x455472<0x3?_0x5d1d44:_0x5ab6d2===null?_0x5ab6d2=Object[_0x35fea0(0x224)](_0x5d1d44,_0x5c813c):_0x5ab6d2,_0x3f52f3;if(typeof Reflect==_0x35fea0(0x1c3)&&typeof Reflect[_0x35fea0(0x18f)]==_0x35fea0(0x1ac))_0x6bcd63=Reflect[_0x35fea0(0x18f)](_0x20d5ba,_0x5d1d44,_0x5c813c,_0x5ab6d2);else{for(var _0x311fcc=_0x20d5ba[_0x35fea0(0x1c0)]-0x1;_0x311fcc>=0x0;_0x311fcc--)(_0x3f52f3=_0x20d5ba[_0x311fcc])&&(_0x6bcd63=(_0x455472<0x3?_0x3f52f3(_0x6bcd63):_0x455472>0x3?_0x3f52f3(_0x5d1d44,_0x5c813c,_0x6bcd63):_0x3f52f3(_0x5d1d44,_0x5c813c))||_0x6bcd63);}return _0x455472>0x3&&_0x6bcd63&&Object[_0x35fea0(0x24d)](_0x5d1d44,_0x5c813c,_0x6bcd63),_0x6bcd63;}function R(_0x31383f){const _0x230560=_0x37f47e;let _0x2c2f39=_0x30cdfd[_0x230560(0x228)](_0x31383f);return _0x2c2f39[_0x230560(0x248)]&&=_0x2c2f39[_0x230560(0x248)]['map'](_0x316d49=>{const _0x2b1104=_0x230560;var _0x1dfbfe;if((_0x1dfbfe=_0x316d49[_0x2b1104(0x243)])!=null&&_0x1dfbfe[_0x2b1104(0x1c0)]){let {data:_0x34aa28,..._0x4ff3ec}=_0x316d49;return _0x4ff3ec;}if(_0x316d49['data']===void 0x0)return _0x316d49;let _0xc14f70=_0x538523(_0x316d49[_0x2b1104(0x20e)]),{data:_0x2e6df9,..._0x28c353}=_0x316d49;return{..._0x28c353,'dataArray':_0xc14f70};}),_0x2c2f39;}let z=class extends _0x17417a{constructor(_0x2d2bb6,_0x8f311,_0x2d0e68,_0x17fadb){const _0xd73dda=_0x37f47e;super(),this[_0xd73dda(0x1d2)]=_0x2d2bb6,this['_injector']=_0x8f311,this[_0xd73dda(0x247)]=_0x2d0e68,this[_0xd73dda(0x1bb)]=_0x17fadb;}[_0x37f47e(0x22a)](){return!0x1;}[_0x37f47e(0x1d8)](){const _0x5ce1a5=_0x37f47e;return this[_0x5ce1a5(0x1d2)][_0x5ce1a5(0x198)];}[_0x37f47e(0x1a4)](){const _0x318735=_0x37f47e;var _0x14be78;return(_0x14be78=this[_0x318735(0x238)]())==null?void 0x0:_0x14be78[_0x318735(0x1e5)];}[_0x37f47e(0x1d6)](_0x50452b){const _0xe07538=_0x37f47e;return this[_0xe07538(0x200)]({'name':_0x50452b});}['getDescription'](){const _0xaeea8e=_0x37f47e;var _0x427aa7;return(_0x427aa7=this[_0xaeea8e(0x238)]())==null?void 0x0:_0x427aa7[_0xaeea8e(0x23a)];}[_0x37f47e(0x22b)](_0x1d4747){const _0x4f5471=_0x37f47e;return this[_0x4f5471(0x200)]({'description':_0x1d4747});}[_0x37f47e(0x222)](){const _0x470c66=_0x37f47e;return this[_0x470c66(0x1d2)]['hostType'];}[_0x37f47e(0x1e6)](){const _0x2fa4e5=_0x37f47e;var _0x2cc95a;return((_0x2cc95a=this['_getSnapshot']())==null?void 0x0:_0x2cc95a[_0x2fa4e5(0x1d3)])??null;}['getShapeData'](){let _0x3be989=this['_getSnapshot']();return _0x3be989?_0x30cdfd['deepClone'](_0x3be989['shapeData']):null;}[_0x37f47e(0x1cd)](){const _0x1aaa46=_0x37f47e;let _0x1c147d=this[_0x1aaa46(0x238)]();return _0x1c147d?_0x30cdfd['deepClone'](_0x1c147d):null;}[_0x37f47e(0x207)](){const _0x43ebee=_0x37f47e;let _0x5cf1c1=this[_0x43ebee(0x238)]();return _0x5cf1c1?{..._0x5cf1c1[_0x43ebee(0x18e)]}:null;}[_0x37f47e(0x24c)](){const _0x1efd57=_0x37f47e;var _0x33bf06;return((_0x33bf06=this[_0x1efd57(0x238)]())==null?void 0x0:_0x33bf06[_0x1efd57(0x212)])??!0x1;}['setVisible'](_0x179402){const _0x52538f=_0x37f47e;return this[_0x52538f(0x200)]({'visible':_0x179402});}['isSelectable'](){const _0x382036=_0x37f47e;var _0xc94480;return((_0xc94480=this[_0x382036(0x238)]())==null?void 0x0:_0xc94480['selectable'])??!0x1;}[_0x37f47e(0x186)](_0x532a35){const _0x2f0253=_0x37f47e;return this[_0x2f0253(0x200)]({'selectable':_0x532a35});}[_0x37f47e(0x21e)](){const _0x1afa4a=_0x37f47e;return this['_injector'][_0x1afa4a(0x16f)](F,this[_0x1afa4a(0x1d2)],this[_0x1afa4a(0x1e0)]);}[_0x37f47e(0x225)](){const _0x379ac1=_0x37f47e;let _0x444cad=this['getShapeData']();return(_0x444cad==null?void 0x0:_0x444cad[_0x379ac1(0x1c7)])===!0x0&&!!_0x444cad['customGeometry'];}[_0x37f47e(0x17c)](){const _0x41d11e=_0x37f47e;var _0x1218f1;return((_0x1218f1=this[_0x41d11e(0x1eb)]())==null?void 0x0:_0x1218f1['customGeometry'])??null;}['setShapeType'](_0x181a94){const _0x60d316=_0x37f47e;return this[_0x60d316(0x1fd)](_0x2388ba=>({..._0x2388ba,'shapeType':_0x181a94}),_0x181a94);}['setShapeData'](_0x5b5faa){const _0x149695=_0x37f47e;let _0x22ce1e=_0x30cdfd[_0x149695(0x228)](_0x5b5faa);return this['update']({'shapeType':_0x22ce1e[_0x149695(0x1d3)],'shapeData':_0x22ce1e});}[_0x37f47e(0x249)](_0x44961e){const _0x1bf064=_0x37f47e;return this[_0x1bf064(0x200)]({'transform':_0x44961e});}[_0x37f47e(0x19e)](_0x560647,_0x3bf8bc){const _0x4445b8=_0x37f47e;return this[_0x4445b8(0x249)]({'width':_0x560647,'height':_0x3bf8bc});}[_0x37f47e(0x221)](_0x433285){return this['setTransform']({'rotation':_0x433285});}[_0x37f47e(0x22d)](_0x397698,_0x472ea6){return this['setTransform']({'left':_0x397698,'top':_0x472ea6});}['setCustomGeometry'](_0x46add4){const _0x3f4ce7=_0x37f47e;var _0x52dbdb,_0x2858db;let _0x527e6f=((_0x52dbdb=_0x46add4[_0x3f4ce7(0x1ed)])==null?void 0x0:_0x52dbdb[_0x3f4ce7(0x230)](({x:_0x405251,y:_0x588afb})=>_0x405251===void 0x0||_0x588afb===void 0x0))??-0x1;if(_0x527e6f>=0x0)return console['warn'](_0x3f4ce7(0x189)+_0x527e6f+_0x3f4ce7(0x19b)),this;let _0xa470a0=R(_0x46add4);if((_0x2858db=_0xa470a0[_0x3f4ce7(0x1ed)])!=null&&_0x2858db['length']){let _0xec6c6=this[_0x3f4ce7(0x238)]();if(!_0xec6c6)return this;try{let _0x2df6cc=new _0x312d54(_0xec6c6[_0x3f4ce7(0x1d3)],_0xec6c6[_0x3f4ce7(0x198)],{..._0xec6c6['shapeData'],'isCustom':!0x0,'customGeometry':_0xa470a0});_0x2df6cc[_0x3f4ce7(0x185)]({'width':_0xec6c6['transform'][_0x3f4ce7(0x1ec)],'height':_0xec6c6[_0x3f4ce7(0x18e)][_0x3f4ce7(0x21f)]}),_0x2df6cc[_0x3f4ce7(0x201)]();}catch{return console[_0x3f4ce7(0x209)](_0x3f4ce7(0x246)),this;}}return this[_0x3f4ce7(0x1fd)](_0x29335b=>({..._0x29335b,'isCustom':!0x0,'customGeometry':_0xa470a0}));}[_0x37f47e(0x187)](_0x5be5a0){const _0x2b61eb=_0x37f47e;return this[_0x2b61eb(0x176)]({'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x5be5a0[_0x2b61eb(0x1ec)],'h':_0x5be5a0[_0x2b61eb(0x21f)],'fill':_0x5be5a0[_0x2b61eb(0x1af)],'stroke':_0x5be5a0[_0x2b61eb(0x226)],'data':_0x5be5a0[_0x2b61eb(0x227)]}]});}[_0x37f47e(0x1d9)](){const _0x11a53d=_0x37f47e;var _0x5ac81;return((_0x5ac81=this['_getGeometryModel']())==null?void 0x0:_0x5ac81[_0x11a53d(0x201)]()['map'](_0x2c8c23=>({..._0x2c8c23})))??[];}[_0x37f47e(0x19c)](){const _0xb618ed=_0x37f47e;var _0xaf7edf;let _0x1ab475=(_0xaf7edf=this[_0xb618ed(0x1a0)]())==null?void 0x0:_0xaf7edf[_0xb618ed(0x19c)]();return _0x1ab475?{..._0x1ab475}:null;}[_0x37f47e(0x188)](){const _0x1eadf5=_0x37f47e;var _0x27c76d;let _0x397e24=(_0x27c76d=this[_0x1eadf5(0x1a0)]())==null?void 0x0:_0x27c76d['getEndConnectInfo']();return _0x397e24?{..._0x397e24}:null;}['getAdjustHandles'](){const _0x122204=_0x37f47e;var _0x4baf8f;let _0x4f8664=this['_getGeometryModel'](),_0x2eaf3a=(_0x4f8664==null||(_0x4baf8f=_0x4f8664['getPresetShapeConfig']()['ahLst'])==null?void 0x0:_0x4baf8f[_0x122204(0x1c0)])??0x0;return!_0x4f8664||_0x2eaf3a===0x0?[]:Array[_0x122204(0x219)]({'length':_0x2eaf3a},(_0x5ee122,_0x4e5b3a)=>_0x4f8664[_0x122204(0x216)](_0x4e5b3a))['filter'](_0x35f791=>_0x35f791!==void 0x0)['map'](_0x33d316=>_0x30cdfd[_0x122204(0x228)](_0x33d316));}[_0x37f47e(0x20b)](_0x5675c8){const _0x4dbddc=_0x37f47e;let _0x1503ec=Object[_0x4dbddc(0x1da)](_0x5675c8);if(_0x1503ec['length']===0x0)return this;let _0x5d0b8e=this[_0x4dbddc(0x1a0)]();if(!_0x5d0b8e)return this;let _0x1c2c50=new Set(_0x5d0b8e[_0x4dbddc(0x1a5)]());for(let [_0x3513e7,_0x5c7c18]of _0x1503ec){if(!_0x1c2c50[_0x4dbddc(0x17d)](_0x3513e7))return console[_0x4dbddc(0x209)](_0x4dbddc(0x18d)+_0x3513e7+_0x4dbddc(0x1c4)),this;if(!Number[_0x4dbddc(0x245)](_0x5c7c18))return console[_0x4dbddc(0x209)](_0x4dbddc(0x18d)+_0x3513e7+_0x4dbddc(0x20d)),this;}let _0x35feda=Object[_0x4dbddc(0x1f6)](_0x1503ec[_0x4dbddc(0x1b0)](([_0x12e7b8,_0x4cbee9])=>[_0x12e7b8,_0x5d0b8e[_0x4dbddc(0x1b5)](_0x12e7b8,_0x4cbee9)]));return this[_0x4dbddc(0x1fd)](_0x55ad50=>({..._0x55ad50,'adjustValues':{..._0x55ad50[_0x4dbddc(0x1dd)],..._0x35feda}}));}['resetAdjustValues'](){const _0x5ecc55=_0x37f47e;let _0x181364=this[_0x5ecc55(0x1eb)]();return _0x181364!=null&&_0x181364[_0x5ecc55(0x1dd)]?(delete _0x181364[_0x5ecc55(0x1dd)],this[_0x5ecc55(0x200)]({'shapeData':_0x181364})):this;}[_0x37f47e(0x1d7)](_0xa005a9,_0x1f0ddf){const _0x302b1c=_0x37f47e;return this[_0x302b1c(0x1fd)](_0x4912eb=>({..._0x4912eb,'fill':{'fillType':_0x1e1d7b[_0x302b1c(0x17e)],'color':_0xa005a9,'opacity':_0x1f0ddf}}));}[_0x37f47e(0x234)](_0x4ea3a2,_0x16639d,_0x3a90d4){const _0x3cc21d=_0x37f47e;return _0x16639d[_0x3cc21d(0x1c0)]<0x2?(console['warn'](_0x3cc21d(0x1ce)),this):this[_0x3cc21d(0x1fd)](_0x19c186=>({..._0x19c186,'fill':{'fillType':_0x1e1d7b[_0x3cc21d(0x1cb)],'gradientType':_0x4ea3a2,'gradientStops':_0x30cdfd[_0x3cc21d(0x228)](_0x16639d),'gradientAngle':_0x3a90d4}}));}[_0x37f47e(0x1ba)](_0x141cc8,_0x1b26c1,_0x3c9702={}){const _0x432518=_0x37f47e;return this[_0x432518(0x1fd)](_0x237f78=>({..._0x237f78,'fill':{..._0x30cdfd['deepClone'](_0x3c9702),'fillType':_0x1e1d7b[_0x432518(0x172)],'fillImageSource':_0x141cc8,'fillImageSourceType':_0x1b26c1}}));}[_0x37f47e(0x1cc)](){const _0x15980f=_0x37f47e;return this[_0x15980f(0x1fd)](_0x3edc92=>({..._0x3edc92,'fill':{'fillType':_0x1e1d7b['NoFill']}}));}[_0x37f47e(0x1f4)](_0x27a387){const _0x19f51f=_0x37f47e;return this[_0x19f51f(0x1fd)](_0x772998=>({..._0x772998,'stroke':_0x30cdfd[_0x19f51f(0x228)](_0x27a387)}));}[_0x37f47e(0x175)](_0x1b4618){const _0xce0e1f=_0x37f47e;return this['_patchStroke'](_0x5ae4de=>({..._0x5ae4de,'color':_0x1b4618,'lineStrokeType':_0x5ae4de[_0xce0e1f(0x1a9)]===_0x2bc121[_0xce0e1f(0x1b3)]?_0x2bc121[_0xce0e1f(0x1fb)]:_0x5ae4de[_0xce0e1f(0x1a9)]}));}['setStrokeWidth'](_0x49f71c){const _0x3c09c8=_0x37f47e;return this[_0x3c09c8(0x168)](_0x38e317=>({..._0x38e317,'width':_0x49f71c,'lineStrokeType':_0x38e317[_0x3c09c8(0x1a9)]===_0x2bc121[_0x3c09c8(0x1b3)]?_0x2bc121['SolidLine']:_0x38e317[_0x3c09c8(0x1a9)]}));}[_0x37f47e(0x192)](_0x3a42f8){const _0x260753=_0x37f47e;return this[_0x260753(0x168)](_0x58b4b8=>({..._0x58b4b8,'opacity':_0x3a42f8}));}[_0x37f47e(0x1b8)](_0xb6bac8){const _0x2d50b8=_0x37f47e;return this[_0x2d50b8(0x168)](_0xd42db5=>({..._0xd42db5,'dashType':_0xb6bac8}));}[_0x37f47e(0x1e4)](_0x547a13){const _0x5038b6=_0x37f47e;return this[_0x5038b6(0x168)](_0x3451e0=>({..._0x3451e0,'lineJoinType':_0x547a13}));}[_0x37f47e(0x173)](_0x38901f){const _0x4a2217=_0x37f47e;return this[_0x4a2217(0x168)](_0x42343e=>({..._0x42343e,'capType':_0x38901f}));}[_0x37f47e(0x18c)](_0x4f7c0b){const _0x2780a2=_0x37f47e;return this[_0x2780a2(0x168)](_0x5e581b=>({..._0x5e581b,'lineStrokeType':_0x4f7c0b}));}[_0x37f47e(0x200)](_0x3069a6){const _0x3d8abd=_0x37f47e;var _0x3043ef;let _0x5a0b65=_0x3069a6[_0x3d8abd(0x1c9)],_0x129450=_0x5a0b65&&('relation'in _0x5a0b65||'points'in _0x5a0b65)?this[_0x3d8abd(0x1e6)]():null,_0x23b126=_0x3069a6['shapeType']??((_0x3043ef=_0x3069a6[_0x3d8abd(0x1c9)])==null?void 0x0:_0x3043ef[_0x3d8abd(0x1d3)])??_0x129450,_0x37e1cb=B(_0x3069a6,_0x23b126!==null&&_0x1ce78f(_0x23b126));return _0x37e1cb?(console[_0x3d8abd(0x209)](_0x3d8abd(0x1bd)+_0x37e1cb),this):(this['_mutate'](_0x3d8abd(0x200),_0x3e9e38=>_0x3e9e38[_0x3d8abd(0x210)](this[_0x3d8abd(0x1d2)],_0x3069a6)),this);}[_0x37f47e(0x1c5)](){const _0x5204c4=_0x37f47e;return this[_0x5204c4(0x1ee)]('remove',_0x3a71cc=>_0x3a71cc[_0x5204c4(0x1a7)](this[_0x5204c4(0x1d2)]));}[_0x37f47e(0x21a)](){const _0x591cc2=_0x37f47e;return this[_0x591cc2(0x1ee)]('bring\x20to\x20front',_0x26f816=>_0x26f816[_0x591cc2(0x21a)](this['_shapeRef'])),this;}[_0x37f47e(0x16d)](){const _0x5895db=_0x37f47e;return this[_0x5895db(0x1ee)]('bring\x20forward',_0x63f644=>_0x63f644['bringForward'](this[_0x5895db(0x1d2)])),this;}[_0x37f47e(0x1ca)](){const _0x4affdd=_0x37f47e;return this[_0x4affdd(0x1ee)](_0x4affdd(0x174),_0x5345c8=>_0x5345c8['sendBackward'](this[_0x4affdd(0x1d2)])),this;}[_0x37f47e(0x204)](){const _0x5ab8ec=_0x37f47e;return this[_0x5ab8ec(0x1ee)](_0x5ab8ec(0x1b6),_0x17d16f=>_0x17d16f[_0x5ab8ec(0x204)](this[_0x5ab8ec(0x1d2)])),this;}[_0x37f47e(0x1df)](){const _0x111c70=_0x37f47e;return this[_0x111c70(0x247)][_0x111c70(0x214)](this[_0x111c70(0x1d2)]['hostType']);}[_0x37f47e(0x1fd)](_0x3a9ceb,_0xe7595f){let _0x216615=this['getShapeData']();return _0x216615?this['update']({'shapeType':_0xe7595f,'shapeData':_0x3a9ceb(_0x216615)}):this;}[_0x37f47e(0x168)](_0x16485a){const _0x3c0775=_0x37f47e;return this[_0x3c0775(0x1fd)](_0x5a7184=>({..._0x5a7184,'stroke':_0x16485a(_0x5a7184['stroke']??{})}));}[_0x37f47e(0x238)](){const _0x5e7be6=_0x37f47e;let _0xc6b69a=this[_0x5e7be6(0x1df)]();if(!_0xc6b69a)return null;try{return _0xc6b69a[_0x5e7be6(0x23c)](this[_0x5e7be6(0x1d2)])||(console['warn'](_0x5e7be6(0x1d1)+this[_0x5e7be6(0x1d2)]['shapeId']+_0x5e7be6(0x203)),null);}catch(_0x5b71e7){return console[_0x5e7be6(0x209)](_0x5e7be6(0x211)+this[_0x5e7be6(0x1d2)][_0x5e7be6(0x198)]+'\x22.',_0x5b71e7),null;}}[_0x37f47e(0x1a0)](){const _0x586dc7=_0x37f47e;let _0x45e542=this[_0x586dc7(0x238)]();if(!_0x45e542)return null;try{let _0x35b85a=new _0x312d54(_0x45e542[_0x586dc7(0x1d3)],_0x45e542[_0x586dc7(0x198)],_0x30cdfd[_0x586dc7(0x228)](_0x45e542[_0x586dc7(0x1c9)]));return _0x35b85a[_0x586dc7(0x185)]({'width':_0x45e542[_0x586dc7(0x18e)][_0x586dc7(0x1ec)],'height':_0x45e542[_0x586dc7(0x18e)][_0x586dc7(0x21f)]}),_0x35b85a;}catch(_0x521c69){return console[_0x586dc7(0x209)]('[Shape\x20Facade]:\x20Failed\x20to\x20resolve\x20geometry\x20for\x20Shape\x20\x22'+this[_0x586dc7(0x1d2)][_0x586dc7(0x198)]+'\x22.',_0x521c69),null;}}['_mutate'](_0x299c8f,_0x54b8bd){const _0x48473d=_0x37f47e;let _0xa4783=this[_0x48473d(0x1df)]();if(!_0xa4783)return!0x1;try{let _0x29a2d9=_0x54b8bd(_0xa4783);return _0x29a2d9||console[_0x48473d(0x209)](_0x48473d(0x1a3)+_0x299c8f+_0x48473d(0x1c8)+this['_shapeRef'][_0x48473d(0x198)]+'\x22.'),_0x29a2d9;}catch(_0x5afb93){return console[_0x48473d(0x209)]('[Shape\x20Facade]:\x20Failed\x20to\x20'+_0x299c8f+_0x48473d(0x1c8)+this[_0x48473d(0x1d2)][_0x48473d(0x198)]+'\x22.',_0x5afb93),!0x1;}}};z=L([I(0x2,_0x5646d7),I(0x3,_0x27ebba)],z);function B(_0x31d670,_0x5041be=!0x1){const _0xea71aa=_0x37f47e;for(let _0x18e367 of['visible',_0xea71aa(0x183)]){let _0x390b24=_0x31d670[_0x18e367];if(_0x390b24!==void 0x0&&typeof _0x390b24!=_0xea71aa(0x190))return'Shape\x20\x22'+_0x18e367+'\x22\x20must\x20be\x20boolean.';}let _0x5c6150=_0x31d670['transform'];if(_0x5c6150){for(let _0x3c096c of[_0xea71aa(0x23d),_0xea71aa(0x1fe),_0xea71aa(0x1ec),_0xea71aa(0x21f),_0xea71aa(0x217)]){let _0x45b08b=_0x5c6150[_0x3c096c];if(_0x45b08b!==void 0x0&&!Number['isFinite'](_0x45b08b))return _0xea71aa(0x1c2)+_0x3c096c+_0xea71aa(0x20d);}if(_0x5c6150['width']!==void 0x0&&_0x5c6150[_0xea71aa(0x1ec)]<=0x0)return _0xea71aa(0x17b);if(_0x5c6150[_0xea71aa(0x21f)]!==void 0x0&&_0x5c6150[_0xea71aa(0x21f)]<=0x0)return _0xea71aa(0x1e2);for(let _0x3f38dc of[_0xea71aa(0x191),_0xea71aa(0x24b)]){let _0x55bba2=_0x5c6150[_0x3f38dc];if(_0x55bba2!==void 0x0&&typeof _0x55bba2!=_0xea71aa(0x190))return _0xea71aa(0x1c2)+_0x3f38dc+_0xea71aa(0x1ae);}}let _0x1b7c0d=_0x31d670[_0xea71aa(0x1c9)];return!_0x5041be&&_0x1b7c0d&&(_0xea71aa(0x179)in _0x1b7c0d||'points'in _0x1b7c0d)?_0xea71aa(0x1f9):null;}var V=class extends z{[_0x37f47e(0x22a)](){return!0x0;}[_0x37f47e(0x195)](){const _0xcdcf6a=_0x37f47e;let _0x4690f4=this[_0xcdcf6a(0x1bc)]();return _0x4690f4?_0x30cdfd[_0xcdcf6a(0x228)](_0x4690f4[_0xcdcf6a(0x1ea)]):null;}[_0x37f47e(0x177)](){const _0xaed08b=_0x37f47e;let _0x791c8d=this[_0xaed08b(0x1bc)]();return _0x791c8d?_0x30cdfd[_0xaed08b(0x228)](_0x791c8d['end']):null;}[_0x37f47e(0x1b7)](){const _0xecd640=_0x37f47e;let _0x411870=this[_0xecd640(0x1bc)]();return _0x411870?_0x30cdfd[_0xecd640(0x228)](_0x411870['routePoints']):null;}[_0x37f47e(0x1a8)](){const _0x349d50=_0x37f47e;let _0x40b8f4=this[_0x349d50(0x1bc)]();return _0x40b8f4?_0x30cdfd['deepClone'](_0x40b8f4[_0x349d50(0x1b1)]):null;}[_0x37f47e(0x1f3)](){const _0x3c0060=_0x37f47e;let _0x29b9a7=this[_0x3c0060(0x1bc)]();return _0x29b9a7?_0x30cdfd[_0x3c0060(0x228)](_0x29b9a7['endArrow']):null;}[_0x37f47e(0x1b9)](_0x1fba43){const _0x44d385=_0x37f47e;return _0x1ce78f(_0x1fba43)?super[_0x44d385(0x1b9)](_0x1fba43):(console[_0x44d385(0x209)](_0x44d385(0x1ef)+this[_0x44d385(0x1d2)][_0x44d385(0x198)]+_0x44d385(0x181)),this);}['setShapeData'](_0x5141a0){const _0x43bc69=_0x37f47e;return _0x5141a0[_0x43bc69(0x1d3)]!==void 0x0&&!_0x1ce78f(_0x5141a0[_0x43bc69(0x1d3)])?(console[_0x43bc69(0x209)](_0x43bc69(0x1ef)+this[_0x43bc69(0x1d2)]['shapeId']+_0x43bc69(0x19f)),this):super[_0x43bc69(0x206)](_0x5141a0);}[_0x37f47e(0x22c)](_0x5ad556,_0x562549){const _0x16656a=_0x37f47e;return this[_0x16656a(0x180)](_0x16656a(0x1ea),_0x5ad556,_0x562549),this;}[_0x37f47e(0x16b)](_0x25090b,_0x13ba41){const _0x359f1a=_0x37f47e;return this[_0x359f1a(0x180)](_0x359f1a(0x193),_0x25090b,_0x13ba41),this;}[_0x37f47e(0x1aa)](){const _0x2a660f=_0x37f47e;return this[_0x2a660f(0x1fc)](_0x2a660f(0x1ab),_0x50eb1f=>_0x50eb1f[_0x2a660f(0x1aa)](this[_0x2a660f(0x1d2)])),this;}[_0x37f47e(0x240)](){const _0x603b80=_0x37f47e;return this[_0x603b80(0x1fc)](_0x603b80(0x184),_0x145051=>_0x145051[_0x603b80(0x240)](this[_0x603b80(0x1d2)])),this;}['setStartPoint'](_0x5550df){const _0x3d128e=_0x37f47e;return H(_0x5550df,this['_shapeRef'][_0x3d128e(0x198)])&&this[_0x3d128e(0x1fc)](_0x3d128e(0x178),_0x358a02=>_0x358a02[_0x3d128e(0x1b2)](this[_0x3d128e(0x1d2)],_0x5550df)),this;}[_0x37f47e(0x18a)](_0xe9260b){const _0x10eec6=_0x37f47e;return H(_0xe9260b,this[_0x10eec6(0x1d2)][_0x10eec6(0x198)])&&this[_0x10eec6(0x1fc)](_0x10eec6(0x1f0),_0x8e2cc7=>_0x8e2cc7['setEndPoint'](this[_0x10eec6(0x1d2)],_0xe9260b)),this;}[_0x37f47e(0x213)](_0x9abb0d){const _0x157fe3=_0x37f47e;return _0x9abb0d['every'](_0x166f9b=>H(_0x166f9b,this[_0x157fe3(0x1d2)][_0x157fe3(0x198)]))&&this[_0x157fe3(0x1fc)](_0x157fe3(0x215),_0x30ed0b=>_0x30ed0b[_0x157fe3(0x213)](this[_0x157fe3(0x1d2)],_0x9abb0d)),this;}['setStartArrow'](_0x3a9239,_0x27ecfc){const _0x38e909=_0x37f47e;return this[_0x38e909(0x1fc)]('set\x20start\x20arrow',_0x316e72=>_0x316e72['setStartArrow'](this[_0x38e909(0x1d2)],_0x3a9239,_0x27ecfc)),this;}[_0x37f47e(0x22f)](_0x3f86f8,_0x9fa10c){const _0x3e7c19=_0x37f47e;return this[_0x3e7c19(0x1fc)](_0x3e7c19(0x208),_0x2705c1=>_0x2705c1[_0x3e7c19(0x22f)](this['_shapeRef'],_0x3f86f8,_0x9fa10c)),this;}['_getConnectorAdapter'](){const _0x5defde=_0x37f47e;return this['_injector'][_0x5defde(0x214)](_0x2afe61);}[_0x37f47e(0x1bc)](){const _0x12be0b=_0x37f47e;let _0x581b75=this[_0x12be0b(0x169)]();if(!_0x581b75)return null;try{return _0x581b75[_0x12be0b(0x1db)](this['_shapeRef'])||(console[_0x12be0b(0x209)](_0x12be0b(0x1ef)+this[_0x12be0b(0x1d2)][_0x12be0b(0x198)]+_0x12be0b(0x203)),null);}catch(_0x948b1e){return console[_0x12be0b(0x209)](_0x12be0b(0x16e)+this[_0x12be0b(0x1d2)][_0x12be0b(0x198)]+'\x22.',_0x948b1e),null;}}[_0x37f47e(0x180)](_0x286b08,_0x193ec5,_0x40549d){const _0x4770fc=_0x37f47e;if(!_0x193ec5||!Number[_0x4770fc(0x24e)](_0x40549d)||_0x40549d<0x0)return console[_0x4770fc(0x209)](_0x4770fc(0x236)+this['_shapeRef'][_0x4770fc(0x198)]+_0x4770fc(0x239)),!0x1;let _0x38daeb={'shapeId':_0x193ec5,'cxnIndex':_0x40549d};return this[_0x4770fc(0x1fc)](_0x4770fc(0x1ad)+_0x286b08,_0xe53667=>_0x286b08===_0x4770fc(0x1ea)?_0xe53667[_0x4770fc(0x22c)](this[_0x4770fc(0x1d2)],_0x38daeb):_0xe53667[_0x4770fc(0x16b)](this[_0x4770fc(0x1d2)],_0x38daeb));}['_mutateConnector'](_0xc6edde,_0x451739){const _0x48a0de=_0x37f47e;let _0x2c7e75=this[_0x48a0de(0x169)]();if(!_0x2c7e75)return!0x1;try{let _0x2fa61b=_0x451739(_0x2c7e75);return _0x2fa61b||console[_0x48a0de(0x209)]('[Shape\x20Facade]:\x20Failed\x20to\x20'+_0xc6edde+_0x48a0de(0x244)+this['_shapeRef'][_0x48a0de(0x198)]+'\x22.'),_0x2fa61b;}catch(_0x366dca){return console[_0x48a0de(0x209)]('[Shape\x20Facade]:\x20Failed\x20to\x20'+_0xc6edde+_0x48a0de(0x244)+this[_0x48a0de(0x1d2)][_0x48a0de(0x198)]+'\x22.',_0x366dca),!0x1;}}};function H(_0x2e3504,_0x10be62){const _0x4c6e1b=_0x37f47e;return!Number[_0x4c6e1b(0x245)](_0x2e3504['x'])||!Number[_0x4c6e1b(0x245)](_0x2e3504['y'])?(console[_0x4c6e1b(0x209)](_0x4c6e1b(0x236)+_0x10be62+_0x4c6e1b(0x16a)),!0x1):!0x0;}export{V as FConnectorShape,z as FShape,F as FShapeText};
|