@univerjs-pro/docs-shape-ui 1.5.0 → 1.5.1
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/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +20 -20
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xac088e=_0xa70b;(function(_0x1ebfaf,_0x436864){const _0x3d8022=_0xa70b,_0x9379dd=_0x1ebfaf();while(!![]){try{const _0x2638a2=parseInt(_0x3d8022(0x445))/0x1*(parseInt(_0x3d8022(0x2d9))/0x2)+parseInt(_0x3d8022(0x272))/0x3+-parseInt(_0x3d8022(0x45b))/0x4+parseInt(_0x3d8022(0x39f))/0x5+parseInt(_0x3d8022(0x377))/0x6+-parseInt(_0x3d8022(0x4a7))/0x7*(parseInt(_0x3d8022(0x3d5))/0x8)+-parseInt(_0x3d8022(0x1d6))/0x9*(-parseInt(_0x3d8022(0x297))/0xa);if(_0x2638a2===_0x436864)break;else _0x9379dd['push'](_0x9379dd['shift']());}catch(_0x2de193){_0x9379dd['push'](_0x9379dd['shift']());}}}(_0x404d,0x783fa),Object[_0xac088e(0x2e7)](exports,Symbol[_0xac088e(0x2c2)],{'value':_0xac088e(0x2ce)}));let e=require('@univerjs-pro/shape-editor-ui'),t=require('@univerjs/docs-ui'),n=require('@univerjs/ui'),r=require('@univerjs-pro/docs-shape'),i=require('@univerjs-pro/engine-shape'),a=require('@univerjs-pro/shape-editor'),o=require('@univerjs/core'),s=require('@univerjs/docs'),c=require('@univerjs/docs-drawing'),l=require('@univerjs/engine-render'),u=require('@univerjs/drawing'),d=require('@univerjs/drawing-ui'),f=require('react/jsx-runtime'),p=require('rxjs'),m=require('@univerjs-pro/license'),h=require('@univerjs/docs-drawing-ui'),g=require('@univerjs/icons'),_=require('@univerjs/design'),v=require('react'),y=require('@univerjs/protocol');function b(_0x61f37b,_0x2c74df){const _0x40f6a4=_0xac088e;if(_0x2c74df){if((0x0,i[_0x40f6a4(0x471)])(_0x61f37b)&&(_0x2c74df['startArrow']||_0x2c74df['endArrow']))return{'ln':{'startArrow':_0x2c74df[_0x40f6a4(0x40b)]?{'type':i[_0x40f6a4(0x1f2)][_0x40f6a4(0x3d2)],'size':i[_0x40f6a4(0x26e)][_0x40f6a4(0x216)]}:void 0x0,'endArrow':_0x2c74df[_0x40f6a4(0x349)]?{'type':i[_0x40f6a4(0x1f2)]['Arrow'],'size':i[_0x40f6a4(0x26e)]['Large']}:void 0x0}};if(_0x61f37b===i['ShapeTypeEnum'][_0x40f6a4(0x245)]&&(_0x2c74df['horizontal']||_0x2c74df['vertical']))return(0x0,a[_0x40f6a4(0x265)])({'fill':{'fillType':i[_0x40f6a4(0x484)][_0x40f6a4(0x334)],'color':'#3B82F6'},'isHorizontal':!!_0x2c74df[_0x40f6a4(0x4a5)],'stroke':{'lineStrokeType':i['ShapeLineTypeEnum']['SolidLine'],'width':0x1,'color':_0x40f6a4(0x352)}});}}function x(_0x735293,_0x54e9d4){const _0x4428c1=_0xac088e;var _0x28965f;let _0x2135a7=_0x54e9d4[_0x4428c1(0x256)]??'',_0x1fc100=(_0x28965f=_0x735293[_0x4428c1(0x28a)](_0x2135a7))==null?void 0x0:_0x28965f['getBody']();if(!_0x1fc100)return null;let _0x4c1cb6=_0x1fc100['paragraphs']??[],_0x175100=_0x4c1cb6[_0x4428c1(0x41f)](_0xd9ff67=>{const _0x5c083b=_0x4428c1;let _0x21bf9a=(0x0,o[_0x5c083b(0x247)])(_0x1fc100,_0xd9ff67);return _0x54e9d4[_0x5c083b(0x28d)]>=_0x21bf9a&&_0x54e9d4[_0x5c083b(0x28d)]<=_0xd9ff67[_0x5c083b(0x4ae)];})??_0x4c1cb6[_0x4c1cb6[_0x4428c1(0x1ee)]-0x1];return _0x175100?{'paragraphId':_0x175100[_0x4428c1(0x3e0)],'segmentId':_0x2135a7,'position':r[_0x4428c1(0x34f)][_0x4428c1(0x222)],'offset':_0x54e9d4[_0x4428c1(0x28d)]-(0x0,o[_0x4428c1(0x247)])(_0x1fc100,_0x175100)}:null;}function S(_0x3b58d8,_0x25ccc3,_0x352d94){const _0x128f34=_0xac088e;var _0x24be67,_0x2dff8f;if(!_0x352d94)return null;let _0x51bbf4=(_0x24be67=_0x3b58d8[_0x128f34(0x314)](l['IRenderManagerService'])[_0x128f34(0x4bd)](_0x25ccc3))==null?void 0x0:_0x24be67[_0x128f34(0x3e6)](t['DocParagraphMenuService'])[_0x128f34(0x3d1)];if(!_0x51bbf4)return null;let _0x55dd64=_0x352d94===_0x128f34(0x421)?{'startOffset':_0x51bbf4[_0x128f34(0x2d8)]['endOffset'],'endOffset':_0x51bbf4['moveRange'][_0x128f34(0x494)]}:_0x51bbf4[_0x128f34(0x31c)];return{'startOffset':_0x55dd64[_0x128f34(0x28d)],'endOffset':_0x55dd64[_0x128f34(0x494)],'collapsed':_0x55dd64['startOffset']===_0x55dd64[_0x128f34(0x494)],'segmentId':((_0x2dff8f=_0x51bbf4['paragraph'])==null?void 0x0:_0x2dff8f[_0x128f34(0x256)])??''};}const C={'type':o[_0xac088e(0x3b5)][_0xac088e(0x2c9)],'id':'doc.command.menu-insert-shape','handler':async(_0x2c5821,_0x2cb995)=>{const _0x567ce8=_0xac088e;let _0x111f3e=_0x2c5821[_0x567ce8(0x314)](o[_0x567ce8(0x257)])[_0x567ce8(0x3c7)](o[_0x567ce8(0x230)][_0x567ce8(0x2ba)]);if(!_0x111f3e)return!0x1;let _0x6d80f5=_0x2c5821['get'](o[_0x567ce8(0x2cf)]),_0x12d429=_0x111f3e[_0x567ce8(0x389)](),_0x393090=_0x2cb995['shapeId']??(0x0,o['generateRandomId'])(),_0x4bb7ce=_0x2cb995[_0x567ce8(0x4b0)]??r[_0x567ce8(0x1de)],_0x7a4f5b=_0x2cb995[_0x567ce8(0x3ed)]??r['DEFAULT_DOC_SHAPE_HEIGHT'],_0x203004=_0x2cb995['shapeData']??b(_0x2cb995[_0x567ce8(0x201)],_0x2cb995[_0x567ce8(0x498)]),_0x272e8a=S(_0x2c5821,_0x12d429,_0x2cb995['paragraphMenuPlacement'])??_0x2c5821[_0x567ce8(0x314)](s['DocSelectionManagerService'])[_0x567ce8(0x232)]();if(!_0x272e8a)return!0x1;let _0x302de7=x(_0x111f3e,_0x272e8a);return _0x302de7?!!_0x6d80f5[_0x567ce8(0x1e1)](r[_0x567ce8(0x1eb)]['id'],{'unitId':_0x12d429,'shapeId':_0x393090,'shapeType':_0x2cb995[_0x567ce8(0x201)],'shapeData':_0x203004,'transform':{'width':_0x4bb7ce,'height':_0x7a4f5b},'placement':{'wrappingStyle':c['TextWrappingStyle'][_0x567ce8(0x255)],'anchor':_0x302de7}}):!0x1;}},w=_0xac088e(0x31b),T='docs-shape-ui.ribbon.shape-format',E=_0xac088e(0x369),D=(0x0,o[_0xac088e(0x4f4)])('SHAPE_TEXT'),O=_0xac088e(0x42e),k='DocsShapeTextEditorContainer',A={'id':_0xac088e(0x400),'type':o[_0xac088e(0x3b5)][_0xac088e(0x2c9)],'handler':(_0x14564a,_0x3b84dc)=>{const _0x40463c=_0xac088e;let _0x315032=_0x14564a[_0x40463c(0x314)](n[_0x40463c(0x309)]),_0x20c9aa=_0x14564a[_0x40463c(0x314)](o[_0x40463c(0x2e2)]),_0x17d51b=_0x14564a['get'](u[_0x40463c(0x4ba)]);return(_0x3b84dc==null?void 0x0:_0x3b84dc[_0x40463c(0x201)])==='close'?(_0x315032['close'](E),!0x0):(_0x315032[_0x40463c(0x487)]({'id':E,'header':{'title':_0x20c9aa['t'](_0x40463c(0x4f9))},'children':{'label':E},'onClose':()=>{const _0x32097f=_0x40463c;_0x17d51b[_0x32097f(0x2c7)](null);},'width':0x168}),!0x0);}},j={'type':o[_0xac088e(0x3b5)]['OPERATION'],'id':_0xac088e(0x4b6),'handler'(){return!0x0;}};function M(_0x35f97a){const _0x2e03b9=_0xac088e;let _0x2446cc=_0x35f97a['get'](u['IDrawingManagerService'])[_0x2e03b9(0x2f0)](),_0x36733c=_0x2446cc['length']===0x1?_0x2446cc[0x0]:null;if(!_0x36733c||_0x36733c[_0x2e03b9(0x37c)]!==o['DrawingTypeEnum']['DRAWING_SHAPE'])return null;let _0x44f00c=_0x35f97a[_0x2e03b9(0x314)](r[_0x2e03b9(0x326)]),_0x383fcd=_0x44f00c[_0x2e03b9(0x3c2)](_0x36733c[_0x2e03b9(0x2e6)],_0x36733c['subUnitId'],_0x36733c[_0x2e03b9(0x270)]),_0x5a15c7=_0x44f00c[_0x2e03b9(0x4d8)](_0x36733c[_0x2e03b9(0x2e6)],_0x36733c[_0x2e03b9(0x390)],_0x36733c[_0x2e03b9(0x270)]);return _0x383fcd===void 0x0||!_0x5a15c7?null:{'drawing':_0x36733c,'shapeData':_0x5a15c7,'shapeType':_0x383fcd};}const N={'id':_0xac088e(0x4da),'type':o[_0xac088e(0x3b5)][_0xac088e(0x20a)],'handler':(_0xb439c9,_0x62c78c)=>{const _0x22b4b3=_0xac088e;let _0x1614d4=M(_0xb439c9),_0x1efdf5=(0x0,a[_0x22b4b3(0x1ff)])((_0x62c78c==null?void 0x0:_0x62c78c[_0x22b4b3(0x320)])??(_0x62c78c==null?void 0x0:_0x62c78c[_0x22b4b3(0x201)])??'');if(!_0x1614d4||!_0x1efdf5||_0x1efdf5[_0x22b4b3(0x348)]!==(0x0,a[_0x22b4b3(0x2fe)])(_0x1614d4[_0x22b4b3(0x485)]))return!0x1;let _0x182780=(0x0,a['applyQuickStyleToShapeData'])(_0x1614d4[_0x22b4b3(0x485)],_0x1efdf5);if(!_0x182780)return!0x1;let {drawing:_0x27cb34}=_0x1614d4;return _0xb439c9[_0x22b4b3(0x314)](o[_0x22b4b3(0x2cf)])[_0x22b4b3(0x290)](r[_0x22b4b3(0x218)]['id'],{'unitId':_0x27cb34['unitId'],'shapeId':_0x27cb34[_0x22b4b3(0x270)],'shapeData':_0x182780,'oldShapeJSON':{'oldShapeData':_0x1614d4[_0x22b4b3(0x485)]}});}},P={'id':'doc.operation.update-shape-type','type':o['CommandType'][_0xac088e(0x20a)],'handler':(_0x4b20fb,_0x3d7500)=>{const _0x4369c6=_0xac088e;let _0x35a9e7=M(_0x4b20fb),_0x186a6b=(_0x3d7500==null?void 0x0:_0x3d7500[_0x4369c6(0x492)])??(_0x3d7500==null?void 0x0:_0x3d7500[_0x4369c6(0x201)]);if(!_0x35a9e7||!_0x186a6b||(0x0,i[_0x4369c6(0x471)])(_0x35a9e7[_0x4369c6(0x492)])||(0x0,i[_0x4369c6(0x471)])(_0x186a6b))return!0x1;let _0x51ed27=(0x0,a['cloneShapeDataForType'])(_0x35a9e7[_0x4369c6(0x485)],_0x186a6b);if(!_0x51ed27)return!0x1;let {drawing:_0x37ac4f}=_0x35a9e7;return _0x4b20fb[_0x4369c6(0x314)](o[_0x4369c6(0x2cf)])['executeCommand'](r[_0x4369c6(0x218)]['id'],{'unitId':_0x37ac4f[_0x4369c6(0x2e6)],'shapeId':_0x37ac4f[_0x4369c6(0x270)],'shapeType':_0x186a6b,'shapeData':_0x51ed27,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x35a9e7[_0x4369c6(0x492)],'oldShapeData':_0x35a9e7[_0x4369c6(0x485)]}});}};function F(_0x44e3b5,_0x523302){return function(_0x5e86a5,_0x326164){_0x523302(_0x5e86a5,_0x326164,_0x44e3b5);};}function I(_0x161573,_0x2116df,_0x54f001,_0x2ca466){const _0x3a7391=_0xac088e;var _0x3617c2=arguments[_0x3a7391(0x1ee)],_0x249925=_0x3617c2<0x3?_0x2116df:_0x2ca466===null?_0x2ca466=Object[_0x3a7391(0x2fd)](_0x2116df,_0x54f001):_0x2ca466,_0x1cd7f4;if(typeof Reflect==_0x3a7391(0x4c0)&&typeof Reflect[_0x3a7391(0x1df)]==_0x3a7391(0x481))_0x249925=Reflect[_0x3a7391(0x1df)](_0x161573,_0x2116df,_0x54f001,_0x2ca466);else{for(var _0x41e001=_0x161573['length']-0x1;_0x41e001>=0x0;_0x41e001--)(_0x1cd7f4=_0x161573[_0x41e001])&&(_0x249925=(_0x3617c2<0x3?_0x1cd7f4(_0x249925):_0x3617c2>0x3?_0x1cd7f4(_0x2116df,_0x54f001,_0x249925):_0x1cd7f4(_0x2116df,_0x54f001))||_0x249925);}return _0x3617c2>0x3&&_0x249925&&Object[_0x3a7391(0x2e7)](_0x2116df,_0x54f001,_0x249925),_0x249925;}let L=class extends o[_0xac088e(0x1d9)]{constructor(_0x566955,_0x1366d3){const _0x27cf55=_0xac088e;super(),this['_clipService']=_0x566955,this[_0x27cf55(0x31f)]=_0x1366d3,this[_0x27cf55(0x480)](),this['_clipService'][_0x27cf55(0x3bb)](!0x0),this['disposeWithMe']({'dispose':()=>this['_clipService'][_0x27cf55(0x3bb)](!0x1)});}[_0xac088e(0x480)](){const _0x119e93=_0xac088e;let _0x500e29=new Map(),_0x161f91=this[_0x119e93(0x46c)][_0x119e93(0x347)]((_0x1f86e8,_0xfc4536,_0x1a8d8e,_0x7f4f42,_0x461707)=>{const _0x343c32=_0x119e93;let _0x5b9153=_0xfc4536;if(_0x5b9153===i[_0x343c32(0x436)][_0x343c32(0x467)]||_0xfc4536===_0x343c32(0x3be))return!0x1;try{let _0x279f6c=_0x500e29[_0x343c32(0x314)](_0xfc4536);return _0x279f6c||(_0x279f6c=new i[(_0x343c32(0x48e))](_0x5b9153,_0x343c32(0x396)+_0xfc4536),_0x500e29[_0x343c32(0x373)](_0xfc4536,_0x279f6c)),_0x279f6c[_0x343c32(0x4c7)](),_0x461707&&Object[_0x343c32(0x460)](_0x461707)['length']>0x0&&_0x279f6c[_0x343c32(0x2cd)]({'adjustValues':_0x461707},!0x0),_0x279f6c['updateContext']({'width':_0x1a8d8e,'height':_0x7f4f42}),_0x279f6c[_0x343c32(0x463)](_0x1f86e8,{'left':0x0,'top':0x0,'width':_0x1a8d8e,'height':_0x7f4f42});}catch{return!0x1;}});this[_0x119e93(0x38a)](_0x161f91),this[_0x119e93(0x38a)]({'dispose':()=>_0x500e29[_0x119e93(0x27d)]()});}[_0xac088e(0x269)](_0x2e3ca6,_0x273e63,_0x54d330,_0x54670e,_0x38f417){const _0x1d283f=_0xac088e;let _0x5b8ff4=this['_drawingManagerService']['getDrawingData'](_0x2e3ca6,_0x273e63)[_0x54d330];_0x5b8ff4&&_0x5b8ff4[_0x1d283f(0x37c)]===o['DrawingTypeEnum']['DRAWING_IMAGE']&&this[_0x1d283f(0x31f)][_0x1d283f(0x228)]([{..._0x5b8ff4,'prstGeom':_0x54670e,'adjustValues':_0x38f417}]);}};L=I([F(0x0,(0x0,o[_0xac088e(0x383)])(d['DrawingImageClipService'])),F(0x1,(0x0,o['Inject'])(u[_0xac088e(0x4ba)]))],L);const ee=_0xac088e(0x500),te=_0xac088e(0x4d2);function ne({onShapeClick:_0x406c8e,excludeGroups:_0x3a5e9a}){const _0x369233=_0xac088e;return(0x0,f[_0x369233(0x4de)])(e[_0x369233(0x44c)],{'excludeGroups':_0x3a5e9a,'onShapeClick':_0x406c8e,'scrollContainer':_0x369233(0x378)});}function re(){const _0x29dfd9=_0xac088e;let _0x3246ec=(0x0,n[_0x29dfd9(0x46d)])(u[_0x29dfd9(0x4ba)]),_0x2ff50c=(0x0,n[_0x29dfd9(0x46d)])(L);return _0x47d4f1=>{const _0x11a876=_0x29dfd9;let _0x3adc3c=_0x3246ec[_0x11a876(0x2f0)]()['find'](_0x106036=>_0x106036[_0x11a876(0x37c)]===o['DrawingTypeEnum'][_0x11a876(0x1e5)]);_0x3adc3c&&_0x2ff50c[_0x11a876(0x269)](_0x3adc3c[_0x11a876(0x2e6)],_0x3adc3c['subUnitId'],_0x3adc3c[_0x11a876(0x270)],_0x47d4f1[_0x11a876(0x348)]);};}function ie(){const _0x27f669=_0xac088e;let _0x345483=re();return(0x0,f[_0x27f669(0x4de)])(e[_0x27f669(0x3dc)],{'buttonLabel':_0x27f669(0x322),'excludeGroups':[e[_0x27f669(0x1e2)][_0x27f669(0x3c9)]],'onShapeClick':_0x345483});}function ae(){const _0x8ddc38=_0xac088e;let _0x255e45=(0x0,n[_0x8ddc38(0x46d)])(n[_0x8ddc38(0x2ea)]),_0x210742=(0x0,n[_0x8ddc38(0x46d)])(u[_0x8ddc38(0x4ba)]),_0xc1dc82=(0x0,n[_0x8ddc38(0x46d)])(o[_0x8ddc38(0x257)]),_0x2a91dd=_0x210742[_0x8ddc38(0x2f0)]()[0x0],_0x431b59=_0x2a91dd?_0xc1dc82[_0x8ddc38(0x24e)](_0x2a91dd['unitId']):void 0x0,_0x57b341=_0x431b59===o[_0x8ddc38(0x230)]['UNIVER_DOC']?te:_0x431b59===o[_0x8ddc38(0x230)][_0x8ddc38(0x367)]?_0x8ddc38(0x4f8):void 0x0,_0x3218e0=_0x57b341?_0x255e45[_0x8ddc38(0x314)](_0x57b341):void 0x0;return _0x3218e0?(0x0,f['jsx'])(_0x3218e0,{}):null;}function oe({paragraphMenuPlacement:_0x3ea645,PickerComponent:_0x224cca=ne}){const _0x443162=_0xac088e;let _0x2de72a=(0x0,n[_0x443162(0x46d)])(o[_0x443162(0x2cf)]);return(0x0,f[_0x443162(0x4de)])(_0x224cca,{'onShapeClick':_0x483a36=>{const _0xe531f8=_0x443162;_0x2de72a[_0xe531f8(0x290)](C['id'],{'paragraphMenuPlacement':_0x3ea645,'value':_0x483a36[_0xe531f8(0x348)],'enhanceParams':{'endArrow':_0x483a36[_0xe531f8(0x349)],'startArrow':_0x483a36[_0xe531f8(0x40b)],'horizontal':_0x483a36[_0xe531f8(0x4a5)],'vertical':_0x483a36[_0xe531f8(0x499)]}});}});}function se(_0x5b69e1){const _0x187d84=_0xac088e;return _0x5862fb=>({'id':C['id'],'type':n[_0x187d84(0x2e0)][_0x187d84(0x3a1)],'selections':[{'label':{'name':ee,'hoverable':!0x1,'selectable':!0x1,'props':_0x5b69e1?{'id':C['id'],'paragraphMenuPlacement':_0x5b69e1}:{'id':C['id']}}}],'icon':_0x187d84(0x408),'title':_0x187d84(0x2a8),'tooltip':_0x187d84(0x2a8),'hidden$':(0x0,n[_0x187d84(0x3c3)])(_0x5862fb,o[_0x187d84(0x230)]['UNIVER_DOC'])});}const ce=se(),le=se(_0xac088e(0x421)),ue=se(_0xac088e(0x3c0));function de(_0x1a8aac){const _0x4a6b74=_0xac088e;let _0x5b8e02=_0x1a8aac['get'](n[_0x4a6b74(0x309)]);return{'id':A['id'],'type':n['MenuItemType'][_0x4a6b74(0x3c1)],'icon':_0x4a6b74(0x2bc),'title':_0x4a6b74(0x259),'tooltip':_0x4a6b74(0x259),'activated$':(0x0,p[_0x4a6b74(0x23a)])(()=>_0x5b8e02[_0x4a6b74(0x1ea)][_0x4a6b74(0x424)]((0x0,p[_0x4a6b74(0x3a4)])(_0x5b8e02['options']),(0x0,p[_0x4a6b74(0x2a4)])(_0x17dfb5=>_0x17dfb5[_0x4a6b74(0x416)]===!0x0&&_0x17dfb5['id']===_0x4a6b74(0x369)),(0x0,p[_0x4a6b74(0x3bd)])())),'hidden$':(0x0,n['getMenuHiddenObservable'])(_0x1a8aac,o['UniverInstanceType'][_0x4a6b74(0x2ba)])};}function R(_0x43431e,_0x468cf9,_0x46eff7,_0x2ca1af,_0x27849d,_0x137a5b){const _0x1004b5=_0xac088e;let _0x1a8f79={'unitId':_0x468cf9,'shapeId':_0x2ca1af,'shapeData':_0x137a5b,'oldShapeJSON':_0x27849d};return _0x43431e[_0x1004b5(0x290)](r[_0x1004b5(0x218)]['id'],_0x1a8f79);}function fe(_0x45645f,_0x2cc0fe,_0x531b35,_0x480b3e,_0x3236c0,_0x452e02){const _0x8da599=_0xac088e;let _0x602aca={'unitId':_0x2cc0fe,'shapeId':_0x480b3e,'shapeData':_0x452e02,'oldShapeJSON':_0x3236c0};return _0x45645f[_0x8da599(0x290)](r['UpdateDocShapeDataCommand']['id'],_0x602aca);}const pe='docs-shape-ui.shape-format.quick-style-gallery',me=_0xac088e(0x310),he=_0xac088e(0x48f),ge='docs-shape-ui.shape-format.formula-ribbon-control',_e=_0xac088e(0x36b),ve=[{'value':c['TextWrappingStyle'][_0xac088e(0x255)],'label':_0xac088e(0x1fd),'icon':_0xac088e(0x46b)},{'value':c[_0xac088e(0x4d5)][_0xac088e(0x330)],'label':'docs-shape-ui.textWrap.square','icon':_0xac088e(0x266)},{'value':c[_0xac088e(0x4d5)][_0xac088e(0x4ab)],'label':_0xac088e(0x30c),'icon':_0xac088e(0x3b9)},{'value':c[_0xac088e(0x4d5)][_0xac088e(0x2a1)],'label':_0xac088e(0x2b5),'icon':_0xac088e(0x495)},{'value':c[_0xac088e(0x4d5)][_0xac088e(0x285)],'label':_0xac088e(0x46a),'icon':_0xac088e(0x3ab)}];function ye(){const _0x9a2cf4=_0xac088e;let _0x450851=(0x0,n[_0x9a2cf4(0x46d)])(o[_0x9a2cf4(0x2cf)]),_0x4d121a=(0x0,n[_0x9a2cf4(0x46d)])(u[_0x9a2cf4(0x4ba)]),_0x289352=(0x0,n['useDependency'])(r[_0x9a2cf4(0x326)]),_0x1c70f2=()=>{const _0x3c2596=_0x9a2cf4;var _0x33e528;let _0x3d7126=_0x4d121a[_0x3c2596(0x2f0)]();if(_0x3d7126['length']!==0x1||((_0x33e528=_0x3d7126[0x0])==null?void 0x0:_0x33e528[_0x3c2596(0x37c)])!==o[_0x3c2596(0x440)][_0x3c2596(0x2bf)])return null;let {unitId:_0x770cb2,subUnitId:_0x1b61c1,drawingId:_0x237ccd}=_0x3d7126[0x0],_0x21c47b=_0x289352[_0x3c2596(0x3c2)](_0x770cb2,_0x1b61c1,_0x237ccd),_0x559285=_0x289352[_0x3c2596(0x4d8)](_0x770cb2,_0x1b61c1,_0x237ccd);return _0x21c47b===void 0x0||!_0x559285?null:{'unitId':_0x770cb2,'subUnitId':_0x1b61c1,'drawingId':_0x237ccd,'shapeType':_0x21c47b,'shapeData':_0x559285};},_0xa4f10=(0x0,n[_0x9a2cf4(0x3f6)])(()=>new p[(_0x9a2cf4(0x221))](_0x6aea88=>{const _0x50c9fe=_0x9a2cf4;let _0x192af1=()=>_0x6aea88[_0x50c9fe(0x1f1)](_0x1c70f2()),_0x238a97=_0x4d121a['focus$'][_0x50c9fe(0x43a)](_0x192af1),_0x29bf3d=_0x450851[_0x50c9fe(0x25e)](_0xa1a42=>{_0xa1a42['id']===r['UpdateDocShapeDataMutation']['id']&&_0x192af1();});return _0x192af1(),()=>{const _0x2ab657=_0x50c9fe;_0x238a97[_0x2ab657(0x226)](),_0x29bf3d['dispose']();};}),_0x1c70f2(),!0x1,[_0x450851,_0x289352,_0x4d121a]);return{'selection':_0xa4f10,'updateShapeData':_0x59c1f3=>{const _0x53650c=_0x9a2cf4;_0xa4f10&&R(_0x450851,_0xa4f10[_0x53650c(0x2e6)],_0xa4f10[_0x53650c(0x390)],_0xa4f10[_0x53650c(0x270)],{'oldShapeData':_0xa4f10['shapeData']},_0x59c1f3);}};}function be(){const _0x13714e=_0xac088e;let {selection:_0x37a15e,updateShapeData:_0x2dce0a}=ye();return _0x37a15e?(0x0,f[_0x13714e(0x4de)])(e['ShapeStyleRibbonControl'],{'shapeData':_0x37a15e['shapeData'],'shapeType':_0x37a15e[_0x13714e(0x492)],'onUpdateShapeData':_0x2dce0a}):null;}function xe(){const _0x7fd899=_0xac088e;let _0x6cb3c8=(0x0,n[_0x7fd899(0x46d)])(o[_0x7fd899(0x2cf)]),_0x360fc7=(0x0,n[_0x7fd899(0x46d)])(o[_0x7fd899(0x2e2)]),{selection:_0x47533d}=ye();return _0x47533d?(0x0,f[_0x7fd899(0x4de)])(e[_0x7fd899(0x258)],{'type':(0x0,a[_0x7fd899(0x2fe)])(_0x47533d[_0x7fd899(0x485)]),'ariaLabel':_0x360fc7['t'](_0x7fd899(0x243)),'activePresetId':(0x0,a[_0x7fd899(0x4e1)])(_0x47533d[_0x7fd899(0x485)]),'onSelect':_0x29f65a=>_0x6cb3c8[_0x7fd899(0x290)](N['id'],{'presetId':_0x29f65a})}):null;}function Se(){const _0x1dc69d=_0xac088e;let {selection:_0x53da9b,updateShapeData:_0x57db94}=ye();return _0x53da9b?(0x0,f['jsx'])(e['ShapeTextRibbonControl'],{'fontFamilyPopupDataComponent':_0x1dc69d(0x414),'shapeData':_0x53da9b[_0x1dc69d(0x485)],'onUpdateShapeData':_0x57db94}):null;}function Ce(){const _0x274724=_0xac088e;var _0x921520;let {selection:_0x1e61a5,updateShapeData:_0xc6fd24}=ye(),_0x26d377=(0x0,e[_0x274724(0x304)])({'hostType':o['UniverInstanceType'][_0x274724(0x2ba)],'unitId':(_0x1e61a5==null?void 0x0:_0x1e61a5[_0x274724(0x2e6)])??'','subUnitId':(_0x1e61a5==null?void 0x0:_0x1e61a5[_0x274724(0x390)])??'','shapeId':(_0x1e61a5==null?void 0x0:_0x1e61a5[_0x274724(0x270)])??'','shapeData':_0x1e61a5==null?void 0x0:_0x1e61a5[_0x274724(0x485)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':_0x274724(0x205),'onUpdateBinding':_0x2b72c7=>_0xc6fd24({'formulaBinding':_0x2b72c7})}),_0x404e52=((_0x921520=_0x26d377[_0x274724(0x301)])==null?void 0x0:_0x921520[_0x274724(0x36f)](_0x44b969=>_0x44b969[_0x274724(0x30a)])[_0x274724(0x399)](_0x1ddad2=>_0x1ddad2[_0x274724(0x416)]!==!0x1))??[];return _0x1e61a5!=null&&_0x1e61a5[_0x274724(0x485)][_0x274724(0x3f7)]?(0x0,f[_0x274724(0x4de)])(e[_0x274724(0x23f)],{'actions':_0x404e52,'panel':_0x26d377['panel']}):null;}function we({value:_0x21d70b}){const _0x823023=_0xac088e;let _0x254c3c=(0x0,n[_0x823023(0x46d)])(o[_0x823023(0x2e2)]),_0x24f227=ve[_0x823023(0x41f)](_0x45df89=>_0x45df89[_0x823023(0x201)]===_0x21d70b)??ve[0x0];return _0x24f227?(0x0,f['jsx'])(_0x823023(0x3ae),{'children':_0x254c3c['t'](_0x24f227['label'])}):null;}const Te=_0xac088e(0x433),Ee=_0xac088e(0x28f),De='docs-shape-ui.ribbon.shape-format.formula-control',Oe=_0xac088e(0x453),ke=_0xac088e(0x4db),Ae=_0xac088e(0x4d6),je='docs-shape-ui.ribbon.shape-format.arrange-back',Me=_0xac088e(0x1f3);function Ne(_0x5f168b){const _0xf63a65=_0xac088e;let _0x27af86=_0x5f168b[_0xf63a65(0x314)](o[_0xf63a65(0x2cf)]),_0xe87547=_0x5f168b['get'](u[_0xf63a65(0x4ba)]),_0x110452=_0x5f168b[_0xf63a65(0x314)](r[_0xf63a65(0x326)]);return new p[(_0xf63a65(0x221))](_0x31578f=>{const _0x3cd73e=_0xf63a65;let _0x381dbb=()=>{const _0x5eb185=_0xa70b;let _0x546e06=z(_0x5f168b),_0x282e39=_0x546e06?_0x110452[_0x5eb185(0x4d8)](_0x546e06[_0x5eb185(0x2e6)],_0x546e06['subUnitId'],_0x546e06['drawingId']):null;_0x31578f[_0x5eb185(0x1f1)](_0x282e39?(0x0,a[_0x5eb185(0x4e1)])(_0x282e39)??'':'');},_0x5c4fec=_0xe87547['focus$'][_0x3cd73e(0x43a)](_0x381dbb),_0x1e69d6=_0x27af86[_0x3cd73e(0x25e)](_0x3930e8=>{const _0x1b9234=_0x3cd73e;_0x3930e8['id']===r[_0x1b9234(0x28b)]['id']&&_0x381dbb();});return _0x381dbb(),()=>{const _0x306aa2=_0x3cd73e;_0x5c4fec['unsubscribe'](),_0x1e69d6[_0x306aa2(0x45f)]();};});}function z(_0x452cf1){const _0x447660=_0xac088e;var _0x440de3;let _0x4985c9=_0x452cf1[_0x447660(0x314)](u[_0x447660(0x4ba)])[_0x447660(0x2f0)]();return _0x4985c9[_0x447660(0x1ee)]===0x1&&((_0x440de3=_0x4985c9[0x0])==null?void 0x0:_0x440de3[_0x447660(0x37c)])===o[_0x447660(0x440)][_0x447660(0x2bf)]?_0x4985c9[0x0]:null;}function Pe(_0x367149){const _0x893ac4=_0xac088e;return(_0x367149==null?void 0x0:_0x367149['layoutType'])===o[_0x893ac4(0x2c1)][_0x893ac4(0x1e6)]?_0x367149[_0x893ac4(0x4c4)]===o[_0x893ac4(0x4a9)]['TRUE']?c[_0x893ac4(0x4d5)][_0x893ac4(0x2a1)]:c[_0x893ac4(0x4d5)][_0x893ac4(0x285)]:(_0x367149==null?void 0x0:_0x367149[_0x893ac4(0x39e)])===o[_0x893ac4(0x2c1)][_0x893ac4(0x330)]?c['TextWrappingStyle'][_0x893ac4(0x330)]:(_0x367149==null?void 0x0:_0x367149['layoutType'])===o[_0x893ac4(0x2c1)]['WRAP_TOP_AND_BOTTOM']?c[_0x893ac4(0x4d5)][_0x893ac4(0x4ab)]:c[_0x893ac4(0x4d5)][_0x893ac4(0x255)];}function Fe(_0x2b97c4){const _0x46053e=_0xac088e;let _0x4e5937=_0x2b97c4[_0x46053e(0x314)](o[_0x46053e(0x2cf)]),_0x4e48d4=_0x2b97c4['get'](u['IDrawingManagerService']),_0x1c6b9d=_0x2b97c4['get'](o[_0x46053e(0x257)]);return new p[(_0x46053e(0x221))](_0x1f17a5=>{let _0x25be57=()=>{const _0x229905=_0xa70b;var _0x1eaa22;let _0x1ae6fc=z(_0x2b97c4),_0x290a81=_0x1ae6fc?_0x1c6b9d['getUnit'](_0x1ae6fc[_0x229905(0x2e6)],o['UniverInstanceType'][_0x229905(0x2ba)]):void 0x0;_0x1f17a5[_0x229905(0x1f1)](Pe(_0x1ae6fc?_0x290a81==null||(_0x1eaa22=_0x290a81['getSnapshot']()[_0x229905(0x2f9)])==null?void 0x0:_0x1eaa22[_0x1ae6fc[_0x229905(0x270)]]:void 0x0));},_0x39f16e=_0x4e48d4['focus$']['subscribe'](_0x25be57),_0x58a9ee=_0x4e5937['onCommandExecuted'](_0x74693d=>{const _0x5dea14=_0xa70b;_0x74693d['id']===s[_0x5dea14(0x372)]['id']&&_0x25be57();});return _0x25be57(),()=>{const _0x33028f=_0xa70b;_0x39f16e[_0x33028f(0x226)](),_0x58a9ee[_0x33028f(0x45f)]();};})[_0x46053e(0x424)]((0x0,p['distinctUntilChanged'])());}function Ie(_0x4119d6,_0x3c7a19=!0x1){const _0x37a8c5=_0xac088e;let _0x53ed0a=_0x4119d6[_0x37a8c5(0x314)](o['ICommandService']),_0x2b5c8b=_0x4119d6[_0x37a8c5(0x314)](u['IDrawingManagerService']),_0x55c64e=_0x4119d6[_0x37a8c5(0x314)](r['DocsShapeService']);return new p[(_0x37a8c5(0x221))](_0x3d2637=>{const _0x5e8683=_0x37a8c5;let _0xb4e8ee=()=>{const _0x5a0092=_0xa70b;let _0x498a3f=z(_0x4119d6);if(!_0x498a3f){_0x3d2637[_0x5a0092(0x1f1)](!0x0);return;}let _0x195e63=_0x55c64e[_0x5a0092(0x4d8)](_0x498a3f[_0x5a0092(0x2e6)],_0x498a3f[_0x5a0092(0x390)],_0x498a3f['drawingId']);_0x3d2637[_0x5a0092(0x1f1)](!_0x195e63||_0x3c7a19&&_0x195e63['formulaBinding']==null);},_0xb4ca8f=_0x2b5c8b[_0x5e8683(0x22d)]['subscribe'](_0xb4e8ee),_0x4734e4=_0x53ed0a[_0x5e8683(0x25e)](_0x538a57=>{_0x538a57['id']===r['UpdateDocShapeDataMutation']['id']&&_0xb4e8ee();});return _0xb4e8ee(),()=>{const _0xe8f9a1=_0x5e8683;_0xb4ca8f['unsubscribe'](),_0x4734e4[_0xe8f9a1(0x45f)]();};});}function Le(_0x295bcb){const _0x583636=_0xac088e;let _0x394753=_0x295bcb[_0x583636(0x314)](u[_0x583636(0x4ba)]),_0x43a1c0=_0x295bcb[_0x583636(0x314)](r[_0x583636(0x326)]);return _0x394753[_0x583636(0x22d)][_0x583636(0x424)]((0x0,p['startWith'])(_0x394753[_0x583636(0x2f0)]()),(0x0,p[_0x583636(0x2a4)])(()=>{const _0x280635=_0x583636;let _0x2ce122=z(_0x295bcb),_0x27114f=_0x2ce122?_0x43a1c0['getShapeTypeById'](_0x2ce122[_0x280635(0x2e6)],_0x2ce122[_0x280635(0x390)],_0x2ce122[_0x280635(0x270)]):void 0x0;return _0x27114f===void 0x0||(0x0,i[_0x280635(0x471)])(_0x27114f);}));}function Re(_0x535185){const _0x14f3af=_0xac088e;return{'id':N['id'],'type':n['MenuItemType'][_0x14f3af(0x3a1)],'icon':_0x14f3af(0x262),'title':_0x14f3af(0x202),'tooltip':_0x14f3af(0x202),'selections':[{'label':{'name':pe,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ne(_0x535185),'hidden$':Ie(_0x535185)};}function ze(_0x55f0cc){const _0x3d8ea7=_0xac088e;return{'id':P['id'],'type':n['MenuItemType'][_0x3d8ea7(0x3a1)],'icon':_0x3d8ea7(0x408),'title':_0x3d8ea7(0x4f0),'tooltip':_0x3d8ea7(0x4f0),'slot':!0x0,'selections':[{'label':{'name':e[_0x3d8ea7(0x21c)],'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Le(_0x55f0cc)};}function Be(_0x5ba544,_0x5001ae,_0x5bce79=!0x1){const _0x9835ab=_0xac088e;return _0x454ee4=>({'id':_0x5ba544,'type':n[_0x9835ab(0x2e0)][_0x9835ab(0x3c1)],'label':{'name':_0x5001ae,'hoverable':!0x1,'selectable':!0x1},'hidden$':Ie(_0x454ee4,_0x5bce79)});}const Ve=Be(Te,me),He=Be(Ee,he),Ue=Be(De,ge,!0x0);function _0x404d(){const _0x39b7fb=['_hyperLinkRegions','drawing-ui.objectListPanel.showAll','attachPopupToObject','getDrawingOrder','doc','MobileShapeEditorService','refreshAdjustControls','drawing-ui.objectListPanel.descriptionPlaceholder','IURLImageService','setPresentation','drawing-ui.objectListPanel.moveForward','registerClipDelegate','type','endArrow','_baseShapeTop','TOP','refreshFormulaPresentation','_ribbonService','presentationChanged$','DocShapeAnchorPosition','warn','fallbackWidth','#2563EB','sectionCanvas','TopmostIcon','getDrawingSearch','remove$','beginPath','drawing-ui.objectListPanel.unlockAll','params','contentHeight','PRINTING_COMPONENT_COLLECT','addImageSourceCache','entries','refreshTransform$','marginTop','ShapeFloatingToolbar','sin','_activeShapeInfo','splice','shape-editor-ui.arrange.front','ShapeTextFloatMenuRenderControllerBase','_drawingType','UNIVER_SHEET','docs-shape-ui.mobile.text','doc.shape.object-list.panel','MEDIA','docs-shape-ui.shape-format.wrapping-style-label','clone','offsetX','_getDependencies','flatMap','fillImageSource','_baseShapeLeft','RichTextEditingMutation','set','univer-grid\x20univer-gap-3','prstGeom','canEditDocumentTargets','3891744xiTriJ','parent','isRenderLinePointsMode','_getShapePopup','ShapeFloatingToolbarService','drawingType','getAutoFitPresentations','text','values','getSkeletonData','setFormulaPresentation','clearAdjustControls','Inject','_insertShapes','createControl$','footerId','beginInteraction','ObjectPermissionButton','getUnitId','disposeWithMe','HorizontalAlign','isRender','front','_shapeFormulaService','register','subUnitId','error','ImageSourceTypeEnum','DocumentViewModel','docs-shape-ui.formatShape','resolveShapeTextHyperLinkObject','clip-','_config','clipHeight','filter','ShapeTextFloatToolbar','_urlImageService','transform','_draw','layoutType','1394920ervNfT','drawWith','SELECTOR','DependentOn','getSelectedObjectMap','startWith','fill','resolveShapeTextBodyBehavior','getShapeModel','bindRenderTransformerLifecycle','objects','DocRenderController','DocsShapeWrapInFrontOfTextIcon','DRAWING_DOM','currentAdjustValues','span','ContextMenuGroup','add','headerId','M2\x203h16M2\x207.5h3M15\x207.5h3M2\x2010h3M15\x2010h3M2\x2012.5h3M15\x2012.5h3M2\x2017h16','isLineShape','DocDrawingTextWrap','CommandType','packageName','_getFocusedShapeAtPoint','version','DocsShapeWrapTopBottomIcon','getDrawingTypeNameKey','setCanUseShapeClip','1.2','distinctUntilChanged','custom','srcRect','target','BUTTON','getShapeTypeById','getMenuHiddenObservable','updateContext','.below','Vector2','getCurrentUnitOfType','_registerDrawingFocusChangeHandler','Line','forEach','DocumentSkeleton','getCanvasElement','canvas','animationEnabled','MobileObjectListPanel','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','activeTarget','Arrow','pageWidth','TRUE','9232dPlKTI','current','getViewports','skeTables','asObservable','top-bottom','drawing-ui.objectListPanel.hide','ShapePickerDropdown','_context','onReady','docs-shape-ui.textWrap.square','paragraphId','_shapeEditPanelVersion','disableObjectsEvent','_update','path','_hide','with','isEditing','description','_configService','title','[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering','MobileShapeEditorControls','height','_closeShapeEditPanel','image','setPrstGeom','jsxs','OBJECT_LIST_FLOATING_SECTION_ID','DisposableCollection','call','getSnapshot','useObservable','formulaBinding','hasDefault','some','UniverDocsShapeUIPlugin','toDisposable','flipY','ShapeTextAutoFitType','UpdateDocDrawingMetadataCommand','toPrimitive','doc.operation.open-shape-object-list-panel','_updateSrcRectByTransform','_isOpenedShapeEditPanel','getValue','style','_baseShapeHeight','adjHandleFill','RENDER_CLASS_TYPE','ShapeIcon','getLastLine','_drawSimpleText','startArrow','size','getEditing','cos','canvasElement','doc.shape.floating-toolbar','close','_initSelection','shapeModel','docs-shape-format-font-family-menu','LAYOUT','visible','drawing-ui.objectListPanel.unlockHint','VIEWPORT_KEY','intercept','order','pick','_props','resetCursor','Transform','find','DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID','below','_initEditingParams','_visible','pipe','getPresentation','setFallbackVisible','BehaviorSubject','skeDrawings','drawing-ui.objectListPanel.show','drawing-ui.objectListPanel.lock','merge','isDrawingObject','EMPTY_PARAGRAPH_MENU_ID','doc.shape.text.float-menu','MoreUpIcon','_docCanvasPopManagerService','Injector','transformForAngle','docs-shape-ui.ribbon.shape-format.style-control','transformVector2SceneCoord','DocsShapeUIMenuSchema','ShapeTypeEnum','UpdateDocDrawingWrappingStyleCommand','getDocumentPermissionValue','preValue','subscribe','drawing-ui.objectListPanel.sectionFloating','_registerDrawingTransformHandler','debounceRefreshControls','doc-shape-adjust-point-','changing$','DrawingTypeEnum','_imageIoService','wrapStrategy','setOnSavingEditorData','_contextService','1ANsIcC','_docsShapeService','registerRenderModule','resolveShapeTextEditorBehaviorShapeData','calculate','setFillImage','_getSceneByUnitId','ShapePickerPanel','drawing-ui.objectListPanel.nameInput','visible$','spaceBelowApply','_loadAndSetImage','createShapeFormulaDocument','useMemo','docs-shape-ui.ribbon.shape-format.arrange-forward','actualHeight','clearControl$','back','drawFormulaShapeAnimationLayers','ShapeDefaultConfig','currentColor','complete','3572372MRRqXx','MoveUpIcon','skeHeaders','_init','dispose','keys','univer-box-border\x20univer-px-4\x20univer-text-sm','_permissionService','buildClipPath','M2\x203.5h16M2\x2016.5h16M2\x2010h5M13\x2010h5','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','FromArray','None','Plugin','registerCommand','docs-shape-ui.textWrap.inFrontText','DocsShapeWrapInlineIcon','_clipService','useDependency','getMatrix','useState','Circle','isConnectorShape','setConfig','GROUP','push','disableShapeOption','indexOf','resolveShapeTextDocumentPageHeight','drawing-ui.objectListPanel.lockHint','_adjName','setSrcRect','pages','extraProps','UniverDocsDrawingMobileUIPlugin','UniverDocsShapePlugin','isHorizontal','_registerImageShapeClipDelegate','function','FormatPainterSessionService','_commandService','ShapeFillEnum','shapeData','IContextService','open','delete','behind','VerticalAlign','UnitObject','prototype','useEffect','ShapeModel','docs-shape-ui.shape-format.text-ribbon-control','_initialize','BottomIcon','shapeType','connectInjector','endOffset','DocsShapeWrapBehindTextIcon','getDrawingOKey','_shapeFloatingToolbarService','enhanceParams','vertical','popup','setEditing','drawing-ui.objectListPanel.hideAll','SetDrawingSelectedOperation','drawing-ui.objectListPanel.lockAll','INSERT_BELLOW_MENU_ID','invert','getObjectIncludeInGroup','_mobileEditorService','headerLayoutKey','context-bar','horizontal','DocPrintInterceptorService','1281kZysRG','IConfigService','BooleanNumber','selectable','WRAP_TOP_AND_BOTTOM','shape-text-','getDrawingPoints','startIndex','vertical-center','width','name','getActualSize','_localeService','Fragment','Copy','doc.operation.open-doc-shape-format-panel','ShapeFormulaService','_docLayoutInteractionService','resolveShapeTextHyperLinkAt','IDrawingManagerService','shapeText','drawing-ui.objectListPanel.collapse','getRenderUnitById','M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','presentation','object','CURSOR_TYPE','strokeWidth','DocSelectionRenderService','behindDoc','inline','DocCanvasPopManagerService','clearAdjustValue','5.5','options','getActiveViewportByCoord','univer-grid\x20univer-gap-5\x20univer-px-4\x20univer-py-3','scene','symbol','ArrangeTypeEnum','setAdjustValueByName','DrawingCommonPanel','IImageIoService','doc.image-clip.shape-picker.component','_drawShapeText','square','TextWrappingStyle','docs-shape-ui.ribbon.shape-format.arrange-front','setDocsCustomBlockRenderViewportProvider','getShapeDataById','_injector','doc.operation.apply-shape-quick-style','docs-shape-ui.ribbon.shape-format.arrange-backward','_lastEditingShapeKey','ShapeTextHyperLinkPopupService','jsx','isInGroup','registerDependencies','resolveActiveShapeQuickStylePresetId','_baseShapeWidth','color','hideContextualTab','menu','getParent','contentVerticalOffset','_getDisposePopups','MoveDownIcon','MenuManagerPosition','enableObjectsEvent','0.14','getShapeTextData','docs-shape-ui.openPanel','reverse','shape-editor-ui.toolbar.changeShape','makeDirty','_formulaShapes','fillImageSourceType','createInternalEditorID','UUID','getState','ancestorTransform','sheet.image-clip.shape-picker.component','docs-shape-ui.objectListPanel.title','isMainScene','stroke','none','_clearCompletionFrame','permissionPointUpdate$','_isStartAdjusting','doc.shape.picker.component','_instanceService','render','_initCommands','getPageDrawingIds','getScene','create','componentKey','133173GpzfSi','resolveShapeTextDocumentRenderLayout','@univerjs-pro/docs-shape-ui','Disposable','_menuManagerService','_docDrawingShapeRenderController','getImage','SetDocDrawingArrangeCommand','DEFAULT_DOC_SHAPE_WIDTH','decorate','_drawRichText','syncExecuteCommand','ShapeGroupEnum','fontSize','drawing','DRAWING_IMAGE','WRAP_NONE','onPointerUp$','_activeAdjustInfo','URL','sidebarOptions$','InsertDocShapeCommand','BuiltInUIPart','flipX','length','RibbonInsertGroup','getTextModel','next','ShapeArrowTypeEnum','docs-shape-ui.ribbon.shape-format.wrapping-style','IRenderManagerService','_activeShapeAdjustPointList','transformByState','setCollapsedIds','CROSSHAIR','dataModel','LEFT','update$','drawing-ui.objectListPanel.expand','docs-shape-ui.textWrap.inline','getDocumentEntityPermissionObjectId','getShapeQuickStylePreset','RemoveDocDrawingCommand','value','shape-editor-ui.toolbar.quickStyles','_measure','restore','bottom','isHit','ObjectListPanelBase','OTHERS','getDrawingEffectBounds','OPERATION','_adjHandlerPointerUp','_subUnitId','subscribeEvent','left','touchDependencies','_unitId','top','TextWrapShapeIcon','round','skeFooters','0.8','Medium','formulaPresentation','UpdateDocShapeDataCommand','_activeShapeId','isRichText','string','SHAPE_CHANGE_PICKER_COMPONENT','getAdjustInfoByName','PictureFill','_clearPopups','IMenuManagerService','Observable','OFFSET','_initMenu','shape-editor-ui.arrange.back','updateDocumentStyle','unsubscribe','_openShapeEditPanel','featurePluginUpdateNotification','trim','_registerComponents','adjHandleSize','shapeKey','focus$','UniverRenderEnginePlugin','MobileDocDrawingTextWrap','UniverInstanceType','_addShapeAdjustControl','getActiveTextRange','buildShapeTextDataUpdate','drawing-ui.objectListPanel.unlock','shouldClipShapeTextDocument','ShapeEditPanel','hideInfoPopup','top-center','_updateShape','defer','onSavingEditorData$','has','drawing-ui.objectListPanel.filterLocked','IPermissionService','ShapeFormulaRibbonControl','UniverShapeEditorPlugin','onPointerDown$','updateDocumentDataMargin','docs-shape-ui.quickStyles','docs-shape-text-','Rect','ToggleShapeFloatingToolbarOperation','getParagraphContentStartOffset','Path','prepareShapeTextDocumentData','_getActiveDrawingShape','classType','DocumentDataModel','FOCUSING_COMMON_DRAWINGS','getUnitType','_loadShapePictureFill','MobileActionRow','_activeShapeModel','DOCS_COMPONENT_MAIN_LAYER_INDEX','MobileShapePickerPanel','getAllRenderersOfType','INLINE','segmentId','IUniverInstanceService','ShapeQuickStyleGallery','docs-shape-ui.objectListPanel.open','resolveShapeTextEditorWrapStrategy','drawing-ui.objectListPanel.description','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','offsetY','onCommandExecuted','shapeId','clipTop','_getActiveDrawingParam','PaintIcon','add$','onTransformChange$','createShapeTextBoxShapeData','DocsShapeWrapSquareIcon','createShapeTextHyperLinkRegions','_disposePopupsByUnit','clipByShape','docs-shape-contextual-ribbon','drawing-ui.objectListPanel.empty','gradientEndColor','getShapeType','ShapeArrowSizeEnum','clip','drawingId','docs-shape-ui.mobile.style','1118598rahwJt','getFocusedUnit','div','onDblclick$','_drawRichTextLayer','getShapePopupMenus','_univerInstanceService','DocInterceptorService','angle','_getShapeAdjustPointListById','Shape','clear','_onSavingEditorData$','_canEdit','getAdjustValueByName','_updateAdjustControlPositions','_transformCalculateSrcRect','setContextValue','mergeMenu','IN_FRONT_OF_TEXT','_adjustPointObjects','resolveHyperLinkAt','ShapeRenderModeEnum','shape-editor-ui.arrange.forward','getSelfOrHeaderFooterModel','UpdateDocShapeDataMutation','data','startOffset','_toScenePoint','docs-shape-ui.ribbon.shape-format.text-control','executeCommand','ShapeFormatSettingIcon','_editingParams$','_docPrintInterceptorService','_registerIcons','_formulaKey','getShapeData','200fltycV','_formulaAnimation','oKey','changeStart$','_updateShapeAdjustControls','sectionFloating','_clearShapeAdjustControls','DRAWING_OBJECT_LAYER_INDEX','_adjHandlerPointerMove','memo','BEHIND_TEXT','_toVisualAdjustPoint','changeEnd$','map','_shapeTextEditingService','_canEditShape','_renderManagerService','docs-shape-ui.insertShape','docs-shape-ui.deleteShape','getDrawingDataForUnit','DocumentEntity','setCursor','draw','docs-shape-ui.hidePanel','_isShouldShowDrawingShapeAdjust','localeService','resize','MoreDownIcon','showContextualTab','applyPoint','docs-shape-ui.textWrap.behindText','getDocumentDrawingSegmentId','getDocumentEntityParentPermissionObjectIds','renderDrawingShape','ShapeTextHyperLinkInfo','UNIVER_DOC','_popupMenuListener','ObjectLayersIcon','onPointerMove$','autoFitType','DRAWING_SHAPE','DOCS_SHAPE_UI_PLUGIN','PositionedObjectLayoutType','toStringTag','_transform','_registerOperations','_completionFrame','_createShapeAdjustControls','focusDrawing','_renderWithCache','COMMAND','refreshShapeFillImage','composeMatrix','getUnit','setShapeData','Module','ICommandService','useReducer','_sidebarDisposable','getObjectListPanelSectionIdForDrawingType','drawing-ui.objectListPanel.close','_endLayoutInteraction','Documents','_initPrinting','calcAdjValues','moveRange','798fcYReV','scale','DocSelectionManagerService','getDrawingVisible','_iconManager','FloatingObjectToolbarPosition','getTransformerByCreate','MenuItemType','animateFormulaPresentation','LocaleService','drawing-ui.objectListPanel.dragToReorder','hidden','_layoutInteraction','unitId','defineProperty','getShapeTextRect','isolated','ComponentManager','onStarting','forward','getDrawingShapeKeyByDrawingSearch','resolveFormulaShapeAutoFitSize','PARAGRAPH','getFocusDrawings','_sidebarService','registerShapeFormatPainter','_shapeId','IconManager','backward','_getShapeInfo','editingParams$','getInverseCoord','drawings','getCurrentTypeOfUnit$','_handleCreateControl','_componentManager','getOwnPropertyDescriptor','getShapeQuickStyleType','0\x200\x2020\x2020','SpAutoFit','extensionGroups','addObject','onerror','useFormulaShapeToolbar','translateWithPrecision','stopPropagation','svg','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','ISidebarService','actions','save','docs-shape-ui.textWrap.topAndBottom','_getRenderModules','registerComponent','UniverDocsShapeMobileUIPlugin','docs-shape-ui.shape-format.style-ribbon-control','UniverShapeEditorMobileUIPlugin','SetDocumentPermissionCommand','canDispose','get','clearActiveDrawingObjects','UniverDocsPlugin','drawing-ui.objectListPanel.moveBackward','completeEditing','_applyFormulaAutoFitSize','_popupTargetKeys','doc.shape.edit.panel','menuRange','_initUIPart','IDocDrawingService','_drawingManagerService','presetId','1em','docs-shape-ui.crop.shape','unregister','UniverDrawingUIPlugin','normalizeShapeTextModel','DocsShapeService','max','IUIPartsService','footerLayoutKey','getVisible','_attachAdjustEvent','rect','interceptor','ShapeTextHyperLinkHoverController','_shapeRenderController','WRAP_SQUARE','getDrawingByParam','adjName','setShapeProps','SolidFill','default','drawing-ui.objectListPanel.noSelection','drawing-ui.objectListPanel.filterHidden','drawing-ui.objectListPanel.locate','IRibbonService','activateDrawingObject','fillType'];_0x404d=function(){return _0x39b7fb;};return _0x404d();}function We(_0x43218d){const _0xecd617=_0xac088e;return{'id':Me,'type':n[_0xecd617(0x2e0)][_0xecd617(0x3a1)],'icon':ve[0x0]['icon'],'label':_e,'selectionsCommandId':c[_0xecd617(0x437)]['id'],'selections':ve[_0xecd617(0x2a4)](({icon:_0x4fbf9b,label:_0x518049,value:_0x32a026})=>({'value':_0x32a026,'label':_0x518049,'icon':_0x4fbf9b,'params':()=>{const _0x1c3d0a=_0xecd617;let _0x4df502=z(_0x43218d);return _0x4df502?{'unitId':_0x4df502['unitId'],'subUnitId':_0x4df502[_0x1c3d0a(0x390)],'drawings':[{'unitId':_0x4df502[_0x1c3d0a(0x2e6)],'subUnitId':_0x4df502[_0x1c3d0a(0x390)],'drawingId':_0x4df502[_0x1c3d0a(0x270)]}],'wrappingStyle':_0x32a026}:void 0x0;}})),'value$':Fe(_0x43218d),'hidden$':Ie(_0x43218d)};}function Ge(_0x62cbf1,_0x99d0c9,_0x5d33e5,_0x1d02d0){const _0x119c5c=_0xac088e;return _0x2bd621=>({'id':_0x62cbf1,'commandId':c[_0x119c5c(0x1dd)]['id'],'type':n[_0x119c5c(0x2e0)][_0x119c5c(0x3c1)],'icon':_0x5d33e5,'title':_0x1d02d0,'tooltip':_0x1d02d0,'hidden$':Ie(_0x2bd621),'params':()=>{const _0x482541=_0x119c5c;let _0x1a83ed=z(_0x2bd621);return _0x1a83ed?{'unitId':_0x1a83ed[_0x482541(0x2e6)],'subUnitId':_0x1a83ed[_0x482541(0x390)],'drawingIds':[_0x1a83ed[_0x482541(0x270)]],'arrangeType':_0x99d0c9}:void 0x0;}});}const Ke=Ge(Oe,o[_0xac088e(0x4ce)][_0xac088e(0x2ec)],_0xac088e(0x45c),_0xac088e(0x289)),qe=Ge(ke,o[_0xac088e(0x4ce)][_0xac088e(0x2f5)],_0xac088e(0x4e9),'shape-editor-ui.arrange.backward'),Je=Ge(Ae,o['ArrangeTypeEnum'][_0xac088e(0x38d)],'TopmostIcon',_0xac088e(0x364)),Ye=Ge(je,o[_0xac088e(0x4ce)][_0xac088e(0x456)],'BottomIcon',_0xac088e(0x224));function Xe(_0x4c2498){const _0x52487f=_0xac088e;let _0xedc175=_0x4c2498[_0x52487f(0x314)](n[_0x52487f(0x309)]);return{'activated$':(0x0,p[_0x52487f(0x23a)])(()=>_0xedc175[_0x52487f(0x1ea)]['pipe']((0x0,p[_0x52487f(0x3a4)])(_0xedc175[_0x52487f(0x4c9)]),(0x0,p['map'])(_0x5a6489=>_0x5a6489[_0x52487f(0x416)]===!0x0&&_0x5a6489['id']==='doc.shape.edit.panel'),(0x0,p['distinctUntilChanged'])())),'id':j['id'],'type':n[_0x52487f(0x2e0)][_0x52487f(0x3c1)],'icon':'ShapeFormatSettingIcon','title':'docs-shape-ui.formatShape','tooltip':_0x52487f(0x394),'hidden$':Ie(_0x4c2498),'params':()=>{const _0x5ea06f=_0x52487f;let _0x40200b=z(_0x4c2498);return _0x40200b?{'unitId':_0x40200b[_0x5ea06f(0x2e6)],'subUnitId':_0x40200b[_0x5ea06f(0x390)],'drawingId':_0x40200b[_0x5ea06f(0x270)]}:void 0x0;}};}const Ze={[n[_0xac088e(0x4ea)]['RIBBON']]:{[T]:{'order':0x64,'title':_0xac088e(0x394),'contextual':!0x0,'docs-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[N['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Re},[P['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':ze}},'docs-shape-ui.ribbon.shape-format.style':{'order':0x1,[Te]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ve}},'docs-shape-ui.ribbon.shape-format.text':{'order':0x2,[Ee]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':He}},'docs-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[Me]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':We},[Oe]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':Ke},[ke]:{'order':0x2,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':qe},[Ae]:{'order':0x3,'gridLayout':{'row':0x1,'column':0x4},'menuItemFactory':Je},[je]:{'order':0x4,'gridLayout':{'row':0x2,'column':0x4},'menuItemFactory':Ye}},'docs-shape-ui.ribbon.shape-format.formula':{'order':0x4,[De]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Ue}},'docs-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[j['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Xe},[e[_0xac088e(0x246)]['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':e['ShapeFloatingToolbarToggleFactory']}}}}},Qe={[n['RibbonInsertGroup'][_0xac088e(0x36a)]]:{[C['id']]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0x5ce1aa=>({...ce(_0x5ce1aa),'title':void 0x0})}},[n[_0xac088e(0x1ef)][_0xac088e(0x208)]]:{[A['id']]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x2,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':de}},[n['ContextMenuPosition'][_0xac088e(0x2ef)]]:{[n[_0xac088e(0x3af)][_0xac088e(0x415)]]:{[t[_0xac088e(0x49f)]]:{[C['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':le}}},[t['DOC_CONTENT_INSERT_MENU_ID']]:{[n[_0xac088e(0x3af)][_0xac088e(0x415)]]:{[C['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':le}}},[t[_0xac088e(0x42d)]]:{[n[_0xac088e(0x3af)]['LAYOUT']]:{[C['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':ue}}},[t['DOC_PARAGRAPH_T_INSERT_MENU_ID']]:{'insert':{[C['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':ce}}},[t[_0xac088e(0x420)]]:{'insert':{[C['id']+_0xac088e(0x3c5)]:{'replace':!0x0,'order':0x2,'menuItemFactory':le}}}}};var $e=_0xac088e(0x1d8),et='1.5.0';const B={'type':o[_0xac088e(0x3b5)][_0xac088e(0x20a)],'id':'doc.operation.close-doc-shape-format-panel','handler'(){return!0x0;}},tt='docs-shape-ui.config',nt={};function V(_0x395b68){'@babel/helpers - typeof';const _0x351d87=_0xac088e;return V=typeof Symbol==_0x351d87(0x481)&&typeof Symbol['iterator']=='symbol'?function(_0x161f60){return typeof _0x161f60;}:function(_0x133ae5){const _0x4013d1=_0x351d87;return _0x133ae5&&typeof Symbol==_0x4013d1(0x481)&&_0x133ae5['constructor']===Symbol&&_0x133ae5!==Symbol[_0x4013d1(0x48c)]?_0x4013d1(0x4cd):typeof _0x133ae5;},V(_0x395b68);}function rt(_0xe8273f,_0x36b498){const _0x527f31=_0xac088e;if(V(_0xe8273f)!=_0x527f31(0x4c0)||!_0xe8273f)return _0xe8273f;var _0x55266f;if(typeof Symbol<'u'&&(_0x55266f=_0xe8273f[Symbol[_0x527f31(0x3ff)]])!==void 0x0){var _0xa48730=_0x55266f[_0x527f31(0x3f4)](_0xe8273f,_0x36b498||_0x527f31(0x335));if(V(_0xa48730)!='object')return _0xa48730;throw TypeError(_0x527f31(0x465));}return(_0x36b498===_0x527f31(0x21b)?String:Number)(_0xe8273f);}function it(_0x5985e0){const _0x42004b=_0xac088e;var _0x5b79e4=rt(_0x5985e0,_0x42004b(0x21b));return V(_0x5b79e4)==_0x42004b(0x4cd)?_0x5b79e4:_0x5b79e4+'';}function H(_0xfdb017,_0x22d10b,_0x3d3b08){const _0x592792=_0xac088e;return(_0x22d10b=it(_0x22d10b))in _0xfdb017?Object[_0x592792(0x2e7)](_0xfdb017,_0x22d10b,{'value':_0x3d3b08,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xfdb017[_0x22d10b]=_0x3d3b08,_0xfdb017;}var at=class extends l[_0xac088e(0x27c)]{constructor(_0x284b6b,_0x20c409){const _0x411884=_0xac088e;super(_0x284b6b,_0x20c409),H(this,_0x411884(0x2f3),null),H(this,'_adjName',null),H(this,'_unitId',null),H(this,'_subUnitId',null),_0x20c409&&this[_0x411884(0x333)](_0x20c409);}[_0xac088e(0x355)](){const _0x376ef0=_0xac088e;return{'unitId':this[_0x376ef0(0x210)],'subUnitId':this[_0x376ef0(0x20c)],'drawingId':this[_0x376ef0(0x2f3)]};}[_0xac088e(0x333)](_0x594375){const _0x4a2e1f=_0xac088e;_0x594375[_0x4a2e1f(0x25f)]!==void 0x0&&(this['_shapeId']=_0x594375['shapeId']),_0x594375[_0x4a2e1f(0x332)]!==void 0x0&&(this[_0x4a2e1f(0x479)]=_0x594375[_0x4a2e1f(0x332)]),_0x594375[_0x4a2e1f(0x2e6)]!==void 0x0&&(this['_unitId']=_0x594375[_0x4a2e1f(0x2e6)]),_0x594375[_0x4a2e1f(0x390)]!==void 0x0&&(this[_0x4a2e1f(0x20c)]=_0x594375[_0x4a2e1f(0x390)]),this[_0x4a2e1f(0x1f6)]({'width':_0x594375['width'],'height':_0x594375[_0x4a2e1f(0x3ed)]});}['_draw'](_0x4df6dc){const _0x2068a7=_0xac088e;l[_0x2068a7(0x470)][_0x2068a7(0x3a0)](_0x4df6dc,{'radius':i[_0x2068a7(0x458)][_0x2068a7(0x22b)],'fill':i[_0x2068a7(0x458)][_0x2068a7(0x406)],'stroke':i[_0x2068a7(0x458)]['adjHandleStroke'],'strokeWidth':0x1,'evented':!0x0});}};function ot(_0x5a23db,_0x52a1dc,_0x240944){const _0x4c64b0=_0xac088e;let _0x516367={..._0x52a1dc,'dataModel':{..._0x52a1dc[_0x4c64b0(0x1f9)]??{},..._0x240944?{'doc':_0x240944}:null}},_0x53ffe5=(0x0,e[_0x4c64b0(0x448)])(_0x5a23db,_0x516367),_0x2f7be5=(0x0,e[_0x4c64b0(0x25a)])(_0x53ffe5);return{'clip':(0x0,e[_0x4c64b0(0x235)])(_0x53ffe5,_0x2f7be5),'wrapStrategy':_0x2f7be5};}var U=class extends l[_0xac088e(0x27c)]{constructor(_0x3376af,_0x2c382a){const _0x41a75e=_0xac088e;super(_0x3376af,_0x2c382a),H(this,'_hyperLinkRegions',[]),H(this,_0x41a75e(0x41c),void 0x0),H(this,_0x41a75e(0x298),new e['FormulaShapeAnimationController'](()=>this[_0x41a75e(0x4f1)](!0x0),()=>this[_0x41a75e(0x319)]())),H(this,'_transformCalculateSrcRect',!0x0),H(this,_0x41a75e(0x366),o['DrawingTypeEnum']['DRAWING_SHAPE']),H(this,_0x41a75e(0x42c),!0x0),this[_0x41a75e(0x41c)]={..._0x2c382a},this['_formulaAnimation']['setPresentation'](_0x2c382a['formulaPresentation'],_0x2c382a[_0x41a75e(0x2e1)]!==!0x1),this['_init'](),this['_applyFormulaAutoFitSize']();}[_0xac088e(0x45e)](){const _0x365921=_0xac088e;this[_0x365921(0x264)][_0x365921(0x20d)](_0x4bb056=>{const _0x29f126=_0x365921;this[_0x29f126(0x401)](_0x4bb056);});}[_0xac088e(0x3f0)](_0x2e6f64){const _0x23dba3=_0xac088e;this[_0x23dba3(0x41c)][_0x23dba3(0x375)]=_0x2e6f64;}[_0xac088e(0x287)](_0x396b4e){const _0x53cf3e=_0xac088e;if(this[_0x53cf3e(0x41c)][_0x53cf3e(0x3e7)])return null;let _0x3e6aed=this[_0x53cf3e(0x2f8)](_0x396b4e),{width:_0x310701,height:_0x7fabab}=this['getRealBound']();return(0x0,e[_0x53cf3e(0x4b9)])(this['_hyperLinkRegions'],{'x':(this[_0x53cf3e(0x1ed)]?-_0x3e6aed['x']:_0x3e6aed['x'])+_0x310701/0x2,'y':_0x3e6aed['y']+_0x7fabab/0x2});}['setEditing'](_0x56f145){const _0x5a9e30=_0xac088e;this[_0x5a9e30(0x41c)][_0x5a9e30(0x3e7)]=_0x56f145,this[_0x5a9e30(0x4f1)](!0x0);}[_0xac088e(0x381)](_0x34fbfc,_0x330fdd=!0x0){const _0x4ec93d=_0xac088e;this[_0x4ec93d(0x298)][_0x4ec93d(0x345)](_0x34fbfc,_0x330fdd),this[_0x4ec93d(0x41c)][_0x4ec93d(0x217)]=_0x34fbfc,this[_0x4ec93d(0x319)](),this[_0x4ec93d(0x4f1)](!0x0);}[_0xac088e(0x319)](){const _0x4a954a=_0xac088e;let _0x4bd367=this[_0x4a954a(0x41c)][_0x4a954a(0x413)],_0x165e99=_0x4bd367[_0x4a954a(0x4ed)](),_0x5e459b=(0x0,e['normalizeShapeTextModel'])(_0x165e99==null?void 0x0:_0x165e99[_0x4a954a(0x1f9)]),_0x7041cb=_0x5e459b==null?void 0x0:_0x5e459b[_0x4a954a(0x340)],_0x4cbe95=this[_0x4a954a(0x298)][_0x4a954a(0x37d)]();if(!_0x7041cb||_0x4cbe95['length']===0x0)return;_0x4bd367[_0x4a954a(0x3c4)]({'width':this[_0x4a954a(0x4b0)],'height':this[_0x4a954a(0x3ed)]});let _0x56b38b=(0x0,e[_0x4a954a(0x2ee)])({'documentData':_0x4cbe95[_0x4a954a(0x2a4)](_0x30ca20=>(0x0,a[_0x4a954a(0x451)])(_0x7041cb,_0x30ca20)),'height':this[_0x4a954a(0x3ed)],'shapeData':_0x4bd367[_0x4a954a(0x296)](),'textRect':_0x4bd367[_0x4a954a(0x2e8)]({'left':0x0,'top':0x0,'width':this[_0x4a954a(0x4b0)],'height':this['height']}),'width':this[_0x4a954a(0x4b0)]});if(_0x56b38b){var _0x3432c9;this['resize'](_0x56b38b[_0x4a954a(0x4b0)],_0x56b38b[_0x4a954a(0x3ed)]),(_0x3432c9=this[_0x4a954a(0x505)]())==null||(_0x3432c9=_0x3432c9['getTransformer']())==null||_0x3432c9[_0x4a954a(0x43d)]();}}get[_0xac088e(0x2e6)](){const _0x498d7c=_0xac088e;return this[_0x498d7c(0x41c)][_0x498d7c(0x2e6)];}get[_0xac088e(0x390)](){const _0x4fc74f=_0xac088e;return this[_0x4fc74f(0x41c)][_0x4fc74f(0x390)];}['_updateSrcRectByTransform'](_0xff7ac0){const _0xf4c2c4=_0xac088e;if(this['_props']['srcRect']==null||!this[_0xf4c2c4(0x282)])return;let {width:_0x48fbb3,height:_0x57aaa2}=this,{width:_0x16503c=0x0,height:_0x1be709=0x0}=_0xff7ac0[_0xf4c2c4(0x439)],{left:_0x54f2ed=0x0,top:_0xbaa83e=0x0,right:_0x303d84=0x0,bottom:_0x247625=0x0}=this[_0xf4c2c4(0x41c)]['srcRect'],_0x5d14f9=_0x54f2ed,_0x77d7a0=_0xbaa83e,_0x34762f=_0x303d84,_0x4b53f2=_0x247625,_0x247cab=!0x1;if(_0x16503c!==0x0&&_0x16503c!==_0x48fbb3){let _0x3851ba=_0x54f2ed/_0x16503c,_0x1b2dc1=_0x303d84/_0x16503c;_0x5d14f9=_0x48fbb3*_0x3851ba,_0x34762f=_0x48fbb3*_0x1b2dc1,_0x247cab=!0x0;}if(_0x1be709!==0x0&&_0x1be709!==_0x57aaa2){let _0x534f9d=_0xbaa83e/_0x1be709,_0x5115c2=_0x247625/_0x1be709;_0x77d7a0=_0x57aaa2*_0x534f9d,_0x4b53f2=_0x57aaa2*_0x5115c2,_0x247cab=!0x0;}_0x247cab&&this[_0xf4c2c4(0x47a)]({'left':_0x5d14f9,'top':_0x77d7a0,'right':_0x34762f,'bottom':_0x4b53f2});}[_0xac088e(0x47a)](_0x49bcab){const _0x38cb70=_0xac088e;this[_0x38cb70(0x41c)][_0x38cb70(0x3bf)]=_0x49bcab,this['makeDirty'](!0x0);}[_0xac088e(0x44a)](_0x48f9aa){const _0x180905=_0xac088e;this[_0x180905(0x41c)][_0x180905(0x3ef)]=_0x48f9aa,this[_0x180905(0x4f1)](!0x0);}set[_0xac088e(0x39c)](_0x6d8dec){this['_transform']=_0x6d8dec;}get['transform'](){const _0x34ab52=_0xac088e;this[_0x34ab52(0x2c3)]||this['_setTransForm']();let _0x2d7bce=this[_0x34ab52(0x2c3)][_0x34ab52(0x36c)]();return this[_0x34ab52(0x432)](_0x2d7bce);}get[_0xac088e(0x413)](){const _0x2ffbee=_0xac088e;return this['_props'][_0x2ffbee(0x413)];}get[_0xac088e(0x25f)](){const _0x3e12c8=_0xac088e;return this[_0x3e12c8(0x41c)]['shapeId'];}get['classType'](){const _0x5d6b22=_0xac088e;return l[_0x5d6b22(0x407)]['SHAPE'];}['_draw'](_0x53cd73,_0x2b2ff3,_0x3ca2d8,_0x59628b){const _0x4b23a5=_0xac088e;let _0x4d2e3e=this[_0x4b23a5(0x41c)][_0x4b23a5(0x413)];if(!_0x4d2e3e||!_0x2b2ff3)return;let _0x2c1aa1=_0x3ca2d8??this[_0x4b23a5(0x4b0)],_0x5ab652=_0x59628b??this['height'],_0x4fcace={'shapeType':_0x4d2e3e[_0x4b23a5(0x26d)](),'width':_0x2c1aa1,'height':_0x5ab652},_0x13e6aa={'renderMode':i[_0x4b23a5(0x288)][_0x4b23a5(0x248)],'oKey':this[_0x4b23a5(0x299)],'image':this[_0x4b23a5(0x41c)][_0x4b23a5(0x3ef)],'angle':this[_0x4b23a5(0x27a)]};_0x4d2e3e[_0x4b23a5(0x3c4)](_0x4fcace),_0x53cd73[_0x4b23a5(0x30b)]();let _0x55c5dd={'top':0x0,'left':0x0,'width':_0x2c1aa1,'height':_0x5ab652},_0x32d003=_0x4d2e3e[_0x4b23a5(0x209)](_0x55c5dd);_0x32d003?this[_0x4b23a5(0x2c8)](_0x53cd73,_0x32d003,_0x1dec9b=>{_0x4d2e3e['render'](_0x1dec9b,_0x55c5dd,_0x13e6aa);}):(this['_releaseRenderCache'](),_0x4d2e3e[_0x4b23a5(0x502)](_0x53cd73,_0x55c5dd,_0x13e6aa)),_0x53cd73['restore']();let _0x2bd740=_0x4d2e3e[_0x4b23a5(0x4ed)](),_0x3e2b10=_0x4d2e3e[_0x4b23a5(0x2e8)](_0x55c5dd),_0x539c3c=_0x4d2e3e['isLineShape']();if(_0x2bd740&&_0x3e2b10&&!_0x539c3c){_0x53cd73[_0x4b23a5(0x30b)](),this[_0x4b23a5(0x4f6)]()[_0x4b23a5(0x1ed)]&&_0x53cd73[_0x4b23a5(0x2da)](-0x1,0x1);let _0x29f5f9=_0x2c1aa1/0x2,_0x563090=_0x5ab652/0x2;_0x53cd73['translate'](-_0x29f5f9,-_0x563090),_0x53cd73[_0x4b23a5(0x357)](),this['_drawShapeText'](_0x53cd73,_0x2bd740,_0x3e2b10),_0x53cd73[_0x4b23a5(0x204)]();}}['getDrawingPoints'](_0x2db342){}[_0xac088e(0x4d3)](_0x53cc2e,_0x1ead0c,_0x4da217){const _0xcb5ab7=_0xac088e;var _0x3001ec;this[_0xcb5ab7(0x33c)]=[],this[_0xcb5ab7(0x41c)]['isEditing']||(!((_0x3001ec=_0x1ead0c['dataModel'])!=null&&_0x3001ec[_0xcb5ab7(0x340)])&&_0xcb5ab7(0x21a)in _0x1ead0c&&_0x1ead0c[_0xcb5ab7(0x21a)]===!0x1?this['_drawSimpleText'](_0x53cc2e,_0x1ead0c,_0x4da217):this[_0xcb5ab7(0x1e0)](_0x53cc2e,_0x1ead0c,_0x4da217));}[_0xac088e(0x40a)](_0x9ea244,_0x3907c5,_0x78f9d6){const _0x5c0d33=_0xac088e;this['_drawRichText'](_0x9ea244,{..._0x3907c5,'text':_0x3907c5['text']??'','dataModel':{'doc':(0x0,e['plainShapeTextToDocumentData'])(_0x3907c5,_0x5c0d33(0x244)+this['oKey'])}},_0x78f9d6);}[_0xac088e(0x1e0)](_0x784de1,_0x1f1e2c,_0x12c083){const _0x1b2f2b=_0xac088e;(0x0,e[_0x1b2f2b(0x457)])(_0x784de1,this[_0x1b2f2b(0x298)],(_0x1cc39c,_0xa84490,_0x1b67c6)=>{const _0x2a3e37=_0x1b2f2b;this[_0x2a3e37(0x276)](_0x1cc39c,_0x1f1e2c,_0x12c083,_0xa84490,_0x1b67c6===_0x2a3e37(0x3d6));});}[_0xac088e(0x276)](_0x23662c,_0x5640c7,_0x207fc8,_0x347b7a,_0x9c6217){const _0x361f8a=_0xac088e;let _0x563cd0=this[_0x361f8a(0x41c)][_0x361f8a(0x2b0)];if(!_0x5640c7[_0x361f8a(0x1f9)]||!_0x563cd0){_0x563cd0||console[_0x361f8a(0x350)](_0x361f8a(0x3eb));return;}let _0x4c44fa=(0x0,e['normalizeShapeTextModel'])(_0x5640c7[_0x361f8a(0x1f9)]);if(!_0x4c44fa)return;let _0x644544=_0x4c44fa[_0x361f8a(0x340)];if(!_0x644544)return;let _0x11c3fd=(0x0,a['createShapeFormulaDocument'])(_0x644544,_0x347b7a),_0x1b14ee=_0x4c44fa['va']??o[_0x361f8a(0x48a)][_0x361f8a(0x34b)],_0x575639=_0x4c44fa['ha']??o[_0x361f8a(0x38b)][_0x361f8a(0x1fa)],_0x1cd51a=ot(this['_props'][_0x361f8a(0x413)][_0x361f8a(0x296)](),_0x5640c7,_0x11c3fd),_0x6b3551=_0x5640c7[_0x361f8a(0x47f)],_0x35cee4=(0x0,e['prepareShapeTextDocumentData'])(_0x11c3fd,{'isHorizontal':_0x6b3551!==!0x1,'textRect':_0x207fc8,'verticalAlign':_0x1b14ee,'horizontalAlign':_0x575639,'wrapStrategy':_0x1cd51a[_0x361f8a(0x442)]}),_0x24aef5=new o[(_0x361f8a(0x24c))](_0x35cee4),_0x24b336=new l['DocumentViewModel'](_0x24aef5),_0x5428dd=l[_0x361f8a(0x3cb)][_0x361f8a(0x506)](_0x24b336,_0x563cd0);_0x5428dd[_0x361f8a(0x449)]();let _0x32473e=_0x5428dd['getActualSize']()['actualHeight'],_0x167c61=(0x0,e[_0x361f8a(0x1d7)])({'contentHeight':_0x32473e,'verticalAlign':_0x1b14ee,'viewportHeight':_0x207fc8[_0x361f8a(0x3ed)]});_0x24aef5[_0x361f8a(0x225)]({'pageSize':{'width':_0x6b3551===!0x1?_0x207fc8[_0x361f8a(0x3ed)]:_0x207fc8[_0x361f8a(0x4b0)],'height':(0x0,e[_0x361f8a(0x477)])(_0x11c3fd,_0x167c61['contentHeight'])}}),_0x24aef5[_0x361f8a(0x242)]({'t':_0x167c61[_0x361f8a(0x35f)]}),_0x5428dd[_0x361f8a(0x449)]();let _0x90466a=new l[(_0x361f8a(0x2d5))](_0x361f8a(0x4ac)+this['oKey'],_0x5428dd,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x361f8a(0x4f1)](!0x0)});_0x90466a[_0x361f8a(0x2b1)](_0x207fc8[_0x361f8a(0x4b0)],_0x167c61[_0x361f8a(0x35a)]),_0x23662c[_0x361f8a(0x30b)](),_0x23662c[_0x361f8a(0x305)](_0x207fc8[_0x361f8a(0x20e)],_0x207fc8[_0x361f8a(0x211)]),_0x1cd51a[_0x361f8a(0x26f)]&&(_0x23662c['beginPath'](),_0x23662c[_0x361f8a(0x32c)](0x0,_0x167c61['clipTop'],_0x207fc8[_0x361f8a(0x4b0)],_0x167c61[_0x361f8a(0x398)]),_0x23662c['clip']()),_0x167c61[_0x361f8a(0x4e7)]&&_0x23662c['translateWithPrecision'](0x0,_0x167c61['contentVerticalOffset']),_0x90466a[_0x361f8a(0x2ad)](_0x23662c),_0x9c6217&&(this['_hyperLinkRegions']=(0x0,e[_0x361f8a(0x267)])(_0x90466a,{'left':_0x207fc8[_0x361f8a(0x20e)],'top':_0x207fc8[_0x361f8a(0x211)]+_0x167c61['contentVerticalOffset']},_0x1cd51a[_0x361f8a(0x26f)]?{'left':_0x207fc8['left'],'right':_0x207fc8[_0x361f8a(0x20e)]+_0x207fc8[_0x361f8a(0x4b0)],'top':_0x207fc8[_0x361f8a(0x211)]+_0x167c61[_0x361f8a(0x260)],'bottom':_0x207fc8[_0x361f8a(0x211)]+_0x167c61[_0x361f8a(0x260)]+_0x167c61[_0x361f8a(0x398)]}:void 0x0)),_0x23662c[_0x361f8a(0x204)](),_0x90466a['dispose'](),_0x5428dd[_0x361f8a(0x45f)](),_0x24b336[_0x361f8a(0x45f)](),_0x24aef5[_0x361f8a(0x45f)]();}[_0xac088e(0x502)](_0x58534f,_0x36821c,_0x49a628=!0x1){const _0x5bb9da=_0xac088e;if(!this[_0x5bb9da(0x416)])return this[_0x5bb9da(0x4f1)](!0x1),this;let {width:_0x1609e0,height:_0x29adfc,left:_0x850d02,top:_0x481561}=this,_0x2b3cf4=this['getRealBound']();if(_0x1609e0=_0x2b3cf4[_0x5bb9da(0x4b0)],_0x29adfc=_0x2b3cf4[_0x5bb9da(0x3ed)],_0x850d02=_0x2b3cf4[_0x5bb9da(0x20e)],_0x481561=_0x2b3cf4[_0x5bb9da(0x211)],this[_0x5bb9da(0x38c)](_0x36821c)){let {top:_0x54feba,left:_0x26e1f8,bottom:_0x396030,right:_0x34b2aa}=_0x36821c['viewBound'];if(_0x1609e0+this[_0x5bb9da(0x4c2)]+_0x850d02<_0x26e1f8||_0x34b2aa<_0x850d02||_0x29adfc+this[_0x5bb9da(0x4c2)]+_0x481561<_0x54feba||_0x396030<_0x481561)return this;}let _0x55a44f=_0x850d02+_0x1609e0/0x2,_0x17824d=_0x481561+_0x29adfc/0x2,_0x501333=this[_0x5bb9da(0x39c)]['getMatrix']();if(this[_0x5bb9da(0x41c)][_0x5bb9da(0x3e7)]){let _0x5c1b34=this[_0x5bb9da(0x4f6)](),_0x37e5b5=new l[(_0x5bb9da(0x41e))]();_0x37e5b5[_0x5bb9da(0x2cb)]({..._0x5c1b34}),_0x501333=_0x37e5b5[_0x5bb9da(0x46e)]();}return _0x58534f[_0x5bb9da(0x30b)](),this['_props']['shapeModel'][_0x5bb9da(0x379)]===!0x0||_0x58534f[_0x5bb9da(0x39c)](_0x501333[0x0],_0x501333[0x1],_0x501333[0x2],_0x501333[0x3],_0x55a44f,_0x17824d),this[_0x5bb9da(0x39d)](_0x58534f,_0x36821c,_0x1609e0,_0x29adfc),_0x58534f[_0x5bb9da(0x204)](),this[_0x5bb9da(0x4f1)](!0x1),this;}[_0xac088e(0x2f8)](_0xff9e6e){const _0x1925c9=_0xac088e;let {left:_0x219c9e,top:_0x282e55,width:_0x83eb23,height:_0x29083b}=this['getRealBound'](),_0x5454b4=this[_0x1925c9(0x39c)]['getMatrix'](),_0x273683=_0x219c9e+_0x83eb23/0x2,_0x2889b6=_0x282e55+_0x29083b/0x2,_0x27bc17=new l[(_0x1925c9(0x41e))]([_0x5454b4[0x0],_0x5454b4[0x1],_0x5454b4[0x2],_0x5454b4[0x3],_0x273683,_0x2889b6]),_0x226ac7=this[_0x1925c9(0x4e6)]();return(this[_0x1925c9(0x4df)]&&(_0x226ac7==null?void 0x0:_0x226ac7[_0x1925c9(0x24b)])===l['RENDER_CLASS_TYPE']['GROUP']?_0x226ac7[_0x1925c9(0x4f7)]['multiply'](_0x27bc17):_0x27bc17)['invert']()[_0x1925c9(0x2b4)](_0xff9e6e);}[_0xac088e(0x206)](_0x525d30){const _0x532a65=_0xac088e;let {left:_0x3555ff,top:_0xd6ad30,width:_0x103165,height:_0x275f8b}=this['getRealBound'](),_0x1fac89=_0x3555ff+_0x103165/0x2,_0x57f652=_0xd6ad30+_0x275f8b/0x2,_0x3610ae=this[_0x532a65(0x39c)][_0x532a65(0x46e)](),_0x168ca3=new l[(_0x532a65(0x41e))]([_0x3610ae[0x0],_0x3610ae[0x1],_0x3610ae[0x2],_0x3610ae[0x3],_0x1fac89,_0x57f652]),_0x506ffa=this[_0x532a65(0x4e6)](),_0x106d2b=(this['isInGroup']&&(_0x506ffa==null?void 0x0:_0x506ffa[_0x532a65(0x24b)])===l[_0x532a65(0x407)][_0x532a65(0x473)]?_0x506ffa[_0x532a65(0x4f7)]['multiply'](_0x168ca3):_0x168ca3)[_0x532a65(0x4a0)]()[_0x532a65(0x2b4)](_0x525d30),_0x109fbf=_0x103165/0x2,_0x38f57f=_0x275f8b/0x2,_0x17a494=this['_props']['shapeModel'];return _0x17a494&&_0x17a494[_0x532a65(0x3b3)]()?_0x17a494['isHitLine'](_0x106d2b['x'],_0x106d2b['y'],_0x103165,_0x275f8b):_0x106d2b['x']>=-_0x109fbf-this[_0x532a65(0x4c2)]/0x2&&_0x106d2b['x']<=_0x109fbf+this[_0x532a65(0x4c2)]/0x2&&_0x106d2b['y']>=-_0x38f57f-this[_0x532a65(0x4c2)]/0x2&&_0x106d2b['y']<=_0x38f57f+this[_0x532a65(0x4c2)]/0x2;}[_0xac088e(0x45f)](){const _0x119cc4=_0xac088e;this[_0x119cc4(0x298)][_0x119cc4(0x45f)](),this['_props']['shapeModel']=null,super[_0x119cc4(0x45f)]();}};let W=class extends o[_0xac088e(0x1d9)]{constructor(_0x24121b,_0x44637f,_0x51e977,_0x15671f){const _0x378126=_0xac088e;super(),this[_0x378126(0x3dd)]=_0x24121b,this[_0x378126(0x31f)]=_0x44637f,this['_docsShapeService']=_0x51e977,this[_0x378126(0x483)]=_0x15671f,H(this,'_activeShapeId',null),H(this,'_unitId',null),H(this,_0x378126(0x20c),null),H(this,_0x378126(0x1f5),void 0x0),H(this,_0x378126(0x286),[]),H(this,_0x378126(0x371),0x0),H(this,_0x378126(0x34a),0x0),H(this,_0x378126(0x4e2),0x0),H(this,_0x378126(0x405),0x0),H(this,_0x378126(0x4ff),!0x1),H(this,_0x378126(0x2af),!0x1),H(this,'_activeAdjustInfo',void 0x0),H(this,_0x378126(0x251),void 0x0),H(this,_0x378126(0x29f),void 0x0),H(this,_0x378126(0x20b),void 0x0),this[_0x378126(0x3c8)](),this[_0x378126(0x43c)]();}[_0xac088e(0x382)](){const _0x4949a4=_0xac088e;this[_0x4949a4(0x29d)]();}[_0xac088e(0x342)](){this['_updateShapeAdjustControls'](!0x0);}[_0xac088e(0x27b)](_0x1ec699,_0x1ee773,_0x412fb){const _0x2414ba=_0xac088e;var _0x67eabc;return(_0x67eabc=this[_0x2414ba(0x446)][_0x2414ba(0x3a7)](_0x1ec699,_0x1ee773,_0x412fb))==null?void 0x0:_0x67eabc[_0x2414ba(0x4ad)]();}['_getShapeAdjustInfosById'](_0x1bbe01,_0x21a4e0,_0x77071f,_0x445de4){const _0x279835=_0xac088e;var _0x46e86c;return(_0x46e86c=this[_0x279835(0x446)]['getShapeModel'](_0x1bbe01,_0x21a4e0,_0x77071f))==null?void 0x0:_0x46e86c[_0x279835(0x21d)](_0x445de4);}[_0xac088e(0x261)](){const _0x2379d4=_0xac088e;return this[_0x2379d4(0x210)]===null||this[_0x2379d4(0x20c)]===null||this[_0x2379d4(0x219)]===null?null:this[_0x2379d4(0x31f)]['getDrawingByParam']({'unitId':this[_0x2379d4(0x210)],'subUnitId':this[_0x2379d4(0x20c)],'drawingId':this['_activeShapeId']})??null;}[_0xac088e(0x24a)](_0x45016c){const _0x559179=_0xac088e;if(this[_0x559179(0x210)]===null||this['_subUnitId']===null||this[_0x559179(0x219)]===null)return null;let _0x9acab8=(0x0,u[_0x559179(0x2ed)])({'unitId':this[_0x559179(0x210)],'subUnitId':this[_0x559179(0x20c)],'drawingId':this[_0x559179(0x219)]}),_0x5d8762=_0x45016c[_0x559179(0x4a1)](_0x9acab8);return _0x5d8762 instanceof U?_0x5d8762:null;}['_createShapeAdjustControls'](_0x2faf1e=!0x1){const _0x42ee7c=_0xac088e;if(this[_0x42ee7c(0x210)]===null||this[_0x42ee7c(0x20c)]===null||this[_0x42ee7c(0x219)]===null)return;let _0xfe8820=this[_0x42ee7c(0x261)]();if((_0xfe8820==null?void 0x0:_0xfe8820[_0x42ee7c(0x37c)])!==o[_0x42ee7c(0x440)]['DRAWING_SHAPE']||!_0xfe8820[_0x42ee7c(0x39c)])return;let _0x5e8bca=this['_docsShapeService'][_0x42ee7c(0x3a7)](this[_0x42ee7c(0x210)],this[_0x42ee7c(0x20c)],this[_0x42ee7c(0x219)]);if(!_0x5e8bca||_0x5e8bca[_0x42ee7c(0x3b3)]())return;let {left:_0x4af635=0x0,top:_0x2f207b=0x0,width:_0x2cfd6b=0x0,height:_0xc80948=0x0,flipX:_0x4e03f5,flipY:_0x179c8e,angle:_0x2417f0=0x0}=_0xfe8820[_0x42ee7c(0x39c)];(_0x2faf1e||!this[_0x42ee7c(0x1f5)])&&(_0x5e8bca['updateContext']({'width':_0x2cfd6b,'height':_0xc80948}),this[_0x42ee7c(0x1f5)]=_0x5e8bca[_0x42ee7c(0x4ad)]());let _0x44e10c=this[_0x42ee7c(0x1f5)];if(!(_0x44e10c!=null&&_0x44e10c[_0x42ee7c(0x1ee)]))return;let {scene:_0x435d9d}=this[_0x42ee7c(0x3dd)];for(let _0x31f491 of _0x44e10c){let _0x22b4b5=this[_0x42ee7c(0x2a2)](_0x31f491,_0x2cfd6b,_0xc80948,!!_0x4e03f5,!!_0x179c8e,_0x2417f0);this[_0x42ee7c(0x231)](_0x435d9d,_0x22b4b5,_0x22b4b5[_0x42ee7c(0x332)],_0x4af635,_0x2f207b,this[_0x42ee7c(0x210)],this[_0x42ee7c(0x20c)]);}}['_toVisualAdjustPoint'](_0xedb660,_0x5b1a8b,_0x1cef02,_0x2d242c,_0x3d3764,_0x32d015){const _0x3cb0f7=_0xac088e;let _0x5c8f31=_0xedb660['x'],_0x49a5c6=_0xedb660['y'];if(_0x2d242c&&(_0x5c8f31=_0x5b1a8b-_0x5c8f31),_0x3d3764&&(_0x49a5c6=_0x1cef02-_0x49a5c6),_0x32d015!==0x0){let _0x5f3eac=_0x5b1a8b/0x2,_0x35e23b=_0x1cef02/0x2,_0x48c3ba=_0x32d015*Math['PI']/0xb4,_0x3852bb=Math[_0x3cb0f7(0x40e)](_0x48c3ba),_0x1e8b62=Math[_0x3cb0f7(0x361)](_0x48c3ba),_0x106374=_0x5c8f31-_0x5f3eac,_0x58dcf9=_0x49a5c6-_0x35e23b;_0x5c8f31=_0x5f3eac+(_0x106374*_0x3852bb-_0x58dcf9*_0x1e8b62),_0x49a5c6=_0x35e23b+(_0x106374*_0x1e8b62+_0x58dcf9*_0x3852bb);}return{'x':_0x5c8f31,'y':_0x49a5c6,'adjName':_0xedb660[_0x3cb0f7(0x332)]};}[_0xac088e(0x29b)](_0x3fbb2f=!0x1){const _0x1df9e5=_0xac088e;_0x3fbb2f&&this['_clearShapeAdjustControls'](),this[_0x1df9e5(0x2c6)](_0x3fbb2f);}['_addShapeAdjustControl'](_0x2489b2,_0x2b3a16,_0x581333,_0x1c37d0,_0x2721e5,_0x2e5a94,_0x55b853){const _0x28d816=_0xac088e;if(!this[_0x28d816(0x219)])return;let _0x59b9a2=_0x28d816(0x43e)+this[_0x28d816(0x219)]+'-'+_0x581333,_0x16bde8=_0x2489b2['getObjectIncludeInGroup'](_0x59b9a2);if(_0x16bde8){_0x16bde8[_0x28d816(0x1f6)]({'left':_0x2b3a16['x']+_0x1c37d0-i[_0x28d816(0x458)][_0x28d816(0x22b)],'top':_0x2b3a16['y']+_0x2721e5-i[_0x28d816(0x458)][_0x28d816(0x22b)]}),_0x16bde8[_0x28d816(0x4f1)](!0x0);return;}let _0x5cb1fb=new at(_0x59b9a2,{'left':_0x2b3a16['x']+_0x1c37d0-i[_0x28d816(0x458)][_0x28d816(0x22b)],'top':_0x2b3a16['y']+_0x2721e5-i[_0x28d816(0x458)][_0x28d816(0x22b)],'adjName':_0x581333,'shapeId':this['_activeShapeId'],'unitId':_0x2e5a94,'subUnitId':_0x55b853,'width':i[_0x28d816(0x458)]['adjHandleSize']+0x8,'height':i[_0x28d816(0x458)][_0x28d816(0x22b)]+0x8,'zIndex':l[_0x28d816(0x29e)]+0x1,'evented':!0x0});this[_0x28d816(0x286)][_0x28d816(0x474)](_0x5cb1fb),this[_0x28d816(0x32b)](_0x5cb1fb,_0x2489b2,_0x581333),_0x2489b2[_0x28d816(0x302)](_0x5cb1fb,l['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0xac088e(0x29d)](){const _0x231e8d=_0xac088e;this['_adjustPointObjects'][_0x231e8d(0x3ca)](_0x38e55f=>_0x38e55f[_0x231e8d(0x45f)]()),this['_adjustPointObjects']=[];}[_0xac088e(0x281)](){const _0x2e039d=_0xac088e;this[_0x2e039d(0x2c6)]();}[_0xac088e(0x28e)](_0x41f56d,_0x31a1b1,_0x587c2e){const _0xd98339=_0xac088e;let _0x2347f5=l[_0xd98339(0x3c6)][_0xd98339(0x466)]([_0x31a1b1,_0x587c2e]),_0x424f7e=_0x41f56d[_0xd98339(0x4ca)](_0x2347f5)??_0x41f56d[_0xd98339(0x3d7)]()[0x0];return(_0x424f7e==null?void 0x0:_0x424f7e[_0xd98339(0x434)](_0x2347f5))??_0x2347f5;}['_attachAdjustEvent'](_0x164038,_0x32cd04,_0x38da7e){const _0x2ffd15=_0xac088e;this['disposeWithMe']((0x0,o[_0x2ffd15(0x3fb)])(_0x164038[_0x2ffd15(0x241)][_0x2ffd15(0x20d)]((_0x287369,_0x132c66)=>{const _0x543660=_0x2ffd15;var _0x371cd9;let _0xbdaeea=_0x164038[_0x543660(0x355)]();this['_activeAdjustInfo']=this['_getShapeAdjustInfosById'](_0xbdaeea[_0x543660(0x2e6)],_0xbdaeea[_0x543660(0x390)],_0xbdaeea[_0x543660(0x270)],_0x38da7e),this[_0x543660(0x251)]=this[_0x543660(0x446)][_0x543660(0x3a7)](_0xbdaeea[_0x543660(0x2e6)],_0xbdaeea[_0x543660(0x390)],_0xbdaeea[_0x543660(0x270)]);let _0x5608b9=this[_0x543660(0x261)](),_0x3524f7=_0x5608b9==null?void 0x0:_0x5608b9[_0x543660(0x39c)];if(!_0x5608b9||!_0x3524f7||!this[_0x543660(0x251)])return;this['_baseShapeLeft']=_0x3524f7['left']||0x0,this['_baseShapeTop']=_0x3524f7[_0x543660(0x211)]||0x0,this['_baseShapeWidth']=_0x3524f7[_0x543660(0x4b0)]||0x0,this[_0x543660(0x405)]=_0x3524f7['height']||0x0;let _0x26453f=!!_0x3524f7[_0x543660(0x1ed)],_0x3f9a76=!!_0x3524f7[_0x543660(0x3fc)],_0x409033=_0x3524f7[_0x543660(0x27a)]||0x0,_0x2a59fc={...((_0x371cd9=this[_0x543660(0x1e8)])==null?void 0x0:_0x371cd9['currentAdjustValues'])??{}};this[_0x543660(0x4ff)]=!0x0,_0x32cd04['disableObjectsEvent'](),this['_adjHandlerPointerMove']=_0x32cd04[_0x543660(0x2bd)]['subscribeEvent']((_0x2a382e,_0x4db0a1)=>{const _0x2c5ed4=_0x543660;var _0x3a56a5;if(!this[_0x2c5ed4(0x4ff)]||!this['_activeShapeModel']||!this[_0x2c5ed4(0x1e8)])return;_0x32cd04[_0x2c5ed4(0x3e2)](),_0x32cd04[_0x2c5ed4(0x2ac)](l[_0x2c5ed4(0x4c1)][_0x2c5ed4(0x1f8)]);let _0x394c35=this['_toScenePoint'](_0x32cd04,_0x2a382e[_0x2c5ed4(0x36d)],_0x2a382e[_0x2c5ed4(0x25d)]),_0x2b3c21=_0x394c35['x']-this[_0x2c5ed4(0x371)],_0xaf5751=_0x394c35['y']-this['_baseShapeTop'];if(_0x409033!==0x0){let _0x58d5e1=this[_0x2c5ed4(0x4e2)]/0x2,_0x402346=this['_baseShapeHeight']/0x2,_0x144de0=_0x409033*Math['PI']/0xb4,_0x927800=Math[_0x2c5ed4(0x40e)](_0x144de0),_0x2adac1=Math[_0x2c5ed4(0x361)](_0x144de0),_0x8aac8e=_0x2b3c21-_0x58d5e1,_0x1f07ec=_0xaf5751-_0x402346;_0x2b3c21=_0x58d5e1+(_0x8aac8e*_0x927800+_0x1f07ec*_0x2adac1),_0xaf5751=_0x402346+(-_0x8aac8e*_0x2adac1+_0x1f07ec*_0x927800);}_0x26453f&&(_0x2b3c21=this[_0x2c5ed4(0x4e2)]-_0x2b3c21),_0x3f9a76&&(_0xaf5751=this[_0x2c5ed4(0x405)]-_0xaf5751);let _0x8411d={'left':0x0,'top':0x0,'width':this[_0x2c5ed4(0x4e2)],'height':this[_0x2c5ed4(0x405)]},_0x17fbc2=this[_0x2c5ed4(0x251)][_0x2c5ed4(0x2d7)](_0x8411d,{'x':_0x2b3c21,'y':_0xaf5751},this[_0x2c5ed4(0x1e8)],_0x26453f,_0x3f9a76);if(Object[_0x2c5ed4(0x460)](_0x17fbc2)['length']!==0x0){for(let [_0x1437f9,_0x9de9f7]of Object[_0x2c5ed4(0x35d)](_0x17fbc2))this[_0x2c5ed4(0x251)][_0x2c5ed4(0x4cf)](_0x1437f9,_0x9de9f7);this['_activeShapeModel'][_0x2c5ed4(0x3c4)]({'width':this[_0x2c5ed4(0x4e2)],'height':this[_0x2c5ed4(0x405)]}),(_0x3a56a5=this['_getActiveDrawingShape'](_0x32cd04))==null||_0x3a56a5['makeDirty'](!0x0),this[_0x2c5ed4(0x1f5)]=this[_0x2c5ed4(0x27b)](_0xbdaeea['unitId'],_0xbdaeea[_0x2c5ed4(0x390)],_0xbdaeea[_0x2c5ed4(0x270)]),this[_0x2c5ed4(0x281)](),_0x4db0a1[_0x2c5ed4(0x306)]();}}),this[_0x543660(0x20b)]=_0x32cd04['onPointerUp$'][_0x543660(0x20d)]((_0x44f40a,_0x3b31f6)=>{const _0xb6853d=_0x543660;var _0x5c55a3,_0x305ea2;(_0x5c55a3=this[_0xb6853d(0x29f)])==null||_0x5c55a3[_0xb6853d(0x226)](),(_0x305ea2=this[_0xb6853d(0x20b)])==null||_0x305ea2[_0xb6853d(0x226)](),_0x32cd04[_0xb6853d(0x41d)]();let _0x3c48b7=this[_0xb6853d(0x1e8)];if(_0x3c48b7&&this['_activeShapeModel']){let _0x730b5e={};for(let _0x3dcf46 of Object['keys'](_0x3c48b7[_0xb6853d(0x3ad)])){let _0x3ad6db=this[_0xb6853d(0x251)][_0xb6853d(0x280)](_0x3dcf46);_0x3ad6db!==void 0x0&&(_0x730b5e[_0x3dcf46]=_0x3ad6db);}Object[_0xb6853d(0x460)](_0x730b5e)[_0xb6853d(0x1ee)]>0x0&&R(this[_0xb6853d(0x483)],_0xbdaeea[_0xb6853d(0x2e6)],_0xbdaeea[_0xb6853d(0x390)],_0xbdaeea[_0xb6853d(0x270)],{'oldShapeData':{'adjustValues':_0x2a59fc}},{'adjustValues':_0x730b5e});}this[_0xb6853d(0x1e8)]=void 0x0,this[_0xb6853d(0x251)]=void 0x0,this[_0xb6853d(0x4ff)]=!0x1,_0x32cd04[_0xb6853d(0x4eb)](),_0x3b31f6[_0xb6853d(0x306)]();}),_0x132c66['stopPropagation']();})));}[_0xac088e(0x43c)](){const _0x2002d2=_0xac088e;let {scene:_0x416694}=this[_0x2002d2(0x3dd)],_0x4d322f=_0x416694[_0x2002d2(0x2df)]();this['disposeWithMe'](_0x4d322f[_0x2002d2(0x29a)]['subscribe'](_0x1f6a40=>{const _0x418edc=_0x2002d2;this['_createShapeAdjustControls'](),_0x1f6a40['objects']!==null&&_0x1f6a40[_0x418edc(0x3a9)][_0x418edc(0x40c)]===0x1&&_0x1f6a40[_0x418edc(0x3a9)]['values']()[_0x418edc(0x1f1)]()[_0x418edc(0x201)]instanceof U&&(this['_isShouldShowDrawingShapeAdjust']=!0x0);})),this[_0x2002d2(0x38a)](_0x4d322f[_0x2002d2(0x43f)][_0x2002d2(0x43a)](()=>{const _0x3f9c06=_0x2002d2;this[_0x3f9c06(0x2af)]&&this[_0x3f9c06(0x29d)]();})),this[_0x2002d2(0x38a)](_0x416694[_0x2002d2(0x1e7)][_0x2002d2(0x20d)](()=>{const _0x124e4f=_0x2002d2;this['_isShouldShowDrawingShapeAdjust']&&(this[_0x124e4f(0x2af)]=!0x1,this[_0x124e4f(0x2c6)]());})),this[_0x2002d2(0x38a)](_0x4d322f[_0x2002d2(0x2a3)]['subscribe'](()=>{const _0x4e1856=_0x2002d2;this[_0x4e1856(0x210)]&&this['_subUnitId']&&this[_0x4e1856(0x219)]&&(this[_0x4e1856(0x1f5)]=this[_0x4e1856(0x27b)](this[_0x4e1856(0x210)],this[_0x4e1856(0x20c)],this[_0x4e1856(0x219)]),this[_0x4e1856(0x281)]());}));}[_0xac088e(0x3c8)](){const _0x3574c7=_0xac088e;this[_0x3574c7(0x38a)](this['_commandService'][_0x3574c7(0x25e)](_0x466ee1=>{const _0x48171e=_0x3574c7;if(_0x466ee1['id']!==r['UpdateDocShapeDataMutation']['id'])return;let {unitId:_0x4228bf,shapeId:_0x1a0316}=_0x466ee1[_0x48171e(0x359)];_0x4228bf===this['_unitId']&&_0x1a0316===this['_activeShapeId']&&this[_0x48171e(0x342)]();})),this['disposeWithMe'](this[_0x3574c7(0x31f)][_0x3574c7(0x22d)][_0x3574c7(0x43a)](_0x5f178e=>{const _0x419f97=_0x3574c7;if(_0x5f178e[_0x419f97(0x1ee)]===0x1){let _0x28c695=_0x5f178e[0x0],_0xf9c3f6=this[_0x419f97(0x31f)][_0x419f97(0x331)](_0x28c695);if((_0xf9c3f6==null?void 0x0:_0xf9c3f6[_0x419f97(0x37c)])===o[_0x419f97(0x440)][_0x419f97(0x2bf)]){this[_0x419f97(0x219)]=_0x28c695['drawingId'],this[_0x419f97(0x210)]=_0x28c695['unitId'],this[_0x419f97(0x20c)]=_0x28c695['subUnitId'],this[_0x419f97(0x1f5)]=this[_0x419f97(0x27b)](_0x28c695[_0x419f97(0x2e6)],_0x28c695['subUnitId'],_0x28c695[_0x419f97(0x270)]),this['_clearShapeAdjustControls'](),this['_createShapeAdjustControls']();return;}}this[_0x419f97(0x219)]=null,this[_0x419f97(0x1f5)]=void 0x0,this[_0x419f97(0x210)]=null,this['_subUnitId']=null,this[_0x419f97(0x29d)]();})),this[_0x3574c7(0x38a)]((0x0,p['merge'])(this[_0x3574c7(0x31f)]['update$'],this[_0x3574c7(0x31f)][_0x3574c7(0x35e)])[_0x3574c7(0x43a)](_0x4ec50a=>{const _0x561d89=_0x3574c7;var _0x3d356d;let _0x1ff5e5=_0x4ec50a['find'](_0x193ad2=>_0x193ad2[_0x561d89(0x270)]===this['_activeShapeId']&&_0x193ad2['unitId']===this[_0x561d89(0x210)]&&_0x193ad2[_0x561d89(0x390)]===this[_0x561d89(0x20c)]);_0x1ff5e5&&((_0x3d356d=this['_drawingManagerService'][_0x561d89(0x331)](_0x1ff5e5))==null?void 0x0:_0x3d356d['drawingType'])===o['DrawingTypeEnum'][_0x561d89(0x2bf)]&&this['_updateShapeAdjustControls'](!0x0);})),this[_0x3574c7(0x38a)](this[_0x3574c7(0x31f)][_0x3574c7(0x356)][_0x3574c7(0x43a)](_0x23cb2f=>{const _0x130b7d=_0x3574c7;for(let _0x443ceb of _0x23cb2f)this['_activeShapeId']===_0x443ceb[_0x130b7d(0x270)]&&(this[_0x130b7d(0x219)]=null,this[_0x130b7d(0x1f5)]=void 0x0,this[_0x130b7d(0x210)]=null,this[_0x130b7d(0x20c)]=null,this[_0x130b7d(0x29d)]());}));}};W=I([F(0x1,u['IDrawingManagerService']),F(0x2,(0x0,o[_0xac088e(0x383)])(r[_0xac088e(0x326)])),F(0x3,o[_0xac088e(0x2cf)])],W);let G=class extends o['Disposable']{constructor(_0x25f3dd,_0x48e8bd){const _0x16916c=_0xac088e;super(),this['_permissionService']=_0x25f3dd,this['_instanceService']=_0x48e8bd,H(this,_0x16916c(0x292),new p[(_0x16916c(0x427))](null)),H(this,'editingParams$',this[_0x16916c(0x292)][_0x16916c(0x3d9)]()),H(this,_0x16916c(0x27e),new p[(_0x16916c(0x427))](!0x1)),H(this,_0x16916c(0x23b),this[_0x16916c(0x27e)][_0x16916c(0x3d9)]()),H(this,_0x16916c(0x2c5),void 0x0),this[_0x16916c(0x38a)](this[_0x16916c(0x462)][_0x16916c(0x4fe)][_0x16916c(0x43a)](()=>{const _0xfb3313=_0x16916c;let _0x4c32dd=this[_0xfb3313(0x40d)]();_0x4c32dd!=null&&_0x4c32dd['visible']&&!this[_0xfb3313(0x27f)](_0x4c32dd)&&this[_0xfb3313(0x49b)](null);}));}[_0xac088e(0x45f)](){const _0x7deea6=_0xac088e;this[_0x7deea6(0x4fd)](),this[_0x7deea6(0x292)][_0x7deea6(0x1f1)](null),this['_editingParams$']['complete'](),this['_onSavingEditorData$'][_0x7deea6(0x1f1)](!0x1),this[_0x7deea6(0x27e)][_0x7deea6(0x45a)](),super[_0x7deea6(0x45f)]();}[_0xac088e(0x49b)](_0x49fa65){const _0x3fc663=_0xac088e;(_0x49fa65==null||!_0x49fa65[_0x3fc663(0x416)]||this[_0x3fc663(0x27f)](_0x49fa65))&&(this[_0x3fc663(0x4fd)](),this['_editingParams$']['next'](_0x49fa65),(_0x49fa65==null||_0x49fa65[_0x3fc663(0x416)]&&this[_0x3fc663(0x27e)]['getValue']())&&this[_0x3fc663(0x27e)][_0x3fc663(0x1f1)](!0x1));}[_0xac088e(0x443)](_0x2b08cd){const _0x43cc19=_0xac088e;this[_0x43cc19(0x27e)][_0x43cc19(0x1f1)](_0x2b08cd);}[_0xac088e(0x40d)](){const _0x93bd3d=_0xac088e;return this[_0x93bd3d(0x292)][_0x93bd3d(0x403)]();}[_0xac088e(0x27f)](_0x40443f){const _0x190d57=_0xac088e;let _0x4ffcb0=this[_0x190d57(0x501)][_0x190d57(0x2cc)](_0x40443f[_0x190d57(0x2e6)],o[_0x190d57(0x230)]['UNIVER_DOC']);if(!_0x4ffcb0)return!0x0;let _0x7c8be6=(0x0,s[_0x190d57(0x2b6)])(_0x4ffcb0,_0x40443f[_0x190d57(0x25f)]);return(0x0,s[_0x190d57(0x376)])(this[_0x190d57(0x462)],_0x40443f[_0x190d57(0x2e6)],[...(0x0,s[_0x190d57(0x2b7)])(_0x4ffcb0,_0x7c8be6,_0x190d57(0x1e4),_0x40443f['shapeId']),(0x0,s[_0x190d57(0x1fe)])(_0x7c8be6,'drawing',_0x40443f[_0x190d57(0x25f)])]);}[_0xac088e(0x318)](_0x49c77d){const _0x6bd3e4=_0xac088e;let _0x5a24ba=this[_0x6bd3e4(0x40d)]();_0x5a24ba&&this['_completionFrame']===void 0x0&&(this['setOnSavingEditorData'](!0x0),this['_completionFrame']=requestAnimationFrame(()=>{const _0x4a525c=_0x6bd3e4;this[_0x4a525c(0x2c5)]=void 0x0,this[_0x4a525c(0x40d)]()===_0x5a24ba&&this['setEditing'](null);}));}['_clearCompletionFrame'](){const _0x2c41ed=_0xac088e;this['_completionFrame']!==void 0x0&&(cancelAnimationFrame(this['_completionFrame']),this[_0x2c41ed(0x2c5)]=void 0x0);}['cancelEditing'](){const _0x11efa7=_0xac088e;this['getEditing']()&&this[_0x11efa7(0x49b)](null);}};G=I([F(0x0,o[_0xac088e(0x23e)]),F(0x1,o[_0xac088e(0x257)])],G);function _0xa70b(_0x255067,_0x25044f){_0x255067=_0x255067-0x1d6;const _0x404d3d=_0x404d();let _0xa70be1=_0x404d3d[_0x255067];return _0xa70be1;}function st(_0x11aa4f){const _0x10face=_0xac088e;return _0x11aa4f['behindText']===!0x0||_0x11aa4f['behindText']===o[_0x10face(0x4a9)][_0x10face(0x3d4)]||_0x11aa4f[_0x10face(0x39e)]===o['PositionedObjectLayoutType'][_0x10face(0x1e6)]&&_0x11aa4f[_0x10face(0x4c4)]===o[_0x10face(0x4a9)][_0x10face(0x3d4)]?t[_0x10face(0x252)]-0x1:l['DRAWING_OBJECT_LAYER_INDEX'];}let K=class extends o[_0xac088e(0x1d9)]{constructor(_0x586e01,_0x1b33f2,_0x18569a,_0x35ed2a,_0x3aaf82,_0x2aac21,_0x3bf955){const _0x11fb12=_0xac088e;super(),this[_0x11fb12(0x31f)]=_0x586e01,this[_0x11fb12(0x446)]=_0x1b33f2,this[_0x11fb12(0x4b3)]=_0x18569a,this['_imageIoService']=_0x35ed2a,this['_urlImageService']=_0x3aaf82,this[_0x11fb12(0x2a5)]=_0x2aac21,this[_0x11fb12(0x38e)]=_0x3bf955,H(this,_0x11fb12(0x4f2),new Map()),this[_0x11fb12(0x38a)](this[_0x11fb12(0x38e)][_0x11fb12(0x34e)][_0x11fb12(0x43a)](_0x4cb9ba=>{const _0x29f358=_0x11fb12;var _0x4da8ff;(_0x4da8ff=this[_0x29f358(0x4f2)][_0x29f358(0x314)](this['_formulaKey'](_0x4cb9ba['unitId'],_0x4cb9ba[_0x29f358(0x390)],_0x4cb9ba[_0x29f358(0x25f)])))==null||_0x4da8ff[_0x29f358(0x3ca)](_0x2b4a19=>_0x2b4a19[_0x29f358(0x381)](_0x4cb9ba[_0x29f358(0x4bf)],_0x4cb9ba[_0x29f358(0x3ce)]));})),this[_0x11fb12(0x38a)](this[_0x11fb12(0x31f)][_0x11fb12(0x356)]['subscribe'](_0x113ff6=>{_0x113ff6['forEach'](_0x535d1e=>{const _0x7a197=_0xa70b;this[_0x7a197(0x38e)]['unregister']({'unitId':_0x535d1e['unitId'],'subUnitId':_0x535d1e[_0x7a197(0x390)],'shapeId':_0x535d1e['drawingId']}),this[_0x7a197(0x4f2)][_0x7a197(0x488)](this[_0x7a197(0x295)](_0x535d1e[_0x7a197(0x2e6)],_0x535d1e[_0x7a197(0x390)],_0x535d1e[_0x7a197(0x270)]));});}));}[_0xac088e(0x2b8)](_0x3716fa,_0x10a0ad){const _0x3d9912=_0xac088e;let {transform:_0x56dab9,drawingType:_0x4d9f39,srcRect:_0x262043,prstGeom:_0x3e7635,groupId:_0x820a0c,unitId:_0x2910cd,subUnitId:_0x4c7ce9,drawingId:_0x15121b,isMultiTransform:_0x352f51,transforms:_0x583813,hidden:_0x690404,selectable:_0x4e8432}=_0x3716fa;if(_0x4d9f39!==o['DrawingTypeEnum'][_0x3d9912(0x2bf)]||!this['_drawingManagerService'][_0x3d9912(0x2dc)]()||_0x56dab9==null)return;let _0x61493a=this['_drawingManagerService']['getDrawingEditable'](),_0x3abe2c=_0x352f51&&_0x583813?_0x583813:[_0x56dab9],_0x2acb31=[];for(let [_0x5e9549,_0x2878da]of _0x3abe2c[_0x3d9912(0x35d)]()){let {left:_0x2b34a2,top:_0x574b8b,width:_0x1bb77c,height:_0x195d57,angle:_0x333b0b,flipX:_0x472c5d,flipY:_0x5cc092,skewX:_0x2addc7,skewY:_0x4672d7}=_0x2878da,_0x1faf20=(0x0,u['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x2910cd,'subUnitId':_0x4c7ce9,'drawingId':_0x15121b},_0x352f51?_0x5e9549:void 0x0),_0x486fa7=_0x10a0ad['getObjectIncludeInGroup'](_0x1faf20);if(_0x486fa7!=null){let _0xefca1f={'unitId':_0x2910cd,'subUnitId':_0x4c7ce9,'shapeId':_0x15121b};_0x486fa7 instanceof U&&this['refreshFormulaPresentation'](_0x486fa7,_0xefca1f),_0x486fa7[_0x3d9912(0x1f6)]({'left':_0x2b34a2,'top':_0x574b8b,'width':_0x1bb77c,'height':_0x195d57,'angle':_0x333b0b,'flipX':_0x472c5d,'flipY':_0x5cc092,'skewX':_0x2addc7,'skewY':_0x4672d7});continue;}let _0x356f54=this['_drawingManagerService'][_0x3d9912(0x33f)](_0x2910cd,_0x4c7ce9),_0x31ca05=_0x356f54[_0x3d9912(0x476)](_0x15121b);if(_0x10a0ad[_0x3d9912(0x4a1)](_0x1faf20)||!this['_drawingManagerService'][_0x3d9912(0x2dc)]())continue;let _0x478b9a=this[_0x3d9912(0x446)][_0x3d9912(0x3a7)](_0x2910cd,_0x4c7ce9,_0x15121b);if(!_0x478b9a)continue;let _0xc4346d=(0x0,i[_0x3d9912(0x471)])(_0x478b9a[_0x3d9912(0x26d)]())?{...e['SHAPE_EDITOR_TRANSFORMER_CONFIG'],'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:e['SHAPE_EDITOR_TRANSFORMER_CONFIG'],_0x1a966f=_0x478b9a[_0x3d9912(0x296)]()[_0x3d9912(0x3f7)],_0x1e0155={'unitId':_0x2910cd,'subUnitId':_0x4c7ce9,'shapeId':_0x15121b};_0x1a966f&&this['_shapeFormulaService']['register'](_0x1e0155,_0x1a966f);let _0x3a90d5=new U(_0x1faf20,{..._0x2878da,'zIndex':_0x31ca05===-0x1?_0x356f54[_0x3d9912(0x1ee)]-0x1:_0x31ca05,'shapeModel':_0x478b9a,'localeService':this['_localeService'],'shapeId':_0x15121b,'unitId':_0x2910cd,'subUnitId':_0x4c7ce9,'visible':_0x690404!==!0x0,'evented':_0x4e8432!==!0x1,'formulaPresentation':_0x1a966f?this[_0x3d9912(0x38e)][_0x3d9912(0x425)](_0x1e0155):void 0x0,'animateFormulaPresentation':(_0x1a966f==null?void 0x0:_0x1a966f[_0x3d9912(0x3ce)])!==!0x1,'transformerConfig':_0xc4346d});if(_0x1a966f){let _0x3c2a44=this['_formulaKey'](_0x2910cd,_0x4c7ce9,_0x15121b),_0x4359ba=this[_0x3d9912(0x4f2)]['get'](_0x3c2a44)??new Set();_0x4359ba[_0x3d9912(0x3b0)](_0x3a90d5),this[_0x3d9912(0x4f2)][_0x3d9912(0x373)](_0x3c2a44,_0x4359ba);}this['disposeWithMe']((0x0,o[_0x3d9912(0x3fb)])(_0x3a90d5[_0x3d9912(0x275)]['subscribeEvent']((_0x438c74,_0x95fb2f)=>{const _0x460bda=_0x3d9912;_0x478b9a['isLineShape']()||_0x1a966f||(this[_0x460bda(0x2a5)][_0x460bda(0x49b)]({'visible':!0x0,'unitId':_0x2910cd,'subUnitId':_0x4c7ce9,'shapeId':_0x15121b,'shapeKey':_0x3a90d5[_0x460bda(0x299)]}),_0x95fb2f[_0x460bda(0x306)]());}))),_0x10a0ad['addObject'](_0x3a90d5,st(_0x3716fa)),_0x61493a&&_0x10a0ad['attachTransformerTo'](_0x3a90d5),_0x820a0c&&(0x0,d['insertGroupObject'])({'drawingId':_0x820a0c,'unitId':_0x2910cd,'subUnitId':_0x4c7ce9},_0x3a90d5,_0x10a0ad,this[_0x3d9912(0x31f)],_0x352f51?_0x5e9549:void 0x0),_0x3e7635!=null&&_0x3a90d5[_0x3d9912(0x3f0)](_0x3e7635),_0x262043!=null&&_0x3a90d5[_0x3d9912(0x47a)](_0x262043),this[_0x3d9912(0x24f)](_0x3a90d5,_0x478b9a[_0x3d9912(0x296)]()),_0x2acb31[_0x3d9912(0x474)](_0x3a90d5);}return _0x2acb31;}['_formulaKey'](_0x124b76,_0x21bd46,_0x40b64c){return _0x124b76+'\x00'+_0x21bd46+'\x00'+_0x40b64c;}[_0xac088e(0x34c)](_0x5e3f4a,_0xf18cff){const _0x558fb0=_0xac088e;let _0x55d56c=this[_0x558fb0(0x446)][_0x558fb0(0x3a7)](_0xf18cff[_0x558fb0(0x2e6)],_0xf18cff['subUnitId'],_0xf18cff[_0x558fb0(0x25f)]),_0x4a0061=_0x55d56c==null?void 0x0:_0x55d56c[_0x558fb0(0x296)]()['formulaBinding'],_0x723f07=this['_formulaKey'](_0xf18cff[_0x558fb0(0x2e6)],_0xf18cff['subUnitId'],_0xf18cff[_0x558fb0(0x25f)]);if(_0x4a0061){this[_0x558fb0(0x38e)]['register'](_0xf18cff,_0x4a0061);let _0x3d9b0d=this[_0x558fb0(0x4f2)][_0x558fb0(0x314)](_0x723f07)??new Set();_0x3d9b0d[_0x558fb0(0x3b0)](_0x5e3f4a),this[_0x558fb0(0x4f2)]['set'](_0x723f07,_0x3d9b0d);}else{var _0xf79b2;this[_0x558fb0(0x38e)][_0x558fb0(0x323)](_0xf18cff),(_0xf79b2=this[_0x558fb0(0x4f2)][_0x558fb0(0x314)](_0x723f07))==null||_0xf79b2[_0x558fb0(0x488)](_0x5e3f4a);}_0x5e3f4a[_0x558fb0(0x381)](_0x4a0061?this['_shapeFormulaService'][_0x558fb0(0x425)](_0xf18cff):void 0x0,(_0x4a0061==null?void 0x0:_0x4a0061['animationEnabled'])!==!0x1);}[_0xac088e(0x2ca)](_0x447937){const _0xa6345b=_0xac088e;let _0x5347d0=_0x447937[_0xa6345b(0x413)][_0xa6345b(0x296)](),_0x2051e4=_0x5347d0[_0xa6345b(0x3a5)];!_0x2051e4||_0x2051e4[_0xa6345b(0x33b)]!==i[_0xa6345b(0x484)][_0xa6345b(0x21e)]||!_0x2051e4['fillImageSource']?_0x447937[_0xa6345b(0x44a)](void 0x0):this[_0xa6345b(0x24f)](_0x447937,_0x5347d0);}[_0xac088e(0x24f)](_0x1c0b74,_0x519424){const _0x5da8c2=_0xac088e;let _0x5d7896=_0x519424[_0x5da8c2(0x3a5)];if(!_0x5d7896||_0x5d7896['fillType']!==i['ShapeFillEnum'][_0x5da8c2(0x21e)]||!_0x5d7896[_0x5da8c2(0x370)])return;let _0x44fa50=_0x5d7896[_0x5da8c2(0x370)],_0xe50964=_0x5d7896[_0x5da8c2(0x4f3)]??i[_0x5da8c2(0x392)][_0x5da8c2(0x1e9)],_0x4e7c53=this[_0x5da8c2(0x441)]['getImageSourceCache'](_0x44fa50,_0xe50964);_0x4e7c53?_0x1c0b74[_0x5da8c2(0x44a)](_0x4e7c53):this[_0x5da8c2(0x450)](_0x1c0b74,_0x44fa50,_0xe50964);}async[_0xac088e(0x450)](_0x16ea02,_0x337832,_0x218968){const _0xd04383=_0xac088e;let _0x5bc539;try{if(_0x218968===i[_0xd04383(0x392)][_0xd04383(0x4f5)])_0x5bc539=await this[_0xd04383(0x441)][_0xd04383(0x1dc)](_0x337832);else{if(_0x218968===i[_0xd04383(0x392)][_0xd04383(0x1e9)])try{_0x5bc539=await this[_0xd04383(0x39b)][_0xd04383(0x1dc)](_0x337832);}catch{_0x5bc539=_0x337832;}else _0x5bc539=_0x337832;}}catch(_0x3ab38b){console[_0xd04383(0x391)]('[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source',_0x3ab38b);return;}let _0xe5fd7b=new window['Image']();_0xe5fd7b['onload']=()=>{const _0x13ec0d=_0xd04383;this[_0x13ec0d(0x441)][_0x13ec0d(0x35c)](_0x337832,_0x218968,_0xe5fd7b),_0x16ea02[_0x13ec0d(0x44a)](_0xe5fd7b);},_0xe5fd7b[_0xd04383(0x303)]=()=>{const _0x5cc5d9=_0xd04383;console[_0x5cc5d9(0x391)](_0x5cc5d9(0x3d0),_0x337832);},_0xe5fd7b['src']=_0x5bc539;}};K=I([F(0x0,u[_0xac088e(0x4ba)]),F(0x1,(0x0,o[_0xac088e(0x383)])(r[_0xac088e(0x326)])),F(0x2,(0x0,o['Inject'])(o['LocaleService'])),F(0x3,o[_0xac088e(0x4d1)]),F(0x4,o[_0xac088e(0x344)]),F(0x5,(0x0,o[_0xac088e(0x383)])(G)),F(0x6,(0x0,o[_0xac088e(0x383)])(a[_0xac088e(0x4b7)]))],K);let q=class extends o[_0xac088e(0x1d9)]{constructor(_0x56ad1e,_0x152de3,_0x1a8e57){const _0x1c0633=_0xac088e;super(),this[_0x1c0633(0x293)]=_0x56ad1e,this[_0x1c0633(0x31f)]=_0x152de3,this[_0x1c0633(0x32f)]=_0x1a8e57,this[_0x1c0633(0x2d6)]();}[_0xac088e(0x2d6)](){const _0x43a348=_0xac088e;this[_0x43a348(0x38a)](this[_0x43a348(0x293)][_0x43a348(0x32d)][_0x43a348(0x419)](this[_0x43a348(0x293)]['interceptor']['getInterceptPoints']()[_0x43a348(0x35b)],{'handler':(_0x2dd871,_0x193f83,_0x416a1c)=>{const _0x53d108=_0x43a348;var _0x38478d;let {unitId:_0xe43293,scene:_0x34ae70,skeleton:_0x260f53}=_0x193f83,{pageIndex:_0xa85f78}=_0x193f83,_0x237cd6=(_0x38478d=this[_0x53d108(0x31f)][_0x53d108(0x2aa)](_0xe43293))==null?void 0x0:_0x38478d[_0xe43293],_0x5a751d=ct(this[_0x53d108(0x293)],_0x260f53,_0xa85f78);return _0x237cd6==null||_0x237cd6[_0x53d108(0x41a)]['forEach'](_0x365cc1=>{const _0x3797c3=_0x53d108;if(_0x5a751d&&!_0x5a751d[_0x3797c3(0x23c)](_0x365cc1))return;let _0x3fca58=_0x237cd6[_0x3797c3(0x28c)][_0x365cc1];_0x3fca58[_0x3797c3(0x37c)]===o[_0x3797c3(0x440)][_0x3797c3(0x2bf)]&&!_0x3fca58[_0x3797c3(0x2e4)]&&this['_shapeRenderController'][_0x3797c3(0x2b8)](_0x3fca58,_0x34ae70);}),_0x416a1c(_0x2dd871);}}));}};q=I([F(0x0,(0x0,o['Inject'])(t[_0xac088e(0x4a6)])),F(0x1,u[_0xac088e(0x4ba)]),F(0x2,(0x0,o[_0xac088e(0x383)])(K))],q);function ct(_0x43f4c8,_0x50c75d,_0x136361){const _0x4f4169=_0xac088e;var _0x291ea6,_0x138eaa;let _0x229fea=_0x43f4c8;if(_0x229fea[_0x4f4169(0x504)])return _0x229fea['getPageDrawingIds'](_0x50c75d,_0x136361);let _0x4a36e0=_0x50c75d[_0x4f4169(0x380)]();if(!_0x4a36e0||_0x4a36e0[_0x4f4169(0x47b)][_0x4f4169(0x1ee)]<=0x1||_0x136361==null)return null;let _0x3b843c=new Set(),_0x24d421=_0x4a36e0[_0x4f4169(0x47b)][_0x136361];if(!_0x24d421)return _0x3b843c;lt(_0x24d421,_0x3b843c);let _0x2561dd=(_0x291ea6=_0x4a36e0[_0x4f4169(0x45d)][_0x4f4169(0x314)](_0x24d421[_0x4f4169(0x3b1)]))==null?void 0x0:_0x291ea6[_0x4f4169(0x314)](_0x24d421[_0x4f4169(0x4a3)]??_0x24d421[_0x4f4169(0x3d3)]),_0x4b2bcd=(_0x138eaa=_0x4a36e0[_0x4f4169(0x214)]['get'](_0x24d421[_0x4f4169(0x386)]))==null?void 0x0:_0x138eaa[_0x4f4169(0x314)](_0x24d421[_0x4f4169(0x329)]??_0x24d421[_0x4f4169(0x3d3)]);return _0x2561dd&<(_0x2561dd,_0x3b843c),_0x4b2bcd&<(_0x4b2bcd,_0x3b843c),_0x3b843c;}function lt(_0x1b4d9c,_0x5e324a){const _0x1a4763=_0xac088e;for(let _0x581790 of _0x1b4d9c[_0x1a4763(0x428)]['keys']())_0x5e324a['add'](_0x581790);for(let _0x41c3a6 of _0x1b4d9c[_0x1a4763(0x3d8)]['values']())for(let _0x2cacb5 of _0x41c3a6['rows'])for(let _0x14ba26 of _0x2cacb5['cells'])lt(_0x14ba26,_0x5e324a);}function ut(_0x1e37e1){const _0x2250b3=_0xac088e;return(0x0,f[_0x2250b3(0x4de)])(oe,{..._0x1e37e1,'PickerComponent':e[_0x2250b3(0x253)]});}function dt(){const _0x1f6cd9=_0xac088e;let _0x48a31a=(0x0,n[_0x1f6cd9(0x46d)])(o[_0x1f6cd9(0x2e2)]),_0x1623b4=re(),[_0x48f2df,_0x515346]=(0x0,v[_0x1f6cd9(0x46f)])(!0x1);return(0x0,f[_0x1f6cd9(0x3f1)])(_0x1f6cd9(0x274),{'className':_0x1f6cd9(0x374),'children':[(0x0,f[_0x1f6cd9(0x4de)])(_[_0x1f6cd9(0x250)],{'title':_0x48a31a['t'](_0x1f6cd9(0x322)),'aria-expanded':_0x48f2df,'variant':'subtle','trailing':_0x48f2df?(0x0,f[_0x1f6cd9(0x4de)])(g[_0x1f6cd9(0x42f)],{}):(0x0,f[_0x1f6cd9(0x4de)])(g[_0x1f6cd9(0x2b2)],{}),'onClick':()=>_0x515346(_0x1ad771=>!_0x1ad771)}),_0x48f2df&&(0x0,f[_0x1f6cd9(0x4de)])(e[_0x1f6cd9(0x253)],{'excludeGroups':[e[_0x1f6cd9(0x1e2)][_0x1f6cd9(0x3c9)]],'onShapeClick':_0xe946fa=>{_0x1623b4(_0xe946fa),_0x515346(!0x1);}})]});}function ft(_0x52da28){return _0x52da28['trim']()||void 0x0;}function pt(_0x5cd979,_0x5cfb34,_0x1a90c1){const _0x18d4c9=_0xac088e;var _0x162c7a,_0x49bb03;return((_0x162c7a=_0x5cd979['name'])==null?void 0x0:_0x162c7a[_0x18d4c9(0x229)]())||((_0x49bb03=_0x5cd979['title'])==null?void 0x0:_0x49bb03[_0x18d4c9(0x229)]())||_0x1a90c1['t']('drawing-ui.objectListPanel.typeNames.'+(0x0,e[_0x18d4c9(0x3ba)])(_0x5cd979[_0x18d4c9(0x37c)]))+'\x20'+(_0x5cfb34+0x1);}function mt({PanelComponent:_0x3b18b9=d[_0xac088e(0x207)]}){const _0x5dffc1=_0xac088e;let _0x5a532b=(0x0,n['useDependency'])(o[_0x5dffc1(0x2e2)]),_0x55c1cc={'title':_0x5a532b['t']('drawing-ui.objectListPanel.title'),'empty':_0x5a532b['t'](_0x5dffc1(0x26b)),'showAll':_0x5a532b['t'](_0x5dffc1(0x33d)),'hideAll':_0x5a532b['t'](_0x5dffc1(0x49c)),'lockAll':_0x5a532b['t'](_0x5dffc1(0x49e)),'unlockAll':_0x5a532b['t'](_0x5dffc1(0x358)),'moveForward':_0x5a532b['t'](_0x5dffc1(0x346)),'moveBackward':_0x5a532b['t'](_0x5dffc1(0x317)),'close':_0x5a532b['t'](_0x5dffc1(0x2d3)),'show':_0x5a532b['t'](_0x5dffc1(0x429)),'hide':_0x5a532b['t'](_0x5dffc1(0x3db)),'lock':_0x5a532b['t'](_0x5dffc1(0x42a)),'unlock':_0x5a532b['t'](_0x5dffc1(0x234)),'lockHint':_0x5a532b['t'](_0x5dffc1(0x478)),'unlockHint':_0x5a532b['t'](_0x5dffc1(0x417)),'name':_0x5a532b['t']('drawing-ui.objectListPanel.name'),'nameInput':_0x5a532b['t'](_0x5dffc1(0x44d)),'description':_0x5a532b['t'](_0x5dffc1(0x25b)),'descriptionPlaceholder':_0x5a532b['t'](_0x5dffc1(0x343)),'details':_0x5a532b['t']('drawing-ui.objectListPanel.details'),'noSelection':_0x5a532b['t'](_0x5dffc1(0x336)),'locate':_0x5a532b['t'](_0x5dffc1(0x338)),'expand':_0x5a532b['t'](_0x5dffc1(0x1fc)),'collapse':_0x5a532b['t'](_0x5dffc1(0x4bc)),'dragToReorder':_0x5a532b['t'](_0x5dffc1(0x2e3)),'search':_0x5a532b['t']('drawing-ui.objectListPanel.search'),'filterAll':_0x5a532b['t']('drawing-ui.objectListPanel.filterAll'),'filterHidden':_0x5a532b['t'](_0x5dffc1(0x337)),'filterLocked':_0x5a532b['t'](_0x5dffc1(0x23d)),'sectionCanvas':_0x5a532b['t']('drawing-ui.objectListPanel.sectionCanvas'),'sectionFloating':_0x5a532b['t'](_0x5dffc1(0x43b))},_0x40d849=(0x0,n[_0x5dffc1(0x46d)])(o[_0x5dffc1(0x2cf)]),_0x22b3c8=(0x0,n[_0x5dffc1(0x46d)])(o[_0x5dffc1(0x257)]),_0x237bc7=(0x0,n[_0x5dffc1(0x46d)])(c[_0x5dffc1(0x31e)]),_0x3a596a=(0x0,n['useDependency'])(u['IDrawingManagerService']),_0x11789a=(0x0,n[_0x5dffc1(0x46d)])(l[_0x5dffc1(0x1f4)]),[,_0x330f62]=(0x0,v[_0x5dffc1(0x2d0)])(_0x2c8622=>_0x2c8622+0x1,0x0),_0x4114ef=_0x22b3c8[_0x5dffc1(0x3c7)](o[_0x5dffc1(0x230)]['UNIVER_DOC']),_0x4510f3=(_0x4114ef==null?void 0x0:_0x4114ef[_0x5dffc1(0x389)]())??'',_0x2cf5c9=_0x4510f3,_0x3af058=(0x0,n['useObservable'])(()=>_0x3a596a['focus$'],_0x3a596a['getFocusDrawings'](),!0x1,[_0x3a596a]);(0x0,v[_0x5dffc1(0x48d)])(()=>{let _0xf86c53=_0x40d849['onCommandExecuted'](()=>_0x330f62());return()=>_0xf86c53['dispose']();},[_0x40d849]);let _0x47968d=_0x4510f3?_0x237bc7['getDrawingData'](_0x4510f3,_0x2cf5c9):{},_0x23a82b=(_0x4510f3?_0x237bc7[_0x5dffc1(0x33f)](_0x4510f3,_0x2cf5c9):[])[_0x5dffc1(0x2a4)](_0xa05ed=>_0x47968d[_0xa05ed])[_0x5dffc1(0x399)](_0x3239c9=>!!_0x3239c9)[_0x5dffc1(0x4ef)](),_0x3b37e1=_0x23a82b['reduce']((_0x1dda06,_0x554672)=>(_0x1dda06[(0x0,d['getObjectListPanelSectionIdForDrawingType'])(_0x554672[_0x5dffc1(0x37c)])]+=0x1,_0x1dda06),{'canvas':0x0,'floating':0x0}),_0x44f5ea={'canvas':0x0,'floating':0x0},_0x53ec84=_0x23a82b[_0x5dffc1(0x2a4)]((_0x29e1a2,_0x374964)=>{const _0xfe33be=_0x5dffc1;let _0xed35b2=(0x0,d[_0xfe33be(0x2d2)])(_0x29e1a2[_0xfe33be(0x37c)]),_0xa59d1f=_0xed35b2===d[_0xfe33be(0x3f2)],_0x14272c=_0x44f5ea[_0xed35b2]++;return{'id':_0x29e1a2[_0xfe33be(0x270)],'name':pt(_0x29e1a2,_0x374964,_0x5a532b),'description':_0x29e1a2[_0xfe33be(0x3e8)],'visible':_0x29e1a2['hidden']!==!0x0,'selectable':_0x29e1a2[_0xfe33be(0x4aa)]!==!0x1,'sectionId':_0xed35b2,'sectionTitle':_0xa59d1f?_0x55c1cc[_0xfe33be(0x29c)]:_0x55c1cc[_0xfe33be(0x353)],'capabilities':_0xa59d1f?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0xa59d1f&&_0x14272c>0x0,'canMoveBackward':!_0xa59d1f&&_0x14272c<_0x3b37e1[_0xfe33be(0x3cd)]-0x1,'canReorder':!_0xa59d1f};}),_0xc3fc87=(0x0,v[_0x5dffc1(0x452)])(()=>(_0x3af058??[])[_0x5dffc1(0x399)](_0x1d217a=>_0x1d217a[_0x5dffc1(0x2e6)]===_0x4510f3&&_0x1d217a[_0x5dffc1(0x390)]===_0x2cf5c9)[_0x5dffc1(0x2a4)](_0x1b3d0d=>_0x1b3d0d[_0x5dffc1(0x270)]),[_0x3af058,_0x2cf5c9,_0x4510f3]),_0x496fbb=_0xc3fc87[_0xc3fc87[_0x5dffc1(0x1ee)]-0x1]??null,_0x1a6356=_0x31ee3d=>_0x237bc7[_0x5dffc1(0x331)]({'unitId':_0x4510f3,'subUnitId':_0x2cf5c9,'drawingId':_0x31ee3d})??null,_0x232c44=async _0x2547f7=>{const _0x38638=_0x5dffc1;_0x4510f3&&_0x2547f7[_0x38638(0x1ee)]&&await _0x40d849[_0x38638(0x290)](r[_0x38638(0x3fe)]['id'],{'unitId':_0x4510f3,'patches':_0x2547f7});},_0x59cc0f=(_0xb73000,_0x3dcae6)=>{const _0x471546=_0x5dffc1;if(!_0x4510f3)return;let _0x51b8a9=_0x3dcae6?_0xc3fc87['includes'](_0xb73000)?_0xc3fc87[_0x471546(0x399)](_0x18789a=>_0x18789a!==_0xb73000):[..._0xc3fc87,_0xb73000]:[_0xb73000];_0x40d849[_0x471546(0x1e1)](u[_0x471546(0x49d)]['id'],_0x51b8a9['map'](_0x424b34=>({'unitId':_0x4510f3,'subUnitId':_0x2cf5c9,'drawingId':_0x424b34})));let _0x5116f0=_0x51b8a9[_0x51b8a9['length']-0x1];_0x5116f0?(0x0,e[_0x471546(0x33a)])(_0x11789a,{'unitId':_0x4510f3,'subUnitId':_0x2cf5c9,'drawingId':_0x5116f0}):(0x0,e[_0x471546(0x315)])(_0x11789a,_0x4510f3);},_0xd8a1fe=async(_0x60d0e4,_0x16e9be)=>{const _0x12d99a=_0x5dffc1;await _0x232c44(_0x60d0e4[_0x12d99a(0x2a4)](_0x529807=>_0x1a6356(_0x529807))[_0x12d99a(0x399)](_0xed51ae=>!!_0xed51ae)['filter'](_0x32666c=>_0x32666c[_0x12d99a(0x2e4)]!==!0x0!==_0x16e9be)[_0x12d99a(0x2a4)](_0x138874=>({'drawingId':_0x138874['drawingId'],'hidden':!_0x16e9be})));},_0x17e4ad=async(_0x1a61b9,_0xe21464)=>{const _0x461ea5=_0x5dffc1;await _0x232c44(_0x1a61b9['map'](_0x42bbb3=>_0x1a6356(_0x42bbb3))['filter'](_0x1c726a=>!!_0x1c726a)[_0x461ea5(0x399)](_0x2edd29=>_0x2edd29[_0x461ea5(0x4aa)]!==!0x1!==_0xe21464)[_0x461ea5(0x2a4)](_0x4a2c1b=>({'drawingId':_0x4a2c1b[_0x461ea5(0x270)],'selectable':_0xe21464})));},_0x257fa5=_0x2b8571=>{const _0x4347a6=_0x5dffc1;let _0x2a4d1a=_0x1a6356(_0x2b8571);if(_0x2a4d1a)return _0x17e4ad([_0x2b8571],_0x2a4d1a[_0x4347a6(0x4aa)]===!0x1);},_0x23ac8d=async(_0x39a17d,_0x5d7d00)=>{const _0x5759f5=_0x5dffc1;let _0x2e1b82=_0x1a6356(_0x39a17d),_0x411101=ft(_0x5d7d00);!_0x2e1b82||(_0x2e1b82['name']??void 0x0)===_0x411101&&(_0x2e1b82[_0x5759f5(0x3ea)]||void 0x0)===_0x411101||await _0x232c44([{'drawingId':_0x39a17d,'name':_0x411101,'title':_0x411101}]);},_0x14db0d=async(_0x5e9c64,_0x3021cc)=>{const _0x625f13=_0x5dffc1;let _0xfa9c43=_0x1a6356(_0x5e9c64),_0x3dd209=ft(_0x3021cc);_0xfa9c43&&(_0xfa9c43[_0x625f13(0x3e8)]??void 0x0)!==_0x3dd209&&await _0x232c44([{'drawingId':_0x5e9c64,'description':_0x3dd209}]);},_0x523401=async(_0x4a5746,_0x7bc81c)=>{const _0x1d9feb=_0x5dffc1;_0x4510f3&&await _0x40d849[_0x1d9feb(0x290)](c[_0x1d9feb(0x1dd)]['id'],{'unitId':_0x4510f3,'subUnitId':_0x2cf5c9,'drawingIds':[_0x4a5746],'arrangeType':_0x7bc81c});};return _0x4510f3?(0x0,f[_0x5dffc1(0x4de)])(_0x3b18b9,{'labels':_0x55c1cc,'renderPermissionAction':_0x255791=>_0x4114ef?(0x0,f[_0x5dffc1(0x4de)])(n[_0x5dffc1(0x388)],{'target':{'unitId':_0x4510f3,'objectId':(0x0,s[_0x5dffc1(0x1fe)])((0x0,s['getDocumentDrawingSegmentId'])(_0x4114ef,_0x255791['id']),_0x5dffc1(0x1e4),_0x255791['id']),'objectType':y[_0x5dffc1(0x48b)][_0x5dffc1(0x2ab)]},'name':_0x255791[_0x5dffc1(0x4b1)],'commandId':s[_0x5dffc1(0x312)]['id'],'exists':()=>!!_0x1a6356(_0x255791['id'])},_0x4510f3+'/'+_0x255791['id']):null,'items':_0x53ec84,'selectedIds':_0xc3fc87,'focusedId':_0x496fbb,'showHeader':!0x1,'onSelect':_0x59cc0f,'onSetVisible':_0xd8a1fe,'onSetSelectable':_0x17e4ad,'onCommitName':_0x23ac8d,'onCommitDescription':_0x14db0d,'onMoveForward':async _0x381acc=>_0x523401(_0x381acc,o['ArrangeTypeEnum'][_0x5dffc1(0x2ec)]),'onMoveBackward':async _0x11f891=>_0x523401(_0x11f891,o[_0x5dffc1(0x4ce)]['backward']),'onToggleSelectable':_0x257fa5}):(0x0,f['jsx'])('div',{'className':_0x5dffc1(0x308),'children':_0x55c1cc[_0x5dffc1(0x3ea)]});}function ht(){const _0x51168d=_0xac088e;return(0x0,f[_0x51168d(0x4de)])(mt,{'PanelComponent':d[_0x51168d(0x3cf)]});}let J=class{constructor(_0x464531){const _0x41eb0d=_0xac088e;this[_0x41eb0d(0x2a7)]=_0x464531;}['updateShapeFillImage'](_0x2f6449,_0x3cb6e4){const _0x5072b7=_0xac088e;let _0x1d382d=this['_renderManagerService'][_0x5072b7(0x4bd)](_0x2f6449[_0x5072b7(0x2e6)]),_0x4b91a0=_0x1d382d==null?void 0x0:_0x1d382d[_0x5072b7(0x4cc)];if(!_0x4b91a0)return;let _0x5a489e=(0x0,u['getDrawingShapeKeyByDrawingSearch'])(_0x2f6449),_0x2fb487=_0x4b91a0[_0x5072b7(0x4a1)](_0x5a489e);_0x2fb487==null||_0x2fb487['setFillImage'](_0x3cb6e4);}};J=I([F(0x0,l[_0xac088e(0x1f4)])],J);function gt(){const _0x1a74ca=_0xac088e;let _0x36d834=(0x0,n[_0x1a74ca(0x46d)])(u[_0x1a74ca(0x4ba)]),_0x143dbb=(0x0,n['useObservable'])(()=>_0x36d834['focus$'],_0x36d834[_0x1a74ca(0x2f0)](),!0x1,[_0x36d834]);return _0x143dbb['length']===0x0?null:(0x0,f['jsx'])(_0x1a74ca(0x274),{'children':(0x0,f[_0x1a74ca(0x3f1)])(_0x1a74ca(0x274),{'className':_0x1a74ca(0x461),'children':[(0x0,f[_0x1a74ca(0x4de)])(d[_0x1a74ca(0x4d0)],{'drawings':_0x143dbb,'hasCropper':!0x1}),(0x0,f['jsx'])(h[_0x1a74ca(0x3b4)],{'drawings':_0x143dbb}),(0x0,f[_0x1a74ca(0x4de)])(h['DocDrawingPosition'],{'drawings':_0x143dbb})]})});}function _t(_0x3351a8){const _0x24e2e0=_0xac088e;let {unitId:_0x293e5c,subUnitId:_0x53ee45,shapeId:_0x5b7e05,PositionComponent:_0x19d2ed=gt}=_0x3351a8,_0x237abb=(0x0,n['useDependency'])(o[_0x24e2e0(0x2cf)]),_0x1e331d=(0x0,n[_0x24e2e0(0x46d)])(J);return(0x0,f[_0x24e2e0(0x4de)])(e[_0x24e2e0(0x236)],{..._0x3351a8,'positionEditor':(0x0,f[_0x24e2e0(0x4de)])(_0x19d2ed,{}),'onUpdateShapeData':(_0x23e196,_0xcbb3eb)=>{R(_0x237abb,_0x293e5c,_0x53ee45,_0x5b7e05,_0x23e196,_0xcbb3eb);},'onUpdateLineShapeData':(_0x4ffc06,_0x252004)=>{fe(_0x237abb,_0x293e5c,_0x53ee45,_0x5b7e05,_0x4ffc06,_0x252004);},'onUpdateShapeFillImage':_0x5ef067=>{_0x1e331d['updateShapeFillImage']({'unitId':_0x293e5c,'subUnitId':_0x53ee45,'drawingId':_0x5b7e05},_0x5ef067);}});}function vt(){const _0x51117f=_0xac088e;let _0x3038d3=(0x0,n[_0x51117f(0x46d)])(u['IDrawingManagerService']),_0x55a55d=(0x0,n[_0x51117f(0x3f6)])(_0x3038d3[_0x51117f(0x22d)],_0x3038d3[_0x51117f(0x2f0)]());return _0x55a55d[_0x51117f(0x1ee)]===0x0?null:(0x0,f[_0x51117f(0x3f1)])(_0x51117f(0x274),{'className':_0x51117f(0x4cb),'children':[(0x0,f[_0x51117f(0x4de)])(d[_0x51117f(0x4d0)],{'drawings':_0x55a55d,'hasCropper':!0x1}),(0x0,f[_0x51117f(0x4de)])(h[_0x51117f(0x22f)],{'drawings':_0x55a55d}),(0x0,f[_0x51117f(0x4de)])(h['MobileDocDrawingPosition'],{'drawings':_0x55a55d})]});}function yt(_0x4f855a){const _0x23ae63=_0xac088e;return(0x0,f[_0x23ae63(0x4de)])(e[_0x23ae63(0x3ec)],{'children':(0x0,f['jsx'])(_t,{..._0x4f855a,'PositionComponent':vt})});}function bt({popup:_0x483ac5}){const _0x52e3d4=_0xac088e;let _0x2d6c4c=(0x0,n[_0x52e3d4(0x46d)])(o[_0x52e3d4(0x2e2)]),{shapeType:_0x2dd5c1,onText:_0x50e493,onStyle:_0x2b4abe,onDelete:_0x5435cd}=_0x483ac5['extraProps'],_0x3be674=[{'key':_0x52e3d4(0x37e),'order':0x0,'item':{'id':_0x52e3d4(0x37e),'type':n[_0x52e3d4(0x2e0)][_0x52e3d4(0x3c1)],'title':_0x2d6c4c['t'](_0x52e3d4(0x368)),'disabled$':(0x0,p['of'])((0x0,i[_0x52e3d4(0x471)])(_0x2dd5c1))}},{'key':_0x52e3d4(0x404),'order':0x1,'item':{'id':_0x52e3d4(0x404),'type':n[_0x52e3d4(0x2e0)][_0x52e3d4(0x3c1)],'title':_0x2d6c4c['t'](_0x52e3d4(0x271))}},{'key':'delete','order':0x2,'item':{'id':_0x52e3d4(0x488),'type':n[_0x52e3d4(0x2e0)][_0x52e3d4(0x3c1)],'title':_0x2d6c4c['t']('docs-shape-ui.mobile.delete')}}];return(0x0,f['jsx'])(n['MobileMenu'],{'schemas':_0x3be674,'presentation':_0x52e3d4(0x4a4),'onOptionSelect':async({id:_0x21d54a})=>{const _0x395f61=_0x52e3d4;_0x21d54a===_0x395f61(0x37e)?await _0x50e493():_0x21d54a===_0x395f61(0x404)?await _0x2b4abe():_0x21d54a===_0x395f61(0x488)&&await _0x5435cd();}});}const xt=_0xac088e(0x410);function St(_0x185af9,_0x3f7c5f){const _0x52df0f=_0xac088e;var _0x929fe2;let _0x12c11a=_0x185af9==null||(_0x929fe2=_0x185af9[_0x52df0f(0x3f5)]()[_0x52df0f(0x2f9)])==null?void 0x0:_0x929fe2[_0x3f7c5f];return _0x12c11a?_0x12c11a[_0x52df0f(0x39e)]===o[_0x52df0f(0x2c1)][_0x52df0f(0x1e6)]?_0x12c11a['behindDoc']===o['BooleanNumber'][_0x52df0f(0x3d4)]?c[_0x52df0f(0x4d5)][_0x52df0f(0x2a1)]:c[_0x52df0f(0x4d5)][_0x52df0f(0x285)]:_0x12c11a[_0x52df0f(0x39e)]===o[_0x52df0f(0x2c1)][_0x52df0f(0x330)]?c[_0x52df0f(0x4d5)][_0x52df0f(0x330)]:_0x12c11a[_0x52df0f(0x39e)]===o[_0x52df0f(0x2c1)]['WRAP_TOP_AND_BOTTOM']?c[_0x52df0f(0x4d5)][_0x52df0f(0x4ab)]:c[_0x52df0f(0x4d5)][_0x52df0f(0x255)]:c['TextWrappingStyle'][_0x52df0f(0x255)];}function Ct(_0x13d04e){const _0x307530=_0xac088e;let _0x328d88=(0x0,n[_0x307530(0x46d)])(e[_0x307530(0x37b)]),_0x36c8d0=(0x0,n[_0x307530(0x3f6)])(()=>_0x328d88[_0x307530(0x44e)],_0x328d88[_0x307530(0x32a)](),!0x1,[_0x328d88]),_0x33104d=_0x13d04e[_0x307530(0x49a)][_0x307530(0x47c)];return _0x36c8d0?(0x0,f['jsx'])(wt,{..._0x33104d,'canvasElement':_0x13d04e[_0x307530(0x49a)][_0x307530(0x40f)]}):null;}function wt(_0x5d26c7){const _0x2bccf3=_0xac088e;let _0x472e21=(0x0,n['useDependency'])(o['ICommandService']),_0x27d293=(0x0,n[_0x2bccf3(0x46d)])(o['LocaleService']),_0xb59405=(0x0,n[_0x2bccf3(0x46d)])(r[_0x2bccf3(0x326)]),_0x1d9025=(0x0,n[_0x2bccf3(0x46d)])(o['IUniverInstanceService']),{unitId:_0x3b13d8,subUnitId:_0x30e020,drawingId:_0x4425b4,shapeType:_0x3cc926}=_0x5d26c7,[_0x2605f5,_0x3e091f]=(0x0,v[_0x2bccf3(0x46f)])(_0x5d26c7[_0x2bccf3(0x485)]),_0x193346=_0x1d9025[_0x2bccf3(0x2cc)](_0x3b13d8,o['UniverInstanceType'][_0x2bccf3(0x2ba)])??void 0x0,[_0x2fda7a,_0x495b58]=(0x0,v[_0x2bccf3(0x46f)])(()=>St(_0x193346,_0x4425b4)),_0x3b6ed0=(0x0,v['useMemo'])(()=>(0x0,e['getTextStyle'])(_0x2605f5),[_0x2605f5]),_0xf5cb8c=(0x0,v[_0x2bccf3(0x452)])(()=>(0x0,e[_0x2bccf3(0x1f0)])(_0x2605f5),[_0x2605f5]);(0x0,v['useEffect'])(()=>{const _0x1e0a72=_0x2bccf3;let _0x488860=_0x472e21[_0x1e0a72(0x25e)](_0x2a2830=>{const _0xb59aff=_0x1e0a72;if(_0x2a2830['id']!==r[_0xb59aff(0x28b)]['id'])return;let _0x408d6e=_0xb59405['getShapeDataById'](_0x3b13d8,_0x30e020,_0x4425b4);_0x408d6e&&_0x3e091f(_0x408d6e);});return()=>_0x488860[_0x1e0a72(0x45f)]();},[_0x472e21,_0xb59405,_0x4425b4,_0x30e020,_0x3b13d8]);let _0x1a69f8=_0x225fde=>{_0x3e091f(_0x54dca7=>({..._0x54dca7,..._0x225fde}));},_0x3b40e1=_0x49e248=>{const _0xd6e720=_0x2bccf3;let _0x5b5f3f=(0x0,e[_0xd6e720(0x233)])(_0x2605f5,_0x49e248);R(_0x472e21,_0x3b13d8,_0x30e020,_0x4425b4,{'oldShapeData':{'shapeText':_0x2605f5['shapeText']}},_0x5b5f3f),_0x1a69f8(_0x5b5f3f);},_0xea71a=_0x24ca01=>{const _0x4fab3d=_0x2bccf3;_0x495b58(_0x24ca01),_0x472e21[_0x4fab3d(0x290)](c[_0x4fab3d(0x437)]['id'],{'unitId':_0x3b13d8,'subUnitId':_0x30e020,'drawings':[{'unitId':_0x3b13d8,'subUnitId':_0x30e020,'drawingId':_0x4425b4}],'wrappingStyle':_0x24ca01});},_0x3ab06e=(0x0,e[_0x2bccf3(0x304)])({'hostType':o[_0x2bccf3(0x230)][_0x2bccf3(0x2ba)],'unitId':_0x3b13d8,'subUnitId':_0x30e020,'shapeId':_0x4425b4,'shapeData':_0x2605f5,'onUpdateBinding':_0x4ebcb4=>{const _0x2870d8=_0x2bccf3;let _0x3738a0={'formulaBinding':_0x4ebcb4};R(_0x472e21,_0x3b13d8,_0x30e020,_0x4425b4,{'oldShapeData':{'formulaBinding':_0x2605f5[_0x2870d8(0x3f7)]}},_0x3738a0),_0x1a69f8(_0x3738a0);}}),_0x214f22=[{'label':_0x27d293['t'](_0x2bccf3(0x1fd)),'value':c[_0x2bccf3(0x4d5)][_0x2bccf3(0x255)],'icon':(0x0,f[_0x2bccf3(0x4de)])(g[_0x2bccf3(0x212)],{})},{'label':_0x27d293['t'](_0x2bccf3(0x3df)),'value':c[_0x2bccf3(0x4d5)][_0x2bccf3(0x330)],'icon':(0x0,f[_0x2bccf3(0x4de)])(g['TextWrapShapeIcon'],{})},{'label':_0x27d293['t'](_0x2bccf3(0x30c)),'value':c[_0x2bccf3(0x4d5)][_0x2bccf3(0x4ab)],'icon':(0x0,f[_0x2bccf3(0x4de)])(g[_0x2bccf3(0x212)],{})},{'label':_0x27d293['t'](_0x2bccf3(0x2b5)),'value':c[_0x2bccf3(0x4d5)][_0x2bccf3(0x2a1)],'icon':(0x0,f[_0x2bccf3(0x4de)])(g[_0x2bccf3(0x212)],{})},{'label':_0x27d293['t'](_0x2bccf3(0x46a)),'value':c['TextWrappingStyle'][_0x2bccf3(0x285)],'icon':(0x0,f[_0x2bccf3(0x4de)])(g[_0x2bccf3(0x212)],{})}];return(0x0,f['jsxs'])(f['Fragment'],{'children':[(0x0,f[_0x2bccf3(0x4de)])(e[_0x2bccf3(0x360)],{'canvasElement':_0x5d26c7[_0x2bccf3(0x40f)],'shapeData':_0x2605f5,'shapeType':_0x3cc926,'textStyle':{'ff':i[_0x2bccf3(0x458)]['shapeText']['fontFamily'],'fs':i[_0x2bccf3(0x458)][_0x2bccf3(0x4bb)][_0x2bccf3(0x1e3)],'cl':{'rgb':i['ShapeDefaultConfig']['shapeText'][_0x2bccf3(0x4e3)]},..._0x3b6ed0},'textModel':_0xf5cb8c?{'ha':_0xf5cb8c['ha']??o['HorizontalAlign'][_0x2bccf3(0x1fa)],'va':_0xf5cb8c['va']??o[_0x2bccf3(0x48a)][_0x2bccf3(0x34b)]}:null,'wrappingStyle':_0x2fda7a,'wrappingStyleOptions':_0x214f22,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':i[_0x2bccf3(0x458)][_0x2bccf3(0x3a5)],'defaultGradientEndColor':i['ShapeDefaultConfig'][_0x2bccf3(0x26c)],'defaultStrokeColor':i['ShapeDefaultConfig'][_0x2bccf3(0x4fb)],'extensionGroups':_0x3ab06e[_0x2bccf3(0x301)],'floatingObjectToolbarPosition':n[_0x2bccf3(0x2de)]['DOC'],'onUpdateShapeData':(_0x15af74,_0xa96554)=>{R(_0x472e21,_0x3b13d8,_0x30e020,_0x4425b4,_0x15af74,_0xa96554),_0xa96554&&_0x1a69f8(_0xa96554);},'onUpdateText':_0x3b40e1,'onUpdateWrappingStyle':_0x55ed42=>_0xea71a(_0x55ed42),'onOpenPanel':()=>{_0x472e21['executeCommand'](j['id'],{'unitId':_0x3b13d8,'subUnitId':_0x30e020,'drawingId':_0x4425b4});},'onDelete':()=>{_0x472e21['executeCommand'](c['RemoveDocDrawingCommand']['id'],{'unitId':_0x3b13d8,'drawings':[{'unitId':_0x3b13d8,'subUnitId':_0x30e020,'drawingId':_0x4425b4}]});}}),_0x3ab06e['panel']]});}function Tt({variant:_0x361a7d,extend:_0x970e4b,..._0x7f0779}){const _0x394717=_0xac088e;let _0x58d345=(0x0,f['jsx'])('rect',{'x':'7','y':_0x394717(0x4c8),'width':'6','height':'9','rx':'1','fill':_0x394717(0x459),'fillOpacity':_0x394717(0x4ec),'stroke':_0x394717(0x459),'strokeWidth':_0x394717(0x3bc)});return(0x0,f[_0x394717(0x3f1)])(_0x394717(0x307),{'aria-hidden':'true','fill':_0x394717(0x4fc),'height':_0x394717(0x321),'viewBox':_0x394717(0x2ff),'width':_0x394717(0x321),..._0x7f0779,'children':[_0x361a7d===_0x394717(0x4c5)&&(0x0,f[_0x394717(0x3f1)])(f[_0x394717(0x4b4)],{'children':[(0x0,f[_0x394717(0x4de)])('path',{'d':_0x394717(0x464),'stroke':_0x394717(0x459),'strokeLinecap':'round','strokeWidth':'1.2'}),(0x0,f[_0x394717(0x4de)])(_0x394717(0x32c),{'x':'8','y':'7','width':'4','height':'6','rx':_0x394717(0x215),'fill':'currentColor','fillOpacity':_0x394717(0x4ec),'stroke':_0x394717(0x459),'strokeWidth':_0x394717(0x3bc)})]}),_0x361a7d===_0x394717(0x4d4)&&(0x0,f[_0x394717(0x3f1)])(f[_0x394717(0x4b4)],{'children':[(0x0,f[_0x394717(0x4de)])('path',{'d':_0x394717(0x3b2),'stroke':_0x394717(0x459),'strokeLinecap':_0x394717(0x213),'strokeWidth':_0x394717(0x3bc)}),_0x58d345]}),_0x361a7d===_0x394717(0x3da)&&(0x0,f[_0x394717(0x3f1)])(f[_0x394717(0x4b4)],{'children':[(0x0,f[_0x394717(0x4de)])(_0x394717(0x3e4),{'d':'M2\x203h16M2\x2017h16','stroke':_0x394717(0x459),'strokeLinecap':_0x394717(0x213),'strokeWidth':'1.2'}),_0x58d345]}),_0x361a7d===_0x394717(0x489)&&(0x0,f['jsxs'])(f[_0x394717(0x4b4)],{'children':[_0x58d345,(0x0,f[_0x394717(0x4de)])(_0x394717(0x3e4),{'d':'M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','stroke':_0x394717(0x459),'strokeLinecap':'round','strokeWidth':_0x394717(0x3bc)})]}),_0x361a7d==='front'&&(0x0,f[_0x394717(0x3f1)])(f['Fragment'],{'children':[(0x0,f[_0x394717(0x4de)])('path',{'d':_0x394717(0x4be),'stroke':_0x394717(0x459),'strokeLinecap':_0x394717(0x213),'strokeWidth':_0x394717(0x3bc)}),(0x0,f[_0x394717(0x4de)])(_0x394717(0x32c),{'x':'7','y':_0x394717(0x4c8),'width':'6','height':'9','rx':'1','fill':_0x394717(0x459)})]})]});}const Y=_0x33718d=>_0x4af264=>(0x0,f['jsx'])(Tt,{..._0x4af264,'variant':_0x33718d}),Et={'DocsShapeWrapInlineIcon':Y(_0xac088e(0x4c5)),'DocsShapeWrapSquareIcon':Y(_0xac088e(0x4d4)),'DocsShapeWrapTopBottomIcon':Y(_0xac088e(0x3da)),'DocsShapeWrapBehindTextIcon':Y(_0xac088e(0x489)),'DocsShapeWrapInFrontOfTextIcon':Y('front')},Dt=(0x0,v[_0xac088e(0x2a0)])(()=>{const _0x23c878=_0xac088e;let _0x2cb84d=(0x0,n[_0x23c878(0x46d)])(G),_0x1e4caa=(0x0,n[_0x23c878(0x46d)])(r[_0x23c878(0x326)]),_0x55e6c6=(0x0,n['useDependency'])(u[_0x23c878(0x4ba)]),_0x40bed4=(0x0,n[_0x23c878(0x46d)])(o['ICommandService']),_0x47ba63=(0x0,v['useMemo'])(()=>({'getShapeModel':(_0x576ace,_0x3696b3,_0x1b03e9)=>_0x1e4caa[_0x23c878(0x3a7)](_0x576ace,_0x3696b3,_0x1b03e9),'getShapeData':(_0x39e562,_0x490363,_0x4e2b9b)=>_0x1e4caa[_0x23c878(0x4d8)](_0x39e562,_0x490363,_0x4e2b9b),'getDrawingTransform':(_0x53be2e,_0x4d421c,_0x307dae)=>{const _0x2fa881=_0x23c878;let _0x315887=_0x55e6c6[_0x2fa881(0x331)]({'unitId':_0x53be2e,'subUnitId':_0x4d421c,'drawingId':_0x307dae});return _0x315887==null?void 0x0:_0x315887[_0x2fa881(0x39c)];},'updateShapeText':({unitId:_0x3433c9,shapeId:_0x1c6b6c,shapeText:_0x5fd64f,oldShapeText:_0x2b1c70})=>{const _0x1442a4=_0x23c878;_0x40bed4[_0x1442a4(0x290)](r[_0x1442a4(0x218)]['id'],{'unitId':_0x3433c9,'shapeId':_0x1c6b6c,'shapeData':{'shapeText':_0x5fd64f},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x2b1c70}}});},'updateHostSize':({unitId:_0x2c8e59,subUnitId:_0x72b3a8,shapeId:_0x972877,width:_0x17f2bf,height:_0x47a30d})=>{const _0x38d432=_0x23c878;_0x40bed4[_0x38d432(0x290)](c['UpdateDrawingDocTransformCommand']['id'],{'unitId':_0x2c8e59,'subUnitId':_0x72b3a8,'drawings':[{'drawingId':_0x972877,'key':_0x38d432(0x40c),'value':{'width':_0x17f2bf,'height':_0x47a30d}}]});},'allowHostSizeShrink':({unitId:_0x35d622,subUnitId:_0x27f6ab,shapeId:_0x100de9})=>(0x0,e['shouldAllowShapeTextEditorHostSizeShrink'])(_0x1e4caa['getShapeDataById'](_0x35d622,_0x27f6ab,_0x100de9))}),[_0x40bed4,_0x1e4caa,_0x55e6c6]),_0x5dffcc=(0x0,v[_0x23c878(0x452)])(()=>({'viewportKeys':{'main':t[_0x23c878(0x418)]['VIEW_MAIN']}}),[]);return(0x0,f['jsx'])(e['ShapeTextEditorContainer'],{'adapter':_0x47ba63,'editingService':_0x2cb84d,'editorUnitId':D,'positionOptions':_0x5dffcc});});let Ot=class extends o[_0xac088e(0x1d9)]{constructor(_0x1e464f,_0x41775a){const _0x332cbf=_0xac088e;super(),this[_0x332cbf(0x2fc)]=_0x1e464f,this['_iconManager']=_0x41775a,this[_0x332cbf(0x294)](),this[_0x332cbf(0x22a)]();}[_0xac088e(0x294)](){const _0x1fea04=_0xac088e;this[_0x1fea04(0x2dd)]['has']('ObjectLayersIcon')||this['disposeWithMe'](this[_0x1fea04(0x2dd)][_0x1fea04(0x38f)]({'ObjectLayersIcon':g['ObjectLayersIcon']})),this[_0x1fea04(0x2dd)][_0x1fea04(0x23c)]('BottomIcon')||this[_0x1fea04(0x38a)](this['_iconManager']['register']({'BottomIcon':g['BottomIcon']})),this[_0x1fea04(0x2dd)][_0x1fea04(0x23c)]('MoveDownIcon')||this['disposeWithMe'](this['_iconManager']['register']({'MoveDownIcon':g[_0x1fea04(0x4e9)]})),this[_0x1fea04(0x2dd)][_0x1fea04(0x23c)]('MoveUpIcon')||this[_0x1fea04(0x38a)](this[_0x1fea04(0x2dd)][_0x1fea04(0x38f)]({'MoveUpIcon':g[_0x1fea04(0x45c)]})),this['_iconManager'][_0x1fea04(0x23c)](_0x1fea04(0x291))||this[_0x1fea04(0x38a)](this['_iconManager'][_0x1fea04(0x38f)]({'ShapeFormatSettingIcon':g['ShapeFormatSettingIcon']})),this[_0x1fea04(0x2dd)][_0x1fea04(0x23c)](_0x1fea04(0x354))||this[_0x1fea04(0x38a)](this[_0x1fea04(0x2dd)][_0x1fea04(0x38f)]({'TopmostIcon':g[_0x1fea04(0x354)]})),this['disposeWithMe'](this[_0x1fea04(0x2dd)][_0x1fea04(0x38f)](Et));}[_0xac088e(0x22a)](){const _0x386ab6=_0xac088e;this[_0x386ab6(0x38a)](this['_componentManager'][_0x386ab6(0x38f)](w,yt)),this[_0x386ab6(0x38a)](this['_componentManager'][_0x386ab6(0x38f)](E,ht)),this[_0x386ab6(0x38a)](this[_0x386ab6(0x2fc)][_0x386ab6(0x38f)](xt,bt)),this['disposeWithMe'](this[_0x386ab6(0x2fc)]['register'](me,be)),this[_0x386ab6(0x38a)](this['_componentManager']['register'](pe,xe)),this[_0x386ab6(0x38a)](this['_componentManager'][_0x386ab6(0x38f)](he,Se)),this[_0x386ab6(0x38a)](this[_0x386ab6(0x2fc)]['register'](ge,Ce)),this[_0x386ab6(0x38a)](this[_0x386ab6(0x2fc)][_0x386ab6(0x38f)](_e,we)),this[_0x386ab6(0x38a)](this[_0x386ab6(0x2fc)]['register'](O,e['ShapeTextFloatToolbar'])),this[_0x386ab6(0x38a)](this['_componentManager'][_0x386ab6(0x38f)](ee,ut)),this[_0x386ab6(0x38a)](this[_0x386ab6(0x2fc)]['register'](te,dt)),this[_0x386ab6(0x2fc)][_0x386ab6(0x3f8)](d[_0x386ab6(0x25c)])||this[_0x386ab6(0x38a)](this['_componentManager']['register'](d[_0x386ab6(0x25c)],ae)),this[_0x386ab6(0x38a)](this['_componentManager'][_0x386ab6(0x38f)](k,Dt));}};Ot=I([F(0x0,(0x0,o['Inject'])(n['ComponentManager'])),F(0x1,(0x0,o[_0xac088e(0x383)])(n[_0xac088e(0x2f4)]))],Ot);let kt=class extends o[_0xac088e(0x1d9)]{constructor(_0x4fe3ef,_0x8d16f9,_0x41aedc,_0x59090a,_0x49679f,_0x1c94dc,_0x35f923,_0x5e70ea,_0x4fb29f,_0x4eac1a,_0x148e61,_0x4079f3,_0x5284f3){const _0x229a51=_0xac088e;super(),this['_univerInstanceService']=_0x4fe3ef,this['_sidebarService']=_0x8d16f9,this[_0x229a51(0x1da)]=_0x41aedc,this[_0x229a51(0x446)]=_0x59090a,this[_0x229a51(0x4b3)]=_0x49679f,this[_0x229a51(0x483)]=_0x1c94dc,this[_0x229a51(0x31f)]=_0x35f923,this[_0x229a51(0x430)]=_0x5e70ea,this['_renderManagerService']=_0x4fb29f,this[_0x229a51(0x444)]=_0x4eac1a,this[_0x229a51(0x2a5)]=_0x148e61,this[_0x229a51(0x462)]=_0x4079f3,this[_0x229a51(0x4a2)]=_0x5284f3,H(this,_0x229a51(0x2d1),null),H(this,_0x229a51(0x362),null),H(this,_0x229a51(0x402),!0x1),H(this,_0x229a51(0x3e1),0x0),H(this,'_disposePopupsByUnit',new Map()),H(this,'_popupTargetKeys',new Map()),this[_0x229a51(0x223)](),this[_0x229a51(0x38a)](this[_0x229a51(0x278)][_0x229a51(0x2fa)](o[_0x229a51(0x230)][_0x229a51(0x2ba)])[_0x229a51(0x43a)](_0x12cf4c=>{const _0x2ce02a=_0x229a51;if(!_0x12cf4c){var _0x18a798;(_0x18a798=this[_0x2ce02a(0x2d1)])==null||_0x18a798[_0x2ce02a(0x45f)]();}})),this[_0x229a51(0x2c4)](),this['disposeWithMe'](this[_0x229a51(0x31f)]['remove$'][_0x229a51(0x43a)](_0x575633=>{const _0x2ffb75=_0x229a51;for(let _0x337431 of _0x575633){let _0xd83270=_0x337431[_0x2ffb75(0x2e6)]+':'+_0x337431[_0x2ffb75(0x390)]+':'+_0x337431[_0x2ffb75(0x270)];for(let [_0x12e762,_0x4a300d]of this['_popupTargetKeys'])_0x4a300d===_0xd83270&&this[_0x2ffb75(0x21f)](_0x12e762,!0x0);}})),this[_0x229a51(0x38a)]((0x0,e['bindRenderTransformerLifecycle'])(this[_0x229a51(0x2a7)],o[_0x229a51(0x230)][_0x229a51(0x2ba)],_0x238152=>this[_0x229a51(0x2bb)](_0x238152))),this[_0x229a51(0x38a)](this[_0x229a51(0x2a5)]['editingParams$'][_0x229a51(0x43a)](_0x28f732=>{_0x28f732&&this['_clearPopups'](void 0x0,!0x0);})),this['disposeWithMe'](this[_0x229a51(0x462)][_0x229a51(0x4fe)]['subscribe'](()=>{const _0x52d34f=_0x229a51;this[_0x52d34f(0x31f)][_0x52d34f(0x2f0)]()['some'](_0x21269b=>_0x21269b[_0x52d34f(0x37c)]===o[_0x52d34f(0x440)][_0x52d34f(0x2bf)]&&this[_0x52d34f(0x278)][_0x52d34f(0x24e)](_0x21269b[_0x52d34f(0x2e6)])===o[_0x52d34f(0x230)]['UNIVER_DOC']&&!this['_canEditShape'](_0x21269b[_0x52d34f(0x2e6)],_0x21269b[_0x52d34f(0x270)]))&&(this[_0x52d34f(0x21f)](void 0x0,!0x0),this[_0x52d34f(0x3ee)]());}));}[_0xac088e(0x277)](_0x570d9c,_0x10f622,_0x4c1074,_0x1a2c27){const _0x460646=_0xac088e;return[{'label':_0x460646(0x4ee),'index':0x0,'commandId':j['id'],'commandParams':{'unitId':_0x570d9c,'subUnitId':_0x10f622,'drawingId':_0x4c1074},'disable':_0x1a2c27===o[_0x460646(0x440)][_0x460646(0x3ac)]},{'label':_0x460646(0x2a9),'index':0x1,'commandId':c[_0x460646(0x200)]['id'],'commandParams':{'unitId':_0x570d9c,'drawings':[{'unitId':_0x570d9c,'subUnitId':_0x10f622,'drawingId':_0x4c1074}]},'disable':!0x1},{'label':_0x460646(0x2ae),'index':0x2,'commandId':B['id'],'commandParams':{'unitId':_0x570d9c,'subUnitId':_0x10f622,'drawingId':_0x4c1074},'disable':!0x1}];}[_0xac088e(0x223)](){const _0x566c00=_0xac088e;this['_menuManagerService'][_0x566c00(0x284)](Qe);}[_0xac088e(0x2f6)](_0x2989e2,_0x14c50f,_0x221591){const _0x4b9d72=_0xac088e;let _0x1777f4=this['_docsShapeService']['getShapeTypeById'](_0x2989e2,_0x14c50f,_0x221591),_0x4ce385=this[_0x4b9d72(0x446)][_0x4b9d72(0x4d8)](_0x2989e2,_0x14c50f,_0x221591);return _0x1777f4===void 0x0||_0x4ce385===void 0x0?null:{'shapeData':_0x4ce385,'shapeId':_0x221591,'shapeType':_0x1777f4,'unitId':_0x2989e2,'subUnitId':_0x14c50f,'version':this[_0x4b9d72(0x3e1)],'disableShapeOption':!0x1};}[_0xac088e(0x21f)](_0x50f40b,_0x1cfb26=!0x1){const _0x54bef3=_0xac088e;if(_0x50f40b==null){[...this[_0x54bef3(0x268)][_0x54bef3(0x460)]()]['forEach'](_0x5426df=>this['_clearPopups'](_0x5426df,_0x1cfb26));return;}let _0x56c962=this['_disposePopupsByUnit'][_0x54bef3(0x314)](_0x50f40b);if(_0x56c962){for(let _0x3d1ee5=_0x56c962[_0x54bef3(0x1ee)]-0x1;_0x3d1ee5>=0x0;--_0x3d1ee5){let _0x2f200b=_0x56c962[_0x3d1ee5];(_0x1cfb26||_0x2f200b['canDispose']())&&(_0x2f200b[_0x54bef3(0x45f)](),_0x56c962['splice'](_0x3d1ee5,0x1));}_0x56c962['length']===0x0&&(this['_disposePopupsByUnit'][_0x54bef3(0x488)](_0x50f40b),this['_popupTargetKeys'][_0x54bef3(0x488)](_0x50f40b));}}[_0xac088e(0x4e8)](_0x53a77b){const _0x2cbf6e=_0xac088e;let _0x4d7daf=this[_0x2cbf6e(0x268)]['get'](_0x53a77b);if(_0x4d7daf)return _0x4d7daf;let _0x55ae98=[];return this['_disposePopupsByUnit'][_0x2cbf6e(0x373)](_0x53a77b,_0x55ae98),_0x55ae98;}[_0xac088e(0x2bb)](_0xbf3a56){const _0x349446=_0xac088e;var _0x28ee51;let _0x1205f1=new o[(_0x349446(0x3f3))](),_0x1b6cae=(_0x28ee51=this['_renderManagerService'][_0x349446(0x254)](o[_0x349446(0x230)]['UNIVER_DOC'])[_0x349446(0x41f)](_0x25ba9d=>_0x25ba9d[_0x349446(0x4cc)][_0x349446(0x2df)]()===_0xbf3a56))==null?void 0x0:_0x28ee51[_0x349446(0x2e6)];return _0x1b6cae&&(_0x1205f1['add'](_0xbf3a56[_0x349446(0x385)][_0x349446(0x43a)](()=>this[_0x349446(0x2fb)](_0xbf3a56,_0x1b6cae))),_0x1205f1['add'](_0xbf3a56[_0x349446(0x455)][_0x349446(0x43a)](()=>{this['_clearPopups'](_0x1b6cae),queueMicrotask(()=>{const _0x212f7e=_0xa70b;_0xbf3a56['getSelectedObjectMap']()[_0x212f7e(0x40c)]>0x0||!this[_0x212f7e(0x31f)][_0x212f7e(0x2f0)]()[_0x212f7e(0x3f9)](_0x3beac7=>_0x3beac7[_0x212f7e(0x2e6)]===_0x1b6cae)||(this['_contextService'][_0x212f7e(0x283)](o[_0x212f7e(0x24d)],!0x1),this['_drawingManagerService'][_0x212f7e(0x2c7)](null));});})),_0x1205f1['add'](_0xbf3a56[_0x349446(0x43f)][_0x349446(0x43a)](()=>{const _0x25613b=_0x349446;this[_0x25613b(0x21f)](_0x1b6cae,!0x0);}))),_0x1205f1;}['_handleCreateControl'](_0x32a92a,_0x4fa17d){const _0x49f2f2=_0xac088e;let _0x337aca=_0x32a92a[_0x49f2f2(0x3a3)]();if(this[_0x49f2f2(0x402)]){this['_clearPopups'](_0x4fa17d,!0x0);return;}if(_0x337aca[_0x49f2f2(0x40c)]>0x1){this[_0x49f2f2(0x21f)](_0x4fa17d);return;}let _0x4767c1=_0x337aca[_0x49f2f2(0x37f)]()[_0x49f2f2(0x1f1)]()[_0x49f2f2(0x201)];if(!_0x4767c1){this['_clearPopups'](_0x4fa17d);return;}let _0x1e2a84=this[_0x49f2f2(0x31f)][_0x49f2f2(0x496)](_0x4767c1[_0x49f2f2(0x299)]);if(!_0x1e2a84||_0x1e2a84[_0x49f2f2(0x37c)]!==o[_0x49f2f2(0x440)][_0x49f2f2(0x2bf)]){this[_0x49f2f2(0x21f)](_0x4fa17d);return;}let {unitId:_0x41ad73,subUnitId:_0x192576,drawingId:_0x1c3bb2}=_0x1e2a84;if(!this['_canEditShape'](_0x41ad73,_0x1c3bb2)){this[_0x49f2f2(0x21f)](_0x4fa17d,!0x0);return;}let _0x14ad7d=this['_getShapeInfo'](_0x41ad73,_0x192576,_0x1c3bb2);if(!_0x14ad7d){this[_0x49f2f2(0x21f)](_0x4fa17d);return;}let _0x44000d=this[_0x49f2f2(0x268)][_0x49f2f2(0x314)](_0x4fa17d),_0x32ca8a=_0x41ad73+':'+_0x192576+':'+_0x1c3bb2;if(this[_0x49f2f2(0x31a)][_0x49f2f2(0x314)](_0x4fa17d)===_0x32ca8a&&_0x44000d!=null&&_0x44000d['length'])return;this[_0x49f2f2(0x21f)](_0x4fa17d);let _0x3eb052=this[_0x49f2f2(0x2a7)][_0x49f2f2(0x4bd)](_0x41ad73),_0x5c659d=((_0x3eb052==null?void 0x0:_0x3eb052['isMainScene'])===!0x1?_0x3eb052[_0x49f2f2(0x3e6)](t[_0x49f2f2(0x4c6)]):this[_0x49f2f2(0x430)])[_0x49f2f2(0x33e)](_0x4767c1,this[_0x49f2f2(0x37a)](_0x14ad7d,()=>this[_0x49f2f2(0x21f)](_0x4fa17d,!0x0)),_0x41ad73);this['disposeWithMe'](_0x5c659d),this['_getDisposePopups'](_0x4fa17d)[_0x49f2f2(0x474)](_0x5c659d),this[_0x49f2f2(0x31a)]['set'](_0x4fa17d,_0x32ca8a),this[_0x49f2f2(0x31f)][_0x49f2f2(0x2f0)]()[_0x49f2f2(0x3f9)](_0x232352=>_0x232352['unitId']===_0x41ad73&&_0x232352[_0x49f2f2(0x390)]===_0x192576&&_0x232352['drawingId']===_0x1c3bb2)||this[_0x49f2f2(0x31f)][_0x49f2f2(0x2c7)]([{'unitId':_0x41ad73,'subUnitId':_0x192576,'drawingId':_0x1c3bb2}]);}[_0xac088e(0x37a)](_0x3fb919,_0x3893fe){const _0x3c1717=_0xac088e;let {unitId:_0x591f25,subUnitId:_0x3fdac,shapeId:_0x23cae0}=_0x3fb919,_0x2c0767={'hostType':o[_0x3c1717(0x230)][_0x3c1717(0x2ba)],'unitId':_0x591f25,'subUnitId':_0x3fdac,'shapeId':_0x23cae0};return{'componentKey':xt,'requiresStableLayout':!0x1,'direction':_0x3c1717(0x238),'offset':[0x0,0x8],'extraProps':{'shapeType':_0x3fb919[_0x3c1717(0x492)],'onText':()=>{const _0x84c527=_0x3c1717;_0x3893fe(),this[_0x84c527(0x4a2)][_0x84c527(0x487)](_0x84c527(0x37e),_0x2c0767);},'onStyle':()=>{const _0x51d648=_0x3c1717;_0x3893fe(),this[_0x51d648(0x4a2)][_0x51d648(0x487)](_0x51d648(0x404),_0x2c0767);},'onDelete':()=>this['_commandService'][_0x3c1717(0x290)](c[_0x3c1717(0x200)]['id'],{'unitId':_0x591f25,'drawings':[{'unitId':_0x591f25,'subUnitId':_0x3fdac,'drawingId':_0x23cae0}]})}};}['_canEditShape'](_0x3e01be,_0x6d96ec){const _0x50eb39=_0xac088e;let _0x222ea2=this['_univerInstanceService'][_0x50eb39(0x2cc)](_0x3e01be,o[_0x50eb39(0x230)][_0x50eb39(0x2ba)]);if(!_0x222ea2)return!0x1;let _0x5a52f0=(0x0,s[_0x50eb39(0x2b6)])(_0x222ea2,_0x6d96ec);return(0x0,s[_0x50eb39(0x376)])(this[_0x50eb39(0x462)],_0x3e01be,[...(0x0,s[_0x50eb39(0x2b7)])(_0x222ea2,_0x5a52f0,'drawing',_0x6d96ec),(0x0,s[_0x50eb39(0x1fe)])(_0x5a52f0,_0x50eb39(0x1e4),_0x6d96ec)]);}[_0xac088e(0x2c4)](){const _0x5f4861=_0xac088e;this[_0x5f4861(0x38a)](this[_0x5f4861(0x483)]['onCommandExecuted'](_0x5214eb=>{const _0x1fce6b=_0x5f4861;if(_0x5214eb['id']===j['id']){let {unitId:_0x27dcbe,subUnitId:_0x55730b,drawingId:_0x33f60b}=_0x5214eb[_0x1fce6b(0x359)];this[_0x1fce6b(0x3e1)]+=0x1,this[_0x1fce6b(0x362)]=this['_getShapeInfo'](_0x27dcbe,_0x55730b,_0x33f60b),this[_0x1fce6b(0x21f)](void 0x0,!0x0),this['_openShapeEditPanel']();}if(_0x5214eb['id']===B['id']&&(this[_0x1fce6b(0x362)]=null,this[_0x1fce6b(0x3ee)]()),_0x5214eb['id']===r[_0x1fce6b(0x28b)]['id']){var _0x451448;let {unitId:_0x3644b4,shapeId:_0x52ff6b}=_0x5214eb['params'];if(((_0x451448=this['_activeShapeInfo'])==null?void 0x0:_0x451448[_0x1fce6b(0x25f)])===_0x52ff6b){let _0x510bd9=this['_getShapeInfo'](_0x3644b4,this[_0x1fce6b(0x362)][_0x1fce6b(0x390)],_0x52ff6b);_0x510bd9&&(this['_shapeEditPanelVersion']+=0x1,_0x510bd9[_0x1fce6b(0x3b8)]=this[_0x1fce6b(0x3e1)],this[_0x1fce6b(0x362)]=_0x510bd9,this[_0x1fce6b(0x402)]&&this[_0x1fce6b(0x227)]());}}})),this[_0x5f4861(0x38a)](this['_drawingManagerService'][_0x5f4861(0x22d)]['subscribe'](_0x130c2a=>{const _0x47c1d6=_0x5f4861;if(!this[_0x47c1d6(0x402)])return;if(_0x130c2a[_0x47c1d6(0x1ee)]===0x0){this['_activeShapeInfo']=null,this[_0x47c1d6(0x3ee)]();return;}if(_0x130c2a[_0x47c1d6(0x1ee)]===0x1&&_0x130c2a[0x0][_0x47c1d6(0x37c)]===o[_0x47c1d6(0x440)][_0x47c1d6(0x2bf)]&&(this['_shapeEditPanelVersion']+=0x1,this[_0x47c1d6(0x362)]=this[_0x47c1d6(0x2f6)](_0x130c2a[0x0]['unitId'],_0x130c2a[0x0][_0x47c1d6(0x390)],_0x130c2a[0x0][_0x47c1d6(0x270)]),this[_0x47c1d6(0x362)])){this[_0x47c1d6(0x227)]();return;}let _0x232848=_0x130c2a[_0x47c1d6(0x399)](_0x2ef6e9=>_0x2ef6e9[_0x47c1d6(0x37c)]===o[_0x47c1d6(0x440)][_0x47c1d6(0x2bf)]);this[_0x47c1d6(0x3e1)]+=0x1,this[_0x47c1d6(0x362)]=this[_0x47c1d6(0x2f6)](_0x130c2a[0x0][_0x47c1d6(0x2e6)],_0x130c2a[0x0]['subUnitId'],_0x130c2a[0x0][_0x47c1d6(0x270)]),this[_0x47c1d6(0x362)]&&_0x130c2a[_0x47c1d6(0x1ee)]>0x1&&_0x232848[_0x47c1d6(0x1ee)]===_0x130c2a[_0x47c1d6(0x1ee)]?this['_openShapeEditPanel']():this['_activeShapeInfo']&&_0x232848[_0x47c1d6(0x1ee)]!==_0x130c2a[_0x47c1d6(0x1ee)]?(this[_0x47c1d6(0x362)][_0x47c1d6(0x475)]=!0x0,this[_0x47c1d6(0x227)]()):this['_closeShapeEditPanel']();}));}[_0xac088e(0x227)](){const _0x3bbd72=_0xac088e;this[_0x3bbd72(0x362)]&&(this['_sidebarDisposable']=this['_sidebarService'][_0x3bbd72(0x487)]({'id':w,'header':{'title':this[_0x3bbd72(0x4b3)]['t']('docs-shape-ui.formatShape')},'width':0x184,'children':{'label':w,...this['_activeShapeInfo']},'onClose':()=>{const _0x942301=_0x3bbd72;this['_drawingManagerService']['focusDrawing'](null),this['_contextService'][_0x942301(0x283)](o[_0x942301(0x24d)],!0x1),this[_0x942301(0x2d1)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}['_closeShapeEditPanel'](){const _0x3b3378=_0xac088e;this[_0x3b3378(0x402)]=!0x1,this[_0x3b3378(0x2f1)][_0x3b3378(0x411)](w),this[_0x3b3378(0x2d1)]=null,this[_0x3b3378(0x444)][_0x3b3378(0x283)](o['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x3b3378(0x31f)][_0x3b3378(0x2c7)](null);}};kt=I([F(0x0,o[_0xac088e(0x257)]),F(0x1,(0x0,o[_0xac088e(0x383)])(n['ISidebarService'])),F(0x2,n['IMenuManagerService']),F(0x3,(0x0,o[_0xac088e(0x383)])(r[_0xac088e(0x326)])),F(0x4,(0x0,o[_0xac088e(0x383)])(o[_0xac088e(0x2e2)])),F(0x5,o[_0xac088e(0x2cf)]),F(0x6,u[_0xac088e(0x4ba)]),F(0x7,(0x0,o['Inject'])(t[_0xac088e(0x4c6)])),F(0x8,l['IRenderManagerService']),F(0x9,o[_0xac088e(0x486)]),F(0xa,(0x0,o[_0xac088e(0x383)])(G)),F(0xb,o[_0xac088e(0x23e)]),F(0xc,(0x0,o['Inject'])(e[_0xac088e(0x341)]))],kt);const At=_0xac088e(0x26a);let X=class extends o[_0xac088e(0x1d9)]{constructor(_0x514640,_0x4c9a40,_0x8d12ef,_0x3540ce,_0x13fb26,_0x7420ff){const _0x5ee48a=_0xac088e;super(),this[_0x5ee48a(0x1da)]=_0x514640,this[_0x5ee48a(0x34d)]=_0x4c9a40,this[_0x5ee48a(0x31f)]=_0x8d12ef,this['_univerInstanceService']=_0x3540ce,this['_renderManagerService']=_0x13fb26,this[_0x5ee48a(0x497)]=_0x7420ff,H(this,_0x5ee48a(0x423),!0x1),this[_0x5ee48a(0x1da)][_0x5ee48a(0x284)](Ze),this['disposeWithMe']((0x0,o[_0x5ee48a(0x3fb)])(this[_0x5ee48a(0x31f)][_0x5ee48a(0x22d)][_0x5ee48a(0x43a)](()=>this[_0x5ee48a(0x3e3)]()))),this[_0x5ee48a(0x3e3)]();}[_0xac088e(0x45f)](){const _0x48e350=_0xac088e;this['_shapeFloatingToolbarService']['setFallbackVisible'](!0x1,At),this[_0x48e350(0x3e5)](),super['dispose']();}[_0xac088e(0x3e3)](){const _0x25fd6e=_0xac088e;var _0x33ac36;let _0x24400b=this[_0x25fd6e(0x31f)]['getFocusDrawings'](),_0x102869=_0x24400b[_0x25fd6e(0x1ee)]===0x1?_0x24400b[0x0]:void 0x0;if((_0x102869==null?void 0x0:_0x102869[_0x25fd6e(0x37c)])!==o[_0x25fd6e(0x440)][_0x25fd6e(0x2bf)]||this[_0x25fd6e(0x278)][_0x25fd6e(0x24e)](_0x102869['unitId'])!==o[_0x25fd6e(0x230)][_0x25fd6e(0x2ba)]){this[_0x25fd6e(0x497)][_0x25fd6e(0x426)](!0x1,At),this[_0x25fd6e(0x3e5)]();return;}let _0x16bf4a=(_0x33ac36=this[_0x25fd6e(0x2a7)]['getRenderUnitById'](_0x102869[_0x25fd6e(0x2e6)]))==null?void 0x0:_0x33ac36['engine'][_0x25fd6e(0x3cc)](),_0xdee5ef=(0x0,e['resolveShapeContextualRibbonHostMode'])(_0x16bf4a)===_0x25fd6e(0x2e9);this[_0x25fd6e(0x497)][_0x25fd6e(0x426)](_0xdee5ef,At),_0xdee5ef?this[_0x25fd6e(0x3e5)]():(this[_0x25fd6e(0x423)]=!0x0,this[_0x25fd6e(0x34d)][_0x25fd6e(0x2b3)](T,{'activate':!0x0}));}[_0xac088e(0x3e5)](){const _0x4ccbd4=_0xac088e;this[_0x4ccbd4(0x423)]&&(this[_0x4ccbd4(0x423)]=!0x1,this[_0x4ccbd4(0x34d)][_0x4ccbd4(0x4e4)](T),this[_0x4ccbd4(0x34d)][_0x4ccbd4(0x1f7)]([]));}};X=I([F(0x0,n['IMenuManagerService']),F(0x1,n[_0xac088e(0x339)]),F(0x2,u[_0xac088e(0x4ba)]),F(0x3,o[_0xac088e(0x257)]),F(0x4,l['IRenderManagerService']),F(0x5,(0x0,o['Inject'])(e[_0xac088e(0x37b)]))],X);let Z=class extends o[_0xac088e(0x1d9)]{constructor(_0x153ecd,_0x4f30b4,_0x50c53f,_0x3850cf){const _0x5af0a6=_0xac088e;super(),this[_0x5af0a6(0x483)]=_0x153ecd,this['_renderManagerService']=_0x4f30b4,this['_drawingManagerService']=_0x50c53f,this[_0x5af0a6(0x1db)]=_0x3850cf,this[_0x5af0a6(0x490)]();}['_initialize'](){const _0x90c591=_0xac088e;this[_0x90c591(0x38a)](this[_0x90c591(0x31f)][_0x90c591(0x263)]['subscribe'](_0x1e0b00=>this[_0x90c591(0x384)](_0x1e0b00))),this[_0x90c591(0x38a)](this[_0x90c591(0x31f)][_0x90c591(0x1fb)][_0x90c591(0x43a)](_0x70e69a=>{const _0x2b5d5c=_0x90c591;_0x70e69a['forEach'](_0x5183ba=>this[_0x2b5d5c(0x239)](_0x5183ba));})),this['disposeWithMe'](this['_commandService'][_0x90c591(0x25e)](_0x1926c7=>{const _0x102638=_0x90c591;if(_0x1926c7['id']!==r[_0x102638(0x28b)]['id'])return;let {unitId:_0x3f94ce,shapeId:_0x4b39b8}=_0x1926c7[_0x102638(0x359)];this['_refreshShapeData']({'unitId':_0x3f94ce,'subUnitId':_0x3f94ce,'drawingId':_0x4b39b8});}));}['_insertShapes'](_0x2f1f4b){const _0x281465=_0xac088e;_0x2f1f4b[_0x281465(0x3ca)](_0x5e64cd=>{const _0x2d42cc=_0x281465;let _0x2590d4=this[_0x2d42cc(0x44b)](_0x5e64cd['unitId']);if(!_0x2590d4)return;let _0x1e8906=this['_drawingManagerService'][_0x2d42cc(0x331)](_0x5e64cd);(_0x1e8906==null?void 0x0:_0x1e8906[_0x2d42cc(0x37c)])===o[_0x2d42cc(0x440)][_0x2d42cc(0x2bf)]&&this[_0x2d42cc(0x1db)][_0x2d42cc(0x2b8)](_0x1e8906,_0x2590d4[_0x2d42cc(0x4cc)]);});}[_0xac088e(0x239)](_0x192b54){const _0x1f83c1=_0xac088e;let _0x3097d1=this['_drawingManagerService'][_0x1f83c1(0x331)](_0x192b54);if((_0x3097d1==null?void 0x0:_0x3097d1[_0x1f83c1(0x37c)])!==o['DrawingTypeEnum'][_0x1f83c1(0x2bf)])return;let _0x121200=this[_0x1f83c1(0x44b)](_0x192b54[_0x1f83c1(0x2e6)]);if(!_0x121200||_0x3097d1[_0x1f83c1(0x39c)]==null)return;let _0x1a8336=(0x0,u[_0x1f83c1(0x2ed)])(_0x192b54),_0x4ded61=_0x121200[_0x1f83c1(0x4cc)][_0x1f83c1(0x4a1)](_0x1a8336);_0x4ded61&&(_0x4ded61[_0x1f83c1(0x47a)](_0x3097d1['srcRect']),_0x4ded61[_0x1f83c1(0x3f0)](_0x3097d1[_0x1f83c1(0x375)]),_0x4ded61[_0x1f83c1(0x4f1)](!0x0));}['_refreshShapeData'](_0x37fa4a){const _0x542a46=_0xac088e;let _0x2a2a88=this['_getSceneByUnitId'](_0x37fa4a['unitId']);if(!_0x2a2a88)return;let _0x104735=(0x0,u['getDrawingShapeKeyByDrawingSearch'])(_0x37fa4a),_0x1d9110=_0x2a2a88[_0x542a46(0x4cc)][_0x542a46(0x4a1)](_0x104735);_0x1d9110&&(this[_0x542a46(0x1db)][_0x542a46(0x2ca)](_0x1d9110),this[_0x542a46(0x1db)][_0x542a46(0x34c)](_0x1d9110,{'unitId':_0x37fa4a[_0x542a46(0x2e6)],'subUnitId':_0x37fa4a[_0x542a46(0x390)],'shapeId':_0x37fa4a[_0x542a46(0x270)]}),_0x1d9110['makeDirty'](!0x0));}[_0xac088e(0x44b)](_0x4931e1){const _0x1ddcd3=_0xac088e;if(_0x4931e1==null)return null;let _0x47f19d=this[_0x1ddcd3(0x2a7)][_0x1ddcd3(0x4bd)](_0x4931e1),_0x22f73c=_0x47f19d==null?void 0x0:_0x47f19d[_0x1ddcd3(0x4cc)];return _0x22f73c==null?null:{'scene':_0x22f73c};}};Z=I([F(0x0,o[_0xac088e(0x2cf)]),F(0x1,l[_0xac088e(0x1f4)]),F(0x2,u['IDrawingManagerService']),F(0x3,(0x0,o[_0xac088e(0x383)])(K))],Z);let Q=class extends o[_0xac088e(0x468)]{constructor(_0x2bc82a=nt,_0x450a6a,_0x4be720,_0x110b0e,_0x4e4fb1){const _0x5aaa71=_0xac088e;super(),this[_0x5aaa71(0x397)]=_0x2bc82a,this['_injector']=_0x450a6a,this[_0x5aaa71(0x483)]=_0x4be720,this[_0x5aaa71(0x3e9)]=_0x110b0e,this[_0x5aaa71(0x2a7)]=_0x4e4fb1;let {menu:_0xf6c7b4,..._0x215b08}=(0x0,o[_0x5aaa71(0x42b)])({},nt,this['_config']);_0xf6c7b4&&this[_0x5aaa71(0x3e9)][_0x5aaa71(0x472)](_0x5aaa71(0x4e5),_0xf6c7b4,{'merge':!0x0}),this['_configService'][_0x5aaa71(0x472)](tt,_0x215b08),[C,B,j,A,N,P][_0x5aaa71(0x3ca)](_0xfa169d=>this[_0x5aaa71(0x38a)](this[_0x5aaa71(0x483)]['registerCommand'](_0xfa169d)));}[_0xac088e(0x2eb)](){const _0x3dc585=_0xac088e;let _0xad886=[[Ot],[kt],[Z],[K],[q],[W],[L],[J],[G],[X]];(0x0,o[_0x3dc585(0x4e0)])(this[_0x3dc585(0x4d9)],_0xad886),this[_0x3dc585(0x4d9)][_0x3dc585(0x314)](Ot);}[_0xac088e(0x3de)](){const _0x29f98c=_0xac088e;this['disposeWithMe'](this[_0x29f98c(0x2a7)][_0x29f98c(0x447)](o['UniverInstanceType'][_0x29f98c(0x2ba)],[W])),(0x0,o[_0x29f98c(0x20f)])(this[_0x29f98c(0x4d9)],[[kt],[Z],[K],[q],[L],[J],[G],[X]]);}};H(Q,_0xac088e(0x348),o[_0xac088e(0x230)][_0xac088e(0x2ba)]),H(Q,'pluginName','DOCS_SHAPE_UI_PLUGIN'),H(Q,'packageName',$e),H(Q,_0xac088e(0x3b8),et),Q=I([(0x0,o[_0xac088e(0x3a2)])(m['UniverLicensePlugin'],s['UniverDocsPlugin'],u['UniverDrawingPlugin'],d['UniverDrawingMobileUIPlugin'],l[_0xac088e(0x22e)],t['UniverDocsMobileUIPlugin'],a[_0xac088e(0x240)],h[_0xac088e(0x47d)],r['UniverDocsShapePlugin'],e[_0xac088e(0x311)]),F(0x1,(0x0,o[_0xac088e(0x383)])(o['Injector'])),F(0x2,o['ICommandService']),F(0x3,o[_0xac088e(0x4a8)]),F(0x4,l[_0xac088e(0x1f4)])],Q);let jt=class extends o[_0xac088e(0x1d9)]{constructor(_0xa8892,_0x4d3b8e){const _0x351b40=_0xac088e;super(),this[_0x351b40(0x2fc)]=_0xa8892,this[_0x351b40(0x2dd)]=_0x4d3b8e,this['_registerIcons'](),this['_registerComponents']();}[_0xac088e(0x294)](){const _0x14abec=_0xac088e;this[_0x14abec(0x2dd)][_0x14abec(0x23c)](_0x14abec(0x2bc))||this[_0x14abec(0x38a)](this[_0x14abec(0x2dd)][_0x14abec(0x38f)]({'ObjectLayersIcon':g[_0x14abec(0x2bc)]})),this[_0x14abec(0x2dd)][_0x14abec(0x23c)](_0x14abec(0x491))||this['disposeWithMe'](this[_0x14abec(0x2dd)][_0x14abec(0x38f)]({'BottomIcon':g['BottomIcon']})),this['_iconManager'][_0x14abec(0x23c)](_0x14abec(0x4e9))||this[_0x14abec(0x38a)](this['_iconManager'][_0x14abec(0x38f)]({'MoveDownIcon':g[_0x14abec(0x4e9)]})),this[_0x14abec(0x2dd)]['has'](_0x14abec(0x45c))||this[_0x14abec(0x38a)](this['_iconManager'][_0x14abec(0x38f)]({'MoveUpIcon':g[_0x14abec(0x45c)]})),this['_iconManager'][_0x14abec(0x23c)](_0x14abec(0x291))||this[_0x14abec(0x38a)](this['_iconManager']['register']({'ShapeFormatSettingIcon':g[_0x14abec(0x291)]})),this[_0x14abec(0x2dd)][_0x14abec(0x23c)](_0x14abec(0x354))||this['disposeWithMe'](this['_iconManager'][_0x14abec(0x38f)]({'TopmostIcon':g[_0x14abec(0x354)]})),this[_0x14abec(0x38a)](this[_0x14abec(0x2dd)]['register'](Et));}['_registerComponents'](){const _0x5fa068=_0xac088e;this[_0x5fa068(0x38a)](this['_componentManager']['register'](w,_t)),this['disposeWithMe'](this[_0x5fa068(0x2fc)]['register'](E,mt)),this[_0x5fa068(0x38a)](this[_0x5fa068(0x2fc)][_0x5fa068(0x38f)](xt,Ct)),this['disposeWithMe'](this[_0x5fa068(0x2fc)][_0x5fa068(0x38f)](me,be)),this[_0x5fa068(0x38a)](this['_componentManager'][_0x5fa068(0x38f)](pe,xe)),this[_0x5fa068(0x38a)](this['_componentManager'][_0x5fa068(0x38f)](he,Se)),this[_0x5fa068(0x38a)](this[_0x5fa068(0x2fc)][_0x5fa068(0x38f)](ge,Ce)),this[_0x5fa068(0x38a)](this[_0x5fa068(0x2fc)][_0x5fa068(0x38f)](_e,we)),this[_0x5fa068(0x38a)](this[_0x5fa068(0x2fc)][_0x5fa068(0x38f)](O,e[_0x5fa068(0x39a)])),this['disposeWithMe'](this[_0x5fa068(0x2fc)]['register'](ee,oe)),this[_0x5fa068(0x38a)](this['_componentManager']['register'](te,ie)),this['_componentManager'][_0x5fa068(0x3f8)](d[_0x5fa068(0x25c)])||this[_0x5fa068(0x38a)](this[_0x5fa068(0x2fc)]['register'](d[_0x5fa068(0x25c)],ae)),this[_0x5fa068(0x38a)](this[_0x5fa068(0x2fc)][_0x5fa068(0x38f)](k,Dt));}};jt=I([F(0x0,(0x0,o['Inject'])(n['ComponentManager'])),F(0x1,(0x0,o[_0xac088e(0x383)])(n[_0xac088e(0x2f4)]))],jt);let Mt=class extends o['Disposable']{constructor(_0x13cb63,_0x152928,_0x4a8368,_0x38bc98,_0x3c8f7a,_0x7c30d3,_0x1cbfa7,_0x38f5b7,_0xb174d2){const _0x15b1a3=_0xac088e;super();let _0x26192c=_0x57af43=>{const _0x120e93=_0xa70b;let _0x4fc2d2=_0x7c30d3[_0x120e93(0x2cc)](_0x57af43[_0x120e93(0x2e6)],o['UniverInstanceType'][_0x120e93(0x2ba)]),_0x3dbb42=_0x4fc2d2?(0x0,s[_0x120e93(0x2b6)])(_0x4fc2d2,_0x57af43[_0x120e93(0x25f)]):'';return!!_0x4fc2d2&&(0x0,s[_0x120e93(0x376)])(_0x38f5b7,_0x57af43[_0x120e93(0x2e6)],[(0x0,s[_0x120e93(0x1fe)])(_0x3dbb42,_0x120e93(0x1e4),_0x57af43['shapeId']),...(0x0,s[_0x120e93(0x2b7)])(_0x4fc2d2,_0x3dbb42,_0x120e93(0x1e4),_0x57af43['shapeId'])]);},_0x40fc74=_0x1480dc=>_0x1480dc['shapeId']&&_0x26192c(_0x1480dc)?_0x4a8368[_0x15b1a3(0x4d8)](_0x1480dc['unitId'],_0x1480dc[_0x15b1a3(0x25f)])??null:null,_0x1369d0=()=>{const _0x1fe81d=_0x15b1a3;let _0x1b0eb3=_0x3c8f7a[_0x1fe81d(0x2f0)](),_0x393572=_0x1b0eb3[_0x1fe81d(0x1ee)]===0x1?_0x1b0eb3[0x0]:null;return(_0x393572==null?void 0x0:_0x393572[_0x1fe81d(0x37c)])===o[_0x1fe81d(0x440)][_0x1fe81d(0x2bf)]&&_0x393572[_0x1fe81d(0x2e6)]===_0x13cb63['unitId']?{'unitId':_0x393572[_0x1fe81d(0x2e6)],'subUnitId':_0x393572['subUnitId'],'shapeId':_0x393572[_0x1fe81d(0x270)]}:null;};this[_0x15b1a3(0x38a)]((0x0,e[_0x15b1a3(0x2f2)])(_0x13cb63,_0x152928,{'changes$':(0x0,p['merge'])(_0x3c8f7a[_0x15b1a3(0x22d)],_0x38bc98[_0x15b1a3(0x2f7)],_0x38f5b7[_0x15b1a3(0x4fe)]),'isActive':()=>{const _0x573fd8=_0x15b1a3;var _0x24add5;return((_0x24add5=_0x7c30d3[_0x573fd8(0x273)]())==null?void 0x0:_0x24add5[_0x573fd8(0x389)]())===_0x13cb63[_0x573fd8(0x2e6)]&&!_0x1cbfa7['getContextValue'](o['FOCUSING_SHAPE_TEXT_EDITOR'])&&_0x3c8f7a[_0x573fd8(0x2f0)]()[_0x573fd8(0x3f9)](_0x17444d=>_0x17444d[_0x573fd8(0x2e6)]===_0x13cb63[_0x573fd8(0x2e6)]);},'getSelectedTarget':_0x1369d0,'getSource':()=>{let _0x43fb37=_0x1369d0();return _0x43fb37?_0x40fc74(_0x43fb37):null;},'getTarget':_0x2747c0=>{const _0xd4810c=_0x15b1a3;let _0x29e2ae=_0x13cb63['scene'][_0xd4810c(0x41b)](new l[(_0xd4810c(0x3c6))](_0x2747c0[_0xd4810c(0x36d)],_0x2747c0['offsetY']));if(!(_0x29e2ae instanceof U))return null;let _0x4bc400={'unitId':_0x13cb63[_0xd4810c(0x2e6)],'subUnitId':_0x13cb63[_0xd4810c(0x2e6)],'shapeId':_0x29e2ae[_0xd4810c(0x25f)]};return _0x26192c(_0x4bc400)?_0x4bc400:null;},'getShape':_0x40fc74,'update':(_0xd72828,_0x490555,_0x555c50)=>_0xb174d2[_0x15b1a3(0x290)](r[_0x15b1a3(0x218)]['id'],{..._0xd72828,'shapeData':_0x555c50,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x490555}})}));}};Mt=I([F(0x1,(0x0,o[_0xac088e(0x383)])(n[_0xac088e(0x482)])),F(0x2,(0x0,o['Inject'])(r['DocsShapeService'])),F(0x3,(0x0,o[_0xac088e(0x383)])(G)),F(0x4,u['IDrawingManagerService']),F(0x5,o['IUniverInstanceService']),F(0x6,o[_0xac088e(0x486)]),F(0x7,o[_0xac088e(0x23e)]),F(0x8,o[_0xac088e(0x2cf)])],Mt);function Nt(_0x5ecbd3,_0x55b4c7){const _0xa21d5e=_0xac088e;let _0x1d4ddd=_0x5ecbd3;for(;_0x1d4ddd;){if(_0x55b4c7(_0x1d4ddd))return _0x1d4ddd;_0x1d4ddd=typeof _0x1d4ddd[_0xa21d5e(0x4e6)]==_0xa21d5e(0x481)?_0x1d4ddd[_0xa21d5e(0x4e6)]():null;}return null;}function Pt(_0x3b069d){return Nt(_0x3b069d,_0x1b1e0e=>_0x1b1e0e instanceof U);}function Ft(_0x279d56){const _0x19f769=_0xac088e;return(_0x279d56==null?void 0x0:_0x279d56[_0x19f769(0x3f7)])==null;}let It=class extends o[_0xac088e(0x1d9)]{constructor(_0x453836,_0x2f1a7c,_0x3e4f23,_0x5b169b,_0x154dcd){const _0x5992c8=_0xac088e;super(),this[_0x5992c8(0x3dd)]=_0x453836,this['_shapeTextEditingService']=_0x2f1a7c,this[_0x5992c8(0x31f)]=_0x3e4f23,this[_0x5992c8(0x4b8)]=_0x5b169b,this[_0x5992c8(0x446)]=_0x154dcd,H(this,_0x5992c8(0x4dc),null),H(this,_0x5992c8(0x2e5),null),this['_initEvents'](),this[_0x5992c8(0x412)](),this[_0x5992c8(0x422)]();}[_0xac088e(0x45f)](){const _0x7ec0b2=_0xac088e;this[_0x7ec0b2(0x2d4)](),super[_0x7ec0b2(0x45f)]();}['_initEvents'](){const _0xef39e2=_0xac088e;let {scene:_0xfc6833}=this[_0xef39e2(0x3dd)];this[_0xef39e2(0x38a)](_0xfc6833[_0xef39e2(0x275)][_0xef39e2(0x20d)]((_0x13bcb7,_0x21bf88)=>{const _0x3dac83=_0xef39e2;let {offsetX:_0x4d0df5,offsetY:_0x5eb888}=_0x13bcb7,_0x447fd8=l[_0x3dac83(0x3c6)][_0x3dac83(0x466)]([_0x4d0df5,_0x5eb888]),_0xb8b87f=Pt(_0xfc6833[_0x3dac83(0x41b)](_0x447fd8))??this[_0x3dac83(0x3b7)](_0x447fd8);if(_0xb8b87f){_0x21bf88[_0x3dac83(0x306)]();let _0x3bb2c6=this[_0x3dac83(0x446)]['getShapeModel'](_0xb8b87f['unitId'],_0xb8b87f[_0x3dac83(0x390)],_0xb8b87f['shapeId']);if(!_0x3bb2c6||(0x0,i[_0x3dac83(0x471)])(_0x3bb2c6['getShapeType']())||!Ft(_0x3bb2c6[_0x3dac83(0x296)]()))return;this[_0x3dac83(0x2a5)][_0x3dac83(0x49b)]({'visible':!0x0,'unitId':_0xb8b87f[_0x3dac83(0x2e6)],'subUnitId':_0xb8b87f[_0x3dac83(0x390)],'shapeId':_0xb8b87f[_0x3dac83(0x25f)],'shapeKey':_0xb8b87f[_0x3dac83(0x299)]});}}));}[_0xac088e(0x3b7)](_0x13b389){const _0x467bfd=_0xac088e;let {scene:_0x1f8fa4}=this[_0x467bfd(0x3dd)];return this[_0x467bfd(0x31f)][_0x467bfd(0x2f0)]()['map'](_0xeb133c=>_0x1f8fa4[_0x467bfd(0x4a1)]((0x0,u[_0x467bfd(0x2ed)])(_0xeb133c)))['find'](_0x50ba9f=>_0x50ba9f instanceof U&&_0x50ba9f[_0x467bfd(0x206)](_0x13b389))??null;}[_0xac088e(0x412)](){const _0x41bce4=_0xac088e;this[_0x41bce4(0x38a)](this[_0x41bce4(0x31f)][_0x41bce4(0x22d)][_0x41bce4(0x43a)](_0x13996a=>{const _0x5afd50=_0x41bce4;if(_0x13996a[_0x5afd50(0x1ee)]===0x1){let _0x345127=_0x13996a[0x0],_0x2f21a7=this[_0x5afd50(0x31f)][_0x5afd50(0x331)](_0x345127);if((_0x2f21a7==null?void 0x0:_0x2f21a7[_0x5afd50(0x37c)])===o[_0x5afd50(0x440)][_0x5afd50(0x2bf)]){let _0x3d86ed=this[_0x5afd50(0x2a5)][_0x5afd50(0x40d)]();if((_0x3d86ed==null?void 0x0:_0x3d86ed['shapeId'])===_0x345127[_0x5afd50(0x270)]&&_0x3d86ed[_0x5afd50(0x416)])return;(0x0,i[_0x5afd50(0x471)])(this['_docsShapeService'][_0x5afd50(0x26d)](_0x345127[_0x5afd50(0x2e6)],_0x345127[_0x5afd50(0x390)],_0x345127['drawingId']))&&this[_0x5afd50(0x2a5)][_0x5afd50(0x49b)](null);}else this[_0x5afd50(0x2a5)]['completeEditing']();}else this[_0x5afd50(0x2a5)]['completeEditing']();})),this[_0x41bce4(0x38a)](this[_0x41bce4(0x31f)][_0x41bce4(0x356)]['subscribe'](_0x26b399=>{const _0x32b2f1=_0x41bce4;let _0x4a2dc1=this['_shapeTextEditingService'][_0x32b2f1(0x40d)]();_0x4a2dc1&&_0x26b399[_0x32b2f1(0x3f9)](_0x18fb6a=>_0x18fb6a[_0x32b2f1(0x270)]===_0x4a2dc1['shapeId'])&&this[_0x32b2f1(0x2a5)][_0x32b2f1(0x49b)](null);}));}[_0xac088e(0x422)](){const _0x31f5e0=_0xac088e;this[_0x31f5e0(0x38a)](this['_shapeTextEditingService'][_0x31f5e0(0x2f7)]['subscribe'](_0x25f7ad=>{const _0x4d90b2=_0x31f5e0;(_0x25f7ad==null?void 0x0:_0x25f7ad['visible'])===!0x0&&_0x25f7ad['unitId']===this[_0x4d90b2(0x3dd)][_0x4d90b2(0x2e6)]?this['_layoutInteraction']??=this['_docLayoutInteractionService'][_0x4d90b2(0x387)]():this['_endLayoutInteraction']();let {scene:_0x4bb899}=this[_0x4d90b2(0x3dd)];if(this[_0x4d90b2(0x4dc)]){let _0x3ca72c=_0x4bb899[_0x4d90b2(0x4a1)](this[_0x4d90b2(0x4dc)]);_0x3ca72c&&_0x3ca72c[_0x4d90b2(0x49b)](!0x1);}if(_0x25f7ad){let _0x45c5bb=!!_0x25f7ad[_0x4d90b2(0x416)],_0x419b00=_0x4bb899[_0x4d90b2(0x4a1)](_0x25f7ad[_0x4d90b2(0x22c)]);_0x419b00&&(_0x419b00[_0x4d90b2(0x49b)](_0x45c5bb),this[_0x4d90b2(0x4dc)]=_0x25f7ad['shapeKey']);}else this['_lastEditingShapeKey']=null;}));}[_0xac088e(0x2d4)](){const _0x411a51=_0xac088e;var _0x34f205;(_0x34f205=this[_0x411a51(0x2e5)])==null||_0x34f205[_0x411a51(0x45f)](),this['_layoutInteraction']=null;}};It=I([F(0x1,(0x0,o['Inject'])(G)),F(0x2,u[_0xac088e(0x4ba)]),F(0x3,(0x0,o[_0xac088e(0x383)])(t['DocLayoutInteractionService'])),F(0x4,(0x0,o[_0xac088e(0x383)])(r['DocsShapeService']))],It);let Lt=class extends e[_0xac088e(0x365)]{constructor(_0x542869,_0x4103ac,_0x4b0dec,_0x1d4910,_0x5d426b,_0x49305c,_0x12df86,_0x2b480a,_0x1d0b4b,_0x1cc65c){super(_0x542869,_0x4103ac,_0x4b0dec,_0x1d4910,_0x5d426b,_0x49305c,_0x12df86,_0x2b480a,_0x1d0b4b,_0x1cc65c,{'componentKey':O,'editorUnitId':D});}};Lt=I([F(0x1,(0x0,o[_0xac088e(0x383)])(s[_0xac088e(0x2db)])),F(0x2,(0x0,o[_0xac088e(0x383)])(t[_0xac088e(0x4c6)])),F(0x3,(0x0,o[_0xac088e(0x383)])(t[_0xac088e(0x4c3)])),F(0x4,o[_0xac088e(0x2cf)]),F(0x5,(0x0,o[_0xac088e(0x383)])(t['DocEventManagerService'])),F(0x6,(0x0,o[_0xac088e(0x383)])(e['ShapeTextHyperLinkPopupService'])),F(0x7,(0x0,o[_0xac088e(0x383)])(s[_0xac088e(0x279)])),F(0x8,(0x0,o[_0xac088e(0x383)])(t[_0xac088e(0x3aa)])),F(0x9,(0x0,o[_0xac088e(0x383)])(G))],Lt);let Rt=class extends e[_0xac088e(0x32e)]{constructor(_0x2809db,_0x4b454e,_0xa0b5d7,_0x59ccb9,_0x42053b){const _0x23b183=_0xac088e;super(_0x2809db,_0x4b454e,{'editing$':_0xa0b5d7[_0x23b183(0x2f7)],'resolve':_0xc4ef0d=>{const _0x4cd5d6=_0x23b183;var _0x48e3a9;let _0xf19f60=new l[(_0x4cd5d6(0x3c6))](_0xc4ef0d[_0x4cd5d6(0x36d)],_0xc4ef0d[_0x4cd5d6(0x25d)]),_0x57bdd9=((_0x48e3a9=_0x2809db[_0x4cd5d6(0x4cc)][_0x4cd5d6(0x4ca)](_0xf19f60))==null?void 0x0:_0x48e3a9['transformVector2SceneCoord'](_0xf19f60))??_0xf19f60,_0x313543=(0x0,e[_0x4cd5d6(0x395)])(_0x2809db[_0x4cd5d6(0x4cc)][_0x4cd5d6(0x41b)](_0xf19f60)??null,_0x57bdd9);if(!(_0x313543 instanceof U))return null;let _0x5aa630=_0x313543[_0x4cd5d6(0x287)](_0x57bdd9);if(!_0x5aa630)return null;let _0x16f08c=_0x313543,_0x44e3bd={'componentKey':e[_0x4cd5d6(0x2b9)][_0x4cd5d6(0x507)],'direction':_0x4cd5d6(0x238),'offset':[0x0,0xa],'onClickOutside':()=>_0x4b454e[_0x4cd5d6(0x237)]()};return{'object':_0x313543,'info':{..._0x5aa630,'unitId':_0x313543[_0x4cd5d6(0x2e6)],'subUnitId':_0x313543['subUnitId'],'shapeKey':_0x313543[_0x4cd5d6(0x299)],'readonly':!0x0,'copyable':(0x0,s[_0x4cd5d6(0x438)])(_0x42053b,_0x313543['unitId'],_0x313543[_0x4cd5d6(0x2e6)],y['UnitAction'][_0x4cd5d6(0x4b5)])},'attachPopup':()=>_0x59ccb9[_0x4cd5d6(0x33e)](_0x16f08c,_0x44e3bd,_0x16f08c[_0x4cd5d6(0x2e6)])};}});}};Rt=I([F(0x1,(0x0,o[_0xac088e(0x383)])(e[_0xac088e(0x4dd)])),F(0x2,(0x0,o[_0xac088e(0x383)])(G)),F(0x3,(0x0,o['Inject'])(t[_0xac088e(0x4c6)])),F(0x4,o['IPermissionService'])],Rt);let zt=class extends o['Disposable']{constructor(_0x3bc92f,_0x33c387,_0x5f9b3e,_0x469771,_0x5be8c9,_0x91664d,_0x5bb4a7,_0x3fac82,_0x4bddaa,_0x585664,_0x4e652d,_0x53305d){const _0x1246a7=_0xac088e;super(),this[_0x1246a7(0x278)]=_0x3bc92f,this[_0x1246a7(0x2f1)]=_0x33c387,this['_menuManagerService']=_0x5f9b3e,this[_0x1246a7(0x446)]=_0x469771,this[_0x1246a7(0x4b3)]=_0x5be8c9,this[_0x1246a7(0x483)]=_0x91664d,this[_0x1246a7(0x31f)]=_0x5bb4a7,this[_0x1246a7(0x430)]=_0x3fac82,this[_0x1246a7(0x2a7)]=_0x4bddaa,this['_contextService']=_0x585664,this[_0x1246a7(0x2a5)]=_0x4e652d,this[_0x1246a7(0x462)]=_0x53305d,H(this,_0x1246a7(0x2d1),null),H(this,_0x1246a7(0x362),null),H(this,_0x1246a7(0x402),!0x1),H(this,_0x1246a7(0x3e1),0x0),H(this,'_disposePopupsByUnit',new Map()),H(this,'_popupTargetKeys',new Map()),this[_0x1246a7(0x223)](),this[_0x1246a7(0x38a)](this[_0x1246a7(0x278)][_0x1246a7(0x2fa)](o[_0x1246a7(0x230)][_0x1246a7(0x2ba)])['subscribe'](_0x45ef7b=>{const _0x4efd2c=_0x1246a7;if(!_0x45ef7b){var _0x515be8;(_0x515be8=this[_0x4efd2c(0x2d1)])==null||_0x515be8['dispose']();}})),this['_registerOperations'](),this[_0x1246a7(0x38a)](this[_0x1246a7(0x31f)]['remove$'][_0x1246a7(0x43a)](_0x45a6ba=>{const _0x4c110d=_0x1246a7;for(let _0x1cff7c of _0x45a6ba){let _0x36ad7e=_0x1cff7c['unitId']+':'+_0x1cff7c[_0x4c110d(0x390)]+':'+_0x1cff7c['drawingId'];for(let [_0x199c04,_0x353369]of this[_0x4c110d(0x31a)])_0x353369===_0x36ad7e&&this[_0x4c110d(0x21f)](_0x199c04,!0x0);}})),this['disposeWithMe']((0x0,e[_0x1246a7(0x3a8)])(this[_0x1246a7(0x2a7)],o[_0x1246a7(0x230)][_0x1246a7(0x2ba)],_0x1a0e56=>this[_0x1246a7(0x2bb)](_0x1a0e56))),this['disposeWithMe'](this['_shapeTextEditingService']['editingParams$'][_0x1246a7(0x43a)](_0x552e04=>{const _0x1de5e0=_0x1246a7;_0x552e04&&this[_0x1de5e0(0x21f)](void 0x0,!0x0);})),this[_0x1246a7(0x38a)](this[_0x1246a7(0x462)][_0x1246a7(0x4fe)][_0x1246a7(0x43a)](()=>{const _0x5c20d6=_0x1246a7;this[_0x5c20d6(0x31f)][_0x5c20d6(0x2f0)]()[_0x5c20d6(0x3f9)](_0xc2255e=>_0xc2255e[_0x5c20d6(0x37c)]===o['DrawingTypeEnum'][_0x5c20d6(0x2bf)]&&this[_0x5c20d6(0x278)][_0x5c20d6(0x24e)](_0xc2255e['unitId'])===o['UniverInstanceType'][_0x5c20d6(0x2ba)]&&!this[_0x5c20d6(0x2a6)](_0xc2255e[_0x5c20d6(0x2e6)],_0xc2255e[_0x5c20d6(0x270)]))&&(this['_clearPopups'](void 0x0,!0x0),this[_0x5c20d6(0x3ee)]());}));}[_0xac088e(0x223)](){const _0xaaab27=_0xac088e;this[_0xaaab27(0x1da)][_0xaaab27(0x284)](Qe);}['getShapePopupMenus'](_0x2c8ac8,_0xd1a658,_0x1a9a9b,_0x1621a3){const _0x56b772=_0xac088e;return[{'label':'docs-shape-ui.openPanel','index':0x0,'commandId':j['id'],'commandParams':{'unitId':_0x2c8ac8,'subUnitId':_0xd1a658,'drawingId':_0x1a9a9b},'disable':_0x1621a3===o['DrawingTypeEnum'][_0x56b772(0x3ac)]},{'label':_0x56b772(0x2a9),'index':0x1,'commandId':c['RemoveDocDrawingCommand']['id'],'commandParams':{'unitId':_0x2c8ac8,'drawings':[{'unitId':_0x2c8ac8,'subUnitId':_0xd1a658,'drawingId':_0x1a9a9b}]},'disable':!0x1},{'label':_0x56b772(0x2ae),'index':0x2,'commandId':B['id'],'commandParams':{'unitId':_0x2c8ac8,'subUnitId':_0xd1a658,'drawingId':_0x1a9a9b},'disable':!0x1}];}[_0xac088e(0x2f6)](_0x2b0a32,_0x5ea5c5,_0x11432e){const _0x371445=_0xac088e;let _0x5f469f=this[_0x371445(0x446)][_0x371445(0x3c2)](_0x2b0a32,_0x5ea5c5,_0x11432e),_0x3d2a72=this['_docsShapeService'][_0x371445(0x4d8)](_0x2b0a32,_0x5ea5c5,_0x11432e);return _0x5f469f!==void 0x0&&_0x3d2a72!==void 0x0?{'shapeData':_0x3d2a72,'shapeId':_0x11432e,'shapeType':_0x5f469f,'unitId':_0x2b0a32,'subUnitId':_0x5ea5c5,'version':this[_0x371445(0x3e1)],'disableShapeOption':!0x1}:null;}['_clearPopups'](_0xd240b3,_0x3ee204=!0x1){const _0x520bc2=_0xac088e;if(_0xd240b3==null){[...this[_0x520bc2(0x268)]['keys']()][_0x520bc2(0x3ca)](_0x589a70=>this[_0x520bc2(0x21f)](_0x589a70,_0x3ee204));return;}let _0x281a48=this['_disposePopupsByUnit'][_0x520bc2(0x314)](_0xd240b3);if(_0x281a48){for(let _0x40ed56=_0x281a48[_0x520bc2(0x1ee)]-0x1;_0x40ed56>=0x0;--_0x40ed56){let _0x501702=_0x281a48[_0x40ed56];(_0x3ee204||_0x501702[_0x520bc2(0x313)]())&&(_0x501702[_0x520bc2(0x45f)](),_0x281a48[_0x520bc2(0x363)](_0x40ed56,0x1));}_0x281a48['length']===0x0&&(this[_0x520bc2(0x268)][_0x520bc2(0x488)](_0xd240b3),this[_0x520bc2(0x31a)]['delete'](_0xd240b3));}}[_0xac088e(0x4e8)](_0x203c8a){const _0x5a1612=_0xac088e;let _0x5df69=this[_0x5a1612(0x268)][_0x5a1612(0x314)](_0x203c8a);if(_0x5df69)return _0x5df69;let _0x2d1632=[];return this[_0x5a1612(0x268)]['set'](_0x203c8a,_0x2d1632),_0x2d1632;}[_0xac088e(0x2bb)](_0x294735){const _0x4eace1=_0xac088e;var _0x4922c4;let _0x31f62d=new o[(_0x4eace1(0x3f3))](),_0x54319c=(_0x4922c4=this[_0x4eace1(0x2a7)][_0x4eace1(0x254)](o['UniverInstanceType'][_0x4eace1(0x2ba)])['find'](_0x5404e4=>_0x5404e4[_0x4eace1(0x4cc)]['getTransformerByCreate']()===_0x294735))==null?void 0x0:_0x4922c4[_0x4eace1(0x2e6)];return _0x54319c&&(_0x31f62d[_0x4eace1(0x3b0)](_0x294735[_0x4eace1(0x385)][_0x4eace1(0x43a)](()=>this[_0x4eace1(0x2fb)](_0x294735,_0x54319c))),_0x31f62d['add'](_0x294735[_0x4eace1(0x455)]['subscribe'](()=>{const _0x38f4b2=_0x4eace1;this[_0x38f4b2(0x21f)](_0x54319c),queueMicrotask(()=>{const _0x536ccd=_0x38f4b2;_0x294735[_0x536ccd(0x3a3)]()['size']>0x0||!this[_0x536ccd(0x31f)][_0x536ccd(0x2f0)]()['some'](_0x1f2e8f=>_0x1f2e8f[_0x536ccd(0x2e6)]===_0x54319c)||(this[_0x536ccd(0x444)][_0x536ccd(0x283)](o[_0x536ccd(0x24d)],!0x1),this[_0x536ccd(0x31f)]['focusDrawing'](null));});})),_0x31f62d['add'](_0x294735[_0x4eace1(0x43f)]['subscribe'](()=>{const _0x4b21e6=_0x4eace1;this[_0x4b21e6(0x21f)](_0x54319c,!0x0);}))),_0x31f62d;}['_handleCreateControl'](_0xaef75,_0xd09541){const _0x44ef22=_0xac088e;let _0x17b9c9=_0xaef75[_0x44ef22(0x3a3)]();if(this[_0x44ef22(0x402)]){this['_clearPopups'](_0xd09541,!0x0);return;}if(_0x17b9c9[_0x44ef22(0x40c)]>0x1){this[_0x44ef22(0x21f)](_0xd09541);return;}let _0x115c39=_0x17b9c9[_0x44ef22(0x37f)]()[_0x44ef22(0x1f1)]()[_0x44ef22(0x201)];if(!_0x115c39){this['_clearPopups'](_0xd09541);return;}let _0x2c9131=this[_0x44ef22(0x31f)][_0x44ef22(0x496)](_0x115c39[_0x44ef22(0x299)]);if(!_0x2c9131||_0x2c9131[_0x44ef22(0x37c)]!==o[_0x44ef22(0x440)][_0x44ef22(0x2bf)]){this[_0x44ef22(0x21f)](_0xd09541);return;}let {unitId:_0x3a5b1d,subUnitId:_0x15b9f1,drawingId:_0x1dda84,drawingType:_0x53dacd}=_0x2c9131;if(!this['_canEditShape'](_0x3a5b1d,_0x1dda84)){this['_clearPopups'](_0xd09541,!0x0);return;}let _0x26f09a=this[_0x44ef22(0x2f6)](_0x3a5b1d,_0x15b9f1,_0x1dda84);if(!_0x26f09a){this['_clearPopups'](_0xd09541);return;}let _0x5d4683=this[_0x44ef22(0x268)][_0x44ef22(0x314)](_0xd09541),_0xdfc601=_0x3a5b1d+':'+_0x15b9f1+':'+_0x1dda84;if(this[_0x44ef22(0x31a)][_0x44ef22(0x314)](_0xd09541)===_0xdfc601&&_0x5d4683&&_0x5d4683[_0x44ef22(0x1ee)]>0x0)return;this[_0x44ef22(0x21f)](_0xd09541);let _0x43df7d=this[_0x44ef22(0x2a7)][_0x44ef22(0x4bd)](_0x3a5b1d),_0x4f472a=((_0x43df7d==null?void 0x0:_0x43df7d[_0x44ef22(0x4fa)])===!0x1?_0x43df7d[_0x44ef22(0x3e6)](t['DocCanvasPopManagerService']):this['_docCanvasPopManagerService'])[_0x44ef22(0x33e)](_0x115c39,this[_0x44ef22(0x37a)](_0x26f09a,_0x53dacd),_0x3a5b1d);this['disposeWithMe'](_0x4f472a),this[_0x44ef22(0x4e8)](_0xd09541)[_0x44ef22(0x474)](_0x4f472a),this['_popupTargetKeys'][_0x44ef22(0x373)](_0xd09541,_0xdfc601),this['_drawingManagerService'][_0x44ef22(0x2f0)]()[_0x44ef22(0x3f9)](_0x2dc3fe=>_0x2dc3fe[_0x44ef22(0x2e6)]===_0x3a5b1d&&_0x2dc3fe['subUnitId']===_0x15b9f1&&_0x2dc3fe['drawingId']===_0x1dda84)||this[_0x44ef22(0x31f)][_0x44ef22(0x2c7)]([{'unitId':_0x3a5b1d,'subUnitId':_0x15b9f1,'drawingId':_0x1dda84}]);}[_0xac088e(0x37a)](_0x402e7e,_0x4a6a3e){const _0x2def86=_0xac088e;return{'componentKey':xt,'requiresStableLayout':!0x1,'direction':_0x2def86(0x4af),'offset':[0x0,e['SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET']],'extraProps':{'unitId':_0x402e7e[_0x2def86(0x2e6)],'subUnitId':_0x402e7e[_0x2def86(0x390)],'drawingId':_0x402e7e[_0x2def86(0x25f)],'drawingType':_0x4a6a3e,'shapeType':_0x402e7e[_0x2def86(0x492)],'shapeData':_0x402e7e[_0x2def86(0x485)]}};}[_0xac088e(0x2a6)](_0x134a9c,_0x397ca1){const _0x56e30e=_0xac088e;let _0x492382=this[_0x56e30e(0x278)][_0x56e30e(0x2cc)](_0x134a9c,o['UniverInstanceType'][_0x56e30e(0x2ba)]);if(!_0x492382)return!0x1;let _0x474a07=(0x0,s['getDocumentDrawingSegmentId'])(_0x492382,_0x397ca1);return(0x0,s[_0x56e30e(0x376)])(this[_0x56e30e(0x462)],_0x134a9c,[...(0x0,s['getDocumentEntityParentPermissionObjectIds'])(_0x492382,_0x474a07,_0x56e30e(0x1e4),_0x397ca1),(0x0,s[_0x56e30e(0x1fe)])(_0x474a07,_0x56e30e(0x1e4),_0x397ca1)]);}['_registerOperations'](){const _0x535bb2=_0xac088e;this[_0x535bb2(0x38a)](this['_commandService'][_0x535bb2(0x25e)](_0x3ddc95=>{const _0x10741d=_0x535bb2;if(_0x3ddc95['id']===j['id']){let {unitId:_0x182eb8,subUnitId:_0x47c08e,drawingId:_0xed68a9}=_0x3ddc95['params'];this[_0x10741d(0x3e1)]+=0x1,this[_0x10741d(0x362)]=this['_getShapeInfo'](_0x182eb8,_0x47c08e,_0xed68a9),this[_0x10741d(0x21f)](void 0x0,!0x0),this['_openShapeEditPanel']();}if(_0x3ddc95['id']===B['id']&&(this[_0x10741d(0x362)]=null,this[_0x10741d(0x3ee)]()),_0x3ddc95['id']===r['UpdateDocShapeDataMutation']['id']){let {unitId:_0x1e5ee7,shapeId:_0x13214b}=_0x3ddc95[_0x10741d(0x359)];if(this[_0x10741d(0x362)]&&this[_0x10741d(0x362)]['shapeId']===_0x13214b){let _0x229caa=this[_0x10741d(0x2f6)](_0x1e5ee7,this['_activeShapeInfo']['subUnitId'],_0x13214b);_0x229caa&&(this[_0x10741d(0x3e1)]+=0x1,_0x229caa[_0x10741d(0x3b8)]=this['_shapeEditPanelVersion'],this[_0x10741d(0x362)]=_0x229caa,this['_isOpenedShapeEditPanel']&&this[_0x10741d(0x227)]());}}})),this[_0x535bb2(0x38a)](this[_0x535bb2(0x31f)][_0x535bb2(0x22d)][_0x535bb2(0x43a)](_0x139954=>{const _0xf624da=_0x535bb2;if(this[_0xf624da(0x402)]===!0x1)return;if(_0x139954[_0xf624da(0x1ee)]===0x0){this[_0xf624da(0x362)]=null,this[_0xf624da(0x3ee)]();return;}if(_0x139954[_0xf624da(0x1ee)]===0x1&&_0x139954[0x0]['drawingType']===o['DrawingTypeEnum']['DRAWING_SHAPE']&&(this[_0xf624da(0x3e1)]+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x139954[0x0]['unitId'],_0x139954[0x0][_0xf624da(0x390)],_0x139954[0x0]['drawingId']),this['_activeShapeInfo'])){this[_0xf624da(0x227)]();return;}let _0x5aa8bb=_0x139954['filter'](_0x5abc54=>_0x5abc54[_0xf624da(0x37c)]===o[_0xf624da(0x440)][_0xf624da(0x2bf)]);if(_0x139954[_0xf624da(0x1ee)]>0x1&&_0x5aa8bb[_0xf624da(0x1ee)]===_0x139954[_0xf624da(0x1ee)]){if(this[_0xf624da(0x3e1)]+=0x1,this[_0xf624da(0x362)]=this[_0xf624da(0x2f6)](_0x139954[0x0]['unitId'],_0x139954[0x0]['subUnitId'],_0x139954[0x0][_0xf624da(0x270)]),this[_0xf624da(0x362)]){this['_openShapeEditPanel']();return;}}else{if(this[_0xf624da(0x3e1)]+=0x1,this[_0xf624da(0x362)]=this[_0xf624da(0x2f6)](_0x139954[0x0]['unitId'],_0x139954[0x0][_0xf624da(0x390)],_0x139954[0x0][_0xf624da(0x270)]),this[_0xf624da(0x362)]){this[_0xf624da(0x362)]['disableShapeOption']=!0x0,this[_0xf624da(0x227)]();return;}}this['_closeShapeEditPanel']();}));}[_0xac088e(0x227)](){const _0x4d8b7=_0xac088e;this['_activeShapeInfo']&&(this[_0x4d8b7(0x2d1)]=this[_0x4d8b7(0x2f1)][_0x4d8b7(0x487)]({'id':w,'header':{'title':this[_0x4d8b7(0x4b3)]['t'](_0x4d8b7(0x394))},'width':0x184,'children':{'label':w,...this['_activeShapeInfo']},'onClose':()=>{const _0x10e109=_0x4d8b7;this[_0x10e109(0x31f)]['focusDrawing'](null),this['_contextService'][_0x10e109(0x283)](o['FOCUSING_COMMON_DRAWINGS'],!0x1),this[_0x10e109(0x2d1)]=null;}}),this[_0x4d8b7(0x402)]=!0x0);}[_0xac088e(0x3ee)](){const _0x349883=_0xac088e;this[_0x349883(0x402)]=!0x1,this[_0x349883(0x2f1)][_0x349883(0x411)](w),this[_0x349883(0x2d1)]=null,this[_0x349883(0x444)][_0x349883(0x283)](o[_0x349883(0x24d)],!0x1),this[_0x349883(0x31f)][_0x349883(0x2c7)](null);}};zt=I([F(0x0,o[_0xac088e(0x257)]),F(0x1,(0x0,o[_0xac088e(0x383)])(n[_0xac088e(0x309)])),F(0x2,n[_0xac088e(0x220)]),F(0x3,(0x0,o['Inject'])(r[_0xac088e(0x326)])),F(0x4,(0x0,o[_0xac088e(0x383)])(o[_0xac088e(0x2e2)])),F(0x5,o[_0xac088e(0x2cf)]),F(0x6,u[_0xac088e(0x4ba)]),F(0x7,(0x0,o[_0xac088e(0x383)])(t['DocCanvasPopManagerService'])),F(0x8,l[_0xac088e(0x1f4)]),F(0x9,o[_0xac088e(0x486)]),F(0xa,(0x0,o[_0xac088e(0x383)])(G)),F(0xb,o[_0xac088e(0x23e)])],zt);let Bt=class extends o['Disposable']{constructor(_0x9d874e,_0x29235f){const _0x190be8=_0xac088e;super(),this[_0x190be8(0x446)]=_0x9d874e,this[_0x190be8(0x4b3)]=_0x29235f,this[_0x190be8(0x38a)]((0x0,o['toDisposable'])((0x0,l[_0x190be8(0x4d7)])((_0x4f290a,_0xcf6387,_0x5ab2a7)=>this[_0x190be8(0x203)](_0x4f290a,_0xcf6387,_0x5ab2a7))));}[_0xac088e(0x203)](_0x337009,_0x5af14b,_0x4d6b1d){const _0x3a20e4=_0xac088e;let _0x52031c=this[_0x3a20e4(0x446)][_0x3a20e4(0x3a7)](_0x337009,_0x5af14b);if(!_0x52031c)return null;let _0x35653a=_0x52031c[_0x3a20e4(0x296)](),_0x4ad631=(0x0,i[_0x3a20e4(0x3a6)])(_0x35653a),_0xad8858=_0x35653a[_0x3a20e4(0x4bb)];if(!_0xad8858||_0x4ad631[_0x3a20e4(0x2be)]!==i[_0x3a20e4(0x3fd)][_0x3a20e4(0x300)])return null;let _0x361e03=_0x4d6b1d[_0x3a20e4(0x351)],_0x8e7d54=_0x4d6b1d['fallbackHeight'];_0x52031c[_0x3a20e4(0x3c4)]({'width':_0x361e03,'height':_0x8e7d54});let _0x56a938=_0x52031c[_0x3a20e4(0x2e8)]({'left':0x0,'top':0x0,'width':_0x361e03,'height':_0x8e7d54}),_0x2c0aee=(0x0,e[_0x3a20e4(0x325)])(_0x3a20e4(0x1f9)in _0xad8858?_0xad8858[_0x3a20e4(0x1f9)]:void 0x0),_0x302723=(_0x2c0aee==null?void 0x0:_0x2c0aee[_0x3a20e4(0x340)])??(_0x3a20e4(0x21a)in _0xad8858?(0x0,e['plainShapeTextToDocumentData'])(_0xad8858,_0x5af14b+'-layout'):null);if(!_0x302723)return null;let _0x5d8abd=(0x0,e[_0x3a20e4(0x2ee)])({'documentData':_0x302723,'height':_0x8e7d54,'shapeData':_0x35653a,'textRect':_0x56a938,'width':_0x361e03,'widthBuffer':0x0});_0x5d8abd&&({width:_0x361e03,height:_0x8e7d54}=_0x5d8abd,_0x52031c[_0x3a20e4(0x3c4)]({'width':_0x361e03,'height':_0x8e7d54}),_0x56a938=_0x52031c[_0x3a20e4(0x2e8)]({'left':0x0,'top':0x0,'width':_0x361e03,'height':_0x8e7d54}));let _0x380fce=_0xad8858[_0x3a20e4(0x47f)]!==!0x1,_0x14d453=(0x0,e[_0x3a20e4(0x249)])(_0x302723,{'isHorizontal':_0x380fce,'textRect':_0x56a938,'verticalAlign':_0x2c0aee==null?void 0x0:_0x2c0aee['va'],'horizontalAlign':_0x2c0aee==null?void 0x0:_0x2c0aee['ha'],'wrapStrategy':(0x0,e[_0x3a20e4(0x25a)])(_0x35653a)}),_0x268d85=new o[(_0x3a20e4(0x24c))](_0x14d453),_0x3b8a83=new l[(_0x3a20e4(0x393))](_0x268d85),_0x124779=l[_0x3a20e4(0x3cb)][_0x3a20e4(0x506)](_0x3b8a83,this[_0x3a20e4(0x4b3)]);try{var _0x284ca0,_0x1e663e;_0x124779[_0x3a20e4(0x449)]();let _0x15d828=((_0x284ca0=_0x124779[_0x3a20e4(0x380)]())==null?void 0x0:_0x284ca0['pages'])??[],_0x2bf571=_0x15d828[_0x15d828[_0x3a20e4(0x1ee)]-0x1],_0xe4f0a=_0x2bf571?Math[_0x3a20e4(0x327)](0x0,((_0x1e663e=(0x0,l[_0x3a20e4(0x409)])(_0x2bf571))==null?void 0x0:_0x1e663e[_0x3a20e4(0x44f)])??0x0):0x0,_0x51e4db=_0x124779[_0x3a20e4(0x4b2)]()[_0x3a20e4(0x454)]+_0xe4f0a-(_0x380fce?_0x56a938['height']:_0x56a938[_0x3a20e4(0x4b0)]);return Number['isFinite'](_0x51e4db)?_0x380fce?{'width':_0x361e03,'height':Math[_0x3a20e4(0x327)](0x1,_0x8e7d54+_0x51e4db)}:{'width':Math['max'](0x1,_0x361e03+_0x51e4db),'height':_0x8e7d54}:null;}finally{_0x124779['dispose'](),_0x3b8a83[_0x3a20e4(0x45f)](),_0x268d85['dispose']();}}};Bt=I([F(0x0,(0x0,o[_0xac088e(0x383)])(r[_0xac088e(0x326)])),F(0x1,(0x0,o[_0xac088e(0x383)])(o[_0xac088e(0x2e2)]))],Bt);let $=class extends o['Plugin']{constructor(_0x320f07=nt,_0x148883,_0x27416e,_0x17b277,_0x4c6c68){const _0x2bf191=_0xac088e;super(),this[_0x2bf191(0x397)]=_0x320f07,this['_injector']=_0x148883,this[_0x2bf191(0x483)]=_0x27416e,this['_configService']=_0x17b277,this[_0x2bf191(0x2a7)]=_0x4c6c68;let {menu:_0x3605db,..._0x52f54c}=(0x0,o['merge'])({},nt,this[_0x2bf191(0x397)]);_0x3605db&&this[_0x2bf191(0x3e9)][_0x2bf191(0x472)](_0x2bf191(0x4e5),_0x3605db,{'merge':!0x0}),this['_configService'][_0x2bf191(0x472)](tt,_0x52f54c),this[_0x2bf191(0x503)]();}['onStarting'](){const _0x5d39ec=_0xac088e;(0x0,o['registerDependencies'])(this['_injector'],this['_getDependencies']()),this['_injector'][_0x5d39ec(0x314)](jt),this[_0x5d39ec(0x31d)]();}[_0xac088e(0x36e)](){return[[jt],[zt],[Z],[K],[q],[W],[L],[J],[Bt],[G],[X]];}['onReady'](){const _0x595c55=_0xac088e;this[_0x595c55(0x30d)]()[_0x595c55(0x3ca)](_0xf0391f=>{const _0x487c79=_0x595c55;this[_0x487c79(0x38a)](this['_renderManagerService']['registerRenderModule'](o[_0x487c79(0x230)][_0x487c79(0x2ba)],_0xf0391f));}),(0x0,o[_0x595c55(0x20f)])(this['_injector'],[[zt],[Z],[K],[q],[L],[J],[Bt],[G],[X]]);}['_getRenderModules'](){return[[W],[It],[Rt],[Mt]];}['onRendered'](){const _0x1115e9=_0xac088e;this[_0x1115e9(0x38a)](this[_0x1115e9(0x2a7)][_0x1115e9(0x447)](o[_0x1115e9(0x230)]['UNIVER_DOC'],[Lt]));}['_initCommands'](){const _0x49c221=_0xac088e;[C,B,j,A,N,P][_0x49c221(0x3ca)](_0x2ea379=>this[_0x49c221(0x38a)](this[_0x49c221(0x483)][_0x49c221(0x469)](_0x2ea379)));}[_0xac088e(0x31d)](){const _0x3532b2=_0xac088e;let _0x334927=this[_0x3532b2(0x4d9)],_0x346d5d=_0x334927[_0x3532b2(0x314)](n[_0x3532b2(0x328)]);this[_0x3532b2(0x38a)](_0x346d5d[_0x3532b2(0x30e)](n[_0x3532b2(0x1ec)]['CONTENT'],()=>(0x0,n[_0x3532b2(0x493)])(Dt,_0x334927)));}};H($,_0xac088e(0x348),o[_0xac088e(0x230)][_0xac088e(0x2ba)]),H($,'pluginName',_0xac088e(0x2c0)),H($,_0xac088e(0x3b6),$e),H($,'version',et),$=I([(0x0,o[_0xac088e(0x3a2)])(m['UniverLicensePlugin'],s[_0xac088e(0x316)],u['UniverDrawingPlugin'],d[_0xac088e(0x324)],l[_0xac088e(0x22e)],t['UniverDocsUIPlugin'],a[_0xac088e(0x240)],h['UniverDocsDrawingUIPlugin'],r[_0xac088e(0x47e)],e['UniverShapeEditorUIPlugin']),F(0x1,(0x0,o[_0xac088e(0x383)])(o[_0xac088e(0x431)])),F(0x2,o[_0xac088e(0x2cf)]),F(0x3,o[_0xac088e(0x4a8)]),F(0x4,l['IRenderManagerService'])],$),exports[_0xac088e(0x435)]=Qe,Object[_0xac088e(0x2e7)](exports,_0xac088e(0x30f),{'enumerable':!0x0,'get':function(){return Q;}}),Object['defineProperty'](exports,_0xac088e(0x3fa),{'enumerable':!0x0,'get':function(){return $;}});
|
|
1
|
+
const _0x252e6=_0x2560;(function(_0x366b95,_0x1c12fd){const _0x436d42=_0x2560,_0x47c286=_0x366b95();while(!![]){try{const _0x18882b=-parseInt(_0x436d42(0x111))/0x1*(-parseInt(_0x436d42(0x155))/0x2)+parseInt(_0x436d42(0x2a6))/0x3*(-parseInt(_0x436d42(0x113))/0x4)+-parseInt(_0x436d42(0x29a))/0x5*(parseInt(_0x436d42(0x140))/0x6)+parseInt(_0x436d42(0x2df))/0x7*(-parseInt(_0x436d42(0x3b3))/0x8)+-parseInt(_0x436d42(0x225))/0x9+parseInt(_0x436d42(0x37c))/0xa+parseInt(_0x436d42(0xd5))/0xb*(parseInt(_0x436d42(0x2ca))/0xc);if(_0x18882b===_0x1c12fd)break;else _0x47c286['push'](_0x47c286['shift']());}catch(_0x674e2a){_0x47c286['push'](_0x47c286['shift']());}}}(_0x4069,0xc4c71),Object[_0x252e6(0x24e)](exports,Symbol[_0x252e6(0x23b)],{'value':_0x252e6(0xc0)}));let e=require('@univerjs-pro/shape-editor-ui'),t=require('@univerjs/docs-ui'),n=require('@univerjs/ui'),r=require('@univerjs-pro/docs-shape'),i=require('@univerjs-pro/engine-shape'),a=require('@univerjs-pro/shape-editor'),o=require('@univerjs/core'),s=require('@univerjs/docs'),c=require('@univerjs/docs-drawing'),l=require('@univerjs/engine-render'),u=require('@univerjs/drawing'),d=require('@univerjs/drawing-ui'),f=require('react/jsx-runtime'),p=require('rxjs'),m=require('@univerjs-pro/license'),h=require('@univerjs/docs-drawing-ui'),g=require('@univerjs/icons'),_=require('@univerjs/design'),v=require('react'),y=require('@univerjs/protocol');function b(_0x401703,_0x1b1d21){const _0xdca195=_0x252e6;if(_0x1b1d21){if((0x0,i['isConnectorShape'])(_0x401703)&&(_0x1b1d21['startArrow']||_0x1b1d21['endArrow']))return{'ln':{'startArrow':_0x1b1d21[_0xdca195(0x29b)]?{'type':i['ShapeArrowTypeEnum'][_0xdca195(0x2e4)],'size':i['ShapeArrowSizeEnum'][_0xdca195(0x31d)]}:void 0x0,'endArrow':_0x1b1d21[_0xdca195(0x172)]?{'type':i[_0xdca195(0x221)][_0xdca195(0x2e4)],'size':i[_0xdca195(0xba)]['Large']}:void 0x0}};if(_0x401703===i[_0xdca195(0x2f3)]['Rect']&&(_0x1b1d21[_0xdca195(0x2e1)]||_0x1b1d21['vertical']))return(0x0,a[_0xdca195(0xcf)])({'fill':{'fillType':i['ShapeFillEnum'][_0xdca195(0x33a)],'color':_0xdca195(0x90)},'isHorizontal':!!_0x1b1d21[_0xdca195(0x2e1)],'stroke':{'lineStrokeType':i[_0xdca195(0x1cb)][_0xdca195(0x270)],'width':0x1,'color':_0xdca195(0x166)}});}}function x(_0x3543c5,_0x5df200){const _0x16ab69=_0x252e6;var _0x29c444;let _0x2835ae=_0x5df200[_0x16ab69(0x379)]??'',_0x311ce2=(_0x29c444=_0x3543c5['getSelfOrHeaderFooterModel'](_0x2835ae))==null?void 0x0:_0x29c444[_0x16ab69(0x383)]();if(!_0x311ce2)return null;let _0x2952cb=_0x311ce2['paragraphs']??[],_0x8e637d=_0x2952cb[_0x16ab69(0x327)](_0x1124fc=>{const _0xaea726=_0x16ab69;let _0x5b5ee1=(0x0,o[_0xaea726(0x219)])(_0x311ce2,_0x1124fc);return _0x5df200[_0xaea726(0x2c5)]>=_0x5b5ee1&&_0x5df200[_0xaea726(0x2c5)]<=_0x1124fc[_0xaea726(0x1f0)];})??_0x2952cb[_0x2952cb[_0x16ab69(0x2b8)]-0x1];return _0x8e637d?{'paragraphId':_0x8e637d[_0x16ab69(0x24c)],'segmentId':_0x2835ae,'position':r[_0x16ab69(0x16a)][_0x16ab69(0x18d)],'offset':_0x5df200[_0x16ab69(0x2c5)]-(0x0,o['getParagraphContentStartOffset'])(_0x311ce2,_0x8e637d)}:null;}function S(_0x388065,_0x30a8eb,_0x436d06){const _0x630cc5=_0x252e6;var _0x30deb7,_0x5d33de;if(!_0x436d06)return null;let _0x3218e7=(_0x30deb7=_0x388065[_0x630cc5(0x286)](l[_0x630cc5(0x342)])[_0x630cc5(0x206)](_0x30a8eb))==null?void 0x0:_0x30deb7['with'](t[_0x630cc5(0x198)])[_0x630cc5(0x3b7)];if(!_0x3218e7)return null;let _0x43b384=_0x436d06===_0x630cc5(0x38a)?{'startOffset':_0x3218e7[_0x630cc5(0x1db)][_0x630cc5(0x255)],'endOffset':_0x3218e7['moveRange'][_0x630cc5(0x255)]}:_0x3218e7[_0x630cc5(0x33c)];return{'startOffset':_0x43b384[_0x630cc5(0x2c5)],'endOffset':_0x43b384[_0x630cc5(0x255)],'collapsed':_0x43b384[_0x630cc5(0x2c5)]===_0x43b384[_0x630cc5(0x255)],'segmentId':((_0x5d33de=_0x3218e7[_0x630cc5(0x1ba)])==null?void 0x0:_0x5d33de[_0x630cc5(0x379)])??''};}const C={'type':o['CommandType'][_0x252e6(0x381)],'id':_0x252e6(0x301),'handler':async(_0x5ce485,_0x596912)=>{const _0x1b83ff=_0x252e6;let _0x5c4db1=_0x5ce485[_0x1b83ff(0x286)](o[_0x1b83ff(0x288)])[_0x1b83ff(0x354)](o[_0x1b83ff(0x2bc)][_0x1b83ff(0x248)]);if(!_0x5c4db1)return!0x1;let _0x14d2fd=_0x5ce485['get'](o[_0x1b83ff(0x1b3)]),_0x226ef2=_0x5c4db1[_0x1b83ff(0x274)](),_0x5bcd75=_0x596912[_0x1b83ff(0x350)]??(0x0,o['generateRandomId'])(),_0x1ab7a8=_0x596912[_0x1b83ff(0x256)]??r['DEFAULT_DOC_SHAPE_WIDTH'],_0x4b2470=_0x596912[_0x1b83ff(0x226)]??r[_0x1b83ff(0xd6)],_0x11da62=_0x596912[_0x1b83ff(0x2d7)]??b(_0x596912[_0x1b83ff(0x202)],_0x596912[_0x1b83ff(0x215)]),_0x6bc675=S(_0x5ce485,_0x226ef2,_0x596912[_0x1b83ff(0x100)])??_0x5ce485[_0x1b83ff(0x286)](s[_0x1b83ff(0xab)])[_0x1b83ff(0x146)]();if(!_0x6bc675)return!0x1;let _0x43e713=x(_0x5c4db1,_0x6bc675);return _0x43e713?!!_0x14d2fd[_0x1b83ff(0x15b)](r['InsertDocShapeCommand']['id'],{'unitId':_0x226ef2,'shapeId':_0x5bcd75,'shapeType':_0x596912['value'],'shapeData':_0x11da62,'transform':{'width':_0x1ab7a8,'height':_0x4b2470},'placement':{'wrappingStyle':c['TextWrappingStyle'][_0x1b83ff(0x260)],'anchor':_0x43e713}}):!0x1;}},w='doc.shape.edit.panel',T='docs-shape-ui.ribbon.shape-format',E='doc.shape.object-list.panel',D=(0x0,o[_0x252e6(0x36f)])(_0x252e6(0xc8)),O=_0x252e6(0x28e),k=_0x252e6(0x16d),A={'id':_0x252e6(0x311),'type':o[_0x252e6(0x3a4)][_0x252e6(0x381)],'handler':(_0x26d82e,_0x3acea1)=>{const _0x5a126b=_0x252e6;let _0x3f361f=_0x26d82e[_0x5a126b(0x286)](n[_0x5a126b(0x308)]),_0x2b1f62=_0x26d82e['get'](o[_0x5a126b(0x282)]),_0x24f75b=_0x26d82e['get'](u[_0x5a126b(0x3b6)]);return(_0x3acea1==null?void 0x0:_0x3acea1[_0x5a126b(0x202)])===_0x5a126b(0x369)?(_0x3f361f[_0x5a126b(0x369)](E),!0x0):(_0x3f361f[_0x5a126b(0x394)]({'id':E,'header':{'title':_0x2b1f62['t'](_0x5a126b(0x3b1))},'children':{'label':E},'onClose':()=>{const _0x9a83f1=_0x5a126b;_0x24f75b[_0x9a83f1(0x300)](null);},'width':0x168}),!0x0);}},j={'type':o[_0x252e6(0x3a4)]['OPERATION'],'id':'doc.operation.open-doc-shape-format-panel','handler'(){return!0x0;}};function M(_0x57f542){const _0x2cd364=_0x252e6;let _0x58cdc8=_0x57f542['get'](u['IDrawingManagerService'])['getFocusDrawings'](),_0xcdfa95=_0x58cdc8[_0x2cd364(0x2b8)]===0x1?_0x58cdc8[0x0]:null;if(!_0xcdfa95||_0xcdfa95[_0x2cd364(0xd8)]!==o[_0x2cd364(0x122)]['DRAWING_SHAPE'])return null;let _0x5cc8f2=_0x57f542['get'](r[_0x2cd364(0x1b0)]),_0x45ff4b=_0x5cc8f2[_0x2cd364(0x131)](_0xcdfa95[_0x2cd364(0x148)],_0xcdfa95['subUnitId'],_0xcdfa95[_0x2cd364(0x252)]),_0x24282f=_0x5cc8f2['getShapeDataById'](_0xcdfa95[_0x2cd364(0x148)],_0xcdfa95['subUnitId'],_0xcdfa95[_0x2cd364(0x252)]);return _0x45ff4b===void 0x0||!_0x24282f?null:{'drawing':_0xcdfa95,'shapeData':_0x24282f,'shapeType':_0x45ff4b};}const N={'id':_0x252e6(0x153),'type':o[_0x252e6(0x3a4)][_0x252e6(0x249)],'handler':(_0x3291da,_0x66212e)=>{const _0x3fb5aa=_0x252e6;let _0x181fb4=M(_0x3291da),_0x91b27b=(0x0,a[_0x3fb5aa(0x14e)])((_0x66212e==null?void 0x0:_0x66212e[_0x3fb5aa(0x9d)])??(_0x66212e==null?void 0x0:_0x66212e[_0x3fb5aa(0x202)])??'');if(!_0x181fb4||!_0x91b27b||_0x91b27b[_0x3fb5aa(0x323)]!==(0x0,a[_0x3fb5aa(0x357)])(_0x181fb4[_0x3fb5aa(0x2d7)]))return!0x1;let _0x1eb83a=(0x0,a[_0x3fb5aa(0x373)])(_0x181fb4['shapeData'],_0x91b27b);if(!_0x1eb83a)return!0x1;let {drawing:_0x5f2910}=_0x181fb4;return _0x3291da['get'](o[_0x3fb5aa(0x1b3)])[_0x3fb5aa(0x1d9)](r[_0x3fb5aa(0xe4)]['id'],{'unitId':_0x5f2910[_0x3fb5aa(0x148)],'shapeId':_0x5f2910[_0x3fb5aa(0x252)],'shapeData':_0x1eb83a,'oldShapeJSON':{'oldShapeData':_0x181fb4[_0x3fb5aa(0x2d7)]}});}},P={'id':'doc.operation.update-shape-type','type':o[_0x252e6(0x3a4)][_0x252e6(0x249)],'handler':(_0x4ac783,_0x5f4bd8)=>{const _0x2388d8=_0x252e6;let _0x3953f5=M(_0x4ac783),_0x47aa88=(_0x5f4bd8==null?void 0x0:_0x5f4bd8[_0x2388d8(0x30c)])??(_0x5f4bd8==null?void 0x0:_0x5f4bd8[_0x2388d8(0x202)]);if(!_0x3953f5||!_0x47aa88||(0x0,i[_0x2388d8(0x9e)])(_0x3953f5[_0x2388d8(0x30c)])||(0x0,i[_0x2388d8(0x9e)])(_0x47aa88))return!0x1;let _0x4b5615=(0x0,a[_0x2388d8(0x224)])(_0x3953f5[_0x2388d8(0x2d7)],_0x47aa88);if(!_0x4b5615)return!0x1;let {drawing:_0x3aa6d3}=_0x3953f5;return _0x4ac783[_0x2388d8(0x286)](o[_0x2388d8(0x1b3)])[_0x2388d8(0x1d9)](r[_0x2388d8(0xe4)]['id'],{'unitId':_0x3aa6d3[_0x2388d8(0x148)],'shapeId':_0x3aa6d3[_0x2388d8(0x252)],'shapeType':_0x47aa88,'shapeData':_0x4b5615,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeType':_0x3953f5['shapeType'],'oldShapeData':_0x3953f5[_0x2388d8(0x2d7)]}});}};function F(_0x9e1387,_0x2e3d83){return function(_0x1354af,_0x408a0b){_0x2e3d83(_0x1354af,_0x408a0b,_0x9e1387);};}function I(_0x53d1cc,_0x51c866,_0x59aab6,_0x118251){const _0x17a882=_0x252e6;var _0x2be4aa=arguments[_0x17a882(0x2b8)],_0x34e2e2=_0x2be4aa<0x3?_0x51c866:_0x118251===null?_0x118251=Object[_0x17a882(0x2d0)](_0x51c866,_0x59aab6):_0x118251,_0xe0e945;if(typeof Reflect=='object'&&typeof Reflect[_0x17a882(0x392)]==_0x17a882(0xa1))_0x34e2e2=Reflect[_0x17a882(0x392)](_0x53d1cc,_0x51c866,_0x59aab6,_0x118251);else{for(var _0x4ccdd0=_0x53d1cc[_0x17a882(0x2b8)]-0x1;_0x4ccdd0>=0x0;_0x4ccdd0--)(_0xe0e945=_0x53d1cc[_0x4ccdd0])&&(_0x34e2e2=(_0x2be4aa<0x3?_0xe0e945(_0x34e2e2):_0x2be4aa>0x3?_0xe0e945(_0x51c866,_0x59aab6,_0x34e2e2):_0xe0e945(_0x51c866,_0x59aab6))||_0x34e2e2);}return _0x2be4aa>0x3&&_0x34e2e2&&Object[_0x17a882(0x24e)](_0x51c866,_0x59aab6,_0x34e2e2),_0x34e2e2;}let L=class extends o[_0x252e6(0x1bf)]{constructor(_0x3c6902,_0x4b04e8){const _0x39eb26=_0x252e6;super(),this[_0x39eb26(0x145)]=_0x3c6902,this['_drawingManagerService']=_0x4b04e8,this[_0x39eb26(0x2fa)](),this[_0x39eb26(0x145)][_0x39eb26(0xe1)](!0x0),this[_0x39eb26(0x243)]({'dispose':()=>this[_0x39eb26(0x145)]['setCanUseShapeClip'](!0x1)});}['_registerImageShapeClipDelegate'](){const _0x5484b4=_0x252e6;let _0x555f03=new Map(),_0x4c0608=this[_0x5484b4(0x145)][_0x5484b4(0x1f4)]((_0x30f786,_0x5404b2,_0x139832,_0x4a2c28,_0x3e1346)=>{const _0x4bd62e=_0x5484b4;let _0x31587e=_0x5404b2;if(_0x31587e===i[_0x4bd62e(0x2f3)][_0x4bd62e(0x12c)]||_0x5404b2===_0x4bd62e(0x191))return!0x1;try{let _0x4cfc72=_0x555f03['get'](_0x5404b2);return _0x4cfc72||(_0x4cfc72=new i[(_0x4bd62e(0x239))](_0x31587e,'clip-'+_0x5404b2),_0x555f03[_0x4bd62e(0x149)](_0x5404b2,_0x4cfc72)),_0x4cfc72['clearAdjustValue'](),_0x3e1346&&Object[_0x4bd62e(0x3b9)](_0x3e1346)[_0x4bd62e(0x2b8)]>0x0&&_0x4cfc72[_0x4bd62e(0x2ef)]({'adjustValues':_0x3e1346},!0x0),_0x4cfc72['updateContext']({'width':_0x139832,'height':_0x4a2c28}),_0x4cfc72[_0x4bd62e(0x39c)](_0x30f786,{'left':0x0,'top':0x0,'width':_0x139832,'height':_0x4a2c28});}catch{return!0x1;}});this[_0x5484b4(0x243)](_0x4c0608),this[_0x5484b4(0x243)]({'dispose':()=>_0x555f03[_0x5484b4(0x278)]()});}[_0x252e6(0x173)](_0x33fe3e,_0x4449fb,_0x474aff,_0x1e3e31,_0x24ae40){const _0x119c28=_0x252e6;let _0x47a1a4=this[_0x119c28(0x267)][_0x119c28(0x316)](_0x33fe3e,_0x4449fb)[_0x474aff];_0x47a1a4&&_0x47a1a4[_0x119c28(0xd8)]===o[_0x119c28(0x122)][_0x119c28(0x31a)]&&this[_0x119c28(0x267)]['featurePluginUpdateNotification']([{..._0x47a1a4,'prstGeom':_0x1e3e31,'adjustValues':_0x24ae40}]);}};L=I([F(0x0,(0x0,o['Inject'])(d[_0x252e6(0xb7)])),F(0x1,(0x0,o['Inject'])(u[_0x252e6(0x3b6)]))],L);const ee=_0x252e6(0x2d2),te=_0x252e6(0xd2);function ne({onShapeClick:_0xe61979,excludeGroups:_0xa80842}){const _0x45178d=_0x252e6;return(0x0,f[_0x45178d(0x372)])(e[_0x45178d(0x2ae)],{'excludeGroups':_0xa80842,'onShapeClick':_0xe61979,'scrollContainer':_0x45178d(0x216)});}function re(){const _0x161e24=_0x252e6;let _0x28d27a=(0x0,n['useDependency'])(u[_0x161e24(0x3b6)]),_0x5f3861=(0x0,n['useDependency'])(L);return _0x38293b=>{const _0x14a421=_0x161e24;let _0x470d64=_0x28d27a[_0x14a421(0x236)]()[_0x14a421(0x327)](_0x27e9c2=>_0x27e9c2[_0x14a421(0xd8)]===o[_0x14a421(0x122)][_0x14a421(0x31a)]);_0x470d64&&_0x5f3861['clipByShape'](_0x470d64['unitId'],_0x470d64[_0x14a421(0x33d)],_0x470d64[_0x14a421(0x252)],_0x38293b['type']);};}function ie(){const _0x3107fb=_0x252e6;let _0x3f638e=re();return(0x0,f[_0x3107fb(0x372)])(e[_0x3107fb(0xaf)],{'buttonLabel':_0x3107fb(0x1ec),'excludeGroups':[e[_0x3107fb(0xd4)][_0x3107fb(0x296)]],'onShapeClick':_0x3f638e});}function ae(){const _0x3c4a5f=_0x252e6;let _0x598536=(0x0,n['useDependency'])(n[_0x3c4a5f(0x12a)]),_0x48e222=(0x0,n[_0x3c4a5f(0x3af)])(u[_0x3c4a5f(0x3b6)]),_0x16b1fa=(0x0,n[_0x3c4a5f(0x3af)])(o[_0x3c4a5f(0x288)]),_0x483bd8=_0x48e222[_0x3c4a5f(0x236)]()[0x0],_0x1d6f2f=_0x483bd8?_0x16b1fa[_0x3c4a5f(0x1c0)](_0x483bd8[_0x3c4a5f(0x148)]):void 0x0,_0x369419=_0x1d6f2f===o[_0x3c4a5f(0x2bc)][_0x3c4a5f(0x248)]?te:_0x1d6f2f===o[_0x3c4a5f(0x2bc)][_0x3c4a5f(0x177)]?_0x3c4a5f(0x123):void 0x0,_0x342e77=_0x369419?_0x598536['get'](_0x369419):void 0x0;return _0x342e77?(0x0,f[_0x3c4a5f(0x372)])(_0x342e77,{}):null;}function oe({paragraphMenuPlacement:_0x1dd0bd,PickerComponent:_0x309626=ne}){const _0x156ed5=_0x252e6;let _0x35e735=(0x0,n[_0x156ed5(0x3af)])(o[_0x156ed5(0x1b3)]);return(0x0,f[_0x156ed5(0x372)])(_0x309626,{'onShapeClick':_0x4457de=>{const _0x131c83=_0x156ed5;_0x35e735[_0x131c83(0x1d9)](C['id'],{'paragraphMenuPlacement':_0x1dd0bd,'value':_0x4457de[_0x131c83(0x323)],'enhanceParams':{'endArrow':_0x4457de[_0x131c83(0x172)],'startArrow':_0x4457de[_0x131c83(0x29b)],'horizontal':_0x4457de[_0x131c83(0x2e1)],'vertical':_0x4457de[_0x131c83(0x22b)]}});}});}function se(_0x40b88a){const _0x2458a6=_0x252e6;return _0x22b82d=>({'id':C['id'],'type':n[_0x2458a6(0x340)][_0x2458a6(0x376)],'selections':[{'label':{'name':ee,'hoverable':!0x1,'selectable':!0x1,'props':_0x40b88a?{'id':C['id'],'paragraphMenuPlacement':_0x40b88a}:{'id':C['id']}}}],'icon':'ShapeIcon','title':_0x2458a6(0x1f7),'tooltip':_0x2458a6(0x1f7),'hidden$':(0x0,n[_0x2458a6(0x16f)])(_0x22b82d,o[_0x2458a6(0x2bc)][_0x2458a6(0x248)])});}const ce=se(),le=se(_0x252e6(0x38a)),ue=se('target');function de(_0x3f3538){const _0x4006d9=_0x252e6;let _0x26eaa0=_0x3f3538[_0x4006d9(0x286)](n['ISidebarService']);return{'id':A['id'],'type':n['MenuItemType'][_0x4006d9(0x30a)],'icon':_0x4006d9(0x188),'title':_0x4006d9(0x125),'tooltip':_0x4006d9(0x125),'activated$':(0x0,p['defer'])(()=>_0x26eaa0[_0x4006d9(0x25e)]['pipe']((0x0,p[_0x4006d9(0x293)])(_0x26eaa0[_0x4006d9(0x3be)]),(0x0,p[_0x4006d9(0xf2)])(_0xb073f3=>_0xb073f3[_0x4006d9(0x234)]===!0x0&&_0xb073f3['id']===_0x4006d9(0x386)),(0x0,p[_0x4006d9(0x298)])())),'hidden$':(0x0,n[_0x4006d9(0x16f)])(_0x3f3538,o[_0x4006d9(0x2bc)][_0x4006d9(0x248)])};}function R(_0x14125,_0x3771f7,_0x47d958,_0xb91b36,_0x8a3933,_0x3ed8ba){const _0xfe568a=_0x252e6;let _0x84f491={'unitId':_0x3771f7,'shapeId':_0xb91b36,'shapeData':_0x3ed8ba,'oldShapeJSON':_0x8a3933};return _0x14125[_0xfe568a(0x1d9)](r[_0xfe568a(0xe4)]['id'],_0x84f491);}function fe(_0x54ae00,_0x3a2c85,_0x52c29c,_0x1a11e1,_0x51854d,_0x5bab73){const _0x1d1d09=_0x252e6;let _0x43c462={'unitId':_0x3a2c85,'shapeId':_0x1a11e1,'shapeData':_0x5bab73,'oldShapeJSON':_0x51854d};return _0x54ae00[_0x1d1d09(0x1d9)](r[_0x1d1d09(0xe4)]['id'],_0x43c462);}const pe='docs-shape-ui.shape-format.quick-style-gallery',me=_0x252e6(0x1ac),he=_0x252e6(0x2e5),ge=_0x252e6(0x2ff),_e='docs-shape-ui.shape-format.wrapping-style-label',ve=[{'value':c[_0x252e6(0x1e7)]['INLINE'],'label':_0x252e6(0x150),'icon':_0x252e6(0x31f)},{'value':c[_0x252e6(0x1e7)]['WRAP_SQUARE'],'label':'docs-shape-ui.textWrap.square','icon':'DocsShapeWrapSquareIcon'},{'value':c['TextWrappingStyle'][_0x252e6(0x21b)],'label':'docs-shape-ui.textWrap.topAndBottom','icon':_0x252e6(0x33b)},{'value':c[_0x252e6(0x1e7)][_0x252e6(0x3a1)],'label':'docs-shape-ui.textWrap.behindText','icon':_0x252e6(0xa7)},{'value':c[_0x252e6(0x1e7)]['IN_FRONT_OF_TEXT'],'label':_0x252e6(0xe3),'icon':_0x252e6(0x1fc)}];function ye(){const _0x2dbc67=_0x252e6;let _0x1f3bd1=(0x0,n[_0x2dbc67(0x3af)])(o[_0x2dbc67(0x1b3)]),_0x54f9e5=(0x0,n[_0x2dbc67(0x3af)])(u['IDrawingManagerService']),_0x4a1bfe=(0x0,n[_0x2dbc67(0x3af)])(r[_0x2dbc67(0x1b0)]),_0x5b8de2=()=>{const _0x4059aa=_0x2dbc67;var _0x59e050;let _0x45d6b5=_0x54f9e5[_0x4059aa(0x236)]();if(_0x45d6b5[_0x4059aa(0x2b8)]!==0x1||((_0x59e050=_0x45d6b5[0x0])==null?void 0x0:_0x59e050[_0x4059aa(0xd8)])!==o[_0x4059aa(0x122)][_0x4059aa(0x21c)])return null;let {unitId:_0x4ea2d7,subUnitId:_0xdda974,drawingId:_0x299c16}=_0x45d6b5[0x0],_0x36fe40=_0x4a1bfe[_0x4059aa(0x131)](_0x4ea2d7,_0xdda974,_0x299c16),_0x5a51b4=_0x4a1bfe['getShapeDataById'](_0x4ea2d7,_0xdda974,_0x299c16);return _0x36fe40===void 0x0||!_0x5a51b4?null:{'unitId':_0x4ea2d7,'subUnitId':_0xdda974,'drawingId':_0x299c16,'shapeType':_0x36fe40,'shapeData':_0x5a51b4};},_0xdaa780=(0x0,n[_0x2dbc67(0x1c6)])(()=>new p[(_0x2dbc67(0x34c))](_0x24f6c8=>{const _0x52a54d=_0x2dbc67;let _0x231d11=()=>_0x24f6c8[_0x52a54d(0xbf)](_0x5b8de2()),_0x1134c7=_0x54f9e5[_0x52a54d(0x119)][_0x52a54d(0x334)](_0x231d11),_0x39513c=_0x1f3bd1[_0x52a54d(0xdc)](_0x255df0=>{_0x255df0['id']===r['UpdateDocShapeDataMutation']['id']&&_0x231d11();});return _0x231d11(),()=>{const _0x2800f9=_0x52a54d;_0x1134c7[_0x2800f9(0xae)](),_0x39513c['dispose']();};}),_0x5b8de2(),!0x1,[_0x1f3bd1,_0x4a1bfe,_0x54f9e5]);return{'selection':_0xdaa780,'updateShapeData':_0x31feae=>{const _0x138b7e=_0x2dbc67;_0xdaa780&&R(_0x1f3bd1,_0xdaa780[_0x138b7e(0x148)],_0xdaa780['subUnitId'],_0xdaa780[_0x138b7e(0x252)],{'oldShapeData':_0xdaa780[_0x138b7e(0x2d7)]},_0x31feae);}};}function be(){const _0xa4972d=_0x252e6;let {selection:_0x217d2a,updateShapeData:_0x5f5966}=ye();return _0x217d2a?(0x0,f[_0xa4972d(0x372)])(e['ShapeStyleRibbonControl'],{'shapeData':_0x217d2a['shapeData'],'shapeType':_0x217d2a[_0xa4972d(0x30c)],'onUpdateShapeData':_0x5f5966}):null;}function xe(){const _0x373969=_0x252e6;let _0x30b251=(0x0,n[_0x373969(0x3af)])(o[_0x373969(0x1b3)]),_0x1ad4d9=(0x0,n[_0x373969(0x3af)])(o[_0x373969(0x282)]),{selection:_0x14e57e}=ye();return _0x14e57e?(0x0,f[_0x373969(0x372)])(e['ShapeQuickStyleGallery'],{'type':(0x0,a['getShapeQuickStyleType'])(_0x14e57e[_0x373969(0x2d7)]),'ariaLabel':_0x1ad4d9['t'](_0x373969(0xc9)),'activePresetId':(0x0,a[_0x373969(0x1df)])(_0x14e57e[_0x373969(0x2d7)]),'onSelect':_0x229d9b=>_0x30b251['executeCommand'](N['id'],{'presetId':_0x229d9b})}):null;}function Se(){const _0x58b3e7=_0x252e6;let {selection:_0x4e0ba3,updateShapeData:_0x4ca88e}=ye();return _0x4e0ba3?(0x0,f[_0x58b3e7(0x372)])(e['ShapeTextRibbonControl'],{'fontFamilyPopupDataComponent':'docs-shape-format-font-family-menu','shapeData':_0x4e0ba3[_0x58b3e7(0x2d7)],'onUpdateShapeData':_0x4ca88e}):null;}function Ce(){const _0x3bb6b6=_0x252e6;var _0x4c580a;let {selection:_0x23f251,updateShapeData:_0x1abaee}=ye(),_0xa08dc0=(0x0,e[_0x3bb6b6(0x92)])({'hostType':o['UniverInstanceType'][_0x3bb6b6(0x248)],'unitId':(_0x23f251==null?void 0x0:_0x23f251['unitId'])??'','subUnitId':(_0x23f251==null?void 0x0:_0x23f251['subUnitId'])??'','shapeId':(_0x23f251==null?void 0x0:_0x23f251[_0x3bb6b6(0x252)])??'','shapeData':_0x23f251==null?void 0x0:_0x23f251[_0x3bb6b6(0x2d7)],'registerBinding':!0x1,'showLabels':!0x0,'dropdownSide':'bottom','onUpdateBinding':_0x375544=>_0x1abaee({'formulaBinding':_0x375544})}),_0x4abd26=((_0x4c580a=_0xa08dc0['extensionGroups'])==null?void 0x0:_0x4c580a[_0x3bb6b6(0x1aa)](_0x1fcdca=>_0x1fcdca[_0x3bb6b6(0x269)])[_0x3bb6b6(0x313)](_0x53878c=>_0x53878c[_0x3bb6b6(0x234)]!==!0x1))??[];return _0x23f251!=null&&_0x23f251[_0x3bb6b6(0x2d7)][_0x3bb6b6(0x263)]?(0x0,f[_0x3bb6b6(0x372)])(e['ShapeFormulaRibbonControl'],{'actions':_0x4abd26,'panel':_0xa08dc0[_0x3bb6b6(0x3bf)]}):null;}function we({value:_0x453234}){const _0x270823=_0x252e6;let _0x44e2c4=(0x0,n[_0x270823(0x3af)])(o[_0x270823(0x282)]),_0x54b715=ve[_0x270823(0x327)](_0x18574f=>_0x18574f[_0x270823(0x202)]===_0x453234)??ve[0x0];return _0x54b715?(0x0,f['jsx'])(_0x270823(0x160),{'children':_0x44e2c4['t'](_0x54b715[_0x270823(0x110)])}):null;}const Te=_0x252e6(0x141),Ee='docs-shape-ui.ribbon.shape-format.text-control',De=_0x252e6(0x101),Oe='docs-shape-ui.ribbon.shape-format.arrange-forward',ke=_0x252e6(0xce),Ae='docs-shape-ui.ribbon.shape-format.arrange-front',je=_0x252e6(0x1ad),Me=_0x252e6(0x30b);function Ne(_0x406baa){const _0x511a5f=_0x252e6;let _0x34458f=_0x406baa[_0x511a5f(0x286)](o[_0x511a5f(0x1b3)]),_0x313f8d=_0x406baa[_0x511a5f(0x286)](u['IDrawingManagerService']),_0x333784=_0x406baa[_0x511a5f(0x286)](r[_0x511a5f(0x1b0)]);return new p[(_0x511a5f(0x34c))](_0xe0a2b2=>{const _0xadde54=_0x511a5f;let _0xbd6ea=()=>{const _0x52e451=_0x2560;let _0x474593=z(_0x406baa),_0x13c8b1=_0x474593?_0x333784['getShapeDataById'](_0x474593[_0x52e451(0x148)],_0x474593[_0x52e451(0x33d)],_0x474593[_0x52e451(0x252)]):null;_0xe0a2b2[_0x52e451(0xbf)](_0x13c8b1?(0x0,a[_0x52e451(0x1df)])(_0x13c8b1)??'':'');},_0x2f24b0=_0x313f8d['focus$']['subscribe'](_0xbd6ea),_0x48355e=_0x34458f[_0xadde54(0xdc)](_0x26d0a8=>{const _0x24e2d6=_0xadde54;_0x26d0a8['id']===r[_0x24e2d6(0x257)]['id']&&_0xbd6ea();});return _0xbd6ea(),()=>{const _0x3ca1fd=_0xadde54;_0x2f24b0['unsubscribe'](),_0x48355e[_0x3ca1fd(0x32e)]();};});}function z(_0x16f98a){const _0x42f73c=_0x252e6;var _0x539e69;let _0x2f31ab=_0x16f98a['get'](u[_0x42f73c(0x3b6)])[_0x42f73c(0x236)]();return _0x2f31ab[_0x42f73c(0x2b8)]===0x1&&((_0x539e69=_0x2f31ab[0x0])==null?void 0x0:_0x539e69[_0x42f73c(0xd8)])===o[_0x42f73c(0x122)][_0x42f73c(0x21c)]?_0x2f31ab[0x0]:null;}function Pe(_0x4185c0){const _0x38bf30=_0x252e6;return(_0x4185c0==null?void 0x0:_0x4185c0[_0x38bf30(0xcc)])===o[_0x38bf30(0x32b)]['WRAP_NONE']?_0x4185c0[_0x38bf30(0x364)]===o[_0x38bf30(0x27b)][_0x38bf30(0x25b)]?c[_0x38bf30(0x1e7)][_0x38bf30(0x3a1)]:c[_0x38bf30(0x1e7)][_0x38bf30(0x398)]:(_0x4185c0==null?void 0x0:_0x4185c0[_0x38bf30(0xcc)])===o[_0x38bf30(0x32b)][_0x38bf30(0x1cc)]?c['TextWrappingStyle'][_0x38bf30(0x1cc)]:(_0x4185c0==null?void 0x0:_0x4185c0['layoutType'])===o['PositionedObjectLayoutType']['WRAP_TOP_AND_BOTTOM']?c[_0x38bf30(0x1e7)][_0x38bf30(0x21b)]:c[_0x38bf30(0x1e7)][_0x38bf30(0x260)];}function Fe(_0xdbed7f){const _0x346010=_0x252e6;let _0x210e17=_0xdbed7f[_0x346010(0x286)](o['ICommandService']),_0x44976d=_0xdbed7f[_0x346010(0x286)](u[_0x346010(0x3b6)]),_0x197109=_0xdbed7f[_0x346010(0x286)](o[_0x346010(0x288)]);return new p['Observable'](_0x80fb21=>{const _0x3c69bc=_0x346010;let _0x165e5b=()=>{const _0x1511a9=_0x2560;var _0x56ce8d;let _0xeac72a=z(_0xdbed7f),_0x5b0c2d=_0xeac72a?_0x197109['getUnit'](_0xeac72a['unitId'],o[_0x1511a9(0x2bc)]['UNIVER_DOC']):void 0x0;_0x80fb21['next'](Pe(_0xeac72a?_0x5b0c2d==null||(_0x56ce8d=_0x5b0c2d[_0x1511a9(0x20e)]()[_0x1511a9(0x208)])==null?void 0x0:_0x56ce8d[_0xeac72a[_0x1511a9(0x252)]]:void 0x0));},_0x3072fc=_0x44976d[_0x3c69bc(0x119)]['subscribe'](_0x165e5b),_0x483784=_0x210e17[_0x3c69bc(0xdc)](_0x338a6d=>{const _0x5e2441=_0x3c69bc;_0x338a6d['id']===s[_0x5e2441(0x325)]['id']&&_0x165e5b();});return _0x165e5b(),()=>{const _0xf7eaaa=_0x3c69bc;_0x3072fc[_0xf7eaaa(0xae)](),_0x483784[_0xf7eaaa(0x32e)]();};})[_0x346010(0x197)]((0x0,p[_0x346010(0x298)])());}function Ie(_0x4f5274,_0x46f374=!0x1){const _0x34f4ea=_0x252e6;let _0x348ec5=_0x4f5274[_0x34f4ea(0x286)](o[_0x34f4ea(0x1b3)]),_0xa3957c=_0x4f5274[_0x34f4ea(0x286)](u[_0x34f4ea(0x3b6)]),_0xec3ba7=_0x4f5274['get'](r[_0x34f4ea(0x1b0)]);return new p[(_0x34f4ea(0x34c))](_0x765b5=>{const _0x148501=_0x34f4ea;let _0x27d2a5=()=>{const _0x4df905=_0x2560;let _0x21a94e=z(_0x4f5274);if(!_0x21a94e){_0x765b5[_0x4df905(0xbf)](!0x0);return;}let _0x32d454=_0xec3ba7['getShapeDataById'](_0x21a94e[_0x4df905(0x148)],_0x21a94e[_0x4df905(0x33d)],_0x21a94e['drawingId']);_0x765b5[_0x4df905(0xbf)](!_0x32d454||_0x46f374&&_0x32d454['formulaBinding']==null);},_0x231060=_0xa3957c[_0x148501(0x119)][_0x148501(0x334)](_0x27d2a5),_0x132212=_0x348ec5[_0x148501(0xdc)](_0x2dd258=>{const _0x57f8fd=_0x148501;_0x2dd258['id']===r[_0x57f8fd(0x257)]['id']&&_0x27d2a5();});return _0x27d2a5(),()=>{const _0x4074cf=_0x148501;_0x231060[_0x4074cf(0xae)](),_0x132212[_0x4074cf(0x32e)]();};});}function Le(_0x4b0392){const _0xdcb6a0=_0x252e6;let _0x2f16a5=_0x4b0392[_0xdcb6a0(0x286)](u['IDrawingManagerService']),_0x55ac81=_0x4b0392['get'](r[_0xdcb6a0(0x1b0)]);return _0x2f16a5['focus$']['pipe']((0x0,p[_0xdcb6a0(0x293)])(_0x2f16a5[_0xdcb6a0(0x236)]()),(0x0,p['map'])(()=>{const _0x3263cb=_0xdcb6a0;let _0x4c07a5=z(_0x4b0392),_0x2d3cf9=_0x4c07a5?_0x55ac81[_0x3263cb(0x131)](_0x4c07a5[_0x3263cb(0x148)],_0x4c07a5['subUnitId'],_0x4c07a5[_0x3263cb(0x252)]):void 0x0;return _0x2d3cf9===void 0x0||(0x0,i[_0x3263cb(0x9e)])(_0x2d3cf9);}));}function Re(_0x3ab691){const _0x3aed9c=_0x252e6;return{'id':N['id'],'type':n[_0x3aed9c(0x340)]['SELECTOR'],'icon':_0x3aed9c(0x136),'title':_0x3aed9c(0x34e),'tooltip':_0x3aed9c(0x34e),'selections':[{'label':{'name':pe,'hoverable':!0x1,'selectable':!0x1}}],'value$':Ne(_0x3ab691),'hidden$':Ie(_0x3ab691)};}function ze(_0x312f37){const _0x5a983a=_0x252e6;return{'id':P['id'],'type':n[_0x5a983a(0x340)][_0x5a983a(0x376)],'icon':_0x5a983a(0x1d8),'title':_0x5a983a(0x2a8),'tooltip':_0x5a983a(0x2a8),'slot':!0x0,'selections':[{'label':{'name':e[_0x5a983a(0x250)],'hoverable':!0x1,'selectable':!0x1}}],'hidden$':Le(_0x312f37)};}function Be(_0x595508,_0x23871c,_0x2dd4c6=!0x1){const _0x389522=_0x252e6;return _0xa0b287=>({'id':_0x595508,'type':n['MenuItemType'][_0x389522(0x30a)],'label':{'name':_0x23871c,'hoverable':!0x1,'selectable':!0x1},'hidden$':Ie(_0xa0b287,_0x2dd4c6)});}const Ve=Be(Te,me),He=Be(Ee,he),Ue=Be(De,ge,!0x0);function We(_0x78c716){const _0x5a9d27=_0x252e6;return{'id':Me,'type':n[_0x5a9d27(0x340)][_0x5a9d27(0x376)],'icon':ve[0x0]['icon'],'label':_e,'selectionsCommandId':c[_0x5a9d27(0x244)]['id'],'selections':ve['map'](({icon:_0x1ac257,label:_0x46d81b,value:_0x3859f7})=>({'value':_0x3859f7,'label':_0x46d81b,'icon':_0x1ac257,'params':()=>{const _0x1ccaa1=_0x5a9d27;let _0x1162aa=z(_0x78c716);return _0x1162aa?{'unitId':_0x1162aa[_0x1ccaa1(0x148)],'subUnitId':_0x1162aa[_0x1ccaa1(0x33d)],'drawings':[{'unitId':_0x1162aa[_0x1ccaa1(0x148)],'subUnitId':_0x1162aa[_0x1ccaa1(0x33d)],'drawingId':_0x1162aa[_0x1ccaa1(0x252)]}],'wrappingStyle':_0x3859f7}:void 0x0;}})),'value$':Fe(_0x78c716),'hidden$':Ie(_0x78c716)};}function Ge(_0x38dde4,_0x438549,_0x319240,_0x1e5fb3){const _0x2ac09c=_0x252e6;return _0x5b2f8e=>({'id':_0x38dde4,'commandId':c[_0x2ac09c(0x168)]['id'],'type':n[_0x2ac09c(0x340)][_0x2ac09c(0x30a)],'icon':_0x319240,'title':_0x1e5fb3,'tooltip':_0x1e5fb3,'hidden$':Ie(_0x5b2f8e),'params':()=>{const _0x24610c=_0x2ac09c;let _0x2ff54c=z(_0x5b2f8e);return _0x2ff54c?{'unitId':_0x2ff54c[_0x24610c(0x148)],'subUnitId':_0x2ff54c['subUnitId'],'drawingIds':[_0x2ff54c['drawingId']],'arrangeType':_0x438549}:void 0x0;}});}const Ke=Ge(Oe,o[_0x252e6(0x1ed)]['forward'],'MoveUpIcon',_0x252e6(0x19e)),qe=Ge(ke,o[_0x252e6(0x1ed)][_0x252e6(0x1a0)],_0x252e6(0x366),_0x252e6(0x2ce)),Je=Ge(Ae,o[_0x252e6(0x1ed)][_0x252e6(0x2ad)],_0x252e6(0xe9),'shape-editor-ui.arrange.front'),Ye=Ge(je,o[_0x252e6(0x1ed)][_0x252e6(0x1f2)],_0x252e6(0x319),_0x252e6(0x217));function Xe(_0x57caa4){const _0x4068c3=_0x252e6;let _0x2efbe2=_0x57caa4[_0x4068c3(0x286)](n[_0x4068c3(0x308)]);return{'activated$':(0x0,p[_0x4068c3(0x1c5)])(()=>_0x2efbe2[_0x4068c3(0x25e)]['pipe']((0x0,p[_0x4068c3(0x293)])(_0x2efbe2[_0x4068c3(0x3be)]),(0x0,p[_0x4068c3(0xf2)])(_0x3872a4=>_0x3872a4[_0x4068c3(0x234)]===!0x0&&_0x3872a4['id']==='doc.shape.edit.panel'),(0x0,p[_0x4068c3(0x298)])())),'id':j['id'],'type':n[_0x4068c3(0x340)]['BUTTON'],'icon':'ShapeFormatSettingIcon','title':_0x4068c3(0x1a7),'tooltip':'docs-shape-ui.formatShape','hidden$':Ie(_0x57caa4),'params':()=>{const _0x693f97=_0x4068c3;let _0x38456d=z(_0x57caa4);return _0x38456d?{'unitId':_0x38456d[_0x693f97(0x148)],'subUnitId':_0x38456d['subUnitId'],'drawingId':_0x38456d['drawingId']}:void 0x0;}};}function _0x2560(_0x576011,_0x15f22a){_0x576011=_0x576011-0x90;const _0x406921=_0x4069();let _0x2560ed=_0x406921[_0x576011];return _0x2560ed;}const Ze={[n['MenuManagerPosition'][_0x252e6(0x1c4)]]:{[T]:{'order':0x64,'title':_0x252e6(0x1a7),'contextual':!0x0,'docs-shape-ui.ribbon.shape-format.quick-styles':{'order':0x0,[N['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Re},[P['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':ze}},'docs-shape-ui.ribbon.shape-format.style':{'order':0x1,[Te]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x68},'menuItemFactory':Ve}},'docs-shape-ui.ribbon.shape-format.text':{'order':0x2,[Ee]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x158},'menuItemFactory':He}},'docs-shape-ui.ribbon.shape-format.arrange':{'order':0x3,[Me]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'columnSpan':0x2,'showLabel':!0x0},'menuItemFactory':We},[Oe]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x3},'menuItemFactory':Ke},[ke]:{'order':0x2,'gridLayout':{'row':0x2,'column':0x3},'menuItemFactory':qe},[Ae]:{'order':0x3,'gridLayout':{'row':0x1,'column':0x4},'menuItemFactory':Je},[je]:{'order':0x4,'gridLayout':{'row':0x2,'column':0x4},'menuItemFactory':Ye}},'docs-shape-ui.ribbon.shape-format.formula':{'order':0x4,[De]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'rowSpan':0x2,'width':0x78},'menuItemFactory':Ue}},'docs-shape-ui.ribbon.shape-format.advanced':{'order':0x5,[j['id']]:{'order':0x0,'gridLayout':{'row':0x1,'column':0x1,'showLabel':!0x0},'menuItemFactory':Xe},[e[_0x252e6(0x1c8)]['id']]:{'order':0x1,'gridLayout':{'row':0x2,'column':0x1,'showLabel':!0x0},'menuItemFactory':e[_0x252e6(0x3b5)]}}}}},Qe={[n[_0x252e6(0x31c)][_0x252e6(0x374)]]:{[C['id']]:{'order':0x3,'gridLayout':{'row':0x2,'column':0x2},'menuItemFactory':_0xf7d95c=>({...ce(_0xf7d95c),'title':void 0x0})}},[n[_0x252e6(0x31c)][_0x252e6(0x241)]]:{[A['id']]:{'order':0x1,'gridLayout':{'row':0x1,'column':0x2,'rowSpan':0x2,'showLabel':!0x0},'menuItemFactory':de}},[n[_0x252e6(0x167)][_0x252e6(0x283)]]:{[n['ContextMenuGroup'][_0x252e6(0x1ee)]]:{[t[_0x252e6(0x10b)]]:{[C['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':le}}},[t[_0x252e6(0x1d2)]]:{[n[_0x252e6(0x35a)]['LAYOUT']]:{[C['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':le}}},[t['EMPTY_PARAGRAPH_MENU_ID']]:{[n[_0x252e6(0x35a)][_0x252e6(0x1ee)]]:{[C['id']]:{'replace':!0x0,'order':0x8,'menuItemFactory':ue}}},[t['DOC_PARAGRAPH_T_INSERT_MENU_ID']]:{'insert':{[C['id']]:{'replace':!0x0,'order':0x2,'menuItemFactory':ce}}},[t[_0x252e6(0x1c9)]]:{'insert':{[C['id']+_0x252e6(0x1bd)]:{'replace':!0x0,'order':0x2,'menuItemFactory':le}}}}};var $e=_0x252e6(0x2a7),et=_0x252e6(0x1be);const B={'type':o[_0x252e6(0x3a4)]['OPERATION'],'id':_0x252e6(0x2e6),'handler'(){return!0x0;}},tt=_0x252e6(0x169),nt={};function V(_0x1f3567){'@babel/helpers - typeof';const _0xc9f110=_0x252e6;return V=typeof Symbol==_0xc9f110(0xa1)&&typeof Symbol[_0xc9f110(0x321)]=='symbol'?function(_0x1ee92b){return typeof _0x1ee92b;}:function(_0x582d9a){const _0x401110=_0xc9f110;return _0x582d9a&&typeof Symbol==_0x401110(0xa1)&&_0x582d9a['constructor']===Symbol&&_0x582d9a!==Symbol['prototype']?_0x401110(0x18f):typeof _0x582d9a;},V(_0x1f3567);}function rt(_0x2eb78c,_0x446c3a){const _0x2ef1d7=_0x252e6;if(V(_0x2eb78c)!=_0x2ef1d7(0x35b)||!_0x2eb78c)return _0x2eb78c;var _0x57a448;if(typeof Symbol<'u'&&(_0x57a448=_0x2eb78c[Symbol[_0x2ef1d7(0x24f)]])!==void 0x0){var _0x3e0c25=_0x57a448[_0x2ef1d7(0x2b2)](_0x2eb78c,_0x446c3a||_0x2ef1d7(0x1a8));if(V(_0x3e0c25)!=_0x2ef1d7(0x35b))return _0x3e0c25;throw TypeError(_0x2ef1d7(0xf5));}return(_0x446c3a==='string'?String:Number)(_0x2eb78c);}function it(_0x4b6522){const _0x71eb10=_0x252e6;var _0x33fac7=rt(_0x4b6522,'string');return V(_0x33fac7)==_0x71eb10(0x18f)?_0x33fac7:_0x33fac7+'';}function H(_0xd1a947,_0x509e41,_0x294773){const _0x386358=_0x252e6;return(_0x509e41=it(_0x509e41))in _0xd1a947?Object[_0x386358(0x24e)](_0xd1a947,_0x509e41,{'value':_0x294773,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xd1a947[_0x509e41]=_0x294773,_0xd1a947;}var at=class extends l[_0x252e6(0x1d1)]{constructor(_0x3408d3,_0x3b7aae){const _0x123188=_0x252e6;super(_0x3408d3,_0x3b7aae),H(this,'_shapeId',null),H(this,_0x123188(0x277),null),H(this,_0x123188(0x124),null),H(this,_0x123188(0x127),null),_0x3b7aae&&this[_0x123188(0x138)](_0x3b7aae);}[_0x252e6(0x361)](){const _0x4e69c7=_0x252e6;return{'unitId':this[_0x4e69c7(0x124)],'subUnitId':this[_0x4e69c7(0x127)],'drawingId':this[_0x4e69c7(0x2a9)]};}['setShapeProps'](_0x487b12){const _0x5b5214=_0x252e6;_0x487b12['shapeId']!==void 0x0&&(this[_0x5b5214(0x2a9)]=_0x487b12[_0x5b5214(0x350)]),_0x487b12[_0x5b5214(0x2e9)]!==void 0x0&&(this[_0x5b5214(0x277)]=_0x487b12[_0x5b5214(0x2e9)]),_0x487b12[_0x5b5214(0x148)]!==void 0x0&&(this[_0x5b5214(0x124)]=_0x487b12['unitId']),_0x487b12[_0x5b5214(0x33d)]!==void 0x0&&(this[_0x5b5214(0x127)]=_0x487b12[_0x5b5214(0x33d)]),this[_0x5b5214(0x377)]({'width':_0x487b12[_0x5b5214(0x256)],'height':_0x487b12['height']});}['_draw'](_0xd6ac34){const _0x1be5ab=_0x252e6;l['Circle'][_0x1be5ab(0x3ba)](_0xd6ac34,{'radius':i['ShapeDefaultConfig']['adjHandleSize'],'fill':i[_0x1be5ab(0x38b)][_0x1be5ab(0x317)],'stroke':i[_0x1be5ab(0x38b)][_0x1be5ab(0x378)],'strokeWidth':0x1,'evented':!0x0});}};function ot(_0x4a5256,_0x3b8710,_0x12680f){const _0x35714b=_0x252e6;let _0x1ac9cc={..._0x3b8710,'dataModel':{..._0x3b8710[_0x35714b(0x1fe)]??{},..._0x12680f?{'doc':_0x12680f}:null}},_0x4dbf9f=(0x0,e[_0x35714b(0x39b)])(_0x4a5256,_0x1ac9cc),_0x3b42ae=(0x0,e[_0x35714b(0x19b)])(_0x4dbf9f);return{'clip':(0x0,e[_0x35714b(0x259)])(_0x4dbf9f,_0x3b42ae),'wrapStrategy':_0x3b42ae};}var U=class extends l['Shape']{constructor(_0x4f75d9,_0x52dcc0){const _0x36c2da=_0x252e6;super(_0x4f75d9,_0x52dcc0),H(this,'_hyperLinkRegions',[]),H(this,_0x36c2da(0x2d3),void 0x0),H(this,'_formulaAnimation',new e[(_0x36c2da(0x26b))](()=>this[_0x36c2da(0x2ee)](!0x0),()=>this[_0x36c2da(0x21e)]())),H(this,'_transformCalculateSrcRect',!0x0),H(this,_0x36c2da(0x20f),o[_0x36c2da(0x122)][_0x36c2da(0x21c)]),H(this,_0x36c2da(0x1e8),!0x0),this[_0x36c2da(0x2d3)]={..._0x52dcc0},this[_0x36c2da(0x307)][_0x36c2da(0x95)](_0x52dcc0[_0x36c2da(0xf9)],_0x52dcc0[_0x36c2da(0xe0)]!==!0x1),this[_0x36c2da(0x37a)](),this[_0x36c2da(0x21e)]();}[_0x252e6(0x37a)](){const _0x482a09=_0x252e6;this[_0x482a09(0x14c)][_0x482a09(0x30e)](_0x31413f=>{const _0x421d40=_0x482a09;this[_0x421d40(0x2d8)](_0x31413f);});}[_0x252e6(0x210)](_0x55d85f){const _0x544704=_0x252e6;this['_props'][_0x544704(0x227)]=_0x55d85f;}['resolveHyperLinkAt'](_0x5a75a3){const _0x1fcd9a=_0x252e6;if(this['_props'][_0x1fcd9a(0x2de)])return null;let _0x3f8f30=this['getInverseCoord'](_0x5a75a3),{width:_0x4d91f9,height:_0x333906}=this[_0x1fcd9a(0xa0)]();return(0x0,e[_0x1fcd9a(0x2d4)])(this[_0x1fcd9a(0x37d)],{'x':(this[_0x1fcd9a(0x12e)]?-_0x3f8f30['x']:_0x3f8f30['x'])+_0x4d91f9/0x2,'y':_0x3f8f30['y']+_0x333906/0x2});}[_0x252e6(0x115)](_0x55a872){const _0x388321=_0x252e6;this[_0x388321(0x2d3)][_0x388321(0x2de)]=_0x55a872,this['makeDirty'](!0x0);}[_0x252e6(0x11b)](_0x3b0790,_0x3d0066=!0x0){const _0x1e2fba=_0x252e6;this[_0x1e2fba(0x307)]['setPresentation'](_0x3b0790,_0x3d0066),this[_0x1e2fba(0x2d3)]['formulaPresentation']=_0x3b0790,this[_0x1e2fba(0x21e)](),this[_0x1e2fba(0x2ee)](!0x0);}['_applyFormulaAutoFitSize'](){const _0x70df22=_0x252e6;let _0xd98491=this[_0x70df22(0x2d3)]['shapeModel'],_0x475d64=_0xd98491[_0x70df22(0x21f)](),_0x365605=(0x0,e[_0x70df22(0x19d)])(_0x475d64==null?void 0x0:_0x475d64['dataModel']),_0x59443c=_0x365605==null?void 0x0:_0x365605[_0x70df22(0x2dd)],_0x59932e=this[_0x70df22(0x307)][_0x70df22(0x2eb)]();if(!_0x59443c||_0x59932e['length']===0x0)return;_0xd98491[_0x70df22(0x2f1)]({'width':this[_0x70df22(0x256)],'height':this[_0x70df22(0x226)]});let _0xb79dfa=(0x0,e[_0x70df22(0x9b)])({'documentData':_0x59932e[_0x70df22(0xf2)](_0xb7daf9=>(0x0,a[_0x70df22(0x1f6)])(_0x59443c,_0xb7daf9)),'height':this[_0x70df22(0x226)],'shapeData':_0xd98491[_0x70df22(0x192)](),'textRect':_0xd98491[_0x70df22(0xb5)]({'left':0x0,'top':0x0,'width':this[_0x70df22(0x256)],'height':this[_0x70df22(0x226)]}),'width':this['width']});if(_0xb79dfa){var _0x393e30;this[_0x70df22(0x2a2)](_0xb79dfa[_0x70df22(0x256)],_0xb79dfa['height']),(_0x393e30=this[_0x70df22(0x26d)]())==null||(_0x393e30=_0x393e30[_0x70df22(0x295)]())==null||_0x393e30['debounceRefreshControls']();}}get[_0x252e6(0x148)](){const _0x3c4b37=_0x252e6;return this[_0x3c4b37(0x2d3)]['unitId'];}get[_0x252e6(0x33d)](){return this['_props']['subUnitId'];}['_updateSrcRectByTransform'](_0x3ab079){const _0xa49c22=_0x252e6;if(this[_0xa49c22(0x2d3)][_0xa49c22(0x2b7)]==null||!this[_0xa49c22(0x303)])return;let {width:_0x56dab9,height:_0x4a1e7d}=this,{width:_0x569dc4=0x0,height:_0x57054f=0x0}=_0x3ab079[_0xa49c22(0x23c)],{left:_0x591511=0x0,top:_0x2c5a6d=0x0,right:_0xd768bb=0x0,bottom:_0x3665cc=0x0}=this[_0xa49c22(0x2d3)][_0xa49c22(0x2b7)],_0xa44533=_0x591511,_0x1d593d=_0x2c5a6d,_0x15ea7a=_0xd768bb,_0x15dec7=_0x3665cc,_0x5e887b=!0x1;if(_0x569dc4!==0x0&&_0x569dc4!==_0x56dab9){let _0x1e50c6=_0x591511/_0x569dc4,_0x11f458=_0xd768bb/_0x569dc4;_0xa44533=_0x56dab9*_0x1e50c6,_0x15ea7a=_0x56dab9*_0x11f458,_0x5e887b=!0x0;}if(_0x57054f!==0x0&&_0x57054f!==_0x4a1e7d){let _0x1f94e7=_0x2c5a6d/_0x57054f,_0x2c9781=_0x3665cc/_0x57054f;_0x1d593d=_0x4a1e7d*_0x1f94e7,_0x15dec7=_0x4a1e7d*_0x2c9781,_0x5e887b=!0x0;}_0x5e887b&&this[_0xa49c22(0x362)]({'left':_0xa44533,'top':_0x1d593d,'right':_0x15ea7a,'bottom':_0x15dec7});}[_0x252e6(0x362)](_0x7a6470){const _0x50af8d=_0x252e6;this[_0x50af8d(0x2d3)][_0x50af8d(0x2b7)]=_0x7a6470,this[_0x50af8d(0x2ee)](!0x0);}['setFillImage'](_0x23507c){const _0x4b6a70=_0x252e6;this[_0x4b6a70(0x2d3)]['image']=_0x23507c,this[_0x4b6a70(0x2ee)](!0x0);}set['transform'](_0x2f8b61){const _0x3a085b=_0x252e6;this[_0x3a085b(0xeb)]=_0x2f8b61;}get[_0x252e6(0x182)](){const _0x4192c2=_0x252e6;this[_0x4192c2(0xeb)]||this[_0x4192c2(0x13d)]();let _0x5a16dc=this['_transform']['clone']();return this[_0x4192c2(0x94)](_0x5a16dc);}get[_0x252e6(0x3a0)](){const _0xc8aedf=_0x252e6;return this[_0xc8aedf(0x2d3)][_0xc8aedf(0x3a0)];}get[_0x252e6(0x350)](){const _0x50a3f3=_0x252e6;return this[_0x50a3f3(0x2d3)][_0x50a3f3(0x350)];}get[_0x252e6(0x205)](){const _0x444a5f=_0x252e6;return l[_0x444a5f(0x23a)][_0x444a5f(0xb8)];}[_0x252e6(0x19a)](_0x5d5679,_0x2e3293,_0x18bc90,_0x238c90){const _0x3cabb7=_0x252e6;let _0x9fe9f=this[_0x3cabb7(0x2d3)][_0x3cabb7(0x3a0)];if(!_0x9fe9f||!_0x2e3293)return;let _0x187055=_0x18bc90??this[_0x3cabb7(0x256)],_0x27c565=_0x238c90??this[_0x3cabb7(0x226)],_0x3ed43f={'shapeType':_0x9fe9f[_0x3cabb7(0x3b8)](),'width':_0x187055,'height':_0x27c565},_0x54425b={'renderMode':i[_0x3cabb7(0x31b)][_0x3cabb7(0x30d)],'oKey':this[_0x3cabb7(0x306)],'image':this[_0x3cabb7(0x2d3)]['image'],'angle':this[_0x3cabb7(0xc1)]};_0x9fe9f[_0x3cabb7(0x2f1)](_0x3ed43f),_0x5d5679[_0x3cabb7(0x23d)]();let _0x52ca87={'top':0x0,'left':0x0,'width':_0x187055,'height':_0x27c565},_0x2443d3=_0x9fe9f[_0x3cabb7(0x3ac)](_0x52ca87);_0x2443d3?this[_0x3cabb7(0x186)](_0x5d5679,_0x2443d3,_0x31a6c2=>{const _0x201931=_0x3cabb7;_0x9fe9f[_0x201931(0x29d)](_0x31a6c2,_0x52ca87,_0x54425b);}):(this['_releaseRenderCache'](),_0x9fe9f[_0x3cabb7(0x29d)](_0x5d5679,_0x52ca87,_0x54425b)),_0x5d5679['restore']();let _0x7e8410=_0x9fe9f['getShapeTextData'](),_0x56981a=_0x9fe9f[_0x3cabb7(0xb5)](_0x52ca87),_0x54f59b=_0x9fe9f[_0x3cabb7(0xb3)]();if(_0x7e8410&&_0x56981a&&!_0x54f59b){_0x5d5679['save'](),this['getState']()[_0x3cabb7(0x12e)]&&_0x5d5679[_0x3cabb7(0xfd)](-0x1,0x1);let _0x12e138=_0x187055/0x2,_0x442420=_0x27c565/0x2;_0x5d5679[_0x3cabb7(0xfc)](-_0x12e138,-_0x442420),_0x5d5679['beginPath'](),this['_drawShapeText'](_0x5d5679,_0x7e8410,_0x56981a),_0x5d5679['restore']();}}[_0x252e6(0x3c1)](_0x20eef9){}[_0x252e6(0x320)](_0x5cf075,_0x356fec,_0x4b13ba){const _0x35ff97=_0x252e6;var _0x23c193;this[_0x35ff97(0x37d)]=[],this[_0x35ff97(0x2d3)][_0x35ff97(0x2de)]||(!((_0x23c193=_0x356fec[_0x35ff97(0x1fe)])!=null&&_0x23c193[_0x35ff97(0x2dd)])&&_0x35ff97(0x91)in _0x356fec&&_0x356fec[_0x35ff97(0x91)]===!0x1?this[_0x35ff97(0xc3)](_0x5cf075,_0x356fec,_0x4b13ba):this['_drawRichText'](_0x5cf075,_0x356fec,_0x4b13ba));}[_0x252e6(0xc3)](_0x4e2063,_0x38269a,_0x16fd5a){const _0x1a8959=_0x252e6;this['_drawRichText'](_0x4e2063,{..._0x38269a,'text':_0x38269a[_0x1a8959(0x2b0)]??'','dataModel':{'doc':(0x0,e[_0x1a8959(0x16e)])(_0x38269a,'docs-shape-text-'+this['oKey'])}},_0x16fd5a);}[_0x252e6(0x184)](_0x319487,_0x4c1464,_0x429b94){const _0xd13e30=_0x252e6;(0x0,e[_0xd13e30(0x23f)])(_0x319487,this['_formulaAnimation'],(_0x57fa31,_0x1a1825,_0x24cef1)=>{const _0x283bf2=_0xd13e30;this['_drawRichTextLayer'](_0x57fa31,_0x4c1464,_0x429b94,_0x1a1825,_0x24cef1===_0x283bf2(0x2a4));});}[_0x252e6(0xde)](_0x2620d4,_0x15fcd1,_0x5758ac,_0x31b61b,_0x2a1f71){const _0x474ce1=_0x252e6;let _0x1c7351=this['_props'][_0x474ce1(0xa6)];if(!_0x15fcd1[_0x474ce1(0x1fe)]||!_0x1c7351){_0x1c7351||console[_0x474ce1(0x382)]('[DrawingShape]\x20LocaleService\x20is\x20required\x20for\x20rich\x20text\x20rendering');return;}let _0x36eb96=(0x0,e['normalizeShapeTextModel'])(_0x15fcd1[_0x474ce1(0x1fe)]);if(!_0x36eb96)return;let _0x391242=_0x36eb96[_0x474ce1(0x2dd)];if(!_0x391242)return;let _0x4bc0e9=(0x0,a['createShapeFormulaDocument'])(_0x391242,_0x31b61b),_0x16e8e3=_0x36eb96['va']??o[_0x474ce1(0x2d1)][_0x474ce1(0xa2)],_0x55e607=_0x36eb96['ha']??o['HorizontalAlign'][_0x474ce1(0x20c)],_0x159b07=ot(this[_0x474ce1(0x2d3)][_0x474ce1(0x3a0)][_0x474ce1(0x192)](),_0x15fcd1,_0x4bc0e9),_0x58628d=_0x15fcd1['isHorizontal'],_0x30fee3=(0x0,e[_0x474ce1(0xe6)])(_0x4bc0e9,{'isHorizontal':_0x58628d!==!0x1,'textRect':_0x5758ac,'verticalAlign':_0x16e8e3,'horizontalAlign':_0x55e607,'wrapStrategy':_0x159b07[_0x474ce1(0x13a)]}),_0x138825=new o['DocumentDataModel'](_0x30fee3),_0x39db34=new l[(_0x474ce1(0x28a))](_0x138825),_0x2901bb=l[_0x474ce1(0x2b3)]['create'](_0x39db34,_0x1c7351);_0x2901bb['calculate']();let _0x457974=_0x2901bb[_0x474ce1(0x2c2)]()[_0x474ce1(0xbc)],_0x2d6476=(0x0,e['resolveShapeTextDocumentRenderLayout'])({'contentHeight':_0x457974,'verticalAlign':_0x16e8e3,'viewportHeight':_0x5758ac['height']});_0x138825[_0x474ce1(0x201)]({'pageSize':{'width':_0x58628d===!0x1?_0x5758ac['height']:_0x5758ac[_0x474ce1(0x256)],'height':(0x0,e['resolveShapeTextDocumentPageHeight'])(_0x4bc0e9,_0x2d6476['contentHeight'])}}),_0x138825['updateDocumentDataMargin']({'t':_0x2d6476['marginTop']}),_0x2901bb[_0x474ce1(0x2d5)]();let _0xf25518=new l[(_0x474ce1(0xbe))]('shape-text-'+this[_0x474ce1(0x306)],_0x2901bb,{'pageMarginLeft':0x0,'pageMarginTop':0x0,'onTextFillImageLoaded':()=>this[_0x474ce1(0x2ee)](!0x0)});_0xf25518[_0x474ce1(0x2a2)](_0x5758ac[_0x474ce1(0x256)],_0x2d6476[_0x474ce1(0x15c)]),_0x2620d4[_0x474ce1(0x23d)](),_0x2620d4[_0x474ce1(0x34b)](_0x5758ac['left'],_0x5758ac[_0x474ce1(0x1dc)]),_0x159b07['clip']&&(_0x2620d4[_0x474ce1(0xd3)](),_0x2620d4[_0x474ce1(0x235)](0x0,_0x2d6476[_0x474ce1(0x1c1)],_0x5758ac[_0x474ce1(0x256)],_0x2d6476['clipHeight']),_0x2620d4['clip']()),_0x2d6476['contentVerticalOffset']&&_0x2620d4[_0x474ce1(0x34b)](0x0,_0x2d6476[_0x474ce1(0x105)]),_0xf25518[_0x474ce1(0x388)](_0x2620d4),_0x2a1f71&&(this[_0x474ce1(0x37d)]=(0x0,e['createShapeTextHyperLinkRegions'])(_0xf25518,{'left':_0x5758ac[_0x474ce1(0x16b)],'top':_0x5758ac['top']+_0x2d6476[_0x474ce1(0x105)]},_0x159b07[_0x474ce1(0x22a)]?{'left':_0x5758ac[_0x474ce1(0x16b)],'right':_0x5758ac[_0x474ce1(0x16b)]+_0x5758ac[_0x474ce1(0x256)],'top':_0x5758ac[_0x474ce1(0x1dc)]+_0x2d6476[_0x474ce1(0x1c1)],'bottom':_0x5758ac[_0x474ce1(0x1dc)]+_0x2d6476[_0x474ce1(0x1c1)]+_0x2d6476[_0x474ce1(0x2c1)]}:void 0x0)),_0x2620d4[_0x474ce1(0x2a0)](),_0xf25518[_0x474ce1(0x32e)](),_0x2901bb[_0x474ce1(0x32e)](),_0x39db34[_0x474ce1(0x32e)](),_0x138825[_0x474ce1(0x32e)]();}[_0x252e6(0x29d)](_0x10855c,_0x2b22c4,_0x211795=!0x1){const _0x219ec9=_0x252e6;if(!this[_0x219ec9(0x234)])return this[_0x219ec9(0x2ee)](!0x1),this;let {width:_0x117e6e,height:_0x26d081,left:_0xe2e92a,top:_0x2c4cb9}=this,_0x38a14b=this[_0x219ec9(0xa0)]();if(_0x117e6e=_0x38a14b['width'],_0x26d081=_0x38a14b[_0x219ec9(0x226)],_0xe2e92a=_0x38a14b[_0x219ec9(0x16b)],_0x2c4cb9=_0x38a14b[_0x219ec9(0x1dc)],this[_0x219ec9(0x332)](_0x2b22c4)){let {top:_0x445d46,left:_0x41913a,bottom:_0x47a485,right:_0x469539}=_0x2b22c4[_0x219ec9(0x39f)];if(_0x117e6e+this['strokeWidth']+_0xe2e92a<_0x41913a||_0x469539<_0xe2e92a||_0x26d081+this[_0x219ec9(0x35d)]+_0x2c4cb9<_0x445d46||_0x47a485<_0x2c4cb9)return this;}let _0x27f19a=_0xe2e92a+_0x117e6e/0x2,_0x27952d=_0x2c4cb9+_0x26d081/0x2,_0x5340e5=this[_0x219ec9(0x182)][_0x219ec9(0x109)]();if(this[_0x219ec9(0x2d3)][_0x219ec9(0x2de)]){let _0x5f2928=this[_0x219ec9(0x326)](),_0xc1d92d=new l[(_0x219ec9(0x14b))]();_0xc1d92d['composeMatrix']({..._0x5f2928}),_0x5340e5=_0xc1d92d[_0x219ec9(0x109)]();}return _0x10855c[_0x219ec9(0x23d)](),this[_0x219ec9(0x2d3)][_0x219ec9(0x3a0)][_0x219ec9(0x343)]===!0x0||_0x10855c['transform'](_0x5340e5[0x0],_0x5340e5[0x1],_0x5340e5[0x2],_0x5340e5[0x3],_0x27f19a,_0x27952d),this[_0x219ec9(0x19a)](_0x10855c,_0x2b22c4,_0x117e6e,_0x26d081),_0x10855c[_0x219ec9(0x2a0)](),this[_0x219ec9(0x2ee)](!0x1),this;}[_0x252e6(0x9f)](_0x4b3cc8){const _0x375ff3=_0x252e6;let {left:_0x1d7dd4,top:_0x3e98f7,width:_0x4963bd,height:_0x417b46}=this[_0x375ff3(0xa0)](),_0x56a255=this[_0x375ff3(0x182)]['getMatrix'](),_0x314c6d=_0x1d7dd4+_0x4963bd/0x2,_0x33289d=_0x3e98f7+_0x417b46/0x2,_0x1afd55=new l[(_0x375ff3(0x14b))]([_0x56a255[0x0],_0x56a255[0x1],_0x56a255[0x2],_0x56a255[0x3],_0x314c6d,_0x33289d]),_0x2a85c6=this[_0x375ff3(0x1ab)]();return(this['isInGroup']&&(_0x2a85c6==null?void 0x0:_0x2a85c6[_0x375ff3(0x205)])===l[_0x375ff3(0x23a)][_0x375ff3(0x2da)]?_0x2a85c6[_0x375ff3(0x1e3)][_0x375ff3(0x2f6)](_0x1afd55):_0x1afd55)[_0x375ff3(0x11f)]()[_0x375ff3(0x349)](_0x4b3cc8);}[_0x252e6(0x285)](_0x4c3ead){const _0x23d91f=_0x252e6;let {left:_0x5b8a5e,top:_0x9b0613,width:_0x7a0fdc,height:_0x14353f}=this[_0x23d91f(0xa0)](),_0x463fdf=_0x5b8a5e+_0x7a0fdc/0x2,_0x525aa3=_0x9b0613+_0x14353f/0x2,_0x356f79=this[_0x23d91f(0x182)]['getMatrix'](),_0x3cd372=new l[(_0x23d91f(0x14b))]([_0x356f79[0x0],_0x356f79[0x1],_0x356f79[0x2],_0x356f79[0x3],_0x463fdf,_0x525aa3]),_0x5c712c=this['getParent'](),_0x3025e6=(this[_0x23d91f(0xad)]&&(_0x5c712c==null?void 0x0:_0x5c712c[_0x23d91f(0x205)])===l[_0x23d91f(0x23a)][_0x23d91f(0x2da)]?_0x5c712c[_0x23d91f(0x1e3)][_0x23d91f(0x2f6)](_0x3cd372):_0x3cd372)['invert']()[_0x23d91f(0x349)](_0x4c3ead),_0x3af9ba=_0x7a0fdc/0x2,_0x49b8c9=_0x14353f/0x2,_0x4db939=this[_0x23d91f(0x2d3)][_0x23d91f(0x3a0)];return _0x4db939&&_0x4db939[_0x23d91f(0xb3)]()?_0x4db939[_0x23d91f(0x3bb)](_0x3025e6['x'],_0x3025e6['y'],_0x7a0fdc,_0x14353f):_0x3025e6['x']>=-_0x3af9ba-this[_0x23d91f(0x35d)]/0x2&&_0x3025e6['x']<=_0x3af9ba+this[_0x23d91f(0x35d)]/0x2&&_0x3025e6['y']>=-_0x49b8c9-this[_0x23d91f(0x35d)]/0x2&&_0x3025e6['y']<=_0x49b8c9+this[_0x23d91f(0x35d)]/0x2;}[_0x252e6(0x32e)](){const _0x5bb94b=_0x252e6;this[_0x5bb94b(0x307)][_0x5bb94b(0x32e)](),this[_0x5bb94b(0x2d3)][_0x5bb94b(0x3a0)]=null,super[_0x5bb94b(0x32e)]();}};let W=class extends o[_0x252e6(0x1bf)]{constructor(_0x196a47,_0x482cfb,_0xa28a9f,_0x133809){const _0x437362=_0x252e6;super(),this[_0x437362(0x1d0)]=_0x196a47,this['_drawingManagerService']=_0x482cfb,this['_docsShapeService']=_0xa28a9f,this[_0x437362(0x22c)]=_0x133809,H(this,'_activeShapeId',null),H(this,_0x437362(0x124),null),H(this,'_subUnitId',null),H(this,'_activeShapeAdjustPointList',void 0x0),H(this,_0x437362(0x22f),[]),H(this,_0x437362(0x345),0x0),H(this,_0x437362(0x261),0x0),H(this,'_baseShapeWidth',0x0),H(this,_0x437362(0x26f),0x0),H(this,'_isStartAdjusting',!0x1),H(this,_0x437362(0x264),!0x1),H(this,_0x437362(0x324),void 0x0),H(this,'_activeShapeModel',void 0x0),H(this,_0x437362(0x117),void 0x0),H(this,_0x437362(0x116),void 0x0),this[_0x437362(0x29e)](),this[_0x437362(0x39e)]();}['clearAdjustControls'](){const _0x4a0d16=_0x252e6;this[_0x4a0d16(0xea)]();}[_0x252e6(0x178)](){const _0x1ed6a9=_0x252e6;this[_0x1ed6a9(0x183)](!0x0);}[_0x252e6(0x240)](_0xc81359,_0xd8ffa4,_0x3702f4){const _0x2864cd=_0x252e6;var _0x2799ee;return(_0x2799ee=this[_0x2864cd(0x389)][_0x2864cd(0xd7)](_0xc81359,_0xd8ffa4,_0x3702f4))==null?void 0x0:_0x2799ee['getDrawingPoints']();}[_0x252e6(0x17f)](_0x439001,_0x307765,_0x2f7342,_0x4a4295){const _0x3775f9=_0x252e6;var _0x1bcd98;return(_0x1bcd98=this[_0x3775f9(0x389)][_0x3775f9(0xd7)](_0x439001,_0x307765,_0x2f7342))==null?void 0x0:_0x1bcd98['getAdjustInfoByName'](_0x4a4295);}[_0x252e6(0x108)](){const _0x1a1996=_0x252e6;return this['_unitId']===null||this['_subUnitId']===null||this['_activeShapeId']===null?null:this['_drawingManagerService']['getDrawingByParam']({'unitId':this[_0x1a1996(0x124)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x1a1996(0x341)]})??null;}[_0x252e6(0x12d)](_0x39a746){const _0x326932=_0x252e6;if(this[_0x326932(0x124)]===null||this[_0x326932(0x127)]===null||this[_0x326932(0x341)]===null)return null;let _0x39fa73=(0x0,u[_0x326932(0x99)])({'unitId':this[_0x326932(0x124)],'subUnitId':this['_subUnitId'],'drawingId':this[_0x326932(0x341)]}),_0x57227b=_0x39a746[_0x326932(0x10a)](_0x39fa73);return _0x57227b instanceof U?_0x57227b:null;}['_createShapeAdjustControls'](_0x1bbf61=!0x1){const _0x58771e=_0x252e6;if(this['_unitId']===null||this['_subUnitId']===null||this[_0x58771e(0x341)]===null)return;let _0x1d3968=this['_getActiveDrawingParam']();if((_0x1d3968==null?void 0x0:_0x1d3968[_0x58771e(0xd8)])!==o[_0x58771e(0x122)]['DRAWING_SHAPE']||!_0x1d3968[_0x58771e(0x182)])return;let _0x2faab8=this[_0x58771e(0x389)]['getShapeModel'](this['_unitId'],this[_0x58771e(0x127)],this[_0x58771e(0x341)]);if(!_0x2faab8||_0x2faab8[_0x58771e(0xb3)]())return;let {left:_0xfb3cd6=0x0,top:_0x55d072=0x0,width:_0x4a757f=0x0,height:_0x48f1cd=0x0,flipX:_0x28257f,flipY:_0x1a47a4,angle:_0x393e0c=0x0}=_0x1d3968[_0x58771e(0x182)];(_0x1bbf61||!this[_0x58771e(0x193)])&&(_0x2faab8[_0x58771e(0x2f1)]({'width':_0x4a757f,'height':_0x48f1cd}),this[_0x58771e(0x193)]=_0x2faab8[_0x58771e(0x3c1)]());let _0x14aca8=this[_0x58771e(0x193)];if(!(_0x14aca8!=null&&_0x14aca8[_0x58771e(0x2b8)]))return;let {scene:_0x30066f}=this[_0x58771e(0x1d0)];for(let _0x35b0fb of _0x14aca8){let _0x1e8444=this[_0x58771e(0x13c)](_0x35b0fb,_0x4a757f,_0x48f1cd,!!_0x28257f,!!_0x1a47a4,_0x393e0c);this[_0x58771e(0x10f)](_0x30066f,_0x1e8444,_0x1e8444[_0x58771e(0x2e9)],_0xfb3cd6,_0x55d072,this[_0x58771e(0x124)],this[_0x58771e(0x127)]);}}[_0x252e6(0x13c)](_0x59d650,_0x34fdc4,_0x39308d,_0x5b694a,_0x5abd23,_0x15a543){const _0x3ae74c=_0x252e6;let _0x4b848d=_0x59d650['x'],_0x5fc415=_0x59d650['y'];if(_0x5b694a&&(_0x4b848d=_0x34fdc4-_0x4b848d),_0x5abd23&&(_0x5fc415=_0x39308d-_0x5fc415),_0x15a543!==0x0){let _0x4d318c=_0x34fdc4/0x2,_0x25e539=_0x39308d/0x2,_0x3f7d15=_0x15a543*Math['PI']/0xb4,_0x3efa7c=Math['cos'](_0x3f7d15),_0x20c8d6=Math[_0x3ae74c(0xfb)](_0x3f7d15),_0xf7c72=_0x4b848d-_0x4d318c,_0x473b89=_0x5fc415-_0x25e539;_0x4b848d=_0x4d318c+(_0xf7c72*_0x3efa7c-_0x473b89*_0x20c8d6),_0x5fc415=_0x25e539+(_0xf7c72*_0x20c8d6+_0x473b89*_0x3efa7c);}return{'x':_0x4b848d,'y':_0x5fc415,'adjName':_0x59d650[_0x3ae74c(0x2e9)]};}[_0x252e6(0x183)](_0x74e623=!0x1){const _0x34604c=_0x252e6;_0x74e623&&this[_0x34604c(0xea)](),this['_createShapeAdjustControls'](_0x74e623);}['_addShapeAdjustControl'](_0x1d5e7f,_0x1d2580,_0x5279ad,_0x42db32,_0x43c488,_0x1f0bff,_0x51bb85){const _0x42b6f9=_0x252e6;if(!this[_0x42b6f9(0x341)])return;let _0x2d85f3=_0x42b6f9(0x11c)+this[_0x42b6f9(0x341)]+'-'+_0x5279ad,_0x5b6ae4=_0x1d5e7f[_0x42b6f9(0x10a)](_0x2d85f3);if(_0x5b6ae4){_0x5b6ae4[_0x42b6f9(0x377)]({'left':_0x1d2580['x']+_0x42db32-i[_0x42b6f9(0x38b)][_0x42b6f9(0x281)],'top':_0x1d2580['y']+_0x43c488-i[_0x42b6f9(0x38b)]['adjHandleSize']}),_0x5b6ae4['makeDirty'](!0x0);return;}let _0x24230a=new at(_0x2d85f3,{'left':_0x1d2580['x']+_0x42db32-i[_0x42b6f9(0x38b)]['adjHandleSize'],'top':_0x1d2580['y']+_0x43c488-i[_0x42b6f9(0x38b)]['adjHandleSize'],'adjName':_0x5279ad,'shapeId':this[_0x42b6f9(0x341)],'unitId':_0x1f0bff,'subUnitId':_0x51bb85,'width':i[_0x42b6f9(0x38b)][_0x42b6f9(0x281)]+0x8,'height':i[_0x42b6f9(0x38b)][_0x42b6f9(0x281)]+0x8,'zIndex':l[_0x42b6f9(0x223)]+0x1,'evented':!0x0});this[_0x42b6f9(0x22f)]['push'](_0x24230a),this[_0x42b6f9(0x384)](_0x24230a,_0x1d5e7f,_0x5279ad),_0x1d5e7f['addObject'](_0x24230a,l['DRAWING_OBJECT_LAYER_INDEX']+0x1);}[_0x252e6(0xea)](){const _0x77cb4e=_0x252e6;this[_0x77cb4e(0x22f)][_0x77cb4e(0x129)](_0xe2eb69=>_0xe2eb69[_0x77cb4e(0x32e)]()),this[_0x77cb4e(0x22f)]=[];}['_updateAdjustControlPositions'](){const _0x35ace0=_0x252e6;this[_0x35ace0(0x2a5)]();}['_toScenePoint'](_0xb6078,_0x51df32,_0x29bb64){const _0x30e4c6=_0x252e6;let _0x3d7abd=l[_0x30e4c6(0x2dc)][_0x30e4c6(0x1c2)]([_0x51df32,_0x29bb64]),_0x45c26d=_0xb6078[_0x30e4c6(0x1a5)](_0x3d7abd)??_0xb6078[_0x30e4c6(0x2be)]()[0x0];return(_0x45c26d==null?void 0x0:_0x45c26d[_0x30e4c6(0x11d)](_0x3d7abd))??_0x3d7abd;}[_0x252e6(0x384)](_0xc67e80,_0xe64a1,_0x1376d9){const _0x2351ec=_0x252e6;this[_0x2351ec(0x243)]((0x0,o[_0x2351ec(0x18e)])(_0xc67e80[_0x2351ec(0x397)][_0x2351ec(0x30e)]((_0x41b110,_0x45787f)=>{const _0x874c05=_0x2351ec;var _0xc448a;let _0xba351a=_0xc67e80[_0x874c05(0x361)]();this['_activeAdjustInfo']=this[_0x874c05(0x17f)](_0xba351a['unitId'],_0xba351a[_0x874c05(0x33d)],_0xba351a[_0x874c05(0x252)],_0x1376d9),this[_0x874c05(0x272)]=this['_docsShapeService']['getShapeModel'](_0xba351a['unitId'],_0xba351a['subUnitId'],_0xba351a[_0x874c05(0x252)]);let _0x51a28f=this[_0x874c05(0x108)](),_0x1a2839=_0x51a28f==null?void 0x0:_0x51a28f['transform'];if(!_0x51a28f||!_0x1a2839||!this['_activeShapeModel'])return;this['_baseShapeLeft']=_0x1a2839['left']||0x0,this[_0x874c05(0x261)]=_0x1a2839['top']||0x0,this[_0x874c05(0x265)]=_0x1a2839['width']||0x0,this[_0x874c05(0x26f)]=_0x1a2839[_0x874c05(0x226)]||0x0;let _0x4abc91=!!_0x1a2839['flipX'],_0x36ab69=!!_0x1a2839['flipY'],_0x465c8b=_0x1a2839[_0x874c05(0xc1)]||0x0,_0x6ea20d={...((_0xc448a=this[_0x874c05(0x324)])==null?void 0x0:_0xc448a['currentAdjustValues'])??{}};this[_0x874c05(0x368)]=!0x0,_0xe64a1[_0x874c05(0xf0)](),this['_adjHandlerPointerMove']=_0xe64a1[_0x874c05(0x1f8)][_0x874c05(0x30e)]((_0x1209cb,_0x372a86)=>{const _0x588e9d=_0x874c05;var _0x4deff8;if(!this[_0x588e9d(0x368)]||!this['_activeShapeModel']||!this['_activeAdjustInfo'])return;_0xe64a1[_0x588e9d(0xf0)](),_0xe64a1[_0x588e9d(0x158)](l['CURSOR_TYPE'][_0x588e9d(0x33f)]);let _0x241daf=this[_0x588e9d(0x218)](_0xe64a1,_0x1209cb[_0x588e9d(0x266)],_0x1209cb[_0x588e9d(0xed)]),_0x3f3d98=_0x241daf['x']-this[_0x588e9d(0x345)],_0x5147c7=_0x241daf['y']-this[_0x588e9d(0x261)];if(_0x465c8b!==0x0){let _0x570025=this[_0x588e9d(0x265)]/0x2,_0x3c72a5=this[_0x588e9d(0x26f)]/0x2,_0x5a79ba=_0x465c8b*Math['PI']/0xb4,_0x5a5348=Math[_0x588e9d(0x2bd)](_0x5a79ba),_0x59bbbe=Math[_0x588e9d(0xfb)](_0x5a79ba),_0x2249c4=_0x3f3d98-_0x570025,_0x239e91=_0x5147c7-_0x3c72a5;_0x3f3d98=_0x570025+(_0x2249c4*_0x5a5348+_0x239e91*_0x59bbbe),_0x5147c7=_0x3c72a5+(-_0x2249c4*_0x59bbbe+_0x239e91*_0x5a5348);}_0x4abc91&&(_0x3f3d98=this['_baseShapeWidth']-_0x3f3d98),_0x36ab69&&(_0x5147c7=this[_0x588e9d(0x26f)]-_0x5147c7);let _0x5ad12b={'left':0x0,'top':0x0,'width':this[_0x588e9d(0x265)],'height':this[_0x588e9d(0x26f)]},_0x44d8bd=this[_0x588e9d(0x272)][_0x588e9d(0x251)](_0x5ad12b,{'x':_0x3f3d98,'y':_0x5147c7},this[_0x588e9d(0x324)],_0x4abc91,_0x36ab69);if(Object[_0x588e9d(0x3b9)](_0x44d8bd)[_0x588e9d(0x2b8)]!==0x0){for(let [_0x3390ce,_0x4aeb2e]of Object[_0x588e9d(0x134)](_0x44d8bd))this[_0x588e9d(0x272)][_0x588e9d(0x3c3)](_0x3390ce,_0x4aeb2e);this[_0x588e9d(0x272)][_0x588e9d(0x2f1)]({'width':this['_baseShapeWidth'],'height':this[_0x588e9d(0x26f)]}),(_0x4deff8=this[_0x588e9d(0x12d)](_0xe64a1))==null||_0x4deff8[_0x588e9d(0x2ee)](!0x0),this[_0x588e9d(0x193)]=this[_0x588e9d(0x240)](_0xba351a[_0x588e9d(0x148)],_0xba351a[_0x588e9d(0x33d)],_0xba351a['drawingId']),this[_0x588e9d(0x14d)](),_0x372a86[_0x588e9d(0x3ab)]();}}),this[_0x874c05(0x116)]=_0xe64a1[_0x874c05(0x310)][_0x874c05(0x30e)]((_0xd7ea1c,_0x2e03e2)=>{const _0x521fa0=_0x874c05;var _0x5356de,_0x5c5cf6;(_0x5356de=this['_adjHandlerPointerMove'])==null||_0x5356de[_0x521fa0(0xae)](),(_0x5c5cf6=this['_adjHandlerPointerUp'])==null||_0x5c5cf6[_0x521fa0(0xae)](),_0xe64a1['resetCursor']();let _0x4ec1ae=this[_0x521fa0(0x324)];if(_0x4ec1ae&&this[_0x521fa0(0x272)]){let _0x43a9be={};for(let _0x5d4c80 of Object[_0x521fa0(0x3b9)](_0x4ec1ae[_0x521fa0(0x3b2)])){let _0x13d214=this[_0x521fa0(0x272)]['getAdjustValueByName'](_0x5d4c80);_0x13d214!==void 0x0&&(_0x43a9be[_0x5d4c80]=_0x13d214);}Object[_0x521fa0(0x3b9)](_0x43a9be)['length']>0x0&&R(this[_0x521fa0(0x22c)],_0xba351a['unitId'],_0xba351a['subUnitId'],_0xba351a[_0x521fa0(0x252)],{'oldShapeData':{'adjustValues':_0x6ea20d}},{'adjustValues':_0x43a9be});}this['_activeAdjustInfo']=void 0x0,this[_0x521fa0(0x272)]=void 0x0,this['_isStartAdjusting']=!0x1,_0xe64a1[_0x521fa0(0x39d)](),_0x2e03e2[_0x521fa0(0x3ab)]();}),_0x45787f[_0x874c05(0x3ab)]();})));}[_0x252e6(0x39e)](){const _0x228a5f=_0x252e6;let {scene:_0x3ea448}=this[_0x228a5f(0x1d0)],_0x20b7f1=_0x3ea448[_0x228a5f(0x10d)]();this[_0x228a5f(0x243)](_0x20b7f1[_0x228a5f(0x337)]['subscribe'](_0x3fdda2=>{const _0x2f20a6=_0x228a5f;this['_createShapeAdjustControls'](),_0x3fdda2[_0x2f20a6(0xf8)]!==null&&_0x3fdda2[_0x2f20a6(0xf8)]['size']===0x1&&_0x3fdda2[_0x2f20a6(0xf8)][_0x2f20a6(0x1a1)]()['next']()['value']instanceof U&&(this[_0x2f20a6(0x264)]=!0x0);})),this[_0x228a5f(0x243)](_0x20b7f1[_0x228a5f(0x315)]['subscribe'](()=>{const _0x20c1ae=_0x228a5f;this['_isShouldShowDrawingShapeAdjust']&&this[_0x20c1ae(0xea)]();})),this[_0x228a5f(0x243)](_0x3ea448[_0x228a5f(0x310)][_0x228a5f(0x30e)](()=>{const _0xb8e29c=_0x228a5f;this['_isShouldShowDrawingShapeAdjust']&&(this[_0xb8e29c(0x264)]=!0x1,this[_0xb8e29c(0x2a5)]());})),this[_0x228a5f(0x243)](_0x20b7f1['changeEnd$'][_0x228a5f(0x334)](()=>{const _0x12d83a=_0x228a5f;this[_0x12d83a(0x124)]&&this['_subUnitId']&&this[_0x12d83a(0x341)]&&(this['_activeShapeAdjustPointList']=this[_0x12d83a(0x240)](this[_0x12d83a(0x124)],this['_subUnitId'],this[_0x12d83a(0x341)]),this[_0x12d83a(0x14d)]());}));}[_0x252e6(0x29e)](){const _0x3f5bdd=_0x252e6;this[_0x3f5bdd(0x243)](this[_0x3f5bdd(0x22c)][_0x3f5bdd(0xdc)](_0x5032b7=>{const _0x141267=_0x3f5bdd;if(_0x5032b7['id']!==r['UpdateDocShapeDataMutation']['id'])return;let {unitId:_0x5d2c8a,shapeId:_0x221f14}=_0x5032b7[_0x141267(0x355)];_0x5d2c8a===this[_0x141267(0x124)]&&_0x221f14===this[_0x141267(0x341)]&&this[_0x141267(0x178)]();})),this['disposeWithMe'](this['_drawingManagerService'][_0x3f5bdd(0x119)][_0x3f5bdd(0x334)](_0x30b73d=>{const _0x4a27f4=_0x3f5bdd;if(_0x30b73d['length']===0x1){let _0x1d383a=_0x30b73d[0x0],_0x30fac3=this[_0x4a27f4(0x267)][_0x4a27f4(0x1ca)](_0x1d383a);if((_0x30fac3==null?void 0x0:_0x30fac3[_0x4a27f4(0xd8)])===o['DrawingTypeEnum']['DRAWING_SHAPE']){this[_0x4a27f4(0x341)]=_0x1d383a[_0x4a27f4(0x252)],this[_0x4a27f4(0x124)]=_0x1d383a[_0x4a27f4(0x148)],this['_subUnitId']=_0x1d383a[_0x4a27f4(0x33d)],this[_0x4a27f4(0x193)]=this[_0x4a27f4(0x240)](_0x1d383a[_0x4a27f4(0x148)],_0x1d383a[_0x4a27f4(0x33d)],_0x1d383a[_0x4a27f4(0x252)]),this[_0x4a27f4(0xea)](),this[_0x4a27f4(0x2a5)]();return;}}this['_activeShapeId']=null,this['_activeShapeAdjustPointList']=void 0x0,this[_0x4a27f4(0x124)]=null,this['_subUnitId']=null,this['_clearShapeAdjustControls']();})),this['disposeWithMe']((0x0,p[_0x3f5bdd(0xf4)])(this['_drawingManagerService']['update$'],this[_0x3f5bdd(0x267)]['refreshTransform$'])[_0x3f5bdd(0x334)](_0x465088=>{const _0x1dda03=_0x3f5bdd;var _0x251b2c;let _0x1eebe1=_0x465088[_0x1dda03(0x327)](_0x213394=>_0x213394[_0x1dda03(0x252)]===this[_0x1dda03(0x341)]&&_0x213394[_0x1dda03(0x148)]===this['_unitId']&&_0x213394[_0x1dda03(0x33d)]===this[_0x1dda03(0x127)]);_0x1eebe1&&((_0x251b2c=this[_0x1dda03(0x267)][_0x1dda03(0x1ca)](_0x1eebe1))==null?void 0x0:_0x251b2c[_0x1dda03(0xd8)])===o['DrawingTypeEnum'][_0x1dda03(0x21c)]&&this['_updateShapeAdjustControls'](!0x0);})),this['disposeWithMe'](this[_0x3f5bdd(0x267)][_0x3f5bdd(0x27f)][_0x3f5bdd(0x334)](_0x371567=>{const _0x4e8c00=_0x3f5bdd;for(let _0xe7be9d of _0x371567)this['_activeShapeId']===_0xe7be9d[_0x4e8c00(0x252)]&&(this[_0x4e8c00(0x341)]=null,this[_0x4e8c00(0x193)]=void 0x0,this[_0x4e8c00(0x124)]=null,this['_subUnitId']=null,this['_clearShapeAdjustControls']());}));}};W=I([F(0x1,u[_0x252e6(0x3b6)]),F(0x2,(0x0,o['Inject'])(r[_0x252e6(0x1b0)])),F(0x3,o['ICommandService'])],W);let G=class extends o[_0x252e6(0x1bf)]{constructor(_0x4407a7,_0x252f6a){const _0x12d97a=_0x252e6;super(),this[_0x12d97a(0x24d)]=_0x4407a7,this[_0x12d97a(0x37f)]=_0x252f6a,H(this,'_editingParams$',new p[(_0x12d97a(0x3c2))](null)),H(this,_0x12d97a(0xe8),this[_0x12d97a(0x2d9)][_0x12d97a(0x143)]()),H(this,'_onSavingEditorData$',new p[(_0x12d97a(0x3c2))](!0x1)),H(this,_0x12d97a(0x2f0),this['_onSavingEditorData$'][_0x12d97a(0x143)]()),H(this,_0x12d97a(0x35e),void 0x0),this['disposeWithMe'](this[_0x12d97a(0x24d)][_0x12d97a(0x34f)][_0x12d97a(0x334)](()=>{const _0x4fb287=_0x12d97a;let _0x55bd6d=this[_0x4fb287(0x351)]();_0x55bd6d!=null&&_0x55bd6d[_0x4fb287(0x234)]&&!this['_canEdit'](_0x55bd6d)&&this[_0x4fb287(0x115)](null);}));}['dispose'](){const _0x494e69=_0x252e6;this[_0x494e69(0xcb)](),this[_0x494e69(0x2d9)]['next'](null),this[_0x494e69(0x2d9)][_0x494e69(0x290)](),this['_onSavingEditorData$'][_0x494e69(0xbf)](!0x1),this[_0x494e69(0x200)][_0x494e69(0x290)](),super['dispose']();}[_0x252e6(0x115)](_0x3a5414){const _0x39b532=_0x252e6;(_0x3a5414==null||!_0x3a5414[_0x39b532(0x234)]||this[_0x39b532(0x2f5)](_0x3a5414))&&(this['_clearCompletionFrame'](),this[_0x39b532(0x2d9)][_0x39b532(0xbf)](_0x3a5414),(_0x3a5414==null||_0x3a5414[_0x39b532(0x234)]&&this['_onSavingEditorData$']['getValue']())&&this[_0x39b532(0x200)][_0x39b532(0xbf)](!0x1));}[_0x252e6(0xb1)](_0x51cfcd){const _0x134ffb=_0x252e6;this['_onSavingEditorData$'][_0x134ffb(0xbf)](_0x51cfcd);}[_0x252e6(0x351)](){const _0x4ae0ce=_0x252e6;return this[_0x4ae0ce(0x2d9)]['getValue']();}[_0x252e6(0x2f5)](_0x5a2720){const _0x3b6462=_0x252e6;let _0x315c81=this[_0x3b6462(0x37f)][_0x3b6462(0x159)](_0x5a2720[_0x3b6462(0x148)],o[_0x3b6462(0x2bc)]['UNIVER_DOC']);if(!_0x315c81)return!0x0;let _0x319be1=(0x0,s['getDocumentDrawingSegmentId'])(_0x315c81,_0x5a2720[_0x3b6462(0x350)]);return(0x0,s[_0x3b6462(0x2cf)])(this[_0x3b6462(0x24d)],_0x5a2720[_0x3b6462(0x148)],[...(0x0,s[_0x3b6462(0x312)])(_0x315c81,_0x319be1,_0x3b6462(0x253),_0x5a2720[_0x3b6462(0x350)]),(0x0,s[_0x3b6462(0x142)])(_0x319be1,_0x3b6462(0x253),_0x5a2720[_0x3b6462(0x350)])]);}[_0x252e6(0x1dd)](_0x3e76b9){const _0x57b091=_0x252e6;let _0x33814f=this['getEditing']();_0x33814f&&this[_0x57b091(0x35e)]===void 0x0&&(this[_0x57b091(0xb1)](!0x0),this[_0x57b091(0x35e)]=requestAnimationFrame(()=>{const _0x110786=_0x57b091;this['_completionFrame']=void 0x0,this['getEditing']()===_0x33814f&&this[_0x110786(0x115)](null);}));}[_0x252e6(0xcb)](){const _0x5a7c65=_0x252e6;this['_completionFrame']!==void 0x0&&(cancelAnimationFrame(this[_0x5a7c65(0x35e)]),this['_completionFrame']=void 0x0);}[_0x252e6(0x180)](){const _0x1979a9=_0x252e6;this[_0x1979a9(0x351)]()&&this['setEditing'](null);}};G=I([F(0x0,o[_0x252e6(0x2bb)]),F(0x1,o[_0x252e6(0x288)])],G);function st(_0x5ca43e){const _0x117289=_0x252e6;return _0x5ca43e[_0x117289(0x20b)]===!0x0||_0x5ca43e['behindText']===o[_0x117289(0x27b)][_0x117289(0x25b)]||_0x5ca43e['layoutType']===o[_0x117289(0x32b)][_0x117289(0x15a)]&&_0x5ca43e[_0x117289(0x364)]===o['BooleanNumber'][_0x117289(0x25b)]?t[_0x117289(0x338)]-0x1:l[_0x117289(0x223)];}let K=class extends o['Disposable']{constructor(_0xe49be1,_0x42f8d4,_0x50e39d,_0x30a655,_0x338ecf,_0x4b1ad0,_0x27f2e2){const _0x33075a=_0x252e6;super(),this[_0x33075a(0x267)]=_0xe49be1,this[_0x33075a(0x389)]=_0x42f8d4,this[_0x33075a(0x2f8)]=_0x50e39d,this[_0x33075a(0x11e)]=_0x30a655,this['_urlImageService']=_0x338ecf,this[_0x33075a(0x393)]=_0x4b1ad0,this[_0x33075a(0x18b)]=_0x27f2e2,H(this,_0x33075a(0xd9),new Map()),this[_0x33075a(0x243)](this[_0x33075a(0x18b)][_0x33075a(0x37e)]['subscribe'](_0xb41bc7=>{const _0x548e8c=_0x33075a;var _0x132dbe;(_0x132dbe=this[_0x548e8c(0xd9)][_0x548e8c(0x286)](this[_0x548e8c(0x2bf)](_0xb41bc7[_0x548e8c(0x148)],_0xb41bc7[_0x548e8c(0x33d)],_0xb41bc7['shapeId'])))==null||_0x132dbe[_0x548e8c(0x129)](_0x2b3797=>_0x2b3797[_0x548e8c(0x11b)](_0xb41bc7['presentation'],_0xb41bc7['animationEnabled']));})),this['disposeWithMe'](this[_0x33075a(0x267)]['remove$'][_0x33075a(0x334)](_0x426f37=>{const _0xe9ccfe=_0x33075a;_0x426f37[_0xe9ccfe(0x129)](_0x28e027=>{const _0x462f24=_0xe9ccfe;this[_0x462f24(0x18b)][_0x462f24(0x1ff)]({'unitId':_0x28e027[_0x462f24(0x148)],'subUnitId':_0x28e027[_0x462f24(0x33d)],'shapeId':_0x28e027['drawingId']}),this[_0x462f24(0xd9)][_0x462f24(0x96)](this[_0x462f24(0x2bf)](_0x28e027[_0x462f24(0x148)],_0x28e027[_0x462f24(0x33d)],_0x28e027[_0x462f24(0x252)]));});}));}[_0x252e6(0xaa)](_0x1ec7c2,_0x557d82){const _0x444a91=_0x252e6;let {transform:_0x3b8110,drawingType:_0x15e170,srcRect:_0x14b046,prstGeom:_0x356584,groupId:_0x56c1c9,unitId:_0x394daa,subUnitId:_0x23638a,drawingId:_0x1c4779,isMultiTransform:_0x260cfe,transforms:_0x34faec,hidden:_0xb896ef,selectable:_0x238a79}=_0x1ec7c2;if(_0x15e170!==o[_0x444a91(0x122)][_0x444a91(0x21c)]||!this[_0x444a91(0x267)][_0x444a91(0x2e8)]()||_0x3b8110==null)return;let _0x570269=this[_0x444a91(0x267)][_0x444a91(0x213)](),_0x4614dc=_0x260cfe&&_0x34faec?_0x34faec:[_0x3b8110],_0x594069=[];for(let [_0x93e174,_0x16d380]of _0x4614dc[_0x444a91(0x134)]()){let {left:_0x1dd9db,top:_0x192e75,width:_0x5b2ddf,height:_0x264ef3,angle:_0xda831b,flipX:_0x278c5c,flipY:_0x4ca3ef,skewX:_0x46dd13,skewY:_0x2e42c8}=_0x16d380,_0x3dae85=(0x0,u['getDrawingShapeKeyByDrawingSearch'])({'unitId':_0x394daa,'subUnitId':_0x23638a,'drawingId':_0x1c4779},_0x260cfe?_0x93e174:void 0x0),_0x208b32=_0x557d82[_0x444a91(0x10a)](_0x3dae85);if(_0x208b32!=null){let _0x5ea6e8={'unitId':_0x394daa,'subUnitId':_0x23638a,'shapeId':_0x1c4779};_0x208b32 instanceof U&&this[_0x444a91(0xb9)](_0x208b32,_0x5ea6e8),_0x208b32['transformByState']({'left':_0x1dd9db,'top':_0x192e75,'width':_0x5b2ddf,'height':_0x264ef3,'angle':_0xda831b,'flipX':_0x278c5c,'flipY':_0x4ca3ef,'skewX':_0x46dd13,'skewY':_0x2e42c8});continue;}let _0x59d77b=this[_0x444a91(0x267)]['getDrawingOrder'](_0x394daa,_0x23638a),_0x17a30b=_0x59d77b[_0x444a91(0x1bb)](_0x1c4779);if(_0x557d82[_0x444a91(0x10a)](_0x3dae85)||!this[_0x444a91(0x267)][_0x444a91(0x2e8)]())continue;let _0x36d3d6=this[_0x444a91(0x389)][_0x444a91(0xd7)](_0x394daa,_0x23638a,_0x1c4779);if(!_0x36d3d6)continue;let _0x2faccd=(0x0,i['isConnectorShape'])(_0x36d3d6['getShapeType']())?{...e[_0x444a91(0x3a7)],'rotateEnabled':!0x1,'resizeEnabled':!0x1,'borderEnabled':!0x1}:e['SHAPE_EDITOR_TRANSFORMER_CONFIG'],_0x5acec5=_0x36d3d6['getShapeData']()[_0x444a91(0x263)],_0xdffa65={'unitId':_0x394daa,'subUnitId':_0x23638a,'shapeId':_0x1c4779};_0x5acec5&&this[_0x444a91(0x18b)]['register'](_0xdffa65,_0x5acec5);let _0x5efd37=new U(_0x3dae85,{..._0x16d380,'zIndex':_0x17a30b===-0x1?_0x59d77b[_0x444a91(0x2b8)]-0x1:_0x17a30b,'shapeModel':_0x36d3d6,'localeService':this['_localeService'],'shapeId':_0x1c4779,'unitId':_0x394daa,'subUnitId':_0x23638a,'visible':_0xb896ef!==!0x0,'evented':_0x238a79!==!0x1,'formulaPresentation':_0x5acec5?this[_0x444a91(0x18b)][_0x444a91(0x232)](_0xdffa65):void 0x0,'animateFormulaPresentation':(_0x5acec5==null?void 0x0:_0x5acec5['animationEnabled'])!==!0x1,'transformerConfig':_0x2faccd});if(_0x5acec5){let _0x483622=this[_0x444a91(0x2bf)](_0x394daa,_0x23638a,_0x1c4779),_0x57d43e=this[_0x444a91(0xd9)][_0x444a91(0x286)](_0x483622)??new Set();_0x57d43e['add'](_0x5efd37),this[_0x444a91(0xd9)][_0x444a91(0x149)](_0x483622,_0x57d43e);}this['disposeWithMe']((0x0,o['toDisposable'])(_0x5efd37[_0x444a91(0x17d)][_0x444a91(0x30e)]((_0x3f15fa,_0x2887a7)=>{const _0x19ff35=_0x444a91;_0x36d3d6[_0x19ff35(0xb3)]()||_0x5acec5||(this['_shapeTextEditingService'][_0x19ff35(0x115)]({'visible':!0x0,'unitId':_0x394daa,'subUnitId':_0x23638a,'shapeId':_0x1c4779,'shapeKey':_0x5efd37[_0x19ff35(0x306)]}),_0x2887a7[_0x19ff35(0x3ab)]());}))),_0x557d82['addObject'](_0x5efd37,st(_0x1ec7c2)),_0x570269&&_0x557d82[_0x444a91(0x135)](_0x5efd37),_0x56c1c9&&(0x0,d[_0x444a91(0x1e9)])({'drawingId':_0x56c1c9,'unitId':_0x394daa,'subUnitId':_0x23638a},_0x5efd37,_0x557d82,this[_0x444a91(0x267)],_0x260cfe?_0x93e174:void 0x0),_0x356584!=null&&_0x5efd37[_0x444a91(0x210)](_0x356584),_0x14b046!=null&&_0x5efd37[_0x444a91(0x362)](_0x14b046),this[_0x444a91(0x207)](_0x5efd37,_0x36d3d6[_0x444a91(0x192)]()),_0x594069['push'](_0x5efd37);}return _0x594069;}[_0x252e6(0x2bf)](_0x159d18,_0x366bd5,_0xef9843){return _0x159d18+'\x00'+_0x366bd5+'\x00'+_0xef9843;}[_0x252e6(0xb9)](_0x3f6b9f,_0x146faf){const _0x45cb96=_0x252e6;let _0x2f881c=this['_docsShapeService']['getShapeModel'](_0x146faf[_0x45cb96(0x148)],_0x146faf[_0x45cb96(0x33d)],_0x146faf[_0x45cb96(0x350)]),_0x75f6f=_0x2f881c==null?void 0x0:_0x2f881c[_0x45cb96(0x192)]()[_0x45cb96(0x263)],_0x218ca8=this[_0x45cb96(0x2bf)](_0x146faf[_0x45cb96(0x148)],_0x146faf[_0x45cb96(0x33d)],_0x146faf[_0x45cb96(0x350)]);if(_0x75f6f){this[_0x45cb96(0x18b)][_0x45cb96(0x21d)](_0x146faf,_0x75f6f);let _0x1e5c12=this[_0x45cb96(0xd9)][_0x45cb96(0x286)](_0x218ca8)??new Set();_0x1e5c12[_0x45cb96(0x2ba)](_0x3f6b9f),this[_0x45cb96(0xd9)][_0x45cb96(0x149)](_0x218ca8,_0x1e5c12);}else{var _0x583504;this[_0x45cb96(0x18b)][_0x45cb96(0x1ff)](_0x146faf),(_0x583504=this[_0x45cb96(0xd9)][_0x45cb96(0x286)](_0x218ca8))==null||_0x583504[_0x45cb96(0x96)](_0x3f6b9f);}_0x3f6b9f['setFormulaPresentation'](_0x75f6f?this[_0x45cb96(0x18b)][_0x45cb96(0x232)](_0x146faf):void 0x0,(_0x75f6f==null?void 0x0:_0x75f6f[_0x45cb96(0x1d6)])!==!0x1);}[_0x252e6(0x284)](_0x4594c9){const _0x286aa2=_0x252e6;let _0x3fa477=_0x4594c9[_0x286aa2(0x3a0)]['getShapeData'](),_0x4d252f=_0x3fa477[_0x286aa2(0x27d)];!_0x4d252f||_0x4d252f[_0x286aa2(0xc6)]!==i[_0x286aa2(0x1fb)][_0x286aa2(0xfa)]||!_0x4d252f['fillImageSource']?_0x4594c9['setFillImage'](void 0x0):this['_loadShapePictureFill'](_0x4594c9,_0x3fa477);}[_0x252e6(0x207)](_0x14c34c,_0x237421){const _0xe08790=_0x252e6;let _0x478dab=_0x237421[_0xe08790(0x27d)];if(!_0x478dab||_0x478dab[_0xe08790(0xc6)]!==i[_0xe08790(0x1fb)][_0xe08790(0xfa)]||!_0x478dab['fillImageSource'])return;let _0x15a7c4=_0x478dab[_0xe08790(0x32d)],_0x2299e8=_0x478dab[_0xe08790(0x2f4)]??i[_0xe08790(0x19f)]['URL'],_0xbb33ec=this[_0xe08790(0x11e)][_0xe08790(0x17c)](_0x15a7c4,_0x2299e8);_0xbb33ec?_0x14c34c[_0xe08790(0x32c)](_0xbb33ec):this[_0xe08790(0x2ed)](_0x14c34c,_0x15a7c4,_0x2299e8);}async[_0x252e6(0x2ed)](_0x3f0728,_0x595296,_0x4cbe7f){const _0x2e5e55=_0x252e6;let _0x145adc;try{if(_0x4cbe7f===i[_0x2e5e55(0x19f)]['UUID'])_0x145adc=await this[_0x2e5e55(0x11e)][_0x2e5e55(0x28f)](_0x595296);else{if(_0x4cbe7f===i[_0x2e5e55(0x19f)][_0x2e5e55(0x196)])try{_0x145adc=await this[_0x2e5e55(0xf6)]['getImage'](_0x595296);}catch{_0x145adc=_0x595296;}else _0x145adc=_0x595296;}}catch(_0x245834){console[_0x2e5e55(0x15e)](_0x2e5e55(0x387),_0x245834);return;}let _0x502d39=new window['Image']();_0x502d39[_0x2e5e55(0x289)]=()=>{const _0x3f27b5=_0x2e5e55;this[_0x3f27b5(0x11e)][_0x3f27b5(0x245)](_0x595296,_0x4cbe7f,_0x502d39),_0x3f0728[_0x3f27b5(0x32c)](_0x502d39);},_0x502d39[_0x2e5e55(0xe7)]=()=>{const _0x42802f=_0x2e5e55;console[_0x42802f(0x15e)](_0x42802f(0x1bc),_0x595296);},_0x502d39['src']=_0x145adc;}};K=I([F(0x0,u['IDrawingManagerService']),F(0x1,(0x0,o['Inject'])(r[_0x252e6(0x1b0)])),F(0x2,(0x0,o[_0x252e6(0x329)])(o[_0x252e6(0x282)])),F(0x3,o[_0x252e6(0x164)]),F(0x4,o['IURLImageService']),F(0x5,(0x0,o['Inject'])(G)),F(0x6,(0x0,o[_0x252e6(0x329)])(a['ShapeFormulaService']))],K);let q=class extends o[_0x252e6(0x1bf)]{constructor(_0x564af1,_0x3ea4ac,_0x1d500f){const _0x17b436=_0x252e6;super(),this[_0x17b436(0x1ea)]=_0x564af1,this[_0x17b436(0x267)]=_0x3ea4ac,this[_0x17b436(0x1f9)]=_0x1d500f,this[_0x17b436(0xc4)]();}['_initPrinting'](){const _0x31a934=_0x252e6;this[_0x31a934(0x243)](this[_0x31a934(0x1ea)]['interceptor'][_0x31a934(0x2f9)](this[_0x31a934(0x1ea)][_0x31a934(0xda)][_0x31a934(0x271)]()['PRINTING_COMPONENT_COLLECT'],{'handler':(_0x1913d8,_0x1482e3,_0x12c749)=>{const _0x2716b3=_0x31a934;var _0x311453;let {unitId:_0xe5bdee,scene:_0x4fac64,skeleton:_0x1dd948}=_0x1482e3,{pageIndex:_0x5adb80}=_0x1482e3,_0x36a580=(_0x311453=this['_drawingManagerService'][_0x2716b3(0x25f)](_0xe5bdee))==null?void 0x0:_0x311453[_0xe5bdee],_0x12df30=ct(this[_0x2716b3(0x1ea)],_0x1dd948,_0x5adb80);return _0x36a580==null||_0x36a580['order'][_0x2716b3(0x129)](_0x5dbb00=>{const _0x46bd85=_0x2716b3;if(_0x12df30&&!_0x12df30[_0x46bd85(0x38f)](_0x5dbb00))return;let _0x270c0b=_0x36a580[_0x46bd85(0x233)][_0x5dbb00];_0x270c0b[_0x46bd85(0xd8)]===o[_0x46bd85(0x122)][_0x46bd85(0x21c)]&&!_0x270c0b[_0x46bd85(0x209)]&&this['_shapeRenderController'][_0x46bd85(0xaa)](_0x270c0b,_0x4fac64);}),_0x12c749(_0x1913d8);}}));}};q=I([F(0x0,(0x0,o[_0x252e6(0x329)])(t['DocPrintInterceptorService'])),F(0x1,u[_0x252e6(0x3b6)]),F(0x2,(0x0,o[_0x252e6(0x329)])(K))],q);function ct(_0xacb9b2,_0x5ef108,_0x466b3b){const _0x1adcf6=_0x252e6;var _0x7c7cb3,_0x53e93d;let _0x3fb4c7=_0xacb9b2;if(_0x3fb4c7['getPageDrawingIds'])return _0x3fb4c7[_0x1adcf6(0x3a6)](_0x5ef108,_0x466b3b);let _0x58fa38=_0x5ef108['getSkeletonData']();if(!_0x58fa38||_0x58fa38['pages'][_0x1adcf6(0x2b8)]<=0x1||_0x466b3b==null)return null;let _0x26f300=new Set(),_0x376bbb=_0x58fa38[_0x1adcf6(0x1b9)][_0x466b3b];if(!_0x376bbb)return _0x26f300;lt(_0x376bbb,_0x26f300);let _0x49c77c=(_0x7c7cb3=_0x58fa38[_0x1adcf6(0x36e)][_0x1adcf6(0x286)](_0x376bbb[_0x1adcf6(0x2ec)]))==null?void 0x0:_0x7c7cb3[_0x1adcf6(0x286)](_0x376bbb[_0x1adcf6(0x17b)]??_0x376bbb[_0x1adcf6(0x10c)]),_0x1e2dbe=(_0x53e93d=_0x58fa38[_0x1adcf6(0x2b6)][_0x1adcf6(0x286)](_0x376bbb[_0x1adcf6(0x2c8)]))==null?void 0x0:_0x53e93d[_0x1adcf6(0x286)](_0x376bbb['footerLayoutKey']??_0x376bbb['pageWidth']);return _0x49c77c&<(_0x49c77c,_0x26f300),_0x1e2dbe&<(_0x1e2dbe,_0x26f300),_0x26f300;}function lt(_0x520241,_0x4c8ab7){const _0x1a7d6d=_0x252e6;for(let _0x510b07 of _0x520241[_0x1a7d6d(0x147)]['keys']())_0x4c8ab7[_0x1a7d6d(0x2ba)](_0x510b07);for(let _0xa361a2 of _0x520241['skeTables']['values']())for(let _0x4e425e of _0xa361a2[_0x1a7d6d(0x151)])for(let _0x833fde of _0x4e425e['cells'])lt(_0x833fde,_0x4c8ab7);}function ut(_0x4785ef){const _0x50b69c=_0x252e6;return(0x0,f[_0x50b69c(0x372)])(oe,{..._0x4785ef,'PickerComponent':e[_0x50b69c(0x399)]});}function dt(){const _0x151337=_0x252e6;let _0x424dc6=(0x0,n[_0x151337(0x3af)])(o['LocaleService']),_0x15c348=re(),[_0x4b6e1c,_0x11cde6]=(0x0,v['useState'])(!0x1);return(0x0,f[_0x151337(0x242)])(_0x151337(0x20a),{'className':_0x151337(0x2ac),'children':[(0x0,f[_0x151337(0x372)])(_[_0x151337(0x292)],{'title':_0x424dc6['t'](_0x151337(0x1ec)),'aria-expanded':_0x4b6e1c,'variant':_0x151337(0x132),'trailing':_0x4b6e1c?(0x0,f[_0x151337(0x372)])(g[_0x151337(0x25d)],{}):(0x0,f[_0x151337(0x372)])(g['MoreDownIcon'],{}),'onClick':()=>_0x11cde6(_0x56f6e4=>!_0x56f6e4)}),_0x4b6e1c&&(0x0,f['jsx'])(e[_0x151337(0x399)],{'excludeGroups':[e[_0x151337(0xd4)][_0x151337(0x296)]],'onShapeClick':_0x5c7495=>{_0x15c348(_0x5c7495),_0x11cde6(!0x1);}})]});}function ft(_0x3f2bf7){return _0x3f2bf7['trim']()||void 0x0;}function pt(_0x1b91f4,_0x3a8d68,_0x192e04){const _0x42388c=_0x252e6;var _0x110a4e,_0x3a5f3d;return((_0x110a4e=_0x1b91f4[_0x42388c(0x1e4)])==null?void 0x0:_0x110a4e[_0x42388c(0x231)]())||((_0x3a5f3d=_0x1b91f4['title'])==null?void 0x0:_0x3a5f3d[_0x42388c(0x231)]())||_0x192e04['t'](_0x42388c(0x322)+(0x0,e[_0x42388c(0x106)])(_0x1b91f4[_0x42388c(0xd8)]))+'\x20'+(_0x3a8d68+0x1);}function mt({PanelComponent:_0x1a3f0e=d[_0x252e6(0x14f)]}){const _0x3c6e27=_0x252e6;let _0x54a181=(0x0,n[_0x3c6e27(0x3af)])(o[_0x3c6e27(0x282)]),_0xff7254={'title':_0x54a181['t'](_0x3c6e27(0x174)),'empty':_0x54a181['t'](_0x3c6e27(0x156)),'showAll':_0x54a181['t'](_0x3c6e27(0x1e6)),'hideAll':_0x54a181['t']('drawing-ui.objectListPanel.hideAll'),'lockAll':_0x54a181['t']('drawing-ui.objectListPanel.lockAll'),'unlockAll':_0x54a181['t'](_0x3c6e27(0x360)),'moveForward':_0x54a181['t'](_0x3c6e27(0xa9)),'moveBackward':_0x54a181['t'](_0x3c6e27(0x3a8)),'close':_0x54a181['t'](_0x3c6e27(0x28c)),'show':_0x54a181['t']('drawing-ui.objectListPanel.show'),'hide':_0x54a181['t'](_0x3c6e27(0x152)),'lock':_0x54a181['t'](_0x3c6e27(0x1fd)),'unlock':_0x54a181['t'](_0x3c6e27(0x230)),'lockHint':_0x54a181['t'](_0x3c6e27(0x339)),'unlockHint':_0x54a181['t'](_0x3c6e27(0x25a)),'name':_0x54a181['t'](_0x3c6e27(0x2aa)),'nameInput':_0x54a181['t'](_0x3c6e27(0x18a)),'description':_0x54a181['t'](_0x3c6e27(0x2c3)),'descriptionPlaceholder':_0x54a181['t'](_0x3c6e27(0x237)),'details':_0x54a181['t'](_0x3c6e27(0x220)),'noSelection':_0x54a181['t']('drawing-ui.objectListPanel.noSelection'),'locate':_0x54a181['t'](_0x3c6e27(0x1e2)),'expand':_0x54a181['t'](_0x3c6e27(0x280)),'collapse':_0x54a181['t'](_0x3c6e27(0x26e)),'dragToReorder':_0x54a181['t'](_0x3c6e27(0x3b4)),'search':_0x54a181['t']('drawing-ui.objectListPanel.search'),'filterAll':_0x54a181['t'](_0x3c6e27(0x17a)),'filterHidden':_0x54a181['t']('drawing-ui.objectListPanel.filterHidden'),'filterLocked':_0x54a181['t'](_0x3c6e27(0xb2)),'sectionCanvas':_0x54a181['t'](_0x3c6e27(0x375)),'sectionFloating':_0x54a181['t'](_0x3c6e27(0x9a))},_0x5732a9=(0x0,n['useDependency'])(o[_0x3c6e27(0x1b3)]),_0x4bd0a2=(0x0,n['useDependency'])(o[_0x3c6e27(0x288)]),_0x26b24d=(0x0,n[_0x3c6e27(0x3af)])(c[_0x3c6e27(0x2b1)]),_0x2e5950=(0x0,n[_0x3c6e27(0x3af)])(u[_0x3c6e27(0x3b6)]),_0x4c06e8=(0x0,n['useDependency'])(l[_0x3c6e27(0x342)]),[,_0x1f1e93]=(0x0,v[_0x3c6e27(0x262)])(_0x530492=>_0x530492+0x1,0x0),_0x1e5ccf=_0x4bd0a2[_0x3c6e27(0x354)](o[_0x3c6e27(0x2bc)][_0x3c6e27(0x248)]),_0xc7d494=(_0x1e5ccf==null?void 0x0:_0x1e5ccf[_0x3c6e27(0x274)]())??'',_0x23e7f4=_0xc7d494,_0xaada63=(0x0,n['useObservable'])(()=>_0x2e5950['focus$'],_0x2e5950['getFocusDrawings'](),!0x1,[_0x2e5950]);(0x0,v[_0x3c6e27(0xa3)])(()=>{const _0x4a1f86=_0x3c6e27;let _0x50d536=_0x5732a9[_0x4a1f86(0xdc)](()=>_0x1f1e93());return()=>_0x50d536['dispose']();},[_0x5732a9]);let _0x46826f=_0xc7d494?_0x26b24d[_0x3c6e27(0x316)](_0xc7d494,_0x23e7f4):{},_0x3e3175=(_0xc7d494?_0x26b24d[_0x3c6e27(0x2d6)](_0xc7d494,_0x23e7f4):[])[_0x3c6e27(0xf2)](_0x13560c=>_0x46826f[_0x13560c])[_0x3c6e27(0x313)](_0x4f1150=>!!_0x4f1150)[_0x3c6e27(0x299)](),_0x11fbc5=_0x3e3175['reduce']((_0x12fd34,_0x5d1aef)=>(_0x12fd34[(0x0,d[_0x3c6e27(0x9c)])(_0x5d1aef[_0x3c6e27(0xd8)])]+=0x1,_0x12fd34),{'canvas':0x0,'floating':0x0}),_0x4e83c5={'canvas':0x0,'floating':0x0},_0x313c36=_0x3e3175[_0x3c6e27(0xf2)]((_0x8d2008,_0x3050af)=>{const _0x145f00=_0x3c6e27;let _0x4f45e1=(0x0,d['getObjectListPanelSectionIdForDrawingType'])(_0x8d2008['drawingType']),_0x292406=_0x4f45e1===d[_0x145f00(0x33e)],_0x3732d0=_0x4e83c5[_0x4f45e1]++;return{'id':_0x8d2008['drawingId'],'name':pt(_0x8d2008,_0x3050af,_0x54a181),'description':_0x8d2008[_0x145f00(0x3ae)],'visible':_0x8d2008[_0x145f00(0x209)]!==!0x0,'selectable':_0x8d2008[_0x145f00(0x1d7)]!==!0x1,'sectionId':_0x4f45e1,'sectionTitle':_0x292406?_0xff7254['sectionFloating']:_0xff7254[_0x145f00(0x2e3)],'capabilities':_0x292406?{'arrange':!0x1,'reorder':!0x1}:void 0x0,'canMoveForward':!_0x292406&&_0x3732d0>0x0,'canMoveBackward':!_0x292406&&_0x3732d0<_0x11fbc5['canvas']-0x1,'canReorder':!_0x292406};}),_0x2880fc=(0x0,v['useMemo'])(()=>(_0xaada63??[])['filter'](_0x13e4e4=>_0x13e4e4[_0x3c6e27(0x148)]===_0xc7d494&&_0x13e4e4[_0x3c6e27(0x33d)]===_0x23e7f4)['map'](_0x3e96f9=>_0x3e96f9[_0x3c6e27(0x252)]),[_0xaada63,_0x23e7f4,_0xc7d494]),_0x3e3a96=_0x2880fc[_0x2880fc[_0x3c6e27(0x2b8)]-0x1]??null,_0x482d09=_0x1d11a6=>_0x26b24d['getDrawingByParam']({'unitId':_0xc7d494,'subUnitId':_0x23e7f4,'drawingId':_0x1d11a6})??null,_0x3baabe=async _0x43906c=>{const _0x1f776d=_0x3c6e27;_0xc7d494&&_0x43906c['length']&&await _0x5732a9[_0x1f776d(0x1d9)](r[_0x1f776d(0xc7)]['id'],{'unitId':_0xc7d494,'patches':_0x43906c});},_0x376337=(_0x15e343,_0x1887dc)=>{const _0x5dc99f=_0x3c6e27;if(!_0xc7d494)return;let _0x198963=_0x1887dc?_0x2880fc[_0x5dc99f(0xdd)](_0x15e343)?_0x2880fc[_0x5dc99f(0x313)](_0x30ba70=>_0x30ba70!==_0x15e343):[..._0x2880fc,_0x15e343]:[_0x15e343];_0x5732a9['syncExecuteCommand'](u[_0x5dc99f(0x98)]['id'],_0x198963[_0x5dc99f(0xf2)](_0x3e9fad=>({'unitId':_0xc7d494,'subUnitId':_0x23e7f4,'drawingId':_0x3e9fad})));let _0x41e57d=_0x198963[_0x198963[_0x5dc99f(0x2b8)]-0x1];_0x41e57d?(0x0,e[_0x5dc99f(0x275)])(_0x4c06e8,{'unitId':_0xc7d494,'subUnitId':_0x23e7f4,'drawingId':_0x41e57d}):(0x0,e['clearActiveDrawingObjects'])(_0x4c06e8,_0xc7d494);},_0x12a7f6=async(_0x5bf468,_0x16fa82)=>{const _0x23ea87=_0x3c6e27;await _0x3baabe(_0x5bf468[_0x23ea87(0xf2)](_0x2f45ec=>_0x482d09(_0x2f45ec))[_0x23ea87(0x313)](_0x3db003=>!!_0x3db003)['filter'](_0x536624=>_0x536624[_0x23ea87(0x209)]!==!0x0!==_0x16fa82)[_0x23ea87(0xf2)](_0xbdf859=>({'drawingId':_0xbdf859[_0x23ea87(0x252)],'hidden':!_0x16fa82})));},_0x40fc30=async(_0x19e3f7,_0x5f2c98)=>{const _0x24bc67=_0x3c6e27;await _0x3baabe(_0x19e3f7[_0x24bc67(0xf2)](_0x30e252=>_0x482d09(_0x30e252))[_0x24bc67(0x313)](_0x5bf37a=>!!_0x5bf37a)[_0x24bc67(0x313)](_0x122bee=>_0x122bee[_0x24bc67(0x1d7)]!==!0x1!==_0x5f2c98)[_0x24bc67(0xf2)](_0x40d857=>({'drawingId':_0x40d857[_0x24bc67(0x252)],'selectable':_0x5f2c98})));},_0x58df36=_0x24f2bf=>{const _0x2ef043=_0x3c6e27;let _0x4a93c6=_0x482d09(_0x24f2bf);if(_0x4a93c6)return _0x40fc30([_0x24f2bf],_0x4a93c6[_0x2ef043(0x1d7)]===!0x1);},_0x7f5f91=async(_0x4a27ce,_0x3c9b7c)=>{const _0x362fa3=_0x3c6e27;let _0x1378d5=_0x482d09(_0x4a27ce),_0xaa69e9=ft(_0x3c9b7c);!_0x1378d5||(_0x1378d5[_0x362fa3(0x1e4)]??void 0x0)===_0xaa69e9&&(_0x1378d5[_0x362fa3(0x175)]||void 0x0)===_0xaa69e9||await _0x3baabe([{'drawingId':_0x4a27ce,'name':_0xaa69e9,'title':_0xaa69e9}]);},_0x1f2dc7=async(_0x13e248,_0x30c2f5)=>{let _0x2c5a3e=_0x482d09(_0x13e248),_0x2b239e=ft(_0x30c2f5);_0x2c5a3e&&(_0x2c5a3e['description']??void 0x0)!==_0x2b239e&&await _0x3baabe([{'drawingId':_0x13e248,'description':_0x2b239e}]);},_0x10e186=async(_0x2e28ec,_0x1b455a)=>{const _0x5df5cc=_0x3c6e27;_0xc7d494&&await _0x5732a9[_0x5df5cc(0x1d9)](c[_0x5df5cc(0x168)]['id'],{'unitId':_0xc7d494,'subUnitId':_0x23e7f4,'drawingIds':[_0x2e28ec],'arrangeType':_0x1b455a});};return _0xc7d494?(0x0,f[_0x3c6e27(0x372)])(_0x1a3f0e,{'labels':_0xff7254,'renderPermissionAction':_0x3603da=>_0x1e5ccf?(0x0,f['jsx'])(n[_0x3c6e27(0x185)],{'target':{'unitId':_0xc7d494,'objectId':(0x0,s[_0x3c6e27(0x142)])((0x0,s['getDocumentDrawingSegmentId'])(_0x1e5ccf,_0x3603da['id']),'drawing',_0x3603da['id']),'objectType':y[_0x3c6e27(0x2b4)]['DocumentEntity']},'name':_0x3603da[_0x3c6e27(0x1e4)],'commandId':s[_0x3c6e27(0x203)]['id'],'exists':()=>!!_0x482d09(_0x3603da['id'])},_0xc7d494+'/'+_0x3603da['id']):null,'items':_0x313c36,'selectedIds':_0x2880fc,'focusedId':_0x3e3a96,'showHeader':!0x1,'onSelect':_0x376337,'onSetVisible':_0x12a7f6,'onSetSelectable':_0x40fc30,'onCommitName':_0x7f5f91,'onCommitDescription':_0x1f2dc7,'onMoveForward':async _0x5ef9b3=>_0x10e186(_0x5ef9b3,o[_0x3c6e27(0x1ed)][_0x3c6e27(0x13f)]),'onMoveBackward':async _0x3c9087=>_0x10e186(_0x3c9087,o['ArrangeTypeEnum'][_0x3c6e27(0x1a0)]),'onToggleSelectable':_0x58df36}):(0x0,f['jsx'])(_0x3c6e27(0x20a),{'className':_0x3c6e27(0x395),'children':_0xff7254[_0x3c6e27(0x175)]});}function ht(){const _0x1801c3=_0x252e6;return(0x0,f[_0x1801c3(0x372)])(mt,{'PanelComponent':d[_0x1801c3(0x347)]});}let J=class{constructor(_0x5f13a9){const _0x435d08=_0x252e6;this[_0x435d08(0x1da)]=_0x5f13a9;}[_0x252e6(0x385)](_0x36502d,_0x1d7a6a){const _0x21c594=_0x252e6;let _0x54f439=this[_0x21c594(0x1da)][_0x21c594(0x206)](_0x36502d[_0x21c594(0x148)]),_0x4a2324=_0x54f439==null?void 0x0:_0x54f439['scene'];if(!_0x4a2324)return;let _0xb0e16f=(0x0,u['getDrawingShapeKeyByDrawingSearch'])(_0x36502d),_0x23b49b=_0x4a2324[_0x21c594(0x10a)](_0xb0e16f);_0x23b49b==null||_0x23b49b[_0x21c594(0x32c)](_0x1d7a6a);}};function _0x4069(){const _0xdb77d2=['add','IPermissionService','UniverInstanceType','cos','getViewports','_formulaKey','docs-shape-ui.textWrap.square','clipHeight','getActualSize','drawing-ui.objectListPanel.description','_popupMenuListener','startOffset','splice','mergeMenu','footerId','VIEWPORT_KEY','484644RglvBK','none','getAllRenderersOfType','IContextService','shape-editor-ui.arrange.backward','canEditDocumentTargets','getOwnPropertyDescriptor','VerticalAlign','doc.shape.picker.component','_props','resolveShapeTextHyperLinkAt','calculate','getDrawingOrder','shapeData','_updateSrcRectByTransform','_editingParams$','GROUP','_contextService','Vector2','doc','isEditing','180551mWVhJm','docs-shape-ui.textWrap.topAndBottom','horizontal','_configService','sectionCanvas','Arrow','docs-shape-ui.shape-format.text-ribbon-control','doc.operation.close-doc-shape-format-panel','getShapePopupMenus','getDrawingVisible','adjName','_openShapeEditPanel','getAutoFitPresentations','headerId','_loadAndSetImage','makeDirty','setShapeData','onSavingEditorData$','updateContext','currentColor','ShapeTypeEnum','fillImageSourceType','_canEdit','multiply','docs-shape-ui.deleteShape','_localeService','intercept','_registerImageShapeClipDelegate','onRendered','_registerOperations','_sidebarDisposable','M2\x203h16M2\x207.5h3M15\x207.5h3M2\x2010h3M15\x2010h3M2\x2012.5h3M15\x2012.5h3M2\x2017h16','docs-shape-ui.shape-format.formula-ribbon-control','focusDrawing','doc.command.menu-insert-shape','M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','_transformCalculateSrcRect','docs-shape-ui.hidePanel','setContextValue','oKey','_formulaAnimation','ISidebarService','extensionGroups','BUTTON','docs-shape-ui.ribbon.shape-format.wrapping-style','shapeType','Path','subscribeEvent','shapeKey','onPointerUp$','doc.operation.open-shape-object-list-panel','getDocumentEntityParentPermissionObjectIds','filter','Plugin','changing$','getDrawingData','adjHandleFill','attachPopupToObject','BottomIcon','DRAWING_IMAGE','ShapeRenderModeEnum','RibbonInsertGroup','Medium','setFallbackVisible','DocsShapeWrapInlineIcon','_drawShapeText','iterator','drawing-ui.objectListPanel.typeNames.','type','_activeAdjustInfo','RichTextEditingMutation','getState','find','_getShapePopup','Inject','_getSceneByUnitId','PositionedObjectLayoutType','setFillImage','fillImageSource','dispose','getDocumentPermissionValue','spaceBelowApply','onReady','isRender','IconManager','subscribe','_initEditingParams','_layoutInteraction','changeStart$','DOCS_COMPONENT_MAIN_LAYER_INDEX','drawing-ui.objectListPanel.lockHint','SolidFill','DocsShapeWrapTopBottomIcon','menuRange','subUnitId','OBJECT_LIST_FLOATING_SECTION_ID','CROSSHAIR','MenuItemType','_activeShapeId','IRenderManagerService','isRenderLinePointsMode','ShapeTextEditorContainer','_baseShapeLeft','top-bottom','MobileObjectListPanel','resolveShapeTextBodyBehavior','applyPoint','_initSelection','translateWithPrecision','Observable','ShapeFloatingToolbarService','shape-editor-ui.toolbar.quickStyles','permissionPointUpdate$','shapeId','getEditing','IConfigService','popup','getCurrentUnitOfType','params','0\x200\x2020\x2020','getShapeQuickStyleType','path','FloatingObjectToolbarPosition','ContextMenuGroup','object','_componentManager','strokeWidth','_completionFrame','_ribbonService','drawing-ui.objectListPanel.unlockAll','getDrawingSearch','setSrcRect','ShapeFormatSettingIcon','behindDoc','DependentOn','MoveDownIcon','getDocumentDrawingSegmentId','_isStartAdjusting','close','_disposePopupsByUnit','_lastEditingShapeKey','componentKey','DocLayoutInteractionService','skeHeaders','createInternalEditorID','setCollapsedIds','isMainScene','jsx','applyQuickStyleToShapeData','MEDIA','drawing-ui.objectListPanel.sectionCanvas','SELECTOR','transformByState','adjHandleStroke','segmentId','_init','DisposableCollection','1075010KXffvI','_hyperLinkRegions','presentationChanged$','_instanceService','_handleCreateControl','COMMAND','warn','getBody','_attachAdjustEvent','updateShapeFillImage','doc.shape.object-list.panel','[ShapeRender]\x20Failed\x20to\x20resolve\x20picture\x20fill\x20source','draw','_docsShapeService','below','ShapeDefaultConfig','_hide','createControl$','docs-shape-contextual-ribbon','has','TextWrapShapeIcon','_initUIPart','decorate','_shapeTextEditingService','open','univer-flex\x20univer-size-full\x20univer-items-center\x20univer-justify-center\x20univer-text-sm\x20univer-text-gray-500','true','onPointerDown$','IN_FRONT_OF_TEXT','MobileShapePickerPanel','disableShapeOption','resolveShapeTextEditorBehaviorShapeData','buildClipPath','enableObjectsEvent','_registerDrawingTransformHandler','viewBound','shapeModel','BEHIND_TEXT','_mobileEditorService','_isOpenedShapeEditPanel','CommandType','_measure','getPageDrawingIds','SHAPE_EDITOR_TRANSFORMER_CONFIG','drawing-ui.objectListPanel.moveBackward','UnitAction','DrawingCommonPanel','stopPropagation','getDrawingEffectBounds','getShapeDataById','description','useDependency','_getDependencies','docs-shape-ui.objectListPanel.title','currentAdjustValues','24aFaReD','drawing-ui.objectListPanel.dragToReorder','ShapeFloatingToolbarToggleFactory','IDrawingManagerService','activeTarget','getShapeType','keys','drawWith','isHitLine','_menuManagerService','_initialize','options','panel','_registerComponents','getDrawingPoints','BehaviorSubject','setAdjustValueByName','#3B82F6','isRichText','useFormulaShapeToolbar','showContextualTab','transformForAngle','setPresentation','delete','shapeText','SetDrawingSelectedOperation','getDrawingShapeKeyByDrawingSearch','drawing-ui.objectListPanel.sectionFloating','resolveFormulaShapeAutoFitSize','getObjectListPanelSectionIdForDrawingType','presetId','isConnectorShape','getInverseCoord','getRealBound','function','TOP','useEffect','scene','MobileDocDrawingTextWrap','localeService','DocsShapeWrapBehindTextIcon','1em','drawing-ui.objectListPanel.moveForward','renderDrawingShape','DocSelectionManagerService','UniverShapeEditorPlugin','isInGroup','unsubscribe','ShapePickerDropdown','context-bar','setOnSavingEditorData','drawing-ui.objectListPanel.filterLocked','isLineShape','onStarting','getShapeTextRect','vertical-center','DrawingImageClipService','SHAPE','refreshFormulaPresentation','ShapeArrowSizeEnum','canDispose','actualHeight','_clearPopups','Documents','next','Module','angle','_docCanvasPopManagerService','_drawSimpleText','_initPrinting','fallbackWidth','fillType','UpdateDocDrawingMetadataCommand','SHAPE_TEXT','docs-shape-ui.quickStyles','canvasElement','_clearCompletionFrame','layoutType','IRibbonService','docs-shape-ui.ribbon.shape-format.arrange-backward','createShapeTextBoxShapeData','RemoveDocDrawingCommand','getVisible','doc.image-clip.shape-picker.component','beginPath','ShapeGroupEnum','473qeybTD','DEFAULT_DOC_SHAPE_HEIGHT','getShapeModel','drawingType','_formulaShapes','interceptor','pluginName','onCommandExecuted','includes','_drawRichTextLayer','_update','animateFormulaPresentation','setCanUseShapeClip','BuiltInUIPart','docs-shape-ui.textWrap.inFrontText','UpdateDocShapeDataCommand','_updateShape','prepareShapeTextDocumentData','onerror','editingParams$','TopmostIcon','_clearShapeAdjustControls','_transform','_getRenderModules','offsetY','DocRenderController','docs-shape-ui.openPanel','disableObjectsEvent','UniverDrawingUIPlugin','map','DocsShapeUIMenuSchema','merge','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_urlImageService','push','objects','formulaPresentation','PictureFill','sin','translate','scale','_iconManager','buildShapeTextDataUpdate','paragraphMenuPlacement','docs-shape-ui.ribbon.shape-format.formula-control','visible$','UniverDocsDrawingUIPlugin','getSkeletonData','contentVerticalOffset','getDrawingTypeNameKey','hideInfoPopup','_getActiveDrawingParam','getMatrix','getObjectIncludeInGroup','INSERT_BELLOW_MENU_ID','pageWidth','getTransformerByCreate','engine','_addShapeAdjustControl','label','29nBtqsc','fontFamily','60JUWweR','IMAGE_CLIP_SHAPE_PICKER_COMPONENT','setEditing','_adjHandlerPointerUp','_adjHandlerPointerMove','setConfig','focus$','IUIPartsService','setFormulaPresentation','doc-shape-adjust-point-','transformVector2SceneCoord','_imageIoService','invert','isHorizontal','_getShapeInfo','DrawingTypeEnum','sheet.image-clip.shape-picker.component','_unitId','docs-shape-ui.objectListPanel.open','registerCommand','_subUnitId','ShapeTextFloatMenuRenderControllerBase','forEach','ComponentManager','stroke','None','_getActiveDrawingShape','flipX','UniverRenderEnginePlugin','packageName','getShapeTypeById','subtle','useState','entries','attachTransformerTo','PaintIcon','_shapeEditPanelVersion','setShapeProps','DocInterceptorService','wrapStrategy','isolated','_toVisualAdjustPoint','_setTransForm','UniverDrawingMobileUIPlugin','forward','6wKilPV','docs-shape-ui.ribbon.shape-format.style-control','getDocumentEntityPermissionObjectId','asObservable','DocDrawingTextWrap','_clipService','getActiveTextRange','skeDrawings','unitId','set','_endLayoutInteraction','Transform','onTransformChange$','_updateAdjustControlPositions','getShapeQuickStylePreset','ObjectListPanelBase','docs-shape-ui.textWrap.inline','rows','drawing-ui.objectListPanel.hide','doc.operation.apply-shape-quick-style','UniverDocsShapeUIPlugin','41560wlRDGQ','drawing-ui.objectListPanel.empty','DOC','setCursor','getUnit','WRAP_NONE','syncExecuteCommand','contentHeight','1.2','error','ShapeFloatingToolbar','span','getTextModel','UniverDrawingPlugin','getDrawingOKey','IImageIoService','_canEditShape','#2563EB','ContextMenuPosition','SetDocDrawingArrangeCommand','docs-shape-ui.config','DocShapeAnchorPosition','left','DOCS_SHAPE_UI_PLUGIN','DocsShapeTextEditorContainer','plainShapeTextToDocumentData','getMenuHiddenObservable','SHEET_DOC_SHAPE_FLOATING_TOOLBAR_TOP_OFFSET','pick','endArrow','clipByShape','drawing-ui.objectListPanel.title','title','getSelectedObjectMap','UNIVER_SHEET','refreshAdjustControls','Injector','drawing-ui.objectListPanel.filterAll','headerLayoutKey','getImageSourceCache','onDblclick$','UniverShapeEditorMobileUIPlugin','_getShapeAdjustInfosById','cancelEditing','useMemo','transform','_updateShapeAdjustControls','_drawRichText','ObjectPermissionButton','_renderWithCache','UniverDocsDrawingMobileUIPlugin','ObjectLayersIcon','square','drawing-ui.objectListPanel.nameInput','_shapeFormulaService','_shapeFloatingToolbarService','OFFSET','toDisposable','symbol','MobileShapeEditorControls','custom','getShapeData','_activeShapeAdjustPointList','docs-shape-ui.mobile.text','resolveHyperLinkAt','URL','pipe','DocParagraphMenuService','FOCUSING_COMMON_DRAWINGS','_draw','resolveShapeTextEditorWrapStrategy','touchDependencies','normalizeShapeTextModel','shape-editor-ui.arrange.forward','ImageSourceTypeEnum','backward','values','_insertShapes','inline','UniverLicensePlugin','getActiveViewportByCoord','getFocusedUnit','docs-shape-ui.formatShape','default','registerRenderModule','flatMap','getParent','docs-shape-ui.shape-format.style-ribbon-control','docs-shape-ui.ribbon.shape-format.arrange-back','_initEvents','DocCanvasPopManagerService','DocsShapeService','_closeShapeEditPanel','registerDependencies','ICommandService','UniverDocsShapePlugin','_injector','SpAutoFit','M2\x203.5h16M2\x2016.5h16M2\x2010h5M13\x2010h5','ShapeTextFloatToolbar','pages','paragraph','indexOf','[ShapeRender]\x20Failed\x20to\x20load\x20picture\x20fill\x20image','.below','1.5.1','Disposable','getUnitType','clipTop','FromArray','_docLayoutInteractionService','RIBBON','defer','useObservable','fallbackHeight','ToggleShapeFloatingToolbarOperation','DOC_PARAGRAPH_T_INSERT_BELOW_MENU_ID','getDrawingByParam','ShapeLineTypeEnum','WRAP_SQUARE','CONTENT','_univerInstanceService','with','_context','Shape','DOC_CONTENT_INSERT_MENU_ID','update$','isFinite','menu','animationEnabled','selectable','ShapeIcon','executeCommand','_renderManagerService','moveRange','top','completeEditing','style','resolveActiveShapeQuickStylePresetId','_registerIcons','docs-shape-ui.mobile.style','drawing-ui.objectListPanel.locate','ancestorTransform','name','docs-shape-ui.mobile.delete','drawing-ui.objectListPanel.showAll','TextWrappingStyle','isDrawingObject','insertGroupObject','_docPrintInterceptorService','_refreshShapeData','docs-shape-ui.crop.shape','ArrangeTypeEnum','LAYOUT','size','startIndex','MoveUpIcon','back','DRAWING_DOM','registerClipDelegate','svg','createShapeFormulaDocument','docs-shape-ui.insertShape','onPointerMove$','_shapeRenderController','FOCUSING_SHAPE_TEXT_EDITOR','ShapeFillEnum','DocsShapeWrapInFrontOfTextIcon','drawing-ui.objectListPanel.lock','dataModel','unregister','_onSavingEditorData$','updateDocumentStyle','value','SetDocumentPermissionCommand','_activeShapeInfo','classType','getRenderUnitById','_loadShapePictureFill','drawings','hidden','div','behindText','LEFT','add$','getSnapshot','_drawingType','setPrstGeom','_sidebarService','_getDisposePopups','getDrawingEditable','getContextValue','enhanceParams','parent','shape-editor-ui.arrange.back','_toScenePoint','getParagraphContentStartOffset','extraProps','WRAP_TOP_AND_BOTTOM','DRAWING_SHAPE','register','_applyFormulaAutoFitSize','getShapeTextData','drawing-ui.objectListPanel.details','ShapeArrowTypeEnum','IMenuManagerService','DRAWING_OBJECT_LAYER_INDEX','cloneShapeDataForType','7045083FRvmCO','height','prstGeom','getCurrentTypeOfUnit$','Fragment','clip','vertical','_commandService','UniverDocsMobileUIPlugin','DocumentDataModel','_adjustPointObjects','drawing-ui.objectListPanel.unlock','trim','getPresentation','data','visible','rect','getFocusDrawings','drawing-ui.objectListPanel.descriptionPlaceholder','M2\x203h16M2\x2017h16','ShapeModel','RENDER_CLASS_TYPE','toStringTag','preValue','save','5.5','drawFormulaShapeAnimationLayers','_getShapeAdjustPointListById','OTHERS','jsxs','disposeWithMe','UpdateDocDrawingWrappingStyleCommand','addImageSourceCache','version','fontSize','UNIVER_DOC','OPERATION','_initCommands','resolveShapeContextualRibbonHostMode','paragraphId','_permissionService','defineProperty','toPrimitive','SHAPE_CHANGE_PICKER_COMPONENT','calcAdjValues','drawingId','drawing','_docDrawingShapeRenderController','endOffset','width','UpdateDocShapeDataMutation','hasDefault','shouldClipShapeTextDocument','drawing-ui.objectListPanel.unlockHint','TRUE','HorizontalAlign','MoreUpIcon','sidebarOptions$','getDrawingDataForUnit','INLINE','_baseShapeTop','useReducer','formulaBinding','_isShouldShowDrawingShapeAdjust','_baseShapeWidth','offsetX','_drawingManagerService','bindRenderTransformerLifecycle','actions','some','FormulaShapeAnimationController','0.14','getScene','drawing-ui.objectListPanel.collapse','_baseShapeHeight','SolidLine','getInterceptPoints','_activeShapeModel','DocDrawingPosition','getUnitId','activateDrawingObject','max','_adjName','clear','0.8','color','BooleanNumber','_config','fill','_popupTargetKeys','remove$','drawing-ui.objectListPanel.expand','adjHandleSize','LocaleService','PARAGRAPH','refreshShapeFillImage','isHit','get','getTextStyle','IUniverInstanceService','onload','DocumentViewModel','UniverDocsPlugin','drawing-ui.objectListPanel.close','beginInteraction','doc.shape.text.float-menu','getImage','complete','MobileDocDrawingPosition','MobileActionRow','startWith','docs-shape-ui.textWrap.behindText','getTransformer','Line','univer-box-border\x20univer-px-4\x20univer-text-sm','distinctUntilChanged','reverse','3450200cZAyuT','startArrow','ShapeTextHyperLinkPopupService','render','_registerDrawingFocusChangeHandler','round','restore','_visible','resize','MobileMenu','current','_createShapeAdjustControls','18111tzkzjV','@univerjs-pro/docs-shape-ui','shape-editor-ui.toolbar.changeShape','_shapeId','drawing-ui.objectListPanel.name','_getFocusedShapeAtPoint','univer-grid\x20univer-gap-3','front','ShapePickerPanel','_initMenu','text','IDocDrawingService','call','DocumentSkeleton','UnitObject','ShapeTextHyperLinkInfo','skeFooters','srcRect','length','clearControl$'];_0x4069=function(){return _0xdb77d2;};return _0x4069();}J=I([F(0x0,l[_0x252e6(0x342)])],J);function gt(){const _0x30ddac=_0x252e6;let _0x5ba70f=(0x0,n[_0x30ddac(0x3af)])(u[_0x30ddac(0x3b6)]),_0x396e07=(0x0,n[_0x30ddac(0x1c6)])(()=>_0x5ba70f[_0x30ddac(0x119)],_0x5ba70f[_0x30ddac(0x236)](),!0x1,[_0x5ba70f]);return _0x396e07[_0x30ddac(0x2b8)]===0x0?null:(0x0,f[_0x30ddac(0x372)])(_0x30ddac(0x20a),{'children':(0x0,f[_0x30ddac(0x242)])(_0x30ddac(0x20a),{'className':_0x30ddac(0x297),'children':[(0x0,f[_0x30ddac(0x372)])(d['DrawingCommonPanel'],{'drawings':_0x396e07,'hasCropper':!0x1}),(0x0,f[_0x30ddac(0x372)])(h[_0x30ddac(0x144)],{'drawings':_0x396e07}),(0x0,f[_0x30ddac(0x372)])(h[_0x30ddac(0x273)],{'drawings':_0x396e07})]})});}function _t(_0x42337e){const _0x2c0401=_0x252e6;let {unitId:_0x1295d9,subUnitId:_0x1be4e0,shapeId:_0x3f4652,PositionComponent:_0x57613c=gt}=_0x42337e,_0x4f4abb=(0x0,n['useDependency'])(o[_0x2c0401(0x1b3)]),_0x5910c3=(0x0,n['useDependency'])(J);return(0x0,f[_0x2c0401(0x372)])(e['ShapeEditPanel'],{..._0x42337e,'positionEditor':(0x0,f[_0x2c0401(0x372)])(_0x57613c,{}),'onUpdateShapeData':(_0x79e6c1,_0x1cca0a)=>{R(_0x4f4abb,_0x1295d9,_0x1be4e0,_0x3f4652,_0x79e6c1,_0x1cca0a);},'onUpdateLineShapeData':(_0x7cbb13,_0x4a9b60)=>{fe(_0x4f4abb,_0x1295d9,_0x1be4e0,_0x3f4652,_0x7cbb13,_0x4a9b60);},'onUpdateShapeFillImage':_0x555c9d=>{const _0x4bb133=_0x2c0401;_0x5910c3[_0x4bb133(0x385)]({'unitId':_0x1295d9,'subUnitId':_0x1be4e0,'drawingId':_0x3f4652},_0x555c9d);}});}function vt(){const _0x55fbd3=_0x252e6;let _0x35dc08=(0x0,n[_0x55fbd3(0x3af)])(u[_0x55fbd3(0x3b6)]),_0x503c9a=(0x0,n[_0x55fbd3(0x1c6)])(_0x35dc08[_0x55fbd3(0x119)],_0x35dc08['getFocusDrawings']());return _0x503c9a[_0x55fbd3(0x2b8)]===0x0?null:(0x0,f[_0x55fbd3(0x242)])(_0x55fbd3(0x20a),{'className':'univer-grid\x20univer-gap-5\x20univer-px-4\x20univer-py-3','children':[(0x0,f['jsx'])(d[_0x55fbd3(0x3aa)],{'drawings':_0x503c9a,'hasCropper':!0x1}),(0x0,f['jsx'])(h[_0x55fbd3(0xa5)],{'drawings':_0x503c9a}),(0x0,f['jsx'])(h[_0x55fbd3(0x291)],{'drawings':_0x503c9a})]});}function yt(_0x3d32e5){const _0x31a2a9=_0x252e6;return(0x0,f[_0x31a2a9(0x372)])(e[_0x31a2a9(0x190)],{'children':(0x0,f['jsx'])(_t,{..._0x3d32e5,'PositionComponent':vt})});}function bt({popup:_0x3b7636}){const _0x4cad36=_0x252e6;let _0x441fbb=(0x0,n['useDependency'])(o[_0x4cad36(0x282)]),{shapeType:_0x567879,onText:_0x56e3fc,onStyle:_0x27058a,onDelete:_0x484089}=_0x3b7636['extraProps'],_0x58360a=[{'key':_0x4cad36(0x2b0),'order':0x0,'item':{'id':_0x4cad36(0x2b0),'type':n['MenuItemType'][_0x4cad36(0x30a)],'title':_0x441fbb['t'](_0x4cad36(0x194)),'disabled$':(0x0,p['of'])((0x0,i[_0x4cad36(0x9e)])(_0x567879))}},{'key':'style','order':0x1,'item':{'id':_0x4cad36(0x1de),'type':n[_0x4cad36(0x340)][_0x4cad36(0x30a)],'title':_0x441fbb['t'](_0x4cad36(0x1e1))}},{'key':'delete','order':0x2,'item':{'id':'delete','type':n[_0x4cad36(0x340)][_0x4cad36(0x30a)],'title':_0x441fbb['t'](_0x4cad36(0x1e5))}}];return(0x0,f[_0x4cad36(0x372)])(n[_0x4cad36(0x2a3)],{'schemas':_0x58360a,'presentation':_0x4cad36(0xb0),'onOptionSelect':async({id:_0xdf785f})=>{const _0x5d9410=_0x4cad36;_0xdf785f===_0x5d9410(0x2b0)?await _0x56e3fc():_0xdf785f==='style'?await _0x27058a():_0xdf785f===_0x5d9410(0x96)&&await _0x484089();}});}const xt='doc.shape.floating-toolbar';function St(_0x141637,_0x30f89e){const _0x5a502c=_0x252e6;var _0x174ec1;let _0x474d76=_0x141637==null||(_0x174ec1=_0x141637[_0x5a502c(0x20e)]()[_0x5a502c(0x208)])==null?void 0x0:_0x174ec1[_0x30f89e];return _0x474d76?_0x474d76[_0x5a502c(0xcc)]===o['PositionedObjectLayoutType'][_0x5a502c(0x15a)]?_0x474d76[_0x5a502c(0x364)]===o[_0x5a502c(0x27b)][_0x5a502c(0x25b)]?c['TextWrappingStyle']['BEHIND_TEXT']:c['TextWrappingStyle']['IN_FRONT_OF_TEXT']:_0x474d76[_0x5a502c(0xcc)]===o['PositionedObjectLayoutType'][_0x5a502c(0x1cc)]?c[_0x5a502c(0x1e7)][_0x5a502c(0x1cc)]:_0x474d76[_0x5a502c(0xcc)]===o[_0x5a502c(0x32b)][_0x5a502c(0x21b)]?c[_0x5a502c(0x1e7)][_0x5a502c(0x21b)]:c[_0x5a502c(0x1e7)][_0x5a502c(0x260)]:c['TextWrappingStyle'][_0x5a502c(0x260)];}function Ct(_0x3b5b18){const _0x2c1e8e=_0x252e6;let _0x43b742=(0x0,n[_0x2c1e8e(0x3af)])(e[_0x2c1e8e(0x34d)]),_0x63df14=(0x0,n[_0x2c1e8e(0x1c6)])(()=>_0x43b742[_0x2c1e8e(0x102)],_0x43b742[_0x2c1e8e(0xd1)](),!0x1,[_0x43b742]),_0x295e8e=_0x3b5b18[_0x2c1e8e(0x353)][_0x2c1e8e(0x21a)];return _0x63df14?(0x0,f[_0x2c1e8e(0x372)])(wt,{..._0x295e8e,'canvasElement':_0x3b5b18[_0x2c1e8e(0x353)]['canvasElement']}):null;}function wt(_0x448c71){const _0x47fd24=_0x252e6;let _0x41f7fb=(0x0,n[_0x47fd24(0x3af)])(o['ICommandService']),_0x501950=(0x0,n[_0x47fd24(0x3af)])(o[_0x47fd24(0x282)]),_0x32d66d=(0x0,n['useDependency'])(r[_0x47fd24(0x1b0)]),_0x370a2f=(0x0,n[_0x47fd24(0x3af)])(o['IUniverInstanceService']),{unitId:_0x2da480,subUnitId:_0xbda0cb,drawingId:_0x56461e,shapeType:_0xf30e35}=_0x448c71,[_0x41293e,_0x2da6f7]=(0x0,v[_0x47fd24(0x133)])(_0x448c71['shapeData']),_0x34d77c=_0x370a2f[_0x47fd24(0x159)](_0x2da480,o[_0x47fd24(0x2bc)][_0x47fd24(0x248)])??void 0x0,[_0x365eb3,_0x859b3f]=(0x0,v['useState'])(()=>St(_0x34d77c,_0x56461e)),_0x50d9d6=(0x0,v[_0x47fd24(0x181)])(()=>(0x0,e[_0x47fd24(0x287)])(_0x41293e),[_0x41293e]),_0x282b72=(0x0,v[_0x47fd24(0x181)])(()=>(0x0,e[_0x47fd24(0x161)])(_0x41293e),[_0x41293e]);(0x0,v['useEffect'])(()=>{const _0x56b238=_0x47fd24;let _0x33d3c4=_0x41f7fb['onCommandExecuted'](_0x1294fc=>{const _0xba4fc8=_0x2560;if(_0x1294fc['id']!==r[_0xba4fc8(0x257)]['id'])return;let _0x45cff2=_0x32d66d[_0xba4fc8(0x3ad)](_0x2da480,_0xbda0cb,_0x56461e);_0x45cff2&&_0x2da6f7(_0x45cff2);});return()=>_0x33d3c4[_0x56b238(0x32e)]();},[_0x41f7fb,_0x32d66d,_0x56461e,_0xbda0cb,_0x2da480]);let _0x328989=_0x113e1e=>{_0x2da6f7(_0xb46de=>({..._0xb46de,..._0x113e1e}));},_0x45a786=_0x166e4e=>{const _0x27a0c9=_0x47fd24;let _0x3643bd=(0x0,e[_0x27a0c9(0xff)])(_0x41293e,_0x166e4e);R(_0x41f7fb,_0x2da480,_0xbda0cb,_0x56461e,{'oldShapeData':{'shapeText':_0x41293e[_0x27a0c9(0x97)]}},_0x3643bd),_0x328989(_0x3643bd);},_0x2e358e=_0x467960=>{const _0x187b2e=_0x47fd24;_0x859b3f(_0x467960),_0x41f7fb[_0x187b2e(0x1d9)](c['UpdateDocDrawingWrappingStyleCommand']['id'],{'unitId':_0x2da480,'subUnitId':_0xbda0cb,'drawings':[{'unitId':_0x2da480,'subUnitId':_0xbda0cb,'drawingId':_0x56461e}],'wrappingStyle':_0x467960});},_0x566e86=(0x0,e[_0x47fd24(0x92)])({'hostType':o['UniverInstanceType'][_0x47fd24(0x248)],'unitId':_0x2da480,'subUnitId':_0xbda0cb,'shapeId':_0x56461e,'shapeData':_0x41293e,'onUpdateBinding':_0x1b50f4=>{const _0x34375a=_0x47fd24;let _0x14c03a={'formulaBinding':_0x1b50f4};R(_0x41f7fb,_0x2da480,_0xbda0cb,_0x56461e,{'oldShapeData':{'formulaBinding':_0x41293e[_0x34375a(0x263)]}},_0x14c03a),_0x328989(_0x14c03a);}}),_0x34d2f5=[{'label':_0x501950['t'](_0x47fd24(0x150)),'value':c['TextWrappingStyle'][_0x47fd24(0x260)],'icon':(0x0,f[_0x47fd24(0x372)])(g['TextWrapShapeIcon'],{})},{'label':_0x501950['t'](_0x47fd24(0x2c0)),'value':c[_0x47fd24(0x1e7)][_0x47fd24(0x1cc)],'icon':(0x0,f[_0x47fd24(0x372)])(g[_0x47fd24(0x390)],{})},{'label':_0x501950['t'](_0x47fd24(0x2e0)),'value':c[_0x47fd24(0x1e7)][_0x47fd24(0x21b)],'icon':(0x0,f[_0x47fd24(0x372)])(g[_0x47fd24(0x390)],{})},{'label':_0x501950['t'](_0x47fd24(0x294)),'value':c['TextWrappingStyle'][_0x47fd24(0x3a1)],'icon':(0x0,f[_0x47fd24(0x372)])(g['TextWrapShapeIcon'],{})},{'label':_0x501950['t'](_0x47fd24(0xe3)),'value':c['TextWrappingStyle'][_0x47fd24(0x398)],'icon':(0x0,f[_0x47fd24(0x372)])(g[_0x47fd24(0x390)],{})}];return(0x0,f[_0x47fd24(0x242)])(f[_0x47fd24(0x229)],{'children':[(0x0,f['jsx'])(e[_0x47fd24(0x15f)],{'canvasElement':_0x448c71[_0x47fd24(0xca)],'shapeData':_0x41293e,'shapeType':_0xf30e35,'textStyle':{'ff':i['ShapeDefaultConfig'][_0x47fd24(0x97)][_0x47fd24(0x112)],'fs':i['ShapeDefaultConfig']['shapeText'][_0x47fd24(0x247)],'cl':{'rgb':i['ShapeDefaultConfig'][_0x47fd24(0x97)][_0x47fd24(0x27a)]},..._0x50d9d6},'textModel':_0x282b72?{'ha':_0x282b72['ha']??o[_0x47fd24(0x25c)][_0x47fd24(0x20c)],'va':_0x282b72['va']??o['VerticalAlign'][_0x47fd24(0xa2)]}:null,'wrappingStyle':_0x365eb3,'wrappingStyleOptions':_0x34d2f5,'enableShapeFillReset':!0x0,'enableShapeStrokeReset':!0x0,'enableTextBackgroundReset':!0x0,'defaultFillColor':i[_0x47fd24(0x38b)][_0x47fd24(0x27d)],'defaultGradientEndColor':i[_0x47fd24(0x38b)]['gradientEndColor'],'defaultStrokeColor':i[_0x47fd24(0x38b)][_0x47fd24(0x12b)],'extensionGroups':_0x566e86[_0x47fd24(0x309)],'floatingObjectToolbarPosition':n[_0x47fd24(0x359)][_0x47fd24(0x157)],'onUpdateShapeData':(_0x4cbabe,_0x3a7aad)=>{R(_0x41f7fb,_0x2da480,_0xbda0cb,_0x56461e,_0x4cbabe,_0x3a7aad),_0x3a7aad&&_0x328989(_0x3a7aad);},'onUpdateText':_0x45a786,'onUpdateWrappingStyle':_0x510b88=>_0x2e358e(_0x510b88),'onOpenPanel':()=>{const _0x4451ec=_0x47fd24;_0x41f7fb[_0x4451ec(0x1d9)](j['id'],{'unitId':_0x2da480,'subUnitId':_0xbda0cb,'drawingId':_0x56461e});},'onDelete':()=>{const _0x55e72c=_0x47fd24;_0x41f7fb[_0x55e72c(0x1d9)](c[_0x55e72c(0xd0)]['id'],{'unitId':_0x2da480,'drawings':[{'unitId':_0x2da480,'subUnitId':_0xbda0cb,'drawingId':_0x56461e}]});}}),_0x566e86['panel']]});}function Tt({variant:_0x2bb74d,extend:_0x3f95a8,..._0x1ba6e2}){const _0x32a4e4=_0x252e6;let _0x3e50d4=(0x0,f[_0x32a4e4(0x372)])(_0x32a4e4(0x235),{'x':'7','y':_0x32a4e4(0x23e),'width':'6','height':'9','rx':'1','fill':_0x32a4e4(0x2f2),'fillOpacity':_0x32a4e4(0x26c),'stroke':_0x32a4e4(0x2f2),'strokeWidth':'1.2'});return(0x0,f['jsxs'])(_0x32a4e4(0x1f5),{'aria-hidden':_0x32a4e4(0x396),'fill':_0x32a4e4(0x2cb),'height':_0x32a4e4(0xa8),'viewBox':_0x32a4e4(0x356),'width':_0x32a4e4(0xa8),..._0x1ba6e2,'children':[_0x2bb74d===_0x32a4e4(0x1a3)&&(0x0,f['jsxs'])(f[_0x32a4e4(0x229)],{'children':[(0x0,f[_0x32a4e4(0x372)])(_0x32a4e4(0x358),{'d':_0x32a4e4(0x1b7),'stroke':'currentColor','strokeLinecap':'round','strokeWidth':_0x32a4e4(0x15d)}),(0x0,f['jsx'])(_0x32a4e4(0x235),{'x':'8','y':'7','width':'4','height':'6','rx':_0x32a4e4(0x279),'fill':_0x32a4e4(0x2f2),'fillOpacity':'0.14','stroke':_0x32a4e4(0x2f2),'strokeWidth':_0x32a4e4(0x15d)})]}),_0x2bb74d===_0x32a4e4(0x189)&&(0x0,f[_0x32a4e4(0x242)])(f[_0x32a4e4(0x229)],{'children':[(0x0,f['jsx'])(_0x32a4e4(0x358),{'d':_0x32a4e4(0x2fe),'stroke':_0x32a4e4(0x2f2),'strokeLinecap':_0x32a4e4(0x29f),'strokeWidth':_0x32a4e4(0x15d)}),_0x3e50d4]}),_0x2bb74d===_0x32a4e4(0x346)&&(0x0,f['jsxs'])(f['Fragment'],{'children':[(0x0,f[_0x32a4e4(0x372)])(_0x32a4e4(0x358),{'d':_0x32a4e4(0x238),'stroke':_0x32a4e4(0x2f2),'strokeLinecap':_0x32a4e4(0x29f),'strokeWidth':_0x32a4e4(0x15d)}),_0x3e50d4]}),_0x2bb74d==='behind'&&(0x0,f[_0x32a4e4(0x242)])(f[_0x32a4e4(0x229)],{'children':[_0x3e50d4,(0x0,f[_0x32a4e4(0x372)])('path',{'d':'M2\x203h16M2\x207.5h16M2\x2010h16M2\x2012.5h16M2\x2017h16','stroke':_0x32a4e4(0x2f2),'strokeLinecap':_0x32a4e4(0x29f),'strokeWidth':_0x32a4e4(0x15d)})]}),_0x2bb74d===_0x32a4e4(0x2ad)&&(0x0,f[_0x32a4e4(0x242)])(f['Fragment'],{'children':[(0x0,f['jsx'])(_0x32a4e4(0x358),{'d':_0x32a4e4(0x302),'stroke':_0x32a4e4(0x2f2),'strokeLinecap':_0x32a4e4(0x29f),'strokeWidth':'1.2'}),(0x0,f[_0x32a4e4(0x372)])(_0x32a4e4(0x235),{'x':'7','y':'5.5','width':'6','height':'9','rx':'1','fill':_0x32a4e4(0x2f2)})]})]});}const Y=_0x3d7d66=>_0x36458d=>(0x0,f[_0x252e6(0x372)])(Tt,{..._0x36458d,'variant':_0x3d7d66}),Et={'DocsShapeWrapInlineIcon':Y(_0x252e6(0x1a3)),'DocsShapeWrapSquareIcon':Y(_0x252e6(0x189)),'DocsShapeWrapTopBottomIcon':Y(_0x252e6(0x346)),'DocsShapeWrapBehindTextIcon':Y('behind'),'DocsShapeWrapInFrontOfTextIcon':Y(_0x252e6(0x2ad))},Dt=(0x0,v['memo'])(()=>{const _0x164a72=_0x252e6;let _0x3dae5e=(0x0,n[_0x164a72(0x3af)])(G),_0xd5da24=(0x0,n['useDependency'])(r['DocsShapeService']),_0x490176=(0x0,n[_0x164a72(0x3af)])(u[_0x164a72(0x3b6)]),_0x4b800c=(0x0,n[_0x164a72(0x3af)])(o[_0x164a72(0x1b3)]),_0x51f46e=(0x0,v['useMemo'])(()=>({'getShapeModel':(_0x13ae47,_0x4d0a1e,_0xba44ed)=>_0xd5da24['getShapeModel'](_0x13ae47,_0x4d0a1e,_0xba44ed),'getShapeData':(_0x40f79c,_0x11ea86,_0x4870d7)=>_0xd5da24['getShapeDataById'](_0x40f79c,_0x11ea86,_0x4870d7),'getDrawingTransform':(_0x5a6cf6,_0x331a83,_0x4da64a)=>{const _0x215e12=_0x164a72;let _0x581552=_0x490176[_0x215e12(0x1ca)]({'unitId':_0x5a6cf6,'subUnitId':_0x331a83,'drawingId':_0x4da64a});return _0x581552==null?void 0x0:_0x581552[_0x215e12(0x182)];},'updateShapeText':({unitId:_0x1c87bf,shapeId:_0x365017,shapeText:_0x20ab35,oldShapeText:_0x927be9})=>{const _0x43b4f5=_0x164a72;_0x4b800c[_0x43b4f5(0x1d9)](r['UpdateDocShapeDataCommand']['id'],{'unitId':_0x1c87bf,'shapeId':_0x365017,'shapeData':{'shapeText':_0x20ab35},'oldShapeJSON':{'oldShapeData':{'shapeText':_0x927be9}}});},'updateHostSize':({unitId:_0xba8a57,subUnitId:_0x271ced,shapeId:_0x248f7e,width:_0x3a91d9,height:_0x50aff3})=>{const _0x15ffc3=_0x164a72;_0x4b800c['executeCommand'](c['UpdateDrawingDocTransformCommand']['id'],{'unitId':_0xba8a57,'subUnitId':_0x271ced,'drawings':[{'drawingId':_0x248f7e,'key':_0x15ffc3(0x1ef),'value':{'width':_0x3a91d9,'height':_0x50aff3}}]});},'allowHostSizeShrink':({unitId:_0x8d0a0f,subUnitId:_0x4e6692,shapeId:_0x1553fc})=>(0x0,e['shouldAllowShapeTextEditorHostSizeShrink'])(_0xd5da24[_0x164a72(0x3ad)](_0x8d0a0f,_0x4e6692,_0x1553fc))}),[_0x4b800c,_0xd5da24,_0x490176]),_0x6efd22=(0x0,v['useMemo'])(()=>({'viewportKeys':{'main':t[_0x164a72(0x2c9)]['VIEW_MAIN']}}),[]);return(0x0,f[_0x164a72(0x372)])(e[_0x164a72(0x344)],{'adapter':_0x51f46e,'editingService':_0x3dae5e,'editorUnitId':D,'positionOptions':_0x6efd22});});let Ot=class extends o[_0x252e6(0x1bf)]{constructor(_0x39d862,_0x3c2c1b){const _0x4ae15e=_0x252e6;super(),this[_0x4ae15e(0x35c)]=_0x39d862,this[_0x4ae15e(0xfe)]=_0x3c2c1b,this[_0x4ae15e(0x1e0)](),this['_registerComponents']();}['_registerIcons'](){const _0x33ee2c=_0x252e6;this[_0x33ee2c(0xfe)][_0x33ee2c(0x38f)](_0x33ee2c(0x188))||this[_0x33ee2c(0x243)](this[_0x33ee2c(0xfe)][_0x33ee2c(0x21d)]({'ObjectLayersIcon':g[_0x33ee2c(0x188)]})),this[_0x33ee2c(0xfe)][_0x33ee2c(0x38f)](_0x33ee2c(0x319))||this[_0x33ee2c(0x243)](this[_0x33ee2c(0xfe)][_0x33ee2c(0x21d)]({'BottomIcon':g[_0x33ee2c(0x319)]})),this['_iconManager']['has'](_0x33ee2c(0x366))||this[_0x33ee2c(0x243)](this[_0x33ee2c(0xfe)][_0x33ee2c(0x21d)]({'MoveDownIcon':g[_0x33ee2c(0x366)]})),this[_0x33ee2c(0xfe)][_0x33ee2c(0x38f)]('MoveUpIcon')||this[_0x33ee2c(0x243)](this[_0x33ee2c(0xfe)][_0x33ee2c(0x21d)]({'MoveUpIcon':g[_0x33ee2c(0x1f1)]})),this[_0x33ee2c(0xfe)][_0x33ee2c(0x38f)](_0x33ee2c(0x363))||this['disposeWithMe'](this[_0x33ee2c(0xfe)]['register']({'ShapeFormatSettingIcon':g[_0x33ee2c(0x363)]})),this[_0x33ee2c(0xfe)]['has'](_0x33ee2c(0xe9))||this[_0x33ee2c(0x243)](this['_iconManager'][_0x33ee2c(0x21d)]({'TopmostIcon':g[_0x33ee2c(0xe9)]})),this[_0x33ee2c(0x243)](this['_iconManager'][_0x33ee2c(0x21d)](Et));}['_registerComponents'](){const _0x4bd932=_0x252e6;this[_0x4bd932(0x243)](this[_0x4bd932(0x35c)][_0x4bd932(0x21d)](w,yt)),this[_0x4bd932(0x243)](this[_0x4bd932(0x35c)][_0x4bd932(0x21d)](E,ht)),this[_0x4bd932(0x243)](this[_0x4bd932(0x35c)][_0x4bd932(0x21d)](xt,bt)),this[_0x4bd932(0x243)](this[_0x4bd932(0x35c)][_0x4bd932(0x21d)](me,be)),this[_0x4bd932(0x243)](this[_0x4bd932(0x35c)][_0x4bd932(0x21d)](pe,xe)),this[_0x4bd932(0x243)](this[_0x4bd932(0x35c)][_0x4bd932(0x21d)](he,Se)),this['disposeWithMe'](this[_0x4bd932(0x35c)]['register'](ge,Ce)),this[_0x4bd932(0x243)](this[_0x4bd932(0x35c)][_0x4bd932(0x21d)](_e,we)),this[_0x4bd932(0x243)](this[_0x4bd932(0x35c)][_0x4bd932(0x21d)](O,e['ShapeTextFloatToolbar'])),this[_0x4bd932(0x243)](this[_0x4bd932(0x35c)]['register'](ee,ut)),this[_0x4bd932(0x243)](this[_0x4bd932(0x35c)][_0x4bd932(0x21d)](te,dt)),this['_componentManager'][_0x4bd932(0x258)](d[_0x4bd932(0x114)])||this[_0x4bd932(0x243)](this[_0x4bd932(0x35c)]['register'](d[_0x4bd932(0x114)],ae)),this[_0x4bd932(0x243)](this[_0x4bd932(0x35c)]['register'](k,Dt));}};Ot=I([F(0x0,(0x0,o[_0x252e6(0x329)])(n[_0x252e6(0x12a)])),F(0x1,(0x0,o[_0x252e6(0x329)])(n[_0x252e6(0x333)]))],Ot);let kt=class extends o[_0x252e6(0x1bf)]{constructor(_0x575e71,_0x10011b,_0xc19dea,_0x5e3802,_0x836800,_0x50a093,_0x2b9cf5,_0x2f0256,_0x533ab0,_0x1cee5d,_0x520f46,_0x4b1fe1,_0x1acda4){const _0x1054e7=_0x252e6;super(),this['_univerInstanceService']=_0x575e71,this[_0x1054e7(0x211)]=_0x10011b,this[_0x1054e7(0x3bc)]=_0xc19dea,this[_0x1054e7(0x389)]=_0x5e3802,this['_localeService']=_0x836800,this['_commandService']=_0x50a093,this[_0x1054e7(0x267)]=_0x2b9cf5,this[_0x1054e7(0xc2)]=_0x2f0256,this[_0x1054e7(0x1da)]=_0x533ab0,this[_0x1054e7(0x2db)]=_0x1cee5d,this[_0x1054e7(0x393)]=_0x520f46,this[_0x1054e7(0x24d)]=_0x4b1fe1,this['_mobileEditorService']=_0x1acda4,H(this,_0x1054e7(0x2fd),null),H(this,'_activeShapeInfo',null),H(this,_0x1054e7(0x3a3),!0x1),H(this,_0x1054e7(0x137),0x0),H(this,_0x1054e7(0x36a),new Map()),H(this,_0x1054e7(0x27e),new Map()),this[_0x1054e7(0x2af)](),this[_0x1054e7(0x243)](this[_0x1054e7(0x1ce)][_0x1054e7(0x228)](o[_0x1054e7(0x2bc)][_0x1054e7(0x248)])['subscribe'](_0x574752=>{const _0x4a3a4a=_0x1054e7;if(!_0x574752){var _0x2f47ef;(_0x2f47ef=this[_0x4a3a4a(0x2fd)])==null||_0x2f47ef[_0x4a3a4a(0x32e)]();}})),this[_0x1054e7(0x2fc)](),this[_0x1054e7(0x243)](this[_0x1054e7(0x267)][_0x1054e7(0x27f)][_0x1054e7(0x334)](_0xe4ed98=>{const _0x278f27=_0x1054e7;for(let _0x45f75b of _0xe4ed98){let _0x2125a0=_0x45f75b['unitId']+':'+_0x45f75b[_0x278f27(0x33d)]+':'+_0x45f75b[_0x278f27(0x252)];for(let [_0x3eb1a1,_0x33da45]of this['_popupTargetKeys'])_0x33da45===_0x2125a0&&this[_0x278f27(0xbd)](_0x3eb1a1,!0x0);}})),this[_0x1054e7(0x243)]((0x0,e[_0x1054e7(0x268)])(this[_0x1054e7(0x1da)],o[_0x1054e7(0x2bc)][_0x1054e7(0x248)],_0x100dc3=>this[_0x1054e7(0x2c4)](_0x100dc3))),this[_0x1054e7(0x243)](this[_0x1054e7(0x393)][_0x1054e7(0xe8)][_0x1054e7(0x334)](_0x489e21=>{_0x489e21&&this['_clearPopups'](void 0x0,!0x0);})),this[_0x1054e7(0x243)](this[_0x1054e7(0x24d)][_0x1054e7(0x34f)]['subscribe'](()=>{const _0x4d8840=_0x1054e7;this[_0x4d8840(0x267)][_0x4d8840(0x236)]()[_0x4d8840(0x26a)](_0x522dd9=>_0x522dd9[_0x4d8840(0xd8)]===o['DrawingTypeEnum'][_0x4d8840(0x21c)]&&this[_0x4d8840(0x1ce)][_0x4d8840(0x1c0)](_0x522dd9['unitId'])===o[_0x4d8840(0x2bc)][_0x4d8840(0x248)]&&!this[_0x4d8840(0x165)](_0x522dd9['unitId'],_0x522dd9[_0x4d8840(0x252)]))&&(this[_0x4d8840(0xbd)](void 0x0,!0x0),this[_0x4d8840(0x1b1)]());}));}[_0x252e6(0x2e7)](_0x3dd7d6,_0x399594,_0xfe3f58,_0x2406c6){const _0x6a600c=_0x252e6;return[{'label':_0x6a600c(0xef),'index':0x0,'commandId':j['id'],'commandParams':{'unitId':_0x3dd7d6,'subUnitId':_0x399594,'drawingId':_0xfe3f58},'disable':_0x2406c6===o['DrawingTypeEnum'][_0x6a600c(0x1f3)]},{'label':_0x6a600c(0x2f7),'index':0x1,'commandId':c[_0x6a600c(0xd0)]['id'],'commandParams':{'unitId':_0x3dd7d6,'drawings':[{'unitId':_0x3dd7d6,'subUnitId':_0x399594,'drawingId':_0xfe3f58}]},'disable':!0x1},{'label':'docs-shape-ui.hidePanel','index':0x2,'commandId':B['id'],'commandParams':{'unitId':_0x3dd7d6,'subUnitId':_0x399594,'drawingId':_0xfe3f58},'disable':!0x1}];}[_0x252e6(0x2af)](){const _0x516bb8=_0x252e6;this[_0x516bb8(0x3bc)][_0x516bb8(0x2c7)](Qe);}['_getShapeInfo'](_0x4fd818,_0x12aa26,_0x48ce39){const _0x2f4d92=_0x252e6;let _0x285456=this[_0x2f4d92(0x389)][_0x2f4d92(0x131)](_0x4fd818,_0x12aa26,_0x48ce39),_0x2b6dd6=this[_0x2f4d92(0x389)][_0x2f4d92(0x3ad)](_0x4fd818,_0x12aa26,_0x48ce39);return _0x285456===void 0x0||_0x2b6dd6===void 0x0?null:{'shapeData':_0x2b6dd6,'shapeId':_0x48ce39,'shapeType':_0x285456,'unitId':_0x4fd818,'subUnitId':_0x12aa26,'version':this[_0x2f4d92(0x137)],'disableShapeOption':!0x1};}['_clearPopups'](_0x3cba99,_0x1fe247=!0x1){const _0x4d0ea5=_0x252e6;if(_0x3cba99==null){[...this[_0x4d0ea5(0x36a)][_0x4d0ea5(0x3b9)]()]['forEach'](_0x767e84=>this[_0x4d0ea5(0xbd)](_0x767e84,_0x1fe247));return;}let _0x112fd2=this[_0x4d0ea5(0x36a)][_0x4d0ea5(0x286)](_0x3cba99);if(_0x112fd2){for(let _0x10c110=_0x112fd2[_0x4d0ea5(0x2b8)]-0x1;_0x10c110>=0x0;--_0x10c110){let _0x1427be=_0x112fd2[_0x10c110];(_0x1fe247||_0x1427be[_0x4d0ea5(0xbb)]())&&(_0x1427be[_0x4d0ea5(0x32e)](),_0x112fd2[_0x4d0ea5(0x2c6)](_0x10c110,0x1));}_0x112fd2[_0x4d0ea5(0x2b8)]===0x0&&(this[_0x4d0ea5(0x36a)][_0x4d0ea5(0x96)](_0x3cba99),this[_0x4d0ea5(0x27e)][_0x4d0ea5(0x96)](_0x3cba99));}}['_getDisposePopups'](_0x3da68d){const _0x2b67f4=_0x252e6;let _0x746d95=this[_0x2b67f4(0x36a)][_0x2b67f4(0x286)](_0x3da68d);if(_0x746d95)return _0x746d95;let _0x422ad2=[];return this['_disposePopupsByUnit']['set'](_0x3da68d,_0x422ad2),_0x422ad2;}[_0x252e6(0x2c4)](_0x274db9){const _0x3f7746=_0x252e6;var _0x56259a;let _0x57eac7=new o['DisposableCollection'](),_0x12cdef=(_0x56259a=this['_renderManagerService']['getAllRenderersOfType'](o[_0x3f7746(0x2bc)][_0x3f7746(0x248)])[_0x3f7746(0x327)](_0x3e13ac=>_0x3e13ac[_0x3f7746(0xa4)][_0x3f7746(0x10d)]()===_0x274db9))==null?void 0x0:_0x56259a[_0x3f7746(0x148)];return _0x12cdef&&(_0x57eac7[_0x3f7746(0x2ba)](_0x274db9[_0x3f7746(0x38d)]['subscribe'](()=>this[_0x3f7746(0x380)](_0x274db9,_0x12cdef))),_0x57eac7[_0x3f7746(0x2ba)](_0x274db9[_0x3f7746(0x2b9)][_0x3f7746(0x334)](()=>{const _0x43d974=_0x3f7746;this[_0x43d974(0xbd)](_0x12cdef),queueMicrotask(()=>{const _0xcc520c=_0x43d974;_0x274db9[_0xcc520c(0x176)]()[_0xcc520c(0x1ef)]>0x0||!this[_0xcc520c(0x267)]['getFocusDrawings']()['some'](_0x21b73c=>_0x21b73c[_0xcc520c(0x148)]===_0x12cdef)||(this[_0xcc520c(0x2db)]['setContextValue'](o[_0xcc520c(0x199)],!0x1),this[_0xcc520c(0x267)][_0xcc520c(0x300)](null));});})),_0x57eac7['add'](_0x274db9[_0x3f7746(0x315)][_0x3f7746(0x334)](()=>{const _0x438243=_0x3f7746;this[_0x438243(0xbd)](_0x12cdef,!0x0);}))),_0x57eac7;}['_handleCreateControl'](_0x37b927,_0x2e5ea0){const _0xa7d93=_0x252e6;let _0x45242a=_0x37b927[_0xa7d93(0x176)]();if(this[_0xa7d93(0x3a3)]){this[_0xa7d93(0xbd)](_0x2e5ea0,!0x0);return;}if(_0x45242a[_0xa7d93(0x1ef)]>0x1){this[_0xa7d93(0xbd)](_0x2e5ea0);return;}let _0x2644c3=_0x45242a['values']()[_0xa7d93(0xbf)]()[_0xa7d93(0x202)];if(!_0x2644c3){this[_0xa7d93(0xbd)](_0x2e5ea0);return;}let _0x3708f0=this['_drawingManagerService'][_0xa7d93(0x163)](_0x2644c3[_0xa7d93(0x306)]);if(!_0x3708f0||_0x3708f0[_0xa7d93(0xd8)]!==o[_0xa7d93(0x122)][_0xa7d93(0x21c)]){this[_0xa7d93(0xbd)](_0x2e5ea0);return;}let {unitId:_0x2479e9,subUnitId:_0x21bf92,drawingId:_0x56c44c}=_0x3708f0;if(!this['_canEditShape'](_0x2479e9,_0x56c44c)){this['_clearPopups'](_0x2e5ea0,!0x0);return;}let _0x2f8b75=this[_0xa7d93(0x121)](_0x2479e9,_0x21bf92,_0x56c44c);if(!_0x2f8b75){this[_0xa7d93(0xbd)](_0x2e5ea0);return;}let _0x5ea02b=this[_0xa7d93(0x36a)][_0xa7d93(0x286)](_0x2e5ea0),_0x5d0608=_0x2479e9+':'+_0x21bf92+':'+_0x56c44c;if(this[_0xa7d93(0x27e)][_0xa7d93(0x286)](_0x2e5ea0)===_0x5d0608&&_0x5ea02b!=null&&_0x5ea02b[_0xa7d93(0x2b8)])return;this[_0xa7d93(0xbd)](_0x2e5ea0);let _0x196db9=this[_0xa7d93(0x1da)][_0xa7d93(0x206)](_0x2479e9),_0x4ce4af=((_0x196db9==null?void 0x0:_0x196db9[_0xa7d93(0x371)])===!0x1?_0x196db9[_0xa7d93(0x1cf)](t[_0xa7d93(0x1af)]):this[_0xa7d93(0xc2)])[_0xa7d93(0x318)](_0x2644c3,this[_0xa7d93(0x328)](_0x2f8b75,()=>this['_clearPopups'](_0x2e5ea0,!0x0)),_0x2479e9);this[_0xa7d93(0x243)](_0x4ce4af),this[_0xa7d93(0x212)](_0x2e5ea0)[_0xa7d93(0xf7)](_0x4ce4af),this['_popupTargetKeys'][_0xa7d93(0x149)](_0x2e5ea0,_0x5d0608),this[_0xa7d93(0x267)][_0xa7d93(0x236)]()['some'](_0x25084b=>_0x25084b[_0xa7d93(0x148)]===_0x2479e9&&_0x25084b[_0xa7d93(0x33d)]===_0x21bf92&&_0x25084b[_0xa7d93(0x252)]===_0x56c44c)||this[_0xa7d93(0x267)][_0xa7d93(0x300)]([{'unitId':_0x2479e9,'subUnitId':_0x21bf92,'drawingId':_0x56c44c}]);}['_getShapePopup'](_0x42be3d,_0x5cdef0){const _0x40ebc5=_0x252e6;let {unitId:_0x47a794,subUnitId:_0x4d9938,shapeId:_0x3619bc}=_0x42be3d,_0x5c6127={'hostType':o['UniverInstanceType']['UNIVER_DOC'],'unitId':_0x47a794,'subUnitId':_0x4d9938,'shapeId':_0x3619bc};return{'componentKey':xt,'requiresStableLayout':!0x1,'direction':'top-center','offset':[0x0,0x8],'extraProps':{'shapeType':_0x42be3d[_0x40ebc5(0x30c)],'onText':()=>{const _0x1cbced=_0x40ebc5;_0x5cdef0(),this[_0x1cbced(0x3a2)][_0x1cbced(0x394)]('text',_0x5c6127);},'onStyle':()=>{const _0x1cbfb9=_0x40ebc5;_0x5cdef0(),this['_mobileEditorService'][_0x1cbfb9(0x394)](_0x1cbfb9(0x1de),_0x5c6127);},'onDelete':()=>this[_0x40ebc5(0x22c)][_0x40ebc5(0x1d9)](c[_0x40ebc5(0xd0)]['id'],{'unitId':_0x47a794,'drawings':[{'unitId':_0x47a794,'subUnitId':_0x4d9938,'drawingId':_0x3619bc}]})}};}['_canEditShape'](_0x27d83c,_0x112c1f){const _0x4e33c1=_0x252e6;let _0x54b716=this[_0x4e33c1(0x1ce)][_0x4e33c1(0x159)](_0x27d83c,o['UniverInstanceType'][_0x4e33c1(0x248)]);if(!_0x54b716)return!0x1;let _0x319202=(0x0,s[_0x4e33c1(0x367)])(_0x54b716,_0x112c1f);return(0x0,s['canEditDocumentTargets'])(this[_0x4e33c1(0x24d)],_0x27d83c,[...(0x0,s[_0x4e33c1(0x312)])(_0x54b716,_0x319202,_0x4e33c1(0x253),_0x112c1f),(0x0,s['getDocumentEntityPermissionObjectId'])(_0x319202,_0x4e33c1(0x253),_0x112c1f)]);}[_0x252e6(0x2fc)](){const _0x519997=_0x252e6;this[_0x519997(0x243)](this[_0x519997(0x22c)][_0x519997(0xdc)](_0x15078b=>{const _0x2a37b8=_0x519997;if(_0x15078b['id']===j['id']){let {unitId:_0x25022d,subUnitId:_0x2b55c0,drawingId:_0x52751e}=_0x15078b[_0x2a37b8(0x355)];this[_0x2a37b8(0x137)]+=0x1,this['_activeShapeInfo']=this['_getShapeInfo'](_0x25022d,_0x2b55c0,_0x52751e),this['_clearPopups'](void 0x0,!0x0),this[_0x2a37b8(0x2ea)]();}if(_0x15078b['id']===B['id']&&(this[_0x2a37b8(0x204)]=null,this[_0x2a37b8(0x1b1)]()),_0x15078b['id']===r['UpdateDocShapeDataMutation']['id']){var _0x5e7a13;let {unitId:_0x3d600b,shapeId:_0x503669}=_0x15078b['params'];if(((_0x5e7a13=this[_0x2a37b8(0x204)])==null?void 0x0:_0x5e7a13[_0x2a37b8(0x350)])===_0x503669){let _0xcab76a=this[_0x2a37b8(0x121)](_0x3d600b,this[_0x2a37b8(0x204)][_0x2a37b8(0x33d)],_0x503669);_0xcab76a&&(this[_0x2a37b8(0x137)]+=0x1,_0xcab76a['version']=this[_0x2a37b8(0x137)],this[_0x2a37b8(0x204)]=_0xcab76a,this[_0x2a37b8(0x3a3)]&&this[_0x2a37b8(0x2ea)]());}}})),this['disposeWithMe'](this[_0x519997(0x267)][_0x519997(0x119)]['subscribe'](_0x47c693=>{const _0x3a9b74=_0x519997;if(!this[_0x3a9b74(0x3a3)])return;if(_0x47c693[_0x3a9b74(0x2b8)]===0x0){this['_activeShapeInfo']=null,this[_0x3a9b74(0x1b1)]();return;}if(_0x47c693[_0x3a9b74(0x2b8)]===0x1&&_0x47c693[0x0]['drawingType']===o[_0x3a9b74(0x122)]['DRAWING_SHAPE']&&(this[_0x3a9b74(0x137)]+=0x1,this[_0x3a9b74(0x204)]=this[_0x3a9b74(0x121)](_0x47c693[0x0][_0x3a9b74(0x148)],_0x47c693[0x0][_0x3a9b74(0x33d)],_0x47c693[0x0][_0x3a9b74(0x252)]),this[_0x3a9b74(0x204)])){this['_openShapeEditPanel']();return;}let _0x26747d=_0x47c693[_0x3a9b74(0x313)](_0x307323=>_0x307323[_0x3a9b74(0xd8)]===o[_0x3a9b74(0x122)]['DRAWING_SHAPE']);this[_0x3a9b74(0x137)]+=0x1,this[_0x3a9b74(0x204)]=this[_0x3a9b74(0x121)](_0x47c693[0x0][_0x3a9b74(0x148)],_0x47c693[0x0][_0x3a9b74(0x33d)],_0x47c693[0x0][_0x3a9b74(0x252)]),this[_0x3a9b74(0x204)]&&_0x47c693[_0x3a9b74(0x2b8)]>0x1&&_0x26747d[_0x3a9b74(0x2b8)]===_0x47c693[_0x3a9b74(0x2b8)]?this[_0x3a9b74(0x2ea)]():this['_activeShapeInfo']&&_0x26747d[_0x3a9b74(0x2b8)]!==_0x47c693[_0x3a9b74(0x2b8)]?(this[_0x3a9b74(0x204)][_0x3a9b74(0x39a)]=!0x0,this['_openShapeEditPanel']()):this['_closeShapeEditPanel']();}));}[_0x252e6(0x2ea)](){const _0x519fdd=_0x252e6;this[_0x519fdd(0x204)]&&(this[_0x519fdd(0x2fd)]=this[_0x519fdd(0x211)][_0x519fdd(0x394)]({'id':w,'header':{'title':this[_0x519fdd(0x2f8)]['t'](_0x519fdd(0x1a7))},'width':0x184,'children':{'label':w,...this[_0x519fdd(0x204)]},'onClose':()=>{const _0x45055d=_0x519fdd;this['_drawingManagerService'][_0x45055d(0x300)](null),this['_contextService'][_0x45055d(0x305)](o[_0x45055d(0x199)],!0x1),this[_0x45055d(0x2fd)]=null;}}),this['_isOpenedShapeEditPanel']=!0x0);}[_0x252e6(0x1b1)](){const _0x4f86d2=_0x252e6;this[_0x4f86d2(0x3a3)]=!0x1,this[_0x4f86d2(0x211)]['close'](w),this[_0x4f86d2(0x2fd)]=null,this[_0x4f86d2(0x2db)][_0x4f86d2(0x305)](o[_0x4f86d2(0x199)],!0x1),this[_0x4f86d2(0x267)][_0x4f86d2(0x300)](null);}};kt=I([F(0x0,o[_0x252e6(0x288)]),F(0x1,(0x0,o[_0x252e6(0x329)])(n[_0x252e6(0x308)])),F(0x2,n['IMenuManagerService']),F(0x3,(0x0,o[_0x252e6(0x329)])(r[_0x252e6(0x1b0)])),F(0x4,(0x0,o[_0x252e6(0x329)])(o['LocaleService'])),F(0x5,o[_0x252e6(0x1b3)]),F(0x6,u[_0x252e6(0x3b6)]),F(0x7,(0x0,o[_0x252e6(0x329)])(t[_0x252e6(0x1af)])),F(0x8,l['IRenderManagerService']),F(0x9,o[_0x252e6(0x2cd)]),F(0xa,(0x0,o[_0x252e6(0x329)])(G)),F(0xb,o[_0x252e6(0x2bb)]),F(0xc,(0x0,o['Inject'])(e['MobileShapeEditorService']))],kt);const At=_0x252e6(0x38e);let X=class extends o[_0x252e6(0x1bf)]{constructor(_0x25f83f,_0x51a36f,_0x56ac21,_0x391c35,_0x5498cd,_0x7ad4f3){const _0x1971b7=_0x252e6;super(),this[_0x1971b7(0x3bc)]=_0x25f83f,this[_0x1971b7(0x35f)]=_0x51a36f,this[_0x1971b7(0x267)]=_0x56ac21,this[_0x1971b7(0x1ce)]=_0x391c35,this[_0x1971b7(0x1da)]=_0x5498cd,this[_0x1971b7(0x18c)]=_0x7ad4f3,H(this,'_visible',!0x1),this[_0x1971b7(0x3bc)][_0x1971b7(0x2c7)](Ze),this[_0x1971b7(0x243)]((0x0,o[_0x1971b7(0x18e)])(this[_0x1971b7(0x267)][_0x1971b7(0x119)][_0x1971b7(0x334)](()=>this[_0x1971b7(0xdf)]()))),this[_0x1971b7(0xdf)]();}[_0x252e6(0x32e)](){const _0x4c4335=_0x252e6;this[_0x4c4335(0x18c)][_0x4c4335(0x31e)](!0x1,At),this[_0x4c4335(0x38c)](),super[_0x4c4335(0x32e)]();}[_0x252e6(0xdf)](){const _0x16d224=_0x252e6;var _0x2675f1;let _0x583525=this[_0x16d224(0x267)][_0x16d224(0x236)](),_0x17aaee=_0x583525['length']===0x1?_0x583525[0x0]:void 0x0;if((_0x17aaee==null?void 0x0:_0x17aaee[_0x16d224(0xd8)])!==o['DrawingTypeEnum']['DRAWING_SHAPE']||this[_0x16d224(0x1ce)][_0x16d224(0x1c0)](_0x17aaee[_0x16d224(0x148)])!==o[_0x16d224(0x2bc)][_0x16d224(0x248)]){this[_0x16d224(0x18c)][_0x16d224(0x31e)](!0x1,At),this[_0x16d224(0x38c)]();return;}let _0x22fca6=(_0x2675f1=this[_0x16d224(0x1da)][_0x16d224(0x206)](_0x17aaee[_0x16d224(0x148)]))==null?void 0x0:_0x2675f1[_0x16d224(0x10e)]['getCanvasElement'](),_0x3fd301=(0x0,e[_0x16d224(0x24b)])(_0x22fca6)===_0x16d224(0x13b);this['_shapeFloatingToolbarService'][_0x16d224(0x31e)](_0x3fd301,At),_0x3fd301?this['_hide']():(this[_0x16d224(0x2a1)]=!0x0,this[_0x16d224(0x35f)][_0x16d224(0x93)](T,{'activate':!0x0}));}[_0x252e6(0x38c)](){const _0x257bfa=_0x252e6;this[_0x257bfa(0x2a1)]&&(this[_0x257bfa(0x2a1)]=!0x1,this[_0x257bfa(0x35f)]['hideContextualTab'](T),this[_0x257bfa(0x35f)][_0x257bfa(0x370)]([]));}};X=I([F(0x0,n[_0x252e6(0x222)]),F(0x1,n[_0x252e6(0xcd)]),F(0x2,u[_0x252e6(0x3b6)]),F(0x3,o[_0x252e6(0x288)]),F(0x4,l['IRenderManagerService']),F(0x5,(0x0,o[_0x252e6(0x329)])(e[_0x252e6(0x34d)]))],X);let Z=class extends o[_0x252e6(0x1bf)]{constructor(_0x417f28,_0x5e9c68,_0x5604c1,_0x221248){const _0x49d095=_0x252e6;super(),this[_0x49d095(0x22c)]=_0x417f28,this[_0x49d095(0x1da)]=_0x5e9c68,this[_0x49d095(0x267)]=_0x5604c1,this[_0x49d095(0x254)]=_0x221248,this[_0x49d095(0x3bd)]();}[_0x252e6(0x3bd)](){const _0x2ce3b1=_0x252e6;this[_0x2ce3b1(0x243)](this['_drawingManagerService'][_0x2ce3b1(0x20d)]['subscribe'](_0x3330df=>this[_0x2ce3b1(0x1a2)](_0x3330df))),this[_0x2ce3b1(0x243)](this['_drawingManagerService'][_0x2ce3b1(0x1d3)]['subscribe'](_0x456d22=>{const _0xb8ef9d=_0x2ce3b1;_0x456d22[_0xb8ef9d(0x129)](_0x37cf22=>this[_0xb8ef9d(0xe5)](_0x37cf22));})),this['disposeWithMe'](this[_0x2ce3b1(0x22c)][_0x2ce3b1(0xdc)](_0x430e5a=>{const _0x2f88a3=_0x2ce3b1;if(_0x430e5a['id']!==r[_0x2f88a3(0x257)]['id'])return;let {unitId:_0x53ede6,shapeId:_0x107acb}=_0x430e5a[_0x2f88a3(0x355)];this[_0x2f88a3(0x1eb)]({'unitId':_0x53ede6,'subUnitId':_0x53ede6,'drawingId':_0x107acb});}));}[_0x252e6(0x1a2)](_0x92f64d){const _0xe02539=_0x252e6;_0x92f64d[_0xe02539(0x129)](_0x1007df=>{const _0x34e700=_0xe02539;let _0x35dd2f=this['_getSceneByUnitId'](_0x1007df[_0x34e700(0x148)]);if(!_0x35dd2f)return;let _0x282bdd=this['_drawingManagerService'][_0x34e700(0x1ca)](_0x1007df);(_0x282bdd==null?void 0x0:_0x282bdd[_0x34e700(0xd8)])===o['DrawingTypeEnum'][_0x34e700(0x21c)]&&this[_0x34e700(0x254)][_0x34e700(0xaa)](_0x282bdd,_0x35dd2f[_0x34e700(0xa4)]);});}[_0x252e6(0xe5)](_0x238fb4){const _0x33cf0e=_0x252e6;let _0x1578d7=this[_0x33cf0e(0x267)][_0x33cf0e(0x1ca)](_0x238fb4);if((_0x1578d7==null?void 0x0:_0x1578d7[_0x33cf0e(0xd8)])!==o[_0x33cf0e(0x122)]['DRAWING_SHAPE'])return;let _0x280c43=this[_0x33cf0e(0x32a)](_0x238fb4[_0x33cf0e(0x148)]);if(!_0x280c43||_0x1578d7['transform']==null)return;let _0x5c3b13=(0x0,u[_0x33cf0e(0x99)])(_0x238fb4),_0x118ee2=_0x280c43[_0x33cf0e(0xa4)][_0x33cf0e(0x10a)](_0x5c3b13);_0x118ee2&&(_0x118ee2['setSrcRect'](_0x1578d7[_0x33cf0e(0x2b7)]),_0x118ee2[_0x33cf0e(0x210)](_0x1578d7['prstGeom']),_0x118ee2[_0x33cf0e(0x2ee)](!0x0));}['_refreshShapeData'](_0x19cedd){const _0x20f34=_0x252e6;let _0x2f36dc=this[_0x20f34(0x32a)](_0x19cedd['unitId']);if(!_0x2f36dc)return;let _0x5c6573=(0x0,u['getDrawingShapeKeyByDrawingSearch'])(_0x19cedd),_0x5a9b97=_0x2f36dc[_0x20f34(0xa4)][_0x20f34(0x10a)](_0x5c6573);_0x5a9b97&&(this[_0x20f34(0x254)][_0x20f34(0x284)](_0x5a9b97),this[_0x20f34(0x254)][_0x20f34(0xb9)](_0x5a9b97,{'unitId':_0x19cedd[_0x20f34(0x148)],'subUnitId':_0x19cedd[_0x20f34(0x33d)],'shapeId':_0x19cedd[_0x20f34(0x252)]}),_0x5a9b97[_0x20f34(0x2ee)](!0x0));}['_getSceneByUnitId'](_0x5ea71d){const _0xab946b=_0x252e6;if(_0x5ea71d==null)return null;let _0x3c29a9=this['_renderManagerService'][_0xab946b(0x206)](_0x5ea71d),_0x331ebe=_0x3c29a9==null?void 0x0:_0x3c29a9[_0xab946b(0xa4)];return _0x331ebe==null?null:{'scene':_0x331ebe};}};Z=I([F(0x0,o[_0x252e6(0x1b3)]),F(0x1,l[_0x252e6(0x342)]),F(0x2,u[_0x252e6(0x3b6)]),F(0x3,(0x0,o[_0x252e6(0x329)])(K))],Z);let Q=class extends o[_0x252e6(0x314)]{constructor(_0x3fde19=nt,_0x2e623d,_0xce1aa8,_0x74edad,_0xaa386a){const _0x14a67f=_0x252e6;super(),this[_0x14a67f(0x27c)]=_0x3fde19,this[_0x14a67f(0x1b5)]=_0x2e623d,this[_0x14a67f(0x22c)]=_0xce1aa8,this[_0x14a67f(0x2e2)]=_0x74edad,this[_0x14a67f(0x1da)]=_0xaa386a;let {menu:_0xeb56ec,..._0xf8daba}=(0x0,o['merge'])({},nt,this[_0x14a67f(0x27c)]);_0xeb56ec&&this['_configService']['setConfig'](_0x14a67f(0x1d5),_0xeb56ec,{'merge':!0x0}),this[_0x14a67f(0x2e2)][_0x14a67f(0x118)](tt,_0xf8daba),[C,B,j,A,N,P][_0x14a67f(0x129)](_0x2edc46=>this[_0x14a67f(0x243)](this['_commandService']['registerCommand'](_0x2edc46)));}[_0x252e6(0xb4)](){const _0x31395b=_0x252e6;let _0xedb472=[[Ot],[kt],[Z],[K],[q],[W],[L],[J],[G],[X]];(0x0,o['registerDependencies'])(this[_0x31395b(0x1b5)],_0xedb472),this[_0x31395b(0x1b5)][_0x31395b(0x286)](Ot);}[_0x252e6(0x331)](){const _0x57807a=_0x252e6;this[_0x57807a(0x243)](this[_0x57807a(0x1da)][_0x57807a(0x1a9)](o[_0x57807a(0x2bc)][_0x57807a(0x248)],[W])),(0x0,o[_0x57807a(0x19c)])(this[_0x57807a(0x1b5)],[[kt],[Z],[K],[q],[L],[J],[G],[X]]);}};H(Q,_0x252e6(0x323),o[_0x252e6(0x2bc)][_0x252e6(0x248)]),H(Q,_0x252e6(0xdb),_0x252e6(0x16c)),H(Q,_0x252e6(0x130),$e),H(Q,_0x252e6(0x246),et),Q=I([(0x0,o[_0x252e6(0x365)])(m[_0x252e6(0x1a4)],s[_0x252e6(0x28b)],u[_0x252e6(0x162)],d[_0x252e6(0x13e)],l[_0x252e6(0x12f)],t[_0x252e6(0x22d)],a[_0x252e6(0xac)],h[_0x252e6(0x187)],r[_0x252e6(0x1b4)],e[_0x252e6(0x17e)]),F(0x1,(0x0,o[_0x252e6(0x329)])(o[_0x252e6(0x179)])),F(0x2,o['ICommandService']),F(0x3,o[_0x252e6(0x352)]),F(0x4,l[_0x252e6(0x342)])],Q);let jt=class extends o[_0x252e6(0x1bf)]{constructor(_0x532c06,_0x481422){const _0x333216=_0x252e6;super(),this[_0x333216(0x35c)]=_0x532c06,this[_0x333216(0xfe)]=_0x481422,this[_0x333216(0x1e0)](),this[_0x333216(0x3c0)]();}['_registerIcons'](){const _0x44775a=_0x252e6;this[_0x44775a(0xfe)][_0x44775a(0x38f)](_0x44775a(0x188))||this[_0x44775a(0x243)](this[_0x44775a(0xfe)]['register']({'ObjectLayersIcon':g['ObjectLayersIcon']})),this[_0x44775a(0xfe)][_0x44775a(0x38f)](_0x44775a(0x319))||this[_0x44775a(0x243)](this[_0x44775a(0xfe)][_0x44775a(0x21d)]({'BottomIcon':g[_0x44775a(0x319)]})),this[_0x44775a(0xfe)][_0x44775a(0x38f)]('MoveDownIcon')||this[_0x44775a(0x243)](this[_0x44775a(0xfe)][_0x44775a(0x21d)]({'MoveDownIcon':g[_0x44775a(0x366)]})),this['_iconManager']['has'](_0x44775a(0x1f1))||this[_0x44775a(0x243)](this[_0x44775a(0xfe)][_0x44775a(0x21d)]({'MoveUpIcon':g['MoveUpIcon']})),this['_iconManager']['has'](_0x44775a(0x363))||this['disposeWithMe'](this['_iconManager'][_0x44775a(0x21d)]({'ShapeFormatSettingIcon':g[_0x44775a(0x363)]})),this[_0x44775a(0xfe)][_0x44775a(0x38f)]('TopmostIcon')||this[_0x44775a(0x243)](this[_0x44775a(0xfe)][_0x44775a(0x21d)]({'TopmostIcon':g[_0x44775a(0xe9)]})),this[_0x44775a(0x243)](this[_0x44775a(0xfe)][_0x44775a(0x21d)](Et));}[_0x252e6(0x3c0)](){const _0x171ad1=_0x252e6;this[_0x171ad1(0x243)](this[_0x171ad1(0x35c)][_0x171ad1(0x21d)](w,_t)),this[_0x171ad1(0x243)](this[_0x171ad1(0x35c)][_0x171ad1(0x21d)](E,mt)),this[_0x171ad1(0x243)](this[_0x171ad1(0x35c)][_0x171ad1(0x21d)](xt,Ct)),this[_0x171ad1(0x243)](this[_0x171ad1(0x35c)][_0x171ad1(0x21d)](me,be)),this['disposeWithMe'](this[_0x171ad1(0x35c)][_0x171ad1(0x21d)](pe,xe)),this['disposeWithMe'](this[_0x171ad1(0x35c)][_0x171ad1(0x21d)](he,Se)),this[_0x171ad1(0x243)](this['_componentManager'][_0x171ad1(0x21d)](ge,Ce)),this[_0x171ad1(0x243)](this[_0x171ad1(0x35c)][_0x171ad1(0x21d)](_e,we)),this[_0x171ad1(0x243)](this[_0x171ad1(0x35c)][_0x171ad1(0x21d)](O,e[_0x171ad1(0x1b8)])),this[_0x171ad1(0x243)](this[_0x171ad1(0x35c)]['register'](ee,oe)),this[_0x171ad1(0x243)](this['_componentManager']['register'](te,ie)),this[_0x171ad1(0x35c)][_0x171ad1(0x258)](d[_0x171ad1(0x114)])||this[_0x171ad1(0x243)](this['_componentManager'][_0x171ad1(0x21d)](d[_0x171ad1(0x114)],ae)),this[_0x171ad1(0x243)](this[_0x171ad1(0x35c)][_0x171ad1(0x21d)](k,Dt));}};jt=I([F(0x0,(0x0,o[_0x252e6(0x329)])(n[_0x252e6(0x12a)])),F(0x1,(0x0,o[_0x252e6(0x329)])(n['IconManager']))],jt);let Mt=class extends o[_0x252e6(0x1bf)]{constructor(_0x4d6d95,_0x44a01e,_0x47c420,_0x2c4f86,_0x11e7a8,_0x96a891,_0x370570,_0x481809,_0x23254d){const _0x321c17=_0x252e6;super();let _0x5dc01f=_0x49d120=>{const _0x5cee7a=_0x2560;let _0x1ba9ed=_0x96a891[_0x5cee7a(0x159)](_0x49d120[_0x5cee7a(0x148)],o[_0x5cee7a(0x2bc)][_0x5cee7a(0x248)]),_0x35a06b=_0x1ba9ed?(0x0,s['getDocumentDrawingSegmentId'])(_0x1ba9ed,_0x49d120[_0x5cee7a(0x350)]):'';return!!_0x1ba9ed&&(0x0,s[_0x5cee7a(0x2cf)])(_0x481809,_0x49d120[_0x5cee7a(0x148)],[(0x0,s['getDocumentEntityPermissionObjectId'])(_0x35a06b,_0x5cee7a(0x253),_0x49d120[_0x5cee7a(0x350)]),...(0x0,s[_0x5cee7a(0x312)])(_0x1ba9ed,_0x35a06b,_0x5cee7a(0x253),_0x49d120['shapeId'])]);},_0x6c6018=_0x11940f=>_0x11940f['shapeId']&&_0x5dc01f(_0x11940f)?_0x47c420[_0x321c17(0x3ad)](_0x11940f[_0x321c17(0x148)],_0x11940f[_0x321c17(0x350)])??null:null,_0x2ec15d=()=>{const _0x31cff3=_0x321c17;let _0x4f71e0=_0x11e7a8[_0x31cff3(0x236)](),_0xc3745=_0x4f71e0[_0x31cff3(0x2b8)]===0x1?_0x4f71e0[0x0]:null;return(_0xc3745==null?void 0x0:_0xc3745[_0x31cff3(0xd8)])===o[_0x31cff3(0x122)][_0x31cff3(0x21c)]&&_0xc3745[_0x31cff3(0x148)]===_0x4d6d95['unitId']?{'unitId':_0xc3745[_0x31cff3(0x148)],'subUnitId':_0xc3745['subUnitId'],'shapeId':_0xc3745[_0x31cff3(0x252)]}:null;};this[_0x321c17(0x243)]((0x0,e['registerShapeFormatPainter'])(_0x4d6d95,_0x44a01e,{'changes$':(0x0,p['merge'])(_0x11e7a8[_0x321c17(0x119)],_0x2c4f86[_0x321c17(0xe8)],_0x481809[_0x321c17(0x34f)]),'isActive':()=>{const _0x21c3fc=_0x321c17;var _0x2c6fcf;return((_0x2c6fcf=_0x96a891[_0x21c3fc(0x1a6)]())==null?void 0x0:_0x2c6fcf[_0x21c3fc(0x274)]())===_0x4d6d95['unitId']&&!_0x370570[_0x21c3fc(0x214)](o[_0x21c3fc(0x1fa)])&&_0x11e7a8[_0x21c3fc(0x236)]()[_0x21c3fc(0x26a)](_0x32f1da=>_0x32f1da[_0x21c3fc(0x148)]===_0x4d6d95[_0x21c3fc(0x148)]);},'getSelectedTarget':_0x2ec15d,'getSource':()=>{let _0x556e42=_0x2ec15d();return _0x556e42?_0x6c6018(_0x556e42):null;},'getTarget':_0x3dd520=>{const _0x30f07f=_0x321c17;let _0x4d6260=_0x4d6d95[_0x30f07f(0xa4)][_0x30f07f(0x171)](new l[(_0x30f07f(0x2dc))](_0x3dd520[_0x30f07f(0x266)],_0x3dd520['offsetY']));if(!(_0x4d6260 instanceof U))return null;let _0x1ace04={'unitId':_0x4d6d95[_0x30f07f(0x148)],'subUnitId':_0x4d6d95[_0x30f07f(0x148)],'shapeId':_0x4d6260['shapeId']};return _0x5dc01f(_0x1ace04)?_0x1ace04:null;},'getShape':_0x6c6018,'update':(_0x1dbad0,_0x34a543,_0x56ac01)=>_0x23254d[_0x321c17(0x1d9)](r[_0x321c17(0xe4)]['id'],{..._0x1dbad0,'shapeData':_0x56ac01,'replaceShapeData':!0x0,'oldShapeJSON':{'oldShapeData':_0x34a543}})}));}};Mt=I([F(0x1,(0x0,o['Inject'])(n['FormatPainterSessionService'])),F(0x2,(0x0,o[_0x252e6(0x329)])(r[_0x252e6(0x1b0)])),F(0x3,(0x0,o[_0x252e6(0x329)])(G)),F(0x4,u['IDrawingManagerService']),F(0x5,o[_0x252e6(0x288)]),F(0x6,o[_0x252e6(0x2cd)]),F(0x7,o[_0x252e6(0x2bb)]),F(0x8,o[_0x252e6(0x1b3)])],Mt);function Nt(_0x379dce,_0x56c8d3){const _0x335c7d=_0x252e6;let _0x2f5c31=_0x379dce;for(;_0x2f5c31;){if(_0x56c8d3(_0x2f5c31))return _0x2f5c31;_0x2f5c31=typeof _0x2f5c31[_0x335c7d(0x1ab)]==_0x335c7d(0xa1)?_0x2f5c31[_0x335c7d(0x1ab)]():null;}return null;}function Pt(_0x31d65a){return Nt(_0x31d65a,_0x516edc=>_0x516edc instanceof U);}function Ft(_0x3dbf26){const _0x565c17=_0x252e6;return(_0x3dbf26==null?void 0x0:_0x3dbf26[_0x565c17(0x263)])==null;}let It=class extends o[_0x252e6(0x1bf)]{constructor(_0x5a6422,_0x380f96,_0x395b55,_0x3d024e,_0x269b3c){const _0x6d51fd=_0x252e6;super(),this[_0x6d51fd(0x1d0)]=_0x5a6422,this[_0x6d51fd(0x393)]=_0x380f96,this[_0x6d51fd(0x267)]=_0x395b55,this[_0x6d51fd(0x1c3)]=_0x3d024e,this[_0x6d51fd(0x389)]=_0x269b3c,H(this,'_lastEditingShapeKey',null),H(this,'_layoutInteraction',null),this[_0x6d51fd(0x1ae)](),this[_0x6d51fd(0x34a)](),this[_0x6d51fd(0x335)]();}['dispose'](){const _0x41963b=_0x252e6;this[_0x41963b(0x14a)](),super[_0x41963b(0x32e)]();}[_0x252e6(0x1ae)](){const _0x5a5ea8=_0x252e6;let {scene:_0x39be86}=this[_0x5a5ea8(0x1d0)];this[_0x5a5ea8(0x243)](_0x39be86[_0x5a5ea8(0x17d)]['subscribeEvent']((_0xa9dca8,_0x2298fd)=>{const _0x287851=_0x5a5ea8;let {offsetX:_0x249007,offsetY:_0x3cc147}=_0xa9dca8,_0x964bd8=l['Vector2']['FromArray']([_0x249007,_0x3cc147]),_0x387d57=Pt(_0x39be86['pick'](_0x964bd8))??this[_0x287851(0x2ab)](_0x964bd8);if(_0x387d57){_0x2298fd['stopPropagation']();let _0x4e39da=this['_docsShapeService'][_0x287851(0xd7)](_0x387d57[_0x287851(0x148)],_0x387d57['subUnitId'],_0x387d57[_0x287851(0x350)]);if(!_0x4e39da||(0x0,i[_0x287851(0x9e)])(_0x4e39da[_0x287851(0x3b8)]())||!Ft(_0x4e39da[_0x287851(0x192)]()))return;this[_0x287851(0x393)][_0x287851(0x115)]({'visible':!0x0,'unitId':_0x387d57['unitId'],'subUnitId':_0x387d57[_0x287851(0x33d)],'shapeId':_0x387d57[_0x287851(0x350)],'shapeKey':_0x387d57[_0x287851(0x306)]});}}));}[_0x252e6(0x2ab)](_0x5afce5){const _0x56994c=_0x252e6;let {scene:_0x2639ce}=this['_context'];return this[_0x56994c(0x267)]['getFocusDrawings']()['map'](_0x59d990=>_0x2639ce[_0x56994c(0x10a)]((0x0,u[_0x56994c(0x99)])(_0x59d990)))[_0x56994c(0x327)](_0x33853e=>_0x33853e instanceof U&&_0x33853e['isHit'](_0x5afce5))??null;}[_0x252e6(0x34a)](){const _0x54573f=_0x252e6;this[_0x54573f(0x243)](this[_0x54573f(0x267)][_0x54573f(0x119)]['subscribe'](_0x595dce=>{const _0xfb2e03=_0x54573f;if(_0x595dce['length']===0x1){let _0x438f1d=_0x595dce[0x0],_0x2cd43d=this[_0xfb2e03(0x267)]['getDrawingByParam'](_0x438f1d);if((_0x2cd43d==null?void 0x0:_0x2cd43d[_0xfb2e03(0xd8)])===o[_0xfb2e03(0x122)][_0xfb2e03(0x21c)]){let _0x21f96c=this[_0xfb2e03(0x393)][_0xfb2e03(0x351)]();if((_0x21f96c==null?void 0x0:_0x21f96c[_0xfb2e03(0x350)])===_0x438f1d[_0xfb2e03(0x252)]&&_0x21f96c['visible'])return;(0x0,i[_0xfb2e03(0x9e)])(this[_0xfb2e03(0x389)][_0xfb2e03(0x3b8)](_0x438f1d['unitId'],_0x438f1d[_0xfb2e03(0x33d)],_0x438f1d[_0xfb2e03(0x252)]))&&this['_shapeTextEditingService'][_0xfb2e03(0x115)](null);}else this[_0xfb2e03(0x393)][_0xfb2e03(0x1dd)]();}else this[_0xfb2e03(0x393)][_0xfb2e03(0x1dd)]();})),this[_0x54573f(0x243)](this[_0x54573f(0x267)]['remove$']['subscribe'](_0x491b92=>{const _0xc7ff6e=_0x54573f;let _0x265cd3=this[_0xc7ff6e(0x393)][_0xc7ff6e(0x351)]();_0x265cd3&&_0x491b92['some'](_0x42ae8c=>_0x42ae8c['drawingId']===_0x265cd3[_0xc7ff6e(0x350)])&&this[_0xc7ff6e(0x393)][_0xc7ff6e(0x115)](null);}));}[_0x252e6(0x335)](){const _0x4f5de1=_0x252e6;this[_0x4f5de1(0x243)](this[_0x4f5de1(0x393)]['editingParams$'][_0x4f5de1(0x334)](_0x427626=>{const _0x1ac10a=_0x4f5de1;(_0x427626==null?void 0x0:_0x427626['visible'])===!0x0&&_0x427626['unitId']===this[_0x1ac10a(0x1d0)][_0x1ac10a(0x148)]?this['_layoutInteraction']??=this[_0x1ac10a(0x1c3)][_0x1ac10a(0x28d)]():this[_0x1ac10a(0x14a)]();let {scene:_0x2d6777}=this[_0x1ac10a(0x1d0)];if(this[_0x1ac10a(0x36b)]){let _0x3a1ced=_0x2d6777[_0x1ac10a(0x10a)](this[_0x1ac10a(0x36b)]);_0x3a1ced&&_0x3a1ced[_0x1ac10a(0x115)](!0x1);}if(_0x427626){let _0x272905=!!_0x427626[_0x1ac10a(0x234)],_0x1a34d0=_0x2d6777[_0x1ac10a(0x10a)](_0x427626[_0x1ac10a(0x30f)]);_0x1a34d0&&(_0x1a34d0[_0x1ac10a(0x115)](_0x272905),this[_0x1ac10a(0x36b)]=_0x427626[_0x1ac10a(0x30f)]);}else this[_0x1ac10a(0x36b)]=null;}));}[_0x252e6(0x14a)](){const _0x98e6fd=_0x252e6;var _0x5673b9;(_0x5673b9=this[_0x98e6fd(0x336)])==null||_0x5673b9[_0x98e6fd(0x32e)](),this[_0x98e6fd(0x336)]=null;}};It=I([F(0x1,(0x0,o[_0x252e6(0x329)])(G)),F(0x2,u['IDrawingManagerService']),F(0x3,(0x0,o['Inject'])(t[_0x252e6(0x36d)])),F(0x4,(0x0,o[_0x252e6(0x329)])(r[_0x252e6(0x1b0)]))],It);let Lt=class extends e[_0x252e6(0x128)]{constructor(_0x42e403,_0x4b6724,_0x306ddb,_0x50c7bb,_0x486ae2,_0x377195,_0x5e4723,_0x153159,_0x3ccf0b,_0x2b6530){super(_0x42e403,_0x4b6724,_0x306ddb,_0x50c7bb,_0x486ae2,_0x377195,_0x5e4723,_0x153159,_0x3ccf0b,_0x2b6530,{'componentKey':O,'editorUnitId':D});}};Lt=I([F(0x1,(0x0,o[_0x252e6(0x329)])(s[_0x252e6(0xab)])),F(0x2,(0x0,o[_0x252e6(0x329)])(t['DocCanvasPopManagerService'])),F(0x3,(0x0,o[_0x252e6(0x329)])(t['DocSelectionRenderService'])),F(0x4,o[_0x252e6(0x1b3)]),F(0x5,(0x0,o[_0x252e6(0x329)])(t['DocEventManagerService'])),F(0x6,(0x0,o[_0x252e6(0x329)])(e[_0x252e6(0x29c)])),F(0x7,(0x0,o['Inject'])(s[_0x252e6(0x139)])),F(0x8,(0x0,o[_0x252e6(0x329)])(t[_0x252e6(0xee)])),F(0x9,(0x0,o[_0x252e6(0x329)])(G))],Lt);let Rt=class extends e['ShapeTextHyperLinkHoverController']{constructor(_0x3c4517,_0x938ee1,_0x4f986d,_0x28214a,_0x52eec3){const _0x224db3=_0x252e6;super(_0x3c4517,_0x938ee1,{'editing$':_0x4f986d[_0x224db3(0xe8)],'resolve':_0xfb979a=>{const _0x275962=_0x224db3;var _0x8497aa;let _0x27a803=new l[(_0x275962(0x2dc))](_0xfb979a[_0x275962(0x266)],_0xfb979a[_0x275962(0xed)]),_0x2e7b01=((_0x8497aa=_0x3c4517[_0x275962(0xa4)][_0x275962(0x1a5)](_0x27a803))==null?void 0x0:_0x8497aa[_0x275962(0x11d)](_0x27a803))??_0x27a803,_0x2ab328=(0x0,e['resolveShapeTextHyperLinkObject'])(_0x3c4517[_0x275962(0xa4)][_0x275962(0x171)](_0x27a803)??null,_0x2e7b01);if(!(_0x2ab328 instanceof U))return null;let _0x5a26c1=_0x2ab328[_0x275962(0x195)](_0x2e7b01);if(!_0x5a26c1)return null;let _0xad8566=_0x2ab328,_0x55113b={'componentKey':e[_0x275962(0x2b5)][_0x275962(0x36c)],'direction':'top-center','offset':[0x0,0xa],'onClickOutside':()=>_0x938ee1[_0x275962(0x107)]()};return{'object':_0x2ab328,'info':{..._0x5a26c1,'unitId':_0x2ab328[_0x275962(0x148)],'subUnitId':_0x2ab328['subUnitId'],'shapeKey':_0x2ab328[_0x275962(0x306)],'readonly':!0x0,'copyable':(0x0,s[_0x275962(0x32f)])(_0x52eec3,_0x2ab328[_0x275962(0x148)],_0x2ab328[_0x275962(0x148)],y[_0x275962(0x3a9)]['Copy'])},'attachPopup':()=>_0x28214a['attachPopupToObject'](_0xad8566,_0x55113b,_0xad8566[_0x275962(0x148)])};}});}};Rt=I([F(0x1,(0x0,o[_0x252e6(0x329)])(e[_0x252e6(0x29c)])),F(0x2,(0x0,o[_0x252e6(0x329)])(G)),F(0x3,(0x0,o[_0x252e6(0x329)])(t[_0x252e6(0x1af)])),F(0x4,o[_0x252e6(0x2bb)])],Rt);let zt=class extends o['Disposable']{constructor(_0x4d6be5,_0x2da02a,_0x2e8e7f,_0x3d92de,_0x2c4bdd,_0x3d887f,_0x4439d9,_0x378cb7,_0x444d74,_0x3e68a,_0x4b3357,_0x5e5b86){const _0x505595=_0x252e6;super(),this[_0x505595(0x1ce)]=_0x4d6be5,this['_sidebarService']=_0x2da02a,this[_0x505595(0x3bc)]=_0x2e8e7f,this[_0x505595(0x389)]=_0x3d92de,this[_0x505595(0x2f8)]=_0x2c4bdd,this[_0x505595(0x22c)]=_0x3d887f,this[_0x505595(0x267)]=_0x4439d9,this['_docCanvasPopManagerService']=_0x378cb7,this[_0x505595(0x1da)]=_0x444d74,this['_contextService']=_0x3e68a,this[_0x505595(0x393)]=_0x4b3357,this[_0x505595(0x24d)]=_0x5e5b86,H(this,_0x505595(0x2fd),null),H(this,_0x505595(0x204),null),H(this,_0x505595(0x3a3),!0x1),H(this,_0x505595(0x137),0x0),H(this,_0x505595(0x36a),new Map()),H(this,_0x505595(0x27e),new Map()),this['_initMenu'](),this[_0x505595(0x243)](this[_0x505595(0x1ce)][_0x505595(0x228)](o[_0x505595(0x2bc)][_0x505595(0x248)])[_0x505595(0x334)](_0xf590f1=>{const _0xbb3374=_0x505595;if(!_0xf590f1){var _0x55e6cd;(_0x55e6cd=this['_sidebarDisposable'])==null||_0x55e6cd[_0xbb3374(0x32e)]();}})),this[_0x505595(0x2fc)](),this['disposeWithMe'](this[_0x505595(0x267)][_0x505595(0x27f)][_0x505595(0x334)](_0x5e1d75=>{const _0x124d4f=_0x505595;for(let _0x2213d6 of _0x5e1d75){let _0x538aeb=_0x2213d6['unitId']+':'+_0x2213d6[_0x124d4f(0x33d)]+':'+_0x2213d6[_0x124d4f(0x252)];for(let [_0x28110a,_0x1cfe35]of this['_popupTargetKeys'])_0x1cfe35===_0x538aeb&&this[_0x124d4f(0xbd)](_0x28110a,!0x0);}})),this['disposeWithMe']((0x0,e[_0x505595(0x268)])(this[_0x505595(0x1da)],o[_0x505595(0x2bc)][_0x505595(0x248)],_0x3dcb92=>this[_0x505595(0x2c4)](_0x3dcb92))),this['disposeWithMe'](this[_0x505595(0x393)][_0x505595(0xe8)][_0x505595(0x334)](_0x14aff1=>{const _0x4b2230=_0x505595;_0x14aff1&&this[_0x4b2230(0xbd)](void 0x0,!0x0);})),this[_0x505595(0x243)](this[_0x505595(0x24d)][_0x505595(0x34f)]['subscribe'](()=>{const _0x1fffb9=_0x505595;this[_0x1fffb9(0x267)]['getFocusDrawings']()[_0x1fffb9(0x26a)](_0x351733=>_0x351733[_0x1fffb9(0xd8)]===o[_0x1fffb9(0x122)]['DRAWING_SHAPE']&&this[_0x1fffb9(0x1ce)][_0x1fffb9(0x1c0)](_0x351733['unitId'])===o['UniverInstanceType']['UNIVER_DOC']&&!this[_0x1fffb9(0x165)](_0x351733['unitId'],_0x351733[_0x1fffb9(0x252)]))&&(this[_0x1fffb9(0xbd)](void 0x0,!0x0),this[_0x1fffb9(0x1b1)]());}));}['_initMenu'](){this['_menuManagerService']['mergeMenu'](Qe);}[_0x252e6(0x2e7)](_0x20ced0,_0x2d49af,_0x5f56a9,_0x4dccb1){const _0xcb8968=_0x252e6;return[{'label':_0xcb8968(0xef),'index':0x0,'commandId':j['id'],'commandParams':{'unitId':_0x20ced0,'subUnitId':_0x2d49af,'drawingId':_0x5f56a9},'disable':_0x4dccb1===o[_0xcb8968(0x122)][_0xcb8968(0x1f3)]},{'label':_0xcb8968(0x2f7),'index':0x1,'commandId':c[_0xcb8968(0xd0)]['id'],'commandParams':{'unitId':_0x20ced0,'drawings':[{'unitId':_0x20ced0,'subUnitId':_0x2d49af,'drawingId':_0x5f56a9}]},'disable':!0x1},{'label':_0xcb8968(0x304),'index':0x2,'commandId':B['id'],'commandParams':{'unitId':_0x20ced0,'subUnitId':_0x2d49af,'drawingId':_0x5f56a9},'disable':!0x1}];}[_0x252e6(0x121)](_0x53a30a,_0xda9c97,_0x4711bf){const _0x20a738=_0x252e6;let _0x305acd=this['_docsShapeService']['getShapeTypeById'](_0x53a30a,_0xda9c97,_0x4711bf),_0x20d86e=this[_0x20a738(0x389)][_0x20a738(0x3ad)](_0x53a30a,_0xda9c97,_0x4711bf);return _0x305acd!==void 0x0&&_0x20d86e!==void 0x0?{'shapeData':_0x20d86e,'shapeId':_0x4711bf,'shapeType':_0x305acd,'unitId':_0x53a30a,'subUnitId':_0xda9c97,'version':this[_0x20a738(0x137)],'disableShapeOption':!0x1}:null;}[_0x252e6(0xbd)](_0x23ac10,_0x21db66=!0x1){const _0xe6c7ca=_0x252e6;if(_0x23ac10==null){[...this[_0xe6c7ca(0x36a)]['keys']()][_0xe6c7ca(0x129)](_0xa1be5a=>this[_0xe6c7ca(0xbd)](_0xa1be5a,_0x21db66));return;}let _0x550d5c=this[_0xe6c7ca(0x36a)][_0xe6c7ca(0x286)](_0x23ac10);if(_0x550d5c){for(let _0x2815ab=_0x550d5c[_0xe6c7ca(0x2b8)]-0x1;_0x2815ab>=0x0;--_0x2815ab){let _0x1127a4=_0x550d5c[_0x2815ab];(_0x21db66||_0x1127a4[_0xe6c7ca(0xbb)]())&&(_0x1127a4[_0xe6c7ca(0x32e)](),_0x550d5c[_0xe6c7ca(0x2c6)](_0x2815ab,0x1));}_0x550d5c['length']===0x0&&(this['_disposePopupsByUnit'][_0xe6c7ca(0x96)](_0x23ac10),this[_0xe6c7ca(0x27e)][_0xe6c7ca(0x96)](_0x23ac10));}}[_0x252e6(0x212)](_0x3a3e4a){const _0x2427c2=_0x252e6;let _0xd3d4a4=this[_0x2427c2(0x36a)][_0x2427c2(0x286)](_0x3a3e4a);if(_0xd3d4a4)return _0xd3d4a4;let _0x84df99=[];return this['_disposePopupsByUnit'][_0x2427c2(0x149)](_0x3a3e4a,_0x84df99),_0x84df99;}['_popupMenuListener'](_0x77b71){const _0x17fa46=_0x252e6;var _0x3fa150;let _0x3bd7c5=new o[(_0x17fa46(0x37b))](),_0x48b776=(_0x3fa150=this[_0x17fa46(0x1da)][_0x17fa46(0x2cc)](o[_0x17fa46(0x2bc)][_0x17fa46(0x248)])[_0x17fa46(0x327)](_0x39bd65=>_0x39bd65['scene'][_0x17fa46(0x10d)]()===_0x77b71))==null?void 0x0:_0x3fa150['unitId'];return _0x48b776&&(_0x3bd7c5[_0x17fa46(0x2ba)](_0x77b71[_0x17fa46(0x38d)]['subscribe'](()=>this[_0x17fa46(0x380)](_0x77b71,_0x48b776))),_0x3bd7c5[_0x17fa46(0x2ba)](_0x77b71[_0x17fa46(0x2b9)]['subscribe'](()=>{const _0xf7a8f0=_0x17fa46;this[_0xf7a8f0(0xbd)](_0x48b776),queueMicrotask(()=>{const _0x58c6b1=_0xf7a8f0;_0x77b71[_0x58c6b1(0x176)]()[_0x58c6b1(0x1ef)]>0x0||!this['_drawingManagerService'][_0x58c6b1(0x236)]()[_0x58c6b1(0x26a)](_0xe97871=>_0xe97871[_0x58c6b1(0x148)]===_0x48b776)||(this[_0x58c6b1(0x2db)][_0x58c6b1(0x305)](o[_0x58c6b1(0x199)],!0x1),this['_drawingManagerService'][_0x58c6b1(0x300)](null));});})),_0x3bd7c5[_0x17fa46(0x2ba)](_0x77b71[_0x17fa46(0x315)][_0x17fa46(0x334)](()=>{const _0x4109a4=_0x17fa46;this[_0x4109a4(0xbd)](_0x48b776,!0x0);}))),_0x3bd7c5;}[_0x252e6(0x380)](_0x599643,_0x251e3d){const _0xd29de8=_0x252e6;let _0xe24f09=_0x599643['getSelectedObjectMap']();if(this[_0xd29de8(0x3a3)]){this[_0xd29de8(0xbd)](_0x251e3d,!0x0);return;}if(_0xe24f09['size']>0x1){this[_0xd29de8(0xbd)](_0x251e3d);return;}let _0x377259=_0xe24f09['values']()[_0xd29de8(0xbf)]()['value'];if(!_0x377259){this[_0xd29de8(0xbd)](_0x251e3d);return;}let _0x32312f=this[_0xd29de8(0x267)][_0xd29de8(0x163)](_0x377259[_0xd29de8(0x306)]);if(!_0x32312f||_0x32312f[_0xd29de8(0xd8)]!==o['DrawingTypeEnum'][_0xd29de8(0x21c)]){this['_clearPopups'](_0x251e3d);return;}let {unitId:_0x472fe9,subUnitId:_0x37cf2a,drawingId:_0x37edd7,drawingType:_0x4ad33b}=_0x32312f;if(!this[_0xd29de8(0x165)](_0x472fe9,_0x37edd7)){this[_0xd29de8(0xbd)](_0x251e3d,!0x0);return;}let _0x4469b9=this[_0xd29de8(0x121)](_0x472fe9,_0x37cf2a,_0x37edd7);if(!_0x4469b9){this[_0xd29de8(0xbd)](_0x251e3d);return;}let _0x539940=this['_disposePopupsByUnit']['get'](_0x251e3d),_0x45de9d=_0x472fe9+':'+_0x37cf2a+':'+_0x37edd7;if(this[_0xd29de8(0x27e)]['get'](_0x251e3d)===_0x45de9d&&_0x539940&&_0x539940[_0xd29de8(0x2b8)]>0x0)return;this[_0xd29de8(0xbd)](_0x251e3d);let _0x3489e9=this[_0xd29de8(0x1da)][_0xd29de8(0x206)](_0x472fe9),_0x3135b6=((_0x3489e9==null?void 0x0:_0x3489e9[_0xd29de8(0x371)])===!0x1?_0x3489e9['with'](t[_0xd29de8(0x1af)]):this['_docCanvasPopManagerService'])[_0xd29de8(0x318)](_0x377259,this[_0xd29de8(0x328)](_0x4469b9,_0x4ad33b),_0x472fe9);this[_0xd29de8(0x243)](_0x3135b6),this[_0xd29de8(0x212)](_0x251e3d)['push'](_0x3135b6),this[_0xd29de8(0x27e)]['set'](_0x251e3d,_0x45de9d),this[_0xd29de8(0x267)][_0xd29de8(0x236)]()['some'](_0x509896=>_0x509896[_0xd29de8(0x148)]===_0x472fe9&&_0x509896['subUnitId']===_0x37cf2a&&_0x509896[_0xd29de8(0x252)]===_0x37edd7)||this[_0xd29de8(0x267)][_0xd29de8(0x300)]([{'unitId':_0x472fe9,'subUnitId':_0x37cf2a,'drawingId':_0x37edd7}]);}[_0x252e6(0x328)](_0x2e96f5,_0x538150){const _0x3787d6=_0x252e6;return{'componentKey':xt,'requiresStableLayout':!0x1,'direction':_0x3787d6(0xb6),'offset':[0x0,e[_0x3787d6(0x170)]],'extraProps':{'unitId':_0x2e96f5[_0x3787d6(0x148)],'subUnitId':_0x2e96f5[_0x3787d6(0x33d)],'drawingId':_0x2e96f5[_0x3787d6(0x350)],'drawingType':_0x538150,'shapeType':_0x2e96f5[_0x3787d6(0x30c)],'shapeData':_0x2e96f5[_0x3787d6(0x2d7)]}};}[_0x252e6(0x165)](_0x38b6c7,_0x3137bc){const _0x258415=_0x252e6;let _0x82a142=this[_0x258415(0x1ce)][_0x258415(0x159)](_0x38b6c7,o[_0x258415(0x2bc)][_0x258415(0x248)]);if(!_0x82a142)return!0x1;let _0x40edfa=(0x0,s[_0x258415(0x367)])(_0x82a142,_0x3137bc);return(0x0,s[_0x258415(0x2cf)])(this[_0x258415(0x24d)],_0x38b6c7,[...(0x0,s['getDocumentEntityParentPermissionObjectIds'])(_0x82a142,_0x40edfa,_0x258415(0x253),_0x3137bc),(0x0,s[_0x258415(0x142)])(_0x40edfa,_0x258415(0x253),_0x3137bc)]);}[_0x252e6(0x2fc)](){const _0x1a41f7=_0x252e6;this[_0x1a41f7(0x243)](this[_0x1a41f7(0x22c)][_0x1a41f7(0xdc)](_0x4b5ebb=>{const _0x46b253=_0x1a41f7;if(_0x4b5ebb['id']===j['id']){let {unitId:_0x1612ae,subUnitId:_0x78137e,drawingId:_0x74e41}=_0x4b5ebb[_0x46b253(0x355)];this['_shapeEditPanelVersion']+=0x1,this[_0x46b253(0x204)]=this[_0x46b253(0x121)](_0x1612ae,_0x78137e,_0x74e41),this[_0x46b253(0xbd)](void 0x0,!0x0),this[_0x46b253(0x2ea)]();}if(_0x4b5ebb['id']===B['id']&&(this['_activeShapeInfo']=null,this['_closeShapeEditPanel']()),_0x4b5ebb['id']===r['UpdateDocShapeDataMutation']['id']){let {unitId:_0x440536,shapeId:_0x15b83d}=_0x4b5ebb[_0x46b253(0x355)];if(this[_0x46b253(0x204)]&&this[_0x46b253(0x204)][_0x46b253(0x350)]===_0x15b83d){let _0x117ad5=this[_0x46b253(0x121)](_0x440536,this[_0x46b253(0x204)][_0x46b253(0x33d)],_0x15b83d);_0x117ad5&&(this[_0x46b253(0x137)]+=0x1,_0x117ad5[_0x46b253(0x246)]=this['_shapeEditPanelVersion'],this['_activeShapeInfo']=_0x117ad5,this[_0x46b253(0x3a3)]&&this[_0x46b253(0x2ea)]());}}})),this[_0x1a41f7(0x243)](this[_0x1a41f7(0x267)][_0x1a41f7(0x119)][_0x1a41f7(0x334)](_0x11f240=>{const _0x4ded8f=_0x1a41f7;if(this[_0x4ded8f(0x3a3)]===!0x1)return;if(_0x11f240[_0x4ded8f(0x2b8)]===0x0){this['_activeShapeInfo']=null,this[_0x4ded8f(0x1b1)]();return;}if(_0x11f240[_0x4ded8f(0x2b8)]===0x1&&_0x11f240[0x0][_0x4ded8f(0xd8)]===o[_0x4ded8f(0x122)][_0x4ded8f(0x21c)]&&(this[_0x4ded8f(0x137)]+=0x1,this[_0x4ded8f(0x204)]=this['_getShapeInfo'](_0x11f240[0x0][_0x4ded8f(0x148)],_0x11f240[0x0][_0x4ded8f(0x33d)],_0x11f240[0x0][_0x4ded8f(0x252)]),this[_0x4ded8f(0x204)])){this['_openShapeEditPanel']();return;}let _0x459d7d=_0x11f240['filter'](_0x42ef13=>_0x42ef13[_0x4ded8f(0xd8)]===o[_0x4ded8f(0x122)][_0x4ded8f(0x21c)]);if(_0x11f240['length']>0x1&&_0x459d7d[_0x4ded8f(0x2b8)]===_0x11f240[_0x4ded8f(0x2b8)]){if(this['_shapeEditPanelVersion']+=0x1,this[_0x4ded8f(0x204)]=this['_getShapeInfo'](_0x11f240[0x0][_0x4ded8f(0x148)],_0x11f240[0x0][_0x4ded8f(0x33d)],_0x11f240[0x0][_0x4ded8f(0x252)]),this['_activeShapeInfo']){this[_0x4ded8f(0x2ea)]();return;}}else{if(this[_0x4ded8f(0x137)]+=0x1,this[_0x4ded8f(0x204)]=this[_0x4ded8f(0x121)](_0x11f240[0x0][_0x4ded8f(0x148)],_0x11f240[0x0][_0x4ded8f(0x33d)],_0x11f240[0x0][_0x4ded8f(0x252)]),this['_activeShapeInfo']){this[_0x4ded8f(0x204)][_0x4ded8f(0x39a)]=!0x0,this['_openShapeEditPanel']();return;}}this[_0x4ded8f(0x1b1)]();}));}[_0x252e6(0x2ea)](){const _0x148125=_0x252e6;this[_0x148125(0x204)]&&(this['_sidebarDisposable']=this[_0x148125(0x211)]['open']({'id':w,'header':{'title':this[_0x148125(0x2f8)]['t'](_0x148125(0x1a7))},'width':0x184,'children':{'label':w,...this[_0x148125(0x204)]},'onClose':()=>{const _0x48ef7b=_0x148125;this['_drawingManagerService'][_0x48ef7b(0x300)](null),this[_0x48ef7b(0x2db)][_0x48ef7b(0x305)](o[_0x48ef7b(0x199)],!0x1),this[_0x48ef7b(0x2fd)]=null;}}),this[_0x148125(0x3a3)]=!0x0);}[_0x252e6(0x1b1)](){const _0x50a2c2=_0x252e6;this['_isOpenedShapeEditPanel']=!0x1,this[_0x50a2c2(0x211)][_0x50a2c2(0x369)](w),this[_0x50a2c2(0x2fd)]=null,this['_contextService'][_0x50a2c2(0x305)](o[_0x50a2c2(0x199)],!0x1),this[_0x50a2c2(0x267)][_0x50a2c2(0x300)](null);}};zt=I([F(0x0,o[_0x252e6(0x288)]),F(0x1,(0x0,o[_0x252e6(0x329)])(n['ISidebarService'])),F(0x2,n['IMenuManagerService']),F(0x3,(0x0,o[_0x252e6(0x329)])(r[_0x252e6(0x1b0)])),F(0x4,(0x0,o[_0x252e6(0x329)])(o[_0x252e6(0x282)])),F(0x5,o[_0x252e6(0x1b3)]),F(0x6,u[_0x252e6(0x3b6)]),F(0x7,(0x0,o[_0x252e6(0x329)])(t[_0x252e6(0x1af)])),F(0x8,l[_0x252e6(0x342)]),F(0x9,o[_0x252e6(0x2cd)]),F(0xa,(0x0,o[_0x252e6(0x329)])(G)),F(0xb,o[_0x252e6(0x2bb)])],zt);let Bt=class extends o['Disposable']{constructor(_0x24d7fe,_0xef239){const _0x4feae7=_0x252e6;super(),this[_0x4feae7(0x389)]=_0x24d7fe,this[_0x4feae7(0x2f8)]=_0xef239,this[_0x4feae7(0x243)]((0x0,o['toDisposable'])((0x0,l['setDocsCustomBlockRenderViewportProvider'])((_0x273d84,_0x367c66,_0x347bf9)=>this[_0x4feae7(0x3a5)](_0x273d84,_0x367c66,_0x347bf9))));}[_0x252e6(0x3a5)](_0x434a9e,_0x5d2af7,_0x1231c7){const _0x4df0e0=_0x252e6;let _0xd972cc=this[_0x4df0e0(0x389)][_0x4df0e0(0xd7)](_0x434a9e,_0x5d2af7);if(!_0xd972cc)return null;let _0x4d790b=_0xd972cc[_0x4df0e0(0x192)](),_0x44ccca=(0x0,i[_0x4df0e0(0x348)])(_0x4d790b),_0x1b94a4=_0x4d790b[_0x4df0e0(0x97)];if(!_0x1b94a4||_0x44ccca['autoFitType']!==i['ShapeTextAutoFitType'][_0x4df0e0(0x1b6)])return null;let _0x4d2e83=_0x1231c7[_0x4df0e0(0xc5)],_0x38603a=_0x1231c7[_0x4df0e0(0x1c7)];_0xd972cc[_0x4df0e0(0x2f1)]({'width':_0x4d2e83,'height':_0x38603a});let _0x3bf94e=_0xd972cc['getShapeTextRect']({'left':0x0,'top':0x0,'width':_0x4d2e83,'height':_0x38603a}),_0x5ee7b0=(0x0,e[_0x4df0e0(0x19d)])(_0x4df0e0(0x1fe)in _0x1b94a4?_0x1b94a4['dataModel']:void 0x0),_0x80892a=(_0x5ee7b0==null?void 0x0:_0x5ee7b0['doc'])??('isRichText'in _0x1b94a4?(0x0,e[_0x4df0e0(0x16e)])(_0x1b94a4,_0x5d2af7+'-layout'):null);if(!_0x80892a)return null;let _0x51b1f1=(0x0,e[_0x4df0e0(0x9b)])({'documentData':_0x80892a,'height':_0x38603a,'shapeData':_0x4d790b,'textRect':_0x3bf94e,'width':_0x4d2e83,'widthBuffer':0x0});_0x51b1f1&&({width:_0x4d2e83,height:_0x38603a}=_0x51b1f1,_0xd972cc[_0x4df0e0(0x2f1)]({'width':_0x4d2e83,'height':_0x38603a}),_0x3bf94e=_0xd972cc[_0x4df0e0(0xb5)]({'left':0x0,'top':0x0,'width':_0x4d2e83,'height':_0x38603a}));let _0x2930e4=_0x1b94a4[_0x4df0e0(0x120)]!==!0x1,_0x2bce30=(0x0,e[_0x4df0e0(0xe6)])(_0x80892a,{'isHorizontal':_0x2930e4,'textRect':_0x3bf94e,'verticalAlign':_0x5ee7b0==null?void 0x0:_0x5ee7b0['va'],'horizontalAlign':_0x5ee7b0==null?void 0x0:_0x5ee7b0['ha'],'wrapStrategy':(0x0,e['resolveShapeTextEditorWrapStrategy'])(_0x4d790b)}),_0x32a692=new o[(_0x4df0e0(0x22e))](_0x2bce30),_0x38ec45=new l[(_0x4df0e0(0x28a))](_0x32a692),_0x3415ed=l[_0x4df0e0(0x2b3)]['create'](_0x38ec45,this[_0x4df0e0(0x2f8)]);try{var _0x320413,_0x405356;_0x3415ed[_0x4df0e0(0x2d5)]();let _0x400663=((_0x320413=_0x3415ed[_0x4df0e0(0x104)]())==null?void 0x0:_0x320413[_0x4df0e0(0x1b9)])??[],_0x17fa29=_0x400663[_0x400663['length']-0x1],_0x12f0d0=_0x17fa29?Math[_0x4df0e0(0x276)](0x0,((_0x405356=(0x0,l['getLastLine'])(_0x17fa29))==null?void 0x0:_0x405356[_0x4df0e0(0x330)])??0x0):0x0,_0x287c03=_0x3415ed['getActualSize']()[_0x4df0e0(0xbc)]+_0x12f0d0-(_0x2930e4?_0x3bf94e[_0x4df0e0(0x226)]:_0x3bf94e[_0x4df0e0(0x256)]);return Number[_0x4df0e0(0x1d4)](_0x287c03)?_0x2930e4?{'width':_0x4d2e83,'height':Math['max'](0x1,_0x38603a+_0x287c03)}:{'width':Math['max'](0x1,_0x4d2e83+_0x287c03),'height':_0x38603a}:null;}finally{_0x3415ed[_0x4df0e0(0x32e)](),_0x38ec45[_0x4df0e0(0x32e)](),_0x32a692[_0x4df0e0(0x32e)]();}}};Bt=I([F(0x0,(0x0,o[_0x252e6(0x329)])(r['DocsShapeService'])),F(0x1,(0x0,o[_0x252e6(0x329)])(o[_0x252e6(0x282)]))],Bt);let $=class extends o[_0x252e6(0x314)]{constructor(_0x2eeac4=nt,_0xb180d1,_0x59186e,_0x370c48,_0x1840f7){const _0x1a2b85=_0x252e6;super(),this['_config']=_0x2eeac4,this[_0x1a2b85(0x1b5)]=_0xb180d1,this['_commandService']=_0x59186e,this[_0x1a2b85(0x2e2)]=_0x370c48,this[_0x1a2b85(0x1da)]=_0x1840f7;let {menu:_0x46e9fa,..._0x262518}=(0x0,o['merge'])({},nt,this[_0x1a2b85(0x27c)]);_0x46e9fa&&this[_0x1a2b85(0x2e2)][_0x1a2b85(0x118)](_0x1a2b85(0x1d5),_0x46e9fa,{'merge':!0x0}),this[_0x1a2b85(0x2e2)][_0x1a2b85(0x118)](tt,_0x262518),this[_0x1a2b85(0x24a)]();}[_0x252e6(0xb4)](){const _0x2f3b96=_0x252e6;(0x0,o[_0x2f3b96(0x1b2)])(this['_injector'],this[_0x2f3b96(0x3b0)]()),this[_0x2f3b96(0x1b5)]['get'](jt),this['_initUIPart']();}[_0x252e6(0x3b0)](){return[[jt],[zt],[Z],[K],[q],[W],[L],[J],[Bt],[G],[X]];}[_0x252e6(0x331)](){const _0x41aa05=_0x252e6;this[_0x41aa05(0xec)]()[_0x41aa05(0x129)](_0x2e52e0=>{const _0x473e57=_0x41aa05;this['disposeWithMe'](this[_0x473e57(0x1da)][_0x473e57(0x1a9)](o[_0x473e57(0x2bc)][_0x473e57(0x248)],_0x2e52e0));}),(0x0,o[_0x41aa05(0x19c)])(this[_0x41aa05(0x1b5)],[[zt],[Z],[K],[q],[L],[J],[Bt],[G],[X]]);}[_0x252e6(0xec)](){return[[W],[It],[Rt],[Mt]];}[_0x252e6(0x2fb)](){const _0x187874=_0x252e6;this[_0x187874(0x243)](this[_0x187874(0x1da)]['registerRenderModule'](o[_0x187874(0x2bc)][_0x187874(0x248)],[Lt]));}[_0x252e6(0x24a)](){const _0x56f22b=_0x252e6;[C,B,j,A,N,P]['forEach'](_0x20a388=>this['disposeWithMe'](this[_0x56f22b(0x22c)][_0x56f22b(0x126)](_0x20a388)));}[_0x252e6(0x391)](){const _0x5110b0=_0x252e6;let _0x317290=this[_0x5110b0(0x1b5)],_0x139dbe=_0x317290[_0x5110b0(0x286)](n[_0x5110b0(0x11a)]);this[_0x5110b0(0x243)](_0x139dbe['registerComponent'](n[_0x5110b0(0xe2)][_0x5110b0(0x1cd)],()=>(0x0,n['connectInjector'])(Dt,_0x317290)));}};H($,_0x252e6(0x323),o[_0x252e6(0x2bc)][_0x252e6(0x248)]),H($,'pluginName','DOCS_SHAPE_UI_PLUGIN'),H($,'packageName',$e),H($,_0x252e6(0x246),et),$=I([(0x0,o[_0x252e6(0x365)])(m[_0x252e6(0x1a4)],s['UniverDocsPlugin'],u['UniverDrawingPlugin'],d[_0x252e6(0xf1)],l['UniverRenderEnginePlugin'],t['UniverDocsUIPlugin'],a[_0x252e6(0xac)],h[_0x252e6(0x103)],r['UniverDocsShapePlugin'],e['UniverShapeEditorUIPlugin']),F(0x1,(0x0,o[_0x252e6(0x329)])(o[_0x252e6(0x179)])),F(0x2,o[_0x252e6(0x1b3)]),F(0x3,o['IConfigService']),F(0x4,l[_0x252e6(0x342)])],$),exports[_0x252e6(0xf3)]=Qe,Object[_0x252e6(0x24e)](exports,'UniverDocsShapeMobileUIPlugin',{'enumerable':!0x0,'get':function(){return Q;}}),Object[_0x252e6(0x24e)](exports,_0x252e6(0x154),{'enumerable':!0x0,'get':function(){return $;}});
|