@nebula.js/sn-org-chart 1.7.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -9
- package/api-specifications/properties.json +1 -1
- package/api-specifications/sn-org-chart.json +3968 -0
- package/core/esm/index.js +3 -3
- package/dist/sn-org-chart.js +3 -3
- package/dist/sn-org-chart.systemjs.js +3 -3
- package/package.json +36 -28
- package/sn-org-chart-ext/dist/sn-org-chart.js +3 -3
- package/sn-org-chart-ext/ext.js +3 -3
- package/sn-org-chart-ext/sn-org-chart.qext +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-org-chart v1.
|
|
2
|
+
* @nebula.js/sn-org-chart v1.9.0
|
|
3
3
|
* Copyright (c) 2026 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
System.register(["@nebula.js/stardust"],function(e){"use strict";var t,n,r,o,a,i,s,l,u,c,d,h,p,f,g,m,b;return{setters:[function(e){t=e.useState,n=e.useSelections,r=e.useLayout,o=e.useEffect,a=e.useAction,i=e.useElement,s=e.onTakeSnapshot,l=e.useImperativeHandle,u=e.useTheme,c=e.useMemo,d=e.useModel,h=e.useStaleLayout,p=e.useTranslator,f=e.useOptions,g=e.usePromise,m=e.useRect,b=e.useConstraints}],execute:function(){e("default",function(e){const{flags:u}=e;return{qae:{properties:jt,data:y},component:()=>{const d=h(),g=i(),y=f(),v=m(),x=b(),w=p(),[_,C]=t(null),[O,E]=t(null),[k,S]=t(null),[L,R]=t(null),[T]=t({transform:{},constraints:x,expandedState:O}),A=function(e){const[i,s]=t(!1),l=n(),u=!!r().qSelectionInfo.qInSelections,[c]=t({api:l,setState:e=>{c.state=e},state:[],singleSelect:!1});o(()=>{It(e)},[e]);const d=()=>{c.state=[]},h=()=>{c.state=[],s(!1)};return o(()=>c.api?(c.api=l,c.api.on("deactivated",d),c.api.on("canceled",h),c.api.on("confirmed",h),c.api.on("cleared",d),()=>{c.api.removeListener("deactivated",d),c.api.removeListener("canceled",h),c.api.removeListener("confirmed",h),c.api.removeListener("cleared",d)}):()=>{},[l]),o(()=>{c.singleSelect=i},[i]),a(()=>({action(){s(!i)},icon:{shapes:[{type:"path",attrs:{d:$t}}]},active:i,hidden:!u,label:e.get("Object.OrgChart.SingleSelect")}),[i,u]),o(()=>{const e=e=>{"Shift"===e.key&&s(!0)},t=e=>{"Shift"===e.key&&s(!1)};return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),c}(w);c(()=>{It(w)},[g,w.language()]),o(()=>{T.constraints=x},[x]),o(()=>{T.transform=k},[k]),o(()=>{T.expandedState=O},[O]);const N=e=>{e.useTransitions=!0,E(e)},{dataTree:z,styling:M,usePromiseStatus:I}=ts({env:e,setExpandedState:E,setTransform:S,selectionObj:A}),j=()=>{if(g&&z&&M){const e=Qi.getViewState(y,d),t=Ni(M,u);Ui({element:g,dataTree:z,viewState:e,wrapperState:T,selectionObj:A,setInitialZoom:R,setTransform:S,setExpandedState:E,setContainerData:C,layout:d,flags:u,actualCardHeight:t})}},$=()=>{if(_&&O&&M){const e=Ni(M,u);Hi({containerData:_,styling:M,setExpandedCallback:N,wrapperState:T,selectionObj:A,useTransitions:O.useTransitions,element:g,flags:u,actualCardHeight:e,usePromiseStatus:I})}};o(()=>{$()},[_,A.state]),o(()=>{j()},[g,z,x]),o(()=>{d.resizeOnExpand?j():$()},[O]),o(()=>{if(_&&d&&d.snapshotData){const e=Fi(v,d.snapshotData.viewState,k);qi(e,_.svg,_.divBox,v.width,v.height),_.divBox.classed("sn-org-chart-snapshot",!0)}},[v,_]),function(e,t,n,r,o){const a=i();s(i=>{i.snapshotData||(i.snapshotData={}),n.snapshotData&&n.snapshotData.viewState||(i.snapshotData.viewState=Ki(e,r,o,a)),i.snapshotData.dataMatrix=Gi(e,t.allNodes,n)}),l(()=>({getViewState:()=>Ki(e,r,o,a)}))}(O,_,d,k,L)},ext:zt(e)}});var y={targets:[{path:"/qHyperCubeDef",dimensions:{min:2,max:2},measures:{min:0,max:1}}]},v={CARD_TITLE_FONTSIZE:"14px",CARD_BODY_FONTSIZE:"11px",FONT_COLOR_TYPE:"auto",FONT_COLOR_DARK:{index:-1,color:"#484848"},FONT_COLOR_LIGHT:{color:"#e6e6e6"},BACKGROUND_COLOR_TYPE:"colorPicker",BACKGROUND_COLOR:{index:-1,color:"#ffffff"},BORDER_COLOR_TYPE:"auto",BORDER_COLOR:{index:-1,color:"#737373"},BORDER_FULL:!0,BORDER_TOP:!0,FONT_COLOR_USE_EXPRESSION:!1,BACKGROUND_USE_EXPRESSION:!1,BORDER_USE_EXPRESSION:!1,IMAGE_LOCATION:"both",IMAGE_ALIGNMENT:"left",IMAGE_SHAPE:"rectangle",IMAGE_CLIP:!0};var x={getValue:function(e,t,n){const r=t.split(".");let o;if(void 0===e)return n;let a=e;for(o=0;o<r.length;++o){if(void 0===a[r[o]])return n;a=a[r[o]]}return a}};function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return s}}(e,t)||E(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||E(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}var k,S="top",L="top-right",R="right",T="bottom-right",A="bottom",N="bottom-left",z="left",M="top-left";_(_(_(_(_(_(_(_(_(_(k={},"equal-equal",[S,A]),"equal-higher",[A,T]),"equal-lower",[S,L]),"equal-void",[S,A]),"higher-equal",[z,N,S,L]),"higher-higher-acute",[A,N,z,L]),"higher-higher-obtuse",[A,S]),"higher-lower-negative",[S,L,R]),"higher-lower-positive",[A,N,z]),"higher-void",[S]),_(_(_(_(_(_(_(_(_(_(k,"lower-equal",[S]),"lower-higher-negative",[S,M]),"lower-higher-positive",[T]),"lower-lower-acute",[S,M,z,L,R]),"lower-lower-obtuse",[S,A]),"lower-void",[S]),"void-equal",[S]),"void-higher",[S,A]),"void-lower",[S,A,z]),"void-void",[S]),_(k,"unclassified",[S,A,R,z,L,T,N,M]);var I="object",j=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],$=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];var D=function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}}};function B(e){var t=e.theme,n=e.translator,r=e.defaultValue,o=e.flags,a=[],i=t.getStyle("","","fontFamilies");return Array.isArray(i)&&i.length?a.push.apply(a,O(new Set([r].concat(O(i.map(function(e){return e.split(",").map(function(e){return e.trim()}).map(function(e){return e.replace(/\s+/g," ").trim()}).filter(Boolean).join(", ")})))))):a.push(r),[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0}].concat(O(a.map(function(e){return D(e)})),[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0}],O(function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?$:j}(o).map(function(e){return D(e)})))}function P(e){var t=e.theme,n=e.translator,r=e.id,o=e.path,a=e.flags,i=function(){return t.getStyle(r,o,"fontFamily")};return{getDefaultValue:function(){return i()},getOptions:function(){return B({theme:t,translator:n,defaultValue:i(),flags:a})}}}var q=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],F=function(e){return{value:e,label:e,groupHeader:!1,disabled:!1}};function V(e){var t=e.theme,n=e.translator,r=e.id,o=e.path,a=function(){return t.getStyle(r,o,"fontSize")};return{getDefaultValue:function(){return a()},getOptions:function(){return function(e){var t=e.translator,n=e.defaultValue,r=[],o=e.theme.getStyle("","","fontSizes");return Array.isArray(o)&&o.length?r.push.apply(r,O(new Set([n].concat(O(o))))):r.push(n),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0}].concat(O(r.map(function(e){return F(e)})),[{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0}],O(q.map(function(e){return F(e)})))}({theme:t,translator:n,defaultValue:a()})}}}function H(e){var t=e.theme,n=e.translator,r=e.id,o=e.path;return{fontFamily:P({theme:t,translator:n,id:r,path:o,flags:e.flags}),fontSize:V({theme:t,translator:n,id:r,path:o})}}var U,G,K=["__proto__","constructor"],Z=function(e){if(K.some(function(t){return e.includes(t)}))throw new Error("font-resolver: Forbidden property.")};var Y,W=function(){if(G)return U;G=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},a=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),a=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!a)return!1;for(r in n);return void 0===r||e.call(n,r)},i=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return U=function e(){var t,n,r,l,u,c,d=arguments[0],h=1,p=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},h=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});h<p;++h)if(null!=(t=arguments[h]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(f&&l&&(a(l)||(u=o(l)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&a(r)?r:{},i(d,{name:n,newValue:e(f,c,l)})):void 0!==l&&i(d,{name:n,newValue:l}));return d},U}();function X(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function J(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Q(){}(Y=W)&&Y.__esModule&&Object.prototype.hasOwnProperty.call(Y,"default")&&Y.default;var ee=.7,te=1/ee,ne="\\s*([+-]?\\d+)\\s*",re="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",oe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ae=/^#([0-9a-f]{3,8})$/,ie=new RegExp(`^rgb\\(${ne},${ne},${ne}\\)$`),se=new RegExp(`^rgb\\(${oe},${oe},${oe}\\)$`),le=new RegExp(`^rgba\\(${ne},${ne},${ne},${re}\\)$`),ue=new RegExp(`^rgba\\(${oe},${oe},${oe},${re}\\)$`),ce=new RegExp(`^hsl\\(${re},${oe},${oe}\\)$`),de=new RegExp(`^hsla\\(${re},${oe},${oe},${re}\\)$`),he={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function pe(){return this.rgb().formatHex()}function fe(){return this.rgb().formatRgb()}function ge(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ae.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?me(t):3===n?new xe(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?be(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?be(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ie.exec(e))?new xe(t[1],t[2],t[3],1):(t=se.exec(e))?new xe(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=le.exec(e))?be(t[1],t[2],t[3],t[4]):(t=ue.exec(e))?be(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ce.exec(e))?ke(t[1],t[2]/100,t[3]/100,1):(t=de.exec(e))?ke(t[1],t[2]/100,t[3]/100,t[4]):he.hasOwnProperty(e)?me(he[e]):"transparent"===e?new xe(NaN,NaN,NaN,0):null}function me(e){return new xe(e>>16&255,e>>8&255,255&e,1)}function be(e,t,n,r){return r<=0&&(e=t=n=NaN),new xe(e,t,n,r)}function ye(e){return e instanceof Q||(e=ge(e)),e?new xe((e=e.rgb()).r,e.g,e.b,e.opacity):new xe}function ve(e,t,n,r){return 1===arguments.length?ye(e):new xe(e,t,n,null==r?1:r)}function xe(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function we(){return`#${Ee(this.r)}${Ee(this.g)}${Ee(this.b)}`}function _e(){const e=Ce(this.opacity);return`${1===e?"rgb(":"rgba("}${Oe(this.r)}, ${Oe(this.g)}, ${Oe(this.b)}${1===e?")":`, ${e})`}`}function Ce(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Oe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ee(e){return((e=Oe(e))<16?"0":"")+e.toString(16)}function ke(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Le(e,t,n,r)}function Se(e){if(e instanceof Le)return new Le(e.h,e.s,e.l,e.opacity);if(e instanceof Q||(e=ge(e)),!e)return new Le;if(e instanceof Le)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,s=a-o,l=(a+o)/2;return s?(i=t===a?(n-r)/s+6*(n<r):n===a?(r-t)/s+2:(t-n)/s+4,s/=l<.5?a+o:2-a-o,i*=60):s=l>0&&l<1?0:i,new Le(i,s,l,e.opacity)}function Le(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Re(e){return(e=(e||0)%360)<0?e+360:e}function Te(e){return Math.max(0,Math.min(1,e||0))}function Ae(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}X(Q,ge,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:pe,formatHex:pe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Se(this).formatHsl()},formatRgb:fe,toString:fe}),X(xe,ve,J(Q,{brighter(e){return e=null==e?te:Math.pow(te,e),new xe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ee:Math.pow(ee,e),new xe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new xe(Oe(this.r),Oe(this.g),Oe(this.b),Ce(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:we,formatHex:we,formatHex8:function(){return`#${Ee(this.r)}${Ee(this.g)}${Ee(this.b)}${Ee(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:_e,toString:_e})),X(Le,function(e,t,n,r){return 1===arguments.length?Se(e):new Le(e,t,n,null==r?1:r)},J(Q,{brighter(e){return e=null==e?te:Math.pow(te,e),new Le(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ee:Math.pow(ee,e),new Le(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new xe(Ae(e>=240?e-240:e+120,o,r),Ae(e,o,r),Ae(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Le(Re(this.h),Te(this.s),Te(this.l),Ce(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ce(this.opacity);return`${1===e?"hsl(":"hsla("}${Re(this.h)}, ${100*Te(this.s)}%, ${100*Te(this.l)}%${1===e?")":`, ${e})`}`}}));const Ne=Math.PI/180,ze=180/Math.PI,Me=.96422,Ie=.82521,je=4/29,$e=6/29,De=3*$e*$e,Be=$e*$e*$e;function Pe(e){if(e instanceof qe)return new qe(e.l,e.a,e.b,e.opacity);if(e instanceof Ge)return Ke(e);e instanceof xe||(e=ye(e));var t,n,r=Ue(e.r),o=Ue(e.g),a=Ue(e.b),i=Fe((.2225045*r+.7168786*o+.0606169*a)/1);return r===o&&o===a?t=n=i:(t=Fe((.4360747*r+.3850649*o+.1430804*a)/Me),n=Fe((.0139322*r+.0971045*o+.7141733*a)/Ie)),new qe(116*i-16,500*(t-i),200*(i-n),e.opacity)}function qe(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Fe(e){return e>Be?Math.pow(e,1/3):e/De+je}function Ve(e){return e>$e?e*e*e:De*(e-je)}function He(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ue(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ge(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Ke(e){if(isNaN(e.h))return new qe(e.l,0,0,e.opacity);var t=e.h*Ne;return new qe(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}X(qe,function(e,t,n,r){return 1===arguments.length?Pe(e):new qe(e,t,n,null==r?1:r)},J(Q,{brighter(e){return new qe(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new qe(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new xe(He(3.1338561*(t=Me*Ve(t))-1.6168667*(e=1*Ve(e))-.4906146*(n=Ie*Ve(n))),He(-.9787684*t+1.9161415*e+.033454*n),He(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),X(Ge,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Ge)return new Ge(e.h,e.c,e.l,e.opacity);if(e instanceof qe||(e=Pe(e)),0===e.a&&0===e.b)return new Ge(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ze;return new Ge(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ge(e,t,n,null==r?1:r)},J(Q,{brighter(e){return new Ge(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Ge(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Ke(this).rgb()}}));var Ze=e=>()=>e;function Ye(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Ze(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?Ye:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Ze(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=ve(e)).r,(t=ve(t)).r),o=n(e.g,t.g),a=n(e.b,t.b),i=Ye(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return r.gamma=e,r}(1);var We="center",Xe="bottom";[{key:"NoDataExist",alignment:We,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:We,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every(function(e){return"NaN"===e.qMin&&"NaN"===e.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:We,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:We},{key:"DataRangeIncludingZero",alignment:Xe},{key:"LimitedData",alignment:Xe},{key:"NegativeOrZeroValues",alignment:Xe}].reduce(function(e,t){return e[t.key]=t,e},{});var Je,Qe=["__proto__","constructor"];function et(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!Qe.some(function(e){return r.includes(e)})){for(var a=e,i=0;i<r.length-1;++i){var s=r[i];void 0===a[s]&&(a[s]=Number.isNaN(+r[i+1])?{}:[]),a=a[s]}void 0!==n?a[o]=n:delete a[o]}}}function tt(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function nt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ot)):void 0===t&&(t=rt);for(var n,r,o,a,i,s=new st(e),l=[s];n=l.pop();)if((o=t(n.data))&&(i=(o=Array.from(o)).length))for(n.children=o,a=i-1;a>=0;--a)l.push(r=o[a]=new st(o[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(it)}function rt(e){return e.children}function ot(e){return Array.isArray(e)?e[1]:null}function at(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function it(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function st(e){this.data=e,this.depth=this.height=0,this.parent=null}st.prototype=nt.prototype={constructor:st,count:function(){return this.eachAfter(tt)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,a=this,i=[a],s=[],l=-1;a=i.pop();)if(s.push(a),n=a.children)for(r=0,o=n.length;r<o;++r)i.push(n[r]);for(;a=s.pop();)e.call(t,a,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,a=[o],i=-1;o=a.pop();)if(e.call(t,o,++i,this),n=o.children)for(r=n.length-1;r>=0;--r)a.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return nt(this).eachBefore(at)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)a.push(t[n])}while(a.length)}},Je=function(e){
|
|
7
|
+
System.register(["@nebula.js/stardust"],function(e){"use strict";var t,n,r,o,a,i,s,l,c,u,h,d,p,f,g,m,b;return{setters:[function(e){t=e.useState,n=e.useSelections,r=e.useLayout,o=e.useEffect,a=e.useAction,i=e.useElement,s=e.onTakeSnapshot,l=e.useImperativeHandle,c=e.useTheme,u=e.useMemo,h=e.useModel,d=e.useStaleLayout,p=e.useTranslator,f=e.useOptions,g=e.usePromise,m=e.useRect,b=e.useConstraints}],execute:function(){e("default",function(e){const{flags:c}=e;return{qae:{properties:yt,data:y},component:()=>{const h=d(),g=i(),y=f(),v=m(),x=b(),w=p(),[_,C]=t(null),[E,k]=t(null),[O,S]=t(null),[L,z]=t(null),[N]=t({transform:{},constraints:x,expandedState:E}),R=function(e){const[i,s]=t(!1),l=n(),c=!!r().qSelectionInfo.qInSelections,[u]=t({api:l,setState:e=>{u.state=e},state:[],singleSelect:!1});o(()=>{bt(e)},[e]);const h=()=>{u.state=[]},d=()=>{u.state=[],s(!1)};return o(()=>u.api?(u.api=l,u.api.on("deactivated",h),u.api.on("canceled",d),u.api.on("confirmed",d),u.api.on("cleared",h),()=>{u.api.removeListener("deactivated",h),u.api.removeListener("canceled",d),u.api.removeListener("confirmed",d),u.api.removeListener("cleared",h)}):()=>{},[l]),o(()=>{u.singleSelect=i},[i]),a(()=>({action(){s(!i)},icon:{shapes:[{type:"path",attrs:{d:vt}}]},active:i,hidden:!c,label:e.get("Object.OrgChart.SingleSelect")}),[i,c]),o(()=>{const e=e=>{"Shift"===e.key&&s(!0)},t=e=>{"Shift"===e.key&&s(!1)};return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),u}(w);u(()=>{bt(w)},[g,w.language()]),o(()=>{N.constraints=x},[x]),o(()=>{N.transform=O},[O]),o(()=>{N.expandedState=E},[E]);const A=e=>{e.useTransitions=!0,k(e)},{dataTree:T,styling:M,usePromiseStatus:$}=Ri({env:e,setExpandedState:k,setTransform:S,selectionObj:R}),j=()=>{if(g&&T&&M){const e=zi.getViewState(y,h),t=ui(M);Ci({element:g,dataTree:T,viewState:e,wrapperState:N,selectionObj:R,setInitialZoom:z,setTransform:S,setExpandedState:k,setContainerData:C,layout:h,flags:c,actualCardHeight:t})}},I=()=>{if(_&&E&&M){const e=ui(M);_i({containerData:_,styling:M,setExpandedCallback:A,wrapperState:N,selectionObj:R,useTransitions:E.useTransitions,element:g,flags:c,actualCardHeight:e,usePromiseStatus:$})}};o(()=>{I()},[_,R.state]),o(()=>{j()},[g,T,x]),o(()=>{h.resizeOnExpand?j():I()},[E]),o(()=>{if(_&&h&&h.snapshotData){const e=xi(v,h.snapshotData.viewState,O);vi(e,_.svg,_.divBox,v.width,v.height),_.divBox.classed("sn-org-chart-snapshot",!0)}},[v,_]),function(e,t,n,r,o){const a=i();s(i=>{i.snapshotData||(i.snapshotData={}),n.snapshotData&&n.snapshotData.viewState||(i.snapshotData.viewState=ki(e,r,o,a)),i.snapshotData.dataMatrix=Ei(e,t.allNodes,n)}),l(()=>({getViewState:()=>ki(e,r,o,a)}))}(E,_,h,O,L)},ext:gt(e)}});var y={targets:[{path:"/qHyperCubeDef",dimensions:{min:2,max:2},measures:{min:0,max:1}}]};var v={getValue:function(e,t,n){const r=t.split(".");let o;if(void 0===e)return n;let a=e;for(o=0;o<r.length;++o){if(void 0===a[r[o]])return n;a=a[r[o]]}return a}};const x="object",w=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];const _=e=>({value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}});function C({theme:e,translator:t,id:n,path:r}){const o=()=>e.getStyle(n,r,"fontFamily");return{getDefaultValue:()=>o(),getOptions:()=>function({theme:e,translator:t,defaultValue:n}){const r=[],o=e.getStyle("","","fontFamilies");return Array.isArray(o)&&o.length?r.push(...new Set([n,...o.map(e=>e.split(",").map(e=>e.trim()).map(e=>e.replace(/\s+/g," ").trim()).filter(Boolean).join(", "))])):r.push(n),[{value:"ThemeHeader",label:t.get("properties.themeFonts"),metaText:t.get("properties.theme"),groupHeader:!0},...r.map(e=>_(e)),{value:"DefaultHeader",label:t.get("properties.allFonts"),metaText:t.get("properties.default"),groupHeader:!0},...w.map(e=>_(e))]}({theme:e,translator:t,defaultValue:o()})}}var E=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"];const k=e=>({value:e,label:e,groupHeader:!1,disabled:!1});function O({theme:e,translator:t,id:n,path:r}){const o=()=>e.getStyle(n,r,"fontSize");return{getDefaultValue:()=>o(),getOptions:()=>function({theme:e,translator:t,defaultValue:n}){const r=[],o=e.getStyle("","","fontSizes");return Array.isArray(o)&&o.length?r.push(...new Set([n,...o])):r.push(n),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0},...r.map(e=>k(e)),{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0},...E.map(e=>k(e))]}({theme:e,translator:t,defaultValue:o()})}}function S({theme:e,translator:t,id:n,path:r}){return{fontFamily:C({theme:e,translator:t,id:n,path:r}),fontSize:O({theme:e,translator:t,id:n,path:r})}}const L=["__proto__","constructor"],z=e=>{if(L.some(t=>e.includes(t)))throw new Error("font-resolver: Forbidden property.")};var N,R,A,T=function(){if(R)return N;R=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},a=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),a=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!a)return!1;for(r in n);return void 0===r||e.call(n,r)},i=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return N=function e(){var t,n,r,l,c,u,h=arguments[0],d=1,p=arguments.length,f=!1;for("boolean"==typeof h&&(f=h,h=arguments[1]||{},d=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});d<p;++d)if(null!=(t=arguments[d]))for(n in t)r=s(h,n),h!==(l=s(t,n))&&(f&&l&&(a(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},i(h,{name:n,newValue:e(f,u,l)})):void 0!==l&&i(h,{name:n,newValue:l}));return h},N}();function M(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function $(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function j(){}(A=T)&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")&&A.default;var I=.7,D=1/I,B="\\s*([+-]?\\d+)\\s*",P="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",q="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",F=/^#([0-9a-f]{3,8})$/,U=new RegExp(`^rgb\\(${B},${B},${B}\\)$`),V=new RegExp(`^rgb\\(${q},${q},${q}\\)$`),H=new RegExp(`^rgba\\(${B},${B},${B},${P}\\)$`),K=new RegExp(`^rgba\\(${q},${q},${q},${P}\\)$`),Z=new RegExp(`^hsl\\(${P},${q},${q}\\)$`),W=new RegExp(`^hsla\\(${P},${q},${q},${P}\\)$`),G={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function X(){return this.rgb().formatHex()}function Y(){return this.rgb().formatRgb()}function J(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=F.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Q(t):3===n?new re(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ee(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ee(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=U.exec(e))?new re(t[1],t[2],t[3],1):(t=V.exec(e))?new re(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=H.exec(e))?ee(t[1],t[2],t[3],t[4]):(t=K.exec(e))?ee(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Z.exec(e))?ce(t[1],t[2]/100,t[3]/100,1):(t=W.exec(e))?ce(t[1],t[2]/100,t[3]/100,t[4]):G.hasOwnProperty(e)?Q(G[e]):"transparent"===e?new re(NaN,NaN,NaN,0):null}function Q(e){return new re(e>>16&255,e>>8&255,255&e,1)}function ee(e,t,n,r){return r<=0&&(e=t=n=NaN),new re(e,t,n,r)}function te(e){return e instanceof j||(e=J(e)),e?new re((e=e.rgb()).r,e.g,e.b,e.opacity):new re}function ne(e,t,n,r){return 1===arguments.length?te(e):new re(e,t,n,null==r?1:r)}function re(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function oe(){return`#${le(this.r)}${le(this.g)}${le(this.b)}`}function ae(){const e=ie(this.opacity);return`${1===e?"rgb(":"rgba("}${se(this.r)}, ${se(this.g)}, ${se(this.b)}${1===e?")":`, ${e})`}`}function ie(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function se(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function le(e){return((e=se(e))<16?"0":"")+e.toString(16)}function ce(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new he(e,t,n,r)}function ue(e){if(e instanceof he)return new he(e.h,e.s,e.l,e.opacity);if(e instanceof j||(e=J(e)),!e)return new he;if(e instanceof he)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,s=a-o,l=(a+o)/2;return s?(i=t===a?(n-r)/s+6*(n<r):n===a?(r-t)/s+2:(t-n)/s+4,s/=l<.5?a+o:2-a-o,i*=60):s=l>0&&l<1?0:i,new he(i,s,l,e.opacity)}function he(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function de(e){return(e=(e||0)%360)<0?e+360:e}function pe(e){return Math.max(0,Math.min(1,e||0))}function fe(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}M(j,J,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:X,formatHex:X,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ue(this).formatHsl()},formatRgb:Y,toString:Y}),M(re,ne,$(j,{brighter(e){return e=null==e?D:Math.pow(D,e),new re(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?I:Math.pow(I,e),new re(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new re(se(this.r),se(this.g),se(this.b),ie(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:oe,formatHex:oe,formatHex8:function(){return`#${le(this.r)}${le(this.g)}${le(this.b)}${le(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ae,toString:ae})),M(he,function(e,t,n,r){return 1===arguments.length?ue(e):new he(e,t,n,null==r?1:r)},$(j,{brighter(e){return e=null==e?D:Math.pow(D,e),new he(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?I:Math.pow(I,e),new he(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new re(fe(e>=240?e-240:e+120,o,r),fe(e,o,r),fe(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new he(de(this.h),pe(this.s),pe(this.l),ie(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ie(this.opacity);return`${1===e?"hsl(":"hsla("}${de(this.h)}, ${100*pe(this.s)}%, ${100*pe(this.l)}%${1===e?")":`, ${e})`}`}}));const ge=Math.PI/180,me=180/Math.PI,be=.96422,ye=.82521,ve=4/29,xe=6/29,we=3*xe*xe,_e=xe*xe*xe;function Ce(e){if(e instanceof Ee)return new Ee(e.l,e.a,e.b,e.opacity);if(e instanceof ze)return Ne(e);e instanceof re||(e=te(e));var t,n,r=Le(e.r),o=Le(e.g),a=Le(e.b),i=ke((.2225045*r+.7168786*o+.0606169*a)/1);return r===o&&o===a?t=n=i:(t=ke((.4360747*r+.3850649*o+.1430804*a)/be),n=ke((.0139322*r+.0971045*o+.7141733*a)/ye)),new Ee(116*i-16,500*(t-i),200*(i-n),e.opacity)}function Ee(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ke(e){return e>_e?Math.pow(e,1/3):e/we+ve}function Oe(e){return e>xe?e*e*e:we*(e-ve)}function Se(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Le(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ze(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Ne(e){if(isNaN(e.h))return new Ee(e.l,0,0,e.opacity);var t=e.h*ge;return new Ee(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}M(Ee,function(e,t,n,r){return 1===arguments.length?Ce(e):new Ee(e,t,n,null==r?1:r)},$(j,{brighter(e){return new Ee(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ee(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new re(Se(3.1338561*(t=be*Oe(t))-1.6168667*(e=1*Oe(e))-.4906146*(n=ye*Oe(n))),Se(-.9787684*t+1.9161415*e+.033454*n),Se(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),M(ze,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof ze)return new ze(e.h,e.c,e.l,e.opacity);if(e instanceof Ee||(e=Ce(e)),0===e.a&&0===e.b)return new ze(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*me;return new ze(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ze(e,t,n,null==r?1:r)},$(j,{brighter(e){return new ze(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ze(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Ne(this).rgb()}}));var Re=e=>()=>e;function Ae(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Re(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?Ae:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Re(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=ne(e)).r,(t=ne(t)).r),o=n(e.g,t.g),a=n(e.b,t.b),i=Ae(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return r.gamma=e,r}(1);var Te="center",Me="bottom";[{key:"NoDataExist",alignment:Te,condition:({layoutService:e})=>{if(!e)return!1;const{x:t,y:n}=e.meta.size;return t*n===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Te,condition:({layoutService:e})=>!!e&&e.getHyperCubeValue("qMeasureInfo").every(e=>"NaN"===e.qMin&&"NaN"===e.qMax)},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Te,condition:({layoutService:e})=>{if(!e)return!1;const{isContinuous:t}=e.meta;if(!t)return!1;const n=e.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Te},{key:"DataRangeIncludingZero",alignment:Me},{key:"LimitedData",alignment:Me},{key:"NegativeOrZeroValues",alignment:Me}].reduce((e,t)=>(e[t.key]=t,e),{});const $e=["__proto__","constructor"];function je(e,t,n){if(void 0===e||void 0===t)return;const r=t.split("."),o=r[r.length-1];if($e.some(e=>r.includes(e)))return;let a=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0===a[t]&&(a[t]=Number.isNaN(+r[e+1])?{}:[]),a=a[t]}void 0!==n?a[o]=n:delete a[o]}function Ie(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function De(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Pe)):void 0===t&&(t=Be);for(var n,r,o,a,i,s=new Ue(e),l=[s];n=l.pop();)if((o=t(n.data))&&(i=(o=Array.from(o)).length))for(n.children=o,a=i-1;a>=0;--a)l.push(r=o[a]=new Ue(o[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Fe)}function Be(e){return e.children}function Pe(e){return Array.isArray(e)?e[1]:null}function qe(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Fe(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Ue(e){this.data=e,this.depth=this.height=0,this.parent=null}var Ve;Ue.prototype=De.prototype={constructor:Ue,count:function(){return this.eachAfter(Ie)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,a=this,i=[a],s=[],l=-1;a=i.pop();)if(s.push(a),n=a.children)for(r=0,o=n.length;r<o;++r)i.push(n[r]);for(;a=s.pop();)e.call(t,a,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,a=[o],i=-1;o=a.pop();)if(e.call(t,o,++i,this),n=o.children)for(r=n.length-1;r>=0;--r)a.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return De(this).eachBefore(qe)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)a.push(t[n])}while(a.length)}},Ve=function(e){
|
|
8
8
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
9
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,a,i,s,l,u,c,d,h=e.length,p=e.search(/[0-9\-\+#]/),f=p>0?e.substring(0,p):"",g=e.split("").reverse().join(""),m=g.search(/[0-9\-\+#]/),b=h-m,y=e.substring(b,b+1),v=b+("."===y||","===y?1:0),x=m>0?e.substring(v,h):"";if(n=(t="-"===(e=e.substring(p,v)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",a=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(a),e[0]=c.join(""),(i=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-i;)u[0]="0"+u[0];else 0===+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(g="",b=(d=t[0]).length%l,h=d.length,v=0;v<h;v++)g+=d.charAt(v),!((v-b+1)%l)&&v<h-l&&(g+=a);t[0]=g}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),f+(n?"-":"")+r+x}},Je({exports:{}});var lt="'Source Sans Pro', 'Arial', 'sans-serif'",ut="#333333",ct="#595959",dt="#737373",ht="#cccccc",pt="#e6e6e6";function ft(e){var t={};return[].concat(O(e),O([["","","color"],["object","","fontFamily"],["object","axis.label.name","color",ct],["object","axis.label.name","fontFamily",lt],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",ht],["object","axis.line.minor","color",pt],["object","axis.title","color"],["object","axis.title","fontFamily",lt],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",pt],["object","grid.line.major","color",ht],["object","grid.line.minor","color",pt],["object","label.value","color",ct],["object","label.value","fontFamily",lt],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",ct],[!1,"label.value","lightColor",pt],["object","outOfRange","color","#999"],["object","legend.title","color",ut],["object","legend.title","fontFamily",lt],["object","legend.title","fontSize","15px"],["object","legend.label","color",ct],["object","legend.label","fontFamily",lt],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",ut],["object","referenceLine.label.name","fontFamily",lt],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",pt],["object","referenceLine.outOfBounds","fontFamily",lt],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",dt,function(e){return"transparent"===e?dt:e}]])).reduce(function(e,n){var r="".concat(n[0],"-").concat(n[1],"-").concat(n[2],"}");return t[r]||(t[r]=!0,e.push(n)),e},[]).sort(function(e,t){return(e[0].split?e[0].split(".").length:0)-(t[0].split?t[0].split(".").length:0)})}var gt="object",mt=function(e){return e};function bt(e){var t=e.theme,n=e.id,r=e.transform,o=e.extend,a=e.matrix,i={},s=r.reduce(function(e,t){var n=C(t,2),r=n[0],o=n[1];return e[r]=o,e},{});return a.forEach(function(e){var r=C(e,5),o=r[0],a=r[1],l=r[2],u=r[3],c=r[4],d=void 0===c?function(e){return e}:c,h=function(e){var t=e.theme,n=e.base,r=e.path,o=e.attribute,a=e.defaultValue,i=void 0===a?void 0:a;if(!t||!1===n)return i;var s=t.getStyle(n,r,o);return void 0===s?i:s}({theme:t,base:o===gt&&n?"".concat(gt,".").concat(n):o,path:a,attribute:l,defaultValue:u}),p=(s["".concat(a,".").concat(l)]||mt)(d(h));et(i,[a,l].filter(Boolean).join("."),p)}),o.forEach(function(e){var t=C(e,2),n=t[0],r=t[1];et(i,n,r)}),i}const yt=[{value:!1,translation:"properties.colorMode.primary"},{value:!0,translation:"properties.colorMode.byExpression"}],vt=e=>e.contrastTextColor??!0;function xt(e,t,n){const r=`${e}.${t}`,o=`${r}.fontFamily`,a=`${r}.fontSize`,i=`${r}.color`,s=`${r}.colorExpression`;return{fontFamilyItem:{component:"dropdown",ref:o,options:()=>n.getOptions(`card.${o}`),defaultValue:()=>n.getDefaultValue(`card.${o}`)},fontSizeItem:{component:"dropdown",ref:a,options:()=>n.getOptions(`card.${a}`),defaultValue:()=>n.getDefaultValue(`card.${a}`)},fontColorWrapperItem:{component:"inline-wrapper",items:{useColorExpression:{ref:`${r}.useColorExpression`,width:!0,component:"dropdown",defaultValue:v.FONT_COLOR_USE_EXPRESSION,options:yt,show:e=>!vt(e)},colorPicker:{component:"color-picker",ref:i,width:!1,dualOutput:!0,defaultValue:v.FONT_COLOR_DARK,show:n=>!vt(n)&&!n[e]?.[t]?.useColorExpression}}},colorExpression:{component:"input-field-expression",type:"string",ref:s,width:!0,expression:"optional",defaultValue:"",show:n=>!vt(n)&&n[e]?.[t]?.useColorExpression}}}const wt=[{value:!1,translation:"properties.colorMode.primary"},{value:!0,translation:"properties.colorMode.byExpression"}],_t=[{value:"card",translation:"Card only"},{value:"tooltip",translation:"Tooltip only"},{value:"both",translation:"Card and tooltip"}],Ct=[{value:"left",translation:"Left"},{value:"right",translation:"Right"},{value:"top",translation:"Top"},{value:"bottom",translation:"Bottom"}],Ot=[{value:"rectangle",translation:"Rectangle"},{value:"round",translation:"Round"}];function Et(e,t,n){const r=function(e){var t=e.theme,n=e.translator,r=e.config,o=void 0===r?{}:r,a=e.flags,i=function(e){var t=e.config,n=void 0===t?{}:t,r=n.id,o=n.paths;return{id:void 0===r?I:"".concat(I,".").concat(r),paths:Array.isArray(o)?o:[]}}({config:o}),s=i.id,l=i.paths,u={};l.forEach(function(e){var r=e.split(".");Z(r);for(var o=u,i=0;i<r.length;i++){var l=r[i];i===r.length-1?o[l]=H({theme:t,translator:n,id:s,path:e,flags:a}):void 0===o[l]&&(o[l]={}),o=o[l]}});var c=function(e){var t=e.split(".");Z(t);for(var n=u,r=0;r<t.length;r++){var o=t[r];if(void 0===n[o])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));n=n[o]}return n};return u.getDefaultValue=function(e){return c(e).getDefaultValue()},u.getOptions=function(e){return c(e).getOptions()},u}({theme:e,translator:n,flags:t,config:{id:"orgChart",paths:["card.title.main","card.title.subTitle","card.label.description","card.label.measureLabel","card.label.measureValue"]}}),o=e=>(e.border?.topBar??v.BORDER_TOP)||(e.border?.fullBorder??v.BORDER_FULL),a=e=>e.border?.contrastColor??!0;return{component:"styling-panel",show:!0,chartType:"orgchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.OrgChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:!0,items:{contrastTextColorSection:{translation:"Object.OrgChart.Card.TextColor",component:"panel-section",items:{contrastTextColorItems:{component:"items",ref:"components",key:"card",items:{useContrast:{component:"checkbox",type:"boolean",ref:"contrastTextColor",translation:"Object.OrgChart.Card.Contrast",defaultValue:!0}}}}},titleSection:{translation:"Object.OrgChart.Card.Title",component:"panel-section",items:{titleItems:{component:"items",ref:"components",key:"card",items:xt("title","main",r)}}},subtitleSection:{translation:"Object.OrgChart.Card.Subtitle",component:"panel-section",items:{subtitleItems:{component:"items",ref:"components",key:"card",items:xt("title","subTitle",r)}}},descriptionSection:{translation:"Object.OrgChart.Card.Description",component:"panel-section",items:{descriptionItems:{component:"items",ref:"components",key:"card",items:xt("label","description",r)}}},measureLabelSection:{translation:"Object.OrgChart.Card.MeasureLabel",component:"panel-section",items:{measureLabelItems:{component:"items",ref:"components",key:"card",items:xt("label","measureLabel",r)}}},measureValueSection:{translation:"Object.OrgChart.Card.MeasureValue",component:"panel-section",items:{measureValueItems:{component:"items",ref:"components",key:"card",items:xt("label","measureValue",r)}}},backgroundColorSection:{component:"panel-section",translation:"Object.OrgChart.ColorLabelExpression",items:{backgroundColorItems:{component:"items",ref:"components",key:"card",items:{fontColorWrapperItem:{component:"inline-wrapper",items:{useColorExpression:{ref:"background.useColorExpression",width:9,component:"dropdown",defaultValue:v.BACKGROUND_USE_EXPRESSION,options:wt},colorPicker:{component:"color-picker",type:"object",ref:"background.color",width:3,dualOutput:!0,defaultValue:v.BACKGROUND_COLOR,showAlpha:t?.isEnabled("IM_3964_BG_OPACITY"),show:e=>!e.background?.useColorExpression},colorExpression:{component:"input-field-expression",type:"string",ref:"background.colorExpression",expression:"optional",defaultValue:"",show:e=>e.background?.useColorExpression}}}}}}},cardBorderSection:{component:"panel-section",translation:"Object.OrgChart.CardAppearance",items:{cardBorderItems:{component:"items",ref:"components",key:"card",items:{topBar:{component:"checkbox",ref:"border.topBar",translation:"Object.OrgChart.TopBar",defaultValue:v.BORDER_TOP},fullBorder:{component:"checkbox",ref:"border.fullBorder",translation:"properties.border",defaultValue:v.BORDER_FULL},contrastBorderColorSection:{component:"checkbox",type:"boolean",key:"card",ref:"border.contrastColor",translation:"Object.OrgChart.Card.Contrast",defaultValue:!0,show:e=>o(e)},borderColorWrapperItem:{component:"inline-wrapper",items:{useColorExpression:{component:"dropdown",ref:"border.useColorExpression",width:9,translation:"properties.border.color",defaultValue:v.BORDER_USE_EXPRESSION,options:wt,show:e=>o(e)&&!a(e)},colorPicker:{component:"color-picker",ref:"border.color",width:3,dualOutput:!0,defaultValue:v.BORDER_COLOR,show:e=>o(e)&&!a(e)&&!e.border?.useColorExpression},colorExpression:{component:"input-field-expression",type:"string",ref:"border.colorExpression",expression:"optional",defaultValue:"",show:e=>o(e)&&!a(e)&&e.border?.useColorExpression}}}}}}},...t?.isEnabled("IM_5036_ORGCHART_STYLING_IMAGE")&&{imageSection:{component:"panel-section",translation:"Object.OrgChart.ImageOptions",items:{imageItems:{component:"items",ref:"components",key:"card",items:{location:{component:"dropdown",ref:"image.location",translation:"Object.OrgChart.ImageLocation",options:_t,defaultValue:v.IMAGE_LOCATION},alignment:{component:"dropdown",ref:"image.alignment",translation:"Object.OrgChart.ImageAlignment",options:Ct,defaultValue:v.IMAGE_ALIGNMENT},shape:{component:"dropdown",ref:"image.shape",translation:"Object.OrgChart.ImageShape",options:Ot,defaultValue:v.IMAGE_SHAPE},clip:{component:"checkbox",ref:"image.clip",translation:"Object.OrgChart.ImageFit",defaultValue:v.IMAGE_CLIP,show:e=>"rectangle"===(e.image?.shape??v.IMAGE_SHAPE)}}}}}}}}}const kt=[{value:"auto",translation:"Common.Auto"},{value:"colorPicker",translation:"properties.colorMode.primary"},{value:"byExpression",translation:"properties.colorMode.byExpression"}],St=[{value:"free",translation:"Object.OrgChart.FreeMode"},{value:"expandAll",translation:"Object.OrgChart.ExpandAll"}],Lt=e=>x.getValue(e,"style.border.top")||x.getValue(e,"style.border.fullBorder"),Rt=e=>({uses:"data",items:{measures:{disabledRef:""},dimensions:{disabledRef:"",items:{dimensionLimits:{show:!1},attributes:{component:"attribute-expression-reference",defaultValue:[],show:(e,t)=>t.getDimensions()[0]===e,ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",translation:"Object.OrgChart.LabelExpression",defaultValue:"",id:"labelExpression",tid:"labelExpression"},{component:"expression",ref:"qExpression",translation:"Object.OrgChart.SubLabelExpression",defaultValue:"",id:"subLabelExpression",tid:"subLabelExpression"},{component:"expression",ref:"qExpression",translation:"Object.OrgChart.ExtraLabelExpression",defaultValue:"",id:"extraLabelExpression",tid:"extraLabelExpression"},...e?.isEnabled("IM_5036_ORGCHART_STYLING")&&e?.isEnabled("IM_5036_ORGCHART_STYLING_IMAGE")?[{component:"expression",ref:"qExpression",translation:"Object.OrgChart.ImageUrl",defaultValue:"",id:"imageExpression",tid:"imageExpression"}]:[],{component:"expression",ref:"qExpression",translation:"Object.OrgChart.ColorLabelExpression",defaultValue:"",id:"colorByExpression",tid:"nodeColorByExpression"}]},desc:{show:(e,t)=>t.getDimensions()[0]===e,component:"text",translation:"Object.OrgChart.ExtraLabelDesc",style:"hint"}}}}}),Tt={uses:"sorting"},At={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"},rowLimit:{type:"integer",translation:"$RowLimit",ref:"rowLimit",defaultValue:3e4,min:5e3,max:1e5,show:!1}}}}},Nt=(e,t,n)=>{const r=n?.sense?.theme,o={uses:"settings",items:{styling:{grouped:!0,translation:"properties.presentation",type:"items",items:{...t?.isEnabled("IM_5036_ORGCHART_STYLING")&&{orgChartStyling:Et(r,t,e)},navigation:{type:"items",items:{navigationMode:{ref:"navigationMode",type:"string",translation:"Object.OrgChart.NavigationMode",component:"dropdown",defaultValue:"free",options:St},resizeOnExpand:{ref:"resizeOnExpand",type:"boolean",defaultValue:!1,translation:"Object.OrgChart.resizeOnExpand",show:e=>"expandAll"!==x.getValue(e,"navigationMode")}}},backgroundColor:{},fontColor:{},border:{}}}}};return t?.isEnabled("IM_5036_ORGCHART_STYLING")||(o.items.styling.items.backgroundColor={type:"items",items:{useColorExpression:{ref:"style.backgroundColor.colorType",type:"string",translation:"Object.OrgChart.BackgroundColor",component:"dropdown",defaultValue:v.BACKGROUND_COLOR_TYPE,options:kt},colorPicker:{component:"color-picker",type:"object",ref:"style.backgroundColor.color",translation:"properties.color",dualOutput:!0,defaultValue:v.BACKGROUND_COLOR,show:e=>"colorPicker"===x.getValue(e,"style.backgroundColor.colorType")},colorExpression:{component:"string",type:"string",ref:"style.backgroundColor.colorExpression",translation:"Common.Expression",expression:"optional",defaultValue:"",show:e=>"byExpression"===x.getValue(e,"style.backgroundColor.colorType")}}},o.items.styling.items.fontColor={type:"items",items:{useColorExpression:{ref:"style.fontColor.colorType",type:"string",translation:"Object.OrgChart.FontColor",component:"dropdown",defaultValue:v.FONT_COLOR_TYPE,options:kt},colorPicker:{component:"color-picker",type:"object",ref:"style.fontColor.color",translation:"properties.color",dualOutput:!0,defaultValue:v.FONT_COLOR_DARK,show:e=>"colorPicker"===x.getValue(e,"style.fontColor.colorType")},colorExpression:{component:"string",type:"string",ref:"style.fontColor.colorExpression",translation:"Common.Expression",expression:"optional",defaultValue:"",show:e=>"byExpression"===x.getValue(e,"style.fontColor.colorType")}}},o.items.styling.items.border={type:"items",items:{appearanceHeader:{component:"text",translation:"Object.OrgChart.CardAppearance",style:"pp-nm-hcd__list-header"},topBar:{type:"boolean",ref:"style.border.top",translation:"Object.OrgChart.TopBar",defaultValue:v.BORDER_TOP},fullBorder:{type:"boolean",ref:"style.border.fullBorder",translation:"properties.border",defaultValue:v.BORDER_FULL},colorType:{component:"dropdown",type:"string",ref:"style.border.colorType",translation:"properties.border.color",defaultValue:v.BORDER_COLOR_TYPE,options:kt,show:e=>Lt(e)},colorPicker:{component:"color-picker",type:"object",ref:"style.border.color",translation:"properties.color",dualOutput:!0,defaultValue:v.BORDER_COLOR,show:e=>Lt(e)&&"colorPicker"===x.getValue(e,"style.border.colorType")},colorExpression:{component:"string",type:"string",ref:"style.border.colorExpression",translation:"Common.Expression",expression:"optional",defaultValue:"",show:e=>Lt(e)&&"byExpression"===x.getValue(e,"style.border.colorType")}}}),o};function zt(e){return function({translator:e,flags:t,anything:n}){return{definition:{type:"items",component:"accordion",items:{data:Rt(t),sorting:Tt,addOns:At,settings:Nt(e,t,n)}},support:{export:!0,exportData:!0,snapshot:!0,viewData:!0},migrate:{properties:e=>t?.isEnabled("IM_5036_ORGCHART_STYLING")?function(e){if(e.components?.length>0)return e;function t(e){return{useColorExpression:"byExpression"===e.colorType,color:e.color,colorExpression:e.colorExpression,colorType:e.colorType}}function n(e){return"auto"===e.colorType}const r={key:"card",title:{main:{...t(e.style?.fontColor)},subTitle:{...t(e.style?.fontColor)}},label:{description:{...t(e.style?.fontColor)},measureLabel:{...t(e.style?.fontColor)},measureValue:{...t(e.style?.fontColor)}},contrastTextColor:n(e.style?.fontColor),background:{...t(e.style?.backgroundColor)},border:{...t(e.style?.border),fullBorder:e.style?.border?.fullBorder,topBar:e.style?.border?.top,contrastColor:n(e.style?.border)}};return e.components=[r],e}(e):e}}}(e)}var Mt={Object_OrgChart:{id:"Object.OrgChart",locale:{"de-DE":"Organisationsdiagramm","en-US":"Org chart","es-ES":"Organigrama","fr-FR":"Organigramme","it-IT":"Organigramma","ja-JP":"組織図","ko-KR":"조직도","nl-NL":"Organisatiediagram","pl-PL":"Wykres organizacyjny","pt-BR":"Quadro organizacional","ru-RU":"Организационная диаграмма","sv-SE":"Organisationsdiagram","tr-TR":"Kuruluş grafiği","zh-CN":"组织图","zh-TW":"組織圖"}},Object_OrgChart_BackgroundColor:{id:"Object.OrgChart.BackgroundColor",locale:{"de-DE":"Hintergrundfarbe","en-US":"Background color","es-ES":"Color de fondo","fr-FR":"Couleur d'arrière-plan","it-IT":"Colore sfondo","ja-JP":"背景色","ko-KR":"배경색","nl-NL":"Achtergrondkleur","pl-PL":"Kolor tła","pt-BR":"Cor de fundo","ru-RU":"Цвет фона","sv-SE":"Bakgrundsfärg","tr-TR":"Arka plan rengi","zh-CN":"背景颜色","zh-TW":"背景顏色"}},Object_OrgChart_CardAppearance:{id:"Object.OrgChart.CardAppearance",locale:{"de-DE":"Kartendarstellung","en-US":"Card appearance","es-ES":"Aspecto de la tarjeta","fr-FR":"Aspect de la carte","it-IT":"Aspetto scheda","ja-JP":"カード スタイル","ko-KR":"카드 모양","nl-NL":"Uiterlijk van de kaart","pl-PL":"Wygląd karty","pt-BR":"Aparência do cartão","ru-RU":"Вид карточки","sv-SE":"Kortets utseende","tr-TR":"Kart görünüşü","zh-CN":"卡外观","zh-TW":"卡片外觀"}},Object_OrgChart_ColorLabelExpression:{id:"Object.OrgChart.ColorLabelExpression",locale:{"de-DE":"Hintergrundfarbe der Karte","en-US":"Card background color","es-ES":"Color de fondo de la tarjeta","fr-FR":"Couleur d'arrière-plan de la carte","it-IT":"Colore sfondo scheda","ja-JP":"カードの背景色","ko-KR":"카드 배경색","nl-NL":"Achtergrondkleur kaart","pl-PL":"Kolor tła karty","pt-BR":"Cor de fundo do cartão","ru-RU":"Цвет фона карточки","sv-SE":"Kortets bakgrundsfärg","tr-TR":"Kart arka plan rengi","zh-CN":"卡背景颜色","zh-TW":"卡片背景顏色"}},Object_OrgChart_CycleWarning:{id:"Object.OrgChart.CycleWarning",locale:{"de-DE":"Die Daten enthalten Zirkelbezüge, Knoten werden ausgelassen.","en-US":"Data contains circular references, nodes are omitted.","es-ES":"Los datos contienen referencias circulares, se omiten los nodos.","fr-FR":"Les données contiennent des références circulaires. Les nœuds sont omis.","it-IT":"Impossibile visualizzare i nodi: i dati contengono riferimenti incrociati.","ja-JP":"データに循環参照が含まれています。ノードは省略されます。","ko-KR":"데이터가 순환 참조를 포함합니다. 노드는 생략됩니다.","nl-NL":"Gegevens bevatten cirkelreferenties, knooppunten worden weggelaten.","pl-PL":"Dane zawierają odwołania cykliczne, węzły są pomijane.","pt-BR":"Os dados contêm referências circulares, os nós são omitidos.","ru-RU":"В данных содержатся циклические ссылки, узлы опущены.","sv-SE":"Data innehåller cirkelreferenser. Noder utelämnas.","tr-TR":"Veriler döngüsel referanslar içeriyor; düğümler atlandı.","zh-CN":"数据包含循环引用,已省略节点。","zh-TW":"資料包含循環參照,已省略節點。"}},Object_OrgChart_Description:{id:"Object.OrgChart.Description",locale:{"de-DE":"Zeigt die Beziehungen einer Organisation oder ähnlich strukturierter Daten an. Startet oben und ermöglicht die Navigation durch die Hierarchie.","en-US":"Displays the relations of an organization or similarly structured data. Starts at the top and allows for navigation through the hierarchy.","es-ES":"Muestra las relaciones jerárquicas de una organización o datos estructurados de manera similar. Comienza en la parte superior y permite la navegación a través de la jerarquía.","fr-FR":"Affiche les relations d'une entreprise ou de données structurées de manière similaire. Démarre au sommet et permet la navigation à travers la hiérarchie.","it-IT":"Visualizza le relazioni di un'organizzazione o dati strutturati in modo analogo. Inizia dall'alto e consente la navigazione attraverso la gerarchia.","ja-JP":"組織の関係やそれに類似する構造のデータを表示します。上部から開始し、階層を移動できます。","ko-KR":"조직 또는 유사하게 구조화된 데이터의 관계를 표시합니다. 맨 위에서 시작하여 계층 구조를 탐색할 수 있습니다.","nl-NL":"Geeft de relaties van een organisatie of vergelijkbaar gestructureerde gegevens weer. Begint bovenaan en maakt navigatie door de hiërarchie mogelijk.","pl-PL":"Wyświetla relacje organizacji lub dane o podobnej strukturze. Zaczyna się od góry i umożliwia nawigację w hierarchii.","pt-BR":"Exibe as relações de uma organização ou dados estruturados de forma semelhante. Começa no topo e permite a navegação pela hierarquia.","ru-RU":"Отображает отношения организации или аналогично структурированные данные. Начинается сверху и позволяет перемещаться по иерархии.","sv-SE":"Visar relationerna i en organisation eller data som är strukturerat på liknande sätt. Startar högst upp och möjliggör navigering genom hierarkin.","tr-TR":"Bir kuruluşun ilişkilerini veya benzer yapılanan verileri gösterir. En üstte açılır ve hiyerarşide hareket etmenize olanak sağlar.","zh-CN":"显示组织或类似结构数据的关系。从顶部开始,并允许在层次结构中进行导航。","zh-TW":"顯示組織的關係或類似結構的資料。在頂端開始並允許瀏覽階層。"}},Object_OrgChart_DummyWarn:{id:"Object.OrgChart.DummyWarn",locale:{"de-DE":"Die Daten enthalten mehrere Root-Knoten.","en-US":"The data contains multiple root nodes.","es-ES":"Los datos contienen múltiples nodos raíz.","fr-FR":"Les données contiennent plusieurs nœuds racines.","it-IT":"I dati contengono più nodi principali.","ja-JP":"データには複数のルート ノードが含まれています。","ko-KR":"데이터가 여러 루트 노드를 포함합니다.","nl-NL":"De gegevens bevatten meerdere hoofdknooppunten.","pl-PL":"Dane zawierają wiele węzłów głównych.","pt-BR":"Os dados contêm vários nós raiz.","ru-RU":"В данных содержится несколько корневых узлов.","sv-SE":"Data innehåller flera rotnoder.","tr-TR":"Veriler birden çok kök düğümü içeriyor.","zh-CN":"数据包含多个根节点。","zh-TW":"資料包含多個根節點。"}},Object_OrgChart_ExpandAll:{id:"Object.OrgChart.ExpandAll",locale:{"de-DE":"Gesamte Struktur","en-US":"Entire tree","es-ES":"Árbol entero","fr-FR":"Arborescence complète","it-IT":"Intero albero","ja-JP":"ツリー全体","ko-KR":"전체 트리","nl-NL":"Volledige structuur","pl-PL":"Całe drzewo","pt-BR":"Árvore inteira","ru-RU":"Все дерево","sv-SE":"Hela trädet","tr-TR":"Tüm ağaç","zh-CN":"整个树","zh-TW":"整個樹狀結構"}},Object_OrgChart_ExtraLabelDesc:{id:"Object.OrgChart.ExtraLabelDesc",locale:{"de-DE":"Die Beschreibung wird nur angezeigt, wenn eine Kennzahl nicht verwendet wird","en-US":"Description is only visible when a measure is not used","es-ES":"La descripción solo está visible cuando no se usa una medida","fr-FR":"La description est visible uniquement lorsqu'une mesure n'est pas utilisée","it-IT":"È possibile visualizzare la descrizione solo se le misure non vengono utilizzate","ja-JP":"メジャーが使用されていない場合にのみ、説明が表示されます。","ko-KR":"측정값을 사용하지 않는 경우에만 설명을 볼 수 있습니다.","nl-NL":"Beschrijving is alleen zichtbaar wanneer een meting niet wordt gebruikt","pl-PL":"Opis jest widoczny tylko wtedy, gdy miara nie jest używana","pt-BR":"A descrição é visível apenas quando uma medida não é usada","ru-RU":"Описание отображается, только если мера не используется","sv-SE":"Beskrivning används bara när ett mått inte används","tr-TR":"Bir hesaplama kullanılmadığında yalnızca açıklama görünür","zh-CN":"描述仅在未使用度量时可用","zh-TW":"只有在不使用量值時才會顯示描述"}},Object_OrgChart_ExtraLabelExpression:{id:"Object.OrgChart.ExtraLabelExpression",locale:{"de-DE":"Beschreibung der Karte","en-US":"Card description","es-ES":"Descripción de la tarjeta","fr-FR":"Description de la carte","it-IT":"Descrizione scheda","ja-JP":"カードの説明","ko-KR":"카드 설명","nl-NL":"Beschrijving kaart","pl-PL":"Opis karty","pt-BR":"Descrição do cartão","ru-RU":"Описание карточки","sv-SE":"Kortets beskrivning","tr-TR":"Kart açıklaması","zh-CN":"卡描述","zh-TW":"卡片描述"}},Object_OrgChart_FontColor:{id:"Object.OrgChart.FontColor",locale:{"de-DE":"Schriftfarbe","en-US":"Font color","es-ES":"Color de fuente","fr-FR":"Couleur de police","it-IT":"Colore formato carattere","ja-JP":"フォントの色","ko-KR":"글꼴 색","nl-NL":"Tekstkleur","pl-PL":"Kolor czcionki","pt-BR":"Cor da fonte","ru-RU":"Цвет шрифта","sv-SE":"Teckenfärg","tr-TR":"Yazı tipi rengi","zh-CN":"字体颜色","zh-TW":"字型色彩"}},Object_OrgChart_FreeMode:{id:"Object.OrgChart.FreeMode",locale:{"de-DE":"Erweitern/reduzieren","en-US":"Expand/collapse","es-ES":"Expandir/contraer","fr-FR":"Développer/Réduire","it-IT":"Espandi/comprimi","ja-JP":"展開/折りたたむ","ko-KR":"확장/축소","nl-NL":"Uitvouwen/alles samenvouwen","pl-PL":"Rozwiń/zwiń","pt-BR":"Expandir/recolher","ru-RU":"Развернуть/свернуть","sv-SE":"Visa/dölj","tr-TR":"Genişlet/daralt","zh-CN":"展开/折叠","zh-TW":"展開/摺疊"}},Object_OrgChart_IncludeDescendants:{id:"Object.OrgChart.IncludeDescendants",locale:{"de-DE":"Alle untergeordneten Elemente einschließen","en-US":"Include all children","es-ES":"Incluir todos los nodos secundarios","fr-FR":"Inclure tous les enfants","it-IT":"Includi tutti i nodi secondari","ja-JP":"すべての子を含める","ko-KR":"모든 자식을 포함합니다.","nl-NL":"Alle onderliggende elementen opnemen","pl-PL":"Uwzględniaj wszystkie elementy podrzędne","pt-BR":"Incluir todos os filhos","ru-RU":"Включить все дочерние элементы","sv-SE":"Inkludera alla underordnade","tr-TR":"Tüm alt öğeleri dahil edin","zh-CN":"包含所有子项","zh-TW":"包括所有子項"}},Object_OrgChart_LabelExpression:{id:"Object.OrgChart.LabelExpression",locale:{"de-DE":"Titel der Karte","en-US":"Card title","es-ES":"Título de tarjeta","fr-FR":"Titre de la carte","it-IT":"Titolo scheda","ja-JP":"カード タイトル","ko-KR":"카드 제목","nl-NL":"Titel kaart","pl-PL":"Tytuł karty","pt-BR":"Título do cartão","ru-RU":"Заголовок карточки","sv-SE":"Kortets rubrik","tr-TR":"Kart başlığı","zh-CN":"卡标题","zh-TW":"卡片標題"}},Object_OrgChart_MaxChildren:{id:"Object.OrgChart.MaxChildren",locale:{"de-DE":"Maximale Anzahl an untergeordneten Knoten erreicht, Knoten werden ausgelassen.","en-US":"Maximum number of child nodes reached, nodes are omitted.","es-ES":"Se alcanzó el número máximo de nodos secundarios, se omiten los nodos.","fr-FR":"Nombre maximal de nœuds enfants atteint. Les nœuds sont omis.","it-IT":"Impossibile visualizzare i nodi: numero massimo di nodi secondari raggiunto.","ja-JP":"子ノードの最大数に達しました。ノードは省略されます。","ko-KR":"최대 자식 노드 수에 도달했습니다. 노드는 생략됩니다.","nl-NL":"Maximaal aantal onderliggende knooppunten bereikt, knooppunten worden weggelaten.","pl-PL":"Osiągnięto maksymalną liczbę węzłów podrzędnych, węzły są pomijane.","pt-BR":"Número máximo de nós filhos atingidos, os nós são omitidos.","ru-RU":"Достигнуто максимальное количество дочерних узлов, узлы опущены.","sv-SE":"Maximalt antal underordnade noder har uppnåtts. Noder utelämnas.","tr-TR":"Maksimum alt öğe düğüm sayısına ulaşıldı; düğümler atlandı.","zh-CN":"已达到子节点最大数目,将省略节点。","zh-TW":"已達子節點數量上限,已省略節點。"}},Object_OrgChart_MaxData:{id:"Object.OrgChart.MaxData",locale:{"de-DE":"Die Datenobergrenze ist erreicht. Die Struktur wird möglicherweise nicht korrekt dargestellt.","en-US":"The maximum data limit is reached. The tree may display incorrectly.","es-ES":"Se ha alcanzado el límite máximo de datos. Puede que el árbol se muestre incorrectamente.","fr-FR":"La limite de données maximale est atteinte. Il se peut que l'arborescence ne s'affiche pas correctement.","it-IT":"Limite massimo dati raggiunto. La visualizzazione del grafico potrebbe essere compromessa.","ja-JP":"最大データ制限に達しました。ツリーが正しく表示されない場合があります。","ko-KR":"최대 데이터 제한에 도달했습니다. 트리가 잘못 표시될 수 있습니다.","nl-NL":"Het maximale datalimiet is bereikt. De boom kan incorrect worden weergegeven.","pl-PL":"Osiągnięto maksymalny limit danych. Drzewo może wyświetlać się nieprawidłowo.","pt-BR":"O limite máximo de dados foi atingido. A árvore pode ser exibida incorretamente.","ru-RU":"Достигнут максимальный предел данных. Дерево может отображаться некорректно.","sv-SE":"Maxgränsen för data har nåtts. Trädet kanske inte visas på rätt sätt.","tr-TR":"Maksimum veri sınırına ulaşıldı. Ağaç grafik doğru görüntülenmeyebilir.","zh-CN":"已达到最大数据限制。树的显示可能不当。","zh-TW":"已達資料上限。樹狀目錄的顯示方式可能不正確。"}},Object_OrgChart_MissingRoot:{id:"Object.OrgChart.MissingRoot",locale:{"de-DE":"Kein Root-Knoten, prüfen Sie die Daten auf Zirkelbezüge.","en-US":"No root node, check data for circular references.","es-ES":"Sin nodo raíz, verifique los datos por si hay referencias circulares.","fr-FR":"Aucun nœud racine. Recherchez les références circulaires dans les données.","it-IT":"Impossibile utilizzare i nodi principali: verificare i riferimenti circolari.","ja-JP":"ルート ノードがありません。循環参照のデータを確認してください。","ko-KR":"루트 노드가 없습니다. 순환 참조에 대한 데이터를 확인하십시오.","nl-NL":"Geen hoofdknooppunt, controleer of de gegevens cirkelreferenties bevatten.","pl-PL":"Brak węzła głównego, sprawdź dane pod kątem odwołań cyklicznych.","pt-BR":"Nenhum nó raiz, verifique os dados para referências circulares.","ru-RU":"Нет корневых узлов, проверьте данные на предмет циклических ссылок.","sv-SE":"Ingen rotnod. Kontrollera om det finns cirkelreferenser i data.","tr-TR":"Kök düğümü yok, verileri döngüsel referanslar açısından kontrol edin.","zh-CN":"无根节点,请检查数据是否存在循环引用。","zh-TW":"沒有根節點,請檢查循環參照的資料。"}},Object_OrgChart_NavigationMode:{id:"Object.OrgChart.NavigationMode",locale:{"de-DE":"Präsentationsmodus","en-US":"Presentation mode","es-ES":"Modo presentación","fr-FR":"Mode présentation","it-IT":"Modalità presentazione","ja-JP":"プレゼンテーション モード","ko-KR":"프레젠테이션 모드","nl-NL":"Presentatiemodus","pl-PL":"Tryb prezentacji","pt-BR":"Modo de apresentação","ru-RU":"Режим представления","sv-SE":"Presentationsläge","tr-TR":"Sunum modu","zh-CN":"演示模式","zh-TW":"呈現模式"}},Object_OrgChart_SingleSelect:{id:"Object.OrgChart.SingleSelect",locale:{"de-DE":"Einzelnen Knoten auswählen","en-US":"Select single node","es-ES":"Seleccionar nodo único","fr-FR":"Sélectionner un seul nœud","it-IT":"Seleziona nodo singolo","ja-JP":"単一ノードを選択","ko-KR":"단일 노드 선택","nl-NL":"Enkel knooppunt selecteren","pl-PL":"Wybierz pojedynczy węzeł","pt-BR":"Selecionar nó único","ru-RU":"Выберите один узел","sv-SE":"Välj enskild nod","tr-TR":"Tek düğüm seç","zh-CN":"选择单个节点","zh-TW":"選取單一節點"}},Object_OrgChart_SubLabelExpression:{id:"Object.OrgChart.SubLabelExpression",locale:{"de-DE":"Untertitel der Karte","en-US":"Card sub-title","es-ES":"Subtítulo de tarjeta","fr-FR":"Sous-titre de la carte","it-IT":"Sottotitolo scheda","ja-JP":"カード サブタイトル","ko-KR":"카드 소제목","nl-NL":"Ondertitel kaart","pl-PL":"Podtytuł karty","pt-BR":"Subtítulo do cartão","ru-RU":"Подзаголовок карточки","sv-SE":"Kortets underrubrik","tr-TR":"Kart alt başlığı","zh-CN":"卡子标题","zh-TW":"卡片子標題"}},Object_OrgChart_TopBar:{id:"Object.OrgChart.TopBar",locale:{"de-DE":"Obere Leiste","en-US":"Top bar","es-ES":"Barra superior","fr-FR":"Barre supérieure","it-IT":"Barra superiore","ja-JP":"上部のバー","ko-KR":"상위 막대","nl-NL":"Bovenste balk","pl-PL":"Górny słupek","pt-BR":"Barra superior","ru-RU":"Верхняя полоса","sv-SE":"Övre fältet","tr-TR":"Üst çubuk","zh-CN":"顶部栏","zh-TW":"頂端列"}},Object_OrgChart_resizeOnExpand:{id:"Object.OrgChart.resizeOnExpand",locale:{"de-DE":"Beim Erweitern/Reduzieren Größe ändern","en-US":"Resize on expand/collapse","es-ES":"Cambiar el tamaño al expandir/contraer","fr-FR":"Redimensionner avec Développer/Réduire","it-IT":"Ridimensiona quando espandi/comprimi","ja-JP":"展開/折りたたみ時にサイズ変更","ko-KR":"확장/축소하여 크기 조정","nl-NL":"Formaat wijzigen bij uitvouwen/alles samenvouwen","pl-PL":"Zmień rozmiar przy rozwijaniu/zwijaniu","pt-BR":"Redimensionar em expandir/recolher","ru-RU":"Изменить размер при разворачивании/сворачивании","sv-SE":"Ändra storlek vid visa/dölj","tr-TR":"Genişletmede/daraltmada yeniden boyutlandır","zh-CN":"调整展开/折叠的大小","zh-TW":"調整展開/摺疊大小"}}};function It(e){if(e&&e.get&&e.add){const t="Object.OrgChart.MaxData";if(e.get(t)!==t)return;Object.keys(Mt).forEach(t=>{e.add(Mt[t])})}}const jt={qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:5,qHeight:500}],qSuppressZero:!1,qSuppressMissing:!0},showTitles:!0,title:"",subtitle:"",footnote:"",navigationMode:"free",resizeOnExpand:!1,style:{fontColor:{colorType:v.FONT_COLOR_TYPE,color:v.FONT_COLOR_DARK,colorExpression:""},backgroundColor:{colorType:v.BACKGROUND_COLOR_TYPE,color:v.BACKGROUND_COLOR,colorExpression:""},border:{top:v.BORDER_TOP,fullBorder:v.BORDER_FULL,colorType:v.BORDER_COLOR_TYPE,color:v.BORDER_COLOR,colorExpression:""}},components:[]},$t="M9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 Z M15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.4,15 C14.7313708,15 15,14.7313708 15,14.4 L15,13.5 C15,13.2238576 15.2238576,13 15.5,13 Z M0.5,13 C0.776142375,13 1,13.2238576 1,13.5 L1,14.4 C1,14.7313708 1.26862915,15 1.6,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,13.5 C0,13.2238576 0.223857625,13 0.5,13 Z M6.8,9 C6.91045695,9 7,9.08954305 7,9.2 L7,12.8 C7,12.9104569 6.91045695,13 6.8,13 L3.2,13 C3.08954305,13 3,12.9104569 3,12.8 L3,9.2 C3,9.08954305 3.08954305,9 3.2,9 L6.8,9 Z M12.8,9 C12.9104569,9 13,9.08954305 13,9.2 L13,12.8 C13,12.9104569 12.9104569,13 12.8,13 L9.2,13 C9.08954305,13 9,12.9104569 9,12.8 L9,9.2 C9,9.08954305 9.08954305,9 9.2,9 L12.8,9 Z M6,10 L4,10 L4,12 L6,12 L6,10 Z M12,10 L10,10 L10,12 L12,12 L12,10 Z M15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 Z M0.5,6 C0.776142375,6 1,6.22385763 1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 0,9.77614237 0,9.5 L0,6.5 C0,6.22385763 0.223857625,6 0.5,6 Z M6.8,3 C6.91045695,3 7,3.08954305 7,3.2 L7,6.8 C7,6.91045695 6.91045695,7 6.8,7 L3.2,7 C3.08954305,7 3,6.91045695 3,6.8 L3,3.2 C3,3.08954305 3.08954305,3 3.2,3 L6.8,3 Z M12.8,3 C12.9104569,3 13,3.08954305 13,3.2 L13,6.8 C13,6.91045695 12.9104569,7 12.8,7 L9.2,7 C9.08954305,7 9,6.91045695 9,6.8 L9,3.2 C9,3.08954305 9.08954305,3 9.2,3 L12.8,3 Z M12,4 L10,4 L10,6 L12,6 L12,4 Z M2.5,5.70654635e-14 C2.77614237,5.70654635e-14 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.6,1 C1.26862915,1 1,1.26862915 1,1.6 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 0,2.77614237 0,2.5 L0,1 C0,0.44771525 0.44771525,5.70654635e-14 1,5.70654635e-14 L2.5,5.70654635e-14 Z M15,0 C15.5522847,0 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.6 C15,1.26862915 14.7313708,1 14.4,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,0 13.5,0 L15,0 Z M9.5,5.67323966e-14 C9.77614237,5.67323966e-14 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,5.67323966e-14 6.5,5.67323966e-14 L9.5,5.67323966e-14 Z";var Dt={value:()=>{}};function Bt(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new Pt(r)}function Pt(e){this._=e}function qt(e,t){for(var n,r=0,o=e.length;r<o;++r)if((n=e[r]).name===t)return n.value}function Ft(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=Dt,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}Pt.prototype=Bt.prototype={constructor:Pt,on:function(e,t){var n,r,o=this._,a=(r=o,(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}})),i=-1,s=a.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++i<s;)if(n=(e=a[i]).type)o[n]=Ft(o[n],e.name,t);else if(null==t)for(n in o)o[n]=Ft(o[n],e.name,null);return this}for(;++i<s;)if((n=(e=a[i]).type)&&(n=qt(o[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Pt(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,o=new Array(n),a=0;a<n;++a)o[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=0,n=(r=this._[e]).length;a<n;++a)r[a].value.apply(t,o)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,a=r.length;o<a;++o)r[o].value.apply(t,n)}};var Vt="http://www.w3.org/1999/xhtml",Ht={svg:"http://www.w3.org/2000/svg",xhtml:Vt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ut(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Ht.hasOwnProperty(t)?{space:Ht[t],local:e}:e}function Gt(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Vt&&t.documentElement.namespaceURI===Vt?t.createElement(e):t.createElementNS(n,e)}}function Kt(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Zt(e){var t=Ut(e);return(t.local?Kt:Gt)(t)}function Yt(){}function Wt(e){return null==e?Yt:function(){return this.querySelector(e)}}function Xt(){return[]}function Jt(e){return null==e?Xt:function(){return this.querySelectorAll(e)}}function Qt(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t);var t}}function en(e){return function(){return this.matches(e)}}function tn(e){return function(t){return t.matches(e)}}var nn=Array.prototype.find;function rn(){return this.firstElementChild}var on=Array.prototype.filter;function an(){return Array.from(this.children)}function sn(e){return new Array(e.length)}function ln(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function un(e,t,n,r,o,a){for(var i,s=0,l=t.length,u=a.length;s<u;++s)(i=t[s])?(i.__data__=a[s],r[s]=i):n[s]=new ln(e,a[s]);for(;s<l;++s)(i=t[s])&&(o[s]=i)}function cn(e,t,n,r,o,a,i){var s,l,u,c=new Map,d=t.length,h=a.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=u=i.call(l,l.__data__,s,t)+"",c.has(u)?o[s]=l:c.set(u,l));for(s=0;s<h;++s)u=i.call(e,a[s],s,a)+"",(l=c.get(u))?(r[s]=l,l.__data__=a[s],c.delete(u)):n[s]=new ln(e,a[s]);for(s=0;s<d;++s)(l=t[s])&&c.get(p[s])===l&&(o[s]=l)}function dn(e){return e.__data__}function hn(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function pn(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function fn(e){return function(){this.removeAttribute(e)}}function gn(e){return function(){this.removeAttributeNS(e.space,e.local)}}function mn(e,t){return function(){this.setAttribute(e,t)}}function bn(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function yn(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function vn(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function xn(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function wn(e){return function(){this.style.removeProperty(e)}}function _n(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Cn(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function On(e,t){return e.style.getPropertyValue(t)||xn(e).getComputedStyle(e,null).getPropertyValue(t)}function En(e){return function(){delete this[e]}}function kn(e,t){return function(){this[e]=t}}function Sn(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function Ln(e){return e.trim().split(/^|\s+/)}function Rn(e){return e.classList||new Tn(e)}function Tn(e){this._node=e,this._names=Ln(e.getAttribute("class")||"")}function An(e,t){for(var n=Rn(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function Nn(e,t){for(var n=Rn(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function zn(e){return function(){An(this,e)}}function Mn(e){return function(){Nn(this,e)}}function In(e,t){return function(){(t.apply(this,arguments)?An:Nn)(this,e)}}function jn(){this.textContent=""}function $n(e){return function(){this.textContent=e}}function Dn(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Bn(){this.innerHTML=""}function Pn(e){return function(){this.innerHTML=e}}function qn(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Fn(){this.nextSibling&&this.parentNode.appendChild(this)}function Vn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Hn(){return null}function Un(){var e=this.parentNode;e&&e.removeChild(this)}function Gn(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Kn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Zn(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,a=t.length;r<a;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function Yn(e,t,n){return function(){var r,o=this.__on,a=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(o)for(var i=0,s=o.length;i<s;++i)if((r=o[i]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),void(r.value=t);this.addEventListener(e.type,a,n),r={type:e.type,name:e.name,value:t,listener:a,options:n},o?o.push(r):this.__on=[r]}}function Wn(e,t,n){var r=xn(e),o=r.CustomEvent;"function"==typeof o?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function Xn(e,t){return function(){return Wn(this,e,t)}}function Jn(e,t){return function(){return Wn(this,e,t.apply(this,arguments))}}ln.prototype={constructor:ln,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},Tn.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var Qn=[null];function er(e,t){this._groups=e,this._parents=t}function tr(){return new er([[document.documentElement]],Qn)}function nr(e){return"string"==typeof e?new er([[document.querySelector(e)]],[document.documentElement]):new er([[e]],Qn)}function rr(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}er.prototype=tr.prototype={constructor:er,select:function(e){"function"!=typeof e&&(e=Wt(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var a,i,s=t[o],l=s.length,u=r[o]=new Array(l),c=0;c<l;++c)(a=s[c])&&(i=e.call(a,a.__data__,c,s))&&("__data__"in a&&(i.__data__=a.__data__),u[c]=i);return new er(r,this._parents)},selectAll:function(e){e="function"==typeof e?Qt(e):Jt(e);for(var t=this._groups,n=t.length,r=[],o=[],a=0;a<n;++a)for(var i,s=t[a],l=s.length,u=0;u<l;++u)(i=s[u])&&(r.push(e.call(i,i.__data__,u,s)),o.push(i));return new er(r,o)},selectChild:function(e){return this.select(null==e?rn:function(e){return function(){return nn.call(this.children,e)}}("function"==typeof e?e:tn(e)))},selectChildren:function(e){return this.selectAll(null==e?an:function(e){return function(){return on.call(this.children,e)}}("function"==typeof e?e:tn(e)))},filter:function(e){"function"!=typeof e&&(e=en(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var a,i=t[o],s=i.length,l=r[o]=[],u=0;u<s;++u)(a=i[u])&&e.call(a,a.__data__,u,i)&&l.push(a);return new er(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,dn);var n,r=t?cn:un,o=this._parents,a=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var i=a.length,s=new Array(i),l=new Array(i),u=new Array(i),c=0;c<i;++c){var d=o[c],h=a[c],p=h.length,f=hn(e.call(d,d&&d.__data__,c,o)),g=f.length,m=l[c]=new Array(g),b=s[c]=new Array(g);r(d,h,m,b,u[c]=new Array(p),f,t);for(var y,v,x=0,w=0;x<g;++x)if(y=m[x]){for(x>=w&&(w=x+1);!(v=b[w])&&++w<g;);y._next=v||null}}return(s=new er(s,o))._enter=l,s._exit=u,s},enter:function(){return new er(this._enter||this._groups.map(sn),this._parents)},exit:function(){return new er(this._exit||this._groups.map(sn),this._parents)},join:function(e,t,n){var r=this.enter(),o=this,a=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(o=t(o))&&(o=o.selection()),null==n?a.remove():n(a),r&&o?r.merge(o).order():o},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,a=r.length,i=Math.min(o,a),s=new Array(o),l=0;l<i;++l)for(var u,c=n[l],d=r[l],h=c.length,p=s[l]=new Array(h),f=0;f<h;++f)(u=c[f]||d[f])&&(p[f]=u);for(;l<o;++l)s[l]=n[l];return new er(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,o=e[t],a=o.length-1,i=o[a];--a>=0;)(r=o[a])&&(i&&4^r.compareDocumentPosition(i)&&i.parentNode.insertBefore(r,i),i=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=pn);for(var n=this._groups,r=n.length,o=new Array(r),a=0;a<r;++a){for(var i,s=n[a],l=s.length,u=o[a]=new Array(l),c=0;c<l;++c)(i=s[c])&&(u[c]=i);u.sort(t)}return new er(o,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,a=r.length;o<a;++o){var i=r[o];if(i)return i}return null},size:function(){let e=0;for(const t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o,a=t[n],i=0,s=a.length;i<s;++i)(o=a[i])&&e.call(o,o.__data__,i,a);return this},attr:function(e,t){var n=Ut(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?gn:fn:"function"==typeof t?n.local?vn:yn:n.local?bn:mn)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?wn:"function"==typeof t?Cn:_n)(e,t,null==n?"":n)):On(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?En:"function"==typeof t?Sn:kn)(e,t)):this.node()[e]},classed:function(e,t){var n=Ln(e+"");if(arguments.length<2){for(var r=Rn(this.node()),o=-1,a=n.length;++o<a;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"==typeof t?In:t?zn:Mn)(n,t))},text:function(e){return arguments.length?this.each(null==e?jn:("function"==typeof e?Dn:$n)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Bn:("function"==typeof e?qn:Pn)(e)):this.node().innerHTML},raise:function(){return this.each(Fn)},lower:function(){return this.each(Vn)},append:function(e){var t="function"==typeof e?e:Zt(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:Zt(e),r=null==t?Hn:"function"==typeof t?t:Wt(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(Un)},clone:function(e){return this.select(e?Kn:Gn)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,o,a=function(e){return e.trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}(e+""),i=a.length;if(!(arguments.length<2)){for(s=t?Yn:Zn,r=0;r<i;++r)this.each(s(a[r],t,n));return this}var s=this.node().__on;if(s)for(var l,u=0,c=s.length;u<c;++u)for(r=0,l=s[u];r<i;++r)if((o=a[r]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?Jn:Xn)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,o=e[t],a=0,i=o.length;a<i;++a)(r=o[a])&&(yield r)}};const or={capture:!0,passive:!1};function ar(e){e.preventDefault(),e.stopImmediatePropagation()}function ir(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function sr(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function lr(){}var ur=.7,cr=1/ur,dr="\\s*([+-]?\\d+)\\s*",hr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",pr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",fr=/^#([0-9a-f]{3,8})$/,gr=new RegExp(`^rgb\\(${dr},${dr},${dr}\\)$`),mr=new RegExp(`^rgb\\(${pr},${pr},${pr}\\)$`),br=new RegExp(`^rgba\\(${dr},${dr},${dr},${hr}\\)$`),yr=new RegExp(`^rgba\\(${pr},${pr},${pr},${hr}\\)$`),vr=new RegExp(`^hsl\\(${hr},${pr},${pr}\\)$`),xr=new RegExp(`^hsla\\(${hr},${pr},${pr},${hr}\\)$`),wr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function _r(){return this.rgb().formatHex()}function Cr(){return this.rgb().formatRgb()}function Or(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=fr.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Er(t):3===n?new Lr(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?kr(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?kr(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=gr.exec(e))?new Lr(t[1],t[2],t[3],1):(t=mr.exec(e))?new Lr(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=br.exec(e))?kr(t[1],t[2],t[3],t[4]):(t=yr.exec(e))?kr(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=vr.exec(e))?Mr(t[1],t[2]/100,t[3]/100,1):(t=xr.exec(e))?Mr(t[1],t[2]/100,t[3]/100,t[4]):wr.hasOwnProperty(e)?Er(wr[e]):"transparent"===e?new Lr(NaN,NaN,NaN,0):null}function Er(e){return new Lr(e>>16&255,e>>8&255,255&e,1)}function kr(e,t,n,r){return r<=0&&(e=t=n=NaN),new Lr(e,t,n,r)}function Sr(e,t,n,r){return 1===arguments.length?((o=e)instanceof lr||(o=Or(o)),o?new Lr((o=o.rgb()).r,o.g,o.b,o.opacity):new Lr):new Lr(e,t,n,null==r?1:r);var o}function Lr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Rr(){return`#${zr(this.r)}${zr(this.g)}${zr(this.b)}`}function Tr(){const e=Ar(this.opacity);return`${1===e?"rgb(":"rgba("}${Nr(this.r)}, ${Nr(this.g)}, ${Nr(this.b)}${1===e?")":`, ${e})`}`}function Ar(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Nr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function zr(e){return((e=Nr(e))<16?"0":"")+e.toString(16)}function Mr(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new jr(e,t,n,r)}function Ir(e){if(e instanceof jr)return new jr(e.h,e.s,e.l,e.opacity);if(e instanceof lr||(e=Or(e)),!e)return new jr;if(e instanceof jr)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,s=a-o,l=(a+o)/2;return s?(i=t===a?(n-r)/s+6*(n<r):n===a?(r-t)/s+2:(t-n)/s+4,s/=l<.5?a+o:2-a-o,i*=60):s=l>0&&l<1?0:i,new jr(i,s,l,e.opacity)}function jr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function $r(e){return(e=(e||0)%360)<0?e+360:e}function Dr(e){return Math.max(0,Math.min(1,e||0))}function Br(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ir(lr,Or,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:_r,formatHex:_r,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ir(this).formatHsl()},formatRgb:Cr,toString:Cr}),ir(Lr,Sr,sr(lr,{brighter(e){return e=null==e?cr:Math.pow(cr,e),new Lr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ur:Math.pow(ur,e),new Lr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Lr(Nr(this.r),Nr(this.g),Nr(this.b),Ar(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Rr,formatHex:Rr,formatHex8:function(){return`#${zr(this.r)}${zr(this.g)}${zr(this.b)}${zr(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Tr,toString:Tr})),ir(jr,function(e,t,n,r){return 1===arguments.length?Ir(e):new jr(e,t,n,null==r?1:r)},sr(lr,{brighter(e){return e=null==e?cr:Math.pow(cr,e),new jr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ur:Math.pow(ur,e),new jr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Lr(Br(e>=240?e-240:e+120,o,r),Br(e,o,r),Br(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new jr($r(this.h),Dr(this.s),Dr(this.l),Ar(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ar(this.opacity);return`${1===e?"hsl(":"hsla("}${$r(this.h)}, ${100*Dr(this.s)}%, ${100*Dr(this.l)}%${1===e?")":`, ${e})`}`}}));var Pr=e=>()=>e;function qr(e){return 1===(e=+e)?Fr:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Pr(isNaN(t)?n:t)}}function Fr(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Pr(isNaN(e)?t:e)}var Vr=function e(t){var n=qr(t);function r(e,t){var r=n((e=Sr(e)).r,(t=Sr(t)).r),o=n(e.g,t.g),a=n(e.b,t.b),i=Fr(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return r.gamma=e,r}(1);function Hr(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Ur=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gr=new RegExp(Ur.source,"g");function Kr(e,t){var n,r,o,a=Ur.lastIndex=Gr.lastIndex=0,i=-1,s=[],l=[];for(e+="",t+="";(n=Ur.exec(e))&&(r=Gr.exec(t));)(o=r.index)>a&&(o=t.slice(a,o),s[i]?s[i]+=o:s[++i]=o),(n=n[0])===(r=r[0])?s[i]?s[i]+=r:s[++i]=r:(s[++i]=null,l.push({i:i,x:Hr(n,r)})),a=Gr.lastIndex;return a<t.length&&(o=t.slice(a),s[i]?s[i]+=o:s[++i]=o),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}var Zr,Yr=180/Math.PI,Wr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Xr(e,t,n,r,o,a){var i,s,l;return(i=Math.sqrt(e*e+t*t))&&(e/=i,t/=i),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,i=-i),{translateX:o,translateY:a,rotate:Math.atan2(t,e)*Yr,skewX:Math.atan(l)*Yr,scaleX:i,scaleY:s}}function Jr(e,t,n,r){function o(e){return e.length?e.pop()+" ":""}return function(a,i){var s=[],l=[];return a=e(a),i=e(i),function(e,r,o,a,i,s){if(e!==o||r!==a){var l=i.push("translate(",null,t,null,n);s.push({i:l-4,x:Hr(e,o)},{i:l-2,x:Hr(r,a)})}else(o||a)&&i.push("translate("+o+t+a+n)}(a.translateX,a.translateY,i.translateX,i.translateY,s,l),function(e,t,n,a){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(o(n)+"rotate(",null,r)-2,x:Hr(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(a.rotate,i.rotate,s,l),function(e,t,n,a){e!==t?a.push({i:n.push(o(n)+"skewX(",null,r)-2,x:Hr(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(a.skewX,i.skewX,s,l),function(e,t,n,r,a,i){if(e!==n||t!==r){var s=a.push(o(a)+"scale(",null,",",null,")");i.push({i:s-4,x:Hr(e,n)},{i:s-2,x:Hr(t,r)})}else 1===n&&1===r||a.push(o(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,i.scaleX,i.scaleY,s,l),a=i=null,function(e){for(var t,n=-1,r=l.length;++n<r;)s[(t=l[n]).i]=t.x(e);return s.join("")}}}var Qr=Jr(function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Wr:Xr(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),eo=Jr(function(e){return null==e?Wr:(Zr||(Zr=document.createElementNS("http://www.w3.org/2000/svg","g")),Zr.setAttribute("transform",e),(e=Zr.transform.baseVal.consolidate())?Xr((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Wr)},", ",")",")");function to(e){return((e=Math.exp(e))+1/e)/2}var no,ro,oo=function e(t,n,r){function o(e,o){var a,i,s=e[0],l=e[1],u=e[2],c=o[0],d=o[1],h=o[2],p=c-s,f=d-l,g=p*p+f*f;if(g<1e-12)i=Math.log(h/u)/t,a=function(e){return[s+e*p,l+e*f,u*Math.exp(t*e*i)]};else{var m=Math.sqrt(g),b=(h*h-u*u+r*g)/(2*u*n*m),y=(h*h-u*u-r*g)/(2*h*n*m),v=Math.log(Math.sqrt(b*b+1)-b),x=Math.log(Math.sqrt(y*y+1)-y);i=(x-v)/t,a=function(e){var r,o=e*i,a=to(v),c=u/(n*m)*(a*(r=t*o+v,((r=Math.exp(2*r))-1)/(r+1))-function(e){return((e=Math.exp(e))-1/e)/2}(v));return[s+c*p,l+c*f,u*a/to(t*o+v)]}}return a.duration=1e3*i*t/Math.SQRT2,a}return o.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},o}(Math.SQRT2,2,4),ao=0,io=0,so=0,lo=0,uo=0,co=0,ho="object"==typeof performance&&performance.now?performance:Date,po="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function fo(){return uo||(po(go),uo=ho.now()+co)}function go(){uo=0}function mo(){this._call=this._time=this._next=null}function bo(e,t,n){var r=new mo;return r.restart(e,t,n),r}function yo(){uo=(lo=ho.now())+co,ao=io=0;try{!function(){fo(),++ao;for(var e,t=no;t;)(e=uo-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ao}()}finally{ao=0,function(){var e,t,n=no,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:no=t);ro=e,xo(r)}(),uo=0}}function vo(){var e=ho.now(),t=e-lo;t>1e3&&(co-=t,lo=e)}function xo(e){ao||(io&&(io=clearTimeout(io)),e-uo>24?(e<1/0&&(io=setTimeout(yo,e-ho.now()-co)),so&&(so=clearInterval(so))):(so||(lo=ho.now(),so=setInterval(vo,1e3)),ao=1,po(yo)))}function wo(e,t,n){var r=new mo;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}mo.prototype=bo.prototype={constructor:mo,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?fo():+n)+(null==t?0:+t),this._next||ro===this||(ro?ro._next=this:no=this,ro=this),this._call=e,this._time=n,xo()},stop:function(){this._call&&(this._call=null,this._time=1/0,xo())}};var _o=Bt("start","end","cancel","interrupt"),Co=[];function Oo(e,t,n,r,o,a){var i=e.__transition;if(i){if(n in i)return}else e.__transition={};!function(e,t,n){var r,o=e.__transition;function a(e){n.state=1,n.timer.restart(i,n.delay,n.time),n.delay<=e&&i(e-n.delay)}function i(a){var u,c,d,h;if(1!==n.state)return l();for(u in o)if((h=o[u]).name===n.name){if(3===h.state)return wo(i);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete o[u]):+u<t&&(h.state=6,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete o[u])}if(wo(function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(d=n.tween.length),u=0,c=-1;u<d;++u)(h=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=h);r.length=c+1}}function s(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=5,1),a=-1,i=r.length;++a<i;)r[a].call(e,o);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var r in n.state=6,n.timer.stop(),delete o[t],o)return;delete e.__transition}o[t]=n,n.timer=bo(a,0,n.time)}(e,n,{name:t,index:r,group:o,on:_o,tween:Co,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function Eo(e,t){var n=So(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function ko(e,t){var n=So(e,t);if(n.state>3)throw new Error("too late; already running");return n}function So(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Lo(e,t){var n,r,o,a=e.__transition,i=!0;if(a){for(o in t=null==t?null:t+"",a)(n=a[o]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete a[o]):i=!1;i&&delete e.__transition}}function Ro(e,t){var n,r;return function(){var o=ko(this,e),a=o.tween;if(a!==n)for(var i=0,s=(r=n=a).length;i<s;++i)if(r[i].name===t){(r=r.slice()).splice(i,1);break}o.tween=r}}function To(e,t,n){var r,o;if("function"!=typeof n)throw new Error;return function(){var a=ko(this,e),i=a.tween;if(i!==r){o=(r=i).slice();for(var s={name:t,value:n},l=0,u=o.length;l<u;++l)if(o[l].name===t){o[l]=s;break}l===u&&o.push(s)}a.tween=o}}function Ao(e,t,n){var r=e._id;return e.each(function(){var e=ko(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return So(e,r).value[t]}}function No(e,t){var n;return("number"==typeof t?Hr:t instanceof Or?Vr:(n=Or(t))?(t=n,Vr):Kr)(e,t)}function zo(e){return function(){this.removeAttribute(e)}}function Mo(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Io(e,t,n){var r,o,a=n+"";return function(){var i=this.getAttribute(e);return i===a?null:i===r?o:o=t(r=i,n)}}function jo(e,t,n){var r,o,a=n+"";return function(){var i=this.getAttributeNS(e.space,e.local);return i===a?null:i===r?o:o=t(r=i,n)}}function $o(e,t,n){var r,o,a;return function(){var i,s,l=n(this);if(null!=l)return(i=this.getAttribute(e))===(s=l+"")?null:i===r&&s===o?a:(o=s,a=t(r=i,l));this.removeAttribute(e)}}function Do(e,t,n){var r,o,a;return function(){var i,s,l=n(this);if(null!=l)return(i=this.getAttributeNS(e.space,e.local))===(s=l+"")?null:i===r&&s===o?a:(o=s,a=t(r=i,l));this.removeAttributeNS(e.space,e.local)}}function Bo(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,o)),n}return o._value=t,o}function Po(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,o)),n}return o._value=t,o}function qo(e,t){return function(){Eo(this,e).delay=+t.apply(this,arguments)}}function Fo(e,t){return t=+t,function(){Eo(this,e).delay=t}}function Vo(e,t){return function(){ko(this,e).duration=+t.apply(this,arguments)}}function Ho(e,t){return t=+t,function(){ko(this,e).duration=t}}var Uo=tr.prototype.constructor;function Go(e){return function(){this.style.removeProperty(e)}}var Ko=0;function Zo(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Yo(){return++Ko}var Wo=tr.prototype;Zo.prototype={constructor:Zo,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Wt(e));for(var r=this._groups,o=r.length,a=new Array(o),i=0;i<o;++i)for(var s,l,u=r[i],c=u.length,d=a[i]=new Array(c),h=0;h<c;++h)(s=u[h])&&(l=e.call(s,s.__data__,h,u))&&("__data__"in s&&(l.__data__=s.__data__),d[h]=l,Oo(d[h],t,n,h,d,So(s,n)));return new Zo(a,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Jt(e));for(var r=this._groups,o=r.length,a=[],i=[],s=0;s<o;++s)for(var l,u=r[s],c=u.length,d=0;d<c;++d)if(l=u[d]){for(var h,p=e.call(l,l.__data__,d,u),f=So(l,n),g=0,m=p.length;g<m;++g)(h=p[g])&&Oo(h,t,n,g,p,f);a.push(p),i.push(l)}return new Zo(a,i,t,n)},selectChild:Wo.selectChild,selectChildren:Wo.selectChildren,filter:function(e){"function"!=typeof e&&(e=en(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var a,i=t[o],s=i.length,l=r[o]=[],u=0;u<s;++u)(a=i[u])&&e.call(a,a.__data__,u,i)&&l.push(a);return new Zo(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,o=n.length,a=Math.min(r,o),i=new Array(r),s=0;s<a;++s)for(var l,u=t[s],c=n[s],d=u.length,h=i[s]=new Array(d),p=0;p<d;++p)(l=u[p]||c[p])&&(h[p]=l);for(;s<r;++s)i[s]=t[s];return new Zo(i,this._parents,this._name,this._id)},selection:function(){return new Uo(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=Yo(),r=this._groups,o=r.length,a=0;a<o;++a)for(var i,s=r[a],l=s.length,u=0;u<l;++u)if(i=s[u]){var c=So(i,t);Oo(i,e,n,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Zo(r,this._parents,e,n)},call:Wo.call,nodes:Wo.nodes,node:Wo.node,size:Wo.size,empty:Wo.empty,each:Wo.each,on:function(e,t){var n=this._id;return arguments.length<2?So(this.node(),n).on.on(e):this.each(function(e,t,n){var r,o,a=function(e){return(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})}(t)?Eo:ko;return function(){var i=a(this,e),s=i.on;s!==r&&(o=(r=s).copy()).on(t,n),i.on=o}}(n,e,t))},attr:function(e,t){var n=Ut(e),r="transform"===n?eo:No;return this.attrTween(e,"function"==typeof t?(n.local?Do:$o)(n,r,Ao(this,"attr."+e,t)):null==t?(n.local?Mo:zo)(n):(n.local?jo:Io)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=Ut(e);return this.tween(n,(r.local?Bo:Po)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?Qr:No;return null==t?this.styleTween(e,function(e,t){var n,r,o;return function(){var a=On(this,e),i=(this.style.removeProperty(e),On(this,e));return a===i?null:a===n&&i===r?o:o=t(n=a,r=i)}}(e,r)).on("end.style."+e,Go(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,o,a;return function(){var i=On(this,e),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(e),l=s=On(this,e)),i===l?null:i===r&&l===o?a:(o=l,a=t(r=i,s))}}(e,r,Ao(this,"style."+e,t))).each(function(e,t){var n,r,o,a,i="style."+t,s="end."+i;return function(){var l=ko(this,e),u=l.on,c=null==l.value[i]?a||(a=Go(t)):void 0;u===n&&o===c||(r=(n=u).copy()).on(s,o=c),l.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,o,a=n+"";return function(){var i=On(this,e);return i===a?null:i===r?o:o=t(r=i,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,o;function a(){var a=t.apply(this,arguments);return a!==o&&(r=(o=a)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,a,n)),r}return a._value=t,a}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(Ao(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,o=So(this.node(),n).tween,a=0,i=o.length;a<i;++a)if((r=o[a]).name===e)return r.value;return null}return this.each((null==t?Ro:To)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?qo:Fo)(t,e)):So(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Vo:Ho)(t,e)):So(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error;return function(){ko(this,e).ease=t}}(t,e)):So(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw new Error;ko(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,o=n.size();return new Promise(function(a,i){var s={value:i},l={value:function(){0===--o&&a()}};n.each(function(){var n=ko(this,r),o=n.on;o!==e&&((t=(e=o).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t}),0===o&&a()})},[Symbol.iterator]:Wo[Symbol.iterator]};var Xo={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function Jo(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function Qo(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function ea(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=na)):void 0===t&&(t=ta);for(var n,r,o,a,i,s=new aa(e),l=[s];n=l.pop();)if((o=t(n.data))&&(i=(o=Array.from(o)).length))for(n.children=o,a=i-1;a>=0;--a)l.push(r=o[a]=new aa(o[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(oa)}function ta(e){return e.children}function na(e){return Array.isArray(e)?e[1]:null}function ra(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function oa(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function aa(e){this.data=e,this.depth=this.height=0,this.parent=null}function ia(e,t){return e.parent===t.parent?1:2}function sa(e){var t=e.children;return t?t[0]:e.t}function la(e){var t=e.children;return t?t[t.length-1]:e.t}function ua(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function ca(e,t,n){return e.a.parent===t.parent?e.a:n}function da(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function ha(){var e=ia,t=1,n=1,r=null;function o(o){var l=function(e){for(var t,n,r,o,a,i=new da(e,0),s=[i];t=s.pop();)if(r=t._.children)for(t.children=new Array(a=r.length),o=a-1;o>=0;--o)s.push(n=t.children[o]=new da(r[o],o)),n.parent=t;return(i.parent=new da(null,0)).children=[i],i}(o);if(l.eachAfter(a),l.parent.m=-l.z,l.eachBefore(i),r)o.eachBefore(s);else{var u=o,c=o,d=o;o.eachBefore(function(e){e.x<u.x&&(u=e),e.x>c.x&&(c=e),e.depth>d.depth&&(d=e)});var h=u===c?1:e(u,c)/2,p=h-u.x,f=t/(c.x+h+p),g=n/(d.depth||1);o.eachBefore(function(e){e.x=(e.x+p)*f,e.y=e.depth*g})}return o}function a(t){var n=t.children,r=t.parent.children,o=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,o=e.children,a=o.length;--a>=0;)(t=o[a]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var a=(n[0].z+n[n.length-1].z)/2;o?(t.z=o.z+e(t._,o._),t.m=t.z-a):t.z=a}else o&&(t.z=o.z+e(t._,o._));t.parent.A=function(t,n,r){if(n){for(var o,a=t,i=t,s=n,l=a.parent.children[0],u=a.m,c=i.m,d=s.m,h=l.m;s=la(s),a=sa(a),s&&a;)l=sa(l),(i=la(i)).a=t,(o=s.z+d-a.z-u+e(s._,a._))>0&&(ua(ca(s,t,r),t,o),u+=o,c+=o),d+=s.m,u+=a.m,h+=l.m,c+=i.m;s&&!la(i)&&(i.t=s,i.m+=d-c),a&&!sa(l)&&(l.t=a,l.m+=u-h,r=t)}return r}(t,o,t.parent.A||r[0])}function i(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],o):r?null:[t,n]},o.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],o):r?[t,n]:null},o}tr.prototype.interrupt=function(e){return this.each(function(){Lo(this,e)})},tr.prototype.transition=function(e){var t,n;e instanceof Zo?(t=e._id,e=e._name):(t=Yo(),(n=Xo).time=fo(),e=null==e?null:e+"");for(var r=this._groups,o=r.length,a=0;a<o;++a)for(var i,s=r[a],l=s.length,u=0;u<l;++u)(i=s[u])&&Oo(i,e,t,u,s,n||Jo(i,t));return new Zo(r,this._parents,e,t)},aa.prototype=ea.prototype={constructor:aa,count:function(){return this.eachAfter(Qo)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,a=this,i=[a],s=[],l=-1;a=i.pop();)if(s.push(a),n=a.children)for(r=0,o=n.length;r<o;++r)i.push(n[r]);for(;a=s.pop();)e.call(t,a,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,a=[o],i=-1;o=a.pop();)if(e.call(t,o,++i,this),n=o.children)for(r=n.length-1;r>=0;--r)a.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;e=n.pop(),t=r.pop();for(;e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return ea(this).eachBefore(ra)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)a.push(t[n])}while(a.length)}},da.prototype=Object.create(aa.prototype);var pa=e=>()=>e;function fa(e,{sourceEvent:t,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function ga(e,t,n){this.k=e,this.x=t,this.y=n}ga.prototype={constructor:ga,scale:function(e){return 1===e?this:new ga(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new ga(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ma=new ga(1,0,0);function ba(e){e.stopImmediatePropagation()}function ya(e){e.preventDefault(),e.stopImmediatePropagation()}function va(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function xa(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function wa(){return this.__zoom||ma}function _a(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ca(){return navigator.maxTouchPoints||"ontouchstart"in this}function Oa(e,t,n){var r=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],i=e.invertY(t[1][1])-n[1][1];return e.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),i>a?(a+i)/2:Math.min(0,a)||Math.max(0,i))}function Ea(){var e,t,n,r=va,o=xa,a=Oa,i=_a,s=Ca,l=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],c=250,d=oo,h=Bt("start","zoom","end"),p=0,f=10;function g(e){e.property("__zoom",wa).on("wheel.zoom",_,{passive:!1}).on("mousedown.zoom",C).on("dblclick.zoom",O).filter(s).on("touchstart.zoom",E).on("touchmove.zoom",k).on("touchend.zoom touchcancel.zoom",S).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new ga(t,e.x,e.y)}function b(e,t,n){var r=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k;return r===e.x&&o===e.y?e:new ga(e.k,r,o)}function y(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function v(e,t,n,r){e.on("start.zoom",function(){x(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){x(this,arguments).event(r).end()}).tween("zoom",function(){var e=this,a=arguments,i=x(e,a).event(r),s=o.apply(e,a),l=null==n?y(s):"function"==typeof n?n.apply(e,a):n,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),c=e.__zoom,h="function"==typeof t?t.apply(e,a):t,p=d(c.invert(l).concat(u/c.k),h.invert(l).concat(u/h.k));return function(e){if(1===e)e=h;else{var t=p(e),n=u/t[2];e=new ga(n,l[0]-t[0]*n,l[1]-t[1]*n)}i.zoom(null,e)}})}function x(e,t,n){return!n&&e.__zooming||new w(e,t)}function w(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function _(e,...t){if(r.apply(this,arguments)){var n=x(this,t).event(e),o=this.__zoom,s=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,i.apply(this,arguments)))),c=rr(e);if(n.wheel)n.mouse[0][0]===c[0]&&n.mouse[0][1]===c[1]||(n.mouse[1]=o.invert(n.mouse[0]=c)),clearTimeout(n.wheel);else{if(o.k===s)return;n.mouse=[c,o.invert(c)],Lo(this),n.start()}ya(e),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",a(b(m(o,s),n.mouse[0],n.mouse[1]),n.extent,u))}}function C(e,...t){if(!n&&r.apply(this,arguments)){var o=e.currentTarget,i=x(this,t,!0).event(e),s=nr(e.view).on("mousemove.zoom",function(e){if(ya(e),!i.moved){var t=e.clientX-c,n=e.clientY-d;i.moved=t*t+n*n>p}i.event(e).zoom("mouse",a(b(i.that.__zoom,i.mouse[0]=rr(e,o),i.mouse[1]),i.extent,u))},!0).on("mouseup.zoom",function(e){s.on("mousemove.zoom mouseup.zoom",null),function(e,t){var n=e.document.documentElement,r=nr(e).on("dragstart.drag",null);t&&(r.on("click.drag",ar,or),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(e.view,i.moved),ya(e),i.event(e).end()},!0),l=rr(e,o),c=e.clientX,d=e.clientY;!function(e){var t=e.document.documentElement,n=nr(e).on("dragstart.drag",ar,or);"onselectstart"in t?n.on("selectstart.drag",ar,or):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(e.view),ba(e),i.mouse=[l,this.__zoom.invert(l)],Lo(this),i.start()}}function O(e,...t){if(r.apply(this,arguments)){var n=this.__zoom,i=rr(e.changedTouches?e.changedTouches[0]:e,this),s=n.invert(i),l=n.k*(e.shiftKey?.5:2),d=a(b(m(n,l),i,s),o.apply(this,t),u);ya(e),c>0?nr(this).transition().duration(c).call(v,d,i,e):nr(this).call(g.transform,d,i,e)}}function E(n,...o){if(r.apply(this,arguments)){var a,i,s,l,u=n.touches,c=u.length,d=x(this,o,n.changedTouches.length===c).event(n);for(ba(n),i=0;i<c;++i)l=[l=rr(s=u[i],this),this.__zoom.invert(l),s.identifier],d.touch0?d.touch1||d.touch0[2]===l[2]||(d.touch1=l,d.taps=0):(d.touch0=l,a=!0,d.taps=1+!!e);e&&(e=clearTimeout(e)),a&&(d.taps<2&&(t=l[0],e=setTimeout(function(){e=null},500)),Lo(this),d.start())}}function k(e,...t){if(this.__zooming){var n,r,o,i,s=x(this,t).event(e),l=e.changedTouches,c=l.length;for(ya(e),n=0;n<c;++n)o=rr(r=l[n],this),s.touch0&&s.touch0[2]===r.identifier?s.touch0[0]=o:s.touch1&&s.touch1[2]===r.identifier&&(s.touch1[0]=o);if(r=s.that.__zoom,s.touch1){var d=s.touch0[0],h=s.touch0[1],p=s.touch1[0],f=s.touch1[1],g=(g=p[0]-d[0])*g+(g=p[1]-d[1])*g,y=(y=f[0]-h[0])*y+(y=f[1]-h[1])*y;r=m(r,Math.sqrt(g/y)),o=[(d[0]+p[0])/2,(d[1]+p[1])/2],i=[(h[0]+f[0])/2,(h[1]+f[1])/2]}else{if(!s.touch0)return;o=s.touch0[0],i=s.touch0[1]}s.zoom("touch",a(b(r,o,i),s.extent,u))}}function S(e,...r){if(this.__zooming){var o,a,i=x(this,r).event(e),s=e.changedTouches,l=s.length;for(ba(e),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),o=0;o<l;++o)a=s[o],i.touch0&&i.touch0[2]===a.identifier?delete i.touch0:i.touch1&&i.touch1[2]===a.identifier&&delete i.touch1;if(i.touch1&&!i.touch0&&(i.touch0=i.touch1,delete i.touch1),i.touch0)i.touch0[1]=this.__zoom.invert(i.touch0[0]);else if(i.end(),2===i.taps&&(a=rr(a,this),Math.hypot(t[0]-a[0],t[1]-a[1])<f)){var u=nr(this).on("dblclick.zoom");u&&u.apply(this,arguments)}}}return g.transform=function(e,t,n,r){var o=e.selection?e.selection():e;o.property("__zoom",wa),e!==o?v(e,t,n,r):o.interrupt().each(function(){x(this,arguments).event(r).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},g.scaleBy=function(e,t,n,r){g.scaleTo(e,function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)},n,r)},g.scaleTo=function(e,t,n,r){g.transform(e,function(){var e=o.apply(this,arguments),r=this.__zoom,i=null==n?y(e):"function"==typeof n?n.apply(this,arguments):n,s=r.invert(i),l="function"==typeof t?t.apply(this,arguments):t;return a(b(m(r,l),i,s),e,u)},n,r)},g.translateBy=function(e,t,n,r){g.transform(e,function(){return a(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),o.apply(this,arguments),u)},null,r)},g.translateTo=function(e,t,n,r,i){g.transform(e,function(){var e=o.apply(this,arguments),i=this.__zoom,s=null==r?y(e):"function"==typeof r?r.apply(this,arguments):r;return a(ma.translate(s[0],s[1]).scale(i.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,u)},r,i)},w.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1===++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0===--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=nr(this.that).datum();h.call(e,this.that,new fa(e,{sourceEvent:this.sourceEvent,target:g,transform:this.that.__zoom,dispatch:h}),t)}},g.wheelDelta=function(e){return arguments.length?(i="function"==typeof e?e:pa(+e),g):i},g.filter=function(e){return arguments.length?(r="function"==typeof e?e:pa(!!e),g):r},g.touchable=function(e){return arguments.length?(s="function"==typeof e?e:pa(!!e),g):s},g.extent=function(e){return arguments.length?(o="function"==typeof e?e:pa([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),g):o},g.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],g):[l[0],l[1]]},g.translateExtent=function(e){return arguments.length?(u[0][0]=+e[0][0],u[1][0]=+e[1][0],u[0][1]=+e[0][1],u[1][1]=+e[1][1],g):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},g.constrain=function(e){return arguments.length?(a=e,g):a},g.duration=function(e){return arguments.length?(c=+e,g):c},g.interpolate=function(e){return arguments.length?(d=e,g):d},g.on=function(){var e=h.on.apply(h,arguments);return e===h?g:e},g.clickDistance=function(e){return arguments.length?(p=(e=+e)*e,g):Math.sqrt(p)},g.tapDistance=function(e){return arguments.length?(f=+e,g):f},g}ga.prototype;const ka={cardWidth:152,cardHeight:64,cardHeightLarge:208,widthMargin:32,heightMargin:56,buttonMargin:16,leafMargin:16,cardPadding:8,buttonWidth:48,buttonHeight:24,rootDiameter:20,r:4,tooltipPadding:15,maxZoom:6,minZoom:.2},Sa={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},rebeccapurple:{r:102,g:51,b:153},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},La={resolveExpression:e=>{let t=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e);if(t)return`rgb(${t[1]},${t[2]},${t[3]})`;if(t=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e),t)return`rgba(${t[1]},${t[2]},${t[3]},${t[4]})`;if(t=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e),t){const e=Math.round(t[1]/2.55)/100;return`rgba(${t[2]},${t[3]},${t[4]},${e})`}if(t=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(e),t)return e;const n=e&&Sa[e.toLowerCase()];if(n){const e=void 0!==n.a?n.a:1;return`rgba(${n.r},${n.g},${n.b},${e})`}return"none"},getDarkColor(e){const t=.5;let n,r,o,a;if(e.length>7){n=e.split(",");const i=-1!==n[0].indexOf("a");return r=i?parseInt(n[0].slice(5),10):parseInt(n[0].slice(4),10),a=parseInt(n[1],10),o=parseInt(n[2],10),`${(i?"rgba(":"rgb(")+(Math.round((0-r)*t)+r)},${Math.round((0-a)*t)+a},${Math.round((0-o)*t)+o}${i?`,${n[3]}`:")"}`}return n=parseInt(e.slice(1),16),r=n>>16,a=n>>8&255,o=255&n,`#${(16777216+65536*(Math.round((0-r)*t)+r)+256*(Math.round((0-a)*t)+a)+(Math.round((0-o)*t)+o)).toString(16).slice(1)}`},isDarkColor(e){let t,n,r,o;return(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))||(o=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e))?(t=parseInt(o[1],10),n=parseInt(o[2],10),r=parseInt(o[3],10)):(o=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(e))&&(t=parseInt(o[1],16),n=parseInt(o[2],16),r=parseInt(o[3],16)),.299*t+.587*n+.114*r<125}};var Ra={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const n=e.indexOf("=");let r,o="",a=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),a=!0),t.push(function(e,t,n){return{key:Ta(e),value:Ta(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:n}}(r,o,a))}),t}};function Ta(e){try{return decodeURIComponent(e)}catch{return e}}function Aa(e){if(!(this instanceof Aa))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>Ra.fromSearchString(t.search)}})}function Na(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/shouldNotDecodePlus/gi,"%2B")}Aa.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},Aa.encodeSearchParams=function(e){let t,n="";for(let r=0;r<e.length;r++)t=e[r],n+=0===r?"?":"&",n+=Na(t.key),t.value?n+=`=${Na(t.value)}`:n+=t.useEqualSign?"=":"";return n};var za=Aa;var Ma,Ia=class{_hasNext(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}constructor(e){this._input=e,this._pushback=null,this._temp=null,this._index=0,this._mark=0}pushback(e){this._pushback=e}index(){return this._index}hasNext(){return null!=this._pushback||this._hasNext()}next(){if(null!=this._pushback){const e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}nextHex(){const e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}peek(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}mark(){this._temp=this._pushback,this._mark=this._index}reset(){this._pushback=this._temp,this._index=this._mark}remainder(){let e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}},ja=class{decode(e){let t="";const n=new Ia(e);let r;for(;n.hasNext();)r=this.decodeCharacter(n),t+=null!=r?r:n.next();return t}decodeCharacter(e){return e.next()}},$a=e=>e>=0&&e<=1114111,Da=e=>e.match(/[\s]/),Ba=class extends ja{decodeCharacter(e){e.mark();const t=e.next();let n,r,o;if(null==t||"\\"!==t)return e.reset(),null;const a=e.next();if(null==a)return e.reset(),null;switch(a){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(a,16))return a;for(n=a,r=0;r<5&&(o=e.next(),null!=o&&!Da(o));r++){if("NaN"===parseInt(o,16)){e.pushback(o);break}n+=o}const i=parseInt(n,16);return $a(i)?String.fromCharCode(i):"�"}},Pa=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}},qa=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,n,r){let o,a;if(t.length===n)return a=this._value,this.setValue(r),a;const i=t.charAt(n);return this._nextMap?(o=this._nextMap[i],o||(o=new e,this._nextMap[i]=o)):(this._nextMap={},o=new e,this._nextMap[i]=o),o.put(t,n+1,r)}get(e,t){if(e.length<=t)return this._value;const n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return Pa.newInstanceIfNeeded(e,this._value);const n=this.getNextNode(e.charAt(t));if(!n)return Pa.newInstanceIfNeeded(e,t,this._value);const r=n.getLongestMatch(e,t+1);return r||Pa.newInstanceIfNeeded(e,t,this._value)}},Fa=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new qa);const n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},Va=(()=>{const e=[],t=[],n=new Fa;let r,o,a;for(r in e["""]="34",e["&"]="38",e["<"]="60",e[">"]="62",e[" "]="160",e["¡"]="161",e["¢"]="162",e["£"]="163",e["¤"]="164",e["¥"]="165",e["¦"]="166",e["§"]="167",e["¨"]="168",e["©"]="169",e["ª"]="170",e["«"]="171",e["¬"]="172",e["­"]="173",e["®"]="174",e["¯"]="175",e["°"]="176",e["±"]="177",e["²"]="178",e["³"]="179",e["´"]="180",e["µ"]="181",e["¶"]="182",e["·"]="183",e["¸"]="184",e["¹"]="185",e["º"]="186",e["»"]="187",e["¼"]="188",e["½"]="189",e["¾"]="190",e["¿"]="191",e["À"]="192",e["Á"]="193",e["Â"]="194",e["Ã"]="195",e["Ä"]="196",e["Å"]="197",e["Æ"]="198",e["Ç"]="199",e["È"]="200",e["É"]="201",e["Ê"]="202",e["Ë"]="203",e["Ì"]="204",e["Í"]="205",e["Î"]="206",e["Ï"]="207",e["Ð"]="208",e["Ñ"]="209",e["Ò"]="210",e["Ó"]="211",e["Ô"]="212",e["Õ"]="213",e["Ö"]="214",e["×"]="215",e["Ø"]="216",e["Ù"]="217",e["Ú"]="218",e["Û"]="219",e["Ü"]="220",e["Ý"]="221",e["Þ"]="222",e["ß"]="223",e["à"]="224",e["á"]="225",e["â"]="226",e["ã"]="227",e["ä"]="228",e["å"]="229",e["æ"]="230",e["ç"]="231",e["è"]="232",e["é"]="233",e["ê"]="234",e["ë"]="235",e["ì"]="236",e["í"]="237",e["î"]="238",e["ï"]="239",e["ð"]="240",e["ñ"]="241",e["ò"]="242",e["ó"]="243",e["ô"]="244",e["õ"]="245",e["ö"]="246",e["÷"]="247",e["ø"]="248",e["ù"]="249",e["ú"]="250",e["û"]="251",e["ü"]="252",e["ý"]="253",e["þ"]="254",e["ÿ"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["¬in"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[r]&&e.hasOwnProperty(r)&&(t[e[r]]=r);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(a=t[o].toLowerCase().substr(1),n.put(a,String.fromCharCode(o)));return n})(),Ha=class extends ja{decodeCharacter(e){let t;e.mark();const n=e.next();if(null==n||"&"!==n)return e.reset(),null;const r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(t=this._getNumericEntity(e),null!=t)return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,n,r,o="";for(t=Math.min(e.remainder().length,Va.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();const a=Va.getLongestMatch(o);if(null==a)return null;for(e.reset(),e.next(),t=a.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),a.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,16);return!Number.isNaN(+r)&&$a(r)?String.fromCharCode(r):null}_parseNumber(e){let t,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,10);return!Number.isNaN(+r)&&$a(r)?String.fromCharCode(r):null}},Ua=class extends ja{decodeCharacter(e){e.mark();const t=e.next();let n,r,o,a;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(n="",r=0;r<2;r++)o=e.nextHex(),null!=o&&(n+=o);return 2===n.length&&(a=parseInt(n,16),$a(a))?String.fromCharCode(a):(e.reset(),null)}},Ga=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,Ka=5e6,Za=5e5,Ya=(e,t)=>{const{maxByteSizeSvg:n=Za,maxByteSizeImage:r=Ka}=t??{},{mimeType:o,encoding:a,data:i}=(e=>{const[,t,n,r]=Ga.exec(e.trim())??[];return{encoding:n,data:r,mimeType:t?.toLocaleLowerCase()}})(e);if(!i)return!0;const s=((e,t,n)=>{const r={type:e};if(t?.includes(";base64"))try{return new Blob([atob(n)],r).size}catch{return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0})(o,a,i);return"image/svg+xml"===o?s<=n:s<=r};"undefined"!=typeof document&&(Ma=document.createElement("div"));var Wa=Array.prototype.indexOf,Xa=[",",".","_"," "],Ja=[",",".","-","_"," "],Qa={width:["%"],height:["%"]},ei={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},ti={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":ei.image,"background-color":ei.color,"border-color":ei.color,"border-image":ei.image,color:ei.color,icon:ei.image,"list-style-image":ei.image,"outline-color":ei.color},ni={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function ri(e,t,n){let r;if(t){if(Wa)return Wa.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function oi(e){if(null==e)return"";let t="";const n=document.createTextNode(e);return Ma.appendChild(n),t=Ma.innerHTML,Ma.removeChild(n),t}function ai(e,t,n){let r,o,a,i,s,l,u,c,d;for(e=si(e).toLowerCase(),t=si(t),a=0;a<ni.attr_name.length;a++)if(e.match(ni.attr_name[a]))throw new Error(`Unsafe attribute name used: ${e}`);for(a=0;a<ni.attr_val.length;a++)if(t.toLowerCase().match(ni.attr_val[a]))throw new Error(`Unsafe attribute value used: ${t}`);if(r=Qa[e],r||(r=Ja),o="",!n){for(i=0;i<e.length;i++){if(s=e.charAt(i),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&ri(u,r)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return n||(o+='"'),o}function ii(e,t,n){let r,o,a,i,s,l,u,c,d,h;if(e=si(e).toLowerCase(),t=si(t),ri(e,ni.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(r=0;r<ni.css_val.length;r++)if(t.toLowerCase().indexOf(ni.css_val[r])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=ti[e],o||(o=ei.default),a="",!n){for(i=0;i<e.length;i++){if(s=e.charAt(i),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");a+=s}a+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&ri(u,o)<0?(d=c.toString(16),h="000000".substr(d.length),a+=`\\${h}${d}`):a+=u;return a}function si(e,t){let n,r,o,a,i=!1;if(null===e)return null;n=e,r=e,o=0;const s=[new Ha,new Ua,new Ba];for(;!i;){r=n;for(let e=0;e<s.length;e++)a=s[e].decode(n),a!==n&&(o++,n=a);r!==n||(i=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}var li=[];for(let e=0;e<255;e++)li[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var ui={html:e=>oi(e.unsafe),css(e){let t,n=[];const r=[],o={};let a="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=ii(t,n[t],!0),a+=ii(t,n[t],!0),o[t]=r[t]);return e.map?o:a},attr(e){let t=[];const n=[],r={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(n[e]=ai(e,t[e],!0),o+=ai(e,t[e],!0),r[e]=n[e]);return e.map?r:o}};function ci(e,t){throw new Error(t)}var di={canonicalize:si,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,n;const r=arguments[0]||{};let o=1;const a=arguments.length;for(;o<a;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n=e[t],r===n)continue;void 0!==n&&(r[t]=n)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?ui.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&ci(this,"Invalid parameter type"),ui.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&ci(this,"Invalid parameter type"),ui.attr(e)):void ci(this,"Invalid parameter type")},encodeForAttr:ai,encodeForAttr2:function(e){return ai("nonsens",e,!0)},encodeForCSS:ii,encodeForHref:function(e){si(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new za(e),n=za.encodeAuthorityAndPath(t.authorityAndPath),r=t.searchParams;e=n+za.encodeSearchParams(r)+t.hash;const o=decodeURI(e).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let n,r,o,a,i,s;for(t||(t=Xa),s="",n=0;n<e.length;n++)o=e.charAt(n),a=e.charCodeAt(n),ri(o,t)>=0||null==li[a]?s+=o:(r=a.toString(16),a<256?(i="00".substr(r.length),s+=`\\x${i}${r.toUpperCase()}`):(i="0000".substr(r.length),s+=`\\u${i}${r.toUpperCase()}`));return s},encodeForHTML:oi,encodeForURL:function(e,t){let n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=si(t).toLowerCase():ci(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':"",n},isSafeDataURL:Ya,validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const n=function(e){let t=e,n="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("/.."===t){t="/";const e=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),r=e?e[0]:"";t=t.slice(r.length),n+=r}return n}(t);return""!==n&&"/"!==n&&n}};const hi=["data:","http:","https:"],pi=e=>{try{return di.encodeForAttr2(e)}catch{return""}},fi=e=>{const t=["#"," ","(",")"];let n="";for(let r=0;r<e.length;r++){const o=e.charAt(r),a=e.charCodeAt(r);if(!o.match(/[a-zA-Z0-9]/)&&t.indexOf(o)<0){const e=a.toString(16);n+=`\\${"000000".substr(e.length)}${e}`}else n+=o}return n},gi=e=>{try{return e=e?.trim(),e&&(e=>{try{const t=new URL(e);return hi.includes(t.protocol)}catch{return!1}})(e)&&di.isSafeDataURL(e)?/^data:/i.test(e)?encodeURI(di.canonicalize(e)):di.encodeForHref(e):""}catch{return""}};function mi(e){const t=La.resolveExpression(e);return"none"!==t?t:fi(e)}var bi=(e,t,n)=>{const{api:r,state:o}=n,a=r&&r.isActive()&&-1!==o.indexOf(e.elemNo),i=function(e,t){if(e.attributes&&e.attributes.color){const t=La.resolveExpression(e.attributes.color);if("none"!==t)return t}return mi(t.backgroundColor)}(e,t),s=mi(function(e,t){return"default"===e.fontColor?La.isDarkColor(t)?v.FONT_COLOR_LIGHT.color:v.FONT_COLOR_DARK.color:e.fontColor}(t,i)),l=e.attributes||{};let u='<div class="sn-org-textbox">';if(u+=`<div class="sn-org-card-title">${pi(l.label||e.id)}</div>`,l.subLabel&&(u+=`<div class="sn-org-card-label">${pi(l.subLabel)}</div>`),e.measure){const n=t.measureLabel?`${t.measureLabel}: `:"";u+=`<div class="sn-org-card-label">${pi(n+e.measure)}</div>`}else l.extraLabel&&(u+=`<div class="sn-org-card-label">${pi(l.extraLabel)}</div>`);u+="</div>";const c=a?" selected":" not-selected",d=r&&r.isActive()?c:"",{top:h=v.BORDER_TOP,fullBorder:p=v.BORDER_FULL,colorType:f=v.BORDER_COLOR_TYPE}=t.border,g="auto"===f?La.getDarkColor(i):mi(t.borderColor),m=h&&!a?`3px solid ${g}`:"",b=p&&!a?`1px solid ${g}`:"";let y=ka.cardHeight;return a?y-=8:p?y-=4:h&&(y-=3),`<div class="sn-org-card-text${d}" style="background-color:${i};color:${s}; border:${b}; border-top:${m}; height:${y}px;">${u}</div>`};function yi(e){return[void 0,"left","right"].includes(e.cardImage.alignment)}function vi(e){const t=La.resolveExpression(e);return"none"!==t?t:fi(e)}function xi(e,t){return"default"===e?La.isDarkColor(t)?v.FONT_COLOR_LIGHT.color:v.FONT_COLOR_DARK.color:e}const wi=(e,t)=>`font-family:${e.fontFamily}; font-size:${e.fontSize}; color:${t}`;function _i(e,t,n,r){const o=function(e,t){if(e.attributes&&e.attributes.color){const t=La.resolveExpression(e.attributes.color);if("none"!==t)return t}return vi(t)}(e,t.cardBackgroundColor),a=vi(xi(t.cardTitle.fontColor,o)),i=wi(t.cardTitle,a),s=vi(xi(t.cardSubTitle.fontColor,o)),l=wi(t.cardSubTitle,s),u=vi(xi(t.cardDescription.fontColor,o)),c=wi(t.cardDescription,u),d=vi(xi(t.cardMeasureLabel.fontColor,o)),h=wi(t.cardMeasureLabel,d),p=vi(xi(t.cardMeasureValue.fontColor,o)),f=wi(t.cardMeasureValue,p),{topBar:g=v.BORDER_TOP,fullBorder:m=v.BORDER_FULL,contrastColor:b=!0}=t.cardBorder,y=b?La.getDarkColor(o):vi(t.cardBorder.borderColor);let x=n;r?x-=8:m?x-=4:g&&(x-=3);return{titleStyle:i,subTitleStyle:l,descriptionStyle:c,measureLabelStyle:h,measureValueStyle:f,cardStyle:`background-color:${o}; border:${m&&!r?`1px solid ${y}`:""}; border-top:${g&&!r?`3px solid ${y}`:""}; height:${x}px;`}}const Ci=(e,t,n,r,o)=>{const a=function(e,t){let n=!1,r="";return t.api?.isActive()&&(n=-1!==t.state.indexOf(e.elemNo),r=n?" selected":" not-selected"),{isSelected:n,selectedClass:r}}(e,n),i=function(e,t,n){const r=e.attributes||{},o=t.measureLabel?`${t.measureLabel}: `:"";return{title:pi(r.label||e.id),subTitle:r.subLabel?pi(r.subLabel):void 0,description:r.extraLabel?pi(r.extraLabel):void 0,measureLabel:e.measure?pi(o):void 0,measureValue:e.measure?pi(e.measure):void 0,...n?.isEnabled("IM_5036_ORGCHART_STYLING_IMAGE")&&{image:gi(r.image)}}}(e,t,r),s=_i(e,t,o,a.isSelected),l=function(e,t,n){return t?.image&&"tooltip"!==e.cardImage.location&&n?.isEnabled("IM_5036_ORGCHART_STYLING_IMAGE")}(t,e.attributes,r),u=l?function(e){let t=" has-image";return yi(e)?(t+=" horizontal",t+="right"===e.cardImage.alignment?" right":" left"):(t+=" vertical",t+="bottom"===e.cardImage.alignment?" bottom":"",t+="round"===e.cardImage.shape?" round":""),t}(t):"",c=a.selectedClass+(yi(t)?" horizontal":" vertical");let d="";if(l){const n=function(e){let t="";return t+=["right","bottom"].includes(e.cardImage.alignment)?" image-last":"",t+=yi(e)?"":" vertical",t}(t),r=function(e){let t="";return t+=e.cardImage.clip?" clip":"",t+=yi(e)?" horizontal":"",t+="round"===e.cardImage.shape?" round":"",t}(t);d+=`<div class="sn-image-wrapper${n}"><img src="${i.image}" class="sn-org-card-image${r}" data-node-id="${di.encodeForAttr2(e.id)}"/></div>`}return d+=`<div class="sn-org-textbox${u}">`,d+=`<div class="sn-org-card-title" style="${di.encodeForAttr2(s.titleStyle)};">${i.title}</div>`,i.subTitle&&(d+=`<div class="sn-org-card-label" style="${di.encodeForAttr2(s.subTitleStyle)};">${i.subTitle}</div>`),i.measureValue?d+=`<div class="sn-org-card-label"><span style="${di.encodeForAttr2(s.measureLabelStyle)};">${i.measureLabel}</span><span style="${di.encodeForAttr2(s.measureValueStyle)};">${i.measureValue}</span></div>`:i.description&&(d+=`<div class="sn-org-card-label" style="${di.encodeForAttr2(s.descriptionStyle)};">${i.description}</div>`),d+="</div>",`<div class="sn-org-card-text${c}" style="${di.encodeForAttr2(s.cardStyle)};">${d}</div>`},Oi={colorByExpression:"color",labelExpression:"label",subLabelExpression:"subLabel",extraLabelExpression:"extraLabel",imageExpression:"image"},Ei="max-data-limit";function ki(e){return e[0].qText}function Si(e){return e[1].qText}async function Li(e,t,n,r,o,a,i){return await n.getHyperCubeData("/qHyperCubeDef",[{qTop:o,qLeft:0,qWidth:3,qHeight:3300}]).then(n=>{e.push(n[0]),t.push(...n[0].qMatrix),o+=n[0].qArea.qHeight}),a>=i?Ei:r>o?Li(e,t,n,r,o,a+1,i):""}const Ri=async(e,t)=>{if(e.snapshotData)return{status:"",dataMatrix:e.snapshotData.dataMatrix};const n=e.qHyperCube&&e.qHyperCube.qDataPages,r=e.qHyperCube.qSize.qcy,o=n[0].qArea.qHeight,a=[...n[0].qMatrix];let i="";return r>o&&1===n.length&&t?i=await Li(e.qHyperCube.qDataPages,a,t,r,o,0,e.rowLimit/3300||10):n.forEach((e,t)=>{t>0&&a.push(...e.qMatrix)}),{status:i,dataMatrix:a}};function Ti(e,t){const n={};return e.forEach(e=>{"color"===e.prop?n[e.prop]=La.resolveExpression(t.qValues[e.index].qText):n[e.prop]=t.qValues[e.index].qText}),n}function Ai(e){if(!e)return!0;for(let t=0;t<e.length;++t)if(void 0!==e[t].children)return!1;return!0}function Ni(e,t){return t?.isEnabled("IM_5036_ORGCHART_STYLING_IMAGE")&&["top","bottom"].includes(e.cardImage.alignment)&&"tooltip"!==e.cardImage.location?ka.cardHeightLarge:ka.cardHeight}async function zi({layout:e,model:t,translator:n}){if(!e.qHyperCube)throw new Error("Require a hypercube");if(e.qHyperCube.qDimensionInfo.length<2)return!1;const{status:r,dataMatrix:o}=await Ri(e,t),a=function(e){if(e&&e.length){const t=[];return e.forEach((e,n)=>{Oi[e.id]&&t.push({prop:Oi[e.id],index:n})}),t}return[]}(e.qHyperCube.qDimensionInfo[0].qAttrExprInfo);return o?o.length<1?null:function(e,t,n,r,o){const a={},i=[];for(let n=0;n<e.length;++n){const r=e[n],o=ki(r),s={id:o,parentId:Si(r),children:[],elemNo:r[0].qElemNumber,attributes:Ti(t,r[0].qAttrExps),measure:r[2]&&r[2].qText,rowNo:n};a[o]=s,i.push(s)}const s=[];let l=!1;for(let e=0;e<i.length;++e){const t=i[e],n=a[t.parentId];t.parent=n,n?n.children.length>98?l=!0:n.children.push({childNumber:n.children.length,...t}):s.length>98?l=!0:s.push(t)}if(0===s.length)return{error:"no_root",message:o.get("Object.OrgChart.MissingRoot")};const u=[];if(n===Ei&&u.push(o.get("Object.OrgChart.MaxData")),l&&u.push(o.get("Object.OrgChart.MaxChildren")),function(e){const t={},n={};function r(e){t[e.id]=!0,n[e.id]=!0;for(let o=0;o<e.children.length;++o){if(!t[e.children[o].id]&&r(e.children[o]))return!0;if(n[e.children[o].id])return!0}return n[e.id]=!1,!1}for(let n=0;n<e.length;++n){const o=e[n];if(!t[o.id]&&r(o))return!0}return!1}(i)&&u.push(o.get("Object.OrgChart.CycleWarning")),1===s.length)return s[0].warn=u,s[0].navigationMode=r,s[0];u.push(o.get("Object.OrgChart.DummyWarn"));const c={id:"Root",name:o.get("Object.OrgChart.DummyRoot"),isDummy:!0,warn:u,children:s,navigationMode:r};return s.forEach((e,t)=>{e.parentId="Root",e.parent=c,e.childNumber=t}),c}(o,a,r,e.navigationMode,n):null}var Mi=(e,t)=>{const{api:n,state:r,singleSelect:o,setState:a}=t;if(e&&n){let t;if(e.data.elemNo<0&&-3!==e.data.elemNo)return;if(e.data.isLocked)return;n.isActive()&&r?t=r.concat():(n.begin("/qHyperCubeDef"),t=[]);const i=t.indexOf(e.data.elemNo),s=-1===i;let l=[];o||(l=function(e,t){const n=[],r=e=>{e.children.forEach(e=>{e.data.selected=t,n.push(e.data.elemNo),e.children&&e.children.length>0&&r(e)})};return e.children&&r(e),n}(e,s)),s?(t.push(e.data.elemNo),l.forEach(e=>{-1===t.indexOf(e)&&t.push(e)})):(t.splice(i,1),l.forEach(e=>{const n=t.indexOf(e);-1!==n&&t.splice(n,1)})),0===t.length?n.clear():n.select({method:"selectHyperCubeValues",params:["/qHyperCubeDef",0,t,!1]}),a(t)}};function Ii(e){e.tooltip.active=!0,e.tooltip.timeout=setTimeout(()=>{e.tooltip.active&&e.tooltip.html(function(e,t,n){const r=pi(e.data.attributes.label||e.data.id),o=e.data.attributes.subLabel?`${pi(e.data.attributes.subLabel)}<br />`:"",a=e.data.attributes.extraLabel?`${pi(e.data.attributes.extraLabel)}<br />`:"",i=pi(e.data.measure?`${t.measureLabel?`${t.measureLabel}: `:""}${e.data.measure}`:"");if(n?.isEnabled("IM_5036_ORGCHART_STYLING_IMAGE")){let n=e.data.attributes.image&&"card"!==t.cardImage.location?e.data.attributes.image:"";if(n=gi(n),n){const e="right"===t.cardImage.alignment?'style="padding-right:5px"':'style="padding-left:5px"';return`<div class="sn-org-tooltip-inner" style="display:flex"><img src="${n}" class="sn-org-tooltip-image" ${"right"===t.cardImage.alignment?'style="order: 1"':""} /><div class="sn-org-tooltip-text" ${e}><div class="sn-org-tooltip-header">${r}</div>${o}${a}${i}</div></div>`}}return`<div class="sn-org-tooltip-inner"><div class="sn-org-tooltip-header">${r}</div>${o}${a}${i}</div>`}(e.node,e.styling,e.flags)).classed("sn-org-tooltip-visible",!0).attr("style",()=>function(e,t,n,r,o){const{cardWidth:a,tooltipPadding:i}=ka,s=a/2;return`bottom:${t-(r(e)*o.zoom+o.y-i)}px;left:${n(e)*o.zoom+o.x+s*o.zoom}px;`}(e.node,e.containerHeight,e.x,e.y,e.transform))},e.delay??250)}function ji(e){clearTimeout(e.timeout),e.active=!1,e.classed("sn-org-tooltip-visible",!1)}function $i({positioning:e,divBox:t,nodes:n,styling:r,setExpandedCallback:o,wrapperState:a,selectionObj:i,navigationMode:s,element:l,tooltip:u,flags:c,actualCardHeight:d,usePromiseStatus:h}){const{x:p,y:f}=e,{cardWidth:g,buttonWidth:m,buttonHeight:b,cardPadding:y,rootDiameter:v}=ka,{topId:x}=a.expandedState,w=n.find(e=>e.data.id===x),_=w&&w.parent?w.parent.ancestors().map(e=>e.data.id):[],C=document.getElementsByTagName("html")[0].classList.contains("touch-on"),O={tooltip:u,containerHeight:l.clientHeight,styling:r,x:p,y:f,flags:c};t.selectAll(".sn-org-nodes").data(n.filter(e=>e.parent&&"Root"===e.parent.data.id)).enter().append("div").attr("class","sn-org-root").attr("style",e=>`top:${f(e)-v-y}px;left:${p(e)+(g-v)/2}px`).attr("id",e=>e.data.id),t.selectAll(".sn-org-nodes").data(n.filter(e=>"Root"!==e.data.id)).enter().append("div").attr("class","sn-org-card").attr("style",e=>`width:${g}px;height:${d}px; top:${f(e)}px;left:${p(e)}px;`).attr("id",e=>e.data.id).on("click",(e,t)=>{if(!a.constraints.active&&"Root"!==t.data.id){const e={...O,transform:a.transform,node:t,delay:0};C&&Ii(e),Mi(t,i)}}).html(e=>c?.isEnabled("IM_5036_ORGCHART_STYLING")?Ci(e.data,r,i,c,d):bi(e.data,r,i)).each((e,t,n)=>{if(c.isEnabled("QCB_31709_FIX_PRINTING_IMAGES")&&h?.resolve){const r=n[t].querySelector(".sn-org-card-image[data-node-id]");r&&(r.onload=()=>h.resolve(e.data.id),r.onerror=()=>h.resolve(e.data.id))}}).on("mouseenter",(e,t)=>{if(!C&&!a.constraints.active&&0===e.buttons){Ii({...O,transform:a.transform,node:t})}}).on("mouseleave",()=>{!C&&ji(u)}).on("mousedown",()=>{ji(u)}).on("touchmove",()=>{ji(u)}).on("wheel",()=>{ji(u)}),"expandAll"!==s&&t.selectAll(".sn-org-nodes").data(n.filter(e=>!!e.children&&"Root"!==e.data.id)).enter().append("div").attr("class","sn-org-traverse").attr("style",e=>`width:${m}px;height:${b}px;top:${f(e)+d+y}px;left:${p(e)+(g-m)/2}px;`).attr("id",e=>`${e.data.id}-expand`).on("mouseenter",e=>{a.constraints.active||(e.target.style.cursor="pointer")}).on("click",(e,t)=>{a.constraints.active||(o(((e,{topId:t,isExpanded:n,expandedChildren:r},o)=>{if(e.data.id===t)n=!n,r=[];else if(o.includes(e.data.id))t=e.parent?e.parent.data.id:e.data.id,n=!!e.parent,r=[];else if(e.parent.data.id===t){const t=e.parent.children.filter(e=>r.includes(e.data.id)).every(e=>Ai(e.children));r.includes(e.data.id)?r.splice(r.indexOf(e.data.id),1):Ai(e.children)&&t?r.push(e.data.id):r=[e.data.id]}else t=e.parent.data.id,n=!0,r=[e.data.id];return{topId:t,isExpanded:n,expandedChildren:r}})(t,a.expandedState,_)),e.stopPropagation())}).html(e=>`${((e,{topId:t,isExpanded:n,expandedChildren:r},o)=>e.data.id===t&&n||e.parent&&e.parent.data.id===t&&r.includes(e.data.id)||o.includes(e.data.id)?"-":"+")(e,a.expandedState,_)} ${e.data.children.length}`)}function Di(e,t,n,r,o){e.append("path").attr("class","sn-org-path").attr("id",e=>e.data.id).attr("d",e=>{let n="";const a=function(e,t,{depthSpacing:n,isVertical:r,x:o,y:a},i,s){const{cardWidth:l,buttonHeight:u,cardPadding:c,buttonMargin:d}=ka,h=[],p=l/2,f=s/2,g={x:e.xActual,y:e.yActual};if(e.parent&&"Root"!==e.parent.data.id){const t=n/2,l="expandAll"===i?s:s+c+u,m={x:o(e.parent)+p,y:a(e.parent)+l};"expandAll"!==i&&Ai(e.parent.children)?h.push(r?[{x:g.x,y:g.y+f},{x:m.x-p,y:g.y+f},{x:m.x-p,y:m.y+d},{x:m.x,y:m.y+d},{x:m.x,y:m.y}]:[{x:g.x,y:g.y},{x:g.x,y:m.y-f},{x:m.x+t,y:m.y-f},{x:m.x+t,y:m.y},{x:m.x,y:m.y}]):g.x===o(e.parent)||g.y===a(e.parent)?h.push([{x:g.x+p,y:g.y},{x:m.x,y:m.y}]):h.push(r?[{x:g.x+p,y:g.y},{x:g.x+p,y:g.y-c},{x:m.x,y:g.y-c},{x:m.x,y:m.y}]:[{x:g.x,y:g.y},{x:g.x-c,y:g.y},{x:g.x-c,y:m.y},{x:m.x,y:m.y}])}else e.parent&&h.push([{x:g.x+p,y:g.y},{x:g.x+p,y:g.y-c}]);return e.children&&"Root"!==e.data.id&&h.push([{x:g.x+p,y:g.y+s},{x:g.x+p,y:g.y+s+c}]),h}(e,0,t,r,o);return a.forEach(e=>{n+=function(e){const{r:t}=ka;let n,r=`M ${e[0].x} ${e[0].y} `;const o=t=>{const r=e[t].x-e[t-1].x,o=e[t].y-e[t-1].y;n={x:(r>0)-(r<0)||+r,y:(o>0)-(o<0)||+o}};o(1);for(let a=1;a<e.length;++a){const i=e[a];a<e.length-1?(r+=`L ${i.x-n.x*t} ${i.y-n.y*t} `,o(a+1),r+=`Q ${i.x} ${i.y} ${i.x+n.x*t} ${i.y+n.y*t} `):r+=`L ${i.x} ${i.y} `}return r}(e).slice(0,-1)}),n})}const Bi=(e,t,n,r,o,a)=>{const{buttonMargin:i}=ka,s=o&&o.initialX||0;return"expandAll"===a?(e[r]=e.x+s,e[r]):(e.parent?(e.parent[r]||(e.parent[r]=Bi(e.parent,t,n,r,o)),"Root"===e.parent.data.id?e[r]=e.parent[r]+(e.data.childNumber-(e.parent.children.length-1)/2)*t:e[r]=Ai(e.parent.children)?e.parent[r]+i:e.parent[r]+(e.data.childNumber-(e.parent.children.length-1)/2)*t):e[r]=s,e[r])};function Pi(e,t,n,r,o){const{widthMargin:a,heightMargin:i,cardWidth:s,cardPadding:l}=ka;let u,c,d;if("ttb"===e)u=s+a,c="expandAll"===r?o+2*l:o+i,d={depthSpacing:c,isVertical:!0,x:e=>Bi(e,u,t,"xActual",n,r),y:e=>((e,t,n,r,o,a)=>{const{leafMargin:i}=ka,s=r&&r.initialY||0;return e.parent&&"Root"!==e.parent.data.id&&"expandAll"!==o&&Ai(e.parent.children)?e[n]=e.parent.y+t+e.data.childNumber*(a+i)+s:e[n]=e.y+s,e[n]})(e,c,"yActual",n,r,o)};return d}const qi=(e,t,n,r,o)=>{const a=e.k,i=`${e.x}px, ${e.y}px`;t.attr("transform",e),n.classed("org-disable-transition",!0),t.classed("org-disable-transition",!0),n.attr("style",`width:${r}px;height:${o}px; transform: translate(${i}) scale(${a})`)};const Fi=(e,t,n)=>{if(!t)return ma.translate(n.x,n.y).scale(n.zoom);const{size:r}=t,o=e.width/r.w>e.height/r.h?e.height/r.h:e.width/r.w,a=t.transform.x*o,i=t.transform.y*o,s=t.transform.zoom*o;return ma.translate(a,i).scale(s)},Vi=({topId:e,isExpanded:t,expandedChildren:n},r,o,a)=>{if("expandAll"===a)return r.descendants();const i=r.descendants().find(t=>t.data.id===e)||r,s=[];if(t&&i.children&&i.children.forEach(e=>{s.push(e),e.children&&(-1!==n.indexOf(e.data.id)||o)&&e.children.forEach(t=>{s.push(t),-1!==n.indexOf(e.data.id)&&o&&t.children&&t.children.forEach(e=>{s.push(e)})})}),"free"===r.data.navigationMode&&i.parent){const e=i.parent.ancestors(),t=e.map(e=>e.data.id);e.forEach(e=>{o&&e.children.forEach(e=>{e.children&&-1===t.indexOf(e.data.id)&&e.data.id!==i.data.id&&s.unshift(...e.children)}),s.unshift(...e.children),e.parent||s.unshift(e)})}else s.unshift(i);return s},Hi=({containerData:e,styling:t,setExpandedCallback:n,wrapperState:r,selectionObj:o,element:a,flags:i,actualCardHeight:s,usePromiseStatus:l})=>{const{svg:u,divBox:c,allNodes:d,positioning:h,tooltip:p}=e,{navigationMode:f}=d.data;c.selectAll("*").remove(),u.selectAll("*").remove();const g=Vi(r.expandedState,d,!1,f);$i({positioning:h,divBox:c,nodes:g,styling:t,setExpandedCallback:n,wrapperState:r,selectionObj:o,navigationMode:f,element:a,tooltip:p,flags:i,actualCardHeight:s,usePromiseStatus:l});Di(u.selectAll(".sn-org-paths").data(g).enter(),h,r.expandedState.topId,f,s)},Ui=({element:e,dataTree:t,selectionObj:n,wrapperState:r,setInitialZoom:o,setTransform:a,setExpandedState:i,viewState:s,setContainerData:l,layout:u,flags:c,actualCardHeight:d})=>{e.innerHTML="",e.className="sn-org-chart";const{navigationMode:h}=u;let p=Pi("ttb",e,{},h,d);const{width:f,height:g}=e.getBoundingClientRect(),m=nr(e).append("span").attr("class","sn-org-zoomwrapper").on("click",()=>{r.constraints.active||n.api.isActive()&&n.state||(n.api.begin("/qHyperCubeDef"),n.setState([]))}).node(),b=nr(m).selectAll("svg").data([{}]).enter().append("svg").attr("class","sn-org-svg").attr("width","100%").attr("height","100%"),y=nr(m).selectAll("div").data([{}]).enter().append("div").attr("class","sn-org-nodes"),v=nr(e).append("button").attr("class","sn-org-homebutton disabled").on("click",()=>{Ui({element:e,dataTree:t,selectionObj:n,wrapperState:r,setInitialZoom:o,setTransform:a,setExpandedState:i,viewState:s,setContainerData:l,layout:u,flags:c,actualCardHeight:d})}).html('<span class="lui-fade-button__icon sn-org-home-icon">\n <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20" height="20" viewBox="0 0 16 16">\n <defs>\n <path id="home-a" d="M2,7.9 L8,3.4 L14,7.9 L14,16 L12,16 L12,11.2 C12,11.0895431 11.9104569,11 11.8,11 L9.2,11 C9.08954305,11 9,11.0895431 9,11.2 L9,16 L2,16 L2,7.9 Z M7,13.8 L7,11.2 C7,11.0895431 6.91045695,11 6.8,11 L4.2,11 C4.08954305,11 4,11.0895431 4,11.2 L4,13.8 C4,13.9104569 4.08954305,14 4.2,14 L6.8,14 C6.91045695,14 7,13.9104569 7,13.8 Z M13,4.1 L16,6.5 L15,7.5 L8,2 L1,7.5 L0,6.5 L8,0 L11,2.4 L11,1 L13,1 L13,4.1 Z"/>\n </defs>\n <use xlink:href="#home-a"/>\n </svg>\n </span>').node(),x=function(e){const t=nr(e).append("div").attr("class","sn-org-tooltip").on("mousedown",()=>{t.classed("sn-org-tooltip-visible",!1)});return t}(e);if(t.error)return nr(m).append("div").attr("class","sn-org-error").html(t.message),!1;t.warn&&t.warn.length&&nr(m).append("span").attr("class","sn-org-warning").html(`*${t.warn.join(" ")}`);const w=b.append("g").attr("class","sn-org-paths"),_=ha().size([f,g]).nodeSize([ka.cardWidth+ka.cardPadding,p.depthSpacing])(ea(t)),C=!r.expandedState||!_.descendants().find(e=>e.data.id===r.expandedState.topId),O=C?{topId:_.data.id,isExpanded:!0,expandedChildren:[],useTransitions:!1}:r.expandedState,E=Vi(O,_,!1,h);E.forEach(e=>{e.xActual&&e.yActual||(p.x(e),p.y(e))});const k=((e,t)=>{const{cardWidth:n,buttonHeight:r,buttonMargin:o}=ka,a={left:1/0,top:1/0,right:-1/0,bottom:-1/0};return e.forEach(e=>{a.left=Math.min(e.xActual,a.left),a.top=Math.min(e.yActual,a.top),a.right=Math.max(e.xActual,a.right),a.bottom=Math.max(e.yActual,a.bottom)}),{x:a.left,y:a.top-r-o,width:a.right-a.left+n,height:a.bottom-a.top+t+2*(r+o)}})(E,d),S=s&&s.initialZoom?s.initialZoom:((e,t,n,r)=>{const{widthMargin:o,minZoom:a}=ka,i="expandAll"===n?1/0:ka.maxZoom,{width:s,height:l}=e,{clientHeight:u,clientWidth:c}=t,d=s+2*o,h=l+r,p=Math.max(Math.min(d/c,i),a),f=Math.max(Math.min(h/u,i),a);return p>f?{initialX:-e.x+o,initialY:-e.y+(u*p-l)/2,initialZoom:p}:{initialX:-e.x+(c*f-s)/2,initialY:r/2,initialZoom:f}})(k,e,h,d);return o(S),p=Pi("ttb",e,S,h,d),function({containerData:e,setTransform:t,transformState:n,wrapperState:r,initialZoomState:o,navigationMode:a}){const{svg:i,divBox:s,width:l,height:u,zoomWrapper:c,element:d,tooltip:h,homeButton:p}=e,{x:f=0,y:g=0}=n,{minZoom:m,maxZoom:b}=ka,y=n&&1/n.zoom||o.initialZoom,v="expandAll"===a?y:Math.max(Math.min(b,y),m),x=()=>{const e=document.createEvent("MouseEvents");e.initEvent("mousedown",!0,!1),d.dispatchEvent(e)};nr(c).call(Ea().extent([[0,0],[l,u]]).filter(e=>!(r.constraints.active||"dblclick"===e.type||"mousedown"===e.type&&3===e.which)).scaleExtent(["expandAll"===a?.8:m*v,b*v]).on("start",x).on("zoom",e=>{nr(p).attr("class","sn-org-homebutton lui-fade-button lui-fade-button--large"),t({zoom:e.transform.k/v,x:e.transform.x,y:e.transform.y}),x(),ji(h),qi(ma.translate(e.transform.x,e.transform.y).scale(e.transform.k/v),i,s,l,u)})),t({zoom:1/v,x:f,y:g}),qi(ma.translate(f,g).scale(1/v),i,s,l,u)}({containerData:{svg:w,divBox:y,width:f,height:g,zoomWrapper:m,element:e,tooltip:x,homeButton:v},setTransform:a,transformState:s&&s.transform||{},wrapperState:r,initialZoomState:S,navigationMode:h}),C&&i(O),l({svg:w,divBox:y,allNodes:_,positioning:p,width:f,height:g,element:e,zoomWrapper:m,tooltip:x,homeButton:v})},Gi=(e,t,n)=>{if(n.snapshotData&&n.snapshotData.dataMatrix)return n.snapshotData.dataMatrix;const{navigationMode:r}=n,o=Vi(e,t,!0,r),a=[],{qDataPages:i}=n.qHyperCube,s=[];return i.forEach(e=>{s.push(...e.qMatrix)}),o.forEach(e=>{void 0!==e.data.rowNo&&a.push(s[e.data.rowNo])}),a},Ki=(e,t,n,r)=>{const o={expandedState:e,transform:t,size:{w:r.clientWidth,h:r.clientHeight},initialZoom:n};return o.expandedState.useTransitions=!1,o};function Zi(e,t,n){let r;switch(e.colorType){case"byExpression":r=La.resolveExpression(e.colorExpression);break;case"colorPicker":r=t.getColorPickerColor(e.color);break;default:r=n}return"none"===r?n:r}const Yi=({Theme:e,layout:t})=>{const n=Zi(t.style.backgroundColor,e,v.BACKGROUND_COLOR.color),r=Zi(t.style.fontColor,e,"default"),o=t.qHyperCube.qMeasureInfo.length?t.qHyperCube.qMeasureInfo[0].qFallbackTitle:null,{border:a={colorType:v.BORDER_COLOR_TYPE}}=t.style;return{backgroundColor:n,fontColor:r,measureLabel:o,border:a,borderColor:"auto"!==a.colorType?Zi(a,e,La.getDarkColor(n)):La.getDarkColor(n)}};function Wi(e,t,n,r){if(r||void 0===e.useColorExpression)return n;let o;return o=e.useColorExpression?La.resolveExpression(e.colorExpression):t.getColorPickerColor(e.color),"none"===o?n:o}const Xi=(e,t,n,r)=>void 0===e?n:t??r,Ji=(e,t,n)=>({useColorExpression:Xi(e,t?.useColorExpression,"byExpression"===n?.style?.fontColor?.colorType,v.FONT_COLOR_USE_EXPRESSION),color:Xi(e,t?.color,n?.style?.fontColor?.color,v.FONT_COLOR_DARK),colorExpression:Xi(e,t?.colorExpression,n?.style?.fontColor?.colorExpression,"")}),Qi={getViewState:(e,t)=>{const{viewState:n}=e;return!n&&t.snapshotData&&t.snapshotData.viewState?t.snapshotData.viewState:n}},es=()=>{const e=u(),t=c(()=>function(e){var t=e.theme,n=e.config,r=void 0===n?{}:n,o=r.id,a=r.resolve,i=void 0===a?[]:a,s=r.transform,l=void 0===s?[]:s,u=r.extend,c=void 0===u?[]:u,d={theme:t,matrix:ft(i),styles:void 0};return d.styles=bt({theme:t,id:o,transform:l,extend:c,matrix:d.matrix}),{getStyles:function(){return d.styles},getTheme:function(){return d.theme},setTheme:function(e){d.theme=e,d.styles=bt({theme:e,id:o,transform:l,extend:c,matrix:d.matrix})}}}({theme:e,config:{id:"orgChart",resolve:[["object.orgChart","card.title.main","fontSize",v.CARD_TITLE_FONTSIZE],["object.orgChart","card.title.subTitle","fontSize",v.CARD_BODY_FONTSIZE],["object.orgChart","card.label.description","fontSize",v.CARD_BODY_FONTSIZE],["object.orgChart","card.label.measureLabel","fontSize",v.CARD_BODY_FONTSIZE],["object.orgChart","card.label.measureValue","fontSize",v.CARD_BODY_FONTSIZE],["object.orgChart","card.title.main","fontFamily","'Source Sans Pro', 'Arial', 'sans-serif'"],["object.orgChart","card.title.subTitle","fontFamily","'Source Sans Pro', 'Arial', 'sans-serif'"],["object.orgChart","card.label.description","fontFamily","'Source Sans Pro', 'Arial', 'sans-serif'"],["object.orgChart","card.label.measureLabel","fontFamily","'Source Sans Pro', 'Arial', 'sans-serif'"],["object.orgChart","card.label.measureValue","fontFamily","'Source Sans Pro', 'Arial', 'sans-serif'"]]}}),[e.name()]);return t},ts=({env:e,setExpandedState:n,setTransform:r,selectionObj:o})=>{const{flags:a}=e,i=d(),s=u(),l=h(),c=p(),m=f(),[b,y]=t(null),[x,w]=t(null),[_,C]=t({}),O=es();return g(()=>new Promise(e=>{if(!l)return void e();const t=setTimeout(()=>{e()},9e3),u=Qi.getViewState(m,l);u?.expandedState&&n(u.expandedState),u?.transform&&r(u.transform),zi({layout:l,model:i,translator:c}).then(n=>{o.setState([]),y(n),w(a?.isEnabled("IM_5036_ORGCHART_STYLING")?(({themeService:e,layout:t})=>{const n=e.getStyles(),r=(o="card",t.components?.find(e=>e.key===o)??void 0);var o;const a=e.getTheme(),i=Ji(r,r?.title?.main,t),s=Ji(r,r?.title?.subTitle,t),l=Ji(r,r?.label?.description,t),u=Ji(r,r?.label?.measureLabel,t),c=Ji(r,r?.label?.measureValue,t),d={useColorExpression:Xi(r,r?.background?.useColorExpression,"byExpression"===t?.style?.backgroundColor?.colorType,v.BACKGROUND_USE_EXPRESSION),color:Xi(r,r?.background?.color,t?.style?.backgroundColor?.color,v.BACKGROUND_COLOR),colorExpression:Xi(r,r?.background?.colorExpression,t?.style?.backgroundColor?.colorExpression,"")},h={topBar:Xi(r,r?.border?.topBar,t?.style?.border?.top,v.BORDER_TOP),fullBorder:Xi(r,r?.border?.fullBorder,t?.style?.border?.fullBorder,v.BORDER_FULL),contrastColor:Xi(r,r?.border?.contrastColor,"auto"===t?.style?.border?.colorType,!0),useColorExpression:Xi(r,r?.border?.useColorExpression,"byExpression"===t?.style?.border?.colorType,v.BORDER_USE_EXPRESSION),color:Xi(r,r?.border?.color,t?.style?.border?.color,v.BORDER_COLOR),colorExpression:Xi(r,r?.border?.colorExpression,t?.style?.border?.colorExpression,"")},p=Xi(r,r?.contrastTextColor,"auto"===t?.style?.fontColor?.colorType,!0),f=Wi(i,a,"default",p),g=Wi(s,a,"default",p),m=Wi(l,a,"default",p),b=Wi(u,a,"default",p),y=Wi(c,a,"default",p),x=Wi(d,a,v.BACKGROUND_COLOR.color,!1),w=Wi(h,a,La.getDarkColor(x),h.contrastColor),_=t.qHyperCube.qMeasureInfo.length?t.qHyperCube.qMeasureInfo[0].qFallbackTitle:null;return{cardTitle:{fontSize:Xi(r,r?.title?.main?.fontSize,v.CARD_TITLE_FONTSIZE,n.card.title.main.fontSize),fontFamily:r?.title?.main?.fontFamily??n.card.title.main.fontFamily,fontColor:f},cardSubTitle:{fontSize:Xi(r,r?.title?.subTitle?.fontSize,v.CARD_BODY_FONTSIZE,n.card.title.subTitle.fontSize),fontFamily:r?.title?.subTitle?.fontFamily??n.card.title.subTitle.fontFamily,fontColor:g},cardDescription:{fontSize:Xi(r,r?.label?.description?.fontSize,v.CARD_BODY_FONTSIZE,n.card.label.description.fontSize),fontFamily:r?.label?.description?.fontFamily??n.card.label.description.fontFamily,fontColor:m},cardMeasureLabel:{fontSize:Xi(r,r?.label?.measureLabel?.fontSize,v.CARD_BODY_FONTSIZE,n.card.label.measureLabel.fontSize),fontFamily:r?.label?.measureLabel?.fontFamily??n.card.label.measureLabel.fontFamily,fontColor:b},cardMeasureValue:{fontSize:Xi(r,r?.label?.measureValue?.fontSize,v.CARD_BODY_FONTSIZE,n.card.label.measureValue.fontSize),fontFamily:r?.label?.measureValue?.fontFamily??n.card.label.measureValue.fontFamily,fontColor:y},cardContrastTextColor:p,cardBackgroundColor:x,cardBorder:{topBar:h.topBar,fullBorder:h.fullBorder,contrastColor:h.contrastColor,borderColor:w},cardImage:{location:r?.image?.location??v.IMAGE_LOCATION,alignment:r?.image?.alignment??v.IMAGE_ALIGNMENT,shape:r?.image?.shape??v.IMAGE_SHAPE,clip:r?.image?.clip??v.IMAGE_CLIP},measureLabel:_}})({themeService:O,layout:l}):Yi({Theme:s,layout:l}));const r=new Set;if(a.isEnabled("QCB_31709_FIX_PRINTING_IMAGES")){const e=u?.expandedState||{topId:n.id,isExpanded:!0,expandedChildren:[]},t=ea(n);Vi(e,t,!1,l.navigationMode).forEach(e=>{e.data.attributes?.image&&r.add(e.data.id)})}C({resolve:(n,o)=>{n&&r.delete(n),(0===r.size||o)&&(clearTimeout(t),e())}}),0===r.size&&(clearTimeout(t),e())})}),[l,i,c.language(),O]),{dataTree:b,styling:x,usePromiseStatus:_}};function ns(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}ns(".sn-org-chart .sn-org-homebutton {\n position: absolute;\n top: 20px;\n right: 20px;\n height: 20px;\n width: 20px;\n border-color: transparent;\n background-color: transparent;\n fill: rgba(89, 89, 89, 0.8);\n transition: fill 200ms ease-out;\n}\n.sn-org-chart .sn-org-homebutton:hover {\n fill: #595959;\n}\n.sn-org-chart .sn-org-homebutton.disabled {\n display: none;\n}\n");ns(".sn-org-chart {\n overflow: hidden;\n}\n.sn-org-chart .sn-org-nodes {\n position: absolute;\n transform-origin: 0% 0%;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n backface-visibility: hidden;\n}\n.sn-org-chart .sn-org-nodes:not(.org-disable-transition) {\n transition-property: all;\n transition-duration: 0.5s;\n}\n.sn-org-chart .sn-org-nodes .sn-org-traverse {\n position: absolute;\n background-color: white;\n font-size: 20px;\n font-weight: bold;\n border-radius: 3px;\n border: 1px solid #8c8c8c;\n text-align: center;\n line-height: 24px;\n}\n.sn-org-chart .sn-org-nodes .sn-org-root {\n position: absolute;\n background-color: #8c8c8c;\n width: 20px;\n height: 20px;\n border-radius: 20px;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card {\n position: absolute;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-card-text {\n padding-left: 5px;\n padding-right: 5px;\n border-radius: 3px;\n display: flex;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-card-text.selected {\n border: 4px solid black;\n border-radius: 4px;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-card-text.not-selected {\n opacity: 0.5;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-card-text.horizontal {\n flex-direction: row;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-card-text.vertical {\n flex-direction: column;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-image-wrapper {\n order: 0;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-image-wrapper.image-last {\n order: 2;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-image-wrapper.vertical {\n margin: 0 auto;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-image-wrapper .sn-org-card-image {\n padding: 4px 4px;\n object-fit: contain;\n height: 130px;\n width: 130px;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-image-wrapper .sn-org-card-image.round {\n border-radius: 50%;\n object-fit: cover;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-image-wrapper .sn-org-card-image.clip {\n object-fit: cover;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-image-wrapper .sn-org-card-image.horizontal {\n padding: 4px 0px;\n height: 50px;\n width: 50px;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-textbox {\n order: 1;\n overflow: hidden;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-textbox.has-image {\n max-height: 60px;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-textbox.has-image.horizontal {\n width: 85px;\n height: fit-content;\n position: relative;\n top: 50%;\n transform: translate(0, -50%);\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-textbox.has-image.left {\n padding-left: 4px;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-textbox.has-image.right {\n padding-right: 4px;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-textbox.has-image.vertical {\n width: 143px;\n margin-bottom: 4px;\n margin: 0 auto;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-textbox.has-image.bottom {\n padding-top: 4px;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-textbox.has-image.round {\n max-height: 80px;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-textbox .sn-org-card-title {\n font-size: 14px;\n font-weight: bold;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-textbox .sn-org-card-label {\n font-size: 11px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n");ns(".sn-org-chart .sn-org-svg {\n position: absolute;\n /* For css only transitions, does not work in IE11 */\n}\n.sn-org-chart .sn-org-svg .sn-org-path {\n fill: none;\n stroke: #4c4c4c;\n stroke-width: 1;\n}\n.sn-org-chart .sn-org-svg .sn-org-paths:not(.org-disable-transition) {\n transform-origin: 0% 0%;\n transition-property: all;\n transition-duration: 0.5s;\n}\n");ns('.sn-org-chart {\n /* Tooltip arrow */\n}\n.sn-org-chart .sn-org-tooltip {\n visibility: hidden;\n opacity: 0;\n /* Unsupported in IE, so there we set width explicitly */\n width: max-content;\n /* Position the tooltip text */\n position: absolute;\n z-index: 1;\n}\n.sn-org-chart .sn-org-tooltip::after {\n content: "";\n position: absolute;\n top: 100%;\n left: 0%;\n margin-left: -10px;\n border-width: 10px;\n border-style: solid;\n border-color: #404040 transparent transparent transparent;\n}\n.sn-org-chart .sn-org-tooltip-visible {\n opacity: 0.9;\n visibility: visible;\n}\n.sn-org-chart .sn-org-tooltip-inner {\n max-width: 240px;\n right: 50%;\n font-family: "QlikView Sans", sans-serif;\n position: relative;\n max-height: 150px;\n background-color: #404040;\n color: #e6e6e6;\n text-align: left;\n font-size: 13px;\n line-height: 15px;\n padding: 10px 10px 10px 10px;\n border-radius: 6px;\n overflow-wrap: break-word;\n word-wrap: break-word;\n word-break: break-word;\n overflow: hidden;\n}\n.sn-org-chart .sn-org-tooltip-inner .sn-org-tooltip-image {\n height: 50px;\n}\n.sn-org-chart .sn-org-tooltip-inner .sn-org-tooltip-header {\n font-weight: bold;\n padding-bottom: 5px;\n}\n');ns(".sn-org-chart .sn-org-warning {\n position: absolute;\n bottom: 0px;\n left: 0px;\n font-style: italic;\n font-size: 13px;\n color: #7b7a78;\n}\n.sn-org-chart .sn-org-error {\n margin: 0;\n position: absolute;\n top: 50%;\n left: 50%;\n font-size: 1.2em;\n transform: translate(-50%, -50%);\n}\n")}}});
|
|
9
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,a,i,s,l,c,u,h,d=e.length,p=e.search(/[0-9\-\+#]/),f=p>0?e.substring(0,p):"",g=e.split("").reverse().join(""),m=g.search(/[0-9\-\+#]/),b=d-m,y=e.substring(b,b+1),v=b+("."===y||","===y?1:0),x=m>0?e.substring(v,d):"";if(n=(t="-"===(e=e.substring(p,v)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",a=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),u=e[0].split(a),e[0]=u.join(""),(i=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-i;)c[0]="0"+c[0];else 0===+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.length-1].length){for(g="",b=(h=t[0]).length%l,d=h.length,v=0;v<d;v++)g+=h.charAt(v),!((v-b+1)%l)&&v<d-l&&(g+=a);t[0]=g}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),f+(n?"-":"")+r+x}},Ve({exports:{}});const He="'Source Sans Pro', 'Arial', 'sans-serif'",Ke="#333333",Ze="#595959",We="#737373",Ge="#cccccc",Xe="#e6e6e6";function Ye(e){const t={};return[...e,["","","color"],["object","","fontFamily"],["object","axis.label.name","color",Ze],["object","axis.label.name","fontFamily",He],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",Ge],["object","axis.line.minor","color",Xe],["object","axis.title","color"],["object","axis.title","fontFamily",He],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",Xe],["object","grid.line.major","color",Ge],["object","grid.line.minor","color",Xe],["object","label.value","color",Ze],["object","label.value","fontFamily",He],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",Ze],[!1,"label.value","lightColor",Xe],["object","outOfRange","color","#999"],["object","legend.title","color",Ke],["object","legend.title","fontFamily",He],["object","legend.title","fontSize","15px"],["object","legend.label","color",Ze],["object","legend.label","fontFamily",He],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",Ke],["object","referenceLine.label.name","fontFamily",He],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",Xe],["object","referenceLine.outOfBounds","fontFamily",He],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",We,e=>"transparent"===e?We:e]].reduce((e,n)=>{const r=`${n[0]}-${n[1]}-${n[2]}}`;return t[r]||(t[r]=!0,e.push(n)),e},[]).toSorted((e,t)=>(e[0].split?e[0].split(".").length:0)-(t[0].split?t[0].split(".").length:0))}const Je="object",Qe=e=>e;function et({theme:e,id:t,transform:n,extend:r,matrix:o}){const a={},i=n.reduce((e,t)=>{const[n,r]=t;return e[n]=r,e},{});return o.forEach(n=>{const[r,o,s,l,c=e=>e]=n,u=function({theme:e,base:t,path:n,attribute:r,defaultValue:o}){if(!e||!1===t)return o;const a=e.getStyle(t,n,r);return void 0===a?o:a}({theme:e,base:r===Je&&t?`${Je}.${t}`:r,path:o,attribute:s,defaultValue:l}),h=(i[`${o}.${s}`]||Qe)(c(u));je(a,[o,s].filter(Boolean).join("."),h)}),r.forEach(e=>{const[t,n]=e;je(a,t,n)}),a}var tt={CARD_TITLE_FONTSIZE:"14px",CARD_BODY_FONTSIZE:"11px",FONT_COLOR_TYPE:"auto",FONT_COLOR_DARK:{index:-1,color:"#484848"},FONT_COLOR_LIGHT:{color:"#e6e6e6"},BACKGROUND_COLOR_TYPE:"colorPicker",BACKGROUND_COLOR:{index:-1,color:"#ffffff"},BORDER_COLOR_TYPE:"auto",BORDER_COLOR:{index:-1,color:"#737373"},BORDER_FULL:!0,BORDER_TOP:!0,FONT_COLOR_USE_EXPRESSION:!1,BACKGROUND_USE_EXPRESSION:!1,BORDER_USE_EXPRESSION:!1,IMAGE_LOCATION:"both",IMAGE_ALIGNMENT:"left",IMAGE_SHAPE:"rectangle",IMAGE_CLIP:!0};const nt=[{value:!1,translation:"properties.colorMode.primary"},{value:!0,translation:"properties.colorMode.byExpression"}],rt=e=>e.contrastTextColor??!0;function ot(e,t,n){const r=`${e}.${t}`,o=`${r}.fontFamily`,a=`${r}.fontSize`,i=`${r}.color`,s=`${r}.colorExpression`;return{fontFamilyItem:{component:"dropdown",ref:o,options:()=>n.getOptions(`card.${o}`),defaultValue:()=>n.getDefaultValue(`card.${o}`)},fontSizeItem:{component:"dropdown",ref:a,options:()=>n.getOptions(`card.${a}`),defaultValue:()=>n.getDefaultValue(`card.${a}`)},fontColorWrapperItem:{component:"inline-wrapper",items:{useColorExpression:{ref:`${r}.useColorExpression`,width:!0,component:"dropdown",defaultValue:tt.FONT_COLOR_USE_EXPRESSION,options:nt,show:e=>!rt(e)},colorPicker:{component:"color-picker",ref:i,width:!1,dualOutput:!0,defaultValue:tt.FONT_COLOR_DARK,show:n=>!rt(n)&&!n[e]?.[t]?.useColorExpression}}},colorExpression:{component:"input-field-expression",type:"string",ref:s,width:!0,expression:"optional",defaultValue:"",show:n=>!rt(n)&&n[e]?.[t]?.useColorExpression}}}const at=[{value:!1,translation:"properties.colorMode.primary"},{value:!0,translation:"properties.colorMode.byExpression"}],it=[{value:"card",translation:"Card only"},{value:"tooltip",translation:"Tooltip only"},{value:"both",translation:"Card and tooltip"}],st=[{value:"left",translation:"Left"},{value:"right",translation:"Right"},{value:"top",translation:"Top"},{value:"bottom",translation:"Bottom"}],lt=[{value:"rectangle",translation:"Rectangle"},{value:"round",translation:"Round"}];function ct(e,t,n){const r=function({theme:e,translator:t,config:n={}}){const{id:r,paths:o}=function({config:e={}}){const{id:t,paths:n}=e;return{id:void 0===t?x:`${x}.${t}`,paths:Array.isArray(n)?n:[]}}({config:n}),a={};o.forEach(n=>{const o=n.split(".");z(o);let i=a;for(let a=0;a<o.length;a++){const s=o[a];a===o.length-1?i[s]=S({theme:e,translator:t,id:r,path:n}):void 0===i[s]&&(i[s]={}),i=i[s]}});const i=e=>{const t=e.split(".");z(t);let n=a;for(let r=0;r<t.length;r++){const o=t[r];if(void 0===n[o])throw new Error(`font-resolver: Path '${e}' could not be resolved.`);n=n[o]}return n};return a.getDefaultValue=e=>i(e).getDefaultValue(),a.getOptions=e=>i(e).getOptions(),a}({theme:e,translator:n,config:{id:"orgChart",paths:["card.title.main","card.title.subTitle","card.label.description","card.label.measureLabel","card.label.measureValue"]}}),o=e=>(e.border?.topBar??tt.BORDER_TOP)||(e.border?.fullBorder??tt.BORDER_FULL),a=e=>e.border?.contrastColor??!0;return{component:"styling-panel",show:!0,chartType:"orgchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.OrgChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:!0,items:{contrastTextColorSection:{translation:"Object.OrgChart.Card.TextColor",component:"panel-section",items:{contrastTextColorItems:{component:"items",ref:"components",key:"card",items:{useContrast:{component:"checkbox",type:"boolean",ref:"contrastTextColor",translation:"Object.OrgChart.Card.Contrast",defaultValue:!0}}}}},titleSection:{translation:"Object.OrgChart.Card.Title",component:"panel-section",items:{titleItems:{component:"items",ref:"components",key:"card",items:ot("title","main",r)}}},subtitleSection:{translation:"Object.OrgChart.Card.Subtitle",component:"panel-section",items:{subtitleItems:{component:"items",ref:"components",key:"card",items:ot("title","subTitle",r)}}},descriptionSection:{translation:"Object.OrgChart.Card.Description",component:"panel-section",items:{descriptionItems:{component:"items",ref:"components",key:"card",items:ot("label","description",r)}}},measureLabelSection:{translation:"Object.OrgChart.Card.MeasureLabel",component:"panel-section",items:{measureLabelItems:{component:"items",ref:"components",key:"card",items:ot("label","measureLabel",r)}}},measureValueSection:{translation:"Object.OrgChart.Card.MeasureValue",component:"panel-section",items:{measureValueItems:{component:"items",ref:"components",key:"card",items:ot("label","measureValue",r)}}},backgroundColorSection:{component:"panel-section",translation:"Object.OrgChart.ColorLabelExpression",items:{backgroundColorItems:{component:"items",ref:"components",key:"card",items:{fontColorWrapperItem:{component:"inline-wrapper",items:{useColorExpression:{ref:"background.useColorExpression",width:9,component:"dropdown",defaultValue:tt.BACKGROUND_USE_EXPRESSION,options:at},colorPicker:{component:"color-picker",type:"object",ref:"background.color",width:3,dualOutput:!0,defaultValue:tt.BACKGROUND_COLOR,showAlpha:!0,show:e=>!e.background?.useColorExpression},colorExpression:{component:"input-field-expression",type:"string",ref:"background.colorExpression",expression:"optional",defaultValue:"",show:e=>e.background?.useColorExpression}}}}}}},cardBorderSection:{component:"panel-section",translation:"Object.OrgChart.CardAppearance",items:{cardBorderItems:{component:"items",ref:"components",key:"card",items:{topBar:{component:"checkbox",ref:"border.topBar",translation:"Object.OrgChart.TopBar",defaultValue:tt.BORDER_TOP},fullBorder:{component:"checkbox",ref:"border.fullBorder",translation:"properties.border",defaultValue:tt.BORDER_FULL},contrastBorderColorSection:{component:"checkbox",type:"boolean",key:"card",ref:"border.contrastColor",translation:"Object.OrgChart.Card.Contrast",defaultValue:!0,show:e=>o(e)},borderColorWrapperItem:{component:"inline-wrapper",items:{useColorExpression:{component:"dropdown",ref:"border.useColorExpression",width:9,translation:"properties.border.color",defaultValue:tt.BORDER_USE_EXPRESSION,options:at,show:e=>o(e)&&!a(e)},colorPicker:{component:"color-picker",ref:"border.color",width:3,dualOutput:!0,defaultValue:tt.BORDER_COLOR,show:e=>o(e)&&!a(e)&&!e.border?.useColorExpression},colorExpression:{component:"input-field-expression",type:"string",ref:"border.colorExpression",expression:"optional",defaultValue:"",show:e=>o(e)&&!a(e)&&e.border?.useColorExpression}}}}}}},imageSection:{component:"panel-section",translation:"Object.OrgChart.ImageOptions",items:{imageItems:{component:"items",ref:"components",key:"card",items:{location:{component:"dropdown",ref:"image.location",translation:"Object.OrgChart.ImageLocation",options:it,defaultValue:tt.IMAGE_LOCATION},alignment:{component:"dropdown",ref:"image.alignment",translation:"Object.OrgChart.ImageAlignment",options:st,defaultValue:tt.IMAGE_ALIGNMENT},shape:{component:"dropdown",ref:"image.shape",translation:"Object.OrgChart.ImageShape",options:lt,defaultValue:tt.IMAGE_SHAPE},clip:{component:"checkbox",ref:"image.clip",translation:"Object.OrgChart.ImageFit",defaultValue:tt.IMAGE_CLIP,show:e=>"rectangle"===(e.image?.shape??tt.IMAGE_SHAPE)}}}}}}}}const ut=[{value:"free",translation:"Object.OrgChart.FreeMode"},{value:"expandAll",translation:"Object.OrgChart.ExpandAll"}],ht=()=>({uses:"data",items:{measures:{disabledRef:""},dimensions:{disabledRef:"",items:{dimensionLimits:{show:!1},attributes:{component:"attribute-expression-reference",defaultValue:[],show:(e,t)=>t.getDimensions()[0]===e,ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",translation:"Object.OrgChart.LabelExpression",defaultValue:"",id:"labelExpression",tid:"labelExpression"},{component:"expression",ref:"qExpression",translation:"Object.OrgChart.SubLabelExpression",defaultValue:"",id:"subLabelExpression",tid:"subLabelExpression"},{component:"expression",ref:"qExpression",translation:"Object.OrgChart.ExtraLabelExpression",defaultValue:"",id:"extraLabelExpression",tid:"extraLabelExpression"},{component:"expression",ref:"qExpression",translation:"Object.OrgChart.ImageUrl",defaultValue:"",id:"imageExpression",tid:"imageExpression"},{component:"expression",ref:"qExpression",translation:"Object.OrgChart.ColorLabelExpression",defaultValue:"",id:"colorByExpression",tid:"nodeColorByExpression"}]},desc:{show:(e,t)=>t.getDimensions()[0]===e,component:"text",translation:"Object.OrgChart.ExtraLabelDesc",style:"hint"}}}}}),dt={uses:"sorting"},pt={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"},rowLimit:{type:"integer",translation:"$RowLimit",ref:"rowLimit",defaultValue:3e4,min:5e3,max:1e5,show:!1}}}}},ft=(e,t,n)=>{const r=n?.sense?.theme,o={uses:"settings",items:{styling:{grouped:!0,translation:"properties.presentation",type:"items",items:{orgChartStyling:ct(r,0,e),navigation:{type:"items",items:{navigationMode:{ref:"navigationMode",type:"string",translation:"Object.OrgChart.NavigationMode",component:"dropdown",defaultValue:"free",options:ut},resizeOnExpand:{ref:"resizeOnExpand",type:"boolean",defaultValue:!1,translation:"Object.OrgChart.resizeOnExpand",show:e=>"expandAll"!==v.getValue(e,"navigationMode")}}}}}}};return o};function gt(e){return function({translator:e,flags:t,anything:n}){return{definition:{type:"items",component:"accordion",items:{data:ht(),sorting:dt,addOns:pt,settings:ft(e,t,n)}},support:{export:!0,exportData:!0,snapshot:!0,viewData:!0},migrate:{properties:e=>function(e){if(e.components?.length>0)return e;function t(e){return{useColorExpression:"byExpression"===e.colorType,color:e.color,colorExpression:e.colorExpression,colorType:e.colorType}}function n(e){return"auto"===e.colorType}const r={key:"card",title:{main:{...t(e.style?.fontColor)},subTitle:{...t(e.style?.fontColor)}},label:{description:{...t(e.style?.fontColor)},measureLabel:{...t(e.style?.fontColor)},measureValue:{...t(e.style?.fontColor)}},contrastTextColor:n(e.style?.fontColor),background:{...t(e.style?.backgroundColor)},border:{...t(e.style?.border),fullBorder:e.style?.border?.fullBorder,topBar:e.style?.border?.top,contrastColor:n(e.style?.border)}};return e.components=[r],e}(e)}}}(e)}var mt={Object_OrgChart:{id:"Object.OrgChart",locale:{"de-DE":"Organisationsdiagramm","en-US":"Org chart","es-ES":"Organigrama","fr-FR":"Organigramme","it-IT":"Organigramma","ja-JP":"組織図","ko-KR":"조직도","nl-NL":"Organisatiediagram","pl-PL":"Wykres organizacyjny","pt-BR":"Quadro organizacional","ru-RU":"Организационная диаграмма","sv-SE":"Organisationsdiagram","tr-TR":"Kuruluş grafiği","zh-CN":"组织图","zh-TW":"組織圖"}},Object_OrgChart_BackgroundColor:{id:"Object.OrgChart.BackgroundColor",locale:{"de-DE":"Hintergrundfarbe","en-US":"Background color","es-ES":"Color de fondo","fr-FR":"Couleur d'arrière-plan","it-IT":"Colore sfondo","ja-JP":"背景色","ko-KR":"배경색","nl-NL":"Achtergrondkleur","pl-PL":"Kolor tła","pt-BR":"Cor de fundo","ru-RU":"Цвет фона","sv-SE":"Bakgrundsfärg","tr-TR":"Arka plan rengi","zh-CN":"背景颜色","zh-TW":"背景顏色"}},Object_OrgChart_CardAppearance:{id:"Object.OrgChart.CardAppearance",locale:{"de-DE":"Kartendarstellung","en-US":"Card appearance","es-ES":"Aspecto de la tarjeta","fr-FR":"Aspect de la carte","it-IT":"Aspetto scheda","ja-JP":"カード スタイル","ko-KR":"카드 모양","nl-NL":"Uiterlijk van de kaart","pl-PL":"Wygląd karty","pt-BR":"Aparência do cartão","ru-RU":"Вид карточки","sv-SE":"Kortets utseende","tr-TR":"Kart görünüşü","zh-CN":"卡外观","zh-TW":"卡片外觀"}},Object_OrgChart_ColorLabelExpression:{id:"Object.OrgChart.ColorLabelExpression",locale:{"de-DE":"Hintergrundfarbe der Karte","en-US":"Card background color","es-ES":"Color de fondo de la tarjeta","fr-FR":"Couleur d'arrière-plan de la carte","it-IT":"Colore sfondo scheda","ja-JP":"カードの背景色","ko-KR":"카드 배경색","nl-NL":"Achtergrondkleur kaart","pl-PL":"Kolor tła karty","pt-BR":"Cor de fundo do cartão","ru-RU":"Цвет фона карточки","sv-SE":"Kortets bakgrundsfärg","tr-TR":"Kart arka plan rengi","zh-CN":"卡背景颜色","zh-TW":"卡片背景顏色"}},Object_OrgChart_CycleWarning:{id:"Object.OrgChart.CycleWarning",locale:{"de-DE":"Die Daten enthalten Zirkelbezüge, Knoten werden ausgelassen.","en-US":"Data contains circular references, nodes are omitted.","es-ES":"Los datos contienen referencias circulares, se omiten los nodos.","fr-FR":"Les données contiennent des références circulaires. Les nœuds sont omis.","it-IT":"Impossibile visualizzare i nodi: i dati contengono riferimenti incrociati.","ja-JP":"データに循環参照が含まれています。ノードは省略されます。","ko-KR":"데이터가 순환 참조를 포함합니다. 노드는 생략됩니다.","nl-NL":"Gegevens bevatten cirkelreferenties, knooppunten worden weggelaten.","pl-PL":"Dane zawierają odwołania cykliczne, węzły są pomijane.","pt-BR":"Os dados contêm referências circulares, os nós são omitidos.","ru-RU":"В данных содержатся циклические ссылки, узлы опущены.","sv-SE":"Data innehåller cirkelreferenser. Noder utelämnas.","tr-TR":"Veriler döngüsel referanslar içeriyor; düğümler atlandı.","zh-CN":"数据包含循环引用,已省略节点。","zh-TW":"資料包含循環參照,已省略節點。"}},Object_OrgChart_Description:{id:"Object.OrgChart.Description",locale:{"de-DE":"Zeigt die Beziehungen einer Organisation oder ähnlich strukturierter Daten an. Startet oben und ermöglicht die Navigation durch die Hierarchie.","en-US":"Displays the relations of an organization or similarly structured data. Starts at the top and allows for navigation through the hierarchy.","es-ES":"Muestra las relaciones jerárquicas de una organización o datos estructurados de manera similar. Comienza en la parte superior y permite la navegación a través de la jerarquía.","fr-FR":"Affiche les relations d'une entreprise ou de données structurées de manière similaire. Démarre au sommet et permet la navigation à travers la hiérarchie.","it-IT":"Visualizza le relazioni di un'organizzazione o dati strutturati in modo analogo. Inizia dall'alto e consente la navigazione attraverso la gerarchia.","ja-JP":"組織の関係やそれに類似する構造のデータを表示します。上部から開始し、階層を移動できます。","ko-KR":"조직 또는 유사하게 구조화된 데이터의 관계를 표시합니다. 맨 위에서 시작하여 계층 구조를 탐색할 수 있습니다.","nl-NL":"Geeft de relaties van een organisatie of vergelijkbaar gestructureerde gegevens weer. Begint bovenaan en maakt navigatie door de hiërarchie mogelijk.","pl-PL":"Wyświetla relacje organizacji lub dane o podobnej strukturze. Zaczyna się od góry i umożliwia nawigację w hierarchii.","pt-BR":"Exibe as relações de uma organização ou dados estruturados de forma semelhante. Começa no topo e permite a navegação pela hierarquia.","ru-RU":"Отображает отношения организации или аналогично структурированные данные. Начинается сверху и позволяет перемещаться по иерархии.","sv-SE":"Visar relationerna i en organisation eller data som är strukturerat på liknande sätt. Startar högst upp och möjliggör navigering genom hierarkin.","tr-TR":"Bir kuruluşun ilişkilerini veya benzer yapılanan verileri gösterir. En üstte açılır ve hiyerarşide hareket etmenize olanak sağlar.","zh-CN":"显示组织或类似结构数据的关系。从顶部开始,并允许在层次结构中进行导航。","zh-TW":"顯示組織的關係或類似結構的資料。在頂端開始並允許瀏覽階層。"}},Object_OrgChart_DummyWarn:{id:"Object.OrgChart.DummyWarn",locale:{"de-DE":"Die Daten enthalten mehrere Root-Knoten.","en-US":"The data contains multiple root nodes.","es-ES":"Los datos contienen múltiples nodos raíz.","fr-FR":"Les données contiennent plusieurs nœuds racines.","it-IT":"I dati contengono più nodi principali.","ja-JP":"データには複数のルート ノードが含まれています。","ko-KR":"데이터가 여러 루트 노드를 포함합니다.","nl-NL":"De gegevens bevatten meerdere hoofdknooppunten.","pl-PL":"Dane zawierają wiele węzłów głównych.","pt-BR":"Os dados contêm vários nós raiz.","ru-RU":"В данных содержится несколько корневых узлов.","sv-SE":"Data innehåller flera rotnoder.","tr-TR":"Veriler birden çok kök düğümü içeriyor.","zh-CN":"数据包含多个根节点。","zh-TW":"資料包含多個根節點。"}},Object_OrgChart_ExpandAll:{id:"Object.OrgChart.ExpandAll",locale:{"de-DE":"Gesamte Struktur","en-US":"Entire tree","es-ES":"Árbol entero","fr-FR":"Arborescence complète","it-IT":"Intero albero","ja-JP":"ツリー全体","ko-KR":"전체 트리","nl-NL":"Volledige structuur","pl-PL":"Całe drzewo","pt-BR":"Árvore inteira","ru-RU":"Все дерево","sv-SE":"Hela trädet","tr-TR":"Tüm ağaç","zh-CN":"整个树","zh-TW":"整個樹狀結構"}},Object_OrgChart_ExtraLabelDesc:{id:"Object.OrgChart.ExtraLabelDesc",locale:{"de-DE":"Die Beschreibung wird nur angezeigt, wenn eine Kennzahl nicht verwendet wird","en-US":"Description is only visible when a measure is not used","es-ES":"La descripción solo está visible cuando no se usa una medida","fr-FR":"La description est visible uniquement lorsqu'une mesure n'est pas utilisée","it-IT":"È possibile visualizzare la descrizione solo se le misure non vengono utilizzate","ja-JP":"メジャーが使用されていない場合にのみ、説明が表示されます。","ko-KR":"측정값을 사용하지 않는 경우에만 설명을 볼 수 있습니다.","nl-NL":"Beschrijving is alleen zichtbaar wanneer een meting niet wordt gebruikt","pl-PL":"Opis jest widoczny tylko wtedy, gdy miara nie jest używana","pt-BR":"A descrição é visível apenas quando uma medida não é usada","ru-RU":"Описание отображается, только если мера не используется","sv-SE":"Beskrivning används bara när ett mått inte används","tr-TR":"Bir hesaplama kullanılmadığında yalnızca açıklama görünür","zh-CN":"描述仅在未使用度量时可用","zh-TW":"只有在不使用量值時才會顯示描述"}},Object_OrgChart_ExtraLabelExpression:{id:"Object.OrgChart.ExtraLabelExpression",locale:{"de-DE":"Beschreibung der Karte","en-US":"Card description","es-ES":"Descripción de la tarjeta","fr-FR":"Description de la carte","it-IT":"Descrizione scheda","ja-JP":"カードの説明","ko-KR":"카드 설명","nl-NL":"Beschrijving kaart","pl-PL":"Opis karty","pt-BR":"Descrição do cartão","ru-RU":"Описание карточки","sv-SE":"Kortets beskrivning","tr-TR":"Kart açıklaması","zh-CN":"卡描述","zh-TW":"卡片描述"}},Object_OrgChart_FontColor:{id:"Object.OrgChart.FontColor",locale:{"de-DE":"Schriftfarbe","en-US":"Font color","es-ES":"Color de fuente","fr-FR":"Couleur de police","it-IT":"Colore formato carattere","ja-JP":"フォントの色","ko-KR":"글꼴 색","nl-NL":"Tekstkleur","pl-PL":"Kolor czcionki","pt-BR":"Cor da fonte","ru-RU":"Цвет шрифта","sv-SE":"Teckenfärg","tr-TR":"Yazı tipi rengi","zh-CN":"字体颜色","zh-TW":"字型色彩"}},Object_OrgChart_FreeMode:{id:"Object.OrgChart.FreeMode",locale:{"de-DE":"Erweitern/reduzieren","en-US":"Expand/collapse","es-ES":"Expandir/contraer","fr-FR":"Développer/Réduire","it-IT":"Espandi/comprimi","ja-JP":"展開/折りたたむ","ko-KR":"확장/축소","nl-NL":"Uitvouwen/alles samenvouwen","pl-PL":"Rozwiń/zwiń","pt-BR":"Expandir/recolher","ru-RU":"Развернуть/свернуть","sv-SE":"Visa/dölj","tr-TR":"Genişlet/daralt","zh-CN":"展开/折叠","zh-TW":"展開/摺疊"}},Object_OrgChart_IncludeDescendants:{id:"Object.OrgChart.IncludeDescendants",locale:{"de-DE":"Alle untergeordneten Elemente einschließen","en-US":"Include all children","es-ES":"Incluir todos los nodos secundarios","fr-FR":"Inclure tous les enfants","it-IT":"Includi tutti i nodi secondari","ja-JP":"すべての子を含める","ko-KR":"모든 자식을 포함합니다.","nl-NL":"Alle onderliggende elementen opnemen","pl-PL":"Uwzględniaj wszystkie elementy podrzędne","pt-BR":"Incluir todos os filhos","ru-RU":"Включить все дочерние элементы","sv-SE":"Inkludera alla underordnade","tr-TR":"Tüm alt öğeleri dahil edin","zh-CN":"包含所有子项","zh-TW":"包括所有子項"}},Object_OrgChart_LabelExpression:{id:"Object.OrgChart.LabelExpression",locale:{"de-DE":"Titel der Karte","en-US":"Card title","es-ES":"Título de tarjeta","fr-FR":"Titre de la carte","it-IT":"Titolo scheda","ja-JP":"カード タイトル","ko-KR":"카드 제목","nl-NL":"Titel kaart","pl-PL":"Tytuł karty","pt-BR":"Título do cartão","ru-RU":"Заголовок карточки","sv-SE":"Kortets rubrik","tr-TR":"Kart başlığı","zh-CN":"卡标题","zh-TW":"卡片標題"}},Object_OrgChart_MaxChildren:{id:"Object.OrgChart.MaxChildren",locale:{"de-DE":"Maximale Anzahl an untergeordneten Knoten erreicht, Knoten werden ausgelassen.","en-US":"Maximum number of child nodes reached, nodes are omitted.","es-ES":"Se alcanzó el número máximo de nodos secundarios, se omiten los nodos.","fr-FR":"Nombre maximal de nœuds enfants atteint. Les nœuds sont omis.","it-IT":"Impossibile visualizzare i nodi: numero massimo di nodi secondari raggiunto.","ja-JP":"子ノードの最大数に達しました。ノードは省略されます。","ko-KR":"최대 자식 노드 수에 도달했습니다. 노드는 생략됩니다.","nl-NL":"Maximaal aantal onderliggende knooppunten bereikt, knooppunten worden weggelaten.","pl-PL":"Osiągnięto maksymalną liczbę węzłów podrzędnych, węzły są pomijane.","pt-BR":"Número máximo de nós filhos atingidos, os nós são omitidos.","ru-RU":"Достигнуто максимальное количество дочерних узлов, узлы опущены.","sv-SE":"Maximalt antal underordnade noder har uppnåtts. Noder utelämnas.","tr-TR":"Maksimum alt öğe düğüm sayısına ulaşıldı; düğümler atlandı.","zh-CN":"已达到子节点最大数目,将省略节点。","zh-TW":"已達子節點數量上限,已省略節點。"}},Object_OrgChart_MaxData:{id:"Object.OrgChart.MaxData",locale:{"de-DE":"Die Datenobergrenze ist erreicht. Die Struktur wird möglicherweise nicht korrekt dargestellt.","en-US":"The maximum data limit is reached. The tree may display incorrectly.","es-ES":"Se ha alcanzado el límite máximo de datos. Puede que el árbol se muestre incorrectamente.","fr-FR":"La limite de données maximale est atteinte. Il se peut que l'arborescence ne s'affiche pas correctement.","it-IT":"Limite massimo dati raggiunto. La visualizzazione del grafico potrebbe essere compromessa.","ja-JP":"最大データ制限に達しました。ツリーが正しく表示されない場合があります。","ko-KR":"최대 데이터 제한에 도달했습니다. 트리가 잘못 표시될 수 있습니다.","nl-NL":"Het maximale datalimiet is bereikt. De boom kan incorrect worden weergegeven.","pl-PL":"Osiągnięto maksymalny limit danych. Drzewo może wyświetlać się nieprawidłowo.","pt-BR":"O limite máximo de dados foi atingido. A árvore pode ser exibida incorretamente.","ru-RU":"Достигнут максимальный предел данных. Дерево может отображаться некорректно.","sv-SE":"Maxgränsen för data har nåtts. Trädet kanske inte visas på rätt sätt.","tr-TR":"Maksimum veri sınırına ulaşıldı. Ağaç grafik doğru görüntülenmeyebilir.","zh-CN":"已达到最大数据限制。树的显示可能不当。","zh-TW":"已達資料上限。樹狀目錄的顯示方式可能不正確。"}},Object_OrgChart_MissingRoot:{id:"Object.OrgChart.MissingRoot",locale:{"de-DE":"Kein Root-Knoten, prüfen Sie die Daten auf Zirkelbezüge.","en-US":"No root node, check data for circular references.","es-ES":"Sin nodo raíz, verifique los datos por si hay referencias circulares.","fr-FR":"Aucun nœud racine. Recherchez les références circulaires dans les données.","it-IT":"Impossibile utilizzare i nodi principali: verificare i riferimenti circolari.","ja-JP":"ルート ノードがありません。循環参照のデータを確認してください。","ko-KR":"루트 노드가 없습니다. 순환 참조에 대한 데이터를 확인하십시오.","nl-NL":"Geen hoofdknooppunt, controleer of de gegevens cirkelreferenties bevatten.","pl-PL":"Brak węzła głównego, sprawdź dane pod kątem odwołań cyklicznych.","pt-BR":"Nenhum nó raiz, verifique os dados para referências circulares.","ru-RU":"Нет корневых узлов, проверьте данные на предмет циклических ссылок.","sv-SE":"Ingen rotnod. Kontrollera om det finns cirkelreferenser i data.","tr-TR":"Kök düğümü yok, verileri döngüsel referanslar açısından kontrol edin.","zh-CN":"无根节点,请检查数据是否存在循环引用。","zh-TW":"沒有根節點,請檢查循環參照的資料。"}},Object_OrgChart_NavigationMode:{id:"Object.OrgChart.NavigationMode",locale:{"de-DE":"Präsentationsmodus","en-US":"Presentation mode","es-ES":"Modo presentación","fr-FR":"Mode présentation","it-IT":"Modalità presentazione","ja-JP":"プレゼンテーション モード","ko-KR":"프레젠테이션 모드","nl-NL":"Presentatiemodus","pl-PL":"Tryb prezentacji","pt-BR":"Modo de apresentação","ru-RU":"Режим представления","sv-SE":"Presentationsläge","tr-TR":"Sunum modu","zh-CN":"演示模式","zh-TW":"呈現模式"}},Object_OrgChart_SingleSelect:{id:"Object.OrgChart.SingleSelect",locale:{"de-DE":"Einzelnen Knoten auswählen","en-US":"Select single node","es-ES":"Seleccionar nodo único","fr-FR":"Sélectionner un seul nœud","it-IT":"Seleziona nodo singolo","ja-JP":"単一ノードを選択","ko-KR":"단일 노드 선택","nl-NL":"Enkel knooppunt selecteren","pl-PL":"Wybierz pojedynczy węzeł","pt-BR":"Selecionar nó único","ru-RU":"Выберите один узел","sv-SE":"Välj enskild nod","tr-TR":"Tek düğüm seç","zh-CN":"选择单个节点","zh-TW":"選取單一節點"}},Object_OrgChart_SubLabelExpression:{id:"Object.OrgChart.SubLabelExpression",locale:{"de-DE":"Untertitel der Karte","en-US":"Card sub-title","es-ES":"Subtítulo de tarjeta","fr-FR":"Sous-titre de la carte","it-IT":"Sottotitolo scheda","ja-JP":"カード サブタイトル","ko-KR":"카드 소제목","nl-NL":"Ondertitel kaart","pl-PL":"Podtytuł karty","pt-BR":"Subtítulo do cartão","ru-RU":"Подзаголовок карточки","sv-SE":"Kortets underrubrik","tr-TR":"Kart alt başlığı","zh-CN":"卡子标题","zh-TW":"卡片子標題"}},Object_OrgChart_TopBar:{id:"Object.OrgChart.TopBar",locale:{"de-DE":"Obere Leiste","en-US":"Top bar","es-ES":"Barra superior","fr-FR":"Barre supérieure","it-IT":"Barra superiore","ja-JP":"上部のバー","ko-KR":"상위 막대","nl-NL":"Bovenste balk","pl-PL":"Górny słupek","pt-BR":"Barra superior","ru-RU":"Верхняя полоса","sv-SE":"Övre fältet","tr-TR":"Üst çubuk","zh-CN":"顶部栏","zh-TW":"頂端列"}},Object_OrgChart_resizeOnExpand:{id:"Object.OrgChart.resizeOnExpand",locale:{"de-DE":"Beim Erweitern/Reduzieren Größe ändern","en-US":"Resize on expand/collapse","es-ES":"Cambiar el tamaño al expandir/contraer","fr-FR":"Redimensionner avec Développer/Réduire","it-IT":"Ridimensiona quando espandi/comprimi","ja-JP":"展開/折りたたみ時にサイズ変更","ko-KR":"확장/축소하여 크기 조정","nl-NL":"Formaat wijzigen bij uitvouwen/alles samenvouwen","pl-PL":"Zmień rozmiar przy rozwijaniu/zwijaniu","pt-BR":"Redimensionar em expandir/recolher","ru-RU":"Изменить размер при разворачивании/сворачивании","sv-SE":"Ändra storlek vid visa/dölj","tr-TR":"Genişletmede/daraltmada yeniden boyutlandır","zh-CN":"调整展开/折叠的大小","zh-TW":"調整展開/摺疊大小"}}};function bt(e){if(e&&e.get&&e.add){const t="Object.OrgChart.MaxData";if(e.get(t)!==t)return;Object.keys(mt).forEach(t=>{e.add(mt[t])})}}const yt={qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:5,qHeight:500}],qSuppressZero:!1,qSuppressMissing:!0},showTitles:!0,title:"",subtitle:"",footnote:"",navigationMode:"free",resizeOnExpand:!1,style:{fontColor:{colorType:tt.FONT_COLOR_TYPE,color:tt.FONT_COLOR_DARK,colorExpression:""},backgroundColor:{colorType:tt.BACKGROUND_COLOR_TYPE,color:tt.BACKGROUND_COLOR,colorExpression:""},border:{top:tt.BORDER_TOP,fullBorder:tt.BORDER_FULL,colorType:tt.BORDER_COLOR_TYPE,color:tt.BORDER_COLOR,colorExpression:""}},components:[]},vt="M9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 Z M15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.4,15 C14.7313708,15 15,14.7313708 15,14.4 L15,13.5 C15,13.2238576 15.2238576,13 15.5,13 Z M0.5,13 C0.776142375,13 1,13.2238576 1,13.5 L1,14.4 C1,14.7313708 1.26862915,15 1.6,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,13.5 C0,13.2238576 0.223857625,13 0.5,13 Z M6.8,9 C6.91045695,9 7,9.08954305 7,9.2 L7,12.8 C7,12.9104569 6.91045695,13 6.8,13 L3.2,13 C3.08954305,13 3,12.9104569 3,12.8 L3,9.2 C3,9.08954305 3.08954305,9 3.2,9 L6.8,9 Z M12.8,9 C12.9104569,9 13,9.08954305 13,9.2 L13,12.8 C13,12.9104569 12.9104569,13 12.8,13 L9.2,13 C9.08954305,13 9,12.9104569 9,12.8 L9,9.2 C9,9.08954305 9.08954305,9 9.2,9 L12.8,9 Z M6,10 L4,10 L4,12 L6,12 L6,10 Z M12,10 L10,10 L10,12 L12,12 L12,10 Z M15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 Z M0.5,6 C0.776142375,6 1,6.22385763 1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 0,9.77614237 0,9.5 L0,6.5 C0,6.22385763 0.223857625,6 0.5,6 Z M6.8,3 C6.91045695,3 7,3.08954305 7,3.2 L7,6.8 C7,6.91045695 6.91045695,7 6.8,7 L3.2,7 C3.08954305,7 3,6.91045695 3,6.8 L3,3.2 C3,3.08954305 3.08954305,3 3.2,3 L6.8,3 Z M12.8,3 C12.9104569,3 13,3.08954305 13,3.2 L13,6.8 C13,6.91045695 12.9104569,7 12.8,7 L9.2,7 C9.08954305,7 9,6.91045695 9,6.8 L9,3.2 C9,3.08954305 9.08954305,3 9.2,3 L12.8,3 Z M12,4 L10,4 L10,6 L12,6 L12,4 Z M2.5,5.70654635e-14 C2.77614237,5.70654635e-14 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.6,1 C1.26862915,1 1,1.26862915 1,1.6 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 0,2.77614237 0,2.5 L0,1 C0,0.44771525 0.44771525,5.70654635e-14 1,5.70654635e-14 L2.5,5.70654635e-14 Z M15,0 C15.5522847,0 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.6 C15,1.26862915 14.7313708,1 14.4,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,0 13.5,0 L15,0 Z M9.5,5.67323966e-14 C9.77614237,5.67323966e-14 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,5.67323966e-14 6.5,5.67323966e-14 L9.5,5.67323966e-14 Z";var xt={value:()=>{}};function wt(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new _t(r)}function _t(e){this._=e}function Ct(e,t){for(var n,r=0,o=e.length;r<o;++r)if((n=e[r]).name===t)return n.value}function Et(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=xt,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}_t.prototype=wt.prototype={constructor:_t,on:function(e,t){var n,r,o=this._,a=(r=o,(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}})),i=-1,s=a.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++i<s;)if(n=(e=a[i]).type)o[n]=Et(o[n],e.name,t);else if(null==t)for(n in o)o[n]=Et(o[n],e.name,null);return this}for(;++i<s;)if((n=(e=a[i]).type)&&(n=Ct(o[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new _t(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,o=new Array(n),a=0;a<n;++a)o[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=0,n=(r=this._[e]).length;a<n;++a)r[a].value.apply(t,o)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,a=r.length;o<a;++o)r[o].value.apply(t,n)}};var kt="http://www.w3.org/1999/xhtml",Ot={svg:"http://www.w3.org/2000/svg",xhtml:kt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function St(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Ot.hasOwnProperty(t)?{space:Ot[t],local:e}:e}function Lt(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===kt&&t.documentElement.namespaceURI===kt?t.createElement(e):t.createElementNS(n,e)}}function zt(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Nt(e){var t=St(e);return(t.local?zt:Lt)(t)}function Rt(){}function At(e){return null==e?Rt:function(){return this.querySelector(e)}}function Tt(){return[]}function Mt(e){return null==e?Tt:function(){return this.querySelectorAll(e)}}function $t(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t);var t}}function jt(e){return function(){return this.matches(e)}}function It(e){return function(t){return t.matches(e)}}var Dt=Array.prototype.find;function Bt(){return this.firstElementChild}var Pt=Array.prototype.filter;function qt(){return Array.from(this.children)}function Ft(e){return new Array(e.length)}function Ut(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Vt(e,t,n,r,o,a){for(var i,s=0,l=t.length,c=a.length;s<c;++s)(i=t[s])?(i.__data__=a[s],r[s]=i):n[s]=new Ut(e,a[s]);for(;s<l;++s)(i=t[s])&&(o[s]=i)}function Ht(e,t,n,r,o,a,i){var s,l,c,u=new Map,h=t.length,d=a.length,p=new Array(h);for(s=0;s<h;++s)(l=t[s])&&(p[s]=c=i.call(l,l.__data__,s,t)+"",u.has(c)?o[s]=l:u.set(c,l));for(s=0;s<d;++s)c=i.call(e,a[s],s,a)+"",(l=u.get(c))?(r[s]=l,l.__data__=a[s],u.delete(c)):n[s]=new Ut(e,a[s]);for(s=0;s<h;++s)(l=t[s])&&u.get(p[s])===l&&(o[s]=l)}function Kt(e){return e.__data__}function Zt(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function Wt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Gt(e){return function(){this.removeAttribute(e)}}function Xt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Yt(e,t){return function(){this.setAttribute(e,t)}}function Jt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Qt(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function en(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function tn(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function nn(e){return function(){this.style.removeProperty(e)}}function rn(e,t,n){return function(){this.style.setProperty(e,t,n)}}function on(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function an(e,t){return e.style.getPropertyValue(t)||tn(e).getComputedStyle(e,null).getPropertyValue(t)}function sn(e){return function(){delete this[e]}}function ln(e,t){return function(){this[e]=t}}function cn(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function un(e){return e.trim().split(/^|\s+/)}function hn(e){return e.classList||new dn(e)}function dn(e){this._node=e,this._names=un(e.getAttribute("class")||"")}function pn(e,t){for(var n=hn(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function fn(e,t){for(var n=hn(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function gn(e){return function(){pn(this,e)}}function mn(e){return function(){fn(this,e)}}function bn(e,t){return function(){(t.apply(this,arguments)?pn:fn)(this,e)}}function yn(){this.textContent=""}function vn(e){return function(){this.textContent=e}}function xn(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function wn(){this.innerHTML=""}function _n(e){return function(){this.innerHTML=e}}function Cn(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function En(){this.nextSibling&&this.parentNode.appendChild(this)}function kn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function On(){return null}function Sn(){var e=this.parentNode;e&&e.removeChild(this)}function Ln(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function zn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Nn(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,a=t.length;r<a;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function Rn(e,t,n){return function(){var r,o=this.__on,a=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(o)for(var i=0,s=o.length;i<s;++i)if((r=o[i]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),void(r.value=t);this.addEventListener(e.type,a,n),r={type:e.type,name:e.name,value:t,listener:a,options:n},o?o.push(r):this.__on=[r]}}function An(e,t,n){var r=tn(e),o=r.CustomEvent;"function"==typeof o?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function Tn(e,t){return function(){return An(this,e,t)}}function Mn(e,t){return function(){return An(this,e,t.apply(this,arguments))}}Ut.prototype={constructor:Ut,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},dn.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var $n=[null];function jn(e,t){this._groups=e,this._parents=t}function In(){return new jn([[document.documentElement]],$n)}function Dn(e){return"string"==typeof e?new jn([[document.querySelector(e)]],[document.documentElement]):new jn([[e]],$n)}function Bn(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}jn.prototype=In.prototype={constructor:jn,select:function(e){"function"!=typeof e&&(e=At(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var a,i,s=t[o],l=s.length,c=r[o]=new Array(l),u=0;u<l;++u)(a=s[u])&&(i=e.call(a,a.__data__,u,s))&&("__data__"in a&&(i.__data__=a.__data__),c[u]=i);return new jn(r,this._parents)},selectAll:function(e){e="function"==typeof e?$t(e):Mt(e);for(var t=this._groups,n=t.length,r=[],o=[],a=0;a<n;++a)for(var i,s=t[a],l=s.length,c=0;c<l;++c)(i=s[c])&&(r.push(e.call(i,i.__data__,c,s)),o.push(i));return new jn(r,o)},selectChild:function(e){return this.select(null==e?Bt:function(e){return function(){return Dt.call(this.children,e)}}("function"==typeof e?e:It(e)))},selectChildren:function(e){return this.selectAll(null==e?qt:function(e){return function(){return Pt.call(this.children,e)}}("function"==typeof e?e:It(e)))},filter:function(e){"function"!=typeof e&&(e=jt(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var a,i=t[o],s=i.length,l=r[o]=[],c=0;c<s;++c)(a=i[c])&&e.call(a,a.__data__,c,i)&&l.push(a);return new jn(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,Kt);var n,r=t?Ht:Vt,o=this._parents,a=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var i=a.length,s=new Array(i),l=new Array(i),c=new Array(i),u=0;u<i;++u){var h=o[u],d=a[u],p=d.length,f=Zt(e.call(h,h&&h.__data__,u,o)),g=f.length,m=l[u]=new Array(g),b=s[u]=new Array(g);r(h,d,m,b,c[u]=new Array(p),f,t);for(var y,v,x=0,w=0;x<g;++x)if(y=m[x]){for(x>=w&&(w=x+1);!(v=b[w])&&++w<g;);y._next=v||null}}return(s=new jn(s,o))._enter=l,s._exit=c,s},enter:function(){return new jn(this._enter||this._groups.map(Ft),this._parents)},exit:function(){return new jn(this._exit||this._groups.map(Ft),this._parents)},join:function(e,t,n){var r=this.enter(),o=this,a=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(o=t(o))&&(o=o.selection()),null==n?a.remove():n(a),r&&o?r.merge(o).order():o},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,a=r.length,i=Math.min(o,a),s=new Array(o),l=0;l<i;++l)for(var c,u=n[l],h=r[l],d=u.length,p=s[l]=new Array(d),f=0;f<d;++f)(c=u[f]||h[f])&&(p[f]=c);for(;l<o;++l)s[l]=n[l];return new jn(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,o=e[t],a=o.length-1,i=o[a];--a>=0;)(r=o[a])&&(i&&4^r.compareDocumentPosition(i)&&i.parentNode.insertBefore(r,i),i=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Wt);for(var n=this._groups,r=n.length,o=new Array(r),a=0;a<r;++a){for(var i,s=n[a],l=s.length,c=o[a]=new Array(l),u=0;u<l;++u)(i=s[u])&&(c[u]=i);c.sort(t)}return new jn(o,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,a=r.length;o<a;++o){var i=r[o];if(i)return i}return null},size:function(){let e=0;for(const t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o,a=t[n],i=0,s=a.length;i<s;++i)(o=a[i])&&e.call(o,o.__data__,i,a);return this},attr:function(e,t){var n=St(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?Xt:Gt:"function"==typeof t?n.local?en:Qt:n.local?Jt:Yt)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?nn:"function"==typeof t?on:rn)(e,t,null==n?"":n)):an(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?sn:"function"==typeof t?cn:ln)(e,t)):this.node()[e]},classed:function(e,t){var n=un(e+"");if(arguments.length<2){for(var r=hn(this.node()),o=-1,a=n.length;++o<a;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"==typeof t?bn:t?gn:mn)(n,t))},text:function(e){return arguments.length?this.each(null==e?yn:("function"==typeof e?xn:vn)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?wn:("function"==typeof e?Cn:_n)(e)):this.node().innerHTML},raise:function(){return this.each(En)},lower:function(){return this.each(kn)},append:function(e){var t="function"==typeof e?e:Nt(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:Nt(e),r=null==t?On:"function"==typeof t?t:At(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(Sn)},clone:function(e){return this.select(e?zn:Ln)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,o,a=function(e){return e.trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}(e+""),i=a.length;if(!(arguments.length<2)){for(s=t?Rn:Nn,r=0;r<i;++r)this.each(s(a[r],t,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];r<i;++r)if((o=a[r]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?Mn:Tn)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,o=e[t],a=0,i=o.length;a<i;++a)(r=o[a])&&(yield r)}};const Pn={capture:!0,passive:!1};function qn(e){e.preventDefault(),e.stopImmediatePropagation()}function Fn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Un(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Vn(){}var Hn=.7,Kn=1/Hn,Zn="\\s*([+-]?\\d+)\\s*",Wn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Xn=/^#([0-9a-f]{3,8})$/,Yn=new RegExp(`^rgb\\(${Zn},${Zn},${Zn}\\)$`),Jn=new RegExp(`^rgb\\(${Gn},${Gn},${Gn}\\)$`),Qn=new RegExp(`^rgba\\(${Zn},${Zn},${Zn},${Wn}\\)$`),er=new RegExp(`^rgba\\(${Gn},${Gn},${Gn},${Wn}\\)$`),tr=new RegExp(`^hsl\\(${Wn},${Gn},${Gn}\\)$`),nr=new RegExp(`^hsla\\(${Wn},${Gn},${Gn},${Wn}\\)$`),rr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function or(){return this.rgb().formatHex()}function ar(){return this.rgb().formatRgb()}function ir(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Xn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?sr(t):3===n?new ur(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?lr(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?lr(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Yn.exec(e))?new ur(t[1],t[2],t[3],1):(t=Jn.exec(e))?new ur(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Qn.exec(e))?lr(t[1],t[2],t[3],t[4]):(t=er.exec(e))?lr(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=tr.exec(e))?mr(t[1],t[2]/100,t[3]/100,1):(t=nr.exec(e))?mr(t[1],t[2]/100,t[3]/100,t[4]):rr.hasOwnProperty(e)?sr(rr[e]):"transparent"===e?new ur(NaN,NaN,NaN,0):null}function sr(e){return new ur(e>>16&255,e>>8&255,255&e,1)}function lr(e,t,n,r){return r<=0&&(e=t=n=NaN),new ur(e,t,n,r)}function cr(e,t,n,r){return 1===arguments.length?((o=e)instanceof Vn||(o=ir(o)),o?new ur((o=o.rgb()).r,o.g,o.b,o.opacity):new ur):new ur(e,t,n,null==r?1:r);var o}function ur(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function hr(){return`#${gr(this.r)}${gr(this.g)}${gr(this.b)}`}function dr(){const e=pr(this.opacity);return`${1===e?"rgb(":"rgba("}${fr(this.r)}, ${fr(this.g)}, ${fr(this.b)}${1===e?")":`, ${e})`}`}function pr(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function fr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function gr(e){return((e=fr(e))<16?"0":"")+e.toString(16)}function mr(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new yr(e,t,n,r)}function br(e){if(e instanceof yr)return new yr(e.h,e.s,e.l,e.opacity);if(e instanceof Vn||(e=ir(e)),!e)return new yr;if(e instanceof yr)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,s=a-o,l=(a+o)/2;return s?(i=t===a?(n-r)/s+6*(n<r):n===a?(r-t)/s+2:(t-n)/s+4,s/=l<.5?a+o:2-a-o,i*=60):s=l>0&&l<1?0:i,new yr(i,s,l,e.opacity)}function yr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function vr(e){return(e=(e||0)%360)<0?e+360:e}function xr(e){return Math.max(0,Math.min(1,e||0))}function wr(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Fn(Vn,ir,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:or,formatHex:or,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return br(this).formatHsl()},formatRgb:ar,toString:ar}),Fn(ur,cr,Un(Vn,{brighter(e){return e=null==e?Kn:Math.pow(Kn,e),new ur(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Hn:Math.pow(Hn,e),new ur(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ur(fr(this.r),fr(this.g),fr(this.b),pr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:hr,formatHex:hr,formatHex8:function(){return`#${gr(this.r)}${gr(this.g)}${gr(this.b)}${gr(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:dr,toString:dr})),Fn(yr,function(e,t,n,r){return 1===arguments.length?br(e):new yr(e,t,n,null==r?1:r)},Un(Vn,{brighter(e){return e=null==e?Kn:Math.pow(Kn,e),new yr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Hn:Math.pow(Hn,e),new yr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new ur(wr(e>=240?e-240:e+120,o,r),wr(e,o,r),wr(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new yr(vr(this.h),xr(this.s),xr(this.l),pr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=pr(this.opacity);return`${1===e?"hsl(":"hsla("}${vr(this.h)}, ${100*xr(this.s)}%, ${100*xr(this.l)}%${1===e?")":`, ${e})`}`}}));var _r=e=>()=>e;function Cr(e){return 1===(e=+e)?Er:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):_r(isNaN(t)?n:t)}}function Er(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):_r(isNaN(e)?t:e)}var kr=function e(t){var n=Cr(t);function r(e,t){var r=n((e=cr(e)).r,(t=cr(t)).r),o=n(e.g,t.g),a=n(e.b,t.b),i=Er(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return r.gamma=e,r}(1);function Or(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Sr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Lr=new RegExp(Sr.source,"g");function zr(e,t){var n,r,o,a=Sr.lastIndex=Lr.lastIndex=0,i=-1,s=[],l=[];for(e+="",t+="";(n=Sr.exec(e))&&(r=Lr.exec(t));)(o=r.index)>a&&(o=t.slice(a,o),s[i]?s[i]+=o:s[++i]=o),(n=n[0])===(r=r[0])?s[i]?s[i]+=r:s[++i]=r:(s[++i]=null,l.push({i:i,x:Or(n,r)})),a=Lr.lastIndex;return a<t.length&&(o=t.slice(a),s[i]?s[i]+=o:s[++i]=o),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}var Nr,Rr=180/Math.PI,Ar={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Tr(e,t,n,r,o,a){var i,s,l;return(i=Math.sqrt(e*e+t*t))&&(e/=i,t/=i),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,i=-i),{translateX:o,translateY:a,rotate:Math.atan2(t,e)*Rr,skewX:Math.atan(l)*Rr,scaleX:i,scaleY:s}}function Mr(e,t,n,r){function o(e){return e.length?e.pop()+" ":""}return function(a,i){var s=[],l=[];return a=e(a),i=e(i),function(e,r,o,a,i,s){if(e!==o||r!==a){var l=i.push("translate(",null,t,null,n);s.push({i:l-4,x:Or(e,o)},{i:l-2,x:Or(r,a)})}else(o||a)&&i.push("translate("+o+t+a+n)}(a.translateX,a.translateY,i.translateX,i.translateY,s,l),function(e,t,n,a){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(o(n)+"rotate(",null,r)-2,x:Or(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(a.rotate,i.rotate,s,l),function(e,t,n,a){e!==t?a.push({i:n.push(o(n)+"skewX(",null,r)-2,x:Or(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(a.skewX,i.skewX,s,l),function(e,t,n,r,a,i){if(e!==n||t!==r){var s=a.push(o(a)+"scale(",null,",",null,")");i.push({i:s-4,x:Or(e,n)},{i:s-2,x:Or(t,r)})}else 1===n&&1===r||a.push(o(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,i.scaleX,i.scaleY,s,l),a=i=null,function(e){for(var t,n=-1,r=l.length;++n<r;)s[(t=l[n]).i]=t.x(e);return s.join("")}}}var $r=Mr(function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Ar:Tr(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),jr=Mr(function(e){return null==e?Ar:(Nr||(Nr=document.createElementNS("http://www.w3.org/2000/svg","g")),Nr.setAttribute("transform",e),(e=Nr.transform.baseVal.consolidate())?Tr((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Ar)},", ",")",")");function Ir(e){return((e=Math.exp(e))+1/e)/2}var Dr,Br,Pr=function e(t,n,r){function o(e,o){var a,i,s=e[0],l=e[1],c=e[2],u=o[0],h=o[1],d=o[2],p=u-s,f=h-l,g=p*p+f*f;if(g<1e-12)i=Math.log(d/c)/t,a=function(e){return[s+e*p,l+e*f,c*Math.exp(t*e*i)]};else{var m=Math.sqrt(g),b=(d*d-c*c+r*g)/(2*c*n*m),y=(d*d-c*c-r*g)/(2*d*n*m),v=Math.log(Math.sqrt(b*b+1)-b),x=Math.log(Math.sqrt(y*y+1)-y);i=(x-v)/t,a=function(e){var r,o=e*i,a=Ir(v),u=c/(n*m)*(a*(r=t*o+v,((r=Math.exp(2*r))-1)/(r+1))-function(e){return((e=Math.exp(e))-1/e)/2}(v));return[s+u*p,l+u*f,c*a/Ir(t*o+v)]}}return a.duration=1e3*i*t/Math.SQRT2,a}return o.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},o}(Math.SQRT2,2,4),qr=0,Fr=0,Ur=0,Vr=0,Hr=0,Kr=0,Zr="object"==typeof performance&&performance.now?performance:Date,Wr="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Gr(){return Hr||(Wr(Xr),Hr=Zr.now()+Kr)}function Xr(){Hr=0}function Yr(){this._call=this._time=this._next=null}function Jr(e,t,n){var r=new Yr;return r.restart(e,t,n),r}function Qr(){Hr=(Vr=Zr.now())+Kr,qr=Fr=0;try{!function(){Gr(),++qr;for(var e,t=Dr;t;)(e=Hr-t._time)>=0&&t._call.call(void 0,e),t=t._next;--qr}()}finally{qr=0,function(){var e,t,n=Dr,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Dr=t);Br=e,to(r)}(),Hr=0}}function eo(){var e=Zr.now(),t=e-Vr;t>1e3&&(Kr-=t,Vr=e)}function to(e){qr||(Fr&&(Fr=clearTimeout(Fr)),e-Hr>24?(e<1/0&&(Fr=setTimeout(Qr,e-Zr.now()-Kr)),Ur&&(Ur=clearInterval(Ur))):(Ur||(Vr=Zr.now(),Ur=setInterval(eo,1e3)),qr=1,Wr(Qr)))}function no(e,t,n){var r=new Yr;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}Yr.prototype=Jr.prototype={constructor:Yr,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?Gr():+n)+(null==t?0:+t),this._next||Br===this||(Br?Br._next=this:Dr=this,Br=this),this._call=e,this._time=n,to()},stop:function(){this._call&&(this._call=null,this._time=1/0,to())}};var ro=wt("start","end","cancel","interrupt"),oo=[];function ao(e,t,n,r,o,a){var i=e.__transition;if(i){if(n in i)return}else e.__transition={};!function(e,t,n){var r,o=e.__transition;function a(e){n.state=1,n.timer.restart(i,n.delay,n.time),n.delay<=e&&i(e-n.delay)}function i(a){var c,u,h,d;if(1!==n.state)return l();for(c in o)if((d=o[c]).name===n.name){if(3===d.state)return no(i);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete o[c]):+c<t&&(d.state=6,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete o[c])}if(no(function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(h=n.tween.length),c=0,u=-1;c<h;++c)(d=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++u]=d);r.length=u+1}}function s(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=5,1),a=-1,i=r.length;++a<i;)r[a].call(e,o);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var r in n.state=6,n.timer.stop(),delete o[t],o)return;delete e.__transition}o[t]=n,n.timer=Jr(a,0,n.time)}(e,n,{name:t,index:r,group:o,on:ro,tween:oo,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function io(e,t){var n=lo(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function so(e,t){var n=lo(e,t);if(n.state>3)throw new Error("too late; already running");return n}function lo(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function co(e,t){var n,r,o,a=e.__transition,i=!0;if(a){for(o in t=null==t?null:t+"",a)(n=a[o]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete a[o]):i=!1;i&&delete e.__transition}}function uo(e,t){var n,r;return function(){var o=so(this,e),a=o.tween;if(a!==n)for(var i=0,s=(r=n=a).length;i<s;++i)if(r[i].name===t){(r=r.slice()).splice(i,1);break}o.tween=r}}function ho(e,t,n){var r,o;if("function"!=typeof n)throw new Error;return function(){var a=so(this,e),i=a.tween;if(i!==r){o=(r=i).slice();for(var s={name:t,value:n},l=0,c=o.length;l<c;++l)if(o[l].name===t){o[l]=s;break}l===c&&o.push(s)}a.tween=o}}function po(e,t,n){var r=e._id;return e.each(function(){var e=so(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return lo(e,r).value[t]}}function fo(e,t){var n;return("number"==typeof t?Or:t instanceof ir?kr:(n=ir(t))?(t=n,kr):zr)(e,t)}function go(e){return function(){this.removeAttribute(e)}}function mo(e){return function(){this.removeAttributeNS(e.space,e.local)}}function bo(e,t,n){var r,o,a=n+"";return function(){var i=this.getAttribute(e);return i===a?null:i===r?o:o=t(r=i,n)}}function yo(e,t,n){var r,o,a=n+"";return function(){var i=this.getAttributeNS(e.space,e.local);return i===a?null:i===r?o:o=t(r=i,n)}}function vo(e,t,n){var r,o,a;return function(){var i,s,l=n(this);if(null!=l)return(i=this.getAttribute(e))===(s=l+"")?null:i===r&&s===o?a:(o=s,a=t(r=i,l));this.removeAttribute(e)}}function xo(e,t,n){var r,o,a;return function(){var i,s,l=n(this);if(null!=l)return(i=this.getAttributeNS(e.space,e.local))===(s=l+"")?null:i===r&&s===o?a:(o=s,a=t(r=i,l));this.removeAttributeNS(e.space,e.local)}}function wo(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,o)),n}return o._value=t,o}function _o(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,o)),n}return o._value=t,o}function Co(e,t){return function(){io(this,e).delay=+t.apply(this,arguments)}}function Eo(e,t){return t=+t,function(){io(this,e).delay=t}}function ko(e,t){return function(){so(this,e).duration=+t.apply(this,arguments)}}function Oo(e,t){return t=+t,function(){so(this,e).duration=t}}var So=In.prototype.constructor;function Lo(e){return function(){this.style.removeProperty(e)}}var zo=0;function No(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Ro(){return++zo}var Ao=In.prototype;No.prototype={constructor:No,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=At(e));for(var r=this._groups,o=r.length,a=new Array(o),i=0;i<o;++i)for(var s,l,c=r[i],u=c.length,h=a[i]=new Array(u),d=0;d<u;++d)(s=c[d])&&(l=e.call(s,s.__data__,d,c))&&("__data__"in s&&(l.__data__=s.__data__),h[d]=l,ao(h[d],t,n,d,h,lo(s,n)));return new No(a,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Mt(e));for(var r=this._groups,o=r.length,a=[],i=[],s=0;s<o;++s)for(var l,c=r[s],u=c.length,h=0;h<u;++h)if(l=c[h]){for(var d,p=e.call(l,l.__data__,h,c),f=lo(l,n),g=0,m=p.length;g<m;++g)(d=p[g])&&ao(d,t,n,g,p,f);a.push(p),i.push(l)}return new No(a,i,t,n)},selectChild:Ao.selectChild,selectChildren:Ao.selectChildren,filter:function(e){"function"!=typeof e&&(e=jt(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var a,i=t[o],s=i.length,l=r[o]=[],c=0;c<s;++c)(a=i[c])&&e.call(a,a.__data__,c,i)&&l.push(a);return new No(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,o=n.length,a=Math.min(r,o),i=new Array(r),s=0;s<a;++s)for(var l,c=t[s],u=n[s],h=c.length,d=i[s]=new Array(h),p=0;p<h;++p)(l=c[p]||u[p])&&(d[p]=l);for(;s<r;++s)i[s]=t[s];return new No(i,this._parents,this._name,this._id)},selection:function(){return new So(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=Ro(),r=this._groups,o=r.length,a=0;a<o;++a)for(var i,s=r[a],l=s.length,c=0;c<l;++c)if(i=s[c]){var u=lo(i,t);ao(i,e,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new No(r,this._parents,e,n)},call:Ao.call,nodes:Ao.nodes,node:Ao.node,size:Ao.size,empty:Ao.empty,each:Ao.each,on:function(e,t){var n=this._id;return arguments.length<2?lo(this.node(),n).on.on(e):this.each(function(e,t,n){var r,o,a=function(e){return(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})}(t)?io:so;return function(){var i=a(this,e),s=i.on;s!==r&&(o=(r=s).copy()).on(t,n),i.on=o}}(n,e,t))},attr:function(e,t){var n=St(e),r="transform"===n?jr:fo;return this.attrTween(e,"function"==typeof t?(n.local?xo:vo)(n,r,po(this,"attr."+e,t)):null==t?(n.local?mo:go)(n):(n.local?yo:bo)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=St(e);return this.tween(n,(r.local?wo:_o)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?$r:fo;return null==t?this.styleTween(e,function(e,t){var n,r,o;return function(){var a=an(this,e),i=(this.style.removeProperty(e),an(this,e));return a===i?null:a===n&&i===r?o:o=t(n=a,r=i)}}(e,r)).on("end.style."+e,Lo(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,o,a;return function(){var i=an(this,e),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(e),l=s=an(this,e)),i===l?null:i===r&&l===o?a:(o=l,a=t(r=i,s))}}(e,r,po(this,"style."+e,t))).each(function(e,t){var n,r,o,a,i="style."+t,s="end."+i;return function(){var l=so(this,e),c=l.on,u=null==l.value[i]?a||(a=Lo(t)):void 0;c===n&&o===u||(r=(n=c).copy()).on(s,o=u),l.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,o,a=n+"";return function(){var i=an(this,e);return i===a?null:i===r?o:o=t(r=i,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,o;function a(){var a=t.apply(this,arguments);return a!==o&&(r=(o=a)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,a,n)),r}return a._value=t,a}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(po(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,o=lo(this.node(),n).tween,a=0,i=o.length;a<i;++a)if((r=o[a]).name===e)return r.value;return null}return this.each((null==t?uo:ho)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Co:Eo)(t,e)):lo(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?ko:Oo)(t,e)):lo(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error;return function(){so(this,e).ease=t}}(t,e)):lo(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw new Error;so(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,o=n.size();return new Promise(function(a,i){var s={value:i},l={value:function(){0===--o&&a()}};n.each(function(){var n=so(this,r),o=n.on;o!==e&&((t=(e=o).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t}),0===o&&a()})},[Symbol.iterator]:Ao[Symbol.iterator]};var To={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function Mo(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function $o(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function jo(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Do)):void 0===t&&(t=Io);for(var n,r,o,a,i,s=new qo(e),l=[s];n=l.pop();)if((o=t(n.data))&&(i=(o=Array.from(o)).length))for(n.children=o,a=i-1;a>=0;--a)l.push(r=o[a]=new qo(o[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Po)}function Io(e){return e.children}function Do(e){return Array.isArray(e)?e[1]:null}function Bo(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Po(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function qo(e){this.data=e,this.depth=this.height=0,this.parent=null}function Fo(e,t){return e.parent===t.parent?1:2}function Uo(e){var t=e.children;return t?t[0]:e.t}function Vo(e){var t=e.children;return t?t[t.length-1]:e.t}function Ho(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Ko(e,t,n){return e.a.parent===t.parent?e.a:n}function Zo(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function Wo(){var e=Fo,t=1,n=1,r=null;function o(o){var l=function(e){for(var t,n,r,o,a,i=new Zo(e,0),s=[i];t=s.pop();)if(r=t._.children)for(t.children=new Array(a=r.length),o=a-1;o>=0;--o)s.push(n=t.children[o]=new Zo(r[o],o)),n.parent=t;return(i.parent=new Zo(null,0)).children=[i],i}(o);if(l.eachAfter(a),l.parent.m=-l.z,l.eachBefore(i),r)o.eachBefore(s);else{var c=o,u=o,h=o;o.eachBefore(function(e){e.x<c.x&&(c=e),e.x>u.x&&(u=e),e.depth>h.depth&&(h=e)});var d=c===u?1:e(c,u)/2,p=d-c.x,f=t/(u.x+d+p),g=n/(h.depth||1);o.eachBefore(function(e){e.x=(e.x+p)*f,e.y=e.depth*g})}return o}function a(t){var n=t.children,r=t.parent.children,o=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,o=e.children,a=o.length;--a>=0;)(t=o[a]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var a=(n[0].z+n[n.length-1].z)/2;o?(t.z=o.z+e(t._,o._),t.m=t.z-a):t.z=a}else o&&(t.z=o.z+e(t._,o._));t.parent.A=function(t,n,r){if(n){for(var o,a=t,i=t,s=n,l=a.parent.children[0],c=a.m,u=i.m,h=s.m,d=l.m;s=Vo(s),a=Uo(a),s&&a;)l=Uo(l),(i=Vo(i)).a=t,(o=s.z+h-a.z-c+e(s._,a._))>0&&(Ho(Ko(s,t,r),t,o),c+=o,u+=o),h+=s.m,c+=a.m,d+=l.m,u+=i.m;s&&!Vo(i)&&(i.t=s,i.m+=h-u),a&&!Uo(l)&&(l.t=a,l.m+=c-d,r=t)}return r}(t,o,t.parent.A||r[0])}function i(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],o):r?null:[t,n]},o.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],o):r?[t,n]:null},o}In.prototype.interrupt=function(e){return this.each(function(){co(this,e)})},In.prototype.transition=function(e){var t,n;e instanceof No?(t=e._id,e=e._name):(t=Ro(),(n=To).time=Gr(),e=null==e?null:e+"");for(var r=this._groups,o=r.length,a=0;a<o;++a)for(var i,s=r[a],l=s.length,c=0;c<l;++c)(i=s[c])&&ao(i,e,t,c,s,n||Mo(i,t));return new No(r,this._parents,e,t)},qo.prototype=jo.prototype={constructor:qo,count:function(){return this.eachAfter($o)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,a=this,i=[a],s=[],l=-1;a=i.pop();)if(s.push(a),n=a.children)for(r=0,o=n.length;r<o;++r)i.push(n[r]);for(;a=s.pop();)e.call(t,a,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,a=[o],i=-1;o=a.pop();)if(e.call(t,o,++i,this),n=o.children)for(r=n.length-1;r>=0;--r)a.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;e=n.pop(),t=r.pop();for(;e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return jo(this).eachBefore(Bo)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)a.push(t[n])}while(a.length)}},Zo.prototype=Object.create(qo.prototype);var Go=e=>()=>e;function Xo(e,{sourceEvent:t,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function Yo(e,t,n){this.k=e,this.x=t,this.y=n}Yo.prototype={constructor:Yo,scale:function(e){return 1===e?this:new Yo(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new Yo(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Jo=new Yo(1,0,0);function Qo(e){e.stopImmediatePropagation()}function ea(e){e.preventDefault(),e.stopImmediatePropagation()}function ta(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function na(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function ra(){return this.__zoom||Jo}function oa(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function aa(){return navigator.maxTouchPoints||"ontouchstart"in this}function ia(e,t,n){var r=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],i=e.invertY(t[1][1])-n[1][1];return e.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),i>a?(a+i)/2:Math.min(0,a)||Math.max(0,i))}function sa(){var e,t,n,r=ta,o=na,a=ia,i=oa,s=aa,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],u=250,h=Pr,d=wt("start","zoom","end"),p=0,f=10;function g(e){e.property("__zoom",ra).on("wheel.zoom",_,{passive:!1}).on("mousedown.zoom",C).on("dblclick.zoom",E).filter(s).on("touchstart.zoom",k).on("touchmove.zoom",O).on("touchend.zoom touchcancel.zoom",S).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new Yo(t,e.x,e.y)}function b(e,t,n){var r=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k;return r===e.x&&o===e.y?e:new Yo(e.k,r,o)}function y(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function v(e,t,n,r){e.on("start.zoom",function(){x(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){x(this,arguments).event(r).end()}).tween("zoom",function(){var e=this,a=arguments,i=x(e,a).event(r),s=o.apply(e,a),l=null==n?y(s):"function"==typeof n?n.apply(e,a):n,c=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),u=e.__zoom,d="function"==typeof t?t.apply(e,a):t,p=h(u.invert(l).concat(c/u.k),d.invert(l).concat(c/d.k));return function(e){if(1===e)e=d;else{var t=p(e),n=c/t[2];e=new Yo(n,l[0]-t[0]*n,l[1]-t[1]*n)}i.zoom(null,e)}})}function x(e,t,n){return!n&&e.__zooming||new w(e,t)}function w(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function _(e,...t){if(r.apply(this,arguments)){var n=x(this,t).event(e),o=this.__zoom,s=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,i.apply(this,arguments)))),u=Bn(e);if(n.wheel)n.mouse[0][0]===u[0]&&n.mouse[0][1]===u[1]||(n.mouse[1]=o.invert(n.mouse[0]=u)),clearTimeout(n.wheel);else{if(o.k===s)return;n.mouse=[u,o.invert(u)],co(this),n.start()}ea(e),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",a(b(m(o,s),n.mouse[0],n.mouse[1]),n.extent,c))}}function C(e,...t){if(!n&&r.apply(this,arguments)){var o=e.currentTarget,i=x(this,t,!0).event(e),s=Dn(e.view).on("mousemove.zoom",function(e){if(ea(e),!i.moved){var t=e.clientX-u,n=e.clientY-h;i.moved=t*t+n*n>p}i.event(e).zoom("mouse",a(b(i.that.__zoom,i.mouse[0]=Bn(e,o),i.mouse[1]),i.extent,c))},!0).on("mouseup.zoom",function(e){s.on("mousemove.zoom mouseup.zoom",null),function(e,t){var n=e.document.documentElement,r=Dn(e).on("dragstart.drag",null);t&&(r.on("click.drag",qn,Pn),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(e.view,i.moved),ea(e),i.event(e).end()},!0),l=Bn(e,o),u=e.clientX,h=e.clientY;!function(e){var t=e.document.documentElement,n=Dn(e).on("dragstart.drag",qn,Pn);"onselectstart"in t?n.on("selectstart.drag",qn,Pn):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(e.view),Qo(e),i.mouse=[l,this.__zoom.invert(l)],co(this),i.start()}}function E(e,...t){if(r.apply(this,arguments)){var n=this.__zoom,i=Bn(e.changedTouches?e.changedTouches[0]:e,this),s=n.invert(i),l=n.k*(e.shiftKey?.5:2),h=a(b(m(n,l),i,s),o.apply(this,t),c);ea(e),u>0?Dn(this).transition().duration(u).call(v,h,i,e):Dn(this).call(g.transform,h,i,e)}}function k(n,...o){if(r.apply(this,arguments)){var a,i,s,l,c=n.touches,u=c.length,h=x(this,o,n.changedTouches.length===u).event(n);for(Qo(n),i=0;i<u;++i)l=[l=Bn(s=c[i],this),this.__zoom.invert(l),s.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,a=!0,h.taps=1+!!e);e&&(e=clearTimeout(e)),a&&(h.taps<2&&(t=l[0],e=setTimeout(function(){e=null},500)),co(this),h.start())}}function O(e,...t){if(this.__zooming){var n,r,o,i,s=x(this,t).event(e),l=e.changedTouches,u=l.length;for(ea(e),n=0;n<u;++n)o=Bn(r=l[n],this),s.touch0&&s.touch0[2]===r.identifier?s.touch0[0]=o:s.touch1&&s.touch1[2]===r.identifier&&(s.touch1[0]=o);if(r=s.that.__zoom,s.touch1){var h=s.touch0[0],d=s.touch0[1],p=s.touch1[0],f=s.touch1[1],g=(g=p[0]-h[0])*g+(g=p[1]-h[1])*g,y=(y=f[0]-d[0])*y+(y=f[1]-d[1])*y;r=m(r,Math.sqrt(g/y)),o=[(h[0]+p[0])/2,(h[1]+p[1])/2],i=[(d[0]+f[0])/2,(d[1]+f[1])/2]}else{if(!s.touch0)return;o=s.touch0[0],i=s.touch0[1]}s.zoom("touch",a(b(r,o,i),s.extent,c))}}function S(e,...r){if(this.__zooming){var o,a,i=x(this,r).event(e),s=e.changedTouches,l=s.length;for(Qo(e),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),o=0;o<l;++o)a=s[o],i.touch0&&i.touch0[2]===a.identifier?delete i.touch0:i.touch1&&i.touch1[2]===a.identifier&&delete i.touch1;if(i.touch1&&!i.touch0&&(i.touch0=i.touch1,delete i.touch1),i.touch0)i.touch0[1]=this.__zoom.invert(i.touch0[0]);else if(i.end(),2===i.taps&&(a=Bn(a,this),Math.hypot(t[0]-a[0],t[1]-a[1])<f)){var c=Dn(this).on("dblclick.zoom");c&&c.apply(this,arguments)}}}return g.transform=function(e,t,n,r){var o=e.selection?e.selection():e;o.property("__zoom",ra),e!==o?v(e,t,n,r):o.interrupt().each(function(){x(this,arguments).event(r).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},g.scaleBy=function(e,t,n,r){g.scaleTo(e,function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)},n,r)},g.scaleTo=function(e,t,n,r){g.transform(e,function(){var e=o.apply(this,arguments),r=this.__zoom,i=null==n?y(e):"function"==typeof n?n.apply(this,arguments):n,s=r.invert(i),l="function"==typeof t?t.apply(this,arguments):t;return a(b(m(r,l),i,s),e,c)},n,r)},g.translateBy=function(e,t,n,r){g.transform(e,function(){return a(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),o.apply(this,arguments),c)},null,r)},g.translateTo=function(e,t,n,r,i){g.transform(e,function(){var e=o.apply(this,arguments),i=this.__zoom,s=null==r?y(e):"function"==typeof r?r.apply(this,arguments):r;return a(Jo.translate(s[0],s[1]).scale(i.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,c)},r,i)},w.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1===++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0===--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=Dn(this.that).datum();d.call(e,this.that,new Xo(e,{sourceEvent:this.sourceEvent,target:g,transform:this.that.__zoom,dispatch:d}),t)}},g.wheelDelta=function(e){return arguments.length?(i="function"==typeof e?e:Go(+e),g):i},g.filter=function(e){return arguments.length?(r="function"==typeof e?e:Go(!!e),g):r},g.touchable=function(e){return arguments.length?(s="function"==typeof e?e:Go(!!e),g):s},g.extent=function(e){return arguments.length?(o="function"==typeof e?e:Go([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),g):o},g.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],g):[l[0],l[1]]},g.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],g):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},g.constrain=function(e){return arguments.length?(a=e,g):a},g.duration=function(e){return arguments.length?(u=+e,g):u},g.interpolate=function(e){return arguments.length?(h=e,g):h},g.on=function(){var e=d.on.apply(d,arguments);return e===d?g:e},g.clickDistance=function(e){return arguments.length?(p=(e=+e)*e,g):Math.sqrt(p)},g.tapDistance=function(e){return arguments.length?(f=+e,g):f},g}Yo.prototype;const la=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,ca=5e6,ua=5e5;const ha={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const n=e.indexOf("=");let r,o="",a=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),a=!0),t.push(function(e,t,n){return{key:da(e),value:da(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:n}}(r,o,a))}),t}};function da(e){try{return decodeURIComponent(e)}catch{return e}}function pa(e){if(!(this instanceof pa))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>ha.fromSearchString(t.search)}})}function fa(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/shouldNotDecodePlus/gi,"%2B")}pa.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},pa.encodeSearchParams=function(e){let t,n="";for(let r=0;r<e.length;r++)t=e[r],n+=0===r?"?":"&",n+=fa(t.key),t.value?n+=`=${fa(t.value)}`:n+=t.useEqualSign?"=":"";return n};var ga=class{_hasNext(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}constructor(e){this._input=e,this._pushback=null,this._temp=null,this._index=0,this._mark=0}pushback(e){this._pushback=e}index(){return this._index}hasNext(){return null!=this._pushback||this._hasNext()}next(){if(null!=this._pushback){const e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}nextHex(){const e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}peek(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}mark(){this._temp=this._pushback,this._mark=this._index}reset(){this._pushback=this._temp,this._index=this._mark}remainder(){let e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}},ma=class{decode(e){let t="";const n=new ga(e);let r;for(;n.hasNext();)r=this.decodeCharacter(n),t+=null!=r?r:n.next();return t}decodeCharacter(e){return e.next()}};const ba=e=>e>=0&&e<=1114111,ya=e=>e.match(/[\s]/);var va=class extends ma{decodeCharacter(e){e.mark();const t=e.next();let n,r,o;if(null==t||"\\"!==t)return e.reset(),null;const a=e.next();if(null==a)return e.reset(),null;switch(a){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(a,16))return a;for(n=a,r=0;r<5&&(o=e.next(),null!=o&&!ya(o));r++){if("NaN"===parseInt(o,16)){e.pushback(o);break}n+=o}const i=parseInt(n,16);return ba(i)?String.fromCharCode(i):"�"}},xa=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}},wa=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,n,r){let o,a;if(t.length===n)return a=this._value,this.setValue(r),a;const i=t.charAt(n);return this._nextMap?(o=this._nextMap[i],o||(o=new e,this._nextMap[i]=o)):(this._nextMap={},o=new e,this._nextMap[i]=o),o.put(t,n+1,r)}get(e,t){if(e.length<=t)return this._value;const n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return xa.newInstanceIfNeeded(e,this._value);const n=this.getNextNode(e.charAt(t));if(!n)return xa.newInstanceIfNeeded(e,t,this._value);const r=n.getLongestMatch(e,t+1);return r||xa.newInstanceIfNeeded(e,t,this._value)}},_a=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new wa);const n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}};const Ca=(()=>{const e=[],t=[],n=new _a;let r,o,a;for(r in e["""]="34",e["&"]="38",e["<"]="60",e[">"]="62",e[" "]="160",e["¡"]="161",e["¢"]="162",e["£"]="163",e["¤"]="164",e["¥"]="165",e["¦"]="166",e["§"]="167",e["¨"]="168",e["©"]="169",e["ª"]="170",e["«"]="171",e["¬"]="172",e["­"]="173",e["®"]="174",e["¯"]="175",e["°"]="176",e["±"]="177",e["²"]="178",e["³"]="179",e["´"]="180",e["µ"]="181",e["¶"]="182",e["·"]="183",e["¸"]="184",e["¹"]="185",e["º"]="186",e["»"]="187",e["¼"]="188",e["½"]="189",e["¾"]="190",e["¿"]="191",e["À"]="192",e["Á"]="193",e["Â"]="194",e["Ã"]="195",e["Ä"]="196",e["Å"]="197",e["Æ"]="198",e["Ç"]="199",e["È"]="200",e["É"]="201",e["Ê"]="202",e["Ë"]="203",e["Ì"]="204",e["Í"]="205",e["Î"]="206",e["Ï"]="207",e["Ð"]="208",e["Ñ"]="209",e["Ò"]="210",e["Ó"]="211",e["Ô"]="212",e["Õ"]="213",e["Ö"]="214",e["×"]="215",e["Ø"]="216",e["Ù"]="217",e["Ú"]="218",e["Û"]="219",e["Ü"]="220",e["Ý"]="221",e["Þ"]="222",e["ß"]="223",e["à"]="224",e["á"]="225",e["â"]="226",e["ã"]="227",e["ä"]="228",e["å"]="229",e["æ"]="230",e["ç"]="231",e["è"]="232",e["é"]="233",e["ê"]="234",e["ë"]="235",e["ì"]="236",e["í"]="237",e["î"]="238",e["ï"]="239",e["ð"]="240",e["ñ"]="241",e["ò"]="242",e["ó"]="243",e["ô"]="244",e["õ"]="245",e["ö"]="246",e["÷"]="247",e["ø"]="248",e["ù"]="249",e["ú"]="250",e["û"]="251",e["ü"]="252",e["ý"]="253",e["þ"]="254",e["ÿ"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["¬in"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[r]&&e.hasOwnProperty(r)&&(t[e[r]]=r);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(a=t[o].toLowerCase().substr(1),n.put(a,String.fromCharCode(o)));return n})();var Ea=class extends ma{decodeCharacter(e){let t;e.mark();const n=e.next();if(null==n||"&"!==n)return e.reset(),null;const r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(t=this._getNumericEntity(e),null!=t)return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,n,r,o="";for(t=Math.min(e.remainder().length,Ca.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();const a=Ca.getLongestMatch(o);if(null==a)return null;for(e.reset(),e.next(),t=a.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),a.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,16);return!Number.isNaN(+r)&&ba(r)?String.fromCharCode(r):null}_parseNumber(e){let t,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,10);return!Number.isNaN(+r)&&ba(r)?String.fromCharCode(r):null}},ka=class extends ma{decodeCharacter(e){e.mark();const t=e.next();let n,r,o,a;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(n="",r=0;r<2;r++)o=e.nextHex(),null!=o&&(n+=o);return 2===n.length&&(a=parseInt(n,16),ba(a))?String.fromCharCode(a):(e.reset(),null)}};let Oa;"undefined"!=typeof document&&(Oa=document.createElement("div"));const Sa=Array.prototype.indexOf,La=[",",".","_"," "],za=[",",".","-","_"," "],Na={width:["%"],height:["%"]},Ra={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Aa={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":Ra.image,"background-color":Ra.color,"border-color":Ra.color,"border-image":Ra.image,color:Ra.color,icon:Ra.image,"list-style-image":Ra.image,"outline-color":Ra.color},Ta={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function Ma(e,t,n){let r;if(t){if(Sa)return Sa.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function $a(e){if(null==e)return"";let t="";const n=document.createTextNode(e);return Oa.appendChild(n),t=Oa.innerHTML,Oa.removeChild(n),t}function ja(e,t,n){let r,o,a,i,s,l,c,u,h;for(e=Da(e).toLowerCase(),t=Da(t),a=0;a<Ta.attr_name.length;a++)if(e.match(Ta.attr_name[a]))throw new Error(`Unsafe attribute name used: ${e}`);for(a=0;a<Ta.attr_val.length;a++)if(t.toLowerCase().match(Ta.attr_val[a]))throw new Error(`Unsafe attribute value used: ${t}`);if(r=Na[e],r||(r=za),o="",!n){for(i=0;i<e.length;i++){if(s=e.charAt(i),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)c=t.charAt(l),u=t.charCodeAt(l),!c.match(/[a-zA-Z0-9]/)&&Ma(c,r)<0?(h=u.toString(16),o+=`&#x${h};`):o+=c;return n||(o+='"'),o}function Ia(e,t,n){let r,o,a,i,s,l,c,u,h,d;if(e=Da(e).toLowerCase(),t=Da(t),Ma(e,Ta.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(r=0;r<Ta.css_val.length;r++)if(t.toLowerCase().indexOf(Ta.css_val[r])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=Aa[e],o||(o=Ra.default),a="",!n){for(i=0;i<e.length;i++){if(s=e.charAt(i),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");a+=s}a+=": "}for(l=0;l<t.length;l++)c=t.charAt(l),u=t.charCodeAt(l),!c.match(/[a-zA-Z0-9]/)&&Ma(c,o)<0?(h=u.toString(16),d="000000".substr(h.length),a+=`\\${d}${h}`):a+=c;return a}function Da(e,t){let n,r,o,a,i=!1;if(null===e)return null;n=e,r=e,o=0;const s=[new Ea,new ka,new va];for(;!i;){r=n;for(let e=0;e<s.length;e++)a=s[e].decode(n),a!==n&&(o++,n=a);r!==n||(i=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}const Ba=[];for(let e=0;e<255;e++)Ba[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);const Pa={html:e=>$a(e.unsafe),css(e){let t,n=[];const r=[],o={};let a="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=Ia(t,n[t],!0),a+=Ia(t,n[t],!0),o[t]=r[t]);return e.map?o:a},attr(e){let t=[];const n=[],r={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(n[e]=ja(e,t[e],!0),o+=ja(e,t[e],!0),r[e]=n[e]);return e.map?r:o}};function qa(e,t){throw new Error(t)}var Fa={canonicalize:Da,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,n;const r=arguments[0]||{};let o=1;const a=arguments.length;for(;o<a;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n=e[t],r===n)continue;void 0!==n&&(r[t]=n)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?Pa.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&qa(this,"Invalid parameter type"),Pa.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&qa(this,"Invalid parameter type"),Pa.attr(e)):void qa(this,"Invalid parameter type")},encodeForAttr:ja,encodeForAttr2:function(e){return ja("nonsens",e,!0)},encodeForCSS:Ia,encodeForHref:function(e){Da(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new pa(e),n=pa.encodeAuthorityAndPath(t.authorityAndPath),r=t.searchParams;e=n+pa.encodeSearchParams(r)+t.hash;const o=decodeURI(e).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let n,r,o,a,i,s;for(t||(t=La),s="",n=0;n<e.length;n++)o=e.charAt(n),a=e.charCodeAt(n),Ma(o,t)>=0||null==Ba[a]?s+=o:(r=a.toString(16),a<256?(i="00".substr(r.length),s+=`\\x${i}${r.toUpperCase()}`):(i="0000".substr(r.length),s+=`\\u${i}${r.toUpperCase()}`));return s},encodeForHTML:$a,encodeForURL:function(e,t){let n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=Da(t).toLowerCase():qa(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':"",n},isSafeDataURL:(e,t)=>{const{maxByteSizeSvg:n=ua,maxByteSizeImage:r=ca}=t??{},{mimeType:o,encoding:a,data:i}=(e=>{const[,t,n,r]=la.exec(e.trim())??[];return{encoding:n,data:r,mimeType:t?.toLocaleLowerCase()}})(e);if(!i)return!0;const s=((e,t,n)=>{const r={type:e};if(t?.includes(";base64"))try{return new Blob([atob(n)],r).size}catch{return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0})(o,a,i);return"image/svg+xml"===o?s<=n:s<=r},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const n=function(e){let t=e,n="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("/.."===t){t="/";const e=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),r=e?e[0]:"";t=t.slice(r.length),n+=r}return n}(t);return""!==n&&"/"!==n&&n}};const Ua={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},rebeccapurple:{r:102,g:51,b:153},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Va={resolveExpression:e=>{let t=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e);if(t)return`rgb(${t[1]},${t[2]},${t[3]})`;if(t=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e),t)return`rgba(${t[1]},${t[2]},${t[3]},${t[4]})`;if(t=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e),t){const e=Math.round(t[1]/2.55)/100;return`rgba(${t[2]},${t[3]},${t[4]},${e})`}if(t=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(e),t)return e;const n=e&&Ua[e.toLowerCase()];if(n){const e=void 0!==n.a?n.a:1;return`rgba(${n.r},${n.g},${n.b},${e})`}return"none"},getDarkColor(e){const t=.5;let n,r,o,a;if(e.length>7){n=e.split(",");const i=-1!==n[0].indexOf("a");return r=i?parseInt(n[0].slice(5),10):parseInt(n[0].slice(4),10),a=parseInt(n[1],10),o=parseInt(n[2],10),`${(i?"rgba(":"rgb(")+(Math.round((0-r)*t)+r)},${Math.round((0-a)*t)+a},${Math.round((0-o)*t)+o}${i?`,${n[3]}`:")"}`}return n=parseInt(e.slice(1),16),r=n>>16,a=n>>8&255,o=255&n,`#${(16777216+65536*(Math.round((0-r)*t)+r)+256*(Math.round((0-a)*t)+a)+(Math.round((0-o)*t)+o)).toString(16).slice(1)}`},isDarkColor(e){let t,n,r,o;return(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))||(o=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e))?(t=parseInt(o[1],10),n=parseInt(o[2],10),r=parseInt(o[3],10)):(o=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(e))&&(t=parseInt(o[1],16),n=parseInt(o[2],16),r=parseInt(o[3],16)),.299*t+.587*n+.114*r<125}},Ha=["data:","http:","https:"],Ka=e=>{try{return Fa.encodeForAttr2(e)}catch{return""}},Za=e=>{const t=["#"," ","(",")"];let n="";for(let r=0;r<e.length;r++){const o=e.charAt(r),a=e.charCodeAt(r);if(!o.match(/[a-zA-Z0-9]/)&&t.indexOf(o)<0){const e=a.toString(16);n+=`\\${"000000".substr(e.length)}${e}`}else n+=o}return n},Wa=e=>{try{return e=e?.trim(),e&&(e=>{try{const t=new URL(e);return Ha.includes(t.protocol)}catch{return!1}})(e)&&Fa.isSafeDataURL(e)?/^data:/i.test(e)?encodeURI(Fa.canonicalize(e)):Fa.encodeForHref(e):""}catch{return""}};function Ga(e){return[void 0,"left","right"].includes(e.cardImage.alignment)}function Xa(e){const t=Va.resolveExpression(e);return"none"!==t?t:Za(e)}function Ya(e,t){return"default"===e?Va.isDarkColor(t)?tt.FONT_COLOR_LIGHT.color:tt.FONT_COLOR_DARK.color:e}const Ja=(e,t)=>`font-family:${e.fontFamily}; font-size:${e.fontSize}; color:${t}`;function Qa(e,t,n,r){const o=function(e,t){if(e.attributes&&e.attributes.color){const t=Va.resolveExpression(e.attributes.color);if("none"!==t)return t}return Xa(t)}(e,t.cardBackgroundColor),a=Xa(Ya(t.cardTitle.fontColor,o)),i=Ja(t.cardTitle,a),s=Xa(Ya(t.cardSubTitle.fontColor,o)),l=Ja(t.cardSubTitle,s),c=Xa(Ya(t.cardDescription.fontColor,o)),u=Ja(t.cardDescription,c),h=Xa(Ya(t.cardMeasureLabel.fontColor,o)),d=Ja(t.cardMeasureLabel,h),p=Xa(Ya(t.cardMeasureValue.fontColor,o)),f=Ja(t.cardMeasureValue,p),{topBar:g=tt.BORDER_TOP,fullBorder:m=tt.BORDER_FULL,contrastColor:b=!0}=t.cardBorder,y=b?Va.getDarkColor(o):Xa(t.cardBorder.borderColor);let v=n;r?v-=8:m?v-=4:g&&(v-=3);return{titleStyle:i,subTitleStyle:l,descriptionStyle:u,measureLabelStyle:d,measureValueStyle:f,cardStyle:`background-color:${o}; border:${m&&!r?`1px solid ${y}`:""}; border-top:${g&&!r?`3px solid ${y}`:""}; height:${v}px;`}}const ei=(e,t,n,r)=>{const o=function(e,t){let n=!1,r="";return t.api?.isActive()&&(n=-1!==t.state.indexOf(e.elemNo),r=n?" selected":" not-selected"),{isSelected:n,selectedClass:r}}(e,n),a=function(e,t){const n=e.attributes||{},r=t.measureLabel?`${t.measureLabel}: `:"";return{title:Ka(n.label||e.id),subTitle:n.subLabel?Ka(n.subLabel):void 0,description:n.extraLabel?Ka(n.extraLabel):void 0,measureLabel:e.measure?Ka(r):void 0,measureValue:e.measure?Ka(e.measure):void 0,image:Wa(n.image)}}(e,t),i=Qa(e,t,r,o.isSelected),s=function(e,t){return t?.image&&"tooltip"!==e.cardImage.location}(t,e.attributes),l=s?function(e){let t=" has-image";return Ga(e)?(t+=" horizontal",t+="right"===e.cardImage.alignment?" right":" left"):(t+=" vertical",t+="bottom"===e.cardImage.alignment?" bottom":"",t+="round"===e.cardImage.shape?" round":""),t}(t):"",c=o.selectedClass+(Ga(t)?" horizontal":" vertical");let u="";if(s){const n=function(e){let t="";return t+=["right","bottom"].includes(e.cardImage.alignment)?" image-last":"",t+=Ga(e)?"":" vertical",t}(t),r=function(e){let t="";return t+=e.cardImage.clip?" clip":"",t+=Ga(e)?" horizontal":"",t+="round"===e.cardImage.shape?" round":"",t}(t);u+=`<div class="sn-image-wrapper${n}"><img src="${a.image}" class="sn-org-card-image${r}" data-node-id="${Fa.encodeForAttr2(e.id)}"/></div>`}return u+=`<div class="sn-org-textbox${l}">`,u+=`<div class="sn-org-card-title" style="${Fa.encodeForAttr2(i.titleStyle)};">${a.title}</div>`,a.subTitle&&(u+=`<div class="sn-org-card-label" style="${Fa.encodeForAttr2(i.subTitleStyle)};">${a.subTitle}</div>`),a.measureValue?u+=`<div class="sn-org-card-label"><span style="${Fa.encodeForAttr2(i.measureLabelStyle)};">${a.measureLabel}</span><span style="${Fa.encodeForAttr2(i.measureValueStyle)};">${a.measureValue}</span></div>`:a.description&&(u+=`<div class="sn-org-card-label" style="${Fa.encodeForAttr2(i.descriptionStyle)};">${a.description}</div>`),u+="</div>",`<div class="sn-org-card-text${c}" style="${Fa.encodeForAttr2(i.cardStyle)};">${u}</div>`},ti={cardWidth:152,cardHeight:64,cardHeightLarge:208,widthMargin:32,heightMargin:56,buttonMargin:16,leafMargin:16,cardPadding:8,buttonWidth:48,buttonHeight:24,rootDiameter:20,r:4,tooltipPadding:15,maxZoom:6,minZoom:.2},ni={colorByExpression:"color",labelExpression:"label",subLabelExpression:"subLabel",extraLabelExpression:"extraLabel",imageExpression:"image"},ri="max-data-limit";function oi(e){return e[0].qText}function ai(e){return e[1].qText}async function ii(e,t,n,r,o,a,i){return await n.getHyperCubeData("/qHyperCubeDef",[{qTop:o,qLeft:0,qWidth:3,qHeight:3300}]).then(n=>{e.push(n[0]),t.push(...n[0].qMatrix),o+=n[0].qArea.qHeight}),a>=i?ri:r>o?ii(e,t,n,r,o,a+1,i):""}const si=async(e,t)=>{if(e.snapshotData)return{status:"",dataMatrix:e.snapshotData.dataMatrix};const n=e.qHyperCube&&e.qHyperCube.qDataPages,r=e.qHyperCube.qSize.qcy,o=n[0].qArea.qHeight,a=[...n[0].qMatrix];let i="";return r>o&&1===n.length&&t?i=await ii(e.qHyperCube.qDataPages,a,t,r,o,0,e.rowLimit/3300||10):n.forEach((e,t)=>{t>0&&a.push(...e.qMatrix)}),{status:i,dataMatrix:a}};function li(e,t){const n={};return e.forEach(e=>{"color"===e.prop?n[e.prop]=Va.resolveExpression(t.qValues[e.index].qText):n[e.prop]=t.qValues[e.index].qText}),n}function ci(e){if(!e)return!0;for(let t=0;t<e.length;++t)if(void 0!==e[t].children)return!1;return!0}function ui(e){return["top","bottom"].includes(e.cardImage.alignment)&&"tooltip"!==e.cardImage.location?ti.cardHeightLarge:ti.cardHeight}async function hi({layout:e,model:t,translator:n}){if(!e.qHyperCube)throw new Error("Require a hypercube");if(e.qHyperCube.qDimensionInfo.length<2)return!1;const{status:r,dataMatrix:o}=await si(e,t),a=function(e){if(e&&e.length){const t=[];return e.forEach((e,n)=>{ni[e.id]&&t.push({prop:ni[e.id],index:n})}),t}return[]}(e.qHyperCube.qDimensionInfo[0].qAttrExprInfo);return o?o.length<1?null:function(e,t,n,r,o){const a={},i=[];for(let n=0;n<e.length;++n){const r=e[n],o=oi(r),s={id:o,parentId:ai(r),children:[],elemNo:r[0].qElemNumber,attributes:li(t,r[0].qAttrExps),measure:r[2]&&r[2].qText,rowNo:n};a[o]=s,i.push(s)}const s=[];let l=!1;for(let e=0;e<i.length;++e){const t=i[e],n=a[t.parentId];t.parent=n,n?n.children.length>98?l=!0:n.children.push({childNumber:n.children.length,...t}):s.length>98?l=!0:s.push(t)}if(0===s.length)return{error:"no_root",message:o.get("Object.OrgChart.MissingRoot")};const c=[];if(n===ri&&c.push(o.get("Object.OrgChart.MaxData")),l&&c.push(o.get("Object.OrgChart.MaxChildren")),function(e){const t={},n={};function r(e){t[e.id]=!0,n[e.id]=!0;for(let o=0;o<e.children.length;++o){if(!t[e.children[o].id]&&r(e.children[o]))return!0;if(n[e.children[o].id])return!0}return n[e.id]=!1,!1}for(let n=0;n<e.length;++n){const o=e[n];if(!t[o.id]&&r(o))return!0}return!1}(i)&&c.push(o.get("Object.OrgChart.CycleWarning")),1===s.length)return s[0].warn=c,s[0].navigationMode=r,s[0];c.push(o.get("Object.OrgChart.DummyWarn"));const u={id:"Root",name:o.get("Object.OrgChart.DummyRoot"),isDummy:!0,warn:c,children:s,navigationMode:r};return s.forEach((e,t)=>{e.parentId="Root",e.parent=u,e.childNumber=t}),u}(o,a,r,e.navigationMode,n):null}var di=(e,t)=>{const{api:n,state:r,singleSelect:o,setState:a}=t;if(e&&n){let t;if(e.data.elemNo<0&&-3!==e.data.elemNo)return;if(e.data.isLocked)return;n.isActive()&&r?t=r.concat():(n.begin("/qHyperCubeDef"),t=[]);const i=t.indexOf(e.data.elemNo),s=-1===i;let l=[];o||(l=function(e,t){const n=[],r=e=>{e.children.forEach(e=>{e.data.selected=t,n.push(e.data.elemNo),e.children&&e.children.length>0&&r(e)})};return e.children&&r(e),n}(e,s)),s?(t.push(e.data.elemNo),l.forEach(e=>{-1===t.indexOf(e)&&t.push(e)})):(t.splice(i,1),l.forEach(e=>{const n=t.indexOf(e);-1!==n&&t.splice(n,1)})),0===t.length?n.clear():n.select({method:"selectHyperCubeValues",params:["/qHyperCubeDef",0,t,!1]}),a(t)}};function pi(e){e.tooltip.active=!0,e.tooltip.timeout=setTimeout(()=>{e.tooltip.active&&e.tooltip.html(function(e,t){const n=Ka(e.data.attributes.label||e.data.id),r=e.data.attributes.subLabel?`${Ka(e.data.attributes.subLabel)}<br />`:"",o=e.data.attributes.extraLabel?`${Ka(e.data.attributes.extraLabel)}<br />`:"",a=Ka(e.data.measure?`${t.measureLabel?`${t.measureLabel}: `:""}${e.data.measure}`:"");let i=e.data.attributes.image&&"card"!==t.cardImage.location?e.data.attributes.image:"";if(i=Wa(i),i){const e="right"===t.cardImage.alignment?'style="padding-right:5px"':'style="padding-left:5px"';return`<div class="sn-org-tooltip-inner" style="display:flex"><img src="${i}" class="sn-org-tooltip-image" ${"right"===t.cardImage.alignment?'style="order: 1"':""} /><div class="sn-org-tooltip-text" ${e}><div class="sn-org-tooltip-header">${n}</div>${r}${o}${a}</div></div>`}return`<div class="sn-org-tooltip-inner"><div class="sn-org-tooltip-header">${n}</div>${r}${o}${a}</div>`}(e.node,e.styling)).classed("sn-org-tooltip-visible",!0).attr("style",()=>function(e,t,n,r,o){const{cardWidth:a,tooltipPadding:i}=ti,s=a/2;return`bottom:${t-(r(e)*o.zoom+o.y-i)}px;left:${n(e)*o.zoom+o.x+s*o.zoom}px;`}(e.node,e.containerHeight,e.x,e.y,e.transform))},e.delay??250)}function fi(e){clearTimeout(e.timeout),e.active=!1,e.classed("sn-org-tooltip-visible",!1)}function gi({positioning:e,divBox:t,nodes:n,styling:r,setExpandedCallback:o,wrapperState:a,selectionObj:i,navigationMode:s,element:l,tooltip:c,flags:u,actualCardHeight:h,usePromiseStatus:d}){const{x:p,y:f}=e,{cardWidth:g,buttonWidth:m,buttonHeight:b,cardPadding:y,rootDiameter:v}=ti,{topId:x}=a.expandedState,w=n.find(e=>e.data.id===x),_=w&&w.parent?w.parent.ancestors().map(e=>e.data.id):[],C=document.getElementsByTagName("html")[0].classList.contains("touch-on"),E={tooltip:c,containerHeight:l.clientHeight,styling:r,x:p,y:f,flags:u};t.selectAll(".sn-org-nodes").data(n.filter(e=>e.parent&&"Root"===e.parent.data.id)).enter().append("div").attr("class","sn-org-root").attr("style",e=>`top:${f(e)-v-y}px;left:${p(e)+(g-v)/2}px`).attr("id",e=>e.data.id),t.selectAll(".sn-org-nodes").data(n.filter(e=>"Root"!==e.data.id)).enter().append("div").attr("class","sn-org-card").attr("style",e=>`width:${g}px;height:${h}px; top:${f(e)}px;left:${p(e)}px;`).attr("id",e=>e.data.id).on("click",(e,t)=>{if(!a.constraints.active&&"Root"!==t.data.id){const e={...E,transform:a.transform,node:t,delay:0};C&&pi(e),di(t,i)}}).html(e=>ei(e.data,r,i,h)).each((e,t,n)=>{if(u.isEnabled("QCB_31709_FIX_PRINTING_IMAGES")&&d?.resolve){const r=n[t].querySelector(".sn-org-card-image[data-node-id]");r&&(r.onload=()=>d.resolve(e.data.id),r.onerror=()=>d.resolve(e.data.id))}}).on("mouseenter",(e,t)=>{if(!C&&!a.constraints.active&&0===e.buttons){pi({...E,transform:a.transform,node:t})}}).on("mouseleave",()=>{!C&&fi(c)}).on("mousedown",()=>{fi(c)}).on("touchmove",()=>{fi(c)}).on("wheel",()=>{fi(c)}),"expandAll"!==s&&t.selectAll(".sn-org-nodes").data(n.filter(e=>!!e.children&&"Root"!==e.data.id)).enter().append("div").attr("class","sn-org-traverse").attr("style",e=>`width:${m}px;height:${b}px;top:${f(e)+h+y}px;left:${p(e)+(g-m)/2}px;`).attr("id",e=>`${e.data.id}-expand`).on("mouseenter",e=>{a.constraints.active||(e.target.style.cursor="pointer")}).on("click",(e,t)=>{a.constraints.active||(o(((e,{topId:t,isExpanded:n,expandedChildren:r},o)=>{if(e.data.id===t)n=!n,r=[];else if(o.includes(e.data.id))t=e.parent?e.parent.data.id:e.data.id,n=!!e.parent,r=[];else if(e.parent.data.id===t){const t=e.parent.children.filter(e=>r.includes(e.data.id)).every(e=>ci(e.children));r.includes(e.data.id)?r.splice(r.indexOf(e.data.id),1):ci(e.children)&&t?r.push(e.data.id):r=[e.data.id]}else t=e.parent.data.id,n=!0,r=[e.data.id];return{topId:t,isExpanded:n,expandedChildren:r}})(t,a.expandedState,_)),e.stopPropagation())}).html(e=>`${((e,{topId:t,isExpanded:n,expandedChildren:r},o)=>e.data.id===t&&n||e.parent&&e.parent.data.id===t&&r.includes(e.data.id)||o.includes(e.data.id)?"-":"+")(e,a.expandedState,_)} ${e.data.children.length}`)}function mi(e,t,n,r,o){e.append("path").attr("class","sn-org-path").attr("id",e=>e.data.id).attr("d",e=>{let n="";const a=function(e,t,{depthSpacing:n,isVertical:r,x:o,y:a},i,s){const{cardWidth:l,buttonHeight:c,cardPadding:u,buttonMargin:h}=ti,d=[],p=l/2,f=s/2,g={x:e.xActual,y:e.yActual};if(e.parent&&"Root"!==e.parent.data.id){const t=n/2,l="expandAll"===i?s:s+u+c,m={x:o(e.parent)+p,y:a(e.parent)+l};"expandAll"!==i&&ci(e.parent.children)?d.push(r?[{x:g.x,y:g.y+f},{x:m.x-p,y:g.y+f},{x:m.x-p,y:m.y+h},{x:m.x,y:m.y+h},{x:m.x,y:m.y}]:[{x:g.x,y:g.y},{x:g.x,y:m.y-f},{x:m.x+t,y:m.y-f},{x:m.x+t,y:m.y},{x:m.x,y:m.y}]):g.x===o(e.parent)||g.y===a(e.parent)?d.push([{x:g.x+p,y:g.y},{x:m.x,y:m.y}]):d.push(r?[{x:g.x+p,y:g.y},{x:g.x+p,y:g.y-u},{x:m.x,y:g.y-u},{x:m.x,y:m.y}]:[{x:g.x,y:g.y},{x:g.x-u,y:g.y},{x:g.x-u,y:m.y},{x:m.x,y:m.y}])}else e.parent&&d.push([{x:g.x+p,y:g.y},{x:g.x+p,y:g.y-u}]);return e.children&&"Root"!==e.data.id&&d.push([{x:g.x+p,y:g.y+s},{x:g.x+p,y:g.y+s+u}]),d}(e,0,t,r,o);return a.forEach(e=>{n+=function(e){const{r:t}=ti;let n,r=`M ${e[0].x} ${e[0].y} `;const o=t=>{const r=e[t].x-e[t-1].x,o=e[t].y-e[t-1].y;n={x:(r>0)-(r<0)||+r,y:(o>0)-(o<0)||+o}};o(1);for(let a=1;a<e.length;++a){const i=e[a];a<e.length-1?(r+=`L ${i.x-n.x*t} ${i.y-n.y*t} `,o(a+1),r+=`Q ${i.x} ${i.y} ${i.x+n.x*t} ${i.y+n.y*t} `):r+=`L ${i.x} ${i.y} `}return r}(e).slice(0,-1)}),n})}const bi=(e,t,n,r,o,a)=>{const{buttonMargin:i}=ti,s=o&&o.initialX||0;return"expandAll"===a?(e[r]=e.x+s,e[r]):(e.parent?(e.parent[r]||(e.parent[r]=bi(e.parent,t,n,r,o)),"Root"===e.parent.data.id?e[r]=e.parent[r]+(e.data.childNumber-(e.parent.children.length-1)/2)*t:e[r]=ci(e.parent.children)?e.parent[r]+i:e.parent[r]+(e.data.childNumber-(e.parent.children.length-1)/2)*t):e[r]=s,e[r])};function yi(e,t,n,r,o){const{widthMargin:a,heightMargin:i,cardWidth:s,cardPadding:l}=ti;let c,u,h;if("ttb"===e)c=s+a,u="expandAll"===r?o+2*l:o+i,h={depthSpacing:u,isVertical:!0,x:e=>bi(e,c,t,"xActual",n,r),y:e=>((e,t,n,r,o,a)=>{const{leafMargin:i}=ti,s=r&&r.initialY||0;return e.parent&&"Root"!==e.parent.data.id&&"expandAll"!==o&&ci(e.parent.children)?e[n]=e.parent.y+t+e.data.childNumber*(a+i)+s:e[n]=e.y+s,e[n]})(e,u,"yActual",n,r,o)};return h}const vi=(e,t,n,r,o)=>{const a=e.k,i=`${e.x}px, ${e.y}px`;t.attr("transform",e),n.classed("org-disable-transition",!0),t.classed("org-disable-transition",!0),n.attr("style",`width:${r}px;height:${o}px; transform: translate(${i}) scale(${a})`)};const xi=(e,t,n)=>{if(!t)return Jo.translate(n.x,n.y).scale(n.zoom);const{size:r}=t,o=e.width/r.w>e.height/r.h?e.height/r.h:e.width/r.w,a=t.transform.x*o,i=t.transform.y*o,s=t.transform.zoom*o;return Jo.translate(a,i).scale(s)},wi=({topId:e,isExpanded:t,expandedChildren:n},r,o,a)=>{if("expandAll"===a)return r.descendants();const i=r.descendants().find(t=>t.data.id===e)||r,s=[];if(t&&i.children&&i.children.forEach(e=>{s.push(e),e.children&&(-1!==n.indexOf(e.data.id)||o)&&e.children.forEach(t=>{s.push(t),-1!==n.indexOf(e.data.id)&&o&&t.children&&t.children.forEach(e=>{s.push(e)})})}),"free"===r.data.navigationMode&&i.parent){const e=i.parent.ancestors(),t=e.map(e=>e.data.id);e.forEach(e=>{o&&e.children.forEach(e=>{e.children&&-1===t.indexOf(e.data.id)&&e.data.id!==i.data.id&&s.unshift(...e.children)}),s.unshift(...e.children),e.parent||s.unshift(e)})}else s.unshift(i);return s},_i=({containerData:e,styling:t,setExpandedCallback:n,wrapperState:r,selectionObj:o,element:a,flags:i,actualCardHeight:s,usePromiseStatus:l})=>{const{svg:c,divBox:u,allNodes:h,positioning:d,tooltip:p}=e,{navigationMode:f}=h.data;u.selectAll("*").remove(),c.selectAll("*").remove();const g=wi(r.expandedState,h,!1,f);gi({positioning:d,divBox:u,nodes:g,styling:t,setExpandedCallback:n,wrapperState:r,selectionObj:o,navigationMode:f,element:a,tooltip:p,flags:i,actualCardHeight:s,usePromiseStatus:l});mi(c.selectAll(".sn-org-paths").data(g).enter(),d,r.expandedState.topId,f,s)},Ci=({element:e,dataTree:t,selectionObj:n,wrapperState:r,setInitialZoom:o,setTransform:a,setExpandedState:i,viewState:s,setContainerData:l,layout:c,flags:u,actualCardHeight:h})=>{e.innerHTML="",e.className="sn-org-chart";const{navigationMode:d}=c;let p=yi("ttb",e,{},d,h);const{width:f,height:g}=e.getBoundingClientRect(),m=Dn(e).append("span").attr("class","sn-org-zoomwrapper").on("click",()=>{r.constraints.active||n.api.isActive()&&n.state||(n.api.begin("/qHyperCubeDef"),n.setState([]))}).node(),b=Dn(m).selectAll("svg").data([{}]).enter().append("svg").attr("class","sn-org-svg").attr("width","100%").attr("height","100%"),y=Dn(m).selectAll("div").data([{}]).enter().append("div").attr("class","sn-org-nodes"),v=Dn(e).append("button").attr("class","sn-org-homebutton disabled").on("click",()=>{Ci({element:e,dataTree:t,selectionObj:n,wrapperState:r,setInitialZoom:o,setTransform:a,setExpandedState:i,viewState:s,setContainerData:l,layout:c,flags:u,actualCardHeight:h})}).html('<span class="lui-fade-button__icon sn-org-home-icon">\n <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20" height="20" viewBox="0 0 16 16">\n <defs>\n <path id="home-a" d="M2,7.9 L8,3.4 L14,7.9 L14,16 L12,16 L12,11.2 C12,11.0895431 11.9104569,11 11.8,11 L9.2,11 C9.08954305,11 9,11.0895431 9,11.2 L9,16 L2,16 L2,7.9 Z M7,13.8 L7,11.2 C7,11.0895431 6.91045695,11 6.8,11 L4.2,11 C4.08954305,11 4,11.0895431 4,11.2 L4,13.8 C4,13.9104569 4.08954305,14 4.2,14 L6.8,14 C6.91045695,14 7,13.9104569 7,13.8 Z M13,4.1 L16,6.5 L15,7.5 L8,2 L1,7.5 L0,6.5 L8,0 L11,2.4 L11,1 L13,1 L13,4.1 Z"/>\n </defs>\n <use xlink:href="#home-a"/>\n </svg>\n </span>').node(),x=function(e){const t=Dn(e).append("div").attr("class","sn-org-tooltip").on("mousedown",()=>{t.classed("sn-org-tooltip-visible",!1)});return t}(e);if(t.error)return Dn(m).append("div").attr("class","sn-org-error").html(t.message),!1;t.warn&&t.warn.length&&Dn(m).append("span").attr("class","sn-org-warning").html(`*${t.warn.join(" ")}`);const w=b.append("g").attr("class","sn-org-paths"),_=Wo().size([f,g]).nodeSize([ti.cardWidth+ti.cardPadding,p.depthSpacing])(jo(t)),C=!r.expandedState||!_.descendants().find(e=>e.data.id===r.expandedState.topId),E=C?{topId:_.data.id,isExpanded:!0,expandedChildren:[],useTransitions:!1}:r.expandedState,k=wi(E,_,!1,d);k.forEach(e=>{e.xActual&&e.yActual||(p.x(e),p.y(e))});const O=((e,t)=>{const{cardWidth:n,buttonHeight:r,buttonMargin:o}=ti,a={left:1/0,top:1/0,right:-1/0,bottom:-1/0};return e.forEach(e=>{a.left=Math.min(e.xActual,a.left),a.top=Math.min(e.yActual,a.top),a.right=Math.max(e.xActual,a.right),a.bottom=Math.max(e.yActual,a.bottom)}),{x:a.left,y:a.top-r-o,width:a.right-a.left+n,height:a.bottom-a.top+t+2*(r+o)}})(k,h),S=s&&s.initialZoom?s.initialZoom:((e,t,n,r)=>{const{widthMargin:o,minZoom:a}=ti,i="expandAll"===n?1/0:ti.maxZoom,{width:s,height:l}=e,{clientHeight:c,clientWidth:u}=t,h=s+2*o,d=l+r,p=Math.max(Math.min(h/u,i),a),f=Math.max(Math.min(d/c,i),a);return p>f?{initialX:-e.x+o,initialY:-e.y+(c*p-l)/2,initialZoom:p}:{initialX:-e.x+(u*f-s)/2,initialY:r/2,initialZoom:f}})(O,e,d,h);return o(S),p=yi("ttb",e,S,d,h),function({containerData:e,setTransform:t,transformState:n,wrapperState:r,initialZoomState:o,navigationMode:a}){const{svg:i,divBox:s,width:l,height:c,zoomWrapper:u,element:h,tooltip:d,homeButton:p}=e,{x:f=0,y:g=0}=n,{minZoom:m,maxZoom:b}=ti,y=n&&1/n.zoom||o.initialZoom,v="expandAll"===a?y:Math.max(Math.min(b,y),m),x=()=>{const e=document.createEvent("MouseEvents");e.initEvent("mousedown",!0,!1),h.dispatchEvent(e)};Dn(u).call(sa().extent([[0,0],[l,c]]).filter(e=>!(r.constraints.active||"dblclick"===e.type||"mousedown"===e.type&&3===e.which)).scaleExtent(["expandAll"===a?.8:m*v,b*v]).on("start",x).on("zoom",e=>{Dn(p).attr("class","sn-org-homebutton lui-fade-button lui-fade-button--large"),t({zoom:e.transform.k/v,x:e.transform.x,y:e.transform.y}),x(),fi(d),vi(Jo.translate(e.transform.x,e.transform.y).scale(e.transform.k/v),i,s,l,c)})),t({zoom:1/v,x:f,y:g}),vi(Jo.translate(f,g).scale(1/v),i,s,l,c)}({containerData:{svg:w,divBox:y,width:f,height:g,zoomWrapper:m,element:e,tooltip:x,homeButton:v},setTransform:a,transformState:s&&s.transform||{},wrapperState:r,initialZoomState:S,navigationMode:d}),C&&i(E),l({svg:w,divBox:y,allNodes:_,positioning:p,width:f,height:g,element:e,zoomWrapper:m,tooltip:x,homeButton:v})},Ei=(e,t,n)=>{if(n.snapshotData&&n.snapshotData.dataMatrix)return n.snapshotData.dataMatrix;const{navigationMode:r}=n,o=wi(e,t,!0,r),a=[],{qDataPages:i}=n.qHyperCube,s=[];return i.forEach(e=>{s.push(...e.qMatrix)}),o.forEach(e=>{void 0!==e.data.rowNo&&a.push(s[e.data.rowNo])}),a},ki=(e,t,n,r)=>{const o={expandedState:e,transform:t,size:{w:r.clientWidth,h:r.clientHeight},initialZoom:n};return o.expandedState.useTransitions=!1,o};function Oi(e,t,n,r){if(r||void 0===e.useColorExpression)return n;let o;return o=e.useColorExpression?Va.resolveExpression(e.colorExpression):t.getColorPickerColor(e.color),"none"===o?n:o}const Si=(e,t,n,r)=>void 0===e?n??r:t??r,Li=(e,t,n)=>({useColorExpression:Si(e,t?.useColorExpression,"byExpression"===n?.style?.fontColor?.colorType,tt.FONT_COLOR_USE_EXPRESSION),color:Si(e,t?.color,n?.style?.fontColor?.color,tt.FONT_COLOR_DARK),colorExpression:Si(e,t?.colorExpression,n?.style?.fontColor?.colorExpression,"")}),zi={getViewState:(e,t)=>{const{viewState:n}=e;return!n&&t.snapshotData&&t.snapshotData.viewState?t.snapshotData.viewState:n}},Ni=()=>{const e=c(),t=u(()=>function({theme:e,config:t={}}){const{id:n,resolve:r=[],transform:o=[],extend:a=[]}=t,i={theme:e,matrix:Ye(r),styles:void 0};return i.styles=et({theme:e,id:n,transform:o,extend:a,matrix:i.matrix}),{getStyles:()=>i.styles,getTheme:()=>i.theme,setTheme:e=>{i.theme=e,i.styles=et({theme:e,id:n,transform:o,extend:a,matrix:i.matrix})}}}({theme:e,config:{id:"orgChart",resolve:[["object.orgChart","card.title.main","fontSize",tt.CARD_TITLE_FONTSIZE],["object.orgChart","card.title.subTitle","fontSize",tt.CARD_BODY_FONTSIZE],["object.orgChart","card.label.description","fontSize",tt.CARD_BODY_FONTSIZE],["object.orgChart","card.label.measureLabel","fontSize",tt.CARD_BODY_FONTSIZE],["object.orgChart","card.label.measureValue","fontSize",tt.CARD_BODY_FONTSIZE],["object.orgChart","card.title.main","fontFamily","'Source Sans Pro', 'Arial', 'sans-serif'"],["object.orgChart","card.title.subTitle","fontFamily","'Source Sans Pro', 'Arial', 'sans-serif'"],["object.orgChart","card.label.description","fontFamily","'Source Sans Pro', 'Arial', 'sans-serif'"],["object.orgChart","card.label.measureLabel","fontFamily","'Source Sans Pro', 'Arial', 'sans-serif'"],["object.orgChart","card.label.measureValue","fontFamily","'Source Sans Pro', 'Arial', 'sans-serif'"]]}}),[e.name()]);return t},Ri=({env:e,setExpandedState:n,setTransform:r,selectionObj:o})=>{const{flags:a}=e,i=h(),s=d(),l=p(),c=f(),[u,m]=t(null),[b,y]=t(null),[v,x]=t({}),w=Ni();return g(()=>new Promise(e=>{if(!s)return void e();const t=setTimeout(()=>{e()},9e3),u=zi.getViewState(c,s);u?.expandedState&&n(u.expandedState),u?.transform&&r(u.transform),hi({layout:s,model:i,translator:l}).then(n=>{o.setState([]),m(n),y((({themeService:e,layout:t})=>{const n=e.getStyles(),r=(o="card",t.components?.find(e=>e.key===o)??void 0);var o;const a=e.getTheme(),i=Li(r,r?.title?.main,t),s=Li(r,r?.title?.subTitle,t),l=Li(r,r?.label?.description,t),c=Li(r,r?.label?.measureLabel,t),u=Li(r,r?.label?.measureValue,t),h={useColorExpression:Si(r,r?.background?.useColorExpression,"byExpression"===t?.style?.backgroundColor?.colorType,tt.BACKGROUND_USE_EXPRESSION),color:Si(r,r?.background?.color,t?.style?.backgroundColor?.color,tt.BACKGROUND_COLOR),colorExpression:Si(r,r?.background?.colorExpression,t?.style?.backgroundColor?.colorExpression,"")},d={topBar:Si(r,r?.border?.topBar,t?.style?.border?.top,tt.BORDER_TOP),fullBorder:Si(r,r?.border?.fullBorder,t?.style?.border?.fullBorder,tt.BORDER_FULL),contrastColor:Si(r,r?.border?.contrastColor,"auto"===t?.style?.border?.colorType,!0),useColorExpression:Si(r,r?.border?.useColorExpression,"byExpression"===t?.style?.border?.colorType,tt.BORDER_USE_EXPRESSION),color:Si(r,r?.border?.color,t?.style?.border?.color,tt.BORDER_COLOR),colorExpression:Si(r,r?.border?.colorExpression,t?.style?.border?.colorExpression,"")},p=Si(r,r?.contrastTextColor,"auto"===t?.style?.fontColor?.colorType,!0),f=Oi(i,a,"default",p),g=Oi(s,a,"default",p),m=Oi(l,a,"default",p),b=Oi(c,a,"default",p),y=Oi(u,a,"default",p),v=Oi(h,a,tt.BACKGROUND_COLOR.color,!1),x=Oi(d,a,Va.getDarkColor(v),d.contrastColor),w=t.qHyperCube.qMeasureInfo.length?t.qHyperCube.qMeasureInfo[0].qFallbackTitle:null;return{cardTitle:{fontSize:Si(r,r?.title?.main?.fontSize,tt.CARD_TITLE_FONTSIZE,n.card.title.main.fontSize),fontFamily:r?.title?.main?.fontFamily??n.card.title.main.fontFamily,fontColor:f},cardSubTitle:{fontSize:Si(r,r?.title?.subTitle?.fontSize,tt.CARD_BODY_FONTSIZE,n.card.title.subTitle.fontSize),fontFamily:r?.title?.subTitle?.fontFamily??n.card.title.subTitle.fontFamily,fontColor:g},cardDescription:{fontSize:Si(r,r?.label?.description?.fontSize,tt.CARD_BODY_FONTSIZE,n.card.label.description.fontSize),fontFamily:r?.label?.description?.fontFamily??n.card.label.description.fontFamily,fontColor:m},cardMeasureLabel:{fontSize:Si(r,r?.label?.measureLabel?.fontSize,tt.CARD_BODY_FONTSIZE,n.card.label.measureLabel.fontSize),fontFamily:r?.label?.measureLabel?.fontFamily??n.card.label.measureLabel.fontFamily,fontColor:b},cardMeasureValue:{fontSize:Si(r,r?.label?.measureValue?.fontSize,tt.CARD_BODY_FONTSIZE,n.card.label.measureValue.fontSize),fontFamily:r?.label?.measureValue?.fontFamily??n.card.label.measureValue.fontFamily,fontColor:y},cardContrastTextColor:p,cardBackgroundColor:v,cardBorder:{topBar:d.topBar,fullBorder:d.fullBorder,contrastColor:d.contrastColor,borderColor:x},cardImage:{location:r?.image?.location??tt.IMAGE_LOCATION,alignment:r?.image?.alignment??tt.IMAGE_ALIGNMENT,shape:r?.image?.shape??tt.IMAGE_SHAPE,clip:r?.image?.clip??tt.IMAGE_CLIP},measureLabel:w}})({themeService:w,layout:s}));const r=new Set;if(a.isEnabled("QCB_31709_FIX_PRINTING_IMAGES")){const e=u?.expandedState||{topId:n.id,isExpanded:!0,expandedChildren:[]},t=jo(n);wi(e,t,!1,s.navigationMode).forEach(e=>{e.data.attributes?.image&&r.add(e.data.id)})}x({resolve:(n,o)=>{n&&r.delete(n),(0===r.size||o)&&(clearTimeout(t),e())}}),0===r.size&&(clearTimeout(t),e())})}),[s,i,l.language(),w]),{dataTree:u,styling:b,usePromiseStatus:v}};function Ai(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}Ai(".sn-org-chart .sn-org-homebutton {\n position: absolute;\n top: 20px;\n right: 20px;\n height: 20px;\n width: 20px;\n border-color: transparent;\n background-color: transparent;\n fill: rgba(89, 89, 89, 0.8);\n transition: fill 200ms ease-out;\n}\n.sn-org-chart .sn-org-homebutton:hover {\n fill: #595959;\n}\n.sn-org-chart .sn-org-homebutton.disabled {\n display: none;\n}\n");Ai(".sn-org-chart {\n overflow: hidden;\n}\n.sn-org-chart .sn-org-nodes {\n position: absolute;\n transform-origin: 0% 0%;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n backface-visibility: hidden;\n}\n.sn-org-chart .sn-org-nodes:not(.org-disable-transition) {\n transition-property: all;\n transition-duration: 0.5s;\n}\n.sn-org-chart .sn-org-nodes .sn-org-traverse {\n position: absolute;\n background-color: white;\n font-size: 20px;\n font-weight: bold;\n border-radius: 3px;\n border: 1px solid #8c8c8c;\n text-align: center;\n line-height: 24px;\n}\n.sn-org-chart .sn-org-nodes .sn-org-root {\n position: absolute;\n background-color: #8c8c8c;\n width: 20px;\n height: 20px;\n border-radius: 20px;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card {\n position: absolute;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-card-text {\n padding-left: 5px;\n padding-right: 5px;\n border-radius: 3px;\n display: flex;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-card-text.selected {\n border: 4px solid black;\n border-radius: 4px;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-card-text.not-selected {\n opacity: 0.5;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-card-text.horizontal {\n flex-direction: row;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-card-text.vertical {\n flex-direction: column;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-image-wrapper {\n order: 0;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-image-wrapper.image-last {\n order: 2;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-image-wrapper.vertical {\n margin: 0 auto;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-image-wrapper .sn-org-card-image {\n padding: 4px 4px;\n object-fit: contain;\n height: 130px;\n width: 130px;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-image-wrapper .sn-org-card-image.round {\n border-radius: 50%;\n object-fit: cover;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-image-wrapper .sn-org-card-image.clip {\n object-fit: cover;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-image-wrapper .sn-org-card-image.horizontal {\n padding: 4px 0px;\n height: 50px;\n width: 50px;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-textbox {\n order: 1;\n overflow: hidden;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-textbox.has-image {\n max-height: 60px;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-textbox.has-image.horizontal {\n width: 85px;\n height: fit-content;\n position: relative;\n top: 50%;\n transform: translate(0, -50%);\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-textbox.has-image.left {\n padding-left: 4px;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-textbox.has-image.right {\n padding-right: 4px;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-textbox.has-image.vertical {\n width: 143px;\n margin-bottom: 4px;\n margin: 0 auto;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-textbox.has-image.bottom {\n padding-top: 4px;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-textbox.has-image.round {\n max-height: 80px;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-textbox .sn-org-card-title {\n font-size: 14px;\n font-weight: bold;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.sn-org-chart .sn-org-nodes .sn-org-card .sn-org-textbox .sn-org-card-label {\n font-size: 11px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n");Ai(".sn-org-chart .sn-org-svg {\n position: absolute;\n /* For css only transitions, does not work in IE11 */\n}\n.sn-org-chart .sn-org-svg .sn-org-path {\n fill: none;\n stroke: #4c4c4c;\n stroke-width: 1;\n}\n.sn-org-chart .sn-org-svg .sn-org-paths:not(.org-disable-transition) {\n transform-origin: 0% 0%;\n transition-property: all;\n transition-duration: 0.5s;\n}\n");Ai('.sn-org-chart {\n /* Tooltip arrow */\n}\n.sn-org-chart .sn-org-tooltip {\n visibility: hidden;\n opacity: 0;\n /* Unsupported in IE, so there we set width explicitly */\n width: max-content;\n /* Position the tooltip text */\n position: absolute;\n z-index: 1;\n}\n.sn-org-chart .sn-org-tooltip::after {\n content: "";\n position: absolute;\n top: 100%;\n left: 0%;\n margin-left: -10px;\n border-width: 10px;\n border-style: solid;\n border-color: #404040 transparent transparent transparent;\n}\n.sn-org-chart .sn-org-tooltip-visible {\n opacity: 0.9;\n visibility: visible;\n}\n.sn-org-chart .sn-org-tooltip-inner {\n max-width: 240px;\n right: 50%;\n font-family: "QlikView Sans", sans-serif;\n position: relative;\n max-height: 150px;\n background-color: #404040;\n color: #e6e6e6;\n text-align: left;\n font-size: 13px;\n line-height: 15px;\n padding: 10px 10px 10px 10px;\n border-radius: 6px;\n overflow-wrap: break-word;\n word-wrap: break-word;\n word-break: break-word;\n overflow: hidden;\n}\n.sn-org-chart .sn-org-tooltip-inner .sn-org-tooltip-image {\n height: 50px;\n}\n.sn-org-chart .sn-org-tooltip-inner .sn-org-tooltip-header {\n font-weight: bold;\n padding-bottom: 5px;\n}\n');Ai(".sn-org-chart .sn-org-warning {\n position: absolute;\n bottom: 0px;\n left: 0px;\n font-style: italic;\n font-size: 13px;\n color: #7b7a78;\n}\n.sn-org-chart .sn-org-error {\n margin: 0;\n position: absolute;\n top: 50%;\n left: 50%;\n font-size: 1.2em;\n transform: translate(-50%, -50%);\n}\n")}}});
|