@univerjs-pro/boards-mind-ui 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/de-DE.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/id-ID.js +1 -1
  10. package/lib/cjs/locale/it-IT.js +1 -1
  11. package/lib/cjs/locale/ja-JP.js +1 -1
  12. package/lib/cjs/locale/ko-KR.js +1 -1
  13. package/lib/cjs/locale/pl-PL.js +1 -1
  14. package/lib/cjs/locale/pt-BR.js +1 -1
  15. package/lib/cjs/locale/ru-RU.js +1 -1
  16. package/lib/cjs/locale/sk-SK.js +1 -1
  17. package/lib/cjs/locale/vi-VN.js +1 -1
  18. package/lib/cjs/locale/zh-CN.js +1 -1
  19. package/lib/cjs/locale/zh-HK.js +1 -1
  20. package/lib/cjs/locale/zh-TW.js +1 -1
  21. package/lib/es/index.js +1 -1
  22. package/lib/es/locale/ar-SA.js +1 -1
  23. package/lib/es/locale/ca-ES.js +1 -1
  24. package/lib/es/locale/de-DE.js +1 -1
  25. package/lib/es/locale/en-US.js +1 -1
  26. package/lib/es/locale/es-ES.js +1 -1
  27. package/lib/es/locale/fa-IR.js +1 -1
  28. package/lib/es/locale/fr-FR.js +1 -1
  29. package/lib/es/locale/id-ID.js +1 -1
  30. package/lib/es/locale/it-IT.js +1 -1
  31. package/lib/es/locale/ja-JP.js +1 -1
  32. package/lib/es/locale/ko-KR.js +1 -1
  33. package/lib/es/locale/pl-PL.js +1 -1
  34. package/lib/es/locale/pt-BR.js +1 -1
  35. package/lib/es/locale/ru-RU.js +1 -1
  36. package/lib/es/locale/sk-SK.js +1 -1
  37. package/lib/es/locale/vi-VN.js +1 -1
  38. package/lib/es/locale/zh-CN.js +1 -1
  39. package/lib/es/locale/zh-HK.js +1 -1
  40. package/lib/es/locale/zh-TW.js +1 -1
  41. package/lib/index.js +1 -1
  42. package/lib/locale/ar-SA.js +1 -1
  43. package/lib/locale/ca-ES.js +1 -1
  44. package/lib/locale/de-DE.js +1 -1
  45. package/lib/locale/en-US.js +1 -1
  46. package/lib/locale/es-ES.js +1 -1
  47. package/lib/locale/fa-IR.js +1 -1
  48. package/lib/locale/fr-FR.js +1 -1
  49. package/lib/locale/id-ID.js +1 -1
  50. package/lib/locale/it-IT.js +1 -1
  51. package/lib/locale/ja-JP.js +1 -1
  52. package/lib/locale/ko-KR.js +1 -1
  53. package/lib/locale/pl-PL.js +1 -1
  54. package/lib/locale/pt-BR.js +1 -1
  55. package/lib/locale/ru-RU.js +1 -1
  56. package/lib/locale/sk-SK.js +1 -1
  57. package/lib/locale/vi-VN.js +1 -1
  58. package/lib/locale/zh-CN.js +1 -1
  59. package/lib/locale/zh-HK.js +1 -1
  60. package/lib/locale/zh-TW.js +1 -1
  61. package/lib/umd/index.js +1 -1
  62. package/lib/umd/locale/ar-SA.js +1 -1
  63. package/lib/umd/locale/ca-ES.js +1 -1
  64. package/lib/umd/locale/de-DE.js +1 -1
  65. package/lib/umd/locale/en-US.js +1 -1
  66. package/lib/umd/locale/es-ES.js +1 -1
  67. package/lib/umd/locale/fa-IR.js +1 -1
  68. package/lib/umd/locale/fr-FR.js +1 -1
  69. package/lib/umd/locale/id-ID.js +1 -1
  70. package/lib/umd/locale/it-IT.js +1 -1
  71. package/lib/umd/locale/ja-JP.js +1 -1
  72. package/lib/umd/locale/ko-KR.js +1 -1
  73. package/lib/umd/locale/pl-PL.js +1 -1
  74. package/lib/umd/locale/pt-BR.js +1 -1
  75. package/lib/umd/locale/ru-RU.js +1 -1
  76. package/lib/umd/locale/sk-SK.js +1 -1
  77. package/lib/umd/locale/vi-VN.js +1 -1
  78. package/lib/umd/locale/zh-CN.js +1 -1
  79. package/lib/umd/locale/zh-HK.js +1 -1
  80. package/lib/umd/locale/zh-TW.js +1 -1
  81. package/package.json +13 -13
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4f3d14=_0x5652;(function(_0x5ef2f6,_0x47b4c8){const _0x39fb8d=_0x5652,_0x367b12=_0x5ef2f6();while(!![]){try{const _0xd6d06b=-parseInt(_0x39fb8d(0x3fa))/0x1*(parseInt(_0x39fb8d(0x398))/0x2)+-parseInt(_0x39fb8d(0x39a))/0x3+parseInt(_0x39fb8d(0x1bf))/0x4+-parseInt(_0x39fb8d(0x1a4))/0x5*(-parseInt(_0x39fb8d(0x3f7))/0x6)+-parseInt(_0x39fb8d(0x21e))/0x7*(-parseInt(_0x39fb8d(0x406))/0x8)+parseInt(_0x39fb8d(0x273))/0x9*(parseInt(_0x39fb8d(0x2e3))/0xa)+parseInt(_0x39fb8d(0x463))/0xb*(parseInt(_0x39fb8d(0x45f))/0xc);if(_0xd6d06b===_0x47b4c8)break;else _0x367b12['push'](_0x367b12['shift']());}catch(_0x1ab488){_0x367b12['push'](_0x367b12['shift']());}}}(_0x4677,0x1b5dd));import{BoardElementType as _0x282c4b,BoardToolType as _0x2f25e2,IBoardElementService as _0x5c495f,IBoardMindMapAdapterService as _0x13266e,UniverBoardsPlugin as _0x3afdbd,documentTextStyleToBoardShapeTextStyle as _0x5eb915,offsetBoardConnectorGeometry as _0x4d906e,resolveBoardElementWorldBounds as _0x25dbfe}from'@univerjs-pro/boards';import{AddMindMapChildOperation as _0x21cdef,AddMindMapSiblingOperation as _0x20f384,ChangeMindMapBranchLineTypeOperation as _0x523acc,ChangeMindMapLayoutOperation as _0x32999d,CopyMindMapNodeOperation as _0x47452c,DeleteMindMapNodeOperation as _0x20689a,DetachMindMapNodeOperation as _0x10841e,ExportMindMapOpmlOperation as _0x1d834a,IMindMapClipboardService as _0x2d52c2,ImportMindMapOpmlOperation as _0x3b34fe,InsertBoardMindMapOperation as _0x243dd0,LayoutMindMapOperation as _0x4b5dc4,MIND_MAP_DEFAULT_LAYOUT as _0x1fa9e8,MIND_MAP_DEFAULT_NODE_SIZE as _0x5ad525,MIND_MAP_DEFAULT_NODE_TEXT as _0x251b5d,MIND_MAP_LAYOUT_SPACING_LIMITS as _0x3fb7b7,PasteMindMapAsNewMindMapOperation as _0x568b7,PasteMindMapNodeOperation as _0x5acb7b,PromoteMindMapNodeOperation as _0x245415,ReparentMindMapNodeOperation as _0x2f561c,ToggleMindMapNodeCollapseOperation as _0xdc3604,TranslateMindMapOperation as _0x2c3a69,UniverBoardsMindPlugin as _0x204fd7,UpdateMindMapIncomingConnectorOperation as _0x411ecf,UpdateMindMapNodeOperation as _0x3d67d8,compareMindMapOrderKey as _0x401170,getMindMapConnectorMeta as _0x5dd284,getMindMapContainerMeta as _0x487e3a,getMindMapDefaultChildOrderKey as _0x339fd4,getMindMapNodeMeta as _0x5585ba,isMindMapPlainStructureKind as _0x35ce36,resolveMindMapBranchLineTypeForStructure as _0x22ba0f,resolveMindMapLayoutPreview as _0x4c0113,resolveMindMapNodeHostSize as _0x26ff7e}from'@univerjs-pro/boards-mind';import{BOARDS_UI_PLUGIN_CONFIG_KEY as _0x3e4252,BOARD_RENDER_LAYER_INDEX as _0x2019f6,BOARD_RENDER_OBJECT_Z_INDEX as _0x65c3c8,BOARD_SHORTCUT_BINDINGS as _0x416fa4,BoardCanvasPopManagerService as _0x5a2be5,BoardInteractionSurfaceService as _0x28dc04,BoardShapeIntrinsicSizeService as _0x3514cd,BoardTextEditingService as _0x2d7b12,IBoardElementStateService as _0x16fdab,IBoardUIStateService as _0x31b38d,UniverBoardsMobileUIPlugin as _0x28e0e2,UniverBoardsUIPlugin as _0x111050,areBoardShapeTextValuesEquivalent as _0x1fcca7,getBoardElementRenderObjectKey as _0x55b3e2,isBoardShortcutAvailable as _0xa918fb,parseBoardElementRenderObjectKey as _0x1bae0a,resolveBoardFloatingToolbarSelection as _0x4b1317,syncBoardElementRenderObject as _0x17e74f}from'@univerjs-pro/boards-ui';import{UniverLicensePlugin as _0x327bfc}from'@univerjs-pro/license';import{BooleanNumber as _0x3c1a02,CommandType as _0x470c85,DEFAULT_STYLES as _0x5afc33,DependentOn as _0x305799,Disposable as _0x4c4d8b,DisposableCollection as _0x3fd367,HorizontalAlign as _0x572b51,ICommandService as _0x27d0fe,IConfigService as _0x156f99,IContextService as _0x22ca73,IUniverInstanceService as _0x253a65,Inject as _0x132a38,Injector as _0x13315b,LocaleService as _0x4eab55,Plugin as _0x273e01,RxDisposable as _0x41f8e5,UniverInstanceType as _0x8b4a1a,VerticalAlign as _0x144c34,generateRandomId as _0x21938d,merge as _0x44c8ca,toDisposable as _0x122c68}from'@univerjs/core';import{BaseObject as _0x1f694c,Control as _0x4ff2d9,DeviceType as _0x5ef2af,IRenderManagerService as _0x19658f,UniverRenderEnginePlugin as _0x38f2bf}from'@univerjs/engine-render';import{Subject as _0x10bbaf,merge as _0x3a40cc,takeUntil as _0x41cd5b}from'rxjs';import{ComponentManager as _0x4b5c19,IDialogService as _0x23671a,IFontService as _0x27dbe6,IShortcutService as _0x2c1c63,ISidebarService as _0x313b59,KeyCode as _0x80c18b,MetaKeys as _0x21a288,UndoRedoGroupService as _0x57f4a7,useDependency as _0x1bf837,useObservable as _0x5180ec}from'@univerjs/ui';import{MobileShapeMenu as _0x4e732a,SHAPE_FLOATING_TOOLBAR_DEFAULT_STROKE_COLOR as _0x121c72,SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_BACKGROUND_COLOR as _0x8d3d50,SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_COLOR as _0x4edc0e,SHAPE_TEXT_EDITOR_QUOTE_COMMAND_ID as _0x15a211,ShapeFillButton as _0xb1360f,ShapeFloatingToolbarContent as _0x31c2c5,ShapeFloatingToolbarDropdownTrigger as _0x3945a0,ShapeFloatingToolbarFontSizeSelect as _0x1d6b66,ShapeFloatingToolbarIcon as _0x3a11ae,ShapeFloatingToolbarMenuItem as _0x5a5f70,ShapeFloatingToolbarMenuPanel as _0x2cf51f,ShapeStrokePanelButton as _0x559b96,ShapeStrokePanelContent as _0x26de67,TextFillButton as _0x19e9cd,TypographyPanelButton as _0x293f98,buildShapeTextDataUpdate as _0x543a5f,getTextStyle as _0x3c14be}from'@univerjs-pro/shape-editor-ui';import{ShapeDefaultConfig as _0x588e8c,ShapeLineDashEnum as _0x16fb53,ShapeLineTypeEnum as _0x48e250}from'@univerjs-pro/engine-shape';import{Button as _0x8c8b61,Dropdown as _0x53b00d,Input as _0x163e88,InputNumber as _0x5a974,MobileColorPresets as _0x4c11aa,Segmented as _0x373ab1,Separator as _0x1d1b23,Textarea as _0x14dc82,borderClassName as _0x2d215c,clsx as _0x461cd5}from'@univerjs/design';import{AlignBottomIcon as _0x4cbc58,AlignTextBothIcon as _0x233f6c,AlignTopIcon as _0x1c51ff,BoldIcon as _0x12ba90,HorizontallyIcon as _0xd2c873,ItalicIcon as _0x5c4515,LeftJustifyingIcon as _0x10ad46,MoreHorizontalIcon as _0x382a06,RightJustifyingIcon as _0x97b6f7,SearchIcon as _0x228aaa,ShapeLineIcon as _0x5edb01,StrikethroughIcon as _0x523a6d,UnderlineIcon as _0x2fc605,VerticalCenterIcon as _0x56f7d4}from'@univerjs/icons';import{useEffect as _0x4d0c04,useReducer as _0x21ba50,useState as _0x34d7b2}from'react';import{Fragment as _0x219099,jsx as _0x9b9447,jsxs as _0x27b706}from'react/jsx-runtime';var Zt=_0x4f3d14(0x2dc),Qt=_0x4f3d14(0x2fb);const $t=_0x4f3d14(0x1e6),en={};function tn(_0x21225e){'@babel/helpers - typeof';const _0x13f65f=_0x4f3d14;return tn=typeof Symbol==_0x13f65f(0x2b8)&&typeof Symbol['iterator']==_0x13f65f(0x32a)?function(_0x5805f5){return typeof _0x5805f5;}:function(_0x333521){const _0x206472=_0x13f65f;return _0x333521&&typeof Symbol=='function'&&_0x333521[_0x206472(0x3eb)]===Symbol&&_0x333521!==Symbol[_0x206472(0x24c)]?_0x206472(0x32a):typeof _0x333521;},tn(_0x21225e);}function nn(_0x30e0d6,_0x550d8e){const _0x4a8f58=_0x4f3d14;if(tn(_0x30e0d6)!=_0x4a8f58(0x458)||!_0x30e0d6)return _0x30e0d6;var _0x36fdf0=_0x30e0d6[Symbol[_0x4a8f58(0x3c0)]];if(_0x36fdf0!==void 0x0){var _0x5c28c8=_0x36fdf0[_0x4a8f58(0x2a4)](_0x30e0d6,_0x550d8e||_0x4a8f58(0x3f6));if(tn(_0x5c28c8)!=_0x4a8f58(0x458))return _0x5c28c8;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x550d8e==='string'?String:Number)(_0x30e0d6);}function rn(_0x3c603f){const _0x3102fd=_0x4f3d14;var _0x2cf146=nn(_0x3c603f,'string');return tn(_0x2cf146)==_0x3102fd(0x32a)?_0x2cf146:_0x2cf146+'';}function K(_0x4d2d85,_0x347b69,_0x32e08c){const _0x2bb2f1=_0x4f3d14;return(_0x347b69=rn(_0x347b69))in _0x4d2d85?Object[_0x2bb2f1(0x3e1)](_0x4d2d85,_0x347b69,{'value':_0x32e08c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4d2d85[_0x347b69]=_0x32e08c,_0x4d2d85;}function q(_0x2f79af,_0x4e4d4f){return function(_0x1f6a6a,_0x10483e){_0x4e4d4f(_0x1f6a6a,_0x10483e,_0x2f79af);};}function J(_0x21c0c2,_0x52c0d3,_0x54d967,_0x5d0e13){const _0x1f4757=_0x4f3d14;var _0x424ddf=arguments[_0x1f4757(0x452)],_0x394f46=_0x424ddf<0x3?_0x52c0d3:_0x5d0e13===null?_0x5d0e13=Object[_0x1f4757(0x309)](_0x52c0d3,_0x54d967):_0x5d0e13,_0x586f00;if(typeof Reflect==_0x1f4757(0x458)&&typeof Reflect[_0x1f4757(0x1f7)]=='function')_0x394f46=Reflect[_0x1f4757(0x1f7)](_0x21c0c2,_0x52c0d3,_0x54d967,_0x5d0e13);else{for(var _0x293378=_0x21c0c2[_0x1f4757(0x452)]-0x1;_0x293378>=0x0;_0x293378--)(_0x586f00=_0x21c0c2[_0x293378])&&(_0x394f46=(_0x424ddf<0x3?_0x586f00(_0x394f46):_0x424ddf>0x3?_0x586f00(_0x52c0d3,_0x54d967,_0x394f46):_0x586f00(_0x52c0d3,_0x54d967))||_0x394f46);}return _0x424ddf>0x3&&_0x394f46&&Object[_0x1f4757(0x3e1)](_0x52c0d3,_0x54d967,_0x394f46),_0x394f46;}let an=class extends _0x41f8e5{constructor(_0x23fedc,_0x45d0d2,_0x116543){const _0x371b97=_0x4f3d14;super(),this[_0x371b97(0x414)]=_0x23fedc,this[_0x371b97(0x3dd)]=_0x45d0d2,this['_commandService']=_0x116543,K(this,_0x371b97(0x44b),new Map()),K(this,_0x371b97(0x4aa),new Map()),K(this,_0x371b97(0x2db),!0x1),this[_0x371b97(0x45b)]();}['_init'](){const _0x302e4c=_0x4f3d14;this['_seedExistingNodeSizes'](),this[_0x302e4c(0x44d)](_0x122c68(this[_0x302e4c(0x3dd)][_0x302e4c(0x3d9)][_0x302e4c(0x46c)](_0x41cd5b(this['dispose$']))[_0x302e4c(0x345)](_0x33a67a=>{const _0x46bb9a=_0x302e4c;_0x33a67a[_0x46bb9a(0x2d1)](_0x597e45=>{const _0x4146ab=_0x46bb9a;let _0x54b475=this[_0x4146ab(0x3dd)][_0x4146ab(0x40e)](_0x597e45['unitId'],_0x597e45[_0x4146ab(0x20a)],_0x597e45['elementId']);this[_0x4146ab(0x471)](_0x597e45,_0x54b475);});}))),this['disposeWithMe'](_0x122c68(this['_boardElementService']['elementUpdate$'][_0x302e4c(0x46c)](_0x41cd5b(this['dispose$']))['subscribe'](_0x3a0b48=>{const _0x9cfb61=_0x302e4c;_0x3a0b48[_0x9cfb61(0x2d1)](_0x432143=>this['_handleElementUpdate'](_0x432143));})));}[_0x4f3d14(0x1df)](){let _0x2f64ea=this['_renderContext']['unitId'],_0x195c23=this['_boardElementService']['getElementDataForUnit'](_0x2f64ea);Object['entries'](_0x195c23)['forEach'](([_0x55aa35,_0x162958])=>{const _0x3b1ff1=_0x5652;Object[_0x3b1ff1(0x2df)](_0x162958['data'])[_0x3b1ff1(0x2d1)](_0x28ed9a=>{const _0x7ee06=_0x3b1ff1;this['_rememberNodeSize']({'unitId':_0x2f64ea,'subUnitId':_0x55aa35,'elementId':_0x28ed9a[_0x7ee06(0x3e9)]},_0x28ed9a);});});}['_handleElementUpdate'](_0x3bde5a){const _0x4e50b9=_0x4f3d14;if(_0x3bde5a[_0x4e50b9(0x291)]!==this[_0x4e50b9(0x414)]['unitId'])return;let _0x123c54=this[_0x4e50b9(0x3dd)][_0x4e50b9(0x40e)](_0x3bde5a[_0x4e50b9(0x291)],_0x3bde5a[_0x4e50b9(0x20a)],_0x3bde5a[_0x4e50b9(0x3e9)]),_0x13c02e=_0x5585ba(_0x123c54==null?void 0x0:_0x123c54['element']),_0x2f1eb2=this[_0x4e50b9(0x4b2)](_0x123c54);if(!_0x13c02e||!_0x2f1eb2){this['_nodeSizeByKey'][_0x4e50b9(0x333)](this[_0x4e50b9(0x38a)](_0x3bde5a));return;}let _0x2dd253=this[_0x4e50b9(0x38a)](_0x3bde5a),_0x2117d8=this[_0x4e50b9(0x44b)][_0x4e50b9(0x47f)](_0x2dd253);this[_0x4e50b9(0x44b)][_0x4e50b9(0x1f8)](_0x2dd253,_0x2f1eb2),!(_0x2117d8&&_0x2117d8[_0x4e50b9(0x48c)]===_0x2f1eb2[_0x4e50b9(0x48c)]&&_0x2117d8[_0x4e50b9(0x36d)]===_0x2f1eb2[_0x4e50b9(0x36d)])&&this[_0x4e50b9(0x212)]({'unitId':_0x3bde5a['unitId'],'subUnitId':_0x3bde5a[_0x4e50b9(0x20a)],'scopeId':_0x13c02e[_0x4e50b9(0x2ea)]});}[_0x4f3d14(0x471)](_0x42bd81,_0x2752d4){const _0x357180=_0x4f3d14;if(_0x42bd81[_0x357180(0x291)]!==this['_renderContext'][_0x357180(0x291)])return;let _0x20b20f=_0x5585ba(_0x2752d4==null?void 0x0:_0x2752d4[_0x357180(0x1ca)]),_0x203ac3=this[_0x357180(0x4b2)](_0x2752d4);_0x20b20f&&_0x203ac3&&this[_0x357180(0x44b)][_0x357180(0x1f8)](this[_0x357180(0x38a)](_0x42bd81),_0x203ac3);}[_0x4f3d14(0x4b2)](_0x5a297a){const _0x4c0808=_0x4f3d14;let _0x480294=(_0x5a297a==null?void 0x0:_0x5a297a[_0x4c0808(0x330)])??(_0x5a297a==null?void 0x0:_0x5a297a[_0x4c0808(0x1ca)]['transform']),_0x528613=_0x480294==null?void 0x0:_0x480294[_0x4c0808(0x48c)],_0x239283=_0x480294==null?void 0x0:_0x480294[_0x4c0808(0x36d)];return!Number['isFinite'](_0x528613)||!Number[_0x4c0808(0x490)](_0x239283)?null:{'width':_0x528613,'height':_0x239283};}[_0x4f3d14(0x212)](_0x29ad57){const _0x44b7db=_0x4f3d14;this[_0x44b7db(0x4aa)][_0x44b7db(0x1f8)](_0x29ad57[_0x44b7db(0x291)]+':'+_0x29ad57['subUnitId']+':'+_0x29ad57['scopeId'],_0x29ad57),!this[_0x44b7db(0x2db)]&&(this[_0x44b7db(0x2db)]=!0x0,Promise[_0x44b7db(0x1ec)]()[_0x44b7db(0x193)](()=>{const _0x19b27d=_0x44b7db;this[_0x19b27d(0x2db)]=!0x1;let _0x559451=Array['from'](this[_0x19b27d(0x4aa)][_0x19b27d(0x2df)]());this[_0x19b27d(0x4aa)][_0x19b27d(0x343)](),_0x559451['forEach'](_0x27f3f4=>{const _0x3d296a=_0x19b27d;this[_0x3d296a(0x22a)](_0x27f3f4);});}));}['_executeRootAnchoredLayout'](_0x148ac8){const _0x2db063=_0x4f3d14;var _0x33b044;let _0x35a598=this['_boardElementService'][_0x2db063(0x40e)](_0x148ac8['unitId'],_0x148ac8['subUnitId'],_0x148ac8['scopeId']),_0x1001b4=(_0x33b044=_0x487e3a(_0x35a598==null?void 0x0:_0x35a598[_0x2db063(0x1ca)]))==null?void 0x0:_0x33b044[_0x2db063(0x380)];this['_commandService'][_0x2db063(0x32d)](_0x4b5dc4['id'],{..._0x148ac8,'skipUndo':!0x0,..._0x1001b4?{'anchorNodeId':_0x1001b4}:null});}[_0x4f3d14(0x38a)](_0x41a964){const _0x4a6588=_0x4f3d14;return _0x41a964['unitId']+':'+_0x41a964[_0x4a6588(0x20a)]+':'+_0x41a964['elementId'];}};an=J([q(0x1,_0x132a38(_0x5c495f)),q(0x2,_0x27d0fe)],an);const Y={'primaryColor':_0x121c72,'surfaceColor':_0x8d3d50,'textColor':_0x4edc0e,'fontFamily':_0x5afc33['ff']};function on(_0x17970d,_0x1e7c8c){const _0x2b0dac=_0x4f3d14;let _0x277af2=Math[_0x2b0dac(0x246)](0x1,Math[_0x2b0dac(0x31c)](0x0,Number[_0x2b0dac(0x490)](_0x1e7c8c)?_0x1e7c8c:0x1)),_0x4edbd4=_0x17970d[_0x2b0dac(0x387)](),_0x3a1d19=/^#([0-9a-fA-F]{6})$/['exec'](_0x4edbd4);if(!_0x3a1d19)return _0x17970d;let _0x32f147=_0x3a1d19[0x1];return _0x2b0dac(0x321)+Number[_0x2b0dac(0x4af)](_0x32f147[_0x2b0dac(0x2eb)](0x0,0x2),0x10)+',\x20'+Number['parseInt'](_0x32f147[_0x2b0dac(0x2eb)](0x2,0x4),0x10)+',\x20'+Number[_0x2b0dac(0x4af)](_0x32f147[_0x2b0dac(0x2eb)](0x4,0x6),0x10)+',\x20'+_0x277af2+')';}const X={'primaryColor':Y[_0x4f3d14(0x422)],'ghostFillColor':on(Y[_0x4f3d14(0x27a)],0.72),'ghostTextColor':on(Y[_0x4f3d14(0x426)],0.62),'rootTextColor':on(Y[_0x4f3d14(0x27a)],0.86),'sourceHighlightFillColor':on(Y[_0x4f3d14(0x422)],0.12),'sourceHighlightStrokeColor':on(Y[_0x4f3d14(0x422)],0.9),'objectAlpha':0.72,'dragObjectAlpha':0.78,'connectorAlpha':0.64,'lineWidthScreen':0x2,'fallbackNodeWidth':_0x5ad525[_0x4f3d14(0x3b8)],'fallbackNodeHeight':_0x5ad525[_0x4f3d14(0x1fa)],'branchGap':_0x1fa9e8[_0x4f3d14(0x2e6)],'sourceHaloScreen':0x4,'ghostRadius':0x8,'rootRadius':0xa,'fontFamily':Y[_0x4f3d14(0x2d0)],'ghostFontWeight':0x1f4,'rootFontWeight':0x258,'rootFontSize':0x12,'textPaddingScreen':0xc,'dirtyPaddingScreen':0x18,'sourceDashScreen':[0x6,0x4]};function Z(_0x83193d,_0xb02693,_0x3ae648,_0x3d6f0a,_0x1ed241,_0x12954b){const _0x40af9a=_0x4f3d14;let _0x230b32=Math[_0x40af9a(0x246)](_0x12954b,_0x3d6f0a/0x2,_0x1ed241/0x2);_0x83193d['beginPath'](),_0x83193d[_0x40af9a(0x2a2)](_0xb02693+_0x230b32,_0x3ae648),_0x83193d[_0x40af9a(0x28d)](_0xb02693+_0x3d6f0a-_0x230b32,_0x3ae648),_0x83193d[_0x40af9a(0x3e0)](_0xb02693+_0x3d6f0a,_0x3ae648,_0xb02693+_0x3d6f0a,_0x3ae648+_0x230b32),_0x83193d[_0x40af9a(0x28d)](_0xb02693+_0x3d6f0a,_0x3ae648+_0x1ed241-_0x230b32),_0x83193d[_0x40af9a(0x3e0)](_0xb02693+_0x3d6f0a,_0x3ae648+_0x1ed241,_0xb02693+_0x3d6f0a-_0x230b32,_0x3ae648+_0x1ed241),_0x83193d[_0x40af9a(0x28d)](_0xb02693+_0x230b32,_0x3ae648+_0x1ed241),_0x83193d[_0x40af9a(0x3e0)](_0xb02693,_0x3ae648+_0x1ed241,_0xb02693,_0x3ae648+_0x1ed241-_0x230b32),_0x83193d[_0x40af9a(0x28d)](_0xb02693,_0x3ae648+_0x230b32),_0x83193d[_0x40af9a(0x3e0)](_0xb02693,_0x3ae648,_0xb02693+_0x230b32,_0x3ae648),_0x83193d[_0x40af9a(0x2af)]();}function sn(_0x2f7657,_0x4f6587,_0x102b1b){const _0x3b8f5f=_0x4f3d14;return _0x2f7657+'\x20'+_0x4f6587/_0x102b1b+_0x3b8f5f(0x44a)+X[_0x3b8f5f(0x2d0)];}const cn=_0x4f3d14(0x344),ln=_0x2019f6[_0x4f3d14(0x354)];function Q(_0x3c1833,_0x27d145){const _0x2b909b=_0x4f3d14;return Number[_0x2b909b(0x490)](_0x3c1833)?_0x3c1833:_0x27d145;}function un(){const _0x29d24a=_0x4f3d14;return X[_0x29d24a(0x266)];}function dn(){const _0xe2dbf1=_0x4f3d14;return X[_0xe2dbf1(0x48a)];}function fn(_0x33eecc){const _0x320b34=_0x4f3d14;return _0x33eecc===0x1?_0x320b34(0x445):_0x33eecc===0x3?'right':'center';}function pn(_0x18d7cd,_0x54c50a,_0x18a95b,_0x38c9f5){return _0x18a95b===0x1?_0x18d7cd+_0x38c9f5:_0x18a95b===0x3?_0x18d7cd+_0x54c50a-_0x38c9f5:_0x18d7cd+_0x54c50a/0x2;}var mn=class extends _0x1f694c{constructor(_0x1bcedc=cn,_0x575374){const _0x5dfbf0=_0x4f3d14;super(_0x1bcedc),K(this,_0x5dfbf0(0x2e0),{'ghostBounds':null,'parentBounds':null,'side':_0x5dfbf0(0x289),'zoomRatio':0x1}),this[_0x5dfbf0(0x2f9)]=!0x1,this[_0x5dfbf0(0x23c)]=_0x65c3c8['transientPreviewForeground'],this[_0x5dfbf0(0x2e5)](_0x575374);}['updateState'](_0x278901){const _0x523d32=_0x4f3d14;if(this[_0x523d32(0x2e0)]={...this[_0x523d32(0x2e0)],..._0x278901},this[_0x523d32(0x2e0)][_0x523d32(0x472)]){let _0x427509=this[_0x523d32(0x3a0)]();this[_0x523d32(0x3be)](_0x427509),this[_0x523d32(0x2bf)]();}else this[_0x523d32(0x4a4)]();let _0x6d0452=this;typeof _0x6d0452[_0x523d32(0x2c8)]=='function'?_0x6d0452[_0x523d32(0x2c8)](!0x0):this[_0x523d32(0x32c)](!0x0);}[_0x4f3d14(0x397)](_0x43adfa){return!0x1;}[_0x4f3d14(0x360)](_0x4494b9,_0x2f535b){const _0x41dd5b=_0x4f3d14;let _0x21d86b=this[_0x41dd5b(0x2e0)]['ghostBounds'];if(!_0x21d86b||!this[_0x41dd5b(0x418)])return this[_0x41dd5b(0x32c)](!0x1),this;let _0x12f6b8=Number[_0x41dd5b(0x490)](this['_state'][_0x41dd5b(0x1e9)])&&(this[_0x41dd5b(0x2e0)][_0x41dd5b(0x1e9)]??0x0)>0x0?this['_state'][_0x41dd5b(0x1e9)]:0x1,_0x31b5ff=Q(_0x21d86b[_0x41dd5b(0x445)],0x0),_0x3a9441=Q(_0x21d86b[_0x41dd5b(0x2e1)],0x0),_0x2423bb=Math[_0x41dd5b(0x31c)](0x1,Q(_0x21d86b[_0x41dd5b(0x48c)],un())),_0x2a35a7=Math[_0x41dd5b(0x31c)](0x1,Q(_0x21d86b[_0x41dd5b(0x36d)],dn()));if(_0x4494b9['save'](),_0x4494b9[_0x41dd5b(0x26c)]=X[_0x41dd5b(0x35f)],_0x4494b9[_0x41dd5b(0x37c)]=X['lineWidthScreen']/_0x12f6b8,_0x4494b9[_0x41dd5b(0x355)]=X['primaryColor'],_0x4494b9['fillStyle']=X[_0x41dd5b(0x2bd)],this['_drawConnectorPreview'](_0x4494b9,{'left':_0x31b5ff,'top':_0x3a9441,'width':_0x2423bb,'height':_0x2a35a7},_0x12f6b8),this[_0x41dd5b(0x2cd)](_0x4494b9,_0x12f6b8),this[_0x41dd5b(0x2e0)][_0x41dd5b(0x33a)]===!0x1)return _0x4494b9[_0x41dd5b(0x1a0)](),this['makeDirty'](!0x1),this;Z(_0x4494b9,_0x31b5ff,_0x3a9441,_0x2423bb,_0x2a35a7,X[_0x41dd5b(0x307)]),_0x4494b9[_0x41dd5b(0x222)](),_0x4494b9[_0x41dd5b(0x267)]();let _0x4b6681=this[_0x41dd5b(0x2e0)]['textStyle'],_0x4bfe0d=Number[_0x41dd5b(0x490)](_0x4b6681==null?void 0x0:_0x4b6681['fontSize'])&&((_0x4b6681==null?void 0x0:_0x4b6681['fontSize'])??0x0)>0x0?_0x4b6681[_0x41dd5b(0x434)]:0x10,_0x3cdac2=X[_0x41dd5b(0x3dc)]/_0x12f6b8;return _0x4494b9[_0x41dd5b(0x3ef)]=(_0x4b6681==null?void 0x0:_0x4b6681[_0x41dd5b(0x25e)])??X[_0x41dd5b(0x427)],_0x4494b9[_0x41dd5b(0x4ae)]=sn(X[_0x41dd5b(0x203)],_0x4bfe0d,_0x12f6b8),_0x4494b9[_0x41dd5b(0x284)]=fn(_0x4b6681==null?void 0x0:_0x4b6681[_0x41dd5b(0x3d3)]),_0x4494b9['textBaseline']=_0x41dd5b(0x356),_0x4494b9['fillText']((_0x4b6681==null?void 0x0:_0x4b6681[_0x41dd5b(0x488)])||_0x251b5d,pn(_0x31b5ff,_0x2423bb,_0x4b6681==null?void 0x0:_0x4b6681['horizontalAlign'],_0x3cdac2),_0x3a9441+_0x2a35a7/0x2,Math['max'](0x1,_0x2423bb-_0x3cdac2*0x2)),_0x4494b9[_0x41dd5b(0x1a0)](),this[_0x41dd5b(0x32c)](!0x1),this;}[_0x4f3d14(0x3a0)](){const _0x5610a2=_0x4f3d14;let _0x267727=this[_0x5610a2(0x2e0)][_0x5610a2(0x472)],_0x14c92e=Number['isFinite'](this[_0x5610a2(0x2e0)]['zoomRatio'])&&(this[_0x5610a2(0x2e0)][_0x5610a2(0x1e9)]??0x0)>0x0?this[_0x5610a2(0x2e0)][_0x5610a2(0x1e9)]:0x1,_0x19d14f=X[_0x5610a2(0x39c)]/_0x14c92e;if(!_0x267727)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x3bf627=Q(_0x267727[_0x5610a2(0x445)],0x0),_0x4237b6=Q(_0x267727['top'],0x0),_0x539b78=Math['max'](0x1,Q(_0x267727[_0x5610a2(0x48c)],un())),_0x3cd2b5=Math[_0x5610a2(0x31c)](0x1,Q(_0x267727[_0x5610a2(0x36d)],dn())),_0xea9255=this[_0x5610a2(0x2e0)][_0x5610a2(0x3d1)],_0x41db8d=this[_0x5610a2(0x2e0)][_0x5610a2(0x2ab)],_0x5b558c=Q(_0xea9255==null?void 0x0:_0xea9255[_0x5610a2(0x445)],_0x3bf627),_0x1a0109=Q(_0xea9255==null?void 0x0:_0xea9255['top'],_0x4237b6),_0x34f5a7=Math['max'](0x1,Q(_0xea9255==null?void 0x0:_0xea9255[_0x5610a2(0x48c)],_0x539b78)),_0x1a4c73=Math[_0x5610a2(0x31c)](0x1,Q(_0xea9255==null?void 0x0:_0xea9255['height'],_0x3cd2b5));if(!_0x41db8d){let _0x1fb1e4=Math[_0x5610a2(0x246)](_0x3bf627,_0x5b558c)-_0x19d14f,_0x3f2094=Math['min'](_0x4237b6,_0x1a0109)-_0x19d14f,_0x326a12=Math['max'](_0x3bf627+_0x539b78,_0x5b558c+_0x34f5a7)+_0x19d14f,_0x2eb862=Math[_0x5610a2(0x31c)](_0x4237b6+_0x3cd2b5,_0x1a0109+_0x1a4c73)+_0x19d14f;return{'left':_0x1fb1e4,'top':_0x3f2094,'width':_0x326a12-_0x1fb1e4,'height':_0x2eb862-_0x3f2094};}let _0x26f659=Q(_0x41db8d[_0x5610a2(0x445)],_0x3bf627),_0x527d1a=Q(_0x41db8d[_0x5610a2(0x2e1)],_0x4237b6),_0x7c973c=Math['max'](0x1,Q(_0x41db8d[_0x5610a2(0x48c)],un())),_0x41da28=Math[_0x5610a2(0x31c)](0x1,Q(_0x41db8d[_0x5610a2(0x36d)],dn())),_0x2c0233=Math['min'](_0x3bf627,_0x26f659,_0x5b558c)-_0x19d14f,_0x2190e9=Math['min'](_0x4237b6,_0x527d1a,_0x1a0109)-_0x19d14f,_0x23fd88=Math['max'](_0x3bf627+_0x539b78,_0x26f659+_0x7c973c,_0x5b558c+_0x34f5a7)+_0x19d14f,_0xd6bed9=Math[_0x5610a2(0x31c)](_0x4237b6+_0x3cd2b5,_0x527d1a+_0x41da28,_0x1a0109+_0x1a4c73)+_0x19d14f;return{'left':_0x2c0233,'top':_0x2190e9,'width':_0x23fd88-_0x2c0233,'height':_0xd6bed9-_0x2190e9};}[_0x4f3d14(0x2cd)](_0x30e700,_0x8bf9d0){const _0x348b82=_0x4f3d14;var _0x38735f;let _0x266027=this['_state']['sourceBounds'];if(!_0x266027)return;let _0x2700fc=X[_0x348b82(0x39b)]/_0x8bf9d0,_0x1fdcb5=Q(_0x266027[_0x348b82(0x445)],0x0)-_0x2700fc,_0x2b6c70=Q(_0x266027[_0x348b82(0x2e1)],0x0)-_0x2700fc,_0x5e95e9=Math[_0x348b82(0x31c)](0x1,Q(_0x266027[_0x348b82(0x48c)],un()))+_0x2700fc*0x2,_0x145543=Math[_0x348b82(0x31c)](0x1,Q(_0x266027['height'],dn()))+_0x2700fc*0x2;_0x30e700['save'](),_0x30e700[_0x348b82(0x26c)]=0x1,_0x30e700[_0x348b82(0x37c)]=X[_0x348b82(0x26b)]/_0x8bf9d0,_0x30e700[_0x348b82(0x355)]=X[_0x348b82(0x44f)],_0x30e700[_0x348b82(0x3ef)]=X[_0x348b82(0x216)],(_0x38735f=_0x30e700['setLineDash'])==null||_0x38735f[_0x348b82(0x2a4)](_0x30e700,X[_0x348b82(0x37f)][_0x348b82(0x2c1)](_0x1fec45=>_0x1fec45/_0x8bf9d0)),Z(_0x30e700,_0x1fdcb5,_0x2b6c70,_0x5e95e9,_0x145543,X[_0x348b82(0x1ce)]),_0x30e700[_0x348b82(0x222)](),_0x30e700[_0x348b82(0x267)](),_0x30e700[_0x348b82(0x1a0)]();}['_drawConnectorPreview'](_0x354b59,_0x4b55fc,_0x35c9b2){const _0x4826af=_0x4f3d14;let _0x404186=this[_0x4826af(0x2e0)][_0x4826af(0x2ab)];if(!_0x404186)return;let _0x4e29f8=Q(_0x404186[_0x4826af(0x445)],0x0),_0x19aabb=Q(_0x404186[_0x4826af(0x2e1)],0x0),_0x2235b0=Math[_0x4826af(0x31c)](0x1,Q(_0x404186[_0x4826af(0x48c)],un())),_0x58a557=Math[_0x4826af(0x31c)](0x1,Q(_0x404186[_0x4826af(0x36d)],dn())),_0x152546=X[_0x4826af(0x2e6)],_0x1318d8=this[_0x4826af(0x2e0)][_0x4826af(0x350)]??_0x4826af(0x289);if(_0x354b59[_0x4826af(0x3de)](),_0x354b59[_0x4826af(0x26c)]=X[_0x4826af(0x42c)],_0x354b59[_0x4826af(0x355)]=X[_0x4826af(0x422)],_0x354b59[_0x4826af(0x37c)]=X[_0x4826af(0x26b)]/_0x35c9b2,_0x354b59['lineCap']=_0x4826af(0x28e),_0x354b59[_0x4826af(0x47a)]='round',_0x354b59[_0x4826af(0x2de)](),_0x1318d8===_0x4826af(0x2e1)||_0x1318d8===_0x4826af(0x449)){let _0x44158c=_0x4e29f8+_0x2235b0/0x2,_0x4c37e3=_0x4b55fc[_0x4826af(0x445)]+_0x4b55fc[_0x4826af(0x48c)]/0x2,_0xa7e077=_0x1318d8===_0x4826af(0x449)?_0x19aabb+_0x58a557:_0x19aabb,_0xa57878=_0x1318d8===_0x4826af(0x449)?_0x4b55fc[_0x4826af(0x2e1)]:_0x4b55fc['top']+_0x4b55fc[_0x4826af(0x36d)],_0x113e9c=_0x1318d8===_0x4826af(0x449)?Math[_0x4826af(0x246)](_0xa7e077+_0x152546,(_0xa7e077+_0xa57878)/0x2):Math[_0x4826af(0x31c)](_0xa7e077-_0x152546,(_0xa7e077+_0xa57878)/0x2);_0x354b59[_0x4826af(0x2a2)](_0x44158c,_0xa7e077),_0x354b59['lineTo'](_0x44158c,_0x113e9c),_0x354b59[_0x4826af(0x28d)](_0x4c37e3,_0x113e9c),_0x354b59['lineTo'](_0x4c37e3,_0xa57878);}else{let _0x47ab2f=_0x19aabb+_0x58a557/0x2,_0xa02693=_0x4b55fc[_0x4826af(0x2e1)]+_0x4b55fc[_0x4826af(0x36d)]/0x2,_0x273456=_0x1318d8===_0x4826af(0x289)?_0x4e29f8+_0x2235b0:_0x4e29f8,_0x33ec9f=_0x1318d8===_0x4826af(0x289)?_0x4b55fc[_0x4826af(0x445)]:_0x4b55fc[_0x4826af(0x445)]+_0x4b55fc[_0x4826af(0x48c)],_0x210c00=_0x1318d8===_0x4826af(0x289)?Math[_0x4826af(0x246)](_0x273456+_0x152546,(_0x273456+_0x33ec9f)/0x2):Math[_0x4826af(0x31c)](_0x273456-_0x152546,(_0x273456+_0x33ec9f)/0x2);_0x354b59[_0x4826af(0x2a2)](_0x273456,_0x47ab2f),_0x354b59[_0x4826af(0x28d)](_0x210c00,_0x47ab2f),_0x354b59[_0x4826af(0x28d)](_0x210c00,_0xa02693),_0x354b59[_0x4826af(0x28d)](_0x33ec9f,_0xa02693);}_0x354b59[_0x4826af(0x267)](),_0x354b59[_0x4826af(0x1a0)]();}};function hn(_0x52d8c4,_0x19c558){const _0x15dc11=_0x4f3d14;return(_0x19c558==null?void 0x0:_0x19c558[_0x52d8c4[_0x15dc11(0x3e9)]])??_0x52d8c4[_0x15dc11(0x1ca)]['transform'];}function gn(_0x508402,_0x9115a9){const _0x31b384=_0x4f3d14;let _0x50c97e=hn(_0x508402,_0x9115a9);return{'x':(_0x50c97e[_0x31b384(0x445)]??0x0)+(_0x50c97e[_0x31b384(0x48c)]??0x0)/0x2,'y':(_0x50c97e[_0x31b384(0x2e1)]??0x0)+(_0x50c97e[_0x31b384(0x36d)]??0x0)/0x2};}function _n(_0x3797dc,_0x3ad3ad){const _0x311932=_0x4f3d14;return Math[_0x311932(0x277)](_0x3797dc['x']-_0x3ad3ad['x'],_0x3797dc['y']-_0x3ad3ad['y']);}function vn(_0x57714c,_0x5b71c6){const _0x4f7b7e=_0x4f3d14;let _0x1d2aae=_0x57714c[_0x4f7b7e(0x445)]??0x0,_0xd38757=_0x57714c[_0x4f7b7e(0x2e1)]??0x0,_0x2f89fd=_0x1d2aae+(_0x57714c['width']??0x0),_0x37703f=_0xd38757+(_0x57714c[_0x4f7b7e(0x36d)]??0x0),_0x20feab=_0x5b71c6[_0x4f7b7e(0x445)]??0x0,_0x60c255=_0x5b71c6[_0x4f7b7e(0x2e1)]??0x0,_0x553c28=_0x20feab+(_0x5b71c6[_0x4f7b7e(0x48c)]??0x0),_0x42a308=_0x60c255+(_0x5b71c6[_0x4f7b7e(0x36d)]??0x0),_0xa406da=Math[_0x4f7b7e(0x31c)](_0x20feab-_0x2f89fd,_0x1d2aae-_0x553c28,0x0),_0x1aee14=Math[_0x4f7b7e(0x31c)](_0x60c255-_0x37703f,_0xd38757-_0x42a308,0x0);return Math[_0x4f7b7e(0x277)](_0xa406da,_0x1aee14);}function yn(_0x22f853,_0xd82b7d,_0x445a83){const _0x262281=_0x4f3d14;var _0x58aaf4;let _0xea3e19=_0x5585ba((_0x58aaf4=_0x22f853[_0xd82b7d])==null?void 0x0:_0x58aaf4[_0x262281(0x1ca)]);for(;_0xea3e19!=null&&_0xea3e19[_0x262281(0x29f)];){var _0x331e0f;if(_0xea3e19[_0x262281(0x29f)]===_0x445a83)return!0x0;_0xea3e19=_0x5585ba((_0x331e0f=_0x22f853[_0xea3e19[_0x262281(0x29f)]])==null?void 0x0:_0x331e0f[_0x262281(0x1ca)]);}return!0x1;}function bn(_0x1082b0,_0x460e7c,_0x413cbc){const _0x149b9b=_0x4f3d14;let _0x36cfff=hn(_0x1082b0,_0x413cbc),_0xdf1df8=_0x36cfff[_0x149b9b(0x2e1)]??0x0,_0x11332d=_0x36cfff[_0x149b9b(0x36d)]??0x0;return _0x11332d<=0x0?null:_0x460e7c['y']<=_0xdf1df8+_0x11332d/0x3?_0x149b9b(0x2ee):_0x460e7c['y']>=_0xdf1df8+_0x11332d*0x2/0x3?_0x149b9b(0x3e3):null;}function xn(_0x4bb481,_0x5518d0){const _0x3a5020=_0x4f3d14;let _0x37d66f=_0x5518d0==null?void 0x0:_0x5518d0[_0x4bb481];return Number[_0x3a5020(0x490)](_0x37d66f==null?void 0x0:_0x37d66f[_0x3a5020(0x445)])&&Number[_0x3a5020(0x490)](_0x37d66f==null?void 0x0:_0x37d66f[_0x3a5020(0x2e1)])?{'kind':_0x3a5020(0x197),'left':_0x37d66f[_0x3a5020(0x445)],'top':_0x37d66f['top']}:{'kind':_0x3a5020(0x197)};}function Sn(_0x444b0e,_0x3300a4,_0x395f47){const _0x5a8f38=_0x4f3d14;let _0x3c20d0=_0x444b0e[_0x3300a4],_0x14d546=_0x5585ba(_0x3c20d0==null?void 0x0:_0x3c20d0[_0x5a8f38(0x1ca)]);if(!_0x3c20d0||!_0x14d546||!_0x14d546[_0x5a8f38(0x29f)]&&!(_0x395f47!=null&&_0x395f47[_0x5a8f38(0x34e)]))return{'kind':'none'};let _0xf30ce7=_0x395f47==null?void 0x0:_0x395f47[_0x5a8f38(0x211)],_0x59959b=hn(_0x3c20d0,_0xf30ce7),_0x2d64e8=gn(_0x3c20d0,_0xf30ce7),_0x566a44=Object[_0x5a8f38(0x2df)](_0x444b0e)[_0x5a8f38(0x2c1)](_0x47276b=>{const _0x15b668=_0x5a8f38;let _0x857495=_0x5585ba(_0x47276b['element']);return!_0x857495||_0x47276b[_0x15b668(0x3e9)]===_0x3300a4||_0x47276b['elementId']===_0x14d546[_0x15b668(0x29f)]||_0x395f47!=null&&_0x395f47[_0x15b668(0x34e)]&&!_0x14d546[_0x15b668(0x29f)]&&_0x857495[_0x15b668(0x2ea)]===_0x14d546[_0x15b668(0x2ea)]||yn(_0x444b0e,_0x47276b[_0x15b668(0x3e9)],_0x3300a4)?null:{'item':_0x47276b,'snapDistance':vn(_0x59959b,hn(_0x47276b,_0xf30ce7)),'center':gn(_0x47276b,_0xf30ce7)};})[_0x5a8f38(0x43b)](_0x2349ae=>!!_0x2349ae)[_0x5a8f38(0x1aa)]((_0x5ac92f,_0x44d32e)=>_0x5ac92f[_0x5a8f38(0x1c6)]-_0x44d32e[_0x5a8f38(0x1c6)]||_n(_0x2d64e8,_0x5ac92f[_0x5a8f38(0x237)])-_n(_0x2d64e8,_0x44d32e[_0x5a8f38(0x237)]))[0x0];if(_0x566a44&&_0x566a44[_0x5a8f38(0x1c6)]<=0x64){let _0x312c93=_0x5585ba(_0x566a44[_0x5a8f38(0x252)][_0x5a8f38(0x1ca)]),_0x4641c8=_0x312c93!=null&&_0x312c93[_0x5a8f38(0x29f)]?bn(_0x566a44[_0x5a8f38(0x252)],_0x2d64e8,_0xf30ce7):null;return _0x312c93!=null&&_0x312c93[_0x5a8f38(0x29f)]&&_0x4641c8?{'kind':_0x5a8f38(0x3b0),'newParentNodeId':_0x312c93[_0x5a8f38(0x29f)],'side':_0x312c93[_0x5a8f38(0x350)]??'right','referenceNodeId':_0x566a44[_0x5a8f38(0x252)][_0x5a8f38(0x3e9)],'placement':_0x4641c8}:{'kind':_0x5a8f38(0x3b0),'newParentNodeId':_0x566a44[_0x5a8f38(0x252)][_0x5a8f38(0x3e9)],'side':_0x2d64e8['x']<_0x566a44['center']['x']?_0x5a8f38(0x445):_0x5a8f38(0x289)};}if(_0x395f47!=null&&_0x395f47[_0x5a8f38(0x23a)])return xn(_0x3300a4,_0xf30ce7);if(!_0x14d546[_0x5a8f38(0x29f)])return{'kind':_0x5a8f38(0x2a1)};let _0x18e422=_0x444b0e[_0x14d546[_0x5a8f38(0x29f)]];return _0x18e422&&_n(_0x2d64e8,gn(_0x18e422,_0xf30ce7))>0x230?xn(_0x3300a4,_0xf30ce7):{'kind':_0x5a8f38(0x2a1)};}function Cn(_0x3e4316,_0x2a4cfb){const _0xa301f5=_0x4f3d14;var _0x35a8df,_0x4e3e57;return _0x3e4316['elementId']===_0x2a4cfb||((_0x35a8df=_0x5585ba(_0x3e4316['element']))==null?void 0x0:_0x35a8df[_0xa301f5(0x2ea)])===_0x2a4cfb||((_0x4e3e57=_0x5dd284(_0x3e4316[_0xa301f5(0x1ca)]))==null?void 0x0:_0x4e3e57[_0xa301f5(0x2ea)])===_0x2a4cfb;}function wn(_0x1a0ee4,_0x3ff425,_0x386835,_0x5dec8c){const _0x5957b4=_0x4f3d14;let _0x3ca282=_0x1a0ee4[_0x3ff425];if(!_0x3ca282)return _0x1a0ee4;let _0x292f3e=_0x3ca282[_0x5957b4(0x330)]??_0x3ca282[_0x5957b4(0x1ca)][_0x5957b4(0x330)]??{};return{..._0x1a0ee4,[_0x3ff425]:{..._0x3ca282,'transform':{..._0x292f3e,'left':(_0x292f3e[_0x5957b4(0x445)]??0x0)+_0x386835,'top':(_0x292f3e[_0x5957b4(0x2e1)]??0x0)+_0x5dec8c},'element':{..._0x3ca282[_0x5957b4(0x1ca)],'transform':{..._0x3ca282[_0x5957b4(0x1ca)][_0x5957b4(0x330)],'left':(_0x3ca282[_0x5957b4(0x1ca)]['transform'][_0x5957b4(0x445)]??0x0)+_0x386835,'top':(_0x3ca282[_0x5957b4(0x1ca)][_0x5957b4(0x330)][_0x5957b4(0x2e1)]??0x0)+_0x5dec8c}}}};}function Tn(_0x125dfb){const _0xfe211f=_0x4f3d14;if(!Number[_0xfe211f(0x490)](_0x125dfb[_0xfe211f(0x1a1)]['left'])||!Number[_0xfe211f(0x490)](_0x125dfb[_0xfe211f(0x1a1)]['top'])||!Number['isFinite'](_0x125dfb[_0xfe211f(0x1d9)][_0xfe211f(0x445)])||!Number['isFinite'](_0x125dfb[_0xfe211f(0x1d9)][_0xfe211f(0x2e1)]))return null;let _0x63af4c=_0x125dfb['liveRootBounds'][_0xfe211f(0x445)]-_0x125dfb[_0xfe211f(0x1d9)][_0xfe211f(0x445)],_0x179fa7=_0x125dfb[_0xfe211f(0x1a1)][_0xfe211f(0x2e1)]-_0x125dfb[_0xfe211f(0x1d9)][_0xfe211f(0x2e1)],_0x5957a1=wn(_0x125dfb['elementData'],_0x125dfb['scopeId'],_0x63af4c,_0x179fa7),_0x85364d=[];return Object[_0xfe211f(0x2df)](_0x5957a1)['forEach'](_0x91cbb7=>{const _0x4adf04=_0xfe211f;if(_0x91cbb7[_0x4adf04(0x3e9)]===_0x125dfb[_0x4adf04(0x380)]||_0x91cbb7[_0x4adf04(0x3e9)]===_0x125dfb[_0x4adf04(0x3a9)]||!Cn(_0x91cbb7,_0x125dfb[_0x4adf04(0x3a9)]))return;if(_0x4adf04(0x37d)in _0x91cbb7['element']){var _0x25ead6;let _0x208132=(_0x25ead6=_0x125dfb[_0x4adf04(0x241)][_0x91cbb7[_0x4adf04(0x3e9)]])==null?void 0x0:_0x25ead6[_0x4adf04(0x1ca)];_0x208132&&_0x4adf04(0x37d)in _0x208132&&_0x85364d[_0x4adf04(0x3ee)]({'kind':_0x4adf04(0x382),'elementId':_0x91cbb7[_0x4adf04(0x3e9)],'element':_0x4d906e(_0x208132,{'x':_0x63af4c,'y':_0x179fa7})});return;}let _0x5f001b=_0x25dbfe(_0x5957a1,_0x91cbb7['elementId']);_0x5f001b&&_0x85364d[_0x4adf04(0x3ee)]({'kind':_0x4adf04(0x19a),'elementId':_0x91cbb7[_0x4adf04(0x3e9)],'bounds':_0x5f001b});}),{'deltaX':_0x63af4c,'deltaY':_0x179fa7,'elementData':_0x5957a1,'items':_0x85364d};}let En=class extends _0x41f8e5{constructor(_0x3e6834,_0x2aaf7a,_0x14841e,_0x44fd32,_0x4f262a,_0xb3f954,_0x23504d){const _0xfb9b29=_0x4f3d14;super(),this['_renderContext']=_0x3e6834,this[_0xfb9b29(0x3dd)]=_0x2aaf7a,this[_0xfb9b29(0x1a3)]=_0x14841e,this[_0xfb9b29(0x32f)]=_0x44fd32,this[_0xfb9b29(0x322)]=_0x4f262a,this['_instanceService']=_0xb3f954,this['_undoRedoGroupService']=_0x23504d,K(this,'_dragStart',null),K(this,_0xfb9b29(0x40a),null),K(this,_0xfb9b29(0x34b),null),K(this,_0xfb9b29(0x1c5),!0x1),K(this,_0xfb9b29(0x357),null),K(this,_0xfb9b29(0x40c),null),K(this,'_attachObjectPointerScheduled',!0x1),K(this,_0xfb9b29(0x24e),null),K(this,_0xfb9b29(0x30b),!0x1),this[_0xfb9b29(0x45b)]();}[_0x4f3d14(0x45b)](){const _0x1941ad=_0x4f3d14;var _0x42b654,_0x554275,_0x345db3,_0x1ab1bd,_0x22c3ff;let _0x59cde7=this[_0x1941ad(0x414)]['scene'][_0x1941ad(0x1dc)]();this[_0x1941ad(0x44d)](_0x122c68(_0x59cde7['changeStart$'][_0x1941ad(0x46c)](_0x41cd5b(this[_0x1941ad(0x494)]))[_0x1941ad(0x345)](()=>{const _0x3ecd97=_0x1941ad;this[_0x3ecd97(0x440)]();}))),this[_0x1941ad(0x44d)](_0x122c68(((_0x42b654=_0x59cde7[_0x1941ad(0x299)])==null?void 0x0:_0x42b654['pipe'](_0x41cd5b(this['dispose$']))[_0x1941ad(0x345)](_0xb7a050=>{const _0x58f094=_0x1941ad;this['_syncDragPreview'](_0xb7a050==null?void 0x0:_0xb7a050[_0x58f094(0x365)]);}))??{'dispose':()=>{}})),this['disposeWithMe'](_0x122c68(_0x59cde7[_0x1941ad(0x34d)][_0x1941ad(0x46c)](_0x41cd5b(this['dispose$']))['subscribe'](_0x31102c=>{const _0x300eac=_0x1941ad;setTimeout(()=>this[_0x300eac(0x424)](_0x31102c==null?void 0x0:_0x31102c[_0x300eac(0x365)]),0x0);}))),this[_0x1941ad(0x44d)](_0x122c68(((_0x554275=this[_0x1941ad(0x414)]['scene'][_0x1941ad(0x210)])==null?void 0x0:_0x554275[_0x1941ad(0x474)]({'priority':0x3,'next':([_0x43d5b3])=>this['_capturePointerChildDragStart'](_0x43d5b3)}))??{'dispose':()=>{}})),this[_0x1941ad(0x44d)](_0x122c68(((_0x345db3=this[_0x1941ad(0x414)][_0x1941ad(0x48b)][_0x1941ad(0x450)])==null?void 0x0:_0x345db3[_0x1941ad(0x474)]({'priority':0x3,'next':([_0x2b81a2,_0x3685b4])=>this[_0x1941ad(0x2d5)](_0x2b81a2,_0x3685b4)}))??{'dispose':()=>{}})),this[_0x1941ad(0x44d)](_0x122c68(((_0x1ab1bd=this['_renderContext']['scene'][_0x1941ad(0x376)])==null?void 0x0:_0x1ab1bd[_0x1941ad(0x474)]({'priority':0x3,'next':([_0x281d8d,_0x78f7cc])=>this['_applyPointerChildDrag'](_0x281d8d,_0x78f7cc)}))??{'dispose':()=>{}})),this['disposeWithMe'](_0x122c68(((_0x22c3ff=this[_0x1941ad(0x414)][_0x1941ad(0x48b)][_0x1941ad(0x3cc)])==null?void 0x0:_0x22c3ff[_0x1941ad(0x474)]({'priority':0x3,'next':([,_0x3f495c])=>this[_0x1941ad(0x392)](_0x3f495c)}))??{'dispose':()=>{}})),this[_0x1941ad(0x44d)](_0x122c68(()=>{const _0x982256=_0x1941ad;var _0x4eec26;return(_0x4eec26=this[_0x982256(0x40c)])==null?void 0x0:_0x4eec26['dispose']();})),this['disposeWithMe'](_0x122c68(()=>this[_0x1941ad(0x49e)]())),this['_subscribeElementDataChanges'](),this[_0x1941ad(0x32b)](),this[_0x1941ad(0x44d)](_0x122c68(()=>this[_0x1941ad(0x2f1)]()));}['_subscribeElementDataChanges'](){const _0x3db070=_0x4f3d14;[this[_0x3db070(0x3dd)][_0x3db070(0x3d9)],this[_0x3db070(0x3dd)][_0x3db070(0x283)],this[_0x3db070(0x3dd)][_0x3db070(0x228)]]['forEach'](_0xb79504=>{const _0x11f14c=_0x3db070;this[_0x11f14c(0x44d)](_0x122c68(_0xb79504[_0x11f14c(0x46c)](_0x41cd5b(this[_0x11f14c(0x494)]))['subscribe'](()=>{const _0x22d004=_0x11f14c;this[_0x22d004(0x32b)]();})));}),this[_0x3db070(0x1a3)][_0x3db070(0x475)]&&this[_0x3db070(0x44d)](_0x122c68(this[_0x3db070(0x1a3)][_0x3db070(0x475)][_0x3db070(0x46c)](_0x41cd5b(this['dispose$']))[_0x3db070(0x345)](()=>{this['_scheduleAttachObjectPointerListeners']();})));}[_0x4f3d14(0x32b)](){const _0x32039c=_0x4f3d14;this[_0x32039c(0x1f3)]||(this[_0x32039c(0x1f3)]=!0x0,Promise[_0x32039c(0x1ec)]()[_0x32039c(0x193)](()=>this[_0x32039c(0x3c4)]()));}['_attachObjectPointerListeners'](){const _0x5339a8=_0x4f3d14;var _0x4438dc;this[_0x5339a8(0x1f3)]=!0x1;let _0x23c48a=this[_0x5339a8(0x2da)](),_0x1ede85=this[_0x5339a8(0x414)]['scene'];if(!_0x23c48a||typeof _0x1ede85[_0x5339a8(0x3b7)]!=_0x5339a8(0x2b8))return;let _0x6fe492=this['_boardElementService'][_0x5339a8(0x198)](_0x23c48a['unitId'],_0x23c48a['subUnitId']),_0x8ca680=new _0x3fd367();(_0x4438dc=this[_0x5339a8(0x40c)])==null||_0x4438dc['dispose'](),this[_0x5339a8(0x40c)]=_0x8ca680,Object[_0x5339a8(0x2df)](_0x6fe492)[_0x5339a8(0x2d1)](_0x4597f4=>{const _0xd82527=_0x5339a8;var _0x31ec87,_0x403544;let _0x1f8f8c=_0x5585ba(_0x4597f4[_0xd82527(0x1ca)]);if(!(_0x1f8f8c!=null&&_0x1f8f8c['parentNodeId']))return;let _0x2f4cdb=_0x55b3e2(_0x23c48a[_0xd82527(0x291)],_0x4597f4[_0xd82527(0x3e9)]),_0x42b42a=((_0x31ec87=_0x1ede85[_0xd82527(0x484)])==null?void 0x0:_0x31ec87[_0xd82527(0x2a4)](_0x1ede85,_0x2f4cdb))??((_0x403544=_0x1ede85[_0xd82527(0x3b7)])==null?void 0x0:_0x403544[_0xd82527(0x2a4)](_0x1ede85,_0x2f4cdb));_0x42b42a!=null&&_0x42b42a[_0xd82527(0x210)]&&_0x8ca680['add'](_0x42b42a[_0xd82527(0x210)][_0xd82527(0x474)]({'priority':-0xa,'next':([_0x417069,_0x12efdc])=>this[_0xd82527(0x24f)](_0x417069,{'unitId':_0x23c48a[_0xd82527(0x291)],'subUnitId':_0x23c48a[_0xd82527(0x20a)],'nodeId':_0x4597f4['elementId']},_0x12efdc)}));});}['_resolveCurrentBoardContext'](){const _0x5eb5d1=_0x4f3d14;let _0x16530b=this['_elementStateService']['getSnapshot']()[_0x5eb5d1(0x3ac)];if(_0x16530b)return _0x16530b;let _0x451e5f=this[_0x5eb5d1(0x414)][_0x5eb5d1(0x291)],_0x2c96de=_0x451e5f?this[_0x5eb5d1(0x39d)][_0x5eb5d1(0x236)](_0x451e5f,_0x8b4a1a[_0x5eb5d1(0x35b)]):null,_0xe260e0=_0x2c96de==null?void 0x0:_0x2c96de['getActivePageId']();return!_0x2c96de||!_0xe260e0?null:{'unitId':_0x2c96de[_0x5eb5d1(0x352)](),'subUnitId':_0xe260e0};}['_captureDragStart'](){const _0x4f640f=_0x4f3d14;let _0xa1bcf3=this[_0x4f640f(0x1a3)][_0x4f640f(0x310)]();this[_0x4f640f(0x1c5)]=!0x1,this['_childDragSelectionHidden']=!0x1,this['_lastChildDragAction']=null;let _0x4bb258=_0xa1bcf3[_0x4f640f(0x3ac)],_0xfa0057=_0xa1bcf3[_0x4f640f(0x206)]??_0xa1bcf3[_0x4f640f(0x375)][0x0];if(!_0x4bb258||!_0xfa0057){this[_0x4f640f(0x469)]=null,this[_0x4f640f(0x2f1)]();return;}let _0x1a519d=this[_0x4f640f(0x3dd)]['getElementData'](_0x4bb258[_0x4f640f(0x291)],_0x4bb258['subUnitId']);if(_0xa1bcf3[_0x4f640f(0x375)][_0x4f640f(0x452)]>0x1){let _0x155d49=this[_0x4f640f(0x2f2)](_0x1a519d,_0xa1bcf3[_0x4f640f(0x375)]);if(!_0x155d49){this[_0x4f640f(0x469)]=null,this[_0x4f640f(0x2f1)]();return;}let _0x3094cd=_0x1a519d[_0x155d49[_0x4f640f(0x380)]],_0x5e99f7=_0x25dbfe(_0x1a519d,_0x155d49[_0x4f640f(0x380)]),_0x563a17=_0x3094cd['element'][_0x4f640f(0x330)];this[_0x4f640f(0x469)]={'kind':'scope','unitId':_0x4bb258[_0x4f640f(0x291)],'subUnitId':_0x4bb258[_0x4f640f(0x20a)],'nodeId':_0x155d49[_0x4f640f(0x380)],'scopeId':_0x155d49['scopeId'],'left':(_0x5e99f7==null?void 0x0:_0x5e99f7[_0x4f640f(0x445)])??_0x563a17[_0x4f640f(0x445)]??0x0,'top':(_0x5e99f7==null?void 0x0:_0x5e99f7[_0x4f640f(0x2e1)])??_0x563a17[_0x4f640f(0x2e1)]??0x0,'width':(_0x5e99f7==null?void 0x0:_0x5e99f7[_0x4f640f(0x48c)])??_0x563a17[_0x4f640f(0x48c)]??0x0,'height':(_0x5e99f7==null?void 0x0:_0x5e99f7['height'])??_0x563a17[_0x4f640f(0x36d)]??0x0,'elementData':_0x1a519d};return;}let _0x1547ff=_0x1a519d[_0xfa0057],_0x2c566b=_0x5585ba(_0x1547ff==null?void 0x0:_0x1547ff[_0x4f640f(0x1ca)]);if(!_0x1547ff||!_0x2c566b){this[_0x4f640f(0x469)]=null,this[_0x4f640f(0x2f1)]();return;}let _0x5ee728=_0x25dbfe(_0x1a519d,_0xfa0057),_0x340336=_0x1547ff[_0x4f640f(0x1ca)][_0x4f640f(0x330)];this[_0x4f640f(0x469)]={'kind':_0x2c566b[_0x4f640f(0x29f)]===null?'root':'child','unitId':_0x4bb258['unitId'],'subUnitId':_0x4bb258[_0x4f640f(0x20a)],'nodeId':_0xfa0057,'scopeId':_0x2c566b[_0x4f640f(0x2ea)],'left':(_0x5ee728==null?void 0x0:_0x5ee728[_0x4f640f(0x445)])??_0x340336[_0x4f640f(0x445)]??0x0,'top':(_0x5ee728==null?void 0x0:_0x5ee728['top'])??_0x340336[_0x4f640f(0x2e1)]??0x0,'width':(_0x5ee728==null?void 0x0:_0x5ee728[_0x4f640f(0x48c)])??_0x340336[_0x4f640f(0x48c)]??0x0,'height':(_0x5ee728==null?void 0x0:_0x5ee728[_0x4f640f(0x36d)])??_0x340336[_0x4f640f(0x36d)]??0x0,'elementData':_0x1a519d};}['_resolveCompleteSelectedScope'](_0x3009c5,_0x20d966){const _0x4f7734=_0x4f3d14;let _0x2c5724=new Set(_0x20d966),_0x2bd150=_0x20d966[_0x4f7734(0x2c1)](_0x28554c=>{const _0x7285e1=_0x4f7734;var _0xc27231,_0x50dde7,_0x4c4668,_0x2d0f5f;let _0x2a998c=(_0xc27231=_0x3009c5[_0x28554c])==null?void 0x0:_0xc27231[_0x7285e1(0x1ca)];return((_0x50dde7=_0x5585ba(_0x2a998c))==null?void 0x0:_0x50dde7['structureScopeId'])??((_0x4c4668=_0x5dd284(_0x2a998c))==null?void 0x0:_0x4c4668[_0x7285e1(0x2ea)])??((_0x2d0f5f=_0x487e3a(_0x2a998c))==null?void 0x0:_0x2d0f5f[_0x7285e1(0x2ea)])??null;});if(_0x2bd150[_0x4f7734(0x4a2)](_0x41d60c=>_0x41d60c===null)||new Set(_0x2bd150)['size']!==0x1)return null;let _0x157c22=_0x2bd150[0x0];if(!_0x157c22)return null;let _0x72db05=Object['values'](_0x3009c5)['filter'](_0x16d370=>{const _0x5eb831=_0x4f7734;var _0x336e1e;return _0x16d370['element'][_0x5eb831(0x418)]!==!0x1&&((_0x336e1e=_0x5585ba(_0x16d370[_0x5eb831(0x1ca)]))==null?void 0x0:_0x336e1e[_0x5eb831(0x2ea)])===_0x157c22;});if(_0x72db05[_0x4f7734(0x452)]===0x0||_0x72db05['some'](_0x3f090f=>!_0x2c5724[_0x4f7734(0x290)](_0x3f090f[_0x4f7734(0x3e9)])))return null;let _0x55aeb7=_0x72db05[_0x4f7734(0x43b)](_0x514e61=>{const _0x2dd914=_0x4f7734;var _0x5b17ea;return((_0x5b17ea=_0x5585ba(_0x514e61[_0x2dd914(0x1ca)]))==null?void 0x0:_0x5b17ea[_0x2dd914(0x29f)])===null;});return _0x55aeb7[_0x4f7734(0x452)]===0x1?{'rootNodeId':_0x55aeb7[0x0][_0x4f7734(0x3e9)],'scopeId':_0x157c22}:null;}[_0x4f3d14(0x24f)](_0x5888dc,_0x153c0b,_0x559f65){const _0x4722cd=_0x4f3d14;var _0x4b0056,_0x44b323,_0x3a0c9f,_0x49f605,_0x442916;if(this[_0x4722cd(0x322)][_0x4722cd(0x25b)]()[_0x4722cd(0x447)]==='viewing'||(_0x5888dc[_0x4722cd(0x26f)]??0x0)!==0x0)return;let _0x283168=this['_elementStateService'][_0x4722cd(0x310)]();if(_0x283168[_0x4722cd(0x483)]){this[_0x4722cd(0x40a)]=null;return;}let _0x33a504=_0x153c0b?{'unitId':_0x153c0b['unitId'],'subUnitId':_0x153c0b[_0x4722cd(0x20a)]}:_0x283168[_0x4722cd(0x3ac)]??this['_resolveCurrentBoardContext'](),_0x4fff91=(_0x153c0b==null?void 0x0:_0x153c0b[_0x4722cd(0x3f9)])??(_0x283168[_0x4722cd(0x375)][_0x4722cd(0x452)]===0x1?_0x283168[_0x4722cd(0x206)]??_0x283168[_0x4722cd(0x375)][0x0]:void 0x0);if(!_0x33a504){this[_0x4722cd(0x40a)]=null;return;}let _0x13299f=this[_0x4722cd(0x3dd)][_0x4722cd(0x198)](_0x33a504[_0x4722cd(0x291)],_0x33a504[_0x4722cd(0x20a)]),_0x2eefe=this[_0x4722cd(0x446)](_0x5888dc);if(!_0x153c0b){let _0x2d36dc=_0x4fff91?_0x13299f[_0x4fff91]:null,_0x59d303=_0x5585ba(_0x2d36dc==null?void 0x0:_0x2d36dc[_0x4722cd(0x1ca)]),_0x442560=_0x4fff91?_0x25dbfe(_0x13299f,_0x4fff91)??(_0x2d36dc==null?void 0x0:_0x2d36dc[_0x4722cd(0x1ca)][_0x4722cd(0x330)]):null;(!(_0x59d303!=null&&_0x59d303[_0x4722cd(0x29f)])||!_0x442560||!this[_0x4722cd(0x33e)](_0x2eefe,{'left':_0x442560[_0x4722cd(0x445)]??0x0,'top':_0x442560['top']??0x0,'width':_0x442560[_0x4722cd(0x48c)]??0x0,'height':_0x442560['height']??0x0}))&&(_0x4fff91=this[_0x4722cd(0x3d6)](_0x13299f,_0x2eefe));}if(!_0x4fff91){this[_0x4722cd(0x40a)]=null;return;}let _0x4c5f14=_0x13299f[_0x4fff91],_0x529501=_0x5585ba(_0x4c5f14==null?void 0x0:_0x4c5f14[_0x4722cd(0x1ca)]);if(!_0x4c5f14||!(_0x529501!=null&&_0x529501[_0x4722cd(0x29f)])){this['_pointerDragStart']=null;return;}this[_0x4722cd(0x39d)]['focusUnit'](_0x33a504[_0x4722cd(0x291)]),(_0x4b0056=this[_0x4722cd(0x414)][_0x4722cd(0x3f4)])==null||(_0x44b323=_0x4b0056['getCanvasElement'])==null||(_0x44b323=_0x44b323[_0x4722cd(0x2a4)](_0x4b0056))==null||(_0x3a0c9f=_0x44b323[_0x4722cd(0x3b6)])==null||_0x3a0c9f[_0x4722cd(0x2a4)](_0x44b323,{'preventScroll':!0x0}),(_0x49f605=(_0x442916=this[_0x4722cd(0x1a3)])['selectElements'])==null||_0x49f605[_0x4722cd(0x2a4)](_0x442916,_0x33a504,[_0x4fff91],_0x4fff91),_0x559f65==null||_0x559f65[_0x4722cd(0x1de)]();let _0x4c4b69=_0x25dbfe(_0x13299f,_0x4fff91),_0x59769e=_0x4c5f14[_0x4722cd(0x1ca)]['transform'],_0xf9eda4={'left':(_0x4c4b69==null?void 0x0:_0x4c4b69[_0x4722cd(0x445)])??_0x59769e['left']??0x0,'top':(_0x4c4b69==null?void 0x0:_0x4c4b69[_0x4722cd(0x2e1)])??_0x59769e[_0x4722cd(0x2e1)]??0x0,'width':(_0x4c4b69==null?void 0x0:_0x4c4b69[_0x4722cd(0x48c)])??_0x59769e[_0x4722cd(0x48c)]??0x0,'height':(_0x4c4b69==null?void 0x0:_0x4c4b69['height'])??_0x59769e[_0x4722cd(0x36d)]??0x0};if(!_0x153c0b&&!this['_isPointInBounds'](_0x2eefe,_0xf9eda4)){this[_0x4722cd(0x40a)]=null;return;}let _0xb815cd=this[_0x4722cd(0x1e1)](_0x5888dc);this['_childDragActivated']=!0x1,this[_0x4722cd(0x30b)]=!0x1,this['_lastChildDragAction']=null,this[_0x4722cd(0x40a)]={'kind':_0x4722cd(0x306),'unitId':_0x33a504['unitId'],'subUnitId':_0x33a504['subUnitId'],'nodeId':_0x4fff91,'scopeId':_0x529501[_0x4722cd(0x2ea)],..._0xf9eda4,'pointerStartX':_0xb815cd['x'],'pointerStartY':_0xb815cd['y'],'elementData':_0x13299f},this[_0x4722cd(0x438)](),this[_0x4722cd(0x38e)](_0x5888dc,_0x559f65);}[_0x4f3d14(0x2d5)](_0x1a3cbd,_0x131c7f){const _0x49a26d=_0x4f3d14;var _0x37e782,_0x2643d8;let _0xd935=this[_0x49a26d(0x40a)];if(!_0xd935||_0x1a3cbd[_0x49a26d(0x242)]!==void 0x0&&_0x1a3cbd['buttons']!==0x1)return;let _0x5d1d25=this[_0x49a26d(0x461)](_0x1a3cbd,_0xd935);if(!this[_0x49a26d(0x465)](_0xd935,_0x5d1d25))return;this[_0x49a26d(0x1c5)]||this[_0x49a26d(0x332)](),this[_0x49a26d(0x1c5)]=!0x0;let _0x5aaa2e=this[_0x49a26d(0x460)](_0xd935[_0x49a26d(0x241)],_0xd935[_0x49a26d(0x3f9)],_0x5d1d25),_0x1a6e9a=Sn(_0xd935[_0x49a26d(0x241)],_0xd935['nodeId'],{'boundsByElementId':_0x5aaa2e,'detachWhenNoSnap':!0x0});this[_0x49a26d(0x357)]=_0x1a6e9a,this['_syncChildDragPreviewObject'](_0x5d1d25,_0x1a6e9a,_0x5aaa2e),this[_0x49a26d(0x38e)](_0x1a3cbd,_0x131c7f),this[_0x49a26d(0x414)][_0x49a26d(0x48b)][_0x49a26d(0x32c)](!0x0),(_0x37e782=(_0x2643d8=this[_0x49a26d(0x414)][_0x49a26d(0x48b)])[_0x49a26d(0x1cf)])==null||_0x37e782['call'](_0x2643d8);}[_0x4f3d14(0x453)](_0x3aabbe,_0x5c0164){const _0x333da1=_0x4f3d14;let _0x1540ba=this['_pointerDragStart'];if(!_0x1540ba)return;if(this[_0x333da1(0x40a)]=null,this[_0x333da1(0x49e)](),this[_0x333da1(0x2f1)](),!this['_childDragActivated']){this['_lastChildDragAction']=null;return;}let _0x3c59e6=this[_0x333da1(0x3dd)][_0x333da1(0x198)](_0x1540ba[_0x333da1(0x291)],_0x1540ba[_0x333da1(0x20a)]),_0x47092c=this[_0x333da1(0x461)](_0x3aabbe,_0x1540ba),_0x50c714=this[_0x333da1(0x460)](_0x3c59e6,_0x1540ba[_0x333da1(0x3f9)],_0x47092c),_0xb9f5fe=Sn(_0x3c59e6,_0x1540ba[_0x333da1(0x3f9)],{'boundsByElementId':_0x50c714,'detachWhenNoSnap':!0x0});this['_lastChildDragAction']=null,this[_0x333da1(0x1b7)](_0x1540ba[_0x333da1(0x291)],_0x1540ba[_0x333da1(0x20a)],_0x1540ba[_0x333da1(0x3f9)],_0x3c59e6,_0xb9f5fe),this[_0x333da1(0x30b)]=!0x1,this['_consumePointerEvent'](_0x3aabbe,_0x5c0164);}[_0x4f3d14(0x392)](_0x12ebb4){const _0x5720d4=_0x4f3d14;let _0x258b7a=this[_0x5720d4(0x40a)];if(_0x258b7a){if(this[_0x5720d4(0x40a)]=null,this[_0x5720d4(0x49e)](),this[_0x5720d4(0x1c5)]=!0x1,this[_0x5720d4(0x357)]=null,this[_0x5720d4(0x2f1)](),this['_childDragSelectionHidden']){var _0x27ed2e,_0x3da45e;(_0x27ed2e=(_0x3da45e=this['_elementStateService'])[_0x5720d4(0x42b)])==null||_0x27ed2e[_0x5720d4(0x2a4)](_0x3da45e,{'unitId':_0x258b7a['unitId'],'subUnitId':_0x258b7a['subUnitId']},[_0x258b7a[_0x5720d4(0x3f9)]],_0x258b7a['nodeId']),this['_childDragSelectionHidden']=!0x1;}_0x12ebb4==null||_0x12ebb4['stopPropagation']();}}[_0x4f3d14(0x438)](){const _0x910d42=_0x4f3d14;this['_disposeActivePointerDragListeners']();let _0x293363=typeof window>'u'?null:window;if(!(_0x293363!=null&&_0x293363[_0x910d42(0x248)]))return;let _0x2582b2=new _0x3fd367(),_0x40b053=_0x3ee041=>this[_0x910d42(0x2d5)](_0x3ee041),_0x39f9c0=_0x93f06a=>this['_applyPointerChildDrag'](_0x93f06a),_0x502842=()=>this[_0x910d42(0x392)]();_0x293363['addEventListener'](_0x910d42(0x225),_0x40b053,{'capture':!0x0}),_0x293363['addEventListener'](_0x910d42(0x302),_0x39f9c0,{'capture':!0x0}),_0x293363[_0x910d42(0x248)]('pointercancel',_0x502842,{'capture':!0x0}),_0x2582b2[_0x910d42(0x45d)](_0x122c68(()=>{const _0x30da24=_0x910d42;_0x293363[_0x30da24(0x48d)](_0x30da24(0x225),_0x40b053,{'capture':!0x0}),_0x293363[_0x30da24(0x48d)](_0x30da24(0x302),_0x39f9c0,{'capture':!0x0}),_0x293363[_0x30da24(0x48d)](_0x30da24(0x2b7),_0x502842,{'capture':!0x0});})),this['_activePointerDragDisposables']=_0x2582b2;}[_0x4f3d14(0x3d6)](_0x1e5e69,_0x44c593){const _0x54add4=_0x4f3d14;let _0xb321d3=Object['values'](_0x1e5e69);for(let _0x31e7b6=_0xb321d3[_0x54add4(0x452)]-0x1;_0x31e7b6>=0x0;--_0x31e7b6){let _0xbb616f=_0xb321d3[_0x31e7b6],_0x47db50=_0x5585ba(_0xbb616f[_0x54add4(0x1ca)]);if(!(_0x47db50!=null&&_0x47db50[_0x54add4(0x29f)]))continue;let _0x1b5de8=_0x25dbfe(_0x1e5e69,_0xbb616f[_0x54add4(0x3e9)])??_0xbb616f['element'][_0x54add4(0x330)];if(this['_isPointInBounds'](_0x44c593,{'left':_0x1b5de8[_0x54add4(0x445)]??0x0,'top':_0x1b5de8[_0x54add4(0x2e1)]??0x0,'width':_0x1b5de8['width']??0x0,'height':_0x1b5de8[_0x54add4(0x36d)]??0x0}))return _0xbb616f[_0x54add4(0x3e9)];}}[_0x4f3d14(0x49e)](){const _0x9e7c2=_0x4f3d14;var _0x5e0ab5;(_0x5e0ab5=this[_0x9e7c2(0x24e)])==null||_0x5e0ab5[_0x9e7c2(0x45e)](),this[_0x9e7c2(0x24e)]=null;}[_0x4f3d14(0x42f)](_0x40c494){const _0x52e5e2=_0x4f3d14;let _0x319212=this[_0x52e5e2(0x469)];_0x319212&&((_0x319212['kind']===_0x52e5e2(0x1d6)||_0x319212[_0x52e5e2(0x315)]==='scope')&&this['_syncRootScopePreview'](_0x40c494),_0x319212[_0x52e5e2(0x315)]===_0x52e5e2(0x1d6)?this['_syncRootReparentPreview'](_0x40c494):this[_0x52e5e2(0x23e)](_0x40c494));}[_0x4f3d14(0x404)](_0x5c2763){const _0x454ef5=_0x4f3d14;let _0x154faa=this[_0x454ef5(0x469)];if(!_0x154faa||_0x154faa['kind']!==_0x454ef5(0x1d6)&&_0x154faa[_0x454ef5(0x315)]!==_0x454ef5(0x30a))return;let _0x3f69ee=_0x5c2763==null?void 0x0:_0x5c2763[_0x454ef5(0x47f)](_0x55b3e2(_0x154faa[_0x454ef5(0x291)],_0x154faa[_0x454ef5(0x3f9)]));if(!_0x3f69ee||!Number[_0x454ef5(0x490)](_0x3f69ee[_0x454ef5(0x445)])||!Number[_0x454ef5(0x490)](_0x3f69ee['top']))return;let _0x511013=Tn({'elementData':_0x154faa[_0x454ef5(0x241)],'rootNodeId':_0x154faa[_0x454ef5(0x3f9)],'scopeId':_0x154faa[_0x454ef5(0x3a9)],'rootStartBounds':{'left':_0x154faa[_0x454ef5(0x445)],'top':_0x154faa[_0x454ef5(0x2e1)]},'liveRootBounds':{'left':_0x3f69ee[_0x454ef5(0x445)],'top':_0x3f69ee[_0x454ef5(0x2e1)]}});if(!_0x511013)return;let _0x37e164=this[_0x454ef5(0x414)][_0x454ef5(0x48b)],_0x4996ae=_0x37e164,_0x45f68e=!0x1;_0x511013[_0x454ef5(0x2ef)][_0x454ef5(0x2d1)](_0x5ae759=>{const _0x1d7b80=_0x454ef5;var _0x1fbb5e;let _0x22e391=_0x55b3e2(_0x154faa[_0x1d7b80(0x291)],_0x5ae759[_0x1d7b80(0x3e9)]),_0x2932be=((_0x1fbb5e=_0x4996ae[_0x1d7b80(0x484)])==null?void 0x0:_0x1fbb5e[_0x1d7b80(0x2a4)](_0x4996ae,_0x22e391))??_0x37e164[_0x1d7b80(0x3b7)](_0x22e391);_0x2932be&&(_0x5ae759[_0x1d7b80(0x315)]==='connector'&&typeof _0x2932be[_0x1d7b80(0x33b)]=='function'?(_0x2932be[_0x1d7b80(0x33b)](_0x5ae759[_0x1d7b80(0x1ca)],_0x511013['elementData']),_0x45f68e=!0x0):_0x5ae759[_0x1d7b80(0x315)]===_0x1d7b80(0x19a)&&(_0x2932be[_0x1d7b80(0x3be)](_0x5ae759[_0x1d7b80(0x19a)]),typeof _0x2932be[_0x1d7b80(0x2c8)]==_0x1d7b80(0x2b8)?_0x2932be[_0x1d7b80(0x2c8)](!0x0):_0x2932be[_0x1d7b80(0x32c)](!0x0),_0x45f68e=!0x0));}),_0x45f68e&&_0x37e164[_0x454ef5(0x32c)](!0x0);}[_0x4f3d14(0x3c8)](_0x3523aa){const _0x8fca15=_0x4f3d14;var _0x445392,_0x5d547f;let _0x55359e=this['_dragStart'];if(!_0x55359e||_0x55359e[_0x8fca15(0x315)]!=='root')return;let _0xde8f29=_0x3523aa==null?void 0x0:_0x3523aa[_0x8fca15(0x47f)](_0x55b3e2(_0x55359e[_0x8fca15(0x291)],_0x55359e[_0x8fca15(0x3f9)]));if(!_0xde8f29||!Number[_0x8fca15(0x490)](_0xde8f29[_0x8fca15(0x445)])||!Number[_0x8fca15(0x490)](_0xde8f29[_0x8fca15(0x2e1)])){this['_removeDragPreviewObject']();return;}let _0xcb2ecf=this[_0x8fca15(0x20b)](_0xde8f29,_0x55359e),_0x764d4c=this[_0x8fca15(0x460)](_0x55359e['elementData'],_0x55359e[_0x8fca15(0x3f9)],_0xcb2ecf),_0x52d542=Sn(_0x55359e['elementData'],_0x55359e[_0x8fca15(0x3f9)],{'boundsByElementId':_0x764d4c,'allowRootReparent':!0x0});if(_0x52d542[_0x8fca15(0x315)]!==_0x8fca15(0x3b0)){this['_removeDragPreviewObject']();return;}let _0x222bf1=this['_ensureDragPreviewObject']();_0x222bf1&&(_0x222bf1[_0x8fca15(0x2e5)]({'ghostBounds':_0xcb2ecf,'sourceBounds':null,'parentBounds':_0x764d4c[_0x52d542[_0x8fca15(0x1d8)]],'side':_0x52d542[_0x8fca15(0x350)],'textStyle':void 0x0,'renderGhostNode':!0x1}),this['_renderContext'][_0x8fca15(0x48b)][_0x8fca15(0x32c)](!0x0),(_0x445392=(_0x5d547f=this['_renderContext'][_0x8fca15(0x48b)])[_0x8fca15(0x1cf)])==null||_0x445392[_0x8fca15(0x2a4)](_0x5d547f));}[_0x4f3d14(0x23e)](_0x41d7a6){const _0x239668=_0x4f3d14;var _0x5f5ae9,_0x59ba61;let _0x3aa44b=this[_0x239668(0x469)];if(!_0x3aa44b||_0x3aa44b['kind']!=='child')return;let _0x3e9185=_0x41d7a6==null?void 0x0:_0x41d7a6[_0x239668(0x47f)](_0x55b3e2(_0x3aa44b[_0x239668(0x291)],_0x3aa44b['nodeId']));if(!_0x3e9185){this[_0x239668(0x2f1)]();return;}let _0x67acd3=this[_0x239668(0x20b)](_0x3e9185,_0x3aa44b);if(!this[_0x239668(0x465)](_0x3aa44b,_0x67acd3)){this[_0x239668(0x357)]=null,this[_0x239668(0x2f1)](),this[_0x239668(0x384)](_0x3e9185,_0x3aa44b),this[_0x239668(0x414)][_0x239668(0x48b)][_0x239668(0x32c)](!0x0);return;}this[_0x239668(0x1c5)]||this[_0x239668(0x332)](),this[_0x239668(0x1c5)]=!0x0;let _0x3bfd1e=this[_0x239668(0x460)](_0x3aa44b[_0x239668(0x241)],_0x3aa44b[_0x239668(0x3f9)],_0x67acd3),_0x865122=Sn(_0x3aa44b[_0x239668(0x241)],_0x3aa44b[_0x239668(0x3f9)],{'boundsByElementId':_0x3bfd1e,'detachWhenNoSnap':!0x0});this[_0x239668(0x357)]=_0x865122,this['_syncChildDragPreviewObject'](_0x67acd3,_0x865122,_0x3bfd1e),this[_0x239668(0x384)](_0x3e9185,_0x3aa44b),this[_0x239668(0x414)]['scene'][_0x239668(0x32c)](!0x0),(_0x5f5ae9=(_0x59ba61=this[_0x239668(0x414)]['scene'])[_0x239668(0x1cf)])==null||_0x5f5ae9[_0x239668(0x2a4)](_0x59ba61);}[_0x4f3d14(0x424)](_0x3068f3){const _0x1feda1=_0x4f3d14;var _0x27020f;let _0x1fcb95=this['_elementStateService'][_0x1feda1(0x310)](),_0x161a29=_0x1fcb95[_0x1feda1(0x3ac)],_0x3454ba=_0x1fcb95[_0x1feda1(0x206)]??_0x1fcb95[_0x1feda1(0x375)][0x0];if(_0x161a29&&((_0x27020f=this[_0x1feda1(0x469)])==null?void 0x0:_0x27020f[_0x1feda1(0x315)])===_0x1feda1(0x30a)){this[_0x1feda1(0x2f1)](),this[_0x1feda1(0x276)](_0x161a29['unitId'],_0x161a29[_0x1feda1(0x20a)],_0x3068f3);return;}if(!_0x161a29||!_0x3454ba||_0x1fcb95[_0x1feda1(0x375)]['length']!==0x1){this[_0x1feda1(0x2f1)](),this[_0x1feda1(0x469)]=null;return;}this[_0x1feda1(0x2f1)]();let _0x2f9a69=this[_0x1feda1(0x3dd)]['getElementData'](_0x161a29['unitId'],_0x161a29['subUnitId']);if(this[_0x1feda1(0x41c)](_0x161a29[_0x1feda1(0x291)],_0x161a29[_0x1feda1(0x20a)],_0x3454ba,_0x2f9a69,_0x3068f3))return;let _0x1fb3d5=this['_resolveChildDragTopologyAction'](_0x161a29[_0x1feda1(0x291)],_0x161a29[_0x1feda1(0x20a)],_0x3454ba,_0x2f9a69,_0x3068f3);this[_0x1feda1(0x1b7)](_0x161a29[_0x1feda1(0x291)],_0x161a29[_0x1feda1(0x20a)],_0x3454ba,_0x2f9a69,_0x1fb3d5);}[_0x4f3d14(0x276)](_0x34c972,_0x445b8,_0x4e0501){const _0x55c5f4=_0x4f3d14;let _0x35c02e=this[_0x55c5f4(0x469)];if(this[_0x55c5f4(0x469)]=null,!_0x35c02e||_0x35c02e[_0x55c5f4(0x315)]!==_0x55c5f4(0x30a)||_0x35c02e[_0x55c5f4(0x291)]!==_0x34c972||_0x35c02e['subUnitId']!==_0x445b8)return;let _0x2af708=_0x4e0501==null?void 0x0:_0x4e0501[_0x55c5f4(0x47f)](_0x55b3e2(_0x34c972,_0x35c02e[_0x55c5f4(0x3f9)])),_0x4be51f=_0x2af708&&Number['isFinite'](_0x2af708[_0x55c5f4(0x445)])?_0x2af708[_0x55c5f4(0x445)]??_0x35c02e[_0x55c5f4(0x445)]:_0x35c02e[_0x55c5f4(0x445)],_0x4ea7f6=_0x2af708&&Number[_0x55c5f4(0x490)](_0x2af708[_0x55c5f4(0x2e1)])?_0x2af708[_0x55c5f4(0x2e1)]??_0x35c02e[_0x55c5f4(0x2e1)]:_0x35c02e['top'],_0x40c323=_0x4be51f-_0x35c02e[_0x55c5f4(0x445)],_0x1321f3=_0x4ea7f6-_0x35c02e['top'];(_0x40c323!==0x0||_0x1321f3!==0x0)&&this[_0x55c5f4(0x32f)][_0x55c5f4(0x32d)](_0x2c3a69['id'],{'unitId':_0x34c972,'subUnitId':_0x445b8,'scopeId':_0x35c02e['scopeId'],'deltaX':_0x40c323,'deltaY':_0x1321f3});}['_executeChildDragAction'](_0x4dbd33,_0x245d87,_0x550ce2,_0x110c30,_0x1ea3ab){const _0x34ba60=_0x4f3d14;if(_0x1ea3ab[_0x34ba60(0x315)]==='reparent'){var _0x521739,_0x3d0349;let _0x493bdc=_0x5585ba((_0x521739=_0x110c30[_0x550ce2])==null?void 0x0:_0x521739[_0x34ba60(0x1ca)]),_0x5d7289=_0x5585ba((_0x3d0349=_0x110c30[_0x1ea3ab[_0x34ba60(0x1d8)]])==null?void 0x0:_0x3d0349['element']);this[_0x34ba60(0x479)](_0x2f561c['id'],{'unitId':_0x4dbd33,'subUnitId':_0x245d87,'nodeId':_0x550ce2,'newParentNodeId':_0x1ea3ab[_0x34ba60(0x1d8)],'side':_0x1ea3ab['side'],..._0x1ea3ab[_0x34ba60(0x47e)]?{'referenceNodeId':_0x1ea3ab[_0x34ba60(0x47e)]}:null,..._0x1ea3ab[_0x34ba60(0x3c9)]?{'placement':_0x1ea3ab[_0x34ba60(0x3c9)]}:null},[_0x493bdc==null?void 0x0:_0x493bdc[_0x34ba60(0x2ea)],_0x5d7289==null?void 0x0:_0x5d7289[_0x34ba60(0x2ea)]],_0x550ce2);}else{if(_0x1ea3ab[_0x34ba60(0x315)]===_0x34ba60(0x197)){var _0x348125;let _0x604420=_0x5585ba((_0x348125=_0x110c30[_0x550ce2])==null?void 0x0:_0x348125[_0x34ba60(0x1ca)]);this['_executeAndLayout'](_0x10841e['id'],{'unitId':_0x4dbd33,'subUnitId':_0x245d87,'nodeId':_0x550ce2,...Number['isFinite'](_0x1ea3ab[_0x34ba60(0x445)])?{'left':_0x1ea3ab['left']}:null,...Number['isFinite'](_0x1ea3ab[_0x34ba60(0x2e1)])?{'top':_0x1ea3ab[_0x34ba60(0x2e1)]}:null},[_0x604420==null?void 0x0:_0x604420['structureScopeId']],_0x550ce2);}}}[_0x4f3d14(0x41c)](_0x184e2d,_0x4555f1,_0x196486,_0x2b2be7,_0x2dbb91){const _0x373bad=_0x4f3d14;let _0x1b30e0=this[_0x373bad(0x469)];if((_0x1b30e0==null?void 0x0:_0x1b30e0[_0x373bad(0x315)])==='root'&&(this[_0x373bad(0x469)]=null),!_0x1b30e0||_0x1b30e0['unitId']!==_0x184e2d||_0x1b30e0['subUnitId']!==_0x4555f1||_0x1b30e0[_0x373bad(0x3f9)]!==_0x196486)return!0x1;let _0x26b5ff=_0x2b2be7[_0x196486],_0x557255=_0x5585ba(_0x26b5ff==null?void 0x0:_0x26b5ff[_0x373bad(0x1ca)]);if(!_0x26b5ff||!_0x557255||_0x557255[_0x373bad(0x29f)]!==null)return!0x1;let _0x34c1b3=_0x2dbb91==null?void 0x0:_0x2dbb91[_0x373bad(0x47f)](_0x55b3e2(_0x184e2d,_0x196486)),_0x4f75b0=_0x25dbfe(_0x2b2be7,_0x196486),_0xe650c4=Number[_0x373bad(0x490)](_0x34c1b3==null?void 0x0:_0x34c1b3[_0x373bad(0x445)])?_0x34c1b3[_0x373bad(0x445)]:(_0x4f75b0==null?void 0x0:_0x4f75b0[_0x373bad(0x445)])??_0x26b5ff[_0x373bad(0x1ca)][_0x373bad(0x330)][_0x373bad(0x445)]??0x0,_0x2a1c87=Number[_0x373bad(0x490)](_0x34c1b3==null?void 0x0:_0x34c1b3['top'])?_0x34c1b3[_0x373bad(0x2e1)]:(_0x4f75b0==null?void 0x0:_0x4f75b0[_0x373bad(0x2e1)])??_0x26b5ff[_0x373bad(0x1ca)][_0x373bad(0x330)]['top']??0x0,_0x1ad58e=_0xe650c4-_0x1b30e0['left'],_0x4f8d17=_0x2a1c87-_0x1b30e0[_0x373bad(0x2e1)];if(_0x1ad58e===0x0&&_0x4f8d17===0x0)return!0x0;let _0x5c4640={'left':_0xe650c4,'top':_0x2a1c87,'width':Number[_0x373bad(0x490)](_0x34c1b3==null?void 0x0:_0x34c1b3[_0x373bad(0x48c)])?_0x34c1b3[_0x373bad(0x48c)]:_0x1b30e0[_0x373bad(0x48c)],'height':Number[_0x373bad(0x490)](_0x34c1b3==null?void 0x0:_0x34c1b3['height'])?_0x34c1b3['height']:_0x1b30e0['height']},_0x1c2b47=Sn(_0x2b2be7,_0x196486,{'boundsByElementId':this[_0x373bad(0x460)](_0x2b2be7,_0x196486,_0x5c4640),'allowRootReparent':!0x0});if(_0x1c2b47[_0x373bad(0x315)]===_0x373bad(0x3b0))return this['_executeChildDragAction'](_0x184e2d,_0x4555f1,_0x196486,_0x2b2be7,_0x1c2b47),!0x0;let _0x18e4c8=!!_0x4f75b0&&Math[_0x373bad(0x36a)](_0x4f75b0[_0x373bad(0x445)]-_0xe650c4)<0.001&&Math[_0x373bad(0x36a)](_0x4f75b0[_0x373bad(0x2e1)]-_0x2a1c87)<0.001;return this[_0x373bad(0x32f)][_0x373bad(0x32d)](_0x2c3a69['id'],{'unitId':_0x184e2d,'subUnitId':_0x4555f1,'scopeId':_0x1b30e0['scopeId'],'deltaX':_0x1ad58e,'deltaY':_0x4f8d17,..._0x18e4c8?{'excludeElementIds':[_0x196486],'preserveExcludedWorldTransforms':!0x0}:null}),!0x0;}[_0x4f3d14(0x217)](_0x2e3efe,_0x124e3d,_0x17f410,_0xa45230,_0x39af3f){const _0x2c419b=_0x4f3d14;let _0x40f03e=this[_0x2c419b(0x469)];if(!_0x40f03e||_0x40f03e[_0x2c419b(0x315)]!=='child'||_0x40f03e['unitId']!==_0x2e3efe||_0x40f03e[_0x2c419b(0x20a)]!==_0x124e3d||_0x40f03e[_0x2c419b(0x3f9)]!==_0x17f410)return{'kind':_0x2c419b(0x2a1)};this[_0x2c419b(0x469)]=null;let _0x5738ba=_0x39af3f==null?void 0x0:_0x39af3f[_0x2c419b(0x47f)](_0x55b3e2(_0x2e3efe,_0x17f410));if(!this[_0x2c419b(0x1c5)])return _0x5738ba&&this[_0x2c419b(0x384)](_0x5738ba,_0x40f03e),this[_0x2c419b(0x357)]=null,{'kind':_0x2c419b(0x2a1)};if(!_0x5738ba){let _0x2cc549=this[_0x2c419b(0x357)]??{'kind':_0x2c419b(0x2a1)};return this[_0x2c419b(0x357)]=null,_0x2cc549;}let _0xd5f34=this['_getLiveObjectBounds'](_0x5738ba,_0x40f03e);if(this['_restoreObjectToDragStart'](_0x5738ba,_0x40f03e),!this[_0x2c419b(0x465)](_0x40f03e,_0xd5f34))return this[_0x2c419b(0x357)]=null,{'kind':_0x2c419b(0x2a1)};let _0x47c331=Sn(_0xa45230,_0x17f410,{'boundsByElementId':this[_0x2c419b(0x460)](_0xa45230,_0x17f410,_0xd5f34),'detachWhenNoSnap':!0x0});return this['_lastChildDragAction']=null,_0x47c331;}['_isChildDragPastActivationThreshold'](_0x27e6a4,_0x2ad581){const _0x3765be=_0x4f3d14;let _0x38149b=(_0x2ad581[_0x3765be(0x445)]??_0x27e6a4['left'])-_0x27e6a4[_0x3765be(0x445)],_0x22aacc=(_0x2ad581[_0x3765be(0x2e1)]??_0x27e6a4[_0x3765be(0x2e1)])-_0x27e6a4[_0x3765be(0x2e1)];return Math[_0x3765be(0x277)](_0x38149b,_0x22aacc)>=0x12;}['_getPointerLiveBounds'](_0x27cf74,_0x4c4656){const _0x5bf3d9=_0x4f3d14;let _0x317b5a=this[_0x5bf3d9(0x1e1)](_0x27cf74),_0x31fb9d=this[_0x5bf3d9(0x2e7)]();return{'left':_0x4c4656[_0x5bf3d9(0x445)]+(_0x317b5a['x']-_0x4c4656[_0x5bf3d9(0x1ad)])/_0x31fb9d,'top':_0x4c4656['top']+(_0x317b5a['y']-_0x4c4656[_0x5bf3d9(0x1b2)])/_0x31fb9d,'width':_0x4c4656['width'],'height':_0x4c4656[_0x5bf3d9(0x36d)]};}[_0x4f3d14(0x446)](_0x2ff7ab){const _0x1d9812=_0x4f3d14;let _0x46a962=this[_0x1d9812(0x322)][_0x1d9812(0x25b)](),_0x2c2bc4=(_0x46a962==null?void 0x0:_0x46a962[_0x1d9812(0x36e)])??{'x':0x0,'y':0x0},_0x4ba453=this[_0x1d9812(0x2e7)]();return{'x':Math[_0x1d9812(0x28e)](((_0x2ff7ab[_0x1d9812(0x385)]??0x0)-_0x2c2bc4['x'])/_0x4ba453),'y':Math[_0x1d9812(0x28e)](((_0x2ff7ab[_0x1d9812(0x2a5)]??0x0)-_0x2c2bc4['y'])/_0x4ba453)};}[_0x4f3d14(0x1e1)](_0x46b0d1){const _0x4d2f12=_0x4f3d14;return{'x':Number['isFinite'](_0x46b0d1[_0x4d2f12(0x327)])?_0x46b0d1[_0x4d2f12(0x327)]:_0x46b0d1[_0x4d2f12(0x385)]??0x0,'y':Number[_0x4d2f12(0x490)](_0x46b0d1[_0x4d2f12(0x38f)])?_0x46b0d1['clientY']:_0x46b0d1[_0x4d2f12(0x2a5)]??0x0};}[_0x4f3d14(0x2e7)](){const _0x7a8d7c=_0x4f3d14;let _0x5c0a45=this['_uiStateService'][_0x7a8d7c(0x25b)]()[_0x7a8d7c(0x1e9)];return Number[_0x7a8d7c(0x490)](_0x5c0a45)&&(_0x5c0a45??0x0)>0x0?_0x5c0a45:0x1;}[_0x4f3d14(0x33e)](_0x1b8a7e,_0x369234){const _0x32b6d5=_0x4f3d14;return _0x1b8a7e['x']>=_0x369234['left']&&_0x1b8a7e['x']<=_0x369234['left']+_0x369234[_0x32b6d5(0x48c)]&&_0x1b8a7e['y']>=_0x369234['top']&&_0x1b8a7e['y']<=_0x369234[_0x32b6d5(0x2e1)]+_0x369234['height'];}[_0x4f3d14(0x38e)](_0x4bc337,_0x455f6d){const _0x3c3bbd=_0x4f3d14;var _0xb5d5ec,_0x166f2f;_0x455f6d==null||_0x455f6d[_0x3c3bbd(0x1de)](),_0x455f6d&&(_0x455f6d[_0x3c3bbd(0x336)]=!0x0),(_0xb5d5ec=_0x4bc337['preventDefault'])==null||_0xb5d5ec[_0x3c3bbd(0x2a4)](_0x4bc337),(_0x166f2f=_0x4bc337[_0x3c3bbd(0x1de)])==null||_0x166f2f['call'](_0x4bc337);}[_0x4f3d14(0x332)](){const _0x60f3c=_0x4f3d14;var _0x3ca72e,_0x281e05;this[_0x60f3c(0x30b)]||=((_0x3ca72e=(_0x281e05=this['_elementStateService'])['clearSelection'])==null||_0x3ca72e[_0x60f3c(0x2a4)](_0x281e05),!0x0);}[_0x4f3d14(0x20b)](_0x3ab321,_0x458a55){const _0x4f2b81=_0x4f3d14;return{'left':Number[_0x4f2b81(0x490)](_0x3ab321['left'])?_0x3ab321[_0x4f2b81(0x445)]:_0x458a55[_0x4f2b81(0x445)],'top':Number[_0x4f2b81(0x490)](_0x3ab321[_0x4f2b81(0x2e1)])?_0x3ab321[_0x4f2b81(0x2e1)]:_0x458a55[_0x4f2b81(0x2e1)],'width':Number[_0x4f2b81(0x490)](_0x3ab321['width'])?_0x3ab321[_0x4f2b81(0x48c)]:_0x458a55[_0x4f2b81(0x48c)],'height':Number[_0x4f2b81(0x490)](_0x3ab321[_0x4f2b81(0x36d)])?_0x3ab321[_0x4f2b81(0x36d)]:_0x458a55[_0x4f2b81(0x36d)]};}[_0x4f3d14(0x384)](_0x2d4379,_0x4989e6){const _0x32ea7c=_0x4f3d14;typeof _0x2d4379['transformByState']=='function'&&_0x2d4379[_0x32ea7c(0x3be)]({'left':_0x4989e6['left'],'top':_0x4989e6['top'],'width':_0x4989e6[_0x32ea7c(0x48c)],'height':_0x4989e6[_0x32ea7c(0x36d)]}),typeof _0x2d4379[_0x32ea7c(0x2c8)]==_0x32ea7c(0x2b8)?_0x2d4379[_0x32ea7c(0x2c8)](!0x0):typeof _0x2d4379[_0x32ea7c(0x32c)]==_0x32ea7c(0x2b8)&&_0x2d4379[_0x32ea7c(0x32c)](!0x0);}[_0x4f3d14(0x460)](_0x38de29,_0x3a3b9a,_0x1ddd16){const _0x372a3a=_0x4f3d14;return Object[_0x372a3a(0x1c3)](Object[_0x372a3a(0x362)](_0x38de29)['map'](_0x3fe0c4=>_0x3fe0c4===_0x3a3b9a?[_0x3fe0c4,_0x1ddd16]:[_0x3fe0c4,_0x25dbfe(_0x38de29,_0x3fe0c4)??_0x38de29[_0x3fe0c4][_0x372a3a(0x1ca)]['transform']]));}[_0x4f3d14(0x3e5)](){const _0x51121c=_0x4f3d14;if(this[_0x51121c(0x34b)])return this[_0x51121c(0x34b)];let _0x33ad47=this[_0x51121c(0x414)][_0x51121c(0x48b)];return typeof _0x33ad47[_0x51121c(0x2c3)]==_0x51121c(0x2b8)?(this['_dragPreviewObject']=new mn(cn),_0x33ad47[_0x51121c(0x2c3)](this[_0x51121c(0x34b)],ln),this[_0x51121c(0x34b)]):null;}['_syncChildDragPreviewObject'](_0x45d8ea,_0x5342ca,_0x19c51c){const _0x3e52ff=_0x4f3d14;let _0x1ff8ff=this[_0x3e52ff(0x3e5)]();_0x1ff8ff&&_0x1ff8ff[_0x3e52ff(0x2e5)]({'ghostBounds':_0x45d8ea,'sourceBounds':this[_0x3e52ff(0x3b9)](),'parentBounds':_0x5342ca[_0x3e52ff(0x315)]===_0x3e52ff(0x3b0)?_0x19c51c[_0x5342ca['newParentNodeId']]:null,'side':_0x5342ca[_0x3e52ff(0x315)]===_0x3e52ff(0x3b0)?_0x5342ca[_0x3e52ff(0x350)]:_0x3e52ff(0x289),'textStyle':this[_0x3e52ff(0x3c1)](),'renderGhostNode':!0x0});}[_0x4f3d14(0x3b9)](){const _0x3ec097=_0x4f3d14;let _0x5f47ce=this[_0x3ec097(0x40a)]??this['_dragStart'];return _0x5f47ce?{'left':_0x5f47ce['left'],'top':_0x5f47ce[_0x3ec097(0x2e1)],'width':_0x5f47ce['width'],'height':_0x5f47ce[_0x3ec097(0x36d)]}:null;}[_0x4f3d14(0x3c1)](){const _0x13ec0d=_0x4f3d14;var _0x3235b7,_0x5a657f;let _0x30cf43=this['_pointerDragStart']??this[_0x13ec0d(0x469)],_0x23f2cf=_0x30cf43==null||(_0x3235b7=_0x30cf43[_0x13ec0d(0x241)][_0x30cf43[_0x13ec0d(0x3f9)]])==null?void 0x0:_0x3235b7[_0x13ec0d(0x1ca)],_0x2287d5=_0x23f2cf==null||(_0x5a657f=_0x23f2cf['shapeData'])==null?void 0x0:_0x5a657f[_0x13ec0d(0x1eb)];if(_0x2287d5)return{'text':typeof _0x2287d5[_0x13ec0d(0x488)]=='string'?_0x2287d5['text']:void 0x0,'fontSize':Number[_0x13ec0d(0x490)](_0x2287d5[_0x13ec0d(0x434)])?_0x2287d5['fontSize']:void 0x0,'color':typeof _0x2287d5[_0x13ec0d(0x25e)]==_0x13ec0d(0x351)?_0x2287d5[_0x13ec0d(0x25e)]:void 0x0,'horizontalAlign':Number['isFinite'](_0x2287d5[_0x13ec0d(0x3d3)])?_0x2287d5['horizontalAlign']:void 0x0};}[_0x4f3d14(0x2f1)](){const _0x298275=_0x4f3d14;var _0x875de6,_0x3a8f12,_0x5892ce;if(!this[_0x298275(0x34b)])return;let _0x4576de=this['_renderContext'][_0x298275(0x48b)];(_0x875de6=_0x4576de[_0x298275(0x341)])==null||_0x875de6[_0x298275(0x2a4)](_0x4576de,[this[_0x298275(0x34b)]]),this[_0x298275(0x34b)]=null,(_0x3a8f12=(_0x5892ce=this['_renderContext'][_0x298275(0x48b)])[_0x298275(0x32c)])==null||_0x3a8f12['call'](_0x5892ce,!0x0);}[_0x4f3d14(0x479)](_0x4b6e6e,_0xd2bca4,_0x2f659c,_0x5b0cc5){const _0x47c905=_0x4f3d14;let _0x2e04c4=[...new Set(_0x2f659c[_0x47c905(0x43b)](_0x369581=>!!_0x369581))],_0x403015=typeof _0xd2bca4['unitId']=='string'?_0xd2bca4[_0x47c905(0x291)]:this['_renderContext'][_0x47c905(0x291)],_0x162a3d=this['_undoRedoGroupService']['createRunner'](_0x403015),_0x42a95b=_0x162a3d(()=>this[_0x47c905(0x32f)][_0x47c905(0x32d)](_0x4b6e6e,_0xd2bca4));Promise[_0x47c905(0x1ec)](_0x42a95b)[_0x47c905(0x193)](_0x5e9263=>{const _0x6cec60=_0x47c905;var _0xf28c41,_0x3d2ed6,_0x4f3949,_0x49b7cc;if(_0x5e9263){if(_0x2e04c4[_0x6cec60(0x2d1)](_0x1fc68c=>{const _0x4e58ca=_0x6cec60;_0x162a3d(()=>this[_0x4e58ca(0x32f)][_0x4e58ca(0x32d)](_0x4b5dc4['id'],{'unitId':_0xd2bca4[_0x4e58ca(0x291)],'subUnitId':_0xd2bca4['subUnitId'],'scopeId':_0x1fc68c}));}),_0x5b0cc5&&typeof _0xd2bca4[_0x6cec60(0x291)]==_0x6cec60(0x351)&&typeof _0xd2bca4[_0x6cec60(0x20a)]=='string'){var _0x3c975d,_0xe868d7;(_0x3c975d=(_0xe868d7=this['_elementStateService'])[_0x6cec60(0x42b)])==null||_0x3c975d[_0x6cec60(0x2a4)](_0xe868d7,{'unitId':_0xd2bca4['unitId'],'subUnitId':_0xd2bca4[_0x6cec60(0x20a)]},[_0x5b0cc5],_0x5b0cc5);}(_0xf28c41=(_0x3d2ed6=this[_0x6cec60(0x414)][_0x6cec60(0x48b)])['makeDirty'])==null||_0xf28c41[_0x6cec60(0x2a4)](_0x3d2ed6,!0x0),(_0x4f3949=(_0x49b7cc=this[_0x6cec60(0x414)][_0x6cec60(0x48b)])[_0x6cec60(0x1cf)])==null||_0x4f3949[_0x6cec60(0x2a4)](_0x49b7cc);}});}};En=J([q(0x1,_0x132a38(_0x5c495f)),q(0x2,_0x132a38(_0x16fdab)),q(0x3,_0x27d0fe),q(0x4,_0x31b38d),q(0x5,_0x253a65),q(0x6,_0x132a38(_0x57f4a7))],En);let Dn=class extends _0x4c4d8b{constructor(_0x14d691,_0x24eb4d,_0x51bb97,_0x1965e2,_0x14b885,_0x3a1dc1,_0x4bff35,_0x53a278,_0x539a06){const _0x45e94c=_0x4f3d14;super(),this[_0x45e94c(0x313)]=_0x14d691,this['commandService']=_0x24eb4d,this[_0x45e94c(0x3d2)]=_0x51bb97,this[_0x45e94c(0x3df)]=_0x1965e2,this[_0x45e94c(0x190)]=_0x14b885,this[_0x45e94c(0x439)]=_0x3a1dc1,this[_0x45e94c(0x326)]=_0x4bff35,this[_0x45e94c(0x4a7)]=_0x53a278,this[_0x45e94c(0x218)]=_0x539a06;}};Dn=J([q(0x1,_0x27d0fe),q(0x2,_0x5c495f),q(0x3,_0x16fdab),q(0x4,_0x31b38d),q(0x5,_0x2d52c2),q(0x6,_0x23671a),q(0x7,_0x132a38(_0x4eab55)),q(0x8,_0x132a38(_0x2d7b12))],Dn);const On='board.mind-map.description-dialog',kn='board-mind-map-description-dialog';function An(_0x423077){const _0x285526=_0x4f3d14;let {unitId:_0x1a63da,subUnitId:_0x3f51b3,nodeId:_0x4773d0,initialDescription:_0x5e14e1=''}=_0x423077,_0x3ad547=_0x1bf837(_0x27d0fe),_0x38b6dd=_0x1bf837(_0x23671a),_0x26ea7f=_0x1bf837(_0x4eab55),[_0x3e01be,_0x4eb560]=_0x34d7b2(_0x5e14e1),_0x2a76fc=()=>_0x38b6dd[_0x285526(0x1bc)](kn);return _0x27b706('div',{'className':'univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','data-board-mind-map-description-dialog':_0x285526(0x480),'children':[_0x27b706('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-2','children':[_0x9b9447(_0x285526(0x255),{'className':'univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-gray-0','children':_0x26ea7f['t']('boards-mind-ui.description')}),_0x9b9447(_0x14dc82,{'autoFocus':!0x0,'className':_0x285526(0x2ac),'placeholder':_0x26ea7f['t'](_0x285526(0x487)),'value':_0x3e01be,'onValueChange':_0x4eb560})]}),_0x27b706(_0x285526(0x417),{'className':_0x285526(0x262),'children':[_0x9b9447(_0x8c8b61,{'size':_0x285526(0x358),'variant':_0x285526(0x3f6),'onClick':_0x2a76fc,'children':_0x26ea7f['t'](_0x285526(0x29b))}),_0x9b9447(_0x8c8b61,{'size':_0x285526(0x358),'variant':_0x285526(0x1b5),'onClick':()=>{const _0x23d5d5=_0x285526;_0x3ad547[_0x23d5d5(0x32d)](_0x3d67d8['id'],{'unitId':_0x1a63da,'subUnitId':_0x3f51b3,'nodeId':_0x4773d0,'foreignAttributes':{'_note':_0x3e01be[_0x23d5d5(0x387)]()?_0x3e01be:null}}),_0x2a76fc();},'children':_0x26ea7f['t'](_0x285526(0x3ff))})]})]});}const jn='board.operation.mind-map.keyboard-shortcut',Mn=_0x4f3d14(0x205),Nn=_0x4f3d14(0x3c6),Pn={'copy':_0x416fa4['copy'],'paste':_0x416fa4[_0x4f3d14(0x381)],'paste-as-new':_0x416fa4[_0x4f3d14(0x381)],'add-child':_0x416fa4[_0x4f3d14(0x435)],'add-sibling-or-child':_0x416fa4[_0x4f3d14(0x3c7)],'promote':_0x416fa4['addParentNode'],'toggle-collapse':_0x416fa4[_0x4f3d14(0x35d)],'collapse-all':_0x416fa4[_0x4f3d14(0x2a6)],'edit-text':_0x416fa4[_0x4f3d14(0x4b0)],'open-description':_0x416fa4[_0x4f3d14(0x47c)],'delete':_0x80c18b['DELETE'],'arrow-left':_0x80c18b[_0x4f3d14(0x1d1)],'arrow-right':_0x80c18b[_0x4f3d14(0x1a7)],'arrow-up':_0x80c18b[_0x4f3d14(0x44c)],'arrow-down':_0x80c18b['ARROW_DOWN']},Fn={'delete':[_0x80c18b[_0x4f3d14(0x3ea)]]};function In(_0x232bf7){return[Pn[_0x232bf7],...Fn[_0x232bf7]??[]];}let Ln=class extends _0x41f8e5{constructor(_0x395a4b,_0x5d2984,_0x3022d3,_0x502085){const _0x3c03e3=_0x4f3d14;super(),this[_0x3c03e3(0x1bd)]=_0x395a4b,this[_0x3c03e3(0x32f)]=_0x5d2984,this[_0x3c03e3(0x49a)]=_0x3022d3,this['_undoRedoGroupService']=_0x502085,this[_0x3c03e3(0x45b)]();}[_0x4f3d14(0x45b)](){const _0x5947d7=_0x4f3d14;this[_0x5947d7(0x44d)](this[_0x5947d7(0x32f)][_0x5947d7(0x191)](this['_createKeyboardShortcutOperation']())),this[_0x5947d7(0x46a)]()['forEach'](_0x3d213c=>{const _0x2110ba=_0x5947d7;this[_0x2110ba(0x44d)](this['_shortcutService'][_0x2110ba(0x457)](_0x3d213c));});}[_0x4f3d14(0x22b)](){const _0x17150b=_0x4f3d14;return{'id':jn,'type':_0x470c85[_0x17150b(0x1ed)],'handler':(_0x181a1f,_0x248dde,_0x5ef875)=>{const _0x45417f=_0x17150b;let _0x2deb80=Rn(_0x181a1f,_0x5ef875);return _0x2deb80?this[_0x45417f(0x405)](_0x2deb80,_0x248dde==null?void 0x0:_0x248dde[_0x45417f(0x2d7)]):!0x1;}};}[_0x4f3d14(0x46a)](){const _0x7a4bf3=_0x4f3d14;let _0x302456=(_0x1148b1,_0x5b3ee1)=>({'id':jn,'binding':_0x1148b1,'priority':0xa0,'preconditions':_0x4ad6a8=>_0xa918fb(_0x4ad6a8)&&!!_0x4ad6a8[_0x7a4bf3(0x1b3)](_0x7a4bf3(0x205)),'staticParameters':{'action':_0x5b3ee1}}),_0x243643=_0x2d1228=>In(_0x2d1228)[_0x7a4bf3(0x2c1)](_0x38d2e9=>_0x302456(_0x38d2e9,_0x2d1228));return[..._0x243643(_0x7a4bf3(0x1a5)),{'id':jn,'binding':Pn['paste'],'priority':0xa0,'preconditions':_0x5116cd=>_0xa918fb(_0x5116cd)&&!!this[_0x7a4bf3(0x1bd)]['getPayload']()&&!!_0x5116cd['getContextValue'](_0x7a4bf3(0x205)),'staticParameters':{'action':'paste'}},{'id':jn,'binding':Pn[_0x7a4bf3(0x1f0)],'priority':0x96,'preconditions':_0x12fec4=>_0xa918fb(_0x12fec4)&&!!this[_0x7a4bf3(0x1bd)][_0x7a4bf3(0x370)]()&&!!_0x12fec4[_0x7a4bf3(0x1b3)](_0x7a4bf3(0x3c6)),'staticParameters':{'action':_0x7a4bf3(0x1f0)}},..._0x243643(_0x7a4bf3(0x2a9)),..._0x243643('add-sibling-or-child'),..._0x243643(_0x7a4bf3(0x433)),..._0x243643(_0x7a4bf3(0x408)),..._0x243643(_0x7a4bf3(0x451)),..._0x243643(_0x7a4bf3(0x1f2)),..._0x243643(_0x7a4bf3(0x2cf)),..._0x243643(_0x7a4bf3(0x333)),..._0x243643('arrow-left'),..._0x243643(_0x7a4bf3(0x2f4)),..._0x243643(_0x7a4bf3(0x419)),..._0x243643(_0x7a4bf3(0x4b1))];}['handleShortcut'](_0x3b5460,_0x13b130){const _0x3c70e6=_0x4f3d14;return _0x3b5460[_0x3c70e6(0x190)][_0x3c70e6(0x25b)]()[_0x3c70e6(0x447)]==='viewing'&&_0x13b130!==_0x3c70e6(0x1a5)?!0x1:_0x13b130===_0x3c70e6(0x1a5)?this['_copySelectedNode'](_0x3b5460):_0x13b130===_0x3c70e6(0x381)?this['_pasteUnderSelectedNode'](_0x3b5460):_0x13b130===_0x3c70e6(0x1f0)?this[_0x3c70e6(0x1d3)](_0x3b5460):_0x13b130===_0x3c70e6(0x2a9)?this[_0x3c70e6(0x2f3)](_0x3b5460):_0x13b130==='add-sibling-or-child'?this['_addSiblingOrChild'](_0x3b5460):_0x13b130===_0x3c70e6(0x433)?this[_0x3c70e6(0x49f)](_0x3b5460,_0x245415['id']):_0x13b130===_0x3c70e6(0x408)?this[_0x3c70e6(0x49f)](_0x3b5460,_0xdc3604['id']):_0x13b130===_0x3c70e6(0x451)?this[_0x3c70e6(0x347)](_0x3b5460):_0x13b130===_0x3c70e6(0x1f2)?this[_0x3c70e6(0x311)](_0x3b5460):_0x13b130==='open-description'?this[_0x3c70e6(0x2b4)](_0x3b5460):_0x13b130===_0x3c70e6(0x333)?this[_0x3c70e6(0x233)](_0x3b5460):_0x13b130&&zn(_0x13b130)?this['_navigateByTopology'](_0x3b5460,_0x13b130):!0x1;}[_0x4f3d14(0x496)](_0x48a55b){const _0x584e54=_0x4f3d14;let _0x54b72d=this[_0x584e54(0x317)](_0x48a55b);return _0x54b72d?(_0x48a55b[_0x584e54(0x497)]['executeCommand'](_0x47452c['id'],{'unitId':_0x54b72d[_0x584e54(0x291)],'subUnitId':_0x54b72d[_0x584e54(0x20a)],'nodeId':_0x54b72d['nodeId']}),!0x0):!0x1;}[_0x4f3d14(0x386)](_0x2bda25){const _0x4e1375=_0x4f3d14;let _0x550a1b=this[_0x4e1375(0x317)](_0x2bda25);return!_0x550a1b||!_0x2bda25[_0x4e1375(0x439)]['getPayload']()?!0x1:(this[_0x4e1375(0x479)](_0x2bda25,_0x5acb7b['id'],{'unitId':_0x550a1b[_0x4e1375(0x291)],'subUnitId':_0x550a1b[_0x4e1375(0x20a)],'targetNodeId':_0x550a1b[_0x4e1375(0x3f9)]},_0x550a1b[_0x4e1375(0x3a9)]),!0x0);}[_0x4f3d14(0x1d3)](_0x2cda03){const _0x244673=_0x4f3d14;let _0x2ea484=this[_0x244673(0x2c2)](_0x2cda03);if(!_0x2ea484||!_0x2cda03[_0x244673(0x439)]['getPayload']())return!0x1;let _0x77db20=_0x2cda03[_0x244673(0x190)][_0x244673(0x25b)](),_0x5b76e5=Number[_0x244673(0x490)](_0x77db20[_0x244673(0x1e9)])&&_0x77db20[_0x244673(0x1e9)]>0x0?_0x77db20[_0x244673(0x1e9)]:0x1,_0x369aed=Math[_0x244673(0x28e)]((0x40-_0x77db20['viewportPanOffset']['x'])/_0x5b76e5),_0x46dbd3=Math[_0x244673(0x28e)]((0x40-_0x77db20['viewportPanOffset']['y'])/_0x5b76e5);return _0x2cda03['commandService'][_0x244673(0x32d)](_0x568b7['id'],{'unitId':_0x2ea484[_0x244673(0x291)],'subUnitId':_0x2ea484['subUnitId'],'left':_0x369aed,'top':_0x46dbd3}),!0x0;}['_addChild'](_0x388efc){const _0x281a98=_0x4f3d14;let _0x555d34=this['_getSelectedMindMapContext'](_0x388efc);if(!_0x555d34)return!0x1;let _0x4b0b3e=_0x21938d(0x6);return this[_0x281a98(0x423)](_0x388efc,_0x21cdef['id'],{'unitId':_0x555d34[_0x281a98(0x291)],'subUnitId':_0x555d34[_0x281a98(0x20a)],'parentNodeId':_0x555d34['nodeId'],'nodeId':_0x4b0b3e,'connectorId':_0x21938d(0x6),'text':_0x388efc[_0x281a98(0x4a7)]['t'](_0x281a98(0x391))},_0x555d34[_0x281a98(0x3a9)],_0x4b0b3e),!0x0;}['_addSiblingOrChild'](_0x18e5dc){const _0x31ab55=_0x4f3d14;let _0x372300=this[_0x31ab55(0x317)](_0x18e5dc);if(!_0x372300)return!0x1;let _0x62161e=_0x21938d(0x6);return this[_0x31ab55(0x423)](_0x18e5dc,_0x372300[_0x31ab55(0x34c)]?_0x21cdef['id']:_0x20f384['id'],{'unitId':_0x372300['unitId'],'subUnitId':_0x372300[_0x31ab55(0x20a)],..._0x372300['isRoot']?{'parentNodeId':_0x372300[_0x31ab55(0x3f9)],'nodeId':_0x62161e}:{'nodeId':_0x372300['nodeId'],'siblingNodeId':_0x62161e},'connectorId':_0x21938d(0x6),'text':_0x18e5dc[_0x31ab55(0x4a7)]['t'](_0x31ab55(0x391))},_0x372300[_0x31ab55(0x3a9)],_0x62161e),!0x0;}['_executeNodeOperation'](_0x5db8b9,_0x500eeb){const _0x301f1c=_0x4f3d14;let _0x433df4=this[_0x301f1c(0x317)](_0x5db8b9);return _0x433df4?(this[_0x301f1c(0x479)](_0x5db8b9,_0x500eeb,{'unitId':_0x433df4[_0x301f1c(0x291)],'subUnitId':_0x433df4[_0x301f1c(0x20a)],'nodeId':_0x433df4[_0x301f1c(0x3f9)]},_0x433df4[_0x301f1c(0x3a9)]),!0x0):!0x1;}[_0x4f3d14(0x233)](_0x560c81){const _0x860e28=_0x4f3d14;let _0x5fa888=this[_0x860e28(0x317)](_0x560c81);if(!_0x5fa888)return!0x1;let _0x102a6c=_0x560c81['commandService'][_0x860e28(0x4a8)](_0x20689a['id'],{'unitId':_0x5fa888['unitId'],'subUnitId':_0x5fa888[_0x860e28(0x20a)],'nodeId':_0x5fa888[_0x860e28(0x3f9)]});return _0x102a6c&&_0x560c81['elementStateService'][_0x860e28(0x4ac)](),_0x102a6c;}[_0x4f3d14(0x347)](_0x176e01){const _0x8bca79=_0x4f3d14;let _0x2a52bb=this['_getSelectedMindMapContext'](_0x176e01);if(!_0x2a52bb)return!0x1;let _0xe3959=_0x176e01[_0x8bca79(0x3d2)][_0x8bca79(0x198)](_0x2a52bb['unitId'],_0x2a52bb[_0x8bca79(0x20a)]),_0x29bfdc=Object['values'](_0xe3959)[_0x8bca79(0x2c1)](_0x418ee1=>{const _0x42820b=_0x8bca79;let _0x3198db=_0x5585ba(_0x418ee1['element']);return(_0x3198db==null?void 0x0:_0x3198db['structureScopeId'])===_0x2a52bb['scopeId']&&this['_getMindMapChildren'](_0xe3959,_0x2a52bb[_0x42820b(0x3a9)],_0x418ee1['elementId'])[_0x42820b(0x452)]>0x0?{'nodeId':_0x418ee1[_0x42820b(0x3e9)],'collapsed':_0x3198db[_0x42820b(0x4a9)]}:null;})[_0x8bca79(0x43b)](_0x3cd5e9=>!!_0x3cd5e9);if(_0x29bfdc[_0x8bca79(0x452)]===0x0)return!0x1;let _0x403349=_0x29bfdc['some'](_0x5e835e=>!_0x5e835e[_0x8bca79(0x4a9)]),_0x1a489b=_0x176e01['commandService'],_0x39fbe6=this[_0x8bca79(0x30c)][_0x8bca79(0x2ae)](_0x2a52bb[_0x8bca79(0x291)]),_0x561af0=_0x29bfdc[_0x8bca79(0x2c1)](_0x2a2234=>_0x39fbe6(()=>_0x1a489b[_0x8bca79(0x32d)](_0xdc3604['id'],{'unitId':_0x2a52bb[_0x8bca79(0x291)],'subUnitId':_0x2a52bb[_0x8bca79(0x20a)],'nodeId':_0x2a2234['nodeId'],'collapsed':_0x403349})));return Promise[_0x8bca79(0x43a)](_0x561af0['map'](_0x240baf=>Promise[_0x8bca79(0x1ec)](_0x240baf)))[_0x8bca79(0x193)](_0x547cbf=>{const _0x4ff97e=_0x8bca79;_0x547cbf[_0x4ff97e(0x4a2)](Boolean)&&_0x39fbe6(()=>_0x1a489b[_0x4ff97e(0x32d)](_0x4b5dc4['id'],{'unitId':_0x2a52bb[_0x4ff97e(0x291)],'subUnitId':_0x2a52bb[_0x4ff97e(0x20a)],'scopeId':_0x2a52bb[_0x4ff97e(0x3a9)]}));}),!0x0;}[_0x4f3d14(0x311)](_0x324ee1){const _0x9ad23a=_0x4f3d14;let _0xc6616f=this['_getSelectedMindMapContext'](_0x324ee1);if(!_0xc6616f)return!0x1;_0x324ee1[_0x9ad23a(0x3df)][_0x9ad23a(0x42b)]({'unitId':_0xc6616f[_0x9ad23a(0x291)],'subUnitId':_0xc6616f[_0x9ad23a(0x20a)]},[_0xc6616f[_0x9ad23a(0x3f9)]],_0xc6616f[_0x9ad23a(0x3f9)]);let _0x2f1b3a=_0x324ee1[_0x9ad23a(0x218)];return _0x2f1b3a[_0x9ad23a(0x26a)](),_0x2f1b3a[_0x9ad23a(0x24b)]({'unitId':_0xc6616f[_0x9ad23a(0x291)],'subUnitId':_0xc6616f[_0x9ad23a(0x20a)],'shapeId':_0xc6616f[_0x9ad23a(0x3f9)],'shapeKey':_0x55b3e2(_0xc6616f['unitId'],_0xc6616f['nodeId']),'visible':!0x0}),!0x0;}[_0x4f3d14(0x2b4)](_0x7861b6){const _0x23ebc1=_0x4f3d14;let _0x3ff166=this[_0x23ebc1(0x317)](_0x7861b6);return _0x3ff166?(_0x7861b6[_0x23ebc1(0x326)][_0x23ebc1(0x485)]({'id':kn,'title':{'title':_0x23ebc1(0x318)},'width':0x1a4,'draggable':!0x0,'mask':!0x1,'maskClosable':!0x0,'children':{'label':On,'unitId':_0x3ff166[_0x23ebc1(0x291)],'subUnitId':_0x3ff166[_0x23ebc1(0x20a)],'nodeId':_0x3ff166['nodeId'],'initialDescription':_0x3ff166['description']}}),!0x0):!0x1;}[_0x4f3d14(0x37a)](_0x4eea44,_0x5533fd){const _0x11ec9a=_0x4f3d14;let _0x3c02e2=this[_0x11ec9a(0x317)](_0x4eea44);if(!_0x3c02e2)return!0x1;let _0x2829d1=_0x4eea44[_0x11ec9a(0x3d2)]['getElementData'](_0x3c02e2[_0x11ec9a(0x291)],_0x3c02e2[_0x11ec9a(0x20a)]),_0x5be5e6=_0x2829d1[_0x3c02e2[_0x11ec9a(0x3f9)]],_0x2903ca=_0x5585ba(_0x5be5e6==null?void 0x0:_0x5be5e6[_0x11ec9a(0x1ca)]);if(!_0x5be5e6||!_0x2903ca)return!0x1;let _0xf337f0={'arrow-left':'ArrowLeft','arrow-right':'ArrowRight','arrow-up':'ArrowUp','arrow-down':'ArrowDown'}[_0x5533fd];if(!_0xf337f0)return!0x1;let _0x2093c0=this[_0x11ec9a(0x1cb)](_0x2829d1,_0x3c02e2[_0x11ec9a(0x3f9)],_0x2903ca,_0xf337f0);return _0x2093c0?(_0x4eea44[_0x11ec9a(0x3df)]['selectElements']({'unitId':_0x3c02e2[_0x11ec9a(0x291)],'subUnitId':_0x3c02e2[_0x11ec9a(0x20a)]},[_0x2093c0],_0x2093c0),!0x0):!0x1;}[_0x4f3d14(0x1cb)](_0x15d523,_0x145c56,_0x409ba2,_0x41b2f7){const _0x6a198f=_0x4f3d14;let _0x11e31f=this[_0x6a198f(0x2e2)](_0x15d523,_0x409ba2[_0x6a198f(0x2ea)],_0x145c56);if(_0x409ba2[_0x6a198f(0x29f)]===null){if(_0x41b2f7===_0x6a198f(0x20d)){var _0x44ce8d;return((_0x44ce8d=_0x11e31f[_0x6a198f(0x431)](_0x25674e=>{const _0x38c20b=_0x6a198f;var _0x4877fd;return((_0x4877fd=_0x5585ba(_0x25674e[_0x38c20b(0x1ca)]))==null?void 0x0:_0x4877fd[_0x38c20b(0x350)])===_0x38c20b(0x445);}))==null?void 0x0:_0x44ce8d[_0x6a198f(0x3e9)])??null;}if(_0x41b2f7==='ArrowRight'){var _0x171db5;return((_0x171db5=_0x11e31f[_0x6a198f(0x431)](_0x490710=>{const _0x56dadc=_0x6a198f;var _0x3f2def;return(((_0x3f2def=_0x5585ba(_0x490710[_0x56dadc(0x1ca)]))==null?void 0x0:_0x3f2def[_0x56dadc(0x350)])??_0x56dadc(0x289))===_0x56dadc(0x289);}))==null?void 0x0:_0x171db5[_0x6a198f(0x3e9)])??null;}return null;}let _0x4d7616=_0x409ba2[_0x6a198f(0x350)]??_0x6a198f(0x289),_0x303eea=_0x4d7616===_0x6a198f(0x289)?_0x6a198f(0x20d):_0x6a198f(0x393),_0x2e405d=_0x4d7616===_0x6a198f(0x289)?_0x6a198f(0x393):'ArrowLeft';if(_0x41b2f7===_0x303eea)return _0x409ba2['parentNodeId'];if(_0x41b2f7===_0x2e405d){var _0x4611cb;return((_0x4611cb=_0x11e31f[0x0])==null?void 0x0:_0x4611cb[_0x6a198f(0x3e9)])??null;}if(_0x41b2f7===_0x6a198f(0x25c)||_0x41b2f7===_0x6a198f(0x320)){let _0x4e0acd=this[_0x6a198f(0x2e2)](_0x15d523,_0x409ba2[_0x6a198f(0x2ea)],_0x409ba2[_0x6a198f(0x29f)]),_0x490d2d=_0x4e0acd[_0x6a198f(0x383)](_0x41fa30=>_0x41fa30['elementId']===_0x145c56),_0x1710b7=_0x41b2f7===_0x6a198f(0x25c)?_0x4e0acd[_0x490d2d-0x1]:_0x4e0acd[_0x490d2d+0x1];return(_0x1710b7==null?void 0x0:_0x1710b7[_0x6a198f(0x3e9)])??null;}return null;}[_0x4f3d14(0x2e2)](_0x53ae3b,_0x4ceea5,_0x2f7267){const _0x42288e=_0x4f3d14;return Object[_0x42288e(0x2df)](_0x53ae3b)['filter'](_0x4d1c73=>{const _0x3e2a1d=_0x42288e;let _0x9cc942=_0x5585ba(_0x4d1c73[_0x3e2a1d(0x1ca)]);return(_0x9cc942==null?void 0x0:_0x9cc942['structureScopeId'])===_0x4ceea5&&_0x9cc942[_0x3e2a1d(0x29f)]===_0x2f7267&&_0x4d1c73[_0x3e2a1d(0x1ca)][_0x3e2a1d(0x418)]!==!0x1;})[_0x42288e(0x1aa)]((_0x284897,_0x1a6377)=>{const _0x363761=_0x42288e;let _0x339080=_0x5585ba(_0x284897[_0x363761(0x1ca)]),_0x21173f=_0x5585ba(_0x1a6377[_0x363761(0x1ca)]);return _0x401170(_0x339080==null?void 0x0:_0x339080['orderKey'],_0x21173f==null?void 0x0:_0x21173f[_0x363761(0x2c9)])||_0x284897['elementId']['localeCompare'](_0x1a6377[_0x363761(0x3e9)]);});}[_0x4f3d14(0x317)](_0x10e046){const _0x3fe93c=_0x4f3d14;var _0x521f1e;let _0x586b61=_0x10e046['elementStateService'][_0x3fe93c(0x310)](),_0x5a2003=_0x586b61[_0x3fe93c(0x206)]??_0x586b61[_0x3fe93c(0x375)][0x0];if(!_0x5a2003||_0x586b61[_0x3fe93c(0x375)][_0x3fe93c(0x452)]!==0x1||_0x586b61[_0x3fe93c(0x483)]||_0x586b61[_0x3fe93c(0x395)])return null;let _0x15415d=_0x586b61[_0x3fe93c(0x3ac)]??{'unitId':_0x10e046[_0x3fe93c(0x313)][_0x3fe93c(0x291)],'subUnitId':_0x10e046[_0x3fe93c(0x313)][_0x3fe93c(0x2e4)][_0x3fe93c(0x2c7)]()},_0x1e3c89=_0x10e046[_0x3fe93c(0x3d2)]['getElementData'](_0x15415d[_0x3fe93c(0x291)],_0x15415d[_0x3fe93c(0x20a)])[_0x5a2003],_0x5f268e=_0x5585ba(_0x1e3c89==null?void 0x0:_0x1e3c89[_0x3fe93c(0x1ca)]);return!_0x1e3c89||!_0x5f268e?null:{'unitId':_0x15415d[_0x3fe93c(0x291)],'subUnitId':_0x15415d['subUnitId'],'nodeId':_0x5a2003,'scopeId':_0x5f268e['structureScopeId'],'isRoot':_0x5f268e[_0x3fe93c(0x29f)]===null,'description':((_0x521f1e=_0x5f268e[_0x3fe93c(0x2e9)])==null?void 0x0:_0x521f1e['_note'])??''};}['_getBlankBoardContext'](_0x27ddd6){const _0x343bf6=_0x4f3d14;var _0xa65dad,_0x276657;let _0x31cef7=_0x27ddd6[_0x343bf6(0x3df)]['getSnapshot']();return _0x31cef7['activeEditingId']||_0x31cef7[_0x343bf6(0x395)]||_0x31cef7[_0x343bf6(0x375)][_0x343bf6(0x452)]>0x0||_0x31cef7[_0x343bf6(0x206)]?null:{'unitId':((_0xa65dad=_0x31cef7[_0x343bf6(0x3ac)])==null?void 0x0:_0xa65dad[_0x343bf6(0x291)])??_0x27ddd6[_0x343bf6(0x313)][_0x343bf6(0x291)],'subUnitId':((_0x276657=_0x31cef7[_0x343bf6(0x3ac)])==null?void 0x0:_0x276657[_0x343bf6(0x20a)])??_0x27ddd6[_0x343bf6(0x313)][_0x343bf6(0x2e4)][_0x343bf6(0x2c7)]()};}[_0x4f3d14(0x479)](_0x533cb0,_0x101871,_0x3dbeb4,_0x3b0b83){const _0x2eed2d=_0x4f3d14;let _0x31c895=_0x533cb0[_0x2eed2d(0x497)],_0x5956da=this[_0x2eed2d(0x30c)][_0x2eed2d(0x2ae)](_0x3dbeb4[_0x2eed2d(0x291)]),_0xb7fe12=_0x5956da(()=>_0x31c895[_0x2eed2d(0x32d)](_0x101871,_0x3dbeb4));Promise[_0x2eed2d(0x1ec)](_0xb7fe12)[_0x2eed2d(0x193)](_0x340daf=>{const _0xa47968=_0x2eed2d;_0x340daf&&_0x5956da(()=>_0x31c895[_0xa47968(0x32d)](_0x4b5dc4['id'],{'unitId':_0x3dbeb4[_0xa47968(0x291)],'subUnitId':_0x3dbeb4[_0xa47968(0x20a)],'scopeId':_0x3b0b83}));});}[_0x4f3d14(0x423)](_0x42f43d,_0x3fea9c,_0x28226e,_0x50a951,_0x4ce99d){const _0x4f9bc3=_0x4f3d14;let _0x3191dc={'unitId':_0x28226e[_0x4f9bc3(0x291)],'subUnitId':_0x28226e['subUnitId']},_0x2c3ca9=_0x42f43d[_0x4f9bc3(0x497)],_0x51685e=this[_0x4f9bc3(0x30c)][_0x4f9bc3(0x2ae)](_0x28226e[_0x4f9bc3(0x291)]),_0x216d88=_0x51685e(()=>_0x2c3ca9['executeCommand'](_0x3fea9c,_0x28226e));Promise['resolve'](_0x216d88)['then'](_0x3a8555=>{const _0x1add65=_0x4f9bc3;if(!_0x3a8555)return;_0x51685e(()=>_0x2c3ca9[_0x1add65(0x32d)](_0x4b5dc4['id'],{..._0x3191dc,'scopeId':_0x50a951})),_0x42f43d[_0x1add65(0x3df)][_0x1add65(0x42b)](_0x3191dc,[_0x4ce99d],_0x4ce99d);let _0x4e19b9=_0x42f43d[_0x1add65(0x218)];_0x4e19b9[_0x1add65(0x26a)](),_0x4e19b9['setEditing']({..._0x3191dc,'shapeId':_0x4ce99d,'shapeKey':_0x55b3e2(_0x3191dc[_0x1add65(0x291)],_0x4ce99d),'visible':!0x0});});}};Ln=J([q(0x0,_0x2d52c2),q(0x1,_0x27d0fe),q(0x2,_0x2c1c63),q(0x3,_0x132a38(_0x57f4a7))],Ln);function Rn(_0x49575e,_0x53b156){const _0x11e36c=_0x4f3d14;var _0x41627e,_0x400bd0;let _0x2c0834=typeof(_0x53b156==null?void 0x0:_0x53b156[_0x11e36c(0x291)])=='string'?_0x53b156[_0x11e36c(0x291)]:(_0x41627e=_0x49575e[_0x11e36c(0x47f)](_0x253a65)[_0x11e36c(0x245)](_0x8b4a1a['UNIVER_BOARD']))==null?void 0x0:_0x41627e[_0x11e36c(0x352)]();return _0x2c0834?((_0x400bd0=_0x49575e[_0x11e36c(0x47f)](_0x19658f)[_0x11e36c(0x21f)](_0x2c0834))==null?void 0x0:_0x400bd0['with'](Dn))??null:null;}function zn(_0x4844c9){const _0x48c704=_0x4f3d14;return _0x4844c9===_0x48c704(0x36f)||_0x4844c9===_0x48c704(0x2f4)||_0x4844c9===_0x48c704(0x419)||_0x4844c9==='arrow-down';}const Bn={'min':0x1,'max':0x5,'defaultValue':0x3},Vn={'min':0x0,'max':0x64,'defaultValue':0x64},Hn=[{'kind':_0x4f3d14(0x207),'titleKey':_0x4f3d14(0x247),'panel':'line'},{'kind':'fontColor','titleKey':_0x4f3d14(0x443)},{'kind':_0x4f3d14(0x3ad),'titleKey':_0x4f3d14(0x476)},{'kind':_0x4f3d14(0x207),'titleKey':'boards-mind-ui.toolbar.primary.more','panel':_0x4f3d14(0x3ab),'dividerBefore':!0x0}],Un={'addSibling':'add-sibling-or-child','addChild':'add-child','copy':_0x4f3d14(0x1a5),'paste':_0x4f3d14(0x381),'delete':_0x4f3d14(0x333)},Wn=[{'key':'mind-map','title':'Mind\x20map','items':[{'value':_0x4f3d14(0x334),'icon':'mindmap-horizontal','labelKey':'boards-mind-ui.panel.structureKind.mindmapHorizontal'},{'value':_0x4f3d14(0x1f9),'icon':_0x4f3d14(0x1f9),'labelKey':_0x4f3d14(0x1c8)}]},{'key':_0x4f3d14(0x2ce),'title':_0x4f3d14(0x1cc),'items':[{'value':_0x4f3d14(0x378),'icon':'tree-right','labelKey':_0x4f3d14(0x415)},{'value':_0x4f3d14(0x195),'icon':_0x4f3d14(0x195),'labelKey':_0x4f3d14(0x388)},{'value':'tree-alternate','icon':_0x4f3d14(0x2f6),'labelKey':_0x4f3d14(0x282)}]},{'key':_0x4f3d14(0x202),'title':'Timeline','items':[{'value':_0x4f3d14(0x243),'icon':'timeline-horizontal','labelKey':_0x4f3d14(0x491)},{'value':_0x4f3d14(0x481),'icon':_0x4f3d14(0x481),'labelKey':'boards-mind-ui.panel.structureKind.timelineVertical'}]}],Gn={'key':_0x4f3d14(0x209),'title':_0x4f3d14(0x437),'items':[{'value':_0x4f3d14(0x337),'icon':_0x4f3d14(0x1c1),'labelKey':_0x4f3d14(0x1ef)},{'value':_0x4f3d14(0x493),'icon':_0x4f3d14(0x2d6),'labelKey':_0x4f3d14(0x208)},{'value':_0x4f3d14(0x2f5),'icon':_0x4f3d14(0x477),'labelKey':_0x4f3d14(0x254)}]},Kn=_0x4f3d14(0x436);function qn(_0x330b3e,_0x54f0cf){const _0x54f03b=_0x4f3d14;_0x330b3e[_0x54f03b(0x32d)](jn,{'action':_0x54f0cf});}const Jn={'line':_0x5edb01,'more':_0x382a06};function Yn(_0xaa8e54){const _0xd1221f=_0x4f3d14;_0xaa8e54[_0xd1221f(0x1de)](),_0xaa8e54['preventDefault']();}function Xn(_0x3e93ef,_0x2662e4=_0x4f3d14(0x30d),_0x57b9ab){return _0x9b9447(_0x3a11ae,{'children':_0x9b9447(_0x3e93ef,{'className':_0x2662e4,'extend':_0x57b9ab})});}function Zn(_0x48d9ac){const _0x1cb664=_0x4f3d14;var _0x34db1e,_0x25987a;let _0x1c366e=(_0x48d9ac==null?void 0x0:_0x48d9ac[_0x1cb664(0x1eb)])??{},_0x14dc60=_0x1c366e[_0x1cb664(0x389)]&&typeof _0x1c366e[_0x1cb664(0x389)]==_0x1cb664(0x458)?_0x1c366e[_0x1cb664(0x389)]:{},_0x4e7565=(_0x34db1e=_0x14dc60[_0x1cb664(0x231)])==null||(_0x34db1e=_0x34db1e[_0x1cb664(0x3bf)])==null?void 0x0:_0x34db1e[_0x1cb664(0x1d5)];return{'color':typeof _0x1c366e['color']==_0x1cb664(0x351)?_0x1c366e[_0x1cb664(0x25e)]:(_0x4e7565==null||(_0x25987a=_0x4e7565['cl'])==null?void 0x0:_0x25987a['rgb'])??_0x4edc0e,'fontFamily':typeof _0x1c366e[_0x1cb664(0x2d0)]==_0x1cb664(0x351)?_0x1c366e[_0x1cb664(0x2d0)]:(_0x4e7565==null?void 0x0:_0x4e7565['ff'])??_0x5afc33['ff'],'fontSize':typeof _0x1c366e[_0x1cb664(0x434)]==_0x1cb664(0x3ba)?_0x1c366e[_0x1cb664(0x434)]:typeof(_0x4e7565==null?void 0x0:_0x4e7565['fs'])=='number'?_0x4e7565['fs']:_0x5afc33['fs'],'horizontalAlign':_0x1c366e[_0x1cb664(0x3d3)]??_0x14dc60['ha']??_0x572b51[_0x1cb664(0x1ab)],'textFill':_0x1c366e['textFill']&&typeof _0x1c366e[_0x1cb664(0x2d3)]==_0x1cb664(0x458)?_0x1c366e[_0x1cb664(0x2d3)]:_0x4e7565==null?void 0x0:_0x4e7565['textFill'],'verticalAlign':_0x1c366e['verticalAlign']??_0x14dc60['va']??_0x144c34[_0x1cb664(0x312)]};}function Qn(_0x2eaa31,_0x108bf6){const _0x5215d3=_0x4f3d14;if(!_0x108bf6)return;let _0xb0aea1=In(_0x108bf6);if(!_0xb0aea1['length'])return;let _0x33fc7d=_0xb0aea1['map'](_0x5e82d4=>_0x2eaa31[_0x5215d3(0x43c)]({'id':_0x5215d3(0x349),'binding':_0x5e82d4,'staticParameters':{'action':_0x108bf6}})??void 0x0)['filter'](_0x40dedd=>!!_0x40dedd);return _0x33fc7d[_0x5215d3(0x452)]?[...new Set(_0x33fc7d)][_0x5215d3(0x478)]('/'):void 0x0;}async function $n(_0x3f8580,_0x1755fc,_0x128021){const _0x400b88=_0x4f3d14;return await Promise[_0x400b88(0x1ec)](_0x1755fc(()=>_0x3f8580[_0x400b88(0x32d)](_0x32999d['id'],_0x128021)))?(await Promise[_0x400b88(0x1ec)](_0x1755fc(()=>_0x3f8580[_0x400b88(0x32d)](_0x4b5dc4['id'],{'unitId':_0x128021[_0x400b88(0x291)],'subUnitId':_0x128021[_0x400b88(0x20a)],'scopeId':_0x128021[_0x400b88(0x3a9)]}))),!0x0):!0x1;}async function er(_0x3f1d28,_0x38acc1,_0x4dfd20){const _0x3ce1a5=_0x4f3d14;return await Promise[_0x3ce1a5(0x1ec)](_0x38acc1(()=>_0x3f1d28[_0x3ce1a5(0x32d)](_0x523acc['id'],_0x4dfd20)))?(await Promise[_0x3ce1a5(0x1ec)](_0x38acc1(()=>_0x3f1d28[_0x3ce1a5(0x32d)](_0x4b5dc4['id'],{'unitId':_0x4dfd20[_0x3ce1a5(0x291)],'subUnitId':_0x4dfd20[_0x3ce1a5(0x20a)],'scopeId':_0x4dfd20[_0x3ce1a5(0x3a9)]}))),!0x0):!0x1;}function tr({className:_0x483df9=_0x4f3d14(0x30d)}){const _0x2072fb=_0x4f3d14;return _0x9b9447(_0x3a11ae,{'children':_0x27b706(_0x2072fb(0x278),{'className':_0x483df9,'viewBox':_0x2072fb(0x3ce),'fill':_0x2072fb(0x2a1),'aria-hidden':_0x2072fb(0x480),'children':[_0x9b9447(_0x2072fb(0x19f),{'d':_0x2072fb(0x1be),'stroke':'currentColor','strokeWidth':_0x2072fb(0x42a),'strokeLinecap':_0x2072fb(0x28e)}),_0x9b9447(_0x2072fb(0x19f),{'d':_0x2072fb(0x21a),'stroke':_0x2072fb(0x1fe),'strokeWidth':_0x2072fb(0x42a),'strokeLinecap':_0x2072fb(0x28e)}),_0x9b9447(_0x2072fb(0x19f),{'d':_0x2072fb(0x3d5),'stroke':_0x2072fb(0x1fe),'strokeWidth':'1.8','strokeLinecap':_0x2072fb(0x28e)})]})});}function nr({icon:_0x5db6b5}){const _0x2f995e=_0x4f3d14;let _0x20ff4c=_0x2f995e(0x1c0),_0x2bcc8f={'stroke':_0x2f995e(0x1fe),'strokeWidth':2.6,'strokeLinecap':_0x2f995e(0x28e),'strokeLinejoin':_0x2f995e(0x28e)},_0x4c42ea={'stroke':_0x20ff4c,'strokeWidth':3.2,'strokeLinecap':'round'};return _0x27b706(_0x2f995e(0x278),{'className':'univer-h-9\x20univer-w-12','viewBox':_0x2f995e(0x3a2),'fill':_0x2f995e(0x2a1),'aria-hidden':_0x2f995e(0x480),'children':[_0x5db6b5==='mindmap-horizontal'&&_0x27b706(_0x219099,{'children':[_0x9b9447(_0x2f995e(0x19f),{'d':_0x2f995e(0x201),..._0x2bcc8f}),_0x9b9447(_0x2f995e(0x19f),{'d':'M12\x2015h9M12\x2028h9M12\x2041h9M59\x2015h9M59\x2028h9M59\x2041h9',..._0x4c42ea})]}),_0x5db6b5===_0x2f995e(0x1f9)&&_0x27b706(_0x219099,{'children':[_0x9b9447('path',{'d':'M21\x2028h38M40\x2011v34M28\x2016c7\x204\x2010\x208\x2012\x2012\x202-4\x205-8\x2012-12M28\x2040c7-4\x2010-8\x2012-12\x202\x204\x205\x208\x2012\x2012',..._0x2bcc8f}),_0x9b9447(_0x2f995e(0x19f),{'d':_0x2f995e(0x196),'stroke':_0x20ff4c,'strokeWidth':2.6,'strokeLinecap':_0x2f995e(0x28e),'strokeDasharray':_0x2f995e(0x200)})]}),_0x5db6b5==='tree-right'&&_0x27b706(_0x219099,{'children':[_0x9b9447(_0x2f995e(0x19f),{'d':'M24\x2012v32M24\x2019c0\x204\x203\x206\x207\x206h7M24\x2029c0\x204\x203\x206\x207\x206h7M24\x2039c0\x204\x203\x206\x207\x206h7',..._0x2bcc8f}),_0x9b9447('path',{'d':_0x2f995e(0x1b8),..._0x4c42ea}),_0x9b9447(_0x2f995e(0x1f6),{'cx':'24','cy':'12','r':'3','fill':'currentColor'})]}),_0x5db6b5===_0x2f995e(0x195)&&_0x27b706(_0x219099,{'children':[_0x9b9447(_0x2f995e(0x19f),{'d':_0x2f995e(0x316),..._0x2bcc8f}),_0x9b9447(_0x2f995e(0x19f),{'d':'M20\x2025h13M20\x2035h13M20\x2045h13',..._0x4c42ea}),_0x9b9447(_0x2f995e(0x1f6),{'cx':'56','cy':'12','r':'3','fill':'currentColor'})]}),_0x5db6b5===_0x2f995e(0x2f6)&&_0x27b706(_0x219099,{'children':[_0x9b9447(_0x2f995e(0x19f),{'d':_0x2f995e(0x373),..._0x2bcc8f}),_0x9b9447(_0x2f995e(0x19f),{'d':_0x2f995e(0x45a),..._0x4c42ea}),_0x9b9447(_0x2f995e(0x1f6),{'cx':'42','cy':'12','r':'3','fill':_0x2f995e(0x1fe)})]}),_0x5db6b5===_0x2f995e(0x243)&&_0x27b706(_0x219099,{'children':[_0x9b9447(_0x2f995e(0x19f),{'d':_0x2f995e(0x3f2),..._0x2bcc8f}),_0x9b9447(_0x2f995e(0x19f),{'d':_0x2f995e(0x36b),..._0x4c42ea}),_0x9b9447(_0x2f995e(0x1f6),{'cx':'17','cy':'31','r':'3','fill':_0x2f995e(0x1fe)})]}),_0x5db6b5===_0x2f995e(0x481)&&_0x27b706(_0x219099,{'children':[_0x9b9447('path',{'d':_0x2f995e(0x2f7),..._0x2bcc8f}),_0x9b9447('path',{'d':'M56\x2039h11M13\x2050h11',..._0x4c42ea}),_0x9b9447(_0x2f995e(0x1f6),{'cx':'40','cy':'9','r':'3','fill':'currentColor'})]}),_0x5db6b5===_0x2f995e(0x1c1)&&_0x9b9447(_0x219099,{'children':_0x9b9447(_0x2f995e(0x19f),{'d':'M16\x2028c16\x200\x2025-13\x2043-13M16\x2028c16\x200\x2025\x2013\x2043\x2013',..._0x2bcc8f})}),_0x5db6b5===_0x2f995e(0x2d6)&&_0x9b9447(_0x219099,{'children':_0x9b9447(_0x2f995e(0x19f),{'d':_0x2f995e(0x410),..._0x2bcc8f})}),_0x5db6b5==='branch-orthogonal'&&_0x9b9447(_0x219099,{'children':_0x9b9447('path',{'d':_0x2f995e(0x413),..._0x2bcc8f})})]});}function rr(_0x3c5f2a,_0x484996){const _0x1e9c28=_0x4f3d14;let _0x26b8d8=_0x3c5f2a['textStyle'],_0x4213c9=_0x5eb915(_0x26b8d8),_0xfc1dfd={..._0x4213c9[_0x1e9c28(0x25e)]===void 0x0?null:{'color':_0x4213c9[_0x1e9c28(0x25e)]},..._0x4213c9[_0x1e9c28(0x2d0)]===void 0x0?null:{'fontFamily':_0x4213c9[_0x1e9c28(0x2d0)]},..._0x4213c9[_0x1e9c28(0x434)]===void 0x0?null:{'fontSize':_0x4213c9[_0x1e9c28(0x434)]},..._0x4213c9[_0x1e9c28(0x2fc)]===void 0x0?null:{'bold':_0x4213c9[_0x1e9c28(0x2fc)]},..._0x4213c9[_0x1e9c28(0x1b4)]===void 0x0?null:{'italic':_0x4213c9[_0x1e9c28(0x1b4)]},..._0x4213c9[_0x1e9c28(0x3db)]===void 0x0?null:{'underline':_0x4213c9[_0x1e9c28(0x3db)]},..._0x4213c9[_0x1e9c28(0x28a)]===void 0x0?null:{'strikethrough':_0x4213c9['strikethrough']},..._0x4213c9[_0x1e9c28(0x2d3)]===void 0x0?null:{'textFill':_0x4213c9['textFill']}};_0x3c5f2a[_0x1e9c28(0x3d3)]!==void 0x0&&(_0xfc1dfd['horizontalAlign']=_0x3c5f2a['horizontalAlign']),_0x3c5f2a[_0x1e9c28(0x31f)]!==void 0x0&&(_0xfc1dfd[_0x1e9c28(0x31f)]=_0x3c5f2a[_0x1e9c28(0x31f)]),Object['keys'](_0xfc1dfd)['length']>0x0&&_0x484996({'textStyle':_0xfc1dfd});}function ir(_0x57437c,_0x1f240d,_0x339a6f){const _0x25ce49=_0x4f3d14;let _0x54934a=_0x57437c??{},_0x5e0f6f=_0x543a5f(_0x54934a,_0x1f240d),_0x2ea1b2=_0x5e0f6f[_0x25ce49(0x1eb)]??_0x54934a[_0x25ce49(0x1eb)]??{};return{..._0x54934a,..._0x5e0f6f,'shapeText':{..._0x2ea1b2,..._0x339a6f[_0x25ce49(0x25e)]===void 0x0?null:{'color':_0x339a6f['color']},..._0x339a6f['fontSize']===void 0x0?null:{'fontSize':_0x339a6f[_0x25ce49(0x434)]},..._0x339a6f['bold']===void 0x0?null:{'bold':_0x339a6f[_0x25ce49(0x2fc)]},..._0x339a6f[_0x25ce49(0x1b4)]===void 0x0?null:{'italic':_0x339a6f[_0x25ce49(0x1b4)]},..._0x339a6f[_0x25ce49(0x3db)]===void 0x0?null:{'underline':_0x339a6f[_0x25ce49(0x3db)]},..._0x339a6f[_0x25ce49(0x28a)]===void 0x0?null:{'strikethrough':_0x339a6f[_0x25ce49(0x28a)]},..._0x339a6f[_0x25ce49(0x3d3)]===void 0x0?null:{'horizontalAlign':_0x339a6f['horizontalAlign']},..._0x339a6f[_0x25ce49(0x31f)]===void 0x0?null:{'verticalAlign':_0x339a6f[_0x25ce49(0x31f)]},..._0x339a6f[_0x25ce49(0x2d3)]===void 0x0?null:{'textFill':_0x339a6f[_0x25ce49(0x2d3)]}}};}function ar(_0x5d7644,_0x4d2695){const _0x49a2a3=_0x4f3d14;let _0x2f6e90=_0x5d7644==null?void 0x0:_0x5d7644[_0x49a2a3(0x267)];_0x2f6e90&&_0x4d2695({'lineType':_0x2f6e90[_0x49a2a3(0x340)]===_0x16fb53[_0x49a2a3(0x498)]||_0x2f6e90[_0x49a2a3(0x340)]===_0x16fb53['SquareDot']?_0x49a2a3(0x271):_0x2f6e90['dashType']===_0x16fb53[_0x49a2a3(0x4ad)]?_0x49a2a3(0x223):'solid',...typeof _0x2f6e90[_0x49a2a3(0x48c)]==_0x49a2a3(0x3ba)?{'strokeWidth':_0x2f6e90[_0x49a2a3(0x48c)]}:null,...typeof _0x2f6e90[_0x49a2a3(0x25e)]=='string'?{'stroke':_0x2f6e90[_0x49a2a3(0x25e)]}:null,...typeof _0x2f6e90[_0x49a2a3(0x263)]==_0x49a2a3(0x3ba)?{'opacity':_0x2f6e90['opacity']}:null});}function or(_0x57fbeb){const _0xc4ce3f=_0x4f3d14;return _0x57fbeb!=null&&_0x57fbeb[_0xc4ce3f(0x452)]?_0x57fbeb[0x0]<=0x2?_0x16fb53[_0xc4ce3f(0x498)]:_0x16fb53[_0xc4ce3f(0x4ad)]:_0x16fb53['Solid'];}function sr(_0x54382b){const _0x45b7e7=_0x4f3d14;return{'stroke':{'lineStrokeType':_0x48e250['SolidLine'],'dashType':or(_0x54382b==null?void 0x0:_0x54382b[_0x45b7e7(0x223)]),'color':(_0x54382b==null?void 0x0:_0x54382b['stroke'])??_0x121c72,'width':(_0x54382b==null?void 0x0:_0x54382b[_0x45b7e7(0x2b3)])??Bn[_0x45b7e7(0x49b)],'opacity':(_0x54382b==null?void 0x0:_0x54382b[_0x45b7e7(0x263)])??Vn['defaultValue']/0x64}};}function cr(_0xe5e558){const _0x221c20=_0x4f3d14;var _0x595006,_0x1fdabf,_0x3f2d49;let _0x2ce088=_0x1bf837(_0x27d0fe),_0x2cea48=_0x1bf837(_0x2c1c63),_0x2fdf66=_0x1bf837(_0x4eab55),_0x9e0cb5=_0x1bf837(_0x57f4a7),[_0x44699f,_0x33d42d]=_0x34d7b2(null),[_0x4bd150,_0x13abec]=_0x34d7b2((_0x595006=_0xe5e558[_0x221c20(0x353)][_0x221c20(0x261)])==null?void 0x0:_0x595006[_0x221c20(0x38b)]),_0x3cbffb=_0xe5e558[_0x221c20(0x353)]['extraProps'];if(!_0x3cbffb)return null;let _0x40e7ff={'unitId':_0x3cbffb[_0x221c20(0x291)],'subUnitId':_0x3cbffb[_0x221c20(0x20a)]},_0x48595d=_0x34f6b0=>{const _0x488fea=_0x221c20;_0x2ce088[_0x488fea(0x32d)](_0x3d67d8['id'],{..._0x40e7ff,'nodeId':_0x3cbffb[_0x488fea(0x3e9)],..._0x34f6b0});},_0x38143b=(_0x2213a0,_0x4146d3)=>{const _0x3b1cca=_0x221c20;let _0x4850eb=_0x4146d3??{};_0x13abec(_0xa397fa=>({..._0xa397fa??{},..._0x4850eb})),_0x48595d({..._0x4850eb['fill']===void 0x0?null:{'fill':_0x4850eb[_0x3b1cca(0x222)]},..._0x4850eb[_0x3b1cca(0x267)]===void 0x0?null:{'stroke':_0x4850eb['stroke']}});},_0x56db15=_0x2863eb=>{const _0x771f5f=_0x221c20;_0x2ce088[_0x771f5f(0x32d)](_0x411ecf['id'],{..._0x40e7ff,'nodeId':_0x3cbffb[_0x771f5f(0x3e9)],'style':_0x2863eb});},_0x52dc03=sr(_0x3cbffb[_0x221c20(0x288)]),_0x3c892d=_0x38dffb=>Qn(_0x2cea48,_0x38dffb),_0x1de404=_0x18fd4c=>{qn(_0x2ce088,_0x18fd4c);},_0x17b3e9=(_0x4bd150==null?void 0x0:_0x4bd150[_0x221c20(0x1eb)])??{},_0x5b9a5a=Zn(_0x4bd150),_0x43e164=_0x38909e=>{rr(_0x38909e,_0x4fc099=>{const _0x4884d3=_0x5652;_0x13abec(_0x198fcd=>ir(_0x198fcd,_0x38909e,_0x4fc099[_0x4884d3(0x1d5)])),_0x48595d(_0x4fc099);});},_0x250b95=[{'label':_0x2fdf66['t']('boards-mind-ui.alignLeft'),'value':_0x572b51[_0x221c20(0x1ab)],'icon':_0x9b9447(_0x10ad46,{})},{'label':_0x2fdf66['t'](_0x221c20(0x2be)),'value':_0x572b51[_0x221c20(0x2b9)],'icon':_0x9b9447(_0xd2c873,{})},{'label':_0x2fdf66['t']('boards-mind-ui.alignRight'),'value':_0x572b51[_0x221c20(0x1c9)],'icon':_0x9b9447(_0x97b6f7,{})},{'label':_0x2fdf66['t'](_0x221c20(0x4a5)),'value':_0x572b51[_0x221c20(0x3d7)],'icon':_0x9b9447(_0x233f6c,{})}],_0x3eab06=[{'label':_0x2fdf66['t']('boards-mind-ui.alignTop'),'value':_0x144c34[_0x221c20(0x3ed)],'icon':_0x9b9447(_0x1c51ff,{})},{'label':_0x2fdf66['t'](_0x221c20(0x40b)),'value':_0x144c34[_0x221c20(0x312)],'icon':_0x9b9447(_0x56f7d4,{})},{'label':_0x2fdf66['t'](_0x221c20(0x44e)),'value':_0x144c34[_0x221c20(0x3d4)],'icon':_0x9b9447(_0x4cbc58,{})}],_0x6520f4=()=>{const _0x8e3112=_0x221c20;_0x1de404(_0x8e3112(0x1e2));},_0x1c1f32=()=>{const _0x30bb50=_0x221c20;_0x1de404(_0x30bb50(0x2a9));},_0x5106f3=()=>{const _0x3a84ff=_0x221c20;_0x1de404(_0x3a84ff(0x1a5));},_0x1010ac=()=>{_0x1de404('paste');},_0x4518c9=()=>{const _0xd4654c=_0x221c20;_0x1de404(_0xd4654c(0x333));},_0x429323=((_0x1fdabf=_0x3cbffb[_0x221c20(0x2bc)])==null?void 0x0:_0x1fdabf[_0x221c20(0x35e)])??_0x1fa9e8[_0x221c20(0x35e)],_0xaca9d5=_0x22ba0f(_0x429323,((_0x3f2d49=_0x3cbffb[_0x221c20(0x2bc)])==null?void 0x0:_0x3f2d49[_0x221c20(0x402)])??_0x1fa9e8[_0x221c20(0x402)]),_0x20bf09=_0x53d09f=>{const _0x431bbd=_0x221c20;let _0x1631f8=_0x22ba0f(_0x53d09f,_0xaca9d5);$n(_0x2ce088,_0x9e0cb5['createRunner'](_0x3cbffb[_0x431bbd(0x291)]),{..._0x40e7ff,'scopeId':_0x3cbffb[_0x431bbd(0x3a9)],'structureKind':_0x53d09f,..._0x1631f8===_0xaca9d5?null:{'branchLineType':_0x1631f8}}),_0x33d42d(null);},_0x1a7f5e=_0x2af0c0=>{const _0x5c48f9=_0x221c20;er(_0x2ce088,_0x9e0cb5[_0x5c48f9(0x2ae)](_0x3cbffb[_0x5c48f9(0x291)]),{..._0x40e7ff,'scopeId':_0x3cbffb[_0x5c48f9(0x3a9)],'branchLineType':_0x2af0c0}),_0x33d42d(null);},_0x9a8b92=(_0x12f608,_0x167da1,_0x2513fc,_0x7a52e=!0x1)=>_0x9b9447('button',{'type':_0x221c20(0x26f),'aria-label':_0x2fdf66['t'](_0x12f608['labelKey']),'disabled':_0x7a52e,'className':_0x461cd5(_0x221c20(0x495),_0x167da1&&_0x221c20(0x25d),_0x7a52e&&'univer-cursor-not-allowed\x20univer-text-gray-300\x20hover:univer-bg-transparent'),'onMouseDown':Yn,'onPointerDown':Yn,'onClick':_0xddec92=>{const _0x3833a2=_0x221c20;_0xddec92[_0x3833a2(0x1de)](),!_0x7a52e&&_0x2513fc();},'children':_0x9b9447(nr,{'icon':_0x12f608[_0x221c20(0x270)]})},_0x12f608['value']),_0x2fb8bd=()=>_0x27b706(_0x221c20(0x417),{'className':_0x221c20(0x3aa),'onMouseDown':_0x56d614=>_0x56d614[_0x221c20(0x1de)](),'onPointerDown':_0x4db428=>_0x4db428['stopPropagation'](),'children':[Wn['map'](_0x5574d0=>_0x27b706(_0x221c20(0x417),{'className':_0x221c20(0x2fa),'children':[_0x9b9447('div',{'className':_0x221c20(0x468),'children':_0x5574d0[_0x221c20(0x3c2)]}),_0x9b9447('div',{'className':_0x221c20(0x1b0),'style':{'gridTemplateColumns':_0x221c20(0x492)+_0x5574d0['items'][_0x221c20(0x452)]+_0x221c20(0x1b1)},'children':_0x5574d0[_0x221c20(0x2ef)]['map'](_0x233af6=>_0x9a8b92(_0x233af6,_0x233af6['value']===_0x429323,()=>_0x20bf09(_0x233af6['value'])))})]},_0x5574d0[_0x221c20(0x3f0)])),_0x9b9447(_0x1d1b23,{}),_0x27b706(_0x221c20(0x417),{'className':_0x221c20(0x47d),'children':[_0x9b9447(_0x221c20(0x417),{'className':_0x221c20(0x468),'children':Gn['title']}),_0x9b9447('div',{'className':_0x221c20(0x1b0),'style':{'gridTemplateColumns':_0x221c20(0x492)+Gn['items'][_0x221c20(0x452)]+',\x20minmax(0,\x201fr))'},'children':Gn[_0x221c20(0x2ef)][_0x221c20(0x2c1)](_0x1e081d=>_0x9a8b92(_0x1e081d,_0x1e081d[_0x221c20(0x1bb)]===_0xaca9d5,()=>_0x1a7f5e(_0x1e081d[_0x221c20(0x1bb)]),_0x1e081d['value']===_0x221c20(0x337)&&!_0x35ce36(_0x429323)))})]})]}),_0x2b1fe0=_0x14dce5=>{const _0x3fb91e=_0x221c20;switch(_0x14dce5){case _0x3fb91e(0x314):return _0x9b9447(_0x26de67,{'title':_0x2fdf66['t'](_0x3fb91e(0x3ec)),'shapeData':_0x52dc03,'modeOptions':['solid','dash',_0x3fb91e(0x271)],'showDashDropdown':!0x1,'widthRange':{'min':Bn[_0x3fb91e(0x246)],'max':Bn[_0x3fb91e(0x31c)],'step':0x1},'onUpdateShapeData':(_0x384482,_0xfc32bd)=>{ar(_0xfc32bd,_0x56db15);}});case'more':return _0x9b9447(_0x2cf51f,{'title':_0x2fdf66['t'](_0x3fb91e(0x3af)),'minWidthClassName':'univer-min-w-[240px]','children':_0x27b706('div',{'className':_0x3fb91e(0x3fe),'children':[_0x9b9447(_0x5a5f70,{'label':_0x2fdf66['t']('boards-mind-ui.toolbar.action.addSibling'),'shortcut':_0x3c892d(Un[_0x3fb91e(0x42e)]),'onClick':_0x6520f4}),_0x9b9447(_0x5a5f70,{'label':_0x2fdf66['t'](_0x3fb91e(0x221)),'shortcut':_0x3c892d(Un[_0x3fb91e(0x244)]),'onClick':_0x1c1f32}),_0x9b9447(_0x1d1b23,{}),_0x9b9447(_0x5a5f70,{'label':_0x2fdf66['t'](_0x3fb91e(0x396)),'shortcut':_0x3c892d(Un['copy']),'onClick':_0x5106f3}),_0x9b9447(_0x5a5f70,{'label':_0x2fdf66['t'](_0x3fb91e(0x46b)),'shortcut':_0x3c892d(Un[_0x3fb91e(0x381)]),'onClick':_0x1010ac}),_0x9b9447(_0x5a5f70,{'label':_0x2fdf66['t'](_0x3fb91e(0x194)),'shortcut':_0x3c892d(Un[_0x3fb91e(0x333)]),'onClick':_0x4518c9})]})});default:return null;}},_0x12842e=Hn[_0x221c20(0x265)](_0x50b745=>{const _0x35d364=_0x221c20;let _0x532d6f=[];if(_0x50b745[_0x35d364(0x27d)]&&_0x532d6f[_0x35d364(0x3ee)](_0x9b9447(_0x1d1b23,{'orientation':'vertical'},_0x35d364(0x3a8)+_0x50b745[_0x35d364(0x315)])),_0x50b745[_0x35d364(0x315)]===_0x35d364(0x3ad))return _0x532d6f['push'](_0x9b9447(_0x293f98,{'title':_0x2fdf66['t'](_0x35d364(0x29c)),'fontFamily':_0x5b9a5a['fontFamily'],'textStyle':{'isBold':_0x17b3e9[_0x35d364(0x2fc)]===!0x0,'isItalic':_0x17b3e9[_0x35d364(0x1b4)]===!0x0,'isUnderline':_0x17b3e9[_0x35d364(0x3db)]===!0x0,'isStrike':_0x17b3e9[_0x35d364(0x28a)]===!0x0},'horizontalAlign':_0x5b9a5a[_0x35d364(0x3d3)],'verticalAlign':_0x5b9a5a[_0x35d364(0x31f)],'horizontalAlignOptions':_0x250b95,'verticalAlignOptions':_0x3eab06,'onUpdateText':_0x43e164},_0x50b745['kind'])),_0x532d6f;if(_0x50b745[_0x35d364(0x315)]===_0x35d364(0x425)){let _0x5851fc={'fs':_0x5b9a5a['fontSize'],'cl':{'rgb':_0x5b9a5a[_0x35d364(0x25e)]},..._0x5b9a5a[_0x35d364(0x2d3)]===void 0x0?null:{'textFill':_0x5b9a5a[_0x35d364(0x2d3)]}};return _0x532d6f[_0x35d364(0x3ee)](_0x9b9447(_0x19e9cd,{'title':_0x2fdf66['t']('boards-mind-ui.toolbar.action.fontColor'),'textStyle':_0x5851fc,'fallbackColor':_0x5b9a5a[_0x35d364(0x25e)],'onChange':_0x709ca0=>_0x43e164({'textStyle':_0x709ca0})},_0x50b745[_0x35d364(0x315)])),_0x532d6f[_0x35d364(0x3ee)](_0x9b9447(_0x1d6b66,{'value':String(_0x5b9a5a[_0x35d364(0x434)]),'onChange':_0x2454bc=>{_0x43e164({'textStyle':{'fs':_0x2454bc}});}},_0x35d364(0x401))),_0x532d6f;}return _0x532d6f[_0x35d364(0x3ee)](_0x9b9447(_0x53b00d,{'open':_0x44699f===_0x50b745[_0x35d364(0x41b)],'overlay':_0x2b1fe0(_0x50b745['panel']),'onOpenChange':_0x3cbd6a=>_0x33d42d(_0x3cbd6a?_0x50b745['panel']:null),'children':_0x9b9447(_0x35d364(0x255),{'children':_0x9b9447(_0x3945a0,{'title':_0x2fdf66['t'](_0x50b745[_0x35d364(0x2ed)]),'active':_0x44699f===_0x50b745[_0x35d364(0x41b)],'icon':Xn(Jn[_0x50b745[_0x35d364(0x41b)]]),'sizeClassName':_0x35d364(0x1cd),'onMouseDown':Yn,'onPointerDown':Yn})})},_0x50b745[_0x35d364(0x41b)])),_0x532d6f;}),_0x441c1d=[..._0x3cbffb[_0x221c20(0x23f)]?[_0x9b9447(_0x53b00d,{'open':_0x44699f===_0x221c20(0x2bc),'overlay':_0x2fb8bd(),'onOpenChange':_0x2a8f8c=>_0x33d42d(_0x2a8f8c?'layout':null),'children':_0x9b9447(_0x221c20(0x255),{'children':_0x9b9447(_0x3945a0,{'title':_0x2fdf66['t']('boards-mind-ui.toolbar.action.layout'),'active':_0x44699f==='layout','icon':_0x9b9447(tr,{}),'sizeClassName':'univer-h-7\x20univer-min-w-9\x20univer-w-auto\x20univer-gap-1\x20univer-px-1.5','onMouseDown':Yn,'onPointerDown':Yn})})},'mind-map-layout-dropdown'),_0x9b9447(_0x1d1b23,{'orientation':_0x221c20(0x2a0)},_0x221c20(0x473))]:[],_0x9b9447(_0xb1360f,{'title':_0x2fdf66['t']('boards-mind-ui.toolbar.action.fill'),'shapeData':_0x4bd150??{},'onUpdateShapeData':_0x38143b},_0x221c20(0x1fd)),_0x9b9447(_0x559b96,{'title':_0x2fdf66['t'](_0x221c20(0x442)),'shapeData':_0x4bd150??{},'onUpdateShapeData':_0x38143b},_0x221c20(0x420)),_0x9b9447(_0x1d1b23,{'orientation':_0x221c20(0x2a0)},'style-divider')];return _0x27b706(_0x31c2c5,{'maxWidthClassName':_0x221c20(0x2ba),'onMouseDown':_0x50d8bf=>_0x50d8bf[_0x221c20(0x1de)](),'children':[_0x441c1d,_0x12842e]});}function lr(_0xbf8815){let {left:_0x3271db,top:_0x42d514,width:_0x581b55,height:_0x4b3634}=_0xbf8815;return{'left':_0x3271db,'right':_0x3271db+_0x581b55,'top':_0x42d514-0x38,'bottom':_0x42d514+_0x4b3634};}let ur=class extends _0x41f8e5{constructor(_0xb664ff,_0x3e58a2,_0x566b53,_0x8d1162,_0x40e157,_0x548bba){const _0x3e6b8a=_0x4f3d14;super(),this[_0x3e6b8a(0x414)]=_0xb664ff,this[_0x3e6b8a(0x22e)]=_0x3e58a2,this[_0x3e6b8a(0x3dd)]=_0x566b53,this[_0x3e6b8a(0x1a3)]=_0x8d1162,this[_0x3e6b8a(0x28b)]=_0x40e157,this[_0x3e6b8a(0x3b4)]=_0x548bba,K(this,'_popupDisposable',null),K(this,'_popupSelectionKey',null),this[_0x3e6b8a(0x45b)]();}[_0x4f3d14(0x45e)](){const _0x3cc688=_0x4f3d14;this[_0x3cc688(0x2d2)](),super['dispose']();}['_init'](){const _0x21dad3=_0x4f3d14;let _0x48f4bb=this[_0x21dad3(0x414)][_0x21dad3(0x48b)][_0x21dad3(0x1dc)]();this[_0x21dad3(0x44d)](_0x122c68(_0x48f4bb[_0x21dad3(0x3bd)][_0x21dad3(0x46c)](_0x41cd5b(this[_0x21dad3(0x494)]))[_0x21dad3(0x345)](()=>this[_0x21dad3(0x2b5)]()))),this['disposeWithMe'](_0x122c68(_0x48f4bb[_0x21dad3(0x256)][_0x21dad3(0x46c)](_0x41cd5b(this[_0x21dad3(0x494)]))['subscribe'](()=>this[_0x21dad3(0x394)]()))),this[_0x21dad3(0x44d)](_0x122c68(_0x48f4bb['changeStart$'][_0x21dad3(0x46c)](_0x41cd5b(this[_0x21dad3(0x494)]))[_0x21dad3(0x345)](()=>this[_0x21dad3(0x2d2)]()))),this[_0x21dad3(0x44d)](_0x122c68(_0x48f4bb[_0x21dad3(0x34d)][_0x21dad3(0x46c)](_0x41cd5b(this[_0x21dad3(0x494)]))[_0x21dad3(0x345)](()=>setTimeout(()=>this[_0x21dad3(0x2b5)](),0x0)))),this[_0x21dad3(0x44d)](_0x122c68(this[_0x21dad3(0x1a3)]['state$'][_0x21dad3(0x46c)](_0x41cd5b(this[_0x21dad3(0x494)]))[_0x21dad3(0x345)](()=>setTimeout(()=>this[_0x21dad3(0x2b5)](),0x0)))),this['disposeWithMe'](_0x122c68(this[_0x21dad3(0x3b4)]['interactionSurfaceActive$'][_0x21dad3(0x46c)](_0x41cd5b(this['dispose$']))[_0x21dad3(0x345)](_0x534208=>{const _0x3376d4=_0x21dad3;_0x534208?this[_0x3376d4(0x2d2)]():setTimeout(()=>this['_showPopupForSelection'](),0x0);}))),this[_0x21dad3(0x44d)](_0x122c68(this['_boardTextEditingService'][_0x21dad3(0x482)][_0x21dad3(0x46c)](_0x41cd5b(this[_0x21dad3(0x494)]))[_0x21dad3(0x345)](_0x40d760=>{const _0x510c72=_0x21dad3;(_0x40d760==null?void 0x0:_0x40d760[_0x510c72(0x291)])===this[_0x510c72(0x414)]['unitId']&&(_0x40d760[_0x510c72(0x418)]?this[_0x510c72(0x2d2)]():setTimeout(()=>this[_0x510c72(0x2b5)](),0x0));})));}[_0x4f3d14(0x2d2)](){const _0x34024f=_0x4f3d14;var _0x2c0836;(_0x2c0836=this[_0x34024f(0x421)])==null||_0x2c0836[_0x34024f(0x45e)](),this[_0x34024f(0x421)]=null,this[_0x34024f(0x22f)]=null;}[_0x4f3d14(0x394)](){setTimeout(()=>{const _0x1e7c63=_0x5652;this[_0x1e7c63(0x25f)]()||this[_0x1e7c63(0x2d2)]();},0x0);}['_isPopupSelectionStillActive'](){const _0x47d975=_0x4f3d14;let _0x5c79f7=this[_0x47d975(0x1a3)][_0x47d975(0x310)]();return!!_0x5c79f7[_0x47d975(0x3ac)]&&_0x5c79f7[_0x47d975(0x375)][_0x47d975(0x452)]>0x0&&this[_0x47d975(0x22f)]===this[_0x47d975(0x3a1)](_0x5c79f7['context'][_0x47d975(0x291)],_0x5c79f7[_0x47d975(0x3ac)][_0x47d975(0x20a)],_0x5c79f7[_0x47d975(0x375)]);}[_0x4f3d14(0x3a1)](_0x393878,_0x5b3da1,_0x2dc6e3){const _0x5cc4fe=_0x4f3d14;return _0x393878+':'+_0x5b3da1+':'+_0x2dc6e3[_0x5cc4fe(0x478)](',');}[_0x4f3d14(0x27f)](_0x271466,_0x11938a,_0x1f3af4,_0x5b8e25){const _0x213e59=_0x4f3d14;let _0x263a1e=this[_0x213e59(0x3dd)][_0x213e59(0x198)](_0x271466,_0x11938a),_0x1d4871=Object['values'](_0x263a1e)[_0x213e59(0x431)](_0xee064b=>{const _0x43d380=_0x213e59;let _0x3b9f86=_0x5dd284(_0xee064b['element']);return(_0x3b9f86==null?void 0x0:_0x3b9f86['structureScopeId'])===_0x1f3af4&&_0x3b9f86[_0x43d380(0x1c7)]===_0x5b8e25;});if(_0x1d4871&&'connectorData'in _0x1d4871[_0x213e59(0x1ca)])return _0x1d4871[_0x213e59(0x1ca)]['connectorData'][_0x213e59(0x281)];}[_0x4f3d14(0x2b5)](){const _0x3e002e=_0x4f3d14;var _0x5353f6,_0x36d59e,_0x3da1a3;if(this[_0x3e002e(0x3b4)][_0x3e002e(0x4a0)]){this[_0x3e002e(0x2d2)]();return;}let _0x2e755d=this['_boardTextEditingService']['getEditing']();if((_0x2e755d==null?void 0x0:_0x2e755d[_0x3e002e(0x418)])===!0x0&&_0x2e755d['unitId']===this[_0x3e002e(0x414)][_0x3e002e(0x291)]){this[_0x3e002e(0x2d2)]();return;}let _0x48844b=this[_0x3e002e(0x1a3)][_0x3e002e(0x310)]();if(_0x48844b['isTransforming']||_0x4b1317({'context':_0x48844b[_0x3e002e(0x3ac)],'selectedIds':_0x48844b[_0x3e002e(0x375)],'getElementById':(_0x4f46fb,_0x43ac23,_0x58b61a)=>this[_0x3e002e(0x3dd)][_0x3e002e(0x40e)](_0x4f46fb,_0x43ac23,_0x58b61a)})['owner']!=='mind-map'){this[_0x3e002e(0x2d2)]();return;}let _0x1fc929=this['_renderContext'][_0x3e002e(0x48b)][_0x3e002e(0x1dc)]()[_0x3e002e(0x2c0)](),_0x2010f0=Array[_0x3e002e(0x374)](_0x1fc929[_0x3e002e(0x2df)]())[_0x3e002e(0x2c1)](_0x2421a6=>this[_0x3e002e(0x204)](_0x2421a6))[_0x3e002e(0x43b)](_0x592776=>!!_0x592776)[_0x3e002e(0x43b)](_0x2c99a5=>!!_0x5585ba(_0x2c99a5[_0x3e002e(0x241)][_0x3e002e(0x1ca)])),_0x41023c=_0x2010f0[_0x3e002e(0x431)](_0x1777cb=>_0x1777cb['elementData'][_0x3e002e(0x3e9)]===_0x48844b[_0x3e002e(0x206)])??_0x2010f0[0x0]??this['_resolveSelectedMindMapEntryFromState']();if(!_0x41023c){this[_0x3e002e(0x2d2)]();return;}let _0x2e235e=_0x5585ba(_0x41023c[_0x3e002e(0x241)][_0x3e002e(0x1ca)]);if(!_0x2e235e){this[_0x3e002e(0x2d2)]();return;}let _0x24c4de=(_0x5353f6=this[_0x3e002e(0x3dd)][_0x3e002e(0x198)](_0x41023c['elementData'][_0x3e002e(0x291)],_0x41023c['elementData'][_0x3e002e(0x20a)])[_0x2e235e['structureScopeId']])==null?void 0x0:_0x5353f6['element'],_0x3b0dd7=_0x487e3a(_0x24c4de),_0x40d90a=_0x24c4de==null||(_0x36d59e=_0x24c4de[_0x3e002e(0x192)])==null||(_0x36d59e=_0x36d59e[_0x3e002e(0x292)])==null||(_0x36d59e=_0x36d59e['layout'])==null?void 0x0:_0x36d59e[_0x3e002e(0x35e)],_0x143e58=((_0x3b0dd7==null?void 0x0:_0x3b0dd7[_0x3e002e(0x2bc)]['structureKind'])??_0x40d90a)===_0x3e002e(0x1f9)&&(_0x2e235e[_0x3e002e(0x29f)]===null||_0x2e235e[_0x3e002e(0x350)]===_0x3e002e(0x2e1)),_0x4ab342=_0x2e235e[_0x3e002e(0x29f)]!==null&&_0x2e235e[_0x3e002e(0x350)]!==_0x3e002e(0x2e1)&&_0x2e235e['side']!==_0x3e002e(0x449),_0x45ac76=_0x143e58||_0x4ab342,_0xc351ab=((_0x3da1a3=_0x48844b[_0x3e002e(0x3ac)])==null?void 0x0:_0x3da1a3[_0x3e002e(0x291)])===_0x41023c[_0x3e002e(0x241)][_0x3e002e(0x291)]&&_0x48844b[_0x3e002e(0x3ac)]['subUnitId']===_0x41023c[_0x3e002e(0x241)][_0x3e002e(0x20a)]&&_0x48844b[_0x3e002e(0x375)][_0x3e002e(0x452)]?_0x48844b[_0x3e002e(0x375)]:[_0x41023c[_0x3e002e(0x241)][_0x3e002e(0x3e9)]],_0x529989=this[_0x3e002e(0x3a1)](_0x41023c[_0x3e002e(0x241)][_0x3e002e(0x291)],_0x41023c[_0x3e002e(0x241)][_0x3e002e(0x20a)],_0xc351ab);this[_0x3e002e(0x421)]&&this[_0x3e002e(0x22f)]===_0x529989||(this['_clearPopup'](),this['_popupDisposable']=this[_0x3e002e(0x44d)](this['_boardCanvasPopManagerService'][_0x3e002e(0x1ff)](_0x41023c[_0x3e002e(0x241)][_0x3e002e(0x291)],_0x41023c['elementData'][_0x3e002e(0x20a)],_0x41023c[_0x3e002e(0x458)],{'componentKey':Kn,'direction':_0x3e002e(0x1f1),'offset':[0x0,0x8],..._0x45ac76?{'anchorBoundResolver':lr}:null,'extraProps':{'unitId':_0x41023c[_0x3e002e(0x241)][_0x3e002e(0x291)],'subUnitId':_0x41023c[_0x3e002e(0x241)][_0x3e002e(0x20a)],'elementId':_0x41023c['elementData'][_0x3e002e(0x3e9)],'scopeId':_0x2e235e['structureScopeId'],'isRootNode':_0x2e235e['parentNodeId']===null,'left':_0x41023c[_0x3e002e(0x241)][_0x3e002e(0x1ca)]['transform'][_0x3e002e(0x445)]??0x0,'top':_0x41023c[_0x3e002e(0x241)][_0x3e002e(0x1ca)]['transform'][_0x3e002e(0x2e1)]??0x0,'shapeData':_0x41023c[_0x3e002e(0x241)][_0x3e002e(0x1ca)]['type']===_0x282c4b['Shape']?_0x41023c[_0x3e002e(0x241)]['element']['shapeData']:void 0x0,'layout':_0x3b0dd7==null?void 0x0:_0x3b0dd7[_0x3e002e(0x2bc)],'incomingConnectorStyle':this[_0x3e002e(0x27f)](_0x41023c[_0x3e002e(0x241)]['unitId'],_0x41023c[_0x3e002e(0x241)][_0x3e002e(0x20a)],_0x2e235e['structureScopeId'],_0x41023c[_0x3e002e(0x241)][_0x3e002e(0x3e9)])}})),this['_popupSelectionKey']=_0x529989);}[_0x4f3d14(0x18f)](){const _0x159cba=_0x4f3d14;var _0x7fa6b0;let _0x122ed1=this[_0x159cba(0x1a3)][_0x159cba(0x310)](),_0x55927e=_0x122ed1[_0x159cba(0x3ac)],_0x3b4556=_0x122ed1[_0x159cba(0x206)]??_0x122ed1[_0x159cba(0x375)][0x0];if(!_0x55927e||!_0x3b4556)return null;let _0x5203b3=this['_boardElementService'][_0x159cba(0x40e)](_0x55927e['unitId'],_0x55927e[_0x159cba(0x20a)],_0x3b4556);if(!_0x5203b3||!_0x5585ba(_0x5203b3['element']))return null;let _0x4b03e6=_0x55b3e2(_0x55927e['unitId'],_0x3b4556),_0x21b6ad=this['_renderContext'][_0x159cba(0x48b)],_0x1a0592=((_0x7fa6b0=_0x21b6ad['getObjectIncludeInGroup'])==null?void 0x0:_0x7fa6b0[_0x159cba(0x2a4)](_0x21b6ad,_0x4b03e6))??this[_0x159cba(0x414)]['scene'][_0x159cba(0x3b7)](_0x4b03e6);return _0x1a0592?{'object':_0x1a0592,'elementData':_0x5203b3}:null;}[_0x4f3d14(0x204)](_0x345e2c){const _0x1d43fc=_0x4f3d14;var _0x467c83;if(!_0x345e2c)return null;let _0x14d1e6=_0x1bae0a(_0x345e2c['oKey']);if(!_0x14d1e6)return null;let _0x1fca2d=this[_0x1d43fc(0x1a3)][_0x1d43fc(0x310)](),_0x5555e2=((_0x467c83=_0x1fca2d[_0x1d43fc(0x3ac)])==null?void 0x0:_0x467c83[_0x1d43fc(0x291)])===_0x14d1e6['unitId']?_0x1fca2d[_0x1d43fc(0x3ac)]['subUnitId']:void 0x0;if(!_0x5555e2)return null;let _0x18d1d0=this[_0x1d43fc(0x3dd)][_0x1d43fc(0x40e)](_0x14d1e6[_0x1d43fc(0x291)],_0x5555e2,_0x14d1e6[_0x1d43fc(0x3e9)]);return _0x18d1d0?{'object':_0x345e2c,'elementData':_0x18d1d0}:null;}};ur=J([q(0x1,_0x132a38(_0x5a2be5)),q(0x2,_0x132a38(_0x5c495f)),q(0x3,_0x132a38(_0x16fdab)),q(0x4,_0x132a38(_0x2d7b12)),q(0x5,_0x132a38(_0x28dc04))],ur);const dr=_0x4f3d14(0x22c),fr=_0x2019f6[_0x4f3d14(0x354)];function pr(_0x2813f6,_0x322b4a){const _0x49ec1f=_0x4f3d14;return(_0x2813f6??[])[_0x49ec1f(0x23d)]((_0x3dcf70,_0x4ece0f)=>(_0x3dcf70[_0x4ece0f['side']??_0x322b4a]['push'](_0x4ece0f),_0x3dcf70),{'left':[],'right':[],'top':[],'bottom':[]});}function mr(_0x3d8bb7){const _0x4c8810=_0x4f3d14;return _0x3d8bb7==='tree-left'||_0x3d8bb7===_0x4c8810(0x378)||_0x3d8bb7==='tree-alternate';}function hr(_0x50fb41){const _0x4d1d95=_0x4f3d14;return _0x50fb41===_0x4d1d95(0x243)||_0x50fb41===_0x4d1d95(0x481);}function gr(_0x18598c,_0x87774f,_0x2227ee){const _0x1153cd=_0x4f3d14;return _0x2227ee===_0x1153cd(0x195)?_0x1153cd(0x445):_0x2227ee===_0x1153cd(0x378)?_0x1153cd(0x289):_0x18598c[_0x1153cd(0x350)]===_0x1153cd(0x445)||_0x18598c[_0x1153cd(0x350)]===_0x1153cd(0x289)?_0x18598c['side']:_0x87774f%0x2==0x0?_0x1153cd(0x445):_0x1153cd(0x289);}function _r(_0x35eb1d,_0x5c6522){const _0x3728c5=_0x4f3d14;return(_0x5c6522==null?void 0x0:_0x5c6522['root'][_0x3728c5(0x28f)])??_0x35eb1d??[];}var vr=class extends _0x1f694c{constructor(_0x40fef1=dr,_0x4759ea){const _0xf9d355=_0x4f3d14;super(_0x40fef1),K(this,_0xf9d355(0x2e0),{'point':null,'children':[]}),this['evented']=!0x1,this[_0xf9d355(0x23c)]=_0x65c3c8['transientPreview'],this[_0xf9d355(0x2e5)](_0x4759ea);}[_0x4f3d14(0x2e5)](_0x54a043){const _0x1f436b=_0x4f3d14;this['_state']={...this[_0x1f436b(0x2e0)],..._0x54a043},this[_0x1f436b(0x2e0)][_0x1f436b(0x31b)]?this[_0x1f436b(0x2bf)]():this[_0x1f436b(0x4a4)](),this[_0x1f436b(0x32c)](!0x0);}[_0x4f3d14(0x397)](_0x16b5d8){return!0x1;}['render'](_0x118f0f,_0x21c267){const _0x1c2569=_0x4f3d14;let _0x39a274=this[_0x1c2569(0x2e0)][_0x1c2569(0x31b)];if(!_0x39a274||!this['visible'])return this[_0x1c2569(0x32c)](!0x1),this;let _0x1db0c8=Number[_0x1c2569(0x490)](this[_0x1c2569(0x2e0)][_0x1c2569(0x1e9)])&&(this[_0x1c2569(0x2e0)][_0x1c2569(0x1e9)]??0x0)>0x0?this[_0x1c2569(0x2e0)][_0x1c2569(0x1e9)]:0x1,_0x5d6689=_0x5ad525[_0x1c2569(0x1d4)],_0x5b72a0=_0x5ad525[_0x1c2569(0x499)],_0xe54512=_0x5ad525[_0x1c2569(0x3b8)],_0x34431e=_0x5ad525[_0x1c2569(0x1fa)],_0x48c683=_0x1fa9e8['horizontalGap'],_0x3b2a71=_0x1fa9e8[_0x1c2569(0x2b6)],_0x46c778=this[_0x1c2569(0x2e0)][_0x1c2569(0x35e)]===_0x1c2569(0x1f9),_0x126b92=pr(this[_0x1c2569(0x2e0)][_0x1c2569(0x28f)],_0x46c778?_0x1c2569(0x449):_0x1c2569(0x289)),_0x54efd7=_0x39a274['x']-_0x5d6689/0x2,_0x26aabc=_0x39a274['y']-_0x5b72a0/0x2;if(_0x118f0f[_0x1c2569(0x3de)](),_0x118f0f[_0x1c2569(0x26c)]=X[_0x1c2569(0x43d)],_0x118f0f[_0x1c2569(0x37c)]=X['lineWidthScreen']/_0x1db0c8,_0x118f0f['strokeStyle']=X['primaryColor'],hr(this[_0x1c2569(0x2e0)][_0x1c2569(0x35e)])){let _0x4f1f93=_r(this[_0x1c2569(0x2e0)]['children'],this['_state'][_0x1c2569(0x36c)]),_0x2b3a4c=this['_state']['structureKind']===_0x1c2569(0x243);if(_0x4f1f93[_0x1c2569(0x452)]>0x0){if(_0x118f0f[_0x1c2569(0x2de)](),_0x2b3a4c){let _0x5e8d00=_0xe54512,_0x444c96=_0x34431e,_0x3a9e22=_0x1fa9e8[_0x1c2569(0x359)],_0x242223=_0x39a274['y'],_0x304d79=_0x54efd7+_0x5d6689,_0x1f0723=_0x39a274['y']-_0x444c96/0x2,_0x450303=_0x54efd7+_0x5d6689+_0x3a9e22;_0x118f0f['moveTo'](_0x304d79,_0x242223),_0x118f0f[_0x1c2569(0x28d)](_0x450303,_0x242223),_0x4f1f93[_0x1c2569(0x2d1)]((_0x55eb7e,_0x1a46d2)=>{const _0x165367=_0x1c2569;let _0x10b9b7=_0x450303+_0x1a46d2*(_0x5e8d00+_0x3a9e22);if(_0x1a46d2>0x0){let _0x1366a0=_0x450303+(_0x1a46d2-0x1)*(_0x5e8d00+_0x3a9e22)+_0x5e8d00;_0x118f0f['moveTo'](_0x1366a0,_0x242223),_0x118f0f[_0x165367(0x28d)](_0x10b9b7,_0x242223);}_0x118f0f['moveTo'](_0x10b9b7,_0x242223),_0x118f0f['lineTo'](_0x10b9b7+_0x5e8d00,_0x242223);}),_0x118f0f[_0x1c2569(0x267)](),_0x4f1f93[_0x1c2569(0x2d1)]((_0x255333,_0x579dbd)=>{const _0x3ec74d=_0x1c2569;Z(_0x118f0f,_0x450303+_0x579dbd*(_0x5e8d00+_0x3a9e22),_0x1f0723,_0x5e8d00,_0x444c96,X['ghostRadius']),_0x118f0f[_0x3ec74d(0x3ef)]=X[_0x3ec74d(0x2bd)],_0x118f0f[_0x3ec74d(0x222)](),_0x118f0f[_0x3ec74d(0x267)]();}),_0x4f1f93[_0x1c2569(0x2d1)]((_0x36f33e,_0x35785c)=>{const _0x1fab85=_0x1c2569;if(!(_0x1fab85(0x28f)in _0x36f33e)||_0x36f33e[_0x1fab85(0x28f)][_0x1fab85(0x452)]===0x0)return;let _0x5ed5ad=_0x450303+_0x35785c*(_0x5e8d00+_0x3a9e22),_0x2a82ac=_0x5ed5ad+_0x5e8d00/0x2,_0x3fac0f=_0x36f33e['side']===_0x1fab85(0x449)?_0x1fab85(0x449):_0x1fab85(0x2e1),_0x1c4880=_0x36f33e[_0x1fab85(0x28f)]['slice'](0x0,0x2),_0x91dc3c=_0x1c4880[_0x1fab85(0x452)]*_0x444c96+Math[_0x1fab85(0x31c)](0x0,_0x1c4880[_0x1fab85(0x452)]-0x1)*_0x3b2a71,_0x72fed1=_0x5ed5ad+_0x5e8d00+_0x1fa9e8[_0x1fab85(0x2e6)],_0x31ef83=_0x3fac0f===_0x1fab85(0x2e1)?_0x1f0723-_0x48c683-_0x91dc3c:_0x1f0723+_0x444c96+_0x48c683,_0x1aad10=_0x31ef83+_0x91dc3c/0x2;_0x118f0f['beginPath'](),_0x118f0f[_0x1fab85(0x2a2)](_0x2a82ac,_0x3fac0f===_0x1fab85(0x2e1)?_0x1f0723:_0x1f0723+_0x444c96),_0x118f0f[_0x1fab85(0x28d)](_0x2a82ac,_0x1aad10),_0x118f0f[_0x1fab85(0x28d)](_0x72fed1,_0x1aad10),_0x1c4880[_0x1fab85(0x2d1)]((_0x12372a,_0x2286a6)=>{const _0xa61ff5=_0x1fab85;let _0xc5f3e7=_0x31ef83+_0x2286a6*(_0x444c96+_0x3b2a71)+_0x444c96/0x2;_0x118f0f[_0xa61ff5(0x2a2)](_0x72fed1,_0xc5f3e7),_0x118f0f['lineTo'](_0x72fed1+_0x5e8d00,_0xc5f3e7);}),_0x118f0f[_0x1fab85(0x267)](),_0x1c4880[_0x1fab85(0x2d1)]((_0x1eafa1,_0x3bbe80)=>{const _0x213610=_0x1fab85;let _0x41432e=_0x31ef83+_0x3bbe80*(_0x444c96+_0x3b2a71);Z(_0x118f0f,_0x72fed1,_0x41432e,_0x5e8d00,_0x444c96,X[_0x213610(0x307)]),_0x118f0f[_0x213610(0x3ef)]=X[_0x213610(0x2bd)],_0x118f0f[_0x213610(0x222)](),_0x118f0f[_0x213610(0x267)]();});});}else{let _0x5346f0=_0x39a274['x'],_0x5a2121=_0x26aabc+_0x5b72a0,_0x3d5e0e=_0x1fa9e8[_0x1c2569(0x359)],_0x5535d7=_0x26aabc+_0x5b72a0+_0x3d5e0e,_0x5bce05=_0x5535d7+(_0x4f1f93[_0x1c2569(0x452)]-0x1)*(_0x34431e+_0x3d5e0e)+_0x34431e/0x2;_0x118f0f['moveTo'](_0x5346f0,_0x5a2121),_0x118f0f[_0x1c2569(0x28d)](_0x5346f0,_0x5bce05),_0x4f1f93[_0x1c2569(0x2d1)]((_0x4b885e,_0x5a217d)=>{const _0x350246=_0x1c2569;let _0xd03162=_0x5535d7+_0x5a217d*(_0x34431e+_0x3d5e0e)+_0x34431e/0x2,_0x4ca3e8=_0x4b885e[_0x350246(0x350)]===_0x350246(0x289)?_0x350246(0x289):_0x350246(0x445),_0x3a8513=_0x4ca3e8===_0x350246(0x289)?_0x5346f0+_0x1fa9e8[_0x350246(0x2e6)]:_0x5346f0-_0x1fa9e8['branchGap']-_0xe54512,_0x350770=_0x4ca3e8===_0x350246(0x289)?_0x3a8513:_0x3a8513+_0xe54512;_0x118f0f[_0x350246(0x2a2)](_0x5346f0,_0xd03162),_0x118f0f['lineTo'](_0x350770,_0xd03162);}),_0x118f0f[_0x1c2569(0x267)](),_0x4f1f93[_0x1c2569(0x2d1)]((_0x217208,_0x2ee050)=>{const _0x238b87=_0x1c2569;let _0x539286=_0x5535d7+_0x2ee050*(_0x34431e+_0x3d5e0e);Z(_0x118f0f,(_0x217208[_0x238b87(0x350)]==='right'?_0x238b87(0x289):_0x238b87(0x445))==_0x238b87(0x289)?_0x5346f0+_0x1fa9e8[_0x238b87(0x2e6)]:_0x5346f0-_0x1fa9e8[_0x238b87(0x2e6)]-_0xe54512,_0x539286,_0xe54512,_0x34431e,X[_0x238b87(0x307)]),_0x118f0f[_0x238b87(0x3ef)]=X[_0x238b87(0x2bd)],_0x118f0f[_0x238b87(0x222)](),_0x118f0f[_0x238b87(0x267)]();}),_0x4f1f93[_0x1c2569(0x2d1)]((_0x248402,_0xd58d89)=>{const _0x523f2=_0x1c2569;if(!(_0x523f2(0x28f)in _0x248402)||_0x248402['children'][_0x523f2(0x452)]===0x0)return;let _0x4704c1=_0x5535d7+_0xd58d89*(_0x34431e+_0x3d5e0e)+_0x34431e/0x2,_0x4a4345=_0x248402[_0x523f2(0x350)]===_0x523f2(0x289)?_0x523f2(0x289):'left',_0x96ed65=_0x248402[_0x523f2(0x28f)][_0x523f2(0x2eb)](0x0,0x2),_0x4339ee=_0x96ed65[_0x523f2(0x452)]*_0x34431e+Math[_0x523f2(0x31c)](0x0,_0x96ed65[_0x523f2(0x452)]-0x1)*_0x3b2a71,_0x358fec=_0x4a4345===_0x523f2(0x289)?_0x5346f0+_0x1fa9e8[_0x523f2(0x2e6)]:_0x5346f0-_0x1fa9e8[_0x523f2(0x2e6)]-_0xe54512,_0x33e82d=_0x4a4345===_0x523f2(0x289)?_0x358fec+_0xe54512+_0x48c683:_0x358fec-_0x48c683-_0xe54512,_0x17386d=_0x4704c1-_0x4339ee/0x2,_0xacfeaf=_0x4a4345===_0x523f2(0x289)?_0x358fec+_0xe54512:_0x358fec,_0x2f8d89=_0x4a4345===_0x523f2(0x289)?_0x33e82d:_0x33e82d+_0xe54512;_0x118f0f[_0x523f2(0x2de)](),_0x118f0f[_0x523f2(0x2a2)](_0xacfeaf,_0x4704c1),_0x118f0f[_0x523f2(0x28d)](_0x2f8d89,_0x4704c1),_0x96ed65[_0x523f2(0x2d1)]((_0x4bd995,_0x13d642)=>{const _0x316ec0=_0x523f2;let _0x9566cd=_0x17386d+_0x13d642*(_0x34431e+_0x3b2a71)+_0x34431e/0x2;_0x118f0f[_0x316ec0(0x2a2)](_0x2f8d89,_0x9566cd),_0x118f0f[_0x316ec0(0x28d)](_0x4a4345===_0x316ec0(0x289)?_0x33e82d+_0xe54512:_0x33e82d,_0x9566cd);}),_0x118f0f[_0x523f2(0x267)](),_0x96ed65['forEach']((_0x31f653,_0x26ad45)=>{const _0x1f7655=_0x523f2;let _0x3a0970=_0x17386d+_0x26ad45*(_0x34431e+_0x3b2a71);Z(_0x118f0f,_0x33e82d,_0x3a0970,_0xe54512,_0x34431e,X[_0x1f7655(0x307)]),_0x118f0f[_0x1f7655(0x3ef)]=X[_0x1f7655(0x2bd)],_0x118f0f[_0x1f7655(0x222)](),_0x118f0f[_0x1f7655(0x267)]();});});}}}else{if(mr(this['_state'][_0x1c2569(0x35e)])){let _0x53e090=this[_0x1c2569(0x2e0)][_0x1c2569(0x28f)]??[],_0x505ab8=_0x26aabc+_0x5b72a0,_0x31bd22=_0x505ab8+_0x48c683,_0x574863=_0x39a274['x'];if(_0x53e090[_0x1c2569(0x452)]>0x0){let _0x1cb715=_0x31bd22+(_0x53e090[_0x1c2569(0x452)]-0x1)*(_0x34431e+_0x3b2a71)+_0x34431e/0x2;_0x118f0f[_0x1c2569(0x2de)](),_0x118f0f[_0x1c2569(0x2a2)](_0x574863,_0x505ab8),_0x118f0f[_0x1c2569(0x28d)](_0x574863,_0x1cb715),_0x53e090[_0x1c2569(0x2d1)]((_0x57633c,_0x1d89f4)=>{const _0x3dc150=_0x1c2569;let _0x3c58a6=gr(_0x57633c,_0x1d89f4,this[_0x3dc150(0x2e0)]['structureKind']),_0x1bb80f=_0x31bd22+_0x1d89f4*(_0x34431e+_0x3b2a71),_0x314104=_0x3c58a6==='right'?_0x574863+_0x48c683:_0x574863-_0x48c683-_0xe54512,_0x2fda5f=_0x1bb80f+_0x34431e/0x2;_0x118f0f['moveTo'](_0x574863,_0x2fda5f),_0x118f0f[_0x3dc150(0x28d)](_0x3c58a6===_0x3dc150(0x289)?_0x314104:_0x314104+_0xe54512,_0x2fda5f);}),_0x118f0f[_0x1c2569(0x267)](),_0x53e090['forEach']((_0x255429,_0x5cf4db)=>{const _0xc9d0d1=_0x1c2569;let _0x30f8e4=gr(_0x255429,_0x5cf4db,this['_state'][_0xc9d0d1(0x35e)]),_0x1d8045=_0x31bd22+_0x5cf4db*(_0x34431e+_0x3b2a71);Z(_0x118f0f,_0x30f8e4===_0xc9d0d1(0x289)?_0x574863+_0x48c683:_0x574863-_0x48c683-_0xe54512,_0x1d8045,_0xe54512,_0x34431e,X[_0xc9d0d1(0x307)]),_0x118f0f[_0xc9d0d1(0x3ef)]=X[_0xc9d0d1(0x2bd)],_0x118f0f[_0xc9d0d1(0x222)](),_0x118f0f[_0xc9d0d1(0x267)]();});}}else _0x46c778&&[_0x1c2569(0x2e1),'bottom']['forEach'](_0xb84bde=>{const _0x2c8c63=_0x1c2569;let _0x263fc1=_0x126b92[_0xb84bde];if(_0x263fc1[_0x2c8c63(0x452)]===0x0)return;let _0x3c5594=_0x263fc1[_0x2c8c63(0x452)]*_0xe54512+Math[_0x2c8c63(0x31c)](0x0,_0x263fc1['length']-0x1)*_0x3b2a71,_0x44a41f=_0x39a274['x']-_0x3c5594/0x2,_0x5d5ca7=_0xb84bde==='bottom'?_0x26aabc+_0x5b72a0:_0x26aabc,_0x24b22b=_0xb84bde===_0x2c8c63(0x449)?_0x5d5ca7+_0x1fa9e8[_0x2c8c63(0x2e6)]:_0x5d5ca7-_0x1fa9e8[_0x2c8c63(0x2e6)],_0xdff226=_0xb84bde===_0x2c8c63(0x449)?_0x26aabc+_0x5b72a0+_0x48c683:_0x26aabc-_0x48c683-_0x34431e;_0x118f0f['beginPath'](),_0x118f0f[_0x2c8c63(0x2a2)](_0x39a274['x'],_0x5d5ca7),_0x118f0f['lineTo'](_0x39a274['x'],_0x24b22b),_0x263fc1[_0x2c8c63(0x452)]>0x1&&(_0x118f0f['moveTo'](_0x44a41f+_0xe54512/0x2,_0x24b22b),_0x118f0f['lineTo'](_0x44a41f+_0x3c5594-_0xe54512/0x2,_0x24b22b)),_0x263fc1['forEach']((_0x237ab6,_0x3300cf)=>{const _0x4709ba=_0x2c8c63;let _0x48f570=_0x44a41f+_0x3300cf*(_0xe54512+_0x3b2a71)+_0xe54512/0x2;_0x118f0f[_0x4709ba(0x2a2)](_0x48f570,_0x24b22b),_0x118f0f[_0x4709ba(0x28d)](_0x48f570,_0xb84bde===_0x4709ba(0x449)?_0xdff226:_0xdff226+_0x34431e);}),_0x118f0f[_0x2c8c63(0x267)](),_0x263fc1[_0x2c8c63(0x2d1)]((_0x51a64d,_0x457d49)=>{const _0x3f1151=_0x2c8c63;Z(_0x118f0f,_0x44a41f+_0x457d49*(_0xe54512+_0x3b2a71),_0xdff226,_0xe54512,_0x34431e,X[_0x3f1151(0x307)]),_0x118f0f['fillStyle']=X[_0x3f1151(0x2bd)],_0x118f0f[_0x3f1151(0x222)](),_0x118f0f[_0x3f1151(0x267)]();});});}(_0x46c778||mr(this[_0x1c2569(0x2e0)][_0x1c2569(0x35e)])||hr(this[_0x1c2569(0x2e0)][_0x1c2569(0x35e)])?[]:[_0x1c2569(0x445),_0x1c2569(0x289)])[_0x1c2569(0x2d1)](_0x320495=>{const _0x92c0b1=_0x1c2569;let _0x30336f=_0x126b92[_0x320495];if(_0x30336f[_0x92c0b1(0x452)]===0x0)return;let _0x1ecd76=_0x30336f[_0x92c0b1(0x452)]*_0x34431e+Math[_0x92c0b1(0x31c)](0x0,_0x30336f[_0x92c0b1(0x452)]-0x1)*_0x3b2a71,_0x4c1464=_0x39a274['y']-_0x1ecd76/0x2,_0x402551=_0x320495===_0x92c0b1(0x289)?_0x54efd7+_0x5d6689:_0x54efd7,_0x1692f4=_0x320495==='right'?_0x402551+_0x1fa9e8[_0x92c0b1(0x2e6)]:_0x402551-_0x1fa9e8[_0x92c0b1(0x2e6)],_0x3fdeda=_0x320495===_0x92c0b1(0x289)?_0x54efd7+_0x5d6689+_0x48c683:_0x54efd7-_0x48c683-_0xe54512;_0x118f0f['beginPath'](),_0x118f0f['moveTo'](_0x402551,_0x39a274['y']),_0x118f0f[_0x92c0b1(0x28d)](_0x1692f4,_0x39a274['y']),_0x30336f['length']>0x1&&(_0x118f0f[_0x92c0b1(0x2a2)](_0x1692f4,_0x4c1464+_0x34431e/0x2),_0x118f0f[_0x92c0b1(0x28d)](_0x1692f4,_0x4c1464+_0x1ecd76-_0x34431e/0x2)),_0x30336f[_0x92c0b1(0x2d1)]((_0x2faa2c,_0x27fad8)=>{const _0x3e7e55=_0x92c0b1;let _0x1eff84=_0x4c1464+_0x27fad8*(_0x34431e+_0x3b2a71)+_0x34431e/0x2;_0x118f0f['moveTo'](_0x1692f4,_0x1eff84),_0x118f0f[_0x3e7e55(0x28d)](_0x320495==='right'?_0x3fdeda:_0x3fdeda+_0xe54512,_0x1eff84);}),_0x118f0f['stroke'](),_0x30336f[_0x92c0b1(0x2d1)]((_0x22ff80,_0x4540e2)=>{const _0x295259=_0x92c0b1;let _0x2d7db9=_0x4c1464+_0x4540e2*(_0x34431e+_0x3b2a71);Z(_0x118f0f,_0x3fdeda,_0x2d7db9,_0xe54512,_0x34431e,X[_0x295259(0x307)]),_0x118f0f['fillStyle']=X['ghostFillColor'],_0x118f0f[_0x295259(0x222)](),_0x118f0f['stroke']();});}),Z(_0x118f0f,_0x54efd7,_0x26aabc,_0x5d6689,_0x5b72a0,X[_0x1c2569(0x1ce)]),_0x118f0f[_0x1c2569(0x3ef)]=X[_0x1c2569(0x422)],_0x118f0f[_0x1c2569(0x222)](),_0x118f0f[_0x1c2569(0x267)](),_0x118f0f[_0x1c2569(0x3ef)]=X[_0x1c2569(0x3fc)],_0x118f0f[_0x1c2569(0x4ae)]=sn(X[_0x1c2569(0x304)],X[_0x1c2569(0x3cb)],_0x1db0c8),_0x118f0f[_0x1c2569(0x284)]=_0x1c2569(0x237),_0x118f0f[_0x1c2569(0x412)]=_0x1c2569(0x356);let _0x465b1f=X[_0x1c2569(0x3dc)]/_0x1db0c8;return _0x118f0f['fillText'](_0x251b5d,_0x39a274['x'],_0x39a274['y'],Math[_0x1c2569(0x31c)](0x1,_0x5d6689-_0x465b1f*0x2)),_0x118f0f[_0x1c2569(0x1a0)](),this[_0x1c2569(0x32c)](!0x1),this;}};const yr={'children':[{'text':_0x251b5d,'orderKey':_0x339fd4(0x0),'side':_0x4f3d14(0x289)},{'text':_0x251b5d,'orderKey':_0x339fd4(0x1),'side':_0x4f3d14(0x289)},{'text':_0x251b5d,'orderKey':_0x339fd4(0x2),'side':_0x4f3d14(0x289)}]};var br=class extends _0x4c4d8b{constructor(..._0x1752cf){const _0xbf3cfb=_0x4f3d14;super(..._0x1752cf),K(this,_0xbf3cfb(0x269),yr);}[_0x4f3d14(0x27b)](_0x34a2ec){const _0x221825=_0x4f3d14;var _0x26a42d;let _0x1d78cb=(_0x34a2ec==null?void 0x0:_0x34a2ec[_0x221825(0x28f)])??(_0x34a2ec==null||(_0x26a42d=_0x34a2ec[_0x221825(0x36c)])==null?void 0x0:_0x26a42d[_0x221825(0x1d6)][_0x221825(0x28f)]);this[_0x221825(0x269)]={'rootText':_0x34a2ec==null?void 0x0:_0x34a2ec['rootText'],'structureKind':_0x34a2ec==null?void 0x0:_0x34a2ec[_0x221825(0x35e)],'branchLineType':_0x34a2ec==null?void 0x0:_0x34a2ec[_0x221825(0x402)],'children':this[_0x221825(0x2e8)](_0x1d78cb,_0x34a2ec==null?void 0x0:_0x34a2ec[_0x221825(0x35e)]),'blueprint':_0x34a2ec!=null&&_0x34a2ec[_0x221825(0x36c)]?this[_0x221825(0x2ec)](_0x34a2ec[_0x221825(0x36c)]):void 0x0};}['getTemplate'](){const _0x2d1545=_0x4f3d14;var _0x230796;return{'rootText':this[_0x2d1545(0x269)][_0x2d1545(0x2cc)],'structureKind':this[_0x2d1545(0x269)]['structureKind'],'branchLineType':this['_template'][_0x2d1545(0x402)],'children':(_0x230796=this[_0x2d1545(0x269)][_0x2d1545(0x28f)])==null?void 0x0:_0x230796['map'](_0x5e8e55=>({..._0x5e8e55})),'blueprint':this[_0x2d1545(0x269)]['blueprint']?this['_cloneBlueprint'](this[_0x2d1545(0x269)]['blueprint']):void 0x0};}[_0x4f3d14(0x2ec)](_0x409890){const _0x25ec84=_0x4f3d14;return{'title':_0x409890['title'],'root':this[_0x25ec84(0x20e)](_0x409890[_0x25ec84(0x1d6)])};}['_cloneBlueprintNode'](_0x2fb389){const _0x26eaa8=_0x4f3d14;return{..._0x2fb389,'foreignAttributes':_0x2fb389[_0x26eaa8(0x2e9)]?{..._0x2fb389[_0x26eaa8(0x2e9)]}:void 0x0,'children':_0x2fb389['children'][_0x26eaa8(0x2c1)](_0x5f53d9=>this['_cloneBlueprintNode'](_0x5f53d9))};}[_0x4f3d14(0x2e8)](_0x40afe1,_0x5cef28){const _0x40d9f4=_0x4f3d14;let _0x4ecab8=!_0x40afe1,_0x16ee55=_0x40afe1??yr['children'];return _0x16ee55==null?void 0x0:_0x16ee55[_0x40d9f4(0x2c1)]((_0x250348,_0x3ae197)=>({..._0x250348,'text':_0x250348[_0x40d9f4(0x488)]??_0x251b5d,'side':this['_resolveChildSide'](_0x250348[_0x40d9f4(0x350)],_0x3ae197,_0x5cef28,_0x4ecab8)}));}[_0x4f3d14(0x1e4)](_0x27fc9d,_0x24f722,_0x10d8bd,_0x27a6d1){const _0x25a495=_0x4f3d14;return _0x10d8bd==='mindmap-vertical'?_0x27a6d1?_0x25a495(0x449):_0x27fc9d??'bottom':_0x10d8bd===_0x25a495(0x195)?_0x27a6d1?_0x25a495(0x445):_0x27fc9d??'left':_0x10d8bd===_0x25a495(0x378)?_0x27a6d1?_0x25a495(0x289):_0x27fc9d??_0x25a495(0x289):_0x10d8bd===_0x25a495(0x2f6)?_0x27a6d1?_0x24f722%0x2==0x0?_0x25a495(0x445):_0x25a495(0x289):_0x27fc9d??(_0x24f722%0x2==0x0?'left':_0x25a495(0x289)):_0x10d8bd===_0x25a495(0x243)?_0x27a6d1?_0x24f722%0x2==0x0?_0x25a495(0x2e1):_0x25a495(0x449):_0x27fc9d??(_0x24f722%0x2==0x0?_0x25a495(0x2e1):_0x25a495(0x449)):_0x10d8bd==='timeline-vertical'?_0x27a6d1?_0x24f722%0x2==0x0?_0x25a495(0x445):_0x25a495(0x289):_0x27fc9d??(_0x24f722%0x2==0x0?'left':_0x25a495(0x289)):_0x27fc9d;}};function xr(_0x14cd6b,_0x6981bd){const _0x3d33c7=_0x4f3d14;let _0x30779e=Number[_0x3d33c7(0x490)](_0x6981bd['zoomRatio'])&&_0x6981bd[_0x3d33c7(0x1e9)]>0x0?_0x6981bd[_0x3d33c7(0x1e9)]:0x1;return{'x':Math['round']((_0x14cd6b['offsetX']-_0x6981bd[_0x3d33c7(0x33c)]['x'])/_0x30779e),'y':Math[_0x3d33c7(0x28e)]((_0x14cd6b[_0x3d33c7(0x2a5)]-_0x6981bd[_0x3d33c7(0x33c)]['y'])/_0x30779e)};}function Sr(_0x206d65){const _0x4f241a=_0x4f3d14;var _0x204f52;_0x206d65!=null&&_0x206d65[_0x4f241a(0x45e)]?_0x206d65['dispose']():_0x206d65==null||(_0x204f52=_0x206d65[_0x4f241a(0x31a)])==null||_0x204f52[_0x4f241a(0x2a4)](_0x206d65);}function Cr(_0x3c89b4){const _0x43f83e=_0x4f3d14;var _0x1b35e9;return _0x3c89b4[_0x43f83e(0x25a)]===_0x2f25e2[_0x43f83e(0x3fb)]&&((_0x1b35e9=_0x3c89b4[_0x43f83e(0x3e4)])==null?void 0x0:_0x1b35e9[_0x43f83e(0x3b5)])===_0x2f25e2[_0x43f83e(0x3fb)];}let wr=class extends _0x41f8e5{constructor(_0xe5766d,_0x1ed093,_0x26c693,_0x44e323,_0x1805ad,_0x5a06c2,_0x5cd113){const _0x2fce75=_0x4f3d14;super(),this[_0x2fce75(0x414)]=_0xe5766d,this[_0x2fce75(0x2fd)]=_0x1ed093,this[_0x2fce75(0x407)]=_0x26c693,this[_0x2fce75(0x32f)]=_0x44e323,this[_0x2fce75(0x230)]=_0x1805ad,this[_0x2fce75(0x1a3)]=_0x5a06c2,this[_0x2fce75(0x28b)]=_0x5cd113,K(this,_0x2fce75(0x2f0),null),K(this,_0x2fce75(0x19b),null),this['_init']();}[_0x4f3d14(0x45b)](){const _0x27ec1d=_0x4f3d14;var _0x1c4d35;let {scene:_0x3a8471,unitId:_0x2cd0a3}=this['_renderContext'],_0x43f947=this[_0x27ec1d(0x2fd)][_0x27ec1d(0x236)](_0x2cd0a3,_0x8b4a1a['UNIVER_BOARD']);if(!_0x43f947)return;let _0x401074=(_0x1c4d35=_0x3a8471['onPointerMove$'])==null?void 0x0:_0x1c4d35[_0x27ec1d(0x474)]({'priority':0x4,'next':([_0x3bfc23,_0x2562f3])=>this[_0x27ec1d(0x33d)](_0x3bfc23,_0x2562f3)}),_0x567ed2=_0x3a8471[_0x27ec1d(0x210)]['subscribeEvent']({'priority':0x4,'next':([_0x58292c,_0x4e48b1])=>this[_0x27ec1d(0x3b2)](_0x43f947,_0x58292c,_0x4e48b1)});this[_0x27ec1d(0x44d)](_0x122c68(()=>Sr(_0x401074))),this['disposeWithMe'](_0x122c68(()=>Sr(_0x567ed2)));let _0x5d1a3d=this['_stateService'][_0x27ec1d(0x475)]['subscribe'](()=>this['_syncPreviewObject']());this[_0x27ec1d(0x44d)](_0x122c68(()=>Sr(_0x5d1a3d))),this[_0x27ec1d(0x44d)](_0x122c68(()=>{const _0x276956=_0x27ec1d;this[_0x276956(0x2bb)]();})),this[_0x27ec1d(0x29a)]();}[_0x4f3d14(0x29a)](){const _0x45c8cd=_0x4f3d14;var _0x56ec6b,_0x484e79;let _0x10449f=this[_0x45c8cd(0x407)][_0x45c8cd(0x25b)]();if(!Cr(_0x10449f)){this[_0x45c8cd(0x2bb)]();return;}let _0x287a24=this[_0x45c8cd(0x2aa)](),_0x8e3160=this[_0x45c8cd(0x230)][_0x45c8cd(0x40f)]();_0x287a24[_0x45c8cd(0x2e5)]({'point':this[_0x45c8cd(0x19b)],'structureKind':_0x8e3160[_0x45c8cd(0x35e)],'children':_0x8e3160[_0x45c8cd(0x28f)],'blueprint':_0x8e3160['blueprint'],'zoomRatio':_0x10449f[_0x45c8cd(0x1e9)]}),(_0x56ec6b=(_0x484e79=this['_renderContext'][_0x45c8cd(0x48b)])[_0x45c8cd(0x32c)])==null||_0x56ec6b[_0x45c8cd(0x2a4)](_0x484e79,!0x0);}[_0x4f3d14(0x2aa)](){const _0x34dcb3=_0x4f3d14;var _0x283c22,_0x57364a;if(this[_0x34dcb3(0x2f0)])return this['_previewObject'];let _0x36de05=this['_insertStateService'][_0x34dcb3(0x40f)](),_0x3a7244=new vr(dr,{'point':this[_0x34dcb3(0x19b)],'structureKind':_0x36de05[_0x34dcb3(0x35e)],'children':_0x36de05[_0x34dcb3(0x28f)],'blueprint':_0x36de05[_0x34dcb3(0x36c)],'zoomRatio':this['_stateService'][_0x34dcb3(0x25b)]()['zoomRatio']});return this[_0x34dcb3(0x2f0)]=_0x3a7244,(_0x283c22=(_0x57364a=this[_0x34dcb3(0x414)][_0x34dcb3(0x48b)])[_0x34dcb3(0x2c3)])==null||_0x283c22[_0x34dcb3(0x2a4)](_0x57364a,_0x3a7244,fr),_0x3a7244;}[_0x4f3d14(0x2bb)](){const _0x3dd4e6=_0x4f3d14;var _0x400948,_0x517830,_0x71ac26,_0x5bd62a;this[_0x3dd4e6(0x2f0)]?((_0x400948=(_0x517830=this[_0x3dd4e6(0x414)][_0x3dd4e6(0x48b)])[_0x3dd4e6(0x341)])==null||_0x400948[_0x3dd4e6(0x2a4)](_0x517830,[this['_previewObject']]),this[_0x3dd4e6(0x2f0)]=null,this[_0x3dd4e6(0x19b)]=null,(_0x71ac26=(_0x5bd62a=this[_0x3dd4e6(0x414)][_0x3dd4e6(0x48b)])[_0x3dd4e6(0x32c)])==null||_0x71ac26['call'](_0x5bd62a,!0x0)):this[_0x3dd4e6(0x19b)]=null;}['_getPointFromEvent'](_0x42b16f){const _0xf5327f=_0x4f3d14;let _0xdd95ed=this[_0xf5327f(0x407)]['getState']();return xr(_0x42b16f,{'panOffset':_0xdd95ed[_0xf5327f(0x36e)],'zoomRatio':_0xdd95ed[_0xf5327f(0x1e9)]});}[_0x4f3d14(0x1ae)](_0x3c8d89){const _0x1200e1=_0x4f3d14;return{'left':Math[_0x1200e1(0x28e)](_0x3c8d89['x']-_0x5ad525['rootWidth']/0x2),'top':Math[_0x1200e1(0x28e)](_0x3c8d89['y']-_0x5ad525[_0x1200e1(0x499)]/0x2)};}['_handlePointerMove'](_0x2345dc,_0x5b7e5e){const _0x3f203a=_0x4f3d14;Cr(this[_0x3f203a(0x407)][_0x3f203a(0x25b)]())&&(this[_0x3f203a(0x19b)]=this['_getPointFromEvent'](_0x2345dc),this[_0x3f203a(0x29a)](),_0x5b7e5e[_0x3f203a(0x1de)]());}async[_0x4f3d14(0x3b2)](_0x3b8443,_0x2fb9da,_0x29f89c){const _0x4bd40b=_0x4f3d14;let _0x5aaeda=await this[_0x4bd40b(0x1fc)](_0x3b8443,_0x2fb9da,_0x29f89c);if(!_0x5aaeda)return;let _0x5631f4={'unitId':this[_0x4bd40b(0x414)][_0x4bd40b(0x291)],'subUnitId':_0x5aaeda[_0x4bd40b(0x20a)]};this[_0x4bd40b(0x28b)][_0x4bd40b(0x26a)](),this[_0x4bd40b(0x28b)]['setEditing']({..._0x5631f4,'shapeId':_0x5aaeda[_0x4bd40b(0x380)],'shapeKey':_0x55b3e2(_0x5631f4[_0x4bd40b(0x291)],_0x5aaeda[_0x4bd40b(0x380)]),'visible':!0x0});}async[_0x4f3d14(0x1fc)](_0x51bba6,_0x134d18,_0x490de9){const _0x5a8331=_0x4f3d14;var _0x1b682d;let _0xde1ca6=this[_0x5a8331(0x407)]['getState'](),_0x4cf7d5=_0x134d18[_0x5a8331(0x26f)]??0x0;if(!Cr(_0xde1ca6)||_0x4cf7d5!==0x0)return null;let _0x1bd8ee=this[_0x5a8331(0x2c4)](_0x134d18),_0x5d5e65=this[_0x5a8331(0x1ae)](_0x1bd8ee),_0x2e9866=this[_0x5a8331(0x230)][_0x5a8331(0x40f)](),_0x226af7=_0x21938d(0x6),_0x398d5d=_0x51bba6['getActivePageId'](),_0x27aa8c=this[_0x5a8331(0x32f)]['executeCommand'](_0x243dd0['id'],{'unitId':this[_0x5a8331(0x414)][_0x5a8331(0x291)],'subUnitId':_0x398d5d,'left':_0x5d5e65['left'],'top':_0x5d5e65[_0x5a8331(0x2e1)],'rootNodeId':_0x226af7,'rootText':_0x2e9866['rootText'],'structureKind':_0x2e9866['structureKind'],'branchLineType':_0x2e9866['branchLineType'],'children':_0x2e9866['children'],'blueprint':_0x2e9866[_0x5a8331(0x36c)]});if(this[_0x5a8331(0x407)][_0x5a8331(0x3cf)](_0x2f25e2['Select']),_0x490de9[_0x5a8331(0x1de)](),(_0x1b682d=_0x134d18[_0x5a8331(0x213)])==null||_0x1b682d['call'](_0x134d18),!await _0x27aa8c||this[_0x5a8331(0x46f)])return null;let _0x79897c={'unitId':this[_0x5a8331(0x414)][_0x5a8331(0x291)],'subUnitId':_0x398d5d};return this[_0x5a8331(0x1a3)]['selectElements'](_0x79897c,[_0x226af7],_0x226af7),{'rootNodeId':_0x226af7,'subUnitId':_0x398d5d};}};wr=J([q(0x1,_0x253a65),q(0x2,_0x31b38d),q(0x3,_0x27d0fe),q(0x4,_0x132a38(br)),q(0x5,_0x16fdab),q(0x6,_0x132a38(_0x2d7b12))],wr);var Tr=class extends _0x4c4d8b{constructor(..._0x14f692){const _0x152156=_0x4f3d14;super(..._0x14f692),K(this,_0x152156(0x280),new _0x10bbaf()),K(this,_0x152156(0x403),this[_0x152156(0x280)][_0x152156(0x226)]());}[_0x4f3d14(0x3da)](_0x458898){const _0x304ee2=_0x4f3d14;this['_refresh$'][_0x304ee2(0x456)](_0x458898);}[_0x4f3d14(0x45e)](){const _0xd20201=_0x4f3d14;this[_0xd20201(0x280)][_0xd20201(0x319)](),super[_0xd20201(0x45e)]();}};function Er(_0x5bf018){const _0x1db762=_0x4f3d14;return typeof _0x5bf018==_0x1db762(0x3ba)&&Number['isFinite'](_0x5bf018)&&_0x5bf018>0x0;}function Dr(_0x2eae98,_0x33b76d,_0x493020){const _0x470b11=_0x4f3d14;let _0x51444b=_0x2eae98[_0x33b76d],_0x35ffe1=_0x5585ba(_0x51444b==null?void 0x0:_0x51444b[_0x470b11(0x1ca)]);if(!_0x51444b||!_0x35ffe1)return null;let _0x412316=_0x26ff7e(_0x51444b,_0x493020);if(!_0x412316)return null;let _0x2b12c2=_0x51444b['transform']??_0x51444b['element'][_0x470b11(0x330)],_0x1dc175={..._0x2eae98,[_0x33b76d]:{..._0x51444b,'transform':{..._0x2b12c2,'width':_0x412316[_0x470b11(0x48c)],'height':_0x412316[_0x470b11(0x36d)]},'element':{..._0x51444b[_0x470b11(0x1ca)],'transform':{..._0x51444b[_0x470b11(0x1ca)][_0x470b11(0x330)],'width':_0x412316[_0x470b11(0x48c)],'height':_0x412316[_0x470b11(0x36d)]}}}};return _0x4c0113(_0x1dc175,_0x35ffe1[_0x470b11(0x2ea)]);}let Or=class extends _0x41f8e5{constructor(_0xa4cd41,_0x228e62,_0xa3b9a6,_0x197f05,_0x63613e,_0x22b258){const _0xc8a26c=_0x4f3d14;super(),this['_renderContext']=_0xa4cd41,this[_0xc8a26c(0x338)]=_0x228e62,this[_0xc8a26c(0x3dd)]=_0xa3b9a6,this[_0xc8a26c(0x2d9)]=_0x197f05,this['_previewRefreshService']=_0x63613e,this['_commandService']=_0x22b258,K(this,_0xc8a26c(0x40d),null),K(this,_0xc8a26c(0x1c4),{'match':_0x4ba950=>_0x4ba950[_0xc8a26c(0x291)]===this[_0xc8a26c(0x414)]['unitId']&&!!_0x5585ba(_0x4ba950[_0xc8a26c(0x1ca)]),'resolveHostSize':_0x12158e=>this[_0xc8a26c(0x39e)](_0x12158e),'previewHostSize':_0x588684=>this['_previewHostSize'](_0x588684),'updateHostSize':_0x3821c2=>this[_0xc8a26c(0x328)](_0x3821c2),'updateShapeText':_0x5ddc9b=>this[_0xc8a26c(0x259)](_0x5ddc9b)}),this['disposeWithMe'](this['_intrinsicSizeService'][_0xc8a26c(0x295)](this['_provider'])),this[_0xc8a26c(0x339)](),this['disposeWithMe'](_0x122c68(()=>this[_0xc8a26c(0x448)]()));}['_updateHostSize'](_0x25871a){const _0x35f6d8=_0x4f3d14;return this[_0x35f6d8(0x372)](_0x25871a);}[_0x4f3d14(0x259)](_0xea617b){const _0x3c7762=_0x4f3d14;let _0x562541=_0xea617b[_0x3c7762(0x2cb)][_0x3c7762(0x1da)]?this['_resolveHostSize']({'elementData':_0xea617b[_0x3c7762(0x241)],'params':_0xea617b[_0x3c7762(0x2cb)]['hostSize']}):null,_0x1edf80=_0xea617b[_0x3c7762(0x241)]['transform']??_0xea617b[_0x3c7762(0x241)][_0x3c7762(0x1ca)][_0x3c7762(0x330)];return(!_0x562541||_0x562541[_0x3c7762(0x48c)]===_0x1edf80[_0x3c7762(0x48c)]&&_0x562541[_0x3c7762(0x36d)]===_0x1edf80[_0x3c7762(0x36d)])&&_0x1fcca7(_0xea617b['params'][_0x3c7762(0x1eb)],_0xea617b[_0x3c7762(0x2cb)][_0x3c7762(0x224)])?!0x0:this[_0x3c7762(0x32f)][_0x3c7762(0x4a8)](_0x3d67d8['id'],{'unitId':_0xea617b[_0x3c7762(0x2cb)]['unitId'],'subUnitId':_0xea617b['params'][_0x3c7762(0x20a)],'nodeId':_0xea617b['params'][_0x3c7762(0x3c3)],'shapeText':_0xea617b[_0x3c7762(0x2cb)][_0x3c7762(0x1eb)],..._0x562541?{'hostSize':{'width':_0x562541[_0x3c7762(0x48c)],'height':_0x562541['height']}}:null});}['_previewHostSize'](_0x53c69a){const _0x4d5068=_0x4f3d14;let _0x35ba4a=this[_0x4d5068(0x39e)](_0x53c69a);if(!_0x35ba4a)return!0x1;let _0x440e24=_0x53c69a[_0x4d5068(0x241)][_0x4d5068(0x330)]??_0x53c69a[_0x4d5068(0x241)]['element']['transform'];return!this[_0x4d5068(0x40d)]&&_0x440e24[_0x4d5068(0x48c)]===_0x35ba4a[_0x4d5068(0x48c)]&&_0x440e24[_0x4d5068(0x36d)]===_0x35ba4a[_0x4d5068(0x36d)]||this[_0x4d5068(0x329)](_0x53c69a,_0x35ba4a),!0x0;}['_resolveHostSize'](_0xb3fedf){const _0x5d3dc6=_0x4f3d14;return!Er(_0xb3fedf[_0x5d3dc6(0x2cb)]['width'])||!Er(_0xb3fedf[_0x5d3dc6(0x2cb)][_0x5d3dc6(0x36d)])?null:_0x26ff7e(_0xb3fedf[_0x5d3dc6(0x241)],{'width':_0xb3fedf['params'][_0x5d3dc6(0x48c)],'height':_0xb3fedf[_0x5d3dc6(0x2cb)][_0x5d3dc6(0x36d)]});}['_initEditingRestore'](){const _0xd1fb9c=_0x4f3d14;this[_0xd1fb9c(0x44d)](_0x122c68(this['_textEditingService']['editingParams$'][_0xd1fb9c(0x46c)](_0x41cd5b(this[_0xd1fb9c(0x494)]))['subscribe'](_0x471698=>{const _0x440aa5=_0xd1fb9c;_0x471698||this[_0x440aa5(0x448)]();})));}[_0x4f3d14(0x329)](_0x4c7171,_0x45f7de){const _0x4c84c5=_0x4f3d14;var _0xfb35f5;let _0x143078=this[_0x4c84c5(0x3dd)][_0x4c84c5(0x198)](_0x4c7171[_0x4c84c5(0x2cb)][_0x4c84c5(0x291)],_0x4c7171[_0x4c84c5(0x2cb)]['subUnitId']),_0x2026ed=Dr(_0x143078,_0x4c7171['params'][_0x4c84c5(0x3c3)],_0x45f7de),_0x194caa=_0x5585ba((_0xfb35f5=_0x143078[_0x4c7171[_0x4c84c5(0x2cb)][_0x4c84c5(0x3c3)]])==null?void 0x0:_0xfb35f5['element']);_0x2026ed&&_0x194caa&&(this[_0x4c84c5(0x40d)]={'unitId':_0x4c7171[_0x4c84c5(0x2cb)][_0x4c84c5(0x291)],'subUnitId':_0x4c7171[_0x4c84c5(0x2cb)]['subUnitId'],'scopeId':_0x194caa[_0x4c84c5(0x2ea)]},this[_0x4c84c5(0x377)](_0x2026ed,_0x194caa[_0x4c84c5(0x2ea)])&&this[_0x4c84c5(0x400)]['notify']({'unitId':_0x4c7171[_0x4c84c5(0x2cb)][_0x4c84c5(0x291)],'subUnitId':_0x4c7171[_0x4c84c5(0x2cb)][_0x4c84c5(0x20a)],'nodeId':_0x4c7171[_0x4c84c5(0x2cb)][_0x4c84c5(0x3c3)],'scopeId':_0x194caa[_0x4c84c5(0x2ea)]}));}[_0x4f3d14(0x448)](){const _0x2efd41=_0x4f3d14;let _0x34ebd1=this[_0x2efd41(0x40d)];if(!_0x34ebd1)return;this[_0x2efd41(0x40d)]=null;let _0xd7b9c6=this[_0x2efd41(0x3dd)]['getElementData'](_0x34ebd1[_0x2efd41(0x291)],_0x34ebd1['subUnitId']);this['_syncElementDataToScene'](_0xd7b9c6,_0x34ebd1[_0x2efd41(0x3a9)])&&this[_0x2efd41(0x400)][_0x2efd41(0x3da)]({'unitId':_0x34ebd1[_0x2efd41(0x291)],'subUnitId':_0x34ebd1[_0x2efd41(0x20a)],'nodeId':_0x34ebd1[_0x2efd41(0x3a9)],'scopeId':_0x34ebd1[_0x2efd41(0x3a9)]});}[_0x4f3d14(0x377)](_0x3aedec,_0x21c597){const _0x109c6c=_0x4f3d14;let _0x4d1370=!0x1;if(Object[_0x109c6c(0x2df)](_0x3aedec)['forEach'](_0x4bf80d=>{const _0xe44e26=_0x109c6c;var _0x1d62c8;let _0x44e10e=_0x5585ba(_0x4bf80d['element']),_0x41fd0a=(_0x1d62c8=_0x4bf80d[_0xe44e26(0x1ca)][_0xe44e26(0x192)])==null?void 0x0:_0x1d62c8['structured'];if(_0x4bf80d[_0xe44e26(0x3e9)]!==_0x21c597&&(_0x44e10e==null?void 0x0:_0x44e10e['structureScopeId'])!==_0x21c597&&(_0x41fd0a==null?void 0x0:_0x41fd0a[_0xe44e26(0x2ea)])!==_0x21c597)return;let _0x3b0be1=this['_getSceneObject'](_0x4bf80d[_0xe44e26(0x3e9)]);_0x3b0be1&&(_0x4d1370=_0x17e74f(_0x3b0be1,_0x4bf80d,{'elementData':_0x3aedec,'unitId':this[_0xe44e26(0x414)][_0xe44e26(0x291)]})||_0x4d1370);}),_0x4d1370){var _0x8b6b7c,_0x18353f;this['_renderContext']['scene'][_0x109c6c(0x32c)](!0x0),(_0x8b6b7c=(_0x18353f=this['_renderContext'][_0x109c6c(0x48b)])[_0x109c6c(0x1cf)])==null||_0x8b6b7c[_0x109c6c(0x2a4)](_0x18353f);}return _0x4d1370;}[_0x4f3d14(0x324)](_0x4346ea){const _0x5a568e=_0x4f3d14;var _0x408f36;let _0x1c3fde=_0x55b3e2(this[_0x5a568e(0x414)][_0x5a568e(0x291)],_0x4346ea),_0xdfa752=this[_0x5a568e(0x414)][_0x5a568e(0x48b)];return((_0x408f36=_0xdfa752[_0x5a568e(0x484)])==null?void 0x0:_0x408f36[_0x5a568e(0x2a4)](_0xdfa752,_0x1c3fde))??this[_0x5a568e(0x414)][_0x5a568e(0x48b)]['getObject'](_0x1c3fde)??null;}};Or=J([q(0x1,_0x132a38(_0x3514cd)),q(0x2,_0x132a38(_0x5c495f)),q(0x3,_0x132a38(_0x2d7b12)),q(0x4,_0x132a38(Tr)),q(0x5,_0x27d0fe)],Or);const $={'touchHitRadius':0x16,'radius':0x12,'addChildRadius':0xe,'siblingHoverRadius':0xa,'siblingDotRadius':0x5,'siblingDotGap':0x3,'gap':0xa,'collapsePlusMinDistance':0x2c,'primaryColor':Y[_0x4f3d14(0x422)],'surfaceColor':Y[_0x4f3d14(0x27a)],'borderWidth':0x2,'glyphSize':0x8,'addChildGlyphSize':0x6,'siblingGlyphSize':5.5,'glyphWidth':2.4,'glyphHoverWidth':0x3,'badgeFontWeight':0x258,'badgeFontSize':0x12,'fontFamily':Y[_0x4f3d14(0x2d0)]};function kr(_0x429101){const _0x5b734c=_0x4f3d14;let _0x19b8d1=$[_0x5b734c(0x1fb)],_0x269376=$[_0x5b734c(0x21c)],_0x2610da=$[_0x5b734c(0x2ff)],_0x1a674a=$['gap'],_0x3046da=$[_0x5b734c(0x214)],_0x44d531=_0x3046da+$[_0x5b734c(0x305)],_0xdfa877=$[_0x5b734c(0x232)],_0x1b0164=_0x429101[_0x5b734c(0x19a)][_0x5b734c(0x2e1)]+_0x429101[_0x5b734c(0x19a)][_0x5b734c(0x36d)]/0x2,_0x81314f=_0x429101['bounds'][_0x5b734c(0x445)]+_0x429101[_0x5b734c(0x19a)][_0x5b734c(0x48c)]/0x2,_0xa5e72a=_0x429101[_0x5b734c(0x19a)][_0x5b734c(0x445)]-_0x19b8d1-_0x1a674a,_0x566280=_0x429101[_0x5b734c(0x19a)]['left']+_0x429101[_0x5b734c(0x19a)][_0x5b734c(0x48c)]+_0x19b8d1+_0x1a674a,_0x2021cd=_0x429101['bounds'][_0x5b734c(0x2e1)]-_0x19b8d1-_0x1a674a,_0x30bb84=_0x429101[_0x5b734c(0x19a)]['top']+_0x429101['bounds']['height']+_0x19b8d1+_0x1a674a,_0x36c537=_0x429101[_0x5b734c(0x19a)][_0x5b734c(0x445)]-_0x269376-_0x1a674a,_0x2f3665=_0x429101['bounds'][_0x5b734c(0x445)]+_0x429101['bounds']['width']+_0x269376+_0x1a674a,_0x1c96d=_0x429101[_0x5b734c(0x19a)][_0x5b734c(0x2e1)]-_0x269376-_0x1a674a,_0x397fd0=_0x429101[_0x5b734c(0x19a)][_0x5b734c(0x2e1)]+_0x429101[_0x5b734c(0x19a)][_0x5b734c(0x36d)]+_0x269376+_0x1a674a,_0x43c160=[],_0x5519c2=_0x429101[_0x5b734c(0x350)]===_0x5b734c(0x2e1)||_0x429101[_0x5b734c(0x350)]===_0x5b734c(0x449),_0x49118f=_0x5519c2?_0x81314f:_0x429101[_0x5b734c(0x350)]===_0x5b734c(0x445)?_0xa5e72a:_0x566280,_0x3ff2b5=_0x5519c2?_0x429101[_0x5b734c(0x350)]==='top'?_0x2021cd:_0x30bb84:_0x1b0164;if(_0x429101[_0x5b734c(0x1c2)]&&_0x429101[_0x5b734c(0x342)]>0x0)return _0x43c160['push']({'kind':_0x5b734c(0x408),'x':_0x49118f,'y':_0x3ff2b5,'radius':_0x19b8d1,'badgeCount':_0x429101[_0x5b734c(0x342)]}),_0x43c160;if(_0x429101[_0x5b734c(0x34c)]?(_0x429101[_0x5b734c(0x4ab)]??(_0x5519c2?[_0x5b734c(0x2e1),_0x5b734c(0x449)]:[_0x5b734c(0x445),'right']))[_0x5b734c(0x2d1)](_0x5aa158=>{const _0x1956a9=_0x5b734c;_0x5aa158===_0x1956a9(0x2e1)?_0x43c160[_0x1956a9(0x3ee)]({'kind':_0x1956a9(0x3f5),'x':_0x81314f,'y':_0x1c96d,'radius':_0x269376}):_0x5aa158==='bottom'?_0x43c160[_0x1956a9(0x3ee)]({'kind':_0x1956a9(0x2ca),'x':_0x81314f,'y':_0x397fd0,'radius':_0x269376}):_0x5aa158===_0x1956a9(0x445)?_0x43c160[_0x1956a9(0x3ee)]({'kind':_0x1956a9(0x227),'x':_0x36c537,'y':_0x1b0164,'radius':_0x269376}):_0x43c160['push']({'kind':'add-child-right','x':_0x2f3665,'y':_0x1b0164,'radius':_0x269376});}):(_0x43c160['push']({'kind':_0x429101[_0x5b734c(0x350)]===_0x5b734c(0x445)?_0x5b734c(0x227):_0x429101['side']===_0x5b734c(0x2e1)?_0x5b734c(0x3f5):_0x429101[_0x5b734c(0x350)]===_0x5b734c(0x449)?'add-child-bottom':_0x5b734c(0x235),'x':_0x5519c2?_0x81314f:_0x429101[_0x5b734c(0x350)]===_0x5b734c(0x445)?_0x36c537:_0x2f3665,'y':_0x5519c2?_0x429101['side']===_0x5b734c(0x2e1)?_0x1c96d:_0x397fd0:_0x1b0164,'radius':_0x269376}),_0x5519c2?(_0x43c160[_0x5b734c(0x3ee)]({'kind':_0x5b734c(0x3f8),'placement':_0x5b734c(0x2ee),'x':_0x429101['bounds'][_0x5b734c(0x445)]-_0x44d531,'y':_0x1b0164,'radius':_0x2610da,'visualRadius':_0x3046da}),_0x43c160[_0x5b734c(0x3ee)]({'kind':_0x5b734c(0x3cd),'placement':'after','x':_0x429101['bounds'][_0x5b734c(0x445)]+_0x429101['bounds']['width']+_0x44d531,'y':_0x1b0164,'radius':_0x2610da,'visualRadius':_0x3046da})):(_0x43c160[_0x5b734c(0x3ee)]({'kind':_0x5b734c(0x3f8),'placement':_0x5b734c(0x2ee),'x':_0x81314f,'y':_0x429101[_0x5b734c(0x19a)][_0x5b734c(0x2e1)]-_0x44d531,'radius':_0x2610da,'visualRadius':_0x3046da}),_0x43c160['push']({'kind':_0x5b734c(0x3cd),'placement':_0x5b734c(0x3e3),'x':_0x81314f,'y':_0x429101[_0x5b734c(0x19a)][_0x5b734c(0x2e1)]+_0x429101['bounds'][_0x5b734c(0x36d)]+_0x44d531,'radius':_0x2610da,'visualRadius':_0x3046da}))),_0x429101[_0x5b734c(0x1c2)]){let _0xadb281={'kind':_0x5b734c(0x408),'x':_0x49118f,'y':_0x3ff2b5,'radius':_0x19b8d1};_0x43c160[_0x5b734c(0x3ee)](_0xadb281);let _0x5a340a=_0x43c160['find'](_0x2b5a04=>_0x2b5a04[_0x5b734c(0x315)]===(_0x429101['side']===_0x5b734c(0x445)?_0x5b734c(0x227):_0x429101[_0x5b734c(0x350)]===_0x5b734c(0x2e1)?_0x5b734c(0x3f5):_0x429101[_0x5b734c(0x350)]===_0x5b734c(0x449)?_0x5b734c(0x2ca):'add-child-right'));_0x5a340a&&Math[_0x5b734c(0x277)](_0x5a340a['x']-_0xadb281['x'],_0x5a340a['y']-_0xadb281['y'])<_0xdfa877&&(_0x429101['side']==='top'||_0x429101[_0x5b734c(0x350)]===_0x5b734c(0x449)?_0x5a340a['y']=_0xadb281['y']+(_0x429101[_0x5b734c(0x350)]==='top'?-_0xdfa877:_0xdfa877):_0x5a340a['x']=_0xadb281['x']+(_0x429101['side']===_0x5b734c(0x445)?-_0xdfa877:_0xdfa877));}return _0x43c160;}const Ar=_0x4f3d14(0x229),jr=_0x2019f6[_0x4f3d14(0x361)];function Mr(_0x519f2d,_0x2e9235){const _0x1df150=_0x4f3d14;return!!_0x519f2d&&_0x519f2d['kind']===_0x2e9235[_0x1df150(0x315)]&&_0x519f2d['x']===_0x2e9235['x']&&_0x519f2d['y']===_0x2e9235['y'];}var Nr=class extends _0x4ff2d9{constructor(_0xa01836=Ar,_0x4f95dc){const _0x2108cd=_0x4f3d14;super(_0xa01836),K(this,'_state',{'controls':[]}),this[_0x2108cd(0x2f9)]=!0x0,this['zIndex']=_0x65c3c8[_0x2108cd(0x287)],this[_0x2108cd(0x2e5)](_0x4f95dc);}[_0x4f3d14(0x2e5)](_0x272180){const _0x2d36a6=_0x4f3d14;this[_0x2d36a6(0x2e0)]={...this[_0x2d36a6(0x2e0)],..._0x272180},this[_0x2d36a6(0x2e0)][_0x2d36a6(0x49d)][_0x2d36a6(0x452)]>0x0?this['show']():this['hide'](),this[_0x2d36a6(0x32c)](!0x0);}['setHoveredControl'](_0x1b9aa7){const _0x38abe9=_0x4f3d14;!_0x1b9aa7&&!this['_state']['hoveredControl']||_0x1b9aa7&&Mr(this['_state'][_0x38abe9(0x3e2)],_0x1b9aa7)||(this[_0x38abe9(0x2e0)]={...this['_state'],'hoveredControl':_0x1b9aa7},this[_0x38abe9(0x32c)](!0x0));}['getHitControl'](_0x444f30,_0x335a5a){const _0x4fcb6c=_0x4f3d14;var _0x4cbde2;let _0x4a82a4=(_0x4cbde2=this[_0x4fcb6c(0x250)]())==null?void 0x0:_0x4cbde2[_0x4fcb6c(0x1b6)](),_0x129378=null,_0x5a52bd=0x1/0x0;for(let _0x2144b6=this[_0x4fcb6c(0x2e0)][_0x4fcb6c(0x49d)][_0x4fcb6c(0x452)]-0x1;_0x2144b6>=0x0;--_0x2144b6){let _0x20fdc3=this[_0x4fcb6c(0x2e0)][_0x4fcb6c(0x49d)][_0x2144b6],_0x1d612b=Math[_0x4fcb6c(0x277)](_0x444f30['x']-_0x20fdc3['x'],_0x444f30['y']-_0x20fdc3['y']);if(_0x335a5a!==_0x5ef2af[_0x4fcb6c(0x30f)]){if(_0x1d612b<=_0x20fdc3['radius'])return _0x20fdc3;continue;}let _0xc7e690=Math[_0x4fcb6c(0x277)]((_0x444f30['x']-_0x20fdc3['x'])*((_0x4a82a4==null?void 0x0:_0x4a82a4[_0x4fcb6c(0x301)])??0x1),(_0x444f30['y']-_0x20fdc3['y'])*((_0x4a82a4==null?void 0x0:_0x4a82a4[_0x4fcb6c(0x3ae)])??0x1));(_0x1d612b<=_0x20fdc3[_0x4fcb6c(0x1fb)]||_0xc7e690<=$[_0x4fcb6c(0x369)])&&_0xc7e690<_0x5a52bd&&(_0x129378=_0x20fdc3,_0x5a52bd=_0xc7e690);}return _0x129378;}[_0x4f3d14(0x253)](_0x48313f){const _0x16ee61=_0x4f3d14;var _0xe6d57e;let _0x157628=this['getHitControl'](_0x48313f,_0x5ef2af[_0x16ee61(0x30f)]),_0x545691=(_0xe6d57e=this['getScene']())==null?void 0x0:_0xe6d57e['getAncestorScale']();return _0x157628?Math[_0x16ee61(0x277)]((_0x48313f['x']-_0x157628['x'])*((_0x545691==null?void 0x0:_0x545691[_0x16ee61(0x301)])??0x1),(_0x48313f['y']-_0x157628['y'])*((_0x545691==null?void 0x0:_0x545691[_0x16ee61(0x3ae)])??0x1)):0x1/0x0;}[_0x4f3d14(0x397)](_0x52cc2e){const _0x15a34c=_0x4f3d14;return!!this[_0x15a34c(0x279)]({'x':_0x52cc2e['x'],'y':_0x52cc2e['y']});}[_0x4f3d14(0x360)](_0x1b09b7,_0x402fa4){const _0x54eb31=_0x4f3d14;return!this[_0x54eb31(0x418)]||this[_0x54eb31(0x2e0)]['controls'][_0x54eb31(0x452)]===0x0?(this['makeDirty'](!0x1),this):(_0x1b09b7[_0x54eb31(0x3de)](),this[_0x54eb31(0x2e0)][_0x54eb31(0x49d)]['forEach'](_0x7f1b53=>{const _0x1150c0=_0x54eb31;let _0x340493=Mr(this['_state']['hoveredControl'],_0x7f1b53),_0x246e15=_0x7f1b53[_0x1150c0(0x296)]!==void 0x0,_0x3fe6e2=_0x7f1b53[_0x1150c0(0x315)]===_0x1150c0(0x227)||_0x7f1b53[_0x1150c0(0x315)]===_0x1150c0(0x235)||_0x7f1b53[_0x1150c0(0x315)]===_0x1150c0(0x3f5)||_0x7f1b53[_0x1150c0(0x315)]===_0x1150c0(0x2ca),_0xc3635f=_0x7f1b53[_0x1150c0(0x315)]===_0x1150c0(0x3f8)||_0x7f1b53['kind']===_0x1150c0(0x3cd),_0x865822=_0xc3635f&&!_0x340493?_0x7f1b53[_0x1150c0(0x1d2)]??_0x7f1b53[_0x1150c0(0x1fb)]:_0x7f1b53['radius'];if(_0x1b09b7[_0x1150c0(0x2de)](),_0x1b09b7[_0x1150c0(0x3ef)]=_0x7f1b53[_0x1150c0(0x315)]==='toggle-collapse'?$[_0x1150c0(0x27a)]:$[_0x1150c0(0x422)],_0x1b09b7[_0x1150c0(0x355)]=$['primaryColor'],_0x1b09b7[_0x1150c0(0x37c)]=$[_0x1150c0(0x455)],_0x1b09b7[_0x1150c0(0x249)](_0x7f1b53['x'],_0x7f1b53['y'],_0x865822,0x0,Math['PI']*0x2),_0x1b09b7[_0x1150c0(0x222)](),(!_0xc3635f||_0x340493)&&_0x1b09b7[_0x1150c0(0x267)](),!_0x246e15&&(!_0xc3635f||_0x340493)){if(_0x1b09b7[_0x1150c0(0x2de)](),_0x1b09b7[_0x1150c0(0x355)]=_0x7f1b53['kind']===_0x1150c0(0x408)?$['primaryColor']:$[_0x1150c0(0x27a)],_0x1b09b7[_0x1150c0(0x37c)]=_0xc3635f?$[_0x1150c0(0x1f5)]:_0x340493?$[_0x1150c0(0x2d8)]:$[_0x1150c0(0x1f5)],_0x1b09b7[_0x1150c0(0x215)]='round',_0x7f1b53[_0x1150c0(0x315)]==='toggle-collapse'){let _0x181f92=$[_0x1150c0(0x308)];_0x1b09b7[_0x1150c0(0x2a2)](_0x7f1b53['x']+_0x181f92/0x2,_0x7f1b53['y']-_0x181f92),_0x1b09b7[_0x1150c0(0x28d)](_0x7f1b53['x']-_0x181f92/0x2,_0x7f1b53['y']),_0x1b09b7[_0x1150c0(0x28d)](_0x7f1b53['x']+_0x181f92/0x2,_0x7f1b53['y']+_0x181f92);}else{let _0x9d542f=_0xc3635f?$[_0x1150c0(0x37b)]:_0x3fe6e2?$['addChildGlyphSize']:$[_0x1150c0(0x308)];_0x1b09b7['moveTo'](_0x7f1b53['x']-_0x9d542f,_0x7f1b53['y']),_0x1b09b7[_0x1150c0(0x28d)](_0x7f1b53['x']+_0x9d542f,_0x7f1b53['y']),_0x1b09b7[_0x1150c0(0x2a2)](_0x7f1b53['x'],_0x7f1b53['y']-_0x9d542f),_0x1b09b7['lineTo'](_0x7f1b53['x'],_0x7f1b53['y']+_0x9d542f);}_0x1b09b7[_0x1150c0(0x267)]();}_0x246e15&&(_0x1b09b7[_0x1150c0(0x3ef)]=$[_0x1150c0(0x422)],_0x1b09b7[_0x1150c0(0x4ae)]=$['badgeFontWeight']+'\x20'+$[_0x1150c0(0x293)]+_0x1150c0(0x44a)+$['fontFamily'],_0x1b09b7[_0x1150c0(0x284)]=_0x1150c0(0x237),_0x1b09b7[_0x1150c0(0x412)]=_0x1150c0(0x356),_0x1b09b7[_0x1150c0(0x240)](String(_0x7f1b53['badgeCount']),_0x7f1b53['x'],_0x7f1b53['y']));}),_0x1b09b7[_0x54eb31(0x1a0)](),this[_0x54eb31(0x32c)](!0x1),this);}};function Pr(_0x4871d0){const _0x101a9f=_0x4f3d14;return _0x4871d0===_0x101a9f(0x195)||_0x4871d0===_0x101a9f(0x378)||_0x4871d0===_0x101a9f(0x2f6);}function Fr(_0x1ddf50){const _0x4df356=_0x4f3d14;return _0x1ddf50===_0x4df356(0x243)||_0x1ddf50===_0x4df356(0x481);}function Ir(_0x41d6b5,_0x38cca1){const _0x544b23=_0x4f3d14;let _0x411822=Number[_0x544b23(0x490)](_0x38cca1[_0x544b23(0x1e9)])&&_0x38cca1[_0x544b23(0x1e9)]>0x0?_0x38cca1[_0x544b23(0x1e9)]:0x1;return{'x':Math[_0x544b23(0x28e)]((_0x41d6b5[_0x544b23(0x385)]-_0x38cca1['panOffset']['x'])/_0x411822),'y':Math['round']((_0x41d6b5[_0x544b23(0x2a5)]-_0x38cca1[_0x544b23(0x33c)]['y'])/_0x411822)};}let Lr=class extends _0x41f8e5{constructor(_0x31d6b9,_0x1ad255,_0x4809c5,_0x450469,_0x536f85,_0x98bb52,_0x3438fe,_0x556aba,_0x4295df){const _0x5ebf0c=_0x4f3d14;super(),this['_renderContext']=_0x31d6b9,this['_boardElementService']=_0x1ad255,this[_0x5ebf0c(0x1a3)]=_0x4809c5,this['_stateService']=_0x450469,this[_0x5ebf0c(0x32f)]=_0x536f85,this[_0x5ebf0c(0x28b)]=_0x98bb52,this[_0x5ebf0c(0x335)]=_0x3438fe,this[_0x5ebf0c(0x400)]=_0x556aba,this[_0x5ebf0c(0x30c)]=_0x4295df,K(this,_0x5ebf0c(0x19d),null),K(this,'_objectEventDisposables',null),K(this,_0x5ebf0c(0x430),null),K(this,_0x5ebf0c(0x298),null),this[_0x5ebf0c(0x45b)]();}['_init'](){const _0x125f35=_0x4f3d14;var _0xf2bf8f,_0x4a6256,_0x47dc03;let {scene:_0x5c2643}=this['_renderContext'],_0xeba987=(_0xf2bf8f=_0x5c2643[_0x125f35(0x1dc)])==null?void 0x0:_0xf2bf8f[_0x125f35(0x2a4)](_0x5c2643);_0xeba987&&(this[_0x125f35(0x44d)](_0x122c68(_0xeba987['changing$'][_0x125f35(0x46c)](_0x41cd5b(this['dispose$']))[_0x125f35(0x345)](({objects:_0x412765})=>{const _0xce9085=_0x125f35;this[_0xce9085(0x38c)](_0x412765,{'hideRootControls':!0x0});}))),this['disposeWithMe'](_0x122c68(_0xeba987[_0x125f35(0x34d)]['pipe'](_0x41cd5b(this['dispose$']))[_0x125f35(0x345)](_0x33ce1f=>{const _0x1edaa3=_0x125f35;let _0x341e12=_0x33ce1f==null?void 0x0:_0x33ce1f[_0x1edaa3(0x365)];this[_0x1edaa3(0x38c)](_0x341e12),setTimeout(()=>this[_0x1edaa3(0x38c)](_0x341e12),0x0);})))),this['disposeWithMe'](_0x122c68(this[_0x125f35(0x1a3)]['state$'][_0x125f35(0x46c)](_0x41cd5b(this[_0x125f35(0x494)]))['subscribe'](()=>this[_0x125f35(0x38c)]()))),this['disposeWithMe'](_0x122c68(this[_0x125f35(0x407)][_0x125f35(0x475)][_0x125f35(0x46c)](_0x41cd5b(this[_0x125f35(0x494)]))[_0x125f35(0x345)](()=>this[_0x125f35(0x38c)]()))),this['disposeWithMe'](_0x122c68(this[_0x125f35(0x3dd)]['elementUpdate$'][_0x125f35(0x46c)](_0x41cd5b(this[_0x125f35(0x494)]))[_0x125f35(0x345)](_0x1302df=>{const _0x4856bf=_0x125f35;let _0x22cfee=this[_0x4856bf(0x1a3)][_0x4856bf(0x310)]()[_0x4856bf(0x3ac)];_0x22cfee&&_0x1302df[_0x4856bf(0x4a2)](_0x1fc06f=>_0x1fc06f['unitId']===_0x22cfee['unitId']&&_0x1fc06f[_0x4856bf(0x20a)]===_0x22cfee[_0x4856bf(0x20a)]&&(_0x1fc06f[_0x4856bf(0x3e9)]===this[_0x4856bf(0x430)]||_0x1fc06f[_0x4856bf(0x3e9)]===this[_0x4856bf(0x298)]))&&this['_syncControls']();}))),this[_0x125f35(0x44d)](_0x122c68(this[_0x125f35(0x400)][_0x125f35(0x403)][_0x125f35(0x46c)](_0x41cd5b(this[_0x125f35(0x494)]))[_0x125f35(0x345)](_0x2970cd=>{const _0x159a90=_0x125f35;let _0x1a0b2a=this['_elementStateService'][_0x159a90(0x310)]()[_0x159a90(0x3ac)];_0x1a0b2a&&_0x1a0b2a[_0x159a90(0x291)]===_0x2970cd[_0x159a90(0x291)]&&_0x1a0b2a[_0x159a90(0x20a)]===_0x2970cd['subUnitId']&&(this[_0x159a90(0x298)]&&this[_0x159a90(0x298)]!==_0x2970cd['scopeId']||this[_0x159a90(0x38c)]());}))),this[_0x125f35(0x44d)](_0x122c68(_0x5c2643[_0x125f35(0x450)][_0x125f35(0x474)](_0x5c96f7=>this[_0x125f35(0x33d)](_0x5c96f7)))),this[_0x125f35(0x44d)](_0x122c68(_0x5c2643[_0x125f35(0x210)]['subscribeEvent']({'priority':0x4,'next':([_0xadd8e6,_0x4aeb9a])=>{const _0xadbc2e=_0x125f35;this[_0xadbc2e(0x3b2)](_0xadd8e6)&&this[_0xadbc2e(0x260)](_0xadd8e6,_0x4aeb9a);}}))),this['disposeWithMe'](_0x122c68(((_0x4a6256=_0x5c2643[_0x125f35(0x376)])==null?void 0x0:_0x4a6256[_0x125f35(0x474)]({'priority':0x4,'next':([_0x3bd284,_0xe4b219])=>{const _0x2fdf8e=_0x125f35;this[_0x2fdf8e(0x1a2)](_0x3bd284)&&this[_0x2fdf8e(0x260)](_0x3bd284,_0xe4b219);}}))??{'dispose':()=>{}})),this[_0x125f35(0x44d)](_0x122c68(((_0x47dc03=_0x5c2643['onDblclick$'])==null?void 0x0:_0x47dc03['subscribeEvent']({'priority':0x4,'next':([_0x156576,_0x27acca])=>{const _0x3f5a29=_0x125f35;this['_isControlEvent'](_0x156576)&&this[_0x3f5a29(0x260)](_0x156576,_0x27acca);}}))??{'dispose':()=>{}})),this[_0x125f35(0x44d)](_0x122c68(()=>this[_0x125f35(0x470)]())),this[_0x125f35(0x38c)]();}['_ensureObject'](){const _0xdbc721=_0x4f3d14;return this['_object']||(this[_0xdbc721(0x19d)]=new Nr(Ar),this[_0xdbc721(0x46d)](this['_object']),this[_0xdbc721(0x414)][_0xdbc721(0x48b)][_0xdbc721(0x2c3)](this[_0xdbc721(0x19d)],jr)),this[_0xdbc721(0x19d)];}['_attachObjectEvents'](_0x51c475){const _0x490fa8=_0x4f3d14;var _0xb0fafa;(_0xb0fafa=this['_objectEventDisposables'])==null||_0xb0fafa[_0x490fa8(0x45e)]();let _0xf191d6=new _0x3fd367();_0xf191d6[_0x490fa8(0x45d)](_0x51c475[_0x490fa8(0x210)]['subscribeEvent']({'priority':0x4,'next':([_0x35b9d9,_0x41eabc])=>{const _0x59497b=_0x490fa8;this[_0x59497b(0x3b2)](_0x35b9d9)&&this['_consumeControlEvent'](_0x35b9d9,_0x41eabc);}})),_0xf191d6[_0x490fa8(0x45d)](_0x51c475[_0x490fa8(0x376)][_0x490fa8(0x474)]({'priority':0x4,'next':([_0x1c41d3,_0x38eced])=>{const _0x56323b=_0x490fa8;this[_0x56323b(0x1a2)](_0x1c41d3)&&this[_0x56323b(0x260)](_0x1c41d3,_0x38eced);}})),_0xf191d6['add'](_0x51c475[_0x490fa8(0x239)][_0x490fa8(0x474)]({'priority':0x4,'next':([_0xad950a,_0x39936a])=>{this['_isControlEvent'](_0xad950a)&&this['_consumeControlEvent'](_0xad950a,_0x39936a);}})),this[_0x490fa8(0x20c)]=_0xf191d6;}['_removeObject'](){const _0x43ea04=_0x4f3d14;var _0x57635b;this[_0x43ea04(0x19d)]&&(this[_0x43ea04(0x414)][_0x43ea04(0x48b)]['removeObjects']([this[_0x43ea04(0x19d)]]),(_0x57635b=this[_0x43ea04(0x20c)])==null||_0x57635b[_0x43ea04(0x45e)](),this['_objectEventDisposables']=null,this['_object']=null,this[_0x43ea04(0x430)]=null,this[_0x43ea04(0x298)]=null,this[_0x43ea04(0x414)]['scene'][_0x43ea04(0x32c)](!0x0));}[_0x4f3d14(0x38c)](_0x5b449e,_0x2ccad1){const _0x22354d=_0x4f3d14;var _0x731947,_0x52d862;if(this[_0x22354d(0x407)]['getState']()['interactionMode']===_0x22354d(0x1af)){this[_0x22354d(0x470)]();return;}let _0x329ab3=this[_0x22354d(0x1a3)][_0x22354d(0x310)](),_0x152315=_0x329ab3[_0x22354d(0x3ac)],_0x3008fd=_0x329ab3[_0x22354d(0x206)]??_0x329ab3[_0x22354d(0x375)][0x0];if(!_0x152315||!_0x3008fd||_0x329ab3[_0x22354d(0x375)][_0x22354d(0x452)]!==0x1){this[_0x22354d(0x470)]();return;}let _0x495134=this['_boardElementService'][_0x22354d(0x198)](_0x152315[_0x22354d(0x291)],_0x152315[_0x22354d(0x20a)]),_0x36c9df=_0x495134[_0x3008fd],_0x3cce9a=_0x5585ba(_0x36c9df==null?void 0x0:_0x36c9df['element']);if(!_0x36c9df||!_0x3cce9a){this['_removeObject']();return;}let _0x312322=_0x55b3e2(_0x152315[_0x22354d(0x291)],_0x3008fd);if(_0x2ccad1!=null&&_0x2ccad1[_0x22354d(0x275)]&&_0x3cce9a[_0x22354d(0x29f)]==null&&_0x5b449e!=null&&_0x5b449e[_0x22354d(0x290)](_0x312322)){this['_removeObject']();return;}let _0x113c0f=this[_0x22354d(0x41a)](_0x495134,_0x152315[_0x22354d(0x291)],_0x3008fd,_0x5b449e);if(!_0x113c0f){this[_0x22354d(0x470)]();return;}let _0x2d4e4f=Object['values'](_0x495134)[_0x22354d(0x43b)](_0x459a07=>{const _0x2c9e59=_0x22354d;var _0x5a4fbd;return((_0x5a4fbd=_0x5585ba(_0x459a07[_0x2c9e59(0x1ca)]))==null?void 0x0:_0x5a4fbd[_0x2c9e59(0x29f)])===_0x3008fd;}),_0x5b84ff=_0x3cce9a[_0x22354d(0x4a9)]?this[_0x22354d(0x411)](_0x495134,_0x3008fd):0x0;this[_0x22354d(0x430)]=_0x3008fd,this['_activeScopeId']=_0x3cce9a[_0x22354d(0x2ea)];let _0x3f0219=(_0x731947=_0x495134[_0x3cce9a[_0x22354d(0x2ea)]])==null?void 0x0:_0x731947['element'],_0x23d2e1=_0x487e3a(_0x3f0219),_0x47c3d3=_0x3f0219==null||(_0x52d862=_0x3f0219['custom'])==null||(_0x52d862=_0x52d862['mindmap'])==null||(_0x52d862=_0x52d862[_0x22354d(0x2bc)])==null?void 0x0:_0x52d862[_0x22354d(0x35e)],_0x5cccd3=(_0x23d2e1==null?void 0x0:_0x23d2e1[_0x22354d(0x2bc)]['structureKind'])??_0x47c3d3,_0x56e6aa=_0x3cce9a['parentNodeId']==null,_0x465fb5=this['_resolveControlSide'](_0x3cce9a[_0x22354d(0x350)],_0x56e6aa,_0x5cccd3);this[_0x22354d(0x2b1)]()[_0x22354d(0x2e5)]({'controls':kr({'bounds':_0x113c0f,'isRoot':_0x56e6aa,'side':_0x465fb5,'rootChildSides':this[_0x22354d(0x34f)](_0x56e6aa,_0x5cccd3),'hasChildren':_0x2d4e4f[_0x22354d(0x452)]>0x0,'collapsedDescendantCount':_0x5b84ff})}),this[_0x22354d(0x414)][_0x22354d(0x48b)][_0x22354d(0x32c)](!0x0);}[_0x4f3d14(0x3a7)](_0x538300,_0x966ac0,_0x5049ae){const _0x55efc8=_0x4f3d14;return _0x5049ae==='timeline-vertical'?!_0x966ac0&&(_0x538300===_0x55efc8(0x445)||_0x538300===_0x55efc8(0x289))?_0x538300:'bottom':_0x5049ae==='mindmap-vertical'?!_0x966ac0&&(_0x538300==='top'||_0x538300===_0x55efc8(0x449))?_0x538300:_0x55efc8(0x449):_0x538300===_0x55efc8(0x445)?_0x55efc8(0x445):_0x55efc8(0x289);}[_0x4f3d14(0x34f)](_0x2ab6b6,_0x30625e){const _0x12a82d=_0x4f3d14;if(_0x2ab6b6){if(Pr(_0x30625e))return[_0x12a82d(0x449)];if(_0x30625e===_0x12a82d(0x243))return[_0x12a82d(0x289)];if(_0x30625e===_0x12a82d(0x481))return[_0x12a82d(0x449)];}}[_0x4f3d14(0x3fd)](_0x2328d4){const _0x9b9e13=_0x4f3d14;var _0x3164e3,_0x4a57bd;let _0x37eea1=this[_0x9b9e13(0x1a3)][_0x9b9e13(0x310)]()[_0x9b9e13(0x3ac)];if(!_0x37eea1||!this[_0x9b9e13(0x430)])return;let _0xb72cdf=this[_0x9b9e13(0x3dd)][_0x9b9e13(0x198)](_0x37eea1['unitId'],_0x37eea1[_0x9b9e13(0x20a)]),_0x8f5812=_0x5585ba((_0x3164e3=_0xb72cdf[this[_0x9b9e13(0x430)]])==null?void 0x0:_0x3164e3['element']),_0x1f3f5a=_0x8f5812?_0x487e3a((_0x4a57bd=_0xb72cdf[_0x8f5812[_0x9b9e13(0x2ea)]])==null?void 0x0:_0x4a57bd[_0x9b9e13(0x1ca)]):null;if((_0x8f5812==null?void 0x0:_0x8f5812[_0x9b9e13(0x29f)])!=null||!Pr(_0x1f3f5a==null?void 0x0:_0x1f3f5a['layout'][_0x9b9e13(0x35e)])&&!Fr(_0x1f3f5a==null?void 0x0:_0x1f3f5a['layout'][_0x9b9e13(0x35e)]))return _0x2328d4===_0x9b9e13(0x227)?_0x9b9e13(0x445):_0x2328d4==='add-child-top'?_0x9b9e13(0x2e1):_0x2328d4===_0x9b9e13(0x2ca)?_0x9b9e13(0x449):_0x9b9e13(0x289);}[_0x4f3d14(0x41a)](_0x28ca45,_0x51b3db,_0x4652ba,_0x309757){const _0x335314=_0x4f3d14;var _0x37fa02,_0x478757;let _0x3c5ddd=_0x55b3e2(_0x51b3db,_0x4652ba),_0x2869c1=_0x309757==null?void 0x0:_0x309757[_0x335314(0x47f)](_0x3c5ddd),_0x585af4=this['_toFiniteBounds'](_0x2869c1);if(_0x585af4)return _0x585af4;let _0x4e1b2d=this['_renderContext'][_0x335314(0x48b)],_0x34885f=((_0x37fa02=_0x4e1b2d[_0x335314(0x484)])==null?void 0x0:_0x37fa02[_0x335314(0x2a4)](_0x4e1b2d,_0x3c5ddd))??((_0x478757=_0x4e1b2d[_0x335314(0x3b7)])==null?void 0x0:_0x478757[_0x335314(0x2a4)](_0x4e1b2d,_0x3c5ddd));return this['_toFiniteBounds'](_0x34885f)||_0x25dbfe(_0x28ca45,_0x4652ba);}['_toFiniteBounds'](_0x5085f9){const _0x29b1ee=_0x4f3d14;return _0x5085f9&&Number[_0x29b1ee(0x490)](_0x5085f9['left'])&&Number[_0x29b1ee(0x490)](_0x5085f9['top'])&&Number[_0x29b1ee(0x490)](_0x5085f9[_0x29b1ee(0x48c)])&&Number[_0x29b1ee(0x490)](_0x5085f9[_0x29b1ee(0x36d)])?{'left':_0x5085f9[_0x29b1ee(0x445)],'top':_0x5085f9[_0x29b1ee(0x2e1)],'width':_0x5085f9[_0x29b1ee(0x48c)],'height':_0x5085f9['height']}:null;}[_0x4f3d14(0x411)](_0x289d4a,_0x2b0d77){const _0x122c77=_0x4f3d14;return Object[_0x122c77(0x2df)](_0x289d4a)['filter'](_0x48395b=>{const _0x38e0c9=_0x122c77;var _0x55efd9;return((_0x55efd9=_0x5585ba(_0x48395b['element']))==null?void 0x0:_0x55efd9[_0x38e0c9(0x29f)])===_0x2b0d77;})[_0x122c77(0x23d)]((_0x19b84f,_0x1804b5)=>_0x19b84f+0x1+this[_0x122c77(0x411)](_0x289d4a,_0x1804b5['elementId']),0x0);}['_handlePointerMove'](_0x3fd99c){const _0x2ec2b9=_0x4f3d14;if(!this[_0x2ec2b9(0x19d)])return;let _0x3852c7=this[_0x2ec2b9(0x407)]['getState'](),_0x5a6473=Ir(_0x3fd99c,{'panOffset':_0x3852c7[_0x2ec2b9(0x36e)],'zoomRatio':_0x3852c7[_0x2ec2b9(0x1e9)]});this['_object']['setHoveredControl'](this['_object'][_0x2ec2b9(0x279)](_0x5a6473,_0x3fd99c[_0x2ec2b9(0x2fe)]));}[_0x4f3d14(0x3b2)](_0x18f7f7){const _0x32ef47=_0x4f3d14;if(!this[_0x32ef47(0x19d)]||!this[_0x32ef47(0x430)]||(_0x18f7f7[_0x32ef47(0x26f)]??0x0)!==0x0)return!0x1;let _0x4a348f=this['_elementStateService'][_0x32ef47(0x310)]()[_0x32ef47(0x3ac)];if(!_0x4a348f)return!0x1;let _0x2c3380=this[_0x32ef47(0x407)][_0x32ef47(0x25b)](),_0x2f8e44=Ir(_0x18f7f7,{'panOffset':_0x2c3380['viewportPanOffset'],'zoomRatio':_0x2c3380['zoomRatio']}),_0x359001=this[_0x32ef47(0x19d)][_0x32ef47(0x279)](_0x2f8e44,_0x18f7f7[_0x32ef47(0x2fe)]);if(!_0x359001)return!0x1;if(_0x359001['kind']===_0x32ef47(0x408))return this[_0x32ef47(0x479)](_0xdc3604['id'],{'unitId':_0x4a348f[_0x32ef47(0x291)],'subUnitId':_0x4a348f[_0x32ef47(0x20a)],'nodeId':this[_0x32ef47(0x430)]}),!0x0;if(_0x359001[_0x32ef47(0x315)]===_0x32ef47(0x227)||_0x359001[_0x32ef47(0x315)]===_0x32ef47(0x235)||_0x359001['kind']===_0x32ef47(0x3f5)||_0x359001[_0x32ef47(0x315)]===_0x32ef47(0x2ca)){let _0x44e1b8=_0x21938d(0x6);return this[_0x32ef47(0x423)](_0x21cdef['id'],{'unitId':_0x4a348f['unitId'],'subUnitId':_0x4a348f[_0x32ef47(0x20a)],'parentNodeId':this[_0x32ef47(0x430)],'side':this[_0x32ef47(0x3fd)](_0x359001[_0x32ef47(0x315)]),'nodeId':_0x44e1b8,'connectorId':_0x21938d(0x6),'text':this[_0x32ef47(0x335)]['t']('boards-mind-ui.panel.addText')},_0x44e1b8),!0x0;}if(_0x359001[_0x32ef47(0x315)]===_0x32ef47(0x3f8)||_0x359001[_0x32ef47(0x315)]==='add-sibling-after'){let _0x15240a=_0x21938d(0x6);return this[_0x32ef47(0x423)](_0x20f384['id'],{'unitId':_0x4a348f[_0x32ef47(0x291)],'subUnitId':_0x4a348f[_0x32ef47(0x20a)],'nodeId':this[_0x32ef47(0x430)],'placement':_0x359001[_0x32ef47(0x3c9)]??(_0x359001[_0x32ef47(0x315)]===_0x32ef47(0x3f8)?_0x32ef47(0x2ee):'after'),'siblingNodeId':_0x15240a,'connectorId':_0x21938d(0x6),'text':this['_localeService']['t'](_0x32ef47(0x391))},_0x15240a),!0x0;}return!0x0;}[_0x4f3d14(0x1a2)](_0x67d28c){const _0x474eb5=_0x4f3d14;if(!this[_0x474eb5(0x19d)]||(_0x67d28c['button']??0x0)!==0x0)return!0x1;let _0x24ca47=this[_0x474eb5(0x407)]['getState'](),_0x3ad64a=Ir(_0x67d28c,{'panOffset':_0x24ca47['viewportPanOffset'],'zoomRatio':_0x24ca47[_0x474eb5(0x1e9)]});return!!this['_object'][_0x474eb5(0x279)](_0x3ad64a,_0x67d28c['deviceType']);}['_consumeControlEvent'](_0x319585,_0x1ed2b1){const _0x2eb474=_0x4f3d14;var _0xf4be67,_0x40fbf8;_0x1ed2b1[_0x2eb474(0x1de)](),(_0xf4be67=_0x319585['preventDefault'])==null||_0xf4be67[_0x2eb474(0x2a4)](_0x319585),(_0x40fbf8=_0x319585[_0x2eb474(0x1de)])==null||_0x40fbf8[_0x2eb474(0x2a4)](_0x319585);}['_executeAndLayout'](_0x41d244,_0x488e46){const _0x376dd5=_0x4f3d14;let _0x509aa4=this[_0x376dd5(0x298)];this[_0x376dd5(0x30c)][_0x376dd5(0x3a5)](_0x488e46[_0x376dd5(0x291)],()=>{const _0x53217f=_0x376dd5;this[_0x53217f(0x32f)][_0x53217f(0x4a8)](_0x41d244,_0x488e46)&&_0x509aa4&&(this[_0x53217f(0x32f)][_0x53217f(0x4a8)](_0x4b5dc4['id'],{'unitId':_0x488e46[_0x53217f(0x291)],'subUnitId':_0x488e46[_0x53217f(0x20a)],'scopeId':_0x509aa4}),this['_syncControls']());});}['_executeCreateAndEdit'](_0x502f51,_0x399de7,_0x10db31){const _0x46c476=_0x4f3d14;let _0x2836aa={'unitId':_0x399de7[_0x46c476(0x291)],'subUnitId':_0x399de7['subUnitId']},_0x2e3b3b=this[_0x46c476(0x32f)][_0x46c476(0x32d)](_0x502f51,_0x399de7);Promise[_0x46c476(0x1ec)](_0x2e3b3b)[_0x46c476(0x193)](_0x3565e8=>{const _0x371735=_0x46c476;_0x3565e8&&(this[_0x371735(0x38c)](),this[_0x371735(0x1a3)]['selectElements'](_0x2836aa,[_0x10db31],_0x10db31),this['_boardTextEditingService'][_0x371735(0x26a)](),this['_boardTextEditingService'][_0x371735(0x24b)]({..._0x2836aa,'shapeId':_0x10db31,'shapeKey':_0x55b3e2(_0x2836aa['unitId'],_0x10db31),'visible':!0x0}));});}};Lr=J([q(0x1,_0x132a38(_0x5c495f)),q(0x2,_0x132a38(_0x16fdab)),q(0x3,_0x132a38(_0x31b38d)),q(0x4,_0x27d0fe),q(0x5,_0x132a38(_0x2d7b12)),q(0x6,_0x132a38(_0x4eab55)),q(0x7,_0x132a38(Tr)),q(0x8,_0x132a38(_0x57f4a7))],Lr);const Rr=_0x4f3d14(0x1a6);let zr=class extends _0x41f8e5{constructor(_0x49de4c,_0x3953b7){const _0x33d540=_0x4f3d14;super(),this[_0x33d540(0x32f)]=_0x49de4c,this[_0x33d540(0x49a)]=_0x3953b7,this['_init']();}['_init'](){const _0x53d9ce=_0x4f3d14;this[_0x53d9ce(0x44d)](this[_0x53d9ce(0x49a)]['registerShortcut'](this['_createQuoteShortcut']()));}[_0x4f3d14(0x346)](){const _0x464006=_0x4f3d14;return{'id':_0x15a211,'binding':_0x80c18b[_0x464006(0x444)]|_0x21a288[_0x464006(0x220)],'priority':0x3e8,'preconditions':_0x5a621b=>_0x5a621b[_0x464006(0x1b3)]('FOCUSING_MIND_MAP_TEXT_EDITOR')&&this[_0x464006(0x32f)][_0x464006(0x31e)](_0x15a211)};}};function _0x4677(){const _0x220eea=['horizontalAlign','BOTTOM','M4.5\x2016.5h4.2c1.9\x200\x203.3-1.5\x203.3-3.3','_findChildNodeAtPoint','JUSTIFIED','getConfig','elementAdd$','notify','underline','textPaddingScreen','_boardElementService','save','elementStateService','quadraticCurveTo','defineProperty','hoveredControl','after','pendingInsert','_ensureDragPreviewObject','activated$','opml','_injector','elementId','BACKSPACE','constructor','boards-mind-ui.toolbar.panel.line','TOP','push','fillStyle','key','register','M15\x2031h50M35\x2031V18c0-4\x203-7\x208-7h9M35\x2031v13c0\x204\x203\x207\x208\x207h9','univer-h-auto\x20univer-min-h-12\x20univer-whitespace-normal\x20univer-px-2\x20univer-py-2','engine','add-child-top','default','102uGUBAA','add-sibling-before','nodeId','793nSDJuP','MindMap','rootTextColor','_resolveCreateChildSide','univer-flex\x20univer-flex-col\x20univer-gap-1','boards-mind-ui.saveDescription','_previewRefreshService','mind-map-font-size','branchLineType','refresh$','_syncRootScopePreview','handleShortcut','16KhlpcH','_stateService','toggle-collapse','data','_pointerDragStart','boards-mind-ui.alignMiddle','_objectPointerDisposables','_activePreview','getElementById','getTemplate','M16\x2029h18c7\x200\x2010-5\x2010-12v-3M34\x2029h10c7\x200\x2010\x205\x2010\x2012v3','_countDescendants','textBaseline','M17\x2033h21M38\x2017v30M38\x2017h24','_renderContext','boards-mind-ui.panel.structureKind.treeRight','getFonts','div','visible','arrow-up','_resolveControlBounds','panel','_applyRootTranslation','onStarting','version','univer-space-y-3','mind-map-stroke','_popupDisposable','primaryColor','_executeCreateAndEdit','_applyDragTopologyAction','fontColor','textColor','ghostTextColor','boards-mind-ui.panel.searchNodes','registerRuntimeScopedDependencies','1.8','selectElements','connectorAlpha','_registerComponents','addSibling','_syncDragPreview','_activeNodeId','find','success','promote','fontSize','addChildNode','board.mind-map.floating-toolbar','Branch','_attachActivePointerDragListeners','clipboardService','all','filter','getShortcutDisplay','objectAlpha','univer-grid-cols-3','_getRenderModules','_captureDragStart','horizontalGap','boards-mind-ui.toolbar.action.stroke','boards-mind-ui.toolbar.primary.fontColor','ENTER','left','_getBoardPointFromEvent','interactionMode','_restoreActivePreview','bottom','px\x20','_nodeSizeByKey','ARROW_UP','disposeWithMe','boards-mind-ui.alignBottom','sourceHighlightStrokeColor','onPointerMove$','collapse-all','length','_applyPointerChildDrag','boards-mind-ui.panel.layout.both','borderWidth','next','registerShortcut','object','univer-size-full\x20univer-bg-gray-0\x20univer-text-sm\x20univer-text-gray-700\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-200','M12\x2026h11M58\x2036h11M12\x2045h11','_init','rgb','add','dispose','221496yvQkxn','_createTopologyBoundsByElementId','_getPointerLiveBounds','univer-min-w-0\x20univer-flex-1\x20univer-justify-start\x20univer-truncate\x20univer-text-left','11jfvJbA','univer-h-12\x20univer-text-base','_isChildDragPastActivationThreshold','_sidebarService','label','univer-mb-2\x20univer-text-lg\x20univer-text-gray-900','_dragStart','_createShortcutItems','boards-mind-ui.toolbar.action.paste','pipe','_attachObjectEvents','univer-items-center','_disposed','_removeObject','_rememberNodeSize','ghostBounds','layout-panel-divider','subscribeEvent','state$','boards-mind-ui.toolbar.primary.typography','branch-orthogonal','join','_executeAndLayout','lineJoin','board.operation.mind-map.open-panel','addDescription','univer-mb-0','referenceNodeId','get','true','timeline-vertical','editingParams$','activeEditingId','getObjectIncludeInGroup','open','univer-text-xs\x20univer-text-gray-400\x20dark:!univer-text-gray-500','boards-mind-ui.descriptionPlaceholder','text','_componentManager','fallbackNodeHeight','scene','width','removeEventListener','unshift','boards-mind-ui.panel.structureKind.timelineVertical','isFinite','boards-mind-ui.panel.structureKind.timelineHorizontal','repeat(','rounded-orthogonal','dispose$','univer-flex\x20univer-h-12\x20univer-min-w-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-border-0\x20univer-bg-transparent\x20univer-p-0\x20univer-text-gray-900\x20univer-outline-none\x20univer-transition-colors\x20hover:univer-bg-gray-0','_copySelectedNode','commandService','RoundDot','rootHeight','_shortcutService','defaultValue','_sidebarDisposable','controls','_disposeActivePointerDragListeners','_executeNodeOperation','isInteractionSurfaceActive','boards-mind-ui.panel.tab.structure','some','_configService','hide','boards-mind-ui.alignJustify','_resetContext','localeService','syncExecuteCommand','collapsed','_queuedLayouts','rootChildSides','clearSelection','Dash','font','parseInt','editCurrentNode','arrow-down','_resolveNodeSize','_resolveSelectedMindMapEntryFromState','uiStateService','registerCommand','custom','then','boards-mind-ui.toolbar.action.delete','tree-left','M22\x208h36M22\x2048h36M14\x2018v20M66\x2018v20','detach','getElementData','targetNodeId','bounds','_lastPoint','boards-mind-ui.panel.rename','_object','boards-mind-ui.panel.title','path','restore','liveRootBounds','_isControlEvent','_elementStateService','5gpCBAh','copy','FOCUSING_MIND_MAP_TEXT_EDITOR','ARROW_RIGHT','boards-mind-ui.panel.cancel','_enableMindMapToolbarTool','sort','LEFT','univer-w-20\x20univer-shrink-0','pointerStartX','_resolveRootTopLeft','viewing','univer-grid\x20univer-h-14\x20univer-overflow-hidden\x20univer-rounded-xl\x20univer-bg-gray-100\x20univer-p-1',',\x20minmax(0,\x201fr))','pointerStartY','getContextValue','italic','primary','getAncestorScale','_executeChildDragAction','M47\x2025h13M47\x2035h13M47\x2045h13','text/plain','Enter','value','close','_mindMapClipboardService','M4.5\x207.5h4.2c1.9\x200\x203.3\x201.5\x203.3\x203.3v2.4c0\x201.8\x201.4\x203.3\x203.3\x203.3h4.2','567828JGJUJj','#d8dce3','branch-curve','hasChildren','fromEntries','_provider','_childDragActivated','snapDistance','childNodeId','boards-mind-ui.panel.structureKind.mindmapVertical','RIGHT','element','_resolveArrowNavigationTarget','Tree\x20diagram','univer-h-7\x20univer-min-w-9\x20univer-w-auto\x20univer-gap-1\x20univer-px-1.5','rootRadius','requestRender','univer-h-28\x20univer-resize-none','ARROW_LEFT','visualRadius','_pasteAsNewMindMap','rootWidth','textStyle','root','boards-mind-ui.panel.spacing.siblingGap','newParentNodeId','rootStartBounds','hostSize','_config','getTransformerByCreate','univer-border-b\x20univer-border-gray-200\x20univer-p-3','stopPropagation','_seedExistingNodeSizes','univer-min-h-12\x20univer-text-xl','_getPointerScreenPoint','add-sibling-or-child','boards-mind-ui.panel.pasteOPML','_resolveChildSide','registerAdapter','boards-mind-ui.config','boards-mind-ui.panel.nodeStyle.style','univer-border-b\x20univer-border-gray-200\x20univer-p-4','zoomRatio','_syncContext','shapeText','resolve','OPERATION','labelKey','boards-mind-ui.panel.branchLineType.curve','paste-as-new','top-center','edit-text','_attachObjectPointerScheduled','univer-w-32','glyphWidth','circle','decorate','set','mindmap-vertical','nodeHeight','radius','_insertMindMap','mind-map-fill','currentColor','attachPopupToObject','6\x207','M31\x2013c9\x208\x209\x2022\x2018\x2030M49\x2013c-9\x208-9\x2022-18\x2030M31\x2013c-7\x204-9\x209-9\x2015s2\x2011\x209\x2015M49\x2013c7\x204\x209\x209\x209\x2015s-2\x2011-9\x2015','timeline','ghostFontWeight','_resolveSelectedEntry','FOCUSING_MIND_MAP_NODE','focusedId','dropdown','boards-mind-ui.panel.branchLineType.roundedOrthogonal','branch','subUnitId','_getLiveObjectBounds','_objectEventDisposables','ArrowLeft','_cloneBlueprintNode','univer-min-h-12\x20univer-w-full','onPointerDown$','boundsByElementId','_queueLayout','preventDefault','siblingDotRadius','lineCap','sourceHighlightFillColor','_resolveChildDragTopologyAction','textEditingService','boards-mind-ui.panel.nodeStyle.fontSize','M19.5\x207.5h-4.2c-1.9\x200-3.3\x201.5-3.3\x203.3','univer-mb-3\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-900\x20dark:!univer-text-gray-100','addChildRadius','_renderManagerService','572131OlHTII','getRenderUnitById','SHIFT','boards-mind-ui.toolbar.action.addChild','fill','dash','oldShapeText','pointermove','asObservable','add-child-left','elementRemove$','board-mind-map-node-controls-object','_executeRootAnchoredLayout','_createKeyboardShortcutOperation','board-mind-map-pending-insert-object','univer-w-full\x20univer-text-xs','_boardCanvasPopManagerService','_popupSelectionKey','_insertStateService','doc','collapsePlusMinDistance','_deleteSelectedNode','onCommandExecuted','add-child-right','getUnit','center','toLowerCase','onDblclick$','detachWhenNoSnap','boards-mind-ui.panel.exportOPML','zIndex','reduce','_syncChildDragPreview','isRootNode','fillText','elementData','buttons','timeline-horizontal','addChild','getCurrentUnitOfType','min','boards-mind-ui.toolbar.primary.line','addEventListener','arc','navigator','setEditing','prototype','setContextValue','_activePointerDragDisposables','_capturePointerChildDragStart','getScene','univer-text-xs','item','getTouchHitDistance','boards-mind-ui.panel.branchLineType.orthogonal','span','clearControl$','both','boards-mind-ui.panel.importOPML','_updateShapeText','activeTool','getState','ArrowUp','univer-bg-[#e8eefc]\x20univer-text-[#2f6fed]\x20hover:univer-bg-[#e8eefc]','color','_isPopupSelectionStillActive','_consumeControlEvent','extraProps','univer-flex\x20univer-justify-end\x20univer-gap-2','opacity','structure','flatMap','fallbackNodeWidth','stroke','boards-mind-ui.panel.layout.left','_template','ignoreExternalFocusChanges','lineWidthScreen','globalAlpha','getBoundingClientRect','univer-text-base','button','icon','dot','univer-space-y-2','618318XMPBrW','move','hideRootControls','_applyScopeTranslation','hypot','svg','getHitControl','surfaceColor','setTemplate','[&_input]:univer-h-12\x20[&_input]:univer-text-base','dividerBefore','univer-flex\x20univer-flex-col\x20univer-gap-2','_resolveIncomingConnectorStyle','_refresh$','style','boards-mind-ui.panel.structureKind.treeAlternate','elementUpdate$','textAlign','boards-mind-ui.panel.spacing.parentGap','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-xs\x20univer-text-gray-600','transientControl','incomingConnectorStyle','right','strikethrough','_boardTextEditingService','univer-flex-1\x20univer-text-sm','lineTo','round','children','has','unitId','mindmap','badgeFontSize','Escape','registerProvider','badgeCount','registerRenderModule','_activeScopeId','changing$','_syncPreviewObject','boards-mind-ui.cancel','boards-mind-ui.toolbar.panel.typography','univer-size-6\x20univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200','enabled','parentNodeId','vertical','none','moveTo','univer-min-h-12\x20univer-flex-1','call','offsetY','collapseAllNodes','univer-min-h-12\x20univer-px-3','boards-mind-ui.panel.spacing.branchGap','add-child','_ensurePreviewObject','parentBounds','univer-h-32\x20univer-resize-none\x20univer-text-sm','univer-text-gray-500','createRunner','closePath','section','_ensureObject','univer-grid\x20univer-grid-cols-4\x20univer-gap-2','strokeWidth','_openDescriptionDialog','_showPopupForSelection','siblingGap','pointercancel','function','CENTER','univer-max-w-[min(760px,calc(100vw-32px))]','_removePreviewObject','layout','ghostFillColor','boards-mind-ui.alignCenter','show','getSelectedObjectMap','map','_getBlankBoardContext','addObject','_getPointFromEvent','pluginName','univer-space-y-1','getActivePageId','makeDirtyNoDebounce','orderKey','add-child-bottom','params','rootText','_drawSourceHighlight','tree-diagram','open-description','fontFamily','forEach','_clearPopup','textFill','beginMindMapMode','_syncPointerChildDragPreview','branch-rounded-orthogonal','action','glyphHoverWidth','_textEditingService','_resolveCurrentBoardContext','_layoutFlushScheduled','@univerjs-pro/boards-mind-ui','boards-mind-ui.panel.tab.layout','beginPath','values','_state','top','_getMindMapChildren','20JTorTm','unit','updateState','branchGap','_getZoomRatio','_normalizeChildren','foreignAttributes','structureScopeId','slice','_cloneBlueprint','titleKey','before','items','_previewObject','_removeDragPreviewObject','_resolveCompleteSelectedScope','_addChild','arrow-right','orthogonal','tree-alternate','M40\x209v40M40\x2020c8\x200\x2011\x204\x2011\x2011v8M40\x2035c-8\x200-11\x204-11\x2011v4','boards-mind-ui.panel.emptyNodes','evented','univer-mb-4','1.1.0','bold','_instanceSrv','deviceType','siblingHoverRadius','univer-flex-wrap','scaleX','pointerup','getInjector','rootFontWeight','siblingDotGap','child','ghostRadius','glyphSize','getOwnPropertyDescriptor','scope','_childDragSelectionHidden','_undoRedoGroupService','univer-size-5','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-4','Touch','getSnapshot','_openSelectedTextEditing','MIDDLE','renderContext','line','kind','M56\x2012v32M56\x2019c0\x204-3\x206-7\x206h-7M56\x2029c0\x204-3\x206-7\x206h-7M56\x2039c0\x204-3\x206-7\x206h-7','_getSelectedMindMapContext','boards-mind-ui.description','complete','unsubscribe','point','max','dataTransfer','hasCommand','verticalAlign','ArrowDown','rgba(','_uiStateService','effectAllowed','_getSceneObject','_getDependencies','dialogService','clientX','_updateHostSize','_syncLayoutPreview','symbol','_scheduleAttachObjectPointerListeners','makeDirty','executeCommand','tools','_commandService','transform','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-p-4','_hideSelectionForChildDrag','delete','mindmap-horizontal','_localeService','skipNextObservers','curve','_intrinsicSizeService','_initEditingRestore','renderGhostNode','updateElement','panOffset','_handlePointerMove','_isPointInBounds','TRUE','dashType','removeObjects','collapsedDescendantCount','clear','board-mind-map-drag-preview-object','subscribe','_createQuoteShortcut','_collapseAll','importExport','board.operation.mind-map.keyboard-shortcut','_getBoardsUIConfig','_dragPreviewObject','isRoot','changeEnd$','allowRootReparent','_resolveRootChildControlSides','side','string','getUnitId','popup','preview','strokeStyle','middle','_lastChildDragAction','small','timelineAxisGap','univer-flex\x20univer-min-w-0\x20univer-flex-1\x20univer-gap-2','UNIVER_BOARD','fonts$','foldChildNodes','structureKind','dragObjectAlpha','render','connectorAffordance','keys','setConfig','_contextService','objects','writeText','ghost','includes','touchHitRadius','abs','M56\x2011h11M56\x2051h11','blueprint','height','viewportPanOffset','arrow-left','getPayload','depth','_previewHostSize','M42\x2012v32M42\x2020c0\x204-3\x206-7\x206h-7M42\x2030c0\x204\x203\x206\x207\x206h7M42\x2039c0\x204-3\x206-7\x206h-7','from','selectedIds','onPointerUp$','_syncElementDataToScene','tree-right','univer-w-24','_navigateByTopology','siblingGlyphSize','lineWidth','connectorData','boards-mind-ui.panel.layout.right','sourceDashScreen','rootNodeId','paste','connector','findIndex','_restoreObjectToDragStart','offsetX','_pasteUnderSelectedNode','trim','boards-mind-ui.panel.structureKind.treeLeft','dataModel','_getElementKey','shapeData','_syncControls','onReady','_consumePointerEvent','clientY','direction','boards-mind-ui.panel.addText','_cancelPointerChildDrag','ArrowRight','_clearPopupIfSelectionChanged','isTransforming','boards-mind-ui.toolbar.action.copy','isHit','534XdPoze','univer-flex\x20univer-gap-2','412434HJRsJd','sourceHaloScreen','dirtyPaddingScreen','_instanceService','_resolveHostSize','univer-flex\x20univer-items-center\x20univer-gap-1\x20univer-truncate\x20univer-rounded\x20univer-py-1\x20univer-text-left\x20univer-text-gray-800','_resolveDirtyBounds','_buildPopupSelectionKey','0\x200\x2080\x2056','univer-min-h-12\x20univer-w-full\x20univer-justify-between','setData','run','Shape','_resolveControlSide','divider-','scopeId','univer-w-[202px]\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20univer-py-4\x20univer-shadow-lg','more','context','typography','scaleY','boards-mind-ui.toolbar.panel.more','reparent','univer-h-12\x20univer-w-32\x20univer-text-base','_handlePointerDown','_isActive','_interactionSurfaceService','type','focus','getObject','nodeWidth','_resolvePreviewSourceBounds','number','toolbar','boards-mind-ui.panel.tab.importExport','createControl$','transformByState','documentStyle','toPrimitive','_resolvePreviewTextStyle','title','shapeId','_attachObjectPointerListeners','setPendingInsert','FOCUSING_MIND_MAP_BLANK_BOARD','addSiblingNode','_syncRootReparentPreview','placement','clipboard','rootFontSize','onPointerCancel$','add-sibling-after','0\x200\x2024\x2024','setActiveTool','univer-mb-3\x20univer-w-full','sourceBounds','elementService'];_0x4677=function(){return _0x220eea;};return _0x4677();}zr=J([q(0x0,_0x27d0fe),q(0x1,_0x2c1c63)],zr);const Br=[Mn,Nn,Rr];let Vr=class extends _0x41f8e5{constructor(_0x38f41c,_0x3b185f,_0x360461,_0x2ce1b4,_0x28242c){const _0x5491d3=_0x4f3d14;super(),this[_0x5491d3(0x414)]=_0x38f41c,this[_0x5491d3(0x3dd)]=_0x3b185f,this[_0x5491d3(0x1a3)]=_0x360461,this['_textEditingService']=_0x2ce1b4,this[_0x5491d3(0x364)]=_0x28242c,K(this,'_isActive',!0x1),this['disposeWithMe'](_0x122c68(this[_0x5491d3(0x414)][_0x5491d3(0x3e6)]['pipe'](_0x41cd5b(this['dispose$']))['subscribe'](_0x1af0b9=>{const _0x2016a7=_0x5491d3;this[_0x2016a7(0x3b3)]=_0x1af0b9,this[_0x2016a7(0x1ea)]();}))),this[_0x5491d3(0x44d)](_0x122c68(this['_elementStateService']['state$'][_0x5491d3(0x46c)](_0x41cd5b(this[_0x5491d3(0x494)]))[_0x5491d3(0x345)](()=>{const _0x2ba0d3=_0x5491d3;this[_0x2ba0d3(0x1ea)]();}))),this['disposeWithMe'](_0x122c68(this['_textEditingService'][_0x5491d3(0x482)]['pipe'](_0x41cd5b(this[_0x5491d3(0x494)]))[_0x5491d3(0x345)](()=>{this['_syncContext']();}))),this[_0x5491d3(0x1ea)]();}['_syncContext'](){const _0x4498a8=_0x4f3d14;var _0x133319,_0x1378dc;let _0x1f88f8=this[_0x4498a8(0x1a3)][_0x4498a8(0x310)](),_0x47fe90=this['_textEditingService']['getEditing'](),_0x53abbf=_0x47fe90!=null&&_0x47fe90[_0x4498a8(0x418)]?_0x47fe90[_0x4498a8(0x3c3)]:_0x1f88f8[_0x4498a8(0x483)],_0x40247d=_0x1f88f8['focusedId']??_0x1f88f8[_0x4498a8(0x375)][0x0],_0x63aa93=_0x1f88f8[_0x4498a8(0x3ac)]??{'unitId':this[_0x4498a8(0x414)][_0x4498a8(0x291)],'subUnitId':this[_0x4498a8(0x414)][_0x4498a8(0x2e4)][_0x4498a8(0x2c7)]()},_0x5c1a06=this[_0x4498a8(0x3b3)]&&!!_0x40247d&&_0x1f88f8[_0x4498a8(0x375)][_0x4498a8(0x452)]===0x1&&!_0x53abbf&&!_0x1f88f8[_0x4498a8(0x395)],_0x525f70=this[_0x4498a8(0x3b3)]?this[_0x4498a8(0x3dd)][_0x4498a8(0x198)](_0x63aa93['unitId'],_0x63aa93[_0x4498a8(0x20a)]):{};this['_contextService'][_0x4498a8(0x24d)](Mn,_0x5c1a06&&!!_0x5585ba((_0x133319=_0x525f70[_0x40247d])==null?void 0x0:_0x133319['element'])),this[_0x4498a8(0x364)][_0x4498a8(0x24d)](Nn,this[_0x4498a8(0x3b3)]&&_0x1f88f8['selectedIds']['length']===0x0&&!_0x1f88f8[_0x4498a8(0x206)]&&!_0x53abbf&&!_0x1f88f8[_0x4498a8(0x395)]),this[_0x4498a8(0x364)][_0x4498a8(0x24d)](Rr,!!_0x53abbf&&!!_0x5585ba((_0x1378dc=_0x525f70[_0x53abbf])==null?void 0x0:_0x1378dc[_0x4498a8(0x1ca)]));}['dispose'](){const _0x37cfc3=_0x4f3d14;this[_0x37cfc3(0x4a6)](),super[_0x37cfc3(0x45e)]();}[_0x4f3d14(0x4a6)](){const _0x3066f3=_0x4f3d14;Br['forEach'](_0x51a9d5=>this[_0x3066f3(0x364)]['setContextValue'](_0x51a9d5,!0x1));}};Vr=J([q(0x1,_0x132a38(_0x5c495f)),q(0x2,_0x132a38(_0x16fdab)),q(0x3,_0x132a38(_0x2d7b12)),q(0x4,_0x22ca73)],Vr);var Hr=class extends wr{async['_handlePointerDown'](_0x5f44a0,_0xbc699c,_0x5dc551){const _0x192ca8=_0x4f3d14;await this[_0x192ca8(0x1fc)](_0x5f44a0,_0xbc699c,_0x5dc551);}};const Ur={'id':_0x4f3d14(0x47b),'type':_0x470c85[_0x4f3d14(0x1ed)],'handler':(_0x27966d,_0x4741e3)=>!!(_0x4741e3!=null&&_0x4741e3[_0x4f3d14(0x291)])&&!!_0x4741e3[_0x4f3d14(0x20a)]&&!!_0x4741e3[_0x4f3d14(0x3a9)]},Wr='board.mind-map.panel',Gr=[_0x4f3d14(0x264),_0x4f3d14(0x2bc),_0x4f3d14(0x348)];_0x1fa9e8[_0x4f3d14(0x441)],_0x1fa9e8['siblingGap'],_0x1fa9e8[_0x4f3d14(0x2e6)];const Kr=[{'labelKey':_0x4f3d14(0x285),'key':_0x4f3d14(0x441),..._0x3fb7b7[_0x4f3d14(0x441)]},{'labelKey':_0x4f3d14(0x1d7),'key':_0x4f3d14(0x2b6),..._0x3fb7b7[_0x4f3d14(0x2b6)]},{'labelKey':_0x4f3d14(0x2a8),'key':'branchGap',..._0x3fb7b7[_0x4f3d14(0x2e6)]}],qr=[{'labelKey':_0x4f3d14(0x37e),'value':'right'},{'labelKey':_0x4f3d14(0x268),'value':_0x4f3d14(0x445)},{'labelKey':_0x4f3d14(0x454),'value':_0x4f3d14(0x257)}],Jr=[{'labelKey':'boards-mind-ui.panel.structureKind.mindmapHorizontal','value':_0x4f3d14(0x334)},{'labelKey':_0x4f3d14(0x1c8),'value':_0x4f3d14(0x1f9)},{'labelKey':'boards-mind-ui.panel.structureKind.treeRight','value':_0x4f3d14(0x378)},{'labelKey':_0x4f3d14(0x388),'value':_0x4f3d14(0x195)},{'labelKey':_0x4f3d14(0x282),'value':_0x4f3d14(0x2f6)},{'labelKey':_0x4f3d14(0x491),'value':_0x4f3d14(0x243)},{'labelKey':_0x4f3d14(0x48f),'value':'timeline-vertical'}],Yr=[{'labelKey':_0x4f3d14(0x1ef),'value':_0x4f3d14(0x337)},{'labelKey':_0x4f3d14(0x208),'value':'rounded-orthogonal'},{'labelKey':_0x4f3d14(0x254),'value':'orthogonal'}];function Xr(_0x5261c6){const _0x185db7=_0x4f3d14;let _0x53b981=(_0x5261c6==null?void 0x0:_0x5261c6[_0x185db7(0x35e)])??_0x1fa9e8[_0x185db7(0x35e)];return{'spacing':{'horizontalGap':(_0x5261c6==null?void 0x0:_0x5261c6[_0x185db7(0x441)])??_0x1fa9e8[_0x185db7(0x441)],'siblingGap':(_0x5261c6==null?void 0x0:_0x5261c6[_0x185db7(0x2b6)])??_0x1fa9e8[_0x185db7(0x2b6)],'branchGap':(_0x5261c6==null?void 0x0:_0x5261c6[_0x185db7(0x2e6)])??_0x1fa9e8[_0x185db7(0x2e6)]},'direction':(_0x5261c6==null?void 0x0:_0x5261c6[_0x185db7(0x390)])??_0x1fa9e8['direction'],'structureKind':_0x53b981,'branchLineType':_0x22ba0f(_0x53b981,_0x5261c6==null?void 0x0:_0x5261c6['branchLineType'])};}async function Zr(_0x257eef,_0x36981a){const _0x305134=_0x4f3d14;return await Promise[_0x305134(0x1ec)](_0x257eef[_0x305134(0x32d)](_0x32999d['id'],_0x36981a))?(await Promise[_0x305134(0x1ec)](_0x257eef[_0x305134(0x32d)](_0x4b5dc4['id'],{'unitId':_0x36981a[_0x305134(0x291)],'subUnitId':_0x36981a[_0x305134(0x20a)],'scopeId':_0x36981a['scopeId']})),!0x0):!0x1;}async function Qr(_0x1af0ab,_0x564235){const _0x55a12d=_0x4f3d14;return await Promise[_0x55a12d(0x1ec)](_0x1af0ab[_0x55a12d(0x32d)](_0x523acc['id'],_0x564235))?(await Promise[_0x55a12d(0x1ec)](_0x1af0ab['executeCommand'](_0x4b5dc4['id'],{'unitId':_0x564235[_0x55a12d(0x291)],'subUnitId':_0x564235[_0x55a12d(0x20a)],'scopeId':_0x564235[_0x55a12d(0x3a9)]})),!0x0):!0x1;}async function $r(_0x54b294,_0x413375){const _0x36160b=_0x4f3d14;return await Promise[_0x36160b(0x1ec)](_0x54b294[_0x36160b(0x32d)](_0x32999d['id'],{'unitId':_0x413375[_0x36160b(0x291)],'subUnitId':_0x413375[_0x36160b(0x20a)],'scopeId':_0x413375[_0x36160b(0x3a9)],..._0x413375[_0x36160b(0x441)]===void 0x0?{}:{'horizontalGap':_0x413375[_0x36160b(0x441)]},..._0x413375['siblingGap']===void 0x0?{}:{'siblingGap':_0x413375[_0x36160b(0x2b6)]},..._0x413375[_0x36160b(0x2e6)]===void 0x0?{}:{'branchGap':_0x413375[_0x36160b(0x2e6)]}}))?(await Promise[_0x36160b(0x1ec)](_0x54b294['executeCommand'](_0x4b5dc4['id'],{'unitId':_0x413375['unitId'],'subUnitId':_0x413375['subUnitId'],'scopeId':_0x413375[_0x36160b(0x3a9)]})),!0x0):!0x1;}async function ei(_0x69ca3d,_0x2005f4){const _0x5d1f62=_0x4f3d14;return _0x2005f4[_0x5d1f62(0x3f9)]===_0x2005f4[_0x5d1f62(0x199)]||!await Promise[_0x5d1f62(0x1ec)](_0x69ca3d[_0x5d1f62(0x32d)](_0x2f561c['id'],{'unitId':_0x2005f4[_0x5d1f62(0x291)],'subUnitId':_0x2005f4[_0x5d1f62(0x20a)],'nodeId':_0x2005f4[_0x5d1f62(0x3f9)],'targetNodeId':_0x2005f4['targetNodeId'],'referenceNodeId':_0x2005f4[_0x5d1f62(0x199)],'placement':_0x2005f4['placement']}))?!0x1:(await Promise[_0x5d1f62(0x1ec)](_0x69ca3d['executeCommand'](_0x4b5dc4['id'],{'unitId':_0x2005f4[_0x5d1f62(0x291)],'subUnitId':_0x2005f4[_0x5d1f62(0x20a)],'scopeId':_0x2005f4[_0x5d1f62(0x3a9)]})),!0x0);}async function ti(_0x58bdc3,_0x43de8a){const _0x1057ed=_0x4f3d14;let _0xc8fab7=_0x43de8a[_0x1057ed(0x488)]['trim']();return!_0xc8fab7||!await Promise[_0x1057ed(0x1ec)](_0x58bdc3[_0x1057ed(0x32d)](_0x3d67d8['id'],{'unitId':_0x43de8a[_0x1057ed(0x291)],'subUnitId':_0x43de8a[_0x1057ed(0x20a)],'nodeId':_0x43de8a[_0x1057ed(0x3f9)],'text':_0xc8fab7}))?!0x1:(await Promise[_0x1057ed(0x1ec)](_0x58bdc3[_0x1057ed(0x32d)](_0x4b5dc4['id'],{'unitId':_0x43de8a[_0x1057ed(0x291)],'subUnitId':_0x43de8a[_0x1057ed(0x20a)],'scopeId':_0x43de8a[_0x1057ed(0x3a9)]})),!0x0);}async function ni(_0x12868e){const _0x125940=_0x4f3d14;var _0x93f76c;let _0xd30797=(_0x93f76c=globalThis[_0x125940(0x24a)])==null?void 0x0:_0x93f76c[_0x125940(0x3ca)];return _0xd30797!=null&&_0xd30797[_0x125940(0x366)]?(await _0xd30797[_0x125940(0x366)](_0x12868e),!0x0):!0x1;}async function ri(_0x1dd79e,_0xc7c986,_0x2a7f1e=ni){const _0x387336=_0x4f3d14;let _0x31ffcd=await Promise[_0x387336(0x1ec)](_0x1dd79e[_0x387336(0x32d)](_0x1d834a['id'],_0xc7c986));if(typeof _0x31ffcd!=_0x387336(0x351)||!_0x31ffcd)return!0x1;try{return await _0x2a7f1e(_0x31ffcd)!==!0x1;}catch{return!0x1;}}async function ii(_0x24dbae,_0x334291){const _0x2dd7ee=_0x4f3d14;return _0x334291[_0x2dd7ee(0x3e7)]['trim']()?(await _0x24dbae[_0x2dd7ee(0x32d)](_0x3b34fe['id'],_0x334291))[_0x2dd7ee(0x432)]:!0x1;}function ai(_0x2f1039,_0x19a298){const _0x296c96=_0x4f3d14;let _0xe0a2ed='shapeData'in _0x2f1039['element']?_0x2f1039[_0x296c96(0x1ca)]['shapeData'][_0x296c96(0x1eb)]:void 0x0;return(_0xe0a2ed==null?void 0x0:_0xe0a2ed[_0x296c96(0x488)])||_0x19a298;}function oi(_0x369fd7,_0x5afd33,_0x44fd74=_0x251b5d){const _0x1e6fe1=_0x4f3d14;let _0x2f79bb=Object['values'](_0x369fd7)[_0x1e6fe1(0x2c1)](_0x4b7636=>{const _0x5a236c=_0x1e6fe1;let _0x35781f=_0x5585ba(_0x4b7636[_0x5a236c(0x1ca)]);return(_0x35781f==null?void 0x0:_0x35781f[_0x5a236c(0x2ea)])===_0x5afd33?{'data':_0x4b7636,'meta':_0x35781f}:null;})[_0x1e6fe1(0x43b)](_0x1f3be7=>!!_0x1f3be7),_0x3c9ff3=new Map();_0x2f79bb[_0x1e6fe1(0x2d1)](_0x4d37fb=>{const _0x3817ac=_0x1e6fe1;let _0x1df638=_0x4d37fb['meta'][_0x3817ac(0x29f)];_0x3c9ff3[_0x3817ac(0x1f8)](_0x1df638,[..._0x3c9ff3[_0x3817ac(0x47f)](_0x1df638)??[],_0x4d37fb]);}),_0x3c9ff3[_0x1e6fe1(0x2d1)](_0x322578=>{const _0x3dee27=_0x1e6fe1;_0x322578[_0x3dee27(0x1aa)]((_0x1f72bf,_0xe22dc2)=>_0x401170(_0x1f72bf['meta'][_0x3dee27(0x2c9)],_0xe22dc2['meta'][_0x3dee27(0x2c9)])||_0x1f72bf['data']['elementId']['localeCompare'](_0xe22dc2[_0x3dee27(0x409)][_0x3dee27(0x3e9)]));});let _0x154035=[],_0x557868=(_0x1fe07b,_0x21d4dd)=>{(_0x3c9ff3['get'](_0x1fe07b)??[])['forEach'](_0x2d924e=>{const _0x817fd7=_0x5652;_0x154035[_0x817fd7(0x3ee)]({'nodeId':_0x2d924e[_0x817fd7(0x409)][_0x817fd7(0x3e9)],'depth':_0x21d4dd,'text':ai(_0x2d924e['data'],_0x44fd74)}),_0x557868(_0x2d924e['data'][_0x817fd7(0x3e9)],_0x21d4dd+0x1);});};return _0x557868(null,0x0),_0x154035;}function _0x5652(_0x32d8e8,_0x1984a1){_0x32d8e8=_0x32d8e8-0x18f;const _0x46778b=_0x4677();let _0x5652b9=_0x46778b[_0x32d8e8];return _0x5652b9;}function si(_0x11ac1b,_0x23c1f9){const _0x4edf86=_0x4f3d14;let _0x139566=_0x23c1f9[_0x4edf86(0x387)]()[_0x4edf86(0x238)]();return _0x139566?_0x11ac1b['filter'](_0x3da873=>_0x3da873[_0x4edf86(0x488)][_0x4edf86(0x238)]()[_0x4edf86(0x368)](_0x139566)):_0x11ac1b;}function ci(_0x58a654){const _0x624c62=_0x4f3d14;return{'paddingInlineStart':0x8+(Number[_0x624c62(0x490)](_0x58a654)&&_0x58a654>0x0?_0x58a654:0x0)*0x10};}function li(_0x2991b5){const _0x162210=_0x4f3d14;return _0x9b9447(_0x373ab1,{'className':_0x162210(0x22d),..._0x2991b5});}function ui(_0x1ed62e){const _0x43af3e=_0x4f3d14;return _0x27b706(_0x43af3e(0x2b0),{'className':_0x461cd5(_0x43af3e(0x1e8),_0x2d215c),'data-board-mind-map-panel-section':_0x43af3e(0x480),'children':[_0x9b9447('h3',{'className':_0x43af3e(0x21b),'children':_0x1ed62e[_0x43af3e(0x3c2)]}),_0x1ed62e['children']]});}function di(_0x5d9589,_0x37a958=_0x4f3d14(0x264)){const _0x1bcd02=_0x4f3d14;var _0x2554ad,_0x36d7b0,_0xbd4a1;let _0x1222e4=_0x1bf837(_0x27d0fe),_0x53ca3b=_0x1bf837(_0x16fdab),_0x563c7d=_0x1bf837(_0x5c495f),_0x1137ae=_0x1bf837(_0x4eab55),[,_0x152ff7]=_0x21ba50(_0x4ee3e5=>_0x4ee3e5+0x1,0x0);_0x4d0c04(()=>{const _0x64b3bc=_0x5652;let _0x3e3b91=_0x3a40cc(_0x563c7d[_0x64b3bc(0x3d9)],_0x563c7d[_0x64b3bc(0x283)],_0x563c7d[_0x64b3bc(0x228)])['subscribe'](_0x1ace92=>{const _0x4db00b=_0x64b3bc;_0x1ace92['some'](_0x4ee604=>_0x4ee604[_0x4db00b(0x291)]===_0x5d9589[_0x4db00b(0x291)]&&_0x4ee604[_0x4db00b(0x20a)]===_0x5d9589[_0x4db00b(0x20a)])&&_0x152ff7();});return()=>_0x3e3b91[_0x64b3bc(0x31a)]();},[_0x563c7d,_0x5d9589['unitId'],_0x5d9589[_0x1bcd02(0x20a)]]);let _0x474a0b=_0x563c7d['getElementData'](_0x5d9589[_0x1bcd02(0x291)],_0x5d9589['subUnitId']),_0x3e1fe2=oi(_0x474a0b,_0x5d9589[_0x1bcd02(0x3a9)],_0x1137ae['t'](_0x1bcd02(0x391))),_0x525cc1=(_0x2554ad=_0x487e3a((_0x36d7b0=_0x474a0b[_0x5d9589['scopeId']])==null?void 0x0:_0x36d7b0[_0x1bcd02(0x1ca)]))==null?void 0x0:_0x2554ad[_0x1bcd02(0x2bc)],[_0x1e9d1c,_0x2f5ff0]=_0x34d7b2(''),[_0x5d9e38,_0x11cde5]=_0x34d7b2(null),[_0x17e0b5,_0x20b32f]=_0x34d7b2(''),{spacing:_0x390be7,direction:_0x1cab0d,structureKind:_0xd2d564,branchLineType:_0x165584}=Xr(_0x525cc1),[_0x5e0119,_0x2e0d41]=_0x34d7b2(null),[_0x4ec8b2,_0x25008d]=_0x34d7b2(_0x37a958),_0x8b2c55=si(_0x3e1fe2,_0x1e9d1c),_0x4fc74f={'unitId':_0x5d9589[_0x1bcd02(0x291)],'subUnitId':_0x5d9589[_0x1bcd02(0x20a)],'scopeId':_0x5d9589['scopeId']};return{'commandService':_0x1222e4,'elementStateService':_0x53ca3b,'localeService':_0x1137ae,'query':_0x1e9d1c,'setQuery':_0x2f5ff0,'editingOutlineNode':_0x5d9e38,'setEditingOutlineNode':_0x11cde5,'opmlText':_0x17e0b5,'setOpmlText':_0x20b32f,'spacing':_0x390be7,'layoutDirection':_0x1cab0d,'structureKind':_0xd2d564,'branchLineType':_0x165584,'setDraggedOutlineNodeId':_0x2e0d41,'activeTab':_0x4ec8b2,'setActiveTab':_0x25008d,'visibleOutlineItems':_0x8b2c55,'baseParams':_0x4fc74f,'tabItems':Gr['map'](_0x178b26=>({'label':_0x1137ae['t']('boards-mind-ui.panel.tab.'+_0x178b26),'value':_0x178b26})),'selectedNode':_0x5d9589[_0x1bcd02(0x3f9)]?(_0xbd4a1=_0x474a0b[_0x5d9589[_0x1bcd02(0x3f9)]])==null?void 0x0:_0xbd4a1['element']:void 0x0,'branchLineItems':Yr['filter'](_0x40c4d8=>_0x40c4d8[_0x1bcd02(0x1bb)]!==_0x1bcd02(0x337)||_0x35ce36(_0xd2d564)),'changeLayout':_0x2d063d=>Zr(_0x1222e4,{..._0x4fc74f,'direction':_0x2d063d}),'changeStructureKind':_0x1e2ed2=>{let _0xca265=_0x22ba0f(_0x1e2ed2,_0x165584);return Zr(_0x1222e4,{..._0x4fc74f,'structureKind':_0x1e2ed2,..._0xca265===_0x165584?null:{'branchLineType':_0xca265}});},'changeBranchLineType':_0x59a2fd=>{let _0x2e3319=_0x22ba0f(_0xd2d564,_0x59a2fd);return Qr(_0x1222e4,{..._0x4fc74f,'branchLineType':_0x2e3319});},'changeSpacing':(_0x4a0f7c,_0x5acd0b)=>{let _0x44712b={..._0x390be7,[_0x4a0f7c]:_0x5acd0b};return $r(_0x1222e4,{..._0x4fc74f,..._0x44712b});},'importOpml':()=>{const _0x2a9692=_0x1bcd02;ii(_0x1222e4,{'unitId':_0x5d9589[_0x2a9692(0x291)],'subUnitId':_0x5d9589[_0x2a9692(0x20a)],'left':0x78,'top':0x78,'opml':_0x17e0b5})[_0x2a9692(0x193)](_0x1088bb=>{_0x1088bb&&_0x20b32f('');});},'exportOpml':()=>ri(_0x1222e4,_0x4fc74f),'startRenameNode':(_0x804f26,_0xd516f8)=>{_0x11cde5({'nodeId':_0x804f26,'text':_0xd516f8});},'commitRenameNode':()=>{const _0x5bbb8c=_0x1bcd02;_0x5d9e38&&ti(_0x1222e4,{..._0x4fc74f,'nodeId':_0x5d9e38[_0x5bbb8c(0x3f9)],'text':_0x5d9e38['text']})[_0x5bbb8c(0x193)](_0x33f70c=>{_0x33f70c&&_0x11cde5(null);});},'reorderNode':(_0x4d97b6,_0x44d8bf)=>{const _0x43aeb4=_0x1bcd02;if(_0x4d97b6['preventDefault'](),!_0x5e0119||_0x5e0119===_0x44d8bf)return;let _0x10282b=_0x4d97b6['currentTarget'][_0x43aeb4(0x26d)](),_0x34c187=_0x4d97b6['clientY']<_0x10282b[_0x43aeb4(0x2e1)]+_0x10282b[_0x43aeb4(0x36d)]/0x2?_0x43aeb4(0x2ee):_0x43aeb4(0x3e3);_0x2e0d41(null),ei(_0x1222e4,{..._0x4fc74f,'nodeId':_0x5e0119,'targetNodeId':_0x44d8bf,'placement':_0x34c187});}};}function fi(_0x4f26d0){const _0x58396d=_0x4f3d14;let {elementStateService:_0x15c167,localeService:_0x214835,query:_0x589913,setQuery:_0x87c93,editingOutlineNode:_0x1f1c4d,setEditingOutlineNode:_0x5672e1,opmlText:_0xf2c94e,setOpmlText:_0x3d69b6,spacing:_0x1bd4d7,layoutDirection:_0x4ccaa8,structureKind:_0x2a27b6,branchLineType:_0x5a5517,setDraggedOutlineNodeId:_0xb4eff9,activeTab:_0x23dac8,setActiveTab:_0x1875ba,visibleOutlineItems:_0x9f31f1,tabItems:_0x247e60,branchLineItems:_0x1e0c1d,changeLayout:_0x2f7c16,changeStructureKind:_0x5392da,changeBranchLineType:_0x1ab59f,changeSpacing:_0x3b4b38,importOpml:_0x5c2423,exportOpml:_0x14cfac,startRenameNode:_0x91f420,commitRenameNode:_0x4ac2c9,reorderNode:_0x63d7b1}=di(_0x4f26d0);return _0x27b706(_0x58396d(0x417),{'className':_0x58396d(0x459),'data-board-mind-map-panel':_0x58396d(0x480),'children':[_0x9b9447('div',{'className':_0x461cd5(_0x58396d(0x1dd),_0x2d215c),'data-board-mind-map-panel-tabs':_0x58396d(0x480),'children':_0x9b9447(li,{'items':_0x247e60,'value':_0x23dac8,'onChange':_0x2245ad=>_0x1875ba(_0x2245ad)})}),_0x23dac8===_0x58396d(0x264)&&_0x9b9447(ui,{'title':_0x214835['t'](_0x58396d(0x4a1)),'children':_0x27b706(_0x58396d(0x417),{'children':[_0x9b9447(_0x163e88,{'slot':_0x9b9447(_0x228aaa,{}),'value':_0x589913,'placeholder':_0x214835['t']('boards-mind-ui.panel.searchNodes'),'className':_0x461cd5(_0x58396d(0x3d0),!0x1),'onChange':_0x87c93}),_0x9f31f1['length']?_0x9b9447('ol',{'className':_0x58396d(0x2c6),'children':_0x9f31f1[_0x58396d(0x2c1)](_0x152567=>_0x9b9447('li',{'draggable':!0x0,'className':_0x58396d(0x39f),'style':ci(_0x152567['depth']),'onDragStart':_0xf90786=>{const _0x1f9a21=_0x58396d;var _0x55e4b6;_0xb4eff9(_0x152567[_0x1f9a21(0x3f9)]),(_0x55e4b6=_0xf90786[_0x1f9a21(0x31d)])==null||_0x55e4b6[_0x1f9a21(0x3a4)](_0x1f9a21(0x1b9),_0x152567[_0x1f9a21(0x3f9)]),_0xf90786[_0x1f9a21(0x31d)]&&(_0xf90786[_0x1f9a21(0x31d)][_0x1f9a21(0x323)]=_0x1f9a21(0x274));},'onDragOver':_0x5c8b41=>{const _0x101a28=_0x58396d;_0x5c8b41['preventDefault'](),_0x5c8b41[_0x101a28(0x31d)]&&(_0x5c8b41[_0x101a28(0x31d)]['dropEffect']=_0x101a28(0x274));},'onDrop':_0x573719=>_0x63d7b1(_0x573719,_0x152567[_0x58396d(0x3f9)]),'onDragEnd':()=>_0xb4eff9(null),'children':(_0x1f1c4d==null?void 0x0:_0x1f1c4d[_0x58396d(0x3f9)])===_0x152567[_0x58396d(0x3f9)]?_0x27b706('div',{'className':_0x461cd5(_0x58396d(0x35a),_0x58396d(0x46e)),'children':[_0x9b9447(_0x163e88,{'autoFocus':!0x0,'size':'small','className':void 0x0,'value':_0x1f1c4d[_0x58396d(0x488)],'onChange':_0x36a683=>_0x5672e1({'nodeId':_0x152567[_0x58396d(0x3f9)],'text':_0x36a683}),'onKeyDown':_0x1522b5=>{const _0x30b8fb=_0x58396d;_0x1522b5['key']===_0x30b8fb(0x1ba)&&_0x4ac2c9(),_0x1522b5[_0x30b8fb(0x3f0)]===_0x30b8fb(0x294)&&_0x5672e1(null);}}),_0x9b9447(_0x8c8b61,{'className':void 0x0,'size':_0x58396d(0x358),'variant':_0x58396d(0x1b5),'disabled':!_0x1f1c4d[_0x58396d(0x488)]['trim'](),'onClick':_0x4ac2c9,'children':_0x214835['t'](_0x58396d(0x19c))}),_0x9b9447(_0x8c8b61,{'className':void 0x0,'size':_0x58396d(0x358),'variant':_0x58396d(0x3f6),'onClick':()=>_0x5672e1(null),'children':_0x214835['t'](_0x58396d(0x1a8))})]}):_0x27b706(_0x219099,{'children':[_0x9b9447(_0x8c8b61,{'size':_0x58396d(0x358),'variant':_0x58396d(0x367),'className':_0x461cd5('univer-min-w-0\x20univer-flex-1\x20univer-justify-start\x20univer-truncate\x20univer-text-left',!0x1),'onClick':()=>_0x15c167[_0x58396d(0x42b)]({'unitId':_0x4f26d0[_0x58396d(0x291)],'subUnitId':_0x4f26d0[_0x58396d(0x20a)]},[_0x152567[_0x58396d(0x3f9)]],_0x152567[_0x58396d(0x3f9)]),'children':_0x152567[_0x58396d(0x488)]}),_0x9b9447(_0x8c8b61,{'className':_0x461cd5('univer-text-gray-500',_0x58396d(0x251)),'size':'small','variant':_0x58396d(0x3f6),'onClick':()=>_0x91f420(_0x152567[_0x58396d(0x3f9)],_0x152567['text']),'children':_0x214835['t'](_0x58396d(0x19c))})]})},_0x152567[_0x58396d(0x3f9)]))}):_0x9b9447(_0x58396d(0x417),{'className':_0x58396d(0x486),'data-board-mind-map-panel-empty-state':_0x58396d(0x480),'children':_0x214835['t'](_0x58396d(0x2f8))})]})}),_0x23dac8===_0x58396d(0x2bc)&&_0x9b9447(ui,{'title':_0x214835['t'](_0x58396d(0x2dd)),'children':_0x27b706('div',{'className':_0x58396d(0x41f),'children':[_0x9b9447(_0x58396d(0x417),{'className':'univer-flex\x20univer-gap-2','children':_0x9b9447(li,{'items':Jr[_0x58396d(0x2c1)](_0x336565=>({'label':_0x214835['t'](_0x336565[_0x58396d(0x1ee)]),'value':_0x336565[_0x58396d(0x1bb)]})),'value':_0x2a27b6,'onChange':_0x4b140e=>_0x5392da(_0x4b140e)})}),_0x9b9447(_0x58396d(0x417),{'className':_0x58396d(0x399),'children':_0x9b9447(li,{'items':qr['map'](_0x47ebf0=>({'label':_0x214835['t'](_0x47ebf0[_0x58396d(0x1ee)]),'value':_0x47ebf0[_0x58396d(0x1bb)]})),'value':_0x4ccaa8,'onChange':_0x2e13e0=>_0x2f7c16(_0x2e13e0)})}),_0x9b9447(_0x58396d(0x417),{'className':_0x58396d(0x399),'children':_0x9b9447(li,{'items':_0x1e0c1d[_0x58396d(0x2c1)](_0x16a455=>({'label':_0x214835['t'](_0x16a455[_0x58396d(0x1ee)]),'value':_0x16a455[_0x58396d(0x1bb)]})),'value':_0x5a5517,'onChange':_0x172b84=>_0x1ab59f(_0x172b84)})}),_0x9b9447('div',{'className':_0x58396d(0x272),'children':Kr[_0x58396d(0x2c1)](({labelKey:_0x5102ae,key:_0x42e2b5,min:_0x5d24f2,max:_0x4d5dbe})=>_0x27b706(_0x58396d(0x467),{'className':_0x58396d(0x286),'children':[_0x9b9447(_0x58396d(0x255),{'className':_0x58396d(0x1ac),'children':_0x214835['t'](_0x5102ae)}),_0x9b9447(_0x5a974,{'controls':!0x0,'inputClassName':void 0x0,'min':_0x5d24f2,'max':_0x4d5dbe,'step':0x4,'value':_0x1bd4d7[_0x42e2b5],'precision':0x0,'className':_0x58396d(0x379),'onChange':_0x7932e4=>_0x3b4b38(_0x42e2b5,Number(_0x7932e4??_0x5d24f2))})]},_0x42e2b5))})]})}),_0x23dac8===_0x58396d(0x348)&&_0x9b9447(ui,{'title':_0x214835['t'](_0x58396d(0x3bc)),'children':_0x27b706(_0x58396d(0x417),{'className':_0x58396d(0x27e),'children':[_0x9b9447(_0x14dc82,{'className':_0x461cd5(_0x58396d(0x1d0),'univer-text-xs'),'placeholder':_0x214835['t'](_0x58396d(0x1e3)),'value':_0xf2c94e,'onValueChange':_0x3d69b6}),_0x27b706(_0x58396d(0x417),{'className':'univer-flex\x20univer-gap-2','children':[_0x9b9447(_0x8c8b61,{'className':void 0x0,'size':_0x58396d(0x358),'variant':'primary','disabled':!_0xf2c94e['trim'](),'onClick':_0x5c2423,'children':_0x214835['t'](_0x58396d(0x258))}),_0x9b9447(_0x8c8b61,{'className':void 0x0,'size':_0x58396d(0x358),'variant':'default','onClick':_0x14cfac,'children':_0x214835['t'](_0x58396d(0x23b))})]})]})})]});}let pi=class extends _0x4c4d8b{constructor(_0x3cc0ff,_0x5d8a2a,_0x3625e2){const _0x2a7387=_0x4f3d14;super(),this[_0x2a7387(0x32f)]=_0x3cc0ff,this[_0x2a7387(0x335)]=_0x5d8a2a,this[_0x2a7387(0x466)]=_0x3625e2,K(this,_0x2a7387(0x49c),null),this[_0x2a7387(0x44d)](this[_0x2a7387(0x32f)][_0x2a7387(0x191)](Ur)),this[_0x2a7387(0x44d)](this[_0x2a7387(0x32f)][_0x2a7387(0x234)](_0x33650d=>{const _0x14e603=_0x2a7387;if(_0x33650d['id']!==Ur['id'])return;let _0x380410=_0x33650d['params'];_0x380410&&_0x14e603(0x291)in _0x380410&&typeof _0x380410[_0x14e603(0x291)]==_0x14e603(0x351)&&_0x14e603(0x20a)in _0x380410&&typeof _0x380410['subUnitId']==_0x14e603(0x351)&&_0x14e603(0x3a9)in _0x380410&&typeof _0x380410[_0x14e603(0x3a9)]==_0x14e603(0x351)&&this[_0x14e603(0x485)]({'unitId':_0x380410[_0x14e603(0x291)],'subUnitId':_0x380410[_0x14e603(0x20a)],'scopeId':_0x380410[_0x14e603(0x3a9)],'nodeId':_0x14e603(0x3f9)in _0x380410&&typeof _0x380410['nodeId']==_0x14e603(0x351)?_0x380410[_0x14e603(0x3f9)]:void 0x0});}));}[_0x4f3d14(0x45e)](){const _0x16e2f7=_0x4f3d14;var _0x250e7d;(_0x250e7d=this[_0x16e2f7(0x49c)])==null||_0x250e7d[_0x16e2f7(0x45e)](),this[_0x16e2f7(0x49c)]=null,super[_0x16e2f7(0x45e)]();}['open'](_0x43df13){const _0x409323=_0x4f3d14;var _0x3da761;let _0x1a9a3e={'label':Wr,..._0x43df13},_0x285b37={'id':Wr,'layout':'canvas','header':{'title':this[_0x409323(0x335)]['t'](_0x409323(0x19e))},'width':0x184,'children':_0x1a9a3e,'onClose':()=>{const _0x281f28=_0x409323;this[_0x281f28(0x49c)]=null;}};(_0x3da761=this[_0x409323(0x49c)])==null||_0x3da761['dispose'](),this['_sidebarDisposable']=this['_sidebarService'][_0x409323(0x485)](_0x285b37);}};pi=J([q(0x0,_0x27d0fe),q(0x1,_0x132a38(_0x4eab55)),q(0x2,_0x132a38(_0x313b59))],pi);function mi(_0x951f20){const _0x2a25a2=_0x4f3d14;let _0x4e9f54=_0x1bf837(_0x27d0fe),_0x2b8218=_0x951f20['popup'][_0x2a25a2(0x261)];return _0x2b8218?_0x9b9447(_0x4e732a,{'shapeRef':{'hostType':_0x8b4a1a['UNIVER_BOARD'],'unitId':_0x2b8218['unitId'],'subUnitId':_0x2b8218[_0x2a25a2(0x20a)],'shapeId':_0x2b8218[_0x2a25a2(0x3e9)]},'onText':()=>qn(_0x4e9f54,'edit-text'),'onStyle':()=>_0x4e9f54[_0x2a25a2(0x32d)](Ur['id'],{'unitId':_0x2b8218['unitId'],'subUnitId':_0x2b8218[_0x2a25a2(0x20a)],'scopeId':_0x2b8218[_0x2a25a2(0x3a9)],'nodeId':_0x2b8218[_0x2a25a2(0x3e9)]}),'onDelete':()=>qn(_0x4e9f54,_0x2a25a2(0x333))}):null;}function hi(_0x41a9e3){const _0x302a4c=_0x4f3d14;var _0x4f2d4f,_0x5dca64,_0x29bcc9,_0x495461,_0x5dd0d9;let _0x2e1389=_0x1bf837(_0x27d0fe),_0x5be820=_0x1bf837(_0x4eab55),_0x3189d6=_0x1bf837(_0x27dbe6),_0x4db2fd=_0x5180ec(_0x3189d6[_0x302a4c(0x35c)],_0x3189d6[_0x302a4c(0x416)]()),[_0x5988cd,_0x562847]=_0x34d7b2(null),_0x1f2589=_0x3c14be(_0x41a9e3[_0x302a4c(0x38b)]),_0x3ce805=_0x1f2589['ff']??_0x588e8c['shapeText'][_0x302a4c(0x2d0)],_0xd1ce9=_0x1f2589['fs']??_0x588e8c[_0x302a4c(0x1eb)]['fontSize'];function _0x24334c(_0x4d5206){const _0x3905f7=_0x302a4c;return _0x2e1389[_0x3905f7(0x32d)](_0x3d67d8['id'],{'unitId':_0x41a9e3[_0x3905f7(0x291)],'subUnitId':_0x41a9e3[_0x3905f7(0x20a)],'nodeId':_0x41a9e3[_0x3905f7(0x3f9)],..._0x4d5206});}let _0x5a7f3d=[{'key':'fill','value':((_0x4f2d4f=_0x41a9e3[_0x302a4c(0x38b)]['fill'])==null?void 0x0:_0x4f2d4f[_0x302a4c(0x25e)])??_0x588e8c[_0x302a4c(0x222)]},{'key':'stroke','value':((_0x5dca64=_0x41a9e3[_0x302a4c(0x38b)][_0x302a4c(0x267)])==null?void 0x0:_0x5dca64[_0x302a4c(0x25e)])??_0x588e8c[_0x302a4c(0x267)]},{'key':_0x302a4c(0x425),'value':((_0x29bcc9=_0x1f2589['cl'])==null?void 0x0:_0x29bcc9[_0x302a4c(0x45c)])??_0x588e8c['shapeText']['color']}];if(_0x5988cd){var _0x1abb27;return _0x27b706('div',{'className':_0x302a4c(0x331),'children':[_0x9b9447(_0x8c8b61,{'className':'univer-min-h-12\x20univer-w-full','onClick':()=>_0x562847(null),'children':_0x5be820['t'](_0x302a4c(0x1a8))}),_0x5988cd==='fontFamily'?_0x4db2fd==null?void 0x0:_0x4db2fd['map'](_0x55bcd1=>_0x9b9447(_0x8c8b61,{'className':_0x302a4c(0x20f),'aria-pressed':_0x3ce805===_0x55bcd1['value'],'variant':_0x3ce805===_0x55bcd1[_0x302a4c(0x1bb)]?'primary':_0x302a4c(0x3f6),'onClick':async()=>{const _0x61aa52=_0x302a4c;await _0x24334c({'textStyle':{'fontFamily':_0x55bcd1[_0x61aa52(0x1bb)]}}),_0x562847(null);},'children':_0x55bcd1[_0x302a4c(0x467)]},_0x55bcd1['value'])):_0x9b9447(_0x4c11aa,{'value':(_0x1abb27=_0x5a7f3d[_0x302a4c(0x431)](({key:_0x509438})=>_0x509438===_0x5988cd))==null?void 0x0:_0x1abb27['value'],'onSelect':async _0x3b8e51=>{const _0x1bbdb1=_0x302a4c;_0x5988cd===_0x1bbdb1(0x222)?await _0x24334c({'fillColor':_0x3b8e51}):_0x5988cd===_0x1bbdb1(0x267)?await _0x24334c({'strokeColor':_0x3b8e51}):await _0x24334c({'textStyle':{'color':_0x3b8e51}}),_0x562847(null);}})]});}let _0x3b0496=[{'key':_0x302a4c(0x2fc),'active':_0x1f2589['bl']===_0x3c1a02[_0x302a4c(0x33f)],'icon':_0x9b9447(_0x12ba90,{})},{'key':_0x302a4c(0x1b4),'active':_0x1f2589['it']===_0x3c1a02[_0x302a4c(0x33f)],'icon':_0x9b9447(_0x5c4515,{})},{'key':_0x302a4c(0x3db),'active':((_0x495461=_0x1f2589['ul'])==null?void 0x0:_0x495461['s'])===_0x3c1a02[_0x302a4c(0x33f)],'icon':_0x9b9447(_0x2fc605,{})},{'key':'strikethrough','active':((_0x5dd0d9=_0x1f2589['st'])==null?void 0x0:_0x5dd0d9['s'])===_0x3c1a02[_0x302a4c(0x33f)],'icon':_0x9b9447(_0x523a6d,{})}];return _0x27b706('div',{'className':_0x302a4c(0x331),'children':[_0x9b9447(_0x302a4c(0x417),{'className':_0x302a4c(0x2b2),'children':_0x3b0496[_0x302a4c(0x2c1)](({key:_0x34df11,active:_0x5d3a5a,icon:_0x5df163})=>_0x9b9447(_0x8c8b61,{'className':_0x302a4c(0x1e0),'aria-label':_0x5be820['t']('boards-mind-ui.panel.nodeStyle.'+_0x34df11),'aria-pressed':_0x5d3a5a,'variant':_0x5d3a5a?_0x302a4c(0x1b5):_0x302a4c(0x3f6),'onClick':()=>_0x24334c({'textStyle':{[_0x34df11]:!_0x5d3a5a}}),'children':_0x5df163},_0x34df11))}),_0x27b706(_0x8c8b61,{'className':_0x302a4c(0x3a3),'onClick':()=>_0x562847(_0x302a4c(0x2d0)),'children':[_0x9b9447(_0x302a4c(0x255),{'children':_0x5be820['t']('boards-mind-ui.panel.nodeStyle.fontFamily')}),_0x9b9447(_0x302a4c(0x255),{'children':_0x3ce805})]}),_0x27b706(_0x302a4c(0x467),{'className':_0x302a4c(0x30e),'children':[_0x9b9447('span',{'children':_0x5be820['t'](_0x302a4c(0x219))}),_0x9b9447(_0x5a974,{'className':_0x302a4c(0x1f4),'inputClassName':_0x302a4c(0x27c),'controls':!0x1,'min':0x1,'value':_0xd1ce9,'onChange':_0x12e7f1=>{if(_0x12e7f1!=null)return _0x24334c({'textStyle':{'fontSize':_0x12e7f1}});}})]}),_0x5a7f3d[_0x302a4c(0x2c1)](({key:_0x22e547,value:_0x50c155})=>_0x27b706(_0x8c8b61,{'className':_0x302a4c(0x3a3),'onClick':()=>_0x562847(_0x22e547),'children':[_0x9b9447(_0x302a4c(0x255),{'children':_0x5be820['t']('boards-mind-ui.toolbar.action.'+_0x22e547)}),_0x9b9447(_0x302a4c(0x255),{'className':_0x302a4c(0x29d),'style':{'backgroundColor':_0x50c155}})]},_0x22e547))]});}function gi(_0x3fc33f){const _0x48fdaf=_0x4f3d14;return _0x9b9447('div',{'className':_0x461cd5('univer-grid\x20univer-w-full\x20univer-gap-2',_0x3fc33f[_0x48fdaf(0x2ef)][_0x48fdaf(0x452)]===0x4?'univer-grid-cols-4':_0x48fdaf(0x43e)),'children':_0x3fc33f[_0x48fdaf(0x2ef)][_0x48fdaf(0x2c1)](_0x2bef1e=>_0x9b9447(_0x8c8b61,{'className':_0x48fdaf(0x3f3),'variant':_0x3fc33f['value']===_0x2bef1e['value']?'primary':'default','aria-pressed':_0x3fc33f[_0x48fdaf(0x1bb)]===_0x2bef1e['value'],'onClick':()=>_0x3fc33f['onChange'](_0x2bef1e['value']),'children':_0x2bef1e[_0x48fdaf(0x467)]},_0x2bef1e['value']))});}function _i(_0x1d97ad){const _0x1a28bc=_0x4f3d14;let {commandService:_0x2686e2,elementStateService:_0x3ce48f,localeService:_0x544987,query:_0x14b778,setQuery:_0xd15a95,editingOutlineNode:_0x508190,setEditingOutlineNode:_0x28c83b,opmlText:_0x105322,setOpmlText:_0x5d23c1,spacing:_0x40fc0f,layoutDirection:_0x46a000,structureKind:_0x556782,branchLineType:_0x42efb4,activeTab:_0x30c7c3,setActiveTab:_0x19230a,visibleOutlineItems:_0x53b6db,baseParams:_0x2be6c2,tabItems:_0x273c4f,selectedNode:_0x469e52,branchLineItems:_0x58f65c,changeLayout:_0x502774,changeStructureKind:_0x90d481,changeBranchLineType:_0x32e209,changeSpacing:_0x1517b9,importOpml:_0x6589b1,startRenameNode:_0x3ba737,commitRenameNode:_0x2b8ee8}=di(_0x1d97ad,_0x1d97ad[_0x1a28bc(0x3f9)]?_0x1a28bc(0x281):_0x1a28bc(0x264));return(_0x469e52==null?void 0x0:_0x469e52[_0x1a28bc(0x3b5)])===_0x282c4b[_0x1a28bc(0x3a6)]&&_0x273c4f[_0x1a28bc(0x48e)]({'label':_0x544987['t'](_0x1a28bc(0x1e7)),'value':_0x1a28bc(0x281)}),_0x27b706(_0x1a28bc(0x417),{'className':_0x1a28bc(0x459),'data-board-mind-map-panel':'true','children':[_0x9b9447(_0x1a28bc(0x417),{'className':_0x461cd5(_0x1a28bc(0x1dd),_0x2d215c),'data-board-mind-map-panel-tabs':_0x1a28bc(0x480),'children':_0x9b9447(gi,{'items':_0x273c4f,'value':_0x30c7c3,'onChange':_0x5c29e6=>_0x19230a(_0x5c29e6)})}),_0x30c7c3===_0x1a28bc(0x281)&&(_0x469e52==null?void 0x0:_0x469e52[_0x1a28bc(0x3b5)])===_0x282c4b[_0x1a28bc(0x3a6)]&&_0x9b9447(hi,{'unitId':_0x1d97ad[_0x1a28bc(0x291)],'subUnitId':_0x1d97ad[_0x1a28bc(0x20a)],'nodeId':_0x469e52['id'],'shapeData':_0x469e52[_0x1a28bc(0x38b)]}),_0x30c7c3===_0x1a28bc(0x264)&&_0x9b9447(ui,{'title':_0x544987['t'](_0x1a28bc(0x4a1)),'children':_0x27b706(_0x1a28bc(0x417),{'children':[_0x9b9447(_0x163e88,{'slot':_0x9b9447(_0x228aaa,{}),'value':_0x14b778,'placeholder':_0x544987['t'](_0x1a28bc(0x428)),'className':_0x461cd5(_0x1a28bc(0x3d0),_0x1a28bc(0x464)),'onChange':_0xd15a95}),_0x53b6db[_0x1a28bc(0x452)]?_0x9b9447('ol',{'className':_0x1a28bc(0x2c6),'children':_0x53b6db[_0x1a28bc(0x2c1)](_0x27ef20=>_0x9b9447('li',{'className':_0x1a28bc(0x39f),'style':ci(_0x27ef20[_0x1a28bc(0x371)]),'children':(_0x508190==null?void 0x0:_0x508190[_0x1a28bc(0x3f9)])===_0x27ef20['nodeId']?_0x27b706(_0x1a28bc(0x417),{'className':_0x461cd5('univer-flex\x20univer-min-w-0\x20univer-flex-1\x20univer-gap-2',_0x1a28bc(0x300)),'children':[_0x9b9447(_0x163e88,{'autoFocus':!0x1,'size':_0x1a28bc(0x356),'className':'univer-w-full\x20univer-text-base','value':_0x508190['text'],'onChange':_0x89708a=>_0x28c83b({'nodeId':_0x27ef20[_0x1a28bc(0x3f9)],'text':_0x89708a}),'onKeyDown':_0x514d2=>{const _0x38a73f=_0x1a28bc;_0x514d2[_0x38a73f(0x3f0)]===_0x38a73f(0x1ba)&&_0x2b8ee8(),_0x514d2[_0x38a73f(0x3f0)]===_0x38a73f(0x294)&&_0x28c83b(null);}}),_0x9b9447(_0x8c8b61,{'className':_0x1a28bc(0x2a3),'size':'small','variant':_0x1a28bc(0x1b5),'disabled':!_0x508190[_0x1a28bc(0x488)][_0x1a28bc(0x387)](),'onClick':_0x2b8ee8,'children':_0x544987['t'](_0x1a28bc(0x19c))}),_0x9b9447(_0x8c8b61,{'className':_0x1a28bc(0x2a3),'size':_0x1a28bc(0x358),'variant':_0x1a28bc(0x3f6),'onClick':()=>_0x28c83b(null),'children':_0x544987['t'](_0x1a28bc(0x1a8))})]}):_0x27b706(_0x219099,{'children':[_0x9b9447(_0x8c8b61,{'size':'small','variant':_0x1a28bc(0x367),'className':_0x461cd5(_0x1a28bc(0x462),'univer-min-h-12\x20univer-text-base'),'onClick':()=>_0x3ce48f['selectElements']({'unitId':_0x1d97ad[_0x1a28bc(0x291)],'subUnitId':_0x1d97ad[_0x1a28bc(0x20a)]},[_0x27ef20['nodeId']],_0x27ef20[_0x1a28bc(0x3f9)]),'children':_0x27ef20[_0x1a28bc(0x488)]}),_0x9b9447(_0x8c8b61,{'className':_0x461cd5(_0x1a28bc(0x2ad),_0x1a28bc(0x2a7)),'size':_0x1a28bc(0x358),'variant':_0x1a28bc(0x3f6),'onClick':()=>_0x3ba737(_0x27ef20['nodeId'],_0x27ef20[_0x1a28bc(0x488)]),'children':_0x544987['t'](_0x1a28bc(0x19c))})]})},_0x27ef20[_0x1a28bc(0x3f9)]))}):_0x9b9447(_0x1a28bc(0x417),{'className':'univer-text-xs\x20univer-text-gray-400\x20dark:!univer-text-gray-500','data-board-mind-map-panel-empty-state':_0x1a28bc(0x480),'children':_0x544987['t']('boards-mind-ui.panel.emptyNodes')})]})}),_0x30c7c3==='layout'&&_0x9b9447(ui,{'title':_0x544987['t'](_0x1a28bc(0x2dd)),'children':_0x27b706('div',{'className':'univer-space-y-3','children':[_0x9b9447(_0x1a28bc(0x417),{'className':'univer-flex\x20univer-gap-2','children':_0x9b9447(gi,{'items':Jr[_0x1a28bc(0x2c1)](_0x1e78b5=>({'label':_0x544987['t'](_0x1e78b5['labelKey']),'value':_0x1e78b5[_0x1a28bc(0x1bb)]})),'value':_0x556782,'onChange':_0x267a7d=>_0x90d481(_0x267a7d)})}),_0x9b9447(_0x1a28bc(0x417),{'className':_0x1a28bc(0x399),'children':_0x9b9447(gi,{'items':qr[_0x1a28bc(0x2c1)](_0x2746b6=>({'label':_0x544987['t'](_0x2746b6['labelKey']),'value':_0x2746b6[_0x1a28bc(0x1bb)]})),'value':_0x46a000,'onChange':_0xdc6bc8=>_0x502774(_0xdc6bc8)})}),_0x9b9447(_0x1a28bc(0x417),{'className':_0x1a28bc(0x399),'children':_0x9b9447(gi,{'items':_0x58f65c[_0x1a28bc(0x2c1)](_0x1d4839=>({'label':_0x544987['t'](_0x1d4839[_0x1a28bc(0x1ee)]),'value':_0x1d4839[_0x1a28bc(0x1bb)]})),'value':_0x42efb4,'onChange':_0x4e14f1=>_0x32e209(_0x4e14f1)})}),_0x9b9447(_0x1a28bc(0x417),{'className':_0x1a28bc(0x272),'children':Kr[_0x1a28bc(0x2c1)](({labelKey:_0x2e5c2f,key:_0x188034,min:_0x1408b7,max:_0x569ced})=>_0x27b706('label',{'className':_0x1a28bc(0x286),'children':[_0x9b9447(_0x1a28bc(0x255),{'className':_0x1a28bc(0x28c),'children':_0x544987['t'](_0x2e5c2f)}),_0x9b9447(_0x5a974,{'controls':!0x1,'inputClassName':_0x1a28bc(0x27c),'min':_0x1408b7,'max':_0x569ced,'step':0x4,'value':_0x40fc0f[_0x188034],'precision':0x0,'className':_0x1a28bc(0x3b1),'onChange':_0x3ba517=>_0x1517b9(_0x188034,Number(_0x3ba517??_0x1408b7))})]},_0x188034))})]})}),_0x30c7c3===_0x1a28bc(0x348)&&_0x9b9447(ui,{'title':_0x544987['t']('boards-mind-ui.panel.tab.importExport'),'children':_0x27b706(_0x1a28bc(0x417),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-2','children':[_0x9b9447(_0x14dc82,{'className':_0x461cd5('univer-h-28\x20univer-resize-none',_0x1a28bc(0x26e)),'placeholder':_0x544987['t'](_0x1a28bc(0x1e3)),'value':_0x105322,'onValueChange':_0x5d23c1}),_0x27b706(_0x1a28bc(0x417),{'className':_0x1a28bc(0x399),'children':[_0x9b9447(_0x8c8b61,{'className':_0x1a28bc(0x2a3),'size':'small','variant':_0x1a28bc(0x1b5),'disabled':!_0x105322[_0x1a28bc(0x387)](),'onClick':_0x6589b1,'children':_0x544987['t'](_0x1a28bc(0x258))}),_0x9b9447(_0x8c8b61,{'className':_0x1a28bc(0x2a3),'size':_0x1a28bc(0x358),'variant':_0x1a28bc(0x3f6),'onClick':async()=>{const _0x4befb4=_0x1a28bc;let _0x3dd463=await _0x2686e2[_0x4befb4(0x32d)](_0x1d834a['id'],_0x2be6c2);_0x3dd463!==!0x1&&_0x5d23c1(_0x3dd463);},'children':_0x544987['t']('boards-mind-ui.panel.exportOPML')})]})]})})]});}let vi=class extends _0x4c4d8b{constructor(_0x512265){const _0x569277=_0x4f3d14;super(),this[_0x569277(0x489)]=_0x512265,this[_0x569277(0x42d)]();}['_registerComponents'](){const _0x5a6e49=_0x4f3d14;this[_0x5a6e49(0x44d)](this['_componentManager'][_0x5a6e49(0x3f1)](On,An)),this[_0x5a6e49(0x44d)](this[_0x5a6e49(0x489)][_0x5a6e49(0x3f1)](Kn,mi)),this['disposeWithMe'](this[_0x5a6e49(0x489)][_0x5a6e49(0x3f1)](Wr,_i));}};vi=J([q(0x0,_0x132a38(_0x4b5c19))],vi);let yi=class extends _0x4c4d8b{constructor(_0x5bbdb1,_0x41b70c,_0x148c56){const _0x24632f=_0x4f3d14;super(),this[_0x24632f(0x32f)]=_0x5bbdb1,this[_0x24632f(0x335)]=_0x41b70c,this['_sidebarService']=_0x148c56,K(this,_0x24632f(0x49c),null),this[_0x24632f(0x44d)](this[_0x24632f(0x32f)][_0x24632f(0x191)](Ur)),this['disposeWithMe'](this[_0x24632f(0x32f)][_0x24632f(0x234)](_0x13b1a3=>{const _0x11cddf=_0x24632f;if(_0x13b1a3['id']!==Ur['id'])return;let _0x14e5d2=_0x13b1a3[_0x11cddf(0x2cb)];_0x14e5d2&&_0x11cddf(0x291)in _0x14e5d2&&typeof _0x14e5d2['unitId']==_0x11cddf(0x351)&&'subUnitId'in _0x14e5d2&&typeof _0x14e5d2['subUnitId']==_0x11cddf(0x351)&&_0x11cddf(0x3a9)in _0x14e5d2&&typeof _0x14e5d2[_0x11cddf(0x3a9)]==_0x11cddf(0x351)&&this[_0x11cddf(0x485)]({'unitId':_0x14e5d2[_0x11cddf(0x291)],'subUnitId':_0x14e5d2['subUnitId'],'scopeId':_0x14e5d2[_0x11cddf(0x3a9)],'nodeId':_0x11cddf(0x3f9)in _0x14e5d2&&typeof _0x14e5d2['nodeId']=='string'?_0x14e5d2[_0x11cddf(0x3f9)]:void 0x0});}));}[_0x4f3d14(0x45e)](){const _0x109c95=_0x4f3d14;var _0x481dd5;(_0x481dd5=this[_0x109c95(0x49c)])==null||_0x481dd5[_0x109c95(0x45e)](),this[_0x109c95(0x49c)]=null,super['dispose']();}[_0x4f3d14(0x485)](_0x498913){const _0x2cec99=_0x4f3d14;var _0x4cad71;let _0x4f6151={'label':Wr,..._0x498913};(_0x4cad71=this[_0x2cec99(0x49c)])==null||_0x4cad71[_0x2cec99(0x45e)](),this[_0x2cec99(0x49c)]=this[_0x2cec99(0x466)][_0x2cec99(0x485)]({'id':Wr,'header':{'title':this['_localeService']['t'](_0x2cec99(0x19e))},'width':0x184,'children':_0x4f6151,'onClose':()=>{const _0x278e92=_0x2cec99;this[_0x278e92(0x49c)]=null;}});}};yi=J([q(0x0,_0x27d0fe),q(0x1,_0x132a38(_0x4eab55)),q(0x2,_0x132a38(_0x313b59))],yi);let bi=class extends _0x4c4d8b{constructor(_0x85c6b0){const _0xc26b11=_0x4f3d14;super(),this[_0xc26b11(0x489)]=_0x85c6b0,this['_registerComponents']();}[_0x4f3d14(0x42d)](){const _0x2bfe65=_0x4f3d14;this[_0x2bfe65(0x44d)](this['_componentManager']['register'](On,An)),this[_0x2bfe65(0x44d)](this[_0x2bfe65(0x489)]['register'](Kn,cr)),this[_0x2bfe65(0x44d)](this[_0x2bfe65(0x489)][_0x2bfe65(0x3f1)](Wr,fi));}};bi=J([q(0x0,_0x132a38(_0x4b5c19))],bi);let xi=class{constructor(_0x5e3496,_0x16b013,_0x1c0828){const _0x11edc0=_0x4f3d14;this[_0x11edc0(0x407)]=_0x5e3496,this[_0x11edc0(0x230)]=_0x16b013,this[_0x11edc0(0x21d)]=_0x1c0828;}[_0x4f3d14(0x2d4)](_0x5c34ef){const _0x41e814=_0x4f3d14;var _0x522446,_0x266292;let _0x27ccad=(_0x522446=this[_0x41e814(0x21d)][_0x41e814(0x21f)](_0x5c34ef['unitId']))==null||(_0x266292=_0x522446[_0x41e814(0x303)])==null?void 0x0:_0x266292[_0x41e814(0x2a4)](_0x522446),_0x3a7feb=(_0x27ccad==null?void 0x0:_0x27ccad['get'](_0x31b38d))??this[_0x41e814(0x407)];return((_0x27ccad==null?void 0x0:_0x27ccad[_0x41e814(0x47f)](br))??this['_insertStateService'])[_0x41e814(0x27b)]({'rootText':_0x5c34ef['rootText'],'structureKind':_0x5c34ef[_0x41e814(0x35e)],'branchLineType':_0x5c34ef[_0x41e814(0x402)],'children':_0x5c34ef[_0x41e814(0x28f)],'blueprint':_0x5c34ef[_0x41e814(0x36c)]}),_0x3a7feb['setShapeSidebarOpen'](!0x1),_0x3a7feb['clearPendingInsert'](),_0x3a7feb[_0x41e814(0x3cf)](_0x2f25e2[_0x41e814(0x3fb)]),_0x3a7feb[_0x41e814(0x3c5)]({'type':_0x2f25e2[_0x41e814(0x3fb)]}),!0x0;}};xi=J([q(0x0,_0x31b38d),q(0x1,_0x132a38(br)),q(0x2,_0x19658f)],xi);const Si='UNIVER_BOARDS_MIND_UI_PLUGIN',Ci=[Dn],wi=[Vr];let Ti=class extends _0x273e01{constructor(_0x106731=en,_0x5d7c05,_0x5bf9f2,_0x449bbc){const _0x992a66=_0x4f3d14;super(),this[_0x992a66(0x1db)]=_0x106731,this[_0x992a66(0x3e8)]=_0x5d7c05,this[_0x992a66(0x4a3)]=_0x5bf9f2,this[_0x992a66(0x21d)]=_0x449bbc;let {..._0x60700d}=_0x44c8ca({},en,this[_0x992a66(0x1db)]);this[_0x992a66(0x4a3)][_0x992a66(0x363)]($t,_0x60700d);}[_0x4f3d14(0x41d)](){const _0xb04df0=_0x4f3d14;_0x111050[_0xb04df0(0x429)](this['_injector'],[[br],[Tr]]),this['_getDependencies']()[_0xb04df0(0x2d1)](_0x47298a=>this[_0xb04df0(0x3e8)][_0xb04df0(0x45d)](_0x47298a));let _0x301aeb=this[_0xb04df0(0x3e8)]['get'](xi),_0x3c4107=this['_injector'][_0xb04df0(0x47f)](_0x13266e);this[_0xb04df0(0x44d)](_0x3c4107[_0xb04df0(0x1e5)](_0x301aeb)),this[_0xb04df0(0x44d)](this[_0xb04df0(0x3e8)][_0xb04df0(0x47f)](Ln)),this['disposeWithMe'](this[_0xb04df0(0x3e8)][_0xb04df0(0x47f)](zr)),this['disposeWithMe'](this[_0xb04df0(0x3e8)][_0xb04df0(0x47f)](yi)),this[_0xb04df0(0x44d)](this[_0xb04df0(0x3e8)][_0xb04df0(0x47f)](bi)),this['_enableMindMapToolbarTool']();}[_0x4f3d14(0x325)](){return[[br],[Tr],[xi],[Ln],[zr],[yi],[bi]];}[_0x4f3d14(0x43f)](){return[Ci,wi,[wr],[Lr],[ur],[En],[an],[Or]];}[_0x4f3d14(0x38d)](){this['_getRenderModules']()['forEach'](_0x84764=>{const _0x5e6097=_0x5652;this[_0x5e6097(0x44d)](this[_0x5e6097(0x21d)][_0x5e6097(0x297)](_0x8b4a1a[_0x5e6097(0x35b)],_0x84764));});}[_0x4f3d14(0x1a9)](){const _0x3146fa=_0x4f3d14;var _0x53376a,_0x473c73;let _0x50b0e3=this['_getBoardsUIConfig']();this['_configService'][_0x3146fa(0x363)](_0x3e4252,{..._0x50b0e3,'toolbar':{..._0x50b0e3['toolbar'],'tools':{...(_0x53376a=_0x50b0e3[_0x3146fa(0x3bb)])==null?void 0x0:_0x53376a[_0x3146fa(0x32e)],[_0x2f25e2['MindMap']]:Ei((_0x473c73=_0x50b0e3['toolbar'])==null||(_0x473c73=_0x473c73[_0x3146fa(0x32e)])==null?void 0x0:_0x473c73[_0x2f25e2[_0x3146fa(0x3fb)]])}}});}[_0x4f3d14(0x34a)](){const _0x46605d=_0x4f3d14;return this['_configService'][_0x46605d(0x3d8)](_0x3e4252)??{};}};K(Ti,'pluginName',Si),K(Ti,'packageName',Zt),K(Ti,_0x4f3d14(0x41e),Qt),K(Ti,_0x4f3d14(0x3b5),_0x8b4a1a[_0x4f3d14(0x35b)]),Ti=J([_0x305799(_0x327bfc,_0x38f2bf,_0x3afdbd,_0x204fd7,_0x111050),q(0x1,_0x132a38(_0x13315b)),q(0x2,_0x156f99),q(0x3,_0x19658f)],Ti);function Ei(_0xe52c51){const _0xb4145c=_0x4f3d14;return _0xe52c51===!0x1?!0x1:typeof _0xe52c51!='object'||{..._0xe52c51,'enabled':_0xe52c51[_0xb4145c(0x29e)]??!0x0};}let Di=class extends _0x273e01{constructor(_0x12af19=en,_0x4b2856,_0x53fd11,_0x3e59a2){const _0x14b5cb=_0x4f3d14;super(),this[_0x14b5cb(0x1db)]=_0x12af19,this[_0x14b5cb(0x3e8)]=_0x4b2856,this[_0x14b5cb(0x4a3)]=_0x53fd11,this[_0x14b5cb(0x21d)]=_0x3e59a2;let {..._0x4c1b9e}=_0x44c8ca({},en,this['_config']);this[_0x14b5cb(0x4a3)]['setConfig']($t,_0x4c1b9e);}['onStarting'](){const _0x472083=_0x4f3d14;let _0x3ec2d4=[[br],[Tr]];_0x28e0e2[_0x472083(0x429)](this['_injector'],_0x3ec2d4),[..._0x3ec2d4,[xi],[Ln],[zr],[pi],[vi]][_0x472083(0x2d1)](_0x3b49a8=>this[_0x472083(0x3e8)][_0x472083(0x45d)](_0x3b49a8)),this[_0x472083(0x44d)](this['_injector']['get'](_0x13266e)[_0x472083(0x1e5)](this[_0x472083(0x3e8)][_0x472083(0x47f)](xi))),this[_0x472083(0x44d)](this[_0x472083(0x3e8)][_0x472083(0x47f)](Ln)),this[_0x472083(0x44d)](this[_0x472083(0x3e8)][_0x472083(0x47f)](zr)),this[_0x472083(0x44d)](this[_0x472083(0x3e8)][_0x472083(0x47f)](pi)),this['disposeWithMe'](this['_injector'][_0x472083(0x47f)](vi)),this[_0x472083(0x1a9)]();}[_0x4f3d14(0x38d)](){const _0x44c105=_0x4f3d14;[[Dn],[Vr],[wr,{'useClass':Hr}],[Lr],[ur],[En],[an],[Or]][_0x44c105(0x2d1)](_0x5e4efb=>{const _0x3a0b93=_0x44c105;this[_0x3a0b93(0x44d)](this['_renderManagerService'][_0x3a0b93(0x297)](_0x8b4a1a[_0x3a0b93(0x35b)],_0x5e4efb));});}[_0x4f3d14(0x1a9)](){const _0x4e66c7=_0x4f3d14;var _0x43d334,_0x318e4c;let _0x3e0962=this[_0x4e66c7(0x34a)]();this[_0x4e66c7(0x4a3)][_0x4e66c7(0x363)](_0x3e4252,{..._0x3e0962,'toolbar':{..._0x3e0962[_0x4e66c7(0x3bb)],'tools':{...(_0x43d334=_0x3e0962[_0x4e66c7(0x3bb)])==null?void 0x0:_0x43d334[_0x4e66c7(0x32e)],[_0x2f25e2[_0x4e66c7(0x3fb)]]:Oi((_0x318e4c=_0x3e0962[_0x4e66c7(0x3bb)])==null||(_0x318e4c=_0x318e4c[_0x4e66c7(0x32e)])==null?void 0x0:_0x318e4c[_0x2f25e2['MindMap']])}}});}[_0x4f3d14(0x34a)](){const _0x465548=_0x4f3d14;return this[_0x465548(0x4a3)]['getConfig'](_0x3e4252)??{};}};K(Di,_0x4f3d14(0x2c5),Si),K(Di,'packageName',Zt),K(Di,'version',Qt),K(Di,_0x4f3d14(0x3b5),_0x8b4a1a[_0x4f3d14(0x35b)]),Di=J([_0x305799(_0x327bfc,_0x38f2bf,_0x3afdbd,_0x204fd7,_0x28e0e2),q(0x1,_0x132a38(_0x13315b)),q(0x2,_0x156f99),q(0x3,_0x19658f)],Di);function Oi(_0x5b6812){const _0xeee910=_0x4f3d14;return _0x5b6812===!0x1?!0x1:typeof _0x5b6812!='object'||{..._0x5b6812,'enabled':_0x5b6812[_0xeee910(0x29e)]??!0x0};}export{Di as UniverBoardsMindMobileUIPlugin,Ti as UniverBoardsMindUIPlugin};
1
+ const _0x1b778c=_0x5157;(function(_0x470608,_0x58bca3){const _0x218850=_0x5157,_0x548b06=_0x470608();while(!![]){try{const _0x22a0fe=parseInt(_0x218850(0x11d))/0x1*(parseInt(_0x218850(0x11c))/0x2)+parseInt(_0x218850(0x24b))/0x3+-parseInt(_0x218850(0x193))/0x4+-parseInt(_0x218850(0x101))/0x5*(-parseInt(_0x218850(0x163))/0x6)+parseInt(_0x218850(0x1a6))/0x7*(parseInt(_0x218850(0x18a))/0x8)+parseInt(_0x218850(0x1b8))/0x9*(-parseInt(_0x218850(0x3bf))/0xa)+-parseInt(_0x218850(0x317))/0xb*(parseInt(_0x218850(0x341))/0xc);if(_0x22a0fe===_0x58bca3)break;else _0x548b06['push'](_0x548b06['shift']());}catch(_0x5005bd){_0x548b06['push'](_0x548b06['shift']());}}}(_0x398c,0x4a9da));import{BoardElementType as _0x5110ee,BoardToolType as _0x37f1d2,IBoardElementService as _0x3c52ab,IBoardMindMapAdapterService as _0x597a9a,UniverBoardsPlugin as _0xddf37c,documentTextStyleToBoardShapeTextStyle as _0x7343b4,offsetBoardConnectorGeometry as _0x22be02,resolveBoardElementWorldBounds as _0xa238e7}from'@univerjs-pro/boards';import{AddMindMapChildOperation as _0xb4c09f,AddMindMapSiblingOperation as _0x34ed4d,ChangeMindMapBranchLineTypeOperation as _0x401f18,ChangeMindMapLayoutOperation as _0x5b0e9b,CopyMindMapNodeOperation as _0x382101,DeleteMindMapNodeOperation as _0x4cf65a,DetachMindMapNodeOperation as _0x1089a1,ExportMindMapOpmlOperation as _0x572660,IMindMapClipboardService as _0x197f49,ImportMindMapOpmlOperation as _0x1f2219,InsertBoardMindMapOperation as _0x2c7eb0,LayoutMindMapOperation as _0x4b8919,MIND_MAP_DEFAULT_LAYOUT as _0x3e5dd9,MIND_MAP_DEFAULT_NODE_SIZE as _0x3d25e3,MIND_MAP_DEFAULT_NODE_TEXT as _0x2f5150,MIND_MAP_LAYOUT_SPACING_LIMITS as _0x446f4c,PasteMindMapAsNewMindMapOperation as _0x404976,PasteMindMapNodeOperation as _0x3f2b8f,PromoteMindMapNodeOperation as _0x423b53,ReparentMindMapNodeOperation as _0x4a6209,ToggleMindMapNodeCollapseOperation as _0x42ee80,TranslateMindMapOperation as _0x31ef1a,UniverBoardsMindPlugin as _0x1681bf,UpdateMindMapIncomingConnectorOperation as _0x1c0182,UpdateMindMapNodeOperation as _0x2f778f,compareMindMapOrderKey as _0x266511,getMindMapConnectorMeta as _0x55db74,getMindMapContainerMeta as _0x4cc68d,getMindMapDefaultChildOrderKey as _0x83cdd2,getMindMapNodeMeta as _0x553933,isMindMapPlainStructureKind as _0x1f742a,resolveMindMapBranchLineTypeForStructure as _0x25ee14,resolveMindMapLayoutPreview as _0x3a1fc1,resolveMindMapNodeHostSize as _0x2cf0ea}from'@univerjs-pro/boards-mind';import{BOARDS_UI_PLUGIN_CONFIG_KEY as _0x457d10,BOARD_RENDER_LAYER_INDEX as _0xd8bbf4,BOARD_RENDER_OBJECT_Z_INDEX as _0x5afe40,BOARD_SHORTCUT_BINDINGS as _0x435552,BoardCanvasPopManagerService as _0x55f626,BoardInteractionSurfaceService as _0x1e9e32,BoardShapeIntrinsicSizeService as _0x1a2675,BoardTextEditingService as _0x53de0e,IBoardElementStateService as _0x3a3db4,IBoardUIStateService as _0x2b4c4c,UniverBoardsMobileUIPlugin as _0x31dedc,UniverBoardsUIPlugin as _0x4ecec1,areBoardShapeTextValuesEquivalent as _0x199641,getBoardElementRenderObjectKey as _0x2a9cbd,isBoardShortcutAvailable as _0x5a3f39,parseBoardElementRenderObjectKey as _0x34a5ca,resolveBoardFloatingToolbarSelection as _0xb9962a,syncBoardElementRenderObject as _0x8ac15f}from'@univerjs-pro/boards-ui';import{UniverLicensePlugin as _0x1af614}from'@univerjs-pro/license';import{BooleanNumber as _0x26909a,CommandType as _0x2cc8ab,DEFAULT_STYLES as _0x529f51,DependentOn as _0x2ea3a3,Disposable as _0x5b4143,DisposableCollection as _0x1bdce5,HorizontalAlign as _0x242a32,ICommandService as _0x36a817,IConfigService as _0x23cbeb,IContextService as _0x854033,IUniverInstanceService as _0x4d4728,Inject as _0x407fc1,Injector as _0x26f410,LocaleService as _0x4f0dfe,Plugin as _0x559c3d,RxDisposable as _0x285459,UniverInstanceType as _0x5d14ce,VerticalAlign as _0x331031,generateRandomId as _0x2075ab,merge as _0x4916e7,toDisposable as _0x16561b}from'@univerjs/core';import{BaseObject as _0x145c14,Control as _0xdd0ecf,DeviceType as _0x5946c6,IRenderManagerService as _0x5c1663,UniverRenderEnginePlugin as _0x15f5f7}from'@univerjs/engine-render';import{Subject as _0x4e51a1,merge as _0x557f16,takeUntil as _0x2cb42f}from'rxjs';import{ComponentManager as _0x4c8e12,IDialogService as _0x353fbc,IFontService as _0x1b36a0,IShortcutService as _0x1e1a04,ISidebarService as _0x77ef69,KeyCode as _0x406ab2,MetaKeys as _0x151c45,UndoRedoGroupService as _0x2153c6,useDependency as _0x986de7,useObservable as _0x3f7788}from'@univerjs/ui';import{MobileShapeMenu as _0x4f2210,SHAPE_FLOATING_TOOLBAR_DEFAULT_STROKE_COLOR as _0x35eb86,SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_BACKGROUND_COLOR as _0x4d83e7,SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_COLOR as _0x32baa3,SHAPE_TEXT_EDITOR_QUOTE_COMMAND_ID as _0x4c2f5a,ShapeFillButton as _0x907f15,ShapeFloatingToolbarContent as _0xc64b25,ShapeFloatingToolbarDropdownTrigger as _0x3474c8,ShapeFloatingToolbarFontSizeSelect as _0x57ceb0,ShapeFloatingToolbarIcon as _0x3fbbff,ShapeFloatingToolbarMenuItem as _0x5867e6,ShapeFloatingToolbarMenuPanel as _0x168a20,ShapeStrokePanelButton as _0x4b9829,ShapeStrokePanelContent as _0x5a0dfe,TextFillButton as _0x39e651,TypographyPanelButton as _0x4c48a0,buildShapeTextDataUpdate as _0x4ce09f,getTextStyle as _0x583394}from'@univerjs-pro/shape-editor-ui';import{ShapeDefaultConfig as _0x467b5d,ShapeLineDashEnum as _0x463fe0,ShapeLineTypeEnum as _0x41f978}from'@univerjs-pro/engine-shape';import{Button as _0xe955b5,Dropdown as _0x22c7e1,Input as _0x66451e,InputNumber as _0x4200a3,MobileColorPresets as _0x3bbc87,Segmented as _0x2ce81b,Separator as _0x5b5857,Textarea as _0x2701f8,borderClassName as _0x511d4d,clsx as _0x406940}from'@univerjs/design';import{AlignBottomIcon as _0x3e5923,AlignTextBothIcon as _0x508ba9,AlignTopIcon as _0x54a491,BoldIcon as _0x1176f8,HorizontallyIcon as _0x26c41e,ItalicIcon as _0x34ae87,LeftJustifyingIcon as _0x3d68ad,MoreHorizontalIcon as _0xe42adf,RightJustifyingIcon as _0xedb2f5,SearchIcon as _0xaa3556,ShapeLineIcon as _0x203640,StrikethroughIcon as _0x4d0e2d,UnderlineIcon as _0x567b16,VerticalCenterIcon as _0x1c5451}from'@univerjs/icons';import{useEffect as _0x18d85b,useReducer as _0x3852d7,useState as _0x2c9c6f}from'react';import{Fragment as _0x1fbb95,jsx as _0x10416f,jsxs as _0x54bda6}from'react/jsx-runtime';var Zt=_0x1b778c(0x277),Qt=_0x1b778c(0x216);const $t=_0x1b778c(0x2aa),en={};function tn(_0x48a313){'@babel/helpers - typeof';const _0x99a022=_0x1b778c;return tn=typeof Symbol=='function'&&typeof Symbol[_0x99a022(0x2d9)]==_0x99a022(0x342)?function(_0x2d2a57){return typeof _0x2d2a57;}:function(_0x4d3478){const _0x241fce=_0x99a022;return _0x4d3478&&typeof Symbol==_0x241fce(0x242)&&_0x4d3478[_0x241fce(0x1c8)]===Symbol&&_0x4d3478!==Symbol[_0x241fce(0x2c7)]?_0x241fce(0x342):typeof _0x4d3478;},tn(_0x48a313);}function nn(_0x4231d7,_0x2a7f1f){const _0x24e5cf=_0x1b778c;if(tn(_0x4231d7)!=_0x24e5cf(0x20c)||!_0x4231d7)return _0x4231d7;var _0x705d46=_0x4231d7[Symbol['toPrimitive']];if(_0x705d46!==void 0x0){var _0x4739b3=_0x705d46[_0x24e5cf(0x360)](_0x4231d7,_0x2a7f1f||_0x24e5cf(0x33b));if(tn(_0x4739b3)!='object')return _0x4739b3;throw TypeError(_0x24e5cf(0x2dc));}return(_0x2a7f1f==='string'?String:Number)(_0x4231d7);}function rn(_0x3dc558){const _0x5102d9=_0x1b778c;var _0x5da152=nn(_0x3dc558,_0x5102d9(0xc0));return tn(_0x5da152)=='symbol'?_0x5da152:_0x5da152+'';}function K(_0x5c6623,_0xc744b0,_0x48b3ae){return(_0xc744b0=rn(_0xc744b0))in _0x5c6623?Object['defineProperty'](_0x5c6623,_0xc744b0,{'value':_0x48b3ae,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5c6623[_0xc744b0]=_0x48b3ae,_0x5c6623;}function q(_0x1fb8c4,_0x4370b4){return function(_0x45f9be,_0xff2e7c){_0x4370b4(_0x45f9be,_0xff2e7c,_0x1fb8c4);};}function J(_0x26a90d,_0x95b743,_0x4862d8,_0x3874fa){const _0x148f95=_0x1b778c;var _0x504287=arguments['length'],_0x58c87e=_0x504287<0x3?_0x95b743:_0x3874fa===null?_0x3874fa=Object[_0x148f95(0x244)](_0x95b743,_0x4862d8):_0x3874fa,_0x46b6bf;if(typeof Reflect=='object'&&typeof Reflect[_0x148f95(0x2c6)]=='function')_0x58c87e=Reflect[_0x148f95(0x2c6)](_0x26a90d,_0x95b743,_0x4862d8,_0x3874fa);else{for(var _0x1579da=_0x26a90d[_0x148f95(0xe7)]-0x1;_0x1579da>=0x0;_0x1579da--)(_0x46b6bf=_0x26a90d[_0x1579da])&&(_0x58c87e=(_0x504287<0x3?_0x46b6bf(_0x58c87e):_0x504287>0x3?_0x46b6bf(_0x95b743,_0x4862d8,_0x58c87e):_0x46b6bf(_0x95b743,_0x4862d8))||_0x58c87e);}return _0x504287>0x3&&_0x58c87e&&Object[_0x148f95(0x3c8)](_0x95b743,_0x4862d8,_0x58c87e),_0x58c87e;}let an=class extends _0x285459{constructor(_0x21c8be,_0x11fb11,_0x1bbcd0){const _0x57b0a8=_0x1b778c;super(),this[_0x57b0a8(0x1da)]=_0x21c8be,this[_0x57b0a8(0x399)]=_0x11fb11,this['_commandService']=_0x1bbcd0,K(this,_0x57b0a8(0x1a0),new Map()),K(this,_0x57b0a8(0x300),new Map()),K(this,'_layoutFlushScheduled',!0x1),this['_init']();}[_0x1b778c(0x14d)](){const _0x46db3f=_0x1b778c;this['_seedExistingNodeSizes'](),this[_0x46db3f(0x172)](_0x16561b(this[_0x46db3f(0x399)][_0x46db3f(0x1ff)]['pipe'](_0x2cb42f(this['dispose$']))['subscribe'](_0x432b97=>{_0x432b97['forEach'](_0x3874ee=>{const _0x1129e4=_0x5157;let _0x53fbd8=this[_0x1129e4(0x399)][_0x1129e4(0x364)](_0x3874ee[_0x1129e4(0x1d1)],_0x3874ee[_0x1129e4(0x28e)],_0x3874ee['elementId']);this['_rememberNodeSize'](_0x3874ee,_0x53fbd8);});}))),this[_0x46db3f(0x172)](_0x16561b(this[_0x46db3f(0x399)][_0x46db3f(0x21c)][_0x46db3f(0xd3)](_0x2cb42f(this[_0x46db3f(0x351)]))['subscribe'](_0xff6060=>{const _0x25e37b=_0x46db3f;_0xff6060[_0x25e37b(0x1d5)](_0x338024=>this['_handleElementUpdate'](_0x338024));})));}[_0x1b778c(0xbf)](){const _0x108fd6=_0x1b778c;let _0x182ef0=this[_0x108fd6(0x1da)][_0x108fd6(0x1d1)],_0x8f075=this[_0x108fd6(0x399)][_0x108fd6(0xc7)](_0x182ef0);Object['entries'](_0x8f075)[_0x108fd6(0x1d5)](([_0x1b8183,_0x204e81])=>{const _0x55d02d=_0x108fd6;Object['values'](_0x204e81[_0x55d02d(0x1f8)])[_0x55d02d(0x1d5)](_0x2c0e5d=>{const _0x28d426=_0x55d02d;this[_0x28d426(0xea)]({'unitId':_0x182ef0,'subUnitId':_0x1b8183,'elementId':_0x2c0e5d[_0x28d426(0x2fa)]},_0x2c0e5d);});});}[_0x1b778c(0x324)](_0xb2c403){const _0x2fc020=_0x1b778c;if(_0xb2c403[_0x2fc020(0x1d1)]!==this[_0x2fc020(0x1da)][_0x2fc020(0x1d1)])return;let _0x1dd4fe=this[_0x2fc020(0x399)][_0x2fc020(0x364)](_0xb2c403[_0x2fc020(0x1d1)],_0xb2c403[_0x2fc020(0x28e)],_0xb2c403[_0x2fc020(0x2fa)]),_0x550fc9=_0x553933(_0x1dd4fe==null?void 0x0:_0x1dd4fe[_0x2fc020(0x201)]),_0x26b423=this[_0x2fc020(0xaa)](_0x1dd4fe);if(!_0x550fc9||!_0x26b423){this[_0x2fc020(0x1a0)]['delete'](this['_getElementKey'](_0xb2c403));return;}let _0x4c7f0b=this[_0x2fc020(0x1ed)](_0xb2c403),_0x12786a=this[_0x2fc020(0x1a0)]['get'](_0x4c7f0b);this[_0x2fc020(0x1a0)]['set'](_0x4c7f0b,_0x26b423),!(_0x12786a&&_0x12786a[_0x2fc020(0x316)]===_0x26b423[_0x2fc020(0x316)]&&_0x12786a[_0x2fc020(0xbc)]===_0x26b423[_0x2fc020(0xbc)])&&this[_0x2fc020(0x3b5)]({'unitId':_0xb2c403[_0x2fc020(0x1d1)],'subUnitId':_0xb2c403[_0x2fc020(0x28e)],'scopeId':_0x550fc9[_0x2fc020(0x353)]});}[_0x1b778c(0xea)](_0x44f599,_0x5e0fd2){const _0x119dda=_0x1b778c;if(_0x44f599['unitId']!==this[_0x119dda(0x1da)]['unitId'])return;let _0x3ad17e=_0x553933(_0x5e0fd2==null?void 0x0:_0x5e0fd2[_0x119dda(0x201)]),_0x559f1a=this[_0x119dda(0xaa)](_0x5e0fd2);_0x3ad17e&&_0x559f1a&&this['_nodeSizeByKey'][_0x119dda(0x383)](this[_0x119dda(0x1ed)](_0x44f599),_0x559f1a);}[_0x1b778c(0xaa)](_0x17fab1){const _0x40bb03=_0x1b778c;let _0x508c3f=(_0x17fab1==null?void 0x0:_0x17fab1[_0x40bb03(0x1b0)])??(_0x17fab1==null?void 0x0:_0x17fab1[_0x40bb03(0x201)][_0x40bb03(0x1b0)]),_0x1d5d53=_0x508c3f==null?void 0x0:_0x508c3f[_0x40bb03(0x316)],_0x1c7f0b=_0x508c3f==null?void 0x0:_0x508c3f[_0x40bb03(0xbc)];return!Number['isFinite'](_0x1d5d53)||!Number[_0x40bb03(0x1e9)](_0x1c7f0b)?null:{'width':_0x1d5d53,'height':_0x1c7f0b};}[_0x1b778c(0x3b5)](_0x5d10da){const _0x1663f7=_0x1b778c;this[_0x1663f7(0x300)][_0x1663f7(0x383)](_0x5d10da['unitId']+':'+_0x5d10da[_0x1663f7(0x28e)]+':'+_0x5d10da[_0x1663f7(0x315)],_0x5d10da),!this[_0x1663f7(0x1c3)]&&(this[_0x1663f7(0x1c3)]=!0x0,Promise[_0x1663f7(0x36e)]()['then'](()=>{const _0x416831=_0x1663f7;this[_0x416831(0x1c3)]=!0x1;let _0x49b395=Array[_0x416831(0x2c9)](this[_0x416831(0x300)][_0x416831(0x346)]());this[_0x416831(0x300)]['clear'](),_0x49b395[_0x416831(0x1d5)](_0x140115=>{this['_executeRootAnchoredLayout'](_0x140115);});}));}[_0x1b778c(0x15e)](_0x5b7c0e){const _0x1d98d2=_0x1b778c;var _0x113cd0;let _0x8c587b=this[_0x1d98d2(0x399)][_0x1d98d2(0x364)](_0x5b7c0e[_0x1d98d2(0x1d1)],_0x5b7c0e[_0x1d98d2(0x28e)],_0x5b7c0e[_0x1d98d2(0x315)]),_0x26447a=(_0x113cd0=_0x4cc68d(_0x8c587b==null?void 0x0:_0x8c587b[_0x1d98d2(0x201)]))==null?void 0x0:_0x113cd0[_0x1d98d2(0x227)];this[_0x1d98d2(0x246)][_0x1d98d2(0x35c)](_0x4b8919['id'],{..._0x5b7c0e,'skipUndo':!0x0,..._0x26447a?{'anchorNodeId':_0x26447a}:null});}[_0x1b778c(0x1ed)](_0x558138){const _0x203ce0=_0x1b778c;return _0x558138[_0x203ce0(0x1d1)]+':'+_0x558138['subUnitId']+':'+_0x558138[_0x203ce0(0x2fa)];}};an=J([q(0x1,_0x407fc1(_0x3c52ab)),q(0x2,_0x36a817)],an);const Y={'primaryColor':_0x35eb86,'surfaceColor':_0x4d83e7,'textColor':_0x32baa3,'fontFamily':_0x529f51['ff']};function on(_0x39daec,_0x44f289){const _0x3e59cf=_0x1b778c;let _0x22f809=Math['min'](0x1,Math[_0x3e59cf(0x359)](0x0,Number[_0x3e59cf(0x1e9)](_0x44f289)?_0x44f289:0x1)),_0x4ac9b4=_0x39daec[_0x3e59cf(0x2ad)](),_0x5a15af=/^#([0-9a-fA-F]{6})$/[_0x3e59cf(0xd5)](_0x4ac9b4);if(!_0x5a15af)return _0x39daec;let _0x201610=_0x5a15af[0x1];return'rgba('+Number['parseInt'](_0x201610[_0x3e59cf(0x2e3)](0x0,0x2),0x10)+',\x20'+Number['parseInt'](_0x201610['slice'](0x2,0x4),0x10)+',\x20'+Number['parseInt'](_0x201610[_0x3e59cf(0x2e3)](0x4,0x6),0x10)+',\x20'+_0x22f809+')';}const X={'primaryColor':Y[_0x1b778c(0x12c)],'ghostFillColor':on(Y['surfaceColor'],0.72),'ghostTextColor':on(Y[_0x1b778c(0x107)],0.62),'rootTextColor':on(Y[_0x1b778c(0x3a8)],0.86),'sourceHighlightFillColor':on(Y[_0x1b778c(0x12c)],0.12),'sourceHighlightStrokeColor':on(Y[_0x1b778c(0x12c)],0.9),'objectAlpha':0.72,'dragObjectAlpha':0.78,'connectorAlpha':0.64,'lineWidthScreen':0x2,'fallbackNodeWidth':_0x3d25e3[_0x1b778c(0x3ba)],'fallbackNodeHeight':_0x3d25e3[_0x1b778c(0x307)],'branchGap':_0x3e5dd9[_0x1b778c(0x28f)],'sourceHaloScreen':0x4,'ghostRadius':0x8,'rootRadius':0xa,'fontFamily':Y['fontFamily'],'ghostFontWeight':0x1f4,'rootFontWeight':0x258,'rootFontSize':0x12,'textPaddingScreen':0xc,'dirtyPaddingScreen':0x18,'sourceDashScreen':[0x6,0x4]};function Z(_0x9b5d85,_0x120225,_0x3dbda6,_0x198179,_0x28fe40,_0xcd8adf){const _0x5cb353=_0x1b778c;let _0x351b42=Math[_0x5cb353(0x26b)](_0xcd8adf,_0x198179/0x2,_0x28fe40/0x2);_0x9b5d85[_0x5cb353(0x2c3)](),_0x9b5d85[_0x5cb353(0xef)](_0x120225+_0x351b42,_0x3dbda6),_0x9b5d85[_0x5cb353(0x2f7)](_0x120225+_0x198179-_0x351b42,_0x3dbda6),_0x9b5d85[_0x5cb353(0xd9)](_0x120225+_0x198179,_0x3dbda6,_0x120225+_0x198179,_0x3dbda6+_0x351b42),_0x9b5d85[_0x5cb353(0x2f7)](_0x120225+_0x198179,_0x3dbda6+_0x28fe40-_0x351b42),_0x9b5d85[_0x5cb353(0xd9)](_0x120225+_0x198179,_0x3dbda6+_0x28fe40,_0x120225+_0x198179-_0x351b42,_0x3dbda6+_0x28fe40),_0x9b5d85['lineTo'](_0x120225+_0x351b42,_0x3dbda6+_0x28fe40),_0x9b5d85[_0x5cb353(0xd9)](_0x120225,_0x3dbda6+_0x28fe40,_0x120225,_0x3dbda6+_0x28fe40-_0x351b42),_0x9b5d85[_0x5cb353(0x2f7)](_0x120225,_0x3dbda6+_0x351b42),_0x9b5d85['quadraticCurveTo'](_0x120225,_0x3dbda6,_0x120225+_0x351b42,_0x3dbda6),_0x9b5d85[_0x5cb353(0x21f)]();}function sn(_0x3689ec,_0xe6452,_0x11ebea){const _0x134468=_0x1b778c;return _0x3689ec+'\x20'+_0xe6452/_0x11ebea+_0x134468(0x339)+X[_0x134468(0x368)];}const cn='board-mind-map-drag-preview-object',ln=_0xd8bbf4[_0x1b778c(0x230)];function Q(_0x5673aa,_0x5aed19){const _0x39a10b=_0x1b778c;return Number[_0x39a10b(0x1e9)](_0x5673aa)?_0x5673aa:_0x5aed19;}function un(){const _0x432a99=_0x1b778c;return X[_0x432a99(0x3a5)];}function dn(){return X['fallbackNodeHeight'];}function fn(_0x6bc7c8){const _0x2716c9=_0x1b778c;return _0x6bc7c8===0x1?_0x2716c9(0x344):_0x6bc7c8===0x3?_0x2716c9(0x1f3):'center';}function pn(_0x381f0e,_0x4c9ad9,_0x17babc,_0x57b751){return _0x17babc===0x1?_0x381f0e+_0x57b751:_0x17babc===0x3?_0x381f0e+_0x4c9ad9-_0x57b751:_0x381f0e+_0x4c9ad9/0x2;}var mn=class extends _0x145c14{constructor(_0xe5cfab=cn,_0x2aad51){const _0x34dca8=_0x1b778c;super(_0xe5cfab),K(this,'_state',{'ghostBounds':null,'parentBounds':null,'side':'right','zoomRatio':0x1}),this[_0x34dca8(0x270)]=!0x1,this[_0x34dca8(0x12d)]=_0x5afe40['transientPreviewForeground'],this['updateState'](_0x2aad51);}['updateState'](_0xc84178){const _0x3424b1=_0x1b778c;if(this['_state']={...this[_0x3424b1(0x195)],..._0xc84178},this[_0x3424b1(0x195)][_0x3424b1(0x119)]){let _0x56f0ed=this[_0x3424b1(0x306)]();this[_0x3424b1(0x2be)](_0x56f0ed),this['show']();}else this[_0x3424b1(0x381)]();let _0x3df01d=this;typeof _0x3df01d[_0x3424b1(0x2e7)]=='function'?_0x3df01d[_0x3424b1(0x2e7)](!0x0):this[_0x3424b1(0xc1)](!0x0);}[_0x1b778c(0x16c)](_0x1f0d49){return!0x1;}['render'](_0x5f0606,_0x56f530){const _0x1e5f98=_0x1b778c;let _0x5c2c6e=this[_0x1e5f98(0x195)][_0x1e5f98(0x119)];if(!_0x5c2c6e||!this['visible'])return this['makeDirty'](!0x1),this;let _0x12498d=Number[_0x1e5f98(0x1e9)](this[_0x1e5f98(0x195)][_0x1e5f98(0x387)])&&(this['_state'][_0x1e5f98(0x387)]??0x0)>0x0?this[_0x1e5f98(0x195)][_0x1e5f98(0x387)]:0x1,_0x57525c=Q(_0x5c2c6e[_0x1e5f98(0x344)],0x0),_0x4d74cb=Q(_0x5c2c6e['top'],0x0),_0x241389=Math[_0x1e5f98(0x359)](0x1,Q(_0x5c2c6e[_0x1e5f98(0x316)],un())),_0x198097=Math['max'](0x1,Q(_0x5c2c6e['height'],dn()));if(_0x5f0606[_0x1e5f98(0x27d)](),_0x5f0606[_0x1e5f98(0x17a)]=X[_0x1e5f98(0x374)],_0x5f0606['lineWidth']=X[_0x1e5f98(0x14a)]/_0x12498d,_0x5f0606[_0x1e5f98(0x139)]=X[_0x1e5f98(0x12c)],_0x5f0606[_0x1e5f98(0x1f9)]=X['ghostFillColor'],this[_0x1e5f98(0x391)](_0x5f0606,{'left':_0x57525c,'top':_0x4d74cb,'width':_0x241389,'height':_0x198097},_0x12498d),this[_0x1e5f98(0x205)](_0x5f0606,_0x12498d),this[_0x1e5f98(0x195)][_0x1e5f98(0x2d0)]===!0x1)return _0x5f0606[_0x1e5f98(0x190)](),this[_0x1e5f98(0xc1)](!0x1),this;Z(_0x5f0606,_0x57525c,_0x4d74cb,_0x241389,_0x198097,X[_0x1e5f98(0xf2)]),_0x5f0606[_0x1e5f98(0x3ac)](),_0x5f0606[_0x1e5f98(0x38b)]();let _0x450bc9=this[_0x1e5f98(0x195)][_0x1e5f98(0xac)],_0xc004d9=Number[_0x1e5f98(0x1e9)](_0x450bc9==null?void 0x0:_0x450bc9['fontSize'])&&((_0x450bc9==null?void 0x0:_0x450bc9[_0x1e5f98(0x2cf)])??0x0)>0x0?_0x450bc9[_0x1e5f98(0x2cf)]:0x10,_0xee0c55=X['textPaddingScreen']/_0x12498d;return _0x5f0606[_0x1e5f98(0x1f9)]=(_0x450bc9==null?void 0x0:_0x450bc9[_0x1e5f98(0x22f)])??X[_0x1e5f98(0x296)],_0x5f0606[_0x1e5f98(0x347)]=sn(X['ghostFontWeight'],_0xc004d9,_0x12498d),_0x5f0606[_0x1e5f98(0x279)]=fn(_0x450bc9==null?void 0x0:_0x450bc9['horizontalAlign']),_0x5f0606[_0x1e5f98(0x137)]=_0x1e5f98(0x23b),_0x5f0606[_0x1e5f98(0x2a8)]((_0x450bc9==null?void 0x0:_0x450bc9['text'])||_0x2f5150,pn(_0x57525c,_0x241389,_0x450bc9==null?void 0x0:_0x450bc9[_0x1e5f98(0x35d)],_0xee0c55),_0x4d74cb+_0x198097/0x2,Math[_0x1e5f98(0x359)](0x1,_0x241389-_0xee0c55*0x2)),_0x5f0606['restore'](),this[_0x1e5f98(0xc1)](!0x1),this;}[_0x1b778c(0x306)](){const _0x2f8520=_0x1b778c;let _0x5e444e=this[_0x2f8520(0x195)][_0x2f8520(0x119)],_0xef75be=Number[_0x2f8520(0x1e9)](this[_0x2f8520(0x195)][_0x2f8520(0x387)])&&(this[_0x2f8520(0x195)][_0x2f8520(0x387)]??0x0)>0x0?this[_0x2f8520(0x195)][_0x2f8520(0x387)]:0x1,_0x1965bd=X[_0x2f8520(0x338)]/_0xef75be;if(!_0x5e444e)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x4cb488=Q(_0x5e444e[_0x2f8520(0x344)],0x0),_0x54fc48=Q(_0x5e444e[_0x2f8520(0x165)],0x0),_0x1f9cf5=Math[_0x2f8520(0x359)](0x1,Q(_0x5e444e[_0x2f8520(0x316)],un())),_0x4cca6b=Math[_0x2f8520(0x359)](0x1,Q(_0x5e444e[_0x2f8520(0xbc)],dn())),_0x358aed=this[_0x2f8520(0x195)][_0x2f8520(0x23c)],_0x4f6ae8=this[_0x2f8520(0x195)][_0x2f8520(0x1e1)],_0x5ddc08=Q(_0x358aed==null?void 0x0:_0x358aed[_0x2f8520(0x344)],_0x4cb488),_0x5a292f=Q(_0x358aed==null?void 0x0:_0x358aed[_0x2f8520(0x165)],_0x54fc48),_0x4ffcf4=Math['max'](0x1,Q(_0x358aed==null?void 0x0:_0x358aed[_0x2f8520(0x316)],_0x1f9cf5)),_0x6b1d6c=Math[_0x2f8520(0x359)](0x1,Q(_0x358aed==null?void 0x0:_0x358aed[_0x2f8520(0xbc)],_0x4cca6b));if(!_0x4f6ae8){let _0x180235=Math[_0x2f8520(0x26b)](_0x4cb488,_0x5ddc08)-_0x1965bd,_0x2c592e=Math[_0x2f8520(0x26b)](_0x54fc48,_0x5a292f)-_0x1965bd,_0x12bee8=Math['max'](_0x4cb488+_0x1f9cf5,_0x5ddc08+_0x4ffcf4)+_0x1965bd,_0x4f1c0f=Math['max'](_0x54fc48+_0x4cca6b,_0x5a292f+_0x6b1d6c)+_0x1965bd;return{'left':_0x180235,'top':_0x2c592e,'width':_0x12bee8-_0x180235,'height':_0x4f1c0f-_0x2c592e};}let _0x4f4cc7=Q(_0x4f6ae8[_0x2f8520(0x344)],_0x4cb488),_0x2be820=Q(_0x4f6ae8[_0x2f8520(0x165)],_0x54fc48),_0x5ab42d=Math[_0x2f8520(0x359)](0x1,Q(_0x4f6ae8[_0x2f8520(0x316)],un())),_0x441470=Math[_0x2f8520(0x359)](0x1,Q(_0x4f6ae8[_0x2f8520(0xbc)],dn())),_0xa833e2=Math[_0x2f8520(0x26b)](_0x4cb488,_0x4f4cc7,_0x5ddc08)-_0x1965bd,_0x6a7d49=Math[_0x2f8520(0x26b)](_0x54fc48,_0x2be820,_0x5a292f)-_0x1965bd,_0x3de19b=Math[_0x2f8520(0x359)](_0x4cb488+_0x1f9cf5,_0x4f4cc7+_0x5ab42d,_0x5ddc08+_0x4ffcf4)+_0x1965bd,_0xac9c55=Math[_0x2f8520(0x359)](_0x54fc48+_0x4cca6b,_0x2be820+_0x441470,_0x5a292f+_0x6b1d6c)+_0x1965bd;return{'left':_0xa833e2,'top':_0x6a7d49,'width':_0x3de19b-_0xa833e2,'height':_0xac9c55-_0x6a7d49};}[_0x1b778c(0x205)](_0x4cc308,_0x1bd748){const _0x5dda1e=_0x1b778c;var _0x1e1121;let _0x57d7db=this[_0x5dda1e(0x195)][_0x5dda1e(0x23c)];if(!_0x57d7db)return;let _0x154680=X[_0x5dda1e(0x37f)]/_0x1bd748,_0x2ac385=Q(_0x57d7db[_0x5dda1e(0x344)],0x0)-_0x154680,_0x42c491=Q(_0x57d7db[_0x5dda1e(0x165)],0x0)-_0x154680,_0x19758a=Math[_0x5dda1e(0x359)](0x1,Q(_0x57d7db[_0x5dda1e(0x316)],un()))+_0x154680*0x2,_0x58415c=Math[_0x5dda1e(0x359)](0x1,Q(_0x57d7db['height'],dn()))+_0x154680*0x2;_0x4cc308[_0x5dda1e(0x27d)](),_0x4cc308[_0x5dda1e(0x17a)]=0x1,_0x4cc308[_0x5dda1e(0x261)]=X[_0x5dda1e(0x14a)]/_0x1bd748,_0x4cc308['strokeStyle']=X[_0x5dda1e(0x328)],_0x4cc308[_0x5dda1e(0x1f9)]=X[_0x5dda1e(0x157)],(_0x1e1121=_0x4cc308[_0x5dda1e(0x355)])==null||_0x1e1121[_0x5dda1e(0x360)](_0x4cc308,X[_0x5dda1e(0x3c0)][_0x5dda1e(0x10c)](_0x1d15bd=>_0x1d15bd/_0x1bd748)),Z(_0x4cc308,_0x2ac385,_0x42c491,_0x19758a,_0x58415c,X['rootRadius']),_0x4cc308[_0x5dda1e(0x3ac)](),_0x4cc308['stroke'](),_0x4cc308[_0x5dda1e(0x190)]();}[_0x1b778c(0x391)](_0x3610a5,_0x4b3f00,_0x3e9cec){const _0x50d044=_0x1b778c;let _0xc39385=this[_0x50d044(0x195)][_0x50d044(0x1e1)];if(!_0xc39385)return;let _0x290491=Q(_0xc39385['left'],0x0),_0x72b177=Q(_0xc39385[_0x50d044(0x165)],0x0),_0x4d2ec5=Math[_0x50d044(0x359)](0x1,Q(_0xc39385[_0x50d044(0x316)],un())),_0x38f026=Math[_0x50d044(0x359)](0x1,Q(_0xc39385[_0x50d044(0xbc)],dn())),_0x169ddc=X['branchGap'],_0x40a006=this[_0x50d044(0x195)][_0x50d044(0x132)]??_0x50d044(0x1f3);if(_0x3610a5['save'](),_0x3610a5[_0x50d044(0x17a)]=X[_0x50d044(0x1cc)],_0x3610a5[_0x50d044(0x139)]=X[_0x50d044(0x12c)],_0x3610a5[_0x50d044(0x261)]=X[_0x50d044(0x14a)]/_0x3e9cec,_0x3610a5['lineCap']=_0x50d044(0x1b4),_0x3610a5['lineJoin']='round',_0x3610a5[_0x50d044(0x2c3)](),_0x40a006===_0x50d044(0x165)||_0x40a006===_0x50d044(0x35e)){let _0xea8164=_0x290491+_0x4d2ec5/0x2,_0x23130c=_0x4b3f00[_0x50d044(0x344)]+_0x4b3f00[_0x50d044(0x316)]/0x2,_0x14cab3=_0x40a006===_0x50d044(0x35e)?_0x72b177+_0x38f026:_0x72b177,_0x128ebc=_0x40a006===_0x50d044(0x35e)?_0x4b3f00[_0x50d044(0x165)]:_0x4b3f00['top']+_0x4b3f00[_0x50d044(0xbc)],_0x36fd36=_0x40a006===_0x50d044(0x35e)?Math[_0x50d044(0x26b)](_0x14cab3+_0x169ddc,(_0x14cab3+_0x128ebc)/0x2):Math[_0x50d044(0x359)](_0x14cab3-_0x169ddc,(_0x14cab3+_0x128ebc)/0x2);_0x3610a5['moveTo'](_0xea8164,_0x14cab3),_0x3610a5[_0x50d044(0x2f7)](_0xea8164,_0x36fd36),_0x3610a5[_0x50d044(0x2f7)](_0x23130c,_0x36fd36),_0x3610a5[_0x50d044(0x2f7)](_0x23130c,_0x128ebc);}else{let _0x4b187a=_0x72b177+_0x38f026/0x2,_0x4ce5df=_0x4b3f00['top']+_0x4b3f00[_0x50d044(0xbc)]/0x2,_0x1fc4db=_0x40a006===_0x50d044(0x1f3)?_0x290491+_0x4d2ec5:_0x290491,_0x5bdc40=_0x40a006===_0x50d044(0x1f3)?_0x4b3f00[_0x50d044(0x344)]:_0x4b3f00[_0x50d044(0x344)]+_0x4b3f00[_0x50d044(0x316)],_0x28944f=_0x40a006===_0x50d044(0x1f3)?Math[_0x50d044(0x26b)](_0x1fc4db+_0x169ddc,(_0x1fc4db+_0x5bdc40)/0x2):Math[_0x50d044(0x359)](_0x1fc4db-_0x169ddc,(_0x1fc4db+_0x5bdc40)/0x2);_0x3610a5[_0x50d044(0xef)](_0x1fc4db,_0x4b187a),_0x3610a5[_0x50d044(0x2f7)](_0x28944f,_0x4b187a),_0x3610a5[_0x50d044(0x2f7)](_0x28944f,_0x4ce5df),_0x3610a5[_0x50d044(0x2f7)](_0x5bdc40,_0x4ce5df);}_0x3610a5[_0x50d044(0x38b)](),_0x3610a5['restore']();}};function hn(_0x16b953,_0x3b6bf1){const _0x191a17=_0x1b778c;return(_0x3b6bf1==null?void 0x0:_0x3b6bf1[_0x16b953[_0x191a17(0x2fa)]])??_0x16b953[_0x191a17(0x201)][_0x191a17(0x1b0)];}function gn(_0x1a33a8,_0x31a8db){const _0x4e90f2=_0x1b778c;let _0x14c554=hn(_0x1a33a8,_0x31a8db);return{'x':(_0x14c554['left']??0x0)+(_0x14c554[_0x4e90f2(0x316)]??0x0)/0x2,'y':(_0x14c554[_0x4e90f2(0x165)]??0x0)+(_0x14c554[_0x4e90f2(0xbc)]??0x0)/0x2};}function _n(_0x5316c6,_0x3c19c3){const _0x196787=_0x1b778c;return Math[_0x196787(0x2b4)](_0x5316c6['x']-_0x3c19c3['x'],_0x5316c6['y']-_0x3c19c3['y']);}function vn(_0x4690f0,_0x53122e){const _0x3ec305=_0x1b778c;let _0x316d14=_0x4690f0[_0x3ec305(0x344)]??0x0,_0x10d97b=_0x4690f0[_0x3ec305(0x165)]??0x0,_0x15f466=_0x316d14+(_0x4690f0[_0x3ec305(0x316)]??0x0),_0x45eebc=_0x10d97b+(_0x4690f0[_0x3ec305(0xbc)]??0x0),_0x1676d3=_0x53122e['left']??0x0,_0xa4048b=_0x53122e[_0x3ec305(0x165)]??0x0,_0x540fdf=_0x1676d3+(_0x53122e[_0x3ec305(0x316)]??0x0),_0x383bfc=_0xa4048b+(_0x53122e[_0x3ec305(0xbc)]??0x0),_0xee47d7=Math['max'](_0x1676d3-_0x15f466,_0x316d14-_0x540fdf,0x0),_0x2ff833=Math['max'](_0xa4048b-_0x45eebc,_0x10d97b-_0x383bfc,0x0);return Math[_0x3ec305(0x2b4)](_0xee47d7,_0x2ff833);}function yn(_0x221843,_0x2f3c6a,_0x86bfd){const _0x345bfa=_0x1b778c;var _0x4c81de;let _0x3fcf01=_0x553933((_0x4c81de=_0x221843[_0x2f3c6a])==null?void 0x0:_0x4c81de[_0x345bfa(0x201)]);for(;_0x3fcf01!=null&&_0x3fcf01[_0x345bfa(0x333)];){var _0x4c2ec1;if(_0x3fcf01[_0x345bfa(0x333)]===_0x86bfd)return!0x0;_0x3fcf01=_0x553933((_0x4c2ec1=_0x221843[_0x3fcf01['parentNodeId']])==null?void 0x0:_0x4c2ec1[_0x345bfa(0x201)]);}return!0x1;}function bn(_0x4588f7,_0x12b451,_0x262156){const _0x121ac4=_0x1b778c;let _0x41f07d=hn(_0x4588f7,_0x262156),_0xbd1e70=_0x41f07d[_0x121ac4(0x165)]??0x0,_0x1a2dcb=_0x41f07d[_0x121ac4(0xbc)]??0x0;return _0x1a2dcb<=0x0?null:_0x12b451['y']<=_0xbd1e70+_0x1a2dcb/0x3?_0x121ac4(0x17b):_0x12b451['y']>=_0xbd1e70+_0x1a2dcb*0x2/0x3?_0x121ac4(0xb9):null;}function xn(_0x568fed,_0x3f17f9){const _0x2356ee=_0x1b778c;let _0x4d9b8c=_0x3f17f9==null?void 0x0:_0x3f17f9[_0x568fed];return Number[_0x2356ee(0x1e9)](_0x4d9b8c==null?void 0x0:_0x4d9b8c['left'])&&Number[_0x2356ee(0x1e9)](_0x4d9b8c==null?void 0x0:_0x4d9b8c[_0x2356ee(0x165)])?{'kind':_0x2356ee(0x1ca),'left':_0x4d9b8c[_0x2356ee(0x344)],'top':_0x4d9b8c['top']}:{'kind':'detach'};}function Sn(_0x502c25,_0x58ae94,_0x44bb9e){const _0x239a64=_0x1b778c;let _0x564fec=_0x502c25[_0x58ae94],_0x36025e=_0x553933(_0x564fec==null?void 0x0:_0x564fec[_0x239a64(0x201)]);if(!_0x564fec||!_0x36025e||!_0x36025e['parentNodeId']&&!(_0x44bb9e!=null&&_0x44bb9e[_0x239a64(0x1fe)]))return{'kind':_0x239a64(0x223)};let _0x4043f5=_0x44bb9e==null?void 0x0:_0x44bb9e[_0x239a64(0x2eb)],_0x30c234=hn(_0x564fec,_0x4043f5),_0x5dede0=gn(_0x564fec,_0x4043f5),_0x5e5f31=Object['values'](_0x502c25)[_0x239a64(0x10c)](_0x3b805b=>{const _0x1d0f19=_0x239a64;let _0x51e607=_0x553933(_0x3b805b[_0x1d0f19(0x201)]);return!_0x51e607||_0x3b805b[_0x1d0f19(0x2fa)]===_0x58ae94||_0x3b805b[_0x1d0f19(0x2fa)]===_0x36025e[_0x1d0f19(0x333)]||_0x44bb9e!=null&&_0x44bb9e[_0x1d0f19(0x1fe)]&&!_0x36025e[_0x1d0f19(0x333)]&&_0x51e607[_0x1d0f19(0x353)]===_0x36025e[_0x1d0f19(0x353)]||yn(_0x502c25,_0x3b805b[_0x1d0f19(0x2fa)],_0x58ae94)?null:{'item':_0x3b805b,'snapDistance':vn(_0x30c234,hn(_0x3b805b,_0x4043f5)),'center':gn(_0x3b805b,_0x4043f5)};})[_0x239a64(0x124)](_0x2d277b=>!!_0x2d277b)[_0x239a64(0x1ab)]((_0x212a78,_0x1f9b36)=>_0x212a78[_0x239a64(0x156)]-_0x1f9b36[_0x239a64(0x156)]||_n(_0x5dede0,_0x212a78['center'])-_n(_0x5dede0,_0x1f9b36[_0x239a64(0x32a)]))[0x0];if(_0x5e5f31&&_0x5e5f31[_0x239a64(0x156)]<=0x64){let _0x30dbdb=_0x553933(_0x5e5f31[_0x239a64(0x231)][_0x239a64(0x201)]),_0x22c88c=_0x30dbdb!=null&&_0x30dbdb[_0x239a64(0x333)]?bn(_0x5e5f31['item'],_0x5dede0,_0x4043f5):null;return _0x30dbdb!=null&&_0x30dbdb[_0x239a64(0x333)]&&_0x22c88c?{'kind':'reparent','newParentNodeId':_0x30dbdb[_0x239a64(0x333)],'side':_0x30dbdb[_0x239a64(0x132)]??_0x239a64(0x1f3),'referenceNodeId':_0x5e5f31['item'][_0x239a64(0x2fa)],'placement':_0x22c88c}:{'kind':'reparent','newParentNodeId':_0x5e5f31[_0x239a64(0x231)]['elementId'],'side':_0x5dede0['x']<_0x5e5f31[_0x239a64(0x32a)]['x']?_0x239a64(0x344):_0x239a64(0x1f3)};}if(_0x44bb9e!=null&&_0x44bb9e[_0x239a64(0x2f0)])return xn(_0x58ae94,_0x4043f5);if(!_0x36025e[_0x239a64(0x333)])return{'kind':_0x239a64(0x223)};let _0x4e1dd5=_0x502c25[_0x36025e[_0x239a64(0x333)]];return _0x4e1dd5&&_n(_0x5dede0,gn(_0x4e1dd5,_0x4043f5))>0x230?xn(_0x58ae94,_0x4043f5):{'kind':'none'};}function Cn(_0x1510dd,_0x28cc72){const _0x16b818=_0x1b778c;var _0x17e9d4,_0x39cf66;return _0x1510dd[_0x16b818(0x2fa)]===_0x28cc72||((_0x17e9d4=_0x553933(_0x1510dd[_0x16b818(0x201)]))==null?void 0x0:_0x17e9d4[_0x16b818(0x353)])===_0x28cc72||((_0x39cf66=_0x55db74(_0x1510dd[_0x16b818(0x201)]))==null?void 0x0:_0x39cf66['structureScopeId'])===_0x28cc72;}function wn(_0xbd8d96,_0x3d04a0,_0x3bf604,_0x1e5616){const _0x37e3fc=_0x1b778c;let _0x4d2838=_0xbd8d96[_0x3d04a0];if(!_0x4d2838)return _0xbd8d96;let _0x451a78=_0x4d2838[_0x37e3fc(0x1b0)]??_0x4d2838['element'][_0x37e3fc(0x1b0)]??{};return{..._0xbd8d96,[_0x3d04a0]:{..._0x4d2838,'transform':{..._0x451a78,'left':(_0x451a78[_0x37e3fc(0x344)]??0x0)+_0x3bf604,'top':(_0x451a78[_0x37e3fc(0x165)]??0x0)+_0x1e5616},'element':{..._0x4d2838[_0x37e3fc(0x201)],'transform':{..._0x4d2838[_0x37e3fc(0x201)][_0x37e3fc(0x1b0)],'left':(_0x4d2838[_0x37e3fc(0x201)]['transform'][_0x37e3fc(0x344)]??0x0)+_0x3bf604,'top':(_0x4d2838[_0x37e3fc(0x201)][_0x37e3fc(0x1b0)]['top']??0x0)+_0x1e5616}}}};}function Tn(_0x27871d){const _0x2095e8=_0x1b778c;if(!Number[_0x2095e8(0x1e9)](_0x27871d['liveRootBounds'][_0x2095e8(0x344)])||!Number[_0x2095e8(0x1e9)](_0x27871d[_0x2095e8(0x18e)][_0x2095e8(0x165)])||!Number[_0x2095e8(0x1e9)](_0x27871d[_0x2095e8(0x2c8)][_0x2095e8(0x344)])||!Number['isFinite'](_0x27871d['rootStartBounds']['top']))return null;let _0x35dae1=_0x27871d[_0x2095e8(0x18e)]['left']-_0x27871d['rootStartBounds']['left'],_0x18ab46=_0x27871d['liveRootBounds'][_0x2095e8(0x165)]-_0x27871d[_0x2095e8(0x2c8)]['top'],_0x1f630a=wn(_0x27871d[_0x2095e8(0x22a)],_0x27871d['scopeId'],_0x35dae1,_0x18ab46),_0x9c4bf8=[];return Object[_0x2095e8(0x346)](_0x1f630a)[_0x2095e8(0x1d5)](_0x4ecd3c=>{const _0x6a8c03=_0x2095e8;if(_0x4ecd3c[_0x6a8c03(0x2fa)]===_0x27871d[_0x6a8c03(0x227)]||_0x4ecd3c[_0x6a8c03(0x2fa)]===_0x27871d[_0x6a8c03(0x315)]||!Cn(_0x4ecd3c,_0x27871d[_0x6a8c03(0x315)]))return;if(_0x6a8c03(0x280)in _0x4ecd3c[_0x6a8c03(0x201)]){var _0x225c94;let _0x332b53=(_0x225c94=_0x27871d[_0x6a8c03(0x22a)][_0x4ecd3c[_0x6a8c03(0x2fa)]])==null?void 0x0:_0x225c94[_0x6a8c03(0x201)];_0x332b53&&_0x6a8c03(0x280)in _0x332b53&&_0x9c4bf8[_0x6a8c03(0x2f3)]({'kind':_0x6a8c03(0x23a),'elementId':_0x4ecd3c['elementId'],'element':_0x22be02(_0x332b53,{'x':_0x35dae1,'y':_0x18ab46})});return;}let _0x546d11=_0xa238e7(_0x1f630a,_0x4ecd3c[_0x6a8c03(0x2fa)]);_0x546d11&&_0x9c4bf8[_0x6a8c03(0x2f3)]({'kind':_0x6a8c03(0x323),'elementId':_0x4ecd3c[_0x6a8c03(0x2fa)],'bounds':_0x546d11});}),{'deltaX':_0x35dae1,'deltaY':_0x18ab46,'elementData':_0x1f630a,'items':_0x9c4bf8};}let En=class extends _0x285459{constructor(_0xe7188f,_0x27c1db,_0x2728b4,_0x2b813a,_0x4f7143,_0x37256b,_0x226ffd){const _0x3c22af=_0x1b778c;super(),this[_0x3c22af(0x1da)]=_0xe7188f,this[_0x3c22af(0x399)]=_0x27c1db,this[_0x3c22af(0x1f0)]=_0x2728b4,this[_0x3c22af(0x246)]=_0x2b813a,this[_0x3c22af(0x2c1)]=_0x4f7143,this[_0x3c22af(0xbb)]=_0x37256b,this[_0x3c22af(0x20b)]=_0x226ffd,K(this,'_dragStart',null),K(this,_0x3c22af(0x1d0),null),K(this,'_dragPreviewObject',null),K(this,_0x3c22af(0x269),!0x1),K(this,_0x3c22af(0xda),null),K(this,_0x3c22af(0x1a3),null),K(this,_0x3c22af(0x209),!0x1),K(this,_0x3c22af(0x1b9),null),K(this,'_childDragSelectionHidden',!0x1),this[_0x3c22af(0x14d)]();}['_init'](){const _0x4031e5=_0x1b778c;var _0x5165df,_0x542daa,_0x56a2f6,_0x21b5a0,_0x1955ee;let _0x88dec0=this[_0x4031e5(0x1da)]['scene'][_0x4031e5(0x236)]();this[_0x4031e5(0x172)](_0x16561b(_0x88dec0[_0x4031e5(0x1ce)]['pipe'](_0x2cb42f(this[_0x4031e5(0x351)]))[_0x4031e5(0xcb)](()=>{const _0x2cebe9=_0x4031e5;this[_0x2cebe9(0x17f)]();}))),this[_0x4031e5(0x172)](_0x16561b(((_0x5165df=_0x88dec0[_0x4031e5(0x290)])==null?void 0x0:_0x5165df[_0x4031e5(0xd3)](_0x2cb42f(this[_0x4031e5(0x351)]))[_0x4031e5(0xcb)](_0x1ea2f8=>{const _0x10ef5d=_0x4031e5;this[_0x10ef5d(0xf9)](_0x1ea2f8==null?void 0x0:_0x1ea2f8['objects']);}))??{'dispose':()=>{}})),this[_0x4031e5(0x172)](_0x16561b(_0x88dec0[_0x4031e5(0x1e5)]['pipe'](_0x2cb42f(this['dispose$']))['subscribe'](_0x2d6354=>{const _0x5b68b4=_0x4031e5;setTimeout(()=>this['_applyDragTopologyAction'](_0x2d6354==null?void 0x0:_0x2d6354[_0x5b68b4(0xd2)]),0x0);}))),this[_0x4031e5(0x172)](_0x16561b(((_0x542daa=this[_0x4031e5(0x1da)]['scene'][_0x4031e5(0x1db)])==null?void 0x0:_0x542daa[_0x4031e5(0x378)]({'priority':0x3,'next':([_0xab6401])=>this[_0x4031e5(0x2fb)](_0xab6401)}))??{'dispose':()=>{}})),this[_0x4031e5(0x172)](_0x16561b(((_0x56a2f6=this[_0x4031e5(0x1da)][_0x4031e5(0x154)][_0x4031e5(0x127)])==null?void 0x0:_0x56a2f6[_0x4031e5(0x378)]({'priority':0x3,'next':([_0x47f71c,_0x3a7bf8])=>this['_syncPointerChildDragPreview'](_0x47f71c,_0x3a7bf8)}))??{'dispose':()=>{}})),this[_0x4031e5(0x172)](_0x16561b(((_0x21b5a0=this[_0x4031e5(0x1da)][_0x4031e5(0x154)][_0x4031e5(0xe8)])==null?void 0x0:_0x21b5a0['subscribeEvent']({'priority':0x3,'next':([_0x1f7a3d,_0x3ebcb6])=>this[_0x4031e5(0x141)](_0x1f7a3d,_0x3ebcb6)}))??{'dispose':()=>{}})),this[_0x4031e5(0x172)](_0x16561b(((_0x1955ee=this[_0x4031e5(0x1da)][_0x4031e5(0x154)]['onPointerCancel$'])==null?void 0x0:_0x1955ee[_0x4031e5(0x378)]({'priority':0x3,'next':([,_0x42a6be])=>this[_0x4031e5(0x122)](_0x42a6be)}))??{'dispose':()=>{}})),this[_0x4031e5(0x172)](_0x16561b(()=>{const _0x68026a=_0x4031e5;var _0x4fa979;return(_0x4fa979=this[_0x68026a(0x1a3)])==null?void 0x0:_0x4fa979[_0x68026a(0xb0)]();})),this[_0x4031e5(0x172)](_0x16561b(()=>this[_0x4031e5(0x2d8)]())),this['_subscribeElementDataChanges'](),this[_0x4031e5(0x268)](),this[_0x4031e5(0x172)](_0x16561b(()=>this[_0x4031e5(0x327)]()));}[_0x1b778c(0xcc)](){const _0x105c83=_0x1b778c;[this[_0x105c83(0x399)][_0x105c83(0x1ff)],this[_0x105c83(0x399)][_0x105c83(0x21c)],this['_boardElementService']['elementRemove$']]['forEach'](_0x52df76=>{const _0x3d8ec7=_0x105c83;this['disposeWithMe'](_0x16561b(_0x52df76[_0x3d8ec7(0xd3)](_0x2cb42f(this[_0x3d8ec7(0x351)]))[_0x3d8ec7(0xcb)](()=>{const _0x5406a1=_0x3d8ec7;this[_0x5406a1(0x268)]();})));}),this[_0x105c83(0x1f0)][_0x105c83(0x118)]&&this[_0x105c83(0x172)](_0x16561b(this[_0x105c83(0x1f0)]['state$'][_0x105c83(0xd3)](_0x2cb42f(this[_0x105c83(0x351)]))['subscribe'](()=>{this['_scheduleAttachObjectPointerListeners']();})));}[_0x1b778c(0x268)](){const _0x24055d=_0x1b778c;this[_0x24055d(0x209)]||(this[_0x24055d(0x209)]=!0x0,Promise['resolve']()[_0x24055d(0x1c2)](()=>this[_0x24055d(0x1fc)]()));}['_attachObjectPointerListeners'](){const _0x246386=_0x1b778c;var _0x5be1b9;this[_0x246386(0x209)]=!0x1;let _0xe33682=this[_0x246386(0x1d4)](),_0x1f022f=this['_renderContext'][_0x246386(0x154)];if(!_0xe33682||typeof _0x1f022f['getObject']!=_0x246386(0x242))return;let _0x533a07=this['_boardElementService']['getElementData'](_0xe33682[_0x246386(0x1d1)],_0xe33682[_0x246386(0x28e)]),_0xce580e=new _0x1bdce5();(_0x5be1b9=this[_0x246386(0x1a3)])==null||_0x5be1b9[_0x246386(0xb0)](),this[_0x246386(0x1a3)]=_0xce580e,Object[_0x246386(0x346)](_0x533a07)['forEach'](_0x56a751=>{const _0x5543b7=_0x246386;var _0x6dc7fb,_0x5c3da1;let _0xa5bea2=_0x553933(_0x56a751[_0x5543b7(0x201)]);if(!(_0xa5bea2!=null&&_0xa5bea2['parentNodeId']))return;let _0x17f5bc=_0x2a9cbd(_0xe33682['unitId'],_0x56a751[_0x5543b7(0x2fa)]),_0x5125c8=((_0x6dc7fb=_0x1f022f[_0x5543b7(0x253)])==null?void 0x0:_0x6dc7fb[_0x5543b7(0x360)](_0x1f022f,_0x17f5bc))??((_0x5c3da1=_0x1f022f[_0x5543b7(0xb8)])==null?void 0x0:_0x5c3da1[_0x5543b7(0x360)](_0x1f022f,_0x17f5bc));_0x5125c8!=null&&_0x5125c8['onPointerDown$']&&_0xce580e[_0x5543b7(0x150)](_0x5125c8[_0x5543b7(0x1db)]['subscribeEvent']({'priority':-0xa,'next':([_0x52c980,_0x2b568e])=>this['_capturePointerChildDragStart'](_0x52c980,{'unitId':_0xe33682['unitId'],'subUnitId':_0xe33682[_0x5543b7(0x28e)],'nodeId':_0x56a751[_0x5543b7(0x2fa)]},_0x2b568e)}));});}[_0x1b778c(0x1d4)](){const _0x373343=_0x1b778c;let _0x3c4cec=this['_elementStateService'][_0x373343(0x305)]()['context'];if(_0x3c4cec)return _0x3c4cec;let _0x4abbcd=this[_0x373343(0x1da)][_0x373343(0x1d1)],_0x1cf354=_0x4abbcd?this[_0x373343(0xbb)]['getUnit'](_0x4abbcd,_0x5d14ce['UNIVER_BOARD']):null,_0x4f74e3=_0x1cf354==null?void 0x0:_0x1cf354[_0x373343(0x2a3)]();return!_0x1cf354||!_0x4f74e3?null:{'unitId':_0x1cf354[_0x373343(0xbd)](),'subUnitId':_0x4f74e3};}['_captureDragStart'](){const _0x5062a5=_0x1b778c;let _0x49dab7=this[_0x5062a5(0x1f0)][_0x5062a5(0x305)]();this['_childDragActivated']=!0x1,this[_0x5062a5(0x286)]=!0x1,this[_0x5062a5(0xda)]=null;let _0x467b6f=_0x49dab7[_0x5062a5(0x310)],_0x4172c6=_0x49dab7[_0x5062a5(0x19d)]??_0x49dab7[_0x5062a5(0x3c3)][0x0];if(!_0x467b6f||!_0x4172c6){this['_dragStart']=null,this[_0x5062a5(0x327)]();return;}let _0x2654ad=this[_0x5062a5(0x399)][_0x5062a5(0x198)](_0x467b6f[_0x5062a5(0x1d1)],_0x467b6f['subUnitId']);if(_0x49dab7['selectedIds'][_0x5062a5(0xe7)]>0x1){let _0x45b6cc=this[_0x5062a5(0x2f6)](_0x2654ad,_0x49dab7['selectedIds']);if(!_0x45b6cc){this['_dragStart']=null,this[_0x5062a5(0x327)]();return;}let _0x5e3504=_0x2654ad[_0x45b6cc[_0x5062a5(0x227)]],_0x35beb0=_0xa238e7(_0x2654ad,_0x45b6cc[_0x5062a5(0x227)]),_0x2ba07f=_0x5e3504[_0x5062a5(0x201)][_0x5062a5(0x1b0)];this[_0x5062a5(0x187)]={'kind':_0x5062a5(0xdd),'unitId':_0x467b6f[_0x5062a5(0x1d1)],'subUnitId':_0x467b6f['subUnitId'],'nodeId':_0x45b6cc[_0x5062a5(0x227)],'scopeId':_0x45b6cc['scopeId'],'left':(_0x35beb0==null?void 0x0:_0x35beb0[_0x5062a5(0x344)])??_0x2ba07f[_0x5062a5(0x344)]??0x0,'top':(_0x35beb0==null?void 0x0:_0x35beb0[_0x5062a5(0x165)])??_0x2ba07f[_0x5062a5(0x165)]??0x0,'width':(_0x35beb0==null?void 0x0:_0x35beb0['width'])??_0x2ba07f[_0x5062a5(0x316)]??0x0,'height':(_0x35beb0==null?void 0x0:_0x35beb0[_0x5062a5(0xbc)])??_0x2ba07f[_0x5062a5(0xbc)]??0x0,'elementData':_0x2654ad};return;}let _0x386c5a=_0x2654ad[_0x4172c6],_0x54093a=_0x553933(_0x386c5a==null?void 0x0:_0x386c5a[_0x5062a5(0x201)]);if(!_0x386c5a||!_0x54093a){this['_dragStart']=null,this[_0x5062a5(0x327)]();return;}let _0x10401c=_0xa238e7(_0x2654ad,_0x4172c6),_0x348259=_0x386c5a[_0x5062a5(0x201)][_0x5062a5(0x1b0)];this[_0x5062a5(0x187)]={'kind':_0x54093a[_0x5062a5(0x333)]===null?'root':'child','unitId':_0x467b6f[_0x5062a5(0x1d1)],'subUnitId':_0x467b6f[_0x5062a5(0x28e)],'nodeId':_0x4172c6,'scopeId':_0x54093a['structureScopeId'],'left':(_0x10401c==null?void 0x0:_0x10401c[_0x5062a5(0x344)])??_0x348259[_0x5062a5(0x344)]??0x0,'top':(_0x10401c==null?void 0x0:_0x10401c[_0x5062a5(0x165)])??_0x348259[_0x5062a5(0x165)]??0x0,'width':(_0x10401c==null?void 0x0:_0x10401c[_0x5062a5(0x316)])??_0x348259[_0x5062a5(0x316)]??0x0,'height':(_0x10401c==null?void 0x0:_0x10401c['height'])??_0x348259[_0x5062a5(0xbc)]??0x0,'elementData':_0x2654ad};}['_resolveCompleteSelectedScope'](_0x4893fd,_0x559a9c){const _0x5c5f65=_0x1b778c;let _0x399037=new Set(_0x559a9c),_0x369d34=_0x559a9c[_0x5c5f65(0x10c)](_0x53423c=>{const _0x4fbba9=_0x5c5f65;var _0x56e19e,_0x53f41d,_0x3e0ea7,_0x135dd9;let _0x4fe58d=(_0x56e19e=_0x4893fd[_0x53423c])==null?void 0x0:_0x56e19e[_0x4fbba9(0x201)];return((_0x53f41d=_0x553933(_0x4fe58d))==null?void 0x0:_0x53f41d[_0x4fbba9(0x353)])??((_0x3e0ea7=_0x55db74(_0x4fe58d))==null?void 0x0:_0x3e0ea7[_0x4fbba9(0x353)])??((_0x135dd9=_0x4cc68d(_0x4fe58d))==null?void 0x0:_0x135dd9['structureScopeId'])??null;});if(_0x369d34[_0x5c5f65(0x1bd)](_0x36ca56=>_0x36ca56===null)||new Set(_0x369d34)['size']!==0x1)return null;let _0x3eff21=_0x369d34[0x0];if(!_0x3eff21)return null;let _0x21e25a=Object['values'](_0x4893fd)[_0x5c5f65(0x124)](_0x9cfdcc=>{const _0x1ae33e=_0x5c5f65;var _0x4f23a5;return _0x9cfdcc[_0x1ae33e(0x201)]['visible']!==!0x1&&((_0x4f23a5=_0x553933(_0x9cfdcc[_0x1ae33e(0x201)]))==null?void 0x0:_0x4f23a5[_0x1ae33e(0x353)])===_0x3eff21;});if(_0x21e25a[_0x5c5f65(0xe7)]===0x0||_0x21e25a[_0x5c5f65(0x1bd)](_0x224f4d=>!_0x399037[_0x5c5f65(0x108)](_0x224f4d[_0x5c5f65(0x2fa)])))return null;let _0x91dc5f=_0x21e25a[_0x5c5f65(0x124)](_0x30e7ac=>{const _0x1b2e2d=_0x5c5f65;var _0x1ca571;return((_0x1ca571=_0x553933(_0x30e7ac[_0x1b2e2d(0x201)]))==null?void 0x0:_0x1ca571[_0x1b2e2d(0x333)])===null;});return _0x91dc5f[_0x5c5f65(0xe7)]===0x1?{'rootNodeId':_0x91dc5f[0x0][_0x5c5f65(0x2fa)],'scopeId':_0x3eff21}:null;}[_0x1b778c(0x2fb)](_0x2a4316,_0x1c71e8,_0x3eeefc){const _0x3103c4=_0x1b778c;var _0x2140bd,_0x3c240a,_0x1a79f5,_0x3dbec8,_0x298cc1;if(this[_0x3103c4(0x2c1)][_0x3103c4(0x197)]()[_0x3103c4(0xf7)]===_0x3103c4(0x238)||(_0x2a4316['button']??0x0)!==0x0)return;let _0x530aeb=this[_0x3103c4(0x1f0)][_0x3103c4(0x305)]();if(_0x530aeb[_0x3103c4(0x2ec)]){this['_pointerDragStart']=null;return;}let _0x151343=_0x1c71e8?{'unitId':_0x1c71e8['unitId'],'subUnitId':_0x1c71e8[_0x3103c4(0x28e)]}:_0x530aeb[_0x3103c4(0x310)]??this[_0x3103c4(0x1d4)](),_0x51defe=(_0x1c71e8==null?void 0x0:_0x1c71e8['nodeId'])??(_0x530aeb[_0x3103c4(0x3c3)][_0x3103c4(0xe7)]===0x1?_0x530aeb[_0x3103c4(0x19d)]??_0x530aeb[_0x3103c4(0x3c3)][0x0]:void 0x0);if(!_0x151343){this[_0x3103c4(0x1d0)]=null;return;}let _0xea3d12=this[_0x3103c4(0x399)][_0x3103c4(0x198)](_0x151343[_0x3103c4(0x1d1)],_0x151343[_0x3103c4(0x28e)]),_0x1c1454=this[_0x3103c4(0x109)](_0x2a4316);if(!_0x1c71e8){let _0x915675=_0x51defe?_0xea3d12[_0x51defe]:null,_0x2f9c92=_0x553933(_0x915675==null?void 0x0:_0x915675['element']),_0x3c67ef=_0x51defe?_0xa238e7(_0xea3d12,_0x51defe)??(_0x915675==null?void 0x0:_0x915675['element'][_0x3103c4(0x1b0)]):null;(!(_0x2f9c92!=null&&_0x2f9c92[_0x3103c4(0x333)])||!_0x3c67ef||!this[_0x3103c4(0x102)](_0x1c1454,{'left':_0x3c67ef[_0x3103c4(0x344)]??0x0,'top':_0x3c67ef[_0x3103c4(0x165)]??0x0,'width':_0x3c67ef[_0x3103c4(0x316)]??0x0,'height':_0x3c67ef['height']??0x0}))&&(_0x51defe=this['_findChildNodeAtPoint'](_0xea3d12,_0x1c1454));}if(!_0x51defe){this['_pointerDragStart']=null;return;}let _0x1bf7ab=_0xea3d12[_0x51defe],_0x88229=_0x553933(_0x1bf7ab==null?void 0x0:_0x1bf7ab['element']);if(!_0x1bf7ab||!(_0x88229!=null&&_0x88229[_0x3103c4(0x333)])){this[_0x3103c4(0x1d0)]=null;return;}this[_0x3103c4(0xbb)][_0x3103c4(0x191)](_0x151343[_0x3103c4(0x1d1)]),(_0x2140bd=this[_0x3103c4(0x1da)][_0x3103c4(0x162)])==null||(_0x3c240a=_0x2140bd[_0x3103c4(0x1c5)])==null||(_0x3c240a=_0x3c240a[_0x3103c4(0x360)](_0x2140bd))==null||(_0x1a79f5=_0x3c240a[_0x3103c4(0x21b)])==null||_0x1a79f5[_0x3103c4(0x360)](_0x3c240a,{'preventScroll':!0x0}),(_0x3dbec8=(_0x298cc1=this[_0x3103c4(0x1f0)])[_0x3103c4(0x2e0)])==null||_0x3dbec8[_0x3103c4(0x360)](_0x298cc1,_0x151343,[_0x51defe],_0x51defe),_0x3eeefc==null||_0x3eeefc[_0x3103c4(0x2b2)]();let _0x110f74=_0xa238e7(_0xea3d12,_0x51defe),_0x24bb39=_0x1bf7ab[_0x3103c4(0x201)][_0x3103c4(0x1b0)],_0x3f496a={'left':(_0x110f74==null?void 0x0:_0x110f74['left'])??_0x24bb39['left']??0x0,'top':(_0x110f74==null?void 0x0:_0x110f74[_0x3103c4(0x165)])??_0x24bb39[_0x3103c4(0x165)]??0x0,'width':(_0x110f74==null?void 0x0:_0x110f74[_0x3103c4(0x316)])??_0x24bb39[_0x3103c4(0x316)]??0x0,'height':(_0x110f74==null?void 0x0:_0x110f74[_0x3103c4(0xbc)])??_0x24bb39[_0x3103c4(0xbc)]??0x0};if(!_0x1c71e8&&!this['_isPointInBounds'](_0x1c1454,_0x3f496a)){this[_0x3103c4(0x1d0)]=null;return;}let _0x5c77ab=this[_0x3103c4(0x2d5)](_0x2a4316);this['_childDragActivated']=!0x1,this[_0x3103c4(0x286)]=!0x1,this[_0x3103c4(0xda)]=null,this['_pointerDragStart']={'kind':_0x3103c4(0x3bd),'unitId':_0x151343[_0x3103c4(0x1d1)],'subUnitId':_0x151343[_0x3103c4(0x28e)],'nodeId':_0x51defe,'scopeId':_0x88229['structureScopeId'],..._0x3f496a,'pointerStartX':_0x5c77ab['x'],'pointerStartY':_0x5c77ab['y'],'elementData':_0xea3d12},this[_0x3103c4(0x2f9)](),this[_0x3103c4(0x1c9)](_0x2a4316,_0x3eeefc);}[_0x1b778c(0x1bc)](_0x27f239,_0x26c3e7){const _0x54c121=_0x1b778c;var _0x39b860,_0x36ecab;let _0x49a0e7=this[_0x54c121(0x1d0)];if(!_0x49a0e7||_0x27f239[_0x54c121(0x144)]!==void 0x0&&_0x27f239[_0x54c121(0x144)]!==0x1)return;let _0x563807=this[_0x54c121(0x3b1)](_0x27f239,_0x49a0e7);if(!this[_0x54c121(0xdb)](_0x49a0e7,_0x563807))return;this[_0x54c121(0x269)]||this[_0x54c121(0x1ee)](),this[_0x54c121(0x269)]=!0x0;let _0x2e09c2=this[_0x54c121(0x274)](_0x49a0e7[_0x54c121(0x22a)],_0x49a0e7[_0x54c121(0xb6)],_0x563807),_0x4362f2=Sn(_0x49a0e7['elementData'],_0x49a0e7[_0x54c121(0xb6)],{'boundsByElementId':_0x2e09c2,'detachWhenNoSnap':!0x0});this['_lastChildDragAction']=_0x4362f2,this[_0x54c121(0x283)](_0x563807,_0x4362f2,_0x2e09c2),this['_consumePointerEvent'](_0x27f239,_0x26c3e7),this[_0x54c121(0x1da)][_0x54c121(0x154)][_0x54c121(0xc1)](!0x0),(_0x39b860=(_0x36ecab=this['_renderContext'][_0x54c121(0x154)])['requestRender'])==null||_0x39b860[_0x54c121(0x360)](_0x36ecab);}[_0x1b778c(0x141)](_0x14f7e4,_0x3bf072){const _0x1dd965=_0x1b778c;let _0x32bccf=this[_0x1dd965(0x1d0)];if(!_0x32bccf)return;if(this[_0x1dd965(0x1d0)]=null,this[_0x1dd965(0x2d8)](),this[_0x1dd965(0x327)](),!this['_childDragActivated']){this[_0x1dd965(0xda)]=null;return;}let _0x32fd39=this[_0x1dd965(0x399)][_0x1dd965(0x198)](_0x32bccf[_0x1dd965(0x1d1)],_0x32bccf[_0x1dd965(0x28e)]),_0x4ca998=this[_0x1dd965(0x3b1)](_0x14f7e4,_0x32bccf),_0x5cceb1=this['_createTopologyBoundsByElementId'](_0x32fd39,_0x32bccf['nodeId'],_0x4ca998),_0x51ad7b=Sn(_0x32fd39,_0x32bccf['nodeId'],{'boundsByElementId':_0x5cceb1,'detachWhenNoSnap':!0x0});this[_0x1dd965(0xda)]=null,this[_0x1dd965(0x1ef)](_0x32bccf[_0x1dd965(0x1d1)],_0x32bccf['subUnitId'],_0x32bccf[_0x1dd965(0xb6)],_0x32fd39,_0x51ad7b),this[_0x1dd965(0x286)]=!0x1,this['_consumePointerEvent'](_0x14f7e4,_0x3bf072);}[_0x1b778c(0x122)](_0x11887c){const _0x194da3=_0x1b778c;let _0x414fbe=this['_pointerDragStart'];if(_0x414fbe){if(this[_0x194da3(0x1d0)]=null,this['_disposeActivePointerDragListeners'](),this[_0x194da3(0x269)]=!0x1,this[_0x194da3(0xda)]=null,this[_0x194da3(0x327)](),this[_0x194da3(0x286)]){var _0x22c770,_0x44695c;(_0x22c770=(_0x44695c=this[_0x194da3(0x1f0)])[_0x194da3(0x2e0)])==null||_0x22c770[_0x194da3(0x360)](_0x44695c,{'unitId':_0x414fbe[_0x194da3(0x1d1)],'subUnitId':_0x414fbe[_0x194da3(0x28e)]},[_0x414fbe['nodeId']],_0x414fbe[_0x194da3(0xb6)]),this[_0x194da3(0x286)]=!0x1;}_0x11887c==null||_0x11887c[_0x194da3(0x2b2)]();}}[_0x1b778c(0x2f9)](){const _0x17b602=_0x1b778c;this['_disposeActivePointerDragListeners']();let _0x218d9d=typeof window>'u'?null:window;if(!(_0x218d9d!=null&&_0x218d9d['addEventListener']))return;let _0x32892e=new _0x1bdce5(),_0x38ada2=_0x4e2599=>this['_syncPointerChildDragPreview'](_0x4e2599),_0x41f6d0=_0x471b88=>this['_applyPointerChildDrag'](_0x471b88),_0x549db=()=>this['_cancelPointerChildDrag']();_0x218d9d[_0x17b602(0x262)](_0x17b602(0x16e),_0x38ada2,{'capture':!0x0}),_0x218d9d['addEventListener'](_0x17b602(0x116),_0x41f6d0,{'capture':!0x0}),_0x218d9d[_0x17b602(0x262)]('pointercancel',_0x549db,{'capture':!0x0}),_0x32892e['add'](_0x16561b(()=>{const _0x307a9e=_0x17b602;_0x218d9d[_0x307a9e(0xec)](_0x307a9e(0x16e),_0x38ada2,{'capture':!0x0}),_0x218d9d['removeEventListener'](_0x307a9e(0x116),_0x41f6d0,{'capture':!0x0}),_0x218d9d[_0x307a9e(0xec)](_0x307a9e(0x2a1),_0x549db,{'capture':!0x0});})),this[_0x17b602(0x1b9)]=_0x32892e;}[_0x1b778c(0x27f)](_0x5dbe5d,_0x336485){const _0x57711d=_0x1b778c;let _0x1953ed=Object[_0x57711d(0x346)](_0x5dbe5d);for(let _0x508761=_0x1953ed['length']-0x1;_0x508761>=0x0;--_0x508761){let _0x7cf3f8=_0x1953ed[_0x508761],_0x2edde6=_0x553933(_0x7cf3f8[_0x57711d(0x201)]);if(!(_0x2edde6!=null&&_0x2edde6[_0x57711d(0x333)]))continue;let _0x5415fb=_0xa238e7(_0x5dbe5d,_0x7cf3f8[_0x57711d(0x2fa)])??_0x7cf3f8[_0x57711d(0x201)][_0x57711d(0x1b0)];if(this[_0x57711d(0x102)](_0x336485,{'left':_0x5415fb[_0x57711d(0x344)]??0x0,'top':_0x5415fb['top']??0x0,'width':_0x5415fb[_0x57711d(0x316)]??0x0,'height':_0x5415fb[_0x57711d(0xbc)]??0x0}))return _0x7cf3f8[_0x57711d(0x2fa)];}}[_0x1b778c(0x2d8)](){const _0x4e6f29=_0x1b778c;var _0x26c0c2;(_0x26c0c2=this[_0x4e6f29(0x1b9)])==null||_0x26c0c2['dispose'](),this['_activePointerDragDisposables']=null;}[_0x1b778c(0xf9)](_0x3ec5d3){const _0x1b0f9e=_0x1b778c;let _0x35bf36=this['_dragStart'];_0x35bf36&&((_0x35bf36['kind']===_0x1b0f9e(0x1d9)||_0x35bf36[_0x1b0f9e(0x376)]==='scope')&&this['_syncRootScopePreview'](_0x3ec5d3),_0x35bf36['kind']===_0x1b0f9e(0x1d9)?this['_syncRootReparentPreview'](_0x3ec5d3):this[_0x1b0f9e(0x379)](_0x3ec5d3));}[_0x1b778c(0x398)](_0x67fd91){const _0x4c7054=_0x1b778c;let _0x202f42=this[_0x4c7054(0x187)];if(!_0x202f42||_0x202f42['kind']!==_0x4c7054(0x1d9)&&_0x202f42[_0x4c7054(0x376)]!==_0x4c7054(0xdd))return;let _0x505895=_0x67fd91==null?void 0x0:_0x67fd91[_0x4c7054(0x151)](_0x2a9cbd(_0x202f42[_0x4c7054(0x1d1)],_0x202f42[_0x4c7054(0xb6)]));if(!_0x505895||!Number['isFinite'](_0x505895[_0x4c7054(0x344)])||!Number[_0x4c7054(0x1e9)](_0x505895[_0x4c7054(0x165)]))return;let _0x6b4d46=Tn({'elementData':_0x202f42['elementData'],'rootNodeId':_0x202f42[_0x4c7054(0xb6)],'scopeId':_0x202f42[_0x4c7054(0x315)],'rootStartBounds':{'left':_0x202f42[_0x4c7054(0x344)],'top':_0x202f42[_0x4c7054(0x165)]},'liveRootBounds':{'left':_0x505895[_0x4c7054(0x344)],'top':_0x505895[_0x4c7054(0x165)]}});if(!_0x6b4d46)return;let _0x2fe331=this[_0x4c7054(0x1da)]['scene'],_0x55aab4=_0x2fe331,_0x86b435=!0x1;_0x6b4d46[_0x4c7054(0x348)][_0x4c7054(0x1d5)](_0x4a587e=>{const _0x1f0c2a=_0x4c7054;var _0xf6363;let _0x2e51cb=_0x2a9cbd(_0x202f42['unitId'],_0x4a587e[_0x1f0c2a(0x2fa)]),_0x44433f=((_0xf6363=_0x55aab4['getObjectIncludeInGroup'])==null?void 0x0:_0xf6363[_0x1f0c2a(0x360)](_0x55aab4,_0x2e51cb))??_0x2fe331['getObject'](_0x2e51cb);_0x44433f&&(_0x4a587e['kind']===_0x1f0c2a(0x23a)&&typeof _0x44433f[_0x1f0c2a(0x240)]==_0x1f0c2a(0x242)?(_0x44433f[_0x1f0c2a(0x240)](_0x4a587e[_0x1f0c2a(0x201)],_0x6b4d46[_0x1f0c2a(0x22a)]),_0x86b435=!0x0):_0x4a587e[_0x1f0c2a(0x376)]===_0x1f0c2a(0x323)&&(_0x44433f[_0x1f0c2a(0x2be)](_0x4a587e['bounds']),typeof _0x44433f['makeDirtyNoDebounce']==_0x1f0c2a(0x242)?_0x44433f[_0x1f0c2a(0x2e7)](!0x0):_0x44433f[_0x1f0c2a(0xc1)](!0x0),_0x86b435=!0x0));}),_0x86b435&&_0x2fe331[_0x4c7054(0xc1)](!0x0);}['_syncRootReparentPreview'](_0x2ef71a){const _0x7f01ae=_0x1b778c;var _0x58fbe5,_0x1b8b81;let _0xab1342=this[_0x7f01ae(0x187)];if(!_0xab1342||_0xab1342[_0x7f01ae(0x376)]!==_0x7f01ae(0x1d9))return;let _0xd05bea=_0x2ef71a==null?void 0x0:_0x2ef71a[_0x7f01ae(0x151)](_0x2a9cbd(_0xab1342['unitId'],_0xab1342[_0x7f01ae(0xb6)]));if(!_0xd05bea||!Number[_0x7f01ae(0x1e9)](_0xd05bea['left'])||!Number[_0x7f01ae(0x1e9)](_0xd05bea[_0x7f01ae(0x165)])){this['_removeDragPreviewObject']();return;}let _0x22619c=this['_getLiveObjectBounds'](_0xd05bea,_0xab1342),_0x4d851f=this[_0x7f01ae(0x274)](_0xab1342['elementData'],_0xab1342[_0x7f01ae(0xb6)],_0x22619c),_0x9def08=Sn(_0xab1342['elementData'],_0xab1342['nodeId'],{'boundsByElementId':_0x4d851f,'allowRootReparent':!0x0});if(_0x9def08[_0x7f01ae(0x376)]!==_0x7f01ae(0x27b)){this['_removeDragPreviewObject']();return;}let _0x4f84ca=this['_ensureDragPreviewObject']();_0x4f84ca&&(_0x4f84ca[_0x7f01ae(0x210)]({'ghostBounds':_0x22619c,'sourceBounds':null,'parentBounds':_0x4d851f[_0x9def08['newParentNodeId']],'side':_0x9def08[_0x7f01ae(0x132)],'textStyle':void 0x0,'renderGhostNode':!0x1}),this[_0x7f01ae(0x1da)]['scene'][_0x7f01ae(0xc1)](!0x0),(_0x58fbe5=(_0x1b8b81=this['_renderContext']['scene'])[_0x7f01ae(0x352)])==null||_0x58fbe5[_0x7f01ae(0x360)](_0x1b8b81));}['_syncChildDragPreview'](_0x5733a4){const _0x1c0263=_0x1b778c;var _0x4dd9f6,_0x4fac61;let _0xd3265f=this[_0x1c0263(0x187)];if(!_0xd3265f||_0xd3265f[_0x1c0263(0x376)]!==_0x1c0263(0x3bd))return;let _0x163546=_0x5733a4==null?void 0x0:_0x5733a4[_0x1c0263(0x151)](_0x2a9cbd(_0xd3265f[_0x1c0263(0x1d1)],_0xd3265f[_0x1c0263(0xb6)]));if(!_0x163546){this['_removeDragPreviewObject']();return;}let _0x4a342e=this[_0x1c0263(0xd7)](_0x163546,_0xd3265f);if(!this['_isChildDragPastActivationThreshold'](_0xd3265f,_0x4a342e)){this[_0x1c0263(0xda)]=null,this[_0x1c0263(0x327)](),this['_restoreObjectToDragStart'](_0x163546,_0xd3265f),this['_renderContext'][_0x1c0263(0x154)][_0x1c0263(0xc1)](!0x0);return;}this['_childDragActivated']||this[_0x1c0263(0x1ee)](),this[_0x1c0263(0x269)]=!0x0;let _0x5273dc=this['_createTopologyBoundsByElementId'](_0xd3265f[_0x1c0263(0x22a)],_0xd3265f[_0x1c0263(0xb6)],_0x4a342e),_0x2e5325=Sn(_0xd3265f[_0x1c0263(0x22a)],_0xd3265f['nodeId'],{'boundsByElementId':_0x5273dc,'detachWhenNoSnap':!0x0});this['_lastChildDragAction']=_0x2e5325,this[_0x1c0263(0x283)](_0x4a342e,_0x2e5325,_0x5273dc),this[_0x1c0263(0x256)](_0x163546,_0xd3265f),this[_0x1c0263(0x1da)][_0x1c0263(0x154)]['makeDirty'](!0x0),(_0x4dd9f6=(_0x4fac61=this[_0x1c0263(0x1da)]['scene'])[_0x1c0263(0x352)])==null||_0x4dd9f6[_0x1c0263(0x360)](_0x4fac61);}['_applyDragTopologyAction'](_0x1fa52c){const _0x56fed7=_0x1b778c;var _0x5eed78;let _0x5ee858=this['_elementStateService'][_0x56fed7(0x305)](),_0x5c7b0a=_0x5ee858[_0x56fed7(0x310)],_0x123a8d=_0x5ee858[_0x56fed7(0x19d)]??_0x5ee858[_0x56fed7(0x3c3)][0x0];if(_0x5c7b0a&&((_0x5eed78=this['_dragStart'])==null?void 0x0:_0x5eed78['kind'])===_0x56fed7(0xdd)){this[_0x56fed7(0x327)](),this['_applyScopeTranslation'](_0x5c7b0a[_0x56fed7(0x1d1)],_0x5c7b0a[_0x56fed7(0x28e)],_0x1fa52c);return;}if(!_0x5c7b0a||!_0x123a8d||_0x5ee858[_0x56fed7(0x3c3)][_0x56fed7(0xe7)]!==0x1){this['_removeDragPreviewObject'](),this['_dragStart']=null;return;}this[_0x56fed7(0x327)]();let _0x276332=this[_0x56fed7(0x399)][_0x56fed7(0x198)](_0x5c7b0a['unitId'],_0x5c7b0a[_0x56fed7(0x28e)]);if(this[_0x56fed7(0x3b3)](_0x5c7b0a[_0x56fed7(0x1d1)],_0x5c7b0a[_0x56fed7(0x28e)],_0x123a8d,_0x276332,_0x1fa52c))return;let _0x3126f7=this['_resolveChildDragTopologyAction'](_0x5c7b0a['unitId'],_0x5c7b0a[_0x56fed7(0x28e)],_0x123a8d,_0x276332,_0x1fa52c);this[_0x56fed7(0x1ef)](_0x5c7b0a['unitId'],_0x5c7b0a[_0x56fed7(0x28e)],_0x123a8d,_0x276332,_0x3126f7);}[_0x1b778c(0x1e3)](_0x701e26,_0x4242c4,_0x101aef){const _0x3e176c=_0x1b778c;let _0x254ca8=this['_dragStart'];if(this['_dragStart']=null,!_0x254ca8||_0x254ca8['kind']!==_0x3e176c(0xdd)||_0x254ca8[_0x3e176c(0x1d1)]!==_0x701e26||_0x254ca8[_0x3e176c(0x28e)]!==_0x4242c4)return;let _0x546081=_0x101aef==null?void 0x0:_0x101aef[_0x3e176c(0x151)](_0x2a9cbd(_0x701e26,_0x254ca8[_0x3e176c(0xb6)])),_0x1131af=_0x546081&&Number[_0x3e176c(0x1e9)](_0x546081['left'])?_0x546081[_0x3e176c(0x344)]??_0x254ca8['left']:_0x254ca8[_0x3e176c(0x344)],_0x2a22da=_0x546081&&Number[_0x3e176c(0x1e9)](_0x546081['top'])?_0x546081['top']??_0x254ca8[_0x3e176c(0x165)]:_0x254ca8[_0x3e176c(0x165)],_0x9b3122=_0x1131af-_0x254ca8[_0x3e176c(0x344)],_0x3a43e9=_0x2a22da-_0x254ca8[_0x3e176c(0x165)];(_0x9b3122!==0x0||_0x3a43e9!==0x0)&&this[_0x3e176c(0x246)][_0x3e176c(0x35c)](_0x31ef1a['id'],{'unitId':_0x701e26,'subUnitId':_0x4242c4,'scopeId':_0x254ca8['scopeId'],'deltaX':_0x9b3122,'deltaY':_0x3a43e9});}[_0x1b778c(0x1ef)](_0x1b0dbe,_0x151764,_0x29ca48,_0x1616ee,_0x5a3380){const _0x489773=_0x1b778c;if(_0x5a3380[_0x489773(0x376)]===_0x489773(0x27b)){var _0x568eef,_0x98c3f7;let _0x46597a=_0x553933((_0x568eef=_0x1616ee[_0x29ca48])==null?void 0x0:_0x568eef[_0x489773(0x201)]),_0x5b3145=_0x553933((_0x98c3f7=_0x1616ee[_0x5a3380[_0x489773(0xd8)]])==null?void 0x0:_0x98c3f7[_0x489773(0x201)]);this[_0x489773(0x320)](_0x4a6209['id'],{'unitId':_0x1b0dbe,'subUnitId':_0x151764,'nodeId':_0x29ca48,'newParentNodeId':_0x5a3380['newParentNodeId'],'side':_0x5a3380[_0x489773(0x132)],..._0x5a3380['referenceNodeId']?{'referenceNodeId':_0x5a3380[_0x489773(0x2b7)]}:null,..._0x5a3380[_0x489773(0x18c)]?{'placement':_0x5a3380[_0x489773(0x18c)]}:null},[_0x46597a==null?void 0x0:_0x46597a[_0x489773(0x353)],_0x5b3145==null?void 0x0:_0x5b3145[_0x489773(0x353)]],_0x29ca48);}else{if(_0x5a3380['kind']===_0x489773(0x1ca)){var _0x501f6b;let _0x50f19f=_0x553933((_0x501f6b=_0x1616ee[_0x29ca48])==null?void 0x0:_0x501f6b[_0x489773(0x201)]);this['_executeAndLayout'](_0x1089a1['id'],{'unitId':_0x1b0dbe,'subUnitId':_0x151764,'nodeId':_0x29ca48,...Number[_0x489773(0x1e9)](_0x5a3380[_0x489773(0x344)])?{'left':_0x5a3380[_0x489773(0x344)]}:null,...Number[_0x489773(0x1e9)](_0x5a3380['top'])?{'top':_0x5a3380[_0x489773(0x165)]}:null},[_0x50f19f==null?void 0x0:_0x50f19f[_0x489773(0x353)]],_0x29ca48);}}}[_0x1b778c(0x3b3)](_0xde95f8,_0x26b0ea,_0x4f5ade,_0x2d4022,_0x523d23){const _0x555c4c=_0x1b778c;let _0x4aac8a=this['_dragStart'];if((_0x4aac8a==null?void 0x0:_0x4aac8a[_0x555c4c(0x376)])===_0x555c4c(0x1d9)&&(this[_0x555c4c(0x187)]=null),!_0x4aac8a||_0x4aac8a['unitId']!==_0xde95f8||_0x4aac8a[_0x555c4c(0x28e)]!==_0x26b0ea||_0x4aac8a[_0x555c4c(0xb6)]!==_0x4f5ade)return!0x1;let _0x56d285=_0x2d4022[_0x4f5ade],_0x3d19f5=_0x553933(_0x56d285==null?void 0x0:_0x56d285[_0x555c4c(0x201)]);if(!_0x56d285||!_0x3d19f5||_0x3d19f5['parentNodeId']!==null)return!0x1;let _0x23b8a5=_0x523d23==null?void 0x0:_0x523d23[_0x555c4c(0x151)](_0x2a9cbd(_0xde95f8,_0x4f5ade)),_0x4c232c=_0xa238e7(_0x2d4022,_0x4f5ade),_0x2f59b1=Number[_0x555c4c(0x1e9)](_0x23b8a5==null?void 0x0:_0x23b8a5[_0x555c4c(0x344)])?_0x23b8a5[_0x555c4c(0x344)]:(_0x4c232c==null?void 0x0:_0x4c232c[_0x555c4c(0x344)])??_0x56d285[_0x555c4c(0x201)][_0x555c4c(0x1b0)]['left']??0x0,_0x4347a0=Number[_0x555c4c(0x1e9)](_0x23b8a5==null?void 0x0:_0x23b8a5[_0x555c4c(0x165)])?_0x23b8a5[_0x555c4c(0x165)]:(_0x4c232c==null?void 0x0:_0x4c232c['top'])??_0x56d285[_0x555c4c(0x201)][_0x555c4c(0x1b0)][_0x555c4c(0x165)]??0x0,_0x481818=_0x2f59b1-_0x4aac8a[_0x555c4c(0x344)],_0x22215f=_0x4347a0-_0x4aac8a[_0x555c4c(0x165)];if(_0x481818===0x0&&_0x22215f===0x0)return!0x0;let _0x3e49c7={'left':_0x2f59b1,'top':_0x4347a0,'width':Number['isFinite'](_0x23b8a5==null?void 0x0:_0x23b8a5['width'])?_0x23b8a5[_0x555c4c(0x316)]:_0x4aac8a[_0x555c4c(0x316)],'height':Number[_0x555c4c(0x1e9)](_0x23b8a5==null?void 0x0:_0x23b8a5['height'])?_0x23b8a5[_0x555c4c(0xbc)]:_0x4aac8a[_0x555c4c(0xbc)]},_0x53372b=Sn(_0x2d4022,_0x4f5ade,{'boundsByElementId':this['_createTopologyBoundsByElementId'](_0x2d4022,_0x4f5ade,_0x3e49c7),'allowRootReparent':!0x0});if(_0x53372b[_0x555c4c(0x376)]===_0x555c4c(0x27b))return this[_0x555c4c(0x1ef)](_0xde95f8,_0x26b0ea,_0x4f5ade,_0x2d4022,_0x53372b),!0x0;let _0xe05450=!!_0x4c232c&&Math[_0x555c4c(0x1a9)](_0x4c232c[_0x555c4c(0x344)]-_0x2f59b1)<0.001&&Math[_0x555c4c(0x1a9)](_0x4c232c[_0x555c4c(0x165)]-_0x4347a0)<0.001;return this['_commandService']['executeCommand'](_0x31ef1a['id'],{'unitId':_0xde95f8,'subUnitId':_0x26b0ea,'scopeId':_0x4aac8a[_0x555c4c(0x315)],'deltaX':_0x481818,'deltaY':_0x22215f,..._0xe05450?{'excludeElementIds':[_0x4f5ade],'preserveExcludedWorldTransforms':!0x0}:null}),!0x0;}[_0x1b778c(0x11b)](_0x2fa7e1,_0x566177,_0x236d6b,_0x1de525,_0x1db6ba){const _0x21a1c2=_0x1b778c;let _0x1765b5=this[_0x21a1c2(0x187)];if(!_0x1765b5||_0x1765b5[_0x21a1c2(0x376)]!==_0x21a1c2(0x3bd)||_0x1765b5['unitId']!==_0x2fa7e1||_0x1765b5[_0x21a1c2(0x28e)]!==_0x566177||_0x1765b5['nodeId']!==_0x236d6b)return{'kind':_0x21a1c2(0x223)};this[_0x21a1c2(0x187)]=null;let _0x5a24d7=_0x1db6ba==null?void 0x0:_0x1db6ba[_0x21a1c2(0x151)](_0x2a9cbd(_0x2fa7e1,_0x236d6b));if(!this[_0x21a1c2(0x269)])return _0x5a24d7&&this[_0x21a1c2(0x256)](_0x5a24d7,_0x1765b5),this[_0x21a1c2(0xda)]=null,{'kind':'none'};if(!_0x5a24d7){let _0x19675f=this[_0x21a1c2(0xda)]??{'kind':_0x21a1c2(0x223)};return this[_0x21a1c2(0xda)]=null,_0x19675f;}let _0x62bd86=this['_getLiveObjectBounds'](_0x5a24d7,_0x1765b5);if(this['_restoreObjectToDragStart'](_0x5a24d7,_0x1765b5),!this[_0x21a1c2(0xdb)](_0x1765b5,_0x62bd86))return this[_0x21a1c2(0xda)]=null,{'kind':_0x21a1c2(0x223)};let _0x28f984=Sn(_0x1de525,_0x236d6b,{'boundsByElementId':this[_0x21a1c2(0x274)](_0x1de525,_0x236d6b,_0x62bd86),'detachWhenNoSnap':!0x0});return this['_lastChildDragAction']=null,_0x28f984;}[_0x1b778c(0xdb)](_0x17c33e,_0x572582){const _0x451359=_0x1b778c;let _0xe7d498=(_0x572582[_0x451359(0x344)]??_0x17c33e[_0x451359(0x344)])-_0x17c33e[_0x451359(0x344)],_0xd46a8e=(_0x572582[_0x451359(0x165)]??_0x17c33e[_0x451359(0x165)])-_0x17c33e[_0x451359(0x165)];return Math[_0x451359(0x2b4)](_0xe7d498,_0xd46a8e)>=0x12;}[_0x1b778c(0x3b1)](_0x414415,_0x7f805b){const _0x373802=_0x1b778c;let _0x588b8e=this[_0x373802(0x2d5)](_0x414415),_0x5d64fe=this[_0x373802(0x259)]();return{'left':_0x7f805b[_0x373802(0x344)]+(_0x588b8e['x']-_0x7f805b[_0x373802(0x2af)])/_0x5d64fe,'top':_0x7f805b['top']+(_0x588b8e['y']-_0x7f805b[_0x373802(0x146)])/_0x5d64fe,'width':_0x7f805b[_0x373802(0x316)],'height':_0x7f805b['height']};}[_0x1b778c(0x109)](_0xc4fdfe){const _0x2b6edb=_0x1b778c;let _0x43d12d=this[_0x2b6edb(0x2c1)]['getState'](),_0x2135fe=(_0x43d12d==null?void 0x0:_0x43d12d['viewportPanOffset'])??{'x':0x0,'y':0x0},_0x4e7d50=this[_0x2b6edb(0x259)]();return{'x':Math[_0x2b6edb(0x1b4)](((_0xc4fdfe['offsetX']??0x0)-_0x2135fe['x'])/_0x4e7d50),'y':Math[_0x2b6edb(0x1b4)](((_0xc4fdfe['offsetY']??0x0)-_0x2135fe['y'])/_0x4e7d50)};}[_0x1b778c(0x2d5)](_0x40e109){const _0x527cd0=_0x1b778c;return{'x':Number[_0x527cd0(0x1e9)](_0x40e109['clientX'])?_0x40e109[_0x527cd0(0x1b2)]:_0x40e109['offsetX']??0x0,'y':Number[_0x527cd0(0x1e9)](_0x40e109[_0x527cd0(0x126)])?_0x40e109[_0x527cd0(0x126)]:_0x40e109[_0x527cd0(0xc9)]??0x0};}[_0x1b778c(0x259)](){const _0x54f3fc=_0x1b778c;let _0x5ba052=this[_0x54f3fc(0x2c1)][_0x54f3fc(0x197)]()[_0x54f3fc(0x387)];return Number[_0x54f3fc(0x1e9)](_0x5ba052)&&(_0x5ba052??0x0)>0x0?_0x5ba052:0x1;}[_0x1b778c(0x102)](_0x26c554,_0x344593){const _0x3ae5aa=_0x1b778c;return _0x26c554['x']>=_0x344593[_0x3ae5aa(0x344)]&&_0x26c554['x']<=_0x344593[_0x3ae5aa(0x344)]+_0x344593[_0x3ae5aa(0x316)]&&_0x26c554['y']>=_0x344593[_0x3ae5aa(0x165)]&&_0x26c554['y']<=_0x344593['top']+_0x344593['height'];}[_0x1b778c(0x1c9)](_0x51d77e,_0x3b0eac){const _0x584fac=_0x1b778c;var _0x4a8322,_0x4b2624;_0x3b0eac==null||_0x3b0eac[_0x584fac(0x2b2)](),_0x3b0eac&&(_0x3b0eac[_0x584fac(0x1ac)]=!0x0),(_0x4a8322=_0x51d77e[_0x584fac(0x117)])==null||_0x4a8322[_0x584fac(0x360)](_0x51d77e),(_0x4b2624=_0x51d77e[_0x584fac(0x2b2)])==null||_0x4b2624[_0x584fac(0x360)](_0x51d77e);}[_0x1b778c(0x1ee)](){const _0x1a61fe=_0x1b778c;var _0x363103,_0x323ec2;this['_childDragSelectionHidden']||=((_0x363103=(_0x323ec2=this['_elementStateService'])['clearSelection'])==null||_0x363103[_0x1a61fe(0x360)](_0x323ec2),!0x0);}[_0x1b778c(0xd7)](_0x5444f5,_0x20ddba){const _0x1035e4=_0x1b778c;return{'left':Number[_0x1035e4(0x1e9)](_0x5444f5[_0x1035e4(0x344)])?_0x5444f5['left']:_0x20ddba[_0x1035e4(0x344)],'top':Number[_0x1035e4(0x1e9)](_0x5444f5[_0x1035e4(0x165)])?_0x5444f5[_0x1035e4(0x165)]:_0x20ddba['top'],'width':Number[_0x1035e4(0x1e9)](_0x5444f5[_0x1035e4(0x316)])?_0x5444f5[_0x1035e4(0x316)]:_0x20ddba[_0x1035e4(0x316)],'height':Number[_0x1035e4(0x1e9)](_0x5444f5['height'])?_0x5444f5[_0x1035e4(0xbc)]:_0x20ddba[_0x1035e4(0xbc)]};}['_restoreObjectToDragStart'](_0x40ae44,_0x21a718){const _0x5a8775=_0x1b778c;typeof _0x40ae44['transformByState']==_0x5a8775(0x242)&&_0x40ae44['transformByState']({'left':_0x21a718[_0x5a8775(0x344)],'top':_0x21a718[_0x5a8775(0x165)],'width':_0x21a718[_0x5a8775(0x316)],'height':_0x21a718[_0x5a8775(0xbc)]}),typeof _0x40ae44[_0x5a8775(0x2e7)]==_0x5a8775(0x242)?_0x40ae44[_0x5a8775(0x2e7)](!0x0):typeof _0x40ae44[_0x5a8775(0xc1)]==_0x5a8775(0x242)&&_0x40ae44[_0x5a8775(0xc1)](!0x0);}[_0x1b778c(0x274)](_0x5683fe,_0x5532bd,_0x3b360f){const _0x3cde4a=_0x1b778c;return Object['fromEntries'](Object['keys'](_0x5683fe)[_0x3cde4a(0x10c)](_0x299105=>_0x299105===_0x5532bd?[_0x299105,_0x3b360f]:[_0x299105,_0xa238e7(_0x5683fe,_0x299105)??_0x5683fe[_0x299105]['element'][_0x3cde4a(0x1b0)]]));}[_0x1b778c(0x220)](){const _0x42db5f=_0x1b778c;if(this['_dragPreviewObject'])return this['_dragPreviewObject'];let _0xffa3cd=this[_0x42db5f(0x1da)][_0x42db5f(0x154)];return typeof _0xffa3cd['addObject']==_0x42db5f(0x242)?(this[_0x42db5f(0x213)]=new mn(cn),_0xffa3cd[_0x42db5f(0x3bc)](this[_0x42db5f(0x213)],ln),this[_0x42db5f(0x213)]):null;}[_0x1b778c(0x283)](_0x532287,_0x52c15f,_0x1f0755){const _0x3be43d=_0x1b778c;let _0x54ddb2=this[_0x3be43d(0x220)]();_0x54ddb2&&_0x54ddb2[_0x3be43d(0x210)]({'ghostBounds':_0x532287,'sourceBounds':this[_0x3be43d(0x1a4)](),'parentBounds':_0x52c15f['kind']===_0x3be43d(0x27b)?_0x1f0755[_0x52c15f[_0x3be43d(0xd8)]]:null,'side':_0x52c15f['kind']===_0x3be43d(0x27b)?_0x52c15f[_0x3be43d(0x132)]:'right','textStyle':this[_0x3be43d(0xdc)](),'renderGhostNode':!0x0});}[_0x1b778c(0x1a4)](){const _0x2ce72b=_0x1b778c;let _0x5e32e7=this[_0x2ce72b(0x1d0)]??this['_dragStart'];return _0x5e32e7?{'left':_0x5e32e7[_0x2ce72b(0x344)],'top':_0x5e32e7['top'],'width':_0x5e32e7[_0x2ce72b(0x316)],'height':_0x5e32e7[_0x2ce72b(0xbc)]}:null;}[_0x1b778c(0xdc)](){const _0x49bc62=_0x1b778c;var _0x184a6b,_0x178887;let _0x499579=this[_0x49bc62(0x1d0)]??this[_0x49bc62(0x187)],_0x2036da=_0x499579==null||(_0x184a6b=_0x499579[_0x49bc62(0x22a)][_0x499579[_0x49bc62(0xb6)]])==null?void 0x0:_0x184a6b[_0x49bc62(0x201)],_0x56d971=_0x2036da==null||(_0x178887=_0x2036da[_0x49bc62(0x234)])==null?void 0x0:_0x178887[_0x49bc62(0x226)];if(_0x56d971)return{'text':typeof _0x56d971[_0x49bc62(0x3cb)]==_0x49bc62(0xc0)?_0x56d971['text']:void 0x0,'fontSize':Number[_0x49bc62(0x1e9)](_0x56d971['fontSize'])?_0x56d971[_0x49bc62(0x2cf)]:void 0x0,'color':typeof _0x56d971['color']==_0x49bc62(0xc0)?_0x56d971[_0x49bc62(0x22f)]:void 0x0,'horizontalAlign':Number['isFinite'](_0x56d971[_0x49bc62(0x35d)])?_0x56d971[_0x49bc62(0x35d)]:void 0x0};}[_0x1b778c(0x327)](){const _0x1c3bdc=_0x1b778c;var _0x2b3e23,_0x18748b,_0x306413;if(!this[_0x1c3bdc(0x213)])return;let _0x36e70d=this[_0x1c3bdc(0x1da)][_0x1c3bdc(0x154)];(_0x2b3e23=_0x36e70d[_0x1c3bdc(0x33a)])==null||_0x2b3e23[_0x1c3bdc(0x360)](_0x36e70d,[this[_0x1c3bdc(0x213)]]),this[_0x1c3bdc(0x213)]=null,(_0x18748b=(_0x306413=this['_renderContext'][_0x1c3bdc(0x154)])[_0x1c3bdc(0xc1)])==null||_0x18748b['call'](_0x306413,!0x0);}[_0x1b778c(0x320)](_0x49fd5b,_0x459e1f,_0x349ee5,_0xdec329){const _0x24dcbb=_0x1b778c;let _0x5e2f3f=[...new Set(_0x349ee5[_0x24dcbb(0x124)](_0x37f2b7=>!!_0x37f2b7))],_0x21b21c=typeof _0x459e1f[_0x24dcbb(0x1d1)]==_0x24dcbb(0xc0)?_0x459e1f[_0x24dcbb(0x1d1)]:this[_0x24dcbb(0x1da)][_0x24dcbb(0x1d1)],_0x5e8286=this['_undoRedoGroupService']['createRunner'](_0x21b21c),_0x45250c=_0x5e8286(()=>this[_0x24dcbb(0x246)][_0x24dcbb(0x35c)](_0x49fd5b,_0x459e1f));Promise[_0x24dcbb(0x36e)](_0x45250c)[_0x24dcbb(0x1c2)](_0x2f7bf7=>{const _0x580edf=_0x24dcbb;var _0x4428ae,_0x5b87bb,_0x1a1df9,_0x47cb16;if(_0x2f7bf7){if(_0x5e2f3f['forEach'](_0xf458b2=>{const _0x2720fc=_0x5157;_0x5e8286(()=>this[_0x2720fc(0x246)]['executeCommand'](_0x4b8919['id'],{'unitId':_0x459e1f[_0x2720fc(0x1d1)],'subUnitId':_0x459e1f[_0x2720fc(0x28e)],'scopeId':_0xf458b2}));}),_0xdec329&&typeof _0x459e1f[_0x580edf(0x1d1)]==_0x580edf(0xc0)&&typeof _0x459e1f['subUnitId']==_0x580edf(0xc0)){var _0x58b52f,_0x2203a4;(_0x58b52f=(_0x2203a4=this[_0x580edf(0x1f0)])[_0x580edf(0x2e0)])==null||_0x58b52f[_0x580edf(0x360)](_0x2203a4,{'unitId':_0x459e1f[_0x580edf(0x1d1)],'subUnitId':_0x459e1f['subUnitId']},[_0xdec329],_0xdec329);}(_0x4428ae=(_0x5b87bb=this[_0x580edf(0x1da)][_0x580edf(0x154)])['makeDirty'])==null||_0x4428ae[_0x580edf(0x360)](_0x5b87bb,!0x0),(_0x1a1df9=(_0x47cb16=this['_renderContext'][_0x580edf(0x154)])[_0x580edf(0x352)])==null||_0x1a1df9[_0x580edf(0x360)](_0x47cb16);}});}};En=J([q(0x1,_0x407fc1(_0x3c52ab)),q(0x2,_0x407fc1(_0x3a3db4)),q(0x3,_0x36a817),q(0x4,_0x2b4c4c),q(0x5,_0x4d4728),q(0x6,_0x407fc1(_0x2153c6))],En);let Dn=class extends _0x5b4143{constructor(_0x3c98ab,_0x5cbd5a,_0x5223ce,_0xfcb9c8,_0x3394c3,_0x21d62c,_0x1692cd,_0x560c0f,_0x20dd93){const _0x4c2a2c=_0x1b778c;super(),this[_0x4c2a2c(0xf6)]=_0x3c98ab,this[_0x4c2a2c(0x183)]=_0x5cbd5a,this['elementService']=_0x5223ce,this['elementStateService']=_0xfcb9c8,this[_0x4c2a2c(0x1c1)]=_0x3394c3,this[_0x4c2a2c(0xfb)]=_0x21d62c,this[_0x4c2a2c(0x3b4)]=_0x1692cd,this[_0x4c2a2c(0x3a0)]=_0x560c0f,this['textEditingService']=_0x20dd93;}};Dn=J([q(0x1,_0x36a817),q(0x2,_0x3c52ab),q(0x3,_0x3a3db4),q(0x4,_0x2b4c4c),q(0x5,_0x197f49),q(0x6,_0x353fbc),q(0x7,_0x407fc1(_0x4f0dfe)),q(0x8,_0x407fc1(_0x53de0e))],Dn);const On=_0x1b778c(0x288),kn=_0x1b778c(0xfc);function An(_0x38b1a8){const _0x5574b9=_0x1b778c;let {unitId:_0x21e2c,subUnitId:_0x4e60b3,nodeId:_0x4033e1,initialDescription:_0x2f2bb7=''}=_0x38b1a8,_0xf5206e=_0x986de7(_0x36a817),_0x53337c=_0x986de7(_0x353fbc),_0x50b493=_0x986de7(_0x4f0dfe),[_0x1b7a2f,_0x3504e3]=_0x2c9c6f(_0x2f2bb7),_0x378647=()=>_0x53337c[_0x5574b9(0x31a)](kn);return _0x54bda6(_0x5574b9(0x24d),{'className':_0x5574b9(0x1b3),'data-board-mind-map-description-dialog':_0x5574b9(0x1d3),'children':[_0x54bda6('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-2','children':[_0x10416f('span',{'className':_0x5574b9(0x37e),'children':_0x50b493['t']('boards-mind-ui.description')}),_0x10416f(_0x2701f8,{'autoFocus':!0x0,'className':_0x5574b9(0x367),'placeholder':_0x50b493['t'](_0x5574b9(0x2a9)),'value':_0x1b7a2f,'onValueChange':_0x3504e3})]}),_0x54bda6(_0x5574b9(0x24d),{'className':_0x5574b9(0x110),'children':[_0x10416f(_0xe955b5,{'size':_0x5574b9(0x31d),'variant':_0x5574b9(0x33b),'onClick':_0x378647,'children':_0x50b493['t'](_0x5574b9(0x392))}),_0x10416f(_0xe955b5,{'size':'small','variant':_0x5574b9(0x335),'onClick':()=>{const _0x2dfe06=_0x5574b9;_0xf5206e[_0x2dfe06(0x35c)](_0x2f778f['id'],{'unitId':_0x21e2c,'subUnitId':_0x4e60b3,'nodeId':_0x4033e1,'foreignAttributes':{'_note':_0x1b7a2f[_0x2dfe06(0x2ad)]()?_0x1b7a2f:null}}),_0x378647();},'children':_0x50b493['t']('boards-mind-ui.saveDescription')})]})]});}const jn=_0x1b778c(0x35f),Mn=_0x1b778c(0x385),Nn=_0x1b778c(0x249),Pn={'copy':_0x435552['copy'],'paste':_0x435552['paste'],'paste-as-new':_0x435552[_0x1b778c(0x1f4)],'add-child':_0x435552[_0x1b778c(0x16b)],'add-sibling-or-child':_0x435552[_0x1b778c(0x219)],'promote':_0x435552[_0x1b778c(0x2c4)],'toggle-collapse':_0x435552[_0x1b778c(0x2de)],'collapse-all':_0x435552[_0x1b778c(0x169)],'edit-text':_0x435552[_0x1b778c(0x2a5)],'open-description':_0x435552[_0x1b778c(0x2a7)],'delete':_0x406ab2[_0x1b778c(0x393)],'arrow-left':_0x406ab2['ARROW_LEFT'],'arrow-right':_0x406ab2['ARROW_RIGHT'],'arrow-up':_0x406ab2[_0x1b778c(0x2f8)],'arrow-down':_0x406ab2['ARROW_DOWN']},Fn={'delete':[_0x406ab2[_0x1b778c(0x2d6)]]};function In(_0x435f39){return[Pn[_0x435f39],...Fn[_0x435f39]??[]];}let Ln=class extends _0x285459{constructor(_0x33e0f7,_0xe1b130,_0x5458c9,_0x3574a1){const _0x16e838=_0x1b778c;super(),this['_mindMapClipboardService']=_0x33e0f7,this['_commandService']=_0xe1b130,this[_0x16e838(0x2e5)]=_0x5458c9,this[_0x16e838(0x20b)]=_0x3574a1,this['_init']();}[_0x1b778c(0x14d)](){const _0x5338d7=_0x1b778c;this[_0x5338d7(0x172)](this['_commandService'][_0x5338d7(0x28c)](this['_createKeyboardShortcutOperation']())),this[_0x5338d7(0x233)]()['forEach'](_0x2c6ff1=>{const _0x311b19=_0x5338d7;this[_0x311b19(0x172)](this[_0x311b19(0x2e5)]['registerShortcut'](_0x2c6ff1));});}[_0x1b778c(0x2b9)](){const _0x1cb3c5=_0x1b778c;return{'id':jn,'type':_0x2cc8ab[_0x1cb3c5(0x13f)],'handler':(_0x23a5b6,_0x20a74a,_0x1f221)=>{const _0x3d2d2b=_0x1cb3c5;let _0x148af6=Rn(_0x23a5b6,_0x1f221);return _0x148af6?this[_0x3d2d2b(0x235)](_0x148af6,_0x20a74a==null?void 0x0:_0x20a74a[_0x3d2d2b(0x16d)]):!0x1;}};}[_0x1b778c(0x233)](){const _0x57549a=_0x1b778c;let _0x3ecbd5=(_0x2f854e,_0x57a928)=>({'id':jn,'binding':_0x2f854e,'priority':0xa0,'preconditions':_0x96277b=>_0x5a3f39(_0x96277b)&&!!_0x96277b[_0x57549a(0x38f)](_0x57549a(0x385)),'staticParameters':{'action':_0x57a928}}),_0x356de8=_0x536edd=>In(_0x536edd)[_0x57549a(0x10c)](_0x563537=>_0x3ecbd5(_0x563537,_0x536edd));return[..._0x356de8(_0x57549a(0x149)),{'id':jn,'binding':Pn[_0x57549a(0x1f4)],'priority':0xa0,'preconditions':_0xea204d=>_0x5a3f39(_0xea204d)&&!!this['_mindMapClipboardService']['getPayload']()&&!!_0xea204d[_0x57549a(0x38f)](_0x57549a(0x385)),'staticParameters':{'action':_0x57549a(0x1f4)}},{'id':jn,'binding':Pn['paste-as-new'],'priority':0x96,'preconditions':_0x811d33=>_0x5a3f39(_0x811d33)&&!!this[_0x57549a(0x1d8)][_0x57549a(0x175)]()&&!!_0x811d33[_0x57549a(0x38f)](_0x57549a(0x249)),'staticParameters':{'action':_0x57549a(0x181)}},..._0x356de8(_0x57549a(0x272)),..._0x356de8(_0x57549a(0x170)),..._0x356de8(_0x57549a(0x142)),..._0x356de8(_0x57549a(0x34c)),..._0x356de8(_0x57549a(0x136)),..._0x356de8(_0x57549a(0x192)),..._0x356de8('open-description'),..._0x356de8('delete'),..._0x356de8(_0x57549a(0x245)),..._0x356de8('arrow-right'),..._0x356de8(_0x57549a(0x19a)),..._0x356de8(_0x57549a(0x129))];}[_0x1b778c(0x235)](_0x646263,_0x124de0){const _0x3cf93d=_0x1b778c;return _0x646263[_0x3cf93d(0x1c1)][_0x3cf93d(0x197)]()[_0x3cf93d(0xf7)]===_0x3cf93d(0x238)&&_0x124de0!==_0x3cf93d(0x149)?!0x1:_0x124de0===_0x3cf93d(0x149)?this['_copySelectedNode'](_0x646263):_0x124de0===_0x3cf93d(0x1f4)?this[_0x3cf93d(0x1e2)](_0x646263):_0x124de0===_0x3cf93d(0x181)?this[_0x3cf93d(0x30b)](_0x646263):_0x124de0==='add-child'?this[_0x3cf93d(0xc6)](_0x646263):_0x124de0==='add-sibling-or-child'?this[_0x3cf93d(0x21e)](_0x646263):_0x124de0===_0x3cf93d(0x142)?this[_0x3cf93d(0x27c)](_0x646263,_0x423b53['id']):_0x124de0===_0x3cf93d(0x34c)?this[_0x3cf93d(0x27c)](_0x646263,_0x42ee80['id']):_0x124de0===_0x3cf93d(0x136)?this[_0x3cf93d(0x1ad)](_0x646263):_0x124de0===_0x3cf93d(0x192)?this['_openSelectedTextEditing'](_0x646263):_0x124de0===_0x3cf93d(0x30f)?this[_0x3cf93d(0x14b)](_0x646263):_0x124de0===_0x3cf93d(0x302)?this['_deleteSelectedNode'](_0x646263):_0x124de0&&zn(_0x124de0)?this[_0x3cf93d(0x24c)](_0x646263,_0x124de0):!0x1;}[_0x1b778c(0x2ef)](_0x45e785){const _0x3f7a83=_0x1b778c;let _0x396e80=this[_0x3f7a83(0x39f)](_0x45e785);return _0x396e80?(_0x45e785[_0x3f7a83(0x183)]['executeCommand'](_0x382101['id'],{'unitId':_0x396e80[_0x3f7a83(0x1d1)],'subUnitId':_0x396e80[_0x3f7a83(0x28e)],'nodeId':_0x396e80[_0x3f7a83(0xb6)]}),!0x0):!0x1;}[_0x1b778c(0x1e2)](_0x79be34){const _0x4a11ef=_0x1b778c;let _0x2d71cc=this[_0x4a11ef(0x39f)](_0x79be34);return!_0x2d71cc||!_0x79be34[_0x4a11ef(0xfb)][_0x4a11ef(0x175)]()?!0x1:(this[_0x4a11ef(0x320)](_0x79be34,_0x3f2b8f['id'],{'unitId':_0x2d71cc[_0x4a11ef(0x1d1)],'subUnitId':_0x2d71cc[_0x4a11ef(0x28e)],'targetNodeId':_0x2d71cc[_0x4a11ef(0xb6)]},_0x2d71cc['scopeId']),!0x0);}[_0x1b778c(0x30b)](_0x47c845){const _0x5389fb=_0x1b778c;let _0x214818=this[_0x5389fb(0x2d2)](_0x47c845);if(!_0x214818||!_0x47c845[_0x5389fb(0xfb)][_0x5389fb(0x175)]())return!0x1;let _0xca95c=_0x47c845[_0x5389fb(0x1c1)]['getState'](),_0x443956=Number[_0x5389fb(0x1e9)](_0xca95c['zoomRatio'])&&_0xca95c[_0x5389fb(0x387)]>0x0?_0xca95c[_0x5389fb(0x387)]:0x1,_0x28ce15=Math[_0x5389fb(0x1b4)]((0x40-_0xca95c['viewportPanOffset']['x'])/_0x443956),_0x3a8dc3=Math[_0x5389fb(0x1b4)]((0x40-_0xca95c['viewportPanOffset']['y'])/_0x443956);return _0x47c845[_0x5389fb(0x183)][_0x5389fb(0x35c)](_0x404976['id'],{'unitId':_0x214818[_0x5389fb(0x1d1)],'subUnitId':_0x214818[_0x5389fb(0x28e)],'left':_0x28ce15,'top':_0x3a8dc3}),!0x0;}[_0x1b778c(0xc6)](_0x2d52fe){const _0xf9f54c=_0x1b778c;let _0x1865e5=this[_0xf9f54c(0x39f)](_0x2d52fe);if(!_0x1865e5)return!0x1;let _0xbe8591=_0x2075ab(0x6);return this[_0xf9f54c(0x22c)](_0x2d52fe,_0xb4c09f['id'],{'unitId':_0x1865e5[_0xf9f54c(0x1d1)],'subUnitId':_0x1865e5[_0xf9f54c(0x28e)],'parentNodeId':_0x1865e5[_0xf9f54c(0xb6)],'nodeId':_0xbe8591,'connectorId':_0x2075ab(0x6),'text':_0x2d52fe[_0xf9f54c(0x3a0)]['t']('boards-mind-ui.panel.addText')},_0x1865e5[_0xf9f54c(0x315)],_0xbe8591),!0x0;}[_0x1b778c(0x21e)](_0x31ad2b){const _0x3e0fd9=_0x1b778c;let _0xb27ccc=this[_0x3e0fd9(0x39f)](_0x31ad2b);if(!_0xb27ccc)return!0x1;let _0x36dc3d=_0x2075ab(0x6);return this[_0x3e0fd9(0x22c)](_0x31ad2b,_0xb27ccc[_0x3e0fd9(0x204)]?_0xb4c09f['id']:_0x34ed4d['id'],{'unitId':_0xb27ccc[_0x3e0fd9(0x1d1)],'subUnitId':_0xb27ccc[_0x3e0fd9(0x28e)],..._0xb27ccc[_0x3e0fd9(0x204)]?{'parentNodeId':_0xb27ccc[_0x3e0fd9(0xb6)],'nodeId':_0x36dc3d}:{'nodeId':_0xb27ccc[_0x3e0fd9(0xb6)],'siblingNodeId':_0x36dc3d},'connectorId':_0x2075ab(0x6),'text':_0x31ad2b['localeService']['t'](_0x3e0fd9(0x29e))},_0xb27ccc['scopeId'],_0x36dc3d),!0x0;}[_0x1b778c(0x27c)](_0x1e578a,_0x3d6b66){const _0x165d99=_0x1b778c;let _0x4146f8=this['_getSelectedMindMapContext'](_0x1e578a);return _0x4146f8?(this[_0x165d99(0x320)](_0x1e578a,_0x3d6b66,{'unitId':_0x4146f8[_0x165d99(0x1d1)],'subUnitId':_0x4146f8['subUnitId'],'nodeId':_0x4146f8[_0x165d99(0xb6)]},_0x4146f8[_0x165d99(0x315)]),!0x0):!0x1;}['_deleteSelectedNode'](_0x3c4eef){const _0xe64b26=_0x1b778c;let _0x2db1ee=this[_0xe64b26(0x39f)](_0x3c4eef);if(!_0x2db1ee)return!0x1;let _0xd5a669=_0x3c4eef['commandService'][_0xe64b26(0x251)](_0x4cf65a['id'],{'unitId':_0x2db1ee[_0xe64b26(0x1d1)],'subUnitId':_0x2db1ee['subUnitId'],'nodeId':_0x2db1ee[_0xe64b26(0xb6)]});return _0xd5a669&&_0x3c4eef[_0xe64b26(0x2da)][_0xe64b26(0x135)](),_0xd5a669;}['_collapseAll'](_0x44c5d3){const _0x571534=_0x1b778c;let _0x4e3a0c=this[_0x571534(0x39f)](_0x44c5d3);if(!_0x4e3a0c)return!0x1;let _0x819fdf=_0x44c5d3[_0x571534(0x23e)][_0x571534(0x198)](_0x4e3a0c[_0x571534(0x1d1)],_0x4e3a0c['subUnitId']),_0xdcfcb=Object[_0x571534(0x346)](_0x819fdf)[_0x571534(0x10c)](_0x22c702=>{const _0x56eb3=_0x571534;let _0x277480=_0x553933(_0x22c702[_0x56eb3(0x201)]);return(_0x277480==null?void 0x0:_0x277480[_0x56eb3(0x353)])===_0x4e3a0c[_0x56eb3(0x315)]&&this[_0x56eb3(0x121)](_0x819fdf,_0x4e3a0c[_0x56eb3(0x315)],_0x22c702[_0x56eb3(0x2fa)])[_0x56eb3(0xe7)]>0x0?{'nodeId':_0x22c702[_0x56eb3(0x2fa)],'collapsed':_0x277480[_0x56eb3(0x36f)]}:null;})[_0x571534(0x124)](_0x554e93=>!!_0x554e93);if(_0xdcfcb[_0x571534(0xe7)]===0x0)return!0x1;let _0x5e0a39=_0xdcfcb[_0x571534(0x1bd)](_0x47377a=>!_0x47377a[_0x571534(0x36f)]),_0x26c9ab=_0x44c5d3[_0x571534(0x183)],_0x244f91=this[_0x571534(0x20b)][_0x571534(0x10a)](_0x4e3a0c[_0x571534(0x1d1)]),_0x52de26=_0xdcfcb['map'](_0xef1c10=>_0x244f91(()=>_0x26c9ab[_0x571534(0x35c)](_0x42ee80['id'],{'unitId':_0x4e3a0c['unitId'],'subUnitId':_0x4e3a0c[_0x571534(0x28e)],'nodeId':_0xef1c10[_0x571534(0xb6)],'collapsed':_0x5e0a39})));return Promise[_0x571534(0x134)](_0x52de26[_0x571534(0x10c)](_0x5c7ac5=>Promise[_0x571534(0x36e)](_0x5c7ac5)))[_0x571534(0x1c2)](_0x2e246c=>{const _0x422575=_0x571534;_0x2e246c[_0x422575(0x1bd)](Boolean)&&_0x244f91(()=>_0x26c9ab[_0x422575(0x35c)](_0x4b8919['id'],{'unitId':_0x4e3a0c[_0x422575(0x1d1)],'subUnitId':_0x4e3a0c[_0x422575(0x28e)],'scopeId':_0x4e3a0c[_0x422575(0x315)]}));}),!0x0;}[_0x1b778c(0x329)](_0x4c9340){const _0x2cc05d=_0x1b778c;let _0x2366b9=this['_getSelectedMindMapContext'](_0x4c9340);if(!_0x2366b9)return!0x1;_0x4c9340[_0x2cc05d(0x2da)]['selectElements']({'unitId':_0x2366b9[_0x2cc05d(0x1d1)],'subUnitId':_0x2366b9[_0x2cc05d(0x28e)]},[_0x2366b9[_0x2cc05d(0xb6)]],_0x2366b9[_0x2cc05d(0xb6)]);let _0x20394b=_0x4c9340['textEditingService'];return _0x20394b[_0x2cc05d(0xe2)](),_0x20394b[_0x2cc05d(0xb2)]({'unitId':_0x2366b9[_0x2cc05d(0x1d1)],'subUnitId':_0x2366b9['subUnitId'],'shapeId':_0x2366b9[_0x2cc05d(0xb6)],'shapeKey':_0x2a9cbd(_0x2366b9[_0x2cc05d(0x1d1)],_0x2366b9['nodeId']),'visible':!0x0}),!0x0;}[_0x1b778c(0x14b)](_0x5d963f){const _0x502660=_0x1b778c;let _0x45f6be=this['_getSelectedMindMapContext'](_0x5d963f);return _0x45f6be?(_0x5d963f[_0x502660(0x3b4)][_0x502660(0x1ae)]({'id':kn,'title':{'title':_0x502660(0xd4)},'width':0x1a4,'draggable':!0x0,'mask':!0x1,'maskClosable':!0x0,'children':{'label':On,'unitId':_0x45f6be[_0x502660(0x1d1)],'subUnitId':_0x45f6be[_0x502660(0x28e)],'nodeId':_0x45f6be[_0x502660(0xb6)],'initialDescription':_0x45f6be[_0x502660(0x11a)]}}),!0x0):!0x1;}[_0x1b778c(0x24c)](_0x28506d,_0x2841b1){const _0x203e82=_0x1b778c;let _0x385a36=this[_0x203e82(0x39f)](_0x28506d);if(!_0x385a36)return!0x1;let _0x374a7c=_0x28506d[_0x203e82(0x23e)][_0x203e82(0x198)](_0x385a36[_0x203e82(0x1d1)],_0x385a36[_0x203e82(0x28e)]),_0x1d5c21=_0x374a7c[_0x385a36[_0x203e82(0xb6)]],_0x3a7389=_0x553933(_0x1d5c21==null?void 0x0:_0x1d5c21['element']);if(!_0x1d5c21||!_0x3a7389)return!0x1;let _0x2a7791={'arrow-left':_0x203e82(0x2e6),'arrow-right':_0x203e82(0x39b),'arrow-up':'ArrowUp','arrow-down':_0x203e82(0xc2)}[_0x2841b1];if(!_0x2a7791)return!0x1;let _0x172aee=this[_0x203e82(0x1fa)](_0x374a7c,_0x385a36[_0x203e82(0xb6)],_0x3a7389,_0x2a7791);return _0x172aee?(_0x28506d['elementStateService']['selectElements']({'unitId':_0x385a36[_0x203e82(0x1d1)],'subUnitId':_0x385a36[_0x203e82(0x28e)]},[_0x172aee],_0x172aee),!0x0):!0x1;}[_0x1b778c(0x1fa)](_0x5f3a15,_0xbe7c64,_0x461d0d,_0x1c256f){const _0xa0b9d9=_0x1b778c;let _0x4987f6=this[_0xa0b9d9(0x121)](_0x5f3a15,_0x461d0d[_0xa0b9d9(0x353)],_0xbe7c64);if(_0x461d0d['parentNodeId']===null){if(_0x1c256f===_0xa0b9d9(0x2e6)){var _0x2422a3;return((_0x2422a3=_0x4987f6[_0xa0b9d9(0x12f)](_0x1dcbb1=>{const _0x4f919f=_0xa0b9d9;var _0x16e8b3;return((_0x16e8b3=_0x553933(_0x1dcbb1[_0x4f919f(0x201)]))==null?void 0x0:_0x16e8b3[_0x4f919f(0x132)])===_0x4f919f(0x344);}))==null?void 0x0:_0x2422a3['elementId'])??null;}if(_0x1c256f===_0xa0b9d9(0x39b)){var _0x18382d;return((_0x18382d=_0x4987f6['find'](_0x238616=>{const _0x528b9a=_0xa0b9d9;var _0x3f1f86;return(((_0x3f1f86=_0x553933(_0x238616[_0x528b9a(0x201)]))==null?void 0x0:_0x3f1f86[_0x528b9a(0x132)])??_0x528b9a(0x1f3))===_0x528b9a(0x1f3);}))==null?void 0x0:_0x18382d[_0xa0b9d9(0x2fa)])??null;}return null;}let _0x772a99=_0x461d0d['side']??_0xa0b9d9(0x1f3),_0x2d9745=_0x772a99==='right'?_0xa0b9d9(0x2e6):_0xa0b9d9(0x39b),_0x41430d=_0x772a99===_0xa0b9d9(0x1f3)?'ArrowRight':_0xa0b9d9(0x2e6);if(_0x1c256f===_0x2d9745)return _0x461d0d['parentNodeId'];if(_0x1c256f===_0x41430d){var _0x39bd3f;return((_0x39bd3f=_0x4987f6[0x0])==null?void 0x0:_0x39bd3f[_0xa0b9d9(0x2fa)])??null;}if(_0x1c256f==='ArrowUp'||_0x1c256f===_0xa0b9d9(0xc2)){let _0x1a5550=this['_getMindMapChildren'](_0x5f3a15,_0x461d0d[_0xa0b9d9(0x353)],_0x461d0d[_0xa0b9d9(0x333)]),_0x3024fc=_0x1a5550[_0xa0b9d9(0x250)](_0x5ac7e4=>_0x5ac7e4[_0xa0b9d9(0x2fa)]===_0xbe7c64),_0x5c5244=_0x1c256f===_0xa0b9d9(0x229)?_0x1a5550[_0x3024fc-0x1]:_0x1a5550[_0x3024fc+0x1];return(_0x5c5244==null?void 0x0:_0x5c5244[_0xa0b9d9(0x2fa)])??null;}return null;}[_0x1b778c(0x121)](_0x30f8f9,_0x4166cc,_0x18b316){const _0x96bbeb=_0x1b778c;return Object[_0x96bbeb(0x346)](_0x30f8f9)[_0x96bbeb(0x124)](_0x55492b=>{const _0x44ee24=_0x96bbeb;let _0x4480e3=_0x553933(_0x55492b['element']);return(_0x4480e3==null?void 0x0:_0x4480e3['structureScopeId'])===_0x4166cc&&_0x4480e3[_0x44ee24(0x333)]===_0x18b316&&_0x55492b['element'][_0x44ee24(0x32e)]!==!0x1;})[_0x96bbeb(0x1ab)]((_0x232c62,_0x39b208)=>{const _0x4b4f81=_0x96bbeb;let _0x3168b8=_0x553933(_0x232c62[_0x4b4f81(0x201)]),_0x482c52=_0x553933(_0x39b208[_0x4b4f81(0x201)]);return _0x266511(_0x3168b8==null?void 0x0:_0x3168b8['orderKey'],_0x482c52==null?void 0x0:_0x482c52['orderKey'])||_0x232c62['elementId'][_0x4b4f81(0xcf)](_0x39b208[_0x4b4f81(0x2fa)]);});}['_getSelectedMindMapContext'](_0x30bf81){const _0x24856f=_0x1b778c;var _0x279f72;let _0x291167=_0x30bf81[_0x24856f(0x2da)]['getSnapshot'](),_0x55fd1e=_0x291167[_0x24856f(0x19d)]??_0x291167[_0x24856f(0x3c3)][0x0];if(!_0x55fd1e||_0x291167['selectedIds']['length']!==0x1||_0x291167['activeEditingId']||_0x291167[_0x24856f(0x275)])return null;let _0x51fdea=_0x291167[_0x24856f(0x310)]??{'unitId':_0x30bf81[_0x24856f(0xf6)][_0x24856f(0x1d1)],'subUnitId':_0x30bf81[_0x24856f(0xf6)][_0x24856f(0x196)][_0x24856f(0x2a3)]()},_0x5855d3=_0x30bf81[_0x24856f(0x23e)][_0x24856f(0x198)](_0x51fdea[_0x24856f(0x1d1)],_0x51fdea[_0x24856f(0x28e)])[_0x55fd1e],_0x2a0797=_0x553933(_0x5855d3==null?void 0x0:_0x5855d3[_0x24856f(0x201)]);return!_0x5855d3||!_0x2a0797?null:{'unitId':_0x51fdea['unitId'],'subUnitId':_0x51fdea[_0x24856f(0x28e)],'nodeId':_0x55fd1e,'scopeId':_0x2a0797[_0x24856f(0x353)],'isRoot':_0x2a0797[_0x24856f(0x333)]===null,'description':((_0x279f72=_0x2a0797['foreignAttributes'])==null?void 0x0:_0x279f72['_note'])??''};}[_0x1b778c(0x2d2)](_0x27ca69){const _0x2c6479=_0x1b778c;var _0x5ce5cf,_0x227fd6;let _0x50fd34=_0x27ca69[_0x2c6479(0x2da)][_0x2c6479(0x305)]();return _0x50fd34['activeEditingId']||_0x50fd34[_0x2c6479(0x275)]||_0x50fd34[_0x2c6479(0x3c3)][_0x2c6479(0xe7)]>0x0||_0x50fd34['focusedId']?null:{'unitId':((_0x5ce5cf=_0x50fd34[_0x2c6479(0x310)])==null?void 0x0:_0x5ce5cf[_0x2c6479(0x1d1)])??_0x27ca69['renderContext'][_0x2c6479(0x1d1)],'subUnitId':((_0x227fd6=_0x50fd34['context'])==null?void 0x0:_0x227fd6['subUnitId'])??_0x27ca69[_0x2c6479(0xf6)][_0x2c6479(0x196)][_0x2c6479(0x2a3)]()};}[_0x1b778c(0x320)](_0x17d50e,_0x5f52c4,_0x520366,_0x267bb8){const _0x410f69=_0x1b778c;let _0x494a5b=_0x17d50e[_0x410f69(0x183)],_0x10289c=this[_0x410f69(0x20b)][_0x410f69(0x10a)](_0x520366['unitId']),_0x51aa8e=_0x10289c(()=>_0x494a5b[_0x410f69(0x35c)](_0x5f52c4,_0x520366));Promise[_0x410f69(0x36e)](_0x51aa8e)[_0x410f69(0x1c2)](_0x594a28=>{const _0x1d3a4b=_0x410f69;_0x594a28&&_0x10289c(()=>_0x494a5b[_0x1d3a4b(0x35c)](_0x4b8919['id'],{'unitId':_0x520366[_0x1d3a4b(0x1d1)],'subUnitId':_0x520366[_0x1d3a4b(0x28e)],'scopeId':_0x267bb8}));});}[_0x1b778c(0x22c)](_0x2fc1cd,_0x456dec,_0x2129bc,_0xfbe63e,_0x2a4b42){const _0x516386=_0x1b778c;let _0x39b836={'unitId':_0x2129bc['unitId'],'subUnitId':_0x2129bc[_0x516386(0x28e)]},_0x19b961=_0x2fc1cd['commandService'],_0x457520=this['_undoRedoGroupService'][_0x516386(0x10a)](_0x2129bc[_0x516386(0x1d1)]),_0x2c38b9=_0x457520(()=>_0x19b961[_0x516386(0x35c)](_0x456dec,_0x2129bc));Promise[_0x516386(0x36e)](_0x2c38b9)['then'](_0x1ff9e=>{const _0x1ca65d=_0x516386;if(!_0x1ff9e)return;_0x457520(()=>_0x19b961[_0x1ca65d(0x35c)](_0x4b8919['id'],{..._0x39b836,'scopeId':_0xfbe63e})),_0x2fc1cd['elementStateService'][_0x1ca65d(0x2e0)](_0x39b836,[_0x2a4b42],_0x2a4b42);let _0x4d40ee=_0x2fc1cd[_0x1ca65d(0x3c2)];_0x4d40ee[_0x1ca65d(0xe2)](),_0x4d40ee[_0x1ca65d(0xb2)]({..._0x39b836,'shapeId':_0x2a4b42,'shapeKey':_0x2a9cbd(_0x39b836[_0x1ca65d(0x1d1)],_0x2a4b42),'visible':!0x0});});}};Ln=J([q(0x0,_0x197f49),q(0x1,_0x36a817),q(0x2,_0x1e1a04),q(0x3,_0x407fc1(_0x2153c6))],Ln);function Rn(_0x908709,_0x57c550){const _0x3e3da3=_0x1b778c;var _0x53c69d,_0x162092;let _0x468603=typeof(_0x57c550==null?void 0x0:_0x57c550[_0x3e3da3(0x1d1)])==_0x3e3da3(0xc0)?_0x57c550[_0x3e3da3(0x1d1)]:(_0x53c69d=_0x908709[_0x3e3da3(0x151)](_0x4d4728)[_0x3e3da3(0x138)](_0x5d14ce[_0x3e3da3(0x39a)]))==null?void 0x0:_0x53c69d[_0x3e3da3(0xbd)]();return _0x468603?((_0x162092=_0x908709[_0x3e3da3(0x151)](_0x5c1663)[_0x3e3da3(0x20f)](_0x468603))==null?void 0x0:_0x162092[_0x3e3da3(0x153)](Dn))??null:null;}function zn(_0x301aa7){const _0x25c7ae=_0x1b778c;return _0x301aa7===_0x25c7ae(0x245)||_0x301aa7===_0x25c7ae(0x337)||_0x301aa7==='arrow-up'||_0x301aa7===_0x25c7ae(0x129);}const Bn={'min':0x1,'max':0x5,'defaultValue':0x3},Vn={'min':0x0,'max':0x64,'defaultValue':0x64},Hn=[{'kind':_0x1b778c(0x365),'titleKey':_0x1b778c(0x3a1),'panel':'line'},{'kind':_0x1b778c(0x33d),'titleKey':_0x1b778c(0x247)},{'kind':'typography','titleKey':_0x1b778c(0x1a8)},{'kind':'dropdown','titleKey':_0x1b778c(0x39d),'panel':_0x1b778c(0x3ab),'dividerBefore':!0x0}],Un={'addSibling':'add-sibling-or-child','addChild':_0x1b778c(0x272),'copy':'copy','paste':_0x1b778c(0x1f4),'delete':_0x1b778c(0x302)},Wn=[{'key':_0x1b778c(0x3a3),'title':'Mind\x20map','items':[{'value':'mindmap-horizontal','icon':_0x1b778c(0x263),'labelKey':_0x1b778c(0x332)},{'value':_0x1b778c(0xf4),'icon':_0x1b778c(0xf4),'labelKey':_0x1b778c(0x3a4)}]},{'key':_0x1b778c(0x3a7),'title':_0x1b778c(0x271),'items':[{'value':_0x1b778c(0x319),'icon':'tree-right','labelKey':'boards-mind-ui.panel.structureKind.treeRight'},{'value':_0x1b778c(0x26c),'icon':_0x1b778c(0x26c),'labelKey':'boards-mind-ui.panel.structureKind.treeLeft'},{'value':'tree-alternate','icon':_0x1b778c(0x350),'labelKey':_0x1b778c(0x31f)}]},{'key':'timeline','title':_0x1b778c(0x30d),'items':[{'value':_0x1b778c(0x16a),'icon':_0x1b778c(0x16a),'labelKey':_0x1b778c(0x21a)},{'value':'timeline-vertical','icon':_0x1b778c(0x3c1),'labelKey':_0x1b778c(0x1dd)}]}],Gn={'key':'branch','title':_0x1b778c(0x3c5),'items':[{'value':'curve','icon':_0x1b778c(0x2f1),'labelKey':_0x1b778c(0x22d)},{'value':'rounded-orthogonal','icon':'branch-rounded-orthogonal','labelKey':'boards-mind-ui.panel.branchLineType.roundedOrthogonal'},{'value':_0x1b778c(0xeb),'icon':_0x1b778c(0x243),'labelKey':'boards-mind-ui.panel.branchLineType.orthogonal'}]},Kn=_0x1b778c(0x143);function qn(_0x3c6aa6,_0x5a4399){_0x3c6aa6['executeCommand'](jn,{'action':_0x5a4399});}const Jn={'line':_0x203640,'more':_0xe42adf};function Yn(_0x219ead){_0x219ead['stopPropagation'](),_0x219ead['preventDefault']();}function Xn(_0x85f84b,_0x15ec27=_0x1b778c(0x2bd),_0xe689a4){return _0x10416f(_0x3fbbff,{'children':_0x10416f(_0x85f84b,{'className':_0x15ec27,'extend':_0xe689a4})});}function Zn(_0x2337cc){const _0x4607d1=_0x1b778c;var _0x7df74e,_0x4dfa44;let _0x3aa97b=(_0x2337cc==null?void 0x0:_0x2337cc[_0x4607d1(0x226)])??{},_0x141aae=_0x3aa97b['dataModel']&&typeof _0x3aa97b[_0x4607d1(0x203)]=='object'?_0x3aa97b[_0x4607d1(0x203)]:{},_0x72678a=(_0x7df74e=_0x141aae[_0x4607d1(0x331)])==null||(_0x7df74e=_0x7df74e[_0x4607d1(0x152)])==null?void 0x0:_0x7df74e[_0x4607d1(0xac)];return{'color':typeof _0x3aa97b[_0x4607d1(0x22f)]==_0x4607d1(0xc0)?_0x3aa97b[_0x4607d1(0x22f)]:(_0x72678a==null||(_0x4dfa44=_0x72678a['cl'])==null?void 0x0:_0x4dfa44[_0x4607d1(0x105)])??_0x32baa3,'fontFamily':typeof _0x3aa97b[_0x4607d1(0x368)]==_0x4607d1(0xc0)?_0x3aa97b['fontFamily']:(_0x72678a==null?void 0x0:_0x72678a['ff'])??_0x529f51['ff'],'fontSize':typeof _0x3aa97b[_0x4607d1(0x2cf)]==_0x4607d1(0x2d3)?_0x3aa97b[_0x4607d1(0x2cf)]:typeof(_0x72678a==null?void 0x0:_0x72678a['fs'])==_0x4607d1(0x2d3)?_0x72678a['fs']:_0x529f51['fs'],'horizontalAlign':_0x3aa97b[_0x4607d1(0x35d)]??_0x141aae['ha']??_0x242a32[_0x4607d1(0x3af)],'textFill':_0x3aa97b[_0x4607d1(0x202)]&&typeof _0x3aa97b[_0x4607d1(0x202)]=='object'?_0x3aa97b['textFill']:_0x72678a==null?void 0x0:_0x72678a[_0x4607d1(0x202)],'verticalAlign':_0x3aa97b[_0x4607d1(0x20a)]??_0x141aae['va']??_0x331031['MIDDLE']};}function Qn(_0x2b401e,_0x11395a){const _0x5f066c=_0x1b778c;if(!_0x11395a)return;let _0x1b04a0=In(_0x11395a);if(!_0x1b04a0[_0x5f066c(0xe7)])return;let _0x8bb033=_0x1b04a0[_0x5f066c(0x10c)](_0x5edb10=>_0x2b401e[_0x5f066c(0x1c4)]({'id':_0x5f066c(0x35f),'binding':_0x5edb10,'staticParameters':{'action':_0x11395a}})??void 0x0)[_0x5f066c(0x124)](_0x5d8b2b=>!!_0x5d8b2b);return _0x8bb033[_0x5f066c(0xe7)]?[...new Set(_0x8bb033)][_0x5f066c(0x24f)]('/'):void 0x0;}async function $n(_0x34b30f,_0x41fdd0,_0x35b98d){const _0x3d386b=_0x1b778c;return await Promise[_0x3d386b(0x36e)](_0x41fdd0(()=>_0x34b30f[_0x3d386b(0x35c)](_0x5b0e9b['id'],_0x35b98d)))?(await Promise[_0x3d386b(0x36e)](_0x41fdd0(()=>_0x34b30f['executeCommand'](_0x4b8919['id'],{'unitId':_0x35b98d[_0x3d386b(0x1d1)],'subUnitId':_0x35b98d[_0x3d386b(0x28e)],'scopeId':_0x35b98d[_0x3d386b(0x315)]}))),!0x0):!0x1;}async function er(_0x45503b,_0x843578,_0x35b254){const _0x2d0186=_0x1b778c;return await Promise[_0x2d0186(0x36e)](_0x843578(()=>_0x45503b[_0x2d0186(0x35c)](_0x401f18['id'],_0x35b254)))?(await Promise[_0x2d0186(0x36e)](_0x843578(()=>_0x45503b['executeCommand'](_0x4b8919['id'],{'unitId':_0x35b254['unitId'],'subUnitId':_0x35b254[_0x2d0186(0x28e)],'scopeId':_0x35b254['scopeId']}))),!0x0):!0x1;}function tr({className:_0x418452='univer-size-5'}){const _0x22eeab=_0x1b778c;return _0x10416f(_0x3fbbff,{'children':_0x54bda6(_0x22eeab(0x241),{'className':_0x418452,'viewBox':_0x22eeab(0x2d1),'fill':_0x22eeab(0x223),'aria-hidden':_0x22eeab(0x1d3),'children':[_0x10416f('path',{'d':_0x22eeab(0x292),'stroke':_0x22eeab(0x313),'strokeWidth':'1.8','strokeLinecap':'round'}),_0x10416f(_0x22eeab(0x211),{'d':_0x22eeab(0x312),'stroke':_0x22eeab(0x313),'strokeWidth':_0x22eeab(0x131),'strokeLinecap':_0x22eeab(0x1b4)}),_0x10416f('path',{'d':_0x22eeab(0x304),'stroke':_0x22eeab(0x313),'strokeWidth':_0x22eeab(0x131),'strokeLinecap':_0x22eeab(0x1b4)})]})});}function nr({icon:_0x5b5254}){const _0x2e7cd3=_0x1b778c;let _0x2f88d9=_0x2e7cd3(0x106),_0x5581d0={'stroke':_0x2e7cd3(0x313),'strokeWidth':2.6,'strokeLinecap':'round','strokeLinejoin':_0x2e7cd3(0x1b4)},_0x3b853b={'stroke':_0x2f88d9,'strokeWidth':3.2,'strokeLinecap':_0x2e7cd3(0x1b4)};return _0x54bda6('svg',{'className':_0x2e7cd3(0x31c),'viewBox':_0x2e7cd3(0xdf),'fill':_0x2e7cd3(0x223),'aria-hidden':_0x2e7cd3(0x1d3),'children':[_0x5b5254==='mindmap-horizontal'&&_0x54bda6(_0x1fbb95,{'children':[_0x10416f(_0x2e7cd3(0x211),{'d':_0x2e7cd3(0xf1),..._0x5581d0}),_0x10416f(_0x2e7cd3(0x211),{'d':'M12\x2015h9M12\x2028h9M12\x2041h9M59\x2015h9M59\x2028h9M59\x2041h9',..._0x3b853b})]}),_0x5b5254===_0x2e7cd3(0xf4)&&_0x54bda6(_0x1fbb95,{'children':[_0x10416f(_0x2e7cd3(0x211),{'d':'M21\x2028h38M40\x2011v34M28\x2016c7\x204\x2010\x208\x2012\x2012\x202-4\x205-8\x2012-12M28\x2040c7-4\x2010-8\x2012-12\x202\x204\x205\x208\x2012\x2012',..._0x5581d0}),_0x10416f(_0x2e7cd3(0x211),{'d':'M22\x208h36M22\x2048h36M14\x2018v20M66\x2018v20','stroke':_0x2f88d9,'strokeWidth':2.6,'strokeLinecap':_0x2e7cd3(0x1b4),'strokeDasharray':_0x2e7cd3(0x2e1)})]}),_0x5b5254==='tree-right'&&_0x54bda6(_0x1fbb95,{'children':[_0x10416f(_0x2e7cd3(0x211),{'d':_0x2e7cd3(0x36d),..._0x5581d0}),_0x10416f(_0x2e7cd3(0x211),{'d':_0x2e7cd3(0x16f),..._0x3b853b}),_0x10416f(_0x2e7cd3(0x20e),{'cx':'24','cy':'12','r':'3','fill':_0x2e7cd3(0x313)})]}),_0x5b5254==='tree-left'&&_0x54bda6(_0x1fbb95,{'children':[_0x10416f('path',{'d':'M56\x2012v32M56\x2019c0\x204-3\x206-7\x206h-7M56\x2029c0\x204-3\x206-7\x206h-7M56\x2039c0\x204-3\x206-7\x206h-7',..._0x5581d0}),_0x10416f(_0x2e7cd3(0x211),{'d':_0x2e7cd3(0xe3),..._0x3b853b}),_0x10416f('circle',{'cx':'56','cy':'12','r':'3','fill':_0x2e7cd3(0x313)})]}),_0x5b5254===_0x2e7cd3(0x350)&&_0x54bda6(_0x1fbb95,{'children':[_0x10416f('path',{'d':_0x2e7cd3(0x145),..._0x5581d0}),_0x10416f(_0x2e7cd3(0x211),{'d':_0x2e7cd3(0x382),..._0x3b853b}),_0x10416f(_0x2e7cd3(0x20e),{'cx':'42','cy':'12','r':'3','fill':_0x2e7cd3(0x313)})]}),_0x5b5254===_0x2e7cd3(0x16a)&&_0x54bda6(_0x1fbb95,{'children':[_0x10416f('path',{'d':_0x2e7cd3(0x2f4),..._0x5581d0}),_0x10416f('path',{'d':_0x2e7cd3(0x32b),..._0x3b853b}),_0x10416f(_0x2e7cd3(0x20e),{'cx':'17','cy':'31','r':'3','fill':_0x2e7cd3(0x313)})]}),_0x5b5254===_0x2e7cd3(0x3c1)&&_0x54bda6(_0x1fbb95,{'children':[_0x10416f(_0x2e7cd3(0x211),{'d':_0x2e7cd3(0x2fd),..._0x5581d0}),_0x10416f('path',{'d':'M56\x2039h11M13\x2050h11',..._0x3b853b}),_0x10416f(_0x2e7cd3(0x20e),{'cx':'40','cy':'9','r':'3','fill':_0x2e7cd3(0x313)})]}),_0x5b5254===_0x2e7cd3(0x2f1)&&_0x10416f(_0x1fbb95,{'children':_0x10416f(_0x2e7cd3(0x211),{'d':_0x2e7cd3(0x29b),..._0x5581d0})}),_0x5b5254===_0x2e7cd3(0xb4)&&_0x10416f(_0x1fbb95,{'children':_0x10416f('path',{'d':'M16\x2029h18c7\x200\x2010-5\x2010-12v-3M34\x2029h10c7\x200\x2010\x205\x2010\x2012v3',..._0x5581d0})}),_0x5b5254===_0x2e7cd3(0x243)&&_0x10416f(_0x1fbb95,{'children':_0x10416f(_0x2e7cd3(0x211),{'d':_0x2e7cd3(0x147),..._0x5581d0})})]});}function rr(_0x5473f6,_0xd025af){const _0x31874e=_0x1b778c;let _0x384ce5=_0x5473f6[_0x31874e(0xac)],_0x1ad9b3=_0x7343b4(_0x384ce5),_0x268ef1={..._0x1ad9b3[_0x31874e(0x22f)]===void 0x0?null:{'color':_0x1ad9b3[_0x31874e(0x22f)]},..._0x1ad9b3['fontFamily']===void 0x0?null:{'fontFamily':_0x1ad9b3[_0x31874e(0x368)]},..._0x1ad9b3[_0x31874e(0x2cf)]===void 0x0?null:{'fontSize':_0x1ad9b3[_0x31874e(0x2cf)]},..._0x1ad9b3[_0x31874e(0x185)]===void 0x0?null:{'bold':_0x1ad9b3['bold']},..._0x1ad9b3['italic']===void 0x0?null:{'italic':_0x1ad9b3[_0x31874e(0x2ac)]},..._0x1ad9b3[_0x31874e(0x113)]===void 0x0?null:{'underline':_0x1ad9b3[_0x31874e(0x113)]},..._0x1ad9b3[_0x31874e(0x25d)]===void 0x0?null:{'strikethrough':_0x1ad9b3['strikethrough']},..._0x1ad9b3[_0x31874e(0x202)]===void 0x0?null:{'textFill':_0x1ad9b3['textFill']}};_0x5473f6['horizontalAlign']!==void 0x0&&(_0x268ef1[_0x31874e(0x35d)]=_0x5473f6[_0x31874e(0x35d)]),_0x5473f6[_0x31874e(0x20a)]!==void 0x0&&(_0x268ef1['verticalAlign']=_0x5473f6['verticalAlign']),Object[_0x31874e(0xd0)](_0x268ef1)[_0x31874e(0xe7)]>0x0&&_0xd025af({'textStyle':_0x268ef1});}function ir(_0x28cdcd,_0x4879f5,_0x1e45fd){const _0x5f1f50=_0x1b778c;let _0x4d8449=_0x28cdcd??{},_0x490efe=_0x4ce09f(_0x4d8449,_0x4879f5),_0x2b7877=_0x490efe['shapeText']??_0x4d8449['shapeText']??{};return{..._0x4d8449,..._0x490efe,'shapeText':{..._0x2b7877,..._0x1e45fd[_0x5f1f50(0x22f)]===void 0x0?null:{'color':_0x1e45fd['color']},..._0x1e45fd['fontSize']===void 0x0?null:{'fontSize':_0x1e45fd[_0x5f1f50(0x2cf)]},..._0x1e45fd[_0x5f1f50(0x185)]===void 0x0?null:{'bold':_0x1e45fd[_0x5f1f50(0x185)]},..._0x1e45fd[_0x5f1f50(0x2ac)]===void 0x0?null:{'italic':_0x1e45fd[_0x5f1f50(0x2ac)]},..._0x1e45fd[_0x5f1f50(0x113)]===void 0x0?null:{'underline':_0x1e45fd[_0x5f1f50(0x113)]},..._0x1e45fd[_0x5f1f50(0x25d)]===void 0x0?null:{'strikethrough':_0x1e45fd[_0x5f1f50(0x25d)]},..._0x1e45fd[_0x5f1f50(0x35d)]===void 0x0?null:{'horizontalAlign':_0x1e45fd[_0x5f1f50(0x35d)]},..._0x1e45fd[_0x5f1f50(0x20a)]===void 0x0?null:{'verticalAlign':_0x1e45fd[_0x5f1f50(0x20a)]},..._0x1e45fd['textFill']===void 0x0?null:{'textFill':_0x1e45fd['textFill']}}};}function ar(_0x3dd7b7,_0x5c869e){const _0x3331c4=_0x1b778c;let _0x2021b1=_0x3dd7b7==null?void 0x0:_0x3dd7b7[_0x3331c4(0x38b)];_0x2021b1&&_0x5c869e({'lineType':_0x2021b1[_0x3331c4(0x397)]===_0x463fe0[_0x3331c4(0x38a)]||_0x2021b1[_0x3331c4(0x397)]===_0x463fe0[_0x3331c4(0x1dc)]?_0x3331c4(0x39c):_0x2021b1['dashType']===_0x463fe0[_0x3331c4(0x35a)]?_0x3331c4(0x31e):_0x3331c4(0x27a),...typeof _0x2021b1[_0x3331c4(0x316)]==_0x3331c4(0x2d3)?{'strokeWidth':_0x2021b1[_0x3331c4(0x316)]}:null,...typeof _0x2021b1[_0x3331c4(0x22f)]==_0x3331c4(0xc0)?{'stroke':_0x2021b1[_0x3331c4(0x22f)]}:null,...typeof _0x2021b1['opacity']==_0x3331c4(0x2d3)?{'opacity':_0x2021b1[_0x3331c4(0x36c)]}:null});}function or(_0x39eda4){const _0x461249=_0x1b778c;return _0x39eda4!=null&&_0x39eda4[_0x461249(0xe7)]?_0x39eda4[0x0]<=0x2?_0x463fe0['RoundDot']:_0x463fe0[_0x461249(0x35a)]:_0x463fe0[_0x461249(0x3b2)];}function sr(_0x3c6a86){const _0x193af8=_0x1b778c;return{'stroke':{'lineStrokeType':_0x41f978[_0x193af8(0x2ce)],'dashType':or(_0x3c6a86==null?void 0x0:_0x3c6a86[_0x193af8(0x31e)]),'color':(_0x3c6a86==null?void 0x0:_0x3c6a86[_0x193af8(0x38b)])??_0x35eb86,'width':(_0x3c6a86==null?void 0x0:_0x3c6a86[_0x193af8(0x2b0)])??Bn[_0x193af8(0x1b7)],'opacity':(_0x3c6a86==null?void 0x0:_0x3c6a86[_0x193af8(0x36c)])??Vn[_0x193af8(0x1b7)]/0x64}};}function cr(_0x3daced){const _0x334715=_0x1b778c;var _0x323820,_0x1fa45d,_0x332861;let _0x1e9f6c=_0x986de7(_0x36a817),_0xf28751=_0x986de7(_0x1e1a04),_0x5e7d9d=_0x986de7(_0x4f0dfe),_0x3519ad=_0x986de7(_0x2153c6),[_0x1ed6ae,_0x1481ef]=_0x2c9c6f(null),[_0x2f2c74,_0xa55f08]=_0x2c9c6f((_0x323820=_0x3daced[_0x334715(0x199)][_0x334715(0x1d6)])==null?void 0x0:_0x323820[_0x334715(0x234)]),_0x2c3414=_0x3daced[_0x334715(0x199)]['extraProps'];if(!_0x2c3414)return null;let _0xeb2344={'unitId':_0x2c3414[_0x334715(0x1d1)],'subUnitId':_0x2c3414[_0x334715(0x28e)]},_0x41e243=_0xedfa9e=>{const _0x22cd0e=_0x334715;_0x1e9f6c[_0x22cd0e(0x35c)](_0x2f778f['id'],{..._0xeb2344,'nodeId':_0x2c3414[_0x22cd0e(0x2fa)],..._0xedfa9e});},_0x21cf10=(_0x5cfe28,_0x1c90e8)=>{const _0x35b357=_0x334715;let _0x1c223d=_0x1c90e8??{};_0xa55f08(_0x53f3f6=>({..._0x53f3f6??{},..._0x1c223d})),_0x41e243({..._0x1c223d[_0x35b357(0x3ac)]===void 0x0?null:{'fill':_0x1c223d[_0x35b357(0x3ac)]},..._0x1c223d[_0x35b357(0x38b)]===void 0x0?null:{'stroke':_0x1c223d[_0x35b357(0x38b)]}});},_0x2fc80d=_0x526644=>{const _0x378373=_0x334715;_0x1e9f6c['executeCommand'](_0x1c0182['id'],{..._0xeb2344,'nodeId':_0x2c3414[_0x378373(0x2fa)],'style':_0x526644});},_0x1ea630=sr(_0x2c3414[_0x334715(0x371)]),_0x1c4553=_0x4e4720=>Qn(_0xf28751,_0x4e4720),_0x28e8ed=_0x31aabf=>{qn(_0x1e9f6c,_0x31aabf);},_0x348bb1=(_0x2f2c74==null?void 0x0:_0x2f2c74[_0x334715(0x226)])??{},_0x500612=Zn(_0x2f2c74),_0x3b1b99=_0x1a4dd0=>{rr(_0x1a4dd0,_0x563abd=>{_0xa55f08(_0x25b842=>ir(_0x25b842,_0x1a4dd0,_0x563abd['textStyle'])),_0x41e243(_0x563abd);});},_0x4c67d8=[{'label':_0x5e7d9d['t']('boards-mind-ui.alignLeft'),'value':_0x242a32[_0x334715(0x3af)],'icon':_0x10416f(_0x3d68ad,{})},{'label':_0x5e7d9d['t'](_0x334715(0xb1)),'value':_0x242a32[_0x334715(0x18d)],'icon':_0x10416f(_0x26c41e,{})},{'label':_0x5e7d9d['t'](_0x334715(0x293)),'value':_0x242a32[_0x334715(0x276)],'icon':_0x10416f(_0xedb2f5,{})},{'label':_0x5e7d9d['t']('boards-mind-ui.alignJustify'),'value':_0x242a32[_0x334715(0x28d)],'icon':_0x10416f(_0x508ba9,{})}],_0x46dd18=[{'label':_0x5e7d9d['t'](_0x334715(0xfa)),'value':_0x331031['TOP'],'icon':_0x10416f(_0x54a491,{})},{'label':_0x5e7d9d['t'](_0x334715(0x140)),'value':_0x331031[_0x334715(0xf0)],'icon':_0x10416f(_0x1c5451,{})},{'label':_0x5e7d9d['t'](_0x334715(0x1bb)),'value':_0x331031[_0x334715(0x29f)],'icon':_0x10416f(_0x3e5923,{})}],_0x5dac2b=()=>{const _0x55d1ba=_0x334715;_0x28e8ed(_0x55d1ba(0x170));},_0x26a5fe=()=>{_0x28e8ed('add-child');},_0x158871=()=>{_0x28e8ed('copy');},_0x13c94d=()=>{_0x28e8ed('paste');},_0x585c3e=()=>{const _0x3da39a=_0x334715;_0x28e8ed(_0x3da39a(0x302));},_0x13d36a=((_0x1fa45d=_0x2c3414[_0x334715(0x343)])==null?void 0x0:_0x1fa45d[_0x334715(0xd6)])??_0x3e5dd9[_0x334715(0xd6)],_0x2e1549=_0x25ee14(_0x13d36a,((_0x332861=_0x2c3414[_0x334715(0x343)])==null?void 0x0:_0x332861[_0x334715(0x2a6)])??_0x3e5dd9[_0x334715(0x2a6)]),_0x4e5974=_0x251501=>{const _0x1361a1=_0x334715;let _0xa071d3=_0x25ee14(_0x251501,_0x2e1549);$n(_0x1e9f6c,_0x3519ad[_0x1361a1(0x10a)](_0x2c3414['unitId']),{..._0xeb2344,'scopeId':_0x2c3414[_0x1361a1(0x315)],'structureKind':_0x251501,..._0xa071d3===_0x2e1549?null:{'branchLineType':_0xa071d3}}),_0x1481ef(null);},_0xefeec9=_0x496e13=>{const _0x473994=_0x334715;er(_0x1e9f6c,_0x3519ad[_0x473994(0x10a)](_0x2c3414[_0x473994(0x1d1)]),{..._0xeb2344,'scopeId':_0x2c3414[_0x473994(0x315)],'branchLineType':_0x496e13}),_0x1481ef(null);},_0x1be813=(_0x4b146d,_0x1fd521,_0x5cdd69,_0x497c44=!0x1)=>_0x10416f(_0x334715(0x186),{'type':'button','aria-label':_0x5e7d9d['t'](_0x4b146d[_0x334715(0xb7)]),'disabled':_0x497c44,'className':_0x406940(_0x334715(0x1f7),_0x1fd521&&_0x334715(0x356),_0x497c44&&_0x334715(0x100)),'onMouseDown':Yn,'onPointerDown':Yn,'onClick':_0x214857=>{_0x214857['stopPropagation'](),!_0x497c44&&_0x5cdd69();},'children':_0x10416f(nr,{'icon':_0x4b146d[_0x334715(0x2e4)]})},_0x4b146d[_0x334715(0x22e)]),_0x3b2b1e=()=>_0x54bda6(_0x334715(0x24d),{'className':_0x334715(0x2df),'onMouseDown':_0x4e496c=>_0x4e496c[_0x334715(0x2b2)](),'onPointerDown':_0xc5621a=>_0xc5621a[_0x334715(0x2b2)](),'children':[Wn['map'](_0x1b1d78=>_0x54bda6('div',{'className':'univer-mb-4','children':[_0x10416f(_0x334715(0x24d),{'className':_0x334715(0x373),'children':_0x1b1d78[_0x334715(0x1b6)]}),_0x10416f(_0x334715(0x24d),{'className':_0x334715(0xfe),'style':{'gridTemplateColumns':_0x334715(0x38c)+_0x1b1d78[_0x334715(0x348)][_0x334715(0xe7)]+_0x334715(0x281)},'children':_0x1b1d78[_0x334715(0x348)][_0x334715(0x10c)](_0x1a8c4b=>_0x1be813(_0x1a8c4b,_0x1a8c4b['value']===_0x13d36a,()=>_0x4e5974(_0x1a8c4b[_0x334715(0x22e)])))})]},_0x1b1d78[_0x334715(0x370)])),_0x10416f(_0x5b5857,{}),_0x54bda6(_0x334715(0x24d),{'className':_0x334715(0x23f),'children':[_0x10416f('div',{'className':_0x334715(0x373),'children':Gn['title']}),_0x10416f(_0x334715(0x24d),{'className':_0x334715(0xfe),'style':{'gridTemplateColumns':_0x334715(0x38c)+Gn[_0x334715(0x348)][_0x334715(0xe7)]+',\x20minmax(0,\x201fr))'},'children':Gn[_0x334715(0x348)][_0x334715(0x10c)](_0x3a0c1f=>_0x1be813(_0x3a0c1f,_0x3a0c1f[_0x334715(0x22e)]===_0x2e1549,()=>_0xefeec9(_0x3a0c1f['value']),_0x3a0c1f[_0x334715(0x22e)]==='curve'&&!_0x1f742a(_0x13d36a)))})]})]}),_0x2f28ad=_0x1c201c=>{const _0x2580e3=_0x334715;switch(_0x1c201c){case _0x2580e3(0x160):return _0x10416f(_0x5a0dfe,{'title':_0x5e7d9d['t'](_0x2580e3(0x29c)),'shapeData':_0x1ea630,'modeOptions':['solid',_0x2580e3(0x31e),'dot'],'showDashDropdown':!0x1,'widthRange':{'min':Bn[_0x2580e3(0x26b)],'max':Bn[_0x2580e3(0x359)],'step':0x1},'onUpdateShapeData':(_0x27d038,_0x35c557)=>{ar(_0x35c557,_0x2fc80d);}});case _0x2580e3(0x3ab):return _0x10416f(_0x168a20,{'title':_0x5e7d9d['t'](_0x2580e3(0xee)),'minWidthClassName':_0x2580e3(0x214),'children':_0x54bda6(_0x2580e3(0x24d),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1','children':[_0x10416f(_0x5867e6,{'label':_0x5e7d9d['t']('boards-mind-ui.toolbar.action.addSibling'),'shortcut':_0x1c4553(Un[_0x2580e3(0x255)]),'onClick':_0x5dac2b}),_0x10416f(_0x5867e6,{'label':_0x5e7d9d['t']('boards-mind-ui.toolbar.action.addChild'),'shortcut':_0x1c4553(Un[_0x2580e3(0x1e6)]),'onClick':_0x26a5fe}),_0x10416f(_0x5b5857,{}),_0x10416f(_0x5867e6,{'label':_0x5e7d9d['t'](_0x2580e3(0x19b)),'shortcut':_0x1c4553(Un[_0x2580e3(0x149)]),'onClick':_0x158871}),_0x10416f(_0x5867e6,{'label':_0x5e7d9d['t'](_0x2580e3(0x24a)),'shortcut':_0x1c4553(Un[_0x2580e3(0x1f4)]),'onClick':_0x13c94d}),_0x10416f(_0x5867e6,{'label':_0x5e7d9d['t'](_0x2580e3(0x158)),'shortcut':_0x1c4553(Un['delete']),'onClick':_0x585c3e})]})});default:return null;}},_0x1015c9=Hn[_0x334715(0x265)](_0x4970ce=>{const _0x3e26b8=_0x334715;let _0x5e9fbe=[];if(_0x4970ce[_0x3e26b8(0x179)]&&_0x5e9fbe[_0x3e26b8(0x2f3)](_0x10416f(_0x5b5857,{'orientation':'vertical'},_0x3e26b8(0x1a5)+_0x4970ce['kind'])),_0x4970ce[_0x3e26b8(0x376)]==='typography')return _0x5e9fbe[_0x3e26b8(0x2f3)](_0x10416f(_0x4c48a0,{'title':_0x5e7d9d['t'](_0x3e26b8(0x321)),'fontFamily':_0x500612[_0x3e26b8(0x368)],'textStyle':{'isBold':_0x348bb1[_0x3e26b8(0x185)]===!0x0,'isItalic':_0x348bb1[_0x3e26b8(0x2ac)]===!0x0,'isUnderline':_0x348bb1[_0x3e26b8(0x113)]===!0x0,'isStrike':_0x348bb1[_0x3e26b8(0x25d)]===!0x0},'horizontalAlign':_0x500612[_0x3e26b8(0x35d)],'verticalAlign':_0x500612[_0x3e26b8(0x20a)],'horizontalAlignOptions':_0x4c67d8,'verticalAlignOptions':_0x46dd18,'onUpdateText':_0x3b1b99},_0x4970ce['kind'])),_0x5e9fbe;if(_0x4970ce[_0x3e26b8(0x376)]==='fontColor'){let _0x4e0bab={'fs':_0x500612['fontSize'],'cl':{'rgb':_0x500612[_0x3e26b8(0x22f)]},..._0x500612[_0x3e26b8(0x202)]===void 0x0?null:{'textFill':_0x500612[_0x3e26b8(0x202)]}};return _0x5e9fbe[_0x3e26b8(0x2f3)](_0x10416f(_0x39e651,{'title':_0x5e7d9d['t'](_0x3e26b8(0xe9)),'textStyle':_0x4e0bab,'fallbackColor':_0x500612[_0x3e26b8(0x22f)],'onChange':_0x5d7e51=>_0x3b1b99({'textStyle':_0x5d7e51})},_0x4970ce['kind'])),_0x5e9fbe[_0x3e26b8(0x2f3)](_0x10416f(_0x57ceb0,{'value':String(_0x500612['fontSize']),'onChange':_0x22205e=>{_0x3b1b99({'textStyle':{'fs':_0x22205e}});}},'mind-map-font-size')),_0x5e9fbe;}return _0x5e9fbe[_0x3e26b8(0x2f3)](_0x10416f(_0x22c7e1,{'open':_0x1ed6ae===_0x4970ce[_0x3e26b8(0x369)],'overlay':_0x2f28ad(_0x4970ce[_0x3e26b8(0x369)]),'onOpenChange':_0xe7f218=>_0x1481ef(_0xe7f218?_0x4970ce[_0x3e26b8(0x369)]:null),'children':_0x10416f(_0x3e26b8(0x33f),{'children':_0x10416f(_0x3474c8,{'title':_0x5e7d9d['t'](_0x4970ce['titleKey']),'active':_0x1ed6ae===_0x4970ce[_0x3e26b8(0x369)],'icon':Xn(Jn[_0x4970ce[_0x3e26b8(0x369)]]),'sizeClassName':_0x3e26b8(0x1ec),'onMouseDown':Yn,'onPointerDown':Yn})})},_0x4970ce[_0x3e26b8(0x369)])),_0x5e9fbe;}),_0x19c827=[..._0x2c3414[_0x334715(0x2b5)]?[_0x10416f(_0x22c7e1,{'open':_0x1ed6ae===_0x334715(0x343),'overlay':_0x3b2b1e(),'onOpenChange':_0x25d114=>_0x1481ef(_0x25d114?_0x334715(0x343):null),'children':_0x10416f(_0x334715(0x33f),{'children':_0x10416f(_0x3474c8,{'title':_0x5e7d9d['t'](_0x334715(0x299)),'active':_0x1ed6ae===_0x334715(0x343),'icon':_0x10416f(tr,{}),'sizeClassName':_0x334715(0x1ec),'onMouseDown':Yn,'onPointerDown':Yn})})},'mind-map-layout-dropdown'),_0x10416f(_0x5b5857,{'orientation':_0x334715(0x34e)},_0x334715(0x35b))]:[],_0x10416f(_0x907f15,{'title':_0x5e7d9d['t']('boards-mind-ui.toolbar.action.fill'),'shapeData':_0x2f2c74??{},'onUpdateShapeData':_0x21cf10},_0x334715(0xba)),_0x10416f(_0x4b9829,{'title':_0x5e7d9d['t'](_0x334715(0x171)),'shapeData':_0x2f2c74??{},'onUpdateShapeData':_0x21cf10},'mind-map-stroke'),_0x10416f(_0x5b5857,{'orientation':'vertical'},_0x334715(0x309))];return _0x54bda6(_0xc64b25,{'maxWidthClassName':_0x334715(0x380),'onMouseDown':_0x540729=>_0x540729['stopPropagation'](),'children':[_0x19c827,_0x1015c9]});}function lr(_0x62025b){let {left:_0x209f22,top:_0x3a7dc5,width:_0x220c68,height:_0x54c51b}=_0x62025b;return{'left':_0x209f22,'right':_0x209f22+_0x220c68,'top':_0x3a7dc5-0x38,'bottom':_0x3a7dc5+_0x54c51b};}let ur=class extends _0x285459{constructor(_0x14d6c7,_0x366fff,_0x2e0195,_0x4e231b,_0x590a74,_0x39541f){const _0x40d6c6=_0x1b778c;super(),this['_renderContext']=_0x14d6c7,this['_boardCanvasPopManagerService']=_0x366fff,this[_0x40d6c6(0x399)]=_0x2e0195,this[_0x40d6c6(0x1f0)]=_0x4e231b,this[_0x40d6c6(0x15c)]=_0x590a74,this[_0x40d6c6(0x388)]=_0x39541f,K(this,_0x40d6c6(0xde),null),K(this,'_popupSelectionKey',null),this['_init']();}['dispose'](){const _0x500458=_0x1b778c;this[_0x500458(0x308)](),super[_0x500458(0xb0)]();}[_0x1b778c(0x14d)](){const _0x2677a5=_0x1b778c;let _0x272def=this[_0x2677a5(0x1da)]['scene'][_0x2677a5(0x236)]();this[_0x2677a5(0x172)](_0x16561b(_0x272def[_0x2677a5(0x1e7)][_0x2677a5(0xd3)](_0x2cb42f(this[_0x2677a5(0x351)]))['subscribe'](()=>this['_showPopupForSelection']()))),this['disposeWithMe'](_0x16561b(_0x272def[_0x2677a5(0x322)]['pipe'](_0x2cb42f(this[_0x2677a5(0x351)]))[_0x2677a5(0xcb)](()=>this[_0x2677a5(0x1a1)]()))),this['disposeWithMe'](_0x16561b(_0x272def[_0x2677a5(0x1ce)][_0x2677a5(0xd3)](_0x2cb42f(this[_0x2677a5(0x351)]))['subscribe'](()=>this[_0x2677a5(0x308)]()))),this[_0x2677a5(0x172)](_0x16561b(_0x272def[_0x2677a5(0x1e5)][_0x2677a5(0xd3)](_0x2cb42f(this[_0x2677a5(0x351)]))[_0x2677a5(0xcb)](()=>setTimeout(()=>this[_0x2677a5(0x325)](),0x0)))),this['disposeWithMe'](_0x16561b(this['_elementStateService'][_0x2677a5(0x118)][_0x2677a5(0xd3)](_0x2cb42f(this[_0x2677a5(0x351)]))[_0x2677a5(0xcb)](()=>setTimeout(()=>this[_0x2677a5(0x325)](),0x0)))),this[_0x2677a5(0x172)](_0x16561b(this[_0x2677a5(0x388)][_0x2677a5(0xc5)][_0x2677a5(0xd3)](_0x2cb42f(this[_0x2677a5(0x351)]))[_0x2677a5(0xcb)](_0x40889d=>{const _0x207eef=_0x2677a5;_0x40889d?this[_0x207eef(0x308)]():setTimeout(()=>this[_0x207eef(0x325)](),0x0);}))),this[_0x2677a5(0x172)](_0x16561b(this['_boardTextEditingService'][_0x2677a5(0x2e2)][_0x2677a5(0xd3)](_0x2cb42f(this[_0x2677a5(0x351)]))['subscribe'](_0x2164d5=>{const _0x348869=_0x2677a5;(_0x2164d5==null?void 0x0:_0x2164d5[_0x348869(0x1d1)])===this['_renderContext'][_0x348869(0x1d1)]&&(_0x2164d5[_0x348869(0x32e)]?this[_0x348869(0x308)]():setTimeout(()=>this[_0x348869(0x325)](),0x0));})));}[_0x1b778c(0x308)](){const _0x1b8088=_0x1b778c;var _0x256b1a;(_0x256b1a=this[_0x1b8088(0xde)])==null||_0x256b1a['dispose'](),this['_popupDisposable']=null,this['_popupSelectionKey']=null;}[_0x1b778c(0x1a1)](){setTimeout(()=>{const _0x57e4bf=_0x5157;this[_0x57e4bf(0x1fb)]()||this[_0x57e4bf(0x308)]();},0x0);}[_0x1b778c(0x1fb)](){const _0x4b146a=_0x1b778c;let _0x1ec096=this[_0x4b146a(0x1f0)][_0x4b146a(0x305)]();return!!_0x1ec096['context']&&_0x1ec096[_0x4b146a(0x3c3)][_0x4b146a(0xe7)]>0x0&&this[_0x4b146a(0x1bf)]===this[_0x4b146a(0x33c)](_0x1ec096[_0x4b146a(0x310)][_0x4b146a(0x1d1)],_0x1ec096[_0x4b146a(0x310)][_0x4b146a(0x28e)],_0x1ec096[_0x4b146a(0x3c3)]);}['_buildPopupSelectionKey'](_0x366f0d,_0x585d88,_0x1fadcf){const _0xcd4048=_0x1b778c;return _0x366f0d+':'+_0x585d88+':'+_0x1fadcf[_0xcd4048(0x24f)](',');}['_resolveIncomingConnectorStyle'](_0x71eb5e,_0x557d8b,_0x46668a,_0x2825dc){const _0x3757ed=_0x1b778c;let _0x5aec11=this[_0x3757ed(0x399)][_0x3757ed(0x198)](_0x71eb5e,_0x557d8b),_0x4e198e=Object[_0x3757ed(0x346)](_0x5aec11)[_0x3757ed(0x12f)](_0x26be57=>{const _0x13c25f=_0x3757ed;let _0x452f07=_0x55db74(_0x26be57[_0x13c25f(0x201)]);return(_0x452f07==null?void 0x0:_0x452f07['structureScopeId'])===_0x46668a&&_0x452f07[_0x13c25f(0x25e)]===_0x2825dc;});if(_0x4e198e&&_0x3757ed(0x280)in _0x4e198e['element'])return _0x4e198e[_0x3757ed(0x201)]['connectorData'][_0x3757ed(0x224)];}[_0x1b778c(0x325)](){const _0xc95b5=_0x1b778c;var _0xde8501,_0x18dded,_0x5457c3;if(this[_0xc95b5(0x388)][_0xc95b5(0xfd)]){this[_0xc95b5(0x308)]();return;}let _0x3db298=this[_0xc95b5(0x15c)][_0xc95b5(0x396)]();if((_0x3db298==null?void 0x0:_0x3db298['visible'])===!0x0&&_0x3db298[_0xc95b5(0x1d1)]===this[_0xc95b5(0x1da)][_0xc95b5(0x1d1)]){this['_clearPopup']();return;}let _0x53b854=this['_elementStateService']['getSnapshot']();if(_0x53b854[_0xc95b5(0x275)]||_0xb9962a({'context':_0x53b854[_0xc95b5(0x310)],'selectedIds':_0x53b854[_0xc95b5(0x3c3)],'getElementById':(_0x1ddf55,_0x13cf00,_0x92babc)=>this[_0xc95b5(0x399)]['getElementById'](_0x1ddf55,_0x13cf00,_0x92babc)})[_0xc95b5(0x29d)]!==_0xc95b5(0x3a3)){this['_clearPopup']();return;}let _0xcfc84f=this['_renderContext']['scene'][_0xc95b5(0x236)]()[_0xc95b5(0x215)](),_0x297680=Array[_0xc95b5(0x2c9)](_0xcfc84f['values']())['map'](_0x1272ac=>this[_0xc95b5(0x26e)](_0x1272ac))['filter'](_0x3b99fd=>!!_0x3b99fd)[_0xc95b5(0x124)](_0x2e4c07=>!!_0x553933(_0x2e4c07[_0xc95b5(0x22a)][_0xc95b5(0x201)])),_0x2fce69=_0x297680[_0xc95b5(0x12f)](_0x13b98c=>_0x13b98c['elementData'][_0xc95b5(0x2fa)]===_0x53b854[_0xc95b5(0x19d)])??_0x297680[0x0]??this[_0xc95b5(0x222)]();if(!_0x2fce69){this[_0xc95b5(0x308)]();return;}let _0x1f0f81=_0x553933(_0x2fce69[_0xc95b5(0x22a)]['element']);if(!_0x1f0f81){this[_0xc95b5(0x308)]();return;}let _0x269b63=(_0xde8501=this[_0xc95b5(0x399)][_0xc95b5(0x198)](_0x2fce69[_0xc95b5(0x22a)]['unitId'],_0x2fce69[_0xc95b5(0x22a)][_0xc95b5(0x28e)])[_0x1f0f81[_0xc95b5(0x353)]])==null?void 0x0:_0xde8501['element'],_0x5b0ecd=_0x4cc68d(_0x269b63),_0x210789=_0x269b63==null||(_0x18dded=_0x269b63[_0xc95b5(0x2ed)])==null||(_0x18dded=_0x18dded[_0xc95b5(0x155)])==null||(_0x18dded=_0x18dded['layout'])==null?void 0x0:_0x18dded[_0xc95b5(0xd6)],_0x196f69=((_0x5b0ecd==null?void 0x0:_0x5b0ecd['layout'][_0xc95b5(0xd6)])??_0x210789)==='mindmap-vertical'&&(_0x1f0f81['parentNodeId']===null||_0x1f0f81[_0xc95b5(0x132)]===_0xc95b5(0x165)),_0x502846=_0x1f0f81[_0xc95b5(0x333)]!==null&&_0x1f0f81[_0xc95b5(0x132)]!==_0xc95b5(0x165)&&_0x1f0f81['side']!==_0xc95b5(0x35e),_0x5441a0=_0x196f69||_0x502846,_0x4977d1=((_0x5457c3=_0x53b854[_0xc95b5(0x310)])==null?void 0x0:_0x5457c3['unitId'])===_0x2fce69[_0xc95b5(0x22a)][_0xc95b5(0x1d1)]&&_0x53b854[_0xc95b5(0x310)][_0xc95b5(0x28e)]===_0x2fce69['elementData'][_0xc95b5(0x28e)]&&_0x53b854['selectedIds']['length']?_0x53b854[_0xc95b5(0x3c3)]:[_0x2fce69[_0xc95b5(0x22a)]['elementId']],_0x4828ee=this[_0xc95b5(0x33c)](_0x2fce69[_0xc95b5(0x22a)]['unitId'],_0x2fce69['elementData'][_0xc95b5(0x28e)],_0x4977d1);this[_0xc95b5(0xde)]&&this['_popupSelectionKey']===_0x4828ee||(this['_clearPopup'](),this[_0xc95b5(0xde)]=this[_0xc95b5(0x172)](this['_boardCanvasPopManagerService'][_0xc95b5(0x11e)](_0x2fce69[_0xc95b5(0x22a)][_0xc95b5(0x1d1)],_0x2fce69[_0xc95b5(0x22a)]['subUnitId'],_0x2fce69[_0xc95b5(0x20c)],{'componentKey':Kn,'direction':_0xc95b5(0x237),'offset':[0x0,0x8],..._0x5441a0?{'anchorBoundResolver':lr}:null,'extraProps':{'unitId':_0x2fce69[_0xc95b5(0x22a)][_0xc95b5(0x1d1)],'subUnitId':_0x2fce69[_0xc95b5(0x22a)][_0xc95b5(0x28e)],'elementId':_0x2fce69[_0xc95b5(0x22a)]['elementId'],'scopeId':_0x1f0f81[_0xc95b5(0x353)],'isRootNode':_0x1f0f81[_0xc95b5(0x333)]===null,'left':_0x2fce69['elementData'][_0xc95b5(0x201)]['transform'][_0xc95b5(0x344)]??0x0,'top':_0x2fce69['elementData']['element'][_0xc95b5(0x1b0)]['top']??0x0,'shapeData':_0x2fce69['elementData'][_0xc95b5(0x201)][_0xc95b5(0x128)]===_0x5110ee[_0xc95b5(0x176)]?_0x2fce69[_0xc95b5(0x22a)][_0xc95b5(0x201)]['shapeData']:void 0x0,'layout':_0x5b0ecd==null?void 0x0:_0x5b0ecd['layout'],'incomingConnectorStyle':this[_0xc95b5(0x264)](_0x2fce69[_0xc95b5(0x22a)][_0xc95b5(0x1d1)],_0x2fce69[_0xc95b5(0x22a)]['subUnitId'],_0x1f0f81[_0xc95b5(0x353)],_0x2fce69['elementData'][_0xc95b5(0x2fa)])}})),this[_0xc95b5(0x1bf)]=_0x4828ee);}[_0x1b778c(0x222)](){const _0x176fda=_0x1b778c;var _0x27256a;let _0x3b7fb1=this['_elementStateService'][_0x176fda(0x305)](),_0x4bdf2c=_0x3b7fb1[_0x176fda(0x310)],_0x43e758=_0x3b7fb1[_0x176fda(0x19d)]??_0x3b7fb1[_0x176fda(0x3c3)][0x0];if(!_0x4bdf2c||!_0x43e758)return null;let _0x528c82=this[_0x176fda(0x399)][_0x176fda(0x364)](_0x4bdf2c[_0x176fda(0x1d1)],_0x4bdf2c[_0x176fda(0x28e)],_0x43e758);if(!_0x528c82||!_0x553933(_0x528c82[_0x176fda(0x201)]))return null;let _0xdbd26=_0x2a9cbd(_0x4bdf2c['unitId'],_0x43e758),_0x52835f=this[_0x176fda(0x1da)]['scene'],_0x8ef28=((_0x27256a=_0x52835f['getObjectIncludeInGroup'])==null?void 0x0:_0x27256a[_0x176fda(0x360)](_0x52835f,_0xdbd26))??this['_renderContext'][_0x176fda(0x154)][_0x176fda(0xb8)](_0xdbd26);return _0x8ef28?{'object':_0x8ef28,'elementData':_0x528c82}:null;}[_0x1b778c(0x26e)](_0x47ad6a){const _0x599f32=_0x1b778c;var _0x4183a8;if(!_0x47ad6a)return null;let _0x1ac13f=_0x34a5ca(_0x47ad6a[_0x599f32(0x26a)]);if(!_0x1ac13f)return null;let _0x430e29=this[_0x599f32(0x1f0)]['getSnapshot'](),_0x43a90c=((_0x4183a8=_0x430e29['context'])==null?void 0x0:_0x4183a8['unitId'])===_0x1ac13f[_0x599f32(0x1d1)]?_0x430e29[_0x599f32(0x310)][_0x599f32(0x28e)]:void 0x0;if(!_0x43a90c)return null;let _0x32a735=this[_0x599f32(0x399)]['getElementById'](_0x1ac13f[_0x599f32(0x1d1)],_0x43a90c,_0x1ac13f[_0x599f32(0x2fa)]);return _0x32a735?{'object':_0x47ad6a,'elementData':_0x32a735}:null;}};ur=J([q(0x1,_0x407fc1(_0x55f626)),q(0x2,_0x407fc1(_0x3c52ab)),q(0x3,_0x407fc1(_0x3a3db4)),q(0x4,_0x407fc1(_0x53de0e)),q(0x5,_0x407fc1(_0x1e9e32))],ur);const dr=_0x1b778c(0x2ba),fr=_0xd8bbf4[_0x1b778c(0x230)];function _0x5157(_0x45b532,_0x1e145a){_0x45b532=_0x45b532-0xaa;const _0x398cce=_0x398c();let _0x5157c2=_0x398cce[_0x45b532];return _0x5157c2;}function _0x398c(){const _0x118edb=['getOwnPropertyDescriptor','arrow-left','_commandService','boards-mind-ui.toolbar.primary.fontColor','setConfig','FOCUSING_MIND_MAP_BLANK_BOARD','boards-mind-ui.toolbar.action.paste','1233564TkGcTY','_navigateByTopology','div','univer-flex-wrap','join','findIndex','syncExecuteCommand','success','getObjectIncludeInGroup','boards-mind-ui.panel.cancel','addSibling','_restoreObjectToDragStart','toLowerCase','visualRadius','_getZoomRatio','boards-mind-ui.panel.spacing.parentGap','structured','params','strikethrough','childNodeId','getUnit','TRUE','lineWidth','addEventListener','mindmap-horizontal','_resolveIncomingConnectorStyle','flatMap','onChange','curve','_scheduleAttachObjectPointerListeners','_childDragActivated','oKey','min','tree-left','point','_resolveSelectedEntry','depth','evented','Tree\x20diagram','add-child','univer-w-full\x20univer-text-base','_createTopologyBoundsByElementId','isTransforming','RIGHT','@univerjs-pro/boards-mind-ui','children','textAlign','solid','reparent','_executeNodeOperation','save','_configService','_findChildNodeAtPoint','connectorData',',\x20minmax(0,\x201fr))','foreignAttributes','_syncChildDragPreviewObject','univer-h-auto\x20univer-min-h-12\x20univer-whitespace-normal\x20univer-px-2\x20univer-py-2','Escape','_childDragSelectionHidden','univer-w-full\x20univer-text-xs','board.mind-map.description-dialog','collapsePlusMinDistance','badgeFontWeight','_injector','registerCommand','JUSTIFIED','subUnitId','branchGap','changing$','_resolveCreateChildSide','M4.5\x207.5h4.2c1.9\x200\x203.3\x201.5\x203.3\x203.3v2.4c0\x201.8\x201.4\x203.3\x203.3\x203.3h4.2','boards-mind-ui.alignRight','elementRemove$','run','ghostTextColor','controls','_attachObjectEvents','boards-mind-ui.toolbar.action.layout','objectAlpha','M16\x2028c16\x200\x2025-13\x2043-13M16\x2028c16\x200\x2025\x2013\x2043\x2013','boards-mind-ui.toolbar.panel.line','owner','boards-mind-ui.panel.addText','BOTTOM','univer-text-base','pointercancel','direction','getActivePageId','orderKey','editCurrentNode','branchLineType','addDescription','fillText','boards-mind-ui.descriptionPlaceholder','boards-mind-ui.config','boards-mind-ui.panel.nodeStyle.','italic','trim','add-sibling-after','pointerStartX','strokeWidth','_componentManager','stopPropagation','pluginName','hypot','isRootNode','boards-mind-ui.toolbar.action.','referenceNodeId','gap','_createKeyboardShortcutOperation','board-mind-map-pending-insert-object','univer-h-28\x20univer-resize-none','boards-mind-ui.panel.exportOPML','univer-size-5','transformByState','hasChildren','_consumeControlEvent','_uiStateService','writeText','beginPath','addParentNode','collapsedDescendantCount','decorate','prototype','rootStartBounds','from','canvas','boards-mind-ui.panel.tab.importExport','registerRenderModule','hostSize','SolidLine','fontSize','renderGhostNode','0\x200\x2024\x2024','_getBlankBoardContext','number','show','_getPointerScreenPoint','BACKSPACE','timelineAxisGap','_disposeActivePointerDragListeners','iterator','elementStateService','_countDescendants','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','unsubscribe','foldChildNodes','univer-w-[202px]\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20univer-py-4\x20univer-shadow-lg','selectElements','6\x207','editingParams$','slice','icon','_shortcutService','ArrowLeft','makeDirtyNoDebounce','_updateShapeText','_previewHostSize','univer-grid\x20univer-w-full\x20univer-gap-2','boundsByElementId','activeEditingId','custom','add-child-top','_copySelectedNode','detachWhenNoSnap','branch-curve','siblingHoverRadius','push','M15\x2031h50M35\x2031V18c0-4\x203-7\x208-7h9M35\x2031v13c0\x204\x203\x207\x208\x207h9','rootRadius','_resolveCompleteSelectedScope','lineTo','ARROW_UP','_attachActivePointerDragListeners','elementId','_capturePointerChildDragStart','_provider','M40\x209v40M40\x2020c8\x200\x2011\x204\x2011\x2011v8M40\x2035c-8\x200-11\x204-11\x2011v4','boards-mind-ui.panel.nodeStyle.fontSize','Select','_queuedLayouts','board-mind-map-node-controls-object','delete','boards-mind-ui.panel.structureKind.treeLeft','M4.5\x2016.5h4.2c1.9\x200\x203.3-1.5\x203.3-3.3','getSnapshot','_resolveDirtyBounds','nodeHeight','_clearPopup','style-divider','boards-mind-ui.panel.spacing.branchGap','_pasteAsNewMindMap','_insertMindMap','Timeline','_stateService','open-description','context','meta','M19.5\x207.5h-4.2c-1.9\x200-3.3\x201.5-3.3\x203.3','currentColor','_getPointFromEvent','scopeId','width','730829LeENgw','univer-flex\x20univer-items-center\x20univer-gap-1\x20univer-truncate\x20univer-rounded\x20univer-py-1\x20univer-text-left\x20univer-text-gray-800','tree-right','close','add-child-right','univer-h-9\x20univer-w-12','small','dash','boards-mind-ui.panel.structureKind.treeAlternate','_executeAndLayout','boards-mind-ui.toolbar.panel.typography','clearControl$','bounds','_handleElementUpdate','_showPopupForSelection','getScene','_removeDragPreviewObject','sourceHighlightStrokeColor','_openSelectedTextEditing','center','M56\x2011h11M56\x2051h11','univer-grid-cols-3','univer-text-xs','visible','add-child-bottom','reduce','doc','boards-mind-ui.panel.structureKind.mindmapHorizontal','parentNodeId','horizontalGap','primary','_initEditingRestore','arrow-right','dirtyPaddingScreen','px\x20','removeObjects','default','_buildPopupSelectionKey','fontColor','univer-space-y-1','span','blueprint','132FrUMdd','symbol','layout','left','setData','values','font','items','beginMindMapMode','glyphWidth','Touch','toggle-collapse','badgeCount','vertical','_syncPreviewObject','tree-alternate','dispose$','requestRender','structureScopeId','univer-flex\x20univer-min-w-0\x20univer-flex-1\x20univer-gap-2','setLineDash','univer-bg-[#e8eefc]\x20univer-text-[#2f6fed]\x20hover:univer-bg-[#e8eefc]','univer-h-12\x20univer-w-32\x20univer-text-base','univer-mb-3\x20univer-w-full','max','Dash','layout-panel-divider','executeCommand','horizontalAlign','bottom','board.operation.mind-map.keyboard-shortcut','call','getHitControl','_activeScopeId','_isControlEvent','getElementById','dropdown','_cloneBlueprintNode','univer-h-32\x20univer-resize-none\x20univer-text-sm','fontFamily','panel','arc','_isActive','opacity','M24\x2012v32M24\x2019c0\x204\x203\x206\x207\x206h7M24\x2029c0\x204\x203\x206\x207\x206h7M24\x2039c0\x204\x203\x206\x207\x206h7','resolve','collapsed','key','incomingConnectorStyle','_enableMindMapToolbarTool','univer-mb-2\x20univer-text-lg\x20univer-text-gray-900','dragObjectAlpha','getConfig','kind','opml','subscribeEvent','_syncChildDragPreview','clearPendingInsert','onCommandExecuted','univer-flex\x20univer-flex-col\x20univer-gap-2','_syncElementDataToScene','univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-gray-0','sourceHaloScreen','univer-max-w-[min(760px,calc(100vw-32px))]','hide','M12\x2026h11M58\x2036h11M12\x2045h11','set','scaleY','FOCUSING_MIND_MAP_NODE','_updateHostSize','zoomRatio','_interactionSurfaceService','boards-mind-ui.panel.branchLineType.roundedOrthogonal','RoundDot','stroke','repeat(','_getBoardsUIConfig','boards-mind-ui.panel.spacing.siblingGap','getContextValue','univer-mb-3\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-900\x20dark:!univer-text-gray-100','_drawConnectorPreview','boards-mind-ui.cancel','DELETE','toolbar','_restoreActivePreview','getEditing','dashType','_syncRootScopePreview','_boardElementService','UNIVER_BOARD','ArrowRight','dot','boards-mind-ui.toolbar.primary.more','_activeNodeId','_getSelectedMindMapContext','localeService','boards-mind-ui.toolbar.primary.line','boards-mind-ui.panel.layout.both','mind-map','boards-mind-ui.panel.structureKind.mindmapVertical','fallbackNodeWidth','setTemplate','tree-diagram','surfaceColor','getTemplate','[&_input]:univer-h-12\x20[&_input]:univer-text-base','more','fill','onStarting','_syncContext','LEFT','_activePreview','_getPointerLiveBounds','Solid','_applyRootTranslation','dialogService','_queueLayout','setShapeSidebarOpen','badgeFontSize','offsetX','fonts$','nodeWidth','_createQuoteShortcut','addObject','child','_insertStateService','130ogflog','sourceDashScreen','timeline-vertical','textEditingService','selectedIds','univer-border-b\x20univer-border-gray-200\x20univer-p-3','Branch','transientControl','rootText','defineProperty','registerAdapter','_config','text','_resolveNodeSize','boards-mind-ui.panel.tab.structure','textStyle','onDblclick$','_getDependencies','univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-p-4','dispose','boards-mind-ui.alignCenter','setEditing','hasCommand','branch-rounded-orthogonal','_normalizeChildren','nodeId','labelKey','getObject','after','mind-map-fill','_instanceService','height','getUnitId','onReady','_seedExistingNodeSizes','string','makeDirty','ArrowDown','_resolveHostSize','boards-mind-ui.panel.emptyNodes','interactionSurfaceActive$','_addChild','getElementDataForUnit','boards-mind-ui.panel.title','offsetY','panOffset','subscribe','_subscribeElementDataChanges','_resolveChildSide','_template','localeCompare','keys','_resolveControlSide','objects','pipe','boards-mind-ui.description','exec','structureKind','_getLiveObjectBounds','newParentNodeId','quadraticCurveTo','_lastChildDragAction','_isChildDragPastActivationThreshold','_resolvePreviewTextStyle','scope','_popupDisposable','0\x200\x2080\x2056','radius','univer-min-h-12\x20univer-flex-1','ignoreExternalFocusChanges','M20\x2025h13M20\x2035h13M20\x2045h13','_removeObject','FOCUSING_MIND_MAP_TEXT_EDITOR','_previewRefreshService','length','onPointerUp$','boards-mind-ui.toolbar.action.fontColor','_rememberNodeSize','orthogonal','removeEventListener','getFonts','boards-mind-ui.toolbar.panel.more','moveTo','MIDDLE','M31\x2013c9\x208\x209\x2022\x2018\x2030M49\x2013c-9\x208-9\x2022-18\x2030M31\x2013c-7\x204-9\x209-9\x2015s2\x2011\x209\x2015M49\x2013c7\x204\x209\x209\x209\x2015s-2\x2011-9\x2015','ghostRadius','univer-text-xs\x20univer-text-gray-400\x20dark:!univer-text-gray-500','mindmap-vertical','_objectEventDisposables','renderContext','interactionMode','univer-min-h-12\x20univer-w-full','_syncDragPreview','boards-mind-ui.alignTop','clipboardService','board-mind-map-description-dialog','isInteractionSurfaceActive','univer-grid\x20univer-h-14\x20univer-overflow-hidden\x20univer-rounded-xl\x20univer-bg-gray-100\x20univer-p-1','registerShortcut','univer-cursor-not-allowed\x20univer-text-gray-300\x20hover:univer-bg-transparent','5rKRVpr','_isPointInBounds','MindMap','_ensurePreviewObject','rgb','#d8dce3','textColor','has','_getBoardPointFromEvent','createRunner','getInjector','map','_lastPoint','ghost','hideRootControls','univer-flex\x20univer-justify-end\x20univer-gap-2','hoveredControl','render','underline','_localeService','targetNodeId','pointerup','preventDefault','state$','ghostBounds','description','_resolveChildDragTopologyAction','38902HoLHCi','11ucDvra','attachPopupToObject','rounded-orthogonal','structure','_getMindMapChildren','_cancelPointerChildDrag','_contextService','filter','_resolveRootTopLeft','clientY','onPointerMove$','type','arrow-down','Enter','enabled','primaryColor','zIndex','getTouchHitDistance','find','rootFontSize','1.8','side','addChildRadius','all','clearSelection','collapse-all','textBaseline','getCurrentUnitOfType','strokeStyle','navigator','boards-mind-ui.panel.tab.layout','complete','univer-min-h-12\x20univer-px-3','univer-h-12\x20univer-text-base','OPERATION','boards-mind-ui.alignMiddle','_applyPointerChildDrag','promote','board.mind-map.floating-toolbar','buttons','M42\x2012v32M42\x2020c0\x204-3\x206-7\x206h-7M42\x2030c0\x204\x203\x206\x207\x206h7M42\x2039c0\x204-3\x206-7\x206h-7','pointerStartY','M17\x2033h21M38\x2017v30M38\x2017h24','boards-mind-ui.panel.pasteOPML','copy','lineWidthScreen','_openDescriptionDialog','boards-mind-ui.panel.nodeStyle.fontFamily','_init','setHoveredControl','_removePreviewObject','add','get','documentStyle','with','scene','mindmap','snapDistance','sourceHighlightFillColor','boards-mind-ui.toolbar.action.delete','_toFiniteBounds','_registerComponents','effectAllowed','_boardTextEditingService','move','_executeRootAnchoredLayout','univer-size-6\x20univer-rounded\x20univer-border\x20univer-border-solid\x20univer-border-gray-200','line','shapeId','engine','1254606FaObTu','tools','top','importExport','ghostFillColor','_intrinsicSizeService','collapseAllNodes','timeline-horizontal','addChildNode','isHit','action','pointermove','M47\x2025h13M47\x2035h13M47\x2045h13','add-sibling-or-child','boards-mind-ui.toolbar.action.stroke','disposeWithMe','board.operation.mind-map.open-panel','version','getPayload','Shape','_sidebarService','deviceType','dividerBefore','globalAlpha','before','univer-space-y-2','rootFontWeight','refresh$','_captureDragStart','univer-items-center','paste-as-new','register','commandService','boards-mind-ui.panel.rename','bold','button','_dragStart','add-sibling-before','univer-text-gray-500','660248hHTTXR','setContextValue','placement','CENTER','liveRootBounds','text/plain','restore','focusUnit','edit-text','197988FVDCxY','univer-flex\x20univer-gap-2','_state','unit','getState','getElementData','popup','arrow-up','boards-mind-ui.toolbar.action.copy','univer-min-h-12\x20univer-w-full\x20univer-justify-between','focusedId','next','_refresh$','_nodeSizeByKey','_clearPopupIfSelectionChanged','borderWidth','_objectPointerDisposables','_resolvePreviewSourceBounds','divider-','35NxAdPY','add-child-left','boards-mind-ui.toolbar.primary.typography','abs','_syncControls','sort','skipNextObservers','_collapseAll','open','_handlePointerDown','transform','glyphHoverWidth','clientX','univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','round','_resolveControlBounds','title','defaultValue','111429QCGiiN','_activePointerDragDisposables','scaleX','boards-mind-ui.alignBottom','_syncPointerChildDragPreview','some','notify','_popupSelectionKey','_resolveRootChildControlSides','uiStateService','then','_layoutFlushScheduled','getShortcutDisplay','getCanvasElement','boards-mind-ui.panel.importOPML','_previewObject','constructor','_consumePointerEvent','detach','univer-grid\x20univer-grid-cols-4\x20univer-gap-2','connectorAlpha','label','changeStart$','boards-mind-ui.panel.branchLineType.orthogonal','_pointerDragStart','unitId','connectorAffordance','true','_resolveCurrentBoardContext','forEach','extraProps','textPaddingScreen','_mindMapClipboardService','root','_renderContext','onPointerDown$','SquareDot','boards-mind-ui.panel.structureKind.timelineVertical','_object','dropEffect','_ensureObject','parentBounds','_pasteUnderSelectedNode','_applyScopeTranslation','boards-mind-ui.panel.layout.right','changeEnd$','addChild','createControl$','packageName','isFinite','_instanceSrv','_sidebarDisposable','univer-h-7\x20univer-min-w-9\x20univer-w-auto\x20univer-gap-1\x20univer-px-1.5','_getElementKey','_hideSelectionForChildDrag','_executeChildDragAction','_elementStateService','transientPreview','registerRuntimeScopedDependencies','right','paste','lineCap','getAncestorScale','univer-flex\x20univer-h-12\x20univer-min-w-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-border-0\x20univer-bg-transparent\x20univer-p-0\x20univer-text-gray-900\x20univer-outline-none\x20univer-transition-colors\x20hover:univer-bg-gray-0','data','fillStyle','_resolveArrowNavigationTarget','_isPopupSelectionStillActive','_attachObjectPointerListeners','_cloneBlueprint','allowRootReparent','elementAdd$','_handlePointerMove','element','textFill','dataModel','isRoot','_drawSourceHighlight','univer-space-y-3','_resetContext','_textEditingService','_attachObjectPointerScheduled','verticalAlign','_undoRedoGroupService','object','board.mind-map.panel','circle','getRenderUnitById','updateState','path','viewportPanOffset','_dragPreviewObject','univer-min-w-[240px]','getSelectedObjectMap','1.2.0','getBoundingClientRect','glyphSize','addSiblingNode','boards-mind-ui.panel.structureKind.timelineHorizontal','focus','elementUpdate$','dataTransfer','_addSiblingOrChild','closePath','_ensureDragPreviewObject','activated$','_resolveSelectedMindMapEntryFromState','none','style','boards-mind-ui.panel.layout.left','shapeText','rootNodeId','_getSceneObject','ArrowUp','elementData','boards-mind-ui.panel.searchNodes','_executeCreateAndEdit','boards-mind-ui.panel.branchLineType.curve','value','color','preview','item','setActiveTool','_createShortcutItems','shapeData','handleShortcut','getTransformerByCreate','top-center','viewing','_renderManagerService','connector','middle','sourceBounds','siblingGap','elementService','univer-mb-0','updateElement','svg','function','branch-orthogonal'];_0x398c=function(){return _0x118edb;};return _0x398c();}function pr(_0x5eeb54,_0x417f38){const _0x5bd695=_0x1b778c;return(_0x5eeb54??[])[_0x5bd695(0x330)]((_0x4f6651,_0x2f49a6)=>(_0x4f6651[_0x2f49a6[_0x5bd695(0x132)]??_0x417f38][_0x5bd695(0x2f3)](_0x2f49a6),_0x4f6651),{'left':[],'right':[],'top':[],'bottom':[]});}function mr(_0x4cdb37){const _0x9f1ebd=_0x1b778c;return _0x4cdb37===_0x9f1ebd(0x26c)||_0x4cdb37==='tree-right'||_0x4cdb37==='tree-alternate';}function hr(_0xb9d0f5){const _0x4465a1=_0x1b778c;return _0xb9d0f5===_0x4465a1(0x16a)||_0xb9d0f5===_0x4465a1(0x3c1);}function gr(_0x19683a,_0x329948,_0x43dfc8){const _0x487bec=_0x1b778c;return _0x43dfc8==='tree-left'?_0x487bec(0x344):_0x43dfc8===_0x487bec(0x319)?_0x487bec(0x1f3):_0x19683a[_0x487bec(0x132)]===_0x487bec(0x344)||_0x19683a[_0x487bec(0x132)]===_0x487bec(0x1f3)?_0x19683a[_0x487bec(0x132)]:_0x329948%0x2==0x0?_0x487bec(0x344):_0x487bec(0x1f3);}function _r(_0x1c60c3,_0x574963){const _0x1661f7=_0x1b778c;return(_0x574963==null?void 0x0:_0x574963[_0x1661f7(0x1d9)][_0x1661f7(0x278)])??_0x1c60c3??[];}var vr=class extends _0x145c14{constructor(_0x153b35=dr,_0x171060){const _0x173229=_0x1b778c;super(_0x153b35),K(this,'_state',{'point':null,'children':[]}),this[_0x173229(0x270)]=!0x1,this[_0x173229(0x12d)]=_0x5afe40[_0x173229(0x1f1)],this['updateState'](_0x171060);}['updateState'](_0x2c83f3){const _0x229f18=_0x1b778c;this['_state']={...this[_0x229f18(0x195)],..._0x2c83f3},this[_0x229f18(0x195)]['point']?this[_0x229f18(0x2d4)]():this['hide'](),this[_0x229f18(0xc1)](!0x0);}['isHit'](_0x4e565e){return!0x1;}[_0x1b778c(0x112)](_0x19d45f,_0x15ddce){const _0x3a141c=_0x1b778c;let _0x33ab70=this[_0x3a141c(0x195)][_0x3a141c(0x26d)];if(!_0x33ab70||!this[_0x3a141c(0x32e)])return this['makeDirty'](!0x1),this;let _0x48ee61=Number[_0x3a141c(0x1e9)](this[_0x3a141c(0x195)][_0x3a141c(0x387)])&&(this['_state']['zoomRatio']??0x0)>0x0?this[_0x3a141c(0x195)]['zoomRatio']:0x1,_0x26046d=_0x3d25e3['rootWidth'],_0x30937c=_0x3d25e3['rootHeight'],_0x2a891a=_0x3d25e3['nodeWidth'],_0x1af485=_0x3d25e3[_0x3a141c(0x307)],_0x34779f=_0x3e5dd9[_0x3a141c(0x334)],_0x1dffef=_0x3e5dd9[_0x3a141c(0x23d)],_0x5b9ed8=this[_0x3a141c(0x195)]['structureKind']===_0x3a141c(0xf4),_0x20154e=pr(this[_0x3a141c(0x195)][_0x3a141c(0x278)],_0x5b9ed8?_0x3a141c(0x35e):_0x3a141c(0x1f3)),_0x5c81cf=_0x33ab70['x']-_0x26046d/0x2,_0x545b81=_0x33ab70['y']-_0x30937c/0x2;if(_0x19d45f[_0x3a141c(0x27d)](),_0x19d45f['globalAlpha']=X[_0x3a141c(0x29a)],_0x19d45f[_0x3a141c(0x261)]=X[_0x3a141c(0x14a)]/_0x48ee61,_0x19d45f['strokeStyle']=X[_0x3a141c(0x12c)],hr(this[_0x3a141c(0x195)]['structureKind'])){let _0x4d56a4=_r(this[_0x3a141c(0x195)][_0x3a141c(0x278)],this[_0x3a141c(0x195)][_0x3a141c(0x340)]),_0x5e4649=this[_0x3a141c(0x195)][_0x3a141c(0xd6)]===_0x3a141c(0x16a);if(_0x4d56a4['length']>0x0){if(_0x19d45f[_0x3a141c(0x2c3)](),_0x5e4649){let _0x402d89=_0x2a891a,_0xb7680=_0x1af485,_0x58244d=_0x3e5dd9[_0x3a141c(0x2d7)],_0x18876f=_0x33ab70['y'],_0x1d0619=_0x5c81cf+_0x26046d,_0x361ef0=_0x33ab70['y']-_0xb7680/0x2,_0x300061=_0x5c81cf+_0x26046d+_0x58244d;_0x19d45f[_0x3a141c(0xef)](_0x1d0619,_0x18876f),_0x19d45f[_0x3a141c(0x2f7)](_0x300061,_0x18876f),_0x4d56a4[_0x3a141c(0x1d5)]((_0x54cc33,_0x515ad4)=>{const _0x503857=_0x3a141c;let _0x5af9ff=_0x300061+_0x515ad4*(_0x402d89+_0x58244d);if(_0x515ad4>0x0){let _0x65241c=_0x300061+(_0x515ad4-0x1)*(_0x402d89+_0x58244d)+_0x402d89;_0x19d45f['moveTo'](_0x65241c,_0x18876f),_0x19d45f[_0x503857(0x2f7)](_0x5af9ff,_0x18876f);}_0x19d45f[_0x503857(0xef)](_0x5af9ff,_0x18876f),_0x19d45f[_0x503857(0x2f7)](_0x5af9ff+_0x402d89,_0x18876f);}),_0x19d45f[_0x3a141c(0x38b)](),_0x4d56a4['forEach']((_0x168c01,_0x50d9c4)=>{const _0x1526ae=_0x3a141c;Z(_0x19d45f,_0x300061+_0x50d9c4*(_0x402d89+_0x58244d),_0x361ef0,_0x402d89,_0xb7680,X[_0x1526ae(0xf2)]),_0x19d45f[_0x1526ae(0x1f9)]=X[_0x1526ae(0x167)],_0x19d45f['fill'](),_0x19d45f['stroke']();}),_0x4d56a4[_0x3a141c(0x1d5)]((_0x235066,_0x1c5090)=>{const _0x1c58ed=_0x3a141c;if(!(_0x1c58ed(0x278)in _0x235066)||_0x235066['children']['length']===0x0)return;let _0x4705fc=_0x300061+_0x1c5090*(_0x402d89+_0x58244d),_0x5a7f32=_0x4705fc+_0x402d89/0x2,_0x52c9c2=_0x235066['side']===_0x1c58ed(0x35e)?_0x1c58ed(0x35e):_0x1c58ed(0x165),_0x54946b=_0x235066[_0x1c58ed(0x278)]['slice'](0x0,0x2),_0x488686=_0x54946b[_0x1c58ed(0xe7)]*_0xb7680+Math[_0x1c58ed(0x359)](0x0,_0x54946b['length']-0x1)*_0x1dffef,_0x2df080=_0x4705fc+_0x402d89+_0x3e5dd9[_0x1c58ed(0x28f)],_0x110b95=_0x52c9c2===_0x1c58ed(0x165)?_0x361ef0-_0x34779f-_0x488686:_0x361ef0+_0xb7680+_0x34779f,_0x3e0f7c=_0x110b95+_0x488686/0x2;_0x19d45f[_0x1c58ed(0x2c3)](),_0x19d45f[_0x1c58ed(0xef)](_0x5a7f32,_0x52c9c2===_0x1c58ed(0x165)?_0x361ef0:_0x361ef0+_0xb7680),_0x19d45f[_0x1c58ed(0x2f7)](_0x5a7f32,_0x3e0f7c),_0x19d45f['lineTo'](_0x2df080,_0x3e0f7c),_0x54946b[_0x1c58ed(0x1d5)]((_0x16059e,_0x1d73de)=>{const _0x53ef7e=_0x1c58ed;let _0x288331=_0x110b95+_0x1d73de*(_0xb7680+_0x1dffef)+_0xb7680/0x2;_0x19d45f[_0x53ef7e(0xef)](_0x2df080,_0x288331),_0x19d45f[_0x53ef7e(0x2f7)](_0x2df080+_0x402d89,_0x288331);}),_0x19d45f['stroke'](),_0x54946b[_0x1c58ed(0x1d5)]((_0x276514,_0x3a99aa)=>{const _0x24adc6=_0x1c58ed;let _0x239247=_0x110b95+_0x3a99aa*(_0xb7680+_0x1dffef);Z(_0x19d45f,_0x2df080,_0x239247,_0x402d89,_0xb7680,X[_0x24adc6(0xf2)]),_0x19d45f[_0x24adc6(0x1f9)]=X[_0x24adc6(0x167)],_0x19d45f[_0x24adc6(0x3ac)](),_0x19d45f[_0x24adc6(0x38b)]();});});}else{let _0x36c3ff=_0x33ab70['x'],_0x26e4ad=_0x545b81+_0x30937c,_0x4183f1=_0x3e5dd9[_0x3a141c(0x2d7)],_0x19288e=_0x545b81+_0x30937c+_0x4183f1,_0x2c3e53=_0x19288e+(_0x4d56a4[_0x3a141c(0xe7)]-0x1)*(_0x1af485+_0x4183f1)+_0x1af485/0x2;_0x19d45f[_0x3a141c(0xef)](_0x36c3ff,_0x26e4ad),_0x19d45f['lineTo'](_0x36c3ff,_0x2c3e53),_0x4d56a4[_0x3a141c(0x1d5)]((_0x4510eb,_0x4a9e4e)=>{const _0x50439b=_0x3a141c;let _0x4e4ea6=_0x19288e+_0x4a9e4e*(_0x1af485+_0x4183f1)+_0x1af485/0x2,_0x19c3ec=_0x4510eb[_0x50439b(0x132)]===_0x50439b(0x1f3)?_0x50439b(0x1f3):_0x50439b(0x344),_0x136687=_0x19c3ec==='right'?_0x36c3ff+_0x3e5dd9['branchGap']:_0x36c3ff-_0x3e5dd9[_0x50439b(0x28f)]-_0x2a891a,_0x483285=_0x19c3ec===_0x50439b(0x1f3)?_0x136687:_0x136687+_0x2a891a;_0x19d45f['moveTo'](_0x36c3ff,_0x4e4ea6),_0x19d45f['lineTo'](_0x483285,_0x4e4ea6);}),_0x19d45f[_0x3a141c(0x38b)](),_0x4d56a4[_0x3a141c(0x1d5)]((_0x529d33,_0x35f104)=>{const _0x4cc287=_0x3a141c;let _0x5cc04f=_0x19288e+_0x35f104*(_0x1af485+_0x4183f1);Z(_0x19d45f,(_0x529d33[_0x4cc287(0x132)]===_0x4cc287(0x1f3)?_0x4cc287(0x1f3):'left')==_0x4cc287(0x1f3)?_0x36c3ff+_0x3e5dd9[_0x4cc287(0x28f)]:_0x36c3ff-_0x3e5dd9[_0x4cc287(0x28f)]-_0x2a891a,_0x5cc04f,_0x2a891a,_0x1af485,X[_0x4cc287(0xf2)]),_0x19d45f[_0x4cc287(0x1f9)]=X['ghostFillColor'],_0x19d45f[_0x4cc287(0x3ac)](),_0x19d45f['stroke']();}),_0x4d56a4['forEach']((_0x106c25,_0x31ec0c)=>{const _0x802be6=_0x3a141c;if(!('children'in _0x106c25)||_0x106c25[_0x802be6(0x278)]['length']===0x0)return;let _0x39ba3d=_0x19288e+_0x31ec0c*(_0x1af485+_0x4183f1)+_0x1af485/0x2,_0x593b46=_0x106c25[_0x802be6(0x132)]==='right'?_0x802be6(0x1f3):_0x802be6(0x344),_0x50de21=_0x106c25['children'][_0x802be6(0x2e3)](0x0,0x2),_0x45e159=_0x50de21['length']*_0x1af485+Math[_0x802be6(0x359)](0x0,_0x50de21[_0x802be6(0xe7)]-0x1)*_0x1dffef,_0x5d38db=_0x593b46===_0x802be6(0x1f3)?_0x36c3ff+_0x3e5dd9['branchGap']:_0x36c3ff-_0x3e5dd9[_0x802be6(0x28f)]-_0x2a891a,_0x1b4033=_0x593b46==='right'?_0x5d38db+_0x2a891a+_0x34779f:_0x5d38db-_0x34779f-_0x2a891a,_0x40f5fe=_0x39ba3d-_0x45e159/0x2,_0xc3b07b=_0x593b46===_0x802be6(0x1f3)?_0x5d38db+_0x2a891a:_0x5d38db,_0x15ee39=_0x593b46===_0x802be6(0x1f3)?_0x1b4033:_0x1b4033+_0x2a891a;_0x19d45f[_0x802be6(0x2c3)](),_0x19d45f[_0x802be6(0xef)](_0xc3b07b,_0x39ba3d),_0x19d45f[_0x802be6(0x2f7)](_0x15ee39,_0x39ba3d),_0x50de21[_0x802be6(0x1d5)]((_0x8346d5,_0x252c16)=>{const _0x5d2c7b=_0x802be6;let _0x281efa=_0x40f5fe+_0x252c16*(_0x1af485+_0x1dffef)+_0x1af485/0x2;_0x19d45f['moveTo'](_0x15ee39,_0x281efa),_0x19d45f['lineTo'](_0x593b46===_0x5d2c7b(0x1f3)?_0x1b4033+_0x2a891a:_0x1b4033,_0x281efa);}),_0x19d45f[_0x802be6(0x38b)](),_0x50de21['forEach']((_0xdfee09,_0x15d6a2)=>{const _0x288c3d=_0x802be6;let _0x504937=_0x40f5fe+_0x15d6a2*(_0x1af485+_0x1dffef);Z(_0x19d45f,_0x1b4033,_0x504937,_0x2a891a,_0x1af485,X[_0x288c3d(0xf2)]),_0x19d45f['fillStyle']=X[_0x288c3d(0x167)],_0x19d45f[_0x288c3d(0x3ac)](),_0x19d45f['stroke']();});});}}}else{if(mr(this[_0x3a141c(0x195)]['structureKind'])){let _0x178a59=this[_0x3a141c(0x195)][_0x3a141c(0x278)]??[],_0x32dc59=_0x545b81+_0x30937c,_0x122b5d=_0x32dc59+_0x34779f,_0x45e507=_0x33ab70['x'];if(_0x178a59[_0x3a141c(0xe7)]>0x0){let _0x1b15af=_0x122b5d+(_0x178a59[_0x3a141c(0xe7)]-0x1)*(_0x1af485+_0x1dffef)+_0x1af485/0x2;_0x19d45f['beginPath'](),_0x19d45f['moveTo'](_0x45e507,_0x32dc59),_0x19d45f[_0x3a141c(0x2f7)](_0x45e507,_0x1b15af),_0x178a59['forEach']((_0x40e35d,_0xdae9da)=>{const _0x34f348=_0x3a141c;let _0x23f4ea=gr(_0x40e35d,_0xdae9da,this[_0x34f348(0x195)][_0x34f348(0xd6)]),_0x315c85=_0x122b5d+_0xdae9da*(_0x1af485+_0x1dffef),_0x4d3678=_0x23f4ea===_0x34f348(0x1f3)?_0x45e507+_0x34779f:_0x45e507-_0x34779f-_0x2a891a,_0x3c6ee1=_0x315c85+_0x1af485/0x2;_0x19d45f[_0x34f348(0xef)](_0x45e507,_0x3c6ee1),_0x19d45f[_0x34f348(0x2f7)](_0x23f4ea===_0x34f348(0x1f3)?_0x4d3678:_0x4d3678+_0x2a891a,_0x3c6ee1);}),_0x19d45f[_0x3a141c(0x38b)](),_0x178a59[_0x3a141c(0x1d5)]((_0x415e02,_0x59946d)=>{const _0x356800=_0x3a141c;let _0x4fc6be=gr(_0x415e02,_0x59946d,this[_0x356800(0x195)][_0x356800(0xd6)]),_0x315223=_0x122b5d+_0x59946d*(_0x1af485+_0x1dffef);Z(_0x19d45f,_0x4fc6be==='right'?_0x45e507+_0x34779f:_0x45e507-_0x34779f-_0x2a891a,_0x315223,_0x2a891a,_0x1af485,X[_0x356800(0xf2)]),_0x19d45f['fillStyle']=X[_0x356800(0x167)],_0x19d45f[_0x356800(0x3ac)](),_0x19d45f[_0x356800(0x38b)]();});}}else _0x5b9ed8&&[_0x3a141c(0x165),_0x3a141c(0x35e)]['forEach'](_0x2fa2a7=>{const _0x71d3d1=_0x3a141c;let _0x2304ad=_0x20154e[_0x2fa2a7];if(_0x2304ad['length']===0x0)return;let _0x50d385=_0x2304ad[_0x71d3d1(0xe7)]*_0x2a891a+Math[_0x71d3d1(0x359)](0x0,_0x2304ad[_0x71d3d1(0xe7)]-0x1)*_0x1dffef,_0xb7474=_0x33ab70['x']-_0x50d385/0x2,_0x5d4d7a=_0x2fa2a7===_0x71d3d1(0x35e)?_0x545b81+_0x30937c:_0x545b81,_0x2b91af=_0x2fa2a7===_0x71d3d1(0x35e)?_0x5d4d7a+_0x3e5dd9[_0x71d3d1(0x28f)]:_0x5d4d7a-_0x3e5dd9['branchGap'],_0xcb96e3=_0x2fa2a7===_0x71d3d1(0x35e)?_0x545b81+_0x30937c+_0x34779f:_0x545b81-_0x34779f-_0x1af485;_0x19d45f[_0x71d3d1(0x2c3)](),_0x19d45f[_0x71d3d1(0xef)](_0x33ab70['x'],_0x5d4d7a),_0x19d45f['lineTo'](_0x33ab70['x'],_0x2b91af),_0x2304ad[_0x71d3d1(0xe7)]>0x1&&(_0x19d45f[_0x71d3d1(0xef)](_0xb7474+_0x2a891a/0x2,_0x2b91af),_0x19d45f[_0x71d3d1(0x2f7)](_0xb7474+_0x50d385-_0x2a891a/0x2,_0x2b91af)),_0x2304ad['forEach']((_0x1be906,_0x538590)=>{const _0x53613d=_0x71d3d1;let _0x5f2bed=_0xb7474+_0x538590*(_0x2a891a+_0x1dffef)+_0x2a891a/0x2;_0x19d45f['moveTo'](_0x5f2bed,_0x2b91af),_0x19d45f['lineTo'](_0x5f2bed,_0x2fa2a7===_0x53613d(0x35e)?_0xcb96e3:_0xcb96e3+_0x1af485);}),_0x19d45f['stroke'](),_0x2304ad[_0x71d3d1(0x1d5)]((_0x467e3b,_0xa6868f)=>{const _0x394663=_0x71d3d1;Z(_0x19d45f,_0xb7474+_0xa6868f*(_0x2a891a+_0x1dffef),_0xcb96e3,_0x2a891a,_0x1af485,X[_0x394663(0xf2)]),_0x19d45f[_0x394663(0x1f9)]=X[_0x394663(0x167)],_0x19d45f[_0x394663(0x3ac)](),_0x19d45f[_0x394663(0x38b)]();});});}(_0x5b9ed8||mr(this['_state']['structureKind'])||hr(this[_0x3a141c(0x195)][_0x3a141c(0xd6)])?[]:['left',_0x3a141c(0x1f3)])[_0x3a141c(0x1d5)](_0x3ae6a2=>{const _0x24eb94=_0x3a141c;let _0x34a184=_0x20154e[_0x3ae6a2];if(_0x34a184['length']===0x0)return;let _0x4668eb=_0x34a184[_0x24eb94(0xe7)]*_0x1af485+Math[_0x24eb94(0x359)](0x0,_0x34a184[_0x24eb94(0xe7)]-0x1)*_0x1dffef,_0x1d9bb8=_0x33ab70['y']-_0x4668eb/0x2,_0x2a7c69=_0x3ae6a2===_0x24eb94(0x1f3)?_0x5c81cf+_0x26046d:_0x5c81cf,_0x937ccc=_0x3ae6a2===_0x24eb94(0x1f3)?_0x2a7c69+_0x3e5dd9['branchGap']:_0x2a7c69-_0x3e5dd9[_0x24eb94(0x28f)],_0x20486f=_0x3ae6a2==='right'?_0x5c81cf+_0x26046d+_0x34779f:_0x5c81cf-_0x34779f-_0x2a891a;_0x19d45f[_0x24eb94(0x2c3)](),_0x19d45f[_0x24eb94(0xef)](_0x2a7c69,_0x33ab70['y']),_0x19d45f[_0x24eb94(0x2f7)](_0x937ccc,_0x33ab70['y']),_0x34a184[_0x24eb94(0xe7)]>0x1&&(_0x19d45f['moveTo'](_0x937ccc,_0x1d9bb8+_0x1af485/0x2),_0x19d45f[_0x24eb94(0x2f7)](_0x937ccc,_0x1d9bb8+_0x4668eb-_0x1af485/0x2)),_0x34a184[_0x24eb94(0x1d5)]((_0x5d410e,_0x5d82e1)=>{const _0x2315ab=_0x24eb94;let _0x1d6b39=_0x1d9bb8+_0x5d82e1*(_0x1af485+_0x1dffef)+_0x1af485/0x2;_0x19d45f[_0x2315ab(0xef)](_0x937ccc,_0x1d6b39),_0x19d45f[_0x2315ab(0x2f7)](_0x3ae6a2===_0x2315ab(0x1f3)?_0x20486f:_0x20486f+_0x2a891a,_0x1d6b39);}),_0x19d45f[_0x24eb94(0x38b)](),_0x34a184[_0x24eb94(0x1d5)]((_0x1646f4,_0x30437c)=>{const _0x3d2953=_0x24eb94;let _0x32a3fa=_0x1d9bb8+_0x30437c*(_0x1af485+_0x1dffef);Z(_0x19d45f,_0x20486f,_0x32a3fa,_0x2a891a,_0x1af485,X['ghostRadius']),_0x19d45f[_0x3d2953(0x1f9)]=X['ghostFillColor'],_0x19d45f['fill'](),_0x19d45f[_0x3d2953(0x38b)]();});}),Z(_0x19d45f,_0x5c81cf,_0x545b81,_0x26046d,_0x30937c,X[_0x3a141c(0x2f5)]),_0x19d45f[_0x3a141c(0x1f9)]=X['primaryColor'],_0x19d45f['fill'](),_0x19d45f[_0x3a141c(0x38b)](),_0x19d45f[_0x3a141c(0x1f9)]=X['rootTextColor'],_0x19d45f[_0x3a141c(0x347)]=sn(X[_0x3a141c(0x17d)],X[_0x3a141c(0x130)],_0x48ee61),_0x19d45f[_0x3a141c(0x279)]=_0x3a141c(0x32a),_0x19d45f[_0x3a141c(0x137)]='middle';let _0xf47a20=X[_0x3a141c(0x1d7)]/_0x48ee61;return _0x19d45f[_0x3a141c(0x2a8)](_0x2f5150,_0x33ab70['x'],_0x33ab70['y'],Math[_0x3a141c(0x359)](0x1,_0x26046d-_0xf47a20*0x2)),_0x19d45f[_0x3a141c(0x190)](),this[_0x3a141c(0xc1)](!0x1),this;}};const yr={'children':[{'text':_0x2f5150,'orderKey':_0x83cdd2(0x0),'side':_0x1b778c(0x1f3)},{'text':_0x2f5150,'orderKey':_0x83cdd2(0x1),'side':_0x1b778c(0x1f3)},{'text':_0x2f5150,'orderKey':_0x83cdd2(0x2),'side':_0x1b778c(0x1f3)}]};var br=class extends _0x5b4143{constructor(..._0xc41ed7){const _0x2abc13=_0x1b778c;super(..._0xc41ed7),K(this,_0x2abc13(0xce),yr);}[_0x1b778c(0x3a6)](_0x2e4dae){const _0x28fb9f=_0x1b778c;var _0x30c21c;let _0x493d1f=(_0x2e4dae==null?void 0x0:_0x2e4dae['children'])??(_0x2e4dae==null||(_0x30c21c=_0x2e4dae[_0x28fb9f(0x340)])==null?void 0x0:_0x30c21c['root']['children']);this[_0x28fb9f(0xce)]={'rootText':_0x2e4dae==null?void 0x0:_0x2e4dae[_0x28fb9f(0x3c7)],'structureKind':_0x2e4dae==null?void 0x0:_0x2e4dae['structureKind'],'branchLineType':_0x2e4dae==null?void 0x0:_0x2e4dae['branchLineType'],'children':this[_0x28fb9f(0xb5)](_0x493d1f,_0x2e4dae==null?void 0x0:_0x2e4dae[_0x28fb9f(0xd6)]),'blueprint':_0x2e4dae!=null&&_0x2e4dae[_0x28fb9f(0x340)]?this[_0x28fb9f(0x1fd)](_0x2e4dae[_0x28fb9f(0x340)]):void 0x0};}[_0x1b778c(0x3a9)](){const _0x4997aa=_0x1b778c;var _0x4a827a;return{'rootText':this['_template'][_0x4997aa(0x3c7)],'structureKind':this[_0x4997aa(0xce)][_0x4997aa(0xd6)],'branchLineType':this[_0x4997aa(0xce)]['branchLineType'],'children':(_0x4a827a=this[_0x4997aa(0xce)][_0x4997aa(0x278)])==null?void 0x0:_0x4a827a[_0x4997aa(0x10c)](_0x2e91ba=>({..._0x2e91ba})),'blueprint':this['_template'][_0x4997aa(0x340)]?this[_0x4997aa(0x1fd)](this['_template']['blueprint']):void 0x0};}[_0x1b778c(0x1fd)](_0x3e4970){const _0x1daf1d=_0x1b778c;return{'title':_0x3e4970['title'],'root':this[_0x1daf1d(0x366)](_0x3e4970[_0x1daf1d(0x1d9)])};}[_0x1b778c(0x366)](_0x1a45aa){const _0x37e964=_0x1b778c;return{..._0x1a45aa,'foreignAttributes':_0x1a45aa[_0x37e964(0x282)]?{..._0x1a45aa['foreignAttributes']}:void 0x0,'children':_0x1a45aa[_0x37e964(0x278)][_0x37e964(0x10c)](_0x2febee=>this[_0x37e964(0x366)](_0x2febee))};}[_0x1b778c(0xb5)](_0x1f50d5,_0x414ad6){const _0x1e719b=_0x1b778c;let _0x2d8424=!_0x1f50d5,_0x33c903=_0x1f50d5??yr['children'];return _0x33c903==null?void 0x0:_0x33c903[_0x1e719b(0x10c)]((_0x22aef6,_0x537543)=>({..._0x22aef6,'text':_0x22aef6['text']??_0x2f5150,'side':this['_resolveChildSide'](_0x22aef6[_0x1e719b(0x132)],_0x537543,_0x414ad6,_0x2d8424)}));}[_0x1b778c(0xcd)](_0x204526,_0x4af258,_0x4ea3ca,_0x1d9a8f){const _0x4f075b=_0x1b778c;return _0x4ea3ca===_0x4f075b(0xf4)?_0x1d9a8f?_0x4f075b(0x35e):_0x204526??_0x4f075b(0x35e):_0x4ea3ca==='tree-left'?_0x1d9a8f?_0x4f075b(0x344):_0x204526??'left':_0x4ea3ca===_0x4f075b(0x319)?_0x1d9a8f?'right':_0x204526??_0x4f075b(0x1f3):_0x4ea3ca==='tree-alternate'?_0x1d9a8f?_0x4af258%0x2==0x0?_0x4f075b(0x344):_0x4f075b(0x1f3):_0x204526??(_0x4af258%0x2==0x0?'left':_0x4f075b(0x1f3)):_0x4ea3ca===_0x4f075b(0x16a)?_0x1d9a8f?_0x4af258%0x2==0x0?_0x4f075b(0x165):_0x4f075b(0x35e):_0x204526??(_0x4af258%0x2==0x0?_0x4f075b(0x165):_0x4f075b(0x35e)):_0x4ea3ca===_0x4f075b(0x3c1)?_0x1d9a8f?_0x4af258%0x2==0x0?_0x4f075b(0x344):_0x4f075b(0x1f3):_0x204526??(_0x4af258%0x2==0x0?_0x4f075b(0x344):_0x4f075b(0x1f3)):_0x204526;}};function xr(_0x1a9f32,_0x554fc7){const _0x1525fc=_0x1b778c;let _0x56094a=Number[_0x1525fc(0x1e9)](_0x554fc7[_0x1525fc(0x387)])&&_0x554fc7[_0x1525fc(0x387)]>0x0?_0x554fc7[_0x1525fc(0x387)]:0x1;return{'x':Math[_0x1525fc(0x1b4)]((_0x1a9f32[_0x1525fc(0x3b8)]-_0x554fc7[_0x1525fc(0xca)]['x'])/_0x56094a),'y':Math[_0x1525fc(0x1b4)]((_0x1a9f32['offsetY']-_0x554fc7[_0x1525fc(0xca)]['y'])/_0x56094a)};}function Sr(_0x3061e3){const _0x3edd3c=_0x1b778c;var _0x53f14f;_0x3061e3!=null&&_0x3061e3['dispose']?_0x3061e3[_0x3edd3c(0xb0)]():_0x3061e3==null||(_0x53f14f=_0x3061e3[_0x3edd3c(0x2dd)])==null||_0x53f14f['call'](_0x3061e3);}function Cr(_0x56b224){const _0x262710=_0x1b778c;var _0x3eb30c;return _0x56b224['activeTool']===_0x37f1d2[_0x262710(0x103)]&&((_0x3eb30c=_0x56b224['pendingInsert'])==null?void 0x0:_0x3eb30c[_0x262710(0x128)])===_0x37f1d2[_0x262710(0x103)];}let wr=class extends _0x285459{constructor(_0x6108f8,_0x1010ff,_0x1b149b,_0x142900,_0x2ec3af,_0x309620,_0x388bc2){const _0x179a3b=_0x1b778c;super(),this['_renderContext']=_0x6108f8,this[_0x179a3b(0x1ea)]=_0x1010ff,this[_0x179a3b(0x30e)]=_0x1b149b,this[_0x179a3b(0x246)]=_0x142900,this[_0x179a3b(0x3be)]=_0x2ec3af,this[_0x179a3b(0x1f0)]=_0x309620,this[_0x179a3b(0x15c)]=_0x388bc2,K(this,'_previewObject',null),K(this,_0x179a3b(0x10d),null),this[_0x179a3b(0x14d)]();}[_0x1b778c(0x14d)](){const _0x10e996=_0x1b778c;var _0x3bda20;let {scene:_0x48083d,unitId:_0x11326d}=this[_0x10e996(0x1da)],_0x2733d1=this['_instanceSrv'][_0x10e996(0x25f)](_0x11326d,_0x5d14ce[_0x10e996(0x39a)]);if(!_0x2733d1)return;let _0x1b2cae=(_0x3bda20=_0x48083d['onPointerMove$'])==null?void 0x0:_0x3bda20[_0x10e996(0x378)]({'priority':0x4,'next':([_0x4c3037,_0x423ab1])=>this[_0x10e996(0x200)](_0x4c3037,_0x423ab1)}),_0x48d2ea=_0x48083d['onPointerDown$']['subscribeEvent']({'priority':0x4,'next':([_0x51ab6e,_0x134b20])=>this['_handlePointerDown'](_0x2733d1,_0x51ab6e,_0x134b20)});this[_0x10e996(0x172)](_0x16561b(()=>Sr(_0x1b2cae))),this['disposeWithMe'](_0x16561b(()=>Sr(_0x48d2ea)));let _0x494e7a=this[_0x10e996(0x30e)]['state$'][_0x10e996(0xcb)](()=>this[_0x10e996(0x34f)]());this['disposeWithMe'](_0x16561b(()=>Sr(_0x494e7a))),this[_0x10e996(0x172)](_0x16561b(()=>{const _0x1c803f=_0x10e996;this[_0x1c803f(0x14f)]();})),this[_0x10e996(0x34f)]();}[_0x1b778c(0x34f)](){const _0x447ce4=_0x1b778c;var _0x3d4a88,_0x314985;let _0x39615f=this[_0x447ce4(0x30e)]['getState']();if(!Cr(_0x39615f)){this[_0x447ce4(0x14f)]();return;}let _0x1234ba=this[_0x447ce4(0x104)](),_0x2cdf63=this[_0x447ce4(0x3be)][_0x447ce4(0x3a9)]();_0x1234ba[_0x447ce4(0x210)]({'point':this[_0x447ce4(0x10d)],'structureKind':_0x2cdf63[_0x447ce4(0xd6)],'children':_0x2cdf63[_0x447ce4(0x278)],'blueprint':_0x2cdf63[_0x447ce4(0x340)],'zoomRatio':_0x39615f['zoomRatio']}),(_0x3d4a88=(_0x314985=this[_0x447ce4(0x1da)][_0x447ce4(0x154)])[_0x447ce4(0xc1)])==null||_0x3d4a88[_0x447ce4(0x360)](_0x314985,!0x0);}[_0x1b778c(0x104)](){const _0x203705=_0x1b778c;var _0x1f2de9,_0x2d0c3a;if(this['_previewObject'])return this[_0x203705(0x1c7)];let _0x3b32a8=this['_insertStateService'][_0x203705(0x3a9)](),_0x554339=new vr(dr,{'point':this['_lastPoint'],'structureKind':_0x3b32a8[_0x203705(0xd6)],'children':_0x3b32a8[_0x203705(0x278)],'blueprint':_0x3b32a8[_0x203705(0x340)],'zoomRatio':this['_stateService'][_0x203705(0x197)]()[_0x203705(0x387)]});return this['_previewObject']=_0x554339,(_0x1f2de9=(_0x2d0c3a=this[_0x203705(0x1da)]['scene'])[_0x203705(0x3bc)])==null||_0x1f2de9[_0x203705(0x360)](_0x2d0c3a,_0x554339,fr),_0x554339;}['_removePreviewObject'](){const _0x1b619e=_0x1b778c;var _0x49cd5b,_0x80a68d,_0x280989,_0x47d99d;this[_0x1b619e(0x1c7)]?((_0x49cd5b=(_0x80a68d=this[_0x1b619e(0x1da)][_0x1b619e(0x154)])[_0x1b619e(0x33a)])==null||_0x49cd5b['call'](_0x80a68d,[this['_previewObject']]),this['_previewObject']=null,this[_0x1b619e(0x10d)]=null,(_0x280989=(_0x47d99d=this[_0x1b619e(0x1da)]['scene'])[_0x1b619e(0xc1)])==null||_0x280989[_0x1b619e(0x360)](_0x47d99d,!0x0)):this[_0x1b619e(0x10d)]=null;}[_0x1b778c(0x314)](_0x378ab0){const _0x2a2625=_0x1b778c;let _0x3a727c=this[_0x2a2625(0x30e)][_0x2a2625(0x197)]();return xr(_0x378ab0,{'panOffset':_0x3a727c['viewportPanOffset'],'zoomRatio':_0x3a727c['zoomRatio']});}['_resolveRootTopLeft'](_0x15334b){const _0x16141d=_0x1b778c;return{'left':Math[_0x16141d(0x1b4)](_0x15334b['x']-_0x3d25e3['rootWidth']/0x2),'top':Math['round'](_0x15334b['y']-_0x3d25e3['rootHeight']/0x2)};}[_0x1b778c(0x200)](_0x18e23a,_0x366dc7){const _0x3b55e1=_0x1b778c;Cr(this[_0x3b55e1(0x30e)][_0x3b55e1(0x197)]())&&(this[_0x3b55e1(0x10d)]=this[_0x3b55e1(0x314)](_0x18e23a),this['_syncPreviewObject'](),_0x366dc7[_0x3b55e1(0x2b2)]());}async[_0x1b778c(0x1af)](_0x5dfb12,_0x2222be,_0x50d644){const _0x1e3938=_0x1b778c;let _0x1cff58=await this[_0x1e3938(0x30c)](_0x5dfb12,_0x2222be,_0x50d644);if(!_0x1cff58)return;let _0x4bf5cb={'unitId':this[_0x1e3938(0x1da)][_0x1e3938(0x1d1)],'subUnitId':_0x1cff58[_0x1e3938(0x28e)]};this[_0x1e3938(0x15c)][_0x1e3938(0xe2)](),this[_0x1e3938(0x15c)][_0x1e3938(0xb2)]({..._0x4bf5cb,'shapeId':_0x1cff58['rootNodeId'],'shapeKey':_0x2a9cbd(_0x4bf5cb[_0x1e3938(0x1d1)],_0x1cff58[_0x1e3938(0x227)]),'visible':!0x0});}async[_0x1b778c(0x30c)](_0x21d920,_0x24409a,_0x26fd27){const _0x153a04=_0x1b778c;var _0x418f1c;let _0x4130cc=this[_0x153a04(0x30e)]['getState'](),_0x202095=_0x24409a[_0x153a04(0x186)]??0x0;if(!Cr(_0x4130cc)||_0x202095!==0x0)return null;let _0x1f193a=this[_0x153a04(0x314)](_0x24409a),_0x431f8b=this[_0x153a04(0x125)](_0x1f193a),_0x3fca00=this[_0x153a04(0x3be)]['getTemplate'](),_0x152bfc=_0x2075ab(0x6),_0x5279fa=_0x21d920[_0x153a04(0x2a3)](),_0x473aff=this[_0x153a04(0x246)][_0x153a04(0x35c)](_0x2c7eb0['id'],{'unitId':this[_0x153a04(0x1da)][_0x153a04(0x1d1)],'subUnitId':_0x5279fa,'left':_0x431f8b[_0x153a04(0x344)],'top':_0x431f8b['top'],'rootNodeId':_0x152bfc,'rootText':_0x3fca00['rootText'],'structureKind':_0x3fca00[_0x153a04(0xd6)],'branchLineType':_0x3fca00[_0x153a04(0x2a6)],'children':_0x3fca00[_0x153a04(0x278)],'blueprint':_0x3fca00[_0x153a04(0x340)]});if(this[_0x153a04(0x30e)][_0x153a04(0x232)](_0x37f1d2[_0x153a04(0x2ff)]),_0x26fd27[_0x153a04(0x2b2)](),(_0x418f1c=_0x24409a['preventDefault'])==null||_0x418f1c[_0x153a04(0x360)](_0x24409a),!await _0x473aff||this['_disposed'])return null;let _0x4fabcb={'unitId':this[_0x153a04(0x1da)][_0x153a04(0x1d1)],'subUnitId':_0x5279fa};return this['_elementStateService'][_0x153a04(0x2e0)](_0x4fabcb,[_0x152bfc],_0x152bfc),{'rootNodeId':_0x152bfc,'subUnitId':_0x5279fa};}};wr=J([q(0x1,_0x4d4728),q(0x2,_0x2b4c4c),q(0x3,_0x36a817),q(0x4,_0x407fc1(br)),q(0x5,_0x3a3db4),q(0x6,_0x407fc1(_0x53de0e))],wr);var Tr=class extends _0x5b4143{constructor(..._0x583183){const _0x15f2b6=_0x1b778c;super(..._0x583183),K(this,'_refresh$',new _0x4e51a1()),K(this,'refresh$',this[_0x15f2b6(0x19f)]['asObservable']());}['notify'](_0x50356f){const _0x53bf48=_0x1b778c;this[_0x53bf48(0x19f)][_0x53bf48(0x19e)](_0x50356f);}[_0x1b778c(0xb0)](){const _0x1aba53=_0x1b778c;this[_0x1aba53(0x19f)][_0x1aba53(0x13c)](),super[_0x1aba53(0xb0)]();}};function Er(_0x41d70f){const _0xe950f2=_0x1b778c;return typeof _0x41d70f==_0xe950f2(0x2d3)&&Number['isFinite'](_0x41d70f)&&_0x41d70f>0x0;}function Dr(_0x4fe186,_0x981713,_0x4adb51){const _0x228a49=_0x1b778c;let _0x4e9640=_0x4fe186[_0x981713],_0x50aa54=_0x553933(_0x4e9640==null?void 0x0:_0x4e9640[_0x228a49(0x201)]);if(!_0x4e9640||!_0x50aa54)return null;let _0x1a621a=_0x2cf0ea(_0x4e9640,_0x4adb51);if(!_0x1a621a)return null;let _0x46eec1=_0x4e9640['transform']??_0x4e9640[_0x228a49(0x201)][_0x228a49(0x1b0)],_0x5552ed={..._0x4fe186,[_0x981713]:{..._0x4e9640,'transform':{..._0x46eec1,'width':_0x1a621a[_0x228a49(0x316)],'height':_0x1a621a['height']},'element':{..._0x4e9640[_0x228a49(0x201)],'transform':{..._0x4e9640[_0x228a49(0x201)][_0x228a49(0x1b0)],'width':_0x1a621a[_0x228a49(0x316)],'height':_0x1a621a['height']}}}};return _0x3a1fc1(_0x5552ed,_0x50aa54[_0x228a49(0x353)]);}let Or=class extends _0x285459{constructor(_0x2c8c13,_0x250561,_0xa511a9,_0x770cf0,_0x21ff7c,_0xe15768){const _0x2f30e9=_0x1b778c;super(),this[_0x2f30e9(0x1da)]=_0x2c8c13,this[_0x2f30e9(0x168)]=_0x250561,this[_0x2f30e9(0x399)]=_0xa511a9,this[_0x2f30e9(0x208)]=_0x770cf0,this[_0x2f30e9(0xe6)]=_0x21ff7c,this[_0x2f30e9(0x246)]=_0xe15768,K(this,_0x2f30e9(0x3b0),null),K(this,_0x2f30e9(0x2fc),{'match':_0x351abc=>_0x351abc[_0x2f30e9(0x1d1)]===this[_0x2f30e9(0x1da)][_0x2f30e9(0x1d1)]&&!!_0x553933(_0x351abc['element']),'resolveHostSize':_0x330e23=>this[_0x2f30e9(0xc3)](_0x330e23),'previewHostSize':_0x4ae34d=>this[_0x2f30e9(0x2e9)](_0x4ae34d),'updateHostSize':_0x36f09c=>this[_0x2f30e9(0x386)](_0x36f09c),'updateShapeText':_0x2ce147=>this[_0x2f30e9(0x2e8)](_0x2ce147)}),this[_0x2f30e9(0x172)](this[_0x2f30e9(0x168)]['registerProvider'](this['_provider'])),this[_0x2f30e9(0x336)](),this[_0x2f30e9(0x172)](_0x16561b(()=>this[_0x2f30e9(0x395)]()));}['_updateHostSize'](_0x3fcd06){return this['_previewHostSize'](_0x3fcd06);}[_0x1b778c(0x2e8)](_0x2a2caf){const _0x32f894=_0x1b778c;let _0x34fc62=_0x2a2caf[_0x32f894(0x25c)][_0x32f894(0x2cd)]?this[_0x32f894(0xc3)]({'elementData':_0x2a2caf[_0x32f894(0x22a)],'params':_0x2a2caf[_0x32f894(0x25c)][_0x32f894(0x2cd)]}):null,_0x5a9e19=_0x2a2caf['elementData']['transform']??_0x2a2caf[_0x32f894(0x22a)][_0x32f894(0x201)]['transform'];return(!_0x34fc62||_0x34fc62[_0x32f894(0x316)]===_0x5a9e19[_0x32f894(0x316)]&&_0x34fc62[_0x32f894(0xbc)]===_0x5a9e19[_0x32f894(0xbc)])&&_0x199641(_0x2a2caf[_0x32f894(0x25c)][_0x32f894(0x226)],_0x2a2caf[_0x32f894(0x25c)]['oldShapeText'])?!0x0:this['_commandService'][_0x32f894(0x251)](_0x2f778f['id'],{'unitId':_0x2a2caf[_0x32f894(0x25c)][_0x32f894(0x1d1)],'subUnitId':_0x2a2caf[_0x32f894(0x25c)]['subUnitId'],'nodeId':_0x2a2caf[_0x32f894(0x25c)][_0x32f894(0x161)],'shapeText':_0x2a2caf[_0x32f894(0x25c)]['shapeText'],..._0x34fc62?{'hostSize':{'width':_0x34fc62[_0x32f894(0x316)],'height':_0x34fc62['height']}}:null});}[_0x1b778c(0x2e9)](_0x3e88ca){const _0x365588=_0x1b778c;let _0x25a1bd=this[_0x365588(0xc3)](_0x3e88ca);if(!_0x25a1bd)return!0x1;let _0x4749fa=_0x3e88ca['elementData']['transform']??_0x3e88ca['elementData'][_0x365588(0x201)][_0x365588(0x1b0)];return!this[_0x365588(0x3b0)]&&_0x4749fa[_0x365588(0x316)]===_0x25a1bd[_0x365588(0x316)]&&_0x4749fa[_0x365588(0xbc)]===_0x25a1bd['height']||this['_syncLayoutPreview'](_0x3e88ca,_0x25a1bd),!0x0;}[_0x1b778c(0xc3)](_0x3ce1a7){const _0x58c242=_0x1b778c;return!Er(_0x3ce1a7[_0x58c242(0x25c)]['width'])||!Er(_0x3ce1a7['params'][_0x58c242(0xbc)])?null:_0x2cf0ea(_0x3ce1a7['elementData'],{'width':_0x3ce1a7[_0x58c242(0x25c)][_0x58c242(0x316)],'height':_0x3ce1a7[_0x58c242(0x25c)][_0x58c242(0xbc)]});}[_0x1b778c(0x336)](){const _0x47b3c5=_0x1b778c;this['disposeWithMe'](_0x16561b(this[_0x47b3c5(0x208)]['editingParams$']['pipe'](_0x2cb42f(this[_0x47b3c5(0x351)]))[_0x47b3c5(0xcb)](_0x188ea3=>{_0x188ea3||this['_restoreActivePreview']();})));}['_syncLayoutPreview'](_0x43d717,_0x59961c){const _0x137d53=_0x1b778c;var _0x4cd36b;let _0x4e9ad8=this[_0x137d53(0x399)]['getElementData'](_0x43d717[_0x137d53(0x25c)][_0x137d53(0x1d1)],_0x43d717[_0x137d53(0x25c)]['subUnitId']),_0x7c2c05=Dr(_0x4e9ad8,_0x43d717['params'][_0x137d53(0x161)],_0x59961c),_0x19396f=_0x553933((_0x4cd36b=_0x4e9ad8[_0x43d717['params'][_0x137d53(0x161)]])==null?void 0x0:_0x4cd36b['element']);_0x7c2c05&&_0x19396f&&(this[_0x137d53(0x3b0)]={'unitId':_0x43d717[_0x137d53(0x25c)]['unitId'],'subUnitId':_0x43d717['params'][_0x137d53(0x28e)],'scopeId':_0x19396f[_0x137d53(0x353)]},this[_0x137d53(0x37d)](_0x7c2c05,_0x19396f[_0x137d53(0x353)])&&this[_0x137d53(0xe6)][_0x137d53(0x1be)]({'unitId':_0x43d717[_0x137d53(0x25c)][_0x137d53(0x1d1)],'subUnitId':_0x43d717[_0x137d53(0x25c)][_0x137d53(0x28e)],'nodeId':_0x43d717['params']['shapeId'],'scopeId':_0x19396f[_0x137d53(0x353)]}));}[_0x1b778c(0x395)](){const _0x34815b=_0x1b778c;let _0x110943=this[_0x34815b(0x3b0)];if(!_0x110943)return;this[_0x34815b(0x3b0)]=null;let _0x4822ed=this['_boardElementService'][_0x34815b(0x198)](_0x110943['unitId'],_0x110943[_0x34815b(0x28e)]);this[_0x34815b(0x37d)](_0x4822ed,_0x110943[_0x34815b(0x315)])&&this[_0x34815b(0xe6)][_0x34815b(0x1be)]({'unitId':_0x110943[_0x34815b(0x1d1)],'subUnitId':_0x110943[_0x34815b(0x28e)],'nodeId':_0x110943[_0x34815b(0x315)],'scopeId':_0x110943[_0x34815b(0x315)]});}[_0x1b778c(0x37d)](_0x32c067,_0x5a0a8d){const _0x53b810=_0x1b778c;let _0x38a019=!0x1;if(Object[_0x53b810(0x346)](_0x32c067)[_0x53b810(0x1d5)](_0x1a8a31=>{const _0x5e60ac=_0x53b810;var _0x5109e7;let _0x4d402b=_0x553933(_0x1a8a31[_0x5e60ac(0x201)]),_0x225016=(_0x5109e7=_0x1a8a31[_0x5e60ac(0x201)]['custom'])==null?void 0x0:_0x5109e7[_0x5e60ac(0x25b)];if(_0x1a8a31['elementId']!==_0x5a0a8d&&(_0x4d402b==null?void 0x0:_0x4d402b[_0x5e60ac(0x353)])!==_0x5a0a8d&&(_0x225016==null?void 0x0:_0x225016[_0x5e60ac(0x353)])!==_0x5a0a8d)return;let _0x4a7088=this[_0x5e60ac(0x228)](_0x1a8a31[_0x5e60ac(0x2fa)]);_0x4a7088&&(_0x38a019=_0x8ac15f(_0x4a7088,_0x1a8a31,{'elementData':_0x32c067,'unitId':this[_0x5e60ac(0x1da)][_0x5e60ac(0x1d1)]})||_0x38a019);}),_0x38a019){var _0x2cd713,_0x1aaee9;this[_0x53b810(0x1da)]['scene']['makeDirty'](!0x0),(_0x2cd713=(_0x1aaee9=this['_renderContext'][_0x53b810(0x154)])[_0x53b810(0x352)])==null||_0x2cd713[_0x53b810(0x360)](_0x1aaee9);}return _0x38a019;}[_0x1b778c(0x228)](_0x3580fc){const _0x33293f=_0x1b778c;var _0x1a6614;let _0x31f480=_0x2a9cbd(this[_0x33293f(0x1da)][_0x33293f(0x1d1)],_0x3580fc),_0x2f075d=this[_0x33293f(0x1da)]['scene'];return((_0x1a6614=_0x2f075d['getObjectIncludeInGroup'])==null?void 0x0:_0x1a6614['call'](_0x2f075d,_0x31f480))??this[_0x33293f(0x1da)][_0x33293f(0x154)][_0x33293f(0xb8)](_0x31f480)??null;}};Or=J([q(0x1,_0x407fc1(_0x1a2675)),q(0x2,_0x407fc1(_0x3c52ab)),q(0x3,_0x407fc1(_0x53de0e)),q(0x4,_0x407fc1(Tr)),q(0x5,_0x36a817)],Or);const $={'touchHitRadius':0x16,'radius':0x12,'addChildRadius':0xe,'siblingHoverRadius':0xa,'siblingDotRadius':0x5,'siblingDotGap':0x3,'gap':0xa,'collapsePlusMinDistance':0x2c,'primaryColor':Y[_0x1b778c(0x12c)],'surfaceColor':Y[_0x1b778c(0x3a8)],'borderWidth':0x2,'glyphSize':0x8,'addChildGlyphSize':0x6,'siblingGlyphSize':5.5,'glyphWidth':2.4,'glyphHoverWidth':0x3,'badgeFontWeight':0x258,'badgeFontSize':0x12,'fontFamily':Y[_0x1b778c(0x368)]};function kr(_0x4f76b1){const _0x89322c=_0x1b778c;let _0x28e24d=$[_0x89322c(0xe0)],_0xb314de=$[_0x89322c(0x133)],_0x326b20=$[_0x89322c(0x2f2)],_0x5817bd=$[_0x89322c(0x2b8)],_0x105e8b=$['siblingDotRadius'],_0x27ce5c=_0x105e8b+$['siblingDotGap'],_0xc8d88b=$[_0x89322c(0x289)],_0x42997a=_0x4f76b1[_0x89322c(0x323)][_0x89322c(0x165)]+_0x4f76b1[_0x89322c(0x323)][_0x89322c(0xbc)]/0x2,_0x1ee0a0=_0x4f76b1[_0x89322c(0x323)][_0x89322c(0x344)]+_0x4f76b1[_0x89322c(0x323)][_0x89322c(0x316)]/0x2,_0x326469=_0x4f76b1[_0x89322c(0x323)][_0x89322c(0x344)]-_0x28e24d-_0x5817bd,_0x281f44=_0x4f76b1[_0x89322c(0x323)][_0x89322c(0x344)]+_0x4f76b1[_0x89322c(0x323)][_0x89322c(0x316)]+_0x28e24d+_0x5817bd,_0x52cb5e=_0x4f76b1[_0x89322c(0x323)][_0x89322c(0x165)]-_0x28e24d-_0x5817bd,_0x50135e=_0x4f76b1[_0x89322c(0x323)]['top']+_0x4f76b1[_0x89322c(0x323)]['height']+_0x28e24d+_0x5817bd,_0x5b73c9=_0x4f76b1[_0x89322c(0x323)][_0x89322c(0x344)]-_0xb314de-_0x5817bd,_0xcb195f=_0x4f76b1[_0x89322c(0x323)][_0x89322c(0x344)]+_0x4f76b1[_0x89322c(0x323)][_0x89322c(0x316)]+_0xb314de+_0x5817bd,_0x43afdb=_0x4f76b1[_0x89322c(0x323)]['top']-_0xb314de-_0x5817bd,_0x2ed75d=_0x4f76b1['bounds'][_0x89322c(0x165)]+_0x4f76b1[_0x89322c(0x323)][_0x89322c(0xbc)]+_0xb314de+_0x5817bd,_0x3cee06=[],_0x2cd769=_0x4f76b1['side']==='top'||_0x4f76b1[_0x89322c(0x132)]===_0x89322c(0x35e),_0x5c74da=_0x2cd769?_0x1ee0a0:_0x4f76b1[_0x89322c(0x132)]==='left'?_0x326469:_0x281f44,_0x25cde9=_0x2cd769?_0x4f76b1[_0x89322c(0x132)]==='top'?_0x52cb5e:_0x50135e:_0x42997a;if(_0x4f76b1[_0x89322c(0x2bf)]&&_0x4f76b1[_0x89322c(0x2c5)]>0x0)return _0x3cee06[_0x89322c(0x2f3)]({'kind':_0x89322c(0x34c),'x':_0x5c74da,'y':_0x25cde9,'radius':_0x28e24d,'badgeCount':_0x4f76b1['collapsedDescendantCount']}),_0x3cee06;if(_0x4f76b1['isRoot']?(_0x4f76b1['rootChildSides']??(_0x2cd769?[_0x89322c(0x165),_0x89322c(0x35e)]:[_0x89322c(0x344),_0x89322c(0x1f3)]))['forEach'](_0xa748f2=>{const _0x4bdc26=_0x89322c;_0xa748f2==='top'?_0x3cee06[_0x4bdc26(0x2f3)]({'kind':_0x4bdc26(0x2ee),'x':_0x1ee0a0,'y':_0x43afdb,'radius':_0xb314de}):_0xa748f2==='bottom'?_0x3cee06[_0x4bdc26(0x2f3)]({'kind':_0x4bdc26(0x32f),'x':_0x1ee0a0,'y':_0x2ed75d,'radius':_0xb314de}):_0xa748f2===_0x4bdc26(0x344)?_0x3cee06[_0x4bdc26(0x2f3)]({'kind':_0x4bdc26(0x1a7),'x':_0x5b73c9,'y':_0x42997a,'radius':_0xb314de}):_0x3cee06[_0x4bdc26(0x2f3)]({'kind':_0x4bdc26(0x31b),'x':_0xcb195f,'y':_0x42997a,'radius':_0xb314de});}):(_0x3cee06[_0x89322c(0x2f3)]({'kind':_0x4f76b1[_0x89322c(0x132)]===_0x89322c(0x344)?_0x89322c(0x1a7):_0x4f76b1[_0x89322c(0x132)]==='top'?_0x89322c(0x2ee):_0x4f76b1[_0x89322c(0x132)]===_0x89322c(0x35e)?'add-child-bottom':_0x89322c(0x31b),'x':_0x2cd769?_0x1ee0a0:_0x4f76b1[_0x89322c(0x132)]===_0x89322c(0x344)?_0x5b73c9:_0xcb195f,'y':_0x2cd769?_0x4f76b1[_0x89322c(0x132)]===_0x89322c(0x165)?_0x43afdb:_0x2ed75d:_0x42997a,'radius':_0xb314de}),_0x2cd769?(_0x3cee06['push']({'kind':_0x89322c(0x188),'placement':_0x89322c(0x17b),'x':_0x4f76b1['bounds'][_0x89322c(0x344)]-_0x27ce5c,'y':_0x42997a,'radius':_0x326b20,'visualRadius':_0x105e8b}),_0x3cee06['push']({'kind':_0x89322c(0x2ae),'placement':_0x89322c(0xb9),'x':_0x4f76b1[_0x89322c(0x323)][_0x89322c(0x344)]+_0x4f76b1[_0x89322c(0x323)][_0x89322c(0x316)]+_0x27ce5c,'y':_0x42997a,'radius':_0x326b20,'visualRadius':_0x105e8b})):(_0x3cee06[_0x89322c(0x2f3)]({'kind':_0x89322c(0x188),'placement':'before','x':_0x1ee0a0,'y':_0x4f76b1[_0x89322c(0x323)][_0x89322c(0x165)]-_0x27ce5c,'radius':_0x326b20,'visualRadius':_0x105e8b}),_0x3cee06[_0x89322c(0x2f3)]({'kind':_0x89322c(0x2ae),'placement':'after','x':_0x1ee0a0,'y':_0x4f76b1[_0x89322c(0x323)][_0x89322c(0x165)]+_0x4f76b1[_0x89322c(0x323)]['height']+_0x27ce5c,'radius':_0x326b20,'visualRadius':_0x105e8b}))),_0x4f76b1[_0x89322c(0x2bf)]){let _0x29bbb2={'kind':_0x89322c(0x34c),'x':_0x5c74da,'y':_0x25cde9,'radius':_0x28e24d};_0x3cee06[_0x89322c(0x2f3)](_0x29bbb2);let _0x5833be=_0x3cee06[_0x89322c(0x12f)](_0x1efeae=>_0x1efeae[_0x89322c(0x376)]===(_0x4f76b1[_0x89322c(0x132)]==='left'?_0x89322c(0x1a7):_0x4f76b1['side']===_0x89322c(0x165)?_0x89322c(0x2ee):_0x4f76b1[_0x89322c(0x132)]===_0x89322c(0x35e)?_0x89322c(0x32f):'add-child-right'));_0x5833be&&Math[_0x89322c(0x2b4)](_0x5833be['x']-_0x29bbb2['x'],_0x5833be['y']-_0x29bbb2['y'])<_0xc8d88b&&(_0x4f76b1[_0x89322c(0x132)]===_0x89322c(0x165)||_0x4f76b1[_0x89322c(0x132)]===_0x89322c(0x35e)?_0x5833be['y']=_0x29bbb2['y']+(_0x4f76b1[_0x89322c(0x132)]===_0x89322c(0x165)?-_0xc8d88b:_0xc8d88b):_0x5833be['x']=_0x29bbb2['x']+(_0x4f76b1[_0x89322c(0x132)]===_0x89322c(0x344)?-_0xc8d88b:_0xc8d88b));}return _0x3cee06;}const Ar=_0x1b778c(0x301),jr=_0xd8bbf4[_0x1b778c(0x1d2)];function Mr(_0x534dd3,_0x11cf4a){const _0x428719=_0x1b778c;return!!_0x534dd3&&_0x534dd3[_0x428719(0x376)]===_0x11cf4a[_0x428719(0x376)]&&_0x534dd3['x']===_0x11cf4a['x']&&_0x534dd3['y']===_0x11cf4a['y'];}var Nr=class extends _0xdd0ecf{constructor(_0x2bad8e=Ar,_0x28ece9){const _0x48b50e=_0x1b778c;super(_0x2bad8e),K(this,_0x48b50e(0x195),{'controls':[]}),this['evented']=!0x0,this[_0x48b50e(0x12d)]=_0x5afe40[_0x48b50e(0x3c6)],this[_0x48b50e(0x210)](_0x28ece9);}[_0x1b778c(0x210)](_0x433850){const _0x581020=_0x1b778c;this[_0x581020(0x195)]={...this[_0x581020(0x195)],..._0x433850},this[_0x581020(0x195)][_0x581020(0x297)][_0x581020(0xe7)]>0x0?this[_0x581020(0x2d4)]():this['hide'](),this[_0x581020(0xc1)](!0x0);}[_0x1b778c(0x14e)](_0x3b606b){const _0x3a1d17=_0x1b778c;!_0x3b606b&&!this[_0x3a1d17(0x195)][_0x3a1d17(0x111)]||_0x3b606b&&Mr(this[_0x3a1d17(0x195)][_0x3a1d17(0x111)],_0x3b606b)||(this['_state']={...this['_state'],'hoveredControl':_0x3b606b},this[_0x3a1d17(0xc1)](!0x0));}[_0x1b778c(0x361)](_0x2ecaf2,_0x3bc0d9){const _0x2dda30=_0x1b778c;var _0x50d0c8;let _0x80298f=(_0x50d0c8=this[_0x2dda30(0x326)]())==null?void 0x0:_0x50d0c8[_0x2dda30(0x1f6)](),_0x717669=null,_0x187537=0x1/0x0;for(let _0x34122e=this[_0x2dda30(0x195)][_0x2dda30(0x297)][_0x2dda30(0xe7)]-0x1;_0x34122e>=0x0;--_0x34122e){let _0x42778f=this[_0x2dda30(0x195)]['controls'][_0x34122e],_0x2b66fe=Math[_0x2dda30(0x2b4)](_0x2ecaf2['x']-_0x42778f['x'],_0x2ecaf2['y']-_0x42778f['y']);if(_0x3bc0d9!==_0x5946c6['Touch']){if(_0x2b66fe<=_0x42778f[_0x2dda30(0xe0)])return _0x42778f;continue;}let _0x293c9d=Math['hypot']((_0x2ecaf2['x']-_0x42778f['x'])*((_0x80298f==null?void 0x0:_0x80298f[_0x2dda30(0x1ba)])??0x1),(_0x2ecaf2['y']-_0x42778f['y'])*((_0x80298f==null?void 0x0:_0x80298f[_0x2dda30(0x384)])??0x1));(_0x2b66fe<=_0x42778f[_0x2dda30(0xe0)]||_0x293c9d<=$['touchHitRadius'])&&_0x293c9d<_0x187537&&(_0x717669=_0x42778f,_0x187537=_0x293c9d);}return _0x717669;}[_0x1b778c(0x12e)](_0x2bf11b){const _0x33ee69=_0x1b778c;var _0x10782b;let _0x392d8e=this[_0x33ee69(0x361)](_0x2bf11b,_0x5946c6[_0x33ee69(0x34b)]),_0x39ae14=(_0x10782b=this[_0x33ee69(0x326)]())==null?void 0x0:_0x10782b['getAncestorScale']();return _0x392d8e?Math['hypot']((_0x2bf11b['x']-_0x392d8e['x'])*((_0x39ae14==null?void 0x0:_0x39ae14['scaleX'])??0x1),(_0x2bf11b['y']-_0x392d8e['y'])*((_0x39ae14==null?void 0x0:_0x39ae14['scaleY'])??0x1)):0x1/0x0;}[_0x1b778c(0x16c)](_0x5e9cca){const _0x5af917=_0x1b778c;return!!this[_0x5af917(0x361)]({'x':_0x5e9cca['x'],'y':_0x5e9cca['y']});}['render'](_0x59c175,_0x50248c){const _0x211476=_0x1b778c;return!this[_0x211476(0x32e)]||this[_0x211476(0x195)][_0x211476(0x297)][_0x211476(0xe7)]===0x0?(this[_0x211476(0xc1)](!0x1),this):(_0x59c175[_0x211476(0x27d)](),this[_0x211476(0x195)][_0x211476(0x297)][_0x211476(0x1d5)](_0x2d6222=>{const _0x1d3dc0=_0x211476;let _0x40efac=Mr(this['_state'][_0x1d3dc0(0x111)],_0x2d6222),_0x54ef92=_0x2d6222[_0x1d3dc0(0x34d)]!==void 0x0,_0x502698=_0x2d6222[_0x1d3dc0(0x376)]===_0x1d3dc0(0x1a7)||_0x2d6222[_0x1d3dc0(0x376)]===_0x1d3dc0(0x31b)||_0x2d6222['kind']===_0x1d3dc0(0x2ee)||_0x2d6222[_0x1d3dc0(0x376)]===_0x1d3dc0(0x32f),_0x1f1ee2=_0x2d6222['kind']==='add-sibling-before'||_0x2d6222[_0x1d3dc0(0x376)]===_0x1d3dc0(0x2ae),_0x1b85f5=_0x1f1ee2&&!_0x40efac?_0x2d6222[_0x1d3dc0(0x258)]??_0x2d6222[_0x1d3dc0(0xe0)]:_0x2d6222[_0x1d3dc0(0xe0)];if(_0x59c175[_0x1d3dc0(0x2c3)](),_0x59c175['fillStyle']=_0x2d6222[_0x1d3dc0(0x376)]===_0x1d3dc0(0x34c)?$[_0x1d3dc0(0x3a8)]:$[_0x1d3dc0(0x12c)],_0x59c175['strokeStyle']=$['primaryColor'],_0x59c175[_0x1d3dc0(0x261)]=$[_0x1d3dc0(0x1a2)],_0x59c175[_0x1d3dc0(0x36a)](_0x2d6222['x'],_0x2d6222['y'],_0x1b85f5,0x0,Math['PI']*0x2),_0x59c175[_0x1d3dc0(0x3ac)](),(!_0x1f1ee2||_0x40efac)&&_0x59c175[_0x1d3dc0(0x38b)](),!_0x54ef92&&(!_0x1f1ee2||_0x40efac)){if(_0x59c175[_0x1d3dc0(0x2c3)](),_0x59c175['strokeStyle']=_0x2d6222['kind']===_0x1d3dc0(0x34c)?$[_0x1d3dc0(0x12c)]:$['surfaceColor'],_0x59c175[_0x1d3dc0(0x261)]=_0x1f1ee2?$['glyphWidth']:_0x40efac?$[_0x1d3dc0(0x1b1)]:$[_0x1d3dc0(0x34a)],_0x59c175[_0x1d3dc0(0x1f5)]=_0x1d3dc0(0x1b4),_0x2d6222['kind']===_0x1d3dc0(0x34c)){let _0x1174f2=$[_0x1d3dc0(0x218)];_0x59c175['moveTo'](_0x2d6222['x']+_0x1174f2/0x2,_0x2d6222['y']-_0x1174f2),_0x59c175[_0x1d3dc0(0x2f7)](_0x2d6222['x']-_0x1174f2/0x2,_0x2d6222['y']),_0x59c175['lineTo'](_0x2d6222['x']+_0x1174f2/0x2,_0x2d6222['y']+_0x1174f2);}else{let _0x4cae14=_0x1f1ee2?$['siblingGlyphSize']:_0x502698?$['addChildGlyphSize']:$[_0x1d3dc0(0x218)];_0x59c175['moveTo'](_0x2d6222['x']-_0x4cae14,_0x2d6222['y']),_0x59c175[_0x1d3dc0(0x2f7)](_0x2d6222['x']+_0x4cae14,_0x2d6222['y']),_0x59c175[_0x1d3dc0(0xef)](_0x2d6222['x'],_0x2d6222['y']-_0x4cae14),_0x59c175[_0x1d3dc0(0x2f7)](_0x2d6222['x'],_0x2d6222['y']+_0x4cae14);}_0x59c175[_0x1d3dc0(0x38b)]();}_0x54ef92&&(_0x59c175[_0x1d3dc0(0x1f9)]=$[_0x1d3dc0(0x12c)],_0x59c175[_0x1d3dc0(0x347)]=$[_0x1d3dc0(0x28a)]+'\x20'+$[_0x1d3dc0(0x3b7)]+_0x1d3dc0(0x339)+$['fontFamily'],_0x59c175['textAlign']=_0x1d3dc0(0x32a),_0x59c175[_0x1d3dc0(0x137)]=_0x1d3dc0(0x23b),_0x59c175[_0x1d3dc0(0x2a8)](String(_0x2d6222[_0x1d3dc0(0x34d)]),_0x2d6222['x'],_0x2d6222['y']));}),_0x59c175[_0x211476(0x190)](),this[_0x211476(0xc1)](!0x1),this);}};function Pr(_0x390a47){const _0x21bb20=_0x1b778c;return _0x390a47===_0x21bb20(0x26c)||_0x390a47===_0x21bb20(0x319)||_0x390a47==='tree-alternate';}function Fr(_0x1aa295){const _0xc230a8=_0x1b778c;return _0x1aa295===_0xc230a8(0x16a)||_0x1aa295===_0xc230a8(0x3c1);}function Ir(_0x5d487f,_0x146750){const _0x127da7=_0x1b778c;let _0x1863d9=Number['isFinite'](_0x146750[_0x127da7(0x387)])&&_0x146750[_0x127da7(0x387)]>0x0?_0x146750['zoomRatio']:0x1;return{'x':Math[_0x127da7(0x1b4)]((_0x5d487f[_0x127da7(0x3b8)]-_0x146750[_0x127da7(0xca)]['x'])/_0x1863d9),'y':Math[_0x127da7(0x1b4)]((_0x5d487f['offsetY']-_0x146750[_0x127da7(0xca)]['y'])/_0x1863d9)};}let Lr=class extends _0x285459{constructor(_0x27064e,_0x336fc7,_0x4334dc,_0x52a3e8,_0x5cbefd,_0x391d94,_0x5ba651,_0x5730b8,_0xbefc3b){const _0x3b24c3=_0x1b778c;super(),this['_renderContext']=_0x27064e,this[_0x3b24c3(0x399)]=_0x336fc7,this[_0x3b24c3(0x1f0)]=_0x4334dc,this[_0x3b24c3(0x30e)]=_0x52a3e8,this[_0x3b24c3(0x246)]=_0x5cbefd,this[_0x3b24c3(0x15c)]=_0x391d94,this[_0x3b24c3(0x114)]=_0x5ba651,this['_previewRefreshService']=_0x5730b8,this['_undoRedoGroupService']=_0xbefc3b,K(this,_0x3b24c3(0x1de),null),K(this,'_objectEventDisposables',null),K(this,_0x3b24c3(0x39e),null),K(this,_0x3b24c3(0x362),null),this[_0x3b24c3(0x14d)]();}[_0x1b778c(0x14d)](){const _0x11a057=_0x1b778c;var _0x34ae27,_0x1ed274,_0x33812b;let {scene:_0x579712}=this[_0x11a057(0x1da)],_0x53393d=(_0x34ae27=_0x579712[_0x11a057(0x236)])==null?void 0x0:_0x34ae27[_0x11a057(0x360)](_0x579712);_0x53393d&&(this[_0x11a057(0x172)](_0x16561b(_0x53393d[_0x11a057(0x290)]['pipe'](_0x2cb42f(this[_0x11a057(0x351)]))[_0x11a057(0xcb)](({objects:_0x264923})=>{const _0x52f695=_0x11a057;this[_0x52f695(0x1aa)](_0x264923,{'hideRootControls':!0x0});}))),this[_0x11a057(0x172)](_0x16561b(_0x53393d['changeEnd$']['pipe'](_0x2cb42f(this[_0x11a057(0x351)]))[_0x11a057(0xcb)](_0xfeead6=>{const _0x332958=_0x11a057;let _0x7beff1=_0xfeead6==null?void 0x0:_0xfeead6['objects'];this[_0x332958(0x1aa)](_0x7beff1),setTimeout(()=>this[_0x332958(0x1aa)](_0x7beff1),0x0);})))),this[_0x11a057(0x172)](_0x16561b(this[_0x11a057(0x1f0)][_0x11a057(0x118)][_0x11a057(0xd3)](_0x2cb42f(this[_0x11a057(0x351)]))[_0x11a057(0xcb)](()=>this[_0x11a057(0x1aa)]()))),this[_0x11a057(0x172)](_0x16561b(this['_stateService'][_0x11a057(0x118)]['pipe'](_0x2cb42f(this[_0x11a057(0x351)]))['subscribe'](()=>this[_0x11a057(0x1aa)]()))),this[_0x11a057(0x172)](_0x16561b(this[_0x11a057(0x399)][_0x11a057(0x21c)]['pipe'](_0x2cb42f(this['dispose$']))[_0x11a057(0xcb)](_0x47cd3d=>{const _0x512964=_0x11a057;let _0x1995ad=this[_0x512964(0x1f0)][_0x512964(0x305)]()[_0x512964(0x310)];_0x1995ad&&_0x47cd3d[_0x512964(0x1bd)](_0x16b8ce=>_0x16b8ce[_0x512964(0x1d1)]===_0x1995ad[_0x512964(0x1d1)]&&_0x16b8ce['subUnitId']===_0x1995ad[_0x512964(0x28e)]&&(_0x16b8ce['elementId']===this[_0x512964(0x39e)]||_0x16b8ce['elementId']===this['_activeScopeId']))&&this[_0x512964(0x1aa)]();}))),this[_0x11a057(0x172)](_0x16561b(this[_0x11a057(0xe6)][_0x11a057(0x17e)][_0x11a057(0xd3)](_0x2cb42f(this['dispose$']))[_0x11a057(0xcb)](_0x55bb24=>{const _0x3c4fce=_0x11a057;let _0x46c21d=this[_0x3c4fce(0x1f0)][_0x3c4fce(0x305)]()[_0x3c4fce(0x310)];_0x46c21d&&_0x46c21d[_0x3c4fce(0x1d1)]===_0x55bb24[_0x3c4fce(0x1d1)]&&_0x46c21d[_0x3c4fce(0x28e)]===_0x55bb24[_0x3c4fce(0x28e)]&&(this[_0x3c4fce(0x362)]&&this[_0x3c4fce(0x362)]!==_0x55bb24[_0x3c4fce(0x315)]||this[_0x3c4fce(0x1aa)]());}))),this[_0x11a057(0x172)](_0x16561b(_0x579712[_0x11a057(0x127)][_0x11a057(0x378)](_0xcdaf7c=>this[_0x11a057(0x200)](_0xcdaf7c)))),this['disposeWithMe'](_0x16561b(_0x579712[_0x11a057(0x1db)]['subscribeEvent']({'priority':0x4,'next':([_0x416cdb,_0x176a44])=>{const _0x54cc26=_0x11a057;this[_0x54cc26(0x1af)](_0x416cdb)&&this[_0x54cc26(0x2c0)](_0x416cdb,_0x176a44);}}))),this[_0x11a057(0x172)](_0x16561b(((_0x1ed274=_0x579712[_0x11a057(0xe8)])==null?void 0x0:_0x1ed274['subscribeEvent']({'priority':0x4,'next':([_0x3c70c9,_0x41c934])=>{const _0x18e4c4=_0x11a057;this['_isControlEvent'](_0x3c70c9)&&this[_0x18e4c4(0x2c0)](_0x3c70c9,_0x41c934);}}))??{'dispose':()=>{}})),this[_0x11a057(0x172)](_0x16561b(((_0x33812b=_0x579712[_0x11a057(0xad)])==null?void 0x0:_0x33812b[_0x11a057(0x378)]({'priority':0x4,'next':([_0xe33964,_0x35590e])=>{const _0x2d0629=_0x11a057;this[_0x2d0629(0x363)](_0xe33964)&&this['_consumeControlEvent'](_0xe33964,_0x35590e);}}))??{'dispose':()=>{}})),this[_0x11a057(0x172)](_0x16561b(()=>this[_0x11a057(0xe4)]())),this[_0x11a057(0x1aa)]();}['_ensureObject'](){const _0x358c26=_0x1b778c;return this[_0x358c26(0x1de)]||(this[_0x358c26(0x1de)]=new Nr(Ar),this['_attachObjectEvents'](this['_object']),this['_renderContext']['scene']['addObject'](this[_0x358c26(0x1de)],jr)),this[_0x358c26(0x1de)];}[_0x1b778c(0x298)](_0x3180a0){const _0x2c8de3=_0x1b778c;var _0x11f640;(_0x11f640=this[_0x2c8de3(0xf5)])==null||_0x11f640[_0x2c8de3(0xb0)]();let _0x9b8f55=new _0x1bdce5();_0x9b8f55[_0x2c8de3(0x150)](_0x3180a0['onPointerDown$'][_0x2c8de3(0x378)]({'priority':0x4,'next':([_0x3e4989,_0x2e6571])=>{const _0x1c899d=_0x2c8de3;this[_0x1c899d(0x1af)](_0x3e4989)&&this[_0x1c899d(0x2c0)](_0x3e4989,_0x2e6571);}})),_0x9b8f55['add'](_0x3180a0['onPointerUp$']['subscribeEvent']({'priority':0x4,'next':([_0x1cb7fd,_0x883670])=>{const _0x425da0=_0x2c8de3;this[_0x425da0(0x363)](_0x1cb7fd)&&this[_0x425da0(0x2c0)](_0x1cb7fd,_0x883670);}})),_0x9b8f55[_0x2c8de3(0x150)](_0x3180a0[_0x2c8de3(0xad)][_0x2c8de3(0x378)]({'priority':0x4,'next':([_0x389c29,_0x547f82])=>{const _0x5239ec=_0x2c8de3;this[_0x5239ec(0x363)](_0x389c29)&&this['_consumeControlEvent'](_0x389c29,_0x547f82);}})),this[_0x2c8de3(0xf5)]=_0x9b8f55;}[_0x1b778c(0xe4)](){const _0x59907e=_0x1b778c;var _0x1ba332;this[_0x59907e(0x1de)]&&(this['_renderContext']['scene'][_0x59907e(0x33a)]([this[_0x59907e(0x1de)]]),(_0x1ba332=this[_0x59907e(0xf5)])==null||_0x1ba332[_0x59907e(0xb0)](),this[_0x59907e(0xf5)]=null,this[_0x59907e(0x1de)]=null,this[_0x59907e(0x39e)]=null,this[_0x59907e(0x362)]=null,this[_0x59907e(0x1da)][_0x59907e(0x154)][_0x59907e(0xc1)](!0x0));}[_0x1b778c(0x1aa)](_0x200a34,_0x2e4a3b){const _0x435840=_0x1b778c;var _0xdb39cd,_0x2db368;if(this[_0x435840(0x30e)]['getState']()[_0x435840(0xf7)]===_0x435840(0x238)){this['_removeObject']();return;}let _0x2fa396=this['_elementStateService']['getSnapshot'](),_0xd6b5e2=_0x2fa396[_0x435840(0x310)],_0x5d76ab=_0x2fa396['focusedId']??_0x2fa396[_0x435840(0x3c3)][0x0];if(!_0xd6b5e2||!_0x5d76ab||_0x2fa396[_0x435840(0x3c3)][_0x435840(0xe7)]!==0x1){this[_0x435840(0xe4)]();return;}let _0x2dfdbd=this[_0x435840(0x399)][_0x435840(0x198)](_0xd6b5e2[_0x435840(0x1d1)],_0xd6b5e2[_0x435840(0x28e)]),_0x33864f=_0x2dfdbd[_0x5d76ab],_0x55e672=_0x553933(_0x33864f==null?void 0x0:_0x33864f['element']);if(!_0x33864f||!_0x55e672){this['_removeObject']();return;}let _0x178eea=_0x2a9cbd(_0xd6b5e2['unitId'],_0x5d76ab);if(_0x2e4a3b!=null&&_0x2e4a3b[_0x435840(0x10f)]&&_0x55e672[_0x435840(0x333)]==null&&_0x200a34!=null&&_0x200a34[_0x435840(0x108)](_0x178eea)){this[_0x435840(0xe4)]();return;}let _0x3c68fe=this['_resolveControlBounds'](_0x2dfdbd,_0xd6b5e2[_0x435840(0x1d1)],_0x5d76ab,_0x200a34);if(!_0x3c68fe){this[_0x435840(0xe4)]();return;}let _0x23e98d=Object[_0x435840(0x346)](_0x2dfdbd)[_0x435840(0x124)](_0x5c6e2=>{var _0x47c7cc;return((_0x47c7cc=_0x553933(_0x5c6e2['element']))==null?void 0x0:_0x47c7cc['parentNodeId'])===_0x5d76ab;}),_0x4ed174=_0x55e672[_0x435840(0x36f)]?this[_0x435840(0x2db)](_0x2dfdbd,_0x5d76ab):0x0;this[_0x435840(0x39e)]=_0x5d76ab,this[_0x435840(0x362)]=_0x55e672[_0x435840(0x353)];let _0x18ed1a=(_0xdb39cd=_0x2dfdbd[_0x55e672[_0x435840(0x353)]])==null?void 0x0:_0xdb39cd[_0x435840(0x201)],_0x101e30=_0x4cc68d(_0x18ed1a),_0x296753=_0x18ed1a==null||(_0x2db368=_0x18ed1a[_0x435840(0x2ed)])==null||(_0x2db368=_0x2db368[_0x435840(0x155)])==null||(_0x2db368=_0x2db368['layout'])==null?void 0x0:_0x2db368['structureKind'],_0x596a45=(_0x101e30==null?void 0x0:_0x101e30[_0x435840(0x343)][_0x435840(0xd6)])??_0x296753,_0x28c5d9=_0x55e672[_0x435840(0x333)]==null,_0x4b7581=this['_resolveControlSide'](_0x55e672[_0x435840(0x132)],_0x28c5d9,_0x596a45);this[_0x435840(0x1e0)]()[_0x435840(0x210)]({'controls':kr({'bounds':_0x3c68fe,'isRoot':_0x28c5d9,'side':_0x4b7581,'rootChildSides':this[_0x435840(0x1c0)](_0x28c5d9,_0x596a45),'hasChildren':_0x23e98d[_0x435840(0xe7)]>0x0,'collapsedDescendantCount':_0x4ed174})}),this['_renderContext'][_0x435840(0x154)][_0x435840(0xc1)](!0x0);}[_0x1b778c(0xd1)](_0x1a91f4,_0x531f74,_0xa8aabc){const _0x2cb31d=_0x1b778c;return _0xa8aabc==='timeline-vertical'?!_0x531f74&&(_0x1a91f4===_0x2cb31d(0x344)||_0x1a91f4===_0x2cb31d(0x1f3))?_0x1a91f4:_0x2cb31d(0x35e):_0xa8aabc===_0x2cb31d(0xf4)?!_0x531f74&&(_0x1a91f4===_0x2cb31d(0x165)||_0x1a91f4===_0x2cb31d(0x35e))?_0x1a91f4:_0x2cb31d(0x35e):_0x1a91f4==='left'?_0x2cb31d(0x344):_0x2cb31d(0x1f3);}[_0x1b778c(0x1c0)](_0x28312d,_0x4c1ed8){const _0x5200cb=_0x1b778c;if(_0x28312d){if(Pr(_0x4c1ed8))return[_0x5200cb(0x35e)];if(_0x4c1ed8===_0x5200cb(0x16a))return[_0x5200cb(0x1f3)];if(_0x4c1ed8===_0x5200cb(0x3c1))return['bottom'];}}[_0x1b778c(0x291)](_0x132411){const _0x13e2ed=_0x1b778c;var _0x28b4bf,_0x4e745b;let _0x5c634b=this['_elementStateService']['getSnapshot']()[_0x13e2ed(0x310)];if(!_0x5c634b||!this['_activeNodeId'])return;let _0x5325dd=this[_0x13e2ed(0x399)][_0x13e2ed(0x198)](_0x5c634b[_0x13e2ed(0x1d1)],_0x5c634b[_0x13e2ed(0x28e)]),_0x4e113d=_0x553933((_0x28b4bf=_0x5325dd[this[_0x13e2ed(0x39e)]])==null?void 0x0:_0x28b4bf[_0x13e2ed(0x201)]),_0x4266c4=_0x4e113d?_0x4cc68d((_0x4e745b=_0x5325dd[_0x4e113d[_0x13e2ed(0x353)]])==null?void 0x0:_0x4e745b[_0x13e2ed(0x201)]):null;if((_0x4e113d==null?void 0x0:_0x4e113d[_0x13e2ed(0x333)])!=null||!Pr(_0x4266c4==null?void 0x0:_0x4266c4['layout'][_0x13e2ed(0xd6)])&&!Fr(_0x4266c4==null?void 0x0:_0x4266c4[_0x13e2ed(0x343)]['structureKind']))return _0x132411===_0x13e2ed(0x1a7)?'left':_0x132411===_0x13e2ed(0x2ee)?_0x13e2ed(0x165):_0x132411===_0x13e2ed(0x32f)?'bottom':_0x13e2ed(0x1f3);}[_0x1b778c(0x1b5)](_0x552b2c,_0x16876e,_0x3c09b2,_0x3a4162){const _0x18e83d=_0x1b778c;var _0x3505f4,_0x2bc28d;let _0x2414fe=_0x2a9cbd(_0x16876e,_0x3c09b2),_0x1ec2d4=_0x3a4162==null?void 0x0:_0x3a4162[_0x18e83d(0x151)](_0x2414fe),_0xdcb65a=this['_toFiniteBounds'](_0x1ec2d4);if(_0xdcb65a)return _0xdcb65a;let _0xb2da84=this[_0x18e83d(0x1da)][_0x18e83d(0x154)],_0x331260=((_0x3505f4=_0xb2da84[_0x18e83d(0x253)])==null?void 0x0:_0x3505f4['call'](_0xb2da84,_0x2414fe))??((_0x2bc28d=_0xb2da84[_0x18e83d(0xb8)])==null?void 0x0:_0x2bc28d[_0x18e83d(0x360)](_0xb2da84,_0x2414fe));return this[_0x18e83d(0x159)](_0x331260)||_0xa238e7(_0x552b2c,_0x3c09b2);}[_0x1b778c(0x159)](_0x4bb6b3){const _0x16a553=_0x1b778c;return _0x4bb6b3&&Number[_0x16a553(0x1e9)](_0x4bb6b3[_0x16a553(0x344)])&&Number[_0x16a553(0x1e9)](_0x4bb6b3[_0x16a553(0x165)])&&Number[_0x16a553(0x1e9)](_0x4bb6b3[_0x16a553(0x316)])&&Number[_0x16a553(0x1e9)](_0x4bb6b3['height'])?{'left':_0x4bb6b3[_0x16a553(0x344)],'top':_0x4bb6b3['top'],'width':_0x4bb6b3[_0x16a553(0x316)],'height':_0x4bb6b3[_0x16a553(0xbc)]}:null;}[_0x1b778c(0x2db)](_0x39da01,_0x2fa52e){const _0x5634f5=_0x1b778c;return Object[_0x5634f5(0x346)](_0x39da01)[_0x5634f5(0x124)](_0x3d7207=>{const _0x27f7ad=_0x5634f5;var _0x28e0b5;return((_0x28e0b5=_0x553933(_0x3d7207[_0x27f7ad(0x201)]))==null?void 0x0:_0x28e0b5[_0x27f7ad(0x333)])===_0x2fa52e;})[_0x5634f5(0x330)]((_0x49bdc3,_0x9ddee2)=>_0x49bdc3+0x1+this[_0x5634f5(0x2db)](_0x39da01,_0x9ddee2['elementId']),0x0);}[_0x1b778c(0x200)](_0x4d38fb){const _0x2a230f=_0x1b778c;if(!this[_0x2a230f(0x1de)])return;let _0x287863=this['_stateService'][_0x2a230f(0x197)](),_0x3e9e37=Ir(_0x4d38fb,{'panOffset':_0x287863[_0x2a230f(0x212)],'zoomRatio':_0x287863[_0x2a230f(0x387)]});this[_0x2a230f(0x1de)][_0x2a230f(0x14e)](this[_0x2a230f(0x1de)][_0x2a230f(0x361)](_0x3e9e37,_0x4d38fb[_0x2a230f(0x178)]));}[_0x1b778c(0x1af)](_0x4ac1cb){const _0x323728=_0x1b778c;if(!this['_object']||!this[_0x323728(0x39e)]||(_0x4ac1cb[_0x323728(0x186)]??0x0)!==0x0)return!0x1;let _0x37a576=this[_0x323728(0x1f0)][_0x323728(0x305)]()[_0x323728(0x310)];if(!_0x37a576)return!0x1;let _0x258a94=this['_stateService'][_0x323728(0x197)](),_0x3b7206=Ir(_0x4ac1cb,{'panOffset':_0x258a94[_0x323728(0x212)],'zoomRatio':_0x258a94['zoomRatio']}),_0x29e032=this['_object'][_0x323728(0x361)](_0x3b7206,_0x4ac1cb['deviceType']);if(!_0x29e032)return!0x1;if(_0x29e032['kind']===_0x323728(0x34c))return this[_0x323728(0x320)](_0x42ee80['id'],{'unitId':_0x37a576[_0x323728(0x1d1)],'subUnitId':_0x37a576[_0x323728(0x28e)],'nodeId':this[_0x323728(0x39e)]}),!0x0;if(_0x29e032[_0x323728(0x376)]===_0x323728(0x1a7)||_0x29e032[_0x323728(0x376)]==='add-child-right'||_0x29e032['kind']===_0x323728(0x2ee)||_0x29e032[_0x323728(0x376)]===_0x323728(0x32f)){let _0x3218ce=_0x2075ab(0x6);return this[_0x323728(0x22c)](_0xb4c09f['id'],{'unitId':_0x37a576[_0x323728(0x1d1)],'subUnitId':_0x37a576[_0x323728(0x28e)],'parentNodeId':this['_activeNodeId'],'side':this[_0x323728(0x291)](_0x29e032[_0x323728(0x376)]),'nodeId':_0x3218ce,'connectorId':_0x2075ab(0x6),'text':this[_0x323728(0x114)]['t'](_0x323728(0x29e))},_0x3218ce),!0x0;}if(_0x29e032[_0x323728(0x376)]===_0x323728(0x188)||_0x29e032[_0x323728(0x376)]==='add-sibling-after'){let _0x5e36cf=_0x2075ab(0x6);return this[_0x323728(0x22c)](_0x34ed4d['id'],{'unitId':_0x37a576[_0x323728(0x1d1)],'subUnitId':_0x37a576['subUnitId'],'nodeId':this[_0x323728(0x39e)],'placement':_0x29e032[_0x323728(0x18c)]??(_0x29e032[_0x323728(0x376)]===_0x323728(0x188)?_0x323728(0x17b):'after'),'siblingNodeId':_0x5e36cf,'connectorId':_0x2075ab(0x6),'text':this[_0x323728(0x114)]['t'](_0x323728(0x29e))},_0x5e36cf),!0x0;}return!0x0;}[_0x1b778c(0x363)](_0x2c0416){const _0x18971e=_0x1b778c;if(!this[_0x18971e(0x1de)]||(_0x2c0416[_0x18971e(0x186)]??0x0)!==0x0)return!0x1;let _0x1faf0f=this[_0x18971e(0x30e)]['getState'](),_0x701153=Ir(_0x2c0416,{'panOffset':_0x1faf0f['viewportPanOffset'],'zoomRatio':_0x1faf0f[_0x18971e(0x387)]});return!!this[_0x18971e(0x1de)]['getHitControl'](_0x701153,_0x2c0416[_0x18971e(0x178)]);}[_0x1b778c(0x2c0)](_0xbf37b8,_0x21b7cb){const _0x3dd99a=_0x1b778c;var _0x109d9e,_0x209a6d;_0x21b7cb['stopPropagation'](),(_0x109d9e=_0xbf37b8[_0x3dd99a(0x117)])==null||_0x109d9e[_0x3dd99a(0x360)](_0xbf37b8),(_0x209a6d=_0xbf37b8[_0x3dd99a(0x2b2)])==null||_0x209a6d[_0x3dd99a(0x360)](_0xbf37b8);}[_0x1b778c(0x320)](_0x16df7c,_0x4244db){const _0x102545=_0x1b778c;let _0x228654=this['_activeScopeId'];this[_0x102545(0x20b)][_0x102545(0x295)](_0x4244db[_0x102545(0x1d1)],()=>{const _0x210371=_0x102545;this[_0x210371(0x246)][_0x210371(0x251)](_0x16df7c,_0x4244db)&&_0x228654&&(this[_0x210371(0x246)][_0x210371(0x251)](_0x4b8919['id'],{'unitId':_0x4244db[_0x210371(0x1d1)],'subUnitId':_0x4244db[_0x210371(0x28e)],'scopeId':_0x228654}),this[_0x210371(0x1aa)]());});}[_0x1b778c(0x22c)](_0x32314f,_0x14eb76,_0x34ac5f){const _0x3e9cde=_0x1b778c;let _0x53d5c2={'unitId':_0x14eb76[_0x3e9cde(0x1d1)],'subUnitId':_0x14eb76['subUnitId']},_0x212c99=this[_0x3e9cde(0x246)][_0x3e9cde(0x35c)](_0x32314f,_0x14eb76);Promise[_0x3e9cde(0x36e)](_0x212c99)['then'](_0x32080a=>{const _0x56ca58=_0x3e9cde;_0x32080a&&(this[_0x56ca58(0x1aa)](),this[_0x56ca58(0x1f0)]['selectElements'](_0x53d5c2,[_0x34ac5f],_0x34ac5f),this[_0x56ca58(0x15c)]['ignoreExternalFocusChanges'](),this[_0x56ca58(0x15c)][_0x56ca58(0xb2)]({..._0x53d5c2,'shapeId':_0x34ac5f,'shapeKey':_0x2a9cbd(_0x53d5c2['unitId'],_0x34ac5f),'visible':!0x0}));});}};Lr=J([q(0x1,_0x407fc1(_0x3c52ab)),q(0x2,_0x407fc1(_0x3a3db4)),q(0x3,_0x407fc1(_0x2b4c4c)),q(0x4,_0x36a817),q(0x5,_0x407fc1(_0x53de0e)),q(0x6,_0x407fc1(_0x4f0dfe)),q(0x7,_0x407fc1(Tr)),q(0x8,_0x407fc1(_0x2153c6))],Lr);const Rr=_0x1b778c(0xe5);let zr=class extends _0x285459{constructor(_0x1d6e97,_0x136e42){const _0x594199=_0x1b778c;super(),this[_0x594199(0x246)]=_0x1d6e97,this['_shortcutService']=_0x136e42,this[_0x594199(0x14d)]();}[_0x1b778c(0x14d)](){const _0x4dd0e1=_0x1b778c;this[_0x4dd0e1(0x172)](this[_0x4dd0e1(0x2e5)][_0x4dd0e1(0xff)](this[_0x4dd0e1(0x3bb)]()));}[_0x1b778c(0x3bb)](){const _0x2e3187=_0x1b778c;return{'id':_0x4c2f5a,'binding':_0x406ab2['ENTER']|_0x151c45['SHIFT'],'priority':0x3e8,'preconditions':_0x13ba86=>_0x13ba86[_0x2e3187(0x38f)](_0x2e3187(0xe5))&&this['_commandService'][_0x2e3187(0xb3)](_0x4c2f5a)};}};zr=J([q(0x0,_0x36a817),q(0x1,_0x1e1a04)],zr);const Br=[Mn,Nn,Rr];let Vr=class extends _0x285459{constructor(_0x4b0675,_0xf8bf81,_0x56e766,_0x417b6c,_0x23be0c){const _0x74540f=_0x1b778c;super(),this[_0x74540f(0x1da)]=_0x4b0675,this[_0x74540f(0x399)]=_0xf8bf81,this['_elementStateService']=_0x56e766,this['_textEditingService']=_0x417b6c,this[_0x74540f(0x123)]=_0x23be0c,K(this,_0x74540f(0x36b),!0x1),this[_0x74540f(0x172)](_0x16561b(this[_0x74540f(0x1da)][_0x74540f(0x221)]['pipe'](_0x2cb42f(this[_0x74540f(0x351)]))['subscribe'](_0xa9d79e=>{const _0x409d50=_0x74540f;this[_0x409d50(0x36b)]=_0xa9d79e,this[_0x409d50(0x3ae)]();}))),this[_0x74540f(0x172)](_0x16561b(this[_0x74540f(0x1f0)][_0x74540f(0x118)]['pipe'](_0x2cb42f(this['dispose$']))['subscribe'](()=>{const _0x2441c2=_0x74540f;this[_0x2441c2(0x3ae)]();}))),this['disposeWithMe'](_0x16561b(this[_0x74540f(0x208)][_0x74540f(0x2e2)][_0x74540f(0xd3)](_0x2cb42f(this[_0x74540f(0x351)]))[_0x74540f(0xcb)](()=>{const _0x45683b=_0x74540f;this[_0x45683b(0x3ae)]();}))),this[_0x74540f(0x3ae)]();}[_0x1b778c(0x3ae)](){const _0x3346c=_0x1b778c;var _0x21a912,_0x207bde;let _0x2af96d=this['_elementStateService'][_0x3346c(0x305)](),_0x25f29a=this[_0x3346c(0x208)][_0x3346c(0x396)](),_0x229397=_0x25f29a!=null&&_0x25f29a['visible']?_0x25f29a[_0x3346c(0x161)]:_0x2af96d[_0x3346c(0x2ec)],_0x43d4bb=_0x2af96d[_0x3346c(0x19d)]??_0x2af96d[_0x3346c(0x3c3)][0x0],_0x138f5f=_0x2af96d[_0x3346c(0x310)]??{'unitId':this['_renderContext'][_0x3346c(0x1d1)],'subUnitId':this[_0x3346c(0x1da)]['unit'][_0x3346c(0x2a3)]()},_0x59f989=this['_isActive']&&!!_0x43d4bb&&_0x2af96d[_0x3346c(0x3c3)][_0x3346c(0xe7)]===0x1&&!_0x229397&&!_0x2af96d[_0x3346c(0x275)],_0x63990d=this['_isActive']?this['_boardElementService'][_0x3346c(0x198)](_0x138f5f[_0x3346c(0x1d1)],_0x138f5f[_0x3346c(0x28e)]):{};this[_0x3346c(0x123)][_0x3346c(0x18b)](Mn,_0x59f989&&!!_0x553933((_0x21a912=_0x63990d[_0x43d4bb])==null?void 0x0:_0x21a912[_0x3346c(0x201)])),this['_contextService'][_0x3346c(0x18b)](Nn,this[_0x3346c(0x36b)]&&_0x2af96d[_0x3346c(0x3c3)][_0x3346c(0xe7)]===0x0&&!_0x2af96d[_0x3346c(0x19d)]&&!_0x229397&&!_0x2af96d['isTransforming']),this['_contextService'][_0x3346c(0x18b)](Rr,!!_0x229397&&!!_0x553933((_0x207bde=_0x63990d[_0x229397])==null?void 0x0:_0x207bde[_0x3346c(0x201)]));}[_0x1b778c(0xb0)](){const _0x3e4ac4=_0x1b778c;this[_0x3e4ac4(0x207)](),super['dispose']();}[_0x1b778c(0x207)](){const _0x4c1032=_0x1b778c;Br[_0x4c1032(0x1d5)](_0x37f448=>this[_0x4c1032(0x123)]['setContextValue'](_0x37f448,!0x1));}};Vr=J([q(0x1,_0x407fc1(_0x3c52ab)),q(0x2,_0x407fc1(_0x3a3db4)),q(0x3,_0x407fc1(_0x53de0e)),q(0x4,_0x854033)],Vr);var Hr=class extends wr{async['_handlePointerDown'](_0x2047d0,_0x428566,_0x2a0b21){const _0x434f48=_0x1b778c;await this[_0x434f48(0x30c)](_0x2047d0,_0x428566,_0x2a0b21);}};const Ur={'id':_0x1b778c(0x173),'type':_0x2cc8ab[_0x1b778c(0x13f)],'handler':(_0x1de4f9,_0x210512)=>!!(_0x210512!=null&&_0x210512[_0x1b778c(0x1d1)])&&!!_0x210512['subUnitId']&&!!_0x210512[_0x1b778c(0x315)]},Wr=_0x1b778c(0x20d),Gr=[_0x1b778c(0x120),'layout',_0x1b778c(0x166)];_0x3e5dd9[_0x1b778c(0x334)],_0x3e5dd9['siblingGap'],_0x3e5dd9[_0x1b778c(0x28f)];const Kr=[{'labelKey':_0x1b778c(0x25a),'key':'horizontalGap',..._0x446f4c['horizontalGap']},{'labelKey':_0x1b778c(0x38e),'key':'siblingGap',..._0x446f4c['siblingGap']},{'labelKey':_0x1b778c(0x30a),'key':'branchGap',..._0x446f4c[_0x1b778c(0x28f)]}],qr=[{'labelKey':_0x1b778c(0x1e4),'value':_0x1b778c(0x1f3)},{'labelKey':_0x1b778c(0x225),'value':_0x1b778c(0x344)},{'labelKey':_0x1b778c(0x3a2),'value':'both'}],Jr=[{'labelKey':_0x1b778c(0x332),'value':_0x1b778c(0x263)},{'labelKey':_0x1b778c(0x3a4),'value':_0x1b778c(0xf4)},{'labelKey':'boards-mind-ui.panel.structureKind.treeRight','value':'tree-right'},{'labelKey':_0x1b778c(0x303),'value':_0x1b778c(0x26c)},{'labelKey':_0x1b778c(0x31f),'value':_0x1b778c(0x350)},{'labelKey':_0x1b778c(0x21a),'value':'timeline-horizontal'},{'labelKey':'boards-mind-ui.panel.structureKind.timelineVertical','value':_0x1b778c(0x3c1)}],Yr=[{'labelKey':_0x1b778c(0x22d),'value':_0x1b778c(0x267)},{'labelKey':_0x1b778c(0x389),'value':_0x1b778c(0x11f)},{'labelKey':_0x1b778c(0x1cf),'value':'orthogonal'}];function Xr(_0x36cff0){const _0x289477=_0x1b778c;let _0x55d099=(_0x36cff0==null?void 0x0:_0x36cff0[_0x289477(0xd6)])??_0x3e5dd9[_0x289477(0xd6)];return{'spacing':{'horizontalGap':(_0x36cff0==null?void 0x0:_0x36cff0[_0x289477(0x334)])??_0x3e5dd9[_0x289477(0x334)],'siblingGap':(_0x36cff0==null?void 0x0:_0x36cff0[_0x289477(0x23d)])??_0x3e5dd9[_0x289477(0x23d)],'branchGap':(_0x36cff0==null?void 0x0:_0x36cff0['branchGap'])??_0x3e5dd9['branchGap']},'direction':(_0x36cff0==null?void 0x0:_0x36cff0['direction'])??_0x3e5dd9[_0x289477(0x2a2)],'structureKind':_0x55d099,'branchLineType':_0x25ee14(_0x55d099,_0x36cff0==null?void 0x0:_0x36cff0['branchLineType'])};}async function Zr(_0x9c4a07,_0x256756){const _0x3abc44=_0x1b778c;return await Promise[_0x3abc44(0x36e)](_0x9c4a07[_0x3abc44(0x35c)](_0x5b0e9b['id'],_0x256756))?(await Promise['resolve'](_0x9c4a07[_0x3abc44(0x35c)](_0x4b8919['id'],{'unitId':_0x256756[_0x3abc44(0x1d1)],'subUnitId':_0x256756[_0x3abc44(0x28e)],'scopeId':_0x256756[_0x3abc44(0x315)]})),!0x0):!0x1;}async function Qr(_0x480d0b,_0xde61bb){const _0x127eb6=_0x1b778c;return await Promise['resolve'](_0x480d0b[_0x127eb6(0x35c)](_0x401f18['id'],_0xde61bb))?(await Promise['resolve'](_0x480d0b[_0x127eb6(0x35c)](_0x4b8919['id'],{'unitId':_0xde61bb['unitId'],'subUnitId':_0xde61bb[_0x127eb6(0x28e)],'scopeId':_0xde61bb['scopeId']})),!0x0):!0x1;}async function $r(_0x27ab13,_0x418d36){const _0x2ad45b=_0x1b778c;return await Promise['resolve'](_0x27ab13['executeCommand'](_0x5b0e9b['id'],{'unitId':_0x418d36[_0x2ad45b(0x1d1)],'subUnitId':_0x418d36['subUnitId'],'scopeId':_0x418d36[_0x2ad45b(0x315)],..._0x418d36[_0x2ad45b(0x334)]===void 0x0?{}:{'horizontalGap':_0x418d36[_0x2ad45b(0x334)]},..._0x418d36['siblingGap']===void 0x0?{}:{'siblingGap':_0x418d36[_0x2ad45b(0x23d)]},..._0x418d36[_0x2ad45b(0x28f)]===void 0x0?{}:{'branchGap':_0x418d36[_0x2ad45b(0x28f)]}}))?(await Promise[_0x2ad45b(0x36e)](_0x27ab13[_0x2ad45b(0x35c)](_0x4b8919['id'],{'unitId':_0x418d36[_0x2ad45b(0x1d1)],'subUnitId':_0x418d36[_0x2ad45b(0x28e)],'scopeId':_0x418d36['scopeId']})),!0x0):!0x1;}async function ei(_0x245399,_0x3cedad){const _0xc04a05=_0x1b778c;return _0x3cedad['nodeId']===_0x3cedad[_0xc04a05(0x115)]||!await Promise[_0xc04a05(0x36e)](_0x245399[_0xc04a05(0x35c)](_0x4a6209['id'],{'unitId':_0x3cedad[_0xc04a05(0x1d1)],'subUnitId':_0x3cedad[_0xc04a05(0x28e)],'nodeId':_0x3cedad[_0xc04a05(0xb6)],'targetNodeId':_0x3cedad[_0xc04a05(0x115)],'referenceNodeId':_0x3cedad[_0xc04a05(0x115)],'placement':_0x3cedad['placement']}))?!0x1:(await Promise[_0xc04a05(0x36e)](_0x245399['executeCommand'](_0x4b8919['id'],{'unitId':_0x3cedad['unitId'],'subUnitId':_0x3cedad[_0xc04a05(0x28e)],'scopeId':_0x3cedad[_0xc04a05(0x315)]})),!0x0);}async function ti(_0x427840,_0xd9eeab){const _0x29b0e7=_0x1b778c;let _0x47265f=_0xd9eeab['text'][_0x29b0e7(0x2ad)]();return!_0x47265f||!await Promise[_0x29b0e7(0x36e)](_0x427840[_0x29b0e7(0x35c)](_0x2f778f['id'],{'unitId':_0xd9eeab['unitId'],'subUnitId':_0xd9eeab[_0x29b0e7(0x28e)],'nodeId':_0xd9eeab['nodeId'],'text':_0x47265f}))?!0x1:(await Promise[_0x29b0e7(0x36e)](_0x427840[_0x29b0e7(0x35c)](_0x4b8919['id'],{'unitId':_0xd9eeab[_0x29b0e7(0x1d1)],'subUnitId':_0xd9eeab[_0x29b0e7(0x28e)],'scopeId':_0xd9eeab['scopeId']})),!0x0);}async function ni(_0x941fbe){const _0x4b8168=_0x1b778c;var _0x27af6f;let _0x44f56b=(_0x27af6f=globalThis[_0x4b8168(0x13a)])==null?void 0x0:_0x27af6f['clipboard'];return _0x44f56b!=null&&_0x44f56b['writeText']?(await _0x44f56b[_0x4b8168(0x2c2)](_0x941fbe),!0x0):!0x1;}async function ri(_0x38131b,_0x28f4c8,_0x100171=ni){const _0x40c2fc=_0x1b778c;let _0xe126cc=await Promise[_0x40c2fc(0x36e)](_0x38131b[_0x40c2fc(0x35c)](_0x572660['id'],_0x28f4c8));if(typeof _0xe126cc!=_0x40c2fc(0xc0)||!_0xe126cc)return!0x1;try{return await _0x100171(_0xe126cc)!==!0x1;}catch{return!0x1;}}async function ii(_0x5b46ab,_0x1462d3){const _0x46e682=_0x1b778c;return _0x1462d3[_0x46e682(0x377)]['trim']()?(await _0x5b46ab[_0x46e682(0x35c)](_0x1f2219['id'],_0x1462d3))[_0x46e682(0x252)]:!0x1;}function ai(_0x3c8245,_0x2da858){const _0x2a6eeb=_0x1b778c;let _0x57fe26=_0x2a6eeb(0x234)in _0x3c8245[_0x2a6eeb(0x201)]?_0x3c8245['element'][_0x2a6eeb(0x234)][_0x2a6eeb(0x226)]:void 0x0;return(_0x57fe26==null?void 0x0:_0x57fe26[_0x2a6eeb(0x3cb)])||_0x2da858;}function oi(_0x38d983,_0x1e49bc,_0x31533b=_0x2f5150){const _0x59f297=_0x1b778c;let _0x348586=Object[_0x59f297(0x346)](_0x38d983)[_0x59f297(0x10c)](_0x53e08d=>{let _0x307b5d=_0x553933(_0x53e08d['element']);return(_0x307b5d==null?void 0x0:_0x307b5d['structureScopeId'])===_0x1e49bc?{'data':_0x53e08d,'meta':_0x307b5d}:null;})[_0x59f297(0x124)](_0x59b7a9=>!!_0x59b7a9),_0x586ea5=new Map();_0x348586[_0x59f297(0x1d5)](_0x2a6fc9=>{const _0x3d0161=_0x59f297;let _0x233840=_0x2a6fc9[_0x3d0161(0x311)]['parentNodeId'];_0x586ea5['set'](_0x233840,[..._0x586ea5[_0x3d0161(0x151)](_0x233840)??[],_0x2a6fc9]);}),_0x586ea5['forEach'](_0x20dc0d=>{const _0x347774=_0x59f297;_0x20dc0d[_0x347774(0x1ab)]((_0x1bfc9c,_0xbf82a6)=>_0x266511(_0x1bfc9c[_0x347774(0x311)][_0x347774(0x2a4)],_0xbf82a6[_0x347774(0x311)]['orderKey'])||_0x1bfc9c[_0x347774(0x1f8)][_0x347774(0x2fa)][_0x347774(0xcf)](_0xbf82a6[_0x347774(0x1f8)][_0x347774(0x2fa)]));});let _0x4cba94=[],_0x437d14=(_0x138562,_0x1b3f5e)=>{const _0x1c8026=_0x59f297;(_0x586ea5[_0x1c8026(0x151)](_0x138562)??[])['forEach'](_0x1e3ae5=>{const _0x4552f3=_0x1c8026;_0x4cba94[_0x4552f3(0x2f3)]({'nodeId':_0x1e3ae5[_0x4552f3(0x1f8)][_0x4552f3(0x2fa)],'depth':_0x1b3f5e,'text':ai(_0x1e3ae5['data'],_0x31533b)}),_0x437d14(_0x1e3ae5[_0x4552f3(0x1f8)][_0x4552f3(0x2fa)],_0x1b3f5e+0x1);});};return _0x437d14(null,0x0),_0x4cba94;}function si(_0x2a28b9,_0x30db57){const _0x403625=_0x1b778c;let _0x18fba7=_0x30db57['trim']()['toLowerCase']();return _0x18fba7?_0x2a28b9[_0x403625(0x124)](_0x255d12=>_0x255d12['text'][_0x403625(0x257)]()['includes'](_0x18fba7)):_0x2a28b9;}function ci(_0x1105a7){const _0x32f00f=_0x1b778c;return{'paddingInlineStart':0x8+(Number[_0x32f00f(0x1e9)](_0x1105a7)&&_0x1105a7>0x0?_0x1105a7:0x0)*0x10};}function li(_0x4edd83){const _0x4f163c=_0x1b778c;return _0x10416f(_0x2ce81b,{'className':_0x4f163c(0x287),..._0x4edd83});}function ui(_0x4edb54){const _0x46e8f6=_0x1b778c;return _0x54bda6('section',{'className':_0x406940('univer-border-b\x20univer-border-gray-200\x20univer-p-4',_0x511d4d),'data-board-mind-map-panel-section':_0x46e8f6(0x1d3),'children':[_0x10416f('h3',{'className':_0x46e8f6(0x390),'children':_0x4edb54[_0x46e8f6(0x1b6)]}),_0x4edb54[_0x46e8f6(0x278)]]});}function di(_0x1c9992,_0xa41e5d=_0x1b778c(0x120)){const _0x3d3177=_0x1b778c;var _0x83aed3,_0x2518bc,_0x1f2356;let _0x4db681=_0x986de7(_0x36a817),_0x1dfb80=_0x986de7(_0x3a3db4),_0xec1895=_0x986de7(_0x3c52ab),_0x173763=_0x986de7(_0x4f0dfe),[,_0x37f183]=_0x3852d7(_0x10568e=>_0x10568e+0x1,0x0);_0x18d85b(()=>{const _0x1962af=_0x5157;let _0x319855=_0x557f16(_0xec1895['elementAdd$'],_0xec1895[_0x1962af(0x21c)],_0xec1895[_0x1962af(0x294)])[_0x1962af(0xcb)](_0x2cf8c6=>{const _0x4b0121=_0x1962af;_0x2cf8c6['some'](_0x106a7e=>_0x106a7e[_0x4b0121(0x1d1)]===_0x1c9992[_0x4b0121(0x1d1)]&&_0x106a7e[_0x4b0121(0x28e)]===_0x1c9992['subUnitId'])&&_0x37f183();});return()=>_0x319855['unsubscribe']();},[_0xec1895,_0x1c9992[_0x3d3177(0x1d1)],_0x1c9992[_0x3d3177(0x28e)]]);let _0x56c2ee=_0xec1895['getElementData'](_0x1c9992[_0x3d3177(0x1d1)],_0x1c9992[_0x3d3177(0x28e)]),_0x1eabb1=oi(_0x56c2ee,_0x1c9992[_0x3d3177(0x315)],_0x173763['t']('boards-mind-ui.panel.addText')),_0x17eae9=(_0x83aed3=_0x4cc68d((_0x2518bc=_0x56c2ee[_0x1c9992[_0x3d3177(0x315)]])==null?void 0x0:_0x2518bc['element']))==null?void 0x0:_0x83aed3[_0x3d3177(0x343)],[_0x57f896,_0x4bebbe]=_0x2c9c6f(''),[_0x1fd26b,_0x279cb]=_0x2c9c6f(null),[_0x1eedbc,_0x11f8a5]=_0x2c9c6f(''),{spacing:_0x411e9c,direction:_0xd1f2f3,structureKind:_0x5109a5,branchLineType:_0x53ce3e}=Xr(_0x17eae9),[_0x5ad288,_0x4f063c]=_0x2c9c6f(null),[_0x171a03,_0x47b8e5]=_0x2c9c6f(_0xa41e5d),_0x391453=si(_0x1eabb1,_0x57f896),_0x45e462={'unitId':_0x1c9992[_0x3d3177(0x1d1)],'subUnitId':_0x1c9992['subUnitId'],'scopeId':_0x1c9992[_0x3d3177(0x315)]};return{'commandService':_0x4db681,'elementStateService':_0x1dfb80,'localeService':_0x173763,'query':_0x57f896,'setQuery':_0x4bebbe,'editingOutlineNode':_0x1fd26b,'setEditingOutlineNode':_0x279cb,'opmlText':_0x1eedbc,'setOpmlText':_0x11f8a5,'spacing':_0x411e9c,'layoutDirection':_0xd1f2f3,'structureKind':_0x5109a5,'branchLineType':_0x53ce3e,'setDraggedOutlineNodeId':_0x4f063c,'activeTab':_0x171a03,'setActiveTab':_0x47b8e5,'visibleOutlineItems':_0x391453,'baseParams':_0x45e462,'tabItems':Gr[_0x3d3177(0x10c)](_0x4a59a6=>({'label':_0x173763['t']('boards-mind-ui.panel.tab.'+_0x4a59a6),'value':_0x4a59a6})),'selectedNode':_0x1c9992[_0x3d3177(0xb6)]?(_0x1f2356=_0x56c2ee[_0x1c9992[_0x3d3177(0xb6)]])==null?void 0x0:_0x1f2356['element']:void 0x0,'branchLineItems':Yr[_0x3d3177(0x124)](_0x2d360d=>_0x2d360d['value']!==_0x3d3177(0x267)||_0x1f742a(_0x5109a5)),'changeLayout':_0x1c0ab9=>Zr(_0x4db681,{..._0x45e462,'direction':_0x1c0ab9}),'changeStructureKind':_0x56f804=>{let _0x49a83d=_0x25ee14(_0x56f804,_0x53ce3e);return Zr(_0x4db681,{..._0x45e462,'structureKind':_0x56f804,..._0x49a83d===_0x53ce3e?null:{'branchLineType':_0x49a83d}});},'changeBranchLineType':_0x5c7a7f=>{let _0x50de2d=_0x25ee14(_0x5109a5,_0x5c7a7f);return Qr(_0x4db681,{..._0x45e462,'branchLineType':_0x50de2d});},'changeSpacing':(_0x39feff,_0x4cbd7e)=>{let _0x119705={..._0x411e9c,[_0x39feff]:_0x4cbd7e};return $r(_0x4db681,{..._0x45e462,..._0x119705});},'importOpml':()=>{const _0x1f9b4f=_0x3d3177;ii(_0x4db681,{'unitId':_0x1c9992['unitId'],'subUnitId':_0x1c9992[_0x1f9b4f(0x28e)],'left':0x78,'top':0x78,'opml':_0x1eedbc})['then'](_0x219446=>{_0x219446&&_0x11f8a5('');});},'exportOpml':()=>ri(_0x4db681,_0x45e462),'startRenameNode':(_0x4c347f,_0x202cc4)=>{_0x279cb({'nodeId':_0x4c347f,'text':_0x202cc4});},'commitRenameNode':()=>{const _0x17ac3b=_0x3d3177;_0x1fd26b&&ti(_0x4db681,{..._0x45e462,'nodeId':_0x1fd26b[_0x17ac3b(0xb6)],'text':_0x1fd26b[_0x17ac3b(0x3cb)]})[_0x17ac3b(0x1c2)](_0x366fac=>{_0x366fac&&_0x279cb(null);});},'reorderNode':(_0x162b4b,_0x37d06a)=>{const _0x14f97c=_0x3d3177;if(_0x162b4b[_0x14f97c(0x117)](),!_0x5ad288||_0x5ad288===_0x37d06a)return;let _0x431011=_0x162b4b['currentTarget'][_0x14f97c(0x217)](),_0x3621f2=_0x162b4b[_0x14f97c(0x126)]<_0x431011[_0x14f97c(0x165)]+_0x431011[_0x14f97c(0xbc)]/0x2?_0x14f97c(0x17b):_0x14f97c(0xb9);_0x4f063c(null),ei(_0x4db681,{..._0x45e462,'nodeId':_0x5ad288,'targetNodeId':_0x37d06a,'placement':_0x3621f2});}};}function fi(_0x595cc4){const _0xcca47e=_0x1b778c;let {elementStateService:_0x4bf68f,localeService:_0x1e58a9,query:_0x17c255,setQuery:_0x375639,editingOutlineNode:_0x2c3f9a,setEditingOutlineNode:_0x430b5a,opmlText:_0xf27efc,setOpmlText:_0x3d7147,spacing:_0x2f4c3a,layoutDirection:_0x1436b5,structureKind:_0x351eb1,branchLineType:_0x2b39a5,setDraggedOutlineNodeId:_0x22a5c8,activeTab:_0xcaa017,setActiveTab:_0x607b71,visibleOutlineItems:_0x78f8b6,tabItems:_0x1c7b7b,branchLineItems:_0x34ee78,changeLayout:_0x3f7b67,changeStructureKind:_0x2b2282,changeBranchLineType:_0x3aa88a,changeSpacing:_0x5ce898,importOpml:_0x4bcba3,exportOpml:_0xa4aba7,startRenameNode:_0x521f87,commitRenameNode:_0x47b7d8,reorderNode:_0x3065cf}=di(_0x595cc4);return _0x54bda6(_0xcca47e(0x24d),{'className':'univer-size-full\x20univer-bg-gray-0\x20univer-text-sm\x20univer-text-gray-700\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-200','data-board-mind-map-panel':_0xcca47e(0x1d3),'children':[_0x10416f(_0xcca47e(0x24d),{'className':_0x406940(_0xcca47e(0x3c4),_0x511d4d),'data-board-mind-map-panel-tabs':_0xcca47e(0x1d3),'children':_0x10416f(li,{'items':_0x1c7b7b,'value':_0xcaa017,'onChange':_0x2d74b3=>_0x607b71(_0x2d74b3)})}),_0xcaa017==='structure'&&_0x10416f(ui,{'title':_0x1e58a9['t'](_0xcca47e(0xab)),'children':_0x54bda6(_0xcca47e(0x24d),{'children':[_0x10416f(_0x66451e,{'slot':_0x10416f(_0xaa3556,{}),'value':_0x17c255,'placeholder':_0x1e58a9['t']('boards-mind-ui.panel.searchNodes'),'className':_0x406940(_0xcca47e(0x358),!0x1),'onChange':_0x375639}),_0x78f8b6['length']?_0x10416f('ol',{'className':_0xcca47e(0x33e),'children':_0x78f8b6[_0xcca47e(0x10c)](_0x5dde9a=>_0x10416f('li',{'draggable':!0x0,'className':_0xcca47e(0x318),'style':ci(_0x5dde9a[_0xcca47e(0x26f)]),'onDragStart':_0x12fe29=>{const _0x4642ab=_0xcca47e;var _0x2489cc;_0x22a5c8(_0x5dde9a[_0x4642ab(0xb6)]),(_0x2489cc=_0x12fe29[_0x4642ab(0x21d)])==null||_0x2489cc[_0x4642ab(0x345)](_0x4642ab(0x18f),_0x5dde9a[_0x4642ab(0xb6)]),_0x12fe29[_0x4642ab(0x21d)]&&(_0x12fe29[_0x4642ab(0x21d)][_0x4642ab(0x15b)]='move');},'onDragOver':_0x4fb3a7=>{const _0x1a3db8=_0xcca47e;_0x4fb3a7[_0x1a3db8(0x117)](),_0x4fb3a7[_0x1a3db8(0x21d)]&&(_0x4fb3a7['dataTransfer'][_0x1a3db8(0x1df)]=_0x1a3db8(0x15d));},'onDrop':_0x1b429f=>_0x3065cf(_0x1b429f,_0x5dde9a[_0xcca47e(0xb6)]),'onDragEnd':()=>_0x22a5c8(null),'children':(_0x2c3f9a==null?void 0x0:_0x2c3f9a[_0xcca47e(0xb6)])===_0x5dde9a[_0xcca47e(0xb6)]?_0x54bda6(_0xcca47e(0x24d),{'className':_0x406940(_0xcca47e(0x354),_0xcca47e(0x180)),'children':[_0x10416f(_0x66451e,{'autoFocus':!0x0,'size':_0xcca47e(0x31d),'className':void 0x0,'value':_0x2c3f9a['text'],'onChange':_0x11e798=>_0x430b5a({'nodeId':_0x5dde9a[_0xcca47e(0xb6)],'text':_0x11e798}),'onKeyDown':_0x46d353=>{const _0xcffefa=_0xcca47e;_0x46d353[_0xcffefa(0x370)]==='Enter'&&_0x47b7d8(),_0x46d353[_0xcffefa(0x370)]===_0xcffefa(0x285)&&_0x430b5a(null);}}),_0x10416f(_0xe955b5,{'className':void 0x0,'size':_0xcca47e(0x31d),'variant':_0xcca47e(0x335),'disabled':!_0x2c3f9a['text'][_0xcca47e(0x2ad)](),'onClick':_0x47b7d8,'children':_0x1e58a9['t']('boards-mind-ui.panel.rename')}),_0x10416f(_0xe955b5,{'className':void 0x0,'size':_0xcca47e(0x31d),'variant':_0xcca47e(0x33b),'onClick':()=>_0x430b5a(null),'children':_0x1e58a9['t'](_0xcca47e(0x254))})]}):_0x54bda6(_0x1fbb95,{'children':[_0x10416f(_0xe955b5,{'size':_0xcca47e(0x31d),'variant':'ghost','className':_0x406940('univer-min-w-0\x20univer-flex-1\x20univer-justify-start\x20univer-truncate\x20univer-text-left',!0x1),'onClick':()=>_0x4bf68f[_0xcca47e(0x2e0)]({'unitId':_0x595cc4['unitId'],'subUnitId':_0x595cc4['subUnitId']},[_0x5dde9a[_0xcca47e(0xb6)]],_0x5dde9a['nodeId']),'children':_0x5dde9a[_0xcca47e(0x3cb)]}),_0x10416f(_0xe955b5,{'className':_0x406940('univer-text-gray-500',_0xcca47e(0x32d)),'size':_0xcca47e(0x31d),'variant':_0xcca47e(0x33b),'onClick':()=>_0x521f87(_0x5dde9a['nodeId'],_0x5dde9a[_0xcca47e(0x3cb)]),'children':_0x1e58a9['t'](_0xcca47e(0x184))})]})},_0x5dde9a['nodeId']))}):_0x10416f('div',{'className':_0xcca47e(0xf3),'data-board-mind-map-panel-empty-state':_0xcca47e(0x1d3),'children':_0x1e58a9['t'](_0xcca47e(0xc4))})]})}),_0xcaa017===_0xcca47e(0x343)&&_0x10416f(ui,{'title':_0x1e58a9['t'](_0xcca47e(0x13b)),'children':_0x54bda6(_0xcca47e(0x24d),{'className':_0xcca47e(0x206),'children':[_0x10416f(_0xcca47e(0x24d),{'className':_0xcca47e(0x194),'children':_0x10416f(li,{'items':Jr['map'](_0x372808=>({'label':_0x1e58a9['t'](_0x372808[_0xcca47e(0xb7)]),'value':_0x372808[_0xcca47e(0x22e)]})),'value':_0x351eb1,'onChange':_0x537e1d=>_0x2b2282(_0x537e1d)})}),_0x10416f(_0xcca47e(0x24d),{'className':_0xcca47e(0x194),'children':_0x10416f(li,{'items':qr[_0xcca47e(0x10c)](_0x261315=>({'label':_0x1e58a9['t'](_0x261315[_0xcca47e(0xb7)]),'value':_0x261315['value']})),'value':_0x1436b5,'onChange':_0x2ccfff=>_0x3f7b67(_0x2ccfff)})}),_0x10416f(_0xcca47e(0x24d),{'className':_0xcca47e(0x194),'children':_0x10416f(li,{'items':_0x34ee78[_0xcca47e(0x10c)](_0x155838=>({'label':_0x1e58a9['t'](_0x155838['labelKey']),'value':_0x155838[_0xcca47e(0x22e)]})),'value':_0x2b39a5,'onChange':_0x203ac6=>_0x3aa88a(_0x203ac6)})}),_0x10416f(_0xcca47e(0x24d),{'className':_0xcca47e(0x17c),'children':Kr['map'](({labelKey:_0x2a388e,key:_0x17695e,min:_0x3859d5,max:_0x2c8200})=>_0x54bda6('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-xs\x20univer-text-gray-600','children':[_0x10416f(_0xcca47e(0x33f),{'className':'univer-w-20\x20univer-shrink-0','children':_0x1e58a9['t'](_0x2a388e)}),_0x10416f(_0x4200a3,{'controls':!0x0,'inputClassName':void 0x0,'min':_0x3859d5,'max':_0x2c8200,'step':0x4,'value':_0x2f4c3a[_0x17695e],'precision':0x0,'className':'univer-w-24','onChange':_0x1d1acd=>_0x5ce898(_0x17695e,Number(_0x1d1acd??_0x3859d5))})]},_0x17695e))})]})}),_0xcaa017===_0xcca47e(0x166)&&_0x10416f(ui,{'title':_0x1e58a9['t'](_0xcca47e(0x2cb)),'children':_0x54bda6(_0xcca47e(0x24d),{'className':_0xcca47e(0x37c),'children':[_0x10416f(_0x2701f8,{'className':_0x406940(_0xcca47e(0x2bb),_0xcca47e(0x32d)),'placeholder':_0x1e58a9['t']('boards-mind-ui.panel.pasteOPML'),'value':_0xf27efc,'onValueChange':_0x3d7147}),_0x54bda6(_0xcca47e(0x24d),{'className':'univer-flex\x20univer-gap-2','children':[_0x10416f(_0xe955b5,{'className':void 0x0,'size':_0xcca47e(0x31d),'variant':_0xcca47e(0x335),'disabled':!_0xf27efc[_0xcca47e(0x2ad)](),'onClick':_0x4bcba3,'children':_0x1e58a9['t'](_0xcca47e(0x1c6))}),_0x10416f(_0xe955b5,{'className':void 0x0,'size':'small','variant':'default','onClick':_0xa4aba7,'children':_0x1e58a9['t'](_0xcca47e(0x2bc))})]})]})})]});}let pi=class extends _0x5b4143{constructor(_0x2167fb,_0x5a280d,_0x3820ab){const _0x431857=_0x1b778c;super(),this[_0x431857(0x246)]=_0x2167fb,this['_localeService']=_0x5a280d,this[_0x431857(0x177)]=_0x3820ab,K(this,_0x431857(0x1eb),null),this['disposeWithMe'](this[_0x431857(0x246)][_0x431857(0x28c)](Ur)),this[_0x431857(0x172)](this[_0x431857(0x246)][_0x431857(0x37b)](_0xc2076b=>{const _0x3b1790=_0x431857;if(_0xc2076b['id']!==Ur['id'])return;let _0x2958e0=_0xc2076b[_0x3b1790(0x25c)];_0x2958e0&&'unitId'in _0x2958e0&&typeof _0x2958e0[_0x3b1790(0x1d1)]==_0x3b1790(0xc0)&&_0x3b1790(0x28e)in _0x2958e0&&typeof _0x2958e0[_0x3b1790(0x28e)]=='string'&&'scopeId'in _0x2958e0&&typeof _0x2958e0[_0x3b1790(0x315)]=='string'&&this[_0x3b1790(0x1ae)]({'unitId':_0x2958e0[_0x3b1790(0x1d1)],'subUnitId':_0x2958e0[_0x3b1790(0x28e)],'scopeId':_0x2958e0[_0x3b1790(0x315)],'nodeId':_0x3b1790(0xb6)in _0x2958e0&&typeof _0x2958e0[_0x3b1790(0xb6)]==_0x3b1790(0xc0)?_0x2958e0[_0x3b1790(0xb6)]:void 0x0});}));}[_0x1b778c(0xb0)](){const _0x123ccb=_0x1b778c;var _0x3f51ec;(_0x3f51ec=this['_sidebarDisposable'])==null||_0x3f51ec['dispose'](),this[_0x123ccb(0x1eb)]=null,super[_0x123ccb(0xb0)]();}[_0x1b778c(0x1ae)](_0x59752f){const _0x19cb98=_0x1b778c;var _0x530c63;let _0x5f9781={'label':Wr,..._0x59752f},_0x16b2ca={'id':Wr,'layout':_0x19cb98(0x2ca),'header':{'title':this[_0x19cb98(0x114)]['t'](_0x19cb98(0xc8))},'width':0x184,'children':_0x5f9781,'onClose':()=>{const _0x528ffb=_0x19cb98;this[_0x528ffb(0x1eb)]=null;}};(_0x530c63=this['_sidebarDisposable'])==null||_0x530c63[_0x19cb98(0xb0)](),this[_0x19cb98(0x1eb)]=this[_0x19cb98(0x177)]['open'](_0x16b2ca);}};pi=J([q(0x0,_0x36a817),q(0x1,_0x407fc1(_0x4f0dfe)),q(0x2,_0x407fc1(_0x77ef69))],pi);function mi(_0x42e594){const _0x26794c=_0x1b778c;let _0x4f74b1=_0x986de7(_0x36a817),_0xd0e0a3=_0x42e594[_0x26794c(0x199)]['extraProps'];return _0xd0e0a3?_0x10416f(_0x4f2210,{'shapeRef':{'hostType':_0x5d14ce[_0x26794c(0x39a)],'unitId':_0xd0e0a3[_0x26794c(0x1d1)],'subUnitId':_0xd0e0a3[_0x26794c(0x28e)],'shapeId':_0xd0e0a3[_0x26794c(0x2fa)]},'onText':()=>qn(_0x4f74b1,'edit-text'),'onStyle':()=>_0x4f74b1[_0x26794c(0x35c)](Ur['id'],{'unitId':_0xd0e0a3[_0x26794c(0x1d1)],'subUnitId':_0xd0e0a3[_0x26794c(0x28e)],'scopeId':_0xd0e0a3[_0x26794c(0x315)],'nodeId':_0xd0e0a3[_0x26794c(0x2fa)]}),'onDelete':()=>qn(_0x4f74b1,_0x26794c(0x302))}):null;}function hi(_0x1c957f){const _0x2085e3=_0x1b778c;var _0x50034c,_0x4b9cd6,_0x2df50c,_0x336aab,_0x3e728c;let _0x2a15ba=_0x986de7(_0x36a817),_0x4723e2=_0x986de7(_0x4f0dfe),_0xc7da8a=_0x986de7(_0x1b36a0),_0x5ab3af=_0x3f7788(_0xc7da8a[_0x2085e3(0x3b9)],_0xc7da8a[_0x2085e3(0xed)]()),[_0x3d81db,_0x5de6e4]=_0x2c9c6f(null),_0x3df065=_0x583394(_0x1c957f['shapeData']),_0x3ddcd3=_0x3df065['ff']??_0x467b5d[_0x2085e3(0x226)][_0x2085e3(0x368)],_0x561f66=_0x3df065['fs']??_0x467b5d['shapeText']['fontSize'];function _0x37dde0(_0x98b47a){const _0x1d19f0=_0x2085e3;return _0x2a15ba[_0x1d19f0(0x35c)](_0x2f778f['id'],{'unitId':_0x1c957f[_0x1d19f0(0x1d1)],'subUnitId':_0x1c957f['subUnitId'],'nodeId':_0x1c957f[_0x1d19f0(0xb6)],..._0x98b47a});}let _0x5e895d=[{'key':_0x2085e3(0x3ac),'value':((_0x50034c=_0x1c957f['shapeData'][_0x2085e3(0x3ac)])==null?void 0x0:_0x50034c[_0x2085e3(0x22f)])??_0x467b5d['fill']},{'key':_0x2085e3(0x38b),'value':((_0x4b9cd6=_0x1c957f['shapeData']['stroke'])==null?void 0x0:_0x4b9cd6[_0x2085e3(0x22f)])??_0x467b5d[_0x2085e3(0x38b)]},{'key':_0x2085e3(0x33d),'value':((_0x2df50c=_0x3df065['cl'])==null?void 0x0:_0x2df50c[_0x2085e3(0x105)])??_0x467b5d[_0x2085e3(0x226)][_0x2085e3(0x22f)]}];if(_0x3d81db){var _0x1adcbb;return _0x54bda6(_0x2085e3(0x24d),{'className':_0x2085e3(0xaf),'children':[_0x10416f(_0xe955b5,{'className':_0x2085e3(0xf8),'onClick':()=>_0x5de6e4(null),'children':_0x4723e2['t'](_0x2085e3(0x254))}),_0x3d81db===_0x2085e3(0x368)?_0x5ab3af==null?void 0x0:_0x5ab3af[_0x2085e3(0x10c)](_0xeefe57=>_0x10416f(_0xe955b5,{'className':_0x2085e3(0xf8),'aria-pressed':_0x3ddcd3===_0xeefe57[_0x2085e3(0x22e)],'variant':_0x3ddcd3===_0xeefe57[_0x2085e3(0x22e)]?'primary':_0x2085e3(0x33b),'onClick':async()=>{await _0x37dde0({'textStyle':{'fontFamily':_0xeefe57['value']}}),_0x5de6e4(null);},'children':_0xeefe57[_0x2085e3(0x1cd)]},_0xeefe57[_0x2085e3(0x22e)])):_0x10416f(_0x3bbc87,{'value':(_0x1adcbb=_0x5e895d[_0x2085e3(0x12f)](({key:_0x4123d3})=>_0x4123d3===_0x3d81db))==null?void 0x0:_0x1adcbb[_0x2085e3(0x22e)],'onSelect':async _0x33350f=>{const _0x558ce3=_0x2085e3;_0x3d81db==='fill'?await _0x37dde0({'fillColor':_0x33350f}):_0x3d81db===_0x558ce3(0x38b)?await _0x37dde0({'strokeColor':_0x33350f}):await _0x37dde0({'textStyle':{'color':_0x33350f}}),_0x5de6e4(null);}})]});}let _0x34f7e1=[{'key':_0x2085e3(0x185),'active':_0x3df065['bl']===_0x26909a[_0x2085e3(0x260)],'icon':_0x10416f(_0x1176f8,{})},{'key':_0x2085e3(0x2ac),'active':_0x3df065['it']===_0x26909a[_0x2085e3(0x260)],'icon':_0x10416f(_0x34ae87,{})},{'key':_0x2085e3(0x113),'active':((_0x336aab=_0x3df065['ul'])==null?void 0x0:_0x336aab['s'])===_0x26909a[_0x2085e3(0x260)],'icon':_0x10416f(_0x567b16,{})},{'key':_0x2085e3(0x25d),'active':((_0x3e728c=_0x3df065['st'])==null?void 0x0:_0x3e728c['s'])===_0x26909a[_0x2085e3(0x260)],'icon':_0x10416f(_0x4d0e2d,{})}];return _0x54bda6(_0x2085e3(0x24d),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4\x20univer-p-4','children':[_0x10416f(_0x2085e3(0x24d),{'className':_0x2085e3(0x1cb),'children':_0x34f7e1[_0x2085e3(0x10c)](({key:_0x1e3554,active:_0x1d7bc2,icon:_0x126677})=>_0x10416f(_0xe955b5,{'className':'univer-min-h-12\x20univer-text-xl','aria-label':_0x4723e2['t'](_0x2085e3(0x2ab)+_0x1e3554),'aria-pressed':_0x1d7bc2,'variant':_0x1d7bc2?'primary':_0x2085e3(0x33b),'onClick':()=>_0x37dde0({'textStyle':{[_0x1e3554]:!_0x1d7bc2}}),'children':_0x126677},_0x1e3554))}),_0x54bda6(_0xe955b5,{'className':_0x2085e3(0x19c),'onClick':()=>_0x5de6e4(_0x2085e3(0x368)),'children':[_0x10416f(_0x2085e3(0x33f),{'children':_0x4723e2['t'](_0x2085e3(0x14c))}),_0x10416f(_0x2085e3(0x33f),{'children':_0x3ddcd3})]}),_0x54bda6('label',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-4','children':[_0x10416f('span',{'children':_0x4723e2['t'](_0x2085e3(0x2fe))}),_0x10416f(_0x4200a3,{'className':'univer-w-32','inputClassName':_0x2085e3(0x3aa),'controls':!0x1,'min':0x1,'value':_0x561f66,'onChange':_0x2b8a91=>{if(_0x2b8a91!=null)return _0x37dde0({'textStyle':{'fontSize':_0x2b8a91}});}})]}),_0x5e895d[_0x2085e3(0x10c)](({key:_0x4cb978,value:_0x187e53})=>_0x54bda6(_0xe955b5,{'className':_0x2085e3(0x19c),'onClick':()=>_0x5de6e4(_0x4cb978),'children':[_0x10416f(_0x2085e3(0x33f),{'children':_0x4723e2['t'](_0x2085e3(0x2b6)+_0x4cb978)}),_0x10416f(_0x2085e3(0x33f),{'className':_0x2085e3(0x15f),'style':{'backgroundColor':_0x187e53}})]},_0x4cb978))]});}function gi(_0x2759f9){const _0xb6c266=_0x1b778c;return _0x10416f('div',{'className':_0x406940(_0xb6c266(0x2ea),_0x2759f9[_0xb6c266(0x348)][_0xb6c266(0xe7)]===0x4?'univer-grid-cols-4':_0xb6c266(0x32c)),'children':_0x2759f9[_0xb6c266(0x348)][_0xb6c266(0x10c)](_0x22910c=>_0x10416f(_0xe955b5,{'className':_0xb6c266(0x284),'variant':_0x2759f9['value']===_0x22910c[_0xb6c266(0x22e)]?_0xb6c266(0x335):_0xb6c266(0x33b),'aria-pressed':_0x2759f9['value']===_0x22910c[_0xb6c266(0x22e)],'onClick':()=>_0x2759f9[_0xb6c266(0x266)](_0x22910c[_0xb6c266(0x22e)]),'children':_0x22910c[_0xb6c266(0x1cd)]},_0x22910c['value']))});}function _i(_0x593fc1){const _0x2e39dc=_0x1b778c;let {commandService:_0x21661d,elementStateService:_0x3a72a3,localeService:_0x354997,query:_0x14b5c8,setQuery:_0x4eafea,editingOutlineNode:_0x3ef3cd,setEditingOutlineNode:_0x2c7039,opmlText:_0x4eca72,setOpmlText:_0x52a0ca,spacing:_0x447251,layoutDirection:_0x330fdb,structureKind:_0xc48911,branchLineType:_0x1955ba,activeTab:_0x340eba,setActiveTab:_0x541213,visibleOutlineItems:_0x580789,baseParams:_0xa53758,tabItems:_0x39e88a,selectedNode:_0x5d4f23,branchLineItems:_0x5e5458,changeLayout:_0x59ed3e,changeStructureKind:_0x20f6fa,changeBranchLineType:_0x24337a,changeSpacing:_0x1c826d,importOpml:_0x11028e,startRenameNode:_0x2e57a,commitRenameNode:_0x33602f}=di(_0x593fc1,_0x593fc1[_0x2e39dc(0xb6)]?'style':_0x2e39dc(0x120));return(_0x5d4f23==null?void 0x0:_0x5d4f23[_0x2e39dc(0x128)])===_0x5110ee[_0x2e39dc(0x176)]&&_0x39e88a['unshift']({'label':_0x354997['t']('boards-mind-ui.panel.nodeStyle.style'),'value':_0x2e39dc(0x224)}),_0x54bda6(_0x2e39dc(0x24d),{'className':'univer-size-full\x20univer-bg-gray-0\x20univer-text-sm\x20univer-text-gray-700\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-200','data-board-mind-map-panel':_0x2e39dc(0x1d3),'children':[_0x10416f(_0x2e39dc(0x24d),{'className':_0x406940(_0x2e39dc(0x3c4),_0x511d4d),'data-board-mind-map-panel-tabs':'true','children':_0x10416f(gi,{'items':_0x39e88a,'value':_0x340eba,'onChange':_0xae9546=>_0x541213(_0xae9546)})}),_0x340eba===_0x2e39dc(0x224)&&(_0x5d4f23==null?void 0x0:_0x5d4f23['type'])===_0x5110ee[_0x2e39dc(0x176)]&&_0x10416f(hi,{'unitId':_0x593fc1['unitId'],'subUnitId':_0x593fc1[_0x2e39dc(0x28e)],'nodeId':_0x5d4f23['id'],'shapeData':_0x5d4f23[_0x2e39dc(0x234)]}),_0x340eba===_0x2e39dc(0x120)&&_0x10416f(ui,{'title':_0x354997['t']('boards-mind-ui.panel.tab.structure'),'children':_0x54bda6('div',{'children':[_0x10416f(_0x66451e,{'slot':_0x10416f(_0xaa3556,{}),'value':_0x14b5c8,'placeholder':_0x354997['t'](_0x2e39dc(0x22b)),'className':_0x406940(_0x2e39dc(0x358),_0x2e39dc(0x13e)),'onChange':_0x4eafea}),_0x580789[_0x2e39dc(0xe7)]?_0x10416f('ol',{'className':_0x2e39dc(0x33e),'children':_0x580789['map'](_0x539212=>_0x10416f('li',{'className':_0x2e39dc(0x318),'style':ci(_0x539212[_0x2e39dc(0x26f)]),'children':(_0x3ef3cd==null?void 0x0:_0x3ef3cd[_0x2e39dc(0xb6)])===_0x539212[_0x2e39dc(0xb6)]?_0x54bda6(_0x2e39dc(0x24d),{'className':_0x406940(_0x2e39dc(0x354),_0x2e39dc(0x24e)),'children':[_0x10416f(_0x66451e,{'autoFocus':!0x1,'size':'middle','className':_0x2e39dc(0x273),'value':_0x3ef3cd[_0x2e39dc(0x3cb)],'onChange':_0x1eb95f=>_0x2c7039({'nodeId':_0x539212[_0x2e39dc(0xb6)],'text':_0x1eb95f}),'onKeyDown':_0x41f90c=>{const _0x470ed8=_0x2e39dc;_0x41f90c[_0x470ed8(0x370)]===_0x470ed8(0x12a)&&_0x33602f(),_0x41f90c[_0x470ed8(0x370)]===_0x470ed8(0x285)&&_0x2c7039(null);}}),_0x10416f(_0xe955b5,{'className':'univer-min-h-12\x20univer-flex-1','size':_0x2e39dc(0x31d),'variant':_0x2e39dc(0x335),'disabled':!_0x3ef3cd['text'][_0x2e39dc(0x2ad)](),'onClick':_0x33602f,'children':_0x354997['t'](_0x2e39dc(0x184))}),_0x10416f(_0xe955b5,{'className':_0x2e39dc(0xe1),'size':'small','variant':_0x2e39dc(0x33b),'onClick':()=>_0x2c7039(null),'children':_0x354997['t'](_0x2e39dc(0x254))})]}):_0x54bda6(_0x1fbb95,{'children':[_0x10416f(_0xe955b5,{'size':'small','variant':_0x2e39dc(0x10e),'className':_0x406940('univer-min-w-0\x20univer-flex-1\x20univer-justify-start\x20univer-truncate\x20univer-text-left','univer-min-h-12\x20univer-text-base'),'onClick':()=>_0x3a72a3[_0x2e39dc(0x2e0)]({'unitId':_0x593fc1[_0x2e39dc(0x1d1)],'subUnitId':_0x593fc1['subUnitId']},[_0x539212[_0x2e39dc(0xb6)]],_0x539212[_0x2e39dc(0xb6)]),'children':_0x539212[_0x2e39dc(0x3cb)]}),_0x10416f(_0xe955b5,{'className':_0x406940(_0x2e39dc(0x189),_0x2e39dc(0x13d)),'size':_0x2e39dc(0x31d),'variant':'default','onClick':()=>_0x2e57a(_0x539212[_0x2e39dc(0xb6)],_0x539212['text']),'children':_0x354997['t'](_0x2e39dc(0x184))})]})},_0x539212[_0x2e39dc(0xb6)]))}):_0x10416f(_0x2e39dc(0x24d),{'className':_0x2e39dc(0xf3),'data-board-mind-map-panel-empty-state':_0x2e39dc(0x1d3),'children':_0x354997['t'](_0x2e39dc(0xc4))})]})}),_0x340eba===_0x2e39dc(0x343)&&_0x10416f(ui,{'title':_0x354997['t'](_0x2e39dc(0x13b)),'children':_0x54bda6(_0x2e39dc(0x24d),{'className':_0x2e39dc(0x206),'children':[_0x10416f(_0x2e39dc(0x24d),{'className':'univer-flex\x20univer-gap-2','children':_0x10416f(gi,{'items':Jr[_0x2e39dc(0x10c)](_0x4e0751=>({'label':_0x354997['t'](_0x4e0751[_0x2e39dc(0xb7)]),'value':_0x4e0751[_0x2e39dc(0x22e)]})),'value':_0xc48911,'onChange':_0x698f63=>_0x20f6fa(_0x698f63)})}),_0x10416f('div',{'className':'univer-flex\x20univer-gap-2','children':_0x10416f(gi,{'items':qr[_0x2e39dc(0x10c)](_0x1df24c=>({'label':_0x354997['t'](_0x1df24c[_0x2e39dc(0xb7)]),'value':_0x1df24c['value']})),'value':_0x330fdb,'onChange':_0x270a79=>_0x59ed3e(_0x270a79)})}),_0x10416f(_0x2e39dc(0x24d),{'className':_0x2e39dc(0x194),'children':_0x10416f(gi,{'items':_0x5e5458[_0x2e39dc(0x10c)](_0x148601=>({'label':_0x354997['t'](_0x148601[_0x2e39dc(0xb7)]),'value':_0x148601['value']})),'value':_0x1955ba,'onChange':_0x3c0ad2=>_0x24337a(_0x3c0ad2)})}),_0x10416f(_0x2e39dc(0x24d),{'className':_0x2e39dc(0x17c),'children':Kr[_0x2e39dc(0x10c)](({labelKey:_0x6931dd,key:_0x4acc6,min:_0x14b835,max:_0x34fa45})=>_0x54bda6('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-xs\x20univer-text-gray-600','children':[_0x10416f(_0x2e39dc(0x33f),{'className':'univer-flex-1\x20univer-text-sm','children':_0x354997['t'](_0x6931dd)}),_0x10416f(_0x4200a3,{'controls':!0x1,'inputClassName':_0x2e39dc(0x3aa),'min':_0x14b835,'max':_0x34fa45,'step':0x4,'value':_0x447251[_0x4acc6],'precision':0x0,'className':_0x2e39dc(0x357),'onChange':_0x439c6b=>_0x1c826d(_0x4acc6,Number(_0x439c6b??_0x14b835))})]},_0x4acc6))})]})}),_0x340eba===_0x2e39dc(0x166)&&_0x10416f(ui,{'title':_0x354997['t'](_0x2e39dc(0x2cb)),'children':_0x54bda6(_0x2e39dc(0x24d),{'className':_0x2e39dc(0x37c),'children':[_0x10416f(_0x2701f8,{'className':_0x406940('univer-h-28\x20univer-resize-none',_0x2e39dc(0x2a0)),'placeholder':_0x354997['t'](_0x2e39dc(0x148)),'value':_0x4eca72,'onValueChange':_0x52a0ca}),_0x54bda6('div',{'className':_0x2e39dc(0x194),'children':[_0x10416f(_0xe955b5,{'className':_0x2e39dc(0xe1),'size':_0x2e39dc(0x31d),'variant':_0x2e39dc(0x335),'disabled':!_0x4eca72[_0x2e39dc(0x2ad)](),'onClick':_0x11028e,'children':_0x354997['t'](_0x2e39dc(0x1c6))}),_0x10416f(_0xe955b5,{'className':_0x2e39dc(0xe1),'size':_0x2e39dc(0x31d),'variant':'default','onClick':async()=>{const _0x57394a=_0x2e39dc;let _0x9719a9=await _0x21661d[_0x57394a(0x35c)](_0x572660['id'],_0xa53758);_0x9719a9!==!0x1&&_0x52a0ca(_0x9719a9);},'children':_0x354997['t'](_0x2e39dc(0x2bc))})]})]})})]});}let vi=class extends _0x5b4143{constructor(_0x3343ac){const _0x5caa72=_0x1b778c;super(),this['_componentManager']=_0x3343ac,this[_0x5caa72(0x15a)]();}[_0x1b778c(0x15a)](){const _0xd3417b=_0x1b778c;this[_0xd3417b(0x172)](this[_0xd3417b(0x2b1)][_0xd3417b(0x182)](On,An)),this[_0xd3417b(0x172)](this[_0xd3417b(0x2b1)]['register'](Kn,mi)),this[_0xd3417b(0x172)](this[_0xd3417b(0x2b1)][_0xd3417b(0x182)](Wr,_i));}};vi=J([q(0x0,_0x407fc1(_0x4c8e12))],vi);let yi=class extends _0x5b4143{constructor(_0x18c460,_0x39abf1,_0x38fb74){const _0x37566d=_0x1b778c;super(),this[_0x37566d(0x246)]=_0x18c460,this[_0x37566d(0x114)]=_0x39abf1,this['_sidebarService']=_0x38fb74,K(this,_0x37566d(0x1eb),null),this[_0x37566d(0x172)](this['_commandService'][_0x37566d(0x28c)](Ur)),this[_0x37566d(0x172)](this['_commandService'][_0x37566d(0x37b)](_0x580ea5=>{const _0x455fdd=_0x37566d;if(_0x580ea5['id']!==Ur['id'])return;let _0x266412=_0x580ea5[_0x455fdd(0x25c)];_0x266412&&_0x455fdd(0x1d1)in _0x266412&&typeof _0x266412[_0x455fdd(0x1d1)]==_0x455fdd(0xc0)&&'subUnitId'in _0x266412&&typeof _0x266412[_0x455fdd(0x28e)]=='string'&&_0x455fdd(0x315)in _0x266412&&typeof _0x266412[_0x455fdd(0x315)]==_0x455fdd(0xc0)&&this['open']({'unitId':_0x266412[_0x455fdd(0x1d1)],'subUnitId':_0x266412[_0x455fdd(0x28e)],'scopeId':_0x266412[_0x455fdd(0x315)],'nodeId':_0x455fdd(0xb6)in _0x266412&&typeof _0x266412['nodeId']==_0x455fdd(0xc0)?_0x266412['nodeId']:void 0x0});}));}[_0x1b778c(0xb0)](){const _0x171876=_0x1b778c;var _0x2a41f6;(_0x2a41f6=this['_sidebarDisposable'])==null||_0x2a41f6[_0x171876(0xb0)](),this[_0x171876(0x1eb)]=null,super[_0x171876(0xb0)]();}[_0x1b778c(0x1ae)](_0x3cc7c0){const _0x3af454=_0x1b778c;var _0x32add7;let _0x1ecf16={'label':Wr,..._0x3cc7c0};(_0x32add7=this[_0x3af454(0x1eb)])==null||_0x32add7['dispose'](),this['_sidebarDisposable']=this[_0x3af454(0x177)]['open']({'id':Wr,'header':{'title':this[_0x3af454(0x114)]['t'](_0x3af454(0xc8))},'width':0x184,'children':_0x1ecf16,'onClose':()=>{const _0x4b233b=_0x3af454;this[_0x4b233b(0x1eb)]=null;}});}};yi=J([q(0x0,_0x36a817),q(0x1,_0x407fc1(_0x4f0dfe)),q(0x2,_0x407fc1(_0x77ef69))],yi);let bi=class extends _0x5b4143{constructor(_0x2f8e73){const _0x44cca1=_0x1b778c;super(),this[_0x44cca1(0x2b1)]=_0x2f8e73,this[_0x44cca1(0x15a)]();}[_0x1b778c(0x15a)](){const _0x8595a1=_0x1b778c;this[_0x8595a1(0x172)](this['_componentManager']['register'](On,An)),this[_0x8595a1(0x172)](this[_0x8595a1(0x2b1)][_0x8595a1(0x182)](Kn,cr)),this['disposeWithMe'](this[_0x8595a1(0x2b1)][_0x8595a1(0x182)](Wr,fi));}};bi=J([q(0x0,_0x407fc1(_0x4c8e12))],bi);let xi=class{constructor(_0xd0261d,_0x41e4e0,_0x1367fe){const _0x4eca36=_0x1b778c;this[_0x4eca36(0x30e)]=_0xd0261d,this[_0x4eca36(0x3be)]=_0x41e4e0,this[_0x4eca36(0x239)]=_0x1367fe;}[_0x1b778c(0x349)](_0x56fc01){const _0x333eb0=_0x1b778c;var _0x46ff9d,_0x19629b;let _0x7b227e=(_0x46ff9d=this['_renderManagerService'][_0x333eb0(0x20f)](_0x56fc01[_0x333eb0(0x1d1)]))==null||(_0x19629b=_0x46ff9d[_0x333eb0(0x10b)])==null?void 0x0:_0x19629b[_0x333eb0(0x360)](_0x46ff9d),_0x5b9235=(_0x7b227e==null?void 0x0:_0x7b227e[_0x333eb0(0x151)](_0x2b4c4c))??this[_0x333eb0(0x30e)];return((_0x7b227e==null?void 0x0:_0x7b227e[_0x333eb0(0x151)](br))??this['_insertStateService'])[_0x333eb0(0x3a6)]({'rootText':_0x56fc01[_0x333eb0(0x3c7)],'structureKind':_0x56fc01[_0x333eb0(0xd6)],'branchLineType':_0x56fc01[_0x333eb0(0x2a6)],'children':_0x56fc01[_0x333eb0(0x278)],'blueprint':_0x56fc01['blueprint']}),_0x5b9235[_0x333eb0(0x3b6)](!0x1),_0x5b9235[_0x333eb0(0x37a)](),_0x5b9235[_0x333eb0(0x232)](_0x37f1d2[_0x333eb0(0x103)]),_0x5b9235['setPendingInsert']({'type':_0x37f1d2[_0x333eb0(0x103)]}),!0x0;}};xi=J([q(0x0,_0x2b4c4c),q(0x1,_0x407fc1(br)),q(0x2,_0x5c1663)],xi);const Si='UNIVER_BOARDS_MIND_UI_PLUGIN',Ci=[Dn],wi=[Vr];let Ti=class extends _0x559c3d{constructor(_0x57facd=en,_0x2c605c,_0x2c459b,_0x3488a3){const _0x20840b=_0x1b778c;super(),this[_0x20840b(0x3ca)]=_0x57facd,this['_injector']=_0x2c605c,this[_0x20840b(0x27e)]=_0x2c459b,this['_renderManagerService']=_0x3488a3;let {..._0x1df9cd}=_0x4916e7({},en,this['_config']);this['_configService'][_0x20840b(0x248)]($t,_0x1df9cd);}['onStarting'](){const _0x5ec2d3=_0x1b778c;_0x4ecec1[_0x5ec2d3(0x1f2)](this[_0x5ec2d3(0x28b)],[[br],[Tr]]),this['_getDependencies']()[_0x5ec2d3(0x1d5)](_0x2201f9=>this[_0x5ec2d3(0x28b)][_0x5ec2d3(0x150)](_0x2201f9));let _0x5d2ae5=this[_0x5ec2d3(0x28b)][_0x5ec2d3(0x151)](xi),_0x16cd5e=this['_injector'][_0x5ec2d3(0x151)](_0x597a9a);this[_0x5ec2d3(0x172)](_0x16cd5e[_0x5ec2d3(0x3c9)](_0x5d2ae5)),this[_0x5ec2d3(0x172)](this[_0x5ec2d3(0x28b)][_0x5ec2d3(0x151)](Ln)),this[_0x5ec2d3(0x172)](this[_0x5ec2d3(0x28b)][_0x5ec2d3(0x151)](zr)),this[_0x5ec2d3(0x172)](this[_0x5ec2d3(0x28b)][_0x5ec2d3(0x151)](yi)),this[_0x5ec2d3(0x172)](this[_0x5ec2d3(0x28b)][_0x5ec2d3(0x151)](bi)),this['_enableMindMapToolbarTool']();}[_0x1b778c(0xae)](){return[[br],[Tr],[xi],[Ln],[zr],[yi],[bi]];}['_getRenderModules'](){return[Ci,wi,[wr],[Lr],[ur],[En],[an],[Or]];}[_0x1b778c(0xbe)](){const _0x2913d4=_0x1b778c;this['_getRenderModules']()[_0x2913d4(0x1d5)](_0x3fa5cb=>{const _0x1748ff=_0x2913d4;this[_0x1748ff(0x172)](this[_0x1748ff(0x239)][_0x1748ff(0x2cc)](_0x5d14ce[_0x1748ff(0x39a)],_0x3fa5cb));});}[_0x1b778c(0x372)](){const _0x497d40=_0x1b778c;var _0x18f961,_0x3a0eae;let _0x197aa7=this[_0x497d40(0x38d)]();this[_0x497d40(0x27e)][_0x497d40(0x248)](_0x457d10,{..._0x197aa7,'toolbar':{..._0x197aa7[_0x497d40(0x394)],'tools':{...(_0x18f961=_0x197aa7[_0x497d40(0x394)])==null?void 0x0:_0x18f961[_0x497d40(0x164)],[_0x37f1d2[_0x497d40(0x103)]]:Ei((_0x3a0eae=_0x197aa7[_0x497d40(0x394)])==null||(_0x3a0eae=_0x3a0eae[_0x497d40(0x164)])==null?void 0x0:_0x3a0eae[_0x37f1d2[_0x497d40(0x103)]])}}});}[_0x1b778c(0x38d)](){return this['_configService']['getConfig'](_0x457d10)??{};}};K(Ti,'pluginName',Si),K(Ti,_0x1b778c(0x1e8),Zt),K(Ti,_0x1b778c(0x174),Qt),K(Ti,_0x1b778c(0x128),_0x5d14ce[_0x1b778c(0x39a)]),Ti=J([_0x2ea3a3(_0x1af614,_0x15f5f7,_0xddf37c,_0x1681bf,_0x4ecec1),q(0x1,_0x407fc1(_0x26f410)),q(0x2,_0x23cbeb),q(0x3,_0x5c1663)],Ti);function Ei(_0x123717){const _0x27ba7f=_0x1b778c;return _0x123717===!0x1?!0x1:typeof _0x123717!='object'||{..._0x123717,'enabled':_0x123717[_0x27ba7f(0x12b)]??!0x0};}let Di=class extends _0x559c3d{constructor(_0x136099=en,_0x2d1ebd,_0x57e54b,_0x1fd7b8){const _0x29b0df=_0x1b778c;super(),this[_0x29b0df(0x3ca)]=_0x136099,this['_injector']=_0x2d1ebd,this[_0x29b0df(0x27e)]=_0x57e54b,this['_renderManagerService']=_0x1fd7b8;let {..._0x528bbe}=_0x4916e7({},en,this['_config']);this[_0x29b0df(0x27e)][_0x29b0df(0x248)]($t,_0x528bbe);}[_0x1b778c(0x3ad)](){const _0x6c12e9=_0x1b778c;let _0x78433=[[br],[Tr]];_0x31dedc[_0x6c12e9(0x1f2)](this[_0x6c12e9(0x28b)],_0x78433),[..._0x78433,[xi],[Ln],[zr],[pi],[vi]][_0x6c12e9(0x1d5)](_0x4ff353=>this[_0x6c12e9(0x28b)][_0x6c12e9(0x150)](_0x4ff353)),this[_0x6c12e9(0x172)](this[_0x6c12e9(0x28b)][_0x6c12e9(0x151)](_0x597a9a)[_0x6c12e9(0x3c9)](this[_0x6c12e9(0x28b)][_0x6c12e9(0x151)](xi))),this['disposeWithMe'](this[_0x6c12e9(0x28b)][_0x6c12e9(0x151)](Ln)),this[_0x6c12e9(0x172)](this[_0x6c12e9(0x28b)]['get'](zr)),this[_0x6c12e9(0x172)](this[_0x6c12e9(0x28b)]['get'](pi)),this[_0x6c12e9(0x172)](this[_0x6c12e9(0x28b)][_0x6c12e9(0x151)](vi)),this[_0x6c12e9(0x372)]();}[_0x1b778c(0xbe)](){const _0x2a0a60=_0x1b778c;[[Dn],[Vr],[wr,{'useClass':Hr}],[Lr],[ur],[En],[an],[Or]][_0x2a0a60(0x1d5)](_0x369043=>{const _0x308014=_0x2a0a60;this[_0x308014(0x172)](this['_renderManagerService'][_0x308014(0x2cc)](_0x5d14ce[_0x308014(0x39a)],_0x369043));});}[_0x1b778c(0x372)](){const _0x1385d6=_0x1b778c;var _0x1627e8,_0x4aa97c;let _0x2a8beb=this[_0x1385d6(0x38d)]();this['_configService'][_0x1385d6(0x248)](_0x457d10,{..._0x2a8beb,'toolbar':{..._0x2a8beb['toolbar'],'tools':{...(_0x1627e8=_0x2a8beb['toolbar'])==null?void 0x0:_0x1627e8[_0x1385d6(0x164)],[_0x37f1d2[_0x1385d6(0x103)]]:Oi((_0x4aa97c=_0x2a8beb[_0x1385d6(0x394)])==null||(_0x4aa97c=_0x4aa97c[_0x1385d6(0x164)])==null?void 0x0:_0x4aa97c[_0x37f1d2[_0x1385d6(0x103)]])}}});}[_0x1b778c(0x38d)](){const _0x3dfb7c=_0x1b778c;return this[_0x3dfb7c(0x27e)][_0x3dfb7c(0x375)](_0x457d10)??{};}};K(Di,_0x1b778c(0x2b3),Si),K(Di,_0x1b778c(0x1e8),Zt),K(Di,_0x1b778c(0x174),Qt),K(Di,_0x1b778c(0x128),_0x5d14ce['UNIVER_BOARD']),Di=J([_0x2ea3a3(_0x1af614,_0x15f5f7,_0xddf37c,_0x1681bf,_0x31dedc),q(0x1,_0x407fc1(_0x26f410)),q(0x2,_0x23cbeb),q(0x3,_0x5c1663)],Di);function Oi(_0x685a17){const _0x10b55c=_0x1b778c;return _0x685a17===!0x1?!0x1:typeof _0x685a17!='object'||{..._0x685a17,'enabled':_0x685a17[_0x10b55c(0x12b)]??!0x0};}export{Di as UniverBoardsMindMobileUIPlugin,Ti as UniverBoardsMindUIPlugin};