@bino-bi/bn-template-engine 1.0.0-next.22 → 1.0.0-next.24

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 (212) hide show
  1. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  2. package/dist/bn-template-engine/index.esm.js +1 -0
  3. package/dist/bn-template-engine/{p-a4ea9a79.entry.js → p-03304284.entry.js} +1 -1
  4. package/dist/bn-template-engine/p-0b2e1661.entry.js +1 -0
  5. package/dist/bn-template-engine/{p-2d3ea756.entry.js → p-0fb02c57.entry.js} +1 -1
  6. package/dist/bn-template-engine/p-2fbc2d50.entry.js +1 -0
  7. package/dist/bn-template-engine/p-36f1c5f9.entry.js +1 -0
  8. package/dist/bn-template-engine/{p-2fba7c99.entry.js → p-4419db8f.entry.js} +1 -1
  9. package/dist/bn-template-engine/p-45508f1b.entry.js +1 -0
  10. package/dist/bn-template-engine/p-5d7a3a77.entry.js +1 -0
  11. package/dist/bn-template-engine/p-62cc95b7.entry.js +1 -0
  12. package/dist/bn-template-engine/p-686d8e44.entry.js +1 -0
  13. package/dist/bn-template-engine/{p-C5uvAEKI.js → p-B5Jd_eCX.js} +1 -1
  14. package/dist/bn-template-engine/{p-eEfqksk-.js → p-BbmobTg0.js} +1 -1
  15. package/dist/bn-template-engine/p-BcLsoDrW.js +1 -0
  16. package/dist/bn-template-engine/p-BcaI745G.js +1 -0
  17. package/dist/bn-template-engine/p-C5UYpZUU.js +2 -0
  18. package/dist/bn-template-engine/{p-6lOdN-fB.js → p-CG_Bcm6V.js} +1 -1
  19. package/dist/bn-template-engine/p-CTrNbSXN.js +1 -0
  20. package/dist/bn-template-engine/{p-fFtEvsY-.js → p-CWWWM-XC.js} +1 -1
  21. package/dist/bn-template-engine/{p-D1SJ10zl.js → p-CsJ84YRk.js} +1 -1
  22. package/dist/bn-template-engine/{p-BgIpdpfH.js → p-D5e8I9Qe.js} +1 -1
  23. package/dist/bn-template-engine/p-DVrDYxlh.js +1 -0
  24. package/dist/bn-template-engine/p-DjPXefnq.js +1 -0
  25. package/dist/bn-template-engine/{p-B4JfKvVT.js → p-DtLI_CzV.js} +1 -1
  26. package/dist/bn-template-engine/{p-D75i_YOP.js → p-EtT29btN.js} +1 -1
  27. package/dist/bn-template-engine/{p-DwYUTvvI.js → p-TuLpbB5O.js} +1 -1
  28. package/dist/bn-template-engine/{p-c3383557.entry.js → p-a5867a4c.entry.js} +1 -1
  29. package/dist/bn-template-engine/p-a8eb9ca0.entry.js +1 -0
  30. package/dist/bn-template-engine/{p-de29986f.entry.js → p-b27009eb.entry.js} +1 -1
  31. package/dist/bn-template-engine/{p-28d5c266.entry.js → p-f06c3703.entry.js} +1 -1
  32. package/dist/bn-template-engine/{p-93eaded3.entry.js → p-fcfbb329.entry.js} +1 -1
  33. package/dist/bn-template-engine/{p-CYE0I1Mx.js → p-qRZrT-U3.js} +1 -1
  34. package/dist/cjs/{AxisConfig-D7CAyPLO.js → AxisConfig-DwiNUyYG.js} +1 -1
  35. package/dist/cjs/{LabelCollisionManager-DkdQ9Xdg.js → LabelCollisionManager-Bv-xkeXw.js} +7 -4
  36. package/dist/cjs/{Order-IPfAP0q8.js → Order-2wRydarc.js} +1 -1
  37. package/dist/cjs/{SVGStyle-BD8jApd4.js → SVGStyle-DoxylrEQ.js} +12 -2
  38. package/dist/cjs/{SVGVariancesStyleGroup-BaWzR951.js → SVGVariancesStyleGroup-CiI4GeWe.js} +1 -1
  39. package/dist/cjs/{VarianceMeasure-BBWTgv2e.js → VarianceMeasure-CQlSRzlp.js} +4 -4
  40. package/dist/cjs/{XYChartDataRow-BoR0CTfl.js → XYChartDataRow-C2FdL58s.js} +4 -4
  41. package/dist/cjs/bn-asset_21.cjs.entry.js +1357 -240
  42. package/dist/cjs/bn-chart-bubble.cjs.entry.js +33 -13
  43. package/dist/cjs/bn-chart-bullet.cjs.entry.js +32 -12
  44. package/dist/cjs/bn-chart-scatter.cjs.entry.js +32 -12
  45. package/dist/cjs/bn-grid.cjs.entry.js +84 -7
  46. package/dist/cjs/bn-image.cjs.entry.js +6 -6
  47. package/dist/cjs/bn-internationalization.cjs.entry.js +4 -4
  48. package/dist/cjs/bn-ruleset.cjs.entry.js +4 -4
  49. package/dist/cjs/bn-template-engine.cjs.js +3 -3
  50. package/dist/cjs/bn-template.cjs.entry.js +2 -2
  51. package/dist/cjs/bn-text.cjs.entry.js +7 -7
  52. package/dist/cjs/bn-tree.cjs.entry.js +80 -6
  53. package/dist/cjs/{context-protocol-BBhT9B52.js → context-protocol-DcTEh1rq.js} +3 -1
  54. package/dist/cjs/diagnostics-CTgbq_Gc.js +107 -0
  55. package/dist/cjs/editor-companion.cjs.entry.js +2 -2
  56. package/dist/cjs/ibcs-chart-bubble.cjs.entry.js +6 -6
  57. package/dist/cjs/ibcs-chart-bullet.cjs.entry.js +6 -6
  58. package/dist/cjs/ibcs-chart-scatter.cjs.entry.js +6 -6
  59. package/dist/cjs/{index-CDKG4xmO.js → index-C1Z9vO7z.js} +61 -19
  60. package/dist/cjs/index.cjs.js +15 -0
  61. package/dist/cjs/loader.cjs.js +2 -2
  62. package/dist/cjs/{scaling-B6_M_HWH.js → scaling-Dsb5_NXy.js} +3 -3
  63. package/dist/cjs/svgChartElements-tDA43aYj.js +400 -0
  64. package/dist/cjs/{withBodyObserver-BKUE_ypL.js → withBodyObserver-DJO98AJ-.js} +2 -2
  65. package/dist/cjs/{withHasError-Cl2gTQzA.js → withHasError-BdDmiOXM.js} +1 -1
  66. package/dist/cjs/{withScalingGroup-D5clRvRe.js → withScalingGroup-CFIc5-6s.js} +3 -3
  67. package/dist/cjs/{withStyled-DuwvaDMp.js → withStyled-D0jLwCib.js} +5 -5
  68. package/dist/collection/collection-manifest.json +2 -2
  69. package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.js +60 -1
  70. package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.js +60 -1
  71. package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.js +60 -1
  72. package/dist/collection/components/bn-chart-structure/bn-chart-structure.css +6 -0
  73. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +204 -26
  74. package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +101 -28
  75. package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +65 -19
  76. package/dist/collection/components/bn-chart-structure/utils/elements/Label.js +5 -2
  77. package/dist/collection/components/bn-chart-time/bn-chart-time.js +239 -18
  78. package/dist/collection/components/bn-chart-time/ibcs-chart-time.css +9 -3
  79. package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +107 -22
  80. package/dist/collection/components/bn-chart-time/utils/TimeChart.js +98 -15
  81. package/dist/collection/components/bn-chart-time/utils/elements/Label.js +5 -2
  82. package/dist/collection/components/bn-context/bn-context.js +133 -1
  83. package/dist/collection/components/bn-grid/bn-grid.js +129 -1
  84. package/dist/collection/components/bn-table/bn-table.js +149 -5
  85. package/dist/collection/components/bn-table/ibcs-table.js +210 -40
  86. package/dist/collection/components/bn-table/utils/Table.js +21 -7
  87. package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +18 -32
  88. package/dist/collection/components/bn-table/utils/elements/WaterfallBar.js +4 -5
  89. package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +4 -0
  90. package/dist/collection/components/bn-table/utils/helper/barColumnGeometry.js +89 -0
  91. package/dist/collection/components/bn-tree/bn-tree.js +137 -0
  92. package/dist/collection/context/context-protocol.js +1 -1
  93. package/dist/collection/index.js +1 -0
  94. package/dist/collection/utils/autoFit.js +63 -0
  95. package/dist/collection/utils/constants.js +3 -3
  96. package/dist/collection/utils/layoutState/diagnostics.js +17 -0
  97. package/dist/collection/utils/layoutState/generic.js +37 -0
  98. package/dist/collection/utils/layoutState/geometry.js +44 -0
  99. package/dist/collection/utils/layoutState/identity.js +33 -0
  100. package/dist/collection/utils/layoutState/index.js +6 -0
  101. package/dist/collection/utils/layoutState/svgChartElements.js +200 -0
  102. package/dist/collection/utils/layoutState/types.js +13 -0
  103. package/dist/collection/utils/measurementHost.js +58 -0
  104. package/dist/collection/utils/model/styles/FontStyle.js +10 -0
  105. package/dist/components/LabelCollisionManager.js +1 -1
  106. package/dist/components/autoFit.js +1 -0
  107. package/dist/components/bn-chart-bubble.js +1 -1
  108. package/dist/components/bn-chart-bullet.js +1 -1
  109. package/dist/components/bn-chart-scatter.js +1 -1
  110. package/dist/components/bn-chart-structure.js +1 -1
  111. package/dist/components/bn-chart-time.js +1 -1
  112. package/dist/components/bn-context.js +1 -1
  113. package/dist/components/bn-grid.js +1 -1
  114. package/dist/components/bn-internationalization.js +1 -1
  115. package/dist/components/bn-table.js +1 -1
  116. package/dist/components/bn-tree.js +1 -1
  117. package/dist/components/context-protocol.js +1 -1
  118. package/dist/components/diagnostics.js +1 -0
  119. package/dist/components/geometry.js +1 -0
  120. package/dist/components/ibcs-chart-bubble2.js +1 -1
  121. package/dist/components/ibcs-chart-bullet2.js +1 -1
  122. package/dist/components/ibcs-chart-scatter2.js +1 -1
  123. package/dist/components/ibcs-chart-structure2.js +1 -1
  124. package/dist/components/ibcs-chart-time2.js +1 -1
  125. package/dist/components/ibcs-table2.js +1 -1
  126. package/dist/components/index.js +1 -1
  127. package/dist/components/main.js +1 -1
  128. package/dist/components/svgChartElements.js +1 -0
  129. package/dist/components/types.js +1 -0
  130. package/dist/esm/{AxisConfig-ByIP5J-9.js → AxisConfig-KqzWQbML.js} +1 -1
  131. package/dist/esm/{LabelCollisionManager-DaNiDiM9.js → LabelCollisionManager-585bQMtP.js} +7 -4
  132. package/dist/esm/{Order-BQeJE_yi.js → Order-DZVWjEL_.js} +1 -1
  133. package/dist/esm/{SVGStyle-BwBlY3Km.js → SVGStyle-OrPkzjcb.js} +12 -2
  134. package/dist/esm/{SVGVariancesStyleGroup-BpGW4CvN.js → SVGVariancesStyleGroup-DO5QJfRQ.js} +1 -1
  135. package/dist/esm/{VarianceMeasure-CE3N8Bea.js → VarianceMeasure-DDjChp8C.js} +4 -4
  136. package/dist/esm/{XYChartDataRow-DeMI1JKU.js → XYChartDataRow-Dn83Tqh9.js} +4 -4
  137. package/dist/esm/bn-asset_21.entry.js +1350 -233
  138. package/dist/esm/bn-chart-bubble.entry.js +31 -11
  139. package/dist/esm/bn-chart-bullet.entry.js +30 -10
  140. package/dist/esm/bn-chart-scatter.entry.js +30 -10
  141. package/dist/esm/bn-grid.entry.js +84 -7
  142. package/dist/esm/bn-image.entry.js +6 -6
  143. package/dist/esm/bn-internationalization.entry.js +4 -4
  144. package/dist/esm/bn-ruleset.entry.js +4 -4
  145. package/dist/esm/bn-template-engine.js +4 -4
  146. package/dist/esm/bn-template.entry.js +2 -2
  147. package/dist/esm/bn-text.entry.js +7 -7
  148. package/dist/esm/bn-tree.entry.js +80 -6
  149. package/dist/esm/{context-protocol-d8MHrEo8.js → context-protocol-B-vdGKeG.js} +2 -2
  150. package/dist/esm/diagnostics-CiquIw8B.js +99 -0
  151. package/dist/esm/editor-companion.entry.js +2 -2
  152. package/dist/esm/ibcs-chart-bubble.entry.js +6 -6
  153. package/dist/esm/ibcs-chart-bullet.entry.js +6 -6
  154. package/dist/esm/ibcs-chart-scatter.entry.js +6 -6
  155. package/dist/esm/{index-B_d-jp99.js → index-C5UYpZUU.js} +61 -19
  156. package/dist/esm/index.js +14 -0
  157. package/dist/esm/loader.js +3 -3
  158. package/dist/esm/{scaling-Bw8XyrFq.js → scaling-Dggyeqts.js} +3 -3
  159. package/dist/esm/svgChartElements-B3YClivG.js +395 -0
  160. package/dist/esm/{withBodyObserver-IokS6fHD.js → withBodyObserver-Cb9ZC5_J.js} +2 -2
  161. package/dist/esm/{withHasError-DW_vMDUp.js → withHasError-Bh1Viz52.js} +1 -1
  162. package/dist/esm/{withScalingGroup-CC3UcvC5.js → withScalingGroup-DNBSqRC0.js} +3 -3
  163. package/dist/esm/{withStyled-41rsCSM1.js → withStyled-DoNsbwS3.js} +5 -5
  164. package/dist/types/components/bn-chart-bubble/bn-chart-bubble.d.ts +10 -0
  165. package/dist/types/components/bn-chart-bullet/bn-chart-bullet.d.ts +10 -0
  166. package/dist/types/components/bn-chart-scatter/bn-chart-scatter.d.ts +10 -0
  167. package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +33 -3
  168. package/dist/types/components/bn-chart-structure/ibcs-chart-structure.d.ts +9 -3
  169. package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +38 -3
  170. package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +36 -0
  171. package/dist/types/components/bn-chart-time/ibcs-chart-time.d.ts +10 -3
  172. package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +38 -0
  173. package/dist/types/components/bn-context/bn-context.d.ts +14 -0
  174. package/dist/types/components/bn-grid/bn-grid.d.ts +10 -0
  175. package/dist/types/components/bn-table/bn-table.d.ts +26 -2
  176. package/dist/types/components/bn-table/ibcs-table.d.ts +31 -6
  177. package/dist/types/components/bn-table/utils/Table.d.ts +16 -1
  178. package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +9 -1
  179. package/dist/types/components/bn-table/utils/factories/tableDataSetFactory.d.ts +2 -0
  180. package/dist/types/components/bn-table/utils/helper/barColumnGeometry.d.ts +51 -0
  181. package/dist/types/components/bn-tree/bn-tree.d.ts +10 -0
  182. package/dist/types/components.d.ts +65 -4
  183. package/dist/types/context/context-protocol.d.ts +5 -0
  184. package/dist/types/index.d.ts +1 -0
  185. package/dist/types/stencil-public-runtime.d.ts +1 -0
  186. package/dist/types/utils/autoFit.d.ts +79 -0
  187. package/dist/types/utils/constants.d.ts +3 -3
  188. package/dist/types/utils/layoutState/diagnostics.d.ts +7 -0
  189. package/dist/types/utils/layoutState/generic.d.ts +14 -0
  190. package/dist/types/utils/layoutState/geometry.d.ts +35 -0
  191. package/dist/types/utils/layoutState/identity.d.ts +22 -0
  192. package/dist/types/utils/layoutState/index.d.ts +6 -0
  193. package/dist/types/utils/layoutState/svgChartElements.d.ts +37 -0
  194. package/dist/types/utils/layoutState/types.d.ts +219 -0
  195. package/dist/types/utils/measurementHost.d.ts +9 -0
  196. package/dist/types/utils/model/styles/FontStyle.d.ts +7 -0
  197. package/package.json +1 -1
  198. package/dist/bn-template-engine/p-445c76cd.entry.js +0 -1
  199. package/dist/bn-template-engine/p-687032d5.entry.js +0 -1
  200. package/dist/bn-template-engine/p-7d1083f6.entry.js +0 -1
  201. package/dist/bn-template-engine/p-91e5dddf.entry.js +0 -1
  202. package/dist/bn-template-engine/p-B_d-jp99.js +0 -2
  203. package/dist/bn-template-engine/p-BjBz5cSL.js +0 -1
  204. package/dist/bn-template-engine/p-C8Q0lsaU.js +0 -1
  205. package/dist/bn-template-engine/p-CJThzFZm.js +0 -1
  206. package/dist/bn-template-engine/p-Da6p_F4J.js +0 -1
  207. package/dist/bn-template-engine/p-a8291de2.entry.js +0 -1
  208. package/dist/bn-template-engine/p-cda4322a.entry.js +0 -1
  209. package/dist/bn-template-engine/p-e49f9170.entry.js +0 -1
  210. package/dist/bn-template-engine/p-f275b9fe.entry.js +0 -1
  211. package/dist/cjs/layoutObserver-D8leSb4j.js +0 -199
  212. package/dist/esm/layoutObserver-DtZb2vdM.js +0 -196
