@univerjs-pro/boards-mind-ui 1.0.0-alpha.7 → 1.0.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.css +0 -4
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/views/BoardMindMapFloatingToolbar.d.ts +1 -0
- package/lib/types/views/BoardMindMapPanel.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +13 -13
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1bfc49=_0x3cc1;(function(_0x582f83,_0x3a1af9){const _0x5efe89=_0x3cc1,_0x3439ee=_0x582f83();while(!![]){try{const _0x3dc9a5=parseInt(_0x5efe89(0x138))/0x1+parseInt(_0x5efe89(0x3fd))/0x2*(parseInt(_0x5efe89(0x28b))/0x3)+parseInt(_0x5efe89(0x2f0))/0x4*(parseInt(_0x5efe89(0x394))/0x5)+-parseInt(_0x5efe89(0x27b))/0x6*(-parseInt(_0x5efe89(0x2de))/0x7)+parseInt(_0x5efe89(0x38e))/0x8*(parseInt(_0x5efe89(0x1dc))/0x9)+parseInt(_0x5efe89(0x3e2))/0xa+-parseInt(_0x5efe89(0x18e))/0xb;if(_0x3dc9a5===_0x3a1af9)break;else _0x3439ee['push'](_0x3439ee['shift']());}catch(_0x1c6148){_0x3439ee['push'](_0x3439ee['shift']());}}}(_0x822b,0x5814f));import{BoardElementType as _0x14ffad,BoardToolType as _0x2257b4,IBoardElementService as _0x295e11,IBoardMindMapAdapterService as _0x41972c,documentTextStyleToBoardShapeTextStyle as _0x39a0aa,offsetBoardConnectorGeometry as _0x15f431,resolveBoardElementWorldBounds as _0x2fc33b}from'@univerjs-pro/boards';import{AddMindMapChildOperation as _0x5c85db,AddMindMapSiblingOperation as _0x38e794,ChangeMindMapBranchLineTypeOperation as _0x38032b,ChangeMindMapLayoutOperation as _0x2a6047,CopyMindMapNodeOperation as _0x31a993,DeleteMindMapNodeOperation as _0x4d46e4,DetachMindMapNodeOperation as _0x1d6084,ExportMindMapOpmlOperation as _0x255b71,IMindMapClipboardService as _0x5a568b,ImportMindMapOpmlOperation as _0x522db5,InsertBoardMindMapOperation as _0xc6227f,LayoutMindMapOperation as _0x51487d,MIND_MAP_DEFAULT_LAYOUT as _0x133f51,MIND_MAP_DEFAULT_NODE_SIZE as _0x2288ab,MIND_MAP_DEFAULT_NODE_TEXT as _0x775f9b,MIND_MAP_LAYOUT_SPACING_LIMITS as _0x451c65,PasteMindMapAsNewMindMapOperation as _0x4cf4e2,PasteMindMapNodeOperation as _0x4c0be7,PromoteMindMapNodeOperation as _0x11db8a,ReparentMindMapNodeOperation as _0x1123f2,ToggleMindMapNodeCollapseOperation as _0x451daf,TranslateMindMapOperation as _0x2e2da9,UniverBoardsMindPlugin as _0x103bd8,UpdateMindMapIncomingConnectorOperation as _0x245059,UpdateMindMapNodeOperation as _0x21f908,compareMindMapOrderKey as _0x1f7763,getMindMapConnectorMeta as _0x576a15,getMindMapContainerMeta as _0x114393,getMindMapDefaultChildOrderKey as _0x12f706,getMindMapNodeMeta as _0x4b908c,isMindMapPlainStructureKind as _0x26dc5f,resolveMindMapBranchLineTypeForStructure as _0x5079ad,resolveMindMapLayoutPreview as _0x47afba,resolveMindMapNodeHostSize as _0x5a9769}from'@univerjs-pro/boards-mind';import{BOARDS_UI_PLUGIN_CONFIG_KEY as _0x24be6e,BOARD_RENDER_LAYER_INDEX as _0x1254b3,BOARD_RENDER_OBJECT_Z_INDEX as _0x38268b,BOARD_SHORTCUT_BINDINGS as _0x357a00,BoardCanvasPopManagerService as _0x3be6dd,BoardInteractionSurfaceService as _0x58f2f3,BoardShapeIntrinsicSizeService as _0x50c9e9,BoardTextEditingService as _0x1cecde,IBoardElementStateService as _0x4f61df,IBoardUIStateService as _0x1ce780,UniverBoardsUIPlugin as _0xbd73f5,getBoardElementRenderObjectKey as _0x3f73c8,parseBoardElementRenderObjectKey as _0x1622e2,resolveBoardFloatingToolbarSelection as _0x143cd6,syncBoardElementRenderObject as _0x18f241}from'@univerjs-pro/boards-ui';import{UniverLicensePlugin as _0x5d65d0}from'@univerjs-pro/license';import{CommandType as _0xf7f817,DEFAULT_STYLES as _0x574b80,DependentOn as _0x4985c0,Disposable as _0x5dfc4c,DisposableCollection as _0x437ac0,HorizontalAlign as _0x353905,ICommandService as _0x38f57d,IConfigService as _0x29e452,IContextService as _0x2c413a,IUniverInstanceService as _0x49e7f1,Inject as _0xbc3476,Injector as _0x39322f,LocaleService as _0x2f4056,Plugin as _0x348eb5,RxDisposable as _0x5b09aa,UniverInstanceType as _0x3a60f9,VerticalAlign as _0x5d386b,generateRandomId as _0x523736,merge as _0x217ebd,toDisposable as _0x34ad80}from'@univerjs/core';import{BaseObject as _0x68d0be,IRenderManagerService as _0x34230a}from'@univerjs/engine-render';import{Subject as _0x5163f6,takeUntil as _0x17a1de}from'rxjs';import{SHAPE_FLOATING_TOOLBAR_DEFAULT_STROKE_COLOR as _0x49b5d4,SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_BACKGROUND_COLOR as _0x3f058b,SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_COLOR as _0x624c0a,SHAPE_TEXT_EDITOR_QUOTE_COMMAND_ID as _0x48415c,ShapeFillButton as _0x38b84d,ShapeFloatingToolbarContent as _0x245d3e,ShapeFloatingToolbarDropdownTrigger as _0x30b305,ShapeFloatingToolbarFontSizeSelect as _0x39157d,ShapeFloatingToolbarIcon as _0x1f8b97,ShapeFloatingToolbarMenuItem as _0x108fb2,ShapeFloatingToolbarMenuPanel as _0x26d4c6,ShapeStrokePanelButton as _0x5eb6a3,ShapeStrokePanelContent as _0x26c312,TextFillButton as _0x35e16f,TypographyPanelButton as _0x209f87,buildShapeTextDataUpdate as _0x5f276f}from'@univerjs-pro/shape-editor-ui';import{ShapeLineDashEnum as _0xfd6ed7,ShapeLineTypeEnum as _0x39d97e}from'@univerjs-pro/engine-shape';import{Button as _0x31b62f,Dropdown as _0x3c96a1,Input as _0x286f3d,InputNumber as _0xadbfdb,Segmented as _0x5e3c13,Separator as _0x39b257,Textarea as _0x42aebb,clsx as _0x43dfcf}from'@univerjs/design';import{AlignBottomIcon as _0x343605,AlignTextBothIcon as _0x441a79,AlignTopIcon as _0x53628a,HorizontallyIcon as _0x2337d4,LeftJustifyingIcon as _0x2a33e2,MoreHorizontalIcon as _0x49021c,RightJustifyingIcon as _0x132e50,SearchIcon as _0x38fd47,ShapeLineIcon as _0x4ccb89,VerticalCenterIcon as _0x11ed3f}from'@univerjs/icons';import{ComponentManager as _0x4dae87,IDialogService as _0x59da0c,IShortcutService as _0x419aaa,KeyCode as _0x1c11b8,MetaKeys as _0xb17f76,useDependency as _0x3c0c33}from'@univerjs/ui';import{useEffect as _0x5c5d9f,useState as _0xe1173c}from'react';import{Fragment as _0x177b6a,jsx as _0x27e6bc,jsxs as _0x528cbf}from'react/jsx-runtime';var Ot=_0x1bfc49(0x263),kt=_0x1bfc49(0x259);const At={};function jt(_0x5a8d91){'@babel/helpers - typeof';const _0xbd3f9d=_0x1bfc49;return jt=typeof Symbol==_0xbd3f9d(0x240)&&typeof Symbol[_0xbd3f9d(0x378)]==_0xbd3f9d(0x31f)?function(_0x3a958b){return typeof _0x3a958b;}:function(_0x55b5ea){const _0x3220fd=_0xbd3f9d;return _0x55b5ea&&typeof Symbol==_0x3220fd(0x240)&&_0x55b5ea[_0x3220fd(0x2df)]===Symbol&&_0x55b5ea!==Symbol[_0x3220fd(0x325)]?_0x3220fd(0x31f):typeof _0x55b5ea;},jt(_0x5a8d91);}function Mt(_0x28c031,_0xe16e13){const _0x1e23bf=_0x1bfc49;if(jt(_0x28c031)!=_0x1e23bf(0x2e2)||!_0x28c031)return _0x28c031;var _0x37714b=_0x28c031[Symbol[_0x1e23bf(0x365)]];if(_0x37714b!==void 0x0){var _0x53369d=_0x37714b[_0x1e23bf(0x3c7)](_0x28c031,_0xe16e13||'default');if(jt(_0x53369d)!=_0x1e23bf(0x2e2))return _0x53369d;throw TypeError(_0x1e23bf(0x38c));}return(_0xe16e13===_0x1e23bf(0x3fa)?String:Number)(_0x28c031);}function Nt(_0x43cdee){const _0x531717=_0x1bfc49;var _0x453e93=Mt(_0x43cdee,_0x531717(0x3fa));return jt(_0x453e93)==_0x531717(0x31f)?_0x453e93:_0x453e93+'';}function K(_0x46e626,_0x234a31,_0x4349a2){const _0x306ae5=_0x1bfc49;return(_0x234a31=Nt(_0x234a31))in _0x46e626?Object[_0x306ae5(0x1a2)](_0x46e626,_0x234a31,{'value':_0x4349a2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x46e626[_0x234a31]=_0x4349a2,_0x46e626;}function q(_0x5ca833,_0x41ec7e){return function(_0x220940,_0x179dae){_0x41ec7e(_0x220940,_0x179dae,_0x5ca833);};}function J(_0x71ce47,_0x299f46,_0x42cf84,_0x573a7a){const _0x1f8437=_0x1bfc49;var _0x4a620e=arguments[_0x1f8437(0x157)],_0x3bdc5e=_0x4a620e<0x3?_0x299f46:_0x573a7a===null?_0x573a7a=Object[_0x1f8437(0x14d)](_0x299f46,_0x42cf84):_0x573a7a,_0x351027;if(typeof Reflect=='object'&&typeof Reflect[_0x1f8437(0x2da)]==_0x1f8437(0x240))_0x3bdc5e=Reflect[_0x1f8437(0x2da)](_0x71ce47,_0x299f46,_0x42cf84,_0x573a7a);else{for(var _0x1ca333=_0x71ce47['length']-0x1;_0x1ca333>=0x0;_0x1ca333--)(_0x351027=_0x71ce47[_0x1ca333])&&(_0x3bdc5e=(_0x4a620e<0x3?_0x351027(_0x3bdc5e):_0x4a620e>0x3?_0x351027(_0x299f46,_0x42cf84,_0x3bdc5e):_0x351027(_0x299f46,_0x42cf84))||_0x3bdc5e);}return _0x4a620e>0x3&&_0x3bdc5e&&Object[_0x1f8437(0x1a2)](_0x299f46,_0x42cf84,_0x3bdc5e),_0x3bdc5e;}let Pt=class extends _0x5b09aa{constructor(_0x4177a2,_0x1a58ed,_0x16023d){const _0x384b62=_0x1bfc49;super(),this[_0x384b62(0x2d9)]=_0x4177a2,this[_0x384b62(0x13a)]=_0x1a58ed,this[_0x384b62(0x3ca)]=_0x16023d,K(this,_0x384b62(0x191),new Map()),K(this,_0x384b62(0x2d2),new Map()),K(this,_0x384b62(0x245),new Map()),K(this,_0x384b62(0x286),!0x1),K(this,'_debouncedLayoutTimer',null),this[_0x384b62(0x1f8)]();}['_init'](){const _0xb64232=_0x1bfc49;this['_seedExistingNodeSizes'](),this[_0xb64232(0x3ac)](_0x34ad80(this[_0xb64232(0x13a)]['elementAdd$'][_0xb64232(0x398)](_0x17a1de(this[_0xb64232(0x24b)]))[_0xb64232(0x20c)](_0x195e3a=>{_0x195e3a['forEach'](_0x59c8c6=>{const _0x43a9e9=_0x3cc1;let _0xcdca4f=this[_0x43a9e9(0x13a)][_0x43a9e9(0x3f5)](_0x59c8c6[_0x43a9e9(0x308)],_0x59c8c6[_0x43a9e9(0x25a)],_0x59c8c6[_0x43a9e9(0x1a7)]);this[_0x43a9e9(0x18c)](_0x59c8c6,_0xcdca4f);});}))),this[_0xb64232(0x3ac)](_0x34ad80(this[_0xb64232(0x13a)][_0xb64232(0x279)]['pipe'](_0x17a1de(this[_0xb64232(0x24b)]))[_0xb64232(0x20c)](_0x130724=>{const _0x28d2ac=_0xb64232;_0x130724['forEach'](_0x49f579=>this[_0x28d2ac(0x276)](_0x49f579));})));let _0x27da71=this[_0xb64232(0x3ca)][_0xb64232(0x188)];typeof _0x27da71==_0xb64232(0x240)&&this['disposeWithMe'](_0x27da71['call'](this['_commandService'],_0xedf2fb=>{const _0x4a57a4=_0xb64232;if(_0xedf2fb['id']!==_0x21f908['id'])return;let _0x62ac59=_0xedf2fb[_0x4a57a4(0x17a)];this['_handleNodeUpdateCommand'](_0x62ac59);})),this[_0xb64232(0x3ac)](_0x34ad80(()=>{const _0x27cc2a=_0xb64232;this[_0x27cc2a(0x3e0)]!==null&&(clearTimeout(this[_0x27cc2a(0x3e0)]),this[_0x27cc2a(0x3e0)]=null);}));}[_0x1bfc49(0x15a)](){const _0xa4d447=_0x1bfc49;let _0x43531a=this['_renderContext'][_0xa4d447(0x308)],_0x59e19d=this['_boardElementService'][_0xa4d447(0x274)](_0x43531a);Object[_0xa4d447(0x370)](_0x59e19d)[_0xa4d447(0x29c)](([_0x1f5964,_0x786f96])=>{const _0x30bab6=_0xa4d447;Object['values'](_0x786f96[_0x30bab6(0x13c)])[_0x30bab6(0x29c)](_0x597d95=>{const _0x5670d3=_0x30bab6;this[_0x5670d3(0x18c)]({'unitId':_0x43531a,'subUnitId':_0x1f5964,'elementId':_0x597d95[_0x5670d3(0x1a7)]},_0x597d95);});});}['_handleElementUpdate'](_0x592c5b){const _0x2a5c42=_0x1bfc49;if(_0x592c5b['unitId']!==this[_0x2a5c42(0x2d9)][_0x2a5c42(0x308)])return;let _0x557988=this[_0x2a5c42(0x13a)][_0x2a5c42(0x3f5)](_0x592c5b[_0x2a5c42(0x308)],_0x592c5b[_0x2a5c42(0x25a)],_0x592c5b[_0x2a5c42(0x1a7)]),_0x18ca0f=_0x4b908c(_0x557988==null?void 0x0:_0x557988['element']),_0x413fc6=this[_0x2a5c42(0x28c)](_0x557988);if(!_0x18ca0f||!_0x413fc6){this[_0x2a5c42(0x191)][_0x2a5c42(0x269)](this[_0x2a5c42(0x1dd)](_0x592c5b));return;}let _0x3e0fd3=this[_0x2a5c42(0x1dd)](_0x592c5b),_0x1ed0fc=this['_nodeSizeByKey'][_0x2a5c42(0x1f7)](_0x3e0fd3);this[_0x2a5c42(0x191)][_0x2a5c42(0x3c8)](_0x3e0fd3,_0x413fc6),!(_0x1ed0fc&&_0x1ed0fc[_0x2a5c42(0x28a)]===_0x413fc6['width']&&_0x1ed0fc[_0x2a5c42(0x27e)]===_0x413fc6['height'])&&this[_0x2a5c42(0x1a6)]({'unitId':_0x592c5b['unitId'],'subUnitId':_0x592c5b[_0x2a5c42(0x25a)],'scopeId':_0x18ca0f[_0x2a5c42(0x1c0)],'anchorNodeId':_0x592c5b[_0x2a5c42(0x1a7)]});}[_0x1bfc49(0x18c)](_0x5b0b63,_0x1c1684){const _0xcb9404=_0x1bfc49;if(_0x5b0b63[_0xcb9404(0x308)]!==this[_0xcb9404(0x2d9)][_0xcb9404(0x308)])return;let _0x4dce9a=_0x4b908c(_0x1c1684==null?void 0x0:_0x1c1684[_0xcb9404(0x30c)]),_0x450d8f=this[_0xcb9404(0x28c)](_0x1c1684);!_0x4dce9a||!_0x450d8f||this['_nodeSizeByKey'][_0xcb9404(0x3c8)](this[_0xcb9404(0x1dd)](_0x5b0b63),_0x450d8f);}[_0x1bfc49(0x28c)](_0x5f26d6){const _0x26ff4e=_0x1bfc49;var _0x35e1ce;let _0xa154fe=(_0x35e1ce=_0x5f26d6==null?void 0x0:_0x5f26d6[_0x26ff4e(0x3ec)])==null?_0x5f26d6==null?void 0x0:_0x5f26d6[_0x26ff4e(0x30c)][_0x26ff4e(0x3ec)]:_0x35e1ce,_0x339761=_0xa154fe==null?void 0x0:_0xa154fe[_0x26ff4e(0x28a)],_0x21618d=_0xa154fe==null?void 0x0:_0xa154fe['height'];return!Number[_0x26ff4e(0x20e)](_0x339761)||!Number[_0x26ff4e(0x20e)](_0x21618d)?null:{'width':_0x339761,'height':_0x21618d};}['_queueLayout'](_0x8eed37){const _0x3ff55a=_0x1bfc49;this[_0x3ff55a(0x2d2)][_0x3ff55a(0x3c8)](_0x8eed37[_0x3ff55a(0x308)]+':'+_0x8eed37[_0x3ff55a(0x25a)]+':'+_0x8eed37['scopeId'],_0x8eed37),!this['_layoutFlushScheduled']&&(this['_layoutFlushScheduled']=!0x0,Promise[_0x3ff55a(0x1e1)]()[_0x3ff55a(0x231)](()=>{const _0x3c9ec3=_0x3ff55a;this[_0x3c9ec3(0x286)]=!0x1;let _0x2f8b7e=Array[_0x3c9ec3(0x167)](this['_queuedLayouts'][_0x3c9ec3(0x2b1)]());this['_queuedLayouts']['clear'](),_0x2f8b7e[_0x3c9ec3(0x29c)](_0x2b5e38=>{const _0x5260d0=_0x3c9ec3;this['_commandService'][_0x5260d0(0x3ae)](_0x51487d['id'],_0x2b5e38);});}));}[_0x1bfc49(0x39b)](_0x1cf7f3){const _0x1a5163=_0x1bfc49;if(!(_0x1cf7f3!=null&&_0x1cf7f3[_0x1a5163(0x308)])||!_0x1cf7f3['subUnitId']||!_0x1cf7f3['nodeId']||_0x1cf7f3[_0x1a5163(0x308)]!==this['_renderContext'][_0x1a5163(0x308)])return;let _0x5a946d=this[_0x1a5163(0x13a)][_0x1a5163(0x3f5)](_0x1cf7f3[_0x1a5163(0x308)],_0x1cf7f3['subUnitId'],_0x1cf7f3[_0x1a5163(0x141)]),_0x166a60=_0x4b908c(_0x5a946d==null?void 0x0:_0x5a946d['element']);_0x166a60&&this[_0x1a5163(0x21f)]({'unitId':_0x1cf7f3['unitId'],'subUnitId':_0x1cf7f3[_0x1a5163(0x25a)],'scopeId':_0x166a60[_0x1a5163(0x1c0)],'anchorNodeId':_0x1cf7f3['nodeId']});}[_0x1bfc49(0x21f)](_0xd18977){const _0x2ad7c0=_0x1bfc49;this[_0x2ad7c0(0x245)][_0x2ad7c0(0x3c8)](_0xd18977[_0x2ad7c0(0x308)]+':'+_0xd18977[_0x2ad7c0(0x25a)]+':'+_0xd18977[_0x2ad7c0(0x372)],_0xd18977),this[_0x2ad7c0(0x3e0)]!==null&&clearTimeout(this['_debouncedLayoutTimer']),this[_0x2ad7c0(0x3e0)]=setTimeout(()=>{const _0x4a26de=_0x2ad7c0;this[_0x4a26de(0x3e0)]=null;let _0x134c34=Array[_0x4a26de(0x167)](this[_0x4a26de(0x245)][_0x4a26de(0x2b1)]());this[_0x4a26de(0x245)][_0x4a26de(0x32c)](),_0x134c34[_0x4a26de(0x29c)](_0x14e53d=>{const _0x307d93=_0x4a26de;this[_0x307d93(0x3ca)][_0x307d93(0x3ae)](_0x51487d['id'],_0x14e53d);});},0x50);}[_0x1bfc49(0x1dd)](_0x3b78fc){const _0x58e166=_0x1bfc49;return _0x3b78fc['unitId']+':'+_0x3b78fc[_0x58e166(0x25a)]+':'+_0x3b78fc[_0x58e166(0x1a7)];}};Pt=J([q(0x1,_0xbc3476(_0x295e11)),q(0x2,_0x38f57d)],Pt);const Y={'primaryColor':_0x49b5d4,'surfaceColor':_0x3f058b,'textColor':_0x624c0a,'fontFamily':_0x574b80['ff']};function Ft(_0x1cc07a,_0x4506e6){const _0x41f78a=_0x1bfc49;let _0x56020e=Math['min'](0x1,Math[_0x41f78a(0x18f)](0x0,Number[_0x41f78a(0x20e)](_0x4506e6)?_0x4506e6:0x1)),_0x44b197=_0x1cc07a[_0x41f78a(0x1bf)](),_0x2eefa5=/^#([0-9a-fA-F]{6})$/[_0x41f78a(0x205)](_0x44b197);if(!_0x2eefa5)return _0x1cc07a;let _0x59cf1a=_0x2eefa5[0x1];return'rgba('+Number[_0x41f78a(0x1cb)](_0x59cf1a[_0x41f78a(0x39c)](0x0,0x2),0x10)+',\x20'+Number[_0x41f78a(0x1cb)](_0x59cf1a[_0x41f78a(0x39c)](0x2,0x4),0x10)+',\x20'+Number[_0x41f78a(0x1cb)](_0x59cf1a[_0x41f78a(0x39c)](0x4,0x6),0x10)+',\x20'+_0x56020e+')';}const X={'primaryColor':Y[_0x1bfc49(0x23c)],'ghostFillColor':Ft(Y[_0x1bfc49(0x3c3)],0.72),'ghostTextColor':Ft(Y[_0x1bfc49(0x2ab)],0.62),'rootTextColor':Ft(Y[_0x1bfc49(0x3c3)],0.86),'sourceHighlightFillColor':Ft(Y[_0x1bfc49(0x23c)],0.12),'sourceHighlightStrokeColor':Ft(Y[_0x1bfc49(0x23c)],0.9),'objectAlpha':0.72,'dragObjectAlpha':0.78,'connectorAlpha':0.64,'lineWidthScreen':0x2,'fallbackNodeWidth':_0x2288ab[_0x1bfc49(0x1da)],'fallbackNodeHeight':_0x2288ab[_0x1bfc49(0x1d5)],'branchGap':_0x133f51[_0x1bfc49(0x3a2)],'sourceHaloScreen':0x4,'ghostRadius':0x8,'rootRadius':0xa,'fontFamily':Y['fontFamily'],'ghostFontWeight':0x1f4,'rootFontWeight':0x258,'rootFontSize':0x12,'textPaddingScreen':0xc,'dirtyPaddingScreen':0x18,'sourceDashScreen':[0x6,0x4]};function Z(_0xe865d,_0x2049f3,_0x134afe,_0x57a80a,_0x54c184,_0x273e6f){const _0x2cf915=_0x1bfc49;let _0x1699af=Math[_0x2cf915(0x3ce)](_0x273e6f,_0x57a80a/0x2,_0x54c184/0x2);_0xe865d[_0x2cf915(0x2d8)](),_0xe865d[_0x2cf915(0x230)](_0x2049f3+_0x1699af,_0x134afe),_0xe865d[_0x2cf915(0x2f3)](_0x2049f3+_0x57a80a-_0x1699af,_0x134afe),_0xe865d['quadraticCurveTo'](_0x2049f3+_0x57a80a,_0x134afe,_0x2049f3+_0x57a80a,_0x134afe+_0x1699af),_0xe865d[_0x2cf915(0x2f3)](_0x2049f3+_0x57a80a,_0x134afe+_0x54c184-_0x1699af),_0xe865d[_0x2cf915(0x35e)](_0x2049f3+_0x57a80a,_0x134afe+_0x54c184,_0x2049f3+_0x57a80a-_0x1699af,_0x134afe+_0x54c184),_0xe865d[_0x2cf915(0x2f3)](_0x2049f3+_0x1699af,_0x134afe+_0x54c184),_0xe865d[_0x2cf915(0x35e)](_0x2049f3,_0x134afe+_0x54c184,_0x2049f3,_0x134afe+_0x54c184-_0x1699af),_0xe865d[_0x2cf915(0x2f3)](_0x2049f3,_0x134afe+_0x1699af),_0xe865d[_0x2cf915(0x35e)](_0x2049f3,_0x134afe,_0x2049f3+_0x1699af,_0x134afe),_0xe865d[_0x2cf915(0x30b)]();}function It(_0x42ed5b,_0x331332,_0x27919f){const _0x33a39e=_0x1bfc49;return _0x42ed5b+'\x20'+_0x331332/_0x27919f+_0x33a39e(0x36e)+X['fontFamily'];}const Lt=_0x1bfc49(0x166),Rt=_0x1254b3[_0x1bfc49(0x12f)];function Q(_0x4f505f,_0x21418f){const _0x2d8413=_0x1bfc49;return Number[_0x2d8413(0x20e)](_0x4f505f)?_0x4f505f:_0x21418f;}function zt(){const _0x4ed0d9=_0x1bfc49;return X[_0x4ed0d9(0x195)];}function Bt(){return X['fallbackNodeHeight'];}function Vt(_0x229726){const _0x266dac=_0x1bfc49;return _0x229726===0x1?_0x266dac(0x33e):_0x229726===0x3?_0x266dac(0x13e):_0x266dac(0x3b8);}function Ht(_0x8780bb,_0x318911,_0x510583,_0x2cf23b){return _0x510583===0x1?_0x8780bb+_0x2cf23b:_0x510583===0x3?_0x8780bb+_0x318911-_0x2cf23b:_0x8780bb+_0x318911/0x2;}var Ut=class extends _0x68d0be{constructor(_0x5ea79f=Lt,_0x20c8b2){const _0x26243c=_0x1bfc49;super(_0x5ea79f),K(this,_0x26243c(0x19c),{'ghostBounds':null,'parentBounds':null,'side':'right','zoomRatio':0x1}),this[_0x26243c(0x1ec)]=!0x1,this[_0x26243c(0x2c8)]=_0x38268b[_0x26243c(0x363)],this[_0x26243c(0x3af)](_0x20c8b2);}[_0x1bfc49(0x3af)](_0x5f0f46){const _0x53cf34=_0x1bfc49;if(this[_0x53cf34(0x19c)]={...this[_0x53cf34(0x19c)],..._0x5f0f46},this['_state']['ghostBounds']){let _0x4c8d57=this[_0x53cf34(0x373)]();this[_0x53cf34(0x130)](_0x4c8d57),this[_0x53cf34(0x1a0)]();}else this[_0x53cf34(0x38b)]();let _0xbcf75=this;typeof _0xbcf75[_0x53cf34(0x2f5)]==_0x53cf34(0x240)?_0xbcf75[_0x53cf34(0x2f5)](!0x0):this[_0x53cf34(0x32a)](!0x0);}['isHit'](_0x1689ed){return!0x1;}['render'](_0x524de9,_0x2ce8bd){const _0x18bcee=_0x1bfc49;var _0x109d12,_0x43555f,_0x184992;let _0x1a2c46=this['_state']['ghostBounds'];if(!_0x1a2c46||!this['visible'])return this[_0x18bcee(0x32a)](!0x1),this;let _0x419c6d=Number[_0x18bcee(0x20e)](this['_state'][_0x18bcee(0x1d7)])&&((_0x109d12=this[_0x18bcee(0x19c)][_0x18bcee(0x1d7)])==null?0x0:_0x109d12)>0x0?this['_state']['zoomRatio']:0x1,_0x467b6f=Q(_0x1a2c46[_0x18bcee(0x33e)],0x0),_0x46401a=Q(_0x1a2c46[_0x18bcee(0x1ba)],0x0),_0xdc8e81=Math[_0x18bcee(0x18f)](0x1,Q(_0x1a2c46[_0x18bcee(0x28a)],zt())),_0x12ffe0=Math['max'](0x1,Q(_0x1a2c46['height'],Bt()));if(_0x524de9[_0x18bcee(0x3ad)](),_0x524de9[_0x18bcee(0x39d)]=X[_0x18bcee(0x163)],_0x524de9['lineWidth']=X[_0x18bcee(0x1db)]/_0x419c6d,_0x524de9['strokeStyle']=X['primaryColor'],_0x524de9[_0x18bcee(0x19e)]=X[_0x18bcee(0x2a7)],this[_0x18bcee(0x2f1)](_0x524de9,{'left':_0x467b6f,'top':_0x46401a,'width':_0xdc8e81,'height':_0x12ffe0},_0x419c6d),this[_0x18bcee(0x266)](_0x524de9,_0x419c6d),this[_0x18bcee(0x19c)][_0x18bcee(0x353)]===!0x1)return _0x524de9[_0x18bcee(0x3ab)](),this[_0x18bcee(0x32a)](!0x1),this;Z(_0x524de9,_0x467b6f,_0x46401a,_0xdc8e81,_0x12ffe0,X[_0x18bcee(0x3dc)]),_0x524de9['fill'](),_0x524de9[_0x18bcee(0x18b)]();let _0x18054a=this[_0x18bcee(0x19c)][_0x18bcee(0x383)],_0x572e35=Number[_0x18bcee(0x20e)](_0x18054a==null?void 0x0:_0x18054a[_0x18bcee(0x312)])&&((_0x43555f=_0x18054a==null?void 0x0:_0x18054a[_0x18bcee(0x312)])==null?0x0:_0x43555f)>0x0?_0x18054a[_0x18bcee(0x312)]:0x10,_0x3c1adf=X[_0x18bcee(0x341)]/_0x419c6d;return _0x524de9[_0x18bcee(0x19e)]=(_0x184992=_0x18054a==null?void 0x0:_0x18054a[_0x18bcee(0x23d)])==null?X[_0x18bcee(0x1df)]:_0x184992,_0x524de9['font']=It(X[_0x18bcee(0x3cb)],_0x572e35,_0x419c6d),_0x524de9[_0x18bcee(0x385)]=Vt(_0x18054a==null?void 0x0:_0x18054a[_0x18bcee(0x2b7)]),_0x524de9[_0x18bcee(0x1ad)]=_0x18bcee(0x3bd),_0x524de9[_0x18bcee(0x3b5)]((_0x18054a==null?void 0x0:_0x18054a[_0x18bcee(0x1ed)])||_0x775f9b,Ht(_0x467b6f,_0xdc8e81,_0x18054a==null?void 0x0:_0x18054a['horizontalAlign'],_0x3c1adf),_0x46401a+_0x12ffe0/0x2,Math[_0x18bcee(0x18f)](0x1,_0xdc8e81-_0x3c1adf*0x2)),_0x524de9[_0x18bcee(0x3ab)](),this[_0x18bcee(0x32a)](!0x1),this;}[_0x1bfc49(0x373)](){const _0x3bb4d2=_0x1bfc49;var _0x148c8c;let _0x2432f3=this['_state'][_0x3bb4d2(0x2ff)],_0x394a13=Number['isFinite'](this[_0x3bb4d2(0x19c)]['zoomRatio'])&&((_0x148c8c=this[_0x3bb4d2(0x19c)][_0x3bb4d2(0x1d7)])==null?0x0:_0x148c8c)>0x0?this[_0x3bb4d2(0x19c)][_0x3bb4d2(0x1d7)]:0x1,_0x23bebf=X[_0x3bb4d2(0x1ac)]/_0x394a13;if(!_0x2432f3)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0xbf6cbf=Q(_0x2432f3['left'],0x0),_0x369b13=Q(_0x2432f3[_0x3bb4d2(0x1ba)],0x0),_0x556eb8=Math['max'](0x1,Q(_0x2432f3['width'],zt())),_0x24441a=Math[_0x3bb4d2(0x18f)](0x1,Q(_0x2432f3[_0x3bb4d2(0x27e)],Bt())),_0x247593=this['_state'][_0x3bb4d2(0x284)],_0x5da7f1=this['_state'][_0x3bb4d2(0x334)],_0x158f5b=Q(_0x247593==null?void 0x0:_0x247593[_0x3bb4d2(0x33e)],_0xbf6cbf),_0xe9a474=Q(_0x247593==null?void 0x0:_0x247593[_0x3bb4d2(0x1ba)],_0x369b13),_0x44a66f=Math[_0x3bb4d2(0x18f)](0x1,Q(_0x247593==null?void 0x0:_0x247593['width'],_0x556eb8)),_0x255589=Math[_0x3bb4d2(0x18f)](0x1,Q(_0x247593==null?void 0x0:_0x247593[_0x3bb4d2(0x27e)],_0x24441a));if(!_0x5da7f1){let _0x3be98e=Math[_0x3bb4d2(0x3ce)](_0xbf6cbf,_0x158f5b)-_0x23bebf,_0x6adc3b=Math[_0x3bb4d2(0x3ce)](_0x369b13,_0xe9a474)-_0x23bebf,_0x196ad7=Math[_0x3bb4d2(0x18f)](_0xbf6cbf+_0x556eb8,_0x158f5b+_0x44a66f)+_0x23bebf,_0x17af63=Math['max'](_0x369b13+_0x24441a,_0xe9a474+_0x255589)+_0x23bebf;return{'left':_0x3be98e,'top':_0x6adc3b,'width':_0x196ad7-_0x3be98e,'height':_0x17af63-_0x6adc3b};}let _0x3a1da5=Q(_0x5da7f1[_0x3bb4d2(0x33e)],_0xbf6cbf),_0xc9e1df=Q(_0x5da7f1[_0x3bb4d2(0x1ba)],_0x369b13),_0x2c8635=Math[_0x3bb4d2(0x18f)](0x1,Q(_0x5da7f1[_0x3bb4d2(0x28a)],zt())),_0x5120f5=Math['max'](0x1,Q(_0x5da7f1[_0x3bb4d2(0x27e)],Bt())),_0x362326=Math['min'](_0xbf6cbf,_0x3a1da5,_0x158f5b)-_0x23bebf,_0x27ded5=Math[_0x3bb4d2(0x3ce)](_0x369b13,_0xc9e1df,_0xe9a474)-_0x23bebf,_0x21d172=Math[_0x3bb4d2(0x18f)](_0xbf6cbf+_0x556eb8,_0x3a1da5+_0x2c8635,_0x158f5b+_0x44a66f)+_0x23bebf,_0x36ad48=Math['max'](_0x369b13+_0x24441a,_0xc9e1df+_0x5120f5,_0xe9a474+_0x255589)+_0x23bebf;return{'left':_0x362326,'top':_0x27ded5,'width':_0x21d172-_0x362326,'height':_0x36ad48-_0x27ded5};}['_drawSourceHighlight'](_0x1b8cd3,_0x552e65){const _0x444125=_0x1bfc49;var _0x33ee7c;let _0x3b7f91=this[_0x444125(0x19c)][_0x444125(0x284)];if(!_0x3b7f91)return;let _0x5b6185=X['sourceHaloScreen']/_0x552e65,_0x35f4d2=Q(_0x3b7f91[_0x444125(0x33e)],0x0)-_0x5b6185,_0x236029=Q(_0x3b7f91[_0x444125(0x1ba)],0x0)-_0x5b6185,_0x5b201d=Math[_0x444125(0x18f)](0x1,Q(_0x3b7f91[_0x444125(0x28a)],zt()))+_0x5b6185*0x2,_0x393f5a=Math[_0x444125(0x18f)](0x1,Q(_0x3b7f91[_0x444125(0x27e)],Bt()))+_0x5b6185*0x2;_0x1b8cd3['save'](),_0x1b8cd3['globalAlpha']=0x1,_0x1b8cd3[_0x444125(0x31a)]=X['lineWidthScreen']/_0x552e65,_0x1b8cd3['strokeStyle']=X[_0x444125(0x1c8)],_0x1b8cd3[_0x444125(0x19e)]=X[_0x444125(0x2b4)],(_0x33ee7c=_0x1b8cd3['setLineDash'])==null||_0x33ee7c[_0x444125(0x3c7)](_0x1b8cd3,X[_0x444125(0x216)][_0x444125(0x288)](_0x406c4f=>_0x406c4f/_0x552e65)),Z(_0x1b8cd3,_0x35f4d2,_0x236029,_0x5b201d,_0x393f5a,X['rootRadius']),_0x1b8cd3[_0x444125(0x1f5)](),_0x1b8cd3[_0x444125(0x18b)](),_0x1b8cd3['restore']();}['_drawConnectorPreview'](_0x4c307b,_0x2a928b,_0x317b5d){const _0x37b3d0=_0x1bfc49;var _0x4f537b;let _0x259119=this['_state']['parentBounds'];if(!_0x259119)return;let _0x2c273e=Q(_0x259119[_0x37b3d0(0x33e)],0x0),_0x5e7893=Q(_0x259119[_0x37b3d0(0x1ba)],0x0),_0x396112=Math[_0x37b3d0(0x18f)](0x1,Q(_0x259119[_0x37b3d0(0x28a)],zt())),_0x5d6064=Math[_0x37b3d0(0x18f)](0x1,Q(_0x259119['height'],Bt())),_0x2655ca=X[_0x37b3d0(0x3a2)],_0x1dbb80=(_0x4f537b=this[_0x37b3d0(0x19c)]['side'])==null?'right':_0x4f537b;if(_0x4c307b['save'](),_0x4c307b[_0x37b3d0(0x39d)]=X[_0x37b3d0(0x1c7)],_0x4c307b[_0x37b3d0(0x226)]=X[_0x37b3d0(0x23c)],_0x4c307b[_0x37b3d0(0x31a)]=X[_0x37b3d0(0x1db)]/_0x317b5d,_0x4c307b[_0x37b3d0(0x26d)]='round',_0x4c307b[_0x37b3d0(0x379)]=_0x37b3d0(0x207),_0x4c307b[_0x37b3d0(0x2d8)](),_0x1dbb80==='top'||_0x1dbb80===_0x37b3d0(0x3ef)){let _0x15b8b7=_0x2c273e+_0x396112/0x2,_0x1c9d23=_0x2a928b[_0x37b3d0(0x33e)]+_0x2a928b['width']/0x2,_0xd8b383=_0x1dbb80==='bottom'?_0x5e7893+_0x5d6064:_0x5e7893,_0x5975b9=_0x1dbb80===_0x37b3d0(0x3ef)?_0x2a928b['top']:_0x2a928b[_0x37b3d0(0x1ba)]+_0x2a928b[_0x37b3d0(0x27e)],_0xd3e08d=_0x1dbb80===_0x37b3d0(0x3ef)?Math[_0x37b3d0(0x3ce)](_0xd8b383+_0x2655ca,(_0xd8b383+_0x5975b9)/0x2):Math[_0x37b3d0(0x18f)](_0xd8b383-_0x2655ca,(_0xd8b383+_0x5975b9)/0x2);_0x4c307b[_0x37b3d0(0x230)](_0x15b8b7,_0xd8b383),_0x4c307b[_0x37b3d0(0x2f3)](_0x15b8b7,_0xd3e08d),_0x4c307b[_0x37b3d0(0x2f3)](_0x1c9d23,_0xd3e08d),_0x4c307b['lineTo'](_0x1c9d23,_0x5975b9);}else{let _0x22b4fb=_0x5e7893+_0x5d6064/0x2,_0x18ed0e=_0x2a928b[_0x37b3d0(0x1ba)]+_0x2a928b['height']/0x2,_0x3c3342=_0x1dbb80===_0x37b3d0(0x13e)?_0x2c273e+_0x396112:_0x2c273e,_0x20144e=_0x1dbb80===_0x37b3d0(0x13e)?_0x2a928b[_0x37b3d0(0x33e)]:_0x2a928b[_0x37b3d0(0x33e)]+_0x2a928b[_0x37b3d0(0x28a)],_0x3299d9=_0x1dbb80==='right'?Math['min'](_0x3c3342+_0x2655ca,(_0x3c3342+_0x20144e)/0x2):Math['max'](_0x3c3342-_0x2655ca,(_0x3c3342+_0x20144e)/0x2);_0x4c307b[_0x37b3d0(0x230)](_0x3c3342,_0x22b4fb),_0x4c307b[_0x37b3d0(0x2f3)](_0x3299d9,_0x22b4fb),_0x4c307b[_0x37b3d0(0x2f3)](_0x3299d9,_0x18ed0e),_0x4c307b[_0x37b3d0(0x2f3)](_0x20144e,_0x18ed0e);}_0x4c307b[_0x37b3d0(0x18b)](),_0x4c307b[_0x37b3d0(0x3ab)]();}};function Wt(_0x444274,_0x5f4bad){const _0x115874=_0x1bfc49;var _0x21b0ce;return(_0x21b0ce=_0x5f4bad==null?void 0x0:_0x5f4bad[_0x444274[_0x115874(0x1a7)]])==null?_0x444274[_0x115874(0x30c)][_0x115874(0x3ec)]:_0x21b0ce;}function Gt(_0x5b7c3f,_0x20fb7d){const _0x6d77f6=_0x1bfc49;var _0x52c7ad,_0x40a973,_0x14f749,_0x2ef74a;let _0x4c029e=Wt(_0x5b7c3f,_0x20fb7d);return{'x':((_0x52c7ad=_0x4c029e['left'])==null?0x0:_0x52c7ad)+((_0x40a973=_0x4c029e[_0x6d77f6(0x28a)])==null?0x0:_0x40a973)/0x2,'y':((_0x14f749=_0x4c029e[_0x6d77f6(0x1ba)])==null?0x0:_0x14f749)+((_0x2ef74a=_0x4c029e[_0x6d77f6(0x27e)])==null?0x0:_0x2ef74a)/0x2};}function Kt(_0x4ea703,_0x4ef2d9){return Math['hypot'](_0x4ea703['x']-_0x4ef2d9['x'],_0x4ea703['y']-_0x4ef2d9['y']);}function qt(_0x1fbba2,_0x30dda4){const _0x47b159=_0x1bfc49;var _0x18252b,_0x1d17a1,_0x1eeaad,_0x285e34,_0x54b058,_0x1ddc15,_0x4f81c1,_0x1202a9;let _0x20f681=(_0x18252b=_0x1fbba2[_0x47b159(0x33e)])==null?0x0:_0x18252b,_0x43492f=(_0x1d17a1=_0x1fbba2['top'])==null?0x0:_0x1d17a1,_0x457f0c=_0x20f681+((_0x1eeaad=_0x1fbba2[_0x47b159(0x28a)])==null?0x0:_0x1eeaad),_0x433b57=_0x43492f+((_0x285e34=_0x1fbba2[_0x47b159(0x27e)])==null?0x0:_0x285e34),_0x134852=(_0x54b058=_0x30dda4[_0x47b159(0x33e)])==null?0x0:_0x54b058,_0x3d5286=(_0x1ddc15=_0x30dda4[_0x47b159(0x1ba)])==null?0x0:_0x1ddc15,_0x475929=_0x134852+((_0x4f81c1=_0x30dda4[_0x47b159(0x28a)])==null?0x0:_0x4f81c1),_0x480d77=_0x3d5286+((_0x1202a9=_0x30dda4['height'])==null?0x0:_0x1202a9),_0x5724f1=Math[_0x47b159(0x18f)](_0x134852-_0x457f0c,_0x20f681-_0x475929,0x0),_0x18dbc2=Math[_0x47b159(0x18f)](_0x3d5286-_0x433b57,_0x43492f-_0x480d77,0x0);return Math[_0x47b159(0x30d)](_0x5724f1,_0x18dbc2);}function Jt(_0x533f47,_0x40c14e,_0x52f777){const _0x2ff2f7=_0x1bfc49;var _0xeefa19;let _0x5184a3=_0x4b908c((_0xeefa19=_0x533f47[_0x40c14e])==null?void 0x0:_0xeefa19['element']);for(;_0x5184a3!=null&&_0x5184a3[_0x2ff2f7(0x19f)];){var _0x503cf5;if(_0x5184a3['parentNodeId']===_0x52f777)return!0x0;_0x5184a3=_0x4b908c((_0x503cf5=_0x533f47[_0x5184a3['parentNodeId']])==null?void 0x0:_0x503cf5[_0x2ff2f7(0x30c)]);}return!0x1;}function Yt(_0x479377,_0x237e89,_0x1f7b46){const _0x53a786=_0x1bfc49;var _0x346939,_0x3b8a35;let _0x32b255=Wt(_0x479377,_0x1f7b46),_0x30d8d9=(_0x346939=_0x32b255[_0x53a786(0x1ba)])==null?0x0:_0x346939,_0x193ad4=(_0x3b8a35=_0x32b255[_0x53a786(0x27e)])==null?0x0:_0x3b8a35;return _0x193ad4<=0x0?null:_0x237e89['y']<=_0x30d8d9+_0x193ad4/0x3?_0x53a786(0x220):_0x237e89['y']>=_0x30d8d9+_0x193ad4*0x2/0x3?_0x53a786(0x3fc):null;}function Xt(_0x2e5131,_0x5e3280){const _0x1b0fd4=_0x1bfc49;let _0x405e0d=_0x5e3280==null?void 0x0:_0x5e3280[_0x2e5131];return Number[_0x1b0fd4(0x20e)](_0x405e0d==null?void 0x0:_0x405e0d[_0x1b0fd4(0x33e)])&&Number[_0x1b0fd4(0x20e)](_0x405e0d==null?void 0x0:_0x405e0d[_0x1b0fd4(0x1ba)])?{'kind':_0x1b0fd4(0x36c),'left':_0x405e0d['left'],'top':_0x405e0d['top']}:{'kind':_0x1b0fd4(0x36c)};}function _0x3cc1(_0x1b7aa2,_0x484a6e){_0x1b7aa2=_0x1b7aa2-0x125;const _0x822b09=_0x822b();let _0x3cc1d7=_0x822b09[_0x1b7aa2];return _0x3cc1d7;}function Zt(_0x371801,_0x5f308c,_0x2cd770){const _0x18dfec=_0x1bfc49;let _0x10bb0e=_0x371801[_0x5f308c],_0x2a893e=_0x4b908c(_0x10bb0e==null?void 0x0:_0x10bb0e[_0x18dfec(0x30c)]);if(!_0x10bb0e||!_0x2a893e||!_0x2a893e[_0x18dfec(0x19f)]&&!(_0x2cd770!=null&&_0x2cd770[_0x18dfec(0x1a1)]))return{'kind':_0x18dfec(0x329)};let _0x327d71=_0x2cd770==null?void 0x0:_0x2cd770[_0x18dfec(0x3f1)],_0x105ac9=Wt(_0x10bb0e,_0x327d71),_0x119cc2=Gt(_0x10bb0e,_0x327d71),_0x3e1ef3=Object['values'](_0x371801)['map'](_0x50ee84=>{const _0x26df20=_0x18dfec;let _0x2c8e14=_0x4b908c(_0x50ee84[_0x26df20(0x30c)]);return!_0x2c8e14||_0x50ee84[_0x26df20(0x1a7)]===_0x5f308c||_0x50ee84[_0x26df20(0x1a7)]===_0x2a893e[_0x26df20(0x19f)]||_0x2cd770!=null&&_0x2cd770[_0x26df20(0x1a1)]&&!_0x2a893e[_0x26df20(0x19f)]&&_0x2c8e14[_0x26df20(0x1c0)]===_0x2a893e[_0x26df20(0x1c0)]||Jt(_0x371801,_0x50ee84['elementId'],_0x5f308c)?null:{'item':_0x50ee84,'snapDistance':qt(_0x105ac9,Wt(_0x50ee84,_0x327d71)),'center':Gt(_0x50ee84,_0x327d71)};})[_0x18dfec(0x27c)](_0xe97ecf=>!!_0xe97ecf)['sort']((_0x2bb984,_0x5d5b25)=>_0x2bb984['snapDistance']-_0x5d5b25[_0x18dfec(0x37f)]||Kt(_0x119cc2,_0x2bb984['center'])-Kt(_0x119cc2,_0x5d5b25['center']))[0x0];if(_0x3e1ef3&&_0x3e1ef3['snapDistance']<=0x64){let _0x12b985=_0x4b908c(_0x3e1ef3[_0x18dfec(0x364)]['element']),_0x17b5c5=_0x12b985!=null&&_0x12b985['parentNodeId']?Yt(_0x3e1ef3[_0x18dfec(0x364)],_0x119cc2,_0x327d71):null;if(_0x12b985!=null&&_0x12b985[_0x18dfec(0x19f)]&&_0x17b5c5){var _0x374dde;return{'kind':_0x18dfec(0x322),'newParentNodeId':_0x12b985[_0x18dfec(0x19f)],'side':(_0x374dde=_0x12b985[_0x18dfec(0x1b9)])==null?_0x18dfec(0x13e):_0x374dde,'referenceNodeId':_0x3e1ef3['item'][_0x18dfec(0x1a7)],'placement':_0x17b5c5};}return{'kind':_0x18dfec(0x322),'newParentNodeId':_0x3e1ef3[_0x18dfec(0x364)][_0x18dfec(0x1a7)],'side':_0x119cc2['x']<_0x3e1ef3[_0x18dfec(0x3b8)]['x']?_0x18dfec(0x33e):_0x18dfec(0x13e)};}if(_0x2cd770!=null&&_0x2cd770[_0x18dfec(0x2ec)])return Xt(_0x5f308c,_0x327d71);if(!_0x2a893e['parentNodeId'])return{'kind':_0x18dfec(0x329)};let _0x5753a6=_0x371801[_0x2a893e[_0x18dfec(0x19f)]];return _0x5753a6&&Kt(_0x119cc2,Gt(_0x5753a6,_0x327d71))>0x230?Xt(_0x5f308c,_0x327d71):{'kind':'none'};}function Qt(_0x4c1865,_0x41eb8c){const _0x1c4abb=_0x1bfc49;var _0x747daa,_0x38898e;return _0x4c1865[_0x1c4abb(0x1a7)]===_0x41eb8c||((_0x747daa=_0x4b908c(_0x4c1865[_0x1c4abb(0x30c)]))==null?void 0x0:_0x747daa[_0x1c4abb(0x1c0)])===_0x41eb8c||((_0x38898e=_0x576a15(_0x4c1865[_0x1c4abb(0x30c)]))==null?void 0x0:_0x38898e[_0x1c4abb(0x1c0)])===_0x41eb8c;}function $t(_0x3a5ca5,_0x4bb219,_0x41cee7,_0x5451d6){const _0xc342e4=_0x1bfc49;var _0x1373c0,_0x15a7d9,_0x2fa11f,_0x5da1f2,_0x3f82c5,_0x1ad81a;let _0x5e3f8b=_0x3a5ca5[_0x4bb219];if(!_0x5e3f8b)return _0x3a5ca5;let _0x5b3f2b=(_0x1373c0=(_0x15a7d9=_0x5e3f8b[_0xc342e4(0x3ec)])==null?_0x5e3f8b[_0xc342e4(0x30c)]['transform']:_0x15a7d9)==null?{}:_0x1373c0;return{..._0x3a5ca5,[_0x4bb219]:{..._0x5e3f8b,'transform':{..._0x5b3f2b,'left':((_0x2fa11f=_0x5b3f2b[_0xc342e4(0x33e)])==null?0x0:_0x2fa11f)+_0x41cee7,'top':((_0x5da1f2=_0x5b3f2b[_0xc342e4(0x1ba)])==null?0x0:_0x5da1f2)+_0x5451d6},'element':{..._0x5e3f8b[_0xc342e4(0x30c)],'transform':{..._0x5e3f8b['element'][_0xc342e4(0x3ec)],'left':((_0x3f82c5=_0x5e3f8b['element'][_0xc342e4(0x3ec)][_0xc342e4(0x33e)])==null?0x0:_0x3f82c5)+_0x41cee7,'top':((_0x1ad81a=_0x5e3f8b[_0xc342e4(0x30c)][_0xc342e4(0x3ec)][_0xc342e4(0x1ba)])==null?0x0:_0x1ad81a)+_0x5451d6}}}};}function en(_0x35958f){const _0x46f2a4=_0x1bfc49;if(!Number['isFinite'](_0x35958f['liveRootBounds'][_0x46f2a4(0x33e)])||!Number[_0x46f2a4(0x20e)](_0x35958f[_0x46f2a4(0x33d)][_0x46f2a4(0x1ba)])||!Number[_0x46f2a4(0x20e)](_0x35958f[_0x46f2a4(0x346)]['left'])||!Number[_0x46f2a4(0x20e)](_0x35958f[_0x46f2a4(0x346)][_0x46f2a4(0x1ba)]))return null;let _0x5be225=_0x35958f[_0x46f2a4(0x33d)][_0x46f2a4(0x33e)]-_0x35958f[_0x46f2a4(0x346)][_0x46f2a4(0x33e)],_0x347629=_0x35958f['liveRootBounds']['top']-_0x35958f['rootStartBounds'][_0x46f2a4(0x1ba)],_0x36a954=$t(_0x35958f[_0x46f2a4(0x254)],_0x35958f[_0x46f2a4(0x372)],_0x5be225,_0x347629),_0x18bce9=[];return Object[_0x46f2a4(0x2b1)](_0x36a954)[_0x46f2a4(0x29c)](_0xdeff9=>{const _0x35a019=_0x46f2a4;if(_0xdeff9[_0x35a019(0x1a7)]===_0x35958f[_0x35a019(0x32f)]||_0xdeff9['elementId']===_0x35958f[_0x35a019(0x372)]||!Qt(_0xdeff9,_0x35958f['scopeId']))return;if('connectorData'in _0xdeff9[_0x35a019(0x30c)]){var _0x45c98c;let _0x20c636=(_0x45c98c=_0x35958f['elementData'][_0xdeff9[_0x35a019(0x1a7)]])==null?void 0x0:_0x45c98c['element'];_0x20c636&&_0x35a019(0x3b0)in _0x20c636&&_0x18bce9[_0x35a019(0x2af)]({'kind':_0x35a019(0x182),'elementId':_0xdeff9['elementId'],'element':_0x15f431(_0x20c636,{'x':_0x5be225,'y':_0x347629})});return;}let _0x3f0d15=_0x2fc33b(_0x36a954,_0xdeff9[_0x35a019(0x1a7)]);_0x3f0d15&&_0x18bce9['push']({'kind':_0x35a019(0x208),'elementId':_0xdeff9[_0x35a019(0x1a7)],'bounds':_0x3f0d15});}),{'deltaX':_0x5be225,'deltaY':_0x347629,'elementData':_0x36a954,'items':_0x18bce9};}let tn=class extends _0x5b09aa{constructor(_0x3d6a8a,_0x51634b,_0x36899c,_0x28f8f6,_0x2c6f5f,_0x465118){const _0x5e1d03=_0x1bfc49;super(),this[_0x5e1d03(0x2d9)]=_0x3d6a8a,this[_0x5e1d03(0x13a)]=_0x51634b,this[_0x5e1d03(0x29f)]=_0x36899c,this['_commandService']=_0x28f8f6,this[_0x5e1d03(0x382)]=_0x2c6f5f,this[_0x5e1d03(0x2ca)]=_0x465118,K(this,_0x5e1d03(0x380),null),K(this,_0x5e1d03(0x2a1),null),K(this,'_dragPreviewObject',null),K(this,'_childDragActivated',!0x1),K(this,'_lastChildDragAction',null),K(this,_0x5e1d03(0x186),null),K(this,_0x5e1d03(0x3da),!0x1),K(this,'_activePointerDragDisposables',null),K(this,_0x5e1d03(0x178),!0x1),this[_0x5e1d03(0x1f8)]();}[_0x1bfc49(0x1f8)](){const _0x18af00=_0x1bfc49;var _0x2d1928,_0x4ef563,_0x171f84,_0x1d5120,_0x5249c3,_0x1c2619,_0x51676b,_0x410302,_0x4b6ce5,_0xd4a732;let _0x5e0ea2=this[_0x18af00(0x2d9)][_0x18af00(0x247)][_0x18af00(0x400)]();this['disposeWithMe'](_0x34ad80(_0x5e0ea2['changeStart$'][_0x18af00(0x398)](_0x17a1de(this[_0x18af00(0x24b)]))[_0x18af00(0x20c)](()=>{const _0x197f8d=_0x18af00;this[_0x197f8d(0x328)]();}))),this[_0x18af00(0x3ac)](_0x34ad80((_0x2d1928=(_0x4ef563=_0x5e0ea2[_0x18af00(0x204)])==null?void 0x0:_0x4ef563['pipe'](_0x17a1de(this[_0x18af00(0x24b)]))[_0x18af00(0x20c)](_0x2ad1c1=>{const _0x107ce6=_0x18af00;this[_0x107ce6(0x3ba)](_0x2ad1c1==null?void 0x0:_0x2ad1c1[_0x107ce6(0x227)]);}))==null?{'dispose':()=>{}}:_0x2d1928)),this[_0x18af00(0x3ac)](_0x34ad80(_0x5e0ea2[_0x18af00(0x132)][_0x18af00(0x398)](_0x17a1de(this[_0x18af00(0x24b)]))[_0x18af00(0x20c)](_0xf45dad=>{const _0x4d8992=_0x18af00;setTimeout(()=>this[_0x4d8992(0x371)](_0xf45dad==null?void 0x0:_0xf45dad['objects']),0x0);}))),this[_0x18af00(0x3ac)](_0x34ad80((_0x171f84=(_0x1d5120=this[_0x18af00(0x2d9)]['scene'][_0x18af00(0x15c)])==null?void 0x0:_0x1d5120['subscribeEvent']({'priority':0x3,'next':([_0x350a7c])=>this[_0x18af00(0x3b2)](_0x350a7c)}))==null?{'dispose':()=>{}}:_0x171f84)),this[_0x18af00(0x3ac)](_0x34ad80((_0x5249c3=(_0x1c2619=this[_0x18af00(0x2d9)][_0x18af00(0x247)]['onPointerMove$'])==null?void 0x0:_0x1c2619[_0x18af00(0x142)]({'priority':0x3,'next':([_0x351fe9,_0x21e7f4])=>this[_0x18af00(0x1f0)](_0x351fe9,_0x21e7f4)}))==null?{'dispose':()=>{}}:_0x5249c3)),this[_0x18af00(0x3ac)](_0x34ad80((_0x51676b=(_0x410302=this['_renderContext'][_0x18af00(0x247)]['onPointerUp$'])==null?void 0x0:_0x410302['subscribeEvent']({'priority':0x3,'next':([_0x5bba80,_0x272a01])=>this[_0x18af00(0x34f)](_0x5bba80,_0x272a01)}))==null?{'dispose':()=>{}}:_0x51676b)),this[_0x18af00(0x3ac)](_0x34ad80((_0x4b6ce5=(_0xd4a732=this['_renderContext'][_0x18af00(0x247)][_0x18af00(0x214)])==null?void 0x0:_0xd4a732[_0x18af00(0x142)]({'priority':0x3,'next':([,_0x4ea294])=>this['_cancelPointerChildDrag'](_0x4ea294)}))==null?{'dispose':()=>{}}:_0x4b6ce5)),this[_0x18af00(0x3ac)](_0x34ad80(()=>{const _0x1bf1e0=_0x18af00;var _0x22151e;return(_0x22151e=this[_0x1bf1e0(0x186)])==null?void 0x0:_0x22151e['dispose']();})),this['disposeWithMe'](_0x34ad80(()=>this['_disposeActivePointerDragListeners']())),this['_subscribeElementDataChanges'](),this[_0x18af00(0x221)](),this[_0x18af00(0x3ac)](_0x34ad80(()=>this['_removeDragPreviewObject']()));}[_0x1bfc49(0x181)](){const _0x28fc5c=_0x1bfc49;let _0x1ef8df=this[_0x28fc5c(0x13a)],_0x205fa2=_0x3c09bc=>{const _0xb3fc98=_0x28fc5c;let _0x124606=_0x3c09bc==null?void 0x0:_0x3c09bc[_0xb3fc98(0x20c)](()=>this[_0xb3fc98(0x221)]());_0x124606&&this[_0xb3fc98(0x3ac)](_0x34ad80(()=>{const _0x1f1765=_0xb3fc98;var _0x36ab13,_0x4cd0f7;(_0x36ab13=_0x124606[_0x1f1765(0x1b7)])==null||_0x36ab13[_0x1f1765(0x3c7)](_0x124606),(_0x4cd0f7=_0x124606[_0x1f1765(0x125)])==null||_0x4cd0f7[_0x1f1765(0x3c7)](_0x124606);}));};_0x205fa2(_0x1ef8df[_0x28fc5c(0x2b9)]),_0x205fa2(_0x1ef8df['elementUpdate$']),_0x205fa2(_0x1ef8df['elementRemove$']),this[_0x28fc5c(0x29f)]['state$']&&this[_0x28fc5c(0x3ac)](_0x34ad80(this[_0x28fc5c(0x29f)][_0x28fc5c(0x262)][_0x28fc5c(0x398)](_0x17a1de(this[_0x28fc5c(0x24b)]))[_0x28fc5c(0x20c)](()=>{const _0x33e014=_0x28fc5c;this[_0x33e014(0x221)]();})));}[_0x1bfc49(0x221)](){const _0x4244ee=_0x1bfc49;this[_0x4244ee(0x3da)]||(this['_attachObjectPointerScheduled']=!0x0,Promise['resolve']()['then'](()=>this[_0x4244ee(0x23a)]()));}[_0x1bfc49(0x23a)](){const _0x35a578=_0x1bfc49;var _0x4445af;this[_0x35a578(0x3da)]=!0x1;let _0xee314c=this[_0x35a578(0x26e)](),_0x1efa60=this[_0x35a578(0x2d9)][_0x35a578(0x247)];if(!_0xee314c||typeof _0x1efa60['getObject']!=_0x35a578(0x240))return;let _0x25fa5b=this[_0x35a578(0x13a)][_0x35a578(0x25f)](_0xee314c[_0x35a578(0x308)],_0xee314c['subUnitId']),_0x343fec=new _0x437ac0();(_0x4445af=this[_0x35a578(0x186)])==null||_0x4445af[_0x35a578(0x1b7)](),this[_0x35a578(0x186)]=_0x343fec,Object[_0x35a578(0x2b1)](_0x25fa5b)[_0x35a578(0x29c)](_0x30b2b1=>{const _0x4e021d=_0x35a578;var _0x13c7c9,_0x19e274,_0x391ef6;let _0x495054=_0x4b908c(_0x30b2b1['element']);if(!(_0x495054!=null&&_0x495054['parentNodeId']))return;let _0x2dcff9=_0x3f73c8(_0xee314c[_0x4e021d(0x308)],_0x30b2b1[_0x4e021d(0x1a7)]),_0x4d862e=(_0x13c7c9=(_0x19e274=_0x1efa60['getObjectIncludeInGroup'])==null?void 0x0:_0x19e274[_0x4e021d(0x3c7)](_0x1efa60,_0x2dcff9))==null?(_0x391ef6=_0x1efa60[_0x4e021d(0x348)])==null?void 0x0:_0x391ef6[_0x4e021d(0x3c7)](_0x1efa60,_0x2dcff9):_0x13c7c9;_0x4d862e!=null&&_0x4d862e[_0x4e021d(0x15c)]&&_0x343fec[_0x4e021d(0x306)](_0x4d862e[_0x4e021d(0x15c)][_0x4e021d(0x142)]({'priority':-0xa,'next':([_0x4f0489,_0xc0b14e])=>this['_capturePointerChildDragStart'](_0x4f0489,{'unitId':_0xee314c[_0x4e021d(0x308)],'subUnitId':_0xee314c[_0x4e021d(0x25a)],'nodeId':_0x30b2b1['elementId']},_0xc0b14e)}));});}[_0x1bfc49(0x26e)](){const _0x48d4b8=_0x1bfc49;let _0x148005=this[_0x48d4b8(0x29f)][_0x48d4b8(0x37c)]()[_0x48d4b8(0x3b1)];if(_0x148005)return _0x148005;let _0x2663dd=this[_0x48d4b8(0x2d9)][_0x48d4b8(0x308)],_0x5d48c9=_0x2663dd?this[_0x48d4b8(0x2ca)]['getUnit'](_0x2663dd,_0x3a60f9[_0x48d4b8(0x375)]):null,_0xea9108=_0x5d48c9==null?void 0x0:_0x5d48c9[_0x48d4b8(0x38d)]();return!_0x5d48c9||!_0xea9108?null:{'unitId':_0x5d48c9['getUnitId'](),'subUnitId':_0xea9108};}[_0x1bfc49(0x328)](){const _0x59840b=_0x1bfc49;var _0x5c9717,_0x42831c,_0x5275f8,_0xa50f1e,_0x470dce,_0x1caeff,_0x390113,_0x1bf5d9,_0x3eabf8;let _0xddc719=this[_0x59840b(0x29f)][_0x59840b(0x37c)]();this['_childDragActivated']=!0x1,this['_childDragSelectionHidden']=!0x1,this['_lastChildDragAction']=null;let _0x4782ef=_0xddc719[_0x59840b(0x3b1)],_0x5046ec=(_0x5c9717=_0xddc719[_0x59840b(0x2fe)])==null?_0xddc719['selectedIds'][0x0]:_0x5c9717;if(!_0x4782ef||!_0x5046ec||_0xddc719[_0x59840b(0x235)]['length']!==0x1){this['_dragStart']=null,this['_removeDragPreviewObject']();return;}let _0x5080b4=this['_boardElementService']['getElementData'](_0x4782ef['unitId'],_0x4782ef['subUnitId']),_0x1bd92c=_0x5080b4[_0x5046ec],_0x4c4b28=_0x4b908c(_0x1bd92c==null?void 0x0:_0x1bd92c[_0x59840b(0x30c)]);if(!_0x1bd92c||!_0x4c4b28){this['_dragStart']=null,this[_0x59840b(0x343)]();return;}let _0x3dd2db=_0x2fc33b(_0x5080b4,_0x5046ec),_0x27da55=_0x1bd92c['element'][_0x59840b(0x3ec)];this[_0x59840b(0x380)]={'kind':_0x4c4b28[_0x59840b(0x19f)]===null?'root':'child','unitId':_0x4782ef[_0x59840b(0x308)],'subUnitId':_0x4782ef[_0x59840b(0x25a)],'nodeId':_0x5046ec,'scopeId':_0x4c4b28[_0x59840b(0x1c0)],'left':(_0x42831c=(_0x5275f8=_0x3dd2db==null?void 0x0:_0x3dd2db['left'])==null?_0x27da55['left']:_0x5275f8)==null?0x0:_0x42831c,'top':(_0xa50f1e=(_0x470dce=_0x3dd2db==null?void 0x0:_0x3dd2db['top'])==null?_0x27da55[_0x59840b(0x1ba)]:_0x470dce)==null?0x0:_0xa50f1e,'width':(_0x1caeff=(_0x390113=_0x3dd2db==null?void 0x0:_0x3dd2db[_0x59840b(0x28a)])==null?_0x27da55[_0x59840b(0x28a)]:_0x390113)==null?0x0:_0x1caeff,'height':(_0x1bf5d9=(_0x3eabf8=_0x3dd2db==null?void 0x0:_0x3dd2db[_0x59840b(0x27e)])==null?_0x27da55[_0x59840b(0x27e)]:_0x3eabf8)==null?0x0:_0x1bf5d9,'elementData':_0x5080b4};}['_capturePointerChildDragStart'](_0x1dd15f,_0x527223,_0x11b5aa){const _0x57edbd=_0x1bfc49;var _0x1be7e5,_0x102862,_0x4612be,_0x2f6259,_0xc46f4d,_0x1268e9,_0x40e86a,_0x275882,_0x3e24ae,_0x635c0d,_0xe2c95f,_0x25a92d,_0x47394e,_0x3540ec;if(((_0x1be7e5=_0x1dd15f[_0x57edbd(0x2ee)])==null?0x0:_0x1be7e5)!==0x0)return;let _0x47f42c=this[_0x57edbd(0x29f)][_0x57edbd(0x37c)]();if(_0x47f42c[_0x57edbd(0x143)]){this[_0x57edbd(0x2a1)]=null;return;}let _0x5e1fb1=_0x527223?{'unitId':_0x527223[_0x57edbd(0x308)],'subUnitId':_0x527223[_0x57edbd(0x25a)]}:(_0x102862=_0x47f42c[_0x57edbd(0x3b1)])==null?this[_0x57edbd(0x26e)]():_0x102862,_0x5e3f38=(_0x4612be=_0x527223==null?void 0x0:_0x527223[_0x57edbd(0x141)])==null?_0x47f42c[_0x57edbd(0x235)][_0x57edbd(0x157)]===0x1?(_0x2f6259=_0x47f42c[_0x57edbd(0x2fe)])==null?_0x47f42c[_0x57edbd(0x235)][0x0]:_0x2f6259:void 0x0:_0x4612be;if(!_0x5e1fb1){this[_0x57edbd(0x2a1)]=null;return;}let _0x17e8f0=this[_0x57edbd(0x13a)][_0x57edbd(0x25f)](_0x5e1fb1[_0x57edbd(0x308)],_0x5e1fb1[_0x57edbd(0x25a)]),_0x32d6a3=this['_getBoardPointFromEvent'](_0x1dd15f);if(!_0x527223){var _0x5bac23,_0x4c489b,_0x31dab9,_0x237724,_0x57e927;let _0x30d6d9=_0x5e3f38?_0x17e8f0[_0x5e3f38]:null,_0x43539e=_0x4b908c(_0x30d6d9==null?void 0x0:_0x30d6d9['element']),_0x1cd47d=_0x5e3f38?(_0x5bac23=_0x2fc33b(_0x17e8f0,_0x5e3f38))==null?_0x30d6d9==null?void 0x0:_0x30d6d9[_0x57edbd(0x30c)][_0x57edbd(0x3ec)]:_0x5bac23:null;(!(_0x43539e!=null&&_0x43539e[_0x57edbd(0x19f)])||!_0x1cd47d||!this[_0x57edbd(0x3b7)](_0x32d6a3,{'left':(_0x4c489b=_0x1cd47d[_0x57edbd(0x33e)])==null?0x0:_0x4c489b,'top':(_0x31dab9=_0x1cd47d[_0x57edbd(0x1ba)])==null?0x0:_0x31dab9,'width':(_0x237724=_0x1cd47d['width'])==null?0x0:_0x237724,'height':(_0x57e927=_0x1cd47d['height'])==null?0x0:_0x57e927}))&&(_0x5e3f38=this[_0x57edbd(0x3cc)](_0x17e8f0,_0x32d6a3));}if(!_0x5e3f38){this[_0x57edbd(0x2a1)]=null;return;}let _0xe2cadc=_0x17e8f0[_0x5e3f38],_0x2fd72d=_0x4b908c(_0xe2cadc==null?void 0x0:_0xe2cadc[_0x57edbd(0x30c)]);if(!_0xe2cadc||!(_0x2fd72d!=null&&_0x2fd72d['parentNodeId'])){this[_0x57edbd(0x2a1)]=null;return;}(_0xc46f4d=(_0x1268e9=this['_elementStateService'])[_0x57edbd(0x251)])==null||_0xc46f4d[_0x57edbd(0x3c7)](_0x1268e9,_0x5e1fb1,[_0x5e3f38],_0x5e3f38),_0x11b5aa==null||_0x11b5aa['stopPropagation']();let _0x5461b5=_0x2fc33b(_0x17e8f0,_0x5e3f38),_0x4d62ab=_0xe2cadc[_0x57edbd(0x30c)][_0x57edbd(0x3ec)],_0x4dc305={'left':(_0x40e86a=(_0x275882=_0x5461b5==null?void 0x0:_0x5461b5['left'])==null?_0x4d62ab['left']:_0x275882)==null?0x0:_0x40e86a,'top':(_0x3e24ae=(_0x635c0d=_0x5461b5==null?void 0x0:_0x5461b5['top'])==null?_0x4d62ab['top']:_0x635c0d)==null?0x0:_0x3e24ae,'width':(_0xe2c95f=(_0x25a92d=_0x5461b5==null?void 0x0:_0x5461b5[_0x57edbd(0x28a)])==null?_0x4d62ab[_0x57edbd(0x28a)]:_0x25a92d)==null?0x0:_0xe2c95f,'height':(_0x47394e=(_0x3540ec=_0x5461b5==null?void 0x0:_0x5461b5[_0x57edbd(0x27e)])==null?_0x4d62ab[_0x57edbd(0x27e)]:_0x3540ec)==null?0x0:_0x47394e};if(!_0x527223&&!this[_0x57edbd(0x3b7)](_0x32d6a3,_0x4dc305)){this[_0x57edbd(0x2a1)]=null;return;}let _0x35a456=this[_0x57edbd(0x33c)](_0x1dd15f);this[_0x57edbd(0x135)]=!0x1,this[_0x57edbd(0x178)]=!0x1,this['_lastChildDragAction']=null,this[_0x57edbd(0x2a1)]={'kind':_0x57edbd(0x304),'unitId':_0x5e1fb1[_0x57edbd(0x308)],'subUnitId':_0x5e1fb1['subUnitId'],'nodeId':_0x5e3f38,'scopeId':_0x2fd72d[_0x57edbd(0x1c0)],..._0x4dc305,'pointerStartX':_0x35a456['x'],'pointerStartY':_0x35a456['y'],'elementData':_0x17e8f0},this['_attachActivePointerDragListeners'](),this[_0x57edbd(0x17d)](_0x1dd15f,_0x11b5aa);}['_syncPointerChildDragPreview'](_0x15ea97,_0x43faab){const _0x7b41d7=_0x1bfc49;var _0x3b6f02,_0x3566f4;let _0xe0c3a6=this['_pointerDragStart'];if(!_0xe0c3a6||_0x15ea97[_0x7b41d7(0x3dd)]!==void 0x0&&_0x15ea97['buttons']!==0x1)return;let _0x3182d1=this['_getPointerLiveBounds'](_0x15ea97,_0xe0c3a6);if(!this[_0x7b41d7(0x3d2)](_0xe0c3a6,_0x3182d1))return;this['_childDragActivated']||this[_0x7b41d7(0x356)](),this[_0x7b41d7(0x135)]=!0x0;let _0x25d85e=this[_0x7b41d7(0x3d9)](_0xe0c3a6[_0x7b41d7(0x254)],_0xe0c3a6['nodeId'],_0x3182d1),_0x320e3b=Zt(_0xe0c3a6[_0x7b41d7(0x254)],_0xe0c3a6[_0x7b41d7(0x141)],{'boundsByElementId':_0x25d85e,'detachWhenNoSnap':!0x0});this[_0x7b41d7(0x1bb)]=_0x320e3b,this[_0x7b41d7(0x175)](_0x3182d1,_0x320e3b,_0x25d85e),this[_0x7b41d7(0x17d)](_0x15ea97,_0x43faab),this[_0x7b41d7(0x2d9)]['scene']['makeDirty'](!0x0),(_0x3b6f02=(_0x3566f4=this[_0x7b41d7(0x2d9)]['scene'])[_0x7b41d7(0x369)])==null||_0x3b6f02[_0x7b41d7(0x3c7)](_0x3566f4);}['_applyPointerChildDrag'](_0x3f48d8,_0x989b55){const _0x2e6f4f=_0x1bfc49;let _0x38d5fb=this[_0x2e6f4f(0x2a1)];if(!_0x38d5fb)return;if(this[_0x2e6f4f(0x2a1)]=null,this[_0x2e6f4f(0x2ba)](),this[_0x2e6f4f(0x343)](),!this[_0x2e6f4f(0x135)]){this[_0x2e6f4f(0x1bb)]=null;return;}let _0x4041a4=this[_0x2e6f4f(0x13a)][_0x2e6f4f(0x25f)](_0x38d5fb[_0x2e6f4f(0x308)],_0x38d5fb[_0x2e6f4f(0x25a)]),_0x4bf291=this[_0x2e6f4f(0x331)](_0x3f48d8,_0x38d5fb),_0x5a0e57=this[_0x2e6f4f(0x3d9)](_0x4041a4,_0x38d5fb[_0x2e6f4f(0x141)],_0x4bf291),_0x4b00d7=Zt(_0x4041a4,_0x38d5fb['nodeId'],{'boundsByElementId':_0x5a0e57,'detachWhenNoSnap':!0x0});this[_0x2e6f4f(0x1bb)]=null,this['_executeChildDragAction'](_0x38d5fb[_0x2e6f4f(0x308)],_0x38d5fb[_0x2e6f4f(0x25a)],_0x38d5fb[_0x2e6f4f(0x141)],_0x4041a4,_0x4b00d7),this['_childDragSelectionHidden']=!0x1,this['_consumePointerEvent'](_0x3f48d8,_0x989b55);}[_0x1bfc49(0x2d6)](_0x7c4844){const _0x30bad7=_0x1bfc49;let _0x2295e8=this['_pointerDragStart'];if(_0x2295e8){if(this[_0x30bad7(0x2a1)]=null,this[_0x30bad7(0x2ba)](),this['_childDragActivated']=!0x1,this[_0x30bad7(0x1bb)]=null,this['_removeDragPreviewObject'](),this[_0x30bad7(0x178)]){var _0x55551b,_0x512ed2;(_0x55551b=(_0x512ed2=this['_elementStateService'])[_0x30bad7(0x251)])==null||_0x55551b[_0x30bad7(0x3c7)](_0x512ed2,{'unitId':_0x2295e8[_0x30bad7(0x308)],'subUnitId':_0x2295e8[_0x30bad7(0x25a)]},[_0x2295e8[_0x30bad7(0x141)]],_0x2295e8[_0x30bad7(0x141)]),this[_0x30bad7(0x178)]=!0x1;}_0x7c4844==null||_0x7c4844[_0x30bad7(0x2e6)]();}}[_0x1bfc49(0x374)](){const _0x53628e=_0x1bfc49;this[_0x53628e(0x2ba)]();let _0x254d58=typeof window>'u'?null:window;if(!(_0x254d58!=null&&_0x254d58[_0x53628e(0x2bf)]))return;let _0x45fb86=new _0x437ac0(),_0x463b10=_0x31e261=>this[_0x53628e(0x1f0)](_0x31e261),_0x59b078=_0x49d8ec=>this[_0x53628e(0x34f)](_0x49d8ec),_0x3dfe62=()=>this['_cancelPointerChildDrag']();_0x254d58[_0x53628e(0x2bf)]('pointermove',_0x463b10,{'capture':!0x0}),_0x254d58['addEventListener'](_0x53628e(0x1d2),_0x59b078,{'capture':!0x0}),_0x254d58[_0x53628e(0x2bf)](_0x53628e(0x401),_0x3dfe62,{'capture':!0x0}),_0x45fb86[_0x53628e(0x306)](_0x34ad80(()=>{const _0x26048c=_0x53628e;_0x254d58[_0x26048c(0x30a)]('pointermove',_0x463b10,{'capture':!0x0}),_0x254d58[_0x26048c(0x30a)]('pointerup',_0x59b078,{'capture':!0x0}),_0x254d58[_0x26048c(0x30a)](_0x26048c(0x401),_0x3dfe62,{'capture':!0x0});})),this['_activePointerDragDisposables']=_0x45fb86;}['_findChildNodeAtPoint'](_0x4becf0,_0x320a46){const _0x5db394=_0x1bfc49;let _0x2685fd=Object[_0x5db394(0x2b1)](_0x4becf0);for(let _0x2b53a5=_0x2685fd[_0x5db394(0x157)]-0x1;_0x2b53a5>=0x0;--_0x2b53a5){var _0x53d4cb,_0x39889d,_0x16e190,_0x34f634,_0x1fc9bc;let _0xa32447=_0x2685fd[_0x2b53a5],_0x39be3f=_0x4b908c(_0xa32447[_0x5db394(0x30c)]);if(!(_0x39be3f!=null&&_0x39be3f[_0x5db394(0x19f)]))continue;let _0x56466f=(_0x53d4cb=_0x2fc33b(_0x4becf0,_0xa32447[_0x5db394(0x1a7)]))==null?_0xa32447[_0x5db394(0x30c)][_0x5db394(0x3ec)]:_0x53d4cb;if(this['_isPointInBounds'](_0x320a46,{'left':(_0x39889d=_0x56466f[_0x5db394(0x33e)])==null?0x0:_0x39889d,'top':(_0x16e190=_0x56466f['top'])==null?0x0:_0x16e190,'width':(_0x34f634=_0x56466f[_0x5db394(0x28a)])==null?0x0:_0x34f634,'height':(_0x1fc9bc=_0x56466f[_0x5db394(0x27e)])==null?0x0:_0x1fc9bc}))return _0xa32447['elementId'];}}[_0x1bfc49(0x2ba)](){const _0x2ecf55=_0x1bfc49;var _0x1691fa;(_0x1691fa=this[_0x2ecf55(0x185)])==null||_0x1691fa[_0x2ecf55(0x1b7)](),this[_0x2ecf55(0x185)]=null;}[_0x1bfc49(0x3ba)](_0x19042e){const _0x3f0451=_0x1bfc49;let _0x45cbb9=this[_0x3f0451(0x380)];if(_0x45cbb9){if(_0x45cbb9[_0x3f0451(0x244)]===_0x3f0451(0x267)){this[_0x3f0451(0x293)](_0x19042e),this[_0x3f0451(0x1e9)](_0x19042e);return;}this['_syncChildDragPreview'](_0x19042e);}}['_syncRootScopePreview'](_0x1909ca){const _0xaa8c04=_0x1bfc49;let _0x1918e0=this[_0xaa8c04(0x380)];if(!_0x1918e0||_0x1918e0[_0xaa8c04(0x244)]!==_0xaa8c04(0x267))return;let _0x3d8447=_0x1909ca==null?void 0x0:_0x1909ca[_0xaa8c04(0x1f7)](_0x3f73c8(_0x1918e0[_0xaa8c04(0x308)],_0x1918e0[_0xaa8c04(0x141)]));if(!_0x3d8447||!Number[_0xaa8c04(0x20e)](_0x3d8447[_0xaa8c04(0x33e)])||!Number['isFinite'](_0x3d8447[_0xaa8c04(0x1ba)]))return;let _0x5ef218=en({'elementData':_0x1918e0['elementData'],'rootNodeId':_0x1918e0[_0xaa8c04(0x141)],'scopeId':_0x1918e0['scopeId'],'rootStartBounds':{'left':_0x1918e0[_0xaa8c04(0x33e)],'top':_0x1918e0['top']},'liveRootBounds':{'left':_0x3d8447[_0xaa8c04(0x33e)],'top':_0x3d8447[_0xaa8c04(0x1ba)]}});if(!_0x5ef218)return;let _0x6637f3=this[_0xaa8c04(0x2d9)][_0xaa8c04(0x247)],_0x4f7137=_0x6637f3,_0x61acb1=!0x1;_0x5ef218[_0xaa8c04(0x3a5)][_0xaa8c04(0x29c)](_0x69e4a3=>{const _0x209a29=_0xaa8c04;var _0x53cc58,_0x1f3356;let _0x3acc12=_0x3f73c8(_0x1918e0[_0x209a29(0x308)],_0x69e4a3[_0x209a29(0x1a7)]),_0x2cdb02=(_0x53cc58=(_0x1f3356=_0x4f7137['getObjectIncludeInGroup'])==null?void 0x0:_0x1f3356[_0x209a29(0x3c7)](_0x4f7137,_0x3acc12))==null?_0x6637f3['getObject'](_0x3acc12):_0x53cc58;if(_0x2cdb02){if(_0x69e4a3[_0x209a29(0x244)]===_0x209a29(0x182)&&typeof _0x2cdb02[_0x209a29(0x3cd)]==_0x209a29(0x240)){_0x2cdb02[_0x209a29(0x3cd)](_0x69e4a3[_0x209a29(0x30c)],_0x5ef218[_0x209a29(0x254)]),_0x61acb1=!0x0;return;}_0x69e4a3[_0x209a29(0x244)]===_0x209a29(0x208)&&(_0x2cdb02[_0x209a29(0x130)](_0x69e4a3[_0x209a29(0x208)]),typeof _0x2cdb02[_0x209a29(0x2f5)]==_0x209a29(0x240)?_0x2cdb02[_0x209a29(0x2f5)](!0x0):_0x2cdb02['makeDirty'](!0x0),_0x61acb1=!0x0);}}),_0x61acb1&&_0x6637f3[_0xaa8c04(0x32a)](!0x0);}[_0x1bfc49(0x1e9)](_0x3eed4f){const _0x2088e5=_0x1bfc49;var _0x24ed38,_0x2c1467;let _0x5a3d1e=this[_0x2088e5(0x380)];if(!_0x5a3d1e||_0x5a3d1e[_0x2088e5(0x244)]!==_0x2088e5(0x267))return;let _0x36b120=_0x3eed4f==null?void 0x0:_0x3eed4f['get'](_0x3f73c8(_0x5a3d1e[_0x2088e5(0x308)],_0x5a3d1e[_0x2088e5(0x141)]));if(!_0x36b120||!Number['isFinite'](_0x36b120[_0x2088e5(0x33e)])||!Number[_0x2088e5(0x20e)](_0x36b120[_0x2088e5(0x1ba)])){this[_0x2088e5(0x343)]();return;}let _0x27815e=this[_0x2088e5(0x213)](_0x36b120,_0x5a3d1e),_0x504d85=this[_0x2088e5(0x3d9)](_0x5a3d1e['elementData'],_0x5a3d1e['nodeId'],_0x27815e),_0x5667b4=Zt(_0x5a3d1e['elementData'],_0x5a3d1e[_0x2088e5(0x141)],{'boundsByElementId':_0x504d85,'allowRootReparent':!0x0});if(_0x5667b4['kind']!==_0x2088e5(0x322)){this['_removeDragPreviewObject']();return;}let _0x150841=this['_ensureDragPreviewObject']();_0x150841&&(_0x150841[_0x2088e5(0x3af)]({'ghostBounds':_0x27815e,'sourceBounds':null,'parentBounds':_0x504d85[_0x5667b4[_0x2088e5(0x3b3)]],'side':_0x5667b4[_0x2088e5(0x1b9)],'textStyle':void 0x0,'renderGhostNode':!0x1}),this['_renderContext'][_0x2088e5(0x247)]['makeDirty'](!0x0),(_0x24ed38=(_0x2c1467=this[_0x2088e5(0x2d9)][_0x2088e5(0x247)])['requestRender'])==null||_0x24ed38['call'](_0x2c1467));}[_0x1bfc49(0x21b)](_0x2f28af){const _0x13defc=_0x1bfc49;var _0xebd6f0,_0x446a2e;let _0x308073=this[_0x13defc(0x380)];if(!_0x308073||_0x308073[_0x13defc(0x244)]!==_0x13defc(0x304))return;let _0x37dae5=_0x2f28af==null?void 0x0:_0x2f28af[_0x13defc(0x1f7)](_0x3f73c8(_0x308073[_0x13defc(0x308)],_0x308073[_0x13defc(0x141)]));if(!_0x37dae5){this[_0x13defc(0x343)]();return;}let _0x77f19f=this[_0x13defc(0x213)](_0x37dae5,_0x308073);if(!this['_isChildDragPastActivationThreshold'](_0x308073,_0x77f19f)){this[_0x13defc(0x1bb)]=null,this[_0x13defc(0x343)](),this['_restoreObjectToDragStart'](_0x37dae5,_0x308073),this[_0x13defc(0x2d9)][_0x13defc(0x247)][_0x13defc(0x32a)](!0x0);return;}this[_0x13defc(0x135)]||this[_0x13defc(0x356)](),this[_0x13defc(0x135)]=!0x0;let _0x10cf11=this['_createTopologyBoundsByElementId'](_0x308073[_0x13defc(0x254)],_0x308073[_0x13defc(0x141)],_0x77f19f),_0x4c2bc6=Zt(_0x308073['elementData'],_0x308073[_0x13defc(0x141)],{'boundsByElementId':_0x10cf11,'detachWhenNoSnap':!0x0});this['_lastChildDragAction']=_0x4c2bc6,this[_0x13defc(0x175)](_0x77f19f,_0x4c2bc6,_0x10cf11),this[_0x13defc(0x2a9)](_0x37dae5,_0x308073),this['_renderContext'][_0x13defc(0x247)]['makeDirty'](!0x0),(_0xebd6f0=(_0x446a2e=this['_renderContext'][_0x13defc(0x247)])[_0x13defc(0x369)])==null||_0xebd6f0[_0x13defc(0x3c7)](_0x446a2e);}[_0x1bfc49(0x371)](_0x4b984d){const _0x6b1eb3=_0x1bfc49;var _0xb31ca5;let _0x158b01=this[_0x6b1eb3(0x29f)][_0x6b1eb3(0x37c)](),_0x1132e1=_0x158b01[_0x6b1eb3(0x3b1)],_0x4747e5=(_0xb31ca5=_0x158b01['focusedId'])==null?_0x158b01['selectedIds'][0x0]:_0xb31ca5;if(!_0x1132e1||!_0x4747e5||_0x158b01[_0x6b1eb3(0x235)][_0x6b1eb3(0x157)]!==0x1){this[_0x6b1eb3(0x343)](),this[_0x6b1eb3(0x380)]=null;return;}this[_0x6b1eb3(0x343)]();let _0x3932a4=this[_0x6b1eb3(0x13a)][_0x6b1eb3(0x25f)](_0x1132e1['unitId'],_0x1132e1[_0x6b1eb3(0x25a)]);if(this[_0x6b1eb3(0x305)](_0x1132e1[_0x6b1eb3(0x308)],_0x1132e1[_0x6b1eb3(0x25a)],_0x4747e5,_0x3932a4,_0x4b984d))return;let _0x115709=this[_0x6b1eb3(0x300)](_0x1132e1[_0x6b1eb3(0x308)],_0x1132e1[_0x6b1eb3(0x25a)],_0x4747e5,_0x3932a4,_0x4b984d);this[_0x6b1eb3(0x311)](_0x1132e1[_0x6b1eb3(0x308)],_0x1132e1['subUnitId'],_0x4747e5,_0x3932a4,_0x115709);}['_executeChildDragAction'](_0x22571c,_0x19e0c8,_0xfc8331,_0x579ff4,_0x2a9f17){const _0x399ce2=_0x1bfc49;if(_0x2a9f17[_0x399ce2(0x244)]===_0x399ce2(0x322)){var _0x540290,_0x5b8f8d;let _0x4abdaa=_0x4b908c((_0x540290=_0x579ff4[_0xfc8331])==null?void 0x0:_0x540290['element']),_0x11da85=_0x4b908c((_0x5b8f8d=_0x579ff4[_0x2a9f17[_0x399ce2(0x3b3)]])==null?void 0x0:_0x5b8f8d['element']);this[_0x399ce2(0x316)](_0x1123f2['id'],{'unitId':_0x22571c,'subUnitId':_0x19e0c8,'nodeId':_0xfc8331,'newParentNodeId':_0x2a9f17['newParentNodeId'],'side':_0x2a9f17['side'],..._0x2a9f17[_0x399ce2(0x3e6)]?{'referenceNodeId':_0x2a9f17[_0x399ce2(0x3e6)]}:null,..._0x2a9f17[_0x399ce2(0x210)]?{'placement':_0x2a9f17['placement']}:null},[_0x4abdaa==null?void 0x0:_0x4abdaa['structureScopeId'],_0x11da85==null?void 0x0:_0x11da85[_0x399ce2(0x1c0)]],_0xfc8331);return;}if(_0x2a9f17[_0x399ce2(0x244)]===_0x399ce2(0x36c)){var _0x531cb1;let _0x19cf17=_0x4b908c((_0x531cb1=_0x579ff4[_0xfc8331])==null?void 0x0:_0x531cb1[_0x399ce2(0x30c)]);this['_executeAndLayout'](_0x1d6084['id'],{'unitId':_0x22571c,'subUnitId':_0x19e0c8,'nodeId':_0xfc8331,...Number[_0x399ce2(0x20e)](_0x2a9f17[_0x399ce2(0x33e)])?{'left':_0x2a9f17[_0x399ce2(0x33e)]}:null,...Number[_0x399ce2(0x20e)](_0x2a9f17[_0x399ce2(0x1ba)])?{'top':_0x2a9f17[_0x399ce2(0x1ba)]}:null},[_0x19cf17==null?void 0x0:_0x19cf17['structureScopeId']],_0xfc8331);}}[_0x1bfc49(0x305)](_0x36f0d7,_0x19c4d0,_0x5d1688,_0x352f73,_0x4e2fb4){const _0x26095e=_0x1bfc49;var _0xac4825,_0x5d5c8e,_0x36b6af,_0x578c70;let _0x21bd2c=this[_0x26095e(0x380)];if((_0x21bd2c==null?void 0x0:_0x21bd2c[_0x26095e(0x244)])===_0x26095e(0x267)&&(this[_0x26095e(0x380)]=null),!_0x21bd2c||_0x21bd2c[_0x26095e(0x308)]!==_0x36f0d7||_0x21bd2c[_0x26095e(0x25a)]!==_0x19c4d0||_0x21bd2c[_0x26095e(0x141)]!==_0x5d1688)return!0x1;let _0x5744d9=_0x352f73[_0x5d1688],_0x3d8a23=_0x4b908c(_0x5744d9==null?void 0x0:_0x5744d9[_0x26095e(0x30c)]);if(!_0x5744d9||!_0x3d8a23||_0x3d8a23[_0x26095e(0x19f)]!==null)return!0x1;let _0x13e5c1=_0x4e2fb4==null?void 0x0:_0x4e2fb4[_0x26095e(0x1f7)](_0x3f73c8(_0x36f0d7,_0x5d1688)),_0x1a4da0=_0x2fc33b(_0x352f73,_0x5d1688),_0x195285=Number[_0x26095e(0x20e)](_0x13e5c1==null?void 0x0:_0x13e5c1['left'])?_0x13e5c1['left']:(_0xac4825=(_0x5d5c8e=_0x1a4da0==null?void 0x0:_0x1a4da0['left'])==null?_0x5744d9[_0x26095e(0x30c)]['transform'][_0x26095e(0x33e)]:_0x5d5c8e)==null?0x0:_0xac4825,_0x5555cb=Number[_0x26095e(0x20e)](_0x13e5c1==null?void 0x0:_0x13e5c1['top'])?_0x13e5c1[_0x26095e(0x1ba)]:(_0x36b6af=(_0x578c70=_0x1a4da0==null?void 0x0:_0x1a4da0[_0x26095e(0x1ba)])==null?_0x5744d9['element'][_0x26095e(0x3ec)][_0x26095e(0x1ba)]:_0x578c70)==null?0x0:_0x36b6af,_0x4d6ff1=_0x195285-_0x21bd2c[_0x26095e(0x33e)],_0x2a7af9=_0x5555cb-_0x21bd2c[_0x26095e(0x1ba)];if(_0x4d6ff1===0x0&&_0x2a7af9===0x0)return!0x0;let _0x5ea5bb={'left':_0x195285,'top':_0x5555cb,'width':Number[_0x26095e(0x20e)](_0x13e5c1==null?void 0x0:_0x13e5c1[_0x26095e(0x28a)])?_0x13e5c1[_0x26095e(0x28a)]:_0x21bd2c[_0x26095e(0x28a)],'height':Number[_0x26095e(0x20e)](_0x13e5c1==null?void 0x0:_0x13e5c1[_0x26095e(0x27e)])?_0x13e5c1['height']:_0x21bd2c[_0x26095e(0x27e)]},_0x3e5459=Zt(_0x352f73,_0x5d1688,{'boundsByElementId':this[_0x26095e(0x3d9)](_0x352f73,_0x5d1688,_0x5ea5bb),'allowRootReparent':!0x0});if(_0x3e5459[_0x26095e(0x244)]==='reparent')return this[_0x26095e(0x311)](_0x36f0d7,_0x19c4d0,_0x5d1688,_0x352f73,_0x3e5459),!0x0;let _0x4b4a60=!!_0x1a4da0&&Math[_0x26095e(0x232)](_0x1a4da0['left']-_0x195285)<0.001&&Math[_0x26095e(0x232)](_0x1a4da0[_0x26095e(0x1ba)]-_0x5555cb)<0.001;return this[_0x26095e(0x3ca)]['executeCommand'](_0x2e2da9['id'],{'unitId':_0x36f0d7,'subUnitId':_0x19c4d0,'scopeId':_0x21bd2c[_0x26095e(0x372)],'deltaX':_0x4d6ff1,'deltaY':_0x2a7af9,..._0x4b4a60?{'excludeElementIds':[_0x5d1688],'preserveExcludedWorldTransforms':!0x0}:null}),!0x0;}[_0x1bfc49(0x300)](_0x54d9e9,_0x4e320b,_0xec3d54,_0x2d130f,_0x4ae569){const _0x5f068b=_0x1bfc49;let _0x42faa9=this['_dragStart'];if(!_0x42faa9||_0x42faa9[_0x5f068b(0x244)]!==_0x5f068b(0x304)||_0x42faa9[_0x5f068b(0x308)]!==_0x54d9e9||_0x42faa9[_0x5f068b(0x25a)]!==_0x4e320b||_0x42faa9[_0x5f068b(0x141)]!==_0xec3d54)return{'kind':'none'};this[_0x5f068b(0x380)]=null;let _0x519fb5=_0x4ae569==null?void 0x0:_0x4ae569['get'](_0x3f73c8(_0x54d9e9,_0xec3d54));if(!this[_0x5f068b(0x135)])return _0x519fb5&&this[_0x5f068b(0x2a9)](_0x519fb5,_0x42faa9),this[_0x5f068b(0x1bb)]=null,{'kind':_0x5f068b(0x329)};if(!_0x519fb5){var _0x210330;let _0x2e53d6=(_0x210330=this[_0x5f068b(0x1bb)])==null?{'kind':_0x5f068b(0x329)}:_0x210330;return this['_lastChildDragAction']=null,_0x2e53d6;}let _0x25b761=this['_getLiveObjectBounds'](_0x519fb5,_0x42faa9);if(this[_0x5f068b(0x2a9)](_0x519fb5,_0x42faa9),!this[_0x5f068b(0x3d2)](_0x42faa9,_0x25b761))return this[_0x5f068b(0x1bb)]=null,{'kind':'none'};let _0x44e294=Zt(_0x2d130f,_0xec3d54,{'boundsByElementId':this[_0x5f068b(0x3d9)](_0x2d130f,_0xec3d54,_0x25b761),'detachWhenNoSnap':!0x0});return this['_lastChildDragAction']=null,_0x44e294;}[_0x1bfc49(0x3d2)](_0x4fa49a,_0x59f599){const _0x4f2528=_0x1bfc49;var _0x2e4853,_0xdd5e84;let _0x4f7c5d=((_0x2e4853=_0x59f599[_0x4f2528(0x33e)])==null?_0x4fa49a['left']:_0x2e4853)-_0x4fa49a[_0x4f2528(0x33e)],_0x2c63e0=((_0xdd5e84=_0x59f599[_0x4f2528(0x1ba)])==null?_0x4fa49a[_0x4f2528(0x1ba)]:_0xdd5e84)-_0x4fa49a[_0x4f2528(0x1ba)];return Math[_0x4f2528(0x30d)](_0x4f7c5d,_0x2c63e0)>=0x12;}[_0x1bfc49(0x331)](_0x582e8b,_0x3d4534){const _0x420105=_0x1bfc49;let _0x283a78=this['_getPointerScreenPoint'](_0x582e8b),_0xe207c=this[_0x420105(0x134)]();return{'left':_0x3d4534[_0x420105(0x33e)]+(_0x283a78['x']-_0x3d4534[_0x420105(0x159)])/_0xe207c,'top':_0x3d4534[_0x420105(0x1ba)]+(_0x283a78['y']-_0x3d4534[_0x420105(0x3a4)])/_0xe207c,'width':_0x3d4534[_0x420105(0x28a)],'height':_0x3d4534[_0x420105(0x27e)]};}[_0x1bfc49(0x133)](_0x5ee00d){const _0x3d4040=_0x1bfc49;var _0x239503,_0x540225,_0x21ad75;let _0x3db28a=this[_0x3d4040(0x382)]['getState'](),_0x15ca64=(_0x239503=_0x3db28a==null?void 0x0:_0x3db28a[_0x3d4040(0x1e7)])==null?{'x':0x0,'y':0x0}:_0x239503,_0xe3f7fc=this[_0x3d4040(0x134)]();return{'x':Math[_0x3d4040(0x207)]((((_0x540225=_0x5ee00d[_0x3d4040(0x154)])==null?0x0:_0x540225)-_0x15ca64['x'])/_0xe3f7fc),'y':Math[_0x3d4040(0x207)]((((_0x21ad75=_0x5ee00d[_0x3d4040(0x12c)])==null?0x0:_0x21ad75)-_0x15ca64['y'])/_0xe3f7fc)};}['_getPointerScreenPoint'](_0xd6b0b3){const _0x1a7cd=_0x1bfc49;var _0x34c56a,_0x3eadf9;return{'x':Number['isFinite'](_0xd6b0b3[_0x1a7cd(0x3de)])?_0xd6b0b3[_0x1a7cd(0x3de)]:(_0x34c56a=_0xd6b0b3[_0x1a7cd(0x154)])==null?0x0:_0x34c56a,'y':Number[_0x1a7cd(0x20e)](_0xd6b0b3[_0x1a7cd(0x2b5)])?_0xd6b0b3[_0x1a7cd(0x2b5)]:(_0x3eadf9=_0xd6b0b3['offsetY'])==null?0x0:_0x3eadf9};}['_getZoomRatio'](){const _0x518cf9=_0x1bfc49;let _0x11f959=this[_0x518cf9(0x382)][_0x518cf9(0x2d3)]()[_0x518cf9(0x1d7)];return Number[_0x518cf9(0x20e)](_0x11f959)&&(_0x11f959==null?0x0:_0x11f959)>0x0?_0x11f959:0x1;}[_0x1bfc49(0x3b7)](_0x3d0f9b,_0x108d32){const _0x4a4a2b=_0x1bfc49;return _0x3d0f9b['x']>=_0x108d32[_0x4a4a2b(0x33e)]&&_0x3d0f9b['x']<=_0x108d32['left']+_0x108d32[_0x4a4a2b(0x28a)]&&_0x3d0f9b['y']>=_0x108d32[_0x4a4a2b(0x1ba)]&&_0x3d0f9b['y']<=_0x108d32['top']+_0x108d32[_0x4a4a2b(0x27e)];}['_consumePointerEvent'](_0xa20bee,_0x1993fb){const _0x543570=_0x1bfc49;var _0x37e9e0,_0x167292;_0x1993fb==null||_0x1993fb[_0x543570(0x2e6)](),_0x1993fb&&(_0x1993fb['skipNextObservers']=!0x0),(_0x37e9e0=_0xa20bee[_0x543570(0x351)])==null||_0x37e9e0['call'](_0xa20bee),(_0x167292=_0xa20bee['stopPropagation'])==null||_0x167292[_0x543570(0x3c7)](_0xa20bee);}[_0x1bfc49(0x356)](){const _0x5b27f2=_0x1bfc49;var _0x1a3281,_0x22ca7f;this[_0x5b27f2(0x178)]||((_0x1a3281=(_0x22ca7f=this['_elementStateService'])[_0x5b27f2(0x1cf)])==null||_0x1a3281[_0x5b27f2(0x3c7)](_0x22ca7f),this[_0x5b27f2(0x178)]=!0x0);}[_0x1bfc49(0x213)](_0x1a222b,_0x5a96d9){const _0x297865=_0x1bfc49;return{'left':Number['isFinite'](_0x1a222b[_0x297865(0x33e)])?_0x1a222b[_0x297865(0x33e)]:_0x5a96d9['left'],'top':Number[_0x297865(0x20e)](_0x1a222b[_0x297865(0x1ba)])?_0x1a222b[_0x297865(0x1ba)]:_0x5a96d9[_0x297865(0x1ba)],'width':Number['isFinite'](_0x1a222b[_0x297865(0x28a)])?_0x1a222b[_0x297865(0x28a)]:_0x5a96d9['width'],'height':Number['isFinite'](_0x1a222b['height'])?_0x1a222b[_0x297865(0x27e)]:_0x5a96d9[_0x297865(0x27e)]};}[_0x1bfc49(0x2a9)](_0x131894,_0x53ac28){const _0x3c702f=_0x1bfc49;typeof _0x131894['transformByState']==_0x3c702f(0x240)&&_0x131894[_0x3c702f(0x130)]({'left':_0x53ac28[_0x3c702f(0x33e)],'top':_0x53ac28['top'],'width':_0x53ac28[_0x3c702f(0x28a)],'height':_0x53ac28[_0x3c702f(0x27e)]}),typeof _0x131894[_0x3c702f(0x2f5)]==_0x3c702f(0x240)?_0x131894[_0x3c702f(0x2f5)](!0x0):typeof _0x131894[_0x3c702f(0x32a)]==_0x3c702f(0x240)&&_0x131894[_0x3c702f(0x32a)](!0x0);}[_0x1bfc49(0x3d9)](_0x1cb461,_0x4bc993,_0x561ec6){const _0x5edaa7=_0x1bfc49;return Object[_0x5edaa7(0x37e)](Object[_0x5edaa7(0x320)](_0x1cb461)[_0x5edaa7(0x288)](_0x1d368c=>{const _0x3c42d6=_0x5edaa7;if(_0x1d368c===_0x4bc993)return[_0x1d368c,_0x561ec6];let _0x2a1f19=_0x2fc33b(_0x1cb461,_0x1d368c);return[_0x1d368c,_0x2a1f19==null?_0x1cb461[_0x1d368c][_0x3c42d6(0x30c)][_0x3c42d6(0x3ec)]:_0x2a1f19];}));}[_0x1bfc49(0x173)](){const _0x18e152=_0x1bfc49;if(this['_dragPreviewObject'])return this[_0x18e152(0x17c)];let _0x2c547e=this[_0x18e152(0x2d9)][_0x18e152(0x247)];return typeof _0x2c547e[_0x18e152(0x2a2)]==_0x18e152(0x240)?(this[_0x18e152(0x17c)]=new Ut(Lt),_0x2c547e[_0x18e152(0x2a2)](this[_0x18e152(0x17c)],Rt),this[_0x18e152(0x17c)]):null;}[_0x1bfc49(0x175)](_0x51ee41,_0x118f40,_0x18a839){const _0x23f9c5=_0x1bfc49;let _0x4a5235=this[_0x23f9c5(0x173)]();_0x4a5235&&_0x4a5235[_0x23f9c5(0x3af)]({'ghostBounds':_0x51ee41,'sourceBounds':this[_0x23f9c5(0x127)](),'parentBounds':_0x118f40[_0x23f9c5(0x244)]===_0x23f9c5(0x322)?_0x18a839[_0x118f40[_0x23f9c5(0x3b3)]]:null,'side':_0x118f40[_0x23f9c5(0x244)]===_0x23f9c5(0x322)?_0x118f40[_0x23f9c5(0x1b9)]:_0x23f9c5(0x13e),'textStyle':this[_0x23f9c5(0x203)](),'renderGhostNode':!0x0});}['_resolvePreviewSourceBounds'](){const _0x7d6ebb=_0x1bfc49;var _0x2f3d46;let _0x2d5843=(_0x2f3d46=this[_0x7d6ebb(0x2a1)])==null?this['_dragStart']:_0x2f3d46;return _0x2d5843?{'left':_0x2d5843['left'],'top':_0x2d5843[_0x7d6ebb(0x1ba)],'width':_0x2d5843[_0x7d6ebb(0x28a)],'height':_0x2d5843['height']}:null;}[_0x1bfc49(0x203)](){const _0xbd8b0c=_0x1bfc49;var _0x2b663c,_0xb6ec91,_0x1b18d5;let _0x4d98a8=(_0x2b663c=this['_pointerDragStart'])==null?this[_0xbd8b0c(0x380)]:_0x2b663c,_0xc13de4=_0x4d98a8==null||(_0xb6ec91=_0x4d98a8[_0xbd8b0c(0x254)][_0x4d98a8[_0xbd8b0c(0x141)]])==null?void 0x0:_0xb6ec91[_0xbd8b0c(0x30c)],_0x18b7bc=_0xc13de4==null||(_0x1b18d5=_0xc13de4[_0xbd8b0c(0x376)])==null?void 0x0:_0x1b18d5[_0xbd8b0c(0x1ea)];if(_0x18b7bc)return{'text':typeof _0x18b7bc[_0xbd8b0c(0x1ed)]==_0xbd8b0c(0x3fa)?_0x18b7bc[_0xbd8b0c(0x1ed)]:void 0x0,'fontSize':Number[_0xbd8b0c(0x20e)](_0x18b7bc[_0xbd8b0c(0x312)])?_0x18b7bc[_0xbd8b0c(0x312)]:void 0x0,'color':typeof _0x18b7bc[_0xbd8b0c(0x23d)]==_0xbd8b0c(0x3fa)?_0x18b7bc[_0xbd8b0c(0x23d)]:void 0x0,'horizontalAlign':Number[_0xbd8b0c(0x20e)](_0x18b7bc[_0xbd8b0c(0x2b7)])?_0x18b7bc[_0xbd8b0c(0x2b7)]:void 0x0};}[_0x1bfc49(0x343)](){const _0x3ad49b=_0x1bfc49;var _0x491e4b,_0x2dc9cf,_0x14a69b;if(!this[_0x3ad49b(0x17c)])return;let _0x5540ef=this['_renderContext'][_0x3ad49b(0x247)];(_0x491e4b=_0x5540ef[_0x3ad49b(0x197)])==null||_0x491e4b['call'](_0x5540ef,[this['_dragPreviewObject']]),this[_0x3ad49b(0x17c)]=null,(_0x2dc9cf=(_0x14a69b=this['_renderContext']['scene'])[_0x3ad49b(0x32a)])==null||_0x2dc9cf[_0x3ad49b(0x3c7)](_0x14a69b,!0x0);}['_executeAndLayout'](_0x297a5a,_0x198267,_0x90af3e,_0x5cbd26){const _0x225a66=_0x1bfc49;let _0x5c0627=[...new Set(_0x90af3e[_0x225a66(0x27c)](_0x1b5ba3=>!!_0x1b5ba3))],_0x17aea0=this['_commandService'][_0x225a66(0x3ae)](_0x297a5a,_0x198267);Promise[_0x225a66(0x1e1)](_0x17aea0)[_0x225a66(0x231)](_0x16a3b8=>{const _0x3325f5=_0x225a66;var _0x492db1,_0x5b7ee5,_0x31b57e,_0x4442c3;if(_0x16a3b8){if(_0x5c0627['forEach'](_0x32c7c6=>{const _0x3aac69=_0x3cc1;this[_0x3aac69(0x3ca)][_0x3aac69(0x3ae)](_0x51487d['id'],{'unitId':_0x198267[_0x3aac69(0x308)],'subUnitId':_0x198267['subUnitId'],'scopeId':_0x32c7c6});}),_0x5cbd26&&typeof _0x198267[_0x3325f5(0x308)]==_0x3325f5(0x3fa)&&typeof _0x198267[_0x3325f5(0x25a)]==_0x3325f5(0x3fa)){var _0x6fc42f,_0x4c0440;(_0x6fc42f=(_0x4c0440=this['_elementStateService'])[_0x3325f5(0x251)])==null||_0x6fc42f[_0x3325f5(0x3c7)](_0x4c0440,{'unitId':_0x198267[_0x3325f5(0x308)],'subUnitId':_0x198267[_0x3325f5(0x25a)]},[_0x5cbd26],_0x5cbd26);}(_0x492db1=(_0x5b7ee5=this['_renderContext'][_0x3325f5(0x247)])[_0x3325f5(0x32a)])==null||_0x492db1[_0x3325f5(0x3c7)](_0x5b7ee5,!0x0),(_0x31b57e=(_0x4442c3=this[_0x3325f5(0x2d9)][_0x3325f5(0x247)])[_0x3325f5(0x369)])==null||_0x31b57e[_0x3325f5(0x3c7)](_0x4442c3);}});}};tn=J([q(0x1,_0xbc3476(_0x295e11)),q(0x2,_0xbc3476(_0x4f61df)),q(0x3,_0x38f57d),q(0x4,_0x1ce780),q(0x5,_0x49e7f1)],tn);const nn='board.mind-map.description-dialog',rn=_0x1bfc49(0x131);function an(_0x4abc4f){const _0x45afc7=_0x1bfc49;let {unitId:_0x1c45d5,subUnitId:_0x34a94b,nodeId:_0x434059,initialDescription:_0x257f69=''}=_0x4abc4f,_0x4d4a70=_0x3c0c33(_0x38f57d),_0x11bf37=_0x3c0c33(_0x59da0c),_0xe0de85=_0x3c0c33(_0x2f4056),[_0x170d4f,_0x384016]=_0xe1173c(_0x257f69),_0x5417e1=()=>_0x11bf37[_0x45afc7(0x315)](rn);return _0x528cbf(_0x45afc7(0x2f6),{'className':_0x45afc7(0x359),'data-board-mind-map-description-dialog':'true','children':[_0x528cbf(_0x45afc7(0x172),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-2','children':[_0x27e6bc(_0x45afc7(0x2f8),{'className':_0x45afc7(0x39f),'children':_0xe0de85['t'](_0x45afc7(0x392))}),_0x27e6bc(_0x42aebb,{'autoFocus':!0x0,'className':'univer-h-32\x20univer-resize-none\x20univer-text-sm','placeholder':_0xe0de85['t'](_0x45afc7(0x140)),'value':_0x170d4f,'onValueChange':_0x384016})]}),_0x528cbf(_0x45afc7(0x2f6),{'className':_0x45afc7(0x36a),'children':[_0x27e6bc(_0x31b62f,{'size':_0x45afc7(0x24e),'variant':_0x45afc7(0x2c0),'onClick':_0x5417e1,'children':_0xe0de85['t']('boards-mind-ui.cancel')}),_0x27e6bc(_0x31b62f,{'size':_0x45afc7(0x24e),'variant':_0x45afc7(0x13b),'onClick':()=>{const _0x1fd07b=_0x45afc7;_0x4d4a70[_0x1fd07b(0x3ae)](_0x21f908['id'],{'unitId':_0x1c45d5,'subUnitId':_0x34a94b,'nodeId':_0x434059,'foreignAttributes':{'_note':_0x170d4f[_0x1fd07b(0x1bf)]()?_0x170d4f:null}}),_0x5417e1();},'children':_0xe0de85['t'](_0x45afc7(0x330))})]})]});}const on='board.operation.mind-map.keyboard-shortcut',sn={'copy':_0x357a00[_0x1bfc49(0x23f)],'paste':_0x357a00[_0x1bfc49(0x255)],'paste-as-new':_0x357a00['paste'],'add-child':_0x357a00[_0x1bfc49(0x1d9)],'add-sibling-or-child':_0x357a00[_0x1bfc49(0x13d)],'promote':_0x357a00[_0x1bfc49(0x1b4)],'toggle-collapse':_0x357a00['foldChildNodes'],'collapse-all':_0x357a00['collapseAllNodes'],'edit-text':_0x357a00[_0x1bfc49(0x19d)],'open-description':_0x357a00[_0x1bfc49(0x27d)],'delete':_0x1c11b8[_0x1bfc49(0x217)],'arrow-left':_0x1c11b8[_0x1bfc49(0x2ea)],'arrow-right':_0x1c11b8[_0x1bfc49(0x24c)],'arrow-up':_0x1c11b8[_0x1bfc49(0x1ee)],'arrow-down':_0x1c11b8['ARROW_DOWN']},cn={'delete':[_0x1c11b8[_0x1bfc49(0x16e)]]};function ln(_0x41b2a0){var _0x3c4d08;return[sn[_0x41b2a0],...(_0x3c4d08=cn[_0x41b2a0])==null?[]:_0x3c4d08];}let un=class extends _0x5b09aa{constructor(_0x286a00,_0x334264,_0x3fe56b,_0xd8d703,_0x4446d2,_0x5c5a56,_0x43fa56,_0x12a499){const _0x52960e=_0x1bfc49;super(),this[_0x52960e(0x13a)]=_0x286a00,this[_0x52960e(0x29f)]=_0x334264,this[_0x52960e(0x3f2)]=_0x3fe56b,this[_0x52960e(0x249)]=_0xd8d703,this[_0x52960e(0x3ca)]=_0x4446d2,this[_0x52960e(0x35a)]=_0x5c5a56,this[_0x52960e(0x36b)]=_0x43fa56,this[_0x52960e(0x1cd)]=_0x12a499,this['_init']();}[_0x1bfc49(0x1f8)](){const _0x4eaf03=_0x1bfc49;this[_0x4eaf03(0x3ac)](this[_0x4eaf03(0x3ca)][_0x4eaf03(0x1d4)](this['_createKeyboardShortcutOperation']())),this['_createShortcutItems']()['forEach'](_0x37a932=>{const _0x54bf95=_0x4eaf03;this[_0x54bf95(0x3ac)](this[_0x54bf95(0x35a)][_0x54bf95(0x289)](_0x37a932));});}[_0x1bfc49(0x184)](){const _0x336667=_0x1bfc49;return{'id':on,'type':_0xf7f817[_0x336667(0x30f)],'handler':(_0x26b82e,_0xea46e5)=>this[_0x336667(0x2c2)](_0xea46e5==null?void 0x0:_0xea46e5[_0x336667(0x1e2)])};}[_0x1bfc49(0x14b)](){const _0x4b4b3d=_0x1bfc49;let _0x4452ae=(_0x306fc3,_0xf8e9b6)=>({'id':on,'binding':_0x306fc3,'priority':0xa0,'preconditions':()=>!!this['_getSelectedMindMapContext'](),'staticParameters':{'action':_0xf8e9b6}}),_0x525b64=_0x15f54b=>ln(_0x15f54b)[_0x4b4b3d(0x288)](_0x170c77=>_0x4452ae(_0x170c77,_0x15f54b));return[..._0x525b64(_0x4b4b3d(0x23f)),{'id':on,'binding':sn[_0x4b4b3d(0x255)],'priority':0xa0,'preconditions':()=>!!this['_mindMapClipboardService'][_0x4b4b3d(0x28e)]()&&!!this['_getSelectedMindMapContext'](),'staticParameters':{'action':_0x4b4b3d(0x255)}},{'id':on,'binding':sn['paste-as-new'],'priority':0x96,'preconditions':()=>!!this[_0x4b4b3d(0x249)][_0x4b4b3d(0x28e)]()&&!!this['_getBlankBoardContext'](),'staticParameters':{'action':_0x4b4b3d(0x337)}},..._0x525b64('add-child'),..._0x525b64('add-sibling-or-child'),..._0x525b64(_0x4b4b3d(0x2eb)),..._0x525b64(_0x4b4b3d(0x22a)),..._0x525b64(_0x4b4b3d(0x1d0)),..._0x525b64(_0x4b4b3d(0x321)),..._0x525b64('open-description'),..._0x525b64('delete'),..._0x525b64(_0x4b4b3d(0x391)),..._0x525b64(_0x4b4b3d(0x381)),..._0x525b64(_0x4b4b3d(0x34b)),..._0x525b64(_0x4b4b3d(0x3d6))];}[_0x1bfc49(0x2c2)](_0x11feb3){const _0x589a0f=_0x1bfc49;return _0x11feb3===_0x589a0f(0x23f)?this[_0x589a0f(0x22d)]():_0x11feb3==='paste'?this[_0x589a0f(0x1a9)]():_0x11feb3===_0x589a0f(0x337)?this[_0x589a0f(0x264)]():_0x11feb3==='add-child'?this['_addChild']():_0x11feb3===_0x589a0f(0x158)?this['_addSiblingOrChild']():_0x11feb3===_0x589a0f(0x2eb)?this[_0x589a0f(0x2c7)](_0x11db8a['id']):_0x11feb3===_0x589a0f(0x22a)?this[_0x589a0f(0x2c7)](_0x451daf['id']):_0x11feb3===_0x589a0f(0x1d0)?this[_0x589a0f(0x225)]():_0x11feb3===_0x589a0f(0x321)?this[_0x589a0f(0x1e0)]():_0x11feb3==='open-description'?this[_0x589a0f(0x2dc)]():_0x11feb3==='delete'?this[_0x589a0f(0x2c7)](_0x4d46e4['id']):_0x11feb3&&dn(_0x11feb3)?this[_0x589a0f(0x248)](_0x11feb3):!0x1;}['_copySelectedNode'](){const _0x119281=_0x1bfc49;let _0x38fbcc=this[_0x119281(0x1eb)]();return _0x38fbcc?(this['_commandService'][_0x119281(0x3ae)](_0x31a993['id'],{'unitId':_0x38fbcc[_0x119281(0x308)],'subUnitId':_0x38fbcc[_0x119281(0x25a)],'nodeId':_0x38fbcc[_0x119281(0x141)]}),!0x0):!0x1;}[_0x1bfc49(0x1a9)](){const _0x1d802a=_0x1bfc49;let _0x1a76e8=this[_0x1d802a(0x1eb)]();return!_0x1a76e8||!this['_mindMapClipboardService'][_0x1d802a(0x28e)]()?!0x1:(this[_0x1d802a(0x316)](_0x4c0be7['id'],{'unitId':_0x1a76e8[_0x1d802a(0x308)],'subUnitId':_0x1a76e8[_0x1d802a(0x25a)],'targetNodeId':_0x1a76e8[_0x1d802a(0x141)]},_0x1a76e8['scopeId']),!0x0);}[_0x1bfc49(0x264)](){const _0x280bf3=_0x1bfc49;let _0x12a250=this[_0x280bf3(0x24d)]();if(!_0x12a250||!this['_mindMapClipboardService'][_0x280bf3(0x28e)]())return!0x1;let _0x56fd90=this[_0x280bf3(0x3f2)]['getState'](),_0x37aedc=Number[_0x280bf3(0x20e)](_0x56fd90[_0x280bf3(0x1d7)])&&_0x56fd90[_0x280bf3(0x1d7)]>0x0?_0x56fd90[_0x280bf3(0x1d7)]:0x1,_0x5425ff=Math[_0x280bf3(0x207)]((0x40-_0x56fd90[_0x280bf3(0x1e7)]['x'])/_0x37aedc),_0x5a28fa=Math[_0x280bf3(0x207)]((0x40-_0x56fd90[_0x280bf3(0x1e7)]['y'])/_0x37aedc);return this[_0x280bf3(0x3ca)]['executeCommand'](_0x4cf4e2['id'],{'unitId':_0x12a250[_0x280bf3(0x308)],'subUnitId':_0x12a250[_0x280bf3(0x25a)],'left':_0x5425ff,'top':_0x5a28fa}),!0x0;}[_0x1bfc49(0x192)](){const _0x21cde0=_0x1bfc49;let _0x1515c0=this['_getSelectedMindMapContext']();if(!_0x1515c0)return!0x1;let _0x1ffaa4=_0x523736(0x6);return this[_0x21cde0(0x17f)](_0x5c85db['id'],{'unitId':_0x1515c0[_0x21cde0(0x308)],'subUnitId':_0x1515c0[_0x21cde0(0x25a)],'parentNodeId':_0x1515c0[_0x21cde0(0x141)],'nodeId':_0x1ffaa4,'connectorId':_0x523736(0x6)},_0x1515c0[_0x21cde0(0x372)],_0x1ffaa4),!0x0;}['_addSiblingOrChild'](){const _0x1175c6=_0x1bfc49;let _0x54acee=this[_0x1175c6(0x1eb)]();if(!_0x54acee)return!0x1;let _0x201ca6=_0x523736(0x6);return this[_0x1175c6(0x17f)](_0x54acee['isRoot']?_0x5c85db['id']:_0x38e794['id'],{'unitId':_0x54acee['unitId'],'subUnitId':_0x54acee['subUnitId'],..._0x54acee[_0x1175c6(0x3d0)]?{'parentNodeId':_0x54acee[_0x1175c6(0x141)],'nodeId':_0x201ca6}:{'nodeId':_0x54acee[_0x1175c6(0x141)],'siblingNodeId':_0x201ca6},'connectorId':_0x523736(0x6)},_0x54acee[_0x1175c6(0x372)],_0x201ca6),!0x0;}[_0x1bfc49(0x2c7)](_0x1c3e26){const _0x4ddb37=_0x1bfc49;let _0x58ee2e=this[_0x4ddb37(0x1eb)]();return _0x58ee2e?(this['_executeAndLayout'](_0x1c3e26,{'unitId':_0x58ee2e['unitId'],'subUnitId':_0x58ee2e[_0x4ddb37(0x25a)],'nodeId':_0x58ee2e['nodeId']},_0x58ee2e['scopeId']),!0x0):!0x1;}[_0x1bfc49(0x225)](){const _0x2235c6=_0x1bfc49;let _0x55be39=this[_0x2235c6(0x1eb)]();if(!_0x55be39)return!0x1;let _0x56e318=this[_0x2235c6(0x13a)]['getElementData'](_0x55be39['unitId'],_0x55be39['subUnitId']),_0xff871f=Object[_0x2235c6(0x2b1)](_0x56e318)[_0x2235c6(0x288)](_0x20a4a5=>{const _0xdfc1bf=_0x2235c6;let _0x5eab90=_0x4b908c(_0x20a4a5[_0xdfc1bf(0x30c)]);return(_0x5eab90==null?void 0x0:_0x5eab90[_0xdfc1bf(0x1c0)])===_0x55be39[_0xdfc1bf(0x372)]&&this['_getMindMapChildren'](_0x56e318,_0x55be39[_0xdfc1bf(0x372)],_0x20a4a5[_0xdfc1bf(0x1a7)])[_0xdfc1bf(0x157)]>0x0?{'nodeId':_0x20a4a5[_0xdfc1bf(0x1a7)],'collapsed':_0x5eab90['collapsed']}:null;})[_0x2235c6(0x27c)](_0x4e573d=>!!_0x4e573d);if(_0xff871f[_0x2235c6(0x157)]===0x0)return!0x1;let _0x1e82a8=_0xff871f[_0x2235c6(0x2cc)](_0x36b39c=>!_0x36b39c[_0x2235c6(0x3df)]),_0xcb90eb=_0xff871f[_0x2235c6(0x288)](_0x3ca558=>this[_0x2235c6(0x3ca)][_0x2235c6(0x3ae)](_0x451daf['id'],{'unitId':_0x55be39[_0x2235c6(0x308)],'subUnitId':_0x55be39[_0x2235c6(0x25a)],'nodeId':_0x3ca558[_0x2235c6(0x141)],'collapsed':_0x1e82a8}));return Promise['all'](_0xcb90eb[_0x2235c6(0x288)](_0x3ca8d2=>Promise['resolve'](_0x3ca8d2)))[_0x2235c6(0x231)](_0x64b941=>{const _0x2559d3=_0x2235c6;_0x64b941[_0x2559d3(0x2cc)](Boolean)&&this[_0x2559d3(0x3ca)]['executeCommand'](_0x51487d['id'],{'unitId':_0x55be39['unitId'],'subUnitId':_0x55be39[_0x2559d3(0x25a)],'scopeId':_0x55be39[_0x2559d3(0x372)]});}),!0x0;}[_0x1bfc49(0x1e0)](){const _0x445952=_0x1bfc49;let _0x322ec9=this['_getSelectedMindMapContext']();return _0x322ec9?(this['_elementStateService'][_0x445952(0x251)]({'unitId':_0x322ec9[_0x445952(0x308)],'subUnitId':_0x322ec9['subUnitId']},[_0x322ec9[_0x445952(0x141)]],_0x322ec9['nodeId']),this[_0x445952(0x36b)][_0x445952(0x16b)](),this[_0x445952(0x36b)][_0x445952(0x2e0)]({'unitId':_0x322ec9[_0x445952(0x308)],'subUnitId':_0x322ec9[_0x445952(0x25a)],'shapeId':_0x322ec9['nodeId'],'shapeKey':_0x3f73c8(_0x322ec9[_0x445952(0x308)],_0x322ec9[_0x445952(0x141)]),'visible':!0x0}),!0x0):!0x1;}[_0x1bfc49(0x2dc)](){const _0x3faf8c=_0x1bfc49;let _0x5abc49=this[_0x3faf8c(0x1eb)]();return _0x5abc49?(this[_0x3faf8c(0x1cd)][_0x3faf8c(0x278)]({'id':rn,'title':{'title':_0x3faf8c(0x392)},'width':0x1a4,'draggable':!0x0,'mask':!0x1,'maskClosable':!0x0,'children':{'label':nn,'unitId':_0x5abc49[_0x3faf8c(0x308)],'subUnitId':_0x5abc49[_0x3faf8c(0x25a)],'nodeId':_0x5abc49[_0x3faf8c(0x141)],'initialDescription':_0x5abc49[_0x3faf8c(0x2bb)]}}),!0x0):!0x1;}[_0x1bfc49(0x248)](_0x337ece){const _0x25a7fa=_0x1bfc49;let _0xde8e79=this[_0x25a7fa(0x1eb)]();if(!_0xde8e79)return!0x1;let _0x1a78b5=this[_0x25a7fa(0x13a)][_0x25a7fa(0x25f)](_0xde8e79[_0x25a7fa(0x308)],_0xde8e79[_0x25a7fa(0x25a)]),_0x2a73e1=_0x1a78b5[_0xde8e79['nodeId']],_0x62de6b=_0x4b908c(_0x2a73e1==null?void 0x0:_0x2a73e1[_0x25a7fa(0x30c)]);if(!_0x2a73e1||!_0x62de6b)return!0x1;let _0x4aa480={'arrow-left':_0x25a7fa(0x3e5),'arrow-right':_0x25a7fa(0x2fd),'arrow-up':_0x25a7fa(0x252),'arrow-down':_0x25a7fa(0x27f)}[_0x337ece];if(!_0x4aa480)return!0x1;let _0xa65985=this[_0x25a7fa(0x246)](_0x1a78b5,_0xde8e79[_0x25a7fa(0x141)],_0x62de6b,_0x4aa480);return _0xa65985?(this[_0x25a7fa(0x29f)][_0x25a7fa(0x251)]({'unitId':_0xde8e79[_0x25a7fa(0x308)],'subUnitId':_0xde8e79[_0x25a7fa(0x25a)]},[_0xa65985],_0xa65985),!0x0):!0x1;}[_0x1bfc49(0x246)](_0x464151,_0x59f7d8,_0x2ab99d,_0x185af4){const _0x53ee54=_0x1bfc49;var _0x5be2f2;let _0x225db6=this[_0x53ee54(0x2ae)](_0x464151,_0x2ab99d[_0x53ee54(0x1c0)],_0x59f7d8);if(_0x2ab99d[_0x53ee54(0x19f)]===null){if(_0x185af4==='ArrowLeft'){var _0x37e3e9,_0x557b25;return(_0x37e3e9=(_0x557b25=_0x225db6['find'](_0x495b05=>{const _0x1569e6=_0x53ee54;var _0x2b7245;return((_0x2b7245=_0x4b908c(_0x495b05[_0x1569e6(0x30c)]))==null?void 0x0:_0x2b7245[_0x1569e6(0x1b9)])===_0x1569e6(0x33e);}))==null?void 0x0:_0x557b25[_0x53ee54(0x1a7)])==null?null:_0x37e3e9;}if(_0x185af4===_0x53ee54(0x2fd)){var _0x498653,_0xfe7bdf;return(_0x498653=(_0xfe7bdf=_0x225db6['find'](_0x54c49a=>{const _0x4d7249=_0x53ee54;var _0x50c3ef,_0x134cb4;return((_0x50c3ef=(_0x134cb4=_0x4b908c(_0x54c49a[_0x4d7249(0x30c)]))==null?void 0x0:_0x134cb4[_0x4d7249(0x1b9)])==null?_0x4d7249(0x13e):_0x50c3ef)==='right';}))==null?void 0x0:_0xfe7bdf['elementId'])==null?null:_0x498653;}return null;}let _0x29aa8b=(_0x5be2f2=_0x2ab99d[_0x53ee54(0x1b9)])==null?_0x53ee54(0x13e):_0x5be2f2,_0xef1312=_0x29aa8b===_0x53ee54(0x13e)?_0x53ee54(0x3e5):_0x53ee54(0x2fd),_0x4a139f=_0x29aa8b==='right'?_0x53ee54(0x2fd):_0x53ee54(0x3e5);if(_0x185af4===_0xef1312)return _0x2ab99d[_0x53ee54(0x19f)];if(_0x185af4===_0x4a139f){var _0x4d4494,_0x40588f;return(_0x4d4494=(_0x40588f=_0x225db6[0x0])==null?void 0x0:_0x40588f[_0x53ee54(0x1a7)])==null?null:_0x4d4494;}if(_0x185af4===_0x53ee54(0x252)||_0x185af4===_0x53ee54(0x27f)){var _0x4ca7f0;let _0xb9d867=this[_0x53ee54(0x2ae)](_0x464151,_0x2ab99d[_0x53ee54(0x1c0)],_0x2ab99d['parentNodeId']),_0x2f40fa=_0xb9d867[_0x53ee54(0x1fc)](_0x39fff8=>_0x39fff8['elementId']===_0x59f7d8),_0x3b32d1=_0x185af4===_0x53ee54(0x252)?_0xb9d867[_0x2f40fa-0x1]:_0xb9d867[_0x2f40fa+0x1];return(_0x4ca7f0=_0x3b32d1==null?void 0x0:_0x3b32d1['elementId'])==null?null:_0x4ca7f0;}return null;}[_0x1bfc49(0x2ae)](_0x526cc3,_0x237503,_0x4c7c62){const _0xc4d00b=_0x1bfc49;return Object[_0xc4d00b(0x2b1)](_0x526cc3)[_0xc4d00b(0x27c)](_0x261d02=>{const _0x2f7f97=_0xc4d00b;let _0x4b3f3b=_0x4b908c(_0x261d02[_0x2f7f97(0x30c)]);return(_0x4b3f3b==null?void 0x0:_0x4b3f3b['structureScopeId'])===_0x237503&&_0x4b3f3b[_0x2f7f97(0x19f)]===_0x4c7c62&&_0x261d02[_0x2f7f97(0x30c)][_0x2f7f97(0x3d7)]!==!0x1;})[_0xc4d00b(0x1f3)]((_0x58b285,_0x57d391)=>{const _0x49baf9=_0xc4d00b;let _0x2a4a43=_0x4b908c(_0x58b285[_0x49baf9(0x30c)]),_0x595cf5=_0x4b908c(_0x57d391['element']);return _0x1f7763(_0x2a4a43==null?void 0x0:_0x2a4a43[_0x49baf9(0x2f9)],_0x595cf5==null?void 0x0:_0x595cf5[_0x49baf9(0x2f9)])||_0x58b285[_0x49baf9(0x1a7)][_0x49baf9(0x170)](_0x57d391[_0x49baf9(0x1a7)]);});}[_0x1bfc49(0x1eb)](){const _0x3fdbc9=_0x1bfc49;var _0x691f53,_0x32b8f6,_0xc1eb24;let _0x50a054=this['_elementStateService'][_0x3fdbc9(0x37c)](),_0x48fe2e=(_0x691f53=_0x50a054[_0x3fdbc9(0x2fe)])==null?_0x50a054[_0x3fdbc9(0x235)][0x0]:_0x691f53;if(!_0x50a054[_0x3fdbc9(0x3b1)]||!_0x48fe2e||_0x50a054[_0x3fdbc9(0x235)][_0x3fdbc9(0x157)]!==0x1||_0x50a054[_0x3fdbc9(0x143)]||_0x50a054[_0x3fdbc9(0x2a4)])return null;let _0x22eb6f=this['_boardElementService'][_0x3fdbc9(0x25f)](_0x50a054[_0x3fdbc9(0x3b1)][_0x3fdbc9(0x308)],_0x50a054['context'][_0x3fdbc9(0x25a)])[_0x48fe2e],_0x4e50f8=_0x4b908c(_0x22eb6f==null?void 0x0:_0x22eb6f[_0x3fdbc9(0x30c)]);return!_0x22eb6f||!_0x4e50f8?null:{'unitId':_0x50a054[_0x3fdbc9(0x3b1)][_0x3fdbc9(0x308)],'subUnitId':_0x50a054['context'][_0x3fdbc9(0x25a)],'nodeId':_0x48fe2e,'scopeId':_0x4e50f8['structureScopeId'],'isRoot':_0x4e50f8[_0x3fdbc9(0x19f)]===null,'description':(_0x32b8f6=(_0xc1eb24=_0x4e50f8[_0x3fdbc9(0x151)])==null?void 0x0:_0xc1eb24['_note'])==null?'':_0x32b8f6};}[_0x1bfc49(0x24d)](){const _0x415ca1=_0x1bfc49;let _0x56f25b=this[_0x415ca1(0x29f)]['getSnapshot']();return!_0x56f25b[_0x415ca1(0x3b1)]||_0x56f25b[_0x415ca1(0x143)]||_0x56f25b[_0x415ca1(0x2a4)]||_0x56f25b['selectedIds'][_0x415ca1(0x157)]>0x0||_0x56f25b[_0x415ca1(0x2fe)]?null:{'unitId':_0x56f25b['context'][_0x415ca1(0x308)],'subUnitId':_0x56f25b[_0x415ca1(0x3b1)][_0x415ca1(0x25a)]};}[_0x1bfc49(0x316)](_0x50f215,_0xa11815,_0x50cfcc){const _0x1d40d4=_0x1bfc49;let _0x7c89d3=this[_0x1d40d4(0x3ca)][_0x1d40d4(0x3ae)](_0x50f215,_0xa11815);Promise[_0x1d40d4(0x1e1)](_0x7c89d3)['then'](_0x49d02f=>{const _0x41ffc2=_0x1d40d4;_0x49d02f&&this[_0x41ffc2(0x3ca)][_0x41ffc2(0x3ae)](_0x51487d['id'],{'unitId':_0xa11815[_0x41ffc2(0x308)],'subUnitId':_0xa11815['subUnitId'],'scopeId':_0x50cfcc});});}[_0x1bfc49(0x17f)](_0x51fb23,_0x483a4f,_0xec9114,_0x3b0276){const _0xf3d62d=_0x1bfc49;let _0xc53f68={'unitId':_0x483a4f[_0xf3d62d(0x308)],'subUnitId':_0x483a4f[_0xf3d62d(0x25a)]},_0x4d7ad6=this['_commandService'][_0xf3d62d(0x3ae)](_0x51fb23,_0x483a4f);Promise[_0xf3d62d(0x1e1)](_0x4d7ad6)[_0xf3d62d(0x231)](_0x337713=>{const _0x275bab=_0xf3d62d;_0x337713&&(this[_0x275bab(0x3ca)][_0x275bab(0x3ae)](_0x51487d['id'],{..._0xc53f68,'scopeId':_0xec9114}),this[_0x275bab(0x29f)]['selectElements'](_0xc53f68,[_0x3b0276],_0x3b0276),this[_0x275bab(0x36b)][_0x275bab(0x16b)](),this[_0x275bab(0x36b)][_0x275bab(0x2e0)]({..._0xc53f68,'shapeId':_0x3b0276,'shapeKey':_0x3f73c8(_0xc53f68[_0x275bab(0x308)],_0x3b0276),'visible':!0x0}));});}};un=J([q(0x0,_0xbc3476(_0x295e11)),q(0x1,_0xbc3476(_0x4f61df)),q(0x2,_0xbc3476(_0x1ce780)),q(0x3,_0xbc3476(_0x5a568b)),q(0x4,_0x38f57d),q(0x5,_0x419aaa),q(0x6,_0xbc3476(_0x1cecde)),q(0x7,_0x59da0c)],un);function dn(_0x56747f){const _0x11c5f6=_0x1bfc49;return _0x56747f===_0x11c5f6(0x391)||_0x56747f===_0x11c5f6(0x381)||_0x56747f===_0x11c5f6(0x34b)||_0x56747f===_0x11c5f6(0x3d6);}const fn=_0x1bfc49(0x168),pn={'min':0x1,'max':0x5,'defaultValue':0x3},mn={'min':0x0,'max':0x64,'defaultValue':0x64},hn={'fill':_0x1bfc49(0x2d0),'fontColor':_0x1bfc49(0x160),'line':_0x1bfc49(0x3d1),'stroke':'boards-mind-ui.toolbar.action.stroke','typography':_0x1bfc49(0x1e3)},gn=[{'kind':_0x1bfc49(0x16f),'titleKey':_0x1bfc49(0x32b),'panel':_0x1bfc49(0x1bd)},{'kind':_0x1bfc49(0x29d),'titleKey':_0x1bfc49(0x19a)},{'kind':_0x1bfc49(0x1be),'titleKey':_0x1bfc49(0x234)},{'kind':_0x1bfc49(0x16f),'titleKey':_0x1bfc49(0x161),'panel':_0x1bfc49(0x1a4),'dividerBefore':!0x0}],_n={'addSibling':_0x1bfc49(0x158),'addChild':_0x1bfc49(0x165),'copy':_0x1bfc49(0x23f),'paste':_0x1bfc49(0x255),'delete':'delete'},vn=[{'key':'mind-map','title':_0x1bfc49(0x332),'items':[{'value':_0x1bfc49(0x1a5),'icon':_0x1bfc49(0x1a5)},{'value':_0x1bfc49(0x318),'icon':_0x1bfc49(0x318)}]},{'key':'tree-diagram','title':_0x1bfc49(0x180),'items':[{'value':_0x1bfc49(0x30e),'icon':'tree-right'},{'value':_0x1bfc49(0x29e),'icon':_0x1bfc49(0x29e)},{'value':_0x1bfc49(0x14e),'icon':_0x1bfc49(0x14e)}]},{'key':_0x1bfc49(0x295),'title':_0x1bfc49(0x3be),'items':[{'value':_0x1bfc49(0x3e4),'icon':_0x1bfc49(0x3e4)},{'value':_0x1bfc49(0x25e),'icon':'timeline-vertical'}]}],yn={'key':'branch','title':_0x1bfc49(0x20b),'items':[{'value':_0x1bfc49(0x1b3),'icon':_0x1bfc49(0x12b)},{'value':_0x1bfc49(0x299),'icon':_0x1bfc49(0x366)},{'value':'orthogonal','icon':'branch-orthogonal'}]};function bn(_0x5dc277,_0x4c3547){const _0x255ef9=_0x1bfc49;_0x5dc277[_0x255ef9(0x3ae)](on,{'action':_0x4c3547});}const xn={'line':_0x4ccb89,'more':_0x49021c};function Sn(_0x519075){const _0x30d978=_0x1bfc49;_0x519075['stopPropagation'](),_0x519075[_0x30d978(0x351)]();}function Cn(_0x5865b9,_0x9a6a43=_0x1bfc49(0x37a),_0x10f529){return _0x27e6bc(_0x1f8b97,{'children':_0x27e6bc(_0x5865b9,{'className':_0x9a6a43,'extend':_0x10f529})});}function wn(_0x145ce2){const _0x1370e5=_0x1bfc49;var _0x2693f0,_0x555deb,_0x1f7570,_0x279bb6,_0x305aa4,_0x1b6bde,_0x4be58b,_0x5b125c;let _0x13b42c=(_0x2693f0=_0x145ce2==null?void 0x0:_0x145ce2[_0x1370e5(0x1ea)])==null?{}:_0x2693f0,_0x1229c3=_0x13b42c[_0x1370e5(0x327)]&&typeof _0x13b42c['dataModel']==_0x1370e5(0x2e2)?_0x13b42c[_0x1370e5(0x327)]:{},_0x3312cf=(_0x555deb=_0x1229c3['doc'])==null||(_0x555deb=_0x555deb[_0x1370e5(0x395)])==null?void 0x0:_0x555deb[_0x1370e5(0x383)];return{'color':typeof _0x13b42c['color']==_0x1370e5(0x3fa)?_0x13b42c[_0x1370e5(0x23d)]:(_0x1f7570=_0x3312cf==null||(_0x279bb6=_0x3312cf['cl'])==null?void 0x0:_0x279bb6[_0x1370e5(0x200)])==null?_0x624c0a:_0x1f7570,'fontSize':typeof _0x13b42c[_0x1370e5(0x312)]==_0x1370e5(0x3a6)?_0x13b42c[_0x1370e5(0x312)]:typeof(_0x3312cf==null?void 0x0:_0x3312cf['fs'])==_0x1370e5(0x3a6)?_0x3312cf['fs']:_0x574b80['fs'],'horizontalAlign':(_0x305aa4=(_0x1b6bde=_0x13b42c[_0x1370e5(0x2b7)])==null?_0x1229c3['ha']:_0x1b6bde)==null?_0x353905[_0x1370e5(0x36f)]:_0x305aa4,'textFill':_0x13b42c[_0x1370e5(0x129)]&&typeof _0x13b42c[_0x1370e5(0x129)]=='object'?_0x13b42c[_0x1370e5(0x129)]:_0x3312cf==null?void 0x0:_0x3312cf['textFill'],'verticalAlign':(_0x4be58b=(_0x5b125c=_0x13b42c[_0x1370e5(0x319)])==null?_0x1229c3['va']:_0x5b125c)==null?_0x5d386b[_0x1370e5(0x3c1)]:_0x4be58b};}function Tn(_0x1b45d7,_0x225a04){const _0x5b2f7a=_0x1bfc49;if(!_0x225a04)return;let _0x4ed975=ln(_0x225a04);if(!_0x4ed975[_0x5b2f7a(0x157)])return;let _0x427693=_0x4ed975[_0x5b2f7a(0x288)](_0x18585d=>{const _0x5363b1=_0x5b2f7a;var _0x484b57;return(_0x484b57=_0x1b45d7[_0x5363b1(0x361)]({'id':_0x5363b1(0x16a),'binding':_0x18585d,'staticParameters':{'action':_0x225a04}}))==null?void 0x0:_0x484b57;})[_0x5b2f7a(0x27c)](_0xaafe13=>!!_0xaafe13);return _0x427693[_0x5b2f7a(0x157)]?[...new Set(_0x427693)]['join']('/'):void 0x0;}async function En(_0x52a31c,_0x16c1a3){const _0x20708b=_0x1bfc49;return await Promise[_0x20708b(0x1e1)](_0x52a31c[_0x20708b(0x3ae)](_0x2a6047['id'],_0x16c1a3))?(await Promise[_0x20708b(0x1e1)](_0x52a31c[_0x20708b(0x3ae)](_0x51487d['id'],{'unitId':_0x16c1a3['unitId'],'subUnitId':_0x16c1a3['subUnitId'],'scopeId':_0x16c1a3[_0x20708b(0x372)]})),!0x0):!0x1;}async function Dn(_0x470295,_0x13d528){const _0x38d25e=_0x1bfc49;return await Promise[_0x38d25e(0x1e1)](_0x470295[_0x38d25e(0x3ae)](_0x38032b['id'],_0x13d528))?(await Promise[_0x38d25e(0x1e1)](_0x470295[_0x38d25e(0x3ae)](_0x51487d['id'],{'unitId':_0x13d528['unitId'],'subUnitId':_0x13d528[_0x38d25e(0x25a)],'scopeId':_0x13d528[_0x38d25e(0x372)]})),!0x0):!0x1;}function On({className:_0x2f1c01=_0x1bfc49(0x37a)}){const _0x132014=_0x1bfc49;return _0x27e6bc(_0x1f8b97,{'children':_0x528cbf(_0x132014(0x3c5),{'className':_0x2f1c01,'viewBox':_0x132014(0x147),'fill':_0x132014(0x329),'aria-hidden':_0x132014(0x2d7),'children':[_0x27e6bc(_0x132014(0x18a),{'d':_0x132014(0x2b6),'stroke':_0x132014(0x14c),'strokeWidth':_0x132014(0x150),'strokeLinecap':_0x132014(0x207)}),_0x27e6bc(_0x132014(0x18a),{'d':_0x132014(0x25c),'stroke':_0x132014(0x14c),'strokeWidth':_0x132014(0x150),'strokeLinecap':'round'}),_0x27e6bc('path',{'d':_0x132014(0x148),'stroke':_0x132014(0x14c),'strokeWidth':_0x132014(0x150),'strokeLinecap':'round'})]})});}function kn({icon:_0x32b63b}){const _0x5df55c=_0x1bfc49;let _0x1b622b=_0x5df55c(0x323),_0x41e299={'stroke':_0x5df55c(0x14c),'strokeWidth':2.6,'strokeLinecap':_0x5df55c(0x207),'strokeLinejoin':_0x5df55c(0x207)},_0x3977c9={'stroke':_0x1b622b,'strokeWidth':3.2,'strokeLinecap':_0x5df55c(0x207)};return _0x528cbf(_0x5df55c(0x3c5),{'className':_0x5df55c(0x358),'viewBox':_0x5df55c(0x177),'fill':_0x5df55c(0x329),'aria-hidden':_0x5df55c(0x2d7),'children':[_0x32b63b===_0x5df55c(0x1a5)&&_0x528cbf(_0x177b6a,{'children':[_0x27e6bc(_0x5df55c(0x18a),{'d':_0x5df55c(0x169),..._0x41e299}),_0x27e6bc(_0x5df55c(0x18a),{'d':_0x5df55c(0x292),..._0x3977c9})]}),_0x32b63b===_0x5df55c(0x318)&&_0x528cbf(_0x177b6a,{'children':[_0x27e6bc(_0x5df55c(0x18a),{'d':_0x5df55c(0x2dd),..._0x41e299}),_0x27e6bc(_0x5df55c(0x18a),{'d':_0x5df55c(0x199),'stroke':_0x1b622b,'strokeWidth':2.6,'strokeLinecap':_0x5df55c(0x207),'strokeDasharray':'6\x207'})]}),_0x32b63b===_0x5df55c(0x30e)&&_0x528cbf(_0x177b6a,{'children':[_0x27e6bc(_0x5df55c(0x18a),{'d':_0x5df55c(0x243),..._0x41e299}),_0x27e6bc('path',{'d':'M47\x2025h13M47\x2035h13M47\x2045h13',..._0x3977c9}),_0x27e6bc('circle',{'cx':'24','cy':'12','r':'3','fill':_0x5df55c(0x14c)})]}),_0x32b63b===_0x5df55c(0x29e)&&_0x528cbf(_0x177b6a,{'children':[_0x27e6bc(_0x5df55c(0x18a),{'d':_0x5df55c(0x2a5),..._0x41e299}),_0x27e6bc('path',{'d':_0x5df55c(0x397),..._0x3977c9}),_0x27e6bc(_0x5df55c(0x3e1),{'cx':'56','cy':'12','r':'3','fill':_0x5df55c(0x14c)})]}),_0x32b63b===_0x5df55c(0x14e)&&_0x528cbf(_0x177b6a,{'children':[_0x27e6bc(_0x5df55c(0x18a),{'d':_0x5df55c(0x1b1),..._0x41e299}),_0x27e6bc('path',{'d':_0x5df55c(0x156),..._0x3977c9}),_0x27e6bc(_0x5df55c(0x3e1),{'cx':'42','cy':'12','r':'3','fill':_0x5df55c(0x14c)})]}),_0x32b63b===_0x5df55c(0x3e4)&&_0x528cbf(_0x177b6a,{'children':[_0x27e6bc(_0x5df55c(0x18a),{'d':_0x5df55c(0x25d),..._0x41e299}),_0x27e6bc(_0x5df55c(0x18a),{'d':_0x5df55c(0x35d),..._0x3977c9}),_0x27e6bc(_0x5df55c(0x3e1),{'cx':'17','cy':'31','r':'3','fill':_0x5df55c(0x14c)})]}),_0x32b63b===_0x5df55c(0x25e)&&_0x528cbf(_0x177b6a,{'children':[_0x27e6bc(_0x5df55c(0x18a),{'d':_0x5df55c(0x19b),..._0x41e299}),_0x27e6bc(_0x5df55c(0x18a),{'d':'M56\x2039h11M13\x2050h11',..._0x3977c9}),_0x27e6bc(_0x5df55c(0x3e1),{'cx':'40','cy':'9','r':'3','fill':_0x5df55c(0x14c)})]}),_0x32b63b===_0x5df55c(0x12b)&&_0x27e6bc(_0x177b6a,{'children':_0x27e6bc(_0x5df55c(0x18a),{'d':_0x5df55c(0x242),..._0x41e299})}),_0x32b63b===_0x5df55c(0x366)&&_0x27e6bc(_0x177b6a,{'children':_0x27e6bc(_0x5df55c(0x18a),{'d':_0x5df55c(0x34a),..._0x41e299})}),_0x32b63b===_0x5df55c(0x3c9)&&_0x27e6bc(_0x177b6a,{'children':_0x27e6bc(_0x5df55c(0x18a),{'d':'M17\x2033h21M38\x2017v30M38\x2017h24',..._0x41e299})})]});}function An(_0x474bdc,_0x3c06b5){const _0x2404d9=_0x1bfc49;let _0x365661=_0x474bdc[_0x2404d9(0x383)],_0x566580=_0x39a0aa(_0x365661),_0x52feea={..._0x566580[_0x2404d9(0x23d)]===void 0x0?null:{'color':_0x566580['color']},..._0x566580['fontFamily']===void 0x0?null:{'fontFamily':_0x566580[_0x2404d9(0x390)]},..._0x566580[_0x2404d9(0x312)]===void 0x0?null:{'fontSize':_0x566580[_0x2404d9(0x312)]},..._0x566580['bold']===void 0x0?null:{'bold':_0x566580[_0x2404d9(0x174)]},..._0x566580[_0x2404d9(0x2cf)]===void 0x0?null:{'italic':_0x566580[_0x2404d9(0x2cf)]},..._0x566580[_0x2404d9(0x1fb)]===void 0x0?null:{'underline':_0x566580[_0x2404d9(0x1fb)]},..._0x566580['strikethrough']===void 0x0?null:{'strikethrough':_0x566580['strikethrough']},..._0x566580[_0x2404d9(0x129)]===void 0x0?null:{'textFill':_0x566580[_0x2404d9(0x129)]}};_0x474bdc[_0x2404d9(0x2b7)]!==void 0x0&&(_0x52feea[_0x2404d9(0x2b7)]=_0x474bdc[_0x2404d9(0x2b7)]),_0x474bdc[_0x2404d9(0x319)]!==void 0x0&&(_0x52feea['verticalAlign']=_0x474bdc[_0x2404d9(0x319)]),Object['keys'](_0x52feea)[_0x2404d9(0x157)]>0x0&&_0x3c06b5({'textStyle':_0x52feea});}function jn(_0x41e2e2,_0x14bf8e,_0xcf60db){const _0x380c26=_0x1bfc49;var _0x2f7bee,_0x5f423a;let _0x192c76=_0x41e2e2==null?{}:_0x41e2e2,_0x170234=_0x5f276f(_0x192c76,_0x14bf8e),_0x454388=(_0x2f7bee=(_0x5f423a=_0x170234['shapeText'])==null?_0x192c76[_0x380c26(0x1ea)]:_0x5f423a)==null?{}:_0x2f7bee;return{..._0x192c76,..._0x170234,'shapeText':{..._0x454388,..._0xcf60db[_0x380c26(0x23d)]===void 0x0?null:{'color':_0xcf60db[_0x380c26(0x23d)]},..._0xcf60db[_0x380c26(0x312)]===void 0x0?null:{'fontSize':_0xcf60db[_0x380c26(0x312)]},..._0xcf60db['bold']===void 0x0?null:{'bold':_0xcf60db[_0x380c26(0x174)]},..._0xcf60db[_0x380c26(0x2cf)]===void 0x0?null:{'italic':_0xcf60db[_0x380c26(0x2cf)]},..._0xcf60db['underline']===void 0x0?null:{'underline':_0xcf60db['underline']},..._0xcf60db[_0x380c26(0x1c5)]===void 0x0?null:{'strikethrough':_0xcf60db[_0x380c26(0x1c5)]},..._0xcf60db[_0x380c26(0x2b7)]===void 0x0?null:{'horizontalAlign':_0xcf60db[_0x380c26(0x2b7)]},..._0xcf60db[_0x380c26(0x319)]===void 0x0?null:{'verticalAlign':_0xcf60db[_0x380c26(0x319)]},..._0xcf60db[_0x380c26(0x129)]===void 0x0?null:{'textFill':_0xcf60db[_0x380c26(0x129)]}}};}function Mn(_0x1d2da6,_0x4c91a8){const _0x48509c=_0x1bfc49;let _0x2fcd82=_0x1d2da6==null?void 0x0:_0x1d2da6[_0x48509c(0x18b)];_0x2fcd82&&_0x4c91a8({'lineType':_0x2fcd82['dashType']===_0xfd6ed7['RoundDot']||_0x2fcd82[_0x48509c(0x2e4)]===_0xfd6ed7[_0x48509c(0x3e8)]?_0x48509c(0x344):_0x2fcd82[_0x48509c(0x2e4)]===_0xfd6ed7[_0x48509c(0x1f4)]?_0x48509c(0x20a):'solid',...typeof _0x2fcd82['width']==_0x48509c(0x3a6)?{'strokeWidth':_0x2fcd82['width']}:null,...typeof _0x2fcd82[_0x48509c(0x23d)]=='string'?{'stroke':_0x2fcd82[_0x48509c(0x23d)]}:null,...typeof _0x2fcd82[_0x48509c(0x2c3)]==_0x48509c(0x3a6)?{'opacity':_0x2fcd82[_0x48509c(0x2c3)]}:null});}function Nn(_0x289651){const _0x117a47=_0x1bfc49;return _0x289651!=null&&_0x289651[_0x117a47(0x157)]?_0x289651[0x0]<=0x2?_0xfd6ed7['RoundDot']:_0xfd6ed7[_0x117a47(0x1f4)]:_0xfd6ed7['Solid'];}function Pn(_0x2401b9){const _0x411e1f=_0x1bfc49;var _0x25e865,_0x204827,_0x5cdc17;return{'stroke':{'lineStrokeType':_0x39d97e[_0x411e1f(0x233)],'dashType':Nn(_0x2401b9==null?void 0x0:_0x2401b9[_0x411e1f(0x20a)]),'color':(_0x25e865=_0x2401b9==null?void 0x0:_0x2401b9[_0x411e1f(0x18b)])==null?_0x49b5d4:_0x25e865,'width':(_0x204827=_0x2401b9==null?void 0x0:_0x2401b9[_0x411e1f(0x194)])==null?pn[_0x411e1f(0x287)]:_0x204827,'opacity':(_0x5cdc17=_0x2401b9==null?void 0x0:_0x2401b9[_0x411e1f(0x2c3)])==null?mn['defaultValue']/0x64:_0x5cdc17}};}function Fn(_0x12e5a2){const _0x5ae3ad=_0x1bfc49;var _0x10951c,_0x39d3d9,_0x34c5f7,_0x1e12c4,_0xf13802,_0x35e0bd;let _0x9e3745=_0x3c0c33(_0x38f57d),_0x4af8bf=_0x3c0c33(_0x419aaa),_0x20a561=_0x3c0c33(_0x2f4056),[_0x2df9e1,_0x4d68dd]=_0xe1173c(null),[_0x4bf578,_0x18562d]=_0xe1173c((_0x10951c=_0x12e5a2[_0x5ae3ad(0x23e)][_0x5ae3ad(0x1fa)])==null?void 0x0:_0x10951c[_0x5ae3ad(0x376)]),_0xb96ff2=_0x12e5a2['popup']['extraProps'];if(!_0xb96ff2)return null;let _0x3b699b={'unitId':_0xb96ff2['unitId'],'subUnitId':_0xb96ff2['subUnitId']},_0x4db9cb=_0x119785=>{const _0x540aa9=_0x5ae3ad;_0x9e3745['executeCommand'](_0x21f908['id'],{..._0x3b699b,'nodeId':_0xb96ff2[_0x540aa9(0x1a7)],..._0x119785});},_0x63260d=(_0x1eb891,_0x46b2f4)=>{const _0x675b0b=_0x5ae3ad;let _0x125f9d=_0x46b2f4==null?{}:_0x46b2f4;_0x18562d(_0x7cbf78=>({..._0x7cbf78==null?{}:_0x7cbf78,..._0x125f9d})),_0x4db9cb({..._0x125f9d['fill']===void 0x0?null:{'fill':_0x125f9d[_0x675b0b(0x1f5)]},..._0x125f9d['stroke']===void 0x0?null:{'stroke':_0x125f9d[_0x675b0b(0x18b)]}});},_0x374269=_0x21300a=>{const _0x496a2e=_0x5ae3ad;_0x9e3745[_0x496a2e(0x3ae)](_0x245059['id'],{..._0x3b699b,'nodeId':_0xb96ff2[_0x496a2e(0x1a7)],'style':_0x21300a});},_0x1baa91=Pn(_0xb96ff2[_0x5ae3ad(0x35f)]),_0x2d21e5=_0x24acb3=>Tn(_0x4af8bf,_0x24acb3),_0x223d76=_0x1e7711=>{bn(_0x9e3745,_0x1e7711);},_0x558655=(_0x39d3d9=_0x4bf578==null?void 0x0:_0x4bf578[_0x5ae3ad(0x1ea)])==null?{}:_0x39d3d9,_0x1875a5=wn(_0x4bf578),_0x4a2c62=_0x193c2b=>{An(_0x193c2b,_0x21501b=>{const _0x2d4d9f=_0x3cc1;_0x18562d(_0x338a1f=>jn(_0x338a1f,_0x193c2b,_0x21501b[_0x2d4d9f(0x383)])),_0x4db9cb(_0x21501b);});},_0x567f49=[{'label':_0x20a561['t'](_0x5ae3ad(0x209)),'value':_0x353905[_0x5ae3ad(0x36f)],'icon':_0x27e6bc(_0x2a33e2,{})},{'label':_0x20a561['t'](_0x5ae3ad(0x256)),'value':_0x353905['CENTER'],'icon':_0x27e6bc(_0x2337d4,{})},{'label':_0x20a561['t'](_0x5ae3ad(0x2aa)),'value':_0x353905[_0x5ae3ad(0x190)],'icon':_0x27e6bc(_0x132e50,{})},{'label':_0x20a561['t']('boards-mind-ui.alignJustify'),'value':_0x353905[_0x5ae3ad(0x1ab)],'icon':_0x27e6bc(_0x441a79,{})}],_0x1c85eb=[{'label':_0x20a561['t']('boards-mind-ui.alignTop'),'value':_0x5d386b[_0x5ae3ad(0x3c6)],'icon':_0x27e6bc(_0x53628a,{})},{'label':_0x20a561['t'](_0x5ae3ad(0x237)),'value':_0x5d386b[_0x5ae3ad(0x3c1)],'icon':_0x27e6bc(_0x11ed3f,{})},{'label':_0x20a561['t'](_0x5ae3ad(0x3f9)),'value':_0x5d386b[_0x5ae3ad(0x2d4)],'icon':_0x27e6bc(_0x343605,{})}],_0x5ae4c0=()=>{_0x223d76('add-sibling-or-child');},_0x12d7ea=()=>{const _0x425411=_0x5ae3ad;_0x223d76(_0x425411(0x165));},_0x160596=()=>{const _0x8a4ac8=_0x5ae3ad;_0x223d76(_0x8a4ac8(0x23f));},_0x4d4b58=()=>{const _0x165bb6=_0x5ae3ad;_0x223d76(_0x165bb6(0x255));},_0x38fbf1=()=>{_0x223d76('delete');},_0x560649=(_0x34c5f7=(_0x1e12c4=_0xb96ff2['layout'])==null?void 0x0:_0x1e12c4[_0x5ae3ad(0x14f)])==null?_0x133f51[_0x5ae3ad(0x14f)]:_0x34c5f7,_0x59c664=_0x5079ad(_0x560649,(_0xf13802=(_0x35e0bd=_0xb96ff2[_0x5ae3ad(0x3eb)])==null?void 0x0:_0x35e0bd['branchLineType'])==null?_0x133f51['branchLineType']:_0xf13802),_0x490bd1=_0x3012ea=>{const _0x76262b=_0x5ae3ad;let _0x549a7a=_0x5079ad(_0x3012ea,_0x59c664);En(_0x9e3745,{..._0x3b699b,'scopeId':_0xb96ff2[_0x76262b(0x372)],'structureKind':_0x3012ea,..._0x549a7a===_0x59c664?null:{'branchLineType':_0x549a7a}}),_0x4d68dd(null);},_0x1f7d26=_0x3afa0b=>{const _0x30bd98=_0x5ae3ad;Dn(_0x9e3745,{..._0x3b699b,'scopeId':_0xb96ff2[_0x30bd98(0x372)],'branchLineType':_0x3afa0b}),_0x4d68dd(null);},_0x22e402=(_0xfed6e6,_0x52de4f,_0x54d6d9,_0x14f759=!0x1)=>_0x27e6bc(_0x5ae3ad(0x2ee),{'type':_0x5ae3ad(0x2ee),'disabled':_0x14f759,'className':_0x43dfcf('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-white',_0x52de4f&&_0x5ae3ad(0x1c2),_0x14f759&&_0x5ae3ad(0x22b)),'onMouseDown':Sn,'onPointerDown':Sn,'onClick':_0x3db326=>{const _0x2af611=_0x5ae3ad;_0x3db326[_0x2af611(0x2e6)](),!_0x14f759&&_0x54d6d9();},'children':_0x27e6bc(kn,{'icon':_0xfed6e6[_0x5ae3ad(0x2ed)]})},_0xfed6e6['value']),_0x441d04=()=>_0x528cbf(_0x5ae3ad(0x2f6),{'className':'univer-w-[202px]\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-white\x20univer-px-4\x20univer-py-4\x20univer-shadow-lg','onMouseDown':_0x23ad21=>_0x23ad21['stopPropagation'](),'onPointerDown':_0x152d05=>_0x152d05[_0x5ae3ad(0x2e6)](),'children':[vn[_0x5ae3ad(0x288)](_0x142fc6=>_0x528cbf('div',{'className':_0x5ae3ad(0x265),'children':[_0x27e6bc('div',{'className':_0x5ae3ad(0x2b0),'children':_0x142fc6[_0x5ae3ad(0x16c)]}),_0x27e6bc(_0x5ae3ad(0x2f6),{'className':_0x5ae3ad(0x2db),'style':{'gridTemplateColumns':'repeat('+_0x142fc6['items'][_0x5ae3ad(0x157)]+_0x5ae3ad(0x1f1)},'children':_0x142fc6[_0x5ae3ad(0x3a5)]['map'](_0x687666=>_0x22e402(_0x687666,_0x687666[_0x5ae3ad(0x31d)]===_0x560649,()=>_0x490bd1(_0x687666[_0x5ae3ad(0x31d)])))})]},_0x142fc6[_0x5ae3ad(0x211)])),_0x27e6bc(_0x39b257,{}),_0x528cbf('div',{'className':'univer-mb-0','children':[_0x27e6bc(_0x5ae3ad(0x2f6),{'className':_0x5ae3ad(0x2b0),'children':yn[_0x5ae3ad(0x16c)]}),_0x27e6bc(_0x5ae3ad(0x2f6),{'className':_0x5ae3ad(0x2db),'style':{'gridTemplateColumns':_0x5ae3ad(0x39a)+yn[_0x5ae3ad(0x3a5)][_0x5ae3ad(0x157)]+_0x5ae3ad(0x1f1)},'children':yn[_0x5ae3ad(0x3a5)][_0x5ae3ad(0x288)](_0x14c044=>_0x22e402(_0x14c044,_0x14c044['value']===_0x59c664,()=>_0x1f7d26(_0x14c044[_0x5ae3ad(0x31d)]),_0x14c044['value']==='curve'&&!_0x26dc5f(_0x560649)))})]})]}),_0x417f48=_0x3a880d=>{const _0x158b63=_0x5ae3ad;switch(_0x3a880d){case'line':return _0x27e6bc(_0x26c312,{'titleKey':hn[_0x158b63(0x1bd)],'shapeData':_0x1baa91,'modeOptions':[_0x158b63(0x3cf),'dash',_0x158b63(0x344)],'showDashDropdown':!0x1,'widthRange':{'min':pn[_0x158b63(0x3ce)],'max':pn[_0x158b63(0x18f)],'step':0x1},'onUpdateShapeData':(_0x27c417,_0x141a22)=>{Mn(_0x141a22,_0x374269);}});case _0x158b63(0x1a4):return _0x27e6bc(_0x26d4c6,{'titleKey':_0x158b63(0x1ae),'minWidthClassName':'univer-min-w-[240px]','children':_0x528cbf(_0x158b63(0x2f6),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1','children':[_0x27e6bc(_0x108fb2,{'labelKey':_0x158b63(0x38f),'shortcut':_0x2d21e5(_n[_0x158b63(0x350)]),'onClick':_0x5ae4c0}),_0x27e6bc(_0x108fb2,{'labelKey':_0x158b63(0x1c4),'shortcut':_0x2d21e5(_n[_0x158b63(0x2ac)]),'onClick':_0x12d7ea}),_0x27e6bc(_0x39b257,{}),_0x27e6bc(_0x108fb2,{'labelKey':_0x158b63(0x12e),'shortcut':_0x2d21e5(_n[_0x158b63(0x23f)]),'onClick':_0x160596}),_0x27e6bc(_0x108fb2,{'labelKey':_0x158b63(0x17e),'shortcut':_0x2d21e5(_n['paste']),'onClick':_0x4d4b58}),_0x27e6bc(_0x108fb2,{'labelKey':_0x158b63(0x183),'shortcut':_0x2d21e5(_n['delete']),'onClick':_0x38fbf1})]})});default:return null;}},_0x63b19d=gn[_0x5ae3ad(0x271)](_0x535909=>{const _0x2d53e3=_0x5ae3ad;let _0x150922=[];if(_0x535909[_0x2d53e3(0x2e3)]&&_0x150922[_0x2d53e3(0x2af)](_0x27e6bc(_0x39b257,{'orientation':_0x2d53e3(0x3f6)},_0x2d53e3(0x275)+_0x535909['kind'])),_0x535909[_0x2d53e3(0x244)]===_0x2d53e3(0x1be))return _0x150922[_0x2d53e3(0x2af)](_0x27e6bc(_0x209f87,{'titleKey':hn[_0x2d53e3(0x1be)],'textStyle':{'isBold':_0x558655[_0x2d53e3(0x174)]===!0x0,'isItalic':_0x558655[_0x2d53e3(0x2cf)]===!0x0,'isUnderline':_0x558655[_0x2d53e3(0x1fb)]===!0x0,'isStrike':_0x558655[_0x2d53e3(0x1c5)]===!0x0},'horizontalAlign':_0x1875a5[_0x2d53e3(0x2b7)],'verticalAlign':_0x1875a5[_0x2d53e3(0x319)],'horizontalAlignOptions':_0x567f49,'verticalAlignOptions':_0x1c85eb,'onUpdateText':_0x4a2c62},_0x535909['kind'])),_0x150922;if(_0x535909[_0x2d53e3(0x244)]===_0x2d53e3(0x29d)){let _0x5be3c5={'fs':_0x1875a5[_0x2d53e3(0x312)],'cl':{'rgb':_0x1875a5[_0x2d53e3(0x23d)]},..._0x1875a5['textFill']===void 0x0?null:{'textFill':_0x1875a5[_0x2d53e3(0x129)]}};return _0x150922[_0x2d53e3(0x2af)](_0x27e6bc(_0x35e16f,{'titleKey':hn['fontColor'],'textStyle':_0x5be3c5,'fallbackColor':_0x1875a5[_0x2d53e3(0x23d)],'onChange':_0xfe6c28=>_0x4a2c62({'textStyle':_0xfe6c28})},_0x535909[_0x2d53e3(0x244)])),_0x150922['push'](_0x27e6bc(_0x39157d,{'value':String(_0x1875a5['fontSize']),'onChange':_0x1e1131=>{_0x4a2c62({'textStyle':{'fs':_0x1e1131}});}},'mind-map-font-size')),_0x150922;}return _0x150922['push'](_0x27e6bc(_0x3c96a1,{'open':_0x2df9e1===_0x535909[_0x2d53e3(0x3bf)],'overlay':_0x417f48(_0x535909[_0x2d53e3(0x3bf)]),'onOpenChange':_0x5b3251=>_0x4d68dd(_0x5b3251?_0x535909[_0x2d53e3(0x3bf)]:null),'children':_0x27e6bc(_0x2d53e3(0x2f8),{'children':_0x27e6bc(_0x30b305,{'titleKey':_0x535909[_0x2d53e3(0x223)],'active':_0x2df9e1===_0x535909[_0x2d53e3(0x3bf)],'icon':Cn(xn[_0x535909['panel']]),'sizeClassName':_0x2d53e3(0x277),'onMouseDown':Sn,'onPointerDown':Sn})})},_0x535909[_0x2d53e3(0x3bf)])),_0x150922;});return _0x528cbf(_0x245d3e,{'dataAttributes':{'data-board-mind-map-floating-toolbar':'true'},'maxWidthClassName':_0x5ae3ad(0x136),'onMouseDown':_0x2ff0d6=>_0x2ff0d6[_0x5ae3ad(0x2e6)](),'children':[[..._0xb96ff2[_0x5ae3ad(0x21a)]?[_0x27e6bc(_0x3c96a1,{'open':_0x2df9e1==='layout','overlay':_0x441d04(),'onOpenChange':_0x3f3a39=>_0x4d68dd(_0x3f3a39?'layout':null),'children':_0x27e6bc(_0x5ae3ad(0x2f8),{'children':_0x27e6bc(_0x30b305,{'titleKey':_0x5ae3ad(0x3b6),'active':_0x2df9e1===_0x5ae3ad(0x3eb),'icon':_0x27e6bc(On,{}),'sizeClassName':_0x5ae3ad(0x277),'onMouseDown':Sn,'onPointerDown':Sn})})},_0x5ae3ad(0x32e)),_0x27e6bc(_0x39b257,{'orientation':_0x5ae3ad(0x3f6)},'layout-panel-divider')]:[],_0x27e6bc(_0x38b84d,{'titleKey':hn[_0x5ae3ad(0x1f5)],'shapeData':_0x4bf578==null?{}:_0x4bf578,'onUpdateShapeData':_0x63260d},_0x5ae3ad(0x253)),_0x27e6bc(_0x5eb6a3,{'titleKey':hn[_0x5ae3ad(0x18b)],'shapeData':_0x4bf578==null?{}:_0x4bf578,'onUpdateShapeData':_0x63260d},_0x5ae3ad(0x3ff)),_0x27e6bc(_0x39b257,{'orientation':_0x5ae3ad(0x3f6)},_0x5ae3ad(0x352))],_0x63b19d]});}function In(_0x395653){let {left:_0x2eced3,top:_0x5f58b7,width:_0x11636f,height:_0x450e67}=_0x395653;return{'left':_0x2eced3,'right':_0x2eced3+_0x11636f,'top':_0x5f58b7-0x38,'bottom':_0x5f58b7+_0x450e67};}let Ln=class extends _0x5b09aa{constructor(_0x4688dd,_0x37a529,_0x114a36,_0x4e0ec5,_0x3111fb,_0x2b7b00){const _0x18649a=_0x1bfc49;super(),this[_0x18649a(0x2d9)]=_0x4688dd,this[_0x18649a(0x1ff)]=_0x37a529,this[_0x18649a(0x13a)]=_0x114a36,this['_elementStateService']=_0x4e0ec5,this[_0x18649a(0x36b)]=_0x3111fb,this[_0x18649a(0x3a0)]=_0x2b7b00,K(this,_0x18649a(0x2c4),null),K(this,'_popupSelectionKey',null),this['_init']();}[_0x1bfc49(0x1b7)](){const _0x29b19e=_0x1bfc49;this['_clearPopup'](),super[_0x29b19e(0x1b7)]();}[_0x1bfc49(0x1f8)](){const _0x2bc568=_0x1bfc49;let _0xcdb3b2=this[_0x2bc568(0x2d9)][_0x2bc568(0x247)][_0x2bc568(0x400)]();this['disposeWithMe'](_0x34ad80(_0xcdb3b2[_0x2bc568(0x2c5)][_0x2bc568(0x398)](_0x17a1de(this['dispose$']))['subscribe'](()=>this['_showPopupForSelection']()))),this[_0x2bc568(0x3ac)](_0x34ad80(_0xcdb3b2[_0x2bc568(0x3a7)][_0x2bc568(0x398)](_0x17a1de(this[_0x2bc568(0x24b)]))[_0x2bc568(0x20c)](()=>this[_0x2bc568(0x257)]()))),this['disposeWithMe'](_0x34ad80(_0xcdb3b2['changeStart$']['pipe'](_0x17a1de(this['dispose$']))['subscribe'](()=>this[_0x2bc568(0x2e9)]()))),this[_0x2bc568(0x3ac)](_0x34ad80(_0xcdb3b2[_0x2bc568(0x132)][_0x2bc568(0x398)](_0x17a1de(this[_0x2bc568(0x24b)]))[_0x2bc568(0x20c)](()=>setTimeout(()=>this[_0x2bc568(0x2f4)](),0x0)))),this[_0x2bc568(0x3ac)](_0x34ad80(this['_elementStateService']['state$'][_0x2bc568(0x398)](_0x17a1de(this[_0x2bc568(0x24b)]))[_0x2bc568(0x20c)](()=>setTimeout(()=>this['_showPopupForSelection'](),0x0)))),this['disposeWithMe'](_0x34ad80(this[_0x2bc568(0x3a0)][_0x2bc568(0x152)][_0x2bc568(0x398)](_0x17a1de(this[_0x2bc568(0x24b)]))[_0x2bc568(0x20c)](_0x4469f1=>{const _0x1bd3a9=_0x2bc568;if(_0x4469f1){this[_0x1bd3a9(0x2e9)]();return;}setTimeout(()=>this[_0x1bd3a9(0x2f4)](),0x0);}))),this[_0x2bc568(0x3ac)](_0x34ad80(this[_0x2bc568(0x36b)][_0x2bc568(0x22c)][_0x2bc568(0x398)](_0x17a1de(this[_0x2bc568(0x24b)]))[_0x2bc568(0x20c)](_0x33b7a7=>{const _0xdd69c2=_0x2bc568;if((_0x33b7a7==null?void 0x0:_0x33b7a7['unitId'])===this[_0xdd69c2(0x2d9)][_0xdd69c2(0x308)]){if(_0x33b7a7[_0xdd69c2(0x3d7)]){this[_0xdd69c2(0x2e9)]();return;}setTimeout(()=>this[_0xdd69c2(0x2f4)](),0x0);}})));}[_0x1bfc49(0x2e9)](){const _0x4716ab=_0x1bfc49;var _0x1a353b;(_0x1a353b=this[_0x4716ab(0x2c4)])==null||_0x1a353b[_0x4716ab(0x1b7)](),this[_0x4716ab(0x2c4)]=null,this['_popupSelectionKey']=null;}[_0x1bfc49(0x257)](){setTimeout(()=>{const _0x5588b3=_0x3cc1;this[_0x5588b3(0x261)]()||this['_clearPopup']();},0x0);}[_0x1bfc49(0x261)](){const _0x420e1c=_0x1bfc49;let _0x17c1da=this['_elementStateService'][_0x420e1c(0x37c)]();return!!_0x17c1da[_0x420e1c(0x3b1)]&&_0x17c1da[_0x420e1c(0x235)]['length']>0x0&&this[_0x420e1c(0x2c9)]===this[_0x420e1c(0x2c1)](_0x17c1da[_0x420e1c(0x3b1)][_0x420e1c(0x308)],_0x17c1da[_0x420e1c(0x3b1)]['subUnitId'],_0x17c1da[_0x420e1c(0x235)]);}[_0x1bfc49(0x2c1)](_0x43e6b3,_0x425f85,_0x24a983){const _0x269119=_0x1bfc49;return _0x43e6b3+':'+_0x425f85+':'+_0x24a983[_0x269119(0x35b)](',');}[_0x1bfc49(0x13f)](_0x3a89c2,_0x26a78f,_0x4c5e9c,_0x195c26){const _0xdd943e=_0x1bfc49;let _0xc58971=this[_0xdd943e(0x13a)][_0xdd943e(0x25f)](_0x3a89c2,_0x26a78f),_0x2c750e=Object[_0xdd943e(0x2b1)](_0xc58971)['find'](_0x2636c8=>{const _0x17192d=_0xdd943e;let _0x4ba763=_0x576a15(_0x2636c8[_0x17192d(0x30c)]);return(_0x4ba763==null?void 0x0:_0x4ba763['structureScopeId'])===_0x4c5e9c&&_0x4ba763['childNodeId']===_0x195c26;});if(!(!_0x2c750e||!('connectorData'in _0x2c750e[_0xdd943e(0x30c)])))return _0x2c750e['element'][_0xdd943e(0x3b0)][_0xdd943e(0x236)];}[_0x1bfc49(0x2f4)](){const _0x484c47=_0x1bfc49;var _0x147aec,_0x4605a4,_0x47d20b,_0x1e66c7,_0x5aa3bf,_0x2a4d60,_0x483194,_0x5410f2;if(this[_0x484c47(0x3a0)]['isInteractionSurfaceActive']){this[_0x484c47(0x2e9)]();return;}let _0x5e0118=this[_0x484c47(0x36b)][_0x484c47(0x187)]();if((_0x5e0118==null?void 0x0:_0x5e0118[_0x484c47(0x3d7)])===!0x0&&_0x5e0118[_0x484c47(0x308)]===this[_0x484c47(0x2d9)][_0x484c47(0x308)]){this[_0x484c47(0x2e9)]();return;}let _0x2c0a5c=this['_elementStateService']['getSnapshot']();if(_0x2c0a5c[_0x484c47(0x2a4)]){this[_0x484c47(0x2e9)]();return;}if(_0x143cd6({'context':_0x2c0a5c[_0x484c47(0x3b1)],'selectedIds':_0x2c0a5c['selectedIds'],'getElementById':(_0x5dc6c8,_0xc9cf43,_0x25dce5)=>this[_0x484c47(0x13a)][_0x484c47(0x3f5)](_0x5dc6c8,_0xc9cf43,_0x25dce5)})['owner']!=='mind-map'){this[_0x484c47(0x2e9)]();return;}let _0x132e78=this[_0x484c47(0x2d9)][_0x484c47(0x247)]['getTransformerByCreate']()[_0x484c47(0x176)](),_0x424b25=Array[_0x484c47(0x167)](_0x132e78[_0x484c47(0x2b1)]())[_0x484c47(0x288)](_0x3fd8d9=>this[_0x484c47(0x21c)](_0x3fd8d9))[_0x484c47(0x27c)](_0x33bf10=>!!_0x33bf10)[_0x484c47(0x27c)](_0x15ee2d=>!!_0x4b908c(_0x15ee2d['elementData']['element'])),_0x56e389=(_0x147aec=(_0x4605a4=_0x424b25[_0x484c47(0x28f)](_0x26a0f1=>_0x26a0f1[_0x484c47(0x254)][_0x484c47(0x1a7)]===_0x2c0a5c[_0x484c47(0x2fe)]))==null?_0x424b25[0x0]:_0x4605a4)==null?this['_resolveSelectedMindMapEntryFromState']():_0x147aec;if(!_0x56e389){this[_0x484c47(0x2e9)]();return;}let _0x421b1b=_0x4b908c(_0x56e389[_0x484c47(0x254)][_0x484c47(0x30c)]);if(!_0x421b1b){this['_clearPopup']();return;}let _0x9b9dec=(_0x47d20b=this['_boardElementService'][_0x484c47(0x25f)](_0x56e389['elementData'][_0x484c47(0x308)],_0x56e389[_0x484c47(0x254)]['subUnitId'])[_0x421b1b[_0x484c47(0x1c0)]])==null?void 0x0:_0x47d20b[_0x484c47(0x30c)],_0x17809d=_0x114393(_0x9b9dec),_0x4d9a2c=_0x9b9dec==null||(_0x1e66c7=_0x9b9dec['custom'])==null||(_0x1e66c7=_0x1e66c7[_0x484c47(0x386)])==null||(_0x1e66c7=_0x1e66c7[_0x484c47(0x3eb)])==null?void 0x0:_0x1e66c7[_0x484c47(0x14f)],_0xc9af04=((_0x5aa3bf=_0x17809d==null?void 0x0:_0x17809d[_0x484c47(0x3eb)][_0x484c47(0x14f)])==null?_0x4d9a2c:_0x5aa3bf)===_0x484c47(0x318)&&(_0x421b1b[_0x484c47(0x19f)]===null||_0x421b1b['side']==='top'),_0x5b1b5a=_0x421b1b['parentNodeId']!==null&&_0x421b1b[_0x484c47(0x1b9)]!==_0x484c47(0x1ba)&&_0x421b1b[_0x484c47(0x1b9)]!==_0x484c47(0x3ef),_0x23a596=_0xc9af04||_0x5b1b5a,_0x2cd4b6=((_0x2a4d60=_0x2c0a5c[_0x484c47(0x3b1)])==null?void 0x0:_0x2a4d60[_0x484c47(0x308)])===_0x56e389[_0x484c47(0x254)][_0x484c47(0x308)]&&_0x2c0a5c[_0x484c47(0x3b1)]['subUnitId']===_0x56e389['elementData'][_0x484c47(0x25a)]&&_0x2c0a5c[_0x484c47(0x235)][_0x484c47(0x157)]?_0x2c0a5c[_0x484c47(0x235)]:[_0x56e389['elementData'][_0x484c47(0x1a7)]],_0x57deae=this[_0x484c47(0x2c1)](_0x56e389[_0x484c47(0x254)][_0x484c47(0x308)],_0x56e389[_0x484c47(0x254)][_0x484c47(0x25a)],_0x2cd4b6);this[_0x484c47(0x2c4)]&&this[_0x484c47(0x2c9)]===_0x57deae||(this[_0x484c47(0x2e9)](),this[_0x484c47(0x2c4)]=this[_0x484c47(0x3ac)](this[_0x484c47(0x1ff)][_0x484c47(0x202)](_0x56e389[_0x484c47(0x254)][_0x484c47(0x308)],_0x56e389[_0x484c47(0x254)]['subUnitId'],_0x56e389[_0x484c47(0x2e2)],{'componentKey':fn,'direction':'top-center','offset':[0x0,0x8],..._0x23a596?{'anchorBoundResolver':In}:null,'extraProps':{'unitId':_0x56e389[_0x484c47(0x254)][_0x484c47(0x308)],'subUnitId':_0x56e389['elementData']['subUnitId'],'elementId':_0x56e389[_0x484c47(0x254)]['elementId'],'scopeId':_0x421b1b[_0x484c47(0x1c0)],'isRootNode':_0x421b1b[_0x484c47(0x19f)]===null,'left':(_0x483194=_0x56e389[_0x484c47(0x254)][_0x484c47(0x30c)][_0x484c47(0x3ec)]['left'])==null?0x0:_0x483194,'top':(_0x5410f2=_0x56e389[_0x484c47(0x254)][_0x484c47(0x30c)][_0x484c47(0x3ec)]['top'])==null?0x0:_0x5410f2,'shapeData':_0x56e389['elementData']['element'][_0x484c47(0x149)]===_0x14ffad[_0x484c47(0x388)]?_0x56e389[_0x484c47(0x254)][_0x484c47(0x30c)][_0x484c47(0x376)]:void 0x0,'layout':_0x17809d==null?void 0x0:_0x17809d['layout'],'incomingConnectorStyle':this[_0x484c47(0x13f)](_0x56e389[_0x484c47(0x254)][_0x484c47(0x308)],_0x56e389['elementData'][_0x484c47(0x25a)],_0x421b1b[_0x484c47(0x1c0)],_0x56e389[_0x484c47(0x254)][_0x484c47(0x1a7)])}})),this[_0x484c47(0x2c9)]=_0x57deae);}[_0x1bfc49(0x23b)](){const _0x248bd2=_0x1bfc49;var _0x5d25c8,_0x416329,_0x4406a9;let _0x4aa10a=this[_0x248bd2(0x29f)][_0x248bd2(0x37c)](),_0x44e554=_0x4aa10a[_0x248bd2(0x3b1)],_0x40672b=(_0x5d25c8=_0x4aa10a[_0x248bd2(0x2fe)])==null?_0x4aa10a[_0x248bd2(0x235)][0x0]:_0x5d25c8;if(!_0x44e554||!_0x40672b)return null;let _0x38481d=this[_0x248bd2(0x13a)][_0x248bd2(0x3f5)](_0x44e554[_0x248bd2(0x308)],_0x44e554[_0x248bd2(0x25a)],_0x40672b);if(!_0x38481d||!_0x4b908c(_0x38481d['element']))return null;let _0xc52750=_0x3f73c8(_0x44e554[_0x248bd2(0x308)],_0x40672b),_0x4f6b84=this[_0x248bd2(0x2d9)][_0x248bd2(0x247)],_0x3beeae=(_0x416329=(_0x4406a9=_0x4f6b84[_0x248bd2(0x1d3)])==null?void 0x0:_0x4406a9[_0x248bd2(0x3c7)](_0x4f6b84,_0xc52750))==null?this['_renderContext'][_0x248bd2(0x247)][_0x248bd2(0x348)](_0xc52750):_0x416329;return _0x3beeae?{'object':_0x3beeae,'elementData':_0x38481d}:null;}[_0x1bfc49(0x21c)](_0x2b90ba){const _0x529bc9=_0x1bfc49;var _0x575456;if(!_0x2b90ba)return null;let _0x1028da=_0x1622e2(_0x2b90ba[_0x529bc9(0x144)]);if(!_0x1028da)return null;let _0x4431e4=this[_0x529bc9(0x29f)][_0x529bc9(0x37c)](),_0x5529f7=((_0x575456=_0x4431e4[_0x529bc9(0x3b1)])==null?void 0x0:_0x575456['unitId'])===_0x1028da[_0x529bc9(0x308)]?_0x4431e4['context'][_0x529bc9(0x25a)]:void 0x0;if(!_0x5529f7)return null;let _0x949c94=this['_boardElementService'][_0x529bc9(0x3f5)](_0x1028da['unitId'],_0x5529f7,_0x1028da['elementId']);return _0x949c94?{'object':_0x2b90ba,'elementData':_0x949c94}:null;}};Ln=J([q(0x1,_0xbc3476(_0x3be6dd)),q(0x2,_0xbc3476(_0x295e11)),q(0x3,_0xbc3476(_0x4f61df)),q(0x4,_0xbc3476(_0x1cecde)),q(0x5,_0xbc3476(_0x58f2f3))],Ln);const Rn='board-mind-map-pending-insert-object',zn=_0x1254b3[_0x1bfc49(0x12f)];function Bn(_0x560692,_0x1e0a51){const _0xb00e9=_0x1bfc49;return(_0x560692==null?[]:_0x560692)[_0xb00e9(0x301)]((_0x4480b8,_0x5235e4)=>{const _0x3f1c08=_0xb00e9;var _0x1dcea4;return _0x4480b8[(_0x1dcea4=_0x5235e4['side'])==null?_0x1e0a51:_0x1dcea4][_0x3f1c08(0x2af)](_0x5235e4),_0x4480b8;},{'left':[],'right':[],'top':[],'bottom':[]});}function Vn(_0x262a84){const _0x4677a1=_0x1bfc49;return _0x262a84===_0x4677a1(0x29e)||_0x262a84==='tree-right'||_0x262a84===_0x4677a1(0x14e);}function Hn(_0x285c3f){const _0x3e2529=_0x1bfc49;return _0x285c3f===_0x3e2529(0x3e4)||_0x285c3f===_0x3e2529(0x25e);}function Un(_0xeed39a,_0x7bc166,_0x4ff2db){const _0x10c287=_0x1bfc49;return _0x4ff2db==='tree-left'?_0x10c287(0x33e):_0x4ff2db===_0x10c287(0x30e)?_0x10c287(0x13e):_0xeed39a[_0x10c287(0x1b9)]==='left'||_0xeed39a[_0x10c287(0x1b9)]===_0x10c287(0x13e)?_0xeed39a[_0x10c287(0x1b9)]:_0x7bc166%0x2==0x0?_0x10c287(0x33e):'right';}function Wn(_0x557339,_0x2fb0cb){const _0x116dde=_0x1bfc49;var _0x571cab,_0x399821;return(_0x571cab=(_0x399821=_0x2fb0cb==null?void 0x0:_0x2fb0cb[_0x116dde(0x267)][_0x116dde(0x12d)])==null?_0x557339:_0x399821)==null?[]:_0x571cab;}var Gn=class extends _0x68d0be{constructor(_0x107ff3=Rn,_0x110579){const _0x660b67=_0x1bfc49;super(_0x107ff3),K(this,_0x660b67(0x19c),{'point':null,'children':[]}),this[_0x660b67(0x1ec)]=!0x1,this[_0x660b67(0x2c8)]=_0x38268b[_0x660b67(0x2cb)],this[_0x660b67(0x3af)](_0x110579);}[_0x1bfc49(0x3af)](_0x31efc9){const _0x5cec50=_0x1bfc49;this[_0x5cec50(0x19c)]={...this[_0x5cec50(0x19c)],..._0x31efc9},this['_state'][_0x5cec50(0x229)]?this[_0x5cec50(0x1a0)]():this[_0x5cec50(0x38b)](),this[_0x5cec50(0x32a)](!0x0);}[_0x1bfc49(0x164)](_0x466699){return!0x1;}[_0x1bfc49(0x3ea)](_0x94c40e,_0x11e025){const _0x1f2ef4=_0x1bfc49;var _0x53eee5;let _0x484fd5=this[_0x1f2ef4(0x19c)]['point'];if(!_0x484fd5||!this[_0x1f2ef4(0x3d7)])return this[_0x1f2ef4(0x32a)](!0x1),this;let _0x2c9e0d=Number['isFinite'](this[_0x1f2ef4(0x19c)][_0x1f2ef4(0x1d7)])&&((_0x53eee5=this['_state'][_0x1f2ef4(0x1d7)])==null?0x0:_0x53eee5)>0x0?this[_0x1f2ef4(0x19c)][_0x1f2ef4(0x1d7)]:0x1,_0x15a33a=_0x2288ab[_0x1f2ef4(0x126)],_0x25c7e5=_0x2288ab['rootHeight'],_0x43e429=_0x2288ab[_0x1f2ef4(0x1da)],_0x1789d8=_0x2288ab[_0x1f2ef4(0x1d5)],_0x33f8f6=_0x133f51[_0x1f2ef4(0x290)],_0x503fd4=_0x133f51[_0x1f2ef4(0x3f8)],_0x4400b9=this['_state'][_0x1f2ef4(0x14f)]===_0x1f2ef4(0x318),_0x194148=Bn(this[_0x1f2ef4(0x19c)][_0x1f2ef4(0x12d)],_0x4400b9?_0x1f2ef4(0x3ef):_0x1f2ef4(0x13e)),_0x19f815=_0x484fd5['x']-_0x15a33a/0x2,_0x4375fe=_0x484fd5['y']-_0x25c7e5/0x2;if(_0x94c40e['save'](),_0x94c40e['globalAlpha']=X[_0x1f2ef4(0x3bc)],_0x94c40e[_0x1f2ef4(0x31a)]=X[_0x1f2ef4(0x1db)]/_0x2c9e0d,_0x94c40e['strokeStyle']=X[_0x1f2ef4(0x23c)],Hn(this[_0x1f2ef4(0x19c)][_0x1f2ef4(0x14f)])){let _0x97ec60=Wn(this[_0x1f2ef4(0x19c)][_0x1f2ef4(0x12d)],this[_0x1f2ef4(0x19c)][_0x1f2ef4(0x2fb)]),_0x3359cc=this[_0x1f2ef4(0x19c)][_0x1f2ef4(0x14f)]===_0x1f2ef4(0x3e4);if(_0x97ec60[_0x1f2ef4(0x157)]>0x0){if(_0x94c40e['beginPath'](),_0x3359cc){let _0x256eb5=_0x43e429,_0x5a51e1=_0x1789d8,_0x4bbce3=_0x133f51[_0x1f2ef4(0x280)],_0x4d14c0=_0x484fd5['y'],_0x30a4f2=_0x19f815+_0x15a33a,_0x57782e=_0x484fd5['y']-_0x5a51e1/0x2,_0x519be3=_0x19f815+_0x15a33a+_0x4bbce3;_0x94c40e[_0x1f2ef4(0x230)](_0x30a4f2,_0x4d14c0),_0x94c40e[_0x1f2ef4(0x2f3)](_0x519be3,_0x4d14c0),_0x97ec60['forEach']((_0x1f3a80,_0x329654)=>{const _0x71f236=_0x1f2ef4;let _0x50bcbf=_0x519be3+_0x329654*(_0x256eb5+_0x4bbce3);if(_0x329654>0x0){let _0x5c5575=_0x519be3+(_0x329654-0x1)*(_0x256eb5+_0x4bbce3)+_0x256eb5;_0x94c40e['moveTo'](_0x5c5575,_0x4d14c0),_0x94c40e['lineTo'](_0x50bcbf,_0x4d14c0);}_0x94c40e[_0x71f236(0x230)](_0x50bcbf,_0x4d14c0),_0x94c40e['lineTo'](_0x50bcbf+_0x256eb5,_0x4d14c0);}),_0x94c40e[_0x1f2ef4(0x18b)](),_0x97ec60['forEach']((_0x385aa4,_0x1c863e)=>{const _0x37ff52=_0x1f2ef4;Z(_0x94c40e,_0x519be3+_0x1c863e*(_0x256eb5+_0x4bbce3),_0x57782e,_0x256eb5,_0x5a51e1,X[_0x37ff52(0x3dc)]),_0x94c40e[_0x37ff52(0x19e)]=X[_0x37ff52(0x2a7)],_0x94c40e['fill'](),_0x94c40e[_0x37ff52(0x18b)]();}),_0x97ec60[_0x1f2ef4(0x29c)]((_0xc5456,_0x3c2d3f)=>{const _0x9cc520=_0x1f2ef4;if(!('children'in _0xc5456)||_0xc5456[_0x9cc520(0x12d)][_0x9cc520(0x157)]===0x0)return;let _0x1bf927=_0x519be3+_0x3c2d3f*(_0x256eb5+_0x4bbce3),_0xfd54c4=_0x1bf927+_0x256eb5/0x2,_0x1eb687=_0xc5456['side']==='bottom'?'bottom':'top',_0x167aad=_0xc5456[_0x9cc520(0x12d)][_0x9cc520(0x39c)](0x0,0x2),_0x5249a5=_0x167aad[_0x9cc520(0x157)]*_0x5a51e1+Math[_0x9cc520(0x18f)](0x0,_0x167aad[_0x9cc520(0x157)]-0x1)*_0x503fd4,_0x126d98=_0x1bf927+_0x256eb5+_0x133f51[_0x9cc520(0x3a2)],_0x1b94e4=_0x1eb687==='top'?_0x57782e-_0x33f8f6-_0x5249a5:_0x57782e+_0x5a51e1+_0x33f8f6,_0x275096=_0x1b94e4+_0x5249a5/0x2;_0x94c40e[_0x9cc520(0x2d8)](),_0x94c40e[_0x9cc520(0x230)](_0xfd54c4,_0x1eb687===_0x9cc520(0x1ba)?_0x57782e:_0x57782e+_0x5a51e1),_0x94c40e[_0x9cc520(0x2f3)](_0xfd54c4,_0x275096),_0x94c40e[_0x9cc520(0x2f3)](_0x126d98,_0x275096),_0x167aad['forEach']((_0x2b57b9,_0x2e3170)=>{const _0x3f2145=_0x9cc520;let _0x1fe4f3=_0x1b94e4+_0x2e3170*(_0x5a51e1+_0x503fd4)+_0x5a51e1/0x2;_0x94c40e['moveTo'](_0x126d98,_0x1fe4f3),_0x94c40e[_0x3f2145(0x2f3)](_0x126d98+_0x256eb5,_0x1fe4f3);}),_0x94c40e[_0x9cc520(0x18b)](),_0x167aad[_0x9cc520(0x29c)]((_0x53d25e,_0x179b91)=>{const _0x5e1a83=_0x9cc520;Z(_0x94c40e,_0x126d98,_0x1b94e4+_0x179b91*(_0x5a51e1+_0x503fd4),_0x256eb5,_0x5a51e1,X['ghostRadius']),_0x94c40e[_0x5e1a83(0x19e)]=X[_0x5e1a83(0x2a7)],_0x94c40e[_0x5e1a83(0x1f5)](),_0x94c40e[_0x5e1a83(0x18b)]();});});}else{let _0x2a353a=_0x484fd5['x'],_0x132100=_0x4375fe+_0x25c7e5,_0x58f647=_0x133f51[_0x1f2ef4(0x280)],_0x33ea99=_0x4375fe+_0x25c7e5+_0x58f647,_0x57e3a6=_0x33ea99+(_0x97ec60[_0x1f2ef4(0x157)]-0x1)*(_0x1789d8+_0x58f647)+_0x1789d8/0x2;_0x94c40e['moveTo'](_0x2a353a,_0x132100),_0x94c40e[_0x1f2ef4(0x2f3)](_0x2a353a,_0x57e3a6),_0x97ec60['forEach']((_0x262a2e,_0x2281f7)=>{const _0x1cd84e=_0x1f2ef4;let _0x2e882e=_0x33ea99+_0x2281f7*(_0x1789d8+_0x58f647)+_0x1789d8/0x2,_0x2fbe82=_0x262a2e['side']==='right'?'right':_0x1cd84e(0x33e),_0x48e87f=_0x2fbe82==='right'?_0x2a353a+_0x133f51[_0x1cd84e(0x3a2)]:_0x2a353a-_0x133f51['branchGap']-_0x43e429,_0x54240e=_0x2fbe82==='right'?_0x48e87f:_0x48e87f+_0x43e429;_0x94c40e['moveTo'](_0x2a353a,_0x2e882e),_0x94c40e[_0x1cd84e(0x2f3)](_0x54240e,_0x2e882e);}),_0x94c40e[_0x1f2ef4(0x18b)](),_0x97ec60[_0x1f2ef4(0x29c)]((_0x404c60,_0x341571)=>{const _0x4f2fc1=_0x1f2ef4;let _0x212fc8=_0x33ea99+_0x341571*(_0x1789d8+_0x58f647);Z(_0x94c40e,(_0x404c60[_0x4f2fc1(0x1b9)]===_0x4f2fc1(0x13e)?'right':_0x4f2fc1(0x33e))=='right'?_0x2a353a+_0x133f51['branchGap']:_0x2a353a-_0x133f51[_0x4f2fc1(0x3a2)]-_0x43e429,_0x212fc8,_0x43e429,_0x1789d8,X[_0x4f2fc1(0x3dc)]),_0x94c40e['fillStyle']=X[_0x4f2fc1(0x2a7)],_0x94c40e[_0x4f2fc1(0x1f5)](),_0x94c40e['stroke']();}),_0x97ec60[_0x1f2ef4(0x29c)]((_0x246149,_0x18f791)=>{const _0x238fed=_0x1f2ef4;if(!(_0x238fed(0x12d)in _0x246149)||_0x246149[_0x238fed(0x12d)]['length']===0x0)return;let _0x140f8b=_0x33ea99+_0x18f791*(_0x1789d8+_0x58f647)+_0x1789d8/0x2,_0x2a6bd1=_0x246149[_0x238fed(0x1b9)]===_0x238fed(0x13e)?'right':_0x238fed(0x33e),_0x30c5b5=_0x246149['children'][_0x238fed(0x39c)](0x0,0x2),_0x431c30=_0x30c5b5[_0x238fed(0x157)]*_0x1789d8+Math[_0x238fed(0x18f)](0x0,_0x30c5b5[_0x238fed(0x157)]-0x1)*_0x503fd4,_0x4cd4b4=_0x2a6bd1==='right'?_0x2a353a+_0x133f51[_0x238fed(0x3a2)]:_0x2a353a-_0x133f51[_0x238fed(0x3a2)]-_0x43e429,_0x70b98b=_0x2a6bd1===_0x238fed(0x13e)?_0x4cd4b4+_0x43e429+_0x33f8f6:_0x4cd4b4-_0x33f8f6-_0x43e429,_0x1c6115=_0x140f8b-_0x431c30/0x2,_0x360ce8=_0x2a6bd1===_0x238fed(0x13e)?_0x4cd4b4+_0x43e429:_0x4cd4b4,_0x431340=_0x2a6bd1===_0x238fed(0x13e)?_0x70b98b:_0x70b98b+_0x43e429;_0x94c40e[_0x238fed(0x2d8)](),_0x94c40e[_0x238fed(0x230)](_0x360ce8,_0x140f8b),_0x94c40e[_0x238fed(0x2f3)](_0x431340,_0x140f8b),_0x30c5b5[_0x238fed(0x29c)]((_0x405fea,_0x340a15)=>{const _0x527847=_0x238fed;let _0x152b80=_0x1c6115+_0x340a15*(_0x1789d8+_0x503fd4)+_0x1789d8/0x2;_0x94c40e[_0x527847(0x230)](_0x431340,_0x152b80),_0x94c40e[_0x527847(0x2f3)](_0x2a6bd1===_0x527847(0x13e)?_0x70b98b+_0x43e429:_0x70b98b,_0x152b80);}),_0x94c40e[_0x238fed(0x18b)](),_0x30c5b5[_0x238fed(0x29c)]((_0x49c8e0,_0x24ff54)=>{const _0x3756e1=_0x238fed;Z(_0x94c40e,_0x70b98b,_0x1c6115+_0x24ff54*(_0x1789d8+_0x503fd4),_0x43e429,_0x1789d8,X[_0x3756e1(0x3dc)]),_0x94c40e[_0x3756e1(0x19e)]=X[_0x3756e1(0x2a7)],_0x94c40e[_0x3756e1(0x1f5)](),_0x94c40e[_0x3756e1(0x18b)]();});});}}}else{if(Vn(this[_0x1f2ef4(0x19c)][_0x1f2ef4(0x14f)])){var _0x23a00f;let _0x12304e=(_0x23a00f=this[_0x1f2ef4(0x19c)][_0x1f2ef4(0x12d)])==null?[]:_0x23a00f,_0x311e84=_0x4375fe+_0x25c7e5,_0x580d63=_0x311e84+_0x33f8f6,_0x802254=_0x484fd5['x'];if(_0x12304e['length']>0x0){let _0x18bba6=_0x580d63+(_0x12304e[_0x1f2ef4(0x157)]-0x1)*(_0x1789d8+_0x503fd4)+_0x1789d8/0x2;_0x94c40e[_0x1f2ef4(0x2d8)](),_0x94c40e[_0x1f2ef4(0x230)](_0x802254,_0x311e84),_0x94c40e[_0x1f2ef4(0x2f3)](_0x802254,_0x18bba6),_0x12304e['forEach']((_0x364c84,_0x39a44f)=>{const _0x13c9d9=_0x1f2ef4;let _0x3f2aa0=Un(_0x364c84,_0x39a44f,this['_state'][_0x13c9d9(0x14f)]),_0x3379ec=_0x580d63+_0x39a44f*(_0x1789d8+_0x503fd4),_0x470e44=_0x3f2aa0==='right'?_0x802254+_0x33f8f6:_0x802254-_0x33f8f6-_0x43e429,_0x3e325c=_0x3379ec+_0x1789d8/0x2;_0x94c40e[_0x13c9d9(0x230)](_0x802254,_0x3e325c),_0x94c40e[_0x13c9d9(0x2f3)](_0x3f2aa0===_0x13c9d9(0x13e)?_0x470e44:_0x470e44+_0x43e429,_0x3e325c);}),_0x94c40e[_0x1f2ef4(0x18b)](),_0x12304e[_0x1f2ef4(0x29c)]((_0x2b103c,_0x19ad29)=>{const _0x2909f2=_0x1f2ef4;let _0x2e4578=Un(_0x2b103c,_0x19ad29,this[_0x2909f2(0x19c)]['structureKind']),_0x398003=_0x580d63+_0x19ad29*(_0x1789d8+_0x503fd4);Z(_0x94c40e,_0x2e4578===_0x2909f2(0x13e)?_0x802254+_0x33f8f6:_0x802254-_0x33f8f6-_0x43e429,_0x398003,_0x43e429,_0x1789d8,X[_0x2909f2(0x3dc)]),_0x94c40e[_0x2909f2(0x19e)]=X[_0x2909f2(0x2a7)],_0x94c40e[_0x2909f2(0x1f5)](),_0x94c40e[_0x2909f2(0x18b)]();});}}else _0x4400b9&&[_0x1f2ef4(0x1ba),_0x1f2ef4(0x3ef)][_0x1f2ef4(0x29c)](_0x1d795f=>{const _0x556e60=_0x1f2ef4;let _0x1904f0=_0x194148[_0x1d795f];if(_0x1904f0[_0x556e60(0x157)]===0x0)return;let _0x3a98af=_0x1904f0[_0x556e60(0x157)]*_0x43e429+Math[_0x556e60(0x18f)](0x0,_0x1904f0[_0x556e60(0x157)]-0x1)*_0x503fd4,_0x5a165c=_0x484fd5['x']-_0x3a98af/0x2,_0x13e1f4=_0x1d795f===_0x556e60(0x3ef)?_0x4375fe+_0x25c7e5:_0x4375fe,_0x1779a4=_0x1d795f===_0x556e60(0x3ef)?_0x13e1f4+_0x133f51[_0x556e60(0x3a2)]:_0x13e1f4-_0x133f51[_0x556e60(0x3a2)],_0x1c955d=_0x1d795f===_0x556e60(0x3ef)?_0x4375fe+_0x25c7e5+_0x33f8f6:_0x4375fe-_0x33f8f6-_0x1789d8;_0x94c40e[_0x556e60(0x2d8)](),_0x94c40e[_0x556e60(0x230)](_0x484fd5['x'],_0x13e1f4),_0x94c40e['lineTo'](_0x484fd5['x'],_0x1779a4),_0x1904f0[_0x556e60(0x157)]>0x1&&(_0x94c40e['moveTo'](_0x5a165c+_0x43e429/0x2,_0x1779a4),_0x94c40e[_0x556e60(0x2f3)](_0x5a165c+_0x3a98af-_0x43e429/0x2,_0x1779a4)),_0x1904f0[_0x556e60(0x29c)]((_0x3e8196,_0x4a796c)=>{const _0x3d9426=_0x556e60;let _0x54fd18=_0x5a165c+_0x4a796c*(_0x43e429+_0x503fd4)+_0x43e429/0x2;_0x94c40e[_0x3d9426(0x230)](_0x54fd18,_0x1779a4),_0x94c40e[_0x3d9426(0x2f3)](_0x54fd18,_0x1d795f===_0x3d9426(0x3ef)?_0x1c955d:_0x1c955d+_0x1789d8);}),_0x94c40e[_0x556e60(0x18b)](),_0x1904f0[_0x556e60(0x29c)]((_0x4543e2,_0x310e72)=>{const _0x1fd327=_0x556e60;Z(_0x94c40e,_0x5a165c+_0x310e72*(_0x43e429+_0x503fd4),_0x1c955d,_0x43e429,_0x1789d8,X['ghostRadius']),_0x94c40e['fillStyle']=X[_0x1fd327(0x2a7)],_0x94c40e[_0x1fd327(0x1f5)](),_0x94c40e[_0x1fd327(0x18b)]();});});}(_0x4400b9||Vn(this[_0x1f2ef4(0x19c)][_0x1f2ef4(0x14f)])||Hn(this[_0x1f2ef4(0x19c)][_0x1f2ef4(0x14f)])?[]:[_0x1f2ef4(0x33e),_0x1f2ef4(0x13e)])[_0x1f2ef4(0x29c)](_0x465d5f=>{const _0x590b30=_0x1f2ef4;let _0x49d63e=_0x194148[_0x465d5f];if(_0x49d63e['length']===0x0)return;let _0x2daf34=_0x49d63e[_0x590b30(0x157)]*_0x1789d8+Math[_0x590b30(0x18f)](0x0,_0x49d63e['length']-0x1)*_0x503fd4,_0x1dd0da=_0x484fd5['y']-_0x2daf34/0x2,_0x4114be=_0x465d5f==='right'?_0x19f815+_0x15a33a:_0x19f815,_0x1d19e2=_0x465d5f==='right'?_0x4114be+_0x133f51['branchGap']:_0x4114be-_0x133f51['branchGap'],_0x14cc9c=_0x465d5f===_0x590b30(0x13e)?_0x19f815+_0x15a33a+_0x33f8f6:_0x19f815-_0x33f8f6-_0x43e429;_0x94c40e['beginPath'](),_0x94c40e[_0x590b30(0x230)](_0x4114be,_0x484fd5['y']),_0x94c40e[_0x590b30(0x2f3)](_0x1d19e2,_0x484fd5['y']),_0x49d63e[_0x590b30(0x157)]>0x1&&(_0x94c40e['moveTo'](_0x1d19e2,_0x1dd0da+_0x1789d8/0x2),_0x94c40e[_0x590b30(0x2f3)](_0x1d19e2,_0x1dd0da+_0x2daf34-_0x1789d8/0x2)),_0x49d63e[_0x590b30(0x29c)]((_0x53cd70,_0x338c92)=>{const _0x11cbf6=_0x590b30;let _0x38335f=_0x1dd0da+_0x338c92*(_0x1789d8+_0x503fd4)+_0x1789d8/0x2;_0x94c40e['moveTo'](_0x1d19e2,_0x38335f),_0x94c40e[_0x11cbf6(0x2f3)](_0x465d5f===_0x11cbf6(0x13e)?_0x14cc9c:_0x14cc9c+_0x43e429,_0x38335f);}),_0x94c40e['stroke'](),_0x49d63e[_0x590b30(0x29c)]((_0x480810,_0x47aca2)=>{const _0x4f93b4=_0x590b30;Z(_0x94c40e,_0x14cc9c,_0x1dd0da+_0x47aca2*(_0x1789d8+_0x503fd4),_0x43e429,_0x1789d8,X[_0x4f93b4(0x3dc)]),_0x94c40e[_0x4f93b4(0x19e)]=X['ghostFillColor'],_0x94c40e[_0x4f93b4(0x1f5)](),_0x94c40e[_0x4f93b4(0x18b)]();});}),Z(_0x94c40e,_0x19f815,_0x4375fe,_0x15a33a,_0x25c7e5,X[_0x1f2ef4(0x1c9)]),_0x94c40e['fillStyle']=X[_0x1f2ef4(0x23c)],_0x94c40e[_0x1f2ef4(0x1f5)](),_0x94c40e[_0x1f2ef4(0x18b)](),_0x94c40e['fillStyle']=X[_0x1f2ef4(0x1a8)],_0x94c40e[_0x1f2ef4(0x31c)]=It(X[_0x1f2ef4(0x1b5)],X[_0x1f2ef4(0x396)],_0x2c9e0d),_0x94c40e['textAlign']=_0x1f2ef4(0x3b8),_0x94c40e[_0x1f2ef4(0x1ad)]='middle';let _0x45a10a=X[_0x1f2ef4(0x341)]/_0x2c9e0d;return _0x94c40e[_0x1f2ef4(0x3b5)](_0x775f9b,_0x484fd5['x'],_0x484fd5['y'],Math[_0x1f2ef4(0x18f)](0x1,_0x15a33a-_0x45a10a*0x2)),_0x94c40e[_0x1f2ef4(0x3ab)](),this[_0x1f2ef4(0x32a)](!0x1),this;}};const Kn={'children':[{'text':_0x775f9b,'orderKey':_0x12f706(0x0),'side':_0x1bfc49(0x13e)},{'text':_0x775f9b,'orderKey':_0x12f706(0x1),'side':'right'},{'text':_0x775f9b,'orderKey':_0x12f706(0x2),'side':'right'}]};var qn=class extends _0x5dfc4c{constructor(..._0x2d6db9){super(..._0x2d6db9),K(this,'_template',Kn);}[_0x1bfc49(0x303)](_0x1e6d29){const _0xc6fd35=_0x1bfc49;var _0x41fae7,_0xf2a535;let _0x48b225=(_0x41fae7=_0x1e6d29==null?void 0x0:_0x1e6d29[_0xc6fd35(0x12d)])==null?_0x1e6d29==null||(_0xf2a535=_0x1e6d29[_0xc6fd35(0x2fb)])==null?void 0x0:_0xf2a535['root'][_0xc6fd35(0x12d)]:_0x41fae7;this[_0xc6fd35(0x3a9)]={'rootText':_0x1e6d29==null?void 0x0:_0x1e6d29[_0xc6fd35(0x285)],'structureKind':_0x1e6d29==null?void 0x0:_0x1e6d29['structureKind'],'branchLineType':_0x1e6d29==null?void 0x0:_0x1e6d29['branchLineType'],'children':this[_0xc6fd35(0x1d6)](_0x48b225,_0x1e6d29==null?void 0x0:_0x1e6d29[_0xc6fd35(0x14f)]),'blueprint':_0x1e6d29!=null&&_0x1e6d29[_0xc6fd35(0x2fb)]?this[_0xc6fd35(0x137)](_0x1e6d29[_0xc6fd35(0x2fb)]):void 0x0};}['getTemplate'](){const _0xb0e95e=_0x1bfc49;var _0x483e71;return{'rootText':this[_0xb0e95e(0x3a9)][_0xb0e95e(0x285)],'structureKind':this[_0xb0e95e(0x3a9)][_0xb0e95e(0x14f)],'branchLineType':this[_0xb0e95e(0x3a9)][_0xb0e95e(0x2c6)],'children':(_0x483e71=this[_0xb0e95e(0x3a9)]['children'])==null?void 0x0:_0x483e71[_0xb0e95e(0x288)](_0x403fc3=>({..._0x403fc3})),'blueprint':this[_0xb0e95e(0x3a9)]['blueprint']?this[_0xb0e95e(0x137)](this[_0xb0e95e(0x3a9)][_0xb0e95e(0x2fb)]):void 0x0};}[_0x1bfc49(0x137)](_0x3c0d76){const _0x3947fc=_0x1bfc49;return{'title':_0x3c0d76['title'],'root':this[_0x3947fc(0x349)](_0x3c0d76['root'])};}[_0x1bfc49(0x349)](_0x1ba974){const _0x1601fe=_0x1bfc49;return{..._0x1ba974,'foreignAttributes':_0x1ba974['foreignAttributes']?{..._0x1ba974[_0x1601fe(0x151)]}:void 0x0,'children':_0x1ba974[_0x1601fe(0x12d)][_0x1601fe(0x288)](_0x125d32=>this['_cloneBlueprintNode'](_0x125d32))};}[_0x1bfc49(0x1d6)](_0xa7fbca,_0x29fc0b){const _0x59723d=_0x1bfc49;let _0x3086e0=!_0xa7fbca,_0x48047b=_0xa7fbca==null?Kn[_0x59723d(0x12d)]:_0xa7fbca;return _0x48047b==null?void 0x0:_0x48047b[_0x59723d(0x288)]((_0x5d9d16,_0x164b52)=>{const _0x3eb0e5=_0x59723d;var _0x391dbd;return{..._0x5d9d16,'text':(_0x391dbd=_0x5d9d16[_0x3eb0e5(0x1ed)])==null?_0x775f9b:_0x391dbd,'side':this[_0x3eb0e5(0x260)](_0x5d9d16[_0x3eb0e5(0x1b9)],_0x164b52,_0x29fc0b,_0x3086e0)};});}[_0x1bfc49(0x260)](_0x6ca775,_0x2999be,_0x5cc44b,_0x156684){const _0x5c772e=_0x1bfc49;return _0x5cc44b===_0x5c772e(0x318)?_0x156684||_0x6ca775==null?_0x5c772e(0x3ef):_0x6ca775:_0x5cc44b===_0x5c772e(0x29e)?_0x156684||_0x6ca775==null?_0x5c772e(0x33e):_0x6ca775:_0x5cc44b===_0x5c772e(0x30e)?_0x156684||_0x6ca775==null?'right':_0x6ca775:_0x5cc44b==='tree-alternate'?_0x156684||_0x6ca775==null?_0x2999be%0x2==0x0?_0x5c772e(0x33e):_0x5c772e(0x13e):_0x6ca775:_0x5cc44b===_0x5c772e(0x3e4)?_0x156684||_0x6ca775==null?_0x2999be%0x2==0x0?_0x5c772e(0x1ba):_0x5c772e(0x3ef):_0x6ca775:_0x5cc44b===_0x5c772e(0x25e)&&(_0x156684||_0x6ca775==null)?_0x2999be%0x2==0x0?_0x5c772e(0x33e):_0x5c772e(0x13e):_0x6ca775;}};function Jn(_0x2d0def,_0xee64eb){const _0xeae527=_0x1bfc49;let _0x33fb88=Number[_0xeae527(0x20e)](_0xee64eb[_0xeae527(0x1d7)])&&_0xee64eb['zoomRatio']>0x0?_0xee64eb[_0xeae527(0x1d7)]:0x1;return{'x':Math['round']((_0x2d0def[_0xeae527(0x154)]-_0xee64eb[_0xeae527(0x2f7)]['x'])/_0x33fb88),'y':Math[_0xeae527(0x207)]((_0x2d0def[_0xeae527(0x12c)]-_0xee64eb[_0xeae527(0x2f7)]['y'])/_0x33fb88)};}function Yn(_0x348d3a){const _0x25c8fe=_0x1bfc49;var _0x4fea84;if(_0x348d3a!=null&&_0x348d3a[_0x25c8fe(0x1b7)]){_0x348d3a['dispose']();return;}_0x348d3a==null||(_0x4fea84=_0x348d3a[_0x25c8fe(0x125)])==null||_0x4fea84[_0x25c8fe(0x3c7)](_0x348d3a);}function Xn(_0x4afe13){const _0x543abb=_0x1bfc49;var _0x379bf8;return _0x4afe13[_0x543abb(0x29a)]===_0x2257b4['MindMap']&&((_0x379bf8=_0x4afe13['pendingInsert'])==null?void 0x0:_0x379bf8[_0x543abb(0x149)])===_0x2257b4[_0x543abb(0x3d8)];}let Zn=class extends _0x5b09aa{constructor(_0x2daad4,_0x44e97f,_0x670a15,_0x35de9b,_0x23b98e,_0x34b277,_0x18c72a){const _0x5d0b98=_0x1bfc49;super(),this[_0x5d0b98(0x2d9)]=_0x2daad4,this[_0x5d0b98(0x222)]=_0x44e97f,this['_stateService']=_0x670a15,this[_0x5d0b98(0x3ca)]=_0x35de9b,this[_0x5d0b98(0x313)]=_0x23b98e,this[_0x5d0b98(0x29f)]=_0x34b277,this['_boardTextEditingService']=_0x18c72a,K(this,_0x5d0b98(0x14a),null),K(this,_0x5d0b98(0x281),null),this[_0x5d0b98(0x1f8)]();}[_0x1bfc49(0x1f8)](){const _0x492100=_0x1bfc49;var _0x70e033;let {scene:_0x3a362e,unitId:_0x5e3142}=this['_renderContext'],_0x1f483a=this[_0x492100(0x222)][_0x492100(0x155)](_0x5e3142,_0x3a60f9[_0x492100(0x375)]);if(!_0x1f483a)return;let _0x5eeade=(_0x70e033=_0x3a362e['onPointerMove$'])==null?void 0x0:_0x70e033[_0x492100(0x142)]((_0x31fb04,_0xeeb5bc)=>{const _0x563b99=_0x492100;this[_0x563b99(0x393)](_0x31fb04,_0xeeb5bc);}),_0x36f203=_0x3a362e['onPointerDown$'][_0x492100(0x142)]((_0x1521f0,_0x1e9f66)=>{this['_handlePointerDown'](_0x1f483a,_0x1521f0,_0x1e9f66);});this[_0x492100(0x3ac)](_0x34ad80(()=>Yn(_0x5eeade))),this['disposeWithMe'](_0x34ad80(()=>Yn(_0x36f203)));let _0x55897e=this[_0x492100(0x1c1)][_0x492100(0x262)][_0x492100(0x20c)](()=>{const _0x57f49e=_0x492100;this[_0x57f49e(0x355)](),this['_syncPreviewObject']();});this[_0x492100(0x3ac)](_0x34ad80(()=>Yn(_0x55897e))),this['disposeWithMe'](_0x34ad80(()=>{_0x3a362e['enableObjectsEvent'](),this['_removePreviewObject']();})),this[_0x492100(0x355)](),this[_0x492100(0x272)]();}[_0x1bfc49(0x355)](){const _0x3c6c5e=_0x1bfc49;Xn(this[_0x3c6c5e(0x1c1)]['getState']())?this[_0x3c6c5e(0x2d9)][_0x3c6c5e(0x247)]['disableObjectsEvent']():this[_0x3c6c5e(0x2d9)]['scene'][_0x3c6c5e(0x3ee)]();}['_syncPreviewObject'](){const _0x427ee9=_0x1bfc49;var _0x30568d,_0x2570fa;let _0x534998=this[_0x427ee9(0x1c1)][_0x427ee9(0x2d3)]();if(!Xn(_0x534998)){this['_removePreviewObject']();return;}let _0x26cd36=this[_0x427ee9(0x2f2)](),_0x443290=this[_0x427ee9(0x313)][_0x427ee9(0x26f)]();_0x26cd36[_0x427ee9(0x3af)]({'point':this[_0x427ee9(0x281)],'structureKind':_0x443290[_0x427ee9(0x14f)],'children':_0x443290['children'],'blueprint':_0x443290[_0x427ee9(0x2fb)],'zoomRatio':_0x534998[_0x427ee9(0x1d7)]}),(_0x30568d=(_0x2570fa=this[_0x427ee9(0x2d9)][_0x427ee9(0x247)])[_0x427ee9(0x32a)])==null||_0x30568d[_0x427ee9(0x3c7)](_0x2570fa,!0x0);}[_0x1bfc49(0x2f2)](){const _0x20b09c=_0x1bfc49;var _0x1dd379,_0x1cb4cb;if(this[_0x20b09c(0x14a)])return this[_0x20b09c(0x14a)];let _0x33f714=this[_0x20b09c(0x313)][_0x20b09c(0x26f)](),_0x4acbe0=new Gn(Rn,{'point':this[_0x20b09c(0x281)],'structureKind':_0x33f714[_0x20b09c(0x14f)],'children':_0x33f714[_0x20b09c(0x12d)],'blueprint':_0x33f714[_0x20b09c(0x2fb)],'zoomRatio':this['_stateService'][_0x20b09c(0x2d3)]()[_0x20b09c(0x1d7)]});return this[_0x20b09c(0x14a)]=_0x4acbe0,(_0x1dd379=(_0x1cb4cb=this[_0x20b09c(0x2d9)][_0x20b09c(0x247)])[_0x20b09c(0x2a2)])==null||_0x1dd379[_0x20b09c(0x3c7)](_0x1cb4cb,_0x4acbe0,zn),_0x4acbe0;}[_0x1bfc49(0x3a8)](){const _0x3ed9f7=_0x1bfc49;var _0x5a6db4,_0x149e34,_0x340064,_0x5439cb;if(!this[_0x3ed9f7(0x14a)]){this[_0x3ed9f7(0x281)]=null;return;}(_0x5a6db4=(_0x149e34=this['_renderContext'][_0x3ed9f7(0x247)])[_0x3ed9f7(0x197)])==null||_0x5a6db4[_0x3ed9f7(0x3c7)](_0x149e34,[this[_0x3ed9f7(0x14a)]]),this[_0x3ed9f7(0x14a)]=null,this['_lastPoint']=null,(_0x340064=(_0x5439cb=this['_renderContext'][_0x3ed9f7(0x247)])[_0x3ed9f7(0x32a)])==null||_0x340064[_0x3ed9f7(0x3c7)](_0x5439cb,!0x0);}['_getPointFromEvent'](_0x2064db){const _0x294b35=_0x1bfc49;let _0x48b07f=this[_0x294b35(0x1c1)]['getState']();return Jn(_0x2064db,{'panOffset':_0x48b07f[_0x294b35(0x1e7)],'zoomRatio':_0x48b07f[_0x294b35(0x1d7)]});}[_0x1bfc49(0x3d3)](_0x69723){const _0x1d6723=_0x1bfc49;return{'left':Math['round'](_0x69723['x']-_0x2288ab[_0x1d6723(0x126)]/0x2),'top':Math[_0x1d6723(0x207)](_0x69723['y']-_0x2288ab[_0x1d6723(0x3a3)]/0x2)};}[_0x1bfc49(0x393)](_0xcbab21,_0x39fee9){const _0xa42684=_0x1bfc49;Xn(this[_0xa42684(0x1c1)][_0xa42684(0x2d3)]())&&(this[_0xa42684(0x281)]=this['_getPointFromEvent'](_0xcbab21),this[_0xa42684(0x272)](),_0x39fee9[_0xa42684(0x2e6)]());}[_0x1bfc49(0x3c4)](_0x507472,_0x13f08c,_0x2d291d){const _0x373637=_0x1bfc49;var _0x1467b6,_0x30a362;let _0xc9c8d=this[_0x373637(0x1c1)][_0x373637(0x2d3)](),_0x1dcb5c=(_0x1467b6=_0x13f08c[_0x373637(0x2ee)])==null?0x0:_0x1467b6;if(!Xn(_0xc9c8d)||_0x1dcb5c!==0x0)return;let _0x1c1adc=this[_0x373637(0x3ed)](_0x13f08c),_0x10fef7=this[_0x373637(0x3d3)](_0x1c1adc),_0x2084ad=this[_0x373637(0x313)][_0x373637(0x26f)](),_0x36f77f=_0x523736(0x6),_0x233c0a=_0x507472[_0x373637(0x38d)](),_0x18d490=this[_0x373637(0x3ca)][_0x373637(0x3ae)](_0xc6227f['id'],{'unitId':this['_renderContext'][_0x373637(0x308)],'subUnitId':_0x233c0a,'left':_0x10fef7[_0x373637(0x33e)],'top':_0x10fef7[_0x373637(0x1ba)],'rootNodeId':_0x36f77f,'rootText':_0x2084ad[_0x373637(0x285)],'structureKind':_0x2084ad[_0x373637(0x14f)],'branchLineType':_0x2084ad[_0x373637(0x2c6)],'children':_0x2084ad[_0x373637(0x12d)],'blueprint':_0x2084ad[_0x373637(0x2fb)]});Promise[_0x373637(0x1e1)](_0x18d490)[_0x373637(0x231)](_0x37708b=>{const _0x29a2d7=_0x373637;if(!_0x37708b)return;let _0x59f197={'unitId':this['_renderContext'][_0x29a2d7(0x308)],'subUnitId':_0x233c0a};this[_0x29a2d7(0x29f)][_0x29a2d7(0x251)](_0x59f197,[_0x36f77f],_0x36f77f),this[_0x29a2d7(0x36b)]['ignoreExternalFocusChanges'](),this[_0x29a2d7(0x36b)]['setEditing']({..._0x59f197,'shapeId':_0x36f77f,'shapeKey':_0x3f73c8(_0x59f197['unitId'],_0x36f77f),'visible':!0x0});}),this[_0x373637(0x1c1)][_0x373637(0x298)](_0x2257b4[_0x373637(0x20f)]),_0x2d291d[_0x373637(0x2e6)](),(_0x30a362=_0x13f08c['preventDefault'])==null||_0x30a362[_0x373637(0x3c7)](_0x13f08c);}};Zn=J([q(0x1,_0x49e7f1),q(0x2,_0x1ce780),q(0x3,_0x38f57d),q(0x4,_0xbc3476(qn)),q(0x5,_0x4f61df),q(0x6,_0xbc3476(_0x1cecde))],Zn);var Qn=class extends _0x5dfc4c{constructor(..._0x3052db){const _0x2e85a8=_0x1bfc49;super(..._0x3052db),K(this,_0x2e85a8(0x228),new _0x5163f6()),K(this,_0x2e85a8(0x238),this[_0x2e85a8(0x228)][_0x2e85a8(0x146)]());}[_0x1bfc49(0x291)](_0x3de26d){const _0x34f79f=_0x1bfc49;this[_0x34f79f(0x228)][_0x34f79f(0x128)](_0x3de26d);}[_0x1bfc49(0x1b7)](){const _0x303077=_0x1bfc49;this[_0x303077(0x228)][_0x303077(0x1d1)](),super['dispose']();}};function _0x822b(){const _0x1ebeb8=['boards-mind-ui.toolbar.primary.line','clear','onDblclick$','mind-map-layout-dropdown','rootNodeId','boards-mind-ui.saveDescription','_getPointerLiveBounds','Mind\x20map','univer-flex\x20univer-gap-2','parentBounds','boards-mind-ui.panel.structureKind.timelineHorizontal','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-xs\x20univer-text-gray-600','paste-as-new','_activeNodeId','_resolveControlSide','targetNodeId','dataTransfer','_getPointerScreenPoint','liveRootBounds','left','boards-mind-ui.panel.tab.structure','boards-mind-ui.panel.layout.left','textPaddingScreen','has','_removeDragPreviewObject','dot','univer-space-y-2','rootStartBounds','hideRootControls','getObject','_cloneBlueprintNode','M16\x2029h18c7\x200\x2010-5\x2010-12v-3M34\x2029h10c7\x200\x2010\x205\x2010\x2012v3','arrow-up','UNIVER_BOARDS_MIND_UI_PLUGIN','add-child-top','registerProvider','_applyPointerChildDrag','addSibling','preventDefault','style-divider','renderGhostNode','setPendingInsert','_syncSceneInputMode','_hideSelectionForChildDrag','univer-w-24','univer-h-9\x20univer-w-12','univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','_shortcutService','join','_objectEventDisposables','M56\x2011h11M56\x2051h11','quadraticCurveTo','incomingConnectorStyle','getHitControl','getShortcutDisplay','getConfig','transientPreviewForeground','item','toPrimitive','branch-rounded-orthogonal','importExport','glyphWidth','requestRender','univer-flex\x20univer-justify-end\x20univer-gap-2','_boardTextEditingService','detach','orthogonal','px\x20','LEFT','entries','_applyDragTopologyAction','scopeId','_resolveDirtyBounds','_attachActivePointerDragListeners','UNIVER_BOARD','shapeData','version','iterator','lineJoin','univer-size-5','_resolveHostSize','getSnapshot','onClick','fromEntries','snapDistance','_dragStart','arrow-right','_uiStateService','textStyle','boards-mind-ui.panel.rename','textAlign','mindmap','move','Shape','currentTarget','_resolveCreateChildSide','hide','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getActivePageId','1072Xkdgzy','boards-mind-ui.toolbar.action.addSibling','fontFamily','arrow-left','boards-mind-ui.description','_handlePointerMove','170420WhbDdO','documentStyle','rootFontSize','M20\x2025h13M20\x2035h13M20\x2045h13','pipe','Escape','repeat(','_handleNodeUpdateCommand','slice','globalAlpha','onPointerUp$','univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-white','_interactionSurfaceService','structure','branchGap','rootHeight','pointerStartY','items','number','clearControl$','_removePreviewObject','_template','setContextValue','restore','disposeWithMe','save','executeCommand','updateState','connectorData','context','_capturePointerChildDragStart','newParentNodeId','_resolveControlBounds','fillText','boards-mind-ui.toolbar.action.layout','_isPointInBounds','center','_initEditingRestore','_syncDragPreview','univer-w-20\x20univer-shrink-0','objectAlpha','middle','Timeline','panel','_activePreview','MIDDLE','badgeCount','surfaceColor','_handlePointerDown','svg','TOP','call','set','branch-orthogonal','_commandService','ghostFontWeight','_findChildNodeAtPoint','updateElement','min','solid','isRoot','boards-mind-ui.toolbar.panel.line','_isChildDragPastActivationThreshold','_resolveRootTopLeft','univer-text-xs\x20univer-text-gray-400\x20dark:!univer-text-gray-500','_registerComponents','arrow-down','visible','MindMap','_createTopologyBoundsByElementId','_attachObjectPointerScheduled','add-sibling-before','ghostRadius','buttons','clientX','collapsed','_debouncedLayoutTimer','circle','6907480AVcCgP','text/plain','timeline-horizontal','ArrowLeft','referenceNodeId','boards-mind-ui.panel.layout.both','SquareDot','setConfig','render','layout','transform','_getPointFromEvent','enableObjectsEvent','bottom','_object','boundsByElementId','_boardUIStateService','toolbar','_restoreActivePreview','getElementById','vertical','radius','siblingGap','boards-mind-ui.alignBottom','string','univer-w-full\x20univer-text-xs','after','14rVfxtB','_resolveRootChildControlSides','mind-map-stroke','getTransformerByCreate','pointercancel','unsubscribe','rootWidth','_resolvePreviewSourceBounds','next','textFill','siblingGlyphSize','branch-curve','offsetY','children','boards-mind-ui.toolbar.action.copy','preview','transformByState','board-mind-map-description-dialog','changeEnd$','_getBoardPointFromEvent','_getZoomRatio','_childDragActivated','univer-max-w-[min(760px,calc(100vw-32px))]','_cloneBlueprint','72908RQQmID','univer-min-w-0\x20univer-flex-1\x20univer-justify-start\x20univer-truncate\x20univer-text-left','_boardElementService','primary','data','addSiblingNode','right','_resolveIncomingConnectorStyle','boards-mind-ui.descriptionPlaceholder','nodeId','subscribeEvent','activeEditingId','oKey','_getSceneObject','asObservable','0\x200\x2024\x2024','M4.5\x2016.5h4.2c1.9\x200\x203.3-1.5\x203.3-3.3','type','_previewObject','_createShortcutItems','currentColor','getOwnPropertyDescriptor','tree-alternate','structureKind','1.8','foreignAttributes','interactionSurfaceActive$','structured','offsetX','getUnit','M12\x2026h11M58\x2036h11M12\x2045h11','length','add-sibling-or-child','pointerStartX','_seedExistingNodeSizes','rootChildSides','onPointerDown$','boards-mind-ui.panel.importOPML','beginMindMapMode','_previewHostSize','boards-mind-ui.toolbar.action.fontColor','boards-mind-ui.toolbar.primary.more','success','dragObjectAlpha','isHit','add-child','board-mind-map-drag-preview-object','from','board.mind-map.floating-toolbar','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','board.operation.mind-map.keyboard-shortcut','ignoreExternalFocusChanges','title','univer-space-y-1','BACKSPACE','dropdown','localeCompare','boards-mind-ui.panel.tab.importExport','label','_ensureDragPreviewObject','bold','_syncChildDragPreviewObject','getSelectedObjectMap','0\x200\x2080\x2056','_childDragSelectionHidden','ghost','params','pluginName','_dragPreviewObject','_consumePointerEvent','boards-mind-ui.toolbar.action.paste','_executeCreateAndEdit','Tree\x20diagram','_subscribeElementDataChanges','connector','boards-mind-ui.toolbar.action.delete','_createKeyboardShortcutOperation','_activePointerDragDisposables','_objectPointerDisposables','getEditing','onCommandExecuted','_countDescendants','path','stroke','_rememberNodeSize','_activeScopeId','25836459LmyGiV','max','RIGHT','_nodeSizeByKey','_addChild','glyphHoverWidth','strokeWidth','fallbackNodeWidth','boards-mind-ui.panel.branchLineType.orthogonal','removeObjects','hasChildren','M22\x208h36M22\x2048h36M14\x2018v20M66\x2018v20','boards-mind-ui.toolbar.primary.fontColor','M40\x209v40M40\x2020c8\x200\x2011\x204\x2011\x2011v8M40\x2035c-8\x200-11\x204-11\x2011v4','_state','editCurrentNode','fillStyle','parentNodeId','show','allowRootReparent','defineProperty','_config','more','mindmap-horizontal','_queueLayout','elementId','rootTextColor','_pasteUnderSelectedNode','_isControlEvent','JUSTIFIED','dirtyPaddingScreen','textBaseline','boards-mind-ui.toolbar.panel.more','univer-flex\x20univer-min-w-0\x20univer-flex-1\x20univer-items-center\x20univer-gap-1','boards-mind-ui.panel.cancel','M42\x2012v32M42\x2020c0\x204-3\x206-7\x206h-7M42\x2030c0\x204\x203\x206\x207\x206h7M42\x2039c0\x204-3\x206-7\x206h-7','_injector','curve','addParentNode','rootFontWeight','glyphSize','dispose','opml','side','top','_lastChildDragAction','boards-mind-ui.panel.exportOPML','line','typography','trim','structureScopeId','_stateService','univer-bg-[#e8eefc]\x20univer-text-[#2f6fed]\x20hover:univer-bg-[#e8eefc]','univer-mb-3\x20univer-w-full','boards-mind-ui.toolbar.action.addChild','strikethrough','hoveredControl','connectorAlpha','sourceHighlightStrokeColor','rootRadius','_intrinsicSizeService','parseInt','_provider','_dialogService','univer-border-b\x20univer-border-gray-200\x20univer-p-4\x20dark:!univer-border-gray-700','clearSelection','collapse-all','complete','pointerup','getObjectIncludeInGroup','registerCommand','nodeHeight','_normalizeChildren','zoomRatio','_syncMindMapTextEditorContext','addChildNode','nodeWidth','lineWidthScreen','15381FHvhCK','_getElementKey','_ensureObject','ghostTextColor','_openSelectedTextEditing','resolve','action','boards-mind-ui.toolbar.panel.typography','collapsedDescendantCount','registerRenderModule','univer-mb-3\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-900\x20dark:!univer-text-gray-100','viewportPanOffset','clearPendingInsert','_syncRootReparentPreview','shapeText','_getSelectedMindMapContext','evented','text','ARROW_UP','_syncControls','_syncPointerChildDragPreview',',\x20minmax(0,\x201fr))','_previewRefreshService','sort','Dash','fill','_contextService','get','_init','univer-border-b\x20univer-border-gray-200\x20univer-p-3\x20dark:!univer-border-gray-700','extraProps','underline','findIndex','gap','FOCUSING_MIND_MAP_TEXT_EDITOR','_boardCanvasPopManagerService','rgb','writeText','attachPopupToObject','_resolvePreviewTextStyle','changing$','exec','getBoundingClientRect','round','bounds','boards-mind-ui.alignLeft','dash','Branch','subscribe','setHoveredControl','isFinite','Select','placement','key','onReady','_getLiveObjectBounds','onPointerCancel$','boards-mind-ui.panel.spacing.siblingGap','sourceDashScreen','DELETE','board-mind-map-node-controls-object','addChildRadius','isRootNode','_syncChildDragPreview','_resolveSelectedEntry','setShapeSidebarOpen','direction','_queueDebouncedLayout','before','_scheduleAttachObjectPointerListeners','_instanceSrv','titleKey','outlineItems','_collapseAll','strokeStyle','objects','_refresh$','point','toggle-collapse','univer-cursor-not-allowed\x20univer-text-gray-300\x20hover:univer-bg-transparent','editingParams$','_copySelectedNode','_removeObject','_updateHostSize','moveTo','then','abs','SolidLine','boards-mind-ui.toolbar.primary.typography','selectedIds','style','boards-mind-ui.alignMiddle','refresh$','collapsePlusMinDistance','_attachObjectPointerListeners','_resolveSelectedMindMapEntryFromState','primaryColor','color','popup','copy','function','boards-mind-ui.panel.branchLineType.roundedOrthogonal','M16\x2028c16\x200\x2025-13\x2043-13M16\x2028c16\x200\x2025\x2013\x2043\x2013','M24\x2012v32M24\x2019c0\x204\x203\x206\x207\x206h7M24\x2029c0\x204\x203\x206\x207\x206h7M24\x2039c0\x204\x203\x206\x207\x206h7','kind','_debouncedLayouts','_resolveArrowNavigationTarget','scene','_navigateByTopology','_mindMapClipboardService','add-sibling-after','dispose$','ARROW_RIGHT','_getBlankBoardContext','small','toLowerCase','SHIFT','selectElements','ArrowUp','mind-map-fill','elementData','paste','boards-mind-ui.alignCenter','_clearPopupIfSelectionChanged','enabled','1.0.0-alpha.7','subUnitId','_componentManager','M19.5\x207.5h-4.2c-1.9\x200-3.3\x201.5-3.3\x203.3','M15\x2031h50M35\x2031V18c0-4\x203-7\x208-7h9M35\x2031v13c0\x204\x203\x207\x208\x207h9','timeline-vertical','getElementData','_resolveChildSide','_isPopupSelectionStillActive','state$','@univerjs-pro/boards-mind-ui','_pasteAsNewMindMap','univer-mb-4','_drawSourceHighlight','root','_consumeControlEvent','delete','_attachObjectEvents','boards-mind-ui.panel.tab.layout','add-child-right','lineCap','_resolveCurrentBoardContext','getTemplate','siblingDotGap','flatMap','_syncPreviewObject','_toFiniteBounds','getElementDataForUnit','divider-','_handleElementUpdate','univer-h-7\x20univer-min-w-9\x20univer-w-auto\x20univer-gap-1\x20univer-px-1.5','open','elementUpdate$','onChange','166206aqAEwC','filter','addDescription','height','ArrowDown','timelineAxisGap','_lastPoint','badgeFontWeight','_isEditingMindMapNode','sourceBounds','rootText','_layoutFlushScheduled','defaultValue','map','registerShortcut','width','214431QzzIkG','_resolveNodeSize','_createQuoteShortcut','getPayload','find','horizontalGap','notify','M12\x2015h9M12\x2028h9M12\x2041h9M59\x2015h9M59\x2028h9M59\x2041h9','_syncRootScopePreview','registerAdapter','timeline','_configService','univer-flex\x20univer-items-center\x20univer-gap-1\x20univer-truncate\x20univer-rounded\x20univer-py-1\x20univer-text-left\x20univer-text-gray-800','setActiveTool','rounded-orthogonal','activeTool','univer-flex\x20univer-flex-col\x20univer-gap-2','forEach','fontColor','tree-left','_elementStateService','boards-mind-ui.panel.structureKind.treeAlternate','_pointerDragStart','addObject','_textEditingService','isTransforming','M56\x2012v32M56\x2019c0\x204-3\x206-7\x206h-7M56\x2029c0\x204-3\x206-7\x206h-7M56\x2039c0\x204-3\x206-7\x206h-7','boards-mind-ui.panel.structureKind.treeLeft','ghostFillColor','effectAllowed','_restoreObjectToDragStart','boards-mind-ui.alignRight','textColor','addChild','boards-mind-ui.panel.spacing.branchGap','_getMindMapChildren','push','univer-mb-2\x20univer-text-lg\x20univer-text-gray-900','values','boards-mind-ui.panel.structureKind.mindmapVertical','siblingHoverRadius','sourceHighlightFillColor','clientY','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','horizontalAlign','labelKey','elementAdd$','_disposeActivePointerDragListeners','description','add-child-left','controls','onPointerMove$','addEventListener','default','_buildPopupSelectionKey','_handleShortcut','opacity','_popupDisposable','createControl$','branchLineType','_executeNodeOperation','zIndex','_popupSelectionKey','_instanceService','transientPreview','some','register','custom','italic','boards-mind-ui.toolbar.action.fill','_renderManagerService','_queuedLayouts','getState','BOTTOM','spacing','_cancelPointerChildDrag','true','beginPath','_renderContext','decorate','univer-grid\x20univer-h-14\x20univer-overflow-hidden\x20univer-rounded-xl\x20univer-bg-gray-100\x20univer-p-1','_openDescriptionDialog','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','161ytEaOC','constructor','setEditing','univer-text-xs\x20univer-text-gray-500','object','dividerBefore','dashType','navigator','stopPropagation','_enableMindMapToolbarTool','_getBoardsUIConfig','_clearPopup','ARROW_LEFT','promote','detachWhenNoSnap','icon','button','hasCommand','68MKhjuA','_drawConnectorPreview','_ensurePreviewObject','lineTo','_showPopupForSelection','makeDirtyNoDebounce','div','panOffset','span','orderKey','boards-mind-ui.panel.tab.','blueprint','ENTER','ArrowRight','focusedId','ghostBounds','_resolveChildDragTopologyAction','reduce','dropEffect','setTemplate','child','_applyRootTranslation','add','boards-mind-ui.panel.emptyNodes','unitId','visualRadius','removeEventListener','closePath','element','hypot','tree-right','OPERATION','badgeFontSize','_executeChildDragAction','fontSize','_insertStateService','add-child-bottom','close','_executeAndLayout','borderWidth','mindmap-vertical','verticalAlign','lineWidth','_syncElementDataToScene','font','value','both','symbol','keys','edit-text','reparent','#d8dce3','includes','prototype','depth','dataModel','_captureDragStart','none','makeDirty'];_0x822b=function(){return _0x1ebeb8;};return _0x822b();}function $n(_0xd94cd2){const _0x5a0f5c=_0x1bfc49;return typeof _0xd94cd2==_0x5a0f5c(0x3a6)&&Number['isFinite'](_0xd94cd2)&&_0xd94cd2>0x0;}function er(_0x3a37d5,_0xded75c,_0x9759aa){const _0x26db87=_0x1bfc49;var _0x205c57;let _0x41e385=_0x3a37d5[_0xded75c],_0x33cdfc=_0x4b908c(_0x41e385==null?void 0x0:_0x41e385['element']);if(!_0x41e385||!_0x33cdfc)return null;let _0x497890=_0x5a9769(_0x41e385,_0x9759aa);if(!_0x497890)return null;let _0x382231=(_0x205c57=_0x41e385[_0x26db87(0x3ec)])==null?_0x41e385[_0x26db87(0x30c)][_0x26db87(0x3ec)]:_0x205c57;return _0x47afba({..._0x3a37d5,[_0xded75c]:{..._0x41e385,'transform':{..._0x382231,'width':_0x497890[_0x26db87(0x28a)],'height':_0x497890['height']},'element':{..._0x41e385[_0x26db87(0x30c)],'transform':{..._0x41e385[_0x26db87(0x30c)]['transform'],'width':_0x497890[_0x26db87(0x28a)],'height':_0x497890[_0x26db87(0x27e)]}}}},_0x33cdfc[_0x26db87(0x1c0)]);}let tr=class extends _0x5b09aa{constructor(_0x3e62fb,_0x1f2d1b,_0x4d6326,_0x52aa9a,_0x3f7727){const _0x405799=_0x1bfc49;super(),this[_0x405799(0x2d9)]=_0x3e62fb,this[_0x405799(0x1ca)]=_0x1f2d1b,this[_0x405799(0x13a)]=_0x4d6326,this['_textEditingService']=_0x52aa9a,this[_0x405799(0x1f2)]=_0x3f7727,K(this,_0x405799(0x3c0),null),K(this,_0x405799(0x1cc),{'match':_0x3df736=>_0x3df736[_0x405799(0x308)]===this[_0x405799(0x2d9)][_0x405799(0x308)]&&!!_0x4b908c(_0x3df736[_0x405799(0x30c)]),'resolveHostSize':_0x26ceb5=>this[_0x405799(0x37b)](_0x26ceb5),'previewHostSize':_0x24a9ac=>this[_0x405799(0x15f)](_0x24a9ac),'updateHostSize':_0x2a072a=>this['_updateHostSize'](_0x2a072a)}),this[_0x405799(0x3ac)](this[_0x405799(0x1ca)][_0x405799(0x34e)](this[_0x405799(0x1cc)])),this['_initEditingRestore'](),this[_0x405799(0x3ac)](_0x34ad80(()=>this[_0x405799(0x3f4)]()));}[_0x1bfc49(0x22f)](_0x2375a3){const _0x89d1be=_0x1bfc49;return this[_0x89d1be(0x15f)](_0x2375a3);}['_previewHostSize'](_0x1e736d){const _0x54205d=_0x1bfc49;var _0xfce6a;let _0x1e1671=this['_resolveHostSize'](_0x1e736d);if(!_0x1e1671)return!0x1;let _0x48b767=(_0xfce6a=_0x1e736d[_0x54205d(0x254)]['transform'])==null?_0x1e736d['elementData']['element'][_0x54205d(0x3ec)]:_0xfce6a;return!this[_0x54205d(0x3c0)]&&_0x48b767[_0x54205d(0x28a)]===_0x1e1671[_0x54205d(0x28a)]&&_0x48b767[_0x54205d(0x27e)]===_0x1e1671[_0x54205d(0x27e)]||this['_syncLayoutPreview'](_0x1e736d,_0x1e1671),!0x0;}[_0x1bfc49(0x37b)](_0x2fa8df){const _0xf26ea5=_0x1bfc49;return!$n(_0x2fa8df['params']['width'])||!$n(_0x2fa8df[_0xf26ea5(0x17a)]['height'])?null:_0x5a9769(_0x2fa8df[_0xf26ea5(0x254)],{'width':_0x2fa8df['params']['width'],'height':_0x2fa8df[_0xf26ea5(0x17a)]['height']});}[_0x1bfc49(0x3b9)](){const _0x301e3a=_0x1bfc49;this[_0x301e3a(0x3ac)](_0x34ad80(this[_0x301e3a(0x2a3)][_0x301e3a(0x22c)]['pipe'](_0x17a1de(this[_0x301e3a(0x24b)]))[_0x301e3a(0x20c)](_0x4650c8=>{_0x4650c8||this['_restoreActivePreview']();})));}['_syncLayoutPreview'](_0x3c24d3,_0x146b10){const _0x3d4f96=_0x1bfc49;var _0x58100a;let _0x53a7b1=this[_0x3d4f96(0x13a)]['getElementData'](_0x3c24d3['params']['unitId'],_0x3c24d3[_0x3d4f96(0x17a)][_0x3d4f96(0x25a)]),_0x225360=er(_0x53a7b1,_0x3c24d3[_0x3d4f96(0x17a)]['shapeId'],_0x146b10),_0x61e887=_0x4b908c((_0x58100a=_0x53a7b1[_0x3c24d3[_0x3d4f96(0x17a)]['shapeId']])==null?void 0x0:_0x58100a[_0x3d4f96(0x30c)]);!_0x225360||!_0x61e887||(this[_0x3d4f96(0x3c0)]={'unitId':_0x3c24d3[_0x3d4f96(0x17a)][_0x3d4f96(0x308)],'subUnitId':_0x3c24d3[_0x3d4f96(0x17a)][_0x3d4f96(0x25a)],'scopeId':_0x61e887[_0x3d4f96(0x1c0)]},this[_0x3d4f96(0x31b)](_0x225360,_0x61e887['structureScopeId'])&&this['_previewRefreshService']['notify']({'unitId':_0x3c24d3[_0x3d4f96(0x17a)][_0x3d4f96(0x308)],'subUnitId':_0x3c24d3[_0x3d4f96(0x17a)][_0x3d4f96(0x25a)],'nodeId':_0x3c24d3[_0x3d4f96(0x17a)]['shapeId'],'scopeId':_0x61e887[_0x3d4f96(0x1c0)]}));}[_0x1bfc49(0x3f4)](){const _0x4a092a=_0x1bfc49;let _0x30b60f=this[_0x4a092a(0x3c0)];if(!_0x30b60f)return;this[_0x4a092a(0x3c0)]=null;let _0xccae76=this[_0x4a092a(0x13a)][_0x4a092a(0x25f)](_0x30b60f[_0x4a092a(0x308)],_0x30b60f[_0x4a092a(0x25a)]);this[_0x4a092a(0x31b)](_0xccae76,_0x30b60f[_0x4a092a(0x372)])&&this['_previewRefreshService'][_0x4a092a(0x291)]({'unitId':_0x30b60f[_0x4a092a(0x308)],'subUnitId':_0x30b60f[_0x4a092a(0x25a)],'nodeId':_0x30b60f['scopeId'],'scopeId':_0x30b60f[_0x4a092a(0x372)]});}[_0x1bfc49(0x31b)](_0x39dcc1,_0xfbb0b){const _0x536b76=_0x1bfc49;let _0x474533=!0x1;if(Object[_0x536b76(0x2b1)](_0x39dcc1)[_0x536b76(0x29c)](_0x5b4a20=>{const _0x541935=_0x536b76;var _0x4b3e30;let _0x24138c=_0x4b908c(_0x5b4a20[_0x541935(0x30c)]),_0x4e64e8=(_0x4b3e30=_0x5b4a20[_0x541935(0x30c)][_0x541935(0x2ce)])==null?void 0x0:_0x4b3e30[_0x541935(0x153)];if(!(_0x5b4a20[_0x541935(0x1a7)]===_0xfbb0b||(_0x24138c==null?void 0x0:_0x24138c[_0x541935(0x1c0)])===_0xfbb0b||(_0x4e64e8==null?void 0x0:_0x4e64e8['structureScopeId'])===_0xfbb0b))return;let _0x17480e=this['_getSceneObject'](_0x5b4a20['elementId']);_0x17480e&&(_0x474533=_0x18f241(_0x17480e,_0x5b4a20,{'elementData':_0x39dcc1,'unitId':this[_0x541935(0x2d9)][_0x541935(0x308)]})||_0x474533);}),_0x474533){var _0x1e8092,_0x1a0e36;this[_0x536b76(0x2d9)][_0x536b76(0x247)][_0x536b76(0x32a)](!0x0),(_0x1e8092=(_0x1a0e36=this[_0x536b76(0x2d9)][_0x536b76(0x247)])['requestRender'])==null||_0x1e8092['call'](_0x1a0e36);}return _0x474533;}[_0x1bfc49(0x145)](_0xa02056){const _0x28e9e0=_0x1bfc49;var _0x437d8e,_0x15f691,_0x1c2571;let _0x3ec74f=_0x3f73c8(this[_0x28e9e0(0x2d9)][_0x28e9e0(0x308)],_0xa02056),_0x3ac659=this[_0x28e9e0(0x2d9)][_0x28e9e0(0x247)];return(_0x437d8e=(_0x15f691=(_0x1c2571=_0x3ac659['getObjectIncludeInGroup'])==null?void 0x0:_0x1c2571[_0x28e9e0(0x3c7)](_0x3ac659,_0x3ec74f))==null?this[_0x28e9e0(0x2d9)][_0x28e9e0(0x247)][_0x28e9e0(0x348)](_0x3ec74f):_0x15f691)==null?null:_0x437d8e;}};tr=J([q(0x1,_0xbc3476(_0x50c9e9)),q(0x2,_0xbc3476(_0x295e11)),q(0x3,_0xbc3476(_0x1cecde)),q(0x4,_0xbc3476(Qn))],tr);const $={'radius':0x12,'addChildRadius':0xe,'siblingHoverRadius':0xa,'siblingDotRadius':0x5,'siblingDotGap':0x3,'gap':0xa,'collapsePlusMinDistance':0x2c,'primaryColor':Y[_0x1bfc49(0x23c)],'surfaceColor':Y[_0x1bfc49(0x3c3)],'borderWidth':0x2,'glyphSize':0x8,'addChildGlyphSize':0x6,'siblingGlyphSize':5.5,'glyphWidth':2.4,'glyphHoverWidth':0x3,'badgeFontWeight':0x258,'badgeFontSize':0x12,'fontFamily':Y['fontFamily']};function nr(_0x3acf1f){const _0x2fea5f=_0x1bfc49;let _0x548c4c=$[_0x2fea5f(0x3f7)],_0xc01d38=$[_0x2fea5f(0x219)],_0x500ae5=$[_0x2fea5f(0x2b3)],_0x2be228=$[_0x2fea5f(0x1fd)],_0x4f38fe=$['siblingDotRadius'],_0x2209fd=_0x4f38fe+$[_0x2fea5f(0x270)],_0x503c66=$[_0x2fea5f(0x239)],_0x4ce596=_0x3acf1f['bounds']['top']+_0x3acf1f['bounds'][_0x2fea5f(0x27e)]/0x2,_0x66b4f4=_0x3acf1f[_0x2fea5f(0x208)][_0x2fea5f(0x33e)]+_0x3acf1f['bounds']['width']/0x2,_0x123cd1=_0x3acf1f[_0x2fea5f(0x208)]['left']-_0x548c4c-_0x2be228,_0x254a3f=_0x3acf1f[_0x2fea5f(0x208)]['left']+_0x3acf1f[_0x2fea5f(0x208)]['width']+_0x548c4c+_0x2be228,_0x1ca7cc=_0x3acf1f[_0x2fea5f(0x208)]['top']-_0x548c4c-_0x2be228,_0x2b16db=_0x3acf1f[_0x2fea5f(0x208)][_0x2fea5f(0x1ba)]+_0x3acf1f[_0x2fea5f(0x208)][_0x2fea5f(0x27e)]+_0x548c4c+_0x2be228,_0x1e8ee8=_0x3acf1f['bounds'][_0x2fea5f(0x33e)]-_0xc01d38-_0x2be228,_0x187a02=_0x3acf1f['bounds'][_0x2fea5f(0x33e)]+_0x3acf1f[_0x2fea5f(0x208)][_0x2fea5f(0x28a)]+_0xc01d38+_0x2be228,_0x5ece98=_0x3acf1f[_0x2fea5f(0x208)][_0x2fea5f(0x1ba)]-_0xc01d38-_0x2be228,_0x478f90=_0x3acf1f[_0x2fea5f(0x208)][_0x2fea5f(0x1ba)]+_0x3acf1f['bounds']['height']+_0xc01d38+_0x2be228,_0x32580f=[],_0x14da24=_0x3acf1f['side']===_0x2fea5f(0x1ba)||_0x3acf1f[_0x2fea5f(0x1b9)]===_0x2fea5f(0x3ef),_0x5dcaee=_0x14da24?_0x66b4f4:_0x3acf1f[_0x2fea5f(0x1b9)]===_0x2fea5f(0x33e)?_0x123cd1:_0x254a3f,_0xe1ae03=_0x14da24?_0x3acf1f[_0x2fea5f(0x1b9)]==='top'?_0x1ca7cc:_0x2b16db:_0x4ce596;if(_0x3acf1f[_0x2fea5f(0x198)]&&_0x3acf1f[_0x2fea5f(0x1e4)]>0x0)return _0x32580f[_0x2fea5f(0x2af)]({'kind':'toggle-collapse','x':_0x5dcaee,'y':_0xe1ae03,'radius':_0x548c4c,'badgeCount':_0x3acf1f[_0x2fea5f(0x1e4)]}),_0x32580f;if(_0x3acf1f[_0x2fea5f(0x3d0)]){var _0x1867bb;((_0x1867bb=_0x3acf1f[_0x2fea5f(0x15b)])==null?_0x14da24?[_0x2fea5f(0x1ba),_0x2fea5f(0x3ef)]:[_0x2fea5f(0x33e),_0x2fea5f(0x13e)]:_0x1867bb)[_0x2fea5f(0x29c)](_0xebce22=>{const _0x9572dd=_0x2fea5f;_0xebce22==='top'?_0x32580f['push']({'kind':_0x9572dd(0x34d),'x':_0x66b4f4,'y':_0x5ece98,'radius':_0xc01d38}):_0xebce22===_0x9572dd(0x3ef)?_0x32580f[_0x9572dd(0x2af)]({'kind':_0x9572dd(0x314),'x':_0x66b4f4,'y':_0x478f90,'radius':_0xc01d38}):_0xebce22==='left'?_0x32580f[_0x9572dd(0x2af)]({'kind':'add-child-left','x':_0x1e8ee8,'y':_0x4ce596,'radius':_0xc01d38}):_0x32580f[_0x9572dd(0x2af)]({'kind':'add-child-right','x':_0x187a02,'y':_0x4ce596,'radius':_0xc01d38});});}else _0x32580f[_0x2fea5f(0x2af)]({'kind':_0x3acf1f[_0x2fea5f(0x1b9)]==='left'?'add-child-left':_0x3acf1f[_0x2fea5f(0x1b9)]==='top'?_0x2fea5f(0x34d):_0x3acf1f[_0x2fea5f(0x1b9)]===_0x2fea5f(0x3ef)?_0x2fea5f(0x314):_0x2fea5f(0x26c),'x':_0x14da24?_0x66b4f4:_0x3acf1f[_0x2fea5f(0x1b9)]===_0x2fea5f(0x33e)?_0x1e8ee8:_0x187a02,'y':_0x14da24?_0x3acf1f['side']===_0x2fea5f(0x1ba)?_0x5ece98:_0x478f90:_0x4ce596,'radius':_0xc01d38}),_0x14da24?(_0x32580f[_0x2fea5f(0x2af)]({'kind':_0x2fea5f(0x3db),'placement':'before','x':_0x3acf1f['bounds']['left']-_0x2209fd,'y':_0x4ce596,'radius':_0x500ae5,'visualRadius':_0x4f38fe}),_0x32580f['push']({'kind':'add-sibling-after','placement':_0x2fea5f(0x3fc),'x':_0x3acf1f[_0x2fea5f(0x208)][_0x2fea5f(0x33e)]+_0x3acf1f['bounds'][_0x2fea5f(0x28a)]+_0x2209fd,'y':_0x4ce596,'radius':_0x500ae5,'visualRadius':_0x4f38fe})):(_0x32580f[_0x2fea5f(0x2af)]({'kind':_0x2fea5f(0x3db),'placement':_0x2fea5f(0x220),'x':_0x66b4f4,'y':_0x3acf1f['bounds'][_0x2fea5f(0x1ba)]-_0x2209fd,'radius':_0x500ae5,'visualRadius':_0x4f38fe}),_0x32580f[_0x2fea5f(0x2af)]({'kind':'add-sibling-after','placement':_0x2fea5f(0x3fc),'x':_0x66b4f4,'y':_0x3acf1f[_0x2fea5f(0x208)]['top']+_0x3acf1f[_0x2fea5f(0x208)][_0x2fea5f(0x27e)]+_0x2209fd,'radius':_0x500ae5,'visualRadius':_0x4f38fe}));if(_0x3acf1f['hasChildren']){let _0x153d92={'kind':_0x2fea5f(0x22a),'x':_0x5dcaee,'y':_0xe1ae03,'radius':_0x548c4c};_0x32580f[_0x2fea5f(0x2af)](_0x153d92);let _0x100506=_0x32580f[_0x2fea5f(0x28f)](_0x505ae5=>_0x505ae5['kind']===(_0x3acf1f['side']==='left'?_0x2fea5f(0x2bc):_0x3acf1f['side']==='top'?'add-child-top':_0x3acf1f[_0x2fea5f(0x1b9)]===_0x2fea5f(0x3ef)?_0x2fea5f(0x314):'add-child-right'));_0x100506&&Math[_0x2fea5f(0x30d)](_0x100506['x']-_0x153d92['x'],_0x100506['y']-_0x153d92['y'])<_0x503c66&&(_0x3acf1f[_0x2fea5f(0x1b9)]===_0x2fea5f(0x1ba)||_0x3acf1f[_0x2fea5f(0x1b9)]===_0x2fea5f(0x3ef)?_0x100506['y']=_0x153d92['y']+(_0x3acf1f[_0x2fea5f(0x1b9)]===_0x2fea5f(0x1ba)?-_0x503c66:_0x503c66):_0x100506['x']=_0x153d92['x']+(_0x3acf1f['side']==='left'?-_0x503c66:_0x503c66));}return _0x32580f;}const rr=_0x1bfc49(0x218),ir=_0x1254b3['connectorAffordance'];function ar(_0xfed065,_0x2e40e9){const _0x1f91fc=_0x1bfc49;return!!_0xfed065&&_0xfed065[_0x1f91fc(0x244)]===_0x2e40e9[_0x1f91fc(0x244)]&&_0xfed065['x']===_0x2e40e9['x']&&_0xfed065['y']===_0x2e40e9['y'];}var or=class extends _0x68d0be{constructor(_0x2b0893=rr,_0x5b2f2f){const _0x5039d7=_0x1bfc49;super(_0x2b0893),K(this,_0x5039d7(0x19c),{'controls':[]}),this['evented']=!0x0,this[_0x5039d7(0x2c8)]=_0x38268b['transientControl'],this[_0x5039d7(0x3af)](_0x5b2f2f);}[_0x1bfc49(0x3af)](_0x5efe30){const _0x1e7e53=_0x1bfc49;this['_state']={...this[_0x1e7e53(0x19c)],..._0x5efe30},this['_state']['controls'][_0x1e7e53(0x157)]>0x0?this[_0x1e7e53(0x1a0)]():this[_0x1e7e53(0x38b)](),this[_0x1e7e53(0x32a)](!0x0);}[_0x1bfc49(0x20d)](_0x49c24e){const _0x131b02=_0x1bfc49;!_0x49c24e&&!this[_0x131b02(0x19c)][_0x131b02(0x1c6)]||_0x49c24e&&ar(this[_0x131b02(0x19c)]['hoveredControl'],_0x49c24e)||(this['_state']={...this[_0x131b02(0x19c)],'hoveredControl':_0x49c24e},this['makeDirty'](!0x0));}[_0x1bfc49(0x360)](_0x1a8642){const _0x825bd4=_0x1bfc49;for(let _0x4a8c8c=this[_0x825bd4(0x19c)][_0x825bd4(0x2bd)][_0x825bd4(0x157)]-0x1;_0x4a8c8c>=0x0;--_0x4a8c8c){let _0x1113cf=this[_0x825bd4(0x19c)][_0x825bd4(0x2bd)][_0x4a8c8c];if(Math[_0x825bd4(0x30d)](_0x1a8642['x']-_0x1113cf['x'],_0x1a8642['y']-_0x1113cf['y'])<=_0x1113cf[_0x825bd4(0x3f7)])return _0x1113cf;}return null;}[_0x1bfc49(0x164)](_0x248ffe){return!!this['getHitControl']({'x':_0x248ffe['x'],'y':_0x248ffe['y']});}[_0x1bfc49(0x3ea)](_0xb88f22,_0x159acb){const _0x43813e=_0x1bfc49;return!this[_0x43813e(0x3d7)]||this[_0x43813e(0x19c)][_0x43813e(0x2bd)][_0x43813e(0x157)]===0x0?(this[_0x43813e(0x32a)](!0x1),this):(_0xb88f22[_0x43813e(0x3ad)](),this[_0x43813e(0x19c)]['controls'][_0x43813e(0x29c)](_0x10504d=>{const _0x3e7f41=_0x43813e;var _0x4e028d;let _0x32102b=ar(this[_0x3e7f41(0x19c)][_0x3e7f41(0x1c6)],_0x10504d),_0xde2958=_0x10504d[_0x3e7f41(0x3c2)]!==void 0x0,_0xa22fe2=_0x10504d[_0x3e7f41(0x244)]===_0x3e7f41(0x2bc)||_0x10504d[_0x3e7f41(0x244)]===_0x3e7f41(0x26c)||_0x10504d[_0x3e7f41(0x244)]===_0x3e7f41(0x34d)||_0x10504d[_0x3e7f41(0x244)]==='add-child-bottom',_0x16ba1f=_0x10504d['kind']===_0x3e7f41(0x3db)||_0x10504d['kind']===_0x3e7f41(0x24a),_0x59ebca=_0x16ba1f&&!_0x32102b?(_0x4e028d=_0x10504d[_0x3e7f41(0x309)])==null?_0x10504d[_0x3e7f41(0x3f7)]:_0x4e028d:_0x10504d[_0x3e7f41(0x3f7)];if(_0xb88f22[_0x3e7f41(0x2d8)](),_0xb88f22[_0x3e7f41(0x19e)]=_0x10504d[_0x3e7f41(0x244)]==='toggle-collapse'?$[_0x3e7f41(0x3c3)]:$[_0x3e7f41(0x23c)],_0xb88f22[_0x3e7f41(0x226)]=$[_0x3e7f41(0x23c)],_0xb88f22[_0x3e7f41(0x31a)]=$[_0x3e7f41(0x317)],_0xb88f22['arc'](_0x10504d['x'],_0x10504d['y'],_0x59ebca,0x0,Math['PI']*0x2),_0xb88f22[_0x3e7f41(0x1f5)](),(!_0x16ba1f||_0x32102b)&&_0xb88f22[_0x3e7f41(0x18b)](),!_0xde2958&&(!_0x16ba1f||_0x32102b)){if(_0xb88f22['beginPath'](),_0xb88f22[_0x3e7f41(0x226)]=_0x10504d['kind']===_0x3e7f41(0x22a)?$['primaryColor']:$[_0x3e7f41(0x3c3)],_0xb88f22[_0x3e7f41(0x31a)]=_0x16ba1f?$[_0x3e7f41(0x368)]:_0x32102b?$[_0x3e7f41(0x193)]:$[_0x3e7f41(0x368)],_0xb88f22['lineCap']=_0x3e7f41(0x207),_0x10504d['kind']===_0x3e7f41(0x22a)){let _0x230196=$['glyphSize'];_0xb88f22[_0x3e7f41(0x230)](_0x10504d['x']+_0x230196/0x2,_0x10504d['y']-_0x230196),_0xb88f22[_0x3e7f41(0x2f3)](_0x10504d['x']-_0x230196/0x2,_0x10504d['y']),_0xb88f22['lineTo'](_0x10504d['x']+_0x230196/0x2,_0x10504d['y']+_0x230196);}else{let _0x30c833=_0x16ba1f?$[_0x3e7f41(0x12a)]:_0xa22fe2?$['addChildGlyphSize']:$[_0x3e7f41(0x1b6)];_0xb88f22[_0x3e7f41(0x230)](_0x10504d['x']-_0x30c833,_0x10504d['y']),_0xb88f22['lineTo'](_0x10504d['x']+_0x30c833,_0x10504d['y']),_0xb88f22[_0x3e7f41(0x230)](_0x10504d['x'],_0x10504d['y']-_0x30c833),_0xb88f22['lineTo'](_0x10504d['x'],_0x10504d['y']+_0x30c833);}_0xb88f22[_0x3e7f41(0x18b)]();}_0xde2958&&(_0xb88f22['fillStyle']=$['primaryColor'],_0xb88f22[_0x3e7f41(0x31c)]=$[_0x3e7f41(0x282)]+'\x20'+$[_0x3e7f41(0x310)]+_0x3e7f41(0x36e)+$[_0x3e7f41(0x390)],_0xb88f22[_0x3e7f41(0x385)]='center',_0xb88f22[_0x3e7f41(0x1ad)]=_0x3e7f41(0x3bd),_0xb88f22[_0x3e7f41(0x3b5)](String(_0x10504d[_0x3e7f41(0x3c2)]),_0x10504d['x'],_0x10504d['y']));}),_0xb88f22['restore'](),this['makeDirty'](!0x1),this);}};function sr(_0x2c8729){const _0xbf2301=_0x1bfc49;return _0x2c8729==='tree-left'||_0x2c8729===_0xbf2301(0x30e)||_0x2c8729===_0xbf2301(0x14e);}function cr(_0x411d79){const _0x39c99c=_0x1bfc49;return _0x411d79===_0x39c99c(0x3e4)||_0x411d79===_0x39c99c(0x25e);}function lr(_0x1fb78c,_0x92fb86){const _0x29d187=_0x1bfc49;let _0xb1d0ef=Number['isFinite'](_0x92fb86['zoomRatio'])&&_0x92fb86[_0x29d187(0x1d7)]>0x0?_0x92fb86[_0x29d187(0x1d7)]:0x1;return{'x':Math['round']((_0x1fb78c[_0x29d187(0x154)]-_0x92fb86[_0x29d187(0x2f7)]['x'])/_0xb1d0ef),'y':Math[_0x29d187(0x207)]((_0x1fb78c[_0x29d187(0x12c)]-_0x92fb86[_0x29d187(0x2f7)]['y'])/_0xb1d0ef)};}let ur=class extends _0x5b09aa{constructor(_0x63d47,_0x2d5143,_0x392d44,_0x436260,_0xa28d97,_0x1c33db,_0xcb0907){const _0x1e5154=_0x1bfc49;super(),this[_0x1e5154(0x2d9)]=_0x63d47,this[_0x1e5154(0x13a)]=_0x2d5143,this['_elementStateService']=_0x392d44,this[_0x1e5154(0x1c1)]=_0x436260,this[_0x1e5154(0x3ca)]=_0xa28d97,this[_0x1e5154(0x36b)]=_0x1c33db,this[_0x1e5154(0x1f2)]=_0xcb0907,K(this,_0x1e5154(0x3f0),null),K(this,_0x1e5154(0x35c),null),K(this,'_activeNodeId',null),K(this,'_activeScopeId',null),this['_init']();}['_init'](){const _0x3990e6=_0x1bfc49;var _0x4f7ae2,_0x1ef578,_0x45c32a,_0x17e07e,_0x3e6a94;let {scene:_0x548141}=this[_0x3990e6(0x2d9)],_0x4c0ad1=(_0x4f7ae2=_0x548141['getTransformerByCreate'])==null?void 0x0:_0x4f7ae2[_0x3990e6(0x3c7)](_0x548141);_0x4c0ad1&&(this[_0x3990e6(0x3ac)](_0x34ad80(_0x4c0ad1[_0x3990e6(0x204)][_0x3990e6(0x398)](_0x17a1de(this[_0x3990e6(0x24b)]))[_0x3990e6(0x20c)](({objects:_0xf6efc0})=>{this['_syncControls'](_0xf6efc0,{'hideRootControls':!0x0});}))),this[_0x3990e6(0x3ac)](_0x34ad80(_0x4c0ad1[_0x3990e6(0x132)][_0x3990e6(0x398)](_0x17a1de(this[_0x3990e6(0x24b)]))[_0x3990e6(0x20c)](_0x3937eb=>{const _0x2aaa37=_0x3990e6;let _0xd22d5e=_0x3937eb==null?void 0x0:_0x3937eb[_0x2aaa37(0x227)];this[_0x2aaa37(0x1ef)](_0xd22d5e),setTimeout(()=>this['_syncControls'](_0xd22d5e),0x0);})))),this[_0x3990e6(0x3ac)](_0x34ad80(this[_0x3990e6(0x29f)][_0x3990e6(0x262)][_0x3990e6(0x398)](_0x17a1de(this[_0x3990e6(0x24b)]))['subscribe'](()=>this[_0x3990e6(0x1ef)]()))),this[_0x3990e6(0x3ac)](_0x34ad80(this[_0x3990e6(0x1c1)][_0x3990e6(0x262)][_0x3990e6(0x398)](_0x17a1de(this[_0x3990e6(0x24b)]))['subscribe'](()=>this[_0x3990e6(0x1ef)]()))),this[_0x3990e6(0x3ac)](_0x34ad80(this[_0x3990e6(0x1f2)][_0x3990e6(0x238)][_0x3990e6(0x398)](_0x17a1de(this[_0x3990e6(0x24b)]))['subscribe'](_0x3f0289=>{const _0x4bfa76=_0x3990e6;let _0xadab80=this[_0x4bfa76(0x29f)]['getSnapshot']()['context'];!_0xadab80||_0xadab80['unitId']!==_0x3f0289[_0x4bfa76(0x308)]||_0xadab80['subUnitId']!==_0x3f0289[_0x4bfa76(0x25a)]||this[_0x4bfa76(0x18d)]&&this[_0x4bfa76(0x18d)]!==_0x3f0289[_0x4bfa76(0x372)]||this['_syncControls']();}))),this[_0x3990e6(0x3ac)](_0x34ad80(_0x548141[_0x3990e6(0x2be)][_0x3990e6(0x142)](_0x2c76f5=>this[_0x3990e6(0x393)](_0x2c76f5)))),this[_0x3990e6(0x3ac)](_0x34ad80(_0x548141['onPointerDown$']['subscribeEvent']({'priority':0x4,'next':([_0x34ac63,_0x5af7a4])=>{const _0x39066b=_0x3990e6;this[_0x39066b(0x3c4)](_0x34ac63)&&this[_0x39066b(0x268)](_0x34ac63,_0x5af7a4);}}))),this[_0x3990e6(0x3ac)](_0x34ad80((_0x1ef578=(_0x45c32a=_0x548141[_0x3990e6(0x39e)])==null?void 0x0:_0x45c32a[_0x3990e6(0x142)]({'priority':0x4,'next':([_0x37e5bb,_0x4d2aa5])=>{const _0x255c62=_0x3990e6;this['_isControlEvent'](_0x37e5bb)&&this[_0x255c62(0x268)](_0x37e5bb,_0x4d2aa5);}}))==null?{'dispose':()=>{}}:_0x1ef578)),this[_0x3990e6(0x3ac)](_0x34ad80((_0x17e07e=(_0x3e6a94=_0x548141[_0x3990e6(0x32d)])==null?void 0x0:_0x3e6a94[_0x3990e6(0x142)]({'priority':0x4,'next':([_0x1aa3b4,_0x746aa2])=>{const _0x1842bb=_0x3990e6;this['_isControlEvent'](_0x1aa3b4)&&this[_0x1842bb(0x268)](_0x1aa3b4,_0x746aa2);}}))==null?{'dispose':()=>{}}:_0x17e07e)),this[_0x3990e6(0x3ac)](_0x34ad80(()=>this[_0x3990e6(0x22e)]())),this[_0x3990e6(0x1ef)]();}[_0x1bfc49(0x1de)](){const _0x47ef86=_0x1bfc49;return this[_0x47ef86(0x3f0)]?this[_0x47ef86(0x3f0)]:(this[_0x47ef86(0x3f0)]=new or(rr),this[_0x47ef86(0x26a)](this[_0x47ef86(0x3f0)]),this[_0x47ef86(0x2d9)][_0x47ef86(0x247)][_0x47ef86(0x2a2)](this[_0x47ef86(0x3f0)],ir),this[_0x47ef86(0x3f0)]);}[_0x1bfc49(0x26a)](_0x335c37){const _0x736d20=_0x1bfc49;var _0x5c2f8c;(_0x5c2f8c=this[_0x736d20(0x35c)])==null||_0x5c2f8c[_0x736d20(0x1b7)]();let _0x3f4a1d=new _0x437ac0();_0x3f4a1d[_0x736d20(0x306)](_0x335c37['onPointerDown$'][_0x736d20(0x142)]({'priority':0x4,'next':([_0x277e09,_0xf93d64])=>{const _0x5edab1=_0x736d20;this['_handlePointerDown'](_0x277e09)&&this[_0x5edab1(0x268)](_0x277e09,_0xf93d64);}})),_0x3f4a1d[_0x736d20(0x306)](_0x335c37[_0x736d20(0x39e)]['subscribeEvent']({'priority':0x4,'next':([_0x7e9109,_0x18ce2e])=>{const _0x1f2b9a=_0x736d20;this[_0x1f2b9a(0x1aa)](_0x7e9109)&&this[_0x1f2b9a(0x268)](_0x7e9109,_0x18ce2e);}})),_0x3f4a1d['add'](_0x335c37[_0x736d20(0x32d)][_0x736d20(0x142)]({'priority':0x4,'next':([_0x37dafd,_0xe3c00b])=>{const _0x39e5e2=_0x736d20;this[_0x39e5e2(0x1aa)](_0x37dafd)&&this[_0x39e5e2(0x268)](_0x37dafd,_0xe3c00b);}})),this['_objectEventDisposables']=_0x3f4a1d;}[_0x1bfc49(0x22e)](){const _0x49f548=_0x1bfc49;var _0x1fe226;this[_0x49f548(0x3f0)]&&(this[_0x49f548(0x2d9)][_0x49f548(0x247)]['removeObjects']([this['_object']]),(_0x1fe226=this[_0x49f548(0x35c)])==null||_0x1fe226[_0x49f548(0x1b7)](),this[_0x49f548(0x35c)]=null,this[_0x49f548(0x3f0)]=null,this[_0x49f548(0x338)]=null,this['_activeScopeId']=null,this[_0x49f548(0x2d9)][_0x49f548(0x247)][_0x49f548(0x32a)](!0x0));}['_syncControls'](_0x185f04,_0x1f24fb){const _0x14bc73=_0x1bfc49;var _0x69c07b,_0x5e7c2b,_0x19cd30,_0x55bc58;let _0x1a6156=this[_0x14bc73(0x29f)][_0x14bc73(0x37c)](),_0x536bea=_0x1a6156[_0x14bc73(0x3b1)],_0x1311c8=(_0x69c07b=_0x1a6156['focusedId'])==null?_0x1a6156['selectedIds'][0x0]:_0x69c07b;if(!_0x536bea||!_0x1311c8||_0x1a6156[_0x14bc73(0x235)][_0x14bc73(0x157)]!==0x1){this['_removeObject']();return;}let _0x463119=this[_0x14bc73(0x13a)][_0x14bc73(0x25f)](_0x536bea[_0x14bc73(0x308)],_0x536bea['subUnitId']),_0x1bf68c=_0x463119[_0x1311c8],_0x5ba51b=_0x4b908c(_0x1bf68c==null?void 0x0:_0x1bf68c[_0x14bc73(0x30c)]);if(!_0x1bf68c||!_0x5ba51b){this[_0x14bc73(0x22e)]();return;}let _0x574191=_0x3f73c8(_0x536bea['unitId'],_0x1311c8);if(_0x1f24fb!=null&&_0x1f24fb[_0x14bc73(0x347)]&&_0x5ba51b[_0x14bc73(0x19f)]==null&&_0x185f04!=null&&_0x185f04[_0x14bc73(0x342)](_0x574191)){this['_removeObject']();return;}let _0x50acdf=this[_0x14bc73(0x3b4)](_0x463119,_0x536bea[_0x14bc73(0x308)],_0x1311c8,_0x185f04);if(!_0x50acdf){this[_0x14bc73(0x22e)]();return;}let _0x37c782=Object[_0x14bc73(0x2b1)](_0x463119)[_0x14bc73(0x27c)](_0x5e9d96=>{const _0x12cab0=_0x14bc73;var _0xd0da7b;return((_0xd0da7b=_0x4b908c(_0x5e9d96[_0x12cab0(0x30c)]))==null?void 0x0:_0xd0da7b[_0x12cab0(0x19f)])===_0x1311c8;}),_0x45f34c=_0x5ba51b[_0x14bc73(0x3df)]?this[_0x14bc73(0x189)](_0x463119,_0x1311c8):0x0;this[_0x14bc73(0x338)]=_0x1311c8,this[_0x14bc73(0x18d)]=_0x5ba51b[_0x14bc73(0x1c0)];let _0xebfd44=(_0x5e7c2b=_0x463119[_0x5ba51b[_0x14bc73(0x1c0)]])==null?void 0x0:_0x5e7c2b[_0x14bc73(0x30c)],_0x516a7f=_0x114393(_0xebfd44),_0x249a67=_0xebfd44==null||(_0x19cd30=_0xebfd44[_0x14bc73(0x2ce)])==null||(_0x19cd30=_0x19cd30[_0x14bc73(0x386)])==null||(_0x19cd30=_0x19cd30['layout'])==null?void 0x0:_0x19cd30['structureKind'],_0x94c0a2=(_0x55bc58=_0x516a7f==null?void 0x0:_0x516a7f[_0x14bc73(0x3eb)]['structureKind'])==null?_0x249a67:_0x55bc58,_0x1600a8=_0x5ba51b['parentNodeId']==null,_0x4b394b=this[_0x14bc73(0x339)](_0x5ba51b['side'],_0x1600a8,_0x94c0a2);this[_0x14bc73(0x1de)]()['updateState']({'controls':nr({'bounds':_0x50acdf,'isRoot':_0x1600a8,'side':_0x4b394b,'rootChildSides':this[_0x14bc73(0x3fe)](_0x1600a8,_0x94c0a2),'hasChildren':_0x37c782[_0x14bc73(0x157)]>0x0,'collapsedDescendantCount':_0x45f34c})}),this[_0x14bc73(0x2d9)][_0x14bc73(0x247)][_0x14bc73(0x32a)](!0x0);}[_0x1bfc49(0x339)](_0xb1e6c8,_0x4aa12b,_0x54c195){const _0x2da139=_0x1bfc49;return _0x54c195===_0x2da139(0x25e)?!_0x4aa12b&&(_0xb1e6c8===_0x2da139(0x33e)||_0xb1e6c8==='right')?_0xb1e6c8:_0x2da139(0x3ef):_0x54c195===_0x2da139(0x318)?!_0x4aa12b&&(_0xb1e6c8===_0x2da139(0x1ba)||_0xb1e6c8===_0x2da139(0x3ef))?_0xb1e6c8:_0x2da139(0x3ef):_0xb1e6c8==='left'?_0x2da139(0x33e):'right';}[_0x1bfc49(0x3fe)](_0x3f9af9,_0x1a68b1){const _0x1de337=_0x1bfc49;if(_0x3f9af9){if(sr(_0x1a68b1))return[_0x1de337(0x3ef)];if(_0x1a68b1===_0x1de337(0x3e4))return[_0x1de337(0x13e)];if(_0x1a68b1==='timeline-vertical')return[_0x1de337(0x3ef)];}}['_resolveCreateChildSide'](_0x3a05e5){const _0x5630b0=_0x1bfc49;var _0x340085,_0x7f112e;let _0x543fe4=this['_elementStateService'][_0x5630b0(0x37c)]()[_0x5630b0(0x3b1)];if(!_0x543fe4||!this[_0x5630b0(0x338)])return;let _0x329c85=this[_0x5630b0(0x13a)][_0x5630b0(0x25f)](_0x543fe4[_0x5630b0(0x308)],_0x543fe4[_0x5630b0(0x25a)]),_0x5e5c9d=_0x4b908c((_0x340085=_0x329c85[this[_0x5630b0(0x338)]])==null?void 0x0:_0x340085[_0x5630b0(0x30c)]),_0x55dabb=_0x5e5c9d?_0x114393((_0x7f112e=_0x329c85[_0x5e5c9d[_0x5630b0(0x1c0)]])==null?void 0x0:_0x7f112e['element']):null;if(!((_0x5e5c9d==null?void 0x0:_0x5e5c9d[_0x5630b0(0x19f)])==null&&(sr(_0x55dabb==null?void 0x0:_0x55dabb[_0x5630b0(0x3eb)][_0x5630b0(0x14f)])||cr(_0x55dabb==null?void 0x0:_0x55dabb[_0x5630b0(0x3eb)][_0x5630b0(0x14f)]))))return _0x3a05e5===_0x5630b0(0x2bc)?_0x5630b0(0x33e):_0x3a05e5===_0x5630b0(0x34d)?_0x5630b0(0x1ba):_0x3a05e5==='add-child-bottom'?_0x5630b0(0x3ef):_0x5630b0(0x13e);}['_resolveControlBounds'](_0x3f0053,_0x183b32,_0x434233,_0x2a110b){const _0x42538d=_0x1bfc49;var _0x43f67e,_0x13e573,_0x323fbf;let _0x452b3d=_0x3f73c8(_0x183b32,_0x434233),_0x4b6a53=_0x2a110b==null?void 0x0:_0x2a110b[_0x42538d(0x1f7)](_0x452b3d),_0x495e66=this['_toFiniteBounds'](_0x4b6a53);if(_0x495e66)return _0x495e66;let _0x11a33e=this['_renderContext'][_0x42538d(0x247)],_0x39406c=(_0x43f67e=(_0x13e573=_0x11a33e[_0x42538d(0x1d3)])==null?void 0x0:_0x13e573[_0x42538d(0x3c7)](_0x11a33e,_0x452b3d))==null?(_0x323fbf=_0x11a33e[_0x42538d(0x348)])==null?void 0x0:_0x323fbf['call'](_0x11a33e,_0x452b3d):_0x43f67e;return this[_0x42538d(0x273)](_0x39406c)||_0x2fc33b(_0x3f0053,_0x434233);}[_0x1bfc49(0x273)](_0x38b6c4){const _0x5f49e0=_0x1bfc49;return _0x38b6c4&&Number[_0x5f49e0(0x20e)](_0x38b6c4['left'])&&Number[_0x5f49e0(0x20e)](_0x38b6c4['top'])&&Number[_0x5f49e0(0x20e)](_0x38b6c4['width'])&&Number['isFinite'](_0x38b6c4[_0x5f49e0(0x27e)])?{'left':_0x38b6c4[_0x5f49e0(0x33e)],'top':_0x38b6c4[_0x5f49e0(0x1ba)],'width':_0x38b6c4[_0x5f49e0(0x28a)],'height':_0x38b6c4['height']}:null;}[_0x1bfc49(0x189)](_0x34d4e7,_0x278321){const _0x54e29e=_0x1bfc49;return Object[_0x54e29e(0x2b1)](_0x34d4e7)[_0x54e29e(0x27c)](_0xb3f090=>{const _0x4bb560=_0x54e29e;var _0x287726;return((_0x287726=_0x4b908c(_0xb3f090[_0x4bb560(0x30c)]))==null?void 0x0:_0x287726[_0x4bb560(0x19f)])===_0x278321;})[_0x54e29e(0x301)]((_0x12ff9a,_0x1056bc)=>_0x12ff9a+0x1+this['_countDescendants'](_0x34d4e7,_0x1056bc[_0x54e29e(0x1a7)]),0x0);}[_0x1bfc49(0x393)](_0x657e60){const _0x38c6e7=_0x1bfc49;if(!this['_object'])return;let _0x950801=this[_0x38c6e7(0x1c1)][_0x38c6e7(0x2d3)](),_0x446336=lr(_0x657e60,{'panOffset':_0x950801[_0x38c6e7(0x1e7)],'zoomRatio':_0x950801[_0x38c6e7(0x1d7)]});this[_0x38c6e7(0x3f0)][_0x38c6e7(0x20d)](this[_0x38c6e7(0x3f0)]['getHitControl'](_0x446336));}[_0x1bfc49(0x3c4)](_0x5ece32){const _0xd680ba=_0x1bfc49;var _0x17f03c;if(!this[_0xd680ba(0x3f0)]||!this['_activeNodeId']||((_0x17f03c=_0x5ece32['button'])==null?0x0:_0x17f03c)!==0x0)return!0x1;let _0x4c6427=this[_0xd680ba(0x29f)]['getSnapshot']()[_0xd680ba(0x3b1)];if(!_0x4c6427)return!0x1;let _0x4653a9=this['_stateService']['getState'](),_0x52c003=lr(_0x5ece32,{'panOffset':_0x4653a9[_0xd680ba(0x1e7)],'zoomRatio':_0x4653a9[_0xd680ba(0x1d7)]}),_0x9c8d13=this[_0xd680ba(0x3f0)][_0xd680ba(0x360)](_0x52c003);if(!_0x9c8d13)return!0x1;if(_0x9c8d13['kind']===_0xd680ba(0x22a))return this[_0xd680ba(0x316)](_0x451daf['id'],{'unitId':_0x4c6427[_0xd680ba(0x308)],'subUnitId':_0x4c6427[_0xd680ba(0x25a)],'nodeId':this['_activeNodeId']}),!0x0;if(_0x9c8d13[_0xd680ba(0x244)]===_0xd680ba(0x2bc)||_0x9c8d13['kind']==='add-child-right'||_0x9c8d13[_0xd680ba(0x244)]===_0xd680ba(0x34d)||_0x9c8d13[_0xd680ba(0x244)]===_0xd680ba(0x314)){let _0x3a3484=_0x523736(0x6);return this[_0xd680ba(0x17f)](_0x5c85db['id'],{'unitId':_0x4c6427[_0xd680ba(0x308)],'subUnitId':_0x4c6427[_0xd680ba(0x25a)],'parentNodeId':this['_activeNodeId'],'side':this[_0xd680ba(0x38a)](_0x9c8d13[_0xd680ba(0x244)]),'nodeId':_0x3a3484,'connectorId':_0x523736(0x6)},_0x3a3484),!0x0;}if(_0x9c8d13[_0xd680ba(0x244)]===_0xd680ba(0x3db)||_0x9c8d13[_0xd680ba(0x244)]===_0xd680ba(0x24a)){var _0x234e95;let _0x1231a0=_0x523736(0x6);return this[_0xd680ba(0x17f)](_0x38e794['id'],{'unitId':_0x4c6427['unitId'],'subUnitId':_0x4c6427[_0xd680ba(0x25a)],'nodeId':this[_0xd680ba(0x338)],'placement':(_0x234e95=_0x9c8d13[_0xd680ba(0x210)])==null?_0x9c8d13[_0xd680ba(0x244)]===_0xd680ba(0x3db)?'before':_0xd680ba(0x3fc):_0x234e95,'siblingNodeId':_0x1231a0,'connectorId':_0x523736(0x6)},_0x1231a0),!0x0;}return!0x0;}[_0x1bfc49(0x1aa)](_0x373ffb){const _0x4bfc5b=_0x1bfc49;var _0x1aa9de;if(!this[_0x4bfc5b(0x3f0)]||((_0x1aa9de=_0x373ffb[_0x4bfc5b(0x2ee)])==null?0x0:_0x1aa9de)!==0x0)return!0x1;let _0xce7a03=this[_0x4bfc5b(0x1c1)][_0x4bfc5b(0x2d3)](),_0x2aebbc=lr(_0x373ffb,{'panOffset':_0xce7a03[_0x4bfc5b(0x1e7)],'zoomRatio':_0xce7a03[_0x4bfc5b(0x1d7)]});return!!this[_0x4bfc5b(0x3f0)][_0x4bfc5b(0x360)](_0x2aebbc);}[_0x1bfc49(0x268)](_0x41e279,_0x3155ba){const _0x23eab9=_0x1bfc49;var _0x1cfd33,_0xca124b;_0x3155ba['stopPropagation'](),(_0x1cfd33=_0x41e279[_0x23eab9(0x351)])==null||_0x1cfd33[_0x23eab9(0x3c7)](_0x41e279),(_0xca124b=_0x41e279[_0x23eab9(0x2e6)])==null||_0xca124b[_0x23eab9(0x3c7)](_0x41e279);}[_0x1bfc49(0x316)](_0x2ec6c4,_0x5b317a){const _0x1260c2=_0x1bfc49;let _0x56c64c=this[_0x1260c2(0x18d)],_0x28f20a=this['_commandService']['executeCommand'](_0x2ec6c4,_0x5b317a);Promise[_0x1260c2(0x1e1)](_0x28f20a)[_0x1260c2(0x231)](_0x3d2e2f=>{const _0x22ce2a=_0x1260c2;!_0x3d2e2f||!_0x56c64c||(this[_0x22ce2a(0x1ef)](),Promise[_0x22ce2a(0x1e1)](this['_commandService']['executeCommand'](_0x51487d['id'],{'unitId':_0x5b317a[_0x22ce2a(0x308)],'subUnitId':_0x5b317a[_0x22ce2a(0x25a)],'scopeId':_0x56c64c}))[_0x22ce2a(0x231)](()=>this[_0x22ce2a(0x1ef)]()));});}['_executeCreateAndEdit'](_0x2f5995,_0x23df51,_0x50bc58){const _0x2b94e7=_0x1bfc49;let _0x265fd2={'unitId':_0x23df51['unitId'],'subUnitId':_0x23df51[_0x2b94e7(0x25a)]},_0x5f0d85=this[_0x2b94e7(0x3ca)][_0x2b94e7(0x3ae)](_0x2f5995,_0x23df51);Promise[_0x2b94e7(0x1e1)](_0x5f0d85)[_0x2b94e7(0x231)](_0x8b27ba=>{const _0x4d408c=_0x2b94e7;_0x8b27ba&&(this[_0x4d408c(0x1ef)](),this[_0x4d408c(0x29f)][_0x4d408c(0x251)](_0x265fd2,[_0x50bc58],_0x50bc58),this[_0x4d408c(0x36b)][_0x4d408c(0x16b)](),this['_boardTextEditingService'][_0x4d408c(0x2e0)]({..._0x265fd2,'shapeId':_0x50bc58,'shapeKey':_0x3f73c8(_0x265fd2[_0x4d408c(0x308)],_0x50bc58),'visible':!0x0}));});}};ur=J([q(0x1,_0xbc3476(_0x295e11)),q(0x2,_0xbc3476(_0x4f61df)),q(0x3,_0xbc3476(_0x1ce780)),q(0x4,_0x38f57d),q(0x5,_0xbc3476(_0x1cecde)),q(0x6,_0xbc3476(Qn))],ur);const dr=_0x1bfc49(0x1fe);let fr=class extends _0x5b09aa{constructor(_0x5d2041,_0x49ec33,_0xf609c9,_0x2f6e6c,_0x48898f){const _0x943cb1=_0x1bfc49;super(),this[_0x943cb1(0x13a)]=_0x5d2041,this[_0x943cb1(0x29f)]=_0x49ec33,this['_contextService']=_0xf609c9,this[_0x943cb1(0x3ca)]=_0x2f6e6c,this[_0x943cb1(0x35a)]=_0x48898f,this[_0x943cb1(0x1f8)]();}[_0x1bfc49(0x1f8)](){const _0x5e21f6=_0x1bfc49;this[_0x5e21f6(0x3ac)](this[_0x5e21f6(0x35a)]['registerShortcut'](this[_0x5e21f6(0x28d)]())),this[_0x5e21f6(0x3ac)](_0x34ad80(this[_0x5e21f6(0x29f)][_0x5e21f6(0x262)]['pipe'](_0x17a1de(this[_0x5e21f6(0x24b)]))[_0x5e21f6(0x20c)](()=>{const _0x5a878f=_0x5e21f6;this[_0x5a878f(0x1d8)]();}))),this[_0x5e21f6(0x3ac)](_0x34ad80(()=>{this['_contextService']['setContextValue'](dr,!0x1);})),this[_0x5e21f6(0x1d8)]();}[_0x1bfc49(0x28d)](){const _0x5405ee=_0x1bfc49;return{'id':_0x48415c,'binding':_0x1c11b8[_0x5405ee(0x2fc)]|_0xb17f76[_0x5405ee(0x250)],'priority':0x3e8,'preconditions':_0x3621a0=>_0x3621a0['getContextValue'](_0x5405ee(0x1fe))&&this[_0x5405ee(0x3ca)][_0x5405ee(0x2ef)](_0x48415c)};}[_0x1bfc49(0x1d8)](){const _0x31ab8d=_0x1bfc49;this['_contextService'][_0x31ab8d(0x3aa)](dr,this[_0x31ab8d(0x283)]());}['_isEditingMindMapNode'](){const _0x2c2a88=_0x1bfc49;var _0x3f2c9e;let _0x29423e=this[_0x2c2a88(0x29f)]['getSnapshot'](),_0x1ccd36=_0x29423e[_0x2c2a88(0x3b1)],_0x7948bb=_0x29423e['activeEditingId'];return!_0x1ccd36||!_0x7948bb?!0x1:!!_0x4b908c((_0x3f2c9e=this[_0x2c2a88(0x13a)][_0x2c2a88(0x25f)](_0x1ccd36[_0x2c2a88(0x308)],_0x1ccd36[_0x2c2a88(0x25a)])[_0x7948bb])==null?void 0x0:_0x3f2c9e['element']);}[_0x1bfc49(0x1b7)](){const _0x419705=_0x1bfc49;super['dispose'](),this[_0x419705(0x1f6)][_0x419705(0x3aa)](dr,!0x1);}};fr=J([q(0x0,_0xbc3476(_0x295e11)),q(0x1,_0xbc3476(_0x4f61df)),q(0x2,_0x2c413a),q(0x3,_0x38f57d),q(0x4,_0x419aaa)],fr);const pr=['structure',_0x1bfc49(0x3eb),_0x1bfc49(0x367)];_0x133f51['horizontalGap'],_0x133f51[_0x1bfc49(0x3f8)],_0x133f51[_0x1bfc49(0x3a2)];const mr=[{'labelKey':'boards-mind-ui.panel.spacing.parentGap','key':_0x1bfc49(0x290),..._0x451c65['horizontalGap']},{'labelKey':_0x1bfc49(0x215),'key':_0x1bfc49(0x3f8),..._0x451c65[_0x1bfc49(0x3f8)]},{'labelKey':_0x1bfc49(0x2ad),'key':_0x1bfc49(0x3a2),..._0x451c65[_0x1bfc49(0x3a2)]}],hr=[{'labelKey':'boards-mind-ui.panel.layout.right','value':_0x1bfc49(0x13e)},{'labelKey':_0x1bfc49(0x340),'value':'left'},{'labelKey':_0x1bfc49(0x3e7),'value':_0x1bfc49(0x31e)}],gr=[{'labelKey':'boards-mind-ui.panel.structureKind.mindmapHorizontal','value':_0x1bfc49(0x1a5)},{'labelKey':_0x1bfc49(0x2b2),'value':_0x1bfc49(0x318)},{'labelKey':'boards-mind-ui.panel.structureKind.treeRight','value':_0x1bfc49(0x30e)},{'labelKey':_0x1bfc49(0x2a6),'value':_0x1bfc49(0x29e)},{'labelKey':_0x1bfc49(0x2a0),'value':_0x1bfc49(0x14e)},{'labelKey':_0x1bfc49(0x335),'value':'timeline-horizontal'},{'labelKey':'boards-mind-ui.panel.structureKind.timelineVertical','value':'timeline-vertical'}],_r=[{'labelKey':'boards-mind-ui.panel.branchLineType.curve','value':_0x1bfc49(0x1b3)},{'labelKey':_0x1bfc49(0x241),'value':_0x1bfc49(0x299)},{'labelKey':_0x1bfc49(0x196),'value':_0x1bfc49(0x36d)}];function vr(_0x1be0d8){const _0x25fea0=_0x1bfc49;var _0x5d0c7e,_0xe1c2cf,_0x1d92e3,_0x545bb4,_0x1afc17;let _0x4df088=(_0x5d0c7e=_0x1be0d8==null?void 0x0:_0x1be0d8[_0x25fea0(0x14f)])==null?_0x133f51['structureKind']:_0x5d0c7e;return{'spacing':{'horizontalGap':(_0xe1c2cf=_0x1be0d8==null?void 0x0:_0x1be0d8['horizontalGap'])==null?_0x133f51[_0x25fea0(0x290)]:_0xe1c2cf,'siblingGap':(_0x1d92e3=_0x1be0d8==null?void 0x0:_0x1be0d8[_0x25fea0(0x3f8)])==null?_0x133f51[_0x25fea0(0x3f8)]:_0x1d92e3,'branchGap':(_0x545bb4=_0x1be0d8==null?void 0x0:_0x1be0d8['branchGap'])==null?_0x133f51['branchGap']:_0x545bb4},'direction':(_0x1afc17=_0x1be0d8==null?void 0x0:_0x1be0d8[_0x25fea0(0x21e)])==null?_0x133f51['direction']:_0x1afc17,'structureKind':_0x4df088,'branchLineType':_0x5079ad(_0x4df088,_0x1be0d8==null?void 0x0:_0x1be0d8[_0x25fea0(0x2c6)])};}async function yr(_0x213ed7,_0x194888){const _0x55b173=_0x1bfc49;return await Promise['resolve'](_0x213ed7['executeCommand'](_0x2a6047['id'],_0x194888))?(await Promise['resolve'](_0x213ed7[_0x55b173(0x3ae)](_0x51487d['id'],{'unitId':_0x194888[_0x55b173(0x308)],'subUnitId':_0x194888[_0x55b173(0x25a)],'scopeId':_0x194888[_0x55b173(0x372)]})),!0x0):!0x1;}async function br(_0x49f4b0,_0x1b626a){const _0x483d5a=_0x1bfc49;return await Promise['resolve'](_0x49f4b0['executeCommand'](_0x38032b['id'],_0x1b626a))?(await Promise[_0x483d5a(0x1e1)](_0x49f4b0['executeCommand'](_0x51487d['id'],{'unitId':_0x1b626a[_0x483d5a(0x308)],'subUnitId':_0x1b626a[_0x483d5a(0x25a)],'scopeId':_0x1b626a[_0x483d5a(0x372)]})),!0x0):!0x1;}async function xr(_0x5d1d3a,_0xb72ece){const _0x3862a2=_0x1bfc49;return await Promise[_0x3862a2(0x1e1)](_0x5d1d3a[_0x3862a2(0x3ae)](_0x2a6047['id'],{'unitId':_0xb72ece[_0x3862a2(0x308)],'subUnitId':_0xb72ece[_0x3862a2(0x25a)],'scopeId':_0xb72ece['scopeId'],..._0xb72ece[_0x3862a2(0x290)]===void 0x0?{}:{'horizontalGap':_0xb72ece[_0x3862a2(0x290)]},..._0xb72ece[_0x3862a2(0x3f8)]===void 0x0?{}:{'siblingGap':_0xb72ece[_0x3862a2(0x3f8)]},..._0xb72ece[_0x3862a2(0x3a2)]===void 0x0?{}:{'branchGap':_0xb72ece[_0x3862a2(0x3a2)]}}))?(await Promise[_0x3862a2(0x1e1)](_0x5d1d3a[_0x3862a2(0x3ae)](_0x51487d['id'],{'unitId':_0xb72ece[_0x3862a2(0x308)],'subUnitId':_0xb72ece[_0x3862a2(0x25a)],'scopeId':_0xb72ece[_0x3862a2(0x372)]})),!0x0):!0x1;}async function Sr(_0x372123,_0x28b634){const _0x4df1a5=_0x1bfc49;return _0x28b634[_0x4df1a5(0x141)]===_0x28b634[_0x4df1a5(0x33a)]||!await Promise[_0x4df1a5(0x1e1)](_0x372123['executeCommand'](_0x1123f2['id'],{'unitId':_0x28b634[_0x4df1a5(0x308)],'subUnitId':_0x28b634[_0x4df1a5(0x25a)],'nodeId':_0x28b634[_0x4df1a5(0x141)],'targetNodeId':_0x28b634[_0x4df1a5(0x33a)],'referenceNodeId':_0x28b634['targetNodeId'],'placement':_0x28b634[_0x4df1a5(0x210)]}))?!0x1:(await Promise[_0x4df1a5(0x1e1)](_0x372123[_0x4df1a5(0x3ae)](_0x51487d['id'],{'unitId':_0x28b634[_0x4df1a5(0x308)],'subUnitId':_0x28b634[_0x4df1a5(0x25a)],'scopeId':_0x28b634[_0x4df1a5(0x372)]})),!0x0);}async function Cr(_0x47eefa,_0x403275){const _0x36fd21=_0x1bfc49;let _0x470d58=_0x403275[_0x36fd21(0x1ed)]['trim']();return!_0x470d58||!await Promise[_0x36fd21(0x1e1)](_0x47eefa[_0x36fd21(0x3ae)](_0x21f908['id'],{'unitId':_0x403275[_0x36fd21(0x308)],'subUnitId':_0x403275[_0x36fd21(0x25a)],'nodeId':_0x403275[_0x36fd21(0x141)],'text':_0x470d58}))?!0x1:(await Promise['resolve'](_0x47eefa[_0x36fd21(0x3ae)](_0x51487d['id'],{'unitId':_0x403275[_0x36fd21(0x308)],'subUnitId':_0x403275[_0x36fd21(0x25a)],'scopeId':_0x403275[_0x36fd21(0x372)]})),!0x0);}async function wr(_0x2855a5){const _0x1c087e=_0x1bfc49;var _0x547734;let _0x2af377=(_0x547734=globalThis[_0x1c087e(0x2e5)])==null?void 0x0:_0x547734['clipboard'];return _0x2af377!=null&&_0x2af377[_0x1c087e(0x201)]?(await _0x2af377['writeText'](_0x2855a5),!0x0):!0x1;}async function Tr(_0xfcc508,_0x564409,_0x147a5a=wr){const _0x74219d=_0x1bfc49;let _0x101577=await Promise[_0x74219d(0x1e1)](_0xfcc508[_0x74219d(0x3ae)](_0x255b71['id'],_0x564409));if(typeof _0x101577!=_0x74219d(0x3fa)||!_0x101577)return!0x1;try{return await _0x147a5a(_0x101577)!==!0x1;}catch{return!0x1;}}async function Er(_0x4a9c79,_0x564f17){const _0x20f262=_0x1bfc49;if(!_0x564f17[_0x20f262(0x1b8)][_0x20f262(0x1bf)]())return!0x1;let _0x523202=await Promise[_0x20f262(0x1e1)](_0x4a9c79[_0x20f262(0x3ae)](_0x522db5['id'],_0x564f17));return typeof _0x523202==_0x20f262(0x2e2)&&!!_0x523202&&_0x523202[_0x20f262(0x162)]===!0x0;}function Dr(_0x28baa6,_0x46e27e){const _0x4900c4=_0x1bfc49;let _0x5de4a5=_0x46e27e['trim']()['toLowerCase']();return _0x5de4a5?_0x28baa6['filter'](_0x5b02fb=>_0x5b02fb[_0x4900c4(0x1ed)][_0x4900c4(0x24f)]()[_0x4900c4(0x324)](_0x5de4a5)):_0x28baa6;}function Or(_0x2dde50){const _0x563573=_0x1bfc49;return{'paddingInlineStart':0x8+(Number[_0x563573(0x20e)](_0x2dde50)&&_0x2dde50>0x0?_0x2dde50:0x0)*0x10};}function kr(_0x15369b){const _0x5c8630=_0x1bfc49;return _0x27e6bc(_0x5c8630(0x2f6),{'className':'univer-size-full\x20univer-bg-white\x20univer-text-sm\x20univer-text-gray-700\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-200','data-board-mind-map-panel':'true','children':_0x15369b['children']});}function Ar(_0x521495){const _0x49388d=_0x1bfc49;return _0x27e6bc(_0x49388d(0x2f6),{'className':_0x49388d(0x1f9),'data-board-mind-map-panel-tabs':_0x49388d(0x2d7),'children':_0x27e6bc(_0x5e3c13,{'className':'univer-w-full\x20univer-text-xs','items':_0x521495[_0x49388d(0x3a5)],'value':_0x521495['value'],'onChange':_0x521495[_0x49388d(0x27a)]})});}function jr(_0x2dde31){const _0x10a3e7=_0x1bfc49;return _0x528cbf('section',{'className':_0x10a3e7(0x1ce),'data-board-mind-map-panel-section':_0x10a3e7(0x2d7),'children':[_0x27e6bc('h3',{'className':_0x10a3e7(0x1e6),'children':_0x3c0c33(_0x2f4056)['t'](_0x2dde31[_0x10a3e7(0x223)])}),_0x2dde31[_0x10a3e7(0x12d)]]});}function Mr(_0x3dcb1d){const _0xd2bbcc=_0x1bfc49;return _0x27e6bc(_0xd2bbcc(0x2f6),{'className':_0xd2bbcc(0x3d4),'data-board-mind-map-panel-empty-state':_0xd2bbcc(0x2d7),'children':_0x3dcb1d[_0xd2bbcc(0x12d)]});}function Nr(_0x2cd67b){const _0x35ee71=_0x1bfc49;let _0x4ecc0a=_0x3c0c33(_0x2f4056);return _0x27e6bc(_0x31b62f,{'className':_0x35ee71(0x2e1),'size':_0x35ee71(0x24e),'variant':'default','onClick':_0x2cd67b[_0x35ee71(0x37d)],'children':_0x4ecc0a['t'](_0x35ee71(0x384))});}function Pr(_0xb9bb0){const _0x4a6d50=_0x1bfc49;var _0x310598;let _0x4d2d7d=_0x3c0c33(_0x38f57d),_0x504fbf=_0x3c0c33(_0x4f61df),_0x4ee7cb=_0x3c0c33(_0x2f4056),_0x318f99=(_0x310598=_0xb9bb0[_0x4a6d50(0x224)])==null?[]:_0x310598,[_0x9985e0,_0x3aa774]=_0xe1173c(''),[_0x119473,_0x138244]=_0xe1173c(null),[_0x22fa19,_0xdcff1b]=_0xe1173c(''),_0x1ab23b=vr(_0xb9bb0[_0x4a6d50(0x3eb)]),[_0xab2657,_0x3f2f63]=_0xe1173c(_0x1ab23b[_0x4a6d50(0x2d5)]),[_0x15f23e,_0x50f33e]=_0xe1173c(_0x1ab23b[_0x4a6d50(0x21e)]),[_0xdf1bfe,_0xda7f8]=_0xe1173c(_0x1ab23b[_0x4a6d50(0x14f)]),[_0x5b0732,_0x5b02aa]=_0xe1173c(_0x1ab23b['branchLineType']),[_0xd4602d,_0x3d0c1f]=_0xe1173c(null),[_0x4cc1db,_0x4dddcb]=_0xe1173c(_0x4a6d50(0x3a1)),_0x2e38a4=Dr(_0x318f99,_0x9985e0),_0x2a3ab5={'unitId':_0xb9bb0['unitId'],'subUnitId':_0xb9bb0[_0x4a6d50(0x25a)],'scopeId':_0xb9bb0[_0x4a6d50(0x372)]},_0xbca500=pr[_0x4a6d50(0x288)](_0x198aac=>({'label':_0x4ee7cb['t'](_0x4a6d50(0x2fa)+_0x198aac),'value':_0x198aac})),_0x15ea01=_r['filter'](_0x121c9f=>_0x121c9f[_0x4a6d50(0x31d)]!=='curve'||_0x26dc5f(_0xdf1bfe)),_0x55f5aa=_0x1d3961=>{_0x50f33e(_0x1d3961),yr(_0x4d2d7d,{..._0x2a3ab5,'direction':_0x1d3961});};_0x5c5d9f(()=>{const _0x55bee2=_0x4a6d50;let _0x5b6b58=vr(_0xb9bb0[_0x55bee2(0x3eb)]);_0x3f2f63(_0x5b6b58[_0x55bee2(0x2d5)]),_0x50f33e(_0x5b6b58[_0x55bee2(0x21e)]),_0xda7f8(_0x5b6b58['structureKind']),_0x5b02aa(_0x5b6b58[_0x55bee2(0x2c6)]);},[_0xb9bb0[_0x4a6d50(0x3eb)],_0xb9bb0[_0x4a6d50(0x372)]]);let _0x1996c2=_0x13671=>{let _0x3550a0=_0x5079ad(_0x13671,_0x5b0732);_0xda7f8(_0x13671),_0x5b02aa(_0x3550a0),yr(_0x4d2d7d,{..._0x2a3ab5,'structureKind':_0x13671,..._0x3550a0===_0x5b0732?null:{'branchLineType':_0x3550a0}});},_0x6cb18a=_0x156eac=>{let _0x3c59d7=_0x5079ad(_0xdf1bfe,_0x156eac);_0x5b02aa(_0x3c59d7),br(_0x4d2d7d,{..._0x2a3ab5,'branchLineType':_0x3c59d7});},_0x5f0210=(_0x2ff91b,_0x3c85d6)=>{let _0x217ab7={..._0xab2657,[_0x2ff91b]:_0x3c85d6};_0x3f2f63(_0x217ab7),xr(_0x4d2d7d,{..._0x2a3ab5,..._0x217ab7});},_0xd2e967=()=>{const _0x51efe4=_0x4a6d50;Er(_0x4d2d7d,{'unitId':_0xb9bb0[_0x51efe4(0x308)],'subUnitId':_0xb9bb0[_0x51efe4(0x25a)],'left':0x78,'top':0x78,'opml':_0x22fa19})[_0x51efe4(0x231)](_0x2fadcf=>{_0x2fadcf&&_0xdcff1b('');});},_0x53209b=()=>{Tr(_0x4d2d7d,_0x2a3ab5);},_0x3dcf0d=(_0x42e2a0,_0x4de55c)=>{_0x138244({'nodeId':_0x42e2a0,'text':_0x4de55c});},_0x12c397=()=>{const _0x494bce=_0x4a6d50;_0x119473&&Cr(_0x4d2d7d,{..._0x2a3ab5,'nodeId':_0x119473[_0x494bce(0x141)],'text':_0x119473[_0x494bce(0x1ed)]})[_0x494bce(0x231)](_0x463a46=>{_0x463a46&&_0x138244(null);});},_0x1c5963=(_0x333320,_0xf90ef7)=>{const _0x395490=_0x4a6d50;if(_0x333320[_0x395490(0x351)](),!_0xd4602d||_0xd4602d===_0xf90ef7)return;let _0x21aaa0=_0x333320[_0x395490(0x389)][_0x395490(0x206)](),_0x558512=_0x333320[_0x395490(0x2b5)]<_0x21aaa0[_0x395490(0x1ba)]+_0x21aaa0[_0x395490(0x27e)]/0x2?_0x395490(0x220):_0x395490(0x3fc);_0x3d0c1f(null),Sr(_0x4d2d7d,{..._0x2a3ab5,'nodeId':_0xd4602d,'targetNodeId':_0xf90ef7,'placement':_0x558512});};return _0x528cbf(kr,{'children':[_0x27e6bc(Ar,{'items':_0xbca500,'value':_0x4cc1db,'onChange':_0x25f913=>_0x4dddcb(_0x25f913)}),_0x4cc1db===_0x4a6d50(0x3a1)?_0x27e6bc(jr,{'titleKey':_0x4a6d50(0x33f),'children':_0x528cbf(_0x4a6d50(0x2f6),{'children':[_0x27e6bc(_0x286f3d,{'slot':_0x27e6bc(_0x38fd47,{}),'value':_0x9985e0,'placeholder':_0x4ee7cb['t']('boards-mind-ui.panel.searchNodes'),'className':_0x4a6d50(0x1c3),'onChange':_0x3aa774}),_0x2e38a4['length']?_0x27e6bc('ol',{'className':_0x4a6d50(0x16d),'children':_0x2e38a4[_0x4a6d50(0x288)](_0xc22c36=>_0x27e6bc('li',{'draggable':!0x0,'className':_0x4a6d50(0x297),'style':Or(_0xc22c36[_0x4a6d50(0x326)]),'onDragStart':_0x299c4e=>{const _0x35cc2e=_0x4a6d50;var _0x34ce8c;_0x3d0c1f(_0xc22c36[_0x35cc2e(0x141)]),(_0x34ce8c=_0x299c4e['dataTransfer'])==null||_0x34ce8c['setData'](_0x35cc2e(0x3e3),_0xc22c36[_0x35cc2e(0x141)]),_0x299c4e[_0x35cc2e(0x33b)]&&(_0x299c4e[_0x35cc2e(0x33b)][_0x35cc2e(0x2a8)]=_0x35cc2e(0x387));},'onDragOver':_0x5d695c=>{const _0x13f391=_0x4a6d50;_0x5d695c[_0x13f391(0x351)](),_0x5d695c[_0x13f391(0x33b)]&&(_0x5d695c[_0x13f391(0x33b)][_0x13f391(0x302)]='move');},'onDrop':_0x17f158=>_0x1c5963(_0x17f158,_0xc22c36['nodeId']),'onDragEnd':()=>_0x3d0c1f(null),'children':(_0x119473==null?void 0x0:_0x119473['nodeId'])===_0xc22c36[_0x4a6d50(0x141)]?_0x528cbf(_0x4a6d50(0x2f6),{'className':_0x4a6d50(0x1af),'children':[_0x27e6bc(_0x286f3d,{'autoFocus':!0x0,'size':_0x4a6d50(0x24e),'value':_0x119473[_0x4a6d50(0x1ed)],'onChange':_0x2f6fc7=>_0x138244({'nodeId':_0xc22c36['nodeId'],'text':_0x2f6fc7}),'onKeyDown':_0x1c0d9c=>{const _0x57009a=_0x4a6d50;_0x1c0d9c[_0x57009a(0x211)]==='Enter'&&_0x12c397(),_0x1c0d9c[_0x57009a(0x211)]===_0x57009a(0x399)&&_0x138244(null);}}),_0x27e6bc(_0x31b62f,{'size':_0x4a6d50(0x24e),'variant':_0x4a6d50(0x13b),'disabled':!_0x119473[_0x4a6d50(0x1ed)]['trim'](),'onClick':_0x12c397,'children':_0x4ee7cb['t']('boards-mind-ui.panel.rename')}),_0x27e6bc(_0x31b62f,{'size':_0x4a6d50(0x24e),'variant':_0x4a6d50(0x2c0),'onClick':()=>_0x138244(null),'children':_0x4ee7cb['t'](_0x4a6d50(0x1b0))})]}):_0x528cbf(_0x177b6a,{'children':[_0x27e6bc(_0x31b62f,{'size':'small','variant':_0x4a6d50(0x179),'className':_0x4a6d50(0x139),'onClick':()=>_0x504fbf[_0x4a6d50(0x251)]({'unitId':_0xb9bb0[_0x4a6d50(0x308)],'subUnitId':_0xb9bb0[_0x4a6d50(0x25a)]},[_0xc22c36[_0x4a6d50(0x141)]],_0xc22c36[_0x4a6d50(0x141)]),'children':_0xc22c36['text']}),_0x27e6bc(Nr,{'onClick':()=>_0x3dcf0d(_0xc22c36[_0x4a6d50(0x141)],_0xc22c36[_0x4a6d50(0x1ed)])})]})},_0xc22c36['nodeId']))}):_0x27e6bc(Mr,{'children':_0x4ee7cb['t'](_0x4a6d50(0x307))})]})}):null,_0x4cc1db==='layout'?_0x27e6bc(jr,{'titleKey':_0x4a6d50(0x26b),'children':_0x528cbf('div',{'className':'univer-space-y-3','children':[_0x27e6bc('div',{'className':'univer-flex\x20univer-gap-2','children':_0x27e6bc(_0x5e3c13,{'className':_0x4a6d50(0x3fb),'items':gr[_0x4a6d50(0x288)](_0x42ea02=>({'label':_0x4ee7cb['t'](_0x42ea02['labelKey']),'value':_0x42ea02['value']})),'value':_0xdf1bfe,'onChange':_0x4e2d07=>_0x1996c2(_0x4e2d07)})}),_0x27e6bc('div',{'className':'univer-flex\x20univer-gap-2','children':_0x27e6bc(_0x5e3c13,{'className':_0x4a6d50(0x3fb),'items':hr['map'](_0x439e34=>({'label':_0x4ee7cb['t'](_0x439e34[_0x4a6d50(0x2b8)]),'value':_0x439e34[_0x4a6d50(0x31d)]})),'value':_0x15f23e,'onChange':_0x6400a1=>_0x55f5aa(_0x6400a1)})}),_0x27e6bc(_0x4a6d50(0x2f6),{'className':_0x4a6d50(0x333),'children':_0x27e6bc(_0x5e3c13,{'className':'univer-w-full\x20univer-text-xs','items':_0x15ea01[_0x4a6d50(0x288)](_0x3a541b=>({'label':_0x4ee7cb['t'](_0x3a541b[_0x4a6d50(0x2b8)]),'value':_0x3a541b[_0x4a6d50(0x31d)]})),'value':_0x5b0732,'onChange':_0x84168a=>_0x6cb18a(_0x84168a)})}),_0x27e6bc('div',{'className':_0x4a6d50(0x345),'children':mr[_0x4a6d50(0x288)](({labelKey:_0x32d2cd,key:_0x54558a,min:_0x1359ba,max:_0x25061f})=>_0x528cbf(_0x4a6d50(0x172),{'className':_0x4a6d50(0x336),'children':[_0x27e6bc(_0x4a6d50(0x2f8),{'className':_0x4a6d50(0x3bb),'children':_0x4ee7cb['t']('boards-mind-ui.panel.'+_0x32d2cd)}),_0x27e6bc(_0xadbfdb,{'min':_0x1359ba,'max':_0x25061f,'step':0x4,'value':_0xab2657[_0x54558a],'precision':0x0,'className':_0x4a6d50(0x357),'onChange':_0x17a21d=>_0x5f0210(_0x54558a,Number(_0x17a21d==null?_0x1359ba:_0x17a21d))})]},_0x54558a))})]})}):null,_0x4cc1db===_0x4a6d50(0x367)?_0x27e6bc(jr,{'titleKey':_0x4a6d50(0x171),'children':_0x528cbf(_0x4a6d50(0x2f6),{'className':_0x4a6d50(0x29b),'children':[_0x27e6bc(_0x42aebb,{'className':'univer-h-28\x20univer-resize-none\x20univer-text-xs','placeholder':_0x4ee7cb['t']('boards-mind-ui.panel.pasteOPML'),'value':_0x22fa19,'onValueChange':_0xdcff1b}),_0x528cbf(_0x4a6d50(0x2f6),{'className':_0x4a6d50(0x333),'children':[_0x27e6bc(_0x31b62f,{'size':_0x4a6d50(0x24e),'variant':_0x4a6d50(0x13b),'disabled':!_0x22fa19[_0x4a6d50(0x1bf)](),'onClick':_0xd2e967,'children':_0x4ee7cb['t'](_0x4a6d50(0x15d))}),_0x27e6bc(_0x31b62f,{'size':_0x4a6d50(0x24e),'variant':_0x4a6d50(0x2c0),'onClick':_0x53209b,'children':_0x4ee7cb['t'](_0x4a6d50(0x1bc))})]})]})}):null]});}let Fr=class extends _0x5dfc4c{constructor(_0x202b84){const _0x4f6503=_0x1bfc49;super(),this[_0x4f6503(0x25b)]=_0x202b84,this[_0x4f6503(0x3d5)]();}[_0x1bfc49(0x3d5)](){const _0x51a96a=_0x1bfc49;this['disposeWithMe'](this[_0x51a96a(0x25b)]['register'](nn,an)),this[_0x51a96a(0x3ac)](this[_0x51a96a(0x25b)][_0x51a96a(0x2cd)](fn,Fn)),this[_0x51a96a(0x3ac)](this['_componentManager'][_0x51a96a(0x2cd)]('board.mind-map.panel',Pr));}};Fr=J([q(0x0,_0xbc3476(_0x4dae87))],Fr);let Ir=class{constructor(_0x2fce25,_0x500ccd){const _0x2a051a=_0x1bfc49;this[_0x2a051a(0x1c1)]=_0x2fce25,this[_0x2a051a(0x313)]=_0x500ccd;}[_0x1bfc49(0x15e)](_0x2cefd7){const _0x13cb32=_0x1bfc49;return this['_insertStateService']['setTemplate']({'rootText':_0x2cefd7['rootText'],'structureKind':_0x2cefd7[_0x13cb32(0x14f)],'branchLineType':_0x2cefd7[_0x13cb32(0x2c6)],'children':_0x2cefd7[_0x13cb32(0x12d)],'blueprint':_0x2cefd7[_0x13cb32(0x2fb)]}),this[_0x13cb32(0x1c1)][_0x13cb32(0x21d)](!0x1),this['_stateService'][_0x13cb32(0x1e8)](),this[_0x13cb32(0x1c1)][_0x13cb32(0x298)](_0x2257b4[_0x13cb32(0x3d8)]),this[_0x13cb32(0x1c1)][_0x13cb32(0x354)]({'type':_0x2257b4[_0x13cb32(0x3d8)]}),!0x0;}};Ir=J([q(0x0,_0x1ce780),q(0x1,_0xbc3476(qn))],Ir);let Lr=class extends _0x348eb5{constructor(_0x3de66d=At,_0x30d7de,_0x2ff7ff,_0x5101e6){const _0x190bc6=_0x1bfc49;super(),this[_0x190bc6(0x1a3)]=_0x3de66d,this[_0x190bc6(0x1b2)]=_0x30d7de,this[_0x190bc6(0x296)]=_0x2ff7ff,this[_0x190bc6(0x2d1)]=_0x5101e6;let {..._0x43a823}=_0x217ebd({},At,this[_0x190bc6(0x1a3)]);this[_0x190bc6(0x296)][_0x190bc6(0x3e9)]('boards-mind-ui.config',_0x43a823);}['onStarting'](){const _0x27e59f=_0x1bfc49;this[_0x27e59f(0x1b2)][_0x27e59f(0x306)]([qn]),this[_0x27e59f(0x1b2)][_0x27e59f(0x306)]([Qn]),this[_0x27e59f(0x1b2)]['add']([Ir]),this[_0x27e59f(0x1b2)]['add']([un]),this[_0x27e59f(0x1b2)][_0x27e59f(0x306)]([fr]),this[_0x27e59f(0x1b2)][_0x27e59f(0x306)]([Fr]);let _0x3ef51b=this[_0x27e59f(0x1b2)][_0x27e59f(0x1f7)](Ir),_0x38bbda=this[_0x27e59f(0x1b2)][_0x27e59f(0x1f7)](_0x41972c);this['disposeWithMe'](_0x38bbda[_0x27e59f(0x294)](_0x3ef51b)),this[_0x27e59f(0x3ac)](this[_0x27e59f(0x1b2)][_0x27e59f(0x1f7)](un)),this[_0x27e59f(0x3ac)](this['_injector'][_0x27e59f(0x1f7)](fr)),this[_0x27e59f(0x3ac)](this[_0x27e59f(0x1b2)][_0x27e59f(0x1f7)](Fr)),this[_0x27e59f(0x2e7)]();}[_0x1bfc49(0x212)](){const _0x2afad5=_0x1bfc49;this[_0x2afad5(0x3ac)](this[_0x2afad5(0x2d1)][_0x2afad5(0x1e5)](_0x3a60f9[_0x2afad5(0x375)],Zn)),this[_0x2afad5(0x3ac)](this[_0x2afad5(0x2d1)][_0x2afad5(0x1e5)](_0x3a60f9[_0x2afad5(0x375)],ur)),this[_0x2afad5(0x3ac)](this[_0x2afad5(0x2d1)][_0x2afad5(0x1e5)](_0x3a60f9[_0x2afad5(0x375)],Ln)),this[_0x2afad5(0x3ac)](this['_renderManagerService'][_0x2afad5(0x1e5)](_0x3a60f9[_0x2afad5(0x375)],tn)),this[_0x2afad5(0x3ac)](this['_renderManagerService'][_0x2afad5(0x1e5)](_0x3a60f9[_0x2afad5(0x375)],Pt)),this['disposeWithMe'](this[_0x2afad5(0x2d1)][_0x2afad5(0x1e5)](_0x3a60f9[_0x2afad5(0x375)],tr));}['_enableMindMapToolbarTool'](){const _0x552448=_0x1bfc49;var _0xafe74c,_0x22d983;let _0x474e09=this[_0x552448(0x2e8)]();this['_configService'][_0x552448(0x3e9)](_0x24be6e,{..._0x474e09,'toolbar':{..._0x474e09[_0x552448(0x3f3)],'tools':{...(_0xafe74c=_0x474e09[_0x552448(0x3f3)])==null?void 0x0:_0xafe74c['tools'],[_0x2257b4['MindMap']]:Rr((_0x22d983=_0x474e09[_0x552448(0x3f3)])==null||(_0x22d983=_0x22d983['tools'])==null?void 0x0:_0x22d983[_0x2257b4[_0x552448(0x3d8)]])}}});}[_0x1bfc49(0x2e8)](){const _0x524b90=_0x1bfc49;var _0xf38151;return(_0xf38151=this[_0x524b90(0x296)][_0x524b90(0x362)](_0x24be6e))==null?{}:_0xf38151;}};K(Lr,_0x1bfc49(0x17b),_0x1bfc49(0x34c)),K(Lr,'packageName',Ot),K(Lr,_0x1bfc49(0x377),kt),K(Lr,_0x1bfc49(0x149),_0x3a60f9['UNIVER_BOARD']),Lr=J([_0x4985c0(_0x5d65d0,_0x103bd8,_0xbd73f5),q(0x1,_0xbc3476(_0x39322f)),q(0x2,_0x29e452),q(0x3,_0x34230a)],Lr);function Rr(_0x34769e){const _0x220245=_0x1bfc49;if(_0x34769e===!0x1)return!0x1;if(typeof _0x34769e==_0x220245(0x2e2)){var _0x53808f;return{..._0x34769e,'enabled':(_0x53808f=_0x34769e[_0x220245(0x258)])==null?!0x0:_0x53808f};}return!0x0;}export{Lr as UniverBoardsMindUIPlugin};
|
|
1
|
+
const _0x4e28b3=_0x4c93;(function(_0x4e48c6,_0x101a37){const _0x46315d=_0x4c93,_0x18d6cc=_0x4e48c6();while(!![]){try{const _0x2d2445=parseInt(_0x46315d(0x272))/0x1+-parseInt(_0x46315d(0x379))/0x2*(-parseInt(_0x46315d(0x1c4))/0x3)+parseInt(_0x46315d(0x3f5))/0x4*(parseInt(_0x46315d(0x2b8))/0x5)+-parseInt(_0x46315d(0x365))/0x6+parseInt(_0x46315d(0x156))/0x7+parseInt(_0x46315d(0x22b))/0x8+-parseInt(_0x46315d(0x352))/0x9;if(_0x2d2445===_0x101a37)break;else _0x18d6cc['push'](_0x18d6cc['shift']());}catch(_0x4d9bea){_0x18d6cc['push'](_0x18d6cc['shift']());}}}(_0x5a5c,0xb6176));import{BoardElementType as _0x2cd328,BoardToolType as _0x138a65,IBoardElementService as _0x5af7fa,IBoardMindMapAdapterService as _0x16e4f0,UniverBoardsPlugin as _0x2baeb1,documentTextStyleToBoardShapeTextStyle as _0x3e6fcc,offsetBoardConnectorGeometry as _0x31298f,resolveBoardElementWorldBounds as _0x8188de}from'@univerjs-pro/boards';import{AddMindMapChildOperation as _0x1c61db,AddMindMapSiblingOperation as _0x4427c3,ChangeMindMapBranchLineTypeOperation as _0x394c10,ChangeMindMapLayoutOperation as _0xfb8f84,CopyMindMapNodeOperation as _0x5a3321,DeleteMindMapNodeOperation as _0x443802,DetachMindMapNodeOperation as _0x465ffb,ExportMindMapOpmlOperation as _0x46bb7e,IMindMapClipboardService as _0x3771ca,ImportMindMapOpmlOperation as _0x55b80c,InsertBoardMindMapOperation as _0xa00b3d,LayoutMindMapOperation as _0x3a4dc0,MIND_MAP_DEFAULT_LAYOUT as _0x1defe8,MIND_MAP_DEFAULT_NODE_SIZE as _0x1163ab,MIND_MAP_DEFAULT_NODE_TEXT as _0x5ce379,MIND_MAP_LAYOUT_SPACING_LIMITS as _0x2f7fbc,PasteMindMapAsNewMindMapOperation as _0x5cbfdf,PasteMindMapNodeOperation as _0x2153bf,PromoteMindMapNodeOperation as _0x3c763e,ReparentMindMapNodeOperation as _0x3bb170,ToggleMindMapNodeCollapseOperation as _0xdc2fc2,TranslateMindMapOperation as _0x5876ce,UniverBoardsMindPlugin as _0x4f31e9,UpdateMindMapIncomingConnectorOperation as _0xb6fca8,UpdateMindMapNodeOperation as _0x36d216,compareMindMapOrderKey as _0x359903,getMindMapConnectorMeta as _0x42da87,getMindMapContainerMeta as _0x30a9b0,getMindMapDefaultChildOrderKey as _0x3cc2d7,getMindMapNodeMeta as _0x130c96,isMindMapPlainStructureKind as _0x3e1084,resolveMindMapBranchLineTypeForStructure as _0x5be6e7,resolveMindMapLayoutPreview as _0x4637d2,resolveMindMapNodeHostSize as _0x387b00}from'@univerjs-pro/boards-mind';import{BOARDS_UI_PLUGIN_CONFIG_KEY as _0x2306cf,BOARD_RENDER_LAYER_INDEX as _0x394cf0,BOARD_RENDER_OBJECT_Z_INDEX as _0x5d51da,BOARD_SHORTCUT_BINDINGS as _0xfbb3e1,BoardCanvasPopManagerService as _0x11b6e9,BoardInteractionSurfaceService as _0x51f3dc,BoardShapeIntrinsicSizeService as _0x38e758,BoardTextEditingService as _0x4aee4d,IBoardElementStateService as _0x4ad25d,IBoardUIStateService as _0x4b72d1,UniverBoardsUIPlugin as _0x385ee3,getBoardElementRenderObjectKey as _0x239fd6,parseBoardElementRenderObjectKey as _0x16c9be,resolveBoardFloatingToolbarSelection as _0x4a534b,syncBoardElementRenderObject as _0x7e58a4}from'@univerjs-pro/boards-ui';import{UniverLicensePlugin as _0x350152}from'@univerjs-pro/license';import{CommandType as _0x23b005,DEFAULT_STYLES as _0x5bb012,DependentOn as _0x4f9b5b,Disposable as _0x45f66c,DisposableCollection as _0x4ee20c,HorizontalAlign as _0x5d9bb5,ICommandService as _0x4c9d00,IConfigService as _0x4d4aaf,IContextService as _0x135d5f,IUniverInstanceService as _0x34a716,Inject as _0x19f927,Injector as _0x1072f4,LocaleService as _0x19a155,Plugin as _0x3485b7,RxDisposable as _0x43afa6,UniverInstanceType as _0x2934fe,VerticalAlign as _0x2f2760,generateRandomId as _0x257cfe,merge as _0xce87f2,toDisposable as _0x288fdc}from'@univerjs/core';import{BaseObject as _0x344c5d,IRenderManagerService as _0x90772c,UniverRenderEnginePlugin as _0x259006}from'@univerjs/engine-render';import{ComponentManager as _0x4aefa5,IDialogService as _0x527822,IShortcutService as _0x2f95f0,KeyCode as _0x5e6623,MetaKeys as _0x67ae32,UniverUIPlugin as _0x779761,useDependency as _0x3d87e3}from'@univerjs/ui';import{Subject as _0x168ca7,takeUntil as _0x362352}from'rxjs';import{SHAPE_FLOATING_TOOLBAR_DEFAULT_STROKE_COLOR as _0x53a3c6,SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_BACKGROUND_COLOR as _0x33f965,SHAPE_FLOATING_TOOLBAR_DEFAULT_TEXT_COLOR as _0x1c0553,SHAPE_TEXT_EDITOR_QUOTE_COMMAND_ID as _0x381e8c,ShapeFillButton as _0x5647d1,ShapeFloatingToolbarContent as _0x53b2ae,ShapeFloatingToolbarDropdownTrigger as _0x16a3f4,ShapeFloatingToolbarFontSizeSelect as _0x5c0f56,ShapeFloatingToolbarIcon as _0x34bbcc,ShapeFloatingToolbarMenuItem as _0x2e4721,ShapeFloatingToolbarMenuPanel as _0x4b1b45,ShapeStrokePanelButton as _0x43cd4d,ShapeStrokePanelContent as _0x3fabe2,TextFillButton as _0xfd025f,TypographyPanelButton as _0x30da04,buildShapeTextDataUpdate as _0x48adbf}from'@univerjs-pro/shape-editor-ui';import{ShapeLineDashEnum as _0x582dab,ShapeLineTypeEnum as _0x8a7be5}from'@univerjs-pro/engine-shape';import{Button as _0x25b887,Dropdown as _0x48b1d8,Input as _0x4f73bf,InputNumber as _0x5687ca,Segmented as _0x2edc6b,Separator as _0x2cfe4c,Textarea as _0x55a337,borderClassName as _0x4b17ce,clsx as _0x4dee74}from'@univerjs/design';import{AlignBottomIcon as _0x587431,AlignTextBothIcon as _0x13b8d2,AlignTopIcon as _0x703b0,HorizontallyIcon as _0x54ade2,LeftJustifyingIcon as _0x24b89d,MoreHorizontalIcon as _0xc85f91,RightJustifyingIcon as _0x122c61,SearchIcon as _0x32fc43,ShapeLineIcon as _0x2d11b3,VerticalCenterIcon as _0x10f89b}from'@univerjs/icons';import{useEffect as _0x102d6a,useState as _0x33a7c5}from'react';import{Fragment as _0x533ee7,jsx as _0xdbc3b,jsxs as _0x1e5b1d}from'react/jsx-runtime';var Mt='@univerjs-pro/boards-mind-ui',Nt=_0x4e28b3(0x19d);const Pt={};function Ft(_0x1eb0e7){'@babel/helpers - typeof';const _0x4c2005=_0x4e28b3;return Ft=typeof Symbol==_0x4c2005(0x1a6)&&typeof Symbol[_0x4c2005(0x1cc)]=='symbol'?function(_0x55715e){return typeof _0x55715e;}:function(_0x382883){const _0x589373=_0x4c2005;return _0x382883&&typeof Symbol=='function'&&_0x382883[_0x589373(0x1d2)]===Symbol&&_0x382883!==Symbol['prototype']?'symbol':typeof _0x382883;},Ft(_0x1eb0e7);}function It(_0x321052,_0x2e6d68){const _0x59c1c5=_0x4e28b3;if(Ft(_0x321052)!='object'||!_0x321052)return _0x321052;var _0x515de3=_0x321052[Symbol[_0x59c1c5(0x246)]];if(_0x515de3!==void 0x0){var _0x2d8554=_0x515de3[_0x59c1c5(0x1e1)](_0x321052,_0x2e6d68||_0x59c1c5(0x2f8));if(Ft(_0x2d8554)!=_0x59c1c5(0x381))return _0x2d8554;throw TypeError(_0x59c1c5(0x1b2));}return(_0x2e6d68===_0x59c1c5(0x304)?String:Number)(_0x321052);}function Lt(_0x122498){const _0x515c85=_0x4e28b3;var _0x5250d8=It(_0x122498,'string');return Ft(_0x5250d8)==_0x515c85(0x3e2)?_0x5250d8:_0x5250d8+'';}function K(_0x3f0d1b,_0x2b00c8,_0x23b702){const _0x46de42=_0x4e28b3;return(_0x2b00c8=Lt(_0x2b00c8))in _0x3f0d1b?Object[_0x46de42(0x1eb)](_0x3f0d1b,_0x2b00c8,{'value':_0x23b702,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3f0d1b[_0x2b00c8]=_0x23b702,_0x3f0d1b;}function q(_0x14c31a,_0x3e8580){return function(_0x302a9a,_0x8de701){_0x3e8580(_0x302a9a,_0x8de701,_0x14c31a);};}function J(_0x256cd9,_0x269253,_0x3071fb,_0x4fbdbf){const _0x518af5=_0x4e28b3;var _0x58002d=arguments[_0x518af5(0x282)],_0x3423c3=_0x58002d<0x3?_0x269253:_0x4fbdbf===null?_0x4fbdbf=Object[_0x518af5(0x2e8)](_0x269253,_0x3071fb):_0x4fbdbf,_0xcef2c8;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x518af5(0x1a6))_0x3423c3=Reflect[_0x518af5(0x320)](_0x256cd9,_0x269253,_0x3071fb,_0x4fbdbf);else{for(var _0x42ff0f=_0x256cd9[_0x518af5(0x282)]-0x1;_0x42ff0f>=0x0;_0x42ff0f--)(_0xcef2c8=_0x256cd9[_0x42ff0f])&&(_0x3423c3=(_0x58002d<0x3?_0xcef2c8(_0x3423c3):_0x58002d>0x3?_0xcef2c8(_0x269253,_0x3071fb,_0x3423c3):_0xcef2c8(_0x269253,_0x3071fb))||_0x3423c3);}return _0x58002d>0x3&&_0x3423c3&&Object[_0x518af5(0x1eb)](_0x269253,_0x3071fb,_0x3423c3),_0x3423c3;}let Rt=class extends _0x43afa6{constructor(_0x4e9183,_0x226838,_0x521784){const _0x575ad6=_0x4e28b3;super(),this[_0x575ad6(0x1f3)]=_0x4e9183,this['_boardElementService']=_0x226838,this[_0x575ad6(0x19a)]=_0x521784,K(this,_0x575ad6(0x18f),new Map()),K(this,_0x575ad6(0x1cf),new Map()),K(this,_0x575ad6(0x3ec),new Map()),K(this,_0x575ad6(0x3ab),!0x1),K(this,_0x575ad6(0x1de),null),this['_init']();}[_0x4e28b3(0x169)](){const _0x1f5661=_0x4e28b3;this[_0x1f5661(0x308)](),this[_0x1f5661(0x40b)](_0x288fdc(this['_boardElementService'][_0x1f5661(0x16e)][_0x1f5661(0x34f)](_0x362352(this['dispose$']))[_0x1f5661(0x345)](_0x4811aa=>{const _0x5af6b1=_0x1f5661;_0x4811aa[_0x5af6b1(0x3c2)](_0x18183e=>{const _0x50015b=_0x5af6b1;let _0x275f08=this[_0x50015b(0x234)][_0x50015b(0x402)](_0x18183e[_0x50015b(0x204)],_0x18183e[_0x50015b(0x1e8)],_0x18183e[_0x50015b(0x404)]);this[_0x50015b(0x289)](_0x18183e,_0x275f08);});}))),this['disposeWithMe'](_0x288fdc(this[_0x1f5661(0x234)]['elementUpdate$'][_0x1f5661(0x34f)](_0x362352(this[_0x1f5661(0x2a2)]))[_0x1f5661(0x345)](_0x5cfcca=>{const _0x1ad74d=_0x1f5661;_0x5cfcca[_0x1ad74d(0x3c2)](_0x4fcb14=>this[_0x1ad74d(0x166)](_0x4fcb14));})));let _0x11a089=this[_0x1f5661(0x19a)]['onCommandExecuted'];typeof _0x11a089==_0x1f5661(0x1a6)&&this[_0x1f5661(0x40b)](_0x11a089[_0x1f5661(0x1e1)](this[_0x1f5661(0x19a)],_0x13b19c=>{const _0x3196fe=_0x1f5661;if(_0x13b19c['id']!==_0x36d216['id'])return;let _0x11bb1f=_0x13b19c[_0x3196fe(0x1f5)];this[_0x3196fe(0x1ca)](_0x11bb1f);})),this[_0x1f5661(0x40b)](_0x288fdc(()=>{const _0x335a3f=_0x1f5661;this['_debouncedLayoutTimer']!==null&&(clearTimeout(this['_debouncedLayoutTimer']),this[_0x335a3f(0x1de)]=null);}));}[_0x4e28b3(0x308)](){const _0x50d7dc=_0x4e28b3;let _0x4e6cf6=this[_0x50d7dc(0x1f3)][_0x50d7dc(0x204)],_0x8e3b46=this['_boardElementService']['getElementDataForUnit'](_0x4e6cf6);Object[_0x50d7dc(0x335)](_0x8e3b46)['forEach'](([_0x41e57c,_0x10ccae])=>{const _0x17a3c1=_0x50d7dc;Object[_0x17a3c1(0x326)](_0x10ccae['data'])[_0x17a3c1(0x3c2)](_0x3581ec=>{const _0x2c3cb4=_0x17a3c1;this[_0x2c3cb4(0x289)]({'unitId':_0x4e6cf6,'subUnitId':_0x41e57c,'elementId':_0x3581ec[_0x2c3cb4(0x404)]},_0x3581ec);});});}['_handleElementUpdate'](_0x6ea680){const _0x1a97c3=_0x4e28b3;if(_0x6ea680[_0x1a97c3(0x204)]!==this[_0x1a97c3(0x1f3)]['unitId'])return;let _0x6a1d00=this[_0x1a97c3(0x234)]['getElementById'](_0x6ea680[_0x1a97c3(0x204)],_0x6ea680[_0x1a97c3(0x1e8)],_0x6ea680[_0x1a97c3(0x404)]),_0x3d02ed=_0x130c96(_0x6a1d00==null?void 0x0:_0x6a1d00[_0x1a97c3(0x409)]),_0x4554f7=this[_0x1a97c3(0x3d1)](_0x6a1d00);if(!_0x3d02ed||!_0x4554f7){this[_0x1a97c3(0x18f)][_0x1a97c3(0x269)](this[_0x1a97c3(0x21f)](_0x6ea680));return;}let _0x5885e2=this[_0x1a97c3(0x21f)](_0x6ea680),_0x7b0629=this[_0x1a97c3(0x18f)][_0x1a97c3(0x349)](_0x5885e2);this['_nodeSizeByKey'][_0x1a97c3(0x297)](_0x5885e2,_0x4554f7),!(_0x7b0629&&_0x7b0629[_0x1a97c3(0x1b5)]===_0x4554f7[_0x1a97c3(0x1b5)]&&_0x7b0629['height']===_0x4554f7[_0x1a97c3(0x323)])&&this[_0x1a97c3(0x3b0)]({'unitId':_0x6ea680[_0x1a97c3(0x204)],'subUnitId':_0x6ea680[_0x1a97c3(0x1e8)],'scopeId':_0x3d02ed['structureScopeId'],'anchorNodeId':_0x6ea680[_0x1a97c3(0x404)]});}[_0x4e28b3(0x289)](_0x2f8db4,_0x28c1e6){const _0x4557c2=_0x4e28b3;if(_0x2f8db4[_0x4557c2(0x204)]!==this[_0x4557c2(0x1f3)]['unitId'])return;let _0x4ac055=_0x130c96(_0x28c1e6==null?void 0x0:_0x28c1e6[_0x4557c2(0x409)]),_0x39df94=this[_0x4557c2(0x3d1)](_0x28c1e6);!_0x4ac055||!_0x39df94||this[_0x4557c2(0x18f)][_0x4557c2(0x297)](this[_0x4557c2(0x21f)](_0x2f8db4),_0x39df94);}[_0x4e28b3(0x3d1)](_0x3b6a61){const _0x4ca3dc=_0x4e28b3;var _0x4049b1;let _0x4cb5fe=(_0x4049b1=_0x3b6a61==null?void 0x0:_0x3b6a61[_0x4ca3dc(0x2eb)])==null?_0x3b6a61==null?void 0x0:_0x3b6a61[_0x4ca3dc(0x409)]['transform']:_0x4049b1,_0x5299d0=_0x4cb5fe==null?void 0x0:_0x4cb5fe[_0x4ca3dc(0x1b5)],_0x2c42fc=_0x4cb5fe==null?void 0x0:_0x4cb5fe[_0x4ca3dc(0x323)];return!Number[_0x4ca3dc(0x2de)](_0x5299d0)||!Number[_0x4ca3dc(0x2de)](_0x2c42fc)?null:{'width':_0x5299d0,'height':_0x2c42fc};}[_0x4e28b3(0x3b0)](_0x44bfca){const _0x559c3b=_0x4e28b3;this[_0x559c3b(0x1cf)][_0x559c3b(0x297)](_0x44bfca[_0x559c3b(0x204)]+':'+_0x44bfca[_0x559c3b(0x1e8)]+':'+_0x44bfca['scopeId'],_0x44bfca),!this[_0x559c3b(0x3ab)]&&(this[_0x559c3b(0x3ab)]=!0x0,Promise[_0x559c3b(0x1c8)]()[_0x559c3b(0x378)](()=>{const _0x398c8d=_0x559c3b;this[_0x398c8d(0x3ab)]=!0x1;let _0x221e80=Array[_0x398c8d(0x15d)](this[_0x398c8d(0x1cf)][_0x398c8d(0x326)]());this[_0x398c8d(0x1cf)][_0x398c8d(0x219)](),_0x221e80['forEach'](_0x42bfb6=>{const _0x46bbff=_0x398c8d;this[_0x46bbff(0x19a)][_0x46bbff(0x3d6)](_0x3a4dc0['id'],_0x42bfb6);});}));}[_0x4e28b3(0x1ca)](_0x114307){const _0x150735=_0x4e28b3;if(!(_0x114307!=null&&_0x114307[_0x150735(0x204)])||!_0x114307[_0x150735(0x1e8)]||!_0x114307['nodeId']||_0x114307[_0x150735(0x204)]!==this[_0x150735(0x1f3)][_0x150735(0x204)])return;let _0x363ca5=this[_0x150735(0x234)]['getElementById'](_0x114307[_0x150735(0x204)],_0x114307['subUnitId'],_0x114307[_0x150735(0x263)]),_0x2fc771=_0x130c96(_0x363ca5==null?void 0x0:_0x363ca5[_0x150735(0x409)]);_0x2fc771&&this[_0x150735(0x1fd)]({'unitId':_0x114307[_0x150735(0x204)],'subUnitId':_0x114307[_0x150735(0x1e8)],'scopeId':_0x2fc771[_0x150735(0x3fe)],'anchorNodeId':_0x114307['nodeId']});}['_queueDebouncedLayout'](_0x478e38){const _0x2bf056=_0x4e28b3;this[_0x2bf056(0x3ec)][_0x2bf056(0x297)](_0x478e38[_0x2bf056(0x204)]+':'+_0x478e38[_0x2bf056(0x1e8)]+':'+_0x478e38[_0x2bf056(0x38b)],_0x478e38),this[_0x2bf056(0x1de)]!==null&&clearTimeout(this[_0x2bf056(0x1de)]),this[_0x2bf056(0x1de)]=setTimeout(()=>{const _0x39d571=_0x2bf056;this[_0x39d571(0x1de)]=null;let _0x2fd341=Array[_0x39d571(0x15d)](this[_0x39d571(0x3ec)][_0x39d571(0x326)]());this['_debouncedLayouts'][_0x39d571(0x219)](),_0x2fd341[_0x39d571(0x3c2)](_0x445d13=>{const _0x1fb204=_0x39d571;this[_0x1fb204(0x19a)][_0x1fb204(0x3d6)](_0x3a4dc0['id'],_0x445d13);});},0x50);}['_getElementKey'](_0x1d959f){const _0x4b04c8=_0x4e28b3;return _0x1d959f[_0x4b04c8(0x204)]+':'+_0x1d959f[_0x4b04c8(0x1e8)]+':'+_0x1d959f['elementId'];}};Rt=J([q(0x1,_0x19f927(_0x5af7fa)),q(0x2,_0x4c9d00)],Rt);const Y={'primaryColor':_0x53a3c6,'surfaceColor':_0x33f965,'textColor':_0x1c0553,'fontFamily':_0x5bb012['ff']};function zt(_0x531989,_0x4388df){const _0x58e61a=_0x4e28b3;let _0x270b0e=Math[_0x58e61a(0x312)](0x1,Math['max'](0x0,Number[_0x58e61a(0x2de)](_0x4388df)?_0x4388df:0x1)),_0xdcbbba=_0x531989['trim'](),_0x5dc28c=/^#([0-9a-fA-F]{6})$/[_0x58e61a(0x16a)](_0xdcbbba);if(!_0x5dc28c)return _0x531989;let _0x486b0b=_0x5dc28c[0x1];return _0x58e61a(0x1b1)+Number[_0x58e61a(0x2fe)](_0x486b0b[_0x58e61a(0x32e)](0x0,0x2),0x10)+',\x20'+Number[_0x58e61a(0x2fe)](_0x486b0b[_0x58e61a(0x32e)](0x2,0x4),0x10)+',\x20'+Number[_0x58e61a(0x2fe)](_0x486b0b['slice'](0x4,0x6),0x10)+',\x20'+_0x270b0e+')';}const X={'primaryColor':Y[_0x4e28b3(0x265)],'ghostFillColor':zt(Y[_0x4e28b3(0x3c4)],0.72),'ghostTextColor':zt(Y['textColor'],0.62),'rootTextColor':zt(Y[_0x4e28b3(0x3c4)],0.86),'sourceHighlightFillColor':zt(Y[_0x4e28b3(0x265)],0.12),'sourceHighlightStrokeColor':zt(Y['primaryColor'],0.9),'objectAlpha':0.72,'dragObjectAlpha':0.78,'connectorAlpha':0.64,'lineWidthScreen':0x2,'fallbackNodeWidth':_0x1163ab['nodeWidth'],'fallbackNodeHeight':_0x1163ab['nodeHeight'],'branchGap':_0x1defe8[_0x4e28b3(0x25d)],'sourceHaloScreen':0x4,'ghostRadius':0x8,'rootRadius':0xa,'fontFamily':Y[_0x4e28b3(0x31d)],'ghostFontWeight':0x1f4,'rootFontWeight':0x258,'rootFontSize':0x12,'textPaddingScreen':0xc,'dirtyPaddingScreen':0x18,'sourceDashScreen':[0x6,0x4]};function Z(_0x1906d4,_0x3930ce,_0x24d5e2,_0x4c5444,_0x1ec861,_0x14b521){const _0x38076c=_0x4e28b3;let _0x11668b=Math[_0x38076c(0x312)](_0x14b521,_0x4c5444/0x2,_0x1ec861/0x2);_0x1906d4[_0x38076c(0x3c5)](),_0x1906d4['moveTo'](_0x3930ce+_0x11668b,_0x24d5e2),_0x1906d4[_0x38076c(0x2f7)](_0x3930ce+_0x4c5444-_0x11668b,_0x24d5e2),_0x1906d4[_0x38076c(0x35f)](_0x3930ce+_0x4c5444,_0x24d5e2,_0x3930ce+_0x4c5444,_0x24d5e2+_0x11668b),_0x1906d4['lineTo'](_0x3930ce+_0x4c5444,_0x24d5e2+_0x1ec861-_0x11668b),_0x1906d4[_0x38076c(0x35f)](_0x3930ce+_0x4c5444,_0x24d5e2+_0x1ec861,_0x3930ce+_0x4c5444-_0x11668b,_0x24d5e2+_0x1ec861),_0x1906d4[_0x38076c(0x2f7)](_0x3930ce+_0x11668b,_0x24d5e2+_0x1ec861),_0x1906d4['quadraticCurveTo'](_0x3930ce,_0x24d5e2+_0x1ec861,_0x3930ce,_0x24d5e2+_0x1ec861-_0x11668b),_0x1906d4[_0x38076c(0x2f7)](_0x3930ce,_0x24d5e2+_0x11668b),_0x1906d4[_0x38076c(0x35f)](_0x3930ce,_0x24d5e2,_0x3930ce+_0x11668b,_0x24d5e2),_0x1906d4['closePath']();}function Bt(_0x4335e0,_0x4904fa,_0x1f8e0b){const _0x4899a3=_0x4e28b3;return _0x4335e0+'\x20'+_0x4904fa/_0x1f8e0b+_0x4899a3(0x17c)+X['fontFamily'];}const Vt=_0x4e28b3(0x355),Ht=_0x394cf0[_0x4e28b3(0x2a9)];function Q(_0x386b3c,_0x41004e){const _0x1a7463=_0x4e28b3;return Number[_0x1a7463(0x2de)](_0x386b3c)?_0x386b3c:_0x41004e;}function Ut(){return X['fallbackNodeWidth'];}function Wt(){const _0x4b27c5=_0x4e28b3;return X[_0x4b27c5(0x19f)];}function Gt(_0x13631a){const _0xc79bc9=_0x4e28b3;return _0x13631a===0x1?_0xc79bc9(0x33e):_0x13631a===0x3?_0xc79bc9(0x244):_0xc79bc9(0x2cc);}function Kt(_0x17f4c6,_0x448f9b,_0x107d23,_0x2cf814){return _0x107d23===0x1?_0x17f4c6+_0x2cf814:_0x107d23===0x3?_0x17f4c6+_0x448f9b-_0x2cf814:_0x17f4c6+_0x448f9b/0x2;}var qt=class extends _0x344c5d{constructor(_0x5a1d92=Vt,_0x2f39ca){const _0x2a5e1b=_0x4e28b3;super(_0x5a1d92),K(this,_0x2a5e1b(0x179),{'ghostBounds':null,'parentBounds':null,'side':_0x2a5e1b(0x244),'zoomRatio':0x1}),this['evented']=!0x1,this[_0x2a5e1b(0x2e1)]=_0x5d51da[_0x2a5e1b(0x371)],this[_0x2a5e1b(0x3e7)](_0x2f39ca);}['updateState'](_0x3f168c){const _0x3aa3b4=_0x4e28b3;if(this[_0x3aa3b4(0x179)]={...this[_0x3aa3b4(0x179)],..._0x3f168c},this[_0x3aa3b4(0x179)][_0x3aa3b4(0x14d)]){let _0x4d46ee=this['_resolveDirtyBounds']();this['transformByState'](_0x4d46ee),this['show']();}else this[_0x3aa3b4(0x1d1)]();let _0x21d645=this;typeof _0x21d645[_0x3aa3b4(0x1e0)]==_0x3aa3b4(0x1a6)?_0x21d645[_0x3aa3b4(0x1e0)](!0x0):this['makeDirty'](!0x0);}[_0x4e28b3(0x187)](_0x1bfb90){return!0x1;}['render'](_0x19ecf8,_0x57c9c2){const _0x2cc653=_0x4e28b3;var _0x7184a5,_0x5968e9,_0x1274a8;let _0x2f7612=this['_state'][_0x2cc653(0x14d)];if(!_0x2f7612||!this['visible'])return this[_0x2cc653(0x29f)](!0x1),this;let _0x11c16b=Number[_0x2cc653(0x2de)](this[_0x2cc653(0x179)]['zoomRatio'])&&((_0x7184a5=this['_state'][_0x2cc653(0x1be)])==null?0x0:_0x7184a5)>0x0?this['_state'][_0x2cc653(0x1be)]:0x1,_0x8f31bf=Q(_0x2f7612[_0x2cc653(0x33e)],0x0),_0x480c06=Q(_0x2f7612[_0x2cc653(0x3a3)],0x0),_0xd99ad=Math['max'](0x1,Q(_0x2f7612[_0x2cc653(0x1b5)],Ut())),_0x42e74b=Math[_0x2cc653(0x205)](0x1,Q(_0x2f7612['height'],Wt()));if(_0x19ecf8[_0x2cc653(0x362)](),_0x19ecf8[_0x2cc653(0x232)]=X[_0x2cc653(0x281)],_0x19ecf8['lineWidth']=X[_0x2cc653(0x196)]/_0x11c16b,_0x19ecf8['strokeStyle']=X[_0x2cc653(0x265)],_0x19ecf8[_0x2cc653(0x33c)]=X[_0x2cc653(0x3f9)],this[_0x2cc653(0x2a8)](_0x19ecf8,{'left':_0x8f31bf,'top':_0x480c06,'width':_0xd99ad,'height':_0x42e74b},_0x11c16b),this[_0x2cc653(0x1b9)](_0x19ecf8,_0x11c16b),this['_state'][_0x2cc653(0x182)]===!0x1)return _0x19ecf8[_0x2cc653(0x3e0)](),this['makeDirty'](!0x1),this;Z(_0x19ecf8,_0x8f31bf,_0x480c06,_0xd99ad,_0x42e74b,X[_0x2cc653(0x1e2)]),_0x19ecf8[_0x2cc653(0x29e)](),_0x19ecf8['stroke']();let _0xc06315=this[_0x2cc653(0x179)]['textStyle'],_0x216f38=Number[_0x2cc653(0x2de)](_0xc06315==null?void 0x0:_0xc06315['fontSize'])&&((_0x5968e9=_0xc06315==null?void 0x0:_0xc06315['fontSize'])==null?0x0:_0x5968e9)>0x0?_0xc06315[_0x2cc653(0x419)]:0x10,_0x547531=X[_0x2cc653(0x253)]/_0x11c16b;return _0x19ecf8[_0x2cc653(0x33c)]=(_0x1274a8=_0xc06315==null?void 0x0:_0xc06315[_0x2cc653(0x36d)])==null?X[_0x2cc653(0x1df)]:_0x1274a8,_0x19ecf8[_0x2cc653(0x32f)]=Bt(X[_0x2cc653(0x337)],_0x216f38,_0x11c16b),_0x19ecf8['textAlign']=Gt(_0xc06315==null?void 0x0:_0xc06315['horizontalAlign']),_0x19ecf8[_0x2cc653(0x21e)]=_0x2cc653(0x1ef),_0x19ecf8[_0x2cc653(0x17f)]((_0xc06315==null?void 0x0:_0xc06315['text'])||_0x5ce379,Kt(_0x8f31bf,_0xd99ad,_0xc06315==null?void 0x0:_0xc06315[_0x2cc653(0x287)],_0x547531),_0x480c06+_0x42e74b/0x2,Math[_0x2cc653(0x205)](0x1,_0xd99ad-_0x547531*0x2)),_0x19ecf8[_0x2cc653(0x3e0)](),this[_0x2cc653(0x29f)](!0x1),this;}[_0x4e28b3(0x1b6)](){const _0x34b4f7=_0x4e28b3;var _0x38e121;let _0xcec7da=this[_0x34b4f7(0x179)]['ghostBounds'],_0x2305bb=Number[_0x34b4f7(0x2de)](this[_0x34b4f7(0x179)][_0x34b4f7(0x1be)])&&((_0x38e121=this['_state'][_0x34b4f7(0x1be)])==null?0x0:_0x38e121)>0x0?this[_0x34b4f7(0x179)][_0x34b4f7(0x1be)]:0x1,_0xde6377=X[_0x34b4f7(0x1e4)]/_0x2305bb;if(!_0xcec7da)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x52926a=Q(_0xcec7da[_0x34b4f7(0x33e)],0x0),_0x534fa9=Q(_0xcec7da[_0x34b4f7(0x3a3)],0x0),_0x19139d=Math[_0x34b4f7(0x205)](0x1,Q(_0xcec7da[_0x34b4f7(0x1b5)],Ut())),_0x4f84e6=Math['max'](0x1,Q(_0xcec7da[_0x34b4f7(0x323)],Wt())),_0x349649=this[_0x34b4f7(0x179)][_0x34b4f7(0x305)],_0x1cc7d4=this['_state'][_0x34b4f7(0x3ff)],_0x528d07=Q(_0x349649==null?void 0x0:_0x349649[_0x34b4f7(0x33e)],_0x52926a),_0x1c9fd2=Q(_0x349649==null?void 0x0:_0x349649['top'],_0x534fa9),_0x52da07=Math[_0x34b4f7(0x205)](0x1,Q(_0x349649==null?void 0x0:_0x349649['width'],_0x19139d)),_0x3edb2b=Math[_0x34b4f7(0x205)](0x1,Q(_0x349649==null?void 0x0:_0x349649['height'],_0x4f84e6));if(!_0x1cc7d4){let _0x52457b=Math[_0x34b4f7(0x312)](_0x52926a,_0x528d07)-_0xde6377,_0x3cb64b=Math[_0x34b4f7(0x312)](_0x534fa9,_0x1c9fd2)-_0xde6377,_0x1502e4=Math[_0x34b4f7(0x205)](_0x52926a+_0x19139d,_0x528d07+_0x52da07)+_0xde6377,_0x1f4bbc=Math['max'](_0x534fa9+_0x4f84e6,_0x1c9fd2+_0x3edb2b)+_0xde6377;return{'left':_0x52457b,'top':_0x3cb64b,'width':_0x1502e4-_0x52457b,'height':_0x1f4bbc-_0x3cb64b};}let _0x5068c9=Q(_0x1cc7d4[_0x34b4f7(0x33e)],_0x52926a),_0x3d6177=Q(_0x1cc7d4[_0x34b4f7(0x3a3)],_0x534fa9),_0x2ba249=Math['max'](0x1,Q(_0x1cc7d4[_0x34b4f7(0x1b5)],Ut())),_0x4f7691=Math[_0x34b4f7(0x205)](0x1,Q(_0x1cc7d4['height'],Wt())),_0x39b13a=Math['min'](_0x52926a,_0x5068c9,_0x528d07)-_0xde6377,_0x6a0dfb=Math[_0x34b4f7(0x312)](_0x534fa9,_0x3d6177,_0x1c9fd2)-_0xde6377,_0x4f3425=Math[_0x34b4f7(0x205)](_0x52926a+_0x19139d,_0x5068c9+_0x2ba249,_0x528d07+_0x52da07)+_0xde6377,_0x3ba2ec=Math[_0x34b4f7(0x205)](_0x534fa9+_0x4f84e6,_0x3d6177+_0x4f7691,_0x1c9fd2+_0x3edb2b)+_0xde6377;return{'left':_0x39b13a,'top':_0x6a0dfb,'width':_0x4f3425-_0x39b13a,'height':_0x3ba2ec-_0x6a0dfb};}[_0x4e28b3(0x1b9)](_0x22c625,_0x35c71b){const _0x3df28b=_0x4e28b3;var _0x36d26b;let _0x4a40c1=this[_0x3df28b(0x179)][_0x3df28b(0x305)];if(!_0x4a40c1)return;let _0x4163e1=X[_0x3df28b(0x230)]/_0x35c71b,_0x4f3dc9=Q(_0x4a40c1['left'],0x0)-_0x4163e1,_0x3999af=Q(_0x4a40c1[_0x3df28b(0x3a3)],0x0)-_0x4163e1,_0x52053e=Math['max'](0x1,Q(_0x4a40c1[_0x3df28b(0x1b5)],Ut()))+_0x4163e1*0x2,_0x26d974=Math[_0x3df28b(0x205)](0x1,Q(_0x4a40c1[_0x3df28b(0x323)],Wt()))+_0x4163e1*0x2;_0x22c625[_0x3df28b(0x362)](),_0x22c625[_0x3df28b(0x232)]=0x1,_0x22c625[_0x3df28b(0x408)]=X[_0x3df28b(0x196)]/_0x35c71b,_0x22c625[_0x3df28b(0x386)]=X[_0x3df28b(0x2ac)],_0x22c625[_0x3df28b(0x33c)]=X[_0x3df28b(0x333)],(_0x36d26b=_0x22c625[_0x3df28b(0x36c)])==null||_0x36d26b[_0x3df28b(0x1e1)](_0x22c625,X[_0x3df28b(0x252)][_0x3df28b(0x1cb)](_0x2c4fa6=>_0x2c4fa6/_0x35c71b)),Z(_0x22c625,_0x4f3dc9,_0x3999af,_0x52053e,_0x26d974,X[_0x3df28b(0x172)]),_0x22c625['fill'](),_0x22c625[_0x3df28b(0x18d)](),_0x22c625[_0x3df28b(0x3e0)]();}[_0x4e28b3(0x2a8)](_0x189f53,_0x1d0629,_0x187520){const _0x308013=_0x4e28b3;var _0x24f432;let _0x106a01=this[_0x308013(0x179)][_0x308013(0x3ff)];if(!_0x106a01)return;let _0x3c8b1c=Q(_0x106a01[_0x308013(0x33e)],0x0),_0x470bbf=Q(_0x106a01[_0x308013(0x3a3)],0x0),_0x16f0f9=Math[_0x308013(0x205)](0x1,Q(_0x106a01[_0x308013(0x1b5)],Ut())),_0x30f080=Math[_0x308013(0x205)](0x1,Q(_0x106a01[_0x308013(0x323)],Wt())),_0x3ac3fb=X['branchGap'],_0x28e3e3=(_0x24f432=this[_0x308013(0x179)][_0x308013(0x164)])==null?_0x308013(0x244):_0x24f432;if(_0x189f53[_0x308013(0x362)](),_0x189f53[_0x308013(0x232)]=X['connectorAlpha'],_0x189f53[_0x308013(0x386)]=X[_0x308013(0x265)],_0x189f53[_0x308013(0x408)]=X[_0x308013(0x196)]/_0x187520,_0x189f53[_0x308013(0x208)]=_0x308013(0x414),_0x189f53['lineJoin']=_0x308013(0x414),_0x189f53[_0x308013(0x3c5)](),_0x28e3e3===_0x308013(0x3a3)||_0x28e3e3===_0x308013(0x3f0)){let _0x5c9314=_0x3c8b1c+_0x16f0f9/0x2,_0x2987a8=_0x1d0629[_0x308013(0x33e)]+_0x1d0629[_0x308013(0x1b5)]/0x2,_0x37f148=_0x28e3e3==='bottom'?_0x470bbf+_0x30f080:_0x470bbf,_0x275ec8=_0x28e3e3===_0x308013(0x3f0)?_0x1d0629[_0x308013(0x3a3)]:_0x1d0629[_0x308013(0x3a3)]+_0x1d0629[_0x308013(0x323)],_0x2be725=_0x28e3e3===_0x308013(0x3f0)?Math['min'](_0x37f148+_0x3ac3fb,(_0x37f148+_0x275ec8)/0x2):Math['max'](_0x37f148-_0x3ac3fb,(_0x37f148+_0x275ec8)/0x2);_0x189f53[_0x308013(0x328)](_0x5c9314,_0x37f148),_0x189f53[_0x308013(0x2f7)](_0x5c9314,_0x2be725),_0x189f53[_0x308013(0x2f7)](_0x2987a8,_0x2be725),_0x189f53[_0x308013(0x2f7)](_0x2987a8,_0x275ec8);}else{let _0xac11c1=_0x470bbf+_0x30f080/0x2,_0x4068c2=_0x1d0629['top']+_0x1d0629[_0x308013(0x323)]/0x2,_0x1a40fd=_0x28e3e3===_0x308013(0x244)?_0x3c8b1c+_0x16f0f9:_0x3c8b1c,_0x1e33c5=_0x28e3e3==='right'?_0x1d0629[_0x308013(0x33e)]:_0x1d0629[_0x308013(0x33e)]+_0x1d0629[_0x308013(0x1b5)],_0x3939c7=_0x28e3e3===_0x308013(0x244)?Math['min'](_0x1a40fd+_0x3ac3fb,(_0x1a40fd+_0x1e33c5)/0x2):Math[_0x308013(0x205)](_0x1a40fd-_0x3ac3fb,(_0x1a40fd+_0x1e33c5)/0x2);_0x189f53[_0x308013(0x328)](_0x1a40fd,_0xac11c1),_0x189f53[_0x308013(0x2f7)](_0x3939c7,_0xac11c1),_0x189f53[_0x308013(0x2f7)](_0x3939c7,_0x4068c2),_0x189f53[_0x308013(0x2f7)](_0x1e33c5,_0x4068c2);}_0x189f53['stroke'](),_0x189f53[_0x308013(0x3e0)]();}};function Jt(_0x37cda9,_0x279a30){const _0x249aa8=_0x4e28b3;var _0x28f946;return(_0x28f946=_0x279a30==null?void 0x0:_0x279a30[_0x37cda9[_0x249aa8(0x404)]])==null?_0x37cda9[_0x249aa8(0x409)][_0x249aa8(0x2eb)]:_0x28f946;}function Yt(_0x783487,_0x397764){const _0x1710f8=_0x4e28b3;var _0x20705f,_0x2edbbf,_0x24fffe,_0x37100e;let _0x4d077f=Jt(_0x783487,_0x397764);return{'x':((_0x20705f=_0x4d077f[_0x1710f8(0x33e)])==null?0x0:_0x20705f)+((_0x2edbbf=_0x4d077f[_0x1710f8(0x1b5)])==null?0x0:_0x2edbbf)/0x2,'y':((_0x24fffe=_0x4d077f[_0x1710f8(0x3a3)])==null?0x0:_0x24fffe)+((_0x37100e=_0x4d077f[_0x1710f8(0x323)])==null?0x0:_0x37100e)/0x2};}function Xt(_0x1a258f,_0x9c97f3){const _0x18d0fc=_0x4e28b3;return Math[_0x18d0fc(0x14f)](_0x1a258f['x']-_0x9c97f3['x'],_0x1a258f['y']-_0x9c97f3['y']);}function Zt(_0x255e5a,_0x1ca7ed){const _0x2f6805=_0x4e28b3;var _0x199016,_0x477de8,_0x120332,_0x32e739,_0x2c9b6a,_0x54cb79,_0x4acc65,_0x5335ab;let _0x48a5f2=(_0x199016=_0x255e5a[_0x2f6805(0x33e)])==null?0x0:_0x199016,_0x5bc7b4=(_0x477de8=_0x255e5a[_0x2f6805(0x3a3)])==null?0x0:_0x477de8,_0x3a46ac=_0x48a5f2+((_0x120332=_0x255e5a['width'])==null?0x0:_0x120332),_0x31bc18=_0x5bc7b4+((_0x32e739=_0x255e5a[_0x2f6805(0x323)])==null?0x0:_0x32e739),_0x34ec4d=(_0x2c9b6a=_0x1ca7ed['left'])==null?0x0:_0x2c9b6a,_0x319097=(_0x54cb79=_0x1ca7ed['top'])==null?0x0:_0x54cb79,_0x35d8b6=_0x34ec4d+((_0x4acc65=_0x1ca7ed[_0x2f6805(0x1b5)])==null?0x0:_0x4acc65),_0x363030=_0x319097+((_0x5335ab=_0x1ca7ed[_0x2f6805(0x323)])==null?0x0:_0x5335ab),_0x206e52=Math['max'](_0x34ec4d-_0x3a46ac,_0x48a5f2-_0x35d8b6,0x0),_0x10c154=Math[_0x2f6805(0x205)](_0x319097-_0x31bc18,_0x5bc7b4-_0x363030,0x0);return Math[_0x2f6805(0x14f)](_0x206e52,_0x10c154);}function Qt(_0x2662ba,_0x5d6d96,_0x1760cf){const _0x38f589=_0x4e28b3;var _0x57a0e6;let _0x1a0c29=_0x130c96((_0x57a0e6=_0x2662ba[_0x5d6d96])==null?void 0x0:_0x57a0e6[_0x38f589(0x409)]);for(;_0x1a0c29!=null&&_0x1a0c29['parentNodeId'];){var _0x56b944;if(_0x1a0c29[_0x38f589(0x197)]===_0x1760cf)return!0x0;_0x1a0c29=_0x130c96((_0x56b944=_0x2662ba[_0x1a0c29['parentNodeId']])==null?void 0x0:_0x56b944[_0x38f589(0x409)]);}return!0x1;}function $t(_0x56a217,_0x5e0ec1,_0x420954){const _0x41c646=_0x4e28b3;var _0x2150bc,_0x5dbb95;let _0x4cb43a=Jt(_0x56a217,_0x420954),_0x3e1a60=(_0x2150bc=_0x4cb43a[_0x41c646(0x3a3)])==null?0x0:_0x2150bc,_0x3129ed=(_0x5dbb95=_0x4cb43a['height'])==null?0x0:_0x5dbb95;return _0x3129ed<=0x0?null:_0x5e0ec1['y']<=_0x3e1a60+_0x3129ed/0x3?_0x41c646(0x22e):_0x5e0ec1['y']>=_0x3e1a60+_0x3129ed*0x2/0x3?'after':null;}function en(_0x135eaa,_0x198596){const _0x26bdd0=_0x4e28b3;let _0x30ba30=_0x198596==null?void 0x0:_0x198596[_0x135eaa];return Number[_0x26bdd0(0x2de)](_0x30ba30==null?void 0x0:_0x30ba30['left'])&&Number['isFinite'](_0x30ba30==null?void 0x0:_0x30ba30[_0x26bdd0(0x3a3)])?{'kind':_0x26bdd0(0x39b),'left':_0x30ba30['left'],'top':_0x30ba30['top']}:{'kind':_0x26bdd0(0x39b)};}function tn(_0x253330,_0x5422a2,_0x28e4de){const _0x1529c5=_0x4e28b3;let _0xceaf90=_0x253330[_0x5422a2],_0x4b13df=_0x130c96(_0xceaf90==null?void 0x0:_0xceaf90['element']);if(!_0xceaf90||!_0x4b13df||!_0x4b13df[_0x1529c5(0x197)]&&!(_0x28e4de!=null&&_0x28e4de[_0x1529c5(0x16b)]))return{'kind':_0x1529c5(0x38c)};let _0x47214c=_0x28e4de==null?void 0x0:_0x28e4de[_0x1529c5(0x393)],_0x6c2666=Jt(_0xceaf90,_0x47214c),_0x2253fa=Yt(_0xceaf90,_0x47214c),_0x1f6e7d=Object[_0x1529c5(0x326)](_0x253330)[_0x1529c5(0x1cb)](_0x5a1043=>{const _0x1ba989=_0x1529c5;let _0x1cc9ae=_0x130c96(_0x5a1043['element']);return!_0x1cc9ae||_0x5a1043[_0x1ba989(0x404)]===_0x5422a2||_0x5a1043[_0x1ba989(0x404)]===_0x4b13df[_0x1ba989(0x197)]||_0x28e4de!=null&&_0x28e4de['allowRootReparent']&&!_0x4b13df[_0x1ba989(0x197)]&&_0x1cc9ae['structureScopeId']===_0x4b13df[_0x1ba989(0x3fe)]||Qt(_0x253330,_0x5a1043['elementId'],_0x5422a2)?null:{'item':_0x5a1043,'snapDistance':Zt(_0x6c2666,Jt(_0x5a1043,_0x47214c)),'center':Yt(_0x5a1043,_0x47214c)};})['filter'](_0x45fea9=>!!_0x45fea9)[_0x1529c5(0x3b9)]((_0x5cc575,_0x1b72f5)=>_0x5cc575[_0x1529c5(0x3cb)]-_0x1b72f5['snapDistance']||Xt(_0x2253fa,_0x5cc575[_0x1529c5(0x2cc)])-Xt(_0x2253fa,_0x1b72f5[_0x1529c5(0x2cc)]))[0x0];if(_0x1f6e7d&&_0x1f6e7d[_0x1529c5(0x3cb)]<=0x64){let _0x16b0bf=_0x130c96(_0x1f6e7d[_0x1529c5(0x1d5)]['element']),_0x46b59b=_0x16b0bf!=null&&_0x16b0bf[_0x1529c5(0x197)]?$t(_0x1f6e7d['item'],_0x2253fa,_0x47214c):null;if(_0x16b0bf!=null&&_0x16b0bf['parentNodeId']&&_0x46b59b){var _0x5a31ed;return{'kind':'reparent','newParentNodeId':_0x16b0bf[_0x1529c5(0x197)],'side':(_0x5a31ed=_0x16b0bf[_0x1529c5(0x164)])==null?'right':_0x5a31ed,'referenceNodeId':_0x1f6e7d[_0x1529c5(0x1d5)][_0x1529c5(0x404)],'placement':_0x46b59b};}return{'kind':_0x1529c5(0x3b2),'newParentNodeId':_0x1f6e7d[_0x1529c5(0x1d5)][_0x1529c5(0x404)],'side':_0x2253fa['x']<_0x1f6e7d[_0x1529c5(0x2cc)]['x']?_0x1529c5(0x33e):_0x1529c5(0x244)};}if(_0x28e4de!=null&&_0x28e4de[_0x1529c5(0x395)])return en(_0x5422a2,_0x47214c);if(!_0x4b13df[_0x1529c5(0x197)])return{'kind':'none'};let _0x285810=_0x253330[_0x4b13df['parentNodeId']];return _0x285810&&Xt(_0x2253fa,Yt(_0x285810,_0x47214c))>0x230?en(_0x5422a2,_0x47214c):{'kind':'none'};}function nn(_0x53a1d2,_0x126047){const _0x1dc86b=_0x4e28b3;var _0x3df4bb,_0x24f6f3;return _0x53a1d2[_0x1dc86b(0x404)]===_0x126047||((_0x3df4bb=_0x130c96(_0x53a1d2[_0x1dc86b(0x409)]))==null?void 0x0:_0x3df4bb[_0x1dc86b(0x3fe)])===_0x126047||((_0x24f6f3=_0x42da87(_0x53a1d2[_0x1dc86b(0x409)]))==null?void 0x0:_0x24f6f3['structureScopeId'])===_0x126047;}function rn(_0x5f1c5b,_0x3a62c1,_0x2f6b48,_0x452683){const _0x4410=_0x4e28b3;var _0x54afec,_0x3757bd,_0x1ebef6,_0x3902e8,_0x344f4c,_0x1afaa7;let _0x500d57=_0x5f1c5b[_0x3a62c1];if(!_0x500d57)return _0x5f1c5b;let _0x27a1ac=(_0x54afec=(_0x3757bd=_0x500d57[_0x4410(0x2eb)])==null?_0x500d57[_0x4410(0x409)]['transform']:_0x3757bd)==null?{}:_0x54afec;return{..._0x5f1c5b,[_0x3a62c1]:{..._0x500d57,'transform':{..._0x27a1ac,'left':((_0x1ebef6=_0x27a1ac[_0x4410(0x33e)])==null?0x0:_0x1ebef6)+_0x2f6b48,'top':((_0x3902e8=_0x27a1ac[_0x4410(0x3a3)])==null?0x0:_0x3902e8)+_0x452683},'element':{..._0x500d57[_0x4410(0x409)],'transform':{..._0x500d57['element'][_0x4410(0x2eb)],'left':((_0x344f4c=_0x500d57[_0x4410(0x409)]['transform'][_0x4410(0x33e)])==null?0x0:_0x344f4c)+_0x2f6b48,'top':((_0x1afaa7=_0x500d57[_0x4410(0x409)]['transform'][_0x4410(0x3a3)])==null?0x0:_0x1afaa7)+_0x452683}}}};}function an(_0x89889a){const _0x4bf2ed=_0x4e28b3;if(!Number[_0x4bf2ed(0x2de)](_0x89889a[_0x4bf2ed(0x22a)]['left'])||!Number[_0x4bf2ed(0x2de)](_0x89889a[_0x4bf2ed(0x22a)][_0x4bf2ed(0x3a3)])||!Number['isFinite'](_0x89889a[_0x4bf2ed(0x1aa)][_0x4bf2ed(0x33e)])||!Number['isFinite'](_0x89889a[_0x4bf2ed(0x1aa)][_0x4bf2ed(0x3a3)]))return null;let _0x47a231=_0x89889a[_0x4bf2ed(0x22a)][_0x4bf2ed(0x33e)]-_0x89889a[_0x4bf2ed(0x1aa)][_0x4bf2ed(0x33e)],_0x1b0ebc=_0x89889a[_0x4bf2ed(0x22a)][_0x4bf2ed(0x3a3)]-_0x89889a['rootStartBounds']['top'],_0x59138c=rn(_0x89889a['elementData'],_0x89889a[_0x4bf2ed(0x38b)],_0x47a231,_0x1b0ebc),_0x205869=[];return Object[_0x4bf2ed(0x326)](_0x59138c)[_0x4bf2ed(0x3c2)](_0x4aa2df=>{const _0x413466=_0x4bf2ed;if(_0x4aa2df[_0x413466(0x404)]===_0x89889a[_0x413466(0x215)]||_0x4aa2df[_0x413466(0x404)]===_0x89889a[_0x413466(0x38b)]||!nn(_0x4aa2df,_0x89889a['scopeId']))return;if('connectorData'in _0x4aa2df['element']){var _0xced695;let _0x26cc11=(_0xced695=_0x89889a[_0x413466(0x25a)][_0x4aa2df[_0x413466(0x404)]])==null?void 0x0:_0xced695['element'];_0x26cc11&&_0x413466(0x296)in _0x26cc11&&_0x205869['push']({'kind':_0x413466(0x34c),'elementId':_0x4aa2df[_0x413466(0x404)],'element':_0x31298f(_0x26cc11,{'x':_0x47a231,'y':_0x1b0ebc})});return;}let _0x422040=_0x8188de(_0x59138c,_0x4aa2df[_0x413466(0x404)]);_0x422040&&_0x205869[_0x413466(0x251)]({'kind':'bounds','elementId':_0x4aa2df['elementId'],'bounds':_0x422040});}),{'deltaX':_0x47a231,'deltaY':_0x1b0ebc,'elementData':_0x59138c,'items':_0x205869};}let on=class extends _0x43afa6{constructor(_0x666407,_0x1d2377,_0x67a80b,_0x21612d,_0x3bf55d,_0x2c9ef9){const _0x113f26=_0x4e28b3;super(),this['_renderContext']=_0x666407,this['_boardElementService']=_0x1d2377,this[_0x113f26(0x1e3)]=_0x67a80b,this['_commandService']=_0x21612d,this['_uiStateService']=_0x3bf55d,this[_0x113f26(0x218)]=_0x2c9ef9,K(this,_0x113f26(0x3f7),null),K(this,'_pointerDragStart',null),K(this,'_dragPreviewObject',null),K(this,_0x113f26(0x324),!0x1),K(this,_0x113f26(0x364),null),K(this,_0x113f26(0x412),null),K(this,'_attachObjectPointerScheduled',!0x1),K(this,'_activePointerDragDisposables',null),K(this,_0x113f26(0x1f6),!0x1),this['_init']();}[_0x4e28b3(0x169)](){const _0x33def7=_0x4e28b3;var _0x49f713,_0x1370be,_0x515acb,_0x1a03c9,_0x2ade10,_0xdc83dd,_0x51ece2,_0x2a9e30,_0x91b159,_0x4fc4d7;let _0xbabf7=this[_0x33def7(0x1f3)][_0x33def7(0x171)]['getTransformerByCreate']();this['disposeWithMe'](_0x288fdc(_0xbabf7['changeStart$'][_0x33def7(0x34f)](_0x362352(this[_0x33def7(0x2a2)]))[_0x33def7(0x345)](()=>{const _0x413c36=_0x33def7;this[_0x413c36(0x2b4)]();}))),this['disposeWithMe'](_0x288fdc((_0x49f713=(_0x1370be=_0xbabf7['changing$'])==null?void 0x0:_0x1370be[_0x33def7(0x34f)](_0x362352(this[_0x33def7(0x2a2)]))[_0x33def7(0x345)](_0x3d82ac=>{this['_syncDragPreview'](_0x3d82ac==null?void 0x0:_0x3d82ac['objects']);}))==null?{'dispose':()=>{}}:_0x49f713)),this[_0x33def7(0x40b)](_0x288fdc(_0xbabf7['changeEnd$'][_0x33def7(0x34f)](_0x362352(this[_0x33def7(0x2a2)]))[_0x33def7(0x345)](_0x332fdb=>{const _0x3230c9=_0x33def7;setTimeout(()=>this[_0x3230c9(0x14e)](_0x332fdb==null?void 0x0:_0x332fdb[_0x3230c9(0x1ab)]),0x0);}))),this[_0x33def7(0x40b)](_0x288fdc((_0x515acb=(_0x1a03c9=this[_0x33def7(0x1f3)][_0x33def7(0x171)][_0x33def7(0x33d)])==null?void 0x0:_0x1a03c9[_0x33def7(0x36e)]({'priority':0x3,'next':([_0x57c306])=>this[_0x33def7(0x1f9)](_0x57c306)}))==null?{'dispose':()=>{}}:_0x515acb)),this['disposeWithMe'](_0x288fdc((_0x2ade10=(_0xdc83dd=this[_0x33def7(0x1f3)][_0x33def7(0x171)][_0x33def7(0x1a4)])==null?void 0x0:_0xdc83dd['subscribeEvent']({'priority':0x3,'next':([_0x2105cc,_0x29a4da])=>this[_0x33def7(0x2d6)](_0x2105cc,_0x29a4da)}))==null?{'dispose':()=>{}}:_0x2ade10)),this[_0x33def7(0x40b)](_0x288fdc((_0x51ece2=(_0x2a9e30=this['_renderContext'][_0x33def7(0x171)][_0x33def7(0x194)])==null?void 0x0:_0x2a9e30[_0x33def7(0x36e)]({'priority':0x3,'next':([_0x3c231d,_0x25ff61])=>this[_0x33def7(0x38e)](_0x3c231d,_0x25ff61)}))==null?{'dispose':()=>{}}:_0x51ece2)),this[_0x33def7(0x40b)](_0x288fdc((_0x91b159=(_0x4fc4d7=this[_0x33def7(0x1f3)]['scene'][_0x33def7(0x1d9)])==null?void 0x0:_0x4fc4d7[_0x33def7(0x36e)]({'priority':0x3,'next':([,_0x4df382])=>this[_0x33def7(0x293)](_0x4df382)}))==null?{'dispose':()=>{}}:_0x91b159)),this[_0x33def7(0x40b)](_0x288fdc(()=>{const _0x26e044=_0x33def7;var _0x47b5fa;return(_0x47b5fa=this[_0x26e044(0x412)])==null?void 0x0:_0x47b5fa['dispose']();})),this[_0x33def7(0x40b)](_0x288fdc(()=>this[_0x33def7(0x3a8)]())),this[_0x33def7(0x228)](),this[_0x33def7(0x336)](),this[_0x33def7(0x40b)](_0x288fdc(()=>this['_removeDragPreviewObject']()));}[_0x4e28b3(0x228)](){const _0x131954=_0x4e28b3;let _0x5c9383=this[_0x131954(0x234)],_0x40699f=_0x3259bd=>{const _0x12f4b1=_0x131954;let _0x5f2588=_0x3259bd==null?void 0x0:_0x3259bd['subscribe'](()=>this[_0x12f4b1(0x336)]());_0x5f2588&&this[_0x12f4b1(0x40b)](_0x288fdc(()=>{const _0x3e2b30=_0x12f4b1;var _0x226a0c,_0x5d158f;(_0x226a0c=_0x5f2588[_0x3e2b30(0x29d)])==null||_0x226a0c[_0x3e2b30(0x1e1)](_0x5f2588),(_0x5d158f=_0x5f2588[_0x3e2b30(0x1ee)])==null||_0x5d158f['call'](_0x5f2588);}));};_0x40699f(_0x5c9383[_0x131954(0x16e)]),_0x40699f(_0x5c9383['elementUpdate$']),_0x40699f(_0x5c9383[_0x131954(0x300)]),this[_0x131954(0x1e3)][_0x131954(0x27f)]&&this['disposeWithMe'](_0x288fdc(this[_0x131954(0x1e3)][_0x131954(0x27f)][_0x131954(0x34f)](_0x362352(this[_0x131954(0x2a2)]))['subscribe'](()=>{const _0x254bea=_0x131954;this[_0x254bea(0x336)]();})));}[_0x4e28b3(0x336)](){const _0x55c2a6=_0x4e28b3;this[_0x55c2a6(0x2a6)]||(this[_0x55c2a6(0x2a6)]=!0x0,Promise['resolve']()[_0x55c2a6(0x378)](()=>this[_0x55c2a6(0x1d7)]()));}['_attachObjectPointerListeners'](){const _0x1829ed=_0x4e28b3;var _0x5f03f0;this[_0x1829ed(0x2a6)]=!0x1;let _0x4253d8=this[_0x1829ed(0x2d3)](),_0x37b9d7=this['_renderContext'][_0x1829ed(0x171)];if(!_0x4253d8||typeof _0x37b9d7[_0x1829ed(0x3fc)]!='function')return;let _0x113d8d=this['_boardElementService'][_0x1829ed(0x36f)](_0x4253d8[_0x1829ed(0x204)],_0x4253d8[_0x1829ed(0x1e8)]),_0x475336=new _0x4ee20c();(_0x5f03f0=this[_0x1829ed(0x412)])==null||_0x5f03f0[_0x1829ed(0x29d)](),this[_0x1829ed(0x412)]=_0x475336,Object[_0x1829ed(0x326)](_0x113d8d)[_0x1829ed(0x3c2)](_0x58309f=>{const _0x29e5c0=_0x1829ed;var _0x4fcca7,_0x3bd1e5,_0x226384;let _0x3c322d=_0x130c96(_0x58309f['element']);if(!(_0x3c322d!=null&&_0x3c322d[_0x29e5c0(0x197)]))return;let _0x5c2096=_0x239fd6(_0x4253d8[_0x29e5c0(0x204)],_0x58309f[_0x29e5c0(0x404)]),_0x13b28a=(_0x4fcca7=(_0x3bd1e5=_0x37b9d7[_0x29e5c0(0x24c)])==null?void 0x0:_0x3bd1e5[_0x29e5c0(0x1e1)](_0x37b9d7,_0x5c2096))==null?(_0x226384=_0x37b9d7['getObject'])==null?void 0x0:_0x226384[_0x29e5c0(0x1e1)](_0x37b9d7,_0x5c2096):_0x4fcca7;_0x13b28a!=null&&_0x13b28a[_0x29e5c0(0x33d)]&&_0x475336['add'](_0x13b28a[_0x29e5c0(0x33d)][_0x29e5c0(0x36e)]({'priority':-0xa,'next':([_0x210fa8,_0x5aff8e])=>this[_0x29e5c0(0x1f9)](_0x210fa8,{'unitId':_0x4253d8[_0x29e5c0(0x204)],'subUnitId':_0x4253d8[_0x29e5c0(0x1e8)],'nodeId':_0x58309f[_0x29e5c0(0x404)]},_0x5aff8e)}));});}['_resolveCurrentBoardContext'](){const _0x523b65=_0x4e28b3;let _0x3be04b=this[_0x523b65(0x1e3)][_0x523b65(0x2af)]()['context'];if(_0x3be04b)return _0x3be04b;let _0x34d604=this['_renderContext'][_0x523b65(0x204)],_0x17492a=_0x34d604?this[_0x523b65(0x218)]['getUnit'](_0x34d604,_0x2934fe[_0x523b65(0x302)]):null,_0x3326e6=_0x17492a==null?void 0x0:_0x17492a[_0x523b65(0x3be)]();return!_0x17492a||!_0x3326e6?null:{'unitId':_0x17492a[_0x523b65(0x2c1)](),'subUnitId':_0x3326e6};}[_0x4e28b3(0x2b4)](){const _0x36bba3=_0x4e28b3;var _0x9e6b3b,_0x5c3afa,_0xc9a810,_0x3621bb,_0x47f853,_0x45576c,_0x55b381,_0x5a267e,_0x376706;let _0x224563=this[_0x36bba3(0x1e3)][_0x36bba3(0x2af)]();this['_childDragActivated']=!0x1,this[_0x36bba3(0x1f6)]=!0x1,this[_0x36bba3(0x364)]=null;let _0x58d166=_0x224563['context'],_0x3c24d6=(_0x9e6b3b=_0x224563[_0x36bba3(0x26f)])==null?_0x224563[_0x36bba3(0x315)][0x0]:_0x9e6b3b;if(!_0x58d166||!_0x3c24d6||_0x224563[_0x36bba3(0x315)][_0x36bba3(0x282)]!==0x1){this[_0x36bba3(0x3f7)]=null,this['_removeDragPreviewObject']();return;}let _0x537848=this['_boardElementService'][_0x36bba3(0x36f)](_0x58d166[_0x36bba3(0x204)],_0x58d166['subUnitId']),_0x2a4e7f=_0x537848[_0x3c24d6],_0x105db7=_0x130c96(_0x2a4e7f==null?void 0x0:_0x2a4e7f['element']);if(!_0x2a4e7f||!_0x105db7){this['_dragStart']=null,this[_0x36bba3(0x41a)]();return;}let _0x489b72=_0x8188de(_0x537848,_0x3c24d6),_0x31c71d=_0x2a4e7f[_0x36bba3(0x409)][_0x36bba3(0x2eb)];this['_dragStart']={'kind':_0x105db7[_0x36bba3(0x197)]===null?_0x36bba3(0x407):_0x36bba3(0x1f4),'unitId':_0x58d166['unitId'],'subUnitId':_0x58d166[_0x36bba3(0x1e8)],'nodeId':_0x3c24d6,'scopeId':_0x105db7[_0x36bba3(0x3fe)],'left':(_0x5c3afa=(_0xc9a810=_0x489b72==null?void 0x0:_0x489b72[_0x36bba3(0x33e)])==null?_0x31c71d[_0x36bba3(0x33e)]:_0xc9a810)==null?0x0:_0x5c3afa,'top':(_0x3621bb=(_0x47f853=_0x489b72==null?void 0x0:_0x489b72[_0x36bba3(0x3a3)])==null?_0x31c71d[_0x36bba3(0x3a3)]:_0x47f853)==null?0x0:_0x3621bb,'width':(_0x45576c=(_0x55b381=_0x489b72==null?void 0x0:_0x489b72[_0x36bba3(0x1b5)])==null?_0x31c71d['width']:_0x55b381)==null?0x0:_0x45576c,'height':(_0x5a267e=(_0x376706=_0x489b72==null?void 0x0:_0x489b72[_0x36bba3(0x323)])==null?_0x31c71d['height']:_0x376706)==null?0x0:_0x5a267e,'elementData':_0x537848};}[_0x4e28b3(0x1f9)](_0x59ae69,_0x40c9f0,_0x26496f){const _0x2d93c9=_0x4e28b3;var _0x1cb50f,_0x1b4538,_0x2b9e99,_0x4d5370,_0x456383,_0x570ada,_0x5d76bf,_0x44cd2,_0x4a6ca2,_0x42f1a2,_0x15577b,_0x526811,_0x4b13a0,_0x52160e;if(((_0x1cb50f=_0x59ae69[_0x2d93c9(0x3c7)])==null?0x0:_0x1cb50f)!==0x0)return;let _0x219a5f=this[_0x2d93c9(0x1e3)][_0x2d93c9(0x2af)]();if(_0x219a5f[_0x2d93c9(0x2bc)]){this[_0x2d93c9(0x3e6)]=null;return;}let _0x238cad=_0x40c9f0?{'unitId':_0x40c9f0[_0x2d93c9(0x204)],'subUnitId':_0x40c9f0[_0x2d93c9(0x1e8)]}:(_0x1b4538=_0x219a5f[_0x2d93c9(0x1ed)])==null?this[_0x2d93c9(0x2d3)]():_0x1b4538,_0x5a6778=(_0x2b9e99=_0x40c9f0==null?void 0x0:_0x40c9f0[_0x2d93c9(0x263)])==null?_0x219a5f[_0x2d93c9(0x315)][_0x2d93c9(0x282)]===0x1?(_0x4d5370=_0x219a5f[_0x2d93c9(0x26f)])==null?_0x219a5f[_0x2d93c9(0x315)][0x0]:_0x4d5370:void 0x0:_0x2b9e99;if(!_0x238cad){this['_pointerDragStart']=null;return;}let _0x23719b=this[_0x2d93c9(0x234)]['getElementData'](_0x238cad[_0x2d93c9(0x204)],_0x238cad[_0x2d93c9(0x1e8)]),_0x3c7ff1=this['_getBoardPointFromEvent'](_0x59ae69);if(!_0x40c9f0){var _0x3e40f3,_0x59b791,_0x3ee20b,_0x23a334,_0x19214b;let _0x15697d=_0x5a6778?_0x23719b[_0x5a6778]:null,_0xc7a77=_0x130c96(_0x15697d==null?void 0x0:_0x15697d[_0x2d93c9(0x409)]),_0x2ebb2b=_0x5a6778?(_0x3e40f3=_0x8188de(_0x23719b,_0x5a6778))==null?_0x15697d==null?void 0x0:_0x15697d[_0x2d93c9(0x409)][_0x2d93c9(0x2eb)]:_0x3e40f3:null;(!(_0xc7a77!=null&&_0xc7a77['parentNodeId'])||!_0x2ebb2b||!this['_isPointInBounds'](_0x3c7ff1,{'left':(_0x59b791=_0x2ebb2b[_0x2d93c9(0x33e)])==null?0x0:_0x59b791,'top':(_0x3ee20b=_0x2ebb2b[_0x2d93c9(0x3a3)])==null?0x0:_0x3ee20b,'width':(_0x23a334=_0x2ebb2b[_0x2d93c9(0x1b5)])==null?0x0:_0x23a334,'height':(_0x19214b=_0x2ebb2b['height'])==null?0x0:_0x19214b}))&&(_0x5a6778=this[_0x2d93c9(0x19c)](_0x23719b,_0x3c7ff1));}if(!_0x5a6778){this[_0x2d93c9(0x3e6)]=null;return;}let _0x25e1f4=_0x23719b[_0x5a6778],_0x4322b6=_0x130c96(_0x25e1f4==null?void 0x0:_0x25e1f4['element']);if(!_0x25e1f4||!(_0x4322b6!=null&&_0x4322b6[_0x2d93c9(0x197)])){this['_pointerDragStart']=null;return;}(_0x456383=(_0x570ada=this[_0x2d93c9(0x1e3)])[_0x2d93c9(0x15b)])==null||_0x456383[_0x2d93c9(0x1e1)](_0x570ada,_0x238cad,[_0x5a6778],_0x5a6778),_0x26496f==null||_0x26496f['stopPropagation']();let _0x4ce2f6=_0x8188de(_0x23719b,_0x5a6778),_0x45ccaf=_0x25e1f4[_0x2d93c9(0x409)][_0x2d93c9(0x2eb)],_0x4fd0b8={'left':(_0x5d76bf=(_0x44cd2=_0x4ce2f6==null?void 0x0:_0x4ce2f6[_0x2d93c9(0x33e)])==null?_0x45ccaf['left']:_0x44cd2)==null?0x0:_0x5d76bf,'top':(_0x4a6ca2=(_0x42f1a2=_0x4ce2f6==null?void 0x0:_0x4ce2f6[_0x2d93c9(0x3a3)])==null?_0x45ccaf[_0x2d93c9(0x3a3)]:_0x42f1a2)==null?0x0:_0x4a6ca2,'width':(_0x15577b=(_0x526811=_0x4ce2f6==null?void 0x0:_0x4ce2f6[_0x2d93c9(0x1b5)])==null?_0x45ccaf[_0x2d93c9(0x1b5)]:_0x526811)==null?0x0:_0x15577b,'height':(_0x4b13a0=(_0x52160e=_0x4ce2f6==null?void 0x0:_0x4ce2f6['height'])==null?_0x45ccaf[_0x2d93c9(0x323)]:_0x52160e)==null?0x0:_0x4b13a0};if(!_0x40c9f0&&!this['_isPointInBounds'](_0x3c7ff1,_0x4fd0b8)){this[_0x2d93c9(0x3e6)]=null;return;}let _0x379cf3=this[_0x2d93c9(0x29b)](_0x59ae69);this[_0x2d93c9(0x324)]=!0x1,this['_childDragSelectionHidden']=!0x1,this[_0x2d93c9(0x364)]=null,this['_pointerDragStart']={'kind':'child','unitId':_0x238cad[_0x2d93c9(0x204)],'subUnitId':_0x238cad[_0x2d93c9(0x1e8)],'nodeId':_0x5a6778,'scopeId':_0x4322b6['structureScopeId'],..._0x4fd0b8,'pointerStartX':_0x379cf3['x'],'pointerStartY':_0x379cf3['y'],'elementData':_0x23719b},this[_0x2d93c9(0x1e6)](),this[_0x2d93c9(0x26a)](_0x59ae69,_0x26496f);}[_0x4e28b3(0x2d6)](_0x33ff8e,_0x38ace6){const _0x3322ed=_0x4e28b3;var _0x12817b,_0x145d9a;let _0xd28e6b=this['_pointerDragStart'];if(!_0xd28e6b||_0x33ff8e['buttons']!==void 0x0&&_0x33ff8e['buttons']!==0x1)return;let _0x166637=this[_0x3322ed(0x369)](_0x33ff8e,_0xd28e6b);if(!this['_isChildDragPastActivationThreshold'](_0xd28e6b,_0x166637))return;this[_0x3322ed(0x324)]||this[_0x3322ed(0x16f)](),this[_0x3322ed(0x324)]=!0x0;let _0x4886d2=this[_0x3322ed(0x235)](_0xd28e6b[_0x3322ed(0x25a)],_0xd28e6b['nodeId'],_0x166637),_0x17b7c4=tn(_0xd28e6b[_0x3322ed(0x25a)],_0xd28e6b['nodeId'],{'boundsByElementId':_0x4886d2,'detachWhenNoSnap':!0x0});this['_lastChildDragAction']=_0x17b7c4,this[_0x3322ed(0x217)](_0x166637,_0x17b7c4,_0x4886d2),this[_0x3322ed(0x26a)](_0x33ff8e,_0x38ace6),this[_0x3322ed(0x1f3)][_0x3322ed(0x171)][_0x3322ed(0x29f)](!0x0),(_0x12817b=(_0x145d9a=this[_0x3322ed(0x1f3)][_0x3322ed(0x171)])['requestRender'])==null||_0x12817b[_0x3322ed(0x1e1)](_0x145d9a);}[_0x4e28b3(0x38e)](_0x26369,_0x3724cb){const _0x2e0819=_0x4e28b3;let _0x1ff87f=this[_0x2e0819(0x3e6)];if(!_0x1ff87f)return;if(this[_0x2e0819(0x3e6)]=null,this[_0x2e0819(0x3a8)](),this['_removeDragPreviewObject'](),!this['_childDragActivated']){this[_0x2e0819(0x364)]=null;return;}let _0x174208=this[_0x2e0819(0x234)][_0x2e0819(0x36f)](_0x1ff87f['unitId'],_0x1ff87f['subUnitId']),_0x435634=this[_0x2e0819(0x369)](_0x26369,_0x1ff87f),_0x364244=this[_0x2e0819(0x235)](_0x174208,_0x1ff87f['nodeId'],_0x435634),_0x5ed69c=tn(_0x174208,_0x1ff87f[_0x2e0819(0x263)],{'boundsByElementId':_0x364244,'detachWhenNoSnap':!0x0});this[_0x2e0819(0x364)]=null,this[_0x2e0819(0x1ea)](_0x1ff87f[_0x2e0819(0x204)],_0x1ff87f[_0x2e0819(0x1e8)],_0x1ff87f[_0x2e0819(0x263)],_0x174208,_0x5ed69c),this[_0x2e0819(0x1f6)]=!0x1,this['_consumePointerEvent'](_0x26369,_0x3724cb);}[_0x4e28b3(0x293)](_0x3d4581){const _0x35323c=_0x4e28b3;let _0x477919=this[_0x35323c(0x3e6)];if(_0x477919){if(this[_0x35323c(0x3e6)]=null,this[_0x35323c(0x3a8)](),this['_childDragActivated']=!0x1,this[_0x35323c(0x364)]=null,this[_0x35323c(0x41a)](),this['_childDragSelectionHidden']){var _0xbb206,_0x415133;(_0xbb206=(_0x415133=this[_0x35323c(0x1e3)])[_0x35323c(0x15b)])==null||_0xbb206[_0x35323c(0x1e1)](_0x415133,{'unitId':_0x477919['unitId'],'subUnitId':_0x477919[_0x35323c(0x1e8)]},[_0x477919[_0x35323c(0x263)]],_0x477919[_0x35323c(0x263)]),this['_childDragSelectionHidden']=!0x1;}_0x3d4581==null||_0x3d4581[_0x35323c(0x372)]();}}[_0x4e28b3(0x1e6)](){const _0x2d2f98=_0x4e28b3;this[_0x2d2f98(0x3a8)]();let _0x1cf7ab=typeof window>'u'?null:window;if(!(_0x1cf7ab!=null&&_0x1cf7ab[_0x2d2f98(0x1d6)]))return;let _0x12514e=new _0x4ee20c(),_0x3de023=_0x44a521=>this['_syncPointerChildDragPreview'](_0x44a521),_0x5f8298=_0xcfbeab=>this[_0x2d2f98(0x38e)](_0xcfbeab),_0x2623bf=()=>this[_0x2d2f98(0x293)]();_0x1cf7ab[_0x2d2f98(0x1d6)](_0x2d2f98(0x20d),_0x3de023,{'capture':!0x0}),_0x1cf7ab[_0x2d2f98(0x1d6)](_0x2d2f98(0x31c),_0x5f8298,{'capture':!0x0}),_0x1cf7ab[_0x2d2f98(0x1d6)](_0x2d2f98(0x3e8),_0x2623bf,{'capture':!0x0}),_0x12514e[_0x2d2f98(0x398)](_0x288fdc(()=>{const _0x21f71c=_0x2d2f98;_0x1cf7ab['removeEventListener']('pointermove',_0x3de023,{'capture':!0x0}),_0x1cf7ab[_0x21f71c(0x152)](_0x21f71c(0x31c),_0x5f8298,{'capture':!0x0}),_0x1cf7ab[_0x21f71c(0x152)]('pointercancel',_0x2623bf,{'capture':!0x0});})),this['_activePointerDragDisposables']=_0x12514e;}[_0x4e28b3(0x19c)](_0x5cefad,_0x378ee9){const _0xfd42f7=_0x4e28b3;let _0x2fa10d=Object[_0xfd42f7(0x326)](_0x5cefad);for(let _0x6d2e0a=_0x2fa10d[_0xfd42f7(0x282)]-0x1;_0x6d2e0a>=0x0;--_0x6d2e0a){var _0x1b9bc8,_0x2bb313,_0x467b31,_0x2e2967,_0x27c40a;let _0x32f56d=_0x2fa10d[_0x6d2e0a],_0x4c55cd=_0x130c96(_0x32f56d['element']);if(!(_0x4c55cd!=null&&_0x4c55cd['parentNodeId']))continue;let _0x57cebb=(_0x1b9bc8=_0x8188de(_0x5cefad,_0x32f56d[_0xfd42f7(0x404)]))==null?_0x32f56d[_0xfd42f7(0x409)][_0xfd42f7(0x2eb)]:_0x1b9bc8;if(this[_0xfd42f7(0x16d)](_0x378ee9,{'left':(_0x2bb313=_0x57cebb['left'])==null?0x0:_0x2bb313,'top':(_0x467b31=_0x57cebb[_0xfd42f7(0x3a3)])==null?0x0:_0x467b31,'width':(_0x2e2967=_0x57cebb[_0xfd42f7(0x1b5)])==null?0x0:_0x2e2967,'height':(_0x27c40a=_0x57cebb['height'])==null?0x0:_0x27c40a}))return _0x32f56d[_0xfd42f7(0x404)];}}[_0x4e28b3(0x3a8)](){const _0x76eb50=_0x4e28b3;var _0x458d10;(_0x458d10=this[_0x76eb50(0x1cd)])==null||_0x458d10[_0x76eb50(0x29d)](),this[_0x76eb50(0x1cd)]=null;}[_0x4e28b3(0x3b1)](_0x2771b4){const _0x3b1e3f=_0x4e28b3;let _0x54b0a7=this[_0x3b1e3f(0x3f7)];if(_0x54b0a7){if(_0x54b0a7['kind']===_0x3b1e3f(0x407)){this[_0x3b1e3f(0x384)](_0x2771b4),this[_0x3b1e3f(0x33f)](_0x2771b4);return;}this[_0x3b1e3f(0x2b6)](_0x2771b4);}}[_0x4e28b3(0x384)](_0x33d286){const _0x1158ff=_0x4e28b3;let _0x158f27=this[_0x1158ff(0x3f7)];if(!_0x158f27||_0x158f27[_0x1158ff(0x15e)]!==_0x1158ff(0x407))return;let _0x12fce0=_0x33d286==null?void 0x0:_0x33d286['get'](_0x239fd6(_0x158f27[_0x1158ff(0x204)],_0x158f27[_0x1158ff(0x263)]));if(!_0x12fce0||!Number[_0x1158ff(0x2de)](_0x12fce0['left'])||!Number['isFinite'](_0x12fce0[_0x1158ff(0x3a3)]))return;let _0x229f2e=an({'elementData':_0x158f27['elementData'],'rootNodeId':_0x158f27[_0x1158ff(0x263)],'scopeId':_0x158f27[_0x1158ff(0x38b)],'rootStartBounds':{'left':_0x158f27[_0x1158ff(0x33e)],'top':_0x158f27[_0x1158ff(0x3a3)]},'liveRootBounds':{'left':_0x12fce0[_0x1158ff(0x33e)],'top':_0x12fce0['top']}});if(!_0x229f2e)return;let _0xf5138a=this['_renderContext']['scene'],_0x58488c=_0xf5138a,_0x1f26bb=!0x1;_0x229f2e[_0x1158ff(0x3bb)][_0x1158ff(0x3c2)](_0x4ed971=>{const _0x737573=_0x1158ff;var _0x3c7125,_0x310610;let _0x57422f=_0x239fd6(_0x158f27[_0x737573(0x204)],_0x4ed971[_0x737573(0x404)]),_0x4124f5=(_0x3c7125=(_0x310610=_0x58488c[_0x737573(0x24c)])==null?void 0x0:_0x310610['call'](_0x58488c,_0x57422f))==null?_0xf5138a['getObject'](_0x57422f):_0x3c7125;if(_0x4124f5){if(_0x4ed971[_0x737573(0x15e)]===_0x737573(0x34c)&&typeof _0x4124f5['updateElement']==_0x737573(0x1a6)){_0x4124f5[_0x737573(0x18c)](_0x4ed971[_0x737573(0x409)],_0x229f2e[_0x737573(0x25a)]),_0x1f26bb=!0x0;return;}_0x4ed971[_0x737573(0x15e)]===_0x737573(0x27c)&&(_0x4124f5[_0x737573(0x1e7)](_0x4ed971[_0x737573(0x27c)]),typeof _0x4124f5[_0x737573(0x1e0)]==_0x737573(0x1a6)?_0x4124f5[_0x737573(0x1e0)](!0x0):_0x4124f5['makeDirty'](!0x0),_0x1f26bb=!0x0);}}),_0x1f26bb&&_0xf5138a[_0x1158ff(0x29f)](!0x0);}[_0x4e28b3(0x33f)](_0x2b4495){const _0x42abdd=_0x4e28b3;var _0x4f12c5,_0x4fa8ce;let _0x5d5648=this['_dragStart'];if(!_0x5d5648||_0x5d5648[_0x42abdd(0x15e)]!=='root')return;let _0x42eed8=_0x2b4495==null?void 0x0:_0x2b4495[_0x42abdd(0x349)](_0x239fd6(_0x5d5648[_0x42abdd(0x204)],_0x5d5648[_0x42abdd(0x263)]));if(!_0x42eed8||!Number['isFinite'](_0x42eed8[_0x42abdd(0x33e)])||!Number[_0x42abdd(0x2de)](_0x42eed8[_0x42abdd(0x3a3)])){this[_0x42abdd(0x41a)]();return;}let _0x5e881e=this[_0x42abdd(0x38a)](_0x42eed8,_0x5d5648),_0x3c2bca=this[_0x42abdd(0x235)](_0x5d5648[_0x42abdd(0x25a)],_0x5d5648[_0x42abdd(0x263)],_0x5e881e),_0x495b1e=tn(_0x5d5648[_0x42abdd(0x25a)],_0x5d5648[_0x42abdd(0x263)],{'boundsByElementId':_0x3c2bca,'allowRootReparent':!0x0});if(_0x495b1e['kind']!==_0x42abdd(0x3b2)){this[_0x42abdd(0x41a)]();return;}let _0x423558=this['_ensureDragPreviewObject']();_0x423558&&(_0x423558[_0x42abdd(0x3e7)]({'ghostBounds':_0x5e881e,'sourceBounds':null,'parentBounds':_0x3c2bca[_0x495b1e[_0x42abdd(0x290)]],'side':_0x495b1e[_0x42abdd(0x164)],'textStyle':void 0x0,'renderGhostNode':!0x1}),this[_0x42abdd(0x1f3)][_0x42abdd(0x171)][_0x42abdd(0x29f)](!0x0),(_0x4f12c5=(_0x4fa8ce=this[_0x42abdd(0x1f3)][_0x42abdd(0x171)])[_0x42abdd(0x24e)])==null||_0x4f12c5[_0x42abdd(0x1e1)](_0x4fa8ce));}['_syncChildDragPreview'](_0x48c879){const _0x40df8f=_0x4e28b3;var _0x3b44fc,_0x568821;let _0x4a7af5=this[_0x40df8f(0x3f7)];if(!_0x4a7af5||_0x4a7af5[_0x40df8f(0x15e)]!=='child')return;let _0x2dcf6d=_0x48c879==null?void 0x0:_0x48c879[_0x40df8f(0x349)](_0x239fd6(_0x4a7af5[_0x40df8f(0x204)],_0x4a7af5[_0x40df8f(0x263)]));if(!_0x2dcf6d){this[_0x40df8f(0x41a)]();return;}let _0x2bece4=this[_0x40df8f(0x38a)](_0x2dcf6d,_0x4a7af5);if(!this[_0x40df8f(0x266)](_0x4a7af5,_0x2bece4)){this['_lastChildDragAction']=null,this[_0x40df8f(0x41a)](),this[_0x40df8f(0x2d9)](_0x2dcf6d,_0x4a7af5),this['_renderContext']['scene'][_0x40df8f(0x29f)](!0x0);return;}this['_childDragActivated']||this[_0x40df8f(0x16f)](),this['_childDragActivated']=!0x0;let _0x58c761=this[_0x40df8f(0x235)](_0x4a7af5[_0x40df8f(0x25a)],_0x4a7af5[_0x40df8f(0x263)],_0x2bece4),_0x491b92=tn(_0x4a7af5[_0x40df8f(0x25a)],_0x4a7af5[_0x40df8f(0x263)],{'boundsByElementId':_0x58c761,'detachWhenNoSnap':!0x0});this[_0x40df8f(0x364)]=_0x491b92,this['_syncChildDragPreviewObject'](_0x2bece4,_0x491b92,_0x58c761),this[_0x40df8f(0x2d9)](_0x2dcf6d,_0x4a7af5),this['_renderContext']['scene'][_0x40df8f(0x29f)](!0x0),(_0x3b44fc=(_0x568821=this[_0x40df8f(0x1f3)][_0x40df8f(0x171)])[_0x40df8f(0x24e)])==null||_0x3b44fc[_0x40df8f(0x1e1)](_0x568821);}[_0x4e28b3(0x14e)](_0x5d75b0){const _0x28de61=_0x4e28b3;var _0x191557;let _0x5bba3f=this[_0x28de61(0x1e3)][_0x28de61(0x2af)](),_0x3a92c3=_0x5bba3f['context'],_0x40b147=(_0x191557=_0x5bba3f[_0x28de61(0x26f)])==null?_0x5bba3f[_0x28de61(0x315)][0x0]:_0x191557;if(!_0x3a92c3||!_0x40b147||_0x5bba3f[_0x28de61(0x315)]['length']!==0x1){this[_0x28de61(0x41a)](),this[_0x28de61(0x3f7)]=null;return;}this[_0x28de61(0x41a)]();let _0x39d02d=this[_0x28de61(0x234)]['getElementData'](_0x3a92c3[_0x28de61(0x204)],_0x3a92c3[_0x28de61(0x1e8)]);if(this['_applyRootTranslation'](_0x3a92c3[_0x28de61(0x204)],_0x3a92c3[_0x28de61(0x1e8)],_0x40b147,_0x39d02d,_0x5d75b0))return;let _0x5ce644=this['_resolveChildDragTopologyAction'](_0x3a92c3[_0x28de61(0x204)],_0x3a92c3[_0x28de61(0x1e8)],_0x40b147,_0x39d02d,_0x5d75b0);this[_0x28de61(0x1ea)](_0x3a92c3[_0x28de61(0x204)],_0x3a92c3[_0x28de61(0x1e8)],_0x40b147,_0x39d02d,_0x5ce644);}[_0x4e28b3(0x1ea)](_0x57a4a4,_0x2879c7,_0x4f069b,_0x22d66a,_0x89af7a){const _0x26169b=_0x4e28b3;if(_0x89af7a[_0x26169b(0x15e)]==='reparent'){var _0x36da6a,_0x7e5351;let _0x58a4ec=_0x130c96((_0x36da6a=_0x22d66a[_0x4f069b])==null?void 0x0:_0x36da6a[_0x26169b(0x409)]),_0x41150c=_0x130c96((_0x7e5351=_0x22d66a[_0x89af7a[_0x26169b(0x290)]])==null?void 0x0:_0x7e5351[_0x26169b(0x409)]);this['_executeAndLayout'](_0x3bb170['id'],{'unitId':_0x57a4a4,'subUnitId':_0x2879c7,'nodeId':_0x4f069b,'newParentNodeId':_0x89af7a['newParentNodeId'],'side':_0x89af7a[_0x26169b(0x164)],..._0x89af7a[_0x26169b(0x33b)]?{'referenceNodeId':_0x89af7a['referenceNodeId']}:null,..._0x89af7a[_0x26169b(0x385)]?{'placement':_0x89af7a['placement']}:null},[_0x58a4ec==null?void 0x0:_0x58a4ec[_0x26169b(0x3fe)],_0x41150c==null?void 0x0:_0x41150c[_0x26169b(0x3fe)]],_0x4f069b);return;}if(_0x89af7a[_0x26169b(0x15e)]===_0x26169b(0x39b)){var _0x1dd118;let _0x2ec7e4=_0x130c96((_0x1dd118=_0x22d66a[_0x4f069b])==null?void 0x0:_0x1dd118['element']);this[_0x26169b(0x310)](_0x465ffb['id'],{'unitId':_0x57a4a4,'subUnitId':_0x2879c7,'nodeId':_0x4f069b,...Number[_0x26169b(0x2de)](_0x89af7a[_0x26169b(0x33e)])?{'left':_0x89af7a[_0x26169b(0x33e)]}:null,...Number[_0x26169b(0x2de)](_0x89af7a[_0x26169b(0x3a3)])?{'top':_0x89af7a[_0x26169b(0x3a3)]}:null},[_0x2ec7e4==null?void 0x0:_0x2ec7e4[_0x26169b(0x3fe)]],_0x4f069b);}}['_applyRootTranslation'](_0x54ac55,_0x392e40,_0x691c86,_0x523089,_0x2174e0){const _0xb5845f=_0x4e28b3;var _0x1a83ad,_0x1491e1,_0x7cbe47,_0x47acdb;let _0x196d1d=this[_0xb5845f(0x3f7)];if((_0x196d1d==null?void 0x0:_0x196d1d[_0xb5845f(0x15e)])===_0xb5845f(0x407)&&(this['_dragStart']=null),!_0x196d1d||_0x196d1d[_0xb5845f(0x204)]!==_0x54ac55||_0x196d1d['subUnitId']!==_0x392e40||_0x196d1d[_0xb5845f(0x263)]!==_0x691c86)return!0x1;let _0x527bc8=_0x523089[_0x691c86],_0xb8c76b=_0x130c96(_0x527bc8==null?void 0x0:_0x527bc8[_0xb5845f(0x409)]);if(!_0x527bc8||!_0xb8c76b||_0xb8c76b[_0xb5845f(0x197)]!==null)return!0x1;let _0x5b57a7=_0x2174e0==null?void 0x0:_0x2174e0['get'](_0x239fd6(_0x54ac55,_0x691c86)),_0xfe92b3=_0x8188de(_0x523089,_0x691c86),_0x467ba4=Number['isFinite'](_0x5b57a7==null?void 0x0:_0x5b57a7['left'])?_0x5b57a7[_0xb5845f(0x33e)]:(_0x1a83ad=(_0x1491e1=_0xfe92b3==null?void 0x0:_0xfe92b3[_0xb5845f(0x33e)])==null?_0x527bc8[_0xb5845f(0x409)]['transform'][_0xb5845f(0x33e)]:_0x1491e1)==null?0x0:_0x1a83ad,_0x3ce458=Number[_0xb5845f(0x2de)](_0x5b57a7==null?void 0x0:_0x5b57a7[_0xb5845f(0x3a3)])?_0x5b57a7['top']:(_0x7cbe47=(_0x47acdb=_0xfe92b3==null?void 0x0:_0xfe92b3['top'])==null?_0x527bc8['element'][_0xb5845f(0x2eb)]['top']:_0x47acdb)==null?0x0:_0x7cbe47,_0x355631=_0x467ba4-_0x196d1d[_0xb5845f(0x33e)],_0x81c5ec=_0x3ce458-_0x196d1d[_0xb5845f(0x3a3)];if(_0x355631===0x0&&_0x81c5ec===0x0)return!0x0;let _0x25fdd1={'left':_0x467ba4,'top':_0x3ce458,'width':Number[_0xb5845f(0x2de)](_0x5b57a7==null?void 0x0:_0x5b57a7[_0xb5845f(0x1b5)])?_0x5b57a7[_0xb5845f(0x1b5)]:_0x196d1d['width'],'height':Number[_0xb5845f(0x2de)](_0x5b57a7==null?void 0x0:_0x5b57a7[_0xb5845f(0x323)])?_0x5b57a7[_0xb5845f(0x323)]:_0x196d1d[_0xb5845f(0x323)]},_0xf9d9a0=tn(_0x523089,_0x691c86,{'boundsByElementId':this[_0xb5845f(0x235)](_0x523089,_0x691c86,_0x25fdd1),'allowRootReparent':!0x0});if(_0xf9d9a0[_0xb5845f(0x15e)]===_0xb5845f(0x3b2))return this[_0xb5845f(0x1ea)](_0x54ac55,_0x392e40,_0x691c86,_0x523089,_0xf9d9a0),!0x0;let _0x1ff7da=!!_0xfe92b3&&Math[_0xb5845f(0x2aa)](_0xfe92b3[_0xb5845f(0x33e)]-_0x467ba4)<0.001&&Math['abs'](_0xfe92b3[_0xb5845f(0x3a3)]-_0x3ce458)<0.001;return this[_0xb5845f(0x19a)]['executeCommand'](_0x5876ce['id'],{'unitId':_0x54ac55,'subUnitId':_0x392e40,'scopeId':_0x196d1d[_0xb5845f(0x38b)],'deltaX':_0x355631,'deltaY':_0x81c5ec,..._0x1ff7da?{'excludeElementIds':[_0x691c86],'preserveExcludedWorldTransforms':!0x0}:null}),!0x0;}[_0x4e28b3(0x2ce)](_0x8991c7,_0x399f15,_0x38d7e5,_0x204226,_0x2d1af2){const _0x18a5ad=_0x4e28b3;let _0x227bf4=this['_dragStart'];if(!_0x227bf4||_0x227bf4[_0x18a5ad(0x15e)]!==_0x18a5ad(0x1f4)||_0x227bf4[_0x18a5ad(0x204)]!==_0x8991c7||_0x227bf4[_0x18a5ad(0x1e8)]!==_0x399f15||_0x227bf4[_0x18a5ad(0x263)]!==_0x38d7e5)return{'kind':'none'};this[_0x18a5ad(0x3f7)]=null;let _0x3a2549=_0x2d1af2==null?void 0x0:_0x2d1af2[_0x18a5ad(0x349)](_0x239fd6(_0x8991c7,_0x38d7e5));if(!this[_0x18a5ad(0x324)])return _0x3a2549&&this[_0x18a5ad(0x2d9)](_0x3a2549,_0x227bf4),this[_0x18a5ad(0x364)]=null,{'kind':_0x18a5ad(0x38c)};if(!_0x3a2549){var _0x310b13;let _0x2f82a9=(_0x310b13=this['_lastChildDragAction'])==null?{'kind':_0x18a5ad(0x38c)}:_0x310b13;return this[_0x18a5ad(0x364)]=null,_0x2f82a9;}let _0xe8ca32=this[_0x18a5ad(0x38a)](_0x3a2549,_0x227bf4);if(this['_restoreObjectToDragStart'](_0x3a2549,_0x227bf4),!this[_0x18a5ad(0x266)](_0x227bf4,_0xe8ca32))return this[_0x18a5ad(0x364)]=null,{'kind':_0x18a5ad(0x38c)};let _0x5e9987=tn(_0x204226,_0x38d7e5,{'boundsByElementId':this[_0x18a5ad(0x235)](_0x204226,_0x38d7e5,_0xe8ca32),'detachWhenNoSnap':!0x0});return this[_0x18a5ad(0x364)]=null,_0x5e9987;}[_0x4e28b3(0x266)](_0x3240b5,_0x24caeb){const _0x23e6fa=_0x4e28b3;var _0x469f2a,_0x51357b;let _0x476c85=((_0x469f2a=_0x24caeb['left'])==null?_0x3240b5['left']:_0x469f2a)-_0x3240b5['left'],_0x28a725=((_0x51357b=_0x24caeb['top'])==null?_0x3240b5[_0x23e6fa(0x3a3)]:_0x51357b)-_0x3240b5['top'];return Math[_0x23e6fa(0x14f)](_0x476c85,_0x28a725)>=0x12;}[_0x4e28b3(0x369)](_0x2929c1,_0x40eea4){const _0x2ee10c=_0x4e28b3;let _0x98e8fa=this[_0x2ee10c(0x29b)](_0x2929c1),_0x56f369=this[_0x2ee10c(0x339)]();return{'left':_0x40eea4[_0x2ee10c(0x33e)]+(_0x98e8fa['x']-_0x40eea4[_0x2ee10c(0x173)])/_0x56f369,'top':_0x40eea4[_0x2ee10c(0x3a3)]+(_0x98e8fa['y']-_0x40eea4[_0x2ee10c(0x416)])/_0x56f369,'width':_0x40eea4[_0x2ee10c(0x1b5)],'height':_0x40eea4[_0x2ee10c(0x323)]};}[_0x4e28b3(0x23f)](_0x13819d){const _0x184153=_0x4e28b3;var _0x8dee70,_0x48f204,_0xd4bbfb;let _0x32f0ab=this[_0x184153(0x226)][_0x184153(0x15a)](),_0x222820=(_0x8dee70=_0x32f0ab==null?void 0x0:_0x32f0ab[_0x184153(0x2c8)])==null?{'x':0x0,'y':0x0}:_0x8dee70,_0x4c6582=this[_0x184153(0x339)]();return{'x':Math[_0x184153(0x414)]((((_0x48f204=_0x13819d[_0x184153(0x3ba)])==null?0x0:_0x48f204)-_0x222820['x'])/_0x4c6582),'y':Math[_0x184153(0x414)]((((_0xd4bbfb=_0x13819d[_0x184153(0x1b0)])==null?0x0:_0xd4bbfb)-_0x222820['y'])/_0x4c6582)};}[_0x4e28b3(0x29b)](_0x5d7939){const _0x3beb47=_0x4e28b3;var _0x15548e,_0x185257;return{'x':Number[_0x3beb47(0x2de)](_0x5d7939[_0x3beb47(0x2e9)])?_0x5d7939[_0x3beb47(0x2e9)]:(_0x15548e=_0x5d7939[_0x3beb47(0x3ba)])==null?0x0:_0x15548e,'y':Number[_0x3beb47(0x2de)](_0x5d7939[_0x3beb47(0x383)])?_0x5d7939['clientY']:(_0x185257=_0x5d7939[_0x3beb47(0x1b0)])==null?0x0:_0x185257};}[_0x4e28b3(0x339)](){const _0x3d4c85=_0x4e28b3;let _0x19f238=this['_uiStateService'][_0x3d4c85(0x15a)]()['zoomRatio'];return Number[_0x3d4c85(0x2de)](_0x19f238)&&(_0x19f238==null?0x0:_0x19f238)>0x0?_0x19f238:0x1;}['_isPointInBounds'](_0x4f1839,_0x59bd12){const _0x8d5b82=_0x4e28b3;return _0x4f1839['x']>=_0x59bd12[_0x8d5b82(0x33e)]&&_0x4f1839['x']<=_0x59bd12[_0x8d5b82(0x33e)]+_0x59bd12[_0x8d5b82(0x1b5)]&&_0x4f1839['y']>=_0x59bd12[_0x8d5b82(0x3a3)]&&_0x4f1839['y']<=_0x59bd12[_0x8d5b82(0x3a3)]+_0x59bd12[_0x8d5b82(0x323)];}[_0x4e28b3(0x26a)](_0x4f3c88,_0x2b695b){const _0x2e878a=_0x4e28b3;var _0x1a1d11,_0x142b37;_0x2b695b==null||_0x2b695b[_0x2e878a(0x372)](),_0x2b695b&&(_0x2b695b[_0x2e878a(0x155)]=!0x0),(_0x1a1d11=_0x4f3c88[_0x2e878a(0x2a0)])==null||_0x1a1d11['call'](_0x4f3c88),(_0x142b37=_0x4f3c88[_0x2e878a(0x372)])==null||_0x142b37[_0x2e878a(0x1e1)](_0x4f3c88);}['_hideSelectionForChildDrag'](){const _0x277306=_0x4e28b3;var _0x56ab77,_0x5d6944;this[_0x277306(0x1f6)]||((_0x56ab77=(_0x5d6944=this[_0x277306(0x1e3)])[_0x277306(0x2fd)])==null||_0x56ab77[_0x277306(0x1e1)](_0x5d6944),this[_0x277306(0x1f6)]=!0x0);}[_0x4e28b3(0x38a)](_0xee336e,_0x2da18f){const _0x321228=_0x4e28b3;return{'left':Number['isFinite'](_0xee336e['left'])?_0xee336e['left']:_0x2da18f[_0x321228(0x33e)],'top':Number['isFinite'](_0xee336e[_0x321228(0x3a3)])?_0xee336e['top']:_0x2da18f[_0x321228(0x3a3)],'width':Number[_0x321228(0x2de)](_0xee336e[_0x321228(0x1b5)])?_0xee336e[_0x321228(0x1b5)]:_0x2da18f[_0x321228(0x1b5)],'height':Number[_0x321228(0x2de)](_0xee336e['height'])?_0xee336e['height']:_0x2da18f[_0x321228(0x323)]};}[_0x4e28b3(0x2d9)](_0x5b2080,_0x3ae09e){const _0x437741=_0x4e28b3;typeof _0x5b2080[_0x437741(0x1e7)]==_0x437741(0x1a6)&&_0x5b2080[_0x437741(0x1e7)]({'left':_0x3ae09e[_0x437741(0x33e)],'top':_0x3ae09e[_0x437741(0x3a3)],'width':_0x3ae09e[_0x437741(0x1b5)],'height':_0x3ae09e['height']}),typeof _0x5b2080[_0x437741(0x1e0)]==_0x437741(0x1a6)?_0x5b2080[_0x437741(0x1e0)](!0x0):typeof _0x5b2080['makeDirty']==_0x437741(0x1a6)&&_0x5b2080[_0x437741(0x29f)](!0x0);}[_0x4e28b3(0x235)](_0x46cafd,_0x30902c,_0x595ee4){const _0x1687b2=_0x4e28b3;return Object[_0x1687b2(0x247)](Object[_0x1687b2(0x356)](_0x46cafd)[_0x1687b2(0x1cb)](_0x188f67=>{const _0x14af8f=_0x1687b2;if(_0x188f67===_0x30902c)return[_0x188f67,_0x595ee4];let _0xd0de30=_0x8188de(_0x46cafd,_0x188f67);return[_0x188f67,_0xd0de30==null?_0x46cafd[_0x188f67][_0x14af8f(0x409)][_0x14af8f(0x2eb)]:_0xd0de30];}));}['_ensureDragPreviewObject'](){const _0x51bbb0=_0x4e28b3;if(this[_0x51bbb0(0x279)])return this[_0x51bbb0(0x279)];let _0x19ca17=this[_0x51bbb0(0x1f3)][_0x51bbb0(0x171)];return typeof _0x19ca17['addObject']==_0x51bbb0(0x1a6)?(this[_0x51bbb0(0x279)]=new qt(Vt),_0x19ca17[_0x51bbb0(0x153)](this[_0x51bbb0(0x279)],Ht),this[_0x51bbb0(0x279)]):null;}[_0x4e28b3(0x217)](_0x5f3f0c,_0x7736e,_0x18217c){const _0xd6d01b=_0x4e28b3;let _0x1daa04=this['_ensureDragPreviewObject']();_0x1daa04&&_0x1daa04[_0xd6d01b(0x3e7)]({'ghostBounds':_0x5f3f0c,'sourceBounds':this[_0xd6d01b(0x2ca)](),'parentBounds':_0x7736e[_0xd6d01b(0x15e)]===_0xd6d01b(0x3b2)?_0x18217c[_0x7736e['newParentNodeId']]:null,'side':_0x7736e['kind']===_0xd6d01b(0x3b2)?_0x7736e[_0xd6d01b(0x164)]:_0xd6d01b(0x244),'textStyle':this[_0xd6d01b(0x1a0)](),'renderGhostNode':!0x0});}[_0x4e28b3(0x2ca)](){const _0x1605df=_0x4e28b3;var _0x3db366;let _0x21bfdd=(_0x3db366=this[_0x1605df(0x3e6)])==null?this[_0x1605df(0x3f7)]:_0x3db366;return _0x21bfdd?{'left':_0x21bfdd[_0x1605df(0x33e)],'top':_0x21bfdd[_0x1605df(0x3a3)],'width':_0x21bfdd[_0x1605df(0x1b5)],'height':_0x21bfdd['height']}:null;}['_resolvePreviewTextStyle'](){const _0xee3904=_0x4e28b3;var _0x4af031,_0x394c95,_0x449cbc;let _0x567e2a=(_0x4af031=this[_0xee3904(0x3e6)])==null?this['_dragStart']:_0x4af031,_0x5ab71e=_0x567e2a==null||(_0x394c95=_0x567e2a[_0xee3904(0x25a)][_0x567e2a[_0xee3904(0x263)]])==null?void 0x0:_0x394c95[_0xee3904(0x409)],_0x4fb594=_0x5ab71e==null||(_0x449cbc=_0x5ab71e[_0xee3904(0x292)])==null?void 0x0:_0x449cbc[_0xee3904(0x186)];if(_0x4fb594)return{'text':typeof _0x4fb594['text']=='string'?_0x4fb594[_0xee3904(0x288)]:void 0x0,'fontSize':Number['isFinite'](_0x4fb594[_0xee3904(0x419)])?_0x4fb594['fontSize']:void 0x0,'color':typeof _0x4fb594[_0xee3904(0x36d)]=='string'?_0x4fb594[_0xee3904(0x36d)]:void 0x0,'horizontalAlign':Number[_0xee3904(0x2de)](_0x4fb594[_0xee3904(0x287)])?_0x4fb594['horizontalAlign']:void 0x0};}[_0x4e28b3(0x41a)](){const _0x3af249=_0x4e28b3;var _0x238782,_0x1867e5,_0x1eecce;if(!this['_dragPreviewObject'])return;let _0x4e762b=this[_0x3af249(0x1f3)][_0x3af249(0x171)];(_0x238782=_0x4e762b[_0x3af249(0x1bc)])==null||_0x238782['call'](_0x4e762b,[this[_0x3af249(0x279)]]),this['_dragPreviewObject']=null,(_0x1867e5=(_0x1eecce=this[_0x3af249(0x1f3)][_0x3af249(0x171)])[_0x3af249(0x29f)])==null||_0x1867e5['call'](_0x1eecce,!0x0);}['_executeAndLayout'](_0x5ee7ac,_0x5e163b,_0x40da00,_0x3e8501){const _0x35725d=_0x4e28b3;let _0x4e37ee=[...new Set(_0x40da00[_0x35725d(0x20e)](_0xd79233=>!!_0xd79233))],_0x1427cb=this[_0x35725d(0x19a)][_0x35725d(0x3d6)](_0x5ee7ac,_0x5e163b);Promise[_0x35725d(0x1c8)](_0x1427cb)[_0x35725d(0x378)](_0x2e8830=>{const _0x1ea69c=_0x35725d;var _0x218784,_0x1e2489,_0x2b8737,_0x329ab1;if(_0x2e8830){if(_0x4e37ee[_0x1ea69c(0x3c2)](_0x1a9b20=>{const _0x233387=_0x1ea69c;this[_0x233387(0x19a)]['executeCommand'](_0x3a4dc0['id'],{'unitId':_0x5e163b['unitId'],'subUnitId':_0x5e163b[_0x233387(0x1e8)],'scopeId':_0x1a9b20});}),_0x3e8501&&typeof _0x5e163b[_0x1ea69c(0x204)]=='string'&&typeof _0x5e163b[_0x1ea69c(0x1e8)]==_0x1ea69c(0x304)){var _0x12958c,_0x1dafb7;(_0x12958c=(_0x1dafb7=this[_0x1ea69c(0x1e3)])['selectElements'])==null||_0x12958c[_0x1ea69c(0x1e1)](_0x1dafb7,{'unitId':_0x5e163b[_0x1ea69c(0x204)],'subUnitId':_0x5e163b['subUnitId']},[_0x3e8501],_0x3e8501);}(_0x218784=(_0x1e2489=this['_renderContext']['scene'])[_0x1ea69c(0x29f)])==null||_0x218784[_0x1ea69c(0x1e1)](_0x1e2489,!0x0),(_0x2b8737=(_0x329ab1=this[_0x1ea69c(0x1f3)][_0x1ea69c(0x171)])[_0x1ea69c(0x24e)])==null||_0x2b8737[_0x1ea69c(0x1e1)](_0x329ab1);}});}};on=J([q(0x1,_0x19f927(_0x5af7fa)),q(0x2,_0x19f927(_0x4ad25d)),q(0x3,_0x4c9d00),q(0x4,_0x4b72d1),q(0x5,_0x34a716)],on);const sn='board.mind-map.description-dialog',cn=_0x4e28b3(0x1c0);function ln(_0x1948e0){const _0x104373=_0x4e28b3;let {unitId:_0x1f3304,subUnitId:_0x2f652d,nodeId:_0x339406,initialDescription:_0x3472d2=''}=_0x1948e0,_0x5351be=_0x3d87e3(_0x4c9d00),_0x486321=_0x3d87e3(_0x527822),_0x18334e=_0x3d87e3(_0x19a155),[_0x33ade8,_0x4f8f72]=_0x33a7c5(_0x3472d2),_0x6258af=()=>_0x486321['close'](cn);return _0x1e5b1d(_0x104373(0x3b6),{'className':'univer-flex\x20univer-w-full\x20univer-flex-col\x20univer-gap-4','data-board-mind-map-description-dialog':_0x104373(0x30b),'children':[_0x1e5b1d(_0x104373(0x2ae),{'className':_0x104373(0x250),'children':[_0xdbc3b(_0x104373(0x316),{'className':'univer-text-sm\x20univer-font-medium\x20univer-text-gray-900\x20dark:!univer-text-white','children':_0x18334e['t']('boards-mind-ui.description')}),_0xdbc3b(_0x55a337,{'autoFocus':!0x0,'className':_0x104373(0x3da),'placeholder':_0x18334e['t'](_0x104373(0x3a6)),'value':_0x33ade8,'onValueChange':_0x4f8f72})]}),_0x1e5b1d(_0x104373(0x3b6),{'className':'univer-flex\x20univer-justify-end\x20univer-gap-2','children':[_0xdbc3b(_0x25b887,{'size':_0x104373(0x225),'variant':_0x104373(0x2f8),'onClick':_0x6258af,'children':_0x18334e['t'](_0x104373(0x363))}),_0xdbc3b(_0x25b887,{'size':_0x104373(0x225),'variant':_0x104373(0x2e2),'onClick':()=>{const _0x54698f=_0x104373;_0x5351be[_0x54698f(0x3d6)](_0x36d216['id'],{'unitId':_0x1f3304,'subUnitId':_0x2f652d,'nodeId':_0x339406,'foreignAttributes':{'_note':_0x33ade8[_0x54698f(0x239)]()?_0x33ade8:null}}),_0x6258af();},'children':_0x18334e['t'](_0x104373(0x34a))})]})]});}const un='board.operation.mind-map.keyboard-shortcut',dn={'copy':_0xfbb3e1[_0x4e28b3(0x39c)],'paste':_0xfbb3e1[_0x4e28b3(0x3ac)],'paste-as-new':_0xfbb3e1[_0x4e28b3(0x3ac)],'add-child':_0xfbb3e1['addChildNode'],'add-sibling-or-child':_0xfbb3e1[_0x4e28b3(0x212)],'promote':_0xfbb3e1[_0x4e28b3(0x24b)],'toggle-collapse':_0xfbb3e1[_0x4e28b3(0x19e)],'collapse-all':_0xfbb3e1['collapseAllNodes'],'edit-text':_0xfbb3e1[_0x4e28b3(0x27a)],'open-description':_0xfbb3e1[_0x4e28b3(0x231)],'delete':_0x5e6623[_0x4e28b3(0x1d8)],'arrow-left':_0x5e6623[_0x4e28b3(0x2dc)],'arrow-right':_0x5e6623['ARROW_RIGHT'],'arrow-up':_0x5e6623['ARROW_UP'],'arrow-down':_0x5e6623[_0x4e28b3(0x30f)]},fn={'delete':[_0x5e6623[_0x4e28b3(0x243)]]};function pn(_0x5eafec){var _0x398f43;return[dn[_0x5eafec],...(_0x398f43=fn[_0x5eafec])==null?[]:_0x398f43];}let mn=class extends _0x43afa6{constructor(_0x2d7943,_0x3332ca,_0x270419,_0x39f0ff,_0x2b2547,_0x104836,_0xf092aa,_0x29191c){const _0x399df4=_0x4e28b3;super(),this[_0x399df4(0x234)]=_0x2d7943,this[_0x399df4(0x1e3)]=_0x3332ca,this[_0x399df4(0x2f2)]=_0x270419,this[_0x399df4(0x1e5)]=_0x39f0ff,this[_0x399df4(0x19a)]=_0x2b2547,this[_0x399df4(0x3f2)]=_0x104836,this[_0x399df4(0x201)]=_0xf092aa,this['_dialogService']=_0x29191c,this['_init']();}[_0x4e28b3(0x169)](){const _0xaa0bb0=_0x4e28b3;this['disposeWithMe'](this[_0xaa0bb0(0x19a)][_0xaa0bb0(0x1ba)](this[_0xaa0bb0(0x19b)]())),this['_createShortcutItems']()[_0xaa0bb0(0x3c2)](_0x4d085a=>{const _0x4b9653=_0xaa0bb0;this[_0x4b9653(0x40b)](this['_shortcutService'][_0x4b9653(0x3de)](_0x4d085a));});}[_0x4e28b3(0x19b)](){const _0x41f8ef=_0x4e28b3;return{'id':un,'type':_0x23b005[_0x41f8ef(0x3b3)],'handler':(_0x1be144,_0x5a7d25)=>this[_0x41f8ef(0x3ca)](_0x5a7d25==null?void 0x0:_0x5a7d25['action'])};}[_0x4e28b3(0x20f)](){const _0x3aa2d9=_0x4e28b3;let _0x6756a4=(_0x1cff21,_0x2e3221)=>({'id':un,'binding':_0x1cff21,'priority':0xa0,'preconditions':()=>!!this[_0x3aa2d9(0x2be)](),'staticParameters':{'action':_0x2e3221}}),_0x3789da=_0x109c8b=>pn(_0x109c8b)[_0x3aa2d9(0x1cb)](_0x241a1b=>_0x6756a4(_0x241a1b,_0x109c8b));return[..._0x3789da(_0x3aa2d9(0x39c)),{'id':un,'binding':dn[_0x3aa2d9(0x3ac)],'priority':0xa0,'preconditions':()=>!!this[_0x3aa2d9(0x1e5)][_0x3aa2d9(0x40e)]()&&!!this[_0x3aa2d9(0x2be)](),'staticParameters':{'action':_0x3aa2d9(0x3ac)}},{'id':un,'binding':dn[_0x3aa2d9(0x1a5)],'priority':0x96,'preconditions':()=>!!this[_0x3aa2d9(0x1e5)]['getPayload']()&&!!this[_0x3aa2d9(0x163)](),'staticParameters':{'action':_0x3aa2d9(0x1a5)}},..._0x3789da(_0x3aa2d9(0x334)),..._0x3789da(_0x3aa2d9(0x27d)),..._0x3789da(_0x3aa2d9(0x14c)),..._0x3789da(_0x3aa2d9(0x1b3)),..._0x3789da(_0x3aa2d9(0x214)),..._0x3789da(_0x3aa2d9(0x162)),..._0x3789da(_0x3aa2d9(0x332)),..._0x3789da(_0x3aa2d9(0x269)),..._0x3789da(_0x3aa2d9(0x2e0)),..._0x3789da('arrow-right'),..._0x3789da(_0x3aa2d9(0x380)),..._0x3789da(_0x3aa2d9(0x3d2))];}['_handleShortcut'](_0x2a2179){const _0x420639=_0x4e28b3;return _0x2a2179===_0x420639(0x39c)?this[_0x420639(0x347)]():_0x2a2179===_0x420639(0x3ac)?this[_0x420639(0x3ae)]():_0x2a2179==='paste-as-new'?this[_0x420639(0x391)]():_0x2a2179===_0x420639(0x334)?this['_addChild']():_0x2a2179==='add-sibling-or-child'?this[_0x420639(0x245)]():_0x2a2179===_0x420639(0x14c)?this[_0x420639(0x1fb)](_0x3c763e['id']):_0x2a2179==='toggle-collapse'?this['_executeNodeOperation'](_0xdc2fc2['id']):_0x2a2179===_0x420639(0x214)?this['_collapseAll']():_0x2a2179==='edit-text'?this[_0x420639(0x34e)]():_0x2a2179===_0x420639(0x332)?this[_0x420639(0x28c)]():_0x2a2179===_0x420639(0x269)?this[_0x420639(0x1fb)](_0x443802['id']):_0x2a2179&&hn(_0x2a2179)?this['_navigateByTopology'](_0x2a2179):!0x1;}[_0x4e28b3(0x347)](){const _0x220eaa=_0x4e28b3;let _0x18026c=this[_0x220eaa(0x2be)]();return _0x18026c?(this[_0x220eaa(0x19a)][_0x220eaa(0x3d6)](_0x5a3321['id'],{'unitId':_0x18026c[_0x220eaa(0x204)],'subUnitId':_0x18026c['subUnitId'],'nodeId':_0x18026c[_0x220eaa(0x263)]}),!0x0):!0x1;}[_0x4e28b3(0x3ae)](){const _0x169613=_0x4e28b3;let _0x2ee4a9=this['_getSelectedMindMapContext']();return!_0x2ee4a9||!this[_0x169613(0x1e5)][_0x169613(0x40e)]()?!0x1:(this[_0x169613(0x310)](_0x2153bf['id'],{'unitId':_0x2ee4a9[_0x169613(0x204)],'subUnitId':_0x2ee4a9['subUnitId'],'targetNodeId':_0x2ee4a9[_0x169613(0x263)]},_0x2ee4a9[_0x169613(0x38b)]),!0x0);}[_0x4e28b3(0x391)](){const _0x51a571=_0x4e28b3;let _0xf72f12=this[_0x51a571(0x163)]();if(!_0xf72f12||!this[_0x51a571(0x1e5)][_0x51a571(0x40e)]())return!0x1;let _0x429d69=this[_0x51a571(0x2f2)]['getState'](),_0x110e10=Number[_0x51a571(0x2de)](_0x429d69[_0x51a571(0x1be)])&&_0x429d69[_0x51a571(0x1be)]>0x0?_0x429d69[_0x51a571(0x1be)]:0x1,_0xb82d39=Math['round']((0x40-_0x429d69[_0x51a571(0x2c8)]['x'])/_0x110e10),_0x5951a3=Math[_0x51a571(0x414)]((0x40-_0x429d69['viewportPanOffset']['y'])/_0x110e10);return this[_0x51a571(0x19a)]['executeCommand'](_0x5cbfdf['id'],{'unitId':_0xf72f12[_0x51a571(0x204)],'subUnitId':_0xf72f12[_0x51a571(0x1e8)],'left':_0xb82d39,'top':_0x5951a3}),!0x0;}['_addChild'](){const _0x3175ad=_0x4e28b3;let _0x45154c=this[_0x3175ad(0x2be)]();if(!_0x45154c)return!0x1;let _0x3e41fb=_0x257cfe(0x6);return this[_0x3175ad(0x285)](_0x1c61db['id'],{'unitId':_0x45154c['unitId'],'subUnitId':_0x45154c[_0x3175ad(0x1e8)],'parentNodeId':_0x45154c[_0x3175ad(0x263)],'nodeId':_0x3e41fb,'connectorId':_0x257cfe(0x6)},_0x45154c[_0x3175ad(0x38b)],_0x3e41fb),!0x0;}['_addSiblingOrChild'](){const _0x5e452b=_0x4e28b3;let _0x51c936=this['_getSelectedMindMapContext']();if(!_0x51c936)return!0x1;let _0x54b6d0=_0x257cfe(0x6);return this[_0x5e452b(0x285)](_0x51c936[_0x5e452b(0x37e)]?_0x1c61db['id']:_0x4427c3['id'],{'unitId':_0x51c936['unitId'],'subUnitId':_0x51c936[_0x5e452b(0x1e8)],..._0x51c936[_0x5e452b(0x37e)]?{'parentNodeId':_0x51c936['nodeId'],'nodeId':_0x54b6d0}:{'nodeId':_0x51c936[_0x5e452b(0x263)],'siblingNodeId':_0x54b6d0},'connectorId':_0x257cfe(0x6)},_0x51c936[_0x5e452b(0x38b)],_0x54b6d0),!0x0;}[_0x4e28b3(0x1fb)](_0x56242e){const _0x3df786=_0x4e28b3;let _0x27c11e=this['_getSelectedMindMapContext']();return _0x27c11e?(this[_0x3df786(0x310)](_0x56242e,{'unitId':_0x27c11e[_0x3df786(0x204)],'subUnitId':_0x27c11e[_0x3df786(0x1e8)],'nodeId':_0x27c11e[_0x3df786(0x263)]},_0x27c11e[_0x3df786(0x38b)]),!0x0):!0x1;}[_0x4e28b3(0x3ad)](){const _0x11896c=_0x4e28b3;let _0x12195e=this[_0x11896c(0x2be)]();if(!_0x12195e)return!0x1;let _0x441b35=this[_0x11896c(0x234)][_0x11896c(0x36f)](_0x12195e[_0x11896c(0x204)],_0x12195e['subUnitId']),_0x53f8ae=Object['values'](_0x441b35)[_0x11896c(0x1cb)](_0x3cc500=>{const _0x36991=_0x11896c;let _0x3a7015=_0x130c96(_0x3cc500[_0x36991(0x409)]);return(_0x3a7015==null?void 0x0:_0x3a7015[_0x36991(0x3fe)])===_0x12195e[_0x36991(0x38b)]&&this[_0x36991(0x1b7)](_0x441b35,_0x12195e[_0x36991(0x38b)],_0x3cc500[_0x36991(0x404)])[_0x36991(0x282)]>0x0?{'nodeId':_0x3cc500['elementId'],'collapsed':_0x3a7015['collapsed']}:null;})[_0x11896c(0x20e)](_0x56c216=>!!_0x56c216);if(_0x53f8ae[_0x11896c(0x282)]===0x0)return!0x1;let _0x8418b7=_0x53f8ae[_0x11896c(0x240)](_0x3c60a8=>!_0x3c60a8[_0x11896c(0x341)]),_0x559932=_0x53f8ae['map'](_0xc348a3=>this['_commandService'][_0x11896c(0x3d6)](_0xdc2fc2['id'],{'unitId':_0x12195e[_0x11896c(0x204)],'subUnitId':_0x12195e[_0x11896c(0x1e8)],'nodeId':_0xc348a3['nodeId'],'collapsed':_0x8418b7}));return Promise['all'](_0x559932[_0x11896c(0x1cb)](_0x31ff86=>Promise['resolve'](_0x31ff86)))[_0x11896c(0x378)](_0x33a575=>{const _0x3a9635=_0x11896c;_0x33a575['some'](Boolean)&&this[_0x3a9635(0x19a)][_0x3a9635(0x3d6)](_0x3a4dc0['id'],{'unitId':_0x12195e[_0x3a9635(0x204)],'subUnitId':_0x12195e[_0x3a9635(0x1e8)],'scopeId':_0x12195e['scopeId']});}),!0x0;}['_openSelectedTextEditing'](){const _0x2ce4e7=_0x4e28b3;let _0x370aa0=this[_0x2ce4e7(0x2be)]();return _0x370aa0?(this[_0x2ce4e7(0x1e3)][_0x2ce4e7(0x15b)]({'unitId':_0x370aa0['unitId'],'subUnitId':_0x370aa0[_0x2ce4e7(0x1e8)]},[_0x370aa0[_0x2ce4e7(0x263)]],_0x370aa0[_0x2ce4e7(0x263)]),this['_boardTextEditingService'][_0x2ce4e7(0x284)](),this[_0x2ce4e7(0x201)][_0x2ce4e7(0x2b3)]({'unitId':_0x370aa0['unitId'],'subUnitId':_0x370aa0['subUnitId'],'shapeId':_0x370aa0[_0x2ce4e7(0x263)],'shapeKey':_0x239fd6(_0x370aa0[_0x2ce4e7(0x204)],_0x370aa0[_0x2ce4e7(0x263)]),'visible':!0x0}),!0x0):!0x1;}['_openDescriptionDialog'](){const _0x1750a9=_0x4e28b3;let _0x1e8f8c=this[_0x1750a9(0x2be)]();return _0x1e8f8c?(this['_dialogService'][_0x1750a9(0x268)]({'id':cn,'title':{'title':_0x1750a9(0x15c)},'width':0x1a4,'draggable':!0x0,'mask':!0x1,'maskClosable':!0x0,'children':{'label':sn,'unitId':_0x1e8f8c[_0x1750a9(0x204)],'subUnitId':_0x1e8f8c[_0x1750a9(0x1e8)],'nodeId':_0x1e8f8c['nodeId'],'initialDescription':_0x1e8f8c[_0x1750a9(0x318)]}}),!0x0):!0x1;}[_0x4e28b3(0x3c3)](_0x31f960){const _0x1a266e=_0x4e28b3;let _0x108d15=this[_0x1a266e(0x2be)]();if(!_0x108d15)return!0x1;let _0x23f2fe=this[_0x1a266e(0x234)]['getElementData'](_0x108d15['unitId'],_0x108d15[_0x1a266e(0x1e8)]),_0x220734=_0x23f2fe[_0x108d15['nodeId']],_0x4582b0=_0x130c96(_0x220734==null?void 0x0:_0x220734[_0x1a266e(0x409)]);if(!_0x220734||!_0x4582b0)return!0x1;let _0x184ccd={'arrow-left':_0x1a266e(0x278),'arrow-right':_0x1a266e(0x2db),'arrow-up':_0x1a266e(0x3d4),'arrow-down':_0x1a266e(0x3c9)}[_0x31f960];if(!_0x184ccd)return!0x1;let _0x2ec8c5=this[_0x1a266e(0x176)](_0x23f2fe,_0x108d15['nodeId'],_0x4582b0,_0x184ccd);return _0x2ec8c5?(this[_0x1a266e(0x1e3)]['selectElements']({'unitId':_0x108d15['unitId'],'subUnitId':_0x108d15[_0x1a266e(0x1e8)]},[_0x2ec8c5],_0x2ec8c5),!0x0):!0x1;}[_0x4e28b3(0x176)](_0x2bc3e4,_0x17192b,_0x345537,_0x451c70){const _0x73068b=_0x4e28b3;var _0x15a09a;let _0x3c0796=this[_0x73068b(0x1b7)](_0x2bc3e4,_0x345537['structureScopeId'],_0x17192b);if(_0x345537['parentNodeId']===null){if(_0x451c70===_0x73068b(0x278)){var _0x5d2af6,_0x427262;return(_0x5d2af6=(_0x427262=_0x3c0796[_0x73068b(0x203)](_0x219d19=>{const _0x56a785=_0x73068b;var _0x43081e;return((_0x43081e=_0x130c96(_0x219d19['element']))==null?void 0x0:_0x43081e['side'])===_0x56a785(0x33e);}))==null?void 0x0:_0x427262['elementId'])==null?null:_0x5d2af6;}if(_0x451c70==='ArrowRight'){var _0x36d325,_0x5f5913;return(_0x36d325=(_0x5f5913=_0x3c0796[_0x73068b(0x203)](_0x169a6a=>{const _0x358855=_0x73068b;var _0x4a26d1,_0x2fe044;return((_0x4a26d1=(_0x2fe044=_0x130c96(_0x169a6a[_0x358855(0x409)]))==null?void 0x0:_0x2fe044[_0x358855(0x164)])==null?'right':_0x4a26d1)===_0x358855(0x244);}))==null?void 0x0:_0x5f5913[_0x73068b(0x404)])==null?null:_0x36d325;}return null;}let _0x3ac191=(_0x15a09a=_0x345537[_0x73068b(0x164)])==null?_0x73068b(0x244):_0x15a09a,_0x40d24d=_0x3ac191==='right'?_0x73068b(0x278):_0x73068b(0x2db),_0x5cd3c4=_0x3ac191===_0x73068b(0x244)?_0x73068b(0x2db):_0x73068b(0x278);if(_0x451c70===_0x40d24d)return _0x345537[_0x73068b(0x197)];if(_0x451c70===_0x5cd3c4){var _0x484347,_0x1ed845;return(_0x484347=(_0x1ed845=_0x3c0796[0x0])==null?void 0x0:_0x1ed845['elementId'])==null?null:_0x484347;}if(_0x451c70===_0x73068b(0x3d4)||_0x451c70===_0x73068b(0x3c9)){var _0x42798f;let _0x5aaa9c=this[_0x73068b(0x1b7)](_0x2bc3e4,_0x345537[_0x73068b(0x3fe)],_0x345537[_0x73068b(0x197)]),_0x5a31d8=_0x5aaa9c['findIndex'](_0x559045=>_0x559045[_0x73068b(0x404)]===_0x17192b),_0x38b8e0=_0x451c70===_0x73068b(0x3d4)?_0x5aaa9c[_0x5a31d8-0x1]:_0x5aaa9c[_0x5a31d8+0x1];return(_0x42798f=_0x38b8e0==null?void 0x0:_0x38b8e0[_0x73068b(0x404)])==null?null:_0x42798f;}return null;}[_0x4e28b3(0x1b7)](_0x4aea51,_0xe1ba5c,_0x384411){const _0x563361=_0x4e28b3;return Object[_0x563361(0x326)](_0x4aea51)['filter'](_0x2ae2f1=>{const _0x437820=_0x563361;let _0x1da0cb=_0x130c96(_0x2ae2f1[_0x437820(0x409)]);return(_0x1da0cb==null?void 0x0:_0x1da0cb['structureScopeId'])===_0xe1ba5c&&_0x1da0cb['parentNodeId']===_0x384411&&_0x2ae2f1[_0x437820(0x409)][_0x437820(0x274)]!==!0x1;})[_0x563361(0x3b9)]((_0x1e9225,_0x302b4a)=>{const _0x32e8e1=_0x563361;let _0x57ec11=_0x130c96(_0x1e9225['element']),_0x454de6=_0x130c96(_0x302b4a[_0x32e8e1(0x409)]);return _0x359903(_0x57ec11==null?void 0x0:_0x57ec11[_0x32e8e1(0x39f)],_0x454de6==null?void 0x0:_0x454de6['orderKey'])||_0x1e9225[_0x32e8e1(0x404)][_0x32e8e1(0x224)](_0x302b4a[_0x32e8e1(0x404)]);});}[_0x4e28b3(0x2be)](){const _0x3f0e8b=_0x4e28b3;var _0x49c879,_0xfb1c22,_0x502650;let _0xbc086=this['_elementStateService'][_0x3f0e8b(0x2af)](),_0x5498ec=(_0x49c879=_0xbc086[_0x3f0e8b(0x26f)])==null?_0xbc086['selectedIds'][0x0]:_0x49c879;if(!_0xbc086['context']||!_0x5498ec||_0xbc086['selectedIds']['length']!==0x1||_0xbc086['activeEditingId']||_0xbc086[_0x3f0e8b(0x257)])return null;let _0x2734d1=this[_0x3f0e8b(0x234)][_0x3f0e8b(0x36f)](_0xbc086['context']['unitId'],_0xbc086[_0x3f0e8b(0x1ed)]['subUnitId'])[_0x5498ec],_0x3531e9=_0x130c96(_0x2734d1==null?void 0x0:_0x2734d1[_0x3f0e8b(0x409)]);return!_0x2734d1||!_0x3531e9?null:{'unitId':_0xbc086['context'][_0x3f0e8b(0x204)],'subUnitId':_0xbc086[_0x3f0e8b(0x1ed)][_0x3f0e8b(0x1e8)],'nodeId':_0x5498ec,'scopeId':_0x3531e9[_0x3f0e8b(0x3fe)],'isRoot':_0x3531e9['parentNodeId']===null,'description':(_0xfb1c22=(_0x502650=_0x3531e9[_0x3f0e8b(0x283)])==null?void 0x0:_0x502650[_0x3f0e8b(0x2ff)])==null?'':_0xfb1c22};}[_0x4e28b3(0x163)](){const _0x47f9f4=_0x4e28b3;let _0x40f95f=this[_0x47f9f4(0x1e3)][_0x47f9f4(0x2af)]();return!_0x40f95f[_0x47f9f4(0x1ed)]||_0x40f95f[_0x47f9f4(0x2bc)]||_0x40f95f[_0x47f9f4(0x257)]||_0x40f95f[_0x47f9f4(0x315)]['length']>0x0||_0x40f95f['focusedId']?null:{'unitId':_0x40f95f['context'][_0x47f9f4(0x204)],'subUnitId':_0x40f95f[_0x47f9f4(0x1ed)]['subUnitId']};}['_executeAndLayout'](_0x443756,_0x3f21f1,_0xd009d2){const _0x543a07=_0x4e28b3;let _0x14b737=this['_commandService']['executeCommand'](_0x443756,_0x3f21f1);Promise[_0x543a07(0x1c8)](_0x14b737)['then'](_0x3be9c2=>{const _0x539594=_0x543a07;_0x3be9c2&&this[_0x539594(0x19a)]['executeCommand'](_0x3a4dc0['id'],{'unitId':_0x3f21f1['unitId'],'subUnitId':_0x3f21f1[_0x539594(0x1e8)],'scopeId':_0xd009d2});});}[_0x4e28b3(0x285)](_0x5662c1,_0x341214,_0x444c32,_0x11b0e7){const _0x4c6142=_0x4e28b3;let _0xd566bd={'unitId':_0x341214[_0x4c6142(0x204)],'subUnitId':_0x341214[_0x4c6142(0x1e8)]},_0x3364ee=this[_0x4c6142(0x19a)]['executeCommand'](_0x5662c1,_0x341214);Promise[_0x4c6142(0x1c8)](_0x3364ee)[_0x4c6142(0x378)](_0x319de9=>{const _0x383fca=_0x4c6142;_0x319de9&&(this['_commandService'][_0x383fca(0x3d6)](_0x3a4dc0['id'],{..._0xd566bd,'scopeId':_0x444c32}),this['_elementStateService'][_0x383fca(0x15b)](_0xd566bd,[_0x11b0e7],_0x11b0e7),this[_0x383fca(0x201)][_0x383fca(0x284)](),this[_0x383fca(0x201)][_0x383fca(0x2b3)]({..._0xd566bd,'shapeId':_0x11b0e7,'shapeKey':_0x239fd6(_0xd566bd[_0x383fca(0x204)],_0x11b0e7),'visible':!0x0}));});}};mn=J([q(0x0,_0x19f927(_0x5af7fa)),q(0x1,_0x19f927(_0x4ad25d)),q(0x2,_0x19f927(_0x4b72d1)),q(0x3,_0x19f927(_0x3771ca)),q(0x4,_0x4c9d00),q(0x5,_0x2f95f0),q(0x6,_0x19f927(_0x4aee4d)),q(0x7,_0x527822)],mn);function hn(_0x3c80c1){const _0x115c48=_0x4e28b3;return _0x3c80c1==='arrow-left'||_0x3c80c1===_0x115c48(0x17b)||_0x3c80c1===_0x115c48(0x380)||_0x3c80c1===_0x115c48(0x3d2);}const gn=_0x4e28b3(0x36b),_n={'min':0x1,'max':0x5,'defaultValue':0x3},vn={'min':0x0,'max':0x64,'defaultValue':0x64},yn=[{'kind':_0x4e28b3(0x1ad),'titleKey':'boards-mind-ui.toolbar.primary.line','panel':_0x4e28b3(0x22d)},{'kind':_0x4e28b3(0x3d5),'titleKey':_0x4e28b3(0x220)},{'kind':'typography','titleKey':_0x4e28b3(0x2e6)},{'kind':_0x4e28b3(0x1ad),'titleKey':'boards-mind-ui.toolbar.primary.more','panel':_0x4e28b3(0x38d),'dividerBefore':!0x0}],bn={'addSibling':_0x4e28b3(0x27d),'addChild':_0x4e28b3(0x334),'copy':_0x4e28b3(0x39c),'paste':_0x4e28b3(0x3ac),'delete':_0x4e28b3(0x269)},xn=[{'key':_0x4e28b3(0x361),'title':_0x4e28b3(0x2f6),'items':[{'value':'mindmap-horizontal','icon':_0x4e28b3(0x1fc)},{'value':'mindmap-vertical','icon':_0x4e28b3(0x351)}]},{'key':_0x4e28b3(0x377),'title':_0x4e28b3(0x190),'items':[{'value':_0x4e28b3(0x2d8),'icon':_0x4e28b3(0x2d8)},{'value':_0x4e28b3(0x37b),'icon':'tree-left'},{'value':'tree-alternate','icon':_0x4e28b3(0x400)}]},{'key':_0x4e28b3(0x211),'title':'Timeline','items':[{'value':_0x4e28b3(0x28b),'icon':_0x4e28b3(0x28b)},{'value':_0x4e28b3(0x3a4),'icon':_0x4e28b3(0x3a4)}]}],Sn={'key':'branch','title':_0x4e28b3(0x2df),'items':[{'value':'curve','icon':_0x4e28b3(0x2c5)},{'value':_0x4e28b3(0x168),'icon':_0x4e28b3(0x321)},{'value':_0x4e28b3(0x17a),'icon':'branch-orthogonal'}]};function Cn(_0x2c3471,_0x1eb62c){const _0x159976=_0x4e28b3;_0x2c3471[_0x159976(0x3d6)](un,{'action':_0x1eb62c});}const wn={'line':_0x2d11b3,'more':_0xc85f91};function Tn(_0x4c314c){const _0x2418c1=_0x4e28b3;_0x4c314c['stopPropagation'](),_0x4c314c[_0x2418c1(0x2a0)]();}function En(_0x36dfd7,_0x1080a8=_0x4e28b3(0x1ae),_0x3a553f){return _0xdbc3b(_0x34bbcc,{'children':_0xdbc3b(_0x36dfd7,{'className':_0x1080a8,'extend':_0x3a553f})});}function Dn(_0xc73966){const _0x553ae4=_0x4e28b3;var _0x249776,_0x2e991b,_0x31d6a3,_0x218a92,_0x1ae24c,_0x1cf8eb,_0x45434e,_0x462f61,_0x20c816;let _0x1ce044=(_0x249776=_0xc73966==null?void 0x0:_0xc73966[_0x553ae4(0x186)])==null?{}:_0x249776,_0x305c7e=_0x1ce044[_0x553ae4(0x2a5)]&&typeof _0x1ce044[_0x553ae4(0x2a5)]=='object'?_0x1ce044[_0x553ae4(0x2a5)]:{},_0x3766ae=(_0x2e991b=_0x305c7e['doc'])==null||(_0x2e991b=_0x2e991b[_0x553ae4(0x3e1)])==null?void 0x0:_0x2e991b[_0x553ae4(0x23a)];return{'color':typeof _0x1ce044[_0x553ae4(0x36d)]==_0x553ae4(0x304)?_0x1ce044[_0x553ae4(0x36d)]:(_0x31d6a3=_0x3766ae==null||(_0x218a92=_0x3766ae['cl'])==null?void 0x0:_0x218a92[_0x553ae4(0x2e4)])==null?_0x1c0553:_0x31d6a3,'fontFamily':typeof _0x1ce044[_0x553ae4(0x31d)]=='string'?_0x1ce044[_0x553ae4(0x31d)]:(_0x1ae24c=_0x3766ae==null?void 0x0:_0x3766ae['ff'])==null?_0x5bb012['ff']:_0x1ae24c,'fontSize':typeof _0x1ce044['fontSize']=='number'?_0x1ce044['fontSize']:typeof(_0x3766ae==null?void 0x0:_0x3766ae['fs'])==_0x553ae4(0x1dd)?_0x3766ae['fs']:_0x5bb012['fs'],'horizontalAlign':(_0x1cf8eb=(_0x45434e=_0x1ce044[_0x553ae4(0x287)])==null?_0x305c7e['ha']:_0x45434e)==null?_0x5d9bb5['LEFT']:_0x1cf8eb,'textFill':_0x1ce044[_0x553ae4(0x411)]&&typeof _0x1ce044[_0x553ae4(0x411)]==_0x553ae4(0x381)?_0x1ce044['textFill']:_0x3766ae==null?void 0x0:_0x3766ae[_0x553ae4(0x411)],'verticalAlign':(_0x462f61=(_0x20c816=_0x1ce044[_0x553ae4(0x342)])==null?_0x305c7e['va']:_0x20c816)==null?_0x2f2760[_0x553ae4(0x401)]:_0x462f61};}function On(_0x54e62f,_0x7a85a6){const _0x2fcf20=_0x4e28b3;if(!_0x7a85a6)return;let _0x4f7647=pn(_0x7a85a6);if(!_0x4f7647[_0x2fcf20(0x282)])return;let _0x13e995=_0x4f7647['map'](_0x2d7105=>{const _0x3e0dd6=_0x2fcf20;var _0x34a732;return(_0x34a732=_0x54e62f['getShortcutDisplay']({'id':_0x3e0dd6(0x18a),'binding':_0x2d7105,'staticParameters':{'action':_0x7a85a6}}))==null?void 0x0:_0x34a732;})[_0x2fcf20(0x20e)](_0x22a007=>!!_0x22a007);return _0x13e995[_0x2fcf20(0x282)]?[...new Set(_0x13e995)]['join']('/'):void 0x0;}async function kn(_0x31e3c6,_0x357977){const _0x7b829b=_0x4e28b3;return await Promise[_0x7b829b(0x1c8)](_0x31e3c6['executeCommand'](_0xfb8f84['id'],_0x357977))?(await Promise['resolve'](_0x31e3c6[_0x7b829b(0x3d6)](_0x3a4dc0['id'],{'unitId':_0x357977[_0x7b829b(0x204)],'subUnitId':_0x357977[_0x7b829b(0x1e8)],'scopeId':_0x357977['scopeId']})),!0x0):!0x1;}async function An(_0x3721dc,_0xd6499b){const _0x3ce73f=_0x4e28b3;return await Promise['resolve'](_0x3721dc[_0x3ce73f(0x3d6)](_0x394c10['id'],_0xd6499b))?(await Promise[_0x3ce73f(0x1c8)](_0x3721dc[_0x3ce73f(0x3d6)](_0x3a4dc0['id'],{'unitId':_0xd6499b[_0x3ce73f(0x204)],'subUnitId':_0xd6499b['subUnitId'],'scopeId':_0xd6499b[_0x3ce73f(0x38b)]})),!0x0):!0x1;}function jn({className:_0x9c2dc8=_0x4e28b3(0x1ae)}){const _0x58fd3a=_0x4e28b3;return _0xdbc3b(_0x34bbcc,{'children':_0x1e5b1d(_0x58fd3a(0x403),{'className':_0x9c2dc8,'viewBox':'0\x200\x2024\x2024','fill':'none','aria-hidden':'true','children':[_0xdbc3b(_0x58fd3a(0x258),{'d':'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','stroke':_0x58fd3a(0x3c1),'strokeWidth':_0x58fd3a(0x1f7),'strokeLinecap':_0x58fd3a(0x414)}),_0xdbc3b('path',{'d':_0x58fd3a(0x167),'stroke':_0x58fd3a(0x3c1),'strokeWidth':'1.8','strokeLinecap':_0x58fd3a(0x414)}),_0xdbc3b(_0x58fd3a(0x258),{'d':_0x58fd3a(0x1c5),'stroke':_0x58fd3a(0x3c1),'strokeWidth':_0x58fd3a(0x1f7),'strokeLinecap':_0x58fd3a(0x414)})]})});}function Mn({icon:_0x1fbcb6}){const _0x2c17df=_0x4e28b3;let _0x3095c3='#d8dce3',_0x252ea6={'stroke':_0x2c17df(0x3c1),'strokeWidth':2.6,'strokeLinecap':_0x2c17df(0x414),'strokeLinejoin':'round'},_0x3f6379={'stroke':_0x3095c3,'strokeWidth':3.2,'strokeLinecap':_0x2c17df(0x414)};return _0x1e5b1d('svg',{'className':_0x2c17df(0x1c9),'viewBox':'0\x200\x2080\x2056','fill':_0x2c17df(0x38c),'aria-hidden':_0x2c17df(0x30b),'children':[_0x1fbcb6==='mindmap-horizontal'&&_0x1e5b1d(_0x533ee7,{'children':[_0xdbc3b(_0x2c17df(0x258),{'d':_0x2c17df(0x35d),..._0x252ea6}),_0xdbc3b(_0x2c17df(0x258),{'d':_0x2c17df(0x2ba),..._0x3f6379})]}),_0x1fbcb6===_0x2c17df(0x351)&&_0x1e5b1d(_0x533ee7,{'children':[_0xdbc3b('path',{'d':_0x2c17df(0x3f4),..._0x252ea6}),_0xdbc3b(_0x2c17df(0x258),{'d':'M22\x208h36M22\x2048h36M14\x2018v20M66\x2018v20','stroke':_0x3095c3,'strokeWidth':2.6,'strokeLinecap':'round','strokeDasharray':'6\x207'})]}),_0x1fbcb6===_0x2c17df(0x2d8)&&_0x1e5b1d(_0x533ee7,{'children':[_0xdbc3b(_0x2c17df(0x258),{'d':_0x2c17df(0x3ed),..._0x252ea6}),_0xdbc3b(_0x2c17df(0x258),{'d':_0x2c17df(0x189),..._0x3f6379}),_0xdbc3b(_0x2c17df(0x3a1),{'cx':'24','cy':'12','r':'3','fill':_0x2c17df(0x3c1)})]}),_0x1fbcb6===_0x2c17df(0x37b)&&_0x1e5b1d(_0x533ee7,{'children':[_0xdbc3b(_0x2c17df(0x258),{'d':_0x2c17df(0x32c),..._0x252ea6}),_0xdbc3b(_0x2c17df(0x258),{'d':_0x2c17df(0x21a),..._0x3f6379}),_0xdbc3b(_0x2c17df(0x3a1),{'cx':'56','cy':'12','r':'3','fill':'currentColor'})]}),_0x1fbcb6===_0x2c17df(0x400)&&_0x1e5b1d(_0x533ee7,{'children':[_0xdbc3b(_0x2c17df(0x258),{'d':'M42\x2012v32M42\x2020c0\x204-3\x206-7\x206h-7M42\x2030c0\x204\x203\x206\x207\x206h7M42\x2039c0\x204-3\x206-7\x206h-7',..._0x252ea6}),_0xdbc3b(_0x2c17df(0x258),{'d':_0x2c17df(0x343),..._0x3f6379}),_0xdbc3b(_0x2c17df(0x3a1),{'cx':'42','cy':'12','r':'3','fill':'currentColor'})]}),_0x1fbcb6===_0x2c17df(0x28b)&&_0x1e5b1d(_0x533ee7,{'children':[_0xdbc3b('path',{'d':_0x2c17df(0x2ea),..._0x252ea6}),_0xdbc3b(_0x2c17df(0x258),{'d':_0x2c17df(0x1c7),..._0x3f6379}),_0xdbc3b('circle',{'cx':'17','cy':'31','r':'3','fill':_0x2c17df(0x3c1)})]}),_0x1fbcb6===_0x2c17df(0x3a4)&&_0x1e5b1d(_0x533ee7,{'children':[_0xdbc3b('path',{'d':_0x2c17df(0x2b2),..._0x252ea6}),_0xdbc3b(_0x2c17df(0x258),{'d':'M56\x2039h11M13\x2050h11',..._0x3f6379}),_0xdbc3b(_0x2c17df(0x3a1),{'cx':'40','cy':'9','r':'3','fill':_0x2c17df(0x3c1)})]}),_0x1fbcb6===_0x2c17df(0x2c5)&&_0xdbc3b(_0x533ee7,{'children':_0xdbc3b('path',{'d':_0x2c17df(0x3f1),..._0x252ea6})}),_0x1fbcb6===_0x2c17df(0x321)&&_0xdbc3b(_0x533ee7,{'children':_0xdbc3b('path',{'d':_0x2c17df(0x353),..._0x252ea6})}),_0x1fbcb6===_0x2c17df(0x2c3)&&_0xdbc3b(_0x533ee7,{'children':_0xdbc3b('path',{'d':_0x2c17df(0x23b),..._0x252ea6})})]});}function Nn(_0x1ebbb0,_0x445ac7){const _0x16f5b9=_0x4e28b3;let _0x17619c=_0x1ebbb0[_0x16f5b9(0x23a)],_0x531b89=_0x3e6fcc(_0x17619c),_0x23996d={..._0x531b89[_0x16f5b9(0x36d)]===void 0x0?null:{'color':_0x531b89[_0x16f5b9(0x36d)]},..._0x531b89[_0x16f5b9(0x31d)]===void 0x0?null:{'fontFamily':_0x531b89[_0x16f5b9(0x31d)]},..._0x531b89[_0x16f5b9(0x419)]===void 0x0?null:{'fontSize':_0x531b89[_0x16f5b9(0x419)]},..._0x531b89['bold']===void 0x0?null:{'bold':_0x531b89[_0x16f5b9(0x3eb)]},..._0x531b89['italic']===void 0x0?null:{'italic':_0x531b89['italic']},..._0x531b89[_0x16f5b9(0x209)]===void 0x0?null:{'underline':_0x531b89[_0x16f5b9(0x209)]},..._0x531b89[_0x16f5b9(0x2f3)]===void 0x0?null:{'strikethrough':_0x531b89[_0x16f5b9(0x2f3)]},..._0x531b89[_0x16f5b9(0x411)]===void 0x0?null:{'textFill':_0x531b89['textFill']}};_0x1ebbb0[_0x16f5b9(0x287)]!==void 0x0&&(_0x23996d[_0x16f5b9(0x287)]=_0x1ebbb0['horizontalAlign']),_0x1ebbb0[_0x16f5b9(0x342)]!==void 0x0&&(_0x23996d['verticalAlign']=_0x1ebbb0['verticalAlign']),Object['keys'](_0x23996d)['length']>0x0&&_0x445ac7({'textStyle':_0x23996d});}function Pn(_0x2718c6,_0x3f8c25,_0x149cfd){const _0x4a00ed=_0x4e28b3;var _0x1e2d16,_0x19a04e;let _0x25cf48=_0x2718c6==null?{}:_0x2718c6,_0xa27334=_0x48adbf(_0x25cf48,_0x3f8c25),_0x21236f=(_0x1e2d16=(_0x19a04e=_0xa27334[_0x4a00ed(0x186)])==null?_0x25cf48[_0x4a00ed(0x186)]:_0x19a04e)==null?{}:_0x1e2d16;return{..._0x25cf48,..._0xa27334,'shapeText':{..._0x21236f,..._0x149cfd[_0x4a00ed(0x36d)]===void 0x0?null:{'color':_0x149cfd[_0x4a00ed(0x36d)]},..._0x149cfd[_0x4a00ed(0x419)]===void 0x0?null:{'fontSize':_0x149cfd[_0x4a00ed(0x419)]},..._0x149cfd['bold']===void 0x0?null:{'bold':_0x149cfd[_0x4a00ed(0x3eb)]},..._0x149cfd[_0x4a00ed(0x1dc)]===void 0x0?null:{'italic':_0x149cfd[_0x4a00ed(0x1dc)]},..._0x149cfd[_0x4a00ed(0x209)]===void 0x0?null:{'underline':_0x149cfd['underline']},..._0x149cfd[_0x4a00ed(0x2f3)]===void 0x0?null:{'strikethrough':_0x149cfd[_0x4a00ed(0x2f3)]},..._0x149cfd['horizontalAlign']===void 0x0?null:{'horizontalAlign':_0x149cfd[_0x4a00ed(0x287)]},..._0x149cfd[_0x4a00ed(0x342)]===void 0x0?null:{'verticalAlign':_0x149cfd[_0x4a00ed(0x342)]},..._0x149cfd['textFill']===void 0x0?null:{'textFill':_0x149cfd[_0x4a00ed(0x411)]}}};}function Fn(_0x23802a,_0x531511){const _0xf6a39=_0x4e28b3;let _0x1ff657=_0x23802a==null?void 0x0:_0x23802a[_0xf6a39(0x18d)];_0x1ff657&&_0x531511({'lineType':_0x1ff657['dashType']===_0x582dab[_0xf6a39(0x34d)]||_0x1ff657[_0xf6a39(0x3bf)]===_0x582dab[_0xf6a39(0x277)]?_0xf6a39(0x35e):_0x1ff657[_0xf6a39(0x3bf)]===_0x582dab[_0xf6a39(0x299)]?'dash':_0xf6a39(0x2f5),...typeof _0x1ff657[_0xf6a39(0x1b5)]=='number'?{'strokeWidth':_0x1ff657[_0xf6a39(0x1b5)]}:null,...typeof _0x1ff657['color']==_0xf6a39(0x304)?{'stroke':_0x1ff657[_0xf6a39(0x36d)]}:null,...typeof _0x1ff657['opacity']==_0xf6a39(0x1dd)?{'opacity':_0x1ff657[_0xf6a39(0x418)]}:null});}function In(_0x43500a){const _0x5d2ff1=_0x4e28b3;return _0x43500a!=null&&_0x43500a[_0x5d2ff1(0x282)]?_0x43500a[0x0]<=0x2?_0x582dab['RoundDot']:_0x582dab[_0x5d2ff1(0x299)]:_0x582dab['Solid'];}function Ln(_0x1750fc){const _0x581d9f=_0x4e28b3;var _0x15864e,_0x4892aa,_0x240be4;return{'stroke':{'lineStrokeType':_0x8a7be5['SolidLine'],'dashType':In(_0x1750fc==null?void 0x0:_0x1750fc[_0x581d9f(0x26d)]),'color':(_0x15864e=_0x1750fc==null?void 0x0:_0x1750fc[_0x581d9f(0x18d)])==null?_0x53a3c6:_0x15864e,'width':(_0x4892aa=_0x1750fc==null?void 0x0:_0x1750fc[_0x581d9f(0x2ed)])==null?_n[_0x581d9f(0x405)]:_0x4892aa,'opacity':(_0x240be4=_0x1750fc==null?void 0x0:_0x1750fc[_0x581d9f(0x418)])==null?vn['defaultValue']/0x64:_0x240be4}};}function Rn(_0x2a383a){const _0x17b10d=_0x4e28b3;var _0x1e176d,_0x5048e9,_0x495cb2,_0x4990e3,_0x1fee5f,_0x5f43cd;let _0x5c5b00=_0x3d87e3(_0x4c9d00),_0x2aaadf=_0x3d87e3(_0x2f95f0),_0x25b819=_0x3d87e3(_0x19a155),[_0x4c685b,_0x3ec656]=_0x33a7c5(null),[_0x1365cd,_0x146ce1]=_0x33a7c5((_0x1e176d=_0x2a383a[_0x17b10d(0x311)][_0x17b10d(0x329)])==null?void 0x0:_0x1e176d[_0x17b10d(0x292)]),_0x314164=_0x2a383a[_0x17b10d(0x311)][_0x17b10d(0x329)];if(!_0x314164)return null;let _0x5585ec={'unitId':_0x314164[_0x17b10d(0x204)],'subUnitId':_0x314164[_0x17b10d(0x1e8)]},_0x22323b=_0x13ebb3=>{const _0xc93055=_0x17b10d;_0x5c5b00[_0xc93055(0x3d6)](_0x36d216['id'],{..._0x5585ec,'nodeId':_0x314164[_0xc93055(0x404)],..._0x13ebb3});},_0x38d067=(_0x2e9a56,_0x17c0f5)=>{const _0x31867b=_0x17b10d;let _0x302cb6=_0x17c0f5==null?{}:_0x17c0f5;_0x146ce1(_0x37c927=>({..._0x37c927==null?{}:_0x37c927,..._0x302cb6})),_0x22323b({..._0x302cb6[_0x31867b(0x29e)]===void 0x0?null:{'fill':_0x302cb6[_0x31867b(0x29e)]},..._0x302cb6[_0x31867b(0x18d)]===void 0x0?null:{'stroke':_0x302cb6[_0x31867b(0x18d)]}});},_0xa54156=_0x27b083=>{const _0x3a01b0=_0x17b10d;_0x5c5b00['executeCommand'](_0xb6fca8['id'],{..._0x5585ec,'nodeId':_0x314164[_0x3a01b0(0x404)],'style':_0x27b083});},_0x20c8b0=Ln(_0x314164[_0x17b10d(0x3b4)]),_0x24bce6=_0x5deb52=>On(_0x2aaadf,_0x5deb52),_0x1f04a4=_0x1be465=>{Cn(_0x5c5b00,_0x1be465);},_0x1fb592=(_0x5048e9=_0x1365cd==null?void 0x0:_0x1365cd[_0x17b10d(0x186)])==null?{}:_0x5048e9,_0x4d9e15=Dn(_0x1365cd),_0x520538=_0x1bfa75=>{Nn(_0x1bfa75,_0x121724=>{const _0x33a468=_0x4c93;_0x146ce1(_0x3cdc83=>Pn(_0x3cdc83,_0x1bfa75,_0x121724[_0x33a468(0x23a)])),_0x22323b(_0x121724);});},_0x361196=[{'label':_0x25b819['t'](_0x17b10d(0x360)),'value':_0x5d9bb5[_0x17b10d(0x21d)],'icon':_0xdbc3b(_0x24b89d,{})},{'label':_0x25b819['t'](_0x17b10d(0x346)),'value':_0x5d9bb5[_0x17b10d(0x2bf)],'icon':_0xdbc3b(_0x54ade2,{})},{'label':_0x25b819['t'](_0x17b10d(0x3cc)),'value':_0x5d9bb5[_0x17b10d(0x2fc)],'icon':_0xdbc3b(_0x122c61,{})},{'label':_0x25b819['t'](_0x17b10d(0x1d3)),'value':_0x5d9bb5[_0x17b10d(0x2b1)],'icon':_0xdbc3b(_0x13b8d2,{})}],_0xf246f7=[{'label':_0x25b819['t'](_0x17b10d(0x40d)),'value':_0x2f2760[_0x17b10d(0x40a)],'icon':_0xdbc3b(_0x703b0,{})},{'label':_0x25b819['t'](_0x17b10d(0x25f)),'value':_0x2f2760[_0x17b10d(0x401)],'icon':_0xdbc3b(_0x10f89b,{})},{'label':_0x25b819['t']('boards-mind-ui.alignBottom'),'value':_0x2f2760['BOTTOM'],'icon':_0xdbc3b(_0x587431,{})}],_0x50af42=()=>{const _0x5bab2e=_0x17b10d;_0x1f04a4(_0x5bab2e(0x27d));},_0x5b5230=()=>{const _0x358695=_0x17b10d;_0x1f04a4(_0x358695(0x334));},_0x33ba3b=()=>{const _0xc73c75=_0x17b10d;_0x1f04a4(_0xc73c75(0x39c));},_0x27ae63=()=>{const _0x47a396=_0x17b10d;_0x1f04a4(_0x47a396(0x3ac));},_0x523339=()=>{_0x1f04a4('delete');},_0x1607e7=(_0x495cb2=(_0x4990e3=_0x314164[_0x17b10d(0x20c)])==null?void 0x0:_0x4990e3[_0x17b10d(0x2c7)])==null?_0x1defe8['structureKind']:_0x495cb2,_0x3f35ac=_0x5be6e7(_0x1607e7,(_0x1fee5f=(_0x5f43cd=_0x314164['layout'])==null?void 0x0:_0x5f43cd[_0x17b10d(0x191)])==null?_0x1defe8[_0x17b10d(0x191)]:_0x1fee5f),_0x560824=_0x40db91=>{const _0x38f25d=_0x17b10d;let _0x54bddd=_0x5be6e7(_0x40db91,_0x3f35ac);kn(_0x5c5b00,{..._0x5585ec,'scopeId':_0x314164[_0x38f25d(0x38b)],'structureKind':_0x40db91,..._0x54bddd===_0x3f35ac?null:{'branchLineType':_0x54bddd}}),_0x3ec656(null);},_0x5b078f=_0x495f97=>{const _0x2cdfda=_0x17b10d;An(_0x5c5b00,{..._0x5585ec,'scopeId':_0x314164[_0x2cdfda(0x38b)],'branchLineType':_0x495f97}),_0x3ec656(null);},_0x4ed138=(_0x48e531,_0x4da69e,_0x5073a9,_0x4990a3=!0x1)=>_0xdbc3b(_0x17b10d(0x3c7),{'type':_0x17b10d(0x3c7),'disabled':_0x4990a3,'className':_0x4dee74(_0x17b10d(0x31f),_0x4da69e&&_0x17b10d(0x3a0),_0x4990a3&&'univer-cursor-not-allowed\x20univer-text-gray-300\x20hover:univer-bg-transparent'),'onMouseDown':Tn,'onPointerDown':Tn,'onClick':_0x20d975=>{const _0x33ae36=_0x17b10d;_0x20d975[_0x33ae36(0x372)](),!_0x4990a3&&_0x5073a9();},'children':_0xdbc3b(Mn,{'icon':_0x48e531[_0x17b10d(0x358)]})},_0x48e531[_0x17b10d(0x18e)]),_0x5b879b=()=>_0x1e5b1d(_0x17b10d(0x3b6),{'className':_0x17b10d(0x39e),'onMouseDown':_0x52c0b9=>_0x52c0b9[_0x17b10d(0x372)](),'onPointerDown':_0x34bcd9=>_0x34bcd9[_0x17b10d(0x372)](),'children':[xn[_0x17b10d(0x1cb)](_0x2f50ad=>_0x1e5b1d(_0x17b10d(0x3b6),{'className':_0x17b10d(0x17e),'children':[_0xdbc3b(_0x17b10d(0x3b6),{'className':_0x17b10d(0x327),'children':_0x2f50ad[_0x17b10d(0x392)]}),_0xdbc3b(_0x17b10d(0x3b6),{'className':_0x17b10d(0x185),'style':{'gridTemplateColumns':'repeat('+_0x2f50ad[_0x17b10d(0x3bb)][_0x17b10d(0x282)]+_0x17b10d(0x2b7)},'children':_0x2f50ad[_0x17b10d(0x3bb)][_0x17b10d(0x1cb)](_0x3f8b59=>_0x4ed138(_0x3f8b59,_0x3f8b59[_0x17b10d(0x18e)]===_0x1607e7,()=>_0x560824(_0x3f8b59[_0x17b10d(0x18e)])))})]},_0x2f50ad['key'])),_0xdbc3b(_0x2cfe4c,{}),_0x1e5b1d(_0x17b10d(0x3b6),{'className':_0x17b10d(0x376),'children':[_0xdbc3b(_0x17b10d(0x3b6),{'className':'univer-mb-2\x20univer-text-lg\x20univer-text-gray-900','children':Sn['title']}),_0xdbc3b(_0x17b10d(0x3b6),{'className':_0x17b10d(0x185),'style':{'gridTemplateColumns':_0x17b10d(0x382)+Sn['items'][_0x17b10d(0x282)]+',\x20minmax(0,\x201fr))'},'children':Sn['items']['map'](_0x36102f=>_0x4ed138(_0x36102f,_0x36102f[_0x17b10d(0x18e)]===_0x3f35ac,()=>_0x5b078f(_0x36102f[_0x17b10d(0x18e)]),_0x36102f[_0x17b10d(0x18e)]===_0x17b10d(0x2d1)&&!_0x3e1084(_0x1607e7)))})]})]}),_0x1dd423=_0x2557b2=>{const _0x49814e=_0x17b10d;switch(_0x2557b2){case'line':return _0xdbc3b(_0x3fabe2,{'title':_0x25b819['t'](_0x49814e(0x2a3)),'shapeData':_0x20c8b0,'modeOptions':[_0x49814e(0x2f5),_0x49814e(0x26d),_0x49814e(0x35e)],'showDashDropdown':!0x1,'widthRange':{'min':_n[_0x49814e(0x312)],'max':_n[_0x49814e(0x205)],'step':0x1},'onUpdateShapeData':(_0x50eec0,_0x8ad2b)=>{Fn(_0x8ad2b,_0xa54156);}});case _0x49814e(0x38d):return _0xdbc3b(_0x4b1b45,{'title':_0x25b819['t']('boards-mind-ui.toolbar.panel.more'),'minWidthClassName':'univer-min-w-[240px]','children':_0x1e5b1d(_0x49814e(0x3b6),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1','children':[_0xdbc3b(_0x2e4721,{'labelKey':_0x49814e(0x1bb),'shortcut':_0x24bce6(bn['addSibling']),'onClick':_0x50af42}),_0xdbc3b(_0x2e4721,{'labelKey':_0x49814e(0x20b),'shortcut':_0x24bce6(bn[_0x49814e(0x23d)]),'onClick':_0x5b5230}),_0xdbc3b(_0x2cfe4c,{}),_0xdbc3b(_0x2e4721,{'labelKey':_0x49814e(0x259),'shortcut':_0x24bce6(bn[_0x49814e(0x39c)]),'onClick':_0x33ba3b}),_0xdbc3b(_0x2e4721,{'labelKey':'boards-mind-ui.toolbar.action.paste','shortcut':_0x24bce6(bn[_0x49814e(0x3ac)]),'onClick':_0x27ae63}),_0xdbc3b(_0x2e4721,{'labelKey':_0x49814e(0x15f),'shortcut':_0x24bce6(bn[_0x49814e(0x269)]),'onClick':_0x523339})]})});default:return null;}},_0x1f965a=yn['flatMap'](_0xd1de23=>{const _0x46dd04=_0x17b10d;let _0x23a507=[];if(_0xd1de23[_0x46dd04(0x262)]&&_0x23a507[_0x46dd04(0x251)](_0xdbc3b(_0x2cfe4c,{'orientation':_0x46dd04(0x389)},_0x46dd04(0x37a)+_0xd1de23['kind'])),_0xd1de23[_0x46dd04(0x15e)]==='typography')return _0x23a507[_0x46dd04(0x251)](_0xdbc3b(_0x30da04,{'title':_0x25b819['t']('boards-mind-ui.toolbar.panel.typography'),'fontFamily':_0x4d9e15['fontFamily'],'textStyle':{'isBold':_0x1fb592[_0x46dd04(0x3eb)]===!0x0,'isItalic':_0x1fb592['italic']===!0x0,'isUnderline':_0x1fb592[_0x46dd04(0x209)]===!0x0,'isStrike':_0x1fb592[_0x46dd04(0x2f3)]===!0x0},'horizontalAlign':_0x4d9e15[_0x46dd04(0x287)],'verticalAlign':_0x4d9e15[_0x46dd04(0x342)],'horizontalAlignOptions':_0x361196,'verticalAlignOptions':_0xf246f7,'onUpdateText':_0x520538},_0xd1de23[_0x46dd04(0x15e)])),_0x23a507;if(_0xd1de23[_0x46dd04(0x15e)]==='fontColor'){let _0xa0bc00={'fs':_0x4d9e15[_0x46dd04(0x419)],'cl':{'rgb':_0x4d9e15[_0x46dd04(0x36d)]},..._0x4d9e15['textFill']===void 0x0?null:{'textFill':_0x4d9e15['textFill']}};return _0x23a507['push'](_0xdbc3b(_0xfd025f,{'title':_0x25b819['t'](_0x46dd04(0x249)),'textStyle':_0xa0bc00,'fallbackColor':_0x4d9e15[_0x46dd04(0x36d)],'onChange':_0x8b2aec=>_0x520538({'textStyle':_0x8b2aec})},_0xd1de23['kind'])),_0x23a507[_0x46dd04(0x251)](_0xdbc3b(_0x5c0f56,{'value':String(_0x4d9e15[_0x46dd04(0x419)]),'onChange':_0x45bda4=>{_0x520538({'textStyle':{'fs':_0x45bda4}});}},_0x46dd04(0x366))),_0x23a507;}return _0x23a507['push'](_0xdbc3b(_0x48b1d8,{'open':_0x4c685b===_0xd1de23['panel'],'overlay':_0x1dd423(_0xd1de23[_0x46dd04(0x154)]),'onOpenChange':_0x1af368=>_0x3ec656(_0x1af368?_0xd1de23[_0x46dd04(0x154)]:null),'children':_0xdbc3b(_0x46dd04(0x316),{'children':_0xdbc3b(_0x16a3f4,{'title':_0x25b819['t'](_0xd1de23['titleKey']),'active':_0x4c685b===_0xd1de23[_0x46dd04(0x154)],'icon':En(wn[_0xd1de23[_0x46dd04(0x154)]]),'sizeClassName':'univer-h-7\x20univer-min-w-9\x20univer-w-auto\x20univer-gap-1\x20univer-px-1.5','onMouseDown':Tn,'onPointerDown':Tn})})},_0xd1de23[_0x46dd04(0x154)])),_0x23a507;});return _0x1e5b1d(_0x53b2ae,{'maxWidthClassName':_0x17b10d(0x261),'onMouseDown':_0x36dafa=>_0x36dafa[_0x17b10d(0x372)](),'children':[[..._0x314164[_0x17b10d(0x3e9)]?[_0xdbc3b(_0x48b1d8,{'open':_0x4c685b===_0x17b10d(0x20c),'overlay':_0x5b879b(),'onOpenChange':_0x578439=>_0x3ec656(_0x578439?_0x17b10d(0x20c):null),'children':_0xdbc3b('span',{'children':_0xdbc3b(_0x16a3f4,{'title':_0x25b819['t'](_0x17b10d(0x399)),'active':_0x4c685b==='layout','icon':_0xdbc3b(jn,{}),'sizeClassName':_0x17b10d(0x271),'onMouseDown':Tn,'onPointerDown':Tn})})},_0x17b10d(0x303)),_0xdbc3b(_0x2cfe4c,{'orientation':_0x17b10d(0x389)},_0x17b10d(0x2fb))]:[],_0xdbc3b(_0x5647d1,{'title':_0x25b819['t'](_0x17b10d(0x2e7)),'shapeData':_0x1365cd==null?{}:_0x1365cd,'onUpdateShapeData':_0x38d067},'mind-map-fill'),_0xdbc3b(_0x43cd4d,{'title':_0x25b819['t']('boards-mind-ui.toolbar.action.stroke'),'shapeData':_0x1365cd==null?{}:_0x1365cd,'onUpdateShapeData':_0x38d067},_0x17b10d(0x1b4)),_0xdbc3b(_0x2cfe4c,{'orientation':_0x17b10d(0x389)},_0x17b10d(0x2d2))],_0x1f965a]});}function zn(_0x8b4ead){let {left:_0x3535ee,top:_0x385391,width:_0x56e854,height:_0x3db30e}=_0x8b4ead;return{'left':_0x3535ee,'right':_0x3535ee+_0x56e854,'top':_0x385391-0x38,'bottom':_0x385391+_0x3db30e};}let Bn=class extends _0x43afa6{constructor(_0x13ea76,_0x595a1c,_0x44f70f,_0x496b1e,_0x8a6df2,_0x34e313){const _0x26351a=_0x4e28b3;super(),this[_0x26351a(0x1f3)]=_0x13ea76,this[_0x26351a(0x344)]=_0x595a1c,this[_0x26351a(0x234)]=_0x44f70f,this[_0x26351a(0x1e3)]=_0x496b1e,this['_boardTextEditingService']=_0x8a6df2,this[_0x26351a(0x1c3)]=_0x34e313,K(this,_0x26351a(0x181),null),K(this,'_popupSelectionKey',null),this[_0x26351a(0x169)]();}[_0x4e28b3(0x29d)](){const _0x5655f5=_0x4e28b3;this[_0x5655f5(0x18b)](),super[_0x5655f5(0x29d)]();}[_0x4e28b3(0x169)](){const _0x367c44=_0x4e28b3;let _0x39f6bb=this[_0x367c44(0x1f3)][_0x367c44(0x171)][_0x367c44(0x170)]();this[_0x367c44(0x40b)](_0x288fdc(_0x39f6bb[_0x367c44(0x2b0)][_0x367c44(0x34f)](_0x362352(this[_0x367c44(0x2a2)]))['subscribe'](()=>this[_0x367c44(0x221)]()))),this[_0x367c44(0x40b)](_0x288fdc(_0x39f6bb[_0x367c44(0x40c)][_0x367c44(0x34f)](_0x362352(this['dispose$']))[_0x367c44(0x345)](()=>this[_0x367c44(0x415)]()))),this[_0x367c44(0x40b)](_0x288fdc(_0x39f6bb[_0x367c44(0x394)]['pipe'](_0x362352(this[_0x367c44(0x2a2)]))[_0x367c44(0x345)](()=>this[_0x367c44(0x18b)]()))),this[_0x367c44(0x40b)](_0x288fdc(_0x39f6bb[_0x367c44(0x36a)][_0x367c44(0x34f)](_0x362352(this[_0x367c44(0x2a2)]))[_0x367c44(0x345)](()=>setTimeout(()=>this['_showPopupForSelection'](),0x0)))),this[_0x367c44(0x40b)](_0x288fdc(this[_0x367c44(0x1e3)]['state$'][_0x367c44(0x34f)](_0x362352(this['dispose$']))[_0x367c44(0x345)](()=>setTimeout(()=>this['_showPopupForSelection'](),0x0)))),this[_0x367c44(0x40b)](_0x288fdc(this[_0x367c44(0x1c3)][_0x367c44(0x233)][_0x367c44(0x34f)](_0x362352(this[_0x367c44(0x2a2)]))[_0x367c44(0x345)](_0x2b4a05=>{const _0x37b159=_0x367c44;if(_0x2b4a05){this[_0x37b159(0x18b)]();return;}setTimeout(()=>this[_0x37b159(0x221)](),0x0);}))),this[_0x367c44(0x40b)](_0x288fdc(this['_boardTextEditingService']['editingParams$'][_0x367c44(0x34f)](_0x362352(this[_0x367c44(0x2a2)]))[_0x367c44(0x345)](_0x4b436e=>{const _0x4a3ab4=_0x367c44;if((_0x4b436e==null?void 0x0:_0x4b436e[_0x4a3ab4(0x204)])===this[_0x4a3ab4(0x1f3)]['unitId']){if(_0x4b436e[_0x4a3ab4(0x274)]){this['_clearPopup']();return;}setTimeout(()=>this[_0x4a3ab4(0x221)](),0x0);}})));}[_0x4e28b3(0x18b)](){const _0x30b892=_0x4e28b3;var _0x3c984b;(_0x3c984b=this['_popupDisposable'])==null||_0x3c984b[_0x30b892(0x29d)](),this[_0x30b892(0x181)]=null,this[_0x30b892(0x223)]=null;}[_0x4e28b3(0x415)](){setTimeout(()=>{const _0xcf8ecf=_0x4c93;this[_0xcf8ecf(0x3db)]()||this[_0xcf8ecf(0x18b)]();},0x0);}['_isPopupSelectionStillActive'](){const _0x444633=_0x4e28b3;let _0x363bc0=this[_0x444633(0x1e3)]['getSnapshot']();return!!_0x363bc0[_0x444633(0x1ed)]&&_0x363bc0[_0x444633(0x315)][_0x444633(0x282)]>0x0&&this[_0x444633(0x223)]===this['_buildPopupSelectionKey'](_0x363bc0[_0x444633(0x1ed)]['unitId'],_0x363bc0[_0x444633(0x1ed)][_0x444633(0x1e8)],_0x363bc0['selectedIds']);}[_0x4e28b3(0x396)](_0x4f882d,_0x1d2ebf,_0x3c88b7){const _0x3da3a=_0x4e28b3;return _0x4f882d+':'+_0x1d2ebf+':'+_0x3c88b7[_0x3da3a(0x3fa)](',');}[_0x4e28b3(0x213)](_0x11d9fa,_0x1ffe56,_0x3e8faa,_0x386dc1){const _0x50a392=_0x4e28b3;let _0x4d9380=this[_0x50a392(0x234)][_0x50a392(0x36f)](_0x11d9fa,_0x1ffe56),_0x5bb472=Object['values'](_0x4d9380)[_0x50a392(0x203)](_0x514ad5=>{let _0x1977a6=_0x42da87(_0x514ad5['element']);return(_0x1977a6==null?void 0x0:_0x1977a6['structureScopeId'])===_0x3e8faa&&_0x1977a6['childNodeId']===_0x386dc1;});if(!(!_0x5bb472||!(_0x50a392(0x296)in _0x5bb472[_0x50a392(0x409)])))return _0x5bb472[_0x50a392(0x409)][_0x50a392(0x296)][_0x50a392(0x350)];}['_showPopupForSelection'](){const _0x567bb1=_0x4e28b3;var _0x2c8e5f,_0x1379e0,_0x10a0b0,_0x54417e,_0x47b45a,_0x6f2273,_0x24779a,_0x1adfef;if(this[_0x567bb1(0x1c3)][_0x567bb1(0x3bc)]){this['_clearPopup']();return;}let _0x58363d=this['_boardTextEditingService'][_0x567bb1(0x3dd)]();if((_0x58363d==null?void 0x0:_0x58363d['visible'])===!0x0&&_0x58363d['unitId']===this[_0x567bb1(0x1f3)][_0x567bb1(0x204)]){this[_0x567bb1(0x18b)]();return;}let _0x3c2b33=this[_0x567bb1(0x1e3)][_0x567bb1(0x2af)]();if(_0x3c2b33[_0x567bb1(0x257)]){this[_0x567bb1(0x18b)]();return;}if(_0x4a534b({'context':_0x3c2b33['context'],'selectedIds':_0x3c2b33[_0x567bb1(0x315)],'getElementById':(_0x38cb23,_0x544bfd,_0xdf86ff)=>this[_0x567bb1(0x234)][_0x567bb1(0x402)](_0x38cb23,_0x544bfd,_0xdf86ff)})[_0x567bb1(0x1f0)]!==_0x567bb1(0x361)){this[_0x567bb1(0x18b)]();return;}let _0x496dad=this[_0x567bb1(0x1f3)][_0x567bb1(0x171)][_0x567bb1(0x170)]()[_0x567bb1(0x28f)](),_0x2740c7=Array[_0x567bb1(0x15d)](_0x496dad[_0x567bb1(0x326)]())[_0x567bb1(0x1cb)](_0x315841=>this[_0x567bb1(0x199)](_0x315841))[_0x567bb1(0x20e)](_0x7de034=>!!_0x7de034)[_0x567bb1(0x20e)](_0x22e8ed=>!!_0x130c96(_0x22e8ed[_0x567bb1(0x25a)][_0x567bb1(0x409)])),_0x4df04c=(_0x2c8e5f=(_0x1379e0=_0x2740c7['find'](_0x465c60=>_0x465c60[_0x567bb1(0x25a)][_0x567bb1(0x404)]===_0x3c2b33[_0x567bb1(0x26f)]))==null?_0x2740c7[0x0]:_0x1379e0)==null?this[_0x567bb1(0x3fd)]():_0x2c8e5f;if(!_0x4df04c){this[_0x567bb1(0x18b)]();return;}let _0x5eec18=_0x130c96(_0x4df04c[_0x567bb1(0x25a)][_0x567bb1(0x409)]);if(!_0x5eec18){this['_clearPopup']();return;}let _0x308317=(_0x10a0b0=this[_0x567bb1(0x234)][_0x567bb1(0x36f)](_0x4df04c[_0x567bb1(0x25a)][_0x567bb1(0x204)],_0x4df04c[_0x567bb1(0x25a)][_0x567bb1(0x1e8)])[_0x5eec18['structureScopeId']])==null?void 0x0:_0x10a0b0[_0x567bb1(0x409)],_0x3b8f99=_0x30a9b0(_0x308317),_0x575cd2=_0x308317==null||(_0x54417e=_0x308317[_0x567bb1(0x3f3)])==null||(_0x54417e=_0x54417e[_0x567bb1(0x248)])==null||(_0x54417e=_0x54417e[_0x567bb1(0x20c)])==null?void 0x0:_0x54417e[_0x567bb1(0x2c7)],_0x3e4bb1=((_0x47b45a=_0x3b8f99==null?void 0x0:_0x3b8f99[_0x567bb1(0x20c)][_0x567bb1(0x2c7)])==null?_0x575cd2:_0x47b45a)===_0x567bb1(0x351)&&(_0x5eec18[_0x567bb1(0x197)]===null||_0x5eec18[_0x567bb1(0x164)]===_0x567bb1(0x3a3)),_0x56d61d=_0x5eec18[_0x567bb1(0x197)]!==null&&_0x5eec18[_0x567bb1(0x164)]!==_0x567bb1(0x3a3)&&_0x5eec18[_0x567bb1(0x164)]!==_0x567bb1(0x3f0),_0x255713=_0x3e4bb1||_0x56d61d,_0x5d3396=((_0x6f2273=_0x3c2b33[_0x567bb1(0x1ed)])==null?void 0x0:_0x6f2273[_0x567bb1(0x204)])===_0x4df04c['elementData']['unitId']&&_0x3c2b33['context']['subUnitId']===_0x4df04c[_0x567bb1(0x25a)][_0x567bb1(0x1e8)]&&_0x3c2b33[_0x567bb1(0x315)][_0x567bb1(0x282)]?_0x3c2b33[_0x567bb1(0x315)]:[_0x4df04c[_0x567bb1(0x25a)][_0x567bb1(0x404)]],_0x1d7830=this['_buildPopupSelectionKey'](_0x4df04c[_0x567bb1(0x25a)][_0x567bb1(0x204)],_0x4df04c['elementData'][_0x567bb1(0x1e8)],_0x5d3396);this[_0x567bb1(0x181)]&&this[_0x567bb1(0x223)]===_0x1d7830||(this['_clearPopup'](),this[_0x567bb1(0x181)]=this[_0x567bb1(0x40b)](this[_0x567bb1(0x344)][_0x567bb1(0x35c)](_0x4df04c[_0x567bb1(0x25a)][_0x567bb1(0x204)],_0x4df04c[_0x567bb1(0x25a)]['subUnitId'],_0x4df04c['object'],{'componentKey':gn,'direction':_0x567bb1(0x3d3),'offset':[0x0,0x8],..._0x255713?{'anchorBoundResolver':zn}:null,'extraProps':{'unitId':_0x4df04c[_0x567bb1(0x25a)]['unitId'],'subUnitId':_0x4df04c['elementData'][_0x567bb1(0x1e8)],'elementId':_0x4df04c[_0x567bb1(0x25a)][_0x567bb1(0x404)],'scopeId':_0x5eec18[_0x567bb1(0x3fe)],'isRootNode':_0x5eec18[_0x567bb1(0x197)]===null,'left':(_0x24779a=_0x4df04c[_0x567bb1(0x25a)][_0x567bb1(0x409)]['transform'][_0x567bb1(0x33e)])==null?0x0:_0x24779a,'top':(_0x1adfef=_0x4df04c['elementData'][_0x567bb1(0x409)][_0x567bb1(0x2eb)][_0x567bb1(0x3a3)])==null?0x0:_0x1adfef,'shapeData':_0x4df04c[_0x567bb1(0x25a)][_0x567bb1(0x409)][_0x567bb1(0x2a1)]===_0x2cd328[_0x567bb1(0x38f)]?_0x4df04c['elementData']['element']['shapeData']:void 0x0,'layout':_0x3b8f99==null?void 0x0:_0x3b8f99[_0x567bb1(0x20c)],'incomingConnectorStyle':this[_0x567bb1(0x213)](_0x4df04c[_0x567bb1(0x25a)]['unitId'],_0x4df04c[_0x567bb1(0x25a)][_0x567bb1(0x1e8)],_0x5eec18[_0x567bb1(0x3fe)],_0x4df04c[_0x567bb1(0x25a)]['elementId'])}})),this[_0x567bb1(0x223)]=_0x1d7830);}[_0x4e28b3(0x3fd)](){const _0x101929=_0x4e28b3;var _0x53d168,_0x2d38b7,_0x20656e;let _0x47820b=this[_0x101929(0x1e3)][_0x101929(0x2af)](),_0x70b6b=_0x47820b[_0x101929(0x1ed)],_0x37bb09=(_0x53d168=_0x47820b['focusedId'])==null?_0x47820b[_0x101929(0x315)][0x0]:_0x53d168;if(!_0x70b6b||!_0x37bb09)return null;let _0x5cc627=this[_0x101929(0x234)][_0x101929(0x402)](_0x70b6b[_0x101929(0x204)],_0x70b6b[_0x101929(0x1e8)],_0x37bb09);if(!_0x5cc627||!_0x130c96(_0x5cc627[_0x101929(0x409)]))return null;let _0xca7ee3=_0x239fd6(_0x70b6b[_0x101929(0x204)],_0x37bb09),_0x92ec13=this[_0x101929(0x1f3)]['scene'],_0x588019=(_0x2d38b7=(_0x20656e=_0x92ec13[_0x101929(0x24c)])==null?void 0x0:_0x20656e[_0x101929(0x1e1)](_0x92ec13,_0xca7ee3))==null?this[_0x101929(0x1f3)][_0x101929(0x171)][_0x101929(0x3fc)](_0xca7ee3):_0x2d38b7;return _0x588019?{'object':_0x588019,'elementData':_0x5cc627}:null;}['_resolveSelectedEntry'](_0x302e7a){const _0xace9de=_0x4e28b3;var _0x4d3cc2;if(!_0x302e7a)return null;let _0x538977=_0x16c9be(_0x302e7a[_0xace9de(0x1ce)]);if(!_0x538977)return null;let _0x3f1ead=this[_0xace9de(0x1e3)][_0xace9de(0x2af)](),_0x1166a6=((_0x4d3cc2=_0x3f1ead[_0xace9de(0x1ed)])==null?void 0x0:_0x4d3cc2[_0xace9de(0x204)])===_0x538977['unitId']?_0x3f1ead[_0xace9de(0x1ed)][_0xace9de(0x1e8)]:void 0x0;if(!_0x1166a6)return null;let _0x137870=this[_0xace9de(0x234)][_0xace9de(0x402)](_0x538977[_0xace9de(0x204)],_0x1166a6,_0x538977['elementId']);return _0x137870?{'object':_0x302e7a,'elementData':_0x137870}:null;}};Bn=J([q(0x1,_0x19f927(_0x11b6e9)),q(0x2,_0x19f927(_0x5af7fa)),q(0x3,_0x19f927(_0x4ad25d)),q(0x4,_0x19f927(_0x4aee4d)),q(0x5,_0x19f927(_0x51f3dc))],Bn);const Vn=_0x4e28b3(0x16c),Hn=_0x394cf0[_0x4e28b3(0x2a9)];function Un(_0x49cc24,_0x132206){const _0x36989e=_0x4e28b3;return(_0x49cc24==null?[]:_0x49cc24)[_0x36989e(0x3f6)]((_0x2b81c8,_0x1bed1b)=>{const _0x52fadc=_0x36989e;var _0x2fa687;return _0x2b81c8[(_0x2fa687=_0x1bed1b[_0x52fadc(0x164)])==null?_0x132206:_0x2fa687][_0x52fadc(0x251)](_0x1bed1b),_0x2b81c8;},{'left':[],'right':[],'top':[],'bottom':[]});}function Wn(_0x532b0d){const _0x3a51d0=_0x4e28b3;return _0x532b0d==='tree-left'||_0x532b0d===_0x3a51d0(0x2d8)||_0x532b0d===_0x3a51d0(0x400);}function _0x5a5c(){const _0x528faf=['registerRenderModule','activeEditingId','getContextValue','_getSelectedMindMapContext','CENTER','_createQuoteShortcut','getUnitId','_resolveControlSide','branch-orthogonal','univer-text-xs\x20univer-text-gray-500','branch-curve','boards-mind-ui.panel.tab.importExport','structureKind','viewportPanOffset','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-xs\x20univer-text-gray-600','_resolvePreviewSourceBounds','hideRootControls','center','_syncControls','_resolveChildDragTopologyAction','_cloneBlueprint','_syncLayoutPreview','curve','style-divider','_resolveCurrentBoardContext','textAlign','boards-mind-ui.panel.spacing.branchGap','_syncPointerChildDragPreview','getTemplate','tree-right','_restoreObjectToDragStart','_removePreviewObject','ArrowRight','ARROW_LEFT','_renderManagerService','isFinite','Branch','arrow-left','zIndex','primary','boards-mind-ui.panel.importOPML','rgb','text/plain','boards-mind-ui.toolbar.primary.typography','boards-mind-ui.toolbar.action.fill','getOwnPropertyDescriptor','clientX','M15\x2031h50M35\x2031V18c0-4\x203-7\x208-7h9M35\x2031v13c0\x204\x203\x207\x208\x207h9','transform','show','strokeWidth','siblingGlyphSize','timelineAxisGap','_configService','after','_boardUIStateService','strikethrough','boards-mind-ui.panel.searchNodes','solid','Mind\x20map','lineTo','default','univer-mb-3\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-900\x20dark:!univer-text-gray-100','collapsePlusMinDistance','layout-panel-divider','RIGHT','clearSelection','parseInt','_note','elementRemove$','point','UNIVER_BOARD','mind-map-layout-dropdown','string','sourceBounds','activeTool','_previewRefreshService','_seedExistingNodeSizes','getHitControl','_attachObjectEvents','true','structure','_initEditingRestore','boards-mind-ui.panel.emptyNodes','ARROW_DOWN','_executeAndLayout','popup','min','getConfig','success','selectedIds','span','univer-h-28\x20univer-resize-none\x20univer-text-xs','description','addChildGlyphSize','direction','_insertStateService','pointerup','fontFamily','_config','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-white','decorate','branch-rounded-orthogonal','boards-mind-ui.panel.structureKind.mindmapVertical','height','_childDragActivated','version','values','univer-mb-2\x20univer-text-lg\x20univer-text-gray-900','moveTo','extraProps','_stateService','_syncSceneInputMode','M56\x2012v32M56\x2019c0\x204-3\x206-7\x206h-7M56\x2029c0\x204-3\x206-7\x206h-7M56\x2039c0\x204-3\x206-7\x206h-7','boards-mind-ui.panel.pasteOPML','slice','font','add-sibling-after','_activeScopeId','open-description','sourceHighlightFillColor','add-child','entries','_scheduleAttachObjectPointerListeners','ghostFontWeight','_enableMindMapToolbarTool','_getZoomRatio','onStarting','referenceNodeId','fillStyle','onPointerDown$','left','_syncRootReparentPreview','add-child-right','collapsed','verticalAlign','M12\x2026h11M58\x2036h11M12\x2045h11','_boardCanvasPopManagerService','subscribe','boards-mind-ui.alignCenter','_copySelectedNode','enabled','get','boards-mind-ui.saveDescription','transientControl','connector','RoundDot','_openSelectedTextEditing','pipe','style','mindmap-vertical','23094576VOFBEJ','M16\x2029h18c7\x200\x2010-5\x2010-12v-3M34\x2029h10c7\x200\x2010\x205\x2010\x2012v3','boards-mind-ui.panel.structureKind.timelineVertical','board-mind-map-drag-preview-object','keys','transientPreview','icon','dropEffect','glyphWidth','Select','attachPopupToObject','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','dot','quadraticCurveTo','boards-mind-ui.alignLeft','mind-map','save','boards-mind-ui.cancel','_lastChildDragAction','3793458iEpFqU','mind-map-font-size','boards-mind-ui.config','setShapeSidebarOpen','_getPointerLiveBounds','changeEnd$','board.mind-map.floating-toolbar','setLineDash','color','subscribeEvent','getElementData','_ensurePreviewObject','transientPreviewForeground','stopPropagation','children','Escape','editingParams$','univer-mb-0','tree-diagram','then','1942022Exkzmo','divider-','tree-left','_previewObject','onChange','isRoot','_isEditingMindMapNode','arrow-up','object','repeat(','clientY','_syncRootScopePreview','placement','strokeStyle','clipboard','add-sibling-before','vertical','_getLiveObjectBounds','scopeId','none','more','_applyPointerChildDrag','Shape','next','_pasteAsNewMindMap','title','boundsByElementId','changeStart$','detachWhenNoSnap','_buildPopupSelectionKey','boards-mind-ui.panel.rename','add','boards-mind-ui.toolbar.action.layout','boards-mind-ui.panel.layout.right','detach','copy','_textEditingService','univer-w-[202px]\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-white\x20univer-px-4\x20univer-py-4\x20univer-shadow-lg','orderKey','univer-bg-[#e8eefc]\x20univer-text-[#2f6fed]\x20hover:univer-bg-[#e8eefc]','circle','blueprint','top','timeline-vertical','boards-mind-ui.panel.structureKind.treeLeft','boards-mind-ui.descriptionPlaceholder','_getPointFromEvent','_disposeActivePointerDragListeners','_handlePointerMove','effectAllowed','_layoutFlushScheduled','paste','_collapseAll','_pasteUnderSelectedNode','univer-mb-3\x20univer-w-full','_queueLayout','_syncDragPreview','reparent','OPERATION','incomingConnectorStyle','labelKey','div','setTemplate','setHoveredControl','sort','offsetX','items','isInteractionSurfaceActive','onDblclick$','getActivePageId','dashType','getUnit','currentColor','forEach','_navigateByTopology','surfaceColor','beginPath','visualRadius','button','_toFiniteBounds','ArrowDown','_handleShortcut','snapDistance','boards-mind-ui.alignRight','univer-border-b\x20univer-border-gray-200\x20univer-p-4','siblingGap','_activePreview','_restoreActivePreview','_resolveNodeSize','arrow-down','top-center','ArrowUp','fontColor','executeCommand','depth','_consumeControlEvent','_isControlEvent','univer-h-32\x20univer-resize-none\x20univer-text-sm','_isPopupSelectionStillActive','both','getEditing','registerShortcut','rootChildSides','restore','documentStyle','symbol','_removeObject','controls','_cloneBlueprintNode','_pointerDragStart','updateState','pointercancel','isRootNode','hoveredControl','bold','_debouncedLayouts','M24\x2012v32M24\x2019c0\x204\x203\x206\x207\x206h7M24\x2029c0\x204\x203\x206\x207\x206h7M24\x2039c0\x204\x203\x206\x207\x206h7','refresh$','_countDescendants','bottom','M16\x2028c16\x200\x2025-13\x2043-13M16\x2028c16\x200\x2025\x2013\x2043\x2013','_shortcutService','custom','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','360LIVYiX','reduce','_dragStart','disableObjectsEvent','ghostFillColor','join','_activeNodeId','getObject','_resolveSelectedMindMapEntryFromState','structureScopeId','parentBounds','tree-alternate','MIDDLE','getElementById','svg','elementId','defaultValue','_syncPreviewObject','root','lineWidth','element','TOP','disposeWithMe','clearControl$','boards-mind-ui.alignTop','getPayload','has','boards-mind-ui.panel.exportOPML','textFill','_objectPointerDisposables','_componentManager','round','_clearPopupIfSelectionChanged','pointerStartY','radius','opacity','fontSize','_removeDragPreviewObject','promote','ghostBounds','_applyDragTopologyAction','hypot','boards-mind-ui.panel.structureKind.treeRight','_refresh$','removeEventListener','addObject','panel','skipNextObservers','4480686EmkwSS','hasCommand','univer-flex\x20univer-min-w-0\x20univer-flex-1\x20univer-items-center\x20univer-gap-1','add-child-left','getState','selectElements','boards-mind-ui.description','from','kind','boards-mind-ui.toolbar.action.delete','setPendingInsert','hasChildren','edit-text','_getBlankBoardContext','side','collapsedDescendantCount','_handleElementUpdate','M19.5\x207.5h-4.2c-1.9\x200-3.3\x201.5-3.3\x203.3','rounded-orthogonal','_init','exec','allowRootReparent','board-mind-map-pending-insert-object','_isPointInBounds','elementAdd$','_hideSelectionForChildDrag','getTransformerByCreate','scene','rootRadius','pointerStartX','_previewHostSize','currentTarget','_resolveArrowNavigationTarget','SHIFT','_normalizeChildren','_state','orthogonal','arrow-right','px\x20','univer-size-full\x20univer-bg-white\x20univer-text-sm\x20univer-text-gray-700\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-200','univer-mb-4','fillText','opml','_popupDisposable','renderGhostNode','_syncMindMapTextEditorContext','_contextService','univer-grid\x20univer-h-14\x20univer-overflow-hidden\x20univer-rounded-xl\x20univer-bg-gray-100\x20univer-p-1','shapeText','isHit','board-mind-map-node-controls-object','M47\x2025h13M47\x2035h13M47\x2045h13','board.operation.mind-map.keyboard-shortcut','_clearPopup','updateElement','stroke','value','_nodeSizeByKey','Tree\x20diagram','branchLineType','register','_resolveRootTopLeft','onPointerUp$','enableObjectsEvent','lineWidthScreen','parentNodeId','univer-w-24','_resolveSelectedEntry','_commandService','_createKeyboardShortcutOperation','_findChildNodeAtPoint','1.0.0-alpha.8','foldChildNodes','fallbackNodeHeight','_resolvePreviewTextStyle','asObservable','borderWidth','render','onPointerMove$','paste-as-new','function','_template','_getBoardsUIConfig','rootHeight','rootStartBounds','objects','_lastPoint','dropdown','univer-size-5','horizontalGap','offsetY','rgba(','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','toggle-collapse','mind-map-stroke','width','_resolveDirtyBounds','_getMindMapChildren','boards-mind-ui.panel.layout.both','_drawSourceHighlight','registerCommand','boards-mind-ui.toolbar.action.addSibling','removeObjects','glyphHoverWidth','zoomRatio','targetNodeId','board-mind-map-description-dialog','_handlePointerDown','univer-w-20\x20univer-shrink-0','_interactionSurfaceService','3JvrWsf','M4.5\x2016.5h4.2c1.9\x200\x203.3-1.5\x203.3-3.3','univer-w-full\x20univer-text-xs','M56\x2011h11M56\x2051h11','resolve','univer-h-9\x20univer-w-12','_handleNodeUpdateCommand','map','iterator','_activePointerDragDisposables','oKey','_queuedLayouts','siblingHoverRadius','hide','constructor','boards-mind-ui.alignJustify','UNIVER_BOARDS_MIND_UI_PLUGIN','item','addEventListener','_attachObjectPointerListeners','DELETE','onPointerCancel$','siblingDotRadius','univer-min-w-0\x20univer-flex-1\x20univer-justify-start\x20univer-truncate\x20univer-text-left','italic','number','_debouncedLayoutTimer','ghostTextColor','makeDirtyNoDebounce','call','ghostRadius','_elementStateService','dirtyPaddingScreen','_mindMapClipboardService','_attachActivePointerDragListeners','transformByState','subUnitId','univer-space-y-1','_executeChildDragAction','defineProperty','spacing','context','unsubscribe','middle','owner','_registerComponents','addChildRadius','_renderContext','child','params','_childDragSelectionHidden','1.8','_resolveRootChildControlSides','_capturePointerChildDragStart','_objectEventDisposables','_executeNodeOperation','mindmap-horizontal','_queueDebouncedLayout','setConfig','_resolveChildSide','_injector','_boardTextEditingService','dataTransfer','find','unitId','max','panOffset','_object','lineCap','underline','setContextValue','boards-mind-ui.toolbar.action.addChild','layout','pointermove','filter','_createShortcutItems','_getSceneObject','timeline','addSiblingNode','_resolveIncomingConnectorStyle','collapse-all','rootNodeId','move','_syncChildDragPreviewObject','_instanceService','clear','M20\x2025h13M20\x2035h13M20\x2045h13','_resolveCreateChildSide','univer-flex\x20univer-gap-2','LEFT','textBaseline','_getElementKey','boards-mind-ui.toolbar.primary.fontColor','_showPopupForSelection','outlineItems','_popupSelectionKey','localeCompare','small','_uiStateService','rootWidth','_subscribeElementDataChanges','registerProvider','liveRootBounds','6166864WOQIOb','_ensureObject','line','before','boards-mind-ui.panel.structureKind.timelineHorizontal','sourceHaloScreen','addDescription','globalAlpha','interactionSurfaceActive$','_boardElementService','_createTopologyBoundsByElementId','board.mind-map.panel','toolbar','glyphSize','trim','textStyle','M17\x2033h21M38\x2017v30M38\x2017h24','key','addChild','getBoundingClientRect','_getBoardPointFromEvent','some','arc','boards-mind-ui.panel.tab.structure','BACKSPACE','right','_addSiblingOrChild','toPrimitive','fromEntries','mindmap','boards-mind-ui.toolbar.action.fontColor','badgeFontWeight','addParentNode','getObjectIncludeInGroup','tools','requestRender','setActiveTool','univer-flex\x20univer-flex-col\x20univer-gap-2','push','sourceDashScreen','textPaddingScreen','importExport','rootTextColor','_provider','isTransforming','path','boards-mind-ui.toolbar.action.copy','elementData','ghost','FOCUSING_MIND_MAP_TEXT_EDITOR','branchGap','setData','boards-mind-ui.alignMiddle','notify','univer-max-w-[min(760px,calc(100vw-32px))]','dividerBefore','nodeId','clearPendingInsert','primaryColor','_isChildDragPastActivationThreshold','rootText','open','delete','_consumePointerEvent','shapeId','boards-mind-ui.panel.spacing.siblingGap','dash','badgeCount','focusedId','siblingDotGap','univer-h-7\x20univer-min-w-9\x20univer-w-auto\x20univer-gap-1\x20univer-px-1.5','383006xJIAnp','toLowerCase','visible','add-child-bottom','_syncElementDataToScene','SquareDot','ArrowLeft','_dragPreviewObject','editCurrentNode','objectAlpha','bounds','add-sibling-or-child','rootFontSize','state$','boards-mind-ui.panel.branchLineType.orthogonal','dragObjectAlpha','length','foreignAttributes','ignoreExternalFocusChanges','_executeCreateAndEdit','add-child-top','horizontalAlign','text','_rememberNodeSize','_resolveControlBounds','timeline-horizontal','_openDescriptionDialog','univer-text-xs\x20univer-text-gray-400\x20dark:!univer-text-gray-500','boards-mind-ui.panel.structureKind.mindmapHorizontal','getSelectedObjectMap','newParentNodeId','_instanceSrv','shapeData','_cancelPointerChildDrag','_resolveHostSize','boards-mind-ui.panel.','connectorData','set','gap','Dash','section','_getPointerScreenPoint','boards-mind-ui.panel.cancel','dispose','fill','makeDirty','preventDefault','type','dispose$','boards-mind-ui.toolbar.panel.line','complete','dataModel','_attachObjectPointerScheduled','MindMap','_drawConnectorPreview','preview','abs','badgeFontSize','sourceHighlightStrokeColor','univer-space-y-3','label','getSnapshot','createControl$','JUSTIFIED','M40\x209v40M40\x2020c8\x200\x2011\x204\x2011\x2011v8M40\x2035c-8\x200-11\x204-11\x2011v4','setEditing','_captureDragStart','changing$','_syncChildDragPreview',',\x20minmax(0,\x201fr))','65510mitfZY','boards-mind-ui.panel.structureKind.treeAlternate','M12\x2015h9M12\x2028h9M12\x2041h9M59\x2015h9M59\x2028h9M59\x2041h9'];_0x5a5c=function(){return _0x528faf;};return _0x5a5c();}function Gn(_0x17b0f2){const _0x2f27e9=_0x4e28b3;return _0x17b0f2===_0x2f27e9(0x28b)||_0x17b0f2==='timeline-vertical';}function Kn(_0x2e9c2e,_0x55d3f0,_0x400b2e){const _0x388b8f=_0x4e28b3;return _0x400b2e===_0x388b8f(0x37b)?_0x388b8f(0x33e):_0x400b2e===_0x388b8f(0x2d8)?_0x388b8f(0x244):_0x2e9c2e[_0x388b8f(0x164)]===_0x388b8f(0x33e)||_0x2e9c2e[_0x388b8f(0x164)]===_0x388b8f(0x244)?_0x2e9c2e[_0x388b8f(0x164)]:_0x55d3f0%0x2==0x0?_0x388b8f(0x33e):'right';}function qn(_0x1015fe,_0x1d9f7e){const _0x3282e7=_0x4e28b3;var _0x324236,_0x413f03;return(_0x324236=(_0x413f03=_0x1d9f7e==null?void 0x0:_0x1d9f7e[_0x3282e7(0x407)][_0x3282e7(0x373)])==null?_0x1015fe:_0x413f03)==null?[]:_0x324236;}var Jn=class extends _0x344c5d{constructor(_0x2882c5=Vn,_0xae968f){const _0x235a84=_0x4e28b3;super(_0x2882c5),K(this,_0x235a84(0x179),{'point':null,'children':[]}),this['evented']=!0x1,this[_0x235a84(0x2e1)]=_0x5d51da[_0x235a84(0x357)],this[_0x235a84(0x3e7)](_0xae968f);}['updateState'](_0x53394a){const _0x4b3e5c=_0x4e28b3;this[_0x4b3e5c(0x179)]={...this[_0x4b3e5c(0x179)],..._0x53394a},this[_0x4b3e5c(0x179)]['point']?this['show']():this[_0x4b3e5c(0x1d1)](),this[_0x4b3e5c(0x29f)](!0x0);}[_0x4e28b3(0x187)](_0x16982a){return!0x1;}[_0x4e28b3(0x1a3)](_0x4a7482,_0x27b189){const _0x41b95f=_0x4e28b3;var _0x54ed39;let _0x181b88=this[_0x41b95f(0x179)][_0x41b95f(0x301)];if(!_0x181b88||!this[_0x41b95f(0x274)])return this[_0x41b95f(0x29f)](!0x1),this;let _0xff4d1b=Number[_0x41b95f(0x2de)](this['_state'][_0x41b95f(0x1be)])&&((_0x54ed39=this['_state']['zoomRatio'])==null?0x0:_0x54ed39)>0x0?this[_0x41b95f(0x179)][_0x41b95f(0x1be)]:0x1,_0x42bc3d=_0x1163ab['rootWidth'],_0x29a6e3=_0x1163ab[_0x41b95f(0x1a9)],_0x19f3b1=_0x1163ab['nodeWidth'],_0x17c012=_0x1163ab['nodeHeight'],_0x31c7bb=_0x1defe8['horizontalGap'],_0x5053e7=_0x1defe8[_0x41b95f(0x3ce)],_0x14af3b=this[_0x41b95f(0x179)]['structureKind']===_0x41b95f(0x351),_0x26678c=Un(this['_state'][_0x41b95f(0x373)],_0x14af3b?_0x41b95f(0x3f0):'right'),_0x2ceb81=_0x181b88['x']-_0x42bc3d/0x2,_0x5a1804=_0x181b88['y']-_0x29a6e3/0x2;if(_0x4a7482[_0x41b95f(0x362)](),_0x4a7482[_0x41b95f(0x232)]=X[_0x41b95f(0x27b)],_0x4a7482[_0x41b95f(0x408)]=X[_0x41b95f(0x196)]/_0xff4d1b,_0x4a7482[_0x41b95f(0x386)]=X[_0x41b95f(0x265)],Gn(this[_0x41b95f(0x179)][_0x41b95f(0x2c7)])){let _0x5c4168=qn(this['_state'][_0x41b95f(0x373)],this[_0x41b95f(0x179)][_0x41b95f(0x3a2)]),_0x531538=this[_0x41b95f(0x179)]['structureKind']==='timeline-horizontal';if(_0x5c4168[_0x41b95f(0x282)]>0x0){if(_0x4a7482[_0x41b95f(0x3c5)](),_0x531538){let _0x5bf8da=_0x19f3b1,_0x117e0e=_0x17c012,_0x56531c=_0x1defe8[_0x41b95f(0x2ef)],_0x2ae5bf=_0x181b88['y'],_0x1c229f=_0x2ceb81+_0x42bc3d,_0x383f97=_0x181b88['y']-_0x117e0e/0x2,_0x4aa6c7=_0x2ceb81+_0x42bc3d+_0x56531c;_0x4a7482[_0x41b95f(0x328)](_0x1c229f,_0x2ae5bf),_0x4a7482[_0x41b95f(0x2f7)](_0x4aa6c7,_0x2ae5bf),_0x5c4168[_0x41b95f(0x3c2)]((_0x4ba9a4,_0x1713ba)=>{const _0x5b593c=_0x41b95f;let _0x765df9=_0x4aa6c7+_0x1713ba*(_0x5bf8da+_0x56531c);if(_0x1713ba>0x0){let _0x4816e0=_0x4aa6c7+(_0x1713ba-0x1)*(_0x5bf8da+_0x56531c)+_0x5bf8da;_0x4a7482[_0x5b593c(0x328)](_0x4816e0,_0x2ae5bf),_0x4a7482[_0x5b593c(0x2f7)](_0x765df9,_0x2ae5bf);}_0x4a7482[_0x5b593c(0x328)](_0x765df9,_0x2ae5bf),_0x4a7482[_0x5b593c(0x2f7)](_0x765df9+_0x5bf8da,_0x2ae5bf);}),_0x4a7482[_0x41b95f(0x18d)](),_0x5c4168[_0x41b95f(0x3c2)]((_0x1995aa,_0x353602)=>{const _0x3d0010=_0x41b95f;Z(_0x4a7482,_0x4aa6c7+_0x353602*(_0x5bf8da+_0x56531c),_0x383f97,_0x5bf8da,_0x117e0e,X['ghostRadius']),_0x4a7482[_0x3d0010(0x33c)]=X[_0x3d0010(0x3f9)],_0x4a7482[_0x3d0010(0x29e)](),_0x4a7482[_0x3d0010(0x18d)]();}),_0x5c4168[_0x41b95f(0x3c2)]((_0x17326a,_0x350184)=>{const _0x41b667=_0x41b95f;if(!(_0x41b667(0x373)in _0x17326a)||_0x17326a[_0x41b667(0x373)][_0x41b667(0x282)]===0x0)return;let _0xc792ab=_0x4aa6c7+_0x350184*(_0x5bf8da+_0x56531c),_0x37fcf9=_0xc792ab+_0x5bf8da/0x2,_0x4e1371=_0x17326a[_0x41b667(0x164)]===_0x41b667(0x3f0)?_0x41b667(0x3f0):_0x41b667(0x3a3),_0x17bbc1=_0x17326a[_0x41b667(0x373)][_0x41b667(0x32e)](0x0,0x2),_0x4ab299=_0x17bbc1[_0x41b667(0x282)]*_0x117e0e+Math[_0x41b667(0x205)](0x0,_0x17bbc1[_0x41b667(0x282)]-0x1)*_0x5053e7,_0x488c18=_0xc792ab+_0x5bf8da+_0x1defe8[_0x41b667(0x25d)],_0x7b96f3=_0x4e1371==='top'?_0x383f97-_0x31c7bb-_0x4ab299:_0x383f97+_0x117e0e+_0x31c7bb,_0x27729e=_0x7b96f3+_0x4ab299/0x2;_0x4a7482[_0x41b667(0x3c5)](),_0x4a7482[_0x41b667(0x328)](_0x37fcf9,_0x4e1371===_0x41b667(0x3a3)?_0x383f97:_0x383f97+_0x117e0e),_0x4a7482[_0x41b667(0x2f7)](_0x37fcf9,_0x27729e),_0x4a7482['lineTo'](_0x488c18,_0x27729e),_0x17bbc1[_0x41b667(0x3c2)]((_0xc3c2ed,_0x5d194a)=>{let _0xb2f65e=_0x7b96f3+_0x5d194a*(_0x117e0e+_0x5053e7)+_0x117e0e/0x2;_0x4a7482['moveTo'](_0x488c18,_0xb2f65e),_0x4a7482['lineTo'](_0x488c18+_0x5bf8da,_0xb2f65e);}),_0x4a7482[_0x41b667(0x18d)](),_0x17bbc1['forEach']((_0x35f235,_0x25a944)=>{const _0x3f037b=_0x41b667;let _0x100799=_0x7b96f3+_0x25a944*(_0x117e0e+_0x5053e7);Z(_0x4a7482,_0x488c18,_0x100799,_0x5bf8da,_0x117e0e,X[_0x3f037b(0x1e2)]),_0x4a7482[_0x3f037b(0x33c)]=X[_0x3f037b(0x3f9)],_0x4a7482[_0x3f037b(0x29e)](),_0x4a7482[_0x3f037b(0x18d)]();});});}else{let _0x3563ca=_0x181b88['x'],_0x32923b=_0x5a1804+_0x29a6e3,_0x16c683=_0x1defe8[_0x41b95f(0x2ef)],_0x37eaf3=_0x5a1804+_0x29a6e3+_0x16c683,_0x374319=_0x37eaf3+(_0x5c4168['length']-0x1)*(_0x17c012+_0x16c683)+_0x17c012/0x2;_0x4a7482[_0x41b95f(0x328)](_0x3563ca,_0x32923b),_0x4a7482['lineTo'](_0x3563ca,_0x374319),_0x5c4168[_0x41b95f(0x3c2)]((_0x2c841c,_0x2bd038)=>{const _0x578c80=_0x41b95f;let _0x2e4be0=_0x37eaf3+_0x2bd038*(_0x17c012+_0x16c683)+_0x17c012/0x2,_0x27543d=_0x2c841c[_0x578c80(0x164)]===_0x578c80(0x244)?_0x578c80(0x244):_0x578c80(0x33e),_0x31ec9f=_0x27543d===_0x578c80(0x244)?_0x3563ca+_0x1defe8[_0x578c80(0x25d)]:_0x3563ca-_0x1defe8[_0x578c80(0x25d)]-_0x19f3b1,_0x35feaa=_0x27543d===_0x578c80(0x244)?_0x31ec9f:_0x31ec9f+_0x19f3b1;_0x4a7482[_0x578c80(0x328)](_0x3563ca,_0x2e4be0),_0x4a7482[_0x578c80(0x2f7)](_0x35feaa,_0x2e4be0);}),_0x4a7482[_0x41b95f(0x18d)](),_0x5c4168[_0x41b95f(0x3c2)]((_0x21f4d7,_0x4ada3e)=>{const _0x5af5e8=_0x41b95f;let _0x40b631=_0x37eaf3+_0x4ada3e*(_0x17c012+_0x16c683);Z(_0x4a7482,(_0x21f4d7[_0x5af5e8(0x164)]===_0x5af5e8(0x244)?_0x5af5e8(0x244):_0x5af5e8(0x33e))=='right'?_0x3563ca+_0x1defe8[_0x5af5e8(0x25d)]:_0x3563ca-_0x1defe8['branchGap']-_0x19f3b1,_0x40b631,_0x19f3b1,_0x17c012,X[_0x5af5e8(0x1e2)]),_0x4a7482[_0x5af5e8(0x33c)]=X[_0x5af5e8(0x3f9)],_0x4a7482[_0x5af5e8(0x29e)](),_0x4a7482[_0x5af5e8(0x18d)]();}),_0x5c4168[_0x41b95f(0x3c2)]((_0x102ded,_0x429012)=>{const _0x2558bc=_0x41b95f;if(!('children'in _0x102ded)||_0x102ded['children'][_0x2558bc(0x282)]===0x0)return;let _0x5843a4=_0x37eaf3+_0x429012*(_0x17c012+_0x16c683)+_0x17c012/0x2,_0x145c3b=_0x102ded['side']===_0x2558bc(0x244)?_0x2558bc(0x244):_0x2558bc(0x33e),_0x58add7=_0x102ded[_0x2558bc(0x373)][_0x2558bc(0x32e)](0x0,0x2),_0x400d38=_0x58add7['length']*_0x17c012+Math['max'](0x0,_0x58add7[_0x2558bc(0x282)]-0x1)*_0x5053e7,_0x416f20=_0x145c3b===_0x2558bc(0x244)?_0x3563ca+_0x1defe8[_0x2558bc(0x25d)]:_0x3563ca-_0x1defe8['branchGap']-_0x19f3b1,_0x18c21e=_0x145c3b===_0x2558bc(0x244)?_0x416f20+_0x19f3b1+_0x31c7bb:_0x416f20-_0x31c7bb-_0x19f3b1,_0x5ad4fa=_0x5843a4-_0x400d38/0x2,_0x327ba5=_0x145c3b==='right'?_0x416f20+_0x19f3b1:_0x416f20,_0x50bf04=_0x145c3b===_0x2558bc(0x244)?_0x18c21e:_0x18c21e+_0x19f3b1;_0x4a7482['beginPath'](),_0x4a7482['moveTo'](_0x327ba5,_0x5843a4),_0x4a7482[_0x2558bc(0x2f7)](_0x50bf04,_0x5843a4),_0x58add7['forEach']((_0x5528ac,_0x1f4b7f)=>{const _0x2e3d0d=_0x2558bc;let _0x15f0b4=_0x5ad4fa+_0x1f4b7f*(_0x17c012+_0x5053e7)+_0x17c012/0x2;_0x4a7482[_0x2e3d0d(0x328)](_0x50bf04,_0x15f0b4),_0x4a7482[_0x2e3d0d(0x2f7)](_0x145c3b==='right'?_0x18c21e+_0x19f3b1:_0x18c21e,_0x15f0b4);}),_0x4a7482['stroke'](),_0x58add7['forEach']((_0x456d53,_0x550758)=>{const _0x4d59dd=_0x2558bc;let _0x1b8193=_0x5ad4fa+_0x550758*(_0x17c012+_0x5053e7);Z(_0x4a7482,_0x18c21e,_0x1b8193,_0x19f3b1,_0x17c012,X['ghostRadius']),_0x4a7482[_0x4d59dd(0x33c)]=X[_0x4d59dd(0x3f9)],_0x4a7482[_0x4d59dd(0x29e)](),_0x4a7482[_0x4d59dd(0x18d)]();});});}}}else{if(Wn(this[_0x41b95f(0x179)][_0x41b95f(0x2c7)])){var _0x5aa782;let _0x3425f1=(_0x5aa782=this['_state'][_0x41b95f(0x373)])==null?[]:_0x5aa782,_0x51cc34=_0x5a1804+_0x29a6e3,_0x518076=_0x51cc34+_0x31c7bb,_0x2755b6=_0x181b88['x'];if(_0x3425f1[_0x41b95f(0x282)]>0x0){let _0x27dcc4=_0x518076+(_0x3425f1[_0x41b95f(0x282)]-0x1)*(_0x17c012+_0x5053e7)+_0x17c012/0x2;_0x4a7482['beginPath'](),_0x4a7482['moveTo'](_0x2755b6,_0x51cc34),_0x4a7482[_0x41b95f(0x2f7)](_0x2755b6,_0x27dcc4),_0x3425f1['forEach']((_0x4b3424,_0x4694a2)=>{const _0x15c927=_0x41b95f;let _0x120aa6=Kn(_0x4b3424,_0x4694a2,this[_0x15c927(0x179)][_0x15c927(0x2c7)]),_0x20f398=_0x518076+_0x4694a2*(_0x17c012+_0x5053e7),_0x2a3a87=_0x120aa6==='right'?_0x2755b6+_0x31c7bb:_0x2755b6-_0x31c7bb-_0x19f3b1,_0x31741b=_0x20f398+_0x17c012/0x2;_0x4a7482[_0x15c927(0x328)](_0x2755b6,_0x31741b),_0x4a7482[_0x15c927(0x2f7)](_0x120aa6===_0x15c927(0x244)?_0x2a3a87:_0x2a3a87+_0x19f3b1,_0x31741b);}),_0x4a7482[_0x41b95f(0x18d)](),_0x3425f1[_0x41b95f(0x3c2)]((_0x3a862f,_0x389115)=>{const _0x21ddf3=_0x41b95f;let _0x37374e=Kn(_0x3a862f,_0x389115,this[_0x21ddf3(0x179)][_0x21ddf3(0x2c7)]),_0x50aa85=_0x518076+_0x389115*(_0x17c012+_0x5053e7);Z(_0x4a7482,_0x37374e==='right'?_0x2755b6+_0x31c7bb:_0x2755b6-_0x31c7bb-_0x19f3b1,_0x50aa85,_0x19f3b1,_0x17c012,X['ghostRadius']),_0x4a7482[_0x21ddf3(0x33c)]=X[_0x21ddf3(0x3f9)],_0x4a7482[_0x21ddf3(0x29e)](),_0x4a7482['stroke']();});}}else _0x14af3b&&[_0x41b95f(0x3a3),_0x41b95f(0x3f0)][_0x41b95f(0x3c2)](_0x4aa1a9=>{const _0x2006ed=_0x41b95f;let _0x17acdd=_0x26678c[_0x4aa1a9];if(_0x17acdd[_0x2006ed(0x282)]===0x0)return;let _0x202ab1=_0x17acdd[_0x2006ed(0x282)]*_0x19f3b1+Math['max'](0x0,_0x17acdd[_0x2006ed(0x282)]-0x1)*_0x5053e7,_0x3e3f58=_0x181b88['x']-_0x202ab1/0x2,_0x279968=_0x4aa1a9===_0x2006ed(0x3f0)?_0x5a1804+_0x29a6e3:_0x5a1804,_0x386cda=_0x4aa1a9==='bottom'?_0x279968+_0x1defe8[_0x2006ed(0x25d)]:_0x279968-_0x1defe8[_0x2006ed(0x25d)],_0x1fb622=_0x4aa1a9===_0x2006ed(0x3f0)?_0x5a1804+_0x29a6e3+_0x31c7bb:_0x5a1804-_0x31c7bb-_0x17c012;_0x4a7482[_0x2006ed(0x3c5)](),_0x4a7482[_0x2006ed(0x328)](_0x181b88['x'],_0x279968),_0x4a7482[_0x2006ed(0x2f7)](_0x181b88['x'],_0x386cda),_0x17acdd[_0x2006ed(0x282)]>0x1&&(_0x4a7482[_0x2006ed(0x328)](_0x3e3f58+_0x19f3b1/0x2,_0x386cda),_0x4a7482['lineTo'](_0x3e3f58+_0x202ab1-_0x19f3b1/0x2,_0x386cda)),_0x17acdd[_0x2006ed(0x3c2)]((_0x4dce29,_0x504663)=>{const _0x34020b=_0x2006ed;let _0x3e7c59=_0x3e3f58+_0x504663*(_0x19f3b1+_0x5053e7)+_0x19f3b1/0x2;_0x4a7482['moveTo'](_0x3e7c59,_0x386cda),_0x4a7482['lineTo'](_0x3e7c59,_0x4aa1a9===_0x34020b(0x3f0)?_0x1fb622:_0x1fb622+_0x17c012);}),_0x4a7482[_0x2006ed(0x18d)](),_0x17acdd[_0x2006ed(0x3c2)]((_0x1f770b,_0x241575)=>{const _0x9efbad=_0x2006ed;Z(_0x4a7482,_0x3e3f58+_0x241575*(_0x19f3b1+_0x5053e7),_0x1fb622,_0x19f3b1,_0x17c012,X['ghostRadius']),_0x4a7482[_0x9efbad(0x33c)]=X[_0x9efbad(0x3f9)],_0x4a7482[_0x9efbad(0x29e)](),_0x4a7482[_0x9efbad(0x18d)]();});});}(_0x14af3b||Wn(this['_state']['structureKind'])||Gn(this['_state'][_0x41b95f(0x2c7)])?[]:[_0x41b95f(0x33e),'right'])['forEach'](_0x16d7c5=>{const _0x46f3e8=_0x41b95f;let _0x4c34b6=_0x26678c[_0x16d7c5];if(_0x4c34b6[_0x46f3e8(0x282)]===0x0)return;let _0x448ec2=_0x4c34b6[_0x46f3e8(0x282)]*_0x17c012+Math['max'](0x0,_0x4c34b6['length']-0x1)*_0x5053e7,_0x50219c=_0x181b88['y']-_0x448ec2/0x2,_0x118c9b=_0x16d7c5===_0x46f3e8(0x244)?_0x2ceb81+_0x42bc3d:_0x2ceb81,_0x3d56c2=_0x16d7c5==='right'?_0x118c9b+_0x1defe8[_0x46f3e8(0x25d)]:_0x118c9b-_0x1defe8[_0x46f3e8(0x25d)],_0x28bb7e=_0x16d7c5===_0x46f3e8(0x244)?_0x2ceb81+_0x42bc3d+_0x31c7bb:_0x2ceb81-_0x31c7bb-_0x19f3b1;_0x4a7482[_0x46f3e8(0x3c5)](),_0x4a7482[_0x46f3e8(0x328)](_0x118c9b,_0x181b88['y']),_0x4a7482[_0x46f3e8(0x2f7)](_0x3d56c2,_0x181b88['y']),_0x4c34b6['length']>0x1&&(_0x4a7482[_0x46f3e8(0x328)](_0x3d56c2,_0x50219c+_0x17c012/0x2),_0x4a7482[_0x46f3e8(0x2f7)](_0x3d56c2,_0x50219c+_0x448ec2-_0x17c012/0x2)),_0x4c34b6[_0x46f3e8(0x3c2)]((_0x504e9a,_0x24d34b)=>{const _0x263410=_0x46f3e8;let _0x1863f9=_0x50219c+_0x24d34b*(_0x17c012+_0x5053e7)+_0x17c012/0x2;_0x4a7482[_0x263410(0x328)](_0x3d56c2,_0x1863f9),_0x4a7482[_0x263410(0x2f7)](_0x16d7c5===_0x263410(0x244)?_0x28bb7e:_0x28bb7e+_0x19f3b1,_0x1863f9);}),_0x4a7482[_0x46f3e8(0x18d)](),_0x4c34b6['forEach']((_0x3140fc,_0x18c42b)=>{const _0x400e99=_0x46f3e8;let _0x3377cb=_0x50219c+_0x18c42b*(_0x17c012+_0x5053e7);Z(_0x4a7482,_0x28bb7e,_0x3377cb,_0x19f3b1,_0x17c012,X[_0x400e99(0x1e2)]),_0x4a7482[_0x400e99(0x33c)]=X[_0x400e99(0x3f9)],_0x4a7482['fill'](),_0x4a7482['stroke']();});}),Z(_0x4a7482,_0x2ceb81,_0x5a1804,_0x42bc3d,_0x29a6e3,X[_0x41b95f(0x172)]),_0x4a7482[_0x41b95f(0x33c)]=X[_0x41b95f(0x265)],_0x4a7482['fill'](),_0x4a7482['stroke'](),_0x4a7482['fillStyle']=X[_0x41b95f(0x255)],_0x4a7482[_0x41b95f(0x32f)]=Bt(X['rootFontWeight'],X[_0x41b95f(0x27e)],_0xff4d1b),_0x4a7482[_0x41b95f(0x2d4)]=_0x41b95f(0x2cc),_0x4a7482[_0x41b95f(0x21e)]='middle';let _0x17a4b7=X['textPaddingScreen']/_0xff4d1b;return _0x4a7482[_0x41b95f(0x17f)](_0x5ce379,_0x181b88['x'],_0x181b88['y'],Math[_0x41b95f(0x205)](0x1,_0x42bc3d-_0x17a4b7*0x2)),_0x4a7482['restore'](),this[_0x41b95f(0x29f)](!0x1),this;}};const Yn={'children':[{'text':_0x5ce379,'orderKey':_0x3cc2d7(0x0),'side':'right'},{'text':_0x5ce379,'orderKey':_0x3cc2d7(0x1),'side':_0x4e28b3(0x244)},{'text':_0x5ce379,'orderKey':_0x3cc2d7(0x2),'side':_0x4e28b3(0x244)}]};var Xn=class extends _0x45f66c{constructor(..._0x25d7ed){const _0x2c9dfe=_0x4e28b3;super(..._0x25d7ed),K(this,_0x2c9dfe(0x1a7),Yn);}[_0x4e28b3(0x3b7)](_0x2ca8dc){const _0x4ef367=_0x4e28b3;var _0x46355b,_0x57b1d5;let _0xd71005=(_0x46355b=_0x2ca8dc==null?void 0x0:_0x2ca8dc[_0x4ef367(0x373)])==null?_0x2ca8dc==null||(_0x57b1d5=_0x2ca8dc['blueprint'])==null?void 0x0:_0x57b1d5['root'][_0x4ef367(0x373)]:_0x46355b;this[_0x4ef367(0x1a7)]={'rootText':_0x2ca8dc==null?void 0x0:_0x2ca8dc[_0x4ef367(0x267)],'structureKind':_0x2ca8dc==null?void 0x0:_0x2ca8dc['structureKind'],'branchLineType':_0x2ca8dc==null?void 0x0:_0x2ca8dc[_0x4ef367(0x191)],'children':this[_0x4ef367(0x178)](_0xd71005,_0x2ca8dc==null?void 0x0:_0x2ca8dc['structureKind']),'blueprint':_0x2ca8dc!=null&&_0x2ca8dc['blueprint']?this[_0x4ef367(0x2cf)](_0x2ca8dc['blueprint']):void 0x0};}[_0x4e28b3(0x2d7)](){const _0x4dc205=_0x4e28b3;var _0x3d8dfa;return{'rootText':this['_template']['rootText'],'structureKind':this[_0x4dc205(0x1a7)][_0x4dc205(0x2c7)],'branchLineType':this[_0x4dc205(0x1a7)]['branchLineType'],'children':(_0x3d8dfa=this[_0x4dc205(0x1a7)][_0x4dc205(0x373)])==null?void 0x0:_0x3d8dfa['map'](_0x45f1b9=>({..._0x45f1b9})),'blueprint':this['_template']['blueprint']?this[_0x4dc205(0x2cf)](this[_0x4dc205(0x1a7)][_0x4dc205(0x3a2)]):void 0x0};}[_0x4e28b3(0x2cf)](_0x2f5dce){const _0x179d4c=_0x4e28b3;return{'title':_0x2f5dce[_0x179d4c(0x392)],'root':this['_cloneBlueprintNode'](_0x2f5dce[_0x179d4c(0x407)])};}['_cloneBlueprintNode'](_0x568817){const _0x33be07=_0x4e28b3;return{..._0x568817,'foreignAttributes':_0x568817['foreignAttributes']?{..._0x568817[_0x33be07(0x283)]}:void 0x0,'children':_0x568817['children'][_0x33be07(0x1cb)](_0x356a13=>this[_0x33be07(0x3e5)](_0x356a13))};}[_0x4e28b3(0x178)](_0x25e58b,_0x5ba321){const _0x585850=_0x4e28b3;let _0x32caa2=!_0x25e58b,_0x3f6627=_0x25e58b==null?Yn[_0x585850(0x373)]:_0x25e58b;return _0x3f6627==null?void 0x0:_0x3f6627[_0x585850(0x1cb)]((_0x40f370,_0x4def32)=>{const _0x15c5d2=_0x585850;var _0x121732;return{..._0x40f370,'text':(_0x121732=_0x40f370[_0x15c5d2(0x288)])==null?_0x5ce379:_0x121732,'side':this[_0x15c5d2(0x1ff)](_0x40f370[_0x15c5d2(0x164)],_0x4def32,_0x5ba321,_0x32caa2)};});}[_0x4e28b3(0x1ff)](_0x461fa2,_0x21631b,_0xef3d29,_0x3bea7a){const _0x2f7d34=_0x4e28b3;return _0xef3d29===_0x2f7d34(0x351)?_0x3bea7a||_0x461fa2==null?_0x2f7d34(0x3f0):_0x461fa2:_0xef3d29==='tree-left'?_0x3bea7a||_0x461fa2==null?_0x2f7d34(0x33e):_0x461fa2:_0xef3d29===_0x2f7d34(0x2d8)?_0x3bea7a||_0x461fa2==null?_0x2f7d34(0x244):_0x461fa2:_0xef3d29===_0x2f7d34(0x400)?_0x3bea7a||_0x461fa2==null?_0x21631b%0x2==0x0?_0x2f7d34(0x33e):'right':_0x461fa2:_0xef3d29===_0x2f7d34(0x28b)?_0x3bea7a||_0x461fa2==null?_0x21631b%0x2==0x0?_0x2f7d34(0x3a3):_0x2f7d34(0x3f0):_0x461fa2:_0xef3d29===_0x2f7d34(0x3a4)&&(_0x3bea7a||_0x461fa2==null)?_0x21631b%0x2==0x0?_0x2f7d34(0x33e):_0x2f7d34(0x244):_0x461fa2;}};function Zn(_0xea3938,_0x4cec13){const _0x5bab85=_0x4e28b3;let _0x9eba84=Number[_0x5bab85(0x2de)](_0x4cec13[_0x5bab85(0x1be)])&&_0x4cec13[_0x5bab85(0x1be)]>0x0?_0x4cec13['zoomRatio']:0x1;return{'x':Math['round']((_0xea3938['offsetX']-_0x4cec13['panOffset']['x'])/_0x9eba84),'y':Math[_0x5bab85(0x414)]((_0xea3938[_0x5bab85(0x1b0)]-_0x4cec13['panOffset']['y'])/_0x9eba84)};}function Qn(_0x3d6506){const _0x4e21ae=_0x4e28b3;var _0x1b9c15;if(_0x3d6506!=null&&_0x3d6506[_0x4e21ae(0x29d)]){_0x3d6506['dispose']();return;}_0x3d6506==null||(_0x1b9c15=_0x3d6506[_0x4e21ae(0x1ee)])==null||_0x1b9c15[_0x4e21ae(0x1e1)](_0x3d6506);}function $n(_0x3d027a){const _0x34754d=_0x4e28b3;var _0x5ea038;return _0x3d027a[_0x34754d(0x306)]===_0x138a65[_0x34754d(0x2a7)]&&((_0x5ea038=_0x3d027a['pendingInsert'])==null?void 0x0:_0x5ea038['type'])===_0x138a65['MindMap'];}let er=class extends _0x43afa6{constructor(_0x5eeed7,_0x3ddb9c,_0x1e84af,_0x3ec877,_0xd9d07c,_0x3a879c,_0x17ace1){const _0x29f8f8=_0x4e28b3;super(),this['_renderContext']=_0x5eeed7,this['_instanceSrv']=_0x3ddb9c,this[_0x29f8f8(0x32a)]=_0x1e84af,this[_0x29f8f8(0x19a)]=_0x3ec877,this['_insertStateService']=_0xd9d07c,this[_0x29f8f8(0x1e3)]=_0x3a879c,this['_boardTextEditingService']=_0x17ace1,K(this,_0x29f8f8(0x37c),null),K(this,_0x29f8f8(0x1ac),null),this[_0x29f8f8(0x169)]();}[_0x4e28b3(0x169)](){const _0x10600b=_0x4e28b3;var _0x26467a;let {scene:_0x18e8e6,unitId:_0x8ebbae}=this[_0x10600b(0x1f3)],_0xfb6b6a=this[_0x10600b(0x291)][_0x10600b(0x3c0)](_0x8ebbae,_0x2934fe[_0x10600b(0x302)]);if(!_0xfb6b6a)return;let _0x37da36=(_0x26467a=_0x18e8e6['onPointerMove$'])==null?void 0x0:_0x26467a['subscribeEvent']((_0x2b7def,_0x294d25)=>{const _0xfb15b1=_0x10600b;this[_0xfb15b1(0x3a9)](_0x2b7def,_0x294d25);}),_0x27695b=_0x18e8e6[_0x10600b(0x33d)][_0x10600b(0x36e)]((_0xdeb4ab,_0x2613a7)=>{const _0x4ea559=_0x10600b;this[_0x4ea559(0x1c1)](_0xfb6b6a,_0xdeb4ab,_0x2613a7);});this[_0x10600b(0x40b)](_0x288fdc(()=>Qn(_0x37da36))),this[_0x10600b(0x40b)](_0x288fdc(()=>Qn(_0x27695b)));let _0x1992d5=this[_0x10600b(0x32a)][_0x10600b(0x27f)][_0x10600b(0x345)](()=>{const _0x17b3bd=_0x10600b;this[_0x17b3bd(0x32b)](),this[_0x17b3bd(0x406)]();});this[_0x10600b(0x40b)](_0x288fdc(()=>Qn(_0x1992d5))),this[_0x10600b(0x40b)](_0x288fdc(()=>{const _0x536a5e=_0x10600b;_0x18e8e6[_0x536a5e(0x195)](),this['_removePreviewObject']();})),this['_syncSceneInputMode'](),this['_syncPreviewObject']();}[_0x4e28b3(0x32b)](){const _0x1b70cc=_0x4e28b3;$n(this[_0x1b70cc(0x32a)][_0x1b70cc(0x15a)]())?this[_0x1b70cc(0x1f3)][_0x1b70cc(0x171)][_0x1b70cc(0x3f8)]():this[_0x1b70cc(0x1f3)][_0x1b70cc(0x171)][_0x1b70cc(0x195)]();}[_0x4e28b3(0x406)](){const _0x3c7f5f=_0x4e28b3;var _0x426bd6,_0x49a3c8;let _0x4cb63a=this[_0x3c7f5f(0x32a)]['getState']();if(!$n(_0x4cb63a)){this[_0x3c7f5f(0x2da)]();return;}let _0x5a00c1=this['_ensurePreviewObject'](),_0x25e8ef=this['_insertStateService'][_0x3c7f5f(0x2d7)]();_0x5a00c1['updateState']({'point':this[_0x3c7f5f(0x1ac)],'structureKind':_0x25e8ef['structureKind'],'children':_0x25e8ef['children'],'blueprint':_0x25e8ef['blueprint'],'zoomRatio':_0x4cb63a[_0x3c7f5f(0x1be)]}),(_0x426bd6=(_0x49a3c8=this['_renderContext'][_0x3c7f5f(0x171)])['makeDirty'])==null||_0x426bd6[_0x3c7f5f(0x1e1)](_0x49a3c8,!0x0);}[_0x4e28b3(0x370)](){const _0x11ac32=_0x4e28b3;var _0x58442f,_0x5b2fca;if(this[_0x11ac32(0x37c)])return this['_previewObject'];let _0x48a60d=this[_0x11ac32(0x31b)][_0x11ac32(0x2d7)](),_0x14c8ca=new Jn(Vn,{'point':this[_0x11ac32(0x1ac)],'structureKind':_0x48a60d[_0x11ac32(0x2c7)],'children':_0x48a60d[_0x11ac32(0x373)],'blueprint':_0x48a60d[_0x11ac32(0x3a2)],'zoomRatio':this[_0x11ac32(0x32a)][_0x11ac32(0x15a)]()['zoomRatio']});return this[_0x11ac32(0x37c)]=_0x14c8ca,(_0x58442f=(_0x5b2fca=this['_renderContext'][_0x11ac32(0x171)])[_0x11ac32(0x153)])==null||_0x58442f[_0x11ac32(0x1e1)](_0x5b2fca,_0x14c8ca,Hn),_0x14c8ca;}[_0x4e28b3(0x2da)](){const _0x587e5c=_0x4e28b3;var _0x1d4ba2,_0x5f3f24,_0x10ff31,_0x2efed0;if(!this['_previewObject']){this['_lastPoint']=null;return;}(_0x1d4ba2=(_0x5f3f24=this['_renderContext'][_0x587e5c(0x171)])[_0x587e5c(0x1bc)])==null||_0x1d4ba2[_0x587e5c(0x1e1)](_0x5f3f24,[this[_0x587e5c(0x37c)]]),this[_0x587e5c(0x37c)]=null,this[_0x587e5c(0x1ac)]=null,(_0x10ff31=(_0x2efed0=this[_0x587e5c(0x1f3)][_0x587e5c(0x171)])[_0x587e5c(0x29f)])==null||_0x10ff31[_0x587e5c(0x1e1)](_0x2efed0,!0x0);}[_0x4e28b3(0x3a7)](_0x3849d3){const _0x457ac8=_0x4e28b3;let _0x27ba35=this[_0x457ac8(0x32a)]['getState']();return Zn(_0x3849d3,{'panOffset':_0x27ba35[_0x457ac8(0x2c8)],'zoomRatio':_0x27ba35[_0x457ac8(0x1be)]});}[_0x4e28b3(0x193)](_0x363f52){const _0x1aad34=_0x4e28b3;return{'left':Math[_0x1aad34(0x414)](_0x363f52['x']-_0x1163ab[_0x1aad34(0x227)]/0x2),'top':Math['round'](_0x363f52['y']-_0x1163ab[_0x1aad34(0x1a9)]/0x2)};}[_0x4e28b3(0x3a9)](_0x4538ee,_0x12efce){const _0x26950c=_0x4e28b3;$n(this['_stateService'][_0x26950c(0x15a)]())&&(this['_lastPoint']=this[_0x26950c(0x3a7)](_0x4538ee),this['_syncPreviewObject'](),_0x12efce['stopPropagation']());}[_0x4e28b3(0x1c1)](_0x2243d2,_0x1894ed,_0x24fff5){const _0x2618f2=_0x4e28b3;var _0x12b23b,_0x272725;let _0x577aaf=this[_0x2618f2(0x32a)][_0x2618f2(0x15a)](),_0x3d1f7c=(_0x12b23b=_0x1894ed[_0x2618f2(0x3c7)])==null?0x0:_0x12b23b;if(!$n(_0x577aaf)||_0x3d1f7c!==0x0)return;let _0x95d353=this[_0x2618f2(0x3a7)](_0x1894ed),_0x564440=this[_0x2618f2(0x193)](_0x95d353),_0x5b3c21=this[_0x2618f2(0x31b)][_0x2618f2(0x2d7)](),_0x490c4d=_0x257cfe(0x6),_0x3a3354=_0x2243d2[_0x2618f2(0x3be)](),_0x3b469b=this[_0x2618f2(0x19a)]['executeCommand'](_0xa00b3d['id'],{'unitId':this[_0x2618f2(0x1f3)][_0x2618f2(0x204)],'subUnitId':_0x3a3354,'left':_0x564440[_0x2618f2(0x33e)],'top':_0x564440[_0x2618f2(0x3a3)],'rootNodeId':_0x490c4d,'rootText':_0x5b3c21['rootText'],'structureKind':_0x5b3c21[_0x2618f2(0x2c7)],'branchLineType':_0x5b3c21[_0x2618f2(0x191)],'children':_0x5b3c21[_0x2618f2(0x373)],'blueprint':_0x5b3c21[_0x2618f2(0x3a2)]});Promise[_0x2618f2(0x1c8)](_0x3b469b)['then'](_0x38a4f9=>{const _0x1eba2a=_0x2618f2;if(!_0x38a4f9)return;let _0x526c5e={'unitId':this[_0x1eba2a(0x1f3)][_0x1eba2a(0x204)],'subUnitId':_0x3a3354};this[_0x1eba2a(0x1e3)]['selectElements'](_0x526c5e,[_0x490c4d],_0x490c4d),this['_boardTextEditingService'][_0x1eba2a(0x284)](),this['_boardTextEditingService'][_0x1eba2a(0x2b3)]({..._0x526c5e,'shapeId':_0x490c4d,'shapeKey':_0x239fd6(_0x526c5e['unitId'],_0x490c4d),'visible':!0x0});}),this[_0x2618f2(0x32a)][_0x2618f2(0x24f)](_0x138a65[_0x2618f2(0x35b)]),_0x24fff5[_0x2618f2(0x372)](),(_0x272725=_0x1894ed[_0x2618f2(0x2a0)])==null||_0x272725[_0x2618f2(0x1e1)](_0x1894ed);}};er=J([q(0x1,_0x34a716),q(0x2,_0x4b72d1),q(0x3,_0x4c9d00),q(0x4,_0x19f927(Xn)),q(0x5,_0x4ad25d),q(0x6,_0x19f927(_0x4aee4d))],er);var tr=class extends _0x45f66c{constructor(..._0x364703){const _0x531467=_0x4e28b3;super(..._0x364703),K(this,'_refresh$',new _0x168ca7()),K(this,_0x531467(0x3ee),this[_0x531467(0x151)][_0x531467(0x1a1)]());}['notify'](_0x10e3ff){const _0x3f9feb=_0x4e28b3;this[_0x3f9feb(0x151)][_0x3f9feb(0x390)](_0x10e3ff);}[_0x4e28b3(0x29d)](){const _0x23fbd3=_0x4e28b3;this[_0x23fbd3(0x151)][_0x23fbd3(0x2a4)](),super['dispose']();}};function nr(_0x47f2fa){const _0x3398ed=_0x4e28b3;return typeof _0x47f2fa==_0x3398ed(0x1dd)&&Number['isFinite'](_0x47f2fa)&&_0x47f2fa>0x0;}function rr(_0x1a6ef1,_0x473232,_0x33fed9){const _0x56353f=_0x4e28b3;var _0x181df9;let _0x13ccad=_0x1a6ef1[_0x473232],_0x1079d5=_0x130c96(_0x13ccad==null?void 0x0:_0x13ccad[_0x56353f(0x409)]);if(!_0x13ccad||!_0x1079d5)return null;let _0x371ba5=_0x387b00(_0x13ccad,_0x33fed9);if(!_0x371ba5)return null;let _0x2c04f2=(_0x181df9=_0x13ccad['transform'])==null?_0x13ccad['element']['transform']:_0x181df9;return _0x4637d2({..._0x1a6ef1,[_0x473232]:{..._0x13ccad,'transform':{..._0x2c04f2,'width':_0x371ba5[_0x56353f(0x1b5)],'height':_0x371ba5['height']},'element':{..._0x13ccad[_0x56353f(0x409)],'transform':{..._0x13ccad['element'][_0x56353f(0x2eb)],'width':_0x371ba5[_0x56353f(0x1b5)],'height':_0x371ba5[_0x56353f(0x323)]}}}},_0x1079d5[_0x56353f(0x3fe)]);}let ir=class extends _0x43afa6{constructor(_0x432781,_0x48e894,_0x440f9c,_0x5b1116,_0x3fa209){const _0x468202=_0x4e28b3;super(),this[_0x468202(0x1f3)]=_0x432781,this['_intrinsicSizeService']=_0x48e894,this['_boardElementService']=_0x440f9c,this[_0x468202(0x39d)]=_0x5b1116,this['_previewRefreshService']=_0x3fa209,K(this,_0x468202(0x3cf),null),K(this,_0x468202(0x256),{'match':_0x397108=>_0x397108[_0x468202(0x204)]===this[_0x468202(0x1f3)][_0x468202(0x204)]&&!!_0x130c96(_0x397108[_0x468202(0x409)]),'resolveHostSize':_0x56ee75=>this[_0x468202(0x294)](_0x56ee75),'previewHostSize':_0x5a391d=>this[_0x468202(0x174)](_0x5a391d),'updateHostSize':_0x2cc948=>this['_updateHostSize'](_0x2cc948)}),this['disposeWithMe'](this['_intrinsicSizeService'][_0x468202(0x229)](this['_provider'])),this[_0x468202(0x30d)](),this['disposeWithMe'](_0x288fdc(()=>this[_0x468202(0x3d0)]()));}['_updateHostSize'](_0x56496c){const _0x1ada38=_0x4e28b3;return this[_0x1ada38(0x174)](_0x56496c);}[_0x4e28b3(0x174)](_0x37dadd){const _0x6c77b6=_0x4e28b3;var _0x3271fa;let _0x52d682=this['_resolveHostSize'](_0x37dadd);if(!_0x52d682)return!0x1;let _0x1c8d5e=(_0x3271fa=_0x37dadd['elementData'][_0x6c77b6(0x2eb)])==null?_0x37dadd[_0x6c77b6(0x25a)][_0x6c77b6(0x409)][_0x6c77b6(0x2eb)]:_0x3271fa;return!this[_0x6c77b6(0x3cf)]&&_0x1c8d5e[_0x6c77b6(0x1b5)]===_0x52d682[_0x6c77b6(0x1b5)]&&_0x1c8d5e[_0x6c77b6(0x323)]===_0x52d682[_0x6c77b6(0x323)]||this['_syncLayoutPreview'](_0x37dadd,_0x52d682),!0x0;}[_0x4e28b3(0x294)](_0x5e3c06){const _0x1f7529=_0x4e28b3;return!nr(_0x5e3c06[_0x1f7529(0x1f5)]['width'])||!nr(_0x5e3c06[_0x1f7529(0x1f5)][_0x1f7529(0x323)])?null:_0x387b00(_0x5e3c06[_0x1f7529(0x25a)],{'width':_0x5e3c06[_0x1f7529(0x1f5)][_0x1f7529(0x1b5)],'height':_0x5e3c06[_0x1f7529(0x1f5)][_0x1f7529(0x323)]});}['_initEditingRestore'](){const _0x5c7853=_0x4e28b3;this[_0x5c7853(0x40b)](_0x288fdc(this[_0x5c7853(0x39d)][_0x5c7853(0x375)][_0x5c7853(0x34f)](_0x362352(this[_0x5c7853(0x2a2)]))[_0x5c7853(0x345)](_0x3ae765=>{const _0xc54e67=_0x5c7853;_0x3ae765||this[_0xc54e67(0x3d0)]();})));}[_0x4e28b3(0x2d0)](_0x12e58b,_0x77a0f7){const _0x2058f3=_0x4e28b3;var _0x7be07f;let _0x27bba3=this[_0x2058f3(0x234)]['getElementData'](_0x12e58b['params'][_0x2058f3(0x204)],_0x12e58b[_0x2058f3(0x1f5)][_0x2058f3(0x1e8)]),_0x111fce=rr(_0x27bba3,_0x12e58b[_0x2058f3(0x1f5)][_0x2058f3(0x26b)],_0x77a0f7),_0x5dd338=_0x130c96((_0x7be07f=_0x27bba3[_0x12e58b[_0x2058f3(0x1f5)][_0x2058f3(0x26b)]])==null?void 0x0:_0x7be07f[_0x2058f3(0x409)]);!_0x111fce||!_0x5dd338||(this[_0x2058f3(0x3cf)]={'unitId':_0x12e58b['params'][_0x2058f3(0x204)],'subUnitId':_0x12e58b[_0x2058f3(0x1f5)]['subUnitId'],'scopeId':_0x5dd338[_0x2058f3(0x3fe)]},this[_0x2058f3(0x276)](_0x111fce,_0x5dd338['structureScopeId'])&&this[_0x2058f3(0x307)][_0x2058f3(0x260)]({'unitId':_0x12e58b['params'][_0x2058f3(0x204)],'subUnitId':_0x12e58b['params'][_0x2058f3(0x1e8)],'nodeId':_0x12e58b[_0x2058f3(0x1f5)][_0x2058f3(0x26b)],'scopeId':_0x5dd338[_0x2058f3(0x3fe)]}));}[_0x4e28b3(0x3d0)](){const _0x3f417b=_0x4e28b3;let _0x5b90cb=this[_0x3f417b(0x3cf)];if(!_0x5b90cb)return;this[_0x3f417b(0x3cf)]=null;let _0x43d7fb=this['_boardElementService']['getElementData'](_0x5b90cb[_0x3f417b(0x204)],_0x5b90cb[_0x3f417b(0x1e8)]);this[_0x3f417b(0x276)](_0x43d7fb,_0x5b90cb[_0x3f417b(0x38b)])&&this[_0x3f417b(0x307)][_0x3f417b(0x260)]({'unitId':_0x5b90cb[_0x3f417b(0x204)],'subUnitId':_0x5b90cb[_0x3f417b(0x1e8)],'nodeId':_0x5b90cb[_0x3f417b(0x38b)],'scopeId':_0x5b90cb[_0x3f417b(0x38b)]});}[_0x4e28b3(0x276)](_0x577240,_0x77d3e7){const _0x14abed=_0x4e28b3;let _0x450d96=!0x1;if(Object[_0x14abed(0x326)](_0x577240)[_0x14abed(0x3c2)](_0x2d1607=>{const _0x133222=_0x14abed;var _0x52605f;let _0x2b9002=_0x130c96(_0x2d1607[_0x133222(0x409)]),_0x52cb7e=(_0x52605f=_0x2d1607['element'][_0x133222(0x3f3)])==null?void 0x0:_0x52605f['structured'];if(_0x2d1607[_0x133222(0x404)]!==_0x77d3e7&&(_0x2b9002==null?void 0x0:_0x2b9002[_0x133222(0x3fe)])!==_0x77d3e7&&(_0x52cb7e==null?void 0x0:_0x52cb7e[_0x133222(0x3fe)])!==_0x77d3e7)return;let _0x14beb8=this[_0x133222(0x210)](_0x2d1607[_0x133222(0x404)]);_0x14beb8&&(_0x450d96=_0x7e58a4(_0x14beb8,_0x2d1607,{'elementData':_0x577240,'unitId':this[_0x133222(0x1f3)]['unitId']})||_0x450d96);}),_0x450d96){var _0x1ec787,_0x555c8a;this[_0x14abed(0x1f3)][_0x14abed(0x171)][_0x14abed(0x29f)](!0x0),(_0x1ec787=(_0x555c8a=this['_renderContext'][_0x14abed(0x171)])['requestRender'])==null||_0x1ec787[_0x14abed(0x1e1)](_0x555c8a);}return _0x450d96;}[_0x4e28b3(0x210)](_0x59db74){const _0x75e842=_0x4e28b3;var _0x23a0f6,_0x30dcbd,_0x228ea4;let _0x5f36bc=_0x239fd6(this['_renderContext'][_0x75e842(0x204)],_0x59db74),_0x32f929=this['_renderContext'][_0x75e842(0x171)];return(_0x23a0f6=(_0x30dcbd=(_0x228ea4=_0x32f929[_0x75e842(0x24c)])==null?void 0x0:_0x228ea4[_0x75e842(0x1e1)](_0x32f929,_0x5f36bc))==null?this[_0x75e842(0x1f3)]['scene']['getObject'](_0x5f36bc):_0x30dcbd)==null?null:_0x23a0f6;}};ir=J([q(0x1,_0x19f927(_0x38e758)),q(0x2,_0x19f927(_0x5af7fa)),q(0x3,_0x19f927(_0x4aee4d)),q(0x4,_0x19f927(tr))],ir);const $={'radius':0x12,'addChildRadius':0xe,'siblingHoverRadius':0xa,'siblingDotRadius':0x5,'siblingDotGap':0x3,'gap':0xa,'collapsePlusMinDistance':0x2c,'primaryColor':Y['primaryColor'],'surfaceColor':Y[_0x4e28b3(0x3c4)],'borderWidth':0x2,'glyphSize':0x8,'addChildGlyphSize':0x6,'siblingGlyphSize':5.5,'glyphWidth':2.4,'glyphHoverWidth':0x3,'badgeFontWeight':0x258,'badgeFontSize':0x12,'fontFamily':Y[_0x4e28b3(0x31d)]};function ar(_0x36f253){const _0x32743b=_0x4e28b3;let _0x1f10a9=$['radius'],_0x178c08=$[_0x32743b(0x1f2)],_0x525d4c=$[_0x32743b(0x1d0)],_0xb99c1c=$[_0x32743b(0x298)],_0x5cdcbc=$[_0x32743b(0x1da)],_0x24ce45=_0x5cdcbc+$[_0x32743b(0x270)],_0x286ab7=$[_0x32743b(0x2fa)],_0x13328b=_0x36f253[_0x32743b(0x27c)]['top']+_0x36f253[_0x32743b(0x27c)][_0x32743b(0x323)]/0x2,_0x763e17=_0x36f253[_0x32743b(0x27c)]['left']+_0x36f253[_0x32743b(0x27c)][_0x32743b(0x1b5)]/0x2,_0xf48925=_0x36f253[_0x32743b(0x27c)][_0x32743b(0x33e)]-_0x1f10a9-_0xb99c1c,_0xa55eb2=_0x36f253[_0x32743b(0x27c)]['left']+_0x36f253[_0x32743b(0x27c)][_0x32743b(0x1b5)]+_0x1f10a9+_0xb99c1c,_0x199b52=_0x36f253['bounds'][_0x32743b(0x3a3)]-_0x1f10a9-_0xb99c1c,_0x511234=_0x36f253[_0x32743b(0x27c)][_0x32743b(0x3a3)]+_0x36f253[_0x32743b(0x27c)][_0x32743b(0x323)]+_0x1f10a9+_0xb99c1c,_0x58e2e1=_0x36f253[_0x32743b(0x27c)][_0x32743b(0x33e)]-_0x178c08-_0xb99c1c,_0x1122e9=_0x36f253[_0x32743b(0x27c)][_0x32743b(0x33e)]+_0x36f253[_0x32743b(0x27c)][_0x32743b(0x1b5)]+_0x178c08+_0xb99c1c,_0x59d73f=_0x36f253['bounds'][_0x32743b(0x3a3)]-_0x178c08-_0xb99c1c,_0x41b97f=_0x36f253['bounds'][_0x32743b(0x3a3)]+_0x36f253[_0x32743b(0x27c)]['height']+_0x178c08+_0xb99c1c,_0x2b1646=[],_0x197fc9=_0x36f253[_0x32743b(0x164)]==='top'||_0x36f253[_0x32743b(0x164)]===_0x32743b(0x3f0),_0xbdf053=_0x197fc9?_0x763e17:_0x36f253[_0x32743b(0x164)]===_0x32743b(0x33e)?_0xf48925:_0xa55eb2,_0x3460a9=_0x197fc9?_0x36f253['side']==='top'?_0x199b52:_0x511234:_0x13328b;if(_0x36f253[_0x32743b(0x161)]&&_0x36f253[_0x32743b(0x165)]>0x0)return _0x2b1646[_0x32743b(0x251)]({'kind':_0x32743b(0x1b3),'x':_0xbdf053,'y':_0x3460a9,'radius':_0x1f10a9,'badgeCount':_0x36f253['collapsedDescendantCount']}),_0x2b1646;if(_0x36f253[_0x32743b(0x37e)]){var _0x41607e;((_0x41607e=_0x36f253[_0x32743b(0x3df)])==null?_0x197fc9?['top',_0x32743b(0x3f0)]:[_0x32743b(0x33e),_0x32743b(0x244)]:_0x41607e)[_0x32743b(0x3c2)](_0x4736e3=>{const _0x13b58c=_0x32743b;_0x4736e3===_0x13b58c(0x3a3)?_0x2b1646['push']({'kind':_0x13b58c(0x286),'x':_0x763e17,'y':_0x59d73f,'radius':_0x178c08}):_0x4736e3===_0x13b58c(0x3f0)?_0x2b1646[_0x13b58c(0x251)]({'kind':'add-child-bottom','x':_0x763e17,'y':_0x41b97f,'radius':_0x178c08}):_0x4736e3===_0x13b58c(0x33e)?_0x2b1646['push']({'kind':_0x13b58c(0x159),'x':_0x58e2e1,'y':_0x13328b,'radius':_0x178c08}):_0x2b1646[_0x13b58c(0x251)]({'kind':_0x13b58c(0x340),'x':_0x1122e9,'y':_0x13328b,'radius':_0x178c08});});}else _0x2b1646[_0x32743b(0x251)]({'kind':_0x36f253[_0x32743b(0x164)]===_0x32743b(0x33e)?_0x32743b(0x159):_0x36f253[_0x32743b(0x164)]===_0x32743b(0x3a3)?_0x32743b(0x286):_0x36f253[_0x32743b(0x164)]===_0x32743b(0x3f0)?_0x32743b(0x275):'add-child-right','x':_0x197fc9?_0x763e17:_0x36f253['side']==='left'?_0x58e2e1:_0x1122e9,'y':_0x197fc9?_0x36f253[_0x32743b(0x164)]===_0x32743b(0x3a3)?_0x59d73f:_0x41b97f:_0x13328b,'radius':_0x178c08}),_0x197fc9?(_0x2b1646[_0x32743b(0x251)]({'kind':_0x32743b(0x388),'placement':_0x32743b(0x22e),'x':_0x36f253['bounds']['left']-_0x24ce45,'y':_0x13328b,'radius':_0x525d4c,'visualRadius':_0x5cdcbc}),_0x2b1646[_0x32743b(0x251)]({'kind':_0x32743b(0x330),'placement':_0x32743b(0x2f1),'x':_0x36f253['bounds'][_0x32743b(0x33e)]+_0x36f253[_0x32743b(0x27c)][_0x32743b(0x1b5)]+_0x24ce45,'y':_0x13328b,'radius':_0x525d4c,'visualRadius':_0x5cdcbc})):(_0x2b1646[_0x32743b(0x251)]({'kind':'add-sibling-before','placement':_0x32743b(0x22e),'x':_0x763e17,'y':_0x36f253[_0x32743b(0x27c)][_0x32743b(0x3a3)]-_0x24ce45,'radius':_0x525d4c,'visualRadius':_0x5cdcbc}),_0x2b1646['push']({'kind':'add-sibling-after','placement':'after','x':_0x763e17,'y':_0x36f253[_0x32743b(0x27c)][_0x32743b(0x3a3)]+_0x36f253[_0x32743b(0x27c)][_0x32743b(0x323)]+_0x24ce45,'radius':_0x525d4c,'visualRadius':_0x5cdcbc}));if(_0x36f253['hasChildren']){let _0x3bd552={'kind':_0x32743b(0x1b3),'x':_0xbdf053,'y':_0x3460a9,'radius':_0x1f10a9};_0x2b1646[_0x32743b(0x251)](_0x3bd552);let _0x1a2328=_0x2b1646[_0x32743b(0x203)](_0x419cdb=>_0x419cdb[_0x32743b(0x15e)]===(_0x36f253[_0x32743b(0x164)]===_0x32743b(0x33e)?_0x32743b(0x159):_0x36f253[_0x32743b(0x164)]===_0x32743b(0x3a3)?_0x32743b(0x286):_0x36f253[_0x32743b(0x164)]===_0x32743b(0x3f0)?_0x32743b(0x275):_0x32743b(0x340)));_0x1a2328&&Math[_0x32743b(0x14f)](_0x1a2328['x']-_0x3bd552['x'],_0x1a2328['y']-_0x3bd552['y'])<_0x286ab7&&(_0x36f253['side']===_0x32743b(0x3a3)||_0x36f253[_0x32743b(0x164)]===_0x32743b(0x3f0)?_0x1a2328['y']=_0x3bd552['y']+(_0x36f253['side']==='top'?-_0x286ab7:_0x286ab7):_0x1a2328['x']=_0x3bd552['x']+(_0x36f253[_0x32743b(0x164)]==='left'?-_0x286ab7:_0x286ab7));}return _0x2b1646;}const or=_0x4e28b3(0x188),sr=_0x394cf0['connectorAffordance'];function cr(_0x539f04,_0x4b44fc){const _0x49a80d=_0x4e28b3;return!!_0x539f04&&_0x539f04[_0x49a80d(0x15e)]===_0x4b44fc[_0x49a80d(0x15e)]&&_0x539f04['x']===_0x4b44fc['x']&&_0x539f04['y']===_0x4b44fc['y'];}var lr=class extends _0x344c5d{constructor(_0x50ca9d=or,_0x2b00e6){const _0x3b106c=_0x4e28b3;super(_0x50ca9d),K(this,'_state',{'controls':[]}),this['evented']=!0x0,this[_0x3b106c(0x2e1)]=_0x5d51da[_0x3b106c(0x34b)],this[_0x3b106c(0x3e7)](_0x2b00e6);}[_0x4e28b3(0x3e7)](_0x1b91c4){const _0x12da9a=_0x4e28b3;this[_0x12da9a(0x179)]={...this['_state'],..._0x1b91c4},this['_state'][_0x12da9a(0x3e4)]['length']>0x0?this[_0x12da9a(0x2ec)]():this['hide'](),this['makeDirty'](!0x0);}[_0x4e28b3(0x3b8)](_0x4f25b0){const _0x3bf325=_0x4e28b3;!_0x4f25b0&&!this[_0x3bf325(0x179)][_0x3bf325(0x3ea)]||_0x4f25b0&&cr(this[_0x3bf325(0x179)][_0x3bf325(0x3ea)],_0x4f25b0)||(this['_state']={...this[_0x3bf325(0x179)],'hoveredControl':_0x4f25b0},this[_0x3bf325(0x29f)](!0x0));}[_0x4e28b3(0x309)](_0x31a66c){const _0x5aef5e=_0x4e28b3;for(let _0x46949e=this['_state']['controls'][_0x5aef5e(0x282)]-0x1;_0x46949e>=0x0;--_0x46949e){let _0x12335b=this[_0x5aef5e(0x179)][_0x5aef5e(0x3e4)][_0x46949e];if(Math[_0x5aef5e(0x14f)](_0x31a66c['x']-_0x12335b['x'],_0x31a66c['y']-_0x12335b['y'])<=_0x12335b[_0x5aef5e(0x417)])return _0x12335b;}return null;}[_0x4e28b3(0x187)](_0x22bbfd){const _0x100746=_0x4e28b3;return!!this[_0x100746(0x309)]({'x':_0x22bbfd['x'],'y':_0x22bbfd['y']});}[_0x4e28b3(0x1a3)](_0x495ccb,_0x24e79a){const _0x400437=_0x4e28b3;return!this['visible']||this[_0x400437(0x179)][_0x400437(0x3e4)][_0x400437(0x282)]===0x0?(this[_0x400437(0x29f)](!0x1),this):(_0x495ccb['save'](),this['_state'][_0x400437(0x3e4)][_0x400437(0x3c2)](_0x555b16=>{const _0x2a03c4=_0x400437;var _0x1be75d;let _0x1973a7=cr(this[_0x2a03c4(0x179)]['hoveredControl'],_0x555b16),_0x31a66f=_0x555b16['badgeCount']!==void 0x0,_0xc9d6b3=_0x555b16[_0x2a03c4(0x15e)]===_0x2a03c4(0x159)||_0x555b16[_0x2a03c4(0x15e)]===_0x2a03c4(0x340)||_0x555b16['kind']==='add-child-top'||_0x555b16[_0x2a03c4(0x15e)]==='add-child-bottom',_0x11409b=_0x555b16[_0x2a03c4(0x15e)]==='add-sibling-before'||_0x555b16[_0x2a03c4(0x15e)]==='add-sibling-after',_0x4cc0d5=_0x11409b&&!_0x1973a7?(_0x1be75d=_0x555b16[_0x2a03c4(0x3c6)])==null?_0x555b16[_0x2a03c4(0x417)]:_0x1be75d:_0x555b16[_0x2a03c4(0x417)];if(_0x495ccb['beginPath'](),_0x495ccb['fillStyle']=_0x555b16[_0x2a03c4(0x15e)]===_0x2a03c4(0x1b3)?$[_0x2a03c4(0x3c4)]:$[_0x2a03c4(0x265)],_0x495ccb[_0x2a03c4(0x386)]=$[_0x2a03c4(0x265)],_0x495ccb[_0x2a03c4(0x408)]=$[_0x2a03c4(0x1a2)],_0x495ccb[_0x2a03c4(0x241)](_0x555b16['x'],_0x555b16['y'],_0x4cc0d5,0x0,Math['PI']*0x2),_0x495ccb[_0x2a03c4(0x29e)](),(!_0x11409b||_0x1973a7)&&_0x495ccb[_0x2a03c4(0x18d)](),!_0x31a66f&&(!_0x11409b||_0x1973a7)){if(_0x495ccb[_0x2a03c4(0x3c5)](),_0x495ccb['strokeStyle']=_0x555b16[_0x2a03c4(0x15e)]===_0x2a03c4(0x1b3)?$[_0x2a03c4(0x265)]:$[_0x2a03c4(0x3c4)],_0x495ccb[_0x2a03c4(0x408)]=_0x11409b?$[_0x2a03c4(0x35a)]:_0x1973a7?$[_0x2a03c4(0x1bd)]:$[_0x2a03c4(0x35a)],_0x495ccb[_0x2a03c4(0x208)]='round',_0x555b16[_0x2a03c4(0x15e)]===_0x2a03c4(0x1b3)){let _0x3e0781=$[_0x2a03c4(0x238)];_0x495ccb['moveTo'](_0x555b16['x']+_0x3e0781/0x2,_0x555b16['y']-_0x3e0781),_0x495ccb[_0x2a03c4(0x2f7)](_0x555b16['x']-_0x3e0781/0x2,_0x555b16['y']),_0x495ccb['lineTo'](_0x555b16['x']+_0x3e0781/0x2,_0x555b16['y']+_0x3e0781);}else{let _0x289112=_0x11409b?$[_0x2a03c4(0x2ee)]:_0xc9d6b3?$[_0x2a03c4(0x319)]:$[_0x2a03c4(0x238)];_0x495ccb[_0x2a03c4(0x328)](_0x555b16['x']-_0x289112,_0x555b16['y']),_0x495ccb[_0x2a03c4(0x2f7)](_0x555b16['x']+_0x289112,_0x555b16['y']),_0x495ccb[_0x2a03c4(0x328)](_0x555b16['x'],_0x555b16['y']-_0x289112),_0x495ccb[_0x2a03c4(0x2f7)](_0x555b16['x'],_0x555b16['y']+_0x289112);}_0x495ccb['stroke']();}_0x31a66f&&(_0x495ccb[_0x2a03c4(0x33c)]=$[_0x2a03c4(0x265)],_0x495ccb[_0x2a03c4(0x32f)]=$[_0x2a03c4(0x24a)]+'\x20'+$[_0x2a03c4(0x2ab)]+_0x2a03c4(0x17c)+$[_0x2a03c4(0x31d)],_0x495ccb[_0x2a03c4(0x2d4)]=_0x2a03c4(0x2cc),_0x495ccb[_0x2a03c4(0x21e)]='middle',_0x495ccb['fillText'](String(_0x555b16[_0x2a03c4(0x26e)]),_0x555b16['x'],_0x555b16['y']));}),_0x495ccb[_0x400437(0x3e0)](),this['makeDirty'](!0x1),this);}};function ur(_0x10ecc1){const _0x596e5b=_0x4e28b3;return _0x10ecc1==='tree-left'||_0x10ecc1==='tree-right'||_0x10ecc1===_0x596e5b(0x400);}function _0x4c93(_0x12f608,_0x5443bc){_0x12f608=_0x12f608-0x14c;const _0x5a5c05=_0x5a5c();let _0x4c93ec=_0x5a5c05[_0x12f608];return _0x4c93ec;}function dr(_0x2ecab7){const _0x5888b5=_0x4e28b3;return _0x2ecab7===_0x5888b5(0x28b)||_0x2ecab7==='timeline-vertical';}function fr(_0x2a9929,_0x470d51){const _0x255843=_0x4e28b3;let _0x1138d7=Number['isFinite'](_0x470d51['zoomRatio'])&&_0x470d51[_0x255843(0x1be)]>0x0?_0x470d51[_0x255843(0x1be)]:0x1;return{'x':Math[_0x255843(0x414)]((_0x2a9929['offsetX']-_0x470d51[_0x255843(0x206)]['x'])/_0x1138d7),'y':Math['round']((_0x2a9929[_0x255843(0x1b0)]-_0x470d51['panOffset']['y'])/_0x1138d7)};}let pr=class extends _0x43afa6{constructor(_0x524477,_0x2f1dac,_0x23fe87,_0x232188,_0x4e22e6,_0x1f633f,_0x5f0b24){const _0x32336b=_0x4e28b3;super(),this[_0x32336b(0x1f3)]=_0x524477,this[_0x32336b(0x234)]=_0x2f1dac,this[_0x32336b(0x1e3)]=_0x23fe87,this['_stateService']=_0x232188,this[_0x32336b(0x19a)]=_0x4e22e6,this[_0x32336b(0x201)]=_0x1f633f,this[_0x32336b(0x307)]=_0x5f0b24,K(this,'_object',null),K(this,_0x32336b(0x1fa),null),K(this,_0x32336b(0x3fb),null),K(this,_0x32336b(0x331),null),this['_init']();}[_0x4e28b3(0x169)](){const _0x534666=_0x4e28b3;var _0x39e295,_0x321e47,_0x142bc6,_0x48bb55,_0x58ec28;let {scene:_0xc983a9}=this[_0x534666(0x1f3)],_0x4bbd5d=(_0x39e295=_0xc983a9[_0x534666(0x170)])==null?void 0x0:_0x39e295[_0x534666(0x1e1)](_0xc983a9);_0x4bbd5d&&(this[_0x534666(0x40b)](_0x288fdc(_0x4bbd5d[_0x534666(0x2b5)]['pipe'](_0x362352(this['dispose$']))[_0x534666(0x345)](({objects:_0x4fb981})=>{const _0x56e0bb=_0x534666;this[_0x56e0bb(0x2cd)](_0x4fb981,{'hideRootControls':!0x0});}))),this['disposeWithMe'](_0x288fdc(_0x4bbd5d['changeEnd$'][_0x534666(0x34f)](_0x362352(this[_0x534666(0x2a2)]))[_0x534666(0x345)](_0x34bb03=>{const _0x2e85f3=_0x534666;let _0x5a8285=_0x34bb03==null?void 0x0:_0x34bb03[_0x2e85f3(0x1ab)];this['_syncControls'](_0x5a8285),setTimeout(()=>this[_0x2e85f3(0x2cd)](_0x5a8285),0x0);})))),this[_0x534666(0x40b)](_0x288fdc(this[_0x534666(0x1e3)][_0x534666(0x27f)][_0x534666(0x34f)](_0x362352(this[_0x534666(0x2a2)]))[_0x534666(0x345)](()=>this[_0x534666(0x2cd)]()))),this[_0x534666(0x40b)](_0x288fdc(this[_0x534666(0x32a)][_0x534666(0x27f)][_0x534666(0x34f)](_0x362352(this[_0x534666(0x2a2)]))[_0x534666(0x345)](()=>this['_syncControls']()))),this['disposeWithMe'](_0x288fdc(this['_previewRefreshService']['refresh$']['pipe'](_0x362352(this[_0x534666(0x2a2)]))[_0x534666(0x345)](_0x2e1886=>{const _0x10399c=_0x534666;let _0x560042=this[_0x10399c(0x1e3)][_0x10399c(0x2af)]()['context'];!_0x560042||_0x560042[_0x10399c(0x204)]!==_0x2e1886[_0x10399c(0x204)]||_0x560042[_0x10399c(0x1e8)]!==_0x2e1886[_0x10399c(0x1e8)]||this[_0x10399c(0x331)]&&this['_activeScopeId']!==_0x2e1886['scopeId']||this[_0x10399c(0x2cd)]();}))),this[_0x534666(0x40b)](_0x288fdc(_0xc983a9[_0x534666(0x1a4)][_0x534666(0x36e)](_0x4f8f24=>this['_handlePointerMove'](_0x4f8f24)))),this[_0x534666(0x40b)](_0x288fdc(_0xc983a9[_0x534666(0x33d)][_0x534666(0x36e)]({'priority':0x4,'next':([_0x365c70,_0xe127e1])=>{const _0x235387=_0x534666;this[_0x235387(0x1c1)](_0x365c70)&&this['_consumeControlEvent'](_0x365c70,_0xe127e1);}}))),this[_0x534666(0x40b)](_0x288fdc((_0x321e47=(_0x142bc6=_0xc983a9['onPointerUp$'])==null?void 0x0:_0x142bc6['subscribeEvent']({'priority':0x4,'next':([_0x49f472,_0x9a45a6])=>{const _0x10a7e8=_0x534666;this[_0x10a7e8(0x3d9)](_0x49f472)&&this[_0x10a7e8(0x3d8)](_0x49f472,_0x9a45a6);}}))==null?{'dispose':()=>{}}:_0x321e47)),this['disposeWithMe'](_0x288fdc((_0x48bb55=(_0x58ec28=_0xc983a9[_0x534666(0x3bd)])==null?void 0x0:_0x58ec28[_0x534666(0x36e)]({'priority':0x4,'next':([_0x275eee,_0x220a1e])=>{const _0x4a6b9d=_0x534666;this[_0x4a6b9d(0x3d9)](_0x275eee)&&this['_consumeControlEvent'](_0x275eee,_0x220a1e);}}))==null?{'dispose':()=>{}}:_0x48bb55)),this['disposeWithMe'](_0x288fdc(()=>this[_0x534666(0x3e3)]())),this['_syncControls']();}[_0x4e28b3(0x22c)](){const _0x1134b6=_0x4e28b3;return this[_0x1134b6(0x207)]?this[_0x1134b6(0x207)]:(this[_0x1134b6(0x207)]=new lr(or),this[_0x1134b6(0x30a)](this[_0x1134b6(0x207)]),this[_0x1134b6(0x1f3)]['scene'][_0x1134b6(0x153)](this['_object'],sr),this['_object']);}['_attachObjectEvents'](_0x1482fd){const _0x533467=_0x4e28b3;var _0xbb4383;(_0xbb4383=this[_0x533467(0x1fa)])==null||_0xbb4383[_0x533467(0x29d)]();let _0x37bf5e=new _0x4ee20c();_0x37bf5e['add'](_0x1482fd[_0x533467(0x33d)][_0x533467(0x36e)]({'priority':0x4,'next':([_0x39fabc,_0x4c39a6])=>{const _0x26fa82=_0x533467;this['_handlePointerDown'](_0x39fabc)&&this[_0x26fa82(0x3d8)](_0x39fabc,_0x4c39a6);}})),_0x37bf5e[_0x533467(0x398)](_0x1482fd[_0x533467(0x194)][_0x533467(0x36e)]({'priority':0x4,'next':([_0x269745,_0xc718f3])=>{const _0x57a75d=_0x533467;this[_0x57a75d(0x3d9)](_0x269745)&&this[_0x57a75d(0x3d8)](_0x269745,_0xc718f3);}})),_0x37bf5e[_0x533467(0x398)](_0x1482fd[_0x533467(0x3bd)][_0x533467(0x36e)]({'priority':0x4,'next':([_0x35e888,_0x56f5b2])=>{const _0x3bc076=_0x533467;this[_0x3bc076(0x3d9)](_0x35e888)&&this['_consumeControlEvent'](_0x35e888,_0x56f5b2);}})),this[_0x533467(0x1fa)]=_0x37bf5e;}[_0x4e28b3(0x3e3)](){const _0x58820d=_0x4e28b3;var _0x112a44;this['_object']&&(this[_0x58820d(0x1f3)][_0x58820d(0x171)]['removeObjects']([this[_0x58820d(0x207)]]),(_0x112a44=this[_0x58820d(0x1fa)])==null||_0x112a44['dispose'](),this[_0x58820d(0x1fa)]=null,this[_0x58820d(0x207)]=null,this[_0x58820d(0x3fb)]=null,this[_0x58820d(0x331)]=null,this['_renderContext'][_0x58820d(0x171)][_0x58820d(0x29f)](!0x0));}[_0x4e28b3(0x2cd)](_0x34cf15,_0x416518){const _0x3578c6=_0x4e28b3;var _0x2c1627,_0x2bfb55,_0x1d3798,_0x494bb9;let _0xc5adc8=this[_0x3578c6(0x1e3)]['getSnapshot'](),_0x34c66b=_0xc5adc8[_0x3578c6(0x1ed)],_0x5b85b5=(_0x2c1627=_0xc5adc8[_0x3578c6(0x26f)])==null?_0xc5adc8[_0x3578c6(0x315)][0x0]:_0x2c1627;if(!_0x34c66b||!_0x5b85b5||_0xc5adc8[_0x3578c6(0x315)][_0x3578c6(0x282)]!==0x1){this[_0x3578c6(0x3e3)]();return;}let _0x55ac70=this[_0x3578c6(0x234)]['getElementData'](_0x34c66b[_0x3578c6(0x204)],_0x34c66b['subUnitId']),_0x36ed52=_0x55ac70[_0x5b85b5],_0x552cd4=_0x130c96(_0x36ed52==null?void 0x0:_0x36ed52['element']);if(!_0x36ed52||!_0x552cd4){this[_0x3578c6(0x3e3)]();return;}let _0x419ba2=_0x239fd6(_0x34c66b[_0x3578c6(0x204)],_0x5b85b5);if(_0x416518!=null&&_0x416518[_0x3578c6(0x2cb)]&&_0x552cd4[_0x3578c6(0x197)]==null&&_0x34cf15!=null&&_0x34cf15[_0x3578c6(0x40f)](_0x419ba2)){this[_0x3578c6(0x3e3)]();return;}let _0x3c509f=this['_resolveControlBounds'](_0x55ac70,_0x34c66b[_0x3578c6(0x204)],_0x5b85b5,_0x34cf15);if(!_0x3c509f){this[_0x3578c6(0x3e3)]();return;}let _0x17fa2b=Object[_0x3578c6(0x326)](_0x55ac70)[_0x3578c6(0x20e)](_0x4a02a9=>{const _0x36530a=_0x3578c6;var _0x26381d;return((_0x26381d=_0x130c96(_0x4a02a9[_0x36530a(0x409)]))==null?void 0x0:_0x26381d[_0x36530a(0x197)])===_0x5b85b5;}),_0x3bf892=_0x552cd4['collapsed']?this[_0x3578c6(0x3ef)](_0x55ac70,_0x5b85b5):0x0;this[_0x3578c6(0x3fb)]=_0x5b85b5,this[_0x3578c6(0x331)]=_0x552cd4['structureScopeId'];let _0xe44eb0=(_0x2bfb55=_0x55ac70[_0x552cd4[_0x3578c6(0x3fe)]])==null?void 0x0:_0x2bfb55[_0x3578c6(0x409)],_0x3cbb80=_0x30a9b0(_0xe44eb0),_0x3ef0e2=_0xe44eb0==null||(_0x1d3798=_0xe44eb0[_0x3578c6(0x3f3)])==null||(_0x1d3798=_0x1d3798[_0x3578c6(0x248)])==null||(_0x1d3798=_0x1d3798['layout'])==null?void 0x0:_0x1d3798[_0x3578c6(0x2c7)],_0x300a79=(_0x494bb9=_0x3cbb80==null?void 0x0:_0x3cbb80[_0x3578c6(0x20c)][_0x3578c6(0x2c7)])==null?_0x3ef0e2:_0x494bb9,_0x34cd19=_0x552cd4['parentNodeId']==null,_0x193480=this[_0x3578c6(0x2c2)](_0x552cd4[_0x3578c6(0x164)],_0x34cd19,_0x300a79);this[_0x3578c6(0x22c)]()['updateState']({'controls':ar({'bounds':_0x3c509f,'isRoot':_0x34cd19,'side':_0x193480,'rootChildSides':this['_resolveRootChildControlSides'](_0x34cd19,_0x300a79),'hasChildren':_0x17fa2b[_0x3578c6(0x282)]>0x0,'collapsedDescendantCount':_0x3bf892})}),this[_0x3578c6(0x1f3)][_0x3578c6(0x171)][_0x3578c6(0x29f)](!0x0);}[_0x4e28b3(0x2c2)](_0x363a3d,_0x550324,_0x45398b){const _0x915b9e=_0x4e28b3;return _0x45398b===_0x915b9e(0x3a4)?!_0x550324&&(_0x363a3d==='left'||_0x363a3d===_0x915b9e(0x244))?_0x363a3d:_0x915b9e(0x3f0):_0x45398b===_0x915b9e(0x351)?!_0x550324&&(_0x363a3d===_0x915b9e(0x3a3)||_0x363a3d===_0x915b9e(0x3f0))?_0x363a3d:'bottom':_0x363a3d===_0x915b9e(0x33e)?_0x915b9e(0x33e):_0x915b9e(0x244);}[_0x4e28b3(0x1f8)](_0x2fb84a,_0x4d2bdc){const _0x269e70=_0x4e28b3;if(_0x2fb84a){if(ur(_0x4d2bdc))return[_0x269e70(0x3f0)];if(_0x4d2bdc===_0x269e70(0x28b))return['right'];if(_0x4d2bdc===_0x269e70(0x3a4))return[_0x269e70(0x3f0)];}}[_0x4e28b3(0x21b)](_0xbac86){const _0x4f081c=_0x4e28b3;var _0x1d1d2c,_0x456547;let _0x3567dc=this[_0x4f081c(0x1e3)]['getSnapshot']()[_0x4f081c(0x1ed)];if(!_0x3567dc||!this[_0x4f081c(0x3fb)])return;let _0x1ba2e2=this[_0x4f081c(0x234)][_0x4f081c(0x36f)](_0x3567dc['unitId'],_0x3567dc['subUnitId']),_0x8a8d2=_0x130c96((_0x1d1d2c=_0x1ba2e2[this[_0x4f081c(0x3fb)]])==null?void 0x0:_0x1d1d2c[_0x4f081c(0x409)]),_0x1c538b=_0x8a8d2?_0x30a9b0((_0x456547=_0x1ba2e2[_0x8a8d2['structureScopeId']])==null?void 0x0:_0x456547[_0x4f081c(0x409)]):null;if(!((_0x8a8d2==null?void 0x0:_0x8a8d2[_0x4f081c(0x197)])==null&&(ur(_0x1c538b==null?void 0x0:_0x1c538b[_0x4f081c(0x20c)]['structureKind'])||dr(_0x1c538b==null?void 0x0:_0x1c538b[_0x4f081c(0x20c)]['structureKind']))))return _0xbac86===_0x4f081c(0x159)?_0x4f081c(0x33e):_0xbac86===_0x4f081c(0x286)?'top':_0xbac86===_0x4f081c(0x275)?_0x4f081c(0x3f0):_0x4f081c(0x244);}[_0x4e28b3(0x28a)](_0x25bc99,_0x225f8e,_0xe609c6,_0xce1de9){const _0x483b8f=_0x4e28b3;var _0x35f627,_0x3a16e0,_0x106ad5;let _0x5d304c=_0x239fd6(_0x225f8e,_0xe609c6),_0x21ff0c=_0xce1de9==null?void 0x0:_0xce1de9[_0x483b8f(0x349)](_0x5d304c),_0x333d86=this[_0x483b8f(0x3c8)](_0x21ff0c);if(_0x333d86)return _0x333d86;let _0x48dc6b=this[_0x483b8f(0x1f3)]['scene'],_0x2e7c89=(_0x35f627=(_0x3a16e0=_0x48dc6b['getObjectIncludeInGroup'])==null?void 0x0:_0x3a16e0[_0x483b8f(0x1e1)](_0x48dc6b,_0x5d304c))==null?(_0x106ad5=_0x48dc6b[_0x483b8f(0x3fc)])==null?void 0x0:_0x106ad5[_0x483b8f(0x1e1)](_0x48dc6b,_0x5d304c):_0x35f627;return this[_0x483b8f(0x3c8)](_0x2e7c89)||_0x8188de(_0x25bc99,_0xe609c6);}[_0x4e28b3(0x3c8)](_0x487934){const _0x3cb7f8=_0x4e28b3;return _0x487934&&Number['isFinite'](_0x487934['left'])&&Number['isFinite'](_0x487934['top'])&&Number['isFinite'](_0x487934[_0x3cb7f8(0x1b5)])&&Number[_0x3cb7f8(0x2de)](_0x487934[_0x3cb7f8(0x323)])?{'left':_0x487934[_0x3cb7f8(0x33e)],'top':_0x487934[_0x3cb7f8(0x3a3)],'width':_0x487934[_0x3cb7f8(0x1b5)],'height':_0x487934[_0x3cb7f8(0x323)]}:null;}['_countDescendants'](_0x1eec6e,_0x169a04){const _0x31f57c=_0x4e28b3;return Object[_0x31f57c(0x326)](_0x1eec6e)[_0x31f57c(0x20e)](_0xa1f038=>{const _0x119b60=_0x31f57c;var _0x36617d;return((_0x36617d=_0x130c96(_0xa1f038['element']))==null?void 0x0:_0x36617d[_0x119b60(0x197)])===_0x169a04;})[_0x31f57c(0x3f6)]((_0x3ea32e,_0x14b14e)=>_0x3ea32e+0x1+this[_0x31f57c(0x3ef)](_0x1eec6e,_0x14b14e[_0x31f57c(0x404)]),0x0);}[_0x4e28b3(0x3a9)](_0x1ea00f){const _0x491493=_0x4e28b3;if(!this[_0x491493(0x207)])return;let _0x36c7be=this[_0x491493(0x32a)][_0x491493(0x15a)](),_0x2f4732=fr(_0x1ea00f,{'panOffset':_0x36c7be['viewportPanOffset'],'zoomRatio':_0x36c7be[_0x491493(0x1be)]});this['_object'][_0x491493(0x3b8)](this['_object'][_0x491493(0x309)](_0x2f4732));}[_0x4e28b3(0x1c1)](_0x3cada4){const _0x389e0f=_0x4e28b3;var _0x1a64d9;if(!this['_object']||!this[_0x389e0f(0x3fb)]||((_0x1a64d9=_0x3cada4[_0x389e0f(0x3c7)])==null?0x0:_0x1a64d9)!==0x0)return!0x1;let _0xeff6c0=this[_0x389e0f(0x1e3)][_0x389e0f(0x2af)]()[_0x389e0f(0x1ed)];if(!_0xeff6c0)return!0x1;let _0x59fcdb=this[_0x389e0f(0x32a)][_0x389e0f(0x15a)](),_0x3a57d9=fr(_0x3cada4,{'panOffset':_0x59fcdb[_0x389e0f(0x2c8)],'zoomRatio':_0x59fcdb[_0x389e0f(0x1be)]}),_0x347615=this[_0x389e0f(0x207)][_0x389e0f(0x309)](_0x3a57d9);if(!_0x347615)return!0x1;if(_0x347615[_0x389e0f(0x15e)]===_0x389e0f(0x1b3))return this[_0x389e0f(0x310)](_0xdc2fc2['id'],{'unitId':_0xeff6c0[_0x389e0f(0x204)],'subUnitId':_0xeff6c0['subUnitId'],'nodeId':this['_activeNodeId']}),!0x0;if(_0x347615[_0x389e0f(0x15e)]===_0x389e0f(0x159)||_0x347615[_0x389e0f(0x15e)]==='add-child-right'||_0x347615[_0x389e0f(0x15e)]===_0x389e0f(0x286)||_0x347615[_0x389e0f(0x15e)]===_0x389e0f(0x275)){let _0x1f9c91=_0x257cfe(0x6);return this[_0x389e0f(0x285)](_0x1c61db['id'],{'unitId':_0xeff6c0['unitId'],'subUnitId':_0xeff6c0[_0x389e0f(0x1e8)],'parentNodeId':this[_0x389e0f(0x3fb)],'side':this[_0x389e0f(0x21b)](_0x347615['kind']),'nodeId':_0x1f9c91,'connectorId':_0x257cfe(0x6)},_0x1f9c91),!0x0;}if(_0x347615[_0x389e0f(0x15e)]==='add-sibling-before'||_0x347615[_0x389e0f(0x15e)]===_0x389e0f(0x330)){var _0x1e6717;let _0x2b4a3e=_0x257cfe(0x6);return this[_0x389e0f(0x285)](_0x4427c3['id'],{'unitId':_0xeff6c0[_0x389e0f(0x204)],'subUnitId':_0xeff6c0['subUnitId'],'nodeId':this[_0x389e0f(0x3fb)],'placement':(_0x1e6717=_0x347615[_0x389e0f(0x385)])==null?_0x347615[_0x389e0f(0x15e)]==='add-sibling-before'?_0x389e0f(0x22e):_0x389e0f(0x2f1):_0x1e6717,'siblingNodeId':_0x2b4a3e,'connectorId':_0x257cfe(0x6)},_0x2b4a3e),!0x0;}return!0x0;}[_0x4e28b3(0x3d9)](_0x1432f3){const _0x215a44=_0x4e28b3;var _0x127c6a;if(!this[_0x215a44(0x207)]||((_0x127c6a=_0x1432f3['button'])==null?0x0:_0x127c6a)!==0x0)return!0x1;let _0x3e1b80=this[_0x215a44(0x32a)][_0x215a44(0x15a)](),_0x14e4a5=fr(_0x1432f3,{'panOffset':_0x3e1b80['viewportPanOffset'],'zoomRatio':_0x3e1b80[_0x215a44(0x1be)]});return!!this[_0x215a44(0x207)][_0x215a44(0x309)](_0x14e4a5);}[_0x4e28b3(0x3d8)](_0x189408,_0x5c4928){const _0x4f1dae=_0x4e28b3;var _0x281a44,_0x203a68;_0x5c4928[_0x4f1dae(0x372)](),(_0x281a44=_0x189408['preventDefault'])==null||_0x281a44[_0x4f1dae(0x1e1)](_0x189408),(_0x203a68=_0x189408['stopPropagation'])==null||_0x203a68[_0x4f1dae(0x1e1)](_0x189408);}['_executeAndLayout'](_0x32eed0,_0x2c94ab){const _0x22f26e=_0x4e28b3;let _0x503aa2=this[_0x22f26e(0x331)],_0x3b910d=this['_commandService'][_0x22f26e(0x3d6)](_0x32eed0,_0x2c94ab);Promise[_0x22f26e(0x1c8)](_0x3b910d)[_0x22f26e(0x378)](_0x4d699f=>{const _0x3b0dd3=_0x22f26e;!_0x4d699f||!_0x503aa2||(this[_0x3b0dd3(0x2cd)](),Promise[_0x3b0dd3(0x1c8)](this['_commandService']['executeCommand'](_0x3a4dc0['id'],{'unitId':_0x2c94ab[_0x3b0dd3(0x204)],'subUnitId':_0x2c94ab['subUnitId'],'scopeId':_0x503aa2}))[_0x3b0dd3(0x378)](()=>this[_0x3b0dd3(0x2cd)]()));});}[_0x4e28b3(0x285)](_0x5dda05,_0x56816,_0x32036d){const _0x608efc=_0x4e28b3;let _0x46742f={'unitId':_0x56816[_0x608efc(0x204)],'subUnitId':_0x56816[_0x608efc(0x1e8)]},_0x140cec=this['_commandService'][_0x608efc(0x3d6)](_0x5dda05,_0x56816);Promise[_0x608efc(0x1c8)](_0x140cec)[_0x608efc(0x378)](_0x4ec7d6=>{const _0x310f50=_0x608efc;_0x4ec7d6&&(this['_syncControls'](),this[_0x310f50(0x1e3)][_0x310f50(0x15b)](_0x46742f,[_0x32036d],_0x32036d),this[_0x310f50(0x201)][_0x310f50(0x284)](),this[_0x310f50(0x201)][_0x310f50(0x2b3)]({..._0x46742f,'shapeId':_0x32036d,'shapeKey':_0x239fd6(_0x46742f['unitId'],_0x32036d),'visible':!0x0}));});}};pr=J([q(0x1,_0x19f927(_0x5af7fa)),q(0x2,_0x19f927(_0x4ad25d)),q(0x3,_0x19f927(_0x4b72d1)),q(0x4,_0x4c9d00),q(0x5,_0x19f927(_0x4aee4d)),q(0x6,_0x19f927(tr))],pr);const mr='FOCUSING_MIND_MAP_TEXT_EDITOR';let hr=class extends _0x43afa6{constructor(_0x469d6,_0x4aac37,_0x5563c5,_0xbc082c,_0xb37777){const _0x1cd08e=_0x4e28b3;super(),this[_0x1cd08e(0x234)]=_0x469d6,this['_elementStateService']=_0x4aac37,this[_0x1cd08e(0x184)]=_0x5563c5,this['_commandService']=_0xbc082c,this[_0x1cd08e(0x3f2)]=_0xb37777,this[_0x1cd08e(0x169)]();}[_0x4e28b3(0x169)](){const _0x59ed78=_0x4e28b3;this['disposeWithMe'](this['_shortcutService'][_0x59ed78(0x3de)](this[_0x59ed78(0x2c0)]())),this['disposeWithMe'](_0x288fdc(this[_0x59ed78(0x1e3)]['state$']['pipe'](_0x362352(this[_0x59ed78(0x2a2)]))[_0x59ed78(0x345)](()=>{this['_syncMindMapTextEditorContext']();}))),this[_0x59ed78(0x40b)](_0x288fdc(()=>{const _0x156f44=_0x59ed78;this[_0x156f44(0x184)][_0x156f44(0x20a)](mr,!0x1);})),this[_0x59ed78(0x183)]();}['_createQuoteShortcut'](){const _0x59a2f5=_0x4e28b3;return{'id':_0x381e8c,'binding':_0x5e6623['ENTER']|_0x67ae32[_0x59a2f5(0x177)],'priority':0x3e8,'preconditions':_0x458f0d=>_0x458f0d[_0x59a2f5(0x2bd)](_0x59a2f5(0x25c))&&this[_0x59a2f5(0x19a)][_0x59a2f5(0x157)](_0x381e8c)};}[_0x4e28b3(0x183)](){const _0x5b93cc=_0x4e28b3;this[_0x5b93cc(0x184)][_0x5b93cc(0x20a)](mr,this[_0x5b93cc(0x37f)]());}[_0x4e28b3(0x37f)](){const _0x149838=_0x4e28b3;var _0x436cbe;let _0x3018e5=this[_0x149838(0x1e3)][_0x149838(0x2af)](),_0x47de43=_0x3018e5['context'],_0x3e7dcb=_0x3018e5[_0x149838(0x2bc)];return!_0x47de43||!_0x3e7dcb?!0x1:!!_0x130c96((_0x436cbe=this['_boardElementService']['getElementData'](_0x47de43[_0x149838(0x204)],_0x47de43['subUnitId'])[_0x3e7dcb])==null?void 0x0:_0x436cbe[_0x149838(0x409)]);}['dispose'](){const _0x82bd22=_0x4e28b3;super['dispose'](),this[_0x82bd22(0x184)]['setContextValue'](mr,!0x1);}};hr=J([q(0x0,_0x19f927(_0x5af7fa)),q(0x1,_0x19f927(_0x4ad25d)),q(0x2,_0x135d5f),q(0x3,_0x4c9d00),q(0x4,_0x2f95f0)],hr);const gr=['structure',_0x4e28b3(0x20c),_0x4e28b3(0x254)];_0x1defe8[_0x4e28b3(0x1af)],_0x1defe8[_0x4e28b3(0x3ce)],_0x1defe8[_0x4e28b3(0x25d)];const _r=[{'labelKey':'boards-mind-ui.panel.spacing.parentGap','key':_0x4e28b3(0x1af),..._0x2f7fbc['horizontalGap']},{'labelKey':_0x4e28b3(0x26c),'key':'siblingGap',..._0x2f7fbc[_0x4e28b3(0x3ce)]},{'labelKey':_0x4e28b3(0x2d5),'key':_0x4e28b3(0x25d),..._0x2f7fbc[_0x4e28b3(0x25d)]}],vr=[{'labelKey':_0x4e28b3(0x39a),'value':_0x4e28b3(0x244)},{'labelKey':'boards-mind-ui.panel.layout.left','value':_0x4e28b3(0x33e)},{'labelKey':_0x4e28b3(0x1b8),'value':_0x4e28b3(0x3dc)}],yr=[{'labelKey':_0x4e28b3(0x28e),'value':_0x4e28b3(0x1fc)},{'labelKey':_0x4e28b3(0x322),'value':_0x4e28b3(0x351)},{'labelKey':_0x4e28b3(0x150),'value':_0x4e28b3(0x2d8)},{'labelKey':_0x4e28b3(0x3a5),'value':'tree-left'},{'labelKey':_0x4e28b3(0x2b9),'value':_0x4e28b3(0x400)},{'labelKey':_0x4e28b3(0x22f),'value':_0x4e28b3(0x28b)},{'labelKey':_0x4e28b3(0x354),'value':_0x4e28b3(0x3a4)}],br=[{'labelKey':'boards-mind-ui.panel.branchLineType.curve','value':'curve'},{'labelKey':'boards-mind-ui.panel.branchLineType.roundedOrthogonal','value':_0x4e28b3(0x168)},{'labelKey':_0x4e28b3(0x280),'value':_0x4e28b3(0x17a)}];function xr(_0x12ca10){const _0x575848=_0x4e28b3;var _0x789abe,_0x44a5e1,_0x1e6c1a,_0x1b9cc3,_0x10e099;let _0x52ec1f=(_0x789abe=_0x12ca10==null?void 0x0:_0x12ca10[_0x575848(0x2c7)])==null?_0x1defe8[_0x575848(0x2c7)]:_0x789abe;return{'spacing':{'horizontalGap':(_0x44a5e1=_0x12ca10==null?void 0x0:_0x12ca10['horizontalGap'])==null?_0x1defe8['horizontalGap']:_0x44a5e1,'siblingGap':(_0x1e6c1a=_0x12ca10==null?void 0x0:_0x12ca10[_0x575848(0x3ce)])==null?_0x1defe8['siblingGap']:_0x1e6c1a,'branchGap':(_0x1b9cc3=_0x12ca10==null?void 0x0:_0x12ca10[_0x575848(0x25d)])==null?_0x1defe8[_0x575848(0x25d)]:_0x1b9cc3},'direction':(_0x10e099=_0x12ca10==null?void 0x0:_0x12ca10[_0x575848(0x31a)])==null?_0x1defe8[_0x575848(0x31a)]:_0x10e099,'structureKind':_0x52ec1f,'branchLineType':_0x5be6e7(_0x52ec1f,_0x12ca10==null?void 0x0:_0x12ca10[_0x575848(0x191)])};}async function Sr(_0x25b688,_0x594a96){const _0x478463=_0x4e28b3;return await Promise[_0x478463(0x1c8)](_0x25b688[_0x478463(0x3d6)](_0xfb8f84['id'],_0x594a96))?(await Promise[_0x478463(0x1c8)](_0x25b688[_0x478463(0x3d6)](_0x3a4dc0['id'],{'unitId':_0x594a96[_0x478463(0x204)],'subUnitId':_0x594a96[_0x478463(0x1e8)],'scopeId':_0x594a96[_0x478463(0x38b)]})),!0x0):!0x1;}async function Cr(_0x11b8c5,_0x39a8fc){const _0x5d0dc5=_0x4e28b3;return await Promise[_0x5d0dc5(0x1c8)](_0x11b8c5[_0x5d0dc5(0x3d6)](_0x394c10['id'],_0x39a8fc))?(await Promise[_0x5d0dc5(0x1c8)](_0x11b8c5[_0x5d0dc5(0x3d6)](_0x3a4dc0['id'],{'unitId':_0x39a8fc[_0x5d0dc5(0x204)],'subUnitId':_0x39a8fc[_0x5d0dc5(0x1e8)],'scopeId':_0x39a8fc[_0x5d0dc5(0x38b)]})),!0x0):!0x1;}async function wr(_0xc4470a,_0xb77a02){const _0x259510=_0x4e28b3;return await Promise['resolve'](_0xc4470a[_0x259510(0x3d6)](_0xfb8f84['id'],{'unitId':_0xb77a02[_0x259510(0x204)],'subUnitId':_0xb77a02[_0x259510(0x1e8)],'scopeId':_0xb77a02['scopeId'],..._0xb77a02[_0x259510(0x1af)]===void 0x0?{}:{'horizontalGap':_0xb77a02[_0x259510(0x1af)]},..._0xb77a02[_0x259510(0x3ce)]===void 0x0?{}:{'siblingGap':_0xb77a02[_0x259510(0x3ce)]},..._0xb77a02[_0x259510(0x25d)]===void 0x0?{}:{'branchGap':_0xb77a02[_0x259510(0x25d)]}}))?(await Promise[_0x259510(0x1c8)](_0xc4470a[_0x259510(0x3d6)](_0x3a4dc0['id'],{'unitId':_0xb77a02['unitId'],'subUnitId':_0xb77a02[_0x259510(0x1e8)],'scopeId':_0xb77a02['scopeId']})),!0x0):!0x1;}async function Tr(_0x1b41f1,_0x27403e){const _0x119eb6=_0x4e28b3;return _0x27403e['nodeId']===_0x27403e[_0x119eb6(0x1bf)]||!await Promise['resolve'](_0x1b41f1[_0x119eb6(0x3d6)](_0x3bb170['id'],{'unitId':_0x27403e[_0x119eb6(0x204)],'subUnitId':_0x27403e[_0x119eb6(0x1e8)],'nodeId':_0x27403e[_0x119eb6(0x263)],'targetNodeId':_0x27403e[_0x119eb6(0x1bf)],'referenceNodeId':_0x27403e[_0x119eb6(0x1bf)],'placement':_0x27403e[_0x119eb6(0x385)]}))?!0x1:(await Promise[_0x119eb6(0x1c8)](_0x1b41f1[_0x119eb6(0x3d6)](_0x3a4dc0['id'],{'unitId':_0x27403e[_0x119eb6(0x204)],'subUnitId':_0x27403e[_0x119eb6(0x1e8)],'scopeId':_0x27403e[_0x119eb6(0x38b)]})),!0x0);}async function Er(_0x5a09cd,_0x2c1556){const _0x1facdd=_0x4e28b3;let _0x160db6=_0x2c1556['text'][_0x1facdd(0x239)]();return!_0x160db6||!await Promise['resolve'](_0x5a09cd[_0x1facdd(0x3d6)](_0x36d216['id'],{'unitId':_0x2c1556[_0x1facdd(0x204)],'subUnitId':_0x2c1556[_0x1facdd(0x1e8)],'nodeId':_0x2c1556[_0x1facdd(0x263)],'text':_0x160db6}))?!0x1:(await Promise[_0x1facdd(0x1c8)](_0x5a09cd[_0x1facdd(0x3d6)](_0x3a4dc0['id'],{'unitId':_0x2c1556[_0x1facdd(0x204)],'subUnitId':_0x2c1556[_0x1facdd(0x1e8)],'scopeId':_0x2c1556[_0x1facdd(0x38b)]})),!0x0);}async function Dr(_0x34c278){const _0x34eb06=_0x4e28b3;var _0xa9812;let _0x28c9ab=(_0xa9812=globalThis['navigator'])==null?void 0x0:_0xa9812[_0x34eb06(0x387)];return _0x28c9ab!=null&&_0x28c9ab['writeText']?(await _0x28c9ab['writeText'](_0x34c278),!0x0):!0x1;}async function Or(_0x221e20,_0x437193,_0xe4d6e8=Dr){const _0x19f4b1=_0x4e28b3;let _0x1aae3f=await Promise['resolve'](_0x221e20[_0x19f4b1(0x3d6)](_0x46bb7e['id'],_0x437193));if(typeof _0x1aae3f!=_0x19f4b1(0x304)||!_0x1aae3f)return!0x1;try{return await _0xe4d6e8(_0x1aae3f)!==!0x1;}catch{return!0x1;}}async function kr(_0x4178b5,_0x38955b){const _0x679bd8=_0x4e28b3;if(!_0x38955b[_0x679bd8(0x180)][_0x679bd8(0x239)]())return!0x1;let _0x2da5b9=await Promise[_0x679bd8(0x1c8)](_0x4178b5[_0x679bd8(0x3d6)](_0x55b80c['id'],_0x38955b));return typeof _0x2da5b9==_0x679bd8(0x381)&&!!_0x2da5b9&&_0x2da5b9[_0x679bd8(0x314)]===!0x0;}function Ar(_0x557954,_0x39815b){const _0x42efca=_0x4e28b3;let _0x42d479=_0x39815b[_0x42efca(0x239)]()[_0x42efca(0x273)]();return _0x42d479?_0x557954[_0x42efca(0x20e)](_0x517dcc=>_0x517dcc[_0x42efca(0x288)][_0x42efca(0x273)]()['includes'](_0x42d479)):_0x557954;}function jr(_0x594e9d){const _0x17516f=_0x4e28b3;return{'paddingInlineStart':0x8+(Number[_0x17516f(0x2de)](_0x594e9d)&&_0x594e9d>0x0?_0x594e9d:0x0)*0x10};}function Mr(_0x301202){const _0x399028=_0x4e28b3;return _0xdbc3b(_0x399028(0x3b6),{'className':_0x399028(0x17d),'data-board-mind-map-panel':_0x399028(0x30b),'children':_0x301202[_0x399028(0x373)]});}function Nr(_0x1f5e7a){const _0x34cca0=_0x4e28b3;return _0xdbc3b('div',{'className':_0x4dee74('univer-border-b\x20univer-border-gray-200\x20univer-p-3',_0x4b17ce),'data-board-mind-map-panel-tabs':'true','children':_0xdbc3b(_0x2edc6b,{'className':'univer-w-full\x20univer-text-xs','items':_0x1f5e7a[_0x34cca0(0x3bb)],'value':_0x1f5e7a[_0x34cca0(0x18e)],'onChange':_0x1f5e7a[_0x34cca0(0x37d)]})});}function Pr(_0x1c539f){const _0x167ab1=_0x4e28b3;return _0x1e5b1d(_0x167ab1(0x29a),{'className':_0x4dee74(_0x167ab1(0x3cd),_0x4b17ce),'data-board-mind-map-panel-section':_0x167ab1(0x30b),'children':[_0xdbc3b('h3',{'className':_0x167ab1(0x2f9),'children':_0x1c539f[_0x167ab1(0x392)]}),_0x1c539f[_0x167ab1(0x373)]]});}function Fr(_0x44aa39){const _0xdafe8b=_0x4e28b3;return _0xdbc3b(_0xdafe8b(0x3b6),{'className':_0xdafe8b(0x28d),'data-board-mind-map-panel-empty-state':_0xdafe8b(0x30b),'children':_0x44aa39[_0xdafe8b(0x373)]});}function Ir(_0x274095){const _0x3487bc=_0x4e28b3;let _0x371d93=_0x3d87e3(_0x19a155);return _0xdbc3b(_0x25b887,{'className':_0x3487bc(0x2c4),'size':_0x3487bc(0x225),'variant':_0x3487bc(0x2f8),'onClick':_0x274095['onClick'],'children':_0x371d93['t'](_0x3487bc(0x397))});}function Lr(_0x252e45){const _0x19b52a=_0x4e28b3;var _0x47f93d;let _0x532b2a=_0x3d87e3(_0x4c9d00),_0x54d789=_0x3d87e3(_0x4ad25d),_0x4f40d0=_0x3d87e3(_0x19a155),_0x4c7e0e=(_0x47f93d=_0x252e45[_0x19b52a(0x222)])==null?[]:_0x47f93d,[_0x14c086,_0xf7fdb1]=_0x33a7c5(''),[_0x75af1a,_0x4863ad]=_0x33a7c5(null),[_0x5148a4,_0x47802b]=_0x33a7c5(''),_0x1b8f79=xr(_0x252e45[_0x19b52a(0x20c)]),[_0x454289,_0x40fd2]=_0x33a7c5(_0x1b8f79[_0x19b52a(0x1ec)]),[_0xc26435,_0x4d61b6]=_0x33a7c5(_0x1b8f79[_0x19b52a(0x31a)]),[_0xdf8909,_0x8fee94]=_0x33a7c5(_0x1b8f79['structureKind']),[_0x5867ff,_0x3f8bec]=_0x33a7c5(_0x1b8f79[_0x19b52a(0x191)]),[_0x4ef989,_0x3217d1]=_0x33a7c5(null),[_0x46bccd,_0x5b287c]=_0x33a7c5('structure'),_0x442cc4=Ar(_0x4c7e0e,_0x14c086),_0xe462d9={'unitId':_0x252e45[_0x19b52a(0x204)],'subUnitId':_0x252e45[_0x19b52a(0x1e8)],'scopeId':_0x252e45[_0x19b52a(0x38b)]},_0x1aa18f=gr[_0x19b52a(0x1cb)](_0x424c84=>({'label':_0x4f40d0['t']('boards-mind-ui.panel.tab.'+_0x424c84),'value':_0x424c84})),_0x202d43=br['filter'](_0x50d493=>_0x50d493[_0x19b52a(0x18e)]!=='curve'||_0x3e1084(_0xdf8909)),_0xb42323=_0x5cf99d=>{_0x4d61b6(_0x5cf99d),Sr(_0x532b2a,{..._0xe462d9,'direction':_0x5cf99d});};_0x102d6a(()=>{const _0x14d585=_0x19b52a;let _0x2e752f=xr(_0x252e45[_0x14d585(0x20c)]);_0x40fd2(_0x2e752f[_0x14d585(0x1ec)]),_0x4d61b6(_0x2e752f['direction']),_0x8fee94(_0x2e752f[_0x14d585(0x2c7)]),_0x3f8bec(_0x2e752f[_0x14d585(0x191)]);},[_0x252e45[_0x19b52a(0x20c)],_0x252e45[_0x19b52a(0x38b)]]);let _0x1853d5=_0x10e8e8=>{let _0x28e0bb=_0x5be6e7(_0x10e8e8,_0x5867ff);_0x8fee94(_0x10e8e8),_0x3f8bec(_0x28e0bb),Sr(_0x532b2a,{..._0xe462d9,'structureKind':_0x10e8e8,..._0x28e0bb===_0x5867ff?null:{'branchLineType':_0x28e0bb}});},_0xecb2f2=_0x55af93=>{let _0x342adb=_0x5be6e7(_0xdf8909,_0x55af93);_0x3f8bec(_0x342adb),Cr(_0x532b2a,{..._0xe462d9,'branchLineType':_0x342adb});},_0x34b71f=(_0x4f674c,_0x5a8d10)=>{let _0x3ceccc={..._0x454289,[_0x4f674c]:_0x5a8d10};_0x40fd2(_0x3ceccc),wr(_0x532b2a,{..._0xe462d9,..._0x3ceccc});},_0xad6563=()=>{kr(_0x532b2a,{'unitId':_0x252e45['unitId'],'subUnitId':_0x252e45['subUnitId'],'left':0x78,'top':0x78,'opml':_0x5148a4})['then'](_0x40ef13=>{_0x40ef13&&_0x47802b('');});},_0x65688c=()=>{Or(_0x532b2a,_0xe462d9);},_0x378b5e=(_0x1a283d,_0x5d22ca)=>{_0x4863ad({'nodeId':_0x1a283d,'text':_0x5d22ca});},_0x3265ee=()=>{_0x75af1a&&Er(_0x532b2a,{..._0xe462d9,'nodeId':_0x75af1a['nodeId'],'text':_0x75af1a['text']})['then'](_0x6dd143=>{_0x6dd143&&_0x4863ad(null);});},_0x1e6baf=(_0x3466e7,_0x4658b7)=>{const _0xb7b8c=_0x19b52a;if(_0x3466e7[_0xb7b8c(0x2a0)](),!_0x4ef989||_0x4ef989===_0x4658b7)return;let _0x31657a=_0x3466e7[_0xb7b8c(0x175)][_0xb7b8c(0x23e)](),_0x2255ba=_0x3466e7[_0xb7b8c(0x383)]<_0x31657a['top']+_0x31657a[_0xb7b8c(0x323)]/0x2?_0xb7b8c(0x22e):_0xb7b8c(0x2f1);_0x3217d1(null),Tr(_0x532b2a,{..._0xe462d9,'nodeId':_0x4ef989,'targetNodeId':_0x4658b7,'placement':_0x2255ba});};return _0x1e5b1d(Mr,{'children':[_0xdbc3b(Nr,{'items':_0x1aa18f,'value':_0x46bccd,'onChange':_0x47479e=>_0x5b287c(_0x47479e)}),_0x46bccd===_0x19b52a(0x30c)&&_0xdbc3b(Pr,{'title':_0x4f40d0['t'](_0x19b52a(0x242)),'children':_0x1e5b1d(_0x19b52a(0x3b6),{'children':[_0xdbc3b(_0x4f73bf,{'slot':_0xdbc3b(_0x32fc43,{}),'value':_0x14c086,'placeholder':_0x4f40d0['t'](_0x19b52a(0x2f4)),'className':_0x19b52a(0x3af),'onChange':_0xf7fdb1}),_0x442cc4[_0x19b52a(0x282)]?_0xdbc3b('ol',{'className':_0x19b52a(0x1e9),'children':_0x442cc4[_0x19b52a(0x1cb)](_0x35c631=>_0xdbc3b('li',{'draggable':!0x0,'className':'univer-flex\x20univer-items-center\x20univer-gap-1\x20univer-truncate\x20univer-rounded\x20univer-py-1\x20univer-text-left\x20univer-text-gray-800','style':jr(_0x35c631[_0x19b52a(0x3d7)]),'onDragStart':_0x13c761=>{const _0x1f42fa=_0x19b52a;var _0x1d1bef;_0x3217d1(_0x35c631[_0x1f42fa(0x263)]),(_0x1d1bef=_0x13c761[_0x1f42fa(0x202)])==null||_0x1d1bef[_0x1f42fa(0x25e)](_0x1f42fa(0x2e5),_0x35c631[_0x1f42fa(0x263)]),_0x13c761[_0x1f42fa(0x202)]&&(_0x13c761[_0x1f42fa(0x202)][_0x1f42fa(0x3aa)]=_0x1f42fa(0x216));},'onDragOver':_0xdda745=>{const _0x12b93f=_0x19b52a;_0xdda745[_0x12b93f(0x2a0)](),_0xdda745[_0x12b93f(0x202)]&&(_0xdda745['dataTransfer'][_0x12b93f(0x359)]='move');},'onDrop':_0x326452=>_0x1e6baf(_0x326452,_0x35c631['nodeId']),'onDragEnd':()=>_0x3217d1(null),'children':(_0x75af1a==null?void 0x0:_0x75af1a['nodeId'])===_0x35c631['nodeId']?_0x1e5b1d(_0x19b52a(0x3b6),{'className':_0x19b52a(0x158),'children':[_0xdbc3b(_0x4f73bf,{'autoFocus':!0x0,'size':_0x19b52a(0x225),'value':_0x75af1a[_0x19b52a(0x288)],'onChange':_0x18b961=>_0x4863ad({'nodeId':_0x35c631[_0x19b52a(0x263)],'text':_0x18b961}),'onKeyDown':_0x547e00=>{const _0x15c83e=_0x19b52a;_0x547e00['key']==='Enter'&&_0x3265ee(),_0x547e00[_0x15c83e(0x23c)]===_0x15c83e(0x374)&&_0x4863ad(null);}}),_0xdbc3b(_0x25b887,{'size':_0x19b52a(0x225),'variant':'primary','disabled':!_0x75af1a[_0x19b52a(0x288)][_0x19b52a(0x239)](),'onClick':_0x3265ee,'children':_0x4f40d0['t'](_0x19b52a(0x397))}),_0xdbc3b(_0x25b887,{'size':'small','variant':_0x19b52a(0x2f8),'onClick':()=>_0x4863ad(null),'children':_0x4f40d0['t'](_0x19b52a(0x29c))})]}):_0x1e5b1d(_0x533ee7,{'children':[_0xdbc3b(_0x25b887,{'size':_0x19b52a(0x225),'variant':_0x19b52a(0x25b),'className':_0x19b52a(0x1db),'onClick':()=>_0x54d789[_0x19b52a(0x15b)]({'unitId':_0x252e45[_0x19b52a(0x204)],'subUnitId':_0x252e45['subUnitId']},[_0x35c631[_0x19b52a(0x263)]],_0x35c631['nodeId']),'children':_0x35c631[_0x19b52a(0x288)]}),_0xdbc3b(Ir,{'onClick':()=>_0x378b5e(_0x35c631[_0x19b52a(0x263)],_0x35c631[_0x19b52a(0x288)])})]})},_0x35c631['nodeId']))}):_0xdbc3b(Fr,{'children':_0x4f40d0['t'](_0x19b52a(0x30e))})]})}),_0x46bccd===_0x19b52a(0x20c)&&_0xdbc3b(Pr,{'title':_0x4f40d0['t']('boards-mind-ui.panel.tab.layout'),'children':_0x1e5b1d(_0x19b52a(0x3b6),{'className':_0x19b52a(0x2ad),'children':[_0xdbc3b(_0x19b52a(0x3b6),{'className':_0x19b52a(0x21c),'children':_0xdbc3b(_0x2edc6b,{'className':'univer-w-full\x20univer-text-xs','items':yr[_0x19b52a(0x1cb)](_0xabd3de=>({'label':_0x4f40d0['t'](_0xabd3de[_0x19b52a(0x3b5)]),'value':_0xabd3de['value']})),'value':_0xdf8909,'onChange':_0xbaaa65=>_0x1853d5(_0xbaaa65)})}),_0xdbc3b(_0x19b52a(0x3b6),{'className':_0x19b52a(0x21c),'children':_0xdbc3b(_0x2edc6b,{'className':'univer-w-full\x20univer-text-xs','items':vr['map'](_0x5b6dde=>({'label':_0x4f40d0['t'](_0x5b6dde[_0x19b52a(0x3b5)]),'value':_0x5b6dde[_0x19b52a(0x18e)]})),'value':_0xc26435,'onChange':_0x2c6911=>_0xb42323(_0x2c6911)})}),_0xdbc3b(_0x19b52a(0x3b6),{'className':'univer-flex\x20univer-gap-2','children':_0xdbc3b(_0x2edc6b,{'className':_0x19b52a(0x1c6),'items':_0x202d43[_0x19b52a(0x1cb)](_0xf6dc70=>({'label':_0x4f40d0['t'](_0xf6dc70[_0x19b52a(0x3b5)]),'value':_0xf6dc70['value']})),'value':_0x5867ff,'onChange':_0x1e8dcd=>_0xecb2f2(_0x1e8dcd)})}),_0xdbc3b('div',{'className':'univer-space-y-2','children':_r['map'](({labelKey:_0x374ae0,key:_0x1287d6,min:_0x1db0b0,max:_0x4704ef})=>_0x1e5b1d(_0x19b52a(0x2ae),{'className':_0x19b52a(0x2c9),'children':[_0xdbc3b(_0x19b52a(0x316),{'className':_0x19b52a(0x1c2),'children':_0x4f40d0['t'](_0x19b52a(0x295)+_0x374ae0)}),_0xdbc3b(_0x5687ca,{'min':_0x1db0b0,'max':_0x4704ef,'step':0x4,'value':_0x454289[_0x1287d6],'precision':0x0,'className':_0x19b52a(0x198),'onChange':_0xcc48ba=>_0x34b71f(_0x1287d6,Number(_0xcc48ba==null?_0x1db0b0:_0xcc48ba))})]},_0x1287d6))})]})}),_0x46bccd===_0x19b52a(0x254)&&_0xdbc3b(Pr,{'title':_0x4f40d0['t'](_0x19b52a(0x2c6)),'children':_0x1e5b1d(_0x19b52a(0x3b6),{'className':_0x19b52a(0x250),'children':[_0xdbc3b(_0x55a337,{'className':_0x19b52a(0x317),'placeholder':_0x4f40d0['t'](_0x19b52a(0x32d)),'value':_0x5148a4,'onValueChange':_0x47802b}),_0x1e5b1d(_0x19b52a(0x3b6),{'className':_0x19b52a(0x21c),'children':[_0xdbc3b(_0x25b887,{'size':'small','variant':_0x19b52a(0x2e2),'disabled':!_0x5148a4['trim'](),'onClick':_0xad6563,'children':_0x4f40d0['t'](_0x19b52a(0x2e3))}),_0xdbc3b(_0x25b887,{'size':_0x19b52a(0x225),'variant':_0x19b52a(0x2f8),'onClick':_0x65688c,'children':_0x4f40d0['t'](_0x19b52a(0x410))})]})]})})]});}let Rr=class extends _0x45f66c{constructor(_0x5eaff9){const _0x3118ea=_0x4e28b3;super(),this[_0x3118ea(0x413)]=_0x5eaff9,this['_registerComponents']();}[_0x4e28b3(0x1f1)](){const _0x3748d6=_0x4e28b3;this[_0x3748d6(0x40b)](this[_0x3748d6(0x413)][_0x3748d6(0x192)](sn,ln)),this[_0x3748d6(0x40b)](this['_componentManager'][_0x3748d6(0x192)](gn,Rn)),this[_0x3748d6(0x40b)](this[_0x3748d6(0x413)][_0x3748d6(0x192)](_0x3748d6(0x236),Lr));}};Rr=J([q(0x0,_0x19f927(_0x4aefa5))],Rr);let zr=class{constructor(_0x174f3d,_0x218360){const _0x43e603=_0x4e28b3;this[_0x43e603(0x32a)]=_0x174f3d,this[_0x43e603(0x31b)]=_0x218360;}['beginMindMapMode'](_0x15fbf4){const _0x4db8c2=_0x4e28b3;return this[_0x4db8c2(0x31b)]['setTemplate']({'rootText':_0x15fbf4[_0x4db8c2(0x267)],'structureKind':_0x15fbf4['structureKind'],'branchLineType':_0x15fbf4[_0x4db8c2(0x191)],'children':_0x15fbf4[_0x4db8c2(0x373)],'blueprint':_0x15fbf4['blueprint']}),this[_0x4db8c2(0x32a)][_0x4db8c2(0x368)](!0x1),this['_stateService'][_0x4db8c2(0x264)](),this[_0x4db8c2(0x32a)][_0x4db8c2(0x24f)](_0x138a65['MindMap']),this[_0x4db8c2(0x32a)][_0x4db8c2(0x160)]({'type':_0x138a65['MindMap']}),!0x0;}};zr=J([q(0x0,_0x4b72d1),q(0x1,_0x19f927(Xn))],zr);let Br=class extends _0x3485b7{constructor(_0x570f1c=Pt,_0x53cb09,_0x54b59f,_0x536afb){const _0x51d863=_0x4e28b3;super(),this['_config']=_0x570f1c,this[_0x51d863(0x200)]=_0x53cb09,this[_0x51d863(0x2f0)]=_0x54b59f,this['_renderManagerService']=_0x536afb;let {..._0x37882b}=_0xce87f2({},Pt,this[_0x51d863(0x31e)]);this[_0x51d863(0x2f0)]['setConfig'](_0x51d863(0x367),_0x37882b);}[_0x4e28b3(0x33a)](){const _0x9249eb=_0x4e28b3;this['_injector'][_0x9249eb(0x398)]([Xn]),this[_0x9249eb(0x200)][_0x9249eb(0x398)]([tr]),this[_0x9249eb(0x200)][_0x9249eb(0x398)]([zr]),this['_injector'][_0x9249eb(0x398)]([mn]),this[_0x9249eb(0x200)][_0x9249eb(0x398)]([hr]),this[_0x9249eb(0x200)]['add']([Rr]);let _0x5adb11=this[_0x9249eb(0x200)]['get'](zr),_0x11e5e9=this[_0x9249eb(0x200)][_0x9249eb(0x349)](_0x16e4f0);this['disposeWithMe'](_0x11e5e9['registerAdapter'](_0x5adb11)),this[_0x9249eb(0x40b)](this[_0x9249eb(0x200)][_0x9249eb(0x349)](mn)),this[_0x9249eb(0x40b)](this['_injector']['get'](hr)),this['disposeWithMe'](this[_0x9249eb(0x200)][_0x9249eb(0x349)](Rr)),this[_0x9249eb(0x338)]();}['onReady'](){const _0x5c7504=_0x4e28b3;this[_0x5c7504(0x40b)](this[_0x5c7504(0x2dd)][_0x5c7504(0x2bb)](_0x2934fe[_0x5c7504(0x302)],er)),this['disposeWithMe'](this['_renderManagerService'][_0x5c7504(0x2bb)](_0x2934fe[_0x5c7504(0x302)],pr)),this[_0x5c7504(0x40b)](this[_0x5c7504(0x2dd)][_0x5c7504(0x2bb)](_0x2934fe[_0x5c7504(0x302)],Bn)),this[_0x5c7504(0x40b)](this[_0x5c7504(0x2dd)][_0x5c7504(0x2bb)](_0x2934fe['UNIVER_BOARD'],on)),this[_0x5c7504(0x40b)](this[_0x5c7504(0x2dd)][_0x5c7504(0x2bb)](_0x2934fe[_0x5c7504(0x302)],Rt)),this[_0x5c7504(0x40b)](this['_renderManagerService'][_0x5c7504(0x2bb)](_0x2934fe['UNIVER_BOARD'],ir));}[_0x4e28b3(0x338)](){const _0x1930b3=_0x4e28b3;var _0x2a0047,_0x5e8b3c;let _0x3a114f=this['_getBoardsUIConfig']();this['_configService'][_0x1930b3(0x1fe)](_0x2306cf,{..._0x3a114f,'toolbar':{..._0x3a114f[_0x1930b3(0x237)],'tools':{...(_0x2a0047=_0x3a114f[_0x1930b3(0x237)])==null?void 0x0:_0x2a0047[_0x1930b3(0x24d)],[_0x138a65[_0x1930b3(0x2a7)]]:Vr((_0x5e8b3c=_0x3a114f['toolbar'])==null||(_0x5e8b3c=_0x5e8b3c[_0x1930b3(0x24d)])==null?void 0x0:_0x5e8b3c[_0x138a65[_0x1930b3(0x2a7)]])}}});}[_0x4e28b3(0x1a8)](){const _0x5a3086=_0x4e28b3;var _0x5d6e0a;return(_0x5d6e0a=this[_0x5a3086(0x2f0)][_0x5a3086(0x313)](_0x2306cf))==null?{}:_0x5d6e0a;}};K(Br,'pluginName',_0x4e28b3(0x1d4)),K(Br,'packageName',Mt),K(Br,_0x4e28b3(0x325),Nt),K(Br,_0x4e28b3(0x2a1),_0x2934fe[_0x4e28b3(0x302)]),Br=J([_0x4f9b5b(_0x350152,_0x259006,_0x779761,_0x2baeb1,_0x4f31e9,_0x385ee3),q(0x1,_0x19f927(_0x1072f4)),q(0x2,_0x4d4aaf),q(0x3,_0x90772c)],Br);function Vr(_0x5a8082){const _0x18b3b6=_0x4e28b3;if(_0x5a8082===!0x1)return!0x1;if(typeof _0x5a8082==_0x18b3b6(0x381)){var _0x383a10;return{..._0x5a8082,'enabled':(_0x383a10=_0x5a8082[_0x18b3b6(0x348)])==null||_0x383a10};}return!0x0;}export{Br as UniverBoardsMindUIPlugin};
|