@digihmis/esm-triage-app 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/README.md +4 -0
  2. package/dist/117.js +1 -0
  3. package/dist/117.js.map +1 -0
  4. package/dist/132.js +1 -0
  5. package/dist/132.js.map +1 -0
  6. package/dist/152.js +1 -0
  7. package/dist/152.js.map +1 -0
  8. package/dist/183.js +66 -0
  9. package/dist/183.js.map +1 -0
  10. package/dist/209.js +1 -0
  11. package/dist/209.js.map +1 -0
  12. package/dist/22.js +1 -0
  13. package/dist/22.js.map +1 -0
  14. package/dist/222.js +1 -0
  15. package/dist/222.js.map +1 -0
  16. package/dist/317.js +1 -0
  17. package/dist/317.js.map +1 -0
  18. package/dist/349.js +1 -0
  19. package/dist/349.js.map +1 -0
  20. package/dist/371.js +1 -0
  21. package/dist/371.js.map +1 -0
  22. package/dist/378.js +1 -0
  23. package/dist/378.js.map +1 -0
  24. package/dist/442.js +1 -0
  25. package/dist/442.js.map +1 -0
  26. package/dist/45.js +1 -0
  27. package/dist/45.js.map +1 -0
  28. package/dist/466.js +1 -0
  29. package/dist/466.js.map +1 -0
  30. package/dist/508.js +1 -0
  31. package/dist/508.js.map +1 -0
  32. package/dist/61.js +1 -0
  33. package/dist/61.js.map +1 -0
  34. package/dist/640.js +1 -0
  35. package/dist/640.js.map +1 -0
  36. package/dist/689.js +1 -0
  37. package/dist/689.js.map +1 -0
  38. package/dist/709.js +1 -0
  39. package/dist/709.js.map +1 -0
  40. package/dist/712.js +1 -0
  41. package/dist/712.js.map +1 -0
  42. package/dist/720.js +1 -0
  43. package/dist/720.js.map +1 -0
  44. package/dist/737.js +12 -0
  45. package/dist/737.js.map +1 -0
  46. package/dist/742.js +1 -0
  47. package/dist/742.js.map +1 -0
  48. package/dist/771.js +1 -0
  49. package/dist/771.js.map +1 -0
  50. package/dist/806.js +1 -0
  51. package/dist/806.js.map +1 -0
  52. package/dist/809.js +1 -0
  53. package/dist/809.js.map +1 -0
  54. package/dist/9.js +15 -0
  55. package/dist/9.js.map +1 -0
  56. package/dist/912.js +1 -0
  57. package/dist/912.js.map +1 -0
  58. package/dist/913.js +1 -0
  59. package/dist/913.js.map +1 -0
  60. package/dist/940.js +1 -0
  61. package/dist/940.js.map +1 -0
  62. package/dist/974.js +1 -0
  63. package/dist/974.js.map +1 -0
  64. package/dist/976.js +1 -0
  65. package/dist/976.js.map +1 -0
  66. package/dist/digihmis-esm-triage-app.js +6 -0
  67. package/dist/digihmis-esm-triage-app.js.buildmanifest.json +905 -0
  68. package/dist/digihmis-esm-triage-app.js.map +1 -0
  69. package/dist/main.js +90 -0
  70. package/dist/main.js.map +1 -0
  71. package/dist/routes.json +1 -0
  72. package/jest.config.js +26 -0
  73. package/package.json +51 -0
  74. package/rspack.config.js +1 -0
  75. package/src/config-schema.ts +142 -0
  76. package/src/dashboard.meta.ts +16 -0
  77. package/src/declarations.d.ts +6 -0
  78. package/src/icon-wrapper/icon-wrapper.extension.tsx +17 -0
  79. package/src/index.ts +41 -0
  80. package/src/left-panel/left-panel.component.tsx +100 -0
  81. package/src/left-panel/left-panel.scss +13 -0
  82. package/src/page-header/page-header.component.tsx +35 -0
  83. package/src/page-header/page-header.scss +76 -0
  84. package/src/past-vitals/action-menu/vitals-anthropometrics.component.tsx +44 -0
  85. package/src/past-vitals/action-menu/vitals-anthropometrics.scss +0 -0
  86. package/src/past-vitals/paginated-antropometrics/paginated-antropometrics.component.tsx +132 -0
  87. package/src/past-vitals/paginated-antropometrics/paginated-antropometrics.scss +9 -0
  88. package/src/past-vitals/paginated-vitals/paginated-vitals.component.tsx +157 -0
  89. package/src/past-vitals/paginated-vitals/paginated-vitals.scss +94 -0
  90. package/src/past-vitals/paginated-vitals/type/index.ts +1 -0
  91. package/src/past-vitals/patient-banner/patient-banner.component.tsx +60 -0
  92. package/src/past-vitals/patient-banner/patient-banner.scss +72 -0
  93. package/src/past-vitals/patient-vitals-history.component.tsx +85 -0
  94. package/src/past-vitals/patient-vitals-history.resource.ts +30 -0
  95. package/src/past-vitals/patient-vitals-history.scss +75 -0
  96. package/src/past-vitals/triage-anthropometrics/antropometrics-chart.component.tsx +170 -0
  97. package/src/past-vitals/triage-anthropometrics/antropometrics-chart.scss +70 -0
  98. package/src/past-vitals/triage-anthropometrics/triage-antropometrics.component.tsx +124 -0
  99. package/src/past-vitals/triage-anthropometrics/triage-antropometrics.scss +37 -0
  100. package/src/past-vitals/triage-anthropometrics/type/index.ts +17 -0
  101. package/src/past-vitals/triage-notes/triage-note.scss +94 -0
  102. package/src/past-vitals/triage-notes/triage-notes.component.tsx +75 -0
  103. package/src/past-vitals/triage-notes/triage-notes.resource.ts +72 -0
  104. package/src/past-vitals/triage-notes/type/index.ts +50 -0
  105. package/src/past-vitals/triage-vitals/triage-vitals-history.component.tsx +229 -0
  106. package/src/past-vitals/triage-vitals/triage-vitals-history.scss +48 -0
  107. package/src/past-vitals/triage-vitals/type/index.ts +32 -0
  108. package/src/past-vitals/triage-vitals/vital-chart.component.tsx +198 -0
  109. package/src/past-vitals/triage-vitals/vitals-chart.scss +70 -0
  110. package/src/past-vitals/utils/index.ts +5 -0
  111. package/src/past-vitals/vitals-and-biometrics-header/vitals-header-item.component.tsx +61 -0
  112. package/src/past-vitals/vitals-and-biometrics-header/vitals-header-item.scss +171 -0
  113. package/src/past-vitals/vitals-and-biometrics-header/vitals-header-item.test.tsx +31 -0
  114. package/src/past-vitals/vitals-and-biometrics-header/vitals-header.extension.tsx +225 -0
  115. package/src/past-vitals/vitals-and-biometrics-header/vitals-header.scss +233 -0
  116. package/src/queue-room-table/queue-room-table.component.tsx +380 -0
  117. package/src/queue-room-table/queue-room-table.resource.ts +73 -0
  118. package/src/queue-room-table/queue-room-table.scss +193 -0
  119. package/src/queue-room-table/type/index.ts +30 -0
  120. package/src/queue-room-table/useQueueActions.ts +24 -0
  121. package/src/record-vitals-workspace/common/index.ts +19 -0
  122. package/src/record-vitals-workspace/component/vitals-biometrics-input.component.tsx +433 -0
  123. package/src/record-vitals-workspace/component/vitals-biometrics-input.scss +358 -0
  124. package/src/record-vitals-workspace/helper/index.ts +200 -0
  125. package/src/record-vitals-workspace/record-vitals.resource.ts +570 -0
  126. package/src/record-vitals-workspace/record-vitals.scss +140 -0
  127. package/src/record-vitals-workspace/record-vitals.workspace.tsx +612 -0
  128. package/src/record-vitals-workspace/schema/index.ts +28 -0
  129. package/src/record-vitals-workspace/type/index.ts +170 -0
  130. package/src/record-vitals-workspace/utils/index.ts +100 -0
  131. package/src/routes.json +70 -0
  132. package/src/setup-tests.ts +1 -0
  133. package/src/triage-queue-dashboard/triage-dashboard.resource.ts +75 -0
  134. package/src/triage-queue-dashboard/triage-queue-dashboard.component.tsx +261 -0
  135. package/src/triage-queue-dashboard/triage-queue-dashboard.scss +166 -0
  136. package/src/triage-queue-dashboard/type/index.ts +31 -0
  137. package/translations/am.json +92 -0
  138. package/translations/ar.json +92 -0
  139. package/translations/en.json +92 -0
  140. package/translations/es.json +92 -0
  141. package/translations/fr.json +92 -0
  142. package/translations/he.json +92 -0
  143. package/translations/km.json +92 -0
  144. package/translations/pt.json +92 -0
  145. package/translations/sw.json +92 -0
  146. package/translations/vi.json +92 -0
  147. package/translations/zh.json +92 -0
  148. package/tsconfig.json +5 -0
package/dist/183.js ADDED
@@ -0,0 +1,66 @@
1
+ (globalThis.webpackChunk_digihmis_esm_triage_app=globalThis.webpackChunk_digihmis_esm_triage_app||[]).push([["183"],{2326(e,t,n){"use strict";n.d(t,{XI:()=>c,hc:()=>u});var i,a,r,o=n(62500),s=n.n(o),l=n(58742);let c=s().forwardRef(function({children:e,size:t=16,...n},a){return s().createElement(l.A,{width:t,height:t,ref:a,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},i||(i=s().createElement("path",{d:"M29,5a2,2,0,0,0-2-2H5A2,2,0,0,0,3,5V27a2,2,0,0,0,2,2H27a2,2,0,0,0,2-2ZM27,5V9H5V5Zm0,22H5V23H27Zm0-6H5V17H27Zm0-6H5V11H27Z"})),e)}),u=s().forwardRef(function({children:e,size:t=16,...n},i){return s().createElement(l.A,{width:t,height:t,ref:i,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},a||(a=s().createElement("path",{d:"M26 30H22a2.0059 2.0059 0 01-2-2V21a2.0059 2.0059 0 01-2-2V13a2.9465 2.9465 0 013-3h6a2.9465 2.9465 0 013 3v6a2.0059 2.0059 0 01-2 2v7A2.0059 2.0059 0 0126 30zM21 12a.9448.9448 0 00-1 1v6h2v9h4V19h2V13a.9448.9448 0 00-1-1zM24 9a4 4 0 114-4h0A4.0118 4.0118 0 0124 9zm0-6a2 2 0 102 2h0a2.0059 2.0059 0 00-2-2zM10 20.1839V12H8v8.1839a3 3 0 102 0z"})),r||(r=s().createElement("path",{d:"M9,30A6.9931,6.9931,0,0,1,4,18.1108V7A5,5,0,0,1,14,7V18.1108A6.9931,6.9931,0,0,1,9,30ZM9,4A3.0033,3.0033,0,0,0,6,7V18.9834l-.332.2983a5,5,0,1,0,6.664,0L12,18.9834V7A3.0033,3.0033,0,0,0,9,4Z"})),e)})},43760(e,t,n){"use strict";n.d(t,{yi:()=>l});var i,a,r=n(62500),o=n.n(r),s=n(58742);let l=o().forwardRef(function({children:e,size:t=16,...n},r){return o().createElement(s.A,{width:t,height:t,ref:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...n},i||(i=o().createElement("path",{strokeWidth:"0",d:"M30 30h-2v-2c0-.5513-.4482-1-1-1h-6c-.5518 0-1 .4487-1 1v2h-2v-2c0-1.6543 1.3457-3 3-3h6c1.6543 0 3 1.3457 3 3v2zM24 24c-2.2061 0-4-1.7944-4-4s1.7939-4 4-4 4 1.7944 4 4-1.7939 4-4 4zm0-6c-1.1025 0-2 .897-2 2s.8975 2 2 2 2-.897 2-2-.8975-2-2-2zM8 20H10V22H8zM12 20H18V22H12zM8 16H10V18H8zM12 16H18V18H12zM8 12H10V14H8zM12 12H18V14H12z"})),a||(a=o().createElement("path",{strokeWidth:"0",d:"m21,5h-3v-1c0-1.103-.8975-2-2-2h-6c-1.1025,0-2,.897-2,2v1h-3c-1.1025,0-2,.897-2,2v19c0,1.103.8975,2,2,2h9v-2H5V7h3v2h10v-2h3v6.9999h2v-6.9999c0-1.103-.8975-2-2-2Zm-5,2h-6v-3h6v3Z"})),e)})},77954(e,t,n){"use strict";n.d(t,{A:()=>s});var i=n(71452),a=n.n(i),r=n(34567),o=n.n(r)()(a());o.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-triage__card-header__desktopHeader___Qe2fu,.-esm-triage__card-header__tabletHeader___gFxMA{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0 .75rem 1rem;background-color:#fff}.-esm-triage__card-header__desktopHeader___Qe2fu h4:after,.-esm-triage__card-header__tabletHeader___gFxMA h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-triage__card-header__desktopHeader___Qe2fu{height:3rem}.-esm-triage__card-header__desktopHeader___Qe2fu h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-triage__card-header__tabletHeader___gFxMA{height:4.5rem}.-esm-triage__card-header__tabletHeader___gFxMA h4{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0);color:#525252}html[dir=rtl] .-esm-triage__card-header__desktopHeader___Qe2fu,html[dir=rtl] .-esm-triage__card-header__tabletHeader___gFxMA{text-align:right;padding:.75rem 1rem .75rem 0}',"",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/@openmrs/esm-patient-common-lib/src/cards/card-header.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,iGAEE,YAAA,CACA,6BAAA,CACA,kBAAA,CACA,4BAAA,CACA,qBDDc,CCGd,mHACE,UAAA,CACA,aAAA,CACA,UC0BS,CDzBT,mBAAA,CACA,2CAAA,CAIJ,iDACE,WC6BW,CD5BX,oDE20BE,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CFz0BA,aDlBM,CCsBV,gDACE,aAAA,CACA,mDEm0BE,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CFj0BA,aD1BM,CCgCR,6HAEE,gBAAA,CACA,4BAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.desktopHeader,\n.tabletHeader {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: layout.$spacing-04 0 layout.$spacing-04 layout.$spacing-05;\n background-color: $ui-background;\n\n h4:after {\n content: '';\n display: block;\n width: layout.$spacing-07;\n padding-top: 0.188rem;\n border-bottom: 0.375rem solid var(--brand-03);\n }\n}\n\n.desktopHeader {\n height: layout.$spacing-09;\n h4 {\n @include type.type-style('heading-compact-02');\n color: $text-02;\n }\n}\n\n.tabletHeader {\n height: 4.5rem;\n h4 {\n @include type.type-style('heading-03');\n color: $text-02;\n }\n}\n\n// Overriding styles for RTL support\nhtml[dir='rtl'] {\n .desktopHeader,\n .tabletHeader {\n text-align: right;\n padding: layout.$spacing-04 layout.$spacing-05 layout.$spacing-04 0;\n }\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),o.locals={desktopHeader:"-esm-triage__card-header__desktopHeader___Qe2fu",tabletHeader:"-esm-triage__card-header__tabletHeader___gFxMA"};let s=o},56101(e,t,n){"use strict";n.d(t,{A:()=>s});var i=n(71452),a=n.n(i),r=n(34567),o=n.n(r)()(a());o.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-triage__empty-state__action___YzcNS{margin-bottom:.5rem}.-esm-triage__empty-state__content___Z5VYW{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);color:#525252;margin-top:1rem;margin-bottom:.5rem}.-esm-triage__empty-state__desktopHeading___Xj2e2 h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-triage__empty-state__tabletHeading___MrJbs h4{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0);color:#525252}.-esm-triage__empty-state__desktopHeading___Xj2e2,.-esm-triage__empty-state__tabletHeading___MrJbs{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-triage__empty-state__desktopHeading___Xj2e2 h4:after,.-esm-triage__empty-state__tabletHeading___MrJbs h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-triage__empty-state__heading___dJ7I1:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-triage__empty-state__tile___iS7NK{text-align:center;border:1px solid #e0e0e0}',"",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/@openmrs/esm-patient-common-lib/src/empty-state/empty-state.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,0CACE,mBCgBW,CDbb,2CE01BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CFx1BF,aDHQ,CCIR,eCoBW,CDnBX,mBCSW,CDLX,qDEk1BE,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CFh1BA,aDXM,CCgBR,oDE20BE,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CFz0BA,aDlBM,CCsBV,mGAEE,eAAA,CACA,yBAAA,CACA,kBCFW,CDIX,qHACE,UAAA,CACA,aAAA,CACA,UCGS,CDFT,mBAAA,CACA,2CAAA,CAIJ,iDACE,UAAA,CACA,aAAA,CACA,UCNW,CDOX,mBAAA,CACA,2CAAA,CAGF,wCACE,iBAAA,CACA,wBAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.action {\n margin-bottom: layout.$spacing-03;\n}\n\n.content {\n @include type.type-style('heading-compact-01');\n color: $text-02;\n margin-top: layout.$spacing-05;\n margin-bottom: layout.$spacing-03;\n}\n\n.desktopHeading {\n h4 {\n @include type.type-style('heading-compact-02');\n color: $text-02;\n }\n}\n\n.tabletHeading {\n h4 {\n @include type.type-style('heading-03');\n color: $text-02;\n }\n}\n\n.desktopHeading,\n.tabletHeading {\n text-align: left;\n text-transform: capitalize;\n margin-bottom: layout.$spacing-05;\n\n h4:after {\n content: '';\n display: block;\n width: layout.$spacing-07;\n padding-top: 0.188rem;\n border-bottom: 0.375rem solid var(--brand-03);\n }\n}\n\n.heading:after {\n content: '';\n display: block;\n width: layout.$spacing-07;\n padding-top: 0.188rem;\n border-bottom: 0.375rem solid var(--brand-03);\n}\n\n.tile {\n text-align: center;\n border: 1px solid $ui-03;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),o.locals={action:"-esm-triage__empty-state__action___YzcNS",content:"-esm-triage__empty-state__content___Z5VYW",desktopHeading:"-esm-triage__empty-state__desktopHeading___Xj2e2",tabletHeading:"-esm-triage__empty-state__tabletHeading___MrJbs",heading:"-esm-triage__empty-state__heading___dJ7I1",tile:"-esm-triage__empty-state__tile___iS7NK"};let s=o},32223(e,t,n){"use strict";n.d(t,{A:()=>s});var i=n(71452),a=n.n(i),r=n(34567),o=n.n(r)()(a());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-triage__pagination__bodyShort01___cR181,.-esm-triage__pagination__configurableLink___2UaPC{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px)}.-esm-triage__pagination__desktop___FKsqU,.-esm-triage__pagination__tablet___BjSxC{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);display:flex;justify-content:space-between;color:#525252;background-color:#fff;padding-left:1rem;align-items:center;border-top:1px solid #e0e0e0}.-esm-triage__pagination__desktop___FKsqU .cds--pagination{min-height:0;height:2rem;width:auto;border:none}.-esm-triage__pagination__desktop___FKsqU .cds--pagination .cds--select-input,.-esm-triage__pagination__desktop___FKsqU .cds--pagination .cds--btn,.-esm-triage__pagination__desktop___FKsqU .cds--pagination .cds--pagination__right{min-height:0;height:2rem}.-esm-triage__pagination__tablet___BjSxC .cds--pagination{min-height:0;height:3rem;width:auto;border:none}.-esm-triage__pagination__tablet___BjSxC .cds--pagination .cds--select-input,.-esm-triage__pagination__tablet___BjSxC .cds--pagination .cds--btn,.-esm-triage__pagination__tablet___BjSxC .cds--pagination .cds--pagination__right{min-height:0;height:3rem}.-esm-triage__pagination__configurableLink___2UaPC{text-decoration:none;padding:0 .5rem}.-esm-triage__pagination__pagination___vC\\+hv{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);background-color:#fff;color:#525252;display:flex}div.-esm-triage__pagination__pagination___vC\\+hv>.cds--pagination__left{display:none}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/@openmrs/esm-patient-common-lib/src/pagination/pagination.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,iGC81BI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CD11BJ,mFC01BI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CDv1BF,YAAA,CACA,6BAAA,CACA,aDNQ,CCOR,qBDXM,CCYN,iBEgBW,CFfX,kBAAA,CACA,4BAAA,CAGF,2DACE,YAAA,CACA,WEmBW,CFlBX,UAAA,CACA,WAAA,CAEA,sOAGE,YAAA,CACA,WEWS,CFPb,0DACE,YAAA,CACA,WEeW,CFdX,UAAA,CACA,WAAA,CAEA,mOAGE,YAAA,CACA,WEOS,CFHb,mDACE,oBAAA,CAEA,eAAA,CAGF,8CC4yBI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CD1yBF,qBDrDM,CCsDN,aDlDQ,CCmDR,YAAA,CAIA,wEACE,YAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.bodyShort01 {\n @include type.type-style('body-compact-01');\n}\n\n.desktop,\n.tablet {\n @include type.type-style('body-compact-01');\n display: flex;\n justify-content: space-between;\n color: $text-02;\n background-color: $ui-02;\n padding-left: layout.$spacing-05;\n align-items: center;\n border-top: 1px solid $ui-03;\n}\n\n.desktop :global(.cds--pagination) {\n min-height: 0;\n height: layout.$spacing-07;\n width: auto;\n border: none;\n\n & :global(.cds--select-input),\n :global(.cds--btn),\n :global(.cds--pagination__right) {\n min-height: 0;\n height: layout.$spacing-07;\n }\n}\n\n.tablet :global(.cds--pagination) {\n min-height: 0;\n height: layout.$spacing-09;\n width: auto;\n border: none;\n\n & :global(.cds--select-input),\n :global(.cds--btn),\n :global(.cds--pagination__right) {\n min-height: 0;\n height: layout.$spacing-09;\n }\n}\n\n.configurableLink {\n text-decoration: none;\n @extend .bodyShort01;\n padding: 0 layout.$spacing-03;\n}\n\n.pagination {\n @include type.type-style('body-compact-01');\n background-color: $ui-02;\n color: $text-02;\n display: flex;\n}\n\ndiv.pagination {\n & > :global(.cds--pagination__left) {\n display: none;\n }\n}\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),o.locals={bodyShort01:"-esm-triage__pagination__bodyShort01___cR181",configurableLink:"-esm-triage__pagination__configurableLink___2UaPC",desktop:"-esm-triage__pagination__desktop___FKsqU",tablet:"-esm-triage__pagination__tablet___BjSxC",pagination:"-esm-triage__pagination__pagination___vC+hv"};let s=o},32989(e,t,n){"use strict";n.d(t,{A:()=>s});var i=n(71452),a=n.n(i),r=n(34567),o=n.n(r)()(a());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-triage__results__referenceRange___QopHe{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px)}.-esm-triage__results__noRange___ZSfe0{color:#8d8d8d}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/@openmrs/esm-patient-common-lib/src/results/results.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss","webpack://./../../node_modules/@carbon/colors/index.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,8CC81BI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CD11BJ,uCACE,aEqCQ",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/colors';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.referenceRange {\n @include type.type-style('body-compact-01');\n}\n\n.noRange {\n color: colors.$gray-50;\n}\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n","// Code generated by @carbon/colors. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n$black: #000000 !default;\n$white: #ffffff !default;\n\n$black-100: #000000 !default;\n$blue-10: #edf5ff !default;\n$blue-20: #d0e2ff !default;\n$blue-30: #a6c8ff !default;\n$blue-40: #78a9ff !default;\n$blue-50: #4589ff !default;\n$blue-60: #0f62fe !default;\n$blue-70: #0043ce !default;\n$blue-80: #002d9c !default;\n$blue-90: #001d6c !default;\n$blue-100: #001141 !default;\n$cool-gray-10: #f2f4f8 !default;\n$cool-gray-20: #dde1e6 !default;\n$cool-gray-30: #c1c7cd !default;\n$cool-gray-40: #a2a9b0 !default;\n$cool-gray-50: #878d96 !default;\n$cool-gray-60: #697077 !default;\n$cool-gray-70: #4d5358 !default;\n$cool-gray-80: #343a3f !default;\n$cool-gray-90: #21272a !default;\n$cool-gray-100: #121619 !default;\n$cyan-10: #e5f6ff !default;\n$cyan-20: #bae6ff !default;\n$cyan-30: #82cfff !default;\n$cyan-40: #33b1ff !default;\n$cyan-50: #1192e8 !default;\n$cyan-60: #0072c3 !default;\n$cyan-70: #00539a !default;\n$cyan-80: #003a6d !default;\n$cyan-90: #012749 !default;\n$cyan-100: #061727 !default;\n$gray-10: #f4f4f4 !default;\n$gray-20: #e0e0e0 !default;\n$gray-30: #c6c6c6 !default;\n$gray-40: #a8a8a8 !default;\n$gray-50: #8d8d8d !default;\n$gray-60: #6f6f6f !default;\n$gray-70: #525252 !default;\n$gray-80: #393939 !default;\n$gray-90: #262626 !default;\n$gray-100: #161616 !default;\n$green-10: #defbe6 !default;\n$green-20: #a7f0ba !default;\n$green-30: #6fdc8c !default;\n$green-40: #42be65 !default;\n$green-50: #24a148 !default;\n$green-60: #198038 !default;\n$green-70: #0e6027 !default;\n$green-80: #044317 !default;\n$green-90: #022d0d !default;\n$green-100: #071908 !default;\n$magenta-10: #fff0f7 !default;\n$magenta-20: #ffd6e8 !default;\n$magenta-30: #ffafd2 !default;\n$magenta-40: #ff7eb6 !default;\n$magenta-50: #ee5396 !default;\n$magenta-60: #d02670 !default;\n$magenta-70: #9f1853 !default;\n$magenta-80: #740937 !default;\n$magenta-90: #510224 !default;\n$magenta-100: #2a0a18 !default;\n$orange-10: #fff2e8 !default;\n$orange-20: #ffd9be !default;\n$orange-30: #ffb784 !default;\n$orange-40: #ff832b !default;\n$orange-50: #eb6200 !default;\n$orange-60: #ba4e00 !default;\n$orange-70: #8a3800 !default;\n$orange-80: #5e2900 !default;\n$orange-90: #3e1a00 !default;\n$orange-100: #231000 !default;\n$purple-10: #f6f2ff !default;\n$purple-20: #e8daff !default;\n$purple-30: #d4bbff !default;\n$purple-40: #be95ff !default;\n$purple-50: #a56eff !default;\n$purple-60: #8a3ffc !default;\n$purple-70: #6929c4 !default;\n$purple-80: #491d8b !default;\n$purple-90: #31135e !default;\n$purple-100: #1c0f30 !default;\n$red-10: #fff1f1 !default;\n$red-20: #ffd7d9 !default;\n$red-30: #ffb3b8 !default;\n$red-40: #ff8389 !default;\n$red-50: #fa4d56 !default;\n$red-60: #da1e28 !default;\n$red-70: #a2191f !default;\n$red-80: #750e13 !default;\n$red-90: #520408 !default;\n$red-100: #2d0709 !default;\n$teal-10: #d9fbfb !default;\n$teal-20: #9ef0f0 !default;\n$teal-30: #3ddbd9 !default;\n$teal-40: #08bdba !default;\n$teal-50: #009d9a !default;\n$teal-60: #007d79 !default;\n$teal-70: #005d5d !default;\n$teal-80: #004144 !default;\n$teal-90: #022b30 !default;\n$teal-100: #081a1c !default;\n$warm-gray-10: #f7f3f2 !default;\n$warm-gray-20: #e5e0df !default;\n$warm-gray-30: #cac5c4 !default;\n$warm-gray-40: #ada8a8 !default;\n$warm-gray-50: #8f8b8b !default;\n$warm-gray-60: #726e6e !default;\n$warm-gray-70: #565151 !default;\n$warm-gray-80: #3c3838 !default;\n$warm-gray-90: #272525 !default;\n$warm-gray-100: #171414 !default;\n$white-0: #ffffff !default;\n$yellow-10: #fcf4d6 !default;\n$yellow-20: #fddc69 !default;\n$yellow-30: #f1c21b !default;\n$yellow-40: #d2a106 !default;\n$yellow-50: #b28600 !default;\n$yellow-60: #8e6a00 !default;\n$yellow-70: #684e00 !default;\n$yellow-80: #483700 !default;\n$yellow-90: #302400 !default;\n$yellow-100: #1c1500 !default;\n\n$white-hover: #e8e8e8 !default;\n$black-hover: #212121 !default;\n$blue-10-hover: #dbebff !default;\n$blue-20-hover: #b8d3ff !default;\n$blue-30-hover: #8ab6ff !default;\n$blue-40-hover: #5c97ff !default;\n$blue-50-hover: #1f70ff !default;\n$blue-60-hover: #0050e6 !default;\n$blue-70-hover: #0053ff !default;\n$blue-80-hover: #0039c7 !default;\n$blue-90-hover: #00258a !default;\n$blue-100-hover: #001f75 !default;\n$cool-gray-10-hover: #e4e9f1 !default;\n$cool-gray-20-hover: #cdd3da !default;\n$cool-gray-30-hover: #adb5bd !default;\n$cool-gray-40-hover: #9199a1 !default;\n$cool-gray-50-hover: #757b85 !default;\n$cool-gray-60-hover: #585e64 !default;\n$cool-gray-70-hover: #5d646a !default;\n$cool-gray-80-hover: #434a51 !default;\n$cool-gray-90-hover: #2b3236 !default;\n$cool-gray-100-hover: #222a2f !default;\n$cyan-10-hover: #cceeff !default;\n$cyan-20-hover: #99daff !default;\n$cyan-30-hover: #57beff !default;\n$cyan-40-hover: #059fff !default;\n$cyan-50-hover: #0f7ec8 !default;\n$cyan-60-hover: #005fa3 !default;\n$cyan-70-hover: #0066bd !default;\n$cyan-80-hover: #00498a !default;\n$cyan-90-hover: #013360 !default;\n$cyan-100-hover: #0b2947 !default;\n$gray-10-hover: #e8e8e8 !default;\n$gray-20-hover: #d1d1d1 !default;\n$gray-30-hover: #b5b5b5 !default;\n$gray-40-hover: #999999 !default;\n$gray-50-hover: #7a7a7a !default;\n$gray-60-hover: #5e5e5e !default;\n$gray-70-hover: #636363 !default;\n$gray-80-hover: #474747 !default;\n$gray-90-hover: #333333 !default;\n$gray-100-hover: #292929 !default;\n$green-10-hover: #b6f6c8 !default;\n$green-20-hover: #74e792 !default;\n$green-30-hover: #36ce5e !default;\n$green-40-hover: #3bab5a !default;\n$green-50-hover: #208e3f !default;\n$green-60-hover: #166f31 !default;\n$green-70-hover: #11742f !default;\n$green-80-hover: #05521c !default;\n$green-90-hover: #033b11 !default;\n$green-100-hover: #0d300f !default;\n$magenta-10-hover: #ffe0ef !default;\n$magenta-20-hover: #ffbdda !default;\n$magenta-30-hover: #ff94c3 !default;\n$magenta-40-hover: #ff57a0 !default;\n$magenta-50-hover: #e3176f !default;\n$magenta-60-hover: #b0215f !default;\n$magenta-70-hover: #bf1d63 !default;\n$magenta-80-hover: #8e0b43 !default;\n$magenta-90-hover: #68032e !default;\n$magenta-100-hover: #53142f !default;\n$orange-10-hover: #ffe2cc !default;\n$orange-20-hover: #ffc69e !default;\n$orange-30-hover: #ff9d57 !default;\n$orange-40-hover: #fa6800 !default;\n$orange-50-hover: #cc5500 !default;\n$orange-60-hover: #9e4200 !default;\n$orange-70-hover: #a84400 !default;\n$orange-80-hover: #753300 !default;\n$orange-90-hover: #522200 !default;\n$orange-100-hover: #421e00 !default;\n$purple-10-hover: #ede5ff !default;\n$purple-20-hover: #dcc7ff !default;\n$purple-30-hover: #c5a3ff !default;\n$purple-40-hover: #ae7aff !default;\n$purple-50-hover: #9352ff !default;\n$purple-60-hover: #7822fb !default;\n$purple-70-hover: #7c3dd6 !default;\n$purple-80-hover: #5b24ad !default;\n$purple-90-hover: #40197b !default;\n$purple-100-hover: #341c59 !default;\n$red-10-hover: #ffe0e0 !default;\n$red-20-hover: #ffc2c5 !default;\n$red-30-hover: #ff99a0 !default;\n$red-40-hover: #ff6168 !default;\n$red-50-hover: #ee0713 !default;\n$red-60-hover: #b81922 !default;\n$red-70-hover: #c21e25 !default;\n$red-80-hover: #921118 !default;\n$red-90-hover: #66050a !default;\n$red-100-hover: #540d11 !default;\n$teal-10-hover: #acf6f6 !default;\n$teal-20-hover: #57e5e5 !default;\n$teal-30-hover: #25cac8 !default;\n$teal-40-hover: #07aba9 !default;\n$teal-50-hover: #008a87 !default;\n$teal-60-hover: #006b68 !default;\n$teal-70-hover: #007070 !default;\n$teal-80-hover: #005357 !default;\n$teal-90-hover: #033940 !default;\n$teal-100-hover: #0f3034 !default;\n$warm-gray-10-hover: #f0e8e6 !default;\n$warm-gray-20-hover: #d8d0cf !default;\n$warm-gray-30-hover: #b9b3b1 !default;\n$warm-gray-40-hover: #9c9696 !default;\n$warm-gray-50-hover: #7f7b7b !default;\n$warm-gray-60-hover: #605d5d !default;\n$warm-gray-70-hover: #696363 !default;\n$warm-gray-80-hover: #4c4848 !default;\n$warm-gray-90-hover: #343232 !default;\n$warm-gray-100-hover: #2c2626 !default;\n$yellow-10-hover: #f8e6a0 !default;\n$yellow-20-hover: #fccd27 !default;\n$yellow-30-hover: #ddb00e !default;\n$yellow-40-hover: #bc9005 !default;\n$yellow-50-hover: #9e7700 !default;\n$yellow-60-hover: #755800 !default;\n$yellow-70-hover: #806000 !default;\n$yellow-80-hover: #5c4600 !default;\n$yellow-90-hover: #3d2e00 !default;\n$yellow-100-hover: #332600 !default;\n\n/// Colors from the IBM Design Language\n/// @access public\n/// @group @carbon/colors\n$colors: (\n black: (\n 100: #000000,\n ),\n blue: (\n 10: #edf5ff,\n 20: #d0e2ff,\n 30: #a6c8ff,\n 40: #78a9ff,\n 50: #4589ff,\n 60: #0f62fe,\n 70: #0043ce,\n 80: #002d9c,\n 90: #001d6c,\n 100: #001141,\n ),\n cool-gray: (\n 10: #f2f4f8,\n 20: #dde1e6,\n 30: #c1c7cd,\n 40: #a2a9b0,\n 50: #878d96,\n 60: #697077,\n 70: #4d5358,\n 80: #343a3f,\n 90: #21272a,\n 100: #121619,\n ),\n cyan: (\n 10: #e5f6ff,\n 20: #bae6ff,\n 30: #82cfff,\n 40: #33b1ff,\n 50: #1192e8,\n 60: #0072c3,\n 70: #00539a,\n 80: #003a6d,\n 90: #012749,\n 100: #061727,\n ),\n gray: (\n 10: #f4f4f4,\n 20: #e0e0e0,\n 30: #c6c6c6,\n 40: #a8a8a8,\n 50: #8d8d8d,\n 60: #6f6f6f,\n 70: #525252,\n 80: #393939,\n 90: #262626,\n 100: #161616,\n ),\n green: (\n 10: #defbe6,\n 20: #a7f0ba,\n 30: #6fdc8c,\n 40: #42be65,\n 50: #24a148,\n 60: #198038,\n 70: #0e6027,\n 80: #044317,\n 90: #022d0d,\n 100: #071908,\n ),\n magenta: (\n 10: #fff0f7,\n 20: #ffd6e8,\n 30: #ffafd2,\n 40: #ff7eb6,\n 50: #ee5396,\n 60: #d02670,\n 70: #9f1853,\n 80: #740937,\n 90: #510224,\n 100: #2a0a18,\n ),\n orange: (\n 10: #fff2e8,\n 20: #ffd9be,\n 30: #ffb784,\n 40: #ff832b,\n 50: #eb6200,\n 60: #ba4e00,\n 70: #8a3800,\n 80: #5e2900,\n 90: #3e1a00,\n 100: #231000,\n ),\n purple: (\n 10: #f6f2ff,\n 20: #e8daff,\n 30: #d4bbff,\n 40: #be95ff,\n 50: #a56eff,\n 60: #8a3ffc,\n 70: #6929c4,\n 80: #491d8b,\n 90: #31135e,\n 100: #1c0f30,\n ),\n red: (\n 10: #fff1f1,\n 20: #ffd7d9,\n 30: #ffb3b8,\n 40: #ff8389,\n 50: #fa4d56,\n 60: #da1e28,\n 70: #a2191f,\n 80: #750e13,\n 90: #520408,\n 100: #2d0709,\n ),\n teal: (\n 10: #d9fbfb,\n 20: #9ef0f0,\n 30: #3ddbd9,\n 40: #08bdba,\n 50: #009d9a,\n 60: #007d79,\n 70: #005d5d,\n 80: #004144,\n 90: #022b30,\n 100: #081a1c,\n ),\n warm-gray: (\n 10: #f7f3f2,\n 20: #e5e0df,\n 30: #cac5c4,\n 40: #ada8a8,\n 50: #8f8b8b,\n 60: #726e6e,\n 70: #565151,\n 80: #3c3838,\n 90: #272525,\n 100: #171414,\n ),\n white: (\n 0: #ffffff,\n ),\n yellow: (\n 10: #fcf4d6,\n 20: #fddc69,\n 30: #f1c21b,\n 40: #d2a106,\n 50: #b28600,\n 60: #8e6a00,\n 70: #684e00,\n 80: #483700,\n 90: #302400,\n 100: #1c1500,\n ),\n) !default;\n"],sourceRoot:""}]),o.locals={referenceRange:"-esm-triage__results__referenceRange___QopHe",noRange:"-esm-triage__results__noRange___ZSfe0"};let s=o},10279(e){e.exports=function(){"use strict";var e,t,n=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,i=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,a={years:31536e6,months:2628e6,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1,weeks:6048e5},r=function(e){return e instanceof h},o=function(e,t,n){return new h(e,n,t.$l)},s=function(e){return t.p(e)+"s"},l=function(e){return e<0},c=function(e){return l(e)?Math.ceil(e):Math.floor(e)},u=function(e,t){return e?l(e)?{negative:!0,format:""+Math.abs(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},h=function(){function l(e,t,n){var r=this;if(this.$d={},this.$l=n,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return o(e*a[s(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach(function(t){r.$d[s(t)]=e[t]}),this.calMilliseconds(),this;if("string"==typeof e){var l=e.match(i);if(l){var c=l.slice(2).map(function(e){return null!=e?Number(e):0});return this.$d.years=c[0],this.$d.months=c[1],this.$d.weeks=c[2],this.$d.days=c[3],this.$d.hours=c[4],this.$d.minutes=c[5],this.$d.seconds=c[6],this.calMilliseconds(),this}}return this}var h=l.prototype;return h.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(t,n){return t+(e.$d[n]||0)*a[n]},0)},h.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=c(e/31536e6),e%=31536e6,this.$d.months=c(e/2628e6),e%=2628e6,this.$d.days=c(e/864e5),e%=864e5,this.$d.hours=c(e/36e5),e%=36e5,this.$d.minutes=c(e/6e4),e%=6e4,this.$d.seconds=c(e/1e3),e%=1e3,this.$d.milliseconds=e},h.toISOString=function(){var e=u(this.$d.years,"Y"),t=u(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var i=u(n,"D"),a=u(this.$d.hours,"H"),r=u(this.$d.minutes,"M"),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=u(o,"S"),l=e.negative||t.negative||i.negative||a.negative||r.negative||s.negative,c=a.format||r.format||s.format?"T":"",h=(l?"-":"")+"P"+e.format+t.format+i.format+c+a.format+r.format+s.format;return"P"===h||"-P"===h?"P0D":h},h.toJSON=function(){return this.toISOString()},h.format=function(e){var i={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return(e||"YYYY-MM-DDTHH:mm:ss").replace(n,function(e,t){return t||String(i[e])})},h.as=function(e){return this.$ms/a[s(e)]},h.get=function(e){var t=this.$ms,n=s(e);return"milliseconds"===n?t%=1e3:t="weeks"===n?c(t/a[n]):this.$d[n],t||0},h.add=function(e,t,n){var i;return i=t?e*a[s(t)]:r(e)?e.$ms:o(e,this).$ms,o(this.$ms+i*(n?-1:1),this)},h.subtract=function(e,t){return this.add(e,t,!0)},h.locale=function(e){var t=this.clone();return t.$l=e,t},h.clone=function(){return o(this.$ms,this)},h.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},h.valueOf=function(){return this.asMilliseconds()},h.milliseconds=function(){return this.get("milliseconds")},h.asMilliseconds=function(){return this.as("milliseconds")},h.seconds=function(){return this.get("seconds")},h.asSeconds=function(){return this.as("seconds")},h.minutes=function(){return this.get("minutes")},h.asMinutes=function(){return this.as("minutes")},h.hours=function(){return this.get("hours")},h.asHours=function(){return this.as("hours")},h.days=function(){return this.get("days")},h.asDays=function(){return this.as("days")},h.weeks=function(){return this.get("weeks")},h.asWeeks=function(){return this.as("weeks")},h.months=function(){return this.get("months")},h.asMonths=function(){return this.as("months")},h.years=function(){return this.get("years")},h.asYears=function(){return this.as("years")},l}(),p=function(e,t,n){return e.add(t.years()*n,"y").add(t.months()*n,"M").add(t.days()*n,"d").add(t.hours()*n,"h").add(t.minutes()*n,"m").add(t.seconds()*n,"s").add(t.milliseconds()*n,"ms")};return function(n,i,a){e=a,t=a().$utils(),a.duration=function(e,t){return o(e,{$l:a.locale()},t)},a.isDuration=r;var s=i.prototype.add,l=i.prototype.subtract;i.prototype.add=function(e,t){return r(e)?p(this,e,1):s.bind(this)(e,t)},i.prototype.subtract=function(e,t){return r(e)?p(this,e,-1):l.bind(this)(e,t)}}}()},65650(e,t,n){e.exports=n(78942).Symbol},65111(e){e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,a=Array(i);++n<i;)a[n]=t(e[n],n,e);return a}},52837(e){e.exports=function(e){return e.split("")}},87379(e,t,n){var i=n(65650),a=n(8870),r=n(29005),o=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):r(e)}},73501(e){e.exports=function(e,t,n){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var r=Array(a);++i<a;)r[i]=e[i+t];return r}},52291(e,t,n){var i=n(65650),a=n(65111),r=n(53142),o=n(51187),s=1/0,l=i?i.prototype:void 0,c=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(r(t))return a(t,e)+"";if(o(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},28931(e,t,n){var i=n(73501);e.exports=function(e,t,n){var a=e.length;return n=void 0===n?a:n,!t&&n>=a?e:i(e,t,n)}},4326(e,t,n){var i=n(28931),a=n(83417),r=n(82237),o=n(95243);e.exports=function(e){return function(t){var n=a(t=o(t))?r(t):void 0,s=n?n[0]:t.charAt(0),l=n?i(n,1).join(""):t.slice(1);return s[e]()+l}}},74967(e,t,n){e.exports="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g},8870(e,t,n){var i=n(65650),a=Object.prototype,r=a.hasOwnProperty,o=a.toString,s=i?i.toStringTag:void 0;e.exports=function(e){var t=r.call(e,s),n=e[s];try{e[s]=void 0;var i=!0}catch(e){}var a=o.call(e);return i&&(t?e[s]=n:delete e[s]),a}},83417(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},29005(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},78942(e,t,n){var i=n(74967),a="object"==typeof self&&self&&self.Object===Object&&self;e.exports=i||a||Function("return this")()},82237(e,t,n){var i=n(52837),a=n(83417),r=n(92013);e.exports=function(e){return a(e)?r(e):i(e)}},92013(e){var t="\\ud800-\\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",a="[^"+t+"]",r="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+i+")?",l="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[a,r,o].join("|")+")"+l+s+")*",u=RegExp(i+"(?="+i+")|"+("(?:"+[a+n+"?",n,r,o,"["+t+"]"].join("|"))+")"+(l+s+c),"g");e.exports=function(e){return e.match(u)||[]}},56005(e,t,n){var i=n(95243),a=n(5485);e.exports=function(e){return a(i(e).toLowerCase())}},53142(e){e.exports=Array.isArray},80547(e){e.exports=function(e){return null!=e&&"object"==typeof e}},51187(e,t,n){var i=n(87379),a=n(80547);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==i(e)}},95243(e,t,n){var i=n(52291);e.exports=function(e){return null==e?"":i(e)}},5485(e,t,n){e.exports=n(4326)("toUpperCase")},30723(e,t,n){var i,a;"u">typeof self&&self,i=n(62500),a=n(43144),e.exports=function(){"use strict";var e,t,n,r,o,s,l,c,u={156:function(e){e.exports=i},111:function(e){e.exports=a},582:function(e,t,n){n.r(t),n.d(t,{__assign:function(){return r},__asyncDelegator:function(){return A},__asyncGenerator:function(){return E},__asyncValues:function(){return k},__await:function(){return $},__awaiter:function(){return f},__classPrivateFieldGet:function(){return C},__classPrivateFieldIn:function(){return z},__classPrivateFieldSet:function(){return D},__createBinding:function(){return m},__decorate:function(){return s},__esDecorate:function(){return c},__exportStar:function(){return y},__extends:function(){return a},__generator:function(){return g},__importDefault:function(){return O},__importStar:function(){return S},__makeTemplateObject:function(){return T},__metadata:function(){return d},__param:function(){return l},__propKey:function(){return h},__read:function(){return v},__rest:function(){return o},__runInitializers:function(){return u},__setFunctionName:function(){return p},__spread:function(){return _},__spreadArray:function(){return w},__spreadArrays:function(){return x},__values:function(){return b}});var i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function a(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)0>t.indexOf(i[a])&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]])}return n}function s(e,t,n,i){var a,r=arguments.length,o=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(r<3?a(o):r>3?a(t,n,o):a(t,n))||o);return r>3&&o&&Object.defineProperty(t,n,o),o}function l(e,t){return function(n,i){t(n,i,e)}}function c(e,t,n,i,a,r){function o(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var s,l=i.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?i.static?e:e.prototype:null,h=t||(u?Object.getOwnPropertyDescriptor(u,i.name):{}),p=!1,d=n.length-1;d>=0;d--){var f={};for(var g in i)f[g]="access"===g?{}:i[g];for(var g in i.access)f.access[g]=i.access[g];f.addInitializer=function(e){if(p)throw TypeError("Cannot add initializers after decoration has completed");r.push(o(e||null))};var m=(0,n[d])("accessor"===l?{get:h.get,set:h.set}:h[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(s=o(m.get))&&(h.get=s),(s=o(m.set))&&(h.set=s),(s=o(m.init))&&a.unshift(s)}else(s=o(m))&&("field"===l?a.unshift(s):h[c]=s)}u&&Object.defineProperty(u,i.name,h),p=!0}function u(e,t,n){for(var i=arguments.length>2,a=0;a<t.length;a++)n=i?t[a].call(e,n):t[a].call(e);return i?n:void 0}function h(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function d(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,n,i){return new(n||(n=Promise))(function(a,r){function o(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((i=i.apply(e,t||[])).next())})}function g(e,t){var n,i,a,r,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(s){return function(l){var c=[s,l];if(n)throw TypeError("Generator is already executing.");for(;r&&(r=0,c[0]&&(o=0)),o;)try{if(n=1,i&&(a=2&c[0]?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,i=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){o.label=c[1];break}if(6===c[0]&&o.label<a[1]){o.label=a[1],a=c;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(c);break}a[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],i=0}finally{n=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var m=Object.create?function(e,t,n,i){void 0===i&&(i=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,a)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||m(t,e,n)}function b(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,a,r=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function x(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),a=0;for(t=0;t<n;t++)for(var r=arguments[t],o=0,s=r.length;o<s;o++,a++)i[a]=r[o];return i}function w(e,t,n){if(n||2==arguments.length)for(var i,a=0,r=t.length;a<r;a++)!i&&a in t||(i||(i=Array.prototype.slice.call(t,0,a)),i[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))}function $(e){return this instanceof $?(this.v=e,this):new $(e)}function E(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var i,a=n.apply(e,t||[]),r=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(e){a[e]&&(i[e]=function(t){return new Promise(function(n,i){r.push([e,t,n,i])>1||s(e,t)})})}function s(e,t){var n;try{(n=a[e](t)).value instanceof $?Promise.resolve(n.value.v).then(l,c):u(r[0][2],n)}catch(e){u(r[0][3],e)}}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),r.shift(),r.length&&s(r[0][0],r[0][1])}}function A(e){var t,n;return t={},i("next"),i("throw",function(e){throw e}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,a){t[i]=e[i]?function(t){return(n=!n)?{value:$(e[i](t)),done:!1}:a?a(t):t}:a}}function k(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=b(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise(function(i,a){var r;r=(t=e[n](t)).done,Promise.resolve(t.value).then(function(e){i({value:e,done:r})},a)})}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var M=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&m(t,e,n);return M(t,e),t}function O(e){return e&&e.__esModule?e:{default:e}}function C(e,t,n,i){if("a"===n&&!i)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)}function D(e,t,n,i,a){if("m"===i)throw TypeError("Private method is not writable");if("a"===i&&!a)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?a.call(e,n):a?a.value=n:t.set(e,n),n}function z(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}t.default={__extends:a,__assign:r,__rest:o,__decorate:s,__param:l,__metadata:d,__awaiter:f,__generator:g,__createBinding:m,__exportStar:y,__values:b,__read:v,__spread:_,__spreadArrays:x,__spreadArray:w,__await:$,__asyncGenerator:E,__asyncDelegator:A,__asyncValues:k,__makeTemplateObject:T,__importStar:S,__importDefault:O,__classPrivateFieldGet:C,__classPrivateFieldSet:D,__classPrivateFieldIn:z}}},h={};function p(e){var t=h[e];if(void 0!==t)return t.exports;var n=h[e]={exports:{}};return u[e](n,n.exports,p),n.exports}p.d=function(e,t){for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},p.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var d={};return Object.defineProperty(d,"__esModule",{value:!0}),d.useReactToPrint=d.PrintContextConsumer=void 0,e=p(582),t=p(156),n=p(111),r=Object.prototype.hasOwnProperty.call(t,"createContext"),o=Object.prototype.hasOwnProperty.call(t,"useMemo")&&Object.prototype.hasOwnProperty.call(t,"useCallback"),d.PrintContextConsumer=(s=r?t.createContext({}):null)?s.Consumer:function(){return null},l={copyStyles:!0,pageStyle:"\n @page {\n /* Remove browser default header (title) and footer (url) */\n margin: 0;\n }\n @media print {\n body {\n /* Tell browsers to print background colors */\n -webkit-print-color-adjust: exact; /* Chrome/Safari/Edge/Opera */\n color-adjust: exact; /* Firefox */\n }\n }\n ",removeAfterPrint:!1,suppressErrors:!1},d.default=c=function(i){function a(){var t=null!==i&&i.apply(this,arguments)||this;return t.startPrint=function(e){var n=t.props,i=n.onAfterPrint,a=n.onPrintError,r=n.print,o=n.documentTitle;setTimeout(function(){var n,s;if(e.contentWindow)if(e.contentWindow.focus(),r)r(e).then(function(){return null==i?void 0:i()}).then(function(){return t.handleRemoveIframe()}).catch(function(e){a?a("print",e):t.logMessages(["An error was thrown by the specified `print` function"])});else{if(e.contentWindow.print){var l=null!=(s=null==(n=e.contentDocument)?void 0:n.title)?s:"",c=e.ownerDocument.title;o&&(e.ownerDocument.title=o,e.contentDocument&&(e.contentDocument.title=o)),e.contentWindow.print(),o&&(e.ownerDocument.title=c,e.contentDocument&&(e.contentDocument.title=l))}else t.logMessages(["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."]);null==i||i(),t.handleRemoveIframe()}else t.logMessages(["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/gregnb/react-to-print/issues/"])},500)},t.triggerPrint=function(e){var n=t.props,i=n.onBeforePrint,a=n.onPrintError;if(i){var r=i();r&&"function"==typeof r.then?r.then(function(){t.startPrint(e)}).catch(function(e){a&&a("onBeforePrint",e)}):t.startPrint(e)}else t.startPrint(e)},t.handleClick=function(){var e=t.props,n=e.onBeforeGetContent,i=e.onPrintError;if(n){var a=n();a&&"function"==typeof a.then?a.then(t.handlePrint).catch(function(e){i&&i("onBeforeGetContent",e)}):t.handlePrint()}else t.handlePrint()},t.handlePrint=function(){var i=t.props,a=i.bodyClass,r=i.content,o=i.copyStyles,s=i.fonts,l=i.pageStyle,c=i.nonce,u=r();if(void 0!==u)if(null!==u){var h=document.createElement("iframe");h.width="".concat(document.documentElement.clientWidth,"px"),h.height="".concat(document.documentElement.clientHeight,"px"),h.style.position="absolute",h.style.top="-".concat(document.documentElement.clientHeight+100,"px"),h.style.left="-".concat(document.documentElement.clientWidth+100,"px"),h.id="printWindow",h.srcdoc="<!DOCTYPE html>";var p=(0,n.findDOMNode)(u);if(p){var d=p.cloneNode(!0),f=d instanceof Text,g=document.querySelectorAll("link[rel='stylesheet']"),m=f?[]:d.querySelectorAll("img"),y=f?[]:d.querySelectorAll("video"),b=s?s.length:0;t.numResourcesToLoad=g.length+m.length+y.length+b,t.resourcesLoaded=[],t.resourcesErrored=[];var v=function(n,i){t.resourcesLoaded.includes(n)?t.logMessages(["Tried to mark a resource that has already been handled",n],"debug"):(i?(t.logMessages(e.__spreadArray(['"react-to-print" was unable to load a resource but will continue attempting to print the page'],e.__read(i),!1)),t.resourcesErrored.push(n)):t.resourcesLoaded.push(n),t.resourcesLoaded.length+t.resourcesErrored.length===t.numResourcesToLoad&&t.triggerPrint(h))};h.onload=function(){h.onload=null;var n,i,r,u,g=h.contentDocument||(null==(i=h.contentWindow)?void 0:i.document);if(g){g.body.appendChild(d),s&&((null==(r=h.contentDocument)?void 0:r.fonts)&&(null==(u=h.contentWindow)?void 0:u.FontFace)?s.forEach(function(e){var t=new FontFace(e.family,e.source,{weight:e.weight,style:e.style});h.contentDocument.fonts.add(t),t.loaded.then(function(){v(t)}).catch(function(e){v(t,["Failed loading the font:",t,"Load error:",e])})}):(s.forEach(function(e){return v(e)}),t.logMessages(['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'])));var b="function"==typeof l?l():l;if("string"!=typeof b)t.logMessages(['"react-to-print" expected a "string" from `pageStyle` but received "'.concat(typeof b,'". Styles from `pageStyle` will not be applied.')]);else{var _=g.createElement("style");c&&(_.setAttribute("nonce",c),g.head.setAttribute("nonce",c)),_.appendChild(g.createTextNode(b)),g.head.appendChild(_)}if(a&&(n=g.body.classList).add.apply(n,e.__spreadArray([],e.__read(a.split(" ")),!1)),!f){for(var x=f?[]:p.querySelectorAll("canvas"),w=g.querySelectorAll("canvas"),$=0;$<x.length;++$){var E=x[$],A=w[$].getContext("2d");A&&A.drawImage(E,0,0)}for($=0;$<m.length;$++)!function(e){var t=m[e],n=t.getAttribute("src");if(n){var i=new Image;i.onload=function(){return v(t)},i.onerror=function(e,n,i,a,r){return v(t,["Error loading <img>",t,"Error",r])},i.src=n}else v(t,['Found an <img> tag with an empty "src" attribute. This prevents pre-loading it. The <img> is:',t])}($);for($=0;$<y.length;$++)!function(e){var t=y[e];t.preload="auto";var n=t.getAttribute("poster");if(n){var i=new Image;i.onload=function(){return v(t)},i.onerror=function(e,i,a,r,o){return v(t,["Error loading video poster",n,"for video",t,"Error:",o])},i.src=n}else t.readyState>=2?v(t):(t.onloadeddata=function(){return v(t)},t.onerror=function(e,n,i,a,r){return v(t,["Error loading video",t,"Error",r])},t.onstalled=function(){return v(t,["Loading video stalled, skipping",t])})}($);var k="input",T=p.querySelectorAll(k),M=g.querySelectorAll(k);for($=0;$<T.length;$++)M[$].value=T[$].value;var S="input[type=checkbox],input[type=radio]",O=p.querySelectorAll(S),C=g.querySelectorAll(S);for($=0;$<O.length;$++)C[$].checked=O[$].checked;var D="select",z=p.querySelectorAll(D),L=g.querySelectorAll(D);for($=0;$<z.length;$++)L[$].value=z[$].value}if(o)for(var R=document.querySelectorAll("style, link[rel='stylesheet']"),I=($=0,R.length);$<I;++$)!function(e){var n=R[e];if("style"===n.tagName.toLowerCase()){var i=g.createElement(n.tagName),a=n.sheet;if(a){var r="";try{for(var o=a.cssRules.length,s=0;s<o;++s)"string"==typeof a.cssRules[s].cssText&&(r+="".concat(a.cssRules[s].cssText,"\r\n"))}catch(e){t.logMessages(["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/gregnb/react-to-print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",n],"warning")}i.setAttribute("id","react-to-print-".concat(e)),c&&i.setAttribute("nonce",c),i.appendChild(g.createTextNode(r)),g.head.appendChild(i)}}else if(n.getAttribute("href"))if(n.hasAttribute("disabled"))t.logMessages(["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",n],"warning"),v(n);else{for(var l=g.createElement(n.tagName),u=(s=0,n.attributes.length);s<u;++s){var h=n.attributes[s];h&&l.setAttribute(h.nodeName,h.nodeValue||"")}l.onload=function(){return v(l)},l.onerror=function(e,t,n,i,a){return v(l,["Failed to load",l,"Error:",a])},c&&l.setAttribute("nonce",c),g.head.appendChild(l)}else t.logMessages(["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",n],"warning"),v(n)}($)}0!==t.numResourcesToLoad&&o||t.triggerPrint(h)},t.handleRemoveIframe(!0),document.body.appendChild(h)}else t.logMessages(['"react-to-print" could not locate the DOM node corresponding with the `content` prop'])}else t.logMessages(['There is nothing to print because the "content" prop returned "null". Please ensure "content" is renderable before allowing "react-to-print" to be called.']);else t.logMessages(["To print a functional component ensure it is wrapped with `React.forwardRef`, and ensure the forwarded ref is used. See the README for an example: https://github.com/gregnb/react-to-print#examples"])},t.handleRemoveIframe=function(e){var n=t.props.removeAfterPrint;if(e||n){var i=document.getElementById("printWindow");i&&document.body.removeChild(i)}},t.logMessages=function(e,n){void 0===n&&(n="error"),t.props.suppressErrors||("error"===n?console.error(e):"warning"===n?console.warn(e):"debug"===n&&console.debug(e))},t}return e.__extends(a,i),a.prototype.render=function(){var e=this.props,n=e.children,i=e.trigger;if(i)return t.cloneElement(i(),{onClick:this.handleClick});if(!s)return this.logMessages(['"react-to-print" requires React ^16.3.0 to be able to use "PrintContext"']),null;var a={handlePrint:this.handleClick};return t.createElement(s.Provider,{value:a},n)},a.defaultProps=l,a}(t.Component),d.useReactToPrint=function(n){if(!o)return n.suppressErrors||console.error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"'),function(){throw Error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"')};var i=t.useMemo(function(){return new c(e.__assign(e.__assign({},l),n))},[n]);return t.useCallback(function(){return i.handleClick()},[i])},d}()},76727(e,t,n){"use strict";n.d(t,{U0:()=>P,W5:()=>s.ErrorState,aR:()=>$,pp:()=>O,kx:()=>G});var i=n(62500),a=n.n(i),r=n(53373),o=n.n(r),s=n(64710),l=n(72591),c=n.n(l),u=n(1740),h=n.n(u),p=n(88128),d=n.n(p),f=n(30855),g=n.n(f),m=n(93051),y=n.n(m),b=n(73656),v=n.n(b),_=n(77954),x={};x.styleTagTransform=v(),x.setAttributes=g(),x.insert=d().bind(null,"head"),x.domAPI=h(),x.insertStyleElement=y(),c()(_.A,x);let w=_.A&&_.A.locals?_.A.locals:void 0;function $(e){var t=e.title,n=e.children,i="tablet"===(0,s.useLayoutType)();return a().createElement("div",{className:o()(i?w.tabletHeader:w.desktopHeader)},a().createElement("h4",null,t),n)}n(30449),n(58432);var E=n(17958),A=n(71641),k=function(e){var t=e.width,n=e.height;return a().createElement("svg",{width:void 0===t?"64":t,height:void 0===n?"64":n,viewBox:"0 0 64 64"},a().createElement("title",null,"Empty data illustration"),a().createElement("g",{fill:"none",fillRule:"evenodd"},a().createElement("path",{d:"M38.133 13.186H21.947c-.768.001-1.39.623-1.39 1.391V50.55l-.186.057-3.97 1.216a.743.743 0 01-.927-.493L3.664 12.751a.742.742 0 01.492-.926l6.118-1.874 17.738-5.43 6.119-1.873a.741.741 0 01.926.492L38.076 13l.057.186z",fill:"#F4F4F4"}),a().createElement("path",{d:"M41.664 13L38.026 1.117A1.576 1.576 0 0036.056.07l-8.601 2.633-17.737 5.43-8.603 2.634a1.578 1.578 0 00-1.046 1.97l12.436 40.616a1.58 1.58 0 001.969 1.046l5.897-1.805.185-.057v-.194l-.185.057-5.952 1.822a1.393 1.393 0 01-1.737-.923L.247 12.682a1.39 1.39 0 01.923-1.738L9.772 8.31 27.51 2.881 36.112.247a1.393 1.393 0 011.737.923L41.47 13l.057.186h.193l-.057-.185z",fill:"#8D8D8D"}),a().createElement("path",{d:"M11.378 11.855a.836.836 0 01-.798-.59L9.385 7.361a.835.835 0 01.554-1.042l16.318-4.996a.836.836 0 011.042.554l1.195 3.902a.836.836 0 01-.554 1.043l-16.318 4.995a.831.831 0 01-.244.037z",fill:"#C6C6C6"}),a().createElement("circle",{fill:"#C6C6C6",cx:17.636,cy:2.314,r:1.855}),a().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:17.636,cy:2.314,r:1.175}),a().createElement("path",{d:"M55.893 53.995H24.544a.79.79 0 01-.788-.789V15.644a.79.79 0 01.788-.788h31.349a.79.79 0 01.788.788v37.562a.79.79 0 01-.788.789z",fill:"#F4F4F4"}),a().createElement("path",{d:"M41.47 13H21.948a1.579 1.579 0 00-1.576 1.577V52.4l.185-.057V14.577c.001-.768.623-1.39 1.391-1.39h19.581L41.471 13zm17.02 0H21.947a1.579 1.579 0 00-1.576 1.577v42.478c0 .87.706 1.576 1.576 1.577H58.49a1.579 1.579 0 001.576-1.577V14.577a1.579 1.579 0 00-1.576-1.576zm1.39 44.055c0 .768-.622 1.39-1.39 1.392H21.947c-.768-.001-1.39-.624-1.39-1.392V14.577c0-.768.622-1.39 1.39-1.39H58.49c.768 0 1.39.622 1.39 1.39v42.478z",fill:"#8D8D8D"}),a().createElement("path",{d:"M48.751 17.082H31.686a.836.836 0 01-.835-.835v-4.081c0-.46.374-.834.835-.835H48.75c.461 0 .834.374.835.835v4.08c0 .462-.374.835-.835.836z",fill:"#C6C6C6"}),a().createElement("circle",{fill:"#C6C6C6",cx:40.218,cy:9.755,r:1.855}),a().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:40.218,cy:9.755,r:1.13})))},T=n(56101),M={};M.styleTagTransform=v(),M.setAttributes=g(),M.insert=d().bind(null,"head"),M.domAPI=h(),M.insertStyleElement=y(),c()(T.A,M);let S=T.A&&T.A.locals?T.A.locals:void 0;var O=function(e){var t=(0,A.useTranslation)("@openmrs/esm-patient-chart-app").t,n="tablet"===(0,s.useLayoutType)();return a().createElement(E.Layer,{className:S.layer},a().createElement(E.Tile,{className:S.tile},a().createElement("div",{className:n?S.tabletHeading:S.desktopHeading},a().createElement("h4",null,e.headerTitle)),a().createElement(k,null),a().createElement("p",{className:S.content},t("emptyStateText","There are no {{displayText}} to display for this patient",{displayText:e.displayText})),a().createElement("p",{className:S.action},e.launchForm&&a().createElement(E.Button,{onClick:function(){return e.launchForm()},kind:"ghost",size:n?"lg":"sm"},t("record","Record")," ",t(e.displayText)))))},C=n(32989),D={};D.styleTagTransform=v(),D.setAttributes=g(),D.insert=d().bind(null,"head"),D.domAPI=h(),D.insertStyleElement=y(),c()(C.A,D),C.A&&C.A.locals&&C.A.locals,(0,s.createGlobalStore)("order-basket",{items:{},postDataPrepFunctions:{}}),n(31594);var z="@openmrs/esm-patient-chart-app";function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}(0,s.translateFrom)(z,"Routine"),(0,s.translateFrom)(z,"Stat"),(0,s.translateFrom)(z,"On scheduled date");var R=n(32223),I={};I.styleTagTransform=v(),I.setAttributes=g(),I.insert=d().bind(null,"head"),I.domAPI=h(),I.insertStyleElement=y(),c()(R.A,I);let N=R.A&&R.A.locals?R.A.locals:void 0;var P=function(e){var t,n=e.totalItems,r=e.pageSize,o=e.onPageNumberChange,l=e.pageNumber,c=e.dashboardLinkUrl,u=e.currentItems,h=e.dashboardLinkLabel,p=(0,A.useTranslation)("@openmrs/esm-patient-chart-app").t,d=(t=(0,A.useTranslation)("@openmrs/esm-patient-chart-app").t,{pageSizes:(0,i.useMemo)(function(){var e,t=Math.ceil(n/r);return isNaN(t)&&(t=0),((function(e){if(Array.isArray(e))return L(e)})(e=Array(t).keys())||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return L(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return L(e,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map(function(e){return(e+1)*r})},[r,n]),itemsDisplayed:(0,i.useMemo)(function(){var e=0;return e=r>n?n:r*l>n?r*(l-1)+u:r*l,t("paginationItemsCount","{{pageItemsCount}} / {{count}} items",{count:n,pageItemsCount:e})},[r,n,l,u,t])}),f=d.itemsDisplayed,g=d.pageSizes,m="tablet"===(0,s.useLayoutType)();return a().createElement(a().Fragment,null,n>0&&a().createElement("div",{className:m?N.tablet:N.desktop},a().createElement("div",null,f,c&&a().createElement(s.ConfigurableLink,{to:c,className:N.configurableLink},null!=h?h:p("seeAll","See all"))),a().createElement(E.Pagination,{className:N.pagination,page:l,pageSize:r,pageSizes:g,totalItems:n,onChange:o,pageRangeText:function(e,t){return p("paginationPageText","of {{count}} pages",{count:t})},size:m?"lg":"sm"})))},B=(0,s.createGlobalStore)("patient-chart-global-store",{patientUuid:null,patient:null,visitContext:null,mutateVisitContext:null}),H={setPatient:function(e,t){var n;return{patient:t,patientUuid:null!=(n=null==t?void 0:t.id)?n:null}},setVisitContext:function(e,t,n){return{visitContext:t,mutateVisitContext:n}}};new RegExp(/^(1[0-2]|0?[1-9]):[0-5][0-9]$/);var U=n(42372);function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}function V(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function G(e){var t,n,a,r,o=(0,U.iX)().mutate,l=(t=e,(r=(0,s.useStoreWithActions)(B,H)).patientUuid===t?r:(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){var i;i=n[t],t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i})}return e}({},r),a=a={mutateVisitContext:null,setVisitContext:function(){},patient:null,patientUuid:null,visitContext:null},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(a)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(a,e))}),n)),c=l.visitContext,u=l.mutateVisitContext,h=(0,i.useCallback)(function(t,n){(null==c?void 0:c.uuid)===t&&(null==u||u()),o(new RegExp("".concat(s.restBaseUrl,"/visit\\?patient=").concat(e)),function(e){var i;return(null==e||null==(i=e.data)?void 0:i.results)?V(j({},e),{data:V(j({},e.data),{results:e.data.results.map(function(e){return e.uuid===t?j({},e,n):e})})}):e},!1)},[c,u,o,e]),p=(0,i.useCallback)(function(t){o(new RegExp("".concat(s.restBaseUrl,"/visit\\?patient=").concat(e)),function(e){var n;return(null==e||null==(n=e.data)?void 0:n.results)?V(j({},e),{data:V(j({},e.data),{results:e.data.results.filter(function(e){return e.uuid!==t})})}):e},!1),(null==c?void 0:c.uuid)===t&&(null==u||u())},[c,u,o,e]),d=(0,i.useCallback)(function(t){o(new RegExp("".concat(s.restBaseUrl,"/visit\\?patient=").concat(e)),function(e){var n,i;return(null==e||null==(n=e.data)?void 0:n.results)?V(j({},e),{data:V(j({},e.data),{results:[t].concat(function(e){if(Array.isArray(e))return F(e)}(i=e.data.results)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e){if(e){if("string"==typeof e)return F(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return F(e,void 0)}}(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())})}):e},!1),t.stopDatetime||o("".concat(s.restBaseUrl,"/visit?patient=").concat(e,"&v=custom"),function(e){return V(j({},e),{data:t})},!1)},[o,e]),f=(0,i.useCallback)(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=[];return t.encounters&&n.push(o(new RegExp("".concat(s.restBaseUrl,"/encounter\\?patient=").concat(e)))),t.notes&&n.push(o(new RegExp("".concat(s.restBaseUrl,"/encounter\\?patient=").concat(e,".*obs=")))),t.orders&&n.push(o(new RegExp("".concat(s.restBaseUrl,"/order\\?patient=").concat(e)))),t.observations&&n.push(o(new RegExp("".concat(s.restBaseUrl,"/obs\\?patient=").concat(e)))),Promise.all(n)},[o,e]),g=(0,i.useCallback)(function(){return o("".concat(s.restBaseUrl,"/visit?patient=").concat(e,"&v=custom"))},[o,e]),m=(0,i.useCallback)(function(){return o("".concat(s.restBaseUrl,"/visit?patient=").concat(e,"&v=custom")),o(new RegExp("".concat(s.restBaseUrl,"/visit\\?patient=").concat(e))),f({encounters:!0,notes:!0,orders:!0,observations:!0})},[o,e,f]);return{addVisitOptimistically:d,invalidateVisitRelatedData:f,removeVisitOptimistically:p,revalidateAllVisitData:m,revalidateCurrentVisit:g,updateVisitOptimistically:h}}},51890(e,t,n){"use strict";let i,a,r,o,s,l,c,u,h,p,d,f,g,m,y,b,v,_,x,w,$,E,A,k,T,M,S,O,C,D,z,L,R,I,N,P,B,H,U,F,j,V,G,W,q,Y,Z,X,K,Q,J,ee,et,en,ei,ea,er,eo,es,el,ec;n.d(t,{Wh:()=>e1,bl:()=>mk});var eu,eh,ep,ed,ef,eg,em,ey,eb=n(62500),ev=n.n(eb),e_=((i=e_||{}).RENDER_FINISHED="render-finished",i.RESIZE="chart-resize",i.MOUSEOVER="chart-mouseover",i.MOUSEOUT="chart-mouseout",i),ex=((a=ex||{}).SHOW="show-modal",a.HIDE="hide-modal",a),ew=((r=ew||{}).UPDATE="model-update",r),e$=((o=e$||{}).SHOW_OVERFLOW_MENU="show-toolbar-overflow-menu",o.HIDE_OVERFLOW_MENU="hide-toolbar-overflow-menu",o.BUTTON_CLICK="toolbar-button-click",o.SHOW_TOOLTIP="toolbar-show-tooltip",o.HIDE_TOOLTIP="toolbar-hide-tooltip",o),eE=((s=eE||{}).UPDATE="zoom-bar-update",s.SELECTION_START="zoom-bar-selection-start",s.SELECTION_IN_PROGRESS="zoom-bar-selection-in-progress",s.SELECTION_END="zoom-bar-selection-end",s),eA=((l=eA||{}).CHANGE="zoom-domain-change",l),ek=((c=ek||{}).CANVAS_ZOOM_IN="canvas-zoom-in",c.CANVAS_ZOOM_OUT="canvas-zoom-out",c),eT=((u=eT||{}).LABEL_MOUSEOVER="axis-label-mouseover",u.LABEL_MOUSEMOVE="axis-label-mousemove",u.LABEL_CLICK="axis-label-click",u.LABEL_MOUSEOUT="axis-label-mouseout",u.LABEL_FOCUS="axis-label-focus",u.LABEL_BLUR="axis-label-blur",u.RENDER_COMPLETE="axis-render-complete",u),eM=((h=eM||{}).POINT_MOUSEOVER="scatter-mouseover",h.POINT_MOUSEMOVE="scatter-mousemove",h.POINT_CLICK="scatter-click",h.POINT_MOUSEOUT="scatter-mouseout",h),eS=((p=eS||{}).WORD_MOUSEOVER="wordcloud-word-mouseover",p.WORD_MOUSEMOVE="wordcloud-word-mousemove",p.WORD_CLICK="wordcloud-word-click",p.WORD_MOUSEOUT="wordcloud-word-mouseout",p),eO=((d=eO||{}).SLICE_MOUSEOVER="pie-slice-mouseover",d.SLICE_MOUSEMOVE="pie-slice-mousemove",d.SLICE_CLICK="pie-slice-click",d.SLICE_MOUSEOUT="pie-slice-mouseout",d),eC=((f=eC||{}).ARC_MOUSEOVER="gauge-arc-mouseover",f.ARC_MOUSEMOVE="gauge-arc-mousemove",f.ARC_CLICK="gauge-arc-click",f.ARC_MOUSEOUT="gauge-arc-mouseout",f),eD=((g=eD||{}).BAR_MOUSEOVER="bar-mouseover",g.BAR_MOUSEMOVE="bar-mousemove",g.BAR_CLICK="bar-click",g.BAR_MOUSEOUT="bar-mouseout",g),ez=((m=ez||{}).BOX_MOUSEOVER="box-mouseover",m.BOX_MOUSEMOVE="box-mousemove",m.BOX_CLICK="box-click",m.BOX_MOUSEOUT="box-mouseout",m.OUTLIER_MOUSEOVER="outlier-mouseover",m.OUTLIER_MOUSEMOVE="outlier-mousemove",m.OUTLIER_CLICK="outlier-click",m.OUTLIER_MOUSEOUT="outlier-mouseout",m),eL=((y=eL||{}).SCATTER_MOUSEOVER="scatter-mouseover",y.SCATTER_MOUSEMOVE="scatter-mousemove",y.SCATTER_CLICK="scatter-click",y.SCATTER_MOUSEOUT="scatter-mouseout",y),eR=((b=eR||{}).POINT_MOUSEOVER="scatter-mouseover",b.POINT_MOUSEMOVE="scatter-mousemove",b.POINT_CLICK="scatter-click",b.POINT_MOUSEOUT="scatter-mouseout",b),eI=((v=eI||{}).X_AXIS_MOUSEOVER="radar-x-axis-mouseover",v.X_AXIS_MOUSEMOVE="radar-x-axis-mousemove",v.X_AXIS_CLICK="radar-x-axis-click",v.X_AXIS_MOUSEOUT="radar-x-axis-mouseout",v),eN=((_=eN||{}).NODE_MOUSEOVER="tree-node-mouseover",_.NODE_CLICK="tree-node-click",_.NODE_MOUSEOUT="tree-node-mouseout",_),eP=((x=eP||{}).LEAF_MOUSEOVER="leaf-mouseover",x.LEAF_MOUSEMOVE="leaf-mousemove",x.LEAF_CLICK="leaf-click",x.LEAF_MOUSEOUT="leaf-mouseout",x),eB=((w=eB||{}).SHOW="show-tooltip",w.MOVE="move-tooltip",w.HIDE="hide-tooltip",w),eH=(($=eH||{}).SHOW="show-threshold",$.HIDE="hide-threshold",$),eU=((E=eU||{}).ITEM_HOVER="legend-item-onhover",E.ITEM_CLICK="legend-item-onclick",E.ITEM_MOUSEOUT="legend-item-onmouseout",E.ITEMS_UPDATE="legend-items-update",E),eF=((A=eF||{}).CIRCLE_MOUSEOVER="circle-leaf-mouseover",A.CIRCLE_CLICK="circle-leaf-click",A.CIRCLE_MOUSEOUT="circle-leaf-mouseout",A.CIRCLE_MOUSEMOVE="circle-leaf-mousemove",A),ej=((k=ej||{}).NODE_MOUSEOVER="alluvial-node-mouseover",k.NODE_CLICK="alluvial-node-click",k.NODE_MOUSEOUT="alluvial-node-mouseout",k.NODE_MOUSEMOVE="alluvial-node-mousemove",k.LINE_MOUSEOVER="alluvial-line-mouseover",k.LINE_CLICK="alluvial-line-click",k.LINE_MOUSEOUT="alluvial-line-mouseout",k.LINE_MOUSEMOVE="alluvial-line-mousemove",k),eV=((T=eV||{}).METER_MOUSEOVER="meter-mouseover",T.METER_CLICK="meter-click",T.METER_MOUSEOUT="meter-mouseout",T.METER_MOUSEMOVE="meter-mousemove",T),eG=((M=eG||{}).HEATMAP_MOUSEOVER="heatmap-mouseover",M.HEATMAP_CLICK="heatmap-click",M.HEATMAP_MOUSEOUT="heatmap-mouseout",M.HEATMAP_MOUSEMOVE="hetmap-mousemove",M),eW=((S=eW||{}).CHOROPLETH_MOUSEOVER="choropleth-mouseover",S.CHOROPLETH_CLICK="choropleth-click",S.CHOROPLETH_MOUSEOUT="choropleth-mouseout",S.CHOROPLETH_MOUSEMOVE="choropleth-mousemove",S);let eq=Object.freeze(Object.defineProperty({__proto__:null,Alluvial:ej,Area:eM,Axis:eT,Bar:eD,Boxplot:ez,CanvasZoom:ek,Chart:e_,Choropleth:eW,CirclePack:eF,Gauge:eC,Heatmap:eG,Legend:eU,Line:eR,Meter:eV,Modal:ex,Model:ew,Pie:eO,Radar:eI,Scatter:eL,Threshold:eH,Toolbar:e$,Tooltip:eB,Tree:eN,Treemap:eP,WordCloud:eS,ZoomBar:eE,ZoomDomain:eA},Symbol.toStringTag,{value:"Module"}));var eY=((O=eY||{}).HTML="html",O.SVG="svg",O),eZ=((C=eZ||{}).WHITE="white",C.G100="g100",C.G90="g90",C.G10="g10",C),eX=((D=eX||{}).BACKGROUND="background",D.FILL="fill",D.STROKE="stroke",D.TOOLTIP="tooltip",D),eK=((z=eK||{}).LEFT="left",z.RIGHT="right",z.TOP="top",z.BOTTOM="bottom",z),eQ=((L=eQ||{}).GRAPH_VIEW="graph_view",L.SLIDER_VIEW="slider_view",L),eJ=((R=eJ||{}).END_LINE="end_line",R.MID_LINE="mid_line",R.FRONT_LINE="front_line",R.NONE="none",R),e0=((I=e0||{}).VERTICAL="vertical",I.HORIZONTAL="horizontal",I),e1=((N=e1||{}).TIME="time",N.LINEAR="linear",N.LOG="log",N.LABELS="labels",N.LABELS_RATIO="labels-ratio",N),e2=((P=e2||{}).RIGHT="right",P.LEFT="left",P.TOP="top",P.BOTTOM="bottom",P),e3=((B=e3||{}).LEFT="left",B.CENTER="center",B.RIGHT="right",B),e5=((H=e5||{}).HORIZONTAL="horizontal",H.VERTICAL="vertical",H),e4=((U=e4||{}).TREE="tree",U.DENDROGRAM="dendrogram",U),e6=((F=e6||{}).ROW="row",F.COLUMN="column",F.ROW_REVERSE="row-reverse",F.COLUMN_REVERSE="column-reverse",F),e8=((j=e8||{}).FIXED="fixed",j.PREFERRED="preferred",j.STRETCH="stretch",j),e7=((V=e7||{}).CENTER="center",V),e9=((G=e9||{}).LEFT="left",G.RIGHT="right",G),te=((W=te||{}).GRID="grid",W.VERT_OR_HORIZ="vertOrHoriz",W.PIE="pie",W.DONUT="donut",W),tt=((q=tt||{}).START="start",q.MIDDLE="middle",q.END="end",q),tn=((Y=tn||{}).BASELINE="baseline",Y.MIDDLE="middle",Y.HANGING="hanging",Y),ti=((Z=ti||{}).SEMI="semi",Z.FULL="full",Z),ta=((X=ta||{}).UP="up",X.DOWN="down",X),tr=((K=tr||{}).SUCCESS="success",K.WARNING="warning",K.DANGER="danger",K),to=((Q=to||{}).ALWAYS="always",Q.AUTO="auto",Q.NEVER="never",Q),ts=((J=ts||{}).SCATTER="scatter",J.LINE="line",J.SIMPLE_BAR="simple-bar",J.STACKED_BAR="stacked-bar",J.GROUPED_BAR="grouped-bar",J.AREA="area",J.STACKED_AREA="stacked-area",J),tl=((ee=tl||{}).EXPORT_CSV="Export as CSV",ee.EXPORT_PNG="Export as PNG",ee.EXPORT_JPG="Export as JPG",ee.ZOOM_IN="Zoom in",ee.ZOOM_OUT="Zoom out",ee.RESET_ZOOM="Reset zoom",ee.MAKE_FULLSCREEN="Make fullscreen",ee.EXIT_FULLSCREEN="Exit fullscreen",ee.SHOW_AS_DATATABLE="Show as data-table",ee.CUSTOM="Custom",ee),tc=((et=tc||{}).LEFT="left",et.RIGHT="right",et),tu=((en=tu||{}).CHECKBOX="checkbox",en.RADIUS="radius",en.AREA="area",en.SIZE="size",en.LINE="line",en.QUARTILE="quartile",en.ZOOM="zoom",en),th=((ei=th||{}).LINEAR="linear",ei.QUANTIZE="quantize",ei),tp=((ea=tp||{}).ON="on",ea.AUTO="auto",ea.OFF="off",ea),td=((er=td||{}).DEFAULT="default",er.HOVERABLE="hoverable",er),tf=((eo=tf||{}).geoEqualEarth="geoEqualEarth",eo.geoAlbers="geoAlbers",eo.geoConicEqualArea="geoConicEqualArea",eo.geoConicEquidistant="geoConicEquidistant",eo.geoEquirectangular="geoEquirectangular",eo.geoMercator="geoMercator",eo.geoNaturalEarth1="geoNaturalEarth1",eo),tg=((es=tg||{})["15seconds"]="15seconds",es.minute="minute",es["30minutes"]="30minutes",es.hourly="hourly",es.daily="daily",es.weekly="weekly",es.monthly="monthly",es.quarterly="quarterly",es.yearly="yearly",es);function tm(e){return (t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function ty(e){return(t,n)=>{let i;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,a=n?.width?String(n.width):t;i=e.formattingValues[a]||e.formattingValues[t]}else{let t=e.defaultWidth,a=n?.width?String(n.width):e.defaultWidth;i=e.values[a]||e.values[t]}return i[e.argumentCallback?e.argumentCallback(t):t]}}function tb(e){return(t,n={})=>{let i,a=n.width,r=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],o=t.match(r);if(!o)return null;let s=o[0],l=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(l,e=>e.test(s)):function(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(l,e=>e.test(s));return i=e.valueCallback?e.valueCallback(c):c,{value:i=n.valueCallback?n.valueCallback(i):i,rest:t.slice(s.length)}}}let tv=Symbol.for("constructDateFrom");function t_(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&tv in e?e[tv](t):e instanceof Date?new e.constructor(t):new Date(t)}function tx(e,...t){let n=t_.bind(null,t.find(e=>"object"==typeof e));return t.map(n)}let tw={};function t$(e,t){return t_(t||e,e)}function tE(e,t){let n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??tw.weekStartsOn??tw.locale?.options?.weekStartsOn??0,i=t$(e,t?.in),a=i.getDay();return i.setDate(i.getDate()-(7*(a<n)+a-n)),i.setHours(0,0,0,0),i}let tA={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},tk={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},tT={ordinalNumber:(e,t)=>{let n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ty({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ty({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:ty({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ty({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:ty({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},tM={ordinalNumber:(oi={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{let n=e.match(oi.matchPattern);if(!n)return null;let i=n[0],a=e.match(oi.parsePattern);if(!a)return null;let r=oi.valueCallback?oi.valueCallback(a[0]):a[0];return{value:r=t.valueCallback?t.valueCallback(r):r,rest:e.slice(i.length)}}),era:tb({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:tb({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:tb({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:tb({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:tb({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},tS={code:"en-US",formatDistance:(e,t,n)=>{let i,a=tA[e];return i="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i},formatLong:{date:tm({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:tm({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:tm({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:(e,t,n,i)=>tk[e],localize:tT,match:tM,options:{weekStartsOn:0,firstWeekContainsDate:1}};var tO="object"==typeof global&&global&&global.Object===Object&&global,tC="object"==typeof self&&self&&self.Object===Object&&self,tD=tO||tC||Function("return this")(),tz=tD.Symbol,tL=Object.prototype,tR=tL.hasOwnProperty,tI=tL.toString,tN=tz?tz.toStringTag:void 0,tP=Object.prototype.toString,tB=tz?tz.toStringTag:void 0;function tH(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":tB&&tB in Object(e)?function(e){var t=tR.call(e,tN),n=e[tN];try{e[tN]=void 0;var i=!0}catch{}var a=tI.call(e);return i&&(t?e[tN]=n:delete e[tN]),a}(e):tP.call(e)}function tU(e){return null!=e&&"object"==typeof e}function tF(e){return"symbol"==typeof e||tU(e)&&"[object Symbol]"==tH(e)}function tj(e,t){for(var n=-1,i=null==e?0:e.length,a=Array(i);++n<i;)a[n]=t(e[n],n,e);return a}var tV=Array.isArray,tG=tz?tz.prototype:void 0,tW=tG?tG.toString:void 0;function tq(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function tY(e){return e}function tZ(e){if(!tq(e))return!1;var t=tH(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var tX=tD["__core-js_shared__"],tK=(oa=/[^.]+$/.exec(tX&&tX.keys&&tX.keys.IE_PROTO||""))?"Symbol(src)_1."+oa:"",tQ=Function.prototype.toString;function tJ(e){if(null!=e){try{return tQ.call(e)}catch{}try{return e+""}catch{}}return""}var t0=/^\[object .+?Constructor\]$/,t1=Object.prototype,t2=Function.prototype.toString,t3=t1.hasOwnProperty,t5=RegExp("^"+t2.call(t3).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function t4(e,t){var n=e?.[t];return tq(n)&&(!tK||!(tK in n))&&(tZ(n)?t5:t0).test(tJ(n))?n:void 0}var t6=t4(tD,"WeakMap"),t8=Object.create,t7=function(){function e(){}return function(t){if(!tq(t))return{};if(t8)return t8(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function t9(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}var ne=Date.now,nt=function(){try{var e=t4(Object,"defineProperty");return e({},"",{}),e}catch{}}(),nn=(or=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:tY,oo=0,os=0,function(){var e=ne(),t=16-(e-os);if(os=e,t>0){if(++oo>=800)return arguments[0]}else oo=0;return or.apply(void 0,arguments)});function ni(e){return e!=e}function na(e,t){return!!(null==e?0:e.length)&&(t==t?function(e,t){for(var n=-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}(e,t):function(e,t){for(var n=e.length,i=-1;++i<n;)if(t(e[i],i,e))return i;return -1}(e,ni))>-1}var nr=/^(?:0|[1-9]\d*)$/;function no(e,t){var n=typeof e;return!!(t=t??0x1fffffffffffff)&&("number"==n||"symbol"!=n&&nr.test(e))&&e>-1&&e%1==0&&e<t}function ns(e,t,n){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function nl(e,t){return e===t||e!=e&&t!=t}var nc=Object.prototype.hasOwnProperty;function nu(e,t,n){var i=e[t];nc.call(e,t)&&nl(i,n)&&(void 0!==n||t in e)||ns(e,t,n)}function nh(e,t,n,i){var a=!n;n||(n={});for(var r=-1,o=t.length;++r<o;){var s=t[r],l=void 0;void 0===l&&(l=e[s]),a?ns(n,s,l):nu(n,s,l)}return n}var np=Math.max;function nd(e,t,n){return t=np(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,r=np(i.length-t,0),o=Array(r);++a<r;)o[a]=i[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=i[a];return s[t]=n(o),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}function nf(e,t){return nn(nd(e,t,tY),e+"")}function ng(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function nm(e){return null!=e&&ng(e.length)&&!tZ(e)}var ny=Object.prototype;function nb(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ny)}function nv(e){return tU(e)&&"[object Arguments]"==tH(e)}var n_=Object.prototype,nx=n_.hasOwnProperty,nw=n_.propertyIsEnumerable,n$=nv(function(){return arguments}())?nv:function(e){return tU(e)&&nx.call(e,"callee")&&!nw.call(e,"callee")},nE="object"==typeof exports&&exports&&!exports.nodeType&&exports,nA=nE&&"object"==typeof module&&module&&!module.nodeType&&module,nk=nA&&nA.exports===nE?tD.Buffer:void 0,nT=(nk?nk.isBuffer:void 0)||function(){return!1},nM={};function nS(e){return function(t){return e(t)}}nM["[object Float32Array]"]=nM["[object Float64Array]"]=nM["[object Int8Array]"]=nM["[object Int16Array]"]=nM["[object Int32Array]"]=nM["[object Uint8Array]"]=nM["[object Uint8ClampedArray]"]=nM["[object Uint16Array]"]=nM["[object Uint32Array]"]=!0,nM["[object Arguments]"]=nM["[object Array]"]=nM["[object ArrayBuffer]"]=nM["[object Boolean]"]=nM["[object DataView]"]=nM["[object Date]"]=nM["[object Error]"]=nM["[object Function]"]=nM["[object Map]"]=nM["[object Number]"]=nM["[object Object]"]=nM["[object RegExp]"]=nM["[object Set]"]=nM["[object String]"]=nM["[object WeakMap]"]=!1;var nO="object"==typeof exports&&exports&&!exports.nodeType&&exports,nC=nO&&"object"==typeof module&&module&&!module.nodeType&&module,nD=nC&&nC.exports===nO&&tO.process,nz=function(){try{return nC&&nC.require&&nC.require("util").types||nD&&nD.binding&&nD.binding("util")}catch{}}(),nL=nz&&nz.isTypedArray,nR=nL?nS(nL):function(e){return tU(e)&&ng(e.length)&&!!nM[tH(e)]},nI=Object.prototype.hasOwnProperty;function nN(e,t){var n=tV(e),i=!n&&n$(e),a=!n&&!i&&nT(e),r=!n&&!i&&!a&&nR(e),o=n||i||a||r,s=o?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],l=s.length;for(var c in e)(t||nI.call(e,c))&&!(o&&("length"==c||a&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||no(c,l)))&&s.push(c);return s}function nP(e,t){return function(n){return e(t(n))}}var nB=nP(Object.keys,Object),nH=Object.prototype.hasOwnProperty;function nU(e){if(!nb(e))return nB(e);var t=[];for(var n in Object(e))nH.call(e,n)&&"constructor"!=n&&t.push(n);return t}function nF(e){return nm(e)?nN(e):nU(e)}var nj=Object.prototype.hasOwnProperty;function nV(e){return nm(e)?nN(e,!0):function(e){if(!tq(e)){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}var i=nb(e),a=[];for(var r in e)"constructor"==r&&(i||!nj.call(e,r))||a.push(r);return a}(e)}var nG=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nW=/^\w*$/;function nq(e,t){if(tV(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||tF(e))||nW.test(e)||!nG.test(e)||null!=t&&e in Object(t)}var nY=t4(Object,"create"),nZ=Object.prototype.hasOwnProperty,nX=Object.prototype.hasOwnProperty;function nK(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function nQ(e,t){for(var n=e.length;n--;)if(nl(e[n][0],t))return n;return -1}nK.prototype.clear=function(){this.__data__=nY?nY(null):{},this.size=0},nK.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},nK.prototype.get=function(e){var t=this.__data__;if(nY){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return nZ.call(t,e)?t[e]:void 0},nK.prototype.has=function(e){var t=this.__data__;return nY?void 0!==t[e]:nX.call(t,e)},nK.prototype.set=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=nY&&void 0===t?"__lodash_hash_undefined__":t,this};var nJ=Array.prototype.splice;function n0(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}n0.prototype.clear=function(){this.__data__=[],this.size=0},n0.prototype.delete=function(e){var t=this.__data__,n=nQ(t,e);return!(n<0)&&(n==t.length-1?t.pop():nJ.call(t,n,1),--this.size,!0)},n0.prototype.get=function(e){var t=this.__data__,n=nQ(t,e);return n<0?void 0:t[n][1]},n0.prototype.has=function(e){return nQ(this.__data__,e)>-1},n0.prototype.set=function(e,t){var n=this.__data__,i=nQ(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};var n1=t4(tD,"Map");function n2(e,t){var n,i=e.__data__;return("string"==(n=typeof t)||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?i["string"==typeof t?"string":"hash"]:i.map}function n3(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function n5(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var i=arguments,a=t?t.apply(this,i):i[0],r=n.cache;if(r.has(a))return r.get(a);var o=e.apply(this,i);return n.cache=r.set(a,o)||r,o};return n.cache=new(n5.Cache||n3),n}n3.prototype.clear=function(){this.size=0,this.__data__={hash:new nK,map:new(n1||n0),string:new nK}},n3.prototype.delete=function(e){var t=n2(this,e).delete(e);return this.size-=!!t,t},n3.prototype.get=function(e){return n2(this,e).get(e)},n3.prototype.has=function(e){return n2(this,e).has(e)},n3.prototype.set=function(e,t){var n=n2(this,e),i=n.size;return n.set(e,t),this.size+=+(n.size!=i),this},n5.Cache=n3;var n4=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n6=/\\(\\)?/g,n8=(oc=(ol=n5(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(n4,function(e,n,i,a){t.push(i?a.replace(n6,"$1"):n||e)}),t},function(e){return 500===oc.size&&oc.clear(),e})).cache,ol);function n7(e){return null==e?"":function e(t){if("string"==typeof t)return t;if(tV(t))return tj(t,e)+"";if(tF(t))return tW?tW.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}(e)}function n9(e,t){return tV(e)?e:nq(e,t)?[e]:n8(n7(e))}function ie(e){if("string"==typeof e||tF(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function it(e,t){t=n9(t,e);for(var n=0,i=t.length;null!=e&&n<i;)e=e[ie(t[n++])];return n&&n==i?e:void 0}function ii(e,t,n){var i=null==e?void 0:it(e,t);return void 0===i?n:i}function ia(e,t){for(var n=-1,i=t.length,a=e.length;++n<i;)e[a+n]=t[n];return e}var ir=tz?tz.isConcatSpreadable:void 0;function io(e){return tV(e)||n$(e)||!!(ir&&e&&e[ir])}function is(e,t,n,i,a){var r=-1,o=e.length;for(n||(n=io),a||(a=[]);++r<o;){var s=e[r];t>0&&n(s)?t>1?is(s,t-1,n,i,a):ia(a,s):i||(a[a.length]=s)}return a}var il=nP(Object.getPrototypeOf,Object),ic=Object.prototype,iu=Function.prototype.toString,ih=ic.hasOwnProperty,ip=iu.call(Object);function id(e){if(!tU(e)||"[object Object]"!=tH(e))return!1;var t=il(e);if(null===t)return!0;var n=ih.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&iu.call(n)==ip}function ig(e){var t=this.__data__=new n0(e);this.size=t.size}ig.prototype.clear=function(){this.__data__=new n0,this.size=0},ig.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ig.prototype.get=function(e){return this.__data__.get(e)},ig.prototype.has=function(e){return this.__data__.has(e)},ig.prototype.set=function(e,t){var n=this.__data__;if(n instanceof n0){var i=n.__data__;if(!n1||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new n3(i)}return n.set(e,t),this.size=n.size,this};var im="object"==typeof exports&&exports&&!exports.nodeType&&exports,iy=im&&"object"==typeof module&&module&&!module.nodeType&&module,ib=iy&&iy.exports===im?tD.Buffer:void 0,iv=ib?ib.allocUnsafe:void 0;function i_(e,t){if(t)return e.slice();var n=e.length,i=iv?iv(n):new e.constructor(n);return e.copy(i),i}function ix(){return[]}var iw=Object.prototype.propertyIsEnumerable,i$=Object.getOwnPropertySymbols,iE=i$?function(e){return null==e?[]:function(e,t){for(var n=-1,i=null==e?0:e.length,a=0,r=[];++n<i;){var o=e[n];t(o,n,e)&&(r[a++]=o)}return r}(i$(e=Object(e)),function(t){return iw.call(e,t)})}:ix,iA=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)ia(t,iE(e)),e=il(e);return t}:ix;function ik(e,t,n){var i=t(e);return tV(e)?i:ia(i,n(e))}function iT(e){return ik(e,nF,iE)}function iM(e){return ik(e,nV,iA)}var iS=t4(tD,"DataView"),iO=t4(tD,"Promise"),iC=t4(tD,"Set"),iD="[object Map]",iz="[object Promise]",iL="[object Set]",iR="[object WeakMap]",iI="[object DataView]",iN=tJ(iS),iP=tJ(n1),iB=tJ(iO),iH=tJ(iC),iU=tJ(t6),iF=tH;(iS&&iF(new iS(new ArrayBuffer(1)))!=iI||n1&&iF(new n1)!=iD||iO&&iF(iO.resolve())!=iz||iC&&iF(new iC)!=iL||t6&&iF(new t6)!=iR)&&(iF=function(e){var t=tH(e),n="[object Object]"==t?e.constructor:void 0,i=n?tJ(n):"";if(i)switch(i){case iN:return iI;case iP:return iD;case iB:return iz;case iH:return iL;case iU:return iR}return t});var ij=Object.prototype.hasOwnProperty,iV=tD.Uint8Array;function iG(e){var t=new e.constructor(e.byteLength);return new iV(t).set(new iV(e)),t}var iW=/\w*$/,iq=tz?tz.prototype:void 0,iY=iq?iq.valueOf:void 0;function iZ(e,t){var n=t?iG(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function iX(e){return"function"!=typeof e.constructor||nb(e)?{}:t7(il(e))}var iK=nz&&nz.isMap,iQ=iK?nS(iK):function(e){return tU(e)&&"[object Map]"==iF(e)},iJ=nz&&nz.isSet,i0=iJ?nS(iJ):function(e){return tU(e)&&"[object Set]"==iF(e)},i1="[object Arguments]",i2="[object Function]",i3="[object Object]",i5={};function i4(e,t,n,i,a,r){var o,s=1&t,l=2&t,c=4&t;if(n&&(o=a?n(e,i,a,r):n(e)),void 0!==o)return o;if(!tq(e))return e;var u=tV(e);if(u){if(h=e.length,p=new e.constructor(h),h&&"string"==typeof e[0]&&ij.call(e,"index")&&(p.index=e.index,p.input=e.input),o=p,!s)return t9(e,o)}else{var h,p,d,f,g,m,y=iF(e),b=y==i2||"[object GeneratorFunction]"==y;if(nT(e))return i_(e,s);if(y==i3||y==i1||b&&!a){if(o=l||b?{}:iX(e),!s)return l?(f=(d=o)&&nh(e,nV(e),d),nh(e,iA(e),f)):(m=(g=o)&&nh(e,nF(e),g),nh(e,iE(e),m))}else{if(!i5[y])return a?e:{};o=function(e,t,n){var i,a,r=e.constructor;switch(t){case"[object ArrayBuffer]":return iG(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return i=n?iG(e.buffer):e.buffer,new e.constructor(i,e.byteOffset,e.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return iZ(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return(a=new e.constructor(e.source,iW.exec(e))).lastIndex=e.lastIndex,a;case"[object Symbol]":return iY?Object(iY.call(e)):{}}}(e,y,s)}}r||(r=new ig);var v=r.get(e);if(v)return v;r.set(e,o),i0(e)?e.forEach(function(i){o.add(i4(i,t,n,i,e,r))}):iQ(e)&&e.forEach(function(i,a){o.set(a,i4(i,t,n,a,e,r))});var _=c?l?iM:iT:l?nV:nF,x=u?void 0:_(e);return function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););}(x||e,function(i,a){x&&(i=e[a=i]),nu(o,a,i4(i,t,n,a,e,r))}),o}function i6(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new n3;++t<n;)this.add(e[t])}function i8(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}function i7(e,t){return e.has(t)}function i9(e,t,n,i,a,r){var o=1&n,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=r.get(e),u=r.get(t);if(c&&u)return c==t&&u==e;var h=-1,p=!0,d=2&n?new i6:void 0;for(r.set(e,t),r.set(t,e);++h<s;){var f=e[h],g=t[h];if(i)var m=o?i(g,f,h,t,e,r):i(f,g,h,e,t,r);if(void 0!==m){if(m)continue;p=!1;break}if(d){if(!i8(t,function(e,t){if(!i7(d,t)&&(f===e||a(f,e,n,i,r)))return d.push(t)})){p=!1;break}}else if(!(f===g||a(f,g,n,i,r))){p=!1;break}}return r.delete(e),r.delete(t),p}function ae(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}function at(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}i5[i1]=i5["[object Array]"]=i5["[object ArrayBuffer]"]=i5["[object DataView]"]=i5["[object Boolean]"]=i5["[object Date]"]=i5["[object Float32Array]"]=i5["[object Float64Array]"]=i5["[object Int8Array]"]=i5["[object Int16Array]"]=i5["[object Int32Array]"]=i5["[object Map]"]=i5["[object Number]"]=i5[i3]=i5["[object RegExp]"]=i5["[object Set]"]=i5["[object String]"]=i5["[object Symbol]"]=i5["[object Uint8Array]"]=i5["[object Uint8ClampedArray]"]=i5["[object Uint16Array]"]=i5["[object Uint32Array]"]=!0,i5["[object Error]"]=i5[i2]=i5["[object WeakMap]"]=!1,i6.prototype.add=i6.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},i6.prototype.has=function(e){return this.__data__.has(e)};var an=tz?tz.prototype:void 0,ai=an?an.valueOf:void 0,aa=Object.prototype.hasOwnProperty,ar="[object Arguments]",ao="[object Array]",as="[object Object]",al=Object.prototype.hasOwnProperty;function ac(e,t,n,i,a){return e===t||(null!=e&&null!=t&&(tU(e)||tU(t))?function(e,t,n,i,a,r){var o=tV(e),s=tV(t),l=o?ao:iF(e),c=s?ao:iF(t);l=l==ar?as:l,c=c==ar?as:c;var u=l==as,h=c==as,p=l==c;if(p&&nT(e)){if(!nT(t))return!1;o=!0,u=!1}if(p&&!u)return r||(r=new ig),o||nR(e)?i9(e,t,n,i,a,r):function(e,t,n,i,a,r,o){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!r(new iV(e),new iV(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return nl(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=ae;case"[object Set]":var l=1&i;if(s||(s=at),e.size!=t.size&&!l)break;var c=o.get(e);if(c)return c==t;i|=2,o.set(e,t);var u=i9(s(e),s(t),i,a,r,o);return o.delete(e),u;case"[object Symbol]":if(ai)return ai.call(e)==ai.call(t)}return!1}(e,t,l,n,i,a,r);if(!(1&n)){var d=u&&al.call(e,"__wrapped__"),f=h&&al.call(t,"__wrapped__");if(d||f){var g=d?e.value():e,m=f?t.value():t;return r||(r=new ig),a(g,m,n,i,r)}}return!!p&&(r||(r=new ig),function(e,t,n,i,a,r){var o=1&n,s=iT(e),l=s.length;if(l!=iT(t).length&&!o)return!1;for(var c=l;c--;){var u=s[c];if(!(o?u in t:aa.call(t,u)))return!1}var h=r.get(e),p=r.get(t);if(h&&p)return h==t&&p==e;var d=!0;r.set(e,t),r.set(t,e);for(var f=o;++c<l;){var g=e[u=s[c]],m=t[u];if(i)var y=o?i(m,g,u,t,e,r):i(g,m,u,e,t,r);if(!(void 0===y?g===m||a(g,m,n,i,r):y)){d=!1;break}f||(f="constructor"==u)}if(d&&!f){var b=e.constructor,v=t.constructor;b!=v&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v)&&(d=!1)}return r.delete(e),r.delete(t),d}(e,t,n,i,a,r))}(e,t,n,i,ac,a):e!=e&&t!=t)}function au(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}function ah(e,t){return null!=e&&t in Object(e)}function ap(e){var t,n,i,a,r;return"function"==typeof e?e:null==e?tY:"object"==typeof e?tV(e)?(t=e[0],n=e[1],nq(t)&&(i=n)==i&&!tq(i)?au(ie(t),n):function(e){var i=ii(e,t);return void 0===i&&i===n?null!=e&&function(e,t,n){t=n9(t,e);for(var i=-1,a=t.length,r=!1;++i<a;){var o=ie(t[i]);if(!(r=null!=e&&n(e,o)))break;e=e[o]}return r||++i!=a?r:!!(a=null==e?0:e.length)&&ng(a)&&no(o,a)&&(tV(e)||n$(e))}(e,t,ah):ac(n,i,3)}):1==(a=function(e){for(var t=nF(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,a==a&&!tq(a)]}return t}(e)).length&&a[0][2]?au(a[0][0],a[0][1]):function(t){return t===e||function(e,t){var n=t.length,i=n;if(null==e)return!i;for(e=Object(e);n--;){var a=t[n];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++n<i;){var r=(a=t[n])[0],o=e[r],s=a[1];if(a[2]){if(void 0===o&&!(r in e))return!1}else{var l,c=new ig;if(!(void 0===l?ac(s,o,3,void 0,c):l))return!1}}return!0}(t,a)}:nq(e)?(r=ie(e),function(e){return e?.[r]}):function(t){return it(t,e)}}var ad=function(e,t,n){for(var i=-1,a=Object(e),r=n(e),o=r.length;o--;){var s=r[++i];if(!1===t(a[s],s,a))break}return e};function af(e,t,n){(void 0===n||nl(e[t],n))&&(void 0!==n||t in e)||ns(e,t,n)}function ag(e){return tU(e)&&nm(e)}function am(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function ay(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var ab=Object.prototype.hasOwnProperty,av=(ou=function(e,t,n){!function e(t,n,i,a,r){t!==n&&ad(n,function(o,s){if(r||(r=new ig),tq(o))!function(e,t,n,i,a,r,o){var s=am(e,n),l=am(t,n),c=o.get(l);if(c)return af(e,n,c);var u=r?r(s,l,n+"",e,t,o):void 0,h=void 0===u;if(h){var p=tV(l),d=!p&&nT(l),f=!p&&!d&&nR(l);u=l,p||d||f?tV(s)?u=s:ag(s)?u=t9(s):d?(h=!1,u=i_(l,!0)):f?(h=!1,u=iZ(l,!0)):u=[]:id(l)||n$(l)?(u=s,n$(s)?u=nh(s,nV(s)):(!tq(s)||tZ(s))&&(u=iX(l))):h=!1}h&&(o.set(l,u),a(u,l,i,r,o),o.delete(l)),af(e,n,u)}(t,n,s,i,e,a,r);else{var l=a?a(am(t,s),o,s+"",t,n,r):void 0;void 0===l&&(l=o),af(t,s,l)}},nV)}(e,t,n)},nf(function(e,t){var n=-1,i=t.length,a=i>1?t[i-1]:void 0,r=i>2?t[2]:void 0;for(a=ou.length>3&&"function"==typeof a?(i--,a):void 0,r&&function(e,t,n){if(!tq(n))return!1;var i=typeof t;return("number"==i?!!(nm(n)&&no(t,n.length)):"string"==i&&t in n)&&nl(n[t],e)}(t[0],t[1],r)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var o=t[n];o&&ou(e,o,n,a)}return e})),a_=iC&&1/at(new iC([,-0]))[1]==1/0?function(e){return new iC(e)}:function(){};function ax(e,t,n){var i=-1,a=na,r=e.length,o=!0,s=[],l=s;if(r>=200){var c=t?null:a_(e);if(c)return at(c);o=!1,a=i7,l=new i6}else l=t?[]:s;e:for(;++i<r;){var u=e[i],h=t?t(u):u;if(u=0!==u?u:0,o&&h==h){for(var p=l.length;p--;)if(l[p]===h)continue e;t&&l.push(h),s.push(u)}else a(l,h,n)||(l!==s&&l.push(h),s.push(u))}return s}var aw=nf(function(e){var t=ay(e);return ag(t)&&(t=void 0),ax(is(e,1,ag,!0),ap(t))});function a$(e){return e&&e.length?ax(e):[]}function aE(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function aA(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function ak(e){let t,n,i;function a(e,i,r=0,o=e.length){if(r<o){if(0!==t(i,i))return o;do{let t=r+o>>>1;0>n(e[t],i)?r=t+1:o=t}while(r<o)}return r}return 2!==e.length?(t=aE,n=(t,n)=>aE(e(t),n),i=(t,n)=>e(t)-n):(t=e===aE||e===aA?e:aT,n=e,i=e),{left:a,center:function(e,t,n=0,r=e.length){let o=a(e,t,n,r-1);return o>n&&i(e[o-1],t)>-i(e[o],t)?o-1:o},right:function(e,i,a=0,r=e.length){if(a<r){if(0!==t(i,i))return r;do{let t=a+r>>>1;0>=n(e[t],i)?a=t+1:r=t}while(a<r)}return a}}}function aT(){return 0}let aM=ak(aE).right;function aS(e,t){let n,i;if(void 0===t)for(let t of e)null!=t&&(void 0===n?t>=t&&(n=i=t):(n>t&&(n=t),i<t&&(i=t)));else{let a=-1;for(let r of e)null!=(r=t(r,++a,e))&&(void 0===n?r>=r&&(n=i=r):(n>r&&(n=r),i<r&&(i=r)))}return[n,i]}ak(function(e){return null===e?NaN:+e}).center;let aO=class extends Map{constructor(e,t=aD){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(aC(this,e))}has(e){return super.has(aC(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){let i=t(n);return e.has(i)?e.get(i):(e.set(i,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){let i=t(n);return e.has(i)&&(n=e.get(i),e.delete(i)),n}(this,e))}};function aC({_intern:e,_key:t},n){let i=t(n);return e.has(i)?e.get(i):n}function aD(e){return null!==e&&"object"==typeof e?e.valueOf():e}let az=Math.sqrt(50),aL=Math.sqrt(10),aR=Math.sqrt(2);function aI(e,t,n){let i,a,r,o=(t-e)/Math.max(0,n),s=Math.floor(Math.log10(o)),l=o/Math.pow(10,s),c=l>=az?10:l>=aL?5:l>=aR?2:1;return s<0?(i=Math.round(e*(r=Math.pow(10,-s)/c)),a=Math.round(t*r),i/r<e&&++i,a/r>t&&--a,r=-r):(i=Math.round(e/(r=Math.pow(10,s)*c)),a=Math.round(t/r),i*r<e&&++i,a*r>t&&--a),a<i&&.5<=n&&n<2?aI(e,t,2*n):[i,a,r]}function aN(e,t,n){if(t*=1,e*=1,!((n*=1)>0))return[];if(e===t)return[e];let i=t<e,[a,r,o]=i?aI(t,e,n):aI(e,t,n);if(!(r>=a))return[];let s=r-a+1,l=Array(s);if(i)if(o<0)for(let e=0;e<s;++e)l[e]=-((r-e)/o);else for(let e=0;e<s;++e)l[e]=(r-e)*o;else if(o<0)for(let e=0;e<s;++e)l[e]=-((a+e)/o);else for(let e=0;e<s;++e)l[e]=(a+e)*o;return l}function aP(e,t,n){return aI(e*=1,t*=1,n*=1)[2]}function aB(e,t,n){t*=1,e*=1,n*=1;let i=t<e,a=i?aP(t,e,n):aP(e,t,n);return(i?-1:1)*(a<0?-(1/a):a)}var aH={value:()=>{}};function aU(){for(var e,t=0,n=arguments.length,i={};t<n;++t){if(!(e=arguments[t]+"")||e in i||/[\s.]/.test(e))throw Error("illegal type: "+e);i[e]=[]}return new aF(i)}function aF(e){this._=e}function aj(e,t,n){for(var i=0,a=e.length;i<a;++i)if(e[i].name===t){e[i]=aH,e=e.slice(0,i).concat(e.slice(i+1));break}return null!=n&&e.push({name:t,value:n}),e}aF.prototype=aU.prototype={constructor:aF,on:function(e,t){var n,i=this._,a=(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&&!i.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),r=-1,o=a.length;if(arguments.length<2){for(;++r<o;)if((n=(e=a[r]).type)&&(n=function(e,t){for(var n,i=0,a=e.length;i<a;++i)if((n=e[i]).name===t)return n.value}(i[n],e.name)))return n;return}if(null!=t&&"function"!=typeof t)throw Error("invalid callback: "+t);for(;++r<o;)if(n=(e=a[r]).type)i[n]=aj(i[n],e.name,t);else if(null==t)for(n in i)i[n]=aj(i[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new aF(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,i,a=Array(n),r=0;r<n;++r)a[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(i=this._[e],r=0,n=i.length;r<n;++r)i[r].value.apply(t,a)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(var i=this._[e],a=0,r=i.length;a<r;++a)i[a].value.apply(t,n)}};var aV="http://www.w3.org/1999/xhtml";let aG={svg:"http://www.w3.org/2000/svg",xhtml:aV,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function aW(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),aG.hasOwnProperty(t)?{space:aG[t],local:e}:e}function aq(e){var t=aW(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===aV&&t.documentElement.namespaceURI===aV?t.createElement(e):t.createElementNS(n,e)}})(t)}function aY(){}function aZ(e){return null==e?aY:function(){return this.querySelector(e)}}function aX(){return[]}function aK(e){return null==e?aX:function(){return this.querySelectorAll(e)}}function aQ(e){return function(){return this.matches(e)}}function aJ(e){return function(t){return t.matches(e)}}var a0=Array.prototype.find;function a1(){return this.firstElementChild}var a2=Array.prototype.filter;function a3(){return Array.from(this.children)}function a5(e){return Array(e.length)}function a4(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function a6(e,t,n,i,a,r){for(var o,s=0,l=t.length,c=r.length;s<c;++s)(o=t[s])?(o.__data__=r[s],i[s]=o):n[s]=new a4(e,r[s]);for(;s<l;++s)(o=t[s])&&(a[s]=o)}function a8(e,t,n,i,a,r,o){var s,l,c,u=new Map,h=t.length,p=r.length,d=Array(h);for(s=0;s<h;++s)(l=t[s])&&(d[s]=c=o.call(l,l.__data__,s,t)+"",u.has(c)?a[s]=l:u.set(c,l));for(s=0;s<p;++s)c=o.call(e,r[s],s,r)+"",(l=u.get(c))?(i[s]=l,l.__data__=r[s],u.delete(c)):n[s]=new a4(e,r[s]);for(s=0;s<h;++s)(l=t[s])&&u.get(d[s])===l&&(a[s]=l)}function a7(e){return e.__data__}function a9(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function re(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function rt(e,t){return e.style.getPropertyValue(t)||re(e).getComputedStyle(e,null).getPropertyValue(t)}function rn(e){return e.trim().split(/^|\s+/)}function ri(e){return e.classList||new ra(e)}function ra(e){this._node=e,this._names=rn(e.getAttribute("class")||"")}function rr(e,t){for(var n=ri(e),i=-1,a=t.length;++i<a;)n.add(t[i])}function ro(e,t){for(var n=ri(e),i=-1,a=t.length;++i<a;)n.remove(t[i])}function rs(){this.textContent=""}function rl(){this.innerHTML=""}function rc(){this.nextSibling&&this.parentNode.appendChild(this)}function ru(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function rh(){return null}function rp(){var e=this.parentNode;e&&e.removeChild(this)}function rd(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function rf(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function rg(e){return function(){var t=this.__on;if(t){for(var n,i=0,a=-1,r=t.length;i<r;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++a]=n:this.removeEventListener(n.type,n.listener,n.options);++a?t.length=a:delete this.__on}}}function rm(e,t,n){return function(){var i,a=this.__on,r=function(e){t.call(this,e,this.__data__)};if(a){for(var o=0,s=a.length;o<s;++o)if((i=a[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=r,i.options=n),i.value=t;return}}this.addEventListener(e.type,r,n),i={type:e.type,name:e.name,value:t,listener:r,options:n},a?a.push(i):this.__on=[i]}}function ry(e,t,n){var i=re(e),a=i.CustomEvent;"function"==typeof a?a=new a(t,n):(a=i.document.createEvent("Event"),n?(a.initEvent(t,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(t,!1,!1)),e.dispatchEvent(a)}a4.prototype={constructor:a4,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)}},ra.prototype={add:function(e){0>this._names.indexOf(e)&&(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 rb=[null];function rv(e,t){this._groups=e,this._parents=t}function r_(){return new rv([[document.documentElement]],rb)}function rx(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 i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}if(t.getBoundingClientRect){var a=t.getBoundingClientRect();return[e.clientX-a.left-t.clientLeft,e.clientY-a.top-t.clientTop]}}return[e.pageX,e.pageY]}function rw(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function r$(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function rE(){}rv.prototype=r_.prototype={constructor:rv,select:function(e){"function"!=typeof e&&(e=aZ(e));for(var t=this._groups,n=t.length,i=Array(n),a=0;a<n;++a)for(var r,o,s=t[a],l=s.length,c=i[a]=Array(l),u=0;u<l;++u)(r=s[u])&&(o=e.call(r,r.__data__,u,s))&&("__data__"in r&&(o.__data__=r.__data__),c[u]=o);return new rv(i,this._parents)},selectAll:function(e){var t;"function"==typeof e?(t=e,e=function(){var e;return e=t.apply(this,arguments),null==e?[]:Array.isArray(e)?e:Array.from(e)}):e=aK(e);for(var n=this._groups,i=n.length,a=[],r=[],o=0;o<i;++o)for(var s,l=n[o],c=l.length,u=0;u<c;++u)(s=l[u])&&(a.push(e.call(s,s.__data__,u,l)),r.push(s));return new rv(a,r)},selectChild:function(e){var t;return this.select(null==e?a1:(t="function"==typeof e?e:aJ(e),function(){return a0.call(this.children,t)}))},selectChildren:function(e){var t;return this.selectAll(null==e?a3:(t="function"==typeof e?e:aJ(e),function(){return a2.call(this.children,t)}))},filter:function(e){"function"!=typeof e&&(e=aQ(e));for(var t=this._groups,n=t.length,i=Array(n),a=0;a<n;++a)for(var r,o=t[a],s=o.length,l=i[a]=[],c=0;c<s;++c)(r=o[c])&&e.call(r,r.__data__,c,o)&&l.push(r);return new rv(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,a7);var n=t?a8:a6,i=this._parents,a=this._groups;"function"!=typeof e&&(b=e,e=function(){return b});for(var r=a.length,o=Array(r),s=Array(r),l=Array(r),c=0;c<r;++c){var u=i[c],h=a[c],p=h.length,d="object"==typeof(y=e.call(u,u&&u.__data__,c,i))&&"length"in y?y:Array.from(y),f=d.length,g=s[c]=Array(f),m=o[c]=Array(f);n(u,h,g,m,l[c]=Array(p),d,t);for(var y,b,v,_,x=0,w=0;x<f;++x)if(v=g[x]){for(x>=w&&(w=x+1);!(_=m[w])&&++w<f;);v._next=_||null}}return(o=new rv(o,i))._enter=s,o._exit=l,o},enter:function(){return new rv(this._enter||this._groups.map(a5),this._parents)},exit:function(){return new rv(this._exit||this._groups.map(a5),this._parents)},join:function(e,t,n){var i=this.enter(),a=this,r=this.exit();return"function"==typeof e?(i=e(i))&&(i=i.selection()):i=i.append(e+""),null!=t&&(a=t(a))&&(a=a.selection()),null==n?r.remove():n(r),i&&a?i.merge(a).order():a},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,a=n.length,r=i.length,o=Math.min(a,r),s=Array(a),l=0;l<o;++l)for(var c,u=n[l],h=i[l],p=u.length,d=s[l]=Array(p),f=0;f<p;++f)(c=u[f]||h[f])&&(d[f]=c);for(;l<a;++l)s[l]=n[l];return new rv(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i,a=e[t],r=a.length-1,o=a[r];--r>=0;)(i=a[r])&&(o&&4^i.compareDocumentPosition(o)&&o.parentNode.insertBefore(i,o),o=i);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=a9);for(var n=this._groups,i=n.length,a=Array(i),r=0;r<i;++r){for(var o,s=n[r],l=s.length,c=a[r]=Array(l),u=0;u<l;++u)(o=s[u])&&(c[u]=o);c.sort(t)}return new rv(a,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 i=e[t],a=0,r=i.length;a<r;++a){var o=i[a];if(o)return o}return null},size:function(){let e=0;for(let t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var a,r=t[n],o=0,s=r.length;o<s;++o)(a=r[o])&&e.call(a,a.__data__,o,r);return this},attr:function(e,t){var n=aW(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}}:"function"==typeof t?n.local?function(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(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}:n.local?function(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}:function(e,t){return function(){this.setAttribute(e,t)}})(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var i=t.apply(this,arguments);null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,n??"")):rt(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=rn(e+"");if(arguments.length<2){for(var i=ri(this.node()),a=-1,r=n.length;++a<r;)if(!i.contains(n[a]))return!1;return!0}return this.each(("function"==typeof t?function(e,t){return function(){(t.apply(this,arguments)?rr:ro)(this,e)}}:t?function(e){return function(){rr(this,e)}}:function(e){return function(){ro(this,e)}})(n,t))},text:function(e){return arguments.length?this.each(null==e?rs:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}:function(e){return function(){this.textContent=e}})(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?rl:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}:function(e){return function(){this.innerHTML=e}})(e)):this.node().innerHTML},raise:function(){return this.each(rc)},lower:function(){return this.each(ru)},append:function(e){var t="function"==typeof e?e:aq(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:aq(e),i=null==t?rh:"function"==typeof t?t:aZ(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(rp)},clone:function(e){return this.select(e?rf:rd)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var i,a,r=(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}}),o=r.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var l,c=0,u=s.length;c<u;++c)for(i=0,l=s[c];i<o;++i)if((a=r[i]).type===l.type&&a.name===l.name)return l.value}return}for(s=t?rm:rg,i=0;i<o;++i)this.each(s(r[i],t,n));return this},dispatch:function(e,t){return this.each(("function"==typeof t?function(e,t){return function(){return ry(this,e,t.apply(this,arguments))}}:function(e,t){return function(){return ry(this,e,t)}})(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i,a=e[t],r=0,o=a.length;r<o;++r)(i=a[r])&&(yield i)}};var rA="\\s*([+-]?\\d+)\\s*",rk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",rT="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rM=/^#([0-9a-f]{3,8})$/,rS=RegExp(`^rgb\\(${rA},${rA},${rA}\\)$`),rO=RegExp(`^rgb\\(${rT},${rT},${rT}\\)$`),rC=RegExp(`^rgba\\(${rA},${rA},${rA},${rk}\\)$`),rD=RegExp(`^rgba\\(${rT},${rT},${rT},${rk}\\)$`),rz=RegExp(`^hsl\\(${rk},${rT},${rT}\\)$`),rL=RegExp(`^hsla\\(${rk},${rT},${rT},${rk}\\)$`),rR={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function rI(){return this.rgb().formatHex()}function rN(){return this.rgb().formatRgb()}function rP(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=rM.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?rB(t):3===n?new rF(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?rH(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?rH(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=rS.exec(e))?new rF(t[1],t[2],t[3],1):(t=rO.exec(e))?new rF(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=rC.exec(e))?rH(t[1],t[2],t[3],t[4]):(t=rD.exec(e))?rH(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=rz.exec(e))?rY(t[1],t[2]/100,t[3]/100,1):(t=rL.exec(e))?rY(t[1],t[2]/100,t[3]/100,t[4]):rR.hasOwnProperty(e)?rB(rR[e]):"transparent"===e?new rF(NaN,NaN,NaN,0):null}function rB(e){return new rF(e>>16&255,e>>8&255,255&e,1)}function rH(e,t,n,i){return i<=0&&(e=t=n=NaN),new rF(e,t,n,i)}function rU(e,t,n,i){var a;return 1==arguments.length?((a=e)instanceof rE||(a=rP(a)),a?new rF((a=a.rgb()).r,a.g,a.b,a.opacity):new rF):new rF(e,t,n,i??1)}function rF(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function rj(){return`#${rq(this.r)}${rq(this.g)}${rq(this.b)}`}function rV(){let e=rG(this.opacity);return`${1===e?"rgb(":"rgba("}${rW(this.r)}, ${rW(this.g)}, ${rW(this.b)}${1===e?")":`, ${e})`}`}function rG(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function rW(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function rq(e){return((e=rW(e))<16?"0":"")+e.toString(16)}function rY(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new rX(e,t,n,i)}function rZ(e){if(e instanceof rX)return new rX(e.h,e.s,e.l,e.opacity);if(e instanceof rE||(e=rP(e)),!e)return new rX;if(e instanceof rX)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,a=Math.min(t,n,i),r=Math.max(t,n,i),o=NaN,s=r-a,l=(r+a)/2;return s?(o=t===r?(n-i)/s+(n<i)*6:n===r?(i-t)/s+2:(t-n)/s+4,s/=l<.5?r+a:2-r-a,o*=60):s=l>0&&l<1?0:o,new rX(o,s,l,e.opacity)}function rX(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function rK(e){return(e=(e||0)%360)<0?e+360:e}function rQ(e){return Math.max(0,Math.min(1,e||0))}function rJ(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}rw(rE,rP,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:rI,formatHex:rI,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return rZ(this).formatHsl()},formatRgb:rN,toString:rN}),rw(rF,rU,r$(rE,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new rF(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new rF(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new rF(rW(this.r),rW(this.g),rW(this.b),rG(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:rj,formatHex:rj,formatHex8:function(){return`#${rq(this.r)}${rq(this.g)}${rq(this.b)}${rq((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:rV,toString:rV})),rw(rX,function(e,t,n,i){return 1==arguments.length?rZ(e):new rX(e,t,n,i??1)},r$(rE,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new rX(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new rX(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,a=2*n-i;return new rF(rJ(e>=240?e-240:e+120,a,i),rJ(e,a,i),rJ(e<120?e+240:e-120,a,i),this.opacity)},clamp(){return new rX(rK(this.h),rQ(this.s),rQ(this.l),rG(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(){let e=rG(this.opacity);return`${1===e?"hsl(":"hsla("}${rK(this.h)}, ${100*rQ(this.s)}%, ${100*rQ(this.l)}%${1===e?")":`, ${e})`}`}}));let r0=e=>()=>e;function r1(e,t){var n=t-e;return n?function(t){return e+t*n}:r0(isNaN(e)?t:e)}let r2=function e(t){var n,i=1==(n=+t)?r1:function(e,t){var i,a,r;return t-e?(i=e,a=t,i=Math.pow(i,r=n),a=Math.pow(a,r)-i,r=1/r,function(e){return Math.pow(i+e*a,r)}):r0(isNaN(e)?t:e)};function a(e,t){var n=i((e=rU(e)).r,(t=rU(t)).r),a=i(e.g,t.g),r=i(e.b,t.b),o=r1(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=a(t),e.b=r(t),e.opacity=o(t),e+""}}return a.gamma=e,a}(1);function r3(e,t){return e*=1,t*=1,function(n){return e*(1-n)+t*n}}var r5=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,r4=RegExp(r5.source,"g");function r6(e,t){var n,i,a,r,o,s=r5.lastIndex=r4.lastIndex=0,l=-1,c=[],u=[];for(e+="",t+="";(a=r5.exec(e))&&(r=r4.exec(t));)(o=r.index)>s&&(o=t.slice(s,o),c[l]?c[l]+=o:c[++l]=o),(a=a[0])===(r=r[0])?c[l]?c[l]+=r:c[++l]=r:(c[++l]=null,u.push({i:l,x:r3(a,r)})),s=r4.lastIndex;return s<t.length&&(o=t.slice(s),c[l]?c[l]+=o:c[++l]=o),c.length<2?u[0]?(n=u[0].x,function(e){return n(e)+""}):(i=t,function(){return i}):(t=u.length,function(e){for(var n,i=0;i<t;++i)c[(n=u[i]).i]=n.x(e);return c.join("")})}function r8(e,t){var n,i,a=typeof t;return null==t||"boolean"===a?r0(t):("number"===a?r3:"string"===a?(i=rP(t))?(t=i,r2):r6:t instanceof rP?r2:t instanceof Date?function(e,t){var n=new Date;return e*=1,t*=1,function(i){return n.setTime(e*(1-i)+t*i),n}}:!ArrayBuffer.isView(n=t)||n instanceof DataView?Array.isArray(t)?function(e,t){var n,i=t?t.length:0,a=e?Math.min(i,e.length):0,r=Array(a),o=Array(i);for(n=0;n<a;++n)r[n]=r8(e[n],t[n]);for(;n<i;++n)o[n]=t[n];return function(e){for(n=0;n<a;++n)o[n]=r[n](e);return o}}:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?function(e,t){var n,i={},a={};for(n in(null===e||"object"!=typeof e)&&(e={}),(null===t||"object"!=typeof t)&&(t={}),t)n in e?i[n]=r8(e[n],t[n]):a[n]=t[n];return function(e){for(n in i)a[n]=i[n](e);return a}}:r3:function(e,t){t||(t=[]);var n,i=e?Math.min(t.length,e.length):0,a=t.slice();return function(r){for(n=0;n<i;++n)a[n]=e[n]*(1-r)+t[n]*r;return a}})(e,t)}function r7(e,t){return e*=1,t*=1,function(n){return Math.round(e*(1-n)+t*n)}}var r9=180/Math.PI,oe={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ot(e,t,n,i,a,r){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(s=Math.sqrt(n*n+i*i))&&(n/=s,i/=s,l/=s),e*i<t*n&&(e=-e,t=-t,l=-l,o=-o),{translateX:a,translateY:r,rotate:Math.atan2(t,e)*r9,skewX:Math.atan(l)*r9,scaleX:o,scaleY:s}}function on(e,t,n,i){function a(e){return e.length?e.pop()+" ":""}return function(r,o){var s,l,c,u,h=[],p=[];return r=e(r),o=e(o),function(e,i,a,r,o,s){if(e!==a||i!==r){var l=o.push("translate(",null,t,null,n);s.push({i:l-4,x:r3(e,a)},{i:l-2,x:r3(i,r)})}else(a||r)&&o.push("translate("+a+t+r+n)}(r.translateX,r.translateY,o.translateX,o.translateY,h,p),s=r.rotate,l=o.rotate,s!==l?(s-l>180?l+=360:l-s>180&&(s+=360),p.push({i:h.push(a(h)+"rotate(",null,i)-2,x:r3(s,l)})):l&&h.push(a(h)+"rotate("+l+i),c=r.skewX,u=o.skewX,c!==u?p.push({i:h.push(a(h)+"skewX(",null,i)-2,x:r3(c,u)}):u&&h.push(a(h)+"skewX("+u+i),function(e,t,n,i,r,o){if(e!==n||t!==i){var s=r.push(a(r)+"scale(",null,",",null,")");o.push({i:s-4,x:r3(e,n)},{i:s-2,x:r3(t,i)})}else(1!==n||1!==i)&&r.push(a(r)+"scale("+n+","+i+")")}(r.scaleX,r.scaleY,o.scaleX,o.scaleY,h,p),r=o=null,function(e){for(var t,n=-1,i=p.length;++n<i;)h[(t=p[n]).i]=t.x(e);return h.join("")}}}var oi,oa,or,oo,os,ol,oc,ou,oh,op,od,of=on(function(e){let t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?oe:ot(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),og=on(function(e){return null!=e&&(oh||(oh=document.createElementNS("http://www.w3.org/2000/svg","g")),oh.setAttribute("transform",e),e=oh.transform.baseVal.consolidate())?ot((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):oe},", ",")",")"),om=0,oy=0,ob=0,ov=0,o_=0,ox=0,ow="object"==typeof performance&&performance.now?performance:Date,o$="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function oE(){return o_||(o$(oA),o_=ow.now()+ox)}function oA(){o_=0}function ok(){this._call=this._time=this._next=null}function oT(e,t,n){var i=new ok;return i.restart(e,t,n),i}function oM(){o_=(ov=ow.now())+ox,om=oy=0;try{oE(),++om;for(var e,t=op;t;)(e=o_-t._time)>=0&&t._call.call(void 0,e),t=t._next;--om}finally{om=0,function(){for(var e,t,n=op,i=1/0;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:op=t);od=e,oO(i)}(),o_=0}}function oS(){var e=ow.now(),t=e-ov;t>1e3&&(ox-=t,ov=e)}function oO(e){!om&&(oy&&(oy=clearTimeout(oy)),e-o_>24?(e<1/0&&(oy=setTimeout(oM,e-ow.now()-ox)),ob&&(ob=clearInterval(ob))):(ob||(ov=ow.now(),ob=setInterval(oS,1e3)),om=1,o$(oM)))}function oC(e,t,n){var i=new ok;return t=null==t?0:+t,i.restart(n=>{i.stop(),e(n+t)},t,n),i}ok.prototype=oT.prototype={constructor:ok,restart:function(e,t,n){if("function"!=typeof e)throw TypeError("callback is not a function");n=(null==n?oE():+n)+(null==t?0:+t),this._next||od===this||(od?od._next=this:op=this,od=this),this._call=e,this._time=n,oO()},stop:function(){this._call&&(this._call=null,this._time=1/0,oO())}};var oD=aU("start","end","cancel","interrupt"),oz=[];function oL(e,t,n,i,a,r){var o=e.__transition;if(o){if(n in o)return}else e.__transition={};!function(e,t,n){var i,a=e.__transition;function r(l){var c,u,h,p;if(1!==n.state)return s();for(c in a)if((p=a[c]).name===n.name){if(3===p.state)return oC(r);4===p.state?(p.state=6,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete a[c]):+c<t&&(p.state=6,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete a[c])}if(oC(function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(l))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,i=Array(h=n.tween.length),c=0,u=-1;c<h;++c)(p=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=p);i.length=u+1}}function o(t){for(var a=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=5,1),r=-1,o=i.length;++r<o;)i[r].call(e,a);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var i in n.state=6,n.timer.stop(),delete a[t],a)return;delete e.__transition}a[t]=n,n.timer=oT(function(e){n.state=1,n.timer.restart(r,n.delay,n.time),n.delay<=e&&r(e-n.delay)},0,n.time)}(e,n,{name:t,index:i,group:a,on:oD,tween:oz,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:0})}function oR(e,t){var n=oN(e,t);if(n.state>0)throw Error("too late; already scheduled");return n}function oI(e,t){var n=oN(e,t);if(n.state>3)throw Error("too late; already running");return n}function oN(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error("transition not found");return n}function oP(e,t){var n,i,a,r=e.__transition,o=!0;if(r){for(a in t=null==t?null:t+"",r){if((n=r[a]).name!==t){o=!1;continue}i=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[a]}o&&delete e.__transition}}function oB(e,t,n){var i=e._id;return e.each(function(){var e=oI(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return oN(e,i).value[t]}}function oH(e,t){var n;return("number"==typeof t?r3:t instanceof rP?r2:(n=rP(t))?(t=n,r2):r6)(e,t)}var oU=r_.prototype.constructor;function oF(e){return function(){this.style.removeProperty(e)}}var oj=0;function oV(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}var oG=r_.prototype;function oW(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}oV.prototype={constructor:oV,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=aZ(e));for(var i=this._groups,a=i.length,r=Array(a),o=0;o<a;++o)for(var s,l,c=i[o],u=c.length,h=r[o]=Array(u),p=0;p<u;++p)(s=c[p])&&(l=e.call(s,s.__data__,p,c))&&("__data__"in s&&(l.__data__=s.__data__),h[p]=l,oL(h[p],t,n,p,h,oN(s,n)));return new oV(r,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=aK(e));for(var i=this._groups,a=i.length,r=[],o=[],s=0;s<a;++s)for(var l,c=i[s],u=c.length,h=0;h<u;++h)if(l=c[h]){for(var p,d=e.call(l,l.__data__,h,c),f=oN(l,n),g=0,m=d.length;g<m;++g)(p=d[g])&&oL(p,t,n,g,d,f);r.push(d),o.push(l)}return new oV(r,o,t,n)},selectChild:oG.selectChild,selectChildren:oG.selectChildren,filter:function(e){"function"!=typeof e&&(e=aQ(e));for(var t=this._groups,n=t.length,i=Array(n),a=0;a<n;++a)for(var r,o=t[a],s=o.length,l=i[a]=[],c=0;c<s;++c)(r=o[c])&&e.call(r,r.__data__,c,o)&&l.push(r);return new oV(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,i=t.length,a=n.length,r=Math.min(i,a),o=Array(i),s=0;s<r;++s)for(var l,c=t[s],u=n[s],h=c.length,p=o[s]=Array(h),d=0;d<h;++d)(l=c[d]||u[d])&&(p[d]=l);for(;s<i;++s)o[s]=t[s];return new oV(o,this._parents,this._name,this._id)},selection:function(){return new oU(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=++oj,i=this._groups,a=i.length,r=0;r<a;++r)for(var o,s=i[r],l=s.length,c=0;c<l;++c)if(o=s[c]){var u=oN(o,t);oL(o,e,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new oV(i,this._parents,e,n)},call:oG.call,nodes:oG.nodes,node:oG.node,size:oG.size,empty:oG.empty,each:oG.each,on:function(e,t){var n,i,a,r,o,s,l=this._id;return arguments.length<2?oN(this.node(),l).on.on(e):this.each((n=l,i=e,a=t,s=(i+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})?oR:oI,function(){var e=s(this,n),t=e.on;t!==r&&(o=(r=t).copy()).on(i,a),e.on=o}))},attr:function(e,t){var n=aW(e),i="transform"===n?og:oH;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var i,a,r;return function(){var o,s,l=n(this);return null==l?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local))===(s=l+"")?null:o===i&&s===a?r:(a=s,r=t(i=o,l))}}:function(e,t,n){var i,a,r;return function(){var o,s,l=n(this);return null==l?void this.removeAttribute(e):(o=this.getAttribute(e))===(s=l+"")?null:o===i&&s===a?r:(a=s,r=t(i=o,l))}})(n,i,oB(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var i,a,r=n+"";return function(){var o=this.getAttributeNS(e.space,e.local);return o===r?null:o===i?a:a=t(i=o,n)}}:function(e,t,n){var i,a,r=n+"";return function(){var o=this.getAttribute(e);return o===r?null:o===i?a:a=t(i=o,n)}})(n,i,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 Error();var i=aW(e);return this.tween(n,(i.local?function(e,t){var n,i;function a(){var a=t.apply(this,arguments);return a!==i&&(n=(i=a)&&function(t){this.setAttributeNS(e.space,e.local,a.call(this,t))}),n}return a._value=t,a}:function(e,t){var n,i;function a(){var a=t.apply(this,arguments);return a!==i&&(n=(i=a)&&function(t){this.setAttribute(e,a.call(this,t))}),n}return a._value=t,a})(i,t))},style:function(e,t,n){var i,a,r,o,s,l,c,u,h,p,d,f,g,m,y,b,v,_,x,w,$,E="transform"==(e+="")?of:oH;return null==t?this.styleTween(e,(i=e,function(){var e=rt(this,i),t=(this.style.removeProperty(i),rt(this,i));return e===t?null:e===a&&t===r?o:o=E(a=e,r=t)})).on("end.style."+e,oF(e)):"function"==typeof t?this.styleTween(e,(s=e,l=oB(this,"style."+e,t),function(){var e=rt(this,s),t=l(this),n=t+"";return null==t&&(this.style.removeProperty(s),n=t=rt(this,s)),e===n?null:e===c&&n===u?h:(u=n,h=E(c=e,t))})).each((p=this._id,v="end."+(b="style."+(d=e)),function(){var e=oI(this,p),t=e.on,n=null==e.value[b]?y||(y=oF(d)):void 0;(t!==f||m!==n)&&(g=(f=t).copy()).on(v,m=n),e.on=g})):this.styleTween(e,(_=e,$=t+"",function(){var e=rt(this,_);return e===$?null:e===x?w:w=E(x=e,t)}),n).on("end.style."+e,null)},styleTween:function(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==t)return this.tween(i,null);if("function"!=typeof t)throw Error();return this.tween(i,function(e,t,n){var i,a;function r(){var r=t.apply(this,arguments);return r!==a&&(i=(a=r)&&function(t){this.style.setProperty(e,r.call(this,t),n)}),i}return r._value=t,r}(e,t,n??""))},text:function(e){var t,n;return this.tween("text","function"==typeof e?(t=oB(this,"text",e),function(){var e=t(this);this.textContent=e??""}):(n=null==e?"":e+"",function(){this.textContent=n}))},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 Error();return this.tween(t,function(e){var t,n;function i(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&function(e){this.textContent=i.call(this,e)}),t}return i._value=e,i}(e))},remove:function(){var e;return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i,a=oN(this.node(),n).tween,r=0,o=a.length;r<o;++r)if((i=a[r]).name===e)return i.value;return null}return this.each((null==t?function(e,t){var n,i;return function(){var a=oI(this,e),r=a.tween;if(r!==n){i=n=r;for(var o=0,s=i.length;o<s;++o)if(i[o].name===t){(i=i.slice()).splice(o,1);break}}a.tween=i}}:function(e,t,n){var i,a;if("function"!=typeof n)throw Error();return function(){var r=oI(this,e),o=r.tween;if(o!==i){a=(i=o).slice();for(var s={name:t,value:n},l=0,c=a.length;l<c;++l)if(a[l].name===t){a[l]=s;break}l===c&&a.push(s)}r.tween=a}})(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){oR(this,e).delay=+t.apply(this,arguments)}}:function(e,t){return t*=1,function(){oR(this,e).delay=t}})(t,e)):oN(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){oI(this,e).duration=+t.apply(this,arguments)}}:function(e,t){return t*=1,function(){oI(this,e).duration=t}})(t,e)):oN(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw Error();return function(){oI(this,e).ease=t}}(t,e)):oN(this.node(),t).ease},easeVarying:function(e){var t;if("function"!=typeof e)throw Error();return this.each((t=this._id,function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw Error();oI(this,t).ease=n}))},end:function(){var e,t,n=this,i=n._id,a=n.size();return new Promise(function(r,o){var s={value:o},l={value:function(){0==--a&&r()}};n.each(function(){var n=oI(this,i),a=n.on;a!==e&&((t=(e=a).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t}),0===a&&r()})},[Symbol.iterator]:oG[Symbol.iterator]};var oq={time:null,delay:0,duration:250,ease:oW};function oY(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,i=e.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function oZ(e){return(e=oY(Math.abs(e)))?e[1]:NaN}r_.prototype.interrupt=function(e){return this.each(function(){oP(this,e)})},r_.prototype.transition=function(e){e instanceof oV?(a=e._id,e=e._name):(a=++oj,(r=oq).time=oE(),e=null==e?null:e+"");for(var t=this._groups,n=t.length,i=0;i<n;++i)for(var a,r,o,s=t[i],l=s.length,c=0;c<l;++c)(o=s[c])&&oL(o,e,a,c,s,r||function(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}(o,a));return new oV(t,this._parents,e,a)};var oX=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function oK(e){var t;if(!(t=oX.exec(e)))throw Error("invalid format: "+e);return new oQ({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function oQ(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function oJ(e,t){var n=oY(e,t);if(!n)return e+"";var i=n[0],a=n[1];return a<0?"0."+Array(-a).join("0")+i:i.length>a+1?i.slice(0,a+1)+"."+i.slice(a+1):i+Array(a-i.length+2).join("0")}oK.prototype=oQ.prototype,oQ.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let o0={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>oJ(100*e,t),r:oJ,s:function(e,t){var n=oY(e,t);if(!n)return e+"";var i=n[0],a=n[1],r=a-(pH=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,o=i.length;return r===o?i:r>o?i+Array(r-o+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+Array(1-r).join("0")+oY(e,Math.max(0,t+r-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function o1(e){return e}var o2=Array.prototype.map,o3=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function o5(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}pF=(pU=function(e){var t,n,i,a=void 0===e.grouping||void 0===e.thousands?o1:(t=o2.call(e.grouping,Number),n=e.thousands+"",function(e,i){for(var a=e.length,r=[],o=0,s=t[0],l=0;a>0&&s>0&&(l+s+1>i&&(s=Math.max(1,i-l)),r.push(e.substring(a-=s,a+s)),!((l+=s+1)>i));)s=t[o=(o+1)%t.length];return r.reverse().join(n)}),r=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?o1:(i=o2.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return i[+e]})}),c=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",h=void 0===e.nan?"NaN":e.nan+"";function p(e){var t=(e=oK(e)).fill,n=e.align,i=e.sign,p=e.symbol,d=e.zero,f=e.width,g=e.comma,m=e.precision,y=e.trim,b=e.type;"n"===b?(g=!0,b="g"):o0[b]||(void 0===m&&(m=12),y=!0,b="g"),(d||"0"===t&&"="===n)&&(d=!0,t="0",n="=");var v="$"===p?r:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",_="$"===p?o:/[%p]/.test(b)?c:"",x=o0[b],w=/[defgprs%]/.test(b);function $(e){var r,o,c,p=v,$=_;if("c"===b)$=x(e)+$,e="";else{var E=(e*=1)<0||1/e<0;if(e=isNaN(e)?h:x(Math.abs(e),m),y&&(e=function(e){e:for(var t,n=e.length,i=1,a=-1;i<n;++i)switch(e[i]){case".":a=t=i;break;case"0":0===a&&(a=i),t=i;break;default:if(!+e[i])break e;a>0&&(a=0)}return a>0?e.slice(0,a)+e.slice(t+1):e}(e)),E&&0==+e&&"+"!==i&&(E=!1),p=(E?"("===i?i:u:"-"===i||"("===i?"":i)+p,$=("s"===b?o3[8+pH/3]:"")+$+(E&&"("===i?")":""),w){for(r=-1,o=e.length;++r<o;)if(48>(c=e.charCodeAt(r))||c>57){$=(46===c?s+e.slice(r+1):e.slice(r))+$,e=e.slice(0,r);break}}}g&&!d&&(e=a(e,1/0));var A=p.length+e.length+$.length,k=A<f?Array(f-A+1).join(t):"";switch(g&&d&&(e=a(k+e,k.length?f-$.length:1/0),k=""),n){case"<":e=p+e+$+k;break;case"=":e=p+k+e+$;break;case"^":e=k.slice(0,A=k.length>>1)+p+e+$+k.slice(A);break;default:e=k+p+e+$}return l(e)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),$.toString=function(){return e+""},$}return{format:p,formatPrefix:function(e,t){var n=p(((e=oK(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(oZ(t)/3))),a=Math.pow(10,-i),r=o3[8+i/3];return function(e){return n(a*e)+r}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,pj=pU.formatPrefix;let o4=Symbol("implicit");function o6(){var e=new aO,t=[],n=[],i=o4;function a(a){let r=e.get(a);if(void 0===r){if(i!==o4)return i;e.set(a,r=t.push(a)-1)}return n[r%n.length]}return a.domain=function(n){if(!arguments.length)return t.slice();for(let i of(t=[],e=new aO,n))e.has(i)||e.set(i,t.push(i)-1);return a},a.range=function(e){return arguments.length?(n=Array.from(e),a):n.slice()},a.unknown=function(e){return arguments.length?(i=e,a):i},a.copy=function(){return o6(t,n).unknown(i)},o5.apply(a,arguments),a}function o8(e){return+e}var o7=[0,1];function o9(e){return e}function se(e,t){var n;return(t-=e*=1)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})}function st(e,t,n){var i=e[0],a=e[1],r=t[0],o=t[1];return a<i?(i=se(a,i),r=n(o,r)):(i=se(i,a),r=n(r,o)),function(e){return r(i(e))}}function sn(e,t,n){var i=Math.min(e.length,t.length)-1,a=Array(i),r=Array(i),o=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<i;)a[o]=se(e[o],e[o+1]),r[o]=n(t[o],t[o+1]);return function(t){var n=aM(e,t,1,i)-1;return r[n](a[n](t))}}function si(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function sa(){var e,t,n,i,a,r,o=o7,s=o7,l=r8,c=o9;function u(){var e,t,n,l=Math.min(o.length,s.length);return c!==o9&&(e=o[0],t=o[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),i=l>2?sn:st,a=r=null,h}function h(t){return null==t||isNaN(t*=1)?n:(a||(a=i(o.map(e),s,l)))(e(c(t)))}return h.invert=function(n){return c(t((r||(r=i(s,o.map(e),r3)))(n)))},h.domain=function(e){return arguments.length?(o=Array.from(e,o8),u()):o.slice()},h.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},h.rangeRound=function(e){return s=Array.from(e),l=r7,u()},h.clamp=function(e){return arguments.length?(c=!!e||o9,u()):c!==o9},h.interpolate=function(e){return arguments.length?(l=e,u()):l},h.unknown=function(e){return arguments.length?(n=e,h):n},function(n,i){return e=n,t=i,u()}}function sr(){var e,t=sa()(o9,o9);return t.copy=function(){return si(t,sr())},o5.apply(t,arguments),e=t.domain,t.ticks=function(t){var n=e();return aN(n[0],n[n.length-1],t??10)},t.tickFormat=function(t,n){var i=e();return function(e,t,n,i){var a,r,o=aB(e,t,n);switch((i=oK(i??",f")).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t));return null!=i.precision||isNaN(r=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(oZ(s)/3)))-oZ(Math.abs(o))))||(i.precision=r),pj(i,s);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(r=Math.max(0,oZ(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(a=Math.abs(a=o)))-oZ(a))+1)||(i.precision=r-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(r=Math.max(0,-oZ(Math.abs(o))))||(i.precision=r-("%"===i.type)*2)}return pF(i)}(i[0],i[i.length-1],t??10,n)},t.nice=function(n){null==n&&(n=10);var i,a,r=e(),o=0,s=r.length-1,l=r[o],c=r[s],u=10;for(c<l&&(a=l,l=c,c=a,a=o,o=s,s=a);u-- >0;){if((a=aP(l,c,n))===i)return r[o]=l,r[s]=c,e(r);if(a>0)l=Math.floor(l/a)*a,c=Math.ceil(c/a)*a;else if(a<0)l=Math.ceil(l*a)/a,c=Math.floor(c*a)/a;else break;i=a}return t},t}function so(e,t,n){this.k=e,this.x=t,this.y=n}so.prototype={constructor:so,scale:function(e){return 1===e?this:new so(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new so(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+")"}},so.prototype;let ss=7,sl=2.5,sc=3.5,su={reference:"value",compareTo:"marker"},sh=4,sp={duration:1e3,ease:oW,zoomLevel:3},sd={"1-color":4,"2-color":5,"3-color":5,"4-color":3,"5-color":2,"14-color":1},sf={items:{status:{ACTIVE:1,DISABLED:0},horizontalSpace:12,verticalSpace:24,textYOffset:8,spaceAfter:4},checkbox:{radius:6.5},radius:{iconData:[{cx:7,cy:7,r:6.5},{cx:7,cy:10,r:3.5}],fill:null,stroke:"#8c8c8c"},line:{yPosition:6,width:24,strokeWidth:1.4,fill:null,stroke:"#999999"},area:{width:24,height:14,fill:"#6f6f6f",stroke:null},size:{iconData:[{width:23,height:12},{width:13,height:6}],fill:null,stroke:"#8D8D8D"},quartile:{iconData:[{x:0,y:0,width:24,height:13},{x:11,y:4,width:1,height:4}]},zoom:{iconData:[{x:0,y:0,width:12,height:12}],color:"#8D8D8D"},color:{barWidth:300,barHeight:8,axisYTranslation:10}},sg=.3,sm=1,sy=24,sb={defaultOffset:4,horizontalOffset:10},sv={default:{duration:300},pie_slice_mouseover:{duration:100},pie_slice_mouseout:{duration:100},pie_chart_titles:{duration:375},graph_element_mouseover_fill_update:{duration:100},graph_element_mouseout_fill_update:{duration:100}},s_={[eQ.GRAPH_VIEW]:32,[eQ.SLIDER_VIEW]:10},sx=[{type:tu.RADIUS,name:"Radius"},{type:tu.AREA,name:"Poor area"},{type:tu.AREA,name:"Satisfactory area"},{type:tu.AREA,name:"Great area"},{type:tu.QUARTILE,name:"Quartiles"}],sw={type:eJ.END_LINE,threshold:16,numCharacter:14},s$={code:"u">typeof navigator&&navigator?.language||"en-US",number:(e,t=navigator?.language||"en-US")=>e?.toLocaleString?.(t),date:(e,t=navigator?.language||"en-US",n={},i=null)=>i||e.toLocaleDateString(t,n),time:(e,t=navigator?.language||"en-US",n={},i=null)=>i||e.toLocaleTimeString(t,n),optionsObject:{"15seconds":{primary:{"MMM d, pp":{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit",hourCycle:"h12"},"MMM d, h:mm:ss.SSS a":{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",fractionalSecondDigits:3,hourCycle:"h12"}},secondary:{pp:{hour:"numeric",minute:"2-digit",second:"2-digit",hourCycle:"h12"},"h:mm:ss.SSS a":{hour:"numeric",minute:"2-digit",fractionalSecondDigits:3,hourCycle:"h12"}},type:"time"},minute:{primary:{"MMM d, p":{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hourCycle:"h12"}},secondary:{p:{hour:"numeric",minute:"2-digit",hourCycle:"h12"}},type:"time"},"30minutes":{primary:{"MMM d, p":{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hourCycle:"h12"}},secondary:{p:{hour:"numeric",minute:"2-digit",hourCycle:"h12"}},type:"time"},hourly:{primary:{"MMM d, hh a":{month:"short",day:"numeric",hour:"2-digit",hourCycle:"h12"}},secondary:{"hh a":{hour:"2-digit",hourCycle:"h12"}},type:"time"},daily:{primary:{"MMM d":{month:"short",day:"numeric"}},secondary:{d:{day:"numeric"}},type:"date"},weekly:{primary:{"eee, MMM d":{weekday:"short",month:"short",day:"numeric"}},secondary:{eee:{weekday:"short"}},type:"date"},monthly:{primary:{"MMM yyyy":{month:"short",year:"numeric"}},secondary:{MMM:{month:"short"}},type:"date"},quarterly:{primary:{},secondary:{},type:"date"},yearly:{primary:{yyyy:{year:"numeric"}},secondary:{yyyy:{year:"numeric"}},type:"date"}},translations:{group:"Group",total:"Total",meter:{title:""},tabularRep:{title:"Tabular representation",downloadAsCSV:"Download as CSV"},toolbar:{exportAsCSV:"Export to CSV",exportAsJPG:"Export to JPG",exportAsPNG:"Export to PNG",zoomIn:"Zoom in",zoomOut:"Zoom out",resetZoom:"Reset zoom",moreOptions:"More options",makeFullScreen:"Make fullscreen",exitFullScreen:"Exit fullscreen",showAsTable:"Show as table"}}},sE={enabled:!0,position:e2.BOTTOM,clickable:!0,truncation:sw,alignment:e3.LEFT,order:null,additionalItems:[]},sA={enabled:!0,showTotal:!0,truncation:sw,groupLabel:"Group"},sk={top:{visible:!0,includeZero:!0,truncation:sw},bottom:{visible:!0,includeZero:!0,truncation:sw},left:{visible:!0,includeZero:!0,truncation:sw},right:{visible:!0,includeZero:!0,truncation:sw}},sT={addSpaceOnEdges:1,showDayName:!1,localeObject:tS,timeIntervalFormats:{"15seconds":{primary:"MMM d, pp",secondary:"pp"},minute:{primary:"MMM d, p",secondary:"p"},"30minutes":{primary:"MMM d, p",secondary:"p"},hourly:{primary:"MMM d, hh a",secondary:"hh a"},daily:{primary:"MMM d",secondary:"d"},weekly:{primary:"eee, MMM d",secondary:"eee"},monthly:{primary:"MMM yyyy",secondary:"MMM"},quarterly:{primary:"QQQ ''yy",secondary:"QQQ"},yearly:{primary:"yyyy",secondary:"yyyy"}}},sM=!1;try{sM="u">typeof document&&(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}catch(e){console.warn("Fullscreen capabilities check failed: ",e.message)}let sS={width:null,height:null,resizable:!0,theme:eZ.WHITE,tooltip:sA,legend:sE,locale:s$,style:{prefix:"cc"},data:{groupMapsTo:"group",loading:!1,selectedGroups:[]},color:{scale:null,pairing:{numberOfVariants:null,option:1},gradient:{enabled:!1}},toolbar:{enabled:!0,numberOfIcons:3,controls:[{type:tl.SHOW_AS_DATATABLE},...sM?[{type:tl.MAKE_FULLSCREEN}]:[],{type:tl.EXPORT_CSV},{type:tl.EXPORT_PNG},{type:tl.EXPORT_JPG}]}},sO=av({},sS,{thematic:{projection:tf.geoNaturalEarth1}}),sC=av({},sS,{axes:sk,timeScale:sT,grid:{x:{enabled:!0,numberOfTicks:15,alignWithAxisTicks:!1},y:{enabled:!0,numberOfTicks:5,alignWithAxisTicks:!1}},ruler:{enabled:!0},zoomBar:{zoomRatio:.4,minZoomRatio:.01,top:{enabled:!1,type:eQ.GRAPH_VIEW}}}),sD=av({},sC,{bars:{maxWidth:16,spacingFactor:.25,preserveSpaceForMissingBars:!0},timeScale:av(sT,{addSpaceOnEdges:1})}),sz=(av({},sD,{}),av({},sD,{}),av({},sD,{bars:av({},sD.bars,{dividerSize:1.5})}),av({},sD,{}),av({},sC,{points:{radius:4,fillOpacity:.3,filled:!0,enabled:!0}})),sL=av({},sz,{points:{radius:3,filled:!1,enabled:!0}}),sR=(av({},sL,{timeScale:av(sT,{addSpaceOnEdges:0})}),av({},sC,{bubble:{radiusMapsTo:"radius",radiusLabel:"Radius",radiusRange:e=>{let t=Math.min(e.width,e.height);return[3*t/400,25*t/400]},fillOpacity:.2,enabled:!0},points:{filled:!0},legend:{additionalItems:[{type:tu.RADIUS,name:"Radius"}]}}),av({},sC,{bullet:{performanceAreaTitles:["Poor","Satisfactory","Great"]},grid:{x:{enabled:!1},y:{enabled:!1}},legend:{additionalItems:[{type:tu.AREA,name:"Poor area"},{type:tu.AREA,name:"Satisfactory area"},{type:tu.AREA,name:"Great area"},{type:tu.QUARTILE,name:"Quartiles"}]}}),av({},sD,{bars:{dividerSize:1.5},timeScale:av(sT,{addSpaceOnEdges:0})}),av({},sS,{tooltip:av({},sA,{wordLabel:"Word",valueLabel:"Value"}),wordCloud:{fontSizeMapsTo:"value",fontSizeRange:e=>{let t=Math.min(e.width,e.height);return[20*t/400,75*t/400]},wordMapsTo:"word"}}),av({},sS,{pie:{labels:{formatter:null,enabled:!0},alignment:e3.LEFT,sortFunction:null,valueMapsTo:"value"}})),sI=(av({},sS,{legend:{enabled:!1},gauge:{type:ti.SEMI,arcWidth:16,deltaArrow:{size:e=>e/8,enabled:!0},showPercentageSymbol:!0,status:null,numberSpacing:10,deltaFontSize:e=>e/8,valueFontSize:e=>e/2.5,alignment:e3.LEFT}}),av({},sR,{donut:{center:{numberFontSize:e=>`${Math.min(e/100*24,24)}px`,titleFontSize:e=>`${Math.min(e/100*15,15)}px`,titleYPosition:e=>Math.min(e/80*20,20)},alignment:e3.LEFT}}),av({},sS,{legend:{enabled:!1,clickable:!1},meter:{showLabels:!0,proportional:null,statusBar:{percentageIndicator:{enabled:!0}}}}));function sN(e){if(!e)return;let t=e.getAttribute("transform").match(/translate\([0-9]+\.?[0-9]*,[0-9]+\.?[0-9]*\)/);if(!t)return null;if(t[0]){let e=t[0].replace(/translate\(/,"").replace(/\)/,"").split(",");return{tx:e[0],ty:e[1]}}return null}function sP(e,t,n){return n>e.length?e:t===eJ.MID_LINE?e.substr(0,n/2)+"..."+e.substr(-n/2):t===eJ.FRONT_LINE?"..."+e.substr(-n):t===eJ.END_LINE?e.substr(0,n)+"...":void 0}function sB(e,t){let n=sH(e,"legend","additionalItems"),i=sH(t,"legend","additionalItems");if(n&&i){let a=i.map(e=>e.type),r=n.map(e=>e.type),o=sx.filter(e=>r.includes(e.type)&&!a.includes(e.type));e.legend.additionalItems=o,t.legend.additionalItems=aw(o,i,"name")}}av({},sI,{legend:{enabled:!0}}),av({},sS,{radar:{axes:{angle:"key",value:"value"},alignment:e3.LEFT},tooltip:{gridline:{enabled:!0}}}),av({},sD,{comboChartTypes:[]}),av({tree:{type:e4.TREE}},sS,{}),av({},sS,{data:av(sS.data,{groupMapsTo:"name"})}),av({},sS,{circles:{fillOpacity:.3,hover:{stroke:"#FFF"}},padding:{mainGroup:4,children:2},depth:2},{data:av(sS.data,{groupMapsTo:"name"})}),av({},sS,{alluvial:{data:av(sS.data,{groupMapsTo:"source"}),nodeAlignment:e3.CENTER,nodePadding:24,monochrome:!1,nodes:[]}}),av({},sS,{axes:sk,heatmap:{divider:{state:tp.AUTO},colorLegend:{type:"linear"}}}),av({},sO,{choropleth:{colorLegend:{type:"linear"}}});let sH=(e,...t)=>{let n=e;if(n){for(let e of t)if(null===n[e]||void 0===n[e])return null;else n=n[e];return n}return null},sU=(e,t)=>t===e0.HORIZONTAL?{y0:e.x0,y1:e.x1,x0:e.y0,x1:e.y1}:e;function sF(e,t,n){return n===e0.VERTICAL?[e,t]:[t,e]}function sj(e){let t=t$(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-n}function sV(e,t){let n=t$(e,t?.in);return n.setHours(0,0,0,0),n}function sG(e,t,n){let[i,a]=tx(n?.in,e,t),r=sV(i),o=sV(a);return Math.round((r-sj(r)-(o-sj(o)))/864e5)}function sW(e,t){return tE(e,{...t,weekStartsOn:1})}function sq(e,t){let n=t$(e,t?.in),i=n.getFullYear(),a=t_(n,0);a.setFullYear(i+1,0,4),a.setHours(0,0,0,0);let r=sW(a),o=t_(n,0);o.setFullYear(i,0,4),o.setHours(0,0,0,0);let s=sW(o);return n.getTime()>=r.getTime()?i+1:n.getTime()>=s.getTime()?i:i-1}function sY(e,t){let n=t$(e,t?.in),i=n.getFullYear(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??tw.firstWeekContainsDate??tw.locale?.options?.firstWeekContainsDate??1,r=t_(t?.in||e,0);r.setFullYear(i+1,0,a),r.setHours(0,0,0,0);let o=tE(r,t),s=t_(t?.in||e,0);s.setFullYear(i,0,a),s.setHours(0,0,0,0);let l=tE(s,t);return+n>=+o?i+1:+n>=+l?i:i-1}function sZ(e,t){let n=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+n}let sX={y(e,t){let n=e.getFullYear(),i=n>0?n:1-n;return sZ("yy"===t?i%100:i,t.length)},M(e,t){let n=e.getMonth();return"M"===t?String(n+1):sZ(n+1,2)},d:(e,t)=>sZ(e.getDate(),t.length),a(e,t){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>sZ(e.getHours()%12||12,t.length),H:(e,t)=>sZ(e.getHours(),t.length),m:(e,t)=>sZ(e.getMinutes(),t.length),s:(e,t)=>sZ(e.getSeconds(),t.length),S(e,t){let n=t.length;return sZ(Math.trunc(e.getMilliseconds()*Math.pow(10,n-3)),t.length)}},sK={G:function(e,t,n){let i=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if("yo"===t){let t=e.getFullYear();return n.ordinalNumber(t>0?t:1-t,{unit:"year"})}return sX.y(e,t)},Y:function(e,t,n,i){let a=sY(e,i),r=a>0?a:1-a;return"YY"===t?sZ(r%100,2):"Yo"===t?n.ordinalNumber(r,{unit:"year"}):sZ(r,t.length)},R:function(e,t){return sZ(sq(e),t.length)},u:function(e,t){return sZ(e.getFullYear(),t.length)},Q:function(e,t,n){let i=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return sZ(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){let i=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return sZ(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){let i=e.getMonth();switch(t){case"M":case"MM":return sX.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){let i=e.getMonth();switch(t){case"L":return String(i+1);case"LL":return sZ(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){let a,r,o,s,l=Math.round((tE(s=t$(e,i?.in),i)-(a=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??tw.firstWeekContainsDate??tw.locale?.options?.firstWeekContainsDate??1,r=sY(s,i),(o=t_(i?.in||s,0)).setFullYear(r,0,a),o.setHours(0,0,0,0),tE(o,i)))/6048e5)+1;return"wo"===t?n.ordinalNumber(l,{unit:"week"}):sZ(l,t.length)},I:function(e,t,n){let i,a,r,o=Math.round((sW(r=t$(e,void 0))-(i=sq(r,void 0),(a=t_(r,0)).setFullYear(i,0,4),a.setHours(0,0,0,0),sW(a)))/6048e5)+1;return"Io"===t?n.ordinalNumber(o,{unit:"week"}):sZ(o,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):sX.d(e,t)},D:function(e,t,n){let i,a,r=sG(a=t$(e,void 0),((i=t$(a,void 0)).setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i))+1;return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):sZ(r,t.length)},E:function(e,t,n){let i=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){let a=e.getDay(),r=(a-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(r);case"ee":return sZ(r,2);case"eo":return n.ordinalNumber(r,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){let a=e.getDay(),r=(a-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(r);case"cc":return sZ(r,t.length);case"co":return n.ordinalNumber(r,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){let i=e.getDay(),a=0===i?7:i;switch(t){case"i":return String(a);case"ii":return sZ(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){let i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){let i,a=e.getHours();switch(i=12===a?"noon":0===a?"midnight":a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){let i,a=e.getHours();switch(i=a>=17?"evening":a>=12?"afternoon":a>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return sX.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):sX.H(e,t)},K:function(e,t,n){let i=e.getHours()%12;return"Ko"===t?n.ordinalNumber(i,{unit:"hour"}):sZ(i,t.length)},k:function(e,t,n){let i=e.getHours();return 0===i&&(i=24),"ko"===t?n.ordinalNumber(i,{unit:"hour"}):sZ(i,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):sX.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):sX.s(e,t)},S:function(e,t){return sX.S(e,t)},X:function(e,t,n){let i=e.getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return sJ(i);case"XXXX":case"XX":return s0(i);default:return s0(i,":")}},x:function(e,t,n){let i=e.getTimezoneOffset();switch(t){case"x":return sJ(i);case"xxxx":case"xx":return s0(i);default:return s0(i,":")}},O:function(e,t,n){let i=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+sQ(i,":");default:return"GMT"+s0(i,":")}},z:function(e,t,n){let i=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+sQ(i,":");default:return"GMT"+s0(i,":")}},t:function(e,t,n){return sZ(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return sZ(+e,t.length)}};function sQ(e,t=""){let n=e>0?"-":"+",i=Math.abs(e),a=Math.trunc(i/60),r=i%60;return 0===r?n+String(a):n+String(a)+t+sZ(r,2)}function sJ(e,t){return e%60==0?(e>0?"-":"+")+sZ(Math.abs(e)/60,2):s0(e,t)}function s0(e,t=""){let n=Math.abs(e);return(e>0?"-":"+")+sZ(Math.trunc(n/60),2)+t+sZ(n%60,2)}let s1=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},s2=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},s3={p:s2,P:(e,t)=>{let n,i=e.match(/(P+)(p+)?/)||[],a=i[1],r=i[2];if(!r)return s1(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",s1(a,t)).replace("{{time}}",s2(r,t))}},s5=/^D+$/,s4=/^Y+$/,s6=["D","DD","YY","YYYY"],s8=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,s7=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,s9=/^'([^]*?)'?$/,le=/''/g,lt=/[a-zA-Z]/;function ln(e,t,n){let i=n?.locale??tw.locale??tS,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??tw.firstWeekContainsDate??tw.locale?.options?.firstWeekContainsDate??1,r=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??tw.weekStartsOn??tw.locale?.options?.weekStartsOn??0,o=t$(e,n?.in);if(!(o instanceof Date||"object"==typeof o&&"[object Date]"===Object.prototype.toString.call(o))&&"number"!=typeof o||isNaN(+t$(o)))throw RangeError("Invalid time value");let s=t.match(s7).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,s3[t])(e,i.formatLong):e}).join("").match(s8).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t){var n;let t;return{isToken:!1,value:(t=(n=e).match(s9))?t[1].replace(le,"'"):n}}if(sK[t])return{isToken:!0,value:e};if(t.match(lt))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(s=i.localize.preprocessor(o,s));let l={firstWeekContainsDate:a,weekStartsOn:r,locale:i};return s.map(a=>{if(!a.isToken)return a.value;let r=a.value;return(!n?.useAdditionalWeekYearTokens&&s4.test(r)||!n?.useAdditionalDayOfYearTokens&&s5.test(r))&&function(e,t,n){var i,a,r;let o,s=(i=e,a=t,r=n,o="Y"===i[0]?"years":"days of the month",`Use \`${i.toLowerCase()}\` instead of \`${i}\` (in \`${a}\`) for formatting ${o} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(console.warn(s),s6.includes(e))throw RangeError(s)}(r,t,String(e)),(0,sK[r[0]])(o,r,i.localize,l)}).join("")}let li=[["15seconds",15e3],["minute",6e4],["30minutes",18e5],["hourly",36e5],["daily",864e5],["monthly",2592e6],["quarterly",7776e6],["yearly",31104e6]];function la(e,t,n,i,a){let r=0===t,o=2===Number(ln(new Date(e),"c")),s=1===Number(ln(new Date(e),"q")),l=0!==t?n[t-1]:null;switch(i){case"15seconds":case"minute":case"30minutes":case"hourly":return r||function(e){let{s:t,m:n,H:i}=lo(e);return 0===i&&0===n&&0===t}(e)||ll(e,l)||lc(e);case"daily":return a?r||o||lc(e):r||ll(e,l)||lc(e);case"weekly":return r||o||lc(e);case"monthly":return r||lc(e);case"quarterly":return r||s;case"yearly":return!1;default:throw Error(`${i} is not a valid time interval.`)}}function lr(e,t,n,i,a,r){let o=a.showDayName,s="daily"===i&&o?"weekly":i,l=new Date(e),c=sH(a,"timeIntervalFormats")[s],u=sH(c,"primary"),h=sH(c,"secondary"),p=la(e,t,n,i,o),d=p?u:h;"15seconds"===i&&0!==l.getMilliseconds()&&(d=d.replace("pp","h:mm:ss.SSS a"));let f=a.localeObject,{code:g,optionsObject:m}=r,y=m[i].type,b=m[i][p?"primary":"secondary"][d];if("quarterly"!==i&&b)return r[y](l,g,b);{let e=ln(l,d,{locale:f}).split("").map(e=>{let t=Number(e);return" "===e||Number.isNaN(t)?e:t?.toLocaleString?.(g)});return r[y](l,g,{},e.join(""))}}function lo(e){let t=new Date(e);return{M:t.getMonth()+1,d:t.getDate(),H:t.getHours(),m:t.getMinutes(),s:t.getSeconds()}}function ls(e,t){var n;let i;return tg[t]?t:1===e.length?"15seconds":(n=function(e){let t;for(let n of e)null!=n&&(t>n||void 0===t&&n>=n)&&(t=n);return t}(function(e){if(e)return e.slice(1).map((t,n)=>t-e[n])}(e)),i=li.reduce((e,[,t],i)=>Math.abs(li[e][1]-n)<Math.abs(t-n)?e:i,0),li[i][0])}function ll(e,t){return lo(e).M!==lo(t).M}function lc(e){let{M:t,d:n,s:i,m:a,H:r}=lo(e);return 1===t&&1===n&&0===r&&0===a&&0===i}function lu(e){return void 0===e?"":e.toISOString()}var lh=((el=lh||{}).GRAPHICS_DOCUMENT="graphics-document",el.GRAPHICS_OBJECT="graphics-object",el.GRAPHICS_SYMBOL="graphics-symbol",el.GROUP="group",el.DOCUMENT="document",el.CHECKBOX="checkbox",el.BUTTON="button",el.MENU="menu",el.MENU_ITEM="menuitem",el.IMG="img",el),lp=(pN=function(e,t){return e&&ad(e,t,nF)},function(e,t){if(null==e)return e;if(!nm(e))return pN(e,t);for(var n=e.length,i=-1,a=Object(e);++i<n&&!1!==t(a[i],i,a););return e});function ld(e){return function(){return e}}function lf(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}Array.prototype.slice;var lg=Object.prototype.hasOwnProperty,lm=(pP=function(e,t,n){lg.call(e,n)?e[n].push(t):ns(e,n,[t])},function(e,t){return(tV(e)?function(e,t,n,i){for(var a=-1,r=null==e?0:e.length;++a<r;){var o=e[a];t(i,o,n(o),e)}return i}:function(e,t,n,i){return lp(e,function(e,a,r){t(i,e,n(e),r)}),i})(e,pP,ap(t),{})});function ly(e){return e}var lb=Array.prototype.slice;function lv(e){return Math.max(1,Math.ceil(Math.log(function(e){let t=0;for(let n of e)null!=n&&(n*=1)>=n&&++t;return t}(e))/Math.LN2)+1)}function l_(e,t){if((a=e.length)>1)for(var n,i,a,r=1,o=e[t[0]],s=o.length;r<a;++r)for(i=o,o=e[t[r]],n=0;n<s;++n)o[n][1]+=o[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function lx(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function lw(e,t){return e[t]}function l$(e){let t=[];return t.key=e,t}function lE(){var e=ld([]),t=lx,n=l_,i=lw;function a(a){var r,o,s=Array.from(e.apply(this,arguments),l$),l=s.length,c=-1;for(let e of a)for(r=0,++c;r<l;++r)(s[r][c]=[0,+i(e,s[r].key,c,a)]).data=e;for(r=0,o=lf(t(s));r<l;++r)s[o[r]].index=r;return n(s,o),s}return a.keys=function(t){return arguments.length?(e="function"==typeof t?t:ld(Array.from(t)),a):e},a.value=function(e){return arguments.length?(i="function"==typeof e?e:ld(+e),a):i},a.order=function(e){return arguments.length?(t=null==e?lx:"function"==typeof e?e:ld(Array.from(e)),a):t},a.offset=function(e){return arguments.length?(n=e??l_,a):n},a}function lA(e,t){if((s=e.length)>0)for(var n,i,a,r,o,s,l=0,c=e[t[0]].length;l<c;++l)for(r=o=0,n=0;n<s;++n)(a=(i=e[t[n]][l])[1]-i[0])>0?(i[0]=r,i[1]=r+=a):a<0?(i[1]=o,i[0]=o+=a):(i[0]=0,i[1]=a)}class lk{constructor(e){this.state={options:{}},this.colorScale={},this.colorClassNames={},this.services=e}formatTable({headers:e,cells:t}){let n,i=this.getOptions(),{code:a,date:r,number:o}=sH(i,"locale"),s=sH(i,"tabularRepModal","tableHeadingFormatter"),l=sH(i,"tabularRepModal","tableCellFormatter"),{cartesianScales:c}=this.services;return c?.getDomainAxisScaleType()===e1.TIME&&(n=e=>r(e,a,{month:"short",day:"numeric",year:"numeric"})),["function"==typeof s?s(e):e,..."function"==typeof l?l(t):t.map(e=>{for(let t in n&&(e[1]=n(e[1])),e){let n=e[t];"number"==typeof n&&(e[t]=o(n,a))}return e})]}getAllDataFromDomain(e){if(!this.getData())return null;let t=this.getOptions(),n=this.getData(),i=this.getDataGroups(),{groupMapsTo:a}=sH(t,"data"),r=sH(t,"axes");return e&&(n=n.filter(t=>e.includes(t[a]))),r&&Object.keys(r).forEach(e=>{let t=r[e].mapsTo,i=r[e].scaleType;if((i===e1.LINEAR||i===e1.LOG)&&(n=n.map(e=>({...e,[t]:null===e[t]?e[t]:Number(e[t])}))),t&&r[e].domain)if(i===e1.LABELS)n=n.filter(n=>r[e].domain.includes(n[t]));else{let[i,a]=r[e].domain;n=n.filter(e=>!(t in e)||e[t]>=i&&e[t]<=a)}}),n.filter(e=>i.find(t=>t.name===e[a]))}getDisplayData(e){if(!this.get("data"))return null;let{ACTIVE:t}=sf.items.status,n=this.getDataGroups(e),{groupMapsTo:i}=this.getOptions().data;return this.getAllDataFromDomain(e).filter(e=>n.find(n=>n.name===e[i]&&n.status===t))}getData(){return this.get("data")}isDataEmpty(){return!this.getData().length}setData(e){let t=this.sanitize(i4(e,5)),n=this.generateDataGroups(t);return this.set({data:t,dataGroups:n}),t}getDataGroups(e){return sH(this.getOptions(),"data","loading")?[]:e?this.get("dataGroups").filter(t=>e.includes(t.name)):this.get("dataGroups")}getActiveDataGroups(e){let{ACTIVE:t}=sf.items.status;return this.getDataGroups(e).filter(e=>e.status===t)}getDataGroupNames(e){return this.getDataGroups(e).map(e=>e.name)}getActiveDataGroupNames(e){return this.getActiveDataGroups(e).map(e=>e.name)}aggregateBinDataByGroup(e){return lm(e,"group")}getBinConfigurations(){let e=this.getDisplayData(),t=this.getOptions(),n=this.services.cartesianScales.getMainXAxisPosition(),i=this.services.cartesianScales.getDomainIdentifier(),a=t.axes[n],{groupMapsTo:r}=t.data,{bins:o=10}=a,s=Array.isArray(o),l=(function(){var e=ly,t=aS,n=lv;function i(i){Array.isArray(i)||(i=Array.from(i));var a,r,o,s=i.length,l=Array(s);for(a=0;a<s;++a)l[a]=e(i[a],a,i);var c=t(l),u=c[0],h=c[1],p=n(l,u,h);if(!Array.isArray(p)){let e=h,n=+p;if(t===aS&&([u,h]=function(e,t,n){let i;for(;;){let a=aP(e,t,n);if(a===i||0===a||!isFinite(a))return[e,t];a>0?(e=Math.floor(e/a)*a,t=Math.ceil(t/a)*a):a<0&&(e=Math.ceil(e*a)/a,t=Math.floor(t*a)/a),i=a}}(u,h,n)),(p=aN(u,h,n))[0]<=u&&(o=aP(u,h,n)),p[p.length-1]>=h)if(e>=h&&t===aS){let e=aP(u,h,n);isFinite(e)&&(e>0?h=(Math.floor(h/e)+1)*e:e<0&&(h=-((Math.ceil(-(h*e))+1)/e)))}else p.pop()}for(var d=p.length,f=0,g=d;p[f]<=u;)++f;for(;p[g-1]>h;)--g;(f||g<d)&&(p=p.slice(f,g),d=g-f);var m,y=Array(d+1);for(a=0;a<=d;++a)(m=y[a]=[]).x0=a>0?p[a-1]:u,m.x1=a<d?p[a]:h;if(isFinite(o)){if(o>0)for(a=0;a<s;++a)null!=(r=l[a])&&u<=r&&r<=h&&y[Math.min(d,Math.floor((r-u)/o))].push(i[a]);else if(o<0){for(a=0;a<s;++a)if(null!=(r=l[a])&&u<=r&&r<=h){let e=Math.floor((u-r)*o);y[Math.min(d,e+(p[e]<=r))].push(i[a])}}}else for(a=0;a<s;++a)null!=(r=l[a])&&u<=r&&r<=h&&y[aM(p,r,0,d)].push(i[a]);return y}return i.value=function(t){return arguments.length?(e="function"==typeof t?t:()=>t,i):e},i.domain=function(e){var n;return arguments.length?(t="function"==typeof e?e:(n=[e[0],e[1]],()=>n),i):t},i.thresholds=function(e){var t;return arguments.length?(n="function"==typeof e?e:(t=Array.isArray(e)?lb.call(e):e,()=>t),i):n},i})().value(e=>e[i]).thresholds(o)(e);if(s)l[l.length-1].x1=o[o.length-1];else{let e=l[0].x1-l[0].x0;l[l.length-1].x1=+l[l.length-1].x0+e}let c=s?[o[0],o[o.length-1]]:[l[0].x0,l[l.length-1].x1],u=Array.from(new Set(e.map(e=>e[r]))),h=[];return l.forEach(e=>{let t=`${e.x0}-${e.x1}`,n=this.aggregateBinDataByGroup(e);u.forEach(i=>{h.push({group:i,key:t,value:n[i]||0,bin:e.x0})})}),{bins:l,binsDomain:c}}getBinnedStackedData(){let{groupMapsTo:e}=this.getOptions().data,t=this.getActiveDataGroupNames(),{bins:n}=this.getBinConfigurations(),i=this.getDataValuesGroupedByKeys({bins:n});return lE().keys(t)(i).map((n,i)=>Object.keys(n).filter(e=>!isNaN(e)).map(a=>{let r=n[a];return r[e]=t[i],r}))}getGroupedData(e){let t=this.getDisplayData(e),n={},{groupMapsTo:i}=this.getOptions().data;return t.map(e=>{let t=e[i];null!==n[t]&&void 0!==n[t]?n[t].push(e):n[t]=[e]}),Object.keys(n).map(e=>({name:e,data:n[e]}))}getStackKeys({bins:e=null,groups:t=null}={bins:null,groups:null}){let n,i=this.getOptions(),a=this.getDisplayData(t);n=e?e.map(e=>`${e.x0}:${e.x1}`):a$(a.map(e=>{let t=this.services.cartesianScales.getDomainIdentifier(e);return e[t]instanceof Date?lu(e[t]):e[t]&&"function"==typeof e[t].toString?e[t].toString():e[t]}));let r=this.services.cartesianScales.domainAxisPosition,o=i.axes[r].scaleType;return o===e1.TIME?n.sort((e,t)=>new Date(e)-new Date(t)):(o===e1.LOG||o===e1.LINEAR)&&n.sort((e,t)=>e-t),n}getDataValuesGroupedByKeys({bins:e=null,groups:t=null}){let{groupMapsTo:n}=this.getOptions().data,i=this.getDisplayData(t),a=this.getDataGroupNames(),r=this.getStackKeys({bins:e,groups:t});return e?r.map(t=>{let[i,r]=t.split(":"),o={x0:i,x1:r},s=e.find(e=>e.x0.toString()===i.toString());return a.forEach(e=>{o[e]=s.filter(t=>t[n]===e).length}),o}):r.map(e=>{let t={sharedStackKey:e};return a.forEach(a=>{let r=i.find(t=>{let i=this.services.cartesianScales.getDomainIdentifier(t);return t[n]===a&&Object.prototype.hasOwnProperty.call(t,i)&&(t[i]instanceof Date?lu(t[i])===e:t[i].toString()===e)}),o=this.services.cartesianScales.getRangeIdentifier(t);t[a]=r?r[o]:null}),t})}getStackedData({percentage:e=!1,groups:t=null,divergent:n=!1}){let{groupMapsTo:i}=this.getOptions().data,a=this.getActiveDataGroupNames(t),r=this.getDataValuesGroupedByKeys({groups:t});if(e){let e=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var a=e[t];i[a[0]]=a[1]}return i}(r.map(e=>[e.sharedStackKey,0]));r.forEach(t=>{a.forEach(n=>{e[t.sharedStackKey]+=t[n]})}),r.forEach(t=>{a.forEach(n=>{let i=e[t.sharedStackKey];e[t.sharedStackKey]?t[n]=t[n]/i*100:t[n]=0})})}return(n?lE().offset(lA):lE()).keys(a)(r).map((e,t)=>Object.keys(e).filter(e=>!isNaN(e)).map(n=>{let r=e[n];return r[i]=a[t],r}))}getOptions(){return this.state.options}set(e,t){this.state=Object.assign({},this.state,e);let n=Object.assign({skipUpdate:!1,animate:!0},t);n.skipUpdate||this.update(n.animate)}get(e){return e?this.state[e]:this.state}setOptions(e){let t=this.getOptions();sB(t,e),this.set({options:av(t,e)})}update(e=!0){this.getDisplayData()&&(this.updateAllDataGroups(),this.setCustomColorScale(),this.setColorClassNames(),this.services.events.dispatchEvent(eq.Model.UPDATE,{animate:e}))}toggleDataLabel(e){let{ACTIVE:t,DISABLED:n}=sf.items.status,i=this.getDataGroups(),a=i.some(e=>e.status===n),r=i.filter(e=>e.status===t);if(a)if(1===r.length&&r[0].name===e)i.forEach((e,n)=>{i[n].status=t});else{let a=i.findIndex(t=>t.name===e);i[a].status=i[a].status===n?t:n}else i.forEach((a,r)=>{i[r].status=a.name===e?t:n});let o=i.filter(e=>e.status===t),s=this.getOptions();i.some(e=>e.status===n)?s.data.selectedGroups=o.map(e=>e.name):s.data.selectedGroups=[],this.services.events.dispatchEvent(eq.Legend.ITEMS_UPDATE,{dataGroups:i}),this.set({dataGroups:i})}getIsFilled(e,t,n,i){let a=this.getOptions();return a.getIsFilled?a.getIsFilled(e,t,n,i):i}getFillColor(e,t,n){let i=this.getOptions(),a=sH(this.colorScale,e);return i.getFillColor?i.getFillColor(e,t,n,a):a}getStrokeColor(e,t,n){let i=this.getOptions(),a=sH(this.colorScale,e);return i.getStrokeColor?i.getStrokeColor(e,t,n,a):a}isUserProvidedColorScaleValid(){let e=sH(this.getOptions(),"color","scale"),t=this.getDataGroups();return null!=e&&0!=Object.keys(e).length&&t.some(t=>Object.keys(e).includes(t.name))}getColorClassName(e){let t=this.colorClassNames(e.dataGroupName),n=e.originalClassName;return e.classNameTypes.forEach(i=>n=e.originalClassName?`${n} ${i}-${t}`:`${i}-${t}`),n||""}getStatus(){return null}getAllDataGroupsNames(){return this.allDataGroups}transformToTabularData(e){console.warn("We've updated the charting data format to be tabular by default. The current format you're using is deprecated and will be removed in v1.0, read more here https://charts.carbondesignsystem.com/");let t=[],{datasets:n,labels:i}=e;return n.forEach(e=>{e.data.forEach((n,a)=>{let r,o=sH(e,"label");if(null===o){let e=sH(i,a);r=e||"Ungrouped"}else r=o;let s={group:r,key:i[a]};isNaN(n)?(s.value=n.value,s.date=n.date):s.value=n,t.push(s)})}),t}getTabularDataArray(){return[]}exportToCSV(){let e=this.getTabularDataArray().map(e=>e.map(e=>`"${("&ndash;"===e?"–":e).split(/[,;'"`]/).map(e=>{let t;return["=","+","-","@"," ","\r"].includes((t=e.trim()).charAt(0))?`\xa0${t}`:/[,\"\n]/.test(t)?`"${t}"`:t}).join("")}"`)).map(e=>e.join(",")).join(`
2
+ `),t=this.getOptions(),n="myChart",i=sH(t,"fileDownload","fileName");"function"==typeof i?n=i("csv"):"string"==typeof i&&(n=i),this.services.files.downloadCSV(e,`${n}.csv`)}getTabularData(e){return Array.isArray(e)?e:this.transformToTabularData(e)}sanitize(e){return e=this.getTabularData(e)}updateAllDataGroups(){this.allDataGroups?this.getDataGroupNames().forEach(e=>{-1===this.allDataGroups.indexOf(e)&&this.allDataGroups.push(e)}):this.allDataGroups=this.getDataGroupNames()}generateDataGroups(e){let{groupMapsTo:t}=this.getOptions().data,{ACTIVE:n,DISABLED:i}=sf.items.status,a=this.getOptions(),r=a$(e.map(e=>e[t]));return a.data.selectedGroups.length&&(a.data.selectedGroups.every(e=>r.includes(e))||(a.data.selectedGroups=[])),r.map(e=>({name:e,status:!a.data.selectedGroups.length||a.data.selectedGroups.includes(e)?n:i}))}setCustomColorScale(){if(!this.isUserProvidedColorScaleValid())return;let e=sH(this.getOptions(),"color","scale");Object.keys(e).forEach(e=>{this.allDataGroups.includes(e)||console.warn(`"${e}" does not exist in data groups.`)}),this.allDataGroups.filter(t=>e[t]).forEach(t=>this.colorScale[t]=e[t])}setColorClassNames(){let e=sH(this.getOptions(),"color","pairing"),t=sH(e,"numberOfVariants");(!t||t<this.allDataGroups.length)&&(t=this.allDataGroups.length);let n=sH(e,"option"),i=t>5?14:t,a=`${i}-color`;n=n<=sd[a]?n:1;let r=this.allDataGroups.map((e,t)=>`${i}-${n}-${t%14+1}`);this.colorClassNames=o6().range(r).domain(this.allDataGroups)}}class lT extends lk{constructor(e){super(e),this.axisFlavor=td.DEFAULT}assignRangeAndDomains(){let{cartesianScales:e}=this.services,t=this.getOptions(),n=e.isDualAxes(),i={primaryDomain:e.domainAxisPosition,primaryRange:e.rangeAxisPosition,secondaryDomain:null,secondaryRange:null};return n&&(i.secondaryDomain=e.secondaryDomainAxisPosition,i.secondaryRange=e.secondaryRangeAxisPosition),Object.keys(i).forEach(n=>{let a=i[n];e.scales[a]?i[n]={position:a,label:e.getScaleLabel(a),identifier:sH(t,"axes",a,"mapsTo")}:i[n]=null}),i}getTabularDataArray(){let e=this.getDisplayData(),{groupMapsTo:t}=this.getOptions().data,{primaryDomain:n,primaryRange:i,secondaryDomain:a,secondaryRange:r}=this.assignRangeAndDomains(),{number:o,code:s}=sH(this.getOptions(),"locale"),l=["Group",n.label,i.label,...a?[a.label]:[],...r?[r.label]:[]],c=e.map(e=>[e[t],null===e[n.identifier]?"&ndash;":e[n.identifier],null===e[i.identifier]||isNaN(e[i.identifier])?"&ndash;":o(e[i.identifier],s),...a?[null===e[a.identifier]?"&ndash;":e[a.identifier]]:[],...r?[null===e[r.identifier]||isNaN(e[r.identifier])?"&ndash;":e[r.identifier]]:[]]);return super.formatTable({headers:l,cells:c})}setData(e){let t;if(e&&(t=super.setData(e),sH(this.getOptions(),"zoomBar",eK.TOP,"enabled"))){let e=sH(this.getOptions(),"zoomBar",eK.TOP,"data");this.setZoomBarData(e)}return t}setZoomBarData(e){let t=e?this.sanitize(i4(e,5)):this.getDisplayData(),n=t,{cartesianScales:i}=this.services;if(t&&i.domainAxisPosition&&i.rangeAxisPosition){let e=i.getDomainIdentifier(),a=i.getRangeIdentifier(),r=t.map(t=>t[e].getTime());n=(r=a$(r).sort()).map(n=>{let i=0,r={};return t.forEach(t=>{t[e].getTime()===n&&(i+=t[a])}),r[e]=new Date(n),r[a]=i,r})}this.set({zoomBarData:n})}getZoomBarData(){return this.get("zoomBarData")}sanitizeDateValues(e){let t=this.getOptions();if(!t.axes)return e;let n=[];return Object.keys(eK).forEach(e=>{let i=eK[e],a=t.axes[i];if(a&&a.scaleType===e1.TIME){let e=a.mapsTo;(null!==e||void 0!==e)&&n.push(e)}}),n.length>0&&e.forEach(e=>{n.forEach(t=>{null===sH(e,t,"getTime")&&(e[t]=new Date(e[t]))})}),e}sanitize(e){return e=super.sanitize(e),e=this.sanitizeDateValues(e)}}var lM=/\s/,lS=/^\s+/,lO=NaN,lC=/^[-+]0x[0-9a-f]+$/i,lD=/^0b[01]+$/i,lz=/^0o[0-7]+$/i,lL=parseInt;function lR(e){if("number"==typeof e)return e;if(tF(e))return lO;if(tq(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=tq(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)&&t.slice(0,function(e){for(var t=e.length;t--&&lM.test(e.charAt(t)););return t}(t)+1).replace(lS,"");var i=lD.test(e);return i||lz.test(e)?lL(e.slice(2),i?2:8):lC.test(e)?lO:+e}var lI=function(){return tD.Date.now()},lN=Math.max,lP=Math.min;function lB(e){return"string"==typeof e?new rv([[document.querySelector(e)]],[document.documentElement]):new rv([[e]],rb)}function lH(e,t){e=e.slice();var n,i=0,a=e.length-1,r=e[i],o=e[a];return o<r&&(n=i,i=a,a=n,n=r,r=o,o=n),e[i]=t.floor(r),e[a]=t.ceil(o),e}let lU=new Date,lF=new Date;function lj(e,t,n,i){function a(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return a.floor=t=>(e(t=new Date(+t)),t),a.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),a.round=e=>{let t=a(e),n=a.ceil(e);return e-t<n-e?t:n},a.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),a.range=(n,i,r)=>{let o,s=[];if(n=a.ceil(n),r=null==r?1:Math.floor(r),!(n<i)||!(r>0))return s;do s.push(o=new Date(+n)),t(n,r),e(n);while(o<n&&n<i);return s},a.filter=n=>lj(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,i)=>{if(e>=e)if(i<0)for(;++i<=0;)for(;t(e,-1),!n(e););else for(;--i>=0;)for(;t(e,1),!n(e););}),n&&(a.count=(t,i)=>(lU.setTime(+t),lF.setTime(+i),e(lU),e(lF),Math.floor(n(lU,lF))),a.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?a.filter(i?t=>i(t)%e==0:t=>a.count(0,t)%e==0):a:null),a}let lV=lj(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);lV.every=e=>isFinite(e=Math.floor(e))&&e>0?e>1?lj(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):lV:null,lV.range;let lG=lj(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+1e3*t)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds());lG.range;let lW=lj(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getMinutes());lW.range,lj(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+6e4*t)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes()).range;let lq=lj(e=>{e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getHours());lq.range,lj(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+36e5*t)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours()).range;let lY=lj(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1);lY.range;let lZ=lj(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1);function lX(e){return lj(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}lZ.range,lj(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5)).range;let lK=lX(0),lQ=lX(1),lJ=lX(2),l0=lX(3),l1=lX(4),l2=lX(5),l3=lX(6);function l5(e){return lj(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/6048e5)}lK.range,lQ.range,lJ.range,l0.range,l1.range,l2.range,l3.range;let l4=l5(0),l6=l5(1),l8=l5(2),l7=l5(3),l9=l5(4),ce=l5(5),ct=l5(6);l4.range,l6.range,l8.range,l7.range,l9.range,ce.range,ct.range;let cn=lj(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());cn.range,lj(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()).range;let ci=lj(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ci.every=e=>isFinite(e=Math.floor(e))&&e>0?lj(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null,ci.range;let ca=lj(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());ca.every=e=>isFinite(e=Math.floor(e))&&e>0?lj(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null,ca.range;let[cr,co]=function(e,t,n,i,a,r){let o=[[lG,1,1e3],[lG,5,5e3],[lG,15,15e3],[lG,30,3e4],[r,1,6e4],[r,5,3e5],[r,15,9e5],[r,30,18e5],[a,1,36e5],[a,3,108e5],[a,6,216e5],[a,12,432e5],[i,1,864e5],[i,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function s(t,n,i){let a=Math.abs(n-t)/i,r=ak(([,,e])=>e).right(o,a);if(r===o.length)return e.every(aB(t/31536e6,n/31536e6,i));if(0===r)return lV.every(Math.max(aB(t,n,i),1));let[s,l]=o[a/o[r-1][2]<o[r][2]/a?r-1:r];return s.every(l)}return[function(e,t,n){let i=t<e;i&&([e,t]=[t,e]);let a=n&&"function"==typeof n.range?n:s(e,t,n),r=a?a.range(e,+t+1):[];return i?r.reverse():r},s]}(ci,cn,lK,lY,lq,lW);function cs(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function cl(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function cc(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var cu={"-":"",_:" ",0:"0"},ch=/^\s*\d+/,cp=/^%/,cd=/[\\^$*+?|[\]().{}]/g;function cf(e,t,n){var i=e<0?"-":"",a=(i?-e:e)+"",r=a.length;return i+(r<n?Array(n-r+1).join(t)+a:a)}function cg(e){return e.replace(cd,"\\$&")}function cm(e){return RegExp("^(?:"+e.map(cg).join("|")+")","i")}function cy(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function cb(e,t,n){var i=ch.exec(t.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function cv(e,t,n){var i=ch.exec(t.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function c_(e,t,n){var i=ch.exec(t.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function cx(e,t,n){var i=ch.exec(t.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function cw(e,t,n){var i=ch.exec(t.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function c$(e,t,n){var i=ch.exec(t.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function cE(e,t,n){var i=ch.exec(t.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function cA(e,t,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function ck(e,t,n){var i=ch.exec(t.slice(n,n+1));return i?(e.q=3*i[0]-3,n+i[0].length):-1}function cT(e,t,n){var i=ch.exec(t.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function cM(e,t,n){var i=ch.exec(t.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function cS(e,t,n){var i=ch.exec(t.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function cO(e,t,n){var i=ch.exec(t.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function cC(e,t,n){var i=ch.exec(t.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function cD(e,t,n){var i=ch.exec(t.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function cz(e,t,n){var i=ch.exec(t.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function cL(e,t,n){var i=ch.exec(t.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function cR(e,t,n){var i=cp.exec(t.slice(n,n+1));return i?n+i[0].length:-1}function cI(e,t,n){var i=ch.exec(t.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function cN(e,t,n){var i=ch.exec(t.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function cP(e,t){return cf(e.getDate(),t,2)}function cB(e,t){return cf(e.getHours(),t,2)}function cH(e,t){return cf(e.getHours()%12||12,t,2)}function cU(e,t){return cf(1+lY.count(ci(e),e),t,3)}function cF(e,t){return cf(e.getMilliseconds(),t,3)}function cj(e,t){return cF(e,t)+"000"}function cV(e,t){return cf(e.getMonth()+1,t,2)}function cG(e,t){return cf(e.getMinutes(),t,2)}function cW(e,t){return cf(e.getSeconds(),t,2)}function cq(e){var t=e.getDay();return 0===t?7:t}function cY(e,t){return cf(lK.count(ci(e)-1,e),t,2)}function cZ(e){var t=e.getDay();return t>=4||0===t?l1(e):l1.ceil(e)}function cX(e,t){return e=cZ(e),cf(l1.count(ci(e),e)+(4===ci(e).getDay()),t,2)}function cK(e){return e.getDay()}function cQ(e,t){return cf(lQ.count(ci(e)-1,e),t,2)}function cJ(e,t){return cf(e.getFullYear()%100,t,2)}function c0(e,t){return cf((e=cZ(e)).getFullYear()%100,t,2)}function c1(e,t){return cf(e.getFullYear()%1e4,t,4)}function c2(e,t){var n=e.getDay();return cf((e=n>=4||0===n?l1(e):l1.ceil(e)).getFullYear()%1e4,t,4)}function c3(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+cf(t/60|0,"0",2)+cf(t%60,"0",2)}function c5(e,t){return cf(e.getUTCDate(),t,2)}function c4(e,t){return cf(e.getUTCHours(),t,2)}function c6(e,t){return cf(e.getUTCHours()%12||12,t,2)}function c8(e,t){return cf(1+lZ.count(ca(e),e),t,3)}function c7(e,t){return cf(e.getUTCMilliseconds(),t,3)}function c9(e,t){return c7(e,t)+"000"}function ue(e,t){return cf(e.getUTCMonth()+1,t,2)}function ut(e,t){return cf(e.getUTCMinutes(),t,2)}function un(e,t){return cf(e.getUTCSeconds(),t,2)}function ui(e){var t=e.getUTCDay();return 0===t?7:t}function ua(e,t){return cf(l4.count(ca(e)-1,e),t,2)}function ur(e){var t=e.getUTCDay();return t>=4||0===t?l9(e):l9.ceil(e)}function uo(e,t){return e=ur(e),cf(l9.count(ca(e),e)+(4===ca(e).getUTCDay()),t,2)}function us(e){return e.getUTCDay()}function ul(e,t){return cf(l6.count(ca(e)-1,e),t,2)}function uc(e,t){return cf(e.getUTCFullYear()%100,t,2)}function uu(e,t){return cf((e=ur(e)).getUTCFullYear()%100,t,2)}function uh(e,t){return cf(e.getUTCFullYear()%1e4,t,4)}function up(e,t){var n=e.getUTCDay();return cf((e=n>=4||0===n?l9(e):l9.ceil(e)).getUTCFullYear()%1e4,t,4)}function ud(){return"+0000"}function uf(){return"%"}function ug(e){return+e}function um(e){return Math.floor(e/1e3)}function uy(e){return new Date(e)}function ub(e){return e instanceof Date?+e:+new Date(+e)}function uv(){return o5.apply((function e(t,n,i,a,r,o,s,l,c,u){var h=sa()(o9,o9),p=h.invert,d=h.domain,f=u(".%L"),g=u(":%S"),m=u("%I:%M"),y=u("%I %p"),b=u("%a %d"),v=u("%b %d"),_=u("%B"),x=u("%Y");function w(e){return(c(e)<e?f:l(e)<e?g:s(e)<e?m:o(e)<e?y:a(e)<e?r(e)<e?b:v:i(e)<e?_:x)(e)}return h.invert=function(e){return new Date(p(e))},h.domain=function(e){return arguments.length?d(Array.from(e,ub)):d().map(uy)},h.ticks=function(e){var n=d();return t(n[0],n[n.length-1],e??10)},h.tickFormat=function(e,t){return null==t?w:u(t)},h.nice=function(e){var t=d();return e&&"function"==typeof e.range||(e=n(t[0],t[t.length-1],e??10)),e?d(lH(t,e)):h},h.copy=function(){return si(h,e(t,n,i,a,r,o,s,l,c,u))},h})(cr,co,ci,cn,lK,lY,lq,lW,lG,pG).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}pG=(pV=function(e){var t=e.dateTime,n=e.date,i=e.time,a=e.periods,r=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,c=cm(a),u=cy(a),h=cm(r),p=cy(r),d=cm(o),f=cy(o),g=cm(s),m=cy(s),y=cm(l),b=cy(l),v={a:function(e){return o[e.getDay()]},A:function(e){return r[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:cP,e:cP,f:cj,g:c0,G:c2,H:cB,I:cH,j:cU,L:cF,m:cV,M:cG,p:function(e){return a[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:ug,s:um,S:cW,u:cq,U:cY,V:cX,w:cK,W:cQ,x:null,X:null,y:cJ,Y:c1,Z:c3,"%":uf},_={a:function(e){return o[e.getUTCDay()]},A:function(e){return r[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:c5,e:c5,f:c9,g:uu,G:up,H:c4,I:c6,j:c8,L:c7,m:ue,M:ut,p:function(e){return a[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:ug,s:um,S:un,u:ui,U:ua,V:uo,w:us,W:ul,x:null,X:null,y:uc,Y:uh,Z:ud,"%":uf},x={a:function(e,t,n){var i=d.exec(t.slice(n));return i?(e.w=f.get(i[0].toLowerCase()),n+i[0].length):-1},A:function(e,t,n){var i=h.exec(t.slice(n));return i?(e.w=p.get(i[0].toLowerCase()),n+i[0].length):-1},b:function(e,t,n){var i=y.exec(t.slice(n));return i?(e.m=b.get(i[0].toLowerCase()),n+i[0].length):-1},B:function(e,t,n){var i=g.exec(t.slice(n));return i?(e.m=m.get(i[0].toLowerCase()),n+i[0].length):-1},c:function(e,n,i){return E(e,t,n,i)},d:cM,e:cM,f:cL,g:cE,G:c$,H:cO,I:cO,j:cS,L:cz,m:cT,M:cC,p:function(e,t,n){var i=c.exec(t.slice(n));return i?(e.p=u.get(i[0].toLowerCase()),n+i[0].length):-1},q:ck,Q:cI,s:cN,S:cD,u:cv,U:c_,V:cx,w:cb,W:cw,x:function(e,t,i){return E(e,n,t,i)},X:function(e,t,n){return E(e,i,t,n)},y:cE,Y:c$,Z:cA,"%":cR};function w(e,t){return function(n){var i,a,r,o=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(o.push(e.slice(l,s)),null!=(a=cu[i=e.charAt(++s)])?i=e.charAt(++s):a="e"===i?" ":"0",(r=t[i])&&(i=r(n,a)),o.push(i),l=s+1);return o.push(e.slice(l,s)),o.join("")}}function $(e,t){return function(n){var i,a,r=cc(1900,void 0,1);if(E(r,e,n+="",0)!=n.length)return null;if("Q"in r)return new Date(r.Q);if("s"in r)return new Date(1e3*r.s+("L"in r?r.L:0));if(!t||"Z"in r||(r.Z=0),"p"in r&&(r.H=r.H%12+12*r.p),void 0===r.m&&(r.m="q"in r?r.q:0),"V"in r){if(r.V<1||r.V>53)return null;"w"in r||(r.w=1),"Z"in r?(i=(a=(i=cl(cc(r.y,0,1))).getUTCDay())>4||0===a?l6.ceil(i):l6(i),i=lZ.offset(i,(r.V-1)*7),r.y=i.getUTCFullYear(),r.m=i.getUTCMonth(),r.d=i.getUTCDate()+(r.w+6)%7):(i=(a=(i=cs(cc(r.y,0,1))).getDay())>4||0===a?lQ.ceil(i):lQ(i),i=lY.offset(i,(r.V-1)*7),r.y=i.getFullYear(),r.m=i.getMonth(),r.d=i.getDate()+(r.w+6)%7)}else("W"in r||"U"in r)&&("w"in r||(r.w="u"in r?r.u%7:+("W"in r)),a="Z"in r?cl(cc(r.y,0,1)).getUTCDay():cs(cc(r.y,0,1)).getDay(),r.m=0,r.d="W"in r?(r.w+6)%7+7*r.W-(a+5)%7:r.w+7*r.U-(a+6)%7);return"Z"in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,cl(r)):cs(r)}}function E(e,t,n,i){for(var a,r,o=0,s=t.length,l=n.length;o<s;){if(i>=l)return -1;if(37===(a=t.charCodeAt(o++))){if(!(r=x[(a=t.charAt(o++))in cu?t.charAt(o++):a])||(i=r(e,n,i))<0)return -1}else if(a!=n.charCodeAt(i++))return -1}return i}return v.x=w(n,v),v.X=w(i,v),v.c=w(t,v),_.x=w(n,_),_.X=w(i,_),_.c=w(t,_),{format:function(e){var t=w(e+="",v);return t.toString=function(){return e},t},parse:function(e){var t=$(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",_);return t.toString=function(){return e},t},utcParse:function(e){var t=$(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,pV.parse,pV.utcFormat,pV.utcParse;let u_=Math.abs,ux=Math.atan2,uw=Math.cos,u$=Math.max,uE=Math.min,uA=Math.sin,uk=Math.sqrt,uT=Math.PI,uM=uT/2,uS=2*uT;function uO(e){return e>=1?uM:e<=-1?-uM:Math.asin(e)}function uC(e){this._context=e}function uD(e){return new uC(e)}function uz(){}function uL(e){this._context=e}function uR(e){return new uL(e)}uC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},uL.prototype={areaStart:uz,areaEnd:uz,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e*=1,t*=1,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};let uI=(ec=0,()=>(ec+=1,`u${`0000${(1679616*Math.random()|0).toString(36)}`.slice(-4)}${ec}`));function uN(e){let t=[];for(let n=0,i=e.length;n<i;n++)t.push(e[n]);return t}function uP(e,t){let n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0}function uB(e,t={}){let n,i,a,r;return{width:t.width||(n=uP(e,"border-left-width"),i=uP(e,"border-right-width"),e.clientWidth+n+i),height:t.height||(a=uP(e,"border-top-width"),r=uP(e,"border-bottom-width"),e.clientHeight+a+r)}}function uH(e){return new Promise((t,n)=>{let i=new Image;i.decode=()=>t(i),i.onload=()=>t(i),i.onerror=n,i.crossOrigin="anonymous",i.decoding="async",i.src=e})}async function uU(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function uF(e,t,n){let i="http://www.w3.org/2000/svg",a=document.createElementNS(i,"svg"),r=document.createElementNS(i,"foreignObject");return a.setAttribute("width",`${t}`),a.setAttribute("height",`${n}`),a.setAttribute("viewBox",`0 0 ${t} ${n}`),r.setAttribute("width","100%"),r.setAttribute("height","100%"),r.setAttribute("x","0"),r.setAttribute("y","0"),r.setAttribute("externalResourcesRequired","true"),a.appendChild(r),r.appendChild(e),uU(a)}let uj=(e,t)=>{if(e instanceof t)return!0;let n=Object.getPrototypeOf(e);return null!==n&&(n.constructor.name===t.name||uj(n,t))};function uV(e,t,n){let i,a,r,o=window.getComputedStyle(e,n),s=o.getPropertyValue("content");if(""===s||"none"===s)return;let l=uI();try{t.className=`${t.className} ${l}`}catch{return}let c=document.createElement("style");c.appendChild((a=`.${l}:${n}`,r=o.cssText?(i=o.getPropertyValue("content"),`${o.cssText} content: '${i.replace(/'|"/g,"")}';`):uN(o).map(e=>{let t=o.getPropertyValue(e),n=o.getPropertyPriority(e);return`${e}: ${t}${n?" !important":""};`}).join(" "),document.createTextNode(`${a}{${r}}`))),t.appendChild(c)}let uG="application/font-woff",uW="image/jpeg",uq={woff:uG,woff2:uG,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:uW,jpeg:uW,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function uY(e){let t;return uq[((t=/\.([^./]*?)$/g.exec(e))?t[1]:"").toLowerCase()]||""}function uZ(e){return -1!==e.search(/^(data:)/)}async function uX(e,t,n){let i=await fetch(e,t);if(404===i.status)throw Error(`Resource "${i.url}" not found`);let a=await i.blob();return new Promise((e,t)=>{let r=new FileReader;r.onerror=t,r.onloadend=()=>{try{e(n({res:i,result:r.result}))}catch(e){t(e)}},r.readAsDataURL(a)})}let uK={};async function uQ(e,t,n){var i,a,r,o,s;let l,c,u=(i=e,a=t,r=n.includeQueryParams,c=i.replace(/\?.*/,""),r&&(c=i),/ttf|otf|eot|woff2?/i.test(c)&&(c=c.replace(/.*\//,"")),a?`[${a}]${c}`:c);if(null!=uK[u])return uK[u];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());try{o=await uX(e,n.fetchRequestInit,({res:e,result:n})=>(t||(t=e.headers.get("Content-Type")||""),n.split(/,/)[1])),s=t,l=`data:${s};base64,${o}`}catch(i){l=n.imagePlaceholder||"";let t=`Failed to fetch resource: ${e}`;i&&(t="string"==typeof i?i:i.message),t&&console.warn(t)}return uK[u]=l,l}async function uJ(e){let t=e.toDataURL();return"data:,"===t?e.cloneNode(!1):uH(t)}async function u0(e,t){if(e.currentSrc){let t=document.createElement("canvas"),n=t.getContext("2d");return t.width=e.clientWidth,t.height=e.clientHeight,n?.drawImage(e,0,0,t.width,t.height),uH(t.toDataURL())}let n=e.poster,i=uY(n);return uH(await uQ(n,i,t))}async function u1(e){var t;try{if(null!=(t=e?.contentDocument)&&t.body)return await u4(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function u2(e,t){return uj(e,HTMLCanvasElement)?uJ(e):uj(e,HTMLVideoElement)?u0(e,t):uj(e,HTMLIFrameElement)?u1(e):e.cloneNode(!1)}async function u3(e,t,n){var i,a;let r=[];return 0===(r=null!=e.tagName&&"SLOT"===e.tagName.toUpperCase()&&e.assignedNodes?uN(e.assignedNodes()):uj(e,HTMLIFrameElement)&&null!=(i=e.contentDocument)&&i.body?uN(e.contentDocument.body.childNodes):uN((null!=(a=e.shadowRoot)?a:e).childNodes)).length||uj(e,HTMLVideoElement)||await r.reduce((e,i)=>e.then(()=>u4(i,n)).then(e=>{e&&t.appendChild(e)}),Promise.resolve()),t}async function u5(e,t){let n=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===n.length)return e;let i={};for(let a=0;a<n.length;a++){let r=n[a].getAttribute("xlink:href");if(r){let n=e.querySelector(r),a=document.querySelector(r);n||!a||i[r]||(i[r]=await u4(a,t,!0))}}let a=Object.values(i);if(a.length){let t="http://www.w3.org/1999/xhtml",n=document.createElementNS(t,"svg");n.setAttribute("xmlns",t),n.style.position="absolute",n.style.width="0",n.style.height="0",n.style.overflow="hidden",n.style.display="none";let i=document.createElementNS(t,"defs");n.appendChild(i);for(let e=0;e<a.length;e++)i.appendChild(a[e]);e.appendChild(n)}return e}async function u4(e,t,n){return n||!t.filter||t.filter(e)?Promise.resolve(e).then(e=>u2(e,t)).then(n=>u3(e,n,t)).then(t=>(uj(t,Element)&&(function(e,t){let n=t.style;if(!n)return;let i=window.getComputedStyle(e);i.cssText?(n.cssText=i.cssText,n.transformOrigin=i.transformOrigin):uN(i).forEach(a=>{let r=i.getPropertyValue(a);"font-size"===a&&r.endsWith("px")&&(r=`${Math.floor(parseFloat(r.substring(0,r.length-2)))-.1}px`),uj(e,HTMLIFrameElement)&&"display"===a&&"inline"===r&&(r="block"),"d"===a&&t.getAttribute("d")&&(r=`path(${t.getAttribute("d")})`),n.setProperty(a,r,i.getPropertyPriority(a))})}(e,t),uV(e,t,":before"),uV(e,t,":after"),uj(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),uj(e,HTMLInputElement)&&t.setAttribute("value",e.value),function(e,t){if(uj(e,HTMLSelectElement)){let n=Array.from(t.children).find(t=>e.value===t.getAttribute("value"));n&&n.setAttribute("selected","")}}(e,t)),t)).then(e=>u5(e,t)):null}let u6=/url\((['"]?)([^'"]+?)\1\)/g,u8=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,u7=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function u9(e,t,n,i,a){try{let r,o,s=n?function(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;let n=document.implementation.createHTMLDocument(),i=n.createElement("base"),a=n.createElement("a");return n.head.appendChild(i),n.body.appendChild(a),t&&(i.href=t),a.href=e,a.href}(t,n):t,l=uY(t);return a||(r=await uQ(s,l,i)),e.replace((o=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1"),RegExp(`(url\\(['"]?)(${o})(['"]?\\))`,"g")),`$1${r}$3`)}catch{}return e}function he(e){return -1!==e.search(u6)}async function ht(e,t,n){let i;if(!he(e))return e;let a=function(e,{preferredFontFormat:t}){return t?e.replace(u7,e=>{for(;;){let[n,,i]=u8.exec(e)||[];if(!i)return"";if(i===t)return`src: ${n};`}}):e}(e,n);return(i=[],a.replace(u6,(e,t,n)=>(i.push(n),e)),i.filter(e=>!uZ(e))).reduce((e,i)=>e.then(e=>u9(e,i,t,n)),Promise.resolve(a))}async function hn(e,t,n){var i;let a=null==(i=t.style)?void 0:i.getPropertyValue(e);if(a){let i=await ht(a,null,n);return t.style.setProperty(e,i,t.style.getPropertyPriority(e)),!0}return!1}async function hi(e,t){await hn("background",e,t)||await hn("background-image",e,t),await hn("mask",e,t)||await hn("mask-image",e,t)}async function ha(e,t){let n=uj(e,HTMLImageElement);if(!(n&&!uZ(e.src))&&!(uj(e,SVGImageElement)&&!uZ(e.href.baseVal)))return;let i=n?e.src:e.href.baseVal,a=await uQ(i,uY(i),t);await new Promise((t,i)=>{e.onload=t,e.onerror=i,e.decode&&(e.decode=t),"lazy"===e.loading&&(e.loading="eager"),n?(e.srcset="",e.src=a):e.href.baseVal=a})}async function hr(e,t){let n=uN(e.childNodes).map(e=>ho(e,t));await Promise.all(n).then(()=>e)}async function ho(e,t){uj(e,Element)&&(await hi(e,t),await ha(e,t),await hr(e,t))}let hs={};async function hl(e){let t=hs[e];if(null!=t)return t;let n=await (await fetch(e)).text();return t={url:e,cssText:n},hs[e]=t,t}async function hc(e,t){let n=e.cssText,i=/url\(["']?([^"')]+)["']?\)/g;return Promise.all((n.match(/url\([^)]+\)/g)||[]).map(async a=>{let r=a.replace(i,"$1");return r.startsWith("https://")||(r=new URL(r,e.url).href),uX(r,t.fetchRequestInit,({result:e})=>(n=n.replace(a,`url(${e})`),[a,e]))})).then(()=>n)}function hu(e){if(null==e)return[];let t=[],n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,""),i=RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let e=i.exec(n);if(null===e)break;t.push(e[0])}n=n.replace(i,"");let a=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,r=RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=a.exec(n);if(null===e){if(null===(e=r.exec(n)))break;a.lastIndex=r.lastIndex}else r.lastIndex=a.lastIndex;t.push(e[0])}return t}async function hh(e,t){let n=[],i=[];return e.forEach(n=>{if("cssRules"in n)try{uN(n.cssRules||[]).forEach((e,a)=>{if(e.type===CSSRule.IMPORT_RULE){let r=a+1,o=e.href,s=hl(o).then(e=>hc(e,t)).then(e=>hu(e).forEach(e=>{try{n.insertRule(e,e.startsWith("@import")?r+=1:n.cssRules.length)}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t})}})).catch(e=>{console.error("Error loading remote css",e.toString())});i.push(s)}})}catch(r){let a=e.find(e=>null==e.href)||document.styleSheets[0];null!=n.href&&i.push(hl(n.href).then(e=>hc(e,t)).then(e=>hu(e).forEach(e=>{a.insertRule(e,n.cssRules.length)})).catch(e=>{console.error("Error loading remote stylesheet",e)})),console.error("Error inlining remote css file",r)}}),Promise.all(i).then(()=>(e.forEach(e=>{if("cssRules"in e)try{uN(e.cssRules||[]).forEach(e=>{n.push(e)})}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t)}}),n))}async function hp(e,t){if(null==e.ownerDocument)throw Error("Provided element is not within a Document");let n=uN(e.ownerDocument.styleSheets);return(await hh(n,t)).filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>he(e.style.getPropertyValue("src")))}async function hd(e,t){let n=await hp(e,t);return(await Promise.all(n.map(e=>{let n=e.parentStyleSheet?e.parentStyleSheet.href:null;return ht(e.cssText,n,t)}))).join(`
3
+ `)}async function hf(e,t){let n=null!=t.fontEmbedCSS?t.fontEmbedCSS:t.skipFonts?null:await hd(e,t);if(n){let t=document.createElement("style"),i=document.createTextNode(n);t.appendChild(i),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}}async function hg(e,t={}){let{width:n,height:i}=uB(e,t),a=await u4(e,t,!0);return await hf(a,t),await ho(a,t),function(e,t){let{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);let i=t.style;null!=i&&Object.keys(i).forEach(e=>{n[e]=i[e]})}(a,t),await uF(a,n,i)}async function hm(e,t={}){let{width:n,height:i}=uB(e,t),a=await hg(e,t),r=await uH(a),o=document.createElement("canvas"),s=o.getContext("2d"),l=t.pixelRatio||function(){let e,t;try{t=process}catch{}let n=t&&t.env?t.env.devicePixelRatio:null;return n&&Number.isNaN(e=parseInt(n,10))&&(e=1),e||window.devicePixelRatio||1}(),c=t.canvasWidth||n,u=t.canvasHeight||i;return o.width=c*l,o.height=u*l,t.skipAutoScale||(o.width>16384||o.height>16384)&&(o.width>16384&&o.height>16384?o.width>o.height?(o.height*=16384/o.width,o.width=16384):(o.width*=16384/o.height,o.height=16384):o.width>16384?(o.height*=16384/o.width,o.width=16384):(o.width*=16384/o.height,o.height=16384)),o.style.width=`${c}`,o.style.height=`${u}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,o.width,o.height)),s.drawImage(r,0,0,o.width,o.height),o}async function hy(e,t={}){return(await hm(e,t)).toDataURL()}async function hb(e,t={}){return(await hm(e,t)).toDataURL("image/jpeg",t.quality||1)}let hv=class{constructor(e,t){this.model=e,this.services=t,this.init()}init(){}update(){}setModel(e){this.model=e}setServices(e){this.services=e}},h_=class e extends hv{constructor(e,t){super(e,t)}static getHTMLElementSize(e){return{width:e.clientWidth,height:e.clientHeight}}static getSVGElementSize(e,t={useAttrs:!1,useClientDimensions:!1,useBBox:!1,useBoundingRect:!1}){let n,i,a,r,o;e.attr||(e=lB(e));let s={width:0,height:0},l=e=>{e&&Object.keys(s).forEach(t=>{if(e[t]){let n=e[t],i=parseFloat(n);n&&i>s[t]&&-1===(""+n).indexOf("%")&&(s[t]=i)}})},c={width:e.attr("width"),height:e.attr("height")},u=e.node();try{"function"==typeof u.getBBox&&(i={width:(n=u.getBBox()).width,height:n.height})}catch(e){console.error(e)}try{"function"==typeof u?.getBoundingClientRect&&(r={width:(a=u.getBoundingClientRect()).width,height:a.height})}catch(e){console.error(e)}if(u instanceof SVGSVGElement&&(o={width:u.clientWidth,height:u.clientHeight}),t){if(t.useAttrs&&(l(c),s.width>0&&s.height>0))return s;if(t.useClientDimensions&&(l(o),s.width>0&&s.height>0))return o;if(t.useBBox&&(l(i),s.width>0&&s.height>0))return i;if(t.useBoundingRect&&(l(r),s.width>0&&s.height>0))return r}try{let t={width:sH(e.node(),"width","baseVal","value"),height:sH(e.node(),"height","baseVal","value")};l(t)}catch{l(o),l(i),l(c)}return s}static appendOrSelect(e,t){let n=e.select(`${t}`);if(n.empty()){let n=t.split("#"),i,a;return 2===n.length?(i=n[0],a=(n=n[1].split("."))[0]):i=(n=t.split("."))[0],e.append(i).attr("id",a).attr("class",n.slice(1).join(" "))}return n}init(){this.initializeID(),this.styleHolderElement(),this.addMainContainer(),this.model.getOptions().resizable&&this.addResizeListener(),this.addHolderListeners(),this.handleFullscreenChange()}getChartID(){return this.chartID}getElementOffset(e,t=!1){let n={left:0,top:0},i=e.getBoundingClientRect(),a=t?{left:0,top:0}:this.getHolder().getBoundingClientRect();try{n.left=i.left-a.left,n.top=i.top-a.top}catch(e){console.error(e)}return n}generateElementIDString(e){return`chart-${this.chartID}-${e}`}initializeID(){this.chartID=Math.floor((1+Math.random())*0x1000000000000).toString(16)}addMainContainer(){let e=sH(this.model.getOptions(),"style","prefix"),t=lB(this.getHolder()).append("div").classed(`cds--${e}--chart-wrapper`,!0).attr("id",`chart-${this.getChartID()}`).style("height","100%").style("width","100%");t.append("g").attr("class","DONT_STYLE_ME_css_styles_verifier"),this.mainContainer=t.node()}update(){this.styleHolderElement()}styleHolderElement(){let e=this.getHolder(),{width:t,height:n,theme:i}=this.model.getOptions();t!==this.width&&(e.style.width=t,this.width=t),n!==this.height&&(e.style.height=n,this.height=n),lB(this.getHolder()).classed("cds--chart-holder",!0).attr("data-carbon-theme",i)}getHolder(){return this.model.get("holder")}exportToJPG(){let e=this,t=this.model.getOptions(),n=lB(this.getHolder());n.classed("filled",!0),hb(this.getMainContainer(),{quality:1,filter:e=>!(e.classList&&e.classList.contains("cds--cc--toolbar"))}).then(function(i){let a="myChart",r=sH(t,"fileDownload","fileName");"function"==typeof r?a=r("jpg"):"string"==typeof r&&(a=r),e.services.files?.downloadImage(i,`${a}.jpg`),n.classed("filled",!1)})}exportToPNG(){let e=this,t=this.model.getOptions(),n=lB(this.getHolder());n.classed("filled",!0),hy(this.getMainContainer(),{quality:1,filter:e=>!(e.classList&&e.classList.contains("cds--cc--toolbar"))}).then(function(i){let a="myChart",r=sH(t,"fileDownload","fileName");"function"==typeof r?a=r("png"):"string"==typeof r&&(a=r),e.services.files?.downloadImage(i,`${a}.png`),n.classed("filled",!1)}).catch(function(e){console.error("oops, something went wrong!",e)})}isFullScreenMode(){return lB(this.getHolder()).classed("fullscreen")}toggleFullscreen(){let e=this.getHolder();lB(e).classed("fullscreen")&&(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen():e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.msRequestFullscreen&&e.msRequestFullscreen()}handleFullscreenChange(){document.addEventListener("fullscreenchange",()=>{let e=lB(this.getHolder()),t=e.classed("fullscreen");e.classed("fullscreen",!t)})}setSVGMaxHeight(){if(!this.model.getOptions().height){let{height:t}=e.getSVGElementSize(lB(this.mainContainer),{useBBox:!0}),n=lB(this.mainContainer).attr("class"),i=lB(this.mainContainer).selectAll(`.${n} > svg`),a=0;i.nodes().forEach(function(t){a+=Number(e.getSVGElementSize(lB(t),{useBBox:!0}).height)}),a<=t?lB(this.mainContainer).attr("height",a):lB(this.mainContainer).attr("height","100%")}}getMainContainer(){return this.mainContainer}addHolderListeners(){let e=this.getHolder();e&&lB(e).on("mouseover",()=>{this.services.events?.dispatchEvent(eq.Chart.MOUSEOVER)}).on("mouseout",()=>{this.services.events?.dispatchEvent(eq.Chart.MOUSEOUT)})}addResizeListener(){let e=this.getHolder();if(!e)return;let t=e.clientWidth,n=e.clientHeight;new ResizeObserver(function(e,t,n){var i,a,r,o,s,l,c=0,u=!1,h=!1,p=!0;if("function"!=typeof e)throw TypeError("Expected a function");function d(t){var n=i,r=a;return i=a=void 0,c=t,o=e.apply(r,n)}function f(e){var n=e-l,i=e-c;return void 0===l||n>=t||n<0||h&&i>=r}function g(){var e,n,i,a=lI();if(f(a))return m(a);s=setTimeout(g,(e=a-l,n=a-c,i=t-e,h?lP(i,r-n):i))}function m(e){return s=void 0,p&&i?d(e):(i=a=void 0,o)}function y(){var e,n=lI(),r=f(n);if(i=arguments,a=this,l=n,r){if(void 0===s)return c=e=l,s=setTimeout(g,t),u?d(e):o;if(h)return clearTimeout(s),s=setTimeout(g,t),d(l)}return void 0===s&&(s=setTimeout(g,t)),o}return t=lR(t)||0,tq(n)&&(u=!!n.leading,r=(h="maxWait"in n)?lN(lR(n.maxWait)||0,t):r,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,i=l=a=s=void 0},y.flush=function(){return void 0===s?o:m(lI())},y}(()=>{e&&(Math.abs(t-e.clientWidth)>1||Math.abs(n-e.clientHeight)>1)&&(t=e.clientWidth,n=e.clientHeight,this.services.events?.dispatchEvent(eq.Chart.RESIZE))},12.5)).observe(e)}},hx=class e extends hv{static appendOrUpdateLinearGradient(e){let t=e.svg.select(`defs linearGradient#${e.id}`);t.empty()&&(t=e.svg.append("defs").append("linearGradient").attr("id",e.id).attr("x1",e.x1).attr("x2",e.x2).attr("y1",e.y1).attr("y2",e.y2)),t.selectAll("stop").remove(),t.selectAll("stop").data(e.stops).enter().append("stop").attr("offset",e=>e.offset).style("stop-color",e=>e.color).style("stop-opacity",e=>e.opacity)}static getOffsetRatio(e){return(100*Math.abs(e[1])/Math.abs(e[0]-e[1])).toFixed(2)+"%"}static getStops(t,n){let i=t[0]<0&&t[1]>0,a=[{offset:"0%",color:n,opacity:"0.6"},{offset:"80%",color:n,opacity:"0"}];return i&&(a=[{offset:"0%",color:n,opacity:"0.6"},{offset:e.getOffsetRatio(t),color:n,opacity:"0"},{offset:"100%",color:n,opacity:"0.6"}]),a}};var hw=(pB={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},function(e){return pB?.[e]}),h$=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,hE=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),hA=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,hk=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,hT="\\ud800-\\udfff",hM="\\u2700-\\u27bf",hS="a-z\\xdf-\\xf6\\xf8-\\xff",hO="A-Z\\xc0-\\xd6\\xd8-\\xde",hC="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",hD="['’]",hz="["+hC+"]",hL="["+hS+"]",hR="[^"+hT+hC+"\\d+"+hM+hS+hO+"]",hI="(?:\\ud83c[\\udde6-\\uddff]){2}",hN="[\\ud800-\\udbff][\\udc00-\\udfff]",hP="["+hO+"]",hB="(?:"+hL+"|"+hR+")",hH="(?:"+hP+"|"+hR+")",hU="(?:"+hD+"(?:d|ll|m|re|s|t|ve))?",hF="(?:"+hD+"(?:D|LL|M|RE|S|T|VE))?",hj="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",hV="[\\ufe0e\\ufe0f]?",hG="(?:\\u200d(?:"+["[^"+hT+"]",hI,hN].join("|")+")"+hV+hj+")*",hW="(?:"+["["+hM+"]",hI,hN].join("|")+")"+(hV+hj+hG),hq=RegExp([hP+"?"+hL+"+"+hU+"(?="+[hz,hP,"$"].join("|")+")",hH+"+"+hF+"(?="+[hz,hP+hB,"$"].join("|")+")",hP+"?"+hB+"+"+hU,hP+"+"+hF,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",hW].join("|"),"g"),hY=RegExp("['’]","g");function hZ(e){return function(t){for(var n,i,a,r=(n=((a=n7(a=t))&&a.replace(h$,hw).replace(hE,"")).replace(hY,""),(i=n=n7(n),hk.test(i))?n.match(hq)||[]:n.match(hA)||[]),o="",s=-1,l=null==r?0:r.length;++s<l;)o=e(o,r[s],s,r);return o}}nf(function(e,t,n){var i=lR(t)||0;if("function"!=typeof e)throw TypeError("Expected a function");return setTimeout(function(){e.apply(void 0,n)},i)});hZ(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});class hX{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){let t=this._partials,n=0;for(let i=0;i<this._n&&i<32;i++){let a=t[i],r=e+a,o=Math.abs(e)<Math.abs(a)?e-(r-a):a-(r-e);o&&(t[n++]=o),e=r}return t[n]=e,this._n=n+1,this}valueOf(){let e=this._partials,t=this._n,n,i,a,r=0;if(t>0){for(r=e[--t];t>0&&(r=(n=r)+(i=e[--t]),!(a=i-(r-n))););t>0&&(a<0&&e[t-1]<0||a>0&&e[t-1]>0)&&(n=r+(i=2*a),i==n-r&&(r=n))}return r}}function hK(e){return e}function hQ(e){return"translate("+e+",0)"}function hJ(e){return"translate(0,"+e+")"}function h0(){return!this.__axis}function h1(e,t){var n=[],i=null,a=null,r=6,o=6,s=3,l="u">typeof window&&window.devicePixelRatio>1?0:.5,c=1===e||4===e?-1:1,u=4===e||2===e?"x":"y",h=1===e||3===e?hQ:hJ;function p(p){var d=i??(t.ticks?t.ticks.apply(t,n):t.domain()),f=a??(t.tickFormat?t.tickFormat.apply(t,n):hK),g=Math.max(r,0)+s,m=t.range(),y=+m[0]+l,b=+m[m.length-1]+l,v=(t.bandwidth?function(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}:function(e){return t=>+e(t)})(t.copy(),l),_=p.selection?p.selection():p,x=_.selectAll(".domain").data([null]),w=_.selectAll(".tick").data(d,t).order(),$=w.exit(),E=w.enter().append("g").attr("class","tick"),A=w.select("line"),k=w.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(E),A=A.merge(E.append("line").attr("stroke","currentColor").attr(u+"2",c*r)),k=k.merge(E.append("text").attr("fill","currentColor").attr(u,c*g).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),p!==_&&(x=x.transition(p),w=w.transition(p),A=A.transition(p),k=k.transition(p),$=$.transition(p).attr("opacity",1e-6).attr("transform",function(e){return isFinite(e=v(e))?h(e+l):this.getAttribute("transform")}),E.attr("opacity",1e-6).attr("transform",function(e){var t=this.parentNode.__axis;return h((t&&isFinite(t=t(e))?t:v(e))+l)})),$.remove(),x.attr("d",4===e||2===e?o?"M"+c*o+","+y+"H"+l+"V"+b+"H"+c*o:"M"+l+","+y+"V"+b:o?"M"+y+","+c*o+"V"+l+"H"+b+"V"+c*o:"M"+y+","+l+"H"+b),w.attr("opacity",1).attr("transform",function(e){return h(v(e)+l)}),A.attr(u+"2",c*r),k.attr(u,c*g).text(f),_.filter(h0).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),_.each(function(){this.__axis=v})}return p.scale=function(e){return arguments.length?(t=e,p):t},p.ticks=function(){return n=Array.from(arguments),p},p.tickArguments=function(e){return arguments.length?(n=null==e?[]:Array.from(e),p):n.slice()},p.tickValues=function(e){return arguments.length?(i=null==e?null:Array.from(e),p):i&&i.slice()},p.tickFormat=function(e){return arguments.length?(a=e,p):a},p.tickSize=function(e){return arguments.length?(r=o=+e,p):r},p.tickSizeInner=function(e){return arguments.length?(r=+e,p):r},p.tickSizeOuter=function(e){return arguments.length?(o=+e,p):o},p.tickPadding=function(e){return arguments.length?(s=+e,p):s},p.offset=function(e){return arguments.length?(l=+e,p):l},p}function h2(e){return h1(1,e)}function h3(e){return h1(2,e)}function h5(e){return h1(3,e)}function h4(e){return h1(4,e)}let h6={capture:!0,passive:!1};function h8(e){e.preventDefault(),e.stopImmediatePropagation()}let h7=e=>+e,h9=e=>()=>e;function pe(e,{sourceEvent:t,target:n,selection:i,mode:a,dispatch:r}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:i,enumerable:!0,configurable:!0},mode:{value:a,enumerable:!0,configurable:!0},_:{value:r}})}function pt(e){e.preventDefault(),e.stopImmediatePropagation()}var pn={name:"drag"},pi={name:"space"},pa={name:"handle"},pr={name:"center"};let{abs:po,max:ps,min:pl}=Math;function pc(e){return[+e[0],+e[1]]}function pu(e){return[pc(e[0]),pc(e[1])]}var ph={name:"x",handles:["w","e"].map(pb),input:function(e,t){return null==e?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},pp={},pd={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},pf={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},pg={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},pm={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},py={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function pb(e){return{type:e}}function pv(e){return!e.ctrlKey&&!e.button}function p_(){var e=this.ownerSVGElement||this;return 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]]}function px(){return navigator.maxTouchPoints||"ontouchstart"in this}function pw(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function p$(e){var t,n=p_,i=pv,a=px,r=!0,o=aU("start","brush","end"),s=6;function l(t){var n=t.property("__brush",g).selectAll(".overlay").data([pb("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",pd.overlay).merge(n).each(function(){var e=pw(this).extent;lB(this).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1])}),t.selectAll(".selection").data([pb("selection")]).enter().append("rect").attr("class","selection").attr("cursor",pd.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var i=t.selectAll(".handle").data(e.handles,function(e){return e.type});i.exit().remove(),i.enter().append("rect").attr("class",function(e){return"handle handle--"+e.type}).attr("cursor",function(e){return pd[e.type]}),t.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",p).filter(a).on("touchstart.brush",p).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",f).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var e=lB(this),t=pw(this).selection;t?(e.selectAll(".selection").style("display",null).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1]),e.selectAll(".handle").style("display",null).attr("x",function(e){return"e"===e.type[e.type.length-1]?t[1][0]-s/2:t[0][0]-s/2}).attr("y",function(e){return"s"===e.type[0]?t[1][1]-s/2:t[0][1]-s/2}).attr("width",function(e){return"n"===e.type||"s"===e.type?t[1][0]-t[0][0]+s:s}).attr("height",function(e){return"e"===e.type||"w"===e.type?t[1][1]-t[0][1]+s:s})):e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(e,t,n){var i=e.__brush.emitter;return!i||n&&i.clean?new h(e,t,n):i}function h(e,t,n){this.that=e,this.args=t,this.state=e.__brush,this.active=0,this.clean=n}function p(n){if((!t||n.touches)&&i.apply(this,arguments)){var a,o,s,l,h,p,d,f,g,m,y,b=this,v=n.target.__data__.type,_=(r&&n.metaKey?v="overlay":v)==="selection"?pn:r&&n.altKey?pr:pa,x=e===pp?null:pm[v],w=e===ph?null:py[v],$=pw(b),E=$.extent,A=$.selection,k=E[0][0],T=E[0][1],M=E[1][0],S=E[1][1],O=0,C=0,D=x&&w&&r&&n.shiftKey,z=Array.from(n.touches||[n],e=>{let t=e.identifier;return(e=rx(e,b)).point0=e.slice(),e.identifier=t,e});oP(b);var L=u(b,arguments,!0).beforestart();if("overlay"===v){A&&(g=!0);let t=[z[0],z[1]||z[0]];$.selection=A=[[a=e===pp?k:pl(t[0][0],t[1][0]),s=e===ph?T:pl(t[0][1],t[1][1])],[h=e===pp?M:ps(t[0][0],t[1][0]),d=e===ph?S:ps(t[0][1],t[1][1])]],z.length>1&&F(n)}else a=A[0][0],s=A[0][1],h=A[1][0],d=A[1][1];o=a,l=s,p=h,f=d;var R=lB(b).attr("pointer-events","none"),I=R.selectAll(".overlay").attr("cursor",pd[v]);if(n.touches)L.moved=U,L.ended=j;else{var N,P,B,H=lB(n.view).on("mousemove.brush",U,!0).on("mouseup.brush",j,!0);r&&H.on("keydown.brush",function(e){switch(e.keyCode){case 16:D=x&&w;break;case 18:_===pa&&(x&&(h=p-O*x,a=o+O*x),w&&(d=f-C*w,s=l+C*w),_=pr,F(e));break;case 32:(_===pa||_===pr)&&(x<0?h=p-O:x>0&&(a=o-O),w<0?d=f-C:w>0&&(s=l-C),_=pi,I.attr("cursor",pd.selection),F(e));break;default:return}pt(e)},!0).on("keyup.brush",function(e){switch(e.keyCode){case 16:D&&(m=y=D=!1,F(e));break;case 18:_===pr&&(x<0?h=p:x>0&&(a=o),w<0?d=f:w>0&&(s=l),_=pa,F(e));break;case 32:_===pi&&(e.altKey?(x&&(h=p-O*x,a=o+O*x),w&&(d=f-C*w,s=l+C*w),_=pr):(x<0?h=p:x>0&&(a=o),w<0?d=f:w>0&&(s=l),_=pa),I.attr("cursor",pd[v]),F(e));break;default:return}pt(e)},!0),P=(N=n.view).document.documentElement,B=lB(N).on("dragstart.drag",h8,h6),"onselectstart"in P?B.on("selectstart.drag",h8,h6):(P.__noselect=P.style.MozUserSelect,P.style.MozUserSelect="none")}c.call(b),L.start(n,_.name)}function U(e){for(let t of e.changedTouches||[e])for(let e of z)e.identifier===t.identifier&&(e.cur=rx(t,b));if(D&&!m&&!y&&1===z.length){let e=z[0];po(e.cur[0]-e[0])>po(e.cur[1]-e[1])?y=!0:m=!0}for(let e of z)e.cur&&(e[0]=e.cur[0],e[1]=e.cur[1]);g=!0,pt(e),F(e)}function F(e){var t;let n=z[0],i=n.point0;switch(O=n[0]-i[0],C=n[1]-i[1],_){case pi:case pn:x&&(O=ps(k-a,pl(M-h,O)),o=a+O,p=h+O),w&&(C=ps(T-s,pl(S-d,C)),l=s+C,f=d+C);break;case pa:z[1]?(x&&(o=ps(k,pl(M,z[0][0])),p=ps(k,pl(M,z[1][0])),x=1),w&&(l=ps(T,pl(S,z[0][1])),f=ps(T,pl(S,z[1][1])),w=1)):(x<0?(O=ps(k-a,pl(M-a,O)),o=a+O,p=h):x>0&&(O=ps(k-h,pl(M-h,O)),o=a,p=h+O),w<0?(C=ps(T-s,pl(S-s,C)),l=s+C,f=d):w>0&&(C=ps(T-d,pl(S-d,C)),l=s,f=d+C));break;case pr:x&&(o=ps(k,pl(M,a-O*x)),p=ps(k,pl(M,h+O*x))),w&&(l=ps(T,pl(S,s-C*w)),f=ps(T,pl(S,d+C*w)))}p<o&&(x*=-1,t=a,a=h,h=t,t=o,o=p,p=t,v in pf&&I.attr("cursor",pd[v=pf[v]])),f<l&&(w*=-1,t=s,s=d,d=t,t=l,l=f,f=t,v in pg&&I.attr("cursor",pd[v=pg[v]])),$.selection&&(A=$.selection),m&&(o=A[0][0],p=A[1][0]),y&&(l=A[0][1],f=A[1][1]),(A[0][0]!==o||A[0][1]!==l||A[1][0]!==p||A[1][1]!==f)&&($.selection=[[o,l],[p,f]],c.call(b),L.brush(e,_.name))}function j(e){var n,i,a,r,o;if(e.stopImmediatePropagation(),e.touches){if(e.touches.length)return;t&&clearTimeout(t),t=setTimeout(function(){t=null},500)}else n=e.view,i=g,a=n.document.documentElement,r=lB(n).on("dragstart.drag",null),i&&(r.on("click.drag",h8,h6),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in a?r.on("selectstart.drag",null):(a.style.MozUserSelect=a.__noselect,delete a.__noselect),H.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);R.attr("pointer-events","all"),I.attr("cursor",pd.overlay),$.selection&&(A=$.selection),((o=A)[0][0]===o[1][0]||o[0][1]===o[1][1])&&($.selection=null,c.call(b)),L.end(e,_.name)}}function d(e){u(this,arguments).moved(e)}function f(e){u(this,arguments).ended(e)}function g(){var t=this.__brush||{selection:null};return t.extent=pu(n.apply(this,arguments)),t.dim=e,t}return l.move=function(t,n,i){t.tween?t.on("start.brush",function(e){u(this,arguments).beforestart().start(e)}).on("interrupt.brush end.brush",function(e){u(this,arguments).end(e)}).tween("brush",function(){var t=this,i=t.__brush,a=u(t,arguments),r=i.selection,o=e.input("function"==typeof n?n.apply(this,arguments):n,i.extent),s=r8(r,o);function l(e){i.selection=1===e&&null===o?null:s(e),c.call(t),a.brush()}return null!==r&&null!==o?l:l(1)}):t.each(function(){var t=arguments,a=this.__brush,r=e.input("function"==typeof n?n.apply(this,t):n,a.extent),o=u(this,t).beforestart();oP(this),a.selection=null===r?null:r,c.call(this),o.start(i).brush(i).end(i)})},l.clear=function(e,t){l.move(e,null,t)},h.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(e,t){return this.starting?(this.starting=!1,this.emit("start",e,t)):this.emit("brush",e),this},brush:function(e,t){return this.emit("brush",e,t),this},end:function(e,t){return 0==--this.active&&(delete this.state.emitter,this.emit("end",e,t)),this},emit:function(t,n,i){var a=lB(this.that).datum();o.call(t,this.that,new pe(t,{sourceEvent:n,target:l,selection:e.output(this.state.selection),mode:i,dispatch:o}),a)}},l.extent=function(e){return arguments.length?(n="function"==typeof e?e:h9(pu(e)),l):n},l.filter=function(e){return arguments.length?(i="function"==typeof e?e:h9(!!e),l):i},l.touchable=function(e){return arguments.length?(a="function"==typeof e?e:h9(!!e),l):a},l.handleSize=function(e){return arguments.length?(s=+e,l):s},l.keyModifiers=function(e){return arguments.length?(r=!!e,l):r},l.on=function(){var e=o.on.apply(o,arguments);return e===o?l:e},l}let pE=Math.PI,pA=2*pE,pk=pA-1e-6;function pT(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}let pM=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?pT:function(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return pT;let n=10**t;return function(e){this._+=e[0];for(let t=1,i=e.length;t<i;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,i){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(e,t,n,i,a,r){this._append`C${+e},${+t},${+n},${+i},${this._x1=+a},${this._y1=+r}`}arcTo(e,t,n,i,a){if(e*=1,t*=1,n*=1,i*=1,(a*=1)<0)throw Error(`negative radius: ${a}`);let r=this._x1,o=this._y1,s=n-e,l=i-t,c=r-e,u=o-t,h=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(h>1e-6)if(Math.abs(u*s-l*c)>1e-6&&a){let p=n-r,d=i-o,f=s*s+l*l,g=Math.sqrt(f),m=Math.sqrt(h),y=a*Math.tan((pE-Math.acos((f+h-(p*p+d*d))/(2*g*m)))/2),b=y/m,v=y/g;Math.abs(b-1)>1e-6&&this._append`L${e+b*c},${t+b*u}`,this._append`A${a},${a},0,0,${+(u*p>c*d)},${this._x1=e+v*s},${this._y1=t+v*l}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,i,a,r){if(e*=1,t*=1,n*=1,r=!!r,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(i),s=n*Math.sin(i),l=e+o,c=t+s,u=1^r,h=r?i-a:a-i;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&this._append`L${l},${c}`,n&&(h<0&&(h=h%pA+pA),h>pk?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:h>1e-6&&this._append`A${n},${n},0,${+(h>=pE)},${u},${this._x1=e+n*Math.cos(a)},${this._y1=t+n*Math.sin(a)}`)}rect(e,t,n,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n*=1}v${+i}h${-n}Z`}toString(){return this._}};pM.prototype;var pS=Math.PI,pO=2*pS,pC=pS/180,pD=Math.abs,pz=Math.cos,pL=Math.sqrt;function pR(){}function pI(e,t){return pD(e)>pS&&(e-=Math.round(e/pO)*pO),[e,t]}pI.invert=pI;var pN,pP,pB,pH,pU,pF,pj,pV,pG,pW,pq,pY,pZ,pX=new hX,pK=new hX,pQ={point:pR,lineStart:pR,lineEnd:pR,polygonStart:function(){pQ.lineStart=pJ,pQ.lineEnd=p2},polygonEnd:function(){pQ.lineStart=pQ.lineEnd=pQ.point=pR,pX.add(pD(pK)),pK=new hX},result:function(){var e=pX/2;return pX=new hX,e}};function pJ(){pQ.point=p0}function p0(e,t){pQ.point=p1,pW=pY=e,pq=pZ=t}function p1(e,t){pK.add(pZ*e-pY*t),pY=e,pZ=t}function p2(){p1(pW,pq)}var p3,p5,p4,p6,p8=0,p7=0,p9=0,de=0,dt=0,dn=0,di=0,da=0,dr=0,ds={point:dl,lineStart:dc,lineEnd:dp,polygonStart:function(){ds.lineStart=dd,ds.lineEnd=df},polygonEnd:function(){ds.point=dl,ds.lineStart=dc,ds.lineEnd=dp},result:function(){var e=dr?[di/dr,da/dr]:dn?[de/dn,dt/dn]:p9?[p8/p9,p7/p9]:[NaN,NaN];return p8=p7=p9=de=dt=dn=di=da=dr=0,e}};function dl(e,t){p8+=e,p7+=t,++p9}function dc(){ds.point=du}function du(e,t){ds.point=dh,dl(p4=e,p6=t)}function dh(e,t){var n=e-p4,i=t-p6,a=pL(n*n+i*i);de+=a*(p4+e)/2,dt+=a*(p6+t)/2,dn+=a,dl(p4=e,p6=t)}function dp(){ds.point=dl}function dd(){ds.point=dg}function df(){dm(p3,p5)}function dg(e,t){ds.point=dm,dl(p3=p4=e,p5=p6=t)}function dm(e,t){var n=e-p4,i=t-p6,a=pL(n*n+i*i);de+=a*(p4+e)/2,dt+=a*(p6+t)/2,dn+=a,di+=(a=p6*e-p4*t)*(p4+e),da+=a*(p6+t),dr+=3*a,dl(p4=e,p6=t)}var dy,db,dv,d_,dx,dw=new hX,d$={point:pR,lineStart:function(){d$.point=dE},lineEnd:function(){dy&&dA(db,dv),d$.point=pR},polygonStart:function(){dy=!0},polygonEnd:function(){dy=null},result:function(){var e=+dw;return dw=new hX,e}};function dE(e,t){d$.point=dA,db=d_=e,dv=dx=t}function dA(e,t){d_-=e,dx-=t,dw.add(pL(d_*d_+dx*dx)),d_=e,dx=t}function dk(){}function dT(e,t){return[e,t]}function dM(e){var t=0,n=e.children,i=n&&n.length;if(i)for(;--i>=0;)t+=n[i].value;else t=1;e.value=t}function dS(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=dC)):void 0===t&&(t=dO);for(var n,i,a,r,o,s=new dL(e),l=[s];n=l.pop();)if((a=t(n.data))&&(o=(a=Array.from(a)).length))for(n.children=a,r=o-1;r>=0;--r)l.push(i=a[r]=new dL(a[r])),i.parent=n,i.depth=n.depth+1;return s.eachBefore(dz)}function dO(e){return e.children}function dC(e){return Array.isArray(e)?e[1]:null}function dD(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function dz(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function dL(e){this.data=e,this.depth=this.height=0,this.parent=null}function dR(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new pM(t)}function dI(e){return e.innerRadius}function dN(e){return e.outerRadius}function dP(e){return e.startAngle}function dB(e){return e.endAngle}function dH(e){return e&&e.padAngle}function dU(e,t,n,i,a,r,o){var s=e-n,l=t-i,c=(o?r:-r)/uk(s*s+l*l),u=c*l,h=-c*s,p=e+u,d=t+h,f=n+u,g=i+h,m=(p+f)/2,y=(d+g)/2,b=f-p,v=g-d,_=b*b+v*v,x=a-r,w=p*g-f*d,$=(v<0?-1:1)*uk(u$(0,x*x*_-w*w)),E=(w*v-b*$)/_,A=(-w*b-v*$)/_,k=(w*v+b*$)/_,T=(-w*b+v*$)/_,M=E-m,S=A-y,O=k-m,C=T-y;return M*M+S*S>O*O+C*C&&(E=k,A=T),{cx:E,cy:A,x01:-u,y01:-h,x11:E*(a/x-1),y11:A*(a/x-1)}}function dF(e){return e[0]}function dj(e){return e[1]}function dV(e,t){var n=ld(!0),i=null,a=uD,r=null,o=dR(s);function s(s){var l,c,u,h=(s=lf(s)).length,p=!1;for(null==i&&(r=a(u=o())),l=0;l<=h;++l)!(l<h&&n(c=s[l],l,s))===p&&((p=!p)?r.lineStart():r.lineEnd()),p&&r.point(+e(c,l,s),+t(c,l,s));if(u)return r=null,u+""||null}return e="function"==typeof e?e:void 0===e?dF:ld(e),t="function"==typeof t?t:void 0===t?dj:ld(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:ld(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:ld(+e),s):t},s.defined=function(e){return arguments.length?(n="function"==typeof e?e:ld(!!e),s):n},s.curve=function(e){return arguments.length?(a=e,null!=i&&(r=a(i)),s):a},s.context=function(e){return arguments.length?(null==e?i=r=null:r=a(i=e),s):i},s}dk.prototype={constructor:dk,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},pz(30*pC),dT.invert=dT,pL(3),dL.prototype=dS.prototype={constructor:dL,count:function(){return this.eachAfter(dM)},each:function(e,t){let n=-1;for(let i of this)e.call(t,i,++n,this);return this},eachAfter:function(e,t){for(var n,i,a,r=this,o=[r],s=[],l=-1;r=o.pop();)if(s.push(r),n=r.children)for(i=0,a=n.length;i<a;++i)o.push(n[i]);for(;r=s.pop();)e.call(t,r,++l,this);return this},eachBefore:function(e,t){for(var n,i,a=this,r=[a],o=-1;a=r.pop();)if(e.call(t,a,++o,this),n=a.children)for(i=n.length-1;i>=0;--i)r.push(n[i]);return this},find:function(e,t){let n=-1;for(let i of this)if(e.call(t,i,++n,this))return i},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,i=t.children,a=i&&i.length;--a>=0;)n+=i[a].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(),i=t.ancestors(),a=null;for(e=n.pop(),t=i.pop();e===t;)a=e,e=n.pop(),t=i.pop();return a}(t,e),i=[t];t!==n;)i.push(t=t.parent);for(var a=i.length;e!==n;)i.splice(a,0,e),e=e.parent;return i},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 dS(this).eachBefore(dD)},[Symbol.iterator]:function*(){var e,t,n,i,a=this,r=[a];do for(e=r.reverse(),r=[];a=e.pop();)if(yield a,t=a.children)for(n=0,i=t.length;n<i;++n)r.push(t[n]);while(r.length)}},Object.create(dL.prototype),!function e(t){function n(e,n,i,a,r){!function(e,t,n,i,a,r){for(var o,s,l,c,u,h,p,d,f,g,m,y=[],b=t.children,v=0,_=0,x=b.length,w=t.value;v<x;){l=a-n,c=r-i;do u=b[_++].value;while(!u&&_<x);for(h=p=u,f=Math.max(p/(m=u*u*(g=Math.max(c/l,l/c)/(w*e))),m/h);_<x;++_){if(u+=s=b[_].value,s<h&&(h=s),s>p&&(p=s),(d=Math.max(p/(m=u*u*g),m/h))>f){u-=s;break}f=d}y.push(o={value:u,dice:l<c,children:b.slice(v,_)}),o.dice?function(e,t,n,i,a){for(var r,o=e.children,s=-1,l=o.length,c=e.value&&(i-t)/e.value;++s<l;)(r=o[s]).y0=n,r.y1=a,r.x0=t,r.x1=t+=r.value*c}(o,n,i,a,w?i+=c*u/w:r):function(e,t,n,i,a){for(var r,o=e.children,s=-1,l=o.length,c=e.value&&(a-n)/e.value;++s<l;)(r=o[s]).x0=t,r.x1=i,r.y0=n,r.y1=n+=r.value*c}(o,n,i,w?n+=l*u/w:a,r),w-=u,v=_}}(t,e,n,i,a,r)}return n.ratio=function(t){return e((t*=1)>1?t:1)},n}((1+Math.sqrt(5))/2);function dG(e){this._curve=e}eu=uD,dG.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),-(t*Math.cos(e)))}};let dW=class{constructor(e,t,n){if(this.type="",this.renderType=eY.HTML,this.id="",this.parent=void 0,this.configs={},this.model=e,this.services=t,n&&(this.configs=n,this.configs.id)){const e=sH(this.model.getOptions(),"style","prefix");this.id=`${e}--${this.configs.id}`}this.parent||this.setParent(lB(this.services.domUtils.getMainContainer()))}init(){}render(e=!0){console.error("Error: Component did not provide the required render function.")}destroy(){}setModel(e){this.model=e}setServices(e){this.services=e}setParent(e){let t=this.parent;if(this.parent=e,!(t&&t.node()===e.node())&&this.type){let e=sH(this.model.getOptions(),"style","prefix");this.parent?.classed(`cds--${e}--${this.type}`,!0),t&&t.classed(`cds--${e}--${this.type}`,!1)}}getParent(){return this.parent}getComponentContainer(e={ariaLabel:null,isPresentational:!1,withinChartClip:!1}){if(this.type){let t=sH(this.model.getOptions(),"style","prefix"),n=this.id?`#${this.id}`:"",i=h_.appendOrSelect(this.parent,`${this.renderType===eY.SVG?"svg":"div"}${n}.cds--${t}--${this.type}`);if(e.ariaLabel&&i.attr("aria-label",e.ariaLabel),e.isPresentational&&i.attr("role","presentation"),e.withinChartClip){let e=this.model.get("chartClipId");if(e){let t=lB(`#${e}`).select("rect");if(0!==t.size()){let n=parseFloat(t.attr("height")),a=parseFloat(t.attr("width"));!isNaN(n)&&!isNaN(a)&&n>0&&a>0&&i.attr("clip-path",`url(#${e})`)}}}return i.attr("width","100%").attr("height","100%")}return this.parent}getOptions(){return this.configs.options?av({},this.model.getOptions(),this.configs.options):this.model.getOptions()}},{entries:dq,setPrototypeOf:dY,isFrozen:dZ,getPrototypeOf:dX,getOwnPropertyDescriptor:dK}=Object,{freeze:dQ,seal:dJ,create:d0}=Object,{apply:d1,construct:d2}="u">typeof Reflect&&Reflect;dQ||(dQ=function(e){return e}),dJ||(dJ=function(e){return e}),d1||(d1=function(e,t,n){return e.apply(t,n)}),d2||(d2=function(e,t){return new e(...t)});let d3=fs(Array.prototype.forEach),d5=fs(Array.prototype.lastIndexOf),d4=fs(Array.prototype.pop),d6=fs(Array.prototype.push),d8=fs(Array.prototype.splice),d7=fs(String.prototype.toLowerCase),d9=fs(String.prototype.toString),fe=fs(String.prototype.match),ft=fs(String.prototype.replace),fn=fs(String.prototype.indexOf),fi=fs(String.prototype.trim),fa=fs(Object.prototype.hasOwnProperty),fr=fs(RegExp.prototype.test),fo=(eh=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return d2(eh,t)});function fs(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return d1(e,t,i)}}function fl(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d7;dY&&dY(e,null);let i=t.length;for(;i--;){let a=t[i];if("string"==typeof a){let e=n(a);e!==a&&(dZ(t)||(t[i]=e),a=e)}e[a]=!0}return e}function fc(e){let t=d0(null);for(let[n,i]of dq(e))fa(e,n)&&(Array.isArray(i)?t[n]=function(e){for(let t=0;t<e.length;t++)fa(e,t)||(e[t]=null);return e}(i):i&&"object"==typeof i&&i.constructor===Object?t[n]=fc(i):t[n]=i);return t}function fu(e,t){for(;null!==e;){let n=dK(e,t);if(n){if(n.get)return fs(n.get);if("function"==typeof n.value)return fs(n.value)}e=dX(e)}return function(){return null}}let fh=dQ(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),fp=dQ(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),fd=dQ(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ff=dQ(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),fg=dQ(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),fm=dQ(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),fy=dQ(["#text"]),fb=dQ(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),fv=dQ(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),f_=dQ(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),fx=dQ(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),fw=dJ(/\{\{[\w\W]*|[\w\W]*\}\}/gm),f$=dJ(/<%[\w\W]*|[\w\W]*%>/gm),fE=dJ(/\$\{[\w\W]*/gm),fA=dJ(/^data-[\-\w.\u00B7-\uFFFF]+$/),fk=dJ(/^aria-[\-\w]+$/),fT=dJ(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),fM=dJ(/^(?:\w+script|data):/i),fS=dJ(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fO=dJ(/^html$/i);var fC=Object.freeze({__proto__:null,ARIA_ATTR:fk,ATTR_WHITESPACE:fS,CUSTOM_ELEMENT:dJ(/^[a-z][.\w]*(-[.\w]+)+$/i),DATA_ATTR:fA,DOCTYPE_NAME:fO,ERB_EXPR:f$,IS_ALLOWED_URI:fT,IS_SCRIPT_OR_DATA:fM,MUSTACHE_EXPR:fw,TMPLIT_EXPR:fE});let fD=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));let a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML:e=>e,createScriptURL:e=>e})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},fz=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};var fL=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:typeof window>"u"?null:window,n=t=>e(t);if(n.version="3.2.6",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:i}=t,a=i,r=a.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:h=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:d,trustedTypes:f}=t,g=c.prototype,m=fu(g,"cloneNode"),y=fu(g,"remove"),b=fu(g,"nextSibling"),v=fu(g,"childNodes"),_=fu(g,"parentNode");if("function"==typeof s){let e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let x,w="",{implementation:$,createNodeIterator:E,createDocumentFragment:A,getElementsByTagName:k}=i,{importNode:T}=a,M=fz();n.isSupported="function"==typeof dq&&"function"==typeof _&&$&&void 0!==$.createHTMLDocument;let{MUSTACHE_EXPR:S,ERB_EXPR:O,TMPLIT_EXPR:C,DATA_ATTR:D,ARIA_ATTR:z,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:R,CUSTOM_ELEMENT:I}=fC,{IS_ALLOWED_URI:N}=fC,P=null,B=fl({},[...fh,...fp,...fd,...fg,...fy]),H=null,U=fl({},[...fb,...fv,...f_,...fx]),F=Object.seal(d0(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),j=null,V=null,G=!0,W=!0,q=!1,Y=!0,Z=!1,X=!0,K=!1,Q=!1,J=!1,ee=!1,et=!1,en=!1,ei=!0,ea=!1,er=!0,eo=!1,es={},el=null,ec=fl({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),eu=null,eh=fl({},["audio","video","img","source","image","track"]),ep=null,ed=fl({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ef="http://www.w3.org/1998/Math/MathML",eg="http://www.w3.org/2000/svg",em="http://www.w3.org/1999/xhtml",ey=em,eb=!1,ev=null,e_=fl({},[ef,eg,em],d9),ex=fl({},["mi","mo","mn","ms","mtext"]),ew=fl({},["annotation-xml"]),e$=fl({},["title","style","font","a","script"]),eE=null,eA=["application/xhtml+xml","text/html"],ek=null,eT=null,eM=i.createElement("form"),eS=function(e){return e instanceof RegExp||e instanceof Function},eO=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!(eT&&eT===e)){if(e&&"object"==typeof e||(e={}),e=fc(e),ek="application/xhtml+xml"===(eE=-1===eA.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?d9:d7,P=fa(e,"ALLOWED_TAGS")?fl({},e.ALLOWED_TAGS,ek):B,H=fa(e,"ALLOWED_ATTR")?fl({},e.ALLOWED_ATTR,ek):U,ev=fa(e,"ALLOWED_NAMESPACES")?fl({},e.ALLOWED_NAMESPACES,d9):e_,ep=fa(e,"ADD_URI_SAFE_ATTR")?fl(fc(ed),e.ADD_URI_SAFE_ATTR,ek):ed,eu=fa(e,"ADD_DATA_URI_TAGS")?fl(fc(eh),e.ADD_DATA_URI_TAGS,ek):eh,el=fa(e,"FORBID_CONTENTS")?fl({},e.FORBID_CONTENTS,ek):ec,j=fa(e,"FORBID_TAGS")?fl({},e.FORBID_TAGS,ek):fc({}),V=fa(e,"FORBID_ATTR")?fl({},e.FORBID_ATTR,ek):fc({}),es=!!fa(e,"USE_PROFILES")&&e.USE_PROFILES,G=!1!==e.ALLOW_ARIA_ATTR,W=!1!==e.ALLOW_DATA_ATTR,q=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Z=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,K=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,et=e.RETURN_DOM_FRAGMENT||!1,en=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,ei=!1!==e.SANITIZE_DOM,ea=e.SANITIZE_NAMED_PROPS||!1,er=!1!==e.KEEP_CONTENT,eo=e.IN_PLACE||!1,N=e.ALLOWED_URI_REGEXP||fT,ey=e.NAMESPACE||em,ex=e.MATHML_TEXT_INTEGRATION_POINTS||ex,ew=e.HTML_INTEGRATION_POINTS||ew,F=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&eS(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(F.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&eS(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(F.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(F.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Z&&(W=!1),et&&(ee=!0),es&&(P=fl({},fy),H=[],!0===es.html&&(fl(P,fh),fl(H,fb)),!0===es.svg&&(fl(P,fp),fl(H,fv),fl(H,fx)),!0===es.svgFilters&&(fl(P,fd),fl(H,fv),fl(H,fx)),!0===es.mathMl&&(fl(P,fg),fl(H,f_),fl(H,fx))),e.ADD_TAGS&&(P===B&&(P=fc(P)),fl(P,e.ADD_TAGS,ek)),e.ADD_ATTR&&(H===U&&(H=fc(H)),fl(H,e.ADD_ATTR,ek)),e.ADD_URI_SAFE_ATTR&&fl(ep,e.ADD_URI_SAFE_ATTR,ek),e.FORBID_CONTENTS&&(el===ec&&(el=fc(el)),fl(el,e.FORBID_CONTENTS,ek)),er&&(P["#text"]=!0),K&&fl(P,["html","head","body"]),P.table&&(fl(P,["tbody"]),delete j.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw fo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw fo('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=(x=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===x&&(x=fD(f,r)),null!==x&&"string"==typeof w&&(w=x.createHTML(""));dQ&&dQ(e),eT=e}},eC=fl({},[...fp,...fd,...ff]),eD=fl({},[...fg,...fm]),ez=function(e){let t=_(e);t&&t.tagName||(t={namespaceURI:ey,tagName:"template"});let n=d7(e.tagName),i=d7(t.tagName);return!!ev[e.namespaceURI]&&(e.namespaceURI===eg?t.namespaceURI===em?"svg"===n:t.namespaceURI===ef?"svg"===n&&("annotation-xml"===i||ex[i]):!!eC[n]:e.namespaceURI===ef?t.namespaceURI===em?"math"===n:t.namespaceURI===eg?"math"===n&&ew[i]:!!eD[n]:e.namespaceURI===em?(t.namespaceURI!==eg||!!ew[i])&&(t.namespaceURI!==ef||!!ex[i])&&!eD[n]&&(e$[n]||!eC[n]):!!("application/xhtml+xml"===eE&&ev[e.namespaceURI]))},eL=function(e){d6(n.removed,{element:e});try{_(e).removeChild(e)}catch{y(e)}},eR=function(e,t){try{d6(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch{d6(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||et)try{eL(t)}catch{}else try{t.setAttribute(e,"")}catch{}},eI=function(e){let t=null,n=null;if(J)e="<remove></remove>"+e;else{let t=fe(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===eE&&ey===em&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let a=x?x.createHTML(e):e;if(ey===em)try{t=new d().parseFromString(a,eE)}catch{}if(!t||!t.documentElement){t=$.createDocument(ey,"template",null);try{t.documentElement.innerHTML=eb?w:a}catch{}}let r=t.body||t.documentElement;return e&&n&&r.insertBefore(i.createTextNode(n),r.childNodes[0]||null),ey===em?k.call(t,K?"html":"body")[0]:K?t.documentElement:r},eN=function(e){return E.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},eP=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},eB=function(e){return"function"==typeof l&&e instanceof l};function eH(e,t,i){d3(e,e=>{e.call(n,t,i,eT)})}let eU=function(e){let t=null;if(eH(M.beforeSanitizeElements,e,null),eP(e))return eL(e),!0;let i=ek(e.nodeName);if(eH(M.uponSanitizeElement,e,{tagName:i,allowedTags:P}),X&&e.hasChildNodes()&&!eB(e.firstElementChild)&&fr(/<[/\w!]/g,e.innerHTML)&&fr(/<[/\w!]/g,e.textContent)||7===e.nodeType||X&&8===e.nodeType&&fr(/<[/\w]/g,e.data))return eL(e),!0;if(!P[i]||j[i]){if(!j[i]&&ej(i)&&(F.tagNameCheck instanceof RegExp&&fr(F.tagNameCheck,i)||F.tagNameCheck instanceof Function&&F.tagNameCheck(i)))return!1;if(er&&!el[i]){let t=_(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){let i=n.length;for(let a=i-1;a>=0;--a){let i=m(n[a],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,b(e))}}}return eL(e),!0}return e instanceof c&&!ez(e)||("noscript"===i||"noembed"===i||"noframes"===i)&&fr(/<\/no(script|embed|frames)/i,e.innerHTML)?(eL(e),!0):(Z&&3===e.nodeType&&(t=e.textContent,d3([S,O,C],e=>{t=ft(t,e," ")}),e.textContent!==t&&(d6(n.removed,{element:e.cloneNode()}),e.textContent=t)),eH(M.afterSanitizeElements,e,null),!1)},eF=function(e,t,n){if(ei&&("id"===t||"name"===t)&&(n in i||n in eM))return!1;if(!(W&&!V[t]&&fr(D,t))&&!(G&&fr(z,t))){if(!H[t]||V[t]){if(!(ej(e)&&(F.tagNameCheck instanceof RegExp&&fr(F.tagNameCheck,e)||F.tagNameCheck instanceof Function&&F.tagNameCheck(e))&&(F.attributeNameCheck instanceof RegExp&&fr(F.attributeNameCheck,t)||F.attributeNameCheck instanceof Function&&F.attributeNameCheck(t))||"is"===t&&F.allowCustomizedBuiltInElements&&(F.tagNameCheck instanceof RegExp&&fr(F.tagNameCheck,n)||F.tagNameCheck instanceof Function&&F.tagNameCheck(n))))return!1}else if(!ep[t]&&!fr(N,ft(n,R,""))&&!(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===fn(n,"data:")&&eu[e])&&!(q&&!fr(L,ft(n,R,"")))&&n)return!1}return!0},ej=function(e){return"annotation-xml"!==e&&fe(e,I)},eV=function(e){eH(M.beforeSanitizeAttributes,e,null);let{attributes:t}=e;if(!t||eP(e))return;let i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H,forceKeepAttr:void 0},a=t.length;for(;a--;){let{name:r,namespaceURI:o,value:s}=t[a],l=ek(r),c="value"===r?s:fi(s);if(i.attrName=l,i.attrValue=c,i.keepAttr=!0,i.forceKeepAttr=void 0,eH(M.uponSanitizeAttribute,e,i),c=i.attrValue,ea&&("id"===l||"name"===l)&&(eR(r,e),c="user-content-"+c),X&&fr(/((--!?|])>)|<\/(style|title)/i,c)){eR(r,e);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr||!Y&&fr(/\/>/i,c)){eR(r,e);continue}Z&&d3([S,O,C],e=>{c=ft(c,e," ")});let u=ek(e.nodeName);if(!eF(u,l,c)){eR(r,e);continue}if(x&&"object"==typeof f&&"function"==typeof f.getAttributeType&&!o)switch(f.getAttributeType(u,l)){case"TrustedHTML":c=x.createHTML(c);break;case"TrustedScriptURL":c=x.createScriptURL(c)}if(c!==s)try{o?e.setAttributeNS(o,r,c):e.setAttribute(r,c),eP(e)?eL(e):d4(n.removed)}catch{eR(r,e)}}eH(M.afterSanitizeAttributes,e,null)},eG=function e(t){let n=null,i=eN(t);for(eH(M.beforeSanitizeShadowDOM,t,null);n=i.nextNode();)eH(M.uponSanitizeShadowNode,n,null),eU(n),eV(n),n.content instanceof o&&e(n.content);eH(M.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,r=null,s=null,c=null;if((eb=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!eB(e))if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw fo("dirty is not a string, aborting")}else throw fo("toString is not a function");if(!n.isSupported)return e;if(Q||eO(t),n.removed=[],"string"==typeof e&&(eo=!1),eo){if(e.nodeName){let t=ek(e.nodeName);if(!P[t]||j[t])throw fo("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)1===(r=(i=eI("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?i=r:i.appendChild(r);else{if(!ee&&!Z&&!K&&-1===e.indexOf("<"))return x&&en?x.createHTML(e):e;if(!(i=eI(e)))return ee?null:en?w:""}i&&J&&eL(i.firstChild);let u=eN(eo?e:i);for(;s=u.nextNode();)eU(s),eV(s),s.content instanceof o&&eG(s.content);if(eo)return e;if(ee){if(et)for(c=A.call(i.ownerDocument);i.firstChild;)c.appendChild(i.firstChild);else c=i;return(H.shadowroot||H.shadowrootmode)&&(c=T.call(a,c,!0)),c}let h=K?i.outerHTML:i.innerHTML;return K&&P["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&fr(fO,i.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+i.ownerDocument.doctype.name+`>
4
+ `+h),Z&&d3([S,O,C],e=>{h=ft(h,e," ")}),x&&en?x.createHTML(h):h},n.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eO(e),Q=!0},n.clearConfig=function(){eT=null,Q=!1},n.isValidAttribute=function(e,t,n){return eT||eO({}),eF(ek(e),ek(t),n)},n.addHook=function(e,t){"function"==typeof t&&d6(M[e],t)},n.removeHook=function(e,t){if(void 0!==t){let n=d5(M[e],t);return -1===n?void 0:d8(M[e],n,1)[0]}return d4(M[e])},n.removeHooks=function(e){M[e]=[]},n.removeAllHooks=function(){M=fz()},n}();let fR=e=>fL.sanitize(e,{USE_PROFILES:{html:!0,svg:!0,svgFilters:!0}}),fI=e=>fL.sanitize(e,{ALLOWED_TAGS:[]}),fN=class e extends dW{constructor(){super(...arguments),this.type="toolbar",this.renderType=eY.HTML}init(){let e=()=>this.updateOverflowMenu(!1);this.services.events.addEventListener(eq.Toolbar.SHOW_OVERFLOW_MENU,()=>{this.renderOverflowMenu(),document.body.addEventListener("click",e)}),this.services.events.addEventListener(eq.Toolbar.HIDE_OVERFLOW_MENU,()=>{document.body.removeEventListener("click",e)})}render(e=!0){let t=this.getComponentContainer({ariaLabel:"toolbar"}).attr("role","group");if(sH(this.getOptions(),"data","loading"))t.html(""),this.overflowMenu=null;else{this.overflowMenu||(this.overflowMenu=t.append("div").attr("class","cds--overflow-menu-options cds--overflow-menu--flip cds--overflow-menu-options cds--overflow-menu--flip").attr("tabindex",-1).html("<ul role='menu'></ul>"));let{buttonList:e,overflowMenuItemList:n}=this.getControlConfigs();n&&e.push(this.getOverflowButtonConfig());let i=t.selectAll("div.toolbar-control").data(e,e=>e.id);i.exit().remove();let a=i.enter().append("div").attr("class","toolbar-control cds--overflow-menu cds--overflow-menu"),r=this;a.merge(i).classed("disabled",e=>e.shouldBeDisabled()).attr("role","button").attr("aria-disabled",e=>e.shouldBeDisabled()).attr("aria-label",e=>e.title).html(e=>{let t;return`
5
+ <button
6
+ type="button"
7
+ class="cds--overflow-menu__trigger cds--overflow-menu__trigger"
8
+ aria-haspopup="true" aria-expanded="false" id="${this.services.domUtils.generateElementIDString(`control-${fI(e.id)}`)}" aria-label="${fI(e.title)}">
9
+ <svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" class="cds--overflow-menu__icon cds--overflow-menu__icon" viewBox="0 0 32 32" aria-hidden="true">
10
+ ${t=e.iconSVG.content,fL.sanitize(t,{NAMESPACE:"http://www.w3.org/2000/svg",USE_PROFILES:{html:!0,svg:!0,svgFilters:!0}})}
11
+ </svg>
12
+ </button>`}).each(function(e,t){lB(this).select("svg").style("pointer-events","none").style("will-change","transform").style("width",void 0!==e.iconSVG.width?e.iconSVG.width:"20px").style("height",void 0!==e.iconSVG.height?e.iconSVG.height:"20px"),lB(this).select("button").on("mouseover focus",function(t){let n=lB(this);n.classed("hovered",!0),r.services.events.dispatchEvent(eq.Toolbar.SHOW_TOOLTIP,{event:t,hoveredElement:n,content:e.title,noWrap:!0,placements:["top","bottom"]})}).on("mouseout blur",function(){r.services.events.dispatchEvent(eq.Toolbar.HIDE_TOOLTIP)}).on("click",t=>{e.shouldBeDisabled()||r.triggerFunctionAndEvent(e,t,this)}).on("keydown",n=>{n.key&&"Enter"===n.key||" "===n.key?(n.preventDefault(),r.triggerFunctionAndEvent(e,n,this)):n.key&&"ArrowLeft"===n.key?r.focusOnPreviousEnabledToolbarItem(t):n.key&&"ArrowRight"===n.key&&r.focusOnNextEnabledToolbarItem(t)})}),this.overflowButton=this.getComponentContainer().select(`button.cds--overflow-menu__trigger#${this.services.domUtils.generateElementIDString("control-toolbar-overflow-menu")}`)}}renderOverflowMenu(){let{overflowMenuItemList:e}=this.getControlConfigs(),t=this.overflowMenu.select("ul").selectAll("li.cds--overflow-menu-options__option").data(e,e=>sH(e,"id"));t.exit().remove();let n=t.enter().append("li").attr("id",e=>this.services.domUtils.generateElementIDString(`control-${e.id}`)).attr("class","cds--overflow-menu-options__option cds--overflow-menu-options__option").attr("role","menuitem").attr("tabindex",1);n.append("button").attr("type","button").attr("class","cds--overflow-menu-options__btn cds--overflow-menu-options__btn"),n.merge(t).classed("cds--overflow-menu-options__option--disabled",e=>e.shouldBeDisabled()).classed("cds--overflow-menu-options__option--disabled",e=>e.shouldBeDisabled()).attr("aria-disabled",e=>e.shouldBeDisabled()).selectAll("button").text(e=>e.title)}isOverflowMenuOpen(){return this.overflowMenu.classed("is-open")}updateOverflowMenu(e){this.overflowMenu&&(this.overflowMenu.classed("is-open",e),this.overflowButton&&(this.overflowButton.attr("aria-expanded",e),lB(this.overflowButton.node().parentNode).classed("cds--overflow-menu--open",e).classed("cds--overflow-menu--open",e)),e?this.services.events.dispatchEvent(eq.Toolbar.SHOW_OVERFLOW_MENU):this.services.events.dispatchEvent(eq.Toolbar.HIDE_OVERFLOW_MENU))}focusOnPreviousEnabledToolbarItem(e){let t=this.getToolbarButtonItems(),n=t.length;for(let i=e-1;i>=0;i--)if(!t[i].shouldBeDisabled()){n=i;break}if(n<t.length){let e=lB(`button#${this.services.domUtils.generateElementIDString(`control-${t[n].id}`)}`).node();"focus"in e&&e.focus()}}focusOnNextEnabledToolbarItem(e){let t=this.getToolbarButtonItems(),n=-1;for(let i=e+1;i<t.length;i++)if(!t[i].shouldBeDisabled()){n=i;break}if(n>-1){let e=lB(`button#${this.services.domUtils.generateElementIDString(`control-${t[n].id}`)}`).node();"focus"in e&&e.focus()}}focusOnPreviousEnabledMenuItem(e){let t=this.getOverflowMenuItems(),n=t.length;for(let i=e-1;i>=0;i--)if(!t[i].shouldBeDisabled()){n=i;break}if(n<t.length){let e=lB(`#${this.services.domUtils.generateElementIDString(`control-${t[n].id}`)} button`).node();"focus"in e&&e.focus()}}focusOnNextEnabledMenuItem(e){let t=this.getOverflowMenuItems(),n=-1;for(let i=e+1;i<t.length;i++)if(!t[i].shouldBeDisabled()){n=i;break}if(n>-1){let e=lB(`#${this.services.domUtils.generateElementIDString(`control-${t[n].id}`)} button`).node();"focus"in e&&e.focus()}}toggleOverflowMenu(e){if(this.isOverflowMenuOpen())this.updateOverflowMenu(!1);else{this.updateOverflowMenu(!0);let t=this;this.getOverflowMenuItems().forEach((n,i)=>{let a=lB(`#${this.services.domUtils.generateElementIDString(`control-${n.id}`)}`);null!==a&&(a.on("click",()=>{t.triggerFunctionAndEvent(n,e,a.node()),t.updateOverflowMenu(!1)}),a.on("keydown",r=>{r&&"Enter"===r.key?t.triggerFunctionAndEvent(n,e,a.node()):r&&"ArrowUp"===r.key?t.focusOnPreviousEnabledMenuItem(i):r&&"ArrowDown"===r.key?t.focusOnNextEnabledMenuItem(i):r&&"Escape"===r.key&&t.updateOverflowMenu(!1),r.preventDefault()}))}),t.focusOnNextEnabledMenuItem(-1)}e&&e.stopImmediatePropagation()}triggerFunctionAndEvent(e,t,n){"function"==typeof e.shouldBeDisabled&&e.shouldBeDisabled()||("function"==typeof e.clickFunction&&e.clickFunction(t),this.services.events.dispatchEvent(eq.Toolbar.BUTTON_CLICK,{control:e,event:t,element:n}))}getControlConfigs(){let t=sH(this.getOptions(),"toolbar","numberOfIcons")-1,n=sH(this.getOptions(),"toolbar","controls"),i=[],a=[],r=[];return n.forEach(n=>{let o=null;if(n.type===tl.CUSTOM)null===sH(n,"id")&&(n.id=`toolbar-button-${e.buttonID++}`),null===sH(n,"shouldBeDisabled")&&(n.shouldBeDisabled=()=>!1),o=n;else{let e=this.services.domUtils.isFullScreenMode();n.type===tl.MAKE_FULLSCREEN&&e?n.type=tl.EXIT_FULLSCREEN:n.type!==tl.EXIT_FULLSCREEN||e||(n.type=tl.MAKE_FULLSCREEN),o=this.getControlConfigByType(n.type)}o&&(o.text=n.text?n.text:n.type,-1!==o.id.indexOf("toolbar-export")?i.push(o):a.length<t?null===sH(o,"iconSVG","content")?r.push(o):a.push(o):r.push(o))}),r.push(...i),r.length?{buttonList:a,overflowMenuItemList:r}:{buttonList:a}}getToolbarButtonItems(){let{buttonList:e,overflowMenuItemList:t}=this.getControlConfigs();return t&&e.push(this.getOverflowButtonConfig()),e||[]}getOverflowMenuItems(){let{overflowMenuItemList:e}=this.getControlConfigs();return e||[]}getOverflowButtonConfig(){let{moreOptions:e}=sH(this.model.getOptions(),"locale","translations","toolbar");return{id:"toolbar-overflow-menu",title:e,shouldBeDisabled:()=>!1,iconSVG:{content:`<circle cx="16" cy="8" r="2"></circle>
13
+ <circle cx="16" cy="16" r="2"></circle>
14
+ <circle cx="16" cy="24" r="2"></circle>`},clickFunction:e=>this.toggleOverflowMenu(e)}}getControlConfigByType(e){let t,n=this.services.zoom&&this.services.zoom.isZoomBarEnabled()&&!this.services.zoom.isEmptyState(),i=this.model.getDisplayData(),{exportAsCSV:a,exportAsJPG:r,exportAsPNG:o,zoomIn:s,zoomOut:l,resetZoom:c,makeFullScreen:u,exitFullScreen:h,showAsTable:p}=sH(this.model.getOptions(),"locale","translations","toolbar");switch(e){case tl.ZOOM_IN:n&&(t={id:"toolbar-zoomIn",title:s,shouldBeDisabled:()=>this.services.zoom.isMinZoomDomain(),iconSVG:{content:this.getControlIconByType(e)},clickFunction:()=>this.services.zoom.zoomIn()});break;case tl.ZOOM_OUT:n&&(t={id:"toolbar-zoomOut",title:l,shouldBeDisabled:()=>this.services.zoom.isMaxZoomDomain(),iconSVG:{content:this.getControlIconByType(e)},clickFunction:()=>this.services.zoom.zoomOut()});break;case tl.RESET_ZOOM:n&&(t={id:"toolbar-resetZoom",title:c,shouldBeDisabled:()=>this.services.zoom.isMaxZoomDomain(),iconSVG:{content:this.getControlIconByType(e)},clickFunction:()=>this.services.zoom.resetZoomDomain()});break;case tl.MAKE_FULLSCREEN:t={id:"toolbar-makefullscreen",iconSVG:{content:this.getControlIconByType(e),width:"15px",height:"15px"},title:u,shouldBeDisabled:()=>!1,clickFunction:()=>{this.services.domUtils.toggleFullscreen()}};break;case tl.EXIT_FULLSCREEN:t={id:"toolbar-exitfullscreen",iconSVG:{content:this.getControlIconByType(e),width:"15px",height:"15px"},title:h,shouldBeDisabled:()=>!1,clickFunction:()=>{this.services.domUtils.toggleFullscreen()}};break;case tl.SHOW_AS_DATATABLE:t={id:"toolbar-showasdatatable",iconSVG:{content:this.getControlIconByType(e)},title:p,shouldBeDisabled:()=>0===i.length,clickFunction:()=>this.services.events.dispatchEvent(eq.Modal.SHOW)};break;case tl.EXPORT_CSV:t={id:"toolbar-export-CSV",title:a,shouldBeDisabled:()=>!1,iconSVG:{content:this.getControlIconByType(e)},clickFunction:()=>this.model.exportToCSV()};break;case tl.EXPORT_PNG:t={id:"toolbar-export-PNG",title:o,shouldBeDisabled:()=>!1,iconSVG:{content:this.getControlIconByType(e)},clickFunction:()=>this.services.domUtils.exportToPNG()};break;case tl.EXPORT_JPG:t={id:"toolbar-export-JPG",title:r,shouldBeDisabled:()=>!1,iconSVG:{content:this.getControlIconByType(e)},clickFunction:()=>this.services.domUtils.exportToJPG()};break;default:throw Error("Not supported toolbar control type: "+e)}return t}getControlIconByType(e){switch(e){case tl.ZOOM_IN:return`<polygon points="19 13 15 13 15 9 13 9 13 13 9 13 9 15 13 15 13 19 15 19 15 15 19 15 19 13"/>
15
+ <path d="M22.45,21A10.87,10.87,0,0,0,25,14,11,11,0,1,0,14,25a10.87,10.87,0,0,0,7-2.55L28.59,30,30,28.59ZM14,23a9,9,0,1,1,9-9A9,9,0,0,1,14,23Z"/>`;case tl.ZOOM_OUT:return`<rect x="9" y="13" width="10" height="2"/>
16
+ <path d="M22.45,21A10.87,10.87,0,0,0,25,14,11,11,0,1,0,14,25a10.87,10.87,0,0,0,7-2.55L28.59,30,30,28.59ZM14,23a9,9,0,1,1,9-9A9,9,0,0,1,14,23Z"/>`;case tl.RESET_ZOOM:return'<path d="M22.4478,21A10.855,10.855,0,0,0,25,14,10.99,10.99,0,0,0,6,6.4658V2H4v8h8V8H7.332a8.9768,8.9768,0,1,1-2.1,8H3.1912A11.0118,11.0118,0,0,0,14,25a10.855,10.855,0,0,0,7-2.5522L28.5859,30,30,28.5859Z"/>';case tl.MAKE_FULLSCREEN:return'<polygon points="21 2 21 4 26.59 4 17 13.58 18.41 15 28 5.41 28 11 30 11 30 2 21 2"/><polygon points="15 18.42 13.59 17 4 26.59 4 21 2 21 2 30 11 30 11 28 5.41 28 15 18.42"/>';case tl.EXIT_FULLSCREEN:return'<polygon points="4 18 4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18"/><polygon points="30 3.416 28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416"/>';case tl.SHOW_AS_DATATABLE:return'<rect x="4" y="6" width="18" height="2"/><rect x="4" y="12" width="18" height="2"/><rect x="4" y="18" width="18" height="2"/><rect x="4" y="24" width="18" height="2"/><rect x="26" y="6" width="2" height="2"/><rect x="26" y="12" width="2" height="2"/><rect x="26" y="18" width="2" height="2"/><rect x="26" y="24" width="2" height="2"/>';case tl.EXPORT_CSV:case tl.EXPORT_JPG:case tl.EXPORT_PNG:return'<path d="M22.4478,21A10.855,10.855,0,0,0,25,14,10.99,10.99,0,0,0,6,6.4658V2H4v8h8V8H7.332a8.9768,8.9768,0,1,1-2.1,8H3.1912A11.0118,11.0118,0,0,0,14,25a10.855,10.855,0,0,0,7-2.5522L28.5859,30,30,28.5859Z"/>';default:throw Error("Not supported toolbar control type: "+e)}}};fN.buttonID=0;let fP=class e extends dW{constructor(t,n,i,a){super(t,n,a),this.type="layout",this.configs=a,this.children=i,this._instanceID=e.instanceID++,this.init()}init(){this.children.forEach(e=>{e.components.forEach(e=>{e.init()})})}getPreferedAndFixedSizeSum(){let e=this.parent,t=0;return e.selectAll(`div.layout-child-${this._instanceID}`).filter(e=>{let t=sH(e,"growth");return t===e8.PREFERRED||t===e8.FIXED}).each(function(e){t+=e.size}),t}getNumOfStretchChildren(){return this.parent.selectAll(`div.layout-child-${this._instanceID}`).filter(e=>sH(e,"growth")===e8.STRETCH).size()}render(e=!0){let t=this.model.getOptions(),n=this.parent,{width:i,height:a}=h_.getHTMLElementSize(n.node()),r=this.configs.direction===e6.ROW||this.configs.direction===e6.ROW_REVERSE,o=sH(this.model.getOptions(),"style","prefix"),s=n.classed(`cds--${o}--layout-row`,this.configs.direction===e6.ROW).classed(`cds--${o}--layout-row-reverse`,this.configs.direction===e6.ROW_REVERSE).classed(`cds--${o}--layout-column`,this.configs.direction===e6.COLUMN).classed(`cds--${o}--layout-column-reverse`,this.configs.direction===e6.COLUMN_REVERSE).classed(`cds--${o}--layout-alignitems-center`,this.configs.alignItems===e7.CENTER).selectAll(`div.layout-child-${this._instanceID}`).data(this.children,e=>e.id);s.enter().append("div").merge(n.selectAll(`div.layout-child-${this._instanceID}`)).attr("class",e=>`layout-child layout-child-${this._instanceID} ${e.id}`).each(function(n){n.components.forEach(i=>{let a=lB(this),r=sH(n,"renderType")===eY.SVG;i.setParent(r?h_.appendOrSelect(a,"svg.layout-svg-wrapper").attr("width","100%").attr("height","100%"):a),r&&!a.select("svg.layout-svg-wrapper").attr("aria-label")&&a.select("svg.layout-svg-wrapper").attr("aria-label",t?.accessibility?.svgAriaLabel||t?.title);let o=sH(n,"growth");(o===e8.PREFERRED||o===e8.FIXED)&&i.render(e)})}),n.selectAll(`div.layout-child-${this._instanceID}`).style("height",null).style("width",null).each(function(e){let t=sH(e,"growth"),n=sH(e,"renderType")===eY.SVG?h_.getSVGElementSize(lB(this).select("svg.layout-svg-wrapper"),{useBBox:!0}):h_.getHTMLElementSize(this);t===e8.PREFERRED&&(e.size=(r?n.width:n.height)/(r?i:a)*100)}),s.exit().remove(),this.children.filter(e=>sH(e,"growth")===e8.STRETCH).forEach(e=>{e.size=(100-this.getPreferedAndFixedSizeSum())/this.getNumOfStretchChildren()});let l=n.selectAll(`div.layout-child-${this._instanceID}`).data(this.children,e=>e.id);r?l.style("width",e=>`${e.size/100*i}px`).style("height","100%"):l.style("height",e=>`${e.size/100*a}px`).style("width","100%"),l.each(function(t){t.components.forEach(n=>{sH(t,"growth")===e8.STRETCH&&n.render(e)})})}setModel(e){super.setModel(e),this.children.forEach(t=>{t.components.forEach(t=>t.setModel(e))})}setServices(e){super.setServices(e),this.children.forEach(t=>{t.components.forEach(t=>t.setServices(e))})}destroy(){this.children.forEach(e=>{e.components.forEach(e=>e.destroy())})}};fP.instanceID=Math.floor(0x174876e7ff*Math.random());class fB extends dW{constructor(){super(...arguments),this.type="spacer"}render(e=!1){this.getComponentContainer({isPresentational:!0}).style("width",`${this.configs.size||sy}px`).style("height",`${this.configs.size||sy}px`).attr("opacity",0)}}class fH extends dW{constructor(e,t,n){super(e,t,n),this.type="modal",this.isEventListenerAdded=!1,this.handleShowModal=()=>{let e=this.services.domUtils.getChartID();this.modal.attr("data-modal",!0).attr("class","cds--modal").attr("role","dialog").attr("aria-modal",!0).attr("aria-labelledby",`${e}__modal-title`).attr("aria-describedby",`${e}__modal-description`).attr("tabindex",-1).style("opacity",1).style("visibility","visible"),this.modal.html(this.getModalHTML()),this.modal.select("div.cds--modal-footer button.cds--btn").on("click",()=>this.model.exportToCSV()),this.modal.on("click",this.handleHideModal),this.modal.select(".cds--modal-container").on("click",e=>{e.stopPropagation()}),this.modal.select(".cds--modal-close").on("click",this.handleHideModal),"u">typeof window&&window.addEventListener("keydown",this.handleEscapeKey)},this.handleEscapeKey=e=>{"Escape"===e.key&&this.handleHideModal()},this.handleHideModal=()=>{this.modal.attr("role",null).attr("aria-modal",null).attr("aria-labelledby",null).attr("aria-describedby",null).attr("tabindex",null).style("opacity",0).style("visibility","hidden"),this.modal.on("click",null),this.modal.select(".cds--modal-container").on("click",null),this.modal.select(".cds--modal-close").on("click",null),"u">typeof window&&window.removeEventListener("keydown",this.handleEscapeKey)},this.init()}addEventListeners(){this.services.events.addEventListener(eq.Modal.SHOW,this.handleShowModal)}removeEventListeners(){this.services.events.removeEventListener(eq.Modal.SHOW,this.handleShowModal)}getModalHTML(){let e=this.services.domUtils.getChartID(),t=this.model.getOptions(),{title:n,downloadAsCSV:i}=sH(t,"locale","translations","tabularRep"),a=sH(t,"style","prefix"),r=this.model.getTabularDataArray();return`
17
+ <div class="cds--modal-container">
18
+ <div class="cds--modal-header">
19
+
20
+ <p class="cds--modal-header__label cds--type-delta" id="modal-title">${n}</p>
21
+
22
+ <p class="cds--modal-header__heading cds--type-beta" id="${e}__modal-description">${fI(t.title)}</p>
23
+
24
+ <button class="cds--modal-close" type="button" data-modal-close aria-label="close modal" data-modal-primary-focus>
25
+ <svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" fill="currentColor" aria-label="Close" width="20" height="20" viewBox="0 0 32 32" role="img" class="cds--modal-close__icon">
26
+ <path d="M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"></path>
27
+ </svg>
28
+ </button>
29
+ </div>
30
+
31
+ <div class="cds--modal-content">
32
+ <table class="cds--data-table cds--data-table--no-border">
33
+ <thead>
34
+ <tr>
35
+ ${ii(r,0).map(e=>`<th scope="col">
36
+ <div class="cds--table-header-label">${fI(e)}</div>
37
+ </th>`).join("")}
38
+ </tr>
39
+ </thead>
40
+
41
+ <tbody>${r.slice(1).map(e=>`
42
+ <tr>
43
+ ${e.map(e=>`<td>${fI(e)}</td>`).join("")}
44
+ </tr>`).join("")}
45
+ </tbody>
46
+ </table>
47
+ </div>
48
+
49
+ <div class="cds--modal-footer">
50
+ <div class="cds--${a}-modal-footer-spacer"></div>
51
+ <button class="cds--btn cds--btn--primary" type="button" data-modal-primary-focus>${i}</button>
52
+ </div>
53
+ </div>`}render(e=!1){let t=this.model.getOptions();if(!this.isEventListenerAdded){let e=lB(this.services.domUtils.getHolder()),n=sH(t,"style","prefix");this.modal=h_.appendOrSelect(e,`div.cds--${n}--modal`),this.addEventListeners(),this.isEventListenerAdded=!0}}destroy(){this.removeEventListeners(),this.isEventListenerAdded=!1}}class fU extends dW{constructor(){super(...arguments),this.type="title",this.renderType=eY.HTML}render(e=!1){let t=this.getComponentContainer(),n=sH(this.getOptions(),"title"),i=t.selectAll("p.title").data([n]);if(i.enter().append("p").classed("title",!0).attr("role","heading").attr("aria-level",2).merge(i).html(e=>fI(e)),i.node()&&i.node().offsetWidth<i.node().scrollWidth){let e=this;i.on("mouseover",function(t){e.services.events.dispatchEvent(eq.Tooltip.SHOW,{event:t,hoveredElement:i,content:i.text()})}).on("mousemove",function(t){e.services.events.dispatchEvent(eq.Tooltip.MOVE,{event:t})}).on("mouseout",function(){e.services.events.dispatchEvent(eq.Tooltip.HIDE)})}i.exit().remove()}truncateTitle(e,t){if(t<=0)return;let n=e.text();if(e.node().getComputedTextLength()>t){e.append("tspan").text("...");let i=h_.appendOrSelect(e,"tspan").node().getComputedTextLength(),a=e.text(),r=this.getSubstringIndex(e.node(),0,a.length-1,t-i);e.html(a.substring(0,r-1)).append("tspan").text("...");let o=this;e.on("mouseover",function(t){o.services.events.dispatchEvent(eq.Tooltip.SHOW,{event:t,hoveredElement:e,content:n})}).on("mousemove",function(e){o.services.events.dispatchEvent(eq.Tooltip.MOVE,{event:e})}).on("mouseout",function(){o.services.events.dispatchEvent(eq.Tooltip.HIDE)})}}getMaxTitleWidth(){return h_.getSVGElementSize(this.parent.node(),{useAttrs:!0}).width}getSubstringIndex(e,t,n,i){let a=Math.floor((n+t)/2);return e.getSubStringLength(0,a)>i?this.getSubstringIndex(e,t,a,i):e.getSubStringLength(0,a)<i?e.getSubStringLength(0,a+1)>i?a:this.getSubstringIndex(e,a,n,i):a}}class fF extends dW{constructor(){super(...arguments),this.type="legend",this.renderType=eY.HTML}render(e=!1){let t=this.getOptions(),n=sH(t,"legend"),i=sH(n,"alignment"),a=sH(t,"legend","orientation"),r=this.model.getDataGroups(),{DISABLED:o}=sf.items.status,s=r.some(e=>e.status===o),l=sH(n,"order"),c=this.getComponentContainer().classed("center-aligned",i===e3.CENTER).classed("right-aligned",i===e3.RIGHT).classed(a||"horizontal",!0).classed("has-deactivated-items",s).attr("role",lh.GROUP).attr("aria-label","Data groups").attr("data-name","legend-items");l&&(r=this.sortDataGroups(r,l));let u=c.selectAll("div.legend-item").data(r,e=>e.name),h=u.enter().append("div").attr("class","legend-item");h.merge(c.selectAll("div.legend-item")).classed("active",function(e){return e.status===sf.items.status.ACTIVE});let p=sH(this.getOptions(),"legend","clickable");c.classed("clickable",p&&r.length>1);let d=sf.checkbox.radius,f=h.append("div").classed("checkbox",!0),g=f.merge(u.select("div.checkbox")).attr("role",lh.CHECKBOX).attr("tabindex",p?0:-1).attr("aria-labelledby",(e,t)=>this.services.domUtils.generateElementIDString(`legend-datagroup-${t}-title`)).attr("aria-checked",({status:e})=>e===sf.items.status.ACTIVE).attr("width",2*d).attr("height",2*d).attr("class",e=>this.model.getColorClassName({classNameTypes:[eX.BACKGROUND],dataGroupName:e.name,originalClassName:"checkbox"})).style("background",e=>e.status===sf.items.status.ACTIVE?this.model.getFillColor(e.name)||this.model.getStrokeColor(e.name):null).classed("active",function(e){return e.status===sf.items.status.ACTIVE});f.append("svg").attr("focusable",!1).attr("preserveAspectRatio","xMidYMid meet").attr("xmlns","http://www.w3.org/2000/svg").attr("width","11").attr("height","11").attr("viewBox","0 0 31 28").attr("aria-hidden",!0).style("will-change","transform").append("path").attr("d","M13 21.2l-7.1-7.1-1.4 1.4 7.1 7.1L13 24 27.1 9.9l-1.4-1.5z"),h.append("p").merge(u.select("p"));let m=sH(t,"legend","additionalItems");if(m&&r.length){let e=this,t=c.selectAll("div.additional-item").data(m);t.exit().remove();let n=t.enter().append("div").merge(t).classed("legend-item",!0).classed("additional",!0).attr("role","img").attr("aria-labelledby",(e,t)=>this.services.domUtils.generateElementIDString(`legend-datagroup-${g.size()+t}-title`));n.selectAll("*").remove();let i,a=1;n.append("svg").classed("icon",!0).each(function(t){let n=lB(this);i&&i==t.type?a++:(i=t.type,a=1),e.addAdditionalItem(n,t,a)}),n.append("p").merge(n.select("p")),this.truncateLegendText()}u.exit().on("mouseover",null).on("click",null).on("mouseout",null).remove(),p&&h.size()>1&&this.addEventListeners()}sortDataGroups(e,t){if(e.sort((e,n)=>t.indexOf(e.name)-t.indexOf(n.name)),t.length<e.length){let n=e.length-t.length;return e.slice(n).concat(e.slice(0,n))}return e}addAdditionalItem(e,t,n){let{width:i,height:a}=sf.area;if(t.type===tu.RADIUS?e.style("width",`${a}px`).style("height",`${a}px`):e.style("width",`${i}px`).style("height",`${a}px`),t.type===tu.RADIUS){let{iconData:n,fill:i,stroke:a}=sf.radius;e.attr("fill","none").selectAll("circle").data(n).enter().append("circle").classed("radius",!0).attr("role",lh.IMG).attr("aria-label","radius").attr("cx",e=>e.cx).attr("cy",e=>e.cy).attr("r",e=>e.r).style("fill",t.fill?t.fill:i).style("stroke",t.stroke?t.stroke:a)}else if(t.type===tu.LINE){let a=sf.line;e.select("line.line").empty()&&e.append("line").classed(`line-${n}`,!0).attr("role",lh.IMG).attr("aria-label","line").attr("x1",0).attr("y1",a.yPosition).attr("x2",i).attr("y2",a.yPosition).style("stroke",t.stroke?t.stroke:a.stroke).style("stroke-width",a.strokeWidth)}else if(t.type===tu.AREA)e.select("rect.area").empty()&&e.append("rect").classed(`area-${n}`,!0).attr("role",lh.IMG).attr("aria-label","area").attr("width",i).attr("height",a).style("fill",n>3&&!t.fill?sf.area.fill:t.fill).style("stroke",t.stroke);else if(t.type===tu.SIZE){let{iconData:n,fill:i,stroke:a}=sf.size;e.attr("fill","none").attr("role",lh.IMG).attr("aria-label","size").selectAll("rect").data(n).enter().append("rect").classed("size",!0).attr("width",e=>e.width).attr("height",e=>e.height).attr("y",()=>0).style("fill",t.fill?t.fill:i).style("stroke",t.stroke?t.stroke:a).style("stroke-width",1)}else if(t.type===tu.QUARTILE){let{iconData:t}=sf.quartile;e.selectAll("rect").attr("role",lh.IMG).attr("aria-label","quartile").data(t).enter().append("rect").attr("class",(e,t)=>`quartile-${0===t?"wrapper":"line"}`).attr("x",e=>e.x).attr("y",e=>e.y).attr("width",e=>e.width).attr("height",e=>e.height)}else if(t.type===tu.ZOOM){let{iconData:n,color:i}=sH(sf,"zoom"),a=e.attr("role",lh.IMG).attr("aria-label","zoom").selectAll("g.icon").data(n).enter();a.append("g").attr("x",e=>e.x).attr("y",e=>e.y).attr("width",e=>e.width).attr("height",e=>e.height).append("polygon").attr("points","7.7 4.82 5.78 4.82 5.78 2.89 4.82 2.89 4.82 4.82 2.89 4.82 2.89 5.78 4.82 5.78 4.82 7.7 5.78 7.7 5.78 5.78 7.7 5.78 7.7 4.82").attr("fill",()=>t.color?t.color:i),a.append("path").attr("d","M9.36,8.67A5.22,5.22,0,0,0,10.59,5.3,5.3,5.3,0,1,0,5.3,10.59,5.22,5.22,0,0,0,8.67,9.36L12.32,13l.68-.68Zm-4.06,1A4.34,4.34,0,1,1,9.63,5.3,4.33,4.33,0,0,1,5.3,9.63Z").attr("fill",()=>t.color?t.color:i)}}truncateLegendText(){let e=this.getComponentContainer(),t=sH(this.getOptions(),"legend","truncation"),n=sH(t,"type"),i=sH(t,"threshold"),a=sH(t,"numCharacter"),r=e.selectAll("div.legend-item p");r.attr("id",function(){return(this.parentNode.querySelector("div.checkbox")||this.parentNode).getAttribute("aria-labelledby")}),n!==eJ.NONE?r.html(function(e){let t=fI(e.name);return t.length>i&&t.length!==a?sP(t,n,a):t}):r.html(e=>fI(e.name))}addEventListeners(){let e=this,t=this.getComponentContainer(),n=sH(this.getOptions(),"legend"),i=sH(n,"truncation");t.selectAll("div.legend-item").on("mouseover",function(t){e.services.events.dispatchEvent(eq.Legend.ITEM_HOVER,{hoveredElement:lB(this)});let n=lB(this);n.select("div.checkbox").classed("hovered",!0);let a=n.datum();a.name.length>i.threshold&&i.numCharacter<a.name.length&&i.type!==eJ.NONE&&e.services.events.dispatchEvent(eq.Tooltip.SHOW,{event:t,hoveredElement:n,content:a.name})}).on("mousemove",function(t){lB(this).datum().name.length>i.threshold&&i.type!==eJ.NONE&&e.services.events.dispatchEvent(eq.Tooltip.MOVE,{event:t})}).on("click",function(){e.services.events.dispatchEvent(eq.Legend.ITEM_CLICK,{clickedElement:lB(this)});let t=lB(this).datum();e.model.toggleDataLabel(t.name)}).on("mouseout",function(){let t=lB(this);t.select("div.checkbox").classed("hovered",!1),t.datum().name.length>i.threshold&&i.type!==eJ.NONE&&e.services.events.dispatchEvent(eq.Tooltip.HIDE),e.services.events.dispatchEvent(eq.Legend.ITEM_MOUSEOUT,{hoveredElement:t})}),t.selectAll("div.legend-item div.checkbox").on("keyup",function(t){t.key&&"Tab"===t.key&&e.services.events.dispatchEvent(eq.Legend.ITEM_HOVER,{hoveredElement:lB(this)})}),t.selectAll("div.legend-item div.checkbox").on("keydown",function(t,n){t.key&&" "===t.key?(t.preventDefault(),e.model.toggleDataLabel(n.name)):t.key&&"Tab"===t.key&&e.services.events.dispatchEvent(eq.Legend.ITEM_MOUSEOUT,{hoveredElement:lB(this)})}),t.selectAll("g.additional-item").on("mouseover",function(t){let n=lB(this),a=n.datum();a.name.length>i.threshold&&e.services.events.dispatchEvent(eq.Tooltip.SHOW,{event:t,hoveredElement:n,content:a.name})})}}class fj extends dW{constructor(e,t,n){super(e,t,n),this.type="chart-clip",this.renderType=eY.SVG,this.chartClipId="chart-clip-id-"+Math.floor(0x174876e7ff*Math.random()),this.init()}init(){this.model.set({chartClipId:this.chartClipId},{skipUpdate:!0})}render(e=!0){this.createClipPath()}createClipPath(){let e=this.parent,{cartesianScales:t}=this.services;if(!t)throw Error("Service cartesianScales was undefined");let n=t.getMainXScale(),i=t.getMainYScale(),[a,r]=n.range(),[o,s]=i.range();if(!e)throw Error("svg is undefined");this.chartClipPath=h_.appendOrSelect(e,`clipPath.${this.type}`).attr("id",this.chartClipId);let l=h_.appendOrSelect(this.chartClipPath,`rect.${this.type}`);r-a>0&&l.attr("x",a).attr("y",s).attr("width",r-a).attr("height",o-s),this.chartClipPath.merge(l).lower()}}class fV extends fj{constructor(){super(...arguments),this.type="canvas-chart-clip",this.chartClipId="canvas-chart-clip-id-"+Math.floor(0x174876e7ff*Math.random())}createClipPath(){let e=this.parent,{width:t,height:n}=h_.getSVGElementSize(this.parent,{useAttrs:!0});this.chartClipPath=h_.appendOrSelect(e,`clipPath.${this.type}`).attr("id",this.chartClipId);let i=h_.appendOrSelect(this.chartClipPath,`rect.${this.type}`);i.attr("x",0).attr("y",0).attr("width",t).attr("height",n),this.chartClipPath.merge(i).lower()}}(ep=eg||(eg={})).LEFT="left",ep.RIGHT="right",ep.TOP="top",ep.BOTTOM="bottom";var fG=((ef={})[eg.LEFT]=function(e,t,n){return{top:e.top-Math.round(t.offsetHeight/2)+Math.round(n.height/2),left:Math.round(e.left-t.offsetWidth)}},ef[eg.RIGHT]=function(e,t,n){return{top:e.top-Math.round(t.offsetHeight/2)+Math.round(n.height/2),left:Math.round(e.left+n.width)}},ef[eg.TOP]=function(e,t,n){return{top:Math.round(e.top-t.offsetHeight),left:e.left-Math.round(t.offsetWidth/2)+Math.round(n.width/2)}},ef[eg.BOTTOM]=function(e,t,n){return{top:Math.round(e.top+n.height),left:e.left-Math.round(t.offsetWidth/2)+Math.round(n.width/2)}},ef),fW="u">typeof window?window:{innerHeight:0,innerWidth:0},fq=function(){function e(e){void 0===e&&(e={}),this.positions=fG,this.positions=Object.assign({},fG,e)}return e.prototype.getRelativeOffset=function(e){for(var t={left:e.offsetLeft,top:e.offsetTop};e.offsetParent&&"static"===getComputedStyle(e.offsetParent).position;)t.left+=e.offsetLeft,t.top+=e.offsetTop,e=e.offsetParent;return t},e.prototype.getAbsoluteOffset=function(e){for(var t=e,n={top:0,left:0};t.offsetParent;){var i=getComputedStyle(t.offsetParent);"static"===i.position&&i.marginLeft&&i.marginTop&&(parseInt(i.marginTop,10)&&(n.top+=parseInt(i.marginTop,10)),parseInt(i.marginLeft,10)&&(n.left+=parseInt(i.marginLeft,10))),t=t.offsetParent}var a=e.getBoundingClientRect(),r=document.body.getBoundingClientRect();return{top:a.top-r.top+n.top,left:a.left-r.left+n.left}},e.prototype.findRelative=function(e,t,n){var i=this.getRelativeOffset(e),a=e.getBoundingClientRect();return this.calculatePosition(i,a,t,n)},e.prototype.findAbsolute=function(e,t,n){var i=this.getAbsoluteOffset(e),a=e.getBoundingClientRect();return this.calculatePosition(i,a,t,n)},e.prototype.findPosition=function(e,t,n,i){void 0===i&&(i=this.getAbsoluteOffset.bind(this));var a=i(e),r=e.getBoundingClientRect();return this.calculatePosition(a,r,t,n)},e.prototype.findPositionAt=function(e,t,n){return this.calculatePosition(e,{top:0,left:0,height:0,width:0},t,n)},e.prototype.getPlacementBox=function(e,t){var n=e.offsetHeight+t.top,i=e.offsetWidth+t.left;return{top:t.top,bottom:n,left:t.left,right:i}},e.prototype.addOffset=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=0),Object.assign({},e,{top:e.top+t,left:e.left+n})},e.prototype.setElement=function(e,t){e.style.top=t.top+"px",e.style.left=t.left+"px"},e.prototype.findBestPlacement=function(e,t,n,i,a){var r=this;void 0===i&&(i=this.defaultContainerFunction.bind(this)),void 0===a&&(a=this.findPosition.bind(this));var o=n.map(function(n){var o=a(e,t,n),s=r.getPlacementBox(t,o),l=0,c=0,u=i();s.top<u.top?l=u.top-s.top:s.bottom>u.height&&(l=s.bottom-u.height),s.left<u.left?c=u.left-s.left:s.right>u.width&&(c=s.right-u.width),l&&!c?c=1:c&&!l&&(l=1);var h=t.offsetHeight*t.offsetWidth;return{placement:n,weight:(h-l*c)/h}});return o.sort(function(e,t){return t.weight-e.weight}),o[0].placement},e.prototype.findBestPlacementAt=function(e,t,n,i){var a=this;return void 0===i&&(i=this.defaultContainerFunction.bind(this)),this.findBestPlacement(null,t,n,i,function(t,n,i){return a.findPositionAt(e,n,i)})},e.prototype.defaultContainerFunction=function(){return{top:0,left:0,height:fW.innerHeight,width:fW.innerWidth}},e.prototype.calculatePosition=function(e,t,n,i){return this.positions[i]?this.positions[i](e,n,t):(console.error("No function found for placement, defaulting to 0,0"),{left:0,top:0})},e}();new fq;class fY extends dW{constructor(e,t,n){super(e,t,n),this.type="tooltip",this.renderType=eY.HTML,this.isEventListenerAdded=!1,this.lastTriggeredEventType="",this.positionService=new fq,this.handleShowTooltip=e=>{let t,n=e.detail.data||e.detail.items,i=lB(e.detail.event.target).datum(),a=this.formatItems(this.getItems(e));t=e.detail.content?`<div class="title-tooltip"><p>${fR(e.detail.content)}</p></div>`:fR(this.getTooltipHTML(a));let r=h_.appendOrSelect(this.tooltip,"div.content-box");if(sH(this.getOptions(),"tooltip","customHTML"))if(e.detail.content){let t=`<div class="title-tooltip"><p>${fR(e.detail.content)}</p></div>`;r.html(t)}else r.html(`<div class="title-tooltip"><p>${fR(this.model.getOptions().tooltip.customHTML(n,t,i))}</p></div>`);else r.html(t);r.selectAll(".datapoint-tooltip").each(function(e,t){let n=a[t];a[t]&&a[t].color&&lB(this).select(".tooltip-color").attr("class","tooltip-color").style("background-color",n.color)}),this.positionTooltip(e),this.tooltip.classed("hidden",!1).attr("aria-hidden",!1),this.lastTriggeredEventType=e.type},this.handleHideTooltip=()=>{this.tooltip.classed("hidden",!0).attr("aria-hidden",!0)},this.init()}addTooltipEventListener(){this.services.events.addEventListener(eq.Tooltip.MOVE,e=>{this.lastTriggeredEventType!==eq.Toolbar.SHOW_TOOLTIP&&!1===this.tooltip.classed("hidden")&&this.positionTooltip(e)}),this.services.events.addEventListener(eq.Tooltip.SHOW,this.handleShowTooltip),this.services.events.addEventListener(eq.Tooltip.HIDE,this.handleHideTooltip),this.services.events.addEventListener(eq.Chart.MOUSEOUT,this.handleHideTooltip),this.services.events.addEventListener(eq.Toolbar.SHOW_TOOLTIP,this.handleShowTooltip),this.services.events.addEventListener(eq.Toolbar.HIDE_TOOLTIP,this.handleHideTooltip)}removeTooltipEventListener(){this.services.events.removeEventListener(eq.Tooltip.MOVE,null),this.services.events.removeEventListener(eq.Tooltip.SHOW,this.handleShowTooltip),this.services.events.removeEventListener(eq.Tooltip.HIDE,this.handleHideTooltip),this.services.events.removeEventListener(eq.Chart.MOUSEOUT,this.handleHideTooltip),this.services.events.removeEventListener(eq.Toolbar.SHOW_TOOLTIP,this.handleShowTooltip),this.services.events.removeEventListener(eq.Toolbar.HIDE_TOOLTIP,this.handleHideTooltip)}getItems(e){return e.detail.items?e.detail.items:[]}formatItems(e){let t=this.getOptions(),n=sH(t,"tooltip","truncation","type"),i=sH(t,"tooltip","truncation","threshold"),a=sH(t,"tooltip","truncation","numCharacter");return n!==eJ.NONE?e.map(e=>{let t=12*!!e.labelIcon;return e.value=this.valueFormatter(e.value,e.label),e.label&&e.label.length+t>i&&(e.label=sP(e.label,n,a)),e.value&&e.value.length>i&&(e.value=sP(e.value,n,a)),e}):e.map(e=>(e.value=this.valueFormatter(e.value,e.label),e))}getTooltipHTML(e){return'<ul class="multi-tooltip">'+e.map(e=>`<li>
54
+ <div class="datapoint-tooltip${e.bold?" bold":""}">
55
+ ${e.class||e.color?`<div class="tooltip-color ${e.class}"></div>`:""}
56
+ <div class="label">
57
+ <p>${e.label||""}</p>
58
+ ${e.labelIcon?`<span class="label-icon"/>${e.labelIcon}</span>`:""}
59
+ </div>
60
+ ${void 0===e.value||null===e.value?"":`<p class="value"/>${e.value}</p>`}
61
+ </div>
62
+ </li>`).join("")+"</ul>"}isDate(e){return e instanceof Date}valueFormatter(e,t){let n=this.getOptions(),i=sH(n,"tooltip","valueFormatter"),{code:a,number:r,date:o}=sH(n,"locale");if(i)return i(e,t);if(this.isDate(e))return o(e,a,{month:"short",day:"numeric",year:"numeric"});try{if("string"==typeof e&&/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/.test(e)){let t=new Date(e);return o(t,a,{month:"short",day:"numeric",year:"numeric"})}}catch{}return r(e,a)}render(e=!1){let t=this.getOptions(),n=sH(t,"tooltip","enabled");if(n){let e=lB(this.services.domUtils.getHolder()),n=sH(t,"style","prefix");this.tooltip=h_.appendOrSelect(e,`div.cds--${n}--tooltip`),this.tooltip.style("max-width",null).attr("role","tooltip"),this.isEventListenerAdded||(this.addTooltipEventListener(),this.isEventListenerAdded=!0),this.tooltip.classed("hidden",!0)}else!n&&this.isEventListenerAdded&&(this.removeTooltipEventListener(),this.isEventListenerAdded=!1)}addOffsetByPlacement(e,t,n){let i=Object.assign({},e);return t==eg.LEFT?i.left-=n:t==eg.RIGHT?i.left+=n:t==eg.TOP?i.top-=n:t==eg.BOTTOM&&(i.top+=n),i}positionTooltip(e){let t=this.services.domUtils.getHolder(),n=t.offsetWidth,i=t.offsetHeight,a=this.tooltip.node(),r=this.getOptions(),o=sH(r,"zoomBar","top","enabled"),s=!!sH(e,"detail","noWrap"),l=Array.isArray(sH(e,"detail","placements")),c=l?sH(e,"detail","placements"):[eg.RIGHT,eg.LEFT,eg.TOP,eg.BOTTOM],u,{horizontalOffset:h}=sb,{defaultOffset:p}=sb;if(this.tooltip.select("div.title-tooltip").classed("title-tooltip-nowrap",s),l){let t=sH(e,"detail","event","target"),r=this.services.domUtils.getElementOffset(t,!0);u=this.positionService.findBestPlacementAt(r,a,c,()=>({top:0,left:0,width:n,height:i}));let o=this.positionService.findPosition(t,a,u,()=>this.services.domUtils.getElementOffset(t));o=this.addOffsetByPlacement(o,u,p),this.positionService.setElement(a,o);return}let d=sH(e,"detail","mousePosition");if(d){let e=s_[sH(r,"zoomBar","top","type")];o&&(d[1]+=e+8)}else d=rx(sH(e,"detail","event"),t);(u=d[0]/n>.9?eg.LEFT:d[0]/n<.1?eg.RIGHT:this.positionService.findBestPlacementAt({left:d[0],top:d[1]},a,c,()=>({top:void 0,left:void 0,width:n,height:i})))===eg.LEFT&&(h*=-1);let f=this.positionService.findPositionAt({left:d[0]+h,top:d[1]},a,u);this.positionService.setElement(a,f)}}let fZ=class e extends dW{constructor(){super(...arguments),this.type="grid-brush",this.renderType=eY.SVG,this.selectionSelector="rect.selection",this.frontSelectionSelector="rect.frontSelection"}render(t=!0){let n=this.parent,i=this.getComponentContainer({isPresentational:!0});if(!n)throw Error("SVG was not defined");let a=h_.appendOrSelect(n,"svg.chart-grid-backdrop"),r=h_.appendOrSelect(a,`g.${this.type}`),o=h_.appendOrSelect(r,this.selectionSelector),{width:s,height:l}=h_.getSVGElementSize(a,{useAttrs:!0}),{cartesianScales:c}=this.services,u=c.getMainXScaleType(),h=c.getMainXScale(),[p]=h.range();i.attr("transform",`translate(${p},0)`);let d=h_.appendOrSelect(i,this.frontSelectionSelector);if(h&&u===e1.TIME){let t,n=this.model.get("zoomDomain");void 0===n&&(n=this.services.zoom.getDefaultZoomBarDomain())&&this.model.set({zoomDomain:n},{animate:!1});let i=(e,t)=>{let i=uv().range([0,s]).domain(n),a=[i.invert(e),i.invert(t)],r="manual";a[0].valueOf()===a[1].valueOf()?(a=this.services.zoom.getDefaultZoomBarDomain(),r="reset"):r="manual",(n[0].valueOf()!==a[0].valueOf()||n[1].valueOf()!==a[1].valueOf())&&this.services.zoom.handleDomainChange(a,{dispatchEvent:!0,type:r})};0!=l&&0!=s&&(t=p$(ph).extent([[0,0],[s-1,l]]).on("start brush end",t=>{let n=t.selection;null===n||n[0]===n[1]||(d.attr("x",parseFloat(o.attr("x"))+parseFloat(a.attr("x"))).attr("y",o.attr("y")).attr("width",o.attr("width")).attr("height",o.attr("height")).style("cursor","pointer").style("display",null),(t=>{let n=t[1]-t[0],i="0,"+n.toString(),a=Math.floor(l/e.DASH_LENGTH),r=a*e.DASH_LENGTH;for(let t=0;t<a;t++)i+=","+e.DASH_LENGTH;i+=","+(l-r),a%2==1&&(i+=",0"),i+=","+n.toString()+","+l.toString(),d.attr("stroke-dasharray",i)})(n))}).on("end.brushed",e=>{let n=e.selection;null!==n&&(i(n[0],n[1]),r.call(t.move,null),d.style("display","none"))}),r.call(t));let c=this.services.zoom.getZoomRatio();a.on("click",function(e){if(e.shiftKey){let e=this.services.domUtils.getHolder(),t=rx(r.node(),e)[0],n=t-s*c/2;n<0&&(n=0);let a=t+s*c/2;a>s&&(a=s),i(n,a)}})}}};fZ.DASH_LENGTH=4;class fX extends dW{constructor(){super(...arguments),this.type="zoom-bar",this.renderType=eY.SVG,this.MIN_SELECTION_DIFF=9e-10,this.brushSelector="g.zoom-bar-brush",this.clipId="zoomBarClip-"+Math.floor(0x174876e7ff*Math.random()),this.brush=p$(ph),this.highlightStrokeWidth=1}init(){this.services.events.addEventListener(eq.ZoomBar.UPDATE,this.render.bind(this));let e=sH(this.getOptions(),"zoomBar",eK.TOP,"data");this.model.setZoomBarData(e)}render(e=!0){let t=this.getComponentContainer({ariaLabel:"zoom bar"}),n=this.services.zoom.isZoomBarLoading(eK.TOP),i=this.services.zoom.isZoomBarLocked(eK.TOP),a=sH(this.getOptions(),"zoomBar",eK.TOP,"type"),r=sH(this.getOptions(),"axes",eK.BOTTOM,"highlights"),o=s_[a],{width:s}=h_.getSVGElementSize(this.parent,{useAttrs:!0});if(0===s)return;let l=0,c=this.model.get("axesMargins");c&&c.left&&(l=c.left);let u=h_.appendOrSelect(t,"svg.zoom-container").attr("width","100%").attr("height",o).attr("opacity",1).attr("role","presentation");if(h_.appendOrSelect(t,"rect.zoom-spacer").attr("x",0).attr("y",o).attr("width","100%").attr("height",8).attr("opacity",1).attr("fill","none"),a===eQ.GRAPH_VIEW?h_.appendOrSelect(u,"rect.zoom-bg").attr("x",l).attr("y",0).attr("width",s-l).attr("height","100%").classed("zoom-bg-skeleton",n).style("stroke",n?`url(#${this.services.domUtils.generateElementIDString("shimmer-lines")})`:null):a===eQ.SLIDER_VIEW&&h_.appendOrSelect(u,"rect.zoom-slider-bg").attr("x",l).attr("y",o/2-1).attr("width",s-l).attr("height",2).classed("zoom-slider-bg-skeleton",n).style("stroke",n?`url(#${this.services.domUtils.generateElementIDString("shimmer-lines")})`:null),n)return void this.renderSkeleton(u,l,s);let{cartesianScales:h}=this.services,p=h.getMainXScale(),d=h.getMainYScale(),f=h.getMainXScaleType();if(p&&f===e1.TIME){let e=this.services.zoom.getZoomBarData();if(function(e){if(null==e)return!0;if(nm(e)&&(tV(e)||"string"==typeof e||"function"==typeof e.splice||nT(e)||nR(e)||n$(e)))return!e.length;var t=iF(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(nb(e))return!nU(e).length;for(var n in e)if(ab.call(e,n))return!1;return!0}(e)||1===e.length)return;this.xScale=p.copy(),this.yScale=d.copy();let n=this.services.zoom.getDefaultZoomBarDomain(e);e=this.compensateDataForDefaultDomain(e,n);let c=this.model.get("initialZoomDomain"),h=sH(this.getOptions(),"zoomBar",eK.TOP,"initialZoomDomain");h&&h[0]&&h[1]&&(h[0]=new Date(h[0]),h[1]=new Date(h[1])),h&&!(c&&c[0].valueOf()===h[0].valueOf()&&c[1].valueOf()===h[1].valueOf())?this.model.set({initialZoomDomain:av([],h),zoomDomain:h?av([],h):n},{skipUpdate:!0}):null===h&&null!==c&&this.model.set({initialZoomDomain:null,zoomDomain:av([],n)},{skipUpdate:!0}),this.xScale.range([l,s]).domain(n),this.maxSelectionRange=this.xScale.range(),this.yScale.range([0,o-6]).domain(aS(e,e=>e.value));let f=this.model.get("zoomDomain");if(a===eQ.GRAPH_VIEW&&(this.renderZoomBarArea(u,"path.zoom-graph-area-unselected",e,null),this.updateClipPath(t,this.clipId,0,0,0,0),this.renderZoomBarArea(u,"path.zoom-graph-area",e,this.clipId),this.renderZoomBarBaseline(u,l,s),r)){let e=r.highlightStartMapsTo,t=r.highlightEndMapsTo,n=r.color,i=r.labelMapsTo;r.data.forEach((a,r)=>{h_.appendOrSelect(u,`rect.highlight-${r}`).attr("height",o-2*this.highlightStrokeWidth).attr("y",this.highlightStrokeWidth).attr("x",this.xScale(a[e])).attr("width",this.xScale(a[t])-this.xScale(a[e])).style("fill",n&&n.scale[a[i]]?n.scale[a[i]]:null).style("fill-opacity",.1).style("stroke",n&&n.scale[a[i]]?n.scale[a[i]]:null).style("stroke-dasharray","2, 2").attr("stroke-width","1px")})}this.addBrushEventListener(f,l,s);let g=h_.appendOrSelect(t,this.brushSelector).call(this.brush);if(void 0!==f)if(f[0].valueOf()===f[1].valueOf())g.call(this.brush.move,this.xScale.range()),this.updateBrushHandle(this.getComponentContainer(),this.xScale.range());else{let e=f.map(e=>this.xScale(e));e[1]-e[0]<this.MIN_SELECTION_DIFF||(g.call(this.brush.move,e),this.updateBrushHandle(this.getComponentContainer(),e))}i&&(this.brush.filter(()=>!1),g.selectAll("rect").attr("cursor","auto"))}}addBrushEventListener(e,t,n){let i=t=>{let n=t.selection;null===n?this.handleBrushedEvent(t,e,this.xScale,this.xScale.range()):n[0]===n[1]||this.handleBrushedEvent(t,e,this.xScale,n)},a=s_[sH(this.getOptions(),"zoomBar",eK.TOP,"type")];this.brush.extent([[t,0],[n,a]]).on("start brush end",null).on("start brush end",i)}handleBrushedEvent(e,t,n,i){let a=[n.invert(i[0]),n.invert(i[1])];if(this.updateBrushHandle(this.getComponentContainer(),i),null!=e.sourceEvent&&("mousemove"===e.sourceEvent.type||"mouseup"===e.sourceEvent.type||"mousedown"===e.sourceEvent.type||"touchstart"===e.sourceEvent.type||"touchmove"===e.sourceEvent.type||"touchend"===e.sourceEvent.type)){let n,r="manual";if(t&&t[0]&&t[1]){let e=this.services.zoom.getDefaultZoomBarDomain();r=a[0].valueOf()===e[0].valueOf()&&a[1].valueOf()===e[1].valueOf()?"reset":"manual"}(void 0===t||t[0]!==a[0]||t[1]!==a[1])&&this.services.zoom.handleDomainChange(a,{dispatchEvent:!1,type:r}),"start"===e.type?n=eq.ZoomBar.SELECTION_START:"brush"===e.type?n=eq.ZoomBar.SELECTION_IN_PROGRESS:"end"===e.type&&(n=eq.ZoomBar.SELECTION_END,this.services.events.dispatchEvent(eq.ZoomDomain.CHANGE,{newDomain:a,type:r})),this.services.events.dispatchEvent(n,{selection:i,newDomain:a})}}updateBrushHandle(e,t){let n=this,i=sH(this.getOptions(),"zoomBar",eK.TOP,"type"),a=s_[i],r=-2.5,o=i===eQ.GRAPH_VIEW?12:6,s=-.5,l=(a-o)/2;e.select(this.brushSelector).selectAll("rect.handle").data([{type:"w"},{type:"e"}]).attr("x",function(e){return"w"===e.type?Math.max(t[0]+r,n.maxSelectionRange[0]):"e"===e.type?Math.min(t[1]+r,n.maxSelectionRange[1]-5):void 0}).attr("y",0).attr("width",5).attr("height",a).attr("cursor","ew-resize").style("display",null);let c=e.select(this.brushSelector).selectAll("rect.handle-bar").data([{type:"w"},{type:"e"}]);c.enter().append("rect").attr("class",function(e){return"handle-bar handle-bar--"+e.type}),c.attr("x",function(e){return"w"===e.type?Math.max(t[0]+s,n.maxSelectionRange[0]-r+s):"e"===e.type?Math.min(t[1]+s,n.maxSelectionRange[1]+r+s):void 0}).attr("y",l).attr("width",1).attr("height",o).attr("cursor","ew-resize"),i===eQ.SLIDER_VIEW&&this.updateSliderSelectedArea(t),this.updateClipPath(e,this.clipId,t[0],0,t[1]-t[0],a)}updateSliderSelectedArea(e){let t=s_[sH(this.getOptions(),"zoomBar",eK.TOP,"type")],n=this.getComponentContainer().select("svg.zoom-container");h_.appendOrSelect(n,"rect.zoom-slider-selected-area").attr("x",e[0]).attr("y",t/2-1).attr("width",e[1]-e[0]).attr("height",2)}renderZoomBarArea(e,t,n,i){let{cartesianScales:a}=this.services,r=a.getMainXAxisPosition(),o=a.getMainYAxisPosition(),s=a.getMainXScaleType(),l=a.getMainYScaleType(),c=(e,t,n)=>i=>a.getValueFromScale(e,t,n,i),u=c(this.xScale,s,r),h=c(this.yScale,l,o),p=s_[sH(this.getOptions(),"zoomBar",eK.TOP,"type")],d=(function(e,t,n){var i=null,a=ld(!0),r=null,o=uD,s=null,l=dR(c);function c(c){var u,h,p,d,f,g=(c=lf(c)).length,m=!1,y=Array(g),b=Array(g);for(null==r&&(s=o(f=l())),u=0;u<=g;++u){if(!(u<g&&a(d=c[u],u,c))===m)if(m=!m)h=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),p=u-1;p>=h;--p)s.point(y[p],b[p]);s.lineEnd(),s.areaEnd()}m&&(y[u]=+e(d,u,c),b[u]=+t(d,u,c),s.point(i?+i(d,u,c):y[u],n?+n(d,u,c):b[u]))}if(f)return s=null,f+""||null}function u(){return dV().defined(a).curve(o).context(r)}return e="function"==typeof e?e:void 0===e?dF:ld(+e),t="function"==typeof t?t:ld(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?dj:ld(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:ld(+t),i=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:ld(+t),c):e},c.x1=function(e){return arguments.length?(i=null==e?null:"function"==typeof e?e:ld(+e),c):i},c.y=function(e){return arguments.length?(t="function"==typeof e?e:ld(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:ld(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:ld(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(i).y(t)},c.defined=function(e){return arguments.length?(a="function"==typeof e?e:ld(!!e),c):a},c.curve=function(e){return arguments.length?(o=e,null!=r&&(s=o(r)),c):o},c.context=function(e){return arguments.length?(null==e?r=s=null:s=o(r=e),c):r},c})().x(e=>u(e)).y0(p).y1(e=>p-h(e)),f=h_.appendOrSelect(e,t).datum(n).attr("d",d);i&&f.attr("clip-path",`url(#${i})`)}updateClipPath(e,t,n,i,a,r){let o=h_.appendOrSelect(e,"clipPath").attr("id",t);h_.appendOrSelect(o,"rect").attr("x",n).attr("y",i).attr("width",a).attr("height",r)}compensateDataForDefaultDomain(e,t){if(!e||e.length<2)return;let n=i4(e,5),i=this.services.cartesianScales.getDomainIdentifier(),a=this.services.cartesianScales.getRangeIdentifier();if(Number(t[0])<Number(n[0][i])){let e={};e[i]=t[0],e[a]=0,n.unshift(e)}if(Number(t[1])>Number(n[n.length-1][i])){let e={};e[i]=t[1],e[a]=0,n.push(e)}return n}renderZoomBarBaseline(e,t,n,i=!1){let a=s_[sH(this.model.getOptions(),"zoomBar",eK.TOP,"type")],r=dV()([[t,a],[n,a]]);h_.appendOrSelect(e,"path.zoom-bg-baseline").attr("d",r).classed("zoom-bg-baseline-skeleton",i).style("stroke",i?`url(#${this.services.domUtils.generateElementIDString("shimmer-lines")})`:null)}renderSkeleton(e,t,n){this.renderZoomBarArea(e,"path.zoom-graph-area-unselected",[],null),this.renderZoomBarArea(e,"path.zoom-graph-area",[],this.clipId),this.brush.on("start brush end",null),h_.appendOrSelect(this.getComponentContainer(),this.brushSelector).html(null),sH(this.getOptions(),"zoomBar",eK.TOP,"type")===eQ.GRAPH_VIEW&&this.renderZoomBarBaseline(e,t,n,!0)}destroy(){this.brush.on("start brush end",null),this.services.events.removeEventListener(eq.ZoomBar.UPDATE,this.render.bind(this))}}class fK extends dW{constructor(e,t){super(e,t),this.type="threshold",this.renderType=eY.SVG,this.positionService=new fq}render(e=!1){let t=sH(this.getOptions(),"axes"),n=[];Object.keys(t).forEach(e=>{if(Object.values(eK).includes(e)){let i=t[e];i.thresholds&&i.thresholds.length>0&&n.push({axisPosition:e,thresholds:i.thresholds,correspondingDatasets:i?.correspondingDatasets,mapsTo:i?.mapsTo})}});let i=this.getComponentContainer({ariaLabel:"threshold lines",withinChartClip:!0}).selectAll("g.axis-thresholds").data(n,e=>e.axisPosition);i.exit().attr("opacity",0).remove();let a=i.enter().append("g").merge(i);a.attr("class",e=>`axis-thresholds ${e.axisPosition}`);let r=a.selectAll("g.threshold-group").data(e=>e.thresholds.map(t=>(t.axisPosition=e.axisPosition,t.datum=this.constructDatumObj(e,t),t)));r.exit().attr("opacity",0).remove();let o=r.enter().append("g");o.append("line").attr("class","threshold-line"),o.append("rect").attr("class","threshold-hoverable-area"),o.merge(r).attr("class","threshold-group");let s=this;a.each(function({axisPosition:t}){let n=s.services.cartesianScales.getScaleByPosition(t),i=s.services.cartesianScales.getScaleTypeByPosition(t),a=null,r=null;t===eK.LEFT||t===eK.RIGHT?(r=n,a=s.services.cartesianScales.getMainXScale()):(a=n,r=s.services.cartesianScales.getMainYScale());let o=i===e1.LABELS,[l,c]=a.range(),[u,h]=r.range(),{cartesianScales:p}=s.services,[d,f]=sF(e=>p.getDomainValue(e),e=>p.getRangeValue(e),p.getOrientation()),g=lB(this);t===eK.TOP||t===eK.BOTTOM?(g.selectAll("line.threshold-line").transition().call(t=>s.services.transitions.setupTransition({transition:t,name:"threshold-line-update",animate:e})).attr("y1",h).attr("y2",u).attr("x1",({datum:e})=>d(e)+(o?n.step()/2:0)).attr("x2",({datum:e})=>d(e)+(o?n.step()/2:0)).style("stroke",({fillColor:e})=>e),g.selectAll("rect.threshold-hoverable-area").attr("x",0).attr("y",({datum:e})=>-d(e)).attr("width",Math.abs(u-h)).classed("rotate",!0)):(g.selectAll("line.threshold-line").transition().call(t=>s.services.transitions.setupTransition({transition:t,name:"threshold-line-update",animate:e})).attr("x1",l).attr("x2",c).attr("y1",({datum:e})=>f(e)+(o?n.step()/2:0)).attr("y2",({datum:e})=>f(e)+(o?n.step()/2:0)).style("stroke",({fillColor:e})=>e),g.selectAll("rect.threshold-hoverable-area").attr("x",l).attr("y",({datum:e})=>f(e)).attr("width",Math.abs(c-l)).classed("rotate",!1))}),this.services.events.addEventListener(eq.Threshold.SHOW,e=>{this.setThresholdLabelPosition(e.detail),this.label.classed("hidden",!1)}),this.services.events.addEventListener(eq.Threshold.HIDE,()=>{this.label.classed("hidden",!0)}),this.appendThresholdLabel(),this.addEventListeners()}getFormattedValue(e){let{value:t,axisPosition:n}=e,i=this.getOptions(),a=this.services.cartesianScales.getScaleTypeByPosition(n),{code:r,number:o}=sH(i,"locale");if(a===e1.TIME){let e=[eK.LEFT,eK.RIGHT].includes(n),a=this.services.cartesianScales.getMainXScale(),r=this.services.cartesianScales.getMainYScale(),o=e?r:a,s=sH(i,"timeScale"),l=ls(o.ticks(),sH(s,"timeInterval"));return lr(t,0,o.ticks(),l,s,i.locale)}return o(t,r)}appendThresholdLabel(){let e=lB(this.services.domUtils.getHolder()),t=sH(this.getOptions(),"style","prefix");this.label=h_.appendOrSelect(e,`div.cds--${t}--threshold--label`).classed("hidden",!0)}setThresholdLabelPosition({event:e,datum:t}){let n=this.services.domUtils.getHolder(),i=rx(e,n),a=t.valueFormatter?t.valueFormatter(t.value):this.getFormattedValue(t);this.label.html(fI(`${t.label||"Threshold"}: ${a}`)).style("background-color",t.fillColor);let r=this.label.node(),o=this.positionService.findBestPlacementAt({left:i[0],top:i[1]},r,[eg.RIGHT,eg.LEFT,eg.TOP,eg.BOTTOM],()=>({top:void 0,left:void 0,width:n.offsetWidth,height:n.offsetHeight})),s=this.positionService.findPositionAt({left:i[0],top:i[1]},r,o);this.positionService.setElement(r,s)}constructDatumObj(e,t){let n={};return e.correspondingDatasets&&(n.group=sH(e,"correspondingDatasets",0)),n[e.mapsTo]=t.value,n}addEventListeners(){let e=this;this.getComponentContainer({withinChartClip:!0}).selectAll("rect.threshold-hoverable-area").on("mouseover mousemove",function(t){lB(this.parentNode).select("line.threshold-line").classed("active",!0),e.services.events.dispatchEvent(eq.Threshold.SHOW,{event:t,hoveredElement:lB(this),datum:lB(this).datum()})}).on("mouseout",function(t){lB(this.parentNode).select("line.threshold-line").classed("active",!1),e.services.events.dispatchEvent(eq.Threshold.HIDE,{event:t,hoveredElement:lB(this),datum:lB(this).datum()})})}}class fQ extends dW{constructor(e,t){super(e,t),this.type="highlight",this.renderType=eY.SVG,this.positionService=new fq,this.highlightStrokeWidth=1}render(e=!1){let t=sH(this.getOptions(),"axes"),n=[];Object.keys(t).forEach(e=>{if(Object.values(eK).includes(e)){let i=t[e];i.highlights&&i.highlights.data.length>0&&n.push({axisPosition:e,highlightStartMapsTo:i.highlights.highlightStartMapsTo,highlightEndMapsTo:i.highlights.highlightEndMapsTo,labelMapsTo:i.highlights.labelMapsTo,highlight:i.highlights.data,color:i.highlights.color})}});let i=this.getComponentContainer({ariaLabel:"highlight areas",withinChartClip:!0}).selectAll("g.axis-highlight").data(n,e=>e.axisPosition);i.exit().attr("opacity",0).remove();let a=i.enter().append("g").merge(i);a.attr("class",e=>`axis-highlight ${e.axisPosition}`);let r=a.selectAll("g.highlight-group").data(e=>e.highlight.map(t=>(t.axisPosition=e.axisPosition,t.highlightStartMapsTo=e.highlightStartMapsTo,t.labelMapsTo=e.labelMapsTo,t.color=e.color,t.highlightEndMapsTo=e.highlightEndMapsTo,t)));r.exit().attr("opacity",0).remove();let o=r.enter().append("g");o.append("rect").attr("class","highlight-bar"),o.append("line").attr("class","highlight-line"),o.merge(r).attr("class","highlight-group");let s=this;a.each(function({axisPosition:t}){let n=s.services.cartesianScales.getMainXScale(),i=s.services.cartesianScales.getMainYScale(),[a,r]=n.range(),[o,l]=i.range(),{cartesianScales:c}=s.services,[u,h]=sF(e=>c.getDomainValue(e),e=>c.getRangeValue(e),c.getOrientation()),p=lB(this);t===eK.TOP||t===eK.BOTTOM?p.selectAll("rect.highlight-bar").transition().call(t=>s.services.transitions.setupTransition({transition:t,name:"highlight-bar-update",animate:e})).attr("y",Math.max(l+s.highlightStrokeWidth,0)).attr("height",Math.max(o-2*s.highlightStrokeWidth,0)).attr("x",({highlightStartMapsTo:e,...t})=>u(t[e])).attr("width",({highlightStartMapsTo:e,highlightEndMapsTo:t,...n})=>Math.max(u(n[t])-u(n[e]),0)).style("stroke",({color:e,labelMapsTo:t,...n})=>e&&e.scale[n[t]]?e.scale[n[t]]:null).style("stroke-dasharray","2, 2").attr("stroke-width",s.highlightStrokeWidth+"px").style("fill-opacity",.1).style("fill",({color:e,labelMapsTo:t,...n})=>e&&e.scale[n[t]]?e.scale[n[t]]:null):p.selectAll("rect.highlight-bar").transition().call(t=>s.services.transitions.setupTransition({transition:t,name:"highlight-bar-update",animate:e})).attr("x",a).attr("width",Math.max(r-a,0)).attr("y",({highlightEndMapsTo:e,...t})=>h(t[e])).attr("height",({highlightStartMapsTo:e,highlightEndMapsTo:t,...n})=>Math.max(h(n[e])-h(n[t]),0)).style("stroke",({color:e,labelMapsTo:t,...n})=>e&&e.scale[n[t]]?e.scale[n[t]]:null).style("stroke-dasharray","2, 2").attr("stroke-width",s.highlightStrokeWidth+"px").style("fill-opacity",.1).style("fill",({color:e,labelMapsTo:t,...n})=>e&&e.scale[n[t]]?e.scale[n[t]]:null)})}}class fJ extends fY{getItems(e){let t;if(e.detail.items)return e.detail.items;let{data:n}=e.detail;if(!n||!n.length||!n[0])return[];let i=this.getOptions(),{cartesianScales:a}=this.services,r=a.getDomainIdentifier(),o=a.isDualAxes(),{groupMapsTo:s}=i.data,l=a.getDomainLabel(),c=a.getRangeLabel(),u=n[0][r];if(1===n.length){let r=n[0],h=a.getRangeIdentifier(r);if(o){let e=a.getRangeAxisPosition({datum:r,groups:[r[s]]});c=a.getScaleLabel(e)}let p=r[h];t=[{label:l,value:u},...Array.isArray(p)&&2===p.length?[{label:"Start",value:p[0]},{label:"End",value:p[1]}]:[{label:c,value:r[h]}]],e.detail.additionalItems&&e.detail.additionalItems.forEach(e=>t.push({label:e.label,value:e.value})),t.push({label:ii(i,"locale.translations.group")||ii(i,"tooltip.groupLabel"),value:r[s],color:this.model.getFillColor(r[s]),class:this.model.getColorClassName({classNameTypes:[eX.TOOLTIP],dataGroupName:r[s]})})}else if(n.length>1&&(t=(t=[{label:l,value:u}]).concat(n.map(e=>{let t=e[a.getRangeIdentifier(e)];return{label:e[s],value:Array.isArray(t)&&2===t.length?`${t[0]} - ${t[1]}`:t,color:this.model.getFillColor(e[s]),class:this.model.getColorClassName({classNameTypes:[eX.TOOLTIP],dataGroupName:e[s]})}}).sort((e,t)=>t.value-e.value)),!o&&!0===sH(i,"tooltip","showTotal"))){let e,r=a.getRangeIdentifier(),o=sH(i,"tooltip","customTotalCalculation");e=o?o(n):n.reduce((e,t)=>e+t[r],0),t.push({label:ii(i,"tooltip.totalLabel")||ii(i,"locale.translations.total")||"Total",value:e,bold:!0})}return t}}var f0=Math.PI,f1=2*f0,f2=f1-1e-6;function f3(){this._x0=this._y0=this._x1=this._y1=null,this._=""}f3.prototype=(function(){return new f3}).prototype={constructor:f3,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,i){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(e,t,n,i,a,r){this._+="C"+ +e+","+ +t+","+ +n+","+ +i+","+(this._x1=+a)+","+(this._y1=+r)},arcTo:function(e,t,n,i,a){e*=1,t*=1,n*=1,i*=1,a*=1;var r=this._x1,o=this._y1,s=n-e,l=i-t,c=r-e,u=o-t,h=c*c+u*u;if(a<0)throw Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(h>1e-6)if(Math.abs(u*s-l*c)>1e-6&&a){var p=n-r,d=i-o,f=s*s+l*l,g=Math.sqrt(f),m=Math.sqrt(h),y=a*Math.tan((f0-Math.acos((f+h-(p*p+d*d))/(2*g*m)))/2),b=y/m,v=y/g;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*c)+","+(t+b*u)),this._+="A"+a+","+a+",0,0,"+ +(u*p>c*d)+","+(this._x1=e+v*s)+","+(this._y1=t+v*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},arc:function(e,t,n,i,a,r){e*=1,t*=1,n*=1,r=!!r;var o=n*Math.cos(i),s=n*Math.sin(i),l=e+o,c=t+s,u=1^r,h=r?i-a:a-i;if(n<0)throw Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+l+","+c),n&&(h<0&&(h=h%f1+f1),h>f2?this._+="A"+n+","+n+",0,1,"+u+","+(e-o)+","+(t-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):h>1e-6&&(this._+="A"+n+","+n+",0,"+ +(h>=f0)+","+u+","+(this._x1=e+n*Math.cos(a))+","+(this._y1=t+n*Math.sin(a))))},rect:function(e,t,n,i){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}},Array.prototype.slice;class f5 extends dW{constructor(){super(...arguments),this.type="grid",this.renderType=eY.SVG}render(e=!0){let t=sH(this.getOptions(),"grid","x","enabled"),n=sH(this.getOptions(),"grid","y","enabled");this.drawBackdrop(t,n),!(!t&&!n)&&(t&&(h_.appendOrSelect(this.backdrop,"g.x.grid"),this.drawXGrid(e)),n&&(h_.appendOrSelect(this.backdrop,"g.y.grid"),this.drawYGrid(e)))}drawXGrid(e){let t=this.parent,n=this.backdrop.attr("height"),i=h5(this.services.cartesianScales.getMainXScale()).tickSizeInner(-n).tickSizeOuter(0);if(sH(this.getOptions(),"grid","x","alignWithAxisTicks")){let e=this.services.cartesianScales.getDomainAxisPosition(),t=sH(this.getOptions(),"axes",e,"ticks","values");t&&i.tickValues(t)}else{let e=sH(this.getOptions(),"grid","x","numberOfTicks");i.ticks(e)}let a=t.select(".x.grid").attr("transform",`translate(${-this.backdrop.attr("x")}, ${n})`);e?a.transition().call(t=>this.services.transitions.setupTransition({transition:t,name:"grid-update",animate:e})).call(i):a.call(i),this.cleanGrid(a)}drawYGrid(e){let t=this.parent,n=this.backdrop.attr("width"),i=h4(this.services.cartesianScales.getMainYScale()).tickSizeInner(-n).tickSizeOuter(0);if(sH(this.getOptions(),"grid","y","alignWithAxisTicks")){let e=this.services.cartesianScales.getRangeAxisPosition(),t=sH(this.getOptions(),"axes",e,"ticks","values");t&&i.tickValues(t)}else{let e=sH(this.getOptions(),"grid","y","numberOfTicks");i.ticks(e)}let a=t.select(".y.grid").attr("transform",`translate(0, ${-this.backdrop.attr("y")})`);e?a.transition().call(t=>this.services.transitions.setupTransition({transition:t,name:"grid-update",animate:e})).call(i):a.call(i),this.cleanGrid(a)}getGridlineThreshold(e){let t,n=this.parent,i=n.selectAll(".x.grid .tick").nodes().sort((e,t)=>Number(sN(e).tx)-Number(sN(t).tx)),a=-1;if(!i.length)return;i.forEach(t=>{e[0]>=+sN(t).tx&&a++});let r=a+1<i.length?a+1:i.length,o=i[a],s=i[r];if(o)if(s)t=sN(s).tx-sN(o).tx;else{let e=n.select("rect.chart-grid-backdrop").node();t=h_.getSVGElementSize(e).width-sN(o).tx}else t=+sN(s).tx;let{threshold:l}=this.getOptions().tooltip.gridline;return t*l}getActiveGridline(e){let t=sH(this.getOptions,"tooltip","gridline","threshold")||this.getGridlineThreshold(e);return this.parent.selectAll(".x.grid .tick").filter(function(){let n=sN(this),i={min:Number(n.tx)-t,max:Number(n.tx)+t};return i.min<=e[0]&&e[0]<=i.max})}drawBackdrop(e,t){let n=this.parent,i=this.services.cartesianScales.getMainXScale(),a=this.services.cartesianScales.getMainYScale(),[r,o]=i.range(),[s,l]=a.range();this.backdrop=h_.appendOrSelect(n,"svg.chart-grid-backdrop").attr("role","presentation");let c=h_.appendOrSelect(this.backdrop,e||t?"rect.chart-grid-backdrop.stroked":"rect.chart-grid-backdrop");this.backdrop.merge(c).attr("x",r).attr("y",l).attr("width",Math.abs(o-r)).attr("height",Math.abs(s-l)).lower(),c.attr("width","100%").attr("height","100%")}cleanGrid(e){e.selectAll("text").remove(),e.select(".domain").remove()}}class f4 extends dW{constructor(){super(...arguments),this.type="line",this.renderType=eY.SVG,this.handleLegendOnHover=e=>{let{hoveredElement:t}=e.detail;this.parent.selectAll("path.line").transition("legend-hover-line").call(e=>this.services.transitions.setupTransition({transition:e,name:"legend-hover-line"})).attr("opacity",e=>e.name!==t.datum().name?sg:sm)},this.handleLegendMouseOut=()=>{this.parent.selectAll("path.line").transition("legend-mouseout-line").call(e=>this.services.transitions.setupTransition({transition:e,name:"legend-mouseout-line"})).attr("opacity",sm)}}init(){let{events:e}=this.services;e.addEventListener(eq.Legend.ITEM_HOVER,this.handleLegendOnHover),e.addEventListener(eq.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)}render(e=!0){let t=navigator.userAgent.toLowerCase().indexOf("firefox")>-1,n=void 0!==this.model.get("zoomDomain"),i=t&&n?this.getComponentContainer({ariaLabel:"lines",withinChartClip:!1}):this.getComponentContainer({ariaLabel:"lines",withinChartClip:!0}),{cartesianScales:a,curves:r}=this.services,[o,s]=sF(e=>a.getDomainValue(e),e=>a.getRangeValue(e),a.getOrientation()),l=this.getOptions(),c=dV().x(o).y(s).curve(r.getD3Curve()).defined(e=>{let t=a.getRangeIdentifier(e);return null!=e[t]}),u=[];if(this.configs.stacked){let e=Object.keys(l.axes).some(e=>l.axes[e].percentage),{groupMapsTo:t}=l.data;u=this.model.getStackedData({groups:this.configs.groups,percentage:e}).map(e=>{var n;let i=this.services.cartesianScales.getDomainIdentifier(e),a=this.services.cartesianScales.getRangeIdentifier(e);return{name:sH(e,0,t),data:e.map(e=>({[i]:e.data.sharedStackKey,[t]:e[t],[a]:e[1]})),hidden:(n=e=>e[0]!==e[1],!(tV(e)?i8:function(e,t){var n;return lp(e,function(e,i,a){return!(n=t(e,i,a))}),!!n})(e,ap(n)))}})}else u=this.model.getGroupedData(this.configs.groups);let h=i.selectAll("path.line").data(u,e=>e.name);h.exit().attr("opacity",0).remove();let p=h.enter().append("path").classed("line",!0).attr("opacity",0).merge(h).data(u,e=>e.name).attr("class",e=>this.model.getColorClassName({classNameTypes:[eX.STROKE],dataGroupName:e.name,originalClassName:"line"})).style("stroke",e=>this.model.getStrokeColor(e.name,null,e.data)).attr("role",lh.GRAPHICS_SYMBOL).attr("aria-roledescription","line").attr("aria-label",e=>{let{data:t}=e;return t.map(e=>{let t=this.services.cartesianScales.getRangeIdentifier(e);return e[t]}).join(",")});if(t&&n){let e=a.getMainXScale(),t=a.getMainYScale();if(e&&t){let[n,a]=e.range(),[r,o]=t.range();i.style("overflow","hidden").style("clip",`rect(${o}px, ${a}px, ${r}px, ${n}px)`)}}p.transition().call(t=>this.services.transitions.setupTransition({transition:t,name:"line-update-enter",animate:e})).attr("opacity",e=>+!e.hidden).attr("d",e=>{let{data:t}=e;return c(t)})}destroy(){let e=this.services.events;e.removeEventListener(eq.Legend.ITEM_HOVER,this.handleLegendOnHover),e.removeEventListener(eq.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)}}class f6 extends dW{constructor(){super(...arguments),this.type="ruler",this.renderType=eY.SVG,this.isXGridEnabled=sH(this.getOptions(),"grid","x","enabled"),this.isYGridEnabled=sH(this.getOptions(),"grid","y","enabled"),this.isEventListenerAdded=!1}render(e=!1){let t=sH(this.getOptions(),"ruler","enabled"),n=sH(this.getOptions(),"tooltip","alwaysShowRulerTooltip"),i=t||n;this.drawBackdrop(),i&&!this.isEventListenerAdded?this.addBackdropEventListeners():!i&&this.isEventListenerAdded&&this.removeBackdropEventListeners()}removeBackdropEventListeners(){this.isEventListenerAdded=!1,this.backdrop.on("mousemove mouseover mouseout",null)}formatTooltipData(e){return e}showRuler(e,[t,n]){let i=this.parent,a=this.services.cartesianScales.getOrientation(),r=this.model.getDisplayData(),[o,s]=this.services.cartesianScales.getRangeScale().range(),l=a===e0.HORIZONTAL?n:t,c=h_.appendOrSelect(i,"g.ruler").attr("aria-label","ruler"),u=h_.appendOrSelect(c,"line.ruler-line"),h=i.selectAll("[role=graphics-symbol]"),p=r.map(e=>({domainValue:this.services.cartesianScales.getDomainValue(e),originalData:e})).filter(e=>{var t;return(t=e.domainValue)>l-5&&t<l+5});if(this.pointsWithinLine&&p.length===this.pointsWithinLine.length&&p.map(e=>e.domainValue).join()===this.pointsWithinLine.map(e=>e.domainValue).join())return this.pointsWithinLine=p,this.services.events.dispatchEvent(eq.Tooltip.MOVE,{mousePosition:[t,n]});this.pointsWithinLine=p;let d=this.pointsWithinLine.reduce((e,t)=>{if(0===e.length)return e.push(t),e;let n=e[0].domainValue,i=Math.abs(l-t.domainValue),a=Math.abs(l-n);return i>a||(i<a?e=[t]:e.push(t)),e},[]);if(d.length>0){let i=d.map(e=>e.originalData).filter(e=>{let t=this.services.cartesianScales.getRangeIdentifier(e);return null!=e[t]}),r=d.map(e=>e.domainValue),l=h.filter(e=>{let t=this.services.cartesianScales.getDomainValue(e);return r.includes(t)});this.elementsToHighlight&&this.elementsToHighlight.size()>0&&!ac(this.elementsToHighlight,l)&&this.hideRuler(),l.dispatch("mouseover"),this.elementsToHighlight=l,this.services.events.dispatchEvent(eq.Tooltip.SHOW,{event:e,mousePosition:[t,n],hoveredElement:u,data:this.formatTooltipData(i)}),c.attr("opacity",1);let p=d[0];"horizontal"===a?u.attr("x1",s).attr("x2",o).attr("y1",p.domainValue).attr("y2",p.domainValue):u.attr("y1",s).attr("y2",o).attr("x1",p.domainValue).attr("x2",p.domainValue)}else this.hideRuler()}hideRuler(){let e=this.parent,t=h_.appendOrSelect(e,"g.ruler");e.selectAll("[role=graphics-symbol]").dispatch("mouseout"),this.services.events.dispatchEvent(eq.Tooltip.HIDE),t.attr("opacity",0)}addBackdropEventListeners(){this.isEventListenerAdded=!0;let e=this,t=this.services.domUtils.getHolder(),n=this.model.getDisplayData(),i=function(t){let n=rx(t,e.parent.node());e.showRuler(t,n)};if(n.length>100){var a;let r,o=n.length%50*12.5;a=function(t){let{mousePosition:n}=this;e.showRuler(t,n)},r=null,i=function(...e){let n=this;n.mousePosition=rx(e[0],t),clearTimeout(r),r=setTimeout(function(){a.apply(n,e)},o)}}this.backdrop.on("mousemove mouseover",i).on("mouseout",this.hideRuler.bind(this))}drawBackdrop(){let e=this.parent;this.backdrop=h_.appendOrSelect(e,"svg.chart-grid-backdrop")}}let f8=class extends dW{constructor(){super(...arguments),this.type="scatter",this.renderType=eY.SVG,this.handleChartHolderOnHover=()=>{if(!this.parent)throw Error("Parent not defined");this.parent.selectAll("circle.dot").transition("chart-holder-hover-scatter").call(e=>this.services.transitions?.setupTransition({transition:e,name:"chart-holder-hover-scatter"})).attr("opacity",1)},this.handleChartHolderOnMouseOut=()=>{if(!this.parent)throw Error("Parent not defined");this.parent.selectAll("circle.dot").transition("chart-holder-mouseout-scatter").call(e=>this.services.transitions?.setupTransition({transition:e,name:"chart-holder-mouseout-scatter"})).attr("opacity",0)},this.handleLegendOnHover=e=>{let{hoveredElement:t}=e.detail,{groupMapsTo:n}=this.getOptions().data;if(!this.parent)throw Error("Parent not defined");this.parent.selectAll("circle.dot").transition("legend-hover-scatter").call(e=>this.services.transitions?.setupTransition({transition:e,name:"legend-hover-scatter"})).attr("opacity",e=>e[n]!==t.datum().name?.3:1)},this.handleLegendMouseOut=()=>{if(!this.parent)throw Error("Parent not defined");this.parent.selectAll("circle.dot").transition("legend-mouseout-scatter").call(e=>this.services.transitions?.setupTransition({transition:e,name:"legend-mouseout-scatter"})).attr("opacity",1)}}init(){let{events:e}=this.services;if(!e)throw Error("Services events are undefined.");e.addEventListener(eq.Legend.ITEM_HOVER,this.handleLegendOnHover),e.addEventListener(eq.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut);let{fadeInOnChartHolderMouseover:t}=this.configs;t&&(e.addEventListener(eq.Chart.MOUSEOVER,this.handleChartHolderOnHover),e.addEventListener(eq.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut))}filterBasedOnZoomDomain(e){let{cartesianScales:t}=this.services;if(!t)throw Error("Services cartesianScales are undefined.");let n=t.getDomainIdentifier(e),i=this.model.get("zoomDomain");return void 0!==i?e.filter(e=>e[n].getTime()>=i[0].getTime()&&e[n].getTime()<=i[1].getTime()):e}getScatterData(){let e,t=this.getOptions(),{stacked:n}=this.configs;if(n){let n=Object.keys(t.axes).some(e=>t.axes[e].percentage);e=this.model.getStackedData({groups:this.configs.groups,percentage:n})}else{let{cartesianScales:t}=this.services;if(!t)throw Error("Services cartesianScales are undefined.");e=this.model.getDisplayData(this.configs.groups).filter(e=>{let n=t.getRangeIdentifier(e);return void 0!==e[n]&&null!==e[n]})}return this.filterBasedOnZoomDomain(e)}render(e){if(!(sH(this.getOptions(),"points","enabled")||sH(this.getOptions(),"bubble","enabled")))return;let t=this.services.zoom?.isZoomBarEnabled()||!1,n=this.getComponentContainer({ariaLabel:"scatter points",withinChartClip:t}),{groupMapsTo:i}=this.getOptions().data,{cartesianScales:a}=this.services;if(!a)throw Error("Services cartesianScales are undefined.");let r=a.getDomainIdentifier(),o=n.selectAll("circle.dot").data(this.getScatterData(),e=>`${e[i]}-${e[r]}`);o.exit().attr("opacity",0).remove();let s=o.enter().append("circle").classed("dot",!0).attr("opacity",0).merge(o);this.styleCircles(s,e),this.addEventListeners()}isDatapointThresholdAnomaly(e){let{handleThresholds:t}=this.configs;if(!t)return!1;let{cartesianScales:n}=this.services;if(!n)throw Error("Cartesian scales service is undefined");let i=n.getOrientation(),[a,r]=sF(n.getHighestDomainThreshold(),n.getHighestRangeThreshold(),i),[o,s]=sF(e=>n.getDomainValue(e),e=>n.getRangeValue(e),i),l=o(e),c=s(e);return r&&a?c<=r.scaleValue&&l>=a.scaleValue:r?c<=r.scaleValue:!!a&&l>=a.scaleValue}styleCircles(e,t){let n=this.getOptions(),{filled:i,fillOpacity:a}=n.points,{cartesianScales:r}=this.services;if(!r)throw Error("Cartesian scales service is undefined");let{groupMapsTo:o}=n.data,[s,l]=sF(e=>r.getDomainValue(e),e=>r.getRangeValue(e),r.getOrientation()),{fadeInOnChartHolderMouseover:c}=this.configs;e.raise().classed("dot",!0).attr("class",e=>{let t=r.getDomainIdentifier(e),n=this.model.getIsFilled(e[o],e[t],e,i)?[eX.FILL,eX.STROKE]:[eX.STROKE];return this.model.getColorClassName({classNameTypes:n,dataGroupName:e[o],originalClassName:"dot"})||""}).classed("threshold-anomaly",e=>this.isDatapointThresholdAnomaly(e)).classed("filled",e=>{let t=r.getDomainIdentifier(e);return this.model.getIsFilled(e[o],e[t],e,i)}).classed("unfilled",e=>{let t=r.getDomainIdentifier(e);return!this.model.getIsFilled(e[o],e[t],e,i)}).transition().call(e=>this.services.transitions?.setupTransition({transition:e,name:"scatter-update-enter",animate:t})).attr("cx",s).attr("cy",l).attr("r",n.points.radius).style("fill",e=>{let t=r.getDomainIdentifier(e);if(this.model.getIsFilled(e[o],e[t],e,i))return this.model.getFillColor(e[o],e[t],e)}).style("stroke",e=>{let t=r.getDomainIdentifier(e);return this.model.getStrokeColor(e[o],e[t],e)}).attr("fill-opacity",i?a:1).attr("opacity",+!c).attr("role",lh.GRAPHICS_SYMBOL).attr("aria-roledescription","point").attr("aria-label",e=>{let t=r.getRangeIdentifier(e);return e[t]}),this.addEventListeners()}getTooltipAdditionalItems(e){return null}addEventListeners(){let e=this,{groupMapsTo:t}=e.getOptions().data,n=sH(this.getOptions(),"tooltip","alwaysShowRulerTooltip");if(!this.parent)throw Error("Parent not defined");let i=this.parent.selectAll("circle");n?i.style("pointer-events","none"):i.style("pointer-events",null),i.on("mouseover",function(i,a){let r=lB(this);r.classed("hovered",!0).attr("class",n=>e.model.getColorClassName({classNameTypes:[eX.FILL],dataGroupName:n[t],originalClassName:r.attr("class")})).style("fill",n=>{let i=e.services.cartesianScales?.getDomainIdentifier(n);return e.model.getFillColor(n[t],n[i],n)}).classed("unfilled",!1),n||e.services.events?.dispatchEvent(eq.Tooltip.SHOW,{event:i,hoveredElement:r,data:[a],additionalItems:e.getTooltipAdditionalItems(a)}),e.services.events?.dispatchEvent(eq.Scatter.SCATTER_MOUSEOVER,{event:i,element:r,datum:a})}).on("mousemove",function(t,n){let i=lB(this);e.services.events?.dispatchEvent(eq.Scatter.SCATTER_MOUSEMOVE,{event:t,element:i,datum:n}),e.services.events?.dispatchEvent(eq.Tooltip.MOVE,{event:t})}).on("click",function(t,n){e.services.events?.dispatchEvent(eq.Scatter.SCATTER_CLICK,{event:t,element:lB(this),datum:n})}).on("mouseout",function(n,i){let a=lB(this);if(a.classed("hovered",!1),!e.configs.filled){let{filled:n}=e.getOptions().points,r=e.services.cartesianScales?.getDomainIdentifier(i),o=e.model.getIsFilled(i[t],i[r],i,n);a.classed("unfilled",!o).style("fill",i=>o||n?e.model.getFillColor(i[t],i[r],i):null)}e.services.events?.dispatchEvent(eq.Scatter.SCATTER_MOUSEOUT,{event:n,element:a,datum:i}),e.services.events?.dispatchEvent(eq.Tooltip.HIDE,{hoveredElement:a})})}destroy(){this.parent?.selectAll("circle").on("mousemove",null).on("mouseout",null);let{events:e}=this.services;if(!e)throw Error("Services events undefined");e.removeEventListener(eq.Legend.ITEM_HOVER,this.handleLegendOnHover),e.removeEventListener(eq.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),e.removeEventListener(eq.Chart.MOUSEOVER,this.handleChartHolderOnHover),e.removeEventListener(eq.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut)}};class f7 extends dW{constructor(e,t,n){super(e,t,n),this.type="axes",this.renderType=eY.SVG,this.truncation={[eK.LEFT]:!1,[eK.RIGHT]:!1,[eK.TOP]:!1,[eK.BOTTOM]:!1},n&&(this.configs=n),this.margins=this.configs.margins}render(e=!0){let t,n,i,a,r,{position:o}=this.configs,s=this.getOptions(),l=sH(s,"axes",o,"visible"),c=this.getComponentContainer({ariaLabel:"axes"}),{width:u,height:h}=h_.getSVGElementSize(c,{useAttrs:!0}),p=h_.appendOrSelect(c,`g.axis.${o}`);if(o===eK.BOTTOM||o===eK.TOP?(t=this.configs.axes[eK.LEFT]?this.margins.left:0,n=this.configs.axes[eK.RIGHT]?u-this.margins.right:u):(t=h-this.margins.bottom,n=this.margins.top),!this.services.cartesianScales)throw Error("Services cartesianScales undefined");let d=this.services.cartesianScales.getScaleByPosition(o);switch(this.scaleType===e1.LABELS||this.scaleType===e1.LABELS_RATIO?d.rangeRound([t,n]):d.range([t,n]),o){case eK.LEFT:i=h4;break;case eK.BOTTOM:i=h5;break;case eK.RIGHT:i=h3;break;case eK.TOP:i=h2}p.attr("aria-label",`${o} axis`);let f=!p.select("g.ticks").empty(),g=h_.appendOrSelect(p,"g.ticks");f||(g.attr("role",`${lh.GRAPHICS_OBJECT} ${lh.GROUP}`),g.attr("aria-label",`${o} ticks`));let m=h_.appendOrSelect(p,"g.ticks.invisible").style("opacity","0").style("pointer-events","none").attr("aria-hidden",!0).attr("aria-label",`invisible ${o} ticks`),y=sH(s,"axes",o),b=this.scaleType===e1.TIME||y.scaleType===e1.TIME,v=o===eK.LEFT||o===eK.RIGHT,_=this.model.get("zoomDomain");if(_&&b&&!v&&d.domain(_),!l)return void g.attr("aria-hidden",!0);let x=sH(y,"scaleType"),w=sH(s,"data","loading"),$=sH(y,"ticks","number"),E=sH(y,"ticks","values"),A=sH(y,"truncation","type"),k=sH(y,"truncation","threshold"),T=sH(y,"truncation","numCharacter"),M=null!==$,S=sH(s,"timeScale"),O=h_.appendOrSelect(m,"g.tick"),C=h_.appendOrSelect(O,"text").text("0"),D=h_.getSVGElementSize(C.node(),{useBBox:!0}).height;O.remove();let z=this.scaleType||y.scaleType||e1.LINEAR,L=i(d).tickSizeOuter(0);if(d.ticks){let e;if(M?e=$:(e=ss,v&&(e=this.getNumberOfFittingTicks(h,D,sl))),1===d.ticks().length&&0===d.ticks()[0]&&(e=0),L.ticks(e),b)if(d.ticks(e).length){let t=sH(s,"timeScale","addSpaceOnEdges"),n=sH(s,"axes",o,"domain"),i=d.copy();t&&!n&&i.nice(e);let a=i.ticks(e);t&&a.length>2&&!n&&(a.splice(a.length-1,1),a.splice(0,1)),L.tickValues(a)}else L.tickValues([])}let R=sH(y,"ticks","formatter"),{code:I,number:N}=sH(s,"locale");if(b){let e=ls(L.tickValues(),sH(s,"timeScale","timeInterval"));a=null===R?(t,n)=>lr(t,n,L.tickValues(),e,S,s.locale):(t,n)=>{let i=lr(t,n,L.tickValues(),e,S,s.locale);return R(t,n,i)}}else null===R?z===e1.LINEAR&&(a=e=>N(e,I)):a=R;L.tickFormat(a);let[P,B]=this.services.cartesianScales.getScaleByPosition(o).domain();if(E){if(b)E.forEach((e,t)=>{void 0===e.getTime&&(E[t]=new Date(e))}),r=E.filter(e=>{let t=e.getTime();return t>=new Date(P).getTime()&&t<=new Date(B).getTime()});else if(x===e1.LABELS){let e=this.services.cartesianScales.getScaleByPosition(o).domain();r=E.filter(t=>e.includes(t))}else r=E.filter(e=>e>=P&&e<=B);L.tickValues(r)}switch(o){case eK.LEFT:g.attr("transform",`translate(${this.margins.left}, 0)`);break;case eK.BOTTOM:g.attr("transform",`translate(0, ${h-this.margins.bottom})`);break;case eK.RIGHT:g.attr("transform",`translate(${u-this.margins.right}, 0)`);break;case eK.TOP:g.attr("transform",`translate(0, ${this.margins.top})`)}let H=this.model.isDataEmpty();if(y.title){let e,t=h_.appendOrSelect(p,"text.axis-title").html(H||w?"":fI(y.title)),n=sH(y,"titleOrientation");switch(o){case eK.LEFT:n===tc.RIGHT?t.attr("transform","rotate(90)").attr("y",0).attr("x",d.range()[0]/2).attr("dy","-0.5em").style("text-anchor","middle"):t.attr("transform","rotate(-90)").attr("y",0).attr("x",-(d.range()[0]/2)).attr("dy","0.75em").style("text-anchor","middle");break;case eK.BOTTOM:let i=h-4;t.attr("transform",`translate(${this.margins.left/2+d.range()[1]/2}, ${i})`);break;case eK.RIGHT:n===tc.LEFT?t.attr("transform","rotate(-90)").attr("y",u).attr("x",-(d.range()[0]/2)).style("text-anchor","middle"):t.attr("transform","rotate(90)").attr("y",-u).attr("x",d.range()[0]/2).attr("dy","0.75em").style("text-anchor","middle");break;case eK.TOP:e=h_.getSVGElementSize(t,{useBBox:!0}).height,t.attr("transform",`translate(${this.margins.left/2+d.range()[1]/2}, ${e/2})`).style("text-anchor","middle")}}if(b){let t=ls(L.tickValues(),sH(s,"timeScale","timeInterval")),n=S.showDayName,i=g;e&&(g=g.transition().call(t=>this.services.transitions.setupTransition({transition:t,name:"axis-update",animate:e}))),g=g.call(L),i.selectAll(".tick").data(L.tickValues(),d).order().select("text").attr("class",(e,i)=>la(e,i,L.tickValues(),t,n)?"tick-label--primary":"tick-label")}else g=e&&f?g.transition().call(t=>this.services.transitions.setupTransition({transition:t,name:"axis-update",animate:e})).call(L):g.call(L);if(m.call(L),o===eK.BOTTOM||o===eK.TOP){let e=!1,t=sH(y,"ticks","rotation");if(t===to.ALWAYS)e=!0;else if(t===to.NEVER)e=!1;else if(!t||t===to.AUTO)if(d.step)e=m.selectAll("g.tick text").nodes().some(e=>h_.getSVGElementSize(e,{useBBox:!0}).width>=d.step());else{let t;e=!1;let n=m.append("text").text("A"),i=h_.getSVGElementSize(n.node(),{useBBox:!0}).width;m.selectAll("g.tick").each(function(){let n=lB(this),a=parseFloat(sH(sN(this),"tx"));null!==a&&t+n.text().length*i*.8>=a&&(e=!0),t=a}),n.remove()}e?(M||(L.ticks(this.getNumberOfFittingTicks(u,D,sc)),m.call(L),g.call(L)),p.selectAll("g.ticks g.tick text").attr("transform","rotate(-45)").attr("text-anchor",o===eK.TOP?"start":"end")):p.selectAll("g.ticks g.tick text").attr("transform",null).attr("text-anchor",null)}if(w?p.attr("opacity",0):p.attr("opacity",1),g.selectAll("g.tick").attr("aria-label",e=>e),m.selectAll("g.tick").attr("aria-label",e=>e),A!==eJ.NONE&&x===e1.LABELS&&!E){let e=this.services.cartesianScales.getScaleDomain(o);if(e.length>0){let t=c.select(`g.axis.${o} g.ticks g.tick`).html();p.selectAll("g.ticks g.tick").html(t);let n=this;p.selectAll("g.tick text").data(e).text(function(e){return e.length>k?(n.truncation[o]=!0,sP(e,A,T)):e}),this.getInvisibleAxisRef().selectAll("g.tick text").data(e).text(function(e){return e.length>k?sP(e,A,T):e}),p.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()),p.selectAll("g.tick text").data(e)}}this.addEventListeners()}addEventListeners(){let e=this.getComponentContainer(),{position:t}=this.configs,n=h_.appendOrSelect(e,`g.axis.${t}`),i=sH(this.getOptions(),"axes",t),a=sH(i,"scaleType"),r=sH(i,"truncation","threshold"),o=this;n.selectAll("g.tick text").on("mouseover",function(e,t){o.services.events.dispatchEvent(eq.Axis.LABEL_MOUSEOVER,{event:e,element:lB(this),datum:t}),a===e1.LABELS&&t.length>r&&o.services.events.dispatchEvent(eq.Tooltip.SHOW,{event:e,hoveredElement:lB(this),content:t})}).on("mousemove",function(e,t){o.services.events.dispatchEvent(eq.Axis.LABEL_MOUSEMOVE,{event:e,element:lB(this),datum:t}),a===e1.LABELS&&t.length>r&&o.services.events.dispatchEvent(eq.Tooltip.MOVE,{event:e})}).on("click",function(e,t){o.services.events.dispatchEvent(eq.Axis.LABEL_CLICK,{event:e,element:lB(this),datum:t})}).on("mouseout",function(e,t){o.services.events.dispatchEvent(eq.Axis.LABEL_MOUSEOUT,{event:e,element:lB(this),datum:t}),a===e1.LABELS&&o.services.events.dispatchEvent(eq.Tooltip.HIDE)})}getInvisibleAxisRef(){let{position:e}=this.configs;return this.getComponentContainer().select(`g.axis.${e} g.ticks.invisible`)}getTitleRef(){let{position:e}=this.configs;return this.getComponentContainer().select(`g.axis.${e} text.axis-title`)}getNumberOfFittingTicks(e,t,n){var i,a,r,o,s,l;return i=Math.floor(e/(t*n)),a=2,void 0===(r=ss)&&(r=a,a=void 0),void 0!==r&&(r=(r=lR(r))==r?r:0),void 0!==a&&(a=(a=lR(a))==a?a:0),o=lR(i),s=a,l=r,o==o&&(void 0!==l&&(o=o<=l?o:l),void 0!==s&&(o=o>=s?o:s)),o}destroy(){let e=this.getComponentContainer(),{position:t}=this.configs;h_.appendOrSelect(e,`g.axis.${t}`).selectAll("g.tick text").on("mouseover",null).on("mousemove",null).on("mouseout",null)}}class f9 extends f7{constructor(e,t,n){super(e,t,n)}render(e=!0){super.render(e),super.destroy();let t=this.configs.position,n=this.getComponentContainer({ariaLabel:"axes"}),i=h_.appendOrSelect(n,`g.axis.${t}`),a=this;i.selectAll("g.tick").each(function(e,n){let i=lB(this);i.classed("tick-hover",!0).attr("tabindex",0===n?0:-1);let r=i.select("text"),{width:o,height:s}=h_.getSVGElementSize(r,{useBBox:!0}),l=h_.appendOrSelect(i,"rect.axis-holder"),c=0,u=0;switch(t){case eK.LEFT:c=-o+Number(r.attr("x")),u=-(s/2);break;case eK.RIGHT:c=Math.abs(Number(r.attr("x"))),u=-(s/2);break;case eK.TOP:c=-(o/2),u=-s+Number(r.attr("y"))/2,a.truncation[t]&&(c=0,l.attr("transform","rotate(-45)"));break;case eK.BOTTOM:c=-(o/2),u=s/2-2,a.truncation[t]&&(c=-o,l.attr("transform","rotate(-45)"))}l.attr("x",c-sh).attr("y",u).attr("width",o+2*sh).attr("height",s).lower()}),this.addEventListeners()}addEventListeners(){let e=this.getComponentContainer(),{position:t}=this.configs,n=h_.appendOrSelect(e,`g.axis.${t}`),i=sH(this.getOptions(),"axes",t),a=sH(i,"scaleType"),r=sH(i,"truncation","threshold"),o=this;n.selectAll("g.tick.tick-hover").on("mouseover",function(e){let t=lB(this).select("text"),n=t.datum();o.services.events.dispatchEvent(eq.Axis.LABEL_MOUSEOVER,{event:e,element:t,datum:n}),a===e1.LABELS&&n.length>r&&o.services.events.dispatchEvent(eq.Tooltip.SHOW,{event:e,element:t,datum:n})}).on("mousemove",function(e){let t=lB(this).select("text"),n=t.datum();o.services.events.dispatchEvent(eq.Axis.LABEL_MOUSEMOVE,{event:e,element:t,datum:n}),o.services.events.dispatchEvent(eq.Tooltip.MOVE,{event:e})}).on("click",function(e){o.services.events.dispatchEvent(eq.Axis.LABEL_CLICK,{event:e,element:lB(this).select("text"),datum:lB(this).select("text").datum()})}).on("mouseout",function(e){o.services.events.dispatchEvent(eq.Axis.LABEL_MOUSEOUT,{event:e,element:lB(this).select("text"),datum:lB(this).select("text").datum()}),a===e1.LABELS&&o.services.events.dispatchEvent(eq.Tooltip.HIDE)}).on("focus",function(e){let t={clientX:0,clientY:0};if(e.target){e.target.focus();let n=e.target.getBoundingClientRect();t.clientX=n.x,t.clientY=n.y}o.services.events.dispatchEvent(eq.Axis.LABEL_FOCUS,{event:{...e,...t},element:lB(this),datum:lB(this).select("text").datum()})}).on("blur",function(e){o.services.events.dispatchEvent(eq.Axis.LABEL_BLUR,{event:e,element:lB(this),datum:lB(this).select("text").datum()})}).on("keydown",function(e){e.key&&"Escape"===e.key&&(o.services.events.dispatchEvent(eq.Tooltip.HIDE),o.services.events.dispatchEvent(eq.Axis.LABEL_BLUR,{event:e,element:lB(this),datum:lB(this).select("text").datum()})),t===eK.LEFT||t===eK.RIGHT?e.key&&"ArrowUp"===e.key?o.goNext(this,e):e.key&&"ArrowDown"===e.key&&o.goPrevious(this,e):e.key&&"ArrowLeft"===e.key?o.goPrevious(this,e):e.key&&"ArrowRight"===e.key&&o.goNext(this,e)})}goNext(e,t){e.nextElementSibling&&"path"!==e.nextElementSibling.tagName&&e.nextElementSibling.dispatchEvent(new Event("focus")),t.preventDefault()}goPrevious(e,t){e.previousElementSibling&&"path"!==e.previousElementSibling.tagName&&e.previousElementSibling.dispatchEvent(new Event("focus")),t.preventDefault()}destroy(){let e=this.getComponentContainer(),{position:t}=this.configs;h_.appendOrSelect(e,`g.axis.${t}`).selectAll("g.tick.tick-hover").on("mouseover",null).on("mousemove",null).on("mouseout",null).on("focus",null).on("blur",null)}}class ge extends dW{constructor(){super(...arguments),this.type="2D-axes",this.renderType=eY.SVG,this.children={},this.thresholds=[],this.margins={top:0,right:0,bottom:0,left:0}}render(e=!1){let t={},n=Object.keys(eK),i=sH(this.getOptions(),"axes");n.forEach(e=>{i[eK[e]]&&(t[eK[e]]=!0)}),this.configs.axes=t,n.forEach(e=>{let t=eK[e];if(this.configs.axes[t]&&!this.children[t]){let e={position:t,axes:this.configs.axes,margins:this.margins},n=this.model.axisFlavor===td.DEFAULT?new f7(this.model,this.services,e):new f9(this.model,this.services,e);n.setModel(this.model),n.setServices(this.services),n.setParent(this.parent),this.children[t]=n}}),Object.keys(this.children).forEach(t=>{this.children[t].render(e)});let a={};Object.keys(this.children).forEach(e=>{let t=this.children[e],n=t.configs.position,i=t.getInvisibleAxisRef(),{width:r,height:o}=h_.getSVGElementSize(i,{useBBox:!0}),s=0;if(!t.getTitleRef().empty()){let e=h_.getSVGElementSize(t.getTitleRef(),{useBBox:!0}).height;s=n===eK.LEFT||n===eK.RIGHT?e+5:n===eK.BOTTOM?e+4:e}switch(n){case eK.TOP:a.top=o+s;break;case eK.BOTTOM:a.bottom=o+s;break;case eK.LEFT:a.left=r+s;break;case eK.RIGHT:a.right=r+s}}),this.services.events.dispatchEvent(eq.Axis.RENDER_COMPLETE),Object.keys(a).some(e=>this.margins[e]!==a[e])&&(this.margins=Object.assign(this.margins,a),this.model.set({axesMargins:this.margins},{skipUpdate:!0}),this.services.events.dispatchEvent(eq.ZoomBar.UPDATE),Object.keys(this.children).forEach(e=>{this.children[e].margins=this.margins}),this.render(!0))}}class gt extends dW{constructor(){super(...arguments),this.type="skeleton"}render(e=!0){let t=sH(this.getOptions(),"data","loading");t?this.renderSkeleton(t):this.removeSkeleton()}renderSkeleton(e){if(this.configs.skeleton===te.GRID)this.renderGridSkeleton(e);else if(this.configs.skeleton===te.VERT_OR_HORIZ)this.renderVertOrHorizSkeleton(e);else if(this.configs.skeleton===te.PIE)this.renderPieSkeleton(e);else if(this.configs.skeleton===te.DONUT)this.renderDonutSkeleton(e);else throw Error(`"${this.configs.skeleton}" is not a valid Skeleton type.`)}renderGridSkeleton(e){this.setScales(),this.drawBackdrop(e),this.drawXGrid(e),this.drawYGrid(e),e&&this.setShimmerEffect("shimmer-lines")}renderVertOrHorizSkeleton(e){let t=this.services.cartesianScales.getOrientation();this.setScales(),this.drawBackdrop(e),t===e0.VERTICAL&&this.drawYGrid(e),t===e0.HORIZONTAL&&this.drawXGrid(e),this.setShimmerEffect("shimmer-lines")}renderPieSkeleton(e){let t=this.computeOuterRadius();this.drawRing(t,0,e),e&&this.setShimmerEffect("shimmer-areas")}renderDonutSkeleton(e){let t=this.computeOuterRadius(),n=this.computeInnerRadius();this.drawRing(t,n,e),e&&this.setShimmerEffect("shimmer-areas")}setScales(){let e=this.services.cartesianScales.getMainXScale().range(),t=this.services.cartesianScales.getMainYScale().range();this.xScale=sr().domain([0,1]).range(e),this.yScale=sr().domain([0,1]).range(t)}drawBackdrop(e){let t=this.parent,{width:n,height:i}=h_.getSVGElementSize(t,{useAttrs:!0});this.backdrop=h_.appendOrSelect(t,"svg.chart-skeleton.DAII").attr("role","presentation").attr("width",n).attr("height",i);let a=h_.appendOrSelect(this.backdrop,"rect.chart-skeleton-backdrop");a.attr("width","100%").attr("height","100%");let[r]=this.xScale.range(),[,o]=this.yScale.range();this.backdrop.merge(a).attr("x",r).attr("y",o),a.classed("shimmer-effect-lines",e).classed("empty-state-lines",!e).style("stroke",e?`url(#${this.services.domUtils.generateElementIDString("shimmer-lines")})`:null)}drawXGrid(e){let t=+this.backdrop.attr("width"),n=sH(this.getOptions(),"grid","x","numberOfTicks"),i=this.xScale.ticks(n).map(e=>e*t),a=h_.appendOrSelect(this.backdrop,"g.x.skeleton"),r=a.selectAll("line").data(i);r.enter().append("line").merge(r).attr("x1",e=>e).attr("x2",e=>e).attr("y1",0).attr("y2","100%"),a.selectAll("line").classed("shimmer-effect-lines",e).classed("empty-state-lines",!e).style("stroke",e?`url(#${this.services.domUtils.generateElementIDString("shimmer-lines")})`:null)}drawYGrid(e){let t=+this.backdrop.attr("height"),n=this.backdrop.attr("width"),i=sH(this.getOptions(),"grid","y","numberOfTicks"),a=this.xScale.ticks(i).map(e=>e*t),r=h_.appendOrSelect(this.backdrop,"g.y.skeleton"),o=r.selectAll("line").data(a);o.enter().append("line").merge(o).attr("x1",0).attr("x2",n).attr("y1",e=>e).attr("y2",e=>e),r.selectAll("line").classed("shimmer-effect-lines",e).classed("empty-state-lines",!e).style("stroke",e?`url(#${this.services.domUtils.generateElementIDString("shimmer-lines")})`:null)}drawRing(e,t,n=!0){let i=this.parent,{width:a,height:r}=h_.getSVGElementSize(i,{useAttrs:!0}),o=h_.appendOrSelect(i,"svg.chart-skeleton").attr("width",a).attr("height",r).attr("role","presentation"),s=sH(this.getOptions(),0===t?"pie":"donut","alignment");h_.appendOrSelect(o,"rect.chart-skeleton-area-container").attr("width",a).attr("height",r).attr("fill","none");let l=(function(){var e=dI,t=dN,n=ld(0),i=null,a=dP,r=dB,o=dH,s=null,l=dR(c);function c(){var c,u,h=+e.apply(this,arguments),p=+t.apply(this,arguments),d=a.apply(this,arguments)-uM,f=r.apply(this,arguments)-uM,g=u_(f-d),m=f>d;if(s||(s=c=l()),p<h&&(u=p,p=h,h=u),p>1e-12)if(g>uS-1e-12)s.moveTo(p*uw(d),p*uA(d)),s.arc(0,0,p,d,f,!m),h>1e-12&&(s.moveTo(h*uw(f),h*uA(f)),s.arc(0,0,h,f,d,m));else{var y,b,v=d,_=f,x=d,w=f,$=g,E=g,A=o.apply(this,arguments)/2,k=A>1e-12&&(i?+i.apply(this,arguments):uk(h*h+p*p)),T=uE(u_(p-h)/2,+n.apply(this,arguments)),M=T,S=T;if(k>1e-12){var O=uO(k/h*uA(A)),C=uO(k/p*uA(A));($-=2*O)>1e-12?(O*=m?1:-1,x+=O,w-=O):($=0,x=w=(d+f)/2),(E-=2*C)>1e-12?(C*=m?1:-1,v+=C,_-=C):(E=0,v=_=(d+f)/2)}var D=p*uw(v),z=p*uA(v),L=h*uw(w),R=h*uA(w);if(T>1e-12){var I,N=p*uw(_),P=p*uA(_),B=h*uw(x),H=h*uA(x);if(g<uT)if(I=function(e,t,n,i,a,r,o,s){var l=n-e,c=i-t,u=o-a,h=s-r,p=h*l-u*c;if(!(p*p<1e-12))return p=(u*(t-r)-h*(e-a))/p,[e+p*l,t+p*c]}(D,z,B,H,N,P,L,R)){var U,F=D-I[0],j=z-I[1],V=N-I[0],G=P-I[1],W=1/uA(((U=(F*V+j*G)/(uk(F*F+j*j)*uk(V*V+G*G)))>1?0:U<-1?uT:Math.acos(U))/2),q=uk(I[0]*I[0]+I[1]*I[1]);M=uE(T,(h-q)/(W-1)),S=uE(T,(p-q)/(W+1))}else M=S=0}E>1e-12?S>1e-12?(y=dU(B,H,D,z,p,S,m),b=dU(N,P,L,R,p,S,m),s.moveTo(y.cx+y.x01,y.cy+y.y01),S<T?s.arc(y.cx,y.cy,S,ux(y.y01,y.x01),ux(b.y01,b.x01),!m):(s.arc(y.cx,y.cy,S,ux(y.y01,y.x01),ux(y.y11,y.x11),!m),s.arc(0,0,p,ux(y.cy+y.y11,y.cx+y.x11),ux(b.cy+b.y11,b.cx+b.x11),!m),s.arc(b.cx,b.cy,S,ux(b.y11,b.x11),ux(b.y01,b.x01),!m))):(s.moveTo(D,z),s.arc(0,0,p,v,_,!m)):s.moveTo(D,z),h>1e-12&&$>1e-12?M>1e-12?(y=dU(L,R,N,P,h,-M,m),b=dU(D,z,B,H,h,-M,m),s.lineTo(y.cx+y.x01,y.cy+y.y01),M<T?s.arc(y.cx,y.cy,M,ux(y.y01,y.x01),ux(b.y01,b.x01),!m):(s.arc(y.cx,y.cy,M,ux(y.y01,y.x01),ux(y.y11,y.x11),!m),s.arc(0,0,h,ux(y.cy+y.y11,y.cx+y.x11),ux(b.cy+b.y11,b.cx+b.x11),m),s.arc(b.cx,b.cy,M,ux(b.y11,b.x11),ux(b.y01,b.x01),!m))):s.arc(0,0,h,w,x,m):s.lineTo(L,R)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,i=(+a.apply(this,arguments)+ +r.apply(this,arguments))/2-uT/2;return[uw(i)*n,uA(i)*n]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:ld(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:ld(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:ld(+e),c):n},c.padRadius=function(e){return arguments.length?(i=null==e?null:"function"==typeof e?e:ld(+e),c):i},c.startAngle=function(e){return arguments.length?(a="function"==typeof e?e:ld(+e),c):a},c.endAngle=function(e){return arguments.length?(r="function"==typeof e?e:ld(+e),c):r},c.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:ld(+e),c):o},c.context=function(e){return arguments.length?(s=e??null,c):s},c})().innerRadius(t).outerRadius(e).startAngle(0).endAngle(2*Math.PI),c=e+Math.abs(-15),u=e+(Math.min(a,r)-2*e)/2,h=h_.appendOrSelect(o,"path").attr("class","skeleton-area-shape").attr("transform",`translate(${c}, ${u})`).attr("d",l).classed("shimmer-effect-areas",n).classed("empty-state-areas",!n).style("fill",n?`url(#${this.services.domUtils.generateElementIDString("shimmer-areas")})`:null),p=e+30;s===e3.CENTER?p=a/2:s===e3.RIGHT&&(p=a-e-30);let d=e+20;h.attr("transform",`translate(${p}, ${d})`)}computeOuterRadius(){let{width:e,height:t}=h_.getSVGElementSize(this.parent,{useAttrs:!0});return Math.min(e,t)/2+-15}computeInnerRadius(){return this.computeOuterRadius()*(3/4)}setShimmerEffect(e){let t="stop-bg-shimmer",n=this.parent.select(".chart-skeleton"),{width:i}=h_.getSVGElementSize(this.parent,{useAttrs:!0}),a=h_.appendOrSelect(n,"defs").lower(),r=h_.appendOrSelect(a,"linearGradient").attr("id",this.services.domUtils.generateElementIDString(e)).attr("class",e).attr("x1",0-3*.2*i).attr("x2",i).attr("y1",0).attr("y2",0).attr("gradientUnits","userSpaceOnUse").attr("gradientTransform","translate(0, 0)"),o=`
63
+ <stop class="${t}" offset="0"></stop>
64
+ <stop class="stop-shimmer" offset="0.2"></stop>
65
+ <stop class="${t}" offset="0.4"></stop>
66
+ `;r.html(o),function e(){r.attr("gradientTransform",`translate(${0-3*.2*i}, 0)`).transition().duration(2e3).delay(1e3).ease(h7).attr("gradientTransform",`translate(${i+3*.2*i}, 0)`).on("end",e)}()}removeSkeleton(){this.parent.select(".chart-skeleton").remove()}}class gn extends dW{constructor(){super(...arguments),this.type="zero-line",this.renderType=eY.SVG}render(e){let t=this.services.cartesianScales.getRangeAxisPosition({groups:this.configs.groups}),n=this.services.cartesianScales.getScaleByPosition(t),[i,a]=n.domain(),r=this.getComponentContainer({isPresentational:!0});if(!(i>0&&a<0||i<0&&a>0))return void r.selectAll("line.domain").remove();let[o,s]=this.services.cartesianScales.getDomainScale().range(),l=+n(0)+.5;l||(l=n.range()[0]);let c=sU({x0:o,x1:s,y0:l,y1:l},this.services.cartesianScales.getOrientation());h_.appendOrSelect(r,"line.domain").transition().call(t=>this.services.transitions.setupTransition({transition:t,name:"zero-line-update",animate:e})).attr("y1",c.y0).attr("y2",c.y1).attr("x1",c.x0).attr("x2",c.x1)}}class gi extends gt{constructor(){super(...arguments),this.type="skeleton-lines"}render(e=!0){let t=sH(this.getOptions(),"data","loading"),n=!sH(this.getOptions(),"grid","x","enabled")&&!sH(this.getOptions(),"grid","y","enabled")&&!sH(this.getOptions(),"axes","bottom","visible")&&!sH(this.getOptions(),"axes","left","visible");t&&!n?super.renderGridSkeleton(t):t&&n?this.renderSparklineSkeleton(t):this.removeSkeleton()}renderSparklineSkeleton(e){this.setScales(),this.drawBackdrop(e),this.drawSparkline(e),this.updateBackdropStyle(),e&&this.setShimmerEffect("shimmer-lines")}drawSparkline(e){let t=this.backdrop.attr("width"),n=h_.appendOrSelect(this.backdrop,"g.y.skeleton"),i=n.selectAll("line").data([100]);i.enter().append("line").merge(i).attr("x1",0).attr("x2",t).attr("y1",e=>e).attr("y2",e=>e),n.selectAll("line").classed("shimmer-effect-lines",e).classed("empty-state-lines",!e).style("stroke",e?`url(#${this.services.domUtils.generateElementIDString("shimmer-lines")})`:null)}updateBackdropStyle(){let e=this.parent;this.backdrop=h_.appendOrSelect(e,"svg.chart-skeleton.DAII").attr("role","presentation"),h_.appendOrSelect(this.backdrop,"rect.chart-skeleton-backdrop").classed("shimmer-effect-lines",!1).classed("shimmer-effect-sparkline",!0).style("stroke",null)}}var ga={value:function(){}};function gr(){for(var e,t=0,n=arguments.length,i={};t<n;++t){if(!(e=arguments[t]+"")||e in i||/[\s.]/.test(e))throw Error("illegal type: "+e);i[e]=[]}return new go(i)}function go(e){this._=e}function gs(e,t,n){for(var i=0,a=e.length;i<a;++i)if(e[i].name===t){e[i]=ga,e=e.slice(0,i).concat(e.slice(i+1));break}return null!=n&&e.push({name:t,value:n}),e}go.prototype=gr.prototype={constructor:go,on:function(e,t){var n,i=this._,a=(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&&!i.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),r=-1,o=a.length;if(arguments.length<2){for(;++r<o;)if((n=(e=a[r]).type)&&(n=function(e,t){for(var n,i=0,a=e.length;i<a;++i)if((n=e[i]).name===t)return n.value}(i[n],e.name)))return n;return}if(null!=t&&"function"!=typeof t)throw Error("invalid callback: "+t);for(;++r<o;)if(n=(e=a[r]).type)i[n]=gs(i[n],e.name,t);else if(null==t)for(n in i)i[n]=gs(i[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new go(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,i,a=Array(n),r=0;r<n;++r)a[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(i=this._[e],r=0,n=i.length;r<n;++r)i[r].value.apply(t,a)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(var i=this._[e],a=0,r=i.length;a<r;++a)i[a].value.apply(t,n)}};let gl=function(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}),n}(Object.freeze(Object.defineProperty({__proto__:null,dispatch:gr},Symbol.toStringTag,{value:"Module"})));function gc(e){return(null==e?0:e.length)?is(e,1):[]}function gu(e,t,n){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var r=Array(a);++i<a;)r[i]=e[i+t];return r}function gh(e){return id(e)?void 0:e}!function(){if(!em){em=1;gl.dispatch}}();var gp=nn(nd(ed=function(e,t){var n={};if(null==e)return n;var i=!1;t=tj(t,function(t){return t=n9(t,e),i||(i=t.length>1),t}),nh(e,iM(e),n),i&&(n=i4(n,7,gh));for(var a=t.length;a--;)!function(e,t){var n,i;t=n9(t,e),n=e,null==(e=(i=t).length<2?n:it(n,gu(i,0,-1)))||delete e[ie(ay(t))]}(n,t[a]);return n},void 0,gc),ed+"");function gd(e){return Math.log(e)}function gf(e){return Math.exp(e)}function gg(e){return-Math.log(-e)}function gm(e){return-Math.exp(-e)}function gy(e){return isFinite(e)?+("1e"+e):e<0?0:e}function gb(e){return(t,n)=>-e(-t,n)}function gv(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function g_(e){this._context=e}function gx(e){return new g_(e)}function gw(e){this._context=e}function g$(e){return new gw(e)}function gE(e){this._context=e}function gA(e){return new gE(e)}function gk(e,t){this._basis=new g_(e),this._beta=t}g_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:gv(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:gv(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},gw.prototype={areaStart:uz,areaEnd:uz,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:gv(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},gE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:gv(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},gk.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var i,a=e[0],r=t[0],o=e[n]-a,s=t[n]-r,l=-1;++l<=n;)i=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(a+i*o),this._beta*t[l]+(1-this._beta)*(r+i*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};let gT=function e(t){function n(e){return 1===t?new g_(e):new gk(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function gM(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function gS(e,t){this._context=e,this._k=(1-t)/6}gS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:gM(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:gM(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let gO=function e(t){function n(e){return new gS(e,t)}return n.tension=function(t){return e(+t)},n}(0);function gC(e,t){this._context=e,this._k=(1-t)/6}gC.prototype={areaStart:uz,areaEnd:uz,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:gM(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let gD=function e(t){function n(e){return new gC(e,t)}return n.tension=function(t){return e(+t)},n}(0);function gz(e,t){this._context=e,this._k=(1-t)/6}gz.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:gM(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let gL=function e(t){function n(e){return new gz(e,t)}return n.tension=function(t){return e(+t)},n}(0);function gR(e,t,n){var i=e._x1,a=e._y1,r=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,a=(a*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>1e-12){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);r=(r*c+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(i,a,r,o,e._x2,e._y2)}function gI(e,t){this._context=e,this._alpha=t}gI.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e*=1,t*=1,this._point){var n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:gR(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let gN=function e(t){function n(e){return t?new gI(e,t):new gS(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function gP(e,t){this._context=e,this._alpha=t}gP.prototype={areaStart:uz,areaEnd:uz,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e*=1,t*=1,this._point){var n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:gR(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let gB=function e(t){function n(e){return t?new gP(e,t):new gC(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function gH(e,t){this._context=e,this._alpha=t}gH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e*=1,t*=1,this._point){var n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:gR(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};let gU=function e(t){function n(e){return t?new gH(e,t):new gz(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function gF(e,t,n){var i=e._x1-e._x0,a=t-e._x1,r=(e._y1-e._y0)/(i||a<0&&-0),o=(n-e._y1)/(a||i<0&&-0);return((r<0?-1:1)+(o<0?-1:1))*Math.min(Math.abs(r),Math.abs(o),.5*Math.abs((r*a+o*i)/(i+a)))||0}function gj(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function gV(e,t,n){var i=e._x0,a=e._y0,r=e._x1,o=e._y1,s=(r-i)/3;e._context.bezierCurveTo(i+s,a+s*t,r-s,o-s*n,r,o)}function gG(e){this._context=e}function gW(e){this._context=new gq(e)}function gq(e){this._context=e}function gY(e){return new gG(e)}function gZ(e){return new gW(e)}function gX(e){this._context=e}function gK(e){var t,n,i=e.length-1,a=Array(i),r=Array(i),o=Array(i);for(a[0]=0,r[0]=2,o[0]=e[0]+2*e[1],t=1;t<i-1;++t)a[t]=1,r[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[i-1]=2,r[i-1]=7,o[i-1]=8*e[i-1]+e[i],t=1;t<i;++t)n=a[t]/r[t-1],r[t]-=n,o[t]-=n*o[t-1];for(a[i-1]=o[i-1]/r[i-1],t=i-2;t>=0;--t)a[t]=(o[t]-a[t+1])/r[t];for(r[i-1]=(e[i]+a[i-1])/2,t=0;t<i-1;++t)r[t]=2*e[t+1]-a[t+1];return[a,r]}function gQ(e){return new gX(e)}function gJ(e,t){this._context=e,this._t=t}function g0(e){return new gJ(e,.5)}function g1(e){return new gJ(e,0)}function g2(e){return new gJ(e,1)}gG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:gV(this,this._t0,gj(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t*=1,(e*=1)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,gV(this,gj(this,n=gF(this,e,t)),n);break;default:gV(this,this._t0,n=gF(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(gW.prototype=Object.create(gG.prototype)).point=function(e,t){gG.prototype.point.call(this,t,e)},gq.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,i,a,r){this._context.bezierCurveTo(t,e,i,n,r,a)}},gX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var i=gK(e),a=gK(t),r=0,o=1;o<n;++r,++o)this._context.bezierCurveTo(i[0][r],a[0][r],i[1][r],a[1][r],e[o],t[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},gJ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e*=1,t*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};class g3 extends hv{zoomIn(e,t,n){let i,a,r,o=n||sp;e&&(i=e.x,a=e.y,r=2);let{width:s,height:l}=h_.getSVGElementSize(this.services.domUtils.getHolder(),{useClientDimensions:!0});t.transition().duration(o.duration).ease(o.ease).attr("transform",`translate(${s/2}, ${l/2}) scale(${r}) translate(${-i},${-a})`),this.services.events.dispatchEvent(eq.CanvasZoom.CANVAS_ZOOM_IN,{element:lB(e)})}zoomOut(e,t){let n=t||sp;e.transition().duration(n.duration).ease(n.ease).attr("transform",""),this.services.events.dispatchEvent(eq.CanvasZoom.CANVAS_ZOOM_OUT)}}class g5 extends hv{init(){this.documentFragment=document.createDocumentFragment()}addEventListener(e,t){this.documentFragment.addEventListener(e,t)}removeEventListener(e,t){this.documentFragment.removeEventListener(e,t)}dispatchEvent(e,t){let n;t?n=new CustomEvent(e,{detail:t}):(n=document.createEvent("Event")).initEvent(e,!1,!0),this.documentFragment.dispatchEvent(n)}}class g4 extends hv{constructor(e,t){super(e,t)}downloadCSV(e,t){let n=document.createElement("a"),i="text/csv;encoding:utf-8";if(navigator.msSaveBlob)navigator.msSaveBlob(new Blob([e],{type:i}),t);else if(URL&&"download"in n){let a=URL.createObjectURL(new Blob([e],{type:i}));n.href=a,n.setAttribute("download",t),document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(a)}else location.href=`data:application/octet-stream,${encodeURIComponent(e)}`}downloadImage(e,t){let n=document.createElement("a");n.download=t,n.href=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)}}class g6 extends hv{constructor(){super(...arguments),this.pendingTransitions={}}init(){this.services.events?.addEventListener(eq.Model.UPDATE,()=>{this.pendingTransitions={}})}setupTransition({transition:e,name:t,animate:n}){return this.pendingTransitions[e._id]=e,e.on("end interrupt cancel",()=>{delete this.pendingTransitions[e._id]}),!1===this.model.getOptions().animations||!1===n?e.duration(0):e.duration(sH(sv,t,"duration")||sv.default.duration)}getPendingTransitions(){return this.pendingTransitions}}function g8(e,t){let n=t$(e)-t$(t);return n<0?-1:n>0?1:n}function g7(e,t,n){let i=t$(e,n?.in);if(isNaN(t))return t_(e,NaN);if(!t)return i;let a=i.getDate(),r=t_(e,i.getTime());return r.setMonth(i.getMonth()+t+1,0),a>=r.getDate()?r:(i.setFullYear(r.getFullYear(),r.getMonth(),a),i)}function g9(e,t){let n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function me(e,t,n){let i=t$(e,n?.in);return isNaN(t)?t_(e,NaN):(t&&i.setDate(i.getDate()+t),i)}function mt(e){return e=>{let t=(0,Math.trunc)(e);return 0===t?0:t}}function mn(e,t,n){var i;return i=36e5*t,t_(e,+t$(e)+i)}function mi(e,t,n){let i=(t$(e)-t$(t))/6e4;return mt()(i)}function ma(e,t,n){let i=t$(e,n?.in);return i.setTime(i.getTime()+6e4*t),i}function mr(e,t,n){let i=(t$(e)-t$(t))/1e3;return mt()(i)}function mo(e,t,n){var i;return i=1e3*t,t_(e,+t$(e)+i)}class ms extends hv{constructor(){super(...arguments),this.scaleTypes={top:null,right:null,bottom:null,left:null},this.scales={top:null,right:null,bottom:null,left:null}}getDomainAxisPosition({datum:e=null}={}){if(this.dualAxes&&e){let t=this.model.getOptions(),{groupMapsTo:n}=t.data,i=sH(t,"axes",this.secondaryDomainAxisPosition),a=e[n];if(i?.correspondingDatasets&&i.correspondingDatasets.includes(a))return this.secondaryDomainAxisPosition}return this.domainAxisPosition}getRangeAxisPosition({datum:e=null,groups:t=null}={}){if(this.dualAxes){let n,i=this.model.getOptions(),{groupMapsTo:a}=i.data,r=sH(i,"axes",this.secondaryRangeAxisPosition);if(null!==e?n=e[a]:t&&t.length>0&&(n=t[0]),r?.correspondingDatasets&&r.correspondingDatasets.includes(n))return this.secondaryRangeAxisPosition}return this.rangeAxisPosition}getAxisOptions(e){return sH(this.model.getOptions(),"axes",e)}getDomainAxisOptions(){let e=this.getDomainAxisPosition();return this.getAxisOptions(e)}getRangeAxisOptions(){let e=this.getRangeAxisPosition();return this.getAxisOptions(e)}getScaleLabel(e){return this.getAxisOptions(e).title||(e===eK.BOTTOM||e===eK.TOP?"x-value":"y-value")}getDomainLabel(){return this.getScaleLabel(this.getDomainAxisPosition())}getRangeLabel(){return this.getScaleLabel(this.getRangeAxisPosition())}update(){this.determineAxisDuality(),this.findDomainAndRangeAxes(),this.determineOrientation(),Object.keys(eK).map(e=>eK[e]).forEach(e=>{this.scales[e]=this.createScale(e)})}findDomainAndRangeAxes(){let e=this.findVerticalAxesPositions(),t=this.findHorizontalAxesPositions(),n=this.findDomainAndRangeAxesPositions(e,t);this.domainAxisPosition=n.primaryDomainAxisPosition,this.rangeAxisPosition=n.primaryRangeAxisPosition,this.isDualAxes()&&(this.secondaryDomainAxisPosition=n.secondaryDomainAxisPosition,this.secondaryRangeAxisPosition=n.secondaryRangeAxisPosition)}determineOrientation(){(this.rangeAxisPosition===eK.LEFT||this.rangeAxisPosition===eK.RIGHT)&&(this.domainAxisPosition===eK.BOTTOM||this.domainAxisPosition===eK.TOP)?this.orientation=e0.VERTICAL:this.orientation=e0.HORIZONTAL}isDualAxes(){return this.dualAxes}determineAxisDuality(){let e=sH(this.model.getOptions(),"axes");(e[eK.LEFT]?.correspondingDatasets&&e[eK.RIGHT]||e[eK.RIGHT]?.correspondingDatasets&&e[eK.LEFT]||e[eK.TOP]?.correspondingDatasets&&e[eK.BOTTOM]||e[eK.BOTTOM]?.correspondingDatasets&&e[eK.TOP])&&(this.dualAxes=!0)}getCustomDomainValuesByposition(e){let t=sH(this.model.getOptions(),"axes",e,"domain");if(t&&!Array.isArray(t))throw Error(`Domain in ${e} axis is not a valid array`);if(Array.isArray(t)&&(this.scaleTypes[e]===e1.LINEAR||this.scaleTypes[e]===e1.TIME)&&2!==t.length)throw Error(`There can only be 2 elements in domain for scale type: ${this.scaleTypes[e]}`);return t}getOrientation(){return this.orientation}getScaleByPosition(e){return this.scales[e]}getScaleTypeByPosition(e){return this.scaleTypes[e]}getDomainAxisScaleType(){let e=this.getDomainAxisPosition();return this.getScaleTypeByPosition(e)}getRangeAxisScaleType(){let e=this.getRangeAxisPosition();return this.getScaleTypeByPosition(e)}getDomainScale(){return this.scales[this.domainAxisPosition]}getRangeScale(){return this.scales[this.rangeAxisPosition]}getMainXAxisPosition(){let e=[eK.BOTTOM,eK.TOP];return[this.domainAxisPosition,this.rangeAxisPosition].find(t=>e.indexOf(t)>-1)}getMainYAxisPosition(){let e=[eK.LEFT,eK.RIGHT];return[this.domainAxisPosition,this.rangeAxisPosition].find(t=>e.indexOf(t)>-1)}getMainXScale(){return this.scales[this.getMainXAxisPosition()]}getMainYScale(){return this.scales[this.getMainYAxisPosition()]}getValueFromScale(e,t,n,i){let a,{mapsTo:r}=sH(this.model.getOptions(),"axes")[n],o=null!==sH(i,r)?i[r]:i;switch(t){case e1.LABELS:a=e(o)+e.step()/2;break;case e1.TIME:a=e(new Date(o));break;default:a=e(o)}return a}getBoundedScaledValues(e){let{bounds:t}=this.model.getOptions(),n=this.getRangeAxisPosition({datum:e}),i=this.scales[n],{mapsTo:a}=sH(this.model.getOptions(),"axes")[n],r=void 0!==e[a]?e[a]:e;return[i(null!==sH(e,t.upperBoundMapsTo)?e[t.upperBoundMapsTo]:r),i(null!==sH(e,t.lowerBoundMapsTo)?e[t.lowerBoundMapsTo]:r)]}getValueThroughAxisPosition(e,t){let n=this.scaleTypes[e],i=this.scales[e];return this.getValueFromScale(i,n,e,t)}getDomainValue(e){let t=this.getDomainAxisPosition({datum:e});return this.getValueThroughAxisPosition(t,e)}getRangeValue(e){let t=this.getRangeAxisPosition({datum:e});return this.getValueThroughAxisPosition(t,e)}getMainXScaleType(){return this.getScaleTypeByPosition(this.getMainXAxisPosition())}getMainYScaleType(){return this.getScaleTypeByPosition(this.getMainYAxisPosition())}getDomainIdentifier(e){return sH(this.model.getOptions(),"axes",this.getDomainAxisPosition({datum:e}),"mapsTo")}getRangeIdentifier(e){return sH(this.model.getOptions(),"axes",this.getRangeAxisPosition({datum:e}),"mapsTo")}extendsDomain(e,t){var n,i;let a,r,o=this.model.getOptions(),s=sH(o,"axes",e);return s.scaleType===e1.TIME?(n=t,i=sH(o,"timeScale","addSpaceOnEdges"),a=new Date(n[0]),function(e,t){let[n,i]=tx(void 0,e,t),a=g8(n,i),r=Math.abs(function(e,t){let[n,i]=tx(void 0,e,t);return n.getFullYear()-i.getFullYear()}(n,i));n.setFullYear(1584),i.setFullYear(1584);let o=g8(n,i)===-a,s=a*(r-o);return 0===s?0:s}(r=new Date(n[1]),a)>1?[g7(a,-(12*i),void 0),g7(r,12*i,void 0)]:function(e,t){var n,i;let a,r,o,s,[l,c,u]=tx(void 0,e,e,t),h=g8(c,u),p=Math.abs(function(e,t){let[n,i]=tx(void 0,e,t);return 12*(n.getFullYear()-i.getFullYear())+(n.getMonth()-i.getMonth())}(c,u));if(p<1)return 0;1===c.getMonth()&&c.getDate()>27&&c.setDate(30),c.setMonth(c.getMonth()-h*p);let d=g8(c,u)===-h;+(a=t$(l,void 0),n=void 0,(r=t$(a,n?.in)).setHours(23,59,59,999),r)==+(i=void 0,s=(o=t$(a,i?.in)).getMonth(),o.setFullYear(o.getFullYear(),s+1,0),o.setHours(23,59,59,999),o)&&1===p&&1===g8(l,u)&&(d=!1);let f=h*(p-d);return 0===f?0:f}(r,a)>1?[g7(a,-i,void 0),g7(r,i)]:function(e,t){let[n,i]=tx(void 0,e,t),a=g9(n,i),r=Math.abs(sG(n,i));n.setDate(n.getDate()-a*r);let o=+(g9(n,i)===-a),s=a*(r-o);return 0===s?0:s}(r,a)>1?[me(a,-i,void 0),me(r,i)]:function(e,t){let[n,i]=tx(void 0,e,t);return mt()((n-i)/36e5)}(r,a)>1?[mn(a,-i),mn(r,i)]:mi(r,a)>30?[ma(a,-(30*i),void 0),ma(r,30*i)]:mi(r,a)>1?[ma(a,-i,void 0),ma(r,i)]:mr(r,a)>15?[mo(a,-(15*i)),mo(r,15*i)]:mr(r,a)>1?[mo(a,-i),mo(r,i)]:[a,r]):function([e,t],n){let i=(t-e)*.1,a=e>=0&&e-i<0?0:e-i;if(n===e1.LOG&&a<=0){if(e<=0)throw Error("Data must have values greater than 0 if log scale type is used.");a=e}return[a,t<=0&&t+i>0?0:t+i]}(t,s.scaleType)}findVerticalAxesPositions(){let e=sH(this.model.getOptions(),"axes"),t=this.isDualAxes();return null===sH(e,eK.LEFT)&&null!==sH(e,eK.RIGHT)||!0===sH(e,eK.RIGHT,"main")||t&&sH(e,eK.LEFT,"correspondingDatasets")?{primary:eK.RIGHT,secondary:eK.LEFT}:{primary:eK.LEFT,secondary:eK.RIGHT}}findHorizontalAxesPositions(){let e=sH(this.model.getOptions(),"axes"),t=this.isDualAxes();return null===sH(e,eK.BOTTOM)&&null!==sH(e,eK.TOP)||!0===sH(e,eK.TOP,"main")||t&&sH(e,eK.BOTTOM,"correspondingDatasets")?{primary:eK.TOP,secondary:eK.BOTTOM}:{primary:eK.BOTTOM,secondary:eK.TOP}}findDomainAndRangeAxesPositions(e,t){let n=this.model.getOptions(),i=sH(n,"axes",e.primary),a=sH(n,"axes",t.primary),r=i.scaleType||e1.LINEAR,o=a.scaleType||e1.LINEAR,s={primaryDomainAxisPosition:null,secondaryDomainAxisPosition:null,primaryRangeAxisPosition:null,secondaryRangeAxisPosition:null};return s.primaryDomainAxisPosition=t.primary,s.primaryRangeAxisPosition=e.primary,s.secondaryDomainAxisPosition=t.secondary,s.secondaryRangeAxisPosition=e.secondary,(o!==e1.LABELS&&o!==e1.TIME&&r===e1.LABELS||r===e1.TIME)&&(s.primaryDomainAxisPosition=e.primary,s.primaryRangeAxisPosition=t.primary,s.secondaryDomainAxisPosition=e.secondary,s.secondaryRangeAxisPosition=t.secondary),s}getScaleDomain(e){let t,n,i=this.model.getOptions(),a=sH(i,"axes",e),r=sH(i,"bounds"),{includeZero:o}=a,s=sH(a,"scaleType")||e1.LINEAR;if(this.model.isDataEmpty())return[];if(a.binned){let{bins:e}=this.model.getBinConfigurations();return[0,function(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let i=-1;for(let a of e)null!=(a=t(a,++i,e))&&(n<a||void 0===n&&a>=a)&&(n=a)}return n}(e,e=>e.length)]}if(a.limitDomainToBins){let{bins:e}=this.model.getBinConfigurations(),t=this.model.getStackKeys({bins:e});return[t[0].split(":")[0],t[t.length-1].split(":")[1]]}let l=this.model.getDisplayData(),{extendLinearDomainBy:c,mapsTo:u,percentage:h,thresholds:p}=a,{reference:d,compareTo:f}=su;if(a.domain)return s===e1.LABELS?a.domain:(s===e1.TIME&&(a.domain=a.domain.map(e=>void 0===e.getTime?new Date(e):e)),this.extendsDomain(e,a.domain));if(h)return[0,100];if(a&&s===e1.LABELS)return a$(l.map(e=>e[u]));let g=this.model.getDataGroupNames();if(s===e1.LABELS_RATIO)return l.map(e=>`${e[d]}/${e[f]}`);if(s===e1.TIME)n=l.map(e=>+new Date(e[u]));else if(r&&i.axes)n=[],l.forEach(e=>{n.push(e[u]),e[r.upperBoundMapsTo]&&n.push(e[r.upperBoundMapsTo]),e[r.lowerBoundMapsTo]&&n.push(e[r.lowerBoundMapsTo])});else if(!0===a.stacked&&g&&e===this.getRangeAxisPosition()){let{groupMapsTo:e}=i.data,t=this.model.getDataValuesGroupedByKeys({groups:g}),a=l.filter(t=>!g.includes(t[e])),r=[];t.forEach(e=>{let{...t}=e,n=0,i=0;Object.values(gp(t,"sharedStackKey")).forEach(e=>{isNaN(e)||(e<0?i+=e:n+=e)}),r.push([i,n])}),n=[...gc(r),...a.map(e=>e[u])]}else n=[],l.forEach(e=>{let t=e[u];Array.isArray(t)&&2===t.length?(n.push(t[0]),n.push(t[1])):(c&&n.push(Math.max(e[u],e[c])),n.push(t))});return s!==e1.TIME&&s!==e1.LOG&&o&&n.push(0),p&&p.length>0&&p.forEach(e=>{let t=sH(e,"value");null!==t&&n.push(t)}),t=aS(n),t=this.extendsDomain(e,t)}createScale(e){let t,n=sH(this.model.getOptions(),"axes",e);if(!n)return null;let i=sH(n,"scaleType")||e1.LINEAR;return this.scaleTypes[e]=i,(t=i===e1.TIME?uv():i===e1.LOG?(function e(){let t=(function(e){let t=e(gd,gf),n=t.domain,i=10,a,r;function o(){var o,s;return a=(o=i)===Math.E?Math.log:10===o&&Math.log10||2===o&&Math.log2||(o=Math.log(o),e=>Math.log(e)/o),r=10===(s=i)?gy:s===Math.E?Math.exp:e=>Math.pow(s,e),n()[0]<0?(a=gb(a),r=gb(r),e(gg,gm)):e(gd,gf),t}return t.base=function(e){return arguments.length?(i=+e,o()):i},t.domain=function(e){return arguments.length?(n(e),o()):n()},t.ticks=e=>{let t=n(),o=t[0],s=t[t.length-1],l=s<o;l&&([o,s]=[s,o]);let c=a(o),u=a(s),h,p,d=null==e?10:+e,f=[];if(!(i%1)&&u-c<d){if(c=Math.floor(c),u=Math.ceil(u),o>0){for(;c<=u;++c)for(h=1;h<i;++h)if(!((p=c<0?h/r(-c):h*r(c))<o)){if(p>s)break;f.push(p)}}else for(;c<=u;++c)for(h=i-1;h>=1;--h)if(!((p=c>0?h/r(-c):h*r(c))<o)){if(p>s)break;f.push(p)}2*f.length<d&&(f=aN(o,s,d))}else f=aN(c,u,Math.min(u-c,d)).map(r);return l?f.reverse():f},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=oK(n)).precision||(n.trim=!0),n=pF(n)),e===1/0)return n;let o=Math.max(1,i*e/t.ticks().length);return e=>{let t=e/r(Math.round(a(e)));return t*i<i-.5&&(t*=i),t<=o?n(e):""}},t.nice=()=>n(lH(n(),{floor:e=>r(Math.floor(a(e))),ceil:e=>r(Math.ceil(a(e)))})),t})(sa()).domain([1,10]);return t.copy=()=>si(t,e()).base(t.base()),o5.apply(t,arguments),t})().base(n.base||10):i===e1.LABELS||i===e1.LABELS_RATIO?function e(){var t,n,i=o6().unknown(void 0),a=i.domain,r=i.range,o=0,s=1,l=!1,c=0,u=0,h=.5;function p(){var e=a().length,i=s<o,p=i?s:o,d=i?o:s;t=(d-p)/Math.max(1,e-c+2*u),l&&(t=Math.floor(t)),p+=(d-p-t*(e-c))*h,n=t*(1-c),l&&(p=Math.round(p),n=Math.round(n));var f=(function(e,t,n){e*=1,t*=1,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var i=-1,a=0|Math.max(0,Math.ceil((t-e)/n)),r=Array(a);++i<a;)r[i]=e+i*n;return r})(e).map(function(e){return p+t*e});return r(i?f.reverse():f)}return delete i.unknown,i.domain=function(e){return arguments.length?(a(e),p()):a()},i.range=function(e){return arguments.length?([o,s]=e,o*=1,s*=1,p()):[o,s]},i.rangeRound=function(e){return[o,s]=e,o*=1,s*=1,l=!0,p()},i.bandwidth=function(){return n},i.step=function(){return t},i.round=function(e){return arguments.length?(l=!!e,p()):l},i.padding=function(e){return arguments.length?(c=Math.min(1,u=+e),p()):c},i.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),p()):c},i.paddingOuter=function(e){return arguments.length?(u=+e,p()):u},i.align=function(e){return arguments.length?(h=Math.max(0,Math.min(1,e)),p()):h},i.copy=function(){return e(a(),[o,s]).round(l).paddingInner(c).paddingOuter(u).align(h)},o5.apply(p(),arguments)}():sr()).domain(this.getScaleDomain(e)),t}getDomainLowerBound(e){let t,n=0;return t=this.getOrientation()===e0.VERTICAL?this.getMainYScale().domain():this.getMainXScale().domain(),!1===sH(this.model.getOptions(),"axes",e,"includeZero")&&t[0]>0&&t[1]>0&&(n=t[0]),n}getHighestDomainThreshold(){let e=sH(this.model.getOptions(),"axes"),t=this.getDomainAxisPosition(),{thresholds:n}=e[t];if(!Array.isArray(n)||Array.isArray(n)&&!n.length)return null;let i=this.getDomainScale(),a=n.sort((e,t)=>t.value-e.value)[0];return this.getScaleTypeByPosition(t)===e1.TIME&&("string"==typeof a.value||void 0===a.value.getTime)&&(a.value=new Date(a.value)),{threshold:a,scaleValue:i(a.value)}}getHighestRangeThreshold(){let{thresholds:e}=sH(this.model.getOptions(),"axes")[this.getRangeAxisPosition()];if(!Array.isArray(e)||Array.isArray(e)&&!e.length)return null;let t=this.getRangeScale(),n=e.sort((e,t)=>t.value-e.value)[0];return{threshold:n,scaleValue:t(n.value)}}}class ml extends hv{constructor(){super(...arguments),this.curveTypes={curveLinear:uD,curveLinearClosed:uR,curveBasis:gx,curveBasisClosed:g$,curveBasisOpen:gA,curveBundle:gT,curveCardinal:gO,curveCardinalClosed:gD,curveCardinalOpen:gL,curveCatmullRom:gN,curveCatmullRomClosed:gB,curveCatmullRomOpen:gU,curveMonotoneX:gY,curveMonotoneY:gZ,curveNatural:gQ,curveStep:g0,curveStepAfter:g2,curveStepBefore:g1}}getD3Curve(){let e="curveLinear",t=this.model.getOptions().curve;if(t&&(e="string"==typeof t?t:t.name),this.curveTypes[e]){let n=this.curveTypes[e];return t&&Object.keys(t).forEach(e=>{n[e]&&(n=n[e](t[e]))}),n}return console.warn(`The curve type '${e}' is invalid, using 'curveLinear' instead`),this.curveTypes.curveLinear}}class mc extends hv{isZoomBarEnabled(){if(!this.services.cartesianScales||!sH(this.model.getOptions(),"zoomBar","top","enabled"))return!1;this.services.cartesianScales.findDomainAndRangeAxes();let e=this.services.cartesianScales.getMainXAxisPosition(),t=sH(this.model.getOptions(),"axes",e,"scaleType");return e===eK.BOTTOM&&t===e1.TIME}getZoomBarData(){let e=this.model.getZoomBarData();return e&&e.length>1?e:this.model.getDisplayData()}getDefaultZoomBarDomain(e){if(!this.services.zoom)throw Error("Services zoom not defined");let t=e||this.services.zoom.getZoomBarData(),{cartesianScales:n}=this.services;if(!n)throw Error("Services cartesianScales undefined");let i=n.getMainXAxisPosition(),a=n.getDomainIdentifier(),r=sH(this.model.getOptions(),"axes",i,"domain");if(Array.isArray(r)&&2===r.length)return r;if(!i)throw Error("Not defined: mainXAxisPosition");return n.extendsDomain(i,aS(t,e=>e[a]))}handleDomainChange(e,t={dispatchEvent:!0,type:"manual"}){this.model.set({zoomDomain:e},{animate:!1}),t.dispatchEvent&&this.services.events?.dispatchEvent(eq.ZoomDomain.CHANGE,{newDomain:e,type:t.type})}getZoomRatio(){return sH(this.model.getOptions(),"zoomBar","zoomRatio")}filterDataForRangeAxis(e,t){let n=this.model.get("zoomDomain"),i=Object.assign({stacked:!1},t),a=sH(this.model.getOptions(),"zoomBar","updateRangeAxis");if(this.isZoomBarEnabled()&&a&&n){let t=i.stacked?"sharedStackKey":this.services.cartesianScales?.getDomainIdentifier(),a=e.filter(e=>new Date(e[t])>=n[0]&&new Date(e[t])<=n[1]);if(a.length>0)return a}return e}zoomIn(e=this.getZoomRatio()){let t=this.model.get("zoomDomain"),n=this.services.cartesianScales?.getMainXScale().copy();n.domain(this.getDefaultZoomBarDomain());let i=n(t[0]),a=n(t[1]);if(a-i<6)return;let r=n.range(),o=a-i,s=Math.min((r[1]-r[0])/2*(e/2),o/2),l=i+s,c=a-s;l>=c&&(l=i+o/2-2.5,c=a-o/2+2.5);let u=[n.invert(l),n.invert(c)];(t[0].valueOf()!==u[0].valueOf()||t[1].valueOf()!==u[1].valueOf())&&this.handleDomainChange(u,{dispatchEvent:!0,type:"in"})}zoomOut(e=this.getZoomRatio()){let t=this.model.get("zoomDomain");if(!this.services.cartesianScales)throw Error("Services cartesianScales undefined");let n=this.services.cartesianScales.getMainXScale().copy();n.domain(this.getDefaultZoomBarDomain());let i=n(t[0]),a=n(t[1]),r=n.range(),o=(r[1]-r[0])/2*(e/2),s=Math.max(i-o,r[0]),l=Math.min(a+o,r[1]),c=[n.invert(s),n.invert(l)];(t[0].valueOf()!==c[0].valueOf()||t[1].valueOf()!==c[1].valueOf())&&this.handleDomainChange(c,{dispatchEvent:!0,type:"out"})}resetZoomDomain(){let e=this.model.get("zoomDomain"),t=this.getDefaultZoomBarDomain();(e[0].valueOf()!==t[0].valueOf()||e[1].valueOf()!==t[1].valueOf())&&this.handleDomainChange(t,{dispatchEvent:!0,type:"reset"})}isMinZoomDomain(){let e=this.model.get("zoomDomain"),t=this.getDefaultZoomBarDomain();return!!e&&!!t&&(e[1].valueOf()-e[0].valueOf())/(t[1].valueOf()-t[0].valueOf())<sH(this.model.getOptions(),"zoomBar","minZoomRatio")}isMaxZoomDomain(){let e=this.model.get("zoomDomain"),t=this.getDefaultZoomBarDomain();return!!(e&&t&&e[0].valueOf()===t[0].valueOf()&&e[1].valueOf()===t[1].valueOf())}isEmptyState(){return 0===this.getZoomBarData().length}isZoomBarLoading(e){return sH(this.model.getOptions(),"zoomBar",e,"loading")}isZoomBarLocked(e){return sH(this.model.getOptions(),"zoomBar",e,"locked")}}var mu=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),mh="\\ud800-\\udfff",mp="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",md="\\ud83c[\\udffb-\\udfff]",mf="[^"+mh+"]",mg="(?:\\ud83c[\\udde6-\\uddff]){2}",mm="[\\ud800-\\udbff][\\udc00-\\udfff]",my="(?:"+mp+"|"+md+")?",mb="[\\ufe0e\\ufe0f]?",mv="(?:\\u200d(?:"+[mf,mg,mm].join("|")+")"+mb+my+")*",m_=RegExp(md+"(?="+md+")|"+("(?:"+[mf+mp+"?",mp,mg,mm,"["+mh+"]"].join("|"))+")"+(mb+my+mv),"g"),mx=function(e){var t,n,i,a=(t=e=n7(e),mu.test(t))?function(e){return mu.test(e)?e.match(m_)||[]:e.split("")}(e):void 0,r=a?a[0]:e.charAt(0),o=a?(i=a.length,gu(a,1,n=void 0===n?i:n)).join(""):e.slice(1);return r.toUpperCase()+o};hZ(function(e,t,n){return t=t.toLowerCase(),e+(n?mx(n7(t).toLowerCase()):t)});class mw{constructor(e,t){this.components=[],this.services={canvasZoom:g3,domUtils:h_,events:g5,files:g4,gradientUtils:hx,transitions:g6},this.model=new lk(this.services)}init(e,t){this.model.set({holder:e},{skipUpdate:!0}),Object.keys(this.services).forEach(e=>{let t=this.services[e];this.services[e]=new t(this.model,this.services)}),this.services.events.addEventListener(eq.Model.UPDATE,e=>{let t=!!sH(e,"detail","animate");this.update(t)}),this.model.setData(t.data),this.services.events.addEventListener(eq.Chart.RESIZE,()=>{this.update(!1)}),this.components=this.getComponents(),this.update()}getComponents(){return console.error("getComponents() method is not implemented"),[]}update(e=!0){if(!this.components)return;Object.keys(this.services).forEach(e=>{this.services[e].update()}),this.components.forEach(t=>t.render(e));let t=this.services.transitions.getPendingTransitions();Promise.all(Object.keys(t).map(e=>t[e].end().catch(e=>e))).then(()=>this.services.events.dispatchEvent(eq.Chart.RENDER_FINISHED))}destroy(){this.components.forEach(e=>e.destroy()),this.services.domUtils.getHolder().remove(),this.model.set({destroyed:!0},{skipUpdate:!0})}getChartComponents(e,t){let n=this.model.getOptions(),i=sH(n,"toolbar","enabled"),a={id:"legend",components:[new fF(this.model,this.services)],growth:e8.PREFERRED},r=sH(n,"canvasZoom","enabled");r&&!0===r&&e.push(new fV(this.model,this.services));let o=!!this.model.getOptions().title,s={id:"title",components:[new fU(this.model,this.services)],growth:e8.STRETCH},l={id:"toolbar",components:[new fN(this.model,this.services)],growth:e8.PREFERRED},c={id:"header",components:[new fP(this.model,this.services,[s,...i?[l]:[]],{direction:e6.ROW,alignItems:e7.CENTER})],growth:e8.PREFERRED},u={id:"graph-frame",components:e,growth:e8.STRETCH,renderType:sH(t,"graphFrameRenderType")||eY.SVG},h=!0!==sH(t,"excludeLegend")&&!1!==n.legend.enabled,p=e6.COLUMN;if(h){let e=sH(n,"legend","position");"left"===e?(p=e6.ROW,n.legend.orientation||(n.legend.orientation=e5.VERTICAL)):"right"===e?(p=e6.ROW_REVERSE,n.legend.orientation||(n.legend.orientation=e5.VERTICAL)):"bottom"===e&&(p=e6.COLUMN_REVERSE)}let d={id:"spacer",components:[new fB(this.model,this.services)],growth:e8.PREFERRED},f={id:"full-frame",components:[new fP(this.model,this.services,[...h?[a]:[],...h?[d]:[],u],{direction:p})],growth:e8.STRETCH},g=[];if(o||i){g.push(c);let e={id:"spacer",components:[new fB(this.model,this.services,i?{size:15}:void 0)],growth:e8.PREFERRED};g.push(e)}return g.push(f),[new fY(this.model,this.services),new fH(this.model,this.services),new fP(this.model,this.services,g,{direction:e6.COLUMN})]}}class m$ extends mw{constructor(e,t){super(e,t),this.services=Object.assign(this.services,{cartesianScales:ms,curves:ml,zoom:mc}),this.model=new lT(this.services)}getAxisChartComponents(e,t){let n=this.model.getOptions(),i=sH(n,"zoomBar",eK.TOP,"enabled"),a=sH(n,"toolbar","enabled");this.services.cartesianScales.determineAxisDuality(),this.services.cartesianScales.findDomainAndRangeAxes(),this.services.cartesianScales.determineOrientation();let r=this.services.cartesianScales.getMainXAxisPosition(),o=sH(n,"axes",r,"scaleType"),s=i&&r===eK.BOTTOM&&o===e1.TIME,l=this.services.zoom.isZoomBarLocked(eK.TOP),c=!!this.model.getOptions().title,u={id:"title",components:[new fU(this.model,this.services)],growth:e8.STRETCH},h={id:"toolbar",components:[new fN(this.model,this.services)],growth:e8.PREFERRED},p={id:"header",components:[new fP(this.model,this.services,[u,...a?[h]:[]],{direction:e6.ROW,alignItems:e7.CENTER})],growth:e8.PREFERRED},d={id:"legend",components:[new fF(this.model,this.services)],growth:e8.PREFERRED};s&&!l&&e.push(new fj(this.model,this.services),new fZ(this.model,this.services)),e.push(new fK(this.model,this.services)),e.push(new fQ(this.model,this.services));let f={id:"graph-frame",components:e,growth:e8.STRETCH,renderType:eY.SVG},g=!1!==sH(t,"legend","enabled")&&!1!==this.model.getOptions().legend.enabled,m=e6.COLUMN;if(g){let e=sH(this.model.getOptions(),"legend","position");e===e2.LEFT?(m=e6.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=e5.VERTICAL)):e===e2.RIGHT?(m=e6.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=e5.VERTICAL)):e===e2.BOTTOM&&(m=e6.COLUMN_REVERSE)}let y={id:"spacer",components:[new fB(this.model,this.services)],growth:e8.PREFERRED},b={id:"full-frame",components:[new fP(this.model,this.services,[...g?[d]:[],...g?[y]:[],f],{direction:m})],growth:e8.STRETCH},v={id:"zoom-bar",components:[new fX(this.model,this.services)],growth:e8.PREFERRED,renderType:eY.SVG},_=[];if(c||a){_.push(p);let e={id:"spacer",components:[new fB(this.model,this.services,a?{size:15}:void 0)],growth:e8.PREFERRED};_.push(e)}return s&&_.push(v),_.push(b),[new fJ(this.model,this.services),new fH(this.model,this.services),new fP(this.model,this.services,_,{direction:e6.COLUMN})]}}ts.LINE,ts.SCATTER,ts.AREA,ts.STACKED_AREA,ts.SIMPLE_BAR,ts.GROUPED_BAR,ts.STACKED_BAR;class mE extends m${constructor(e,t){super(e,t),this.model.setOptions(function(e,t){let n=i4(e,5),i=Object.keys(t.axes||{});for(let e in t?.toolbar?.controls&&delete n.toolbar.controls,0===i.length&&delete n.axes,n.axes)if(i.includes(e)){let n=t.axes[e];if((n.primary||n.secondary)&&console.warn("`primary` & `secondary` are no longer needed for axis configurations. Read more here https://charts.carbondesignsystem.com/"),null==n.mapsTo){let e=n.scaleType;null==e?n.mapsTo="value":e===e1.TIME?n.mapsTo="date":e===e1.LABELS&&(n.mapsTo="key")}}else delete n.axes[e];return sB(n,t),av(n,t)}(sL,t.options)),this.init(e,t)}getComponents(){let e=[new ge(this.model,this.services),new f5(this.model,this.services),new f6(this.model,this.services),new f4(this.model,this.services),new f8(this.model,this.services,{handleThresholds:!0}),new gi(this.model,this.services),new gn(this.model,this.services)];return this.getAxisChartComponents(e)}}class mA extends ev().PureComponent{chart;chartRef=ev().createRef();createChart(e,t,n){throw Error("Method not implemented.")}componentDidMount(){this.chartRef.current&&!this.chart&&(this.chart=this.createChart(this.chartRef.current,this.props.data,this.props.options))}componentDidUpdate(e){this.props.data!==e.data&&this.chart?.model.setData(this.props.data),this.props.options!==e.options&&this.chart?.model.setOptions(this.props.options)}render(){return ev().createElement("div",{ref:this.chartRef,className:"chart-holder"})}}class mk extends mA{createChart(e,t,n){return new mE(e,{data:t,options:n})}}var mT={exports:{}};ey||(ey=1,function(e){var t={}.hasOwnProperty;function n(){for(var e="",a=0;a<arguments.length;a++){var r=arguments[a];r&&(e=i(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var a="";for(var r in e)t.call(e,r)&&e[r]&&(a=i(a,r));return a}(r)))}return e}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}(mT)),mT.exports}}]);