@@ -0,0 +1 @@
1
+ import{b as n}from"./p-D5e8I9Qe.js";const t=n=>Math.round(100*n)/100;function r(n){return{x:t(n.left),y:t(n.top),width:t(n.width),height:t(n.height)}}function o(n,r){return function(n,r){const o=t(n.width),e=t(n.height);return{context:{x:t(n.left-r.context.x),y:t(n.top-r.context.y),width:o,height:e},component:{x:t(n.left-r.component.x),y:t(n.top-r.component.y),width:o,height:e}}}(n.getBoundingClientRect(),r)}function e(t){const r=t.getBoundingClientRect(),o=n(t),e=o?o.getBoundingClientRect():r;return{context:{x:e.left,y:e.top},component:{x:r.left,y:r.top}}}function i(n){var t,r;return null!==(r=null!==(t=n.getAttribute("id"))&&void 0!==t?t:n.getAttribute("name"))&&void 0!==r?r:void 0}function u(n){var t;return null!==(t=i(n))&&void 0!==t?t:n.localName}function c(n){const t=new Map;return n.map((({tag:n,explicitId:r})=>{var o;const e=null!==(o=t.get(n))&&void 0!==o?o:0;return t.set(n,e+1),null!=r?r:`${n}[${e}]`}))}function a(n){const t=n.getAttribute("has-error");if(!t)return[];try{const n=JSON.parse(t);return Array.isArray(n)?n:[]}catch(n){return[]}}export{u as a,c as b,i as c,o as m,e as o,a as r,r as t}
@@ -0,0 +1 @@
1
+ import{g as o,f as t}from"./p-C5UYpZUU.js";import{g as s,c as f}from"./p-D5e8I9Qe.js";import{r as n}from"./p-DtLI_CzV.js";const c=c=>{let p,e;const r=()=>{"function"==typeof c.validateUnitScaling&&c.validateUnitScaling(c.unitScaling),"function"==typeof c.validatePercentageScaling&&c.validatePercentageScaling(c.percentageScaling),"function"==typeof c.validateSizeScaling&&c.validateSizeScaling()},i=c.connectedCallback;c.connectedCallback=()=>{const f=o(c);e=s(f),(()=>{const o=e.scalingGroups.state;for(const t of Object.keys(o))void 0!==o[t]?c.pixelPerUnitGroupMap.set(t,o[t]):c.pixelPerUnitGroupMap.delete(t)})(),r(),p=e.scalingGroups.on("set",((s,f)=>{void 0!==f?c.pixelPerUnitGroupMap.set(s,f):c.pixelPerUnitGroupMap.delete(s),r(),t(o(c))})),n(i,c)};const a=c.disconnectedCallback;c.disconnectedCallback=()=>{n(p),f(o(c)),n(a,c)}};export{c as w}
@@ -0,0 +1,2 @@
1
+ const t="bn-template-engine",e={allRenderFn:!0,appendChildSlotFix:!1,asyncLoading:!0,asyncQueue:!1,attachStyles:!0,cloneNodeFix:!1,constructableCSS:!0,cssAnnotations:!0,deserializer:!1,devTools:!1,element:!1,event:!1,experimentalScopedSlotChanges:!1,experimentalSlotFixes:!1,formAssociated:!1,hasRenderFn:!0,hostListener:!1,hostListenerTarget:!1,hostListenerTargetBody:!1,hostListenerTargetDocument:!1,hostListenerTargetParent:!1,hostListenerTargetWindow:!1,hotModuleReplacement:!1,hydrateClientSide:!1,hydrateServerSide:!1,hydratedAttribute:!1,hydratedClass:!0,hydratedSelectorName:"hydrated",initializeNextTick:!1,invisiblePrehydration:!0,isDebug:!1,isDev:!1,isTesting:!1,lazyLoad:!0,lifecycle:!0,lifecycleDOMEvents:!1,member:!0,method:!0,mode:!1,observeAttribute:!0,profile:!1,prop:!0,propBoolean:!0,propChangeCallback:!0,propMutable:!0,propNumber:!0,propString:!0,reflect:!0,scoped:!1,scopedSlotTextContentFix:!1,scriptDataOpts:!1,serializer:!1,shadowDelegatesFocus:!1,shadowDom:!0,shadowSlotAssignmentManual:!1,slot:!0,slotChildNodesFix:!1,slotRelocation:!1,state:!0,style:!0,svg:!0,taskQueue:!0,transformTagName:!1,updatable:!0,vdomAttribute:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomPropOrAttr:!0,vdomRef:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,vdomXlink:!0};var n={isDev:!!e.isDev,isBrowser:!0,isServer:!1,isTesting:!!e.isTesting},o=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(o||{}),s=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(s||{}),r="type",i="value",l="serialized:";function c(t,e,n){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,e);if(o&&(!n||o.get))return o;t=Object.getPrototypeOf(t)}}var a,u,f=(t,n)=>{var o;Object.entries(null!=(o=n.o.t)?o:{}).map((([o,[s]])=>{if((e.state||e.prop)&&(31&s||32&s)){const e=t[o],s=c(Object.getPrototypeOf(t),o,!0)||Object.getOwnPropertyDescriptor(t,o);s&&Object.defineProperty(t,o,{get(){return s.get.call(this)},set(t){s.set.call(this,t)},configurable:!0,enumerable:!0}),n.i.has(o)?t[o]=n.i.get(o):void 0!==e&&(t[o]=e)}}))},d=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},h=(t,n)=>{n&&(t.__stencil__getHostRef=()=>n,n.l=t,512&n.o.u&&(e.state||e.prop)&&f(t,n))},p=(t,n)=>{const o={u:0,$hostElement$:t,o:n,i:new Map,p:new Map};e.isDev&&(o.m=0),e.method&&e.lazyLoad&&(o.v=new Promise((t=>o.$=t))),e.asyncLoading&&(o.S=new Promise((t=>o.j=t)),t["s-p"]=[],t["s-rc"]=[]),e.lazyLoad&&(o.O=[]);const s=o;return t.__stencil__getHostRef=()=>s,!e.lazyLoad&&512&n.u&&(e.state||e.prop)&&f(t,o),s},m=(t,e)=>e in t,v=(t,e)=>(a||console.error)(t,e),g=e.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],$=(...t)=>console.error(...g,...t),b=(...t)=>console.warn(...g,...t),y=(...t)=>console.info(...g,...t),w=new Map,S=(t,n,o)=>{const s=t.C.replace(/-/g,"_"),r=t._;if(e.isDev&&"string"!=typeof r)return void $(`Trying to lazily load component <${t.C}> with style mode "${n.k}", but it does not exist.`);if(!r)return;const i=!e.hotModuleReplacement&&w.get(r);return i?i[s]:import(`./${r}.entry.js${e.hotModuleReplacement&&o?"?s-hmr="+o:""}`).then((t=>(e.hotModuleReplacement||w.set(r,t),t[s])),(t=>{v(t,n.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},j=new Map,x=[],O="s-id",C="sty-id",_="c-id",E="_stencilDocData",k={hostIds:0,rootLevelIds:0,staticComponents:new Set},N="slot-fb{display:contents}slot-fb[hidden]{display:none}",T="http://www.w3.org/1999/xlink",L=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],R="undefined"!=typeof window?window:{},M=R.HTMLElement||class{},A={u:0,N:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},D=e.shadowDom,I=t=>Promise.resolve(t),H=!!e.constructableCSS&&(()=>{try{return!!R.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),F=!!H&&(()=>!!R.document&&Object.getOwnPropertyDescriptor(R.document.adoptedStyleSheets,"length").writable)(),P=0,U=!1,B=[],z=[],V=[],W=(t,e)=>n=>{t.push(n),U||(U=!0,e&&4&A.u?q(X):A.raf(X))},Y=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){v(t)}t.length=0},J=(t,e)=>{let n=0,o=0;for(;n<t.length&&(o=performance.now())<e;)try{t[n++](o)}catch(t){v(t)}n===t.length?t.length=0:0!==n&&t.splice(0,n)},X=()=>{if(e.asyncQueue&&P++,Y(B),e.asyncQueue){const t=2==(6&A.u)?performance.now()+14*Math.ceil(.1*P):1/0;J(z,t),J(V,t),z.length>0&&(V.push(...z),z.length=0),(U=B.length+z.length+V.length>0)?A.raf(X):P=0}else Y(z),(U=B.length>0)&&A.raf(X)},q=t=>I().then(t),K=W(B,!1),Q=W(z,!0),G=t=>{const e=new URL(t,A.N);return e.origin!==R.location.origin?e.href:e.pathname};function Z(t){const n={mode:"open"};e.shadowDelegatesFocus&&(n.delegatesFocus=!!(16&t.u)),e.shadowSlotAssignmentManual&&1024&t.u&&(n.slotAssignment="manual");const o=this.attachShadow(n);void 0===u&&(u=null),u&&(F?o.adoptedStyleSheets.push(u):o.adoptedStyleSheets=[...o.adoptedStyleSheets,u])}var tt=t=>{const e=Tt(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&nt(e,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!ot(t,it(t),!1).length)}));let n=0;for(n=0;n<e.length;n++){const t=e[n];1===t.nodeType&&Tt(t,"childNodes").length&&tt(t)}},et=t=>{const e=[];for(let n=0;n<t.length;n++){const o=t[n]["s-nr"]||void 0;o&&o.isConnected&&e.push(o)}return e};function nt(t,e,n){let o,s=0,r=[];for(;s<t.length;s++){if(o=t[s],o["s-sr"]&&(!e||o["s-hn"]===e)&&(void 0===n||it(o)===n)&&(r.push(o),void 0!==n))return r;r=[...r,...nt(o.childNodes,e,n)]}return r}var ot=(t,e,n=!0)=>{const o=[];(n&&t["s-sr"]||!t["s-sr"])&&o.push(t);let s=t;for(;s=s.nextSibling;)it(s)!==e||!n&&s["s-sr"]||o.push(s);return o},st=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,rt=(t,n,o,s)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const r=document.createTextNode("");if(r["s-nr"]=t,!n["s-cr"]||!n["s-cr"].parentNode)return;const i=n["s-cr"].parentNode,l=Tt(i,o?"prepend":"appendChild");if(e.hydrateClientSide&&void 0!==s){r["s-oo"]=s;const t=Tt(i,"childNodes"),e=[r];t.forEach((t=>{t["s-nr"]&&e.push(t)})),e.sort(((t,e)=>!t["s-oo"]||t["s-oo"]<(e["s-oo"]||0)?-1:!e["s-oo"]||e["s-oo"]<t["s-oo"]?1:0)),e.forEach((t=>l.call(i,t)))}else l.call(i,r);t["s-ol"]=r,t["s-sh"]=n["s-hn"]},it=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function lt(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const s=this["s-cr"].parentElement;return(s.__childNodes?s.childNodes:et(s.childNodes)).forEach((t=>{o===it(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}function ct(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}function at(t,e){var n;if(!(e=e||(null==(n=t["s-ol"])?void 0:n.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=it(t)||"";return{slotNode:nt(Tt(e,"childNodes"),e.tagName,o)[0],slotName:o}}var ut=t=>{ft(t),dt(t),mt(t),pt(t),bt(t),vt(t),gt(t),$t(t),yt(t),wt(t),ht(t)},ft=t=>{if(t.__cloneNode)return;const n=t.__cloneNode=t.cloneNode;t.cloneNode=function(t){const o=!!e.shadowDom&&this.shadowRoot&&D,s=n.call(this,!!o&&t);if(e.slot&&!o&&t){let t,n,o=0;const r=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"],i=this.__childNodes||this.childNodes;for(;o<i.length;o++)t=i[o]["s-nr"],n=r.every((t=>!i[o][t])),t&&(e.appendChildSlotFix&&s.__appendChild?s.__appendChild(t.cloneNode(!0)):s.appendChild(t.cloneNode(!0))),n&&s.appendChild(i[o].cloneNode(!0))}return s}},dt=t=>{t.__appendChild||(t.__appendChild=t.appendChild,t.appendChild=function(t){const{slotName:e,slotNode:n}=at(t,this);if(n){rt(t,n);const o=ot(n,e),s=o[o.length-1],r=Tt(s,"parentNode"),i=Tt(r,"insertBefore")(t,s.nextSibling);return ct(n),tt(this),i}return this.__appendChild(t)})},ht=t=>{t.__removeChild||(t.__removeChild=t.removeChild,t.removeChild=function(t){return t&&void 0!==t["s-sn"]&&nt(this.__childNodes||this.childNodes,this.tagName,t["s-sn"])&&t.isConnected?(t.remove(),void tt(this)):this.__removeChild(t)})},pt=t=>{t.__prepend||(t.__prepend=t.prepend,t.prepend=function(...e){e.forEach((e=>{"string"==typeof e&&(e=this.ownerDocument.createTextNode(e));const n=(e["s-sn"]=it(e))||"",o=nt(Tt(this,"childNodes"),this.tagName,n)[0];if(o){rt(e,o,!0);const t=ot(o,n)[0],s=Tt(t,"parentNode"),r=Tt(s,"insertBefore")(e,Tt(t,"nextSibling"));return ct(o),r}return 1===e.nodeType&&e.getAttribute("slot")&&(e.hidden=!0),t.__prepend(e)}))})},mt=t=>{t.__append||(t.__append=t.append,t.append=function(...t){t.forEach((t=>{"string"==typeof t&&(t=this.ownerDocument.createTextNode(t)),this.appendChild(t)}))})},vt=t=>{if(t.__insertAdjacentHTML)return;const e=t.insertAdjacentHTML;t.insertAdjacentHTML=function(t,n){if("afterbegin"!==t&&"beforeend"!==t)return e.call(this,t,n);const o=this.ownerDocument.createElement("_");let s;if(o.innerHTML=n,"afterbegin"===t)for(;s=o.firstChild;)this.prepend(s);else if("beforeend"===t)for(;s=o.firstChild;)this.append(s)}},gt=t=>{t.insertAdjacentText=function(t,e){this.insertAdjacentHTML(t,e)}},$t=t=>{t.__insertBefore||t.__insertBefore||(t.__insertBefore=t.insertBefore,t.insertBefore=function(t,e){const{slotName:n,slotNode:o}=at(t,this),s=this.__childNodes?this.childNodes:et(this.childNodes);if(o){let r=!1;if(s.forEach((s=>{if(s!==e&&null!==e);else{if(r=!0,null===e||n!==e["s-sn"])return void this.appendChild(t);if(n===e["s-sn"]){rt(t,o);const n=Tt(e,"parentNode");Tt(n,"insertBefore")(t,e),ct(o)}}})),r)return t}const r=null==e?void 0:e.__parentNode;return r&&!this.isSameNode(r)?this.appendChild(t):this.__insertBefore(t,e)})},bt=t=>{if(t.__insertAdjacentElement)return;const e=t.insertAdjacentElement;t.insertAdjacentElement=function(t,n){return"afterbegin"!==t&&"beforeend"!==t?e.call(this,t,n):"afterbegin"===t?(this.prepend(n),n):"beforeend"===t?(this.append(n),n):n}},yt=t=>{Nt("textContent",t),Object.defineProperty(t,"textContent",{get:function(){let t="";return(this.__childNodes?this.childNodes:et(this.childNodes)).forEach((e=>t+=e.textContent||"")),t},set:function(t){(this.__childNodes?this.childNodes:et(this.childNodes)).forEach((t=>{t["s-ol"]&&t["s-ol"].remove(),t.remove()})),this.insertAdjacentHTML("beforeend",t)}})},wt=t=>{class e extends Array{item(t){return this[t]}}Nt("children",t),Object.defineProperty(t,"children",{get(){return this.childNodes.filter((t=>1===t.nodeType))}}),Object.defineProperty(t,"childElementCount",{get(){return this.children.length}}),Nt("firstChild",t),Object.defineProperty(t,"firstChild",{get(){return this.childNodes[0]}}),Nt("lastChild",t),Object.defineProperty(t,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]}}),Nt("childNodes",t),Object.defineProperty(t,"childNodes",{get(){const t=new e;return t.push(...et(this.__childNodes)),t}})},St=t=>{t&&void 0===t.__nextSibling&&globalThis.Node&&(jt(t),Ot(t),_t(t),t.nodeType===Node.ELEMENT_NODE&&(xt(t),Ct(t)))},jt=t=>{t&&!t.__nextSibling&&(Nt("nextSibling",t),Object.defineProperty(t,"nextSibling",{get:function(){var t;const e=null==(t=this["s-ol"])?void 0:t.parentNode.childNodes,n=null==e?void 0:e.indexOf(this);return e&&n>-1?e[n+1]:this.__nextSibling}}))},xt=t=>{t&&!t.__nextElementSibling&&(Nt("nextElementSibling",t),Object.defineProperty(t,"nextElementSibling",{get:function(){var t;const e=null==(t=this["s-ol"])?void 0:t.parentNode.children,n=null==e?void 0:e.indexOf(this);return e&&n>-1?e[n+1]:this.__nextElementSibling}}))},Ot=t=>{t&&!t.__previousSibling&&(Nt("previousSibling",t),Object.defineProperty(t,"previousSibling",{get:function(){var t;const e=null==(t=this["s-ol"])?void 0:t.parentNode.childNodes,n=null==e?void 0:e.indexOf(this);return e&&n>-1?e[n-1]:this.__previousSibling}}))},Ct=t=>{t&&!t.__previousElementSibling&&(Nt("previousElementSibling",t),Object.defineProperty(t,"previousElementSibling",{get:function(){var t;const e=null==(t=this["s-ol"])?void 0:t.parentNode.children,n=null==e?void 0:e.indexOf(this);return e&&n>-1?e[n-1]:this.__previousElementSibling}}))},_t=t=>{t&&!t.__parentNode&&(Nt("parentNode",t),Object.defineProperty(t,"parentNode",{get:function(){var t;return(null==(t=this["s-ol"])?void 0:t.parentNode)||this.__parentNode},set:function(t){this.__parentNode=t}}))},Et=["children","nextElementSibling","previousElementSibling"],kt=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function Nt(t,e){if(!globalThis.Node||!globalThis.Element)return;let n;Et.includes(t)?n=Object.getOwnPropertyDescriptor(Element.prototype,t):kt.includes(t)&&(n=Object.getOwnPropertyDescriptor(Node.prototype,t)),n||(n=Object.getOwnPropertyDescriptor(e,t)),n&&Object.defineProperty(e,"__"+t,n)}function Tt(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var Lt=0,Rt=(t,n="")=>{if(e.profile&&performance.mark){const e=`st:${t}:${n}:${Lt++}`;return performance.mark(e),()=>performance.measure(`[Stencil] ${t}() <${n}>`,e)}return()=>{}};function Mt(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var At=new WeakMap,Dt=(t,e,n)=>{let o=j.get(t);H&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,j.set(t,o)},It=(t,n,o)=>{var s,r,i;const l=Ft(n,o),c=j.get(l);if(!e.attachStyles||!R.document)return l;if(t=11===t.nodeType?t:R.document,c)if("string"==typeof c){let o,i=At.get(t=t.head||t);i||At.set(t,i=new Set);const a=(e.hydrateClientSide||e.hotModuleReplacement)&&t.querySelector(`[${C}="${l}"]`);if(a)a.textContent=c;else if(!i.has(l)){o=R.document.createElement("style"),o.textContent=c;const a=null!=(s=A.T)?s:Mt(R.document);if(null!=a&&o.setAttribute("nonce",a),(e.hydrateServerSide||e.hotModuleReplacement)&&(2&n.u||128&n.u||1&n.u)&&o.setAttribute(C,l),!(1&n.u))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(o,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(H){const e=new(null!=(r=t.defaultView)?r:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(c),F?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const n=t.querySelector("style");n&&!e.hotModuleReplacement?n.textContent=c+n.textContent:t.prepend(o)}else t.append(o);1&n.u&&t.insertBefore(o,null),4&n.u&&(o.textContent+=N),i&&i.add(l)}}else if(e.constructableCSS){let n=At.get(t);if(n||At.set(t,n=new Set),!n.has(l)){const o=null!=(i=t.defaultView)?i:t.ownerDocument.defaultView;let s;if(c.constructor===o.CSSStyleSheet)s=c;else{s=new o.CSSStyleSheet;for(let t=0;t<c.cssRules.length;t++)s.insertRule(c.cssRules[t].cssText,t)}if(F?t.adoptedStyleSheets.push(s):t.adoptedStyleSheets=[...t.adoptedStyleSheets,s],n.add(l),e.hydrateClientSide&&"host"in t){const e=t.querySelector(`[${C}="${l}"]`);e&&Q((()=>e.remove()))}}}return l},Ht=t=>{const n=t.o,o=t.$hostElement$,s=n.u,r=Rt("attachStyles",n.C),i=It(e.shadowDom&&D&&o.shadowRoot?o.shadowRoot:o.getRootNode(),n,t.k);(e.shadowDom||e.scoped)&&e.cssAnnotations&&10&s&&(o["s-sc"]=i,o.classList.add(i+"-h")),r()},Ft=(t,n)=>"sc-"+(e.mode&&n&&32&t.u?t.C+"-"+n:t.C),Pt=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Ut=()=>{if(!R.document)return;const t=R.document.querySelectorAll(`[${C}]`);let e=0;for(;e<t.length;e++)Dt(t[e].getAttribute(C),Pt(t[e].innerHTML),!0)},Bt=t=>"object"==(t=typeof t)||"function"===t,zt=(t,n,...o)=>{"string"==typeof t&&(t=Zn(t));let s=null,r=null,i=null,l=!1,c=!1;const a=[],u=n=>{for(let o=0;o<n.length;o++)s=n[o],Array.isArray(s)?u(s):null!=s&&"boolean"!=typeof s&&((l="function"!=typeof t&&!Bt(s))?s+="":e.isDev&&"function"!=typeof t&&void 0===s.u&&$("vNode passed as children has unexpected type.\nMake sure it's using the correct h() function.\nEmpty objects can also be the cause, look for JSX comments that became objects."),l&&c?a[a.length-1].L+=s:a.push(l?Vt(null,s):s),c=l)};if(u(o),n&&(e.isDev&&"input"===t&&Kt(n),e.vdomKey&&n.key&&(r=n.key),e.slotRelocation&&n.name&&(i=n.name),e.vdomClass)){const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}if(e.isDev&&a.some(Yt)&&$("The <Host> must be the single root component. Make sure:\n- You are NOT using hostData() and <Host> in the same component.\n- <Host> is used once, and it's the single root component of the render() function."),e.vdomFunctional&&"function"==typeof t)return t(null===n?{}:n,a,Jt);const f=Vt(t,null);return f.R=n,a.length>0&&(f.M=a),e.vdomKey&&(f.A=r),e.slotRelocation&&(f.D=i),f},Vt=(t,n)=>{const o={u:0,I:t,L:null!=n?n:null,F:null,M:null};return e.vdomAttribute&&(o.R=null),e.vdomKey&&(o.A=null),e.slotRelocation&&(o.D=null),o},Wt={},Yt=t=>t&&t.I===Wt,Jt={forEach:(t,e)=>t.map(Xt).forEach(e),map:(t,e)=>t.map(Xt).map(e).map(qt)},Xt=t=>({vattrs:t.R,vchildren:t.M,vkey:t.A,vname:t.D,vtag:t.I,vtext:t.L}),qt=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),zt(t.vtag,e,...t.vchildren||[])}const e=Vt(t.vtag,t.vtext);return e.R=t.vattrs,e.M=t.vchildren,e.A=t.vkey,e.D=t.vname,e},Kt=t=>{const e=Object.keys(t),n=e.indexOf("value");if(-1===n)return;const o=e.indexOf("type"),s=e.indexOf("min"),r=e.indexOf("max"),i=e.indexOf("step");(n<o||n<s||n<r||n<i)&&b('The "value" prop of <input> should be set after "min", "max", "type" and "step"')},Qt=(t,n,o,s,r,i,l,c=[])=>{let a,u,f,d;const h=r["s-sc"];if(1===i.nodeType){if(a=i.getAttribute(_),a&&(u=a.split("."),u[0]===l||"0"===u[0])){f=Zt({u:0,P:u[0],U:u[1],B:u[2],V:u[3],I:i.tagName.toLowerCase(),F:i,R:{class:i.className||""}}),n.push(f),i.removeAttribute(_),t.M||(t.M=[]),e.scoped&&h&&u[0]===l&&(i["s-si"]=h,f.R.class+=" "+h);const r=f.F.getAttribute("s-sn");"string"==typeof r&&("slot-fb"===f.I&&(te(r,u[2],f,i,t,n,o,s,c),e.scoped&&h&&i.classList.add(h)),f.F["s-sn"]=r,f.F.removeAttribute("s-sn")),void 0!==f.V&&(t.M[f.V]=f),t=f,s&&"0"===f.B&&(s[f.V]=f.F)}if(i.shadowRoot)for(d=i.shadowRoot.childNodes.length-1;d>=0;d--)Qt(t,n,o,s,r,i.shadowRoot.childNodes[d],l,c);const p=i.__childNodes||i.childNodes;for(d=p.length-1;d>=0;d--)Qt(t,n,o,s,r,p[d],l,c)}else if(8===i.nodeType)u=i.nodeValue.split("."),(u[1]===l||"0"===u[1])&&(a=u[0],f=Zt({P:u[1],U:u[2],B:u[3],V:u[4]||"0",F:i,R:null,M:null,A:null,D:null,I:null,L:null}),"t"===a?(f.F=ne(i,3),f.F&&3===f.F.nodeType&&(f.L=f.F.textContent,n.push(f),i.remove(),l===f.P&&(t.M||(t.M=[]),t.M[f.V]=f),s&&"0"===f.B&&(s[f.V]=f.F))):"c"===a?(f.F=ne(i,8),f.F&&8===f.F.nodeType&&(n.push(f),i.remove())):f.P===l&&("s"===a?te(i["s-sn"]=u[5]||"",u[2],f,i,t,n,o,s,c):"r"===a&&(e.shadowDom&&s?i.remove():e.slotRelocation&&(r["s-cr"]=i,i["s-cn"]=!0))));else if(t&&"style"===t.I){const e=Vt(null,i.textContent);e.F=i,e.V="0",t.M=[e]}return t},Gt=(t,e)=>{if(1===t.nodeType){const n=t[O]||t.getAttribute(O);n&&e.set(n,t);let o=0;if(t.shadowRoot)for(;o<t.shadowRoot.childNodes.length;o++)Gt(t.shadowRoot.childNodes[o],e);const s=t.__childNodes||t.childNodes;for(o=0;o<s.length;o++)Gt(s[o],e)}else if(8===t.nodeType){const n=t.nodeValue.split(".");"o"===n[0]&&(e.set(n[1]+"."+n[2],t),t.nodeValue="",t["s-en"]=n[3])}},Zt=t=>({u:0,P:null,U:null,B:null,V:"0",F:null,R:null,M:null,A:null,D:null,I:null,L:null,...t});function te(t,n,o,s,r,i,l,c,a){s["s-sr"]=!0,o.D=t||null,o.I="slot";const u=(null==r?void 0:r.F)?r.F["s-id"]||r.F.getAttribute("s-id"):"";if(e.shadowDom&&c&&R.document){const e=o.F=R.document.createElement(o.I);o.D&&o.F.setAttribute("name",t),r.F.shadowRoot&&u&&u!==o.P?Tt(r.F,"insertBefore")(e,Tt(r.F,"children")[0]):Tt(Tt(s,"parentNode"),"insertBefore")(e,s),ee(a,n,t,s,o.P),s.remove(),"0"===o.B&&(c[o.V]=o.F)}else{const e=o.F,i=u&&u!==o.P&&r.F.shadowRoot;ee(a,n,t,s,i?u:o.P),lt(s),i&&r.F.insertBefore(e,r.F.children[0])}i.push(o),l.push(o),r.M||(r.M=[]),r.M[o.V]=o}var ee=(t,e,n,o,s)=>{var r,i;let l=o.nextSibling;if(t[e]=t[e]||[],l&&!(null==(r=l.nodeValue)?void 0:r.startsWith("s.")))do{!l||(l.getAttribute&&l.getAttribute("slot")||l["s-sn"])!==n&&(""!==n||l["s-sn"]||l.getAttribute&&l.getAttribute("slot")||8!==l.nodeType&&3!==l.nodeType)||(l["s-sn"]=n,t[e].push({slot:o,node:l,hostId:s})),l=null==l?void 0:l.nextSibling}while(l&&!(null==(i=l.nodeValue)?void 0:i.startsWith("s.")))},ne=(t,e)=>{let n=t;do{n=n.nextSibling}while(n&&(n.nodeType!==e||!n.nodeValue));return n},oe=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),se="-shadowcsshost",re="-shadowcssslotted",ie="-shadowcsscontext",le=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",ce=RegExp("("+se+le,"gim"),ae=RegExp("("+ie+le,"gim"),ue=RegExp("("+re+le,"gim"),fe=se+"-no-combinator",de=/-shadowcsshost-no-combinator([^\s]*)/,he=[/::shadow/g,/::content/g],pe=/__part-(\d+)__/g,me=/-shadowcsshost/gim,ve=t=>{const e=oe(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")},ge=/\/\*\s*[\s\S]*?\*\//g,$e=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,be=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,ye=/([{}])/g,we=/(^.*?[^\\])??((:+)(.*)|$)/,Se="%BLOCK%",je=(t,e)=>{const n=xe(t);let o=0;return n.escapedString.replace(be,((...t)=>{const s=t[2];let r="",i=t[4],l="";i&&i.startsWith("{"+Se)&&(r=n.blocks[o++],i=i.substring(8),l="{");const c=e({selector:s,content:r});return`${t[1]}${c.selector}${t[3]}${l}${c.content}${i}`}))},xe=t=>{const e=t.split(ye),n=[],o=[];let s=0,r=[];for(let t=0;t<e.length;t++){const i=e[t];"}"===i&&s--,s>0?r.push(i):(r.length>0&&(o.push(r.join("")),n.push(Se),r=[]),n.push(i)),"{"===i&&s++}return r.length>0&&(o.push(r.join("")),n.push(Se)),{escapedString:n.join(""),blocks:o}},Oe=(t,e,n)=>t.replace(e,((...t)=>{if(t[2]){const e=t[2].split(","),o=[];for(let s=0;s<e.length;s++){const r=e[s].trim();if(!r)break;o.push(n(fe,r,t[3]))}return o.join(",")}return fe+t[3]})),Ce=(t,e,n)=>t+e.replace(se,"")+n,_e=(t,e,n)=>e.indexOf(se)>-1?Ce(t,e,n):t+e+n+", "+e+" "+t+n,Ee=(t,e)=>t.replace(we,((t,n="",o,s="",r="")=>n+e+s+r)),ke=(t,e,n,o)=>je(t,(t=>{let s=t.selector,r=t.content;return"@"!==t.selector[0]?s=((t,e,n,o)=>t.split(",").map((t=>o&&t.indexOf("."+o)>-1?t.trim():((t,e)=>!(t=>(t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),RegExp("^("+t+")([>\\s~+[.,{:][\\s\\S]*)?$","m")))(e).test(t))(t,e)?((t,e,n)=>{const o="."+(e=e.replace(/\[is=([^\]]*)\]/g,((t,...e)=>e[0]))),s=t=>{let s=t.trim();if(!s)return"";if(t.indexOf(fe)>-1)s=((t,e,n)=>{if(me.lastIndex=0,me.test(t)){const e="."+n;return t.replace(de,((t,n)=>Ee(n,e))).replace(me,e+" ")}return e+" "+t})(t,e,n);else{const e=t.replace(me,"");e.length>0&&(s=Ee(e,o))}return s},r=(t=>{const e=[];let n=0;return{content:(t=(t=t.replace(/(\[\s*part~=\s*("[^"]*"|'[^']*')\s*\])/g,((t,o)=>{const s=`__part-${n}__`;return e.push(o),n++,s}))).replace(/(\[[^\]]*\])/g,((t,o)=>{const s=`__ph-${n}__`;return e.push(o),n++,s}))).replace(/(:nth-[-\w]+)(\([^)]+\))/g,((t,o,s)=>{const r=`__ph-${n}__`;return e.push(s),n++,o+r})),placeholders:e}})(t);let i,l="",c=0;const a=/( |>|\+|~(?!=))(?=(?:[^()]*\([^()]*\))*[^()]*$)\s*/g;let u=!((t=r.content).indexOf(fe)>-1);for(;null!==(i=a.exec(t));){const e=i[1],n=t.slice(c,i.index).trim();u=u||n.indexOf(fe)>-1,l+=`${u?s(n):n} ${e} `,c=a.lastIndex}const f=t.substring(c);return u=!f.match(pe)&&(u||f.indexOf(fe)>-1),l+=u?s(f):f,((t,e)=>(e=e.replace(/__part-(\d+)__/g,((e,n)=>t[+n]))).replace(/__ph-(\d+)__/g,((e,n)=>t[+n])))(r.placeholders,l)})(t,e,n).trim():t.trim())).join(", "))(t.selector,e,n,o):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(r=ke(t.content,e,n,o)),{selector:s.replace(/\s{2,}/g," ").trim(),content:r}})),Ne=(t,e)=>t.replace(/-shadowcsshost-no-combinator/g,"."+e),Te=(t,e)=>{const n=e+"-h",o=e+"-s",s=(t=>t.match($e)||[])(t);t=(t=>t.replace(ge,""))(t);const r=[];{const e=t=>{const e=`/*!@___${r.length}___*/`;return r.push({placeholder:e,comment:`/*!@${t.selector}*/`}),t.selector=e+t.selector,t};t=je(t,(t=>"@"!==t.selector[0]?e(t):t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document")?(t.content=je(t.content,e),t):t))}const i=((t,e,n,o)=>{const s=((t,e)=>{const n="."+e+" > ",o=[];return t=t.replace(ue,((...t)=>{if(t[2]){const e=t[2].trim(),s=n+e+t[3];let r="";for(let e=t[4]-1;e>=0;e--){const n=t[5][e];if("}"===n||","===n)break;r=n+r}const i=(r+s).trim(),l=`${r.trimEnd()}${s.trim()}`.trim();return i!==l&&o.push({orgSelector:i,updatedSelector:`${l}, ${i}`}),s}return fe+t[3]})),{selectors:o,cssText:t}})(t=(t=>Oe(t,ae,_e))(t=(t=>Oe(t,ce,Ce))(t=(t=>{const e=[];t=t.replace(/@supports\s+selector\s*\(\s*([^)]*)\s*\)/g,((t,n)=>{const o=`__supports_${e.length}__`;return e.push(n),`@supports selector(${o})`}));const n=ve("::slotted"),o=ve(":host"),s=ve(":host-context");return t=t.replace(s,"$1"+ie).replace(o,"$1"+se).replace(n,"$1"+re),e.forEach(((e,n)=>{t=t.replace(`__supports_${n}__`,e)})),t})(t))),o);return t=(t=>he.reduce(((t,e)=>t.replace(e," ")),t))(t=s.cssText),e&&(t=ke(t,e,n,o)),{cssText:(t=(t=Ne(t,n)).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:s.selectors.map((t=>({orgSelector:Ne(t.orgSelector,n),updatedSelector:Ne(t.updatedSelector,n)})))}})(t,e,n,o);return t=[i.cssText,...s].join("\n"),r.forEach((({placeholder:e,comment:n})=>{t=t.replace(e,n)})),i.slottedSelectors.forEach((e=>{const n=RegExp(oe(e.orgSelector)+"(?=\\s*[,{]|$)","g");t=t.replace(n,e.updatedSelector)})),t=(t=>{const e=/([^\s,{][^,{]*?)::part\(\s*([^)]+?)\s*\)((?:[:.][^,{]*)*)/g;return je(t,(t=>{if("@"===t.selector[0])return t;const n=t.selector.split(",").map((n=>{const o=[n.trim()];let s;for(;null!==(s=e.exec(n));){const e=s[1].trimEnd(),r=s[2].trim().split(/\s+/),i=s[3]||"",l=r.flatMap((e=>t.selector.includes(`[part~="${e}"]`)?[]:[`[part~="${e}"]`])).join(""),c=`${e} ${l}${i}`;l&&c!==n.trim()&&o.push(c)}return o.join(", ")}));return t.selector=n.join(", "),t}))})(t)},Le=t=>x.map((e=>e(t))).find((t=>!!t)),Re=t=>{if(!t)return;const e=Object.keys(t);if(0===e.length)return;let n=!1;for(const o of e){if(n)break;for(const e of t[o])if("string"==typeof e){n=!0;break}}if(!n)return t;const o={};for(const n of e)o[n]=t[n].map((t=>"string"==typeof t?{[t]:0}:t));return o},Me=class t{static fromLocalValue(e){const n=e[r],o=i in e?e[i]:void 0;switch(n){case"string":case"boolean":return o;case"bigint":return BigInt(o);case"undefined":return;case"null":return null;case"number":return"NaN"===o?NaN:"-0"===o?-0:"Infinity"===o?1/0:"-Infinity"===o?-1/0:o;case"array":return o.map((e=>t.fromLocalValue(e)));case"date":return new Date(o);case"map":const e=new Map;for(const[n,s]of o){const o="object"==typeof n&&null!==n?t.fromLocalValue(n):n,r=t.fromLocalValue(s);e.set(o,r)}return e;case"object":const s={};for(const[e,n]of o)s[e]=t.fromLocalValue(n);return s;case"regexp":const{pattern:r,flags:i}=o;return RegExp(r,i);case"set":const l=new Set;for(const e of o)l.add(t.fromLocalValue(e));return l;case"symbol":return Symbol(o);default:throw Error("Unsupported type: "+n)}}static fromLocalValueArray(e){return e.map((e=>t.fromLocalValue(e)))}static isLocalValueObject(t){if("object"!=typeof t||null===t)return!1;if(!t.hasOwnProperty(r))return!1;const e=t[r];return!!Object.values({...o,...s}).includes(e)&&("null"===e||"undefined"===e||t.hasOwnProperty(i))}};var Ae,De,Ie,He=(t,n,o)=>(e.hydrateClientSide||e.hydrateServerSide)&&"string"==typeof t&&t.startsWith(l)?t=function(t){return"string"==typeof t&&t.startsWith(l)?Me.fromLocalValue(JSON.parse(function(t){const e=atob(t),n=new Uint8Array(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return(new TextDecoder).decode(n)}(t.slice(11)))):t}(t):null==t||Bt(t)?t:e.propBoolean&&4&n?(e.formAssociated&&o&&"string"==typeof t||"false"!==t)&&(""===t||!!t):e.propNumber&&2&n?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:e.propString&&1&n?t+"":t,Fe=t=>{var n;return e.lazyLoad?null==(n=d(t))?void 0:n.$hostElement$:t},Pe=(t,e,n)=>{const o=A.ce(e,n);return t.dispatchEvent(o),o},Ue=(t,n,o,s,r,i,l)=>{if(o===s)return;let c=m(t,n),a=n.toLowerCase();if(e.vdomClass&&"class"===n){const n=t.classList,r=ze(o);let i=ze(s);if(e.hydrateClientSide&&(t["s-si"]||t["s-sc"])&&l){const e=t["s-sc"]||t["s-si"];i.push(e),r.forEach((t=>{t.startsWith(e)&&i.push(t)})),i=[...new Set(i)].filter((t=>t)),n.add(...i)}else n.remove(...r.filter((t=>t&&!i.includes(t)))),n.add(...i.filter((t=>t&&!r.includes(t))))}else if(e.vdomStyle&&"style"===n){if(e.updatable)for(const n in o)s&&null!=s[n]||(!e.hydrateServerSide&&n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in s)o&&s[n]===o[n]||(!e.hydrateServerSide&&n.includes("-")?t.style.setProperty(n,s[n]):t.style[n]=s[n])}else if(e.vdomKey&&"key"===n);else if(e.vdomRef&&"ref"===n)s&&dn(s,t);else if(!e.vdomListener||(e.lazyLoad?c:t.__lookupSetter__(n))||"o"!==n[0]||"n"!==n[1]){if(e.vdomPropOrAttr&&"a"===n[0]&&n.startsWith("attr:")){const o=n.slice(5);let r;if(e.member){const e=d(t);if(e&&e.o&&e.o.t){const t=e.o.t[o];t&&t[1]&&(r=t[1])}}return r||(r=o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==s||!1===s?!1===s&&""!==t.getAttribute(r)||t.removeAttribute(r):t.setAttribute(r,!0===s?"":s))}if(e.vdomPropOrAttr&&"p"===n[0]&&n.startsWith("prop:")){const e=n.slice(5);try{t[e]=s}catch(t){}return}if(e.vdomPropOrAttr){const l=Bt(s);if((c||l&&null!==s)&&!r)try{if(t.tagName.includes("-"))t[n]!==s&&(t[n]=s);else{const e=null==s?"":s;"list"===n?c=!1:null!=o&&t[n]===e||("function"==typeof t.__lookupSetter__(n)?t[n]=e:t.setAttribute(n,e))}}catch(t){}let u=!1;e.vdomXlink&&a!==(a=a.replace(/^xlink\:?/,""))&&(n=a,u=!0),null==s||!1===s?!1===s&&""!==t.getAttribute(n)||(e.vdomXlink&&u?t.removeAttributeNS(T,n):t.removeAttribute(n)):(!c||4&i||r)&&!l&&1===t.nodeType&&(s=!0===s?"":s,e.vdomXlink&&u?t.setAttributeNS(T,n,s):t.setAttribute(n,s))}}else if(n="-"===n[2]?n.slice(3):m(R,a)?a.slice(2):a[2]+n.slice(3),o||s){const e=n.endsWith(Ve);n=n.replace(We,""),o&&A.rel(t,n,o,e),s&&A.ael(t,n,s,e)}},Be=/\s/,ze=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(Be):[]),Ve="Capture",We=RegExp(Ve+"$"),Ye=(t,n,o,s)=>{const r=11===n.F.nodeType&&n.F.host?n.F.host:n.F,i=t&&t.R||{},l=n.R||{};if(e.updatable)for(const t of Je(Object.keys(i)))t in l||Ue(r,t,i[t],void 0,o,n.u,s);for(const t of Je(Object.keys(l)))Ue(r,t,i[t],l[t],o,n.u,s)};function Je(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Xe=!1,qe=!1,Ke=!1,Qe=!1,Ge=[],Ze=[],tn=(t,n,o)=>{var s;const r=n.M[o];let i,l,c,a=0;if(e.slotRelocation&&!Xe&&(Ke=!0,"slot"===r.I&&(r.u|=r.M?2:1)),e.isDev&&r.F&&$(`The JSX ${null!==r.L?`"${r.L}" text`:`"${r.I}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`),e.vdomText&&null!=r.L)i=r.F=R.document.createTextNode(r.L);else if(e.slotRelocation&&1&r.u)i=r.F=e.isDebug||e.hydrateServerSide?vn(r):R.document.createTextNode(""),e.vdomAttribute&&Ye(null,r,Qe);else{if(e.svg&&!Qe&&(Qe="svg"===r.I),!R.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(i=r.F=e.svg?R.document.createElementNS(Qe?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Xe&&e.slotRelocation&&2&r.u?"slot-fb":r.I):R.document.createElement(!Xe&&e.slotRelocation&&2&r.u?"slot-fb":r.I),e.svg&&Qe&&"foreignObject"===r.I&&(Qe=!1),e.vdomAttribute&&Ye(null,r,Qe),(e.scoped||e.hydrateServerSide)&&null!=Ae&&void 0!==Ae&&i["s-si"]!==Ae&&i.classList.add(i["s-si"]=Ae),r.M){const e="template"===r.I?i.content:i;for(a=0;a<r.M.length;++a)l=tn(t,r,a),l&&e.appendChild(l)}e.svg&&("svg"===r.I?Qe=!1:"foreignObject"===i.tagName&&(Qe=!0))}return i["s-hn"]=Ie,e.slotRelocation&&3&r.u&&(i["s-sr"]=!0,i["s-cr"]=De,i["s-sn"]=r.D||"",i["s-rf"]=null==(s=r.R)?void 0:s.ref,lt(i),c=t&&t.M&&t.M[o],c&&c.I===r.I&&t.F&&en(t.F),(e.scoped||e.hydrateServerSide)&&pn(De,i,n.F,null==t?void 0:t.F)),i},en=t=>{A.u|=1;const e=t.closest(Ie.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of n?o.reverse():o)null!=t["s-sh"]&&(hn(e,t,null!=n?n:null),t["s-sh"]=void 0,Ke=!0)}A.u&=-2},nn=(t,e)=>{A.u|=1;const n=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let e=t;for(;e=e.nextSibling;)e&&e["s-sn"]===t["s-sn"]&&e["s-sh"]===Ie&&n.push(e)}for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==Ie&&o["s-ol"]&&(hn(ln(o).parentNode,o,ln(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,Ke=!0),e&&nn(o,e)}A.u&=-2},on=(t,n,o,s,r,i)=>{let l,c=e.slotRelocation&&t["s-cr"]&&t["s-cr"].parentNode||t;for(e.shadowDom&&c.shadowRoot&&c.tagName===Ie&&(c=c.shadowRoot),"template"===o.I&&(c=c.content);r<=i;++r)s[r]&&(l=tn(null,o,r),l&&(s[r].F=l,hn(c,l,e.slotRelocation?ln(n):n)))},sn=(t,n,o)=>{for(let s=n;s<=o;++s){const n=t[s];if(n){const t=n.F;fn(n),t&&(e.slotRelocation&&(qe=!0,t["s-ol"]?t["s-ol"].remove():nn(t,!0)),t.remove())}}},rn=(t,n,o=!1)=>t.I===n.I&&(e.slotRelocation&&"slot"===t.I?t.D===n.D:e.vdomKey&&!o?t.A===n.A:(o&&!t.A&&n.A&&(t.A=n.A),!0)),ln=t=>t&&t["s-ol"]||t,cn=(t,n,o=!1)=>{const s=n.F=t.F,r=t.M,i=n.M,l=n.I,c=n.L;let a;e.vdomText&&null!=c?e.vdomText&&e.slotRelocation&&(a=s["s-cr"])?a.parentNode.textContent=c:e.vdomText&&t.L!==c&&(s.data=c):(e.svg&&(Qe="svg"===l||"foreignObject"!==l&&Qe),(e.vdomAttribute||e.reflect)&&(e.slot&&"slot"===l&&!Xe&&t.D!==n.D&&(n.F["s-sn"]=n.D||"",en(n.F.parentElement)),Ye(t,n,Qe,o)),e.updatable&&null!==r&&null!==i?((t,n,o,s,r=!1)=>{let i,l,c=0,a=0,u=0,f=0,d=n.length-1,h=n[0],p=n[d],m=s.length-1,v=s[0],g=s[m];const $="template"===o.I?t.content:t;for(;c<=d&&a<=m;)if(null==h)h=n[++c];else if(null==p)p=n[--d];else if(null==v)v=s[++a];else if(null==g)g=s[--m];else if(rn(h,v,r))cn(h,v,r),h=n[++c],v=s[++a];else if(rn(p,g,r))cn(p,g,r),p=n[--d],g=s[--m];else if(rn(h,g,r))!e.slotRelocation||"slot"!==h.I&&"slot"!==g.I||nn(h.F.parentNode,!1),cn(h,g,r),hn($,h.F,p.F.nextSibling),h=n[++c],g=s[--m];else if(rn(p,v,r))!e.slotRelocation||"slot"!==h.I&&"slot"!==g.I||nn(p.F.parentNode,!1),cn(p,v,r),hn($,p.F,h.F),p=n[--d],v=s[++a];else{if(u=-1,e.vdomKey)for(f=c;f<=d;++f)if(n[f]&&null!==n[f].A&&n[f].A===v.A){u=f;break}e.vdomKey&&u>=0?(l=n[u],l.I!==v.I?i=tn(n&&n[a],o,u):(cn(l,v,r),n[u]=void 0,i=l.F),v=s[++a]):(i=tn(n&&n[a],o,a),v=s[++a]),i&&(e.slotRelocation?hn(ln(h.F).parentNode,i,ln(h.F)):hn(h.F.parentNode,i,h.F))}c>d?on(t,null==s[m+1]?null:s[m+1].F,o,s,a,m):e.updatable&&a>m&&sn(n,c,d)})(s,r,n,i,o):null!==i?(e.updatable&&e.vdomText&&null!==t.L&&(s.textContent=""),on(s,null,n,i,0,i.length-1)):!o&&e.updatable&&null!==r?sn(r,0,r.length-1):e.hydrateClientSide&&o&&e.updatable&&null!==r&&null===i&&(n.M=r),e.svg&&Qe&&"svg"===l&&(Qe=!1))},an=[],un=t=>{let e,n,o;const s=t.__childNodes||t.childNodes;for(const t of s){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const s=t["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!(e["s-cn"]||e["s-nr"]||e["s-hn"]===t["s-hn"]||e["s-sh"]&&e["s-sh"]===t["s-hn"]))if(st(e,s)){let n=an.find((t=>t.W===e));qe=!0,e["s-sn"]=e["s-sn"]||s,n?(n.W["s-sh"]=t["s-hn"],n.Y=t):(e["s-sh"]=t["s-hn"],an.push({Y:t,W:e})),e["s-sr"]&&an.map((t=>{st(t.W,e["s-sn"])&&(n=an.find((t=>t.W===e)),n&&!t.Y&&(t.Y=n.Y))}))}else an.some((t=>t.W===e))||an.push({W:e})}1===t.nodeType&&un(t)}},fn=t=>{e.vdomRef&&(t.R&&t.R.ref&&Ge.push((()=>t.R.ref(null))),t.M&&t.M.map(fn))},dn=(t,n)=>{e.vdomRef&&Ze.push((()=>t(n)))},hn=(t,n,o,s)=>{if(e.slotRelocation)if(e.scoped&&"string"==typeof n["s-sn"]&&n["s-sr"]&&n["s-cr"])pn(n["s-cr"],n,t,n.parentElement);else if("string"==typeof n["s-sn"]){e.experimentalSlotFixes&&11!==t.getRootNode().nodeType&&_t(n),t.insertBefore(n,o);const{slotNode:r}=at(n);return r&&!s&&ct(r),n}return t.__insertBefore?t.__insertBefore(n,o):null==t?void 0:t.insertBefore(n,o)};function pn(t,e,n,o){var s,r;let i;if(t&&"string"==typeof e["s-sn"]&&e["s-sr"]&&t.parentNode&&t.parentNode["s-sc"]&&(i=e["s-si"]||t.parentNode["s-sc"])){const t=e["s-sn"],l=e["s-hn"];if(null==(s=n.classList)||s.add(i+"-s"),o&&(null==(r=o.classList)?void 0:r.contains(i+"-s"))){let e=(o.__childNodes||o.childNodes)[0],n=!1;for(;e;){if(e["s-sn"]!==t&&e["s-hn"]===l&&e["s-sr"]){n=!0;break}e=e.nextSibling}n||o.classList.remove(i+"-s")}}}var mn=(t,n,o=!1)=>{var s,r,i,l,c;const a=t.$hostElement$,u=t.o,f=t.J||Vt(null,null),d=Yt(n)?n:zt(null,null,n);if(Ie=a.tagName,e.isDev&&Array.isArray(n)&&n.some(Yt))throw Error(`The <Host> must be the single root component.\nLooks like the render() function of "${Ie.toLowerCase()}" is returning an array that contains the <Host>.\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n <Host>{content}</Host>\n );\n}\n `);if(e.reflect&&u.X&&(d.R=d.R||{},u.X.forEach((([n,o])=>{d.R[o]=e.serializer&&t.p.has(n)?t.p.get(n):a[n]}))),o&&d.R)for(const t of Object.keys(d.R))a.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(d.R[t]=a[t]);if(d.I=null,d.u|=4,t.J=d,d.F=f.F=e.shadowDom&&a.shadowRoot||a,(e.scoped||e.shadowDom)&&(Ae=a["s-sc"]),Xe=D&&!!(1&u.u)&&!(128&u.u),e.slotRelocation&&(De=a["s-cr"],qe=!1),cn(f,d,o),e.slotRelocation){if(A.u|=1,Ke){un(d.F);for(const t of an){const n=t.W;if(!n["s-ol"]&&R.document){const t=e.isDebug||e.hydrateServerSide?gn(n):R.document.createTextNode("");t["s-nr"]=n,hn(n.parentNode,n["s-ol"]=t,n,o)}}for(const t of an){const n=t.W,c=t.Y;if(1===n.nodeType&&o&&(n["s-ih"]=null!=(s=n.hidden)&&s),c){const t=c.parentNode;let s=c.nextSibling;if(!e.hydrateServerSide&&s&&1===s.nodeType){let e=null==(r=n["s-ol"])?void 0:r.previousSibling;for(;e;){let o=null!=(i=e["s-nr"])?i:null;if(o&&o["s-sn"]===n["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===n||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){s=o;break}}e=e.previousSibling}}if((!s&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==s)&&n!==s){if(hn(t,n,s,o),8===n.nodeType&&n.nodeValue.startsWith("s-nt-")){const t=R.document.createTextNode(n.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=n["s-hn"],t["s-sn"]=n["s-sn"],t["s-sh"]=n["s-sh"],t["s-sr"]=n["s-sr"],t["s-ol"]=n["s-ol"],t["s-ol"]["s-nr"]=t,hn(n.parentNode,t,n,o),n.parentNode.removeChild(n)}1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(l=n["s-ih"])&&l)}n&&"function"==typeof c["s-rf"]&&c["s-rf"](c)}else 1===n.nodeType&&(n.hidden=!0)}}qe&&tt(d.F),A.u&=-2,an.length=0}if(e.slotRelocation&&!Xe&&!(1&u.u)&&a["s-cr"]){const t=d.F.__childNodes||d.F.childNodes;for(const e of t)if(e["s-hn"]!==Ie&&!e["s-sh"])if(o&&null==e["s-ih"]&&(e["s-ih"]=null!=(c=e.hidden)&&c),1===e.nodeType)e.hidden=!0;else if(3===e.nodeType&&e.nodeValue.trim()){const t=R.document.createComment("s-nt-"+e.nodeValue);t["s-sn"]=e["s-sn"],hn(e.parentNode,t,e,o),e.parentNode.removeChild(e)}}De=void 0,e.vdomRef&&(Ge.forEach((t=>t())),Ge.length=0,Ze.forEach((t=>t())),Ze.length=0)},vn=t=>{var e;return null==(e=R.document)?void 0:e.createComment(`<slot${t.D?' name="'+t.D+'"':""}> (host=${Ie.toLowerCase()})`)},gn=t=>{var e;return null==(e=R.document)?void 0:e.createComment("org-location for "+(t.localName?`<${t.localName}> (host=${t["s-hn"]})`:`[${t.textContent}]`))},$n=(t,n)=>{if(e.asyncLoading&&n&&!t.q&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.q=()=>{n["s-p"].splice(e-1,1),o()})))}},bn=(t,n)=>{if(e.taskQueue&&e.updatable&&(t.u|=16),e.asyncLoading&&4&t.u)return void(t.u|=512);$n(t,t.K);const o=()=>yn(t,n);if(!n)return e.taskQueue?Q(o):o();queueMicrotask((()=>{o()}))},yn=(t,n)=>{const o=t.$hostElement$,s=Rt("scheduleUpdate",t.o.C),r=e.lazyLoad?t.l:o;if(!r)throw Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return n?(e.lazyLoad&&(e.slotRelocation&&t.G&&(t.G=!1,kn(r,"connectedCallback",void 0,o)),e.hostListener&&(t.u|=256,t.Z&&(t.Z.map((([t,e])=>kn(r,t,e,o))),t.Z=void 0)),t.O.length&&t.O.forEach((t=>t(o)))),Nn(o,"componentWillLoad"),i=kn(r,"componentWillLoad",void 0,o)):(Nn(o,"componentWillUpdate"),i=kn(r,"componentWillUpdate",void 0,o)),Nn(o,"componentWillRender"),i=wn(i,(()=>kn(r,"componentWillRender",void 0,o))),s(),wn(i,(()=>jn(t,r,n)))},wn=(t,e)=>Sn(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Sn=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,jn=async(t,n,o)=>{var s;const r=t.$hostElement$,i=Rt("update",t.o.C),l=r["s-rc"];e.style&&o&&Ht(t);const c=Rt("render",t.o.C);if(e.isDev&&(t.u|=1024),e.hydrateServerSide?await On(t,n,r,o):On(t,n,r,o),e.isDev&&(t.m=void 0===t.m?1:t.m+1,t.u&=-1025),e.hydrateServerSide)try{Ln(r),o&&(1&t.o.u?r["s-en"]="":2&t.o.u&&(r["s-en"]="c"))}catch(t){v(t,r)}if(e.asyncLoading&&l&&(l.map((t=>t())),r["s-rc"]=void 0),c(),i(),e.asyncLoading){const e=null!=(s=r["s-p"])?s:[],n=()=>Cn(t);0===e.length?n():(Promise.all(e).then(n).catch(n),t.u|=4,e.length=0)}else Cn(t)},xn=null,On=(t,n,o,s)=>{const r=!!e.allRenderFn,i=!!e.lazyLoad,l=!!e.taskQueue,c=!!e.updatable;try{if(xn=n,n=(r||n.render)&&n.render(),c&&l&&(t.u&=-17),(c||i)&&(t.u|=2),e.hasRenderFn||e.reflect)if(e.vdomRender||e.reflect){if(e.hydrateServerSide)return Promise.resolve(n).then((e=>mn(t,e,s)));mn(t,n,s)}else 1&t.o.u?o.shadowRoot.textContent=n:o.textContent=n}catch(e){v(e,t.$hostElement$)}return xn=null,null},Cn=t=>{const n=t.o.C,o=t.$hostElement$,s=Rt("postUpdate",n),r=e.lazyLoad?t.l:o,i=t.K;e.isDev&&(t.u|=1024),kn(r,"componentDidRender",void 0,o),e.isDev&&(t.u&=-1025),Nn(o,"componentDidRender"),64&t.u?(e.isDev&&(t.u|=1024),kn(r,"componentDidUpdate",void 0,o),e.isDev&&(t.u&=-1025),Nn(o,"componentDidUpdate"),s()):(t.u|=64,e.asyncLoading&&e.cssAnnotations&&Tn(o),e.isDev&&(t.u|=2048),kn(r,"componentDidLoad",void 0,o),e.isDev&&(t.u&=-2049),Nn(o,"componentDidLoad"),s(),e.asyncLoading&&(t.j(o),i||En(n))),e.method&&e.lazyLoad&&t.$(o),e.asyncLoading&&(t.q&&(t.q(),t.q=void 0),512&t.u&&q((()=>bn(t,!1))),t.u&=-517)},_n=t=>{var o;if(e.updatable&&(n.isBrowser||n.isTesting)){const e=d(t),n=null==(o=null==e?void 0:e.$hostElement$)?void 0:o.isConnected;return n&&2==(18&e.u)&&bn(e,!1),n}return!1},En=n=>{var o;e.asyncQueue&&(A.u|=2),q((()=>Pe(R,"appload",{detail:{namespace:t}}))),e.hydrateClientSide&&(null==(o=A.tt)?void 0:o.size)&&A.tt.clear(),e.profile&&performance.measure&&performance.measure(`[Stencil] ${t} initial load (by ${n})`,"st:app:start")},kn=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){v(t,o)}},Nn=(n,o)=>{e.lifecycleDOMEvents&&Pe(n,"stencil_"+o,{bubbles:!0,composed:!0,detail:{namespace:t}})},Tn=t=>{var n,o;return e.hydratedClass?t.classList.add(null!=(n=e.hydratedSelectorName)?n:"hydrated"):e.hydratedAttribute?t.setAttribute(null!=(o=e.hydratedSelectorName)?o:"hydrated",""):void 0},Ln=t=>{const e=t.children;if(null!=e)for(let t=0,n=e.length;t<n;t++){const n=e[t];"function"==typeof n.connectedCallback&&n.connectedCallback(),Ln(n)}},Rn=(t,e)=>d(t).i.get(e),Mn=(t,n,o,s)=>{const r=d(t);if(!r)return;if(e.lazyLoad&&!r)throw Error(`Couldn't find host element for "${s.C}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);if(e.serializer&&r.p.has(n)&&r.p.get(n)===o)return;const i=e.lazyLoad?r.$hostElement$:t,l=r.i.get(n),c=r.u,a=e.lazyLoad?r.l:i;if(o=He(o,s.t[n][0],e.formAssociated&&!!(64&s.u)),!(e.lazyLoad&&8&c&&void 0!==l||o===l||Number.isNaN(l)&&Number.isNaN(o))){if(r.i.set(n,o),e.serializer&&e.reflect&&s.X&&s.et&&s.et[n]){const t=t=>{let e=o;for(const o of s.et[n]){const[[s]]=Object.entries(o);e=t[s](e,n)}r.p.set(n,e)};a?t(a):r.O.push((()=>{t(r.l)}))}if(e.isDev&&(1024&r.u?b(`The state/prop "${n}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,"\nElement",i,"\nNew value",o,"\nOld value",l):2048&r.u&&b(`The state/prop "${n}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,"\nElement",i,"\nNew value",o,"\nOld value",l)),e.propChangeCallback&&s.nt){const t=s.nt[n];t&&t.map((t=>{try{const[[e,s]]=Object.entries(t);(128&c||1&s)&&(a?a[e](o,l,n):r.O.push((()=>{r.l[e](o,l,n)})))}catch(t){v(t,i)}}))}if(e.updatable&&2&c){if(a.componentShouldUpdate&&!1===a.componentShouldUpdate(o,l,n)&&!(16&c))return;16&c||bn(r,!1)}}},An=(t,n,o)=>{var s,r;const i=t.prototype;if(e.isTesting){if(i.__stencilAugmented)return;i.__stencilAugmented=!0}if(e.formAssociated&&64&n.u&&1&o&&L.forEach((t=>{const n=i[t];Object.defineProperty(i,t,{value(...o){var s;const r=d(this),i=e.lazyLoad?null==r?void 0:r.l:this;if(i){const s=e.lazyLoad?i[t]:n;"function"==typeof s&&s.call(i,...o)}else null==(s=null==r?void 0:r.S)||s.then((e=>{const n=e[t];"function"==typeof n&&n.call(e,...o)}))}})})),e.member&&n.t||e.propChangeCallback){e.propChangeCallback&&(t.watchers&&!n.nt&&(n.nt=Re(t.watchers)),t.deserializers&&!n.ot&&(n.ot=t.deserializers),t.serializers&&!n.et&&(n.et=t.serializers));const l=Object.entries(null!=(s=n.t)?s:{});if(l.map((([t,[s]])=>{if((e.prop||e.state)&&(31&s||(!e.lazyLoad||2&o)&&32&s)){const{get:r,set:l}=c(i,t)||{};r&&(n.t[t][0]|=2048),l&&(n.t[t][0]|=4096),(1&o||!r)&&Object.defineProperty(i,t,{get(){if(e.lazyLoad){if(!(2048&n.t[t][0]))return Rn(this,t);const e=d(this),o=e?e.l:i;if(!o)return;return o[t]}if(!e.lazyLoad)return r?r.apply(this):Rn(this,t)},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(r){const i=d(this);if(i){if(e.isDev&&(1&o||4096&n.t[t][0]||0!==(i&&8&i.u)||!(31&s)||1024&s||b(`@Prop() "${t}" on <${n.C}> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability`)),l)return void 0===(32&s?this[t]:i.$hostElement$[t])&&i.i.get(t)&&(r=i.i.get(t)),l.call(this,He(r,s,e.formAssociated&&!!(64&n.u))),void Mn(this,t,r=32&s?this[t]:i.$hostElement$[t],n);if(e.lazyLoad){if(e.lazyLoad){if(!(1&o&&4096&n.t[t][0]))return Mn(this,t,r,n),void(1&o&&!i.l&&i.O.push((()=>{4096&n.t[t][0]&&i.l[t]!==i.i.get(t)&&(i.l[t]=r)})));const l=()=>{const o=i.l[t];!i.i.get(t)&&o&&i.i.set(t,o),i.l[t]=He(r,s,e.formAssociated&&!!(64&n.u)),Mn(this,t,i.l[t],n)};i.l?l():i.O.push((()=>{l()}))}}else Mn(this,t,r,n)}}})}else e.lazyLoad&&e.method&&1&o&&64&s&&Object.defineProperty(i,t,{value(...e){var n;const o=d(this);return null==(n=null==o?void 0:o.v)?void 0:n.then((()=>{var n;return null==(n=o.l)?void 0:n[t](...e)}))}})})),e.observeAttribute&&(!e.lazyLoad||1&o)){const o=new Map;i.attributeChangedCallback=function(t,s,r){A.jmp((()=>{var c;const a=o.get(t),u=d(this);if(e.serializer&&u.p.has(a)&&u.p.get(a)===r)return;if(this.hasOwnProperty(a)&&e.lazyLoad&&(r=this[a],delete this[a]),e.deserializer&&n.ot&&n.ot[a]){const t=(t,e)=>{const n=null==e?void 0:e[t](r,a);n!==this[a]&&(this[a]=n)};for(const o of n.ot[a]){const[[n]]=Object.entries(o);e.lazyLoad?u.l?t(n,u.l):u.O.push((()=>{t(n,u.l)})):t(n,this)}return}if(i.hasOwnProperty(a)&&"number"==typeof this[a]&&this[a]==r)return;if(null==a){const o=null==u?void 0:u.u;if(u&&o&&!(8&o)&&r!==s){const i=e.lazyLoad?u.l:e.lazyLoad?u.$hostElement$:this,l=null==(c=n.nt)?void 0:c[t];null==l||l.forEach((e=>{const[[n,l]]=Object.entries(e);null!=i[n]&&(128&o||1&l)&&i[n].call(i,r,s,t)}))}return}const f=l.find((([t])=>t===a)),h=f&&4&f[1][0],p=h&&null===r&&void 0===this[a];h&&(r=null!==r&&"false"!==r);const m=Object.getOwnPropertyDescriptor(i,a);p||r==this[a]||m.get&&!m.set||(this[a]=r)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=n.nt)?r:{}),...l.filter((([t,e])=>31&e[0])).map((([t,s])=>{var r;const i=s[1]||t;return o.set(i,t),e.reflect&&512&s[0]&&(null==(r=n.X)||r.push([t,i])),i}))]))}}return t},Dn=async(t,n,o,s)=>{let r;try{if(!(32&n.u)){if(n.u|=32,e.lazyLoad&&o._){const i=S(o,n,s);if(i&&"then"in i){const t=((t,n)=>e.profile&&performance.mark?(0===performance.getEntriesByName(t,"mark").length&&performance.mark(t),()=>{0===performance.getEntriesByName(n,"measure").length&&performance.measure(n,t)}):()=>{})(`st:load:${o.C}:${n.k}`,`[Stencil] Load module for <${o.C}>`);r=await i,t()}else r=i;if(!r)throw Error(`Constructor for "${o.C}#${n.k}" was not found`);e.member&&!r.isProxied&&(e.propChangeCallback&&(o.nt=Re(r.watchers),o.et=r.serializers,o.ot=r.deserializers),An(r,o,2),r.isProxied=!0);const l=Rt("createInstance",o.C);e.member&&(n.u|=8);try{new r(n)}catch(e){v(e,t)}e.member&&(n.u&=-9),e.propChangeCallback&&(n.u|=128),l(),e.slotRelocation&&4&o.u?n.G=!0:In(n.l,t)}else r=t.constructor,customElements.whenDefined(t.localName).then((()=>n.u|=128));if(e.style&&r&&r.style){let i;"string"==typeof r.style?i=r.style:e.mode&&"string"!=typeof r.style&&(n.k=Le(t),n.k&&(i=r.style[n.k]),e.hydrateServerSide&&n.k&&t.setAttribute("s-mode",n.k));const l=Ft(o,n.k);if(!j.has(l)||e.hotModuleReplacement&&s){const t=Rt("registerStyles",o.C);e.hydrateServerSide&&e.shadowDom&&128&o.u&&(i=Te(i,l)),Dt(l,i,!!(1&o.u)),t()}}}const i=n.K,l=()=>bn(n,!0);e.asyncLoading&&i&&i["s-rc"]?i["s-rc"].push(l):l()}catch(o){v(o,t),e.asyncLoading&&n.q&&(n.q(),n.q=void 0),e.asyncLoading&&n.j&&n.j(t)}},In=(t,n)=>{e.lazyLoad&&kn(t,"connectedCallback",void 0,n)},Hn=t=>{if(!(1&A.u)){const n=d(t);if(!n)return;const o=n.o,s=Rt("connectedCallback",o.C);if(e.hostListenerTargetParent&&Wn(t,n,o.st,!0),1&n.u)Wn(t,n,o.st,!1),(null==n?void 0:n.l)?In(n.l,t):(null==n?void 0:n.S)&&n.S.then((()=>In(n.l,t)));else{let s;if(n.u|=1,e.hydrateClientSide&&(s=t.getAttribute(O),s)){if(e.shadowDom&&D&&1&o.u){const n=e.mode?It(t.shadowRoot,o,t.getAttribute("s-mode")):It(t.shadowRoot,o);t.classList.remove(n+"-h",n+"-s")}else if(e.scoped&&2&o.u){const n=Ft(o,e.mode?t.getAttribute("s-mode"):void 0);t["s-sc"]=n}((t,n,o,s)=>{var r,i,l,c;const a=Rt("hydrateClient",n),u=t.shadowRoot,f=[],h=[],p=[],m=e.shadowDom&&u?[]:null,v=Vt(n,null);let g;if(v.F=t,e.scoped){const e=s.o;e&&10&e.u&&t["s-sc"]?(g=t["s-sc"],t.classList.add(g+"-h")):t["s-sc"]&&delete t["s-sc"]}!R.document||A.tt&&A.tt.size||Gt(R.document.body,A.tt=new Map),t[O]=o,t.removeAttribute(O),s.J=Qt(v,f,h,m,t,t,o,p);let $=0;const b=f.length;let y;for(;$<b;$++){y=f[$];const o=y.P+"."+y.U,s=A.tt.get(o),i=y.F;if(u){if((null==(r=y.I)?void 0:(""+r).includes("-"))&&"slot-fb"!==y.I&&!y.F.shadowRoot){const t=d(y.F);if(t){const n=Ft(t.o,e.mode?y.F.getAttribute("s-mode"):void 0),o=R.document.querySelector(`style[sty-id="${n}"]`);o&&m.unshift(o.cloneNode(!0))}}}else i["s-hn"]=Zn(n).toUpperCase(),"slot"===y.I&&(i["s-cr"]=t["s-cr"]);"slot"===y.I&&(y.D=y.F["s-sn"]||y.F.name||null,y.M?(y.u|=2,y.F.childNodes.length||y.M.forEach((t=>{y.F.appendChild(t.F)}))):y.u|=1),s&&s.isConnected&&(s.parentElement.shadowRoot&&""===s["s-en"]&&s.parentNode.insertBefore(i,s.nextSibling),s.parentNode.removeChild(s),u||(i["s-oo"]=parseInt(y.U))),s&&!s["s-id"]&&A.tt.delete(o)}const w=[],S=p.length;let j,x,C,_,E=0,k=0;for(;E<S;E++)if(j=p[E],j&&j.length)for(C=j.length,x=0;x<C;x++){if(_=j[x],w[_.hostId]||(w[_.hostId]=A.tt.get(_.hostId)),!w[_.hostId])continue;const t=w[_.hostId];t.shadowRoot&&_.node.parentElement!==t&&t.insertBefore(_.node,null==(l=null==(i=j[x-1])?void 0:i.node)?void 0:l.nextSibling),t.shadowRoot&&u||(_.slot["s-cr"]||(_.slot["s-cr"]=t["s-cr"],_.slot["s-cr"]=!_.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),rt(_.node,_.slot,!1,_.node["s-oo"]||k),(null==(c=_.node.parentElement)?void 0:c.shadowRoot)&&_.node.getAttribute&&_.node.getAttribute("slot")&&_.node.removeAttribute("slot"),e.experimentalSlotFixes&&St(_.node)),k=(_.node["s-oo"]||k)+1}if(e.scoped&&g&&h.length&&h.forEach((t=>{t.F.parentElement.classList.add(g+"-s")})),e.shadowDom&&u&&!u.childNodes.length){let e=0;const n=m.length;if(n){for(;e<n;e++){const t=m[e];t&&u.appendChild(t)}Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-en"]&&"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):8!==t.nodeType||t.nodeValue||t.parentNode.removeChild(t))}))}}s.$hostElement$=t,a()})(t,o.C,s,n)}if(e.slotRelocation&&!s&&(e.hydrateServerSide||(e.slot||e.shadowDom)&&12&o.u)&&Fn(t),e.asyncLoading){let o=t;for(;o=o.parentNode||o.host;)if(e.hydrateClientSide&&1===o.nodeType&&o.hasAttribute("s-id")&&o["s-p"]||o["s-p"]){$n(n,n.K=o);break}}e.prop&&!e.hydrateServerSide&&o.t&&Object.entries(o.t).map((([e,[n]])=>{if(31&n&&Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];delete t[e],t[e]=n}})),e.initializeNextTick?q((()=>Dn(t,n,o))):Dn(t,n,o)}s()}},Fn=t=>{if(!R.document)return;const n=t["s-cr"]=R.document.createComment(e.isDebug?`content-ref (host=${t.localName})`:"");n["s-cn"]=!0,hn(t,n,t.firstChild)},Pn=(t,n)=>{e.lazyLoad&&kn(t,"disconnectedCallback",void 0,n||t)},Un=async t=>{if(!(1&A.u)){const n=d(t);e.hostListener&&(null==n?void 0:n.rt)&&(n.rt.map((t=>t())),n.rt=void 0),e.lazyLoad?(null==n?void 0:n.l)?Pn(n.l,t):(null==n?void 0:n.S)&&n.S.then((()=>Pn(n.l,t))):Pn(t)}At.has(t)&&At.delete(t),t.shadowRoot&&At.has(t.shadowRoot)&&At.delete(t.shadowRoot)},Bn=(t,n)=>{const o={u:n[0],C:n[1]};try{e.member&&(o.t=n[2]),e.hostListener&&(o.st=n[3]),e.propChangeCallback&&(o.nt=Re(t.nt),o.ot=t.ot,o.et=t.et),e.reflect&&(o.X=[]),e.shadowDom&&!D&&1&o.u&&(o.u|=8),!(1&o.u)&&256&o.u?e.experimentalSlotFixes?ut(t.prototype):(e.slotChildNodesFix&&wt(t.prototype),e.cloneNodeFix&&ft(t.prototype),e.appendChildSlotFix&&dt(t.prototype),e.scopedSlotTextContentFix&&2&o.u&&yt(t.prototype)):e.cloneNodeFix&&ft(t.prototype),e.hydrateClientSide&&e.shadowDom&&Ut();const s=t.prototype.connectedCallback,r=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){p(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const t=d(this);if(!t)return;Wn(this,t,o.st,!1),this.__hasHostListenerAttached=!0}Hn(this),s&&s.call(this)},disconnectedCallback(){Un(this),r&&r.call(this)},__attachShadow(){if(D)if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.C}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Z.call(this,o);else this.shadowRoot=this}}),Object.defineProperty(t,"is",{value:o.C,configurable:!0}),An(t,o,3)}catch(e){return v(e),t}},zn=(t,n={})=>{var o;if(e.profile&&performance.mark&&performance.mark("st:app:start"),(()=>{if(e.devTools){const t=R.stencil=R.stencil||{},e=t.inspect;t.inspect=t=>{let n=(t=>{const e=d(t);if(!e)return;const n=e.u,o=e.$hostElement$;return{renderCount:e.m,flags:{hasRendered:!!(2&n),hasConnected:!!(1&n),isWaitingForChildren:!!(4&n),isConstructingInstance:!!(8&n),isQueuedForUpdate:!!(16&n),hasInitializedComponent:!!(32&n),hasLoadedComponent:!!(64&n),isWatchReady:!!(128&n),isListenReady:!!(256&n),needsRerender:!!(512&n)},instanceValues:e.i,serializerValues:e.p,ancestorComponent:e.K,hostElement:o,lazyInstance:e.l,vnode:e.J,modeName:e.k,fetchedCbList:e.O,onReadyPromise:e.S,onReadyResolve:e.j,onInstancePromise:e.v,onInstanceResolve:e.$,onRenderResolve:e.q,queuedListeners:e.Z,rmListeners:e.rt,"s-id":o["s-id"],"s-cr":o["s-cr"],"s-lr":o["s-lr"],"s-p":o["s-p"],"s-rc":o["s-rc"],"s-sc":o["s-sc"]}})(t);return n||"function"!=typeof e||(n=e(t)),n}}})(),!R.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const s=Rt("bootstrapLazy"),r=[],i=n.exclude||[],l=R.customElements,c=R.document.head,a=c.querySelector("meta[charset]"),u=R.document.createElement("style"),f=[];let h,m=!0;Object.assign(A,n),A.N=new URL(n.resourcesUrl||"./",R.document.baseURI).href,e.asyncQueue&&n.syncQueue&&(A.u|=4),e.hydrateClientSide&&(A.u|=2),e.hydrateClientSide&&e.shadowDom&&Ut();let v=!1;if(t.map((t=>{t[1].map((o=>{var s,c;const a={u:o[0],C:o[1],t:o[2],st:o[3]};4&a.u&&(v=!0),e.member&&(a.t=o[2]),e.hostListener&&(a.st=o[3]),e.reflect&&(a.X=[]),e.propChangeCallback&&(a.nt=Re(o[4]),a.et=null!=(s=o[5])?s:{},a.ot=null!=(c=o[6])?c:{}),e.shadowDom&&!D&&1&a.u&&(a.u|=8);const u=e.transformTagName&&n.transformTagName?n.transformTagName(a.C):Zn(a.C),g=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),p(t=this,a),e.shadowDom&&1&a.u)if(D)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${a.C}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Z.call(t,a);else e.hydrateServerSide||"shadowRoot"in t||(t.shadowRoot=t)}connectedCallback(){const t=d(this);t&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Wn(this,t,a.st,!1)),h&&(clearTimeout(h),h=null),m?f.push(this):A.jmp((()=>Hn(this))))}disconnectedCallback(){A.jmp((()=>Un(this))),A.raf((()=>{var t;const e=d(this);if(!e)return;const n=f.findIndex((t=>t===this));n>-1&&f.splice(n,1),(null==(t=null==e?void 0:e.J)?void 0:t.F)instanceof Node&&!e.J.F.isConnected&&delete e.J.F}))}componentOnReady(){var t;return null==(t=d(this))?void 0:t.S}};!(1&a.u)&&256&a.u?e.experimentalSlotFixes?ut(g.prototype):(e.slotChildNodesFix&&wt(g.prototype),e.cloneNodeFix&&ft(g.prototype),e.appendChildSlotFix&&dt(g.prototype),e.scopedSlotTextContentFix&&2&a.u&&yt(g.prototype)):e.cloneNodeFix&&ft(g.prototype),e.formAssociated&&64&a.u&&(g.formAssociated=!0),e.hotModuleReplacement&&(g.prototype["s-hmr"]=function(t){((t,e,n)=>{const o=d(t);o&&(o.u=1,Dn(t,o,e,n))})(this,a,t)}),a._=t[0],i.includes(u)||l.get(u)||(r.push(u),l.define(u,An(g,a,1)))}))})),r.length>0&&(e.slotRelocation&&v&&(u.textContent+=N),e.invisiblePrehydration&&(e.hydratedClass||e.hydratedAttribute)&&(u.textContent+=r.sort()+"{visibility:hidden}.hydrated{visibility:inherit}"),u.innerHTML.length)){u.setAttribute("data-styles","");const t=null!=(o=A.T)?o:Mt(R.document);null!=t&&u.setAttribute("nonce",t),c.insertBefore(u,a?a.nextSibling:c.firstChild)}m=!1,f.length?f.map((t=>t.connectedCallback())):A.jmp(e.profile?()=>h=setTimeout(En,30,"timeout"):()=>h=setTimeout(En,30)),s()},Vn=(t,e)=>e,Wn=(t,n,o,s)=>{e.hostListener&&o&&R.document&&(e.hostListenerTargetParent&&(o=o.filter(s?([t])=>32&t:([t])=>!(32&t))),o.map((([o,s,r])=>{const i=e.hostListenerTarget?Jn(R.document,t,o):t,l=Yn(n,r),c=Xn(o);A.ael(i,s,l,c),(n.rt=n.rt||[]).push((()=>A.rel(i,s,l,c)))})))},Yn=(t,n)=>o=>{var s;try{e.lazyLoad?256&t.u?null==(s=t.l)||s[n](o):(t.Z=t.Z||[]).push([n,o]):t.$hostElement$[n](o)}catch(e){v(e,t.$hostElement$)}},Jn=(t,n,o)=>e.hostListenerTargetDocument&&4&o?t:e.hostListenerTargetWindow&&8&o?R:e.hostListenerTargetBody&&16&o?t.body:e.hostListenerTargetParent&&32&o&&n.parentElement?n.parentElement:n,Xn=t=>({passive:!!(1&t),capture:!!(2&t)}),qn=e.lazyLoad?class{}:globalThis.HTMLElement||class{},Kn=t=>A.T=t,Qn=new WeakMap,Gn=void 0;function Zn(t){return Gn?Gn(t):t}function to(t,e,n){const o=e||{},{children:s,...r}=o;let i=r;return void 0===n||"key"in r||(i={...r,key:n}),i&&0===Object.keys(i).length&&(i=null),void 0!==s?Array.isArray(s)?zt(t,i,...s):zt(t,i,s):zt(t,i)}var eo=(t,e,n,o)=>{var s;null!=e&&(null!=e["s-nr"]&&o.push(e),1===e.nodeType)&&[...Array.from(e.childNodes),...Array.from((null==(s=e.shadowRoot)?void 0:s.childNodes)||[])].forEach((e=>{const s=d(e);null==s||n.staticComponents.has(e.nodeName.toLowerCase())||no(t,e,s.J,n,{nodeIds:0}),eo(t,e,n,o)}))},no=(t,e,n,o,s)=>{if(null!=n){const r=++o.hostIds;if(e.setAttribute(O,r),null!=e["s-cr"]&&(e["s-cr"].nodeValue="r."+r),null!=n.M){const e=0;n.M.forEach(((n,o)=>{oo(t,n,s,r,e,o)}))}if(e&&n&&n.F&&!e.hasAttribute(_)){const t=e.parentElement;if(t&&t.childNodes){const o=Array.from(t.childNodes),s=o.find((t=>8===t.nodeType&&t["s-sr"]));if(s){const t=o.indexOf(e)-1;n.F.setAttribute(_,`${s["s-host-id"]}.${s["s-node-id"]}.0.${t}`)}}}}},oo=(t,e,n,o,s,r)=>{const i=e.F;if(null==i)return;const l=n.nodeIds++,c=`${o}.${l}.${s}.${r}`;if(i["s-host-id"]=o,i["s-node-id"]=l,1===i.nodeType)i.setAttribute(_,c),"string"!=typeof i["s-sn"]||i.getAttribute("slot")||i.setAttribute("s-sn",i["s-sn"]);else if(3===i.nodeType){const e=i.parentNode,n=null==e?void 0:e.nodeName;if("STYLE"!==n&&"SCRIPT"!==n){const n=t.createComment("t."+c);hn(e,n,i)}}else 8===i.nodeType&&i["s-sr"]&&(i.nodeValue=`s.${c}.${i["s-sn"]||""}`);if(null!=e.M){const r=s+1;e.M.forEach(((e,s)=>{oo(t,e,n,o,r,s)}))}},so=Object.freeze({__proto__:null,BUILD:e,Build:n,Env:{},Fragment:Vn,H:M,HTMLElement:M,HYDRATED_STYLE_ID:C,Host:Wt,Mixin:function(...t){return t.reduceRight(((t,e)=>e(t)),qn)},NAMESPACE:t,STENCIL_DEV_MODE:g,addHostEventListeners:Wn,bootstrapLazy:zn,cmpModules:w,connectedCallback:Hn,consoleDevError:$,consoleDevInfo:y,consoleDevWarn:b,consoleError:v,createEvent:(t,n,o)=>{const s=Fe(t);return{emit:t=>(e.isDev&&!s.isConnected&&b(`The "${n}" event was emitted, but the dispatcher node is no longer connected to the dom.`),Pe(s,n,{bubbles:!!(4&o),composed:!!(2&o),cancelable:!!(1&o),detail:t}))}},defineCustomElement:(t,e)=>{customElements.define(Zn(e[1]),Bn(t,e))},disconnectedCallback:Un,forceModeUpdate:t=>{if(e.style&&e.mode&&!e.lazyLoad){const e=Le(t),n=d(t);if(n&&n.k!==e){const o=n.o,s=t["s-sc"],r=Ft(o,e),i=t.constructor.style[e],l=o.u;i&&(j.has(r)||Dt(r,i,!!(1&l)),n.k=e,t.classList.remove(s+"-h",s+"-s"),Ht(n),_n(t))}}},forceUpdate:_n,getAssetPath:G,getElement:Fe,getHostRef:d,getMode:t=>{var e;return null==(e=d(t))?void 0:e.k},getRenderingRef:()=>xn,getValue:Rn,h:zt,insertVdomAnnotations:(t,e)=>{if(null!=t){const n=E in t?t[E]:{...k};n.staticComponents=new Set(e);const o=[];eo(t,t.body,n,o),o.forEach((e=>{var o;if(null!=e&&e["s-nr"]){const s=e["s-nr"];let r=s["s-host-id"],i=s["s-node-id"],l=`${r}.${i}`;if(null==r)if(r=0,n.rootLevelIds++,i=n.rootLevelIds,l=`${r}.${i}`,1===s.nodeType)s.setAttribute(_,l),"string"!=typeof s["s-sn"]||s.getAttribute("slot")||s.setAttribute("s-sn",s["s-sn"]);else if(3===s.nodeType){if(0===r&&""===(null==(o=s.nodeValue)?void 0:o.trim()))return void e.remove();const n=t.createComment(l);n.nodeValue="t."+l,hn(s.parentNode,n,s)}else if(8===s.nodeType){const e=t.createComment(l);e.nodeValue="c."+l,s.parentNode.insertBefore(e,s)}let c="o."+l;const a=e.parentElement;a&&(""===a["s-en"]?c+=".":"c"===a["s-en"]&&(c+=".c")),e.nodeValue=c}}))}},isMemberInElement:m,jsx:to,jsxDEV:function(t,e,n){const o=e||{},{children:s,...r}=o;let i=r;return void 0===n||"key"in r||(i={...r,key:n}),i&&0===Object.keys(i).length&&(i=null),void 0!==s?Array.isArray(s)?zt(t,i,...s):zt(t,i,s):zt(t,i)},jsxs:function(t,e,n){return to(t,e,n)},loadModule:S,modeResolutionChain:x,needsScopedSSR:()=>!1,nextTick:q,normalizeWatchers:Re,parsePropertyValue:He,plt:A,postUpdateComponent:Cn,promiseResolve:I,proxyComponent:An,proxyCustomElement:Bn,readTask:K,registerHost:p,registerInstance:h,render:function(t,e){let n=Qn.get(e);n||(n={u:0,o:{u:0,C:e.tagName},$hostElement$:e},Qn.set(e,n)),mn(n,t)},renderVdom:mn,setAssetPath:t=>A.N=t,setErrorHandler:t=>a=t,setMode:t=>x.push(t),setNonce:Kn,setPlatformHelpers:t=>{Object.assign(A,t)},setPlatformOptions:t=>Object.assign(A,t),setScopedSSR:()=>{},setTagTransformer:function(t){Gn&&console.warn("\n A tagTransformer has already been set. \n Overwriting it may lead to error and unexpected results if your components have already been defined.\n "),Gn=t},setValue:Mn,styles:j,supportsConstructableStylesheets:H,supportsListenerOptions:!0,supportsMutableAdoptedStyleSheets:F,supportsShadow:D,transformTag:Zn,win:R,writeTask:Q});export{e as B,Vn as F,Wt as H,t as N,so as S,M as a,zn as b,y as c,Q as d,G as e,_n as f,Fe as g,zt as h,I as p,h as r,Kn as s,R as w}
@@ -1 +1 @@
1
- import{C as n}from"./p-eEfqksk-.js";function i(n,i){var o;const e=null!==(o=null==n?void 0:n.trim())&&void 0!==o?o:"";if(""===e||"null"===e)return{data:null,parseError:!1};if(e.startsWith("{")||e.startsWith("["))try{const n=JSON.parse(e);return"object"!=typeof n||null===n||Array.isArray(n)?{data:null,parseError:!0}:{data:n,parseError:!1}}catch(n){return{data:null,parseError:!0}}return null!==i?{data:{[i]:e},parseError:!1}:{data:null,parseError:!0}}function o(n,i){return Object.keys(n).filter((n=>!i.includes(n)))}function e(i,o,e){if(n.isExisting(i[o]))return n.isString(i[o])?i[o]:void e.push(o)}function r(i,o,e){if(n.isExisting(i[o]))return n.isNumber(i[o])?i[o]:void e.push(o)}const t=["measure","label","unit","min","max","refLine","highlight"];function u(i){const u=[],s=e(i,"measure",u);if(void 0===s||""===s.trim())return u.push("measure"),{config:null,unknownKeys:o(i,t),invalidFields:u};const l={measure:s.trim()};return l.label=e(i,"label",u),l.unit=e(i,"unit",u),l.min=r(i,"min",u),l.max=r(i,"max",u),l.refLine=r(i,"refLine",u),l.highlight=function(i,o){if(!n.isExisting(i.highlight))return;if(!n.isObject(i.highlight)||Array.isArray(i.highlight))return void o.push("highlight");const e=i.highlight,t={},u=r(e,"from",o),s=r(e,"to",o);return void 0!==u&&(t.from=u),void 0!==s&&(t.to=s),t}(i,u),{config:l,unknownKeys:o(i,t),invalidFields:u}}const s=["measure","label","unit","group"];function l(n){const i=[],r=e(n,"measure",i);if(void 0===r||""===r.trim())return i.push("measure"),{config:null,unknownKeys:o(n,s),invalidFields:i};const t={measure:r.trim()};return t.label=e(n,"label",i),t.unit=e(n,"unit",i),t.group=e(n,"group",i),{config:t,unknownKeys:o(n,s),invalidFields:i}}const a=["measure"];function c(n){const i=[],r=e(n,"measure",i);return void 0===r||""===r.trim()?(i.push("measure"),{config:null,unknownKeys:o(n,a),invalidFields:i}):{config:{measure:r.trim()},unknownKeys:o(n,a),invalidFields:i}}const f=["values","label","unit","highlight"];function d(i){const t=[];let u=null;if("auto"===i.values?u="auto":n.isArray(i.values)&&i.values.every((i=>n.isNumber(i)))?u=i.values:t.push("values"),null===u)return{config:null,unknownKeys:o(i,f),invalidFields:t};const s={values:u};if(s.label=e(i,"label",t),s.unit=e(i,"unit",t),n.isExisting(i.highlight))if(n.isObject(i.highlight)&&!Array.isArray(i.highlight)){const n=r(i.highlight,"from",t);void 0!==n&&(s.highlight={from:n})}else t.push("highlight");return{config:s,unknownKeys:o(i,f),invalidFields:t}}const v=["points","values","max"];function m(i,e){const r=[],t={points:e.points,values:e.values,max:e.max};return n.isExisting(i.points)&&("auto"===i.points||"none"===i.points||"all"===i.points||n.isArray(i.points)&&i.points.every((i=>n.isString(i)))?t.points=i.points:r.push("points")),n.isExisting(i.values)&&(n.isBoolean(i.values)?t.values=i.values:r.push("values")),n.isExisting(i.max)&&(n.isNumber(i.max)&&i.max>0?t.max=Math.floor(i.max):r.push("max")),{config:t,unknownKeys:o(i,v),invalidFields:r}}const g=["level","columns"];function h(i){const e=[],r=n.isString(i.level)?i.level.toLowerCase():null;if("rowgroup"!==r&&"category"!==r)return e.push("level"),{config:null,unknownKeys:o(i,g),invalidFields:e};const t={level:r};return n.isExisting(i.columns)&&(n.isNumber(i.columns)&&i.columns>=1?t.columns=Math.floor(i.columns):e.push("columns")),{config:t,unknownKeys:o(i,g),invalidFields:e}}const p=["show","position"];function y(i){const e=[],r={show:!0,position:"right"};return n.isExisting(i.show)&&(n.isBoolean(i.show)?r.show=i.show:e.push("show")),n.isExisting(i.position)&&("right"===i.position||"bottom"===i.position?r.position=i.position:e.push("position")),{config:r,unknownKeys:o(i,p),invalidFields:e}}export{l as a,c as b,h as c,m as d,y as e,d as f,i as p,u as t}
1
+ import{C as n}from"./p-BbmobTg0.js";function i(n,i){var o;const e=null!==(o=null==n?void 0:n.trim())&&void 0!==o?o:"";if(""===e||"null"===e)return{data:null,parseError:!1};if(e.startsWith("{")||e.startsWith("["))try{const n=JSON.parse(e);return"object"!=typeof n||null===n||Array.isArray(n)?{data:null,parseError:!0}:{data:n,parseError:!1}}catch(n){return{data:null,parseError:!0}}return null!==i?{data:{[i]:e},parseError:!1}:{data:null,parseError:!0}}function o(n,i){return Object.keys(n).filter((n=>!i.includes(n)))}function e(i,o,e){if(n.isExisting(i[o]))return n.isString(i[o])?i[o]:void e.push(o)}function r(i,o,e){if(n.isExisting(i[o]))return n.isNumber(i[o])?i[o]:void e.push(o)}const t=["measure","label","unit","min","max","refLine","highlight"];function u(i){const u=[],l=e(i,"measure",u);if(void 0===l||""===l.trim())return u.push("measure"),{config:null,unknownKeys:o(i,t),invalidFields:u};const s={measure:l.trim()};return s.label=e(i,"label",u),s.unit=e(i,"unit",u),s.min=r(i,"min",u),s.max=r(i,"max",u),s.refLine=r(i,"refLine",u),s.highlight=function(i,o){if(!n.isExisting(i.highlight))return;if(!n.isObject(i.highlight)||Array.isArray(i.highlight))return void o.push("highlight");const e=i.highlight,t={},u=r(e,"from",o),l=r(e,"to",o);return void 0!==u&&(t.from=u),void 0!==l&&(t.to=l),t}(i,u),{config:s,unknownKeys:o(i,t),invalidFields:u}}const l=["measure","label","unit","group"];function s(n){const i=[],r=e(n,"measure",i);if(void 0===r||""===r.trim())return i.push("measure"),{config:null,unknownKeys:o(n,l),invalidFields:i};const t={measure:r.trim()};return t.label=e(n,"label",i),t.unit=e(n,"unit",i),t.group=e(n,"group",i),{config:t,unknownKeys:o(n,l),invalidFields:i}}const a=["measure"];function c(n){const i=[],r=e(n,"measure",i);return void 0===r||""===r.trim()?(i.push("measure"),{config:null,unknownKeys:o(n,a),invalidFields:i}):{config:{measure:r.trim()},unknownKeys:o(n,a),invalidFields:i}}const f=["values","label","unit","highlight"];function d(i){const t=[];let u=null;if("auto"===i.values?u="auto":n.isArray(i.values)&&i.values.every((i=>n.isNumber(i)))?u=i.values:t.push("values"),null===u)return{config:null,unknownKeys:o(i,f),invalidFields:t};const l={values:u};if(l.label=e(i,"label",t),l.unit=e(i,"unit",t),n.isExisting(i.highlight))if(n.isObject(i.highlight)&&!Array.isArray(i.highlight)){const n=r(i.highlight,"from",t);void 0!==n&&(l.highlight={from:n})}else t.push("highlight");return{config:l,unknownKeys:o(i,f),invalidFields:t}}const v=["points","values","max"];function m(i,e){const r=[],t={points:e.points,values:e.values,max:e.max};return n.isExisting(i.points)&&("auto"===i.points||"none"===i.points||"all"===i.points||n.isArray(i.points)&&i.points.every((i=>n.isString(i)))?t.points=i.points:r.push("points")),n.isExisting(i.values)&&(n.isBoolean(i.values)?t.values=i.values:r.push("values")),n.isExisting(i.max)&&(n.isNumber(i.max)&&i.max>0?t.max=Math.floor(i.max):r.push("max")),{config:t,unknownKeys:o(i,v),invalidFields:r}}const g=["level","columns"];function h(i){const e=[],r=n.isString(i.level)?i.level.toLowerCase():null;if("rowgroup"!==r&&"category"!==r)return e.push("level"),{config:null,unknownKeys:o(i,g),invalidFields:e};const t={level:r};return n.isExisting(i.columns)&&(n.isNumber(i.columns)&&i.columns>=1?t.columns=Math.floor(i.columns):e.push("columns")),{config:t,unknownKeys:o(i,g),invalidFields:e}}const p=["show","position"];function y(i){const e=[],r={show:!0,position:"right"};return n.isExisting(i.show)&&(n.isBoolean(i.show)?r.show=i.show:e.push("show")),n.isExisting(i.position)&&("right"===i.position||"bottom"===i.position?r.position=i.position:e.push("position")),{config:r,unknownKeys:o(i,p),invalidFields:e}}export{s as a,c as b,h as c,m as d,y as e,d as f,i as p,u as t}
@@ -0,0 +1 @@
1
+ import{g as t}from"./p-C5UYpZUU.js";import{r}from"./p-DtLI_CzV.js";const o=(o,s)=>{let a;const e=new MutationObserver((()=>{var t;a&&s(null!==(t=a.textContent)&&void 0!==t?t:"")})),i=o.connectedCallback;o.connectedCallback=()=>{var n;a=t(o),e.observe(a,{childList:!0,subtree:!0,characterData:!0}),s(null!==(n=a.textContent)&&void 0!==n?n:""),r(i,o)};const n=o.disconnectedCallback;o.disconnectedCallback=()=>{e.disconnect(),r(n,o)}};export{o as w}
@@ -1 +1 @@
1
- import{C as t}from"./p-eEfqksk-.js";class s{constructor(t,s,i){this.pos=t,this.neg=s,this.neu=i,this.needleHeadColour="#000000"}getSVGStyle(t){return"pos"===t?this.pos:"neg"===t?this.neg:this.neu}}class i{constructor(t){this.svgStyleAdapter=t}adapt(i){const h=new s(this.svgStyleAdapter.defaultPos(),this.svgStyleAdapter.defaultNeg(),this.svgStyleAdapter.defaultNeu());return t.isExisting(i.pos)&&(h.pos=this.svgStyleAdapter.adapt(i.pos)),t.isExisting(i.neg)&&(h.neg=this.svgStyleAdapter.adapt(i.neg)),t.isExisting(i.pp)&&(h.neu=this.svgStyleAdapter.adapt(i.neu)),t.isString(i.needleHeadColour)&&(h.needleHeadColour=i.needleHeadColour),h}default(){return new s(this.svgStyleAdapter.defaultPos(),this.svgStyleAdapter.defaultNeg(),this.svgStyleAdapter.defaultNeu())}}export{i as S}
1
+ import{C as t}from"./p-BbmobTg0.js";class s{constructor(t,s,i){this.pos=t,this.neg=s,this.neu=i,this.needleHeadColour="#000000"}getSVGStyle(t){return"pos"===t?this.pos:"neg"===t?this.neg:this.neu}}class i{constructor(t){this.svgStyleAdapter=t}adapt(i){const h=new s(this.svgStyleAdapter.defaultPos(),this.svgStyleAdapter.defaultNeg(),this.svgStyleAdapter.defaultNeu());return t.isExisting(i.pos)&&(h.pos=this.svgStyleAdapter.adapt(i.pos)),t.isExisting(i.neg)&&(h.neg=this.svgStyleAdapter.adapt(i.neg)),t.isExisting(i.pp)&&(h.neu=this.svgStyleAdapter.adapt(i.neu)),t.isString(i.needleHeadColour)&&(h.needleHeadColour=i.needleHeadColour),h}default(){return new s(this.svgStyleAdapter.defaultPos(),this.svgStyleAdapter.defaultNeg(),this.svgStyleAdapter.defaultNeu())}}export{i as S}
@@ -1 +1 @@
1
- import{g as t,f as e}from"./p-B_d-jp99.js";import{g as s,c as r,D as n}from"./p-BgIpdpfH.js";import{r as a}from"./p-B4JfKvVT.js";import{m as i,S as o,b as u,A as c,c as l,T as h,D as d,d as m,M as f,e as y,r as b}from"./p-eEfqksk-.js";import{b as N,O as g}from"./p-C5uvAEKI.js";const p=n=>{let o,u,c,l;const h=()=>{const t=u.componentStyles.state;l=i([t._system||{},t._default||{},t[c]||{}],{arrayMergeType:"overwrite"})},d=new MutationObserver((s=>{s.forEach((s=>{"selected-style"===s.attributeName&&(c=t(n).getAttribute("selected-style"),h(),e(n))}))})),m=n.connectedCallback;n.connectedCallback=()=>{const r=t(n);u=s(r),l=u.componentStyles.state._system,d.observe(r,{attributes:!0,attributeFilter:["selected-style"]}),c=t(n).getAttribute("selected-style"),h(),o=u.componentStyles.on("set",(s=>{s===c&&(c=t(n).getAttribute("selected-style"),h(),e(t(n)))})),a(m,n)};const f=n.disconnectedCallback;return n.disconnectedCallback=()=>{d.disconnect(),a(o),r(t(n)),a(f,n)},t=>t(l)},v=/^\s*(set|first|last|min|max|avg|sum|lit)\(\s*(.*?)\s*\)\s*$/,S=/^[A-Za-z_][A-Za-z0-9_]*$/,k=["min","max","avg","sum"];class D{constructor(t,e,s,r){this.label=t,this.alias=e,this.fn=s,this.arg=r}get isNumeric(){return k.includes(this.fn)}}function w(t){if("string"!=typeof t)return!1;const e=v.exec(t);if(!e)return!1;const[,s,r]=e;return"lit"===s?r.length>0:S.test(r)}function T(t,e,s){if(!w(s))return null;const[,r,n]=v.exec(s);return new D(t,e,r,n)}var O,A;!function(t){t.YEAR="year",t.QUARTER="quarter",t.MONTH="month",t.WEEK="week",t.DAY="day",t.HOUR="hour",t.MINUTE="minute",t.SECOND="second",t.MILLISECOND="millisecond",t.NONE="fallback",t.AUTO="auto"}(O||(O={})),function(t){t.AVG="avg",t.INTERVAL="interval",t.START="start",t.END="end",t.YTD="ytd",t.YTG="ytg",t.CUM="cum",t.MAT="mat",t.NONE="none",t.AUTO="auto"}(A||(A={}));class M{constructor(){this._dateFormat={year:"yyyy",quarter:"q'Q' yyyy",month:"LLL yyyy",week:"'KW'WW yyyy",day:"dd.MM.yyyy",hour:"TT",minute:"TT",second:"TT",millisecond:"TT:SSS",fallback:"dd.MM.yyyy"},this._dateFormatShort={year:"yy",quarter:"q'Q'",month:"LLL",week:"'KW'WW",day:"dd",hour:"hh'h'",minute:"mm'm'",second:"ss's'",millisecond:"SSS'ms'",fallback:"dd.MM.yyyy"},this._dateLinkFormat={avg:"Ø[LINK]",interval:"[DATE]..[DATE2]",start:".[DATE]",end:"[DATE].",ytd:"_[DATE]",ytg:"[DATE]_",cum:"[DATE]_[DATE2]",mat:"~[DATE]",none:"[DATE]"},this.locale="de",this.dateFormatPinned=!1,this.dateFormatShortPinned=!1,this.dateFormat=this._dateFormat,this.dateLinkFormat=this._dateLinkFormat,this.dateFormatShort=this._dateFormatShort}setDateLinkFormat(t){this.dateLinkFormat=t}setDateFormat(t){this.dateFormat=t,this.dateFormatPinned=!0}setDateFormatShort(t){this.dateFormatShort=t,this.dateFormatShortPinned=!0}setLocale(t){this.locale=t,this.dateFormatPinned||(this.dateFormat=Object.assign(Object.assign({},this._dateFormat),M.LOCALE_DATE_FORMAT[t]||{})),this.dateFormatShortPinned||(this.dateFormatShort=Object.assign(Object.assign({},this._dateFormatShort),M.LOCALE_DATE_FORMAT_SHORT[t]||{}))}getDateString(t,e){return t.setLocale(this.locale).toFormat(this.dateFormat[e]||this.dateFormat.fallback)}getSmartDateString(t,e){switch(e){case O.DAY:return this.getFormatedDayDate(t);case O.MONTH:return this.getFormatedMonthDate(t);case O.QUARTER:return this.getFormatedQuarterDate(t);case O.WEEK:return this.getFormatedWeekDate(t);case O.HOUR:return this.getFormatedHourDate(t);case O.MINUTE:return this.getFormatedMinuteDate(t);case O.SECOND:return this.getFormatedSecondDate(t);case O.MILLISECOND:return this.getFormatedMilliSecondDate(t);default:return this.getDateString(t,e)}}calculateDistanceType(t,e,s=32){if(null==e)return O.DAY;const r="number"==typeof t?n.fromMillis(t):t,a="number"==typeof e?n.fromMillis(e):e;return 0===a.diff(r).as("milliseconds")?O.DAY:a.diff(r).as("milliseconds")<s?O.MILLISECOND:a.diff(r).as("seconds")<s?O.SECOND:a.diff(r).as("minutes")<s?O.MINUTE:a.diff(r).as("hours")<s?O.HOUR:a.diff(r).as("days")<s?O.DAY:a.diff(r).as("weeks")<s?O.WEEK:a.diff(r).as("months")<s?O.MONTH:a.diff(r).as("quarters")<s?O.QUARTER:O.YEAR}datesBetween(t,e,s,r){const n=this.convertDateDistanceToMomentunitOfTime(s),a=t.startOf(n),i=e.endOf(n);let o=i.diff(a).as(n);const u=[];o>=r&&(o=r);let c=a;do{u.push(c),c=c.plus(this.createDiratonLike(n,1))}while(c<=i&&u.length<o);return u}getDateLinkString(t,e,s,r,a){if(null==t&&null==e)return"";if(null==t&&s!==A.END&&s!==A.YTD)return"";if(null==e&&(A.INTERVAL===s||A.CUM===s||A.END===s||A.YTD===s))return"";const i=t||n.now(),o=e;r===O.AUTO&&(r=this.calculateDistanceType(i,o,a));let u=this.getDateString(i,r),c="",l=A.NONE;return null!=o&&(c=this.getDateString(o,r),l=A.INTERVAL,u===c&&s===A.INTERVAL&&(s=A.NONE),u===c&&s===A.AVG&&(l=A.NONE),A.END!==s&&A.YTD!==s||(u=c),(s===A.INTERVAL||s===A.CUM||A.AVG)&&(r===O.QUARTER?i.quarter===o.quarter&&i.year===o.year?c=c.replace(" "+o.year,""):i.year===o.year&&(u=u.replace(" "+i.year,"")):r===O.MONTH?i.month===o.month&&i.year===o.year?c=c.replace(" "+o.year,""):i.year===o.year&&(u=u.replace(" "+i.year,"")):r===O.WEEK&&(i.weekNumber===o.weekNumber&&i.year===o.year?c=c.replace(" "+o.year,""):i.year===o.year&&(u=u.replace(" "+i.year,""))))),this.dateLinkFormat[s].replace("[LINK]",this.dateLinkFormat[l]).replace("[DATE]",u).replace("[DATE2]",c)}getShortDateString(t,e){return t.setLocale(this.locale).toFormat(this.dateFormatShort[e]||this.dateFormatShort.fallback)}getFormatedDayDate(t){let e=this.dateFormatShort.day;return this.isFirstInMonth(t)&&(e+=" "+this.dateFormatShort.month),this.isJanuary(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedMonthDate(t){let e=this.dateFormatShort.month;return this.isJanuary(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedQuarterDate(t){let e=this.dateFormatShort.quarter;return this.isFirstQuarter(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedWeekDate(t){let e=this.dateFormatShort.week;return this.isFirstWeek(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedHourDate(t){let e=this.dateFormatShort.hour;return this.isFirstHour(t)&&(e+=" "+this.dateFormatShort.day),t.setLocale(this.locale).toFormat(e)}getFormatedMinuteDate(t){let e=this.dateFormatShort.minute;return this.isFirstMinute(t)&&(e=this.dateFormatShort.hour+":"+e),t.setLocale(this.locale).toFormat(e)}getFormatedSecondDate(t){let e=this.dateFormatShort.second;return this.isFirstSecond(t)&&(e=this.dateFormatShort.minute+":"+e),t.setLocale(this.locale).toFormat(e)}getFormatedMilliSecondDate(t){let e=this.dateFormatShort.millisecond;return this.isFirstMilliSecond(t)&&(e=this.dateFormatShort.second+":"+e),t.setLocale(this.locale).toFormat(e)}isFirstInMonth(t){return 1===t.day}isJanuary(t){return 1===t.month}isFirstQuarter(t){return 1===t.quarter}isFirstWeek(t){return 1===t.weekNumber}isFirstHour(t){return 0===t.hour}isFirstMinute(t){return 0===t.minute}isFirstSecond(t){return 0===t.second}isFirstMilliSecond(t){return 0===t.millisecond}convertDateDistanceToMomentunitOfTime(t){let e;switch(t){case O.YEAR:e="year";break;case O.MONTH:e="month";break;case O.QUARTER:e="quarter";break;case O.WEEK:e="week";break;case O.DAY:e="day";break;case O.HOUR:e="hour";break;case O.MINUTE:e="minute";break;case O.SECOND:e="second";break;case O.MILLISECOND:e="millisecond";break;default:e="day"}return e}createDiratonLike(t,e){switch(t){case"year":return{years:e};case"month":return{months:e};case"quarter":return{quarters:e};case"week":return{weeks:e};case"day":default:return{days:e};case"hour":return{hours:e};case"minute":return{minutes:e};case"second":return{seconds:e};case"millisecond":return{milliseconds:e}}}}function J(t){return null==t||""===t||"null"===t}function F(t){return J(t)||"auto"===t.trim().toLowerCase()?[]:E((null==t?void 0:t.split(",").filter((t=>!(t.toUpperCase().trim()in o)))).toString())}function E(t){return J(t)?[]:t.replace(";",",").split(",").filter((t=>{var e,s,r;const n=t.split("_"),a=null===(e=n[0])||void 0===e?void 0:e.replace(/^dr|^d/,"").toUpperCase().trim(),i=null===(s=n[1])||void 0===s?void 0:s.toUpperCase().trim(),c=null===(r=n[2])||void 0===r?void 0:r.toUpperCase().trim();return 3!==n.length||!(a in o)||!(i in o)||!(c in u)}))}function j(t){return J(t)?[]:E(t.split(",").filter((t=>!(t.toUpperCase().trim()in o))).toString())}function L(t){return J(t)||"auto"===t.trim().toLowerCase()?[]:E(t.split(",").filter((t=>!(t.toUpperCase()in N))).toString())}function W(t){return!J(t)&&Number.isInteger(Number(t))}function $(t){return!J(t)&&!Number.isNaN(Number(t))}function q(t){return!J(t)&&(null==t?void 0:t.toUpperCase())in g}function I(t){return"auto"===(null==t?void 0:t.toLowerCase())||(null==t?void 0:t.toUpperCase())in c}function _(t){if(J(t))return[];try{const e=JSON.parse(t);if(e instanceof Array)return e.filter((t=>!(t.hasOwnProperty("name")&&t.hasOwnProperty("unit"))))}catch(t){console.error("validateMeasureList: failed to parse JSON",t)}return["Invalid JSON structure"]}function z(t){const e=Date.parse(t);return Number.isInteger(e)}function x(t){return(null==t?void 0:t.toUpperCase())in A}function G(t){return(null==t?void 0:t.toUpperCase())in O}function K(t){return(null==t?void 0:t.toUpperCase())in l}function B(t){return!J(t)&&(null==t?void 0:t.toUpperCase())in d}function C(t){return!J(t)&&["true","false",!0,!1].some((e=>e===t))}function H(t){return!J(t)&&(null==t?void 0:t.toUpperCase())in m}function Q(t){if(J(t))return[];try{const e=JSON.parse(t);if(e instanceof Array)return e.filter((t=>!(t.hasOwnProperty("rowGroup")&&t.hasOwnProperty("category")&&t.hasOwnProperty("subCategory"))))}catch(t){console.error("validateThereOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function Z(t){if(J(t))return[];try{const e=JSON.parse(t);if(null!==e&&"object"==typeof e&&!(e instanceof Array))return Object.entries(e).filter((([,t])=>"string"!=typeof t||!w(t))).map((([t,e])=>`${t}: ${e}`))}catch(t){console.error("validateAttributesJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function P(t){if(J(t))return[];try{const e=JSON.parse(t);if(e instanceof Array)return e.filter((t=>!(t.hasOwnProperty("rowGroup")&&t.hasOwnProperty("category"))))}catch(t){console.error("validatePartOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function R(t){return(null==t?void 0:t.trim().toUpperCase())in f}function V(t){return["_","k","M","G","T","P","E","Z","Y","m","my","μ","n","p","f","a","z","y"].includes(null==t?void 0:t.trim())||["GREATEST","LEAST"].includes(null==t?void 0:t.trim().toUpperCase())}function Y(t){return(null==t?void 0:t.toUpperCase().trim())in y}function U(t){return(null==t?void 0:t.toUpperCase().trim())in h}function X(t){if(J(t))return[];try{return JSON.parse(t).filter((t=>!(t.hasOwnProperty("scenario")&&t.hasOwnProperty("name")&&t.hasOwnProperty("subGroups"))))}catch(t){console.error("validateColumnThereOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function tt(t){if(J(t))return[];try{const e=JSON.parse(t);if("object"!=typeof e||null===e||Array.isArray(e))return["stack: must be a JSON object"];const s=[];if(e.hasOwnProperty("by")){const t=["scenarios","dimensions"];t.includes(e.by)||s.push(`stack: 'by' must be one of: ${t.join(", ")}`)}else s.push("stack: 'by' is required");if(e.hasOwnProperty("mode")){const t=["absolute","relative","absolute-relative"];t.includes(e.mode)||s.push(`stack: 'mode' must be one of: ${t.join(", ")}`)}if(e.hasOwnProperty("order")){const t=["asc","desc","dataset"];t.includes(e.order)||s.push(`stack: 'order' must be one of: ${t.join(", ")}`)}return s}catch(t){return["stack: invalid JSON"]}}function et(t){return!J(t)&&null!==b(t)}M.LOCALE_DATE_FORMAT={en:{week:"'W'WW yyyy",day:"MM/dd/yyyy",fallback:"MM/dd/yyyy"}},M.LOCALE_DATE_FORMAT_SHORT={en:{week:"'W'WW",fallback:"MM/dd/yyyy"}};class st{constructor(){this.cache=new Map,this.tag=st.makeStyleTag()}static makeStyleTag(){const t=document.createElement("style");return t.type="text/css",t.setAttribute("data-bn-computed-style",""),t.append(document.createTextNode("")),(document.head||document.querySelector("head")).append(t),t}apply(t){t.forEach((t=>this.cache.set(t.className,t.style))),this.tag.innerHTML=Array.from(this.cache.values()).map((t=>t)).join("\n")}}const rt=new st;function nt(t){for(var e,s=0,r=0,n=t.length;n>=4;++r,n-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),s=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&s)+(59797*(s>>>16)<<16);switch(n){case 3:s^=(255&t.charCodeAt(r+2))<<16;case 2:s^=(255&t.charCodeAt(r+1))<<8;case 1:s=1540483477*(65535&(s^=255&t.charCodeAt(r)))+(59797*(s>>>16)<<16)}return(((s=1540483477*(65535&(s^=s>>>13))+(59797*(s>>>16)<<16))^s>>>15)>>>0).toString(36)}const at=t=>$(t)?`${t}px`:t,it={width:{className:"w",cssName:"width",attrName:"width",transform:at},height:{className:"h",cssName:"height",attrName:"height",transform:at},position:{className:"pst",cssName:"position",attrName:"position"},top:{className:"top",cssName:"top",attrName:"top",transform:at},right:{className:"rgt",cssName:"right",attrName:"right",transform:at},bottom:{className:"btm",cssName:"bottom",attrName:"bottom",transform:at},left:{className:"lft",cssName:"left",attrName:"left",transform:at},"font-size":{className:"fts",cssName:"font-size",attrName:"font-size",transform:at},"grid-column":{className:"gdc",cssName:"grid-column",attrName:"grid-column"},"grid-row":{className:"gdr",cssName:"grid-row",attrName:"grid-row"}},ot=Object.keys(it);function ut(t,e){const s=function(t,e){const s=nt(e);return`bn-c-${t.className}_${s}`}(t,e),r=function(t,e,s){return`.${e} {${t.cssName}: ${s};}`}(t,s,e);return{className:s,style:r}}const ct=t=>{const e=new Map;return ot.forEach((s=>{const r=t.getAttribute(s);r&&(["top","left","right","bottom"].includes(s)&&e.set("position",ut(it.position,"absolute")),e.set(s,ut(it[s],(it[s].transform||function(t){return t})(r))))})),e},lt=new MutationObserver((t=>{for(const s of t){const t=s.target,r=ct(t);rt.apply(r);const n=Array.from(r.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...n).join(" "),e(t)}})),ht=e=>{const s=e.connectedCallback,r=e.disconnectedCallback;e.connectedCallback=()=>{const r=t(e);if(!r)throw new Error("Can't find element field in component undefined");(t=>{const e=ct(t);rt.apply(e);const s=Array.from(e.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...s).join(" "),lt.observe(t,{attributes:!0,attributeFilter:ot,childList:!1,subtree:!1})})(r),a(s,e)},e.disconnectedCallback=()=>{a(r,e)}};export{X as A,Z as B,T as C,O as D,_ as E,z as F,x as G,A as H,W as a,p as b,et as c,q as d,C as e,$ as f,F as g,E as h,J as i,I as j,V as k,tt as l,G as m,K as n,nt as o,M as p,j as q,U as r,B as s,H as t,Q as u,L as v,ht as w,P as x,R as y,Y as z}
1
+ import{g as t,f as e}from"./p-C5UYpZUU.js";import{g as s,c as r,D as n}from"./p-D5e8I9Qe.js";import{r as a}from"./p-DtLI_CzV.js";import{m as i,S as o,b as u,A as c,c as l,T as h,D as d,d as m,M as f,e as y,r as b}from"./p-BbmobTg0.js";import{b as N,O as g}from"./p-B5Jd_eCX.js";const p=n=>{let o,u,c,l;const h=()=>{const t=u.componentStyles.state;l=i([t._system||{},t._default||{},t[c]||{}],{arrayMergeType:"overwrite"})},d=new MutationObserver((s=>{s.forEach((s=>{"selected-style"===s.attributeName&&(c=t(n).getAttribute("selected-style"),h(),e(n))}))})),m=n.connectedCallback;n.connectedCallback=()=>{const r=t(n);u=s(r),l=u.componentStyles.state._system,d.observe(r,{attributes:!0,attributeFilter:["selected-style"]}),c=t(n).getAttribute("selected-style"),h(),o=u.componentStyles.on("set",(s=>{s===c&&(c=t(n).getAttribute("selected-style"),h(),e(t(n)))})),a(m,n)};const f=n.disconnectedCallback;return n.disconnectedCallback=()=>{d.disconnect(),a(o),r(t(n)),a(f,n)},t=>t(l)},v=/^\s*(set|first|last|min|max|avg|sum|lit)\(\s*(.*?)\s*\)\s*$/,S=/^[A-Za-z_][A-Za-z0-9_]*$/,D=["min","max","avg","sum"];class k{constructor(t,e,s,r){this.label=t,this.alias=e,this.fn=s,this.arg=r}get isNumeric(){return D.includes(this.fn)}}function w(t){if("string"!=typeof t)return!1;const e=v.exec(t);if(!e)return!1;const[,s,r]=e;return"lit"===s?r.length>0:S.test(r)}function T(t,e,s){if(!w(s))return null;const[,r,n]=v.exec(s);return new k(t,e,r,n)}var O,A;!function(t){t.YEAR="year",t.QUARTER="quarter",t.MONTH="month",t.WEEK="week",t.DAY="day",t.HOUR="hour",t.MINUTE="minute",t.SECOND="second",t.MILLISECOND="millisecond",t.NONE="fallback",t.AUTO="auto"}(O||(O={})),function(t){t.AVG="avg",t.INTERVAL="interval",t.START="start",t.END="end",t.YTD="ytd",t.YTG="ytg",t.CUM="cum",t.MAT="mat",t.NONE="none",t.AUTO="auto"}(A||(A={}));class M{constructor(){this._dateFormat={year:"yyyy",quarter:"q'Q' yyyy",month:"LLL yyyy",week:"'KW'WW yyyy",day:"dd.MM.yyyy",hour:"TT",minute:"TT",second:"TT",millisecond:"TT:SSS",fallback:"dd.MM.yyyy"},this._dateFormatShort={year:"yy",quarter:"q'Q'",month:"LLL",week:"'KW'WW",day:"dd",hour:"hh'h'",minute:"mm'm'",second:"ss's'",millisecond:"SSS'ms'",fallback:"dd.MM.yyyy"},this._dateLinkFormat={avg:"Ø[LINK]",interval:"[DATE]..[DATE2]",start:".[DATE]",end:"[DATE].",ytd:"_[DATE]",ytg:"[DATE]_",cum:"[DATE]_[DATE2]",mat:"~[DATE]",none:"[DATE]"},this.locale="de",this.dateFormatPinned=!1,this.dateFormatShortPinned=!1,this.dateFormat=this._dateFormat,this.dateLinkFormat=this._dateLinkFormat,this.dateFormatShort=this._dateFormatShort}setDateLinkFormat(t){this.dateLinkFormat=t}setDateFormat(t){this.dateFormat=t,this.dateFormatPinned=!0}setDateFormatShort(t){this.dateFormatShort=t,this.dateFormatShortPinned=!0}setLocale(t){this.locale=t,this.dateFormatPinned||(this.dateFormat=Object.assign(Object.assign({},this._dateFormat),M.LOCALE_DATE_FORMAT[t]||{})),this.dateFormatShortPinned||(this.dateFormatShort=Object.assign(Object.assign({},this._dateFormatShort),M.LOCALE_DATE_FORMAT_SHORT[t]||{}))}getDateString(t,e){return t.setLocale(this.locale).toFormat(this.dateFormat[e]||this.dateFormat.fallback)}getSmartDateString(t,e){switch(e){case O.DAY:return this.getFormatedDayDate(t);case O.MONTH:return this.getFormatedMonthDate(t);case O.QUARTER:return this.getFormatedQuarterDate(t);case O.WEEK:return this.getFormatedWeekDate(t);case O.HOUR:return this.getFormatedHourDate(t);case O.MINUTE:return this.getFormatedMinuteDate(t);case O.SECOND:return this.getFormatedSecondDate(t);case O.MILLISECOND:return this.getFormatedMilliSecondDate(t);default:return this.getDateString(t,e)}}calculateDistanceType(t,e,s=32){if(null==e)return O.DAY;const r="number"==typeof t?n.fromMillis(t):t,a="number"==typeof e?n.fromMillis(e):e;return 0===a.diff(r).as("milliseconds")?O.DAY:a.diff(r).as("milliseconds")<s?O.MILLISECOND:a.diff(r).as("seconds")<s?O.SECOND:a.diff(r).as("minutes")<s?O.MINUTE:a.diff(r).as("hours")<s?O.HOUR:a.diff(r).as("days")<s?O.DAY:a.diff(r).as("weeks")<s?O.WEEK:a.diff(r).as("months")<s?O.MONTH:a.diff(r).as("quarters")<s?O.QUARTER:O.YEAR}datesBetween(t,e,s,r){const n=this.convertDateDistanceToMomentunitOfTime(s),a=t.startOf(n),i=e.endOf(n);let o=i.diff(a).as(n);const u=[];o>=r&&(o=r);let c=a;do{u.push(c),c=c.plus(this.createDiratonLike(n,1))}while(c<=i&&u.length<o);return u}getDateLinkString(t,e,s,r,a){if(null==t&&null==e)return"";if(null==t&&s!==A.END&&s!==A.YTD)return"";if(null==e&&(A.INTERVAL===s||A.CUM===s||A.END===s||A.YTD===s))return"";const i=t||n.now(),o=e;r===O.AUTO&&(r=this.calculateDistanceType(i,o,a));let u=this.getDateString(i,r),c="",l=A.NONE;return null!=o&&(c=this.getDateString(o,r),l=A.INTERVAL,u===c&&s===A.INTERVAL&&(s=A.NONE),u===c&&s===A.AVG&&(l=A.NONE),A.END!==s&&A.YTD!==s||(u=c),(s===A.INTERVAL||s===A.CUM||A.AVG)&&(r===O.QUARTER?i.quarter===o.quarter&&i.year===o.year?c=c.replace(" "+o.year,""):i.year===o.year&&(u=u.replace(" "+i.year,"")):r===O.MONTH?i.month===o.month&&i.year===o.year?c=c.replace(" "+o.year,""):i.year===o.year&&(u=u.replace(" "+i.year,"")):r===O.WEEK&&(i.weekNumber===o.weekNumber&&i.year===o.year?c=c.replace(" "+o.year,""):i.year===o.year&&(u=u.replace(" "+i.year,""))))),this.dateLinkFormat[s].replace("[LINK]",this.dateLinkFormat[l]).replace("[DATE]",u).replace("[DATE2]",c)}getShortDateString(t,e){return t.setLocale(this.locale).toFormat(this.dateFormatShort[e]||this.dateFormatShort.fallback)}getFormatedDayDate(t){let e=this.dateFormatShort.day;return this.isFirstInMonth(t)&&(e+=" "+this.dateFormatShort.month),this.isJanuary(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedMonthDate(t){let e=this.dateFormatShort.month;return this.isJanuary(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedQuarterDate(t){let e=this.dateFormatShort.quarter;return this.isFirstQuarter(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedWeekDate(t){let e=this.dateFormatShort.week;return this.isFirstWeek(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedHourDate(t){let e=this.dateFormatShort.hour;return this.isFirstHour(t)&&(e+=" "+this.dateFormatShort.day),t.setLocale(this.locale).toFormat(e)}getFormatedMinuteDate(t){let e=this.dateFormatShort.minute;return this.isFirstMinute(t)&&(e=this.dateFormatShort.hour+":"+e),t.setLocale(this.locale).toFormat(e)}getFormatedSecondDate(t){let e=this.dateFormatShort.second;return this.isFirstSecond(t)&&(e=this.dateFormatShort.minute+":"+e),t.setLocale(this.locale).toFormat(e)}getFormatedMilliSecondDate(t){let e=this.dateFormatShort.millisecond;return this.isFirstMilliSecond(t)&&(e=this.dateFormatShort.second+":"+e),t.setLocale(this.locale).toFormat(e)}isFirstInMonth(t){return 1===t.day}isJanuary(t){return 1===t.month}isFirstQuarter(t){return 1===t.quarter}isFirstWeek(t){return 1===t.weekNumber}isFirstHour(t){return 0===t.hour}isFirstMinute(t){return 0===t.minute}isFirstSecond(t){return 0===t.second}isFirstMilliSecond(t){return 0===t.millisecond}convertDateDistanceToMomentunitOfTime(t){let e;switch(t){case O.YEAR:e="year";break;case O.MONTH:e="month";break;case O.QUARTER:e="quarter";break;case O.WEEK:e="week";break;case O.DAY:e="day";break;case O.HOUR:e="hour";break;case O.MINUTE:e="minute";break;case O.SECOND:e="second";break;case O.MILLISECOND:e="millisecond";break;default:e="day"}return e}createDiratonLike(t,e){switch(t){case"year":return{years:e};case"month":return{months:e};case"quarter":return{quarters:e};case"week":return{weeks:e};case"day":default:return{days:e};case"hour":return{hours:e};case"minute":return{minutes:e};case"second":return{seconds:e};case"millisecond":return{milliseconds:e}}}}function J(t){return null==t||""===t||"null"===t}function F(t){return J(t)||"auto"===t.trim().toLowerCase()?[]:E((null==t?void 0:t.split(",").filter((t=>!(t.toUpperCase().trim()in o)))).toString())}function E(t){return J(t)?[]:t.replace(";",",").split(",").filter((t=>{var e,s,r;const n=t.split("_"),a=null===(e=n[0])||void 0===e?void 0:e.replace(/^dr|^d/,"").toUpperCase().trim(),i=null===(s=n[1])||void 0===s?void 0:s.toUpperCase().trim(),c=null===(r=n[2])||void 0===r?void 0:r.toUpperCase().trim();return 3!==n.length||!(a in o)||!(i in o)||!(c in u)}))}function L(t){return J(t)?[]:E(t.split(",").filter((t=>!(t.toUpperCase().trim()in o))).toString())}function j(t){return J(t)||"auto"===t.trim().toLowerCase()?[]:E(t.split(",").filter((t=>!(t.toUpperCase()in N))).toString())}function W(t){return!J(t)&&Number.isInteger(Number(t))}function $(t){return!J(t)&&!Number.isNaN(Number(t))}function q(t){return!J(t)&&(null==t?void 0:t.toUpperCase())in g}function I(t){return"auto"===(null==t?void 0:t.toLowerCase())||(null==t?void 0:t.toUpperCase())in c}function _(t){if(J(t))return[];try{const e=JSON.parse(t);if(e instanceof Array)return e.filter((t=>!(t.hasOwnProperty("name")&&t.hasOwnProperty("unit"))))}catch(t){console.error("validateMeasureList: failed to parse JSON",t)}return["Invalid JSON structure"]}function z(t){const e=Date.parse(t);return Number.isInteger(e)}function C(t){return(null==t?void 0:t.toUpperCase())in A}function x(t){return(null==t?void 0:t.toUpperCase())in O}function G(t){return(null==t?void 0:t.toUpperCase())in l}function Q(t){return!J(t)&&(null==t?void 0:t.toUpperCase())in d}function B(t){return!J(t)&&["true","false",!0,!1].some((e=>e===t))}function K(t){return!J(t)&&(null==t?void 0:t.toUpperCase())in m}function Z(t){if(J(t))return[];try{const e=JSON.parse(t);if(e instanceof Array)return e.filter((t=>!(t.hasOwnProperty("rowGroup")&&t.hasOwnProperty("category")&&t.hasOwnProperty("subCategory"))))}catch(t){console.error("validateThereOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function H(t){if(J(t))return[];try{const e=JSON.parse(t);if(null!==e&&"object"==typeof e&&!(e instanceof Array))return Object.entries(e).filter((([,t])=>"string"!=typeof t||!w(t))).map((([t,e])=>`${t}: ${e}`))}catch(t){console.error("validateAttributesJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function U(t){if(J(t))return[];try{const e=JSON.parse(t);if(e instanceof Array)return e.filter((t=>!(t.hasOwnProperty("rowGroup")&&t.hasOwnProperty("category"))))}catch(t){console.error("validatePartOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function P(t){return(null==t?void 0:t.trim().toUpperCase())in f}function Y(t){return["_","k","M","G","T","P","E","Z","Y","m","my","μ","n","p","f","a","z","y"].includes(null==t?void 0:t.trim())||["GREATEST","LEAST"].includes(null==t?void 0:t.trim().toUpperCase())}function R(t){return(null==t?void 0:t.toUpperCase().trim())in y}function V(t){return(null==t?void 0:t.toUpperCase().trim())in h}function X(t){if(J(t))return[];try{return JSON.parse(t).filter((t=>!(t.hasOwnProperty("scenario")&&t.hasOwnProperty("name")&&t.hasOwnProperty("subGroups"))))}catch(t){console.error("validateColumnThereOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function tt(t){if(J(t))return[];try{const e=JSON.parse(t);if("object"!=typeof e||null===e||Array.isArray(e))return["stack: must be a JSON object"];const s=[];if(e.hasOwnProperty("by")){const t=["scenarios","dimensions"];t.includes(e.by)||s.push(`stack: 'by' must be one of: ${t.join(", ")}`)}else s.push("stack: 'by' is required");if(e.hasOwnProperty("mode")){const t=["absolute","relative","absolute-relative"];t.includes(e.mode)||s.push(`stack: 'mode' must be one of: ${t.join(", ")}`)}if(e.hasOwnProperty("order")){const t=["asc","desc","dataset"];t.includes(e.order)||s.push(`stack: 'order' must be one of: ${t.join(", ")}`)}return s}catch(t){return["stack: invalid JSON"]}}function et(t){return!J(t)&&null!==b(t)}M.LOCALE_DATE_FORMAT={en:{week:"'W'WW yyyy",day:"MM/dd/yyyy",fallback:"MM/dd/yyyy"}},M.LOCALE_DATE_FORMAT_SHORT={en:{week:"'W'WW",fallback:"MM/dd/yyyy"}};class st{constructor(){this.cache=new Map,this.tag=st.makeStyleTag()}static makeStyleTag(){const t=document.createElement("style");return t.type="text/css",t.setAttribute("data-bn-computed-style",""),t.append(document.createTextNode("")),(document.head||document.querySelector("head")).append(t),t}apply(t){t.forEach((t=>this.cache.set(t.className,t.style))),this.tag.innerHTML=Array.from(this.cache.values()).map((t=>t)).join("\n")}}const rt=new st;function nt(t){for(var e,s=0,r=0,n=t.length;n>=4;++r,n-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),s=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&s)+(59797*(s>>>16)<<16);switch(n){case 3:s^=(255&t.charCodeAt(r+2))<<16;case 2:s^=(255&t.charCodeAt(r+1))<<8;case 1:s=1540483477*(65535&(s^=255&t.charCodeAt(r)))+(59797*(s>>>16)<<16)}return(((s=1540483477*(65535&(s^=s>>>13))+(59797*(s>>>16)<<16))^s>>>15)>>>0).toString(36)}const at=t=>$(t)?`${t}px`:t,it={width:{className:"w",cssName:"width",attrName:"width",transform:at},height:{className:"h",cssName:"height",attrName:"height",transform:at},position:{className:"pst",cssName:"position",attrName:"position"},top:{className:"top",cssName:"top",attrName:"top",transform:at},right:{className:"rgt",cssName:"right",attrName:"right",transform:at},bottom:{className:"btm",cssName:"bottom",attrName:"bottom",transform:at},left:{className:"lft",cssName:"left",attrName:"left",transform:at},"font-size":{className:"fts",cssName:"font-size",attrName:"font-size",transform:at},"grid-column":{className:"gdc",cssName:"grid-column",attrName:"grid-column"},"grid-row":{className:"gdr",cssName:"grid-row",attrName:"grid-row"}},ot=Object.keys(it);function ut(t,e){const s=function(t,e){const s=nt(e);return`bn-c-${t.className}_${s}`}(t,e),r=function(t,e,s){return`.${e} {${t.cssName}: ${s};}`}(t,s,e);return{className:s,style:r}}const ct=t=>{const e=new Map;return ot.forEach((s=>{const r=t.getAttribute(s);r&&(["top","left","right","bottom"].includes(s)&&e.set("position",ut(it.position,"absolute")),e.set(s,ut(it[s],(it[s].transform||function(t){return t})(r))))})),e},lt=new MutationObserver((t=>{for(const s of t){const t=s.target,r=ct(t);rt.apply(r);const n=Array.from(r.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...n).join(" "),e(t)}})),ht=e=>{const s=e.connectedCallback,r=e.disconnectedCallback;e.connectedCallback=()=>{const r=t(e);if(!r)throw new Error("Can't find element field in component undefined");(t=>{const e=ct(t);rt.apply(e);const s=Array.from(e.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...s).join(" "),lt.observe(t,{attributes:!0,attributeFilter:ot,childList:!1,subtree:!1})})(r),a(s,e)},e.disconnectedCallback=()=>{a(r,e)}};export{X as A,H as B,T as C,O as D,_ as E,z as F,C as G,A as H,W as a,p as b,et as c,q as d,B as e,$ as f,F as g,E as h,J as i,I as j,Y as k,tt as l,x as m,G as n,nt as o,M as p,L as q,V as r,Q as s,K as t,Z as u,j as v,ht as w,U as x,P as y,R as z}