@univerjs-pro/engine-shape 1.0.0-alpha.6 → 1.0.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x50050f=_0xca78;(function(_0x16406e,_0x3f8f10){const _0x2c935a=_0xca78,_0x82a3c8=_0x16406e();while(!![]){try{const _0x461367=-parseInt(_0x2c935a(0x1cb))/0x1+-parseInt(_0x2c935a(0x20e))/0x2*(parseInt(_0x2c935a(0x16e))/0x3)+-parseInt(_0x2c935a(0x1d6))/0x4*(parseInt(_0x2c935a(0x21a))/0x5)+-parseInt(_0x2c935a(0x1d3))/0x6*(-parseInt(_0x2c935a(0x18f))/0x7)+parseInt(_0x2c935a(0x1f6))/0x8*(parseInt(_0x2c935a(0x1c5))/0x9)+-parseInt(_0x2c935a(0x19a))/0xa+-parseInt(_0x2c935a(0x1ef))/0xb*(-parseInt(_0x2c935a(0x215))/0xc);if(_0x461367===_0x3f8f10)break;else _0x82a3c8['push'](_0x82a3c8['shift']());}catch(_0x575ad4){_0x82a3c8['push'](_0x82a3c8['shift']());}}}(_0x2c23,0x86c4d),Object[_0x50050f(0x1b7)](exports,Symbol['toStringTag'],{'value':_0x50050f(0x21f)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs/core/facade'),n=require('@univerjs/core');var r=class extends t[_0x50050f(0x214)]{get[_0x50050f(0x226)](){return e['ShapeTypeEnum'];}get[_0x50050f(0x173)](){const _0x51dda2=_0x50050f;return e[_0x51dda2(0x173)];}get[_0x50050f(0x1a2)](){return e['ShapeGradientTypeEnum'];}get[_0x50050f(0x196)](){const _0x107939=_0x50050f;return e[_0x107939(0x1ee)];}get[_0x50050f(0x1a6)](){const _0x317d20=_0x50050f;return e[_0x317d20(0x1de)];}get[_0x50050f(0x15a)](){return e['ShapeLineTypeEnum'];}get[_0x50050f(0x17c)](){const _0xb74a15=_0x50050f;return e[_0xb74a15(0x17c)];}get['ShapeLineCapEnum'](){const _0x1374d7=_0x50050f;return e[_0x1374d7(0x1a0)];}get[_0x50050f(0x1b0)](){const _0x218fd2=_0x50050f;return e[_0x218fd2(0x1b0)];}get['ShapeOperatorEnum'](){const _0x5e347e=_0x50050f;return e[_0x5e347e(0x15f)];}get['ShapeArrowTypeEnum'](){const _0x219a61=_0x50050f;return e[_0x219a61(0x20c)];}get[_0x50050f(0x154)](){return e['ShapeArrowSizeEnum'];}get[_0x50050f(0x193)](){return e['ShapeTextAutoFitType'];}get['ShapeTextDirection'](){const _0x5960d4=_0x50050f;return e[_0x5960d4(0x1f0)];}get[_0x50050f(0x205)](){return e['ShapeTextWrapType'];}};function _0x2c23(){const _0x1ab0bc=['flipY','setImageFill','setNoneFill','shapeTextToRichTextValue','IShapeHostAdapterRegistry','ShapeTypeEnum','setStrokeLineType','getStartConnectInfo','_getConnectorSnapshot','ShapeArrowSizeEnum','_bind','applyShapeTextBoxOptions','picture','[Shape\x20Facade]:\x20Failed\x20to\x20','[Shape\x20Text\x20Facade]:\x20Failed\x20to\x20update\x20Shape\x20\x22','ShapeLineTypeEnum','set\x20end\x20point','_mutateConnector','GradientFill','resolveShapeTextBoxOptions','ShapeOperatorEnum','bringForward','sendToBack','setGradientFill','width','getEndEndpoint','[Shape\x20Facade]:\x20Connector\x20\x22','setRoutePoints','_getConnectorAdapter','SolidFill','get','setShapeType','isVisible','getShape','rgba(0,\x200,\x200,\x200)','686583NzzMBh','FALSE','setTextStyle','setStroke','getEndArrow','ShapeFillEnum','description','selectable','_patchShapeData','shapeText','\x22\x20text.','FBase','routePoints','remove','ShapeLineDashEnum','NoLine','Tools','setEndPoint','setVerticalAlign','_getSnapshot','\x22\x20points\x20must\x20contain\x20finite\x20coordinates.','start','getConnector','setVisible','[Shape\x20Text\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','customGeometry','\x22\x20was\x20not\x20found.','sendBackward','bind\x20','getDrawingPoints','\x22\x20must\x20be\x20boolean.','gradient','applyShapeTextStyle','3249106kQMrEf','setSolidFill','height','FShape','ShapeTextAutoFitType','shapeId','warn','ShapeImageFillModeEnum','ShapeModel','deepClone','relation','1291330ufNvGi','setText','unbind\x20start','getEndConnectInfo','scaleY','bindEnd','ShapeLineCapEnum','unbindEnd','ShapeGradientTypeEnum','Angular','_updateShapeData','end','ShapeImageSourceTypeEnum','getRichText','getTransform','setStrokeColor','send\x20to\x20back','isFinite','visible','set\x20start\x20point','URL','unbind\x20end','ShapeLineJoinEnum','toPlainText','applyRichTextToShapeText','mode','[Shape\x20Facade]:\x20','getRoutePoints','PictureFill','defineProperty','isCustomShape','setStrokeWidth','offsetY','map','getPlainText','endArrow','getShapeType','\x20Connector\x20Shape\x20\x22','_injector','every','setTransform','setBold','length','7227513wXvUUg','isConnectorShape','[Shape\x20Facade]:\x20Connector\x20Shape\x20\x22','setStartArrow','getTextBoxOptions','getId','979027HSDpbW','[Shape\x20Text\x20Facade]:\x20Shape\x20\x22','_shapeRef','isSelectable','getText','setShapeData','setColor','lineStrokeType','12IiNjVl','setName','rotation','188iVXvoF','_getShapeData','removeShape','_mutate','set\x20route\x20points','offsetX','setHorizontalAlign','transform','ImageSourceTypeEnum','getStartEndpoint','getName','setCustomGeometry','boolean','setAbsolutePosition','[Shape\x20Facade]:\x20Failed\x20to\x20resolve\x20geometry\x20for\x20Shape\x20\x22','startArrow','set\x20end\x20arrow','shapeType','getShapeData','top','hostType','_getGeometryModel','scaleX','updateContext','ImageFillModeEnum','1331781iPfWQo','ShapeTextDirection','diamond','[Shape\x20Facade]:\x20Shape\x20\x22','_patchStroke','applyShapeTextAlignment','points','8dnfayC','opacity','setTextBoxOptions','Shape\x20transform\x20\x22','solid','Tile','BooleanNumber','getAdjustPoints','shapeData','unbindStart','setRotation','setStrokeLineJoinType','NoFill','_getAdapter','color','ShapeTextWrapType','SolidLine','setEndArrow','stretch','updateShape','\x22\x20requires\x20a\x20Connector\x20Shape\x20type.','bindStart','ShapeArrowTypeEnum','getConnectionSites','4TcJYgX','setStartPoint','update','getSnapshot','TRUE','bringToFront','FEnum','72SMVeMn','[Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','\x20Shape\x20\x22','name','setSelectable','36160Cqvptt','left','setFontFamily','getCustomGeometry','applyTextToShapeText','Module','set\x20start\x20arrow'];_0x2c23=function(){return _0x1ab0bc;};return _0x2c23();}t[_0x50050f(0x214)]['extend'](r);function i(_0x57e75f){const _0x314053=_0x50050f;switch(_0x57e75f){case e[_0x314053(0x1a2)]['Radial']:return'radial';case e[_0x314053(0x1a2)][_0x314053(0x1a3)]:return'angular';case e['ShapeGradientTypeEnum']['Diamond']:return _0x314053(0x1f1);case e[_0x314053(0x1a2)]['Linear']:default:return'linear';}}function a(_0x54cf0c){const _0x582243=_0x50050f;return _0x54cf0c===e[_0x582243(0x1ee)][_0x582243(0x1fb)]?'tile':_0x582243(0x208);}var o=class{constructor(_0x4b8771,_0x23476b){const _0x565fd3=_0x50050f;this[_0x565fd3(0x1cd)]=_0x4b8771,this[_0x565fd3(0x1c0)]=_0x23476b;}[_0x50050f(0x1a7)](){const _0x17edfe=_0x50050f;var _0x34a361;return(0x0,e[_0x17edfe(0x224)])((_0x34a361=this['_getShapeData']())==null?void 0x0:_0x34a361['shapeText']);}[_0x50050f(0x1bc)](){const _0xb0b009=_0x50050f;var _0x1f5cba,_0x146966;return(_0x1f5cba=(_0x146966=this[_0xb0b009(0x1a7)]())==null?void 0x0:_0x146966[_0xb0b009(0x1b1)]())==null?null:_0x1f5cba;}['setRichText'](_0x2a6222){const _0x2e409b=_0x50050f;return this[_0x2e409b(0x1a4)](_0x1fd454=>({..._0x1fd454,'shapeText':(0x0,e[_0x2e409b(0x1b2)])(_0x1fd454[_0x2e409b(0x177)],_0x2a6222)})),this;}[_0x50050f(0x19b)](_0x431d39){const _0x1ab5e5=_0x50050f;return this[_0x1ab5e5(0x1a4)](_0x391413=>({..._0x391413,'shapeText':(0x0,e[_0x1ab5e5(0x21e)])(_0x391413['shapeText'],_0x431d39)})),this;}['setTextStyle'](_0x5ec227){const _0x525ca1=_0x50050f;return this[_0x525ca1(0x1a4)](_0x21b905=>({..._0x21b905,'shapeText':(0x0,e[_0x525ca1(0x18e)])(_0x21b905['shapeText'],_0x5ec227)})),this;}[_0x50050f(0x1d1)](_0x2e99bf,_0x2e90a4){const _0x18a2b7=_0x50050f;return this['setTextStyle']({'cl':{'rgb':_0x2e99bf},'textFill':{'type':_0x18a2b7(0x1fa),'color':_0x2e99bf,'opacity':_0x2e90a4}});}[_0x50050f(0x223)](){const _0x217008=_0x50050f;return this[_0x217008(0x170)]({'cl':{'rgb':_0x217008(0x16d)},'textFill':{'type':'none'}});}[_0x50050f(0x162)](_0x4b0403,_0x13cad9,_0x1f8ed8){const _0x4db67f=_0x50050f;return _0x13cad9['length']<0x2?(console[_0x4db67f(0x195)]('[Shape\x20Text\x20Facade]:\x20Gradient\x20text\x20fill\x20requires\x20at\x20least\x20two\x20color\x20stops.'),this):this[_0x4db67f(0x170)]({'cl':{'rgb':_0x13cad9[0x0][_0x4db67f(0x204)]},'textFill':{'type':_0x4db67f(0x18d),'gradient':{'type':i(_0x4b0403),'angle':_0x1f8ed8,'stops':_0x13cad9[_0x4db67f(0x1bb)](({position:_0x6d2d69,color:_0xc411e7,opacity:_0x25b539})=>({'offset':_0x6d2d69,'color':_0xc411e7,'opacity':_0x25b539}))}}});}[_0x50050f(0x222)](_0x1e8ab6,_0x316aa8=e[_0x50050f(0x1de)][_0x50050f(0x1ae)],_0x47ed26={}){const _0x23d7a4=_0x50050f;return this[_0x23d7a4(0x170)]({'textFill':{'type':_0x23d7a4(0x157),'picture':{'source':_0x1e8ab6,'sourceType':_0x316aa8,'opacity':_0x47ed26[_0x23d7a4(0x1f7)],'mode':a(_0x47ed26[_0x23d7a4(0x1b3)]),'scaleX':_0x47ed26[_0x23d7a4(0x1ec)],'scaleY':_0x47ed26[_0x23d7a4(0x19e)],'offsetX':_0x47ed26[_0x23d7a4(0x1db)],'offsetY':_0x47ed26[_0x23d7a4(0x1ba)]}}});}['setFontSize'](_0x5e8b6d){const _0x19666d=_0x50050f;return this[_0x19666d(0x170)]({'fs':_0x5e8b6d});}[_0x50050f(0x21c)](_0x40e23f){const _0xb110c0=_0x50050f;return this[_0xb110c0(0x170)]({'ff':_0x40e23f});}[_0x50050f(0x1c3)](_0x414bdd){const _0x5dac69=_0x50050f;return this[_0x5dac69(0x170)]({'bl':_0x414bdd?n[_0x5dac69(0x1fc)][_0x5dac69(0x212)]:n[_0x5dac69(0x1fc)][_0x5dac69(0x16f)]});}['setItalic'](_0x38a7e5){const _0x37f336=_0x50050f;return this[_0x37f336(0x170)]({'it':_0x38a7e5?n[_0x37f336(0x1fc)]['TRUE']:n[_0x37f336(0x1fc)][_0x37f336(0x16f)]});}['setUnderline'](_0x31b455){const _0x4ecb7f=_0x50050f;return this[_0x4ecb7f(0x170)]({'ul':{'s':_0x31b455?n['BooleanNumber'][_0x4ecb7f(0x212)]:n[_0x4ecb7f(0x1fc)][_0x4ecb7f(0x16f)]}});}['setStrikethrough'](_0x3df2e0){const _0x1eabe1=_0x50050f;return this[_0x1eabe1(0x170)]({'st':{'s':_0x3df2e0?n[_0x1eabe1(0x1fc)][_0x1eabe1(0x212)]:n[_0x1eabe1(0x1fc)][_0x1eabe1(0x16f)]}});}[_0x50050f(0x1dc)](_0x206c20){const _0x1b22b1=_0x50050f;return this[_0x1b22b1(0x1a4)](_0x4459bc=>(0x0,e['applyShapeTextAlignment'])(_0x4459bc,{'horizontalAlign':_0x206c20})),this;}[_0x50050f(0x180)](_0x1d2451){const _0x45fb2b=_0x50050f;return this[_0x45fb2b(0x1a4)](_0xba9b2d=>(0x0,e[_0x45fb2b(0x1f4)])(_0xba9b2d,{'verticalAlign':_0x1d2451})),this;}[_0x50050f(0x1c9)](){const _0x4ee071=_0x50050f;let _0x586fdc=this[_0x4ee071(0x1d7)]();return _0x586fdc?(0x0,e[_0x4ee071(0x15e)])(_0x586fdc):null;}[_0x50050f(0x1f8)](_0x1ad10c){const _0x533f12=_0x50050f;return this[_0x533f12(0x1a4)](_0x39ae40=>(0x0,e[_0x533f12(0x156)])(_0x39ae40,_0x1ad10c)),this;}[_0x50050f(0x203)](){const _0x55eb83=_0x50050f;return this['_injector'][_0x55eb83(0x169)](e['IShapeHostAdapterRegistry'])[_0x55eb83(0x169)](this[_0x55eb83(0x1cd)]['hostType']);}['_getShapeData'](){const _0x5c78cd=_0x50050f;let _0x423da7=this[_0x5c78cd(0x203)]();if(!_0x423da7)return null;try{var _0x48d517;return((_0x48d517=_0x423da7[_0x5c78cd(0x16c)](this[_0x5c78cd(0x1cd)]))==null?void 0x0:_0x48d517[_0x5c78cd(0x1fe)])||(console['warn'](_0x5c78cd(0x1cc)+this['_shapeRef'][_0x5c78cd(0x194)]+_0x5c78cd(0x188)),null);}catch(_0x556cfd){return console[_0x5c78cd(0x195)](_0x5c78cd(0x186)+this[_0x5c78cd(0x1cd)][_0x5c78cd(0x194)]+'\x22\x20text.',_0x556cfd),null;}}['_updateShapeData'](_0x575e61){const _0x215b89=_0x50050f;let _0x587b73=this[_0x215b89(0x203)]();if(!_0x587b73)return!0x1;try{var _0x431ccb;let _0x51cb16=(_0x431ccb=_0x587b73[_0x215b89(0x16c)](this[_0x215b89(0x1cd)]))==null?void 0x0:_0x431ccb[_0x215b89(0x1fe)];if(!_0x51cb16)return console[_0x215b89(0x195)]('[Shape\x20Text\x20Facade]:\x20Shape\x20\x22'+this[_0x215b89(0x1cd)][_0x215b89(0x194)]+_0x215b89(0x188)),!0x1;let _0x1e4a1f=_0x587b73[_0x215b89(0x209)](this[_0x215b89(0x1cd)],{'shapeData':_0x575e61(_0x51cb16)});return _0x1e4a1f||console[_0x215b89(0x195)](_0x215b89(0x159)+this[_0x215b89(0x1cd)][_0x215b89(0x194)]+_0x215b89(0x178)),_0x1e4a1f;}catch(_0x55bec){return console[_0x215b89(0x195)]('[Shape\x20Text\x20Facade]:\x20Failed\x20to\x20update\x20Shape\x20\x22'+this[_0x215b89(0x1cd)][_0x215b89(0x194)]+_0x215b89(0x178),_0x55bec),!0x1;}}},s=class extends t[_0x50050f(0x179)]{constructor(_0x133433,_0x667359){const _0xbdab0b=_0x50050f;super(),this[_0xbdab0b(0x1cd)]=_0x133433,this['_injector']=_0x667359;}[_0x50050f(0x1c6)](){return!0x1;}[_0x50050f(0x1ca)](){const _0x5a90be=_0x50050f;return this[_0x5a90be(0x1cd)][_0x5a90be(0x194)];}[_0x50050f(0x1e0)](){const _0x4a519e=_0x50050f;var _0x485ec5;return(_0x485ec5=this[_0x4a519e(0x181)]())==null?void 0x0:_0x485ec5[_0x4a519e(0x218)];}[_0x50050f(0x1d4)](_0x3ea524){return this['update']({'name':_0x3ea524});}['getDescription'](){const _0x3b9f8d=_0x50050f;var _0x57a351;return(_0x57a351=this[_0x3b9f8d(0x181)]())==null?void 0x0:_0x57a351[_0x3b9f8d(0x174)];}['setDescription'](_0x46598d){const _0x111d21=_0x50050f;return this[_0x111d21(0x210)]({'description':_0x46598d});}['getHostType'](){const _0x579970=_0x50050f;return this['_shapeRef'][_0x579970(0x1ea)];}[_0x50050f(0x1be)](){const _0x20b29b=_0x50050f;var _0x3b6213,_0x435075;return(_0x3b6213=(_0x435075=this[_0x20b29b(0x181)]())==null?void 0x0:_0x435075['shapeType'])==null?null:_0x3b6213;}[_0x50050f(0x1e8)](){const _0x3d3f55=_0x50050f;let _0x3cb2c2=this[_0x3d3f55(0x181)]();return _0x3cb2c2?n[_0x3d3f55(0x17e)][_0x3d3f55(0x198)](_0x3cb2c2[_0x3d3f55(0x1fe)]):null;}[_0x50050f(0x211)](){const _0x13d063=_0x50050f;let _0x55ced6=this[_0x13d063(0x181)]();return _0x55ced6?n[_0x13d063(0x17e)][_0x13d063(0x198)](_0x55ced6):null;}[_0x50050f(0x1a8)](){const _0x3ff02e=_0x50050f;let _0x459d9a=this['_getSnapshot']();return _0x459d9a?{..._0x459d9a[_0x3ff02e(0x1dd)]}:null;}[_0x50050f(0x16b)](){const _0x4a662a=_0x50050f;var _0x267882,_0x4f9736;return(_0x267882=(_0x4f9736=this[_0x4a662a(0x181)]())==null?void 0x0:_0x4f9736['visible'])==null?!0x1:_0x267882;}[_0x50050f(0x185)](_0x2b3f01){return this['update']({'visible':_0x2b3f01});}[_0x50050f(0x1ce)](){const _0x1af65b=_0x50050f;var _0x3740bb,_0x109b76;return(_0x3740bb=(_0x109b76=this[_0x1af65b(0x181)]())==null?void 0x0:_0x109b76[_0x1af65b(0x175)])==null?!0x1:_0x3740bb;}[_0x50050f(0x219)](_0x955a9d){return this['update']({'selectable':_0x955a9d});}[_0x50050f(0x1cf)](){const _0x693a79=_0x50050f;return this[_0x693a79(0x1c0)]['createInstance'](o,this[_0x693a79(0x1cd)],this[_0x693a79(0x1c0)]);}[_0x50050f(0x1b8)](){const _0x58d2d8=_0x50050f;let _0x1bc717=this[_0x58d2d8(0x1e8)]();return(_0x1bc717==null?void 0x0:_0x1bc717['isCustom'])===!0x0&&!!_0x1bc717['customGeometry'];}[_0x50050f(0x21d)](){const _0x4a25c1=_0x50050f;var _0x2156f0,_0xa61d7a;return(_0x2156f0=(_0xa61d7a=this['getShapeData']())==null?void 0x0:_0xa61d7a[_0x4a25c1(0x187)])==null?null:_0x2156f0;}[_0x50050f(0x16a)](_0x3c4546){return this['_patchShapeData'](_0x57f732=>({..._0x57f732,'shapeType':_0x3c4546}),_0x3c4546);}[_0x50050f(0x1d0)](_0x33b684){const _0x1013d4=_0x50050f;let _0x55c3d0=n[_0x1013d4(0x17e)][_0x1013d4(0x198)](_0x33b684);return this[_0x1013d4(0x210)]({'shapeType':_0x55c3d0[_0x1013d4(0x1e7)],'shapeData':_0x55c3d0});}[_0x50050f(0x1c2)](_0x2ca261){const _0xf4862f=_0x50050f;return this[_0xf4862f(0x210)]({'transform':_0x2ca261});}['setSize'](_0x2cfc65,_0x12435e){return this['setTransform']({'width':_0x2cfc65,'height':_0x12435e});}[_0x50050f(0x200)](_0x18964b){const _0x5a4e05=_0x50050f;return this[_0x5a4e05(0x1c2)]({'rotation':_0x18964b});}[_0x50050f(0x1e3)](_0x1a57e0,_0x4bce4c){const _0x1218bf=_0x50050f;return this[_0x1218bf(0x1c2)]({'left':_0x1a57e0,'top':_0x4bce4c});}[_0x50050f(0x1e1)](_0x483694){const _0x5a6476=_0x50050f;let _0x27984c=n[_0x5a6476(0x17e)][_0x5a6476(0x198)](_0x483694);return this['_patchShapeData'](_0x370e55=>({..._0x370e55,'isCustom':!0x0,'customGeometry':_0x27984c}));}[_0x50050f(0x20d)](){const _0x4c9031=_0x50050f;var _0x1a4f1f,_0x13faed;return(_0x1a4f1f=(_0x13faed=this['_getGeometryModel']())==null?void 0x0:_0x13faed['getConnectionSiteList']()[_0x4c9031(0x1bb)](_0x27b9e9=>({..._0x27b9e9})))==null?[]:_0x1a4f1f;}[_0x50050f(0x1fd)](){const _0x43ff91=_0x50050f;var _0x4ace37,_0x181616;return(_0x4ace37=(_0x181616=this[_0x43ff91(0x1eb)]())==null?void 0x0:_0x181616[_0x43ff91(0x18b)]()['map'](_0x5a0782=>({..._0x5a0782})))==null?[]:_0x4ace37;}[_0x50050f(0x152)](){const _0x5296cc=_0x50050f;var _0x343ff9;let _0x236bed=(_0x343ff9=this[_0x5296cc(0x1eb)]())==null?void 0x0:_0x343ff9[_0x5296cc(0x152)]();return _0x236bed?{..._0x236bed}:null;}[_0x50050f(0x19d)](){var _0x37e854;let _0x4e9c2a=(_0x37e854=this['_getGeometryModel']())==null?void 0x0:_0x37e854['getEndConnectInfo']();return _0x4e9c2a?{..._0x4e9c2a}:null;}[_0x50050f(0x190)](_0xa030e9,_0x33a84c){const _0x1bdb70=_0x50050f;return this[_0x1bdb70(0x176)](_0x367ce4=>({..._0x367ce4,'fill':{'fillType':e['ShapeFillEnum'][_0x1bdb70(0x168)],'color':_0xa030e9,'opacity':_0x33a84c}}));}[_0x50050f(0x162)](_0x2b8a3c,_0x203aea,_0x1c65ae){const _0x126885=_0x50050f;return _0x203aea[_0x126885(0x1c4)]<0x2?(console[_0x126885(0x195)]('[Shape\x20Facade]:\x20Gradient\x20fill\x20requires\x20at\x20least\x20two\x20color\x20stops.'),this):this[_0x126885(0x176)](_0x5c3fa7=>({..._0x5c3fa7,'fill':{'fillType':e[_0x126885(0x173)][_0x126885(0x15d)],'gradientType':_0x2b8a3c,'gradientStops':n['Tools'][_0x126885(0x198)](_0x203aea),'gradientAngle':_0x1c65ae}}));}[_0x50050f(0x222)](_0x39c7af,_0x496ede,_0x1c2f8b={}){const _0x489c29=_0x50050f;return this[_0x489c29(0x176)](_0x3fab48=>({..._0x3fab48,'fill':{...n[_0x489c29(0x17e)][_0x489c29(0x198)](_0x1c2f8b),'fillType':e[_0x489c29(0x173)][_0x489c29(0x1b6)],'fillImageSource':_0x39c7af,'fillImageSourceType':_0x496ede}}));}[_0x50050f(0x223)](){const _0x5c779a=_0x50050f;return this[_0x5c779a(0x176)](_0x282d2a=>({..._0x282d2a,'fill':{'fillType':e[_0x5c779a(0x173)][_0x5c779a(0x202)]}}));}[_0x50050f(0x171)](_0x4911cb){const _0x3851ed=_0x50050f;return this[_0x3851ed(0x176)](_0x1ba68b=>({..._0x1ba68b,'stroke':n['Tools'][_0x3851ed(0x198)](_0x4911cb)}));}[_0x50050f(0x1a9)](_0x535477){const _0x375537=_0x50050f;return this[_0x375537(0x1f3)](_0x2c669b=>({..._0x2c669b,'color':_0x535477,'lineStrokeType':_0x2c669b[_0x375537(0x1d2)]===e[_0x375537(0x15a)][_0x375537(0x17d)]?e[_0x375537(0x15a)][_0x375537(0x206)]:_0x2c669b[_0x375537(0x1d2)]}));}[_0x50050f(0x1b9)](_0x1b0ef7){const _0x5b1087=_0x50050f;return this[_0x5b1087(0x1f3)](_0x57107c=>({..._0x57107c,'width':_0x1b0ef7,'lineStrokeType':_0x57107c[_0x5b1087(0x1d2)]===e[_0x5b1087(0x15a)][_0x5b1087(0x17d)]?e[_0x5b1087(0x15a)]['SolidLine']:_0x57107c['lineStrokeType']}));}['setStrokeOpacity'](_0x2efed3){const _0x718b4=_0x50050f;return this[_0x718b4(0x1f3)](_0x4ba387=>({..._0x4ba387,'opacity':_0x2efed3}));}['setStrokeLineDashType'](_0x202760){return this['_patchStroke'](_0x400f34=>({..._0x400f34,'dashType':_0x202760}));}[_0x50050f(0x201)](_0x32d02e){return this['_patchStroke'](_0x4048e5=>({..._0x4048e5,'lineJoinType':_0x32d02e}));}['setStrokeLineCapType'](_0x46c8cc){const _0x3c81b4=_0x50050f;return this[_0x3c81b4(0x1f3)](_0x465dbc=>({..._0x465dbc,'capType':_0x46c8cc}));}[_0x50050f(0x151)](_0x4bd518){return this['_patchStroke'](_0x22f1b3=>({..._0x22f1b3,'lineStrokeType':_0x4bd518}));}[_0x50050f(0x210)](_0x23969f){const _0x52f67a=_0x50050f;var _0x511306,_0x16ecc1,_0xec28fc;let _0x4d7611=_0x23969f[_0x52f67a(0x1fe)],_0x1889fc=_0x4d7611&&('relation'in _0x4d7611||_0x52f67a(0x1f5)in _0x4d7611)?this['getShapeType']():null,_0x85efb9=(_0x511306=(_0x16ecc1=_0x23969f['shapeType'])==null?(_0xec28fc=_0x23969f[_0x52f67a(0x1fe)])==null?void 0x0:_0xec28fc[_0x52f67a(0x1e7)]:_0x16ecc1)==null?_0x1889fc:_0x511306,_0x314c57=c(_0x23969f,_0x85efb9!==null&&(0x0,e[_0x52f67a(0x1c6)])(_0x85efb9));return _0x314c57?(console[_0x52f67a(0x195)](_0x52f67a(0x1b4)+_0x314c57),this):(this['_mutate'](_0x52f67a(0x210),_0x493ca9=>_0x493ca9[_0x52f67a(0x209)](this[_0x52f67a(0x1cd)],_0x23969f)),this);}[_0x50050f(0x17b)](){const _0x500bdf=_0x50050f;return this[_0x500bdf(0x1d9)](_0x500bdf(0x17b),_0x42919b=>_0x42919b[_0x500bdf(0x1d8)](this[_0x500bdf(0x1cd)]));}[_0x50050f(0x213)](){const _0x17b0b3=_0x50050f;return this['_mutate']('bring\x20to\x20front',_0xb09202=>_0xb09202[_0x17b0b3(0x213)](this[_0x17b0b3(0x1cd)])),this;}['bringForward'](){const _0x1e792b=_0x50050f;return this[_0x1e792b(0x1d9)]('bring\x20forward',_0x425263=>_0x425263[_0x1e792b(0x160)](this[_0x1e792b(0x1cd)])),this;}['sendBackward'](){const _0x1c9e62=_0x50050f;return this['_mutate']('send\x20backward',_0x50220b=>_0x50220b[_0x1c9e62(0x189)](this[_0x1c9e62(0x1cd)])),this;}[_0x50050f(0x161)](){const _0x2829b4=_0x50050f;return this[_0x2829b4(0x1d9)](_0x2829b4(0x1aa),_0x176f48=>_0x176f48[_0x2829b4(0x161)](this['_shapeRef'])),this;}[_0x50050f(0x203)](){const _0x5702b6=_0x50050f;return this[_0x5702b6(0x1c0)][_0x5702b6(0x169)](e[_0x5702b6(0x225)])['get'](this[_0x5702b6(0x1cd)][_0x5702b6(0x1ea)]);}[_0x50050f(0x176)](_0x22fb21,_0x3f7e6a){const _0x154368=_0x50050f;let _0x3b9f90=this[_0x154368(0x1e8)]();return _0x3b9f90?this[_0x154368(0x210)]({'shapeType':_0x3f7e6a,'shapeData':_0x22fb21(_0x3b9f90)}):this;}[_0x50050f(0x1f3)](_0x53fd3c){const _0x5ac1dc=_0x50050f;return this[_0x5ac1dc(0x176)](_0x16bc65=>{var _0x3a5bdc;return{..._0x16bc65,'stroke':_0x53fd3c((_0x3a5bdc=_0x16bc65['stroke'])==null?{}:_0x3a5bdc)};});}['_getSnapshot'](){const _0x267da7=_0x50050f;let _0x15e47a=this[_0x267da7(0x203)]();if(!_0x15e47a)return null;try{return _0x15e47a[_0x267da7(0x16c)](this[_0x267da7(0x1cd)])||(console[_0x267da7(0x195)](_0x267da7(0x1f2)+this['_shapeRef'][_0x267da7(0x194)]+_0x267da7(0x188)),null);}catch(_0x4f5c15){return console[_0x267da7(0x195)](_0x267da7(0x216)+this[_0x267da7(0x1cd)][_0x267da7(0x194)]+'\x22.',_0x4f5c15),null;}}[_0x50050f(0x1eb)](){const _0x57b63f=_0x50050f;let _0xc70395=this[_0x57b63f(0x181)]();if(!_0xc70395)return null;try{let _0x1f66d8=new e[(_0x57b63f(0x197))](_0xc70395[_0x57b63f(0x1e7)],_0xc70395[_0x57b63f(0x194)],_0xc70395[_0x57b63f(0x1fe)]);return _0x1f66d8[_0x57b63f(0x1ed)]({'width':_0xc70395[_0x57b63f(0x1dd)]['width'],'height':_0xc70395['transform'][_0x57b63f(0x191)]}),_0x1f66d8;}catch(_0x2efa0a){return console['warn'](_0x57b63f(0x1e4)+this[_0x57b63f(0x1cd)]['shapeId']+'\x22.',_0x2efa0a),null;}}[_0x50050f(0x1d9)](_0x42e0f1,_0x4c2193){const _0x2d1ad8=_0x50050f;let _0x563172=this[_0x2d1ad8(0x203)]();if(!_0x563172)return!0x1;try{let _0x38007a=_0x4c2193(_0x563172);return _0x38007a||console[_0x2d1ad8(0x195)]('[Shape\x20Facade]:\x20Failed\x20to\x20'+_0x42e0f1+'\x20Shape\x20\x22'+this[_0x2d1ad8(0x1cd)][_0x2d1ad8(0x194)]+'\x22.'),_0x38007a;}catch(_0x571cdb){return console[_0x2d1ad8(0x195)]('[Shape\x20Facade]:\x20Failed\x20to\x20'+_0x42e0f1+_0x2d1ad8(0x217)+this[_0x2d1ad8(0x1cd)][_0x2d1ad8(0x194)]+'\x22.',_0x571cdb),!0x1;}}};function c(_0x3e6313,_0x325dd6=!0x1){const _0x26f3ea=_0x50050f;for(let _0x1dc665 of[_0x26f3ea(0x1ac),_0x26f3ea(0x175)]){let _0x11ed9c=_0x3e6313[_0x1dc665];if(_0x11ed9c!==void 0x0&&typeof _0x11ed9c!='boolean')return'Shape\x20\x22'+_0x1dc665+_0x26f3ea(0x18c);}let _0x4e526a=_0x3e6313['transform'];if(_0x4e526a){for(let _0x39deb4 of[_0x26f3ea(0x21b),_0x26f3ea(0x1e9),'width',_0x26f3ea(0x191),_0x26f3ea(0x1d5)]){let _0x4aa790=_0x4e526a[_0x39deb4];if(_0x4aa790!==void 0x0&&!Number[_0x26f3ea(0x1ab)](_0x4aa790))return'Shape\x20transform\x20\x22'+_0x39deb4+'\x22\x20must\x20be\x20finite.';}if(_0x4e526a[_0x26f3ea(0x163)]!==void 0x0&&_0x4e526a[_0x26f3ea(0x163)]<=0x0)return'Shape\x20width\x20must\x20be\x20greater\x20than\x20zero.';if(_0x4e526a[_0x26f3ea(0x191)]!==void 0x0&&_0x4e526a[_0x26f3ea(0x191)]<=0x0)return'Shape\x20height\x20must\x20be\x20greater\x20than\x20zero.';for(let _0x11fbfc of['flipX',_0x26f3ea(0x221)]){let _0x6a5e=_0x4e526a[_0x11fbfc];if(_0x6a5e!==void 0x0&&typeof _0x6a5e!=_0x26f3ea(0x1e2))return _0x26f3ea(0x1f9)+_0x11fbfc+'\x22\x20must\x20be\x20boolean.';}}let _0x1a2dea=_0x3e6313[_0x26f3ea(0x1fe)];return!_0x325dd6&&_0x1a2dea&&(_0x26f3ea(0x199)in _0x1a2dea||_0x26f3ea(0x1f5)in _0x1a2dea)?'Connector\x20relationships\x20and\x20route\x20points\x20require\x20FConnectorShape.':null;}var l=class extends s{[_0x50050f(0x1c6)](){return!0x0;}[_0x50050f(0x1df)](){const _0x4f3616=_0x50050f;let _0x133742=this['_getConnectorSnapshot']();return _0x133742?n['Tools']['deepClone'](_0x133742[_0x4f3616(0x183)]):null;}[_0x50050f(0x164)](){const _0x1e5281=_0x50050f;let _0x3c85cf=this[_0x1e5281(0x153)]();return _0x3c85cf?n['Tools']['deepClone'](_0x3c85cf[_0x1e5281(0x1a5)]):null;}[_0x50050f(0x1b5)](){const _0x2300a9=_0x50050f;let _0x189763=this['_getConnectorSnapshot']();return _0x189763?n[_0x2300a9(0x17e)][_0x2300a9(0x198)](_0x189763[_0x2300a9(0x17a)]):null;}['getStartArrow'](){const _0x50fa10=_0x50050f;let _0x481355=this[_0x50fa10(0x153)]();return _0x481355?n[_0x50fa10(0x17e)][_0x50fa10(0x198)](_0x481355[_0x50fa10(0x1e5)]):null;}[_0x50050f(0x172)](){const _0x260324=_0x50050f;let _0x5f3926=this['_getConnectorSnapshot']();return _0x5f3926?n['Tools']['deepClone'](_0x5f3926[_0x260324(0x1bd)]):null;}['setShapeType'](_0xb7ce89){const _0x4a0d41=_0x50050f;return(0x0,e[_0x4a0d41(0x1c6)])(_0xb7ce89)?super['setShapeType'](_0xb7ce89):(console['warn'](_0x4a0d41(0x1c7)+this[_0x4a0d41(0x1cd)][_0x4a0d41(0x194)]+_0x4a0d41(0x20a)),this);}['setShapeData'](_0x8d9f72){const _0x5d4a34=_0x50050f;return _0x8d9f72[_0x5d4a34(0x1e7)]!==void 0x0&&!(0x0,e['isConnectorShape'])(_0x8d9f72[_0x5d4a34(0x1e7)])?(console['warn']('[Shape\x20Facade]:\x20Connector\x20Shape\x20\x22'+this[_0x5d4a34(0x1cd)]['shapeId']+'\x22\x20requires\x20Connector\x20Shape\x20data.'),this):super[_0x5d4a34(0x1d0)](_0x8d9f72);}['bindStart'](_0x109d59,_0x5b5cc7){const _0x138e52=_0x50050f;return this[_0x138e52(0x155)]('start',_0x109d59,_0x5b5cc7),this;}[_0x50050f(0x19f)](_0x3ab6a6,_0x33ef83){const _0x3e3deb=_0x50050f;return this['_bind'](_0x3e3deb(0x1a5),_0x3ab6a6,_0x33ef83),this;}[_0x50050f(0x1ff)](){const _0x1e6c3a=_0x50050f;return this[_0x1e6c3a(0x15c)](_0x1e6c3a(0x19c),_0x41a0fe=>_0x41a0fe['unbindStart'](this[_0x1e6c3a(0x1cd)])),this;}[_0x50050f(0x1a1)](){const _0xc65196=_0x50050f;return this['_mutateConnector'](_0xc65196(0x1af),_0x552616=>_0x552616['unbindEnd'](this[_0xc65196(0x1cd)])),this;}[_0x50050f(0x20f)](_0x5cf16b){const _0x3ecd3d=_0x50050f;return u(_0x5cf16b,this[_0x3ecd3d(0x1cd)]['shapeId'])&&this[_0x3ecd3d(0x15c)](_0x3ecd3d(0x1ad),_0xf0e2b6=>_0xf0e2b6[_0x3ecd3d(0x20f)](this['_shapeRef'],_0x5cf16b)),this;}[_0x50050f(0x17f)](_0x331e8b){const _0x485d7b=_0x50050f;return u(_0x331e8b,this[_0x485d7b(0x1cd)][_0x485d7b(0x194)])&&this[_0x485d7b(0x15c)](_0x485d7b(0x15b),_0x2da6f6=>_0x2da6f6[_0x485d7b(0x17f)](this[_0x485d7b(0x1cd)],_0x331e8b)),this;}['setRoutePoints'](_0x2c2340){const _0x3cb6ec=_0x50050f;return _0x2c2340[_0x3cb6ec(0x1c1)](_0xb15955=>u(_0xb15955,this['_shapeRef'][_0x3cb6ec(0x194)]))&&this[_0x3cb6ec(0x15c)](_0x3cb6ec(0x1da),_0x1878fe=>_0x1878fe[_0x3cb6ec(0x166)](this[_0x3cb6ec(0x1cd)],_0x2c2340)),this;}[_0x50050f(0x1c8)](_0x48a3f3,_0x3d2fd){const _0x211241=_0x50050f;return this[_0x211241(0x15c)](_0x211241(0x220),_0x2e6cdb=>_0x2e6cdb[_0x211241(0x1c8)](this[_0x211241(0x1cd)],_0x48a3f3,_0x3d2fd)),this;}['setEndArrow'](_0x198ec0,_0x474b51){const _0x5a9208=_0x50050f;return this[_0x5a9208(0x15c)](_0x5a9208(0x1e6),_0x33d9a3=>_0x33d9a3[_0x5a9208(0x207)](this[_0x5a9208(0x1cd)],_0x198ec0,_0x474b51)),this;}[_0x50050f(0x167)](){const _0x3e9c75=_0x50050f;return this[_0x3e9c75(0x1c0)][_0x3e9c75(0x169)](e['IConnectorShapeHostAdapter']);}[_0x50050f(0x153)](){const _0x52287f=_0x50050f;let _0x4a2efc=this['_getConnectorAdapter']();if(!_0x4a2efc)return null;try{return _0x4a2efc[_0x52287f(0x184)](this[_0x52287f(0x1cd)])||(console[_0x52287f(0x195)](_0x52287f(0x1c7)+this[_0x52287f(0x1cd)][_0x52287f(0x194)]+_0x52287f(0x188)),null);}catch(_0x5734d9){return console['warn']('[Shape\x20Facade]:\x20Failed\x20to\x20read\x20Connector\x20Shape\x20\x22'+this[_0x52287f(0x1cd)][_0x52287f(0x194)]+'\x22.',_0x5734d9),null;}}['_bind'](_0x28525e,_0x47f6fc,_0x71bfad){const _0x381fbd=_0x50050f;if(!_0x47f6fc||!Number['isInteger'](_0x71bfad)||_0x71bfad<0x0)return console['warn']('[Shape\x20Facade]:\x20Connector\x20\x22'+this['_shapeRef'][_0x381fbd(0x194)]+'\x22\x20binding\x20requires\x20a\x20target\x20Shape\x20ID\x20and\x20a\x20non-negative\x20connection\x20site\x20index.'),!0x1;let _0x25966d={'shapeId':_0x47f6fc,'cxnIndex':_0x71bfad};return this[_0x381fbd(0x15c)](_0x381fbd(0x18a)+_0x28525e,_0x580e09=>_0x28525e===_0x381fbd(0x183)?_0x580e09[_0x381fbd(0x20b)](this[_0x381fbd(0x1cd)],_0x25966d):_0x580e09[_0x381fbd(0x19f)](this[_0x381fbd(0x1cd)],_0x25966d));}[_0x50050f(0x15c)](_0x9481d9,_0x5f591a){const _0x1af0b7=_0x50050f;let _0x2aa1d1=this[_0x1af0b7(0x167)]();if(!_0x2aa1d1)return!0x1;try{let _0x2de57b=_0x5f591a(_0x2aa1d1);return _0x2de57b||console[_0x1af0b7(0x195)]('[Shape\x20Facade]:\x20Failed\x20to\x20'+_0x9481d9+_0x1af0b7(0x1bf)+this[_0x1af0b7(0x1cd)][_0x1af0b7(0x194)]+'\x22.'),_0x2de57b;}catch(_0x2f77f2){return console[_0x1af0b7(0x195)](_0x1af0b7(0x158)+_0x9481d9+_0x1af0b7(0x1bf)+this[_0x1af0b7(0x1cd)][_0x1af0b7(0x194)]+'\x22.',_0x2f77f2),!0x1;}}};function u(_0x23f3d9,_0x219242){const _0x33d887=_0x50050f;return!Number[_0x33d887(0x1ab)](_0x23f3d9['x'])||!Number[_0x33d887(0x1ab)](_0x23f3d9['y'])?(console['warn'](_0x33d887(0x165)+_0x219242+_0x33d887(0x182)),!0x1):!0x0;}function _0xca78(_0x4e63c6,_0x56616d){_0x4e63c6=_0x4e63c6-0x151;const _0x2c2380=_0x2c23();let _0xca78b9=_0x2c2380[_0x4e63c6];return _0xca78b9;}exports['FConnectorShape']=l,exports[_0x50050f(0x192)]=s,exports['FShapeText']=o;
1
+ const _0x353aab=_0x11ca;(function(_0x46ca7a,_0x131b1f){const _0x1a4e25=_0x11ca,_0x3fe739=_0x46ca7a();while(!![]){try{const _0x401336=parseInt(_0x1a4e25(0x207))/0x1+-parseInt(_0x1a4e25(0x1ee))/0x2+-parseInt(_0x1a4e25(0x16f))/0x3*(parseInt(_0x1a4e25(0x142))/0x4)+parseInt(_0x1a4e25(0x208))/0x5*(-parseInt(_0x1a4e25(0x156))/0x6)+parseInt(_0x1a4e25(0x1e7))/0x7*(-parseInt(_0x1a4e25(0x136))/0x8)+-parseInt(_0x1a4e25(0x147))/0x9*(-parseInt(_0x1a4e25(0x1f7))/0xa)+-parseInt(_0x1a4e25(0x16b))/0xb*(-parseInt(_0x1a4e25(0x176))/0xc);if(_0x401336===_0x131b1f)break;else _0x3fe739['push'](_0x3fe739['shift']());}catch(_0x1a651a){_0x3fe739['push'](_0x3fe739['shift']());}}}(_0x2176,0x4eff4),Object['defineProperty'](exports,Symbol[_0x353aab(0x21c)],{'value':_0x353aab(0x150)}));function _0x11ca(_0x1dc592,_0x4475a6){_0x1dc592=_0x1dc592-0x12e;const _0x217699=_0x2176();let _0x11ca9f=_0x217699[_0x1dc592];return _0x11ca9f;}let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs/core/facade'),n=require('@univerjs/core');var r=class extends t[_0x353aab(0x19e)]{get[_0x353aab(0x1e1)](){const _0x3dd7c1=_0x353aab;return e[_0x3dd7c1(0x1e1)];}get['ShapeFillEnum'](){const _0x557450=_0x353aab;return e[_0x557450(0x195)];}get[_0x353aab(0x174)](){const _0x1ff250=_0x353aab;return e[_0x1ff250(0x174)];}get[_0x353aab(0x1d0)](){const _0x1063d1=_0x353aab;return e[_0x1063d1(0x1a2)];}get[_0x353aab(0x1f4)](){const _0x14418a=_0x353aab;return e[_0x14418a(0x166)];}get[_0x353aab(0x1f6)](){const _0x5aa198=_0x353aab;return e[_0x5aa198(0x1f6)];}get[_0x353aab(0x1b2)](){const _0x562055=_0x353aab;return e[_0x562055(0x1b2)];}get[_0x353aab(0x1f5)](){const _0x1a2d0b=_0x353aab;return e[_0x1a2d0b(0x1f5)];}get[_0x353aab(0x191)](){const _0x2dbea7=_0x353aab;return e[_0x2dbea7(0x191)];}get[_0x353aab(0x19a)](){const _0x1001ec=_0x353aab;return e[_0x1001ec(0x19a)];}get[_0x353aab(0x155)](){const _0x216ad1=_0x353aab;return e[_0x216ad1(0x155)];}get[_0x353aab(0x194)](){const _0x1aa185=_0x353aab;return e[_0x1aa185(0x194)];}get['ShapeTextAutoFitType'](){return e['ShapeTextAutoFitType'];}get[_0x353aab(0x1a5)](){const _0x2e6fff=_0x353aab;return e[_0x2e6fff(0x1a5)];}get[_0x353aab(0x16c)](){const _0x3c7acc=_0x353aab;return e[_0x3c7acc(0x16c)];}};t[_0x353aab(0x19e)][_0x353aab(0x213)](r);function i(_0x2d1411){const _0x4f60e6=_0x353aab;switch(_0x2d1411){case e[_0x4f60e6(0x174)][_0x4f60e6(0x180)]:return _0x4f60e6(0x1c6);case e[_0x4f60e6(0x174)][_0x4f60e6(0x1da)]:return _0x4f60e6(0x1ea);case e[_0x4f60e6(0x174)][_0x4f60e6(0x13e)]:return _0x4f60e6(0x204);case e['ShapeGradientTypeEnum']['Linear']:default:return'linear';}}function a(_0x56e500){const _0x1bb5ae=_0x353aab;return _0x56e500===e[_0x1bb5ae(0x1a2)][_0x1bb5ae(0x15d)]?'tile':_0x1bb5ae(0x20c);}var o=class{constructor(_0x1751a5,_0xb5dcc3){this['_shapeRef']=_0x1751a5,this['_injector']=_0xb5dcc3;}[_0x353aab(0x149)](){const _0x4d22de=_0x353aab;var _0x3c0c04;return(0x0,e[_0x4d22de(0x1ff)])((_0x3c0c04=this[_0x4d22de(0x1bc)]())==null?void 0x0:_0x3c0c04[_0x4d22de(0x15f)]);}[_0x353aab(0x1dd)](){const _0x476205=_0x353aab;var _0x50dbd6,_0x3896e1;return(_0x50dbd6=(_0x3896e1=this[_0x476205(0x149)]())==null?void 0x0:_0x3896e1[_0x476205(0x139)]())==null?null:_0x50dbd6;}[_0x353aab(0x1db)](_0x52e7c3){const _0x48fdc0=_0x353aab;return this[_0x48fdc0(0x189)](_0x3f86c9=>({..._0x3f86c9,'shapeText':(0x0,e['applyRichTextToShapeText'])(_0x3f86c9[_0x48fdc0(0x15f)],_0x52e7c3)})),this;}['setText'](_0xd561b5){const _0x18d3eb=_0x353aab;return this[_0x18d3eb(0x189)](_0x5b0241=>({..._0x5b0241,'shapeText':(0x0,e['applyTextToShapeText'])(_0x5b0241['shapeText'],_0xd561b5)})),this;}[_0x353aab(0x1a8)](_0x121d4b){const _0x336221=_0x353aab;return this[_0x336221(0x189)](_0x19a8a8=>({..._0x19a8a8,'shapeText':(0x0,e['applyShapeTextStyle'])(_0x19a8a8[_0x336221(0x15f)],_0x121d4b)})),this;}[_0x353aab(0x185)](_0x4a8a3e,_0x4f6550){const _0xbdc344=_0x353aab;return this[_0xbdc344(0x1a8)]({'cl':{'rgb':_0x4a8a3e},'textFill':{'type':'solid','color':_0x4a8a3e,'opacity':_0x4f6550}});}[_0x353aab(0x181)](){const _0x3c827e=_0x353aab;return this[_0x3c827e(0x1a8)]({'cl':{'rgb':'rgba(0,\x200,\x200,\x200)'},'textFill':{'type':'none'}});}[_0x353aab(0x197)](_0x2a69f2,_0x39cb00,_0x441da5){const _0x1f085d=_0x353aab;return _0x39cb00['length']<0x2?(console[_0x1f085d(0x20a)](_0x1f085d(0x14a)),this):this[_0x1f085d(0x1a8)]({'cl':{'rgb':_0x39cb00[0x0][_0x1f085d(0x154)]},'textFill':{'type':_0x1f085d(0x1cb),'gradient':{'type':i(_0x2a69f2),'angle':_0x441da5,'stops':_0x39cb00[_0x1f085d(0x135)](({position:_0x52bbf4,color:_0x3f7dbf,opacity:_0x3f19fa})=>({'offset':_0x52bbf4,'color':_0x3f7dbf,'opacity':_0x3f19fa}))}}});}['setImageFill'](_0x2940f0,_0x4d8a84=e['ImageSourceTypeEnum'][_0x353aab(0x201)],_0x58006c={}){const _0x14bd18=_0x353aab;return this[_0x14bd18(0x1a8)]({'textFill':{'type':_0x14bd18(0x212),'picture':{'source':_0x2940f0,'sourceType':_0x4d8a84,'opacity':_0x58006c[_0x14bd18(0x1fe)],'mode':a(_0x58006c['mode']),'scaleX':_0x58006c[_0x14bd18(0x211)],'scaleY':_0x58006c[_0x14bd18(0x1e4)],'offsetX':_0x58006c[_0x14bd18(0x183)],'offsetY':_0x58006c[_0x14bd18(0x1ba)]}}});}[_0x353aab(0x1c9)](_0x11ecc8){const _0x34b128=_0x353aab;return this[_0x34b128(0x1a8)]({'fs':_0x11ecc8});}[_0x353aab(0x1e6)](_0x3625a2){const _0x20e47b=_0x353aab;return this[_0x20e47b(0x1a8)]({'ff':_0x3625a2});}[_0x353aab(0x1ef)](_0x370e97){const _0x6677a1=_0x353aab;return this[_0x6677a1(0x1a8)]({'bl':_0x370e97?n[_0x6677a1(0x13f)][_0x6677a1(0x1e2)]:n[_0x6677a1(0x13f)][_0x6677a1(0x1f1)]});}[_0x353aab(0x1bd)](_0x71465){const _0x45d7f6=_0x353aab;return this[_0x45d7f6(0x1a8)]({'it':_0x71465?n[_0x45d7f6(0x13f)][_0x45d7f6(0x1e2)]:n['BooleanNumber']['FALSE']});}[_0x353aab(0x1a7)](_0x97498e){const _0x2a3fd3=_0x353aab;return this['setTextStyle']({'ul':{'s':_0x97498e?n[_0x2a3fd3(0x13f)][_0x2a3fd3(0x1e2)]:n[_0x2a3fd3(0x13f)]['FALSE']}});}[_0x353aab(0x18f)](_0x23f4cd){const _0x15dcfa=_0x353aab;return this[_0x15dcfa(0x1a8)]({'st':{'s':_0x23f4cd?n[_0x15dcfa(0x13f)][_0x15dcfa(0x1e2)]:n[_0x15dcfa(0x13f)][_0x15dcfa(0x1f1)]}});}['setHorizontalAlign'](_0x13a03a){const _0x311335=_0x353aab;return this[_0x311335(0x189)](_0x15684f=>(0x0,e[_0x311335(0x1f2)])(_0x15684f,{'horizontalAlign':_0x13a03a})),this;}[_0x353aab(0x1e8)](_0x35934d){const _0x303bee=_0x353aab;return this[_0x303bee(0x189)](_0x36b6af=>(0x0,e[_0x303bee(0x1f2)])(_0x36b6af,{'verticalAlign':_0x35934d})),this;}[_0x353aab(0x1b7)](){const _0x2749ce=_0x353aab;let _0x281e68=this[_0x2749ce(0x1bc)]();return _0x281e68?(0x0,e['resolveShapeTextBoxOptions'])(_0x281e68):null;}[_0x353aab(0x1c1)](_0x2d4519){const _0x493846=_0x353aab;return this[_0x493846(0x189)](_0x5c9adf=>(0x0,e[_0x493846(0x1b4)])(_0x5c9adf,_0x2d4519)),this;}[_0x353aab(0x184)](){const _0x5db5e8=_0x353aab;return this['_injector'][_0x5db5e8(0x141)](e[_0x5db5e8(0x1d6)])['get'](this[_0x5db5e8(0x17f)]['hostType']);}[_0x353aab(0x1bc)](){const _0x32a9d9=_0x353aab;let _0x178ead=this[_0x32a9d9(0x184)]();if(!_0x178ead)return null;try{var _0x5c3d03;return((_0x5c3d03=_0x178ead[_0x32a9d9(0x1ec)](this[_0x32a9d9(0x17f)]))==null?void 0x0:_0x5c3d03[_0x32a9d9(0x215)])||(console[_0x32a9d9(0x20a)](_0x32a9d9(0x1ab)+this['_shapeRef'][_0x32a9d9(0x214)]+_0x32a9d9(0x188)),null);}catch(_0x4ef6eb){return console['warn'](_0x32a9d9(0x186)+this[_0x32a9d9(0x17f)][_0x32a9d9(0x214)]+'\x22\x20text.',_0x4ef6eb),null;}}[_0x353aab(0x189)](_0x33f6d5){const _0x11cf04=_0x353aab;let _0x599d1e=this['_getAdapter']();if(!_0x599d1e)return!0x1;try{var _0xa9f5c9;let _0x1e6e5b=(_0xa9f5c9=_0x599d1e[_0x11cf04(0x1ec)](this[_0x11cf04(0x17f)]))==null?void 0x0:_0xa9f5c9[_0x11cf04(0x215)];if(!_0x1e6e5b)return console['warn'](_0x11cf04(0x1ab)+this[_0x11cf04(0x17f)][_0x11cf04(0x214)]+_0x11cf04(0x188)),!0x1;let _0x226a3f=_0x599d1e['updateShape'](this[_0x11cf04(0x17f)],{'shapeData':_0x33f6d5(_0x1e6e5b)});return _0x226a3f||console[_0x11cf04(0x20a)](_0x11cf04(0x217)+this[_0x11cf04(0x17f)][_0x11cf04(0x214)]+'\x22\x20text.'),_0x226a3f;}catch(_0x1e7215){return console[_0x11cf04(0x20a)]('[Shape\x20Text\x20Facade]:\x20Failed\x20to\x20update\x20Shape\x20\x22'+this[_0x11cf04(0x17f)][_0x11cf04(0x214)]+_0x11cf04(0x1bf),_0x1e7215),!0x1;}}};function s(_0x3c9704,_0x490250){return function(_0x1c7536,_0x2ee979){_0x490250(_0x1c7536,_0x2ee979,_0x3c9704);};}function c(_0x94e85a,_0x43e6d9,_0x38e130,_0x45da6d){const _0x2de700=_0x353aab;var _0x574dc1=arguments['length'],_0x48cefe=_0x574dc1<0x3?_0x43e6d9:_0x45da6d===null?_0x45da6d=Object['getOwnPropertyDescriptor'](_0x43e6d9,_0x38e130):_0x45da6d,_0x502e59;if(typeof Reflect==_0x2de700(0x1a0)&&typeof Reflect[_0x2de700(0x16d)]==_0x2de700(0x1c3))_0x48cefe=Reflect[_0x2de700(0x16d)](_0x94e85a,_0x43e6d9,_0x38e130,_0x45da6d);else{for(var _0x6a9ccb=_0x94e85a[_0x2de700(0x1be)]-0x1;_0x6a9ccb>=0x0;_0x6a9ccb--)(_0x502e59=_0x94e85a[_0x6a9ccb])&&(_0x48cefe=(_0x574dc1<0x3?_0x502e59(_0x48cefe):_0x574dc1>0x3?_0x502e59(_0x43e6d9,_0x38e130,_0x48cefe):_0x502e59(_0x43e6d9,_0x38e130))||_0x48cefe);}return _0x574dc1>0x3&&_0x48cefe&&Object[_0x2de700(0x1c4)](_0x43e6d9,_0x38e130,_0x48cefe),_0x48cefe;}let l=class extends t[_0x353aab(0x18a)]{constructor(_0x40fdf5,_0xf8b1e4,_0x5e471f,_0x4e84a4){const _0x3f67d7=_0x353aab;super(),this[_0x3f67d7(0x17f)]=_0x40fdf5,this[_0x3f67d7(0x173)]=_0xf8b1e4,this[_0x3f67d7(0x168)]=_0x5e471f,this[_0x3f67d7(0x216)]=_0x4e84a4;}[_0x353aab(0x19f)](){return!0x1;}['getId'](){const _0x480050=_0x353aab;return this[_0x480050(0x17f)][_0x480050(0x214)];}[_0x353aab(0x1ac)](){const _0x51022c=_0x353aab;var _0x236cbc;return(_0x236cbc=this[_0x51022c(0x1aa)]())==null?void 0x0:_0x236cbc[_0x51022c(0x1fa)];}[_0x353aab(0x21a)](_0x18d29e){return this['update']({'name':_0x18d29e});}[_0x353aab(0x1c5)](){const _0x8b81=_0x353aab;var _0x1e62a7;return(_0x1e62a7=this[_0x8b81(0x1aa)]())==null?void 0x0:_0x1e62a7['description'];}[_0x353aab(0x20f)](_0x4ca964){const _0x339e81=_0x353aab;return this[_0x339e81(0x164)]({'description':_0x4ca964});}['getHostType'](){const _0x1eee8e=_0x353aab;return this[_0x1eee8e(0x17f)][_0x1eee8e(0x19d)];}[_0x353aab(0x218)](){const _0x439cdc=_0x353aab;var _0x15babb,_0x238ad8;return(_0x15babb=(_0x238ad8=this[_0x439cdc(0x1aa)]())==null?void 0x0:_0x238ad8['shapeType'])==null?null:_0x15babb;}['getShapeData'](){const _0x2bf2ab=_0x353aab;let _0x20809f=this[_0x2bf2ab(0x1aa)]();return _0x20809f?n[_0x2bf2ab(0x199)]['deepClone'](_0x20809f[_0x2bf2ab(0x215)]):null;}[_0x353aab(0x177)](){const _0x5859d7=_0x353aab;let _0x445d4d=this[_0x5859d7(0x1aa)]();return _0x445d4d?n[_0x5859d7(0x199)][_0x5859d7(0x151)](_0x445d4d):null;}['getTransform'](){const _0x504ecf=_0x353aab;let _0x2093b7=this[_0x504ecf(0x1aa)]();return _0x2093b7?{..._0x2093b7[_0x504ecf(0x1df)]}:null;}[_0x353aab(0x1f9)](){const _0x278fba=_0x353aab;var _0x2d8d97,_0x4daebd;return(_0x2d8d97=(_0x4daebd=this['_getSnapshot']())==null?void 0x0:_0x4daebd[_0x278fba(0x17b)])!=null&&_0x2d8d97;}[_0x353aab(0x20e)](_0x4c4b5c){const _0x540428=_0x353aab;return this[_0x540428(0x164)]({'visible':_0x4c4b5c});}['isSelectable'](){const _0x17a91=_0x353aab;var _0x490d7d,_0x389e06;return(_0x490d7d=(_0x389e06=this[_0x17a91(0x1aa)]())==null?void 0x0:_0x389e06[_0x17a91(0x12f)])!=null&&_0x490d7d;}[_0x353aab(0x13d)](_0x19839c){return this['update']({'selectable':_0x19839c});}['getText'](){const _0x23a71b=_0x353aab;return this[_0x23a71b(0x173)][_0x23a71b(0x16e)](o,this[_0x23a71b(0x17f)],this[_0x23a71b(0x173)]);}['isCustomShape'](){const _0x141da3=_0x353aab;let _0x2e5b31=this['getShapeData']();return(_0x2e5b31==null?void 0x0:_0x2e5b31[_0x141da3(0x158)])===!0x0&&!!_0x2e5b31[_0x141da3(0x1cf)];}[_0x353aab(0x1ce)](){const _0x1919cc=_0x353aab;var _0x139678,_0x3be31b;return(_0x139678=(_0x3be31b=this[_0x1919cc(0x13c)]())==null?void 0x0:_0x3be31b[_0x1919cc(0x1cf)])==null?null:_0x139678;}[_0x353aab(0x1eb)](_0x26964d){return this['_patchShapeData'](_0x37e39a=>({..._0x37e39a,'shapeType':_0x26964d}),_0x26964d);}['setShapeData'](_0x57c539){const _0x497d0c=_0x353aab;let _0x139b0c=n[_0x497d0c(0x199)][_0x497d0c(0x151)](_0x57c539);return this[_0x497d0c(0x164)]({'shapeType':_0x139b0c[_0x497d0c(0x171)],'shapeData':_0x139b0c});}['setTransform'](_0x466098){const _0x297b24=_0x353aab;return this[_0x297b24(0x164)]({'transform':_0x466098});}[_0x353aab(0x17d)](_0x327c24,_0x3ff757){const _0x48a084=_0x353aab;return this[_0x48a084(0x206)]({'width':_0x327c24,'height':_0x3ff757});}[_0x353aab(0x163)](_0x19ffe1){const _0x432ff6=_0x353aab;return this[_0x432ff6(0x206)]({'rotation':_0x19ffe1});}[_0x353aab(0x18d)](_0x3531fb,_0x59dfd0){return this['setTransform']({'left':_0x3531fb,'top':_0x59dfd0});}[_0x353aab(0x1b5)](_0x947e47){const _0x2b8eb8=_0x353aab;var _0xf7a4d9,_0x335a70,_0x1e424f;let _0x341383=(_0xf7a4d9=(_0x335a70=_0x947e47[_0x2b8eb8(0x202)])==null?void 0x0:_0x335a70[_0x2b8eb8(0x20d)](({x:_0x30255e,y:_0x4c9a96})=>_0x30255e===void 0x0||_0x4c9a96===void 0x0))==null?-0x1:_0xf7a4d9;if(_0x341383>=0x0)return console[_0x2b8eb8(0x20a)](_0x2b8eb8(0x198)+_0x341383+_0x2b8eb8(0x1b8)),this;let _0x4e5473=n[_0x2b8eb8(0x199)]['deepClone'](_0x947e47);if((_0x1e424f=_0x4e5473[_0x2b8eb8(0x202)])!=null&&_0x1e424f['length']){let _0x2406a3=this['_getSnapshot']();if(!_0x2406a3)return this;try{let _0x4a2c41=new e[(_0x2b8eb8(0x133))](_0x2406a3[_0x2b8eb8(0x171)],_0x2406a3[_0x2b8eb8(0x214)],{..._0x2406a3['shapeData'],'isCustom':!0x0,'customGeometry':_0x4e5473});_0x4a2c41[_0x2b8eb8(0x1c7)]({'width':_0x2406a3['transform'][_0x2b8eb8(0x1d4)],'height':_0x2406a3['transform'][_0x2b8eb8(0x148)]}),_0x4a2c41[_0x2b8eb8(0x162)]();}catch{return console[_0x2b8eb8(0x20a)](_0x2b8eb8(0x19b)),this;}}return this[_0x2b8eb8(0x193)](_0x43f981=>({..._0x43f981,'isCustom':!0x0,'customGeometry':_0x4e5473}));}[_0x353aab(0x21d)](){const _0x32170e=_0x353aab;var _0x4c4ad7,_0x9d475c;return(_0x4c4ad7=(_0x9d475c=this['_getGeometryModel']())==null?void 0x0:_0x9d475c['getConnectionSiteList']()[_0x32170e(0x135)](_0x2627dc=>({..._0x2627dc})))==null?[]:_0x4c4ad7;}[_0x353aab(0x1d5)](){const _0x477f5e=_0x353aab;var _0x376419;let _0x2b9214=(_0x376419=this[_0x477f5e(0x20b)]())==null?void 0x0:_0x376419[_0x477f5e(0x1d5)]();return _0x2b9214?{..._0x2b9214}:null;}['getEndConnectInfo'](){const _0xd54495=_0x353aab;var _0x376b6b;let _0x30387c=(_0x376b6b=this['_getGeometryModel']())==null?void 0x0:_0x376b6b[_0xd54495(0x1b6)]();return _0x30387c?{..._0x30387c}:null;}['getAdjustHandles'](){const _0x60bc06=_0x353aab;var _0x5dda40,_0x5b4a35;let _0x52f0d1=this[_0x60bc06(0x20b)](),_0x59d9de=(_0x5dda40=_0x52f0d1==null||(_0x5b4a35=_0x52f0d1['getPresetShapeConfig']()['ahLst'])==null?void 0x0:_0x5b4a35['length'])==null?0x0:_0x5dda40;return!_0x52f0d1||_0x59d9de===0x0?[]:Array[_0x60bc06(0x13b)]({'length':_0x59d9de},(_0x10b49b,_0xc11ab5)=>_0x52f0d1[_0x60bc06(0x1cd)](_0xc11ab5))['filter'](_0x27e1be=>_0x27e1be!==void 0x0)[_0x60bc06(0x135)](_0x9f184f=>n[_0x60bc06(0x199)][_0x60bc06(0x151)](_0x9f184f));}[_0x353aab(0x146)](_0x6c1c82){const _0x2ae0be=_0x353aab;let _0x39f6fe=Object['entries'](_0x6c1c82);if(_0x39f6fe[_0x2ae0be(0x1be)]===0x0)return this;let _0x3c76de=this['_getGeometryModel']();if(!_0x3c76de)return this;let _0x32e687=new Set(_0x3c76de['getAdjustNames']());for(let [_0x3b53d5,_0x34d0e9]of _0x39f6fe){if(!_0x32e687[_0x2ae0be(0x15e)](_0x3b53d5))return console[_0x2ae0be(0x20a)](_0x2ae0be(0x1ca)+_0x3b53d5+_0x2ae0be(0x17a)),this;if(!Number['isFinite'](_0x34d0e9))return console[_0x2ae0be(0x20a)](_0x2ae0be(0x1ca)+_0x3b53d5+'\x22\x20must\x20be\x20finite.'),this;}let _0xb2077d=Object[_0x2ae0be(0x205)](_0x39f6fe[_0x2ae0be(0x135)](([_0x272d0d,_0x4839a1])=>[_0x272d0d,_0x3c76de[_0x2ae0be(0x19c)](_0x272d0d,_0x4839a1)]));return this[_0x2ae0be(0x193)](_0x2522ae=>({..._0x2522ae,'adjustValues':{..._0x2522ae[_0x2ae0be(0x13a)],..._0xb2077d}}));}['resetAdjustValues'](){const _0x48571d=_0x353aab;let _0x3d4612=this['getShapeData']();return _0x3d4612!=null&&_0x3d4612[_0x48571d(0x13a)]?(delete _0x3d4612['adjustValues'],this[_0x48571d(0x164)]({'shapeData':_0x3d4612})):this;}[_0x353aab(0x1f0)](_0x9a7ed4,_0x60dcfc){const _0x5ab61a=_0x353aab;return this[_0x5ab61a(0x193)](_0x687f5e=>({..._0x687f5e,'fill':{'fillType':e[_0x5ab61a(0x195)][_0x5ab61a(0x1e3)],'color':_0x9a7ed4,'opacity':_0x60dcfc}}));}[_0x353aab(0x197)](_0x1e6aa7,_0x21a0d5,_0x4b5e39){const _0x904bce=_0x353aab;return _0x21a0d5['length']<0x2?(console[_0x904bce(0x20a)](_0x904bce(0x1d2)),this):this[_0x904bce(0x193)](_0x2f7262=>({..._0x2f7262,'fill':{'fillType':e[_0x904bce(0x195)][_0x904bce(0x1e0)],'gradientType':_0x1e6aa7,'gradientStops':n[_0x904bce(0x199)]['deepClone'](_0x21a0d5),'gradientAngle':_0x4b5e39}}));}[_0x353aab(0x1cc)](_0x53d7d5,_0xb012d9,_0x22fe61={}){const _0x589f65=_0x353aab;return this[_0x589f65(0x193)](_0x1ac62f=>({..._0x1ac62f,'fill':{...n['Tools']['deepClone'](_0x22fe61),'fillType':e[_0x589f65(0x195)][_0x589f65(0x140)],'fillImageSource':_0x53d7d5,'fillImageSourceType':_0xb012d9}}));}[_0x353aab(0x181)](){const _0x12f0b3=_0x353aab;return this[_0x12f0b3(0x193)](_0x47609d=>({..._0x47609d,'fill':{'fillType':e[_0x12f0b3(0x195)][_0x12f0b3(0x172)]}}));}[_0x353aab(0x1d9)](_0xac6fd5){return this['_patchShapeData'](_0x2551b1=>({..._0x2551b1,'stroke':n['Tools']['deepClone'](_0xac6fd5)}));}[_0x353aab(0x1c8)](_0x198216){const _0x4df453=_0x353aab;return this['_patchStroke'](_0x16b17e=>({..._0x16b17e,'color':_0x198216,'lineStrokeType':_0x16b17e['lineStrokeType']===e[_0x4df453(0x1f6)][_0x4df453(0x16a)]?e[_0x4df453(0x1f6)]['SolidLine']:_0x16b17e['lineStrokeType']}));}[_0x353aab(0x1a4)](_0x7d3148){const _0xde81ac=_0x353aab;return this[_0xde81ac(0x219)](_0x52ca09=>({..._0x52ca09,'width':_0x7d3148,'lineStrokeType':_0x52ca09['lineStrokeType']===e[_0xde81ac(0x1f6)][_0xde81ac(0x16a)]?e[_0xde81ac(0x1f6)][_0xde81ac(0x1a1)]:_0x52ca09['lineStrokeType']}));}[_0x353aab(0x160)](_0x50b157){const _0x1ee6ac=_0x353aab;return this[_0x1ee6ac(0x219)](_0x45ae2a=>({..._0x45ae2a,'opacity':_0x50b157}));}[_0x353aab(0x14d)](_0x71dba1){const _0x982a45=_0x353aab;return this[_0x982a45(0x219)](_0x4629b1=>({..._0x4629b1,'dashType':_0x71dba1}));}['setStrokeLineJoinType'](_0x387e9b){const _0x40d919=_0x353aab;return this[_0x40d919(0x219)](_0xb1cb64=>({..._0xb1cb64,'lineJoinType':_0x387e9b}));}[_0x353aab(0x161)](_0x4bd28a){const _0x19f874=_0x353aab;return this[_0x19f874(0x219)](_0x18d598=>({..._0x18d598,'capType':_0x4bd28a}));}['setStrokeLineType'](_0x4e463a){return this['_patchStroke'](_0x35e65b=>({..._0x35e65b,'lineStrokeType':_0x4e463a}));}[_0x353aab(0x164)](_0x4e42da){const _0x1cd901=_0x353aab;var _0x327c28,_0x537c0b,_0x3375da;let _0x3d8649=_0x4e42da['shapeData'],_0x82252b=_0x3d8649&&(_0x1cd901(0x209)in _0x3d8649||_0x1cd901(0x145)in _0x3d8649)?this[_0x1cd901(0x218)]():null,_0x37a8c2=(_0x327c28=(_0x537c0b=_0x4e42da[_0x1cd901(0x171)])==null?(_0x3375da=_0x4e42da['shapeData'])==null?void 0x0:_0x3375da[_0x1cd901(0x171)]:_0x537c0b)==null?_0x82252b:_0x327c28,_0x55e285=u(_0x4e42da,_0x37a8c2!==null&&(0x0,e[_0x1cd901(0x19f)])(_0x37a8c2));return _0x55e285?(console[_0x1cd901(0x20a)]('[Shape\x20Facade]:\x20'+_0x55e285),this):(this[_0x1cd901(0x21b)]('update',_0x45d58a=>_0x45d58a[_0x1cd901(0x144)](this[_0x1cd901(0x17f)],_0x4e42da)),this);}['remove'](){const _0x14d451=_0x353aab;return this['_mutate']('remove',_0x2cee93=>_0x2cee93[_0x14d451(0x1fd)](this[_0x14d451(0x17f)]));}[_0x353aab(0x153)](){const _0x5a232f=_0x353aab;return this[_0x5a232f(0x21b)]('bring\x20to\x20front',_0x310760=>_0x310760[_0x5a232f(0x153)](this[_0x5a232f(0x17f)])),this;}['bringForward'](){const _0xb8f1a1=_0x353aab;return this[_0xb8f1a1(0x21b)](_0xb8f1a1(0x14f),_0x112841=>_0x112841[_0xb8f1a1(0x18e)](this[_0xb8f1a1(0x17f)])),this;}[_0x353aab(0x169)](){const _0x17d60f=_0x353aab;return this[_0x17d60f(0x21b)](_0x17d60f(0x14e),_0x11be6c=>_0x11be6c[_0x17d60f(0x169)](this[_0x17d60f(0x17f)])),this;}[_0x353aab(0x1d7)](){const _0x347040=_0x353aab;return this['_mutate'](_0x347040(0x1a6),_0x5d9ed0=>_0x5d9ed0[_0x347040(0x1d7)](this['_shapeRef'])),this;}[_0x353aab(0x184)](){const _0xbcba19=_0x353aab;return this[_0xbcba19(0x168)]['get'](this[_0xbcba19(0x17f)][_0xbcba19(0x19d)]);}[_0x353aab(0x193)](_0x18dba,_0x1cb6d8){const _0x14769b=_0x353aab;let _0x2f4bb6=this[_0x14769b(0x13c)]();return _0x2f4bb6?this['update']({'shapeType':_0x1cb6d8,'shapeData':_0x18dba(_0x2f4bb6)}):this;}[_0x353aab(0x219)](_0x40765f){const _0x5ad789=_0x353aab;return this[_0x5ad789(0x193)](_0x3f9db0=>{const _0x458d84=_0x5ad789;var _0x1d29a0;return{..._0x3f9db0,'stroke':_0x40765f((_0x1d29a0=_0x3f9db0[_0x458d84(0x137)])==null?{}:_0x1d29a0)};});}['_getSnapshot'](){const _0x2e94bd=_0x353aab;let _0x4149a4=this['_getAdapter']();if(!_0x4149a4)return null;try{return _0x4149a4[_0x2e94bd(0x1ec)](this['_shapeRef'])||(console[_0x2e94bd(0x20a)](_0x2e94bd(0x1a9)+this[_0x2e94bd(0x17f)]['shapeId']+'\x22\x20was\x20not\x20found.'),null);}catch(_0x4feb5b){return console[_0x2e94bd(0x20a)](_0x2e94bd(0x190)+this['_shapeRef'][_0x2e94bd(0x214)]+'\x22.',_0x4feb5b),null;}}[_0x353aab(0x20b)](){const _0xbf6c6c=_0x353aab;let _0x11a5c8=this['_getSnapshot']();if(!_0x11a5c8)return null;try{let _0xf09087=new e[(_0xbf6c6c(0x133))](_0x11a5c8[_0xbf6c6c(0x171)],_0x11a5c8[_0xbf6c6c(0x214)],n['Tools'][_0xbf6c6c(0x151)](_0x11a5c8[_0xbf6c6c(0x215)]));return _0xf09087[_0xbf6c6c(0x1c7)]({'width':_0x11a5c8[_0xbf6c6c(0x1df)][_0xbf6c6c(0x1d4)],'height':_0x11a5c8['transform'][_0xbf6c6c(0x148)]}),_0xf09087;}catch(_0x18d5de){return console[_0xbf6c6c(0x20a)](_0xbf6c6c(0x132)+this[_0xbf6c6c(0x17f)][_0xbf6c6c(0x214)]+'\x22.',_0x18d5de),null;}}[_0x353aab(0x21b)](_0x3873e2,_0xc525b6){const _0x4c9c2a=_0x353aab;let _0x131d75=this[_0x4c9c2a(0x184)]();if(!_0x131d75)return!0x1;try{let _0x5587d9=_0xc525b6(_0x131d75);return _0x5587d9||console[_0x4c9c2a(0x20a)](_0x4c9c2a(0x14b)+_0x3873e2+'\x20Shape\x20\x22'+this[_0x4c9c2a(0x17f)][_0x4c9c2a(0x214)]+'\x22.'),_0x5587d9;}catch(_0x4a9b73){return console[_0x4c9c2a(0x20a)](_0x4c9c2a(0x14b)+_0x3873e2+_0x4c9c2a(0x210)+this[_0x4c9c2a(0x17f)][_0x4c9c2a(0x214)]+'\x22.',_0x4a9b73),!0x1;}}};l=c([s(0x2,e['IShapeHostAdapterRegistry']),s(0x3,n[_0x353aab(0x1e5)])],l);function _0x2176(){const _0x2b16b9=['every','_shapeRef','Radial','setNoneFill','FShapeText','offsetX','_getAdapter','setColor','[Shape\x20Text\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','\x22\x20binding\x20requires\x20a\x20target\x20Shape\x20ID\x20and\x20a\x20non-negative\x20connection\x20site\x20index.','\x22\x20was\x20not\x20found.','_updateShapeData','FBase','isInteger','set\x20start\x20arrow','setAbsolutePosition','bringForward','setStrikethrough','[Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','ShapeLineJoinEnum','Shape\x20width\x20must\x20be\x20greater\x20than\x20zero.','_patchShapeData','ShapeArrowSizeEnum','ShapeFillEnum','end','setGradientFill','[Shape\x20Facade]:\x20Custom\x20geometry\x20connection\x20site\x20','Tools','ShapeOperatorEnum','[Shape\x20Facade]:\x20Custom\x20geometry\x20connection\x20sites\x20must\x20resolve\x20to\x20finite\x20coordinates.','setAdjustValueByName','hostType','FEnum','isConnectorShape','object','SolidLine','ImageFillModeEnum','setEndPoint','setStrokeWidth','ShapeTextDirection','send\x20to\x20back','setUnderline','setTextStyle','[Shape\x20Facade]:\x20Shape\x20\x22','_getSnapshot','[Shape\x20Text\x20Facade]:\x20Shape\x20\x22','getName','getEndEndpoint','[Shape\x20Facade]:\x20Failed\x20to\x20read\x20Connector\x20Shape\x20\x22','_mutateConnector','[Shape\x20Facade]:\x20Connector\x20\x22','bindStart','ShapeLineDashEnum','top','applyShapeTextBoxOptions','setCustomGeometry','getEndConnectInfo','getTextBoxOptions','\x20requires\x20both\x20\x22x\x22\x20and\x20\x22y\x22.','\x22\x20must\x20be\x20boolean.','offsetY','setShapeData','_getShapeData','setItalic','length','\x22\x20text.','_getConnectorSnapshot','setTextBoxOptions','boolean','function','defineProperty','getDescription','radial','updateContext','setStrokeColor','setFontSize','[Shape\x20Facade]:\x20Shape\x20adjustment\x20\x22','gradient','setImageFill','getAdjustInfo','getCustomGeometry','customGeometry','ShapeImageFillModeEnum','getEndArrow','[Shape\x20Facade]:\x20Gradient\x20fill\x20requires\x20at\x20least\x20two\x20color\x20stops.','Shape\x20height\x20must\x20be\x20greater\x20than\x20zero.','width','getStartConnectInfo','IShapeHostAdapterRegistry','sendToBack','endArrow','setStroke','Angular','setRichText','unbind\x20end','getPlainText','\x22\x20must\x20be\x20finite.','transform','GradientFill','ShapeTypeEnum','TRUE','SolidFill','scaleY','ICommandService','setFontFamily','7MqNlIT','setVerticalAlign','getConnector','angular','setShapeType','getShape','unbindStart','126766qRCNdx','setBold','setSolidFill','FALSE','applyShapeTextAlignment','flipX','ShapeImageSourceTypeEnum','ShapeLineCapEnum','ShapeLineTypeEnum','10eTCRmP','rotation','isVisible','name','routePoints','\x22\x20requires\x20Connector\x20Shape\x20data.','removeShape','opacity','shapeTextToRichTextValue','unbindEnd','URL','cxnLst','set\x20start\x20point','diamond','fromEntries','setTransform','270151NGFTUu','2460635vmWunp','relation','warn','_getGeometryModel','stretch','findIndex','setVisible','setDescription','\x20Shape\x20\x22','scaleX','picture','extend','shapeId','shapeData','_commandService','[Shape\x20Text\x20Facade]:\x20Failed\x20to\x20update\x20Shape\x20\x22','getShapeType','_patchStroke','setName','_mutate','toStringTag','getConnectionSites','start','selectable','getRoutePoints','setStartPoint','[Shape\x20Facade]:\x20Failed\x20to\x20resolve\x20geometry\x20for\x20Shape\x20\x22','ShapeModel','_getConnectorAdapter','map','1440688qnuFmU','stroke','setStartArrow','toPlainText','adjustValues','from','getShapeData','setSelectable','Diamond','BooleanNumber','PictureFill','get','196124wjqNlu','setRoutePoints','updateShape','points','setAdjustValues','5638761VIAnVH','height','getRichText','[Shape\x20Text\x20Facade]:\x20Gradient\x20text\x20fill\x20requires\x20at\x20least\x20two\x20color\x20stops.','[Shape\x20Facade]:\x20Failed\x20to\x20','[Shape\x20Facade]:\x20Connector\x20Shape\x20\x22','setStrokeLineDashType','send\x20backward','bring\x20forward','Module','deepClone','set\x20route\x20points','bringToFront','color','ShapeArrowTypeEnum','6BLpnbS','unbind\x20start','isCustom','set\x20end\x20point','\x22\x20points\x20must\x20contain\x20finite\x20coordinates.','isFinite','_bind','Tile','has','shapeText','setStrokeOpacity','setStrokeLineCapType','getConnectionSiteList','setRotation','update','\x22\x20requires\x20a\x20Connector\x20Shape\x20type.','ImageSourceTypeEnum','Shape\x20transform\x20\x22','_shapeHostAdapterRegistry','sendBackward','NoLine','11GJNcNH','ShapeTextWrapType','decorate','createInstance','39Okykyv','\x20Connector\x20Shape\x20\x22','shapeType','NoFill','_injector','ShapeGradientTypeEnum','set\x20end\x20arrow','9598692gkgQuY','getSnapshot','setEndArrow','FShape','\x22\x20does\x20not\x20exist.','visible','Shape\x20\x22','setSize'];_0x2176=function(){return _0x2b16b9;};return _0x2176();}function u(_0x63efb0,_0x30f76b=!0x1){const _0x5707a7=_0x353aab;for(let _0x28f275 of['visible',_0x5707a7(0x12f)]){let _0x3cbf5e=_0x63efb0[_0x28f275];if(_0x3cbf5e!==void 0x0&&typeof _0x3cbf5e!=_0x5707a7(0x1c2))return _0x5707a7(0x17c)+_0x28f275+_0x5707a7(0x1b9);}let _0x16e9eb=_0x63efb0[_0x5707a7(0x1df)];if(_0x16e9eb){for(let _0x153c8e of['left',_0x5707a7(0x1b3),_0x5707a7(0x1d4),_0x5707a7(0x148),_0x5707a7(0x1f8)]){let _0x1345ca=_0x16e9eb[_0x153c8e];if(_0x1345ca!==void 0x0&&!Number[_0x5707a7(0x15b)](_0x1345ca))return _0x5707a7(0x167)+_0x153c8e+_0x5707a7(0x1de);}if(_0x16e9eb[_0x5707a7(0x1d4)]!==void 0x0&&_0x16e9eb[_0x5707a7(0x1d4)]<=0x0)return _0x5707a7(0x192);if(_0x16e9eb[_0x5707a7(0x148)]!==void 0x0&&_0x16e9eb['height']<=0x0)return _0x5707a7(0x1d3);for(let _0x1afb32 of[_0x5707a7(0x1f3),'flipY']){let _0x3f19b2=_0x16e9eb[_0x1afb32];if(_0x3f19b2!==void 0x0&&typeof _0x3f19b2!=_0x5707a7(0x1c2))return _0x5707a7(0x167)+_0x1afb32+_0x5707a7(0x1b9);}}let _0x219fea=_0x63efb0[_0x5707a7(0x215)];return!_0x30f76b&&_0x219fea&&(_0x5707a7(0x209)in _0x219fea||'points'in _0x219fea)?'Connector\x20relationships\x20and\x20route\x20points\x20require\x20FConnectorShape.':null;}var d=class extends l{['isConnectorShape'](){return!0x0;}['getStartEndpoint'](){const _0x27cfc5=_0x353aab;let _0x4c17b9=this[_0x27cfc5(0x1c0)]();return _0x4c17b9?n[_0x27cfc5(0x199)][_0x27cfc5(0x151)](_0x4c17b9[_0x27cfc5(0x12e)]):null;}[_0x353aab(0x1ad)](){const _0x192291=_0x353aab;let _0x42fbb7=this[_0x192291(0x1c0)]();return _0x42fbb7?n['Tools'][_0x192291(0x151)](_0x42fbb7[_0x192291(0x196)]):null;}[_0x353aab(0x130)](){const _0x37ecb6=_0x353aab;let _0x26fbd5=this[_0x37ecb6(0x1c0)]();return _0x26fbd5?n[_0x37ecb6(0x199)]['deepClone'](_0x26fbd5[_0x37ecb6(0x1fb)]):null;}['getStartArrow'](){const _0x23a01e=_0x353aab;let _0xfbb9e=this[_0x23a01e(0x1c0)]();return _0xfbb9e?n['Tools']['deepClone'](_0xfbb9e['startArrow']):null;}[_0x353aab(0x1d1)](){const _0x4b44ea=_0x353aab;let _0x211a38=this[_0x4b44ea(0x1c0)]();return _0x211a38?n[_0x4b44ea(0x199)][_0x4b44ea(0x151)](_0x211a38[_0x4b44ea(0x1d8)]):null;}['setShapeType'](_0x37da32){const _0x263149=_0x353aab;return(0x0,e['isConnectorShape'])(_0x37da32)?super['setShapeType'](_0x37da32):(console[_0x263149(0x20a)](_0x263149(0x14c)+this[_0x263149(0x17f)][_0x263149(0x214)]+_0x263149(0x165)),this);}['setShapeData'](_0x4147d3){const _0x35e223=_0x353aab;return _0x4147d3[_0x35e223(0x171)]!==void 0x0&&!(0x0,e[_0x35e223(0x19f)])(_0x4147d3[_0x35e223(0x171)])?(console[_0x35e223(0x20a)]('[Shape\x20Facade]:\x20Connector\x20Shape\x20\x22'+this['_shapeRef'][_0x35e223(0x214)]+_0x35e223(0x1fc)),this):super[_0x35e223(0x1bb)](_0x4147d3);}[_0x353aab(0x1b1)](_0x349728,_0x2f6ac3){const _0x57317c=_0x353aab;return this[_0x57317c(0x15c)]('start',_0x349728,_0x2f6ac3),this;}['bindEnd'](_0x2efd39,_0x24d73f){return this['_bind']('end',_0x2efd39,_0x24d73f),this;}[_0x353aab(0x1ed)](){const _0x3bb9d4=_0x353aab;return this[_0x3bb9d4(0x1af)](_0x3bb9d4(0x157),_0x5b81f1=>_0x5b81f1['unbindStart'](this[_0x3bb9d4(0x17f)])),this;}[_0x353aab(0x200)](){const _0x4e6945=_0x353aab;return this[_0x4e6945(0x1af)](_0x4e6945(0x1dc),_0x2a46c6=>_0x2a46c6[_0x4e6945(0x200)](this[_0x4e6945(0x17f)])),this;}[_0x353aab(0x131)](_0x4de025){const _0x2eaf3f=_0x353aab;return f(_0x4de025,this['_shapeRef'][_0x2eaf3f(0x214)])&&this[_0x2eaf3f(0x1af)](_0x2eaf3f(0x203),_0x4b8a0d=>_0x4b8a0d[_0x2eaf3f(0x131)](this[_0x2eaf3f(0x17f)],_0x4de025)),this;}['setEndPoint'](_0x11e407){const _0x282fa5=_0x353aab;return f(_0x11e407,this[_0x282fa5(0x17f)][_0x282fa5(0x214)])&&this['_mutateConnector'](_0x282fa5(0x159),_0x4d1000=>_0x4d1000[_0x282fa5(0x1a3)](this['_shapeRef'],_0x11e407)),this;}[_0x353aab(0x143)](_0x3e170f){const _0x4bb35c=_0x353aab;return _0x3e170f[_0x4bb35c(0x17e)](_0x270a19=>f(_0x270a19,this[_0x4bb35c(0x17f)][_0x4bb35c(0x214)]))&&this[_0x4bb35c(0x1af)](_0x4bb35c(0x152),_0x3c96ac=>_0x3c96ac['setRoutePoints'](this[_0x4bb35c(0x17f)],_0x3e170f)),this;}[_0x353aab(0x138)](_0x55c940,_0x42d3f3){const _0x3242f3=_0x353aab;return this[_0x3242f3(0x1af)](_0x3242f3(0x18c),_0x18eb14=>_0x18eb14['setStartArrow'](this[_0x3242f3(0x17f)],_0x55c940,_0x42d3f3)),this;}['setEndArrow'](_0x27d823,_0x448798){const _0x10a636=_0x353aab;return this[_0x10a636(0x1af)](_0x10a636(0x175),_0x4d2d1e=>_0x4d2d1e[_0x10a636(0x178)](this[_0x10a636(0x17f)],_0x27d823,_0x448798)),this;}['_getConnectorAdapter'](){const _0x3aedb3=_0x353aab;return this[_0x3aedb3(0x173)][_0x3aedb3(0x141)](e['IConnectorShapeHostAdapter']);}[_0x353aab(0x1c0)](){const _0x1add2c=_0x353aab;let _0x4d4320=this[_0x1add2c(0x134)]();if(!_0x4d4320)return null;try{return _0x4d4320[_0x1add2c(0x1e9)](this['_shapeRef'])||(console['warn']('[Shape\x20Facade]:\x20Connector\x20Shape\x20\x22'+this[_0x1add2c(0x17f)]['shapeId']+_0x1add2c(0x188)),null);}catch(_0x4d2988){return console[_0x1add2c(0x20a)](_0x1add2c(0x1ae)+this[_0x1add2c(0x17f)][_0x1add2c(0x214)]+'\x22.',_0x4d2988),null;}}[_0x353aab(0x15c)](_0x1ad1d4,_0x5295e1,_0x1e1888){const _0x1c9165=_0x353aab;if(!_0x5295e1||!Number[_0x1c9165(0x18b)](_0x1e1888)||_0x1e1888<0x0)return console[_0x1c9165(0x20a)](_0x1c9165(0x1b0)+this['_shapeRef']['shapeId']+_0x1c9165(0x187)),!0x1;let _0x2935ef={'shapeId':_0x5295e1,'cxnIndex':_0x1e1888};return this[_0x1c9165(0x1af)]('bind\x20'+_0x1ad1d4,_0x593e67=>_0x1ad1d4===_0x1c9165(0x12e)?_0x593e67['bindStart'](this['_shapeRef'],_0x2935ef):_0x593e67['bindEnd'](this[_0x1c9165(0x17f)],_0x2935ef));}[_0x353aab(0x1af)](_0x4770be,_0x33b020){const _0x510479=_0x353aab;let _0x2b8c25=this[_0x510479(0x134)]();if(!_0x2b8c25)return!0x1;try{let _0xe90835=_0x33b020(_0x2b8c25);return _0xe90835||console[_0x510479(0x20a)](_0x510479(0x14b)+_0x4770be+_0x510479(0x170)+this[_0x510479(0x17f)][_0x510479(0x214)]+'\x22.'),_0xe90835;}catch(_0x268684){return console['warn']('[Shape\x20Facade]:\x20Failed\x20to\x20'+_0x4770be+'\x20Connector\x20Shape\x20\x22'+this[_0x510479(0x17f)][_0x510479(0x214)]+'\x22.',_0x268684),!0x1;}}};function f(_0x4b9d28,_0xfcc89b){const _0x5ad764=_0x353aab;return!Number[_0x5ad764(0x15b)](_0x4b9d28['x'])||!Number['isFinite'](_0x4b9d28['y'])?(console['warn'](_0x5ad764(0x1b0)+_0xfcc89b+_0x5ad764(0x15a)),!0x1):!0x0;}exports['FConnectorShape']=d,Object[_0x353aab(0x1c4)](exports,_0x353aab(0x179),{'enumerable':!0x0,'get':function(){return l;}}),exports[_0x353aab(0x182)]=o;