Files
ai/charting_library/bundles/object-tree-dialog.b2b784d27212324330d6.js

39 lines
117 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[4862],{25398:e=>{e.exports={"round-button":"round-button-FujgyDpN",icon:"icon-FujgyDpN",content:"content-FujgyDpN",link:"link-FujgyDpN","color-brand":"color-brand-FujgyDpN","variant-primary":"variant-primary-FujgyDpN","disable-themes":"disable-themes-FujgyDpN",activated:"activated-FujgyDpN","variant-quiet-primary":"variant-quiet-primary-FujgyDpN","variant-secondary":"variant-secondary-FujgyDpN","variant-ghost":"variant-ghost-FujgyDpN","color-gray":"color-gray-FujgyDpN","color-red":"color-red-FujgyDpN","color-black":"color-black-FujgyDpN","color-invertedblack":"color-invertedblack-FujgyDpN","size-xsmall":"size-xsmall-FujgyDpN","icon-only":"icon-only-FujgyDpN","with-start-icon":"with-start-icon-FujgyDpN","with-end-icon":"with-end-icon-FujgyDpN",startIcon:"startIcon-FujgyDpN",endIcon:"endIcon-FujgyDpN","size-small":"size-small-FujgyDpN","size-medium":"size-medium-FujgyDpN","size-large":"size-large-FujgyDpN","size-xlarge":"size-xlarge-FujgyDpN","size-xxlarge":"size-xxlarge-FujgyDpN",animated:"animated-FujgyDpN",stretch:"stretch-FujgyDpN"}},81026:e=>{e.exports={container:"container-WDZ0PRNh","container-xxsmall":"container-xxsmall-WDZ0PRNh","container-xsmall":"container-xsmall-WDZ0PRNh","container-small":"container-small-WDZ0PRNh","container-medium":"container-medium-WDZ0PRNh","container-large":"container-large-WDZ0PRNh","intent-default":"intent-default-WDZ0PRNh",focused:"focused-WDZ0PRNh",readonly:"readonly-WDZ0PRNh",disabled:"disabled-WDZ0PRNh","with-highlight":"with-highlight-WDZ0PRNh",grouped:"grouped-WDZ0PRNh","adjust-position":"adjust-position-WDZ0PRNh","first-row":"first-row-WDZ0PRNh","first-col":"first-col-WDZ0PRNh",stretch:"stretch-WDZ0PRNh","font-size-medium":"font-size-medium-WDZ0PRNh","font-size-large":"font-size-large-WDZ0PRNh","no-corner-top-left":"no-corner-top-left-WDZ0PRNh","no-corner-top-right":"no-corner-top-right-WDZ0PRNh","no-corner-bottom-right":"no-corner-bottom-right-WDZ0PRNh","no-corner-bottom-left":"no-corner-bottom-left-WDZ0PRNh","size-xxsmall":"size-xxsmall-WDZ0PRNh","size-xsmall":"size-xsmall-WDZ0PRNh","size-small":"size-small-WDZ0PRNh","size-medium":"size-medium-WDZ0PRNh","size-large":"size-large-WDZ0PRNh","intent-success":"intent-success-WDZ0PRNh","intent-warning":"intent-warning-WDZ0PRNh","intent-danger":"intent-danger-WDZ0PRNh","intent-primary":"intent-primary-WDZ0PRNh","border-none":"border-none-WDZ0PRNh","border-thin":"border-thin-WDZ0PRNh","border-thick":"border-thick-WDZ0PRNh",highlight:"highlight-WDZ0PRNh",shown:"shown-WDZ0PRNh"}},7236:e=>{e.exports={"inner-slot":"inner-slot-W53jtLjw",interactive:"interactive-W53jtLjw",icon:"icon-W53jtLjw","inner-middle-slot":"inner-middle-slot-W53jtLjw","before-slot":"before-slot-W53jtLjw","after-slot":"after-slot-W53jtLjw"}},30930:e=>{e.exports={input:"input-RUSovanF","size-xxsmall":"size-xxsmall-RUSovanF","size-xsmall":"size-xsmall-RUSovanF","size-small":"size-small-RUSovanF","size-medium":"size-medium-RUSovanF","size-large":"size-large-RUSovanF",
"with-start-slot":"with-start-slot-RUSovanF","with-end-slot":"with-end-slot-RUSovanF"}},48729:e=>{e.exports={"round-tabs":"round-tabs-J4T7wK54","align-start":"align-start-J4T7wK54","align-center":"align-center-J4T7wK54",tab:"tab-J4T7wK54","tab-primary":"tab-primary-J4T7wK54",checked:"checked-J4T7wK54","tab-ghost":"tab-ghost-J4T7wK54","size-xsmall":"size-xsmall-J4T7wK54","size-small":"size-small-J4T7wK54","size-large":"size-large-J4T7wK54"}},23490:e=>{e.exports={dropTargetInside:"dropTargetInside-e_nPSSdZ",dropTarget:"dropTarget-e_nPSSdZ",before:"before-e_nPSSdZ",after:"after-e_nPSSdZ"}},75564:e=>{e.exports={wrap:"wrap-IEe5qpW4",selected:"selected-IEe5qpW4",childOfSelected:"childOfSelected-IEe5qpW4",disabled:"disabled-IEe5qpW4",expandHandle:"expandHandle-IEe5qpW4",expanded:"expanded-IEe5qpW4"}},76106:e=>{e.exports={separator:"separator-MgF6KBas",tree:"tree-MgF6KBas",overlayScrollWrap:"overlayScrollWrap-MgF6KBas",listContainer:"listContainer-MgF6KBas"}},28355:e=>{e.exports={title:"title-QPktCwTY",tabs:"tabs-QPktCwTY",empty:"empty-QPktCwTY",image:"image-QPktCwTY",spinner:"spinner-QPktCwTY",contentList:"contentList-QPktCwTY"}},17742:e=>{e.exports={dialog:"dialog-VUnQLSMH",button:"button-VUnQLSMH"}},22813:e=>{e.exports={title:"title-uNZ8yW1y",withoutIcon:"withoutIcon-uNZ8yW1y",buttons:"buttons-uNZ8yW1y",button:"button-uNZ8yW1y",disabled:"disabled-uNZ8yW1y",spacing:"spacing-uNZ8yW1y"}},87769:e=>{e.exports={wrap:"wrap-C8ln3wvp",dialog:"dialog-C8ln3wvp",offset:"offset-C8ln3wvp",title:"title-C8ln3wvp",main:"main-C8ln3wvp",disabled:"disabled-C8ln3wvp",icon:"icon-C8ln3wvp",pathIcon:"pathIcon-C8ln3wvp",syncIconWrap:"syncIconWrap-C8ln3wvp",syncIcon:"syncIcon-C8ln3wvp",rightButtons:"rightButtons-C8ln3wvp",hover:"hover-C8ln3wvp",expandHandle:"expandHandle-C8ln3wvp",button:"button-C8ln3wvp",selected:"selected-C8ln3wvp",childOfSelected:"childOfSelected-C8ln3wvp",renameInput:"renameInput-C8ln3wvp",warn:"warn-C8ln3wvp",visible:"visible-C8ln3wvp"}},6909:e=>{e.exports={wrap:"wrap-ukH4sVzT",space:"space-ukH4sVzT",tree:"tree-ukH4sVzT"}},86928:e=>{e.exports={button:"button-w6lVe_oI",hovered:"hovered-w6lVe_oI",disabled:"disabled-w6lVe_oI"}},27011:(e,t,n)=>{"use strict";function o(e,t){return t||null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}n.d(t,{isIconOnly:()=>o})},86332:(e,t,n)=>{"use strict";n.d(t,{ControlGroupContext:()=>o});const o=n(50959).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},95604:(e,t,n)=>{"use strict";function o(e){let t=0;return e.isTop&&e.isLeft||(t+=1),e.isTop&&e.isRight||(t+=2),e.isBottom&&e.isLeft||(t+=8),e.isBottom&&e.isRight||(t+=4),t}n.d(t,{getGroupCellRemoveRoundBorders:()=>o})},67029:(e,t,n)=>{"use strict";n.d(t,{ControlSkeleton:()=>b,InputClasses:()=>m});var o=n(50959),r=n(97754),i=n(50151),s=n(38528),l=n(90186),a=n(86332),c=n(95604);var u=n(81026),d=n.n(u);function h(e){let t="";return 0!==e&&(1&e&&(t=r(t,d()["no-corner-top-left"])),2&e&&(t=r(t,d()["no-corner-top-right"])),4&e&&(t=r(t,d()["no-corner-bottom-right"])),
8&e&&(t=r(t,d()["no-corner-bottom-left"]))),t}function g(e,t,n,o){const{removeRoundBorder:i,className:s,intent:l="default",borderStyle:a="thin",size:u,highlight:g,disabled:p,readonly:m,stretch:f,noReadonlyStyles:v,isFocused:b}=e,y=h(null!=i?i:(0,c.getGroupCellRemoveRoundBorders)(n));return r(d().container,d()[`container-${u}`],d()[`intent-${l}`],d()[`border-${a}`],u&&d()[`size-${u}`],y,g&&d()["with-highlight"],p&&d().disabled,m&&!v&&d().readonly,b&&d().focused,f&&d().stretch,t&&d().grouped,!o&&d()["adjust-position"],n.isTop&&d()["first-row"],n.isLeft&&d()["first-col"],s)}function p(e,t,n){const{highlight:o,highlightRemoveRoundBorder:i}=e;if(!o)return d().highlight;const s=h(null!=i?i:(0,c.getGroupCellRemoveRoundBorders)(t));return r(d().highlight,d().shown,d()[`size-${n}`],s)}const m={FontSizeMedium:(0,i.ensureDefined)(d()["font-size-medium"]),FontSizeLarge:(0,i.ensureDefined)(d()["font-size-large"])},f={passive:!1};function v(e,t){const{style:n,id:r,role:i,onFocus:c,onBlur:u,onMouseOver:d,onMouseOut:h,onMouseDown:m,onMouseUp:v,onKeyDown:b,onClick:y,tabIndex:_,startSlot:S,middleSlot:w,endSlot:C,onWheel:T,onWheelNoPassive:I=null,size:E}=e,{isGrouped:k,cellState:M,disablePositionAdjustment:D=!1}=(0,o.useContext)(a.ControlGroupContext),N=function(e,t=null,n){const r=(0,o.useRef)(null),i=(0,o.useRef)(null),s=(0,o.useCallback)((()=>{if(null===r.current||null===i.current)return;const[e,t,n]=i.current;null!==t&&r.current.addEventListener(e,t,n)}),[]),l=(0,o.useCallback)((()=>{if(null===r.current||null===i.current)return;const[e,t,n]=i.current;null!==t&&r.current.removeEventListener(e,t,n)}),[]),a=(0,o.useCallback)((e=>{l(),r.current=e,s()}),[]);return(0,o.useEffect)((()=>(i.current=[e,t,n],s(),l)),[e,t,n]),a}("wheel",I,f);return o.createElement("span",{style:n,id:r,role:i,className:g(e,k,M,D),tabIndex:_,ref:(0,s.useMergedRefs)([t,N]),onFocus:c,onBlur:u,onMouseOver:d,onMouseOut:h,onMouseDown:m,onMouseUp:v,onKeyDown:b,onClick:y,onWheel:T,...(0,l.filterDataProps)(e),...(0,l.filterAriaProps)(e)},S,w,C,o.createElement("span",{className:p(e,M,E)}))}v.displayName="ControlSkeleton";const b=o.forwardRef(v)},78274:(e,t,n)=>{"use strict";n.d(t,{AfterSlot:()=>u,EndSlot:()=>c,MiddleSlot:()=>a,StartSlot:()=>l});var o=n(50959),r=n(97754),i=n(7236),s=n.n(i);function l(e){const{className:t,interactive:n=!0,icon:i=!1,children:l}=e;return o.createElement("span",{className:r(s()["inner-slot"],n&&s().interactive,i&&s().icon,t)},l)}function a(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(s()["inner-slot"],s()["inner-middle-slot"],t)},n)}function c(e){const{className:t,interactive:n=!0,icon:i=!1,children:l}=e;return o.createElement("span",{className:r(s()["inner-slot"],n&&s().interactive,i&&s().icon,t)},l)}function u(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(s()["after-slot"],t)},n)}},31261:(e,t,n)=>{"use strict";n.d(t,{InputControl:()=>b})
;var o=n(50959),r=n(97754),i=n(90186),s=n(47201),l=n(48907),a=n(38528),c=n(48027),u=n(29202),d=n(45812),h=n(67029),g=n(78274),p=n(30930),m=n.n(p);function f(e){return!(0,i.isAriaAttribute)(e)&&!(0,i.isDataAttribute)(e)}function v(e){const{id:t,title:n,role:s,tabIndex:l,placeholder:a,name:c,type:u,value:d,defaultValue:p,draggable:v,autoComplete:b,autoFocus:y,maxLength:_,min:S,max:w,step:C,pattern:T,inputMode:I,onSelect:E,onFocus:k,onBlur:M,onKeyDown:D,onKeyUp:N,onKeyPress:x,onChange:L,onDragStart:z,size:j="small",className:R,inputClassName:A,disabled:O,readonly:P,containerTabIndex:B,startSlot:F,endSlot:W,reference:H,containerReference:V,onContainerFocus:G,...U}=e,Z=(0,i.filterProps)(U,f),K={...(0,i.filterAriaProps)(U),...(0,i.filterDataProps)(U),id:t,title:n,role:s,tabIndex:l,placeholder:a,name:c,type:u,value:d,defaultValue:p,draggable:v,autoComplete:b,autoFocus:y,maxLength:_,min:S,max:w,step:C,pattern:T,inputMode:I,onSelect:E,onFocus:k,onBlur:M,onKeyDown:D,onKeyUp:N,onKeyPress:x,onChange:L,onDragStart:z};return o.createElement(h.ControlSkeleton,{...Z,disabled:O,readonly:P,tabIndex:B,className:r(m().container,R),size:j,ref:V,onFocus:G,startSlot:F,middleSlot:o.createElement(g.MiddleSlot,null,o.createElement("input",{...K,className:r(m().input,m()[`size-${j}`],A,F&&m()["with-start-slot"],W&&m()["with-end-slot"]),disabled:O,readOnly:P,ref:H})),endSlot:W})}function b(e){e=(0,c.useControl)(e);const{disabled:t,autoSelectOnFocus:n,tabIndex:r=0,onFocus:i,onBlur:h,reference:g,containerReference:p=null}=e,m=(0,o.useRef)(null),f=(0,o.useRef)(null),[b,y]=(0,u.useFocus)(),_=t?void 0:b?-1:r,S=t?void 0:b?r:-1,{isMouseDown:w,handleMouseDown:C,handleMouseUp:T}=(0,d.useIsMouseDown)(),I=(0,s.createSafeMulticastEventHandler)(y.onFocus,(function(e){n&&!w.current&&(0,l.selectAllContent)(e.currentTarget)}),i),E=(0,s.createSafeMulticastEventHandler)(y.onBlur,h),k=(0,o.useCallback)((e=>{m.current=e,g&&("function"==typeof g&&g(e),"object"==typeof g&&(g.current=e))}),[m,g]);return o.createElement(v,{...e,isFocused:b,containerTabIndex:_,tabIndex:S,onContainerFocus:function(e){f.current===e.target&&null!==m.current&&m.current.focus()},onFocus:I,onBlur:E,reference:k,containerReference:(0,a.useMergedRefs)([f,p]),onMouseDown:C,onMouseUp:T})}},38952:(e,t,n)=>{"use strict";function o(e){const{reference:t,...n}=e;return{...n,ref:t}}n.d(t,{renameRef:()=>o})},21593:(e,t,n)=>{"use strict";n.d(t,{CustomComponentDefaultLink:()=>i});var o=n(50959),r=n(38952);function i(e){return o.createElement("a",{...(0,r.renameRef)(e)})}o.PureComponent},48027:(e,t,n)=>{"use strict";n.d(t,{useControl:()=>i});var o=n(47201),r=n(29202);function i(e){const{onFocus:t,onBlur:n,intent:i,highlight:s,disabled:l}=e,[a,c]=(0,r.useFocus)(void 0,l),u=(0,o.createSafeMulticastEventHandler)(l?void 0:c.onFocus,t),d=(0,o.createSafeMulticastEventHandler)(l?void 0:c.onBlur,n);return{...e,intent:i||(a?"primary":"default"),highlight:null!=s?s:a,onFocus:u,onBlur:d}}},29202:(e,t,n)=>{"use strict";n.d(t,{useFocus:()=>r});var o=n(50959);function r(e,t){const[n,r]=(0,o.useState)(!1);(0,
o.useEffect)((()=>{t&&n&&r(!1)}),[t,n]);const i={onFocus:(0,o.useCallback)((function(t){void 0!==e&&e.current!==t.target||r(!0)}),[e]),onBlur:(0,o.useCallback)((function(t){void 0!==e&&e.current!==t.target||r(!1)}),[e])};return[n,i]}},45812:(e,t,n)=>{"use strict";n.d(t,{useIsMouseDown:()=>r});var o=n(50959);function r(){const e=(0,o.useRef)(!1),t=(0,o.useCallback)((()=>{e.current=!0}),[e]),n=(0,o.useCallback)((()=>{e.current=!1}),[e]);return{isMouseDown:e,handleMouseDown:t,handleMouseUp:n}}},38528:(e,t,n)=>{"use strict";n.d(t,{useMergedRefs:()=>i});var o=n(50959),r=n(53017);function i(e){return(0,o.useCallback)((0,r.mergeRefs)(e),e)}},48907:(e,t,n)=>{"use strict";function o(e){null!==e&&e.setSelectionRange(0,e.value.length)}n.d(t,{selectAllContent:()=>o})},47201:(e,t,n)=>{"use strict";function o(...e){return t=>{for(const n of e)void 0!==n&&n(t)}}n.d(t,{createSafeMulticastEventHandler:()=>o})},23263:(e,t,n)=>{"use strict";n.d(t,{ManageDrawings:()=>O});var o=n(50959),r=n(43370),i=(n(50151),n(9745)),s=n(44352),l=n(36298),a=n(97145),c=n(59224),u=n(92249),d=n(64530),h=n(1722),g=n(63932),p=n(97754),m=n.n(p);var f=n(90186),v=n(27011),b=n(25398),y=n.n(b);function _(e){const{className:t,color:n,variant:o,size:r,stretch:i,animated:s,disableThemes:l,isInvertedColorTheme:a,...c}=e;return{...c,...(0,f.filterDataProps)(e),...(0,f.filterAriaProps)(e)}}function S(e){const{reference:t,children:n,iconOnly:r,startIcon:s,endIcon:l,...a}=e,c=function(e,t){const{className:n,color:o="brand",variant:r="primary",size:i="xlarge",stretch:s,animated:l=!1,disableThemes:a=!1,iconOnly:c=!1,isAnchor:u=!1,isActivated:d=!1,isInvertedColorTheme:h=!1,endIcon:g,startIcon:m}=t,f=function(e,t){return!!t&&"black"===e}(o,h);return p(n,e["round-button"],f?e[`color-inverted${o}`]:e[`color-${o}`],e[`variant-${r}`],e[`size-${i}`],l&&e.animated,s&&e.stretch,a&&e["disable-themes"],c&&e["icon-only"],u&&e.link,d&&e.activated,m&&e["with-start-icon"],g&&e["with-end-icon"])}(y(),e);return o.createElement("button",{..._(a),className:c,ref:t},s&&o.createElement(i.Icon,{className:m()(y().icon,y().startIcon),icon:s}),!(0,v.isIconOnly)(n,r)&&o.createElement("span",{className:y().content},n),l&&o.createElement(i.Icon,{className:m()(y().icon,y().endIcon),icon:l}))}n(21593);function w(e,t){const{align:n="start",size:o="xsmall"}=t;return p(e["round-tabs"],e[`align-${n}`],e[`size-${o}`])}function C(e,t){const{variant:n="primary",isChecked:o}=t;return p(e.tab,e[`tab-${n}`],o&&e.checked)}var T=n(48729),I=n.n(T);const E=o.forwardRef(((e,t)=>{const{tabs:n,size:r="xsmall",variant:i="primary",theme:s=I()}=e;return o.createElement("div",{className:w(s,e),ref:t},n.map((e=>{const{isChecked:t,...n}=e;return o.createElement(S,{...n,className:C(s,{...n,variant:i,isChecked:t}),size:r,variant:i})})))}));E.displayName="RoundTabsButtons";s.t(null,void 0,n(87871)),s.t(null,void 0,n(10538)),s.t(null,void 0,n(74860));var k=n(29540),M=n(28355);const D=(0,c.getLogger)("Chart.ManageDrawings"),N=new Map;function x(e){let t=N.get(e);return void 0===t&&(t=new a.WatchedValue([]),N.set(e,t)),t}
const L=new l.TranslatedString("remove all line tools for {symbol}",s.t(null,void 0,n(23481))),z=e=>s.t(null,{plural:"{drawingsCount} drawings",count:e},n(88143)).format({drawingsCount:e.toString()}),j=s.t(null,void 0,n(85128)),R=s.t(null,void 0,n(18570));function A(e){const[t,n]=o.useState(null),[i,s]=o.useState(null),[l,a]=o.useState(null),[c,d]=(o.useRef(null),o.useState([]));return o.useEffect((()=>(e.withModel(null,(()=>{const t=e.model();n(t),s(t.mainSeries().symbol())})),()=>n(null))),[e]),o.useEffect((()=>{if(null!==t){const e={},n=(0,r.default)(f,250,{leading:!1});return f(),t.model().dataSourceCollectionChanged().subscribe(e,n),()=>{t.model().dataSourceCollectionChanged().unsubscribe(e,n)}}}),[t]),o.useEffect((()=>{if(null!==t){const e=x(t.model().id()).spawn();return d([...e.value()]),e.subscribe((()=>d([...e.value()]))),()=>null==e?void 0:e.destroy()}}),[t]),o.useMemo((()=>({currentSymbol:i,symbolDrawingsMaps:l,removeSymbolDrawings:g,changeSymbol:p,hiddenSymbols:c})),[i,l,g,p,c]);async function g(e,n){if(t&&l){const o=l[n].get(e);if(o){const n=Array.from(o).map((e=>t.model().dataSourceForId(e))).filter(h.notNull);n.length>0&&t.removeSources(n,!1,L.format({symbol:e}));const r=x(t.model().id());r.setValue([...r.value(),e]);try{await f()}catch(e){D.logError(`Error removing line tools: ${e}`)}r.setValue(r.value().filter((t=>t!==e)))}}}function p(n){e.setSymbol(n),null!==t&&s(n)}async function m(e){const t=function(e){const t=[new Map,new Map,new Map];{const n=t[0];e.forEach((e=>{var t;if((0,u.isLineTool)(e)&&e.showInObjectTree()){const o=null!==(t=e.symbol())&&void 0!==t?t:"",r=n.get(o)||new Set;r.add(e.id()),n.set(o,r)}}))}return t}(e);return(await async function(){return[new Map,new Map,new Map]}()).forEach(((e,n)=>{const o=t[n];e.forEach(((e,t)=>{const n=o.get(t)||new Set;e.forEach((e=>n.add(e))),o.set(t,n)}))})),t}async function f(){null!==t&&a(await m(t.dataSources()))}}function O(e){const{isMobile:t,chartWidget:r,onClose:l,onInitialized:a}=e,{currentSymbol:c,symbolDrawingsMaps:u,removeSymbolDrawings:h,changeSymbol:p,hiddenSymbols:m}=A(r),[f,v]=o.useState(0),[b,y,_]=o.useMemo((()=>{var e;if(null!==c&&null!==u){const t=[];let n=0,o=f;if(null===o)for(o=2;o>0&&!(((null===(e=u[o].get(c))||void 0===e?void 0:e.size)||0)>0);)o--;return u[o].forEach(((e,o)=>{m.includes(o)||(t.push({symbol:o,drawingsCount:e.size,onRemove:()=>function(e){h(e,_)}(o),onClick:()=>function(e){""!==e&&(p(e),null==l||l())}(o)}),n+=e.size)})),t.sort(((e,t)=>e.drawingsCount===t.drawingsCount?e.symbol.localeCompare(t.symbol):e.drawingsCount>t.drawingsCount?-1:1)),[t,n,o]}return[[],0,0]}),[c,f,u,m]);return o.useEffect((()=>{null!==u&&(null==a||a())}),[u]),o.createElement(o.Fragment,null,b.length>0&&o.createElement("div",{className:M.title},`${S=u?u[_].size:0,s.t(null,{plural:"{symbolsCount} symbols",context:"symbols_and_drawings_count",count:S},n(52908)).format({symbolsCount:S.toString()})} ${(e=>s.t(null,{plural:"with {drawingsCount} drawings",context:"symbols_and_drawings_count",count:e},n(42743)).format({drawingsCount:e.toString()
}))(y)}`),0===b.length?null===u?o.createElement(g.Spinner,{className:M.spinner}):o.createElement("div",{className:M.empty},o.createElement(i.Icon,{className:M.image,icon:k}),o.createElement("span",null,R)):b.map((({symbol:e,drawingsCount:n,onRemove:r,onClick:i})=>o.createElement(d.DialogContentItem,{key:e,title:e,subtitle:z(n),removeBtnLabel:j,isActive:e===c,isMobile:t,onClick:i,onClickRemove:r,showFavorite:!1}))));var S}},67165:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ObjectTreeDialogRenderer:()=>qo});var o=n(50959),r=n(962);async function i(e,t,n){let o;for(let r=0;r<t;++r)try{return await e(o)}catch(e){o=e,await n(r)}throw o}async function s(e,t){return i(e,t,(()=>Promise.resolve()))}var l=n(59224);const a=(0,l.getLogger)("DataSourcesIcons");let c=null;function u(){const e=n.c[57673];return e?Promise.resolve(e.exports.lineToolsIcons):n.e(1890).then(n.bind(n,57673)).then((e=>e.lineToolsIcons))}function d(){const e=n.c[45876];return e?Promise.resolve(e.exports.SERIES_ICONS):n.e(9685).then(n.bind(n,45876)).then((e=>e.SERIES_ICONS))}let h=null;function g(){return null===h&&(h=function(){const e=s(u,2).then((e=>e)).catch((e=>(a.logWarn(e),{}))),t=s(d,2).then((e=>e)).catch((e=>(a.logWarn(e),{})));return Promise.all([e,t])}()),h.then((e=>(c={linetool:e[0],series:e[1]},c)))}var p=n(41590),m=n(37558),f=n(90692),v=n(44352),b=n(35057),y=n(24437),_=n(23263);var S=n(36349),w=n(32563),C=n(68335),T=n(50151),I=n(97754),E=n.n(I),k=n(9745),M=n(16396),D=n(8087),N=n(37968);const x=o.createContext(null);var L=n(50813),z=n(36296),j=n(74059),R=n(80465),A=n(22813),O=n(51768);function P(e){const{hideTitle:t}=e,{viewModel:r}=(0,T.ensureNotNull)((0,o.useContext)(x)),i=(0,N.useForceUpdate)(),s=r.selection();(0,o.useEffect)((()=>{const e={};return r.onChange().subscribe(e,(()=>i())),()=>{r.onChange().unsubscribeAll(e)}}),[r]),(0,o.useEffect)((()=>{const e={};return s.onChange().subscribe(e,(()=>i())),()=>{s.onChange().unsubscribeAll(e)}}),[s]);const l=!r.canSelectionBeUnmerged(),a=r.isSelectionCopiable(),c=r.isSelectionCloneable(),u=!a&&!c,d=r.canSelectionBeGrouped(),h=!1;return o.createElement(o.Fragment,null,!t&&o.createElement("div",{className:I(A.title,A.withoutIcon)},v.t(null,void 0,n(31095)),h),o.createElement("div",{className:A.buttons},o.createElement(L.ToolWidgetIconButton,{className:I(A.button,!d&&A.disabled),icon:R,onClick:function(){r.createGroupFromSelection()},isDisabled:!d,title:v.t(null,void 0,n(91073)),"data-name":"group-button"}),o.createElement(D.ToolWidgetMenu,{className:I(A.button,u&&A.disabled),isDisabled:u,content:o.createElement(k.Icon,{icon:z}),title:v.t(null,void 0,n(98129)),arrow:!1,isShowTooltip:!0,"data-name":"copy-clone-button"},a&&o.createElement(M.PopupMenuItem,{"data-name":"copy",label:v.t(null,void 0,n(35216)),onClick:function(){r.copySelection()}}),c&&o.createElement(M.PopupMenuItem,{"data-name":"clone",label:v.t(null,void 0,n(52977)),onClick:function(){r.cloneSelection()}})),o.createElement(D.ToolWidgetMenu,{className:I(A.button,l&&A.disabled),isDisabled:l,content:o.createElement(k.Icon,{icon:j}),
title:v.t(null,void 0,n(45828)),arrow:!1,isShowTooltip:!0,"data-name":"move-to-button"},o.createElement(M.PopupMenuItem,{"data-name":"new-pane-above",label:v.t(null,void 0,n(40887)),onClick:function(){r.unmergeSelectionUp()}}),o.createElement(M.PopupMenuItem,{"data-name":"new-pane-below",label:v.t(null,void 0,n(96712)),onClick:function(){r.unmergeSelectionDown()}})),t&&o.createElement(o.Fragment,null,o.createElement("div",{className:A.spacing}),o.createElement(L.ToolWidgetIconButton,{className:A.button,icon:manageDrawingsIcon,title:v.t(null,void 0,n(72357)),"data-name":"manage-drawings-button",onClick:g}))));function g(){h}}var B=n(54773),F=n(86942),W=n(10170),H=n(7809),V=n(23642);const G=(U="OBJECT_TREE",e=>U+"__"+e);var U;const Z=G("SET_NODES"),K=G("SYNC_NODES"),Y=G("UPDATE_NODE"),$=G("UPDATE_NODES"),q=G("RESET_TREE"),J=G("SET_SELECTED_IDS"),Q=G("DROP_SELECTION"),X=G("SELECT_PREVIOUS"),ee=G("SELECT_NEXT"),te=G("MULTI_SELECT_PREVIOUS"),ne=G("MULTI_SELECT_NEXT"),oe=G("PROCESS_DROP_TARGET"),re=G("UPDATE_DROP_TARGET"),ie=G("HIDE_DROP_TARGET"),se=G("START_MULTI_SELECT"),le=G("STOP_MULTI_SELECT"),ae=(G("REMOVE_NODE"),G("SET_FOCUSED_NODE")),ce=G("SCROLL_TO_ID"),ue=G("SET_IS_SELECTED"),de=G("SET_IS_EXPANDED"),he=G("SET_DISABLED_NODES"),ge=G("MOVE_NODES"),pe=(G("START_DRAG"),G("END_DRAG")),me=()=>({type:X}),fe=()=>({type:ee}),ve=()=>({type:te}),be=()=>({type:ne}),ye=(e,t,n,o,r)=>({type:oe,dropTarget:e,dropType:t,isHoveredLeft:n,boundBox:o,isLastChild:r}),_e=()=>({type:Q}),Se=e=>({type:J,ids:e}),we=(e,t,n)=>({type:ge,ids:e,targetId:t,dropType:n}),Ce=()=>({type:se}),Te=()=>({type:le}),Ie=e=>({type:ae,nodeId:e}),Ee=e=>({type:ce,nodeId:e}),ke=(e,t,n=0)=>({type:ue,nodeId:e,isSelected:t,mode:n}),Me=(e,t)=>({type:de,nodeId:e,isExpanded:t}),De=e=>({type:he,ids:e}),Ne=()=>({type:pe});var xe=n(77145);const Le=e=>e.nodes,ze=e=>e.selection,je=e=>e.dropTarget,Re=e=>e.expanded,Ae=e=>e.scrollToId,Oe=(e,t)=>t,Pe=(0,xe.createSelector)([Le,Oe],((e,t)=>e[t])),Be=(0,xe.createSelector)([ze,Oe],((e,t)=>e.ids.includes(t))),Fe=(0,xe.createSelector)([Re,Oe],((e,t)=>e.includes(t))),We=(0,xe.createSelector)([e=>e.disabled,ze,Oe],((e,t,n)=>!t.ids.includes(n)&&e.includes(n))),He=(0,xe.createSelector)(Le,(e=>Object.keys(e))),Ve=(0,xe.createSelector)(ze,(({ids:e})=>e)),Ge=(0,xe.createSelector)(ze,(({lastFocusedNodeId:e})=>e)),Ue=(0,xe.createSelector)(ze,(({isMultiSelecting:e})=>e)),Ze=(0,xe.createSelector)([Le,Ve],((e,t)=>t.map((t=>e[t])))),Ke=(0,xe.createSelector)(Le,(e=>Object.values(e).filter((e=>0===e.level)))),Ye=(0,xe.createSelector)([Le,Ke],((e,t)=>t.reduce(((t,n)=>[...t,...$e(e,(0,T.ensureDefined)(n))]),[])));function $e(e,t){const n=[];for(const o of t.children)n.push(e[o]),n.push(...$e(e,e[o]));return n}const qe=(0,xe.createSelector)([Le,Ke,Re],((e,t,n)=>{const o=new Set(n);return t.reduce(((t,n)=>[...t,...Qe(e,(0,T.ensureDefined)(n),o)]),[])})),Je=(0,xe.createSelector)([Le,Ve,Re],((e,t,n)=>{const o=new Set(n);return[{id:"drag-list",level:-1,children:t}].reduce(((t,n)=>[...t,...Qe(e,(0,T.ensureDefined)(n),o)]),[])}));function Qe(e,t,n){
const o=[];for(const r of t.children){const t=e[r];void 0!==t&&(o.push(t),n.has(r)&&o.push(...Qe(e,t,n)))}return o}function*Xe(e){const{selectedIds:t,nodes:n}=yield(0,S.call)(e),o={};for(let e=0;e<n.length;++e){const t=n[e];o[t.id]=t}yield(0,S.put)((e=>({type:Z,nodes:e}))(o)),yield(0,S.put)(Se(t));!Ge(yield(0,S.select)())&&t.length>0&&(yield(0,S.put)(Ie(t[0])),yield(0,S.put)(Ee(t[0])))}function*et(e){for(;;){if((yield(0,S.take)([se,le])).type===se){const t=He(yield(0,S.select)()).filter((t=>!e(t)));yield(0,S.put)(De(t))}else yield(0,S.put)(De([]))}}function*tt(){for(;;){const{type:e}=yield(0,S.take)([ne,te]),t=yield(0,S.select)(),n=Ye(t),o=n.length,r=Ge(t),i=[...Ve(t)],s=1===i.length&&i[0]!==r,l=n.findIndex((e=>e.id===(s?i[0]:r)));if(e===te&&0===l||e===ne&&l===o-1)continue;const a=at(t,e===ne?"next":"previous",n,l),{id:c}=a;i.includes(c)&&r?(yield(0,S.put)(ke(r,!1,1)),yield(0,S.put)(Ie(c))):yield(0,S.put)(ke(c,!0,1)),yield(0,S.put)(Ee(c))}}function*nt(e,t){for(;;){const{type:n}=yield(0,S.take)([ee,X]),o=yield(0,S.select)(),r=Ye(o),i=Ze(o),s=Ge(o);if(1===i.length&&i[0].id!==s&&!s){if(n===ee){yield(0,S.put)(Ie(i[0].id));continue}if(n===X){const e=r.findIndex((e=>e.id===i[0].id)),t=at(o,"previous",r,e);yield(0,S.put)(Ie(t.id));continue}}const l=r.findIndex((e=>e.id===s)),a=n===ee?"next":"previous",c=at(o,a,r,l),{id:u}=c;e?e([u],a):yield(0,S.put)(Se([u])),t&&t(u),yield(0,S.put)(Ie(u))}}function*ot(e,t=(()=>!0)){for(;;){const{mode:n,nodeId:o,isSelected:r}=yield(0,S.take)(ue);let i=[...Ve(yield(0,S.select)())];const s=Ye(yield(0,S.select)());if(1===n)r?i.push(o):i.splice(i.indexOf(o),1);else if(2===n&&i.length>0){const e=Ge(yield(0,S.select)());let n=s.findIndex((t=>t.id===e));-1===n&&(n=s.reduce(((e,t,n)=>i.includes(t.id)?n:e),-1));const r=s.findIndex((e=>e.id===o));if(n!==r)for(let e=Math.min(n,r);e<=Math.max(n,r);e++){const n=s[e].id;!i.includes(n)&&t(n)&&i.push(n)}}else i=o?[o]:[];const l=new Set(i);i=s.reduce(((e,t)=>(l.has(t.id)&&e.push(t.id),e)),[]),e?e(i):yield(0,S.put)(Se(i)),yield(0,S.put)(Ie(o))}}function*rt(e=(()=>!0),t){const{dropTarget:n,dropType:o,isHoveredLeft:r,boundBox:i,isLastChild:s}=t,l=je(yield(0,S.select)()),a=Pe(yield(0,S.select)(),(0,T.ensureDefined)(n.parentId)),c=s&&"after"===o,u=Ze(yield(0,S.select)()),d=!c||!r&&e(u,n,o)?n:a,h=l.node&&l.node.id!==d.id||l.dropType!==o;u.map((e=>e.id)).includes(d.id)?yield(0,S.put)({type:ie}):h&&e(u,d,o)&&(yield(0,S.put)(((e,t,n)=>({type:re,node:e,dropType:t,boundBox:n}))(d,o,i)))}function*it(e){yield(0,S.throttle)(0,oe,rt,e)}function*st(e){for(;;){yield(0,S.take)(Q);const t=Ze(yield(0,S.select)()),{node:n,dropType:o}=je(yield(0,S.select)());if(n&&o){const r=new CustomEvent("tree-node-drop",{detail:{nodes:t,target:n.id,type:o}});if(e&&e(r),!r.defaultPrevented){const e=Ve(yield(0,S.select)());yield(0,S.put)(we(e,n.id,o))}}}}function*lt(e){for(;;){yield(0,S.take)(ge);e(Le(yield(0,S.select)()))}}function at(e,t,n,o){const r=n.length;let i;-1===o&&"previous"===t&&(o=r);let s=0;for(;!i||Math.abs(s)<r&&((l=i).level>1&&!Fe(e,(0,
T.ensureDefined)(l.parentId)));)s+="next"===t?1:-1,i=n[(o+s+r)%r];var l;return i}function*ct(e={}){const{saga:t,onDrop:n,canMove:o,onMove:r,onSelect:i,onKeyboardSelect:s,initState:l,canBeAddedToSelection:a}=e,c=[(0,S.fork)(it,o),(0,S.fork)(st,n),(0,S.fork)(ot,i,a),(0,S.fork)(nt,i,s),(0,S.fork)(tt)];for(t&&c.push((0,S.fork)(t)),r&&c.push((0,S.fork)(lt,r)),a&&c.push((0,S.fork)(et,a));;){l&&(yield(0,S.call)(Xe,l));const e=yield(0,S.all)(c);yield(0,S.take)(q);for(const t of e)yield(0,S.cancel)(t)}}var ut=n(91622),dt=n(1722);const ht=(0,l.getLogger)("Platform.GUI.ObjectTree.CallApi");const gt={ids:[],lastFocusedNodeId:void 0,isMultiSelecting:!1};const pt={node:void 0,dropType:void 0,boundBox:void 0};const mt=(0,ut.combineReducers)({nodes:function(e={},t){switch(t.type){case Z:return t.nodes;case K:{const{nodes:n}=t,o=n.map((e=>e.id)),r={...e};for(const t of Object.keys(e))if(!o.includes(t)){const{parentId:e}=r[t];e&&(r[e]={...r[e],children:r[e].children.filter((e=>e!==t))}),delete r[t]}for(const e of n){const t=e.id;if(r.hasOwnProperty(t)){!(0,dt.deepEquals)(r[t].children,e.children)[0]&&(r[t]={...r[t],children:[...e.children]})}else{r[t]=e;const{parentId:n}=e;if(n&&!r[n].children.includes(t))throw new Error("Not implemented")}}return r}case Y:{const{type:n,nodeId:o,...r}=t;return{...e,[o]:{...e[o],...r}}}case $:{const{nodes:n}=t,o={...e};return Object.keys(n).forEach((e=>{o[e]={...o[e],...n[e]}})),{...e,...o}}case ge:{const{ids:n,targetId:o,dropType:r}=t,i=(0,T.ensureDefined)(e[o].parentId),s=e[i],l={};for(const t of n){const n=e[t];if(n.parentId){const o=l[n.parentId]||e[n.parentId];l[n.parentId]={...o,children:o.children.filter((e=>e!==t))}}l[t]={...n,parentId:i,level:s.level+1}}const a=s.children.filter((e=>!n.includes(e)));return a.splice(((e,t,n)=>{switch(n){case"before":return e.indexOf((0,T.ensureDefined)(t));case"inside":return e.length;case"after":return e.indexOf((0,T.ensureDefined)(t))+1;default:return 0}})(a,o,r),0,...n),l[i]={...e[i],children:a,isExpanded:!0},{...e,...l}}default:return e}},selection:function(e=gt,t){switch(t.type){case J:{const{ids:n}=t;return{...e,ids:n,lastFocusedNodeId:n.length>0?e.lastFocusedNodeId:void 0}}case se:return{...e,isMultiSelecting:!0};case le:return{...e,isMultiSelecting:!1};case ae:return{...e,lastFocusedNodeId:t.nodeId};case K:{const n=new Set(t.nodes.map((e=>e.id)));return e.lastFocusedNodeId&&!n.has(e.lastFocusedNodeId)&&delete e.lastFocusedNodeId,{...e,ids:e.ids.filter((e=>n.has(e)))}}default:return e}},dropTarget:function(e=pt,t){switch(t.type){case re:{const{node:n,dropType:o,boundBox:r}=t;return{...e,node:n,dropType:o,boundBox:r}}case ie:case pe:case q:return{...pt};default:return e}},expanded:function(e=[],t){if(t.type===de){const{nodeId:n,isExpanded:o}=t;if(o)return[...e,n];const r=[...e];return r.splice(e.indexOf(n),1),r}return e},disabled:function(e=[],t){return t.type===he?[...t.ids]:e},scrollToId:function(e=null,t){return t.type===ce?null===t.nodeId?null:{id:t.nodeId}:e}});var ft=n(40933),vt=n(20037),bt=n(49483)
;var yt=n(42357),_t=n(98314),St=n(47201),wt=n(70412);const Ct=o.createContext({size:0,smallSizeTreeNodeAction:1}),Tt={[C.Modifiers.Mod]:1,[C.Modifiers.Shift]:2};var It=n(69533),Et=n(75564);const kt=()=>{};class Mt extends o.PureComponent{constructor(){super(...arguments),this._ref=null,this._handleRef=e=>{this._ref=e;const{connectDragSource:t,connectDropTarget:n,connectDragPreview:o}=this.props;(0,T.ensureDefined)(n)(this._ref),(0,T.ensureDefined)(t)(this._ref),(0,T.ensureDefined)(o)((0,_t.getEmptyImage)(),{captureDraggingState:!0})},this._handleTouchStart=e=>{const t=(e,t)=>{const n=function(e,t){try{const n=document.createEvent("TouchEvent");return n.initTouchEvent(e,!0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,t.touches,t.targetTouches,t.changedTouches),n}catch(e){return null}}(e,t);if(n)return n;const o=Array.from(t.changedTouches),r=Array.from(t.touches),i=Array.from(t.targetTouches);return new TouchEvent(e,{bubbles:!0,changedTouches:o,touches:r,targetTouches:i})},n=e.target;if(n instanceof Element){const e=e=>{const o=e;if(!n.isConnected){o.preventDefault();const e=t("touchmove",o);document.body.dispatchEvent(e)}},o=r=>{const i=r;if(!n.isConnected){i.preventDefault();const e=t("touchend",i);document.body.dispatchEvent(e)}n.removeEventListener("touchend",o),n.removeEventListener("touchmove",e)};n.addEventListener("touchend",o),n.addEventListener("touchmove",e)}}}componentDidMount(){var e;null===(e=this._ref)||void 0===e||e.addEventListener("touchstart",this._handleTouchStart)}componentWillUnmount(){var e;null===(e=this._ref)||void 0===e||e.removeEventListener("touchstart",this._handleTouchStart)}render(){return o.createElement(Dt,{...this.props,reference:this._handleRef})}getNode(){return(0,T.ensureNotNull)(this._ref)}}const Dt=e=>{const{id:t,isSelected:n,isOffset:r,isExpandable:i,setIsSelected:s,isDisabled:l,isExpanded:a,onClick:c,parentId:u,setIsExpanded:d,reference:h,isFirstListItem:g,isLastListItem:p,nodeRenderer:m,isChildOfSelected:f=!1}=e,{size:v,smallSizeTreeNodeAction:b}=(0,o.useContext)(Ct),y=(0,o.useRef)(null),_=(0,St.createSafeMulticastEventHandler)((e=>y.current=e),h);let[S,w]=(0,wt.useHover)();return(bt.CheckMobile.any()||bt.CheckMobile.isIPad())&&(S=n,w={onMouseOut:kt,onMouseOver:kt}),o.createElement("div",{className:I(Et.wrap,n&&Et.selected,f&&Et.childOfSelected,l&&Et.disabled,i&&Et.expandable),onClick:1===v&&0===b?T:function(e){if(e.defaultPrevented)return;const o=Tt[(0,C.modifiersFromEvent)(e)]||0;!l&&s&&s(t,!n,o);c&&0===o&&c(e,t)},onContextMenu:T,ref:_,...w},i&&o.createElement(k.Icon,{icon:It,className:I(Et.expandHandle,a&&Et.expanded),onClick:function(e){e.preventDefault(),i&&d(t,!a)},onMouseDown:function(e){e.preventDefault()}}),m({id:t,isOffset:r,parentId:u,isDisabled:l,isSelected:n,isChildOfSelected:f,isHovered:S,isExpanded:a,isFirstListItem:g,isLastListItem:p}));function T(){l||n||!s||s(t,!0)}},Nt=o.createContext({});function xt(e,t){const{id:n}=t,o=Pe(e,n),r=Be(e,n);let i=!1,s=o.parentId;for(;s&&!i;)i=Be(e,s),s=Pe(e,s).parentId;return{...o,isSelected:r,
isChildOfSelected:i,isExpanded:o.children.length>0&&Fe(e,n),isExpandable:o.children.length>0,isDisabled:We(e,n)}}function Lt(e){return(0,ut.bindActionCreators)({setIsExpanded:Me,processDropTarget:ye,dropSelection:_e,selectNext:fe,selectPrevious:me,setIsSelected:ke,endDrag:Ne},e)}const zt=(0,F.connect)(xt,Lt,null,{context:Nt})((function(e){const t=(0,o.useRef)(null),[,n,r]=(0,yt.useDrag)({type:"node",item:t=>{const{id:n,isDisabled:o,isSelected:r}=e;return o||r||e.setIsSelected(n,!0),e},end:e=>{e.endDrag()}}),[,i]=(0,ft.useDrop)({accept:"node",hover:(n,o)=>{const r=t.current;if(!r)return;const i=r.getNode(),s=i.getBoundingClientRect(),l=s.bottom-s.top,a=o.getClientOffset();if(a){const t=a.y-s.top;let n,o;if(n=0===e.children.length?t<l/2?"before":"after":t<l/3?"before":e.isExpanded||t>=l/3&&t<2*l/3?"inside":"after",void 0!==e.getContainerElement){const t=e.getContainerElement().getBoundingClientRect();o={top:s.top-t.top,left:s.left-t.left,bottom:s.top-t.top+s.height,right:s.left-t.left+s.width,height:s.height,width:s.width}}else o={top:i.offsetTop,left:i.offsetLeft,bottom:i.offsetTop+i.offsetHeight,right:i.offsetLeft+i.offsetWidth,height:i.offsetHeight,width:i.offsetWidth};e.processDropTarget(e,n,a.x-s.left<48,o,e.isLastChild)}}});return o.createElement(Mt,{...e,connectDragSource:n,connectDropTarget:i,connectDragPreview:r,ref:t})})),jt=(0,F.connect)(xt,Lt,null,{context:Nt})(Dt);var Rt=n(35749),At=n(85783),Ot=n(65718);function Pt(e){const t=e(),n=(0,o.useRef)(t);n.current=t;const[r,i]=(0,o.useState)(n.current),s=(0,o.useRef)(null);return(0,o.useEffect)((()=>{null===s.current&&(s.current=requestAnimationFrame((()=>{s.current=null,i(n.current)})))})),(0,o.useEffect)((()=>()=>{s.current&&cancelAnimationFrame(s.current)}),[]),r}function Bt(e){const{dropTargetOffset:t,mousePosition:n}=e;if(!t)return{display:"none"};const{x:o,y:r}=t,i=n&&t?n.y-t.y:0,s=`translate(${o+(n&&t?n.x-t.x:0)}px, ${r+i}px)`;return{transform:s,WebkitTransform:s}}const Ft={top:0,left:0,position:"fixed",pointerEvents:"none",zIndex:100,opacity:.5,width:300,backgroundColor:"red"};function Wt(e){return{isDragging:e.isDragging()&&"node"===e.getItemType(),mousePosition:e.getClientOffset(),dropTargetOffset:e.getSourceClientOffset()}}const Ht=(0,F.connect)((function(e){return{items:Je(e)}}),null,null,{context:Nt})((function(e){const{items:t,isDragging:n,nodeRenderer:r,dragPreviewRenderer:i}=e;return Pt((function(){return n?o.createElement(Ot.Portal,null,o.createElement("div",{style:{...Ft,...Bt(e)}},t.map((e=>{if(i){const t=i;return o.createElement(t,{key:e.id,...e})}return o.createElement(jt,{id:e.id,key:e.id,nodeRenderer:r,isDragPreview:!0,isOffset:e.level>1})})))):null}))}));function Vt(e){return o.createElement(Ht,{...e,...(0,At.useDragLayer)(Wt)})}var Gt=n(3085),Ut=n(33127);const Zt=o.forwardRef(((e,t)=>{const n=(0,o.useRef)(null);return e.connectDropTarget(n),(0,o.useImperativeHandle)(t,(()=>({getNode:()=>(0,T.ensureNotNull)(n.current)})),[]),o.createElement("div",{ref:n,style:{height:"100%",width:"100%"}})}));function Kt(e){const t=(0,
o.useRef)(null),[,n]=(0,ft.useDrop)({accept:"node",hover:(n,o)=>{if(!t.current)return;const r=o.getClientOffset();if(null===r)return;const i=e.getOrderedNodes();if(0===i.length)return;const s=t.current.getNode().getBoundingClientRect(),l=e.getContainerElement().getBoundingClientRect();if("first"===e.type){const t={top:s.top-l.top+s.height,left:s.left-l.left,bottom:s.top-l.top+s.height,right:s.left-l.left+s.width,height:0,width:s.width};e.processDropTarget(i[0],"before",!1,t,!1)}if("last"===e.type){const t=r.x-s.left<48,n=i[i.length-1],o=t&&2===n.level?(0,T.ensureDefined)(i.find((e=>e.id===n.parentId))):n,a={top:s.top-l.top,left:s.left-l.left,bottom:s.top-l.top,right:s.left-l.left+s.width,height:s.height,width:s.width};e.processDropTarget(o,"after",t,a,!1)}}});return o.createElement(Zt,{...e,connectDropTarget:n,ref:t})}const Yt=o.createContext({isOver:!1,transform:void 0});var $t=n(23490);function qt(e){const{dropType:t,boundBox:n}=e,{top:o,bottom:r,left:i}=(0,T.ensureDefined)(n);return[i,"before"===t||"inside"===t?o:r]}function Jt(e){return{isDragging:e.isDragging()}}const Qt=(0,F.connect)((function(e){const{boundBox:t,dropType:n,node:o}=je(e);return{boundBox:t,dropType:n,level:o?o.level:void 0}}),null,null,{context:Nt})((function(e){const{dropType:t,boundBox:n,isDragging:r,level:i,transform:s=qt}=e;return Pt((function(){if(!r||!t||!n)return null;const l={[$t.dropTarget]:"inside"!==t,[$t.dropTargetInside]:"inside"===t},{width:a,height:c}=n,[u,d]=s(e),h=`translate(${u}px, ${d}px)`;return o.createElement("div",{className:I(l),style:{position:"absolute",transform:h,WebkitTransform:h,top:0,left:2===i?"46px":0,width:2===i?a-46+"px":a,height:"inside"===t?c:"2px"}})}))}));function Xt(e){const{isDragging:t}=(0,At.useDragLayer)(Jt);return o.createElement(Qt,{...e,isDragging:t})}const en=o.forwardRef(((e,t)=>{const n=(0,o.useContext)(Yt);return o.createElement("div",{...e,ref:t},e.children,n.isOver&&o.createElement(Xt,{transform:n.transform}))}));var tn=n(38223),nn=n(76106);const on=38+C.Modifiers.Shift,rn=40+C.Modifiers.Shift;const sn=o.forwardRef((function(e,t){const{navigationKeys:n,renderList:r,stopMultiSelect:i,startMultiSelect:s,isMultiSelecting:l,nodeRenderer:a,dragPreviewRenderer:c,className:u,connectDropTarget:d,readOnly:h,onClick:g,dropLayerTransform:p,setFocusedNode:m,scrollToId:f,rowHeight:v,onMultiSelectPrevious:b,onMultiSelectNext:y,onMoveCursorToNext:_,onMoveCursorToPrevious:S,onKeyDown:w,outerRef:I,width:k,height:M,isOver:D,processDropTarget:N,autofocus:L}=e,z=(0,o.useContext)(x),j=(0,o.useRef)(null);(0,o.useEffect)((()=>{var e;L&&(null===(e=j.current)||void 0===e||e.focus())}),[]),(0,o.useEffect)((()=>{const e=e=>{[C.Modifiers.Mod,C.Modifiers.Shift].includes((0,C.modifiersFromEvent)(e))&&s()},t=e=>{l&&![C.Modifiers.Mod,C.Modifiers.Shift].includes((0,C.modifiersFromEvent)(e))&&i()};return document.addEventListener("keydown",e),document.addEventListener("keyup",t),document.addEventListener("mousemove",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t),
document.removeEventListener("mousemove",t)}}),[l]),function(e){(0,o.useEffect)((()=>{if(bt.isEdge){let t=null;const n=(0,T.ensureNotNull)(e.current),o=e=>{if(e.target instanceof Element){const n=(0,T.ensureNotNull)(e.target.closest("[draggable]"));n instanceof HTMLElement&&(n.style.opacity="0",t=requestAnimationFrame((()=>n.style.opacity="1")))}};return n.addEventListener("dragstart",o),()=>{n.removeEventListener("dragstart",o),null!==t&&cancelAnimationFrame(t)}}return()=>{}}),[])}(j);const R=(0,o.useCallback)((()=>(0,T.ensureNotNull)(Y.current)),[]),A=(0,o.useCallback)((()=>r),[r]),O=(0,o.useMemo)((()=>{const e=h?jt:zt,t=[];let n;t.push({type:"padding",node:o.createElement(Kt,{type:"first",key:"padding-top",getContainerElement:R,getOrderedNodes:A,processDropTarget:N})});for(let i=0;i<r.length;i++){const s=r[i];1===s.level&&(void 0!==n&&n!==s.parentId&&t.push({type:"separator",node:o.createElement("div",{key:n+"_separator",className:nn.separator})}),n=s.parentId),t.push({type:"node",node:o.createElement(e,{id:s.id,key:s.id,isFirstListItem:0===i,isLastListItem:i===r.length-1,isExpandable:s.children.length>0,nodeRenderer:a,readOnly:h,onClick:g,isOffset:s.level>1,getContainerElement:R})})}return t.push({type:"padding",node:o.createElement(Kt,{type:"last",key:"padding-bottom",getContainerElement:R,getOrderedNodes:A,processDropTarget:N})}),t}),[r]),P=(0,o.useRef)([]);P.current=O;const B=(0,o.useCallback)((e=>{let{style:t}=e;const{index:n}=e;return n===P.current.length-1&&(t={...t,bottom:0,minHeight:t.height},delete t.height),o.createElement("div",{style:t},P.current[n].node)}),[]),F=(0,o.useCallback)((e=>{const t=P.current[e];return"padding"===t.type?6:"function"==typeof v?v(e,t):v}),[v]),W=(0,o.useCallback)((e=>(0,T.ensure)(P.current[e].node.key)),[]),H=(0,o.useMemo)((()=>null===f?{index:-1}:{index:P.current.findIndex((e=>e.node.key===f.id))}),[f]);d(j);const[V,G,U,Z]=(0,Ut.useOverlayScroll)(),K=(0,o.useRef)(null);(0,o.useEffect)((()=>(0,T.ensureNotNull)(K.current).resetAfterIndex(0,!0)),[O]),(0,o.useEffect)((()=>(0,T.ensureNotNull)(K.current).scrollToItem(H.index)),[H]);const Y=(0,o.useRef)(null),$=(0,o.useMemo)((()=>({isOver:D,transform:p})),[D,p]),q=(0,o.useRef)(null),J=(0,o.useRef)({startScroll(e){const t=()=>{null!==U.current&&(q.current=requestAnimationFrame(t),U.current.scrollBy({top:e}))};this.stopScroll(),t()},stopScroll(){null!==q.current&&(cancelAnimationFrame(q.current),q.current=null)},getListElement:()=>U.current});return(0,o.useImperativeHandle)(t,(()=>J.current),[]),(0,o.useEffect)((()=>()=>J.current.stopScroll()),[D]),o.createElement(Yt.Provider,{value:$},o.createElement("div",{...G,className:E()(nn.tree,u),ref:j,"data-name":"tree",tabIndex:-1,onKeyDown:function(e){const t=(0,C.hashFromEvent)(e);if(e.defaultPrevented||(0,Rt.isNativeUIInteraction)(t,e.target))return;const o=(0,T.ensureDefined)(V.scrollPosTop),r=(0,T.ensureDefined)(V.contentHeight),i=(0,T.ensureDefined)(V.containerHeight);if(i){const n=.875*i,s=o+i===r;switch(t){case 35:s||(e.preventDefault(),Q(r));break;case 36:
0!==o&&(e.preventDefault(),Q(0));break;case 33:0!==o&&(e.preventDefault(),Q(Math.max(0,o-n)));break;case 34:s||(e.preventDefault(),Q(Math.min(o+n,r)))}}z||t!==on||(e.preventDefault(),b());z||t!==rn||(e.preventDefault(),y());(38===t||void 0!==n&&"previous"===n[t])&&(e.preventDefault(),S());(40===t||void 0!==n&&"next"===n[t])&&(e.preventDefault(),_());if((8===t||46===t)&&z){const{viewModel:e}=z,t=e.selection(),n=t.selected();if(1!==n.length)return;const o=e.getNextNodeIdAfterRemove(n[0]);if(null===o)return;e.onChange().subscribe(null,(()=>{if(t.selected().length)return;const n=e.entity(o);n&&(t.set([n]),m(o))}),!0)}null==w||w(e)}},o.createElement(Gt.OverlayScrollContainer,{...V,className:nn.overlayScrollWrap}),o.createElement(vt.VariableSizeList,{ref:function(e){K.current=e},className:nn.listContainer,width:k,height:M,itemCount:O.length,itemSize:F,children:B,itemKey:W,outerRef:function(e){U.current=e,I&&I(e)},innerRef:function(e){Y.current=e},innerElementType:en,onItemsRendered:function(){Z()},overscanCount:20,direction:(0,tn.isRtl)()?"rtl":"ltr"}),o.createElement(Vt,{dragPreviewRenderer:c,nodeRenderer:a})));function Q(e){var t;null===(t=U.current)||void 0===t||t.scrollTo({left:0,top:e})}}));const ln=(0,F.connect)((function(e){return{renderList:qe(e),orderedNodes:Ye(e),isMultiSelecting:Ue(e),selectedIds:Ve(e),scrollToId:Ae(e)}}),(function(e){return(0,ut.bindActionCreators)({startMultiSelect:Ce,stopMultiSelect:Te,setFocusedNode:Ie,processDropTarget:ye,onMoveCursorToNext:fe,onMoveCursorToPrevious:me,onMultiSelectPrevious:ve,onMultiSelectNext:be},e)}),null,{context:Nt})((function(e){const t=(0,o.useRef)(null),[{isOver:n},r]=(0,ft.useDrop)({accept:"node",drop:(n,o)=>{var r;("touch"===e.drag||bt.isFF)&&(null===(r=t.current)||void 0===r||r.stopScroll()),o.getItem().dropSelection()},hover:(n,o)=>{var r,i;if("touch"!==e.drag&&!bt.isFF)return;const s=o.getClientOffset();if(null===s)return;const l=null!==(i=null===(r=t.current)||void 0===r?void 0:r.getListElement())&&void 0!==i?i:null;if(null===l)return;const a=l.getBoundingClientRect();((n,o,r)=>{var i;const s=Math.abs(n-r),l=Math.abs(n-o);if(l>40&&s>40||s<=40&&l<=40)return void(null===(i=t.current)||void 0===i||i.stopScroll());((n,o,r,i)=>{var s,l,a,c;o||n?"touch"===e.drag?null===(s=t.current)||void 0===s||s.startScroll(o?-5:5):null===(l=t.current)||void 0===l||l.startScroll(o?-2:2):(r||i)&&("touch"===e.drag?null===(a=t.current)||void 0===a||a.startScroll(r?-10:10):null===(c=t.current)||void 0===c||c.startScroll(r?-5:5))})(l>20&&l<=40,s>20&&s<=40,s<=20,l<=20)})(s.y,a.bottom,a.top)},collect:e=>({isOver:e.isOver()})});return o.createElement(sn,{...e,isOver:n,connectDropTarget:r,ref:t})})),an={delayTouchStart:100};function cn(e){const{canBeAddedToSelection:t,initState:n,onSelect:r,canMove:i,onDrop:s,onMove:l,nodes:a,selectedIds:c,onKeyboardSelect:u,saga:d,lastFocusedNodeObject:h,lastSyncTimestampRef:g,scrollToId:p,...m}=e,[f,v]=(0,o.useState)(null);return(0,o.useEffect)((()=>{const e=(0,B.default)();v(function(e){const t=(0,ut.applyMiddleware)(e);return(0,ut.createStore)(mt,t)
}(e));const o=e.run(ct,{initState:n,onKeyboardSelect:u,saga:d,canMove:i,onMove:l,onDrop:s,onSelect:r,canBeAddedToSelection:t});return()=>o.cancel()}),[]),(0,o.useEffect)((()=>(null!==f&&a&&(g&&(g.current=performance.now()),f.dispatch((e=>({type:K,nodes:e}))(a))),()=>{})),[f,a]),(0,o.useEffect)((()=>{null!==f&&c&&f.dispatch(Se(c))}),[f,c]),(0,o.useEffect)((()=>{null!==f&&(null==h?void 0:h.id)&&f.dispatch(Ie(h.id))}),[f,h]),null===f?null:o.createElement(un,{store:f,scrollToId:p,...m})}const un=o.memo((function(e){const{store:t,scrollToId:n,...r}=e,i="touch"===e.drag?H.TouchBackend:W.HTML5Backend;return(0,o.useEffect)((()=>{var e;t.dispatch(Ee(null!==(e=null==n?void 0:n.id)&&void 0!==e?e:null))}),[n]),o.createElement(V.DndProvider,{backend:i,options:an},o.createElement(F.Provider,{store:t,context:Nt},o.createElement(ln,{...r})))}));function dn(e,t){(0,O.trackEvent)("Object Tree",e,t)}function hn(e){return e.length>1?"Multi select":e[0].gaLabel()}function gn(e){return(0,B.eventChannel)((t=>{const n={};return e.onChange().subscribe(n,(()=>t({type:q}))),e.onGroupCreated().subscribe(n,(e=>t(Me(e,!0)))),e.selection().onChange().subscribe(n,(e=>t(Se(e)))),()=>{e.onChange().unsubscribeAll(n),e.selection().onChange().unsubscribeAll(n),e.onGroupCreated().unsubscribeAll(n)}}),B.buffers.expanding())}function*pn(){for(;;)yield(0,S.take)([ee,X]),dn("Select","Arrow")}function*mn(){for(;;){const{mode:e}=yield(0,S.take)(ue);1===e&&dn("Multi select","Ctrl"),2===e&&dn("Multi select","Shift")}}function*fn(e){for(;;){yield(0,S.take)(Q);const{node:t,dropType:n}=je(yield(0,S.select)());if(t){const o=Ze(yield(0,S.select)()),r=o.map((t=>(0,T.ensureNotNull)(e.entity(t.id))));let i="Drag";1===t.level&&"inside"!==n&&o.some((e=>2===e.level))?i="From the group":2!==t.level&&"inside"!==n||!o.some((e=>1===e.level))?1===o.length&&o[0].parentId!==t.parentId&&(i="Existing pane"):i="To the group",dn(i,hn(r))}}}function*vn(e){yield(0,S.fork)(pn),yield(0,S.fork)(mn),yield(0,S.fork)(fn,e)}function*bn(e){yield(0,S.fork)(vn,e);const t=yield(0,S.call)(gn,e);ht.logNormal("Opened object tree data source channel");try{for(;;){const e=yield(0,S.take)(t);yield(0,S.put)(e)}}finally{ht.logNormal("Closed object tree data source channel"),t.close()}}const yn=o.createContext(null);var _n=n(21861),Sn=n(898),wn=n(6909);const Cn=w.mobiletouch?"touch":"native";function Tn(e){const{viewModel:t,showHeader:n=!0,nodeRenderer:r,isDialog:i=!1,hideHeaderTitle:s=!1}=e,l=(0,o.useRef)(null),a=function(e){const[t,n]=(0,o.useState)(e.getChartId()),r=(0,o.useRef)(t);return r.current=t,(0,o.useEffect)((()=>{return e.onChange().subscribe(null,t),()=>{e.onChange().unsubscribe(null,t)};function t(){const t=e.getChartId();r.current!==t&&n(t)}}),[]),t}(t),[c,u]=(0,Sn.useDimensions)(),[d,h]=(0,o.useState)(null),g=(0,o.useMemo)((()=>({isTouch:w.touch,isDialog:i})),[i]);return o.createElement(yn.Provider,{value:g},o.createElement(x.Provider,{value:{viewModel:t}},o.createElement("div",{className:wn.wrap,onContextMenu:_n.preventDefaultForContextMenu},n&&o.createElement(P,{hideTitle:s
}),o.createElement("div",{className:wn.space,onClick:function(e){if(e.defaultPrevented)return;if(!(e.target instanceof Element)||null===l.current)return;e.target===l.current&&t.selection().set([])},ref:c},null!==u&&o.createElement(cn,{key:a,height:u.height,width:u.width,canBeAddedToSelection:function(e){const n=t.entity(e);return t.selection().canBeAddedToSelection(n)},nodeRenderer:r,initState:function(){const{nodes:e,selection:n}=t.getState();return{selectedIds:n,nodes:e}},canMove:function(e,n,o){return t.isSelectionDropable(n.id,o)},drag:Cn,rowHeight:In,onSelect:function(e){const n=e.map((e=>t.entity(e))).filter((e=>null!==e));t.selection().set(n)},onDrop:function(e){e.preventDefault();const{detail:{target:n,type:o}}=e;t.insertSelection(n,o)},scrollToId:d,saga:function*(){yield(0,S.fork)(bn,t)},onKeyboardSelect:function(e){h({id:e})},outerRef:function(e){l.current=e},onKeyDown:function(e){if(13===(0,C.hashFromEvent)(e)){e.preventDefault();const n=t.selection().selected(),o=n.length>0?t.entity(n[0]):void 0;o&&t.openProperties(o)}},autofocus:i})))))}function In(e,t){switch(t.type){case"node":return 38;case"separator":return 13}}var En,kn=n(14483);!function(e){e.Svg="svg"}(En||(En={}));var Mn=n(31261),Dn=n(86928);function Nn(e){const{className:t,disabled:n,...r}=e;return o.createElement(k.Icon,{className:E()(Dn.button,n&&Dn.disabled,t),...r})}var xn=n(77975);const Ln=v.t(null,void 0,n(91073)),zn=v.t(null,void 0,n(35038)),jn=v.t(null,void 0,n(15101)),Rn=v.t(null,void 0,n(42284)),An=v.t(null,void 0,n(31971)),On=v.t(null,void 0,n(81428)),Pn=v.t(null,void 0,n(34596));var Bn=n(14787),Fn=n(33765),Wn=n(52870),Hn=n(49756),Vn=n(94007),Gn=n(62766),Un=n(87769);function Zn(e){const{id:t}=e,n=(0,o.useContext)(x),{viewModel:r}=(0,T.ensureNotNull)(n),i=r.entity(t);return null===i?null:o.createElement(Kn,{...e,entity:i})}function Kn(e){const{id:t,isOffset:r,isDisabled:i,isSelected:s,isChildOfSelected:l,isHovered:a,parentId:c,entity:u,isExpanded:d}=e,h=(0,o.useContext)(x),{viewModel:g}=(0,T.ensureNotNull)(h),p=(0,o.useContext)(yn),{size:m}=(0,o.useContext)(Ct),[f,b]=(0,o.useState)(!1),y=(0,o.useRef)(null),[_,S]=(0,o.useState)(u.title()),[w,E]=(0,o.useState)(u.getIcon()),[M,D]=(0,o.useState)(u.isLocked()),[N,L]=(0,o.useState)(u.isVisible()),[z,j]=(0,o.useState)(u.isActualInterval()),[R,A]=(0,o.useState)(u.getDrawingSyncState()),[O,P]=(0,o.useState)(!1),[B,F]=((0,xn.useWatchedValueReadonly)({watchedValue:g.getChartLayout()}),(0,o.useState)(!1)),W=(0,o.useRef)(null);(0,o.useEffect)((()=>{const e={};u.onLockChanged().subscribe(e,(()=>D(u.isLocked()))),u.onVisibilityChanged().subscribe(e,(()=>L(u.isVisible())));const t=u.onTitleChanged();t&&t.subscribe(e,(()=>S(u.title()))),u.onIsActualIntervalChange().subscribe(e,(()=>j(u.isActualInterval()))),u.onSyncStateChanged().subscribe(e,(()=>A(u.getDrawingSyncState())));const n=u.onIconChanged?u.onIconChanged():void 0;return n&&n.subscribe(e,(()=>E(u.getIcon()))),()=>{u.onIsActualIntervalChange().unsubscribeAll(e),u.onLockChanged().unsubscribeAll(e),u.onVisibilityChanged().unsubscribeAll(e),
u.onSyncStateChanged().unsubscribeAll(e),t&&t.unsubscribeAll(e),W.current&&clearTimeout(W.current),n&&n.unsubscribeAll(e)}}),[u]),(0,o.useEffect)((()=>{f&&y.current&&(y.current.focus(),y.current.setSelectionRange(0,_.length))}),[f]),(0,o.useEffect)((()=>{const e={};return g.hoveredObjectChanged().subscribe(e,X),()=>{g.hoveredObjectChanged().unsubscribeAll(e)}}),[d]),(0,o.useEffect)((()=>{g.setHoveredObject(a?t:null)}),[a]),(0,o.useEffect)((()=>{!s&&W.current&&(clearTimeout(W.current),W.current=null),b(!1)}),[s]);const H={};if(c){const e=g.entity(c);e&&(H["data-parent-name"]=e.title()),H["data-type"]=u.hasChildren()?"group":"data-source"}const V=kn.enabled("test_show_object_tree_debug")?`<${u.id()}> (${u.zOrder()}) ${u.title()}`:u.title(),G=a||O,U=f&&s,Z=!!p&&p.isTouch,K=!!p&&p.isDialog,Y=z&&N?Vn:Gn,$=u.hasChildren()?v.t(null,void 0,n(38207)):v.t(null,void 0,n(39781));let q=null;return w&&w.type===En.Svg&&(q=o.createElement(k.Icon,{icon:w.content||"",className:Un.icon})),o.createElement("span",{className:I(Un.wrap,i&&Un.disabled,s&&Un.selected,r&&Un.offset,l&&Un.childOfSelected,O&&!i&&!s&&!l&&Un.hover,K&&!i&&!s&&!l&&Un.dialog),onMouseDown:function(e){f&&!(0,T.ensureNotNull)(y.current).contains(e.target)&&F(!0)},onClick:1===m?J:function(e){if(e.defaultPrevented)return;if(0!==(0,C.modifiersFromEvent)(e))return;if(W.current)e.preventDefault(),clearTimeout(W.current),W.current=null,g.openProperties(u),F(!1);else{const e=g.selection().selected();W.current=setTimeout((()=>{W.current=null,s&&!B&&1===e.length&&g.rename(u,(()=>b(!0))),F(!1)}),500)}},onContextMenu:Z?void 0:J},!U&&o.createElement(o.Fragment,null,q,!1,o.createElement("span",{className:I(Un.title,g.isMain(u)&&Un.main,(!u.isVisible()||!z)&&Un.disabled),...H},V),o.createElement("span",{className:Un.rightButtons},u.canBeLocked()&&o.createElement(Nn,{title:M?jn:Rn,icon:M?Wn:Hn,className:I(Un.button,(G||M)&&Un.visible,"apply-common-tooltip"),onClick:function(e){if(e.defaultPrevented)return;e.preventDefault(),g.setIsLocked(t,!u.isLocked())},"data-role":"button","data-name":"lock","data-active":M}),o.createElement(Nn,{icon:Y,className:I(Un.button,!z&&Un.warn,(G||!N||!z)&&Un.visible,"apply-common-tooltip"),onClick:z?function(e){if(e.defaultPrevented)return;e.preventDefault(),g.setIsVisible(t,!u.isVisible())}:function(e){if(e.defaultPrevented)return;e.preventDefault(),g.openProperties(u,Bn.TabNames.visibility)},title:function(){if(!z)return $;return N?An:On}(),"data-role":"button","data-name":"hide","data-active":!N}),u.canBeRemoved()&&o.createElement(Nn,{title:Pn,icon:Fn,className:I(Un.button,(Z||G)&&Un.visible,"apply-common-tooltip"),onClick:function(e){if(e.defaultPrevented)return;e.preventDefault(),e.stopPropagation(),g.remove(t)},"data-role":"button","data-name":"remove"}))),U&&o.createElement(Mn.InputControl,{value:_,onChange:function(e){S(e.currentTarget.value)},onClick:_n.preventDefault,className:Un.renameInput,onKeyDown:function(e){27===(0,C.hashFromEvent)(e)?(e.preventDefault(),S(u.title()),b(!1)):13===(0,C.hashFromEvent)(e)&&(e.preventDefault(),Q())},
reference:function(e){y.current=e},onBlur:Q,onDragStart:function(e){e.preventDefault(),e.stopPropagation()},draggable:!0,stretch:!0}));function J(e){e.defaultPrevented||f||!u.fullyConstructed()||(e.preventDefault(),e.persist(),g.openContextMenu(u,(()=>b(!0)),e))}function Q(){""!==_&&u.setName(_),S(u.title()),b(!1)}function X(e){if(u.hasChildren()&&!d){const t=null!==e&&u.childrenIds().has(e);P(t)}else P(t===e)}}var Yn=n(17742);class $n extends o.PureComponent{constructor(e){super(e),this._isMounted=!1,this._dialogRef=o.createRef(),this._renderChildren=e=>o.createElement(qn,{isSmallTablet:e,viewModel:this.props.viewModel}),this._handleMediaChange=()=>{this.state.showDrawer&&!window.matchMedia(y.DialogBreakpoints.TabletSmall).matches&&this.setState({showDrawer:!1})},this._onManageDrawings=e=>{throw new Error("not supported")},this._closeDrawer=()=>{this.setState({showDrawer:!1})},this._handleContextMenuOpened=e=>{this.setState({isContextMenuOpened:e})},this._matchMedia=window.matchMedia(y.DialogBreakpoints.TabletSmall),this.state={showDrawer:!1,showDialog:!1,isContextMenuOpened:!1}}componentDidMount(){this._isMounted=!0,this._matchMedia.addListener(this._handleMediaChange),this.props.viewModel.isContextMenuOpened().subscribe(this._handleContextMenuOpened)}componentWillUnmount(){this._isMounted=!1,this._matchMedia.removeListener(this._handleMediaChange),this.props.viewModel.isContextMenuOpened().unsubscribe(this._handleContextMenuOpened)}render(){return o.createElement(o.Fragment,null,o.createElement(f.MatchMedia,{rule:y.DialogBreakpoints.TabletSmall},(e=>o.createElement(b.AdaptivePopupDialog,{additionalElementPos:"after",additionalHeaderElement:!1,className:Yn.dialog,dataName:"object-tree-dialog",isOpened:!0,onClickOutside:this.state.showDialog||e||this.state.isContextMenuOpened?()=>{}:this.props.onClose,onClose:this.props.onClose,ref:this._dialogRef,render:()=>this._renderChildren(e),title:v.t(null,void 0,n(31095)),showSeparator:!0}))),o.createElement(m.DrawerManager,null,this.state.showDrawer&&o.createElement(p.Drawer,{onClose:this._closeDrawer,position:"Bottom"},o.createElement(_.ManageDrawings,{onClose:this._closeDrawer,chartWidget:this.props.activeChartWidget,isMobile:!0}))))}}function qn(e){const{isSmallTablet:t,viewModel:n}=e,r=(0,o.useMemo)((()=>({size:t?1:0,smallSizeTreeNodeAction:0})),[t]);return o.createElement(Ct.Provider,{value:r},o.createElement(Tn,{nodeRenderer:Zn,showHeader:!1,viewModel:n,isDialog:!0}))}var Jn=n(16216),Qn=n(98310),Xn=n(57898);var eo=n(32112);function to(e,t){return`${e}:${t}`}function no(e){const t=e.split(":");return{persistentId:t[0],instanceId:t[1]}}class oo{constructor(e){this._onChange=new Xn.Delegate,this._recalculate=()=>{const e=this._groupModel.groups().map((e=>to(e.id,e.instanceId()))),t=this._selectionApi.allSources();this._selected=this._selected.filter((n=>e.includes(n)||t.includes(n))),this._onChange.fire(this._selected)},this._model=e,this._selectionApi=new eo.SelectionApi(this._model),this._groupModel=this._model.lineToolsGroupModel(),
this._selected=this._getSelectedIds(),this._selectionApi.onChanged().subscribe(this,(()=>{this._selected=this._getSelectedIds(),this._onChange.fire(this._selected)})),this._groupModel.onChanged().subscribe(this,this._recalculate)}destroy(){this._selectionApi.onChanged().unsubscribeAll(this),this._groupModel.onChanged().unsubscribeAll(this)}set(e){const t=[];let n=e.map((e=>e.id()));for(const o of e)if(o.hasChildren()){const e=o.childrenIds();t.push(...Array.from(e.values())),n=n.filter((t=>!e.has(t)))}else t.push(o.id());this._selectionApi.set(t.map((e=>no(e).persistentId))),this._selected=n,this._onChange.fire(this._selected)}canBeAddedToSelection(e){return null!==e&&e.canBeAddedToSelection()}onChange(){return this._onChange}selected(){return this._selected}_getSelectedIds(){return this._selectionApi.allSources().map((e=>this._model.dataSourceForId(e))).filter(dt.notNull).filter((e=>e.showInObjectTree())).map((e=>to(e.id(),e.instanceId())))}}class ro{constructor(e,t){this._controller=e,this._facade=t,this._groupModel=e.model().lineToolsGroupModel()}buildTree(){const e={};for(const t of this._controller.model().panes()){const n=t.sourcesByGroup().all().filter((e=>e.showInObjectTree()));e[t.id()]=io(t.id(),0);for(const n of this._groupModel.groups()){const o=to(n.id,n.instanceId()),r=(0,T.ensureNotNull)(this._facade.getObjectById(o));if(r.pane()===t){const o=[...n.lineTools()].sort(((e,t)=>e.zorder()>t.zorder()?-1:1)).map((e=>to(e.id(),e.instanceId())));e[r.id()]=io(r.id(),1,t.id(),o),e[t.id()].children.push(r.id());for(const t of o)e[t]=io(t,2,r.id())}}for(const o of n){const n=to(o.id(),o.instanceId());e[n]||(e[n]=io(n,1,t.id()),e[t.id()].children.push(n))}e[t.id()].children.sort(((e,t)=>{const n=(0,T.ensureNotNull)(this._facade.getObjectById(e)),o=(0,T.ensureNotNull)(this._facade.getObjectById(t));return(0,T.ensureNotNull)(o.zOrder())-(0,T.ensureNotNull)(n.zOrder())}))}return this._facade.invalidateCache(new Set(Object.keys(e))),e}}function io(e,t,n,o=[]){return{id:e,level:t,parentId:n,children:o}}var so=n(36298),lo=n(92249),ao=n(28853),co=n(14292),uo=n(76544),ho=n(73212),go=n(88348),po=n(37591),mo=n(7295),fo=n(28824),vo=n(57674);const bo=new so.TranslatedString("show {title}",v.t(null,void 0,n(87358))),yo=new so.TranslatedString("hide {title}",v.t(null,void 0,n(70301))),_o=new so.TranslatedString("lock {title}",v.t(null,void 0,n(50193))),So=new so.TranslatedString("unlock {title}",v.t(null,void 0,n(92421))),wo=new so.TranslatedString("change {sourceTitle} title to {newSourceTitle}",v.t(null,void 0,n(40001))),Co=new so.TranslatedString("insert source(s) after",v.t(null,void 0,n(8343)));function To(e,t){return t.every((t=>!(t.pane()!==e&&!t.allowsMovingbetweenPanes())))}function Io(e){return e instanceof co.DataSource&&e.showInObjectTree()?to(e.id(),e.instanceId()):null}function Eo(e){return new so.TranslatedString(e.name(),e.title(po.TitleDisplayTarget.DataWindow))}const ko=new Xn.Delegate;class Mo{constructor(e,t){this._syncStateChanged=new Xn.Delegate,this._updateSyncState=()=>{this._syncStateChanged.fire((0,
T.ensureNotNull)(this.getDrawingSyncState()))},this._undoModel=e,this._dataSource=t,(0,lo.isLineTool)(this._dataSource)&&(this._dataSource.linkKey().subscribe(this._updateSyncState),this._dataSource.sharingMode().subscribe(this._updateSyncState));const n=this._undoModel.lineBeingCreated();null!==n&&n===t&&n.isSynchronizable()&&go.isToolCreatingNow.subscribe(this._updateSyncState)}destroy(){(0,lo.isLineTool)(this._dataSource)&&(this._dataSource.linkKey().unsubscribe(this._updateSyncState),this._dataSource.sharingMode().unsubscribe(this._updateSyncState)),go.isToolCreatingNow.unsubscribe(this._updateSyncState)}id(){return to(this._dataSource.id(),this._dataSource.instanceId())}title(){const e=this._dataSource;return(0,lo.isLineTool)(e)?e.properties().title.value()||e.translatedType():(0,uo.isSeries)(e)&&this._undoModel.mainSeries()===e?e.symbolTitle(po.TitleDisplayTarget.DataWindow,void 0,void 0,(0,bt.onWidget)()?"exchange":"listed_exchange"):e.title(po.TitleDisplayTarget.DataWindow)}gaLabel(){return(0,ao.isStudy)(this._dataSource)?"Study":(0,lo.isLineTool)(this._dataSource)?"Drawing":"Symbol"}canBeLocked(){return(0,lo.isLineTool)(this._dataSource)&&this._dataSource.userEditEnabled()}canBeRemoved(){return this._undoModel.mainSeries()!==this._dataSource&&this._dataSource.isUserDeletable()}canBeHidden(){return this._dataSource.canBeHidden()}canBeRenamed(){return(0,lo.isLineTool)(this._dataSource)}fullyConstructed(){return this._undoModel.lineBeingCreated()!==this._dataSource}isVisible(){return this._dataSource.properties().visible.value()}isActualInterval(){return!(0,lo.isLineTool)(this._dataSource)&&!(0,ao.isStudy)(this._dataSource)||this._dataSource.isActualInterval()}onIsActualIntervalChange(){return(0,lo.isLineTool)(this._dataSource)||(0,ao.isStudy)(this._dataSource)?this._dataSource.onIsActualIntervalChange():ko}isLocked(){return!!(0,lo.isLineTool)(this._dataSource)&&this._dataSource.properties().frozen.value()}onVisibilityChanged(){return this._dataSource.properties().visible.listeners()}onLockChanged(){return(0,lo.isLineTool)(this._dataSource)?this._dataSource.properties().frozen.listeners():ko}getIcon(){const e=c,t=this._dataSource.getSourceIcon(),n=(0,ao.isStudyStrategy)(this._dataSource);let o={type:En.Svg,content:n?mo:fo};if(e&&t)if("loadSvg"===t.type){const[n,r]=t.svgId.split("."),i="linetool"===n?e.linetool[r]:e.series[Number(r)];o={type:En.Svg,content:i||fo}}else"svgContent"===t.type&&(o={type:En.Svg,content:t.content});return o}onIconChanged(){if(this._dataSource.onSourceIconChanged)return this._dataSource.onSourceIconChanged()}setVisible(e){const t=(e?bo:yo).format({title:Eo(this._dataSource)});this._undoModel.setProperty(this._dataSource.properties().visible,e,t)}setLocked(e){if((0,lo.isLineTool)(this._dataSource)){const t=(e?_o:So).format({title:Eo(this._dataSource)});this._undoModel.setProperty(this._dataSource.properties().frozen,e,t)}}setName(e){if((0,lo.isLineTool)(this._dataSource)){const t=wo.format({sourceTitle:this._dataSource.properties().title.value()||Eo(this._dataSource),newSourceTitle:e})
;this._undoModel.setProperty(this._dataSource.properties().title,e,t,!0)}}isCopiable(){return this._dataSource.copiable()}isClonable(){return this._dataSource.cloneable()}zOrder(){return this._dataSource.zorder()}remove(){this._undoModel.removeSource(this._dataSource,!1)}canBeAddedToSelection(){return this._undoModel.selection().canBeAddedToSelection(this._dataSource)}setAsSelection(){this._undoModel.model().selectionMacro((e=>{e.clearSelection(),e.addSourceToSelection(this._dataSource)}))}addToSelection(){this._undoModel.model().selectionMacro((e=>{e.addSourceToSelection(this._dataSource)}))}addSourcesToArray(e){return e.push(this._dataSource),e}insertSourcesBeforeThis(e){this._insertSources(e,(e=>this._undoModel.insertBefore(e,this._dataSource)))}insertSourcesAfterThis(e){this._insertSources(e,(e=>this._undoModel.insertAfter(e,this._dataSource)))}childrenIds(){return new Set}hasChildren(){return!1}pane(){return(0,T.ensureNotNull)(this._undoModel.model().paneForSource(this._dataSource))}allowsMovingbetweenPanes(){return!(0,lo.isLineTool)(this._dataSource)}canBeAddedToGroup(){return(0,lo.isLineTool)(this._dataSource)&&this._dataSource.boundToSymbol()}canInsertBeforeThis(e){return this._canInsertBeforeOrAfter(e)}canInsertAfterThis(e){return this._canInsertBeforeOrAfter(e)}detachFromParent(){if((0,lo.isLineTool)(this._dataSource)){const e=this._undoModel.model(),t=this._undoModel.lineToolsGroupController(),n=e.lineToolsGroupModel().groupForLineTool(this._dataSource);null!==n&&t.excludeLineToolFromGroup(n,this._dataSource)}}onTitleChanged(){const e=this._dataSource.properties().title;return e?e.listeners():void 0}canBeSyncedInLayout(){return(0,lo.isLineTool)(this._dataSource)&&this._dataSource.isSynchronizable()}onSyncStateChanged(){return this._syncStateChanged}setDrawingSyncState(e){if(!this.canBeSyncedInLayout()||!this.fullyConstructed())return;const t=this._dataSource;switch(e){case 0:if(null===t.linkKey().value())return;this._undoModel.unlinkLines([t]);break;case 1:if(null!==t.linkKey().value())return;this._undoModel.shareLineTools([t],1)}}getDrawingSyncState(){return this.canBeSyncedInLayout()?this.fullyConstructed()&&null!==this._dataSource.linkKey().value()?1:0:null}doNotAffectChartInvalidation(){return(0,lo.isLineTool)(this._dataSource)}_canInsertBeforeOrAfter(e){const t=this._undoModel.model();if(!To(this.pane(),e))return!1;if((0,lo.isLineTool)(this._dataSource)){if(null!==t.lineToolsGroupModel().groupForLineTool(this._dataSource)&&e.some((e=>!e.canBeAddedToGroup())))return!1}return!0}_insertSources(e,t){const n=this._undoModel.model(),o=this._undoModel.lineToolsGroupController();this._undoModel.beginUndoMacro(Co);const r=()=>{e.forEach((e=>e.detachFromParent()))},i=e.reduce(((e,t)=>t.addSourcesToArray(e)),[]);if((0,lo.isLineTool)(this._dataSource)){const t=n.lineToolsGroupModel().groupForLineTool(this._dataSource);null!==t?((0,T.assert)(!e.some((e=>e.hasChildren()))),i.forEach((e=>{(0,lo.isLineTool)(e)&&(t.containsLineTool(e)||o.addLineToolToGroup(t,e))}))):r()}else r();t(i),this._undoModel.endUndoMacro()}}
class Do{constructor(e,t){this._onTitleChanged=new Xn.Delegate,this._onVisibilityChanged=new Xn.Delegate,this._onLockChanged=new Xn.Delegate,this._onIsActualIntervalChanged=new Xn.Delegate,this._syncStateChanged=new Xn.Delegate,this._linkKeyChangedBound=this._linkKeyChanged.bind(this),this._undoModel=e,this._group=t,this._lineTools=t.lineTools(),this._paneId=(0,T.ensureNotNull)(e.model().paneForSource(this._lineTools[0])).id();const n=()=>{this._lineTools.forEach((e=>{e.properties().visible.listeners().subscribe(this,(()=>this._onVisibilityChanged.fire())),e.properties().frozen.listeners().subscribe(this,(()=>this._onLockChanged.fire())),e.onIsActualIntervalChange().subscribe(this,(()=>this._onIsActualIntervalChanged.fire())),e.linkKey().subscribe(this._linkKeyChangedBound),e.sharingMode().subscribe(this._linkKeyChangedBound)}))};this._group.onChanged().subscribe(this,(e=>{this._unsubscribeFromAllLineTools(),this._lineTools=this._group.lineTools(),n(),e.lockedChanged&&this._onLockChanged.fire(),e.visibilityChanged&&this._onVisibilityChanged.fire(),e.titleChanged&&this._onTitleChanged.fire(),e.isActualIntervalChanged&&this._onIsActualIntervalChanged.fire();const t=this.getDrawingSyncState();null!==t&&this._syncStateChanged.fire(t)})),n(),this._lastActualZOrder=this.zOrder(),this._lastIsVisible=this.isVisible(),this._lastIsActualInterval=this.isActualInterval(),this._lastIsLocked=this.isLocked()}destroy(){this._unsubscribeFromAllLineTools(),this._group.onChanged().unsubscribeAll(this)}id(){return to(this._group.id,this._group.instanceId())}title(){return this._group.name()}gaLabel(){return"Group"}getIcon(){return{type:En.Svg,content:vo}}canBeRemoved(){return!0}canBeHidden(){return!0}canBeLocked(){return!0}canBeRenamed(){return!0}fullyConstructed(){return!0}isVisible(){return this._group.lineTools().length>0&&(this._lastIsVisible="Invisible"!==this._group.visibility()),this._lastIsVisible}isActualInterval(){return this._group.lineTools().length>0&&(this._lastIsActualInterval=this._group.lineTools().some((e=>e.isActualInterval()))),this._lastIsActualInterval}onIsActualIntervalChange(){return this._onIsActualIntervalChanged}isLocked(){return this._group.lineTools().length>0&&(this._lastIsLocked="Locked"===this._group.locked()),this._lastIsLocked}onTitleChanged(){return this._onTitleChanged}onVisibilityChanged(){return this._onVisibilityChanged}onLockChanged(){return this._onLockChanged}setVisible(e){this._undoModel.lineToolsGroupController().setGroupVisibility(this._group,e)}setLocked(e){this._undoModel.lineToolsGroupController().setGroupLock(this._group,e)}setName(e){this._undoModel.lineToolsGroupController().setGroupName(this._group,e)}isCopiable(){return!1}isClonable(){return!1}zOrder(){return this._group.lineTools().length>0&&(this._lastActualZOrder=this._group.lineTools()[0].zorder()),this._lastActualZOrder}remove(){this._undoModel.lineToolsGroupController().removeGroup(this._group)}canBeAddedToSelection(){const e=this._undoModel.model();return this._lineTools.every((t=>e.selection().canBeAddedToSelection(t)))}
setAsSelection(){this._undoModel.model().selectionMacro((e=>{e.clearSelection(),this._lineTools.forEach((t=>e.addSourceToSelection(t)))}))}addToSelection(){this._undoModel.model().selectionMacro((e=>{this._lineTools.forEach((t=>e.addSourceToSelection(t)))}))}addSourcesToArray(e){return e.push(...this._lineTools),e}detachFromParent(){}insertSourcesBeforeThis(e){const t=this._insertBeforeTarget();this._insertSources(e,(e=>this._undoModel.insertBefore(e,t)))}insertSourcesAfterThis(e){const t=this._insertAfterTarget();this._insertSources(e,(e=>this._undoModel.insertAfter(e,t)))}childrenIds(){const e=[...this._lineTools];return e.sort(((e,t)=>t.zorder()-e.zorder())),new Set(e.map((e=>to(e.id(),e.instanceId()))))}hasChildren(){return!0}pane(){return(0,T.ensureDefined)(this._undoModel.model().panes().find((e=>e.id()===this._paneId)))}allowsMovingbetweenPanes(){return!1}canBeAddedToGroup(){return!1}canInsertBeforeThis(e){return this._canInsertBeforeOrAfter(e)}canInsertAfterThis(e){return this._canInsertBeforeOrAfter(e)}canBeSyncedInLayout(){return this._lineTools.length>0&&this._lineTools[0].isSynchronizable()}onSyncStateChanged(){return this._syncStateChanged}setDrawingSyncState(e){if(this.canBeSyncedInLayout())switch(e){case 0:const e=this._lineTools.filter((e=>null!==e.linkKey().value()));e.length>0&&this._undoModel.unlinkLines(e);break;case 1:const t=this._lineTools.filter((e=>null===e.linkKey().value()));t.length>0&&this._undoModel.shareLineTools(t,1)}}getDrawingSyncState(){return this.canBeSyncedInLayout()?this._lineTools.every((e=>null!==e.linkKey().value()))?1:0:null}doNotAffectChartInvalidation(){return!0}_linkKeyChanged(){this._syncStateChanged.fire((0,T.ensureNotNull)(this.getDrawingSyncState()))}_canInsertBeforeOrAfter(e){return To(this.pane(),e)}_insertSources(e,t){this._undoModel.beginUndoMacro(Co);const n=e.reduce(((e,t)=>t.addSourcesToArray(e)),[]);e.forEach((e=>e.detachFromParent())),t(n),this._undoModel.endUndoMacro()}_insertBeforeTarget(){return(0,T.ensureNotNull)(this._lineTools.reduce(((e,t)=>null===e?t:e.zorder()<t.zorder()?e:t),null))}_insertAfterTarget(){return(0,T.ensureNotNull)(this._lineTools.reduce(((e,t)=>null===e?t:e.zorder()>t.zorder()?e:t),null))}_unsubscribeFromAllLineTools(){this._lineTools.forEach((e=>{e.properties().visible.listeners().unsubscribeAll(this),e.properties().frozen.listeners().unsubscribeAll(this),e.onIsActualIntervalChange().unsubscribeAll(this),e.linkKey().unsubscribe(this._linkKeyChangedBound),e.sharingMode().unsubscribe(this._linkKeyChangedBound)}))}}class No{constructor(e){this._hoveredObjectChanged=new Xn.Delegate,this._entitiesCache=new Map,this._undoModel=e,this._undoModel.model().hoveredSourceChanged().subscribe(this,this._onModelHoveredSourceChanged)}destroy(){for(const e of this._entitiesCache.values())null==e||e.destroy();this._undoModel.model().hoveredSourceChanged().unsubscribe(this,this._onModelHoveredSourceChanged)}getObjectById(e){if(this._entitiesCache.has(e))return(0,T.ensureDefined)(this._entitiesCache.get(e));const t=this._createObjectById(e)
;return this._entitiesCache.set(e,t),t}invalidateCache(e){Array.from(this._entitiesCache.keys()).forEach((t=>{var n;e.has(t)||(null===(n=this._entitiesCache.get(t))||void 0===n||n.destroy(),this._entitiesCache.delete(t))}))}canBeGroupped(e){if(0===e.length||1===e.length&&e[0].hasChildren())return!1;const t=[];if(e.forEach((e=>e.addSourcesToArray(t))),t.some((e=>!(0,lo.isLineTool)(e)||!e.boundToSymbol())))return!1;const n=this._undoModel.model(),o=t.map((e=>n.paneForSource(e)));return!(new Set(o).size>1)}contextMenuActions(e,t,n){const o=new ho.ActionsProvider(e,n),r=[];return t.forEach((e=>e.addSourcesToArray(r))),o.contextMenuActionsForSources(r)}insertBefore(e,t){t.insertSourcesAfterThis(e)}insertAfter(e,t){t.insertSourcesBeforeThis(e)}setHoveredObject(e){const t=this._undoModel.model();if(null===e)return void t.setHoveredSource(null,null);const n=t.dataSourceForId(e);null!==n&&t.setHoveredSource(n,null)}hoveredObjectId(){return Io(this._undoModel.model().hoveredSource())}hoveredObjectChanged(){return this._hoveredObjectChanged}_onModelHoveredSourceChanged(e){this._hoveredObjectChanged.fire(Io(e))}_createObjectById(e){const t=no(e).persistentId,n=this._undoModel.model(),o=n.dataSourceForId(t);if(null!==o)return new Mo(this._undoModel,o);const r=n.lineToolsGroupModel().groupForId(t);return null!==r?new Do(this._undoModel,r):null}}Error;var xo=n(80842),Lo=n(10643),zo=n(39347),jo=n(97145),Ro=n(97874),Ao=n(2872),Oo=n(84959),Po=n(91730),Bo=n(33055),Fo=n(35149);const Wo=(0,l.getLogger)("Platform.GUI.ObjectTree");const Ho=new so.TranslatedString("move objects",v.t(null,void 0,n(40566))),Vo=new so.TranslatedString("lock objects",v.t(null,void 0,n(68163))),Go=new so.TranslatedString("unlock objects",v.t(null,void 0,n(66824))),Uo=new so.TranslatedString("show objects",v.t(null,void 0,n(63549))),Zo=new so.TranslatedString("hide objects",v.t(null,void 0,n(28506))),Ko=new so.TranslatedString("remove objects",v.t(null,void 0,n(57428)));class Yo{constructor(e){this._nodes={},this._onChange=new Xn.Delegate,this._onGroupCreated=new Xn.Delegate,this._subscriptions=[],this._removeSourcesPromise=null,this._timeout=null,this._objects=[],this._options={general:!0,mainSeries:!0,mainSeriesTrade:!0,esdStudies:!0,fundamentals:!0,studies:!0,lineTools:!0,publishedCharts:!0,ordersAndPositions:!0,alerts:!1,chartEvents:!0,objectTree:!1,gotoLineTool:!0},this._isContextMenuOpened=new jo.WatchedValue(!1),this._getObjectsToModify=e=>{const t=this.selection().selected();return t.find((t=>t===e))?t.map(this._ensuredEntity):[this._ensuredEntity(e)]},this._onActiveChartChanged=()=>{this._cleanup(),this._init()},this._cleanup=()=>{null!==this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this._subscriptions.forEach((e=>{e.unsubscribeAll(this)})),this._selection.destroy(),this._chart.unsubscribe(this._onActiveChartChanged),null!==this._removeSourcesPromise&&this._removeSourcesPromise.cancel(),this._facade.destroy()},this._init=()=>{const e=this._chart.value();e.hasModel()&&(this._controller=e.model(),
this._groupController=this._controller.lineToolsGroupController(),this._model=this._controller.model(),this._groupModel=this._model.lineToolsGroupModel(),this._facade=new No(this._controller),this._subscriptions=[this._model.mainSeries().onStyleChanged(),this._model.mainSeries().dataEvents().symbolResolved(),this._model.mainSeries().onIntervalChanged(),this._model.panesCollectionChanged(),this._model.dataSourceCollectionChanged(),this._groupModel.onChanged()],this._subscriptions.forEach((e=>{e.subscribe(this,this._update)})),this._chart.subscribe(this._onActiveChartChanged),this._selection=new oo(this._model),this._update())},this._update=()=>{null===this._timeout&&(this._timeout=setTimeout((()=>{this._recalculateTree(),this._onChange.fire(),this._timeout=null})))},this._ensuredEntity=e=>(0,T.ensureNotNull)(this._getEntityById(e)),this._chart=e,this._init()}destroy(){this._cleanup()}getState(){return{nodes:Object.values(this._nodes),selection:this._selection.selected()}}getChartId(){return this._chart.value().id()}insertSelection(e,t){const n=this._facade,o=this.selection().selected().map(this._ensuredEntity),[r,i]=this._normalizeTargetAndDropType(e,t);this._controller.withMacro(Ho,(()=>{switch(i){case"before":n.insertBefore(o,r);break;case"after":n.insertAfter(o,r)}})),this._update()}entity(e){return this._facade.getObjectById(e)}isMain(e){return no(e.id()).persistentId===this._controller.mainSeries().id()}selection(){return this._selection}setIsLocked(e,t){const n=this._getObjectsToModify(e),o=n.every((e=>e.doNotAffectChartInvalidation())),r=t?Vo:Go;this._controller.withMacro(r,(()=>{for(const e of n)e.setLocked(t)}),o),dn("Lock",hn(n))}setIsVisible(e,t){const n=this._getObjectsToModify(e),o=n.every((e=>e.doNotAffectChartInvalidation())),r=t?Uo:Zo;this._controller.withMacro(r,(()=>{for(const e of n)e.setVisible(t)}),o),dn("Hide",hn(n))}remove(e){const t=()=>{const e=n.every((e=>e.doNotAffectChartInvalidation()));this._controller.withMacro(Ko,(()=>{for(const e of n)e.remove()}),e),dn("Delete",hn(n)),this._update()},n=this._getObjectsToModify(e);t()}canSelectionBeGrouped(){const e=this._getSelectedEntities();return this._facade.canBeGroupped(e)}createGroupFromSelection(){const e=this._groupController.createGroupFromSelection();dn("Create Group");const t=to(e.id,e.instanceId());this.selection().set([this._ensuredEntity(t)]),this._onGroupCreated.fire(t),this._update()}isSelectionDropable(e,t){const n=this.selection().selected().map(this._ensuredEntity),[o,r]=this._normalizeTargetAndDropType(e,t);switch(r){case"after":return o.canInsertAfterThis(n);case"before":return o.canInsertBeforeThis(n)}}onChange(){return this._onChange}onGroupCreated(){return this._onGroupCreated}isSelectionCloneable(){const e=this._getSelectedEntities();return e.length>0&&e.every((e=>e.isClonable()))}isSelectionCopiable(){const e=this._getSelectedEntities();return e.length>0&&e.every((e=>e.isCopiable()))}openProperties(e,t){const n=this._model.dataSourceForId(no(e.id()).persistentId)
;this.selection().selected().length>1&&this.selection().selected().includes(e.id())?this._chart.value().showSelectedSourcesProperties(t):(this.selection().set([e]),null!==n?this._controller.mainSeries()===n?this._chart.value().showGeneralChartProperties():((0,lo.isLineTool)(n)||(0,ao.isStudy)(n))&&this._chart.value().showChartPropertiesForSource(n,t):this._chart.value().showChartPropertiesForSources({sources:this._chart.value().model().selection().lineDataSources(),title:e.title(),tabName:t,renamable:!0}))}canSelectionBeUnmerged(){const e=this._getSelectedEntities();return 1===e.length&&this.canNodeWithIdBeUnmerged(no(e[0].id()).persistentId)}canNodeWithIdBeUnmerged(e){const t=this._model.dataSourceForId(e);return null!==t&&(0,xo.isPriceDataSource)(t)&&this._model.isUnmergeAvailableForSource(t)}unmergeSelectionUp(){this._unmergeSelection(0)}unmergeSelectionDown(){this._unmergeSelection(1)}copySelection(){const e=this._getSelectedEntities(),t=e.map((e=>(0,T.ensureNotNull)(this._model.dataSourceForId(no(e.id()).persistentId))));this._chart.value().chartWidgetCollection().clipboard.uiRequestCopy(t),dn("Copy",hn(e))}cloneSelection(){const e=this._getSelectedEntities(),t=e.map((e=>(0,T.ensureNotNull)(this._model.dataSourceForId(no(e.id()).persistentId))));t.every(lo.isLineTool)&&(this._controller.cloneLineTools([...t],!1),dn("Clone",hn(e)))}rename(e,t){const n=this._getObjectsToModify(e.id());1===n.length&&n.some((e=>e.canBeRenamed()))&&(t(),dn("Rename",hn(n)))}async openContextMenu(e,t,n){var o;this._objects=this._getObjectsToModify(e.id());const r=this._facade.canBeGroupped(this._objects);let i;if(this._objects.some((e=>e.hasChildren())))i=this._getActionsForGroupItem(e,t,r);else{const e=await this._facade.contextMenuActions(this._chart.value(),this._objects,this._options);if(i=Array.from(e).filter(((e,t,n)=>"separator"!==e.type||!n[t+1]||"separator"!==n[t+1].type)),1===this._objects.length&&this._objects[0].canBeRenamed()){const e=i.findIndex((e=>"Copy"===e.id));i.splice(-1===e?i.length:e+1,0,this._getRenameAction(t))}if(r){const e=i.findIndex((e=>"Clone"===e.id));i.splice(-1===e?0:e,0,this._getGroupAction())}}if(i.length>0){this._chart.value().updateActions();const t=no(e.id()).persistentId,r=this._model.dataSourceForId(t),s=r instanceof uo.Series,l=0!==e.childrenIds().size;let a;a=s?{menuName:"ObjectTreeContextMenu",detail:{type:"series",id:r.instanceId()}}:(0,lo.isLineTool)(r)?{menuName:"ObjectTreeContextMenu",detail:{type:"shape",id:null!==(o=null==r?void 0:r.id())&&void 0!==o?o:null}}:l?{menuName:"ObjectTreeContextMenu",detail:{type:"groupOfShapes",id:t||null}}:{menuName:"ObjectTreeContextMenu",detail:{type:"study",id:(null==r?void 0:r.id())||null}},Lo.ContextMenuManager.showMenu(i,n,{takeFocus:!0,returnFocus:!0},a,(()=>{this._isContextMenuOpened.setValue(!1)})).then((()=>{this._isContextMenuOpened.setValue(!0)}))}}setHoveredObject(e){this._facade.setHoveredObject(e)}hoveredObjectChanged(){return this._facade.hoveredObjectChanged()}getNextNodeIdAfterRemove(e){var t
;const{nodes:n}=this.getState(),o=no(e).persistentId,r=n.find((t=>t.id===e)),i=this.entity(e);if(!(r&&r.parentId&&i&&i.canBeRemoved()))return null;if((null===(t=i.pane().mainDataSource())||void 0===t?void 0:t.id())===o&&!this.canNodeWithIdBeUnmerged(o)){const e=n.filter((e=>0===e.level)).map((e=>e.id)),t=this._takeNextOrPrevElement(e,r.parentId);return(0,T.ensureDefined)(n.find((e=>e.id===t))).children[0]}const s=(0,T.ensureDefined)(n.find((e=>e.id===r.parentId))).children;return 1===s.length?this.getNextNodeIdAfterRemove(r.parentId):this._takeNextOrPrevElement(s,e)}isContextMenuOpened(){return this._isContextMenuOpened.readonly()}getChartLayout(){return this._chart.value().chartWidgetCollection().layout}_takeNextOrPrevElement(e,t){const n=e.indexOf(t);return e[n===e.length-1?n-1:n+1]}_getGroupAction(){return new zo.Action({actionId:"ObjectsTree.CreateGroup",label:Ln,icon:R,onExecute:()=>{this.createGroupFromSelection()}})}_getRenameAction(e){return new zo.Action({actionId:"ObjectsTree.RenameItem",label:zn,icon:Bo,onExecute:()=>{e(),dn("Context menu rename",hn(this._objects))}})}_getActionsForGroupItem(e,t,n){const o=[];this._objects.forEach((e=>e.addSourcesToArray(o)));const r=[];1===this._objects.length&&r.unshift(this._getRenameAction(t),new zo.Separator),n&&r.unshift(this._getGroupAction(),new zo.Separator);const i=(0,ho.createSyncDrawingActions)(this._chart.value(),o.filter(lo.isLineTool));i.length&&(i.shift(),i.push(new zo.Separator),r.push(...i));const s=this._chart.value().actions().format.getState();return r.push(new zo.Action({actionId:"ObjectsTree.ToggleItemLocked",label:e.isLocked()?jn:Rn,icon:e.isLocked()?Ro:Ao,onExecute:()=>this.setIsLocked(e.id(),!e.isLocked())}),new zo.Action({actionId:"ObjectsTree.ToggleItemVisibility",label:e.isVisible()?An:On,icon:e.isVisible()?Oo:Po,onExecute:()=>this.setIsVisible(e.id(),!e.isVisible())}),new zo.Action({actionId:"ObjectsTree.RemoveItem",label:Pn,icon:Fo,onExecute:()=>this.remove(e.id()),hotkeyHash:C.isMacKeyboard?8:46}),new zo.Separator,new zo.Action({actionId:s.actionId,label:s.label,icon:s.icon,onExecute:()=>this.openProperties(e)})),r}_unmergeSelection(e){const t=this._getSelectedEntities();if(1!==t.length)throw new Error("Only one object can be unmerged");const n=t[0],o=(0,T.ensureNotNull)(this._model.dataSourceForId(no(n.id()).persistentId));if(!(0,xo.isPriceDataSource)(o))throw new Error("Entity is not IPriceDataSource");(0===e?this._controller.unmergeSourceUp:this._controller.unmergeSourceDown).call(this._controller,o);dn(0===e?"New pane above":"New pane below",hn([n]))}_recalculateTree(){const e=new ro(this._controller,this._facade);this._nodes=e.buildTree()}_normalizeTargetAndDropType(e,t){let n=this._ensuredEntity(e);return"inside"===t&&(t="before",n=(0,T.ensureNotNull)(this.entity([...n.childrenIds()].shift()||""))),[n,t]}_getSelectedEntities(){const{selected:e,removed:t}=this._selection.selected().reduce(((e,t)=>{const n=this._getEntityById(t);return n?(e.selected.push(n),e):(e.removed.push(t),e)}),{selected:[],removed:[]})
;return t.length&&Wo.logWarn(`Detected dangling sources in selection. They will be ignored: ${JSON.stringify(t)}`),e}_getEntityById(e){return this._facade.getObjectById(e)}}var $o=n(85067);class qo extends $o.DialogRenderer{constructor(){super(),this._handleClose=()=>{r.unmountComponentAtNode(this._container),this._setVisibility(!1),null!==this._viewModel&&(this._viewModel.destroy(),this._viewModel=null)};const e=(0,Jn.service)(Qn.CHART_WIDGET_COLLECTION_SERVICE);this._activeChartWidget=e.activeChartWidget.value(),this._viewModel=new Yo(e.activeChartWidget)}hide(){this._handleClose()}isVisible(){return this.visible().value()}show(){g().then((()=>{null!==this._viewModel&&(r.render(o.createElement($n,{onClose:this._handleClose,viewModel:this._viewModel,activeChartWidget:this._activeChartWidget}),this._container),this._setVisibility(!0))}))}}},37968:(e,t,n)=>{"use strict";n.d(t,{useForceUpdate:()=>r});var o=n(50959);const r=()=>{const[,e]=(0,o.useReducer)((e=>e+1),0);return e}},77975:(e,t,n)=>{"use strict";n.d(t,{useWatchedValueReadonly:()=>r});var o=n(50959);const r=(e,t=!1)=>{const n="watchedValue"in e?e.watchedValue:void 0,r="defaultValue"in e?e.defaultValue:e.watchedValue.value(),[i,s]=(0,o.useState)(n?n.value():r);return(t?o.useLayoutEffect:o.useEffect)((()=>{if(n){s(n.value());const e=e=>s(e);return n.subscribe(e),()=>n.unsubscribe(e)}return()=>{}}),[n]),i}},63932:(e,t,n)=>{"use strict";n.d(t,{Spinner:()=>s});var o=n(50959),r=n(97754),i=n(58096);n(83135);function s(e){const t=r(e.className,"tv-spinner","tv-spinner--shown",`tv-spinner--size_${i.spinnerSizeMap[e.size||i.DEFAULT_SIZE]}`);return o.createElement("div",{className:t,style:e.style,role:"progressbar"})}},29540:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72 72" width="72" height="72"><path fill="currentColor" d="M15 24a21 21 0 1 1 42 0v7.41l8.97 5.01 1.08.6-.82.94-7.77 8.82 2.34 2.53-1.47 1.36L57 48.15V69H46v-7h-6v5h-9V56h-6v13H15V48.15l-2.33 2.52-1.47-1.36 2.35-2.53-7.78-8.82-.82-.93 1.08-.6L15 31.4V24Zm0 9.7-6.9 3.87L15 45.4V33.7Zm42 11.7 6.91-7.83-6.9-3.87v11.7ZM36 5a19 19 0 0 0-19 19v43h6V54h10v11h5v-5h10v7h7V24A19 19 0 0 0 36 5Zm-5 19.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM42.5 26a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"/></svg>'},36296:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z"/></svg>'},33055:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M17.086 6.207a2 2 0 0 1 2.828 0l1.879 1.879a2 2 0 0 1 0 2.828l-.94.94-9 9-1 1-.146.146H6v-4.707l.146-.146 1-1 9-9 .94-.94zm2.121.707a1 1 0 0 0-1.414 0l-.586.586 1.647 1.646 1.646 1.647.586-.586a1 1 0 0 0 0-1.414l-1.879-1.879zm.586 4.586L18.5 10.207 10.207 18.5l1.293 1.293 8.293-8.293zm-9 9l-1.647-1.646L7.5 17.207l-.5.5V21h3.293l.5-.5zm-2.586-4L9.5 17.793 17.793 9.5 16.5 8.207 8.207 16.5z"/></svg>'},69533:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="none"><path stroke="currentColor" d="M8 5l3.5 3.5L8 12"/></svg>'},57674:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M5.5 11.5v8a1 1 0 0 0 1 1h15a1 1 0 0 0 1-1v-8m-17 0v-4a1 1 0 0 1 1-1h4l2 2h9a1 1 0 0 1 1 1v2m-17 0h17"/></svg>'},80465:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M5.5 6C4.67 6 4 6.67 4 7.5V20.5c0 .83.67 1.5 1.5 1.5H16v-1H5.5a.5.5 0 0 1-.5-.5V12h16v1h1V9.5c0-.83-.67-1.5-1.5-1.5h-8.8L9.86 6.15 9.71 6H5.5zM21 11H5V7.5c0-.28.22-.5.5-.5h3.8l1.85 1.85.14.15h9.21c.28 0 .5.22.5.5V11zm1 11v-3h3v-1h-3v-3h-1v3h-3v1h3v3h1z"/></svg>'},94007:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M2.448 10.124a10.82 10.82 0 0 1-.336-.609L2.105 9.5l.007-.015a12.159 12.159 0 0 1 1.686-2.466C5.002 5.665 6.752 4.373 9.05 4.373c2.297 0 4.047 1.292 5.25 2.646a12.166 12.166 0 0 1 1.687 2.466l.007.015-.007.015a12.163 12.163 0 0 1-1.686 2.466c-1.204 1.354-2.954 2.646-5.251 2.646-2.298 0-4.048-1.292-5.252-2.646a12.16 12.16 0 0 1-1.35-1.857zm14.558-.827l-.456.203.456.203v.002l-.003.005-.006.015-.025.052a11.813 11.813 0 0 1-.461.857 13.163 13.163 0 0 1-1.463 2.011c-1.296 1.46-3.296 2.982-5.998 2.982-2.703 0-4.703-1.522-6-2.982a13.162 13.162 0 0 1-1.83-2.677 7.883 7.883 0 0 1-.118-.243l-.007-.015-.002-.005v-.001l.456-.204-.456-.203v-.002l.002-.005.007-.015a4.66 4.66 0 0 1 .119-.243 13.158 13.158 0 0 1 1.83-2.677c1.296-1.46 3.296-2.982 5.999-2.982 2.702 0 4.702 1.522 5.998 2.981a13.158 13.158 0 0 1 1.83 2.678 8.097 8.097 0 0 1 .119.243l.006.015.003.005v.001zm-.456.203l.456-.203.09.203-.09.203-.456-.203zM1.092 9.297l.457.203-.457.203-.09-.203.09-.203zm9.958.203c0 1.164-.917 2.07-2 2.07-1.084 0-2-.906-2-2.07 0-1.164.916-2.07 2-2.07 1.083 0 2 .906 2 2.07zm1 0c0 1.695-1.344 3.07-3 3.07-1.657 0-3-1.375-3-3.07 0-1.695 1.343-3.07 3-3.07 1.656 0 3 1.375 3 3.07z"/></svg>'},52870:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M7 5.5a2.5 2.5 0 0 1 5 0V7H7V5.5zM6 7V5.5a3.5 3.5 0 1 1 7 0V7a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2zm8 2a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V9zm-3 2.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"/></svg>'},74059:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M21.106 12.5H6.894a.5.5 0 0 1-.318-.886L14 5.5l7.424 6.114a.5.5 0 0 1-.318.886zM21.106 16.5H6.894a.5.5 0 0 0-.318.886L14 23.5l7.424-6.114a.5.5 0 0 0-.318-.886z"/></svg>'},91730:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M4.605 14.089A10.052 10.052 0 0 1 4.56 14l.046-.089a17.18 17.18 0 0 1 2.329-3.327C8.58 8.758 10.954 7 14 7c3.046 0 5.421 1.757 7.066 3.585A17.18 17.18 0 0 1 23.44 14l-.046.089a17.18 17.18 0 0 1-2.329 3.327C19.42 19.242 17.046 21 14 21c-3.046 0-5.421-1.757-7.066-3.584a17.18 17.18 0 0 1-2.329-3.327zm19.848-.3L24 14l.453.212-.001.002-.003.005-.009.02a16.32 16.32 0 0 1-.662 1.195c-.44.72-1.1 1.684-1.969 2.65C20.08 20.008 17.454 22 14 22c-3.454 0-6.079-1.993-7.81-3.916a18.185 18.185 0 0 1-2.469-3.528 10.636 10.636 0 0 1-.161-.318l-.01-.019-.002-.005v-.002L4 14a55.06 55.06 0 0 1-.453-.212l.001-.002.003-.005.009-.02.033-.067a16.293 16.293 0 0 1 .629-1.126c.44-.723 1.1-1.686 1.969-2.652C7.92 7.993 10.546 6 14 6c3.454 0 6.079 1.993 7.81 3.916a18.183 18.183 0 0 1 2.469 3.528 10.588 10.588 0 0 1 .161.318l.01.019.002.005v.002zM24 14l.453-.211.099.211-.099.211L24 14zm-20.453-.211L4 14l-.453.211L3.448 14l.099-.211zM11 14a3 3 0 1 1 6 0 3 3 0 0 1-6 0zm3-4a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm0 5a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"/></svg>'},7295:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M4.5 12.5l4.59-4.59a2 2 0 0 1 2.83 0l3.17 3.17a2 2 0 0 0 2.83 0L22.5 6.5m-8 9.5v5.5M12 19l2.5 2.5L17 19m4.5 3v-5.5M19 19l2.5-2.5L24 19"/></svg>'},28824:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path stroke="currentColor" d="M5.5 16.5l4.586-4.586a2 2 0 0 1 2.828 0l3.172 3.172a2 2 0 0 0 2.828 0L23.5 10.5"/></svg>'},49756:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M11.5 4A2.5 2.5 0 0 0 7 5.5V7h6a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2V5.5a3.5 3.5 0 0 1 6.231-2.19c-.231.19-.73.69-.73.69zM13 8H6a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1zm-2 3.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"/></svg>'},62766:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M14.692 3.012l-12 12.277.715.699 12-12.277-.715-.699zM9.05 15.627a7.042 7.042 0 0 1-3.144-.741l.742-.76c.72.311 1.52.5 2.402.5 2.297 0 4.047-1.29 5.25-2.645a12.168 12.168 0 0 0 1.687-2.466l.007-.015-.007-.015A12.166 12.166 0 0 0 14.3 7.019c-.11-.124-.225-.247-.344-.37l.699-.715c.137.14.268.28.392.42a13.16 13.16 0 0 1 1.83 2.678 8.117 8.117 0 0 1 .119.243l.006.015.003.005v.001l-.456.204.456.203v.002l-.003.005-.006.015-.025.052a11.762 11.762 0 0 1-.461.857 13.158 13.158 0 0 1-1.463 2.011c-1.296 1.46-3.296 2.982-5.998 2.982zm7.5-6.127l.456-.203.09.203-.09.203-.456-.203zm-7.5 3.07c-.27 0-.53-.037-.778-.105l.879-.899c.999-.052 1.833-.872 1.895-1.938l.902-.923c.066.253.102.52.102.795 0 1.695-1.344 3.07-3 3.07zM6.15 10.294l.902-.923c.063-1.066.896-1.886 1.895-1.938l.879-.9a2.94 2.94 0 0 0-.777-.103c-1.657 0-3 1.374-3 3.069 0 .275.035.541.101.795zM9.05 4.373c.88 0 1.68.19 2.4.5l.743-.759a7.043 7.043 0 0 0-3.143-.74c-2.703 0-4.703 1.521-6 2.98a13.159 13.159 0 0 0-1.83 2.678 7.886 7.886 0 0 0-.118.243l-.007.015-.002.005v.001l.456.204-.457-.203-.09.203.09.203.457-.203-.456.203v.002l.002.005.007.015a4.5 4.5 0 0 0 .119.243 13.152 13.152 0 0 0 1.83 2.677c.124.14.255.28.392.42l.7-.715c-.12-.122-.235-.245-.345-.369a12.156 12.156 0 0 1-1.686-2.466L2.105 9.5l.007-.015a12.158 12.158 0 0 1 1.686-2.466C5.002 5.665 6.752 4.373 9.05 4.373z"/></svg>'},98129:e=>{e.exports={ar:["استنساخ ، نسخ"],ca_ES:["Clona, Copia"],cs:"Clone, Copy",de:["Klonen, Kopieren"],el:"Clone, Copy",en:"Clone, Copy",es:["Clonar, Copiar"],fa:"Clone, Copy",fr:["Cloner, Copier"],he_IL:["שכפל, העתק"],hu_HU:"Clone, Copy",id_ID:["Duplikat, Salin"],it:["Clona, copia"],ja:["複製、コピー"],ko:["클론, 카피"],ms_MY:["Klon, Salin"],nl_NL:"Clone, Copy",pl:["Klonuj, Kopiuj"],pt:["Clonar, Copiar"],ro:"Clone, Copy",ru:["Клонировать, копировать"],sv:["Klon, kopiera"],th:["โคลน, ก๊อปปี้"],tr:["Klonla, Kopyala"],vi:["Nhân bản, Sao chép"],zh:["克隆,复制"],zh_TW:["克隆,複製"]}},91073:e=>{e.exports={ar:["أنشئ مجموعة من الرسومات"],ca_ES:["Creeu un grup de gràfics"],cs:"Create a group of drawings",de:["Erstellen Sie eine Gruppe von Zeichnungen"],el:"Create a group of drawings",en:"Create a group of drawings",es:["Cree un grupo de graficos"],fa:"Create a group of drawings",fr:["Créer un groupe de dessins"],he_IL:["צור קבוצת שרטוטים"],hu_HU:"Create a group of drawings",id_ID:["Buat kelompok untuk gambar"],it:["Crea un gruppo di disegni"],ja:["描画のグループを作成"],ko:["드로잉 그룹 만들기"],ms_MY:["Cipta kumpulan untuk lukisan"],nl_NL:"Create a group of drawings",pl:["Utwórz grupę obiektów rysowania"],pt:["Criar um grupo de desenhos"],ro:"Create a group of drawings",ru:["Создать группу объектов рисования"],sv:["Skapa en grup ritningar"],th:["สร้างกรุ๊ปของการวาด"],tr:["Bir grup çizim oluşturun"],vi:["Tạo nhóm các hình vẽ"],zh:["建立一组绘图"],zh_TW:["建立一組繪圖"]}},38207:e=>{e.exports={ar:["المجموعة مخفية في الفاصل الزمني الحالي"],ca_ES:["El grup està ocult a l'interval actual"],
cs:"Group is hidden on current interval",de:["Gruppe ist im aktuellen Intervall verborgen"],el:"Group is hidden on current interval",en:"Group is hidden on current interval",es:["El grupo está oculto en el intervalo actual"],fa:"Group is hidden on current interval",fr:["Le groupe est caché sur l'intervalle actuel"],he_IL:["הקבוצה מוסתרת באינטרוול הנוכחי"],hu_HU:"Group is hidden on current interval",id_ID:["Grup disembunyikan pada interval saat ini"],it:["Il gruppo è nascosto nel timeframe corrente"],ja:["グループは現在の時間足で非表示です"],ko:["현재 인터벌에 대해 그룹이 감춰져 있습니다"],ms_MY:["Kumpulan disembunyikan pada selang masa sekarang"],nl_NL:"Group is hidden on current interval",pl:["Grupa jest ukryta na bieżącym interwale"],pt:["O grupo está oculto no intervalo atual"],ro:"Group is hidden on current interval",ru:["Группа скрыта на текущем интервале"],sv:["Gruppen är dold i det aktuella intervallet"],th:["กรุ๊ปถูกซ่อนบนช่วงเวลาปัจจุบัน"],tr:["Grup şu anki aralıkta gizli"],vi:["Nhóm được ẩn trong chế độ hiện tại"],zh:["该组在当前时间间隔内隐藏"],zh_TW:["該組隱藏在當前的時間間隔內"]}},39781:e=>{e.exports={ar:["الرسم مخفي على الفاصل الزمني الحالي"],ca_ES:["El dibuix està ocult a l'interval actual"],cs:"Drawing is hidden on current interval",de:["Zeichnung ist für das aktuelle Intervall ausgeblendet"],el:"Drawing is hidden on current interval",en:"Drawing is hidden on current interval",es:["El dibujo está oculto en el intervalo actual"],fa:"Drawing is hidden on current interval",fr:["Le dessin est caché sur l'intervalle actuel"],he_IL:["הציור מוסתר באינטרוול הנוכחי"],hu_HU:"Drawing is hidden on current interval",id_ID:["Gambar disembunyikan pada interval saat ini"],it:["Il disegno è nascosto sul timeframe corrente"],ja:["描画は現在の時間足で非表示です"],ko:["커런트 인터벌에서는 드로잉이 숨겨져 있습니다"],ms_MY:["Lukisan disembunyikan pada selang masa terkini"],nl_NL:"Drawing is hidden on current interval",pl:["Rysunek jest ukryty na bieżącym interwale"],pt:["O desenho está oculto no intervalo atual"],ro:"Drawing is hidden on current interval",ru:["Объект рисования скрыт на этом интервале"],sv:["Ritning är dold på aktuellt intervall"],th:["การวาดถูกซ่อนไว้สำหรับช่วงเวลาปัจจุบัน"],tr:["Çizim, geçerli aralıkta gizlendi"],vi:["Bản vẽ bị ẩn trong khoảng thời gian hiện tại"],zh:["在当前时间周期内隐藏绘图"],zh_TW:["在當前時間周期內隱藏繪圖"]}},31095:e=>{e.exports={ar:["شجرة الكائنات"],ca_ES:["Arbre d'objectes"],cs:"Object tree",de:["Objektbaum"],el:"Object tree",en:"Object tree",es:["Árbol de objetos"],fa:"Object tree",fr:["Arborescence des objets"],he_IL:["אובייקט עץ"],hu_HU:"Object tree",id_ID:["Pohon objek"],it:["Albero oggetti"],ja:["オブジェクトツリー"],ko:["오브젝트 트리"],ms_MY:["Salasilah Objek"],nl_NL:"Object tree",pl:["Drzewo obiektów"],pt:["Árvore de objetos"],ro:"Object tree",ru:["Дерево объектов"],sv:["Objektträd"],th:["แผนผังวัตถุ"],tr:["Nesne ağacı"],vi:["Danh sách đối tượng"],zh:["对象树"],zh_TW:["物件樹"]}},74860:e=>{e.exports={ar:["رسومات محلية"],ca_ES:["Dibuixos locals"],cs:"Local drawings",de:["Lokale Zeichnungen"],el:"Local drawings",en:"Local drawings",es:["Dibujos locales"],fa:"Local drawings",fr:["Dessins locaux"],
he_IL:["שרטוטים מקומיים"],hu_HU:"Local drawings",id_ID:["Gambar lokal"],it:["Disegni in loco"],ja:["ローカルの描画"],ko:["로컬 드로잉"],ms_MY:["Lukisan tempatan"],nl_NL:"Local drawings",pl:["Rysunki lokalne"],pt:["Desenhos locais"],ro:"Local drawings",ru:["На выбранном графике"],sv:["Lokala ritningar"],th:["ภาพวาดท้องถิ่น"],tr:["Lokal çizimler"],vi:["Bản vẽ cục bộ"],zh:["本地绘图"],zh_TW:["當地繪圖"]}},72357:e=>{e.exports={ar:["إدارة رسومات التنسيق"],ca_ES:["Gestiona els dibuixos dels dissenys"],cs:"Manage layout drawings",de:["Zeichnungen des Layouts verwalten"],el:"Manage layout drawings",en:"Manage layout drawings",es:["Gestionar los dibujos de los diseños"],fa:"Manage layout drawings",fr:["Gérer les dessins de mise en page"],he_IL:["נהל שרטוטי פריסה"],hu_HU:"Manage layout drawings",id_ID:["Kelola layout gambar"],it:["Gestisci disegni del layout"],ja:["レイアウトの描画を管理"],ko:["레이아웃 드로잉 관리"],ms_MY:["Urus susun atur lukisan"],nl_NL:"Manage layout drawings",pl:["Zarządzaj rysunkami układu"],pt:["Administre seu layout de desenhos"],ro:"Manage layout drawings",ru:["Настройки объектов рисования графика"],sv:["Hantera layoutritningar"],th:["จัดการการวาดเลย์เอาท์"],tr:["Yerleşim çizimlerini yönet"],vi:["Quản lý bố cục hình vẽ"],zh:["管理布局绘图"],zh_TW:["管理版面繪圖"]}},18570:e=>{e.exports={ar:["لا يوجد رسوم حتى الآن"],ca_ES:["Encara no hi ha dibuixos"],cs:["Zatím Žádné Nákresy"],de:["Noch keine Zeichnungen"],el:["Δεν υπάρχουν ακομα σχέδια"],en:"No drawings yet",es:["No hay dibujos todavía"],fa:["شکلی رسم نشده است"],fr:["Pas de Dessins pour le moment"],he_IL:["אין שרטוט עדיין"],hu_HU:["Nincs még rajz"],id_ID:["Belum ada gambar saat ini"],it:["Nessun disegno disponibile"],ja:["未描画"],ko:["그림없음"],ms_MY:["Masih belum ada lukisan"],nl_NL:["Nog geen tekeningen"],pl:["Brak rysunków"],pt:["Ainda sem desenhos"],ro:"No drawings yet",ru:["Нет инструментов рисования"],sv:["Inga ritningar än"],th:["ยังไม่มีรูปวาด"],tr:["Henüz çizim yok"],vi:["Chưa có bản vẽ nào"],zh:["尚未绘图"],zh_TW:["尚無任何繪圖"]}},87871:e=>{e.exports={ar:["متزامن كليًا"],ca_ES:["Sincronitzat globalment"],cs:"Synced globally",de:["Global synchronisiert"],el:"Synced globally",en:"Synced globally",es:["Sincronizado globalmente"],fa:"Synced globally",fr:["Synchronisé globalement"],he_IL:["מסונכרן ברחבי העולם"],hu_HU:"Synced globally",id_ID:["Disinkronisasi secara global"],it:["Sincronizzazione globale"],ja:["グローバルに同期"],ko:["전체 싱크"],ms_MY:["Disegerakkan secara sejagat"],nl_NL:"Synced globally",pl:["Zsynchronizowane globalnie"],pt:["Sincronizado em tudo"],ro:"Synced globally",ru:["Синхр. везде"],sv:["Synkad globalt"],th:["ซิงค์ทั่วโลก"],tr:["Küresel senkronize"],vi:["Đã đồng bộ hóa trên toàn cầu"],zh:["全局同步"],zh_TW:["全球同步"]}},10538:e=>{e.exports={ar:["تمت المزامنة في التنسيق"],ca_ES:["Sincronitzat a la plantilla"],cs:"Synced in layout",de:["Im Layout synchronisiert"],el:"Synced in layout",en:"Synced in layout",es:["Sincronizado en la plantilla"],fa:"Synced in layout",fr:["Synchronisé dans la mise en page"],he_IL:["מסונכרן בפריסה"],hu_HU:"Synced in layout",id_ID:["Disinkronisasi dalam layout"],
it:["Sincronizzazione su layout"],ja:["レイアウト内で同期"],ko:["레이아웃 싱크"],ms_MY:["Disegerakkan di dalam susun atur"],nl_NL:"Synced in layout",pl:["Zsynchronizowane w układzie"],pt:["Sincronizado no layout"],ro:"Synced in layout",ru:["Синхр. на всех графиках"],sv:["Synkad i layout"],th:["ซิงค์ในเลย์เอาต์"],tr:["Düzende senkronize"],vi:["Đã đồng bộ hóa trong bố cục"],zh:["在布局内同步"],zh_TW:["版面同步"]}},85128:e=>{e.exports={ar:["إزالة كافة الرسومات لهذا الرمز"],ca_ES:["Elimina tots els dibuixos per a aquest símbol"],cs:"Remove all drawings for this symbol",de:["Alle Zeichnungen für dieses Symbol entfernen"],el:"Remove all drawings for this symbol",en:"Remove all drawings for this symbol",es:["Eliminar todos los dibujos para este símbolo"],fa:"Remove all drawings for this symbol",fr:["Supprimer tous les dessins pour ce symbole"],he_IL:["הסר את כל השרטוטים לסימול זה"],hu_HU:"Remove all drawings for this symbol",id_ID:["Hilangkan seluruh gambar pada simbol ini"],it:["Rimuove tutti i disegni su questo simbolo"],ja:["このシンボルのすべての描画を削除"],ko:["이 심볼에 대한 모든 드로잉 없애기"],ms_MY:["Buang semua lukisan untuk simbol ini"],nl_NL:"Remove all drawings for this symbol",pl:["Usuń wszystkie obiekty rysowania dla tego symbolu"],pt:["Remover todos os desenhos deste símbolo"],ro:"Remove all drawings for this symbol",ru:["Удалить все объекты рисования для этого символа"],sv:["Ta bort alla ritningar för denna symbol"],th:["ลบการวาดทั้งหมดของตัวย่อนี้"],tr:["Bu sembol için tüm çizimleri kaldır"],vi:["Loại bỏ tất cả nét vẽ cho mã này"],zh:["移除该商品代码的所有绘图"],zh_TW:["刪除此商品代碼的所有繪圖"]}},35038:e=>{e.exports={ar:["تغيير الأسم"],ca_ES:["Reanomenar"],cs:"Rename",de:["Umbenennen"],el:"Rename",en:"Rename",es:["Renombrar."],fa:"Rename",fr:["Renommer"],he_IL:["שנה שם"],hu_HU:["Átnevezés"],id_ID:["Mengganti Nama"],it:["Rinomina"],ja:["名前の変更"],ko:["이름 바꾸기"],ms_MY:["Namakan semula"],nl_NL:"Rename",pl:["Zmień nazwę"],pt:["Renomear"],ro:"Rename",ru:["Переименовать"],sv:["Döp om"],th:["เปลี่ยนชื่อ"],tr:["Yeni Ad Ver"],vi:["Đổi tên"],zh:["重命名"],zh_TW:["重新命名"]}},40001:e=>{e.exports={ar:["غيّر عنوان {sourceTitle} إلى {newSourceTitle}"],ca_ES:["canvia el títol {sourceTitle} per {newSourceTitle}"],cs:"change {sourceTitle} title to {newSourceTitle}",de:["{sourceTitle} zu {newSourceTitle} ändern"],el:"change {sourceTitle} title to {newSourceTitle}",en:"change {sourceTitle} title to {newSourceTitle}",es:["cambiar el título {sourceTitle} por {newSourceTitle}"],fa:"change {sourceTitle} title to {newSourceTitle}",fr:["Remplacer le titre {sourceTitle} par {newSourceTitle}"],he_IL:["שנה את {sourceTitle} כותרת ל- {newSourceTitle}"],hu_HU:"change {sourceTitle} title to {newSourceTitle}",id_ID:["Ubah judul {sourceTitle} menjadi {newSourceTitle}"],it:["Cambia titolo da {sourceTitle} a {newSourceTitle}"],ja:["{sourceTitle}のタイトルを{newSourceTitle}に変更"],ko:["{sourceTitle} 타이틀을 {newSourceTitle} 으로 바꾸기"],ms_MY:["Tukar tajuk {sourceTitle} kepada {newSourceTitle}"],nl_NL:"change {sourceTitle} title to {newSourceTitle}",pl:["Zmień tytuł {sourceTitle} na {newSourceTitle}."],
pt:["Mudar {sourceTitle} título para {newSourceTitle}"],ro:["Change {sourceTitle} title to {newSourceTitle}"],ru:["изменение названия {sourceTitle} на {newSourceTitle}"],sv:["Ändra {sourceTitle} titel till {newSourceTitle}"],th:["เปลี่ยนชื่อ {sourceTitle} ไปเป็น {newSourceTitle}"],tr:["{sourceTitle} başlığını {newSourceTitle} olarak değiştirin"],vi:["Thay đổi {sourceTitle} tiêu đề sang {newSourceTitle}"],zh:["将{sourceTitle}标题更改为{newSourceTitle}"],zh_TW:["將{sourceTitle}標題更改為{newSourceTitle}"]}},28506:e=>{e.exports={ar:["إخفاء العناصر"],ca_ES:["amaga objectes"],cs:"hide objects",de:["Objekte ausblenden"],el:"hide objects",en:"hide objects",es:["ocultar objetos"],fa:"hide objects",fr:["masquer les objets"],he_IL:["הסתר אובייקטים"],hu_HU:"hide objects",id_ID:["sembunyikan objek"],it:["nascondi oggetti"],ja:["オブジェクトの非表示"],ko:["오브젝트 숨기기"],ms_MY:["sembunyi objek"],nl_NL:"hide objects",pl:["ukryj obiekty"],pt:["ocultar objetos"],ro:"hide objects",ru:["скрытие объектов"],sv:["dölj objekt"],th:["ซ่อนออบเจ็กต์"],tr:["nesneleri gizle"],vi:["ẩn đối tượng"],zh:["隐藏对象"],zh_TW:["隱藏物件"]}},8343:e=>{e.exports={ar:["أدخل المصدر (المصادر) بعد ذلك"],ca_ES:["introdueix font(s) després"],cs:"insert source(s) after",de:["Quelle(n) einfügen nach"],el:"insert source(s) after",en:"insert source(s) after",es:["introducir fuente(s) después"],fa:"insert source(s) after",fr:["insérer la/les source(s) après"],he_IL:["הכנס מקור(ות) לאחר מכן"],hu_HU:"insert source(s) after",id_ID:["masukkan sumber setelah"],it:["inserimento fonti"],ja:["後にソースを挿入"],ko:["~뒤에 소스 넣기"],ms_MY:["masukkan sumber(s) selepas"],nl_NL:"insert source(s) after",pl:["wstaw źródła po"],pt:["inserir fonte(s) depois"],ro:"insert source(s) after",ru:["вставку объекта(ов) после"],sv:["infoga källa(källor) efter"],th:["แทรกแหล่งที่มาหลังจาก"],tr:["kaynağ(ı) ardına ekle"],vi:["chèn (các) nguồn sau đó"],zh:["插入源到后面"],zh_TW:["插入源到後面"]}},40566:e=>{e.exports={ar:["تحريك العناصر"],ca_ES:["mou objectes"],cs:"move objects",de:["Objekte Bewegen"],el:"move objects",en:"move objects",es:["mover objetos"],fa:"move objects",fr:["Déplacer les objets"],he_IL:["הזז אובייקטים"],hu_HU:"move objects",id_ID:["Pindahkan objek"],it:["Sposta oggetti"],ja:["オブジェクトを移動"],ko:["오브젝트 옮기기"],ms_MY:["Pindahkan objek"],nl_NL:"move objects",pl:["Przenieś obiekty"],pt:["Mover objetos"],ro:["Move objects"],ru:["перемещение объектов"],sv:["Flytta objekt"],th:["ย้ายวัตถุ"],tr:["nesneleri taşı"],vi:["Chuyển đối tượng"],zh:["移动对象"],zh_TW:["移動物件"]}},87358:e=>{e.exports={ar:["عرض {title}"],ca_ES:["mostra {title}"],cs:"show {title}",de:["{title} anzeigen"],el:"show {title}",en:"show {title}",es:["mostrar {title}"],fa:"show {title}",fr:["afficher {title}"],he_IL:["הצג {title}"],hu_HU:"show {title}",id_ID:["tampilkan {title}"],it:["mostra {title}"],ja:["{title}の表示"],ko:["{title} 보이기"],ms_MY:["tunjuk {title}"],nl_NL:"show {title}",pl:["pokaż {title}"],pt:["exibir {title}"],ro:"show {title}",ru:["отображение: {title}"],sv:["visa {title}"],th:["แสดง {title}"],tr:["{title} göster"],vi:["hiện {title}"],zh:["显示{title}"],
zh_TW:["顯示{title}"]}},63549:e=>{e.exports={ar:["إظهار العناصر"],ca_ES:["mostra objectes"],cs:"show objects",de:["Objekte einblenden"],el:"show objects",en:"show objects",es:["mostrar objetos"],fa:"show objects",fr:["afficher les objets"],he_IL:["הצג אובייקטים"],hu_HU:"show objects",id_ID:["tampilkan objek"],it:["mostra oggetti"],ja:["オブジェクトの表示"],ko:["오브젝트 보이기"],ms_MY:["tunjuk objek"],nl_NL:"show objects",pl:["pokaż obiekty"],pt:["exibir objetos"],ro:"show objects",ru:["отображение объектов"],sv:["visa objekt"],th:["แสดงออบเจ็กต์"],tr:["nesneleri göster"],vi:["hiển thị đối tượng"],zh:["显示对象"],zh_TW:["顯示物件"]}},57428:e=>{e.exports={ar:["إزالة العناصر"],ca_ES:["elimina objectes"],cs:"remove objects",de:["Objekte entfernen"],el:"remove objects",en:"remove objects",es:["eliminar objetos"],fa:"remove objects",fr:["supprimer les objets"],he_IL:["הסר אובייקטים"],hu_HU:"remove objects",id_ID:["Hilangkan objek"],it:["rimuovi oggetti"],ja:["オブジェクトの削除"],ko:["오브젝트 없애기"],ms_MY:["buang objek"],nl_NL:"remove objects",pl:["usuń obiekty"],pt:["remover objetos"],ro:"remove objects",ru:["удаление объектов"],sv:["Ta bort objekt"],th:["ลบออบเจ็กต์"],tr:["nesneleri kaldır"],vi:["di chuyển đối tượng"],zh:["移除对象"],zh_TW:["移除物件"]}},23481:e=>{e.exports={ar:["حذف كافة خطوط الأدوات لـ {symbol}"],ca_ES:["elimina totes les eines de línies per a {symbol}"],cs:"remove all line tools for {symbol}",de:["alle Linienwerkzeuge für {symbol} entfernen"],el:"remove all line tools for {symbol}",en:"remove all line tools for {symbol}",es:["eliminar todas las herramientas de líneas para {symbol}"],fa:"remove all line tools for {symbol}",fr:["supprimer tous les outils de ligne pour {symbol}."],he_IL:["הסרת כל קבוצת כלי קו {symbol}"],hu_HU:"remove all line tools for {symbol}",id_ID:["Hilangkan semua peralatan garis untuk {symbol}"],it:["rimuovi tutte le linee da {symbol}"],ja:["{symbol}のすべてのラインツールの削除"],ko:["{symbol}의 모든 줄 도구 제거"],ms_MY:["buang semua alat garisan untuk {symbol}"],nl_NL:"remove all line tools for {symbol}",pl:["usuń wszystkie narzędzia linii dla {symbol}"],pt:["remover todas as ferramentas de linhas para {symbol}"],ro:"remove all line tools for {symbol}",ru:["удаление всех объектов рисования для {symbol}"],sv:["Ta bort alla linjeverktyg för {symbol}"],th:["ลบเครื่องมือเส้นทั้งหมดสำหรับ {symbol}"],tr:["{symbol} için tüm çizgi araçlarını kaldır"],vi:["loại bỏ tất cả đường công cụ cho {symbol}"],zh:["移除{symbol}的所有线条工具"],zh_TW:["移除{symbol}的所有線條工具"]}},42743:e=>{e.exports={ar:["مع {drawingsCount} رسم","مع {drawingsCount} رسم","مع {drawingsCount} رسم","مع {drawingsCount} رسوم","مع {drawingsCount} رسماً","مع {drawingsCount} رسماً"],ca_ES:["amb {drawingsCount} dibuix","amb {drawingsCount} dibuixos"],cs:"with {drawingsCount} drawing",de:["mit {drawingsCount} Zeichnung","mit {drawingsCount} Zeichnungen"],el:"with {drawingsCount} drawing",en:"with {drawingsCount} drawing",es:["con {drawingsCount} dibujo","con {drawingsCount} dibujos"],fa:["with {drawingsCount} drawings"],fr:["avec {drawingsCount} dessin","avec {drawingsCount} dessins"],
he_IL:["עם שרטוט {drawingsCount}","עם {drawingsCount} שרטוטים","עם {drawingsCount} שרטוטים","עם {drawingsCount} שרטוטים"],hu_HU:["with {drawingsCount} drawings"],id_ID:["dengan {drawingsCount} gambar"],it:["con {drawingsCount} disegno","con {drawingsCount} disegni"],ja:["に{drawingsCount}個の描画"],ko:["{drawingsCount} 드로잉이 있는"],ms_MY:["dengan {drawingsCount} lukisan"],nl_NL:"with {drawingsCount} drawing",pl:["z {drawingsCount} rysunkiem","z {drawingsCount} rysunkami","z {drawingsCount} rysunkami","z {drawingsCount} rysunkami"],pt:["com {drawingsCount} desenho","com {drawingsCount} desenhos"],ro:"with {drawingsCount} drawing",ru:["с {drawingsCount} объектом рисования","с {drawingsCount} объектами рисования","с {drawingsCount} объектами рисования","с {drawingsCount} объектами рисования"],sv:["med {drawingsCount} ritverktyg","med {drawingsCount} ritverktyg"],th:["กับ {drawingsCount} การวาด"],tr:["{drawingsCount} çizim ile","{drawingsCount} çizim ile"],vi:["với {drawingsCount} nét vẽ"],zh:["含{drawingsCount}个绘图"],zh_TW:["含{drawingsCount}個繪圖"]}},88143:e=>{e.exports={ar:["{drawingsCount} رسم","{drawingsCount} رسم","{drawingsCount} رسم","{drawingsCount} رسوم","{drawingsCount} رسماً","{drawingsCount} رسماً"],ca_ES:["{drawingsCount} dibuix","{drawingsCount} dibuixos"],cs:"{drawingsCount} drawing",de:["{drawingsCount} Zeichnung","{drawingsCount} Zeichnungen"],el:"{drawingsCount} drawing",en:"{drawingsCount} drawing",es:["{drawingsCount} dibujo","{drawingsCount} dibujos"],fa:["{drawingsCount} drawings"],fr:["{drawingsCount} dessin","{drawingsCount} dessins"],he_IL:["שרטוט {drawingsCount}","{drawingsCount} שרטוטים","{drawingsCount} שרטוטים","{drawingsCount} שרטוטים"],hu_HU:["{drawingsCount} drawings"],id_ID:["{drawingsCount} gambar"],it:["{drawingsCount} disegno","{drawingsCount} disegni"],ja:["{drawingsCount}個の描画"],ko:["{drawingsCount} 드로잉"],ms_MY:["{drawingsCount} lukisan"],nl_NL:"{drawingsCount} drawing",pl:["{drawingsCount} rysunek","{drawingsCount} rysunki","{drawingsCount} rysunków","{drawingsCount} rysunków"],pt:["{drawingsCount} desenho","{drawingsCount} desenhos"],ro:"{drawingsCount} drawing",ru:["{drawingsCount} объект рисования","{drawingsCount} объекта рисования","{drawingsCount} объектов рисования","{drawingsCount} объектов рисования"],sv:["{drawingsCount} ritverktyg","{drawingsCount} ritverktyg"],th:["{drawingsCount} การวาด"],tr:["{drawingsCount} çizimi","{drawingsCount} çizimi"],vi:["{drawingsCount} nét vẽ"],zh:["{drawingsCount}个绘图"],zh_TW:["{drawingsCount}個繪圖"]}},52908:e=>{e.exports={ar:["{symbolsCount} رمز","{symbolsCount} رمز","{symbolsCount} رمز","{symbolsCount} رموز","{symbolsCount} رمزاً","{symbolsCount} رمزاً"],ca_ES:["{symbolsCount} símbol","{symbolsCount} símbols"],cs:"{symbolsCount} symbol",de:["{symbolsCount} Symbol","{symbolsCount} Symbole"],el:"{symbolsCount} symbol",en:"{symbolsCount} symbol",es:["{symbolsCount} símbolo","{symbolsCount} símbolos"],fa:["{symbolsCount} symbols"],fr:["{symbolsCount} symbole","{symbolsCount} symboles"],
he_IL:["סימול {symbolsCount}","{symbolsCount} סימולים","{symbolsCount} סימולים","{symbolsCount} סימולים"],hu_HU:["{symbolsCount} symbols"],id_ID:["{symbolsCount} simbol"],it:["{symbolsCount} simbolo","{symbolsCount} simboli"],ja:["{symbolsCount}シンボル"],ko:["{symbolsCount} 심볼"],ms_MY:["Simbol {symbolsCount}"],nl_NL:"{symbolsCount} symbol",pl:"{symbolsCount} symbol",pt:["{symbolsCount} símbolo","{symbolsCount} símbolos"],ro:"{symbolsCount} symbol",ru:["{symbolsCount} символ","{symbolsCount} символа","{symbolsCount} символов","{symbolsCount} символов"],sv:"{symbolsCount} symbol",th:["{symbolsCount} สัญลักษณ์"],tr:["{symbolsCount} sembol","{symbolsCount} sembol"],vi:["{symbolsCount} mã giao dịch"],zh:["{symbolsCount}个商品"],zh_TW:["{symbolsCount}個商品"]}}}]);