@nebula.js/sn-table
Version:
Display several measure values for each dimension value. Show the totals for each measure. Sort columns and rows alphabetically or numerically. Change sorting during analysis. Chart exploration allows for adding and removing columns in analysis.
9 lines (8 loc) • 905 kB
JavaScript
/*
* @nebula.js/sn-table v6.31.0
* Copyright (c) 2026 QlikTech International AB
* Released under the MIT license.
*/
import{useMemo as e,useOptions as t,usePromise as r,useState as n,useEffect as o,useTheme as i,onContextMenu as a,HyperCubeHandler as s,onTakeSnapshot as l,useImperativeHandle as c,useStaleLayout as u,useElement as d,useApp as p,useModel as f,useInteractionState as h,useTranslator as m,useSelections as g,useKeyboard as b,useRect as v,useEmbed as y}from"@nebula.js/stardust";import*as x from"react";import S,{createElement as w,isValidElement as C,cloneElement as E,Children as R,useMemo as A,useState as I,useRef as k,createContext as P,useReducer as M,useEffect as D,useDebugValue as T,useCallback as O,useContext as q,useLayoutEffect as L,useInsertionEffect as j,memo as N,forwardRef as _,startTransition as z,useImperativeHandle as F,PureComponent as $}from"react";import*as H from"react-dom";import B,{flushSync as W}from"react-dom";import V from"picasso-plugin-q";import U from"picasso.js";function G(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function K(e){if("object"==typeof e&&G(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,r=0,n=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),r=parseInt(o[2],10),n=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),r=parseInt(o[2],16),n=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),n=parseInt(o[3]+o[3],16))}return(t<<16)+(r<<8)+n}const Y={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},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:0,g:0,b:0,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}},X="qcm-color";function J(...e){const t={type:X,r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let r=0,n=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&a.type===X)({r:r,g:n,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(G(e[0]))({r:r,g:n,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,r=parseInt(s[2],10),n=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))r=parseInt(s[1],16),n=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))r=parseInt(s[1]+s[1],16),n=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in Y}(e)){const t=Y[e];({r:r,g:n,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(r=e[0],n=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+r+n+o+i)&&(t.invalid=!0),t.r=Math.floor(r),t.g=Math.floor(n),t.b=Math.floor(o),t.a=i,t}function Z(e){let t,r,n=0;const o="string"==typeof e?J(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,c=Math.max(i,a,s),u=Math.min(i,a,s),d=(c+u)/2;if(c===u)t=0,n=0;else{switch(r=c-u,t=d>.5?r/(2-c-u):r/(c+u),c){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n,s:100*t,l:100*d,a:l}}function Q(e){let t,r,n=0;const o="string"==typeof e?J(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),u=l;if(l===c)t=0,n=0;else{switch(r=l-c,t=0===r?0:r/u,l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*u}}function ee(e){if(G(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?K(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function te(e,t){return G(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:te(J(e))}function re(e){return G(e)?1===e.a?ee(e):te(e):re(J(e))}const ne=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function oe(e){return.2126*ne(e.r)+.7152*ne(e.g)+.0722*ne(e.b)}function ie(...e){const t=J(...e),r={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},n=()=>(r.spaces.hslaObject||(r.spaces.hslaObject=Z(r)),r.spaces.hslaObject),o=e=>{const t=n(),{h:r,s:o,l:i,a:a}=t;return`hsla(${r}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return r.type},isInvalid:()=>r.invalid,get r(){return r.r},get g(){return r.g},get b(){return r.b},get a(){return r.a},getR:()=>r.r,getG:()=>r.g,getB:()=>r.b,getAlpha:()=>r.a,setAlpha:e=>{r.a=e,r.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=J(e);else{if(e.type!==r.type)return!1;t=e}return t.r===r.r&&t.g===r.g&&t.b===r.b&&t.a===r.a},isDark:()=>function(...e){const t=J(...e);return t.invalid||oe(t)<.4}(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=ee(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=te(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=re(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=function(e){let t,r,n;if(G(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${[t,r,n].join("")}`;const o="string"==typeof e?K(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${t}${r}${n}`}(r)),r.spaces.hex),getHSL:()=>(r.spaces.hsl||(r.spaces.hsl=function(e){let t,r,n=0;const o="string"==typeof e?J(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),u=(l+c)/2;if(l===c)t=0,n=0;else{switch(r=l-c,t=u>.5?r/(2-l-c):r/(l+c),l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return`hsl(${360*n}, ${100*t}, ${100*u})`}(r)),r.spaces.hsl),getHSLA:()=>(r.spaces.hsla||(r.spaces.hsla=function(e){const{h:t,s:r,l:n,a:o}=Z(e);return`hsla(${t}, ${r}, ${n}, ${o})`}(r)),r.spaces.hsla),getHSLAObject:n,getShiftedHSLA:o,getHSV:()=>(r.spaces.hsv||(r.spaces.hsv=function(e){const{h:t,s:r,v:n}=Q(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=Q(r)),r.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(r.r+(e.r-r.r)*t)}, ${Math.floor(r.g+(e.g-r.g)*t)}, ${Math.floor(r.b+(e.b-r.b)*t)}, ${Math.floor(r.a+(e.getAlpha()-r.a)*t)})`,getBrightenedColor:(e=1)=>ie(o(18*e)),getDarkenedColor:(e=1)=>ie(o(18*-e))}}function ae(e,t){if(!e||!t)return;const r=oe(e),n=oe(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}const se="#FFFFFF";function le(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;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:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ce,ue="top",de="top-right",pe="right",fe="bottom-right",he="bottom",me="bottom-left",ge="left",be="top-left";le(le(le(le(le(le(le(le(le(le(ce={},"equal-equal",[ue,he]),"equal-higher",[he,fe]),"equal-lower",[ue,de]),"equal-void",[ue,he]),"higher-equal",[ge,me,ue,de]),"higher-higher-acute",[he,me,ge,de]),"higher-higher-obtuse",[he,ue]),"higher-lower-negative",[ue,de,pe]),"higher-lower-positive",[he,me,ge]),"higher-void",[ue]),le(le(le(le(le(le(le(le(le(le(ce,"lower-equal",[ue]),"lower-higher-negative",[ue,be]),"lower-higher-positive",[fe]),"lower-lower-acute",[ue,be,ge,de,pe]),"lower-lower-obtuse",[ue,he]),"lower-void",[ue]),"void-equal",[ue]),"void-higher",[ue,he]),"void-lower",[ue,he,ge]),"void-void",[ue]),le(ce,"unclassified",[ue,he,pe,ge,de,fe,me,be]);var ve,ye,xe=["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"],Se=["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"];function we(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Se:xe}var Ce=function(){if(ye)return ve;ye=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return ve=function e(){var t,r,n,l,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=n&&o(n)?n:[]):u=n&&i(n)?n:{},a(d,{name:r,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},ve}();function Ee(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Re(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ae(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Ce);var Ie=.7,ke=1/Ie,Pe="\\s*([+-]?\\d+)\\s*",Me="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",De="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Te=/^#([0-9a-f]{3,8})$/,Oe=new RegExp(`^rgb\\(${Pe},${Pe},${Pe}\\)$`),qe=new RegExp(`^rgb\\(${De},${De},${De}\\)$`),Le=new RegExp(`^rgba\\(${Pe},${Pe},${Pe},${Me}\\)$`),je=new RegExp(`^rgba\\(${De},${De},${De},${Me}\\)$`),Ne=new RegExp(`^hsl\\(${Me},${De},${De}\\)$`),_e=new RegExp(`^hsla\\(${Me},${De},${De},${Me}\\)$`),ze={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 Fe(){return this.rgb().formatHex()}function $e(){return this.rgb().formatRgb()}function He(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Te.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Be(t):3===r?new Ge(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?We(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?We(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=Oe.exec(e))?new Ge(t[1],t[2],t[3],1):(t=qe.exec(e))?new Ge(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Le.exec(e))?We(t[1],t[2],t[3],t[4]):(t=je.exec(e))?We(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ne.exec(e))?Qe(t[1],t[2]/100,t[3]/100,1):(t=_e.exec(e))?Qe(t[1],t[2]/100,t[3]/100,t[4]):ze.hasOwnProperty(e)?Be(ze[e]):"transparent"===e?new Ge(NaN,NaN,NaN,0):null}function Be(e){return new Ge(e>>16&255,e>>8&255,255&e,1)}function We(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ge(e,t,r,n)}function Ve(e){return e instanceof Ae||(e=He(e)),e?new Ge((e=e.rgb()).r,e.g,e.b,e.opacity):new Ge}function Ue(e,t,r,n){return 1===arguments.length?Ve(e):new Ge(e,t,r,null==n?1:n)}function Ge(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Ke(){return`#${Ze(this.r)}${Ze(this.g)}${Ze(this.b)}`}function Ye(){const e=Xe(this.opacity);return`${1===e?"rgb(":"rgba("}${Je(this.r)}, ${Je(this.g)}, ${Je(this.b)}${1===e?")":`, ${e})`}`}function Xe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Je(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ze(e){return((e=Je(e))<16?"0":"")+e.toString(16)}function Qe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new tt(e,t,r,n)}function et(e){if(e instanceof tt)return new tt(e.h,e.s,e.l,e.opacity);if(e instanceof Ae||(e=He(e)),!e)return new tt;if(e instanceof tt)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new tt(a,s,l,e.opacity)}function tt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function rt(e){return(e=(e||0)%360)<0?e+360:e}function nt(e){return Math.max(0,Math.min(1,e||0))}function ot(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Ee(Ae,He,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Fe,formatHex:Fe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return et(this).formatHsl()},formatRgb:$e,toString:$e}),Ee(Ge,Ue,Re(Ae,{brighter(e){return e=null==e?ke:Math.pow(ke,e),new Ge(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Ie:Math.pow(Ie,e),new Ge(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ge(Je(this.r),Je(this.g),Je(this.b),Xe(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:Ke,formatHex:Ke,formatHex8:function(){return`#${Ze(this.r)}${Ze(this.g)}${Ze(this.b)}${Ze(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ye,toString:Ye})),Ee(tt,function(e,t,r,n){return 1===arguments.length?et(e):new tt(e,t,r,null==n?1:n)},Re(Ae,{brighter(e){return e=null==e?ke:Math.pow(ke,e),new tt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Ie:Math.pow(Ie,e),new tt(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,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Ge(ot(e>=240?e-240:e+120,o,n),ot(e,o,n),ot(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new tt(rt(this.h),nt(this.s),nt(this.l),Xe(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=Xe(this.opacity);return`${1===e?"hsl(":"hsla("}${rt(this.h)}, ${100*nt(this.s)}%, ${100*nt(this.l)}%${1===e?")":`, ${e})`}`}}));const it=Math.PI/180,at=180/Math.PI,st=.96422,lt=.82521,ct=4/29,ut=6/29,dt=3*ut*ut,pt=ut*ut*ut;function ft(e){if(e instanceof ht)return new ht(e.l,e.a,e.b,e.opacity);if(e instanceof yt)return xt(e);e instanceof Ge||(e=Ve(e));var t,r,n=vt(e.r),o=vt(e.g),i=vt(e.b),a=mt((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=mt((.4360747*n+.3850649*o+.1430804*i)/st),r=mt((.0139322*n+.0971045*o+.7141733*i)/lt)),new ht(116*a-16,500*(t-a),200*(a-r),e.opacity)}function ht(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function mt(e){return e>pt?Math.pow(e,1/3):e/dt+ct}function gt(e){return e>ut?e*e*e:dt*(e-ct)}function bt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function vt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function yt(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function xt(e){if(isNaN(e.h))return new ht(e.l,0,0,e.opacity);var t=e.h*it;return new ht(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ee(ht,function(e,t,r,n){return 1===arguments.length?ft(e):new ht(e,t,r,null==n?1:n)},Re(Ae,{brighter(e){return new ht(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ht(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,r=isNaN(this.b)?e:e-this.b/200;return new Ge(bt(3.1338561*(t=st*gt(t))-1.6168667*(e=1*gt(e))-.4906146*(r=lt*gt(r))),bt(-.9787684*t+1.9161415*e+.033454*r),bt(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Ee(yt,function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof yt)return new yt(e.h,e.c,e.l,e.opacity);if(e instanceof ht||(e=ft(e)),0===e.a&&0===e.b)return new yt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*at;return new yt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new yt(e,t,r,null==n?1:n)},Re(Ae,{brighter(e){return new yt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new yt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return xt(this).rgb()}}));var St=e=>()=>e;function wt(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):St(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1===(e=+e)?wt:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):St(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Ue(e)).r,(t=Ue(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=wt(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var Ct="center",Et="bottom";[{key:"NoDataExist",alignment:Ct,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Ct,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:Ct,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Ct},{key:"DataRangeIncludingZero",alignment:Et},{key:"LimitedData",alignment:Et},{key:"NegativeOrZeroValues",alignment:Et}].reduce(function(e,t){return e[t.key]=t,e},{});var Rt,At=["__proto__","constructor"];function It(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!At.some(function(e){return n.includes(e)})){for(var i=e,a=0;a<n.length-1;++a){var s=n[a];void 0===i[s]&&(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}}}function kt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function Pt(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function Mt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Tt)):void 0===t&&(t=Dt);for(var r,n,o,i,a,s=new Lt(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new Lt(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(qt)}function Dt(e){return e.children}function Tt(e){return Array.isArray(e)?e[1]:null}function Ot(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function qt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Lt(e){this.data=e,this.depth=this.height=0,this.parent=null}Lt.prototype=Mt.prototype={constructor:Lt,count:function(){return this.eachAfter(Pt)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},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(r){r!==e&&t.push({source:r.parent,target:r})}),t},copy:function(){return Mt(this).eachBefore(Ot)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},Rt=function(e){
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,c,u,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[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(i),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)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(m="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},Rt({exports:{}});const jt=()=>{let e;return{promise:new Promise(t=>{e=t}),resolve:e}};function Nt(t,r){return e(()=>t,r)}const _t={},zt=()=>{const{viewState:n}=t(),o=(t=>{const r=e(()=>({current:_t}),[]);return r.current=r.current===_t?t:r.current,r})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=e(()=>jt(),[]),l=Nt(e=>{o.current.add(e)},[o]),c=Nt(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout(function(){return e.apply(n,i)},r)}}(async()=>{await Promise.all(o.current),o.current.clear(),s()},1e3),[s,o]);return r(async()=>{await a},[a]),e(()=>({viewState:n,isDownloadedAsPDForImage:i,notifyIsDoneRendering:c,waitForPromise:l}),[c,i,n,l])},Ft={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},$t={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Ft,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Ht=12,Bt=14,Wt=16,Vt=24,Ut=3,Gt=300,Kt=400,Yt=600,Xt=700,Jt={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Zt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qt(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var er,tr,rr={exports:{}},nr={};var or=(tr||(tr=1,rr.exports=function(){if(er)return nr;er=1;var e=S,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,r,a){var s,l={},c=null,u=null;for(s in void 0!==a&&(c=""+a),void 0!==r.key&&(c=""+r.key),void 0!==r.ref&&(u=r.ref),r)n.call(r,s)&&!i.hasOwnProperty(s)&&(l[s]=r[s]);if(e&&e.defaultProps)for(s in r=e.defaultProps)void 0===l[s]&&(l[s]=r[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:o.current}}return nr.Fragment=r,nr.jsx=a,nr.jsxs=a,nr}()),rr.exports);const ir={black:"#000",white:"#fff"},ar="#e57373",sr="#ef5350",lr="#f44336",cr="#d32f2f",ur="#c62828",dr="#f3e5f5",pr="#ce93d8",fr="#ba68c8",hr="#ab47bc",mr="#9c27b0",gr="#7b1fa2",br="#e3f2fd",vr="#90caf9",yr="#42a5f5",xr="#1976d2",Sr="#1565c0",wr="#4fc3f7",Cr="#29b6f6",Er="#03a9f4",Rr="#0288d1",Ar="#01579b",Ir="#81c784",kr="#66bb6a",Pr="#4caf50",Mr="#388e3c",Dr="#2e7d32",Tr="#1b5e20",Or="#ffb74d",qr="#ffa726",Lr="#ff9800",jr="#f57c00",Nr="#e65100",_r={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function zr(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Fr=Object.freeze({__proto__:null,default:zr}),$r="$$material";function Hr(){return Hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hr.apply(null,arguments)}function Br(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var Wr="-ms-",Vr="-moz-",Ur="-webkit-",Gr="comm",Kr="rule",Yr="decl",Xr="@keyframes",Jr=Math.abs,Zr=String.fromCharCode,Qr=Object.assign;function en(e){return e.trim()}function tn(e,t){return(e=t.exec(e))?e[0]:e}function rn(e,t,r){return e.replace(t,r)}function nn(e,t,r){return e.indexOf(t,r)}function on(e,t){return 0|e.charCodeAt(t)}function an(e,t,r){return e.slice(t,r)}function sn(e){return e.length}function ln(e){return e.length}function cn(e,t){return t.push(e),e}function un(e,t){return e.filter(function(e){return!tn(e,t)})}var dn,pn,fn=1,hn=1,mn=0,gn=0,bn=0,vn="";function yn(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:fn,column:hn,length:a,return:"",siblings:s}}function xn(e,t){return Qr(yn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Sn(e){for(;e.root;)e=xn(e.root,{children:[e]});cn(e,e.siblings)}function wn(){return bn=gn>0?on(vn,--gn):0,hn--,10===bn&&(hn=1,fn--),bn}function Cn(){return bn=gn<mn?on(vn,gn++):0,hn++,10===bn&&(hn=1,fn++),bn}function En(){return on(vn,gn)}function Rn(){return gn}function An(e,t){return an(vn,e,t)}function In(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function kn(e){return en(An(gn-1,Dn(91===e?e+2:40===e?e+1:e)))}function Pn(e){for(;(bn=En())&&bn<33;)Cn();return In(e)>2||In(bn)>3?"":" "}function Mn(e,t){for(;--t&&Cn()&&!(bn<48||bn>102||bn>57&&bn<65||bn>70&&bn<97););return An(e,Rn()+(t<6&&32==En()&&32==Cn()))}function Dn(e){for(;Cn();)switch(bn){case e:return gn;case 34:case 39:34!==e&&39!==e&&Dn(bn);break;case 40:41===e&&Dn(e);break;case 92:Cn()}return gn}function Tn(e,t){for(;Cn()&&e+bn!==57&&(e+bn!==84||47!==En()););return"/*"+An(t,gn-1)+"*"+Zr(47===e?e:Cn())}function On(e){for(;!In(En());)Cn();return An(e,gn)}function qn(e){return function(e){return vn="",e}(Ln("",null,null,null,[""],e=function(e){return fn=hn=1,mn=sn(vn=e),gn=0,[]}(e),0,[0],e))}function Ln(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,w=n,C=y;g;)switch(h=v,v=Cn()){case 40:if(108!=h&&58==on(C,d-1)){-1!=nn(C+=rn(kn(v),"&","&\f"),"&\f",Jr(c?s[c-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=kn(v);break;case 9:case 10:case 13:case 32:C+=Pn(h);break;case 92:C+=Mn(Rn()-1,7);continue;case 47:switch(En()){case 42:case 47:cn(Nn(Tn(Cn(),Rn()),t,r,l),l),5!=In(h||1)&&5!=In(En()||1)||!sn(C)||" "===an(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[c++]=sn(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(C=rn(C,/\f/g,"")),f>0&&(sn(C)-d||0===m&&47===h)&&cn(f>32?_n(C+";",n,r,d-1,l):_n(rn(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(cn(w=jn(C,t,r,c,u,o,s,y,x=[],S=[],d,i),i),123===v)if(0===u)Ln(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===on(C,3))break;case 108:if(97===on(C,2))break;default:u=0;case 100:case 109:case 115:}u?Ln(e,w,w,n&&cn(jn(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):Ln(C,w,w,w,[""],S,0,s,S)}}c=u=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+sn(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==wn())continue;switch(C+=Zr(v),v*m){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(sn(C)-1)*b,b=1;break;case 64:45===En()&&(C+=kn(Cn())),p=En(),u=d=sn(y=C+=On(Rn())),v++;break;case 45:45===h&&2==sn(C)&&(m=0)}}return i}function jn(e,t,r,n,o,i,a,s,l,c,u,d){for(var p=o-1,f=0===o?i:[""],h=ln(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=an(e,p+1,p=Jr(g=a[m])),x=e;v<h;++v)(x=en(g>0?f[v]+" "+y:rn(y,/&\f/g,f[v])))&&(l[b++]=x);return yn(e,t,r,0===o?Kr:s,l,c,u,d)}function Nn(e,t,r,n){return yn(e,t,r,Gr,Zr(bn),an(e,2,-2),0,n)}function _n(e,t,r,n,o){return yn(e,t,r,Yr,an(e,0,n),an(e,n+1,-1),n,o)}function zn(e,t,r){switch(function(e,t){return 45^on(e,0)?(((t<<2^on(e,0))<<2^on(e,1))<<2^on(e,2))<<2^on(e,3):0}(e,t)){case 5103:return Ur+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Ur+e+e;case 4855:return Ur+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Vr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ur+e+Vr+e+Wr+e+e;case 5936:switch(on(e,t+11)){case 114:return Ur+e+Wr+rn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ur+e+Wr+rn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ur+e+Wr+rn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ur+e+Wr+e+e;case 6165:return Ur+e+Wr+"flex-"+e+e;case 5187:return Ur+e+rn(e,/(\w+).+(:[^]+)/,Ur+"box-$1$2"+Wr+"flex-$1$2")+e;case 5443:return Ur+e+Wr+"flex-item-"+rn(e,/flex-|-self/g,"")+(tn(e,/flex-|baseline/)?"":Wr+"grid-row-"+rn(e,/flex-|-self/g,""))+e;case 4675:return Ur+e+Wr+"flex-line-pack"+rn(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ur+e+Wr+rn(e,"shrink","negative")+e;case 5292:return Ur+e+Wr+rn(e,"basis","preferred-size")+e;case 6060:return Ur+"box-"+rn(e,"-grow","")+Ur+e+Wr+rn(e,"grow","positive")+e;case 4554:return Ur+rn(e,/([^-])(transform)/g,"$1"+Ur+"$2")+e;case 6187:return rn(rn(rn(e,/(zoom-|grab)/,Ur+"$1"),/(image-set)/,Ur+"$1"),e,"")+e;case 5495:case 3959:return rn(e,/(image-set\([^]*)/,Ur+"$1$`$1");case 4968:return rn(rn(e,/(.+:)(flex-)?(.*)/,Ur+"box-pack:$3"+Wr+"flex-pack:$3"),/space-between/,"justify")+Ur+e+e;case 4200:if(!tn(e,/flex-|baseline/))return Wr+"grid-column-align"+an(e,t)+e;break;case 2592:case 3360:return Wr+rn(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,tn(e.props,/grid-\w+-end/)})?~nn(e+(r=r[t].value),"span",0)?e:Wr+rn(e,"-start","")+e+Wr+"grid-row-span:"+(~nn(r,"span",0)?tn(r,/\d+/):+tn(r,/\d+/)-+tn(e,/\d+/))+";":Wr+rn(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return tn(e.props,/grid-\w+-start/)})?e:Wr+rn(rn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return rn(e,/(.+)-inline(.+)/,Ur+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(sn(e)-1-t>6)switch(on(e,t+1)){case 109:if(45!==on(e,t+4))break;case 102:return rn(e,/(.+:)(.+)-([^]+)/,"$1"+Ur+"$2-$3$1"+Vr+(108==on(e,t+3)?"$3":"$2-$3"))+e;case 115:return~nn(e,"stretch",0)?zn(rn(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return rn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,o,i,a,s){return Wr+r+":"+n+s+(o?Wr+r+"-span:"+(i?a:+a-+n)+s:"")+e});case 4949:if(121===on(e,t+6))return rn(e,":",":"+Ur)+e;break;case 6444:switch(on(e,45===on(e,14)?18:11)){case 120:return rn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ur+(45===on(e,14)?"inline-":"")+"box$3$1"+Ur+"$2$3$1"+Wr+"$2box$3")+e;case 100:return rn(e,":",":"+Wr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return rn(e,"scroll-","scroll-snap-")+e}return e}function Fn(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function $n(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case Yr:return e.return=e.return||e.value;case Gr:return"";case Xr:return e.return=e.value+"{"+Fn(e.children,n)+"}";case Kr:if(!sn(e.value=e.props.join(",")))return""}return sn(r=Fn(e.children,n))?e.return=e.value+"{"+r+"}":""}function Hn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Yr:return void(e.return=zn(e.value,e.length,r));case Xr:return Fn([xn(e,{value:rn(e.value,"@","@"+Ur)})],n);case Kr:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,function(t){switch(tn(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Sn(xn(e,{props:[rn(t,/:(read-\w+)/,":-moz-$1")]})),Sn(xn(e,{props:[t]})),Qr(e,{props:un(r,n)});break;case"::placeholder":Sn(xn(e,{props:[rn(t,/:(plac\w+)/,":"+Ur+"input-$1")]})),Sn(xn(e,{props:[rn(t,/:(plac\w+)/,":-moz-$1")]})),Sn(xn(e,{props:[rn(t,/:(plac\w+)/,Wr+"input-$1")]})),Sn(xn(e,{props:[t]})),Qr(e,{props:un(r,n)})}return""})}}const Bn="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Wn="active",Vn="data-styled-version",Un="6.4.2",Gn="/*!sc*/\n",Kn="undefined"!=typeof window&&"undefined"!=typeof document;function Yn(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const Xn=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(pn=null!==(dn=Yn("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==dn?dn:Yn("SC_DISABLE_SPEEDY"))&&void 0!==pn?pn:"undefined"!=typeof process&&void 0!==process.env&&!1),Jn="sc-keyframes-",Zn={};function Qn(e,...t){return new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}let eo=new Map,to=new Map,ro=1;const no=e=>{if(eo.has(e))return eo.get(e);for(;to.has(ro);)ro++;const t=ro++;return eo.set(e,t),to.set(t,e),t},oo=e=>to.get(e),io=(e,t)=>{ro=t+1,eo.set(e,t),to.set(t,e)},ao=Object.freeze([]),so=Object.freeze({});function lo(e,t,r=so){return e.theme!==r.theme&&e.theme||t||r.theme}const co=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,uo=/(^-|-$)/g;function po(e){return e.replace(co,"-").replace(uo,"")}const fo=/(a)(d)/gi,ho=e=>String.fromCharCode(e+(e>25?39:97));function mo(e){let t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=ho(t%52)+r;return(ho(t%52)+r).replace(fo,"$1-$2")}const go=5381,bo=(e,t)=>{let r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return e},vo=e=>bo(go,e);function yo(e){return mo(vo(e)>>>0)}function xo(e){return"string"==typeof e&&!0}function So(e){return xo(e)?`styled.${e}`:`Styled(${function(e){return e.displayName||e.name||"Component"}(e)})`}const wo=Symbol.for("react.memo"),Co=Symbol.for("react.forward_ref"),Eo={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Ro={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ao={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Io={[Co]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[wo]:Ao};function ko(e){return("type"in(t=e)&&t.type.$$typeof)===wo?Ao:"$$typeof"in e?Io[e.$$typeof]:Eo;var t}const Po=Object.defineProperty,Mo=Object.getOwnPropertyNames,Do=Object.getOwnPropertySymbols,To=Object.getOwnPropertyDescriptor,Oo=Object.getPrototypeOf,qo=Object.prototype;function Lo(e,t,r){if("string"!=typeof t){const n=Oo(t);n&&n!==qo&&Lo(e,n,r);const o=Mo(t).concat(Do(t)),i=ko(e),a=ko(t);for(let n=0;n<o.length;++n){const s=o[n];if(!(s in Ro||r&&r[s]||a&&s in a||i&&s in i)){const r=To(t,s);try{Po(e,s,r)}catch(e){}}}}return e}function jo(e){return"function"==typeof e}const No=Symbol.for("react.forward_ref");function _o(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&e.$$typeof===No&&"styledComponentId"in e}function zo(e,t){return e&&t?e+" "+t:e||t||""}function Fo(e,t){return e.join("")}function $o(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Ho(e,t,r=!1){if(!r&&!$o(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let r=0;r<t.length;r++)e[r]=Ho(e[r],t[r]);else if($o(t))for(const r in t)e[r]=Ho(e[r],t[r]);return e}function Bo(e,t){Object.defineProperty(e,"toString",{value:t})}const Wo=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let r=this._cGroup;r<e;r++)t+=this.groupSizes[r];else for(let r=this._cGroup-1;r>=e;r--)t-=this.groupSizes[r];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,r=t.length;let n=r;for(;e>=n;)if(n<<=1,n<0)throw Qn(16,`${e}`);this.groupSizes=new Uint32Array(n),this.groupSizes.set(t),this.length=n;for(let e=r;e<n;e++)this.groupSizes[e]=0}let r=this.indexOfGroup(e+1),n=0;for(let o=0,i=t.length;o<i;o++)this.tag.insertRule(r,t[o])&&(this.groupSizes[e]++,r++,n++);n>0&&this._cGroup>e&&(this._cIndex+=n)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(let e=r;e<n;e++)this.tag.deleteRule(r);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r;for(let e=n;e<o;e++)t+=this.tag.getRule(e)+Gn;return t}},Vo=`style[${Bn}][${Vn}="${Un}"]`,Uo=new RegExp(`^${Bn}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),Go=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,Ko=e=>{if(!e)return document;if(Go(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(Go(t))return t}return document},Yo=(e,t,r)=>{const n=r.split(",");let o;for(let r=0,i=n.length;r<i;r++)(o=n[r])&&e.registerName(t,o)},Xo=(e,t)=>{var r;const n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Gn),o=[];for(let t=0,r=n.length;t<r;t++){const r=n[t].trim();if(!r)continue;const i=r.match(Uo);if(i){const t=0|parseInt(i[1],10),r=i[2];0!==t&&(io(r,t),Yo(e,r,i[3]),e.ge