@antv/infographic 0.2.13 → 0.2.14

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 (186) hide show
  1. package/dist/infographic.min.js +123 -116
  2. package/dist/infographic.min.js.map +1 -1
  3. package/esm/editor/commands/UpdateOptions.d.ts +4 -4
  4. package/esm/editor/commands/UpdateOptions.js +6 -3
  5. package/esm/editor/editor.d.ts +5 -1
  6. package/esm/editor/editor.js +16 -5
  7. package/esm/editor/index.d.ts +1 -0
  8. package/esm/editor/index.js +1 -0
  9. package/esm/editor/interactions/brush-select.d.ts +0 -1
  10. package/esm/editor/interactions/brush-select.js +2 -10
  11. package/esm/editor/interactions/drag-canvas.d.ts +35 -0
  12. package/esm/editor/interactions/drag-canvas.js +161 -0
  13. package/esm/editor/interactions/drag-element.js +4 -3
  14. package/esm/editor/interactions/index.d.ts +1 -0
  15. package/esm/editor/interactions/index.js +1 -0
  16. package/esm/editor/interactions/zoom-wheel.d.ts +9 -0
  17. package/esm/editor/interactions/zoom-wheel.js +32 -15
  18. package/esm/editor/managers/index.d.ts +1 -0
  19. package/esm/editor/managers/index.js +1 -0
  20. package/esm/editor/managers/state.d.ts +4 -2
  21. package/esm/editor/managers/state.js +14 -13
  22. package/esm/editor/managers/sync-registry.d.ts +15 -0
  23. package/esm/editor/managers/sync-registry.js +51 -0
  24. package/esm/editor/plugins/{edit-bar/components → components}/button.js +1 -1
  25. package/esm/editor/plugins/{edit-bar/components → components}/color-picker.js +1 -1
  26. package/esm/editor/plugins/{edit-bar/components → components}/icons.d.ts +1 -0
  27. package/esm/editor/plugins/{edit-bar/components → components}/icons.js +1 -0
  28. package/esm/editor/plugins/{edit-bar/components → components}/popover.js +2 -2
  29. package/esm/editor/plugins/{edit-bar/components → components}/select.js +1 -1
  30. package/esm/editor/plugins/core-sync.d.ts +8 -0
  31. package/esm/editor/plugins/core-sync.js +30 -0
  32. package/esm/editor/plugins/edit-bar/edit-items/align-elements.js +1 -1
  33. package/esm/editor/plugins/edit-bar/edit-items/font-align.js +1 -1
  34. package/esm/editor/plugins/edit-bar/edit-items/font-color.js +1 -1
  35. package/esm/editor/plugins/edit-bar/edit-items/font-family.js +1 -1
  36. package/esm/editor/plugins/edit-bar/edit-items/font-size.js +1 -1
  37. package/esm/editor/plugins/edit-bar/edit-items/icon-color.js +1 -1
  38. package/esm/editor/plugins/edit-bar/index.d.ts +2 -2
  39. package/esm/editor/plugins/edit-bar/index.js +1 -1
  40. package/esm/editor/plugins/index.d.ts +2 -0
  41. package/esm/editor/plugins/index.js +2 -0
  42. package/esm/editor/plugins/reset-viewbox.d.ts +33 -0
  43. package/esm/editor/plugins/reset-viewbox.js +186 -0
  44. package/esm/editor/types/editor.d.ts +13 -0
  45. package/esm/editor/types/index.d.ts +1 -0
  46. package/esm/editor/types/interaction.d.ts +9 -0
  47. package/esm/editor/types/state.d.ts +4 -2
  48. package/esm/editor/types/sync.d.ts +26 -0
  49. package/esm/editor/types/sync.js +1 -0
  50. package/esm/editor/utils/data.js +3 -1
  51. package/esm/editor/utils/event.d.ts +1 -0
  52. package/esm/editor/utils/event.js +8 -0
  53. package/esm/editor/utils/index.d.ts +1 -0
  54. package/esm/editor/utils/index.js +1 -0
  55. package/esm/editor/utils/object.d.ts +15 -0
  56. package/esm/editor/utils/object.js +70 -0
  57. package/esm/index.d.ts +4 -3
  58. package/esm/index.js +3 -2
  59. package/esm/options/types.d.ts +1 -0
  60. package/esm/runtime/options.js +7 -2
  61. package/esm/templates/built-in.js +24 -0
  62. package/esm/utils/measure-text.js +9 -6
  63. package/esm/utils/padding.d.ts +1 -0
  64. package/esm/utils/padding.js +6 -2
  65. package/esm/version.d.ts +1 -1
  66. package/esm/version.js +1 -1
  67. package/lib/editor/commands/UpdateOptions.d.ts +4 -4
  68. package/lib/editor/commands/UpdateOptions.js +6 -3
  69. package/lib/editor/editor.d.ts +5 -1
  70. package/lib/editor/editor.js +16 -5
  71. package/lib/editor/index.d.ts +1 -0
  72. package/lib/editor/index.js +1 -0
  73. package/lib/editor/interactions/brush-select.d.ts +0 -1
  74. package/lib/editor/interactions/brush-select.js +1 -9
  75. package/lib/editor/interactions/drag-canvas.d.ts +35 -0
  76. package/lib/editor/interactions/drag-canvas.js +165 -0
  77. package/lib/editor/interactions/drag-element.js +4 -3
  78. package/lib/editor/interactions/index.d.ts +1 -0
  79. package/lib/editor/interactions/index.js +3 -1
  80. package/lib/editor/interactions/zoom-wheel.d.ts +9 -0
  81. package/lib/editor/interactions/zoom-wheel.js +32 -15
  82. package/lib/editor/managers/index.d.ts +1 -0
  83. package/lib/editor/managers/index.js +1 -0
  84. package/lib/editor/managers/state.d.ts +4 -2
  85. package/lib/editor/managers/state.js +12 -11
  86. package/lib/editor/managers/sync-registry.d.ts +15 -0
  87. package/lib/editor/managers/sync-registry.js +55 -0
  88. package/lib/editor/plugins/{edit-bar/components → components}/button.js +1 -1
  89. package/lib/editor/plugins/{edit-bar/components → components}/color-picker.js +1 -1
  90. package/lib/editor/plugins/{edit-bar/components → components}/icons.d.ts +1 -0
  91. package/lib/editor/plugins/{edit-bar/components → components}/icons.js +2 -1
  92. package/lib/editor/plugins/{edit-bar/components → components}/popover.js +2 -2
  93. package/lib/editor/plugins/{edit-bar/components → components}/select.js +1 -1
  94. package/lib/editor/plugins/core-sync.d.ts +8 -0
  95. package/lib/editor/plugins/core-sync.js +34 -0
  96. package/lib/editor/plugins/edit-bar/edit-items/align-elements.js +1 -1
  97. package/lib/editor/plugins/edit-bar/edit-items/font-align.js +1 -1
  98. package/lib/editor/plugins/edit-bar/edit-items/font-color.js +1 -1
  99. package/lib/editor/plugins/edit-bar/edit-items/font-family.js +1 -1
  100. package/lib/editor/plugins/edit-bar/edit-items/font-size.js +1 -1
  101. package/lib/editor/plugins/edit-bar/edit-items/icon-color.js +1 -1
  102. package/lib/editor/plugins/edit-bar/index.d.ts +2 -2
  103. package/lib/editor/plugins/edit-bar/index.js +1 -1
  104. package/lib/editor/plugins/index.d.ts +2 -0
  105. package/lib/editor/plugins/index.js +5 -1
  106. package/lib/editor/plugins/reset-viewbox.d.ts +33 -0
  107. package/lib/editor/plugins/reset-viewbox.js +190 -0
  108. package/lib/editor/types/editor.d.ts +13 -0
  109. package/lib/editor/types/index.d.ts +1 -0
  110. package/lib/editor/types/interaction.d.ts +9 -0
  111. package/lib/editor/types/state.d.ts +4 -2
  112. package/lib/editor/types/sync.d.ts +26 -0
  113. package/lib/editor/types/sync.js +2 -0
  114. package/lib/editor/utils/data.js +3 -1
  115. package/lib/editor/utils/event.d.ts +1 -0
  116. package/lib/editor/utils/event.js +9 -0
  117. package/lib/editor/utils/index.d.ts +1 -0
  118. package/lib/editor/utils/index.js +1 -0
  119. package/lib/editor/utils/object.d.ts +15 -0
  120. package/lib/editor/utils/object.js +73 -0
  121. package/lib/index.d.ts +4 -3
  122. package/lib/index.js +9 -2
  123. package/lib/options/types.d.ts +1 -0
  124. package/lib/runtime/options.js +6 -1
  125. package/lib/templates/built-in.js +24 -0
  126. package/lib/utils/measure-text.js +9 -6
  127. package/lib/utils/padding.d.ts +1 -0
  128. package/lib/utils/padding.js +7 -2
  129. package/lib/version.d.ts +1 -1
  130. package/lib/version.js +1 -1
  131. package/package.json +1 -1
  132. package/src/editor/commands/UpdateOptions.ts +11 -6
  133. package/src/editor/editor.ts +26 -5
  134. package/src/editor/index.ts +1 -0
  135. package/src/editor/interactions/brush-select.ts +2 -8
  136. package/src/editor/interactions/drag-canvas.ts +203 -0
  137. package/src/editor/interactions/drag-element.ts +5 -4
  138. package/src/editor/interactions/index.ts +1 -0
  139. package/src/editor/interactions/zoom-wheel.ts +49 -13
  140. package/src/editor/managers/index.ts +1 -0
  141. package/src/editor/managers/state.ts +21 -21
  142. package/src/editor/managers/sync-registry.ts +65 -0
  143. package/src/editor/plugins/{edit-bar/components → components}/button.ts +1 -1
  144. package/src/editor/plugins/{edit-bar/components → components}/color-picker.ts +1 -1
  145. package/src/editor/plugins/{edit-bar/components → components}/icons.ts +4 -0
  146. package/src/editor/plugins/{edit-bar/components → components}/popover.ts +2 -2
  147. package/src/editor/plugins/{edit-bar/components → components}/select.ts +1 -1
  148. package/src/editor/plugins/core-sync.ts +44 -0
  149. package/src/editor/plugins/edit-bar/edit-items/align-elements.ts +2 -2
  150. package/src/editor/plugins/edit-bar/edit-items/font-align.ts +1 -1
  151. package/src/editor/plugins/edit-bar/edit-items/font-color.ts +1 -1
  152. package/src/editor/plugins/edit-bar/edit-items/font-family.ts +1 -1
  153. package/src/editor/plugins/edit-bar/edit-items/font-size.ts +3 -3
  154. package/src/editor/plugins/edit-bar/edit-items/icon-color.ts +1 -1
  155. package/src/editor/plugins/edit-bar/index.ts +2 -2
  156. package/src/editor/plugins/index.ts +2 -0
  157. package/src/editor/plugins/reset-viewbox.ts +258 -0
  158. package/src/editor/types/editor.ts +17 -0
  159. package/src/editor/types/index.ts +1 -0
  160. package/src/editor/types/interaction.ts +31 -0
  161. package/src/editor/types/state.ts +14 -2
  162. package/src/editor/types/sync.ts +31 -0
  163. package/src/editor/utils/data.ts +2 -1
  164. package/src/editor/utils/event.ts +7 -0
  165. package/src/editor/utils/index.ts +1 -0
  166. package/src/editor/utils/object.ts +106 -0
  167. package/src/index.ts +26 -2
  168. package/src/options/types.ts +4 -0
  169. package/src/runtime/options.ts +8 -1
  170. package/src/templates/built-in.ts +28 -0
  171. package/src/utils/measure-text.ts +6 -6
  172. package/src/utils/padding.ts +10 -2
  173. package/src/version.ts +1 -1
  174. /package/esm/editor/plugins/{edit-bar/components → components}/button.d.ts +0 -0
  175. /package/esm/editor/plugins/{edit-bar/components → components}/color-picker.d.ts +0 -0
  176. /package/esm/editor/plugins/{edit-bar/components → components}/index.d.ts +0 -0
  177. /package/esm/editor/plugins/{edit-bar/components → components}/index.js +0 -0
  178. /package/esm/editor/plugins/{edit-bar/components → components}/popover.d.ts +0 -0
  179. /package/esm/editor/plugins/{edit-bar/components → components}/select.d.ts +0 -0
  180. /package/lib/editor/plugins/{edit-bar/components → components}/button.d.ts +0 -0
  181. /package/lib/editor/plugins/{edit-bar/components → components}/color-picker.d.ts +0 -0
  182. /package/lib/editor/plugins/{edit-bar/components → components}/index.d.ts +0 -0
  183. /package/lib/editor/plugins/{edit-bar/components → components}/index.js +0 -0
  184. /package/lib/editor/plugins/{edit-bar/components → components}/popover.d.ts +0 -0
  185. /package/lib/editor/plugins/{edit-bar/components → components}/select.d.ts +0 -0
  186. /package/src/editor/plugins/{edit-bar/components → components}/index.ts +0 -0
@@ -1,17 +1,17 @@
1
- (function(W,it){typeof exports=="object"&&typeof module!="undefined"?it(exports):typeof define=="function"&&define.amd?define(["exports"],it):(W=typeof globalThis!="undefined"?globalThis:W||self,it(W.AntVInfographic={}))})(this,(function(W){"use strict";var $le=Object.defineProperty,Ele=Object.defineProperties;var Mle=Object.getOwnPropertyDescriptors;var Pc=Object.getOwnPropertySymbols;var gM=Object.prototype.hasOwnProperty,mM=Object.prototype.propertyIsEnumerable;var ds=Math.pow,pM=(W,it,Ct)=>it in W?$le(W,it,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):W[it]=Ct,ht=(W,it)=>{for(var Ct in it||(it={}))gM.call(it,Ct)&&pM(W,Ct,it[Ct]);if(Pc)for(var Ct of Pc(it))mM.call(it,Ct)&&pM(W,Ct,it[Ct]);return W},zt=(W,it)=>Ele(W,Mle(it));var py=(W,it)=>{var Ct={};for(var Jt in W)gM.call(W,Jt)&&it.indexOf(Jt)<0&&(Ct[Jt]=W[Jt]);if(W!=null&&Pc)for(var Jt of Pc(W))it.indexOf(Jt)<0&&mM.call(W,Jt)&&(Ct[Jt]=W[Jt]);return Ct};var yM=(W,it,Ct)=>new Promise((Jt,Xi)=>{var Oc=On=>{try{Ui(Ct.next(On))}catch(xr){Xi(xr)}},Sc=On=>{try{Ui(Ct.throw(On))}catch(xr){Xi(xr)}},Ui=On=>On.done?Jt(On.value):Promise.resolve(On.value).then(Oc,Sc);Ui((Ct=Ct.apply(W,it)).next())});var it=typeof document!="undefined"?document.currentScript:null;const Ct=new Map;function Jt(e,t){Ct.set(e,t)}function Xi(e){return Ct.get(e)}function Oc(){return Array.from(Ct.keys())}const Sc={"chart-pie-plain-text":{design:{title:"default",structure:{type:"chart-pie"},items:[{type:"plain-text"}]}},"chart-pie-compact-card":{design:{title:"default",structure:{type:"chart-pie",avoidLabelOverlap:!0},items:[{type:"compact-card"}]}},"chart-pie-pill-badge":{design:{title:"default",structure:{type:"chart-pie",avoidLabelOverlap:!0},items:[{type:"pill-badge"}]}},"chart-pie-donut-plain-text":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90},items:[{type:"plain-text"}]}},"chart-pie-donut-compact-card":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90,avoidLabelOverlap:!0},items:[{type:"compact-card"}]}},"chart-pie-donut-pill-badge":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90,avoidLabelOverlap:!0},items:[{type:"pill-badge"}]}}},Ui={"compare-quadrant-quarter-simple-card":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"quarter-simple-card"}]}},"compare-quadrant-quarter-circular":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"quarter-circular"}]}},"compare-quadrant-simple-illus":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"simple-illus"}]}}},On=new Set,xr={};Object.entries(Ui).forEach(([e,t])=>{xr[e]=t;const n=e.replace("compare-quadrant","quadrant");xr[n]=new Proxy(t,{get(r,i,o){return On.has(n)||(console.warn(`[Deprecated] "${n}" 已被废弃,将在下个版本移除,请使用 "${e}"`),On.add(n)),Reflect.get(r,i,o)}})});const bM=xr;var _M=Object.defineProperty,gy=Object.getOwnPropertySymbols,wM=Object.prototype.hasOwnProperty,xM=Object.prototype.propertyIsEnumerable,my=(e,t,n)=>t in e?_M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yy=(e,t)=>{for(var n in t||(t={}))wM.call(t,n)&&my(e,n,t[n]);if(gy)for(var n of gy(t))xM.call(t,n)&&my(e,n,t[n]);return e};const Ki={edgeType:"curved",edgeColorMode:"gradient",edgeWidth:2,colorMode:"branch",levelGap:80,nodeGap:18},Zi={edgeType:"curved",edgeWidth:2,edgeColorMode:"gradient",colorMode:"level",levelGap:80,nodeGap:18},vy={type:"lined-text",usePaletteColor:!0,showUnderline:!0,underlineThickness:2},by={type:"capsule-item"},_y={type:"circular-progress"},wy={type:"rounded-rect-node",positionH:"center"},xy={type:"compact-card"},CM=(e,t)=>yy(yy({type:"hierarchy-mindmap"},t!==void 0?{edgeAlign:t}:{}),e),Sn=(e,t,n,r)=>[e,{design:{structure:CM(t,r),item:n}}],PM=Object.fromEntries([Sn("hierarchy-mindmap-branch-gradient-lined-palette",Ki,vy,"bottom"),Sn("hierarchy-mindmap-level-gradient-lined-palette",Zi,vy,"bottom"),Sn("hierarchy-mindmap-branch-gradient-capsule-item",Ki,by),Sn("hierarchy-mindmap-level-gradient-capsule-item",Zi,by),Sn("hierarchy-mindmap-branch-gradient-circle-progress",Ki,_y,.4),Sn("hierarchy-mindmap-level-gradient-circle-progress",Zi,_y,.4),Sn("hierarchy-mindmap-branch-gradient-rounded-rect",Ki,wy),Sn("hierarchy-mindmap-level-gradient-rounded-rect",Zi,wy),Sn("hierarchy-mindmap-branch-gradient-compact-card",Ki,xy),Sn("hierarchy-mindmap-level-gradient-compact-card",Zi,xy)]),OM={"hierarchy-structure":{design:{title:"default",structure:{type:"hierarchy-structure"},item:"simple"}},"hierarchy-structure-mirror":{design:{title:"default",structure:{type:"hierarchy-structure",layerLabelPosition:"right"},item:"simple"}}};var SM=Object.defineProperty,Cy=Object.getOwnPropertySymbols,$M=Object.prototype.hasOwnProperty,EM=Object.prototype.propertyIsEnumerable,Py=(e,t,n)=>t in e?SM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oy=(e,t)=>{for(var n in t||(t={}))$M.call(t,n)&&Py(e,n,t[n]);if(Cy)for(var n of Cy(t))EM.call(t,n)&&Py(e,n,t[n]);return e};const MM={"tech-style":{edgeType:"straight",edgeStyle:"solid",edgeColorMode:"gradient",edgeMarker:"arrow",markerSize:12,edgeCornerRadius:5},"dashed-line":{edgeStyle:"dashed",edgeCornerRadius:10,edgeDashPattern:"10,5",edgeColorMode:"gradient",edgeMarker:"dot",markerSize:6,edgeOffset:6},"distributed-origin":{edgeOrigin:"distributed",edgeOriginPadding:30,edgeMarker:"arrow",edgeCornerRadius:10,markerSize:12,edgeColorMode:"gradient"},"curved-line":{edgeType:"curved",edgeColorMode:"gradient",edgeMarker:"none"},"dashed-arrow":{edgeType:"straight",edgeStyle:"dashed",edgeDashPattern:"8,4",edgeMarker:"arrow",markerSize:10,edgeCornerRadius:0}},IM=["capsule-item","rounded-rect-node","compact-card","badge-card","ribbon-card"],Sy={},$y="hierarchy-tree",AM=[{key:""},{key:"bt",orientation:"bottom-top"},{key:"lr",orientation:"left-right"},{key:"rl",orientation:"right-left"}],TM=(e,t,n)=>e?`${$y}-${e}-${t}-${n}`:`${$y}-${t}-${n}`;for(const e of IM)for(const[t,n]of Object.entries(MM))for(const{key:r,orientation:i}of AM){const o=TM(r,t,e);Sy[o]={design:{structure:Oy(Oy({type:"hierarchy-tree"},i?{orientation:i}:{}),n),item:{type:e}}}}const RM={"list-zigzag-up-compact-card":{design:{title:"default",structure:{type:"list-zigzag-up"},items:[{type:"compact-card"}]},themeConfig:{colorPrimary:"#17CA2C"}},"list-zigzag-up-simple":{design:{title:"default",structure:{type:"list-zigzag-up"},items:[{type:"simple",usePaletteColor:!0}]},themeConfig:{colorPrimary:"#17CA2C"}},"list-zigzag-down-compact-card":{design:{title:"default",structure:{type:"list-zigzag-down"},items:[{type:"compact-card"}]},themeConfig:{colorPrimary:"#17CA2C"}},"list-zigzag-down-simple":{design:{title:"default",structure:{type:"list-zigzag-down"},items:[{type:"simple",usePaletteColor:!0}]},themeConfig:{colorPrimary:"#17CA2C"}}};var kM=Object.defineProperty,LM=Object.defineProperties,NM=Object.getOwnPropertyDescriptors,Ey=Object.getOwnPropertySymbols,zM=Object.prototype.hasOwnProperty,DM=Object.prototype.propertyIsEnumerable,My=(e,t,n)=>t in e?kM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ps=(e,t)=>{for(var n in t||(t={}))zM.call(t,n)&&My(e,n,t[n]);if(Ey)for(var n of Ey(t))DM.call(t,n)&&My(e,n,t[n]);return e},gs=(e,t)=>LM(e,NM(t));const qM={"simple-circle-node":{type:"simple-circle-node"},"badge-card":{type:"badge-card"},capsule:{type:"capsule-item"},"compact-card":{type:"compact-card"}},ms={type:"relation-dagre-flow",edgeColorMode:"gradient",showArrow:!0,arrowType:"triangle",colorMode:"node"},HM={tb:gs(ps({},ms),{rankdir:"TB",edgeRouting:"orth"}),lr:gs(ps({},ms),{rankdir:"LR",edgeRouting:"orth"}),"tb-animated":gs(ps({},ms),{rankdir:"TB",edgeCornerRadius:12,edgeRouting:"orth",edgeAnimation:"ant-line",edgeDashPattern:"8,4",edgeAnimationSpeed:1}),"lr-animated":gs(ps({},ms),{rankdir:"LR",edgeCornerRadius:12,edgeRouting:"orth",edgeAnimation:"ant-line",edgeDashPattern:"8,4",edgeAnimationSpeed:1})},Iy={},jM=["lr-capsule","tb-capsule"];Object.entries(HM).forEach(([e,t])=>{Object.entries(qM).forEach(([n,r])=>{const i=`${e}-${n}`;if(jM.includes(i))return;const o=`relation-dagre-flow-${i}`;Iy[o]={design:{title:"default",structure:t,item:r}}})});const FM={"sequence-stairs-front-pill-badge":{design:{title:"default",structure:{type:"sequence-stairs-front"},items:[{type:"pill-badge"}]}},"sequence-stairs-front-compact-card":{design:{title:"default",structure:{type:"sequence-stairs-front"},items:[{type:"compact-card"}]}},"sequence-stairs-front-simple":{design:{title:"default",structure:{type:"sequence-stairs-front"},items:[{type:"simple",usePaletteColor:!0}]}}},BM={"chart-wordcloud-rotate":{design:{structure:{type:"chart-wordcloud"},item:"simple"}},"chart-wordcloud":{design:{structure:{type:"chart-wordcloud",enableRotate:!1},item:"simple"}}};var WM=Object.defineProperty,Ay=Object.getOwnPropertySymbols,VM=Object.prototype.hasOwnProperty,GM=Object.prototype.propertyIsEnumerable,Ty=(e,t,n)=>t in e?WM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jn=(e,t)=>{for(var n in t||(t={}))VM.call(t,n)&&Ty(e,n,t[n]);if(Ay)for(var n of Ay(t))GM.call(t,n)&&Ty(e,n,t[n]);return e};const YM=jn(jn(jn(jn(jn(jn(jn(jn(jn({"compare-hierarchy-left-right-circle-node-pill-badge":{design:{structure:{type:"compare-hierarchy-left-right",decoration:"split-line",surround:!1,groupGap:-20},title:"default",items:[{type:"circle-node",width:240},"pill-badge"]},themeConfig:{}},"compare-hierarchy-left-right-circle-node-plain-text":{design:{title:"default",structure:{type:"compare-hierarchy-left-right",decoration:"dot-line",flipLeaf:!0,groupGap:-10},items:[{type:"circle-node",width:180},{type:"plain-text"}]}},"list-pyramid-rounded-rect-node":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"rounded-rect-node"}]}},"list-pyramid-badge-card":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"badge-card"}]}},"list-pyramid-compact-card":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"compact-card"}]}},"list-column-done-list":{design:{title:"default",structure:{type:"list-column"},items:[{type:"done-list"}]}},"list-column-vertical-icon-arrow":{design:{title:"default",structure:{type:"list-column",gap:-5,zigzag:!0},items:[{type:"vertical-icon-arrow"}]}},"list-grid-badge-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"badge-card"}]}},"list-grid-candy-card-lite":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"candy-card-lite"}]}},"chart-column-simple":{design:{title:"default",structure:{type:"chart-column"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"list-grid-circular-progress":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"circular-progress"}]}},"list-grid-compact-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"compact-card"}]}},"list-grid-done-list":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"done-list"}]}},"list-grid-horizontal-icon-arrow":{design:{title:"default",structure:{type:"list-grid",gap:0,zigzag:!0},items:[{type:"horizontal-icon-arrow"}]}},"list-grid-progress-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"progress-card"}]}},"list-grid-ribbon-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"ribbon-card"}]}},"list-grid-simple":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"simple"}]}},"list-row-circular-progress":{design:{title:"default",structure:{type:"list-row"},items:[{type:"circular-progress"}]}},"list-row-horizontal-icon-arrow":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"horizontal-icon-arrow"}]}},"relation-circle-circular-progress":{design:{title:"default",structure:{type:"relation-circle"},items:[{type:"circular-progress"}]}},"relation-circle-icon-badge":{design:{title:"default",structure:{type:"relation-circle"},items:[{type:"icon-badge"}]}},"sequence-steps-badge-card":{design:{title:"default",structure:{type:"sequence-steps"},items:[{type:"badge-card"}]}},"sequence-steps-simple":{design:{title:"default",structure:{type:"sequence-steps",gap:10},items:[{type:"simple"}]}},"sequence-timeline-done-list":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"done-list"}]}},"sequence-timeline-plain-text":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"plain-text"}]}},"sequence-timeline-rounded-rect-node":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"rounded-rect-node"}]}},"sequence-ascending-steps":{design:{title:"default",structure:{type:"sequence-ascending-steps",vGap:-46,hGap:-20},items:[{type:"l-corner-card"}]}},"sequence-timeline-simple":{design:{title:"default",structure:{type:"sequence-timeline",gap:20},items:[{type:"simple",positionV:"middle"}]}},"sequence-cylinders-3d-simple":{design:{title:"default",structure:{type:"sequence-cylinders-3d",gapY:20},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"list-column-simple-vertical-arrow":{design:{title:"default",structure:{type:"list-column",gap:0,zigzag:!0},items:[{type:"simple-vertical-arrow"}]}},"list-row-simple-horizontal-arrow":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"simple-horizontal-arrow"}]}},"compare-swot":{design:{title:"default",structure:{type:"compare-hierarchy-row",itemGap:32,itemPadding:40,showColumnBackground:!0,columnBackgroundAlpha:.08},items:[{type:"letter-card",showBottomShade:!1},{type:"plain-text",formatter:e=>`● ${e}`,usePaletteColor:!0}]}},"compare-hierarchy-row-letter-card-compact-card":{design:{title:"default",structure:{type:"compare-hierarchy-row"},items:[{type:"letter-card"},{type:"compact-card"}]}},"compare-hierarchy-row-letter-card-rounded-rect-node":{design:{title:"default",structure:{type:"compare-hierarchy-row"},items:[{type:"letter-card"},{type:"rounded-rect-node"}]}},"sequence-snake-steps-compact-card":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"compact-card"}]}},"sequence-snake-steps-pill-badge":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"pill-badge"}]}},"sequence-snake-steps-simple":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"simple"}]}},"sequence-color-snake-steps-horizontal-icon-line":{design:{title:"default",structure:{type:"sequence-color-snake-steps"},items:[{type:"horizontal-icon-line"}]}},"sequence-pyramid-simple":{design:{title:"default",structure:{type:"sequence-pyramid"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]},themeConfig:{colorPrimary:"#1677ff"}},"sequence-funnel-simple":{design:{title:"default",structure:{type:"sequence-funnel"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]},themeConfig:{palette:"#1677ff"}},"list-row-horizontal-icon-line":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"horizontal-icon-line"}]}},"list-sector-simple":{design:{title:"default",structure:{type:"list-sector"},items:[{type:"simple"}]}},"list-sector-plain-text":{design:{title:"default",structure:{type:"list-sector"},items:[{type:"plain-text"}]}},"list-sector-half-plain-text":{design:{title:"default",structure:{type:"list-sector",startAngle:-180,endAngle:0},items:[{type:"plain-text"}]}},"sequence-roadmap-vertical-plain-text":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"plain-text"}]}},"sequence-roadmap-vertical-simple":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"simple",showIcon:!1}]}},"sequence-roadmap-vertical-badge-card":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"badge-card"}]}},"sequence-roadmap-vertical-pill-badge":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"pill-badge"}]}},"sequence-roadmap-vertical-quarter-circular":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"quarter-circular"}]}},"sequence-roadmap-vertical-quarter-simple-card":{design:{title:"default",structure:{type:"sequence-roadmap-vertical",flipped:!0},items:[{type:"quarter-simple-card"}]}},"sequence-horizontal-zigzag-simple-illus":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple-illus"}]}},"sequence-horizontal-zigzag-horizontal-icon-line":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"horizontal-icon-line"}]}},"sequence-horizontal-zigzag-plain-text":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"plain-text"}]}},"sequence-horizontal-zigzag-simple-horizontal-arrow":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple-horizontal-arrow"}]}},"sequence-horizontal-zigzag-simple":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple"}]}},"list-row-simple-illus":{design:{title:"default",structure:{type:"list-row"},items:[{type:"simple-illus"}]}},"sequence-color-snake-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-color-snake-steps"},items:[{type:"simple-illus"}]}},"sequence-snake-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"simple-illus"}]}},"sequence-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-steps"},items:[{type:"simple-illus"}]}},"sequence-timeline-simple-illus":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"simple-illus",usePaletteColor:!0}]}},"sequence-zigzag-steps-underline-text":{design:{title:"default",structure:{type:"sequence-zigzag-steps"},items:[{type:"underline-text"}]}},"sequence-horizontal-zigzag-underline-text":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"underline-text"}]}},"sequence-roadmap-vertical-underline-text":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"underline-text"}]}},"sequence-snake-steps-underline-text":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"underline-text"}]}},"sequence-circle-arrows-indexed-card":{design:{title:"default",structure:{type:"sequence-circle-arrows"},items:[{type:"indexed-card"}]}},"sequence-zigzag-pucks-3d-simple":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-zigzag-pucks-3d-underline-text":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"underline-text"}]}},"sequence-zigzag-pucks-3d-indexed-card":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"indexed-card"}]}},"sequence-ascending-stairs-3d-simple":{design:{title:"default",structure:{type:"sequence-ascending-stairs-3d"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-ascending-stairs-3d-underline-text":{design:{title:"default",structure:{type:"sequence-ascending-stairs-3d"},items:[{type:"underline-text"}]}},"sequence-circular-underline-text":{design:{title:"default",structure:{type:"sequence-circular"},items:[{type:"underline-text"}]}},"sequence-circular-simple":{design:{title:"default",structure:{type:"sequence-circular"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-filter-mesh-underline-text":{design:{title:"default",structure:{type:"sequence-filter-mesh"},items:[{type:"underline-text"}]}},"sequence-filter-mesh-simple":{design:{title:"default",structure:{type:"sequence-filter-mesh"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-mountain-underline-text":{design:{title:"default",structure:{type:"sequence-mountain"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-simple-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"compact-card"}]}},"compare-binary-horizontal-simple-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"compact-card"}]}},"compare-binary-horizontal-simple-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"compact-card"}]}},"chart-bar-plain-text":{design:{title:"default",structure:{type:"chart-bar"},items:[{type:"plain-text",positionH:"flipped"}]}},"chart-line-plain-text":{design:{title:"default",structure:{type:"chart-line"},items:[{type:"plain-text",lineNumber:2}]}}},Sc),bM),Sy),PM),FM),BM),RM),Iy),OM);Object.entries(YM).forEach(([e,t])=>{Jt(e,t)});const tt=Symbol.for("@antv/infographic/Fragment");function y(e,t={}){return{type:e,props:t}}const k=y,$c="infographic-component";var Ge=(e=>(e.Background="background",e.Title="title",e.Desc="desc",e.ItemsGroup="items-group",e.ItemIconGroup="item-icon-group",e.ItemIcon="item-icon",e.ItemLabel="item-label",e.ItemDesc="item-desc",e.ItemValue="item-value",e.ItemIllus="item-illus",e.BtnAdd="btn-add",e.BtnRemove="btn-remove",e.IllusGroup="illus-group",e.IllusVolume="illus-volume",e.Illus="illus",e.BtnsGroup="btns-group",e.Unknown="unknown",e))(Ge||{});const XM="https://www.weavefox.cn/api/open/v1/icon",Ec=Symbol.for("@antv/infographic/Defs");function Ke(e){return{type:Ec,props:e}}function Ze(e){var t,n,r,i;const{x:o=0,y:s=0,width:a=0,height:l=0}=e;return(t=e.cx)!=null||(e.cx=o+a/2),(n=e.cy)!=null||(e.cy=s+l/2),(r=e.rx)!=null||(e.rx=a/2),(i=e.ry)!=null||(e.ry=l/2),{type:"ellipse",props:e}}function Y(e){const{x:t=0,y:n=0}=e;return(t||n)&&(e.transform||(e.transform=`translate(${t}, ${n})`)),{type:"g",props:e}}var UM=Object.defineProperty,Ry=Object.getOwnPropertySymbols,KM=Object.prototype.hasOwnProperty,ZM=Object.prototype.propertyIsEnumerable,ky=(e,t,n)=>t in e?UM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,QM=(e,t)=>{for(var n in t||(t={}))KM.call(t,n)&&ky(e,n,t[n]);if(Ry)for(var n of Ry(t))ZM.call(t,n)&&ky(e,n,t[n]);return e};function Pe(e){const{x:t,y:n}=e,r=QM({},e);return(t!==void 0||n!==void 0)&&(r.transform=`translate(${t!=null?t:0}, ${n!=null?n:0})`),{type:"path",props:r}}var JM=Object.defineProperty,eI=Object.defineProperties,tI=Object.getOwnPropertyDescriptors,ys=Object.getOwnPropertySymbols,Ly=Object.prototype.hasOwnProperty,Ny=Object.prototype.propertyIsEnumerable,zy=(e,t,n)=>t in e?JM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nI=(e,t)=>{for(var n in t||(t={}))Ly.call(t,n)&&zy(e,n,t[n]);if(ys)for(var n of ys(t))Ny.call(t,n)&&zy(e,n,t[n]);return e},rI=(e,t)=>eI(e,tI(t)),iI=(e,t)=>{var n={};for(var r in e)Ly.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ys)for(var r of ys(e))t.indexOf(r)<0&&Ny.call(e,r)&&(n[r]=e[r]);return n};function Yt(e){var t=e,{points:n=[]}=t,r=iI(t,["points"]);const{x:i,y:o}=r,s=n.map(({x:c,y:u})=>`${c},${u}`).join(" "),a=rI(nI({},r),{points:s});return(i!==void 0||o!==void 0)&&(a.transform=`translate(${i!=null?i:0}, ${o!=null?o:0})`+(a.transform||"")),{type:"polygon",props:a}}function Le(e){return{type:"rect",props:e}}function Dy(e){return Object.keys(e[0]).reduce((t,n)=>{const r=n;return e.every(i=>i[r]===e[0][r])&&(t[r]=e[0][r]),t},{})}const qy=(e,t)=>{if(typeof e=="number"){if(t===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},oI={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},sI=e=>qy(oI[e.toLowerCase()],6),aI=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,lI=e=>{let t;return(t=e.match(aI))?qy(parseInt(t[1],16),t[1].length):void 0},ir="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Qi=`${ir}%`,Mc=`(?:${ir}%|${ir})`,cI=`(?:${ir}(deg|grad|rad|turn)|${ir})`,ai="\\s*,\\s*",uI=new RegExp(`^rgba?\\(\\s*${ir}${ai}${ir}${ai}${ir}\\s*(?:,\\s*${Mc}\\s*)?\\)$`),hI=new RegExp(`^rgba?\\(\\s*${Qi}${ai}${Qi}${ai}${Qi}\\s*(?:,\\s*${Mc}\\s*)?\\)$`),fI=e=>{let t={mode:"rgb"},n;if(n=e.match(uI))n[1]!==void 0&&(t.r=n[1]/255),n[2]!==void 0&&(t.g=n[2]/255),n[3]!==void 0&&(t.b=n[3]/255);else if(n=e.match(hI))n[1]!==void 0&&(t.r=n[1]/100),n[2]!==void 0&&(t.g=n[2]/100),n[3]!==void 0&&(t.b=n[3]/100);else return;return n[4]!==void 0?t.alpha=Math.max(0,Math.min(1,n[4]/100)):n[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+n[5]))),t},dI=(e,t)=>e===void 0?void 0:typeof e!="object"?En(e):e.mode!==void 0?e:t?zt(ht({},e),{mode:t}):void 0,Ic=(e="rgb")=>t=>(t=dI(t,e))!==void 0?t.mode===e?t:$n[t.mode][e]?$n[t.mode][e](t):e==="rgb"?$n[t.mode].rgb(t):$n.rgb[e]($n[t.mode].rgb(t)):void 0,$n={},Hy={},vs=[],jy={},pI=e=>e,ot=e=>($n[e.mode]=ht(ht({},$n[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(t=>{$n[t]||($n[t]={}),$n[t][e.mode]=e.fromMode[t]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw new Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]=="function"&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=pI)}),Hy[e.mode]=e,(e.parse||[]).forEach(t=>{mI(t,e.mode)}),Ic(e.mode)),gI=e=>Hy[e],mI=(e,t)=>{if(typeof e=="string"){if(!t)throw new Error("'mode' required when 'parser' is a string");jy[e]=t}else typeof e=="function"&&vs.indexOf(e)<0&&vs.push(e)},Ac=/[^\x00-\x7F]|[a-zA-Z_]/,yI=/[^\x00-\x7F]|[-\w]/,de={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"};let Re=0;function bs(e){let t=e[Re],n=e[Re+1];return t==="-"||t==="+"?/\d/.test(n)||n==="."&&/\d/.test(e[Re+2]):t==="."?/\d/.test(n):/\d/.test(t)}function Tc(e){if(Re>=e.length)return!1;let t=e[Re];if(Ac.test(t))return!0;if(t==="-"){if(e.length-Re<2)return!1;let n=e[Re+1];return!!(n==="-"||Ac.test(n))}return!1}const vI={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function Ji(e){let t="";if((e[Re]==="-"||e[Re]==="+")&&(t+=e[Re++]),t+=_s(e),e[Re]==="."&&/\d/.test(e[Re+1])&&(t+=e[Re++]+_s(e)),(e[Re]==="e"||e[Re]==="E")&&((e[Re+1]==="-"||e[Re+1]==="+")&&/\d/.test(e[Re+2])?t+=e[Re++]+e[Re++]+_s(e):/\d/.test(e[Re+1])&&(t+=e[Re++]+_s(e))),Tc(e)){let n=ws(e);return n==="deg"||n==="rad"||n==="turn"||n==="grad"?{type:de.Hue,value:t*vI[n]}:void 0}return e[Re]==="%"?(Re++,{type:de.Percentage,value:+t}):{type:de.Number,value:+t}}function _s(e){let t="";for(;/\d/.test(e[Re]);)t+=e[Re++];return t}function ws(e){let t="";for(;Re<e.length&&yI.test(e[Re]);)t+=e[Re++];return t}function bI(e){let t=ws(e);return e[Re]==="("?(Re++,{type:de.Function,value:t}):t==="none"?{type:de.None,value:void 0}:{type:de.Ident,value:t}}function _I(e=""){let t=e.trim(),n=[],r;for(Re=0;Re<t.length;){if(r=t[Re++],r===`
1
+ (function(B,gt){typeof exports=="object"&&typeof module!="undefined"?gt(exports):typeof define=="function"&&define.amd?define(["exports"],gt):(B=typeof globalThis!="undefined"?globalThis:B||self,gt(B.AntVInfographic={}))})(this,(function(B){"use strict";var fce=Object.defineProperty,dce=Object.defineProperties;var pce=Object.getOwnPropertyDescriptors;var kc=Object.getOwnPropertySymbols;var AM=Object.prototype.hasOwnProperty,IM=Object.prototype.propertyIsEnumerable;var vs=Math.pow,MM=(B,gt,$t)=>gt in B?fce(B,gt,{enumerable:!0,configurable:!0,writable:!0,value:$t}):B[gt]=$t,ut=(B,gt)=>{for(var $t in gt||(gt={}))AM.call(gt,$t)&&MM(B,$t,gt[$t]);if(kc)for(var $t of kc(gt))IM.call(gt,$t)&&MM(B,$t,gt[$t]);return B},Dt=(B,gt)=>dce(B,pce(gt));var Oy=(B,gt)=>{var $t={};for(var Jt in B)AM.call(B,Jt)&&gt.indexOf(Jt)<0&&($t[Jt]=B[Jt]);if(B!=null&&kc)for(var Jt of kc(B))gt.indexOf(Jt)<0&&IM.call(B,Jt)&&($t[Jt]=B[Jt]);return $t};var TM=(B,gt,$t)=>new Promise((Jt,bs)=>{var Lc=pn=>{try{ci($t.next(pn))}catch(Qi){bs(Qi)}},Nc=pn=>{try{ci($t.throw(pn))}catch(Qi){bs(Qi)}},ci=pn=>pn.done?Jt(pn.value):Promise.resolve(pn.value).then(Lc,Nc);ci(($t=$t.apply(B,gt)).next())});const gt=new Map;function $t(e,t){gt.set(e,t)}function Jt(e){return gt.get(e)}function bs(){return Array.from(gt.keys())}const Lc={"chart-pie-plain-text":{design:{title:"default",structure:{type:"chart-pie"},items:[{type:"plain-text"}]}},"chart-pie-compact-card":{design:{title:"default",structure:{type:"chart-pie",avoidLabelOverlap:!0},items:[{type:"compact-card"}]}},"chart-pie-pill-badge":{design:{title:"default",structure:{type:"chart-pie",avoidLabelOverlap:!0},items:[{type:"pill-badge"}]}},"chart-pie-donut-plain-text":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90},items:[{type:"plain-text"}]}},"chart-pie-donut-compact-card":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90,avoidLabelOverlap:!0},items:[{type:"compact-card"}]}},"chart-pie-donut-pill-badge":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90,avoidLabelOverlap:!0},items:[{type:"pill-badge"}]}}},Nc={"compare-quadrant-quarter-simple-card":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"quarter-simple-card"}]}},"compare-quadrant-quarter-circular":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"quarter-circular"}]}},"compare-quadrant-simple-illus":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"simple-illus"}]}}},ci=new Set,pn={};Object.entries(Nc).forEach(([e,t])=>{pn[e]=t;const n=e.replace("compare-quadrant","quadrant");pn[n]=new Proxy(t,{get(r,i,o){return ci.has(n)||(console.warn(`[Deprecated] "${n}" 已被废弃,将在下个版本移除,请使用 "${e}"`),ci.add(n)),Reflect.get(r,i,o)}})});const Qi=pn;var kM=Object.defineProperty,$y=Object.getOwnPropertySymbols,LM=Object.prototype.hasOwnProperty,NM=Object.prototype.propertyIsEnumerable,Ey=(e,t,n)=>t in e?kM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,My=(e,t)=>{for(var n in t||(t={}))LM.call(t,n)&&Ey(e,n,t[n]);if($y)for(var n of $y(t))NM.call(t,n)&&Ey(e,n,t[n]);return e};const Ji={edgeType:"curved",edgeColorMode:"gradient",edgeWidth:2,colorMode:"branch",levelGap:80,nodeGap:18},eo={edgeType:"curved",edgeWidth:2,edgeColorMode:"gradient",colorMode:"level",levelGap:80,nodeGap:18},Ay={type:"lined-text",usePaletteColor:!0,showUnderline:!0,underlineThickness:2},Iy={type:"capsule-item"},Ty={type:"circular-progress"},Ry={type:"rounded-rect-node",positionH:"center"},ky={type:"compact-card"},zM=(e,t)=>My(My({type:"hierarchy-mindmap"},t!==void 0?{edgeAlign:t}:{}),e),Mn=(e,t,n,r)=>[e,{design:{structure:zM(t,r),item:n}}],DM=Object.fromEntries([Mn("hierarchy-mindmap-branch-gradient-lined-palette",Ji,Ay,"bottom"),Mn("hierarchy-mindmap-level-gradient-lined-palette",eo,Ay,"bottom"),Mn("hierarchy-mindmap-branch-gradient-capsule-item",Ji,Iy),Mn("hierarchy-mindmap-level-gradient-capsule-item",eo,Iy),Mn("hierarchy-mindmap-branch-gradient-circle-progress",Ji,Ty,.4),Mn("hierarchy-mindmap-level-gradient-circle-progress",eo,Ty,.4),Mn("hierarchy-mindmap-branch-gradient-rounded-rect",Ji,Ry),Mn("hierarchy-mindmap-level-gradient-rounded-rect",eo,Ry),Mn("hierarchy-mindmap-branch-gradient-compact-card",Ji,ky),Mn("hierarchy-mindmap-level-gradient-compact-card",eo,ky)]),qM={"hierarchy-structure":{design:{title:"default",structure:{type:"hierarchy-structure"},item:"simple"}},"hierarchy-structure-mirror":{design:{title:"default",structure:{type:"hierarchy-structure",layerLabelPosition:"right"},item:"simple"}}};var HM=Object.defineProperty,Ly=Object.getOwnPropertySymbols,jM=Object.prototype.hasOwnProperty,FM=Object.prototype.propertyIsEnumerable,Ny=(e,t,n)=>t in e?HM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zy=(e,t)=>{for(var n in t||(t={}))jM.call(t,n)&&Ny(e,n,t[n]);if(Ly)for(var n of Ly(t))FM.call(t,n)&&Ny(e,n,t[n]);return e};const BM={"tech-style":{edgeType:"straight",edgeStyle:"solid",edgeColorMode:"gradient",edgeMarker:"arrow",markerSize:12,edgeCornerRadius:5},"dashed-line":{edgeStyle:"dashed",edgeCornerRadius:10,edgeDashPattern:"10,5",edgeColorMode:"gradient",edgeMarker:"dot",markerSize:6,edgeOffset:6},"distributed-origin":{edgeOrigin:"distributed",edgeOriginPadding:30,edgeMarker:"arrow",edgeCornerRadius:10,markerSize:12,edgeColorMode:"gradient"},"curved-line":{edgeType:"curved",edgeColorMode:"gradient",edgeMarker:"none"},"dashed-arrow":{edgeType:"straight",edgeStyle:"dashed",edgeDashPattern:"8,4",edgeMarker:"arrow",markerSize:10,edgeCornerRadius:0}},WM=["capsule-item","rounded-rect-node","compact-card","badge-card","ribbon-card"],Dy={},qy="hierarchy-tree",VM=[{key:""},{key:"bt",orientation:"bottom-top"},{key:"lr",orientation:"left-right"},{key:"rl",orientation:"right-left"}],GM=(e,t,n)=>e?`${qy}-${e}-${t}-${n}`:`${qy}-${t}-${n}`;for(const e of WM)for(const[t,n]of Object.entries(BM))for(const{key:r,orientation:i}of VM){const o=GM(r,t,e);Dy[o]={design:{structure:zy(zy({type:"hierarchy-tree"},i?{orientation:i}:{}),n),item:{type:e}}}}const YM={"list-zigzag-up-compact-card":{design:{title:"default",structure:{type:"list-zigzag-up"},items:[{type:"compact-card"}]},themeConfig:{colorPrimary:"#17CA2C"}},"list-zigzag-up-simple":{design:{title:"default",structure:{type:"list-zigzag-up"},items:[{type:"simple",usePaletteColor:!0}]},themeConfig:{colorPrimary:"#17CA2C"}},"list-zigzag-down-compact-card":{design:{title:"default",structure:{type:"list-zigzag-down"},items:[{type:"compact-card"}]},themeConfig:{colorPrimary:"#17CA2C"}},"list-zigzag-down-simple":{design:{title:"default",structure:{type:"list-zigzag-down"},items:[{type:"simple",usePaletteColor:!0}]},themeConfig:{colorPrimary:"#17CA2C"}}};var XM=Object.defineProperty,UM=Object.defineProperties,KM=Object.getOwnPropertyDescriptors,Hy=Object.getOwnPropertySymbols,ZM=Object.prototype.hasOwnProperty,QM=Object.prototype.propertyIsEnumerable,jy=(e,t,n)=>t in e?XM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ws=(e,t)=>{for(var n in t||(t={}))ZM.call(t,n)&&jy(e,n,t[n]);if(Hy)for(var n of Hy(t))QM.call(t,n)&&jy(e,n,t[n]);return e},_s=(e,t)=>UM(e,KM(t));const JM={"simple-circle-node":{type:"simple-circle-node"},"badge-card":{type:"badge-card"},capsule:{type:"capsule-item"},"compact-card":{type:"compact-card"}},xs={type:"relation-dagre-flow",edgeColorMode:"gradient",showArrow:!0,arrowType:"triangle",colorMode:"node"},eA={tb:_s(ws({},xs),{rankdir:"TB",edgeRouting:"orth"}),lr:_s(ws({},xs),{rankdir:"LR",edgeRouting:"orth"}),"tb-animated":_s(ws({},xs),{rankdir:"TB",edgeCornerRadius:12,edgeRouting:"orth",edgeAnimation:"ant-line",edgeDashPattern:"8,4",edgeAnimationSpeed:1}),"lr-animated":_s(ws({},xs),{rankdir:"LR",edgeCornerRadius:12,edgeRouting:"orth",edgeAnimation:"ant-line",edgeDashPattern:"8,4",edgeAnimationSpeed:1})},Fy={},tA=["lr-capsule","tb-capsule"];Object.entries(eA).forEach(([e,t])=>{Object.entries(JM).forEach(([n,r])=>{const i=`${e}-${n}`;if(tA.includes(i))return;const o=`relation-dagre-flow-${i}`;Fy[o]={design:{title:"default",structure:t,item:r}}})});const nA={"sequence-stairs-front-pill-badge":{design:{title:"default",structure:{type:"sequence-stairs-front"},items:[{type:"pill-badge"}]}},"sequence-stairs-front-compact-card":{design:{title:"default",structure:{type:"sequence-stairs-front"},items:[{type:"compact-card"}]}},"sequence-stairs-front-simple":{design:{title:"default",structure:{type:"sequence-stairs-front"},items:[{type:"simple",usePaletteColor:!0}]}}},rA={"chart-wordcloud-rotate":{design:{structure:{type:"chart-wordcloud"},item:"simple"}},"chart-wordcloud":{design:{structure:{type:"chart-wordcloud",enableRotate:!1},item:"simple"}}};var iA=Object.defineProperty,By=Object.getOwnPropertySymbols,oA=Object.prototype.hasOwnProperty,sA=Object.prototype.propertyIsEnumerable,Wy=(e,t,n)=>t in e?iA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yn=(e,t)=>{for(var n in t||(t={}))oA.call(t,n)&&Wy(e,n,t[n]);if(By)for(var n of By(t))sA.call(t,n)&&Wy(e,n,t[n]);return e};const aA=Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn(Yn({"compare-hierarchy-left-right-circle-node-pill-badge":{design:{structure:{type:"compare-hierarchy-left-right",decoration:"split-line",surround:!1,groupGap:-20},title:"default",items:[{type:"circle-node",width:240},"pill-badge"]},themeConfig:{}},"compare-hierarchy-left-right-circle-node-plain-text":{design:{title:"default",structure:{type:"compare-hierarchy-left-right",decoration:"dot-line",flipLeaf:!0,groupGap:-10},items:[{type:"circle-node",width:180},{type:"plain-text"}]}},"list-pyramid-rounded-rect-node":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"rounded-rect-node"}]}},"list-pyramid-badge-card":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"badge-card"}]}},"list-pyramid-compact-card":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"compact-card"}]}},"list-column-done-list":{design:{title:"default",structure:{type:"list-column"},items:[{type:"done-list"}]}},"list-column-vertical-icon-arrow":{design:{title:"default",structure:{type:"list-column",gap:-5,zigzag:!0},items:[{type:"vertical-icon-arrow"}]}},"list-grid-badge-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"badge-card"}]}},"list-grid-candy-card-lite":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"candy-card-lite"}]}},"chart-column-simple":{design:{title:"default",structure:{type:"chart-column"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"list-grid-circular-progress":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"circular-progress"}]}},"list-grid-compact-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"compact-card"}]}},"list-grid-done-list":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"done-list"}]}},"list-grid-horizontal-icon-arrow":{design:{title:"default",structure:{type:"list-grid",gap:0,zigzag:!0},items:[{type:"horizontal-icon-arrow"}]}},"list-grid-progress-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"progress-card"}]}},"list-grid-ribbon-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"ribbon-card"}]}},"list-grid-simple":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"simple"}]}},"list-row-circular-progress":{design:{title:"default",structure:{type:"list-row"},items:[{type:"circular-progress"}]}},"list-row-horizontal-icon-arrow":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"horizontal-icon-arrow"}]}},"relation-circle-circular-progress":{design:{title:"default",structure:{type:"relation-circle"},items:[{type:"circular-progress"}]}},"relation-circle-icon-badge":{design:{title:"default",structure:{type:"relation-circle"},items:[{type:"icon-badge"}]}},"relation-network-icon-badge":{design:{title:"default",structure:{type:"relation-network"},items:[{type:"icon-badge"}]}},"relation-network-simple-circle-node":{design:{title:"default",structure:{type:"relation-network"},items:[{type:"simple-circle-node"}]}},"sequence-steps-badge-card":{design:{title:"default",structure:{type:"sequence-steps"},items:[{type:"badge-card"}]}},"sequence-steps-simple":{design:{title:"default",structure:{type:"sequence-steps",gap:10},items:[{type:"simple"}]}},"sequence-timeline-done-list":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"done-list"}]}},"sequence-timeline-plain-text":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"plain-text"}]}},"sequence-timeline-rounded-rect-node":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"rounded-rect-node"}]}},"sequence-ascending-steps":{design:{title:"default",structure:{type:"sequence-ascending-steps",vGap:-46,hGap:-20},items:[{type:"l-corner-card"}]}},"sequence-timeline-simple":{design:{title:"default",structure:{type:"sequence-timeline",gap:20},items:[{type:"simple",positionV:"middle"}]}},"sequence-cylinders-3d-simple":{design:{title:"default",structure:{type:"sequence-cylinders-3d",gapY:20},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"list-column-simple-vertical-arrow":{design:{title:"default",structure:{type:"list-column",gap:0,zigzag:!0},items:[{type:"simple-vertical-arrow"}]}},"list-row-simple-horizontal-arrow":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"simple-horizontal-arrow"}]}},"compare-swot":{design:{title:"default",structure:{type:"compare-hierarchy-row",itemGap:32,itemPadding:40,showColumnBackground:!0,columnBackgroundAlpha:.08},items:[{type:"letter-card",showBottomShade:!1},{type:"plain-text",formatter:e=>`● ${e}`,usePaletteColor:!0}]}},"compare-hierarchy-row-letter-card-compact-card":{design:{title:"default",structure:{type:"compare-hierarchy-row"},items:[{type:"letter-card"},{type:"compact-card"}]}},"compare-hierarchy-row-letter-card-rounded-rect-node":{design:{title:"default",structure:{type:"compare-hierarchy-row"},items:[{type:"letter-card"},{type:"rounded-rect-node"}]}},"sequence-snake-steps-compact-card":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"compact-card"}]}},"sequence-snake-steps-pill-badge":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"pill-badge"}]}},"sequence-snake-steps-simple":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"simple"}]}},"sequence-color-snake-steps-horizontal-icon-line":{design:{title:"default",structure:{type:"sequence-color-snake-steps"},items:[{type:"horizontal-icon-line"}]}},"sequence-pyramid-simple":{design:{title:"default",structure:{type:"sequence-pyramid"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]},themeConfig:{colorPrimary:"#1677ff"}},"sequence-funnel-simple":{design:{title:"default",structure:{type:"sequence-funnel"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]},themeConfig:{palette:"#1677ff"}},"list-row-horizontal-icon-line":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"horizontal-icon-line"}]}},"list-sector-simple":{design:{title:"default",structure:{type:"list-sector"},items:[{type:"simple"}]}},"list-sector-plain-text":{design:{title:"default",structure:{type:"list-sector"},items:[{type:"plain-text"}]}},"list-sector-half-plain-text":{design:{title:"default",structure:{type:"list-sector",startAngle:-180,endAngle:0},items:[{type:"plain-text"}]}},"list-waterfall-badge-card":{design:{title:"default",structure:{type:"list-waterfall"},items:[{type:"badge-card"}]}},"list-waterfall-compact-card":{design:{title:"default",structure:{type:"list-waterfall"},items:[{type:"compact-card"}]}},"sequence-roadmap-vertical-plain-text":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"plain-text"}]}},"sequence-roadmap-vertical-simple":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"simple",showIcon:!1}]}},"sequence-roadmap-vertical-badge-card":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"badge-card"}]}},"sequence-roadmap-vertical-pill-badge":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"pill-badge"}]}},"sequence-roadmap-vertical-quarter-circular":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"quarter-circular"}]}},"sequence-roadmap-vertical-quarter-simple-card":{design:{title:"default",structure:{type:"sequence-roadmap-vertical",flipped:!0},items:[{type:"quarter-simple-card"}]}},"sequence-horizontal-zigzag-simple-illus":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple-illus"}]}},"sequence-horizontal-zigzag-horizontal-icon-line":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"horizontal-icon-line"}]}},"sequence-horizontal-zigzag-plain-text":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"plain-text"}]}},"sequence-horizontal-zigzag-simple-horizontal-arrow":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple-horizontal-arrow"}]}},"sequence-horizontal-zigzag-simple":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple"}]}},"list-row-simple-illus":{design:{title:"default",structure:{type:"list-row"},items:[{type:"simple-illus"}]}},"sequence-color-snake-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-color-snake-steps"},items:[{type:"simple-illus"}]}},"sequence-snake-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"simple-illus"}]}},"sequence-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-steps"},items:[{type:"simple-illus"}]}},"sequence-timeline-simple-illus":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"simple-illus",usePaletteColor:!0}]}},"sequence-zigzag-steps-underline-text":{design:{title:"default",structure:{type:"sequence-zigzag-steps"},items:[{type:"underline-text"}]}},"sequence-horizontal-zigzag-underline-text":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"underline-text"}]}},"sequence-roadmap-vertical-underline-text":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"underline-text"}]}},"sequence-snake-steps-underline-text":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"underline-text"}]}},"sequence-circle-arrows-indexed-card":{design:{title:"default",structure:{type:"sequence-circle-arrows"},items:[{type:"indexed-card"}]}},"sequence-zigzag-pucks-3d-simple":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-zigzag-pucks-3d-underline-text":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"underline-text"}]}},"sequence-zigzag-pucks-3d-indexed-card":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"indexed-card"}]}},"sequence-ascending-stairs-3d-simple":{design:{title:"default",structure:{type:"sequence-ascending-stairs-3d"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-ascending-stairs-3d-underline-text":{design:{title:"default",structure:{type:"sequence-ascending-stairs-3d"},items:[{type:"underline-text"}]}},"sequence-circular-underline-text":{design:{title:"default",structure:{type:"sequence-circular"},items:[{type:"underline-text"}]}},"sequence-circular-simple":{design:{title:"default",structure:{type:"sequence-circular"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-filter-mesh-underline-text":{design:{title:"default",structure:{type:"sequence-filter-mesh"},items:[{type:"underline-text"}]}},"sequence-filter-mesh-simple":{design:{title:"default",structure:{type:"sequence-filter-mesh"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-mountain-underline-text":{design:{title:"default",structure:{type:"sequence-mountain"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-simple-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"compact-card"}]}},"compare-binary-horizontal-simple-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"compact-card"}]}},"compare-binary-horizontal-simple-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"compact-card"}]}},"chart-bar-plain-text":{design:{title:"default",structure:{type:"chart-bar"},items:[{type:"plain-text",positionH:"flipped"}]}},"chart-line-plain-text":{design:{title:"default",structure:{type:"chart-line"},items:[{type:"plain-text",lineNumber:2}]}}},Lc),Qi),Dy),DM),nA),rA),YM),Fy),qM);Object.entries(aA).forEach(([e,t])=>{$t(e,t)});const tt=Symbol.for("@antv/infographic/Fragment");function y(e,t={}){return{type:e,props:t}}const k=y,Cs="infographic-component";var Ge=(e=>(e.Background="background",e.Title="title",e.Desc="desc",e.ItemsGroup="items-group",e.ItemIconGroup="item-icon-group",e.ItemIcon="item-icon",e.ItemLabel="item-label",e.ItemDesc="item-desc",e.ItemValue="item-value",e.ItemIllus="item-illus",e.BtnAdd="btn-add",e.BtnRemove="btn-remove",e.IllusGroup="illus-group",e.IllusVolume="illus-volume",e.Illus="illus",e.BtnsGroup="btns-group",e.Unknown="unknown",e))(Ge||{});const lA="https://www.weavefox.cn/api/open/v1/icon",zc=Symbol.for("@antv/infographic/Defs");function Ke(e){return{type:zc,props:e}}function Ze(e){var t,n,r,i;const{x:o=0,y:s=0,width:a=0,height:l=0}=e;return(t=e.cx)!=null||(e.cx=o+a/2),(n=e.cy)!=null||(e.cy=s+l/2),(r=e.rx)!=null||(e.rx=a/2),(i=e.ry)!=null||(e.ry=l/2),{type:"ellipse",props:e}}function Y(e){const{x:t=0,y:n=0}=e;return(t||n)&&(e.transform||(e.transform=`translate(${t}, ${n})`)),{type:"g",props:e}}var cA=Object.defineProperty,Vy=Object.getOwnPropertySymbols,uA=Object.prototype.hasOwnProperty,hA=Object.prototype.propertyIsEnumerable,Gy=(e,t,n)=>t in e?cA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fA=(e,t)=>{for(var n in t||(t={}))uA.call(t,n)&&Gy(e,n,t[n]);if(Vy)for(var n of Vy(t))hA.call(t,n)&&Gy(e,n,t[n]);return e};function Pe(e){const{x:t,y:n}=e,r=fA({},e);return(t!==void 0||n!==void 0)&&(r.transform=`translate(${t!=null?t:0}, ${n!=null?n:0})`),{type:"path",props:r}}var dA=Object.defineProperty,pA=Object.defineProperties,gA=Object.getOwnPropertyDescriptors,Ps=Object.getOwnPropertySymbols,Yy=Object.prototype.hasOwnProperty,Xy=Object.prototype.propertyIsEnumerable,Uy=(e,t,n)=>t in e?dA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mA=(e,t)=>{for(var n in t||(t={}))Yy.call(t,n)&&Uy(e,n,t[n]);if(Ps)for(var n of Ps(t))Xy.call(t,n)&&Uy(e,n,t[n]);return e},yA=(e,t)=>pA(e,gA(t)),vA=(e,t)=>{var n={};for(var r in e)Yy.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ps)for(var r of Ps(e))t.indexOf(r)<0&&Xy.call(e,r)&&(n[r]=e[r]);return n};function Yt(e){var t=e,{points:n=[]}=t,r=vA(t,["points"]);const{x:i,y:o}=r,s=n.map(({x:c,y:u})=>`${c},${u}`).join(" "),a=yA(mA({},r),{points:s});return(i!==void 0||o!==void 0)&&(a.transform=`translate(${i!=null?i:0}, ${o!=null?o:0})`+(a.transform||"")),{type:"polygon",props:a}}function Le(e){return{type:"rect",props:e}}function Ky(e){return Object.keys(e[0]).reduce((t,n)=>{const r=n;return e.every(i=>i[r]===e[0][r])&&(t[r]=e[0][r]),t},{})}const Zy=(e,t)=>{if(typeof e=="number"){if(t===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},bA={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},wA=e=>Zy(bA[e.toLowerCase()],6),_A=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,xA=e=>{let t;return(t=e.match(_A))?Zy(parseInt(t[1],16),t[1].length):void 0},fr="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",to=`${fr}%`,Dc=`(?:${fr}%|${fr})`,CA=`(?:${fr}(deg|grad|rad|turn)|${fr})`,ui="\\s*,\\s*",PA=new RegExp(`^rgba?\\(\\s*${fr}${ui}${fr}${ui}${fr}\\s*(?:,\\s*${Dc}\\s*)?\\)$`),SA=new RegExp(`^rgba?\\(\\s*${to}${ui}${to}${ui}${to}\\s*(?:,\\s*${Dc}\\s*)?\\)$`),OA=e=>{let t={mode:"rgb"},n;if(n=e.match(PA))n[1]!==void 0&&(t.r=n[1]/255),n[2]!==void 0&&(t.g=n[2]/255),n[3]!==void 0&&(t.b=n[3]/255);else if(n=e.match(SA))n[1]!==void 0&&(t.r=n[1]/100),n[2]!==void 0&&(t.g=n[2]/100),n[3]!==void 0&&(t.b=n[3]/100);else return;return n[4]!==void 0?t.alpha=Math.max(0,Math.min(1,n[4]/100)):n[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+n[5]))),t},$A=(e,t)=>e===void 0?void 0:typeof e!="object"?In(e):e.mode!==void 0?e:t?Dt(ut({},e),{mode:t}):void 0,qc=(e="rgb")=>t=>(t=$A(t,e))!==void 0?t.mode===e?t:An[t.mode][e]?An[t.mode][e](t):e==="rgb"?An[t.mode].rgb(t):An.rgb[e](An[t.mode].rgb(t)):void 0,An={},Qy={},Ss=[],Jy={},EA=e=>e,it=e=>(An[e.mode]=ut(ut({},An[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(t=>{An[t]||(An[t]={}),An[t][e.mode]=e.fromMode[t]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw new Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]=="function"&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=EA)}),Qy[e.mode]=e,(e.parse||[]).forEach(t=>{AA(t,e.mode)}),qc(e.mode)),MA=e=>Qy[e],AA=(e,t)=>{if(typeof e=="string"){if(!t)throw new Error("'mode' required when 'parser' is a string");Jy[e]=t}else typeof e=="function"&&Ss.indexOf(e)<0&&Ss.push(e)},Hc=/[^\x00-\x7F]|[a-zA-Z_]/,IA=/[^\x00-\x7F]|[-\w]/,de={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"};let Re=0;function Os(e){let t=e[Re],n=e[Re+1];return t==="-"||t==="+"?/\d/.test(n)||n==="."&&/\d/.test(e[Re+2]):t==="."?/\d/.test(n):/\d/.test(t)}function jc(e){if(Re>=e.length)return!1;let t=e[Re];if(Hc.test(t))return!0;if(t==="-"){if(e.length-Re<2)return!1;let n=e[Re+1];return!!(n==="-"||Hc.test(n))}return!1}const TA={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function no(e){let t="";if((e[Re]==="-"||e[Re]==="+")&&(t+=e[Re++]),t+=$s(e),e[Re]==="."&&/\d/.test(e[Re+1])&&(t+=e[Re++]+$s(e)),(e[Re]==="e"||e[Re]==="E")&&((e[Re+1]==="-"||e[Re+1]==="+")&&/\d/.test(e[Re+2])?t+=e[Re++]+e[Re++]+$s(e):/\d/.test(e[Re+1])&&(t+=e[Re++]+$s(e))),jc(e)){let n=Es(e);return n==="deg"||n==="rad"||n==="turn"||n==="grad"?{type:de.Hue,value:t*TA[n]}:void 0}return e[Re]==="%"?(Re++,{type:de.Percentage,value:+t}):{type:de.Number,value:+t}}function $s(e){let t="";for(;/\d/.test(e[Re]);)t+=e[Re++];return t}function Es(e){let t="";for(;Re<e.length&&IA.test(e[Re]);)t+=e[Re++];return t}function RA(e){let t=Es(e);return e[Re]==="("?(Re++,{type:de.Function,value:t}):t==="none"?{type:de.None,value:void 0}:{type:de.Ident,value:t}}function kA(e=""){let t=e.trim(),n=[],r;for(Re=0;Re<t.length;){if(r=t[Re++],r===`
2
2
  `||r===" "||r===" "){for(;Re<t.length&&(t[Re]===`
3
- `||t[Re]===" "||t[Re]===" ");)Re++;continue}if(r===",")return;if(r===")"){n.push({type:de.ParenClose});continue}if(r==="+"){if(Re--,bs(t)){n.push(Ji(t));continue}return}if(r==="-"){if(Re--,bs(t)){n.push(Ji(t));continue}if(Tc(t)){n.push({type:de.Ident,value:ws(t)});continue}return}if(r==="."){if(Re--,bs(t)){n.push(Ji(t));continue}return}if(r==="/"){for(;Re<t.length&&(t[Re]===`
4
- `||t[Re]===" "||t[Re]===" ");)Re++;let i;if(bs(t)&&(i=Ji(t),i.type!==de.Hue)){n.push({type:de.Alpha,value:i});continue}if(Tc(t)&&ws(t)==="none"){n.push({type:de.Alpha,value:{type:de.None,value:void 0}});continue}return}if(/\d/.test(r)){Re--,n.push(Ji(t));continue}if(Ac.test(r)){Re--,n.push(bI(t));continue}return}return n}function wI(e){e._i=0;let t=e[e._i++];if(!t||t.type!==de.Function||t.value!=="color"||(t=e[e._i++],t.type!==de.Ident))return;const n=jy[t.value];if(!n)return;const r={mode:n},i=Fy(e,!1);if(!i)return;const o=gI(n).channels;for(let s=0,a,l;s<o.length;s++)a=i[s],l=o[s],a.type!==de.None&&(r[l]=a.type===de.Number?a.value:a.value/100,l==="alpha"&&(r[l]=Math.max(0,Math.min(1,r[l]))));return r}function Fy(e,t){const n=[];let r;for(;e._i<e.length;){if(r=e[e._i++],r.type===de.None||r.type===de.Number||r.type===de.Alpha||r.type===de.Percentage||t&&r.type===de.Hue){n.push(r);continue}if(r.type===de.ParenClose){if(e._i<e.length)return;continue}return}if(!(n.length<3||n.length>4)){if(n.length===4){if(n[3].type!==de.Alpha)return;n[3]=n[3].value}return n.length===3&&n.push({type:de.None,value:void 0}),n.every(i=>i.type!==de.Alpha)?n:void 0}}function xI(e,t){e._i=0;let n=e[e._i++];if(!n||n.type!==de.Function)return;let r=Fy(e,t);if(r)return r.unshift(n.value),r}const En=e=>{if(typeof e!="string")return;const t=_I(e),n=t?xI(t,!0):void 0;let r,i=0,o=vs.length;for(;i<o;)if((r=vs[i++](e,n))!==void 0)return r;return t?wI(t):void 0};function CI(e,t){if(!t||t[0]!=="rgb"&&t[0]!=="rgba")return;const n={mode:"rgb"},[,r,i,o,s]=t;if(!(r.type===de.Hue||i.type===de.Hue||o.type===de.Hue))return r.type!==de.None&&(n.r=r.type===de.Number?r.value/255:r.value/100),i.type!==de.None&&(n.g=i.type===de.Number?i.value/255:i.value/100),o.type!==de.None&&(n.b=o.type===de.Number?o.value/255:o.value/100),s.type!==de.None&&(n.alpha=Math.min(1,Math.max(0,s.type===de.Number?s.value:s.value/100))),n}const PI=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,OI=(e,t,n)=>e+n*(t-e),SI=e=>{let t=[];for(let n=0;n<e.length-1;n++){let r=e[n],i=e[n+1];r===void 0&&i===void 0?t.push(void 0):r!==void 0&&i!==void 0?t.push([r,i]):t.push(r!==void 0?[r,r]:[i,i])}return t},we=(e=>t=>{let n=SI(t);return r=>{let i=r*n.length,o=r>=1?n.length-1:Math.max(Math.floor(i),0),s=n[o];return s===void 0?void 0:e(s[0],s[1],i-o)}})(OI),kt=e=>{let t=!1,n=e.map(r=>r!==void 0?(t=!0,r):1);return t?n:e},li={mode:"rgb",channels:["r","g","b","alpha"],parse:[CI,lI,fI,sI,PI,"srgb"],serialize:"srgb",interpolate:{r:we,g:we,b:we,alpha:{use:we,fixup:kt}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Rc=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),By=e=>{let t=Rc(e.r),n=Rc(e.g),r=Rc(e.b),i={mode:"xyz65",x:.5766690429101305*t+.1855582379065463*n+.1882286462349947*r,y:.297344975250536*t+.6273635662554661*n+.0752914584939979*r,z:.0270313613864123*t+.0706888525358272*n+.9913375368376386*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},kc=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),Wy=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:"a98",r:kc(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*n),g:kc(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*n),b:kc(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*n)};return r!==void 0&&(i.alpha=r),i},Lc=(e=0)=>{const t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((t+.055)/1.055,2.4)},ci=({r:e,g:t,b:n,alpha:r})=>{let i={mode:"lrgb",r:Lc(e),g:Lc(t),b:Lc(n)};return r!==void 0&&(i.alpha=r),i},Cr=e=>{let{r:t,g:n,b:r,alpha:i}=ci(e),o={mode:"xyz65",x:.4123907992659593*t+.357584339383878*n+.1804807884018343*r,y:.2126390058715102*t+.715168678767756*n+.0721923153607337*r,z:.0193308187155918*t+.119194779794626*n+.9505321522496607*r};return i!==void 0&&(o.alpha=i),o},Nc=(e=0)=>{const t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(t,1/2.4)-.055):e*12.92},ui=({r:e,g:t,b:n,alpha:r},i="rgb")=>{let o={mode:i,r:Nc(e),g:Nc(t),b:Nc(n)};return r!==void 0&&(o.alpha=r),o},Pr=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=ui({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*n,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*n,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*n});return r!==void 0&&(i.alpha=r),i},$I=zt(ht({},li),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>Wy(Cr(e)),xyz65:Wy},toMode:{rgb:e=>Pr(By(e)),xyz65:By}}),jt=e=>(e=e%360)<0?e+360:e,EI=(e,t)=>e.map((n,r,i)=>{if(n===void 0)return n;let o=jt(n);return r===0||e[r-1]===void 0?o:t(o-jt(i[r-1]))}).reduce((n,r)=>!n.length||r===void 0||n[n.length-1]===void 0?(n.push(r),n):(n.push(r+n[n.length-1]),n),[]),Fn=e=>EI(e,t=>Math.abs(t)<=180?t:t-360*Math.sign(t)),Dt=[-.14861,1.78277,-.29227,-.90649,1.97294,0],MI=Math.PI/180,II=180/Math.PI;let Vy=Dt[3]*Dt[4],Gy=Dt[1]*Dt[4],Yy=Dt[1]*Dt[2]-Dt[0]*Dt[3];const AI=({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(Yy*n+e*Vy-t*Gy)/(Yy+Vy-Gy),o=n-i,s=(Dt[4]*(t-i)-Dt[2]*o)/Dt[3],a={mode:"cubehelix",l:i,s:i===0||i===1?void 0:Math.sqrt(o*o+s*s)/(Dt[4]*i*(1-i))};return a.s&&(a.h=Math.atan2(s,o)*II-120),r!==void 0&&(a.alpha=r),a},TI=({h:e,s:t,l:n,alpha:r})=>{let i={mode:"rgb"};e=(e===void 0?0:e+120)*MI,n===void 0&&(n=0);let o=t===void 0?0:t*n*(1-n),s=Math.cos(e),a=Math.sin(e);return i.r=n+o*(Dt[0]*s+Dt[1]*a),i.g=n+o*(Dt[2]*s+Dt[3]*a),i.b=n+o*(Dt[4]*s+Dt[5]*a),r!==void 0&&(i.alpha=r),i},xs=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let n=jt(e.h),r=jt(t.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*i},RI=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let n=jt(e.h),r=jt(t.h);return Math.abs(r-n)>180?n-(r-360*Math.sign(r-n)):r-n},Cs=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let n=jt(e.h),r=jt(t.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*i},Bn=e=>{let t=e.reduce((r,i)=>{if(i!==void 0){let o=i*Math.PI/180;r.sin+=Math.sin(o),r.cos+=Math.cos(o)}return r},{sin:0,cos:0}),n=Math.atan2(t.sin,t.cos)*180/Math.PI;return n<0?360+n:n},kI={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:AI},toMode:{rgb:TI},interpolate:{h:{use:we,fixup:Fn},s:we,l:we,alpha:{use:we,fixup:kt}},difference:{h:xs},average:{h:Bn}},or=({l:e,a:t,b:n,alpha:r},i="lch")=>{t===void 0&&(t=0),n===void 0&&(n=0);let o=Math.sqrt(t*t+n*n),s={mode:i,l:e,c:o};return o&&(s.h=jt(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(s.alpha=r),s},sr=({l:e,c:t,h:n,alpha:r},i="lab")=>{n===void 0&&(n=0);let o={mode:i,l:e,a:t?t*Math.cos(n/180*Math.PI):0,b:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(o.alpha=r),o},Xy=Math.pow(29,3)/Math.pow(3,3),Uy=Math.pow(6,3)/Math.pow(29,3),At={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},hi={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329};let zc=e=>Math.pow(e,3)>Uy?Math.pow(e,3):(116*e-16)/Xy;const Ky=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+16)/116,o=t/500+i,s=i-n/200,a={mode:"xyz65",x:zc(o)*hi.X,y:zc(i)*hi.Y,z:zc(s)*hi.Z};return r!==void 0&&(a.alpha=r),a},Ps=e=>Pr(Ky(e)),Dc=e=>e>Uy?Math.cbrt(e):(Xy*e+16)/116,Zy=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Dc(e/hi.X),o=Dc(t/hi.Y),s=Dc(n/hi.Z),a={mode:"lab65",l:116*o-16,a:500*(i-o),b:200*(o-s)};return r!==void 0&&(a.alpha=r),a},Os=e=>{let t=Zy(Cr(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Ss=1,Qy=1,eo=26/180*Math.PI,$s=Math.cos(eo),Es=Math.sin(eo),Jy=100/Math.log(139/100),qc=({l:e,c:t,h:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:"lab65",l:(Math.exp(e*Ss/Jy)-1)/.0039},o=(Math.exp(.0435*t*Qy*Ss)-1)/.075,s=o*Math.cos(n/180*Math.PI-eo),a=o*Math.sin(n/180*Math.PI-eo);return i.a=s*$s-a/.83*Es,i.b=s*Es+a/.83*$s,r!==void 0&&(i.alpha=r),i},Hc=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=t*$s+n*Es,o=.83*(n*$s-t*Es),s=Math.sqrt(i*i+o*o),a={mode:"dlch",l:Jy/Ss*Math.log(1+.0039*e),c:Math.log(1+.075*s)/(.0435*Qy*Ss)};return a.c&&(a.h=jt((Math.atan2(o,i)+eo)/Math.PI*180)),r!==void 0&&(a.alpha=r),a},e2=e=>qc(or(e,"dlch")),t2=e=>sr(Hc(e),"dlab"),LI={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:e2,rgb:e=>Ps(e2(e))},fromMode:{lab65:t2,rgb:e=>t2(Os(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:we,a:we,b:we,alpha:{use:we,fixup:kt}}},NI={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:qc,dlab:e=>sr(e,"dlab"),rgb:e=>Ps(qc(e))},fromMode:{lab65:Hc,dlab:e=>or(e,"dlch"),rgb:e=>Hc(Os(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:we,c:we,h:{use:we,fixup:Fn},alpha:{use:we,fixup:kt}},difference:{h:Cs},average:{h:Bn}};function zI({h:e,s:t,i:n,alpha:r}){e=jt(e!==void 0?e:0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.abs(e/60%2-1),o;switch(Math.floor(e/60)){case 0:o={r:n*(1+t*(3/(2-i)-1)),g:n*(1+t*(3*(1-i)/(2-i)-1)),b:n*(1-t)};break;case 1:o={r:n*(1+t*(3*(1-i)/(2-i)-1)),g:n*(1+t*(3/(2-i)-1)),b:n*(1-t)};break;case 2:o={r:n*(1-t),g:n*(1+t*(3/(2-i)-1)),b:n*(1+t*(3*(1-i)/(2-i)-1))};break;case 3:o={r:n*(1-t),g:n*(1+t*(3*(1-i)/(2-i)-1)),b:n*(1+t*(3/(2-i)-1))};break;case 4:o={r:n*(1+t*(3*(1-i)/(2-i)-1)),g:n*(1-t),b:n*(1+t*(3/(2-i)-1))};break;case 5:o={r:n*(1+t*(3/(2-i)-1)),g:n*(1-t),b:n*(1+t*(3*(1-i)/(2-i)-1))};break;default:o={r:n*(1-t),g:n*(1-t),b:n*(1-t)}}return o.mode="rgb",r!==void 0&&(o.alpha=r),o}function DI({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.max(e,t,n),o=Math.min(e,t,n),s={mode:"hsi",s:e+t+n===0?0:1-3*o/(e+t+n),i:(e+t+n)/3};return i-o!==0&&(s.h=(i===e?(t-n)/(i-o)+(t<n)*6:i===t?(n-e)/(i-o)+2:(e-t)/(i-o)+4)*60),r!==void 0&&(s.alpha=r),s}const qI={mode:"hsi",toMode:{rgb:zI},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:DI},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:we,fixup:Fn},s:we,i:we,alpha:{use:we,fixup:kt}},difference:{h:xs},average:{h:Bn}};function HI({h:e,s:t,l:n,alpha:r}){e=jt(e!==void 0?e:0),t===void 0&&(t=0),n===void 0&&(n=0);let i=n+t*(n<.5?n:1-n),o=i-(i-n)*2*Math.abs(e/60%2-1),s;switch(Math.floor(e/60)){case 0:s={r:i,g:o,b:2*n-i};break;case 1:s={r:o,g:i,b:2*n-i};break;case 2:s={r:2*n-i,g:i,b:o};break;case 3:s={r:2*n-i,g:o,b:i};break;case 4:s={r:o,g:2*n-i,b:i};break;case 5:s={r:i,g:2*n-i,b:o};break;default:s={r:2*n-i,g:2*n-i,b:2*n-i}}return s.mode="rgb",r!==void 0&&(s.alpha=r),s}function jI({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.max(e,t,n),o=Math.min(e,t,n),s={mode:"hsl",s:i===o?0:(i-o)/(1-Math.abs(i+o-1)),l:.5*(i+o)};return i-o!==0&&(s.h=(i===e?(t-n)/(i-o)+(t<n)*6:i===t?(n-e)/(i-o)+2:(e-t)/(i-o)+4)*60),r!==void 0&&(s.alpha=r),s}const FI=(e,t)=>{switch(t){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},BI=new RegExp(`^hsla?\\(\\s*${cI}${ai}${Qi}${ai}${Qi}\\s*(?:,\\s*${Mc}\\s*)?\\)$`),WI=e=>{let t=e.match(BI);if(!t)return;let n={mode:"hsl"};return t[3]!==void 0?n.h=+t[3]:t[1]!==void 0&&t[2]!==void 0&&(n.h=FI(t[1],t[2])),t[4]!==void 0&&(n.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(n.l=Math.min(Math.max(0,t[5]/100),1)),t[6]!==void 0?n.alpha=Math.max(0,Math.min(1,t[6]/100)):t[7]!==void 0&&(n.alpha=Math.max(0,Math.min(1,+t[7]))),n};function VI(e,t){if(!t||t[0]!=="hsl"&&t[0]!=="hsla")return;const n={mode:"hsl"},[,r,i,o,s]=t;if(r.type!==de.None){if(r.type===de.Percentage)return;n.h=r.value}if(i.type!==de.None){if(i.type===de.Hue)return;n.s=i.value/100}if(o.type!==de.None){if(o.type===de.Hue)return;n.l=o.value/100}return s.type!==de.None&&(n.alpha=Math.min(1,Math.max(0,s.type===de.Number?s.value:s.value/100))),n}const n2={mode:"hsl",toMode:{rgb:HI},fromMode:{rgb:jI},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[VI,WI],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:we,fixup:Fn},s:we,l:we,alpha:{use:we,fixup:kt}},difference:{h:xs},average:{h:Bn}};function r2({h:e,s:t,v:n,alpha:r}){e=jt(e!==void 0?e:0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.abs(e/60%2-1),o;switch(Math.floor(e/60)){case 0:o={r:n,g:n*(1-t*i),b:n*(1-t)};break;case 1:o={r:n*(1-t*i),g:n,b:n*(1-t)};break;case 2:o={r:n*(1-t),g:n,b:n*(1-t*i)};break;case 3:o={r:n*(1-t),g:n*(1-t*i),b:n};break;case 4:o={r:n*(1-t*i),g:n*(1-t),b:n};break;case 5:o={r:n,g:n*(1-t),b:n*(1-t*i)};break;default:o={r:n*(1-t),g:n*(1-t),b:n*(1-t)}}return o.mode="rgb",r!==void 0&&(o.alpha=r),o}function i2({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.max(e,t,n),o=Math.min(e,t,n),s={mode:"hsv",s:i===0?0:1-o/i,v:i};return i-o!==0&&(s.h=(i===e?(t-n)/(i-o)+(t<n)*6:i===t?(n-e)/(i-o)+2:(e-t)/(i-o)+4)*60),r!==void 0&&(s.alpha=r),s}const o2={mode:"hsv",toMode:{rgb:r2},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:i2},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:we,fixup:Fn},s:we,v:we,alpha:{use:we,fixup:kt}},difference:{h:xs},average:{h:Bn}};function GI({h:e,w:t,b:n,alpha:r}){if(t===void 0&&(t=0),n===void 0&&(n=0),t+n>1){let i=t+n;t/=i,n/=i}return r2({h:e,s:n===1?1:1-t/(1-n),v:1-n,alpha:r})}function YI(e){let t=i2(e);if(t===void 0)return;let n=t.s!==void 0?t.s:0,r=t.v!==void 0?t.v:0,i={mode:"hwb",w:(1-n)*r,b:1-r};return t.h!==void 0&&(i.h=t.h),t.alpha!==void 0&&(i.alpha=t.alpha),i}function XI(e,t){if(!t||t[0]!=="hwb")return;const n={mode:"hwb"},[,r,i,o,s]=t;if(r.type!==de.None){if(r.type===de.Percentage)return;n.h=r.value}if(i.type!==de.None){if(i.type===de.Hue)return;n.w=i.value/100}if(o.type!==de.None){if(o.type===de.Hue)return;n.b=o.value/100}return s.type!==de.None&&(n.alpha=Math.min(1,Math.max(0,s.type===de.Number?s.value:s.value/100))),n}const UI={mode:"hwb",toMode:{rgb:GI},fromMode:{rgb:YI},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[XI],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:we,fixup:Fn},w:we,b:we,alpha:{use:we,fixup:kt}},difference:{h:RI},average:{h:Bn}},s2=203,Ms=.1593017578125,a2=78.84375,Is=.8359375,As=18.8515625,Ts=18.6875;function jc(e){if(e<0)return 0;const t=Math.pow(e,1/a2);return 1e4*Math.pow(Math.max(0,t-Is)/(As-Ts*t),1/Ms)}function Fc(e){if(e<0)return 0;const t=Math.pow(e/1e4,Ms);return Math.pow((Is+As*t)/(1+Ts*t),a2)}const Bc=e=>Math.max(e/s2,0),l2=({i:e,t,p:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);const i=jc(e+.008609037037932761*t+.11102962500302593*n),o=jc(e-.00860903703793275*t-.11102962500302599*n),s=jc(e+.5600313357106791*t-.32062717498731885*n),a={mode:"xyz65",x:Bc(2.070152218389422*i-1.3263473389671556*o+.2066510476294051*s),y:Bc(.3647385209748074*i+.680566024947227*o-.0453045459220346*s),z:Bc(-.049747207535812*i-.0492609666966138*o+1.1880659249923042*s)};return r!==void 0&&(a.alpha=r),a},Wc=(e=0)=>Math.max(e*s2,0),c2=({x:e,y:t,z:n,alpha:r})=>{const i=Wc(e),o=Wc(t),s=Wc(n),a=Fc(.3592832590121217*i+.6976051147779502*o-.0358915932320289*s),l=Fc(-.1920808463704995*i+1.1004767970374323*o+.0753748658519118*s),c=Fc(.0070797844607477*i+.0748396662186366*o+.8433265453898765*s),u=.5*a+.5*l,h=1.61376953125*a-3.323486328125*l+1.709716796875*c,f=4.378173828125*a-4.24560546875*l-.132568359375*c,d={mode:"itp",i:u,t:h,p:f};return r!==void 0&&(d.alpha=r),d},KI={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:l2,rgb:e=>Pr(l2(e))},fromMode:{xyz65:c2,rgb:e=>c2(Cr(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:we,t:we,p:we,alpha:{use:we,fixup:kt}}},ZI=134.03437499999998,QI=16295499532821565e-27,Vc=e=>{if(e<0)return 0;let t=Math.pow(e/1e4,Ms);return Math.pow((Is+As*t)/(1+Ts*t),ZI)},Gc=(e=0)=>Math.max(e*203,0),u2=({x:e,y:t,z:n,alpha:r})=>{e=Gc(e),t=Gc(t),n=Gc(n);let i=1.15*e-.15*n,o=.66*t+.34*e,s=Vc(.41478972*i+.579999*o+.014648*n),a=Vc(-.20151*i+1.120649*o+.0531008*n),l=Vc(-.0166008*i+.2648*o+.6684799*n),c=(s+a)/2,u={mode:"jab",j:.44*c/(1-.56*c)-QI,a:3.524*s-4.066708*a+.542708*l,b:.199076*s+1.096799*a-1.295875*l};return r!==void 0&&(u.alpha=r),u},JI=134.03437499999998,h2=16295499532821565e-27,Yc=e=>{if(e<0)return 0;let t=Math.pow(e,1/JI);return 1e4*Math.pow((Is-t)/(Ts*t-As),1/Ms)},Xc=e=>e/203,f2=({j:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+h2)/(.44+.56*(e+h2)),o=Yc(i+.13860504*t+.058047316*n),s=Yc(i-.13860504*t-.058047316*n),a=Yc(i-.096019242*t-.8118919*n),l={mode:"xyz65",x:Xc(1.661373024652174*o-.914523081304348*s+.23136208173913045*a),y:Xc(-.3250758611844533*o+1.571847026732543*s-.21825383453227928*a),z:Xc(-.090982811*o-.31272829*s+1.5227666*a)};return r!==void 0&&(l.alpha=r),l},d2=e=>{let t=u2(Cr(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},p2=e=>Pr(f2(e)),eA={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:d2,xyz65:u2},toMode:{rgb:p2,xyz65:f2},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:we,a:we,b:we,alpha:{use:we,fixup:kt}}},g2=({j:e,a:t,b:n,alpha:r})=>{t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.sqrt(t*t+n*n),o={mode:"jch",j:e,c:i};return i&&(o.h=jt(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(o.alpha=r),o},m2=({j:e,c:t,h:n,alpha:r})=>{n===void 0&&(n=0);let i={mode:"jab",j:e,a:t?t*Math.cos(n/180*Math.PI):0,b:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(i.alpha=r),i},tA={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:m2,rgb:e=>p2(m2(e))},fromMode:{rgb:e=>g2(d2(e)),jab:g2},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:we,fixup:Fn},c:we,j:we,alpha:{use:we,fixup:kt}},difference:{h:Cs},average:{h:Bn}},Rs=Math.pow(29,3)/Math.pow(3,3),Uc=Math.pow(6,3)/Math.pow(29,3);let Kc=e=>Math.pow(e,3)>Uc?Math.pow(e,3):(116*e-16)/Rs;const Zc=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+16)/116,o=t/500+i,s=i-n/200,a={mode:"xyz50",x:Kc(o)*At.X,y:Kc(i)*At.Y,z:Kc(s)*At.Z};return r!==void 0&&(a.alpha=r),a},to=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=ui({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*n,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*n,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*n});return r!==void 0&&(i.alpha=r),i},y2=e=>to(Zc(e)),no=e=>{let{r:t,g:n,b:r,alpha:i}=ci(e),o={mode:"xyz50",x:.436065742824811*t+.3851514688337912*n+.14307845442264197*r,y:.22249319175623702*t+.7168870538238823*n+.06061979053616537*r,z:.013923904500943465*t+.09708128566574634*n+.7140993584005155*r};return i!==void 0&&(o.alpha=i),o},Qc=e=>e>Uc?Math.cbrt(e):(Rs*e+16)/116,Jc=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Qc(e/At.X),o=Qc(t/At.Y),s=Qc(n/At.Z),a={mode:"lab",l:116*o-16,a:500*(i-o),b:200*(o-s)};return r!==void 0&&(a.alpha=r),a},v2=e=>{let t=Jc(no(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t};function nA(e,t){if(!t||t[0]!=="lab")return;const n={mode:"lab"},[,r,i,o,s]=t;if(!(r.type===de.Hue||i.type===de.Hue||o.type===de.Hue))return r.type!==de.None&&(n.l=Math.min(Math.max(0,r.value),100)),i.type!==de.None&&(n.a=i.type===de.Number?i.value:i.value*125/100),o.type!==de.None&&(n.b=o.type===de.Number?o.value:o.value*125/100),s.type!==de.None&&(n.alpha=Math.min(1,Math.max(0,s.type===de.Number?s.value:s.value/100))),n}const eu={mode:"lab",toMode:{xyz50:Zc,rgb:y2},fromMode:{xyz50:Jc,rgb:v2},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[nA],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:we,a:we,b:we,alpha:{use:we,fixup:kt}}},rA=zt(ht({},eu),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:Ky,rgb:Ps},fromMode:{xyz65:Zy,rgb:Os},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}});function iA(e,t){if(!t||t[0]!=="lch")return;const n={mode:"lch"},[,r,i,o,s]=t;if(r.type!==de.None){if(r.type===de.Hue)return;n.l=Math.min(Math.max(0,r.value),100)}if(i.type!==de.None&&(n.c=Math.max(0,i.type===de.Number?i.value:i.value*150/100)),o.type!==de.None){if(o.type===de.Percentage)return;n.h=o.value}return s.type!==de.None&&(n.alpha=Math.min(1,Math.max(0,s.type===de.Number?s.value:s.value/100))),n}const tu={mode:"lch",toMode:{lab:sr,rgb:e=>y2(sr(e))},fromMode:{rgb:e=>or(v2(e)),lab:or},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[iA],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:we,fixup:Fn},c:we,l:we,alpha:{use:we,fixup:kt}},difference:{h:Cs},average:{h:Bn}},oA=zt(ht({},tu),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>sr(e,"lab65"),rgb:e=>Ps(sr(e,"lab65"))},fromMode:{rgb:e=>or(Os(e),"lch65"),lab65:e=>or(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),b2=({l:e,u:t,v:n,alpha:r})=>{t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.sqrt(t*t+n*n),o={mode:"lchuv",l:e,c:i};return i&&(o.h=jt(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(o.alpha=r),o},_2=({l:e,c:t,h:n,alpha:r})=>{n===void 0&&(n=0);let i={mode:"luv",l:e,u:t?t*Math.cos(n/180*Math.PI):0,v:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(i.alpha=r),i},w2=(e,t,n)=>4*e/(e+15*t+3*n),x2=(e,t,n)=>9*t/(e+15*t+3*n),sA=w2(At.X,At.Y,At.Z),aA=x2(At.X,At.Y,At.Z),lA=e=>e<=Uc?Rs*e:116*Math.cbrt(e)-16,nu=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=lA(t/At.Y),o=w2(e,t,n),s=x2(e,t,n);!isFinite(o)||!isFinite(s)?i=o=s=0:(o=13*i*(o-sA),s=13*i*(s-aA));let a={mode:"luv",l:i,u:o,v:s};return r!==void 0&&(a.alpha=r),a},cA=(e,t,n)=>4*e/(e+15*t+3*n),uA=(e,t,n)=>9*t/(e+15*t+3*n),hA=cA(At.X,At.Y,At.Z),fA=uA(At.X,At.Y,At.Z),ru=({l:e,u:t,v:n,alpha:r})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};t===void 0&&(t=0),n===void 0&&(n=0);let i=t/(13*e)+hA,o=n/(13*e)+fA,s=At.Y*(e<=8?e/Rs:Math.pow((e+16)/116,3)),a=s*(9*i)/(4*o),l=s*(12-3*i-20*o)/(4*o),c={mode:"xyz50",x:a,y:s,z:l};return r!==void 0&&(c.alpha=r),c},dA={mode:"lchuv",toMode:{luv:_2,rgb:e=>to(ru(_2(e)))},fromMode:{rgb:e=>b2(nu(no(e))),luv:b2},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:we,fixup:Fn},c:we,l:we,alpha:{use:we,fixup:kt}},difference:{h:Cs},average:{h:Bn}},pA=zt(ht({},li),{mode:"lrgb",toMode:{rgb:ui},fromMode:{rgb:ci},parse:["srgb-linear"],serialize:"srgb-linear"}),gA={mode:"luv",toMode:{xyz50:ru,rgb:e=>to(ru(e))},fromMode:{xyz50:nu,rgb:e=>nu(no(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:we,u:we,v:we,alpha:{use:we,fixup:kt}}},C2=({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*n),o=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*n),s=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*n),a={mode:"oklab",l:.210454268309314*i+.7936177747023054*o-.0040720430116193*s,a:1.9779985324311684*i-2.42859224204858*o+.450593709617411*s,b:.0259040424655478*i+.7827717124575296*o-.8086757549230774*s};return r!==void 0&&(a.alpha=r),a},ks=e=>{let t=C2(ci(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},ro=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.pow(e+.3963377773761749*t+.2158037573099136*n,3),o=Math.pow(e-.1055613458156586*t-.0638541728258133*n,3),s=Math.pow(e-.0894841775298119*t-1.2914855480194092*n,3),a={mode:"lrgb",r:4.076741636075957*i-3.3077115392580616*o+.2309699031821044*s,g:-1.2684379732850317*i+2.6097573492876887*o-.3413193760026573*s,b:-.0041960761386756*i-.7034186179359362*o+1.7076146940746117*s};return r!==void 0&&(a.alpha=r),a},Ls=e=>ui(ro(e));function iu(e){const r=1.170873786407767;return .5*(r*e-.206+Math.sqrt((r*e-.206)*(r*e-.206)+4*.03*r*e))}function Ns(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function mA(e,t){let n,r,i,o,s,a,l,c;-1.88170328*e-.80936493*t>1?(n=1.19086277,r=1.76576728,i=.59662641,o=.75515197,s=.56771245,a=4.0767416621,l=-3.3077115913,c=.2309699292):1.81444104*e-1.19445276*t>1?(n=.73956515,r=-.45954404,i=.08285427,o=.1254107,s=.14503204,a=-1.2684380046,l=2.6097574011,c=-.3413193965):(n=1.35733652,r=-.00915799,i=-1.1513021,o=-.50559606,s=.00692167,a=-.0041960863,l=-.7034186147,c=1.707614701);let u=n+r*e+i*t+o*e*e+s*e*t,h=.3963377774*e+.2158037573*t,f=-.1055613458*e-.0638541728*t,d=-.0894841775*e-1.291485548*t;{let p=1+u*h,g=1+u*f,m=1+u*d,v=p*p*p,b=g*g*g,_=m*m*m,x=3*h*p*p,w=3*f*g*g,C=3*d*m*m,P=6*h*h*p,O=6*f*f*g,$=6*d*d*m,S=a*v+l*b+c*_,M=a*x+l*w+c*C,I=a*P+l*O+c*$;u=u-S*M/(M*M-.5*S*I)}return u}function ou(e,t){let n=mA(e,t),r=ro({l:1,a:n*e,b:n*t}),i=Math.cbrt(1/Math.max(r.r,r.g,r.b)),o=i*n;return[i,o]}function yA(e,t,n,r,i,o=null){o||(o=ou(e,t));let s;if((n-i)*o[1]-(o[0]-i)*r<=0)s=o[1]*i/(r*o[0]+o[1]*(i-n));else{s=o[1]*(i-1)/(r*(o[0]-1)+o[1]*(i-n));{let a=n-i,l=r,c=.3963377774*e+.2158037573*t,u=-.1055613458*e-.0638541728*t,h=-.0894841775*e-1.291485548*t,f=a+l*c,d=a+l*u,p=a+l*h;{let g=i*(1-s)+s*n,m=s*r,v=g+m*c,b=g+m*u,_=g+m*h,x=v*v*v,w=b*b*b,C=_*_*_,P=3*f*v*v,O=3*d*b*b,$=3*p*_*_,S=6*f*f*v,M=6*d*d*b,I=6*p*p*_,E=4.0767416621*x-3.3077115913*w+.2309699292*C-1,A=4.0767416621*P-3.3077115913*O+.2309699292*$,T=4.0767416621*S-3.3077115913*M+.2309699292*I,N=A/(A*A-.5*E*T),H=-E*N,D=-1.2684380046*x+2.6097574011*w-.3413193965*C-1,B=-1.2684380046*P+2.6097574011*O-.3413193965*$,F=-1.2684380046*S+2.6097574011*M-.3413193965*I,X=B/(B*B-.5*D*F),G=-D*X,L=-.0041960863*x-.7034186147*w+1.707614701*C-1,R=-.0041960863*P-.7034186147*O+1.707614701*$,z=-.0041960863*S-.7034186147*M+1.707614701*I,q=R/(R*R-.5*L*z),j=-L*q;H=N>=0?H:1e6,G=X>=0?G:1e6,j=q>=0?j:1e6,s+=Math.min(H,Math.min(G,j))}}}return s}function su(e,t,n=null){n||(n=ou(e,t));let r=n[0],i=n[1];return[i/r,i/(1-r)]}function P2(e,t,n){let r=ou(t,n),i=yA(t,n,e,1,e,r),o=su(t,n,r),s=.11516993+1/(7.4477897+4.1590124*n+t*(-2.19557347+1.75198401*n+t*(-2.13704948-10.02301043*n+t*(-4.24894561+5.38770819*n+4.69891013*t)))),a=.11239642+1/(1.6132032-.68124379*n+t*(.40370612+.90148123*n+t*(-.27087943+.6122399*n+t*(.00299215-.45399568*n-.14661872*t)))),l=i/Math.min(e*o[0],(1-e)*o[1]),c=e*s,u=(1-e)*a,h=.9*l*Math.sqrt(Math.sqrt(1/(1/(c*c*c*c)+1/(u*u*u*u))));return c=e*.4,u=(1-e)*.8,[Math.sqrt(1/(1/(c*c)+1/(u*u))),h,i]}function O2(e){const t=e.l!==void 0?e.l:0,n=e.a!==void 0?e.a:0,r=e.b!==void 0?e.b:0,i={mode:"okhsl",l:iu(t)};e.alpha!==void 0&&(i.alpha=e.alpha);let o=Math.sqrt(n*n+r*r);if(!o)return i.s=0,i;let[s,a,l]=P2(t,n/o,r/o),c;if(o<a){let u=0,h=.8*s,f=1-h/a;c=(o-u)/(h+f*(o-u))*.8}else{let u=a,h=.2*a*a*1.25*1.25/s,f=1-h/(l-a);c=.8+.2*((o-u)/(h+f*(o-u)))}return c&&(i.s=c,i.h=jt(Math.atan2(r,n)*180/Math.PI)),i}function S2(e){let t=e.h!==void 0?e.h:0,n=e.s!==void 0?e.s:0,r=e.l!==void 0?e.l:0;const i={mode:"oklab",l:Ns(r)};if(e.alpha!==void 0&&(i.alpha=e.alpha),!n||r===1)return i.a=i.b=0,i;let o=Math.cos(t/180*Math.PI),s=Math.sin(t/180*Math.PI),[a,l,c]=P2(i.l,o,s),u,h,f,d;n<.8?(u=1.25*n,h=0,f=.8*a,d=1-f/l):(u=5*(n-.8),h=l,f=.2*l*l*1.25*1.25/a,d=1-f/(c-l));let p=h+u*f/(1-d*u);return i.a=p*o,i.b=p*s,i}const vA=zt(ht({},n2),{mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:O2,rgb:e=>O2(ks(e))},toMode:{oklab:S2,rgb:e=>Ls(S2(e))}});function $2(e){let t=e.l!==void 0?e.l:0,n=e.a!==void 0?e.a:0,r=e.b!==void 0?e.b:0,i=Math.sqrt(n*n+r*r),o=i?n/i:1,s=i?r/i:1,[a,l]=su(o,s),c=.5,u=1-c/a,h=l/(i+t*l),f=h*t,d=h*i,p=Ns(f),g=d*p/f,m=ro({l:p,a:o*g,b:s*g}),v=Math.cbrt(1/Math.max(m.r,m.g,m.b,0));t=t/v,i=i/v*iu(t)/t,t=iu(t);const b={mode:"okhsv",s:i?(c+l)*d/(l*c+l*u*d):0,v:t?t/f:0};return b.s&&(b.h=jt(Math.atan2(r,n)*180/Math.PI)),e.alpha!==void 0&&(b.alpha=e.alpha),b}function E2(e){const t={mode:"oklab"};e.alpha!==void 0&&(t.alpha=e.alpha);const n=e.h!==void 0?e.h:0,r=e.s!==void 0?e.s:0,i=e.v!==void 0?e.v:0,o=Math.cos(n/180*Math.PI),s=Math.sin(n/180*Math.PI),[a,l]=su(o,s),c=.5,u=1-c/a,h=1-r*c/(c+l-l*u*r),f=r*l*c/(c+l-l*u*r),d=Ns(h),p=f*d/h,g=ro({l:d,a:o*p,b:s*p}),m=Math.cbrt(1/Math.max(g.r,g.g,g.b,0)),v=Ns(i*h),b=f*v/h;return t.l=v*m,t.a=b*o*m,t.b=b*s*m,t}const bA=zt(ht({},o2),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:$2,rgb:e=>$2(ks(e))},toMode:{oklab:E2,rgb:e=>Ls(E2(e))}});function _A(e,t){if(!t||t[0]!=="oklab")return;const n={mode:"oklab"},[,r,i,o,s]=t;if(!(r.type===de.Hue||i.type===de.Hue||o.type===de.Hue))return r.type!==de.None&&(n.l=Math.min(Math.max(0,r.type===de.Number?r.value:r.value/100),1)),i.type!==de.None&&(n.a=i.type===de.Number?i.value:i.value*.4/100),o.type!==de.None&&(n.b=o.type===de.Number?o.value:o.value*.4/100),s.type!==de.None&&(n.alpha=Math.min(1,Math.max(0,s.type===de.Number?s.value:s.value/100))),n}const wA=zt(ht({},eu),{mode:"oklab",toMode:{lrgb:ro,rgb:Ls},fromMode:{lrgb:C2,rgb:ks},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[_A],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`});function xA(e,t){if(!t||t[0]!=="oklch")return;const n={mode:"oklch"},[,r,i,o,s]=t;if(r.type!==de.None){if(r.type===de.Hue)return;n.l=Math.min(Math.max(0,r.type===de.Number?r.value:r.value/100),1)}if(i.type!==de.None&&(n.c=Math.max(0,i.type===de.Number?i.value:i.value*.4/100)),o.type!==de.None){if(o.type===de.Percentage)return;n.h=o.value}return s.type!==de.None&&(n.alpha=Math.min(1,Math.max(0,s.type===de.Number?s.value:s.value/100))),n}const M2=zt(ht({},tu),{mode:"oklch",toMode:{oklab:e=>sr(e,"oklab"),rgb:e=>Ls(sr(e,"oklab"))},fromMode:{rgb:e=>or(ks(e),"oklch"),oklab:e=>or(e,"oklch")},parse:[xA],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),I2=e=>{let{r:t,g:n,b:r,alpha:i}=ci(e),o={mode:"xyz65",x:.486570948648216*t+.265667693169093*n+.1982172852343625*r,y:.2289745640697487*t+.6917385218365062*n+.079286914093745*r,z:0*t+.0451133818589026*n+1.043944368900976*r};return i!==void 0&&(o.alpha=i),o},A2=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=ui({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*n,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*n,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*n},"p3");return r!==void 0&&(i.alpha=r),i},CA=zt(ht({},li),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>A2(Cr(e)),xyz65:A2},toMode:{rgb:e=>Pr(I2(e)),xyz65:I2}}),au=e=>{let t=Math.abs(e);return t>=1/512?Math.sign(e)*Math.pow(t,1/1.8):16*e},T2=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:"prophoto",r:au(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*n),g:au(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*n),b:au(e*0+t*0+1.2119675456389452*n)};return r!==void 0&&(i.alpha=r),i},lu=(e=0)=>{let t=Math.abs(e);return t>=16/512?Math.sign(e)*Math.pow(t,1.8):e/16},R2=e=>{let t=lu(e.r),n=lu(e.g),r=lu(e.b),i={mode:"xyz50",x:.7977666449006423*t+.1351812974005331*n+.0313477341283922*r,y:.2880748288194013*t+.7118352342418731*n+899369387256e-16*r,z:0*t+0*n+.8251046025104602*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},PA=zt(ht({},li),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:T2,rgb:e=>T2(no(e))},toMode:{xyz50:R2,rgb:e=>to(R2(e))}}),k2=1.09929682680944,OA=.018053968510807,cu=e=>{const t=Math.abs(e);return t>OA?(Math.sign(e)||1)*(k2*Math.pow(t,.45)-(k2-1)):4.5*e},L2=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:"rec2020",r:cu(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*n),g:cu(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*n),b:cu(e*.0176398574453108-t*.0427706132578085+.9421031212354739*n)};return r!==void 0&&(i.alpha=r),i},N2=1.09929682680944,SA=.018053968510807,uu=(e=0)=>{let t=Math.abs(e);return t<SA*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((t+N2-1)/N2,1/.45)},z2=e=>{let t=uu(e.r),n=uu(e.g),r=uu(e.b),i={mode:"xyz65",x:.6369580483012911*t+.1446169035862083*n+.1688809751641721*r,y:.262700212011267*t+.6779980715188708*n+.059301716469862*r,z:0*t+.0280726930490874*n+1.0609850577107909*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},$A=zt(ht({},li),{mode:"rec2020",fromMode:{xyz65:L2,rgb:e=>L2(Cr(e))},toMode:{xyz65:z2,rgb:e=>Pr(z2(e))},parse:["rec2020"],serialize:"rec2020"}),Or=.0037930732552754493,D2=Math.cbrt(Or),hu=e=>Math.cbrt(e)-D2,EA=e=>{const{r:t,g:n,b:r,alpha:i}=ci(e),o=hu(.3*t+.622*n+.078*r+Or),s=hu(.23*t+.692*n+.078*r+Or),a=hu(.2434226892454782*t+.2047674442449682*n+.5518098665095535*r+Or),l={mode:"xyb",x:(o-s)/2,y:(o+s)/2,b:a-(o+s)/2};return i!==void 0&&(l.alpha=i),l},fu=e=>Math.pow(e+D2,3),MA={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:({x:e,y:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);const i=fu(e+t)-Or,o=fu(t-e)-Or,s=fu(n+t)-Or,a=ui({r:11.031566904639861*i-9.866943908131562*o-.16462299650829934*s,g:-3.2541473810744237*i+4.418770377582723*o-.16462299650829934*s,b:-3.6588512867136815*i+2.7129230459360922*o+1.9459282407775895*s});return r!==void 0&&(a.alpha=r),a}},fromMode:{rgb:EA},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:we,y:we,b:we,alpha:{use:we,fixup:kt}}},IA={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:to,lab:Jc},fromMode:{rgb:no,lab:Zc},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:we,y:we,z:we,alpha:{use:we,fixup:kt}}},AA={mode:"xyz65",toMode:{rgb:Pr,xyz50:e=>{let{x:t,y:n,z:r,alpha:i}=e;t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0);let o={mode:"xyz50",x:1.0479298208405488*t+.0229467933410191*n-.0501922295431356*r,y:.0296278156881593*t+.990434484573249*n-.0170738250293851*r,z:-.0092430581525912*t+.0150551448965779*n+.7518742899580008*r};return i!==void 0&&(o.alpha=i),o}},fromMode:{rgb:Cr,xyz50:e=>{let{x:t,y:n,z:r,alpha:i}=e;t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0);let o={mode:"xyz65",x:.9554734527042182*t-.0230985368742614*n+.0632593086610217*r,y:-.0283697069632081*t+1.0099954580058226*n+.021041398966943*r,z:.0123140016883199*t-.0205076964334779*n+1.3303659366080753*r};return i!==void 0&&(o.alpha=i),o}},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:we,y:we,z:we,alpha:{use:we,fixup:kt}}},TA={mode:"yiq",toMode:{rgb:({y:e,i:t,q:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);const i={mode:"rgb",r:e+.95608445*t+.6208885*n,g:e-.27137664*t-.6486059*n,b:e-1.10561724*t+1.70250126*n};return r!==void 0&&(i.alpha=r),i}},fromMode:{rgb:({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);const i={mode:"yiq",y:.29889531*e+.58662247*t+.11448223*n,i:.59597799*e-.2741761*t-.32180189*n,q:.21147017*e-.52261711*t+.31114694*n};return r!==void 0&&(i.alpha=r),i}},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:we,i:we,q:we,alpha:{use:we,fixup:kt}}},RA=e=>Math.max(0,Math.min(1,e||0)),zs=e=>Math.round(RA(e)*255),q2=Ic("rgb"),H2=e=>{if(e===void 0)return;let t=zs(e.r),n=zs(e.g),r=zs(e.b);return"#"+(1<<24|t<<16|n<<8|r).toString(16).slice(1)},kA=e=>{if(e===void 0)return;let t=zs(e.alpha!==void 0?e.alpha:1);return H2(e)+(256|t).toString(16).slice(1)},io=e=>H2(q2(e)),LA=e=>kA(q2(e));function du(e){let t=Ic("lrgb")(e);return .2126*t.r+.7152*t.g+.0722*t.b}function pu(e,t){let n=du(e),r=du(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}ot($I),ot(kI),ot(LI),ot(NI),ot(qI),ot(n2),ot(o2),ot(UI),ot(KI),ot(eA),ot(tA),ot(eu),ot(rA),ot(tu),ot(oA),ot(dA),ot(pA),ot(gA),ot(vA),ot(bA),ot(wA);const j2=ot(M2);ot(CA),ot(PA),ot($A),ot(li),ot(MA),ot(IA),ot(AA),ot(TA);function Sr(e){if(!e)return!1;const t=e.trim().toLowerCase();return!(t==="none"||t==="transparent"||t==="")}function F2(e){const t=En(e);return t?du(t)<.5:!1}var B2=typeof global=="object"&&global&&global.Object===Object&&global,NA=typeof self=="object"&&self&&self.Object===Object&&self,Mn=B2||NA||Function("return this")(),ar=Mn.Symbol,W2=Object.prototype,zA=W2.hasOwnProperty,DA=W2.toString,oo=ar?ar.toStringTag:void 0;function qA(e){var t=zA.call(e,oo),n=e[oo];try{e[oo]=void 0;var r=!0}catch(o){}var i=DA.call(e);return r&&(t?e[oo]=n:delete e[oo]),i}var HA=Object.prototype,jA=HA.toString;function FA(e){return jA.call(e)}var BA="[object Null]",WA="[object Undefined]",V2=ar?ar.toStringTag:void 0;function $r(e){return e==null?e===void 0?WA:BA:V2&&V2 in Object(e)?qA(e):FA(e)}function lr(e){return e!=null&&typeof e=="object"}var VA="[object Symbol]";function Ds(e){return typeof e=="symbol"||lr(e)&&$r(e)==VA}function GA(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var cr=Array.isArray,G2=ar?ar.prototype:void 0,Y2=G2?G2.toString:void 0;function X2(e){if(typeof e=="string")return e;if(cr(e))return GA(e,X2)+"";if(Ds(e))return Y2?Y2.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var YA=/\s/;function XA(e){for(var t=e.length;t--&&YA.test(e.charAt(t)););return t}var UA=/^\s+/;function KA(e){return e&&e.slice(0,XA(e)+1).replace(UA,"")}function In(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var U2=NaN,ZA=/^[-+]0x[0-9a-f]+$/i,QA=/^0b[01]+$/i,JA=/^0o[0-7]+$/i,eT=parseInt;function K2(e){if(typeof e=="number")return e;if(Ds(e))return U2;if(In(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=In(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=KA(e);var n=QA.test(e);return n||JA.test(e)?eT(e.slice(2),n?2:8):ZA.test(e)?U2:+e}var Z2=1/0,tT=17976931348623157e292;function Q2(e){if(!e)return e===0?e:0;if(e=K2(e),e===Z2||e===-Z2){var t=e<0?-1:1;return t*tT}return e===e?e:0}function J2(e){return e}var nT="[object AsyncFunction]",rT="[object Function]",iT="[object GeneratorFunction]",oT="[object Proxy]";function gu(e){if(!In(e))return!1;var t=$r(e);return t==rT||t==iT||t==nT||t==oT}var mu=Mn["__core-js_shared__"],ev=(function(){var e=/[^.]+$/.exec(mu&&mu.keys&&mu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function sT(e){return!!ev&&ev in e}var aT=Function.prototype,lT=aT.toString;function Er(e){if(e!=null){try{return lT.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var cT=/[\\^$.*+?()[\]{}|]/g,uT=/^\[object .+?Constructor\]$/,hT=Function.prototype,fT=Object.prototype,dT=hT.toString,pT=fT.hasOwnProperty,gT=RegExp("^"+dT.call(pT).replace(cT,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mT(e){if(!In(e)||sT(e))return!1;var t=gu(e)?gT:uT;return t.test(Er(e))}function yT(e,t){return e==null?void 0:e[t]}function Mr(e,t){var n=yT(e,t);return mT(n)?n:void 0}var yu=Mr(Mn,"WeakMap"),tv=Object.create,vT=(function(){function e(){}return function(t){if(!In(t))return{};if(tv)return tv(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();function bT(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function _T(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var wT=800,xT=16,CT=Date.now;function PT(e){var t=0,n=0;return function(){var r=CT(),i=xT-(r-n);if(n=r,i>0){if(++t>=wT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function OT(e){return function(){return e}}var qs=(function(){try{var e=Mr(Object,"defineProperty");return e({},"",{}),e}catch(t){}})(),ST=qs?function(e,t){return qs(e,"toString",{configurable:!0,enumerable:!1,value:OT(t),writable:!0})}:J2,$T=PT(ST);function ET(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var MT=9007199254740991,IT=/^(?:0|[1-9]\d*)$/;function nv(e,t){var n=typeof e;return t=t==null?MT:t,!!t&&(n=="number"||n!="symbol"&&IT.test(e))&&e>-1&&e%1==0&&e<t}function vu(e,t,n){t=="__proto__"&&qs?qs(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Hs(e,t){return e===t||e!==e&&t!==t}var AT=Object.prototype,TT=AT.hasOwnProperty;function rv(e,t,n){var r=e[t];(!(TT.call(e,t)&&Hs(r,n))||n===void 0&&!(t in e))&&vu(e,t,n)}function RT(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var a=t[o],l=void 0;l===void 0&&(l=e[a]),i?vu(n,a,l):rv(n,a,l)}return n}var iv=Math.max;function kT(e,t,n){return t=iv(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=iv(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(s),bT(e,this,a)}}function LT(e,t){return $T(kT(e,t,J2),e+"")}var NT=9007199254740991;function ov(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=NT}function js(e){return e!=null&&ov(e.length)&&!gu(e)}function zT(e,t,n){if(!In(n))return!1;var r=typeof t;return(r=="number"?js(n)&&nv(t,n.length):r=="string"&&t in n)?Hs(n[t],e):!1}function DT(e){return LT(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,s&&zT(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var a=n[r];a&&e(t,a,r,o)}return t})}var qT=Object.prototype;function bu(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||qT;return e===n}function HT(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var jT="[object Arguments]";function sv(e){return lr(e)&&$r(e)==jT}var av=Object.prototype,FT=av.hasOwnProperty,BT=av.propertyIsEnumerable,_u=sv((function(){return arguments})())?sv:function(e){return lr(e)&&FT.call(e,"callee")&&!BT.call(e,"callee")};function WT(){return!1}var lv=typeof W=="object"&&W&&!W.nodeType&&W,cv=lv&&typeof module=="object"&&module&&!module.nodeType&&module,VT=cv&&cv.exports===lv,uv=VT?Mn.Buffer:void 0,GT=uv?uv.isBuffer:void 0,wu=GT||WT,YT="[object Arguments]",XT="[object Array]",UT="[object Boolean]",KT="[object Date]",ZT="[object Error]",QT="[object Function]",JT="[object Map]",eR="[object Number]",tR="[object Object]",nR="[object RegExp]",rR="[object Set]",iR="[object String]",oR="[object WeakMap]",sR="[object ArrayBuffer]",aR="[object DataView]",lR="[object Float32Array]",cR="[object Float64Array]",uR="[object Int8Array]",hR="[object Int16Array]",fR="[object Int32Array]",dR="[object Uint8Array]",pR="[object Uint8ClampedArray]",gR="[object Uint16Array]",mR="[object Uint32Array]",mt={};mt[lR]=mt[cR]=mt[uR]=mt[hR]=mt[fR]=mt[dR]=mt[pR]=mt[gR]=mt[mR]=!0,mt[YT]=mt[XT]=mt[sR]=mt[UT]=mt[aR]=mt[KT]=mt[ZT]=mt[QT]=mt[JT]=mt[eR]=mt[tR]=mt[nR]=mt[rR]=mt[iR]=mt[oR]=!1;function yR(e){return lr(e)&&ov(e.length)&&!!mt[$r(e)]}function xu(e){return function(t){return e(t)}}var hv=typeof W=="object"&&W&&!W.nodeType&&W,so=hv&&typeof module=="object"&&module&&!module.nodeType&&module,vR=so&&so.exports===hv,Cu=vR&&B2.process,fi=(function(){try{var e=so&&so.require&&so.require("util").types;return e||Cu&&Cu.binding&&Cu.binding("util")}catch(t){}})(),fv=fi&&fi.isTypedArray,dv=fv?xu(fv):yR,bR=Object.prototype,_R=bR.hasOwnProperty;function pv(e,t){var n=cr(e),r=!n&&_u(e),i=!n&&!r&&wu(e),o=!n&&!r&&!i&&dv(e),s=n||r||i||o,a=s?HT(e.length,String):[],l=a.length;for(var c in e)(t||_R.call(e,c))&&!(s&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||nv(c,l)))&&a.push(c);return a}function gv(e,t){return function(n){return e(t(n))}}var wR=gv(Object.keys,Object),xR=Object.prototype,CR=xR.hasOwnProperty;function PR(e){if(!bu(e))return wR(e);var t=[];for(var n in Object(e))CR.call(e,n)&&n!="constructor"&&t.push(n);return t}function OR(e){return js(e)?pv(e):PR(e)}function SR(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var $R=Object.prototype,ER=$R.hasOwnProperty;function MR(e){if(!In(e))return SR(e);var t=bu(e),n=[];for(var r in e)r=="constructor"&&(t||!ER.call(e,r))||n.push(r);return n}function mv(e){return js(e)?pv(e,!0):MR(e)}var IR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,AR=/^\w*$/;function TR(e,t){if(cr(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Ds(e)?!0:AR.test(e)||!IR.test(e)||t!=null&&e in Object(t)}var ao=Mr(Object,"create");function RR(){this.__data__=ao?ao(null):{},this.size=0}function kR(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var LR="__lodash_hash_undefined__",NR=Object.prototype,zR=NR.hasOwnProperty;function DR(e){var t=this.__data__;if(ao){var n=t[e];return n===LR?void 0:n}return zR.call(t,e)?t[e]:void 0}var qR=Object.prototype,HR=qR.hasOwnProperty;function jR(e){var t=this.__data__;return ao?t[e]!==void 0:HR.call(t,e)}var FR="__lodash_hash_undefined__";function BR(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ao&&t===void 0?FR:t,this}function Ir(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ir.prototype.clear=RR,Ir.prototype.delete=kR,Ir.prototype.get=DR,Ir.prototype.has=jR,Ir.prototype.set=BR;function WR(){this.__data__=[],this.size=0}function Fs(e,t){for(var n=e.length;n--;)if(Hs(e[n][0],t))return n;return-1}var VR=Array.prototype,GR=VR.splice;function YR(e){var t=this.__data__,n=Fs(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():GR.call(t,n,1),--this.size,!0}function XR(e){var t=this.__data__,n=Fs(t,e);return n<0?void 0:t[n][1]}function UR(e){return Fs(this.__data__,e)>-1}function KR(e,t){var n=this.__data__,r=Fs(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Wn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Wn.prototype.clear=WR,Wn.prototype.delete=YR,Wn.prototype.get=XR,Wn.prototype.has=UR,Wn.prototype.set=KR;var lo=Mr(Mn,"Map");function ZR(){this.size=0,this.__data__={hash:new Ir,map:new(lo||Wn),string:new Ir}}function QR(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Bs(e,t){var n=e.__data__;return QR(t)?n[typeof t=="string"?"string":"hash"]:n.map}function JR(e){var t=Bs(this,e).delete(e);return this.size-=t?1:0,t}function ek(e){return Bs(this,e).get(e)}function tk(e){return Bs(this,e).has(e)}function nk(e,t){var n=Bs(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function ur(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ur.prototype.clear=ZR,ur.prototype.delete=JR,ur.prototype.get=ek,ur.prototype.has=tk,ur.prototype.set=nk;var rk="Expected a function";function Pu(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(rk);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Pu.Cache||ur),n}Pu.Cache=ur;var ik=500;function ok(e){var t=Pu(e,function(r){return n.size===ik&&n.clear(),r}),n=t.cache;return t}var sk=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ak=/\\(\\)?/g,lk=ok(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(sk,function(n,r,i,o){t.push(i?o.replace(ak,"$1"):r||n)}),t});function co(e){return e==null?"":X2(e)}function ck(e,t){return cr(e)?e:TR(e,t)?[e]:lk(co(e))}function uk(e){if(typeof e=="string"||Ds(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function hk(e,t){t=ck(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[uk(t[n++])];return n&&n==r?e:void 0}function yv(e,t,n){var r=e==null?void 0:hk(e,t);return r===void 0?n:r}function fk(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var vv=gv(Object.getPrototypeOf,Object),dk="[object Object]",pk=Function.prototype,gk=Object.prototype,bv=pk.toString,mk=gk.hasOwnProperty,yk=bv.call(Object);function vk(e){if(!lr(e)||$r(e)!=dk)return!1;var t=vv(e);if(t===null)return!0;var n=mk.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&bv.call(n)==yk}function bk(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}function _k(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:bk(e,t,n)}var wk="\\ud800-\\udfff",xk="\\u0300-\\u036f",Ck="\\ufe20-\\ufe2f",Pk="\\u20d0-\\u20ff",Ok=xk+Ck+Pk,Sk="\\ufe0e\\ufe0f",$k="\\u200d",Ek=RegExp("["+$k+wk+Ok+Sk+"]");function _v(e){return Ek.test(e)}function Mk(e){return e.split("")}var wv="\\ud800-\\udfff",Ik="\\u0300-\\u036f",Ak="\\ufe20-\\ufe2f",Tk="\\u20d0-\\u20ff",Rk=Ik+Ak+Tk,kk="\\ufe0e\\ufe0f",Lk="["+wv+"]",Ou="["+Rk+"]",Su="\\ud83c[\\udffb-\\udfff]",Nk="(?:"+Ou+"|"+Su+")",xv="[^"+wv+"]",Cv="(?:\\ud83c[\\udde6-\\uddff]){2}",Pv="[\\ud800-\\udbff][\\udc00-\\udfff]",zk="\\u200d",Ov=Nk+"?",Sv="["+kk+"]?",Dk="(?:"+zk+"(?:"+[xv,Cv,Pv].join("|")+")"+Sv+Ov+")*",qk=Sv+Ov+Dk,Hk="(?:"+[xv+Ou+"?",Ou,Cv,Pv,Lk].join("|")+")",jk=RegExp(Su+"(?="+Su+")|"+Hk+qk,"g");function Fk(e){return e.match(jk)||[]}function Bk(e){return _v(e)?Fk(e):Mk(e)}function Wk(e){return function(t){t=co(t);var n=_v(t)?Bk(t):void 0,r=n?n[0]:t.charAt(0),i=n?_k(n,1).join(""):t.slice(1);return r[e]()+i}}var Vk=Wk("toUpperCase");function Gk(e){return Vk(co(e).toLowerCase())}function Yk(e,t,n,r){for(var i=-1,o=e==null?0:e.length;++i<o;)n=t(n,e[i],i,e);return n}function Xk(e){return function(t){return e==null?void 0:e[t]}}var Uk={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Kk=Xk(Uk),Zk=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qk="\\u0300-\\u036f",Jk="\\ufe20-\\ufe2f",eL="\\u20d0-\\u20ff",tL=Qk+Jk+eL,nL="["+tL+"]",rL=RegExp(nL,"g");function iL(e){return e=co(e),e&&e.replace(Zk,Kk).replace(rL,"")}var oL=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function sL(e){return e.match(oL)||[]}var aL=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function lL(e){return aL.test(e)}var $v="\\ud800-\\udfff",cL="\\u0300-\\u036f",uL="\\ufe20-\\ufe2f",hL="\\u20d0-\\u20ff",fL=cL+uL+hL,Ev="\\u2700-\\u27bf",Mv="a-z\\xdf-\\xf6\\xf8-\\xff",dL="\\xac\\xb1\\xd7\\xf7",pL="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",gL="\\u2000-\\u206f",mL=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Iv="A-Z\\xc0-\\xd6\\xd8-\\xde",yL="\\ufe0e\\ufe0f",Av=dL+pL+gL+mL,Tv="['’]",Rv="["+Av+"]",vL="["+fL+"]",kv="\\d+",bL="["+Ev+"]",Lv="["+Mv+"]",Nv="[^"+$v+Av+kv+Ev+Mv+Iv+"]",_L="\\ud83c[\\udffb-\\udfff]",wL="(?:"+vL+"|"+_L+")",xL="[^"+$v+"]",zv="(?:\\ud83c[\\udde6-\\uddff]){2}",Dv="[\\ud800-\\udbff][\\udc00-\\udfff]",di="["+Iv+"]",CL="\\u200d",qv="(?:"+Lv+"|"+Nv+")",PL="(?:"+di+"|"+Nv+")",Hv="(?:"+Tv+"(?:d|ll|m|re|s|t|ve))?",jv="(?:"+Tv+"(?:D|LL|M|RE|S|T|VE))?",Fv=wL+"?",Bv="["+yL+"]?",OL="(?:"+CL+"(?:"+[xL,zv,Dv].join("|")+")"+Bv+Fv+")*",SL="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$L="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",EL=Bv+Fv+OL,ML="(?:"+[bL,zv,Dv].join("|")+")"+EL,IL=RegExp([di+"?"+Lv+"+"+Hv+"(?="+[Rv,di,"$"].join("|")+")",PL+"+"+jv+"(?="+[Rv,di+qv,"$"].join("|")+")",di+"?"+qv+"+"+Hv,di+"+"+jv,$L,SL,kv,ML].join("|"),"g");function AL(e){return e.match(IL)||[]}function TL(e,t,n){return e=co(e),t=t,t===void 0?lL(e)?AL(e):sL(e):e.match(t)||[]}var RL="['’]",kL=RegExp(RL,"g");function Wv(e){return function(t){return Yk(TL(iL(t).replace(kL,"")),e,"")}}var LL=Wv(function(e,t,n){return t=t.toLowerCase(),e+(n?Gk(t):t)});function NL(){this.__data__=new Wn,this.size=0}function zL(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function DL(e){return this.__data__.get(e)}function qL(e){return this.__data__.has(e)}var HL=200;function jL(e,t){var n=this.__data__;if(n instanceof Wn){var r=n.__data__;if(!lo||r.length<HL-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ur(r)}return n.set(e,t),this.size=n.size,this}function Ar(e){var t=this.__data__=new Wn(e);this.size=t.size}Ar.prototype.clear=NL,Ar.prototype.delete=zL,Ar.prototype.get=DL,Ar.prototype.has=qL,Ar.prototype.set=jL;var Vv=typeof W=="object"&&W&&!W.nodeType&&W,Gv=Vv&&typeof module=="object"&&module&&!module.nodeType&&module,FL=Gv&&Gv.exports===Vv,Yv=FL?Mn.Buffer:void 0,Xv=Yv?Yv.allocUnsafe:void 0;function Uv(e,t){if(t)return e.slice();var n=e.length,r=Xv?Xv(n):new e.constructor(n);return e.copy(r),r}function BL(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function WL(){return[]}var VL=Object.prototype,GL=VL.propertyIsEnumerable,Kv=Object.getOwnPropertySymbols,YL=Kv?function(e){return e==null?[]:(e=Object(e),BL(Kv(e),function(t){return GL.call(e,t)}))}:WL;function XL(e,t,n){var r=t(e);return cr(e)?r:fk(r,n(e))}function UL(e){return XL(e,OR,YL)}var $u=Mr(Mn,"DataView"),Eu=Mr(Mn,"Promise"),Mu=Mr(Mn,"Set"),Zv="[object Map]",KL="[object Object]",Qv="[object Promise]",Jv="[object Set]",eb="[object WeakMap]",tb="[object DataView]",ZL=Er($u),QL=Er(lo),JL=Er(Eu),eN=Er(Mu),tN=Er(yu),Vn=$r;($u&&Vn(new $u(new ArrayBuffer(1)))!=tb||lo&&Vn(new lo)!=Zv||Eu&&Vn(Eu.resolve())!=Qv||Mu&&Vn(new Mu)!=Jv||yu&&Vn(new yu)!=eb)&&(Vn=function(e){var t=$r(e),n=t==KL?e.constructor:void 0,r=n?Er(n):"";if(r)switch(r){case ZL:return tb;case QL:return Zv;case JL:return Qv;case eN:return Jv;case tN:return eb}return t});var nN=Object.prototype,rN=nN.hasOwnProperty;function iN(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&rN.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var nb=Mn.Uint8Array;function Iu(e){var t=new e.constructor(e.byteLength);return new nb(t).set(new nb(e)),t}function oN(e,t){var n=Iu(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var sN=/\w*$/;function aN(e){var t=new e.constructor(e.source,sN.exec(e));return t.lastIndex=e.lastIndex,t}var rb=ar?ar.prototype:void 0,ib=rb?rb.valueOf:void 0;function lN(e){return ib?Object(ib.call(e)):{}}function ob(e,t){var n=t?Iu(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var cN="[object Boolean]",uN="[object Date]",hN="[object Map]",fN="[object Number]",dN="[object RegExp]",pN="[object Set]",gN="[object String]",mN="[object Symbol]",yN="[object ArrayBuffer]",vN="[object DataView]",bN="[object Float32Array]",_N="[object Float64Array]",wN="[object Int8Array]",xN="[object Int16Array]",CN="[object Int32Array]",PN="[object Uint8Array]",ON="[object Uint8ClampedArray]",SN="[object Uint16Array]",$N="[object Uint32Array]";function EN(e,t,n){var r=e.constructor;switch(t){case yN:return Iu(e);case cN:case uN:return new r(+e);case vN:return oN(e);case bN:case _N:case wN:case xN:case CN:case PN:case ON:case SN:case $N:return ob(e,n);case hN:return new r;case fN:case gN:return new r(e);case dN:return aN(e);case pN:return new r;case mN:return lN(e)}}function sb(e){return typeof e.constructor=="function"&&!bu(e)?vT(vv(e)):{}}var MN="[object Map]";function IN(e){return lr(e)&&Vn(e)==MN}var ab=fi&&fi.isMap,AN=ab?xu(ab):IN,TN="[object Set]";function RN(e){return lr(e)&&Vn(e)==TN}var lb=fi&&fi.isSet,kN=lb?xu(lb):RN,LN=1,cb="[object Arguments]",NN="[object Array]",zN="[object Boolean]",DN="[object Date]",qN="[object Error]",ub="[object Function]",HN="[object GeneratorFunction]",jN="[object Map]",FN="[object Number]",hb="[object Object]",BN="[object RegExp]",WN="[object Set]",VN="[object String]",GN="[object Symbol]",YN="[object WeakMap]",XN="[object ArrayBuffer]",UN="[object DataView]",KN="[object Float32Array]",ZN="[object Float64Array]",QN="[object Int8Array]",JN="[object Int16Array]",ez="[object Int32Array]",tz="[object Uint8Array]",nz="[object Uint8ClampedArray]",rz="[object Uint16Array]",iz="[object Uint32Array]",dt={};dt[cb]=dt[NN]=dt[XN]=dt[UN]=dt[zN]=dt[DN]=dt[KN]=dt[ZN]=dt[QN]=dt[JN]=dt[ez]=dt[jN]=dt[FN]=dt[hb]=dt[BN]=dt[WN]=dt[VN]=dt[GN]=dt[tz]=dt[nz]=dt[rz]=dt[iz]=!0,dt[qN]=dt[ub]=dt[YN]=!1;function Ws(e,t,n,r,i,o){var s,a=t&LN;if(s!==void 0)return s;if(!In(e))return e;var l=cr(e);if(l)s=iN(e);else{var c=Vn(e),u=c==ub||c==HN;if(wu(e))return Uv(e,a);if(c==hb||c==cb||u&&!i)s=u?{}:sb(e);else{if(!dt[c])return i?e:{};s=EN(e,c,a)}}o||(o=new Ar);var h=o.get(e);if(h)return h;o.set(e,s),kN(e)?e.forEach(function(p){s.add(Ws(p,t,n,p,e,o))}):AN(e)&&e.forEach(function(p,g){s.set(g,Ws(p,t,n,g,e,o))});var f=UL,d=l?void 0:f(e);return ET(d||e,function(p,g){d&&(g=p,p=e[g]),rv(s,g,Ws(p,t,n,g,e,o))}),s}var oz=1,sz=4;function fb(e){return Ws(e,oz|sz)}function az(e){return function(t,n,r){for(var i=-1,o=Object(t),s=r(t),a=s.length;a--;){var l=s[++i];if(n(o[l],l,o)===!1)break}return t}}var lz=az();function Au(e,t,n){(n!==void 0&&!Hs(e[t],n)||n===void 0&&!(t in e))&&vu(e,t,n)}function cz(e){return lr(e)&&js(e)}function Tu(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function uz(e){return RT(e,mv(e))}function hz(e,t,n,r,i,o,s){var a=Tu(e,n),l=Tu(t,n),c=s.get(l);if(c){Au(e,n,c);return}var u=o?o(a,l,n+"",e,t,s):void 0,h=u===void 0;if(h){var f=cr(l),d=!f&&wu(l),p=!f&&!d&&dv(l);u=l,f||d||p?cr(a)?u=a:cz(a)?u=_T(a):d?(h=!1,u=Uv(l,!0)):p?(h=!1,u=ob(l,!0)):u=[]:vk(l)||_u(l)?(u=a,_u(a)?u=uz(a):(!In(a)||gu(a))&&(u=sb(l))):h=!1}h&&(s.set(l,u),i(u,l,r,o,s),s.delete(l)),Au(e,n,u)}function db(e,t,n,r,i){e!==t&&lz(t,function(o,s){if(i||(i=new Ar),In(o))hz(e,t,s,n,db,r,i);else{var a=r?r(Tu(e,s),o,s+"",e,t,i):void 0;a===void 0&&(a=o),Au(e,s,a)}},mv)}var fz=Math.max,dz=Math.min;function pz(e,t,n){return e>=dz(t,n)&&e<fz(t,n)}function pb(e,t,n){return t=Q2(t),n===void 0?(n=t,t=0):n=Q2(n),e=K2(e),pz(e,t,n)}var gz=Wv(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),gb=DT(function(e,t,n){db(e,t,n)});function uo(e,t){if(t.length===0)return{};const n=Array.isArray(e)?e[t[0]]:e.items[t[0]];if(t.length===1)return n;const r=t.slice(1).map(i=>`children[${i}]`).join(".");return yv(n,r)}function mb(e){const{structure:t,item:n,items:r}=e;return!(!t||!n||r.some(i=>!i))}const mz=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","-apple-system","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong"]);function Tr(e){const t=[];let n="",r=null;const i=()=>{const o=n.trim();o&&t.push(o),n=""};for(let o=0;o<e.length;o+=1){const s=e[o];if(r){n+=s,s===r&&(r=null);continue}if(s==='"'||s==="'"){r=s,n+=s;continue}if(s===","){i();continue}n+=s}return i(),t}function yb(e){const t=e.trim();return t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'")?t.slice(1,-1):t}function yz(e){const t=e.trim();return t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'")}function vz(e){return/^\d/.test(e)||/\s/.test(e)}function bz(e){const t=e.trim();if(!t||yz(t)||mz.has(t.toLowerCase())||!vz(t))return t;const n=t.includes('"')&&!t.includes("'")?"'":'"';return`${n}${t}${n}`}function pi(e){const t=Tr(e);return t.length?t.length===1?yb(t[0]):t.map(n=>yb(n)).join(", "):""}function Rr(e){const t=Tr(e);return t.length?t.map(n=>bz(n)).join(", "):e.trim()}const _z={100:"thin",hairline:"thin",thin:"thin",200:"extralight",ultralight:"extralight",extralight:"extralight",300:"light",light:"light",400:"regular",normal:"regular",regular:"regular",500:"medium",medium:"medium",600:"semibold",demibold:"semibold",semibold:"semibold",700:"bold",bold:"bold",800:"extrabold",ultrabold:"extrabold",extrabold:"extrabold",900:"black",heavy:"black",black:"black",950:"extrablack",ultrablack:"extrablack",extrablack:"extrablack"};function vb(e){const t=String(e).toLowerCase();return _z[t]||"regular"}const ho=new Map,Ru=new Map;let wz="sans-serif";function xz(e){return ho.has(e)?e:Ru.get(e)||e}const Cz={fontFamily:"sans-serif",fontWeight:400,fontStyle:"normal",unitsPerEm:2048,metrics:{ascender:2189,descender:-555,lineGap:0},glyphs:{'"':727,"%":1821,"'":391,"(":682,")":682,"*":797,"+":1196,"-":682,"<":1196,"=":1196,">":1196,"@":2079,C:1479,D:1479,F:1251,G:1593,H:1479,J:1024,M:1706,N:1479,O:1593,Q:1593,R:1479,T:1251,U:1479,W:1933,Z:1251,"^":961,_:1024,"`":682,c:1024,i:455,j:455,k:1024,l:455,m:1706,r:682,s:1024,v:1024,w:1479,x:1024,y:1024,z:1024,"{":684,"|":532,"}":684,"~":1196},glyphsByWidth:{569:" !,./:;I[\\]ft",1139:"#$0123456789?Labdeghnopqu",1366:"&ABEKPSVXY"},defaultWidth:1139};function bb(e){if(e===void 0||e==="normal")return"400";if(e==="bold")return"700";const t={thin:"100",hairline:"100","extra-light":"200","ultra-light":"200",light:"300",regular:"400",normal:"400",medium:"500","semi-bold":"600",semibold:"600","demi-bold":"600",demibold:"600","extra-bold":"800",extrabold:"800","ultra-bold":"800",ultrabold:"800",black:"900",heavy:"900","extra-black":"950",extrablack:"950","ultra-black":"950",ultrablack:"950",bolder:"900",lighter:"300"};if(typeof e=="string"){const n=e.toLowerCase();return t[n]||e}return String(e)}function _b(e){return e||"normal"}function Pz(e){const t=e.fontFamily,n=bb(e.fontWeight),r=_b(e.fontStyle);if(e.aliases)for(const s of e.aliases)Ru.has(s)||Ru.set(s,t);if(e.glyphsByWidth){const s=ht({},e.glyphs||{});for(const[a,l]of Object.entries(e.glyphsByWidth))if(typeof l=="string"){const c=Number(a);for(const u of l)s[u]=c}else s[a]=l;e=zt(ht({},e),{glyphs:s,glyphsByWidth:void 0})}ho.has(t)||ho.set(t,new Map);const i=ho.get(t);i.has(n)||i.set(n,new Map),i.get(n).set(r,e)}function Oz(e,t,n){const r=xz(e||wz),i=bb(t),o=_b(n),s=ho.get(r);if(!s)return console.warn(`Font family "${r}" not registered, using fallback font data`),Cz;let a=s.get(i);if(a){let c=a.get(o);if(c||o!=="normal"&&(c=a.get("normal"),c))return c;const u=a.values().next().value;if(u)return u}if(a=s.get("400"),a){let c=a.get(o);if(c||o!=="normal"&&(c=a.get("normal"),c))return c;const u=a.values().next().value;if(u)return u}const l=s.values().next().value;if(l){const c=l.values().next().value;if(c)return c}throw new Error(`No font data found for family "${r}" with weight "${i}" and style "${o}"`)}function Sz(e,t){if(!t||t==="none")return e;switch(t){case"uppercase":return e.toUpperCase();case"lowercase":return e.toLowerCase();case"capitalize":return e.split(" ").map(n=>n.length===0?n:n[0].toUpperCase()+n.slice(1).toLowerCase()).join(" ");default:return e}}function wb(e){if(e===void 0)return 14;if(typeof e=="number")return e;const t=parseFloat(e);return isNaN(t)?16:t}function $z(e,t){const n=wb(e.fontSize),r=e.lineHeight;if(r===void 0){const{ascender:i,descender:o,lineGap:s=0}=t.metrics;return(i-o+s)/t.unitsPerEm*n}return typeof r=="number"?r*n:r.type==="pixel"?r.value:r.type==="percent"?r.value/100*n:n}function Ez(e,t={}){var f;const n=Sz(e,t.textTransform),r=Oz(t.fontFamily,t.fontWeight,t.fontStyle),i=wb(t.fontSize),o=t.letterSpacing||0,s=t.wordSpacing||0;let a=0;const l=Array.from(n);for(let d=0;d<l.length;d++){const p=l[d],g=d<l.length-1?l[d+1]:void 0;let m=(f=r.glyphs)==null?void 0:f[p];m===void 0&&(m=r.defaultWidth||r.unitsPerEm/2);const v=m/r.unitsPerEm*i;if(a+=v,g&&r.kerning){const b=p+g,_=r.kerning[b];_!==void 0&&(a+=_/r.unitsPerEm*i)}d<l.length-1&&(a+=o),p===" "&&(a+=s)}const c=$z(t,r),{ascender:u}=r.metrics,h=u/r.unitsPerEm*i;return{width:a,height:c,baseline:h}}const Mz={fontFamily:"Alibaba PuHuiTi",aliases:["AlibabaPuHuiTi","AlibabaPuHuiTi-Regular"],fontWeight:400,fontStyle:"normal",unitsPerEm:1e3,metrics:{ascender:1060,descender:-340,lineGap:0},glyphs:{" ":257,"!":361,'"':405,"#":600,"%":821,"&":640,"'":253,"(":359,")":359,"*":430,",":302,"-":440,".":302,"/":500,":":378,";":378,"?":431,"@":860,B:620,C:599,D:699,F:527,G:685,H:708,J:271,K:614,L:507,M:830,N:737,P:597,R:614,S:566,T:528,V:617,W:898,X:624,Y:594,Z:626,"[":294,"\\":510,"]":294,_:500,"`":346,b:635,c:497,d:635,f:349,g:636,k:518,l:286,m:921,p:635,q:636,r:379,s:479,t:337,v:526,w:828,x:516,y:527,z:506,"{":299,"|":183,"}":299," ":257,"¡":357,"¦":183,"§":479,"¨":346,"©":806,ª:483,"«":511,"­":440,"®":404,"¯":346,"°":363,"´":346,"¶":593,"·":357,"¸":346,º:445,"»":511,"¼":902,"½":914,"¾":902,"¿":431,Æ:889,Ç:599,Ð:719,Ñ:737,Ý:594,Þ:597,ß:610,æ:926,ç:497,ý:527,þ:635,ÿ:527,Ć:599,ć:497,Ĉ:599,ĉ:497,Ċ:599,ċ:497,Č:599,č:497,Ď:699,ď:640,Đ:719,đ:635,Ĝ:685,ĝ:636,Ğ:685,ğ:636,Ġ:685,ġ:636,Ģ:685,ģ:636,Ĥ:708,Ħ:708,IJ:545,ij:536,Ĵ:271,Ķ:614,ķ:518,ĸ:518,Ĺ:507,ĺ:286,Ļ:507,ļ:286,Ľ:507,ľ:290,Ŀ:507,ŀ:291,Ł:507,ł:286,Ń:737,Ņ:737,Ň:737,ʼn:669,Ŋ:737,Œ:987,œ:917,Ŕ:614,ŕ:379,Ŗ:614,ŗ:379,Ř:614,ř:379,Ś:566,ś:479,Ŝ:566,ŝ:479,Ş:566,ş:479,Š:566,š:479,Ţ:528,ţ:337,Ť:528,ť:340,Ŧ:528,ŧ:337,Ŵ:898,ŵ:828,Ŷ:594,ŷ:527,Ÿ:594,Ź:626,ź:506,Ż:626,ż:506,Ž:626,ž:506,ſ:310,Ə:719,ǎ:608,ǐ:265,ǒ:614,ǔ:609,ǖ:609,ǘ:609,ǚ:609,ǜ:609,Ǽ:889,ǽ:926,Ș:566,ș:479,Ț:528,ț:337,"ʹ":255,"͵":255,";":378,"΄":346,"΅":346,Ά:670,"·":357,Έ:628,Ή:779,Ί:346,Ό:765,Ύ:726,Ώ:765,ΐ:312,Β:620,Γ:507,Ζ:626,Η:708,Κ:614,Λ:617,Μ:830,Ν:737,Π:708,Ρ:597,Σ:596,Τ:528,Υ:594,Φ:831,Χ:624,Ψ:804,Ϋ:594,έ:509,ή:643,ί:312,ΰ:593,β:610,γ:526,ε:509,ζ:465,η:643,θ:638,ι:312,κ:518,λ:514,ν:526,ξ:465,π:616,ρ:619,ς:497,σ:639,τ:437,υ:593,φ:774,χ:509,ψ:745,ω:782,ϊ:312,ϋ:593,ύ:593,ώ:782,"‐":440,"‑":440,"–":495,"—":684,"―":684,"‗":500,"‘":270,"’":270,"‚":270,"‛":270,"“":784,"”":784,"„":468,"†":500,"‡":500,"•":308,"…":1085,"‰":1174,"′":256,"″":472,"‴":689,"‵":256,"‶":472,"‷":689,"‹":312,"›":312,"‼":589,"‽":433,"‾":500,"⁄":120,"⁺":407,"⁻":407,"⁼":407,"⁽":225,"⁾":225,ⁿ:486,"₊":407,"₋":407,"₌":407,"₍":225,"₎":225,"ₙ":486,"₡":599,"₣":527,"₤":600,"₥":921,"₦":625,"₨":1093,"₩":769,"₪":754,"₫":635,"₭":614,"₮":528,"₯":1288,"₰":950,"₲":685,"₴":576,"₵":599,"₶":576,"₷":700,"₸":528,"₻":750,"₼":683,"₾":577,"₿":620,"℃":915,"℅":825,"℉":868,ℓ:385,"№":1176,"℗":806,"℡":1022,"™":903,"℮":903,"⅛":930,"⅜":931,"⅝":931,"⅞":871,"Ⅶ":1166,"∂":587,"∈":663,"∏":708,"∑":596,"√":604,"∞":679,"∧":617,"∫":531,"∮":654,"≈":600,"≒":662,"◊":600," ":0,"〞":472},glyphsByWidth:{268:"ijìíîïĩīĭįıĵȷ",274:"IÌÍÎÏĨĪĬĮİΙΪ",406:"²³¹⁰⁴⁵⁶⁷⁸⁹₀₁₂₃₄₅₆₇₈₉",552:"+<=>^~¬±×÷−∕∙≠≤≥≦≧≮≯",556:"EÈÉÊËĒĔĖĘĚΕΞ",575:"$0123456789¢£¤¥ƒ₢₧€₱₹₺₽",578:"eèéêëēĕėęě",612:"aàáâãäåāăąǻ",613:"uµùúûüũūŭůűųάαμ∨",618:"hnoðñòóôõöøĥħńņňŋōŏőǿδοό",667:"AÀÁÂÃÄÅĀĂĄǺΑΔ₳∆",701:"UÙÚÛÜŨŪŬŮŰŲ",743:"OQÒÓÔÕÖØŌŎŐǾΘΟΩΩ",1e3:"─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱╲╳▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▓▔▕■□▲△▼▽◆◇○◎●◢◣◤◥★☆☉♀♂〾"},defaultWidth:984,kerning:{'""':-56,"\"'":-57,'",':-179,'".':-179,"'\"":-56,"''":-57,"',":-179,"'.":-179,"(j":60,',"':-160,",'":-160,",1":-140,",7":-41,",9":-39,'."':-160,".'":-160,".1":-140,".7":-41,".9":-39,"//":-120,"1,":-99,"1.":-99,"1:":-99,"1;":-99,"7,":-160,"7.":-160,"7:":-99,"7;":-99,":1":-79,":7":-59,";1":-79,";7":-59,'A"':-100,"A'":-100,AC:-20,AG:-20,AO:-20,AQ:-20,AT:-80,AU:-10,AV:-70,AW:-39,AY:-81,Af:-20,Al:-10,At:-20,Av:-20,Ay:-20,BC:-10,BG:-10,BO:-10,BQ:-10,BT:-40,BV:-20,BX:-20,BY:-21,"D,":-59,"D.":-59,DA:-20,DT:-36,DV:-30,DW:-19,DX:-20,DY:-40,DZ:-20,Da:-39,Ej:19,"F,":-159,"F.":-159,FA:-40,Fa:-59,Fh:1,Fk:1,GV:-11,GY:-21,JJ:7,KA:-19,KC:-20,KG:-20,KO:-20,KQ:-20,KT:-19,KU:-39,KV:-39,KW:-39,KY:-40,Kc:-39,Kd:-39,Ke:-39,Kg:-39,Kl:-39,Ko:-39,Kq:-39,Ks:-19,Kt:-10,Ku:-40,Kv:-60,Kw:-40,Ky:-60,'L"':-99,"L'":-99,LA:20,LC:-59,LG:-59,LO:-59,LQ:-59,LT:-79,LU:-19,LV:-79,LW:-39,LY:-100,Lv:-41,Lw:-21,Ly:-41,"O,":-59,"O.":-59,OA:-20,OT:-36,OV:-30,OW:-19,OX:-20,OY:-40,OZ:-20,Oa:-39,"P,":-199,"P.":-199,PA:-60,PT:-29,PV:-10,PW:-10,PX:-50,PY:-20,PZ:-39,Pa:-60,"Q,":-59,"Q.":-59,QA:-20,QJ:7,QT:-36,QV:-30,QW:-19,QX:-20,QY:-40,QZ:-20,Qa:-39,RC:-15,RG:-15,RO:-15,RQ:-15,RT:-40,RU:-10,RV:-21,RW:-10,RX:-29,RY:-41,Rc:-20,Rd:-20,Re:-20,Rg:-20,Ro:-20,Rq:-20,Rt:-20,Ru:-10,Rv:-10,Rx:20,Ry:-10,"S,":-20,"S.":-20,SS:-1,ST:-1,SV:-21,SW:-10,SY:-21,St:-1,Sv:-20,Sw:-10,Sx:-1,Sy:-20,'T"':2,"T'":2,"T,":-154,"T.":-154,TA:-80,TC:-20,TG:-20,TO:-20,TQ:-20,TS:-1,Ta:-80,Tc:-59,Td:-59,Te:-59,Tg:-59,Ti:-20,Tj:-19,Tm:-59,Tn:-59,To:-59,Tp:-58,Tq:-59,Tr:-59,Ts:-60,Tt:20,Tu:-79,Tv:-39,Tw:-19,Tx:-39,Ty:-39,Tz:-59,UA:-10,UX:-19,Ux:-1,"V,":-140,"V.":-140,"V:":-41,"V;":-41,VA:-70,VC:-30,VG:-30,VO:-30,VQ:-30,VS:-10,Va:-41,Vc:-21,Vd:-21,Ve:-21,Vg:-21,Vh:1,Vk:1,Vo:-21,Vq:-21,Vs:-21,Vv:-1,Vy:-1,"W,":-79,"W.":-79,"W:":-39,"W;":-39,WA:-40,WC:-19,WG:-19,WO:-19,WQ:-19,Wa:-40,Wc:-20,Wd:-20,We:-20,Wg:-20,Wo:-20,Wq:-20,Ws:-20,XA:-19,XC:-20,XG:-20,XO:-20,XQ:-20,XT:-19,XU:-39,XV:-39,XW:-39,XY:-40,Xc:-39,Xd:-39,Xe:-39,Xg:-39,Xl:-39,Xo:-39,Xq:-39,Xs:-19,Xt:-10,Xu:-40,Xv:-60,Xw:-40,Xy:-60,'Y"':1,"Y'":1,"Y,":-141,"Y.":-141,"Y:":-60,"Y;":-60,YA:-81,YC:-40,YG:-40,YO:-40,YQ:-40,YS:-1,Ya:-101,Yc:-60,Yd:-60,Ye:-60,Yf:-1,Yg:-60,Yh:1,Yi:-19,Yk:1,Ym:-41,Yn:-41,Yo:-60,Yp:-40,Yq:-60,Yr:-41,Ys:-61,Yt:-1,Yu:-40,Yv:-40,Yx:-41,Yy:-40,Yz:-41,ZC:-20,ZG:-20,ZO:-20,ZQ:-20,"[j":80,aT:-60,aV:-21,aY:-61,av:-10,aw:-10,ay:-10,"b,":-40,"b.":-40,bT:-59,bV:-21,bW:-20,bX:-39,bY:-60,bv:-10,bx:-20,by:-10,"e,":-20,"e.":-20,eT:-59,eY:-40,ej:20,'f"':3,"f'":3,"f)":1,"f*":61,"f,":-1,"f.":-1,"f?":40,fT:40,fV:21,fW:21,fX:21,fY:1,"f]":21,fa:-29,fc:-19,fd:-19,fe:-19,ff:1,fg:-39,fh:-19,fi:-19,fj:-19,fk:-19,fl:-19,fo:-19,fq:-19,fs:-19,ft:1,"f}":3,hT:-58,hY:-39,hv:-10,hy:-10,'i"':2,"i'":2,"i)":2,"i?":3,iT:-20,"i]":41,"i}":22,jT:-20,kT:-39,kU:-1,kW:-20,ka:-20,kc:-20,kd:-20,ke:-20,kg:-20,kl:-20,ko:-20,kq:-20,ku:-10,lf:-20,lv:-19,lw:-10,ly:-19,mT:-58,mY:-39,mv:-10,my:-10,nT:-58,nY:-39,nv:-10,ny:-10,"o,":-40,"o.":-40,oT:-59,oV:-21,oW:-20,oX:-39,oY:-60,ov:-10,ox:-20,oy:-10,"p,":-40,"p.":-40,pT:-59,pV:-21,pW:-20,pX:-39,pY:-60,pv:-10,px:-20,py:-10,qT:-19,qY:-19,qj:20,'r"':2,"r'":2,"r,":-90,"r.":-90,ra:-49,rc:-19,rd:-19,re:-19,rf:1,ro:-19,rq:-19,rt:20,sT:-59,sV:-21,sW:-20,sX:-19,sY:-60,sv:-19,sx:-10,sy:-19,tf:1,uT:-40,uY:-19,"v,":-90,"v.":-90,vT:-39,vX:-39,va:-35,vc:-10,vd:-10,ve:-10,vo:-10,vq:-10,"w,":-50,"w.":-50,wT:-19,wX:-39,wa:-30,xT:-39,xU:-1,xW:-20,xa:-20,xc:-20,xd:-20,xe:-20,xg:-20,xl:-20,xo:-20,xq:-20,xu:-10,"y,":-90,"y.":-90,yT:-39,yX:-39,ya:-35,yc:-10,yd:-10,ye:-10,yo:-10,yq:-10,zT:-59,"{h":2,"{j":79,"{k":2}};var Iz=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});const gi=new WeakMap;function Az(e){const t=gi.get(e);return t?Array.from(t.values()):[]}function xb(e,t){var n;return(n=gi.get(e))==null?void 0:n.get(t)}function Cb(e,t,n){let r=gi.get(e);return r||(r=new Map,gi.set(e,r)),r.set(t,n),n.finally(()=>{const i=gi.get(e);i&&(i.get(t)===n&&i.delete(t),i.size===0&&gi.delete(e))}),n}function Tz(e){return Iz(this,null,function*(){for(yield Promise.resolve();;){const t=Az(e);if(!t.length)break;yield Promise.allSettled(t),yield Promise.resolve()}})}var Rz=Object.defineProperty,Pb=Object.getOwnPropertySymbols,kz=Object.prototype.hasOwnProperty,Lz=Object.prototype.propertyIsEnumerable,Ob=(e,t,n)=>t in e?Rz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nz=(e,t)=>{for(var n in t||(t={}))kz.call(t,n)&&Ob(e,n,t[n]);if(Pb)for(var n of Pb(t))Lz.call(t,n)&&Ob(e,n,t[n]);return e};const ku=new Map;let Lu="Alibaba PuHuiTi";function Nu(e){const t=Tr(e);for(const n of t){const r=ku.get(pi(n));if(r)return r}return null}function zu(){return Array.from(ku.values())}function zz(e){Lu=Rr(e)}function Sb(e){const t=Nz({},e);return ku.set(t.fontFamily,t),t.fontFamily=Rr(t.fontFamily),t}function $b(e){const t=Tr(e).flatMap(n=>{const r=Nu(n);if(!r)return[];const{baseUrl:i,fontWeight:o}=r;return Object.values(o).filter(s=>!!s).map(s=>fh(i,s))});return Array.from(new Set(t))}function Dz(e,t){const n=Tr(e);let r=null;for(const s of n)if(r=Nu(s),r)break;if(!r)return null;const i=vb(t),o=r.fontWeight[i];return o?fh(r.baseUrl,o.replace(/\/result.css$/,"")):null}const Du=new WeakMap,fo=new WeakMap;function Eb(e,t,n){let r=fo.get(e);return r||(r=new Map,fo.set(e,r)),r.set(t,n),n.finally(()=>{const i=fo.get(e);i&&(i.get(t)===n&&i.delete(t),i.size===0&&fo.delete(e))}),n}function qz(e){if(e.getAttribute("data-infographic-font-loaded")==="true")return!0;try{return!!e.sheet}catch(t){return!1}}function Hz(e,t,n){var r;const i=(r=fo.get(e))==null?void 0:r.get(t);if(i)return i;if(!n||qz(n))return Eb(e,t,Promise.resolve());const o=new Promise(s=>{const a=()=>{n.setAttribute("data-infographic-font-loaded","true"),s()};n.addEventListener("load",a,{once:!0}),n.addEventListener("error",a,{once:!0})});return Eb(e,t,o)}function jz(e,t){const n=e.ownerDocument,r=(n==null?void 0:n.head)||document.head;if(!r)return;Du.has(r)||Du.set(r,new Map);const i=Du.get(r),o=$b(t);if(!o.length)return;const s=[];o.forEach(a=>{const l=`${t}-${a}`,c=`font:${l}`;if(xb(e,c))return;let u=i.get(l);u||(u=n.createElement("link"),u.id=l,u.rel="stylesheet",u.href=a,s.push(u),i.set(l,u));const h=Hz(r,l,u);Cb(e,c,h)}),s.length&&r.tagName==="HEAD"&&s.forEach(a=>r.appendChild(a))}function Fz(e){if(hh)return;zu().forEach(n=>jz(e,n.fontFamily))}const po="https://assets.antv.antgroup.com",mi=e=>`${e}/result.css`;[{fontFamily:"Alibaba PuHuiTi",name:"阿里巴巴普惠体",baseUrl:po,fontWeight:{regular:mi("AlibabaPuHuiTi-Regular"),bold:mi("AlibabaPuHuiTi-Bold")}},{fontFamily:"Source Han Sans",name:"黑体",baseUrl:po,fontWeight:{regular:mi("SourceHanSansCN-Regular")}},{fontFamily:"Source Han Serif",name:"宋体",baseUrl:po,fontWeight:{regular:mi("SourceHanSerifCN-Regular")}},{fontFamily:"LXGW WenKai",name:"楷体",baseUrl:po,fontWeight:{regular:mi("LXGWWenKai-Regular")}},{fontFamily:"851tegakizatsu",name:"手写体",baseUrl:po,fontWeight:{regular:mi("851tegakizatsu-Regular")}}].forEach(Sb);const qu=new Map;function Hu(e,t){qu.set(e,t)}function Mb(e){return qu.get(e)}function Bz(){return Object.fromEntries(qu)}Hu("antv",["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#70CAF8"]),Hu("spectral",(e,t,n)=>{const r=[["#fc8d59","#ffffbf","#99d594"],["#d7191c","#fdae61","#abdda4","#2b83ba"],["#d7191c","#fdae61","#ffffbf","#abdda4","#2b83ba"],["#d53e4f","#fc8d59","#fee08b","#e6f598","#99d594","#3288bd"],["#d53e4f","#fc8d59","#fee08b","#ffffbf","#e6f598","#99d594","#3288bd"],["#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd"],["#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd"],["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"]],i=Math.min(Math.max(n,3),11);return r[i-3][t%i]});const Vs=(e=[],t,n)=>{var r;const i=typeof e=="string"?Mb(e)||[]:e,o=(r=t[0])!=null?r:0;if(typeof i=="function"){const s=n?o/n:0;return i(s,o,n!=null?n:0)}if(Array.isArray(i))return i.length===0?void 0:i[o%i.length]};function Wz(e,t){var n,r;if(((n=t.svg)==null?void 0:n.background)===!1)return;const{themeConfig:{colorBg:i}}=t;if(!i)return;const o=e.parentElement;o&&(o.style.backgroundColor=i||"none");const s=wi(e,Ge.Background);if(e.style.backgroundColor=i,s)s.setAttribute("fill",i);else if((r=e.viewBox)!=null&&r.baseVal){const{x:a,y:l,width:c,height:u}=e.viewBox.baseVal,h=Ae("rect",{x:a,y:l,width:c,height:u,fill:i,"data-element-type":Ge.Background});e.prepend(h)}}function go(e,t){return Object.entries(t).reduce((r,[i,o])=>{if(typeof o=="function"){const s=o(e.getAttribute(i),e);s!=null&&(r[i]=s)}else Object.assign(r,{[i]:o});return r},{})}function Ib(e){return e.replace(/#|%|\.| |\/|\(|\)/g,"").replace(/,/g,"-")}function Vz(e,t){t&&Object.keys(t).length>0&&_i(e,n=>{const r=go(n,t);ut(n,r)})}const Ab="btn-add-icon",Tb="btn-remove-icon";function Gz(e,t){ut(t,{display:"none"});const n=t.querySelectorAll('[id^="btn-add-"]'),r=t.querySelectorAll('[id^="btn-remove-"]');Xz(e),n.forEach(Uz),r.forEach(Kz)}const Yz="btn-icon-defs";function Xz(e){const t=Ae("defs");xo(t,Yz);const n=bi(`<symbol class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200">
3
+ `||t[Re]===" "||t[Re]===" ");)Re++;continue}if(r===",")return;if(r===")"){n.push({type:de.ParenClose});continue}if(r==="+"){if(Re--,Os(t)){n.push(no(t));continue}return}if(r==="-"){if(Re--,Os(t)){n.push(no(t));continue}if(jc(t)){n.push({type:de.Ident,value:Es(t)});continue}return}if(r==="."){if(Re--,Os(t)){n.push(no(t));continue}return}if(r==="/"){for(;Re<t.length&&(t[Re]===`
4
+ `||t[Re]===" "||t[Re]===" ");)Re++;let i;if(Os(t)&&(i=no(t),i.type!==de.Hue)){n.push({type:de.Alpha,value:i});continue}if(jc(t)&&Es(t)==="none"){n.push({type:de.Alpha,value:{type:de.None,value:void 0}});continue}return}if(/\d/.test(r)){Re--,n.push(no(t));continue}if(Hc.test(r)){Re--,n.push(RA(t));continue}return}return n}function LA(e){e._i=0;let t=e[e._i++];if(!t||t.type!==de.Function||t.value!=="color"||(t=e[e._i++],t.type!==de.Ident))return;const n=Jy[t.value];if(!n)return;const r={mode:n},i=e2(e,!1);if(!i)return;const o=MA(n).channels;for(let s=0,a,l;s<o.length;s++)a=i[s],l=o[s],a.type!==de.None&&(r[l]=a.type===de.Number?a.value:a.value/100,l==="alpha"&&(r[l]=Math.max(0,Math.min(1,r[l]))));return r}function e2(e,t){const n=[];let r;for(;e._i<e.length;){if(r=e[e._i++],r.type===de.None||r.type===de.Number||r.type===de.Alpha||r.type===de.Percentage||t&&r.type===de.Hue){n.push(r);continue}if(r.type===de.ParenClose){if(e._i<e.length)return;continue}return}if(!(n.length<3||n.length>4)){if(n.length===4){if(n[3].type!==de.Alpha)return;n[3]=n[3].value}return n.length===3&&n.push({type:de.None,value:void 0}),n.every(i=>i.type!==de.Alpha)?n:void 0}}function NA(e,t){e._i=0;let n=e[e._i++];if(!n||n.type!==de.Function)return;let r=e2(e,t);if(r)return r.unshift(n.value),r}const In=e=>{if(typeof e!="string")return;const t=kA(e),n=t?NA(t,!0):void 0;let r,i=0,o=Ss.length;for(;i<o;)if((r=Ss[i++](e,n))!==void 0)return r;return t?LA(t):void 0};function zA(e,t){if(!t||t[0]!=="rgb"&&t[0]!=="rgba")return;const n={mode:"rgb"},[,r,i,o,s]=t;if(!(r.type===de.Hue||i.type===de.Hue||o.type===de.Hue))return r.type!==de.None&&(n.r=r.type===de.Number?r.value/255:r.value/100),i.type!==de.None&&(n.g=i.type===de.Number?i.value/255:i.value/100),o.type!==de.None&&(n.b=o.type===de.Number?o.value/255:o.value/100),s.type!==de.None&&(n.alpha=Math.min(1,Math.max(0,s.type===de.Number?s.value:s.value/100))),n}const DA=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,qA=(e,t,n)=>e+n*(t-e),HA=e=>{let t=[];for(let n=0;n<e.length-1;n++){let r=e[n],i=e[n+1];r===void 0&&i===void 0?t.push(void 0):r!==void 0&&i!==void 0?t.push([r,i]):t.push(r!==void 0?[r,r]:[i,i])}return t},_e=(e=>t=>{let n=HA(t);return r=>{let i=r*n.length,o=r>=1?n.length-1:Math.max(Math.floor(i),0),s=n[o];return s===void 0?void 0:e(s[0],s[1],i-o)}})(qA),kt=e=>{let t=!1,n=e.map(r=>r!==void 0?(t=!0,r):1);return t?n:e},hi={mode:"rgb",channels:["r","g","b","alpha"],parse:[zA,xA,OA,wA,DA,"srgb"],serialize:"srgb",interpolate:{r:_e,g:_e,b:_e,alpha:{use:_e,fixup:kt}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Fc=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),t2=e=>{let t=Fc(e.r),n=Fc(e.g),r=Fc(e.b),i={mode:"xyz65",x:.5766690429101305*t+.1855582379065463*n+.1882286462349947*r,y:.297344975250536*t+.6273635662554661*n+.0752914584939979*r,z:.0270313613864123*t+.0706888525358272*n+.9913375368376386*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},Bc=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),n2=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:"a98",r:Bc(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*n),g:Bc(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*n),b:Bc(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*n)};return r!==void 0&&(i.alpha=r),i},Wc=(e=0)=>{const t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((t+.055)/1.055,2.4)},fi=({r:e,g:t,b:n,alpha:r})=>{let i={mode:"lrgb",r:Wc(e),g:Wc(t),b:Wc(n)};return r!==void 0&&(i.alpha=r),i},Sr=e=>{let{r:t,g:n,b:r,alpha:i}=fi(e),o={mode:"xyz65",x:.4123907992659593*t+.357584339383878*n+.1804807884018343*r,y:.2126390058715102*t+.715168678767756*n+.0721923153607337*r,z:.0193308187155918*t+.119194779794626*n+.9505321522496607*r};return i!==void 0&&(o.alpha=i),o},Vc=(e=0)=>{const t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(t,1/2.4)-.055):e*12.92},di=({r:e,g:t,b:n,alpha:r},i="rgb")=>{let o={mode:i,r:Vc(e),g:Vc(t),b:Vc(n)};return r!==void 0&&(o.alpha=r),o},Or=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=di({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*n,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*n,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*n});return r!==void 0&&(i.alpha=r),i},jA=Dt(ut({},hi),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>n2(Sr(e)),xyz65:n2},toMode:{rgb:e=>Or(t2(e)),xyz65:t2}}),jt=e=>(e=e%360)<0?e+360:e,FA=(e,t)=>e.map((n,r,i)=>{if(n===void 0)return n;let o=jt(n);return r===0||e[r-1]===void 0?o:t(o-jt(i[r-1]))}).reduce((n,r)=>!n.length||r===void 0||n[n.length-1]===void 0?(n.push(r),n):(n.push(r+n[n.length-1]),n),[]),Xn=e=>FA(e,t=>Math.abs(t)<=180?t:t-360*Math.sign(t)),qt=[-.14861,1.78277,-.29227,-.90649,1.97294,0],BA=Math.PI/180,WA=180/Math.PI;let r2=qt[3]*qt[4],i2=qt[1]*qt[4],o2=qt[1]*qt[2]-qt[0]*qt[3];const VA=({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(o2*n+e*r2-t*i2)/(o2+r2-i2),o=n-i,s=(qt[4]*(t-i)-qt[2]*o)/qt[3],a={mode:"cubehelix",l:i,s:i===0||i===1?void 0:Math.sqrt(o*o+s*s)/(qt[4]*i*(1-i))};return a.s&&(a.h=Math.atan2(s,o)*WA-120),r!==void 0&&(a.alpha=r),a},GA=({h:e,s:t,l:n,alpha:r})=>{let i={mode:"rgb"};e=(e===void 0?0:e+120)*BA,n===void 0&&(n=0);let o=t===void 0?0:t*n*(1-n),s=Math.cos(e),a=Math.sin(e);return i.r=n+o*(qt[0]*s+qt[1]*a),i.g=n+o*(qt[2]*s+qt[3]*a),i.b=n+o*(qt[4]*s+qt[5]*a),r!==void 0&&(i.alpha=r),i},Ms=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let n=jt(e.h),r=jt(t.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*i},YA=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let n=jt(e.h),r=jt(t.h);return Math.abs(r-n)>180?n-(r-360*Math.sign(r-n)):r-n},As=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let n=jt(e.h),r=jt(t.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*i},Un=e=>{let t=e.reduce((r,i)=>{if(i!==void 0){let o=i*Math.PI/180;r.sin+=Math.sin(o),r.cos+=Math.cos(o)}return r},{sin:0,cos:0}),n=Math.atan2(t.sin,t.cos)*180/Math.PI;return n<0?360+n:n},XA={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:VA},toMode:{rgb:GA},interpolate:{h:{use:_e,fixup:Xn},s:_e,l:_e,alpha:{use:_e,fixup:kt}},difference:{h:Ms},average:{h:Un}},dr=({l:e,a:t,b:n,alpha:r},i="lch")=>{t===void 0&&(t=0),n===void 0&&(n=0);let o=Math.sqrt(t*t+n*n),s={mode:i,l:e,c:o};return o&&(s.h=jt(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(s.alpha=r),s},pr=({l:e,c:t,h:n,alpha:r},i="lab")=>{n===void 0&&(n=0);let o={mode:i,l:e,a:t?t*Math.cos(n/180*Math.PI):0,b:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(o.alpha=r),o},s2=Math.pow(29,3)/Math.pow(3,3),a2=Math.pow(6,3)/Math.pow(29,3),It={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},pi={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329};let Gc=e=>Math.pow(e,3)>a2?Math.pow(e,3):(116*e-16)/s2;const l2=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+16)/116,o=t/500+i,s=i-n/200,a={mode:"xyz65",x:Gc(o)*pi.X,y:Gc(i)*pi.Y,z:Gc(s)*pi.Z};return r!==void 0&&(a.alpha=r),a},Is=e=>Or(l2(e)),Yc=e=>e>a2?Math.cbrt(e):(s2*e+16)/116,c2=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Yc(e/pi.X),o=Yc(t/pi.Y),s=Yc(n/pi.Z),a={mode:"lab65",l:116*o-16,a:500*(i-o),b:200*(o-s)};return r!==void 0&&(a.alpha=r),a},Ts=e=>{let t=c2(Sr(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Rs=1,u2=1,ro=26/180*Math.PI,ks=Math.cos(ro),Ls=Math.sin(ro),h2=100/Math.log(139/100),Xc=({l:e,c:t,h:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:"lab65",l:(Math.exp(e*Rs/h2)-1)/.0039},o=(Math.exp(.0435*t*u2*Rs)-1)/.075,s=o*Math.cos(n/180*Math.PI-ro),a=o*Math.sin(n/180*Math.PI-ro);return i.a=s*ks-a/.83*Ls,i.b=s*Ls+a/.83*ks,r!==void 0&&(i.alpha=r),i},Uc=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=t*ks+n*Ls,o=.83*(n*ks-t*Ls),s=Math.sqrt(i*i+o*o),a={mode:"dlch",l:h2/Rs*Math.log(1+.0039*e),c:Math.log(1+.075*s)/(.0435*u2*Rs)};return a.c&&(a.h=jt((Math.atan2(o,i)+ro)/Math.PI*180)),r!==void 0&&(a.alpha=r),a},f2=e=>Xc(dr(e,"dlch")),d2=e=>pr(Uc(e),"dlab"),UA={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:f2,rgb:e=>Is(f2(e))},fromMode:{lab65:d2,rgb:e=>d2(Ts(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:_e,a:_e,b:_e,alpha:{use:_e,fixup:kt}}},KA={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Xc,dlab:e=>pr(e,"dlab"),rgb:e=>Is(Xc(e))},fromMode:{lab65:Uc,dlab:e=>dr(e,"dlch"),rgb:e=>Uc(Ts(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:_e,c:_e,h:{use:_e,fixup:Xn},alpha:{use:_e,fixup:kt}},difference:{h:As},average:{h:Un}};function ZA({h:e,s:t,i:n,alpha:r}){e=jt(e!==void 0?e:0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.abs(e/60%2-1),o;switch(Math.floor(e/60)){case 0:o={r:n*(1+t*(3/(2-i)-1)),g:n*(1+t*(3*(1-i)/(2-i)-1)),b:n*(1-t)};break;case 1:o={r:n*(1+t*(3*(1-i)/(2-i)-1)),g:n*(1+t*(3/(2-i)-1)),b:n*(1-t)};break;case 2:o={r:n*(1-t),g:n*(1+t*(3/(2-i)-1)),b:n*(1+t*(3*(1-i)/(2-i)-1))};break;case 3:o={r:n*(1-t),g:n*(1+t*(3*(1-i)/(2-i)-1)),b:n*(1+t*(3/(2-i)-1))};break;case 4:o={r:n*(1+t*(3*(1-i)/(2-i)-1)),g:n*(1-t),b:n*(1+t*(3/(2-i)-1))};break;case 5:o={r:n*(1+t*(3/(2-i)-1)),g:n*(1-t),b:n*(1+t*(3*(1-i)/(2-i)-1))};break;default:o={r:n*(1-t),g:n*(1-t),b:n*(1-t)}}return o.mode="rgb",r!==void 0&&(o.alpha=r),o}function QA({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.max(e,t,n),o=Math.min(e,t,n),s={mode:"hsi",s:e+t+n===0?0:1-3*o/(e+t+n),i:(e+t+n)/3};return i-o!==0&&(s.h=(i===e?(t-n)/(i-o)+(t<n)*6:i===t?(n-e)/(i-o)+2:(e-t)/(i-o)+4)*60),r!==void 0&&(s.alpha=r),s}const JA={mode:"hsi",toMode:{rgb:ZA},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:QA},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:_e,fixup:Xn},s:_e,i:_e,alpha:{use:_e,fixup:kt}},difference:{h:Ms},average:{h:Un}};function eI({h:e,s:t,l:n,alpha:r}){e=jt(e!==void 0?e:0),t===void 0&&(t=0),n===void 0&&(n=0);let i=n+t*(n<.5?n:1-n),o=i-(i-n)*2*Math.abs(e/60%2-1),s;switch(Math.floor(e/60)){case 0:s={r:i,g:o,b:2*n-i};break;case 1:s={r:o,g:i,b:2*n-i};break;case 2:s={r:2*n-i,g:i,b:o};break;case 3:s={r:2*n-i,g:o,b:i};break;case 4:s={r:o,g:2*n-i,b:i};break;case 5:s={r:i,g:2*n-i,b:o};break;default:s={r:2*n-i,g:2*n-i,b:2*n-i}}return s.mode="rgb",r!==void 0&&(s.alpha=r),s}function tI({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.max(e,t,n),o=Math.min(e,t,n),s={mode:"hsl",s:i===o?0:(i-o)/(1-Math.abs(i+o-1)),l:.5*(i+o)};return i-o!==0&&(s.h=(i===e?(t-n)/(i-o)+(t<n)*6:i===t?(n-e)/(i-o)+2:(e-t)/(i-o)+4)*60),r!==void 0&&(s.alpha=r),s}const nI=(e,t)=>{switch(t){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},rI=new RegExp(`^hsla?\\(\\s*${CA}${ui}${to}${ui}${to}\\s*(?:,\\s*${Dc}\\s*)?\\)$`),iI=e=>{let t=e.match(rI);if(!t)return;let n={mode:"hsl"};return t[3]!==void 0?n.h=+t[3]:t[1]!==void 0&&t[2]!==void 0&&(n.h=nI(t[1],t[2])),t[4]!==void 0&&(n.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(n.l=Math.min(Math.max(0,t[5]/100),1)),t[6]!==void 0?n.alpha=Math.max(0,Math.min(1,t[6]/100)):t[7]!==void 0&&(n.alpha=Math.max(0,Math.min(1,+t[7]))),n};function oI(e,t){if(!t||t[0]!=="hsl"&&t[0]!=="hsla")return;const n={mode:"hsl"},[,r,i,o,s]=t;if(r.type!==de.None){if(r.type===de.Percentage)return;n.h=r.value}if(i.type!==de.None){if(i.type===de.Hue)return;n.s=i.value/100}if(o.type!==de.None){if(o.type===de.Hue)return;n.l=o.value/100}return s.type!==de.None&&(n.alpha=Math.min(1,Math.max(0,s.type===de.Number?s.value:s.value/100))),n}const p2={mode:"hsl",toMode:{rgb:eI},fromMode:{rgb:tI},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[oI,iI],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:_e,fixup:Xn},s:_e,l:_e,alpha:{use:_e,fixup:kt}},difference:{h:Ms},average:{h:Un}};function g2({h:e,s:t,v:n,alpha:r}){e=jt(e!==void 0?e:0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.abs(e/60%2-1),o;switch(Math.floor(e/60)){case 0:o={r:n,g:n*(1-t*i),b:n*(1-t)};break;case 1:o={r:n*(1-t*i),g:n,b:n*(1-t)};break;case 2:o={r:n*(1-t),g:n,b:n*(1-t*i)};break;case 3:o={r:n*(1-t),g:n*(1-t*i),b:n};break;case 4:o={r:n*(1-t*i),g:n*(1-t),b:n};break;case 5:o={r:n,g:n*(1-t),b:n*(1-t*i)};break;default:o={r:n*(1-t),g:n*(1-t),b:n*(1-t)}}return o.mode="rgb",r!==void 0&&(o.alpha=r),o}function m2({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.max(e,t,n),o=Math.min(e,t,n),s={mode:"hsv",s:i===0?0:1-o/i,v:i};return i-o!==0&&(s.h=(i===e?(t-n)/(i-o)+(t<n)*6:i===t?(n-e)/(i-o)+2:(e-t)/(i-o)+4)*60),r!==void 0&&(s.alpha=r),s}const y2={mode:"hsv",toMode:{rgb:g2},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:m2},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:_e,fixup:Xn},s:_e,v:_e,alpha:{use:_e,fixup:kt}},difference:{h:Ms},average:{h:Un}};function sI({h:e,w:t,b:n,alpha:r}){if(t===void 0&&(t=0),n===void 0&&(n=0),t+n>1){let i=t+n;t/=i,n/=i}return g2({h:e,s:n===1?1:1-t/(1-n),v:1-n,alpha:r})}function aI(e){let t=m2(e);if(t===void 0)return;let n=t.s!==void 0?t.s:0,r=t.v!==void 0?t.v:0,i={mode:"hwb",w:(1-n)*r,b:1-r};return t.h!==void 0&&(i.h=t.h),t.alpha!==void 0&&(i.alpha=t.alpha),i}function lI(e,t){if(!t||t[0]!=="hwb")return;const n={mode:"hwb"},[,r,i,o,s]=t;if(r.type!==de.None){if(r.type===de.Percentage)return;n.h=r.value}if(i.type!==de.None){if(i.type===de.Hue)return;n.w=i.value/100}if(o.type!==de.None){if(o.type===de.Hue)return;n.b=o.value/100}return s.type!==de.None&&(n.alpha=Math.min(1,Math.max(0,s.type===de.Number?s.value:s.value/100))),n}const cI={mode:"hwb",toMode:{rgb:sI},fromMode:{rgb:aI},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[lI],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:_e,fixup:Xn},w:_e,b:_e,alpha:{use:_e,fixup:kt}},difference:{h:YA},average:{h:Un}},v2=203,Ns=.1593017578125,b2=78.84375,zs=.8359375,Ds=18.8515625,qs=18.6875;function Kc(e){if(e<0)return 0;const t=Math.pow(e,1/b2);return 1e4*Math.pow(Math.max(0,t-zs)/(Ds-qs*t),1/Ns)}function Zc(e){if(e<0)return 0;const t=Math.pow(e/1e4,Ns);return Math.pow((zs+Ds*t)/(1+qs*t),b2)}const Qc=e=>Math.max(e/v2,0),w2=({i:e,t,p:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);const i=Kc(e+.008609037037932761*t+.11102962500302593*n),o=Kc(e-.00860903703793275*t-.11102962500302599*n),s=Kc(e+.5600313357106791*t-.32062717498731885*n),a={mode:"xyz65",x:Qc(2.070152218389422*i-1.3263473389671556*o+.2066510476294051*s),y:Qc(.3647385209748074*i+.680566024947227*o-.0453045459220346*s),z:Qc(-.049747207535812*i-.0492609666966138*o+1.1880659249923042*s)};return r!==void 0&&(a.alpha=r),a},Jc=(e=0)=>Math.max(e*v2,0),_2=({x:e,y:t,z:n,alpha:r})=>{const i=Jc(e),o=Jc(t),s=Jc(n),a=Zc(.3592832590121217*i+.6976051147779502*o-.0358915932320289*s),l=Zc(-.1920808463704995*i+1.1004767970374323*o+.0753748658519118*s),c=Zc(.0070797844607477*i+.0748396662186366*o+.8433265453898765*s),u=.5*a+.5*l,h=1.61376953125*a-3.323486328125*l+1.709716796875*c,f=4.378173828125*a-4.24560546875*l-.132568359375*c,d={mode:"itp",i:u,t:h,p:f};return r!==void 0&&(d.alpha=r),d},uI={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:w2,rgb:e=>Or(w2(e))},fromMode:{xyz65:_2,rgb:e=>_2(Sr(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:_e,t:_e,p:_e,alpha:{use:_e,fixup:kt}}},hI=134.03437499999998,fI=16295499532821565e-27,eu=e=>{if(e<0)return 0;let t=Math.pow(e/1e4,Ns);return Math.pow((zs+Ds*t)/(1+qs*t),hI)},tu=(e=0)=>Math.max(e*203,0),x2=({x:e,y:t,z:n,alpha:r})=>{e=tu(e),t=tu(t),n=tu(n);let i=1.15*e-.15*n,o=.66*t+.34*e,s=eu(.41478972*i+.579999*o+.014648*n),a=eu(-.20151*i+1.120649*o+.0531008*n),l=eu(-.0166008*i+.2648*o+.6684799*n),c=(s+a)/2,u={mode:"jab",j:.44*c/(1-.56*c)-fI,a:3.524*s-4.066708*a+.542708*l,b:.199076*s+1.096799*a-1.295875*l};return r!==void 0&&(u.alpha=r),u},dI=134.03437499999998,C2=16295499532821565e-27,nu=e=>{if(e<0)return 0;let t=Math.pow(e,1/dI);return 1e4*Math.pow((zs-t)/(qs*t-Ds),1/Ns)},ru=e=>e/203,P2=({j:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+C2)/(.44+.56*(e+C2)),o=nu(i+.13860504*t+.058047316*n),s=nu(i-.13860504*t-.058047316*n),a=nu(i-.096019242*t-.8118919*n),l={mode:"xyz65",x:ru(1.661373024652174*o-.914523081304348*s+.23136208173913045*a),y:ru(-.3250758611844533*o+1.571847026732543*s-.21825383453227928*a),z:ru(-.090982811*o-.31272829*s+1.5227666*a)};return r!==void 0&&(l.alpha=r),l},S2=e=>{let t=x2(Sr(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},O2=e=>Or(P2(e)),pI={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:S2,xyz65:x2},toMode:{rgb:O2,xyz65:P2},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:_e,a:_e,b:_e,alpha:{use:_e,fixup:kt}}},$2=({j:e,a:t,b:n,alpha:r})=>{t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.sqrt(t*t+n*n),o={mode:"jch",j:e,c:i};return i&&(o.h=jt(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(o.alpha=r),o},E2=({j:e,c:t,h:n,alpha:r})=>{n===void 0&&(n=0);let i={mode:"jab",j:e,a:t?t*Math.cos(n/180*Math.PI):0,b:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(i.alpha=r),i},gI={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:E2,rgb:e=>O2(E2(e))},fromMode:{rgb:e=>$2(S2(e)),jab:$2},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:_e,fixup:Xn},c:_e,j:_e,alpha:{use:_e,fixup:kt}},difference:{h:As},average:{h:Un}},Hs=Math.pow(29,3)/Math.pow(3,3),iu=Math.pow(6,3)/Math.pow(29,3);let ou=e=>Math.pow(e,3)>iu?Math.pow(e,3):(116*e-16)/Hs;const su=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+16)/116,o=t/500+i,s=i-n/200,a={mode:"xyz50",x:ou(o)*It.X,y:ou(i)*It.Y,z:ou(s)*It.Z};return r!==void 0&&(a.alpha=r),a},io=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=di({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*n,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*n,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*n});return r!==void 0&&(i.alpha=r),i},M2=e=>io(su(e)),oo=e=>{let{r:t,g:n,b:r,alpha:i}=fi(e),o={mode:"xyz50",x:.436065742824811*t+.3851514688337912*n+.14307845442264197*r,y:.22249319175623702*t+.7168870538238823*n+.06061979053616537*r,z:.013923904500943465*t+.09708128566574634*n+.7140993584005155*r};return i!==void 0&&(o.alpha=i),o},au=e=>e>iu?Math.cbrt(e):(Hs*e+16)/116,lu=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=au(e/It.X),o=au(t/It.Y),s=au(n/It.Z),a={mode:"lab",l:116*o-16,a:500*(i-o),b:200*(o-s)};return r!==void 0&&(a.alpha=r),a},A2=e=>{let t=lu(oo(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t};function mI(e,t){if(!t||t[0]!=="lab")return;const n={mode:"lab"},[,r,i,o,s]=t;if(!(r.type===de.Hue||i.type===de.Hue||o.type===de.Hue))return r.type!==de.None&&(n.l=Math.min(Math.max(0,r.value),100)),i.type!==de.None&&(n.a=i.type===de.Number?i.value:i.value*125/100),o.type!==de.None&&(n.b=o.type===de.Number?o.value:o.value*125/100),s.type!==de.None&&(n.alpha=Math.min(1,Math.max(0,s.type===de.Number?s.value:s.value/100))),n}const cu={mode:"lab",toMode:{xyz50:su,rgb:M2},fromMode:{xyz50:lu,rgb:A2},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[mI],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:_e,a:_e,b:_e,alpha:{use:_e,fixup:kt}}},yI=Dt(ut({},cu),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:l2,rgb:Is},fromMode:{xyz65:c2,rgb:Ts},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}});function vI(e,t){if(!t||t[0]!=="lch")return;const n={mode:"lch"},[,r,i,o,s]=t;if(r.type!==de.None){if(r.type===de.Hue)return;n.l=Math.min(Math.max(0,r.value),100)}if(i.type!==de.None&&(n.c=Math.max(0,i.type===de.Number?i.value:i.value*150/100)),o.type!==de.None){if(o.type===de.Percentage)return;n.h=o.value}return s.type!==de.None&&(n.alpha=Math.min(1,Math.max(0,s.type===de.Number?s.value:s.value/100))),n}const uu={mode:"lch",toMode:{lab:pr,rgb:e=>M2(pr(e))},fromMode:{rgb:e=>dr(A2(e)),lab:dr},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[vI],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:_e,fixup:Xn},c:_e,l:_e,alpha:{use:_e,fixup:kt}},difference:{h:As},average:{h:Un}},bI=Dt(ut({},uu),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>pr(e,"lab65"),rgb:e=>Is(pr(e,"lab65"))},fromMode:{rgb:e=>dr(Ts(e),"lch65"),lab65:e=>dr(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),I2=({l:e,u:t,v:n,alpha:r})=>{t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.sqrt(t*t+n*n),o={mode:"lchuv",l:e,c:i};return i&&(o.h=jt(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(o.alpha=r),o},T2=({l:e,c:t,h:n,alpha:r})=>{n===void 0&&(n=0);let i={mode:"luv",l:e,u:t?t*Math.cos(n/180*Math.PI):0,v:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(i.alpha=r),i},R2=(e,t,n)=>4*e/(e+15*t+3*n),k2=(e,t,n)=>9*t/(e+15*t+3*n),wI=R2(It.X,It.Y,It.Z),_I=k2(It.X,It.Y,It.Z),xI=e=>e<=iu?Hs*e:116*Math.cbrt(e)-16,hu=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=xI(t/It.Y),o=R2(e,t,n),s=k2(e,t,n);!isFinite(o)||!isFinite(s)?i=o=s=0:(o=13*i*(o-wI),s=13*i*(s-_I));let a={mode:"luv",l:i,u:o,v:s};return r!==void 0&&(a.alpha=r),a},CI=(e,t,n)=>4*e/(e+15*t+3*n),PI=(e,t,n)=>9*t/(e+15*t+3*n),SI=CI(It.X,It.Y,It.Z),OI=PI(It.X,It.Y,It.Z),fu=({l:e,u:t,v:n,alpha:r})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};t===void 0&&(t=0),n===void 0&&(n=0);let i=t/(13*e)+SI,o=n/(13*e)+OI,s=It.Y*(e<=8?e/Hs:Math.pow((e+16)/116,3)),a=s*(9*i)/(4*o),l=s*(12-3*i-20*o)/(4*o),c={mode:"xyz50",x:a,y:s,z:l};return r!==void 0&&(c.alpha=r),c},$I={mode:"lchuv",toMode:{luv:T2,rgb:e=>io(fu(T2(e)))},fromMode:{rgb:e=>I2(hu(oo(e))),luv:I2},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:_e,fixup:Xn},c:_e,l:_e,alpha:{use:_e,fixup:kt}},difference:{h:As},average:{h:Un}},EI=Dt(ut({},hi),{mode:"lrgb",toMode:{rgb:di},fromMode:{rgb:fi},parse:["srgb-linear"],serialize:"srgb-linear"}),MI={mode:"luv",toMode:{xyz50:fu,rgb:e=>io(fu(e))},fromMode:{xyz50:hu,rgb:e=>hu(oo(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:_e,u:_e,v:_e,alpha:{use:_e,fixup:kt}}},L2=({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*n),o=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*n),s=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*n),a={mode:"oklab",l:.210454268309314*i+.7936177747023054*o-.0040720430116193*s,a:1.9779985324311684*i-2.42859224204858*o+.450593709617411*s,b:.0259040424655478*i+.7827717124575296*o-.8086757549230774*s};return r!==void 0&&(a.alpha=r),a},js=e=>{let t=L2(fi(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},so=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.pow(e+.3963377773761749*t+.2158037573099136*n,3),o=Math.pow(e-.1055613458156586*t-.0638541728258133*n,3),s=Math.pow(e-.0894841775298119*t-1.2914855480194092*n,3),a={mode:"lrgb",r:4.076741636075957*i-3.3077115392580616*o+.2309699031821044*s,g:-1.2684379732850317*i+2.6097573492876887*o-.3413193760026573*s,b:-.0041960761386756*i-.7034186179359362*o+1.7076146940746117*s};return r!==void 0&&(a.alpha=r),a},Fs=e=>di(so(e));function du(e){const r=1.170873786407767;return .5*(r*e-.206+Math.sqrt((r*e-.206)*(r*e-.206)+4*.03*r*e))}function Bs(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function AI(e,t){let n,r,i,o,s,a,l,c;-1.88170328*e-.80936493*t>1?(n=1.19086277,r=1.76576728,i=.59662641,o=.75515197,s=.56771245,a=4.0767416621,l=-3.3077115913,c=.2309699292):1.81444104*e-1.19445276*t>1?(n=.73956515,r=-.45954404,i=.08285427,o=.1254107,s=.14503204,a=-1.2684380046,l=2.6097574011,c=-.3413193965):(n=1.35733652,r=-.00915799,i=-1.1513021,o=-.50559606,s=.00692167,a=-.0041960863,l=-.7034186147,c=1.707614701);let u=n+r*e+i*t+o*e*e+s*e*t,h=.3963377774*e+.2158037573*t,f=-.1055613458*e-.0638541728*t,d=-.0894841775*e-1.291485548*t;{let p=1+u*h,g=1+u*f,m=1+u*d,v=p*p*p,b=g*g*g,w=m*m*m,x=3*h*p*p,_=3*f*g*g,C=3*d*m*m,P=6*h*h*p,S=6*f*f*g,$=6*d*d*m,O=a*v+l*b+c*w,M=a*x+l*_+c*C,A=a*P+l*S+c*$;u=u-O*M/(M*M-.5*O*A)}return u}function pu(e,t){let n=AI(e,t),r=so({l:1,a:n*e,b:n*t}),i=Math.cbrt(1/Math.max(r.r,r.g,r.b)),o=i*n;return[i,o]}function II(e,t,n,r,i,o=null){o||(o=pu(e,t));let s;if((n-i)*o[1]-(o[0]-i)*r<=0)s=o[1]*i/(r*o[0]+o[1]*(i-n));else{s=o[1]*(i-1)/(r*(o[0]-1)+o[1]*(i-n));{let a=n-i,l=r,c=.3963377774*e+.2158037573*t,u=-.1055613458*e-.0638541728*t,h=-.0894841775*e-1.291485548*t,f=a+l*c,d=a+l*u,p=a+l*h;{let g=i*(1-s)+s*n,m=s*r,v=g+m*c,b=g+m*u,w=g+m*h,x=v*v*v,_=b*b*b,C=w*w*w,P=3*f*v*v,S=3*d*b*b,$=3*p*w*w,O=6*f*f*v,M=6*d*d*b,A=6*p*p*w,E=4.0767416621*x-3.3077115913*_+.2309699292*C-1,I=4.0767416621*P-3.3077115913*S+.2309699292*$,T=4.0767416621*O-3.3077115913*M+.2309699292*A,N=I/(I*I-.5*E*T),H=-E*N,D=-1.2684380046*x+2.6097574011*_-.3413193965*C-1,W=-1.2684380046*P+2.6097574011*S-.3413193965*$,F=-1.2684380046*O+2.6097574011*M-.3413193965*A,X=W/(W*W-.5*D*F),G=-D*X,L=-.0041960863*x-.7034186147*_+1.707614701*C-1,R=-.0041960863*P-.7034186147*S+1.707614701*$,z=-.0041960863*O-.7034186147*M+1.707614701*A,q=R/(R*R-.5*L*z),j=-L*q;H=N>=0?H:1e6,G=X>=0?G:1e6,j=q>=0?j:1e6,s+=Math.min(H,Math.min(G,j))}}}return s}function gu(e,t,n=null){n||(n=pu(e,t));let r=n[0],i=n[1];return[i/r,i/(1-r)]}function N2(e,t,n){let r=pu(t,n),i=II(t,n,e,1,e,r),o=gu(t,n,r),s=.11516993+1/(7.4477897+4.1590124*n+t*(-2.19557347+1.75198401*n+t*(-2.13704948-10.02301043*n+t*(-4.24894561+5.38770819*n+4.69891013*t)))),a=.11239642+1/(1.6132032-.68124379*n+t*(.40370612+.90148123*n+t*(-.27087943+.6122399*n+t*(.00299215-.45399568*n-.14661872*t)))),l=i/Math.min(e*o[0],(1-e)*o[1]),c=e*s,u=(1-e)*a,h=.9*l*Math.sqrt(Math.sqrt(1/(1/(c*c*c*c)+1/(u*u*u*u))));return c=e*.4,u=(1-e)*.8,[Math.sqrt(1/(1/(c*c)+1/(u*u))),h,i]}function z2(e){const t=e.l!==void 0?e.l:0,n=e.a!==void 0?e.a:0,r=e.b!==void 0?e.b:0,i={mode:"okhsl",l:du(t)};e.alpha!==void 0&&(i.alpha=e.alpha);let o=Math.sqrt(n*n+r*r);if(!o)return i.s=0,i;let[s,a,l]=N2(t,n/o,r/o),c;if(o<a){let u=0,h=.8*s,f=1-h/a;c=(o-u)/(h+f*(o-u))*.8}else{let u=a,h=.2*a*a*1.25*1.25/s,f=1-h/(l-a);c=.8+.2*((o-u)/(h+f*(o-u)))}return c&&(i.s=c,i.h=jt(Math.atan2(r,n)*180/Math.PI)),i}function D2(e){let t=e.h!==void 0?e.h:0,n=e.s!==void 0?e.s:0,r=e.l!==void 0?e.l:0;const i={mode:"oklab",l:Bs(r)};if(e.alpha!==void 0&&(i.alpha=e.alpha),!n||r===1)return i.a=i.b=0,i;let o=Math.cos(t/180*Math.PI),s=Math.sin(t/180*Math.PI),[a,l,c]=N2(i.l,o,s),u,h,f,d;n<.8?(u=1.25*n,h=0,f=.8*a,d=1-f/l):(u=5*(n-.8),h=l,f=.2*l*l*1.25*1.25/a,d=1-f/(c-l));let p=h+u*f/(1-d*u);return i.a=p*o,i.b=p*s,i}const TI=Dt(ut({},p2),{mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:z2,rgb:e=>z2(js(e))},toMode:{oklab:D2,rgb:e=>Fs(D2(e))}});function q2(e){let t=e.l!==void 0?e.l:0,n=e.a!==void 0?e.a:0,r=e.b!==void 0?e.b:0,i=Math.sqrt(n*n+r*r),o=i?n/i:1,s=i?r/i:1,[a,l]=gu(o,s),c=.5,u=1-c/a,h=l/(i+t*l),f=h*t,d=h*i,p=Bs(f),g=d*p/f,m=so({l:p,a:o*g,b:s*g}),v=Math.cbrt(1/Math.max(m.r,m.g,m.b,0));t=t/v,i=i/v*du(t)/t,t=du(t);const b={mode:"okhsv",s:i?(c+l)*d/(l*c+l*u*d):0,v:t?t/f:0};return b.s&&(b.h=jt(Math.atan2(r,n)*180/Math.PI)),e.alpha!==void 0&&(b.alpha=e.alpha),b}function H2(e){const t={mode:"oklab"};e.alpha!==void 0&&(t.alpha=e.alpha);const n=e.h!==void 0?e.h:0,r=e.s!==void 0?e.s:0,i=e.v!==void 0?e.v:0,o=Math.cos(n/180*Math.PI),s=Math.sin(n/180*Math.PI),[a,l]=gu(o,s),c=.5,u=1-c/a,h=1-r*c/(c+l-l*u*r),f=r*l*c/(c+l-l*u*r),d=Bs(h),p=f*d/h,g=so({l:d,a:o*p,b:s*p}),m=Math.cbrt(1/Math.max(g.r,g.g,g.b,0)),v=Bs(i*h),b=f*v/h;return t.l=v*m,t.a=b*o*m,t.b=b*s*m,t}const RI=Dt(ut({},y2),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:q2,rgb:e=>q2(js(e))},toMode:{oklab:H2,rgb:e=>Fs(H2(e))}});function kI(e,t){if(!t||t[0]!=="oklab")return;const n={mode:"oklab"},[,r,i,o,s]=t;if(!(r.type===de.Hue||i.type===de.Hue||o.type===de.Hue))return r.type!==de.None&&(n.l=Math.min(Math.max(0,r.type===de.Number?r.value:r.value/100),1)),i.type!==de.None&&(n.a=i.type===de.Number?i.value:i.value*.4/100),o.type!==de.None&&(n.b=o.type===de.Number?o.value:o.value*.4/100),s.type!==de.None&&(n.alpha=Math.min(1,Math.max(0,s.type===de.Number?s.value:s.value/100))),n}const LI=Dt(ut({},cu),{mode:"oklab",toMode:{lrgb:so,rgb:Fs},fromMode:{lrgb:L2,rgb:js},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[kI],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`});function NI(e,t){if(!t||t[0]!=="oklch")return;const n={mode:"oklch"},[,r,i,o,s]=t;if(r.type!==de.None){if(r.type===de.Hue)return;n.l=Math.min(Math.max(0,r.type===de.Number?r.value:r.value/100),1)}if(i.type!==de.None&&(n.c=Math.max(0,i.type===de.Number?i.value:i.value*.4/100)),o.type!==de.None){if(o.type===de.Percentage)return;n.h=o.value}return s.type!==de.None&&(n.alpha=Math.min(1,Math.max(0,s.type===de.Number?s.value:s.value/100))),n}const j2=Dt(ut({},uu),{mode:"oklch",toMode:{oklab:e=>pr(e,"oklab"),rgb:e=>Fs(pr(e,"oklab"))},fromMode:{rgb:e=>dr(js(e),"oklch"),oklab:e=>dr(e,"oklch")},parse:[NI],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),F2=e=>{let{r:t,g:n,b:r,alpha:i}=fi(e),o={mode:"xyz65",x:.486570948648216*t+.265667693169093*n+.1982172852343625*r,y:.2289745640697487*t+.6917385218365062*n+.079286914093745*r,z:0*t+.0451133818589026*n+1.043944368900976*r};return i!==void 0&&(o.alpha=i),o},B2=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=di({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*n,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*n,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*n},"p3");return r!==void 0&&(i.alpha=r),i},zI=Dt(ut({},hi),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>B2(Sr(e)),xyz65:B2},toMode:{rgb:e=>Or(F2(e)),xyz65:F2}}),mu=e=>{let t=Math.abs(e);return t>=1/512?Math.sign(e)*Math.pow(t,1/1.8):16*e},W2=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:"prophoto",r:mu(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*n),g:mu(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*n),b:mu(e*0+t*0+1.2119675456389452*n)};return r!==void 0&&(i.alpha=r),i},yu=(e=0)=>{let t=Math.abs(e);return t>=16/512?Math.sign(e)*Math.pow(t,1.8):e/16},V2=e=>{let t=yu(e.r),n=yu(e.g),r=yu(e.b),i={mode:"xyz50",x:.7977666449006423*t+.1351812974005331*n+.0313477341283922*r,y:.2880748288194013*t+.7118352342418731*n+899369387256e-16*r,z:0*t+0*n+.8251046025104602*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},DI=Dt(ut({},hi),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:W2,rgb:e=>W2(oo(e))},toMode:{xyz50:V2,rgb:e=>io(V2(e))}}),G2=1.09929682680944,qI=.018053968510807,vu=e=>{const t=Math.abs(e);return t>qI?(Math.sign(e)||1)*(G2*Math.pow(t,.45)-(G2-1)):4.5*e},Y2=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:"rec2020",r:vu(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*n),g:vu(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*n),b:vu(e*.0176398574453108-t*.0427706132578085+.9421031212354739*n)};return r!==void 0&&(i.alpha=r),i},X2=1.09929682680944,HI=.018053968510807,bu=(e=0)=>{let t=Math.abs(e);return t<HI*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((t+X2-1)/X2,1/.45)},U2=e=>{let t=bu(e.r),n=bu(e.g),r=bu(e.b),i={mode:"xyz65",x:.6369580483012911*t+.1446169035862083*n+.1688809751641721*r,y:.262700212011267*t+.6779980715188708*n+.059301716469862*r,z:0*t+.0280726930490874*n+1.0609850577107909*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},jI=Dt(ut({},hi),{mode:"rec2020",fromMode:{xyz65:Y2,rgb:e=>Y2(Sr(e))},toMode:{xyz65:U2,rgb:e=>Or(U2(e))},parse:["rec2020"],serialize:"rec2020"}),$r=.0037930732552754493,K2=Math.cbrt($r),wu=e=>Math.cbrt(e)-K2,FI=e=>{const{r:t,g:n,b:r,alpha:i}=fi(e),o=wu(.3*t+.622*n+.078*r+$r),s=wu(.23*t+.692*n+.078*r+$r),a=wu(.2434226892454782*t+.2047674442449682*n+.5518098665095535*r+$r),l={mode:"xyb",x:(o-s)/2,y:(o+s)/2,b:a-(o+s)/2};return i!==void 0&&(l.alpha=i),l},_u=e=>Math.pow(e+K2,3),BI={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:({x:e,y:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);const i=_u(e+t)-$r,o=_u(t-e)-$r,s=_u(n+t)-$r,a=di({r:11.031566904639861*i-9.866943908131562*o-.16462299650829934*s,g:-3.2541473810744237*i+4.418770377582723*o-.16462299650829934*s,b:-3.6588512867136815*i+2.7129230459360922*o+1.9459282407775895*s});return r!==void 0&&(a.alpha=r),a}},fromMode:{rgb:FI},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:_e,y:_e,b:_e,alpha:{use:_e,fixup:kt}}},WI={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:io,lab:lu},fromMode:{rgb:oo,lab:su},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:_e,y:_e,z:_e,alpha:{use:_e,fixup:kt}}},VI={mode:"xyz65",toMode:{rgb:Or,xyz50:e=>{let{x:t,y:n,z:r,alpha:i}=e;t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0);let o={mode:"xyz50",x:1.0479298208405488*t+.0229467933410191*n-.0501922295431356*r,y:.0296278156881593*t+.990434484573249*n-.0170738250293851*r,z:-.0092430581525912*t+.0150551448965779*n+.7518742899580008*r};return i!==void 0&&(o.alpha=i),o}},fromMode:{rgb:Sr,xyz50:e=>{let{x:t,y:n,z:r,alpha:i}=e;t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0);let o={mode:"xyz65",x:.9554734527042182*t-.0230985368742614*n+.0632593086610217*r,y:-.0283697069632081*t+1.0099954580058226*n+.021041398966943*r,z:.0123140016883199*t-.0205076964334779*n+1.3303659366080753*r};return i!==void 0&&(o.alpha=i),o}},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:_e,y:_e,z:_e,alpha:{use:_e,fixup:kt}}},GI={mode:"yiq",toMode:{rgb:({y:e,i:t,q:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);const i={mode:"rgb",r:e+.95608445*t+.6208885*n,g:e-.27137664*t-.6486059*n,b:e-1.10561724*t+1.70250126*n};return r!==void 0&&(i.alpha=r),i}},fromMode:{rgb:({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);const i={mode:"yiq",y:.29889531*e+.58662247*t+.11448223*n,i:.59597799*e-.2741761*t-.32180189*n,q:.21147017*e-.52261711*t+.31114694*n};return r!==void 0&&(i.alpha=r),i}},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:_e,i:_e,q:_e,alpha:{use:_e,fixup:kt}}},YI=e=>Math.max(0,Math.min(1,e||0)),Ws=e=>Math.round(YI(e)*255),Z2=qc("rgb"),Q2=e=>{if(e===void 0)return;let t=Ws(e.r),n=Ws(e.g),r=Ws(e.b);return"#"+(1<<24|t<<16|n<<8|r).toString(16).slice(1)},XI=e=>{if(e===void 0)return;let t=Ws(e.alpha!==void 0?e.alpha:1);return Q2(e)+(256|t).toString(16).slice(1)},ao=e=>Q2(Z2(e)),UI=e=>XI(Z2(e));function xu(e){let t=qc("lrgb")(e);return .2126*t.r+.7152*t.g+.0722*t.b}function Cu(e,t){let n=xu(e),r=xu(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}it(jA),it(XA),it(UA),it(KA),it(JA),it(p2),it(y2),it(cI),it(uI),it(pI),it(gI),it(cu),it(yI),it(uu),it(bI),it($I),it(EI),it(MI),it(TI),it(RI),it(LI);const J2=it(j2);it(zI),it(DI),it(jI),it(hi),it(BI),it(WI),it(VI),it(GI);function Er(e){if(!e)return!1;const t=e.trim().toLowerCase();return!(t==="none"||t==="transparent"||t==="")}function ev(e){const t=In(e);return t?xu(t)<.5:!1}var tv=typeof global=="object"&&global&&global.Object===Object&&global,KI=typeof self=="object"&&self&&self.Object===Object&&self,Tn=tv||KI||Function("return this")(),Rn=Tn.Symbol,nv=Object.prototype,ZI=nv.hasOwnProperty,QI=nv.toString,lo=Rn?Rn.toStringTag:void 0;function JI(e){var t=ZI.call(e,lo),n=e[lo];try{e[lo]=void 0;var r=!0}catch(o){}var i=QI.call(e);return r&&(t?e[lo]=n:delete e[lo]),i}var eT=Object.prototype,tT=eT.toString;function nT(e){return tT.call(e)}var rT="[object Null]",iT="[object Undefined]",rv=Rn?Rn.toStringTag:void 0;function Mr(e){return e==null?e===void 0?iT:rT:rv&&rv in Object(e)?JI(e):nT(e)}function kn(e){return e!=null&&typeof e=="object"}var oT="[object Symbol]";function Vs(e){return typeof e=="symbol"||kn(e)&&Mr(e)==oT}function sT(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Ln=Array.isArray,iv=Rn?Rn.prototype:void 0,ov=iv?iv.toString:void 0;function sv(e){if(typeof e=="string")return e;if(Ln(e))return sT(e,sv)+"";if(Vs(e))return ov?ov.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var aT=/\s/;function lT(e){for(var t=e.length;t--&&aT.test(e.charAt(t)););return t}var cT=/^\s+/;function uT(e){return e&&e.slice(0,lT(e)+1).replace(cT,"")}function Nn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var av=NaN,hT=/^[-+]0x[0-9a-f]+$/i,fT=/^0b[01]+$/i,dT=/^0o[0-7]+$/i,pT=parseInt;function lv(e){if(typeof e=="number")return e;if(Vs(e))return av;if(Nn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Nn(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=uT(e);var n=fT.test(e);return n||dT.test(e)?pT(e.slice(2),n?2:8):hT.test(e)?av:+e}var cv=1/0,gT=17976931348623157e292;function uv(e){if(!e)return e===0?e:0;if(e=lv(e),e===cv||e===-cv){var t=e<0?-1:1;return t*gT}return e===e?e:0}function hv(e){return e}var mT="[object AsyncFunction]",yT="[object Function]",vT="[object GeneratorFunction]",bT="[object Proxy]";function Pu(e){if(!Nn(e))return!1;var t=Mr(e);return t==yT||t==vT||t==mT||t==bT}var Su=Tn["__core-js_shared__"],fv=(function(){var e=/[^.]+$/.exec(Su&&Su.keys&&Su.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function wT(e){return!!fv&&fv in e}var _T=Function.prototype,xT=_T.toString;function Ar(e){if(e!=null){try{return xT.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var CT=/[\\^$.*+?()[\]{}|]/g,PT=/^\[object .+?Constructor\]$/,ST=Function.prototype,OT=Object.prototype,$T=ST.toString,ET=OT.hasOwnProperty,MT=RegExp("^"+$T.call(ET).replace(CT,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function AT(e){if(!Nn(e)||wT(e))return!1;var t=Pu(e)?MT:PT;return t.test(Ar(e))}function IT(e,t){return e==null?void 0:e[t]}function Ir(e,t){var n=IT(e,t);return AT(n)?n:void 0}var Ou=Ir(Tn,"WeakMap"),dv=Object.create,TT=(function(){function e(){}return function(t){if(!Nn(t))return{};if(dv)return dv(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();function RT(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function kT(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var LT=800,NT=16,zT=Date.now;function DT(e){var t=0,n=0;return function(){var r=zT(),i=NT-(r-n);if(n=r,i>0){if(++t>=LT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function qT(e){return function(){return e}}var Gs=(function(){try{var e=Ir(Object,"defineProperty");return e({},"",{}),e}catch(t){}})(),HT=Gs?function(e,t){return Gs(e,"toString",{configurable:!0,enumerable:!1,value:qT(t),writable:!0})}:hv,jT=DT(HT);function FT(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var BT=9007199254740991,WT=/^(?:0|[1-9]\d*)$/;function pv(e,t){var n=typeof e;return t=t==null?BT:t,!!t&&(n=="number"||n!="symbol"&&WT.test(e))&&e>-1&&e%1==0&&e<t}function $u(e,t,n){t=="__proto__"&&Gs?Gs(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function co(e,t){return e===t||e!==e&&t!==t}var VT=Object.prototype,GT=VT.hasOwnProperty;function gv(e,t,n){var r=e[t];(!(GT.call(e,t)&&co(r,n))||n===void 0&&!(t in e))&&$u(e,t,n)}function YT(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var a=t[o],l=void 0;l===void 0&&(l=e[a]),i?$u(n,a,l):gv(n,a,l)}return n}var mv=Math.max;function XT(e,t,n){return t=mv(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=mv(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(s),RT(e,this,a)}}function UT(e,t){return jT(XT(e,t,hv),e+"")}var KT=9007199254740991;function yv(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=KT}function Ys(e){return e!=null&&yv(e.length)&&!Pu(e)}function ZT(e,t,n){if(!Nn(n))return!1;var r=typeof t;return(r=="number"?Ys(n)&&pv(t,n.length):r=="string"&&t in n)?co(n[t],e):!1}function QT(e){return UT(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,s&&ZT(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var a=n[r];a&&e(t,a,r,o)}return t})}var JT=Object.prototype;function Eu(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||JT;return e===n}function eR(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var tR="[object Arguments]";function vv(e){return kn(e)&&Mr(e)==tR}var bv=Object.prototype,nR=bv.hasOwnProperty,rR=bv.propertyIsEnumerable,Mu=vv((function(){return arguments})())?vv:function(e){return kn(e)&&nR.call(e,"callee")&&!rR.call(e,"callee")};function iR(){return!1}var wv=typeof B=="object"&&B&&!B.nodeType&&B,_v=wv&&typeof module=="object"&&module&&!module.nodeType&&module,oR=_v&&_v.exports===wv,xv=oR?Tn.Buffer:void 0,sR=xv?xv.isBuffer:void 0,uo=sR||iR,aR="[object Arguments]",lR="[object Array]",cR="[object Boolean]",uR="[object Date]",hR="[object Error]",fR="[object Function]",dR="[object Map]",pR="[object Number]",gR="[object Object]",mR="[object RegExp]",yR="[object Set]",vR="[object String]",bR="[object WeakMap]",wR="[object ArrayBuffer]",_R="[object DataView]",xR="[object Float32Array]",CR="[object Float64Array]",PR="[object Int8Array]",SR="[object Int16Array]",OR="[object Int32Array]",$R="[object Uint8Array]",ER="[object Uint8ClampedArray]",MR="[object Uint16Array]",AR="[object Uint32Array]",mt={};mt[xR]=mt[CR]=mt[PR]=mt[SR]=mt[OR]=mt[$R]=mt[ER]=mt[MR]=mt[AR]=!0,mt[aR]=mt[lR]=mt[wR]=mt[cR]=mt[_R]=mt[uR]=mt[hR]=mt[fR]=mt[dR]=mt[pR]=mt[gR]=mt[mR]=mt[yR]=mt[vR]=mt[bR]=!1;function IR(e){return kn(e)&&yv(e.length)&&!!mt[Mr(e)]}function Au(e){return function(t){return e(t)}}var Cv=typeof B=="object"&&B&&!B.nodeType&&B,ho=Cv&&typeof module=="object"&&module&&!module.nodeType&&module,TR=ho&&ho.exports===Cv,Iu=TR&&tv.process,gi=(function(){try{var e=ho&&ho.require&&ho.require("util").types;return e||Iu&&Iu.binding&&Iu.binding("util")}catch(t){}})(),Pv=gi&&gi.isTypedArray,Tu=Pv?Au(Pv):IR,RR=Object.prototype,kR=RR.hasOwnProperty;function Sv(e,t){var n=Ln(e),r=!n&&Mu(e),i=!n&&!r&&uo(e),o=!n&&!r&&!i&&Tu(e),s=n||r||i||o,a=s?eR(e.length,String):[],l=a.length;for(var c in e)(t||kR.call(e,c))&&!(s&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||pv(c,l)))&&a.push(c);return a}function Ov(e,t){return function(n){return e(t(n))}}var LR=Ov(Object.keys,Object),NR=Object.prototype,zR=NR.hasOwnProperty;function DR(e){if(!Eu(e))return LR(e);var t=[];for(var n in Object(e))zR.call(e,n)&&n!="constructor"&&t.push(n);return t}function qR(e){return Ys(e)?Sv(e):DR(e)}function HR(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var jR=Object.prototype,FR=jR.hasOwnProperty;function BR(e){if(!Nn(e))return HR(e);var t=Eu(e),n=[];for(var r in e)r=="constructor"&&(t||!FR.call(e,r))||n.push(r);return n}function $v(e){return Ys(e)?Sv(e,!0):BR(e)}var WR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,VR=/^\w*$/;function GR(e,t){if(Ln(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Vs(e)?!0:VR.test(e)||!WR.test(e)||t!=null&&e in Object(t)}var fo=Ir(Object,"create");function YR(){this.__data__=fo?fo(null):{},this.size=0}function XR(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var UR="__lodash_hash_undefined__",KR=Object.prototype,ZR=KR.hasOwnProperty;function QR(e){var t=this.__data__;if(fo){var n=t[e];return n===UR?void 0:n}return ZR.call(t,e)?t[e]:void 0}var JR=Object.prototype,ek=JR.hasOwnProperty;function tk(e){var t=this.__data__;return fo?t[e]!==void 0:ek.call(t,e)}var nk="__lodash_hash_undefined__";function rk(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=fo&&t===void 0?nk:t,this}function Tr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Tr.prototype.clear=YR,Tr.prototype.delete=XR,Tr.prototype.get=QR,Tr.prototype.has=tk,Tr.prototype.set=rk;function ik(){this.__data__=[],this.size=0}function Xs(e,t){for(var n=e.length;n--;)if(co(e[n][0],t))return n;return-1}var ok=Array.prototype,sk=ok.splice;function ak(e){var t=this.__data__,n=Xs(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():sk.call(t,n,1),--this.size,!0}function lk(e){var t=this.__data__,n=Xs(t,e);return n<0?void 0:t[n][1]}function ck(e){return Xs(this.__data__,e)>-1}function uk(e,t){var n=this.__data__,r=Xs(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Kn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Kn.prototype.clear=ik,Kn.prototype.delete=ak,Kn.prototype.get=lk,Kn.prototype.has=ck,Kn.prototype.set=uk;var po=Ir(Tn,"Map");function hk(){this.size=0,this.__data__={hash:new Tr,map:new(po||Kn),string:new Tr}}function fk(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Us(e,t){var n=e.__data__;return fk(t)?n[typeof t=="string"?"string":"hash"]:n.map}function dk(e){var t=Us(this,e).delete(e);return this.size-=t?1:0,t}function pk(e){return Us(this,e).get(e)}function gk(e){return Us(this,e).has(e)}function mk(e,t){var n=Us(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Zn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Zn.prototype.clear=hk,Zn.prototype.delete=dk,Zn.prototype.get=pk,Zn.prototype.has=gk,Zn.prototype.set=mk;var yk="Expected a function";function Ru(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(yk);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Ru.Cache||Zn),n}Ru.Cache=Zn;var vk=500;function bk(e){var t=Ru(e,function(r){return n.size===vk&&n.clear(),r}),n=t.cache;return t}var wk=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_k=/\\(\\)?/g,xk=bk(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(wk,function(n,r,i,o){t.push(i?o.replace(_k,"$1"):r||n)}),t});function go(e){return e==null?"":sv(e)}function Ck(e,t){return Ln(e)?e:GR(e,t)?[e]:xk(go(e))}function Pk(e){if(typeof e=="string"||Vs(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Sk(e,t){t=Ck(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Pk(t[n++])];return n&&n==r?e:void 0}function Ks(e,t,n){var r=e==null?void 0:Sk(e,t);return r===void 0?n:r}function Ok(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Ev=Ov(Object.getPrototypeOf,Object),$k="[object Object]",Ek=Function.prototype,Mk=Object.prototype,Mv=Ek.toString,Ak=Mk.hasOwnProperty,Ik=Mv.call(Object);function ku(e){if(!kn(e)||Mr(e)!=$k)return!1;var t=Ev(e);if(t===null)return!0;var n=Ak.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Mv.call(n)==Ik}function Tk(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}function Rk(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Tk(e,t,n)}var kk="\\ud800-\\udfff",Lk="\\u0300-\\u036f",Nk="\\ufe20-\\ufe2f",zk="\\u20d0-\\u20ff",Dk=Lk+Nk+zk,qk="\\ufe0e\\ufe0f",Hk="\\u200d",jk=RegExp("["+Hk+kk+Dk+qk+"]");function Av(e){return jk.test(e)}function Fk(e){return e.split("")}var Iv="\\ud800-\\udfff",Bk="\\u0300-\\u036f",Wk="\\ufe20-\\ufe2f",Vk="\\u20d0-\\u20ff",Gk=Bk+Wk+Vk,Yk="\\ufe0e\\ufe0f",Xk="["+Iv+"]",Lu="["+Gk+"]",Nu="\\ud83c[\\udffb-\\udfff]",Uk="(?:"+Lu+"|"+Nu+")",Tv="[^"+Iv+"]",Rv="(?:\\ud83c[\\udde6-\\uddff]){2}",kv="[\\ud800-\\udbff][\\udc00-\\udfff]",Kk="\\u200d",Lv=Uk+"?",Nv="["+Yk+"]?",Zk="(?:"+Kk+"(?:"+[Tv,Rv,kv].join("|")+")"+Nv+Lv+")*",Qk=Nv+Lv+Zk,Jk="(?:"+[Tv+Lu+"?",Lu,Rv,kv,Xk].join("|")+")",eL=RegExp(Nu+"(?="+Nu+")|"+Jk+Qk,"g");function tL(e){return e.match(eL)||[]}function nL(e){return Av(e)?tL(e):Fk(e)}function rL(e){return function(t){t=go(t);var n=Av(t)?nL(t):void 0,r=n?n[0]:t.charAt(0),i=n?Rk(n,1).join(""):t.slice(1);return r[e]()+i}}var iL=rL("toUpperCase");function oL(e){return iL(go(e).toLowerCase())}function sL(e,t,n,r){for(var i=-1,o=e==null?0:e.length;++i<o;)n=t(n,e[i],i,e);return n}function aL(e){return function(t){return e==null?void 0:e[t]}}var lL={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},cL=aL(lL),uL=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,hL="\\u0300-\\u036f",fL="\\ufe20-\\ufe2f",dL="\\u20d0-\\u20ff",pL=hL+fL+dL,gL="["+pL+"]",mL=RegExp(gL,"g");function yL(e){return e=go(e),e&&e.replace(uL,cL).replace(mL,"")}var vL=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function bL(e){return e.match(vL)||[]}var wL=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function _L(e){return wL.test(e)}var zv="\\ud800-\\udfff",xL="\\u0300-\\u036f",CL="\\ufe20-\\ufe2f",PL="\\u20d0-\\u20ff",SL=xL+CL+PL,Dv="\\u2700-\\u27bf",qv="a-z\\xdf-\\xf6\\xf8-\\xff",OL="\\xac\\xb1\\xd7\\xf7",$L="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",EL="\\u2000-\\u206f",ML=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Hv="A-Z\\xc0-\\xd6\\xd8-\\xde",AL="\\ufe0e\\ufe0f",jv=OL+$L+EL+ML,Fv="['’]",Bv="["+jv+"]",IL="["+SL+"]",Wv="\\d+",TL="["+Dv+"]",Vv="["+qv+"]",Gv="[^"+zv+jv+Wv+Dv+qv+Hv+"]",RL="\\ud83c[\\udffb-\\udfff]",kL="(?:"+IL+"|"+RL+")",LL="[^"+zv+"]",Yv="(?:\\ud83c[\\udde6-\\uddff]){2}",Xv="[\\ud800-\\udbff][\\udc00-\\udfff]",mi="["+Hv+"]",NL="\\u200d",Uv="(?:"+Vv+"|"+Gv+")",zL="(?:"+mi+"|"+Gv+")",Kv="(?:"+Fv+"(?:d|ll|m|re|s|t|ve))?",Zv="(?:"+Fv+"(?:D|LL|M|RE|S|T|VE))?",Qv=kL+"?",Jv="["+AL+"]?",DL="(?:"+NL+"(?:"+[LL,Yv,Xv].join("|")+")"+Jv+Qv+")*",qL="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",HL="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",jL=Jv+Qv+DL,FL="(?:"+[TL,Yv,Xv].join("|")+")"+jL,BL=RegExp([mi+"?"+Vv+"+"+Kv+"(?="+[Bv,mi,"$"].join("|")+")",zL+"+"+Zv+"(?="+[Bv,mi+Uv,"$"].join("|")+")",mi+"?"+Uv+"+"+Kv,mi+"+"+Zv,HL,qL,Wv,FL].join("|"),"g");function WL(e){return e.match(BL)||[]}function VL(e,t,n){return e=go(e),t=t,t===void 0?_L(e)?WL(e):bL(e):e.match(t)||[]}var GL="['’]",YL=RegExp(GL,"g");function eb(e){return function(t){return sL(VL(yL(t).replace(YL,"")),e,"")}}var XL=eb(function(e,t,n){return t=t.toLowerCase(),e+(n?oL(t):t)});function UL(){this.__data__=new Kn,this.size=0}function KL(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function ZL(e){return this.__data__.get(e)}function QL(e){return this.__data__.has(e)}var JL=200;function eN(e,t){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!po||r.length<JL-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Zn(r)}return n.set(e,t),this.size=n.size,this}function zn(e){var t=this.__data__=new Kn(e);this.size=t.size}zn.prototype.clear=UL,zn.prototype.delete=KL,zn.prototype.get=ZL,zn.prototype.has=QL,zn.prototype.set=eN;var tb=typeof B=="object"&&B&&!B.nodeType&&B,nb=tb&&typeof module=="object"&&module&&!module.nodeType&&module,tN=nb&&nb.exports===tb,rb=tN?Tn.Buffer:void 0,ib=rb?rb.allocUnsafe:void 0;function ob(e,t){if(t)return e.slice();var n=e.length,r=ib?ib(n):new e.constructor(n);return e.copy(r),r}function nN(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function rN(){return[]}var iN=Object.prototype,oN=iN.propertyIsEnumerable,sb=Object.getOwnPropertySymbols,sN=sb?function(e){return e==null?[]:(e=Object(e),nN(sb(e),function(t){return oN.call(e,t)}))}:rN;function aN(e,t,n){var r=t(e);return Ln(e)?r:Ok(r,n(e))}function zu(e){return aN(e,qR,sN)}var Du=Ir(Tn,"DataView"),qu=Ir(Tn,"Promise"),Hu=Ir(Tn,"Set"),ab="[object Map]",lN="[object Object]",lb="[object Promise]",cb="[object Set]",ub="[object WeakMap]",hb="[object DataView]",cN=Ar(Du),uN=Ar(po),hN=Ar(qu),fN=Ar(Hu),dN=Ar(Ou),gn=Mr;(Du&&gn(new Du(new ArrayBuffer(1)))!=hb||po&&gn(new po)!=ab||qu&&gn(qu.resolve())!=lb||Hu&&gn(new Hu)!=cb||Ou&&gn(new Ou)!=ub)&&(gn=function(e){var t=Mr(e),n=t==lN?e.constructor:void 0,r=n?Ar(n):"";if(r)switch(r){case cN:return hb;case uN:return ab;case hN:return lb;case fN:return cb;case dN:return ub}return t});var pN=Object.prototype,gN=pN.hasOwnProperty;function mN(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&gN.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Zs=Tn.Uint8Array;function ju(e){var t=new e.constructor(e.byteLength);return new Zs(t).set(new Zs(e)),t}function yN(e,t){var n=ju(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var vN=/\w*$/;function bN(e){var t=new e.constructor(e.source,vN.exec(e));return t.lastIndex=e.lastIndex,t}var fb=Rn?Rn.prototype:void 0,db=fb?fb.valueOf:void 0;function wN(e){return db?Object(db.call(e)):{}}function pb(e,t){var n=t?ju(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var _N="[object Boolean]",xN="[object Date]",CN="[object Map]",PN="[object Number]",SN="[object RegExp]",ON="[object Set]",$N="[object String]",EN="[object Symbol]",MN="[object ArrayBuffer]",AN="[object DataView]",IN="[object Float32Array]",TN="[object Float64Array]",RN="[object Int8Array]",kN="[object Int16Array]",LN="[object Int32Array]",NN="[object Uint8Array]",zN="[object Uint8ClampedArray]",DN="[object Uint16Array]",qN="[object Uint32Array]";function HN(e,t,n){var r=e.constructor;switch(t){case MN:return ju(e);case _N:case xN:return new r(+e);case AN:return yN(e);case IN:case TN:case RN:case kN:case LN:case NN:case zN:case DN:case qN:return pb(e,n);case CN:return new r;case PN:case $N:return new r(e);case SN:return bN(e);case ON:return new r;case EN:return wN(e)}}function gb(e){return typeof e.constructor=="function"&&!Eu(e)?TT(Ev(e)):{}}var jN="[object Map]";function FN(e){return kn(e)&&gn(e)==jN}var mb=gi&&gi.isMap,BN=mb?Au(mb):FN,WN="[object Set]";function VN(e){return kn(e)&&gn(e)==WN}var yb=gi&&gi.isSet,GN=yb?Au(yb):VN,YN=1,vb="[object Arguments]",XN="[object Array]",UN="[object Boolean]",KN="[object Date]",ZN="[object Error]",bb="[object Function]",QN="[object GeneratorFunction]",JN="[object Map]",ez="[object Number]",wb="[object Object]",tz="[object RegExp]",nz="[object Set]",rz="[object String]",iz="[object Symbol]",oz="[object WeakMap]",sz="[object ArrayBuffer]",az="[object DataView]",lz="[object Float32Array]",cz="[object Float64Array]",uz="[object Int8Array]",hz="[object Int16Array]",fz="[object Int32Array]",dz="[object Uint8Array]",pz="[object Uint8ClampedArray]",gz="[object Uint16Array]",mz="[object Uint32Array]",ft={};ft[vb]=ft[XN]=ft[sz]=ft[az]=ft[UN]=ft[KN]=ft[lz]=ft[cz]=ft[uz]=ft[hz]=ft[fz]=ft[JN]=ft[ez]=ft[wb]=ft[tz]=ft[nz]=ft[rz]=ft[iz]=ft[dz]=ft[pz]=ft[gz]=ft[mz]=!0,ft[ZN]=ft[bb]=ft[oz]=!1;function Qs(e,t,n,r,i,o){var s,a=t&YN;if(s!==void 0)return s;if(!Nn(e))return e;var l=Ln(e);if(l)s=mN(e);else{var c=gn(e),u=c==bb||c==QN;if(uo(e))return ob(e,a);if(c==wb||c==vb||u&&!i)s=u?{}:gb(e);else{if(!ft[c])return i?e:{};s=HN(e,c,a)}}o||(o=new zn);var h=o.get(e);if(h)return h;o.set(e,s),GN(e)?e.forEach(function(p){s.add(Qs(p,t,n,p,e,o))}):BN(e)&&e.forEach(function(p,g){s.set(g,Qs(p,t,n,g,e,o))});var f=zu,d=l?void 0:f(e);return FT(d||e,function(p,g){d&&(g=p,p=e[g]),gv(s,g,Qs(p,t,n,g,e,o))}),s}var yz=1,vz=4;function Fu(e){return Qs(e,yz|vz)}var bz="__lodash_hash_undefined__";function wz(e){return this.__data__.set(e,bz),this}function _z(e){return this.__data__.has(e)}function Js(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Zn;++t<n;)this.add(e[t])}Js.prototype.add=Js.prototype.push=wz,Js.prototype.has=_z;function xz(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Cz(e,t){return e.has(t)}var Pz=1,Sz=2;function _b(e,t,n,r,i,o){var s=n&Pz,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var h=-1,f=!0,d=n&Sz?new Js:void 0;for(o.set(e,t),o.set(t,e);++h<a;){var p=e[h],g=t[h];if(r)var m=s?r(g,p,h,t,e,o):r(p,g,h,e,t,o);if(m!==void 0){if(m)continue;f=!1;break}if(d){if(!xz(t,function(v,b){if(!Cz(d,b)&&(p===v||i(p,v,n,r,o)))return d.push(b)})){f=!1;break}}else if(!(p===g||i(p,g,n,r,o))){f=!1;break}}return o.delete(e),o.delete(t),f}function Oz(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function $z(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Ez=1,Mz=2,Az="[object Boolean]",Iz="[object Date]",Tz="[object Error]",Rz="[object Map]",kz="[object Number]",Lz="[object RegExp]",Nz="[object Set]",zz="[object String]",Dz="[object Symbol]",qz="[object ArrayBuffer]",Hz="[object DataView]",xb=Rn?Rn.prototype:void 0,Bu=xb?xb.valueOf:void 0;function jz(e,t,n,r,i,o,s){switch(n){case Hz:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case qz:return!(e.byteLength!=t.byteLength||!o(new Zs(e),new Zs(t)));case Az:case Iz:case kz:return co(+e,+t);case Tz:return e.name==t.name&&e.message==t.message;case Lz:case zz:return e==t+"";case Rz:var a=Oz;case Nz:var l=r&Ez;if(a||(a=$z),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=Mz,s.set(e,t);var u=_b(a(e),a(t),r,i,o,s);return s.delete(e),u;case Dz:if(Bu)return Bu.call(e)==Bu.call(t)}return!1}var Fz=1,Bz=Object.prototype,Wz=Bz.hasOwnProperty;function Vz(e,t,n,r,i,o){var s=n&Fz,a=zu(e),l=a.length,c=zu(t),u=c.length;if(l!=u&&!s)return!1;for(var h=l;h--;){var f=a[h];if(!(s?f in t:Wz.call(t,f)))return!1}var d=o.get(e),p=o.get(t);if(d&&p)return d==t&&p==e;var g=!0;o.set(e,t),o.set(t,e);for(var m=s;++h<l;){f=a[h];var v=e[f],b=t[f];if(r)var w=s?r(b,v,f,t,e,o):r(v,b,f,e,t,o);if(!(w===void 0?v===b||i(v,b,n,r,o):w)){g=!1;break}m||(m=f=="constructor")}if(g&&!m){var x=e.constructor,_=t.constructor;x!=_&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof _=="function"&&_ instanceof _)&&(g=!1)}return o.delete(e),o.delete(t),g}var Gz=1,Cb="[object Arguments]",Pb="[object Array]",ea="[object Object]",Yz=Object.prototype,Sb=Yz.hasOwnProperty;function Xz(e,t,n,r,i,o){var s=Ln(e),a=Ln(t),l=s?Pb:gn(e),c=a?Pb:gn(t);l=l==Cb?ea:l,c=c==Cb?ea:c;var u=l==ea,h=c==ea,f=l==c;if(f&&uo(e)){if(!uo(t))return!1;s=!0,u=!1}if(f&&!u)return o||(o=new zn),s||Tu(e)?_b(e,t,n,r,i,o):jz(e,t,l,n,r,i,o);if(!(n&Gz)){var d=u&&Sb.call(e,"__wrapped__"),p=h&&Sb.call(t,"__wrapped__");if(d||p){var g=d?e.value():e,m=p?t.value():t;return o||(o=new zn),i(g,m,n,r,o)}}return f?(o||(o=new zn),Vz(e,t,n,r,i,o)):!1}function Ob(e,t,n,r,i){return e===t?!0:e==null||t==null||!kn(e)&&!kn(t)?e!==e&&t!==t:Xz(e,t,n,r,Ob,i)}function Uz(e){return function(t,n,r){for(var i=-1,o=Object(t),s=r(t),a=s.length;a--;){var l=s[++i];if(n(o[l],l,o)===!1)break}return t}}var Kz=Uz();function Wu(e,t,n){(n!==void 0&&!co(e[t],n)||n===void 0&&!(t in e))&&$u(e,t,n)}function Zz(e){return kn(e)&&Ys(e)}function Vu(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Qz(e){return YT(e,$v(e))}function Jz(e,t,n,r,i,o,s){var a=Vu(e,n),l=Vu(t,n),c=s.get(l);if(c){Wu(e,n,c);return}var u=o?o(a,l,n+"",e,t,s):void 0,h=u===void 0;if(h){var f=Ln(l),d=!f&&uo(l),p=!f&&!d&&Tu(l);u=l,f||d||p?Ln(a)?u=a:Zz(a)?u=kT(a):d?(h=!1,u=ob(l,!0)):p?(h=!1,u=pb(l,!0)):u=[]:ku(l)||Mu(l)?(u=a,Mu(a)?u=Qz(a):(!Nn(a)||Pu(a))&&(u=gb(l))):h=!1}h&&(s.set(l,u),i(u,l,r,o,s),s.delete(l)),Wu(e,n,u)}function $b(e,t,n,r,i){e!==t&&Kz(t,function(o,s){if(i||(i=new zn),Nn(o))Jz(e,t,s,n,$b,r,i);else{var a=r?r(Vu(e,s),o,s+"",e,t,i):void 0;a===void 0&&(a=o),Wu(e,s,a)}},$v)}var eD=Math.max,tD=Math.min;function nD(e,t,n){return e>=tD(t,n)&&e<eD(t,n)}function Eb(e,t,n){return t=uv(t),n===void 0?(n=t,t=0):n=uv(n),e=lv(e),nD(e,t,n)}function rD(e,t){return Ob(e,t)}var iD=eb(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Mb=QT(function(e,t,n){$b(e,t,n)});function mo(e,t){if(t.length===0)return{};const n=Array.isArray(e)?e[t[0]]:e.items[t[0]];if(t.length===1)return n;const r=t.slice(1).map(i=>`children[${i}]`).join(".");return Ks(n,r)}function Ab(e){const{structure:t,item:n,items:r}=e;return!(!t||!n||r.some(i=>!i))}const oD=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","-apple-system","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong"]);function Rr(e){const t=[];let n="",r=null;const i=()=>{const o=n.trim();o&&t.push(o),n=""};for(let o=0;o<e.length;o+=1){const s=e[o];if(r){n+=s,s===r&&(r=null);continue}if(s==='"'||s==="'"){r=s,n+=s;continue}if(s===","){i();continue}n+=s}return i(),t}function Ib(e){const t=e.trim();return t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'")?t.slice(1,-1):t}function sD(e){const t=e.trim();return t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'")}function aD(e){return/^\d/.test(e)||/\s/.test(e)}function lD(e){const t=e.trim();if(!t||sD(t)||oD.has(t.toLowerCase())||!aD(t))return t;const n=t.includes('"')&&!t.includes("'")?"'":'"';return`${n}${t}${n}`}function yi(e){const t=Rr(e);return t.length?t.length===1?Ib(t[0]):t.map(n=>Ib(n)).join(", "):""}function kr(e){const t=Rr(e);return t.length?t.map(n=>lD(n)).join(", "):e.trim()}const cD={100:"thin",hairline:"thin",thin:"thin",200:"extralight",ultralight:"extralight",extralight:"extralight",300:"light",light:"light",400:"regular",normal:"regular",regular:"regular",500:"medium",medium:"medium",600:"semibold",demibold:"semibold",semibold:"semibold",700:"bold",bold:"bold",800:"extrabold",ultrabold:"extrabold",extrabold:"extrabold",900:"black",heavy:"black",black:"black",950:"extrablack",ultrablack:"extrablack",extrablack:"extrablack"};function Tb(e){const t=String(e).toLowerCase();return cD[t]||"regular"}const yo=new Map,Gu=new Map;let uD="sans-serif";function hD(e){return yo.has(e)?e:Gu.get(e)||e}const fD={fontFamily:"sans-serif",fontWeight:400,fontStyle:"normal",unitsPerEm:2048,metrics:{ascender:2189,descender:-555,lineGap:0},glyphs:{'"':727,"%":1821,"'":391,"(":682,")":682,"*":797,"+":1196,"-":682,"<":1196,"=":1196,">":1196,"@":2079,C:1479,D:1479,F:1251,G:1593,H:1479,J:1024,M:1706,N:1479,O:1593,Q:1593,R:1479,T:1251,U:1479,W:1933,Z:1251,"^":961,_:1024,"`":682,c:1024,i:455,j:455,k:1024,l:455,m:1706,r:682,s:1024,v:1024,w:1479,x:1024,y:1024,z:1024,"{":684,"|":532,"}":684,"~":1196},glyphsByWidth:{569:" !,./:;I[\\]ft",1139:"#$0123456789?Labdeghnopqu",1366:"&ABEKPSVXY"},defaultWidth:1139};function Rb(e){if(e===void 0||e==="normal")return"400";if(e==="bold")return"700";const t={thin:"100",hairline:"100","extra-light":"200","ultra-light":"200",light:"300",regular:"400",normal:"400",medium:"500","semi-bold":"600",semibold:"600","demi-bold":"600",demibold:"600","extra-bold":"800",extrabold:"800","ultra-bold":"800",ultrabold:"800",black:"900",heavy:"900","extra-black":"950",extrablack:"950","ultra-black":"950",ultrablack:"950",bolder:"900",lighter:"300"};if(typeof e=="string"){const n=e.toLowerCase();return t[n]||e}return String(e)}function kb(e){return e||"normal"}function dD(e){const t=e.fontFamily,n=Rb(e.fontWeight),r=kb(e.fontStyle);if(e.aliases)for(const s of e.aliases)Gu.has(s)||Gu.set(s,t);if(e.glyphsByWidth){const s=ut({},e.glyphs||{});for(const[a,l]of Object.entries(e.glyphsByWidth))if(typeof l=="string"){const c=Number(a);for(const u of l)s[u]=c}else s[a]=l;e=Dt(ut({},e),{glyphs:s,glyphsByWidth:void 0})}yo.has(t)||yo.set(t,new Map);const i=yo.get(t);i.has(n)||i.set(n,new Map),i.get(n).set(r,e)}function pD(e,t,n){const r=hD(e||uD),i=Rb(t),o=kb(n),s=yo.get(r);if(!s)return console.warn(`Font family "${r}" not registered, using fallback font data`),fD;let a=s.get(i);if(a){let c=a.get(o);if(c||o!=="normal"&&(c=a.get("normal"),c))return c;const u=a.values().next().value;if(u)return u}if(a=s.get("400"),a){let c=a.get(o);if(c||o!=="normal"&&(c=a.get("normal"),c))return c;const u=a.values().next().value;if(u)return u}const l=s.values().next().value;if(l){const c=l.values().next().value;if(c)return c}throw new Error(`No font data found for family "${r}" with weight "${i}" and style "${o}"`)}function gD(e,t){if(!t||t==="none")return e;switch(t){case"uppercase":return e.toUpperCase();case"lowercase":return e.toLowerCase();case"capitalize":return e.split(" ").map(n=>n.length===0?n:n[0].toUpperCase()+n.slice(1).toLowerCase()).join(" ");default:return e}}function Lb(e){if(e===void 0)return 14;if(typeof e=="number")return e;const t=parseFloat(e);return isNaN(t)?16:t}function mD(e,t){const n=Lb(e.fontSize),r=e.lineHeight;if(r===void 0){const{ascender:i,descender:o,lineGap:s=0}=t.metrics;return(i-o+s)/t.unitsPerEm*n}return typeof r=="number"?r*n:r.type==="pixel"?r.value:r.type==="percent"?r.value/100*n:n}function yD(e,t={}){var f;const n=gD(e,t.textTransform),r=pD(t.fontFamily,t.fontWeight,t.fontStyle),i=Lb(t.fontSize),o=t.letterSpacing||0,s=t.wordSpacing||0;let a=0;const l=Array.from(n);for(let d=0;d<l.length;d++){const p=l[d],g=d<l.length-1?l[d+1]:void 0;let m=(f=r.glyphs)==null?void 0:f[p];m===void 0&&(m=r.defaultWidth||r.unitsPerEm/2);const v=m/r.unitsPerEm*i;if(a+=v,g&&r.kerning){const b=p+g,w=r.kerning[b];w!==void 0&&(a+=w/r.unitsPerEm*i)}d<l.length-1&&(a+=o),p===" "&&(a+=s)}const c=mD(t,r),{ascender:u}=r.metrics,h=u/r.unitsPerEm*i;return{width:a,height:c,baseline:h}}const vD={fontFamily:"Alibaba PuHuiTi",aliases:["AlibabaPuHuiTi","AlibabaPuHuiTi-Regular"],fontWeight:400,fontStyle:"normal",unitsPerEm:1e3,metrics:{ascender:1060,descender:-340,lineGap:0},glyphs:{" ":257,"!":361,'"':405,"#":600,"%":821,"&":640,"'":253,"(":359,")":359,"*":430,",":302,"-":440,".":302,"/":500,":":378,";":378,"?":431,"@":860,B:620,C:599,D:699,F:527,G:685,H:708,J:271,K:614,L:507,M:830,N:737,P:597,R:614,S:566,T:528,V:617,W:898,X:624,Y:594,Z:626,"[":294,"\\":510,"]":294,_:500,"`":346,b:635,c:497,d:635,f:349,g:636,k:518,l:286,m:921,p:635,q:636,r:379,s:479,t:337,v:526,w:828,x:516,y:527,z:506,"{":299,"|":183,"}":299," ":257,"¡":357,"¦":183,"§":479,"¨":346,"©":806,ª:483,"«":511,"­":440,"®":404,"¯":346,"°":363,"´":346,"¶":593,"·":357,"¸":346,º:445,"»":511,"¼":902,"½":914,"¾":902,"¿":431,Æ:889,Ç:599,Ð:719,Ñ:737,Ý:594,Þ:597,ß:610,æ:926,ç:497,ý:527,þ:635,ÿ:527,Ć:599,ć:497,Ĉ:599,ĉ:497,Ċ:599,ċ:497,Č:599,č:497,Ď:699,ď:640,Đ:719,đ:635,Ĝ:685,ĝ:636,Ğ:685,ğ:636,Ġ:685,ġ:636,Ģ:685,ģ:636,Ĥ:708,Ħ:708,IJ:545,ij:536,Ĵ:271,Ķ:614,ķ:518,ĸ:518,Ĺ:507,ĺ:286,Ļ:507,ļ:286,Ľ:507,ľ:290,Ŀ:507,ŀ:291,Ł:507,ł:286,Ń:737,Ņ:737,Ň:737,ʼn:669,Ŋ:737,Œ:987,œ:917,Ŕ:614,ŕ:379,Ŗ:614,ŗ:379,Ř:614,ř:379,Ś:566,ś:479,Ŝ:566,ŝ:479,Ş:566,ş:479,Š:566,š:479,Ţ:528,ţ:337,Ť:528,ť:340,Ŧ:528,ŧ:337,Ŵ:898,ŵ:828,Ŷ:594,ŷ:527,Ÿ:594,Ź:626,ź:506,Ż:626,ż:506,Ž:626,ž:506,ſ:310,Ə:719,ǎ:608,ǐ:265,ǒ:614,ǔ:609,ǖ:609,ǘ:609,ǚ:609,ǜ:609,Ǽ:889,ǽ:926,Ș:566,ș:479,Ț:528,ț:337,"ʹ":255,"͵":255,";":378,"΄":346,"΅":346,Ά:670,"·":357,Έ:628,Ή:779,Ί:346,Ό:765,Ύ:726,Ώ:765,ΐ:312,Β:620,Γ:507,Ζ:626,Η:708,Κ:614,Λ:617,Μ:830,Ν:737,Π:708,Ρ:597,Σ:596,Τ:528,Υ:594,Φ:831,Χ:624,Ψ:804,Ϋ:594,έ:509,ή:643,ί:312,ΰ:593,β:610,γ:526,ε:509,ζ:465,η:643,θ:638,ι:312,κ:518,λ:514,ν:526,ξ:465,π:616,ρ:619,ς:497,σ:639,τ:437,υ:593,φ:774,χ:509,ψ:745,ω:782,ϊ:312,ϋ:593,ύ:593,ώ:782,"‐":440,"‑":440,"–":495,"—":684,"―":684,"‗":500,"‘":270,"’":270,"‚":270,"‛":270,"“":784,"”":784,"„":468,"†":500,"‡":500,"•":308,"…":1085,"‰":1174,"′":256,"″":472,"‴":689,"‵":256,"‶":472,"‷":689,"‹":312,"›":312,"‼":589,"‽":433,"‾":500,"⁄":120,"⁺":407,"⁻":407,"⁼":407,"⁽":225,"⁾":225,ⁿ:486,"₊":407,"₋":407,"₌":407,"₍":225,"₎":225,"ₙ":486,"₡":599,"₣":527,"₤":600,"₥":921,"₦":625,"₨":1093,"₩":769,"₪":754,"₫":635,"₭":614,"₮":528,"₯":1288,"₰":950,"₲":685,"₴":576,"₵":599,"₶":576,"₷":700,"₸":528,"₻":750,"₼":683,"₾":577,"₿":620,"℃":915,"℅":825,"℉":868,ℓ:385,"№":1176,"℗":806,"℡":1022,"™":903,"℮":903,"⅛":930,"⅜":931,"⅝":931,"⅞":871,"Ⅶ":1166,"∂":587,"∈":663,"∏":708,"∑":596,"√":604,"∞":679,"∧":617,"∫":531,"∮":654,"≈":600,"≒":662,"◊":600," ":0,"〞":472},glyphsByWidth:{268:"ijìíîïĩīĭįıĵȷ",274:"IÌÍÎÏĨĪĬĮİΙΪ",406:"²³¹⁰⁴⁵⁶⁷⁸⁹₀₁₂₃₄₅₆₇₈₉",552:"+<=>^~¬±×÷−∕∙≠≤≥≦≧≮≯",556:"EÈÉÊËĒĔĖĘĚΕΞ",575:"$0123456789¢£¤¥ƒ₢₧€₱₹₺₽",578:"eèéêëēĕėęě",612:"aàáâãäåāăąǻ",613:"uµùúûüũūŭůűųάαμ∨",618:"hnoðñòóôõöøĥħńņňŋōŏőǿδοό",667:"AÀÁÂÃÄÅĀĂĄǺΑΔ₳∆",701:"UÙÚÛÜŨŪŬŮŰŲ",743:"OQÒÓÔÕÖØŌŎŐǾΘΟΩΩ",1e3:"─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱╲╳▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▓▔▕■□▲△▼▽◆◇○◎●◢◣◤◥★☆☉♀♂〾"},defaultWidth:984,kerning:{'""':-56,"\"'":-57,'",':-179,'".':-179,"'\"":-56,"''":-57,"',":-179,"'.":-179,"(j":60,',"':-160,",'":-160,",1":-140,",7":-41,",9":-39,'."':-160,".'":-160,".1":-140,".7":-41,".9":-39,"//":-120,"1,":-99,"1.":-99,"1:":-99,"1;":-99,"7,":-160,"7.":-160,"7:":-99,"7;":-99,":1":-79,":7":-59,";1":-79,";7":-59,'A"':-100,"A'":-100,AC:-20,AG:-20,AO:-20,AQ:-20,AT:-80,AU:-10,AV:-70,AW:-39,AY:-81,Af:-20,Al:-10,At:-20,Av:-20,Ay:-20,BC:-10,BG:-10,BO:-10,BQ:-10,BT:-40,BV:-20,BX:-20,BY:-21,"D,":-59,"D.":-59,DA:-20,DT:-36,DV:-30,DW:-19,DX:-20,DY:-40,DZ:-20,Da:-39,Ej:19,"F,":-159,"F.":-159,FA:-40,Fa:-59,Fh:1,Fk:1,GV:-11,GY:-21,JJ:7,KA:-19,KC:-20,KG:-20,KO:-20,KQ:-20,KT:-19,KU:-39,KV:-39,KW:-39,KY:-40,Kc:-39,Kd:-39,Ke:-39,Kg:-39,Kl:-39,Ko:-39,Kq:-39,Ks:-19,Kt:-10,Ku:-40,Kv:-60,Kw:-40,Ky:-60,'L"':-99,"L'":-99,LA:20,LC:-59,LG:-59,LO:-59,LQ:-59,LT:-79,LU:-19,LV:-79,LW:-39,LY:-100,Lv:-41,Lw:-21,Ly:-41,"O,":-59,"O.":-59,OA:-20,OT:-36,OV:-30,OW:-19,OX:-20,OY:-40,OZ:-20,Oa:-39,"P,":-199,"P.":-199,PA:-60,PT:-29,PV:-10,PW:-10,PX:-50,PY:-20,PZ:-39,Pa:-60,"Q,":-59,"Q.":-59,QA:-20,QJ:7,QT:-36,QV:-30,QW:-19,QX:-20,QY:-40,QZ:-20,Qa:-39,RC:-15,RG:-15,RO:-15,RQ:-15,RT:-40,RU:-10,RV:-21,RW:-10,RX:-29,RY:-41,Rc:-20,Rd:-20,Re:-20,Rg:-20,Ro:-20,Rq:-20,Rt:-20,Ru:-10,Rv:-10,Rx:20,Ry:-10,"S,":-20,"S.":-20,SS:-1,ST:-1,SV:-21,SW:-10,SY:-21,St:-1,Sv:-20,Sw:-10,Sx:-1,Sy:-20,'T"':2,"T'":2,"T,":-154,"T.":-154,TA:-80,TC:-20,TG:-20,TO:-20,TQ:-20,TS:-1,Ta:-80,Tc:-59,Td:-59,Te:-59,Tg:-59,Ti:-20,Tj:-19,Tm:-59,Tn:-59,To:-59,Tp:-58,Tq:-59,Tr:-59,Ts:-60,Tt:20,Tu:-79,Tv:-39,Tw:-19,Tx:-39,Ty:-39,Tz:-59,UA:-10,UX:-19,Ux:-1,"V,":-140,"V.":-140,"V:":-41,"V;":-41,VA:-70,VC:-30,VG:-30,VO:-30,VQ:-30,VS:-10,Va:-41,Vc:-21,Vd:-21,Ve:-21,Vg:-21,Vh:1,Vk:1,Vo:-21,Vq:-21,Vs:-21,Vv:-1,Vy:-1,"W,":-79,"W.":-79,"W:":-39,"W;":-39,WA:-40,WC:-19,WG:-19,WO:-19,WQ:-19,Wa:-40,Wc:-20,Wd:-20,We:-20,Wg:-20,Wo:-20,Wq:-20,Ws:-20,XA:-19,XC:-20,XG:-20,XO:-20,XQ:-20,XT:-19,XU:-39,XV:-39,XW:-39,XY:-40,Xc:-39,Xd:-39,Xe:-39,Xg:-39,Xl:-39,Xo:-39,Xq:-39,Xs:-19,Xt:-10,Xu:-40,Xv:-60,Xw:-40,Xy:-60,'Y"':1,"Y'":1,"Y,":-141,"Y.":-141,"Y:":-60,"Y;":-60,YA:-81,YC:-40,YG:-40,YO:-40,YQ:-40,YS:-1,Ya:-101,Yc:-60,Yd:-60,Ye:-60,Yf:-1,Yg:-60,Yh:1,Yi:-19,Yk:1,Ym:-41,Yn:-41,Yo:-60,Yp:-40,Yq:-60,Yr:-41,Ys:-61,Yt:-1,Yu:-40,Yv:-40,Yx:-41,Yy:-40,Yz:-41,ZC:-20,ZG:-20,ZO:-20,ZQ:-20,"[j":80,aT:-60,aV:-21,aY:-61,av:-10,aw:-10,ay:-10,"b,":-40,"b.":-40,bT:-59,bV:-21,bW:-20,bX:-39,bY:-60,bv:-10,bx:-20,by:-10,"e,":-20,"e.":-20,eT:-59,eY:-40,ej:20,'f"':3,"f'":3,"f)":1,"f*":61,"f,":-1,"f.":-1,"f?":40,fT:40,fV:21,fW:21,fX:21,fY:1,"f]":21,fa:-29,fc:-19,fd:-19,fe:-19,ff:1,fg:-39,fh:-19,fi:-19,fj:-19,fk:-19,fl:-19,fo:-19,fq:-19,fs:-19,ft:1,"f}":3,hT:-58,hY:-39,hv:-10,hy:-10,'i"':2,"i'":2,"i)":2,"i?":3,iT:-20,"i]":41,"i}":22,jT:-20,kT:-39,kU:-1,kW:-20,ka:-20,kc:-20,kd:-20,ke:-20,kg:-20,kl:-20,ko:-20,kq:-20,ku:-10,lf:-20,lv:-19,lw:-10,ly:-19,mT:-58,mY:-39,mv:-10,my:-10,nT:-58,nY:-39,nv:-10,ny:-10,"o,":-40,"o.":-40,oT:-59,oV:-21,oW:-20,oX:-39,oY:-60,ov:-10,ox:-20,oy:-10,"p,":-40,"p.":-40,pT:-59,pV:-21,pW:-20,pX:-39,pY:-60,pv:-10,px:-20,py:-10,qT:-19,qY:-19,qj:20,'r"':2,"r'":2,"r,":-90,"r.":-90,ra:-49,rc:-19,rd:-19,re:-19,rf:1,ro:-19,rq:-19,rt:20,sT:-59,sV:-21,sW:-20,sX:-19,sY:-60,sv:-19,sx:-10,sy:-19,tf:1,uT:-40,uY:-19,"v,":-90,"v.":-90,vT:-39,vX:-39,va:-35,vc:-10,vd:-10,ve:-10,vo:-10,vq:-10,"w,":-50,"w.":-50,wT:-19,wX:-39,wa:-30,xT:-39,xU:-1,xW:-20,xa:-20,xc:-20,xd:-20,xe:-20,xg:-20,xl:-20,xo:-20,xq:-20,xu:-10,"y,":-90,"y.":-90,yT:-39,yX:-39,ya:-35,yc:-10,yd:-10,ye:-10,yo:-10,yq:-10,zT:-59,"{h":2,"{j":79,"{k":2}};var bD=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});const vi=new WeakMap;function wD(e){const t=vi.get(e);return t?Array.from(t.values()):[]}function Nb(e,t){var n;return(n=vi.get(e))==null?void 0:n.get(t)}function zb(e,t,n){let r=vi.get(e);return r||(r=new Map,vi.set(e,r)),r.set(t,n),n.finally(()=>{const i=vi.get(e);i&&(i.get(t)===n&&i.delete(t),i.size===0&&vi.delete(e))}),n}function _D(e){return bD(this,null,function*(){for(yield Promise.resolve();;){const t=wD(e);if(!t.length)break;yield Promise.allSettled(t),yield Promise.resolve()}})}var xD=Object.defineProperty,Db=Object.getOwnPropertySymbols,CD=Object.prototype.hasOwnProperty,PD=Object.prototype.propertyIsEnumerable,qb=(e,t,n)=>t in e?xD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,SD=(e,t)=>{for(var n in t||(t={}))CD.call(t,n)&&qb(e,n,t[n]);if(Db)for(var n of Db(t))PD.call(t,n)&&qb(e,n,t[n]);return e};const Yu=new Map;let Xu="Alibaba PuHuiTi";function Uu(e){const t=Rr(e);for(const n of t){const r=Yu.get(yi(n));if(r)return r}return null}function Ku(){return Array.from(Yu.values())}function OD(e){Xu=kr(e)}function Hb(e){const t=SD({},e);return Yu.set(t.fontFamily,t),t.fontFamily=kr(t.fontFamily),t}function jb(e){const t=Rr(e).flatMap(n=>{const r=Uu(n);if(!r)return[];const{baseUrl:i,fontWeight:o}=r;return Object.values(o).filter(s=>!!s).map(s=>Sh(i,s))});return Array.from(new Set(t))}function $D(e,t){const n=Rr(e);let r=null;for(const s of n)if(r=Uu(s),r)break;if(!r)return null;const i=Tb(t),o=r.fontWeight[i];return o?Sh(r.baseUrl,o.replace(/\/result.css$/,"")):null}const Zu=new WeakMap,vo=new WeakMap;function Fb(e,t,n){let r=vo.get(e);return r||(r=new Map,vo.set(e,r)),r.set(t,n),n.finally(()=>{const i=vo.get(e);i&&(i.get(t)===n&&i.delete(t),i.size===0&&vo.delete(e))}),n}function ED(e){if(e.getAttribute("data-infographic-font-loaded")==="true")return!0;try{return!!e.sheet}catch(t){return!1}}function MD(e,t,n){var r;const i=(r=vo.get(e))==null?void 0:r.get(t);if(i)return i;if(!n||ED(n))return Fb(e,t,Promise.resolve());const o=new Promise(s=>{const a=()=>{n.setAttribute("data-infographic-font-loaded","true"),s()};n.addEventListener("load",a,{once:!0}),n.addEventListener("error",a,{once:!0})});return Fb(e,t,o)}function AD(e,t){const n=e.ownerDocument,r=(n==null?void 0:n.head)||document.head;if(!r)return;Zu.has(r)||Zu.set(r,new Map);const i=Zu.get(r),o=jb(t);if(!o.length)return;const s=[];o.forEach(a=>{const l=`${t}-${a}`,c=`font:${l}`;if(Nb(e,c))return;let u=i.get(l);u||(u=n.createElement("link"),u.id=l,u.rel="stylesheet",u.href=a,s.push(u),i.set(l,u));const h=MD(r,l,u);zb(e,c,h)}),s.length&&r.tagName==="HEAD"&&s.forEach(a=>r.appendChild(a))}function ID(e){if(Ph)return;Ku().forEach(n=>AD(e,n.fontFamily))}const bo="https://assets.antv.antgroup.com",bi=e=>`${e}/result.css`;[{fontFamily:"Alibaba PuHuiTi",name:"阿里巴巴普惠体",baseUrl:bo,fontWeight:{regular:bi("AlibabaPuHuiTi-Regular"),bold:bi("AlibabaPuHuiTi-Bold")}},{fontFamily:"Source Han Sans",name:"黑体",baseUrl:bo,fontWeight:{regular:bi("SourceHanSansCN-Regular")}},{fontFamily:"Source Han Serif",name:"宋体",baseUrl:bo,fontWeight:{regular:bi("SourceHanSerifCN-Regular")}},{fontFamily:"LXGW WenKai",name:"楷体",baseUrl:bo,fontWeight:{regular:bi("LXGWWenKai-Regular")}},{fontFamily:"851tegakizatsu",name:"手写体",baseUrl:bo,fontWeight:{regular:bi("851tegakizatsu-Regular")}}].forEach(Hb);const Qu=new Map;function Ju(e,t){Qu.set(e,t)}function Bb(e){return Qu.get(e)}function TD(){return Object.fromEntries(Qu)}Ju("antv",["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#70CAF8"]),Ju("spectral",(e,t,n)=>{const r=[["#fc8d59","#ffffbf","#99d594"],["#d7191c","#fdae61","#abdda4","#2b83ba"],["#d7191c","#fdae61","#ffffbf","#abdda4","#2b83ba"],["#d53e4f","#fc8d59","#fee08b","#e6f598","#99d594","#3288bd"],["#d53e4f","#fc8d59","#fee08b","#ffffbf","#e6f598","#99d594","#3288bd"],["#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd"],["#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd"],["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"]],i=Math.min(Math.max(n,3),11);return r[i-3][t%i]});const ta=(e=[],t,n)=>{var r;const i=typeof e=="string"?Bb(e)||[]:e,o=(r=t[0])!=null?r:0;if(typeof i=="function"){const s=n?o/n:0;return i(s,o,n!=null?n:0)}if(Array.isArray(i))return i.length===0?void 0:i[o%i.length]};function RD(e,t){var n,r;if(((n=t.svg)==null?void 0:n.background)===!1)return;const{themeConfig:{colorBg:i}}=t;if(!i)return;const o=e.parentElement;o&&(o.style.backgroundColor=i||"none");const s=Si(e,Ge.Background);if(e.style.backgroundColor=i,s)s.setAttribute("fill",i);else if((r=e.viewBox)!=null&&r.baseVal){const{x:a,y:l,width:c,height:u}=e.viewBox.baseVal,h=Ie("rect",{x:a,y:l,width:c,height:u,fill:i,"data-element-type":Ge.Background});e.prepend(h)}}function wo(e,t){return Object.entries(t).reduce((r,[i,o])=>{if(typeof o=="function"){const s=o(e.getAttribute(i),e);s!=null&&(r[i]=s)}else Object.assign(r,{[i]:o});return r},{})}function Wb(e){return e.replace(/#|%|\.| |\/|\(|\)/g,"").replace(/,/g,"-")}function kD(e,t){t&&Object.keys(t).length>0&&Ci(e,n=>{const r=wo(n,t);ct(n,r)})}const Vb="btn-add-icon",Gb="btn-remove-icon";function LD(e,t){ct(t,{display:"none"});const n=t.querySelectorAll('[id^="btn-add-"]'),r=t.querySelectorAll('[id^="btn-remove-"]');zD(e),n.forEach(DD),r.forEach(qD)}const ND="btn-icon-defs";function zD(e){const t=Ie("defs");Pi(t,ND);const n=xi(`<symbol class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200">
5
5
  <path
6
6
  d="M512 1024C229.216 1024 0 794.784 0 512S229.216 0 512 0s512 229.216 512 512-229.216 512-512 512z m0-960C264.576 64 64 264.576 64 512s200.576 448 448 448 448-200.576 448-448S759.424 64 512 64z m192 480h-160v160a32 32 0 0 1-64 0v-160h-160a32 32 0 0 1 0-64h160v-160a32 32 0 0 1 64 0v160h160a32 32 0 0 1 0 64z"
7
7
  fill="#339900"></path>
8
- </symbol>`);n&&(n.setAttribute("id",Ab),t.appendChild(n));const r=bi(`<symbol viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200">
8
+ </symbol>`);n&&(n.setAttribute("id",Vb),t.appendChild(n));const r=xi(`<symbol viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200">
9
9
  <path d="M874.971429 149.942857C776.228571 54.857143 648.228571 0 512.914286 0S245.942857 54.857143 150.857143 149.942857c-201.142857 201.142857-201.142857 522.971429 0 724.114286C245.942857 969.142857 377.6 1024 512.914286 1024s266.971429-54.857143 362.057143-149.942857c201.142857-201.142857 201.142857-522.971429 0-724.114286m-51.2 672.914286C739.657143 906.971429 629.942857 950.857143 512.914286 950.857143s-226.742857-43.885714-310.857143-128c-171.885714-171.885714-171.885714-449.828571 0-621.714286C286.171429 117.028571 395.885714 73.142857 512.914286 73.142857s226.742857 43.885714 310.857143 128c171.885714 171.885714 171.885714 449.828571 0 621.714286" fill="#E63C33"></path>
10
10
  <path d="M772.571429 475.428571H253.257143c-21.942857 0-36.571429 14.628571-36.571429 36.571429 0 10.971429 3.657143 18.285714 10.971429 25.6s14.628571 10.971429 25.6 10.971429H768.914286c21.942857 0 36.571429-14.628571 36.571428-36.571429s-14.628571-36.571429-32.914285-36.571429" fill="#E63C33"></path>
11
- </symbol>`);r&&(r.setAttribute("id",Tb),t.appendChild(r)),e.prepend(t)}function Rb(e,t){const{id:n,x:r=0,y:i=0,width:o=0,height:s=0}=cn(e,["id","x","y","width","height"]),a=Ae("g",{id:n,class:"btn-group",transform:`translate(${r}, ${i})`}),l=e.getAttribute("data-items");l&&a.setAttribute("data-items",l);const c=Math.max(+o,+s)/2,u=Ae("circle",{cx:c,cy:c,r:c,fill:"#fff",stroke:"transparent"});a.appendChild(u);const h=Ae("use",{href:`#${t}`,width:o,height:s});a.appendChild(h),a.style.cursor="pointer",e.replaceWith(a)}function Uz(e){Rb(e,Ab)}function Kz(e){Rb(e,Tb)}var Zz=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});function Qz(e){return e.startsWith("data:")}function mo(e){return Zz(this,null,function*(){var t;if(!e||!Qz(e))return null;const n=(t=e.match(/^data:([^;]+)/))==null?void 0:t[1];if(!n)return null;const r=()=>new Promise((c,u)=>{const h=new Image;h.onload=()=>{const f=h.naturalWidth,d=h.naturalHeight,p=document.createElement("canvas"),g=p.getContext("2d");if(!g)return c({width:f,height:d,hasAlpha:!1});if(["image/jpeg","image/jpg","image/webp","image/gif"].includes(n))return c({width:f,height:d,hasAlpha:!1});p.width=f,p.height=d,g.drawImage(h,0,0);let m=!1;const v=10;for(let b=0;b<f&&!m;b+=v)for(let _=0;_<d;_+=v)if(g.getImageData(b,_,1,1).data[3]<255){m=!0;break}c({width:f,height:d,hasAlpha:m})},h.onerror=()=>u(new Error("Failed to analysis image")),h.src=e}),{width:i,height:o,hasAlpha:s}=yield r(),l=(()=>{if(s||n!=null&&n.includes("image/gif")||n!=null&&n.includes("image/svg")||Math.min(i,o)<=200)return"xMidYMid meet";const u=i/o;return u>=.6&&u<=1.67||u<.3||u>3.33?"xMidYMid meet":"xMidYMid slice"})();return bi(`
11
+ </symbol>`);r&&(r.setAttribute("id",Gb),t.appendChild(r)),e.prepend(t)}function Yb(e,t){const{id:n,x:r=0,y:i=0,width:o=0,height:s=0}=cn(e,["id","x","y","width","height"]),a=Ie("g",{id:n,class:"btn-group",transform:`translate(${r}, ${i})`}),l=e.getAttribute("data-items");l&&a.setAttribute("data-items",l);const c=Math.max(+o,+s)/2,u=Ie("circle",{cx:c,cy:c,r:c,fill:"#fff",stroke:"transparent"});a.appendChild(u);const h=Ie("use",{href:`#${t}`,width:o,height:s});a.appendChild(h),a.style.cursor="pointer",e.replaceWith(a)}function DD(e){Yb(e,Vb)}function qD(e){Yb(e,Gb)}var HD=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});function jD(e){return e.startsWith("data:")}function _o(e){return HD(this,null,function*(){var t;if(!e||!jD(e))return null;const n=(t=e.match(/^data:([^;]+)/))==null?void 0:t[1];if(!n)return null;const r=()=>new Promise((c,u)=>{const h=new Image;h.onload=()=>{const f=h.naturalWidth,d=h.naturalHeight,p=document.createElement("canvas"),g=p.getContext("2d");if(!g)return c({width:f,height:d,hasAlpha:!1});if(["image/jpeg","image/jpg","image/webp","image/gif"].includes(n))return c({width:f,height:d,hasAlpha:!1});p.width=f,p.height=d,g.drawImage(h,0,0);let m=!1;const v=10;for(let b=0;b<f&&!m;b+=v)for(let w=0;w<d;w+=v)if(g.getImageData(b,w,1,1).data[3]<255){m=!0;break}c({width:f,height:d,hasAlpha:m})},h.onerror=()=>u(new Error("Failed to analysis image")),h.src=e}),{width:i,height:o,hasAlpha:s}=yield r(),l=(()=>{if(s||n!=null&&n.includes("image/gif")||n!=null&&n.includes("image/svg")||Math.min(i,o)<=200)return"xMidYMid meet";const u=i/o;return u>=.6&&u<=1.67||u<.3||u>3.33?"xMidYMid meet":"xMidYMid slice"})();return xi(`
12
12
  <symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${i} ${o}" preserveAspectRatio="${l}">
13
13
  <image href="${e}" width="${i}" height="${o}" />
14
- </symbol>`)})}function Jz(e){const t=e.trim();return/^(?:<\?xml[^>]*>\s*)?<svg[\s>]/i.test(t)||t.startsWith("<symbol")}function yi(e){if(!e||!Jz(e))return null;const t=e.replace(/<svg(?=[\s/>])/i,"<symbol").replace(/<\/svg>/i,"</symbol>");return bi(t)}var eD=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});function tD(e){try{return!!new URL(e)}catch(t){return!1}}function nD(e,t){return!!(e.toLowerCase().includes("image/svg")||!e&&t==="svg")}function kb(e,t){return eD(this,null,function*(){if(!e||!tD(e))return null;const n=yield ga(e);if(!n.ok)throw new Error("Failed to load resource");const r=n.headers.get("Content-Type")||"";if(nD(r,t)){const s=yield n.text();return yi(s)}const i=yield n.blob(),o=yield rD(i);return mo(o)})}function rD(e){return new Promise((t,n)=>{const r=new FileReader;r.onloadend=()=>{t(r.result)},r.onerror=n,r.readAsDataURL(e)})}var Lb=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});const iD=e=>Lb(null,null,function*(){var t;try{const n=new URLSearchParams({text:e,topK:"1"}),r=`${XM}?${n.toString()}`,i=yield ga(r);if(!i.ok)return null;const o=yield i.json();return!(o!=null&&o.status)||!Array.isArray((t=o.data)==null?void 0:t.data)?null:o.data.data[0]||null}catch(n){return console.error(`Failed to query icon for "${e}":`,n),null}});function oD(e){return e.startsWith("data:")}function sD(e){const t=e.trim();return t.startsWith("<svg")||t.startsWith("<symbol")}function Nb(e,t){return Lb(this,null,function*(){var n;if(!e)return null;const r=yield iD(e);if(!r)return null;if(sD(r))return yi(r);if(oD(r)){const i=((n=r.match(/^data:([^;]+)/))==null?void 0:n[1])||"",o=r.includes(";base64,");if(i==="image/svg+xml"&&!o){const s=r.indexOf(","),a=s>=0?r.slice(s+1):r;return yi(a)}return mo(r)}return kb(r,t)})}let zb=null;function aD(e){zb=e}function lD(){return zb}function cD(e){if(!e.startsWith("data:"))return null;const t=e.indexOf(",");if(t===-1)return null;const n=e.slice(5,t),r=e.slice(t+1),i=n.split(";"),o=i[0],s=i.includes("base64");return o==="image/svg+xml"&&!s?{source:"inline",format:"svg",encoding:"raw",data:r.startsWith("%3C")?decodeURIComponent(r):r}:o.startsWith("image/")?{source:"inline",format:o==="image/svg+xml"?"svg":"image",encoding:s?"base64":"data-uri",data:e}:null}const uD=new Set(["svg","png","jpg","jpeg","webp","gif"]);function hD(e){const t=e.trim();return t.startsWith("<svg")||t.startsWith("<symbol")}function fD(e){const t=e.toLowerCase();if(t.endsWith(".svg")||t.includes(".svg?"))return"svg";if(t.endsWith(".png")||t.endsWith(".jpg")||t.endsWith(".jpeg")||t.endsWith(".webp")||t.endsWith(".gif"))return"image"}function dD(e){var t;if(!e.startsWith("ref:"))return null;const n=e.slice(4),[r,...i]=n.split(":");if(!r||i.length===0)return null;let o;i.length>1&&uD.has(i[0].toLowerCase())&&(o=(t=i.shift())==null?void 0:t.toLowerCase());const s=i.join(":");if(!s)return null;const a=r==="url"?"remote":r;return a==="remote"?{source:"remote",format:o||fD(s)||void 0,data:s}:a==="search"?{source:"search",format:o||"svg",data:s}:a==="svg"?{source:"inline",format:"svg",data:s,encoding:"raw"}:{source:"custom",data:e,format:o}}function Gs(e){if(!e)return null;if(typeof e!="string"){if(e.source)return e;const r=e;return r.type==="image"?{source:"inline",format:"image",data:r.data}:r.type==="svg"?{source:"inline",format:"svg",encoding:"raw",data:r.data}:r.type==="remote"?{source:"remote",format:r.format,data:r.data}:r.type==="search"?{source:"search",format:r.format||"svg",data:r.data}:r.type==="custom"?{source:"custom",data:r.data}:null}const t=cD(e);if(t)return t;const n=dD(e);return n||(hD(e)?{source:"inline",format:"svg",encoding:"raw",data:e}:{source:"custom",data:e})}function ju(e){const t=typeof e=="string"?Gs(e):e;return t?"rsc-"+D_(JSON.stringify(t)):null}function Db(e){const t=ju(e);return t?`#${t}`:null}var Fu=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});function pD(e,t,n){return Fu(this,null,function*(){const r=Gs(t);if(!r)return null;r.scene||(r.scene=e);const{source:i,data:o,format:s,encoding:a}=r;let l=null;try{if(i==="inline"){const c=o.startsWith("data:");s==="svg"&&a==="raw"?l=yi(o):s==="svg"&&c?l=yield mo(o):c||s==="image"?l=yield mo(o):l=yi(o)}else if(i==="remote")l=yield kb(o,s);else if(i==="search")l=yield Nb(o,s);else{const c=lD();c&&(l=yield c(r))}}catch(c){l=null}return l||(yield Nb(gD(r,e,n),s))})}const qb=new Map,Ys=new WeakMap;function Hb(e,t,n,r){return Fu(this,null,function*(){if(!e)return null;const i=Gs(n);if(!i)return null;const o=ju(i),s=`resource:${o}`,a=Ys.get(e);if(a!=null&&a.has(o))return o;const l=xb(e,s);if(l)return yield l;const c=Fu(null,null,function*(){const u=qb.has(o)?qb.get(o)||null:yield pD(t,i,r);if(!u)return null;Ys.has(e)||Ys.set(e,new Map);const h=Ys.get(e);if(h.has(o))return o;const f=fa(e);return u.id=o,f.appendChild(u),h.set(o,u),o});return Cb(e,s,c),yield c})}function gD(e,t,n){const r=t==="illus"?"illustration":"icon",i=Xs(e.data)||Xs(n==null?void 0:n.label)||Xs(n==null?void 0:n.desc);if(i)return i;const o=Xs(e.data);return!o||e.source==="inline"||o.startsWith("data:")||o.startsWith("<svg")||o.startsWith("<symbol")?r:o}function Xs(e){if(typeof e!="string")return null;const t=e.trim();return t||null}var mD=Object.defineProperty,jb=Object.getOwnPropertySymbols,yD=Object.prototype.hasOwnProperty,vD=Object.prototype.propertyIsEnumerable,Fb=(e,t,n)=>t in e?mD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Us=(e,t)=>{for(var n in t||(t={}))yD.call(t,n)&&Fb(e,n,t[n]);if(jb)for(var n of jb(t))vD.call(t,n)&&Fb(e,n,t[n]);return e};function bD(e,t,n,r){var i,o;const s=n.icon;if(!s)return null;const{themeConfig:a}=r,l=(i=n.attributes)==null?void 0:i.icon,c=Us(Us({},(o=a.item)==null?void 0:o.icon),l),u=go(t,c);return _D(e,t,s,u,n)}function _D(e,t,n,r,i){return Hb(e,"icon",n,i),HH(n,Us(Us({},cn(t,["id","x","y","width","height","fill","stroke","data-element-type","data-indexes"])),r))}var wD=Object.defineProperty,xD=Object.defineProperties,CD=Object.getOwnPropertyDescriptors,Ks=Object.getOwnPropertySymbols,Bb=Object.prototype.hasOwnProperty,Wb=Object.prototype.propertyIsEnumerable,Vb=(e,t,n)=>t in e?wD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yo=(e,t)=>{for(var n in t||(t={}))Bb.call(t,n)&&Vb(e,n,t[n]);if(Ks)for(var n of Ks(t))Wb.call(t,n)&&Vb(e,n,t[n]);return e},Gb=(e,t)=>xD(e,CD(t)),PD=(e,t)=>{var n={};for(var r in e)Bb.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ks)for(var r of Ks(e))t.indexOf(r)<0&&Wb.call(e,r)&&(n[r]=e[r]);return n};function Yb(e,t,n,r,i={}){if(!n)return null;const o=Gs(n);if(!o)return null;const s=ju(o);i&&Object.keys(i).length>0&&ut(t,i);const a=SD(e,t,s);Hb(e,"illus",o,r);const{data:l,color:c}=o;return $D(s,Gb(yo(yo(yo({},ED(t)),c?{color:c}:{}),i),{"clip-path":`url(#${a})`}),l)}function OD(e,t,n){var r;const i=n.illus,o=(r=n.attributes)==null?void 0:r.illus;return Yb(e,t,i,n,o)}function SD(e,t,n){const r=`clip-${n}-${YH()}`;if(e.querySelector(`#${r}`))return r;const i=fa(e),o=Ae("clipPath",{id:r}),s=t.cloneNode();return tH(s,["id","data-illus-bounds","data-element-type"]),o.appendChild(s),i.appendChild(o),r}function $D(e,t,n){const r=t,{"clip-path":i}=r,o=PD(r,["clip-path"]),{x:s="0",y:a="0",width:l="0",height:c="0"}=o,u=Ae("rect",{id:`${e}-volume`,"data-element-type":Ge.IllusVolume,x:s,y:a,width:l,height:c,fill:"transparent"}),h=Ae("g",{"data-element-type":Ge.IllusGroup,"clip-path":i,id:`${e}-group`});h.appendChild(u);const f=Ae("use",Gb(yo({id:e,fill:"lightgray"},o),{href:Db(n),"data-element-type":Ge.Illus}));return h.appendChild(f),h}function ED(e){const t=e.getAttribute("data-illus-bounds");if(!t)return yo({x:"0",y:"0",width:"0",height:"0"},cn(e,["x","y","width","height"]));const[n,r,i,o]=t.split(" ");return{x:n,y:r,width:i,height:o}}function Zs(e){"@babel/helpers - typeof";return Zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zs(e)}var MD=/^\s+/,ID=/\s+$/;function be(e,t){if(e=e||"",t=t||{},e instanceof be)return e;if(!(this instanceof be))return new be(e,t);var n=AD(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}be.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,o,s,a;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),r<=.03928?s=r/12.92:s=Math.pow((r+.055)/1.055,2.4),i<=.03928?a=i/12.92:a=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*s+.0722*a},setAlpha:function(t){return this._a=Jb(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Ub(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Ub(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=Xb(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Xb(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return Kb(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return LD(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(_t(this._r,255)*100)+"%",g:Math.round(_t(this._g,255)*100)+"%",b:Math.round(_t(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(_t(this._r,255)*100)+"%, "+Math.round(_t(this._g,255)*100)+"%, "+Math.round(_t(this._b,255)*100)+"%)":"rgba("+Math.round(_t(this._r,255)*100)+"%, "+Math.round(_t(this._g,255)*100)+"%, "+Math.round(_t(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:YD[Kb(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+Zb(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=be(t);r="#"+Zb(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,i=this._a<1&&this._a>=0,o=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return be(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(qD,arguments)},brighten:function(){return this._applyModification(HD,arguments)},darken:function(){return this._applyModification(jD,arguments)},desaturate:function(){return this._applyModification(ND,arguments)},saturate:function(){return this._applyModification(zD,arguments)},greyscale:function(){return this._applyModification(DD,arguments)},spin:function(){return this._applyModification(FD,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(VD,arguments)},complement:function(){return this._applyCombination(BD,arguments)},monochromatic:function(){return this._applyCombination(GD,arguments)},splitcomplement:function(){return this._applyCombination(WD,arguments)},triad:function(){return this._applyCombination(Qb,[3])},tetrad:function(){return this._applyCombination(Qb,[4])}},be.fromRatio=function(e,t){if(Zs(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=vo(e[r]));e=n}return be(e,t)};function AD(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,s=!1,a=!1;return typeof e=="string"&&(e=ZD(e)),Zs(e)=="object"&&(Gn(e.r)&&Gn(e.g)&&Gn(e.b)?(t=TD(e.r,e.g,e.b),s=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Gn(e.h)&&Gn(e.s)&&Gn(e.v)?(r=vo(e.s),i=vo(e.v),t=kD(e.h,r,i),s=!0,a="hsv"):Gn(e.h)&&Gn(e.s)&&Gn(e.l)&&(r=vo(e.s),o=vo(e.l),t=RD(e.h,r,o),s=!0,a="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=Jb(n),{ok:s,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function TD(e,t,n){return{r:_t(e,255)*255,g:_t(t,255)*255,b:_t(n,255)*255}}function Xb(e,t,n){e=_t(e,255),t=_t(t,255),n=_t(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,s,a=(r+i)/2;if(r==i)o=s=0;else{var l=r-i;switch(s=a>.5?l/(2-r-i):l/(r+i),r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s,l:a}}function RD(e,t,n){var r,i,o;e=_t(e,360),t=_t(t,100),n=_t(n,100);function s(c,u,h){return h<0&&(h+=1),h>1&&(h-=1),h<1/6?c+(u-c)*6*h:h<1/2?u:h<2/3?c+(u-c)*(2/3-h)*6:c}if(t===0)r=i=o=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=s(l,a,e+1/3),i=s(l,a,e),o=s(l,a,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function Ub(e,t,n){e=_t(e,255),t=_t(t,255),n=_t(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,s,a=r,l=r-i;if(s=r===0?0:l/r,r==i)o=0;else{switch(r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s,v:a}}function kD(e,t,n){e=_t(e,360)*6,t=_t(t,100),n=_t(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),s=n*(1-i*t),a=n*(1-(1-i)*t),l=r%6,c=[n,s,o,o,a,n][l],u=[a,n,n,s,o,o][l],h=[o,o,a,n,n,s][l];return{r:c*255,g:u*255,b:h*255}}function Kb(e,t,n,r){var i=[pn(Math.round(e).toString(16)),pn(Math.round(t).toString(16)),pn(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function LD(e,t,n,r,i){var o=[pn(Math.round(e).toString(16)),pn(Math.round(t).toString(16)),pn(Math.round(n).toString(16)),pn(e_(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Zb(e,t,n,r){var i=[pn(e_(r)),pn(Math.round(e).toString(16)),pn(Math.round(t).toString(16)),pn(Math.round(n).toString(16))];return i.join("")}be.equals=function(e,t){return!e||!t?!1:be(e).toRgbString()==be(t).toRgbString()},be.random=function(){return be.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function ND(e,t){t=t===0?0:t||10;var n=be(e).toHsl();return n.s-=t/100,n.s=Qs(n.s),be(n)}function zD(e,t){t=t===0?0:t||10;var n=be(e).toHsl();return n.s+=t/100,n.s=Qs(n.s),be(n)}function DD(e){return be(e).desaturate(100)}function qD(e,t){t=t===0?0:t||10;var n=be(e).toHsl();return n.l+=t/100,n.l=Qs(n.l),be(n)}function HD(e,t){t=t===0?0:t||10;var n=be(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),be(n)}function jD(e,t){t=t===0?0:t||10;var n=be(e).toHsl();return n.l-=t/100,n.l=Qs(n.l),be(n)}function FD(e,t){var n=be(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,be(n)}function BD(e){var t=be(e).toHsl();return t.h=(t.h+180)%360,be(t)}function Qb(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=be(e).toHsl(),r=[be(e)],i=360/t,o=1;o<t;o++)r.push(be({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function WD(e){var t=be(e).toHsl(),n=t.h;return[be(e),be({h:(n+72)%360,s:t.s,l:t.l}),be({h:(n+216)%360,s:t.s,l:t.l})]}function VD(e,t,n){t=t||6,n=n||30;var r=be(e).toHsl(),i=360/n,o=[be(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(be(r));return o}function GD(e,t){t=t||6;for(var n=be(e).toHsv(),r=n.h,i=n.s,o=n.v,s=[],a=1/t;t--;)s.push(be({h:r,s:i,v:o})),o=(o+a)%1;return s}be.mix=function(e,t,n){n=n===0?0:n||50;var r=be(e).toRgb(),i=be(t).toRgb(),o=n/100,s={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return be(s)},be.readability=function(e,t){var n=be(e),r=be(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},be.isReadable=function(e,t,n){var r=be.readability(e,t),i,o;switch(o=!1,i=QD(n),i.level+i.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o},be.mostReadable=function(e,t,n){var r=null,i=0,o,s,a,l;n=n||{},s=n.includeFallbackColors,a=n.level,l=n.size;for(var c=0;c<t.length;c++)o=be.readability(e,t[c]),o>i&&(i=o,r=be(t[c]));return be.isReadable(e,r,{level:a,size:l})||!s?r:(n.includeFallbackColors=!1,be.mostReadable(e,["#fff","#000"],n))};var Bu=be.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},YD=be.hexNames=XD(Bu);function XD(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Jb(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function _t(e,t){UD(e)&&(e="100%");var n=KD(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Qs(e){return Math.min(1,Math.max(0,e))}function an(e){return parseInt(e,16)}function UD(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function KD(e){return typeof e=="string"&&e.indexOf("%")!=-1}function pn(e){return e.length==1?"0"+e:""+e}function vo(e){return e<=1&&(e=e*100+"%"),e}function e_(e){return Math.round(parseFloat(e)*255).toString(16)}function t_(e){return an(e)/255}var gn=(function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Gn(e){return!!gn.CSS_UNIT.exec(e)}function ZD(e){e=e.replace(MD,"").replace(ID,"").toLowerCase();var t=!1;if(Bu[e])e=Bu[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=gn.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=gn.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=gn.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=gn.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=gn.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=gn.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=gn.hex8.exec(e))?{r:an(n[1]),g:an(n[2]),b:an(n[3]),a:t_(n[4]),format:t?"name":"hex8"}:(n=gn.hex6.exec(e))?{r:an(n[1]),g:an(n[2]),b:an(n[3]),format:t?"name":"hex"}:(n=gn.hex4.exec(e))?{r:an(n[1]+""+n[1]),g:an(n[2]+""+n[2]),b:an(n[3]+""+n[3]),a:t_(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=gn.hex3.exec(e))?{r:an(n[1]+""+n[1]),g:an(n[2]+""+n[2]),b:an(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function QD(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var JD=Object.defineProperty,n_=Object.getOwnPropertySymbols,eq=Object.prototype.hasOwnProperty,tq=Object.prototype.propertyIsEnumerable,r_=(e,t,n)=>t in e?JD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nq=(e,t)=>{for(var n in t||(t={}))eq.call(t,n)&&r_(e,n,t[n]);if(n_)for(var n of n_(t))tq.call(t,n)&&r_(e,n,t[n]);return e};function i_(e,t,n,r){const i=e.getAttribute(r),o=rq(i,n),{type:s,colors:a=[]}=o,l=a.length-1,c=a.map((d,p)=>typeof d=="string"?Ae("stop",{offset:`${p/l}`,"stop-color":d}):Ae("stop",{offset:`${d.offset}`,"stop-color":d.color})),u=iq(o);if(s==="linear-gradient"){const{angle:d=0}=o,[[p,g],[m,v]]=oq(d),b=Ae("linearGradient",{id:u,x1:p,y1:g,x2:m,y2:v});c.forEach(_=>b.appendChild(_)),o_(t,u,b)}else if(s==="radial-gradient"){const d=Ae("radialGradient",{id:u});c.forEach(p=>d.appendChild(p)),o_(t,u,d)}const h=e.getAttribute("fill"),f=e.getAttribute("stroke");Sr(h)&&e.setAttribute("fill",`url(#${u})`),Sr(f)&&e.setAttribute("stroke",`url(#${u})`)}function o_(e,t,n){const r=fa(e);n.setAttribute("id",t);const i=r.querySelector(`#${t}`);i?i.replaceWith(n):r.appendChild(n)}function rq(e,t){var n;if((n=t.colors)!=null&&n.length||!e)return t;const r=be(e),i=nq({},t);return i.colors=r.isDark()?[e,r.lighten(20).toHexString()]:[r.darken(20).toHexString(),e],!("angle"in t)&&i.type==="linear-gradient"&&(i.angle=225),i}function iq(e){const{type:t,colors:n=[]}=e,r=Ib(n.map(i=>typeof i=="string"?i:`${i.color}_${i.offset}`).join("-"));if(t==="linear-gradient"){const{angle:i=0}=e;return`${t}-${r}-${i}`}return`${t}-${r}`}function oq(e){const t=Math.PI/180*e,n=Math.cos(t),r=Math.sin(t);return[[.5-n/2,.5-r/2],[.5+n/2,.5+r/2]]}const sq=Object.freeze(Object.defineProperty({__proto__:null,diamond:({scale:e=.5,backgroundColor:t,foregroundColor:n})=>{const r=Ae("pattern",{id:"pattern-diamond",width:"20",height:"20",patternTransform:`scale(${e})`,patternUnits:"userSpaceOnUse"}),i=Ae("rect",{width:"100%",height:"100%",fill:t}),o=Ae("path",{d:"M0,0 L20,20 M20,0 L0,20",stroke:n,"stroke-width":"1"});return r.appendChild(i),r.appendChild(o),r},dot:({scale:e=1,backgroundColor:t,foregroundColor:n})=>{const r=Ae("pattern",{id:"pattern-dot",width:"20",height:"20",patternTransform:`scale(${e})`,patternUnits:"userSpaceOnUse"}),i=Ae("rect",{width:"100%",height:"100%",fill:t}),o=Ae("circle",{cx:"5",cy:"5",r:"3",fill:n}),s=Ae("circle",{cx:"15",cy:"15",r:"3",fill:n});return r.appendChild(i),r.appendChild(o),r.appendChild(s),r},hex:({scale:e=.3,backgroundColor:t,foregroundColor:n})=>{const r=Ae("pattern",{id:"pattern-hex",width:"20",height:"20",patternTransform:`scale(${e})`,patternUnits:"userSpaceOnUse"}),i=Ae("rect",{width:"100%",height:"100%",fill:t}),o=Ae("path",{d:"M10,0 L20,5 L20,15 L10,20 L0,15 L0,5 Z",fill:n});return r.appendChild(i),r.appendChild(o),r},line:({scale:e=1,backgroundColor:t,foregroundColor:n})=>{const o=Ae("pattern",{id:"pattern-line",width:"20",height:"20",patternTransform:`scale(${e})`,patternUnits:"userSpaceOnUse"}),s=Ae("rect",{width:"100%",height:"100%",fill:t}),a=Ae("line",{x1:"7",y1:"-3",x2:"23",y2:"13",stroke:n,"stroke-width":6,"stroke-opacity":"0.5"}),l=Ae("line",{x1:"-3",y1:"7",x2:"13",y2:"23",stroke:n,"stroke-width":6,"stroke-opacity":"0.5"});return o.appendChild(s),o.appendChild(a),o.appendChild(l),o},mosaic:({scale:e=1,backgroundColor:t="#ffffff",foregroundColor:n="#000000"})=>{const a=Ae("pattern",{id:"pattern-mosaic",width:20,height:20,patternUnits:"userSpaceOnUse",patternTransform:`scale(${e})`}),l=Ae("rect",{width:"100%",height:"100%",fill:t});a.appendChild(l);for(let c=0;c<4;c++)for(let u=0;u<4;u++)if((u+c)%2===0){const h=Ae("rect",{x:u*5,y:c*5,width:5,height:5,fill:n});a.appendChild(h)}return a},square:({scale:e=.3,backgroundColor:t,foregroundColor:n})=>{const r=Ae("pattern",{id:"pattern-square",width:"20",height:"20",patternTransform:`scale(${e})`,patternUnits:"userSpaceOnUse"}),i=Ae("rect",{width:"100%",height:"100%",fill:t}),o=Ae("path",{d:"M0,0 L20,0 L20,20 L0,20 Z",fill:n});return r.appendChild(i),r.appendChild(o),r}},Symbol.toStringTag,{value:"Module"}));var aq=Object.defineProperty,Js=Object.getOwnPropertySymbols,s_=Object.prototype.hasOwnProperty,a_=Object.prototype.propertyIsEnumerable,l_=(e,t,n)=>t in e?aq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wu=(e,t)=>{for(var n in t||(t={}))s_.call(t,n)&&l_(e,n,t[n]);if(Js)for(var n of Js(t))a_.call(t,n)&&l_(e,n,t[n]);return e},lq=(e,t)=>{var n={};for(var r in e)s_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Js)for(var r of Js(e))t.indexOf(r)<0&&a_.call(e,r)&&(n[r]=e[r]);return n};const Vu=new Map;function c_(e,t){Vu.has(e)&&console.warn(`Pattern ${e} will be overwritten`),Vu.set(e,t)}for(const[e,t]of Object.entries(sq))c_(e,t);function cq(e,t,n){const r=n.themeConfig.stylize;if(!r||r.type!=="pattern")return;const i=r,{pattern:o}=i,s=lq(i,["pattern"]),a=Vu.get(o);if(!a)return console.warn(`Pattern ${o} not found`);const{fill:l}=cn(e,["fill","stroke"]),c=l,u=Wu({backgroundColor:c&&be(c).setAlpha(.5).toRgbString(),foregroundColor:c},s),h=hq(Wu(Wu({},r),u));uq(t,h,a(u)),Sr(l)&&(e.setAttribute("fill",`url(#${h})`),!e.getAttribute("stroke")&&l&&e.setAttribute("stroke",l))}function uq(e,t,n){const r=fa(e);n.setAttribute("id",t);const i=r.querySelector(`pattern#${t}`);i?i.replaceWith(n):r.appendChild(n)}function hq(e){const{pattern:t,foregroundColor:n="unset",backgroundColor:r="unset",scale:i="unset"}=e;return Ib(`pattern-${t}-${n}-${r}-${i}`)}function Gu(e,t,n){if(e&&e.length){const[r,i]=t,o=Math.PI/180*n,s=Math.cos(o),a=Math.sin(o);for(const l of e){const[c,u]=l;l[0]=(c-r)*s-(u-i)*a+r,l[1]=(c-r)*a+(u-i)*s+i}}}function fq(e,t){return e[0]===t[0]&&e[1]===t[1]}function dq(e,t,n,r=1){const i=n,o=Math.max(t,.1),s=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,a=[0,0];if(i)for(const c of s)Gu(c,a,i);const l=(function(c,u,h){const f=[];for(const b of c){const _=[...b];fq(_[0],_[_.length-1])||_.push([_[0][0],_[0][1]]),_.length>2&&f.push(_)}const d=[];u=Math.max(u,.1);const p=[];for(const b of f)for(let _=0;_<b.length-1;_++){const x=b[_],w=b[_+1];if(x[1]!==w[1]){const C=Math.min(x[1],w[1]);p.push({ymin:C,ymax:Math.max(x[1],w[1]),x:C===x[1]?x[0]:w[0],islope:(w[0]-x[0])/(w[1]-x[1])})}}if(p.sort(((b,_)=>b.ymin<_.ymin?-1:b.ymin>_.ymin?1:b.x<_.x?-1:b.x>_.x?1:b.ymax===_.ymax?0:(b.ymax-_.ymax)/Math.abs(b.ymax-_.ymax))),!p.length)return d;let g=[],m=p[0].ymin,v=0;for(;g.length||p.length;){if(p.length){let b=-1;for(let _=0;_<p.length&&!(p[_].ymin>m);_++)b=_;p.splice(0,b+1).forEach((_=>{g.push({s:m,edge:_})}))}if(g=g.filter((b=>!(b.edge.ymax<=m))),g.sort(((b,_)=>b.edge.x===_.edge.x?0:(b.edge.x-_.edge.x)/Math.abs(b.edge.x-_.edge.x))),(h!==1||v%u==0)&&g.length>1)for(let b=0;b<g.length;b+=2){const _=b+1;if(_>=g.length)break;const x=g[b].edge,w=g[_].edge;d.push([[Math.round(x.x),m],[Math.round(w.x),m]])}m+=h,g.forEach((b=>{b.edge.x=b.edge.x+h*b.edge.islope})),v++}return d})(s,o,r);if(i){for(const c of s)Gu(c,a,-i);(function(c,u,h){const f=[];c.forEach((d=>f.push(...d))),Gu(f,u,h)})(l,a,-i)}return l}function bo(e,t){var n;const r=t.hachureAngle+90;let i=t.hachureGap;i<0&&(i=4*t.strokeWidth),i=Math.round(Math.max(i,.1));let o=1;return t.roughness>=1&&(((n=t.randomizer)===null||n===void 0?void 0:n.next())||Math.random())>.7&&(o=i),dq(e,i,r,o||1)}let Yu=class{constructor(t){this.helper=t}fillPolygons(t,n){return this._fillPolygons(t,n)}_fillPolygons(t,n){const r=bo(t,n);return{type:"fillSketch",ops:this.renderLines(r,n)}}renderLines(t,n){const r=[];for(const i of t)r.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],n));return r}};function ea(e){const t=e[0],n=e[1];return Math.sqrt(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2))}let pq=class extends Yu{fillPolygons(t,n){let r=n.hachureGap;r<0&&(r=4*n.strokeWidth),r=Math.max(r,.1);const i=bo(t,Object.assign({},n,{hachureGap:r})),o=Math.PI/180*n.hachureAngle,s=[],a=.5*r*Math.cos(o),l=.5*r*Math.sin(o);for(const[c,u]of i)ea([c,u])&&s.push([[c[0]-a,c[1]+l],[...u]],[[c[0]+a,c[1]-l],[...u]]);return{type:"fillSketch",ops:this.renderLines(s,n)}}},gq=class extends Yu{fillPolygons(t,n){const r=this._fillPolygons(t,n),i=Object.assign({},n,{hachureAngle:n.hachureAngle+90}),o=this._fillPolygons(t,i);return r.ops=r.ops.concat(o.ops),r}},mq=class{constructor(t){this.helper=t}fillPolygons(t,n){const r=bo(t,n=Object.assign({},n,{hachureAngle:0}));return this.dotsOnLines(r,n)}dotsOnLines(t,n){const r=[];let i=n.hachureGap;i<0&&(i=4*n.strokeWidth),i=Math.max(i,.1);let o=n.fillWeight;o<0&&(o=n.strokeWidth/2);const s=i/4;for(const a of t){const l=ea(a),c=l/i,u=Math.ceil(c)-1,h=l-u*i,f=(a[0][0]+a[1][0])/2-i/4,d=Math.min(a[0][1],a[1][1]);for(let p=0;p<u;p++){const g=d+h+p*i,m=f-s+2*Math.random()*s,v=g-s+2*Math.random()*s,b=this.helper.ellipse(m,v,o,o,n);r.push(...b.ops)}}return{type:"fillSketch",ops:r}}},yq=class{constructor(t){this.helper=t}fillPolygons(t,n){const r=bo(t,n);return{type:"fillSketch",ops:this.dashedLine(r,n)}}dashedLine(t,n){const r=n.dashOffset<0?n.hachureGap<0?4*n.strokeWidth:n.hachureGap:n.dashOffset,i=n.dashGap<0?n.hachureGap<0?4*n.strokeWidth:n.hachureGap:n.dashGap,o=[];return t.forEach((s=>{const a=ea(s),l=Math.floor(a/(r+i)),c=(a+i-l*(r+i))/2;let u=s[0],h=s[1];u[0]>h[0]&&(u=s[1],h=s[0]);const f=Math.atan((h[1]-u[1])/(h[0]-u[0]));for(let d=0;d<l;d++){const p=d*(r+i),g=p+r,m=[u[0]+p*Math.cos(f)+c*Math.cos(f),u[1]+p*Math.sin(f)+c*Math.sin(f)],v=[u[0]+g*Math.cos(f)+c*Math.cos(f),u[1]+g*Math.sin(f)+c*Math.sin(f)];o.push(...this.helper.doubleLineOps(m[0],m[1],v[0],v[1],n))}})),o}},vq=class{constructor(t){this.helper=t}fillPolygons(t,n){const r=n.hachureGap<0?4*n.strokeWidth:n.hachureGap,i=n.zigzagOffset<0?r:n.zigzagOffset,o=bo(t,n=Object.assign({},n,{hachureGap:r+i}));return{type:"fillSketch",ops:this.zigzagLines(o,i,n)}}zigzagLines(t,n,r){const i=[];return t.forEach((o=>{const s=ea(o),a=Math.round(s/(2*n));let l=o[0],c=o[1];l[0]>c[0]&&(l=o[1],c=o[0]);const u=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let h=0;h<a;h++){const f=2*h*n,d=2*(h+1)*n,p=Math.sqrt(2*Math.pow(n,2)),g=[l[0]+f*Math.cos(u),l[1]+f*Math.sin(u)],m=[l[0]+d*Math.cos(u),l[1]+d*Math.sin(u)],v=[g[0]+p*Math.cos(u+Math.PI/4),g[1]+p*Math.sin(u+Math.PI/4)];i.push(...this.helper.doubleLineOps(g[0],g[1],v[0],v[1],r),...this.helper.doubleLineOps(v[0],v[1],m[0],m[1],r))}})),i}};const en={};let bq=class{constructor(t){this.seed=t}next(){return this.seed?(ds(2,31)-1&(this.seed=Math.imul(48271,this.seed)))/ds(2,31):Math.random()}};const _q=0,Xu=1,u_=2,ta={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Uu(e,t){return e.type===t}function Ku(e){const t=[],n=(function(s){const a=new Array;for(;s!=="";)if(s.match(/^([ \t\r\n,]+)/))s=s.substr(RegExp.$1.length);else if(s.match(/^([aAcChHlLmMqQsStTvVzZ])/))a[a.length]={type:_q,text:RegExp.$1},s=s.substr(RegExp.$1.length);else{if(!s.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];a[a.length]={type:Xu,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return a[a.length]={type:u_,text:""},a})(e);let r="BOD",i=0,o=n[i];for(;!Uu(o,u_);){let s=0;const a=[];if(r==="BOD"){if(o.text!=="M"&&o.text!=="m")return Ku("M0,0"+e);i++,s=ta[o.text],r=o.text}else Uu(o,Xu)?s=ta[r]:(i++,s=ta[o.text],r=o.text);if(!(i+s<n.length))throw new Error("Path data ended short");for(let l=i;l<i+s;l++){const c=n[l];if(!Uu(c,Xu))throw new Error("Param not a number: "+r+","+c.text);a[a.length]=+c.text}if(typeof ta[r]!="number")throw new Error("Bad segment: "+r);{const l={key:r,data:a};t.push(l),i+=s,o=n[i],r==="M"&&(r="L"),r==="m"&&(r="l")}}return t}function h_(e){let t=0,n=0,r=0,i=0;const o=[];for(const{key:s,data:a}of e)switch(s){case"M":o.push({key:"M",data:[...a]}),[t,n]=a,[r,i]=a;break;case"m":t+=a[0],n+=a[1],o.push({key:"M",data:[t,n]}),r=t,i=n;break;case"L":o.push({key:"L",data:[...a]}),[t,n]=a;break;case"l":t+=a[0],n+=a[1],o.push({key:"L",data:[t,n]});break;case"C":o.push({key:"C",data:[...a]}),t=a[4],n=a[5];break;case"c":{const l=a.map(((c,u)=>u%2?c+n:c+t));o.push({key:"C",data:l}),t=l[4],n=l[5];break}case"Q":o.push({key:"Q",data:[...a]}),t=a[2],n=a[3];break;case"q":{const l=a.map(((c,u)=>u%2?c+n:c+t));o.push({key:"Q",data:l}),t=l[2],n=l[3];break}case"A":o.push({key:"A",data:[...a]}),t=a[5],n=a[6];break;case"a":t+=a[5],n+=a[6],o.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],t,n]});break;case"H":o.push({key:"H",data:[...a]}),t=a[0];break;case"h":t+=a[0],o.push({key:"H",data:[t]});break;case"V":o.push({key:"V",data:[...a]}),n=a[0];break;case"v":n+=a[0],o.push({key:"V",data:[n]});break;case"S":o.push({key:"S",data:[...a]}),t=a[2],n=a[3];break;case"s":{const l=a.map(((c,u)=>u%2?c+n:c+t));o.push({key:"S",data:l}),t=l[2],n=l[3];break}case"T":o.push({key:"T",data:[...a]}),t=a[0],n=a[1];break;case"t":t+=a[0],n+=a[1],o.push({key:"T",data:[t,n]});break;case"Z":case"z":o.push({key:"Z",data:[]}),t=r,n=i}return o}function f_(e){const t=[];let n="",r=0,i=0,o=0,s=0,a=0,l=0;for(const{key:c,data:u}of e){switch(c){case"M":t.push({key:"M",data:[...u]}),[r,i]=u,[o,s]=u;break;case"C":t.push({key:"C",data:[...u]}),r=u[4],i=u[5],a=u[2],l=u[3];break;case"L":t.push({key:"L",data:[...u]}),[r,i]=u;break;case"H":r=u[0],t.push({key:"L",data:[r,i]});break;case"V":i=u[0],t.push({key:"L",data:[r,i]});break;case"S":{let h=0,f=0;n==="C"||n==="S"?(h=r+(r-a),f=i+(i-l)):(h=r,f=i),t.push({key:"C",data:[h,f,...u]}),a=u[0],l=u[1],r=u[2],i=u[3];break}case"T":{const[h,f]=u;let d=0,p=0;n==="Q"||n==="T"?(d=r+(r-a),p=i+(i-l)):(d=r,p=i);const g=r+2*(d-r)/3,m=i+2*(p-i)/3,v=h+2*(d-h)/3,b=f+2*(p-f)/3;t.push({key:"C",data:[g,m,v,b,h,f]}),a=d,l=p,r=h,i=f;break}case"Q":{const[h,f,d,p]=u,g=r+2*(h-r)/3,m=i+2*(f-i)/3,v=d+2*(h-d)/3,b=p+2*(f-p)/3;t.push({key:"C",data:[g,m,v,b,d,p]}),a=h,l=f,r=d,i=p;break}case"A":{const h=Math.abs(u[0]),f=Math.abs(u[1]),d=u[2],p=u[3],g=u[4],m=u[5],v=u[6];h===0||f===0?(t.push({key:"C",data:[r,i,m,v,m,v]}),r=m,i=v):(r!==m||i!==v)&&(d_(r,i,m,v,h,f,d,p,g).forEach((function(b){t.push({key:"C",data:b})})),r=m,i=v);break}case"Z":t.push({key:"Z",data:[]}),r=o,i=s}n=c}return t}function _o(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}function d_(e,t,n,r,i,o,s,a,l,c){const u=(h=s,Math.PI*h/180);var h;let f=[],d=0,p=0,g=0,m=0;if(c)[d,p,g,m]=c;else{[e,t]=_o(e,t,-u),[n,r]=_o(n,r,-u);const E=(e-n)/2,A=(t-r)/2;let T=E*E/(i*i)+A*A/(o*o);T>1&&(T=Math.sqrt(T),i*=T,o*=T);const N=i*i,H=o*o,D=N*H-N*A*A-H*E*E,B=N*A*A+H*E*E,F=(a===l?-1:1)*Math.sqrt(Math.abs(D/B));g=F*i*A/o+(e+n)/2,m=F*-o*E/i+(t+r)/2,d=Math.asin(parseFloat(((t-m)/o).toFixed(9))),p=Math.asin(parseFloat(((r-m)/o).toFixed(9))),e<g&&(d=Math.PI-d),n<g&&(p=Math.PI-p),d<0&&(d=2*Math.PI+d),p<0&&(p=2*Math.PI+p),l&&d>p&&(d-=2*Math.PI),!l&&p>d&&(p-=2*Math.PI)}let v=p-d;if(Math.abs(v)>120*Math.PI/180){const E=p,A=n,T=r;p=l&&p>d?d+120*Math.PI/180*1:d+120*Math.PI/180*-1,f=d_(n=g+i*Math.cos(p),r=m+o*Math.sin(p),A,T,i,o,s,0,l,[p,E,g,m])}v=p-d;const b=Math.cos(d),_=Math.sin(d),x=Math.cos(p),w=Math.sin(p),C=Math.tan(v/4),P=4/3*i*C,O=4/3*o*C,$=[e,t],S=[e+P*_,t-O*b],M=[n+P*w,r-O*x],I=[n,r];if(S[0]=2*$[0]-S[0],S[1]=2*$[1]-S[1],c)return[S,M,I].concat(f);{f=[S,M,I].concat(f);const E=[];for(let A=0;A<f.length;A+=3){const T=_o(f[A][0],f[A][1],u),N=_o(f[A+1][0],f[A+1][1],u),H=_o(f[A+2][0],f[A+2][1],u);E.push([T[0],T[1],N[0],N[1],H[0],H[1]])}return E}}const wq={randOffset:function(e,t){return ke(e,t)},randOffsetWithRange:function(e,t,n){return ra(e,t,n)},ellipse:function(e,t,n,r,i){const o=m_(n,r,i);return Zu(e,t,i,o).opset},doubleLineOps:function(e,t,n,r,i){return hr(e,t,n,r,i,!0)}};function p_(e,t,n,r,i){return{type:"path",ops:hr(e,t,n,r,i)}}function na(e,t,n){const r=(e||[]).length;if(r>2){const i=[];for(let o=0;o<r-1;o++)i.push(...hr(e[o][0],e[o][1],e[o+1][0],e[o+1][1],n));return t&&i.push(...hr(e[r-1][0],e[r-1][1],e[0][0],e[0][1],n)),{type:"path",ops:i}}return r===2?p_(e[0][0],e[0][1],e[1][0],e[1][1],n):{type:"path",ops:[]}}function xq(e,t,n,r,i){return(function(o,s){return na(o,!0,s)})([[e,t],[e+n,t],[e+n,t+r],[e,t+r]],i)}function g_(e,t){if(e.length){const n=typeof e[0][0]=="number"?[e]:e,r=ia(n[0],1*(1+.2*t.roughness),t),i=t.disableMultiStroke?[]:ia(n[0],1.5*(1+.22*t.roughness),b_(t));for(let o=1;o<n.length;o++){const s=n[o];if(s.length){const a=ia(s,1*(1+.2*t.roughness),t),l=t.disableMultiStroke?[]:ia(s,1.5*(1+.22*t.roughness),b_(t));for(const c of a)c.op!=="move"&&r.push(c);for(const c of l)c.op!=="move"&&i.push(c)}}return{type:"path",ops:r.concat(i)}}return{type:"path",ops:[]}}function m_(e,t,n){const r=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),i=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),o=2*Math.PI/i;let s=Math.abs(e/2),a=Math.abs(t/2);const l=1-n.curveFitting;return s+=ke(s*l,n),a+=ke(a*l,n),{increment:o,rx:s,ry:a}}function Zu(e,t,n,r){const[i,o]=w_(r.increment,e,t,r.rx,r.ry,1,r.increment*ra(.1,ra(.4,1,n),n),n);let s=oa(i,null,n);if(!n.disableMultiStroke&&n.roughness!==0){const[a]=w_(r.increment,e,t,r.rx,r.ry,1.5,0,n),l=oa(a,null,n);s=s.concat(l)}return{estimatedPoints:o,opset:{type:"path",ops:s}}}function y_(e,t,n,r,i,o,s,a,l){const c=e,u=t;let h=Math.abs(n/2),f=Math.abs(r/2);h+=ke(.01*h,l),f+=ke(.01*f,l);let d=i,p=o;for(;d<0;)d+=2*Math.PI,p+=2*Math.PI;p-d>2*Math.PI&&(d=0,p=2*Math.PI);const g=2*Math.PI/l.curveStepCount,m=Math.min(g/2,(p-d)/2),v=x_(m,c,u,h,f,d,p,1,l);if(!l.disableMultiStroke){const b=x_(m,c,u,h,f,d,p,1.5,l);v.push(...b)}return s&&(a?v.push(...hr(c,u,c+h*Math.cos(d),u+f*Math.sin(d),l),...hr(c,u,c+h*Math.cos(p),u+f*Math.sin(p),l)):v.push({op:"lineTo",data:[c,u]},{op:"lineTo",data:[c+h*Math.cos(d),u+f*Math.sin(d)]})),{type:"path",ops:v}}function v_(e,t){const n=f_(h_(Ku(e))),r=[];let i=[0,0],o=[0,0];for(const{key:s,data:a}of n)switch(s){case"M":o=[a[0],a[1]],i=[a[0],a[1]];break;case"L":r.push(...hr(o[0],o[1],a[0],a[1],t)),o=[a[0],a[1]];break;case"C":{const[l,c,u,h,f,d]=a;r.push(...Cq(l,c,u,h,f,d,o,t)),o=[f,d];break}case"Z":r.push(...hr(o[0],o[1],i[0],i[1],t)),o=[i[0],i[1]]}return{type:"path",ops:r}}function Qu(e,t){const n=[];for(const r of e)if(r.length){const i=t.maxRandomnessOffset||0,o=r.length;if(o>2){n.push({op:"move",data:[r[0][0]+ke(i,t),r[0][1]+ke(i,t)]});for(let s=1;s<o;s++)n.push({op:"lineTo",data:[r[s][0]+ke(i,t),r[s][1]+ke(i,t)]})}}return{type:"fillPath",ops:n}}function vi(e,t){return(function(n,r){let i=n.fillStyle||"hachure";if(!en[i])switch(i){case"zigzag":en[i]||(en[i]=new pq(r));break;case"cross-hatch":en[i]||(en[i]=new gq(r));break;case"dots":en[i]||(en[i]=new mq(r));break;case"dashed":en[i]||(en[i]=new yq(r));break;case"zigzag-line":en[i]||(en[i]=new vq(r));break;default:i="hachure",en[i]||(en[i]=new Yu(r))}return en[i]})(t,wq).fillPolygons(e,t)}function b_(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function __(e){return e.randomizer||(e.randomizer=new bq(e.seed||0)),e.randomizer.next()}function ra(e,t,n,r=1){return n.roughness*r*(__(n)*(t-e)+e)}function ke(e,t,n=1){return ra(-e,e,t,n)}function hr(e,t,n,r,i,o=!1){const s=o?i.disableMultiStrokeFill:i.disableMultiStroke,a=Ju(e,t,n,r,i,!0,!1);if(s)return a;const l=Ju(e,t,n,r,i,!0,!0);return a.concat(l)}function Ju(e,t,n,r,i,o,s){const a=Math.pow(e-n,2)+Math.pow(t-r,2),l=Math.sqrt(a);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>a&&(u=l/10);const h=u/2,f=.2+.2*__(i);let d=i.bowing*i.maxRandomnessOffset*(r-t)/200,p=i.bowing*i.maxRandomnessOffset*(e-n)/200;d=ke(d,i,c),p=ke(p,i,c);const g=[],m=()=>ke(h,i,c),v=()=>ke(u,i,c),b=i.preserveVertices;return s?g.push({op:"move",data:[e+(b?0:m()),t+(b?0:m())]}):g.push({op:"move",data:[e+(b?0:ke(u,i,c)),t+(b?0:ke(u,i,c))]}),s?g.push({op:"bcurveTo",data:[d+e+(n-e)*f+m(),p+t+(r-t)*f+m(),d+e+2*(n-e)*f+m(),p+t+2*(r-t)*f+m(),n+(b?0:m()),r+(b?0:m())]}):g.push({op:"bcurveTo",data:[d+e+(n-e)*f+v(),p+t+(r-t)*f+v(),d+e+2*(n-e)*f+v(),p+t+2*(r-t)*f+v(),n+(b?0:v()),r+(b?0:v())]}),g}function ia(e,t,n){if(!e.length)return[];const r=[];r.push([e[0][0]+ke(t,n),e[0][1]+ke(t,n)]),r.push([e[0][0]+ke(t,n),e[0][1]+ke(t,n)]);for(let i=1;i<e.length;i++)r.push([e[i][0]+ke(t,n),e[i][1]+ke(t,n)]),i===e.length-1&&r.push([e[i][0]+ke(t,n),e[i][1]+ke(t,n)]);return oa(r,null,n)}function oa(e,t,n){const r=e.length,i=[];if(r>3){const o=[],s=1-n.curveTightness;i.push({op:"move",data:[e[1][0],e[1][1]]});for(let a=1;a+2<r;a++){const l=e[a];o[0]=[l[0],l[1]],o[1]=[l[0]+(s*e[a+1][0]-s*e[a-1][0])/6,l[1]+(s*e[a+1][1]-s*e[a-1][1])/6],o[2]=[e[a+1][0]+(s*e[a][0]-s*e[a+2][0])/6,e[a+1][1]+(s*e[a][1]-s*e[a+2][1])/6],o[3]=[e[a+1][0],e[a+1][1]],i.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}}else r===3?(i.push({op:"move",data:[e[1][0],e[1][1]]}),i.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):r===2&&i.push(...Ju(e[0][0],e[0][1],e[1][0],e[1][1],n,!0,!0));return i}function w_(e,t,n,r,i,o,s,a){const l=[],c=[];if(a.roughness===0){e/=4,c.push([t+r*Math.cos(-e),n+i*Math.sin(-e)]);for(let u=0;u<=2*Math.PI;u+=e){const h=[t+r*Math.cos(u),n+i*Math.sin(u)];l.push(h),c.push(h)}c.push([t+r*Math.cos(0),n+i*Math.sin(0)]),c.push([t+r*Math.cos(e),n+i*Math.sin(e)])}else{const u=ke(.5,a)-Math.PI/2;c.push([ke(o,a)+t+.9*r*Math.cos(u-e),ke(o,a)+n+.9*i*Math.sin(u-e)]);const h=2*Math.PI+u-.01;for(let f=u;f<h;f+=e){const d=[ke(o,a)+t+r*Math.cos(f),ke(o,a)+n+i*Math.sin(f)];l.push(d),c.push(d)}c.push([ke(o,a)+t+r*Math.cos(u+2*Math.PI+.5*s),ke(o,a)+n+i*Math.sin(u+2*Math.PI+.5*s)]),c.push([ke(o,a)+t+.98*r*Math.cos(u+s),ke(o,a)+n+.98*i*Math.sin(u+s)]),c.push([ke(o,a)+t+.9*r*Math.cos(u+.5*s),ke(o,a)+n+.9*i*Math.sin(u+.5*s)])}return[c,l]}function x_(e,t,n,r,i,o,s,a,l){const c=o+ke(.1,l),u=[];u.push([ke(a,l)+t+.9*r*Math.cos(c-e),ke(a,l)+n+.9*i*Math.sin(c-e)]);for(let h=c;h<=s;h+=e)u.push([ke(a,l)+t+r*Math.cos(h),ke(a,l)+n+i*Math.sin(h)]);return u.push([t+r*Math.cos(s),n+i*Math.sin(s)]),u.push([t+r*Math.cos(s),n+i*Math.sin(s)]),oa(u,null,l)}function Cq(e,t,n,r,i,o,s,a){const l=[],c=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let u=[0,0];const h=a.disableMultiStroke?1:2,f=a.preserveVertices;for(let d=0;d<h;d++)d===0?l.push({op:"move",data:[s[0],s[1]]}):l.push({op:"move",data:[s[0]+(f?0:ke(c[0],a)),s[1]+(f?0:ke(c[0],a))]}),u=f?[i,o]:[i+ke(c[d],a),o+ke(c[d],a)],l.push({op:"bcurveTo",data:[e+ke(c[d],a),t+ke(c[d],a),n+ke(c[d],a),r+ke(c[d],a),u[0],u[1]]});return l}function wo(e){return[...e]}function C_(e,t=0){const n=e.length;if(n<3)throw new Error("A curve must have at least three points.");const r=[];if(n===3)r.push(wo(e[0]),wo(e[1]),wo(e[2]),wo(e[2]));else{const i=[];i.push(e[0],e[0]);for(let a=1;a<e.length;a++)i.push(e[a]),a===e.length-1&&i.push(e[a]);const o=[],s=1-t;r.push(wo(i[0]));for(let a=1;a+2<i.length;a++){const l=i[a];o[0]=[l[0],l[1]],o[1]=[l[0]+(s*i[a+1][0]-s*i[a-1][0])/6,l[1]+(s*i[a+1][1]-s*i[a-1][1])/6],o[2]=[i[a+1][0]+(s*i[a][0]-s*i[a+2][0])/6,i[a+1][1]+(s*i[a][1]-s*i[a+2][1])/6],o[3]=[i[a+1][0],i[a+1][1]],r.push(o[1],o[2],o[3])}}return r}function sa(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function Pq(e,t,n){const r=sa(t,n);if(r===0)return sa(e,t);let i=((e[0]-t[0])*(n[0]-t[0])+(e[1]-t[1])*(n[1]-t[1]))/r;return i=Math.max(0,Math.min(1,i)),sa(e,kr(t,n,i))}function kr(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n]}function eh(e,t,n,r){const i=r||[];if((function(a,l){const c=a[l+0],u=a[l+1],h=a[l+2],f=a[l+3];let d=3*u[0]-2*c[0]-f[0];d*=d;let p=3*u[1]-2*c[1]-f[1];p*=p;let g=3*h[0]-2*f[0]-c[0];g*=g;let m=3*h[1]-2*f[1]-c[1];return m*=m,d<g&&(d=g),p<m&&(p=m),d+p})(e,t)<n){const a=e[t+0];i.length?(o=i[i.length-1],s=a,Math.sqrt(sa(o,s))>1&&i.push(a)):i.push(a),i.push(e[t+3])}else{const l=e[t+0],c=e[t+1],u=e[t+2],h=e[t+3],f=kr(l,c,.5),d=kr(c,u,.5),p=kr(u,h,.5),g=kr(f,d,.5),m=kr(d,p,.5),v=kr(g,m,.5);eh([l,f,g,v],0,n,i),eh([v,m,p,h],0,n,i)}var o,s;return i}function Oq(e,t){return aa(e,0,e.length,t)}function aa(e,t,n,r,i){const o=i||[],s=e[t],a=e[n-1];let l=0,c=1;for(let u=t+1;u<n-1;++u){const h=Pq(e[u],s,a);h>l&&(l=h,c=u)}return Math.sqrt(l)>r?(aa(e,t,c+1,r,o),aa(e,c,n,r,o)):(o.length||o.push(s),o.push(a)),o}function th(e,t=.15,n){const r=[],i=(e.length-1)/3;for(let o=0;o<i;o++)eh(e,3*o,t,r);return n&&n>0?aa(r,0,r.length,n):r}const ln="none";class la{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*ds(2,31))}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,n,r){return{shape:t,sets:n||[],options:r||this.defaultOptions}}line(t,n,r,i,o){const s=this._o(o);return this._d("line",[p_(t,n,r,i,s)],s)}rectangle(t,n,r,i,o){const s=this._o(o),a=[],l=xq(t,n,r,i,s);if(s.fill){const c=[[t,n],[t+r,n],[t+r,n+i],[t,n+i]];s.fillStyle==="solid"?a.push(Qu([c],s)):a.push(vi([c],s))}return s.stroke!==ln&&a.push(l),this._d("rectangle",a,s)}ellipse(t,n,r,i,o){const s=this._o(o),a=[],l=m_(r,i,s),c=Zu(t,n,s,l);if(s.fill)if(s.fillStyle==="solid"){const u=Zu(t,n,s,l).opset;u.type="fillPath",a.push(u)}else a.push(vi([c.estimatedPoints],s));return s.stroke!==ln&&a.push(c.opset),this._d("ellipse",a,s)}circle(t,n,r,i){const o=this.ellipse(t,n,r,r,i);return o.shape="circle",o}linearPath(t,n){const r=this._o(n);return this._d("linearPath",[na(t,!1,r)],r)}arc(t,n,r,i,o,s,a=!1,l){const c=this._o(l),u=[],h=y_(t,n,r,i,o,s,a,!0,c);if(a&&c.fill)if(c.fillStyle==="solid"){const f=Object.assign({},c);f.disableMultiStroke=!0;const d=y_(t,n,r,i,o,s,!0,!1,f);d.type="fillPath",u.push(d)}else u.push((function(f,d,p,g,m,v,b){const _=f,x=d;let w=Math.abs(p/2),C=Math.abs(g/2);w+=ke(.01*w,b),C+=ke(.01*C,b);let P=m,O=v;for(;P<0;)P+=2*Math.PI,O+=2*Math.PI;O-P>2*Math.PI&&(P=0,O=2*Math.PI);const $=(O-P)/b.curveStepCount,S=[];for(let M=P;M<=O;M+=$)S.push([_+w*Math.cos(M),x+C*Math.sin(M)]);return S.push([_+w*Math.cos(O),x+C*Math.sin(O)]),S.push([_,x]),vi([S],b)})(t,n,r,i,o,s,c));return c.stroke!==ln&&u.push(h),this._d("arc",u,c)}curve(t,n){const r=this._o(n),i=[],o=g_(t,r);if(r.fill&&r.fill!==ln)if(r.fillStyle==="solid"){const s=g_(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{const s=[],a=t;if(a.length){const l=typeof a[0][0]=="number"?[a]:a;for(const c of l)c.length<3?s.push(...c):c.length===3?s.push(...th(C_([c[0],c[0],c[1],c[2]]),10,(1+r.roughness)/2)):s.push(...th(C_(c),10,(1+r.roughness)/2))}s.length&&i.push(vi([s],r))}return r.stroke!==ln&&i.push(o),this._d("curve",i,r)}polygon(t,n){const r=this._o(n),i=[],o=na(t,!0,r);return r.fill&&(r.fillStyle==="solid"?i.push(Qu([t],r)):i.push(vi([t],r))),r.stroke!==ln&&i.push(o),this._d("polygon",i,r)}path(t,n){const r=this._o(n),i=[];if(!t)return this._d("path",i,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=r.fill&&r.fill!=="transparent"&&r.fill!==ln,s=r.stroke!==ln,a=!!(r.simplification&&r.simplification<1),l=(function(u,h,f){const d=f_(h_(Ku(u))),p=[];let g=[],m=[0,0],v=[];const b=()=>{v.length>=4&&g.push(...th(v,h)),v=[]},_=()=>{b(),g.length&&(p.push(g),g=[])};for(const{key:w,data:C}of d)switch(w){case"M":_(),m=[C[0],C[1]],g.push(m);break;case"L":b(),g.push([C[0],C[1]]);break;case"C":if(!v.length){const P=g.length?g[g.length-1]:m;v.push([P[0],P[1]])}v.push([C[0],C[1]]),v.push([C[2],C[3]]),v.push([C[4],C[5]]);break;case"Z":b(),g.push([m[0],m[1]])}if(_(),!f)return p;const x=[];for(const w of p){const C=Oq(w,f);C.length&&x.push(C)}return x})(t,1,a?4-4*(r.simplification||1):(1+r.roughness)/2),c=v_(t,r);if(o)if(r.fillStyle==="solid")if(l.length===1){const u=v_(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(u.ops)})}else i.push(Qu(l,r));else i.push(vi(l,r));return s&&(a?l.forEach((u=>{i.push(na(u,!1,r))})):i.push(c)),this._d("path",i,r)}opsToPath(t,n){let r="";for(const i of t.ops){const o=typeof n=="number"&&n>=0?i.data.map((s=>+s.toFixed(n))):i.data;switch(i.op){case"move":r+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":r+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":r+=`L${o[0]} ${o[1]} `}}return r.trim()}toPaths(t){const n=t.sets||[],r=t.options||this.defaultOptions,i=[];for(const o of n){let s=null;switch(o.type){case"path":s={d:this.opsToPath(o),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:ln};break;case"fillPath":s={d:this.opsToPath(o),stroke:ln,strokeWidth:0,fill:r.fill||ln};break;case"fillSketch":s=this.fillSketch(o,r)}s&&i.push(s)}return i}fillSketch(t,n){let r=n.fillWeight;return r<0&&(r=n.strokeWidth/2),{d:this.opsToPath(t),stroke:n.fill||ln,strokeWidth:r,fill:ln}}_mergedShape(t){return t.filter(((n,r)=>r===0||n.op!=="move"))}}class Sq{constructor(t,n){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new la(n)}draw(t){const n=t.sets||[],r=t.options||this.getDefaultOptions(),i=this.ctx,o=t.options.fixedDecimalPlaceDigits;for(const s of n)switch(s.type){case"path":i.save(),i.strokeStyle=r.stroke==="none"?"transparent":r.stroke,i.lineWidth=r.strokeWidth,r.strokeLineDash&&i.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(i.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(i,s,o),i.restore();break;case"fillPath":{i.save(),i.fillStyle=r.fill||"";const a=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(i,s,o,a),i.restore();break}case"fillSketch":this.fillSketch(i,s,r)}}fillSketch(t,n,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2),t.save(),r.fillLineDash&&t.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(t.lineDashOffset=r.fillLineDashOffset),t.strokeStyle=r.fill||"",t.lineWidth=i,this._drawToContext(t,n,r.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,n,r,i="nonzero"){t.beginPath();for(const o of n.ops){const s=typeof r=="number"&&r>=0?o.data.map((a=>+a.toFixed(r))):o.data;switch(o.op){case"move":t.moveTo(s[0],s[1]);break;case"bcurveTo":t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":t.lineTo(s[0],s[1])}}n.type==="fillPath"?t.fill(i):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,n,r,i,o){const s=this.gen.line(t,n,r,i,o);return this.draw(s),s}rectangle(t,n,r,i,o){const s=this.gen.rectangle(t,n,r,i,o);return this.draw(s),s}ellipse(t,n,r,i,o){const s=this.gen.ellipse(t,n,r,i,o);return this.draw(s),s}circle(t,n,r,i){const o=this.gen.circle(t,n,r,i);return this.draw(o),o}linearPath(t,n){const r=this.gen.linearPath(t,n);return this.draw(r),r}polygon(t,n){const r=this.gen.polygon(t,n);return this.draw(r),r}arc(t,n,r,i,o,s,a=!1,l){const c=this.gen.arc(t,n,r,i,o,s,a,l);return this.draw(c),c}curve(t,n){const r=this.gen.curve(t,n);return this.draw(r),r}path(t,n){const r=this.gen.path(t,n);return this.draw(r),r}}const ca="http://www.w3.org/2000/svg";class $q{constructor(t,n){this.svg=t,this.gen=new la(n)}draw(t){const n=t.sets||[],r=t.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,o=i.createElementNS(ca,"g"),s=t.options.fixedDecimalPlaceDigits;for(const a of n){let l=null;switch(a.type){case"path":l=i.createElementNS(ca,"path"),l.setAttribute("d",this.opsToPath(a,s)),l.setAttribute("stroke",r.stroke),l.setAttribute("stroke-width",r.strokeWidth+""),l.setAttribute("fill","none"),r.strokeLineDash&&l.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":l=i.createElementNS(ca,"path"),l.setAttribute("d",this.opsToPath(a,s)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",r.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(i,a,r)}l&&o.appendChild(l)}return o}fillSketch(t,n,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2);const o=t.createElementNS(ca,"path");return o.setAttribute("d",this.opsToPath(n,r.fixedDecimalPlaceDigits)),o.setAttribute("stroke",r.fill||""),o.setAttribute("stroke-width",i+""),o.setAttribute("fill","none"),r.fillLineDash&&o.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,n){return this.gen.opsToPath(t,n)}line(t,n,r,i,o){const s=this.gen.line(t,n,r,i,o);return this.draw(s)}rectangle(t,n,r,i,o){const s=this.gen.rectangle(t,n,r,i,o);return this.draw(s)}ellipse(t,n,r,i,o){const s=this.gen.ellipse(t,n,r,i,o);return this.draw(s)}circle(t,n,r,i){const o=this.gen.circle(t,n,r,i);return this.draw(o)}linearPath(t,n){const r=this.gen.linearPath(t,n);return this.draw(r)}polygon(t,n){const r=this.gen.polygon(t,n);return this.draw(r)}arc(t,n,r,i,o,s,a=!1,l){const c=this.gen.arc(t,n,r,i,o,s,a,l);return this.draw(c)}curve(t,n){const r=this.gen.curve(t,n);return this.draw(r)}path(t,n){const r=this.gen.path(t,n);return this.draw(r)}}var Eq={canvas:(e,t)=>new Sq(e,t),svg:(e,t)=>new $q(e,t),generator:e=>new la(e),newSeed:()=>la.newSeed()},Mq=Object.defineProperty,P_=Object.getOwnPropertySymbols,Iq=Object.prototype.hasOwnProperty,Aq=Object.prototype.propertyIsEnumerable,O_=(e,t,n)=>t in e?Mq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tq=(e,t)=>{for(var n in t||(t={}))Iq.call(t,n)&&O_(e,n,t[n]);if(P_)for(var n of P_(t))Aq.call(t,n)&&O_(e,n,t[n]);return e};function Rq(e,t,n){if(!e||!t){console.warn("Invalid node or svg element");return}const r=Eq.svg(t,{options:{seed:1e3}}),i=Ae("g");e.hasAttribute("transform")&&i.setAttribute("transform",e.getAttribute("transform")||"");const o=e.cloneNode();ut(o,{opacity:.5}),o.hasAttribute("transform")&&o.removeAttribute("transform"),o.dataset.elementType="rough-volume",i.appendChild(o);const s=Lq(r,e,n);if(s){const{element:l,svgAttributes:c}=s;l.dataset.elementType="rough-element",l.style.pointerEvents="none",kq(l,c),i.appendChild(l)}e.id&&(i.id=e.id),Array.from(e.classList).forEach(l=>{i.classList.contains(l)||i.classList.add(l)}),Array.from(e.attributes).forEach(l=>{l.name.startsWith("data-")&&i.setAttribute(l.name,l.value)}),i.childElementCount>0?e.replaceWith(i):e.remove()}function kq(e,t){t.opacity!==void 0&&e.setAttribute("opacity",String(t.opacity)),t.fillOpacity!==void 0&&e.setAttribute("fill-opacity",String(t.fillOpacity)),t.strokeOpacity!==void 0&&e.setAttribute("stroke-opacity",String(t.strokeOpacity)),t.strokeLinecap&&e.setAttribute("stroke-linecap",t.strokeLinecap),t.strokeLinejoin&&e.setAttribute("stroke-linejoin",t.strokeLinejoin),t.strokeDasharray&&e.setAttribute("stroke-dasharray",t.strokeDasharray),t.filter&&e.setAttribute("filter",t.filter),t.clipPath&&e.setAttribute("clip-path",t.clipPath),t.mask&&e.setAttribute("mask",t.mask)}function Lq(e,t,n){const r=t.nodeName.toLowerCase(),i=(o,s)=>{const a=cn(o,[...s,"fill","fill-opacity","stroke","stroke-opacity","stroke-width","stroke-dasharray","stroke-linecap","stroke-linejoin","opacity","filter","clip-path","mask"],!0),l={},c=Tq({},n),u={};s.forEach(P=>{a[P]!==void 0&&(l[P]=a[P])});const{fill:h,"fill-opacity":f,stroke:d,"stroke-opacity":p,"stroke-width":g,"stroke-dasharray":m,"stroke-linecap":v,"stroke-linejoin":b,opacity:_,filter:x,"clip-path":w,mask:C}=a;if(c.fill=h||"none",c.stroke=d||(h&&h!=="none"?h:"currentColor"),g&&(c.strokeWidth=parseFloat(g)),m&&m!=="none"){const P=m.split(/[\s,]+/).map(O=>parseFloat(O)).filter(O=>!isNaN(O));P.length>0&&(c.strokeLineDash=P)}return f&&(u.fillOpacity=parseFloat(f)),p&&(u.strokeOpacity=parseFloat(p)),_&&(u.opacity=parseFloat(_)),v&&(u.strokeLinecap=v),b&&(u.strokeLinejoin=b),m&&m!=="none"&&(u.strokeDasharray=m),x&&(u.filter=x),w&&(u.clipPath=w),C&&(u.mask=C),[l,c,u]};try{let o=null,s={};switch(r){case"circle":{const[a,l,c]=i(t,["cx","cy","r"]),u=parseFloat(a.cx)||0,h=parseFloat(a.cy)||0,f=parseFloat(a.r)||0;o=e.circle(u,h,f*2,l),s=c;break}case"ellipse":{const[a,l,c]=i(t,["cx","cy","rx","ry"]),u=parseFloat(a.cx)||0,h=parseFloat(a.cy)||0,f=parseFloat(a.rx)||0,d=parseFloat(a.ry)||0;o=e.ellipse(u,h,f*2,d*2,l),s=c;break}case"line":{const[a,l,c]=i(t,["x1","y1","x2","y2"]),u=parseFloat(a.x1)||0,h=parseFloat(a.y1)||0,f=parseFloat(a.x2)||0,d=parseFloat(a.y2)||0;o=e.line(u,h,f,d,l),s=c;break}case"rect":{const[a,l,c]=i(t,["x","y","width","height","rx","ry"]),u=parseFloat(a.x)||0,h=parseFloat(a.y)||0,f=parseFloat(a.width)||0,d=parseFloat(a.height)||0,p=parseFloat(a.rx)||0,g=parseFloat(a.ry)||0;if(p>0||g>0){const b=Nq(u,h,f,d,p||g,g||p);o=e.path(b,l)}else o=e.rectangle(u,h,f,d,l);s=c;break}case"path":{const[a,l,c]=i(t,["d"]),u=a.d||"";if(!u)return console.warn("Path element has no d attribute"),null;o=e.path(u,l),s=c;break}case"polygon":{const[a,l,c]=i(t,["points"]),u=S_(a.points||"");if(u.length<3)return console.warn("Polygon needs at least 3 points"),null;o=e.polygon(u,l),s=c;break}case"polyline":{const[a,l,c]=i(t,["points"]),u=S_(a.points||"");if(u.length<2)return console.warn("Polyline needs at least 2 points"),null;o=e.linearPath(u,l),s=c;break}default:return console.warn(`Unsupported shape type: ${r}`),null}return o?{element:o,svgAttributes:s}:null}catch(o){return console.error(`Error creating rough shape for ${r}:`,o),null}}function Nq(e,t,n,r,i,o){return i=Math.min(i,n/2),o=Math.min(o,r/2),`
14
+ </symbol>`)})}function FD(e){const t=e.trim();return/^(?:<\?xml[^>]*>\s*)?<svg[\s>]/i.test(t)||t.startsWith("<symbol")}function wi(e){if(!e||!FD(e))return null;const t=e.replace(/<svg(?=[\s/>])/i,"<symbol").replace(/<\/svg>/i,"</symbol>");return xi(t)}var BD=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});function WD(e){try{return!!new URL(e)}catch(t){return!1}}function VD(e,t){return!!(e.toLowerCase().includes("image/svg")||!e&&t==="svg")}function Xb(e,t){return BD(this,null,function*(){if(!e||!WD(e))return null;const n=yield Sa(e);if(!n.ok)throw new Error("Failed to load resource");const r=n.headers.get("Content-Type")||"";if(VD(r,t)){const s=yield n.text();return wi(s)}const i=yield n.blob(),o=yield GD(i);return _o(o)})}function GD(e){return new Promise((t,n)=>{const r=new FileReader;r.onloadend=()=>{t(r.result)},r.onerror=n,r.readAsDataURL(e)})}var Ub=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});const YD=e=>Ub(null,null,function*(){var t;try{const n=new URLSearchParams({text:e,topK:"1"}),r=`${lA}?${n.toString()}`,i=yield Sa(r);if(!i.ok)return null;const o=yield i.json();return!(o!=null&&o.status)||!Array.isArray((t=o.data)==null?void 0:t.data)?null:o.data.data[0]||null}catch(n){return console.error(`Failed to query icon for "${e}":`,n),null}});function XD(e){return e.startsWith("data:")}function UD(e){const t=e.trim();return t.startsWith("<svg")||t.startsWith("<symbol")}function Kb(e,t){return Ub(this,null,function*(){var n;if(!e)return null;const r=yield YD(e);if(!r)return null;if(UD(r))return wi(r);if(XD(r)){const i=((n=r.match(/^data:([^;]+)/))==null?void 0:n[1])||"",o=r.includes(";base64,");if(i==="image/svg+xml"&&!o){const s=r.indexOf(","),a=s>=0?r.slice(s+1):r;return wi(a)}return _o(r)}return Xb(r,t)})}let Zb=null;function KD(e){Zb=e}function ZD(){return Zb}function QD(e){if(!e.startsWith("data:"))return null;const t=e.indexOf(",");if(t===-1)return null;const n=e.slice(5,t),r=e.slice(t+1),i=n.split(";"),o=i[0],s=i.includes("base64");return o==="image/svg+xml"&&!s?{source:"inline",format:"svg",encoding:"raw",data:r.startsWith("%3C")?decodeURIComponent(r):r}:o.startsWith("image/")?{source:"inline",format:o==="image/svg+xml"?"svg":"image",encoding:s?"base64":"data-uri",data:e}:null}const JD=new Set(["svg","png","jpg","jpeg","webp","gif"]);function eq(e){const t=e.trim();return t.startsWith("<svg")||t.startsWith("<symbol")}function tq(e){const t=e.toLowerCase();if(t.endsWith(".svg")||t.includes(".svg?"))return"svg";if(t.endsWith(".png")||t.endsWith(".jpg")||t.endsWith(".jpeg")||t.endsWith(".webp")||t.endsWith(".gif"))return"image"}function nq(e){var t;if(!e.startsWith("ref:"))return null;const n=e.slice(4),[r,...i]=n.split(":");if(!r||i.length===0)return null;let o;i.length>1&&JD.has(i[0].toLowerCase())&&(o=(t=i.shift())==null?void 0:t.toLowerCase());const s=i.join(":");if(!s)return null;const a=r==="url"?"remote":r;return a==="remote"?{source:"remote",format:o||tq(s)||void 0,data:s}:a==="search"?{source:"search",format:o||"svg",data:s}:a==="svg"?{source:"inline",format:"svg",data:s,encoding:"raw"}:{source:"custom",data:e,format:o}}function na(e){if(!e)return null;if(typeof e!="string"){if(e.source)return e;const r=e;return r.type==="image"?{source:"inline",format:"image",data:r.data}:r.type==="svg"?{source:"inline",format:"svg",encoding:"raw",data:r.data}:r.type==="remote"?{source:"remote",format:r.format,data:r.data}:r.type==="search"?{source:"search",format:r.format||"svg",data:r.data}:r.type==="custom"?{source:"custom",data:r.data}:null}const t=QD(e);if(t)return t;const n=nq(e);return n||(eq(e)?{source:"inline",format:"svg",encoding:"raw",data:e}:{source:"custom",data:e})}function eh(e){const t=typeof e=="string"?na(e):e;return t?"rsc-"+Zw(JSON.stringify(t)):null}function Qb(e){const t=eh(e);return t?`#${t}`:null}var th=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});function rq(e,t,n){return th(this,null,function*(){const r=na(t);if(!r)return null;r.scene||(r.scene=e);const{source:i,data:o,format:s,encoding:a}=r;let l=null;try{if(i==="inline"){const c=o.startsWith("data:");s==="svg"&&a==="raw"?l=wi(o):s==="svg"&&c?l=yield _o(o):c||s==="image"?l=yield _o(o):l=wi(o)}else if(i==="remote")l=yield Xb(o,s);else if(i==="search")l=yield Kb(o,s);else{const c=ZD();c&&(l=yield c(r))}}catch(c){l=null}return l||(yield Kb(iq(r,e,n),s))})}const Jb=new Map,ra=new WeakMap;function ew(e,t,n,r){return th(this,null,function*(){if(!e)return null;const i=na(n);if(!i)return null;const o=eh(i),s=`resource:${o}`,a=ra.get(e);if(a!=null&&a.has(o))return o;const l=Nb(e,s);if(l)return yield l;const c=th(null,null,function*(){const u=Jb.has(o)?Jb.get(o)||null:yield rq(t,i,r);if(!u)return null;ra.has(e)||ra.set(e,new Map);const h=ra.get(e);if(h.has(o))return o;const f=xa(e);return u.id=o,f.appendChild(u),h.set(o,u),o});return zb(e,s,c),yield c})}function iq(e,t,n){const r=t==="illus"?"illustration":"icon",i=ia(e.data)||ia(n==null?void 0:n.label)||ia(n==null?void 0:n.desc);if(i)return i;const o=ia(e.data);return!o||e.source==="inline"||o.startsWith("data:")||o.startsWith("<svg")||o.startsWith("<symbol")?r:o}function ia(e){if(typeof e!="string")return null;const t=e.trim();return t||null}var oq=Object.defineProperty,tw=Object.getOwnPropertySymbols,sq=Object.prototype.hasOwnProperty,aq=Object.prototype.propertyIsEnumerable,nw=(e,t,n)=>t in e?oq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oa=(e,t)=>{for(var n in t||(t={}))sq.call(t,n)&&nw(e,n,t[n]);if(tw)for(var n of tw(t))aq.call(t,n)&&nw(e,n,t[n]);return e};function lq(e,t,n,r){var i,o;const s=n.icon;if(!s)return null;const{themeConfig:a}=r,l=(i=n.attributes)==null?void 0:i.icon,c=oa(oa({},(o=a.item)==null?void 0:o.icon),l),u=wo(t,c);return cq(e,t,s,u,n)}function cq(e,t,n,r,i){return ew(e,"icon",n,i),Ej(n,oa(oa({},cn(t,["id","x","y","width","height","fill","stroke","data-element-type","data-indexes"])),r))}var uq=Object.defineProperty,hq=Object.defineProperties,fq=Object.getOwnPropertyDescriptors,sa=Object.getOwnPropertySymbols,rw=Object.prototype.hasOwnProperty,iw=Object.prototype.propertyIsEnumerable,ow=(e,t,n)=>t in e?uq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xo=(e,t)=>{for(var n in t||(t={}))rw.call(t,n)&&ow(e,n,t[n]);if(sa)for(var n of sa(t))iw.call(t,n)&&ow(e,n,t[n]);return e},sw=(e,t)=>hq(e,fq(t)),dq=(e,t)=>{var n={};for(var r in e)rw.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&sa)for(var r of sa(e))t.indexOf(r)<0&&iw.call(e,r)&&(n[r]=e[r]);return n};function aw(e,t,n,r,i={}){if(!n)return null;const o=na(n);if(!o)return null;const s=eh(o);i&&Object.keys(i).length>0&&ct(t,i);const a=gq(e,t,s);ew(e,"illus",o,r);const{data:l,color:c}=o;return mq(s,sw(xo(xo(xo({},yq(t)),c?{color:c}:{}),i),{"clip-path":`url(#${a})`}),l)}function pq(e,t,n){var r;const i=n.illus,o=(r=n.attributes)==null?void 0:r.illus;return aw(e,t,i,n,o)}function gq(e,t,n){const r=`clip-${n}-${kj()}`;if(e.querySelector(`#${r}`))return r;const i=xa(e),o=Ie("clipPath",{id:r}),s=t.cloneNode();return BH(s,["id","data-illus-bounds","data-element-type"]),o.appendChild(s),i.appendChild(o),r}function mq(e,t,n){const r=t,{"clip-path":i}=r,o=dq(r,["clip-path"]),{x:s="0",y:a="0",width:l="0",height:c="0"}=o,u=Ie("rect",{id:`${e}-volume`,"data-element-type":Ge.IllusVolume,x:s,y:a,width:l,height:c,fill:"transparent"}),h=Ie("g",{"data-element-type":Ge.IllusGroup,"clip-path":i,id:`${e}-group`});h.appendChild(u);const f=Ie("use",sw(xo({id:e,fill:"lightgray"},o),{href:Qb(n),"data-element-type":Ge.Illus}));return h.appendChild(f),h}function yq(e){const t=e.getAttribute("data-illus-bounds");if(!t)return xo({x:"0",y:"0",width:"0",height:"0"},cn(e,["x","y","width","height"]));const[n,r,i,o]=t.split(" ");return{x:n,y:r,width:i,height:o}}function aa(e){"@babel/helpers - typeof";return aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},aa(e)}var vq=/^\s+/,bq=/\s+$/;function be(e,t){if(e=e||"",t=t||{},e instanceof be)return e;if(!(this instanceof be))return new be(e,t);var n=wq(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}be.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,o,s,a;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),r<=.03928?s=r/12.92:s=Math.pow((r+.055)/1.055,2.4),i<=.03928?a=i/12.92:a=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*s+.0722*a},setAlpha:function(t){return this._a=dw(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=cw(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=cw(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=lw(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=lw(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return uw(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return Pq(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(wt(this._r,255)*100)+"%",g:Math.round(wt(this._g,255)*100)+"%",b:Math.round(wt(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(wt(this._r,255)*100)+"%, "+Math.round(wt(this._g,255)*100)+"%, "+Math.round(wt(this._b,255)*100)+"%)":"rgba("+Math.round(wt(this._r,255)*100)+"%, "+Math.round(wt(this._g,255)*100)+"%, "+Math.round(wt(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Nq[uw(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+hw(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=be(t);r="#"+hw(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,i=this._a<1&&this._a>=0,o=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return be(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(Eq,arguments)},brighten:function(){return this._applyModification(Mq,arguments)},darken:function(){return this._applyModification(Aq,arguments)},desaturate:function(){return this._applyModification(Sq,arguments)},saturate:function(){return this._applyModification(Oq,arguments)},greyscale:function(){return this._applyModification($q,arguments)},spin:function(){return this._applyModification(Iq,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(kq,arguments)},complement:function(){return this._applyCombination(Tq,arguments)},monochromatic:function(){return this._applyCombination(Lq,arguments)},splitcomplement:function(){return this._applyCombination(Rq,arguments)},triad:function(){return this._applyCombination(fw,[3])},tetrad:function(){return this._applyCombination(fw,[4])}},be.fromRatio=function(e,t){if(aa(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=Co(e[r]));e=n}return be(e,t)};function wq(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,s=!1,a=!1;return typeof e=="string"&&(e=Hq(e)),aa(e)=="object"&&(Qn(e.r)&&Qn(e.g)&&Qn(e.b)?(t=_q(e.r,e.g,e.b),s=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Qn(e.h)&&Qn(e.s)&&Qn(e.v)?(r=Co(e.s),i=Co(e.v),t=Cq(e.h,r,i),s=!0,a="hsv"):Qn(e.h)&&Qn(e.s)&&Qn(e.l)&&(r=Co(e.s),o=Co(e.l),t=xq(e.h,r,o),s=!0,a="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=dw(n),{ok:s,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function _q(e,t,n){return{r:wt(e,255)*255,g:wt(t,255)*255,b:wt(n,255)*255}}function lw(e,t,n){e=wt(e,255),t=wt(t,255),n=wt(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,s,a=(r+i)/2;if(r==i)o=s=0;else{var l=r-i;switch(s=a>.5?l/(2-r-i):l/(r+i),r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s,l:a}}function xq(e,t,n){var r,i,o;e=wt(e,360),t=wt(t,100),n=wt(n,100);function s(c,u,h){return h<0&&(h+=1),h>1&&(h-=1),h<1/6?c+(u-c)*6*h:h<1/2?u:h<2/3?c+(u-c)*(2/3-h)*6:c}if(t===0)r=i=o=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=s(l,a,e+1/3),i=s(l,a,e),o=s(l,a,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function cw(e,t,n){e=wt(e,255),t=wt(t,255),n=wt(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,s,a=r,l=r-i;if(s=r===0?0:l/r,r==i)o=0;else{switch(r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s,v:a}}function Cq(e,t,n){e=wt(e,360)*6,t=wt(t,100),n=wt(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),s=n*(1-i*t),a=n*(1-(1-i)*t),l=r%6,c=[n,s,o,o,a,n][l],u=[a,n,n,s,o,o][l],h=[o,o,a,n,n,s][l];return{r:c*255,g:u*255,b:h*255}}function uw(e,t,n,r){var i=[mn(Math.round(e).toString(16)),mn(Math.round(t).toString(16)),mn(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function Pq(e,t,n,r,i){var o=[mn(Math.round(e).toString(16)),mn(Math.round(t).toString(16)),mn(Math.round(n).toString(16)),mn(pw(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function hw(e,t,n,r){var i=[mn(pw(r)),mn(Math.round(e).toString(16)),mn(Math.round(t).toString(16)),mn(Math.round(n).toString(16))];return i.join("")}be.equals=function(e,t){return!e||!t?!1:be(e).toRgbString()==be(t).toRgbString()},be.random=function(){return be.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Sq(e,t){t=t===0?0:t||10;var n=be(e).toHsl();return n.s-=t/100,n.s=la(n.s),be(n)}function Oq(e,t){t=t===0?0:t||10;var n=be(e).toHsl();return n.s+=t/100,n.s=la(n.s),be(n)}function $q(e){return be(e).desaturate(100)}function Eq(e,t){t=t===0?0:t||10;var n=be(e).toHsl();return n.l+=t/100,n.l=la(n.l),be(n)}function Mq(e,t){t=t===0?0:t||10;var n=be(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),be(n)}function Aq(e,t){t=t===0?0:t||10;var n=be(e).toHsl();return n.l-=t/100,n.l=la(n.l),be(n)}function Iq(e,t){var n=be(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,be(n)}function Tq(e){var t=be(e).toHsl();return t.h=(t.h+180)%360,be(t)}function fw(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=be(e).toHsl(),r=[be(e)],i=360/t,o=1;o<t;o++)r.push(be({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function Rq(e){var t=be(e).toHsl(),n=t.h;return[be(e),be({h:(n+72)%360,s:t.s,l:t.l}),be({h:(n+216)%360,s:t.s,l:t.l})]}function kq(e,t,n){t=t||6,n=n||30;var r=be(e).toHsl(),i=360/n,o=[be(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(be(r));return o}function Lq(e,t){t=t||6;for(var n=be(e).toHsv(),r=n.h,i=n.s,o=n.v,s=[],a=1/t;t--;)s.push(be({h:r,s:i,v:o})),o=(o+a)%1;return s}be.mix=function(e,t,n){n=n===0?0:n||50;var r=be(e).toRgb(),i=be(t).toRgb(),o=n/100,s={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return be(s)},be.readability=function(e,t){var n=be(e),r=be(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},be.isReadable=function(e,t,n){var r=be.readability(e,t),i,o;switch(o=!1,i=jq(n),i.level+i.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o},be.mostReadable=function(e,t,n){var r=null,i=0,o,s,a,l;n=n||{},s=n.includeFallbackColors,a=n.level,l=n.size;for(var c=0;c<t.length;c++)o=be.readability(e,t[c]),o>i&&(i=o,r=be(t[c]));return be.isReadable(e,r,{level:a,size:l})||!s?r:(n.includeFallbackColors=!1,be.mostReadable(e,["#fff","#000"],n))};var nh=be.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Nq=be.hexNames=zq(nh);function zq(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function dw(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function wt(e,t){Dq(e)&&(e="100%");var n=qq(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function la(e){return Math.min(1,Math.max(0,e))}function an(e){return parseInt(e,16)}function Dq(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function qq(e){return typeof e=="string"&&e.indexOf("%")!=-1}function mn(e){return e.length==1?"0"+e:""+e}function Co(e){return e<=1&&(e=e*100+"%"),e}function pw(e){return Math.round(parseFloat(e)*255).toString(16)}function gw(e){return an(e)/255}var yn=(function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Qn(e){return!!yn.CSS_UNIT.exec(e)}function Hq(e){e=e.replace(vq,"").replace(bq,"").toLowerCase();var t=!1;if(nh[e])e=nh[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=yn.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=yn.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=yn.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=yn.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=yn.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=yn.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=yn.hex8.exec(e))?{r:an(n[1]),g:an(n[2]),b:an(n[3]),a:gw(n[4]),format:t?"name":"hex8"}:(n=yn.hex6.exec(e))?{r:an(n[1]),g:an(n[2]),b:an(n[3]),format:t?"name":"hex"}:(n=yn.hex4.exec(e))?{r:an(n[1]+""+n[1]),g:an(n[2]+""+n[2]),b:an(n[3]+""+n[3]),a:gw(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=yn.hex3.exec(e))?{r:an(n[1]+""+n[1]),g:an(n[2]+""+n[2]),b:an(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function jq(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var Fq=Object.defineProperty,mw=Object.getOwnPropertySymbols,Bq=Object.prototype.hasOwnProperty,Wq=Object.prototype.propertyIsEnumerable,yw=(e,t,n)=>t in e?Fq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vq=(e,t)=>{for(var n in t||(t={}))Bq.call(t,n)&&yw(e,n,t[n]);if(mw)for(var n of mw(t))Wq.call(t,n)&&yw(e,n,t[n]);return e};function vw(e,t,n,r){const i=e.getAttribute(r),o=Gq(i,n),{type:s,colors:a=[]}=o,l=a.length-1,c=a.map((d,p)=>typeof d=="string"?Ie("stop",{offset:`${p/l}`,"stop-color":d}):Ie("stop",{offset:`${d.offset}`,"stop-color":d.color})),u=Yq(o);if(s==="linear-gradient"){const{angle:d=0}=o,[[p,g],[m,v]]=Xq(d),b=Ie("linearGradient",{id:u,x1:p,y1:g,x2:m,y2:v});c.forEach(w=>b.appendChild(w)),bw(t,u,b)}else if(s==="radial-gradient"){const d=Ie("radialGradient",{id:u});c.forEach(p=>d.appendChild(p)),bw(t,u,d)}const h=e.getAttribute("fill"),f=e.getAttribute("stroke");Er(h)&&e.setAttribute("fill",`url(#${u})`),Er(f)&&e.setAttribute("stroke",`url(#${u})`)}function bw(e,t,n){const r=xa(e);n.setAttribute("id",t);const i=r.querySelector(`#${t}`);i?i.replaceWith(n):r.appendChild(n)}function Gq(e,t){var n;if((n=t.colors)!=null&&n.length||!e)return t;const r=be(e),i=Vq({},t);return i.colors=r.isDark()?[e,r.lighten(20).toHexString()]:[r.darken(20).toHexString(),e],!("angle"in t)&&i.type==="linear-gradient"&&(i.angle=225),i}function Yq(e){const{type:t,colors:n=[]}=e,r=Wb(n.map(i=>typeof i=="string"?i:`${i.color}_${i.offset}`).join("-"));if(t==="linear-gradient"){const{angle:i=0}=e;return`${t}-${r}-${i}`}return`${t}-${r}`}function Xq(e){const t=Math.PI/180*e,n=Math.cos(t),r=Math.sin(t);return[[.5-n/2,.5-r/2],[.5+n/2,.5+r/2]]}const Uq=Object.freeze(Object.defineProperty({__proto__:null,diamond:({scale:e=.5,backgroundColor:t,foregroundColor:n})=>{const r=Ie("pattern",{id:"pattern-diamond",width:"20",height:"20",patternTransform:`scale(${e})`,patternUnits:"userSpaceOnUse"}),i=Ie("rect",{width:"100%",height:"100%",fill:t}),o=Ie("path",{d:"M0,0 L20,20 M20,0 L0,20",stroke:n,"stroke-width":"1"});return r.appendChild(i),r.appendChild(o),r},dot:({scale:e=1,backgroundColor:t,foregroundColor:n})=>{const r=Ie("pattern",{id:"pattern-dot",width:"20",height:"20",patternTransform:`scale(${e})`,patternUnits:"userSpaceOnUse"}),i=Ie("rect",{width:"100%",height:"100%",fill:t}),o=Ie("circle",{cx:"5",cy:"5",r:"3",fill:n}),s=Ie("circle",{cx:"15",cy:"15",r:"3",fill:n});return r.appendChild(i),r.appendChild(o),r.appendChild(s),r},hex:({scale:e=.3,backgroundColor:t,foregroundColor:n})=>{const r=Ie("pattern",{id:"pattern-hex",width:"20",height:"20",patternTransform:`scale(${e})`,patternUnits:"userSpaceOnUse"}),i=Ie("rect",{width:"100%",height:"100%",fill:t}),o=Ie("path",{d:"M10,0 L20,5 L20,15 L10,20 L0,15 L0,5 Z",fill:n});return r.appendChild(i),r.appendChild(o),r},line:({scale:e=1,backgroundColor:t,foregroundColor:n})=>{const o=Ie("pattern",{id:"pattern-line",width:"20",height:"20",patternTransform:`scale(${e})`,patternUnits:"userSpaceOnUse"}),s=Ie("rect",{width:"100%",height:"100%",fill:t}),a=Ie("line",{x1:"7",y1:"-3",x2:"23",y2:"13",stroke:n,"stroke-width":6,"stroke-opacity":"0.5"}),l=Ie("line",{x1:"-3",y1:"7",x2:"13",y2:"23",stroke:n,"stroke-width":6,"stroke-opacity":"0.5"});return o.appendChild(s),o.appendChild(a),o.appendChild(l),o},mosaic:({scale:e=1,backgroundColor:t="#ffffff",foregroundColor:n="#000000"})=>{const a=Ie("pattern",{id:"pattern-mosaic",width:20,height:20,patternUnits:"userSpaceOnUse",patternTransform:`scale(${e})`}),l=Ie("rect",{width:"100%",height:"100%",fill:t});a.appendChild(l);for(let c=0;c<4;c++)for(let u=0;u<4;u++)if((u+c)%2===0){const h=Ie("rect",{x:u*5,y:c*5,width:5,height:5,fill:n});a.appendChild(h)}return a},square:({scale:e=.3,backgroundColor:t,foregroundColor:n})=>{const r=Ie("pattern",{id:"pattern-square",width:"20",height:"20",patternTransform:`scale(${e})`,patternUnits:"userSpaceOnUse"}),i=Ie("rect",{width:"100%",height:"100%",fill:t}),o=Ie("path",{d:"M0,0 L20,0 L20,20 L0,20 Z",fill:n});return r.appendChild(i),r.appendChild(o),r}},Symbol.toStringTag,{value:"Module"}));var Kq=Object.defineProperty,ca=Object.getOwnPropertySymbols,ww=Object.prototype.hasOwnProperty,_w=Object.prototype.propertyIsEnumerable,xw=(e,t,n)=>t in e?Kq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rh=(e,t)=>{for(var n in t||(t={}))ww.call(t,n)&&xw(e,n,t[n]);if(ca)for(var n of ca(t))_w.call(t,n)&&xw(e,n,t[n]);return e},Zq=(e,t)=>{var n={};for(var r in e)ww.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ca)for(var r of ca(e))t.indexOf(r)<0&&_w.call(e,r)&&(n[r]=e[r]);return n};const ih=new Map;function Cw(e,t){ih.has(e)&&console.warn(`Pattern ${e} will be overwritten`),ih.set(e,t)}for(const[e,t]of Object.entries(Uq))Cw(e,t);function Qq(e,t,n){const r=n.themeConfig.stylize;if(!r||r.type!=="pattern")return;const i=r,{pattern:o}=i,s=Zq(i,["pattern"]),a=ih.get(o);if(!a)return console.warn(`Pattern ${o} not found`);const{fill:l}=cn(e,["fill","stroke"]),c=l,u=rh({backgroundColor:c&&be(c).setAlpha(.5).toRgbString(),foregroundColor:c},s),h=eH(rh(rh({},r),u));Jq(t,h,a(u)),Er(l)&&(e.setAttribute("fill",`url(#${h})`),!e.getAttribute("stroke")&&l&&e.setAttribute("stroke",l))}function Jq(e,t,n){const r=xa(e);n.setAttribute("id",t);const i=r.querySelector(`pattern#${t}`);i?i.replaceWith(n):r.appendChild(n)}function eH(e){const{pattern:t,foregroundColor:n="unset",backgroundColor:r="unset",scale:i="unset"}=e;return Wb(`pattern-${t}-${n}-${r}-${i}`)}function oh(e,t,n){if(e&&e.length){const[r,i]=t,o=Math.PI/180*n,s=Math.cos(o),a=Math.sin(o);for(const l of e){const[c,u]=l;l[0]=(c-r)*s-(u-i)*a+r,l[1]=(c-r)*a+(u-i)*s+i}}}function tH(e,t){return e[0]===t[0]&&e[1]===t[1]}function nH(e,t,n,r=1){const i=n,o=Math.max(t,.1),s=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,a=[0,0];if(i)for(const c of s)oh(c,a,i);const l=(function(c,u,h){const f=[];for(const b of c){const w=[...b];tH(w[0],w[w.length-1])||w.push([w[0][0],w[0][1]]),w.length>2&&f.push(w)}const d=[];u=Math.max(u,.1);const p=[];for(const b of f)for(let w=0;w<b.length-1;w++){const x=b[w],_=b[w+1];if(x[1]!==_[1]){const C=Math.min(x[1],_[1]);p.push({ymin:C,ymax:Math.max(x[1],_[1]),x:C===x[1]?x[0]:_[0],islope:(_[0]-x[0])/(_[1]-x[1])})}}if(p.sort(((b,w)=>b.ymin<w.ymin?-1:b.ymin>w.ymin?1:b.x<w.x?-1:b.x>w.x?1:b.ymax===w.ymax?0:(b.ymax-w.ymax)/Math.abs(b.ymax-w.ymax))),!p.length)return d;let g=[],m=p[0].ymin,v=0;for(;g.length||p.length;){if(p.length){let b=-1;for(let w=0;w<p.length&&!(p[w].ymin>m);w++)b=w;p.splice(0,b+1).forEach((w=>{g.push({s:m,edge:w})}))}if(g=g.filter((b=>!(b.edge.ymax<=m))),g.sort(((b,w)=>b.edge.x===w.edge.x?0:(b.edge.x-w.edge.x)/Math.abs(b.edge.x-w.edge.x))),(h!==1||v%u==0)&&g.length>1)for(let b=0;b<g.length;b+=2){const w=b+1;if(w>=g.length)break;const x=g[b].edge,_=g[w].edge;d.push([[Math.round(x.x),m],[Math.round(_.x),m]])}m+=h,g.forEach((b=>{b.edge.x=b.edge.x+h*b.edge.islope})),v++}return d})(s,o,r);if(i){for(const c of s)oh(c,a,-i);(function(c,u,h){const f=[];c.forEach((d=>f.push(...d))),oh(f,u,h)})(l,a,-i)}return l}function Po(e,t){var n;const r=t.hachureAngle+90;let i=t.hachureGap;i<0&&(i=4*t.strokeWidth),i=Math.round(Math.max(i,.1));let o=1;return t.roughness>=1&&(((n=t.randomizer)===null||n===void 0?void 0:n.next())||Math.random())>.7&&(o=i),nH(e,i,r,o||1)}let sh=class{constructor(t){this.helper=t}fillPolygons(t,n){return this._fillPolygons(t,n)}_fillPolygons(t,n){const r=Po(t,n);return{type:"fillSketch",ops:this.renderLines(r,n)}}renderLines(t,n){const r=[];for(const i of t)r.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],n));return r}};function ua(e){const t=e[0],n=e[1];return Math.sqrt(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2))}let rH=class extends sh{fillPolygons(t,n){let r=n.hachureGap;r<0&&(r=4*n.strokeWidth),r=Math.max(r,.1);const i=Po(t,Object.assign({},n,{hachureGap:r})),o=Math.PI/180*n.hachureAngle,s=[],a=.5*r*Math.cos(o),l=.5*r*Math.sin(o);for(const[c,u]of i)ua([c,u])&&s.push([[c[0]-a,c[1]+l],[...u]],[[c[0]+a,c[1]-l],[...u]]);return{type:"fillSketch",ops:this.renderLines(s,n)}}},iH=class extends sh{fillPolygons(t,n){const r=this._fillPolygons(t,n),i=Object.assign({},n,{hachureAngle:n.hachureAngle+90}),o=this._fillPolygons(t,i);return r.ops=r.ops.concat(o.ops),r}},oH=class{constructor(t){this.helper=t}fillPolygons(t,n){const r=Po(t,n=Object.assign({},n,{hachureAngle:0}));return this.dotsOnLines(r,n)}dotsOnLines(t,n){const r=[];let i=n.hachureGap;i<0&&(i=4*n.strokeWidth),i=Math.max(i,.1);let o=n.fillWeight;o<0&&(o=n.strokeWidth/2);const s=i/4;for(const a of t){const l=ua(a),c=l/i,u=Math.ceil(c)-1,h=l-u*i,f=(a[0][0]+a[1][0])/2-i/4,d=Math.min(a[0][1],a[1][1]);for(let p=0;p<u;p++){const g=d+h+p*i,m=f-s+2*Math.random()*s,v=g-s+2*Math.random()*s,b=this.helper.ellipse(m,v,o,o,n);r.push(...b.ops)}}return{type:"fillSketch",ops:r}}},sH=class{constructor(t){this.helper=t}fillPolygons(t,n){const r=Po(t,n);return{type:"fillSketch",ops:this.dashedLine(r,n)}}dashedLine(t,n){const r=n.dashOffset<0?n.hachureGap<0?4*n.strokeWidth:n.hachureGap:n.dashOffset,i=n.dashGap<0?n.hachureGap<0?4*n.strokeWidth:n.hachureGap:n.dashGap,o=[];return t.forEach((s=>{const a=ua(s),l=Math.floor(a/(r+i)),c=(a+i-l*(r+i))/2;let u=s[0],h=s[1];u[0]>h[0]&&(u=s[1],h=s[0]);const f=Math.atan((h[1]-u[1])/(h[0]-u[0]));for(let d=0;d<l;d++){const p=d*(r+i),g=p+r,m=[u[0]+p*Math.cos(f)+c*Math.cos(f),u[1]+p*Math.sin(f)+c*Math.sin(f)],v=[u[0]+g*Math.cos(f)+c*Math.cos(f),u[1]+g*Math.sin(f)+c*Math.sin(f)];o.push(...this.helper.doubleLineOps(m[0],m[1],v[0],v[1],n))}})),o}},aH=class{constructor(t){this.helper=t}fillPolygons(t,n){const r=n.hachureGap<0?4*n.strokeWidth:n.hachureGap,i=n.zigzagOffset<0?r:n.zigzagOffset,o=Po(t,n=Object.assign({},n,{hachureGap:r+i}));return{type:"fillSketch",ops:this.zigzagLines(o,i,n)}}zigzagLines(t,n,r){const i=[];return t.forEach((o=>{const s=ua(o),a=Math.round(s/(2*n));let l=o[0],c=o[1];l[0]>c[0]&&(l=o[1],c=o[0]);const u=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let h=0;h<a;h++){const f=2*h*n,d=2*(h+1)*n,p=Math.sqrt(2*Math.pow(n,2)),g=[l[0]+f*Math.cos(u),l[1]+f*Math.sin(u)],m=[l[0]+d*Math.cos(u),l[1]+d*Math.sin(u)],v=[g[0]+p*Math.cos(u+Math.PI/4),g[1]+p*Math.sin(u+Math.PI/4)];i.push(...this.helper.doubleLineOps(g[0],g[1],v[0],v[1],r),...this.helper.doubleLineOps(v[0],v[1],m[0],m[1],r))}})),i}};const en={};let lH=class{constructor(t){this.seed=t}next(){return this.seed?(vs(2,31)-1&(this.seed=Math.imul(48271,this.seed)))/vs(2,31):Math.random()}};const cH=0,ah=1,Pw=2,ha={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function lh(e,t){return e.type===t}function ch(e){const t=[],n=(function(s){const a=new Array;for(;s!=="";)if(s.match(/^([ \t\r\n,]+)/))s=s.substr(RegExp.$1.length);else if(s.match(/^([aAcChHlLmMqQsStTvVzZ])/))a[a.length]={type:cH,text:RegExp.$1},s=s.substr(RegExp.$1.length);else{if(!s.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];a[a.length]={type:ah,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return a[a.length]={type:Pw,text:""},a})(e);let r="BOD",i=0,o=n[i];for(;!lh(o,Pw);){let s=0;const a=[];if(r==="BOD"){if(o.text!=="M"&&o.text!=="m")return ch("M0,0"+e);i++,s=ha[o.text],r=o.text}else lh(o,ah)?s=ha[r]:(i++,s=ha[o.text],r=o.text);if(!(i+s<n.length))throw new Error("Path data ended short");for(let l=i;l<i+s;l++){const c=n[l];if(!lh(c,ah))throw new Error("Param not a number: "+r+","+c.text);a[a.length]=+c.text}if(typeof ha[r]!="number")throw new Error("Bad segment: "+r);{const l={key:r,data:a};t.push(l),i+=s,o=n[i],r==="M"&&(r="L"),r==="m"&&(r="l")}}return t}function Sw(e){let t=0,n=0,r=0,i=0;const o=[];for(const{key:s,data:a}of e)switch(s){case"M":o.push({key:"M",data:[...a]}),[t,n]=a,[r,i]=a;break;case"m":t+=a[0],n+=a[1],o.push({key:"M",data:[t,n]}),r=t,i=n;break;case"L":o.push({key:"L",data:[...a]}),[t,n]=a;break;case"l":t+=a[0],n+=a[1],o.push({key:"L",data:[t,n]});break;case"C":o.push({key:"C",data:[...a]}),t=a[4],n=a[5];break;case"c":{const l=a.map(((c,u)=>u%2?c+n:c+t));o.push({key:"C",data:l}),t=l[4],n=l[5];break}case"Q":o.push({key:"Q",data:[...a]}),t=a[2],n=a[3];break;case"q":{const l=a.map(((c,u)=>u%2?c+n:c+t));o.push({key:"Q",data:l}),t=l[2],n=l[3];break}case"A":o.push({key:"A",data:[...a]}),t=a[5],n=a[6];break;case"a":t+=a[5],n+=a[6],o.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],t,n]});break;case"H":o.push({key:"H",data:[...a]}),t=a[0];break;case"h":t+=a[0],o.push({key:"H",data:[t]});break;case"V":o.push({key:"V",data:[...a]}),n=a[0];break;case"v":n+=a[0],o.push({key:"V",data:[n]});break;case"S":o.push({key:"S",data:[...a]}),t=a[2],n=a[3];break;case"s":{const l=a.map(((c,u)=>u%2?c+n:c+t));o.push({key:"S",data:l}),t=l[2],n=l[3];break}case"T":o.push({key:"T",data:[...a]}),t=a[0],n=a[1];break;case"t":t+=a[0],n+=a[1],o.push({key:"T",data:[t,n]});break;case"Z":case"z":o.push({key:"Z",data:[]}),t=r,n=i}return o}function Ow(e){const t=[];let n="",r=0,i=0,o=0,s=0,a=0,l=0;for(const{key:c,data:u}of e){switch(c){case"M":t.push({key:"M",data:[...u]}),[r,i]=u,[o,s]=u;break;case"C":t.push({key:"C",data:[...u]}),r=u[4],i=u[5],a=u[2],l=u[3];break;case"L":t.push({key:"L",data:[...u]}),[r,i]=u;break;case"H":r=u[0],t.push({key:"L",data:[r,i]});break;case"V":i=u[0],t.push({key:"L",data:[r,i]});break;case"S":{let h=0,f=0;n==="C"||n==="S"?(h=r+(r-a),f=i+(i-l)):(h=r,f=i),t.push({key:"C",data:[h,f,...u]}),a=u[0],l=u[1],r=u[2],i=u[3];break}case"T":{const[h,f]=u;let d=0,p=0;n==="Q"||n==="T"?(d=r+(r-a),p=i+(i-l)):(d=r,p=i);const g=r+2*(d-r)/3,m=i+2*(p-i)/3,v=h+2*(d-h)/3,b=f+2*(p-f)/3;t.push({key:"C",data:[g,m,v,b,h,f]}),a=d,l=p,r=h,i=f;break}case"Q":{const[h,f,d,p]=u,g=r+2*(h-r)/3,m=i+2*(f-i)/3,v=d+2*(h-d)/3,b=p+2*(f-p)/3;t.push({key:"C",data:[g,m,v,b,d,p]}),a=h,l=f,r=d,i=p;break}case"A":{const h=Math.abs(u[0]),f=Math.abs(u[1]),d=u[2],p=u[3],g=u[4],m=u[5],v=u[6];h===0||f===0?(t.push({key:"C",data:[r,i,m,v,m,v]}),r=m,i=v):(r!==m||i!==v)&&($w(r,i,m,v,h,f,d,p,g).forEach((function(b){t.push({key:"C",data:b})})),r=m,i=v);break}case"Z":t.push({key:"Z",data:[]}),r=o,i=s}n=c}return t}function So(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}function $w(e,t,n,r,i,o,s,a,l,c){const u=(h=s,Math.PI*h/180);var h;let f=[],d=0,p=0,g=0,m=0;if(c)[d,p,g,m]=c;else{[e,t]=So(e,t,-u),[n,r]=So(n,r,-u);const E=(e-n)/2,I=(t-r)/2;let T=E*E/(i*i)+I*I/(o*o);T>1&&(T=Math.sqrt(T),i*=T,o*=T);const N=i*i,H=o*o,D=N*H-N*I*I-H*E*E,W=N*I*I+H*E*E,F=(a===l?-1:1)*Math.sqrt(Math.abs(D/W));g=F*i*I/o+(e+n)/2,m=F*-o*E/i+(t+r)/2,d=Math.asin(parseFloat(((t-m)/o).toFixed(9))),p=Math.asin(parseFloat(((r-m)/o).toFixed(9))),e<g&&(d=Math.PI-d),n<g&&(p=Math.PI-p),d<0&&(d=2*Math.PI+d),p<0&&(p=2*Math.PI+p),l&&d>p&&(d-=2*Math.PI),!l&&p>d&&(p-=2*Math.PI)}let v=p-d;if(Math.abs(v)>120*Math.PI/180){const E=p,I=n,T=r;p=l&&p>d?d+120*Math.PI/180*1:d+120*Math.PI/180*-1,f=$w(n=g+i*Math.cos(p),r=m+o*Math.sin(p),I,T,i,o,s,0,l,[p,E,g,m])}v=p-d;const b=Math.cos(d),w=Math.sin(d),x=Math.cos(p),_=Math.sin(p),C=Math.tan(v/4),P=4/3*i*C,S=4/3*o*C,$=[e,t],O=[e+P*w,t-S*b],M=[n+P*_,r-S*x],A=[n,r];if(O[0]=2*$[0]-O[0],O[1]=2*$[1]-O[1],c)return[O,M,A].concat(f);{f=[O,M,A].concat(f);const E=[];for(let I=0;I<f.length;I+=3){const T=So(f[I][0],f[I][1],u),N=So(f[I+1][0],f[I+1][1],u),H=So(f[I+2][0],f[I+2][1],u);E.push([T[0],T[1],N[0],N[1],H[0],H[1]])}return E}}const uH={randOffset:function(e,t){return ke(e,t)},randOffsetWithRange:function(e,t,n){return da(e,t,n)},ellipse:function(e,t,n,r,i){const o=Aw(n,r,i);return uh(e,t,i,o).opset},doubleLineOps:function(e,t,n,r,i){return gr(e,t,n,r,i,!0)}};function Ew(e,t,n,r,i){return{type:"path",ops:gr(e,t,n,r,i)}}function fa(e,t,n){const r=(e||[]).length;if(r>2){const i=[];for(let o=0;o<r-1;o++)i.push(...gr(e[o][0],e[o][1],e[o+1][0],e[o+1][1],n));return t&&i.push(...gr(e[r-1][0],e[r-1][1],e[0][0],e[0][1],n)),{type:"path",ops:i}}return r===2?Ew(e[0][0],e[0][1],e[1][0],e[1][1],n):{type:"path",ops:[]}}function hH(e,t,n,r,i){return(function(o,s){return fa(o,!0,s)})([[e,t],[e+n,t],[e+n,t+r],[e,t+r]],i)}function Mw(e,t){if(e.length){const n=typeof e[0][0]=="number"?[e]:e,r=pa(n[0],1*(1+.2*t.roughness),t),i=t.disableMultiStroke?[]:pa(n[0],1.5*(1+.22*t.roughness),Rw(t));for(let o=1;o<n.length;o++){const s=n[o];if(s.length){const a=pa(s,1*(1+.2*t.roughness),t),l=t.disableMultiStroke?[]:pa(s,1.5*(1+.22*t.roughness),Rw(t));for(const c of a)c.op!=="move"&&r.push(c);for(const c of l)c.op!=="move"&&i.push(c)}}return{type:"path",ops:r.concat(i)}}return{type:"path",ops:[]}}function Aw(e,t,n){const r=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),i=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),o=2*Math.PI/i;let s=Math.abs(e/2),a=Math.abs(t/2);const l=1-n.curveFitting;return s+=ke(s*l,n),a+=ke(a*l,n),{increment:o,rx:s,ry:a}}function uh(e,t,n,r){const[i,o]=Lw(r.increment,e,t,r.rx,r.ry,1,r.increment*da(.1,da(.4,1,n),n),n);let s=ga(i,null,n);if(!n.disableMultiStroke&&n.roughness!==0){const[a]=Lw(r.increment,e,t,r.rx,r.ry,1.5,0,n),l=ga(a,null,n);s=s.concat(l)}return{estimatedPoints:o,opset:{type:"path",ops:s}}}function Iw(e,t,n,r,i,o,s,a,l){const c=e,u=t;let h=Math.abs(n/2),f=Math.abs(r/2);h+=ke(.01*h,l),f+=ke(.01*f,l);let d=i,p=o;for(;d<0;)d+=2*Math.PI,p+=2*Math.PI;p-d>2*Math.PI&&(d=0,p=2*Math.PI);const g=2*Math.PI/l.curveStepCount,m=Math.min(g/2,(p-d)/2),v=Nw(m,c,u,h,f,d,p,1,l);if(!l.disableMultiStroke){const b=Nw(m,c,u,h,f,d,p,1.5,l);v.push(...b)}return s&&(a?v.push(...gr(c,u,c+h*Math.cos(d),u+f*Math.sin(d),l),...gr(c,u,c+h*Math.cos(p),u+f*Math.sin(p),l)):v.push({op:"lineTo",data:[c,u]},{op:"lineTo",data:[c+h*Math.cos(d),u+f*Math.sin(d)]})),{type:"path",ops:v}}function Tw(e,t){const n=Ow(Sw(ch(e))),r=[];let i=[0,0],o=[0,0];for(const{key:s,data:a}of n)switch(s){case"M":o=[a[0],a[1]],i=[a[0],a[1]];break;case"L":r.push(...gr(o[0],o[1],a[0],a[1],t)),o=[a[0],a[1]];break;case"C":{const[l,c,u,h,f,d]=a;r.push(...fH(l,c,u,h,f,d,o,t)),o=[f,d];break}case"Z":r.push(...gr(o[0],o[1],i[0],i[1],t)),o=[i[0],i[1]]}return{type:"path",ops:r}}function hh(e,t){const n=[];for(const r of e)if(r.length){const i=t.maxRandomnessOffset||0,o=r.length;if(o>2){n.push({op:"move",data:[r[0][0]+ke(i,t),r[0][1]+ke(i,t)]});for(let s=1;s<o;s++)n.push({op:"lineTo",data:[r[s][0]+ke(i,t),r[s][1]+ke(i,t)]})}}return{type:"fillPath",ops:n}}function _i(e,t){return(function(n,r){let i=n.fillStyle||"hachure";if(!en[i])switch(i){case"zigzag":en[i]||(en[i]=new rH(r));break;case"cross-hatch":en[i]||(en[i]=new iH(r));break;case"dots":en[i]||(en[i]=new oH(r));break;case"dashed":en[i]||(en[i]=new sH(r));break;case"zigzag-line":en[i]||(en[i]=new aH(r));break;default:i="hachure",en[i]||(en[i]=new sh(r))}return en[i]})(t,uH).fillPolygons(e,t)}function Rw(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function kw(e){return e.randomizer||(e.randomizer=new lH(e.seed||0)),e.randomizer.next()}function da(e,t,n,r=1){return n.roughness*r*(kw(n)*(t-e)+e)}function ke(e,t,n=1){return da(-e,e,t,n)}function gr(e,t,n,r,i,o=!1){const s=o?i.disableMultiStrokeFill:i.disableMultiStroke,a=fh(e,t,n,r,i,!0,!1);if(s)return a;const l=fh(e,t,n,r,i,!0,!0);return a.concat(l)}function fh(e,t,n,r,i,o,s){const a=Math.pow(e-n,2)+Math.pow(t-r,2),l=Math.sqrt(a);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>a&&(u=l/10);const h=u/2,f=.2+.2*kw(i);let d=i.bowing*i.maxRandomnessOffset*(r-t)/200,p=i.bowing*i.maxRandomnessOffset*(e-n)/200;d=ke(d,i,c),p=ke(p,i,c);const g=[],m=()=>ke(h,i,c),v=()=>ke(u,i,c),b=i.preserveVertices;return s?g.push({op:"move",data:[e+(b?0:m()),t+(b?0:m())]}):g.push({op:"move",data:[e+(b?0:ke(u,i,c)),t+(b?0:ke(u,i,c))]}),s?g.push({op:"bcurveTo",data:[d+e+(n-e)*f+m(),p+t+(r-t)*f+m(),d+e+2*(n-e)*f+m(),p+t+2*(r-t)*f+m(),n+(b?0:m()),r+(b?0:m())]}):g.push({op:"bcurveTo",data:[d+e+(n-e)*f+v(),p+t+(r-t)*f+v(),d+e+2*(n-e)*f+v(),p+t+2*(r-t)*f+v(),n+(b?0:v()),r+(b?0:v())]}),g}function pa(e,t,n){if(!e.length)return[];const r=[];r.push([e[0][0]+ke(t,n),e[0][1]+ke(t,n)]),r.push([e[0][0]+ke(t,n),e[0][1]+ke(t,n)]);for(let i=1;i<e.length;i++)r.push([e[i][0]+ke(t,n),e[i][1]+ke(t,n)]),i===e.length-1&&r.push([e[i][0]+ke(t,n),e[i][1]+ke(t,n)]);return ga(r,null,n)}function ga(e,t,n){const r=e.length,i=[];if(r>3){const o=[],s=1-n.curveTightness;i.push({op:"move",data:[e[1][0],e[1][1]]});for(let a=1;a+2<r;a++){const l=e[a];o[0]=[l[0],l[1]],o[1]=[l[0]+(s*e[a+1][0]-s*e[a-1][0])/6,l[1]+(s*e[a+1][1]-s*e[a-1][1])/6],o[2]=[e[a+1][0]+(s*e[a][0]-s*e[a+2][0])/6,e[a+1][1]+(s*e[a][1]-s*e[a+2][1])/6],o[3]=[e[a+1][0],e[a+1][1]],i.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}}else r===3?(i.push({op:"move",data:[e[1][0],e[1][1]]}),i.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):r===2&&i.push(...fh(e[0][0],e[0][1],e[1][0],e[1][1],n,!0,!0));return i}function Lw(e,t,n,r,i,o,s,a){const l=[],c=[];if(a.roughness===0){e/=4,c.push([t+r*Math.cos(-e),n+i*Math.sin(-e)]);for(let u=0;u<=2*Math.PI;u+=e){const h=[t+r*Math.cos(u),n+i*Math.sin(u)];l.push(h),c.push(h)}c.push([t+r*Math.cos(0),n+i*Math.sin(0)]),c.push([t+r*Math.cos(e),n+i*Math.sin(e)])}else{const u=ke(.5,a)-Math.PI/2;c.push([ke(o,a)+t+.9*r*Math.cos(u-e),ke(o,a)+n+.9*i*Math.sin(u-e)]);const h=2*Math.PI+u-.01;for(let f=u;f<h;f+=e){const d=[ke(o,a)+t+r*Math.cos(f),ke(o,a)+n+i*Math.sin(f)];l.push(d),c.push(d)}c.push([ke(o,a)+t+r*Math.cos(u+2*Math.PI+.5*s),ke(o,a)+n+i*Math.sin(u+2*Math.PI+.5*s)]),c.push([ke(o,a)+t+.98*r*Math.cos(u+s),ke(o,a)+n+.98*i*Math.sin(u+s)]),c.push([ke(o,a)+t+.9*r*Math.cos(u+.5*s),ke(o,a)+n+.9*i*Math.sin(u+.5*s)])}return[c,l]}function Nw(e,t,n,r,i,o,s,a,l){const c=o+ke(.1,l),u=[];u.push([ke(a,l)+t+.9*r*Math.cos(c-e),ke(a,l)+n+.9*i*Math.sin(c-e)]);for(let h=c;h<=s;h+=e)u.push([ke(a,l)+t+r*Math.cos(h),ke(a,l)+n+i*Math.sin(h)]);return u.push([t+r*Math.cos(s),n+i*Math.sin(s)]),u.push([t+r*Math.cos(s),n+i*Math.sin(s)]),ga(u,null,l)}function fH(e,t,n,r,i,o,s,a){const l=[],c=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let u=[0,0];const h=a.disableMultiStroke?1:2,f=a.preserveVertices;for(let d=0;d<h;d++)d===0?l.push({op:"move",data:[s[0],s[1]]}):l.push({op:"move",data:[s[0]+(f?0:ke(c[0],a)),s[1]+(f?0:ke(c[0],a))]}),u=f?[i,o]:[i+ke(c[d],a),o+ke(c[d],a)],l.push({op:"bcurveTo",data:[e+ke(c[d],a),t+ke(c[d],a),n+ke(c[d],a),r+ke(c[d],a),u[0],u[1]]});return l}function Oo(e){return[...e]}function zw(e,t=0){const n=e.length;if(n<3)throw new Error("A curve must have at least three points.");const r=[];if(n===3)r.push(Oo(e[0]),Oo(e[1]),Oo(e[2]),Oo(e[2]));else{const i=[];i.push(e[0],e[0]);for(let a=1;a<e.length;a++)i.push(e[a]),a===e.length-1&&i.push(e[a]);const o=[],s=1-t;r.push(Oo(i[0]));for(let a=1;a+2<i.length;a++){const l=i[a];o[0]=[l[0],l[1]],o[1]=[l[0]+(s*i[a+1][0]-s*i[a-1][0])/6,l[1]+(s*i[a+1][1]-s*i[a-1][1])/6],o[2]=[i[a+1][0]+(s*i[a][0]-s*i[a+2][0])/6,i[a+1][1]+(s*i[a][1]-s*i[a+2][1])/6],o[3]=[i[a+1][0],i[a+1][1]],r.push(o[1],o[2],o[3])}}return r}function ma(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function dH(e,t,n){const r=ma(t,n);if(r===0)return ma(e,t);let i=((e[0]-t[0])*(n[0]-t[0])+(e[1]-t[1])*(n[1]-t[1]))/r;return i=Math.max(0,Math.min(1,i)),ma(e,Lr(t,n,i))}function Lr(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n]}function dh(e,t,n,r){const i=r||[];if((function(a,l){const c=a[l+0],u=a[l+1],h=a[l+2],f=a[l+3];let d=3*u[0]-2*c[0]-f[0];d*=d;let p=3*u[1]-2*c[1]-f[1];p*=p;let g=3*h[0]-2*f[0]-c[0];g*=g;let m=3*h[1]-2*f[1]-c[1];return m*=m,d<g&&(d=g),p<m&&(p=m),d+p})(e,t)<n){const a=e[t+0];i.length?(o=i[i.length-1],s=a,Math.sqrt(ma(o,s))>1&&i.push(a)):i.push(a),i.push(e[t+3])}else{const l=e[t+0],c=e[t+1],u=e[t+2],h=e[t+3],f=Lr(l,c,.5),d=Lr(c,u,.5),p=Lr(u,h,.5),g=Lr(f,d,.5),m=Lr(d,p,.5),v=Lr(g,m,.5);dh([l,f,g,v],0,n,i),dh([v,m,p,h],0,n,i)}var o,s;return i}function pH(e,t){return ya(e,0,e.length,t)}function ya(e,t,n,r,i){const o=i||[],s=e[t],a=e[n-1];let l=0,c=1;for(let u=t+1;u<n-1;++u){const h=dH(e[u],s,a);h>l&&(l=h,c=u)}return Math.sqrt(l)>r?(ya(e,t,c+1,r,o),ya(e,c,n,r,o)):(o.length||o.push(s),o.push(a)),o}function ph(e,t=.15,n){const r=[],i=(e.length-1)/3;for(let o=0;o<i;o++)dh(e,3*o,t,r);return n&&n>0?ya(r,0,r.length,n):r}const ln="none";class va{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*vs(2,31))}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,n,r){return{shape:t,sets:n||[],options:r||this.defaultOptions}}line(t,n,r,i,o){const s=this._o(o);return this._d("line",[Ew(t,n,r,i,s)],s)}rectangle(t,n,r,i,o){const s=this._o(o),a=[],l=hH(t,n,r,i,s);if(s.fill){const c=[[t,n],[t+r,n],[t+r,n+i],[t,n+i]];s.fillStyle==="solid"?a.push(hh([c],s)):a.push(_i([c],s))}return s.stroke!==ln&&a.push(l),this._d("rectangle",a,s)}ellipse(t,n,r,i,o){const s=this._o(o),a=[],l=Aw(r,i,s),c=uh(t,n,s,l);if(s.fill)if(s.fillStyle==="solid"){const u=uh(t,n,s,l).opset;u.type="fillPath",a.push(u)}else a.push(_i([c.estimatedPoints],s));return s.stroke!==ln&&a.push(c.opset),this._d("ellipse",a,s)}circle(t,n,r,i){const o=this.ellipse(t,n,r,r,i);return o.shape="circle",o}linearPath(t,n){const r=this._o(n);return this._d("linearPath",[fa(t,!1,r)],r)}arc(t,n,r,i,o,s,a=!1,l){const c=this._o(l),u=[],h=Iw(t,n,r,i,o,s,a,!0,c);if(a&&c.fill)if(c.fillStyle==="solid"){const f=Object.assign({},c);f.disableMultiStroke=!0;const d=Iw(t,n,r,i,o,s,!0,!1,f);d.type="fillPath",u.push(d)}else u.push((function(f,d,p,g,m,v,b){const w=f,x=d;let _=Math.abs(p/2),C=Math.abs(g/2);_+=ke(.01*_,b),C+=ke(.01*C,b);let P=m,S=v;for(;P<0;)P+=2*Math.PI,S+=2*Math.PI;S-P>2*Math.PI&&(P=0,S=2*Math.PI);const $=(S-P)/b.curveStepCount,O=[];for(let M=P;M<=S;M+=$)O.push([w+_*Math.cos(M),x+C*Math.sin(M)]);return O.push([w+_*Math.cos(S),x+C*Math.sin(S)]),O.push([w,x]),_i([O],b)})(t,n,r,i,o,s,c));return c.stroke!==ln&&u.push(h),this._d("arc",u,c)}curve(t,n){const r=this._o(n),i=[],o=Mw(t,r);if(r.fill&&r.fill!==ln)if(r.fillStyle==="solid"){const s=Mw(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{const s=[],a=t;if(a.length){const l=typeof a[0][0]=="number"?[a]:a;for(const c of l)c.length<3?s.push(...c):c.length===3?s.push(...ph(zw([c[0],c[0],c[1],c[2]]),10,(1+r.roughness)/2)):s.push(...ph(zw(c),10,(1+r.roughness)/2))}s.length&&i.push(_i([s],r))}return r.stroke!==ln&&i.push(o),this._d("curve",i,r)}polygon(t,n){const r=this._o(n),i=[],o=fa(t,!0,r);return r.fill&&(r.fillStyle==="solid"?i.push(hh([t],r)):i.push(_i([t],r))),r.stroke!==ln&&i.push(o),this._d("polygon",i,r)}path(t,n){const r=this._o(n),i=[];if(!t)return this._d("path",i,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=r.fill&&r.fill!=="transparent"&&r.fill!==ln,s=r.stroke!==ln,a=!!(r.simplification&&r.simplification<1),l=(function(u,h,f){const d=Ow(Sw(ch(u))),p=[];let g=[],m=[0,0],v=[];const b=()=>{v.length>=4&&g.push(...ph(v,h)),v=[]},w=()=>{b(),g.length&&(p.push(g),g=[])};for(const{key:_,data:C}of d)switch(_){case"M":w(),m=[C[0],C[1]],g.push(m);break;case"L":b(),g.push([C[0],C[1]]);break;case"C":if(!v.length){const P=g.length?g[g.length-1]:m;v.push([P[0],P[1]])}v.push([C[0],C[1]]),v.push([C[2],C[3]]),v.push([C[4],C[5]]);break;case"Z":b(),g.push([m[0],m[1]])}if(w(),!f)return p;const x=[];for(const _ of p){const C=pH(_,f);C.length&&x.push(C)}return x})(t,1,a?4-4*(r.simplification||1):(1+r.roughness)/2),c=Tw(t,r);if(o)if(r.fillStyle==="solid")if(l.length===1){const u=Tw(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(u.ops)})}else i.push(hh(l,r));else i.push(_i(l,r));return s&&(a?l.forEach((u=>{i.push(fa(u,!1,r))})):i.push(c)),this._d("path",i,r)}opsToPath(t,n){let r="";for(const i of t.ops){const o=typeof n=="number"&&n>=0?i.data.map((s=>+s.toFixed(n))):i.data;switch(i.op){case"move":r+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":r+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":r+=`L${o[0]} ${o[1]} `}}return r.trim()}toPaths(t){const n=t.sets||[],r=t.options||this.defaultOptions,i=[];for(const o of n){let s=null;switch(o.type){case"path":s={d:this.opsToPath(o),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:ln};break;case"fillPath":s={d:this.opsToPath(o),stroke:ln,strokeWidth:0,fill:r.fill||ln};break;case"fillSketch":s=this.fillSketch(o,r)}s&&i.push(s)}return i}fillSketch(t,n){let r=n.fillWeight;return r<0&&(r=n.strokeWidth/2),{d:this.opsToPath(t),stroke:n.fill||ln,strokeWidth:r,fill:ln}}_mergedShape(t){return t.filter(((n,r)=>r===0||n.op!=="move"))}}class gH{constructor(t,n){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new va(n)}draw(t){const n=t.sets||[],r=t.options||this.getDefaultOptions(),i=this.ctx,o=t.options.fixedDecimalPlaceDigits;for(const s of n)switch(s.type){case"path":i.save(),i.strokeStyle=r.stroke==="none"?"transparent":r.stroke,i.lineWidth=r.strokeWidth,r.strokeLineDash&&i.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(i.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(i,s,o),i.restore();break;case"fillPath":{i.save(),i.fillStyle=r.fill||"";const a=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(i,s,o,a),i.restore();break}case"fillSketch":this.fillSketch(i,s,r)}}fillSketch(t,n,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2),t.save(),r.fillLineDash&&t.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(t.lineDashOffset=r.fillLineDashOffset),t.strokeStyle=r.fill||"",t.lineWidth=i,this._drawToContext(t,n,r.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,n,r,i="nonzero"){t.beginPath();for(const o of n.ops){const s=typeof r=="number"&&r>=0?o.data.map((a=>+a.toFixed(r))):o.data;switch(o.op){case"move":t.moveTo(s[0],s[1]);break;case"bcurveTo":t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":t.lineTo(s[0],s[1])}}n.type==="fillPath"?t.fill(i):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,n,r,i,o){const s=this.gen.line(t,n,r,i,o);return this.draw(s),s}rectangle(t,n,r,i,o){const s=this.gen.rectangle(t,n,r,i,o);return this.draw(s),s}ellipse(t,n,r,i,o){const s=this.gen.ellipse(t,n,r,i,o);return this.draw(s),s}circle(t,n,r,i){const o=this.gen.circle(t,n,r,i);return this.draw(o),o}linearPath(t,n){const r=this.gen.linearPath(t,n);return this.draw(r),r}polygon(t,n){const r=this.gen.polygon(t,n);return this.draw(r),r}arc(t,n,r,i,o,s,a=!1,l){const c=this.gen.arc(t,n,r,i,o,s,a,l);return this.draw(c),c}curve(t,n){const r=this.gen.curve(t,n);return this.draw(r),r}path(t,n){const r=this.gen.path(t,n);return this.draw(r),r}}const ba="http://www.w3.org/2000/svg";class mH{constructor(t,n){this.svg=t,this.gen=new va(n)}draw(t){const n=t.sets||[],r=t.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,o=i.createElementNS(ba,"g"),s=t.options.fixedDecimalPlaceDigits;for(const a of n){let l=null;switch(a.type){case"path":l=i.createElementNS(ba,"path"),l.setAttribute("d",this.opsToPath(a,s)),l.setAttribute("stroke",r.stroke),l.setAttribute("stroke-width",r.strokeWidth+""),l.setAttribute("fill","none"),r.strokeLineDash&&l.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":l=i.createElementNS(ba,"path"),l.setAttribute("d",this.opsToPath(a,s)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",r.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(i,a,r)}l&&o.appendChild(l)}return o}fillSketch(t,n,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2);const o=t.createElementNS(ba,"path");return o.setAttribute("d",this.opsToPath(n,r.fixedDecimalPlaceDigits)),o.setAttribute("stroke",r.fill||""),o.setAttribute("stroke-width",i+""),o.setAttribute("fill","none"),r.fillLineDash&&o.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,n){return this.gen.opsToPath(t,n)}line(t,n,r,i,o){const s=this.gen.line(t,n,r,i,o);return this.draw(s)}rectangle(t,n,r,i,o){const s=this.gen.rectangle(t,n,r,i,o);return this.draw(s)}ellipse(t,n,r,i,o){const s=this.gen.ellipse(t,n,r,i,o);return this.draw(s)}circle(t,n,r,i){const o=this.gen.circle(t,n,r,i);return this.draw(o)}linearPath(t,n){const r=this.gen.linearPath(t,n);return this.draw(r)}polygon(t,n){const r=this.gen.polygon(t,n);return this.draw(r)}arc(t,n,r,i,o,s,a=!1,l){const c=this.gen.arc(t,n,r,i,o,s,a,l);return this.draw(c)}curve(t,n){const r=this.gen.curve(t,n);return this.draw(r)}path(t,n){const r=this.gen.path(t,n);return this.draw(r)}}var yH={canvas:(e,t)=>new gH(e,t),svg:(e,t)=>new mH(e,t),generator:e=>new va(e),newSeed:()=>va.newSeed()},vH=Object.defineProperty,Dw=Object.getOwnPropertySymbols,bH=Object.prototype.hasOwnProperty,wH=Object.prototype.propertyIsEnumerable,qw=(e,t,n)=>t in e?vH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_H=(e,t)=>{for(var n in t||(t={}))bH.call(t,n)&&qw(e,n,t[n]);if(Dw)for(var n of Dw(t))wH.call(t,n)&&qw(e,n,t[n]);return e};function xH(e,t,n){if(!e||!t){console.warn("Invalid node or svg element");return}const r=yH.svg(t,{options:{seed:1e3}}),i=Ie("g");e.hasAttribute("transform")&&i.setAttribute("transform",e.getAttribute("transform")||"");const o=e.cloneNode();ct(o,{opacity:.5}),o.hasAttribute("transform")&&o.removeAttribute("transform"),o.dataset.elementType="rough-volume",i.appendChild(o);const s=PH(r,e,n);if(s){const{element:l,svgAttributes:c}=s;l.dataset.elementType="rough-element",l.style.pointerEvents="none",CH(l,c),i.appendChild(l)}e.id&&(i.id=e.id),Array.from(e.classList).forEach(l=>{i.classList.contains(l)||i.classList.add(l)}),Array.from(e.attributes).forEach(l=>{l.name.startsWith("data-")&&i.setAttribute(l.name,l.value)}),i.childElementCount>0?e.replaceWith(i):e.remove()}function CH(e,t){t.opacity!==void 0&&e.setAttribute("opacity",String(t.opacity)),t.fillOpacity!==void 0&&e.setAttribute("fill-opacity",String(t.fillOpacity)),t.strokeOpacity!==void 0&&e.setAttribute("stroke-opacity",String(t.strokeOpacity)),t.strokeLinecap&&e.setAttribute("stroke-linecap",t.strokeLinecap),t.strokeLinejoin&&e.setAttribute("stroke-linejoin",t.strokeLinejoin),t.strokeDasharray&&e.setAttribute("stroke-dasharray",t.strokeDasharray),t.filter&&e.setAttribute("filter",t.filter),t.clipPath&&e.setAttribute("clip-path",t.clipPath),t.mask&&e.setAttribute("mask",t.mask)}function PH(e,t,n){const r=t.nodeName.toLowerCase(),i=(o,s)=>{const a=cn(o,[...s,"fill","fill-opacity","stroke","stroke-opacity","stroke-width","stroke-dasharray","stroke-linecap","stroke-linejoin","opacity","filter","clip-path","mask"],!0),l={},c=_H({},n),u={};s.forEach(P=>{a[P]!==void 0&&(l[P]=a[P])});const{fill:h,"fill-opacity":f,stroke:d,"stroke-opacity":p,"stroke-width":g,"stroke-dasharray":m,"stroke-linecap":v,"stroke-linejoin":b,opacity:w,filter:x,"clip-path":_,mask:C}=a;if(c.fill=h||"none",c.stroke=d||(h&&h!=="none"?h:"currentColor"),g&&(c.strokeWidth=parseFloat(g)),m&&m!=="none"){const P=m.split(/[\s,]+/).map(S=>parseFloat(S)).filter(S=>!isNaN(S));P.length>0&&(c.strokeLineDash=P)}return f&&(u.fillOpacity=parseFloat(f)),p&&(u.strokeOpacity=parseFloat(p)),w&&(u.opacity=parseFloat(w)),v&&(u.strokeLinecap=v),b&&(u.strokeLinejoin=b),m&&m!=="none"&&(u.strokeDasharray=m),x&&(u.filter=x),_&&(u.clipPath=_),C&&(u.mask=C),[l,c,u]};try{let o=null,s={};switch(r){case"circle":{const[a,l,c]=i(t,["cx","cy","r"]),u=parseFloat(a.cx)||0,h=parseFloat(a.cy)||0,f=parseFloat(a.r)||0;o=e.circle(u,h,f*2,l),s=c;break}case"ellipse":{const[a,l,c]=i(t,["cx","cy","rx","ry"]),u=parseFloat(a.cx)||0,h=parseFloat(a.cy)||0,f=parseFloat(a.rx)||0,d=parseFloat(a.ry)||0;o=e.ellipse(u,h,f*2,d*2,l),s=c;break}case"line":{const[a,l,c]=i(t,["x1","y1","x2","y2"]),u=parseFloat(a.x1)||0,h=parseFloat(a.y1)||0,f=parseFloat(a.x2)||0,d=parseFloat(a.y2)||0;o=e.line(u,h,f,d,l),s=c;break}case"rect":{const[a,l,c]=i(t,["x","y","width","height","rx","ry"]),u=parseFloat(a.x)||0,h=parseFloat(a.y)||0,f=parseFloat(a.width)||0,d=parseFloat(a.height)||0,p=parseFloat(a.rx)||0,g=parseFloat(a.ry)||0;if(p>0||g>0){const b=SH(u,h,f,d,p||g,g||p);o=e.path(b,l)}else o=e.rectangle(u,h,f,d,l);s=c;break}case"path":{const[a,l,c]=i(t,["d"]),u=a.d||"";if(!u)return console.warn("Path element has no d attribute"),null;o=e.path(u,l),s=c;break}case"polygon":{const[a,l,c]=i(t,["points"]),u=Hw(a.points||"");if(u.length<3)return console.warn("Polygon needs at least 3 points"),null;o=e.polygon(u,l),s=c;break}case"polyline":{const[a,l,c]=i(t,["points"]),u=Hw(a.points||"");if(u.length<2)return console.warn("Polyline needs at least 2 points"),null;o=e.linearPath(u,l),s=c;break}default:return console.warn(`Unsupported shape type: ${r}`),null}return o?{element:o,svgAttributes:s}:null}catch(o){return console.error(`Error creating rough shape for ${r}:`,o),null}}function SH(e,t,n,r,i,o){return i=Math.min(i,n/2),o=Math.min(o,r/2),`
15
15
  M ${e+i} ${t}
16
16
  L ${e+n-i} ${t}
17
17
  A ${i} ${o} 0 0 1 ${e+n} ${t+o}
@@ -22,22 +22,12 @@
22
22
  L ${e} ${t+o}
23
23
  A ${i} ${o} 0 0 1 ${e+i} ${t}
24
24
  Z
25
- `.replace(/\s+/g," ").trim()}function S_(e){if(!e||typeof e!="string")return[];try{const n=e.trim().replace(/,/g," ").replace(/\s+/g," ").split(" ").filter(Boolean),r=[];for(let i=0;i<n.length-1;i+=2){const o=parseFloat(n[i]),s=parseFloat(n[i+1]);if(isNaN(o)||isNaN(s)){console.warn(`Invalid coordinate pair at index ${i}: "${n[i]}", "${n[i+1]}"`);continue}r.push([o,s])}return n.length%2!==0&&console.warn(`Odd number of coordinates in points attribute, last value ignored: "${n[n.length-1]}"`),r}catch(t){return console.error("Failed to parse polygon points:",e,t),[]}}function $_(e,t,n){var r;const{themeConfig:i}=n,o=Object.assign({},(r=i.base)==null?void 0:r.shape,i.shape),s=go(t,o);return ut(t,s),Dq(t,e,n),t}function zq(e,t){var n;ut(e,((n=t.themeConfig.base)==null?void 0:n.shape)||{})}function Dq(e,t,n){const r=n.themeConfig.stylize;if(!r)return e;const{type:i}=r;if(!i)return e;if(i==="rough")return Rq(e,t,r);if(i==="pattern")return cq(e,t,n);if(i==="linear-gradient"||i==="radial-gradient"){const{fill:o,stroke:s}=cn(e,["fill","stroke"]);Sr(o)&&i_(e,t,r,"fill"),Sr(s)&&i_(e,t,r,"stroke");return}}function qq(e,t){var n;const{themeConfig:r}=t,{"font-family":i=Lu}=((n=r.base)==null?void 0:n.text)||{};e.setAttribute("font-family",i)}function nh(e,t,n={}){if(!t)return null;const r=e,i=go(r,n);ut(r,i);const o=Fq(t,r);for(const s in r.dataset)o.setAttribute(`data-${gz(s)}`,r.dataset[s]);return o}function Hq(e,t,n){var r,i,o;const s=t.nodeName==="text"?t:null;if(!s)return null;const{data:a,themeConfig:l}=n,c=F_(t.dataset.indexes||"0"),u=uo(a,c),h=String(yv(u,e,"")),f=(r=u==null?void 0:u.attributes)==null?void 0:r[e],d=Object.assign({},(i=l.base)==null?void 0:i.text,(o=l.item)==null?void 0:o[e],f),p=go(s,d);return nh(t,t.textContent||h,p)}function jq(e,t){var n;const r=((n=t.themeConfig.base)==null?void 0:n.text)||{};ut(e,r),r["font-family"]&&e.setAttribute("font-family",Rr(r["font-family"])),e.style.userSelect="none",e.style.pointerEvents="none"}const ua=(e,t)=>e?parseFloat(e):t;function Fq(e,t){const n=ua(t.dataset.x,0),r=ua(t.dataset.y,0),i=ua(t.getAttribute("width")),o=ua(t.getAttribute("height")),s=Bq(t);return Object.assign(s,{x:n,y:r,width:i,height:o,"data-horizontal-align":t.dataset.horizontalAlign||"LEFT","data-vertical-align":t.dataset.verticalAlign||"TOP"}),oH(e,s)}function Bq(e){return cn(e,["font-family","font-size","font-weight","font-style","font-variant","letter-spacing","line-height","fill","stroke","stroke-width"])}const Lr=(e,t)=>{e!==t&&(t?e.replaceWith(t):e.remove())};class Wq{constructor(t,n){this.options=t,this.template=n,this.rendered=!1}getOptions(){return this.options}getSVG(){return this.template}render(){const t=this.getSVG();if(this.rendered)return t;Vq(t,this.options),t.style.visibility="hidden";const n=()=>{Xq(this.template,this.options),Fz(this.template),t.style.removeProperty("visibility")};if(hh)n();else{const r=new MutationObserver(i=>{i.forEach(o=>{o.addedNodes.forEach(s=>{(s===t||s.contains(t))&&(n(),r.disconnect())})})});try{r.observe(document,{childList:!0,subtree:!0})}catch(i){n(),console.error(i)}}return this.rendered=!0,t}}function Vq(e,t){Gq(e,t),Yq(e,t),Wz(e,t)}function Gq(e,t){var n;const{themeConfig:r,data:i}=t;Vz(e,(n=r.base)==null?void 0:n.global),e.querySelectorAll("[data-element-type]").forEach(s=>{var a,l,c,u,h,f,d;const p=s.id||"";if(cH(s)){const g=nh(s,i.title||"",Object.assign({},(a=r.base)==null?void 0:a.text,r.title,(l=i.attributes)==null?void 0:l.title));return Lr(s,g)}if(uH(s)){const g=nh(s,i.desc||"",Object.assign({},(c=r.base)==null?void 0:c.text,r.desc,(u=i.attributes)==null?void 0:u.desc));return Lr(s,g)}if(dH(s)){const g=Yb(e,s,(h=i.illus)==null?void 0:h[p],void 0,(f=i.attributes)==null?void 0:f.illus);return Lr(s,g)}if(fH(s))return Array.from(s.children).forEach(g=>{$_(e,g,t)});if(hH(s)){const g=$_(e,s,t);return Lr(s,g)}if(wH(s))return Gz(e,s);if((d=s.dataset.elementType)!=null&&d.startsWith("item-")){const g=F_(s.dataset.indexes||"0"),m=s.dataset.elementType.replace("item-",""),v=uo(i,g);if(mH(s)||yH(s)||vH(s)){const b=Hq(m,s,t);return Lr(s,b)}if(!v)return;if(bH(s)){const b=OD(e,s,v);return Lr(s,b)}if(sh(s)){const b=bD(e,s,v,t);return Lr(s,b)}}if(pH(s))return jq(s,t);if(!gH(s))return zq(s,t)}),qq(e,t)}function Yq(e,t){const{width:n,height:r}=t,{style:i={},attributes:o={},id:s,className:a}=t.svg||{};s&&(e.id=s),a&&e.classList.add(a),n!==void 0&&e.setAttribute("width",typeof n=="number"?`${n}px`:n),r!==void 0&&e.setAttribute("height",typeof r=="number"?`${r}px`:r),Object.assign(e.style,i),ut(e,o)}function Xq(e,t){const{padding:n=0,viewBox:r}=t;r?e.setAttribute("viewBox",r):n!==void 0&&B_(e,xi(n))}let E_;function Uq(){if(E_)return!0;if(typeof window=="undefined"||typeof document=="undefined")return!1;const e=document.body;if(!e)return!1;let t=!1;try{const r=document.createElement("div");r.style.cssText=`
26
- position: absolute;
27
- left: 11px;
28
- top: 13px;
29
- width: 37px;
30
- height: 19px;
31
- padding: 0;
32
- margin: 0;
33
- border: 0;
34
- visibility: hidden;
35
- `,e.appendChild(r),r.offsetHeight;const i=r.getBoundingClientRect();e.removeChild(r),t=i.width===37&&i.height===19&&i.left!==0&&i.top!==0}catch(r){t=!1}if(!t)return!1;let n=!1;try{const r=document.createElement("canvas");r.width=100,r.height=50;const i=r.getContext("2d");if(!i)return!1;i.font="20px sans-serif";const o=i.measureText("Hello");n=typeof o.width=="number"&&o.width>0&&o.width<1e3}catch(r){n=!1}return n&&(E_=n),n}let rh=1.01;const Kq=e=>{rh=e};Pz(Mz);let ha=null,tn=null;function Zq(){return ha||(ha=document.createElement("canvas").getContext("2d"),ha)}function Qq(){return document.body?tn||(tn=document.createElement("span"),tn.style.position="absolute",tn.style.top="-10000px",tn.style.left="-10000px",tn.style.visibility="hidden",tn.style.pointerEvents="none",tn.style.whiteSpace="pre",tn.style.display="inline-block",tn.style.padding="0",tn.style.margin="0",document.body.appendChild(tn),tn):null}function Jq(e,t){if(t==null)return e*1.4;if(typeof t=="string"){const n=t.trim();if(n.endsWith("px")){const r=Number.parseFloat(n);return Number.isFinite(r)?r:e*1.4}t=Number(n)}return typeof t!="number"||!Number.isFinite(t)?e*1.4:t>4?t:t*e}function eH(e,{fontFamily:t,fontSize:n,fontWeight:r,lineHeight:i}){const o=e.split(/\r?\n/),s=Rr(t),a=r||"normal",l=Jq(n,i),c=Zq();if(c)return c.font=`${a} ${n}px ${s}`,{width:o.reduce((d,p)=>{const g=c.measureText(p);return Math.max(d,g.width)},0),height:l*Math.max(o.length,1)};const u=Qq();if(!u)return null;u.style.fontFamily=s,u.style.fontSize=`${n}px`,u.style.fontWeight=String(a),u.style.lineHeight=`${l}px`,u.textContent=e;const h=u.getBoundingClientRect();return{width:h.width,height:h.height}}function M_(e="",t){var n;if(t.width&&t.height)return{width:t.width,height:t.height};if(typeof e!="string"&&typeof e!="number")return{width:0,height:0};const{fontFamily:r=Lu,fontSize:i=14,fontWeight:o="normal",lineHeight:s=1.4}=t,a=e.toString(),l={fontFamily:r,fontSize:parseFloat(i.toString()),fontWeight:o,lineHeight:s},c=()=>Ez(a,l),u=Uq()&&(n=eH(a,l))!=null?n:c();return{width:Math.ceil(u.width*rh),height:Math.ceil(u.height*rh)}}function Ae(e,t={}){const n=document.createElementNS("http://www.w3.org/2000/svg",e);return ut(n,t),n}function bi(e){const n=new DOMParser().parseFromString(e,"image/svg+xml");if(n.querySelector("parsererror"))throw new Error("Invalid SVG string");return n.documentElement}function ut(e,t){Object.entries(t).forEach(([n,r])=>{r==null?e.removeAttribute(n):e.setAttribute(n,r)})}function cn(e,t,n=!0){return t.reduce((r,i)=>{const o=e.getAttribute(i);return(!n||o!==null&&o!==""&&o!==void 0)&&(r[i]=o),r},{})}function tH(e,t){t.forEach(n=>{e.removeAttribute(n)})}function _i(e,t){if(t(e)===!1)return;Array.from(e.children).forEach(r=>{_i(r,t)})}function fa(e,t="infographic-defs"){const n=t?`defs#${t}`:"defs",r=e.querySelector(n);if(r)return r;const i=Ae("defs");return t&&(i.id=t),e.prepend(i),i}var I_=Object.getOwnPropertySymbols,nH=Object.prototype.hasOwnProperty,rH=Object.prototype.propertyIsEnumerable,iH=(e,t)=>{var n={};for(var r in e)nH.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&I_)for(var r of I_(e))t.indexOf(r)<0&&rH.call(e,r)&&(n[r]=e[r]);return n};function Nr(e){return R_(e)?e.querySelector("span"):null}function oH(e,t){const n=document.createElement("span");n.setAttribute("xmlns","http://www.w3.org/1999/xhtml");const r=Ae("foreignObject",{overflow:"visible"});return r.appendChild(n),A_(r,{textContent:e,attributes:t}),r}function A_(e,t){const{textContent:n,attributes:r}=t;if(n!==void 0&&ih(e,n),!r)return;const i=Nr(e);let{width:o,height:s}=r;const a={};if(i){if(Object.assign(i.style,aH(r)),!o||!s){const d=n!=null?n:da(e),{fontFamily:p,fontSize:g,fontWeight:m,lineHeight:v}=i.style,b=g?parseFloat(String(g)):12,_=M_(d,{fontFamily:p,fontSize:b,fontWeight:m,lineHeight:v.endsWith("px")?parseFloat(v):(parseFloat(v)||1.4)*b});!o&&!e.hasAttribute("width")&&(o=String(_.width)),!s&&!e.hasAttribute("height")&&(s=String(_.height))}const{"data-horizontal-align":h,"data-vertical-align":f}=r;Object.assign(i.style,sH(h,f))}const{id:l,x:c,y:u}=r;l&&(a.id=l),c!==void 0&&(a.x=String(c)),u!==void 0&&(a.y=String(u)),o!==void 0&&(a.width=String(o)),s!==void 0&&(a.height=String(s)),ut(e,a)}function sH(e,t){const n={width:"100%",height:"100%",display:"flex",flexWrap:"wrap",wordBreak:"break-word",whiteSpace:"pre-wrap"};switch(e){case"LEFT":n.textAlign="left",n.justifyContent="flex-start";break;case"CENTER":n.textAlign="center",n.justifyContent="center";break;case"RIGHT":n.textAlign="right",n.justifyContent="flex-end";break}switch(t){case"TOP":n.alignContent="flex-start",n.alignItems="flex-start";break;case"MIDDLE":n.alignContent="center",n.alignItems="center";break;case"BOTTOM":n.alignContent="flex-end",n.alignItems="flex-end";break}return n}function aH(e){const t=e,{x:n,y:r,width:i,height:o,["data-horizontal-align"]:s,["data-vertical-align"]:a,["font-size"]:l,["letter-spacing"]:c,["line-height"]:u,fill:h,["stroke-width"]:f,["text-anchor"]:d,["dominant-baseline"]:p,["font-family"]:g}=t,m=iH(t,["x","y","width","height","data-horizontal-align","data-vertical-align","font-size","letter-spacing","line-height","fill","stroke-width","text-anchor","dominant-baseline","font-family"]),v={overflow:"visible"};return h&&(v.color=h),Object.entries(m).forEach(([b,_])=>{v[LL(b)]=_}),l&&(v.fontSize=`${l}px`),u&&(v.lineHeight=typeof u=="string"&&u.endsWith("px")?u:+u),c&&(v.letterSpacing=`${c}px`),f&&(v.strokeWidth=`${f}px`),g&&(v.fontFamily=Rr(g)),v}function da(e){const t=Nr(e);return t&&(t.innerText||t.textContent)||""}function ih(e,t){const n=Nr(e);if(n)try{n.innerText=t}catch(r){n.textContent=t}}function oh(e){const t=Nr(e);if(!t)return{};const{color:n,fontSize:r,fontFamily:i,justifyContent:o,alignContent:s,fontWeight:a}=t.style,[l,c]=lH(o,s),u={"data-horizontal-align":l,"data-vertical-align":c};return i&&(u["font-family"]=pi(i)),a&&(u["font-weight"]=a),r&&(u["font-size"]=String(parseInt(r))),n&&(u.fill=n),{attributes:u,textContent:da(e)}}function lH(e,t){let n="LEFT",r="TOP";switch(e){case"flex-start":n="LEFT";break;case"center":n="CENTER";break;case"flex-end":n="RIGHT";break}switch(t){case"flex-start":r="TOP";break;case"center":r="MIDDLE";break;case"flex-end":r="BOTTOM";break}return[n,r]}const Xt=(e,t)=>{var n;return((n=e==null?void 0:e.dataset)==null?void 0:n.elementType)===t},pa=(e,t)=>e.tagName.toLowerCase()===t.toLowerCase(),cH=e=>Xt(e,"title"),uH=e=>Xt(e,"desc"),hH=e=>Xt(e,"shape"),fH=e=>Xt(e,"shapes-group"),dH=e=>Xt(e,"illus"),pH=e=>e instanceof SVGElement&&pa(e,"text"),gH=e=>e instanceof SVGElement&&pa(e,"g"),sh=e=>Xt(e,"item-icon"),T_=e=>Xt(e,"item-icon-group"),mH=e=>Xt(e,"item-label"),yH=e=>Xt(e,"item-desc"),vH=e=>Xt(e,"item-value"),bH=e=>Xt(e,"item-illus"),_H=e=>Xt(e,"edit-area"),wH=e=>Xt(e,"btns-group"),xH=e=>Xt(e,"rough-element"),CH=e=>Xt(e,"rough-volume");function R_(e){return pa(e,"foreignObject")}function PH(e){return pa(e,"SPAN")}function Yn(e){const t=ah(e);return[Ge.Title,Ge.Desc,Ge.ItemLabel,Ge.ItemDesc].includes(t)}function k_(e){if(!e||!Yn(e))return!1;const t=Nr(e);return t?t.hasAttribute("contenteditable"):!1}function OH(e){const t=e.tagName.toLowerCase();return["rect","circle","ellipse","line","polygon","polyline","path"].includes(t)}function fr(e){return sh(e)||T_(e)}function SH(e){let t=e;for(;t;){if(wi(t,$c))return!0;t=t.parentElement}return!1}function xo(e,t){e.setAttribute("data-element-type",t)}function wi(e,t){return e.querySelector(`[data-element-type="${t}"]`)}function ah(e){return fr(e)?Ge.ItemIcon:e.getAttribute("data-element-type")||Ge.Unknown}function $H(e){var t,n,r,i=e;function o(a,l){++t>i&&(r=n,s(1),++t),n[a]=l}function s(a){t=0,n=Object.create(null),a||(r=Object.create(null))}return s(),{clear:s,has:function(a){return n[a]!==void 0||r[a]!==void 0},get:function(a){var l=n[a];if(l!==void 0)return l;if((l=r[a])!==void 0)return o(a,l),l},set:function(a,l){n[a]!==void 0?n[a]=l:o(a,l)}}}var L_=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});const N_=globalThis.fetch,lh=$H(1024),ch=new Map;function EH(e){const t=Array.from(e.headers.entries());return t.length===0?"":(t.sort(([n],[r])=>n.toLowerCase().localeCompare(r.toLowerCase())),t.map(([n,r])=>`${n.toLowerCase()}:${r}`).join("|"))}function MH(e){const t=EH(e);return t?`${e.method}:${e.url}:${t}`:`${e.method}:${e.url}`}function z_(e){return new Response(e.body.slice(0),e.init)}function IH(e,t){return L_(this,null,function*(){try{const n=yield N_(e),i={body:yield n.arrayBuffer(),init:{status:n.status,statusText:n.statusText,headers:Array.from(n.headers.entries())}};return n.ok&&lh.set(t,i),i}finally{ch.delete(t)}})}function ga(e,t){return L_(this,null,function*(){const n=new Request(e,t);if(n.method!=="GET")return N_(n);const r=MH(n);if(lh.has(r))return z_(lh.get(r));let i=ch.get(r);i||(i=IH(n,r),ch.set(r,i));const o=yield i;return z_(o)})}function AH(e,t={title:"信息图标题",desc:"信息图描述",items:"信息图的内容项",label:"项目标签文本",value:"项目数值内容",icon:"项目图标",illus:"项目插图",children:"子级项目(多层结构)"}){const{structure:n,items:r}=e,i=[],o=l=>" ".repeat(l);function s(l,c,u){const h=t[l];return h?`${o(u)}/** ${h} */
25
+ `.replace(/\s+/g," ").trim()}function Hw(e){if(!e||typeof e!="string")return[];try{const n=e.trim().replace(/,/g," ").replace(/\s+/g," ").split(" ").filter(Boolean),r=[];for(let i=0;i<n.length-1;i+=2){const o=parseFloat(n[i]),s=parseFloat(n[i+1]);if(isNaN(o)||isNaN(s)){console.warn(`Invalid coordinate pair at index ${i}: "${n[i]}", "${n[i+1]}"`);continue}r.push([o,s])}return n.length%2!==0&&console.warn(`Odd number of coordinates in points attribute, last value ignored: "${n[n.length-1]}"`),r}catch(t){return console.error("Failed to parse polygon points:",e,t),[]}}function jw(e,t,n){var r;const{themeConfig:i}=n,o=Object.assign({},(r=i.base)==null?void 0:r.shape,i.shape),s=wo(t,o);return ct(t,s),$H(t,e,n),t}function OH(e,t){var n;ct(e,((n=t.themeConfig.base)==null?void 0:n.shape)||{})}function $H(e,t,n){const r=n.themeConfig.stylize;if(!r)return e;const{type:i}=r;if(!i)return e;if(i==="rough")return xH(e,t,r);if(i==="pattern")return Qq(e,t,n);if(i==="linear-gradient"||i==="radial-gradient"){const{fill:o,stroke:s}=cn(e,["fill","stroke"]);Er(o)&&vw(e,t,r,"fill"),Er(s)&&vw(e,t,r,"stroke");return}}function EH(e,t){var n;const{themeConfig:r}=t,{"font-family":i=Xu}=((n=r.base)==null?void 0:n.text)||{};e.setAttribute("font-family",i)}function gh(e,t,n={}){if(!t)return null;const r=e,i=wo(r,n);ct(r,i);const o=IH(t,r);for(const s in r.dataset)o.setAttribute(`data-${iD(s)}`,r.dataset[s]);return o}function MH(e,t,n){var r,i,o;const s=t.nodeName==="text"?t:null;if(!s)return null;const{data:a,themeConfig:l}=n,c=t_(t.dataset.indexes||"0"),u=mo(a,c),h=String(Ks(u,e,"")),f=(r=u==null?void 0:u.attributes)==null?void 0:r[e],d=Object.assign({},(i=l.base)==null?void 0:i.text,(o=l.item)==null?void 0:o[e],f),p=wo(s,d);return gh(t,t.textContent||h,p)}function AH(e,t){var n;const r=((n=t.themeConfig.base)==null?void 0:n.text)||{};ct(e,r),r["font-family"]&&e.setAttribute("font-family",kr(r["font-family"])),e.style.userSelect="none",e.style.pointerEvents="none"}const wa=(e,t)=>e?parseFloat(e):t;function IH(e,t){const n=wa(t.dataset.x,0),r=wa(t.dataset.y,0),i=wa(t.getAttribute("width")),o=wa(t.getAttribute("height")),s=TH(t);return Object.assign(s,{x:n,y:r,width:i,height:o,"data-horizontal-align":t.dataset.horizontalAlign||"LEFT","data-vertical-align":t.dataset.verticalAlign||"TOP"}),YH(e,s)}function TH(e){return cn(e,["font-family","font-size","font-weight","font-style","font-variant","letter-spacing","line-height","fill","stroke","stroke-width"])}const Nr=(e,t)=>{e!==t&&(t?e.replaceWith(t):e.remove())};class RH{constructor(t,n){this.options=t,this.template=n,this.rendered=!1}getOptions(){return this.options}getSVG(){return this.template}render(){const t=this.getSVG();if(this.rendered)return t;kH(t,this.options),t.style.visibility="hidden";const n=()=>{zH(this.template,this.options),ID(this.template),t.style.removeProperty("visibility")};if(Ph)n();else{const r=new MutationObserver(i=>{i.forEach(o=>{o.addedNodes.forEach(s=>{(s===t||s.contains(t))&&(n(),r.disconnect())})})});try{r.observe(document,{childList:!0,subtree:!0})}catch(i){n(),console.error(i)}}return this.rendered=!0,t}}function kH(e,t){LH(e,t),NH(e,t),RD(e,t)}function LH(e,t){var n;const{themeConfig:r,data:i}=t;kD(e,(n=r.base)==null?void 0:n.global),e.querySelectorAll("[data-element-type]").forEach(s=>{var a,l,c,u,h,f,d;const p=s.id||"";if(ZH(s)){const g=gh(s,i.title||"",Object.assign({},(a=r.base)==null?void 0:a.text,r.title,(l=i.attributes)==null?void 0:l.title));return Nr(s,g)}if(QH(s)){const g=gh(s,i.desc||"",Object.assign({},(c=r.base)==null?void 0:c.text,r.desc,(u=i.attributes)==null?void 0:u.desc));return Nr(s,g)}if(tj(s)){const g=aw(e,s,(h=i.illus)==null?void 0:h[p],void 0,(f=i.attributes)==null?void 0:f.illus);return Nr(s,g)}if(ej(s))return Array.from(s.children).forEach(g=>{jw(e,g,t)});if(JH(s)){const g=jw(e,s,t);return Nr(s,g)}if(cj(s))return LD(e,s);if((d=s.dataset.elementType)!=null&&d.startsWith("item-")){const g=t_(s.dataset.indexes||"0"),m=s.dataset.elementType.replace("item-",""),v=mo(i,g);if(ij(s)||oj(s)||sj(s)){const b=MH(m,s,t);return Nr(s,b)}if(!v)return;if(aj(s)){const b=pq(e,s,v);return Nr(s,b)}if(bh(s)){const b=lq(e,s,v,t);return Nr(s,b)}}if(nj(s))return AH(s,t);if(!rj(s))return OH(s,t)}),EH(e,t)}function NH(e,t){const{width:n,height:r}=t,{style:i={},attributes:o={},id:s,className:a}=t.svg||{};s&&(e.id=s),a&&e.classList.add(a),n!==void 0&&e.setAttribute("width",typeof n=="number"?`${n}px`:n),r!==void 0&&e.setAttribute("height",typeof r=="number"?`${r}px`:r),Object.assign(e.style,i),ct(e,o)}function zH(e,t){const{padding:n=0,viewBox:r}=t;r?e.setAttribute("viewBox",r):n!==void 0&&n_(e,qr(n))}let mh=1.01;const DH=e=>{mh=e};dD(vD);let _a,tn=null;function qH(){return typeof document=="undefined"?null:(_a!==void 0||(_a=document.createElement("canvas").getContext("2d")),_a)}function HH(){return typeof document=="undefined"||!document.body?null:tn||(tn=document.createElement("span"),tn.style.position="absolute",tn.style.top="-10000px",tn.style.left="-10000px",tn.style.visibility="hidden",tn.style.pointerEvents="none",tn.style.whiteSpace="pre",tn.style.display="inline-block",tn.style.padding="0",tn.style.margin="0",document.body.appendChild(tn),tn)}function jH(e,t){if(t==null)return e*1.4;if(typeof t=="string"){const n=t.trim();if(n.endsWith("px")){const r=Number.parseFloat(n);return Number.isFinite(r)?r:e*1.4}t=Number(n)}return typeof t!="number"||!Number.isFinite(t)?e*1.4:t>4?t:t*e}function FH(e,{fontFamily:t,fontSize:n,fontWeight:r,lineHeight:i}){const o=e.split(/\r?\n/),s=kr(t),a=r||"normal",l=jH(n,i),c=qH();if(c)return c.font=`${a} ${n}px ${s}`,{width:o.reduce((d,p)=>{const g=c.measureText(p);return Math.max(d,g.width)},0),height:l*Math.max(o.length,1)};const u=HH();if(!u)return null;u.style.fontFamily=s,u.style.fontSize=`${n}px`,u.style.fontWeight=String(a),u.style.lineHeight=`${l}px`,u.textContent=e;const h=u.getBoundingClientRect();return e&&h.width<=0&&h.height<=0?null:{width:h.width,height:h.height}}function Fw(e="",t){var n;if(t.width&&t.height)return{width:t.width,height:t.height};if(typeof e!="string"&&typeof e!="number")return{width:0,height:0};const{fontFamily:r=Xu,fontSize:i=14,fontWeight:o="normal",lineHeight:s=1.4}=t,a=e.toString(),l={fontFamily:r,fontSize:parseFloat(i.toString()),fontWeight:o,lineHeight:s},c=()=>yD(a,l),u=(n=FH(a,l))!=null?n:c();return{width:Math.ceil(u.width*mh),height:Math.ceil(u.height*mh)}}function Ie(e,t={}){const n=document.createElementNS("http://www.w3.org/2000/svg",e);return ct(n,t),n}function xi(e){const n=new DOMParser().parseFromString(e,"image/svg+xml");if(n.querySelector("parsererror"))throw new Error("Invalid SVG string");return n.documentElement}function ct(e,t){Object.entries(t).forEach(([n,r])=>{r==null?e.removeAttribute(n):e.setAttribute(n,r)})}function cn(e,t,n=!0){return t.reduce((r,i)=>{const o=e.getAttribute(i);return(!n||o!==null&&o!==""&&o!==void 0)&&(r[i]=o),r},{})}function BH(e,t){t.forEach(n=>{e.removeAttribute(n)})}function Ci(e,t){if(t(e)===!1)return;Array.from(e.children).forEach(r=>{Ci(r,t)})}function xa(e,t="infographic-defs"){const n=t?`defs#${t}`:"defs",r=e.querySelector(n);if(r)return r;const i=Ie("defs");return t&&(i.id=t),e.prepend(i),i}var Bw=Object.getOwnPropertySymbols,WH=Object.prototype.hasOwnProperty,VH=Object.prototype.propertyIsEnumerable,GH=(e,t)=>{var n={};for(var r in e)WH.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Bw)for(var r of Bw(e))t.indexOf(r)<0&&VH.call(e,r)&&(n[r]=e[r]);return n};function zr(e){return Gw(e)?e.querySelector("span"):null}function YH(e,t){const n=document.createElement("span");n.setAttribute("xmlns","http://www.w3.org/1999/xhtml");const r=Ie("foreignObject",{overflow:"visible"});return r.appendChild(n),Ww(r,{textContent:e,attributes:t}),r}function Ww(e,t){const{textContent:n,attributes:r}=t;if(n!==void 0&&yh(e,n),!r)return;const i=zr(e);let{width:o,height:s}=r;const a={};if(i){if(Object.assign(i.style,UH(r)),!o||!s){const d=n!=null?n:Ca(e),{fontFamily:p,fontSize:g,fontWeight:m,lineHeight:v}=i.style,b=g?parseFloat(String(g)):12,w=Fw(d,{fontFamily:p,fontSize:b,fontWeight:m,lineHeight:v.endsWith("px")?parseFloat(v):(parseFloat(v)||1.4)*b});!o&&!e.hasAttribute("width")&&(o=String(w.width)),!s&&!e.hasAttribute("height")&&(s=String(w.height))}const{"data-horizontal-align":h,"data-vertical-align":f}=r;Object.assign(i.style,XH(h,f))}const{id:l,x:c,y:u}=r;l&&(a.id=l),c!==void 0&&(a.x=String(c)),u!==void 0&&(a.y=String(u)),o!==void 0&&(a.width=String(o)),s!==void 0&&(a.height=String(s)),ct(e,a)}function XH(e,t){const n={width:"100%",height:"100%",display:"flex",flexWrap:"wrap",wordBreak:"break-word",whiteSpace:"pre-wrap"};switch(e){case"LEFT":n.textAlign="left",n.justifyContent="flex-start";break;case"CENTER":n.textAlign="center",n.justifyContent="center";break;case"RIGHT":n.textAlign="right",n.justifyContent="flex-end";break}switch(t){case"TOP":n.alignContent="flex-start",n.alignItems="flex-start";break;case"MIDDLE":n.alignContent="center",n.alignItems="center";break;case"BOTTOM":n.alignContent="flex-end",n.alignItems="flex-end";break}return n}function UH(e){const t=e,{x:n,y:r,width:i,height:o,["data-horizontal-align"]:s,["data-vertical-align"]:a,["font-size"]:l,["letter-spacing"]:c,["line-height"]:u,fill:h,["stroke-width"]:f,["text-anchor"]:d,["dominant-baseline"]:p,["font-family"]:g}=t,m=GH(t,["x","y","width","height","data-horizontal-align","data-vertical-align","font-size","letter-spacing","line-height","fill","stroke-width","text-anchor","dominant-baseline","font-family"]),v={overflow:"visible"};return h&&(v.color=h),Object.entries(m).forEach(([b,w])=>{v[XL(b)]=w}),l&&(v.fontSize=`${l}px`),u&&(v.lineHeight=typeof u=="string"&&u.endsWith("px")?u:+u),c&&(v.letterSpacing=`${c}px`),f&&(v.strokeWidth=`${f}px`),g&&(v.fontFamily=kr(g)),v}function Ca(e){const t=zr(e);return t&&(t.innerText||t.textContent)||""}function yh(e,t){const n=zr(e);if(n)try{n.innerText=t}catch(r){n.textContent=t}}function vh(e){const t=zr(e);if(!t)return{};const{color:n,fontSize:r,fontFamily:i,justifyContent:o,alignContent:s,fontWeight:a}=t.style,[l,c]=KH(o,s),u={"data-horizontal-align":l,"data-vertical-align":c};return i&&(u["font-family"]=yi(i)),a&&(u["font-weight"]=a),r&&(u["font-size"]=String(parseInt(r))),n&&(u.fill=n),{attributes:u,textContent:Ca(e)}}function KH(e,t){let n="LEFT",r="TOP";switch(e){case"flex-start":n="LEFT";break;case"center":n="CENTER";break;case"flex-end":n="RIGHT";break}switch(t){case"flex-start":r="TOP";break;case"center":r="MIDDLE";break;case"flex-end":r="BOTTOM";break}return[n,r]}const Xt=(e,t)=>{var n;return((n=e==null?void 0:e.dataset)==null?void 0:n.elementType)===t},Pa=(e,t)=>e.tagName.toLowerCase()===t.toLowerCase(),ZH=e=>Xt(e,"title"),QH=e=>Xt(e,"desc"),JH=e=>Xt(e,"shape"),ej=e=>Xt(e,"shapes-group"),tj=e=>Xt(e,"illus"),nj=e=>e instanceof SVGElement&&Pa(e,"text"),rj=e=>e instanceof SVGElement&&Pa(e,"g"),bh=e=>Xt(e,"item-icon"),Vw=e=>Xt(e,"item-icon-group"),ij=e=>Xt(e,"item-label"),oj=e=>Xt(e,"item-desc"),sj=e=>Xt(e,"item-value"),aj=e=>Xt(e,"item-illus"),lj=e=>Xt(e,"edit-area"),cj=e=>Xt(e,"btns-group"),uj=e=>Xt(e,"rough-element"),hj=e=>Xt(e,"rough-volume");function Gw(e){return Pa(e,"foreignObject")}function fj(e){return Pa(e,"SPAN")}function Jn(e){const t=wh(e);return[Ge.Title,Ge.Desc,Ge.ItemLabel,Ge.ItemDesc].includes(t)}function Yw(e){if(!e||!Jn(e))return!1;const t=zr(e);return t?t.hasAttribute("contenteditable"):!1}function dj(e){const t=e.tagName.toLowerCase();return["rect","circle","ellipse","line","polygon","polyline","path"].includes(t)}function mr(e){return bh(e)||Vw(e)}function pj(e){let t=e;for(;t;){if(Si(t,Cs))return!0;t=t.parentElement}return!1}function Pi(e,t){e.setAttribute("data-element-type",t)}function Si(e,t){return e.querySelector(`[data-element-type="${t}"]`)}function wh(e){return mr(e)?Ge.ItemIcon:e.getAttribute("data-element-type")||Ge.Unknown}function gj(e){var t,n,r,i=e;function o(a,l){++t>i&&(r=n,s(1),++t),n[a]=l}function s(a){t=0,n=Object.create(null),a||(r=Object.create(null))}return s(),{clear:s,has:function(a){return n[a]!==void 0||r[a]!==void 0},get:function(a){var l=n[a];if(l!==void 0)return l;if((l=r[a])!==void 0)return o(a,l),l},set:function(a,l){n[a]!==void 0?n[a]=l:o(a,l)}}}var Xw=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});const Uw=globalThis.fetch,_h=gj(1024),xh=new Map;function mj(e){const t=Array.from(e.headers.entries());return t.length===0?"":(t.sort(([n],[r])=>n.toLowerCase().localeCompare(r.toLowerCase())),t.map(([n,r])=>`${n.toLowerCase()}:${r}`).join("|"))}function yj(e){const t=mj(e);return t?`${e.method}:${e.url}:${t}`:`${e.method}:${e.url}`}function Kw(e){return new Response(e.body.slice(0),e.init)}function vj(e,t){return Xw(this,null,function*(){try{const n=yield Uw(e),i={body:yield n.arrayBuffer(),init:{status:n.status,statusText:n.statusText,headers:Array.from(n.headers.entries())}};return n.ok&&_h.set(t,i),i}finally{xh.delete(t)}})}function Sa(e,t){return Xw(this,null,function*(){const n=new Request(e,t);if(n.method!=="GET")return Uw(n);const r=yj(n);if(_h.has(r))return Kw(_h.get(r));let i=xh.get(r);i||(i=vj(n,r),xh.set(r,i));const o=yield i;return Kw(o)})}function bj(e,t={title:"信息图标题",desc:"信息图描述",items:"信息图的内容项",label:"项目标签文本",value:"项目数值内容",icon:"项目图标",illus:"项目插图",children:"子级项目(多层结构)"}){const{structure:n,items:r}=e,i=[],o=l=>" ".repeat(l);function s(l,c,u){const h=t[l];return h?`${o(u)}/** ${h} */
36
26
  ${o(u)}${l}: ${c};`:`${o(u)}${l}: ${c};`}function a(l,c){const u=r[l],h=[];for(const f of u){const d=f==="value"?"number":"string";h.push(s(f,d,c+1))}return r[l+1]&&h.push(s("children",`Array<${a(l+1,c+1)}>`,c+1)),`{
37
27
  ${h.join(`
38
28
  `)}
39
29
  ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push(s("title","string",1)),i.push(s("desc","string",1))),n.includes("item")&&r.length>0&&i.push(s("items",`Array<${a(0,1)}>`,1)),i.push("}"),i.join(`
40
- `)}function D_(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t=(t<<5)-t+r,t=t&t}return Math.abs(t).toString()}var TH=Object.defineProperty,RH=Object.defineProperties,kH=Object.getOwnPropertyDescriptors,q_=Object.getOwnPropertySymbols,LH=Object.prototype.hasOwnProperty,NH=Object.prototype.propertyIsEnumerable,H_=(e,t,n)=>t in e?TH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zH=(e,t)=>{for(var n in t||(t={}))LH.call(t,n)&&H_(e,n,t[n]);if(q_)for(var n of q_(t))NH.call(t,n)&&H_(e,n,t[n]);return e},DH=(e,t)=>RH(e,kH(t));const qH=new WeakMap;function HH(e,t={}){const n=Ae("use",DH(zH({},t),{href:Db(e)}));return j_(n),qH.set(n,e),n}function j_(e){const{stroke:t,fill:n}=cn(e,["fill","stroke"]);e.style.color=n||t||"currentColor"}function ma(e){return e.tagName==="use"?e:e.querySelector("use")}function uh(e){const t=ma(e);return t?cn(t,["width","height","x","y","width","height","fill","fill-opacity","stroke","opacity"]):{}}function jH(e,t,n){const r=ma(e);r&&(n&&ut(r,n),j_(r))}const hh=!!(typeof process!="undefined"&&process.versions&&process.versions.node),FH=",",BH=(e,t=FH)=>e.split(t).map(n=>parseInt(n,10)),F_=e=>BH(e);function fh(...e){return e.map(t=>t.replace(/^\/+|\/+$/g,"")).filter(t=>t.trim().length>0).join("/")}function ya(e){const t=e.getAttribute("viewBox");if(t){const[s,a,l,c]=t.split(" ").map(Number);return{x:s,y:a,width:l,height:c}}const n=e.getAttribute("width"),r=e.getAttribute("height"),i=Number(n)||0,o=Number(r)||0;return{x:0,y:0,width:i,height:o}}function WH(e,t,n){const r=e.width*t,i=e.height*t,o=n.x-(n.x-e.x)*t,s=n.y-(n.y-e.y)*t;return{x:o,y:s,width:r,height:i}}function VH(e){return`${e.x} ${e.y} ${e.width} ${e.height}`}function xi(e){return e?typeof e=="number"?[e,e,e,e]:e.length===1?[e[0],e[0],e[0],e[0]]:e.length===2?[e[0],e[1],e[0],e[1]]:e.length===3?[e[0],e[1],e[2],e[1]]:e.length===4?[e[0],e[1],e[2],e[3]]:[0,0,0,0]:[0,0,0,0]}function B_(e,t){if(hh)W_(e,t);else if(document.contains(e))V_(e,t);else try{const n=new MutationObserver(r=>{r.forEach(i=>{i.addedNodes.forEach(o=>{(o===e||o.contains(e))&&(GH(e,()=>{V_(e,t)}),n.disconnect())})})});n.observe(document,{childList:!0,subtree:!0})}catch(n){W_(e,t)}}function W_(e,t){const n=ya(e),[r,i,o,s]=t;ut(e,{viewBox:`${n.x-s} ${n.y-r} ${n.width+s+i} ${n.height+r+o}`})}function V_(e,t){const n=e.getBBox(),r=e.getBoundingClientRect(),i=r.width>0?n.width/r.width:1,o=r.height>0?n.height/r.height:1,[s,a,l,c]=t,u=s*o,h=a*i,f=l*o,d=c*i,p=n.x-d,g=n.y-u,m=n.width+d+h,v=n.height+u+f;ut(e,{viewBox:`${p} ${g} ${m} ${v}`})}function GH(e,t){requestAnimationFrame(()=>{const n=()=>{const r=e.getBoundingClientRect();r.width>0&&r.height>0?t():requestAnimationFrame(n)};n()})}function An(e,t){if(document.getElementById(e))return;const n=document.createElement("style");n.id=e,n.textContent=t,document.head.appendChild(n)}function YH(){return crypto&&crypto.randomUUID?crypto.randomUUID():"xxxx-xxxx-4xxx-yxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}var XH=Object.defineProperty,UH=Object.defineProperties,KH=Object.getOwnPropertyDescriptors,va=Object.getOwnPropertySymbols,G_=Object.prototype.hasOwnProperty,Y_=Object.prototype.propertyIsEnumerable,X_=(e,t,n)=>t in e?XH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ut=(e,t)=>{for(var n in t||(t={}))G_.call(t,n)&&X_(e,n,t[n]);if(va)for(var n of va(t))Y_.call(t,n)&&X_(e,n,t[n]);return e},dh=(e,t)=>UH(e,KH(t)),ZH=(e,t)=>{var n={};for(var r in e)G_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&va)for(var r of va(e))t.indexOf(r)<0&&Y_.call(e,r)&&(n[r]=e[r]);return n};function De(e){const t=e,{id:n,x:r=0,y:i=0,width:o,height:s,alignHorizontal:a="left",alignVertical:l="top",children:c,fontSize:u=14,fontFamily:h,fontStyle:f,fontWeight:d,textDecoration:p,letterSpacing:g,wordSpacing:m,opacity:v,fill:b="black",lineHeight:_,wordWrap:x,backgroundColor:w="none",backgroundOpacity:C=1,backgroundRadius:P=0}=t,O=ZH(t,["id","x","y","width","height","alignHorizontal","alignVertical","children","fontSize","fontFamily","fontStyle","fontWeight","textDecoration","letterSpacing","wordSpacing","opacity","fill","lineHeight","wordWrap","backgroundColor","backgroundOpacity","backgroundRadius"]);let $=o,S=s,M=0,I=0;if(!$||!S){const F=M_(c,e);$||($=F.width),S||(S=F.height)}o&&(M=a==="center"?$/2:a==="right"?$:0),s&&(I=l==="middle"?S/2:l==="bottom"?S:0);const E=Object.entries(Ut(Ut({width:$,height:S},_!==void 0&&{"line-height":_}),x!==void 0&&{"data-word-wrap":x})).reduce((F,[X,G])=>dh(Ut({},F),{[X]:G}),{}),N=Ut(Ut(Ut(Ut(Ut(Ut(Ut(Ut(Ut({"data-element-type":"text",width:$,height:S,x:M,y:I,"data-x":0,"data-y":0,fill:b,fontSize:u,textAnchor:a==="center"?"middle":a==="right"?"end":"start",dominantBaseline:l==="middle"?"central":l==="bottom"?"baseline":"hanging","data-horizontal-align":a.toUpperCase(),"data-vertical-align":l.toUpperCase(),children:c},E),O),h&&{fontFamily:h}),f&&{fontStyle:f}),d&&{fontWeight:d}),p&&p!=="none"&&{textDecoration:p}),g&&{letterSpacing:g}),m&&{wordSpacing:m}),v!==void 0&&v!==1&&{opacity:v}),H=Ut(dh(Ut({},r!==0||i!==0?{x:r,y:i,transform:`translate(${r}, ${i})`}:{}),{width:$,height:S}),n&&{id:n}),B=w&&w!=="none"?{"data-element-type":"shape",x:0,y:0,width:$,height:S,fill:w,fillOpacity:C,rx:P,ry:P}:void 0;return{type:"g",props:dh(Ut({},H),{children:[...B?[{type:"rect",props:B}]:[],{type:"text",props:N}]})}}const Co=Symbol.for("@antv/infographic/Fragment");function ba(e,t={}){return{type:e,props:t}}function QH(e={}){return ba(Co,e)}const JH=ba,ej=ba;function tj(e){return!e||typeof e!="object"||Array.isArray(e)?!1:e.type===Co}function U_(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&"type"in e}function Po(e){return Oo(e).filter(U_)}function Oo(e,t=[]){var n;if(!e||typeof e=="boolean")return t;if(Array.isArray(e))e.forEach(r=>Oo(r,t));else if(tj(e)){const r=(n=e.props)==null?void 0:n.children;(Array.isArray(r)?r:[r]).filter(Boolean).forEach(i=>{Oo(i,t)})}else t.push(e);return t}function at(e){return typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e)}const _a=()=>({x:0,y:0,width:0,height:0});function Ci(e){if(!e||e.length===0)return _a();let t=1/0,n=1/0,r=-1/0,i=-1/0;for(const o of e){const{x:s,y:a,width:l,height:c}=o,u=s+l,h=a+c;s<t&&(t=s),a<n&&(n=a),u>r&&(r=u),h>i&&(i=h)}return t===1/0||n===1/0||r===-1/0||i===-1/0?{x:0,y:0,width:0,height:0}:{x:t,y:n,width:Math.max(0,r-t),height:Math.max(0,i-n)}}function ae(e){var t,n,r,i;if(!e)return _a();if(Array.isArray(e)){const d=Po(e);return zr(d)}if(typeof e!="object")return _a();const{type:o,props:s={}}=e;if(bh(e)){const d=nw(e);return ae(d)}if(typeof o=="function"){const d=(t=s.x)!=null?t:0,p=(n=s.y)!=null?n:0,g=s.width,m=s.height;if(at(g)&&at(m))return{x:d,y:p,width:g,height:m};const v=o(s);if(!v)return{x:d,y:p,width:g!=null?g:0,height:m!=null?m:0};if(Array.isArray(v)){const b=Po(v),_=zr(b);if(at(g)&&at(m))return{x:d,y:p,width:g,height:m};const x=_.width!==0?_.width:g!=null?g:0,w=_.height!==0?_.height:m!=null?m:0;return{x:d+_.x,y:p+_.y,width:x,height:w}}if(U_(v)){const b=v,_=ae(b);if(nj(b,s))return _;const x=b.props&&at(b.props.width)&&at(b.props.height),P=K_(b).flatMap(M=>Po(M)).length>0,O=b.props&&b.props.x===s.x&&b.props.y===s.y;if(x)return{x:O?_.x:d+_.x,y:O?_.y:p+_.y,width:_.width,height:_.height};if(at(g)&&at(m))return P?{x:O?_.x:d,y:O?_.y:p,width:g,height:m}:{x:O?_.x:d+_.x,y:O?_.y:p+_.y,width:g,height:m};const $=_.width!==0?_.width:g!=null?g:0,S=_.height!==0?_.height:m!=null?m:0;return{x:O?_.x:d+_.x,y:O?_.y:p+_.y,width:$,height:S}}return{x:d,y:p,width:g!=null?g:0,height:m!=null?m:0}}const a=(r=s.x)!=null?r:0,l=(i=s.y)!=null?i:0,c=at(s.width)?s.width:void 0,u=at(s.height)?s.height:void 0;if(at(c)&&at(u))return{x:a,y:l,width:c,height:u};const f=K_(e).flatMap(d=>Po(d));if(f.length>0){const d=zr(f);return{x:a+d.x,y:l+d.y,width:at(c)?c:d.width,height:at(u)?u:d.height}}return{x:a,y:l,width:c!=null?c:0,height:u!=null?u:0}}function zr(e){if(!e||!Array.isArray(e)||e.length===0)return _a();const t=[];for(const n of e){const r=Po(n);for(const i of r){const o=ae(i);o&&t.push(o)}}return Ci(t)}function nj(e,t){if(!(e!=null&&e.props)||!t)return!1;const n=e.props;if(at(n.x)&&at(n.y)&&at(t.x)&&at(t.y)&&n.x===t.x&&n.y===t.y){const r=at(n.width)&&at(n.height),i=at(t.width)&&at(t.height);if(!r&&!i)return!0}return at(n.x)&&at(n.y)&&at(n.width)&&at(n.height)&&at(t.x)&&at(t.y)&&at(t.width)&&at(t.height)?n.x===t.x&&n.y===t.y&&n.width===t.width&&n.height===t.height:!1}function K_(e){var t;const n=(t=e.props)==null?void 0:t.children;return n?Array.isArray(n)?n:[n]:[]}function ph(e){var t;return e==null||typeof e=="boolean"?[]:Array.isArray(e)?Oo(e):typeof e=="object"?Oo((t=e.props)==null?void 0:t.children):[e]}var rj=Object.defineProperty,wa=Object.getOwnPropertySymbols,Z_=Object.prototype.hasOwnProperty,Q_=Object.prototype.propertyIsEnumerable,J_=(e,t,n)=>t in e?rj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gh=(e,t)=>{for(var n in t||(t={}))Z_.call(t,n)&&J_(e,n,t[n]);if(wa)for(var n of wa(t))Q_.call(t,n)&&J_(e,n,t[n]);return e},ij=(e,t)=>{var n={};for(var r in e)Z_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&wa)for(var r of wa(e))t.indexOf(r)<0&&Q_.call(e,r)&&(n[r]=e[r]);return n};const dr=(e,t)=>{const n=e,{type:r,props:i}=n,o=ij(n,["type","props"]);return gh({type:r,props:gh(gh({},i),t)},o)},ew=()=>({defs:new Map});function mh(e){const t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};return String(e).replace(/[&<>"']/g,n=>t[n])}const tw={className:"class",viewBox:"viewBox",preserveAspectRatio:"preserveAspectRatio",gradientUnits:"gradientUnits",gradientTransform:"gradientTransform",patternUnits:"patternUnits",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",maskUnits:"maskUnits",maskContentUnits:"maskContentUnits",clipPathUnits:"clipPathUnits",primitiveUnits:"primitiveUnits",filterUnits:"filterUnits",markerUnits:"markerUnits",markerWidth:"markerWidth",markerHeight:"markerHeight",refX:"refX",refY:"refY",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink",xlinkHref:"href",xlinkTitle:"xlink:title",xlinkShow:"xlink:show",xlinkActuate:"xlink:actuate",textLength:"textLength",lengthAdjust:"lengthAdjust",attributeName:"attributeName",attributeType:"attributeType",repeatCount:"repeatCount",repeatDur:"repeatDur",calcMode:"calcMode",keyTimes:"keyTimes",keySplines:"keySplines",keyPoints:"keyPoints",stdDeviation:"stdDeviation",baseFrequency:"baseFrequency",numOctaves:"numOctaves",pathLength:"pathLength",systemLanguage:"systemLanguage",requiredFeatures:"requiredFeatures",requiredExtensions:"requiredExtensions"};function oj(e){return tw[e]?tw[e]:e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}const yh=new Map;function vh(e){const t=Symbol("layout");return yh.set(t,e),r=>({type:t,props:r})}function bh(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)&&typeof e.type=="symbol"&&yh.has(e.type)}function nw(e,t=ew()){const n=yh.get(e.type);if(!n)return console.warn("Layout function not found for symbol:",e.type),e;const r=ph(e).filter(i=>typeof i=="object");return n(r,e.props,t)}var sj=Object.defineProperty,aj=Object.defineProperties,lj=Object.getOwnPropertyDescriptors,xa=Object.getOwnPropertySymbols,rw=Object.prototype.hasOwnProperty,iw=Object.prototype.propertyIsEnumerable,ow=(e,t,n)=>t in e?sj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cj=(e,t)=>{for(var n in t||(t={}))rw.call(t,n)&&ow(e,n,t[n]);if(xa)for(var n of xa(t))iw.call(t,n)&&ow(e,n,t[n]);return e},uj=(e,t)=>aj(e,lj(t)),sw=(e,t)=>{var n={};for(var r in e)rw.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&xa)for(var r of xa(e))t.indexOf(r)<0&&iw.call(e,r)&&(n[r]=e[r]);return n};function So(e,t){if(e==null||typeof e=="boolean")return null;if(typeof e=="string"||typeof e=="number")return e;if(Array.isArray(e))return e.map(r=>So(r,t)).filter(Boolean);if(bh(e)){const r=nw(e,t);return So(r,t)}if(typeof e.type=="function"){const r=e.type(e.props);return So(r,t)}const n=ph(e).map(r=>So(r,t)).filter(Boolean);return e.type===Co?n:e.type===Ec?(n.forEach(r=>{typeof r=="object"&&r.props.id&&t.defs.set(r.props.id,r)}),null):n.length?dr(e,{children:n}):e}function $o(e,t){if(e==null)return"";if(typeof e=="string")return mh(e);if(typeof e=="number")return String(e);const{type:n,props:r}=e;if(!n)return"";const i=ph(e);if(n===Co)return i.map(l=>$o(l)).filter(Boolean).join("");if(n===Ec)return"";if(typeof n=="function"||bh(e))return console.warn("Unexpected unprocessed component in render:",e),"";const o=lw(r),s=i.map(l=>$o(l)).filter(Boolean).join(""),a=String(n);return s?`<${a}${o}>${s}</${a}>`:`<${a}${o} />`}function aw(e,t={}){const n=ew(),r=So(e,n);if(!r)return"";const i=Array.isArray(r)?r.map(m=>$o(m)).join(""):$o(r),o=t,{x:s,y:a,width:l,height:c,style:u}=o,h=sw(o,["x","y","width","height","style"]),f=uj(cj({},h),{xmlns:"http://www.w3.org/2000/svg"});if(!f.viewBox)if(l&&c)f.viewBox=`${s!=null?s:0} ${a!=null?a:0} ${l!=null?l:0} ${c!=null?c:0}`;else{const m=ae(r);if(m){const{x:v,y:b,width:_,height:x}=m;f.viewBox=`${v} ${b} ${_} ${x}`}}const d=lw(f),p=hj(u),g=n.defs.size?`<defs>${Array.from(n.defs.values()).map(m=>$o(m)).join("")}</defs>`:"";return`<svg${d}${p}>${g}${i}</svg>`}function lw(e){if(!e)return"";const t=e,{children:n}=t,r=sw(t,["children"]);return Object.entries(r).filter(([,i])=>i!=null).map(([i,o])=>{const s=oj(i),a=typeof o=="string"?mh(String(o)):String(o);return` ${s}="${a}"`}).join("")}function hj(e){if(!e||Object.keys(e).length===0)return"";const t=Object.entries(e).map(([n,r])=>`${n.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`)}: ${r};`).join("");return` style="${mh(t)}"`}var fj=Object.defineProperty,Ca=Object.getOwnPropertySymbols,cw=Object.prototype.hasOwnProperty,uw=Object.prototype.propertyIsEnumerable,hw=(e,t,n)=>t in e?fj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pa=(e,t)=>{for(var n in t||(t={}))cw.call(t,n)&&hw(e,n,t[n]);if(Ca)for(var n of Ca(t))uw.call(t,n)&&hw(e,n,t[n]);return e},fw=(e,t)=>{var n={};for(var r in e)cw.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ca)for(var r of Ca(e))t.indexOf(r)<0&&uw.call(e,r)&&(n[r]=e[r]);return n};const ne=e=>{const t=e,{indexes:n}=t,r=fw(t,["indexes"]),i={fill:"#B9EBCA",fillOpacity:.3,width:20,height:20,"data-indexes":n,"data-element-type":Ge.BtnAdd};return y(Le,Pa(Pa({},i),r))},nt=e=>{const t=e,{indexes:n}=t,r=fw(t,["indexes"]),i={fill:"#F9C0C0",fillOpacity:.3,width:20,height:20,"data-indexes":n,"data-element-type":Ge.BtnRemove};return y(Le,Pa(Pa({},i),r))};var dj=Object.defineProperty,pj=Object.defineProperties,gj=Object.getOwnPropertyDescriptors,dw=Object.getOwnPropertySymbols,mj=Object.prototype.hasOwnProperty,yj=Object.prototype.propertyIsEnumerable,pw=(e,t,n)=>t in e?dj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vj=(e,t)=>{for(var n in t||(t={}))mj.call(t,n)&&pw(e,n,t[n]);if(dw)for(var n of dw(t))yj.call(t,n)&&pw(e,n,t[n]);return e},bj=(e,t)=>pj(e,gj(t));const je=e=>y(Y,bj(vj({"data-element-type":Ge.BtnsGroup,width:0,height:0},e),{display:"none"})),yt=()=>y(tt,{});var _j=Object.defineProperty,Oa=Object.getOwnPropertySymbols,gw=Object.prototype.hasOwnProperty,mw=Object.prototype.propertyIsEnumerable,yw=(e,t,n)=>t in e?_j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_h=(e,t)=>{for(var n in t||(t={}))gw.call(t,n)&&yw(e,n,t[n]);if(Oa)for(var n of Oa(t))mw.call(t,n)&&yw(e,n,t[n]);return e},wj=(e,t)=>{var n={};for(var r in e)gw.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Oa)for(var r of Oa(e))t.indexOf(r)<0&&mw.call(e,r)&&(n[r]=e[r]);return n};const vw=e=>{var t=e,{indexes:n}=t,r=wj(t,["indexes"]);const o=_h(_h({},{fill:"lightgray"}),r);return n?(o["data-indexes"]=n,o["data-element-type"]=Ge.ItemIllus):o["data-element-type"]=Ge.Illus,y(Le,_h({},o))};var xj=Object.defineProperty,Cj=Object.defineProperties,Pj=Object.getOwnPropertyDescriptors,Sa=Object.getOwnPropertySymbols,bw=Object.prototype.hasOwnProperty,_w=Object.prototype.propertyIsEnumerable,ww=(e,t,n)=>t in e?xj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xw=(e,t)=>{for(var n in t||(t={}))bw.call(t,n)&&ww(e,n,t[n]);if(Sa)for(var n of Sa(t))_w.call(t,n)&&ww(e,n,t[n]);return e},Oj=(e,t)=>Cj(e,Pj(t)),Sj=(e,t)=>{var n={};for(var r in e)bw.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Sa)for(var r of Sa(e))t.indexOf(r)<0&&_w.call(e,r)&&(n[r]=e[r]);return n};const ft=e=>{var t=e,{indexes:n,lineNumber:r=2,children:i}=t,o=Sj(t,["indexes","lineNumber","children"]),s;if(!i)return null;const a=xw({fontSize:14,fill:"#666",wordWrap:!0,lineHeight:1.4,children:i},o);return(s=a.height)!=null||(a.height=Math.ceil(r*+a.lineHeight*+a.fontSize)),y(De,Oj(xw({},a),{"data-indexes":n,"data-element-type":Ge.ItemDesc}))};var $j=Object.defineProperty,Ej=Object.defineProperties,Mj=Object.getOwnPropertyDescriptors,$a=Object.getOwnPropertySymbols,Cw=Object.prototype.hasOwnProperty,Pw=Object.prototype.propertyIsEnumerable,Ow=(e,t,n)=>t in e?$j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Eo=(e,t)=>{for(var n in t||(t={}))Cw.call(t,n)&&Ow(e,n,t[n]);if($a)for(var n of $a(t))Pw.call(t,n)&&Ow(e,n,t[n]);return e},Ea=(e,t)=>Ej(e,Mj(t)),Sw=(e,t)=>{var n={};for(var r in e)Cw.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&$a)for(var r of $a(e))t.indexOf(r)<0&&Pw.call(e,r)&&(n[r]=e[r]);return n};const Ft=e=>{const t=e,{indexes:n,size:r=32}=t,i=Sw(t,["indexes","size"]),o=Eo({fill:"lightgray",width:r,height:r},i);return y(Le,Ea(Eo({},o),{"data-indexes":n,"data-element-type":"item-icon"}))},Dr=e=>{const t=e,{indexes:n,size:r=50,fill:i,colorBg:o="white"}=t,s=Sw(t,["indexes","size","fill","colorBg"]),a=r/Math.SQRT2*.9,l=(r-a)/2,c=Ea(Eo({fill:o},s),{x:l,y:l,width:a,height:a});return k(Y,Ea(Eo({},s),{width:r,height:r,"data-element-type":Ge.ItemIconGroup,children:[y(Ze,{width:r,height:r,fill:i,"data-element-type":"shape"}),y(Le,Ea(Eo({},c),{"data-indexes":n,"data-element-type":Ge.ItemIcon}))]}))};var Ij=Object.defineProperty,Aj=Object.defineProperties,Tj=Object.getOwnPropertyDescriptors,Ma=Object.getOwnPropertySymbols,$w=Object.prototype.hasOwnProperty,Ew=Object.prototype.propertyIsEnumerable,Mw=(e,t,n)=>t in e?Ij(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Iw=(e,t)=>{for(var n in t||(t={}))$w.call(t,n)&&Mw(e,n,t[n]);if(Ma)for(var n of Ma(t))Ew.call(t,n)&&Mw(e,n,t[n]);return e},Rj=(e,t)=>Aj(e,Tj(t)),kj=(e,t)=>{var n={};for(var r in e)$w.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ma)for(var r of Ma(e))t.indexOf(r)<0&&Ew.call(e,r)&&(n[r]=e[r]);return n};const Ve=e=>{var t=e,{indexes:n,children:r}=t,i=kj(t,["indexes","children"]),o;const s=Iw({fontSize:18,fontWeight:"bold",fill:"#252525",lineHeight:1.4,children:r},i);return(o=s.height)!=null||(s.height=Math.ceil(+s.lineHeight*+s.fontSize)),y(De,Rj(Iw({},s),{"data-indexes":n,"data-element-type":Ge.ItemLabel}))};var Lj=Object.defineProperty,Aw=Object.getOwnPropertySymbols,Nj=Object.prototype.hasOwnProperty,zj=Object.prototype.propertyIsEnumerable,Tw=(e,t,n)=>t in e?Lj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dj=(e,t)=>{for(var n in t||(t={}))Nj.call(t,n)&&Tw(e,n,t[n]);if(Aw)for(var n of Aw(t))zj.call(t,n)&&Tw(e,n,t[n]);return e};const qe=e=>y(Y,Dj({"data-element-type":Ge.ItemsGroup},e));var qj=Object.defineProperty,Hj=Object.defineProperties,jj=Object.getOwnPropertyDescriptors,Ia=Object.getOwnPropertySymbols,Rw=Object.prototype.hasOwnProperty,kw=Object.prototype.propertyIsEnumerable,Lw=(e,t,n)=>t in e?qj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nw=(e,t)=>{for(var n in t||(t={}))Rw.call(t,n)&&Lw(e,n,t[n]);if(Ia)for(var n of Ia(t))kw.call(t,n)&&Lw(e,n,t[n]);return e},Fj=(e,t)=>Hj(e,jj(t)),Bj=(e,t)=>{var n={};for(var r in e)Rw.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ia)for(var r of Ia(e))t.indexOf(r)<0&&kw.call(e,r)&&(n[r]=e[r]);return n};const Mo=e=>{var t=e,{indexes:n,value:r,formatter:i=l=>String(l)}=t,o=Bj(t,["indexes","value","formatter"]),s;const a=Nw({fontSize:14,fill:"#666",wordWrap:!0,lineHeight:1.4,children:i(r),"data-value":r},o);return(s=a.height)!=null||(a.height=Math.ceil(+a.lineHeight*+a.fontSize)),y(De,Fj(Nw({},a),{"data-indexes":n,"data-element-type":Ge.ItemValue}))};var Wj=Object.defineProperty,zw=Object.getOwnPropertySymbols,Vj=Object.prototype.hasOwnProperty,Gj=Object.prototype.propertyIsEnumerable,Dw=(e,t,n)=>t in e?Wj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yj=(e,t)=>{for(var n in t||(t={}))Vj.call(t,n)&&Dw(e,n,t[n]);if(zw)for(var n of zw(t))Gj.call(t,n)&&Dw(e,n,t[n]);return e};const Pt=e=>y(Y,Yj({"data-element-type":"shapes-group"},e));var Xj=Object.defineProperty,Uj=Object.defineProperties,Kj=Object.getOwnPropertyDescriptors,Aa=Object.getOwnPropertySymbols,qw=Object.prototype.hasOwnProperty,Hw=Object.prototype.propertyIsEnumerable,jw=(e,t,n)=>t in e?Xj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ta=(e,t)=>{for(var n in t||(t={}))qw.call(t,n)&&jw(e,n,t[n]);if(Aa)for(var n of Aa(t))Hw.call(t,n)&&jw(e,n,t[n]);return e},Fw=(e,t)=>Uj(e,Kj(t)),Zj=(e,t)=>{var n={};for(var r in e)qw.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Aa)for(var r of Aa(e))t.indexOf(r)<0&&Hw.call(e,r)&&(n[r]=e[r]);return n};const Pi=vh((e,t)=>{var n=t,{horizontal:r,vertical:i}=n,o=Zj(n,["horizontal","vertical"]),s,a,l,c;if(!e||e.length===0)return y(Y,Ta({},o));const u=e.map(b=>ae(b)),h=zr(e),f=(s=o.x)!=null?s:h.x,d=(a=o.y)!=null?a:h.y,p=(l=o.width)!=null?l:h.width,g=(c=o.height)!=null?c:h.height,m=e.map((b,_)=>{const x=u[_],w=Ta({},b.props);if(r!==void 0)switch(r){case"left":w.x=-x.x;break;case"center":w.x=(p-x.width)/2-x.x;break;case"right":w.x=p-x.width-x.x;break}else w.x===void 0&&(w.x=x.x-f);if(i!==void 0)switch(i){case"top":w.y=-x.y;break;case"middle":w.y=(g-x.height)/2-x.y;break;case"bottom":w.y=g-x.height-x.y;break}else w.y===void 0&&(w.y=x.y-d);return dr(b,w)}),v=Fw(Ta({},o),{x:f,y:d,width:p,height:g});return y(Y,Fw(Ta({},v),{children:m}))});var Qj=Object.defineProperty,Jj=Object.defineProperties,eF=Object.getOwnPropertyDescriptors,Ra=Object.getOwnPropertySymbols,Bw=Object.prototype.hasOwnProperty,Ww=Object.prototype.propertyIsEnumerable,Vw=(e,t,n)=>t in e?Qj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qr=(e,t)=>{for(var n in t||(t={}))Bw.call(t,n)&&Vw(e,n,t[n]);if(Ra)for(var n of Ra(t))Ww.call(t,n)&&Vw(e,n,t[n]);return e},Gw=(e,t)=>Jj(e,eF(t)),tF=(e,t)=>{var n={};for(var r in e)Bw.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ra)for(var r of Ra(e))t.indexOf(r)<0&&Ww.call(e,r)&&(n[r]=e[r]);return n};const ve=vh((e,t)=>{var n=t,{flexDirection:r="row",justifyContent:i="flex-start",alignItems:o="flex-start",alignContent:s="flex-start",flexWrap:a="nowrap",gap:l=0}=n,c=tF(n,["flexDirection","justifyContent","alignItems","alignContent","flexWrap","gap"]),u,h,f,d,p,g;if(!e||e.length===0)return y(Y,qr({},c));const m=r==="row"||r==="row-reverse",v=r==="row-reverse"||r==="column-reverse",b=e.map(E=>ae(E)),_=zr(e),x=(u=c.width)!=null?u:_.width,w=(h=c.height)!=null?h:_.height,C=c.width!==void 0&&c.height!==void 0,P=[];if(a==="wrap"&&C){let E=[],A=[],T=0;for(let N=0;N<e.length;N++){const H=e[N],D=b[N],B=m?D.width:D.height,F=m?x:w;E.length===0||T+l+B<=F?(E.push(H),A.push(D),T+=(E.length>1?l:0)+B):(P.push({children:E,bounds:A}),E=[H],A=[D],T=B)}E.length>0&&P.push({children:E,bounds:A})}else P.push({children:e,bounds:b});const O=[];let $=0;const S=[];if(P.forEach(E=>{const{children:A,bounds:T}=E,N=T.reduce((G,L,R)=>{const z=m?L.width:L.height;return G+z+(R>0?l:0)},0),H=Math.max(...T.map(G=>m?G.height:G.width));S.push(H);let D=0;const B=(m?x:w)-N;if(C)switch(i){case"flex-end":D=B;break;case"center":D=B/2;break;case"space-between":D=0;break;default:D=0;break}let F=l;C&&i==="space-between"&&A.length>1&&(F=B/(A.length-1)+l);let X=D;A.forEach((G,L)=>{const R=T[L],z=m?R.width:R.height,q=m?R.height:R.width,j=m?R.x:R.y,V=m?R.y:R.x;let U=$;if(C)switch(o){case"flex-end":U=$+H-q;break;case"center":U=$+(H-q)/2;break;default:U=$;break}let K,J;m?(K=v?x-X-z-j:X-j,J=U-V):(K=U-V,J=v?w-X-z-j:X-j);const Z=dr(G,{x:K,y:J});O.push(Z),X+=z+F}),$+=H+l}),P.length>1&&C){const E=S.reduce((N,H)=>N+H,0)+(P.length-1)*l,A=(m?w:x)-E;let T=0;switch(s){case"flex-end":T=A;break;case"center":T=A/2;break;case"space-between":if(P.length>1){const N=A/(P.length-1);let H=0;P.forEach((D,B)=>{const F=P.slice(0,B).reduce((G,L)=>G+L.children.length,0),X=F+D.children.length;for(let G=F;G<X;G++){const L=O[G],R=qr({},L.props);m?R.y=(R.y||0)+H:R.x=(R.x||0)+H,O[G]=dr(L,R)}H+=S[B]+l+(B<P.length-1?N:0)});break}break;default:T=0;break}T!==0&&s!=="space-between"&&O.forEach((N,H)=>{const D=qr({},N.props);m?D.y=(D.y||0)+T:D.x=(D.x||0)+T,O[H]=dr(N,D)})}if(!C&&o==="center")if(m){const E=Math.max(...b.map(A=>A.height));O.forEach((A,T)=>{const N=b[T],H=(E-N.height)/2,D=qr({},A.props);D.y=(D.y||0)+H,O[T]=dr(A,D)})}else{const E=Math.max(...b.map(A=>A.width));O.forEach((A,T)=>{const N=b[T],H=(E-N.width)/2,D=qr({},A.props);D.x=(D.x||0)+H,O[T]=dr(A,D)})}const M=zr(O),I=Gw(qr({},c),{x:(f=c.x)!=null?f:_.x,y:(d=c.y)!=null?d:_.y,width:(p=c.width)!=null?p:M.width,height:(g=c.height)!=null?g:M.height});return y(Y,Gw(qr({},I),{children:O}))});var nF=Object.defineProperty,rF=Object.defineProperties,iF=Object.getOwnPropertyDescriptors,Yw=Object.getOwnPropertySymbols,oF=Object.prototype.hasOwnProperty,sF=Object.prototype.propertyIsEnumerable,Xw=(e,t,n)=>t in e?nF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ka=(e,t)=>{for(var n in t||(t={}))oF.call(t,n)&&Xw(e,n,t[n]);if(Yw)for(var n of Yw(t))sF.call(t,n)&&Xw(e,n,t[n]);return e},Uw=(e,t)=>rF(e,iF(t));const Kw=e=>{const{x:t=0,y:n=0,alignHorizontal:r="center",title:i,desc:o,descLineNumber:s=2,themeColors:a}=e,l=u=>{const h={fontSize:24,fill:a.colorPrimaryText,lineHeight:1.4,alignHorizontal:r};return y(De,Uw(ka(ka({},h),u),{"data-element-type":"title",children:i}))},c=u=>{const h={fontSize:16,fill:a.colorTextSecondary,alignHorizontal:r,lineHeight:1.4,height:s*24};return y(De,Uw(ka(ka({},h),u),{"data-element-type":"desc",children:o}))};return!i&&!o?null:k(ve,{flexDirection:"column",justifyContent:"center",alignItems:"center",x:t,y:n,gap:8,children:[i&&y(l,{}),o&&y(c,{})]})},wh=new Map;function xh(e,t){wh.set(e,t)}function Zw(e){return wh.get(e)}function aF(){return Array.from(wh.keys())}xh("dark",{colorBg:"#1F1F1F",base:{text:{fill:"#fff"}}}),xh("hand-drawn",{base:{text:{"font-family":"851tegakizatsu"}},stylize:{type:"rough"}});var lF=Object.defineProperty,cF=Object.defineProperties,uF=Object.getOwnPropertyDescriptors,Qw=Object.getOwnPropertySymbols,hF=Object.prototype.hasOwnProperty,fF=Object.prototype.propertyIsEnumerable,Jw=(e,t,n)=>t in e?lF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Io=(e,t)=>{for(var n in t||(t={}))hF.call(t,n)&&Jw(e,n,t[n]);if(Qw)for(var n of Qw(t))fF.call(t,n)&&Jw(e,n,t[n]);return e},Ao=(e,t)=>cF(e,uF(t));ot(M2);const e3=({colorPrimary:e,colorBg:t="#ffffff",isDarkMode:n=!1})=>{const r=En(e),i=En(t),o=vF({primaryColor:r,bgColor:i});return bF(o,{primaryColor:r,bgColor:i,isDarkMode:n})},dF=(e,t)=>LA(Ao(Io({},e),{alpha:t?.2:.1}))||"#ffffff",pF=(e,t)=>{if(t)return"#ffffff";const n=En("#262626");return pu(n,e)>=7?io(n):"#000000"},gF=e=>{const t=j2(En(e)),n=Ao(Io({},t),{l:Math.min(1,t.l+.2)});return io(n)},mF=(e,t)=>{const n=En(e),r=En("#262626"),i=En("#ffffff"),o=pu(r,n);return pu(i,n)>=3?io(i):o>=4.5?io(r):"#ffffff"},yF=(e,t)=>{const n=j2(e);if(t){const r=Ao(Io({},n),{l:Math.min(1,n.l+.1)});return La(r,"#1f1f1f")}else{if(n.l>.95)return"#ffffff";{const r=Ao(Io({},n),{l:Math.min(1,n.l+.05)});return La(r,"#ffffff")}}},vF=({primaryColor:e,bgColor:t})=>({colorPrimary:La(e,"#FF356A"),colorBg:La(t,"#ffffff"),colorWhite:"#ffffff"}),bF=(e,{primaryColor:t,bgColor:n,isDarkMode:r})=>{const i=pF(n,r),o=dF(t,r);return Ao(Io({},e),{isDarkMode:r,colorPrimaryBg:o,colorText:i,colorTextSecondary:gF(i),colorPrimaryText:mF(o,r),colorBgElevated:yF(n,r)})};function La(e,t="#000000"){var n;return(n=io(e))!=null?n:t}const Ch="#FF356A";function Ot(e){var t;return((t=e==null?void 0:e.themeConfig)==null?void 0:t.colorPrimary)||Ch}function t3(e){var t;const{themeConfig:n={},data:r}=e,{colorPrimary:i,palette:o}=n;return!o||o.length===0?Array(((t=r==null?void 0:r.items)==null?void 0:t.length)||1).fill(i||Ch):r.items.map((s,a)=>Vs(o,[a],r.items.length)||Ch)}function Fe(e,t){var n,r,i;return Vs((n=e==null?void 0:e.themeConfig)==null?void 0:n.palette,t,(i=(r=e.data)==null?void 0:r.items)==null?void 0:i.length)}function Et(e,t){var n;const{colorBg:r=((n=t==null?void 0:t.themeConfig)==null?void 0:n.colorBg)||"white",colorPrimary:i=t?Ot(t):"black"}=e;return e3({colorPrimary:i,isDarkMode:F2(r),colorBg:r})}function n3(e,t){const{depth:n,originalIndexes:r,flatIndex:i}=e;switch(t){case"level":return[n];case"branch":return n===0?[0]:n===1?[r[1]+1]:[r[1]+1];case"node":return r;case"node-flat":return i!==void 0?[i]:(console.warn("node-flat mode requires flatIndex in HierarchyNode, falling back to originalIndexes"),r);default:return[0]}}var _F=Object.defineProperty,r3=Object.getOwnPropertySymbols,wF=Object.prototype.hasOwnProperty,xF=Object.prototype.propertyIsEnumerable,i3=(e,t,n)=>t in e?_F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,CF=(e,t)=>{for(var n in t||(t={}))wF.call(t,n)&&i3(e,n,t[n]);if(r3)for(var n of r3(t))xF.call(t,n)&&i3(e,n,t[n]);return e};function lt(e,t=[]){const n=CF({},e),r={};return["indexes","data","datum","positionH","positionV","themeColors","valueFormatter",...t].forEach(o=>{o in n&&(r[o]=n[o],delete n[o])}),["x","y","width","height"].forEach(o=>{o in e&&(n[o]=e[o])}),[r,n]}function Na(e,t){var n;return e.length===0?()=>null:t===void 0?e[0]:(n=e[t])!=null?n:e[0]}function PF(e){if(e==null)return 0;if(typeof e=="string"){const t=e.trim(),n=t.endsWith("%")?t.slice(0,-1):t,r=parseFloat(n);return isNaN(r)?0:r}return e}const Ph=new Map;function ct(e,t){Ph.set(e,t)}function o3(e){return Ph.get(e)}function OF(){return Array.from(Ph.keys())}var SF=Object.defineProperty,$F=Object.defineProperties,EF=Object.getOwnPropertyDescriptors,s3=Object.getOwnPropertySymbols,MF=Object.prototype.hasOwnProperty,IF=Object.prototype.propertyIsEnumerable,a3=(e,t,n)=>t in e?SF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,AF=(e,t)=>{for(var n in t||(t={}))MF.call(t,n)&&a3(e,n,t[n]);if(s3)for(var n of s3(t))IF.call(t,n)&&a3(e,n,t[n]);return e},TF=(e,t)=>$F(e,EF(t));const l3=e=>{const[{datum:t,indexes:n,width:r=200,height:i=80,iconSize:o=24,badgeSize:s=32,gap:a=8,positionH:l="normal",themeColors:c,valueFormatter:u},h]=lt(e,["width","height","iconSize","badgeSize","gap"]),f=t.value,d=f!==void 0,p=!!t.desc,g=!!t.icon,m=`${c.colorPrimary}-badge`,v=l==="flipped"?r-a-s:a,b=g?l==="flipped"?a:s+2*a:a,_=r-a*2,x=g?r-s-3*a:_,w=a+14+18+8,C=w-a,P=p?a:(i-s)/2,O=!d&&!p?(i-14)/2:a,$=!g&&l==="center"?"center":l==="flipped"?"right":"left";return k(Y,TF(AF({},h),{width:r,height:i,children:[y(Ke,{children:k("radialGradient",{id:m,cx:"50%",cy:"50%",r:"50%",children:[y("stop",{offset:"0%",stopColor:c.colorPrimary}),y("stop",{offset:"100%",stopColor:be(c.colorPrimary).darken(20).toHexString()})]})}),y(Le,{"data-element-type":"shape",x:0,y:0,width:r,height:i,fill:c.colorPrimaryBg,rx:8,ry:8}),g&&k(tt,{children:[y(Ze,{x:v,y:P,width:s,height:s,fill:`url(#${m})`}),y(Ft,{indexes:n,x:v+(s-o)/2,y:P+(s-o)/2,size:o,fill:c.colorWhite})]}),k(ve,{flexDirection:"column",x:b,y:O,width:x,height:!d&&!p?void 0:C,alignItems:"center",justifyContent:"center",children:[y(Ve,{indexes:n,width:x,alignHorizontal:$,alignVertical:"middle",fontSize:14,fill:c.colorText,children:t.label}),d&&y(Mo,{indexes:n,width:x,alignHorizontal:l==="flipped"?"right":"left",alignVertical:"middle",fontSize:18,lineHeight:1,fontWeight:"bold",fill:c.colorPrimary,value:f,formatter:u})]}),p&&y(ft,{indexes:n,x:a,y:w,width:_,alignHorizontal:$,fontSize:11,fill:c.colorTextSecondary,lineNumber:2,lineHeight:1.2,wordWrap:!0,children:t.desc})]}))};ct("badge-card",{component:l3,composites:["icon","label","value","desc"]});var RF=Object.defineProperty,kF=Object.defineProperties,LF=Object.getOwnPropertyDescriptors,c3=Object.getOwnPropertySymbols,NF=Object.prototype.hasOwnProperty,zF=Object.prototype.propertyIsEnumerable,u3=(e,t,n)=>t in e?RF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,DF=(e,t)=>{for(var n in t||(t={}))NF.call(t,n)&&u3(e,n,t[n]);if(c3)for(var n of c3(t))zF.call(t,n)&&u3(e,n,t[n]);return e},qF=(e,t)=>kF(e,LF(t));const h3=e=>{const[{indexes:t,datum:n,width:r=280,height:i=140,themeColors:o},s]=lt(e,["width","height"]);return k(Y,qF(DF({},s),{children:[y("rect",{x:0,y:0,width:r,height:i,rx:22,ry:22,fill:o.colorPrimaryBg,stroke:o.colorPrimary,"data-element-type":"shape"}),y(Pe,{x:r-85,y:.5,width:85,height:65,d:"M0 0H62.4495C74.9557 0 85.4549 10.8574 84.4557 23.1875V60.1875L77.8772 62.5839C64.3776 67.6876 48.51 64.6893 37.8662 53.7441L10.2361 25.3312C4.91402 19.8571 1.65356 13.1736 0.435652 6.21819L0 0Z",fill:o.colorBg,"data-element-type":"shape"}),y(Ve,{indexes:t,x:20,y:24,width:200,alignHorizontal:"left",alignVertical:"middle",fill:o.colorText,children:n.label}),y(ft,{indexes:t,x:20,y:58,width:220,height:70,fill:o.colorTextSecondary,alignHorizontal:"left",alignVertical:"top",children:n.desc}),y(Ft,{indexes:t,x:r-48,y:12,width:32,height:32,fill:o.colorPrimary})]}))};ct("candy-card-lite",{component:h3,composites:["icon","label","desc"]});var HF=Object.defineProperty,jF=Object.defineProperties,FF=Object.getOwnPropertyDescriptors,za=Object.getOwnPropertySymbols,f3=Object.prototype.hasOwnProperty,d3=Object.prototype.propertyIsEnumerable,p3=(e,t,n)=>t in e?HF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,BF=(e,t)=>{for(var n in t||(t={}))f3.call(t,n)&&p3(e,n,t[n]);if(za)for(var n of za(t))d3.call(t,n)&&p3(e,n,t[n]);return e},WF=(e,t)=>jF(e,FF(t)),VF=(e,t)=>{var n={};for(var r in e)f3.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&za)for(var r of za(e))t.indexOf(r)<0&&d3.call(e,r)&&(n[r]=e[r]);return n};const Oh=e=>{const t=e,{color:n="black",opacity:r=.8}=t,i=VF(t,["color","opacity"]);return y("filter",WF(BF({id:"drop-shadow",x:"-25%",y:"-25%",width:"200%",height:"200%"},i),{children:y("feDropShadow",{dx:"4",dy:"4",stdDeviation:"4","flood-color":n,"flood-opacity":r})}))};var GF=Object.defineProperty,YF=Object.defineProperties,XF=Object.getOwnPropertyDescriptors,g3=Object.getOwnPropertySymbols,UF=Object.prototype.hasOwnProperty,KF=Object.prototype.propertyIsEnumerable,m3=(e,t,n)=>t in e?GF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ZF=(e,t)=>{for(var n in t||(t={}))UF.call(t,n)&&m3(e,n,t[n]);if(g3)for(var n of g3(t))KF.call(t,n)&&m3(e,n,t[n]);return e},QF=(e,t)=>YF(e,XF(t));const Sh=e=>{const{id:t="linear-gradient",startColor:n="black",stopColor:r="white",direction:i="left-right"}=e;return k("linearGradient",QF(ZF({id:t},{"left-right":{x1:"0%",y1:"0%",x2:"100%",y2:"0%"},"right-left":{x1:"100%",y1:"0%",x2:"0%",y2:"0%"},"top-bottom":{x1:"0%",y1:"0%",x2:"0%",y2:"100%"},"bottom-top":{x1:"0%",y1:"100%",x2:"0%",y2:"0%"}}[i]),{children:[y("stop",{offset:"0%",stopColor:n}),y("stop",{offset:"100%",stopColor:r})]}))};var JF=Object.defineProperty,eB=Object.defineProperties,tB=Object.getOwnPropertyDescriptors,y3=Object.getOwnPropertySymbols,nB=Object.prototype.hasOwnProperty,rB=Object.prototype.propertyIsEnumerable,v3=(e,t,n)=>t in e?JF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,To=(e,t)=>{for(var n in t||(t={}))nB.call(t,n)&&v3(e,n,t[n]);if(y3)for(var n of y3(t))rB.call(t,n)&&v3(e,n,t[n]);return e},Ro=(e,t)=>eB(e,tB(t));const b3=e=>{const[{datum:t,indexes:n,width:r=300,height:i=80,gap:o=12,positionH:s="normal",iconPadding:a=i/10,themeColors:l},c]=lt(e,["width","height","gap","iconPadding"]),u=i/2,h=i-a*2,f=s==="flipped",d=!!t.icon,p=d?r-i-o:r-o*2,g=d?f?o:i:o,m=d?f?"right":"left":"center",v={indexes:n,width:p,alignHorizontal:m,alignVertical:"middle",fontSize:16,fontWeight:"600",fill:l.colorWhite},b=ae(y(Ve,Ro(To({},v),{children:t.label}))),_={indexes:n,width:p,alignHorizontal:m,alignVertical:"top",fontSize:12,lineNumber:1,fill:l.colorWhite},x=ae(t.desc?y(ft,Ro(To({},_),{children:t.desc})):null),w=4,C=b.height+w+x.height,O=(i-C)/2,$=O+b.height+w,S=f?r-i+a:a,M=a;return k(Y,Ro(To({},c),{children:[y(Ke,{children:y(Oh,{})}),y(Le,{x:0,y:0,width:r,height:i,fill:l.colorPrimary,rx:u,ry:u,"data-element-type":"shape"}),t.icon&&k(tt,{children:[y(Ze,{x:S,y:M,width:h,height:h,fillOpacity:.5,fill:l.colorBg,filter:"url(#drop-shadow)"}),y(Dr,{indexes:n,x:S,y:M,size:h,fill:l.colorBg,colorBg:l.colorPrimary})]}),t.label&&y(Ve,Ro(To({x:g,y:O},v),{children:t.label})),t.desc&&y(ft,Ro(To({x:g,y:$},_),{children:t.desc}))]}))};ct("capsule-item",{component:b3,composites:["icon","label","desc"]});var iB=Object.defineProperty,oB=Object.defineProperties,sB=Object.getOwnPropertyDescriptors,_3=Object.getOwnPropertySymbols,aB=Object.prototype.hasOwnProperty,lB=Object.prototype.propertyIsEnumerable,w3=(e,t,n)=>t in e?iB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$h=(e,t)=>{for(var n in t||(t={}))aB.call(t,n)&&w3(e,n,t[n]);if(_3)for(var n of _3(t))lB.call(t,n)&&w3(e,n,t[n]);return e},Eh=(e,t)=>oB(e,sB(t));const x3=e=>{const[{indexes:t,datum:n,themeColors:r,positionH:i="normal",width:o=240,height:s=o},a]=lt(e,["width","height"]),l=Math.min(o,s),c=l*.7,u=(l-c)/2,h=c*Math.sqrt(2)/2,f=(l-h)/2,d=be(r.colorPrimary),p=Da(d,80,.2),g=Da(d,20,.8),m=Da(d,75,.32),v=Da(d,45,.4),b=d.clone().darken(5).toRgbString(),_=`${r.colorPrimary}-${i}-outer`,x=`${r.colorPrimary}-${i}-inner`,w=i==="flipped"?{x1:"0%",y1:"0%",x2:"100%",y2:"0%"}:{x1:"100%",y1:"0%",x2:"0%",y2:"0%"};return k(Y,Eh($h({},a),{children:[k(Ke,{children:[k("linearGradient",Eh($h({id:_},w),{children:[y("stop",{offset:"0%",stopColor:p}),y("stop",{offset:"100%",stopColor:g})]})),k("linearGradient",Eh($h({id:x},w),{children:[y("stop",{offset:"0%",stopColor:m}),y("stop",{offset:"100%",stopColor:v})]}))]}),y(Ze,{width:l,height:l,fill:`url(#${_})`,"data-element-type":"shape"}),y(Ze,{x:u,y:u,width:c,height:c,fill:`url(#${x})`,stroke:"#FFFFFF",strokeWidth:1,"data-element-type":"shape"}),y(Ve,{indexes:t,x:f,y:f,width:h,height:h,lineHeight:1.1,alignHorizontal:"center",alignVertical:"middle",fill:b,fontWeight:"500",children:n.label})]}))};ct("circle-node",{component:x3,composites:["label"]});function Da(e,t,n){return be.mix(e,"#ffffff",t).setAlpha(n).toRgbString()}var cB=Object.defineProperty,uB=Object.defineProperties,hB=Object.getOwnPropertyDescriptors,C3=Object.getOwnPropertySymbols,fB=Object.prototype.hasOwnProperty,dB=Object.prototype.propertyIsEnumerable,P3=(e,t,n)=>t in e?cB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mh=(e,t)=>{for(var n in t||(t={}))fB.call(t,n)&&P3(e,n,t[n]);if(C3)for(var n of C3(t))dB.call(t,n)&&P3(e,n,t[n]);return e},Ih=(e,t)=>uB(e,hB(t));const O3=e=>{var t;const[{datum:n,indexes:r,size:i=120,strokeWidth:o=12,gap:s=8,themeColors:a,valueFormatter:l=w=>`${Math.round(w)}%`},c]=lt(e,["size","strokeWidth","gap"]),u=(t=n.value)!=null?t:0,f=Math.min(Math.max(u/100,0),1),d=(i-o)/2,p=i/2,g=o/2,m=i-o,v=f>=1,b=f*360,_=pB(p,p,d,0,b),x={x:g,y:g,width:m,height:m};return k(Y,Ih(Mh({},c),{width:i,height:i+s+20,children:[y(Le,{width:i,height:i,fill:"none"}),y(Ze,Ih(Mh({},x),{fill:"none",stroke:"#f0f0f0",strokeWidth:o,"data-element-type":"shape"})),v?y(Ze,Ih(Mh({},x),{fill:"none",stroke:a.colorPrimary,strokeWidth:o,"data-element-type":"shape"})):y(Pe,{d:_,fill:"none",stroke:a.colorPrimary,strokeWidth:o,strokeLinecap:"round","data-element-type":"shape"}),y(Mo,{indexes:r,x:o,y:o,width:m-o,height:m-o,fontSize:24,fontWeight:"bold",fill:a.colorPrimary,alignHorizontal:"center",alignVertical:"middle",value:u,formatter:l}),y(Ve,{indexes:r,x:0,y:i+s,width:i,alignHorizontal:"center",fontSize:12,fill:a.colorTextSecondary,children:n.label})]}))};function pB(e,t,n,r,i){const o=S3(e,t,n,i),s=S3(e,t,n,r),a=i-r<=180?"0":"1";return`M ${o.x} ${o.y} A ${n} ${n} 0 ${a} 0 ${s.x} ${s.y}`}function S3(e,t,n,r){const i=(r-90)*Math.PI/180;return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}}ct("circular-progress",{component:O3,composites:["label","value"]});var gB=Object.defineProperty,mB=Object.defineProperties,yB=Object.getOwnPropertyDescriptors,$3=Object.getOwnPropertySymbols,vB=Object.prototype.hasOwnProperty,bB=Object.prototype.propertyIsEnumerable,E3=(e,t,n)=>t in e?gB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_B=(e,t)=>{for(var n in t||(t={}))vB.call(t,n)&&E3(e,n,t[n]);if($3)for(var n of $3(t))bB.call(t,n)&&E3(e,n,t[n]);return e},wB=(e,t)=>mB(e,yB(t));const M3=e=>{const[{datum:t,indexes:n,width:r=200,height:i=60,iconSize:o=20,gap:s=8,positionH:a="normal",themeColors:l,valueFormatter:c},u]=lt(e,["width","height","iconSize","gap"]),h=t.value,f=h!=null,d="compact-shadow",p=a==="flipped"?r-s-o:s,g=a==="flipped"?s:o+2*s,m=r-o-3*s,v=f?m*.8:m,b=f?m*.2:0;return k(Y,wB(_B({},u),{children:[y(Ke,{children:y("filter",{id:d,children:y("feDropShadow",{dx:"0",dy:"2",stdDeviation:"2",floodOpacity:"0.15"})})}),y(Le,{x:0,y:0,width:r,height:i,fill:l.colorBgElevated,stroke:l.colorBgElevated,strokeWidth:1,rx:6,ry:6,filter:`url(#${d})`,"data-element-type":"shape"}),y(Le,{x:a==="flipped"?r-3:0,y:0,width:3,height:i,fill:l.colorPrimary,rx:1.5,ry:1.5,"data-element-type":"shape"}),y(Ft,{indexes:n,x:p,y:(i-o)/2,size:o,fill:l.colorPrimary}),k(ve,{x:g,y:s,width:m,height:i-s*2,flexDirection:"column",justifyContent:"center",alignItems:"flex-start",children:[k(ve,{width:m,flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[y(Ve,{indexes:n,width:v,alignHorizontal:"left",fontSize:12,fill:l.colorText,children:t.label}),f&&y(Mo,{indexes:n,width:b,alignHorizontal:"right",fontSize:12,fontWeight:"bold",fill:l.colorPrimary,value:h,formatter:c})]}),y(ft,{indexes:n,width:m,alignHorizontal:"left",alignVertical:"middle",fontSize:10,fill:l.colorTextSecondary,lineNumber:2,wordWrap:!0,children:t.desc})]})]}))};ct("compact-card",{component:M3,composites:["icon","label","value","desc"]});var xB=Object.defineProperty,CB=Object.defineProperties,PB=Object.getOwnPropertyDescriptors,I3=Object.getOwnPropertySymbols,OB=Object.prototype.hasOwnProperty,SB=Object.prototype.propertyIsEnumerable,A3=(e,t,n)=>t in e?xB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$B=(e,t)=>{for(var n in t||(t={}))OB.call(t,n)&&A3(e,n,t[n]);if(I3)for(var n of I3(t))SB.call(t,n)&&A3(e,n,t[n]);return e},EB=(e,t)=>CB(e,PB(t));const T3=e=>{const[{datum:t,indexes:n,width:r=300,height:i=30,iconSize:o=30,gap:s=5,positionH:a="normal",positionV:l="middle",themeColors:c},u]=lt(e,["width","height","iconSize","gap"]),h=r-o-s,f=l==="middle"?(i-o)/2:l==="flipped"?i-o:0;return k(Y,EB($B({},u),{children:[y(Pe,{"data-element-type":"shape",x:a==="flipped"?h+s:0,y:f,fill:c.colorPrimary,width:o,height:o,d:"M14.7273 30C6.54538 30 0 22.9077 0 14.7269C0 6.54617 6.54538 0 14.7273 0C22.9092 0 30 6.54617 30 14.7269C30 22.9077 22.9092 30 14.7273 30ZM24.5454 10.9077C22.9092 9.27307 22.9092 9.27307 22.9092 9.27307C22.3638 8.72692 22.3638 8.7269 21.8181 8.7269C21.2727 8.7269 21.2727 8.72692 20.7273 9.27307C13.0908 16.9077 13.0908 16.9077 13.0908 16.9077C8.72731 12.5461 8.72731 12.5462 8.72731 12.5462C8.18193 12.5462 8.18193 12 7.63654 12L7.09077 12.5462C4.90923 14.1808 4.90923 14.1808 4.90923 14.1808C4.90923 14.7269 4.90923 14.7269 4.90923 15.2731C4.90923 15.8192 4.90923 15.8192 4.90923 16.3654C12 23.4539 12 23.4538 12 23.4538C12.5454 23.4538 12.5454 23.4538 13.0908 23.4538C13.6365 23.4538 13.6365 23.4538 14.1819 23.4538C24.5454 12.5461 24.5454 12.5462 24.5454 12.5462L25.0908 12C25.0908 11.4538 24.5454 10.9077 24.5454 10.9077Z"}),y(Ve,{indexes:n,x:a==="flipped"?0:o+s,width:h,height:i,fontWeight:"normal",alignVertical:"middle",wordWrap:!1,fill:"#666",children:t.label||t.desc})]}))};ct("done-list",{component:T3,composites:["label"]});var MB=Object.defineProperty,IB=Object.defineProperties,AB=Object.getOwnPropertyDescriptors,R3=Object.getOwnPropertySymbols,TB=Object.prototype.hasOwnProperty,RB=Object.prototype.propertyIsEnumerable,k3=(e,t,n)=>t in e?MB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kB=(e,t)=>{for(var n in t||(t={}))TB.call(t,n)&&k3(e,n,t[n]);if(R3)for(var n of R3(t))RB.call(t,n)&&k3(e,n,t[n]);return e},LB=(e,t)=>IB(e,AB(t));const L3=e=>{const[{indexes:t,datum:n,width:r=140,themeColors:i,positionV:o="normal"},s]=lt(e,["width"]),a=o!=="flipped",l=o==="normal"?"bottom":"top",c=y(Ve,{indexes:t,width:r,fill:i.colorText,alignHorizontal:"center",alignVertical:l,fontSize:14,children:n.label}),u=y(ft,{indexes:t,width:r,fill:i.colorTextSecondary,alignHorizontal:"center",alignVertical:l,children:n.desc}),h=y(Dr,{indexes:t,fill:i.colorPrimary,colorBg:i.colorWhite}),f=y(zB,{width:8,height:30,fill:i.colorPrimary,positionV:o}),d=5,p=25,g=30,m=ae(c),v=ae(u),b=ae(h),_=ae(f),x=m.height+v.height+d+_.height-b.height-p,w=b.height+p+g+_.height+d+m.height+v.height;return y(Y,LB(kB({width:r,height:w},s),{children:k(ve,{flexDirection:"column",alignItems:"center",children:[a?k(tt,{children:[u,c,y(yt,{height:d}),f]}):k(tt,{children:[y(yt,{height:x}),h,y(yt,{height:p})]}),k(Pi,{horizontal:"center",vertical:"middle",width:r,height:g,children:[y(NB,{width:r,height:g,fill:i.colorPrimary}),y(De,{width:r,height:g,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:n.time?n.time:String(t[0]+1).padStart(2,"0").slice(-2)})]}),a?k(tt,{children:[y(yt,{height:p}),h]}):k(tt,{children:[f,y(yt,{height:d}),c,u]})]})}))},NB=e=>{const{x:t=0,y:n=0,width:r=100,height:i=40,fill:o="#FF356A",size:s=10}=e;return y(Yt,{width:r,height:i,points:[{x:t,y:n},{x:t+r-s,y:n},{x:t+r,y:n+i/2},{x:t+r-s,y:n+i},{x:t,y:n+i},{x:t+s,y:n+i/2}],fill:o,"data-element-type":"shape"})},zB=e=>{const{x:t=0,y:n=0,width:r=10,height:i=50,fill:o,positionV:s="top"}=e,a=r/2,l=i-a,c=2,u=a;return k(Pt,{x:t,y:n,width:r,height:i,children:[y(Ze,{width:r,height:r,fill:o,y:s==="top"?0:l-a}),y(Pe,{d:s==="top"?`M${u},${a} L${u},${a+l}`:`M${u},0 L${u},${l-a}`,strokeWidth:c,stroke:o})]})};ct("horizontal-icon-arrow",{component:L3,composites:["icon","label","desc","time"]});var DB=Object.defineProperty,qB=Object.defineProperties,HB=Object.getOwnPropertyDescriptors,N3=Object.getOwnPropertySymbols,jB=Object.prototype.hasOwnProperty,FB=Object.prototype.propertyIsEnumerable,z3=(e,t,n)=>t in e?DB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,D3=(e,t)=>{for(var n in t||(t={}))jB.call(t,n)&&z3(e,n,t[n]);if(N3)for(var n of N3(t))FB.call(t,n)&&z3(e,n,t[n]);return e},q3=(e,t)=>qB(e,HB(t));const H3=e=>{const[{indexes:t,datum:n,width:r=160,themeColors:i,positionH:o="center",positionV:s="normal"},a]=lt(e,["width"]),l=o==="normal"?"left":o==="flipped"?"right":"center",c=y(Ve,{indexes:t,width:r,alignHorizontal:l,fill:i.colorPrimary,children:n.label}),u=ae(c),h=n.desc?y(ft,{indexes:t,width:r,fill:i.colorTextSecondary,alignHorizontal:l,alignVertical:s==="flipped"?"top":"bottom",children:n.desc}):null,f=ae(h),p=n.icon?y(Dr,{size:45,indexes:t,colorBg:i.colorBg,fill:i.colorPrimary}):null,g=ae(p),m=n.time?y(De,{width:r,height:30,alignHorizontal:"center",alignVertical:"middle",fill:i.colorPrimary,fontSize:18,fontWeight:"bold",children:n.time}):null,v=ae(m),b=18,_=k(Pi,{horizontal:"center",vertical:"middle",width:r,height:b,children:[y(Le,{width:r,height:b,fill:i.colorPrimary,"data-element-type":"shape"}),y(Ze,{width:b+6,height:b+6,fill:i.colorBg,fillOpacity:.5,"data-element-type":"shape"}),y(Ze,{width:12,height:12,fill:"white","data-element-type":"shape"})]}),x=u.height+f.height,w=g.height+v.height+5,C=Math.abs(w-x),P=w>x?C:0,O=x>w?C:0;return s==="flipped"?k(ve,q3(D3({},a),{flexDirection:"column",alignItems:"center",children:[y(yt,{height:O}),m,p,y(yt,{height:5}),_,c,h,y(yt,{height:P})]})):k(ve,q3(D3({},a),{flexDirection:"column",alignItems:"center",children:[y(yt,{height:P}),c,h,_,y(yt,{height:5}),p,m,y(yt,{height:O})]}))};ct("horizontal-icon-line",{component:H3,composites:["icon","label","desc"]});var BB=Object.defineProperty,WB=Object.defineProperties,VB=Object.getOwnPropertyDescriptors,j3=Object.getOwnPropertySymbols,GB=Object.prototype.hasOwnProperty,YB=Object.prototype.propertyIsEnumerable,F3=(e,t,n)=>t in e?BB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,XB=(e,t)=>{for(var n in t||(t={}))GB.call(t,n)&&F3(e,n,t[n]);if(j3)for(var n of j3(t))YB.call(t,n)&&F3(e,n,t[n]);return e},UB=(e,t)=>WB(e,VB(t));const B3=e=>{var t;const[{datum:n,indexes:r,size:i=80,iconSize:o=28,badgeSize:s=24,gap:a=8,themeColors:l,width:c=84,height:u=105},h]=lt(e,["size","iconSize","badgeSize","gap"]),f=(t=n.value)!=null?t:0,d=`${l.colorPrimary}-icon`,p="#ff6b6b-badge";return k(Y,UB(XB({},h),{width:c,height:u,children:[k(Ke,{children:[k("radialGradient",{id:d,cx:"50%",cy:"30%",r:"70%",children:[y("stop",{offset:"0%",stopColor:be(l.colorPrimary).lighten(30).toHexString()}),y("stop",{offset:"100%",stopColor:l.colorPrimary})]}),k("linearGradient",{id:p,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[y("stop",{offset:"0%",stopColor:"#ff6b6b"}),y("stop",{offset:"100%",stopColor:"#ee5a52"})]})]}),y(Ze,{x:0,y:0,width:i,height:i,fill:`url(#${d})`,"data-element-type":"shape"}),y(Ft,{indexes:r,x:(i-o)/2,y:(i-o)/2,size:o,fill:l.colorPrimaryText}),y(Ze,{x:i-s+4,width:s,height:s,fill:`url(#${p})`}),y(De,{x:i-s+4,width:s,height:s,fontSize:10,fontWeight:"bold",fill:l.colorWhite,alignHorizontal:"center",alignVertical:"middle",children:f>99?"99+":Math.round(f)}),y(Ve,{indexes:r,x:0,y:i+a,width:i,alignHorizontal:"center",fontSize:12,fill:l.colorText,children:n.label})]}))};ct("icon-badge",{component:B3,composites:["icon","label"]});var KB=Object.defineProperty,ZB=Object.defineProperties,QB=Object.getOwnPropertyDescriptors,W3=Object.getOwnPropertySymbols,JB=Object.prototype.hasOwnProperty,eW=Object.prototype.propertyIsEnumerable,V3=(e,t,n)=>t in e?KB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tW=(e,t)=>{for(var n in t||(t={}))JB.call(t,n)&&V3(e,n,t[n]);if(W3)for(var n of W3(t))eW.call(t,n)&&V3(e,n,t[n]);return e},nW=(e,t)=>ZB(e,QB(t));const G3=e=>{const[{datum:t,indexes:n,width:r=200,borderRadius:i=12,padding:o=16,separatorHeight:s=2,indexFontSize:a=20,labelFontSize:l=16,gap:c=8,themeColors:u},h]=lt(e,["width","height","borderRadius","padding","separatorHeight","indexFontSize","labelFontSize","gap"]),f=n[0]+1,d=String(f).padStart(2,"0"),p=t.label!==void 0,g=t.desc!==void 0,m=be.mix(u.colorPrimary,u.colorWhite,40).toHexString(),v=u.colorBgElevated||u.colorWhite,b=r-2*o,_=ae(y(De,{fontSize:a,fontWeight:"bold",children:d})),x=b-_.width-c,w=p?ae(y(Ve,{indexes:n,width:x,fontSize:l,fontWeight:"bold",x:a,children:t.label})):{height:0},C=g?ae(y(ft,{indexes:n,width:b,fontSize:14,lineHeight:1.5,wordWrap:!0,children:t.desc})):{height:0},P=Math.max(_.height,w.height),O=o*2+P+(p||g?c:0)+s+(g?c:0)+C.height;return k(Y,nW(tW({},h),{width:r,height:O,children:[y(Le,{x:0,y:0,width:r,height:O,rx:i,ry:i,fill:v,stroke:be(v).darken(5).toHexString(),strokeWidth:.5,"data-element-type":"shape"}),k(Y,{x:o,y:o,children:[k(Y,{x:0,y:0,children:[y(De,{x:0,y:0,fontSize:a,fontWeight:"bold",fill:u.colorPrimary,alignVertical:"top",children:d}),p&&y(Ve,{indexes:n,x:a+c,y:0,width:x,fontSize:l,fontWeight:"bold",fill:u.colorTextSecondary,alignVertical:"top",children:t.label})]}),y(Le,{x:0,y:P+c,width:b,height:s,fill:m,"data-element-type":"shape"}),g&&y(ft,{indexes:n,x:0,y:P+c+s+c,width:b,fontSize:14,lineHeight:1.5,wordWrap:!0,fill:u.colorTextSecondary,children:t.desc})]})]}))};ct("indexed-card",{component:G3,composites:["label","desc"]});var rW=Object.defineProperty,iW=Object.defineProperties,oW=Object.getOwnPropertyDescriptors,Y3=Object.getOwnPropertySymbols,sW=Object.prototype.hasOwnProperty,aW=Object.prototype.propertyIsEnumerable,X3=(e,t,n)=>t in e?rW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lW=(e,t)=>{for(var n in t||(t={}))sW.call(t,n)&&X3(e,n,t[n]);if(Y3)for(var n of Y3(t))aW.call(t,n)&&X3(e,n,t[n]);return e},cW=(e,t)=>iW(e,oW(t));const U3=e=>{const[{indexes:t,datum:n,width:r=140,iconSize:i=24,themeColors:o},s]=lt(e,["width","iconSize"]),{label:a,desc:l}=n,c=8,u=16,h=12,f=u+h,d=r-f,p=60,g=i+44,m=u,v=p+h,b=p+u+h,_=[{x:0,y:b},{x:m,y:v},{x:m,y:b}],x=r-m-h,w=m+h,C=w+x,P=v+c/2,O=P+g,$=`M ${w} ${O} L ${w} ${P} L ${C} ${P}`,S=c/2,M=w+S,I=P+S,E=8;return k(Y,cW(lW({},s),{children:[y(ft,{indexes:t,x:f,width:d,height:p,fontSize:12,alignHorizontal:"left",alignVertical:"bottom",fill:o.colorTextSecondary,children:l}),y(Yt,{points:_,fill:o.colorPrimary,opacity:.9,width:u,height:u,"data-element-type":"shape"}),y(Pe,{d:$,stroke:o.colorPrimary,strokeWidth:c,fill:"none","data-element-type":"shape"}),y(Ft,{indexes:t,x:M+x/2-i/2,y:I+E,size:i,fill:o.colorPrimary}),y(Ve,{indexes:t,x:M,y:I+i+E*2,width:x,fontSize:14,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:o.colorText,children:a})]}))};ct("l-corner-card",{component:U3,composites:["icon","label","desc"]});var uW=Object.defineProperty,hW=Object.defineProperties,fW=Object.getOwnPropertyDescriptors,K3=Object.getOwnPropertySymbols,dW=Object.prototype.hasOwnProperty,pW=Object.prototype.propertyIsEnumerable,Z3=(e,t,n)=>t in e?uW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gW=(e,t)=>{for(var n in t||(t={}))dW.call(t,n)&&Z3(e,n,t[n]);if(K3)for(var n of K3(t))pW.call(t,n)&&Z3(e,n,t[n]);return e},mW=(e,t)=>hW(e,fW(t));const Q3=e=>{var t,n;const[{datum:r,indexes:i,width:o=280,height:s=160,showStripe:a=!0,showGradient:l=!0,showBottomShade:c=!0,themeColors:u},h]=lt(e,["width","height","showStripe","showGradient","showBottomShade"]),f=(t=r.label)==null?void 0:t[0].toUpperCase(),d=(n=r.label)==null?void 0:n.toUpperCase(),p=u.colorPrimary,g=be(p),m=4,v=6,b=45,_=40,x=12,C=g.clone().darken(4).toHexString(),P=g.clone().lighten(x).toHexString(),O="rgba(255, 255, 255, 0)",$="rgba(0, 0, 0, 0.03)",S=`letter-card-${i.join("-")}`,M=`${S}-gradient`,I=`${S}-pattern`,E=`${S}-shade`,A=m+v,T=1,N=96,H=N*T,D=16,B=D*T,F=s/16,X=H+F+B,G=(s-X)/2,L=G+H+F;return k(Y,mW(gW({},h),{width:o,height:s,children:[k(Ke,{children:[l&&k("linearGradient",{id:M,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[y("stop",{offset:"0%",stopColor:C}),y("stop",{offset:"100%",stopColor:P})]}),a&&k("pattern",{id:I,patternUnits:"userSpaceOnUse",width:A,height:A,patternTransform:`rotate(${b})`,children:[y("rect",{x:"0",y:"0",width:A,height:A,fill:O}),y("rect",{x:"0",y:"0",width:m,height:A,fill:$})]}),c&&k("linearGradient",{id:E,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[y("stop",{offset:"0%",stopColor:"rgba(0,0,0,0)"}),y("stop",{offset:"100%",stopColor:"rgba(0,0,0,0.16)"})]})]}),y(Le,{x:0,y:0,width:o,height:s,fill:l?`url(#${M})`:p,rx:0,ry:0,"data-element-type":"shape"}),a&&y(Le,{x:0,y:0,width:o,height:s,fill:`url(#${I})`,rx:0,ry:0}),c&&y(Le,{x:0,y:s-_,width:o,height:_,fill:`url(#${E})`,rx:0,ry:0}),f&&y(Ve,{indexes:i,x:0,y:G,width:o,fontSize:N,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"top",lineHeight:1,children:f}),y(Ve,{indexes:i,x:0,y:L,width:o,fontSize:D,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"middle",lineHeight:1,children:d})]}))};ct("letter-card",{component:Q3,composites:["label"]});var yW=Object.defineProperty,vW=Object.defineProperties,bW=Object.getOwnPropertyDescriptors,J3=Object.getOwnPropertySymbols,_W=Object.prototype.hasOwnProperty,wW=Object.prototype.propertyIsEnumerable,ex=(e,t,n)=>t in e?yW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xW=(e,t)=>{for(var n in t||(t={}))_W.call(t,n)&&ex(e,n,t[n]);if(J3)for(var n of J3(t))wW.call(t,n)&&ex(e,n,t[n]);return e},CW=(e,t)=>vW(e,bW(t));const tx=e=>{var t,n,r;const[{datum:i,indexes:o,width:s,themeColors:a,positionH:l="normal",positionV:c="center",formatter:u=T=>T||"",usePaletteColor:h=!1,showUnderline:f=!1,underlineGap:d=6,underlineExtend:p=8,underlineThickness:g=2},m]=lt(e,["width","formatter","usePaletteColor","showUnderline","underlineGap","underlineExtend","underlineThickness"]),v=u((n=(t=i.label)!=null?t:i.desc)!=null?n:""),b=l==="flipped"?"right":l==="center"?"center":"left",_=ae(y(Ve,{indexes:o,width:s,children:v})),x=s!=null?s:_.width,w=_.height,C=f?x+p*2:0,P=w+(f?d+g:0),O=f?Math.max(x,C):x,$=(r=m.height)!=null?r:P,S=c==="middle"?($-P)/2:c==="flipped"?$-P:0,M=b==="right"?O-x:b==="center"?(O-x)/2:0,I=S,E=b==="right"?O-C:b==="center"?(O-C)/2:0,A=$;return k(Y,CW(xW({},m),{width:O,height:$,children:[y(Ve,{indexes:o,x:M,y:I,width:x,height:w,alignHorizontal:b,alignVertical:c==="flipped"?"bottom":c==="center"?"middle":"top",fill:h?a.colorPrimary:a.colorText,children:v}),f&&y(Pe,{d:`M 0 ${g/2} L ${C} ${g/2}`,x:E,y:A-g/2,width:C,height:g,stroke:a.colorPrimary,strokeWidth:g,fill:"none",strokeLinecap:"round","data-element-type":"shape"})]}))};ct("lined-text",{component:tx,composites:["label"]});var PW=Object.defineProperty,OW=Object.defineProperties,SW=Object.getOwnPropertyDescriptors,nx=Object.getOwnPropertySymbols,$W=Object.prototype.hasOwnProperty,EW=Object.prototype.propertyIsEnumerable,rx=(e,t,n)=>t in e?PW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,MW=(e,t)=>{for(var n in t||(t={}))$W.call(t,n)&&rx(e,n,t[n]);if(nx)for(var n of nx(t))EW.call(t,n)&&rx(e,n,t[n]);return e},IW=(e,t)=>OW(e,SW(t));const ix=e=>{const[{datum:t,indexes:n,width:r=300,pillWidth:i=120,pillHeight:o=36,gap:s=16,positionH:a="normal",themeColors:l},c]=lt(e,["width","pillWidth","pillHeight","gap"]),u=!!t.desc,h=u?r:i,f=u?a==="center"?(h-i)/2:a==="flipped"?h-i:0:0,d=0,p=0,g=o+s,m=h,v=`drop-shadow-${l.colorPrimary}`,b="linear-gradient-white-top-bottom";return k(Y,IW(MW({},c),{children:[k(Ke,{children:[y(Oh,{id:v,color:l.colorPrimary}),y(Sh,{id:b,startColor:"#fff",stopColor:"#ffffff33",direction:"top-bottom"})]}),y(Le,{x:f,y:d,width:i,height:o,fill:l.colorPrimaryBg,stroke:l.colorPrimary,rx:o/2,ry:o/2,filter:`url(#${v})`,"data-element-type":"shape"}),y(Le,{x:f,y:d,width:i,height:o,fill:`url(#${b})`,opacity:l.isDarkMode?.4:.7,rx:o/2,ry:o/2}),y(Ve,{indexes:n,x:f,y:d,width:i,height:o,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:l.colorText,children:t.label}),t.desc&&y(ft,{indexes:n,x:p,y:g,width:m,alignHorizontal:a==="center"?"center":a==="flipped"?"right":"left",fontSize:12,fill:l.colorTextSecondary,lineNumber:2,wordWrap:!0,children:t.desc})]}))};ct("pill-badge",{component:ix,composites:["label","desc"]});var AW=Object.defineProperty,TW=Object.defineProperties,RW=Object.getOwnPropertyDescriptors,ox=Object.getOwnPropertySymbols,kW=Object.prototype.hasOwnProperty,LW=Object.prototype.propertyIsEnumerable,sx=(e,t,n)=>t in e?AW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,NW=(e,t)=>{for(var n in t||(t={}))kW.call(t,n)&&sx(e,n,t[n]);if(ox)for(var n of ox(t))LW.call(t,n)&&sx(e,n,t[n]);return e},zW=(e,t)=>TW(e,RW(t));const ax=e=>{var t;const[{indexes:n,datum:r,width:i=120,themeColors:o,positionH:s="normal",positionV:a="center",formatter:l=g=>g||"",usePaletteColor:c=!1,lineNumber:u=1},h]=lt(e,["width","formatter","usePaletteColor","lineNumber"]),f=14,d=1.4,p=(t=h.height)!=null?t:Math.ceil(u*d*f);return y(Ve,zW(NW({},h),{indexes:n,width:i,height:p,lineHeight:d,fill:c?o.colorPrimary:o.colorText,fontSize:f,fontWeight:"regular",alignHorizontal:s==="flipped"?"right":s==="center"?"center":"left",alignVertical:a==="flipped"?"bottom":a==="center"?"middle":"top",children:l(r.label||r.desc)}))};ct("plain-text",{component:ax,composites:["label"]});function qa(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function DW(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function lx(e){let t,n,r;e.length!==2?(t=qa,n=(a,l)=>qa(e(a),l),r=(a,l)=>e(a)-l):(t=e===qa||e===DW?e:qW,n=e,r=e);function i(a,l,c=0,u=a.length){if(c<u){if(t(l,l)!==0)return u;do{const h=c+u>>>1;n(a[h],l)<0?c=h+1:u=h}while(c<u)}return c}function o(a,l,c=0,u=a.length){if(c<u){if(t(l,l)!==0)return u;do{const h=c+u>>>1;n(a[h],l)<=0?c=h+1:u=h}while(c<u)}return c}function s(a,l,c=0,u=a.length){const h=i(a,l,c,u-1);return h>c&&r(a[h-1],l)>-r(a[h],l)?h-1:h}return{left:i,center:s,right:o}}function qW(){return 0}function HW(e){return e===null?NaN:+e}const jW=lx(qa).right;lx(HW).center;const FW=Math.sqrt(50),BW=Math.sqrt(10),WW=Math.sqrt(2);function Ha(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),s=o>=FW?10:o>=BW?5:o>=WW?2:1;let a,l,c;return i<0?(c=Math.pow(10,-i)/s,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*s,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=n&&n<2?Ha(e,t,n*2):[a,l,c]}function VW(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,s]=r?Ha(t,e,n):Ha(e,t,n);if(!(o>=i))return[];const a=o-i+1,l=new Array(a);if(r)if(s<0)for(let c=0;c<a;++c)l[c]=(o-c)/-s;else for(let c=0;c<a;++c)l[c]=(o-c)*s;else if(s<0)for(let c=0;c<a;++c)l[c]=(i+c)/-s;else for(let c=0;c<a;++c)l[c]=(i+c)*s;return l}function Ah(e,t,n){return t=+t,e=+e,n=+n,Ha(e,t,n)[2]}function GW(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Ah(t,e,n):Ah(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}var YW={value:()=>{}};function Th(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new ja(n)}function ja(e){this._=e}function XW(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}ja.prototype=Th.prototype={constructor:ja,on:function(e,t){var n=this._,r=XW(e+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(e=r[o]).type)&&(i=UW(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<s;)if(i=(e=r[o]).type)n[i]=cx(n[i],e.name,t);else if(t==null)for(i in n)n[i]=cx(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new ja(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],r=0,i=o.length;r<i;++r)o[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};function UW(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function cx(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=YW,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Rh="http://www.w3.org/1999/xhtml";const ux={svg:"http://www.w3.org/2000/svg",xhtml:Rh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Fa(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),ux.hasOwnProperty(t)?{space:ux[t],local:e}:e}function KW(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Rh&&t.documentElement.namespaceURI===Rh?t.createElement(e):t.createElementNS(n,e)}}function ZW(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function hx(e){var t=Fa(e);return(t.local?ZW:KW)(t)}function QW(){}function kh(e){return e==null?QW:function(){return this.querySelector(e)}}function JW(e){typeof e!="function"&&(e=kh(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],s=o.length,a=r[i]=new Array(s),l,c,u=0;u<s;++u)(l=o[u])&&(c=e.call(l,l.__data__,u,o))&&("__data__"in l&&(c.__data__=l.__data__),a[u]=c);return new mn(r,this._parents)}function eV(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function tV(){return[]}function fx(e){return e==null?tV:function(){return this.querySelectorAll(e)}}function nV(e){return function(){return eV(e.apply(this,arguments))}}function rV(e){typeof e=="function"?e=nV(e):e=fx(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var s=t[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(r.push(e.call(l,l.__data__,c,s)),i.push(l));return new mn(r,i)}function dx(e){return function(){return this.matches(e)}}function px(e){return function(t){return t.matches(e)}}var iV=Array.prototype.find;function oV(e){return function(){return iV.call(this.children,e)}}function sV(){return this.firstElementChild}function aV(e){return this.select(e==null?sV:oV(typeof e=="function"?e:px(e)))}var lV=Array.prototype.filter;function cV(){return Array.from(this.children)}function uV(e){return function(){return lV.call(this.children,e)}}function hV(e){return this.selectAll(e==null?cV:uV(typeof e=="function"?e:px(e)))}function fV(e){typeof e!="function"&&(e=dx(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],s=o.length,a=r[i]=[],l,c=0;c<s;++c)(l=o[c])&&e.call(l,l.__data__,c,o)&&a.push(l);return new mn(r,this._parents)}function gx(e){return new Array(e.length)}function dV(){return new mn(this._enter||this._groups.map(gx),this._parents)}function Ba(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Ba.prototype={constructor:Ba,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function pV(e){return function(){return e}}function gV(e,t,n,r,i,o){for(var s=0,a,l=t.length,c=o.length;s<c;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new Ba(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function mV(e,t,n,r,i,o,s){var a,l,c=new Map,u=t.length,h=o.length,f=new Array(u),d;for(a=0;a<u;++a)(l=t[a])&&(f[a]=d=s.call(l,l.__data__,a,t)+"",c.has(d)?i[a]=l:c.set(d,l));for(a=0;a<h;++a)d=s.call(e,o[a],a,o)+"",(l=c.get(d))?(r[a]=l,l.__data__=o[a],c.delete(d)):n[a]=new Ba(e,o[a]);for(a=0;a<u;++a)(l=t[a])&&c.get(f[a])===l&&(i[a]=l)}function yV(e){return e.__data__}function vV(e,t){if(!arguments.length)return Array.from(this,yV);var n=t?mV:gV,r=this._parents,i=this._groups;typeof e!="function"&&(e=pV(e));for(var o=i.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var u=r[c],h=i[c],f=h.length,d=bV(e.call(u,u&&u.__data__,c,r)),p=d.length,g=a[c]=new Array(p),m=s[c]=new Array(p),v=l[c]=new Array(f);n(u,h,g,m,v,d,t);for(var b=0,_=0,x,w;b<p;++b)if(x=g[b]){for(b>=_&&(_=b+1);!(w=m[_])&&++_<p;);x._next=w||null}}return s=new mn(s,r),s._enter=a,s._exit=l,s}function bV(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function _V(){return new mn(this._exit||this._groups.map(gx),this._parents)}function wV(e,t,n){var r=this.enter(),i=this,o=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function xV(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,s=Math.min(i,o),a=new Array(i),l=0;l<s;++l)for(var c=n[l],u=r[l],h=c.length,f=a[l]=new Array(h),d,p=0;p<h;++p)(d=c[p]||u[p])&&(f[p]=d);for(;l<i;++l)a[l]=n[l];return new mn(a,this._parents)}function CV(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,o=r[i],s;--i>=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function PV(e){e||(e=OV);function t(h,f){return h&&f?e(h.__data__,f.__data__):!h-!f}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s=n[o],a=s.length,l=i[o]=new Array(a),c,u=0;u<a;++u)(c=s[u])&&(l[u]=c);l.sort(t)}return new mn(i,this._parents).order()}function OV(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function SV(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function $V(){return Array.from(this)}function EV(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null}function MV(){let e=0;for(const t of this)++e;return e}function IV(){return!this.node()}function AV(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],o=0,s=i.length,a;o<s;++o)(a=i[o])&&e.call(a,a.__data__,o,i);return this}function TV(e){return function(){this.removeAttribute(e)}}function RV(e){return function(){this.removeAttributeNS(e.space,e.local)}}function kV(e,t){return function(){this.setAttribute(e,t)}}function LV(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function NV(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function zV(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function DV(e,t){var n=Fa(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?RV:TV:typeof t=="function"?n.local?zV:NV:n.local?LV:kV)(n,t))}function mx(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function qV(e){return function(){this.style.removeProperty(e)}}function HV(e,t,n){return function(){this.style.setProperty(e,t,n)}}function jV(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function FV(e,t,n){return arguments.length>1?this.each((t==null?qV:typeof t=="function"?jV:HV)(e,t,n==null?"":n)):Oi(this.node(),e)}function Oi(e,t){return e.style.getPropertyValue(t)||mx(e).getComputedStyle(e,null).getPropertyValue(t)}function BV(e){return function(){delete this[e]}}function WV(e,t){return function(){this[e]=t}}function VV(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function GV(e,t){return arguments.length>1?this.each((t==null?BV:typeof t=="function"?VV:WV)(e,t)):this.node()[e]}function yx(e){return e.trim().split(/^|\s+/)}function Lh(e){return e.classList||new vx(e)}function vx(e){this._node=e,this._names=yx(e.getAttribute("class")||"")}vx.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function bx(e,t){for(var n=Lh(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function _x(e,t){for(var n=Lh(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function YV(e){return function(){bx(this,e)}}function XV(e){return function(){_x(this,e)}}function UV(e,t){return function(){(t.apply(this,arguments)?bx:_x)(this,e)}}function KV(e,t){var n=yx(e+"");if(arguments.length<2){for(var r=Lh(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?UV:t?YV:XV)(n,t))}function ZV(){this.textContent=""}function QV(e){return function(){this.textContent=e}}function JV(e){return function(){var t=e.apply(this,arguments);this.textContent=t==null?"":t}}function eG(e){return arguments.length?this.each(e==null?ZV:(typeof e=="function"?JV:QV)(e)):this.node().textContent}function tG(){this.innerHTML=""}function nG(e){return function(){this.innerHTML=e}}function rG(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t==null?"":t}}function iG(e){return arguments.length?this.each(e==null?tG:(typeof e=="function"?rG:nG)(e)):this.node().innerHTML}function oG(){this.nextSibling&&this.parentNode.appendChild(this)}function sG(){return this.each(oG)}function aG(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function lG(){return this.each(aG)}function cG(e){var t=typeof e=="function"?e:hx(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function uG(){return null}function hG(e,t){var n=typeof e=="function"?e:hx(e),r=t==null?uG:typeof t=="function"?t:kh(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function fG(){var e=this.parentNode;e&&e.removeChild(this)}function dG(){return this.each(fG)}function pG(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function gG(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function mG(e){return this.select(e?gG:pG)}function yG(e){return arguments.length?this.property("__data__",e):this.node().__data__}function vG(e){return function(t){e.call(this,t,this.__data__)}}function bG(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function _G(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,o;n<i;++n)o=t[n],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++r]=o;++r?t.length=r:delete this.__on}}}function wG(e,t,n){return function(){var r=this.__on,i,o=vG(t);if(r){for(var s=0,a=r.length;s<a;++s)if((i=r[s]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=t;return}}this.addEventListener(e.type,o,n),i={type:e.type,name:e.name,value:t,listener:o,options:n},r?r.push(i):this.__on=[i]}}function xG(e,t,n){var r=bG(e+""),i,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,u;l<c;++l)for(i=0,u=a[l];i<o;++i)if((s=r[i]).type===u.type&&s.name===u.name)return u.value}return}for(a=t?wG:_G,i=0;i<o;++i)this.each(a(r[i],t,n));return this}function wx(e,t,n){var r=mx(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function CG(e,t){return function(){return wx(this,e,t)}}function PG(e,t){return function(){return wx(this,e,t.apply(this,arguments))}}function OG(e,t){return this.each((typeof t=="function"?PG:CG)(e,t))}function*SG(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length,s;i<o;++i)(s=r[i])&&(yield s)}var $G=[null];function mn(e,t){this._groups=e,this._parents=t}function ko(){return new mn([[document.documentElement]],$G)}function EG(){return this}mn.prototype=ko.prototype={constructor:mn,select:JW,selectAll:rV,selectChild:aV,selectChildren:hV,filter:fV,data:vV,enter:dV,exit:_V,join:wV,merge:xV,selection:EG,order:CV,sort:PV,call:SV,nodes:$V,node:EV,size:MV,empty:IV,each:AV,attr:DV,style:FV,property:GV,classed:KV,text:eG,html:iG,raise:sG,lower:lG,append:cG,insert:hG,remove:dG,clone:mG,datum:yG,on:xG,dispatch:OG,[Symbol.iterator]:SG};function Nh(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function xx(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Lo(){}var No=.7,Wa=1/No,Si="\\s*([+-]?\\d+)\\s*",zo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Tn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",MG=/^#([0-9a-f]{3,8})$/,IG=new RegExp(`^rgb\\(${Si},${Si},${Si}\\)$`),AG=new RegExp(`^rgb\\(${Tn},${Tn},${Tn}\\)$`),TG=new RegExp(`^rgba\\(${Si},${Si},${Si},${zo}\\)$`),RG=new RegExp(`^rgba\\(${Tn},${Tn},${Tn},${zo}\\)$`),kG=new RegExp(`^hsl\\(${zo},${Tn},${Tn}\\)$`),LG=new RegExp(`^hsla\\(${zo},${Tn},${Tn},${zo}\\)$`),Cx={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Nh(Lo,Hr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Px,formatHex:Px,formatHex8:NG,formatHsl:zG,formatRgb:Ox,toString:Ox});function Px(){return this.rgb().formatHex()}function NG(){return this.rgb().formatHex8()}function zG(){return Ix(this).formatHsl()}function Ox(){return this.rgb().formatRgb()}function Hr(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=MG.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Sx(t):n===3?new nn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Va(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Va(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=IG.exec(e))?new nn(t[1],t[2],t[3],1):(t=AG.exec(e))?new nn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=TG.exec(e))?Va(t[1],t[2],t[3],t[4]):(t=RG.exec(e))?Va(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=kG.exec(e))?Mx(t[1],t[2]/100,t[3]/100,1):(t=LG.exec(e))?Mx(t[1],t[2]/100,t[3]/100,t[4]):Cx.hasOwnProperty(e)?Sx(Cx[e]):e==="transparent"?new nn(NaN,NaN,NaN,0):null}function Sx(e){return new nn(e>>16&255,e>>8&255,e&255,1)}function Va(e,t,n,r){return r<=0&&(e=t=n=NaN),new nn(e,t,n,r)}function DG(e){return e instanceof Lo||(e=Hr(e)),e?(e=e.rgb(),new nn(e.r,e.g,e.b,e.opacity)):new nn}function zh(e,t,n,r){return arguments.length===1?DG(e):new nn(e,t,n,r==null?1:r)}function nn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Nh(nn,zh,xx(Lo,{brighter(e){return e=e==null?Wa:Math.pow(Wa,e),new nn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?No:Math.pow(No,e),new nn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new nn(jr(this.r),jr(this.g),jr(this.b),Ga(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:$x,formatHex:$x,formatHex8:qG,formatRgb:Ex,toString:Ex}));function $x(){return`#${Fr(this.r)}${Fr(this.g)}${Fr(this.b)}`}function qG(){return`#${Fr(this.r)}${Fr(this.g)}${Fr(this.b)}${Fr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ex(){const e=Ga(this.opacity);return`${e===1?"rgb(":"rgba("}${jr(this.r)}, ${jr(this.g)}, ${jr(this.b)}${e===1?")":`, ${e})`}`}function Ga(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function jr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fr(e){return e=jr(e),(e<16?"0":"")+e.toString(16)}function Mx(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new yn(e,t,n,r)}function Ix(e){if(e instanceof yn)return new yn(e.h,e.s,e.l,e.opacity);if(e instanceof Lo||(e=Hr(e)),!e)return new yn;if(e instanceof yn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(t===o?s=(n-r)/a+(n<r)*6:n===o?s=(r-t)/a+2:s=(t-n)/a+4,a/=l<.5?o+i:2-o-i,s*=60):a=l>0&&l<1?0:s,new yn(s,a,l,e.opacity)}function HG(e,t,n,r){return arguments.length===1?Ix(e):new yn(e,t,n,r==null?1:r)}function yn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Nh(yn,HG,xx(Lo,{brighter(e){return e=e==null?Wa:Math.pow(Wa,e),new yn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?No:Math.pow(No,e),new yn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new nn(Dh(e>=240?e-240:e+120,i,r),Dh(e,i,r),Dh(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new yn(Ax(this.h),Ya(this.s),Ya(this.l),Ga(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ga(this.opacity);return`${e===1?"hsl(":"hsla("}${Ax(this.h)}, ${Ya(this.s)*100}%, ${Ya(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ax(e){return e=(e||0)%360,e<0?e+360:e}function Ya(e){return Math.max(0,Math.min(1,e||0))}function Dh(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const qh=e=>()=>e;function jG(e,t){return function(n){return e+n*t}}function FG(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function BG(e){return(e=+e)==1?Tx:function(t,n){return n-t?FG(t,n,e):qh(isNaN(t)?n:t)}}function Tx(e,t){var n=t-e;return n?jG(e,n):qh(isNaN(e)?t:e)}const Xa=(function e(t){var n=BG(t);function r(i,o){var s=n((i=zh(i)).r,(o=zh(o)).r),a=n(i.g,o.g),l=n(i.b,o.b),c=Tx(i.opacity,o.opacity);return function(u){return i.r=s(u),i.g=a(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r})(1);function WG(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function VG(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function GG(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)i[s]=Fh(e[s],t[s]);for(;s<n;++s)o[s]=t[s];return function(a){for(s=0;s<r;++s)o[s]=i[s](a);return o}}function YG(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function vn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function XG(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Fh(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Hh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,jh=new RegExp(Hh.source,"g");function UG(e){return function(){return e}}function KG(e){return function(t){return e(t)+""}}function Rx(e,t){var n=Hh.lastIndex=jh.lastIndex=0,r,i,o,s=-1,a=[],l=[];for(e=e+"",t=t+"";(r=Hh.exec(e))&&(i=jh.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:vn(r,i)})),n=jh.lastIndex;return n<t.length&&(o=t.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?KG(l[0].x):UG(t):(t=l.length,function(c){for(var u=0,h;u<t;++u)a[(h=l[u]).i]=h.x(c);return a.join("")})}function Fh(e,t){var n=typeof t,r;return t==null||n==="boolean"?qh(t):(n==="number"?vn:n==="string"?(r=Hr(t))?(t=r,Xa):Rx:t instanceof Hr?Xa:t instanceof Date?YG:VG(t)?WG:Array.isArray(t)?GG:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?XG:vn)(e,t)}function ZG(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var kx=180/Math.PI,Bh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Lx(e,t,n,r,i,o){var s,a,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),e*r<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*kx,skewX:Math.atan(l)*kx,scaleX:s,scaleY:a}}var Ua;function QG(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Bh:Lx(t.a,t.b,t.c,t.d,t.e,t.f)}function JG(e){return e==null||(Ua||(Ua=document.createElementNS("http://www.w3.org/2000/svg","g")),Ua.setAttribute("transform",e),!(e=Ua.transform.baseVal.consolidate()))?Bh:(e=e.matrix,Lx(e.a,e.b,e.c,e.d,e.e,e.f))}function Nx(e,t,n,r){function i(c){return c.length?c.pop()+" ":""}function o(c,u,h,f,d,p){if(c!==h||u!==f){var g=d.push("translate(",null,t,null,n);p.push({i:g-4,x:vn(c,h)},{i:g-2,x:vn(u,f)})}else(h||f)&&d.push("translate("+h+t+f+n)}function s(c,u,h,f){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),f.push({i:h.push(i(h)+"rotate(",null,r)-2,x:vn(c,u)})):u&&h.push(i(h)+"rotate("+u+r)}function a(c,u,h,f){c!==u?f.push({i:h.push(i(h)+"skewX(",null,r)-2,x:vn(c,u)}):u&&h.push(i(h)+"skewX("+u+r)}function l(c,u,h,f,d,p){if(c!==h||u!==f){var g=d.push(i(d)+"scale(",null,",",null,")");p.push({i:g-4,x:vn(c,h)},{i:g-2,x:vn(u,f)})}else(h!==1||f!==1)&&d.push(i(d)+"scale("+h+","+f+")")}return function(c,u){var h=[],f=[];return c=e(c),u=e(u),o(c.translateX,c.translateY,u.translateX,u.translateY,h,f),s(c.rotate,u.rotate,h,f),a(c.skewX,u.skewX,h,f),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,h,f),c=u=null,function(d){for(var p=-1,g=f.length,m;++p<g;)h[(m=f[p]).i]=m.x(d);return h.join("")}}}var eY=Nx(QG,"px, ","px)","deg)"),tY=Nx(JG,", ",")",")"),$i=0,Do=0,qo=0,zx=1e3,Ka,Ho,Za=0,Br=0,Qa=0,jo=typeof performance=="object"&&performance.now?performance:Date,Dx=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Wh(){return Br||(Dx(nY),Br=jo.now()+Qa)}function nY(){Br=0}function Ja(){this._call=this._time=this._next=null}Ja.prototype=Vh.prototype={constructor:Ja,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Wh():+n)+(t==null?0:+t),!this._next&&Ho!==this&&(Ho?Ho._next=this:Ka=this,Ho=this),this._call=e,this._time=n,Gh()},stop:function(){this._call&&(this._call=null,this._time=1/0,Gh())}};function Vh(e,t,n){var r=new Ja;return r.restart(e,t,n),r}function rY(){Wh(),++$i;for(var e=Ka,t;e;)(t=Br-e._time)>=0&&e._call.call(void 0,t),e=e._next;--$i}function qx(){Br=(Za=jo.now())+Qa,$i=Do=0;try{rY()}finally{$i=0,oY(),Br=0}}function iY(){var e=jo.now(),t=e-Za;t>zx&&(Qa-=t,Za=e)}function oY(){for(var e,t=Ka,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Ka=n);Ho=e,Gh(r)}function Gh(e){if(!$i){Do&&(Do=clearTimeout(Do));var t=e-Br;t>24?(e<1/0&&(Do=setTimeout(qx,e-jo.now()-Qa)),qo&&(qo=clearInterval(qo))):(qo||(Za=jo.now(),qo=setInterval(iY,zx)),$i=1,Dx(qx))}}function Hx(e,t,n){var r=new Ja;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var sY=Th("start","end","cancel","interrupt"),aY=[],jx=0,Fx=1,Yh=2,el=3,Bx=4,Xh=5,tl=6;function nl(e,t,n,r,i,o){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;lY(e,n,{name:t,index:r,group:i,on:sY,tween:aY,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:jx})}function Uh(e,t){var n=bn(e,t);if(n.state>jx)throw new Error("too late; already scheduled");return n}function Rn(e,t){var n=bn(e,t);if(n.state>el)throw new Error("too late; already running");return n}function bn(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function lY(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Vh(o,0,n.time);function o(c){n.state=Fx,n.timer.restart(s,n.delay,n.time),n.delay<=c&&s(c-n.delay)}function s(c){var u,h,f,d;if(n.state!==Fx)return l();for(u in r)if(d=r[u],d.name===n.name){if(d.state===el)return Hx(s);d.state===Bx?(d.state=tl,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete r[u]):+u<t&&(d.state=tl,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete r[u])}if(Hx(function(){n.state===el&&(n.state=Bx,n.timer.restart(a,n.delay,n.time),a(c))}),n.state=Yh,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Yh){for(n.state=el,i=new Array(f=n.tween.length),u=0,h=-1;u<f;++u)(d=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(i[++h]=d);i.length=h+1}}function a(c){for(var u=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=Xh,1),h=-1,f=i.length;++h<f;)i[h].call(e,u);n.state===Xh&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=tl,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function cY(e,t){var n=e.__transition,r,i,o=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((r=n[s]).name!==t){o=!1;continue}i=r.state>Yh&&r.state<Xh,r.state=tl,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[s]}o&&delete e.__transition}}function uY(e){return this.each(function(){cY(this,e)})}function hY(e,t){var n,r;return function(){var i=Rn(this,e),o=i.tween;if(o!==n){r=n=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===t){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function fY(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=Rn(this,e),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=a;break}l===c&&i.push(a)}o.tween=i}}function dY(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=bn(this.node(),n).tween,i=0,o=r.length,s;i<o;++i)if((s=r[i]).name===e)return s.value;return null}return this.each((t==null?hY:fY)(n,e,t))}function Kh(e,t,n){var r=e._id;return e.each(function(){var i=Rn(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return bn(i,r).value[t]}}function Wx(e,t){var n;return(typeof t=="number"?vn:t instanceof Hr?Xa:(n=Hr(t))?(t=n,Xa):Rx)(e,t)}function pY(e){return function(){this.removeAttribute(e)}}function gY(e){return function(){this.removeAttributeNS(e.space,e.local)}}function mY(e,t,n){var r,i=n+"",o;return function(){var s=this.getAttribute(e);return s===i?null:s===r?o:o=t(r=s,n)}}function yY(e,t,n){var r,i=n+"",o;return function(){var s=this.getAttributeNS(e.space,e.local);return s===i?null:s===r?o:o=t(r=s,n)}}function vY(e,t,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=t(r=s,a)))}}function bY(e,t,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=t(r=s,a)))}}function _Y(e,t){var n=Fa(e),r=n==="transform"?tY:Wx;return this.attrTween(e,typeof t=="function"?(n.local?bY:vY)(n,r,Kh(this,"attr."+e,t)):t==null?(n.local?gY:pY)(n):(n.local?yY:mY)(n,r,t))}function wY(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function xY(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function CY(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&xY(e,o)),n}return i._value=t,i}function PY(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&wY(e,o)),n}return i._value=t,i}function OY(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=Fa(e);return this.tween(n,(r.local?CY:PY)(r,t))}function SY(e,t){return function(){Uh(this,e).delay=+t.apply(this,arguments)}}function $Y(e,t){return t=+t,function(){Uh(this,e).delay=t}}function EY(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?SY:$Y)(t,e)):bn(this.node(),t).delay}function MY(e,t){return function(){Rn(this,e).duration=+t.apply(this,arguments)}}function IY(e,t){return t=+t,function(){Rn(this,e).duration=t}}function AY(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?MY:IY)(t,e)):bn(this.node(),t).duration}function TY(e,t){if(typeof t!="function")throw new Error;return function(){Rn(this,e).ease=t}}function RY(e){var t=this._id;return arguments.length?this.each(TY(t,e)):bn(this.node(),t).ease}function kY(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Rn(this,e).ease=n}}function LY(e){if(typeof e!="function")throw new Error;return this.each(kY(this._id,e))}function NY(e){typeof e!="function"&&(e=dx(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],s=o.length,a=r[i]=[],l,c=0;c<s;++c)(l=o[c])&&e.call(l,l.__data__,c,o)&&a.push(l);return new Xn(r,this._parents,this._name,this._id)}function zY(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var l=t[a],c=n[a],u=l.length,h=s[a]=new Array(u),f,d=0;d<u;++d)(f=l[d]||c[d])&&(h[d]=f);for(;a<r;++a)s[a]=t[a];return new Xn(s,this._parents,this._name,this._id)}function DY(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function qY(e,t,n){var r,i,o=DY(t)?Uh:Rn;return function(){var s=o(this,e),a=s.on;a!==r&&(i=(r=a).copy()).on(t,n),s.on=i}}function HY(e,t){var n=this._id;return arguments.length<2?bn(this.node(),n).on.on(e):this.each(qY(n,e,t))}function jY(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function FY(){return this.on("end.remove",jY(this._id))}function BY(e){var t=this._name,n=this._id;typeof e!="function"&&(e=kh(e));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a=r[s],l=a.length,c=o[s]=new Array(l),u,h,f=0;f<l;++f)(u=a[f])&&(h=e.call(u,u.__data__,f,a))&&("__data__"in u&&(h.__data__=u.__data__),c[f]=h,nl(c[f],t,n,f,c,bn(u,n)));return new Xn(o,this._parents,t,n)}function WY(e){var t=this._name,n=this._id;typeof e!="function"&&(e=fx(e));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var l=r[a],c=l.length,u,h=0;h<c;++h)if(u=l[h]){for(var f=e.call(u,u.__data__,h,l),d,p=bn(u,n),g=0,m=f.length;g<m;++g)(d=f[g])&&nl(d,t,n,g,f,p);o.push(f),s.push(u)}return new Xn(o,s,t,n)}var VY=ko.prototype.constructor;function GY(){return new VY(this._groups,this._parents)}function YY(e,t){var n,r,i;return function(){var o=Oi(this,e),s=(this.style.removeProperty(e),Oi(this,e));return o===s?null:o===n&&s===r?i:i=t(n=o,r=s)}}function Vx(e){return function(){this.style.removeProperty(e)}}function XY(e,t,n){var r,i=n+"",o;return function(){var s=Oi(this,e);return s===i?null:s===r?o:o=t(r=s,n)}}function UY(e,t,n){var r,i,o;return function(){var s=Oi(this,e),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(e),Oi(this,e))),s===l?null:s===r&&l===i?o:(i=l,o=t(r=s,a))}}function KY(e,t){var n,r,i,o="style."+t,s="end."+o,a;return function(){var l=Rn(this,e),c=l.on,u=l.value[o]==null?a||(a=Vx(t)):void 0;(c!==n||i!==u)&&(r=(n=c).copy()).on(s,i=u),l.on=r}}function ZY(e,t,n){var r=(e+="")=="transform"?eY:Wx;return t==null?this.styleTween(e,YY(e,r)).on("end.style."+e,Vx(e)):typeof t=="function"?this.styleTween(e,UY(e,r,Kh(this,"style."+e,t))).each(KY(this._id,e)):this.styleTween(e,XY(e,r,t),n).on("end.style."+e,null)}function QY(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function JY(e,t,n){var r,i;function o(){var s=t.apply(this,arguments);return s!==i&&(r=(i=s)&&QY(e,s,n)),r}return o._value=t,o}function eX(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,JY(e,t,n==null?"":n))}function tX(e){return function(){this.textContent=e}}function nX(e){return function(){var t=e(this);this.textContent=t==null?"":t}}function rX(e){return this.tween("text",typeof e=="function"?nX(Kh(this,"text",e)):tX(e==null?"":e+""))}function iX(e){return function(t){this.textContent=e.call(this,t)}}function oX(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&iX(i)),t}return r._value=e,r}function sX(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,oX(e))}function aX(){for(var e=this._name,t=this._id,n=Gx(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)if(l=s[c]){var u=bn(l,t);nl(l,e,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Xn(r,this._parents,e,n)}function lX(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--i===0&&o()}};n.each(function(){var c=Rn(this,r),u=c.on;u!==e&&(t=(e=u).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),c.on=t}),i===0&&o()})}var cX=0;function Xn(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Gx(){return++cX}var Un=ko.prototype;Xn.prototype={constructor:Xn,select:BY,selectAll:WY,selectChild:Un.selectChild,selectChildren:Un.selectChildren,filter:NY,merge:zY,selection:GY,transition:aX,call:Un.call,nodes:Un.nodes,node:Un.node,size:Un.size,empty:Un.empty,each:Un.each,on:HY,attr:_Y,attrTween:OY,style:ZY,styleTween:eX,text:rX,textTween:sX,remove:FY,tween:dY,delay:EY,duration:AY,ease:RY,easeVarying:LY,end:lX,[Symbol.iterator]:Un[Symbol.iterator]};function uX(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var hX={time:null,delay:0,duration:250,ease:uX};function fX(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function dX(e){var t,n;e instanceof Xn?(t=e._id,e=e._name):(t=Gx(),(n=hX).time=Wh(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&nl(l,e,t,c,s,n||fX(l,t));return new Xn(r,this._parents,e,t)}ko.prototype.interrupt=uY,ko.prototype.transition=dX;const Zh=Math.PI,Qh=2*Zh,Wr=1e-6,pX=Qh-Wr;function Yx(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function gX(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Yx;const n=ds(10,t);return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class mX{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Yx:gX(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,s){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+s}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,a=this._y1,l=r-t,c=i-n,u=s-t,h=a-n,f=u*u+h*h;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>Wr)if(!(Math.abs(h*l-c*u)>Wr)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let d=r-s,p=i-a,g=l*l+c*c,m=d*d+p*p,v=Math.sqrt(g),b=Math.sqrt(f),_=o*Math.tan((Zh-Math.acos((g+f-m)/(2*v*b)))/2),x=_/b,w=_/v;Math.abs(x-1)>Wr&&this._append`L${t+x*u},${n+x*h}`,this._append`A${o},${o},0,0,${+(h*d>u*p)},${this._x1=t+w*l},${this._y1=n+w*c}`}}arc(t,n,r,i,o,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(i),l=r*Math.sin(i),c=t+a,u=n+l,h=1^s,f=s?i-o:o-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Wr||Math.abs(this._y1-u)>Wr)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%Qh+Qh),f>pX?this._append`A${r},${r},0,1,${h},${t-a},${n-l}A${r},${r},0,1,${h},${this._x1=c},${this._y1=u}`:f>Wr&&this._append`A${r},${r},0,${+(f>=Zh)},${h},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function yX(e,t){var n,r=1;e==null&&(e=0),t==null&&(t=0);function i(){var o,s=n.length,a,l=0,c=0;for(o=0;o<s;++o)a=n[o],l+=a.x,c+=a.y;for(l=(l/s-e)*r,c=(c/s-t)*r,o=0;o<s;++o)a=n[o],a.x-=l,a.y-=c}return i.initialize=function(o){n=o},i.x=function(o){return arguments.length?(e=+o,i):e},i.y=function(o){return arguments.length?(t=+o,i):t},i.strength=function(o){return arguments.length?(r=+o,i):r},i}function vX(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return Xx(this.cover(t,n),t,n,e)}function Xx(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,o=e._root,s={data:r},a=e._x0,l=e._y0,c=e._x1,u=e._y1,h,f,d,p,g,m,v,b;if(!o)return e._root=s,e;for(;o.length;)if((g=t>=(h=(a+c)/2))?a=h:c=h,(m=n>=(f=(l+u)/2))?l=f:u=f,i=o,!(o=o[v=m<<1|g]))return i[v]=s,e;if(d=+e._x.call(null,o.data),p=+e._y.call(null,o.data),t===d&&n===p)return s.next=o,i?i[v]=s:e._root=s,e;do i=i?i[v]=new Array(4):e._root=new Array(4),(g=t>=(h=(a+c)/2))?a=h:c=h,(m=n>=(f=(l+u)/2))?l=f:u=f;while((v=m<<1|g)===(b=(p>=f)<<1|d>=h));return i[b]=o,i[v]=s,e}function bX(e){var t,n,r=e.length,i,o,s=new Array(r),a=new Array(r),l=1/0,c=1/0,u=-1/0,h=-1/0;for(n=0;n<r;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(o=+this._y.call(null,t))||(s[n]=i,a[n]=o,i<l&&(l=i),i>u&&(u=i),o<c&&(c=o),o>h&&(h=o));if(l>u||c>h)return this;for(this.cover(l,c).cover(u,h),n=0;n<r;++n)Xx(this,s[n],a[n],e[n]);return this}function _X(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,o=(r=Math.floor(t))+1;else{for(var s=i-n||1,a=this._root,l,c;n>e||e>=i||r>t||t>=o;)switch(c=(t<r)<<1|e<n,l=new Array(4),l[c]=a,a=l,s*=2,c){case 0:i=n+s,o=r+s;break;case 1:n=i-s,o=r+s;break;case 2:i=n+s,r=o-s;break;case 3:n=i-s,r=o-s;break}this._root&&this._root.length&&(this._root=a)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this}function wX(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function xX(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function Kt(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function CX(e,t,n){var r,i=this._x0,o=this._y0,s,a,l,c,u=this._x1,h=this._y1,f=[],d=this._root,p,g;for(d&&f.push(new Kt(d,i,o,u,h)),n==null?n=1/0:(i=e-n,o=t-n,u=e+n,h=t+n,n*=n);p=f.pop();)if(!(!(d=p.node)||(s=p.x0)>u||(a=p.y0)>h||(l=p.x1)<i||(c=p.y1)<o))if(d.length){var m=(s+l)/2,v=(a+c)/2;f.push(new Kt(d[3],m,v,l,c),new Kt(d[2],s,v,m,c),new Kt(d[1],m,a,l,v),new Kt(d[0],s,a,m,v)),(g=(t>=v)<<1|e>=m)&&(p=f[f.length-1],f[f.length-1]=f[f.length-1-g],f[f.length-1-g]=p)}else{var b=e-+this._x.call(null,d.data),_=t-+this._y.call(null,d.data),x=b*b+_*_;if(x<n){var w=Math.sqrt(n=x);i=e-w,o=t-w,u=e+w,h=t+w,r=d.data}}return r}function PX(e){if(isNaN(u=+this._x.call(null,e))||isNaN(h=+this._y.call(null,e)))return this;var t,n=this._root,r,i,o,s=this._x0,a=this._y0,l=this._x1,c=this._y1,u,h,f,d,p,g,m,v;if(!n)return this;if(n.length)for(;;){if((p=u>=(f=(s+l)/2))?s=f:l=f,(g=h>=(d=(a+c)/2))?a=d:c=d,t=n,!(n=n[m=g<<1|p]))return this;if(!n.length)break;(t[m+1&3]||t[m+2&3]||t[m+3&3])&&(r=t,v=m)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,i?(o?i.next=o:delete i.next,this):t?(o?t[m]=o:delete t[m],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[v]=n:this._root=n),this):(this._root=o,this)}function OX(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function SX(){return this._root}function $X(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function EX(e){var t=[],n,r=this._root,i,o,s,a,l;for(r&&t.push(new Kt(r,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(r=n.node,o=n.x0,s=n.y0,a=n.x1,l=n.y1)&&r.length){var c=(o+a)/2,u=(s+l)/2;(i=r[3])&&t.push(new Kt(i,c,u,a,l)),(i=r[2])&&t.push(new Kt(i,o,u,c,l)),(i=r[1])&&t.push(new Kt(i,c,s,a,u)),(i=r[0])&&t.push(new Kt(i,o,s,c,u))}return this}function MX(e){var t=[],n=[],r;for(this._root&&t.push(new Kt(this._root,this._x0,this._y0,this._x1,this._y1));r=t.pop();){var i=r.node;if(i.length){var o,s=r.x0,a=r.y0,l=r.x1,c=r.y1,u=(s+l)/2,h=(a+c)/2;(o=i[0])&&t.push(new Kt(o,s,a,u,h)),(o=i[1])&&t.push(new Kt(o,u,a,l,h)),(o=i[2])&&t.push(new Kt(o,s,h,u,c)),(o=i[3])&&t.push(new Kt(o,u,h,l,c))}n.push(r)}for(;r=n.pop();)e(r.node,r.x0,r.y0,r.x1,r.y1);return this}function IX(e){return e[0]}function AX(e){return arguments.length?(this._x=e,this):this._x}function TX(e){return e[1]}function RX(e){return arguments.length?(this._y=e,this):this._y}function Jh(e,t,n){var r=new ef(t==null?IX:t,n==null?TX:n,NaN,NaN,NaN,NaN);return e==null?r:r.addAll(e)}function ef(e,t,n,r,i,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Ux(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Zt=Jh.prototype=ef.prototype;Zt.copy=function(){var e=new ef(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,r;if(!t)return e;if(!t.length)return e._root=Ux(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var i=0;i<4;++i)(r=t.source[i])&&(r.length?n.push({source:r,target:t.target[i]=new Array(4)}):t.target[i]=Ux(r));return e},Zt.add=vX,Zt.addAll=bX,Zt.cover=_X,Zt.data=wX,Zt.extent=xX,Zt.find=CX,Zt.remove=PX,Zt.removeAll=OX,Zt.root=SX,Zt.size=$X,Zt.visit=EX,Zt.visitAfter=MX,Zt.x=AX,Zt.y=RX;function Vr(e){return function(){return e}}function pr(e){return(e()-.5)*1e-6}function kX(e){return e.x+e.vx}function LX(e){return e.y+e.vy}function NX(e){var t,n,r,i=1,o=1;typeof e!="function"&&(e=Vr(e==null?1:+e));function s(){for(var c,u=t.length,h,f,d,p,g,m,v=0;v<o;++v)for(h=Jh(t,kX,LX).visitAfter(a),c=0;c<u;++c)f=t[c],g=n[f.index],m=g*g,d=f.x+f.vx,p=f.y+f.vy,h.visit(b);function b(_,x,w,C,P){var O=_.data,$=_.r,S=g+$;if(O){if(O.index>f.index){var M=d-O.x-O.vx,I=p-O.y-O.vy,E=M*M+I*I;E<S*S&&(M===0&&(M=pr(r),E+=M*M),I===0&&(I=pr(r),E+=I*I),E=(S-(E=Math.sqrt(E)))/E*i,f.vx+=(M*=E)*(S=($*=$)/(m+$)),f.vy+=(I*=E)*S,O.vx-=M*(S=1-S),O.vy-=I*S)}return}return x>d+S||C<d-S||w>p+S||P<p-S}}function a(c){if(c.data)return c.r=n[c.data.index];for(var u=c.r=0;u<4;++u)c[u]&&c[u].r>c.r&&(c.r=c[u].r)}function l(){if(t){var c,u=t.length,h;for(n=new Array(u),c=0;c<u;++c)h=t[c],n[h.index]=+e(h,c,t)}}return s.initialize=function(c,u){t=c,r=u,l()},s.iterations=function(c){return arguments.length?(o=+c,s):o},s.strength=function(c){return arguments.length?(i=+c,s):i},s.radius=function(c){return arguments.length?(e=typeof c=="function"?c:Vr(+c),l(),s):e},s}function zX(e){return e.index}function Kx(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function DX(e){var t=zX,n=h,r,i=Vr(30),o,s,a,l,c,u=1;e==null&&(e=[]);function h(m){return 1/Math.min(a[m.source.index],a[m.target.index])}function f(m){for(var v=0,b=e.length;v<u;++v)for(var _=0,x,w,C,P,O,$,S;_<b;++_)x=e[_],w=x.source,C=x.target,P=C.x+C.vx-w.x-w.vx||pr(c),O=C.y+C.vy-w.y-w.vy||pr(c),$=Math.sqrt(P*P+O*O),$=($-o[_])/$*m*r[_],P*=$,O*=$,C.vx-=P*(S=l[_]),C.vy-=O*S,w.vx+=P*(S=1-S),w.vy+=O*S}function d(){if(s){var m,v=s.length,b=e.length,_=new Map(s.map((w,C)=>[t(w,C,s),w])),x;for(m=0,a=new Array(v);m<b;++m)x=e[m],x.index=m,typeof x.source!="object"&&(x.source=Kx(_,x.source)),typeof x.target!="object"&&(x.target=Kx(_,x.target)),a[x.source.index]=(a[x.source.index]||0)+1,a[x.target.index]=(a[x.target.index]||0)+1;for(m=0,l=new Array(b);m<b;++m)x=e[m],l[m]=a[x.source.index]/(a[x.source.index]+a[x.target.index]);r=new Array(b),p(),o=new Array(b),g()}}function p(){if(s)for(var m=0,v=e.length;m<v;++m)r[m]=+n(e[m],m,e)}function g(){if(s)for(var m=0,v=e.length;m<v;++m)o[m]=+i(e[m],m,e)}return f.initialize=function(m,v){s=m,c=v,d()},f.links=function(m){return arguments.length?(e=m,d(),f):e},f.id=function(m){return arguments.length?(t=m,f):t},f.iterations=function(m){return arguments.length?(u=+m,f):u},f.strength=function(m){return arguments.length?(n=typeof m=="function"?m:Vr(+m),p(),f):n},f.distance=function(m){return arguments.length?(i=typeof m=="function"?m:Vr(+m),g(),f):i},f}const qX=1664525,HX=1013904223,Zx=4294967296;function jX(){let e=1;return()=>(e=(qX*e+HX)%Zx)/Zx}function FX(e){return e.x}function BX(e){return e.y}var WX=10,VX=Math.PI*(3-Math.sqrt(5));function GX(e){var t,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,s=.6,a=new Map,l=Vh(h),c=Th("tick","end"),u=jX();e==null&&(e=[]);function h(){f(),c.call("tick",t),n<r&&(l.stop(),c.call("end",t))}function f(g){var m,v=e.length,b;g===void 0&&(g=1);for(var _=0;_<g;++_)for(n+=(o-n)*i,a.forEach(function(x){x(n)}),m=0;m<v;++m)b=e[m],b.fx==null?b.x+=b.vx*=s:(b.x=b.fx,b.vx=0),b.fy==null?b.y+=b.vy*=s:(b.y=b.fy,b.vy=0);return t}function d(){for(var g=0,m=e.length,v;g<m;++g){if(v=e[g],v.index=g,v.fx!=null&&(v.x=v.fx),v.fy!=null&&(v.y=v.fy),isNaN(v.x)||isNaN(v.y)){var b=WX*Math.sqrt(.5+g),_=g*VX;v.x=b*Math.cos(_),v.y=b*Math.sin(_)}(isNaN(v.vx)||isNaN(v.vy))&&(v.vx=v.vy=0)}}function p(g){return g.initialize&&g.initialize(e,u),g}return d(),t={tick:f,restart:function(){return l.restart(h),t},stop:function(){return l.stop(),t},nodes:function(g){return arguments.length?(e=g,d(),a.forEach(p),t):e},alpha:function(g){return arguments.length?(n=+g,t):n},alphaMin:function(g){return arguments.length?(r=+g,t):r},alphaDecay:function(g){return arguments.length?(i=+g,t):+i},alphaTarget:function(g){return arguments.length?(o=+g,t):o},velocityDecay:function(g){return arguments.length?(s=1-g,t):1-s},randomSource:function(g){return arguments.length?(u=g,a.forEach(p),t):u},force:function(g,m){return arguments.length>1?(m==null?a.delete(g):a.set(g,p(m)),t):a.get(g)},find:function(g,m,v){var b=0,_=e.length,x,w,C,P,O;for(v==null?v=1/0:v*=v,b=0;b<_;++b)P=e[b],x=g-P.x,w=m-P.y,C=x*x+w*w,C<v&&(O=P,v=C);return O},on:function(g,m){return arguments.length>1?(c.on(g,m),t):c.on(g)}}}function YX(){var e,t,n,r,i=Vr(-30),o,s=1,a=1/0,l=.81;function c(d){var p,g=e.length,m=Jh(e,FX,BX).visitAfter(h);for(r=d,p=0;p<g;++p)t=e[p],m.visit(f)}function u(){if(e){var d,p=e.length,g;for(o=new Array(p),d=0;d<p;++d)g=e[d],o[g.index]=+i(g,d,e)}}function h(d){var p=0,g,m,v=0,b,_,x;if(d.length){for(b=_=x=0;x<4;++x)(g=d[x])&&(m=Math.abs(g.value))&&(p+=g.value,v+=m,b+=m*g.x,_+=m*g.y);d.x=b/v,d.y=_/v}else{g=d,g.x=g.data.x,g.y=g.data.y;do p+=o[g.data.index];while(g=g.next)}d.value=p}function f(d,p,g,m){if(!d.value)return!0;var v=d.x-t.x,b=d.y-t.y,_=m-p,x=v*v+b*b;if(_*_/l<x)return x<a&&(v===0&&(v=pr(n),x+=v*v),b===0&&(b=pr(n),x+=b*b),x<s&&(x=Math.sqrt(s*x)),t.vx+=v*d.value*r/x,t.vy+=b*d.value*r/x),!0;if(d.length||x>=a)return;(d.data!==t||d.next)&&(v===0&&(v=pr(n),x+=v*v),b===0&&(b=pr(n),x+=b*b),x<s&&(x=Math.sqrt(s*x)));do d.data!==t&&(_=o[d.data.index]*r/x,t.vx+=v*_,t.vy+=b*_);while(d=d.next)}return c.initialize=function(d,p){e=d,n=p,u()},c.strength=function(d){return arguments.length?(i=typeof d=="function"?d:Vr(+d),u(),c):i},c.distanceMin=function(d){return arguments.length?(s=d*d,c):Math.sqrt(s)},c.distanceMax=function(d){return arguments.length?(a=d*d,c):Math.sqrt(a)},c.theta=function(d){return arguments.length?(l=d*d,c):Math.sqrt(l)},c}function XX(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function rl(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ei(e){return e=rl(Math.abs(e)),e?e[1]:NaN}function UX(e,t){return function(n,r){for(var i=n.length,o=[],s=0,a=e[0],l=0;i>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),o.push(n.substring(i-=a,i+a)),!((l+=a+1)>r));)a=e[s=(s+1)%e.length];return o.reverse().join(t)}}function KX(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var ZX=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function il(e){if(!(t=ZX.exec(e)))throw new Error("invalid format: "+e);var t;return new tf({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}il.prototype=tf.prototype;function tf(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}tf.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function QX(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var ol;function JX(e,t){var n=rl(e,t);if(!n)return ol=void 0,e.toPrecision(t);var r=n[0],i=n[1],o=i-(ol=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+rl(e,Math.max(0,t+o-1))[0]}function Qx(e,t){var n=rl(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Jx={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:XX,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Qx(e*100,t),r:Qx,s:JX,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function e4(e){return e}var t4=Array.prototype.map,n4=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function eU(e){var t=e.grouping===void 0||e.thousands===void 0?e4:UX(t4.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?e4:KX(t4.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",a=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(h,f){h=il(h);var d=h.fill,p=h.align,g=h.sign,m=h.symbol,v=h.zero,b=h.width,_=h.comma,x=h.precision,w=h.trim,C=h.type;C==="n"?(_=!0,C="g"):Jx[C]||(x===void 0&&(x=12),w=!0,C="g"),(v||d==="0"&&p==="=")&&(v=!0,d="0",p="=");var P=(f&&f.prefix!==void 0?f.prefix:"")+(m==="$"?n:m==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():""),O=(m==="$"?r:/[%p]/.test(C)?s:"")+(f&&f.suffix!==void 0?f.suffix:""),$=Jx[C],S=/[defgprs%]/.test(C);x=x===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function M(I){var E=P,A=O,T,N,H;if(C==="c")A=$(I)+A,I="";else{I=+I;var D=I<0||1/I<0;if(I=isNaN(I)?l:$(Math.abs(I),x),w&&(I=QX(I)),D&&+I==0&&g!=="+"&&(D=!1),E=(D?g==="("?g:a:g==="-"||g==="("?"":g)+E,A=(C==="s"&&!isNaN(I)&&ol!==void 0?n4[8+ol/3]:"")+A+(D&&g==="("?")":""),S){for(T=-1,N=I.length;++T<N;)if(H=I.charCodeAt(T),48>H||H>57){A=(H===46?i+I.slice(T+1):I.slice(T))+A,I=I.slice(0,T);break}}}_&&!v&&(I=t(I,1/0));var B=E.length+I.length+A.length,F=B<b?new Array(b-B+1).join(d):"";switch(_&&v&&(I=t(F+I,F.length?b-A.length:1/0),F=""),p){case"<":I=E+I+A+F;break;case"=":I=E+F+I+A;break;case"^":I=F.slice(0,B=F.length>>1)+E+I+A+F.slice(B);break;default:I=F+E+I+A;break}return o(I)}return M.toString=function(){return h+""},M}function u(h,f){var d=Math.max(-8,Math.min(8,Math.floor(Ei(f)/3)))*3,p=Math.pow(10,-d),g=c((h=il(h),h.type="f",h),{suffix:n4[8+d/3]});return function(m){return g(p*m)}}return{format:c,formatPrefix:u}}var sl,r4,i4;tU({thousands:",",grouping:[3],currency:["$",""]});function tU(e){return sl=eU(e),r4=sl.format,i4=sl.formatPrefix,sl}function nU(e){return Math.max(0,-Ei(Math.abs(e)))}function rU(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ei(t)/3)))*3-Ei(Math.abs(e)))}function iU(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ei(t)-Ei(e))+1}function oU(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function sU(){return this.eachAfter(oU)}function aU(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this}function lU(e,t){for(var n=this,r=[n],i,o,s=-1;n=r.pop();)if(e.call(t,n,++s,this),i=n.children)for(o=i.length-1;o>=0;--o)r.push(i[o]);return this}function cU(e,t){for(var n=this,r=[n],i=[],o,s,a,l=-1;n=r.pop();)if(i.push(n),o=n.children)for(s=0,a=o.length;s<a;++s)r.push(o[s]);for(;n=i.pop();)e.call(t,n,++l,this);return this}function uU(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r}function hU(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function fU(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function dU(e){for(var t=this,n=pU(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function pU(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function gU(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function mU(){return Array.from(this)}function yU(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function vU(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*bU(){var e=this,t,n=[e],r,i,o;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,o=r.length;i<o;++i)n.push(r[i]);while(n.length)}function nf(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=xU)):t===void 0&&(t=wU);for(var n=new Fo(e),r,i=[n],o,s,a,l;r=i.pop();)if((s=t(r.data))&&(l=(s=Array.from(s)).length))for(r.children=s,a=l-1;a>=0;--a)i.push(o=s[a]=new Fo(s[a])),o.parent=r,o.depth=r.depth+1;return n.eachBefore(PU)}function _U(){return nf(this).eachBefore(CU)}function wU(e){return e.children}function xU(e){return Array.isArray(e)?e[1]:null}function CU(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function PU(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Fo(e){this.data=e,this.depth=this.height=0,this.parent=null}Fo.prototype=nf.prototype={constructor:Fo,count:sU,each:aU,eachAfter:cU,eachBefore:lU,find:uU,sum:hU,sort:fU,path:dU,ancestors:gU,descendants:mU,leaves:yU,links:vU,copy:_U,[Symbol.iterator]:bU};function OU(e,t){return e.parent===t.parent?1:2}function rf(e){var t=e.children;return t?t[0]:e.t}function of(e){var t=e.children;return t?t[t.length-1]:e.t}function SU(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function $U(e){for(var t=0,n=0,r=e.children,i=r.length,o;--i>=0;)o=r[i],o.z+=t,o.m+=t,t+=o.s+(n+=o.c)}function EU(e,t,n){return e.a.parent===t.parent?e.a:n}function al(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}al.prototype=Object.create(Fo.prototype);function MU(e){for(var t=new al(e,0),n,r=[t],i,o,s,a;n=r.pop();)if(o=n._.children)for(n.children=new Array(a=o.length),s=a-1;s>=0;--s)r.push(i=n.children[s]=new al(o[s],s)),i.parent=n;return(t.parent=new al(null,0)).children=[t],t}function IU(){var e=OU,t=1,n=1,r=null;function i(c){var u=MU(c);if(u.eachAfter(o),u.parent.m=-u.z,u.eachBefore(s),r)c.eachBefore(l);else{var h=c,f=c,d=c;c.eachBefore(function(b){b.x<h.x&&(h=b),b.x>f.x&&(f=b),b.depth>d.depth&&(d=b)});var p=h===f?1:e(h,f)/2,g=p-h.x,m=t/(f.x+p+g),v=n/(d.depth||1);c.eachBefore(function(b){b.x=(b.x+g)*m,b.y=b.depth*v})}return c}function o(c){var u=c.children,h=c.parent.children,f=c.i?h[c.i-1]:null;if(u){$U(c);var d=(u[0].z+u[u.length-1].z)/2;f?(c.z=f.z+e(c._,f._),c.m=c.z-d):c.z=d}else f&&(c.z=f.z+e(c._,f._));c.parent.A=a(c,f,c.parent.A||h[0])}function s(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function a(c,u,h){if(u){for(var f=c,d=c,p=u,g=f.parent.children[0],m=f.m,v=d.m,b=p.m,_=g.m,x;p=of(p),f=rf(f),p&&f;)g=rf(g),d=of(d),d.a=c,x=p.z+b-f.z-m+e(p._,f._),x>0&&(SU(EU(p,c,h),c,x),m+=x,v+=x),b+=p.m,m+=f.m,_+=g.m,v+=d.m;p&&!of(d)&&(d.t=p,d.m+=b-v),f&&!rf(g)&&(g.t=f,g.m+=m-_,h=c)}return h}function l(c){c.x*=t,c.y=c.depth*n}return i.separation=function(c){return arguments.length?(e=c,i):e},i.size=function(c){return arguments.length?(r=!1,t=+c[0],n=+c[1],i):r?null:[t,n]},i.nodeSize=function(c){return arguments.length?(r=!0,t=+c[0],n=+c[1],i):r?[t,n]:null},i}function AU(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function TU(e){return function(){return e}}function RU(e){return+e}var o4=[0,1];function Mi(e){return e}function sf(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:TU(isNaN(t)?NaN:.5)}function kU(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function LU(e,t,n){var r=e[0],i=e[1],o=t[0],s=t[1];return i<r?(r=sf(i,r),o=n(s,o)):(r=sf(r,i),o=n(o,s)),function(a){return o(r(a))}}function NU(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=sf(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(a){var l=jW(e,a,1,r)-1;return o[l](i[l](a))}}function zU(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function DU(){var e=o4,t=o4,n=Fh,r,i,o,s=Mi,a,l,c;function u(){var f=Math.min(e.length,t.length);return s!==Mi&&(s=kU(e[0],e[f-1])),a=f>2?NU:LU,l=c=null,h}function h(f){return f==null||isNaN(f=+f)?o:(l||(l=a(e.map(r),t,n)))(r(s(f)))}return h.invert=function(f){return s(i((c||(c=a(t,e.map(r),vn)))(f)))},h.domain=function(f){return arguments.length?(e=Array.from(f,RU),u()):e.slice()},h.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},h.rangeRound=function(f){return t=Array.from(f),n=ZG,u()},h.clamp=function(f){return arguments.length?(s=f?!0:Mi,u()):s!==Mi},h.interpolate=function(f){return arguments.length?(n=f,u()):n},h.unknown=function(f){return arguments.length?(o=f,h):o},function(f,d){return r=f,i=d,u()}}function qU(){return DU()(Mi,Mi)}function HU(e,t,n,r){var i=GW(e,t,n),o;switch(r=il(r==null?",f":r),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=rU(i,s))&&(r.precision=o),i4(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=iU(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=nU(i))&&(r.precision=o-(r.type==="%")*2);break}}return r4(r)}function jU(e){var t=e.domain;return e.ticks=function(n){var r=t();return VW(r[0],r[r.length-1],n==null?10:n)},e.tickFormat=function(n,r){var i=t();return HU(i[0],i[i.length-1],n==null?10:n,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,s=r[i],a=r[o],l,c,u=10;for(a<s&&(c=s,s=a,a=c,c=i,i=o,o=c);u-- >0;){if(c=Ah(s,a,n),c===l)return r[i]=s,r[o]=a,t(r);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else if(c<0)s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c;else break;l=c}return e},e}function Bo(){var e=qU();return e.copy=function(){return zU(e,Bo())},AU.apply(e,arguments),jU(e)}function Mt(e){return function(){return e}}const s4=Math.abs,Vt=Math.atan2,Gr=Math.cos,FU=Math.max,af=Math.min,kn=Math.sin,Ii=Math.sqrt,rn=1e-12,Wo=Math.PI,ll=Wo/2,cl=2*Wo;function BU(e){return e>1?0:e<-1?Wo:Math.acos(e)}function a4(e){return e>=1?ll:e<=-1?-ll:Math.asin(e)}function l4(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new mX(t)}function WU(e){return e.innerRadius}function VU(e){return e.outerRadius}function GU(e){return e.startAngle}function YU(e){return e.endAngle}function XU(e){return e&&e.padAngle}function UU(e,t,n,r,i,o,s,a){var l=n-e,c=r-t,u=s-i,h=a-o,f=h*l-u*c;if(!(f*f<rn))return f=(u*(t-o)-h*(e-i))/f,[e+f*l,t+f*c]}function ul(e,t,n,r,i,o,s){var a=e-n,l=t-r,c=(s?o:-o)/Ii(a*a+l*l),u=c*l,h=-c*a,f=e+u,d=t+h,p=n+u,g=r+h,m=(f+p)/2,v=(d+g)/2,b=p-f,_=g-d,x=b*b+_*_,w=i-o,C=f*g-p*d,P=(_<0?-1:1)*Ii(FU(0,w*w*x-C*C)),O=(C*_-b*P)/x,$=(-C*b-_*P)/x,S=(C*_+b*P)/x,M=(-C*b+_*P)/x,I=O-m,E=$-v,A=S-m,T=M-v;return I*I+E*E>A*A+T*T&&(O=S,$=M),{cx:O,cy:$,x01:-u,y01:-h,x11:O*(i/w-1),y11:$*(i/w-1)}}function Vo(){var e=WU,t=VU,n=Mt(0),r=null,i=GU,o=YU,s=XU,a=null,l=l4(c);function c(){var u,h,f=+e.apply(this,arguments),d=+t.apply(this,arguments),p=i.apply(this,arguments)-ll,g=o.apply(this,arguments)-ll,m=s4(g-p),v=g>p;if(a||(a=u=l()),d<f&&(h=d,d=f,f=h),!(d>rn))a.moveTo(0,0);else if(m>cl-rn)a.moveTo(d*Gr(p),d*kn(p)),a.arc(0,0,d,p,g,!v),f>rn&&(a.moveTo(f*Gr(g),f*kn(g)),a.arc(0,0,f,g,p,v));else{var b=p,_=g,x=p,w=g,C=m,P=m,O=s.apply(this,arguments)/2,$=O>rn&&(r?+r.apply(this,arguments):Ii(f*f+d*d)),S=af(s4(d-f)/2,+n.apply(this,arguments)),M=S,I=S,E,A;if($>rn){var T=a4($/f*kn(O)),N=a4($/d*kn(O));(C-=T*2)>rn?(T*=v?1:-1,x+=T,w-=T):(C=0,x=w=(p+g)/2),(P-=N*2)>rn?(N*=v?1:-1,b+=N,_-=N):(P=0,b=_=(p+g)/2)}var H=d*Gr(b),D=d*kn(b),B=f*Gr(w),F=f*kn(w);if(S>rn){var X=d*Gr(_),G=d*kn(_),L=f*Gr(x),R=f*kn(x),z;if(m<Wo)if(z=UU(H,D,L,R,X,G,B,F)){var q=H-z[0],j=D-z[1],V=X-z[0],U=G-z[1],K=1/kn(BU((q*V+j*U)/(Ii(q*q+j*j)*Ii(V*V+U*U)))/2),J=Ii(z[0]*z[0]+z[1]*z[1]);M=af(S,(f-J)/(K-1)),I=af(S,(d-J)/(K+1))}else M=I=0}P>rn?I>rn?(E=ul(L,R,H,D,d,I,v),A=ul(X,G,B,F,d,I,v),a.moveTo(E.cx+E.x01,E.cy+E.y01),I<S?a.arc(E.cx,E.cy,I,Vt(E.y01,E.x01),Vt(A.y01,A.x01),!v):(a.arc(E.cx,E.cy,I,Vt(E.y01,E.x01),Vt(E.y11,E.x11),!v),a.arc(0,0,d,Vt(E.cy+E.y11,E.cx+E.x11),Vt(A.cy+A.y11,A.cx+A.x11),!v),a.arc(A.cx,A.cy,I,Vt(A.y11,A.x11),Vt(A.y01,A.x01),!v))):(a.moveTo(H,D),a.arc(0,0,d,b,_,!v)):a.moveTo(H,D),!(f>rn)||!(C>rn)?a.lineTo(B,F):M>rn?(E=ul(B,F,X,G,f,-M,v),A=ul(H,D,L,R,f,-M,v),a.lineTo(E.cx+E.x01,E.cy+E.y01),M<S?a.arc(E.cx,E.cy,M,Vt(E.y01,E.x01),Vt(A.y01,A.x01),!v):(a.arc(E.cx,E.cy,M,Vt(E.y01,E.x01),Vt(E.y11,E.x11),!v),a.arc(0,0,f,Vt(E.cy+E.y11,E.cx+E.x11),Vt(A.cy+A.y11,A.cx+A.x11),v),a.arc(A.cx,A.cy,M,Vt(A.y11,A.x11),Vt(A.y01,A.x01),!v))):a.arc(0,0,f,w,x,v)}if(a.closePath(),u)return a=null,u+""||null}return c.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,h=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Wo/2;return[Gr(h)*u,kn(h)*u]},c.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:Mt(+u),c):e},c.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:Mt(+u),c):t},c.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:Mt(+u),c):n},c.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:Mt(+u),c):r},c.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:Mt(+u),c):i},c.endAngle=function(u){return arguments.length?(o=typeof u=="function"?u:Mt(+u),c):o},c.padAngle=function(u){return arguments.length?(s=typeof u=="function"?u:Mt(+u),c):s},c.context=function(u){return arguments.length?(a=u==null?null:u,c):a},c}function c4(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function u4(e){this._context=e}u4.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function h4(e){return new u4(e)}function KU(e){return e[0]}function ZU(e){return e[1]}function QU(e,t){var n=Mt(!0),r=null,i=h4,o=null,s=l4(a);e=typeof e=="function"?e:e===void 0?KU:Mt(e),t=typeof t=="function"?t:t===void 0?ZU:Mt(t);function a(l){var c,u=(l=c4(l)).length,h,f=!1,d;for(r==null&&(o=i(d=s())),c=0;c<=u;++c)!(c<u&&n(h=l[c],c,l))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(h,c,l),+t(h,c,l));if(d)return o=null,d+""||null}return a.x=function(l){return arguments.length?(e=typeof l=="function"?l:Mt(+l),a):e},a.y=function(l){return arguments.length?(t=typeof l=="function"?l:Mt(+l),a):t},a.defined=function(l){return arguments.length?(n=typeof l=="function"?l:Mt(!!l),a):n},a.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),a):i},a.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),a):r},a}function JU(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function eK(e){return e}function tK(){var e=eK,t=JU,n=null,r=Mt(0),i=Mt(cl),o=Mt(0);function s(a){var l,c=(a=c4(a)).length,u,h,f=0,d=new Array(c),p=new Array(c),g=+r.apply(this,arguments),m=Math.min(cl,Math.max(-cl,i.apply(this,arguments)-g)),v,b=Math.min(Math.abs(m)/c,o.apply(this,arguments)),_=b*(m<0?-1:1),x;for(l=0;l<c;++l)(x=p[d[l]=l]=+e(a[l],l,a))>0&&(f+=x);for(t!=null?d.sort(function(w,C){return t(p[w],p[C])}):n!=null&&d.sort(function(w,C){return n(a[w],a[C])}),l=0,h=f?(m-c*_)/f:0;l<c;++l,g=v)u=d[l],x=p[u],v=g+(x>0?x*h:0)+_,p[u]={data:a[u],index:l,value:x,startAngle:g,endAngle:v,padAngle:b};return p}return s.value=function(a){return arguments.length?(e=typeof a=="function"?a:Mt(+a),s):e},s.sortValues=function(a){return arguments.length?(t=a,n=null,s):t},s.sort=function(a){return arguments.length?(n=a,t=null,s):n},s.startAngle=function(a){return arguments.length?(r=typeof a=="function"?a:Mt(+a),s):r},s.endAngle=function(a){return arguments.length?(i=typeof a=="function"?a:Mt(+a),s):i},s.padAngle=function(a){return arguments.length?(o=typeof a=="function"?a:Mt(+a),s):o},s}function Go(e,t,n){this.k=e,this.x=t,this.y=n}Go.prototype={constructor:Go,scale:function(e){return e===1?this:new Go(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Go(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},Go.prototype;var nK=Object.defineProperty,rK=Object.defineProperties,iK=Object.getOwnPropertyDescriptors,f4=Object.getOwnPropertySymbols,oK=Object.prototype.hasOwnProperty,sK=Object.prototype.propertyIsEnumerable,d4=(e,t,n)=>t in e?nK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,aK=(e,t)=>{for(var n in t||(t={}))oK.call(t,n)&&d4(e,n,t[n]);if(f4)for(var n of f4(t))sK.call(t,n)&&d4(e,n,t[n]);return e},lK=(e,t)=>rK(e,iK(t));const p4=e=>{const[{datum:t,data:n,indexes:r,width:i=280,height:o=120,iconSize:s=32,gap:a=12,progressHeight:l=8,borderRadius:c=12,positionH:u="normal",themeColors:h,valueFormatter:f=T=>`${T}%`},d]=lt(e,["width","height","iconSize","gap","progressHeight","borderRadius"]),p=t.value,g=p!=null?p:0,m=Math.max(...n.items.map(T=>{var N;return(N=T.value)!=null?N:0}),100),v=i-2*a,_=Bo().domain([0,m]).range([0,v])(g),x=`${h.colorPrimary}-progress`,w=`${h.colorPrimaryBg}-progress-bg`,C=ae(y(Ve,{indexes:r})),P=a,O=u==="flipped"?i-a-s:a,$=P,S=u==="flipped"?a:s+2*a,M=i-s-3*a,I=$,E=o-a-l,A=p!==void 0;return k(Y,lK(aK({},d),{children:[k(Ke,{children:[k("linearGradient",{id:x,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[y("stop",{offset:"0%",stopColor:h.colorPrimary}),y("stop",{offset:"100%",stopColor:be.mix(h.colorPrimary,"#fff",20).toHexString()})]}),k("linearGradient",{id:w,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[y("stop",{offset:"0%",stopColor:h.colorPrimaryBg}),y("stop",{offset:"100%",stopColor:h.colorBg})]})]}),y(Le,{x:0,y:0,width:i,height:o,fill:h.colorBgElevated,stroke:h.colorPrimaryBg,strokeWidth:1,rx:c,ry:c,"data-element-type":"shape"}),y(Ft,{indexes:r,x:O,y:$,size:s,fill:h.colorPrimary}),y(Ve,{indexes:r,x:S,y:I,width:M,alignHorizontal:u==="flipped"?"right":"left",alignVertical:"top",fontSize:16,fontWeight:"medium",fill:h.colorText,children:t.label}),A&&y(Mo,{indexes:r,x:S,y:I+C.height,width:M,alignHorizontal:u==="flipped"?"right":"left",alignVertical:"top",lineHeight:1,fontSize:24,fontWeight:"bold",fill:h.colorPrimary,value:g,formatter:f}),y(ft,{indexes:r,x:S,y:I+C.height+(A?27:4),width:M,alignHorizontal:u==="flipped"?"right":"left",alignVertical:"top",fontSize:11,fill:h.colorTextSecondary,lineNumber:A?2:3,wordWrap:!0,children:t.desc}),y(Le,{x:a,y:E,width:v,height:l,fill:`url(#${w})`,rx:l/2,ry:l/2,"data-element-type":"shape"}),y(Le,{x:a,y:E,width:_,height:l,fill:`url(#${x})`,rx:l/2,ry:l/2,"data-element-type":"shape"})]}))};ct("progress-card",{component:p4,composites:["icon","label","value","desc"]});var cK=Object.defineProperty,uK=Object.defineProperties,hK=Object.getOwnPropertyDescriptors,g4=Object.getOwnPropertySymbols,fK=Object.prototype.hasOwnProperty,dK=Object.prototype.propertyIsEnumerable,m4=(e,t,n)=>t in e?cK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pK=(e,t)=>{for(var n in t||(t={}))fK.call(t,n)&&m4(e,n,t[n]);if(g4)for(var n of g4(t))dK.call(t,n)&&m4(e,n,t[n]);return e},gK=(e,t)=>uK(e,hK(t));const y4=e=>{const[{datum:t,indexes:n,width:r=280,height:i=120,iconSize:o=30,circleRadius:s=80,positionH:a="normal",positionV:l="normal",themeColors:c},u]=lt(e,["width","height","iconSize","circleRadius"]),h=4*s/(3*Math.PI),f=2,d=4,p=28,g=20,m=g+20,v=g,b=8,_=35,x=40,w=30,C=String(n[0]+1).padStart(2,"0"),P=a==="flipped",O=l==="flipped",$=()=>P?{diagonalStartX:r-d,diagonalStartY:O?i-_:_,diagonalEndX:r-x,diagonalEndY:O?i-d:d,topLineStartX:r-x,topLineEndX:h,topLineY:O?i-d:d}:{diagonalStartX:d,diagonalStartY:O?i-_:_,diagonalEndX:x,diagonalEndY:O?i-d:d,topLineStartX:x,topLineEndX:r-h,topLineY:O?i-d:d},S=()=>{if(P){const H=s+10,D=r-H-x;return{valueX:r-w,contentX:H,contentWidth:D,circleX:0,circleY:O?0:i,iconX:h-o/2}}else return{valueX:0,contentX:x,contentWidth:r-x-s-10,circleX:r,circleY:O?0:i,iconX:r-h-o/2}},M=$(),I=S(),E=O?h-o/2:i-h-o/2,A=ae(y(Ve,{indexes:n,width:I.contentWidth,children:t.label})),T=v+A.height+b,N=()=>{const{circleX:H,circleY:D}=I;return P?O?`M ${H} ${D} L ${H} ${D+s} A ${s} ${s} 0 0 0 ${H+s} ${D} Z`:`M ${H} ${D} L ${H} ${D-s} A ${s} ${s} 0 0 1 ${H+s} ${D} Z`:O?`M ${H} ${D} L ${H} ${D+s} A ${s} ${s} 0 0 1 ${H-s} ${D} Z`:`M ${H} ${D} L ${H} ${D-s} A ${s} ${s} 0 0 0 ${H-s} ${D} Z`};return k(Y,gK(pK({},u),{width:r,height:i,children:[k(Pt,{children:[y(Pe,{d:`M ${M.diagonalStartX} ${M.diagonalStartY} L ${M.diagonalEndX} ${M.diagonalEndY}`,stroke:c.colorPrimary,strokeWidth:f,fill:"none"}),y(Pe,{d:`M ${M.topLineStartX} ${M.topLineY} L ${M.topLineEndX} ${M.topLineY}`,stroke:c.colorPrimary,strokeWidth:f,fill:"none"}),y(Ze,{x:M.diagonalStartX-d,y:M.diagonalStartY-d,width:d*2,height:d*2,fill:c.colorPrimary}),y(Ze,{x:M.topLineEndX-d,y:M.topLineY-d,width:d*2,height:d*2,fill:c.colorPrimary})]}),k(Y,{children:[y(De,{x:I.valueX,y:m,fontSize:p,fontWeight:"bold",fill:c.colorPrimary,children:C}),y(Pe,{d:N(),fill:c.colorPrimary,"data-element-type":"shape"}),t.icon&&y(Ft,{indexes:n,x:I.iconX,y:E,size:o,fill:c.colorWhite}),t.label&&y(Ve,{indexes:n,x:I.contentX,y:v,width:I.contentWidth,fontWeight:"bold",fill:c.colorText,alignHorizontal:P?"right":"left",children:t.label}),t.desc&&y(ft,{indexes:n,x:I.contentX,y:T,width:I.contentWidth,fill:c.colorTextSecondary,alignHorizontal:P?"right":"left",children:t.desc})]})]}))};ct("quarter-circular",{component:y4,composites:["icon","label","desc"]});var mK=Object.defineProperty,yK=Object.defineProperties,vK=Object.getOwnPropertyDescriptors,v4=Object.getOwnPropertySymbols,bK=Object.prototype.hasOwnProperty,_K=Object.prototype.propertyIsEnumerable,b4=(e,t,n)=>t in e?mK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wK=(e,t)=>{for(var n in t||(t={}))bK.call(t,n)&&b4(e,n,t[n]);if(v4)for(var n of v4(t))_K.call(t,n)&&b4(e,n,t[n]);return e},xK=(e,t)=>yK(e,vK(t));const _4=e=>{const[{datum:t,indexes:n,width:r=150,height:i=150,iconSize:o=30,padding:s=20,borderRadius:a=16,positionH:l="center",positionV:c="middle",themeColors:u},h]=lt(e,["width","height","iconSize","padding","borderRadius"]),f=r-s*2,d=s,p=s,g=l==="flipped"?r-s-o:l==="center"?(r-o)/2:d,m=p,v=m+o+8,b=ae(y(Ve,{indexes:n,width:f,children:t.label})),_=l==="flipped"?r-s-f:l==="center"?s:d,x=v+b.height+4,w=_,C=a;let P="";return l==="center"&&c==="middle"?P=`
30
+ `)}function Zw(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t=(t<<5)-t+r,t=t&t}return Math.abs(t).toString()}var wj=Object.defineProperty,_j=Object.defineProperties,xj=Object.getOwnPropertyDescriptors,Qw=Object.getOwnPropertySymbols,Cj=Object.prototype.hasOwnProperty,Pj=Object.prototype.propertyIsEnumerable,Jw=(e,t,n)=>t in e?wj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sj=(e,t)=>{for(var n in t||(t={}))Cj.call(t,n)&&Jw(e,n,t[n]);if(Qw)for(var n of Qw(t))Pj.call(t,n)&&Jw(e,n,t[n]);return e},Oj=(e,t)=>_j(e,xj(t));const $j=new WeakMap;function Ej(e,t={}){const n=Ie("use",Oj(Sj({},t),{href:Qb(e)}));return e_(n),$j.set(n,e),n}function e_(e){const{stroke:t,fill:n}=cn(e,["fill","stroke"]);e.style.color=n||t||"currentColor"}function Oa(e){return e.tagName==="use"?e:e.querySelector("use")}function Ch(e){const t=Oa(e);return t?cn(t,["width","height","x","y","width","height","fill","fill-opacity","stroke","opacity"]):{}}function Mj(e,t,n){const r=Oa(e);r&&(n&&ct(r,n),e_(r))}const Ph=!!(typeof process!="undefined"&&process.versions&&process.versions.node),Aj=",",Ij=(e,t=Aj)=>e.split(t).map(n=>parseInt(n,10)),t_=e=>Ij(e);function Sh(...e){return e.map(t=>t.replace(/^\/+|\/+$/g,"")).filter(t=>t.trim().length>0).join("/")}function er(e){const t=e.getAttribute("viewBox");if(t){const[s,a,l,c]=t.split(" ").map(Number);return{x:s,y:a,width:l,height:c}}const n=e.getAttribute("width"),r=e.getAttribute("height"),i=Number(n)||0,o=Number(r)||0;return{x:0,y:0,width:i,height:o}}function Tj(e,t,n){const r=e.width*t,i=e.height*t,o=n.x-(n.x-e.x)*t,s=n.y-(n.y-e.y)*t;return{x:o,y:s,width:r,height:i}}function Dr(e){return`${e.x} ${e.y} ${e.width} ${e.height}`}function qr(e){return e?typeof e=="number"?[e,e,e,e]:e.length===1?[e[0],e[0],e[0],e[0]]:e.length===2?[e[0],e[1],e[0],e[1]]:e.length===3?[e[0],e[1],e[2],e[1]]:e.length===4?[e[0],e[1],e[2],e[3]]:[0,0,0,0]:[0,0,0,0]}function n_(e,t){if(Ph)r_(e,t);else if(document.contains(e))o_(e,t);else try{const n=new MutationObserver(r=>{r.forEach(i=>{i.addedNodes.forEach(o=>{(o===e||o.contains(e))&&(Rj(e,()=>{o_(e,t)}),n.disconnect())})})});n.observe(document,{childList:!0,subtree:!0})}catch(n){r_(e,t)}}function r_(e,t){const n=er(e),[r,i,o,s]=t;ct(e,{viewBox:`${n.x-s} ${n.y-r} ${n.width+s+i} ${n.height+r+o}`})}function i_(e,t){const n=e.getBBox(),r=e.getBoundingClientRect(),i=r.width>0?n.width/r.width:1,o=r.height>0?n.height/r.height:1,[s,a,l,c]=t,u=s*o,h=a*i,f=l*o,d=c*i,p=n.x-d,g=n.y-u,m=n.width+d+h,v=n.height+u+f;return`${p} ${g} ${m} ${v}`}function o_(e,t){const n=i_(e,t);ct(e,{viewBox:n})}function Rj(e,t){requestAnimationFrame(()=>{const n=()=>{const r=e.getBoundingClientRect();r.width>0&&r.height>0?t():requestAnimationFrame(n)};n()})}function vn(e,t){if(document.getElementById(e))return;const n=document.createElement("style");n.id=e,n.textContent=t,document.head.appendChild(n)}function kj(){return crypto&&crypto.randomUUID?crypto.randomUUID():"xxxx-xxxx-4xxx-yxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}var Lj=Object.defineProperty,Nj=Object.defineProperties,zj=Object.getOwnPropertyDescriptors,$a=Object.getOwnPropertySymbols,s_=Object.prototype.hasOwnProperty,a_=Object.prototype.propertyIsEnumerable,l_=(e,t,n)=>t in e?Lj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ut=(e,t)=>{for(var n in t||(t={}))s_.call(t,n)&&l_(e,n,t[n]);if($a)for(var n of $a(t))a_.call(t,n)&&l_(e,n,t[n]);return e},Oh=(e,t)=>Nj(e,zj(t)),Dj=(e,t)=>{var n={};for(var r in e)s_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&$a)for(var r of $a(e))t.indexOf(r)<0&&a_.call(e,r)&&(n[r]=e[r]);return n};function De(e){const t=e,{id:n,x:r=0,y:i=0,width:o,height:s,alignHorizontal:a="left",alignVertical:l="top",children:c,fontSize:u=14,fontFamily:h,fontStyle:f,fontWeight:d,textDecoration:p,letterSpacing:g,wordSpacing:m,opacity:v,fill:b="black",lineHeight:w,wordWrap:x,backgroundColor:_="none",backgroundOpacity:C=1,backgroundRadius:P=0}=t,S=Dj(t,["id","x","y","width","height","alignHorizontal","alignVertical","children","fontSize","fontFamily","fontStyle","fontWeight","textDecoration","letterSpacing","wordSpacing","opacity","fill","lineHeight","wordWrap","backgroundColor","backgroundOpacity","backgroundRadius"]);let $=o,O=s,M=0,A=0;if(!$||!O){const F=Fw(c,e);$||($=F.width),O||(O=F.height)}o&&(M=a==="center"?$/2:a==="right"?$:0),s&&(A=l==="middle"?O/2:l==="bottom"?O:0);const E=Object.entries(Ut(Ut({width:$,height:O},w!==void 0&&{"line-height":w}),x!==void 0&&{"data-word-wrap":x})).reduce((F,[X,G])=>Oh(Ut({},F),{[X]:G}),{}),N=Ut(Ut(Ut(Ut(Ut(Ut(Ut(Ut(Ut({"data-element-type":"text",width:$,height:O,x:M,y:A,"data-x":0,"data-y":0,fill:b,fontSize:u,textAnchor:a==="center"?"middle":a==="right"?"end":"start",dominantBaseline:l==="middle"?"central":l==="bottom"?"baseline":"hanging","data-horizontal-align":a.toUpperCase(),"data-vertical-align":l.toUpperCase(),children:c},E),S),h&&{fontFamily:h}),f&&{fontStyle:f}),d&&{fontWeight:d}),p&&p!=="none"&&{textDecoration:p}),g&&{letterSpacing:g}),m&&{wordSpacing:m}),v!==void 0&&v!==1&&{opacity:v}),H=Ut(Oh(Ut({},r!==0||i!==0?{x:r,y:i,transform:`translate(${r}, ${i})`}:{}),{width:$,height:O}),n&&{id:n}),W=_&&_!=="none"?{"data-element-type":"shape",x:0,y:0,width:$,height:O,fill:_,fillOpacity:C,rx:P,ry:P}:void 0;return{type:"g",props:Oh(Ut({},H),{children:[...W?[{type:"rect",props:W}]:[],{type:"text",props:N}]})}}const $o=Symbol.for("@antv/infographic/Fragment");function Ea(e,t={}){return{type:e,props:t}}function qj(e={}){return Ea($o,e)}const Hj=Ea,jj=Ea;function Fj(e){return!e||typeof e!="object"||Array.isArray(e)?!1:e.type===$o}function c_(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&"type"in e}function Eo(e){return Mo(e).filter(c_)}function Mo(e,t=[]){var n;if(!e||typeof e=="boolean")return t;if(Array.isArray(e))e.forEach(r=>Mo(r,t));else if(Fj(e)){const r=(n=e.props)==null?void 0:n.children;(Array.isArray(r)?r:[r]).filter(Boolean).forEach(i=>{Mo(i,t)})}else t.push(e);return t}function st(e){return typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e)}const Ma=()=>({x:0,y:0,width:0,height:0});function Oi(e){if(!e||e.length===0)return Ma();let t=1/0,n=1/0,r=-1/0,i=-1/0;for(const o of e){const{x:s,y:a,width:l,height:c}=o,u=s+l,h=a+c;s<t&&(t=s),a<n&&(n=a),u>r&&(r=u),h>i&&(i=h)}return t===1/0||n===1/0||r===-1/0||i===-1/0?{x:0,y:0,width:0,height:0}:{x:t,y:n,width:Math.max(0,r-t),height:Math.max(0,i-n)}}function ae(e){var t,n,r,i;if(!e)return Ma();if(Array.isArray(e)){const d=Eo(e);return Hr(d)}if(typeof e!="object")return Ma();const{type:o,props:s={}}=e;if(Th(e)){const d=m_(e);return ae(d)}if(typeof o=="function"){const d=(t=s.x)!=null?t:0,p=(n=s.y)!=null?n:0,g=s.width,m=s.height;if(st(g)&&st(m))return{x:d,y:p,width:g,height:m};const v=o(s);if(!v)return{x:d,y:p,width:g!=null?g:0,height:m!=null?m:0};if(Array.isArray(v)){const b=Eo(v),w=Hr(b);if(st(g)&&st(m))return{x:d,y:p,width:g,height:m};const x=w.width!==0?w.width:g!=null?g:0,_=w.height!==0?w.height:m!=null?m:0;return{x:d+w.x,y:p+w.y,width:x,height:_}}if(c_(v)){const b=v,w=ae(b);if(Bj(b,s))return w;const x=b.props&&st(b.props.width)&&st(b.props.height),P=u_(b).flatMap(M=>Eo(M)).length>0,S=b.props&&b.props.x===s.x&&b.props.y===s.y;if(x)return{x:S?w.x:d+w.x,y:S?w.y:p+w.y,width:w.width,height:w.height};if(st(g)&&st(m))return P?{x:S?w.x:d,y:S?w.y:p,width:g,height:m}:{x:S?w.x:d+w.x,y:S?w.y:p+w.y,width:g,height:m};const $=w.width!==0?w.width:g!=null?g:0,O=w.height!==0?w.height:m!=null?m:0;return{x:S?w.x:d+w.x,y:S?w.y:p+w.y,width:$,height:O}}return{x:d,y:p,width:g!=null?g:0,height:m!=null?m:0}}const a=(r=s.x)!=null?r:0,l=(i=s.y)!=null?i:0,c=st(s.width)?s.width:void 0,u=st(s.height)?s.height:void 0;if(st(c)&&st(u))return{x:a,y:l,width:c,height:u};const f=u_(e).flatMap(d=>Eo(d));if(f.length>0){const d=Hr(f);return{x:a+d.x,y:l+d.y,width:st(c)?c:d.width,height:st(u)?u:d.height}}return{x:a,y:l,width:c!=null?c:0,height:u!=null?u:0}}function Hr(e){if(!e||!Array.isArray(e)||e.length===0)return Ma();const t=[];for(const n of e){const r=Eo(n);for(const i of r){const o=ae(i);o&&t.push(o)}}return Oi(t)}function Bj(e,t){if(!(e!=null&&e.props)||!t)return!1;const n=e.props;if(st(n.x)&&st(n.y)&&st(t.x)&&st(t.y)&&n.x===t.x&&n.y===t.y){const r=st(n.width)&&st(n.height),i=st(t.width)&&st(t.height);if(!r&&!i)return!0}return st(n.x)&&st(n.y)&&st(n.width)&&st(n.height)&&st(t.x)&&st(t.y)&&st(t.width)&&st(t.height)?n.x===t.x&&n.y===t.y&&n.width===t.width&&n.height===t.height:!1}function u_(e){var t;const n=(t=e.props)==null?void 0:t.children;return n?Array.isArray(n)?n:[n]:[]}function $h(e){var t;return e==null||typeof e=="boolean"?[]:Array.isArray(e)?Mo(e):typeof e=="object"?Mo((t=e.props)==null?void 0:t.children):[e]}var Wj=Object.defineProperty,Aa=Object.getOwnPropertySymbols,h_=Object.prototype.hasOwnProperty,f_=Object.prototype.propertyIsEnumerable,d_=(e,t,n)=>t in e?Wj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Eh=(e,t)=>{for(var n in t||(t={}))h_.call(t,n)&&d_(e,n,t[n]);if(Aa)for(var n of Aa(t))f_.call(t,n)&&d_(e,n,t[n]);return e},Vj=(e,t)=>{var n={};for(var r in e)h_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Aa)for(var r of Aa(e))t.indexOf(r)<0&&f_.call(e,r)&&(n[r]=e[r]);return n};const yr=(e,t)=>{const n=e,{type:r,props:i}=n,o=Vj(n,["type","props"]);return Eh({type:r,props:Eh(Eh({},i),t)},o)},p_=()=>({defs:new Map});function Mh(e){const t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};return String(e).replace(/[&<>"']/g,n=>t[n])}const g_={className:"class",viewBox:"viewBox",preserveAspectRatio:"preserveAspectRatio",gradientUnits:"gradientUnits",gradientTransform:"gradientTransform",patternUnits:"patternUnits",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",maskUnits:"maskUnits",maskContentUnits:"maskContentUnits",clipPathUnits:"clipPathUnits",primitiveUnits:"primitiveUnits",filterUnits:"filterUnits",markerUnits:"markerUnits",markerWidth:"markerWidth",markerHeight:"markerHeight",refX:"refX",refY:"refY",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink",xlinkHref:"href",xlinkTitle:"xlink:title",xlinkShow:"xlink:show",xlinkActuate:"xlink:actuate",textLength:"textLength",lengthAdjust:"lengthAdjust",attributeName:"attributeName",attributeType:"attributeType",repeatCount:"repeatCount",repeatDur:"repeatDur",calcMode:"calcMode",keyTimes:"keyTimes",keySplines:"keySplines",keyPoints:"keyPoints",stdDeviation:"stdDeviation",baseFrequency:"baseFrequency",numOctaves:"numOctaves",pathLength:"pathLength",systemLanguage:"systemLanguage",requiredFeatures:"requiredFeatures",requiredExtensions:"requiredExtensions"};function Gj(e){return g_[e]?g_[e]:e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}const Ah=new Map;function Ih(e){const t=Symbol("layout");return Ah.set(t,e),r=>({type:t,props:r})}function Th(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)&&typeof e.type=="symbol"&&Ah.has(e.type)}function m_(e,t=p_()){const n=Ah.get(e.type);if(!n)return console.warn("Layout function not found for symbol:",e.type),e;const r=$h(e).filter(i=>typeof i=="object");return n(r,e.props,t)}var Yj=Object.defineProperty,Xj=Object.defineProperties,Uj=Object.getOwnPropertyDescriptors,Ia=Object.getOwnPropertySymbols,y_=Object.prototype.hasOwnProperty,v_=Object.prototype.propertyIsEnumerable,b_=(e,t,n)=>t in e?Yj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kj=(e,t)=>{for(var n in t||(t={}))y_.call(t,n)&&b_(e,n,t[n]);if(Ia)for(var n of Ia(t))v_.call(t,n)&&b_(e,n,t[n]);return e},Zj=(e,t)=>Xj(e,Uj(t)),w_=(e,t)=>{var n={};for(var r in e)y_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ia)for(var r of Ia(e))t.indexOf(r)<0&&v_.call(e,r)&&(n[r]=e[r]);return n};function Ao(e,t){if(e==null||typeof e=="boolean")return null;if(typeof e=="string"||typeof e=="number")return e;if(Array.isArray(e))return e.map(r=>Ao(r,t)).filter(Boolean);if(Th(e)){const r=m_(e,t);return Ao(r,t)}if(typeof e.type=="function"){const r=e.type(e.props);return Ao(r,t)}const n=$h(e).map(r=>Ao(r,t)).filter(Boolean);return e.type===$o?n:e.type===zc?(n.forEach(r=>{typeof r=="object"&&r.props.id&&t.defs.set(r.props.id,r)}),null):n.length?yr(e,{children:n}):e}function Io(e,t){if(e==null)return"";if(typeof e=="string")return Mh(e);if(typeof e=="number")return String(e);const{type:n,props:r}=e;if(!n)return"";const i=$h(e);if(n===$o)return i.map(l=>Io(l)).filter(Boolean).join("");if(n===zc)return"";if(typeof n=="function"||Th(e))return console.warn("Unexpected unprocessed component in render:",e),"";const o=x_(r),s=i.map(l=>Io(l)).filter(Boolean).join(""),a=String(n);return s?`<${a}${o}>${s}</${a}>`:`<${a}${o} />`}function __(e,t={}){const n=p_(),r=Ao(e,n);if(!r)return"";const i=Array.isArray(r)?r.map(m=>Io(m)).join(""):Io(r),o=t,{x:s,y:a,width:l,height:c,style:u}=o,h=w_(o,["x","y","width","height","style"]),f=Zj(Kj({},h),{xmlns:"http://www.w3.org/2000/svg"});if(!f.viewBox)if(l&&c)f.viewBox=`${s!=null?s:0} ${a!=null?a:0} ${l!=null?l:0} ${c!=null?c:0}`;else{const m=ae(r);if(m){const{x:v,y:b,width:w,height:x}=m;f.viewBox=`${v} ${b} ${w} ${x}`}}const d=x_(f),p=Qj(u),g=n.defs.size?`<defs>${Array.from(n.defs.values()).map(m=>Io(m)).join("")}</defs>`:"";return`<svg${d}${p}>${g}${i}</svg>`}function x_(e){if(!e)return"";const t=e,{children:n}=t,r=w_(t,["children"]);return Object.entries(r).filter(([,i])=>i!=null).map(([i,o])=>{const s=Gj(i),a=typeof o=="string"?Mh(String(o)):String(o);return` ${s}="${a}"`}).join("")}function Qj(e){if(!e||Object.keys(e).length===0)return"";const t=Object.entries(e).map(([n,r])=>`${n.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`)}: ${r};`).join("");return` style="${Mh(t)}"`}var Jj=Object.defineProperty,Ta=Object.getOwnPropertySymbols,C_=Object.prototype.hasOwnProperty,P_=Object.prototype.propertyIsEnumerable,S_=(e,t,n)=>t in e?Jj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ra=(e,t)=>{for(var n in t||(t={}))C_.call(t,n)&&S_(e,n,t[n]);if(Ta)for(var n of Ta(t))P_.call(t,n)&&S_(e,n,t[n]);return e},O_=(e,t)=>{var n={};for(var r in e)C_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ta)for(var r of Ta(e))t.indexOf(r)<0&&P_.call(e,r)&&(n[r]=e[r]);return n};const ne=e=>{const t=e,{indexes:n}=t,r=O_(t,["indexes"]),i={fill:"#B9EBCA",fillOpacity:.3,width:20,height:20,"data-indexes":n,"data-element-type":Ge.BtnAdd};return y(Le,Ra(Ra({},i),r))},nt=e=>{const t=e,{indexes:n}=t,r=O_(t,["indexes"]),i={fill:"#F9C0C0",fillOpacity:.3,width:20,height:20,"data-indexes":n,"data-element-type":Ge.BtnRemove};return y(Le,Ra(Ra({},i),r))};var eF=Object.defineProperty,tF=Object.defineProperties,nF=Object.getOwnPropertyDescriptors,$_=Object.getOwnPropertySymbols,rF=Object.prototype.hasOwnProperty,iF=Object.prototype.propertyIsEnumerable,E_=(e,t,n)=>t in e?eF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oF=(e,t)=>{for(var n in t||(t={}))rF.call(t,n)&&E_(e,n,t[n]);if($_)for(var n of $_(t))iF.call(t,n)&&E_(e,n,t[n]);return e},sF=(e,t)=>tF(e,nF(t));const je=e=>y(Y,sF(oF({"data-element-type":Ge.BtnsGroup,width:0,height:0},e),{display:"none"})),yt=()=>y(tt,{});var aF=Object.defineProperty,ka=Object.getOwnPropertySymbols,M_=Object.prototype.hasOwnProperty,A_=Object.prototype.propertyIsEnumerable,I_=(e,t,n)=>t in e?aF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rh=(e,t)=>{for(var n in t||(t={}))M_.call(t,n)&&I_(e,n,t[n]);if(ka)for(var n of ka(t))A_.call(t,n)&&I_(e,n,t[n]);return e},lF=(e,t)=>{var n={};for(var r in e)M_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ka)for(var r of ka(e))t.indexOf(r)<0&&A_.call(e,r)&&(n[r]=e[r]);return n};const T_=e=>{var t=e,{indexes:n}=t,r=lF(t,["indexes"]);const o=Rh(Rh({},{fill:"lightgray"}),r);return n?(o["data-indexes"]=n,o["data-element-type"]=Ge.ItemIllus):o["data-element-type"]=Ge.Illus,y(Le,Rh({},o))};var cF=Object.defineProperty,uF=Object.defineProperties,hF=Object.getOwnPropertyDescriptors,La=Object.getOwnPropertySymbols,R_=Object.prototype.hasOwnProperty,k_=Object.prototype.propertyIsEnumerable,L_=(e,t,n)=>t in e?cF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N_=(e,t)=>{for(var n in t||(t={}))R_.call(t,n)&&L_(e,n,t[n]);if(La)for(var n of La(t))k_.call(t,n)&&L_(e,n,t[n]);return e},fF=(e,t)=>uF(e,hF(t)),dF=(e,t)=>{var n={};for(var r in e)R_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&La)for(var r of La(e))t.indexOf(r)<0&&k_.call(e,r)&&(n[r]=e[r]);return n};const ht=e=>{var t=e,{indexes:n,lineNumber:r=2,children:i}=t,o=dF(t,["indexes","lineNumber","children"]),s;if(!i)return null;const a=N_({fontSize:14,fill:"#666",wordWrap:!0,lineHeight:1.4,children:i},o);return(s=a.height)!=null||(a.height=Math.ceil(r*+a.lineHeight*+a.fontSize)),y(De,fF(N_({},a),{"data-indexes":n,"data-element-type":Ge.ItemDesc}))};var pF=Object.defineProperty,gF=Object.defineProperties,mF=Object.getOwnPropertyDescriptors,Na=Object.getOwnPropertySymbols,z_=Object.prototype.hasOwnProperty,D_=Object.prototype.propertyIsEnumerable,q_=(e,t,n)=>t in e?pF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,To=(e,t)=>{for(var n in t||(t={}))z_.call(t,n)&&q_(e,n,t[n]);if(Na)for(var n of Na(t))D_.call(t,n)&&q_(e,n,t[n]);return e},za=(e,t)=>gF(e,mF(t)),H_=(e,t)=>{var n={};for(var r in e)z_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Na)for(var r of Na(e))t.indexOf(r)<0&&D_.call(e,r)&&(n[r]=e[r]);return n};const Ft=e=>{const t=e,{indexes:n,size:r=32}=t,i=H_(t,["indexes","size"]),o=To({fill:"lightgray",width:r,height:r},i);return y(Le,za(To({},o),{"data-indexes":n,"data-element-type":"item-icon"}))},jr=e=>{const t=e,{indexes:n,size:r=50,fill:i,colorBg:o="white"}=t,s=H_(t,["indexes","size","fill","colorBg"]),a=r/Math.SQRT2*.9,l=(r-a)/2,c=za(To({fill:o},s),{x:l,y:l,width:a,height:a});return k(Y,za(To({},s),{width:r,height:r,"data-element-type":Ge.ItemIconGroup,children:[y(Ze,{width:r,height:r,fill:i,"data-element-type":"shape"}),y(Le,za(To({},c),{"data-indexes":n,"data-element-type":Ge.ItemIcon}))]}))};var yF=Object.defineProperty,vF=Object.defineProperties,bF=Object.getOwnPropertyDescriptors,Da=Object.getOwnPropertySymbols,j_=Object.prototype.hasOwnProperty,F_=Object.prototype.propertyIsEnumerable,B_=(e,t,n)=>t in e?yF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,W_=(e,t)=>{for(var n in t||(t={}))j_.call(t,n)&&B_(e,n,t[n]);if(Da)for(var n of Da(t))F_.call(t,n)&&B_(e,n,t[n]);return e},wF=(e,t)=>vF(e,bF(t)),_F=(e,t)=>{var n={};for(var r in e)j_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Da)for(var r of Da(e))t.indexOf(r)<0&&F_.call(e,r)&&(n[r]=e[r]);return n};const Ve=e=>{var t=e,{indexes:n,children:r}=t,i=_F(t,["indexes","children"]),o;const s=W_({fontSize:18,fontWeight:"bold",fill:"#252525",lineHeight:1.4,children:r},i);return(o=s.height)!=null||(s.height=Math.ceil(+s.lineHeight*+s.fontSize)),y(De,wF(W_({},s),{"data-indexes":n,"data-element-type":Ge.ItemLabel}))};var xF=Object.defineProperty,V_=Object.getOwnPropertySymbols,CF=Object.prototype.hasOwnProperty,PF=Object.prototype.propertyIsEnumerable,G_=(e,t,n)=>t in e?xF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,SF=(e,t)=>{for(var n in t||(t={}))CF.call(t,n)&&G_(e,n,t[n]);if(V_)for(var n of V_(t))PF.call(t,n)&&G_(e,n,t[n]);return e};const qe=e=>y(Y,SF({"data-element-type":Ge.ItemsGroup},e));var OF=Object.defineProperty,$F=Object.defineProperties,EF=Object.getOwnPropertyDescriptors,qa=Object.getOwnPropertySymbols,Y_=Object.prototype.hasOwnProperty,X_=Object.prototype.propertyIsEnumerable,U_=(e,t,n)=>t in e?OF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,K_=(e,t)=>{for(var n in t||(t={}))Y_.call(t,n)&&U_(e,n,t[n]);if(qa)for(var n of qa(t))X_.call(t,n)&&U_(e,n,t[n]);return e},MF=(e,t)=>$F(e,EF(t)),AF=(e,t)=>{var n={};for(var r in e)Y_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&qa)for(var r of qa(e))t.indexOf(r)<0&&X_.call(e,r)&&(n[r]=e[r]);return n};const Ro=e=>{var t=e,{indexes:n,value:r,formatter:i=l=>String(l)}=t,o=AF(t,["indexes","value","formatter"]),s;const a=K_({fontSize:14,fill:"#666",wordWrap:!0,lineHeight:1.4,children:i(r),"data-value":r},o);return(s=a.height)!=null||(a.height=Math.ceil(+a.lineHeight*+a.fontSize)),y(De,MF(K_({},a),{"data-indexes":n,"data-element-type":Ge.ItemValue}))};var IF=Object.defineProperty,Z_=Object.getOwnPropertySymbols,TF=Object.prototype.hasOwnProperty,RF=Object.prototype.propertyIsEnumerable,Q_=(e,t,n)=>t in e?IF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kF=(e,t)=>{for(var n in t||(t={}))TF.call(t,n)&&Q_(e,n,t[n]);if(Z_)for(var n of Z_(t))RF.call(t,n)&&Q_(e,n,t[n]);return e};const Ct=e=>y(Y,kF({"data-element-type":"shapes-group"},e));var LF=Object.defineProperty,NF=Object.defineProperties,zF=Object.getOwnPropertyDescriptors,Ha=Object.getOwnPropertySymbols,J_=Object.prototype.hasOwnProperty,e3=Object.prototype.propertyIsEnumerable,t3=(e,t,n)=>t in e?LF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ja=(e,t)=>{for(var n in t||(t={}))J_.call(t,n)&&t3(e,n,t[n]);if(Ha)for(var n of Ha(t))e3.call(t,n)&&t3(e,n,t[n]);return e},n3=(e,t)=>NF(e,zF(t)),DF=(e,t)=>{var n={};for(var r in e)J_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ha)for(var r of Ha(e))t.indexOf(r)<0&&e3.call(e,r)&&(n[r]=e[r]);return n};const $i=Ih((e,t)=>{var n=t,{horizontal:r,vertical:i}=n,o=DF(n,["horizontal","vertical"]),s,a,l,c;if(!e||e.length===0)return y(Y,ja({},o));const u=e.map(b=>ae(b)),h=Hr(e),f=(s=o.x)!=null?s:h.x,d=(a=o.y)!=null?a:h.y,p=(l=o.width)!=null?l:h.width,g=(c=o.height)!=null?c:h.height,m=e.map((b,w)=>{const x=u[w],_=ja({},b.props);if(r!==void 0)switch(r){case"left":_.x=-x.x;break;case"center":_.x=(p-x.width)/2-x.x;break;case"right":_.x=p-x.width-x.x;break}else _.x===void 0&&(_.x=x.x-f);if(i!==void 0)switch(i){case"top":_.y=-x.y;break;case"middle":_.y=(g-x.height)/2-x.y;break;case"bottom":_.y=g-x.height-x.y;break}else _.y===void 0&&(_.y=x.y-d);return yr(b,_)}),v=n3(ja({},o),{x:f,y:d,width:p,height:g});return y(Y,n3(ja({},v),{children:m}))});var qF=Object.defineProperty,HF=Object.defineProperties,jF=Object.getOwnPropertyDescriptors,Fa=Object.getOwnPropertySymbols,r3=Object.prototype.hasOwnProperty,i3=Object.prototype.propertyIsEnumerable,o3=(e,t,n)=>t in e?qF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fr=(e,t)=>{for(var n in t||(t={}))r3.call(t,n)&&o3(e,n,t[n]);if(Fa)for(var n of Fa(t))i3.call(t,n)&&o3(e,n,t[n]);return e},s3=(e,t)=>HF(e,jF(t)),FF=(e,t)=>{var n={};for(var r in e)r3.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Fa)for(var r of Fa(e))t.indexOf(r)<0&&i3.call(e,r)&&(n[r]=e[r]);return n};const ve=Ih((e,t)=>{var n=t,{flexDirection:r="row",justifyContent:i="flex-start",alignItems:o="flex-start",alignContent:s="flex-start",flexWrap:a="nowrap",gap:l=0}=n,c=FF(n,["flexDirection","justifyContent","alignItems","alignContent","flexWrap","gap"]),u,h,f,d,p,g;if(!e||e.length===0)return y(Y,Fr({},c));const m=r==="row"||r==="row-reverse",v=r==="row-reverse"||r==="column-reverse",b=e.map(E=>ae(E)),w=Hr(e),x=(u=c.width)!=null?u:w.width,_=(h=c.height)!=null?h:w.height,C=c.width!==void 0&&c.height!==void 0,P=[];if(a==="wrap"&&C){let E=[],I=[],T=0;for(let N=0;N<e.length;N++){const H=e[N],D=b[N],W=m?D.width:D.height,F=m?x:_;E.length===0||T+l+W<=F?(E.push(H),I.push(D),T+=(E.length>1?l:0)+W):(P.push({children:E,bounds:I}),E=[H],I=[D],T=W)}E.length>0&&P.push({children:E,bounds:I})}else P.push({children:e,bounds:b});const S=[];let $=0;const O=[];if(P.forEach(E=>{const{children:I,bounds:T}=E,N=T.reduce((G,L,R)=>{const z=m?L.width:L.height;return G+z+(R>0?l:0)},0),H=Math.max(...T.map(G=>m?G.height:G.width));O.push(H);let D=0;const W=(m?x:_)-N;if(C)switch(i){case"flex-end":D=W;break;case"center":D=W/2;break;case"space-between":D=0;break;default:D=0;break}let F=l;C&&i==="space-between"&&I.length>1&&(F=W/(I.length-1)+l);let X=D;I.forEach((G,L)=>{const R=T[L],z=m?R.width:R.height,q=m?R.height:R.width,j=m?R.x:R.y,V=m?R.y:R.x;let U=$;if(C)switch(o){case"flex-end":U=$+H-q;break;case"center":U=$+(H-q)/2;break;default:U=$;break}let K,J;m?(K=v?x-X-z-j:X-j,J=U-V):(K=U-V,J=v?_-X-z-j:X-j);const Z=yr(G,{x:K,y:J});S.push(Z),X+=z+F}),$+=H+l}),P.length>1&&C){const E=O.reduce((N,H)=>N+H,0)+(P.length-1)*l,I=(m?_:x)-E;let T=0;switch(s){case"flex-end":T=I;break;case"center":T=I/2;break;case"space-between":if(P.length>1){const N=I/(P.length-1);let H=0;P.forEach((D,W)=>{const F=P.slice(0,W).reduce((G,L)=>G+L.children.length,0),X=F+D.children.length;for(let G=F;G<X;G++){const L=S[G],R=Fr({},L.props);m?R.y=(R.y||0)+H:R.x=(R.x||0)+H,S[G]=yr(L,R)}H+=O[W]+l+(W<P.length-1?N:0)});break}break;default:T=0;break}T!==0&&s!=="space-between"&&S.forEach((N,H)=>{const D=Fr({},N.props);m?D.y=(D.y||0)+T:D.x=(D.x||0)+T,S[H]=yr(N,D)})}if(!C&&o==="center")if(m){const E=Math.max(...b.map(I=>I.height));S.forEach((I,T)=>{const N=b[T],H=(E-N.height)/2,D=Fr({},I.props);D.y=(D.y||0)+H,S[T]=yr(I,D)})}else{const E=Math.max(...b.map(I=>I.width));S.forEach((I,T)=>{const N=b[T],H=(E-N.width)/2,D=Fr({},I.props);D.x=(D.x||0)+H,S[T]=yr(I,D)})}const M=Hr(S),A=s3(Fr({},c),{x:(f=c.x)!=null?f:w.x,y:(d=c.y)!=null?d:w.y,width:(p=c.width)!=null?p:M.width,height:(g=c.height)!=null?g:M.height});return y(Y,s3(Fr({},A),{children:S}))});var BF=Object.defineProperty,WF=Object.defineProperties,VF=Object.getOwnPropertyDescriptors,a3=Object.getOwnPropertySymbols,GF=Object.prototype.hasOwnProperty,YF=Object.prototype.propertyIsEnumerable,l3=(e,t,n)=>t in e?BF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ba=(e,t)=>{for(var n in t||(t={}))GF.call(t,n)&&l3(e,n,t[n]);if(a3)for(var n of a3(t))YF.call(t,n)&&l3(e,n,t[n]);return e},c3=(e,t)=>WF(e,VF(t));const u3=e=>{const{x:t=0,y:n=0,alignHorizontal:r="center",title:i,desc:o,descLineNumber:s=2,themeColors:a}=e,l=u=>{const h={fontSize:24,fill:a.colorPrimaryText,lineHeight:1.4,alignHorizontal:r};return y(De,c3(Ba(Ba({},h),u),{"data-element-type":"title",children:i}))},c=u=>{const h={fontSize:16,fill:a.colorTextSecondary,alignHorizontal:r,lineHeight:1.4,height:s*24};return y(De,c3(Ba(Ba({},h),u),{"data-element-type":"desc",children:o}))};return!i&&!o?null:k(ve,{flexDirection:"column",justifyContent:"center",alignItems:"center",x:t,y:n,gap:8,children:[i&&y(l,{}),o&&y(c,{})]})},kh=new Map;function Lh(e,t){kh.set(e,t)}function h3(e){return kh.get(e)}function XF(){return Array.from(kh.keys())}Lh("dark",{colorBg:"#1F1F1F",base:{text:{fill:"#fff"}}}),Lh("hand-drawn",{base:{text:{"font-family":"851tegakizatsu"}},stylize:{type:"rough"}});var UF=Object.defineProperty,KF=Object.defineProperties,ZF=Object.getOwnPropertyDescriptors,f3=Object.getOwnPropertySymbols,QF=Object.prototype.hasOwnProperty,JF=Object.prototype.propertyIsEnumerable,d3=(e,t,n)=>t in e?UF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ko=(e,t)=>{for(var n in t||(t={}))QF.call(t,n)&&d3(e,n,t[n]);if(f3)for(var n of f3(t))JF.call(t,n)&&d3(e,n,t[n]);return e},Lo=(e,t)=>KF(e,ZF(t));it(j2);const p3=({colorPrimary:e,colorBg:t="#ffffff",isDarkMode:n=!1})=>{const r=In(e),i=In(t),o=oB({primaryColor:r,bgColor:i});return sB(o,{primaryColor:r,bgColor:i,isDarkMode:n})},eB=(e,t)=>UI(Lo(ko({},e),{alpha:t?.2:.1}))||"#ffffff",tB=(e,t)=>{if(t)return"#ffffff";const n=In("#262626");return Cu(n,e)>=7?ao(n):"#000000"},nB=e=>{const t=J2(In(e)),n=Lo(ko({},t),{l:Math.min(1,t.l+.2)});return ao(n)},rB=(e,t)=>{const n=In(e),r=In("#262626"),i=In("#ffffff"),o=Cu(r,n);return Cu(i,n)>=3?ao(i):o>=4.5?ao(r):"#ffffff"},iB=(e,t)=>{const n=J2(e);if(t){const r=Lo(ko({},n),{l:Math.min(1,n.l+.1)});return Wa(r,"#1f1f1f")}else{if(n.l>.95)return"#ffffff";{const r=Lo(ko({},n),{l:Math.min(1,n.l+.05)});return Wa(r,"#ffffff")}}},oB=({primaryColor:e,bgColor:t})=>({colorPrimary:Wa(e,"#FF356A"),colorBg:Wa(t,"#ffffff"),colorWhite:"#ffffff"}),sB=(e,{primaryColor:t,bgColor:n,isDarkMode:r})=>{const i=tB(n,r),o=eB(t,r);return Lo(ko({},e),{isDarkMode:r,colorPrimaryBg:o,colorText:i,colorTextSecondary:nB(i),colorPrimaryText:rB(o,r),colorBgElevated:iB(n,r)})};function Wa(e,t="#000000"){var n;return(n=ao(e))!=null?n:t}const Nh="#FF356A";function Pt(e){var t;return((t=e==null?void 0:e.themeConfig)==null?void 0:t.colorPrimary)||Nh}function g3(e){var t;const{themeConfig:n={},data:r}=e,{colorPrimary:i,palette:o}=n;return!o||o.length===0?Array(((t=r==null?void 0:r.items)==null?void 0:t.length)||1).fill(i||Nh):r.items.map((s,a)=>ta(o,[a],r.items.length)||Nh)}function Fe(e,t){var n,r,i;return ta((n=e==null?void 0:e.themeConfig)==null?void 0:n.palette,t,(i=(r=e.data)==null?void 0:r.items)==null?void 0:i.length)}function Et(e,t){var n;const{colorBg:r=((n=t==null?void 0:t.themeConfig)==null?void 0:n.colorBg)||"white",colorPrimary:i=t?Pt(t):"black"}=e;return p3({colorPrimary:i,isDarkMode:ev(r),colorBg:r})}function m3(e,t){const{depth:n,originalIndexes:r,flatIndex:i}=e;switch(t){case"level":return[n];case"branch":return n===0?[0]:n===1?[r[1]+1]:[r[1]+1];case"node":return r;case"node-flat":return i!==void 0?[i]:(console.warn("node-flat mode requires flatIndex in HierarchyNode, falling back to originalIndexes"),r);default:return[0]}}var aB=Object.defineProperty,y3=Object.getOwnPropertySymbols,lB=Object.prototype.hasOwnProperty,cB=Object.prototype.propertyIsEnumerable,v3=(e,t,n)=>t in e?aB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uB=(e,t)=>{for(var n in t||(t={}))lB.call(t,n)&&v3(e,n,t[n]);if(y3)for(var n of y3(t))cB.call(t,n)&&v3(e,n,t[n]);return e};function at(e,t=[]){const n=uB({},e),r={};return["indexes","data","datum","positionH","positionV","themeColors","valueFormatter",...t].forEach(o=>{o in n&&(r[o]=n[o],delete n[o])}),["x","y","width","height"].forEach(o=>{o in e&&(n[o]=e[o])}),[r,n]}function Va(e,t){var n;return e.length===0?()=>null:t===void 0?e[0]:(n=e[t])!=null?n:e[0]}function hB(e){if(e==null)return 0;if(typeof e=="string"){const t=e.trim(),n=t.endsWith("%")?t.slice(0,-1):t,r=parseFloat(n);return isNaN(r)?0:r}return e}const zh=new Map;function lt(e,t){zh.set(e,t)}function b3(e){return zh.get(e)}function fB(){return Array.from(zh.keys())}var dB=Object.defineProperty,pB=Object.defineProperties,gB=Object.getOwnPropertyDescriptors,w3=Object.getOwnPropertySymbols,mB=Object.prototype.hasOwnProperty,yB=Object.prototype.propertyIsEnumerable,_3=(e,t,n)=>t in e?dB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vB=(e,t)=>{for(var n in t||(t={}))mB.call(t,n)&&_3(e,n,t[n]);if(w3)for(var n of w3(t))yB.call(t,n)&&_3(e,n,t[n]);return e},bB=(e,t)=>pB(e,gB(t));const x3=e=>{const[{datum:t,indexes:n,width:r=200,height:i=80,iconSize:o=24,badgeSize:s=32,gap:a=8,positionH:l="normal",themeColors:c,valueFormatter:u},h]=at(e,["width","height","iconSize","badgeSize","gap"]),f=t.value,d=f!==void 0,p=!!t.desc,g=!!t.icon,m=`${c.colorPrimary}-badge`,v=l==="flipped"?r-a-s:a,b=g?l==="flipped"?a:s+2*a:a,w=r-a*2,x=g?r-s-3*a:w,_=a+14+18+8,C=_-a,P=p?a:(i-s)/2,S=!d&&!p?(i-14)/2:a,$=!g&&l==="center"?"center":l==="flipped"?"right":"left";return k(Y,bB(vB({},h),{width:r,height:i,children:[y(Ke,{children:k("radialGradient",{id:m,cx:"50%",cy:"50%",r:"50%",children:[y("stop",{offset:"0%",stopColor:c.colorPrimary}),y("stop",{offset:"100%",stopColor:be(c.colorPrimary).darken(20).toHexString()})]})}),y(Le,{"data-element-type":"shape",x:0,y:0,width:r,height:i,fill:c.colorPrimaryBg,rx:8,ry:8}),g&&k(tt,{children:[y(Ze,{x:v,y:P,width:s,height:s,fill:`url(#${m})`}),y(Ft,{indexes:n,x:v+(s-o)/2,y:P+(s-o)/2,size:o,fill:c.colorWhite})]}),k(ve,{flexDirection:"column",x:b,y:S,width:x,height:!d&&!p?void 0:C,alignItems:"center",justifyContent:"center",children:[y(Ve,{indexes:n,width:x,alignHorizontal:$,alignVertical:"middle",fontSize:14,fill:c.colorText,children:t.label}),d&&y(Ro,{indexes:n,width:x,alignHorizontal:l==="flipped"?"right":"left",alignVertical:"middle",fontSize:18,lineHeight:1,fontWeight:"bold",fill:c.colorPrimary,value:f,formatter:u})]}),p&&y(ht,{indexes:n,x:a,y:_,width:w,alignHorizontal:$,fontSize:11,fill:c.colorTextSecondary,lineNumber:2,lineHeight:1.2,wordWrap:!0,children:t.desc})]}))};lt("badge-card",{component:x3,composites:["icon","label","value","desc"]});var wB=Object.defineProperty,_B=Object.defineProperties,xB=Object.getOwnPropertyDescriptors,C3=Object.getOwnPropertySymbols,CB=Object.prototype.hasOwnProperty,PB=Object.prototype.propertyIsEnumerable,P3=(e,t,n)=>t in e?wB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,SB=(e,t)=>{for(var n in t||(t={}))CB.call(t,n)&&P3(e,n,t[n]);if(C3)for(var n of C3(t))PB.call(t,n)&&P3(e,n,t[n]);return e},OB=(e,t)=>_B(e,xB(t));const S3=e=>{const[{indexes:t,datum:n,width:r=280,height:i=140,themeColors:o},s]=at(e,["width","height"]);return k(Y,OB(SB({},s),{children:[y("rect",{x:0,y:0,width:r,height:i,rx:22,ry:22,fill:o.colorPrimaryBg,stroke:o.colorPrimary,"data-element-type":"shape"}),y(Pe,{x:r-85,y:.5,width:85,height:65,d:"M0 0H62.4495C74.9557 0 85.4549 10.8574 84.4557 23.1875V60.1875L77.8772 62.5839C64.3776 67.6876 48.51 64.6893 37.8662 53.7441L10.2361 25.3312C4.91402 19.8571 1.65356 13.1736 0.435652 6.21819L0 0Z",fill:o.colorBg,"data-element-type":"shape"}),y(Ve,{indexes:t,x:20,y:24,width:200,alignHorizontal:"left",alignVertical:"middle",fill:o.colorText,children:n.label}),y(ht,{indexes:t,x:20,y:58,width:220,height:70,fill:o.colorTextSecondary,alignHorizontal:"left",alignVertical:"top",children:n.desc}),y(Ft,{indexes:t,x:r-48,y:12,width:32,height:32,fill:o.colorPrimary})]}))};lt("candy-card-lite",{component:S3,composites:["icon","label","desc"]});var $B=Object.defineProperty,EB=Object.defineProperties,MB=Object.getOwnPropertyDescriptors,Ga=Object.getOwnPropertySymbols,O3=Object.prototype.hasOwnProperty,$3=Object.prototype.propertyIsEnumerable,E3=(e,t,n)=>t in e?$B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,AB=(e,t)=>{for(var n in t||(t={}))O3.call(t,n)&&E3(e,n,t[n]);if(Ga)for(var n of Ga(t))$3.call(t,n)&&E3(e,n,t[n]);return e},IB=(e,t)=>EB(e,MB(t)),TB=(e,t)=>{var n={};for(var r in e)O3.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ga)for(var r of Ga(e))t.indexOf(r)<0&&$3.call(e,r)&&(n[r]=e[r]);return n};const Dh=e=>{const t=e,{color:n="black",opacity:r=.8}=t,i=TB(t,["color","opacity"]);return y("filter",IB(AB({id:"drop-shadow",x:"-25%",y:"-25%",width:"200%",height:"200%"},i),{children:y("feDropShadow",{dx:"4",dy:"4",stdDeviation:"4","flood-color":n,"flood-opacity":r})}))};var RB=Object.defineProperty,kB=Object.defineProperties,LB=Object.getOwnPropertyDescriptors,M3=Object.getOwnPropertySymbols,NB=Object.prototype.hasOwnProperty,zB=Object.prototype.propertyIsEnumerable,A3=(e,t,n)=>t in e?RB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,DB=(e,t)=>{for(var n in t||(t={}))NB.call(t,n)&&A3(e,n,t[n]);if(M3)for(var n of M3(t))zB.call(t,n)&&A3(e,n,t[n]);return e},qB=(e,t)=>kB(e,LB(t));const qh=e=>{const{id:t="linear-gradient",startColor:n="black",stopColor:r="white",direction:i="left-right"}=e;return k("linearGradient",qB(DB({id:t},{"left-right":{x1:"0%",y1:"0%",x2:"100%",y2:"0%"},"right-left":{x1:"100%",y1:"0%",x2:"0%",y2:"0%"},"top-bottom":{x1:"0%",y1:"0%",x2:"0%",y2:"100%"},"bottom-top":{x1:"0%",y1:"100%",x2:"0%",y2:"0%"}}[i]),{children:[y("stop",{offset:"0%",stopColor:n}),y("stop",{offset:"100%",stopColor:r})]}))};var HB=Object.defineProperty,jB=Object.defineProperties,FB=Object.getOwnPropertyDescriptors,I3=Object.getOwnPropertySymbols,BB=Object.prototype.hasOwnProperty,WB=Object.prototype.propertyIsEnumerable,T3=(e,t,n)=>t in e?HB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,No=(e,t)=>{for(var n in t||(t={}))BB.call(t,n)&&T3(e,n,t[n]);if(I3)for(var n of I3(t))WB.call(t,n)&&T3(e,n,t[n]);return e},zo=(e,t)=>jB(e,FB(t));const R3=e=>{const[{datum:t,indexes:n,width:r=300,height:i=80,gap:o=12,positionH:s="normal",iconPadding:a=i/10,themeColors:l},c]=at(e,["width","height","gap","iconPadding"]),u=i/2,h=i-a*2,f=s==="flipped",d=!!t.icon,p=d?r-i-o:r-o*2,g=d?f?o:i:o,m=d?f?"right":"left":"center",v={indexes:n,width:p,alignHorizontal:m,alignVertical:"middle",fontSize:16,fontWeight:"600",fill:l.colorWhite},b=ae(y(Ve,zo(No({},v),{children:t.label}))),w={indexes:n,width:p,alignHorizontal:m,alignVertical:"top",fontSize:12,lineNumber:1,fill:l.colorWhite},x=ae(t.desc?y(ht,zo(No({},w),{children:t.desc})):null),_=4,C=b.height+_+x.height,S=(i-C)/2,$=S+b.height+_,O=f?r-i+a:a,M=a;return k(Y,zo(No({},c),{children:[y(Ke,{children:y(Dh,{})}),y(Le,{x:0,y:0,width:r,height:i,fill:l.colorPrimary,rx:u,ry:u,"data-element-type":"shape"}),t.icon&&k(tt,{children:[y(Ze,{x:O,y:M,width:h,height:h,fillOpacity:.5,fill:l.colorBg,filter:"url(#drop-shadow)"}),y(jr,{indexes:n,x:O,y:M,size:h,fill:l.colorBg,colorBg:l.colorPrimary})]}),t.label&&y(Ve,zo(No({x:g,y:S},v),{children:t.label})),t.desc&&y(ht,zo(No({x:g,y:$},w),{children:t.desc}))]}))};lt("capsule-item",{component:R3,composites:["icon","label","desc"]});var VB=Object.defineProperty,GB=Object.defineProperties,YB=Object.getOwnPropertyDescriptors,k3=Object.getOwnPropertySymbols,XB=Object.prototype.hasOwnProperty,UB=Object.prototype.propertyIsEnumerable,L3=(e,t,n)=>t in e?VB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hh=(e,t)=>{for(var n in t||(t={}))XB.call(t,n)&&L3(e,n,t[n]);if(k3)for(var n of k3(t))UB.call(t,n)&&L3(e,n,t[n]);return e},jh=(e,t)=>GB(e,YB(t));const N3=e=>{const[{indexes:t,datum:n,themeColors:r,positionH:i="normal",width:o=240,height:s=o},a]=at(e,["width","height"]),l=Math.min(o,s),c=l*.7,u=(l-c)/2,h=c*Math.sqrt(2)/2,f=(l-h)/2,d=be(r.colorPrimary),p=Ya(d,80,.2),g=Ya(d,20,.8),m=Ya(d,75,.32),v=Ya(d,45,.4),b=d.clone().darken(5).toRgbString(),w=`${r.colorPrimary}-${i}-outer`,x=`${r.colorPrimary}-${i}-inner`,_=i==="flipped"?{x1:"0%",y1:"0%",x2:"100%",y2:"0%"}:{x1:"100%",y1:"0%",x2:"0%",y2:"0%"};return k(Y,jh(Hh({},a),{children:[k(Ke,{children:[k("linearGradient",jh(Hh({id:w},_),{children:[y("stop",{offset:"0%",stopColor:p}),y("stop",{offset:"100%",stopColor:g})]})),k("linearGradient",jh(Hh({id:x},_),{children:[y("stop",{offset:"0%",stopColor:m}),y("stop",{offset:"100%",stopColor:v})]}))]}),y(Ze,{width:l,height:l,fill:`url(#${w})`,"data-element-type":"shape"}),y(Ze,{x:u,y:u,width:c,height:c,fill:`url(#${x})`,stroke:"#FFFFFF",strokeWidth:1,"data-element-type":"shape"}),y(Ve,{indexes:t,x:f,y:f,width:h,height:h,lineHeight:1.1,alignHorizontal:"center",alignVertical:"middle",fill:b,fontWeight:"500",children:n.label})]}))};lt("circle-node",{component:N3,composites:["label"]});function Ya(e,t,n){return be.mix(e,"#ffffff",t).setAlpha(n).toRgbString()}var KB=Object.defineProperty,ZB=Object.defineProperties,QB=Object.getOwnPropertyDescriptors,z3=Object.getOwnPropertySymbols,JB=Object.prototype.hasOwnProperty,eW=Object.prototype.propertyIsEnumerable,D3=(e,t,n)=>t in e?KB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fh=(e,t)=>{for(var n in t||(t={}))JB.call(t,n)&&D3(e,n,t[n]);if(z3)for(var n of z3(t))eW.call(t,n)&&D3(e,n,t[n]);return e},Bh=(e,t)=>ZB(e,QB(t));const q3=e=>{var t;const[{datum:n,indexes:r,size:i=120,strokeWidth:o=12,gap:s=8,themeColors:a,valueFormatter:l=_=>`${Math.round(_)}%`},c]=at(e,["size","strokeWidth","gap"]),u=(t=n.value)!=null?t:0,f=Math.min(Math.max(u/100,0),1),d=(i-o)/2,p=i/2,g=o/2,m=i-o,v=f>=1,b=f*360,w=tW(p,p,d,0,b),x={x:g,y:g,width:m,height:m};return k(Y,Bh(Fh({},c),{width:i,height:i+s+20,children:[y(Le,{width:i,height:i,fill:"none"}),y(Ze,Bh(Fh({},x),{fill:"none",stroke:"#f0f0f0",strokeWidth:o,"data-element-type":"shape"})),v?y(Ze,Bh(Fh({},x),{fill:"none",stroke:a.colorPrimary,strokeWidth:o,"data-element-type":"shape"})):y(Pe,{d:w,fill:"none",stroke:a.colorPrimary,strokeWidth:o,strokeLinecap:"round","data-element-type":"shape"}),y(Ro,{indexes:r,x:o,y:o,width:m-o,height:m-o,fontSize:24,fontWeight:"bold",fill:a.colorPrimary,alignHorizontal:"center",alignVertical:"middle",value:u,formatter:l}),y(Ve,{indexes:r,x:0,y:i+s,width:i,alignHorizontal:"center",fontSize:12,fill:a.colorTextSecondary,children:n.label})]}))};function tW(e,t,n,r,i){const o=H3(e,t,n,i),s=H3(e,t,n,r),a=i-r<=180?"0":"1";return`M ${o.x} ${o.y} A ${n} ${n} 0 ${a} 0 ${s.x} ${s.y}`}function H3(e,t,n,r){const i=(r-90)*Math.PI/180;return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}}lt("circular-progress",{component:q3,composites:["label","value"]});var nW=Object.defineProperty,rW=Object.defineProperties,iW=Object.getOwnPropertyDescriptors,j3=Object.getOwnPropertySymbols,oW=Object.prototype.hasOwnProperty,sW=Object.prototype.propertyIsEnumerable,F3=(e,t,n)=>t in e?nW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,aW=(e,t)=>{for(var n in t||(t={}))oW.call(t,n)&&F3(e,n,t[n]);if(j3)for(var n of j3(t))sW.call(t,n)&&F3(e,n,t[n]);return e},lW=(e,t)=>rW(e,iW(t));const B3=e=>{const[{datum:t,indexes:n,width:r=200,height:i=60,iconSize:o=20,gap:s=8,positionH:a="normal",themeColors:l,valueFormatter:c},u]=at(e,["width","height","iconSize","gap"]),h=t.value,f=h!=null,d="compact-shadow",p=a==="flipped"?r-s-o:s,g=a==="flipped"?s:o+2*s,m=r-o-3*s,v=f?m*.8:m,b=f?m*.2:0;return k(Y,lW(aW({},u),{children:[y(Ke,{children:y("filter",{id:d,children:y("feDropShadow",{dx:"0",dy:"2",stdDeviation:"2",floodOpacity:"0.15"})})}),y(Le,{x:0,y:0,width:r,height:i,fill:l.colorBgElevated,stroke:l.colorBgElevated,strokeWidth:1,rx:6,ry:6,filter:`url(#${d})`,"data-element-type":"shape"}),y(Le,{x:a==="flipped"?r-3:0,y:0,width:3,height:i,fill:l.colorPrimary,rx:1.5,ry:1.5,"data-element-type":"shape"}),y(Ft,{indexes:n,x:p,y:(i-o)/2,size:o,fill:l.colorPrimary}),k(ve,{x:g,y:s,width:m,height:i-s*2,flexDirection:"column",justifyContent:"center",alignItems:"flex-start",children:[k(ve,{width:m,flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[y(Ve,{indexes:n,width:v,alignHorizontal:"left",fontSize:12,fill:l.colorText,children:t.label}),f&&y(Ro,{indexes:n,width:b,alignHorizontal:"right",fontSize:12,fontWeight:"bold",fill:l.colorPrimary,value:h,formatter:c})]}),y(ht,{indexes:n,width:m,alignHorizontal:"left",alignVertical:"middle",fontSize:10,fill:l.colorTextSecondary,lineNumber:2,wordWrap:!0,children:t.desc})]})]}))};lt("compact-card",{component:B3,composites:["icon","label","value","desc"]});var cW=Object.defineProperty,uW=Object.defineProperties,hW=Object.getOwnPropertyDescriptors,W3=Object.getOwnPropertySymbols,fW=Object.prototype.hasOwnProperty,dW=Object.prototype.propertyIsEnumerable,V3=(e,t,n)=>t in e?cW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pW=(e,t)=>{for(var n in t||(t={}))fW.call(t,n)&&V3(e,n,t[n]);if(W3)for(var n of W3(t))dW.call(t,n)&&V3(e,n,t[n]);return e},gW=(e,t)=>uW(e,hW(t));const G3=e=>{const[{datum:t,indexes:n,width:r=300,height:i=30,iconSize:o=30,gap:s=5,positionH:a="normal",positionV:l="middle",themeColors:c},u]=at(e,["width","height","iconSize","gap"]),h=r-o-s,f=l==="middle"?(i-o)/2:l==="flipped"?i-o:0;return k(Y,gW(pW({},u),{children:[y(Pe,{"data-element-type":"shape",x:a==="flipped"?h+s:0,y:f,fill:c.colorPrimary,width:o,height:o,d:"M14.7273 30C6.54538 30 0 22.9077 0 14.7269C0 6.54617 6.54538 0 14.7273 0C22.9092 0 30 6.54617 30 14.7269C30 22.9077 22.9092 30 14.7273 30ZM24.5454 10.9077C22.9092 9.27307 22.9092 9.27307 22.9092 9.27307C22.3638 8.72692 22.3638 8.7269 21.8181 8.7269C21.2727 8.7269 21.2727 8.72692 20.7273 9.27307C13.0908 16.9077 13.0908 16.9077 13.0908 16.9077C8.72731 12.5461 8.72731 12.5462 8.72731 12.5462C8.18193 12.5462 8.18193 12 7.63654 12L7.09077 12.5462C4.90923 14.1808 4.90923 14.1808 4.90923 14.1808C4.90923 14.7269 4.90923 14.7269 4.90923 15.2731C4.90923 15.8192 4.90923 15.8192 4.90923 16.3654C12 23.4539 12 23.4538 12 23.4538C12.5454 23.4538 12.5454 23.4538 13.0908 23.4538C13.6365 23.4538 13.6365 23.4538 14.1819 23.4538C24.5454 12.5461 24.5454 12.5462 24.5454 12.5462L25.0908 12C25.0908 11.4538 24.5454 10.9077 24.5454 10.9077Z"}),y(Ve,{indexes:n,x:a==="flipped"?0:o+s,width:h,height:i,fontWeight:"normal",alignVertical:"middle",wordWrap:!1,fill:"#666",children:t.label||t.desc})]}))};lt("done-list",{component:G3,composites:["label"]});var mW=Object.defineProperty,yW=Object.defineProperties,vW=Object.getOwnPropertyDescriptors,Y3=Object.getOwnPropertySymbols,bW=Object.prototype.hasOwnProperty,wW=Object.prototype.propertyIsEnumerable,X3=(e,t,n)=>t in e?mW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_W=(e,t)=>{for(var n in t||(t={}))bW.call(t,n)&&X3(e,n,t[n]);if(Y3)for(var n of Y3(t))wW.call(t,n)&&X3(e,n,t[n]);return e},xW=(e,t)=>yW(e,vW(t));const U3=e=>{const[{indexes:t,datum:n,width:r=140,themeColors:i,positionV:o="normal"},s]=at(e,["width"]),a=o!=="flipped",l=o==="normal"?"bottom":"top",c=y(Ve,{indexes:t,width:r,fill:i.colorText,alignHorizontal:"center",alignVertical:l,fontSize:14,children:n.label}),u=y(ht,{indexes:t,width:r,fill:i.colorTextSecondary,alignHorizontal:"center",alignVertical:l,children:n.desc}),h=y(jr,{indexes:t,fill:i.colorPrimary,colorBg:i.colorWhite}),f=y(PW,{width:8,height:30,fill:i.colorPrimary,positionV:o}),d=5,p=25,g=30,m=ae(c),v=ae(u),b=ae(h),w=ae(f),x=m.height+v.height+d+w.height-b.height-p,_=b.height+p+g+w.height+d+m.height+v.height;return y(Y,xW(_W({width:r,height:_},s),{children:k(ve,{flexDirection:"column",alignItems:"center",children:[a?k(tt,{children:[u,c,y(yt,{height:d}),f]}):k(tt,{children:[y(yt,{height:x}),h,y(yt,{height:p})]}),k($i,{horizontal:"center",vertical:"middle",width:r,height:g,children:[y(CW,{width:r,height:g,fill:i.colorPrimary}),y(De,{width:r,height:g,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:n.time?n.time:String(t[0]+1).padStart(2,"0").slice(-2)})]}),a?k(tt,{children:[y(yt,{height:p}),h]}):k(tt,{children:[f,y(yt,{height:d}),c,u]})]})}))},CW=e=>{const{x:t=0,y:n=0,width:r=100,height:i=40,fill:o="#FF356A",size:s=10}=e;return y(Yt,{width:r,height:i,points:[{x:t,y:n},{x:t+r-s,y:n},{x:t+r,y:n+i/2},{x:t+r-s,y:n+i},{x:t,y:n+i},{x:t+s,y:n+i/2}],fill:o,"data-element-type":"shape"})},PW=e=>{const{x:t=0,y:n=0,width:r=10,height:i=50,fill:o,positionV:s="top"}=e,a=r/2,l=i-a,c=2,u=a;return k(Ct,{x:t,y:n,width:r,height:i,children:[y(Ze,{width:r,height:r,fill:o,y:s==="top"?0:l-a}),y(Pe,{d:s==="top"?`M${u},${a} L${u},${a+l}`:`M${u},0 L${u},${l-a}`,strokeWidth:c,stroke:o})]})};lt("horizontal-icon-arrow",{component:U3,composites:["icon","label","desc","time"]});var SW=Object.defineProperty,OW=Object.defineProperties,$W=Object.getOwnPropertyDescriptors,K3=Object.getOwnPropertySymbols,EW=Object.prototype.hasOwnProperty,MW=Object.prototype.propertyIsEnumerable,Z3=(e,t,n)=>t in e?SW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Q3=(e,t)=>{for(var n in t||(t={}))EW.call(t,n)&&Z3(e,n,t[n]);if(K3)for(var n of K3(t))MW.call(t,n)&&Z3(e,n,t[n]);return e},J3=(e,t)=>OW(e,$W(t));const ex=e=>{const[{indexes:t,datum:n,width:r=160,themeColors:i,positionH:o="center",positionV:s="normal"},a]=at(e,["width"]),l=o==="normal"?"left":o==="flipped"?"right":"center",c=y(Ve,{indexes:t,width:r,alignHorizontal:l,fill:i.colorPrimary,children:n.label}),u=ae(c),h=n.desc?y(ht,{indexes:t,width:r,fill:i.colorTextSecondary,alignHorizontal:l,alignVertical:s==="flipped"?"top":"bottom",children:n.desc}):null,f=ae(h),p=n.icon?y(jr,{size:45,indexes:t,colorBg:i.colorBg,fill:i.colorPrimary}):null,g=ae(p),m=n.time?y(De,{width:r,height:30,alignHorizontal:"center",alignVertical:"middle",fill:i.colorPrimary,fontSize:18,fontWeight:"bold",children:n.time}):null,v=ae(m),b=18,w=k($i,{horizontal:"center",vertical:"middle",width:r,height:b,children:[y(Le,{width:r,height:b,fill:i.colorPrimary,"data-element-type":"shape"}),y(Ze,{width:b+6,height:b+6,fill:i.colorBg,fillOpacity:.5,"data-element-type":"shape"}),y(Ze,{width:12,height:12,fill:"white","data-element-type":"shape"})]}),x=u.height+f.height,_=g.height+v.height+5,C=Math.abs(_-x),P=_>x?C:0,S=x>_?C:0;return s==="flipped"?k(ve,J3(Q3({},a),{flexDirection:"column",alignItems:"center",children:[y(yt,{height:S}),m,p,y(yt,{height:5}),w,c,h,y(yt,{height:P})]})):k(ve,J3(Q3({},a),{flexDirection:"column",alignItems:"center",children:[y(yt,{height:P}),c,h,w,y(yt,{height:5}),p,m,y(yt,{height:S})]}))};lt("horizontal-icon-line",{component:ex,composites:["icon","label","desc"]});var AW=Object.defineProperty,IW=Object.defineProperties,TW=Object.getOwnPropertyDescriptors,tx=Object.getOwnPropertySymbols,RW=Object.prototype.hasOwnProperty,kW=Object.prototype.propertyIsEnumerable,nx=(e,t,n)=>t in e?AW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,LW=(e,t)=>{for(var n in t||(t={}))RW.call(t,n)&&nx(e,n,t[n]);if(tx)for(var n of tx(t))kW.call(t,n)&&nx(e,n,t[n]);return e},NW=(e,t)=>IW(e,TW(t));const rx=e=>{var t;const[{datum:n,indexes:r,size:i=80,iconSize:o=28,badgeSize:s=24,gap:a=8,themeColors:l,width:c=84,height:u=105},h]=at(e,["size","iconSize","badgeSize","gap"]),f=(t=n.value)!=null?t:0,d=`${l.colorPrimary}-icon`,p="#ff6b6b-badge";return k(Y,NW(LW({},h),{width:c,height:u,children:[k(Ke,{children:[k("radialGradient",{id:d,cx:"50%",cy:"30%",r:"70%",children:[y("stop",{offset:"0%",stopColor:be(l.colorPrimary).lighten(30).toHexString()}),y("stop",{offset:"100%",stopColor:l.colorPrimary})]}),k("linearGradient",{id:p,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[y("stop",{offset:"0%",stopColor:"#ff6b6b"}),y("stop",{offset:"100%",stopColor:"#ee5a52"})]})]}),y(Ze,{x:0,y:0,width:i,height:i,fill:`url(#${d})`,"data-element-type":"shape"}),y(Ft,{indexes:r,x:(i-o)/2,y:(i-o)/2,size:o,fill:l.colorPrimaryText}),y(Ze,{x:i-s+4,width:s,height:s,fill:`url(#${p})`}),y(De,{x:i-s+4,width:s,height:s,fontSize:10,fontWeight:"bold",fill:l.colorWhite,alignHorizontal:"center",alignVertical:"middle",children:f>99?"99+":Math.round(f)}),y(Ve,{indexes:r,x:0,y:i+a,width:i,alignHorizontal:"center",fontSize:12,fill:l.colorText,children:n.label})]}))};lt("icon-badge",{component:rx,composites:["icon","label"]});var zW=Object.defineProperty,DW=Object.defineProperties,qW=Object.getOwnPropertyDescriptors,ix=Object.getOwnPropertySymbols,HW=Object.prototype.hasOwnProperty,jW=Object.prototype.propertyIsEnumerable,ox=(e,t,n)=>t in e?zW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,FW=(e,t)=>{for(var n in t||(t={}))HW.call(t,n)&&ox(e,n,t[n]);if(ix)for(var n of ix(t))jW.call(t,n)&&ox(e,n,t[n]);return e},BW=(e,t)=>DW(e,qW(t));const sx=e=>{const[{datum:t,indexes:n,width:r=200,borderRadius:i=12,padding:o=16,separatorHeight:s=2,indexFontSize:a=20,labelFontSize:l=16,gap:c=8,themeColors:u},h]=at(e,["width","height","borderRadius","padding","separatorHeight","indexFontSize","labelFontSize","gap"]),f=n[0]+1,d=String(f).padStart(2,"0"),p=t.label!==void 0,g=t.desc!==void 0,m=be.mix(u.colorPrimary,u.colorWhite,40).toHexString(),v=u.colorBgElevated||u.colorWhite,b=r-2*o,w=ae(y(De,{fontSize:a,fontWeight:"bold",children:d})),x=b-w.width-c,_=p?ae(y(Ve,{indexes:n,width:x,fontSize:l,fontWeight:"bold",x:a,children:t.label})):{height:0},C=g?ae(y(ht,{indexes:n,width:b,fontSize:14,lineHeight:1.5,wordWrap:!0,children:t.desc})):{height:0},P=Math.max(w.height,_.height),S=o*2+P+(p||g?c:0)+s+(g?c:0)+C.height;return k(Y,BW(FW({},h),{width:r,height:S,children:[y(Le,{x:0,y:0,width:r,height:S,rx:i,ry:i,fill:v,stroke:be(v).darken(5).toHexString(),strokeWidth:.5,"data-element-type":"shape"}),k(Y,{x:o,y:o,children:[k(Y,{x:0,y:0,children:[y(De,{x:0,y:0,fontSize:a,fontWeight:"bold",fill:u.colorPrimary,alignVertical:"top",children:d}),p&&y(Ve,{indexes:n,x:a+c,y:0,width:x,fontSize:l,fontWeight:"bold",fill:u.colorTextSecondary,alignVertical:"top",children:t.label})]}),y(Le,{x:0,y:P+c,width:b,height:s,fill:m,"data-element-type":"shape"}),g&&y(ht,{indexes:n,x:0,y:P+c+s+c,width:b,fontSize:14,lineHeight:1.5,wordWrap:!0,fill:u.colorTextSecondary,children:t.desc})]})]}))};lt("indexed-card",{component:sx,composites:["label","desc"]});var WW=Object.defineProperty,VW=Object.defineProperties,GW=Object.getOwnPropertyDescriptors,ax=Object.getOwnPropertySymbols,YW=Object.prototype.hasOwnProperty,XW=Object.prototype.propertyIsEnumerable,lx=(e,t,n)=>t in e?WW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,UW=(e,t)=>{for(var n in t||(t={}))YW.call(t,n)&&lx(e,n,t[n]);if(ax)for(var n of ax(t))XW.call(t,n)&&lx(e,n,t[n]);return e},KW=(e,t)=>VW(e,GW(t));const cx=e=>{const[{indexes:t,datum:n,width:r=140,iconSize:i=24,themeColors:o},s]=at(e,["width","iconSize"]),{label:a,desc:l}=n,c=8,u=16,h=12,f=u+h,d=r-f,p=60,g=i+44,m=u,v=p+h,b=p+u+h,w=[{x:0,y:b},{x:m,y:v},{x:m,y:b}],x=r-m-h,_=m+h,C=_+x,P=v+c/2,S=P+g,$=`M ${_} ${S} L ${_} ${P} L ${C} ${P}`,O=c/2,M=_+O,A=P+O,E=8;return k(Y,KW(UW({},s),{children:[y(ht,{indexes:t,x:f,width:d,height:p,fontSize:12,alignHorizontal:"left",alignVertical:"bottom",fill:o.colorTextSecondary,children:l}),y(Yt,{points:w,fill:o.colorPrimary,opacity:.9,width:u,height:u,"data-element-type":"shape"}),y(Pe,{d:$,stroke:o.colorPrimary,strokeWidth:c,fill:"none","data-element-type":"shape"}),y(Ft,{indexes:t,x:M+x/2-i/2,y:A+E,size:i,fill:o.colorPrimary}),y(Ve,{indexes:t,x:M,y:A+i+E*2,width:x,fontSize:14,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:o.colorText,children:a})]}))};lt("l-corner-card",{component:cx,composites:["icon","label","desc"]});var ZW=Object.defineProperty,QW=Object.defineProperties,JW=Object.getOwnPropertyDescriptors,ux=Object.getOwnPropertySymbols,eV=Object.prototype.hasOwnProperty,tV=Object.prototype.propertyIsEnumerable,hx=(e,t,n)=>t in e?ZW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nV=(e,t)=>{for(var n in t||(t={}))eV.call(t,n)&&hx(e,n,t[n]);if(ux)for(var n of ux(t))tV.call(t,n)&&hx(e,n,t[n]);return e},rV=(e,t)=>QW(e,JW(t));const fx=e=>{var t,n;const[{datum:r,indexes:i,width:o=280,height:s=160,showStripe:a=!0,showGradient:l=!0,showBottomShade:c=!0,themeColors:u},h]=at(e,["width","height","showStripe","showGradient","showBottomShade"]),f=(t=r.label)==null?void 0:t[0].toUpperCase(),d=(n=r.label)==null?void 0:n.toUpperCase(),p=u.colorPrimary,g=be(p),m=4,v=6,b=45,w=40,x=12,C=g.clone().darken(4).toHexString(),P=g.clone().lighten(x).toHexString(),S="rgba(255, 255, 255, 0)",$="rgba(0, 0, 0, 0.03)",O=`letter-card-${i.join("-")}`,M=`${O}-gradient`,A=`${O}-pattern`,E=`${O}-shade`,I=m+v,T=1,N=96,H=N*T,D=16,W=D*T,F=s/16,X=H+F+W,G=(s-X)/2,L=G+H+F;return k(Y,rV(nV({},h),{width:o,height:s,children:[k(Ke,{children:[l&&k("linearGradient",{id:M,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[y("stop",{offset:"0%",stopColor:C}),y("stop",{offset:"100%",stopColor:P})]}),a&&k("pattern",{id:A,patternUnits:"userSpaceOnUse",width:I,height:I,patternTransform:`rotate(${b})`,children:[y("rect",{x:"0",y:"0",width:I,height:I,fill:S}),y("rect",{x:"0",y:"0",width:m,height:I,fill:$})]}),c&&k("linearGradient",{id:E,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[y("stop",{offset:"0%",stopColor:"rgba(0,0,0,0)"}),y("stop",{offset:"100%",stopColor:"rgba(0,0,0,0.16)"})]})]}),y(Le,{x:0,y:0,width:o,height:s,fill:l?`url(#${M})`:p,rx:0,ry:0,"data-element-type":"shape"}),a&&y(Le,{x:0,y:0,width:o,height:s,fill:`url(#${A})`,rx:0,ry:0}),c&&y(Le,{x:0,y:s-w,width:o,height:w,fill:`url(#${E})`,rx:0,ry:0}),f&&y(Ve,{indexes:i,x:0,y:G,width:o,fontSize:N,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"top",lineHeight:1,children:f}),y(Ve,{indexes:i,x:0,y:L,width:o,fontSize:D,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"middle",lineHeight:1,children:d})]}))};lt("letter-card",{component:fx,composites:["label"]});var iV=Object.defineProperty,oV=Object.defineProperties,sV=Object.getOwnPropertyDescriptors,dx=Object.getOwnPropertySymbols,aV=Object.prototype.hasOwnProperty,lV=Object.prototype.propertyIsEnumerable,px=(e,t,n)=>t in e?iV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cV=(e,t)=>{for(var n in t||(t={}))aV.call(t,n)&&px(e,n,t[n]);if(dx)for(var n of dx(t))lV.call(t,n)&&px(e,n,t[n]);return e},uV=(e,t)=>oV(e,sV(t));const gx=e=>{var t,n,r;const[{datum:i,indexes:o,width:s,themeColors:a,positionH:l="normal",positionV:c="center",formatter:u=T=>T||"",usePaletteColor:h=!1,showUnderline:f=!1,underlineGap:d=6,underlineExtend:p=8,underlineThickness:g=2},m]=at(e,["width","formatter","usePaletteColor","showUnderline","underlineGap","underlineExtend","underlineThickness"]),v=u((n=(t=i.label)!=null?t:i.desc)!=null?n:""),b=l==="flipped"?"right":l==="center"?"center":"left",w=ae(y(Ve,{indexes:o,width:s,children:v})),x=s!=null?s:w.width,_=w.height,C=f?x+p*2:0,P=_+(f?d+g:0),S=f?Math.max(x,C):x,$=(r=m.height)!=null?r:P,O=c==="middle"?($-P)/2:c==="flipped"?$-P:0,M=b==="right"?S-x:b==="center"?(S-x)/2:0,A=O,E=b==="right"?S-C:b==="center"?(S-C)/2:0,I=$;return k(Y,uV(cV({},m),{width:S,height:$,children:[y(Ve,{indexes:o,x:M,y:A,width:x,height:_,alignHorizontal:b,alignVertical:c==="flipped"?"bottom":c==="center"?"middle":"top",fill:h?a.colorPrimary:a.colorText,children:v}),f&&y(Pe,{d:`M 0 ${g/2} L ${C} ${g/2}`,x:E,y:I-g/2,width:C,height:g,stroke:a.colorPrimary,strokeWidth:g,fill:"none",strokeLinecap:"round","data-element-type":"shape"})]}))};lt("lined-text",{component:gx,composites:["label"]});var hV=Object.defineProperty,fV=Object.defineProperties,dV=Object.getOwnPropertyDescriptors,mx=Object.getOwnPropertySymbols,pV=Object.prototype.hasOwnProperty,gV=Object.prototype.propertyIsEnumerable,yx=(e,t,n)=>t in e?hV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mV=(e,t)=>{for(var n in t||(t={}))pV.call(t,n)&&yx(e,n,t[n]);if(mx)for(var n of mx(t))gV.call(t,n)&&yx(e,n,t[n]);return e},yV=(e,t)=>fV(e,dV(t));const vx=e=>{const[{datum:t,indexes:n,width:r=300,pillWidth:i=120,pillHeight:o=36,gap:s=16,positionH:a="normal",themeColors:l},c]=at(e,["width","pillWidth","pillHeight","gap"]),u=!!t.desc,h=u?r:i,f=u?a==="center"?(h-i)/2:a==="flipped"?h-i:0:0,d=0,p=0,g=o+s,m=h,v=`drop-shadow-${l.colorPrimary}`,b="linear-gradient-white-top-bottom";return k(Y,yV(mV({},c),{children:[k(Ke,{children:[y(Dh,{id:v,color:l.colorPrimary}),y(qh,{id:b,startColor:"#fff",stopColor:"#ffffff33",direction:"top-bottom"})]}),y(Le,{x:f,y:d,width:i,height:o,fill:l.colorPrimaryBg,stroke:l.colorPrimary,rx:o/2,ry:o/2,filter:`url(#${v})`,"data-element-type":"shape"}),y(Le,{x:f,y:d,width:i,height:o,fill:`url(#${b})`,opacity:l.isDarkMode?.4:.7,rx:o/2,ry:o/2}),y(Ve,{indexes:n,x:f,y:d,width:i,height:o,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:l.colorText,children:t.label}),t.desc&&y(ht,{indexes:n,x:p,y:g,width:m,alignHorizontal:a==="center"?"center":a==="flipped"?"right":"left",fontSize:12,fill:l.colorTextSecondary,lineNumber:2,wordWrap:!0,children:t.desc})]}))};lt("pill-badge",{component:vx,composites:["label","desc"]});var vV=Object.defineProperty,bV=Object.defineProperties,wV=Object.getOwnPropertyDescriptors,bx=Object.getOwnPropertySymbols,_V=Object.prototype.hasOwnProperty,xV=Object.prototype.propertyIsEnumerable,wx=(e,t,n)=>t in e?vV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,CV=(e,t)=>{for(var n in t||(t={}))_V.call(t,n)&&wx(e,n,t[n]);if(bx)for(var n of bx(t))xV.call(t,n)&&wx(e,n,t[n]);return e},PV=(e,t)=>bV(e,wV(t));const _x=e=>{var t;const[{indexes:n,datum:r,width:i=120,themeColors:o,positionH:s="normal",positionV:a="center",formatter:l=g=>g||"",usePaletteColor:c=!1,lineNumber:u=1},h]=at(e,["width","formatter","usePaletteColor","lineNumber"]),f=14,d=1.4,p=(t=h.height)!=null?t:Math.ceil(u*d*f);return y(Ve,PV(CV({},h),{indexes:n,width:i,height:p,lineHeight:d,fill:c?o.colorPrimary:o.colorText,fontSize:f,fontWeight:"regular",alignHorizontal:s==="flipped"?"right":s==="center"?"center":"left",alignVertical:a==="flipped"?"bottom":a==="center"?"middle":"top",children:l(r.label||r.desc)}))};lt("plain-text",{component:_x,composites:["label"]});function Xa(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function SV(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function xx(e){let t,n,r;e.length!==2?(t=Xa,n=(a,l)=>Xa(e(a),l),r=(a,l)=>e(a)-l):(t=e===Xa||e===SV?e:OV,n=e,r=e);function i(a,l,c=0,u=a.length){if(c<u){if(t(l,l)!==0)return u;do{const h=c+u>>>1;n(a[h],l)<0?c=h+1:u=h}while(c<u)}return c}function o(a,l,c=0,u=a.length){if(c<u){if(t(l,l)!==0)return u;do{const h=c+u>>>1;n(a[h],l)<=0?c=h+1:u=h}while(c<u)}return c}function s(a,l,c=0,u=a.length){const h=i(a,l,c,u-1);return h>c&&r(a[h-1],l)>-r(a[h],l)?h-1:h}return{left:i,center:s,right:o}}function OV(){return 0}function $V(e){return e===null?NaN:+e}const EV=xx(Xa).right;xx($V).center;const MV=Math.sqrt(50),AV=Math.sqrt(10),IV=Math.sqrt(2);function Ua(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),s=o>=MV?10:o>=AV?5:o>=IV?2:1;let a,l,c;return i<0?(c=Math.pow(10,-i)/s,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*s,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=n&&n<2?Ua(e,t,n*2):[a,l,c]}function TV(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,s]=r?Ua(t,e,n):Ua(e,t,n);if(!(o>=i))return[];const a=o-i+1,l=new Array(a);if(r)if(s<0)for(let c=0;c<a;++c)l[c]=(o-c)/-s;else for(let c=0;c<a;++c)l[c]=(o-c)*s;else if(s<0)for(let c=0;c<a;++c)l[c]=(i+c)/-s;else for(let c=0;c<a;++c)l[c]=(i+c)*s;return l}function Wh(e,t,n){return t=+t,e=+e,n=+n,Ua(e,t,n)[2]}function RV(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Wh(t,e,n):Wh(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}var kV={value:()=>{}};function Vh(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Ka(n)}function Ka(e){this._=e}function LV(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Ka.prototype=Vh.prototype={constructor:Ka,on:function(e,t){var n=this._,r=LV(e+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(e=r[o]).type)&&(i=NV(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<s;)if(i=(e=r[o]).type)n[i]=Cx(n[i],e.name,t);else if(t==null)for(i in n)n[i]=Cx(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Ka(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],r=0,i=o.length;r<i;++r)o[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};function NV(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function Cx(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=kV,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Gh="http://www.w3.org/1999/xhtml";const Px={svg:"http://www.w3.org/2000/svg",xhtml:Gh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Za(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Px.hasOwnProperty(t)?{space:Px[t],local:e}:e}function zV(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Gh&&t.documentElement.namespaceURI===Gh?t.createElement(e):t.createElementNS(n,e)}}function DV(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Sx(e){var t=Za(e);return(t.local?DV:zV)(t)}function qV(){}function Yh(e){return e==null?qV:function(){return this.querySelector(e)}}function HV(e){typeof e!="function"&&(e=Yh(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],s=o.length,a=r[i]=new Array(s),l,c,u=0;u<s;++u)(l=o[u])&&(c=e.call(l,l.__data__,u,o))&&("__data__"in l&&(c.__data__=l.__data__),a[u]=c);return new bn(r,this._parents)}function jV(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function FV(){return[]}function Ox(e){return e==null?FV:function(){return this.querySelectorAll(e)}}function BV(e){return function(){return jV(e.apply(this,arguments))}}function WV(e){typeof e=="function"?e=BV(e):e=Ox(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var s=t[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(r.push(e.call(l,l.__data__,c,s)),i.push(l));return new bn(r,i)}function $x(e){return function(){return this.matches(e)}}function Ex(e){return function(t){return t.matches(e)}}var VV=Array.prototype.find;function GV(e){return function(){return VV.call(this.children,e)}}function YV(){return this.firstElementChild}function XV(e){return this.select(e==null?YV:GV(typeof e=="function"?e:Ex(e)))}var UV=Array.prototype.filter;function KV(){return Array.from(this.children)}function ZV(e){return function(){return UV.call(this.children,e)}}function QV(e){return this.selectAll(e==null?KV:ZV(typeof e=="function"?e:Ex(e)))}function JV(e){typeof e!="function"&&(e=$x(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],s=o.length,a=r[i]=[],l,c=0;c<s;++c)(l=o[c])&&e.call(l,l.__data__,c,o)&&a.push(l);return new bn(r,this._parents)}function Mx(e){return new Array(e.length)}function eG(){return new bn(this._enter||this._groups.map(Mx),this._parents)}function Qa(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Qa.prototype={constructor:Qa,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function tG(e){return function(){return e}}function nG(e,t,n,r,i,o){for(var s=0,a,l=t.length,c=o.length;s<c;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new Qa(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function rG(e,t,n,r,i,o,s){var a,l,c=new Map,u=t.length,h=o.length,f=new Array(u),d;for(a=0;a<u;++a)(l=t[a])&&(f[a]=d=s.call(l,l.__data__,a,t)+"",c.has(d)?i[a]=l:c.set(d,l));for(a=0;a<h;++a)d=s.call(e,o[a],a,o)+"",(l=c.get(d))?(r[a]=l,l.__data__=o[a],c.delete(d)):n[a]=new Qa(e,o[a]);for(a=0;a<u;++a)(l=t[a])&&c.get(f[a])===l&&(i[a]=l)}function iG(e){return e.__data__}function oG(e,t){if(!arguments.length)return Array.from(this,iG);var n=t?rG:nG,r=this._parents,i=this._groups;typeof e!="function"&&(e=tG(e));for(var o=i.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var u=r[c],h=i[c],f=h.length,d=sG(e.call(u,u&&u.__data__,c,r)),p=d.length,g=a[c]=new Array(p),m=s[c]=new Array(p),v=l[c]=new Array(f);n(u,h,g,m,v,d,t);for(var b=0,w=0,x,_;b<p;++b)if(x=g[b]){for(b>=w&&(w=b+1);!(_=m[w])&&++w<p;);x._next=_||null}}return s=new bn(s,r),s._enter=a,s._exit=l,s}function sG(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function aG(){return new bn(this._exit||this._groups.map(Mx),this._parents)}function lG(e,t,n){var r=this.enter(),i=this,o=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function cG(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,s=Math.min(i,o),a=new Array(i),l=0;l<s;++l)for(var c=n[l],u=r[l],h=c.length,f=a[l]=new Array(h),d,p=0;p<h;++p)(d=c[p]||u[p])&&(f[p]=d);for(;l<i;++l)a[l]=n[l];return new bn(a,this._parents)}function uG(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,o=r[i],s;--i>=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function hG(e){e||(e=fG);function t(h,f){return h&&f?e(h.__data__,f.__data__):!h-!f}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s=n[o],a=s.length,l=i[o]=new Array(a),c,u=0;u<a;++u)(c=s[u])&&(l[u]=c);l.sort(t)}return new bn(i,this._parents).order()}function fG(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function dG(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function pG(){return Array.from(this)}function gG(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null}function mG(){let e=0;for(const t of this)++e;return e}function yG(){return!this.node()}function vG(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],o=0,s=i.length,a;o<s;++o)(a=i[o])&&e.call(a,a.__data__,o,i);return this}function bG(e){return function(){this.removeAttribute(e)}}function wG(e){return function(){this.removeAttributeNS(e.space,e.local)}}function _G(e,t){return function(){this.setAttribute(e,t)}}function xG(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function CG(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function PG(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function SG(e,t){var n=Za(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?wG:bG:typeof t=="function"?n.local?PG:CG:n.local?xG:_G)(n,t))}function Ax(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function OG(e){return function(){this.style.removeProperty(e)}}function $G(e,t,n){return function(){this.style.setProperty(e,t,n)}}function EG(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function MG(e,t,n){return arguments.length>1?this.each((t==null?OG:typeof t=="function"?EG:$G)(e,t,n==null?"":n)):Ei(this.node(),e)}function Ei(e,t){return e.style.getPropertyValue(t)||Ax(e).getComputedStyle(e,null).getPropertyValue(t)}function AG(e){return function(){delete this[e]}}function IG(e,t){return function(){this[e]=t}}function TG(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function RG(e,t){return arguments.length>1?this.each((t==null?AG:typeof t=="function"?TG:IG)(e,t)):this.node()[e]}function Ix(e){return e.trim().split(/^|\s+/)}function Xh(e){return e.classList||new Tx(e)}function Tx(e){this._node=e,this._names=Ix(e.getAttribute("class")||"")}Tx.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Rx(e,t){for(var n=Xh(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function kx(e,t){for(var n=Xh(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function kG(e){return function(){Rx(this,e)}}function LG(e){return function(){kx(this,e)}}function NG(e,t){return function(){(t.apply(this,arguments)?Rx:kx)(this,e)}}function zG(e,t){var n=Ix(e+"");if(arguments.length<2){for(var r=Xh(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?NG:t?kG:LG)(n,t))}function DG(){this.textContent=""}function qG(e){return function(){this.textContent=e}}function HG(e){return function(){var t=e.apply(this,arguments);this.textContent=t==null?"":t}}function jG(e){return arguments.length?this.each(e==null?DG:(typeof e=="function"?HG:qG)(e)):this.node().textContent}function FG(){this.innerHTML=""}function BG(e){return function(){this.innerHTML=e}}function WG(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t==null?"":t}}function VG(e){return arguments.length?this.each(e==null?FG:(typeof e=="function"?WG:BG)(e)):this.node().innerHTML}function GG(){this.nextSibling&&this.parentNode.appendChild(this)}function YG(){return this.each(GG)}function XG(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function UG(){return this.each(XG)}function KG(e){var t=typeof e=="function"?e:Sx(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function ZG(){return null}function QG(e,t){var n=typeof e=="function"?e:Sx(e),r=t==null?ZG:typeof t=="function"?t:Yh(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function JG(){var e=this.parentNode;e&&e.removeChild(this)}function eY(){return this.each(JG)}function tY(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function nY(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function rY(e){return this.select(e?nY:tY)}function iY(e){return arguments.length?this.property("__data__",e):this.node().__data__}function oY(e){return function(t){e.call(this,t,this.__data__)}}function sY(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function aY(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,o;n<i;++n)o=t[n],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++r]=o;++r?t.length=r:delete this.__on}}}function lY(e,t,n){return function(){var r=this.__on,i,o=oY(t);if(r){for(var s=0,a=r.length;s<a;++s)if((i=r[s]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=t;return}}this.addEventListener(e.type,o,n),i={type:e.type,name:e.name,value:t,listener:o,options:n},r?r.push(i):this.__on=[i]}}function cY(e,t,n){var r=sY(e+""),i,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,u;l<c;++l)for(i=0,u=a[l];i<o;++i)if((s=r[i]).type===u.type&&s.name===u.name)return u.value}return}for(a=t?lY:aY,i=0;i<o;++i)this.each(a(r[i],t,n));return this}function Lx(e,t,n){var r=Ax(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function uY(e,t){return function(){return Lx(this,e,t)}}function hY(e,t){return function(){return Lx(this,e,t.apply(this,arguments))}}function fY(e,t){return this.each((typeof t=="function"?hY:uY)(e,t))}function*dY(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length,s;i<o;++i)(s=r[i])&&(yield s)}var pY=[null];function bn(e,t){this._groups=e,this._parents=t}function Do(){return new bn([[document.documentElement]],pY)}function gY(){return this}bn.prototype=Do.prototype={constructor:bn,select:HV,selectAll:WV,selectChild:XV,selectChildren:QV,filter:JV,data:oG,enter:eG,exit:aG,join:lG,merge:cG,selection:gY,order:uG,sort:hG,call:dG,nodes:pG,node:gG,size:mG,empty:yG,each:vG,attr:SG,style:MG,property:RG,classed:zG,text:jG,html:VG,raise:YG,lower:UG,append:KG,insert:QG,remove:eY,clone:rY,datum:iY,on:cY,dispatch:fY,[Symbol.iterator]:dY};function Uh(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Nx(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function qo(){}var Ho=.7,Ja=1/Ho,Mi="\\s*([+-]?\\d+)\\s*",jo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Dn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",mY=/^#([0-9a-f]{3,8})$/,yY=new RegExp(`^rgb\\(${Mi},${Mi},${Mi}\\)$`),vY=new RegExp(`^rgb\\(${Dn},${Dn},${Dn}\\)$`),bY=new RegExp(`^rgba\\(${Mi},${Mi},${Mi},${jo}\\)$`),wY=new RegExp(`^rgba\\(${Dn},${Dn},${Dn},${jo}\\)$`),_Y=new RegExp(`^hsl\\(${jo},${Dn},${Dn}\\)$`),xY=new RegExp(`^hsla\\(${jo},${Dn},${Dn},${jo}\\)$`),zx={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Uh(qo,Br,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Dx,formatHex:Dx,formatHex8:CY,formatHsl:PY,formatRgb:qx,toString:qx});function Dx(){return this.rgb().formatHex()}function CY(){return this.rgb().formatHex8()}function PY(){return Wx(this).formatHsl()}function qx(){return this.rgb().formatRgb()}function Br(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=mY.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Hx(t):n===3?new nn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?el(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?el(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=yY.exec(e))?new nn(t[1],t[2],t[3],1):(t=vY.exec(e))?new nn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=bY.exec(e))?el(t[1],t[2],t[3],t[4]):(t=wY.exec(e))?el(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=_Y.exec(e))?Bx(t[1],t[2]/100,t[3]/100,1):(t=xY.exec(e))?Bx(t[1],t[2]/100,t[3]/100,t[4]):zx.hasOwnProperty(e)?Hx(zx[e]):e==="transparent"?new nn(NaN,NaN,NaN,0):null}function Hx(e){return new nn(e>>16&255,e>>8&255,e&255,1)}function el(e,t,n,r){return r<=0&&(e=t=n=NaN),new nn(e,t,n,r)}function SY(e){return e instanceof qo||(e=Br(e)),e?(e=e.rgb(),new nn(e.r,e.g,e.b,e.opacity)):new nn}function Kh(e,t,n,r){return arguments.length===1?SY(e):new nn(e,t,n,r==null?1:r)}function nn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Uh(nn,Kh,Nx(qo,{brighter(e){return e=e==null?Ja:Math.pow(Ja,e),new nn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ho:Math.pow(Ho,e),new nn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new nn(Wr(this.r),Wr(this.g),Wr(this.b),tl(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:jx,formatHex:jx,formatHex8:OY,formatRgb:Fx,toString:Fx}));function jx(){return`#${Vr(this.r)}${Vr(this.g)}${Vr(this.b)}`}function OY(){return`#${Vr(this.r)}${Vr(this.g)}${Vr(this.b)}${Vr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Fx(){const e=tl(this.opacity);return`${e===1?"rgb(":"rgba("}${Wr(this.r)}, ${Wr(this.g)}, ${Wr(this.b)}${e===1?")":`, ${e})`}`}function tl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Wr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Vr(e){return e=Wr(e),(e<16?"0":"")+e.toString(16)}function Bx(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new wn(e,t,n,r)}function Wx(e){if(e instanceof wn)return new wn(e.h,e.s,e.l,e.opacity);if(e instanceof qo||(e=Br(e)),!e)return new wn;if(e instanceof wn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(t===o?s=(n-r)/a+(n<r)*6:n===o?s=(r-t)/a+2:s=(t-n)/a+4,a/=l<.5?o+i:2-o-i,s*=60):a=l>0&&l<1?0:s,new wn(s,a,l,e.opacity)}function $Y(e,t,n,r){return arguments.length===1?Wx(e):new wn(e,t,n,r==null?1:r)}function wn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Uh(wn,$Y,Nx(qo,{brighter(e){return e=e==null?Ja:Math.pow(Ja,e),new wn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ho:Math.pow(Ho,e),new wn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new nn(Zh(e>=240?e-240:e+120,i,r),Zh(e,i,r),Zh(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new wn(Vx(this.h),nl(this.s),nl(this.l),tl(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=tl(this.opacity);return`${e===1?"hsl(":"hsla("}${Vx(this.h)}, ${nl(this.s)*100}%, ${nl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Vx(e){return e=(e||0)%360,e<0?e+360:e}function nl(e){return Math.max(0,Math.min(1,e||0))}function Zh(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Qh=e=>()=>e;function EY(e,t){return function(n){return e+n*t}}function MY(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function AY(e){return(e=+e)==1?Gx:function(t,n){return n-t?MY(t,n,e):Qh(isNaN(t)?n:t)}}function Gx(e,t){var n=t-e;return n?EY(e,n):Qh(isNaN(e)?t:e)}const rl=(function e(t){var n=AY(t);function r(i,o){var s=n((i=Kh(i)).r,(o=Kh(o)).r),a=n(i.g,o.g),l=n(i.b,o.b),c=Gx(i.opacity,o.opacity);return function(u){return i.r=s(u),i.g=a(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r})(1);function IY(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function TY(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function RY(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)i[s]=tf(e[s],t[s]);for(;s<n;++s)o[s]=t[s];return function(a){for(s=0;s<r;++s)o[s]=i[s](a);return o}}function kY(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function _n(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function LY(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=tf(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Jh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ef=new RegExp(Jh.source,"g");function NY(e){return function(){return e}}function zY(e){return function(t){return e(t)+""}}function Yx(e,t){var n=Jh.lastIndex=ef.lastIndex=0,r,i,o,s=-1,a=[],l=[];for(e=e+"",t=t+"";(r=Jh.exec(e))&&(i=ef.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:_n(r,i)})),n=ef.lastIndex;return n<t.length&&(o=t.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?zY(l[0].x):NY(t):(t=l.length,function(c){for(var u=0,h;u<t;++u)a[(h=l[u]).i]=h.x(c);return a.join("")})}function tf(e,t){var n=typeof t,r;return t==null||n==="boolean"?Qh(t):(n==="number"?_n:n==="string"?(r=Br(t))?(t=r,rl):Yx:t instanceof Br?rl:t instanceof Date?kY:TY(t)?IY:Array.isArray(t)?RY:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?LY:_n)(e,t)}function DY(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Xx=180/Math.PI,nf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ux(e,t,n,r,i,o){var s,a,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),e*r<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*Xx,skewX:Math.atan(l)*Xx,scaleX:s,scaleY:a}}var il;function qY(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?nf:Ux(t.a,t.b,t.c,t.d,t.e,t.f)}function HY(e){return e==null||(il||(il=document.createElementNS("http://www.w3.org/2000/svg","g")),il.setAttribute("transform",e),!(e=il.transform.baseVal.consolidate()))?nf:(e=e.matrix,Ux(e.a,e.b,e.c,e.d,e.e,e.f))}function Kx(e,t,n,r){function i(c){return c.length?c.pop()+" ":""}function o(c,u,h,f,d,p){if(c!==h||u!==f){var g=d.push("translate(",null,t,null,n);p.push({i:g-4,x:_n(c,h)},{i:g-2,x:_n(u,f)})}else(h||f)&&d.push("translate("+h+t+f+n)}function s(c,u,h,f){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),f.push({i:h.push(i(h)+"rotate(",null,r)-2,x:_n(c,u)})):u&&h.push(i(h)+"rotate("+u+r)}function a(c,u,h,f){c!==u?f.push({i:h.push(i(h)+"skewX(",null,r)-2,x:_n(c,u)}):u&&h.push(i(h)+"skewX("+u+r)}function l(c,u,h,f,d,p){if(c!==h||u!==f){var g=d.push(i(d)+"scale(",null,",",null,")");p.push({i:g-4,x:_n(c,h)},{i:g-2,x:_n(u,f)})}else(h!==1||f!==1)&&d.push(i(d)+"scale("+h+","+f+")")}return function(c,u){var h=[],f=[];return c=e(c),u=e(u),o(c.translateX,c.translateY,u.translateX,u.translateY,h,f),s(c.rotate,u.rotate,h,f),a(c.skewX,u.skewX,h,f),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,h,f),c=u=null,function(d){for(var p=-1,g=f.length,m;++p<g;)h[(m=f[p]).i]=m.x(d);return h.join("")}}}var jY=Kx(qY,"px, ","px)","deg)"),FY=Kx(HY,", ",")",")"),Ai=0,Fo=0,Bo=0,Zx=1e3,ol,Wo,sl=0,Gr=0,al=0,Vo=typeof performance=="object"&&performance.now?performance:Date,Qx=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function rf(){return Gr||(Qx(BY),Gr=Vo.now()+al)}function BY(){Gr=0}function ll(){this._call=this._time=this._next=null}ll.prototype=of.prototype={constructor:ll,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?rf():+n)+(t==null?0:+t),!this._next&&Wo!==this&&(Wo?Wo._next=this:ol=this,Wo=this),this._call=e,this._time=n,sf()},stop:function(){this._call&&(this._call=null,this._time=1/0,sf())}};function of(e,t,n){var r=new ll;return r.restart(e,t,n),r}function WY(){rf(),++Ai;for(var e=ol,t;e;)(t=Gr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ai}function Jx(){Gr=(sl=Vo.now())+al,Ai=Fo=0;try{WY()}finally{Ai=0,GY(),Gr=0}}function VY(){var e=Vo.now(),t=e-sl;t>Zx&&(al-=t,sl=e)}function GY(){for(var e,t=ol,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:ol=n);Wo=e,sf(r)}function sf(e){if(!Ai){Fo&&(Fo=clearTimeout(Fo));var t=e-Gr;t>24?(e<1/0&&(Fo=setTimeout(Jx,e-Vo.now()-al)),Bo&&(Bo=clearInterval(Bo))):(Bo||(sl=Vo.now(),Bo=setInterval(VY,Zx)),Ai=1,Qx(Jx))}}function e4(e,t,n){var r=new ll;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var YY=Vh("start","end","cancel","interrupt"),XY=[],t4=0,n4=1,af=2,cl=3,r4=4,lf=5,ul=6;function hl(e,t,n,r,i,o){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;UY(e,n,{name:t,index:r,group:i,on:YY,tween:XY,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:t4})}function cf(e,t){var n=xn(e,t);if(n.state>t4)throw new Error("too late; already scheduled");return n}function qn(e,t){var n=xn(e,t);if(n.state>cl)throw new Error("too late; already running");return n}function xn(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function UY(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=of(o,0,n.time);function o(c){n.state=n4,n.timer.restart(s,n.delay,n.time),n.delay<=c&&s(c-n.delay)}function s(c){var u,h,f,d;if(n.state!==n4)return l();for(u in r)if(d=r[u],d.name===n.name){if(d.state===cl)return e4(s);d.state===r4?(d.state=ul,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete r[u]):+u<t&&(d.state=ul,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete r[u])}if(e4(function(){n.state===cl&&(n.state=r4,n.timer.restart(a,n.delay,n.time),a(c))}),n.state=af,n.on.call("start",e,e.__data__,n.index,n.group),n.state===af){for(n.state=cl,i=new Array(f=n.tween.length),u=0,h=-1;u<f;++u)(d=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(i[++h]=d);i.length=h+1}}function a(c){for(var u=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=lf,1),h=-1,f=i.length;++h<f;)i[h].call(e,u);n.state===lf&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=ul,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function KY(e,t){var n=e.__transition,r,i,o=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((r=n[s]).name!==t){o=!1;continue}i=r.state>af&&r.state<lf,r.state=ul,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[s]}o&&delete e.__transition}}function ZY(e){return this.each(function(){KY(this,e)})}function QY(e,t){var n,r;return function(){var i=qn(this,e),o=i.tween;if(o!==n){r=n=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===t){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function JY(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=qn(this,e),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=a;break}l===c&&i.push(a)}o.tween=i}}function eX(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=xn(this.node(),n).tween,i=0,o=r.length,s;i<o;++i)if((s=r[i]).name===e)return s.value;return null}return this.each((t==null?QY:JY)(n,e,t))}function uf(e,t,n){var r=e._id;return e.each(function(){var i=qn(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return xn(i,r).value[t]}}function i4(e,t){var n;return(typeof t=="number"?_n:t instanceof Br?rl:(n=Br(t))?(t=n,rl):Yx)(e,t)}function tX(e){return function(){this.removeAttribute(e)}}function nX(e){return function(){this.removeAttributeNS(e.space,e.local)}}function rX(e,t,n){var r,i=n+"",o;return function(){var s=this.getAttribute(e);return s===i?null:s===r?o:o=t(r=s,n)}}function iX(e,t,n){var r,i=n+"",o;return function(){var s=this.getAttributeNS(e.space,e.local);return s===i?null:s===r?o:o=t(r=s,n)}}function oX(e,t,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=t(r=s,a)))}}function sX(e,t,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=t(r=s,a)))}}function aX(e,t){var n=Za(e),r=n==="transform"?FY:i4;return this.attrTween(e,typeof t=="function"?(n.local?sX:oX)(n,r,uf(this,"attr."+e,t)):t==null?(n.local?nX:tX)(n):(n.local?iX:rX)(n,r,t))}function lX(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function cX(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function uX(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&cX(e,o)),n}return i._value=t,i}function hX(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&lX(e,o)),n}return i._value=t,i}function fX(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=Za(e);return this.tween(n,(r.local?uX:hX)(r,t))}function dX(e,t){return function(){cf(this,e).delay=+t.apply(this,arguments)}}function pX(e,t){return t=+t,function(){cf(this,e).delay=t}}function gX(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?dX:pX)(t,e)):xn(this.node(),t).delay}function mX(e,t){return function(){qn(this,e).duration=+t.apply(this,arguments)}}function yX(e,t){return t=+t,function(){qn(this,e).duration=t}}function vX(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?mX:yX)(t,e)):xn(this.node(),t).duration}function bX(e,t){if(typeof t!="function")throw new Error;return function(){qn(this,e).ease=t}}function wX(e){var t=this._id;return arguments.length?this.each(bX(t,e)):xn(this.node(),t).ease}function _X(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;qn(this,e).ease=n}}function xX(e){if(typeof e!="function")throw new Error;return this.each(_X(this._id,e))}function CX(e){typeof e!="function"&&(e=$x(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],s=o.length,a=r[i]=[],l,c=0;c<s;++c)(l=o[c])&&e.call(l,l.__data__,c,o)&&a.push(l);return new tr(r,this._parents,this._name,this._id)}function PX(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var l=t[a],c=n[a],u=l.length,h=s[a]=new Array(u),f,d=0;d<u;++d)(f=l[d]||c[d])&&(h[d]=f);for(;a<r;++a)s[a]=t[a];return new tr(s,this._parents,this._name,this._id)}function SX(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function OX(e,t,n){var r,i,o=SX(t)?cf:qn;return function(){var s=o(this,e),a=s.on;a!==r&&(i=(r=a).copy()).on(t,n),s.on=i}}function $X(e,t){var n=this._id;return arguments.length<2?xn(this.node(),n).on.on(e):this.each(OX(n,e,t))}function EX(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function MX(){return this.on("end.remove",EX(this._id))}function AX(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Yh(e));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a=r[s],l=a.length,c=o[s]=new Array(l),u,h,f=0;f<l;++f)(u=a[f])&&(h=e.call(u,u.__data__,f,a))&&("__data__"in u&&(h.__data__=u.__data__),c[f]=h,hl(c[f],t,n,f,c,xn(u,n)));return new tr(o,this._parents,t,n)}function IX(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Ox(e));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var l=r[a],c=l.length,u,h=0;h<c;++h)if(u=l[h]){for(var f=e.call(u,u.__data__,h,l),d,p=xn(u,n),g=0,m=f.length;g<m;++g)(d=f[g])&&hl(d,t,n,g,f,p);o.push(f),s.push(u)}return new tr(o,s,t,n)}var TX=Do.prototype.constructor;function RX(){return new TX(this._groups,this._parents)}function kX(e,t){var n,r,i;return function(){var o=Ei(this,e),s=(this.style.removeProperty(e),Ei(this,e));return o===s?null:o===n&&s===r?i:i=t(n=o,r=s)}}function o4(e){return function(){this.style.removeProperty(e)}}function LX(e,t,n){var r,i=n+"",o;return function(){var s=Ei(this,e);return s===i?null:s===r?o:o=t(r=s,n)}}function NX(e,t,n){var r,i,o;return function(){var s=Ei(this,e),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(e),Ei(this,e))),s===l?null:s===r&&l===i?o:(i=l,o=t(r=s,a))}}function zX(e,t){var n,r,i,o="style."+t,s="end."+o,a;return function(){var l=qn(this,e),c=l.on,u=l.value[o]==null?a||(a=o4(t)):void 0;(c!==n||i!==u)&&(r=(n=c).copy()).on(s,i=u),l.on=r}}function DX(e,t,n){var r=(e+="")=="transform"?jY:i4;return t==null?this.styleTween(e,kX(e,r)).on("end.style."+e,o4(e)):typeof t=="function"?this.styleTween(e,NX(e,r,uf(this,"style."+e,t))).each(zX(this._id,e)):this.styleTween(e,LX(e,r,t),n).on("end.style."+e,null)}function qX(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function HX(e,t,n){var r,i;function o(){var s=t.apply(this,arguments);return s!==i&&(r=(i=s)&&qX(e,s,n)),r}return o._value=t,o}function jX(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,HX(e,t,n==null?"":n))}function FX(e){return function(){this.textContent=e}}function BX(e){return function(){var t=e(this);this.textContent=t==null?"":t}}function WX(e){return this.tween("text",typeof e=="function"?BX(uf(this,"text",e)):FX(e==null?"":e+""))}function VX(e){return function(t){this.textContent=e.call(this,t)}}function GX(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&VX(i)),t}return r._value=e,r}function YX(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,GX(e))}function XX(){for(var e=this._name,t=this._id,n=s4(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)if(l=s[c]){var u=xn(l,t);hl(l,e,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new tr(r,this._parents,e,n)}function UX(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--i===0&&o()}};n.each(function(){var c=qn(this,r),u=c.on;u!==e&&(t=(e=u).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),c.on=t}),i===0&&o()})}var KX=0;function tr(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function s4(){return++KX}var nr=Do.prototype;tr.prototype={constructor:tr,select:AX,selectAll:IX,selectChild:nr.selectChild,selectChildren:nr.selectChildren,filter:CX,merge:PX,selection:RX,transition:XX,call:nr.call,nodes:nr.nodes,node:nr.node,size:nr.size,empty:nr.empty,each:nr.each,on:$X,attr:aX,attrTween:fX,style:DX,styleTween:jX,text:WX,textTween:YX,remove:MX,tween:eX,delay:gX,duration:vX,ease:wX,easeVarying:xX,end:UX,[Symbol.iterator]:nr[Symbol.iterator]};function ZX(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var QX={time:null,delay:0,duration:250,ease:ZX};function JX(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function eU(e){var t,n;e instanceof tr?(t=e._id,e=e._name):(t=s4(),(n=QX).time=rf(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&hl(l,e,t,c,s,n||JX(l,t));return new tr(r,this._parents,e,t)}Do.prototype.interrupt=ZY,Do.prototype.transition=eU;const hf=Math.PI,ff=2*hf,Yr=1e-6,tU=ff-Yr;function a4(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function nU(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return a4;const n=vs(10,t);return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class rU{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?a4:nU(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,s){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+s}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,a=this._y1,l=r-t,c=i-n,u=s-t,h=a-n,f=u*u+h*h;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>Yr)if(!(Math.abs(h*l-c*u)>Yr)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let d=r-s,p=i-a,g=l*l+c*c,m=d*d+p*p,v=Math.sqrt(g),b=Math.sqrt(f),w=o*Math.tan((hf-Math.acos((g+f-m)/(2*v*b)))/2),x=w/b,_=w/v;Math.abs(x-1)>Yr&&this._append`L${t+x*u},${n+x*h}`,this._append`A${o},${o},0,0,${+(h*d>u*p)},${this._x1=t+_*l},${this._y1=n+_*c}`}}arc(t,n,r,i,o,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(i),l=r*Math.sin(i),c=t+a,u=n+l,h=1^s,f=s?i-o:o-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Yr||Math.abs(this._y1-u)>Yr)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%ff+ff),f>tU?this._append`A${r},${r},0,1,${h},${t-a},${n-l}A${r},${r},0,1,${h},${this._x1=c},${this._y1=u}`:f>Yr&&this._append`A${r},${r},0,${+(f>=hf)},${h},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function iU(e,t){var n,r=1;e==null&&(e=0),t==null&&(t=0);function i(){var o,s=n.length,a,l=0,c=0;for(o=0;o<s;++o)a=n[o],l+=a.x,c+=a.y;for(l=(l/s-e)*r,c=(c/s-t)*r,o=0;o<s;++o)a=n[o],a.x-=l,a.y-=c}return i.initialize=function(o){n=o},i.x=function(o){return arguments.length?(e=+o,i):e},i.y=function(o){return arguments.length?(t=+o,i):t},i.strength=function(o){return arguments.length?(r=+o,i):r},i}function oU(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return l4(this.cover(t,n),t,n,e)}function l4(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,o=e._root,s={data:r},a=e._x0,l=e._y0,c=e._x1,u=e._y1,h,f,d,p,g,m,v,b;if(!o)return e._root=s,e;for(;o.length;)if((g=t>=(h=(a+c)/2))?a=h:c=h,(m=n>=(f=(l+u)/2))?l=f:u=f,i=o,!(o=o[v=m<<1|g]))return i[v]=s,e;if(d=+e._x.call(null,o.data),p=+e._y.call(null,o.data),t===d&&n===p)return s.next=o,i?i[v]=s:e._root=s,e;do i=i?i[v]=new Array(4):e._root=new Array(4),(g=t>=(h=(a+c)/2))?a=h:c=h,(m=n>=(f=(l+u)/2))?l=f:u=f;while((v=m<<1|g)===(b=(p>=f)<<1|d>=h));return i[b]=o,i[v]=s,e}function sU(e){var t,n,r=e.length,i,o,s=new Array(r),a=new Array(r),l=1/0,c=1/0,u=-1/0,h=-1/0;for(n=0;n<r;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(o=+this._y.call(null,t))||(s[n]=i,a[n]=o,i<l&&(l=i),i>u&&(u=i),o<c&&(c=o),o>h&&(h=o));if(l>u||c>h)return this;for(this.cover(l,c).cover(u,h),n=0;n<r;++n)l4(this,s[n],a[n],e[n]);return this}function aU(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,o=(r=Math.floor(t))+1;else{for(var s=i-n||1,a=this._root,l,c;n>e||e>=i||r>t||t>=o;)switch(c=(t<r)<<1|e<n,l=new Array(4),l[c]=a,a=l,s*=2,c){case 0:i=n+s,o=r+s;break;case 1:n=i-s,o=r+s;break;case 2:i=n+s,r=o-s;break;case 3:n=i-s,r=o-s;break}this._root&&this._root.length&&(this._root=a)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this}function lU(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function cU(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function Kt(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function uU(e,t,n){var r,i=this._x0,o=this._y0,s,a,l,c,u=this._x1,h=this._y1,f=[],d=this._root,p,g;for(d&&f.push(new Kt(d,i,o,u,h)),n==null?n=1/0:(i=e-n,o=t-n,u=e+n,h=t+n,n*=n);p=f.pop();)if(!(!(d=p.node)||(s=p.x0)>u||(a=p.y0)>h||(l=p.x1)<i||(c=p.y1)<o))if(d.length){var m=(s+l)/2,v=(a+c)/2;f.push(new Kt(d[3],m,v,l,c),new Kt(d[2],s,v,m,c),new Kt(d[1],m,a,l,v),new Kt(d[0],s,a,m,v)),(g=(t>=v)<<1|e>=m)&&(p=f[f.length-1],f[f.length-1]=f[f.length-1-g],f[f.length-1-g]=p)}else{var b=e-+this._x.call(null,d.data),w=t-+this._y.call(null,d.data),x=b*b+w*w;if(x<n){var _=Math.sqrt(n=x);i=e-_,o=t-_,u=e+_,h=t+_,r=d.data}}return r}function hU(e){if(isNaN(u=+this._x.call(null,e))||isNaN(h=+this._y.call(null,e)))return this;var t,n=this._root,r,i,o,s=this._x0,a=this._y0,l=this._x1,c=this._y1,u,h,f,d,p,g,m,v;if(!n)return this;if(n.length)for(;;){if((p=u>=(f=(s+l)/2))?s=f:l=f,(g=h>=(d=(a+c)/2))?a=d:c=d,t=n,!(n=n[m=g<<1|p]))return this;if(!n.length)break;(t[m+1&3]||t[m+2&3]||t[m+3&3])&&(r=t,v=m)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,i?(o?i.next=o:delete i.next,this):t?(o?t[m]=o:delete t[m],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[v]=n:this._root=n),this):(this._root=o,this)}function fU(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function dU(){return this._root}function pU(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function gU(e){var t=[],n,r=this._root,i,o,s,a,l;for(r&&t.push(new Kt(r,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(r=n.node,o=n.x0,s=n.y0,a=n.x1,l=n.y1)&&r.length){var c=(o+a)/2,u=(s+l)/2;(i=r[3])&&t.push(new Kt(i,c,u,a,l)),(i=r[2])&&t.push(new Kt(i,o,u,c,l)),(i=r[1])&&t.push(new Kt(i,c,s,a,u)),(i=r[0])&&t.push(new Kt(i,o,s,c,u))}return this}function mU(e){var t=[],n=[],r;for(this._root&&t.push(new Kt(this._root,this._x0,this._y0,this._x1,this._y1));r=t.pop();){var i=r.node;if(i.length){var o,s=r.x0,a=r.y0,l=r.x1,c=r.y1,u=(s+l)/2,h=(a+c)/2;(o=i[0])&&t.push(new Kt(o,s,a,u,h)),(o=i[1])&&t.push(new Kt(o,u,a,l,h)),(o=i[2])&&t.push(new Kt(o,s,h,u,c)),(o=i[3])&&t.push(new Kt(o,u,h,l,c))}n.push(r)}for(;r=n.pop();)e(r.node,r.x0,r.y0,r.x1,r.y1);return this}function yU(e){return e[0]}function vU(e){return arguments.length?(this._x=e,this):this._x}function bU(e){return e[1]}function wU(e){return arguments.length?(this._y=e,this):this._y}function df(e,t,n){var r=new pf(t==null?yU:t,n==null?bU:n,NaN,NaN,NaN,NaN);return e==null?r:r.addAll(e)}function pf(e,t,n,r,i,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function c4(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Zt=df.prototype=pf.prototype;Zt.copy=function(){var e=new pf(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,r;if(!t)return e;if(!t.length)return e._root=c4(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var i=0;i<4;++i)(r=t.source[i])&&(r.length?n.push({source:r,target:t.target[i]=new Array(4)}):t.target[i]=c4(r));return e},Zt.add=oU,Zt.addAll=sU,Zt.cover=aU,Zt.data=lU,Zt.extent=cU,Zt.find=uU,Zt.remove=hU,Zt.removeAll=fU,Zt.root=dU,Zt.size=pU,Zt.visit=gU,Zt.visitAfter=mU,Zt.x=vU,Zt.y=wU;function Xr(e){return function(){return e}}function vr(e){return(e()-.5)*1e-6}function _U(e){return e.x+e.vx}function xU(e){return e.y+e.vy}function CU(e){var t,n,r,i=1,o=1;typeof e!="function"&&(e=Xr(e==null?1:+e));function s(){for(var c,u=t.length,h,f,d,p,g,m,v=0;v<o;++v)for(h=df(t,_U,xU).visitAfter(a),c=0;c<u;++c)f=t[c],g=n[f.index],m=g*g,d=f.x+f.vx,p=f.y+f.vy,h.visit(b);function b(w,x,_,C,P){var S=w.data,$=w.r,O=g+$;if(S){if(S.index>f.index){var M=d-S.x-S.vx,A=p-S.y-S.vy,E=M*M+A*A;E<O*O&&(M===0&&(M=vr(r),E+=M*M),A===0&&(A=vr(r),E+=A*A),E=(O-(E=Math.sqrt(E)))/E*i,f.vx+=(M*=E)*(O=($*=$)/(m+$)),f.vy+=(A*=E)*O,S.vx-=M*(O=1-O),S.vy-=A*O)}return}return x>d+O||C<d-O||_>p+O||P<p-O}}function a(c){if(c.data)return c.r=n[c.data.index];for(var u=c.r=0;u<4;++u)c[u]&&c[u].r>c.r&&(c.r=c[u].r)}function l(){if(t){var c,u=t.length,h;for(n=new Array(u),c=0;c<u;++c)h=t[c],n[h.index]=+e(h,c,t)}}return s.initialize=function(c,u){t=c,r=u,l()},s.iterations=function(c){return arguments.length?(o=+c,s):o},s.strength=function(c){return arguments.length?(i=+c,s):i},s.radius=function(c){return arguments.length?(e=typeof c=="function"?c:Xr(+c),l(),s):e},s}function PU(e){return e.index}function u4(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function SU(e){var t=PU,n=h,r,i=Xr(30),o,s,a,l,c,u=1;e==null&&(e=[]);function h(m){return 1/Math.min(a[m.source.index],a[m.target.index])}function f(m){for(var v=0,b=e.length;v<u;++v)for(var w=0,x,_,C,P,S,$,O;w<b;++w)x=e[w],_=x.source,C=x.target,P=C.x+C.vx-_.x-_.vx||vr(c),S=C.y+C.vy-_.y-_.vy||vr(c),$=Math.sqrt(P*P+S*S),$=($-o[w])/$*m*r[w],P*=$,S*=$,C.vx-=P*(O=l[w]),C.vy-=S*O,_.vx+=P*(O=1-O),_.vy+=S*O}function d(){if(s){var m,v=s.length,b=e.length,w=new Map(s.map((_,C)=>[t(_,C,s),_])),x;for(m=0,a=new Array(v);m<b;++m)x=e[m],x.index=m,typeof x.source!="object"&&(x.source=u4(w,x.source)),typeof x.target!="object"&&(x.target=u4(w,x.target)),a[x.source.index]=(a[x.source.index]||0)+1,a[x.target.index]=(a[x.target.index]||0)+1;for(m=0,l=new Array(b);m<b;++m)x=e[m],l[m]=a[x.source.index]/(a[x.source.index]+a[x.target.index]);r=new Array(b),p(),o=new Array(b),g()}}function p(){if(s)for(var m=0,v=e.length;m<v;++m)r[m]=+n(e[m],m,e)}function g(){if(s)for(var m=0,v=e.length;m<v;++m)o[m]=+i(e[m],m,e)}return f.initialize=function(m,v){s=m,c=v,d()},f.links=function(m){return arguments.length?(e=m,d(),f):e},f.id=function(m){return arguments.length?(t=m,f):t},f.iterations=function(m){return arguments.length?(u=+m,f):u},f.strength=function(m){return arguments.length?(n=typeof m=="function"?m:Xr(+m),p(),f):n},f.distance=function(m){return arguments.length?(i=typeof m=="function"?m:Xr(+m),g(),f):i},f}const OU=1664525,$U=1013904223,h4=4294967296;function EU(){let e=1;return()=>(e=(OU*e+$U)%h4)/h4}function MU(e){return e.x}function AU(e){return e.y}var IU=10,TU=Math.PI*(3-Math.sqrt(5));function RU(e){var t,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,s=.6,a=new Map,l=of(h),c=Vh("tick","end"),u=EU();e==null&&(e=[]);function h(){f(),c.call("tick",t),n<r&&(l.stop(),c.call("end",t))}function f(g){var m,v=e.length,b;g===void 0&&(g=1);for(var w=0;w<g;++w)for(n+=(o-n)*i,a.forEach(function(x){x(n)}),m=0;m<v;++m)b=e[m],b.fx==null?b.x+=b.vx*=s:(b.x=b.fx,b.vx=0),b.fy==null?b.y+=b.vy*=s:(b.y=b.fy,b.vy=0);return t}function d(){for(var g=0,m=e.length,v;g<m;++g){if(v=e[g],v.index=g,v.fx!=null&&(v.x=v.fx),v.fy!=null&&(v.y=v.fy),isNaN(v.x)||isNaN(v.y)){var b=IU*Math.sqrt(.5+g),w=g*TU;v.x=b*Math.cos(w),v.y=b*Math.sin(w)}(isNaN(v.vx)||isNaN(v.vy))&&(v.vx=v.vy=0)}}function p(g){return g.initialize&&g.initialize(e,u),g}return d(),t={tick:f,restart:function(){return l.restart(h),t},stop:function(){return l.stop(),t},nodes:function(g){return arguments.length?(e=g,d(),a.forEach(p),t):e},alpha:function(g){return arguments.length?(n=+g,t):n},alphaMin:function(g){return arguments.length?(r=+g,t):r},alphaDecay:function(g){return arguments.length?(i=+g,t):+i},alphaTarget:function(g){return arguments.length?(o=+g,t):o},velocityDecay:function(g){return arguments.length?(s=1-g,t):1-s},randomSource:function(g){return arguments.length?(u=g,a.forEach(p),t):u},force:function(g,m){return arguments.length>1?(m==null?a.delete(g):a.set(g,p(m)),t):a.get(g)},find:function(g,m,v){var b=0,w=e.length,x,_,C,P,S;for(v==null?v=1/0:v*=v,b=0;b<w;++b)P=e[b],x=g-P.x,_=m-P.y,C=x*x+_*_,C<v&&(S=P,v=C);return S},on:function(g,m){return arguments.length>1?(c.on(g,m),t):c.on(g)}}}function kU(){var e,t,n,r,i=Xr(-30),o,s=1,a=1/0,l=.81;function c(d){var p,g=e.length,m=df(e,MU,AU).visitAfter(h);for(r=d,p=0;p<g;++p)t=e[p],m.visit(f)}function u(){if(e){var d,p=e.length,g;for(o=new Array(p),d=0;d<p;++d)g=e[d],o[g.index]=+i(g,d,e)}}function h(d){var p=0,g,m,v=0,b,w,x;if(d.length){for(b=w=x=0;x<4;++x)(g=d[x])&&(m=Math.abs(g.value))&&(p+=g.value,v+=m,b+=m*g.x,w+=m*g.y);d.x=b/v,d.y=w/v}else{g=d,g.x=g.data.x,g.y=g.data.y;do p+=o[g.data.index];while(g=g.next)}d.value=p}function f(d,p,g,m){if(!d.value)return!0;var v=d.x-t.x,b=d.y-t.y,w=m-p,x=v*v+b*b;if(w*w/l<x)return x<a&&(v===0&&(v=vr(n),x+=v*v),b===0&&(b=vr(n),x+=b*b),x<s&&(x=Math.sqrt(s*x)),t.vx+=v*d.value*r/x,t.vy+=b*d.value*r/x),!0;if(d.length||x>=a)return;(d.data!==t||d.next)&&(v===0&&(v=vr(n),x+=v*v),b===0&&(b=vr(n),x+=b*b),x<s&&(x=Math.sqrt(s*x)));do d.data!==t&&(w=o[d.data.index]*r/x,t.vx+=v*w,t.vy+=b*w);while(d=d.next)}return c.initialize=function(d,p){e=d,n=p,u()},c.strength=function(d){return arguments.length?(i=typeof d=="function"?d:Xr(+d),u(),c):i},c.distanceMin=function(d){return arguments.length?(s=d*d,c):Math.sqrt(s)},c.distanceMax=function(d){return arguments.length?(a=d*d,c):Math.sqrt(a)},c.theta=function(d){return arguments.length?(l=d*d,c):Math.sqrt(l)},c}function LU(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function fl(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ii(e){return e=fl(Math.abs(e)),e?e[1]:NaN}function NU(e,t){return function(n,r){for(var i=n.length,o=[],s=0,a=e[0],l=0;i>0&&a>0&&(l+a+1>r&&(a=Math.max(1,r-l)),o.push(n.substring(i-=a,i+a)),!((l+=a+1)>r));)a=e[s=(s+1)%e.length];return o.reverse().join(t)}}function zU(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var DU=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function dl(e){if(!(t=DU.exec(e)))throw new Error("invalid format: "+e);var t;return new gf({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}dl.prototype=gf.prototype;function gf(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}gf.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function qU(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var pl;function HU(e,t){var n=fl(e,t);if(!n)return pl=void 0,e.toPrecision(t);var r=n[0],i=n[1],o=i-(pl=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+fl(e,Math.max(0,t+o-1))[0]}function f4(e,t){var n=fl(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const d4={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:LU,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>f4(e*100,t),r:f4,s:HU,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function p4(e){return e}var g4=Array.prototype.map,m4=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function jU(e){var t=e.grouping===void 0||e.thousands===void 0?p4:NU(g4.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?p4:zU(g4.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",a=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(h,f){h=dl(h);var d=h.fill,p=h.align,g=h.sign,m=h.symbol,v=h.zero,b=h.width,w=h.comma,x=h.precision,_=h.trim,C=h.type;C==="n"?(w=!0,C="g"):d4[C]||(x===void 0&&(x=12),_=!0,C="g"),(v||d==="0"&&p==="=")&&(v=!0,d="0",p="=");var P=(f&&f.prefix!==void 0?f.prefix:"")+(m==="$"?n:m==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():""),S=(m==="$"?r:/[%p]/.test(C)?s:"")+(f&&f.suffix!==void 0?f.suffix:""),$=d4[C],O=/[defgprs%]/.test(C);x=x===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function M(A){var E=P,I=S,T,N,H;if(C==="c")I=$(A)+I,A="";else{A=+A;var D=A<0||1/A<0;if(A=isNaN(A)?l:$(Math.abs(A),x),_&&(A=qU(A)),D&&+A==0&&g!=="+"&&(D=!1),E=(D?g==="("?g:a:g==="-"||g==="("?"":g)+E,I=(C==="s"&&!isNaN(A)&&pl!==void 0?m4[8+pl/3]:"")+I+(D&&g==="("?")":""),O){for(T=-1,N=A.length;++T<N;)if(H=A.charCodeAt(T),48>H||H>57){I=(H===46?i+A.slice(T+1):A.slice(T))+I,A=A.slice(0,T);break}}}w&&!v&&(A=t(A,1/0));var W=E.length+A.length+I.length,F=W<b?new Array(b-W+1).join(d):"";switch(w&&v&&(A=t(F+A,F.length?b-I.length:1/0),F=""),p){case"<":A=E+A+I+F;break;case"=":A=E+F+A+I;break;case"^":A=F.slice(0,W=F.length>>1)+E+A+I+F.slice(W);break;default:A=F+E+A+I;break}return o(A)}return M.toString=function(){return h+""},M}function u(h,f){var d=Math.max(-8,Math.min(8,Math.floor(Ii(f)/3)))*3,p=Math.pow(10,-d),g=c((h=dl(h),h.type="f",h),{suffix:m4[8+d/3]});return function(m){return g(p*m)}}return{format:c,formatPrefix:u}}var gl,y4,v4;FU({thousands:",",grouping:[3],currency:["$",""]});function FU(e){return gl=jU(e),y4=gl.format,v4=gl.formatPrefix,gl}function BU(e){return Math.max(0,-Ii(Math.abs(e)))}function WU(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ii(t)/3)))*3-Ii(Math.abs(e)))}function VU(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ii(t)-Ii(e))+1}function GU(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function YU(){return this.eachAfter(GU)}function XU(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this}function UU(e,t){for(var n=this,r=[n],i,o,s=-1;n=r.pop();)if(e.call(t,n,++s,this),i=n.children)for(o=i.length-1;o>=0;--o)r.push(i[o]);return this}function KU(e,t){for(var n=this,r=[n],i=[],o,s,a,l=-1;n=r.pop();)if(i.push(n),o=n.children)for(s=0,a=o.length;s<a;++s)r.push(o[s]);for(;n=i.pop();)e.call(t,n,++l,this);return this}function ZU(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r}function QU(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function JU(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function eK(e){for(var t=this,n=tK(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function tK(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function nK(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function rK(){return Array.from(this)}function iK(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function oK(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*sK(){var e=this,t,n=[e],r,i,o;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,o=r.length;i<o;++i)n.push(r[i]);while(n.length)}function mf(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=cK)):t===void 0&&(t=lK);for(var n=new Go(e),r,i=[n],o,s,a,l;r=i.pop();)if((s=t(r.data))&&(l=(s=Array.from(s)).length))for(r.children=s,a=l-1;a>=0;--a)i.push(o=s[a]=new Go(s[a])),o.parent=r,o.depth=r.depth+1;return n.eachBefore(hK)}function aK(){return mf(this).eachBefore(uK)}function lK(e){return e.children}function cK(e){return Array.isArray(e)?e[1]:null}function uK(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function hK(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Go(e){this.data=e,this.depth=this.height=0,this.parent=null}Go.prototype=mf.prototype={constructor:Go,count:YU,each:XU,eachAfter:KU,eachBefore:UU,find:ZU,sum:QU,sort:JU,path:eK,ancestors:nK,descendants:rK,leaves:iK,links:oK,copy:aK,[Symbol.iterator]:sK};function fK(e,t){return e.parent===t.parent?1:2}function yf(e){var t=e.children;return t?t[0]:e.t}function vf(e){var t=e.children;return t?t[t.length-1]:e.t}function dK(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function pK(e){for(var t=0,n=0,r=e.children,i=r.length,o;--i>=0;)o=r[i],o.z+=t,o.m+=t,t+=o.s+(n+=o.c)}function gK(e,t,n){return e.a.parent===t.parent?e.a:n}function ml(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}ml.prototype=Object.create(Go.prototype);function mK(e){for(var t=new ml(e,0),n,r=[t],i,o,s,a;n=r.pop();)if(o=n._.children)for(n.children=new Array(a=o.length),s=a-1;s>=0;--s)r.push(i=n.children[s]=new ml(o[s],s)),i.parent=n;return(t.parent=new ml(null,0)).children=[t],t}function yK(){var e=fK,t=1,n=1,r=null;function i(c){var u=mK(c);if(u.eachAfter(o),u.parent.m=-u.z,u.eachBefore(s),r)c.eachBefore(l);else{var h=c,f=c,d=c;c.eachBefore(function(b){b.x<h.x&&(h=b),b.x>f.x&&(f=b),b.depth>d.depth&&(d=b)});var p=h===f?1:e(h,f)/2,g=p-h.x,m=t/(f.x+p+g),v=n/(d.depth||1);c.eachBefore(function(b){b.x=(b.x+g)*m,b.y=b.depth*v})}return c}function o(c){var u=c.children,h=c.parent.children,f=c.i?h[c.i-1]:null;if(u){pK(c);var d=(u[0].z+u[u.length-1].z)/2;f?(c.z=f.z+e(c._,f._),c.m=c.z-d):c.z=d}else f&&(c.z=f.z+e(c._,f._));c.parent.A=a(c,f,c.parent.A||h[0])}function s(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function a(c,u,h){if(u){for(var f=c,d=c,p=u,g=f.parent.children[0],m=f.m,v=d.m,b=p.m,w=g.m,x;p=vf(p),f=yf(f),p&&f;)g=yf(g),d=vf(d),d.a=c,x=p.z+b-f.z-m+e(p._,f._),x>0&&(dK(gK(p,c,h),c,x),m+=x,v+=x),b+=p.m,m+=f.m,w+=g.m,v+=d.m;p&&!vf(d)&&(d.t=p,d.m+=b-v),f&&!yf(g)&&(g.t=f,g.m+=m-w,h=c)}return h}function l(c){c.x*=t,c.y=c.depth*n}return i.separation=function(c){return arguments.length?(e=c,i):e},i.size=function(c){return arguments.length?(r=!1,t=+c[0],n=+c[1],i):r?null:[t,n]},i.nodeSize=function(c){return arguments.length?(r=!0,t=+c[0],n=+c[1],i):r?[t,n]:null},i}function vK(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function bK(e){return function(){return e}}function wK(e){return+e}var b4=[0,1];function Ti(e){return e}function bf(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:bK(isNaN(t)?NaN:.5)}function _K(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function xK(e,t,n){var r=e[0],i=e[1],o=t[0],s=t[1];return i<r?(r=bf(i,r),o=n(s,o)):(r=bf(r,i),o=n(o,s)),function(a){return o(r(a))}}function CK(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=bf(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(a){var l=EV(e,a,1,r)-1;return o[l](i[l](a))}}function PK(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function SK(){var e=b4,t=b4,n=tf,r,i,o,s=Ti,a,l,c;function u(){var f=Math.min(e.length,t.length);return s!==Ti&&(s=_K(e[0],e[f-1])),a=f>2?CK:xK,l=c=null,h}function h(f){return f==null||isNaN(f=+f)?o:(l||(l=a(e.map(r),t,n)))(r(s(f)))}return h.invert=function(f){return s(i((c||(c=a(t,e.map(r),_n)))(f)))},h.domain=function(f){return arguments.length?(e=Array.from(f,wK),u()):e.slice()},h.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},h.rangeRound=function(f){return t=Array.from(f),n=DY,u()},h.clamp=function(f){return arguments.length?(s=f?!0:Ti,u()):s!==Ti},h.interpolate=function(f){return arguments.length?(n=f,u()):n},h.unknown=function(f){return arguments.length?(o=f,h):o},function(f,d){return r=f,i=d,u()}}function OK(){return SK()(Ti,Ti)}function $K(e,t,n,r){var i=RV(e,t,n),o;switch(r=dl(r==null?",f":r),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=WU(i,s))&&(r.precision=o),v4(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=VU(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=BU(i))&&(r.precision=o-(r.type==="%")*2);break}}return y4(r)}function EK(e){var t=e.domain;return e.ticks=function(n){var r=t();return TV(r[0],r[r.length-1],n==null?10:n)},e.tickFormat=function(n,r){var i=t();return $K(i[0],i[i.length-1],n==null?10:n,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,s=r[i],a=r[o],l,c,u=10;for(a<s&&(c=s,s=a,a=c,c=i,i=o,o=c);u-- >0;){if(c=Wh(s,a,n),c===l)return r[i]=s,r[o]=a,t(r);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else if(c<0)s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c;else break;l=c}return e},e}function Yo(){var e=OK();return e.copy=function(){return PK(e,Yo())},vK.apply(e,arguments),EK(e)}function Mt(e){return function(){return e}}const w4=Math.abs,Vt=Math.atan2,Ur=Math.cos,MK=Math.max,wf=Math.min,Hn=Math.sin,Ri=Math.sqrt,rn=1e-12,Xo=Math.PI,yl=Xo/2,vl=2*Xo;function AK(e){return e>1?0:e<-1?Xo:Math.acos(e)}function _4(e){return e>=1?yl:e<=-1?-yl:Math.asin(e)}function x4(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new rU(t)}function IK(e){return e.innerRadius}function TK(e){return e.outerRadius}function RK(e){return e.startAngle}function kK(e){return e.endAngle}function LK(e){return e&&e.padAngle}function NK(e,t,n,r,i,o,s,a){var l=n-e,c=r-t,u=s-i,h=a-o,f=h*l-u*c;if(!(f*f<rn))return f=(u*(t-o)-h*(e-i))/f,[e+f*l,t+f*c]}function bl(e,t,n,r,i,o,s){var a=e-n,l=t-r,c=(s?o:-o)/Ri(a*a+l*l),u=c*l,h=-c*a,f=e+u,d=t+h,p=n+u,g=r+h,m=(f+p)/2,v=(d+g)/2,b=p-f,w=g-d,x=b*b+w*w,_=i-o,C=f*g-p*d,P=(w<0?-1:1)*Ri(MK(0,_*_*x-C*C)),S=(C*w-b*P)/x,$=(-C*b-w*P)/x,O=(C*w+b*P)/x,M=(-C*b+w*P)/x,A=S-m,E=$-v,I=O-m,T=M-v;return A*A+E*E>I*I+T*T&&(S=O,$=M),{cx:S,cy:$,x01:-u,y01:-h,x11:S*(i/_-1),y11:$*(i/_-1)}}function Uo(){var e=IK,t=TK,n=Mt(0),r=null,i=RK,o=kK,s=LK,a=null,l=x4(c);function c(){var u,h,f=+e.apply(this,arguments),d=+t.apply(this,arguments),p=i.apply(this,arguments)-yl,g=o.apply(this,arguments)-yl,m=w4(g-p),v=g>p;if(a||(a=u=l()),d<f&&(h=d,d=f,f=h),!(d>rn))a.moveTo(0,0);else if(m>vl-rn)a.moveTo(d*Ur(p),d*Hn(p)),a.arc(0,0,d,p,g,!v),f>rn&&(a.moveTo(f*Ur(g),f*Hn(g)),a.arc(0,0,f,g,p,v));else{var b=p,w=g,x=p,_=g,C=m,P=m,S=s.apply(this,arguments)/2,$=S>rn&&(r?+r.apply(this,arguments):Ri(f*f+d*d)),O=wf(w4(d-f)/2,+n.apply(this,arguments)),M=O,A=O,E,I;if($>rn){var T=_4($/f*Hn(S)),N=_4($/d*Hn(S));(C-=T*2)>rn?(T*=v?1:-1,x+=T,_-=T):(C=0,x=_=(p+g)/2),(P-=N*2)>rn?(N*=v?1:-1,b+=N,w-=N):(P=0,b=w=(p+g)/2)}var H=d*Ur(b),D=d*Hn(b),W=f*Ur(_),F=f*Hn(_);if(O>rn){var X=d*Ur(w),G=d*Hn(w),L=f*Ur(x),R=f*Hn(x),z;if(m<Xo)if(z=NK(H,D,L,R,X,G,W,F)){var q=H-z[0],j=D-z[1],V=X-z[0],U=G-z[1],K=1/Hn(AK((q*V+j*U)/(Ri(q*q+j*j)*Ri(V*V+U*U)))/2),J=Ri(z[0]*z[0]+z[1]*z[1]);M=wf(O,(f-J)/(K-1)),A=wf(O,(d-J)/(K+1))}else M=A=0}P>rn?A>rn?(E=bl(L,R,H,D,d,A,v),I=bl(X,G,W,F,d,A,v),a.moveTo(E.cx+E.x01,E.cy+E.y01),A<O?a.arc(E.cx,E.cy,A,Vt(E.y01,E.x01),Vt(I.y01,I.x01),!v):(a.arc(E.cx,E.cy,A,Vt(E.y01,E.x01),Vt(E.y11,E.x11),!v),a.arc(0,0,d,Vt(E.cy+E.y11,E.cx+E.x11),Vt(I.cy+I.y11,I.cx+I.x11),!v),a.arc(I.cx,I.cy,A,Vt(I.y11,I.x11),Vt(I.y01,I.x01),!v))):(a.moveTo(H,D),a.arc(0,0,d,b,w,!v)):a.moveTo(H,D),!(f>rn)||!(C>rn)?a.lineTo(W,F):M>rn?(E=bl(W,F,X,G,f,-M,v),I=bl(H,D,L,R,f,-M,v),a.lineTo(E.cx+E.x01,E.cy+E.y01),M<O?a.arc(E.cx,E.cy,M,Vt(E.y01,E.x01),Vt(I.y01,I.x01),!v):(a.arc(E.cx,E.cy,M,Vt(E.y01,E.x01),Vt(E.y11,E.x11),!v),a.arc(0,0,f,Vt(E.cy+E.y11,E.cx+E.x11),Vt(I.cy+I.y11,I.cx+I.x11),v),a.arc(I.cx,I.cy,M,Vt(I.y11,I.x11),Vt(I.y01,I.x01),!v))):a.arc(0,0,f,_,x,v)}if(a.closePath(),u)return a=null,u+""||null}return c.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,h=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Xo/2;return[Ur(h)*u,Hn(h)*u]},c.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:Mt(+u),c):e},c.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:Mt(+u),c):t},c.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:Mt(+u),c):n},c.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:Mt(+u),c):r},c.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:Mt(+u),c):i},c.endAngle=function(u){return arguments.length?(o=typeof u=="function"?u:Mt(+u),c):o},c.padAngle=function(u){return arguments.length?(s=typeof u=="function"?u:Mt(+u),c):s},c.context=function(u){return arguments.length?(a=u==null?null:u,c):a},c}function C4(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function P4(e){this._context=e}P4.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function S4(e){return new P4(e)}function zK(e){return e[0]}function DK(e){return e[1]}function qK(e,t){var n=Mt(!0),r=null,i=S4,o=null,s=x4(a);e=typeof e=="function"?e:e===void 0?zK:Mt(e),t=typeof t=="function"?t:t===void 0?DK:Mt(t);function a(l){var c,u=(l=C4(l)).length,h,f=!1,d;for(r==null&&(o=i(d=s())),c=0;c<=u;++c)!(c<u&&n(h=l[c],c,l))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(h,c,l),+t(h,c,l));if(d)return o=null,d+""||null}return a.x=function(l){return arguments.length?(e=typeof l=="function"?l:Mt(+l),a):e},a.y=function(l){return arguments.length?(t=typeof l=="function"?l:Mt(+l),a):t},a.defined=function(l){return arguments.length?(n=typeof l=="function"?l:Mt(!!l),a):n},a.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),a):i},a.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),a):r},a}function HK(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function jK(e){return e}function FK(){var e=jK,t=HK,n=null,r=Mt(0),i=Mt(vl),o=Mt(0);function s(a){var l,c=(a=C4(a)).length,u,h,f=0,d=new Array(c),p=new Array(c),g=+r.apply(this,arguments),m=Math.min(vl,Math.max(-vl,i.apply(this,arguments)-g)),v,b=Math.min(Math.abs(m)/c,o.apply(this,arguments)),w=b*(m<0?-1:1),x;for(l=0;l<c;++l)(x=p[d[l]=l]=+e(a[l],l,a))>0&&(f+=x);for(t!=null?d.sort(function(_,C){return t(p[_],p[C])}):n!=null&&d.sort(function(_,C){return n(a[_],a[C])}),l=0,h=f?(m-c*w)/f:0;l<c;++l,g=v)u=d[l],x=p[u],v=g+(x>0?x*h:0)+w,p[u]={data:a[u],index:l,value:x,startAngle:g,endAngle:v,padAngle:b};return p}return s.value=function(a){return arguments.length?(e=typeof a=="function"?a:Mt(+a),s):e},s.sortValues=function(a){return arguments.length?(t=a,n=null,s):t},s.sort=function(a){return arguments.length?(n=a,t=null,s):n},s.startAngle=function(a){return arguments.length?(r=typeof a=="function"?a:Mt(+a),s):r},s.endAngle=function(a){return arguments.length?(i=typeof a=="function"?a:Mt(+a),s):i},s.padAngle=function(a){return arguments.length?(o=typeof a=="function"?a:Mt(+a),s):o},s}function Ko(e,t,n){this.k=e,this.x=t,this.y=n}Ko.prototype={constructor:Ko,scale:function(e){return e===1?this:new Ko(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Ko(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},Ko.prototype;var BK=Object.defineProperty,WK=Object.defineProperties,VK=Object.getOwnPropertyDescriptors,O4=Object.getOwnPropertySymbols,GK=Object.prototype.hasOwnProperty,YK=Object.prototype.propertyIsEnumerable,$4=(e,t,n)=>t in e?BK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,XK=(e,t)=>{for(var n in t||(t={}))GK.call(t,n)&&$4(e,n,t[n]);if(O4)for(var n of O4(t))YK.call(t,n)&&$4(e,n,t[n]);return e},UK=(e,t)=>WK(e,VK(t));const E4=e=>{const[{datum:t,data:n,indexes:r,width:i=280,height:o=120,iconSize:s=32,gap:a=12,progressHeight:l=8,borderRadius:c=12,positionH:u="normal",themeColors:h,valueFormatter:f=T=>`${T}%`},d]=at(e,["width","height","iconSize","gap","progressHeight","borderRadius"]),p=t.value,g=p!=null?p:0,m=Math.max(...n.items.map(T=>{var N;return(N=T.value)!=null?N:0}),100),v=i-2*a,w=Yo().domain([0,m]).range([0,v])(g),x=`${h.colorPrimary}-progress`,_=`${h.colorPrimaryBg}-progress-bg`,C=ae(y(Ve,{indexes:r})),P=a,S=u==="flipped"?i-a-s:a,$=P,O=u==="flipped"?a:s+2*a,M=i-s-3*a,A=$,E=o-a-l,I=p!==void 0;return k(Y,UK(XK({},d),{children:[k(Ke,{children:[k("linearGradient",{id:x,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[y("stop",{offset:"0%",stopColor:h.colorPrimary}),y("stop",{offset:"100%",stopColor:be.mix(h.colorPrimary,"#fff",20).toHexString()})]}),k("linearGradient",{id:_,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[y("stop",{offset:"0%",stopColor:h.colorPrimaryBg}),y("stop",{offset:"100%",stopColor:h.colorBg})]})]}),y(Le,{x:0,y:0,width:i,height:o,fill:h.colorBgElevated,stroke:h.colorPrimaryBg,strokeWidth:1,rx:c,ry:c,"data-element-type":"shape"}),y(Ft,{indexes:r,x:S,y:$,size:s,fill:h.colorPrimary}),y(Ve,{indexes:r,x:O,y:A,width:M,alignHorizontal:u==="flipped"?"right":"left",alignVertical:"top",fontSize:16,fontWeight:"medium",fill:h.colorText,children:t.label}),I&&y(Ro,{indexes:r,x:O,y:A+C.height,width:M,alignHorizontal:u==="flipped"?"right":"left",alignVertical:"top",lineHeight:1,fontSize:24,fontWeight:"bold",fill:h.colorPrimary,value:g,formatter:f}),y(ht,{indexes:r,x:O,y:A+C.height+(I?27:4),width:M,alignHorizontal:u==="flipped"?"right":"left",alignVertical:"top",fontSize:11,fill:h.colorTextSecondary,lineNumber:I?2:3,wordWrap:!0,children:t.desc}),y(Le,{x:a,y:E,width:v,height:l,fill:`url(#${_})`,rx:l/2,ry:l/2,"data-element-type":"shape"}),y(Le,{x:a,y:E,width:w,height:l,fill:`url(#${x})`,rx:l/2,ry:l/2,"data-element-type":"shape"})]}))};lt("progress-card",{component:E4,composites:["icon","label","value","desc"]});var KK=Object.defineProperty,ZK=Object.defineProperties,QK=Object.getOwnPropertyDescriptors,M4=Object.getOwnPropertySymbols,JK=Object.prototype.hasOwnProperty,eZ=Object.prototype.propertyIsEnumerable,A4=(e,t,n)=>t in e?KK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tZ=(e,t)=>{for(var n in t||(t={}))JK.call(t,n)&&A4(e,n,t[n]);if(M4)for(var n of M4(t))eZ.call(t,n)&&A4(e,n,t[n]);return e},nZ=(e,t)=>ZK(e,QK(t));const I4=e=>{const[{datum:t,indexes:n,width:r=280,height:i=120,iconSize:o=30,circleRadius:s=80,positionH:a="normal",positionV:l="normal",themeColors:c},u]=at(e,["width","height","iconSize","circleRadius"]),h=4*s/(3*Math.PI),f=2,d=4,p=28,g=20,m=g+20,v=g,b=8,w=35,x=40,_=30,C=String(n[0]+1).padStart(2,"0"),P=a==="flipped",S=l==="flipped",$=()=>P?{diagonalStartX:r-d,diagonalStartY:S?i-w:w,diagonalEndX:r-x,diagonalEndY:S?i-d:d,topLineStartX:r-x,topLineEndX:h,topLineY:S?i-d:d}:{diagonalStartX:d,diagonalStartY:S?i-w:w,diagonalEndX:x,diagonalEndY:S?i-d:d,topLineStartX:x,topLineEndX:r-h,topLineY:S?i-d:d},O=()=>{if(P){const H=s+10,D=r-H-x;return{valueX:r-_,contentX:H,contentWidth:D,circleX:0,circleY:S?0:i,iconX:h-o/2}}else return{valueX:0,contentX:x,contentWidth:r-x-s-10,circleX:r,circleY:S?0:i,iconX:r-h-o/2}},M=$(),A=O(),E=S?h-o/2:i-h-o/2,I=ae(y(Ve,{indexes:n,width:A.contentWidth,children:t.label})),T=v+I.height+b,N=()=>{const{circleX:H,circleY:D}=A;return P?S?`M ${H} ${D} L ${H} ${D+s} A ${s} ${s} 0 0 0 ${H+s} ${D} Z`:`M ${H} ${D} L ${H} ${D-s} A ${s} ${s} 0 0 1 ${H+s} ${D} Z`:S?`M ${H} ${D} L ${H} ${D+s} A ${s} ${s} 0 0 1 ${H-s} ${D} Z`:`M ${H} ${D} L ${H} ${D-s} A ${s} ${s} 0 0 0 ${H-s} ${D} Z`};return k(Y,nZ(tZ({},u),{width:r,height:i,children:[k(Ct,{children:[y(Pe,{d:`M ${M.diagonalStartX} ${M.diagonalStartY} L ${M.diagonalEndX} ${M.diagonalEndY}`,stroke:c.colorPrimary,strokeWidth:f,fill:"none"}),y(Pe,{d:`M ${M.topLineStartX} ${M.topLineY} L ${M.topLineEndX} ${M.topLineY}`,stroke:c.colorPrimary,strokeWidth:f,fill:"none"}),y(Ze,{x:M.diagonalStartX-d,y:M.diagonalStartY-d,width:d*2,height:d*2,fill:c.colorPrimary}),y(Ze,{x:M.topLineEndX-d,y:M.topLineY-d,width:d*2,height:d*2,fill:c.colorPrimary})]}),k(Y,{children:[y(De,{x:A.valueX,y:m,fontSize:p,fontWeight:"bold",fill:c.colorPrimary,children:C}),y(Pe,{d:N(),fill:c.colorPrimary,"data-element-type":"shape"}),t.icon&&y(Ft,{indexes:n,x:A.iconX,y:E,size:o,fill:c.colorWhite}),t.label&&y(Ve,{indexes:n,x:A.contentX,y:v,width:A.contentWidth,fontWeight:"bold",fill:c.colorText,alignHorizontal:P?"right":"left",children:t.label}),t.desc&&y(ht,{indexes:n,x:A.contentX,y:T,width:A.contentWidth,fill:c.colorTextSecondary,alignHorizontal:P?"right":"left",children:t.desc})]})]}))};lt("quarter-circular",{component:I4,composites:["icon","label","desc"]});var rZ=Object.defineProperty,iZ=Object.defineProperties,oZ=Object.getOwnPropertyDescriptors,T4=Object.getOwnPropertySymbols,sZ=Object.prototype.hasOwnProperty,aZ=Object.prototype.propertyIsEnumerable,R4=(e,t,n)=>t in e?rZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lZ=(e,t)=>{for(var n in t||(t={}))sZ.call(t,n)&&R4(e,n,t[n]);if(T4)for(var n of T4(t))aZ.call(t,n)&&R4(e,n,t[n]);return e},cZ=(e,t)=>iZ(e,oZ(t));const k4=e=>{const[{datum:t,indexes:n,width:r=150,height:i=150,iconSize:o=30,padding:s=20,borderRadius:a=16,positionH:l="center",positionV:c="middle",themeColors:u},h]=at(e,["width","height","iconSize","padding","borderRadius"]),f=r-s*2,d=s,p=s,g=l==="flipped"?r-s-o:l==="center"?(r-o)/2:d,m=p,v=m+o+8,b=ae(y(Ve,{indexes:n,width:f,children:t.label})),w=l==="flipped"?r-s-f:l==="center"?s:d,x=v+b.height+4,_=w,C=a;let P="";return l==="center"&&c==="middle"?P=`
41
31
  M ${C} 0
42
32
  L ${r-C} 0
43
33
  Q ${r} 0 ${r} ${C}
@@ -89,11 +79,11 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
89
79
  L 0 ${C}
90
80
  Q 0 0 ${C} 0
91
81
  Z
92
- `,k(Y,xK(wK({},h),{children:[y(Pe,{d:P,x:0,y:0,width:r,height:i,fill:u.colorPrimary,"data-element-type":"shape"}),y(Ft,{indexes:n,x:g,y:m,size:o,fill:u.colorBg}),y(Ve,{indexes:n,x:_,y:v,width:f,fontSize:14,fontWeight:"bold",fill:u.colorBg,alignHorizontal:l==="flipped"?"right":"left",children:t.label}),t.desc&&y(ft,{indexes:n,x:w,y:x,width:f,fontSize:11,wordWrap:!0,fill:u.colorBg,alignHorizontal:l==="flipped"?"right":"left",children:t.desc})]}))};ct("quarter-simple-card",{component:_4,composites:["icon","label","desc"]});var CK=Object.defineProperty,PK=Object.defineProperties,OK=Object.getOwnPropertyDescriptors,w4=Object.getOwnPropertySymbols,SK=Object.prototype.hasOwnProperty,$K=Object.prototype.propertyIsEnumerable,x4=(e,t,n)=>t in e?CK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,EK=(e,t)=>{for(var n in t||(t={}))SK.call(t,n)&&x4(e,n,t[n]);if(w4)for(var n of w4(t))$K.call(t,n)&&x4(e,n,t[n]);return e},MK=(e,t)=>PK(e,OK(t));const C4=e=>{const[{datum:t,indexes:n,width:r=240,height:i=140,iconSize:o=28,gap:s=12,ribbonHeight:a=32,themeColors:l},c]=lt(e,["width","height","iconSize","gap","ribbonHeight"]),u=`${l.colorPrimary}-ribbon`;return k(Y,MK(EK({},c),{children:[y(Ke,{children:k("linearGradient",{id:u,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[y("stop",{offset:"0%",stopColor:l.colorPrimary}),y("stop",{offset:"100%",stopColor:be(l.colorPrimary).darken(15).toHexString()})]})}),k(Pt,{children:[y(Le,{x:0,y:0,width:r,height:i,fill:l.colorBgElevated,stroke:l.colorPrimaryBg,strokeWidth:1,rx:8,ry:8}),y(Le,{x:0,y:0,width:r,height:a,fill:`url(#${u})`,rx:8,ry:8}),y(Le,{x:0,y:8,width:r,height:a-8,fill:`url(#${u})`}),y(Pe,{x:r-20,y:a,width:20,height:8,fill:be(l.colorPrimary).darken(25).toHexString(),d:"M0,0 L20,0 L15,8 L5,8 Z"})]}),y(Ft,{indexes:n,x:s,y:a+s,size:o,fill:l.colorPrimary}),y(Ve,{indexes:n,x:o+2*s,y:a+s,width:r-o-3*s,height:o,alignHorizontal:"left",alignVertical:"middle",lineHeight:1,fontWeight:"bold",fill:l.colorText,children:t.label}),y(ft,{indexes:n,x:s,y:a+o+s+5,width:r-2*s,alignHorizontal:"left",fill:l.colorTextSecondary,lineNumber:3,wordWrap:!0,children:t.desc}),y(Ft,{indexes:n,x:r-s-8,y:s/2,size:16,fill:l.colorWhite})]}))};ct("ribbon-card",{component:C4,composites:["icon","label","desc"]});var IK=Object.defineProperty,AK=Object.defineProperties,TK=Object.getOwnPropertyDescriptors,P4=Object.getOwnPropertySymbols,RK=Object.prototype.hasOwnProperty,kK=Object.prototype.propertyIsEnumerable,O4=(e,t,n)=>t in e?IK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,LK=(e,t)=>{for(var n in t||(t={}))RK.call(t,n)&&O4(e,n,t[n]);if(P4)for(var n of P4(t))kK.call(t,n)&&O4(e,n,t[n]);return e},NK=(e,t)=>AK(e,TK(t));const S4=e=>{const[{indexes:t,datum:n,themeColors:r,width:i=300,height:o=40,padding:s=4,positionH:a="normal"},l]=lt(e,["width","height","borderRadius","padding"]),c=o/2,u=c,h=s,f=i-c*2,d=o-s*2;return k(Y,NK(LK({},l),{children:[y(Le,{"data-element-type":"shape",width:i,height:o,rx:c,ry:c,fill:r.colorPrimaryBg,stroke:r.colorPrimary,strokeWidth:1,opacity:.8}),y(Ve,{indexes:t,x:u,y:h,width:f,height:d,alignHorizontal:a==="flipped"?"right":a==="center"?"center":"left",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:r.colorText,children:n.label})]}))};ct("rounded-rect-node",{component:S4,composites:["label"]});var zK=Object.defineProperty,DK=Object.defineProperties,qK=Object.getOwnPropertyDescriptors,$4=Object.getOwnPropertySymbols,HK=Object.prototype.hasOwnProperty,jK=Object.prototype.propertyIsEnumerable,E4=(e,t,n)=>t in e?zK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,FK=(e,t)=>{for(var n in t||(t={}))HK.call(t,n)&&E4(e,n,t[n]);if($4)for(var n of $4(t))jK.call(t,n)&&E4(e,n,t[n]);return e},BK=(e,t)=>DK(e,qK(t));const M4=e=>{const[{width:t=24,height:n=t,strokeWidth:r=2,themeColors:i,datum:o},s]=lt(e,["width","height"]),a=Math.min(t,n)-r,l=r/2;return k(Y,BK(FK({},s),{width:t,height:n,children:[y(Le,{width:t,height:n,fill:"none",visibility:"hidden"}),y(Ze,{x:l,y:l,width:a,height:a,fill:i.colorPrimary,stroke:i.isDarkMode?"#FFF":"#000",strokeWidth:r,"data-element-type":"shape",children:y("title",{children:o.label||o.desc})})]}))};ct("simple-circle-node",{component:M4,composites:[]});var WK=Object.defineProperty,VK=Object.defineProperties,GK=Object.getOwnPropertyDescriptors,I4=Object.getOwnPropertySymbols,YK=Object.prototype.hasOwnProperty,XK=Object.prototype.propertyIsEnumerable,A4=(e,t,n)=>t in e?WK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,UK=(e,t)=>{for(var n in t||(t={}))YK.call(t,n)&&A4(e,n,t[n]);if(I4)for(var n of I4(t))XK.call(t,n)&&A4(e,n,t[n]);return e},KK=(e,t)=>VK(e,GK(t));const T4=e=>{const[{indexes:t,datum:n,width:r=140,themeColors:i,positionV:o="normal"},s]=lt(e,["width"]),a=o!=="flipped",l=a?"bottom":"top",c=y(Ve,{indexes:t,width:r,fill:i.colorText,alignHorizontal:"center",alignVertical:l,fontSize:14,children:n.label}),u=y(ft,{indexes:t,width:r,fill:i.colorTextSecondary,alignHorizontal:"center",alignVertical:l,children:n.desc}),h=30,f=10,d=ae(c),p=ae(u),g=d.height+p.height,m=g+f+h+f+g;return y(Y,KK(UK({width:r,height:m},s),{children:k(ve,{flexDirection:"column",alignItems:"center",children:[a?k(tt,{children:[u,c,y(yt,{height:f})]}):y(tt,{children:y(yt,{height:g+f})}),k(Pi,{horizontal:"center",vertical:"middle",children:[y(ZK,{width:r,height:h,fill:i.colorPrimary}),y(De,{width:r,height:h,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:n.time?n.time:String(t[0]+1).padStart(2,"0").slice(-2)})]}),a?y(tt,{children:y(yt,{height:g+f})}):k(tt,{children:[y(yt,{height:f}),c,u]})]})}))},ZK=e=>{const{x:t=0,y:n=0,width:r=100,height:i=40,fill:o="#FF356A",size:s=10}=e;return y(Yt,{width:r,height:i,points:[{x:t,y:n},{x:t+r-s,y:n},{x:t+r,y:n+i/2},{x:t+r-s,y:n+i},{x:t,y:n+i},{x:t+s,y:n+i/2}],fill:o,"data-element-type":"shape"})};ct("simple-horizontal-arrow",{component:T4,composites:["label","desc","time"]});var QK=Object.defineProperty,JK=Object.defineProperties,eZ=Object.getOwnPropertyDescriptors,R4=Object.getOwnPropertySymbols,tZ=Object.prototype.hasOwnProperty,nZ=Object.prototype.propertyIsEnumerable,k4=(e,t,n)=>t in e?QK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rZ=(e,t)=>{for(var n in t||(t={}))tZ.call(t,n)&&k4(e,n,t[n]);if(R4)for(var n of R4(t))nZ.call(t,n)&&k4(e,n,t[n]);return e},iZ=(e,t)=>JK(e,eZ(t));const L4=e=>{const[{indexes:t,datum:n,width:r=180,illusSize:i=r,gap:o=8,themeColors:s,usePaletteColor:a=!1},l]=lt(e,["width","illusSize","gap","usePaletteColor"]),{label:c,desc:u}=n,h=a?s.colorPrimary:s.colorText,f=y(Ve,{indexes:t,width:r,alignHorizontal:"center",alignVertical:"middle",fill:h,children:c}),d=ae(f);return k(ve,iZ(rZ({},l),{width:r,height:i+o+d.height+o+48,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:o,children:[y(vw,{indexes:t,width:i,height:i}),f,y(ft,{indexes:t,width:r,alignHorizontal:"center",alignVertical:"top",fill:s.colorTextSecondary,lineNumber:3,children:u})]}))};ct("simple-illus",{component:L4,composites:["illus","label","desc"]});var oZ=Object.defineProperty,sZ=Object.defineProperties,aZ=Object.getOwnPropertyDescriptors,N4=Object.getOwnPropertySymbols,lZ=Object.prototype.hasOwnProperty,cZ=Object.prototype.propertyIsEnumerable,z4=(e,t,n)=>t in e?oZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lf=(e,t)=>{for(var n in t||(t={}))lZ.call(t,n)&&z4(e,n,t[n]);if(N4)for(var n of N4(t))cZ.call(t,n)&&z4(e,n,t[n]);return e},cf=(e,t)=>sZ(e,aZ(t));const D4=e=>{const[{indexes:t,datum:n,width:r=200,height:i,gap:o=4,showIcon:s=!0,iconSize:a=30,iconType:l="default",positionH:c="normal",positionV:u="normal",usePaletteColor:h=!1,themeColors:f},d]=lt(e,["width","height","gap","showIcon","iconSize","iconType","usePaletteColor"]),{label:p,desc:g,icon:m}=n,b=(N=>N==="normal"?"left":N==="flipped"?"right":"center")(c),_=h?f.colorPrimary:f.colorText,x=14,w=1.4,P=ae(y(Ve,{indexes:t,width:r,alignHorizontal:"center",alignVertical:"middle",fill:_,children:p})),O=s?l==="circle"?y(Dr,{indexes:t,size:a,fill:f.colorPrimary,colorBg:f.colorBg}):y(Ft,{indexes:t,size:a,fill:f.colorTextSecondary}):null;if(!s||!m){const N=i?Math.max(0,i-P.height-o):void 0,H=N?N<=60?1:Math.floor(N/(w*x)):2,D=i?u==="middle"?(i-P.height-(N||0)-o)/2:u==="flipped"?i-P.height-(N||0)-o:0:0;return k(Y,cf(lf({},d),{children:[y(Ve,{indexes:t,width:r,y:D,alignHorizontal:b,alignVertical:"middle",fill:_,children:p}),y(ft,{indexes:t,width:r,height:N,y:D+P.height+o,alignHorizontal:b,alignVertical:A(),lineNumber:H,fill:f.colorTextSecondary,children:g})]}))}if(c==="center"){const N=s&&m?a:0,H=i?Math.max(0,i-P.height-N-o*2):void 0,D=H?H<=60?1:Math.floor(H/(w*x)):2,B=P.height+(H||0)+o,F=i?u==="middle"?(i-B-N-o)/2:u==="flipped"?i-B-N-o:0:0;return y(ve,cf(lf({},d),{flexDirection:"column",gap:o,alignItems:"center",children:u==="flipped"?k(tt,{children:[k(Y,{children:[y(Ve,{indexes:t,width:r,y:F,alignHorizontal:"center",alignVertical:"middle",fill:_,children:p}),y(ft,{indexes:t,width:r,height:H,y:F+P.height+o,alignHorizontal:"center",alignVertical:"bottom",lineNumber:D,fill:f.colorTextSecondary,children:g})]}),O]}):k(tt,{children:[O,k(Y,{children:[y(Ve,{indexes:t,width:r,y:F,alignHorizontal:"center",alignVertical:"middle",fill:_,children:p}),y(ft,{indexes:t,width:r,height:H,y:F+P.height+o,alignHorizontal:"center",alignVertical:"top",lineNumber:D,fill:f.colorTextSecondary,children:g})]})]})}))}const $=ae(O),S=Math.max(r-$.width-o,0),M=i?Math.max(0,i-P.height-o):void 0,I=M?M<=60?1:Math.floor(M/(w*x)):2,E=i?u==="middle"?(i-P.height-(M||0)-o)/2:u==="flipped"?i-P.height-(M||0)-o:0:0;return y(ve,cf(lf({},d),{flexDirection:"row",gap:o,alignItems:T(u),children:c==="flipped"?k(tt,{children:[k(Y,{children:[y(Ve,{indexes:t,width:S,y:E,alignHorizontal:"right",alignVertical:"middle",fill:_,children:p}),y(ft,{indexes:t,width:S,height:M,y:E+P.height+o,alignHorizontal:"right",alignVertical:A(),lineNumber:I,fill:f.colorTextSecondary,children:g})]}),O]}):k(tt,{children:[O,k(Y,{children:[y(Ve,{indexes:t,width:S,y:E,alignHorizontal:"left",alignVertical:"middle",fill:_,children:p}),y(ft,{indexes:t,width:S,height:M,y:E+P.height+o,alignHorizontal:"left",alignVertical:A(),lineNumber:I,fill:f.colorTextSecondary,children:g})]})]})}));function A(N,H){return"top"}function T(N){return N==="normal"?"flex-start":N==="flipped"?"flex-end":"center"}};ct("simple",{component:D4,composites:["icon","label","desc"]});var uZ=Object.defineProperty,hZ=Object.defineProperties,fZ=Object.getOwnPropertyDescriptors,q4=Object.getOwnPropertySymbols,dZ=Object.prototype.hasOwnProperty,pZ=Object.prototype.propertyIsEnumerable,H4=(e,t,n)=>t in e?uZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gZ=(e,t)=>{for(var n in t||(t={}))dZ.call(t,n)&&H4(e,n,t[n]);if(q4)for(var n of q4(t))pZ.call(t,n)&&H4(e,n,t[n]);return e},mZ=(e,t)=>hZ(e,fZ(t));const j4=e=>{const[{indexes:t,datum:n,height:r=140,themeColors:i,positionH:o="normal"},s]=lt(e,["height"]),a=o==="normal"?"right":"left",l=y(Ve,{indexes:t,width:120,fill:i.colorText,alignHorizontal:a,alignVertical:"middle",fontSize:14,children:n.label}),c=y(ft,{indexes:t,width:120,fill:i.colorTextSecondary,alignHorizontal:a,alignVertical:"top",children:n.desc}),u=o!=="flipped",h=15,f=30,d=120,p=d+h+f+h+d;return y(Y,mZ(gZ({width:p,height:r},s),{children:k(ve,{flexDirection:"row",alignItems:"center",children:[u?k(tt,{children:[k(ve,{flexDirection:"column",alignItems:"flex-end",children:[l,c]}),y(yt,{width:h})]}):y(tt,{children:y(yt,{width:d+h})}),k(Pi,{horizontal:"center",vertical:"middle",children:[y(yZ,{width:f,height:r,fill:i.colorPrimary}),y(De,{width:f,height:r,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:String(t[0]+1).padStart(2,"0").slice(-2)})]}),u?y(tt,{children:y(yt,{width:d+h})}):k(tt,{children:[y(yt,{width:h}),k(ve,{flexDirection:"column",alignItems:"flex-start",children:[l,c]})]})]})}))},yZ=e=>{const{x:t=0,y:n=0,width:r=30,height:i=100,fill:o="#FF356A",size:s=10}=e;return y(Yt,{width:r,height:i,points:[{x:t,y:n},{x:t+r/2,y:n+s},{x:t+r,y:n},{x:t+r,y:n+i-s},{x:t+r/2,y:n+i},{x:t,y:n+i-s}],fill:o,"data-element-type":"shape"})};ct("simple-vertical-arrow",{component:j4,composites:["label","desc"]});var vZ=Object.defineProperty,bZ=Object.defineProperties,_Z=Object.getOwnPropertyDescriptors,F4=Object.getOwnPropertySymbols,wZ=Object.prototype.hasOwnProperty,xZ=Object.prototype.propertyIsEnumerable,B4=(e,t,n)=>t in e?vZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,CZ=(e,t)=>{for(var n in t||(t={}))wZ.call(t,n)&&B4(e,n,t[n]);if(F4)for(var n of F4(t))xZ.call(t,n)&&B4(e,n,t[n]);return e},PZ=(e,t)=>bZ(e,_Z(t));const uf=80,hf=3,W4=e=>{const[{datum:t,indexes:n,width:r=200,gap:i=4,positionH:o="center",themeColors:s},a]=lt(e,["width","height","gap"]),l=ae(y(Ve,{indexes:n,fontSize:18,fontWeight:"bold",width:r,children:t.label})),c=t.desc?ae(y(ft,{indexes:n,width:r,wordWrap:!0,children:t.desc})):{height:0},u=l.height+i+hf+(t.desc?i*2+c.height:0),h=0,f=0,d=o==="center"?"center":o==="flipped"?"right":"left",p=o==="center"?(r-uf)/2:o==="flipped"?r-uf:0,g=f+l.height+i,m=0,v=g+hf+i*2;return k(Y,PZ(CZ({width:r,height:u},a),{children:[t.label&&y(Ve,{indexes:n,x:h,y:f,width:r,alignHorizontal:d,fill:s.colorPrimary,fontSize:18,fontWeight:"bold",children:t.label}),t.label&&y(Le,{x:p,y:g,width:uf,height:hf,fill:s.colorPrimary,"data-element-type":"shape"}),t.desc&&y(ft,{indexes:n,width:r,x:m,y:v,alignHorizontal:d,wordWrap:!0,fill:s.colorText,children:t.desc})]}))};ct("underline-text",{component:W4,composites:["label","desc"]});var OZ=Object.defineProperty,SZ=Object.defineProperties,$Z=Object.getOwnPropertyDescriptors,V4=Object.getOwnPropertySymbols,EZ=Object.prototype.hasOwnProperty,MZ=Object.prototype.propertyIsEnumerable,G4=(e,t,n)=>t in e?OZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,IZ=(e,t)=>{for(var n in t||(t={}))EZ.call(t,n)&&G4(e,n,t[n]);if(V4)for(var n of V4(t))MZ.call(t,n)&&G4(e,n,t[n]);return e},AZ=(e,t)=>SZ(e,$Z(t));const Y4=e=>{const[{indexes:t,datum:n,height:r=140,themeColors:i,positionH:o="normal"},s]=lt(e,["height"]),l=o!=="flipped"?"right":"left",c=y(Ve,{indexes:t,width:120,fill:i.colorText,alignHorizontal:l,alignVertical:"middle",fontSize:14,children:n.label}),u=y(ft,{indexes:t,width:120,fill:i.colorTextSecondary,alignHorizontal:l,alignVertical:"top",children:n.desc}),h=y(Dr,{indexes:t,fill:i.colorPrimary,colorBg:i.colorWhite}),f=y(RZ,{width:30,height:8,fill:i.colorPrimary,positionH:o}),d=o!=="flipped",p=5,g=25,m=30,v=ae(c),b=ae(h),_=ae(f),x=v.width+p+_.width-b.width-g,w=Math.max(v.width+p+_.width,g+b.width)*2+m;return y(Y,AZ(IZ({width:w,height:r},s),{children:k(ve,{flexDirection:"row",alignItems:"center",children:[d?k(tt,{children:[k(ve,{flexDirection:"column",alignItems:"flex-end",children:[c,u]}),y(yt,{width:p}),f]}):k(tt,{children:[y(yt,{width:x}),h,y(yt,{width:g})]}),k(Pi,{horizontal:"center",vertical:"middle",children:[y(TZ,{width:m,height:r,fill:i.colorPrimary}),y(De,{width:m,height:r,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:String(t[0]+1).padStart(2,"0").slice(-2)})]}),d?k(tt,{children:[y(yt,{width:g}),h]}):k(tt,{children:[f,y(yt,{width:p}),k(ve,{flexDirection:"column",alignItems:"flex-start",children:[c,u]})]})]})}))},TZ=e=>{const{x:t=0,y:n=0,width:r=30,height:i=100,fill:o="#FF356A",size:s=10}=e;return y(Yt,{width:r,height:i,points:[{x:t,y:n},{x:t+r/2,y:n+s},{x:t+r,y:n},{x:t+r,y:n+i-s},{x:t+r/2,y:n+i},{x:t,y:n+i-s}],fill:o,"data-element-type":"shape"})},RZ=e=>{const{x:t=0,y:n=0,width:r=50,height:i=10,fill:o,positionH:s="normal"}=e,a=i/2,l=r-a,c=2,u=a;return k(Y,{x:t,y:n,width:r,height:i,children:[y(Ze,{width:i,height:i,fill:o,x:s==="normal"?0:l-a,"data-element-type":"shape"}),y(Pe,{d:s==="normal"?`M${a},${u} L${a+l},${u}`:`M0,${u} L${l-a},${u}`,strokeWidth:c,stroke:o,"data-element-type":"shape"})]})};ct("vertical-icon-arrow",{component:Y4,composites:["icon","label","desc"]});const ff=new Map;function We(e,t){ff.set(e,t)}function X4(e){return ff.get(e)}function kZ(){return Array.from(ff.keys())}const U4=e=>{var t,n,r;const{Title:i,Item:o,data:s,width:a,gap:l,barGap:c,barHeight:u=28,barAreaWidth:h,labelGap:f=16,padding:d=24,showValue:p=!0,options:g,valueFormatter:m=Ne=>Ne.toString()}=e,v=(t=h!=null?h:a)!=null?t:480,{title:b,desc:_,items:x=[],xTitle:w,yTitle:C}=s,P=i?y(i,{title:b,desc:_}):null;if(x.length===0)return y(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:P});const[O,$,S,M]=xi(d),I=(n=x[0])!=null?n:{label:"",value:0},E=ae(y(o,{indexes:[0],datum:I,data:s})),A=E.width||140,T=E.height||u,N=Math.max(u,T),H=Math.max(12,N*.35),D=(r=c!=null?c:l)!=null?r:H,B=x.map(Ne=>{var ze;return(ze=Ne.value)!=null?ze:0}),F=Math.max(...B,0),X=Math.min(...B,0),G=X<0?X*1.1:0;let L=F>0?F*1.1:0;L===G&&(L=G+1);const R=Bo().domain([G,L]).range([0,v]),z=Math.min(Math.max(R(0),0),v),q=Math.max(2,v*.02),j=x.length*(N+D)-D,V=C?24:0,U=20,K=w?24:0,J=O+V,Z=M+A+f,ie=p?80:0,Q=Math.max(8,N*.2),te=Z+v+ie+$,ce=J+j+Q+U+K+S,re=Et(g.themeConfig),ee=re.colorText||"#666",oe=Ot(g),se=[],ue=[],pe=[],fe=[],ge=[],he=[],xe=[],$e=J+j+Q,Me=Ne=>Number.isInteger(Ne)?Ne.toString():Ne.toFixed(1);x.forEach((Ne,ze)=>{var ye;const _e=[ze],Ie=(ye=Ne.value)!=null?ye:0,Ee=J+ze*(N+D),le=Ee+(N-u)/2,me=Ie>=0?Z+z:Z+R(Ie),Oe=Ie>=0?R(Ie)-z:z-R(Ie),Ye=Oe===0?q:Oe,rt=Fe(g,[ze])||re.colorPrimary;if(se.push(y(Le,{x:me,y:le,width:Ye,height:u,fill:rt,rx:6,ry:6,"data-element-type":"shape"})),p){const Se=Ie>=0?me+Ye+8:me-8;ue.push(y(De,{x:Se,y:le+u/2,alignHorizontal:Ie>=0?"left":"right",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:rt,children:m(Ie,Ne)}))}pe.push(y(o,{indexes:_e,datum:Ne,data:s,x:M,y:Ee+(N-T)/2,width:A,height:T,positionV:"middle"}))});const Ce=Math.max(3,Math.min(7,Math.floor(v/80)));return R.ticks(Ce).forEach(Ne=>{const ze=Z+R(Ne);he.push(y(Pe,{d:`M${ze} ${J} L${ze} ${J+j}`,stroke:ee,strokeOpacity:.08,"data-element-type":"shape"})),ge.push(y(Pe,{d:`M${ze-.5} ${$e} L${ze-.5} ${$e+6}`,stroke:ee,"data-element-type":"shape"})),ge.push(y(De,{x:ze,y:$e+14,alignHorizontal:"center",alignVertical:"middle",fontSize:12,fill:ee,children:Me(Ne)}))}),fe.push(y(Pe,{d:`M${Z} ${$e} L${Z+v} ${$e}`,stroke:ee,"data-element-type":"shape"})),G<0&&fe.push(y(Le,{x:Z+z-.5,y:J,width:1,height:j,fill:oe,"data-element-type":"shape"})),C&&xe.push(y(De,{x:M+A/2,y:O+V/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:ee,children:C})),w&&xe.push(y(De,{x:Z+v/2,y:$e+U+K/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:ee,children:w})),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[P,k(Y,{width:te,height:ce,children:[y(Y,{children:he}),y(Y,{children:se}),y(Y,{children:ue}),y(Y,{children:xe}),y(Y,{children:[...fe,...ge]}),y(qe,{children:pe})]})]})};We("chart-bar",{component:U4,composites:["title","item","xTitle","yTitle"]});const K4=e=>{const{Title:t,Item:n,data:r,columnGap:i=60,columnWidth:o=50,padding:s=20,showValue:a=!0,options:l,valueFormatter:c=B=>B.toString()}=e,{title:u,desc:h,items:f=[]}=r,d=t?y(t,{title:u,desc:h}):null;if(f.length===0)return y(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:d});const p=Et(l.themeConfig),m=[...f.map(B=>{var F;return(F=B.value)!=null?F:0}),0].sort((B,F)=>B-F),v=m[0]<0,b=f.length*o+(f.length-1)*i,_=300,[x,w,C,P]=xi(s),O=a?24:0,$=10,S=v&&a?O+$:$,M=b+P+w,I=_+x+C+S,E=Bo().domain([m[0],m[m.length-1]]).range([_,0]),A=E(0),T=[],N=[],H=[],D=[];return f.forEach((B,F)=>{var X;const G=[F],L=(X=B.value)!=null?X:0,R=P+F*(o+i),z=L>=0?E(L):A,q=Math.abs(E(L)-A),j=Fe(l,[F])||p.colorPrimary,V=`${j}-column-positive-${F}`,U=`${j}-column-negative-${F}`;D.push(k("linearGradient",{id:L>=0?V:U,x1:"0%",y1:L>=0?"0%":"100%",x2:"0%",y2:L>=0?"100%":"0%",children:[y("stop",{offset:"0%",stopColor:j}),y("stop",{offset:"100%",stopColor:be.mix(j,"#fff",40).toHexString()})]})),T.push(y(Le,{x:R,y:x+z,width:o,height:q,fill:`url(#${L>=0?V:U})`,rx:8,ry:8,"data-element-type":"shape"})),a&&N.push(y(De,{x:R+o/2,y:L>=0?x+z-10:x+z+q+20,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:L>=0?"bottom":"top",fill:j,children:c(L,B)}));const K=o+i,J=x+_+S;H.push(y(n,{indexes:G,datum:B,data:r,x:R+o/2-K/2,y:J,width:K,positionH:"center"}))}),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,k(Y,{width:M,height:I,children:[y(Ke,{children:D}),y(Y,{children:T}),y(Y,{children:N}),y(qe,{children:H})]})]})};We("chart-column",{component:K4,composites:["title","item"]});var LZ=Object.defineProperty,NZ=Object.defineProperties,zZ=Object.getOwnPropertyDescriptors,Z4=Object.getOwnPropertySymbols,DZ=Object.prototype.hasOwnProperty,qZ=Object.prototype.propertyIsEnumerable,Q4=(e,t,n)=>t in e?LZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,J4=(e,t)=>{for(var n in t||(t={}))DZ.call(t,n)&&Q4(e,n,t[n]);if(Z4)for(var n of Z4(t))qZ.call(t,n)&&Q4(e,n,t[n]);return e},HZ=(e,t)=>NZ(e,zZ(t));const e5=e=>{const{Title:t,Item:n,data:r,width:i,height:o=260,gap:s=10,padding:a=24,showValue:l=!0,options:c,valueFormatter:u=le=>le.toString()}=e,{title:h,desc:f,items:d=[],xTitle:p,yTitle:g}=r,m=t?y(t,{title:h,desc:f}):null;if(d.length===0)return y(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:m});const[v,b,_,x]=xi(a),w={indexes:[0],datum:d[0],data:r,positionH:"center",positionV:"normal"},C=ae(y(n,J4({},w))),P=C.width,O=C.height,$=Math.max(28,O+14),S=44,M=g?26:0,I=p?22:0,E=P+s,A=d.length>0?(d.length-1)*E+P:0,T=i!==void 0?i:Math.max(200,A||320),N=d.length>1?Math.max(E,(T-P)/(d.length-1)):0,H=d.length>0?Math.max(P,(d.length-1)*N+P):0,D=x+S+M,B=v+M,F=D+H+b,X=B+o+$+I+_,G=d.map(le=>{var me;return(me=le.value)!=null?me:0}),L=Math.max(...G,0),R=Math.min(...G,0),z=Math.max(Math.abs(L),Math.abs(R))*.1,q=R<0?R-z:0;let j=L>0?L+z:1;j===q&&(j=q+1);const V=Bo().domain([q,j]).nice().range([o,0]),U=Math.max(0,Math.min(o,V(0))),K=j<=0?0:q>=0?o:U,J=Ot(c),Z=Et(c.themeConfig),ie=Z.colorText||"#666",Q=[],te=[],ce=[],re=[],ee=[],oe=[],se=[];V.ticks(6).forEach(le=>{const me=B+V(le);Q.push(y(Pe,{d:`M ${D} ${me} L ${D+H} ${me}`,width:H,height:1,stroke:ie,strokeWidth:1,"data-element-type":"shape",opacity:.08})),se.push(y(De,{x:D-8,y:me,alignHorizontal:"right",alignVertical:"middle",fontSize:12,fill:ie,children:Number.isInteger(le)?le.toString():le.toFixed(1)}))});const pe=[],fe=[],ge=[],he=le=>{if(le.length===0)return"";if(le.length===1){const Oe=le[0];return`M ${Oe.x} ${Oe.y}`}const me=[];me.push(`M ${le[0].x} ${le[0].y}`);for(let Oe=0;Oe<le.length-1;Oe++){const Ye=le[Oe-1]||le[Oe],rt=le[Oe],Se=le[Oe+1],Be=le[Oe+2]||Se,Qe=rt.x+(Se.x-Ye.x)/6,Je=rt.y+(Se.y-Ye.y)/6,Xe=Se.x-(Be.x-rt.x)/6,pt=Se.y-(Be.y-rt.y)/6;me.push(`C ${Qe} ${Je} ${Xe} ${pt} ${Se.x} ${Se.y}`)}return me.join(" ")};d.forEach((le,me)=>{var Oe;const Ye=D+me*N+P/2,rt=B+V((Oe=le.value)!=null?Oe:0);fe.push({x:Ye,y:rt,datum:le}),pe.push(y(n,HZ(J4({},w),{indexes:[me],datum:le,x:Ye-P/2,y:B+o+4})));const Se=Fe(c,[me])||Z.colorPrimary;ge.push({x:Ye,color:Se})});const xe=ge.length>0?Math.min(...ge.map(le=>le.x)):D,$e=ge.length>0?Math.max(...ge.map(le=>le.x)):D+H,Me=Math.max(1,$e-xe),Ce=ge.map(le=>y("stop",{offset:`${(le.x-xe)/Me*100}%`,stopColor:le.color})),Te=ge.map(le=>y("stop",{offset:`${(le.x-xe)/Me*100}%`,stopColor:le.color,stopOpacity:"0.18"}));if(ge.length>0){const le=ge[ge.length-1].color;Ce.push(y("stop",{offset:"100%",stopColor:le})),Te.push(y("stop",{offset:"100%",stopColor:le,stopOpacity:"0.04"}))}const Ne=`chart-line-${D_([H,o,ie,J,ge.map(le=>`${le.x.toFixed(2)}-${le.color}`).join()].join(":"))}`,ze=`${Ne}-stroke`,ye=`${Ne}-area`,_e=he(fe);ce.push(y(Pe,{d:_e,width:H,height:o,stroke:`url(#${ze})`,strokeWidth:3,fill:"none","data-element-type":"shape"}));const Ie=_e.includes("C")?_e.slice(_e.indexOf("C")):"",Ee=[`M ${fe[0].x} ${B+K}`,`L ${fe[0].x} ${fe[0].y}`,Ie,`L ${fe[fe.length-1].x} ${B+K}`,"Z"].join(" ");return ce.push(y(Pe,{d:Ee,width:H,height:o,fill:`url(#${ye})`,stroke:"none","data-element-type":"shape"})),fe.forEach((le,me)=>{var Oe;const Ye=Fe(c,[me])||Z.colorPrimary;re.push(y(Ze,{x:le.x-6,y:le.y-6,width:12,height:12,fill:Ye,"data-element-type":"shape"})),l&&ee.push(y(De,{x:le.x,y:le.y-12,alignHorizontal:"center",alignVertical:"bottom",fontSize:12,fontWeight:"bold",fill:Ye,children:u((Oe=le.datum.value)!=null?Oe:0,le.datum)}))}),te.push(y(Pe,{d:`M ${D} ${B+K} L ${D+H} ${B+K}`,width:H,height:1,stroke:ie,strokeWidth:1,"data-element-type":"shape"})),te.push(y(Pe,{d:`M ${D} ${B} L ${D} ${B+o}`,width:1,height:o,stroke:ie,strokeWidth:1,"data-element-type":"shape"})),p&&oe.push(y(De,{x:D+H/2,y:B+o+$+I/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:ie,children:p})),g&&oe.push(y(De,{x:x+M/2,y:B+o/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:ie,children:g})),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,k(Y,{width:F,height:X,children:[k(Ke,{children:[y("linearGradient",{id:ze,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:Ce}),k("linearGradient",{id:ye,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[Te,y("stop",{offset:"100%",stopColor:J,stopOpacity:"0.04"})]})]}),y(Y,{children:Q}),y(Y,{children:[...te,...se]}),y(Y,{children:ce}),y(Y,{children:re}),y(Y,{children:ee}),y(Y,{children:oe}),y(qe,{children:pe})]})]})};We("chart-line",{component:e5,composites:["title","item","xTitle","yTitle"]});var jZ=Object.defineProperty,t5=Object.getOwnPropertySymbols,FZ=Object.prototype.hasOwnProperty,BZ=Object.prototype.propertyIsEnumerable,n5=(e,t,n)=>t in e?jZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,r5=(e,t)=>{for(var n in t||(t={}))FZ.call(t,n)&&n5(e,n,t[n]);if(t5)for(var n of t5(t))BZ.call(t,n)&&n5(e,n,t[n]);return e};const hl=1.35,df=8,WZ=.3,VZ=.2,GZ=20,i5=1.15,YZ=.5,o5=.85,XZ=1,UZ=.45,KZ=2,s5=e=>{var t;const{Title:n,Item:r,data:i,radius:o=140,innerRadius:s=0,padding:a=30,showPercentage:l=!0,avoidLabelOverlap:c=!1,minShowLabelPercent:u=0,options:h}=e,f=PF(u),{title:d,desc:p,items:g=[]}=i,m=n?y(n,{title:d,desc:p}):null,v=ae(y(ne,{indexes:[0]})),b=(t=g[0])!=null?t:{label:"",value:0},_=ae(y(r,{indexes:[0],datum:b,data:i,positionH:"center",positionV:"middle"})),x=_.width||140,w=_.height||32,C=Math.max(o,60),P=C*hl+df+x,O=C,$=a+P,S=a+O,M=$*2,I=S*2;if(g.length===0)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,y(Y,{width:M,height:I,children:y(je,{children:y(ne,{indexes:[0],x:$-v.width/2,y:S-v.height/2})})})]});const E=g.reduce((J,Z)=>{var ie;return J+Math.max((ie=Z.value)!=null?ie:0,0)},0),A=Ot(h),T=Et(h.themeConfig),H=tK().value(J=>{var Z;return Math.max((Z=J.value)!=null?Z:0,0)}).sort(null).startAngle(0).endAngle(Math.PI*2)(g),D=Vo().innerRadius(s).outerRadius(C).cornerRadius(2),B=Vo().innerRadius(C).outerRadius(C),F=Vo().innerRadius(C*i5).outerRadius(C*i5),X=s+(C-s)*YZ,G=Vo().innerRadius(X).outerRadius(X),L=Vo().innerRadius(C*o5).outerRadius(C*o5),R=[],z=[],q=[],j=[],V=[],U=[];H.forEach(J=>{const Z=J.index,ie=Fe(h,[Z])||T.colorPrimary||A,Q=D(J)||"";R.push(y(Pe,{d:Q,fill:ie,stroke:T.colorBg,strokeWidth:1,"data-element-type":"shape",width:C*2,height:C*2}));const te=J.startAngle+(J.endAngle-J.startAngle)/2,re=(te<0?te+Math.PI*2:te)<Math.PI;if((E>0?J.value/E*100:0)<f)return;const oe=F.centroid(J);U.push({arcDatum:J,originalIndex:Z,x:oe[0],y:oe[1],height:w,isRight:re,color:ie})});let K=U;if(c){const J=-O*hl,Z=O*hl,ie=U.filter(ee=>!ee.isRight),Q=U.filter(ee=>ee.isRight),te=w,ce=pf(Q,te,J,Z);K=[...pf(ie,te,J,Z),...ce]}return K.forEach(J=>{const{arcDatum:Z,originalIndex:ie,isRight:Q,color:te,y:ce}=J,re=B.centroid(Z),ee=F.centroid(Z),oe=ce,ue=Math.abs(oe-ee[1])*WZ,pe=C*hl,fe=pe+ue,ge=C*VZ,he=pe+ge+GZ,$e=Math.min(fe,he)*(Q?1:-1),Me=he*(Q?1:-1),Ce=[$e,oe],Te=[Me,oe];q.push(y(Pe,{d:`M${$+re[0]} ${S+re[1]}
93
- L${$+ee[0]} ${S+ee[1]}
94
- L${$+Ce[0]} ${S+Ce[1]}
95
- L${$+Te[0]} ${S+Te[1]}
96
- `,stroke:te,strokeOpacity:UZ,strokeWidth:KZ,fill:"none","data-element-type":"shape"}));const Ne=$+Te[0]+(Q?df:-df-x),ze=S+ce-w/2;if(j.push(y(r,{indexes:[ie],datum:Z.data,data:i,x:Ne,y:ze,width:x,height:w,positionH:Q?"normal":"flipped",positionV:"middle",themeColors:Et({colorPrimary:te},h)})),l&&E>0){const _e=G.centroid(Z),Ie=Math.max(Z.value,0),Ee=(Ie*100/E).toFixed(1),le=50,me=20;z.push(y(De,{x:$+_e[0]-le/2,y:S+_e[1]-me/2,width:le,height:me,alignHorizontal:"center",alignVertical:"middle",fontSize:12,fontWeight:"bold",fill:"#ffffff","data-value":Ie,"data-indexes":[ie],"data-element-type":Ge.ItemValue,children:`${Ee}%`}))}const ye=L.centroid(Z);V.push(y(nt,{indexes:[ie],x:$+ye[0]-v.width/2,y:S+ye[1]-v.height/2}))}),H.forEach((J,Z)=>{const ie=(Z+1)%H.length,Q=J.endAngle,te=H[ie].startAngle+(ie===0?Math.PI*2:0),ce=(Q+te)/2,re=C*XZ,ee=Math.sin(ce)*re,oe=-Math.cos(ce)*re;V.push(y(ne,{indexes:[Z+1],x:$+ee-v.width/2,y:S+oe-v.height/2}))}),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[m,k(Y,{width:M,height:I,children:[y(Y,{x:$,y:S,children:R}),y(Y,{children:q}),y(Y,{children:z}),y(qe,{children:j}),y(je,{children:V})]})]})};We("chart-pie",{component:s5,composites:["title","item"]});function pf(e,t,n,r){if(e.length<=1)return e.map(m=>r5({},m));const i=e.map(m=>r5({},m)).sort((m,v)=>m.y-v.y),o=i.some((m,v)=>{if(v===0)return!1;const b=i[v-1];return m.y-b.y<(b.height+m.height)/2}),s=i[0],a=i[i.length-1],l=s.y-s.height/2<n||a.y+a.height/2>r;if(!o&&!l)return i;const c=i.reduce((m,v)=>m+v.height,0),u=r-n,h=c+t*(i.length-1);let f=t;if(h>u){const m=u-c;f=Math.max(0,m/(i.length-1))}for(let m=1;m<i.length;m++){const v=i[m-1],b=i[m],_=v.y+(v.height+b.height)/2+f;b.y<_&&(b.y=_)}const d=i.length-1,p=i[d];if(p.y+p.height/2>r){p.y=r-p.height/2;for(let m=d-1;m>=0;m--){const v=i[m+1],b=i[m],_=v.y-(v.height+b.height)/2-f;b.y>_&&(b.y=_)}}const g=i[0];if(g.y-g.height/2<n){const m=n-(g.y-g.height/2);i.forEach(v=>v.y+=m)}return i}var ZZ=Object.defineProperty,QZ=Object.defineProperties,JZ=Object.getOwnPropertyDescriptors,a5=Object.getOwnPropertySymbols,eQ=Object.prototype.hasOwnProperty,tQ=Object.prototype.propertyIsEnumerable,l5=(e,t,n)=>t in e?ZZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c5=(e,t)=>{for(var n in t||(t={}))eQ.call(t,n)&&l5(e,n,t[n]);if(a5)for(var n of a5(t))tQ.call(t,n)&&l5(e,n,t[n]);return e},u5=(e,t)=>QZ(e,JZ(t));const nQ=[0,30,-30,60,-60],rQ=Math.PI*(3-Math.sqrt(5));function h5(e,t,n){const r=Math.PI/180*n,i=Math.cos(r),o=Math.sin(r);return{width:Math.abs(e*i)+Math.abs(t*o),height:Math.abs(e*o)+Math.abs(t*i)}}function iQ(e,t,n,r,i,o){const s=e-o,a=e+n+o,l=t-o,c=t+r+o;return i.some(u=>{const h=u.box.x-o,f=u.box.x+u.box.width+o,d=u.box.y-o,p=u.box.y+u.box.height+o;return!(a<=h||s>=f||c<=d||l>=p)})}function oQ(e,t,n,r,i){const o=[],s=t?nQ:[0],a=Math.max(1600,e.length*28);return e.forEach((l,c)=>{const u=Math.max(l.width,l.height),h=c*rQ;let f=0,d=null;for(let p=0;p<a&&!d;p++){p===Math.floor(a*.6)&&(f=u);const g=h+p*r,m=i*Math.sqrt(p+1)+f+u*.25,v=m*Math.cos(g),b=m*Math.sin(g);for(const _ of s){const x=h5(l.width,l.height,_),w=v-x.width/2,C=b-x.height/2;if(!iQ(w,C,x.width,x.height,o,n)){d=u5(c5({},l),{angle:_,centerX:v,centerY:b,box:{x:w,y:C,width:x.width,height:x.height}});break}}}if(!d){const p=s[c%s.length],g=i*Math.sqrt(a+1)+u,m=h,v=g*Math.cos(m),b=g*Math.sin(m),_=h5(l.width,l.height,p);d=u5(c5({},l),{angle:p,centerX:v,centerY:b,box:{x:v-_.width/2,y:b-_.height/2,width:_.width,height:_.height}})}o.push(d)}),o}const f5=e=>{const{data:t,options:n,minFontSize:r=16,maxFontSize:i=48,enableRotate:o=!0,padding:s=6,spiralStep:a=.45,radiusStep:l=10}=e,{items:c=[]}=t,u=c.map((E,A)=>({datum:E,index:A})).filter(({datum:E})=>E.label);if(u.length===0)return y(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:y(Y,{children:y(qe,{})})});const h=u.map(({datum:E})=>E.value).filter(E=>typeof E=="number"),f=h.length>0,d=f?Math.min(...h):0,p=f?Math.max(...h):0,g=f&&d===p,m=(r+i)/2,v=E=>{if(!f||g)return m;if(E==null)return r;const A=(E-d)/(p-d||1);return r+A*(i-r)},b=u.map(({datum:E,index:A})=>{const T=v(E.value),N=ae(y(De,{fontSize:T,fontWeight:"bold",children:E.label})),H=Fe(n,[A])||Ot(n);return{label:E.label,value:E.value,color:H,fontSize:T,width:N.width*1.05,height:N.height}}).sort((E,A)=>A.fontSize-E.fontSize),_=oQ(b,o,s,a,l),x=Math.min(..._.map(E=>E.box.x)),w=Math.min(..._.map(E=>E.box.y)),C=Math.max(..._.map(E=>E.box.x+E.box.width)),P=Math.max(..._.map(E=>E.box.y+E.box.height)),O=-x+s,$=-w+s,S=C-x+s*2,M=P-w+s*2,I=_.map((E,A)=>{const T=E.centerX-E.width/2+O,N=E.centerY-E.height/2+$,H=E.width/2,D=E.height/2,B=`translate(${T}, ${N}) rotate(${E.angle}, ${H}, ${D})`;return y(Y,{transform:B,children:y(De,{width:E.width,height:E.height,fontSize:E.fontSize,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:E.color,"data-indexes":A,"data-element-type":Ge.ItemLabel,children:E.label})})});return y(qe,{id:"infographic-container",width:S,height:M,children:I})};We("chart-wordcloud",{component:f5,composites:[]});const d5=new Map,gf=(e,t)=>{d5.set(e,t)},sQ=e=>{var t;return e&&(t=d5.get(e))!=null?t:null};var aQ=Object.defineProperty,lQ=Object.defineProperties,cQ=Object.getOwnPropertyDescriptors,p5=Object.getOwnPropertySymbols,uQ=Object.prototype.hasOwnProperty,hQ=Object.prototype.propertyIsEnumerable,g5=(e,t,n)=>t in e?aQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m5=(e,t)=>{for(var n in t||(t={}))uQ.call(t,n)&&g5(e,n,t[n]);if(p5)for(var n of p5(t))hQ.call(t,n)&&g5(e,n,t[n]);return e},y5=(e,t)=>lQ(e,cQ(t));gf("pros-cons-arrow",e=>{const{x:t,y:n,colorPositive:r,colorNegative:i,colorBg:o}=e,s=200,a=141,l={width:90,height:40,fontSize:22,alignHorizontal:"center",alignVertical:"middle",fontWeight:"bold",fill:o};return k(Y,{x:t,y:n,width:s,height:a,children:[k(Pt,{children:[y("path",{d:"M137 54C137 54.2903 137 54.5806 136.706 54.7742L108.614 86.0323H64.7619C64.4071 86.0204 64.0557 86.1043 63.7453 86.2747C63.4349 86.4452 63.1773 86.6959 63 87C63.0037 86.7447 63.1092 86.5012 63.2936 86.3226L91.3862 55.0645H135.238C135.593 55.0763 135.944 54.9925 136.255 54.822C136.565 54.6516 136.823 54.4009 137 54.0968V54Z",fill:"#D9D9D9"}),y("path",{d:"M39.3272 0.484649C39.6146 0.234929 39.9662 0.0736935 40.3407 0.0198929C40.7152 -0.0339076 41.0971 0.0219605 41.4414 0.180925C41.7857 0.33989 42.0783 0.595358 42.2846 0.917314C42.491 1.23927 42.6026 1.61434 42.6063 1.99848V14.8156H136.013C136.54 14.8156 137.045 15.0282 137.418 15.4068C137.791 15.7853 138 16.2987 138 16.834V53.166C138 53.7013 137.791 54.2147 137.418 54.5932C137.045 54.9718 136.54 55.1844 136.013 55.1844H42.6063V68.0015C42.6026 68.3857 42.491 68.7607 42.2846 69.0827C42.0783 69.4046 41.7857 69.6601 41.4414 69.8191C41.0971 69.9781 40.7152 70.0339 40.3407 69.9801C39.9662 69.9263 39.6146 69.7651 39.3272 69.5154L0.672847 36.5138C0.461378 36.3244 0.292014 36.0915 0.176005 35.8305C0.0599968 35.5695 0 35.2864 0 35C0 34.7136 0.0599968 34.4306 0.176005 34.1696C0.292014 33.9085 0.461378 33.6756 0.672847 33.4862L39.4265 0.484649H39.3272Z",fill:r}),y("path",{d:"M157.394 73.0007C157.397 72.6162 157.509 72.2407 157.715 71.9183C157.922 71.596 158.214 71.3403 158.559 71.1811C158.903 71.022 159.285 70.9661 159.659 71.0199C160.034 71.0738 160.385 71.2352 160.673 71.4852L199.327 104.524C199.539 104.714 199.708 104.947 199.824 105.208C199.94 105.47 200 105.753 200 106.04C200 106.326 199.94 106.61 199.824 106.871C199.708 107.132 199.539 107.366 199.327 107.555L160.573 140.594C160.285 140.815 159.943 140.951 159.584 140.989C159.225 141.027 158.862 140.965 158.535 140.809C158.208 140.653 157.929 140.41 157.728 140.105C157.527 139.8 157.411 139.445 157.394 139.078V126.247H63.9874C63.4603 126.247 62.9548 126.034 62.5821 125.655C62.2094 125.276 62 124.762 62 124.226V87.8531C62 87.3172 62.2094 86.8032 62.5821 86.4242C62.9548 86.0453 63.4603 85.8324 63.9874 85.8324H157.394V73.0007Z",fill:i})]}),y(De,y5(m5({x:40,y:15},l),{children:"Pros"})),y(De,y5(m5({x:70,y:85},l),{children:"Cons"}))]})});var fQ=Object.defineProperty,dQ=Object.defineProperties,pQ=Object.getOwnPropertyDescriptors,v5=Object.getOwnPropertySymbols,gQ=Object.prototype.hasOwnProperty,mQ=Object.prototype.propertyIsEnumerable,b5=(e,t,n)=>t in e?fQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_5=(e,t)=>{for(var n in t||(t={}))gQ.call(t,n)&&b5(e,n,t[n]);if(v5)for(var n of v5(t))mQ.call(t,n)&&b5(e,n,t[n]);return e},w5=(e,t)=>dQ(e,pQ(t));gf("pros-cons-fold",e=>{const{x:t,y:n,colorPositive:r,colorNegative:i,colorBg:o}=e,s=240,a=300,l={width:85,height:30,fontSize:20,alignHorizontal:"center",alignVertical:"middle",fontWeight:"bold",fill:o};return k(Y,{x:t,y:n,width:s,height:a,children:[k(Pt,{children:[y("path",{d:"M136.914 38.7755C137.303 38.7733 137.683 38.6617 138.011 38.4534C138.339 38.2451 138.602 37.9485 138.77 37.5977C138.937 37.247 139.002 36.8561 138.957 36.4701C138.913 36.084 138.76 35.7183 138.517 35.415L110.741 0.982313C110.548 0.735138 110.301 0.535238 110.018 0.397762C109.736 0.260286 109.426 0.188841 109.112 0.188841C108.798 0.188841 108.488 0.260286 108.206 0.397762C107.924 0.535238 107.676 0.735138 107.483 0.982313L79.7069 35.415C79.4639 35.7183 79.3113 36.084 79.2667 36.4701C79.222 36.8561 79.2871 37.247 79.4545 37.5977C79.6219 37.9485 79.8847 38.2451 80.213 38.4534C80.5412 38.6617 80.9216 38.7733 81.3104 38.7755H92.8965C93.0517 57.1293 97.5517 64.9878 105.259 73.7252C107.017 75.7932 108.983 77.8612 111.103 80.1361C113.276 82.4626 122.121 88.9252 131.069 95.181C129.362 88.7701 128.172 81.2218 127.293 73.7252C125.224 55.9918 125.017 38.7755 125.017 38.7755H136.914Z",fill:r,fillOpacity:.4}),y("path",{d:"M237.931 109.967C238.48 109.967 239.006 109.749 239.394 109.362C239.782 108.974 240 108.448 240 107.899V75.7932C240 75.2447 239.782 74.7187 239.394 74.3309C239.006 73.9431 238.48 73.7252 237.931 73.7252H127.241C128.172 81.2218 129.362 88.7701 131.069 95.181C138.182 100.171 145.337 105.1 152.534 109.967H237.931Z",fill:r}),y("path",{d:"M152.586 109.967C152.586 109.967 141.724 102.678 131.069 95.181C124.122 90.5838 117.455 85.5772 111.103 80.1878C109.034 77.8612 107.017 75.7415 105.259 73.7252H48.6207V56.6639C48.6091 56.2797 48.4905 55.9063 48.2784 55.5857C48.0662 55.2651 47.7689 55.0099 47.4197 54.8488C47.0705 54.6878 46.6833 54.6271 46.3016 54.6738C45.9199 54.7204 45.5587 54.8725 45.2586 55.1129L1.50002 90.2694C1.26208 90.4633 1.07029 90.7078 0.938585 90.985C0.80688 91.2622 0.738558 91.5652 0.738558 91.8721C0.738558 92.179 0.80688 92.482 0.938585 92.7592C1.07029 93.0365 1.26208 93.2809 1.50002 93.4748L45.2586 128.631C45.5621 128.874 45.928 129.027 46.3142 129.071C46.7005 129.116 47.0914 129.051 47.4424 128.884C47.7933 128.716 48.09 128.454 48.2984 128.125C48.5068 127.797 48.6185 127.417 48.6207 127.029V109.967H152.586Z",fill:"#BFBFBF"}),y("path",{d:"M36.1034 88.9252H28.9655V93.785H36.1034V101.85H41.4828V93.785H48.6207V88.8735H41.4828V81.1701H36.1034V88.9252Z",fill:"#404040"}),y("path",{d:"M103.086 261.224C102.697 261.227 102.317 261.338 101.989 261.547C101.661 261.755 101.398 262.051 101.23 262.402C101.063 262.753 100.998 263.144 101.043 263.53C101.087 263.916 101.24 264.282 101.483 264.585L129.259 299.018C129.452 299.265 129.699 299.465 129.982 299.602C130.264 299.74 130.574 299.811 130.888 299.811C131.202 299.811 131.512 299.74 131.794 299.602C132.076 299.465 132.324 299.265 132.517 299.018L160.293 264.585C160.536 264.282 160.689 263.916 160.733 263.53C160.778 263.144 160.713 262.753 160.546 262.402C160.378 262.051 160.115 261.755 159.787 261.547C159.459 261.338 159.078 261.227 158.69 261.224H147.103C146.948 242.871 142.448 235.012 134.741 226.275C132.983 224.207 131.017 222.139 128.897 219.864C126.724 217.537 117.879 211.075 108.931 204.819C110.677 211.877 111.938 219.045 112.707 226.275C114.776 244.008 114.983 261.224 114.983 261.224H103.086Z",fill:i,fillOpacity:.4}),y("path",{d:"M2.06897 190.033C1.52025 190.033 0.993996 190.251 0.605989 190.638C0.217983 191.026 5.00679e-06 191.552 5.00679e-06 192.101V224.207C5.00679e-06 224.755 0.217983 225.281 0.605989 225.669C0.993996 226.057 1.52025 226.275 2.06897 226.275H112.759C111.828 218.778 110.638 211.23 108.931 204.819C99.9827 198.512 90.931 192.411 88.2414 190.55C87.7206 190.204 87.1077 190.024 86.4828 190.033H2.06897Z",fill:i}),y("path",{d:"M87.4138 190.033C87.4138 190.033 98.2759 197.322 108.931 204.819C115.878 209.416 122.545 214.423 128.897 219.812C130.966 222.139 132.983 224.258 134.741 226.275H191.379V243.336C191.391 243.72 191.51 244.094 191.722 244.414C191.934 244.735 192.231 244.99 192.58 245.151C192.929 245.312 193.317 245.373 193.698 245.326C194.08 245.28 194.441 245.128 194.741 244.887L238.5 209.731C238.738 209.537 238.93 209.292 239.061 209.015C239.193 208.738 239.261 208.435 239.261 208.128C239.261 207.821 239.193 207.518 239.061 207.241C238.93 206.964 238.738 206.719 238.5 206.525L194.741 171.369C194.438 171.126 194.072 170.973 193.686 170.929C193.3 170.884 192.909 170.949 192.558 171.116C192.207 171.284 191.91 171.546 191.702 171.875C191.493 172.203 191.382 172.583 191.379 172.971V190.033H87.4138Z",fill:"#BFBFBF"}),y("path",{d:"M192.414 205.905V210.816H212.069V205.905H192.414Z",fill:"#404040"})]}),y(De,w5(_5({x:153,y:77},l),{children:"PROS"})),y(De,w5(_5({x:2,y:193},l),{children:"CONS"}))]})}),gf("vs",e=>{const{x:t,y:n,colorPrimary:r,colorBg:i}=e,o=100,s=100,a=be(r).lighten(20).toString();return k(Y,{x:t,y:n,width:o,height:s,children:[k(Ke,{children:[y("filter",{id:"vs-divider-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:y("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"8",result:"blur"})}),y(Oh,{})]}),y(Ze,{x:0,y:0,width:o,height:s,fill:a,filter:"url(#vs-divider-glow-filter)",opacity:.6}),y(Ze,{x:0,y:0,width:o,height:s,fill:r,"data-element-type":"shape"}),y("text",{x:o/2,y:s/2,fontSize:Math.min(o,s)/1.5,fontWeight:"bold",fill:i,textAnchor:"middle",dominantBaseline:"central",filter:"url(#drop-shadow)",children:"VS"})]})});const x5=e=>{const{Title:t,Item:n,data:r,gap:i=20,groupGap:o=20,opposite:s=!0,flipped:a=!0,dividerType:l="vs",options:c}=e,{title:u,desc:h,items:f=[]}=r,d=t?y(t,{title:u,desc:h}):null;if(f.length===0)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,y(Y,{children:y(je,{children:y(ne,{indexes:[0],x:0,y:0})})})]});const p=f[0]||{children:[]},g=f[1]||{children:[]},m=p.children||[],v=g.children||[],b=Et(c.themeConfig),_=ae(y(n,{indexes:[0,0],data:r,datum:m[0]||{}})),x=ae(y(ne,{indexes:[0]})),w=sQ(l),C=w?ae(y(w,{x:0,y:0,colorPrimary:b.colorPrimary,colorBg:b.colorBg,colorPositive:b.colorPrimary,colorNegative:b.colorPrimary})):{width:0,height:0},P=[],O=[],$=[],S=Math.max(m.length,v.length),M=S>0?S*(_.height+i)-i:0,I=5,E=S>0?i/2+x.height/2:x.height/2,A=x.width+I,T=A+_.width+o,N=T+C.width+o,H=a?"flipped":"normal",D=a?"normal":s?"flipped":"normal";if(m.forEach((B,F)=>{const X=E+F*(_.height+i),G=[0,F];P.push(y(n,{indexes:G,datum:B,data:r,x:A,y:X,positionH:H,positionV:"middle"})),O.push(y(nt,{indexes:G,x:A-x.width-I,y:X+(_.height-x.height)/2})),F<m.length-1&&O.push(y(ne,{indexes:[0,F+1],x:A+(_.width-x.width)/2,y:X+_.height+i/2-x.height/2}))}),m.length>0){O.push(y(ne,{indexes:[0,0],x:A+(_.width-x.width)/2,y:E-i/2-x.height/2}));const B=E+(m.length-1)*(_.height+i);O.push(y(ne,{indexes:[0,m.length],x:A+(_.width-x.width)/2,y:B+_.height+i/2-x.height/2}))}else f.length>=1&&O.push(y(ne,{indexes:[0,0],x:A+(_.width-x.width)/2,y:E-x.height/2}));if(v.forEach((B,F)=>{const X=E+F*(_.height+i),G=[1,F];P.push(y(n,{indexes:G,datum:B,data:r,x:N,y:X,positionH:D,positionV:"middle"})),O.push(y(nt,{indexes:G,x:N+_.width+I,y:X+(_.height-x.height)/2})),F<v.length-1&&O.push(y(ne,{indexes:[1,F+1],x:N+(_.width-x.width)/2,y:X+_.height+i/2-x.height/2}))}),v.length>0){O.push(y(ne,{indexes:[1,0],x:N+(_.width-x.width)/2,y:E-i/2-x.height/2}));const B=E+(v.length-1)*(_.height+i);O.push(y(ne,{indexes:[1,v.length],x:N+(_.width-x.width)/2,y:B+_.height+i/2-x.height/2}))}else f.length>=2&&O.push(y(ne,{indexes:[1,0],x:N+(_.width-x.width)/2,y:E-x.height/2}));return f.length<2&&O.push(y(ne,{indexes:[1],x:N+(_.width-x.width)/2,y:E+(M-x.height)/2})),w&&$.push(y(w,{x:T,y:E+(M-C.height)/2,colorPrimary:b.colorPrimary,colorBg:b.colorBg,colorPositive:Fe(c,[0])||b.colorPrimary,colorNegative:Fe(c,[1])||b.colorPrimary})),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,k(Y,{children:[y(Y,{children:$}),y(qe,{children:P}),y(je,{children:O})]})]})};We("compare-binary-horizontal",{component:x5,composites:["title","item"]});var yQ=Object.defineProperty,C5=Object.getOwnPropertySymbols,vQ=Object.prototype.hasOwnProperty,bQ=Object.prototype.propertyIsEnumerable,P5=(e,t,n)=>t in e?yQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,O5=(e,t)=>{for(var n in t||(t={}))vQ.call(t,n)&&P5(e,n,t[n]);if(C5)for(var n of C5(t))bQ.call(t,n)&&P5(e,n,t[n]);return e};const _Q={none:5,"dot-line":100,"arc-dot":20,"split-line":5},S5=e=>{var t,n;const{Title:r,Items:i,data:o,gap:s=20,groupGap:a=0,decoration:l="none",surround:c=!0,flipRoot:u=!1,flipLeaf:h=!1,options:f}=e,[d,p]=i,{title:g,desc:m,items:v=[]}=o,b=r?y(r,{title:g,desc:m}):null,_=y(d,{indexes:[0],data:o,datum:o.items[0],themeColors:{}}),x=y(p,{indexes:[0,0],data:o,datum:((n=(t=v[0])==null?void 0:t.children)==null?void 0:n[0])||v[2]}),w=ae(_),C=ae(x),P=[],O=[],[$,S]=v,M=($==null?void 0:$.children)||[],I=(S==null?void 0:S.children)||[],E=Math.max(w.height,M.length*(C.height+s)-s,I.length*(C.height+s)-s),A=_Q[l]||0,T=C.width+A,N=T+w.width+a,H=(E-w.height)/2;$&&P.push(y(d,{indexes:[0],x:T,y:H,data:o,datum:$,positionH:u?"normal":"flipped"})),S&&P.push(y(d,{indexes:[1],x:N,y:H,data:o,datum:S,positionH:u?"flipped":"normal"}));const D=(B,F,X)=>{if(l==="none")return;const[G,L]=F,R=Fe(f,X),z={x:G,y:L,width:C.width,height:C.height,side:B,color:R||"#ccc",colorBg:f.themeConfig.colorBg||"#fff"};l==="split-line"?O.push(y(wQ,O5({},z))):l==="dot-line"&&O.push(y(xQ,O5({},z)))};if(c){const F=(2*w.width+a+C.width)/2+A,X=T+w.width+a/2,G=H+w.height/2;M.forEach((L,R)=>{const z=M.length*(C.height+s)-s,j=(E-z)/2+R*(C.height+s),U=j+C.height/2-G,K=Math.max(0,F*F-U*U),Z=X-Math.sqrt(K)-C.width/2;P.push(y(p,{indexes:[0,R],datum:L,data:o,x:Z,y:j,positionH:h?"flipped":"normal"})),D("left",[Z,j],[0,R])}),I.forEach((L,R)=>{const z=I.length*(C.height+s)-s,j=(E-z)/2+R*(C.height+s),U=j+C.height/2-G,K=Math.max(0,F*F-U*U),Z=X+Math.sqrt(K)-C.width/2;P.push(y(p,{indexes:[1,R],datum:L,data:o,x:Z,y:j,positionH:h?"normal":"flipped"})),D("right",[Z,j],[1,R])})}else M.forEach((B,F)=>{const X=M.length*(C.height+s)-s,L=(E-X)/2+F*(C.height+s),R=[0,F],z=0;P.push(y(p,{indexes:R,datum:B,data:o,x:z,y:L,positionH:h?"flipped":"normal"})),D("left",[z,L],R)}),I.forEach((B,F)=>{const X=I.length*(C.height+s)-s,L=(E-X)/2+F*(C.height+s),R=[1,F],z=N+w.width+A;P.push(y(p,{indexes:R,datum:B,data:o,x:z,y:L,positionH:h?"normal":"flipped"})),D("right",[z,L],R)});return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[b,k(Y,{children:[y(qe,{children:P}),y(Y,{width:0,height:0,children:O})]})]})},wQ=e=>{const{x:t,y:n,width:r,height:i,color:o,colorBg:s,side:a}=e,l=n+i,c=`split-line-linear-gradient-${a}`;return k(tt,{children:[y(Ke,{children:y(Sh,{id:c,startColor:o,stopColor:s,direction:a==="left"?"left-right":"right-left"})}),y(Le,{x:t,y:l,width:r,height:1,fill:`url(#${c})`})]})},xQ=e=>{const{x:t,y:n,side:r,width:i,height:o,color:s,colorBg:a}=e,l=6,c=l/3,u=l*2,h=c*2,f=5,d=r==="left"?t+i+l+f:t-l-f,p=n+o/2,g=d-c,m=p-c,v=80,b=r==="left"?v:-v,_=`dot-line-linear-gradient-${r}`;return k(Y,{children:[y(Ke,{children:y(Sh,{id:_,startColor:s,stopColor:a,direction:r==="left"?"left-right":"right-left"})}),k(Pt,{children:[y(Ze,{x:d-l,y:p-l,width:u,height:u,fill:"none",strokeWidth:1,stroke:s}),y(Ze,{x:g,y:m,width:h,height:h,fill:s})]}),y(Le,{x:r==="left"?d:d+b,y:p-.5,width:v,height:1,fill:`url(#${_})`})]})};We("compare-hierarchy-left-right",{component:S5,composites:["title","item"]});const $5=e=>{var t,n;const{Title:r,Items:i,data:o,gap:s=0,itemGap:a=20,columnWidth:l=280,itemPadding:c=5,showColumnBackground:u=!0,columnBackgroundAlpha:h=.08,options:f}=e,[d,p]=i,{title:g,desc:m,items:v=[]}=o,b=r?y(r,{title:g,desc:m}):null,_=t3(f),x=[],w=[],C=l-c*2,P=ae(y(d,{indexes:[0],data:o,datum:v[0],width:l})),O=ae(y(p,{indexes:[0,0],data:o,datum:((n=(t=v[0])==null?void 0:t.children)==null?void 0:n[0])||{},width:C})),$=ae(y(ne,{indexes:[0]})),S=Math.max(...v.map(I=>{var E;return((E=I.children)==null?void 0:E.length)||0}),0),M=P.height+a+S*(O.height+a);if(v.forEach((I,E)=>{const{children:A=[]}=I,T=E*(l+s),N=T,H=0;if(u){const X=`${_[E%_.length]}${Math.round(h*255).toString(16).padStart(2,"0")}`;x.push(y(Le,{x:T,y:H,width:l,height:M,fill:X,rx:0,ry:0,"data-element-type":"shape"}))}x.push(y(d,{indexes:[E],datum:I,data:o,x:N,y:H,width:l})),w.push(y(nt,{indexes:[E],x:N+P.width-$.width-10,y:H+10})),E===0&&w.push(y(ne,{indexes:[E],x:N+P.width/2-$.width/2,y:H-$.height-5}));const D=H+P.height+a;A.forEach((F,X)=>{const G=D+X*(O.height+a),L=N+c,R=[E,X];x.push(y(p,{indexes:R,datum:F,data:o,x:L,y:G,width:C})),w.push(y(nt,{indexes:R,x:L+O.width-$.width-10,y:G+(O.height-$.height)/2})),X<A.length-1&&w.push(y(ne,{indexes:[E,X+1],x:L+O.width/2-$.width/2,y:G+O.height-$.height/2}))});const B=N+c;if(A.length>0){const F=D+A.length*(O.height+a);w.push(y(ne,{indexes:[E,A.length],x:B+O.width/2-$.width/2,y:F-O.height/2-$.height/2}))}else w.push(y(ne,{indexes:[E,0],x:B+O.width/2-$.width/2,y:D-a/2-$.height/2}))}),v.length>0){const I=v.length*(l+s);w.push(y(ne,{indexes:[v.length],x:I-s/2-$.width/2,y:-$.height-5}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[b,k(Y,{children:[y(qe,{children:x}),y(je,{children:w})]})]})};We("compare-hierarchy-row",{component:$5,composites:["title","item"]});const mf={axisColor:"#D9D9D9",axisArrowSize:5,strokeWidth:1,dashArray:"4,2",defaultExtraSpacing:20},E5=e=>{const{Title:t,Item:n,data:r,quadrantWidth:i,quadrantHeight:o,showAxis:s=!0,dashedAxis:a=!0}=e,{title:l,desc:c,items:u=[]}=r,h=t?y(t,{title:l,desc:c}):null,f=Array.from({length:4},(_,x)=>u[x]),d=f[0]?ae(y(n,{indexes:[0],data:r,datum:f[0]})):{width:0,height:0},p=i!=null?i:d.width+mf.defaultExtraSpacing,g=o!=null?o:d.height+mf.defaultExtraSpacing,m=PQ(p,g,d),v=f.map((_,x)=>{if(!_)return null;const w=m[x];return y(n,{indexes:[x],datum:_,data:r,x:w.x,y:w.y,positionH:x%2?"flipped":"normal",positionV:x<2?"normal":"flipped"})}).filter(Boolean),b=CQ(p,g,s,a);return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,k(Y,{width:p*2,height:g*2,children:[b,y(qe,{children:v})]})]})};function CQ(e,t,n,r){if(!n)return[];const{axisColor:i,axisArrowSize:o,strokeWidth:s,dashArray:a}=mf,l=e,c=t,u=e*2,h=t*2,f=r?a:void 0;return[y(Pe,{d:`M 0 ${c} L ${u} ${c}`,stroke:i,strokeWidth:s,strokeDasharray:f,fill:"none","data-element-type":"shape"}),k(Pt,{transform:`translate(${u}, ${c})`,children:[y(Pe,{d:`M 0 0 L ${-o} ${-o/2}`,stroke:i,strokeWidth:s,fill:"none"}),y(Pe,{d:`M 0 0 L ${-o} ${o/2}`,stroke:i,strokeWidth:s,fill:"none"})]}),k(Pt,{transform:`translate(0, ${c})`,children:[y(Pe,{d:`M 0 0 L ${o} ${-o/2}`,stroke:i,strokeWidth:s,fill:"none"}),y(Pe,{d:`M 0 0 L ${o} ${o/2}`,stroke:i,strokeWidth:s,fill:"none"})]}),y(Pe,{d:`M ${l} 0 L ${l} ${h}`,stroke:i,strokeWidth:s,strokeDasharray:f,fill:"none","data-element-type":"shape"}),k(Pt,{transform:`translate(${l}, 0)`,children:[y(Pe,{d:`M 0 0 L ${-o/2} ${o}`,stroke:i,strokeWidth:s,fill:"none"}),y(Pe,{d:`M 0 0 L ${o/2} ${o}`,stroke:i,strokeWidth:s,fill:"none"})]}),k(Pt,{transform:`translate(${l}, ${h})`,children:[y(Pe,{d:`M 0 0 L ${-o/2} ${-o}`,stroke:i,strokeWidth:s,fill:"none"}),y(Pe,{d:`M 0 0 L ${o/2} ${-o}`,stroke:i,strokeWidth:s,fill:"none"})]})]}function PQ(e,t,n){const r=e/2,i=t/2;return[{x:r-n.width/2,y:i-n.height/2},{x:e+r-n.width/2,y:i-n.height/2},{x:r-n.width/2,y:t+i-n.height/2},{x:e+r-n.width/2,y:t+i-n.height/2}]}We("quadrant",{component:E5,composites:["title","item"]});const yf=Object.assign,OQ={getId:e=>e.id||e.name,getPreH:e=>e.preH||0,getPreV:e=>e.preV||0,getHGap:e=>e.hgap||18,getVGap:e=>e.vgap||18,getChildren:e=>e.children,getHeight:e=>e.height||36,getWidth(e){const t=e.label||" ";return e.width||18*t.split("").length}};let M5=class vM{constructor(t,n){if(this.x=0,this.y=0,this.depth=0,this.children=[],this.hgap=0,this.vgap=0,t instanceof vM||"x"in t&&"y"in t&&"children"in t){const o=t;return this.data=o.data,this.id=o.id,this.x=o.x,this.y=o.y,this.width=o.width,this.height=o.height,this.depth=o.depth,this.children=o.children,this.parent=o.parent,this.hgap=o.hgap,this.vgap=o.vgap,this.preH=o.preH,void(this.preV=o.preV)}this.data=t;const r=n.getHGap(t),i=n.getVGap(t);this.preH=n.getPreH(t),this.preV=n.getPreV(t),this.width=n.getWidth(t),this.height=n.getHeight(t),this.width+=this.preH,this.height+=this.preV,this.id=n.getId(t),this.addGap(r,i)}isRoot(){return this.depth===0}isLeaf(){return this.children.length===0}addGap(t,n){this.hgap+=t,this.vgap+=n,this.width+=2*t,this.height+=2*n}eachNode(t){let n,r=[this];for(;n=r.shift();)t(n),r=n.children.concat(r)}DFTraverse(t){this.eachNode(t)}BFTraverse(t){let n,r=[this];for(;n=r.shift();)t(n),r=r.concat(n.children)}getBoundingBox(){const t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(n=>{t.left=Math.min(t.left,n.x),t.top=Math.min(t.top,n.y),t.width=Math.max(t.width,n.x+n.width),t.height=Math.max(t.height,n.y+n.height)}),t}translate(t=0,n=0){this.eachNode(r=>{r.x+=t,r.y+=n,r.x+=r.preH,r.y+=r.preV})}right2left(){const t=this.getBoundingBox();this.eachNode(n=>{n.x=n.x-2*(n.x-t.left)-n.width}),this.translate(t.width,0)}bottom2top(){const t=this.getBoundingBox();this.eachNode(n=>{n.y=n.y-2*(n.y-t.top)-n.height}),this.translate(0,t.height)}};function vf(e,t={},n){t=yf({},OQ,t);const r=new M5(e,t),i=[r];let o;if(!n&&!e.collapsed){for(;o=i.shift();)if(!o.data.collapsed){const s=t.getChildren(o.data),a=s?s.length:0;if(o.children=new Array(a),s&&a)for(let l=0;l<a;l++){const c=new M5(s[l],t);o.children[l]=c,i.push(c),c.parent=o,c.depth=o.depth+1}}}return r}let SQ=class{constructor(t,n={}){this.options=n,this.rootNode=vf(t,n)}execute(){throw new Error("please override this method")}};function $Q(e,t){const n=vf(e.data,t,!0),r=vf(e.data,t,!0),i=e.children.length,o=Math.round(i/2),s=t.getSide||function(a,l){return l<o?"right":"left"};for(let a=0;a<i;a++){const l=e.children[a];s(l,a)==="right"?r.children.push(l):n.children.push(l)}return n.eachNode(a=>{a.isRoot()||(a.side="left")}),r.eachNode(a=>{a.isRoot()||(a.side="right")}),{left:n,right:r}}const gr=["LR","RL","TB","BT","H","V"],EQ=["LR","RL","H"],MQ=gr[0];function IQ(e,t,n){const r=t.direction||MQ;if(t.isHorizontal=(o=>EQ.indexOf(o)>-1)(r),gr.indexOf(r)===-1)throw new TypeError(`Invalid direction: ${r}`);if(r===gr[0])n(e,t);else if(r===gr[1])n(e,t),e.right2left();else if(r===gr[2])n(e,t);else if(r===gr[3])n(e,t),e.bottom2top();else if(r===gr[4]||r===gr[5]){const{left:o,right:s}=$Q(e,t);n(o,t),n(s,t),t.isHorizontal?o.right2left():o.bottom2top(),s.translate(o.x-s.x,o.y-s.y),e.x=o.x,e.y=s.y;const a=e.getBoundingBox();t.isHorizontal?a.top<0&&e.translate(0,-a.top):a.left<0&&e.translate(-a.left,0)}let i=t.fixedRoot;return i===void 0&&(i=!0),i&&e.translate(-(e.x+e.width/2+e.hgap),-(e.y+e.height/2+e.vgap)),(function(o,s){if(s.radial){const[a,l]=s.isHorizontal?["x","y"]:["y","x"],c={x:1/0,y:1/0},u={x:-1/0,y:-1/0};let h=0;o.DFTraverse(p=>{h++;const{x:g,y:m}=p;c.x=Math.min(c.x,g),c.y=Math.min(c.y,m),u.x=Math.max(u.x,g),u.y=Math.max(u.y,m)});const f=u[l]-c[l];if(f===0)return;const d=2*Math.PI/h;o.DFTraverse(p=>{const g=p[l],m=c[l],v=p[a],b=o[a],_=(g-m)/f*(2*Math.PI-d)+d,x=v-b;p.x=Math.cos(_)*x,p.y=Math.sin(_)*x})}})(e,t),e}function I5(e,t){let n=0;return e.children.length?e.children.forEach(r=>{n+=I5(r,t)}):n=e.height,e._subTreeSep=t.getSubTreeSep(e.data),e.totalHeight=Math.max(e.height,n)+2*e._subTreeSep,e.totalHeight}function A5(e){const t=e.children,n=t.length;if(n){t.forEach(a=>{A5(a)});const r=t[0],i=t[n-1],o=i.y-r.y+i.height;let s=0;if(t.forEach(a=>{s+=a.totalHeight}),o>e.height)e.y=r.y+o/2-e.height/2;else if(t.length!==1||e.height>s){const a=e.y+(e.height-o)/2-r.y;t.forEach(l=>{l.translate(0,a)})}else e.y=(r.y+r.height/2+i.y+i.height/2)/2-e.height/2}}const AQ={getSubTreeSep:()=>0};function TQ(e,t={}){return t=yf({},AQ,t),e.parent={x:0,width:0,height:0,y:0},e.BFTraverse(n=>{n.x=n.parent.x+n.parent.width}),e.parent=void 0,I5(e,t),e.startY=0,e.y=e.totalHeight/2-e.height/2,e.eachNode(n=>{const r=n.children,i=r.length;if(i){const o=r[0];if(o.startY=n.startY+n._subTreeSep,i===1)o.y=n.y+n.height/2-o.height/2;else{o.y=o.startY+o.totalHeight/2-o.height/2;for(let s=1;s<i;s++){const a=r[s];a.startY=r[s-1].startY+r[s-1].totalHeight,a.y=a.startY+a.totalHeight/2-a.height/2}}}}),A5(e),e}class RQ extends SQ{execute(){return IQ(this.rootNode,this.options,TQ)}}const kQ={};function LQ(e,t){const n=yf({},kQ,t);return new RQ(e,n).execute()}var NQ=Object.defineProperty,zQ=Object.defineProperties,DQ=Object.getOwnPropertyDescriptors,T5=Object.getOwnPropertySymbols,qQ=Object.prototype.hasOwnProperty,HQ=Object.prototype.propertyIsEnumerable,R5=(e,t,n)=>t in e?NQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jQ=(e,t)=>{for(var n in t||(t={}))qQ.call(t,n)&&R5(e,n,t[n]);if(T5)for(var n of T5(t))HQ.call(t,n)&&R5(e,n,t[n]);return e},FQ=(e,t)=>zQ(e,DQ(t));const BQ=60,WQ=14,k5=30,L5="center",VQ="curved",GQ=2,YQ="node",XQ="solid",N5=(e,t=[],n=0)=>{var r,i;const o=[...t,n];return FQ(jQ({},e),{_indexes:o,children:(i=(r=e.children)==null?void 0:r.map((s,a)=>N5(s,o,a)))!=null?i:[]})},z5=(e,t,n,r)=>{var i,o;t.push(e),(o=(i=e.data)._flatIndex)!=null||(i._flatIndex=t.length-1),r&&n.push({parent:r,child:e});const s=e.children;s==null||s.forEach(a=>z5(a,t,n,e))},UQ=(e,t,n,r)=>{const i=Math.abs(n-e)/2,o=n>e?e+i:e-i,s=n>e?n-i:n+i;return`M ${e} ${t} C ${o} ${t} ${s} ${r} ${n} ${r}`},KQ=(e,t,n,r)=>`M ${e} ${t} L ${n} ${r}`,ZQ=(e,t,n,r=L5)=>{const i=c=>Math.max(0,Math.min(1,c)),s=(c=>c==="top"?0:c==="bottom"?1:c==="center"?.5:i(c))(r),a=e.y+e.height*s,l=t.y+t.height*s;return n==="left"?{sx:e.x,sy:a,tx:t.x+t.width,ty:l}:{sx:e.x+e.width,sy:a,tx:t.x,ty:l}},D5=e=>{var t,n;const{Title:r,Items:i,data:o,levelGap:s=BQ,nodeGap:a=WQ,edgeAlign:l=L5,colorMode:c=YQ,edgeColorMode:u=XQ,edgeType:h=VQ,edgeWidth:f=GQ,options:d}=e,{title:p,desc:g,items:m=[]}=o,v=r?y(r,{title:p,desc:g}):null,b=Ot(d),_=ae(y(ne,{indexes:[0]})),x=new Map;let w=0;if(!m.length||!(i!=null&&i.length))return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,y(Y,{children:y(ne,{indexes:[0],x:0,y:0})})]});const C=N5(m[0]),P=new WeakMap,O=new WeakMap,$=new WeakMap,S=(q,j)=>{var V;if(c==="group"){const U=String((V=q.group)!=null?V:"");let K=x.get(U);return K==null&&(K=w,x.set(U,K),w+=1),[K]}return n3({depth:j,originalIndexes:q._indexes,flatIndex:q._flatIndex},c)},M=(q,j)=>{const V=$.get(q);if(V)return V;const U=S(q,j),K=Fe(d,U),J=Et({colorPrimary:K},d);return $.set(q,J),O.set(q,K),J},I=q=>{const j=P.get(q);if(j)return j;const V=Math.max(q._indexes.length-1,0),U=Na(i,V),K=ae(y(U,{indexes:q._indexes,data:o,datum:q,positionH:"center",positionV:"middle",themeColors:M(q,V)}));return P.set(q,K),K},E=LQ(C,{direction:"H",getSide:(q,j)=>{if(!q.parent)return"right";const V=(q.parent.children||[]).indexOf(q);return(V>=0?V:j)%2===0?"left":"right"},getWidth:q=>I(q).width,getHeight:q=>I(q).height,getHGap:()=>s,getVGap:()=>a}),A=[],T=[];z5(E,A,T);const N=A.length>0?Math.min(...A.map(q=>q.x)):0,H=A.length>0?Math.min(...A.map(q=>q.y)):0,D=k5-N,B=k5-H,F=[],X=[],G=[],L=[],R=new WeakMap;A.forEach(q=>{var j,V;const U=q.data,K=I(U),J=q.x+D+((j=q.hgap)!=null?j:0),Z=q.y+B+((V=q.vgap)!=null?V:0),ie=Na(i,q.depth),Q=q.depth===0?"center":q.side==="left"?"flipped":"normal",te=M(U,q.depth);G.push(y(ie,{indexes:U._indexes,data:o,datum:U,x:J,y:Z,positionH:Q,positionV:"middle",themeColors:te})),R.set(q,{x:J,y:Z,width:K.width,height:K.height,centerX:J+K.width/2,centerY:Z+K.height/2})}),T.forEach(q=>{var j,V,U,K;const{parent:J,child:Z}=q,ie=R.get(Z),Q=R.get(J);if(!ie||!Q)return;const te=Z.data,{sx:ce,sy:re,tx:ee,ty:oe}=ZQ(Q,ie,Z.side,l),se=(j=O.get(te))!=null?j:Fe(d,S(te,Z.depth)),ue=(V=O.get(J.data))!=null?V:Fe(d,S(J.data,J.depth)),pe=h==="straight"?KQ(ce,re,ee,oe):UQ(ce,re,ee,oe),fe=`edge-gradient-${te._indexes.join("-")}`;X.push(y(Pe,{d:pe,stroke:u==="gradient"?`url(#${fe})`:se!=null?se:b,strokeWidth:f,fill:"none"})),u==="gradient"&&F.push(k("linearGradient",{id:fe,gradientUnits:"userSpaceOnUse",x1:ce,y1:re,x2:ee,y2:oe,children:[y("stop",{offset:"0%",stopColor:ue!=null?ue:b}),y("stop",{offset:"100%",stopColor:se!=null?se:b})]}));const ge=(K=(U=te.children)==null?void 0:U.length)!=null?K:0,he=[...te._indexes,ge],xe=ie.x+(ie.width-_.width)/2,$e=ie.y+ie.height+8,Me=$e+_.height+6;Z.depth>0&&L.push(y(nt,{indexes:te._indexes,x:xe,y:$e})),L.push(y(ne,{indexes:he,x:xe,y:Me}))});const z=R.get(E);if(z){const q=E.data,j=(n=(t=q.children)==null?void 0:t.length)!=null?n:0,V=[...q._indexes,j],U=z.x+(z.width-_.width)/2,K=z.y+z.height+8+_.height+6;L.push(y(ne,{indexes:V,x:U,y:K}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,k(Y,{children:[F.length>0?y(Ke,{children:F}):null,y(Y,{children:X}),y(qe,{children:G}),y(je,{children:L})]})]})};We("hierarchy-mindmap",{component:D5,composites:["title","item"]});const Ai=(e,t)=>{if(e[0]!=="#"||e.length!==7)return e;const n=Math.max(0,Math.min(1,t)),r=Math.round(n*255).toString(16).padStart(2,"0");return`${e}${r}`},Ti=e=>e==null?"":String(e),fl=(e,t,n)=>ae(y(De,{fontSize:t,fontWeight:n,children:e})),QQ=(e,t,n,r=" ")=>{const i=fl(r,t,n);let o=i.width,s=i.height;return e.forEach(a=>{const l=fl(a||" ",t,n);o=Math.max(o,l.width),s=Math.max(s,l.height)}),{width:o,height:s}},q5=(e,t,n,r)=>{const i=QQ(e,t,"normal","Item");return{pillWidth:i.width+n*2,pillHeight:i.height+r*2}},H5=e=>{const{Title:t,data:n,options:r,rowGap:i=20,labelGap:o=20,groupGap:s=20,pillGap:a=14,pillColumns:l=2,ungroupedColumns:c=6,layerLabelPosition:u="left",rowPadding:h=20,groupPadding:f=16,labelPaddingX:d=28,labelPaddingY:p=16,pillPaddingX:g=18,pillPaddingY:m=10,labelFontSize:v=20,groupTitleFontSize:b=18,pillFontSize:_=16,groupTitleGap:x=10,rowRadius:w=12,groupRadius:C=10,pillRadius:P=12}=e,{title:O,desc:$,items:S=[]}=n,M=t?y(t,{title:O,desc:$}):null;if(S.length===0)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[M,y(Y,{children:y(qe,{})})]});const I=Et(r.themeConfig),E=[],A=[],T=u==="right",N=.12,H=.55,D=.08,B=.4,F=.06,X=.35,G=S.map(Z=>{const ie=Ti(Z.label),Q=fl(ie||" ",v,"bold"),te=Q.width+d*2,ce=Q.height+p*2,re=Z.children||[];if(re.some(xe=>{var $e;return((($e=xe.children)==null?void 0:$e.length)||0)>0})){const xe=[];re.forEach(ze=>{(ze.children||[]).forEach(ye=>{xe.push(Ti(ye.label))})});const{pillWidth:$e,pillHeight:Me}=q5(xe,_,g,m),Ce=re.map(ze=>{const ye=Ti(ze.label),_e=fl(ye||" ",b,"bold"),Ie=ze.children||[],Ee=Ie.length>0?Math.min(l,Ie.length):0,le=Ee>0?Math.ceil(Ie.length/Ee):0,me=Ee>0?Ee*$e+(Ee-1)*a:0,Oe=le>0?le*Me+(le-1)*a:0,rt=Math.max(_e.width,me)+f*2,Se=f*2+_e.height+(le>0?x+Oe:0);return{label:ye,children:Ie,width:rt,height:Se,titleHeight:_e.height,columns:Ee,contentWidth:me,pillWidth:$e,pillHeight:Me}}),Te=Ce.reduce((ze,ye)=>ze+ye.width,0)+(Ce.length>1?(Ce.length-1)*s:0),Ne=Ce.reduce((ze,ye)=>Math.max(ze,ye.height),0);return{label:ie,labelWidth:te,labelHeight:ce,hasGroups:!0,children:re,groupMetrics:Ce,contentInnerWidth:Te,contentInnerHeight:Ne}}const oe=re.map(xe=>Ti(xe.label)),{pillWidth:se,pillHeight:ue}=q5(oe,_,g,m),pe=re.length>0?Math.min(c,re.length):0,fe=pe>0?Math.ceil(re.length/pe):0,ge=pe>0?pe*se+(pe-1)*a:0,he=fe>0?fe*ue+(fe-1)*a:0;return{label:ie,labelWidth:te,labelHeight:ce,hasGroups:!1,children:re,pillWidth:se,pillHeight:ue,columns:pe,contentInnerWidth:ge,contentInnerHeight:he}}),L=G.reduce((Z,ie)=>Math.max(Z,ie.labelWidth),0),R=G.reduce((Z,ie)=>Math.max(Z,ie.contentInnerWidth),0),z=Z=>{const ie=Fe(r,[Z])||I.colorPrimary||"#6c7dff";return{rowFill:Ai(ie,N),rowStroke:Ai(ie,H),groupFill:Ai(ie,D),groupStroke:Ai(ie,B),pillFill:Ai(ie,F),pillStroke:Ai(ie,X)}},q=(Z,ie,Q,te,ce,re,ee,oe,se,ue,pe,fe,ge,he)=>{E.push(y(Le,{x:Q,y:ee,width:ce,height:oe,fill:ge,stroke:he,rx:w,ry:w,"data-element-type":"shape"})),E.push(y(Le,{x:se,y:ue,width:pe,height:fe,fill:ge,stroke:he,rx:w,ry:w,"data-element-type":"shape"})),A.push(y(De,{x:Q,y:te,width:ce,height:re,fontSize:v,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:I.colorText,"data-element-type":Ge.ItemLabel,"data-indexes":ie,children:Z}))},j=(Z,ie,Q,te)=>{const ce=Z.groupMetrics||[],re=Z.label,ee=[ie],oe=L,se=Z.labelHeight,ue=Z.contentInnerHeight,pe=Math.max(0,R-Z.contentInnerWidth),fe=ce.length>0?pe/ce.length:0,he=Z.contentInnerWidth+(ce.length>0?pe:0)+h*2,xe=ue+h*2,$e=Math.max(se,xe),Me=T?0:oe+o,Ce=T?Me+he+o:0,Te=Q+($e-se)/2,Ne=Q+($e-xe)/2;q(re,ee,Ce,Te,oe,se,Q,$e,Me,Ne,he,xe,te.rowFill,te.rowStroke);let ze=Me+h;return ce.forEach((_e,Ie)=>{const Ee=[...ee,Ie],le=_e.width+fe,me=Ne+h+(ue-_e.height)/2;E.push(y(Le,{x:ze,y:me,width:le,height:_e.height,fill:te.groupFill,stroke:te.groupStroke,rx:C,ry:C,"data-element-type":"shape"}));const Oe=_e.children.length>0,Ye=Oe?me+f:me,rt=Oe?_e.titleHeight:_e.height,Se=Oe?"top":"middle";if(A.push(y(De,{x:ze+f,y:Ye,width:le-f*2,height:rt,fontSize:b,fontWeight:"bold",alignHorizontal:"center",alignVertical:Se,fill:I.colorText,"data-element-type":Ge.ItemLabel,"data-indexes":Ee,children:_e.label})),_e.columns>0){const Be=le-f*2,Qe=Be-_e.contentWidth,Je=Qe>0?Qe/_e.columns:0,Xe=_e.pillWidth+Je,pt=_e.columns*Xe+(_e.columns-1)*a,et=(Be-pt)/2,Wt=ze+f+Math.max(0,et),Gt=me+f+_e.titleHeight+x;_e.children.forEach((Ue,$t)=>{const Nt=[...Ee,$t],Qt=Math.floor($t/_e.columns),qn=$t%_e.columns,ii=Wt+qn*(Xe+a),oi=Gt+Qt*(_e.pillHeight+a),Hn=Math.min(P,_e.pillHeight/2);E.push(y(Le,{x:ii,y:oi,width:Xe,height:_e.pillHeight,fill:te.pillFill,stroke:te.pillStroke,rx:Hn,ry:Hn,"data-element-type":"shape"})),A.push(y(De,{x:ii,y:oi,width:Xe,height:_e.pillHeight,fontSize:_,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:I.colorText,"data-element-type":Ge.ItemLabel,"data-indexes":Nt,children:Ti(Ue.label)}))})}ze+=le+s}),{rowWidth:T?Ce+oe:Me+he,rowHeight:$e}},V=(Z,ie,Q,te)=>{const ce=Z.label,re=[ie],ee=L,oe=Z.labelHeight,se=Z.contentInnerHeight,ue=Math.max(0,R-Z.contentInnerWidth),pe=Z.columns||0,fe=Z.pillWidth||0,ge=Z.pillHeight||0,he=pe>0?ue/pe:0,xe=fe+he,Me=(pe>0?pe*xe+(pe-1)*a:0)+h*2,Ce=se+h*2,Te=Math.max(oe,Ce),Ne=T?0:ee+o,ze=T?Ne+Me+o:0,ye=Q+(Te-oe)/2,_e=Q+(Te-Ce)/2;if(q(ce,re,ze,ye,ee,oe,Q,Te,Ne,_e,Me,Ce,te.rowFill,te.rowStroke),pe>0){const Ee=Ne+h,le=_e+h;(Z.children||[]).forEach((Oe,Ye)=>{const rt=[...re,Ye],Se=Math.floor(Ye/pe),Be=Ye%pe,Qe=Ee+Be*(xe+a),Je=le+Se*(ge+a),Xe=Math.min(P,ge/2);E.push(y(Le,{x:Qe,y:Je,width:xe,height:ge,fill:te.pillFill,stroke:te.pillStroke,rx:Xe,ry:Xe,"data-element-type":"shape"})),A.push(y(De,{x:Qe,y:Je,width:xe,height:ge,fontSize:_,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:I.colorText,"data-element-type":Ge.ItemLabel,"data-indexes":rt,children:Ti(Oe.label)}))})}return{rowWidth:T?ze+ee:Ne+Me,rowHeight:Te}};let U=0,K=0;G.forEach((Z,ie)=>{const Q=z(ie),{rowWidth:te,rowHeight:ce}=Z.hasGroups?j(Z,ie,U,Q):V(Z,ie,U,Q);K=Math.max(K,te),U+=ce+i});const J=Math.max(U-i,0);return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[M,k(Y,{width:K,height:J,children:[y(Y,{children:E}),y(qe,{children:A})]})]})};We("hierarchy-structure",{component:H5,composites:["title"]});var JQ=Object.defineProperty,eJ=Object.defineProperties,tJ=Object.getOwnPropertyDescriptors,j5=Object.getOwnPropertySymbols,nJ=Object.prototype.hasOwnProperty,rJ=Object.prototype.propertyIsEnumerable,F5=(e,t,n)=>t in e?JQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dl=(e,t)=>{for(var n in t||(t={}))nJ.call(t,n)&&F5(e,n,t[n]);if(j5)for(var n of j5(t))rJ.call(t,n)&&F5(e,n,t[n]);return e},pl=(e,t)=>eJ(e,tJ(t));const B5=(e,t)=>{const n=Math.max(0,t/2-1);return Math.min(e,n)},W5=e=>{const{Title:t,Items:n,data:r,levelGap:i=80,nodeGap:o=60,edgeType:s="straight",edgeColorMode:a="gradient",edgeWidth:l=3,edgeStyle:c="solid",edgeDashPattern:u="5,5",edgeCornerRadius:h=0,edgeOffset:f=0,edgeOrigin:d="center",edgeOriginPadding:p=20,edgeMarker:g="none",markerSize:m=12,colorMode:v="branch",orientation:b="top-bottom",options:_}=e,x=b==="left-right"||b==="right-left",w=b==="bottom-top"||b==="right-left"?-1:1,{title:C,desc:P}=r,O=Ot(_),$=new Map;let S=0;const M=ee=>{var oe;const se=[...ee];return(oe=se[0])!=null&&oe.children||(se[0]=pl(dl({},se[0]),{children:se.slice(1)}),se.splice(1)),se},I=(ee,oe,se,ue,pe,fe="vertical")=>{const ge=fe==="vertical",he=ge?ue-oe:se-ee,xe=ge?se-ee:ue-oe,$e=he===0?1:Math.sign(he),Me=xe===0?1:Math.sign(xe),Ce=ge?oe+he/2:ee+he/2,Te=Math.min(pe,Math.abs(he)/2,Math.abs(xe)/2);return Te===0?ge?`M ${ee} ${oe} L ${ee} ${Ce} L ${se} ${Ce} L ${se} ${ue}`:`M ${ee} ${oe} L ${Ce} ${oe} L ${Ce} ${ue} L ${se} ${ue}`:ge?`M ${ee} ${oe}
82
+ `,k(Y,cZ(lZ({},h),{children:[y(Pe,{d:P,x:0,y:0,width:r,height:i,fill:u.colorPrimary,"data-element-type":"shape"}),y(Ft,{indexes:n,x:g,y:m,size:o,fill:u.colorBg}),y(Ve,{indexes:n,x:w,y:v,width:f,fontSize:14,fontWeight:"bold",fill:u.colorBg,alignHorizontal:l==="flipped"?"right":"left",children:t.label}),t.desc&&y(ht,{indexes:n,x:_,y:x,width:f,fontSize:11,wordWrap:!0,fill:u.colorBg,alignHorizontal:l==="flipped"?"right":"left",children:t.desc})]}))};lt("quarter-simple-card",{component:k4,composites:["icon","label","desc"]});var uZ=Object.defineProperty,hZ=Object.defineProperties,fZ=Object.getOwnPropertyDescriptors,L4=Object.getOwnPropertySymbols,dZ=Object.prototype.hasOwnProperty,pZ=Object.prototype.propertyIsEnumerable,N4=(e,t,n)=>t in e?uZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gZ=(e,t)=>{for(var n in t||(t={}))dZ.call(t,n)&&N4(e,n,t[n]);if(L4)for(var n of L4(t))pZ.call(t,n)&&N4(e,n,t[n]);return e},mZ=(e,t)=>hZ(e,fZ(t));const z4=e=>{const[{datum:t,indexes:n,width:r=240,height:i=140,iconSize:o=28,gap:s=12,ribbonHeight:a=32,themeColors:l},c]=at(e,["width","height","iconSize","gap","ribbonHeight"]),u=`${l.colorPrimary}-ribbon`;return k(Y,mZ(gZ({},c),{children:[y(Ke,{children:k("linearGradient",{id:u,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[y("stop",{offset:"0%",stopColor:l.colorPrimary}),y("stop",{offset:"100%",stopColor:be(l.colorPrimary).darken(15).toHexString()})]})}),k(Ct,{children:[y(Le,{x:0,y:0,width:r,height:i,fill:l.colorBgElevated,stroke:l.colorPrimaryBg,strokeWidth:1,rx:8,ry:8}),y(Le,{x:0,y:0,width:r,height:a,fill:`url(#${u})`,rx:8,ry:8}),y(Le,{x:0,y:8,width:r,height:a-8,fill:`url(#${u})`}),y(Pe,{x:r-20,y:a,width:20,height:8,fill:be(l.colorPrimary).darken(25).toHexString(),d:"M0,0 L20,0 L15,8 L5,8 Z"})]}),y(Ft,{indexes:n,x:s,y:a+s,size:o,fill:l.colorPrimary}),y(Ve,{indexes:n,x:o+2*s,y:a+s,width:r-o-3*s,height:o,alignHorizontal:"left",alignVertical:"middle",lineHeight:1,fontWeight:"bold",fill:l.colorText,children:t.label}),y(ht,{indexes:n,x:s,y:a+o+s+5,width:r-2*s,alignHorizontal:"left",fill:l.colorTextSecondary,lineNumber:3,wordWrap:!0,children:t.desc}),y(Ft,{indexes:n,x:r-s-8,y:s/2,size:16,fill:l.colorWhite})]}))};lt("ribbon-card",{component:z4,composites:["icon","label","desc"]});var yZ=Object.defineProperty,vZ=Object.defineProperties,bZ=Object.getOwnPropertyDescriptors,D4=Object.getOwnPropertySymbols,wZ=Object.prototype.hasOwnProperty,_Z=Object.prototype.propertyIsEnumerable,q4=(e,t,n)=>t in e?yZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xZ=(e,t)=>{for(var n in t||(t={}))wZ.call(t,n)&&q4(e,n,t[n]);if(D4)for(var n of D4(t))_Z.call(t,n)&&q4(e,n,t[n]);return e},CZ=(e,t)=>vZ(e,bZ(t));const H4=e=>{const[{indexes:t,datum:n,themeColors:r,width:i=300,height:o=40,padding:s=4,positionH:a="normal"},l]=at(e,["width","height","borderRadius","padding"]),c=o/2,u=c,h=s,f=i-c*2,d=o-s*2;return k(Y,CZ(xZ({},l),{children:[y(Le,{"data-element-type":"shape",width:i,height:o,rx:c,ry:c,fill:r.colorPrimaryBg,stroke:r.colorPrimary,strokeWidth:1,opacity:.8}),y(Ve,{indexes:t,x:u,y:h,width:f,height:d,alignHorizontal:a==="flipped"?"right":a==="center"?"center":"left",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:r.colorText,children:n.label})]}))};lt("rounded-rect-node",{component:H4,composites:["label"]});var PZ=Object.defineProperty,SZ=Object.defineProperties,OZ=Object.getOwnPropertyDescriptors,j4=Object.getOwnPropertySymbols,$Z=Object.prototype.hasOwnProperty,EZ=Object.prototype.propertyIsEnumerable,F4=(e,t,n)=>t in e?PZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,MZ=(e,t)=>{for(var n in t||(t={}))$Z.call(t,n)&&F4(e,n,t[n]);if(j4)for(var n of j4(t))EZ.call(t,n)&&F4(e,n,t[n]);return e},AZ=(e,t)=>SZ(e,OZ(t));const B4=e=>{const[{width:t=24,height:n=t,strokeWidth:r=2,themeColors:i,datum:o},s]=at(e,["width","height"]),a=Math.min(t,n)-r,l=r/2;return k(Y,AZ(MZ({},s),{width:t,height:n,children:[y(Le,{width:t,height:n,fill:"none",visibility:"hidden"}),y(Ze,{x:l,y:l,width:a,height:a,fill:i.colorPrimary,stroke:i.isDarkMode?"#FFF":"#000",strokeWidth:r,"data-element-type":"shape",children:y("title",{children:o.label||o.desc})})]}))};lt("simple-circle-node",{component:B4,composites:[]});var IZ=Object.defineProperty,TZ=Object.defineProperties,RZ=Object.getOwnPropertyDescriptors,W4=Object.getOwnPropertySymbols,kZ=Object.prototype.hasOwnProperty,LZ=Object.prototype.propertyIsEnumerable,V4=(e,t,n)=>t in e?IZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,NZ=(e,t)=>{for(var n in t||(t={}))kZ.call(t,n)&&V4(e,n,t[n]);if(W4)for(var n of W4(t))LZ.call(t,n)&&V4(e,n,t[n]);return e},zZ=(e,t)=>TZ(e,RZ(t));const G4=e=>{const[{indexes:t,datum:n,width:r=140,themeColors:i,positionV:o="normal"},s]=at(e,["width"]),a=o!=="flipped",l=a?"bottom":"top",c=y(Ve,{indexes:t,width:r,fill:i.colorText,alignHorizontal:"center",alignVertical:l,fontSize:14,children:n.label}),u=y(ht,{indexes:t,width:r,fill:i.colorTextSecondary,alignHorizontal:"center",alignVertical:l,children:n.desc}),h=30,f=10,d=ae(c),p=ae(u),g=d.height+p.height,m=g+f+h+f+g;return y(Y,zZ(NZ({width:r,height:m},s),{children:k(ve,{flexDirection:"column",alignItems:"center",children:[a?k(tt,{children:[u,c,y(yt,{height:f})]}):y(tt,{children:y(yt,{height:g+f})}),k($i,{horizontal:"center",vertical:"middle",children:[y(DZ,{width:r,height:h,fill:i.colorPrimary}),y(De,{width:r,height:h,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:n.time?n.time:String(t[0]+1).padStart(2,"0").slice(-2)})]}),a?y(tt,{children:y(yt,{height:g+f})}):k(tt,{children:[y(yt,{height:f}),c,u]})]})}))},DZ=e=>{const{x:t=0,y:n=0,width:r=100,height:i=40,fill:o="#FF356A",size:s=10}=e;return y(Yt,{width:r,height:i,points:[{x:t,y:n},{x:t+r-s,y:n},{x:t+r,y:n+i/2},{x:t+r-s,y:n+i},{x:t,y:n+i},{x:t+s,y:n+i/2}],fill:o,"data-element-type":"shape"})};lt("simple-horizontal-arrow",{component:G4,composites:["label","desc","time"]});var qZ=Object.defineProperty,HZ=Object.defineProperties,jZ=Object.getOwnPropertyDescriptors,Y4=Object.getOwnPropertySymbols,FZ=Object.prototype.hasOwnProperty,BZ=Object.prototype.propertyIsEnumerable,X4=(e,t,n)=>t in e?qZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,WZ=(e,t)=>{for(var n in t||(t={}))FZ.call(t,n)&&X4(e,n,t[n]);if(Y4)for(var n of Y4(t))BZ.call(t,n)&&X4(e,n,t[n]);return e},VZ=(e,t)=>HZ(e,jZ(t));const U4=e=>{const[{indexes:t,datum:n,width:r=180,illusSize:i=r,gap:o=8,themeColors:s,usePaletteColor:a=!1},l]=at(e,["width","illusSize","gap","usePaletteColor"]),{label:c,desc:u}=n,h=a?s.colorPrimary:s.colorText,f=y(Ve,{indexes:t,width:r,alignHorizontal:"center",alignVertical:"middle",fill:h,children:c}),d=ae(f);return k(ve,VZ(WZ({},l),{width:r,height:i+o+d.height+o+48,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:o,children:[y(T_,{indexes:t,width:i,height:i}),f,y(ht,{indexes:t,width:r,alignHorizontal:"center",alignVertical:"top",fill:s.colorTextSecondary,lineNumber:3,children:u})]}))};lt("simple-illus",{component:U4,composites:["illus","label","desc"]});var GZ=Object.defineProperty,YZ=Object.defineProperties,XZ=Object.getOwnPropertyDescriptors,K4=Object.getOwnPropertySymbols,UZ=Object.prototype.hasOwnProperty,KZ=Object.prototype.propertyIsEnumerable,Z4=(e,t,n)=>t in e?GZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_f=(e,t)=>{for(var n in t||(t={}))UZ.call(t,n)&&Z4(e,n,t[n]);if(K4)for(var n of K4(t))KZ.call(t,n)&&Z4(e,n,t[n]);return e},xf=(e,t)=>YZ(e,XZ(t));const Q4=e=>{const[{indexes:t,datum:n,width:r=200,height:i,gap:o=4,showIcon:s=!0,iconSize:a=30,iconType:l="default",positionH:c="normal",positionV:u="normal",usePaletteColor:h=!1,themeColors:f},d]=at(e,["width","height","gap","showIcon","iconSize","iconType","usePaletteColor"]),{label:p,desc:g,icon:m}=n,b=(N=>N==="normal"?"left":N==="flipped"?"right":"center")(c),w=h?f.colorPrimary:f.colorText,x=14,_=1.4,P=ae(y(Ve,{indexes:t,width:r,alignHorizontal:"center",alignVertical:"middle",fill:w,children:p})),S=s?l==="circle"?y(jr,{indexes:t,size:a,fill:f.colorPrimary,colorBg:f.colorBg}):y(Ft,{indexes:t,size:a,fill:f.colorTextSecondary}):null;if(!s||!m){const N=i?Math.max(0,i-P.height-o):void 0,H=N?N<=60?1:Math.floor(N/(_*x)):2,D=i?u==="middle"?(i-P.height-(N||0)-o)/2:u==="flipped"?i-P.height-(N||0)-o:0:0;return k(Y,xf(_f({},d),{children:[y(Ve,{indexes:t,width:r,y:D,alignHorizontal:b,alignVertical:"middle",fill:w,children:p}),y(ht,{indexes:t,width:r,height:N,y:D+P.height+o,alignHorizontal:b,alignVertical:I(),lineNumber:H,fill:f.colorTextSecondary,children:g})]}))}if(c==="center"){const N=s&&m?a:0,H=i?Math.max(0,i-P.height-N-o*2):void 0,D=H?H<=60?1:Math.floor(H/(_*x)):2,W=P.height+(H||0)+o,F=i?u==="middle"?(i-W-N-o)/2:u==="flipped"?i-W-N-o:0:0;return y(ve,xf(_f({},d),{flexDirection:"column",gap:o,alignItems:"center",children:u==="flipped"?k(tt,{children:[k(Y,{children:[y(Ve,{indexes:t,width:r,y:F,alignHorizontal:"center",alignVertical:"middle",fill:w,children:p}),y(ht,{indexes:t,width:r,height:H,y:F+P.height+o,alignHorizontal:"center",alignVertical:"bottom",lineNumber:D,fill:f.colorTextSecondary,children:g})]}),S]}):k(tt,{children:[S,k(Y,{children:[y(Ve,{indexes:t,width:r,y:F,alignHorizontal:"center",alignVertical:"middle",fill:w,children:p}),y(ht,{indexes:t,width:r,height:H,y:F+P.height+o,alignHorizontal:"center",alignVertical:"top",lineNumber:D,fill:f.colorTextSecondary,children:g})]})]})}))}const $=ae(S),O=Math.max(r-$.width-o,0),M=i?Math.max(0,i-P.height-o):void 0,A=M?M<=60?1:Math.floor(M/(_*x)):2,E=i?u==="middle"?(i-P.height-(M||0)-o)/2:u==="flipped"?i-P.height-(M||0)-o:0:0;return y(ve,xf(_f({},d),{flexDirection:"row",gap:o,alignItems:T(u),children:c==="flipped"?k(tt,{children:[k(Y,{children:[y(Ve,{indexes:t,width:O,y:E,alignHorizontal:"right",alignVertical:"middle",fill:w,children:p}),y(ht,{indexes:t,width:O,height:M,y:E+P.height+o,alignHorizontal:"right",alignVertical:I(),lineNumber:A,fill:f.colorTextSecondary,children:g})]}),S]}):k(tt,{children:[S,k(Y,{children:[y(Ve,{indexes:t,width:O,y:E,alignHorizontal:"left",alignVertical:"middle",fill:w,children:p}),y(ht,{indexes:t,width:O,height:M,y:E+P.height+o,alignHorizontal:"left",alignVertical:I(),lineNumber:A,fill:f.colorTextSecondary,children:g})]})]})}));function I(N,H){return"top"}function T(N){return N==="normal"?"flex-start":N==="flipped"?"flex-end":"center"}};lt("simple",{component:Q4,composites:["icon","label","desc"]});var ZZ=Object.defineProperty,QZ=Object.defineProperties,JZ=Object.getOwnPropertyDescriptors,J4=Object.getOwnPropertySymbols,eQ=Object.prototype.hasOwnProperty,tQ=Object.prototype.propertyIsEnumerable,e5=(e,t,n)=>t in e?ZZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nQ=(e,t)=>{for(var n in t||(t={}))eQ.call(t,n)&&e5(e,n,t[n]);if(J4)for(var n of J4(t))tQ.call(t,n)&&e5(e,n,t[n]);return e},rQ=(e,t)=>QZ(e,JZ(t));const t5=e=>{const[{indexes:t,datum:n,height:r=140,themeColors:i,positionH:o="normal"},s]=at(e,["height"]),a=o==="normal"?"right":"left",l=y(Ve,{indexes:t,width:120,fill:i.colorText,alignHorizontal:a,alignVertical:"middle",fontSize:14,children:n.label}),c=y(ht,{indexes:t,width:120,fill:i.colorTextSecondary,alignHorizontal:a,alignVertical:"top",children:n.desc}),u=o!=="flipped",h=15,f=30,d=120,p=d+h+f+h+d;return y(Y,rQ(nQ({width:p,height:r},s),{children:k(ve,{flexDirection:"row",alignItems:"center",children:[u?k(tt,{children:[k(ve,{flexDirection:"column",alignItems:"flex-end",children:[l,c]}),y(yt,{width:h})]}):y(tt,{children:y(yt,{width:d+h})}),k($i,{horizontal:"center",vertical:"middle",children:[y(iQ,{width:f,height:r,fill:i.colorPrimary}),y(De,{width:f,height:r,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:String(t[0]+1).padStart(2,"0").slice(-2)})]}),u?y(tt,{children:y(yt,{width:d+h})}):k(tt,{children:[y(yt,{width:h}),k(ve,{flexDirection:"column",alignItems:"flex-start",children:[l,c]})]})]})}))},iQ=e=>{const{x:t=0,y:n=0,width:r=30,height:i=100,fill:o="#FF356A",size:s=10}=e;return y(Yt,{width:r,height:i,points:[{x:t,y:n},{x:t+r/2,y:n+s},{x:t+r,y:n},{x:t+r,y:n+i-s},{x:t+r/2,y:n+i},{x:t,y:n+i-s}],fill:o,"data-element-type":"shape"})};lt("simple-vertical-arrow",{component:t5,composites:["label","desc"]});var oQ=Object.defineProperty,sQ=Object.defineProperties,aQ=Object.getOwnPropertyDescriptors,n5=Object.getOwnPropertySymbols,lQ=Object.prototype.hasOwnProperty,cQ=Object.prototype.propertyIsEnumerable,r5=(e,t,n)=>t in e?oQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uQ=(e,t)=>{for(var n in t||(t={}))lQ.call(t,n)&&r5(e,n,t[n]);if(n5)for(var n of n5(t))cQ.call(t,n)&&r5(e,n,t[n]);return e},hQ=(e,t)=>sQ(e,aQ(t));const Cf=80,Pf=3,i5=e=>{const[{datum:t,indexes:n,width:r=200,gap:i=4,positionH:o="center",themeColors:s},a]=at(e,["width","height","gap"]),l=ae(y(Ve,{indexes:n,fontSize:18,fontWeight:"bold",width:r,children:t.label})),c=t.desc?ae(y(ht,{indexes:n,width:r,wordWrap:!0,children:t.desc})):{height:0},u=l.height+i+Pf+(t.desc?i*2+c.height:0),h=0,f=0,d=o==="center"?"center":o==="flipped"?"right":"left",p=o==="center"?(r-Cf)/2:o==="flipped"?r-Cf:0,g=f+l.height+i,m=0,v=g+Pf+i*2;return k(Y,hQ(uQ({width:r,height:u},a),{children:[t.label&&y(Ve,{indexes:n,x:h,y:f,width:r,alignHorizontal:d,fill:s.colorPrimary,fontSize:18,fontWeight:"bold",children:t.label}),t.label&&y(Le,{x:p,y:g,width:Cf,height:Pf,fill:s.colorPrimary,"data-element-type":"shape"}),t.desc&&y(ht,{indexes:n,width:r,x:m,y:v,alignHorizontal:d,wordWrap:!0,fill:s.colorText,children:t.desc})]}))};lt("underline-text",{component:i5,composites:["label","desc"]});var fQ=Object.defineProperty,dQ=Object.defineProperties,pQ=Object.getOwnPropertyDescriptors,o5=Object.getOwnPropertySymbols,gQ=Object.prototype.hasOwnProperty,mQ=Object.prototype.propertyIsEnumerable,s5=(e,t,n)=>t in e?fQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yQ=(e,t)=>{for(var n in t||(t={}))gQ.call(t,n)&&s5(e,n,t[n]);if(o5)for(var n of o5(t))mQ.call(t,n)&&s5(e,n,t[n]);return e},vQ=(e,t)=>dQ(e,pQ(t));const a5=e=>{const[{indexes:t,datum:n,height:r=140,themeColors:i,positionH:o="normal"},s]=at(e,["height"]),l=o!=="flipped"?"right":"left",c=y(Ve,{indexes:t,width:120,fill:i.colorText,alignHorizontal:l,alignVertical:"middle",fontSize:14,children:n.label}),u=y(ht,{indexes:t,width:120,fill:i.colorTextSecondary,alignHorizontal:l,alignVertical:"top",children:n.desc}),h=y(jr,{indexes:t,fill:i.colorPrimary,colorBg:i.colorWhite}),f=y(wQ,{width:30,height:8,fill:i.colorPrimary,positionH:o}),d=o!=="flipped",p=5,g=25,m=30,v=ae(c),b=ae(h),w=ae(f),x=v.width+p+w.width-b.width-g,_=Math.max(v.width+p+w.width,g+b.width)*2+m;return y(Y,vQ(yQ({width:_,height:r},s),{children:k(ve,{flexDirection:"row",alignItems:"center",children:[d?k(tt,{children:[k(ve,{flexDirection:"column",alignItems:"flex-end",children:[c,u]}),y(yt,{width:p}),f]}):k(tt,{children:[y(yt,{width:x}),h,y(yt,{width:g})]}),k($i,{horizontal:"center",vertical:"middle",children:[y(bQ,{width:m,height:r,fill:i.colorPrimary}),y(De,{width:m,height:r,alignHorizontal:"center",alignVertical:"middle",fill:i.colorWhite,fontWeight:"bold",fontSize:16,children:String(t[0]+1).padStart(2,"0").slice(-2)})]}),d?k(tt,{children:[y(yt,{width:g}),h]}):k(tt,{children:[f,y(yt,{width:p}),k(ve,{flexDirection:"column",alignItems:"flex-start",children:[c,u]})]})]})}))},bQ=e=>{const{x:t=0,y:n=0,width:r=30,height:i=100,fill:o="#FF356A",size:s=10}=e;return y(Yt,{width:r,height:i,points:[{x:t,y:n},{x:t+r/2,y:n+s},{x:t+r,y:n},{x:t+r,y:n+i-s},{x:t+r/2,y:n+i},{x:t,y:n+i-s}],fill:o,"data-element-type":"shape"})},wQ=e=>{const{x:t=0,y:n=0,width:r=50,height:i=10,fill:o,positionH:s="normal"}=e,a=i/2,l=r-a,c=2,u=a;return k(Y,{x:t,y:n,width:r,height:i,children:[y(Ze,{width:i,height:i,fill:o,x:s==="normal"?0:l-a,"data-element-type":"shape"}),y(Pe,{d:s==="normal"?`M${a},${u} L${a+l},${u}`:`M0,${u} L${l-a},${u}`,strokeWidth:c,stroke:o,"data-element-type":"shape"})]})};lt("vertical-icon-arrow",{component:a5,composites:["icon","label","desc"]});const Sf=new Map;function We(e,t){Sf.set(e,t)}function l5(e){return Sf.get(e)}function _Q(){return Array.from(Sf.keys())}const c5=e=>{var t,n,r;const{Title:i,Item:o,data:s,width:a,gap:l,barGap:c,barHeight:u=28,barAreaWidth:h,labelGap:f=16,padding:d=24,showValue:p=!0,options:g,valueFormatter:m=Ne=>Ne.toString()}=e,v=(t=h!=null?h:a)!=null?t:480,{title:b,desc:w,items:x=[],xTitle:_,yTitle:C}=s,P=i?y(i,{title:b,desc:w}):null;if(x.length===0)return y(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:P});const[S,$,O,M]=qr(d),A=(n=x[0])!=null?n:{label:"",value:0},E=ae(y(o,{indexes:[0],datum:A,data:s})),I=E.width||140,T=E.height||u,N=Math.max(u,T),H=Math.max(12,N*.35),D=(r=c!=null?c:l)!=null?r:H,W=x.map(Ne=>{var ze;return(ze=Ne.value)!=null?ze:0}),F=Math.max(...W,0),X=Math.min(...W,0),G=X<0?X*1.1:0;let L=F>0?F*1.1:0;L===G&&(L=G+1);const R=Yo().domain([G,L]).range([0,v]),z=Math.min(Math.max(R(0),0),v),q=Math.max(2,v*.02),j=x.length*(N+D)-D,V=C?24:0,U=20,K=_?24:0,J=S+V,Z=M+I+f,ie=p?80:0,Q=Math.max(8,N*.2),te=Z+v+ie+$,ce=J+j+Q+U+K+O,re=Et(g.themeConfig),ee=re.colorText||"#666",oe=Pt(g),se=[],ue=[],pe=[],fe=[],ge=[],he=[],xe=[],$e=J+j+Q,Me=Ne=>Number.isInteger(Ne)?Ne.toString():Ne.toFixed(1);x.forEach((Ne,ze)=>{var ye;const we=[ze],Ae=(ye=Ne.value)!=null?ye:0,Ee=J+ze*(N+D),le=Ee+(N-u)/2,me=Ae>=0?Z+z:Z+R(Ae),Se=Ae>=0?R(Ae)-z:z-R(Ae),Ye=Se===0?q:Se,rt=Fe(g,[ze])||re.colorPrimary;if(se.push(y(Le,{x:me,y:le,width:Ye,height:u,fill:rt,rx:6,ry:6,"data-element-type":"shape"})),p){const Oe=Ae>=0?me+Ye+8:me-8;ue.push(y(De,{x:Oe,y:le+u/2,alignHorizontal:Ae>=0?"left":"right",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:rt,children:m(Ae,Ne)}))}pe.push(y(o,{indexes:we,datum:Ne,data:s,x:M,y:Ee+(N-T)/2,width:I,height:T,positionV:"middle"}))});const Ce=Math.max(3,Math.min(7,Math.floor(v/80)));return R.ticks(Ce).forEach(Ne=>{const ze=Z+R(Ne);he.push(y(Pe,{d:`M${ze} ${J} L${ze} ${J+j}`,stroke:ee,strokeOpacity:.08,"data-element-type":"shape"})),ge.push(y(Pe,{d:`M${ze-.5} ${$e} L${ze-.5} ${$e+6}`,stroke:ee,"data-element-type":"shape"})),ge.push(y(De,{x:ze,y:$e+14,alignHorizontal:"center",alignVertical:"middle",fontSize:12,fill:ee,children:Me(Ne)}))}),fe.push(y(Pe,{d:`M${Z} ${$e} L${Z+v} ${$e}`,stroke:ee,"data-element-type":"shape"})),G<0&&fe.push(y(Le,{x:Z+z-.5,y:J,width:1,height:j,fill:oe,"data-element-type":"shape"})),C&&xe.push(y(De,{x:M+I/2,y:S+V/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:ee,children:C})),_&&xe.push(y(De,{x:Z+v/2,y:$e+U+K/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:ee,children:_})),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[P,k(Y,{width:te,height:ce,children:[y(Y,{children:he}),y(Y,{children:se}),y(Y,{children:ue}),y(Y,{children:xe}),y(Y,{children:[...fe,...ge]}),y(qe,{children:pe})]})]})};We("chart-bar",{component:c5,composites:["title","item","xTitle","yTitle"]});const u5=e=>{const{Title:t,Item:n,data:r,columnGap:i=60,columnWidth:o=50,padding:s=20,showValue:a=!0,options:l,valueFormatter:c=W=>W.toString()}=e,{title:u,desc:h,items:f=[]}=r,d=t?y(t,{title:u,desc:h}):null;if(f.length===0)return y(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:d});const p=Et(l.themeConfig),m=[...f.map(W=>{var F;return(F=W.value)!=null?F:0}),0].sort((W,F)=>W-F),v=m[0]<0,b=f.length*o+(f.length-1)*i,w=300,[x,_,C,P]=qr(s),S=a?24:0,$=10,O=v&&a?S+$:$,M=b+P+_,A=w+x+C+O,E=Yo().domain([m[0],m[m.length-1]]).range([w,0]),I=E(0),T=[],N=[],H=[],D=[];return f.forEach((W,F)=>{var X;const G=[F],L=(X=W.value)!=null?X:0,R=P+F*(o+i),z=L>=0?E(L):I,q=Math.abs(E(L)-I),j=Fe(l,[F])||p.colorPrimary,V=`${j}-column-positive-${F}`,U=`${j}-column-negative-${F}`;D.push(k("linearGradient",{id:L>=0?V:U,x1:"0%",y1:L>=0?"0%":"100%",x2:"0%",y2:L>=0?"100%":"0%",children:[y("stop",{offset:"0%",stopColor:j}),y("stop",{offset:"100%",stopColor:be.mix(j,"#fff",40).toHexString()})]})),T.push(y(Le,{x:R,y:x+z,width:o,height:q,fill:`url(#${L>=0?V:U})`,rx:8,ry:8,"data-element-type":"shape"})),a&&N.push(y(De,{x:R+o/2,y:L>=0?x+z-10:x+z+q+20,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:L>=0?"bottom":"top",fill:j,children:c(L,W)}));const K=o+i,J=x+w+O;H.push(y(n,{indexes:G,datum:W,data:r,x:R+o/2-K/2,y:J,width:K,positionH:"center"}))}),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,k(Y,{width:M,height:A,children:[y(Ke,{children:D}),y(Y,{children:T}),y(Y,{children:N}),y(qe,{children:H})]})]})};We("chart-column",{component:u5,composites:["title","item"]});var xQ=Object.defineProperty,CQ=Object.defineProperties,PQ=Object.getOwnPropertyDescriptors,h5=Object.getOwnPropertySymbols,SQ=Object.prototype.hasOwnProperty,OQ=Object.prototype.propertyIsEnumerable,f5=(e,t,n)=>t in e?xQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d5=(e,t)=>{for(var n in t||(t={}))SQ.call(t,n)&&f5(e,n,t[n]);if(h5)for(var n of h5(t))OQ.call(t,n)&&f5(e,n,t[n]);return e},$Q=(e,t)=>CQ(e,PQ(t));const p5=e=>{const{Title:t,Item:n,data:r,width:i,height:o=260,gap:s=10,padding:a=24,showValue:l=!0,options:c,valueFormatter:u=le=>le.toString()}=e,{title:h,desc:f,items:d=[],xTitle:p,yTitle:g}=r,m=t?y(t,{title:h,desc:f}):null;if(d.length===0)return y(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:m});const[v,b,w,x]=qr(a),_={indexes:[0],datum:d[0],data:r,positionH:"center",positionV:"normal"},C=ae(y(n,d5({},_))),P=C.width,S=C.height,$=Math.max(28,S+14),O=44,M=g?26:0,A=p?22:0,E=P+s,I=d.length>0?(d.length-1)*E+P:0,T=i!==void 0?i:Math.max(200,I||320),N=d.length>1?Math.max(E,(T-P)/(d.length-1)):0,H=d.length>0?Math.max(P,(d.length-1)*N+P):0,D=x+O+M,W=v+M,F=D+H+b,X=W+o+$+A+w,G=d.map(le=>{var me;return(me=le.value)!=null?me:0}),L=Math.max(...G,0),R=Math.min(...G,0),z=Math.max(Math.abs(L),Math.abs(R))*.1,q=R<0?R-z:0;let j=L>0?L+z:1;j===q&&(j=q+1);const V=Yo().domain([q,j]).nice().range([o,0]),U=Math.max(0,Math.min(o,V(0))),K=j<=0?0:q>=0?o:U,J=Pt(c),Z=Et(c.themeConfig),ie=Z.colorText||"#666",Q=[],te=[],ce=[],re=[],ee=[],oe=[],se=[];V.ticks(6).forEach(le=>{const me=W+V(le);Q.push(y(Pe,{d:`M ${D} ${me} L ${D+H} ${me}`,width:H,height:1,stroke:ie,strokeWidth:1,"data-element-type":"shape",opacity:.08})),se.push(y(De,{x:D-8,y:me,alignHorizontal:"right",alignVertical:"middle",fontSize:12,fill:ie,children:Number.isInteger(le)?le.toString():le.toFixed(1)}))});const pe=[],fe=[],ge=[],he=le=>{if(le.length===0)return"";if(le.length===1){const Se=le[0];return`M ${Se.x} ${Se.y}`}const me=[];me.push(`M ${le[0].x} ${le[0].y}`);for(let Se=0;Se<le.length-1;Se++){const Ye=le[Se-1]||le[Se],rt=le[Se],Oe=le[Se+1],Be=le[Se+2]||Oe,Qe=rt.x+(Oe.x-Ye.x)/6,Je=rt.y+(Oe.y-Ye.y)/6,Xe=Oe.x-(Be.x-rt.x)/6,dt=Oe.y-(Be.y-rt.y)/6;me.push(`C ${Qe} ${Je} ${Xe} ${dt} ${Oe.x} ${Oe.y}`)}return me.join(" ")};d.forEach((le,me)=>{var Se;const Ye=D+me*N+P/2,rt=W+V((Se=le.value)!=null?Se:0);fe.push({x:Ye,y:rt,datum:le}),pe.push(y(n,$Q(d5({},_),{indexes:[me],datum:le,x:Ye-P/2,y:W+o+4})));const Oe=Fe(c,[me])||Z.colorPrimary;ge.push({x:Ye,color:Oe})});const xe=ge.length>0?Math.min(...ge.map(le=>le.x)):D,$e=ge.length>0?Math.max(...ge.map(le=>le.x)):D+H,Me=Math.max(1,$e-xe),Ce=ge.map(le=>y("stop",{offset:`${(le.x-xe)/Me*100}%`,stopColor:le.color})),Te=ge.map(le=>y("stop",{offset:`${(le.x-xe)/Me*100}%`,stopColor:le.color,stopOpacity:"0.18"}));if(ge.length>0){const le=ge[ge.length-1].color;Ce.push(y("stop",{offset:"100%",stopColor:le})),Te.push(y("stop",{offset:"100%",stopColor:le,stopOpacity:"0.04"}))}const Ne=`chart-line-${Zw([H,o,ie,J,ge.map(le=>`${le.x.toFixed(2)}-${le.color}`).join()].join(":"))}`,ze=`${Ne}-stroke`,ye=`${Ne}-area`,we=he(fe);ce.push(y(Pe,{d:we,width:H,height:o,stroke:`url(#${ze})`,strokeWidth:3,fill:"none","data-element-type":"shape"}));const Ae=we.includes("C")?we.slice(we.indexOf("C")):"",Ee=[`M ${fe[0].x} ${W+K}`,`L ${fe[0].x} ${fe[0].y}`,Ae,`L ${fe[fe.length-1].x} ${W+K}`,"Z"].join(" ");return ce.push(y(Pe,{d:Ee,width:H,height:o,fill:`url(#${ye})`,stroke:"none","data-element-type":"shape"})),fe.forEach((le,me)=>{var Se;const Ye=Fe(c,[me])||Z.colorPrimary;re.push(y(Ze,{x:le.x-6,y:le.y-6,width:12,height:12,fill:Ye,"data-element-type":"shape"})),l&&ee.push(y(De,{x:le.x,y:le.y-12,alignHorizontal:"center",alignVertical:"bottom",fontSize:12,fontWeight:"bold",fill:Ye,children:u((Se=le.datum.value)!=null?Se:0,le.datum)}))}),te.push(y(Pe,{d:`M ${D} ${W+K} L ${D+H} ${W+K}`,width:H,height:1,stroke:ie,strokeWidth:1,"data-element-type":"shape"})),te.push(y(Pe,{d:`M ${D} ${W} L ${D} ${W+o}`,width:1,height:o,stroke:ie,strokeWidth:1,"data-element-type":"shape"})),p&&oe.push(y(De,{x:D+H/2,y:W+o+$+A/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:ie,children:p})),g&&oe.push(y(De,{x:x+M/2,y:W+o/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:ie,children:g})),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,k(Y,{width:F,height:X,children:[k(Ke,{children:[y("linearGradient",{id:ze,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:Ce}),k("linearGradient",{id:ye,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[Te,y("stop",{offset:"100%",stopColor:J,stopOpacity:"0.04"})]})]}),y(Y,{children:Q}),y(Y,{children:[...te,...se]}),y(Y,{children:ce}),y(Y,{children:re}),y(Y,{children:ee}),y(Y,{children:oe}),y(qe,{children:pe})]})]})};We("chart-line",{component:p5,composites:["title","item","xTitle","yTitle"]});var EQ=Object.defineProperty,g5=Object.getOwnPropertySymbols,MQ=Object.prototype.hasOwnProperty,AQ=Object.prototype.propertyIsEnumerable,m5=(e,t,n)=>t in e?EQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y5=(e,t)=>{for(var n in t||(t={}))MQ.call(t,n)&&m5(e,n,t[n]);if(g5)for(var n of g5(t))AQ.call(t,n)&&m5(e,n,t[n]);return e};const wl=1.35,Of=8,IQ=.3,TQ=.2,RQ=20,v5=1.15,kQ=.5,b5=.85,LQ=1,NQ=.45,zQ=2,w5=e=>{var t;const{Title:n,Item:r,data:i,radius:o=140,innerRadius:s=0,padding:a=30,showPercentage:l=!0,avoidLabelOverlap:c=!1,minShowLabelPercent:u=0,options:h}=e,f=hB(u),{title:d,desc:p,items:g=[]}=i,m=n?y(n,{title:d,desc:p}):null,v=ae(y(ne,{indexes:[0]})),b=(t=g[0])!=null?t:{label:"",value:0},w=ae(y(r,{indexes:[0],datum:b,data:i,positionH:"center",positionV:"middle"})),x=w.width||140,_=w.height||32,C=Math.max(o,60),P=C*wl+Of+x,S=C,$=a+P,O=a+S,M=$*2,A=O*2;if(g.length===0)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,y(Y,{width:M,height:A,children:y(je,{children:y(ne,{indexes:[0],x:$-v.width/2,y:O-v.height/2})})})]});const E=g.reduce((J,Z)=>{var ie;return J+Math.max((ie=Z.value)!=null?ie:0,0)},0),I=Pt(h),T=Et(h.themeConfig),H=FK().value(J=>{var Z;return Math.max((Z=J.value)!=null?Z:0,0)}).sort(null).startAngle(0).endAngle(Math.PI*2)(g),D=Uo().innerRadius(s).outerRadius(C).cornerRadius(2),W=Uo().innerRadius(C).outerRadius(C),F=Uo().innerRadius(C*v5).outerRadius(C*v5),X=s+(C-s)*kQ,G=Uo().innerRadius(X).outerRadius(X),L=Uo().innerRadius(C*b5).outerRadius(C*b5),R=[],z=[],q=[],j=[],V=[],U=[];H.forEach(J=>{const Z=J.index,ie=Fe(h,[Z])||T.colorPrimary||I,Q=D(J)||"";R.push(y(Pe,{d:Q,fill:ie,stroke:T.colorBg,strokeWidth:1,"data-element-type":"shape",width:C*2,height:C*2}));const te=J.startAngle+(J.endAngle-J.startAngle)/2,re=(te<0?te+Math.PI*2:te)<Math.PI;if((E>0?J.value/E*100:0)<f)return;const oe=F.centroid(J);U.push({arcDatum:J,originalIndex:Z,x:oe[0],y:oe[1],height:_,isRight:re,color:ie})});let K=U;if(c){const J=-S*wl,Z=S*wl,ie=U.filter(ee=>!ee.isRight),Q=U.filter(ee=>ee.isRight),te=_,ce=$f(Q,te,J,Z);K=[...$f(ie,te,J,Z),...ce]}return K.forEach(J=>{const{arcDatum:Z,originalIndex:ie,isRight:Q,color:te,y:ce}=J,re=W.centroid(Z),ee=F.centroid(Z),oe=ce,ue=Math.abs(oe-ee[1])*IQ,pe=C*wl,fe=pe+ue,ge=C*TQ,he=pe+ge+RQ,$e=Math.min(fe,he)*(Q?1:-1),Me=he*(Q?1:-1),Ce=[$e,oe],Te=[Me,oe];q.push(y(Pe,{d:`M${$+re[0]} ${O+re[1]}
83
+ L${$+ee[0]} ${O+ee[1]}
84
+ L${$+Ce[0]} ${O+Ce[1]}
85
+ L${$+Te[0]} ${O+Te[1]}
86
+ `,stroke:te,strokeOpacity:NQ,strokeWidth:zQ,fill:"none","data-element-type":"shape"}));const Ne=$+Te[0]+(Q?Of:-Of-x),ze=O+ce-_/2;if(j.push(y(r,{indexes:[ie],datum:Z.data,data:i,x:Ne,y:ze,width:x,height:_,positionH:Q?"normal":"flipped",positionV:"middle",themeColors:Et({colorPrimary:te},h)})),l&&E>0){const we=G.centroid(Z),Ae=Math.max(Z.value,0),Ee=(Ae*100/E).toFixed(1),le=50,me=20;z.push(y(De,{x:$+we[0]-le/2,y:O+we[1]-me/2,width:le,height:me,alignHorizontal:"center",alignVertical:"middle",fontSize:12,fontWeight:"bold",fill:"#ffffff","data-value":Ae,"data-indexes":[ie],"data-element-type":Ge.ItemValue,children:`${Ee}%`}))}const ye=L.centroid(Z);V.push(y(nt,{indexes:[ie],x:$+ye[0]-v.width/2,y:O+ye[1]-v.height/2}))}),H.forEach((J,Z)=>{const ie=(Z+1)%H.length,Q=J.endAngle,te=H[ie].startAngle+(ie===0?Math.PI*2:0),ce=(Q+te)/2,re=C*LQ,ee=Math.sin(ce)*re,oe=-Math.cos(ce)*re;V.push(y(ne,{indexes:[Z+1],x:$+ee-v.width/2,y:O+oe-v.height/2}))}),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[m,k(Y,{width:M,height:A,children:[y(Y,{x:$,y:O,children:R}),y(Y,{children:q}),y(Y,{children:z}),y(qe,{children:j}),y(je,{children:V})]})]})};We("chart-pie",{component:w5,composites:["title","item"]});function $f(e,t,n,r){if(e.length<=1)return e.map(m=>y5({},m));const i=e.map(m=>y5({},m)).sort((m,v)=>m.y-v.y),o=i.some((m,v)=>{if(v===0)return!1;const b=i[v-1];return m.y-b.y<(b.height+m.height)/2}),s=i[0],a=i[i.length-1],l=s.y-s.height/2<n||a.y+a.height/2>r;if(!o&&!l)return i;const c=i.reduce((m,v)=>m+v.height,0),u=r-n,h=c+t*(i.length-1);let f=t;if(h>u){const m=u-c;f=Math.max(0,m/(i.length-1))}for(let m=1;m<i.length;m++){const v=i[m-1],b=i[m],w=v.y+(v.height+b.height)/2+f;b.y<w&&(b.y=w)}const d=i.length-1,p=i[d];if(p.y+p.height/2>r){p.y=r-p.height/2;for(let m=d-1;m>=0;m--){const v=i[m+1],b=i[m],w=v.y-(v.height+b.height)/2-f;b.y>w&&(b.y=w)}}const g=i[0];if(g.y-g.height/2<n){const m=n-(g.y-g.height/2);i.forEach(v=>v.y+=m)}return i}var DQ=Object.defineProperty,qQ=Object.defineProperties,HQ=Object.getOwnPropertyDescriptors,_5=Object.getOwnPropertySymbols,jQ=Object.prototype.hasOwnProperty,FQ=Object.prototype.propertyIsEnumerable,x5=(e,t,n)=>t in e?DQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,C5=(e,t)=>{for(var n in t||(t={}))jQ.call(t,n)&&x5(e,n,t[n]);if(_5)for(var n of _5(t))FQ.call(t,n)&&x5(e,n,t[n]);return e},P5=(e,t)=>qQ(e,HQ(t));const BQ=[0,30,-30,60,-60],WQ=Math.PI*(3-Math.sqrt(5));function S5(e,t,n){const r=Math.PI/180*n,i=Math.cos(r),o=Math.sin(r);return{width:Math.abs(e*i)+Math.abs(t*o),height:Math.abs(e*o)+Math.abs(t*i)}}function VQ(e,t,n,r,i,o){const s=e-o,a=e+n+o,l=t-o,c=t+r+o;return i.some(u=>{const h=u.box.x-o,f=u.box.x+u.box.width+o,d=u.box.y-o,p=u.box.y+u.box.height+o;return!(a<=h||s>=f||c<=d||l>=p)})}function GQ(e,t,n,r,i){const o=[],s=t?BQ:[0],a=Math.max(1600,e.length*28);return e.forEach((l,c)=>{const u=Math.max(l.width,l.height),h=c*WQ;let f=0,d=null;for(let p=0;p<a&&!d;p++){p===Math.floor(a*.6)&&(f=u);const g=h+p*r,m=i*Math.sqrt(p+1)+f+u*.25,v=m*Math.cos(g),b=m*Math.sin(g);for(const w of s){const x=S5(l.width,l.height,w),_=v-x.width/2,C=b-x.height/2;if(!VQ(_,C,x.width,x.height,o,n)){d=P5(C5({},l),{angle:w,centerX:v,centerY:b,box:{x:_,y:C,width:x.width,height:x.height}});break}}}if(!d){const p=s[c%s.length],g=i*Math.sqrt(a+1)+u,m=h,v=g*Math.cos(m),b=g*Math.sin(m),w=S5(l.width,l.height,p);d=P5(C5({},l),{angle:p,centerX:v,centerY:b,box:{x:v-w.width/2,y:b-w.height/2,width:w.width,height:w.height}})}o.push(d)}),o}const O5=e=>{const{data:t,options:n,minFontSize:r=16,maxFontSize:i=48,enableRotate:o=!0,padding:s=6,spiralStep:a=.45,radiusStep:l=10}=e,{items:c=[]}=t,u=c.map((E,I)=>({datum:E,index:I})).filter(({datum:E})=>E.label);if(u.length===0)return y(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:y(Y,{children:y(qe,{})})});const h=u.map(({datum:E})=>E.value).filter(E=>typeof E=="number"),f=h.length>0,d=f?Math.min(...h):0,p=f?Math.max(...h):0,g=f&&d===p,m=(r+i)/2,v=E=>{if(!f||g)return m;if(E==null)return r;const I=(E-d)/(p-d||1);return r+I*(i-r)},b=u.map(({datum:E,index:I})=>{const T=v(E.value),N=ae(y(De,{fontSize:T,fontWeight:"bold",children:E.label})),H=Fe(n,[I])||Pt(n);return{label:E.label,value:E.value,color:H,fontSize:T,width:N.width*1.05,height:N.height}}).sort((E,I)=>I.fontSize-E.fontSize),w=GQ(b,o,s,a,l),x=Math.min(...w.map(E=>E.box.x)),_=Math.min(...w.map(E=>E.box.y)),C=Math.max(...w.map(E=>E.box.x+E.box.width)),P=Math.max(...w.map(E=>E.box.y+E.box.height)),S=-x+s,$=-_+s,O=C-x+s*2,M=P-_+s*2,A=w.map((E,I)=>{const T=E.centerX-E.width/2+S,N=E.centerY-E.height/2+$,H=E.width/2,D=E.height/2,W=`translate(${T}, ${N}) rotate(${E.angle}, ${H}, ${D})`;return y(Y,{transform:W,children:y(De,{width:E.width,height:E.height,fontSize:E.fontSize,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:E.color,"data-indexes":I,"data-element-type":Ge.ItemLabel,children:E.label})})});return y(qe,{id:"infographic-container",width:O,height:M,children:A})};We("chart-wordcloud",{component:O5,composites:[]});const $5=new Map,Ef=(e,t)=>{$5.set(e,t)},YQ=e=>{var t;return e&&(t=$5.get(e))!=null?t:null};var XQ=Object.defineProperty,UQ=Object.defineProperties,KQ=Object.getOwnPropertyDescriptors,E5=Object.getOwnPropertySymbols,ZQ=Object.prototype.hasOwnProperty,QQ=Object.prototype.propertyIsEnumerable,M5=(e,t,n)=>t in e?XQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A5=(e,t)=>{for(var n in t||(t={}))ZQ.call(t,n)&&M5(e,n,t[n]);if(E5)for(var n of E5(t))QQ.call(t,n)&&M5(e,n,t[n]);return e},I5=(e,t)=>UQ(e,KQ(t));Ef("pros-cons-arrow",e=>{const{x:t,y:n,colorPositive:r,colorNegative:i,colorBg:o}=e,s=200,a=141,l={width:90,height:40,fontSize:22,alignHorizontal:"center",alignVertical:"middle",fontWeight:"bold",fill:o};return k(Y,{x:t,y:n,width:s,height:a,children:[k(Ct,{children:[y("path",{d:"M137 54C137 54.2903 137 54.5806 136.706 54.7742L108.614 86.0323H64.7619C64.4071 86.0204 64.0557 86.1043 63.7453 86.2747C63.4349 86.4452 63.1773 86.6959 63 87C63.0037 86.7447 63.1092 86.5012 63.2936 86.3226L91.3862 55.0645H135.238C135.593 55.0763 135.944 54.9925 136.255 54.822C136.565 54.6516 136.823 54.4009 137 54.0968V54Z",fill:"#D9D9D9"}),y("path",{d:"M39.3272 0.484649C39.6146 0.234929 39.9662 0.0736935 40.3407 0.0198929C40.7152 -0.0339076 41.0971 0.0219605 41.4414 0.180925C41.7857 0.33989 42.0783 0.595358 42.2846 0.917314C42.491 1.23927 42.6026 1.61434 42.6063 1.99848V14.8156H136.013C136.54 14.8156 137.045 15.0282 137.418 15.4068C137.791 15.7853 138 16.2987 138 16.834V53.166C138 53.7013 137.791 54.2147 137.418 54.5932C137.045 54.9718 136.54 55.1844 136.013 55.1844H42.6063V68.0015C42.6026 68.3857 42.491 68.7607 42.2846 69.0827C42.0783 69.4046 41.7857 69.6601 41.4414 69.8191C41.0971 69.9781 40.7152 70.0339 40.3407 69.9801C39.9662 69.9263 39.6146 69.7651 39.3272 69.5154L0.672847 36.5138C0.461378 36.3244 0.292014 36.0915 0.176005 35.8305C0.0599968 35.5695 0 35.2864 0 35C0 34.7136 0.0599968 34.4306 0.176005 34.1696C0.292014 33.9085 0.461378 33.6756 0.672847 33.4862L39.4265 0.484649H39.3272Z",fill:r}),y("path",{d:"M157.394 73.0007C157.397 72.6162 157.509 72.2407 157.715 71.9183C157.922 71.596 158.214 71.3403 158.559 71.1811C158.903 71.022 159.285 70.9661 159.659 71.0199C160.034 71.0738 160.385 71.2352 160.673 71.4852L199.327 104.524C199.539 104.714 199.708 104.947 199.824 105.208C199.94 105.47 200 105.753 200 106.04C200 106.326 199.94 106.61 199.824 106.871C199.708 107.132 199.539 107.366 199.327 107.555L160.573 140.594C160.285 140.815 159.943 140.951 159.584 140.989C159.225 141.027 158.862 140.965 158.535 140.809C158.208 140.653 157.929 140.41 157.728 140.105C157.527 139.8 157.411 139.445 157.394 139.078V126.247H63.9874C63.4603 126.247 62.9548 126.034 62.5821 125.655C62.2094 125.276 62 124.762 62 124.226V87.8531C62 87.3172 62.2094 86.8032 62.5821 86.4242C62.9548 86.0453 63.4603 85.8324 63.9874 85.8324H157.394V73.0007Z",fill:i})]}),y(De,I5(A5({x:40,y:15},l),{children:"Pros"})),y(De,I5(A5({x:70,y:85},l),{children:"Cons"}))]})});var JQ=Object.defineProperty,eJ=Object.defineProperties,tJ=Object.getOwnPropertyDescriptors,T5=Object.getOwnPropertySymbols,nJ=Object.prototype.hasOwnProperty,rJ=Object.prototype.propertyIsEnumerable,R5=(e,t,n)=>t in e?JQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k5=(e,t)=>{for(var n in t||(t={}))nJ.call(t,n)&&R5(e,n,t[n]);if(T5)for(var n of T5(t))rJ.call(t,n)&&R5(e,n,t[n]);return e},L5=(e,t)=>eJ(e,tJ(t));Ef("pros-cons-fold",e=>{const{x:t,y:n,colorPositive:r,colorNegative:i,colorBg:o}=e,s=240,a=300,l={width:85,height:30,fontSize:20,alignHorizontal:"center",alignVertical:"middle",fontWeight:"bold",fill:o};return k(Y,{x:t,y:n,width:s,height:a,children:[k(Ct,{children:[y("path",{d:"M136.914 38.7755C137.303 38.7733 137.683 38.6617 138.011 38.4534C138.339 38.2451 138.602 37.9485 138.77 37.5977C138.937 37.247 139.002 36.8561 138.957 36.4701C138.913 36.084 138.76 35.7183 138.517 35.415L110.741 0.982313C110.548 0.735138 110.301 0.535238 110.018 0.397762C109.736 0.260286 109.426 0.188841 109.112 0.188841C108.798 0.188841 108.488 0.260286 108.206 0.397762C107.924 0.535238 107.676 0.735138 107.483 0.982313L79.7069 35.415C79.4639 35.7183 79.3113 36.084 79.2667 36.4701C79.222 36.8561 79.2871 37.247 79.4545 37.5977C79.6219 37.9485 79.8847 38.2451 80.213 38.4534C80.5412 38.6617 80.9216 38.7733 81.3104 38.7755H92.8965C93.0517 57.1293 97.5517 64.9878 105.259 73.7252C107.017 75.7932 108.983 77.8612 111.103 80.1361C113.276 82.4626 122.121 88.9252 131.069 95.181C129.362 88.7701 128.172 81.2218 127.293 73.7252C125.224 55.9918 125.017 38.7755 125.017 38.7755H136.914Z",fill:r,fillOpacity:.4}),y("path",{d:"M237.931 109.967C238.48 109.967 239.006 109.749 239.394 109.362C239.782 108.974 240 108.448 240 107.899V75.7932C240 75.2447 239.782 74.7187 239.394 74.3309C239.006 73.9431 238.48 73.7252 237.931 73.7252H127.241C128.172 81.2218 129.362 88.7701 131.069 95.181C138.182 100.171 145.337 105.1 152.534 109.967H237.931Z",fill:r}),y("path",{d:"M152.586 109.967C152.586 109.967 141.724 102.678 131.069 95.181C124.122 90.5838 117.455 85.5772 111.103 80.1878C109.034 77.8612 107.017 75.7415 105.259 73.7252H48.6207V56.6639C48.6091 56.2797 48.4905 55.9063 48.2784 55.5857C48.0662 55.2651 47.7689 55.0099 47.4197 54.8488C47.0705 54.6878 46.6833 54.6271 46.3016 54.6738C45.9199 54.7204 45.5587 54.8725 45.2586 55.1129L1.50002 90.2694C1.26208 90.4633 1.07029 90.7078 0.938585 90.985C0.80688 91.2622 0.738558 91.5652 0.738558 91.8721C0.738558 92.179 0.80688 92.482 0.938585 92.7592C1.07029 93.0365 1.26208 93.2809 1.50002 93.4748L45.2586 128.631C45.5621 128.874 45.928 129.027 46.3142 129.071C46.7005 129.116 47.0914 129.051 47.4424 128.884C47.7933 128.716 48.09 128.454 48.2984 128.125C48.5068 127.797 48.6185 127.417 48.6207 127.029V109.967H152.586Z",fill:"#BFBFBF"}),y("path",{d:"M36.1034 88.9252H28.9655V93.785H36.1034V101.85H41.4828V93.785H48.6207V88.8735H41.4828V81.1701H36.1034V88.9252Z",fill:"#404040"}),y("path",{d:"M103.086 261.224C102.697 261.227 102.317 261.338 101.989 261.547C101.661 261.755 101.398 262.051 101.23 262.402C101.063 262.753 100.998 263.144 101.043 263.53C101.087 263.916 101.24 264.282 101.483 264.585L129.259 299.018C129.452 299.265 129.699 299.465 129.982 299.602C130.264 299.74 130.574 299.811 130.888 299.811C131.202 299.811 131.512 299.74 131.794 299.602C132.076 299.465 132.324 299.265 132.517 299.018L160.293 264.585C160.536 264.282 160.689 263.916 160.733 263.53C160.778 263.144 160.713 262.753 160.546 262.402C160.378 262.051 160.115 261.755 159.787 261.547C159.459 261.338 159.078 261.227 158.69 261.224H147.103C146.948 242.871 142.448 235.012 134.741 226.275C132.983 224.207 131.017 222.139 128.897 219.864C126.724 217.537 117.879 211.075 108.931 204.819C110.677 211.877 111.938 219.045 112.707 226.275C114.776 244.008 114.983 261.224 114.983 261.224H103.086Z",fill:i,fillOpacity:.4}),y("path",{d:"M2.06897 190.033C1.52025 190.033 0.993996 190.251 0.605989 190.638C0.217983 191.026 5.00679e-06 191.552 5.00679e-06 192.101V224.207C5.00679e-06 224.755 0.217983 225.281 0.605989 225.669C0.993996 226.057 1.52025 226.275 2.06897 226.275H112.759C111.828 218.778 110.638 211.23 108.931 204.819C99.9827 198.512 90.931 192.411 88.2414 190.55C87.7206 190.204 87.1077 190.024 86.4828 190.033H2.06897Z",fill:i}),y("path",{d:"M87.4138 190.033C87.4138 190.033 98.2759 197.322 108.931 204.819C115.878 209.416 122.545 214.423 128.897 219.812C130.966 222.139 132.983 224.258 134.741 226.275H191.379V243.336C191.391 243.72 191.51 244.094 191.722 244.414C191.934 244.735 192.231 244.99 192.58 245.151C192.929 245.312 193.317 245.373 193.698 245.326C194.08 245.28 194.441 245.128 194.741 244.887L238.5 209.731C238.738 209.537 238.93 209.292 239.061 209.015C239.193 208.738 239.261 208.435 239.261 208.128C239.261 207.821 239.193 207.518 239.061 207.241C238.93 206.964 238.738 206.719 238.5 206.525L194.741 171.369C194.438 171.126 194.072 170.973 193.686 170.929C193.3 170.884 192.909 170.949 192.558 171.116C192.207 171.284 191.91 171.546 191.702 171.875C191.493 172.203 191.382 172.583 191.379 172.971V190.033H87.4138Z",fill:"#BFBFBF"}),y("path",{d:"M192.414 205.905V210.816H212.069V205.905H192.414Z",fill:"#404040"})]}),y(De,L5(k5({x:153,y:77},l),{children:"PROS"})),y(De,L5(k5({x:2,y:193},l),{children:"CONS"}))]})}),Ef("vs",e=>{const{x:t,y:n,colorPrimary:r,colorBg:i}=e,o=100,s=100,a=be(r).lighten(20).toString();return k(Y,{x:t,y:n,width:o,height:s,children:[k(Ke,{children:[y("filter",{id:"vs-divider-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:y("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"8",result:"blur"})}),y(Dh,{})]}),y(Ze,{x:0,y:0,width:o,height:s,fill:a,filter:"url(#vs-divider-glow-filter)",opacity:.6}),y(Ze,{x:0,y:0,width:o,height:s,fill:r,"data-element-type":"shape"}),y("text",{x:o/2,y:s/2,fontSize:Math.min(o,s)/1.5,fontWeight:"bold",fill:i,textAnchor:"middle",dominantBaseline:"central",filter:"url(#drop-shadow)",children:"VS"})]})});const N5=e=>{const{Title:t,Item:n,data:r,gap:i=20,groupGap:o=20,opposite:s=!0,flipped:a=!0,dividerType:l="vs",options:c}=e,{title:u,desc:h,items:f=[]}=r,d=t?y(t,{title:u,desc:h}):null;if(f.length===0)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,y(Y,{children:y(je,{children:y(ne,{indexes:[0],x:0,y:0})})})]});const p=f[0]||{children:[]},g=f[1]||{children:[]},m=p.children||[],v=g.children||[],b=Et(c.themeConfig),w=ae(y(n,{indexes:[0,0],data:r,datum:m[0]||{}})),x=ae(y(ne,{indexes:[0]})),_=YQ(l),C=_?ae(y(_,{x:0,y:0,colorPrimary:b.colorPrimary,colorBg:b.colorBg,colorPositive:b.colorPrimary,colorNegative:b.colorPrimary})):{width:0,height:0},P=[],S=[],$=[],O=Math.max(m.length,v.length),M=O>0?O*(w.height+i)-i:0,A=5,E=O>0?i/2+x.height/2:x.height/2,I=x.width+A,T=I+w.width+o,N=T+C.width+o,H=a?"flipped":"normal",D=a?"normal":s?"flipped":"normal";if(m.forEach((W,F)=>{const X=E+F*(w.height+i),G=[0,F];P.push(y(n,{indexes:G,datum:W,data:r,x:I,y:X,positionH:H,positionV:"middle"})),S.push(y(nt,{indexes:G,x:I-x.width-A,y:X+(w.height-x.height)/2})),F<m.length-1&&S.push(y(ne,{indexes:[0,F+1],x:I+(w.width-x.width)/2,y:X+w.height+i/2-x.height/2}))}),m.length>0){S.push(y(ne,{indexes:[0,0],x:I+(w.width-x.width)/2,y:E-i/2-x.height/2}));const W=E+(m.length-1)*(w.height+i);S.push(y(ne,{indexes:[0,m.length],x:I+(w.width-x.width)/2,y:W+w.height+i/2-x.height/2}))}else f.length>=1&&S.push(y(ne,{indexes:[0,0],x:I+(w.width-x.width)/2,y:E-x.height/2}));if(v.forEach((W,F)=>{const X=E+F*(w.height+i),G=[1,F];P.push(y(n,{indexes:G,datum:W,data:r,x:N,y:X,positionH:D,positionV:"middle"})),S.push(y(nt,{indexes:G,x:N+w.width+A,y:X+(w.height-x.height)/2})),F<v.length-1&&S.push(y(ne,{indexes:[1,F+1],x:N+(w.width-x.width)/2,y:X+w.height+i/2-x.height/2}))}),v.length>0){S.push(y(ne,{indexes:[1,0],x:N+(w.width-x.width)/2,y:E-i/2-x.height/2}));const W=E+(v.length-1)*(w.height+i);S.push(y(ne,{indexes:[1,v.length],x:N+(w.width-x.width)/2,y:W+w.height+i/2-x.height/2}))}else f.length>=2&&S.push(y(ne,{indexes:[1,0],x:N+(w.width-x.width)/2,y:E-x.height/2}));return f.length<2&&S.push(y(ne,{indexes:[1],x:N+(w.width-x.width)/2,y:E+(M-x.height)/2})),_&&$.push(y(_,{x:T,y:E+(M-C.height)/2,colorPrimary:b.colorPrimary,colorBg:b.colorBg,colorPositive:Fe(c,[0])||b.colorPrimary,colorNegative:Fe(c,[1])||b.colorPrimary})),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,k(Y,{children:[y(Y,{children:$}),y(qe,{children:P}),y(je,{children:S})]})]})};We("compare-binary-horizontal",{component:N5,composites:["title","item"]});var iJ=Object.defineProperty,z5=Object.getOwnPropertySymbols,oJ=Object.prototype.hasOwnProperty,sJ=Object.prototype.propertyIsEnumerable,D5=(e,t,n)=>t in e?iJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q5=(e,t)=>{for(var n in t||(t={}))oJ.call(t,n)&&D5(e,n,t[n]);if(z5)for(var n of z5(t))sJ.call(t,n)&&D5(e,n,t[n]);return e};const aJ={none:5,"dot-line":100,"arc-dot":20,"split-line":5},H5=e=>{var t,n;const{Title:r,Items:i,data:o,gap:s=20,groupGap:a=0,decoration:l="none",surround:c=!0,flipRoot:u=!1,flipLeaf:h=!1,options:f}=e,[d,p]=i,{title:g,desc:m,items:v=[]}=o,b=r?y(r,{title:g,desc:m}):null,w=y(d,{indexes:[0],data:o,datum:o.items[0],themeColors:{}}),x=y(p,{indexes:[0,0],data:o,datum:((n=(t=v[0])==null?void 0:t.children)==null?void 0:n[0])||v[2]}),_=ae(w),C=ae(x),P=[],S=[],[$,O]=v,M=($==null?void 0:$.children)||[],A=(O==null?void 0:O.children)||[],E=Math.max(_.height,M.length*(C.height+s)-s,A.length*(C.height+s)-s),I=aJ[l]||0,T=C.width+I,N=T+_.width+a,H=(E-_.height)/2;$&&P.push(y(d,{indexes:[0],x:T,y:H,data:o,datum:$,positionH:u?"normal":"flipped"})),O&&P.push(y(d,{indexes:[1],x:N,y:H,data:o,datum:O,positionH:u?"flipped":"normal"}));const D=(W,F,X)=>{if(l==="none")return;const[G,L]=F,R=Fe(f,X),z={x:G,y:L,width:C.width,height:C.height,side:W,color:R||"#ccc",colorBg:f.themeConfig.colorBg||"#fff"};l==="split-line"?S.push(y(lJ,q5({},z))):l==="dot-line"&&S.push(y(cJ,q5({},z)))};if(c){const F=(2*_.width+a+C.width)/2+I,X=T+_.width+a/2,G=H+_.height/2;M.forEach((L,R)=>{const z=M.length*(C.height+s)-s,j=(E-z)/2+R*(C.height+s),U=j+C.height/2-G,K=Math.max(0,F*F-U*U),Z=X-Math.sqrt(K)-C.width/2;P.push(y(p,{indexes:[0,R],datum:L,data:o,x:Z,y:j,positionH:h?"flipped":"normal"})),D("left",[Z,j],[0,R])}),A.forEach((L,R)=>{const z=A.length*(C.height+s)-s,j=(E-z)/2+R*(C.height+s),U=j+C.height/2-G,K=Math.max(0,F*F-U*U),Z=X+Math.sqrt(K)-C.width/2;P.push(y(p,{indexes:[1,R],datum:L,data:o,x:Z,y:j,positionH:h?"normal":"flipped"})),D("right",[Z,j],[1,R])})}else M.forEach((W,F)=>{const X=M.length*(C.height+s)-s,L=(E-X)/2+F*(C.height+s),R=[0,F],z=0;P.push(y(p,{indexes:R,datum:W,data:o,x:z,y:L,positionH:h?"flipped":"normal"})),D("left",[z,L],R)}),A.forEach((W,F)=>{const X=A.length*(C.height+s)-s,L=(E-X)/2+F*(C.height+s),R=[1,F],z=N+_.width+I;P.push(y(p,{indexes:R,datum:W,data:o,x:z,y:L,positionH:h?"normal":"flipped"})),D("right",[z,L],R)});return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[b,k(Y,{children:[y(qe,{children:P}),y(Y,{width:0,height:0,children:S})]})]})},lJ=e=>{const{x:t,y:n,width:r,height:i,color:o,colorBg:s,side:a}=e,l=n+i,c=`split-line-linear-gradient-${a}`;return k(tt,{children:[y(Ke,{children:y(qh,{id:c,startColor:o,stopColor:s,direction:a==="left"?"left-right":"right-left"})}),y(Le,{x:t,y:l,width:r,height:1,fill:`url(#${c})`})]})},cJ=e=>{const{x:t,y:n,side:r,width:i,height:o,color:s,colorBg:a}=e,l=6,c=l/3,u=l*2,h=c*2,f=5,d=r==="left"?t+i+l+f:t-l-f,p=n+o/2,g=d-c,m=p-c,v=80,b=r==="left"?v:-v,w=`dot-line-linear-gradient-${r}`;return k(Y,{children:[y(Ke,{children:y(qh,{id:w,startColor:s,stopColor:a,direction:r==="left"?"left-right":"right-left"})}),k(Ct,{children:[y(Ze,{x:d-l,y:p-l,width:u,height:u,fill:"none",strokeWidth:1,stroke:s}),y(Ze,{x:g,y:m,width:h,height:h,fill:s})]}),y(Le,{x:r==="left"?d:d+b,y:p-.5,width:v,height:1,fill:`url(#${w})`})]})};We("compare-hierarchy-left-right",{component:H5,composites:["title","item"]});const j5=e=>{var t,n;const{Title:r,Items:i,data:o,gap:s=0,itemGap:a=20,columnWidth:l=280,itemPadding:c=5,showColumnBackground:u=!0,columnBackgroundAlpha:h=.08,options:f}=e,[d,p]=i,{title:g,desc:m,items:v=[]}=o,b=r?y(r,{title:g,desc:m}):null,w=g3(f),x=[],_=[],C=l-c*2,P=ae(y(d,{indexes:[0],data:o,datum:v[0],width:l})),S=ae(y(p,{indexes:[0,0],data:o,datum:((n=(t=v[0])==null?void 0:t.children)==null?void 0:n[0])||{},width:C})),$=ae(y(ne,{indexes:[0]})),O=Math.max(...v.map(A=>{var E;return((E=A.children)==null?void 0:E.length)||0}),0),M=P.height+a+O*(S.height+a);if(v.forEach((A,E)=>{const{children:I=[]}=A,T=E*(l+s),N=T,H=0;if(u){const X=`${w[E%w.length]}${Math.round(h*255).toString(16).padStart(2,"0")}`;x.push(y(Le,{x:T,y:H,width:l,height:M,fill:X,rx:0,ry:0,"data-element-type":"shape"}))}x.push(y(d,{indexes:[E],datum:A,data:o,x:N,y:H,width:l})),_.push(y(nt,{indexes:[E],x:N+P.width-$.width-10,y:H+10})),E===0&&_.push(y(ne,{indexes:[E],x:N+P.width/2-$.width/2,y:H-$.height-5}));const D=H+P.height+a;I.forEach((F,X)=>{const G=D+X*(S.height+a),L=N+c,R=[E,X];x.push(y(p,{indexes:R,datum:F,data:o,x:L,y:G,width:C})),_.push(y(nt,{indexes:R,x:L+S.width-$.width-10,y:G+(S.height-$.height)/2})),X<I.length-1&&_.push(y(ne,{indexes:[E,X+1],x:L+S.width/2-$.width/2,y:G+S.height-$.height/2}))});const W=N+c;if(I.length>0){const F=D+I.length*(S.height+a);_.push(y(ne,{indexes:[E,I.length],x:W+S.width/2-$.width/2,y:F-S.height/2-$.height/2}))}else _.push(y(ne,{indexes:[E,0],x:W+S.width/2-$.width/2,y:D-a/2-$.height/2}))}),v.length>0){const A=v.length*(l+s);_.push(y(ne,{indexes:[v.length],x:A-s/2-$.width/2,y:-$.height-5}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[b,k(Y,{children:[y(qe,{children:x}),y(je,{children:_})]})]})};We("compare-hierarchy-row",{component:j5,composites:["title","item"]});const Mf={axisColor:"#D9D9D9",axisArrowSize:5,strokeWidth:1,dashArray:"4,2",defaultExtraSpacing:20},F5=e=>{const{Title:t,Item:n,data:r,quadrantWidth:i,quadrantHeight:o,showAxis:s=!0,dashedAxis:a=!0}=e,{title:l,desc:c,items:u=[]}=r,h=t?y(t,{title:l,desc:c}):null,f=Array.from({length:4},(w,x)=>u[x]),d=f[0]?ae(y(n,{indexes:[0],data:r,datum:f[0]})):{width:0,height:0},p=i!=null?i:d.width+Mf.defaultExtraSpacing,g=o!=null?o:d.height+Mf.defaultExtraSpacing,m=hJ(p,g,d),v=f.map((w,x)=>{if(!w)return null;const _=m[x];return y(n,{indexes:[x],datum:w,data:r,x:_.x,y:_.y,positionH:x%2?"flipped":"normal",positionV:x<2?"normal":"flipped"})}).filter(Boolean),b=uJ(p,g,s,a);return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,k(Y,{width:p*2,height:g*2,children:[b,y(qe,{children:v})]})]})};function uJ(e,t,n,r){if(!n)return[];const{axisColor:i,axisArrowSize:o,strokeWidth:s,dashArray:a}=Mf,l=e,c=t,u=e*2,h=t*2,f=r?a:void 0;return[y(Pe,{d:`M 0 ${c} L ${u} ${c}`,stroke:i,strokeWidth:s,strokeDasharray:f,fill:"none","data-element-type":"shape"}),k(Ct,{transform:`translate(${u}, ${c})`,children:[y(Pe,{d:`M 0 0 L ${-o} ${-o/2}`,stroke:i,strokeWidth:s,fill:"none"}),y(Pe,{d:`M 0 0 L ${-o} ${o/2}`,stroke:i,strokeWidth:s,fill:"none"})]}),k(Ct,{transform:`translate(0, ${c})`,children:[y(Pe,{d:`M 0 0 L ${o} ${-o/2}`,stroke:i,strokeWidth:s,fill:"none"}),y(Pe,{d:`M 0 0 L ${o} ${o/2}`,stroke:i,strokeWidth:s,fill:"none"})]}),y(Pe,{d:`M ${l} 0 L ${l} ${h}`,stroke:i,strokeWidth:s,strokeDasharray:f,fill:"none","data-element-type":"shape"}),k(Ct,{transform:`translate(${l}, 0)`,children:[y(Pe,{d:`M 0 0 L ${-o/2} ${o}`,stroke:i,strokeWidth:s,fill:"none"}),y(Pe,{d:`M 0 0 L ${o/2} ${o}`,stroke:i,strokeWidth:s,fill:"none"})]}),k(Ct,{transform:`translate(${l}, ${h})`,children:[y(Pe,{d:`M 0 0 L ${-o/2} ${-o}`,stroke:i,strokeWidth:s,fill:"none"}),y(Pe,{d:`M 0 0 L ${o/2} ${-o}`,stroke:i,strokeWidth:s,fill:"none"})]})]}function hJ(e,t,n){const r=e/2,i=t/2;return[{x:r-n.width/2,y:i-n.height/2},{x:e+r-n.width/2,y:i-n.height/2},{x:r-n.width/2,y:t+i-n.height/2},{x:e+r-n.width/2,y:t+i-n.height/2}]}We("quadrant",{component:F5,composites:["title","item"]});const Af=Object.assign,fJ={getId:e=>e.id||e.name,getPreH:e=>e.preH||0,getPreV:e=>e.preV||0,getHGap:e=>e.hgap||18,getVGap:e=>e.vgap||18,getChildren:e=>e.children,getHeight:e=>e.height||36,getWidth(e){const t=e.label||" ";return e.width||18*t.split("").length}};let B5=class RM{constructor(t,n){if(this.x=0,this.y=0,this.depth=0,this.children=[],this.hgap=0,this.vgap=0,t instanceof RM||"x"in t&&"y"in t&&"children"in t){const o=t;return this.data=o.data,this.id=o.id,this.x=o.x,this.y=o.y,this.width=o.width,this.height=o.height,this.depth=o.depth,this.children=o.children,this.parent=o.parent,this.hgap=o.hgap,this.vgap=o.vgap,this.preH=o.preH,void(this.preV=o.preV)}this.data=t;const r=n.getHGap(t),i=n.getVGap(t);this.preH=n.getPreH(t),this.preV=n.getPreV(t),this.width=n.getWidth(t),this.height=n.getHeight(t),this.width+=this.preH,this.height+=this.preV,this.id=n.getId(t),this.addGap(r,i)}isRoot(){return this.depth===0}isLeaf(){return this.children.length===0}addGap(t,n){this.hgap+=t,this.vgap+=n,this.width+=2*t,this.height+=2*n}eachNode(t){let n,r=[this];for(;n=r.shift();)t(n),r=n.children.concat(r)}DFTraverse(t){this.eachNode(t)}BFTraverse(t){let n,r=[this];for(;n=r.shift();)t(n),r=r.concat(n.children)}getBoundingBox(){const t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(n=>{t.left=Math.min(t.left,n.x),t.top=Math.min(t.top,n.y),t.width=Math.max(t.width,n.x+n.width),t.height=Math.max(t.height,n.y+n.height)}),t}translate(t=0,n=0){this.eachNode(r=>{r.x+=t,r.y+=n,r.x+=r.preH,r.y+=r.preV})}right2left(){const t=this.getBoundingBox();this.eachNode(n=>{n.x=n.x-2*(n.x-t.left)-n.width}),this.translate(t.width,0)}bottom2top(){const t=this.getBoundingBox();this.eachNode(n=>{n.y=n.y-2*(n.y-t.top)-n.height}),this.translate(0,t.height)}};function If(e,t={},n){t=Af({},fJ,t);const r=new B5(e,t),i=[r];let o;if(!n&&!e.collapsed){for(;o=i.shift();)if(!o.data.collapsed){const s=t.getChildren(o.data),a=s?s.length:0;if(o.children=new Array(a),s&&a)for(let l=0;l<a;l++){const c=new B5(s[l],t);o.children[l]=c,i.push(c),c.parent=o,c.depth=o.depth+1}}}return r}let dJ=class{constructor(t,n={}){this.options=n,this.rootNode=If(t,n)}execute(){throw new Error("please override this method")}};function pJ(e,t){const n=If(e.data,t,!0),r=If(e.data,t,!0),i=e.children.length,o=Math.round(i/2),s=t.getSide||function(a,l){return l<o?"right":"left"};for(let a=0;a<i;a++){const l=e.children[a];s(l,a)==="right"?r.children.push(l):n.children.push(l)}return n.eachNode(a=>{a.isRoot()||(a.side="left")}),r.eachNode(a=>{a.isRoot()||(a.side="right")}),{left:n,right:r}}const br=["LR","RL","TB","BT","H","V"],gJ=["LR","RL","H"],mJ=br[0];function yJ(e,t,n){const r=t.direction||mJ;if(t.isHorizontal=(o=>gJ.indexOf(o)>-1)(r),br.indexOf(r)===-1)throw new TypeError(`Invalid direction: ${r}`);if(r===br[0])n(e,t);else if(r===br[1])n(e,t),e.right2left();else if(r===br[2])n(e,t);else if(r===br[3])n(e,t),e.bottom2top();else if(r===br[4]||r===br[5]){const{left:o,right:s}=pJ(e,t);n(o,t),n(s,t),t.isHorizontal?o.right2left():o.bottom2top(),s.translate(o.x-s.x,o.y-s.y),e.x=o.x,e.y=s.y;const a=e.getBoundingBox();t.isHorizontal?a.top<0&&e.translate(0,-a.top):a.left<0&&e.translate(-a.left,0)}let i=t.fixedRoot;return i===void 0&&(i=!0),i&&e.translate(-(e.x+e.width/2+e.hgap),-(e.y+e.height/2+e.vgap)),(function(o,s){if(s.radial){const[a,l]=s.isHorizontal?["x","y"]:["y","x"],c={x:1/0,y:1/0},u={x:-1/0,y:-1/0};let h=0;o.DFTraverse(p=>{h++;const{x:g,y:m}=p;c.x=Math.min(c.x,g),c.y=Math.min(c.y,m),u.x=Math.max(u.x,g),u.y=Math.max(u.y,m)});const f=u[l]-c[l];if(f===0)return;const d=2*Math.PI/h;o.DFTraverse(p=>{const g=p[l],m=c[l],v=p[a],b=o[a],w=(g-m)/f*(2*Math.PI-d)+d,x=v-b;p.x=Math.cos(w)*x,p.y=Math.sin(w)*x})}})(e,t),e}function W5(e,t){let n=0;return e.children.length?e.children.forEach(r=>{n+=W5(r,t)}):n=e.height,e._subTreeSep=t.getSubTreeSep(e.data),e.totalHeight=Math.max(e.height,n)+2*e._subTreeSep,e.totalHeight}function V5(e){const t=e.children,n=t.length;if(n){t.forEach(a=>{V5(a)});const r=t[0],i=t[n-1],o=i.y-r.y+i.height;let s=0;if(t.forEach(a=>{s+=a.totalHeight}),o>e.height)e.y=r.y+o/2-e.height/2;else if(t.length!==1||e.height>s){const a=e.y+(e.height-o)/2-r.y;t.forEach(l=>{l.translate(0,a)})}else e.y=(r.y+r.height/2+i.y+i.height/2)/2-e.height/2}}const vJ={getSubTreeSep:()=>0};function bJ(e,t={}){return t=Af({},vJ,t),e.parent={x:0,width:0,height:0,y:0},e.BFTraverse(n=>{n.x=n.parent.x+n.parent.width}),e.parent=void 0,W5(e,t),e.startY=0,e.y=e.totalHeight/2-e.height/2,e.eachNode(n=>{const r=n.children,i=r.length;if(i){const o=r[0];if(o.startY=n.startY+n._subTreeSep,i===1)o.y=n.y+n.height/2-o.height/2;else{o.y=o.startY+o.totalHeight/2-o.height/2;for(let s=1;s<i;s++){const a=r[s];a.startY=r[s-1].startY+r[s-1].totalHeight,a.y=a.startY+a.totalHeight/2-a.height/2}}}}),V5(e),e}class wJ extends dJ{execute(){return yJ(this.rootNode,this.options,bJ)}}const _J={};function xJ(e,t){const n=Af({},_J,t);return new wJ(e,n).execute()}var CJ=Object.defineProperty,PJ=Object.defineProperties,SJ=Object.getOwnPropertyDescriptors,G5=Object.getOwnPropertySymbols,OJ=Object.prototype.hasOwnProperty,$J=Object.prototype.propertyIsEnumerable,Y5=(e,t,n)=>t in e?CJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,EJ=(e,t)=>{for(var n in t||(t={}))OJ.call(t,n)&&Y5(e,n,t[n]);if(G5)for(var n of G5(t))$J.call(t,n)&&Y5(e,n,t[n]);return e},MJ=(e,t)=>PJ(e,SJ(t));const AJ=60,IJ=14,X5=30,U5="center",TJ="curved",RJ=2,kJ="node",LJ="solid",K5=(e,t=[],n=0)=>{var r,i;const o=[...t,n];return MJ(EJ({},e),{_indexes:o,children:(i=(r=e.children)==null?void 0:r.map((s,a)=>K5(s,o,a)))!=null?i:[]})},Z5=(e,t,n,r)=>{var i,o;t.push(e),(o=(i=e.data)._flatIndex)!=null||(i._flatIndex=t.length-1),r&&n.push({parent:r,child:e});const s=e.children;s==null||s.forEach(a=>Z5(a,t,n,e))},NJ=(e,t,n,r)=>{const i=Math.abs(n-e)/2,o=n>e?e+i:e-i,s=n>e?n-i:n+i;return`M ${e} ${t} C ${o} ${t} ${s} ${r} ${n} ${r}`},zJ=(e,t,n,r)=>`M ${e} ${t} L ${n} ${r}`,DJ=(e,t,n,r=U5)=>{const i=c=>Math.max(0,Math.min(1,c)),s=(c=>c==="top"?0:c==="bottom"?1:c==="center"?.5:i(c))(r),a=e.y+e.height*s,l=t.y+t.height*s;return n==="left"?{sx:e.x,sy:a,tx:t.x+t.width,ty:l}:{sx:e.x+e.width,sy:a,tx:t.x,ty:l}},Q5=e=>{var t,n;const{Title:r,Items:i,data:o,levelGap:s=AJ,nodeGap:a=IJ,edgeAlign:l=U5,colorMode:c=kJ,edgeColorMode:u=LJ,edgeType:h=TJ,edgeWidth:f=RJ,options:d}=e,{title:p,desc:g,items:m=[]}=o,v=r?y(r,{title:p,desc:g}):null,b=Pt(d),w=ae(y(ne,{indexes:[0]})),x=new Map;let _=0;if(!m.length||!(i!=null&&i.length))return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,y(Y,{children:y(ne,{indexes:[0],x:0,y:0})})]});const C=K5(m[0]),P=new WeakMap,S=new WeakMap,$=new WeakMap,O=(q,j)=>{var V;if(c==="group"){const U=String((V=q.group)!=null?V:"");let K=x.get(U);return K==null&&(K=_,x.set(U,K),_+=1),[K]}return m3({depth:j,originalIndexes:q._indexes,flatIndex:q._flatIndex},c)},M=(q,j)=>{const V=$.get(q);if(V)return V;const U=O(q,j),K=Fe(d,U),J=Et({colorPrimary:K},d);return $.set(q,J),S.set(q,K),J},A=q=>{const j=P.get(q);if(j)return j;const V=Math.max(q._indexes.length-1,0),U=Va(i,V),K=ae(y(U,{indexes:q._indexes,data:o,datum:q,positionH:"center",positionV:"middle",themeColors:M(q,V)}));return P.set(q,K),K},E=xJ(C,{direction:"H",getSide:(q,j)=>{if(!q.parent)return"right";const V=(q.parent.children||[]).indexOf(q);return(V>=0?V:j)%2===0?"left":"right"},getWidth:q=>A(q).width,getHeight:q=>A(q).height,getHGap:()=>s,getVGap:()=>a}),I=[],T=[];Z5(E,I,T);const N=I.length>0?Math.min(...I.map(q=>q.x)):0,H=I.length>0?Math.min(...I.map(q=>q.y)):0,D=X5-N,W=X5-H,F=[],X=[],G=[],L=[],R=new WeakMap;I.forEach(q=>{var j,V;const U=q.data,K=A(U),J=q.x+D+((j=q.hgap)!=null?j:0),Z=q.y+W+((V=q.vgap)!=null?V:0),ie=Va(i,q.depth),Q=q.depth===0?"center":q.side==="left"?"flipped":"normal",te=M(U,q.depth);G.push(y(ie,{indexes:U._indexes,data:o,datum:U,x:J,y:Z,positionH:Q,positionV:"middle",themeColors:te})),R.set(q,{x:J,y:Z,width:K.width,height:K.height,centerX:J+K.width/2,centerY:Z+K.height/2})}),T.forEach(q=>{var j,V,U,K;const{parent:J,child:Z}=q,ie=R.get(Z),Q=R.get(J);if(!ie||!Q)return;const te=Z.data,{sx:ce,sy:re,tx:ee,ty:oe}=DJ(Q,ie,Z.side,l),se=(j=S.get(te))!=null?j:Fe(d,O(te,Z.depth)),ue=(V=S.get(J.data))!=null?V:Fe(d,O(J.data,J.depth)),pe=h==="straight"?zJ(ce,re,ee,oe):NJ(ce,re,ee,oe),fe=`edge-gradient-${te._indexes.join("-")}`;X.push(y(Pe,{d:pe,stroke:u==="gradient"?`url(#${fe})`:se!=null?se:b,strokeWidth:f,fill:"none"})),u==="gradient"&&F.push(k("linearGradient",{id:fe,gradientUnits:"userSpaceOnUse",x1:ce,y1:re,x2:ee,y2:oe,children:[y("stop",{offset:"0%",stopColor:ue!=null?ue:b}),y("stop",{offset:"100%",stopColor:se!=null?se:b})]}));const ge=(K=(U=te.children)==null?void 0:U.length)!=null?K:0,he=[...te._indexes,ge],xe=ie.x+(ie.width-w.width)/2,$e=ie.y+ie.height+8,Me=$e+w.height+6;Z.depth>0&&L.push(y(nt,{indexes:te._indexes,x:xe,y:$e})),L.push(y(ne,{indexes:he,x:xe,y:Me}))});const z=R.get(E);if(z){const q=E.data,j=(n=(t=q.children)==null?void 0:t.length)!=null?n:0,V=[...q._indexes,j],U=z.x+(z.width-w.width)/2,K=z.y+z.height+8+w.height+6;L.push(y(ne,{indexes:V,x:U,y:K}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,k(Y,{children:[F.length>0?y(Ke,{children:F}):null,y(Y,{children:X}),y(qe,{children:G}),y(je,{children:L})]})]})};We("hierarchy-mindmap",{component:Q5,composites:["title","item"]});const ki=(e,t)=>{if(e[0]!=="#"||e.length!==7)return e;const n=Math.max(0,Math.min(1,t)),r=Math.round(n*255).toString(16).padStart(2,"0");return`${e}${r}`},Li=e=>e==null?"":String(e),_l=(e,t,n)=>ae(y(De,{fontSize:t,fontWeight:n,children:e})),qJ=(e,t,n,r=" ")=>{const i=_l(r,t,n);let o=i.width,s=i.height;return e.forEach(a=>{const l=_l(a||" ",t,n);o=Math.max(o,l.width),s=Math.max(s,l.height)}),{width:o,height:s}},J5=(e,t,n,r)=>{const i=qJ(e,t,"normal","Item");return{pillWidth:i.width+n*2,pillHeight:i.height+r*2}},e6=e=>{const{Title:t,data:n,options:r,rowGap:i=20,labelGap:o=20,groupGap:s=20,pillGap:a=14,pillColumns:l=2,ungroupedColumns:c=6,layerLabelPosition:u="left",rowPadding:h=20,groupPadding:f=16,labelPaddingX:d=28,labelPaddingY:p=16,pillPaddingX:g=18,pillPaddingY:m=10,labelFontSize:v=20,groupTitleFontSize:b=18,pillFontSize:w=16,groupTitleGap:x=10,rowRadius:_=12,groupRadius:C=10,pillRadius:P=12}=e,{title:S,desc:$,items:O=[]}=n,M=t?y(t,{title:S,desc:$}):null;if(O.length===0)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[M,y(Y,{children:y(qe,{})})]});const A=Et(r.themeConfig),E=[],I=[],T=u==="right",N=.12,H=.55,D=.08,W=.4,F=.06,X=.35,G=O.map(Z=>{const ie=Li(Z.label),Q=_l(ie||" ",v,"bold"),te=Q.width+d*2,ce=Q.height+p*2,re=Z.children||[];if(re.some(xe=>{var $e;return((($e=xe.children)==null?void 0:$e.length)||0)>0})){const xe=[];re.forEach(ze=>{(ze.children||[]).forEach(ye=>{xe.push(Li(ye.label))})});const{pillWidth:$e,pillHeight:Me}=J5(xe,w,g,m),Ce=re.map(ze=>{const ye=Li(ze.label),we=_l(ye||" ",b,"bold"),Ae=ze.children||[],Ee=Ae.length>0?Math.min(l,Ae.length):0,le=Ee>0?Math.ceil(Ae.length/Ee):0,me=Ee>0?Ee*$e+(Ee-1)*a:0,Se=le>0?le*Me+(le-1)*a:0,rt=Math.max(we.width,me)+f*2,Oe=f*2+we.height+(le>0?x+Se:0);return{label:ye,children:Ae,width:rt,height:Oe,titleHeight:we.height,columns:Ee,contentWidth:me,pillWidth:$e,pillHeight:Me}}),Te=Ce.reduce((ze,ye)=>ze+ye.width,0)+(Ce.length>1?(Ce.length-1)*s:0),Ne=Ce.reduce((ze,ye)=>Math.max(ze,ye.height),0);return{label:ie,labelWidth:te,labelHeight:ce,hasGroups:!0,children:re,groupMetrics:Ce,contentInnerWidth:Te,contentInnerHeight:Ne}}const oe=re.map(xe=>Li(xe.label)),{pillWidth:se,pillHeight:ue}=J5(oe,w,g,m),pe=re.length>0?Math.min(c,re.length):0,fe=pe>0?Math.ceil(re.length/pe):0,ge=pe>0?pe*se+(pe-1)*a:0,he=fe>0?fe*ue+(fe-1)*a:0;return{label:ie,labelWidth:te,labelHeight:ce,hasGroups:!1,children:re,pillWidth:se,pillHeight:ue,columns:pe,contentInnerWidth:ge,contentInnerHeight:he}}),L=G.reduce((Z,ie)=>Math.max(Z,ie.labelWidth),0),R=G.reduce((Z,ie)=>Math.max(Z,ie.contentInnerWidth),0),z=Z=>{const ie=Fe(r,[Z])||A.colorPrimary||"#6c7dff";return{rowFill:ki(ie,N),rowStroke:ki(ie,H),groupFill:ki(ie,D),groupStroke:ki(ie,W),pillFill:ki(ie,F),pillStroke:ki(ie,X)}},q=(Z,ie,Q,te,ce,re,ee,oe,se,ue,pe,fe,ge,he)=>{E.push(y(Le,{x:Q,y:ee,width:ce,height:oe,fill:ge,stroke:he,rx:_,ry:_,"data-element-type":"shape"})),E.push(y(Le,{x:se,y:ue,width:pe,height:fe,fill:ge,stroke:he,rx:_,ry:_,"data-element-type":"shape"})),I.push(y(De,{x:Q,y:te,width:ce,height:re,fontSize:v,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:A.colorText,"data-element-type":Ge.ItemLabel,"data-indexes":ie,children:Z}))},j=(Z,ie,Q,te)=>{const ce=Z.groupMetrics||[],re=Z.label,ee=[ie],oe=L,se=Z.labelHeight,ue=Z.contentInnerHeight,pe=Math.max(0,R-Z.contentInnerWidth),fe=ce.length>0?pe/ce.length:0,he=Z.contentInnerWidth+(ce.length>0?pe:0)+h*2,xe=ue+h*2,$e=Math.max(se,xe),Me=T?0:oe+o,Ce=T?Me+he+o:0,Te=Q+($e-se)/2,Ne=Q+($e-xe)/2;q(re,ee,Ce,Te,oe,se,Q,$e,Me,Ne,he,xe,te.rowFill,te.rowStroke);let ze=Me+h;return ce.forEach((we,Ae)=>{const Ee=[...ee,Ae],le=we.width+fe,me=Ne+h+(ue-we.height)/2;E.push(y(Le,{x:ze,y:me,width:le,height:we.height,fill:te.groupFill,stroke:te.groupStroke,rx:C,ry:C,"data-element-type":"shape"}));const Se=we.children.length>0,Ye=Se?me+f:me,rt=Se?we.titleHeight:we.height,Oe=Se?"top":"middle";if(I.push(y(De,{x:ze+f,y:Ye,width:le-f*2,height:rt,fontSize:b,fontWeight:"bold",alignHorizontal:"center",alignVertical:Oe,fill:A.colorText,"data-element-type":Ge.ItemLabel,"data-indexes":Ee,children:we.label})),we.columns>0){const Be=le-f*2,Qe=Be-we.contentWidth,Je=Qe>0?Qe/we.columns:0,Xe=we.pillWidth+Je,dt=we.columns*Xe+(we.columns-1)*a,et=(Be-dt)/2,Wt=ze+f+Math.max(0,et),Gt=me+f+we.titleHeight+x;we.children.forEach((Ue,Ot)=>{const zt=[...Ee,Ot],Qt=Math.floor(Ot/we.columns),Vn=Ot%we.columns,si=Wt+Vn*(Xe+a),ai=Gt+Qt*(we.pillHeight+a),Gn=Math.min(P,we.pillHeight/2);E.push(y(Le,{x:si,y:ai,width:Xe,height:we.pillHeight,fill:te.pillFill,stroke:te.pillStroke,rx:Gn,ry:Gn,"data-element-type":"shape"})),I.push(y(De,{x:si,y:ai,width:Xe,height:we.pillHeight,fontSize:w,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:A.colorText,"data-element-type":Ge.ItemLabel,"data-indexes":zt,children:Li(Ue.label)}))})}ze+=le+s}),{rowWidth:T?Ce+oe:Me+he,rowHeight:$e}},V=(Z,ie,Q,te)=>{const ce=Z.label,re=[ie],ee=L,oe=Z.labelHeight,se=Z.contentInnerHeight,ue=Math.max(0,R-Z.contentInnerWidth),pe=Z.columns||0,fe=Z.pillWidth||0,ge=Z.pillHeight||0,he=pe>0?ue/pe:0,xe=fe+he,Me=(pe>0?pe*xe+(pe-1)*a:0)+h*2,Ce=se+h*2,Te=Math.max(oe,Ce),Ne=T?0:ee+o,ze=T?Ne+Me+o:0,ye=Q+(Te-oe)/2,we=Q+(Te-Ce)/2;if(q(ce,re,ze,ye,ee,oe,Q,Te,Ne,we,Me,Ce,te.rowFill,te.rowStroke),pe>0){const Ee=Ne+h,le=we+h;(Z.children||[]).forEach((Se,Ye)=>{const rt=[...re,Ye],Oe=Math.floor(Ye/pe),Be=Ye%pe,Qe=Ee+Be*(xe+a),Je=le+Oe*(ge+a),Xe=Math.min(P,ge/2);E.push(y(Le,{x:Qe,y:Je,width:xe,height:ge,fill:te.pillFill,stroke:te.pillStroke,rx:Xe,ry:Xe,"data-element-type":"shape"})),I.push(y(De,{x:Qe,y:Je,width:xe,height:ge,fontSize:w,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:A.colorText,"data-element-type":Ge.ItemLabel,"data-indexes":rt,children:Li(Se.label)}))})}return{rowWidth:T?ze+ee:Ne+Me,rowHeight:Te}};let U=0,K=0;G.forEach((Z,ie)=>{const Q=z(ie),{rowWidth:te,rowHeight:ce}=Z.hasGroups?j(Z,ie,U,Q):V(Z,ie,U,Q);K=Math.max(K,te),U+=ce+i});const J=Math.max(U-i,0);return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[M,k(Y,{width:K,height:J,children:[y(Y,{children:E}),y(qe,{children:I})]})]})};We("hierarchy-structure",{component:e6,composites:["title"]});var HJ=Object.defineProperty,jJ=Object.defineProperties,FJ=Object.getOwnPropertyDescriptors,t6=Object.getOwnPropertySymbols,BJ=Object.prototype.hasOwnProperty,WJ=Object.prototype.propertyIsEnumerable,n6=(e,t,n)=>t in e?HJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xl=(e,t)=>{for(var n in t||(t={}))BJ.call(t,n)&&n6(e,n,t[n]);if(t6)for(var n of t6(t))WJ.call(t,n)&&n6(e,n,t[n]);return e},Cl=(e,t)=>jJ(e,FJ(t));const r6=(e,t)=>{const n=Math.max(0,t/2-1);return Math.min(e,n)},i6=e=>{const{Title:t,Items:n,data:r,levelGap:i=80,nodeGap:o=60,edgeType:s="straight",edgeColorMode:a="gradient",edgeWidth:l=3,edgeStyle:c="solid",edgeDashPattern:u="5,5",edgeCornerRadius:h=0,edgeOffset:f=0,edgeOrigin:d="center",edgeOriginPadding:p=20,edgeMarker:g="none",markerSize:m=12,colorMode:v="branch",orientation:b="top-bottom",options:w}=e,x=b==="left-right"||b==="right-left",_=b==="bottom-top"||b==="right-left"?-1:1,{title:C,desc:P}=r,S=Pt(w),$=new Map;let O=0;const M=ee=>{var oe;const se=[...ee];return(oe=se[0])!=null&&oe.children||(se[0]=Cl(xl({},se[0]),{children:se.slice(1)}),se.splice(1)),se},A=(ee,oe,se,ue,pe,fe="vertical")=>{const ge=fe==="vertical",he=ge?ue-oe:se-ee,xe=ge?se-ee:ue-oe,$e=he===0?1:Math.sign(he),Me=xe===0?1:Math.sign(xe),Ce=ge?oe+he/2:ee+he/2,Te=Math.min(pe,Math.abs(he)/2,Math.abs(xe)/2);return Te===0?ge?`M ${ee} ${oe} L ${ee} ${Ce} L ${se} ${Ce} L ${se} ${ue}`:`M ${ee} ${oe} L ${Ce} ${oe} L ${Ce} ${ue} L ${se} ${ue}`:ge?`M ${ee} ${oe}
97
87
  L ${ee} ${Ce-$e*Te}
98
88
  Q ${ee} ${Ce} ${ee+Me*Te} ${Ce}
99
89
  L ${se-Me*Te} ${Ce}
@@ -103,22 +93,22 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
103
93
  Q ${Ce} ${oe} ${Ce} ${oe+Me*Te}
104
94
  L ${Ce} ${ue-Me*Te}
105
95
  Q ${Ce} ${ue} ${Ce+$e*Te} ${ue}
106
- L ${se} ${ue}`},E=ee=>{const{x:oe,y:se}=ee;return x?{x:se*w,y:oe}:{x:oe,y:se*w}},A=(ee,oe,se)=>{const{x:ue,y:pe}=E(ee),fe=ue+se.x,ge=pe+se.y,he=ge+oe.height/2;return{centerX:fe,centerY:he,left:fe-oe.width/2,right:fe+oe.width/2,top:ge,bottom:ge+oe.height}},T=ee=>{var oe;if(!ee.length)return null;const se=ee[0],ue=(pe,fe=[],ge=0)=>{var he,xe;const $e=[...fe,ge];return pl(dl({},pe),{_originalIndex:$e,_depth:$e.length-1,children:(xe=(he=pe.children)==null?void 0:he.map((Me,Ce)=>ue(Me,$e,Ce)))!=null?xe:[]})};return(oe=se.children)!=null&&oe.length?ue(se):pl(dl({},se),{_originalIndex:[0],_depth:0,children:ee.slice(1).map((pe,fe)=>pl(dl({},pe),{_originalIndex:[fe+1],_depth:1}))})},N=ee=>{var oe,se;let ue=0,pe=0;const fe=new Map,ge=new Map;ee.each(he=>{ge.has(he.depth)||ge.set(he.depth,he.data)});for(let he=0;he<ee.height+1;he++){const xe=Na(n,he),$e=(oe=ge.get(he))!=null?oe:{},Me=(se=$e._originalIndex)!=null?se:Array(he+1).fill(0),Ce=ae(y(xe,{indexes:Me,data:r,datum:$e,positionH:"center"}));fe.set(he,Ce),ue=Math.max(ue,Ce.width),pe=Math.max(pe,Ce.height)}return{levelBounds:fe,maxWidth:ue,maxHeight:pe}},H=(ee,oe)=>{var se;if(v==="group"){const ue=String((se=ee==null?void 0:ee.group)!=null?se:"");let pe=$.get(ue);return pe==null&&(pe=S,$.set(ue,pe),S+=1),[pe]}return n3({depth:oe,originalIndexes:ee._originalIndex,flatIndex:ee._flatIndex},v)},D=(ee,oe,se,ue,pe,fe)=>{const{depth:ge,data:he,parent:xe}=ee,$e=he._originalIndex,Me=Na(n,ge),Ce=oe.get(ge),Te=A(ee,Ce,ue),Ne=Te.left,ze=Te.top,ye={items:[],btns:[],deco:[]},_e=H(he,ge),Ie=Fe(_,_e),Ee=Et({colorPrimary:Ie},_);if(ye.items.push(y(Me,{indexes:$e,datum:he,data:r,x:Ne,y:ze,positionH:"center",themeColors:Ee})),ye.btns.push(y(nt,{indexes:$e,x:Ne+(Ce.width-se.width)/2,y:ze+Ce.height+5}),y(ne,{indexes:[...$e,0],x:Ne+(Ce.width-se.width)/2,y:ze+Ce.height+se.height+10})),xe){const le=oe.get(xe.depth),me=A(xe,le,ue),Oe=fe.filter(Ue=>Ue.parent===xe),Ye=Oe.findIndex(Ue=>Ue===ee),rt=Oe.length;let Se,Be;if(d==="distributed"&&rt>1)if(x){const Ue=B5(p,le.height),$t=me.top+Ue,Qt=(me.bottom-Ue-$t)/rt;Be=$t+Qt*Ye+Qt/2,Se=(w>0?me.right:me.left)+f*w}else{const Ue=B5(p,le.width),$t=me.left+Ue,Qt=(me.right-Ue-$t)/rt;Se=$t+Qt*Ye+Qt/2,Be=(w>0?me.bottom:me.top)+f*w}else Se=x?(w>0?me.right:me.left)+f*w:me.centerX,Be=x?me.centerY:(w>0?me.bottom:me.top)+f*w;const Qe=x?(w>0?Te.left:Te.right)-f*w:Te.centerX,Je=x?Te.centerY:(w>0?Te.top:Te.bottom)-f*w;let Xe=Qe,pt=Je;g==="arrow"&&(x?Xe-=m*w:pt-=m*w);let et;if(s==="curved")if(x){const Ue=Se+(Xe-Se)/2;et=`M ${Se} ${Be} C ${Ue} ${Be}, ${Ue} ${pt}, ${Xe} ${pt}`}else{const Ue=Be+(pt-Be)/2;et=`M ${Se} ${Be} C ${Se} ${Ue}, ${Xe} ${Ue}, ${Xe} ${pt}`}else if(h>0)et=I(Se,Be,Xe,pt,h,x?"horizontal":"vertical");else if(x){const Ue=Se+(Xe-Se)/2;et=`M ${Se} ${Be} L ${Ue} ${Be} L ${Ue} ${pt} L ${Xe} ${pt}`}else{const Ue=Be+(pt-Be)/2;et=`M ${Se} ${Be} L ${Se} ${Ue} L ${Xe} ${Ue} L ${Xe} ${pt}`}let Wt=O;if(a==="gradient"){const Ue=H(xe.data,xe.depth),$t=H(he,ge),Nt=Fe(_,Ue),Qt=Fe(_,$t),qn=`gradient-${xe.data._originalIndex.join("-")}-${$e.join("-")}`;pe.push(k("linearGradient",{id:qn,x1:Se,y1:Be,x2:Xe,y2:pt,gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0%",stopColor:Nt}),y("stop",{offset:"100%",stopColor:Qt})]})),Wt=`url(#${qn})`}const Gt=c==="dashed"?u:"";if(ye.deco.push(y(Pe,{d:et,stroke:Wt,strokeWidth:l,strokeDasharray:Gt,fill:"none"})),g==="arrow"){const Ue=a==="gradient"?Fe(_,_e):Ot(_),$t=x?[{x:Qe,y:Je},{x:Qe-m*w,y:Je-m/2},{x:Qe-m*w,y:Je+m/2}]:[{x:Qe,y:Je},{x:Qe-m/2,y:Je-m*w},{x:Qe+m/2,y:Je-m*w}];ye.deco.push(y(Yt,{points:$t,fill:Ue,width:m,height:m}))}if(g==="dot"){const Ue=H(xe.data,xe.depth),$t=a==="gradient"?Fe(_,Ue):Ot(_);ye.deco.push(y(Ze,{x:(x?w>0?me.right+f:me.left-f:Se)-m,y:(x?Be:w>0?me.bottom+f:me.top-f)-m,width:m*2,height:m*2,fill:$t}));const Nt=a==="gradient"?Fe(_,_e):Ot(_);ye.deco.push(y(Ze,{x:Qe-m,y:Je-m,width:m*2,height:m*2,fill:Nt}))}}return ye},B=(ee,oe,se)=>{const ue=new Map;ee.forEach(fe=>{var ge;const he=fe.parent?fe.parent.data._originalIndex.join("-"):"root";((ge=ue.get(he))!=null?ge:ue.set(he,[]).get(he)).push(fe)});const pe=[];return ue.forEach(fe=>{if(fe.length<=1)return;const ge=fe.slice().sort((he,xe)=>x?E(he).y-E(xe).y:E(he).x-E(xe).x);if(ge.length!==0)for(let he=0;he<ge.length-1;he++){const xe=E(ge[he]),$e=E(ge[he+1]),Me=ge[he].data._originalIndex.slice(0,-1),Ce=ge[he].data._originalIndex.at(-1)+1;if(x){const Te=xe.x+se.x+(w>0?-oe.width-5:oe.width+5),Ne=(xe.y+$e.y)/2+se.y-oe.height/2;pe.push(y(ne,{indexes:[...Me,Ce],x:Te,y:Ne}))}else{const Te=xe.y+se.y-oe.height-5,Ne=(xe.x+$e.x)/2+se.x-oe.width/2;pe.push(y(ne,{indexes:[...Me,Ce],x:Ne,y:Te}))}}}),pe},F=M(r.items),X=t?y(t,{title:C,desc:P}):null,G=ae(y(ne,{indexes:[0]}));if(!F.length)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[X,y(Y,{children:y(je,{children:y(ne,{indexes:[0],x:-G.width/2,y:-G.height/2})})})]});const L=T(F),R=nf(L),{levelBounds:z,maxWidth:q,maxHeight:j}=N(R),U=IU().nodeSize(x?[j+o,q+i]:[q+o,j+i]).separation(()=>1)(R).descendants(),K=U.map(ee=>E(ee)),J=Math.min(...K.map(ee=>ee.x)),Z=Math.min(...K.map(ee=>ee.y)),ie={x:Math.max(0,-J+q/2),y:Math.max(0,-Z+G.height+10)},Q=[],te=[],ce=[],re=[];return U.forEach((ee,oe)=>{ee.data._flatIndex=oe;const{x:se,y:ue}=E(ee);ee.__layout={x:se,y:ue}}),U.forEach(ee=>{const{items:oe,btns:se,deco:ue}=D(ee,z,G,ie,re,U);Q.push(...oe),te.push(...se),ce.push(...ue)}),te.push(...B(U,G,ie)),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[X,k(Y,{children:[re.length>0&&y(Ke,{children:re}),y(Pt,{children:ce}),y(qe,{children:Q}),y(je,{children:te})]})]})};We("hierarchy-tree",{component:W5,composites:["title","item"]});const V5=e=>{const{Title:t,Item:n,data:r,gap:i=20,width:o,zigzag:s}=e,{title:a,desc:l,items:c=[]}=r,u=ae(y(ne,{indexes:[0]})),h=ae(y(n,{indexes:[0],data:r,datum:c[0]})),f=o||h.width,d=t?y(t,{title:a,desc:l}):null,p=[],g=[],m=(f-u.width)/2;if(c.forEach((v,b)=>{const _=(h.height+i)*b,x=[b];g.push(y(n,{indexes:x,datum:v,data:r,y:_,width:f,positionV:"middle",positionH:s?b%2===0?"normal":"flipped":"normal"})),p.push(y(nt,{indexes:x,x:-u.width-10,y:_+(h.height-u.height)/2}));const w=b===0?-u.height:_-i/2-u.height/2;p.push(y(ne,{indexes:x,x:m,y:w}))}),c.length>0){const b=(h.height+i)*(c.length-1)+h.height;p.push(y(ne,{indexes:[c.length],x:m,y:b}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,k(Y,{children:[y(qe,{children:g}),y(je,{children:p})]})]})};We("list-column",{component:V5,composites:["title","item"]});const G5=e=>{const{Title:t,Item:n,data:r,columns:i=3,gap:o=24,zigzag:s}=e,{title:a,desc:l,items:c=[]}=r,u=t?y(t,{title:a,desc:l}):null,h=ae(y(ne,{indexes:[0]})),f=ae(y(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),d=[],p=[],g=f.height+o,m=f.width+o,v=new Set;return c.forEach((b,_)=>{const x=Math.floor(_/i),w=_%i,C=w*m,P=x*g,O=[_];p.push(y(n,{indexes:O,datum:b,data:r,x:C,y:P,positionH:"center",positionV:s&&_%2===0?"normal":"flipped"})),d.push(y(nt,{indexes:O,x:C+(f.width-h.width)/2,y:P+f.height})),w<i-1&&d.push(y(ne,{indexes:[_+1],x:C+f.width+(o-h.width)/2,y:P+(f.height-h.height)/2})),w===0&&!v.has(x)&&(d.push(y(ne,{indexes:[_],x:C-o/2-h.width/2,y:P+(f.height-h.height)/2})),v.add(x)),(w===i-1||_===c.length-1)&&d.push(y(ne,{indexes:[_+1],x:C+f.width+o/2-h.width/2,y:P+(f.height-h.height)/2}))}),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,k(Y,{children:[y(qe,{children:p}),y(je,{children:d})]})]})};We("list-grid",{component:G5,composites:["title","item"]});const Y5=e=>{const{Title:t,Item:n,data:r,gap:i=20,levelGap:o=20}=e,{title:s,desc:a,items:l=[]}=r,c=t?y(t,{title:s,desc:a}):null,u=ae(y(ne,{indexes:[0]})),h=ae(y(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),f=[],d=[],p=Math.ceil(Math.sqrt(l.length)),g=[];let m=l.length;for(let w=0;w<p;w++){const C=Math.min(w+1,m);if(g.push(C),m-=C,m<=0)break}let v=0;const b=Math.max(...g),x=(b*h.width+(b-1)*i)/2;return g.forEach((w,C)=>{const P=C*(h.height+o),O=w*h.width+(w-1)*i,$=x-O/2;for(let S=0;S<w&&v<l.length;S++){const M=$+S*(h.width+i),I=l[v],E=[v];d.push(y(n,{indexes:E,datum:I,data:r,x:M,y:P,positionH:"center"})),f.push(y(nt,{indexes:E,x:M+(h.width-u.width)/2,y:P+h.height})),S<w-1&&f.push(y(ne,{indexes:[v+1],x:M+h.width+(i-u.width)/2,y:P+(h.height-u.height)/2})),S===0&&f.push(y(ne,{indexes:[v],x:M-i/2-u.width/2,y:P+(h.height-u.height)/2})),S===w-1&&f.push(y(ne,{indexes:[v+1],x:M+h.width+i/2-u.width/2,y:P+(h.height-u.height)/2})),v++}}),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,k(Y,{children:[y(qe,{children:d}),y(je,{children:f})]})]})};We("list-pyramid",{component:Y5,composites:["title","item"]});const X5=e=>{const{Title:t,Item:n,data:r,gap:i=20,zigzag:o}=e,{title:s,desc:a,items:l=[]}=r,c=t?y(t,{title:s,desc:a}):null,u=ae(y(ne,{indexes:[0]})),h=ae(y(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),f=[],d=[],p=(h.height-u.height)/2,g=h.height;if(l.forEach((m,v)=>{const b=(h.width+i)*v,_=[v];d.push(y(n,{indexes:_,datum:m,data:r,x:b,positionH:"center",positionV:o&&v%2===0?"normal":"flipped"})),f.push(y(nt,{indexes:_,x:b+(h.width-u.width)/2,y:g}));const x=v===0?-(i+u.width)/2:b-(i+u.width)/2;f.push(y(ne,{indexes:_,x,y:p}))}),l.length>0){const v=(h.width+i)*(l.length-1)+h.width+(i-u.width)/2;f.push(y(ne,{indexes:[l.length],x:v,y:p}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,k(Y,{children:[y(qe,{children:d}),y(je,{children:f})]})]})};We("list-row",{component:X5,composites:["title","item"]});var iJ=Object.defineProperty,U5=Object.getOwnPropertySymbols,oJ=Object.prototype.hasOwnProperty,sJ=Object.prototype.propertyIsEnumerable,K5=(e,t,n)=>t in e?iJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,aJ=(e,t)=>{for(var n in t||(t={}))oJ.call(t,n)&&K5(e,n,t[n]);if(U5)for(var n of U5(t))sJ.call(t,n)&&K5(e,n,t[n]);return e};const Z5=e=>{const{Item:t,data:n,outerRadius:r=250,innerRadius:i=120,startAngle:o=-90,endAngle:s=270,gapAngle:a=1,options:l}=e,{title:c,items:u=[]}=n,h=Et(l.themeConfig),f=ae(y(ne,{indexes:[0]})),d=[],p=[],g=[],m=r+100,v=r+100,b=s-o,_=Math.abs(b-360)<.01,x=u.length>0?a*(_?u.length:u.length-1):0,w=b-x,C=u.length>0?w/u.length:0;if(u.forEach((E,A)=>{var T;const N=[A],H=o+(C+a)*A,D=H+C,F=a*Math.PI*r/180/i*(180/Math.PI),X=a,G=(H+X/2)*Math.PI/180,L=(D-X/2)*Math.PI/180,R=(H+F/2)*Math.PI/180,z=(D-F/2)*Math.PI/180,q=m+r*Math.cos(G),j=v+r*Math.sin(G),V=m+r*Math.cos(L),U=v+r*Math.sin(L),K=m+i*Math.cos(R),J=v+i*Math.sin(R),Z=m+i*Math.cos(z),ie=v+i*Math.sin(z),Q=C>180?1:0,te=`
96
+ L ${se} ${ue}`},E=ee=>{const{x:oe,y:se}=ee;return x?{x:se*_,y:oe}:{x:oe,y:se*_}},I=(ee,oe,se)=>{const{x:ue,y:pe}=E(ee),fe=ue+se.x,ge=pe+se.y,he=ge+oe.height/2;return{centerX:fe,centerY:he,left:fe-oe.width/2,right:fe+oe.width/2,top:ge,bottom:ge+oe.height}},T=ee=>{var oe;if(!ee.length)return null;const se=ee[0],ue=(pe,fe=[],ge=0)=>{var he,xe;const $e=[...fe,ge];return Cl(xl({},pe),{_originalIndex:$e,_depth:$e.length-1,children:(xe=(he=pe.children)==null?void 0:he.map((Me,Ce)=>ue(Me,$e,Ce)))!=null?xe:[]})};return(oe=se.children)!=null&&oe.length?ue(se):Cl(xl({},se),{_originalIndex:[0],_depth:0,children:ee.slice(1).map((pe,fe)=>Cl(xl({},pe),{_originalIndex:[fe+1],_depth:1}))})},N=ee=>{var oe,se;let ue=0,pe=0;const fe=new Map,ge=new Map;ee.each(he=>{ge.has(he.depth)||ge.set(he.depth,he.data)});for(let he=0;he<ee.height+1;he++){const xe=Va(n,he),$e=(oe=ge.get(he))!=null?oe:{},Me=(se=$e._originalIndex)!=null?se:Array(he+1).fill(0),Ce=ae(y(xe,{indexes:Me,data:r,datum:$e,positionH:"center"}));fe.set(he,Ce),ue=Math.max(ue,Ce.width),pe=Math.max(pe,Ce.height)}return{levelBounds:fe,maxWidth:ue,maxHeight:pe}},H=(ee,oe)=>{var se;if(v==="group"){const ue=String((se=ee==null?void 0:ee.group)!=null?se:"");let pe=$.get(ue);return pe==null&&(pe=O,$.set(ue,pe),O+=1),[pe]}return m3({depth:oe,originalIndexes:ee._originalIndex,flatIndex:ee._flatIndex},v)},D=(ee,oe,se,ue,pe,fe)=>{const{depth:ge,data:he,parent:xe}=ee,$e=he._originalIndex,Me=Va(n,ge),Ce=oe.get(ge),Te=I(ee,Ce,ue),Ne=Te.left,ze=Te.top,ye={items:[],btns:[],deco:[]},we=H(he,ge),Ae=Fe(w,we),Ee=Et({colorPrimary:Ae},w);if(ye.items.push(y(Me,{indexes:$e,datum:he,data:r,x:Ne,y:ze,positionH:"center",themeColors:Ee})),ye.btns.push(y(nt,{indexes:$e,x:Ne+(Ce.width-se.width)/2,y:ze+Ce.height+5}),y(ne,{indexes:[...$e,0],x:Ne+(Ce.width-se.width)/2,y:ze+Ce.height+se.height+10})),xe){const le=oe.get(xe.depth),me=I(xe,le,ue),Se=fe.filter(Ue=>Ue.parent===xe),Ye=Se.findIndex(Ue=>Ue===ee),rt=Se.length;let Oe,Be;if(d==="distributed"&&rt>1)if(x){const Ue=r6(p,le.height),Ot=me.top+Ue,Qt=(me.bottom-Ue-Ot)/rt;Be=Ot+Qt*Ye+Qt/2,Oe=(_>0?me.right:me.left)+f*_}else{const Ue=r6(p,le.width),Ot=me.left+Ue,Qt=(me.right-Ue-Ot)/rt;Oe=Ot+Qt*Ye+Qt/2,Be=(_>0?me.bottom:me.top)+f*_}else Oe=x?(_>0?me.right:me.left)+f*_:me.centerX,Be=x?me.centerY:(_>0?me.bottom:me.top)+f*_;const Qe=x?(_>0?Te.left:Te.right)-f*_:Te.centerX,Je=x?Te.centerY:(_>0?Te.top:Te.bottom)-f*_;let Xe=Qe,dt=Je;g==="arrow"&&(x?Xe-=m*_:dt-=m*_);let et;if(s==="curved")if(x){const Ue=Oe+(Xe-Oe)/2;et=`M ${Oe} ${Be} C ${Ue} ${Be}, ${Ue} ${dt}, ${Xe} ${dt}`}else{const Ue=Be+(dt-Be)/2;et=`M ${Oe} ${Be} C ${Oe} ${Ue}, ${Xe} ${Ue}, ${Xe} ${dt}`}else if(h>0)et=A(Oe,Be,Xe,dt,h,x?"horizontal":"vertical");else if(x){const Ue=Oe+(Xe-Oe)/2;et=`M ${Oe} ${Be} L ${Ue} ${Be} L ${Ue} ${dt} L ${Xe} ${dt}`}else{const Ue=Be+(dt-Be)/2;et=`M ${Oe} ${Be} L ${Oe} ${Ue} L ${Xe} ${Ue} L ${Xe} ${dt}`}let Wt=S;if(a==="gradient"){const Ue=H(xe.data,xe.depth),Ot=H(he,ge),zt=Fe(w,Ue),Qt=Fe(w,Ot),Vn=`gradient-${xe.data._originalIndex.join("-")}-${$e.join("-")}`;pe.push(k("linearGradient",{id:Vn,x1:Oe,y1:Be,x2:Xe,y2:dt,gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0%",stopColor:zt}),y("stop",{offset:"100%",stopColor:Qt})]})),Wt=`url(#${Vn})`}const Gt=c==="dashed"?u:"";if(ye.deco.push(y(Pe,{d:et,stroke:Wt,strokeWidth:l,strokeDasharray:Gt,fill:"none"})),g==="arrow"){const Ue=a==="gradient"?Fe(w,we):Pt(w),Ot=x?[{x:Qe,y:Je},{x:Qe-m*_,y:Je-m/2},{x:Qe-m*_,y:Je+m/2}]:[{x:Qe,y:Je},{x:Qe-m/2,y:Je-m*_},{x:Qe+m/2,y:Je-m*_}];ye.deco.push(y(Yt,{points:Ot,fill:Ue,width:m,height:m}))}if(g==="dot"){const Ue=H(xe.data,xe.depth),Ot=a==="gradient"?Fe(w,Ue):Pt(w);ye.deco.push(y(Ze,{x:(x?_>0?me.right+f:me.left-f:Oe)-m,y:(x?Be:_>0?me.bottom+f:me.top-f)-m,width:m*2,height:m*2,fill:Ot}));const zt=a==="gradient"?Fe(w,we):Pt(w);ye.deco.push(y(Ze,{x:Qe-m,y:Je-m,width:m*2,height:m*2,fill:zt}))}}return ye},W=(ee,oe,se)=>{const ue=new Map;ee.forEach(fe=>{var ge;const he=fe.parent?fe.parent.data._originalIndex.join("-"):"root";((ge=ue.get(he))!=null?ge:ue.set(he,[]).get(he)).push(fe)});const pe=[];return ue.forEach(fe=>{if(fe.length<=1)return;const ge=fe.slice().sort((he,xe)=>x?E(he).y-E(xe).y:E(he).x-E(xe).x);if(ge.length!==0)for(let he=0;he<ge.length-1;he++){const xe=E(ge[he]),$e=E(ge[he+1]),Me=ge[he].data._originalIndex.slice(0,-1),Ce=ge[he].data._originalIndex.at(-1)+1;if(x){const Te=xe.x+se.x+(_>0?-oe.width-5:oe.width+5),Ne=(xe.y+$e.y)/2+se.y-oe.height/2;pe.push(y(ne,{indexes:[...Me,Ce],x:Te,y:Ne}))}else{const Te=xe.y+se.y-oe.height-5,Ne=(xe.x+$e.x)/2+se.x-oe.width/2;pe.push(y(ne,{indexes:[...Me,Ce],x:Ne,y:Te}))}}}),pe},F=M(r.items),X=t?y(t,{title:C,desc:P}):null,G=ae(y(ne,{indexes:[0]}));if(!F.length)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[X,y(Y,{children:y(je,{children:y(ne,{indexes:[0],x:-G.width/2,y:-G.height/2})})})]});const L=T(F),R=mf(L),{levelBounds:z,maxWidth:q,maxHeight:j}=N(R),U=yK().nodeSize(x?[j+o,q+i]:[q+o,j+i]).separation(()=>1)(R).descendants(),K=U.map(ee=>E(ee)),J=Math.min(...K.map(ee=>ee.x)),Z=Math.min(...K.map(ee=>ee.y)),ie={x:Math.max(0,-J+q/2),y:Math.max(0,-Z+G.height+10)},Q=[],te=[],ce=[],re=[];return U.forEach((ee,oe)=>{ee.data._flatIndex=oe;const{x:se,y:ue}=E(ee);ee.__layout={x:se,y:ue}}),U.forEach(ee=>{const{items:oe,btns:se,deco:ue}=D(ee,z,G,ie,re,U);Q.push(...oe),te.push(...se),ce.push(...ue)}),te.push(...W(U,G,ie)),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[X,k(Y,{children:[re.length>0&&y(Ke,{children:re}),y(Ct,{children:ce}),y(qe,{children:Q}),y(je,{children:te})]})]})};We("hierarchy-tree",{component:i6,composites:["title","item"]});const o6=e=>{const{Title:t,Item:n,data:r,gap:i=20,width:o,zigzag:s}=e,{title:a,desc:l,items:c=[]}=r,u=ae(y(ne,{indexes:[0]})),h=ae(y(n,{indexes:[0],data:r,datum:c[0]})),f=o||h.width,d=t?y(t,{title:a,desc:l}):null,p=[],g=[],m=(f-u.width)/2;if(c.forEach((v,b)=>{const w=(h.height+i)*b,x=[b];g.push(y(n,{indexes:x,datum:v,data:r,y:w,width:f,positionV:"middle",positionH:s?b%2===0?"normal":"flipped":"normal"})),p.push(y(nt,{indexes:x,x:-u.width-10,y:w+(h.height-u.height)/2}));const _=b===0?-u.height:w-i/2-u.height/2;p.push(y(ne,{indexes:x,x:m,y:_}))}),c.length>0){const b=(h.height+i)*(c.length-1)+h.height;p.push(y(ne,{indexes:[c.length],x:m,y:b}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,k(Y,{children:[y(qe,{children:g}),y(je,{children:p})]})]})};We("list-column",{component:o6,composites:["title","item"]});const s6=e=>{const{Title:t,Item:n,data:r,columns:i=3,gap:o=24,zigzag:s}=e,{title:a,desc:l,items:c=[]}=r,u=t?y(t,{title:a,desc:l}):null,h=ae(y(ne,{indexes:[0]})),f=ae(y(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),d=[],p=[],g=f.height+o,m=f.width+o,v=new Set;return c.forEach((b,w)=>{const x=Math.floor(w/i),_=w%i,C=_*m,P=x*g,S=[w];p.push(y(n,{indexes:S,datum:b,data:r,x:C,y:P,positionH:"center",positionV:s&&w%2===0?"normal":"flipped"})),d.push(y(nt,{indexes:S,x:C+(f.width-h.width)/2,y:P+f.height})),_<i-1&&d.push(y(ne,{indexes:[w+1],x:C+f.width+(o-h.width)/2,y:P+(f.height-h.height)/2})),_===0&&!v.has(x)&&(d.push(y(ne,{indexes:[w],x:C-o/2-h.width/2,y:P+(f.height-h.height)/2})),v.add(x)),(_===i-1||w===c.length-1)&&d.push(y(ne,{indexes:[w+1],x:C+f.width+o/2-h.width/2,y:P+(f.height-h.height)/2}))}),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,k(Y,{children:[y(qe,{children:p}),y(je,{children:d})]})]})};We("list-grid",{component:s6,composites:["title","item"]});const a6=e=>{const{Title:t,Item:n,data:r,gap:i=20,levelGap:o=20}=e,{title:s,desc:a,items:l=[]}=r,c=t?y(t,{title:s,desc:a}):null,u=ae(y(ne,{indexes:[0]})),h=ae(y(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),f=[],d=[],p=Math.ceil(Math.sqrt(l.length)),g=[];let m=l.length;for(let _=0;_<p;_++){const C=Math.min(_+1,m);if(g.push(C),m-=C,m<=0)break}let v=0;const b=Math.max(...g),x=(b*h.width+(b-1)*i)/2;return g.forEach((_,C)=>{const P=C*(h.height+o),S=_*h.width+(_-1)*i,$=x-S/2;for(let O=0;O<_&&v<l.length;O++){const M=$+O*(h.width+i),A=l[v],E=[v];d.push(y(n,{indexes:E,datum:A,data:r,x:M,y:P,positionH:"center"})),f.push(y(nt,{indexes:E,x:M+(h.width-u.width)/2,y:P+h.height})),O<_-1&&f.push(y(ne,{indexes:[v+1],x:M+h.width+(i-u.width)/2,y:P+(h.height-u.height)/2})),O===0&&f.push(y(ne,{indexes:[v],x:M-i/2-u.width/2,y:P+(h.height-u.height)/2})),O===_-1&&f.push(y(ne,{indexes:[v+1],x:M+h.width+i/2-u.width/2,y:P+(h.height-u.height)/2})),v++}}),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,k(Y,{children:[y(qe,{children:d}),y(je,{children:f})]})]})};We("list-pyramid",{component:a6,composites:["title","item"]});const l6=e=>{const{Title:t,Item:n,data:r,gap:i=20,zigzag:o}=e,{title:s,desc:a,items:l=[]}=r,c=t?y(t,{title:s,desc:a}):null,u=ae(y(ne,{indexes:[0]})),h=ae(y(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),f=[],d=[],p=(h.height-u.height)/2,g=h.height;if(l.forEach((m,v)=>{const b=(h.width+i)*v,w=[v];d.push(y(n,{indexes:w,datum:m,data:r,x:b,positionH:"center",positionV:o&&v%2===0?"normal":"flipped"})),f.push(y(nt,{indexes:w,x:b+(h.width-u.width)/2,y:g}));const x=v===0?-(i+u.width)/2:b-(i+u.width)/2;f.push(y(ne,{indexes:w,x,y:p}))}),l.length>0){const v=(h.width+i)*(l.length-1)+h.width+(i-u.width)/2;f.push(y(ne,{indexes:[l.length],x:v,y:p}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,k(Y,{children:[y(qe,{children:d}),y(je,{children:f})]})]})};We("list-row",{component:l6,composites:["title","item"]});var VJ=Object.defineProperty,c6=Object.getOwnPropertySymbols,GJ=Object.prototype.hasOwnProperty,YJ=Object.prototype.propertyIsEnumerable,u6=(e,t,n)=>t in e?VJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,XJ=(e,t)=>{for(var n in t||(t={}))GJ.call(t,n)&&u6(e,n,t[n]);if(c6)for(var n of c6(t))YJ.call(t,n)&&u6(e,n,t[n]);return e};const h6=e=>{const{Item:t,data:n,outerRadius:r=250,innerRadius:i=120,startAngle:o=-90,endAngle:s=270,gapAngle:a=1,options:l}=e,{title:c,items:u=[]}=n,h=Et(l.themeConfig),f=ae(y(ne,{indexes:[0]})),d=[],p=[],g=[],m=r+100,v=r+100,b=s-o,w=Math.abs(b-360)<.01,x=u.length>0?a*(w?u.length:u.length-1):0,_=b-x,C=u.length>0?_/u.length:0;if(u.forEach((E,I)=>{var T;const N=[I],H=o+(C+a)*I,D=H+C,F=a*Math.PI*r/180/i*(180/Math.PI),X=a,G=(H+X/2)*Math.PI/180,L=(D-X/2)*Math.PI/180,R=(H+F/2)*Math.PI/180,z=(D-F/2)*Math.PI/180,q=m+r*Math.cos(G),j=v+r*Math.sin(G),V=m+r*Math.cos(L),U=v+r*Math.sin(L),K=m+i*Math.cos(R),J=v+i*Math.sin(R),Z=m+i*Math.cos(z),ie=v+i*Math.sin(z),Q=C>180?1:0,te=`
107
97
  M ${q} ${j}
108
98
  A ${r} ${r} 0 ${Q} 1 ${V} ${U}
109
99
  L ${Z} ${ie}
110
100
  A ${i} ${i} 0 ${Q} 0 ${K} ${J}
111
101
  Z
112
- `.trim(),ce=Fe(l,N);g.push(y(Pe,{id:"shape-sector",d:te,fill:ce,width:r*2+200,height:r*2+200,"data-element-type":"shape"}));const ee=(H+C/2)*Math.PI/180,oe=(r+i)/2,se=r-i,ue=C*Math.PI/180,pe=oe*ue,fe=Math.min(pe*.8,se*.9),ge=Math.min(se*.9,pe*.8),he=ae(y(t,{indexes:[0],data:n,datum:u[0],positionH:"center",width:fe,height:ge})),xe=m+oe*Math.cos(ee)-he.width/2,$e=v+oe*Math.sin(ee)-he.height/2;p.push(y(t,{indexes:N,datum:E,data:n,x:xe,y:$e,positionH:"center",width:fe,height:ge,themeColors:aJ({},Et({colorBg:Fe(l,N),colorPrimary:((T=l.themeConfig)==null?void 0:T.colorBg)||"white"}))}));const Me=r+10,Ce=m+Me*Math.cos(ee)-f.width/2,Te=v+Me*Math.sin(ee)-f.height/2;if(d.push(y(nt,{indexes:N,x:Ce,y:Te})),_||A<u.length-1){const ze=(D+a/2)*Math.PI/180,ye=oe,_e=m+ye*Math.cos(ze)-f.width/2,Ie=v+ye*Math.sin(ze)-f.height/2;d.push(y(ne,{indexes:[A+1],x:_e,y:Ie}))}}),u.length>0){const A=(o-a/2)*Math.PI/180,T=(r+i)/2,N=m+T*Math.cos(A)-f.width/2,H=v+T*Math.sin(A)-f.height/2;d.push(y(ne,{indexes:[0],x:N,y:H}))}const P=i*.9;let O=m,$=v,S=P*1.4,M=P*1.4;if(!_){const A=(o+s)/2*Math.PI/180,T=P*.5;O=m+T*Math.cos(A),$=v+T*Math.sin(A);const N=b*Math.PI*T/180;S=Math.min(N*.8,P*1.4),M=Math.min(T*1.5,P*1.4)}let I="";if(_)I="";else{const E=o*Math.PI/180,A=s*Math.PI/180,T=m+P*Math.cos(E),N=v+P*Math.sin(E),H=m+P*Math.cos(A),D=v+P*Math.sin(A),B=b>180?1:0;I=`
102
+ `.trim(),ce=Fe(l,N);g.push(y(Pe,{id:"shape-sector",d:te,fill:ce,width:r*2+200,height:r*2+200,"data-element-type":"shape"}));const ee=(H+C/2)*Math.PI/180,oe=(r+i)/2,se=r-i,ue=C*Math.PI/180,pe=oe*ue,fe=Math.min(pe*.8,se*.9),ge=Math.min(se*.9,pe*.8),he=ae(y(t,{indexes:[0],data:n,datum:u[0],positionH:"center",width:fe,height:ge})),xe=m+oe*Math.cos(ee)-he.width/2,$e=v+oe*Math.sin(ee)-he.height/2;p.push(y(t,{indexes:N,datum:E,data:n,x:xe,y:$e,positionH:"center",width:fe,height:ge,themeColors:XJ({},Et({colorBg:Fe(l,N),colorPrimary:((T=l.themeConfig)==null?void 0:T.colorBg)||"white"}))}));const Me=r+10,Ce=m+Me*Math.cos(ee)-f.width/2,Te=v+Me*Math.sin(ee)-f.height/2;if(d.push(y(nt,{indexes:N,x:Ce,y:Te})),w||I<u.length-1){const ze=(D+a/2)*Math.PI/180,ye=oe,we=m+ye*Math.cos(ze)-f.width/2,Ae=v+ye*Math.sin(ze)-f.height/2;d.push(y(ne,{indexes:[I+1],x:we,y:Ae}))}}),u.length>0){const I=(o-a/2)*Math.PI/180,T=(r+i)/2,N=m+T*Math.cos(I)-f.width/2,H=v+T*Math.sin(I)-f.height/2;d.push(y(ne,{indexes:[0],x:N,y:H}))}const P=i*.9;let S=m,$=v,O=P*1.4,M=P*1.4;if(!w){const I=(o+s)/2*Math.PI/180,T=P*.5;S=m+T*Math.cos(I),$=v+T*Math.sin(I);const N=b*Math.PI*T/180;O=Math.min(N*.8,P*1.4),M=Math.min(T*1.5,P*1.4)}let A="";if(w)A="";else{const E=o*Math.PI/180,I=s*Math.PI/180,T=m+P*Math.cos(E),N=v+P*Math.sin(E),H=m+P*Math.cos(I),D=v+P*Math.sin(I),W=b>180?1:0;A=`
113
103
  M ${m} ${v}
114
104
  L ${T} ${N}
115
- A ${P} ${P} 0 ${B} 1 ${H} ${D}
105
+ A ${P} ${P} 0 ${W} 1 ${H} ${D}
116
106
  Z
117
- `.trim()}return k(Y,{id:"infographic-container",children:[y(Y,{children:g}),_?y(Ze,{id:"shape-center-circle",x:m-P,y:v-P,width:P*2,height:P*2,fill:h.colorPrimaryBg,fillOpacity:.5,"data-element-type":"shape"}):y(Pe,{id:"shape-center-sector",d:I,fill:h.colorPrimaryBg,fillOpacity:.5,width:r*2+200,height:r*2+200,"data-element-type":"shape"}),y(De,{x:O-S/2,y:$-M/2,width:S,height:M,alignHorizontal:"center",alignVertical:"middle",fontSize:24,fontWeight:"bold",fill:h.colorText,"data-element-type":Ge.Title,children:c}),y(qe,{children:p}),y(je,{children:d})]})};We("list-sector",{component:Z5,composites:["title","item"]});const Q5=e=>{const{Title:t,Item:n,data:r,columns:i=4,gap:o=20,stepOffset:s=40}=e,{title:a,desc:l,items:c=[]}=r,u=t?y(t,{title:a,desc:l}):null,h=ae(y(ne,{indexes:[0]})),f=ae(y(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),d=[],p=[],g=f.width+o;return c.forEach((m,v)=>{const b=v%i,_=Math.floor(v/i),x=b*g,w=_*(f.height+o),C=b*s,P=w+C,O=[v];p.push(y(n,{indexes:O,datum:m,data:r,x,y:P,positionH:"center"})),d.push(y(nt,{indexes:O,x:x+(f.width-h.width)/2,y:P+f.height+5}))}),c.forEach((m,v)=>{const b=v%i,_=Math.floor(v/i),x=b*g,w=_*(f.height+o),C=b*s,P=w+C;if(v===0&&d.push(y(ne,{indexes:[0],x:x-o/2-h.width/2,y:P+(f.height-h.height)/2})),b<i-1&&v<c.length-1){const O=Math.floor((v+1)/i);_===O&&d.push(y(ne,{indexes:[v+1],x:x+f.width+(o-h.width)/2,y:P+(f.height-h.height)/2}))}(b===i-1||v===c.length-1)&&d.push(y(ne,{indexes:[v+1],x:x+f.width+(o-h.width)/2,y:P+(f.height-h.height)/2}))}),c.length===0&&d.push(y(ne,{indexes:[0],x:(i-1)*g/2+(f.width-h.width)/2,y:0})),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,k(Y,{children:[y(qe,{children:p}),y(je,{children:d})]})]})};We("list-waterfall",{component:Q5,composites:["title","item"]});const lJ=6,bf=700,J5=330,e6=333,cJ={1:[{x:.5,y:.6,anchor:"top-right"}],2:[{x:.42,y:.5,anchor:"top-right"},{x:.72,y:.4,anchor:"bottom"}],3:[{x:.3,y:.5,anchor:"top-right"},{x:.48,y:.3,anchor:"bottom-left"},{x:.8,y:.75,anchor:"top-right"}],4:[{x:.3,y:.5,anchor:"top-right"},{x:.35,y:.2,anchor:"bottom-left"},{x:.65,y:.73,anchor:"top-right"},{x:.8,y:.52,anchor:"bottom-left"}],5:[{x:.19,y:.4,anchor:"top-right"},{x:.38,y:.2,anchor:"bottom"},{x:.52,y:.62,anchor:"top-right"},{x:.7,y:.43,anchor:"bottom"},{x:.82,y:.8,anchor:"top-right"}],6:[{x:.16,y:.35,anchor:"top-right"},{x:.38,y:.2,anchor:"bottom"},{x:.48,y:.54,anchor:"top-right"},{x:.55,y:.43,anchor:"bottom-left"},{x:.8,y:.75,anchor:"top-right"},{x:.86,y:.65,anchor:"bottom-left"}]},uJ={1:[{x:.5,y:.4,anchor:"bottom-right"}],2:[{x:.42,y:.5,anchor:"bottom-right"},{x:.72,y:.6,anchor:"top"}],3:[{x:.3,y:.5,anchor:"bottom-right"},{x:.48,y:.7,anchor:"top-left"},{x:.8,y:.25,anchor:"bottom-right"}],4:[{x:.3,y:.5,anchor:"bottom-right"},{x:.35,y:.8,anchor:"top-left"},{x:.65,y:.27,anchor:"bottom-right"},{x:.8,y:.48,anchor:"top-left"}],5:[{x:.19,y:.6,anchor:"bottom-right"},{x:.38,y:.8,anchor:"top"},{x:.52,y:.38,anchor:"bottom-right"},{x:.7,y:.57,anchor:"top"},{x:.82,y:.2,anchor:"bottom-right"}],6:[{x:.16,y:.65,anchor:"bottom-right"},{x:.38,y:.8,anchor:"top"},{x:.48,y:.46,anchor:"bottom-right"},{x:.55,y:.57,anchor:"top-left"},{x:.8,y:.25,anchor:"bottom-right"},{x:.86,y:.35,anchor:"top-left"}]},t6=(e,t,n)=>{const r=t[e];return r?r.map(i=>({x:i.x*bf,y:i.y*n,anchor:i.anchor})):null},hJ=(e,t)=>{const n=e.anchor||"center";let r=e.x-t.width/2,i=e.y-t.height/2,o=e.y;switch(n){case"top":r=e.x-t.width/2,i=e.y,o=e.y+t.height/2;break;case"bottom":r=e.x-t.width/2,i=e.y-t.height,o=e.y-t.height/2;break;case"top-left":r=e.x,i=e.y,o=e.y+t.height/2;break;case"top-right":r=e.x-t.width,i=e.y,o=e.y+t.height/2;break;case"bottom-left":r=e.x,i=e.y-t.height,o=e.y-t.height/2;break;case"bottom-right":r=e.x-t.width,i=e.y-t.height,o=e.y-t.height/2;break}return{x:r,y:i,centerY:o}},_f=(e,t)=>{const n=t.x-e.x,r=t.y-e.y,i=Math.hypot(n,r)||1;return{x:n/i,y:r/i}},n6=e=>{const{presetRatios:t,arrowHeight:n,Arrow:r}=e;return o=>{var s;const{Title:a,Item:l,data:c,options:u,itemGap:h=24}=o,{title:f,desc:d,items:p=[]}=c,g=Math.min(p.length,lJ),m=p.slice(0,g),v=a?y(a,{title:f,desc:d}):null,b=Ot(u),x=Et({colorPrimary:b},u).colorTextSecondary||"#737373",w=ae(y(ne,{indexes:[0]}));if(p.length===0){const N=(s=t6(1,t,n))==null?void 0:s[0];if(!N)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,y(Y,{children:y(r,{colorPrimary:b,colorShadow:x})})]});const H=N.x-w.width/2,D=N.y-w.height/2;return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,k(Y,{children:[y(r,{colorPrimary:b,colorShadow:x}),y(qe,{}),y(je,{children:y(ne,{indexes:[0],x:H,y:D})})]})]})}const C=ae(y(l,{indexes:[0],data:c,datum:p[0],positionH:"center"})),P=[],O=[],$=t6(g,t,n);if(!$)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,k(Y,{children:[y(r,{colorPrimary:b,colorShadow:x}),y(qe,{})]})]});const S=$,M=S.length>1?_f(S[0],S[S.length-1]):{x:1,y:0},I=S.length>1?_f(S[0],S[1]):M,E=S.length>1?_f(S[S.length-2],S[S.length-1]):M,A=Math.max(C.width,C.height)*.45+h,T=N=>{const{x:H,y:D,centerY:B}=hJ(N,C);return{x:H,y:D,centerY:B}};if(S.forEach((N,H)=>{const D=T(N),B=D.centerY<n/2,F=[H],X=m[H];if(!X)return;O.push(y(l,{indexes:F,datum:X,data:c,x:D.x,y:D.y,positionH:"center"}));const G=D.x+C.width-w.width/2,L=B?D.y-w.height/2:D.y+C.height-w.height/2;P.push(y(nt,{indexes:F,x:G,y:L}))}),S.length>0){const N=S[0],H=N.x-I.x*A-w.width/2,D=N.y-I.y*A-w.height/2;P.push(y(ne,{indexes:[0],x:H,y:D}));for(let G=0;G<S.length-1;G++){const L=S[G],R=S[G+1],z=(L.x+R.x)/2,q=(L.y+R.y)/2,j=z-w.width/2,V=q-w.height/2;P.push(y(ne,{indexes:[G+1],x:j,y:V}))}const B=S[S.length-1],F=B.x+E.x*A-w.width/2,X=B.y+E.y*A-w.height/2;P.push(y(ne,{indexes:[g],x:F,y:X}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,k(Y,{children:[y(r,{colorPrimary:b,colorShadow:x}),y(qe,{children:O}),y(je,{children:P})]})]})}},fJ=({colorPrimary:e="#17CA2C",colorShadow:t="#737373"})=>{const n=be(e).darken(20).toHexString();return k(Y,{width:bf,height:J5,children:[y("path",{d:"M228.864 159.446C230.266 159.446 231.623 158.768 232.689 157.535L274.263 110.162L265.717 102.923L227.311 148.082C225.977 149.623 224.281 150.47 222.529 150.47H175.404L182.03 158.367C182.795 159.445 182.795 159.446 183.734 159.446H228.864Z",fill:t}),y("path",{d:"M462.869 234.92C464.271 234.92 465.628 234.242 466.695 233.01L508.268 185.636L499.722 178.397L461.316 223.557C459.983 225.098 458.287 225.945 456.534 225.945H409.409L416.035 233.841C416.8 234.92 416.8 234.92 417.74 234.92H462.869Z",fill:t}),y("path",{d:"M697.005 330C698.783 330 700 328.82 700 327.001V256.638C700 254.857 697.848 253.965 696.591 255.225L693.409 258.411V320.402C693.409 322.058 692.069 323.401 690.414 323.401H630.718L627.536 326.587C626.278 327.847 627.169 330 628.947 330H697.005Z",fill:t}),y("path",{d:"M689.642 321.89C690.744 321.89 691.638 320.995 691.638 319.891V250.743C691.638 248.962 689.488 248.07 688.23 249.329L662.647 274.947L520.987 153.863C519.541 152.627 517.703 151.948 515.802 151.948H469.518C470.236 151.949 470.956 152.206 471.53 152.729L498.163 176.978L498.13 177.018L639.84 297.784L619.174 318.477C617.916 319.737 618.807 321.89 620.586 321.89H689.642Z",fill:e}),y("path",{d:"M429.279 198.995L467.208 153.03C468.3 151.716 470.268 151.579 471.531 152.729L498.163 176.978L460.69 221.107C459.173 222.894 456.946 223.924 454.6 223.924H408.473C409.366 223.924 410.252 223.527 410.845 222.764L429.279 198.995Z",fill:n}),y("path",{d:"M408.473 223.924H408.314L408.318 223.92C408.369 223.922 408.421 223.924 408.473 223.924Z",fill:n}),y("path",{d:"M406.524 223.203C407.826 224.318 409.796 224.116 410.845 222.761L429.279 198.932L287.411 77.8866C285.964 76.6523 284.125 75.9742 282.223 75.9742H234.606L234.625 75.9907C235.429 75.9118 236.263 76.1557 236.915 76.7378L263.662 100.621L263.546 100.758L406.524 223.203Z",fill:e}),y("path",{d:"M236.914 76.7386C235.651 75.6097 233.707 75.7513 232.621 77.0513L194.557 123.104L175.644 146.821C175.076 147.535 174.25 147.917 173.409 147.947L173.407 147.95H219.923C222.271 147.95 224.499 146.915 226.017 145.122L263.645 100.649L236.914 76.7386Z",fill:n}),y("path",{d:"M175.648 146.816C174.589 148.145 172.637 148.329 171.348 147.221L4.09334 3.51697C2.68586 2.30767 3.54106 0 5.39671 0H47.5805C49.4864 0 51.3297 0.680433 52.7785 1.91877L194.557 123.104L175.648 146.816Z",fill:e})]})},dJ=({colorPrimary:e="#17CA2C",colorShadow:t="#737373"})=>{const n=be(e).darken(20).toHexString();return k(Y,{width:bf,height:e6,children:[y("path",{d:"M19.0526 324L12.6762 329.482C11.2703 330.691 12.1234 333 13.976 333H56.1578C58.058 333 59.896 332.321 61.3413 331.085L201.854 210.901L194.249 201.693L54.0527 321.606C52.246 323.151 49.9486 324 47.5732 324H19.0526Z",fill:t}),y("path",{d:"M234.587 248L241.131 255.922C241.656 256.552 242.382 256.909 243.134 256.983L243.115 257H290.716C292.618 257 294.457 256.322 295.903 255.087L437.091 134.536L429.305 125.5L288.613 245.609C286.805 247.153 284.507 248 282.132 248H234.587Z",fill:t}),y("path",{d:"M461.123 162.429L475.642 179.918C476.237 180.635 477.092 181.001 477.951 181H524.22C526.121 181 527.959 180.321 529.404 179.085L670.786 58.1578L662.326 49.6809L522.115 169.606C520.309 171.151 518.011 172 515.636 172H469.369L461.123 162.429Z",fill:t}),y("path",{d:"M687.912 74.8875C690.374 75.9052 693.412 74.1668 693.412 71.1716V11H698.004C699.106 11 700 11.8954 700 13V82.1716C700 83.9534 697.85 84.8457 696.593 83.5858L687.912 74.8875Z",fill:t}),y("path",{d:"M689.419 0C690.522 0 691.415 0.895432 691.415 2V71.1716C691.415 72.9534 689.265 73.8457 688.008 72.5858L662.433 46.9598L520.819 168.085C519.374 169.321 517.536 170 515.636 170H469.367C470.084 169.999 470.804 169.742 471.379 169.219L498.003 144.961L497.969 144.922L639.634 24.115L618.975 3.41421C617.717 2.15428 618.608 0 620.386 0H689.419Z",fill:e}),y("path",{d:"M429.141 122.937L467.058 168.918C468.149 170.232 470.116 170.369 471.378 169.219L498.003 144.961L460.542 100.818C459.025 99.0305 456.798 98 454.453 98H408.341C409.234 98.0001 410.12 98.3968 410.712 99.1606L429.141 122.937Z",fill:n}),y("path",{d:"M408.341 98H408.183L408.186 98.004C408.237 98.0013 408.289 98 408.341 98Z",fill:n}),y("path",{d:"M406.393 98.721C407.695 97.606 409.664 97.8077 410.712 99.1633L429.141 123L287.318 244.087C285.872 245.322 284.033 246 282.132 246H234.53L234.55 245.983C235.353 246.062 236.187 245.818 236.839 245.236L263.577 221.345L263.461 221.208L406.393 98.721Z",fill:e}),y("path",{d:"M236.837 245.235C235.575 246.365 233.631 246.223 232.546 244.922L194.494 198.854L175.588 175.129C175.019 174.415 174.194 174.032 173.353 174.002L173.351 174H219.852C222.199 174 224.427 175.035 225.944 176.829L263.56 221.317L236.837 245.235Z",fill:n}),y("path",{d:"M175.593 175.135C174.533 173.805 172.581 173.622 171.291 174.73L4.09013 318.484C2.68329 319.693 3.53868 322 5.394 322H47.5627C49.4695 322 51.3136 321.319 52.7627 320.08L194.494 198.854L175.593 175.135Z",fill:e})]})},r6=n6({arrowHeight:J5,presetRatios:cJ,Arrow:fJ}),i6=n6({arrowHeight:e6,presetRatios:uJ,Arrow:dJ});We("list-zigzag-down",{component:r6,composites:["title","item"]}),We("list-zigzag-up",{component:i6,composites:["title","item"]});const o6=e=>{const{Title:t,Item:n,data:r,radius:i=150,startMode:o="top"}=e,{title:s,desc:a,items:l=[]}=r,c=t?y(t,{title:s,desc:a}):null,u=ae(y(ne,{indexes:[0]})),h=ae(y(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),f=[],d=[];if(l.length===0)return f.push(y(ne,{indexes:[0],x:-u.width/2,y:-u.height/2})),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,y(Y,{children:y(je,{children:f})})]});const p=Math.max(h.width,h.height),g=Math.max(i,p),m=g+p/2,v=l.map(()=>{const C=h.width,P=h.height;return(C+P)/2}),b=v.reduce((C,P)=>C+P,0);let _;o==="equal"?_=-Math.PI/2:_=-Math.PI/2+2*Math.PI/l.length/2;let x=_;l.forEach((C,P)=>{const O=v[P]/b*2*Math.PI,$=x+O/2;x+=O;const S=m+g*Math.cos($)-h.width/2,M=m+g*Math.sin($)-h.height/2;d.push(y(n,{indexes:[P],datum:C,data:r,x:S,y:M}));const I=g-Math.max(h.width,h.height)/2-20,E=m+I*Math.cos($)-u.width/2,A=m+I*Math.sin($)-u.height/2;f.push(y(nt,{indexes:[P],x:E,y:A}))});const w=g-Math.max(h.width,h.height)/2-20;if(l.length>0)for(let C=0;C<l.length;C++){const P=C*2*Math.PI/l.length-Math.PI/2,O=(C+1)%l.length*2*Math.PI/l.length-Math.PI/2;let $;if(C===l.length-1){const I=O+2*Math.PI-P;$=P+I/2}else $=(P+O)/2;const S=m+w*Math.cos($)-u.width/2,M=m+w*Math.sin($)-u.height/2;f.push(y(ne,{indexes:[C+1],x:S,y:M}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,k(Y,{children:[y(qe,{children:d}),y(je,{children:f})]})]})};We("relation-circle",{component:o6,composites:["title","item"]});function Yo(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(r.next(u))}catch(h){s(h)}}function l(u){try{c(r.throw(u))}catch(h){s(h)}}function c(u){u.done?o(u.value):i(u.value).then(a,l)}c((r=r.apply(e,[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const pJ={abs:Math.abs,ceil:Math.ceil,floor:Math.floor,max:Math.max,min:Math.min,round:Math.round,sqrt:Math.sqrt,pow:Math.pow};class Tt extends Error{constructor(t,n,r){super(t),this.position=n,this.token=r,this.name="ExpressionError"}}var He;(function(e){e[e.STRING=0]="STRING",e[e.NUMBER=1]="NUMBER",e[e.BOOLEAN=2]="BOOLEAN",e[e.NULL=3]="NULL",e[e.IDENTIFIER=4]="IDENTIFIER",e[e.OPERATOR=5]="OPERATOR",e[e.FUNCTION=6]="FUNCTION",e[e.DOT=7]="DOT",e[e.BRACKET_LEFT=8]="BRACKET_LEFT",e[e.BRACKET_RIGHT=9]="BRACKET_RIGHT",e[e.PAREN_LEFT=10]="PAREN_LEFT",e[e.PAREN_RIGHT=11]="PAREN_RIGHT",e[e.COMMA=12]="COMMA",e[e.QUESTION=13]="QUESTION",e[e.COLON=14]="COLON",e[e.DOLLAR=15]="DOLLAR"})(He||(He={}));const gJ=new Set([32,9,10,13]),mJ=new Set([43,45,42,47,37,33,38,124,61,60,62]),yJ=new Map([["true",He.BOOLEAN],["false",He.BOOLEAN],["null",He.NULL]]),wf=new Map([["===",!0],["!==",!0],["<=",!0],[">=",!0],["&&",!0],["||",!0],["+",!0],["-",!0],["*",!0],["/",!0],["%",!0],["!",!0],["<",!0],[">",!0]]),vJ=new Map([[46,He.DOT],[91,He.BRACKET_LEFT],[93,He.BRACKET_RIGHT],[40,He.PAREN_LEFT],[41,He.PAREN_RIGHT],[44,He.COMMA],[63,He.QUESTION],[58,He.COLON],[36,He.DOLLAR]]),s6=new Map;for(const[e,t]of vJ.entries())s6.set(e,{type:t,value:String.fromCharCode(e)});function Xo(e){return e>=48&&e<=57}function xf(e){return e>=97&&e<=122||e>=65&&e<=90||e===95}function a6(e){return xf(e)||Xo(e)}function bJ(e){return mJ.has(e)}var St;(function(e){e[e.Program=0]="Program",e[e.Literal=1]="Literal",e[e.Identifier=2]="Identifier",e[e.MemberExpression=3]="MemberExpression",e[e.CallExpression=4]="CallExpression",e[e.BinaryExpression=5]="BinaryExpression",e[e.UnaryExpression=6]="UnaryExpression",e[e.ConditionalExpression=7]="ConditionalExpression"})(St||(St={}));const _J=new Map([["||",2],["&&",3],["===",4],["!==",4],[">",5],[">=",5],["<",5],["<=",5],["+",6],["-",6],["*",7],["/",7],["%",7],["!",8]]),wJ={type:St.Literal,value:null},xJ={type:St.Literal,value:!0},CJ={type:St.Literal,value:!1},PJ=e=>{let t=0;const n=e.length,r=()=>t>=n?null:e[t],i=()=>e[t++],o=h=>{const f=r();return f!==null&&f.type===h},s=h=>h.type===He.OPERATOR?_J.get(h.value)||-1:h.type===He.DOT||h.type===He.BRACKET_LEFT?9:h.type===He.QUESTION?1:-1,a=h=>{let f,d;if(i().type===He.DOT){if(!o(He.IDENTIFIER)){const g=r();throw new Tt("Expected property name",t,g?g.value:"<end of input>")}const p=i();f={type:St.Identifier,name:p.value},d=!1}else{if(f=c(0),!o(He.BRACKET_RIGHT)){const p=r();throw new Tt("Expected closing bracket",t,p?p.value:"<end of input>")}i(),d=!0}return{type:St.MemberExpression,object:h,property:f,computed:d}},l=()=>{const h=r();if(!h)throw new Tt("Unexpected end of input",t,"<end of input>");if(h.type===He.OPERATOR&&(h.value==="!"||h.value==="-")){i();const f=l();return{type:St.UnaryExpression,operator:h.value,argument:f,prefix:!0}}switch(h.type){case He.NUMBER:return i(),{type:St.Literal,value:Number(h.value)};case He.STRING:return i(),{type:St.Literal,value:h.value};case He.BOOLEAN:return i(),h.value==="true"?xJ:CJ;case He.NULL:return i(),wJ;case He.IDENTIFIER:return i(),{type:St.Identifier,name:h.value};case He.FUNCTION:return(()=>{const f=i(),d=[];if(!o(He.PAREN_LEFT)){const p=r();throw new Tt("Expected opening parenthesis after function name",t,p?p.value:"<end of input>")}for(i();;){if(o(He.PAREN_RIGHT)){i();break}if(!r()){const g=r();throw new Tt("Expected closing parenthesis",t,g?g.value:"<end of input>")}if(d.length>0){if(!o(He.COMMA)){const g=r();throw new Tt("Expected comma between function arguments",t,g?g.value:"<end of input>")}i()}const p=c(0);d.push(p)}return{type:St.CallExpression,callee:{type:St.Identifier,name:f.value},arguments:d}})();case He.PAREN_LEFT:{i();const f=c(0);if(!o(He.PAREN_RIGHT)){const d=r();throw new Tt("Expected closing parenthesis",t,d?d.value:"<end of input>")}return i(),f}default:throw new Tt(`Unexpected token: ${h.type}`,t,h.value)}},c=(h=0)=>{let f=l();for(;t<n;){const d=e[t],p=s(d);if(p<=h)break;if(d.type!==He.QUESTION)if(d.type!==He.OPERATOR){if(d.type!==He.DOT&&d.type!==He.BRACKET_LEFT)break;f=a(f)}else{i();const g=c(p);f={type:St.BinaryExpression,operator:d.value,left:f,right:g}}else{i();const g=c(0);if(!o(He.COLON)){const v=r();throw new Tt("Expected : in conditional expression",t,v?v.value:"<end of input>")}i();const m=c(0);f={type:St.ConditionalExpression,test:f,consequent:g,alternate:m}}}return f},u=c();return{type:St.Program,body:u}},OJ=(e,t,n)=>{let r=t;n&&(r=zt(ht({},t),{context:ht(ht({},t.context),n)}));const i=o=>{switch(o.type){case St.Literal:return(s=>s.value)(o);case St.Identifier:return(s=>{if(!(s.name in r.context))throw new Tt(`Undefined variable: ${s.name}`);return r.context[s.name]})(o);case St.MemberExpression:return(s=>{const a=i(s.object);if(a==null)throw new Tt("Cannot access property of null or undefined");return a[s.computed?i(s.property):s.property.name]})(o);case St.CallExpression:return(s=>{const a=r.functions[s.callee.name];if(!a)throw new Tt(`Undefined function: ${s.callee.name}`);return a(...s.arguments.map((l=>i(l))))})(o);case St.BinaryExpression:return(s=>{if(s.operator==="&&"){const c=i(s.left);return c&&i(s.right)}if(s.operator==="||")return i(s.left)||i(s.right);const a=i(s.left),l=i(s.right);switch(s.operator){case"+":return a+l;case"-":return a-l;case"*":return a*l;case"/":return a/l;case"%":return a%l;case"===":return a===l;case"!==":return a!==l;case">":return a>l;case">=":return a>=l;case"<":return a<l;case"<=":return a<=l;default:throw new Tt(`Unknown operator: ${s.operator}`)}})(o);case St.UnaryExpression:return(s=>{const a=i(s.argument);if(s.prefix)switch(s.operator){case"!":return!a;case"-":if(typeof a!="number")throw new Tt(`Cannot apply unary - to non-number: ${a}`);return-a;default:throw new Tt(`Unknown operator: ${s.operator}`)}throw new Tt(`Postfix operators are not supported: ${s.operator}`)})(o);case St.ConditionalExpression:return(s=>{const a=i(s.test);return i(a?s.consequent:s.alternate)})(o);default:throw new Tt(`Evaluation error: Unsupported node type: ${o.type}`)}};return i(e.body)};function l6(e){const t=(i=>{const o=i,s=o.length,a=new Array(Math.ceil(s/3));let l=0,c=0;function u(m){const v=c+1;c++;let b="",_=!1;for(;c<s;){const x=o.charCodeAt(c);if(x===m)return _||(b=o.substring(v,c)),c++,{type:He.STRING,value:b};x===92?(_||(b=o.substring(v,c),_=!0),c++,b+=o[c]):_&&(b+=o[c]),c++}throw new Tt(`Unterminated string starting with ${String.fromCharCode(m)}`,c,o.substring(Math.max(0,c-10),c))}function h(){const m=c;for(o.charCodeAt(c)===45&&c++;c<s&&Xo(o.charCodeAt(c));)c++;if(c<s&&o.charCodeAt(c)===46)for(c++;c<s&&Xo(o.charCodeAt(c));)c++;const v=o.slice(m,c);return{type:He.NUMBER,value:v}}function f(){c++;const m=c;if(c<s&&xf(o.charCodeAt(c)))for(c++;c<s&&a6(o.charCodeAt(c));)c++;const v=o.slice(m,c);return{type:He.FUNCTION,value:v}}function d(){const m=c++;for(;c<s&&a6(o.charCodeAt(c));)c++;const v=o.slice(m,c),b=yJ.get(v);return b?{type:b,value:v}:{type:He.IDENTIFIER,value:v}}function p(){if(c+2<s){const v=o.substring(c,c+3);if(wf.has(v))return c+=3,{type:He.OPERATOR,value:v}}if(c+1<s){const v=o.substring(c,c+2);if(wf.has(v))return c+=2,{type:He.OPERATOR,value:v}}const m=o[c];if(wf.has(m))return c++,{type:He.OPERATOR,value:m};throw new Tt(`Unknown operator at position ${c}: ${o.substring(c,c+1)}`,c,o.substring(Math.max(0,c-10),c))}for(;c<s;){const m=o.charCodeAt(c);if(g=m,gJ.has(g)){c++;continue}const v=s6.get(m);if(v)a[l++]=v,c++;else if(m!==34&&m!==39)if(Xo(m)||m===45&&c+1<s&&Xo(o.charCodeAt(c+1)))a[l++]=h();else if(m!==64)if(xf(m))a[l++]=d();else{if(!bJ(m))throw new Tt(`Unexpected character: ${o[c]}`,c,o.substring(Math.max(0,c-10),c));a[l++]=p()}else a[l++]=f();else a[l++]=u(m)}var g;return l===a.length?a:a.slice(0,l)})(e),n=PJ(t),r=((i={},o={})=>({context:i,functions:o}))({},pJ);return(i={})=>OJ(n,r,i)}function SJ(e,t={}){return l6(e)(t)}function $J(e,t){if(typeof e!="string")return;const n=e.trim();if(n)try{return l6(n),SJ(n,t)}catch(r){return}}function Ri(e){return typeof e=="number"}function c6(e){if(!e)return[0,0,0];if(Ri(e))return[e,e,e];if(Array.isArray(e)&&e.length===0)return[0,0,0];const[t,n=t,r=t]=e;return[t,n,r]}function EJ(e){return Ri(e)?!0:Array.isArray(e)?e.every(t=>Ri(t)):!1}function hn(e){return e==null}function u6(e){return typeof e=="string"}function h6(e){return typeof e=="function"}function Cf(e,t){if(typeof e=="function")return e;if(typeof e=="string"){const n=e;return(...r)=>{const i={};for(let o=0;o<t.length;o++)i[t[o]]=r[o];return $J(n,i)}}return()=>e}function Pf(e,t,n="node"){if(hn(e))return()=>t;if(u6(e)){const r=Cf(e,[n]);return i=>{const o=r(i);return Ri(o)?o:t}}return h6(e)?e:Ri(e)?()=>e:()=>t}function f6(e,t=10,n="node"){if(hn(e))return()=>t;if(u6(e)){const r=Cf(e,[n]);return i=>{const o=r(i);return EJ(o)?o:t}}return h6(e)?e:Ri(e)?()=>e:Array.isArray(e)?()=>e:()=>t}function MJ(e){var t;return[e.x,e.y,(t=e.z)!==null&&t!==void 0?t:0]}class IJ{constructor(t,n={}){this.edgeIdCounter=new Map,this.nodeMap=RJ(t.nodes,n.node),this.edgeMap=kJ(t.edges||[],n.edge,this.getEdgeId.bind(this))}data(){return{nodes:this.nodeMap,edges:this.edgeMap}}replace(t){this.nodeMap=t.nodes,this.edgeMap=t.edges,this.clearCache()}nodes(){return Array.from(this.nodeMap.values())}node(t){return this.nodeMap.get(t)}nodeAt(t){this.indexNodeCache||this.buildNodeIndexCache();const n=this.indexNodeCache.get(t);return n?this.nodeMap.get(n):void 0}nodeIndexOf(t){var n;return this.nodeIndexCache||this.buildNodeIndexCache(),(n=this.nodeIndexCache.get(t))!==null&&n!==void 0?n:-1}firstNode(){return this.nodeMap.values().next().value}forEachNode(t){let n=0;this.nodeMap.forEach(r=>t(r,n++))}originalNode(t){const n=this.nodeMap.get(t);return n==null?void 0:n._original}nodeCount(){return this.nodeMap.size}edges(){return Array.from(this.edgeMap.values())}edge(t){return this.edgeMap.get(t)}firstEdge(){return this.edgeMap.values().next().value}forEachEdge(t){let n=0;this.edgeMap.forEach(r=>t(r,n++))}originalEdge(t){const n=this.edgeMap.get(t);return n==null?void 0:n._original}edgeCount(){return this.edgeMap.size}getEdgeId(t){if(t.id)return t.id;const n=`${t.source}-${t.target}`,r=this.edgeIdCounter.get(n)||0,i=r===0?n:`${n}-${r}`;return this.edgeIdCounter.set(n,r+1),i}degree(t,n="both"){this.degreeCache||this.buildDegreeCache();const r=this.degreeCache.get(t);return r?r[n]:0}neighbors(t,n="both"){if((!this.outAdjacencyCache||!this.inAdjacencyCache)&&this.buildAdjacencyCache(),n==="out")return Array.from(this.outAdjacencyCache.get(t)||[]);if(n==="in")return Array.from(this.inAdjacencyCache.get(t)||[]);if(this.bothAdjacencyCache)return Array.from(this.bothAdjacencyCache.get(t)||[]);const r=this.inAdjacencyCache.get(t),i=this.outAdjacencyCache.get(t);if(!r&&!i)return[];if(!r)return Array.from(i);if(!i)return Array.from(r);const o=new Set;return r.forEach(s=>o.add(s)),i.forEach(s=>o.add(s)),Array.from(o)}successors(t){return this.neighbors(t,"out")}predecessors(t){return this.neighbors(t,"in")}setNodeOrder(t){const n=new Map;for(const r of t)n.set(r.id,r);this.nodeMap=n,this.nodeIndexCache=void 0,this.indexNodeCache=void 0}clearCache(){this.degreeCache=void 0,this.inAdjacencyCache=void 0,this.outAdjacencyCache=void 0,this.bothAdjacencyCache=void 0,this.nodeIndexCache=void 0,this.indexNodeCache=void 0}buildDegreeCache(){this.degreeCache=new Map;for(const t of this.edges()){const{source:n,target:r}=t;if(t.source===t.target)continue;this.degreeCache.has(n)||this.degreeCache.set(n,{in:0,out:0,both:0});const i=this.degreeCache.get(t.source);i&&(i.out++,i.both++),this.degreeCache.has(r)||this.degreeCache.set(r,{in:0,out:0,both:0});const o=this.degreeCache.get(t.target);o&&(o.in++,o.both++)}}buildAdjacencyCache(){this.inAdjacencyCache=new Map,this.outAdjacencyCache=new Map;for(const t of this.edges())!this.nodeMap.has(t.source)||!this.nodeMap.has(t.target)||(this.outAdjacencyCache.has(t.source)||this.outAdjacencyCache.set(t.source,new Set),this.outAdjacencyCache.get(t.source).add(t.target),this.inAdjacencyCache.has(t.target)||this.inAdjacencyCache.set(t.target,new Set),this.inAdjacencyCache.get(t.target).add(t.source))}buildNodeIndexCache(){this.nodeIndexCache=new Map,this.indexNodeCache=new Map;let t=0;this.nodeMap.forEach((n,r)=>{this.nodeIndexCache.set(r,t),this.indexNodeCache.set(t,r),t++})}destroy(){this.clearCache(),this.nodeMap.clear(),this.edgeMap.clear(),this.edgeIdCounter.clear()}}const AJ=["id","x","y","z","vx","vy","vz","fx","fy","fz","parentId"],TJ=["id","source","target","points"];function RJ(e,t){if(!e)throw new Error("Data.nodes is required");const n=new Map;for(const r of e){const i={_original:r};for(const o of AJ){const s=r[o];hn(s)||(i[o]=s)}if(t){const o=t(r);for(const s in o){const a=o[s];hn(a)||(i[s]=a)}}if(hn(i.id))throw new Error("Node is missing id field");n.set(i.id,i)}return n}function kJ(e,t,n){const r=new Map;for(const i of e){const o={_original:i};for(const s of TJ){const a=i[s];hn(a)||(o[s]=a)}if(t){const s=t(i);for(const a in s){const l=s[a];hn(l)||(o[a]=l)}}if(hn(o.source)||hn(o.target))throw new Error("Edge is missing source or target field");hn(o.id)&&(o.id=n==null?void 0:n(i)),r.set(o.id,o)}return r}class LJ{constructor(t,n={}){this.graph=new IJ(t,n)}export(){return this.graph.data()}replace(t){this.graph.replace(t)}forEachNode(t){this.graph.forEachNode(t)}forEachEdge(t){this.graph.forEachEdge((n,r)=>{n.sourceNode=this.graph.node(n.source),n.targetNode=this.graph.node(n.target),t(n,r)})}destroy(){this.graph.destroy()}}const d6=Symbol("Comlink.proxy"),NJ=Symbol("Comlink.endpoint"),zJ=Symbol("Comlink.releaseProxy"),Of=Symbol("Comlink.finalizer"),gl=Symbol("Comlink.thrown"),p6=e=>typeof e=="object"&&e!==null||typeof e=="function",DJ={canHandle:e=>p6(e)&&e[d6],serialize(e){const{port1:t,port2:n}=new MessageChannel;return m6(e,t),[n,[n]]},deserialize(e){return e.start(),v6(e)}},qJ={canHandle:e=>p6(e)&&gl in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},g6=new Map([["proxy",DJ],["throw",qJ]]);function HJ(e,t){for(const n of e)if(t===n||n==="*"||n instanceof RegExp&&n.test(t))return!0;return!1}function m6(e,t=globalThis,n=["*"]){t.addEventListener("message",function r(i){if(!i||!i.data)return;if(!HJ(n,i.origin)){console.warn(`Invalid origin '${i.origin}' for comlink proxy`);return}const{id:o,type:s,path:a}=Object.assign({path:[]},i.data),l=(i.data.argumentList||[]).map(Yr);let c;try{const u=a.slice(0,-1).reduce((f,d)=>f[d],e),h=a.reduce((f,d)=>f[d],e);switch(s){case"GET":c=h;break;case"SET":u[a.slice(-1)[0]]=Yr(i.data.value),c=!0;break;case"APPLY":c=h.apply(u,l);break;case"CONSTRUCT":{const f=new h(...l);c=GJ(f)}break;case"ENDPOINT":{const{port1:f,port2:d}=new MessageChannel;m6(e,d),c=VJ(f,[f])}break;case"RELEASE":c=void 0;break;default:return}}catch(u){c={value:u,[gl]:0}}Promise.resolve(c).catch(u=>({value:u,[gl]:0})).then(u=>{const[h,f]=bl(u);t.postMessage(Object.assign(Object.assign({},h),{id:o}),f),s==="RELEASE"&&(t.removeEventListener("message",r),y6(t),Of in e&&typeof e[Of]=="function"&&e[Of]())}).catch(u=>{const[h,f]=bl({value:new TypeError("Unserializable return value"),[gl]:0});t.postMessage(Object.assign(Object.assign({},h),{id:o}),f)})}),t.start&&t.start()}function jJ(e){return e.constructor.name==="MessagePort"}function y6(e){jJ(e)&&e.close()}function v6(e,t){const n=new Map;return e.addEventListener("message",function(i){const{data:o}=i;if(!o||!o.id)return;const s=n.get(o.id);if(s)try{s(o)}finally{n.delete(o.id)}}),Sf(e,n,[],t)}function ml(e){if(e)throw new Error("Proxy has been released and is not useable")}function b6(e){return ki(e,new Map,{type:"RELEASE"}).then(()=>{y6(e)})}const yl=new WeakMap,vl="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(yl.get(e)||0)-1;yl.set(e,t),t===0&&b6(e)});function FJ(e,t){const n=(yl.get(t)||0)+1;yl.set(t,n),vl&&vl.register(e,t,e)}function BJ(e){vl&&vl.unregister(e)}function Sf(e,t,n=[],r=function(){}){let i=!1;const o=new Proxy(r,{get(s,a){if(ml(i),a===zJ)return()=>{BJ(o),b6(e),t.clear(),i=!0};if(a==="then"){if(n.length===0)return{then:()=>o};const l=ki(e,t,{type:"GET",path:n.map(c=>c.toString())}).then(Yr);return l.then.bind(l)}return Sf(e,t,[...n,a])},set(s,a,l){ml(i);const[c,u]=bl(l);return ki(e,t,{type:"SET",path:[...n,a].map(h=>h.toString()),value:c},u).then(Yr)},apply(s,a,l){ml(i);const c=n[n.length-1];if(c===NJ)return ki(e,t,{type:"ENDPOINT"}).then(Yr);if(c==="bind")return Sf(e,t,n.slice(0,-1));const[u,h]=_6(l);return ki(e,t,{type:"APPLY",path:n.map(f=>f.toString()),argumentList:u},h).then(Yr)},construct(s,a){ml(i);const[l,c]=_6(a);return ki(e,t,{type:"CONSTRUCT",path:n.map(u=>u.toString()),argumentList:l},c).then(Yr)}});return FJ(o,e),o}function WJ(e){return Array.prototype.concat.apply([],e)}function _6(e){const t=e.map(bl);return[t.map(n=>n[0]),WJ(t.map(n=>n[1]))]}const w6=new WeakMap;function VJ(e,t){return w6.set(e,t),e}function GJ(e){return Object.assign(e,{[d6]:!0})}function bl(e){for(const[t,n]of g6)if(n.canHandle(e)){const[r,i]=n.serialize(e);return[{type:"HANDLER",name:t,value:r},i]}return[{type:"RAW",value:e},w6.get(e)||[]]}function Yr(e){switch(e.type){case"HANDLER":return g6.get(e.name).deserialize(e.value);case"RAW":return e.value}}function ki(e,t,n,r){return new Promise(i=>{const o=YJ();t.set(o,i),e.start&&e.start(),e.postMessage(Object.assign({id:o},n),r)})}function YJ(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}class XJ{constructor(){this.worker=null,this.workerApi=null}execute(t,n,r){return Yo(this,void 0,void 0,function*(){if(this.worker||(yield this.initWorker()),!this.workerApi)throw new Error("Worker API not initialized");return yield this.workerApi.execute(t,n,r)})}destroy(){this.workerApi&&this.workerApi.destroy(),this.worker&&(this.worker.terminate(),this.worker=null,this.workerApi=null)}initWorker(){return Yo(this,void 0,void 0,function*(){const t=this.resolveWorkerPath(),r=t.includes("/lib/")||t.endsWith(".mjs")?"module":"classic";this.worker=new Worker(t,{type:r}),this.workerApi=v6(this.worker)})}resolveWorkerPath(){if(typeof{url:typeof document=="undefined"&&typeof location=="undefined"?require("url").pathToFileURL(__filename).href:typeof document=="undefined"?location.href:it&&it.tagName.toUpperCase()==="SCRIPT"&&it.src||new URL("infographic.min.js",document.baseURI).href}!="undefined"&&(typeof document=="undefined"&&typeof location=="undefined"?require("url").pathToFileURL(__filename).href:typeof document=="undefined"?location.href:it&&it.tagName.toUpperCase()==="SCRIPT"&&it.src||new URL("infographic.min.js",document.baseURI).href)){const t=new URL(typeof document=="undefined"&&typeof location=="undefined"?require("url").pathToFileURL(__filename).href:typeof document=="undefined"?location.href:it&&it.tagName.toUpperCase()==="SCRIPT"&&it.src||new URL("infographic.min.js",document.baseURI).href),n=t.href.replace(/\/runtime\/[^/]+\.js$/,"/worker.js");return n!==t.href?n:t.href.replace(/\/[^/]+\.js$/,"/worker.js")}if(typeof document!="undefined"){const t=document.getElementsByTagName("script");for(let n=t.length-1;n>=0;n--){const r=t[n].src;if(r&&(r.includes("index.js")||r.includes("index.min.js")))return r.replace(/index(\.min)?\.js/,"worker.js")}}return"./worker.js"}}class UJ{constructor(t){this.supervisor=null,this.initialOptions=this.mergeOptions(this.getDefaultOptions(),t)}get options(){return this.runtimeOptions||this.initialOptions}mergeOptions(t,n){return Object.assign({},t,n||{})}execute(t,n){return Yo(this,void 0,void 0,function*(){this.runtimeOptions=this.mergeOptions(this.initialOptions,n);const{node:r,edge:i,enableWorker:o}=this.runtimeOptions;this.context=new LJ(t,{node:r,edge:i}),this.model=this.context.graph,o&&typeof Worker!="undefined"?yield this.layoutInWorker(t,this.runtimeOptions):yield this.layout(this.runtimeOptions)})}layoutInWorker(t,n){var r;return Yo(this,void 0,void 0,function*(){try{this.supervisor||(this.supervisor=new XJ);const i=yield this.supervisor.execute(this.id,t,n);(r=this.context)===null||r===void 0||r.replace(i)}catch(i){console.error("Layout in worker failed, fallback to main thread layout.",i),yield this.layout(n)}})}forEachNode(t){this.context.forEachNode(t)}forEachEdge(t){this.context.forEachEdge(t)}destroy(){var t;(t=this.context)===null||t===void 0||t.destroy(),this.model=null,this.context=null,this.supervisor&&(this.supervisor.destroy(),this.supervisor=null)}}function KJ(e){return Array.isArray(e)}var ZJ=(function(e){var t=typeof e;return e!==null&&t==="object"||t==="function"}),QJ=function(e){return typeof e=="object"&&e!==null},JJ={}.toString,x6=function(e,t){return JJ.call(e)==="[object "+t+"]"},eee=function(e){if(!QJ(e)||!x6(e,"Object"))return!1;if(Object.getPrototypeOf(e)===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},_l=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function tee(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $f(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ef,C6;function nee(){if(C6)return Ef;C6=1;function e(){this.__data__=[],this.size=0}return Ef=e,Ef}var Mf,P6;function Li(){if(P6)return Mf;P6=1;function e(t,n){return t===n||t!==t&&n!==n}return Mf=e,Mf}var If,O6;function wl(){if(O6)return If;O6=1;var e=Li();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return If=t,If}var Af,S6;function ree(){if(S6)return Af;S6=1;var e=wl(),t=Array.prototype,n=t.splice;function r(i){var o=this.__data__,s=e(o,i);if(s<0)return!1;var a=o.length-1;return s==a?o.pop():n.call(o,s,1),--this.size,!0}return Af=r,Af}var Tf,$6;function iee(){if($6)return Tf;$6=1;var e=wl();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return Tf=t,Tf}var Rf,E6;function oee(){if(E6)return Rf;E6=1;var e=wl();function t(n){return e(this.__data__,n)>-1}return Rf=t,Rf}var kf,M6;function see(){if(M6)return kf;M6=1;var e=wl();function t(n,r){var i=this.__data__,o=e(i,n);return o<0?(++this.size,i.push([n,r])):i[o][1]=r,this}return kf=t,kf}var Lf,I6;function xl(){if(I6)return Lf;I6=1;var e=nee(),t=ree(),n=iee(),r=oee(),i=see();function o(s){var a=-1,l=s==null?0:s.length;for(this.clear();++a<l;){var c=s[a];this.set(c[0],c[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Lf=o,Lf}var Nf,A6;function aee(){if(A6)return Nf;A6=1;var e=xl();function t(){this.__data__=new e,this.size=0}return Nf=t,Nf}var zf,T6;function lee(){if(T6)return zf;T6=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return zf=e,zf}var Df,R6;function cee(){if(R6)return Df;R6=1;function e(t){return this.__data__.get(t)}return Df=e,Df}var qf,k6;function uee(){if(k6)return qf;k6=1;function e(t){return this.__data__.has(t)}return qf=e,qf}var Hf,L6;function N6(){if(L6)return Hf;L6=1;var e=typeof _l=="object"&&_l&&_l.Object===Object&&_l;return Hf=e,Hf}var jf,z6;function _n(){if(z6)return jf;z6=1;var e=N6(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return jf=n,jf}var Ff,D6;function Ni(){if(D6)return Ff;D6=1;var e=_n(),t=e.Symbol;return Ff=t,Ff}var Bf,q6;function hee(){if(q6)return Bf;q6=1;var e=Ni(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function o(s){var a=n.call(s,i),l=s[i];try{s[i]=void 0;var c=!0}catch(h){}var u=r.call(s);return c&&(a?s[i]=l:delete s[i]),u}return Bf=o,Bf}var Wf,H6;function fee(){if(H6)return Wf;H6=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Wf=n,Wf}var Vf,j6;function Xr(){if(j6)return Vf;j6=1;var e=Ni(),t=hee(),n=fee(),r="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function s(a){return a==null?a===void 0?i:r:o&&o in Object(a)?t(a):n(a)}return Vf=s,Vf}var Gf,F6;function fn(){if(F6)return Gf;F6=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Gf=e,Gf}var Yf,B6;function Uo(){if(B6)return Yf;B6=1;var e=Xr(),t=fn(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function s(a){if(!t(a))return!1;var l=e(a);return l==r||l==i||l==n||l==o}return Yf=s,Yf}var Xf,W6;function dee(){if(W6)return Xf;W6=1;var e=_n(),t=e["__core-js_shared__"];return Xf=t,Xf}var Uf,V6;function pee(){if(V6)return Uf;V6=1;var e=dee(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return Uf=n,Uf}var Kf,G6;function Y6(){if(G6)return Kf;G6=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch(i){}try{return r+""}catch(i){}}return""}return Kf=n,Kf}var Zf,X6;function gee(){if(X6)return Zf;X6=1;var e=Uo(),t=pee(),n=fn(),r=Y6(),i=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,s=Function.prototype,a=Object.prototype,l=s.toString,c=a.hasOwnProperty,u=RegExp("^"+l.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(f){if(!n(f)||t(f))return!1;var d=e(f)?u:o;return d.test(r(f))}return Zf=h,Zf}var Qf,U6;function mee(){if(U6)return Qf;U6=1;function e(t,n){return t==null?void 0:t[n]}return Qf=e,Qf}var Jf,K6;function Ur(){if(K6)return Jf;K6=1;var e=gee(),t=mee();function n(r,i){var o=t(r,i);return e(o)?o:void 0}return Jf=n,Jf}var ed,Z6;function td(){if(Z6)return ed;Z6=1;var e=Ur(),t=_n(),n=e(t,"Map");return ed=n,ed}var nd,Q6;function Cl(){if(Q6)return nd;Q6=1;var e=Ur(),t=e(Object,"create");return nd=t,nd}var rd,J6;function yee(){if(J6)return rd;J6=1;var e=Cl();function t(){this.__data__=e?e(null):{},this.size=0}return rd=t,rd}var id,e7;function vee(){if(e7)return id;e7=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return id=e,id}var od,t7;function bee(){if(t7)return od;t7=1;var e=Cl(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(o){var s=this.__data__;if(e){var a=s[o];return a===t?void 0:a}return r.call(s,o)?s[o]:void 0}return od=i,od}var sd,n7;function _ee(){if(n7)return sd;n7=1;var e=Cl(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var o=this.__data__;return e?o[i]!==void 0:n.call(o,i)}return sd=r,sd}var ad,r7;function wee(){if(r7)return ad;r7=1;var e=Cl(),t="__lodash_hash_undefined__";function n(r,i){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=e&&i===void 0?t:i,this}return ad=n,ad}var ld,i7;function xee(){if(i7)return ld;i7=1;var e=yee(),t=vee(),n=bee(),r=_ee(),i=wee();function o(s){var a=-1,l=s==null?0:s.length;for(this.clear();++a<l;){var c=s[a];this.set(c[0],c[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,ld=o,ld}var cd,o7;function Cee(){if(o7)return cd;o7=1;var e=xee(),t=xl(),n=td();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return cd=r,cd}var ud,s7;function Pee(){if(s7)return ud;s7=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return ud=e,ud}var hd,a7;function Pl(){if(a7)return hd;a7=1;var e=Pee();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return hd=t,hd}var fd,l7;function Oee(){if(l7)return fd;l7=1;var e=Pl();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return fd=t,fd}var dd,c7;function See(){if(c7)return dd;c7=1;var e=Pl();function t(n){return e(this,n).get(n)}return dd=t,dd}var pd,u7;function $ee(){if(u7)return pd;u7=1;var e=Pl();function t(n){return e(this,n).has(n)}return pd=t,pd}var gd,h7;function Eee(){if(h7)return gd;h7=1;var e=Pl();function t(n,r){var i=e(this,n),o=i.size;return i.set(n,r),this.size+=i.size==o?0:1,this}return gd=t,gd}var md,f7;function yd(){if(f7)return md;f7=1;var e=Cee(),t=Oee(),n=See(),r=$ee(),i=Eee();function o(s){var a=-1,l=s==null?0:s.length;for(this.clear();++a<l;){var c=s[a];this.set(c[0],c[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,md=o,md}var vd,d7;function Mee(){if(d7)return vd;d7=1;var e=xl(),t=td(),n=yd(),r=200;function i(o,s){var a=this.__data__;if(a instanceof e){var l=a.__data__;if(!t||l.length<r-1)return l.push([o,s]),this.size=++a.size,this;a=this.__data__=new n(l)}return a.set(o,s),this.size=a.size,this}return vd=i,vd}var bd,p7;function Ol(){if(p7)return bd;p7=1;var e=xl(),t=aee(),n=lee(),r=cee(),i=uee(),o=Mee();function s(a){var l=this.__data__=new e(a);this.size=l.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=i,s.prototype.set=o,bd=s,bd}var _d,g7;function wd(){if(g7)return _d;g7=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i&&n(t[r],r,t)!==!1;);return t}return _d=e,_d}var xd,m7;function y7(){if(m7)return xd;m7=1;var e=Ur(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch(r){}})();return xd=t,xd}var Cd,v7;function Sl(){if(v7)return Cd;v7=1;var e=y7();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return Cd=t,Cd}var Pd,b7;function $l(){if(b7)return Pd;b7=1;var e=Sl(),t=Li(),n=Object.prototype,r=n.hasOwnProperty;function i(o,s,a){var l=o[s];(!(r.call(o,s)&&t(l,a))||a===void 0&&!(s in o))&&e(o,s,a)}return Pd=i,Pd}var Od,_7;function Ko(){if(_7)return Od;_7=1;var e=$l(),t=Sl();function n(r,i,o,s){var a=!o;o||(o={});for(var l=-1,c=i.length;++l<c;){var u=i[l],h=s?s(o[u],r[u],u,o,r):void 0;h===void 0&&(h=r[u]),a?t(o,u,h):e(o,u,h)}return o}return Od=n,Od}var Sd,w7;function Iee(){if(w7)return Sd;w7=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return Sd=e,Sd}var $d,x7;function Ln(){if(x7)return $d;x7=1;function e(t){return t!=null&&typeof t=="object"}return $d=e,$d}var Ed,C7;function Aee(){if(C7)return Ed;C7=1;var e=Xr(),t=Ln(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return Ed=r,Ed}var Md,P7;function Zo(){if(P7)return Md;P7=1;var e=Aee(),t=Ln(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=e((function(){return arguments})())?e:function(s){return t(s)&&r.call(s,"callee")&&!i.call(s,"callee")};return Md=o,Md}var Id,O7;function Rt(){if(O7)return Id;O7=1;var e=Array.isArray;return Id=e,Id}var Qo={exports:{}},Ad,S7;function Tee(){if(S7)return Ad;S7=1;function e(){return!1}return Ad=e,Ad}Qo.exports;var $7;function zi(){return $7||($7=1,(function(e,t){var n=_n(),r=Tee(),i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===i,a=s?n.Buffer:void 0,l=a?a.isBuffer:void 0,c=l||r;e.exports=c})(Qo,Qo.exports)),Qo.exports}var Td,E7;function El(){if(E7)return Td;E7=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var o=typeof r;return i=i==null?e:i,!!i&&(o=="number"||o!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return Td=n,Td}var Rd,M7;function kd(){if(M7)return Rd;M7=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Rd=t,Rd}var Ld,I7;function Ree(){if(I7)return Ld;I7=1;var e=Xr(),t=kd(),n=Ln(),r="[object Arguments]",i="[object Array]",o="[object Boolean]",s="[object Date]",a="[object Error]",l="[object Function]",c="[object Map]",u="[object Number]",h="[object Object]",f="[object RegExp]",d="[object Set]",p="[object String]",g="[object WeakMap]",m="[object ArrayBuffer]",v="[object DataView]",b="[object Float32Array]",_="[object Float64Array]",x="[object Int8Array]",w="[object Int16Array]",C="[object Int32Array]",P="[object Uint8Array]",O="[object Uint8ClampedArray]",$="[object Uint16Array]",S="[object Uint32Array]",M={};M[b]=M[_]=M[x]=M[w]=M[C]=M[P]=M[O]=M[$]=M[S]=!0,M[r]=M[i]=M[m]=M[o]=M[v]=M[s]=M[a]=M[l]=M[c]=M[u]=M[h]=M[f]=M[d]=M[p]=M[g]=!1;function I(E){return n(E)&&t(E.length)&&!!M[e(E)]}return Ld=I,Ld}var Nd,A7;function Ml(){if(A7)return Nd;A7=1;function e(t){return function(n){return t(n)}}return Nd=e,Nd}var Jo={exports:{}};Jo.exports;var T7;function zd(){return T7||(T7=1,(function(e,t){var n=N6(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,s=o&&n.process,a=(function(){try{var l=i&&i.require&&i.require("util").types;return l||s&&s.binding&&s.binding("util")}catch(c){}})();e.exports=a})(Jo,Jo.exports)),Jo.exports}var Dd,R7;function es(){if(R7)return Dd;R7=1;var e=Ree(),t=Ml(),n=zd(),r=n&&n.isTypedArray,i=r?t(r):e;return Dd=i,Dd}var qd,k7;function L7(){if(k7)return qd;k7=1;var e=Iee(),t=Zo(),n=Rt(),r=zi(),i=El(),o=es(),s=Object.prototype,a=s.hasOwnProperty;function l(c,u){var h=n(c),f=!h&&t(c),d=!h&&!f&&r(c),p=!h&&!f&&!d&&o(c),g=h||f||d||p,m=g?e(c.length,String):[],v=m.length;for(var b in c)(u||a.call(c,b))&&!(g&&(b=="length"||d&&(b=="offset"||b=="parent")||p&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||i(b,v)))&&m.push(b);return m}return qd=l,qd}var Hd,N7;function Il(){if(N7)return Hd;N7=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return Hd=t,Hd}var jd,z7;function D7(){if(z7)return jd;z7=1;function e(t,n){return function(r){return t(n(r))}}return jd=e,jd}var Fd,q7;function kee(){if(q7)return Fd;q7=1;var e=D7(),t=e(Object.keys,Object);return Fd=t,Fd}var Bd,H7;function Wd(){if(H7)return Bd;H7=1;var e=Il(),t=kee(),n=Object.prototype,r=n.hasOwnProperty;function i(o){if(!e(o))return t(o);var s=[];for(var a in Object(o))r.call(o,a)&&a!="constructor"&&s.push(a);return s}return Bd=i,Bd}var Vd,j7;function Kn(){if(j7)return Vd;j7=1;var e=Uo(),t=kd();function n(r){return r!=null&&t(r.length)&&!e(r)}return Vd=n,Vd}var Gd,F7;function mr(){if(F7)return Gd;F7=1;var e=L7(),t=Wd(),n=Kn();function r(i){return n(i)?e(i):t(i)}return Gd=r,Gd}var Yd,B7;function Lee(){if(B7)return Yd;B7=1;var e=Ko(),t=mr();function n(r,i){return r&&e(i,t(i),r)}return Yd=n,Yd}var Xd,W7;function Nee(){if(W7)return Xd;W7=1;function e(t){var n=[];if(t!=null)for(var r in Object(t))n.push(r);return n}return Xd=e,Xd}var Ud,V7;function zee(){if(V7)return Ud;V7=1;var e=fn(),t=Il(),n=Nee(),r=Object.prototype,i=r.hasOwnProperty;function o(s){if(!e(s))return n(s);var a=t(s),l=[];for(var c in s)c=="constructor"&&(a||!i.call(s,c))||l.push(c);return l}return Ud=o,Ud}var Kd,G7;function Kr(){if(G7)return Kd;G7=1;var e=L7(),t=zee(),n=Kn();function r(i){return n(i)?e(i,!0):t(i)}return Kd=r,Kd}var Zd,Y7;function Dee(){if(Y7)return Zd;Y7=1;var e=Ko(),t=Kr();function n(r,i){return r&&e(i,t(i),r)}return Zd=n,Zd}var ts={exports:{}};ts.exports;var X7;function U7(){return X7||(X7=1,(function(e,t){var n=_n(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,s=o?n.Buffer:void 0,a=s?s.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var h=c.length,f=a?a(h):new c.constructor(h);return c.copy(f),f}e.exports=l})(ts,ts.exports)),ts.exports}var Qd,K7;function Z7(){if(K7)return Qd;K7=1;function e(t,n){var r=-1,i=t.length;for(n||(n=Array(i));++r<i;)n[r]=t[r];return n}return Qd=e,Qd}var Jd,Q7;function J7(){if(Q7)return Jd;Q7=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,o=0,s=[];++r<i;){var a=t[r];n(a,r,t)&&(s[o++]=a)}return s}return Jd=e,Jd}var ep,e9;function t9(){if(e9)return ep;e9=1;function e(){return[]}return ep=e,ep}var tp,n9;function np(){if(n9)return tp;n9=1;var e=J7(),t=t9(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,o=i?function(s){return s==null?[]:(s=Object(s),e(i(s),function(a){return r.call(s,a)}))}:t;return tp=o,tp}var rp,r9;function qee(){if(r9)return rp;r9=1;var e=Ko(),t=np();function n(r,i){return e(r,t(r),i)}return rp=n,rp}var ip,i9;function op(){if(i9)return ip;i9=1;function e(t,n){for(var r=-1,i=n.length,o=t.length;++r<i;)t[o+r]=n[r];return t}return ip=e,ip}var sp,o9;function Al(){if(o9)return sp;o9=1;var e=D7(),t=e(Object.getPrototypeOf,Object);return sp=t,sp}var ap,s9;function a9(){if(s9)return ap;s9=1;var e=op(),t=Al(),n=np(),r=t9(),i=Object.getOwnPropertySymbols,o=i?function(s){for(var a=[];s;)e(a,n(s)),s=t(s);return a}:r;return ap=o,ap}var lp,l9;function Hee(){if(l9)return lp;l9=1;var e=Ko(),t=a9();function n(r,i){return e(r,t(r),i)}return lp=n,lp}var cp,c9;function u9(){if(c9)return cp;c9=1;var e=op(),t=Rt();function n(r,i,o){var s=i(r);return t(r)?s:e(s,o(r))}return cp=n,cp}var up,h9;function f9(){if(h9)return up;h9=1;var e=u9(),t=np(),n=mr();function r(i){return e(i,n,t)}return up=r,up}var hp,d9;function jee(){if(d9)return hp;d9=1;var e=u9(),t=a9(),n=Kr();function r(i){return e(i,n,t)}return hp=r,hp}var fp,p9;function Fee(){if(p9)return fp;p9=1;var e=Ur(),t=_n(),n=e(t,"DataView");return fp=n,fp}var dp,g9;function Bee(){if(g9)return dp;g9=1;var e=Ur(),t=_n(),n=e(t,"Promise");return dp=n,dp}var pp,m9;function y9(){if(m9)return pp;m9=1;var e=Ur(),t=_n(),n=e(t,"Set");return pp=n,pp}var gp,v9;function Wee(){if(v9)return gp;v9=1;var e=Ur(),t=_n(),n=e(t,"WeakMap");return gp=n,gp}var mp,b9;function Di(){if(b9)return mp;b9=1;var e=Fee(),t=td(),n=Bee(),r=y9(),i=Wee(),o=Xr(),s=Y6(),a="[object Map]",l="[object Object]",c="[object Promise]",u="[object Set]",h="[object WeakMap]",f="[object DataView]",d=s(e),p=s(t),g=s(n),m=s(r),v=s(i),b=o;return(e&&b(new e(new ArrayBuffer(1)))!=f||t&&b(new t)!=a||n&&b(n.resolve())!=c||r&&b(new r)!=u||i&&b(new i)!=h)&&(b=function(_){var x=o(_),w=x==l?_.constructor:void 0,C=w?s(w):"";if(C)switch(C){case d:return f;case p:return a;case g:return c;case m:return u;case v:return h}return x}),mp=b,mp}var yp,_9;function Vee(){if(_9)return yp;_9=1;var e=Object.prototype,t=e.hasOwnProperty;function n(r){var i=r.length,o=new r.constructor(i);return i&&typeof r[0]=="string"&&t.call(r,"index")&&(o.index=r.index,o.input=r.input),o}return yp=n,yp}var vp,w9;function x9(){if(w9)return vp;w9=1;var e=_n(),t=e.Uint8Array;return vp=t,vp}var bp,C9;function _p(){if(C9)return bp;C9=1;var e=x9();function t(n){var r=new n.constructor(n.byteLength);return new e(r).set(new e(n)),r}return bp=t,bp}var wp,P9;function Gee(){if(P9)return wp;P9=1;var e=_p();function t(n,r){var i=r?e(n.buffer):n.buffer;return new n.constructor(i,n.byteOffset,n.byteLength)}return wp=t,wp}var xp,O9;function Yee(){if(O9)return xp;O9=1;var e=/\w*$/;function t(n){var r=new n.constructor(n.source,e.exec(n));return r.lastIndex=n.lastIndex,r}return xp=t,xp}var Cp,S9;function Xee(){if(S9)return Cp;S9=1;var e=Ni(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;function r(i){return n?Object(n.call(i)):{}}return Cp=r,Cp}var Pp,$9;function E9(){if($9)return Pp;$9=1;var e=_p();function t(n,r){var i=r?e(n.buffer):n.buffer;return new n.constructor(i,n.byteOffset,n.length)}return Pp=t,Pp}var Op,M9;function Uee(){if(M9)return Op;M9=1;var e=_p(),t=Gee(),n=Yee(),r=Xee(),i=E9(),o="[object Boolean]",s="[object Date]",a="[object Map]",l="[object Number]",c="[object RegExp]",u="[object Set]",h="[object String]",f="[object Symbol]",d="[object ArrayBuffer]",p="[object DataView]",g="[object Float32Array]",m="[object Float64Array]",v="[object Int8Array]",b="[object Int16Array]",_="[object Int32Array]",x="[object Uint8Array]",w="[object Uint8ClampedArray]",C="[object Uint16Array]",P="[object Uint32Array]";function O($,S,M){var I=$.constructor;switch(S){case d:return e($);case o:case s:return new I(+$);case p:return t($,M);case g:case m:case v:case b:case _:case x:case w:case C:case P:return i($,M);case a:return new I;case l:case h:return new I($);case c:return n($);case u:return new I;case f:return r($)}}return Op=O,Op}var Sp,I9;function A9(){if(I9)return Sp;I9=1;var e=fn(),t=Object.create,n=(function(){function r(){}return function(i){if(!e(i))return{};if(t)return t(i);r.prototype=i;var o=new r;return r.prototype=void 0,o}})();return Sp=n,Sp}var $p,T9;function R9(){if(T9)return $p;T9=1;var e=A9(),t=Al(),n=Il();function r(i){return typeof i.constructor=="function"&&!n(i)?e(t(i)):{}}return $p=r,$p}var Ep,k9;function Kee(){if(k9)return Ep;k9=1;var e=Di(),t=Ln(),n="[object Map]";function r(i){return t(i)&&e(i)==n}return Ep=r,Ep}var Mp,L9;function Zee(){if(L9)return Mp;L9=1;var e=Kee(),t=Ml(),n=zd(),r=n&&n.isMap,i=r?t(r):e;return Mp=i,Mp}var Ip,N9;function Qee(){if(N9)return Ip;N9=1;var e=Di(),t=Ln(),n="[object Set]";function r(i){return t(i)&&e(i)==n}return Ip=r,Ip}var Ap,z9;function Jee(){if(z9)return Ap;z9=1;var e=Qee(),t=Ml(),n=zd(),r=n&&n.isSet,i=r?t(r):e;return Ap=i,Ap}var Tp,D9;function q9(){if(D9)return Tp;D9=1;var e=Ol(),t=wd(),n=$l(),r=Lee(),i=Dee(),o=U7(),s=Z7(),a=qee(),l=Hee(),c=f9(),u=jee(),h=Di(),f=Vee(),d=Uee(),p=R9(),g=Rt(),m=zi(),v=Zee(),b=fn(),_=Jee(),x=mr(),w=Kr(),C=1,P=2,O=4,$="[object Arguments]",S="[object Array]",M="[object Boolean]",I="[object Date]",E="[object Error]",A="[object Function]",T="[object GeneratorFunction]",N="[object Map]",H="[object Number]",D="[object Object]",B="[object RegExp]",F="[object Set]",X="[object String]",G="[object Symbol]",L="[object WeakMap]",R="[object ArrayBuffer]",z="[object DataView]",q="[object Float32Array]",j="[object Float64Array]",V="[object Int8Array]",U="[object Int16Array]",K="[object Int32Array]",J="[object Uint8Array]",Z="[object Uint8ClampedArray]",ie="[object Uint16Array]",Q="[object Uint32Array]",te={};te[$]=te[S]=te[R]=te[z]=te[M]=te[I]=te[q]=te[j]=te[V]=te[U]=te[K]=te[N]=te[H]=te[D]=te[B]=te[F]=te[X]=te[G]=te[J]=te[Z]=te[ie]=te[Q]=!0,te[E]=te[A]=te[L]=!1;function ce(re,ee,oe,se,ue,pe){var fe,ge=ee&C,he=ee&P,xe=ee&O;if(oe&&(fe=ue?oe(re,se,ue,pe):oe(re)),fe!==void 0)return fe;if(!b(re))return re;var $e=g(re);if($e){if(fe=f(re),!ge)return s(re,fe)}else{var Me=h(re),Ce=Me==A||Me==T;if(m(re))return o(re,ge);if(Me==D||Me==$||Ce&&!ue){if(fe=he||Ce?{}:p(re),!ge)return he?l(re,i(fe,re)):a(re,r(fe,re))}else{if(!te[Me])return ue?re:{};fe=d(re,Me,ge)}}pe||(pe=new e);var Te=pe.get(re);if(Te)return Te;pe.set(re,fe),_(re)?re.forEach(function(ye){fe.add(ce(ye,ee,oe,ye,re,pe))}):v(re)&&re.forEach(function(ye,_e){fe.set(_e,ce(ye,ee,oe,_e,re,pe))});var Ne=xe?he?u:c:he?w:x,ze=$e?void 0:Ne(re);return t(ze||re,function(ye,_e){ze&&(_e=ye,ye=re[_e]),n(fe,_e,ce(ye,ee,oe,_e,re,pe))}),fe}return Tp=ce,Tp}var Rp,H9;function ete(){if(H9)return Rp;H9=1;var e=q9(),t=4;function n(r){return e(r,t)}return Rp=n,Rp}var kp,j9;function Lp(){if(j9)return kp;j9=1;function e(t){return function(){return t}}return kp=e,kp}var Np,F9;function tte(){if(F9)return Np;F9=1;function e(t){return function(n,r,i){for(var o=-1,s=Object(n),a=i(n),l=a.length;l--;){var c=a[t?l:++o];if(r(s[c],c,s)===!1)break}return n}}return Np=e,Np}var zp,B9;function Dp(){if(B9)return zp;B9=1;var e=tte(),t=e();return zp=t,zp}var qp,W9;function Hp(){if(W9)return qp;W9=1;var e=Dp(),t=mr();function n(r,i){return r&&e(r,i,t)}return qp=n,qp}var jp,V9;function nte(){if(V9)return jp;V9=1;var e=Kn();function t(n,r){return function(i,o){if(i==null)return i;if(!e(i))return n(i,o);for(var s=i.length,a=r?s:-1,l=Object(i);(r?a--:++a<s)&&o(l[a],a,l)!==!1;);return i}}return jp=t,jp}var Fp,G9;function Tl(){if(G9)return Fp;G9=1;var e=Hp(),t=nte(),n=t(e);return Fp=n,Fp}var Bp,Y9;function Zr(){if(Y9)return Bp;Y9=1;function e(t){return t}return Bp=e,Bp}var Wp,X9;function U9(){if(X9)return Wp;X9=1;var e=Zr();function t(n){return typeof n=="function"?n:e}return Wp=t,Wp}var Vp,K9;function Z9(){if(K9)return Vp;K9=1;var e=wd(),t=Tl(),n=U9(),r=Rt();function i(o,s){var a=r(o)?e:t;return a(o,n(s))}return Vp=i,Vp}var Gp,Q9;function J9(){return Q9||(Q9=1,Gp=Z9()),Gp}var Yp,e8;function rte(){if(e8)return Yp;e8=1;var e=Tl();function t(n,r){var i=[];return e(n,function(o,s,a){r(o,s,a)&&i.push(o)}),i}return Yp=t,Yp}var Xp,t8;function ite(){if(t8)return Xp;t8=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Xp=t,Xp}var Up,n8;function ote(){if(n8)return Up;n8=1;function e(t){return this.__data__.has(t)}return Up=e,Up}var Kp,r8;function i8(){if(r8)return Kp;r8=1;var e=yd(),t=ite(),n=ote();function r(i){var o=-1,s=i==null?0:i.length;for(this.__data__=new e;++o<s;)this.add(i[o])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Kp=r,Kp}var Zp,o8;function ste(){if(o8)return Zp;o8=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return Zp=e,Zp}var Qp,s8;function a8(){if(s8)return Qp;s8=1;function e(t,n){return t.has(n)}return Qp=e,Qp}var Jp,l8;function c8(){if(l8)return Jp;l8=1;var e=i8(),t=ste(),n=a8(),r=1,i=2;function o(s,a,l,c,u,h){var f=l&r,d=s.length,p=a.length;if(d!=p&&!(f&&p>d))return!1;var g=h.get(s),m=h.get(a);if(g&&m)return g==a&&m==s;var v=-1,b=!0,_=l&i?new e:void 0;for(h.set(s,a),h.set(a,s);++v<d;){var x=s[v],w=a[v];if(c)var C=f?c(w,x,v,a,s,h):c(x,w,v,s,a,h);if(C!==void 0){if(C)continue;b=!1;break}if(_){if(!t(a,function(P,O){if(!n(_,O)&&(x===P||u(x,P,l,c,h)))return _.push(O)})){b=!1;break}}else if(!(x===w||u(x,w,l,c,h))){b=!1;break}}return h.delete(s),h.delete(a),b}return Jp=o,Jp}var e0,u8;function ate(){if(u8)return e0;u8=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,o){r[++n]=[o,i]}),r}return e0=e,e0}var t0,h8;function n0(){if(h8)return t0;h8=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return t0=e,t0}var r0,f8;function lte(){if(f8)return r0;f8=1;var e=Ni(),t=x9(),n=Li(),r=c8(),i=ate(),o=n0(),s=1,a=2,l="[object Boolean]",c="[object Date]",u="[object Error]",h="[object Map]",f="[object Number]",d="[object RegExp]",p="[object Set]",g="[object String]",m="[object Symbol]",v="[object ArrayBuffer]",b="[object DataView]",_=e?e.prototype:void 0,x=_?_.valueOf:void 0;function w(C,P,O,$,S,M,I){switch(O){case b:if(C.byteLength!=P.byteLength||C.byteOffset!=P.byteOffset)return!1;C=C.buffer,P=P.buffer;case v:return!(C.byteLength!=P.byteLength||!M(new t(C),new t(P)));case l:case c:case f:return n(+C,+P);case u:return C.name==P.name&&C.message==P.message;case d:case g:return C==P+"";case h:var E=i;case p:var A=$&s;if(E||(E=o),C.size!=P.size&&!A)return!1;var T=I.get(C);if(T)return T==P;$|=a,I.set(C,P);var N=r(E(C),E(P),$,S,M,I);return I.delete(C),N;case m:if(x)return x.call(C)==x.call(P)}return!1}return r0=w,r0}var i0,d8;function cte(){if(d8)return i0;d8=1;var e=f9(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(o,s,a,l,c,u){var h=a&t,f=e(o),d=f.length,p=e(s),g=p.length;if(d!=g&&!h)return!1;for(var m=d;m--;){var v=f[m];if(!(h?v in s:r.call(s,v)))return!1}var b=u.get(o),_=u.get(s);if(b&&_)return b==s&&_==o;var x=!0;u.set(o,s),u.set(s,o);for(var w=h;++m<d;){v=f[m];var C=o[v],P=s[v];if(l)var O=h?l(P,C,v,s,o,u):l(C,P,v,o,s,u);if(!(O===void 0?C===P||c(C,P,a,l,u):O)){x=!1;break}w||(w=v=="constructor")}if(x&&!w){var $=o.constructor,S=s.constructor;$!=S&&"constructor"in o&&"constructor"in s&&!(typeof $=="function"&&$ instanceof $&&typeof S=="function"&&S instanceof S)&&(x=!1)}return u.delete(o),u.delete(s),x}return i0=i,i0}var o0,p8;function ute(){if(p8)return o0;p8=1;var e=Ol(),t=c8(),n=lte(),r=cte(),i=Di(),o=Rt(),s=zi(),a=es(),l=1,c="[object Arguments]",u="[object Array]",h="[object Object]",f=Object.prototype,d=f.hasOwnProperty;function p(g,m,v,b,_,x){var w=o(g),C=o(m),P=w?u:i(g),O=C?u:i(m);P=P==c?h:P,O=O==c?h:O;var $=P==h,S=O==h,M=P==O;if(M&&s(g)){if(!s(m))return!1;w=!0,$=!1}if(M&&!$)return x||(x=new e),w||a(g)?t(g,m,v,b,_,x):n(g,m,P,v,b,_,x);if(!(v&l)){var I=$&&d.call(g,"__wrapped__"),E=S&&d.call(m,"__wrapped__");if(I||E){var A=I?g.value():g,T=E?m.value():m;return x||(x=new e),_(A,T,v,b,x)}}return M?(x||(x=new e),r(g,m,v,b,_,x)):!1}return o0=p,o0}var s0,g8;function m8(){if(g8)return s0;g8=1;var e=ute(),t=Ln();function n(r,i,o,s,a){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,o,s,n,a)}return s0=n,s0}var a0,y8;function hte(){if(y8)return a0;y8=1;var e=Ol(),t=m8(),n=1,r=2;function i(o,s,a,l){var c=a.length,u=c,h=!l;if(o==null)return!u;for(o=Object(o);c--;){var f=a[c];if(h&&f[2]?f[1]!==o[f[0]]:!(f[0]in o))return!1}for(;++c<u;){f=a[c];var d=f[0],p=o[d],g=f[1];if(h&&f[2]){if(p===void 0&&!(d in o))return!1}else{var m=new e;if(l)var v=l(p,g,d,o,s,m);if(!(v===void 0?t(g,p,n|r,l,m):v))return!1}}return!0}return a0=i,a0}var l0,v8;function b8(){if(v8)return l0;v8=1;var e=fn();function t(n){return n===n&&!e(n)}return l0=t,l0}var c0,_8;function fte(){if(_8)return c0;_8=1;var e=b8(),t=mr();function n(r){for(var i=t(r),o=i.length;o--;){var s=i[o],a=r[s];i[o]=[s,a,e(a)]}return i}return c0=n,c0}var u0,w8;function x8(){if(w8)return u0;w8=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return u0=e,u0}var h0,C8;function dte(){if(C8)return h0;C8=1;var e=hte(),t=fte(),n=x8();function r(i){var o=t(i);return o.length==1&&o[0][2]?n(o[0][0],o[0][1]):function(s){return s===i||e(s,i,o)}}return h0=r,h0}var f0,P8;function qi(){if(P8)return f0;P8=1;var e=Xr(),t=Ln(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return f0=r,f0}var d0,O8;function p0(){if(O8)return d0;O8=1;var e=Rt(),t=qi(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(o,s){if(e(o))return!1;var a=typeof o;return a=="number"||a=="symbol"||a=="boolean"||o==null||t(o)?!0:r.test(o)||!n.test(o)||s!=null&&o in Object(s)}return d0=i,d0}var g0,S8;function pte(){if(S8)return g0;S8=1;var e=yd(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var o=function(){var s=arguments,a=i?i.apply(this,s):s[0],l=o.cache;if(l.has(a))return l.get(a);var c=r.apply(this,s);return o.cache=l.set(a,c)||l,c};return o.cache=new(n.Cache||e),o}return n.Cache=e,g0=n,g0}var m0,$8;function gte(){if($8)return m0;$8=1;var e=pte(),t=500;function n(r){var i=e(r,function(s){return o.size===t&&o.clear(),s}),o=i.cache;return i}return m0=n,m0}var y0,E8;function mte(){if(E8)return y0;E8=1;var e=gte(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var o=[];return i.charCodeAt(0)===46&&o.push(""),i.replace(t,function(s,a,l,c){o.push(l?c.replace(n,"$1"):a||s)}),o});return y0=r,y0}var v0,M8;function Rl(){if(M8)return v0;M8=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,o=Array(i);++r<i;)o[r]=n(t[r],r,t);return o}return v0=e,v0}var b0,I8;function yte(){if(I8)return b0;I8=1;var e=Ni(),t=Rl(),n=Rt(),r=qi(),i=e?e.prototype:void 0,o=i?i.toString:void 0;function s(a){if(typeof a=="string")return a;if(n(a))return t(a,s)+"";if(r(a))return o?o.call(a):"";var l=a+"";return l=="0"&&1/a==-1/0?"-0":l}return b0=s,b0}var _0,A8;function T8(){if(A8)return _0;A8=1;var e=yte();function t(n){return n==null?"":e(n)}return _0=t,_0}var w0,R8;function kl(){if(R8)return w0;R8=1;var e=Rt(),t=p0(),n=mte(),r=T8();function i(o,s){return e(o)?o:t(o,s)?[o]:n(r(o))}return w0=i,w0}var x0,k8;function ns(){if(k8)return x0;k8=1;var e=qi();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return x0=t,x0}var C0,L8;function Ll(){if(L8)return C0;L8=1;var e=kl(),t=ns();function n(r,i){i=e(i,r);for(var o=0,s=i.length;r!=null&&o<s;)r=r[t(i[o++])];return o&&o==s?r:void 0}return C0=n,C0}var P0,N8;function vte(){if(N8)return P0;N8=1;var e=Ll();function t(n,r,i){var o=n==null?void 0:e(n,r);return o===void 0?i:o}return P0=t,P0}var O0,z8;function bte(){if(z8)return O0;z8=1;function e(t,n){return t!=null&&n in Object(t)}return O0=e,O0}var S0,D8;function q8(){if(D8)return S0;D8=1;var e=kl(),t=Zo(),n=Rt(),r=El(),i=kd(),o=ns();function s(a,l,c){l=e(l,a);for(var u=-1,h=l.length,f=!1;++u<h;){var d=o(l[u]);if(!(f=a!=null&&c(a,d)))break;a=a[d]}return f||++u!=h?f:(h=a==null?0:a.length,!!h&&i(h)&&r(d,h)&&(n(a)||t(a)))}return S0=s,S0}var $0,H8;function j8(){if(H8)return $0;H8=1;var e=bte(),t=q8();function n(r,i){return r!=null&&t(r,i,e)}return $0=n,$0}var E0,F8;function _te(){if(F8)return E0;F8=1;var e=m8(),t=vte(),n=j8(),r=p0(),i=b8(),o=x8(),s=ns(),a=1,l=2;function c(u,h){return r(u)&&i(h)?o(s(u),h):function(f){var d=t(f,u);return d===void 0&&d===h?n(f,u):e(h,d,a|l)}}return E0=c,E0}var M0,B8;function W8(){if(B8)return M0;B8=1;function e(t){return function(n){return n==null?void 0:n[t]}}return M0=e,M0}var I0,V8;function wte(){if(V8)return I0;V8=1;var e=Ll();function t(n){return function(r){return e(r,n)}}return I0=t,I0}var A0,G8;function xte(){if(G8)return A0;G8=1;var e=W8(),t=wte(),n=p0(),r=ns();function i(o){return n(o)?e(r(o)):t(o)}return A0=i,A0}var T0,Y8;function Zn(){if(Y8)return T0;Y8=1;var e=dte(),t=_te(),n=Zr(),r=Rt(),i=xte();function o(s){return typeof s=="function"?s:s==null?n:typeof s=="object"?r(s)?t(s[0],s[1]):e(s):i(s)}return T0=o,T0}var R0,X8;function U8(){if(X8)return R0;X8=1;var e=J7(),t=rte(),n=Zn(),r=Rt();function i(o,s){var a=r(o)?e:t;return a(o,n(s,3))}return R0=i,R0}var k0,K8;function Cte(){if(K8)return k0;K8=1;var e=Object.prototype,t=e.hasOwnProperty;function n(r,i){return r!=null&&t.call(r,i)}return k0=n,k0}var L0,Z8;function Q8(){if(Z8)return L0;Z8=1;var e=Cte(),t=q8();function n(r,i){return r!=null&&t(r,i,e)}return L0=n,L0}var N0,J8;function Pte(){if(J8)return N0;J8=1;var e=Wd(),t=Di(),n=Zo(),r=Rt(),i=Kn(),o=zi(),s=Il(),a=es(),l="[object Map]",c="[object Set]",u=Object.prototype,h=u.hasOwnProperty;function f(d){if(d==null)return!0;if(i(d)&&(r(d)||typeof d=="string"||typeof d.splice=="function"||o(d)||a(d)||n(d)))return!d.length;var p=t(d);if(p==l||p==c)return!d.size;if(s(d))return!e(d).length;for(var g in d)if(h.call(d,g))return!1;return!0}return N0=f,N0}var z0,eC;function tC(){if(eC)return z0;eC=1;function e(t){return t===void 0}return z0=e,z0}var D0,nC;function rC(){if(nC)return D0;nC=1;var e=Tl(),t=Kn();function n(r,i){var o=-1,s=t(r)?Array(r.length):[];return e(r,function(a,l,c){s[++o]=i(a,l,c)}),s}return D0=n,D0}var q0,iC;function oC(){if(iC)return q0;iC=1;var e=Rl(),t=Zn(),n=rC(),r=Rt();function i(o,s){var a=r(o)?e:n;return a(o,t(s,3))}return q0=i,q0}var H0,sC;function Ote(){if(sC)return H0;sC=1;function e(t,n,r,i){var o=-1,s=t==null?0:t.length;for(i&&s&&(r=t[++o]);++o<s;)r=n(r,t[o],o,t);return r}return H0=e,H0}var j0,aC;function Ste(){if(aC)return j0;aC=1;function e(t,n,r,i,o){return o(t,function(s,a,l){r=i?(i=!1,s):n(r,s,a,l)}),r}return j0=e,j0}var F0,lC;function cC(){if(lC)return F0;lC=1;var e=Ote(),t=Tl(),n=Zn(),r=Ste(),i=Rt();function o(s,a,l){var c=i(s)?e:r,u=arguments.length<3;return c(s,n(a,4),l,u,t)}return F0=o,F0}var B0,uC;function $te(){if(uC)return B0;uC=1;var e=Xr(),t=Rt(),n=Ln(),r="[object String]";function i(o){return typeof o=="string"||!t(o)&&n(o)&&e(o)==r}return B0=i,B0}var W0,hC;function Ete(){if(hC)return W0;hC=1;var e=W8(),t=e("length");return W0=t,W0}var V0,fC;function Mte(){if(fC)return V0;fC=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,o="\\ufe0e\\ufe0f",s="\\u200d",a=RegExp("["+s+e+i+o+"]");function l(c){return a.test(c)}return V0=l,V0}var G0,dC;function Ite(){if(dC)return G0;dC=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,o="\\ufe0e\\ufe0f",s="["+e+"]",a="["+i+"]",l="\\ud83c[\\udffb-\\udfff]",c="(?:"+a+"|"+l+")",u="[^"+e+"]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",d="\\u200d",p=c+"?",g="["+o+"]?",m="(?:"+d+"(?:"+[u,h,f].join("|")+")"+g+p+")*",v=g+p+m,b="(?:"+[u+a+"?",a,h,f,s].join("|")+")",_=RegExp(l+"(?="+l+")|"+b+v,"g");function x(w){for(var C=_.lastIndex=0;_.test(w);)++C;return C}return G0=x,G0}var Y0,pC;function Ate(){if(pC)return Y0;pC=1;var e=Ete(),t=Mte(),n=Ite();function r(i){return t(i)?n(i):e(i)}return Y0=r,Y0}var X0,gC;function Tte(){if(gC)return X0;gC=1;var e=Wd(),t=Di(),n=Kn(),r=$te(),i=Ate(),o="[object Map]",s="[object Set]";function a(l){if(l==null)return 0;if(n(l))return r(l)?i(l):l.length;var c=t(l);return c==o||c==s?l.size:e(l).length}return X0=a,X0}var U0,mC;function Rte(){if(mC)return U0;mC=1;var e=wd(),t=A9(),n=Hp(),r=Zn(),i=Al(),o=Rt(),s=zi(),a=Uo(),l=fn(),c=es();function u(h,f,d){var p=o(h),g=p||s(h)||c(h);if(f=r(f,4),d==null){var m=h&&h.constructor;g?d=p?new m:[]:l(h)?d=a(m)?t(i(h)):{}:d={}}return(g?e:n)(h,function(v,b,_){return f(d,v,b,_)}),d}return U0=u,U0}var K0,yC;function kte(){if(yC)return K0;yC=1;var e=Ni(),t=Zo(),n=Rt(),r=e?e.isConcatSpreadable:void 0;function i(o){return n(o)||t(o)||!!(r&&o&&o[r])}return K0=i,K0}var Z0,vC;function Q0(){if(vC)return Z0;vC=1;var e=op(),t=kte();function n(r,i,o,s,a){var l=-1,c=r.length;for(o||(o=t),a||(a=[]);++l<c;){var u=r[l];i>0&&o(u)?i>1?n(u,i-1,o,s,a):e(a,u):s||(a[a.length]=u)}return a}return Z0=n,Z0}var J0,bC;function Lte(){if(bC)return J0;bC=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return J0=e,J0}var eg,_C;function wC(){if(_C)return eg;_C=1;var e=Lte(),t=Math.max;function n(r,i,o){return i=t(i===void 0?r.length-1:i,0),function(){for(var s=arguments,a=-1,l=t(s.length-i,0),c=Array(l);++a<l;)c[a]=s[i+a];a=-1;for(var u=Array(i+1);++a<i;)u[a]=s[a];return u[i]=o(c),e(r,this,u)}}return eg=n,eg}var tg,xC;function Nte(){if(xC)return tg;xC=1;var e=Lp(),t=y7(),n=Zr(),r=t?function(i,o){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:n;return tg=r,tg}var ng,CC;function zte(){if(CC)return ng;CC=1;var e=800,t=16,n=Date.now;function r(i){var o=0,s=0;return function(){var a=n(),l=t-(a-s);if(s=a,l>0){if(++o>=e)return arguments[0]}else o=0;return i.apply(void 0,arguments)}}return ng=r,ng}var rg,PC;function OC(){if(PC)return rg;PC=1;var e=Nte(),t=zte(),n=t(e);return rg=n,rg}var ig,SC;function Nl(){if(SC)return ig;SC=1;var e=Zr(),t=wC(),n=OC();function r(i,o){return n(t(i,o,e),i+"")}return ig=r,ig}var og,$C;function EC(){if($C)return og;$C=1;function e(t,n,r,i){for(var o=t.length,s=r+(i?1:-1);i?s--:++s<o;)if(n(t[s],s,t))return s;return-1}return og=e,og}var sg,MC;function Dte(){if(MC)return sg;MC=1;function e(t){return t!==t}return sg=e,sg}var ag,IC;function qte(){if(IC)return ag;IC=1;function e(t,n,r){for(var i=r-1,o=t.length;++i<o;)if(t[i]===n)return i;return-1}return ag=e,ag}var lg,AC;function Hte(){if(AC)return lg;AC=1;var e=EC(),t=Dte(),n=qte();function r(i,o,s){return o===o?n(i,o,s):e(i,t,s)}return lg=r,lg}var cg,TC;function jte(){if(TC)return cg;TC=1;var e=Hte();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return cg=t,cg}var ug,RC;function Fte(){if(RC)return ug;RC=1;function e(t,n,r){for(var i=-1,o=t==null?0:t.length;++i<o;)if(r(n,t[i]))return!0;return!1}return ug=e,ug}var hg,kC;function Bte(){if(kC)return hg;kC=1;function e(){}return hg=e,hg}var fg,LC;function Wte(){if(LC)return fg;LC=1;var e=y9(),t=Bte(),n=n0(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(o){return new e(o)}:t;return fg=i,fg}var dg,NC;function Vte(){if(NC)return dg;NC=1;var e=i8(),t=jte(),n=Fte(),r=a8(),i=Wte(),o=n0(),s=200;function a(l,c,u){var h=-1,f=t,d=l.length,p=!0,g=[],m=g;if(u)p=!1,f=n;else if(d>=s){var v=c?null:i(l);if(v)return o(v);p=!1,f=r,m=new e}else m=c?[]:g;e:for(;++h<d;){var b=l[h],_=c?c(b):b;if(b=u||b!==0?b:0,p&&_===_){for(var x=m.length;x--;)if(m[x]===_)continue e;c&&m.push(_),g.push(b)}else f(m,_,u)||(m!==g&&m.push(_),g.push(b))}return g}return dg=a,dg}var pg,zC;function DC(){if(zC)return pg;zC=1;var e=Kn(),t=Ln();function n(r){return t(r)&&e(r)}return pg=n,pg}var gg,qC;function Gte(){if(qC)return gg;qC=1;var e=Q0(),t=Nl(),n=Vte(),r=DC(),i=t(function(o){return n(e(o,1,r,!0))});return gg=i,gg}var mg,HC;function Yte(){if(HC)return mg;HC=1;var e=Rl();function t(n,r){return e(r,function(i){return n[i]})}return mg=t,mg}var yg,jC;function FC(){if(jC)return yg;jC=1;var e=Yte(),t=mr();function n(r){return r==null?[]:e(r,t(r))}return yg=n,yg}var vg,BC;function dn(){if(BC)return vg;BC=1;var e;if(typeof $f=="function")try{e={clone:ete(),constant:Lp(),each:J9(),filter:U8(),has:Q8(),isArray:Rt(),isEmpty:Pte(),isFunction:Uo(),isUndefined:tC(),keys:mr(),map:oC(),reduce:cC(),size:Tte(),transform:Rte(),union:Gte(),values:FC()}}catch(t){}return e||(e=window._),vg=e,vg}var bg,WC;function _g(){if(WC)return bg;WC=1;var e=dn();bg=i;var t="\0",n="\0",r="";function i(u){this._isDirected=e.has(u,"directed")?u.directed:!0,this._isMultigraph=e.has(u,"multigraph")?u.multigraph:!1,this._isCompound=e.has(u,"compound")?u.compound:!1,this._label=void 0,this._defaultNodeLabelFn=e.constant(void 0),this._defaultEdgeLabelFn=e.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[n]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(u){return this._label=u,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(u){return e.isFunction(u)||(u=e.constant(u)),this._defaultNodeLabelFn=u,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return e.keys(this._nodes)},i.prototype.sources=function(){var u=this;return e.filter(this.nodes(),function(h){return e.isEmpty(u._in[h])})},i.prototype.sinks=function(){var u=this;return e.filter(this.nodes(),function(h){return e.isEmpty(u._out[h])})},i.prototype.setNodes=function(u,h){var f=arguments,d=this;return e.each(u,function(p){f.length>1?d.setNode(p,h):d.setNode(p)}),this},i.prototype.setNode=function(u,h){return e.has(this._nodes,u)?(arguments.length>1&&(this._nodes[u]=h),this):(this._nodes[u]=arguments.length>1?h:this._defaultNodeLabelFn(u),this._isCompound&&(this._parent[u]=n,this._children[u]={},this._children[n][u]=!0),this._in[u]={},this._preds[u]={},this._out[u]={},this._sucs[u]={},++this._nodeCount,this)},i.prototype.node=function(u){return this._nodes[u]},i.prototype.hasNode=function(u){return e.has(this._nodes,u)},i.prototype.removeNode=function(u){var h=this;if(e.has(this._nodes,u)){var f=function(d){h.removeEdge(h._edgeObjs[d])};delete this._nodes[u],this._isCompound&&(this._removeFromParentsChildList(u),delete this._parent[u],e.each(this.children(u),function(d){h.setParent(d)}),delete this._children[u]),e.each(e.keys(this._in[u]),f),delete this._in[u],delete this._preds[u],e.each(e.keys(this._out[u]),f),delete this._out[u],delete this._sucs[u],--this._nodeCount}return this},i.prototype.setParent=function(u,h){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(e.isUndefined(h))h=n;else{h+="";for(var f=h;!e.isUndefined(f);f=this.parent(f))if(f===u)throw new Error("Setting "+h+" as parent of "+u+" would create a cycle");this.setNode(h)}return this.setNode(u),this._removeFromParentsChildList(u),this._parent[u]=h,this._children[h][u]=!0,this},i.prototype._removeFromParentsChildList=function(u){delete this._children[this._parent[u]][u]},i.prototype.parent=function(u){if(this._isCompound){var h=this._parent[u];if(h!==n)return h}},i.prototype.children=function(u){if(e.isUndefined(u)&&(u=n),this._isCompound){var h=this._children[u];if(h)return e.keys(h)}else{if(u===n)return this.nodes();if(this.hasNode(u))return[]}},i.prototype.predecessors=function(u){var h=this._preds[u];if(h)return e.keys(h)},i.prototype.successors=function(u){var h=this._sucs[u];if(h)return e.keys(h)},i.prototype.neighbors=function(u){var h=this.predecessors(u);if(h)return e.union(h,this.successors(u))},i.prototype.isLeaf=function(u){var h;return this.isDirected()?h=this.successors(u):h=this.neighbors(u),h.length===0},i.prototype.filterNodes=function(u){var h=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});h.setGraph(this.graph());var f=this;e.each(this._nodes,function(g,m){u(m)&&h.setNode(m,g)}),e.each(this._edgeObjs,function(g){h.hasNode(g.v)&&h.hasNode(g.w)&&h.setEdge(g,f.edge(g))});var d={};function p(g){var m=f.parent(g);return m===void 0||h.hasNode(m)?(d[g]=m,m):m in d?d[m]:p(m)}return this._isCompound&&e.each(h.nodes(),function(g){h.setParent(g,p(g))}),h},i.prototype.setDefaultEdgeLabel=function(u){return e.isFunction(u)||(u=e.constant(u)),this._defaultEdgeLabelFn=u,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return e.values(this._edgeObjs)},i.prototype.setPath=function(u,h){var f=this,d=arguments;return e.reduce(u,function(p,g){return d.length>1?f.setEdge(p,g,h):f.setEdge(p,g),g}),this},i.prototype.setEdge=function(){var u,h,f,d,p=!1,g=arguments[0];typeof g=="object"&&g!==null&&"v"in g?(u=g.v,h=g.w,f=g.name,arguments.length===2&&(d=arguments[1],p=!0)):(u=g,h=arguments[1],f=arguments[3],arguments.length>2&&(d=arguments[2],p=!0)),u=""+u,h=""+h,e.isUndefined(f)||(f=""+f);var m=a(this._isDirected,u,h,f);if(e.has(this._edgeLabels,m))return p&&(this._edgeLabels[m]=d),this;if(!e.isUndefined(f)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(u),this.setNode(h),this._edgeLabels[m]=p?d:this._defaultEdgeLabelFn(u,h,f);var v=l(this._isDirected,u,h,f);return u=v.v,h=v.w,Object.freeze(v),this._edgeObjs[m]=v,o(this._preds[h],u),o(this._sucs[u],h),this._in[h][m]=v,this._out[u][m]=v,this._edgeCount++,this},i.prototype.edge=function(u,h,f){var d=arguments.length===1?c(this._isDirected,arguments[0]):a(this._isDirected,u,h,f);return this._edgeLabels[d]},i.prototype.hasEdge=function(u,h,f){var d=arguments.length===1?c(this._isDirected,arguments[0]):a(this._isDirected,u,h,f);return e.has(this._edgeLabels,d)},i.prototype.removeEdge=function(u,h,f){var d=arguments.length===1?c(this._isDirected,arguments[0]):a(this._isDirected,u,h,f),p=this._edgeObjs[d];return p&&(u=p.v,h=p.w,delete this._edgeLabels[d],delete this._edgeObjs[d],s(this._preds[h],u),s(this._sucs[u],h),delete this._in[h][d],delete this._out[u][d],this._edgeCount--),this},i.prototype.inEdges=function(u,h){var f=this._in[u];if(f){var d=e.values(f);return h?e.filter(d,function(p){return p.v===h}):d}},i.prototype.outEdges=function(u,h){var f=this._out[u];if(f){var d=e.values(f);return h?e.filter(d,function(p){return p.w===h}):d}},i.prototype.nodeEdges=function(u,h){var f=this.inEdges(u,h);if(f)return f.concat(this.outEdges(u,h))};function o(u,h){u[h]?u[h]++:u[h]=1}function s(u,h){--u[h]||delete u[h]}function a(u,h,f,d){var p=""+h,g=""+f;if(!u&&p>g){var m=p;p=g,g=m}return p+r+g+r+(e.isUndefined(d)?t:d)}function l(u,h,f,d){var p=""+h,g=""+f;if(!u&&p>g){var m=p;p=g,g=m}var v={v:p,w:g};return d&&(v.name=d),v}function c(u,h){return a(u,h.v,h.w,h.name)}return bg}var wg,VC;function Xte(){return VC||(VC=1,wg="2.1.8"),wg}var xg,GC;function Ute(){return GC||(GC=1,xg={Graph:_g(),version:Xte()}),xg}var Cg,YC;function Kte(){if(YC)return Cg;YC=1;var e=dn(),t=_g();Cg={write:n,read:o};function n(s){var a={options:{directed:s.isDirected(),multigraph:s.isMultigraph(),compound:s.isCompound()},nodes:r(s),edges:i(s)};return e.isUndefined(s.graph())||(a.value=e.clone(s.graph())),a}function r(s){return e.map(s.nodes(),function(a){var l=s.node(a),c=s.parent(a),u={v:a};return e.isUndefined(l)||(u.value=l),e.isUndefined(c)||(u.parent=c),u})}function i(s){return e.map(s.edges(),function(a){var l=s.edge(a),c={v:a.v,w:a.w};return e.isUndefined(a.name)||(c.name=a.name),e.isUndefined(l)||(c.value=l),c})}function o(s){var a=new t(s.options).setGraph(s.value);return e.each(s.nodes,function(l){a.setNode(l.v,l.value),l.parent&&a.setParent(l.v,l.parent)}),e.each(s.edges,function(l){a.setEdge({v:l.v,w:l.w,name:l.name},l.value)}),a}return Cg}var Pg,XC;function Zte(){if(XC)return Pg;XC=1;var e=dn();Pg=t;function t(n){var r={},i=[],o;function s(a){e.has(r,a)||(r[a]=!0,o.push(a),e.each(n.successors(a),s),e.each(n.predecessors(a),s))}return e.each(n.nodes(),function(a){o=[],s(a),o.length&&i.push(o)}),i}return Pg}var Og,UC;function KC(){if(UC)return Og;UC=1;var e=dn();Og=t;function t(){this._arr=[],this._keyIndices={}}return t.prototype.size=function(){return this._arr.length},t.prototype.keys=function(){return this._arr.map(function(n){return n.key})},t.prototype.has=function(n){return e.has(this._keyIndices,n)},t.prototype.priority=function(n){var r=this._keyIndices[n];if(r!==void 0)return this._arr[r].priority},t.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},t.prototype.add=function(n,r){var i=this._keyIndices;if(n=String(n),!e.has(i,n)){var o=this._arr,s=o.length;return i[n]=s,o.push({key:n,priority:r}),this._decrease(s),!0}return!1},t.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var n=this._arr.pop();return delete this._keyIndices[n.key],this._heapify(0),n.key},t.prototype.decrease=function(n,r){var i=this._keyIndices[n];if(r>this._arr[i].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[i].priority+" New: "+r);this._arr[i].priority=r,this._decrease(i)},t.prototype._heapify=function(n){var r=this._arr,i=2*n,o=i+1,s=n;i<r.length&&(s=r[i].priority<r[s].priority?i:s,o<r.length&&(s=r[o].priority<r[s].priority?o:s),s!==n&&(this._swap(n,s),this._heapify(s)))},t.prototype._decrease=function(n){for(var r=this._arr,i=r[n].priority,o;n!==0&&(o=n>>1,!(r[o].priority<i));)this._swap(n,o),n=o},t.prototype._swap=function(n,r){var i=this._arr,o=this._keyIndices,s=i[n],a=i[r];i[n]=a,i[r]=s,o[a.key]=n,o[s.key]=r},Og}var Sg,ZC;function QC(){if(ZC)return Sg;ZC=1;var e=dn(),t=KC();Sg=r;var n=e.constant(1);function r(o,s,a,l){return i(o,String(s),a||n,l||function(c){return o.outEdges(c)})}function i(o,s,a,l){var c={},u=new t,h,f,d=function(p){var g=p.v!==h?p.v:p.w,m=c[g],v=a(p),b=f.distance+v;if(v<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+p+" Weight: "+v);b<m.distance&&(m.distance=b,m.predecessor=h,u.decrease(g,b))};for(o.nodes().forEach(function(p){var g=p===s?0:Number.POSITIVE_INFINITY;c[p]={distance:g},u.add(p,g)});u.size()>0&&(h=u.removeMin(),f=c[h],f.distance!==Number.POSITIVE_INFINITY);)l(h).forEach(d);return c}return Sg}var $g,JC;function Qte(){if(JC)return $g;JC=1;var e=QC(),t=dn();$g=n;function n(r,i,o){return t.transform(r.nodes(),function(s,a){s[a]=e(r,a,i,o)},{})}return $g}var Eg,eP;function tP(){if(eP)return Eg;eP=1;var e=dn();Eg=t;function t(n){var r=0,i=[],o={},s=[];function a(l){var c=o[l]={onStack:!0,lowlink:r,index:r++};if(i.push(l),n.successors(l).forEach(function(f){e.has(o,f)?o[f].onStack&&(c.lowlink=Math.min(c.lowlink,o[f].index)):(a(f),c.lowlink=Math.min(c.lowlink,o[f].lowlink))}),c.lowlink===c.index){var u=[],h;do h=i.pop(),o[h].onStack=!1,u.push(h);while(l!==h);s.push(u)}}return n.nodes().forEach(function(l){e.has(o,l)||a(l)}),s}return Eg}var Mg,nP;function Jte(){if(nP)return Mg;nP=1;var e=dn(),t=tP();Mg=n;function n(r){return e.filter(t(r),function(i){return i.length>1||i.length===1&&r.hasEdge(i[0],i[0])})}return Mg}var Ig,rP;function ene(){if(rP)return Ig;rP=1;var e=dn();Ig=n;var t=e.constant(1);function n(i,o,s){return r(i,o||t,s||function(a){return i.outEdges(a)})}function r(i,o,s){var a={},l=i.nodes();return l.forEach(function(c){a[c]={},a[c][c]={distance:0},l.forEach(function(u){c!==u&&(a[c][u]={distance:Number.POSITIVE_INFINITY})}),s(c).forEach(function(u){var h=u.v===c?u.w:u.v,f=o(u);a[c][h]={distance:f,predecessor:c}})}),l.forEach(function(c){var u=a[c];l.forEach(function(h){var f=a[h];l.forEach(function(d){var p=f[c],g=u[d],m=f[d],v=p.distance+g.distance;v<m.distance&&(m.distance=v,m.predecessor=g.predecessor)})})}),a}return Ig}var Ag,iP;function oP(){if(iP)return Ag;iP=1;var e=dn();Ag=t,t.CycleException=n;function t(r){var i={},o={},s=[];function a(l){if(e.has(o,l))throw new n;e.has(i,l)||(o[l]=!0,i[l]=!0,e.each(r.predecessors(l),a),delete o[l],s.push(l))}if(e.each(r.sinks(),a),e.size(i)!==r.nodeCount())throw new n;return s}function n(){}return n.prototype=new Error,Ag}var Tg,sP;function tne(){if(sP)return Tg;sP=1;var e=oP();Tg=t;function t(n){try{e(n)}catch(r){if(r instanceof e.CycleException)return!1;throw r}return!0}return Tg}var Rg,aP;function lP(){if(aP)return Rg;aP=1;var e=dn();Rg=t;function t(r,i,o){e.isArray(i)||(i=[i]);var s=(r.isDirected()?r.successors:r.neighbors).bind(r),a=[],l={};return e.each(i,function(c){if(!r.hasNode(c))throw new Error("Graph does not have node: "+c);n(r,c,o==="post",l,s,a)}),a}function n(r,i,o,s,a,l){e.has(s,i)||(s[i]=!0,o||l.push(i),e.each(a(i),function(c){n(r,c,o,s,a,l)}),o&&l.push(i))}return Rg}var kg,cP;function nne(){if(cP)return kg;cP=1;var e=lP();kg=t;function t(n,r){return e(n,r,"post")}return kg}var Lg,uP;function rne(){if(uP)return Lg;uP=1;var e=lP();Lg=t;function t(n,r){return e(n,r,"pre")}return Lg}var Ng,hP;function ine(){if(hP)return Ng;hP=1;var e=dn(),t=_g(),n=KC();Ng=r;function r(i,o){var s=new t,a={},l=new n,c;function u(f){var d=f.v===c?f.w:f.v,p=l.priority(d);if(p!==void 0){var g=o(f);g<p&&(a[d]=c,l.decrease(d,g))}}if(i.nodeCount()===0)return s;e.each(i.nodes(),function(f){l.add(f,Number.POSITIVE_INFINITY),s.setNode(f)}),l.decrease(i.nodes()[0],0);for(var h=!1;l.size()>0;){if(c=l.removeMin(),e.has(a,c))s.setEdge(c,a[c]);else{if(h)throw new Error("Input graph is not connected: "+i);h=!0}i.nodeEdges(c).forEach(u)}return s}return Ng}var zg,fP;function one(){return fP||(fP=1,zg={components:Zte(),dijkstra:QC(),dijkstraAll:Qte(),findCycles:Jte(),floydWarshall:ene(),isAcyclic:tne(),postorder:nne(),preorder:rne(),prim:ine(),tarjan:tP(),topsort:oP()}),zg}var Dg,dP;function sne(){if(dP)return Dg;dP=1;var e=Ute();return Dg={Graph:e.Graph,json:Kte(),alg:one(),version:e.version},Dg}var qg,pP;function wn(){if(pP)return qg;pP=1;var e;if(typeof $f=="function")try{e=sne()}catch(t){}return e||(e=window.graphlib),qg=e,qg}var Hg,gP;function ane(){if(gP)return Hg;gP=1;var e=q9(),t=1,n=4;function r(i){return e(i,t|n)}return Hg=r,Hg}var jg,mP;function zl(){if(mP)return jg;mP=1;var e=Li(),t=Kn(),n=El(),r=fn();function i(o,s,a){if(!r(a))return!1;var l=typeof s;return(l=="number"?t(a)&&n(s,a.length):l=="string"&&s in a)?e(a[s],o):!1}return jg=i,jg}var Fg,yP;function lne(){if(yP)return Fg;yP=1;var e=Nl(),t=Li(),n=zl(),r=Kr(),i=Object.prototype,o=i.hasOwnProperty,s=e(function(a,l){a=Object(a);var c=-1,u=l.length,h=u>2?l[2]:void 0;for(h&&n(l[0],l[1],h)&&(u=1);++c<u;)for(var f=l[c],d=r(f),p=-1,g=d.length;++p<g;){var m=d[p],v=a[m];(v===void 0||t(v,i[m])&&!o.call(a,m))&&(a[m]=f[m])}return a});return Fg=s,Fg}var Bg,vP;function cne(){if(vP)return Bg;vP=1;var e=Zn(),t=Kn(),n=mr();function r(i){return function(o,s,a){var l=Object(o);if(!t(o)){var c=e(s,3);o=n(o),s=function(h){return c(l[h],h,l)}}var u=i(o,s,a);return u>-1?l[c?o[u]:u]:void 0}}return Bg=r,Bg}var Wg,bP;function une(){if(bP)return Wg;bP=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return Wg=t,Wg}var Vg,_P;function hne(){if(_P)return Vg;_P=1;var e=une(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return Vg=n,Vg}var Gg,wP;function fne(){if(wP)return Gg;wP=1;var e=hne(),t=fn(),n=qi(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function l(c){if(typeof c=="number")return c;if(n(c))return r;if(t(c)){var u=typeof c.valueOf=="function"?c.valueOf():c;c=t(u)?u+"":u}if(typeof c!="string")return c===0?c:+c;c=e(c);var h=o.test(c);return h||s.test(c)?a(c.slice(2),h?2:8):i.test(c)?r:+c}return Gg=l,Gg}var Yg,xP;function CP(){if(xP)return Yg;xP=1;var e=fne(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var o=i<0?-1:1;return o*n}return i===i?i:0}return Yg=r,Yg}var Xg,PP;function dne(){if(PP)return Xg;PP=1;var e=CP();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return Xg=t,Xg}var Ug,OP;function pne(){if(OP)return Ug;OP=1;var e=EC(),t=Zn(),n=dne(),r=Math.max;function i(o,s,a){var l=o==null?0:o.length;if(!l)return-1;var c=a==null?0:n(a);return c<0&&(c=r(l+c,0)),e(o,t(s,3),c)}return Ug=i,Ug}var Kg,SP;function gne(){if(SP)return Kg;SP=1;var e=cne(),t=pne(),n=e(t);return Kg=n,Kg}var Zg,$P;function EP(){if($P)return Zg;$P=1;var e=Q0();function t(n){var r=n==null?0:n.length;return r?e(n,1):[]}return Zg=t,Zg}var Qg,MP;function mne(){if(MP)return Qg;MP=1;var e=Dp(),t=U9(),n=Kr();function r(i,o){return i==null?i:e(i,t(o),n)}return Qg=r,Qg}var Jg,IP;function yne(){if(IP)return Jg;IP=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return Jg=e,Jg}var e1,AP;function vne(){if(AP)return e1;AP=1;var e=Sl(),t=Hp(),n=Zn();function r(i,o){var s={};return o=n(o,3),t(i,function(a,l,c){e(s,l,o(a,l,c))}),s}return e1=r,e1}var t1,TP;function n1(){if(TP)return t1;TP=1;var e=qi();function t(n,r,i){for(var o=-1,s=n.length;++o<s;){var a=n[o],l=r(a);if(l!=null&&(c===void 0?l===l&&!e(l):i(l,c)))var c=l,u=a}return u}return t1=t,t1}var r1,RP;function bne(){if(RP)return r1;RP=1;function e(t,n){return t>n}return r1=e,r1}var i1,kP;function _ne(){if(kP)return i1;kP=1;var e=n1(),t=bne(),n=Zr();function r(i){return i&&i.length?e(i,n,t):void 0}return i1=r,i1}var o1,LP;function NP(){if(LP)return o1;LP=1;var e=Sl(),t=Li();function n(r,i,o){(o!==void 0&&!t(r[i],o)||o===void 0&&!(i in r))&&e(r,i,o)}return o1=n,o1}var s1,zP;function wne(){if(zP)return s1;zP=1;var e=Xr(),t=Al(),n=Ln(),r="[object Object]",i=Function.prototype,o=Object.prototype,s=i.toString,a=o.hasOwnProperty,l=s.call(Object);function c(u){if(!n(u)||e(u)!=r)return!1;var h=t(u);if(h===null)return!0;var f=a.call(h,"constructor")&&h.constructor;return typeof f=="function"&&f instanceof f&&s.call(f)==l}return s1=c,s1}var a1,DP;function qP(){if(DP)return a1;DP=1;function e(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}return a1=e,a1}var l1,HP;function xne(){if(HP)return l1;HP=1;var e=Ko(),t=Kr();function n(r){return e(r,t(r))}return l1=n,l1}var c1,jP;function Cne(){if(jP)return c1;jP=1;var e=NP(),t=U7(),n=E9(),r=Z7(),i=R9(),o=Zo(),s=Rt(),a=DC(),l=zi(),c=Uo(),u=fn(),h=wne(),f=es(),d=qP(),p=xne();function g(m,v,b,_,x,w,C){var P=d(m,b),O=d(v,b),$=C.get(O);if($){e(m,b,$);return}var S=w?w(P,O,b+"",m,v,C):void 0,M=S===void 0;if(M){var I=s(O),E=!I&&l(O),A=!I&&!E&&f(O);S=O,I||E||A?s(P)?S=P:a(P)?S=r(P):E?(M=!1,S=t(O,!0)):A?(M=!1,S=n(O,!0)):S=[]:h(O)||o(O)?(S=P,o(P)?S=p(P):(!u(P)||c(P))&&(S=i(O))):M=!1}M&&(C.set(O,S),x(S,O,_,w,C),C.delete(O)),e(m,b,S)}return c1=g,c1}var u1,FP;function Pne(){if(FP)return u1;FP=1;var e=Ol(),t=NP(),n=Dp(),r=Cne(),i=fn(),o=Kr(),s=qP();function a(l,c,u,h,f){l!==c&&n(c,function(d,p){if(f||(f=new e),i(d))r(l,c,p,u,a,h,f);else{var g=h?h(s(l,p),d,p+"",l,c,f):void 0;g===void 0&&(g=d),t(l,p,g)}},o)}return u1=a,u1}var h1,BP;function One(){if(BP)return h1;BP=1;var e=Nl(),t=zl();function n(r){return e(function(i,o){var s=-1,a=o.length,l=a>1?o[a-1]:void 0,c=a>2?o[2]:void 0;for(l=r.length>3&&typeof l=="function"?(a--,l):void 0,c&&t(o[0],o[1],c)&&(l=a<3?void 0:l,a=1),i=Object(i);++s<a;){var u=o[s];u&&r(i,u,s,l)}return i})}return h1=n,h1}var f1,WP;function Sne(){if(WP)return f1;WP=1;var e=Pne(),t=One(),n=t(function(r,i,o){e(r,i,o)});return f1=n,f1}var d1,VP;function GP(){if(VP)return d1;VP=1;function e(t,n){return t<n}return d1=e,d1}var p1,YP;function $ne(){if(YP)return p1;YP=1;var e=n1(),t=GP(),n=Zr();function r(i){return i&&i.length?e(i,n,t):void 0}return p1=r,p1}var g1,XP;function Ene(){if(XP)return g1;XP=1;var e=n1(),t=Zn(),n=GP();function r(i,o){return i&&i.length?e(i,t(o,2),n):void 0}return g1=r,g1}var m1,UP;function Mne(){if(UP)return m1;UP=1;var e=_n(),t=function(){return e.Date.now()};return m1=t,m1}var y1,KP;function Ine(){if(KP)return y1;KP=1;var e=$l(),t=kl(),n=El(),r=fn(),i=ns();function o(s,a,l,c){if(!r(s))return s;a=t(a,s);for(var u=-1,h=a.length,f=h-1,d=s;d!=null&&++u<h;){var p=i(a[u]),g=l;if(p==="__proto__"||p==="constructor"||p==="prototype")return s;if(u!=f){var m=d[p];g=c?c(m,p,d):void 0,g===void 0&&(g=r(m)?m:n(a[u+1])?[]:{})}e(d,p,g),d=d[p]}return s}return y1=o,y1}var v1,ZP;function Ane(){if(ZP)return v1;ZP=1;var e=Ll(),t=Ine(),n=kl();function r(i,o,s){for(var a=-1,l=o.length,c={};++a<l;){var u=o[a],h=e(i,u);s(h,u)&&t(c,n(u,i),h)}return c}return v1=r,v1}var b1,QP;function Tne(){if(QP)return b1;QP=1;var e=Ane(),t=j8();function n(r,i){return e(r,i,function(o,s){return t(r,s)})}return b1=n,b1}var _1,JP;function Rne(){if(JP)return _1;JP=1;var e=EP(),t=wC(),n=OC();function r(i){return n(t(i,void 0,e),i+"")}return _1=r,_1}var w1,eO;function kne(){if(eO)return w1;eO=1;var e=Tne(),t=Rne(),n=t(function(r,i){return r==null?{}:e(r,i)});return w1=n,w1}var x1,tO;function Lne(){if(tO)return x1;tO=1;var e=Math.ceil,t=Math.max;function n(r,i,o,s){for(var a=-1,l=t(e((i-r)/(o||1)),0),c=Array(l);l--;)c[s?l:++a]=r,r+=o;return c}return x1=n,x1}var C1,nO;function Nne(){if(nO)return C1;nO=1;var e=Lne(),t=zl(),n=CP();function r(i){return function(o,s,a){return a&&typeof a!="number"&&t(o,s,a)&&(s=a=void 0),o=n(o),s===void 0?(s=o,o=0):s=n(s),a=a===void 0?o<s?1:-1:n(a),e(o,s,a,i)}}return C1=r,C1}var P1,rO;function zne(){if(rO)return P1;rO=1;var e=Nne(),t=e();return P1=t,P1}var O1,iO;function Dne(){if(iO)return O1;iO=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return O1=e,O1}var S1,oO;function qne(){if(oO)return S1;oO=1;var e=qi();function t(n,r){if(n!==r){var i=n!==void 0,o=n===null,s=n===n,a=e(n),l=r!==void 0,c=r===null,u=r===r,h=e(r);if(!c&&!h&&!a&&n>r||a&&l&&u&&!c&&!h||o&&l&&u||!i&&u||!s)return 1;if(!o&&!a&&!h&&n<r||h&&i&&s&&!o&&!a||c&&i&&s||!l&&s||!u)return-1}return 0}return S1=t,S1}var $1,sO;function Hne(){if(sO)return $1;sO=1;var e=qne();function t(n,r,i){for(var o=-1,s=n.criteria,a=r.criteria,l=s.length,c=i.length;++o<l;){var u=e(s[o],a[o]);if(u){if(o>=c)return u;var h=i[o];return u*(h=="desc"?-1:1)}}return n.index-r.index}return $1=t,$1}var E1,aO;function jne(){if(aO)return E1;aO=1;var e=Rl(),t=Ll(),n=Zn(),r=rC(),i=Dne(),o=Ml(),s=Hne(),a=Zr(),l=Rt();function c(u,h,f){h.length?h=e(h,function(g){return l(g)?function(m){return t(m,g.length===1?g[0]:g)}:g}):h=[a];var d=-1;h=e(h,o(n));var p=r(u,function(g,m,v){var b=e(h,function(_){return _(g)});return{criteria:b,index:++d,value:g}});return i(p,function(g,m){return s(g,m,f)})}return E1=c,E1}var M1,lO;function Fne(){if(lO)return M1;lO=1;var e=Q0(),t=jne(),n=Nl(),r=zl(),i=n(function(o,s){if(o==null)return[];var a=s.length;return a>1&&r(o,s[0],s[1])?s=[]:a>2&&r(s[0],s[1],s[2])&&(s=[s[0]]),t(o,e(s,1),[])});return M1=i,M1}var I1,cO;function Bne(){if(cO)return I1;cO=1;var e=T8(),t=0;function n(r){var i=++t;return e(r)+i}return I1=n,I1}var A1,uO;function Wne(){if(uO)return A1;uO=1;function e(t,n,r){for(var i=-1,o=t.length,s=n.length,a={};++i<o;){var l=i<s?n[i]:void 0;r(a,t[i],l)}return a}return A1=e,A1}var T1,hO;function Vne(){if(hO)return T1;hO=1;var e=$l(),t=Wne();function n(r,i){return t(r||[],i||[],e)}return T1=n,T1}var R1,fO;function wt(){if(fO)return R1;fO=1;var e;if(typeof $f=="function")try{e={cloneDeep:ane(),constant:Lp(),defaults:lne(),each:J9(),filter:U8(),find:gne(),flatten:EP(),forEach:Z9(),forIn:mne(),has:Q8(),isUndefined:tC(),last:yne(),map:oC(),mapValues:vne(),max:_ne(),merge:Sne(),min:$ne(),minBy:Ene(),now:Mne(),pick:kne(),range:zne(),reduce:cC(),sortBy:Fne(),uniqueId:Bne(),values:FC(),zipObject:Vne()}}catch(t){}return e||(e=window._),R1=e,R1}var k1,dO;function Gne(){if(dO)return k1;dO=1,k1=e;function e(){var r={};r._next=r._prev=r,this._sentinel=r}e.prototype.dequeue=function(){var r=this._sentinel,i=r._prev;if(i!==r)return t(i),i},e.prototype.enqueue=function(r){var i=this._sentinel;r._prev&&r._next&&t(r),r._next=i._next,i._next._prev=r,i._next=r,r._prev=i},e.prototype.toString=function(){for(var r=[],i=this._sentinel,o=i._prev;o!==i;)r.push(JSON.stringify(o,n)),o=o._prev;return"["+r.join(", ")+"]"};function t(r){r._prev._next=r._next,r._next._prev=r._prev,delete r._next,delete r._prev}function n(r,i){if(r!=="_next"&&r!=="_prev")return i}return k1}var L1,pO;function Yne(){if(pO)return L1;pO=1;var e=wt(),t=wn().Graph,n=Gne();L1=i;var r=e.constant(1);function i(c,u){if(c.nodeCount()<=1)return[];var h=a(c,u||r),f=o(h.graph,h.buckets,h.zeroIdx);return e.flatten(e.map(f,function(d){return c.outEdges(d.v,d.w)}),!0)}function o(c,u,h){for(var f=[],d=u[u.length-1],p=u[0],g;c.nodeCount();){for(;g=p.dequeue();)s(c,u,h,g);for(;g=d.dequeue();)s(c,u,h,g);if(c.nodeCount()){for(var m=u.length-2;m>0;--m)if(g=u[m].dequeue(),g){f=f.concat(s(c,u,h,g,!0));break}}}return f}function s(c,u,h,f,d){var p=d?[]:void 0;return e.forEach(c.inEdges(f.v),function(g){var m=c.edge(g),v=c.node(g.v);d&&p.push({v:g.v,w:g.w}),v.out-=m,l(u,h,v)}),e.forEach(c.outEdges(f.v),function(g){var m=c.edge(g),v=g.w,b=c.node(v);b.in-=m,l(u,h,b)}),c.removeNode(f.v),p}function a(c,u){var h=new t,f=0,d=0;e.forEach(c.nodes(),function(m){h.setNode(m,{v:m,in:0,out:0})}),e.forEach(c.edges(),function(m){var v=h.edge(m.v,m.w)||0,b=u(m),_=v+b;h.setEdge(m.v,m.w,_),d=Math.max(d,h.node(m.v).out+=b),f=Math.max(f,h.node(m.w).in+=b)});var p=e.range(d+f+3).map(function(){return new n}),g=f+1;return e.forEach(h.nodes(),function(m){l(p,g,h.node(m))}),{graph:h,buckets:p,zeroIdx:g}}function l(c,u,h){h.out?h.in?c[h.out-h.in+u].enqueue(h):c[c.length-1].enqueue(h):c[0].enqueue(h)}return L1}var N1,gO;function Xne(){if(gO)return N1;gO=1;var e=wt(),t=Yne();N1={run:n,undo:i};function n(o){var s=o.graph().acyclicer==="greedy"?t(o,a(o)):r(o);e.forEach(s,function(l){var c=o.edge(l);o.removeEdge(l),c.forwardName=l.name,c.reversed=!0,o.setEdge(l.w,l.v,c,e.uniqueId("rev"))});function a(l){return function(c){return l.edge(c).weight}}}function r(o){var s=[],a={},l={};function c(u){e.has(l,u)||(l[u]=!0,a[u]=!0,e.forEach(o.outEdges(u),function(h){e.has(a,h.w)?s.push(h):c(h.w)}),delete a[u])}return e.forEach(o.nodes(),c),s}function i(o){e.forEach(o.edges(),function(s){var a=o.edge(s);if(a.reversed){o.removeEdge(s);var l=a.forwardName;delete a.reversed,delete a.forwardName,o.setEdge(s.w,s.v,a,l)}})}return N1}var z1,mO;function on(){if(mO)return z1;mO=1;var e=wt(),t=wn().Graph;z1={addDummyNode:n,simplify:r,asNonCompoundGraph:i,successorWeights:o,predecessorWeights:s,intersectRect:a,buildLayerMatrix:l,normalizeRanks:c,removeEmptyRanks:u,addBorderNode:h,maxRank:f,partition:d,time:p,notime:g};function n(m,v,b,_){var x;do x=e.uniqueId(_);while(m.hasNode(x));return b.dummy=v,m.setNode(x,b),x}function r(m){var v=new t().setGraph(m.graph());return e.forEach(m.nodes(),function(b){v.setNode(b,m.node(b))}),e.forEach(m.edges(),function(b){var _=v.edge(b.v,b.w)||{weight:0,minlen:1},x=m.edge(b);v.setEdge(b.v,b.w,{weight:_.weight+x.weight,minlen:Math.max(_.minlen,x.minlen)})}),v}function i(m){var v=new t({multigraph:m.isMultigraph()}).setGraph(m.graph());return e.forEach(m.nodes(),function(b){m.children(b).length||v.setNode(b,m.node(b))}),e.forEach(m.edges(),function(b){v.setEdge(b,m.edge(b))}),v}function o(m){var v=e.map(m.nodes(),function(b){var _={};return e.forEach(m.outEdges(b),function(x){_[x.w]=(_[x.w]||0)+m.edge(x).weight}),_});return e.zipObject(m.nodes(),v)}function s(m){var v=e.map(m.nodes(),function(b){var _={};return e.forEach(m.inEdges(b),function(x){_[x.v]=(_[x.v]||0)+m.edge(x).weight}),_});return e.zipObject(m.nodes(),v)}function a(m,v){var b=m.x,_=m.y,x=v.x-b,w=v.y-_,C=m.width/2,P=m.height/2;if(!x&&!w)throw new Error("Not possible to find intersection inside of the rectangle");var O,$;return Math.abs(w)*C>Math.abs(x)*P?(w<0&&(P=-P),O=P*x/w,$=P):(x<0&&(C=-C),O=C,$=C*w/x),{x:b+O,y:_+$}}function l(m){var v=e.map(e.range(f(m)+1),function(){return[]});return e.forEach(m.nodes(),function(b){var _=m.node(b),x=_.rank;e.isUndefined(x)||(v[x][_.order]=b)}),v}function c(m){var v=e.min(e.map(m.nodes(),function(b){return m.node(b).rank}));e.forEach(m.nodes(),function(b){var _=m.node(b);e.has(_,"rank")&&(_.rank-=v)})}function u(m){var v=e.min(e.map(m.nodes(),function(w){return m.node(w).rank})),b=[];e.forEach(m.nodes(),function(w){var C=m.node(w).rank-v;b[C]||(b[C]=[]),b[C].push(w)});var _=0,x=m.graph().nodeRankFactor;e.forEach(b,function(w,C){e.isUndefined(w)&&C%x!==0?--_:_&&e.forEach(w,function(P){m.node(P).rank+=_})})}function h(m,v,b,_){var x={width:0,height:0};return arguments.length>=4&&(x.rank=b,x.order=_),n(m,"border",x,v)}function f(m){return e.max(e.map(m.nodes(),function(v){var b=m.node(v).rank;if(!e.isUndefined(b))return b}))}function d(m,v){var b={lhs:[],rhs:[]};return e.forEach(m,function(_){v(_)?b.lhs.push(_):b.rhs.push(_)}),b}function p(m,v){var b=e.now();try{return v()}finally{console.log(m+" time: "+(e.now()-b)+"ms")}}function g(m,v){return v()}return z1}var D1,yO;function Une(){if(yO)return D1;yO=1;var e=wt(),t=on();D1={run:n,undo:i};function n(o){o.graph().dummyChains=[],e.forEach(o.edges(),function(s){r(o,s)})}function r(o,s){var a=s.v,l=o.node(a).rank,c=s.w,u=o.node(c).rank,h=s.name,f=o.edge(s),d=f.labelRank;if(u!==l+1){o.removeEdge(s);var p,g,m;for(m=0,++l;l<u;++m,++l)f.points=[],g={width:0,height:0,edgeLabel:f,edgeObj:s,rank:l},p=t.addDummyNode(o,"edge",g,"_d"),l===d&&(g.width=f.width,g.height=f.height,g.dummy="edge-label",g.labelpos=f.labelpos),o.setEdge(a,p,{weight:f.weight},h),m===0&&o.graph().dummyChains.push(p),a=p;o.setEdge(a,c,{weight:f.weight},h)}}function i(o){e.forEach(o.graph().dummyChains,function(s){var a=o.node(s),l=a.edgeLabel,c;for(o.setEdge(a.edgeObj,l);a.dummy;)c=o.successors(s)[0],o.removeNode(s),l.points.push({x:a.x,y:a.y}),a.dummy==="edge-label"&&(l.x=a.x,l.y=a.y,l.width=a.width,l.height=a.height),s=c,a=o.node(s)})}return D1}var q1,vO;function Dl(){if(vO)return q1;vO=1;var e=wt();q1={longestPath:t,slack:n};function t(r){var i={};function o(s){var a=r.node(s);if(e.has(i,s))return a.rank;i[s]=!0;var l=e.min(e.map(r.outEdges(s),function(c){return o(c.w)-r.edge(c).minlen}));return(l===Number.POSITIVE_INFINITY||l===void 0||l===null)&&(l=0),a.rank=l}e.forEach(r.sources(),o)}function n(r,i){return r.node(i.w).rank-r.node(i.v).rank-r.edge(i).minlen}return q1}var H1,bO;function _O(){if(bO)return H1;bO=1;var e=wt(),t=wn().Graph,n=Dl().slack;H1=r;function r(a){var l=new t({directed:!1}),c=a.nodes()[0],u=a.nodeCount();l.setNode(c,{});for(var h,f;i(l,a)<u;)h=o(l,a),f=l.hasNode(h.v)?n(a,h):-n(a,h),s(l,a,f);return l}function i(a,l){function c(u){e.forEach(l.nodeEdges(u),function(h){var f=h.v,d=u===f?h.w:f;!a.hasNode(d)&&!n(l,h)&&(a.setNode(d,{}),a.setEdge(u,d,{}),c(d))})}return e.forEach(a.nodes(),c),a.nodeCount()}function o(a,l){return e.minBy(l.edges(),function(c){if(a.hasNode(c.v)!==a.hasNode(c.w))return n(l,c)})}function s(a,l,c){e.forEach(a.nodes(),function(u){l.node(u).rank+=c})}return H1}var j1,wO;function Kne(){if(wO)return j1;wO=1;var e=wt(),t=_O(),n=Dl().slack,r=Dl().longestPath,i=wn().alg.preorder,o=wn().alg.postorder,s=on().simplify;j1=a,a.initLowLimValues=h,a.initCutValues=l,a.calcCutValue=u,a.leaveEdge=d,a.enterEdge=p,a.exchangeEdges=g;function a(_){_=s(_),r(_);var x=t(_);h(x),l(x,_);for(var w,C;w=d(x);)C=p(x,_,w),g(x,_,w,C)}function l(_,x){var w=o(_,_.nodes());w=w.slice(0,w.length-1),e.forEach(w,function(C){c(_,x,C)})}function c(_,x,w){var C=_.node(w),P=C.parent;_.edge(w,P).cutvalue=u(_,x,w)}function u(_,x,w){var C=_.node(w),P=C.parent,O=!0,$=x.edge(w,P),S=0;return $||(O=!1,$=x.edge(P,w)),S=$.weight,e.forEach(x.nodeEdges(w),function(M){var I=M.v===w,E=I?M.w:M.v;if(E!==P){var A=I===O,T=x.edge(M).weight;if(S+=A?T:-T,v(_,w,E)){var N=_.edge(w,E).cutvalue;S+=A?-N:N}}}),S}function h(_,x){arguments.length<2&&(x=_.nodes()[0]),f(_,{},1,x)}function f(_,x,w,C,P){var O=w,$=_.node(C);return x[C]=!0,e.forEach(_.neighbors(C),function(S){e.has(x,S)||(w=f(_,x,w,S,C))}),$.low=O,$.lim=w++,P?$.parent=P:delete $.parent,w}function d(_){return e.find(_.edges(),function(x){return _.edge(x).cutvalue<0})}function p(_,x,w){var C=w.v,P=w.w;x.hasEdge(C,P)||(C=w.w,P=w.v);var O=_.node(C),$=_.node(P),S=O,M=!1;O.lim>$.lim&&(S=$,M=!0);var I=e.filter(x.edges(),function(E){return M===b(_,_.node(E.v),S)&&M!==b(_,_.node(E.w),S)});return e.minBy(I,function(E){return n(x,E)})}function g(_,x,w,C){var P=w.v,O=w.w;_.removeEdge(P,O),_.setEdge(C.v,C.w,{}),h(_),l(_,x),m(_,x)}function m(_,x){var w=e.find(_.nodes(),function(P){return!x.node(P).parent}),C=i(_,w);C=C.slice(1),e.forEach(C,function(P){var O=_.node(P).parent,$=x.edge(P,O),S=!1;$||($=x.edge(O,P),S=!0),x.node(P).rank=x.node(O).rank+(S?$.minlen:-$.minlen)})}function v(_,x,w){return _.hasEdge(x,w)}function b(_,x,w){return w.low<=x.lim&&x.lim<=w.lim}return j1}var F1,xO;function Zne(){if(xO)return F1;xO=1;var e=Dl(),t=e.longestPath,n=_O(),r=Kne();F1=i;function i(l){switch(l.graph().ranker){case"network-simplex":a(l);break;case"tight-tree":s(l);break;case"longest-path":o(l);break;default:a(l)}}var o=t;function s(l){t(l),n(l)}function a(l){r(l)}return F1}var B1,CO;function Qne(){if(CO)return B1;CO=1;var e=wt();B1=t;function t(i){var o=r(i);e.forEach(i.graph().dummyChains,function(s){for(var a=i.node(s),l=a.edgeObj,c=n(i,o,l.v,l.w),u=c.path,h=c.lca,f=0,d=u[f],p=!0;s!==l.w;){if(a=i.node(s),p){for(;(d=u[f])!==h&&i.node(d).maxRank<a.rank;)f++;d===h&&(p=!1)}if(!p){for(;f<u.length-1&&i.node(d=u[f+1]).minRank<=a.rank;)f++;d=u[f]}i.setParent(s,d),s=i.successors(s)[0]}})}function n(i,o,s,a){var l=[],c=[],u=Math.min(o[s].low,o[a].low),h=Math.max(o[s].lim,o[a].lim),f,d;f=s;do f=i.parent(f),l.push(f);while(f&&(o[f].low>u||h>o[f].lim));for(d=f,f=a;(f=i.parent(f))!==d;)c.push(f);return{path:l.concat(c.reverse()),lca:d}}function r(i){var o={},s=0;function a(l){var c=s;e.forEach(i.children(l),a),o[l]={low:c,lim:s++}}return e.forEach(i.children(),a),o}return B1}var W1,PO;function Jne(){if(PO)return W1;PO=1;var e=wt(),t=on();W1={run:n,cleanup:s};function n(a){var l=t.addDummyNode(a,"root",{},"_root"),c=i(a),u=e.max(e.values(c))-1,h=2*u+1;a.graph().nestingRoot=l,e.forEach(a.edges(),function(d){a.edge(d).minlen*=h});var f=o(a)+1;e.forEach(a.children(),function(d){r(a,l,h,f,u,c,d)}),a.graph().nodeRankFactor=h}function r(a,l,c,u,h,f,d){var p=a.children(d);if(!p.length){d!==l&&a.setEdge(l,d,{weight:0,minlen:c});return}var g=t.addBorderNode(a,"_bt"),m=t.addBorderNode(a,"_bb"),v=a.node(d);a.setParent(g,d),v.borderTop=g,a.setParent(m,d),v.borderBottom=m,e.forEach(p,function(b){r(a,l,c,u,h,f,b);var _=a.node(b),x=_.borderTop?_.borderTop:b,w=_.borderBottom?_.borderBottom:b,C=_.borderTop?u:2*u,P=x!==w?1:h-f[d]+1;a.setEdge(g,x,{weight:C,minlen:P,nestingEdge:!0}),a.setEdge(w,m,{weight:C,minlen:P,nestingEdge:!0})}),a.parent(d)||a.setEdge(l,g,{weight:0,minlen:h+f[d]})}function i(a){var l={};function c(u,h){var f=a.children(u);f&&f.length&&e.forEach(f,function(d){c(d,h+1)}),l[u]=h}return e.forEach(a.children(),function(u){c(u,1)}),l}function o(a){return e.reduce(a.edges(),function(l,c){return l+a.edge(c).weight},0)}function s(a){var l=a.graph();a.removeNode(l.nestingRoot),delete l.nestingRoot,e.forEach(a.edges(),function(c){var u=a.edge(c);u.nestingEdge&&a.removeEdge(c)})}return W1}var V1,OO;function ere(){if(OO)return V1;OO=1;var e=wt(),t=on();V1=n;function n(i){function o(s){var a=i.children(s),l=i.node(s);if(a.length&&e.forEach(a,o),e.has(l,"minRank")){l.borderLeft=[],l.borderRight=[];for(var c=l.minRank,u=l.maxRank+1;c<u;++c)r(i,"borderLeft","_bl",s,l,c),r(i,"borderRight","_br",s,l,c)}}e.forEach(i.children(),o)}function r(i,o,s,a,l,c){var u={width:0,height:0,rank:c,borderType:o},h=l[o][c-1],f=t.addDummyNode(i,"border",u,s);l[o][c]=f,i.setParent(f,a),h&&i.setEdge(h,f,{weight:1})}return V1}var G1,SO;function tre(){if(SO)return G1;SO=1;var e=wt();G1={adjust:t,undo:n};function t(c){var u=c.graph().rankdir.toLowerCase();(u==="lr"||u==="rl")&&r(c)}function n(c){var u=c.graph().rankdir.toLowerCase();(u==="bt"||u==="rl")&&o(c),(u==="lr"||u==="rl")&&(a(c),r(c))}function r(c){e.forEach(c.nodes(),function(u){i(c.node(u))}),e.forEach(c.edges(),function(u){i(c.edge(u))})}function i(c){var u=c.width;c.width=c.height,c.height=u}function o(c){e.forEach(c.nodes(),function(u){s(c.node(u))}),e.forEach(c.edges(),function(u){var h=c.edge(u);e.forEach(h.points,s),e.has(h,"y")&&s(h)})}function s(c){c.y=-c.y}function a(c){e.forEach(c.nodes(),function(u){l(c.node(u))}),e.forEach(c.edges(),function(u){var h=c.edge(u);e.forEach(h.points,l),e.has(h,"x")&&l(h)})}function l(c){var u=c.x;c.x=c.y,c.y=u}return G1}var Y1,$O;function nre(){if($O)return Y1;$O=1;var e=wt();Y1=t;function t(n){var r={},i=e.filter(n.nodes(),function(c){return!n.children(c).length}),o=e.max(e.map(i,function(c){return n.node(c).rank})),s=e.map(e.range(o+1),function(){return[]});function a(c){if(!e.has(r,c)){r[c]=!0;var u=n.node(c);s[u.rank].push(c),e.forEach(n.successors(c),a)}}var l=e.sortBy(i,function(c){return n.node(c).rank});return e.forEach(l,a),s}return Y1}var X1,EO;function rre(){if(EO)return X1;EO=1;var e=wt();X1=t;function t(r,i){for(var o=0,s=1;s<i.length;++s)o+=n(r,i[s-1],i[s]);return o}function n(r,i,o){for(var s=e.zipObject(o,e.map(o,function(f,d){return d})),a=e.flatten(e.map(i,function(f){return e.sortBy(e.map(r.outEdges(f),function(d){return{pos:s[d.w],weight:r.edge(d).weight}}),"pos")}),!0),l=1;l<o.length;)l<<=1;var c=2*l-1;l-=1;var u=e.map(new Array(c),function(){return 0}),h=0;return e.forEach(a.forEach(function(f){var d=f.pos+l;u[d]+=f.weight;for(var p=0;d>0;)d%2&&(p+=u[d+1]),d=d-1>>1,u[d]+=f.weight;h+=f.weight*p})),h}return X1}var U1,MO;function ire(){if(MO)return U1;MO=1;var e=wt();U1=t;function t(n,r){return e.map(r,function(i){var o=n.inEdges(i);if(o.length){var s=e.reduce(o,function(a,l){var c=n.edge(l),u=n.node(l.v);return{sum:a.sum+c.weight*u.order,weight:a.weight+c.weight}},{sum:0,weight:0});return{v:i,barycenter:s.sum/s.weight,weight:s.weight}}else return{v:i}})}return U1}var K1,IO;function ore(){if(IO)return K1;IO=1;var e=wt();K1=t;function t(i,o){var s={};e.forEach(i,function(l,c){var u=s[l.v]={indegree:0,in:[],out:[],vs:[l.v],i:c};e.isUndefined(l.barycenter)||(u.barycenter=l.barycenter,u.weight=l.weight)}),e.forEach(o.edges(),function(l){var c=s[l.v],u=s[l.w];!e.isUndefined(c)&&!e.isUndefined(u)&&(u.indegree++,c.out.push(s[l.w]))});var a=e.filter(s,function(l){return!l.indegree});return n(a)}function n(i){var o=[];function s(c){return function(u){u.merged||(e.isUndefined(u.barycenter)||e.isUndefined(c.barycenter)||u.barycenter>=c.barycenter)&&r(c,u)}}function a(c){return function(u){u.in.push(c),--u.indegree===0&&i.push(u)}}for(;i.length;){var l=i.pop();o.push(l),e.forEach(l.in.reverse(),s(l)),e.forEach(l.out,a(l))}return e.map(e.filter(o,function(c){return!c.merged}),function(c){return e.pick(c,["vs","i","barycenter","weight"])})}function r(i,o){var s=0,a=0;i.weight&&(s+=i.barycenter*i.weight,a+=i.weight),o.weight&&(s+=o.barycenter*o.weight,a+=o.weight),i.vs=o.vs.concat(i.vs),i.barycenter=s/a,i.weight=a,i.i=Math.min(o.i,i.i),o.merged=!0}return K1}var Z1,AO;function sre(){if(AO)return Z1;AO=1;var e=wt(),t=on();Z1=n;function n(o,s){var a=t.partition(o,function(g){return e.has(g,"barycenter")}),l=a.lhs,c=e.sortBy(a.rhs,function(g){return-g.i}),u=[],h=0,f=0,d=0;l.sort(i(!!s)),d=r(u,c,d),e.forEach(l,function(g){d+=g.vs.length,u.push(g.vs),h+=g.barycenter*g.weight,f+=g.weight,d=r(u,c,d)});var p={vs:e.flatten(u,!0)};return f&&(p.barycenter=h/f,p.weight=f),p}function r(o,s,a){for(var l;s.length&&(l=e.last(s)).i<=a;)s.pop(),o.push(l.vs),a++;return a}function i(o){return function(s,a){return s.barycenter<a.barycenter?-1:s.barycenter>a.barycenter?1:o?a.i-s.i:s.i-a.i}}return Z1}var Q1,TO;function are(){if(TO)return Q1;TO=1;var e=wt(),t=ire(),n=ore(),r=sre();Q1=i;function i(a,l,c,u){var h=a.children(l),f=a.node(l),d=f?f.borderLeft:void 0,p=f?f.borderRight:void 0,g={};d&&(h=e.filter(h,function(w){return w!==d&&w!==p}));var m=t(a,h);e.forEach(m,function(w){if(a.children(w.v).length){var C=i(a,w.v,c,u);g[w.v]=C,e.has(C,"barycenter")&&s(w,C)}});var v=n(m,c);o(v,g);var b=r(v,u);if(d&&(b.vs=e.flatten([d,b.vs,p],!0),a.predecessors(d).length)){var _=a.node(a.predecessors(d)[0]),x=a.node(a.predecessors(p)[0]);e.has(b,"barycenter")||(b.barycenter=0,b.weight=0),b.barycenter=(b.barycenter*b.weight+_.order+x.order)/(b.weight+2),b.weight+=2}return b}function o(a,l){e.forEach(a,function(c){c.vs=e.flatten(c.vs.map(function(u){return l[u]?l[u].vs:u}),!0)})}function s(a,l){e.isUndefined(a.barycenter)?(a.barycenter=l.barycenter,a.weight=l.weight):(a.barycenter=(a.barycenter*a.weight+l.barycenter*l.weight)/(a.weight+l.weight),a.weight+=l.weight)}return Q1}var J1,RO;function lre(){if(RO)return J1;RO=1;var e=wt(),t=wn().Graph;J1=n;function n(i,o,s){var a=r(i),l=new t({compound:!0}).setGraph({root:a}).setDefaultNodeLabel(function(c){return i.node(c)});return e.forEach(i.nodes(),function(c){var u=i.node(c),h=i.parent(c);(u.rank===o||u.minRank<=o&&o<=u.maxRank)&&(l.setNode(c),l.setParent(c,h||a),e.forEach(i[s](c),function(f){var d=f.v===c?f.w:f.v,p=l.edge(d,c),g=e.isUndefined(p)?0:p.weight;l.setEdge(d,c,{weight:i.edge(f).weight+g})}),e.has(u,"minRank")&&l.setNode(c,{borderLeft:u.borderLeft[o],borderRight:u.borderRight[o]}))}),l}function r(i){for(var o;i.hasNode(o=e.uniqueId("_root")););return o}return J1}var em,kO;function cre(){if(kO)return em;kO=1;var e=wt();em=t;function t(n,r,i){var o={},s;e.forEach(i,function(a){for(var l=n.parent(a),c,u;l;){if(c=n.parent(l),c?(u=o[c],o[c]=l):(u=s,s=l),u&&u!==l){r.setEdge(u,l);return}l=c}})}return em}var tm,LO;function ure(){if(LO)return tm;LO=1;var e=wt(),t=nre(),n=rre(),r=are(),i=lre(),o=cre(),s=wn().Graph,a=on();tm=l;function l(f){var d=a.maxRank(f),p=c(f,e.range(1,d+1),"inEdges"),g=c(f,e.range(d-1,-1,-1),"outEdges"),m=t(f);h(f,m);for(var v=Number.POSITIVE_INFINITY,b,_=0,x=0;x<4;++_,++x){u(_%2?p:g,_%4>=2),m=a.buildLayerMatrix(f);var w=n(f,m);w<v&&(x=0,b=e.cloneDeep(m),v=w)}h(f,b)}function c(f,d,p){return e.map(d,function(g){return i(f,g,p)})}function u(f,d){var p=new s;e.forEach(f,function(g){var m=g.graph().root,v=r(g,m,p,d);e.forEach(v.vs,function(b,_){g.node(b).order=_}),o(g,p,v.vs)})}function h(f,d){e.forEach(d,function(p){e.forEach(p,function(g,m){f.node(g).order=m})})}return tm}var nm,NO;function hre(){if(NO)return nm;NO=1;var e=wt(),t=wn().Graph,n=on();nm={positionX:p,findType1Conflicts:r,findType2Conflicts:i,addConflict:s,hasConflict:a,verticalAlignment:l,horizontalCompaction:c,alignCoordinates:f,findSmallestWidthAlignment:h,balance:d};function r(v,b){var _={};function x(w,C){var P=0,O=0,$=w.length,S=e.last(C);return e.forEach(C,function(M,I){var E=o(v,M),A=E?v.node(E).order:$;(E||M===S)&&(e.forEach(C.slice(O,I+1),function(T){e.forEach(v.predecessors(T),function(N){var H=v.node(N),D=H.order;(D<P||A<D)&&!(H.dummy&&v.node(T).dummy)&&s(_,N,T)})}),O=I+1,P=A)}),C}return e.reduce(b,x),_}function i(v,b){var _={};function x(C,P,O,$,S){var M;e.forEach(e.range(P,O),function(I){M=C[I],v.node(M).dummy&&e.forEach(v.predecessors(M),function(E){var A=v.node(E);A.dummy&&(A.order<$||A.order>S)&&s(_,E,M)})})}function w(C,P){var O=-1,$,S=0;return e.forEach(P,function(M,I){if(v.node(M).dummy==="border"){var E=v.predecessors(M);E.length&&($=v.node(E[0]).order,x(P,S,I,O,$),S=I,O=$)}x(P,S,P.length,$,C.length)}),P}return e.reduce(b,w),_}function o(v,b){if(v.node(b).dummy)return e.find(v.predecessors(b),function(_){return v.node(_).dummy})}function s(v,b,_){if(b>_){var x=b;b=_,_=x}var w=v[b];w||(v[b]=w={}),w[_]=!0}function a(v,b,_){if(b>_){var x=b;b=_,_=x}return e.has(v[b],_)}function l(v,b,_,x){var w={},C={},P={};return e.forEach(b,function(O){e.forEach(O,function($,S){w[$]=$,C[$]=$,P[$]=S})}),e.forEach(b,function(O){var $=-1;e.forEach(O,function(S){var M=x(S);if(M.length){M=e.sortBy(M,function(N){return P[N]});for(var I=(M.length-1)/2,E=Math.floor(I),A=Math.ceil(I);E<=A;++E){var T=M[E];C[S]===S&&$<P[T]&&!a(_,S,T)&&(C[T]=S,C[S]=w[S]=w[T],$=P[T])}}})}),{root:w,align:C}}function c(v,b,_,x,w){var C={},P=u(v,b,_,w),O=w?"borderLeft":"borderRight";function $(I,E){for(var A=P.nodes(),T=A.pop(),N={};T;)N[T]?I(T):(N[T]=!0,A.push(T),A=A.concat(E(T))),T=A.pop()}function S(I){C[I]=P.inEdges(I).reduce(function(E,A){return Math.max(E,C[A.v]+P.edge(A))},0)}function M(I){var E=P.outEdges(I).reduce(function(T,N){return Math.min(T,C[N.w]-P.edge(N))},Number.POSITIVE_INFINITY),A=v.node(I);E!==Number.POSITIVE_INFINITY&&A.borderType!==O&&(C[I]=Math.max(C[I],E))}return $(S,P.predecessors.bind(P)),$(M,P.successors.bind(P)),e.forEach(x,function(I){C[I]=C[_[I]]}),C}function u(v,b,_,x){var w=new t,C=v.graph(),P=g(C.nodesep,C.edgesep,x);return e.forEach(b,function(O){var $;e.forEach(O,function(S){var M=_[S];if(w.setNode(M),$){var I=_[$],E=w.edge(I,M);w.setEdge(I,M,Math.max(P(v,S,$),E||0))}$=S})}),w}function h(v,b){return e.minBy(e.values(b),function(_){var x=Number.NEGATIVE_INFINITY,w=Number.POSITIVE_INFINITY;return e.forIn(_,function(C,P){var O=m(v,P)/2;x=Math.max(C+O,x),w=Math.min(C-O,w)}),x-w})}function f(v,b){var _=e.values(b),x=e.min(_),w=e.max(_);e.forEach(["u","d"],function(C){e.forEach(["l","r"],function(P){var O=C+P,$=v[O],S;if($!==b){var M=e.values($);S=P==="l"?x-e.min(M):w-e.max(M),S&&(v[O]=e.mapValues($,function(I){return I+S}))}})})}function d(v,b){return e.mapValues(v.ul,function(_,x){if(b)return v[b.toLowerCase()][x];var w=e.sortBy(e.map(v,x));return(w[1]+w[2])/2})}function p(v){var b=n.buildLayerMatrix(v),_=e.merge(r(v,b),i(v,b)),x={},w;e.forEach(["u","d"],function(P){w=P==="u"?b:e.values(b).reverse(),e.forEach(["l","r"],function(O){O==="r"&&(w=e.map(w,function(I){return e.values(I).reverse()}));var $=(P==="u"?v.predecessors:v.successors).bind(v),S=l(v,w,_,$),M=c(v,w,S.root,S.align,O==="r");O==="r"&&(M=e.mapValues(M,function(I){return-I})),x[P+O]=M})});var C=h(v,x);return f(x,C),d(x,v.graph().align)}function g(v,b,_){return function(x,w,C){var P=x.node(w),O=x.node(C),$=0,S;if($+=P.width/2,e.has(P,"labelpos"))switch(P.labelpos.toLowerCase()){case"l":S=-P.width/2;break;case"r":S=P.width/2;break}if(S&&($+=_?S:-S),S=0,$+=(P.dummy?b:v)/2,$+=(O.dummy?b:v)/2,$+=O.width/2,e.has(O,"labelpos"))switch(O.labelpos.toLowerCase()){case"l":S=O.width/2;break;case"r":S=-O.width/2;break}return S&&($+=_?S:-S),S=0,$}}function m(v,b){return v.node(b).width}return nm}var rm,zO;function fre(){if(zO)return rm;zO=1;var e=wt(),t=on(),n=hre().positionX;rm=r;function r(o){o=t.asNonCompoundGraph(o),i(o),e.forEach(n(o),function(s,a){o.node(a).x=s})}function i(o){var s=t.buildLayerMatrix(o),a=o.graph().ranksep,l=0;e.forEach(s,function(c){var u=e.max(e.map(c,function(h){return o.node(h).height}));e.forEach(c,function(h){o.node(h).y=l+u/2}),l+=u+a})}return rm}var im,DO;function dre(){if(DO)return im;DO=1;var e=wt(),t=Xne(),n=Une(),r=Zne(),i=on().normalizeRanks,o=Qne(),s=on().removeEmptyRanks,a=Jne(),l=ere(),c=tre(),u=ure(),h=fre(),f=on(),d=wn().Graph;im=p;function p(R,z){var q=z&&z.debugTiming?f.time:f.notime;q("layout",function(){var j=q(" buildLayoutGraph",function(){return $(R)});q(" runLayout",function(){g(j,q)}),q(" updateInputGraph",function(){m(R,j)})})}function g(R,z){z(" makeSpaceForEdgeLabels",function(){S(R)}),z(" removeSelfEdges",function(){B(R)}),z(" acyclic",function(){t.run(R)}),z(" nestingGraph.run",function(){a.run(R)}),z(" rank",function(){r(f.asNonCompoundGraph(R))}),z(" injectEdgeLabelProxies",function(){M(R)}),z(" removeEmptyRanks",function(){s(R)}),z(" nestingGraph.cleanup",function(){a.cleanup(R)}),z(" normalizeRanks",function(){i(R)}),z(" assignRankMinMax",function(){I(R)}),z(" removeEdgeLabelProxies",function(){E(R)}),z(" normalize.run",function(){n.run(R)}),z(" parentDummyChains",function(){o(R)}),z(" addBorderSegments",function(){l(R)}),z(" order",function(){u(R)}),z(" insertSelfEdges",function(){F(R)}),z(" adjustCoordinateSystem",function(){c.adjust(R)}),z(" position",function(){h(R)}),z(" positionSelfEdges",function(){X(R)}),z(" removeBorderNodes",function(){D(R)}),z(" normalize.undo",function(){n.undo(R)}),z(" fixupEdgeLabelCoords",function(){N(R)}),z(" undoCoordinateSystem",function(){c.undo(R)}),z(" translateGraph",function(){A(R)}),z(" assignNodeIntersects",function(){T(R)}),z(" reversePoints",function(){H(R)}),z(" acyclic.undo",function(){t.undo(R)})}function m(R,z){e.forEach(R.nodes(),function(q){var j=R.node(q),V=z.node(q);j&&(j.x=V.x,j.y=V.y,z.children(q).length&&(j.width=V.width,j.height=V.height))}),e.forEach(R.edges(),function(q){var j=R.edge(q),V=z.edge(q);j.points=V.points,e.has(V,"x")&&(j.x=V.x,j.y=V.y)}),R.graph().width=z.graph().width,R.graph().height=z.graph().height}var v=["nodesep","edgesep","ranksep","marginx","marginy"],b={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],x=["width","height"],w={width:0,height:0},C=["minlen","weight","width","height","labeloffset"],P={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},O=["labelpos"];function $(R){var z=new d({multigraph:!0,compound:!0}),q=L(R.graph());return z.setGraph(e.merge({},b,G(q,v),e.pick(q,_))),e.forEach(R.nodes(),function(j){var V=L(R.node(j));z.setNode(j,e.defaults(G(V,x),w)),z.setParent(j,R.parent(j))}),e.forEach(R.edges(),function(j){var V=L(R.edge(j));z.setEdge(j,e.merge({},P,G(V,C),e.pick(V,O)))}),z}function S(R){var z=R.graph();z.ranksep/=2,e.forEach(R.edges(),function(q){var j=R.edge(q);j.minlen*=2,j.labelpos.toLowerCase()!=="c"&&(z.rankdir==="TB"||z.rankdir==="BT"?j.width+=j.labeloffset:j.height+=j.labeloffset)})}function M(R){e.forEach(R.edges(),function(z){var q=R.edge(z);if(q.width&&q.height){var j=R.node(z.v),V=R.node(z.w),U={rank:(V.rank-j.rank)/2+j.rank,e:z};f.addDummyNode(R,"edge-proxy",U,"_ep")}})}function I(R){var z=0;e.forEach(R.nodes(),function(q){var j=R.node(q);j.borderTop&&(j.minRank=R.node(j.borderTop).rank,j.maxRank=R.node(j.borderBottom).rank,z=e.max(z,j.maxRank))}),R.graph().maxRank=z}function E(R){e.forEach(R.nodes(),function(z){var q=R.node(z);q.dummy==="edge-proxy"&&(R.edge(q.e).labelRank=q.rank,R.removeNode(z))})}function A(R){var z=Number.POSITIVE_INFINITY,q=0,j=Number.POSITIVE_INFINITY,V=0,U=R.graph(),K=U.marginx||0,J=U.marginy||0;function Z(ie){var Q=ie.x,te=ie.y,ce=ie.width,re=ie.height;z=Math.min(z,Q-ce/2),q=Math.max(q,Q+ce/2),j=Math.min(j,te-re/2),V=Math.max(V,te+re/2)}e.forEach(R.nodes(),function(ie){Z(R.node(ie))}),e.forEach(R.edges(),function(ie){var Q=R.edge(ie);e.has(Q,"x")&&Z(Q)}),z-=K,j-=J,e.forEach(R.nodes(),function(ie){var Q=R.node(ie);Q.x-=z,Q.y-=j}),e.forEach(R.edges(),function(ie){var Q=R.edge(ie);e.forEach(Q.points,function(te){te.x-=z,te.y-=j}),e.has(Q,"x")&&(Q.x-=z),e.has(Q,"y")&&(Q.y-=j)}),U.width=q-z+K,U.height=V-j+J}function T(R){e.forEach(R.edges(),function(z){var q=R.edge(z),j=R.node(z.v),V=R.node(z.w),U,K;q.points?(U=q.points[0],K=q.points[q.points.length-1]):(q.points=[],U=V,K=j),q.points.unshift(f.intersectRect(j,U)),q.points.push(f.intersectRect(V,K))})}function N(R){e.forEach(R.edges(),function(z){var q=R.edge(z);if(e.has(q,"x"))switch((q.labelpos==="l"||q.labelpos==="r")&&(q.width-=q.labeloffset),q.labelpos){case"l":q.x-=q.width/2+q.labeloffset;break;case"r":q.x+=q.width/2+q.labeloffset;break}})}function H(R){e.forEach(R.edges(),function(z){var q=R.edge(z);q.reversed&&q.points.reverse()})}function D(R){e.forEach(R.nodes(),function(z){if(R.children(z).length){var q=R.node(z),j=R.node(q.borderTop),V=R.node(q.borderBottom),U=R.node(e.last(q.borderLeft)),K=R.node(e.last(q.borderRight));q.width=Math.abs(K.x-U.x),q.height=Math.abs(V.y-j.y),q.x=U.x+q.width/2,q.y=j.y+q.height/2}}),e.forEach(R.nodes(),function(z){R.node(z).dummy==="border"&&R.removeNode(z)})}function B(R){e.forEach(R.edges(),function(z){if(z.v===z.w){var q=R.node(z.v);q.selfEdges||(q.selfEdges=[]),q.selfEdges.push({e:z,label:R.edge(z)}),R.removeEdge(z)}})}function F(R){var z=f.buildLayerMatrix(R);e.forEach(z,function(q){var j=0;e.forEach(q,function(V,U){var K=R.node(V);K.order=U+j,e.forEach(K.selfEdges,function(J){f.addDummyNode(R,"selfedge",{width:J.label.width,height:J.label.height,rank:K.rank,order:U+ ++j,e:J.e,label:J.label},"_se")}),delete K.selfEdges})})}function X(R){e.forEach(R.nodes(),function(z){var q=R.node(z);if(q.dummy==="selfedge"){var j=R.node(q.e.v),V=j.x+j.width/2,U=j.y,K=q.x-V,J=j.height/2;R.setEdge(q.e,q.label),R.removeNode(z),q.label.points=[{x:V+2*K/3,y:U-J},{x:V+5*K/6,y:U-J},{x:V+K,y:U},{x:V+5*K/6,y:U+J},{x:V+2*K/3,y:U+J}],q.label.x=q.x,q.label.y=q.y}})}function G(R,z){return e.mapValues(e.pick(R,z),Number)}function L(R){var z={};return e.forEach(R,function(q,j){z[j.toLowerCase()]=q}),z}return im}var om,qO;function pre(){if(qO)return om;qO=1;var e=wt(),t=on(),n=wn().Graph;om={debugOrdering:r};function r(i){var o=t.buildLayerMatrix(i),s=new n({compound:!0,multigraph:!0}).setGraph({});return e.forEach(i.nodes(),function(a){s.setNode(a,{label:a}),s.setParent(a,"layer"+i.node(a).rank)}),e.forEach(i.edges(),function(a){s.setEdge(a.v,a.w,{},a.name)}),e.forEach(o,function(a,l){var c="layer"+l;s.setNode(c,{rank:"same"}),e.reduce(a,function(u,h){return s.setEdge(u,h,{style:"invis"}),h})}),s}return om}var sm,HO;function gre(){return HO||(HO=1,sm="0.8.5"),sm}var am,jO;function mre(){return jO||(jO=1,am={graphlib:wn(),layout:dre(),debug:pre(),util:{time:on().time,notime:on().notime},version:gre()}),am}var FO=mre(),yre=tee(FO),vre=function(e){return x6(e,"Boolean")};function bre(e,t){if(e){var n;if(KJ(e))for(var r=0,i=e.length;r<i&&(n=t(e[r],r),n!==!1);r++);else if(ZJ(e)){for(var o in e)if(e.hasOwnProperty(o)&&(n=t(e[o],o),n===!1))break}}}var _re=Object.prototype.hasOwnProperty,wre=(function(e,t){if(e===null||!eee(e))return{};var n={};return bre(t,function(r){_re.call(e,r)&&(n[r]=e[r])}),n});class xre extends UJ{constructor(){super(...arguments),this.id="dagre",this.isCompoundGraph=null,this.config={graphAttributes:["rankdir","align","nodesep","edgesep","ranksep","marginx","marginy","acyclicer","ranker"],nodeAttributes:["width","height"],edgeAttributes:["minlen","weight","width","height","labelpos","labeloffset"]}}getDefaultOptions(){return{directed:!0,multigraph:!0,rankdir:"TB",align:void 0,nodesep:50,edgesep:10,ranksep:50,marginx:0,marginy:0,acyclicer:void 0,ranker:"network-simplex",nodeSize:[0,0],edgeMinLen:1,edgeWeight:1,edgeLabelSize:[0,0],edgeLabelPos:"r",edgeLabelOffset:10}}layout(){return Yo(this,void 0,void 0,function*(){const t=new FO.graphlib.Graph({directed:!!this.options.directed,multigraph:!!this.options.multigraph,compound:this.isCompound()});t.setGraph(wre(this.options,this.config.graphAttributes)),t.setDefaultEdgeLabel(()=>({}));const n=f6(this.options.nodeSize,0);this.model.forEachNode(d=>{const p=d._original,[g,m]=c6(n(p)),v={width:g,height:m};if(t.setNode(String(d.id),v),this.isCompound()){if(hn(d.parentId))return;t.setParent(String(d.id),String(d.parentId))}});const{edgeLabelSize:r,edgeLabelOffset:i,edgeLabelPos:o,edgeMinLen:s,edgeWeight:a}=this.options,l=f6(r,0,"edge"),c=Pf(i,10,"edge"),u=typeof o=="string"?()=>o:Cf(o,["edge"]),h=Pf(s,1,"edge"),f=Pf(a,1,"edge");this.model.forEachEdge(d=>{const p=d._original,[g,m]=c6(l(p)),v={width:g,height:m,labelpos:u(p),labeloffset:c(p),minlen:h(p),weight:f(p)};t.setEdge(String(d.source),String(d.target),v,String(d.id))}),yre.layout(t),this.model.forEachNode(d=>{const p=t.node(String(d.id));p&&(d.x=p.x,d.y=p.y,d.size=[p.width,p.height])}),this.model.forEachEdge(d=>{const p=t.edge(String(d.source),String(d.target),String(d.id));if(!p)return;const{width:g,height:m,weight:v,minlen:b,labelpos:_,labeloffset:x,points:w}=p;d.labelSize=[g,m],d.weight=v,d.minLen=b,d.labelPos=_,d.labelOffset=x,d.points=w.map(MJ)})})}isCompound(){return this.isCompoundGraph!==null?this.isCompoundGraph:vre(this.options.compound)?this.isCompoundGraph=this.options.compound:(this.isCompoundGraph=this.model.nodes().some(t=>!hn(t.parentId)),this.isCompoundGraph)}}var Cre=Object.defineProperty,Pre=Object.defineProperties,Ore=Object.getOwnPropertyDescriptors,BO=Object.getOwnPropertySymbols,Sre=Object.prototype.hasOwnProperty,$re=Object.prototype.propertyIsEnumerable,WO=(e,t,n)=>t in e?Cre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,VO=(e,t)=>{for(var n in t||(t={}))Sre.call(t,n)&&WO(e,n,t[n]);if(BO)for(var n of BO(t))$re.call(t,n)&&WO(e,n,t[n]);return e},GO=(e,t)=>Pre(e,Ore(t));const Ere=50,Mre=70,Ire=10,Are=2,Tre=30,Rre=(e,t)=>{var n,r;const i=new Map;e.forEach(a=>i.set(a,[]));for(const a of t){if(a.source===a.target)return!0;(n=i.get(a.source))==null||n.push({target:a.target,edgeId:a.id}),(r=i.get(a.target))==null||r.push({target:a.source,edgeId:a.id})}const o=new Set,s=(a,l)=>{o.add(a);const c=i.get(a)||[];for(const{target:u,edgeId:h}of c)if(h!==l&&(o.has(u)||s(u,h)))return!0;return!1};for(const a of e)if(!o.has(a)&&s(a,null))return!0;return!1},YO=e=>{var t,n;const{Title:r,Item:i,data:o,rankdir:s="TB",nodesep:a=Ere,ranksep:l=Mre,edgesep:c=Ire,edgeWidth:u=Are,showConnections:h=!0,edgeColorMode:f="gradient",edgeStyle:d="solid",edgeDashPattern:p="5,5",edgeCornerRadius:g=12,edgeRouting:m="orth",showArrow:v=!0,arrowType:b="triangle",padding:_=Tre,edgeAnimation:x="none",edgeAnimationSpeed:w=1,options:C}=e,{title:P,desc:O,items:$=[],relations:S=[]}=o,M=r?y(r,{title:P,desc:O}):null;if(!i||$.length===0)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[M,y(Y,{children:y(ne,{indexes:[0],x:0,y:0})})]});const I=new Map,E=new Map,A=new Map,T=new Map,N=new Set,H=new Map;let D=0;const B=$.map((Q,te)=>{var ce,re;const ee=Q,oe=String((ce=ee.id)!=null?ce:te),se=[te];let ue;const pe=String((re=ee.group)!=null?re:"");if(pe){let he=H.get(pe);he==null&&(he=D,H.set(pe,he),D+=1),ue=Fe(C,[he])}else ue=Fe(C,se);const fe=ue?Et({colorPrimary:ue},C):void 0;ue&&A.set(oe,ue);const ge=ae(y(i,{indexes:se,data:o,datum:ee,positionH:"center",positionV:"middle",themeColors:fe}));return E.set(oe,ge),I.set(oe,{id:oe,indexes:se,datum:ee,themeColors:fe}),T.set(te,oe),N.add(oe),{id:oe,parentId:ee.parentId}}),F=Q=>{if(Q==null)return null;const te=String(Q);if(N.has(te))return te;const ce=Number(Q);if(!Number.isNaN(ce)){const re=T.get(ce);if(re)return re}return null},X=S.map((Q,te)=>{const ce=F(Q.from),re=F(Q.to);return!ce||!re?null:{id:Q.id?String(Q.id):`edge-${te}`,source:ce,target:re,relation:Q}}).filter(Boolean),L=Rre(Array.from(N),X)?"dagre":m,R=new xre({rankdir:s,nodesep:a,ranksep:l,edgesep:c,controlPoints:!0,nodeSize:Q=>{var te;const ce=String((te=Q.id)!=null?te:""),re=E.get(ce);return re?[re.width,re.height]:[0,0]}});R.execute({nodes:B,edges:X});const z=[];if(R.forEachNode(Q=>{var te,ce,re,ee;const oe=String(Q.id),se=I.get(oe);if(!se)return;const ue=E.get(oe),pe=(te=ue==null?void 0:ue.width)!=null?te:0,fe=(ce=ue==null?void 0:ue.height)!=null?ce:0,ge=((re=Q.x)!=null?re:0)-pe/2,he=((ee=Q.y)!=null?ee:0)-fe/2;z.push(GO(VO({},se),{x:ge,y:he,width:pe,height:fe,centerX:ge+pe/2,centerY:he+fe/2}))}),z.length===0)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[M,y(Y,{children:y(ne,{indexes:[0],x:0,y:0})})]});const q=Math.min(...z.map(Q=>Q.x)),j=Math.min(...z.map(Q=>Q.y)),V=_-q,U=_-j,K=new Map,J=[];z.forEach(Q=>{const te=Q.x+V,ce=Q.y+U,re=s==="LR"?"normal":s==="RL"?"flipped":"center",ee=s==="TB"?"normal":s==="BT"?"flipped":"middle";J.push(y(i,{indexes:Q.indexes,datum:Q.datum,data:o,x:te,y:ce,positionH:re,positionV:ee,themeColors:Q.themeColors})),K.set(Q.id,GO(VO({},Q),{x:te,y:ce,centerX:te+Q.width/2,centerY:ce+Q.height/2}))});const Z=[],ie=[];if(h){const Q=Ot(C),te=Et(C.themeConfig,C),ce=(t=te==null?void 0:te.colorBg)!=null?t:"#ffffff",re=(n=te==null?void 0:te.colorText)!=null?n:Q,ee=Math.max(10,u*4),oe=s==="TB"||s==="BT",se=x==="ant-line",ue=se?p:"",fe=se?ue:!se&&d==="dashed"?p:"",ge=se?ue.split(",").reduce((ye,_e)=>ye+parseFloat(_e.trim()||"0"),0):0,he=se&&ge>0?`${ge/(w*10)}s`:"1s",xe=g,$e=(ye,_e,Ie)=>ye.map(([Ee,le],me)=>`${me===0?"M":"L"} ${Ee+_e} ${le+Ie}`).join(" "),Me=(ye,_e,Ie,Ee)=>{if(ye.length<2)return"";const le=(Se,Be,Qe)=>Math.min(Qe,Math.max(Be,Se)),me=([Se,Be])=>({x:Se+Ie,y:Be+Ee}),Oe=[],Ye=me(ye[0]);if(Oe.push(`M ${Ye.x} ${Ye.y}`),ye.length===2){const Se=me(ye[1]);return Oe.push(`L ${Se.x} ${Se.y}`),Oe.join(" ")}for(let Se=1;Se<ye.length-1;Se+=1){const Be=ye[Se-1],Qe=ye[Se],Je=ye[Se+1],Xe=Qe[0]-Be[0],pt=Qe[1]-Be[1],et=Je[0]-Qe[0],Wt=Je[1]-Qe[1],Gt=Math.hypot(Xe,pt),Ue=Math.hypot(et,Wt);if(Gt===0||Ue===0){const si=me(Qe);Oe.push(`L ${si.x} ${si.y}`);continue}const $t=le(_e,0,Math.min(Gt,Ue)/2);if($t===0){const si=me(Qe);Oe.push(`L ${si.x} ${si.y}`);continue}const Nt=Xe/Gt,Qt=pt/Gt,qn=et/Ue,ii=Wt/Ue,oi=me([Qe[0]-Nt*$t,Qe[1]-Qt*$t]),Hn=me([Qe[0]+qn*$t,Qe[1]+ii*$t]);Oe.push(`L ${oi.x} ${oi.y}`);const Cc=me(Qe);Oe.push(`Q ${Cc.x} ${Cc.y} ${Hn.x} ${Hn.y}`)}const rt=me(ye[ye.length-1]);return Oe.push(`L ${rt.x} ${rt.y}`),Oe.join(" ")},Ce=(ye,_e,Ie,Ee,le)=>{const me=Math.cos(Ie),Oe=Math.sin(Ie),Ye=-Oe,rt=me,Se=ee,Be=ee*.55;if(Ee==="arrow"){const Je=ye-me*Se+Ye*Be,Xe=_e-Oe*Se+rt*Be,pt=ye-me*Se-Ye*Be,et=_e-Oe*Se-rt*Be;return[y(Pe,{d:`M ${Je} ${Xe} L ${ye} ${_e} L ${pt} ${et}`,stroke:le,strokeWidth:Math.max(1.5,u),strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]}if(Ee==="diamond"){const Je=Se*1.25,Xe=Be*.75,pt=ye-me*Je*.5,et=_e-Oe*Je*.5,Wt=[{x:ye,y:_e},{x:pt+Ye*Xe,y:et+rt*Xe},{x:ye-me*Je,y:_e-Oe*Je},{x:pt-Ye*Xe,y:et-rt*Xe}];return[y(Yt,{points:Wt,fill:le,stroke:le,strokeWidth:Math.max(1,u*.8)})]}const Qe=[{x:ye,y:_e},{x:ye-me*Se+Ye*Be,y:_e-Oe*Se+rt*Be},{x:ye-me*Se-Ye*Be,y:_e-Oe*Se-rt*Be}];return[y(Yt,{points:Qe,fill:le,stroke:le,strokeWidth:Math.max(1,u*.8)})]},Te=ye=>{if(ye.length===0)return null;if(ye.length===1)return ye[0];let _e=0;const Ie=[];for(let le=0;le<ye.length-1;le+=1){const me=ye[le],Oe=ye[le+1],Ye=Math.hypot(Oe[0]-me[0],Oe[1]-me[1]);Ie.push({length:Ye,start:me,end:Oe}),_e+=Ye}if(_e===0)return ye[0];let Ee=_e/2;for(let le=0;le<Ie.length;le+=1){const me=Ie[le];if(Ee<=me.length||le===Ie.length-1){const Oe=me.length===0?0:Math.max(0,Math.min(1,Ee/me.length));return[me.start[0]+(me.end[0]-me.start[0])*Oe,me.start[1]+(me.end[1]-me.start[1])*Oe]}Ee-=me.length}return ye[Math.floor(ye.length/2)]},Ne=(ye,_e)=>{const Ie=K.get(ye),Ee=K.get(_e);return!Ie||!Ee?null:s==="TB"?{start:[Ie.centerX,Ie.y+Ie.height],end:[Ee.centerX,Ee.y]}:s==="BT"?{start:[Ie.centerX,Ie.y],end:[Ee.centerX,Ee.y+Ee.height]}:s==="LR"?{start:[Ie.x+Ie.width,Ie.centerY],end:[Ee.x,Ee.centerY]}:{start:[Ie.x,Ie.centerY],end:[Ee.x+Ee.width,Ee.centerY]}},ze=(ye,_e)=>{const Ie=Ne(ye,_e);if(!Ie)return null;const{start:Ee,end:le}=Ie;if(oe){const Oe=Ee[1]+(le[1]-Ee[1])/2;return{start:Ee,end:le,points:[Ee,[Ee[0],Oe],[le[0],Oe],le]}}const me=Ee[0]+(le[0]-Ee[0])/2;return{start:Ee,end:le,points:[Ee,[me,Ee[1]],[me,le[1]],le]}};R.forEachEdge(ye=>{var _e,Ie,Ee,le,me,Oe,Ye,rt,Se;const Be=xt=>Array.isArray(xt)?xt.map(gt=>gt&&Array.isArray(gt)&&gt.length>=2?[Number(gt[0]),Number(gt[1])]:null).filter(gt=>!!gt&&Number.isFinite(gt[0])&&Number.isFinite(gt[1])):[],Qe=()=>{const xt=K.get(String(ye.source)),gt=K.get(String(ye.target));return!xt||!gt?[]:[[xt.centerX-V,xt.centerY-U],[gt.centerX-V,gt.centerY-U]]},Je=L==="orth",Xe=Je?ze(String(ye.source),String(ye.target)):null,pt=Je?[]:Be(ye.points),et=Je?(_e=Xe==null?void 0:Xe.points)!=null?_e:[]:pt.length?pt:Qe();if(!et.length)return;const Wt=Je?0:V,Gt=Je?0:U,Ue=Je&&(Ie=Xe==null?void 0:Xe.start)!=null?Ie:et[0],$t=Je&&(Ee=Xe==null?void 0:Xe.end)!=null?Ee:et[et.length-1],Nt=(le=ye._original)==null?void 0:le.relation,Qt=(me=A.get(String(ye.source)))!=null?me:Q,qn=(Oe=A.get(String(ye.target)))!=null?Oe:Q,ii=`edge-gradient-${String(Qt)}-${String(qn)}`.replace(/[^a-zA-Z0-9_-]/g,""),oi=f==="gradient"?`url(#${ii})`:Q;let Hn="";if(xe>0?Hn=Me(et,xe,Wt,Gt):Hn=$e(et,Wt,Gt),!Hn)return;const Cc=y(Pe,{d:Hn,stroke:oi,strokeWidth:u,strokeDasharray:fe,fill:"none","data-element-type":"shape",children:se&&y("animate",{attributeName:"stroke-dashoffset",from:String(ge),to:"0",dur:he,repeatCount:"indefinite"})});if(ie.push(Cc),f==="gradient"){const xt=Ue,gt=$t;Z.push(k("linearGradient",{id:ii,gradientUnits:"userSpaceOnUse",x1:xt[0]+Wt,y1:xt[1]+Gt,x2:gt[0]+Wt,y2:gt[1]+Gt,children:[y("stop",{offset:"0%",stopColor:Qt}),y("stop",{offset:"100%",stopColor:qn})]}))}if(Nt!=null&&Nt.label){let xt=null;const gt=Te(et);if(gt&&(xt=[gt[0]+Wt,gt[1]+Gt]),xt){const Yi=String(Nt.label),wr=ae(y(De,{fontSize:14,fontWeight:"normal",children:Yi})),fs=xt[0]-wr.width/2,Sle=xt[1]-wr.height/2;ie.push(y(De,{x:fs,y:Sle,width:wr.width,height:wr.height,fontSize:14,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:re,backgroundColor:ce,children:Yi}))}}const si=(Ye=Nt==null?void 0:Nt.showArrow)!=null?Ye:v,dy=(rt=Nt==null?void 0:Nt.direction)!=null?rt:"forward",fM=(Se=Nt==null?void 0:Nt.arrowType)!=null?Se:b,dM=et.length-1;if(si&&et.length>1){if(dy==="forward"||dy==="both"){const xt=et[dM],gt=et[dM-1],Yi=Math.atan2(xt[1]-gt[1],xt[0]-gt[0]),wr=f==="gradient"?qn:Q,fs=Ce(xt[0]+Wt,xt[1]+Gt,Yi,fM,wr);ie.push(...fs)}if(dy==="both"){const xt=et[0],gt=et[1],Yi=Math.atan2(xt[1]-gt[1],xt[0]-gt[0]),wr=f==="gradient"?Qt:Q,fs=Ce(xt[0]+Wt,xt[1]+Gt,Yi,fM,wr);ie.push(...fs)}}})}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[M,k(Y,{children:[y(Ke,{children:Z}),y(Y,{width:0,height:0,children:ie}),y(qe,{children:J}),y(je,{})]})]})};We("relation-dagre-flow",{component:YO,composites:["title","item"]});const XO=e=>{const{Title:t,Item:n,data:r,spacing:i=120,showConnections:o=!0,options:s}=e,{title:a,desc:l,items:c=[]}=r,u=t?y(t,{title:a,desc:l}):null;if(c.length===0)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,y(Y,{children:y(qe,{})})]});const h=ae(y(n,{indexes:[0],data:r,datum:c[0],positionH:"center"}));function f(){const P=c.map((S,M)=>({id:M,data:S,isCenter:M===0,_originalIndex:[M]})),O=c.slice(1).map((S,M)=>({source:0,target:M+1})),$=GX(P).force("link",DX(O).id(S=>S.id).distance(i)).force("charge",YX().strength(-50)).force("center",yX(0,0)).force("collision",NX().radius(Math.max(h.width,h.height)/2+10));for(let S=0;S<300;++S)$.tick();return{nodes:P,links:O}}const{nodes:d,links:p}=f(),g=Math.min(...d.map(P=>{var O;return(O=P.x)!=null?O:0})),m=Math.min(...d.map(P=>{var O;return(O=P.y)!=null?O:0})),v=Math.max(0,-g+h.width/2),b=Math.max(0,-m+h.height/2),_=(P,O)=>({positionH:P<-50?"flipped":P>50?"normal":"center",positionV:O<-50?"flipped":O>50?"normal":"middle"}),x=d.map(P=>{if(P.x==null||P.y==null)return null;const O=P.x+v-h.width/2,$=P.y+b-h.height/2,{positionH:S,positionV:M}=_(P.x,P.y);return y(n,{indexes:P._originalIndex,datum:P.data,data:r,x:O,y:$,positionH:S,positionV:M},P.id)}).filter(Boolean),w=new Map(d.map(P=>[P.id,P])),C=o?p.map(P=>{const O=typeof P.source=="object"?P.source:w.get(P.source),$=typeof P.target=="object"?P.target:w.get(P.target);if(!O||!$||O.x==null||O.y==null||$.x==null||$.y==null)return null;const S=`M ${O.x+v} ${O.y+b} L ${$.x+v} ${$.y+b}`;return y(Pe,{d:S,stroke:Ot(s),strokeWidth:2,strokeOpacity:.6})}).filter(Boolean):[];return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,k(Y,{children:[y(Y,{children:C}),y(qe,{children:x})]})]})};We("relation-network",{component:XO,composites:["title","item"]});var kre=Object.defineProperty,Lre=Object.defineProperties,Nre=Object.getOwnPropertyDescriptors,ql=Object.getOwnPropertySymbols,UO=Object.prototype.hasOwnProperty,KO=Object.prototype.propertyIsEnumerable,ZO=(e,t,n)=>t in e?kre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zre=(e,t)=>{for(var n in t||(t={}))UO.call(t,n)&&ZO(e,n,t[n]);if(ql)for(var n of ql(t))KO.call(t,n)&&ZO(e,n,t[n]);return e},Dre=(e,t)=>Lre(e,Nre(t)),qre=(e,t)=>{var n={};for(var r in e)UO.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ql)for(var r of ql(e))t.indexOf(r)<0&&KO.call(e,r)&&(n[r]=e[r]);return n};const lm=e=>{var t=e,{width:n=25,height:r=25,colorPrimary:i="#6699FF",rotation:o=0}=t,s=qre(t,["width","height","colorPrimary","rotation"]);const a=`gradient-arrow-stroke-${i.replace("#","")}`,l=`gradient-arrow-fill-${i.replace("#","")}`,c=Math.round(n*.515),u=Math.round(r*.275),h=Math.round(r*.875),f=[{x:0,y:u},{x:c,y:u},{x:c,y:r*.075},{x:n,y:r*.575},{x:c,y:r*1.075},{x:c,y:h},{x:0,y:h}],d=n/2,p=r/2,g=`rotate(${o} ${d} ${p})`;return k(tt,{children:[y(Yt,Dre(zre({},s),{width:n,height:r,points:f,fill:`url(#${l})`,stroke:`url(#${a})`,transform:g,"data-element-type":"shape"})),k(Ke,{children:[k("linearGradient",{id:l,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[y("stop",{offset:"0%","stop-color":i,"stop-opacity":"0.36"}),y("stop",{offset:"100%","stop-color":i,"stop-opacity":"0"})]}),k("linearGradient",{id:a,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[y("stop",{offset:"0%","stop-color":i}),y("stop",{offset:"58%","stop-color":i,"stop-opacity":"0"})]})]})]})},Hre=({text:e,x:t=0,y:n=0,fontSize:r=56,fontWeight:i="bold",fill:o="#FFFFFF",textAnchor:s="middle",dominantBaseline:a="middle",shadowOffsetX:l=2,shadowOffsetY:c=4,midShadowOffsetX:u=1,midShadowOffsetY:h=2,deepShadowOpacity:f=.3,midShadowOpacity:d=.5})=>k(Y,{children:[y("text",{x:t,y:n,fontSize:r,fontWeight:i,fill:o,fillOpacity:f,textAnchor:s,dominantBaseline:a,transform:`translate(${l}, ${c})`,children:e}),y("text",{x:t,y:n,fontSize:r,fontWeight:i,fill:o,fillOpacity:d,textAnchor:s,dominantBaseline:a,transform:`translate(${u}, ${h})`,children:e}),y("text",{x:t,y:n,fontSize:r,fontWeight:i,fill:o,textAnchor:s,dominantBaseline:a,children:e})]});var jre=Object.defineProperty,Fre=Object.defineProperties,Bre=Object.getOwnPropertyDescriptors,Hl=Object.getOwnPropertySymbols,QO=Object.prototype.hasOwnProperty,JO=Object.prototype.propertyIsEnumerable,eS=(e,t,n)=>t in e?jre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wre=(e,t)=>{for(var n in t||(t={}))QO.call(t,n)&&eS(e,n,t[n]);if(Hl)for(var n of Hl(t))JO.call(t,n)&&eS(e,n,t[n]);return e},Vre=(e,t)=>Fre(e,Bre(t)),Gre=(e,t)=>{var n={};for(var r in e)QO.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Hl)for(var r of Hl(e))t.indexOf(r)<0&&JO.call(e,r)&&(n[r]=e[r]);return n};const Yre=e=>{var t=e,{width:n=25,height:r=25,colorPrimary:i="#6699FF",rotation:o=0,strokeWidth:s=4}=t,a=Gre(t,["width","height","colorPrimary","rotation","strokeWidth"]);const l=[{x:n/2,y:0},{x:n,y:r},{x:0,y:r}],c=n/2,u=r/2,h=`rotate(${o} ${c} ${u})`;return y(Yt,Vre(Wre({},a),{width:n,height:r,points:l,fill:i,stroke:i,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",transform:h}))},Xre=-118,tS=118,nS=240,Ure=180,Kre=40,Zre="M238.9 69.7a6 6 0 0 1-.1 1v.2l-.2.3v.3l-.1.3a6.2 6.2 0 0 1-.3.6l-.1.3-.2.3-.2.4-.3.5-.1.1a10.9 10.9 0 0 1-.8 1v.1l-.5.5h-.1l-.4.4-.3.3-.3.2-.3.3-.4.2a13 13 0 0 1-.7.5l-.4.3-.5.3-97.5 56.7-.7.4h-.2l-.6.4h-.1l-.8.4h-.2l-.6.4h-.2l-.8.3h-.2l-.5.3-.5.1-.5.1-.5.2h-.5a33.7 33.7 0 0 1-3.2.7h-.2l-1 .2h-1.6l-.7.1h-4.7l-.8-.1h-.2a38.2 38.2 0 0 1-2-.4h-.4l-.7-.2h-.4l-.7-.2-.4-.1a27.3 27.3 0 0 1-2.2-.7h-.2a44.2 44.2 0 0 1-.9-.3l-.5-.3-.4-.1-.5-.2-.3-.2-.5-.2-.3-.2-.8-.4L6.5 78C2.2 75.6 0 72.4 0 69v41.7c0 3.2 2.1 6.5 6.4 9l98.1 56.6a23.2 23.2 0 0 0 1 .6l.6.3.3.1.5.2.4.2.3.1h.2l.2.2a21.4 21.4 0 0 0 1.9.6l.3.1h.2l.7.2a77.6 77.6 0 0 1 1.1.3h.3l.7.2h.4a42.5 42.5 0 0 0 1 .2l1 .2h1.1l.4.1h2.1l.7.1h1.5a22 22 0 0 0 1.8-.2h.4l1.1-.1h.2l1.2-.2h.1l.3-.1.6-.1a12.5 12.5 0 0 0 1-.3h.5l.5-.2a29 29 0 0 0 1-.3h.2l.3-.2h.2a27 27 0 0 0 1.6-.7h.2l.8-.4a19.4 19.4 0 0 0 1.6-.9l97.5-56.7.3-.1.2-.2.4-.2.4-.3.3-.2.3-.3.4-.2.3-.3.3-.3h.1l.3-.3.5-.6h.1l.3-.5h.1v-.1l.4-.4v-.1l.4-.5v-.1l.1-.2.1-.2.2-.3.1-.3.1-.3.1-.1a6.9 6.9 0 0 0 .2-.8l.1-.3v-.4l.1-.3v-1l.2-41.4v.4Z",Qre="M232.5 60.4c8.5 4.9 8.5 12.8.1 17.7l-97.5 56.7c-8.4 4.9-22 4.9-30.5 0L6.5 78C-2 73-2 65.3 6.4 60.4l97.5-56.7c8.4-5 22-5 30.5 0l98.1 56.7Z",Jre="M119.1 0A31 31 0 0 0 104 3.7L6.4 60.4C-2 65.3-2 73.2 6.4 78l98.2 56.7c4.2 2.4 9.8 3.7 15.3 3.7a31 31 0 0 0 15.2-3.7L232.6 78c8.4-5 8.4-12.8 0-17.7L134.3 3.7A31.2 31.2 0 0 0 119.1 0Zm0 2.5c5.4 0 10.3 1.2 14 3.3l98.2 56.7c3.3 2 5.1 4.3 5.1 6.8 0 2.4-1.8 4.7-5 6.6l-97.5 56.7a28.3 28.3 0 0 1-14 3.4c-5.3 0-10.3-1.2-14-3.4L7.7 76c-3.3-1.9-5-4.3-5-6.7 0-2.4 1.7-4.8 5-6.7L105 5.8a29 29 0 0 1 14-3.3Z",rS=k("filter",{id:"sequence-ascending-stairs-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[y("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),y("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),y("feOffset",{dx:"0",dy:"4"}),y("feGaussianBlur",{stdDeviation:"6"}),y("feComposite",{in2:"hardAlpha",operator:"out"}),y("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),y("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),y("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),iS=e=>{const{Title:t,Item:n,data:r,options:i,cubeWidth:o=nS}=e,{title:s,desc:a,items:l=[]}=r,c=t?y(t,{title:s,desc:a}):null;if(l.length===0)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[y(Ke,{children:rS}),c,y(Y,{children:y(je,{children:y(ne,{indexes:[0],x:0,y:0})})})]});const u=ae(y(ne,{indexes:[0]})),h=[],f=[],d=[],p=o/nS,g=Ure*p;return l.forEach((m,v)=>{const b=[v],_=Fe(i,b),x=v*(o+Xre),w=(l.length-1-v)*tS,C=`cube-gradient-bottom-${v}`,P=`cube-gradient-top-${v}`,O=`cube-gradient-stroke-${v}`;d.push(k(Y,{x,y:w,id:`cube-${v}`,width:o,height:g,filter:"url(#sequence-ascending-stairs-3d-shadow-filter)",children:[k(Ke,{children:[k("linearGradient",{id:C,x1:"0",y1:"124.5",x2:"238.9",y2:"124.5",gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0",stopColor:_,stopOpacity:"0.8"}),y("stop",{offset:"1",stopColor:_,stopOpacity:"0.4"})]}),k("linearGradient",{id:P,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0",stopColor:_,stopOpacity:"0.9"}),y("stop",{offset:"1",stopColor:_,stopOpacity:"0.5"})]}),k("linearGradient",{id:O,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0",stopColor:_}),y("stop",{offset:"1",stopColor:_,stopOpacity:"0.7"})]})]}),k(Pt,{transform:`scale(${p})`,children:[y(Pe,{d:Zre,fill:`url(#${C})`}),y(Pe,{d:Qre,fill:`url(#${P})`}),y(Pe,{d:Jre,fill:`url(#${O})`})]}),y(Hre,{text:v+1,x:115,y:65,fontSize:56})]}));const $=x+o+Kre,S=w+g/2;if(f.push(y(n,{indexes:b,datum:m,data:r,x:$,y:S,positionH:"normal"})),h.push(y(nt,{indexes:b,x:x+o-u.width/2,y:w-u.height/2})),v===0&&h.push(y(ne,{indexes:[0],x:x-30-u.width/2,y:w+g/2-u.height/2})),v<l.length-1){const M=(l.length-1-(v+1))*tS,I=x+o-u.width/2,E=(w+g/2+M+g/2)/2-u.height/2;h.push(y(ne,{indexes:[v+1],x:I,y:E}))}else h.push(y(ne,{indexes:[l.length],x:x+o+30-u.width/2,y:w+g/2-u.height/2}))}),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[y(Ke,{children:rS}),c,k(Y,{x:0,y:0,children:[y(Y,{children:d}),y(qe,{children:f}),y(je,{children:h})]})]})};We("sequence-ascending-stairs-3d",{component:iS,composites:["title","item"]});const oS=e=>{const{Title:t,Item:n,data:r,hGap:i=0,vGap:o=0}=e,{title:s,desc:a,items:l=[]}=r,c=t?y(t,{title:s,desc:a}):null,u=ae(y(n,{indexes:[0],data:r,datum:l[0]})),h=[],f=[],d=l.length,p=u.width+i,g=u.height/2+o,m=u.width/2,b=0+(d-1)*g;return l.forEach((_,x)=>{const w=m+x*p,C=b-x*g,P=[x];h.push(y(n,{indexes:P,datum:_,data:r,x:w,y:C})),f.push(y(nt,{indexes:P,x:w+u.width-30,y:C+u.height/2+10})),f.push(y(ne,{indexes:P,x:w+u.width+i/2,y:C-30}))}),k(ve,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,k(Y,{children:[y(qe,{children:h}),y(je,{children:f})]})]})};We("sequence-ascending-steps",{component:oS,composites:["title","item"]});const eie=20,sS=5,aS=e=>{const{Title:t,Item:n,data:r,options:i,radius:o=150,arrowSize:s=4,strokeWidth:a=10}=e,{title:l,desc:c,items:u=[]}=r,h=ae(y(ne,{indexes:[0]})),f=Ot(i);if(!n)return k(ve,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[t?y(t,{title:l,desc:c}):null,y(Y,{children:y(je,{children:y(ne,{indexes:[0],x:0,y:0})})})]});const d=u.length;if(d===0)return k(ve,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[t?y(t,{title:l,desc:c}):null,y(Y,{children:y(je,{children:y(ne,{indexes:[0],x:0,y:0})})})]});const p=ae(y(n,{indexes:[0],data:r,datum:u[0]})),g=0,m=0,v=2*Math.PI/d,b=[];let _=1/0,x=1/0,w=-1/0,C=-1/0;for(let N=0;N<d;N++){const H=N*v-Math.PI/2,D=g+o*Math.cos(H),B=m+o*Math.sin(H);b.push({x:D,y:B}),_=Math.min(_,D),x=Math.min(x,B),w=Math.max(w,D),C=Math.max(C,B)}const P=[];for(let N=0;N<d;N++){const H=b[N],D=b[(N+1)%d],B=Math.sqrt(Math.pow(D.x-H.x,2)+Math.pow(D.y-H.y,2)),F=Math.min(B*.5,100),X=(H.x+D.x)/2,G=(H.y+D.y)/2;_=Math.min(_,X-F/2),x=Math.min(x,G-F/2),w=Math.max(w,X+F/2),C=Math.max(C,G+F/2);const L=Math.atan2(G-m,X-g),R=L<0?L+2*Math.PI:L;let z,q;const j=R*180/Math.PI,V=F/2+eie,U=X+Math.cos(L)*V,K=G+Math.sin(L)*V;j>=337.5||j<22.5?(z=U,q=K-p.height/2):j>=22.5&&j<67.5?(z=U,q=K):j>=67.5&&j<112.5?(z=U-p.width/2,q=K):j>=112.5&&j<157.5?(z=U-p.width,q=K):j>=157.5&&j<202.5?(z=U-p.width,q=K-p.height/2):j>=202.5&&j<247.5?(z=U-p.width,q=K-p.height):j>=247.5&&j<292.5?(z=U-p.width/2,q=K-p.height):(z=U,q=K-p.height),P.push({lineLength:B,circleBigW:F,midX:X,midY:G,itemX:z,itemY:q}),_=Math.min(_,z),x=Math.min(x,q),w=Math.max(w,z+p.width+h.width+5),C=Math.max(C,q+p.height)}const O=Math.max(0,-_),$=Math.max(0,-x),S=t?y(t,{title:l,desc:c}):null,M=[],I=[],E=[],A=[],T=b.map(N=>({x:N.x+O,y:N.y+$}));for(let N=0;N<d;N++){const H=T[N],D=T[(N+1)%d],B=(N+1)%d,F=[N],{lineLength:X,circleBigW:G,midX:L,midY:R}=P[N],z=Math.max(G-20,20),q=Math.max(z*.4,16),j=Fe(i,F)||f,V=D.x-H.x,U=D.y-H.y,K=X,J=V/K,Z=U/K,ie=sS*2+s,Q=Math.min(sS,(K-ie)/2),te=Math.max(0,H.x+J*Q),ce=Math.max(0,H.y+Z*Q),re=Math.max(0,D.x-J*Q),ee=Math.max(0,D.y-Z*Q),se=QU().x(Ce=>Math.max(0,Ce.x)).y(Ce=>Math.max(0,Ce.y)).curve(h4)([{x:te,y:ce},{x:re,y:ee}])||"",pe=`fork-arrow-${j.replace(/[^a-zA-Z0-9]/g,"")}-${N}`,fe=`
107
+ `.trim()}return k(Y,{id:"infographic-container",children:[y(Y,{children:g}),w?y(Ze,{id:"shape-center-circle",x:m-P,y:v-P,width:P*2,height:P*2,fill:h.colorPrimaryBg,fillOpacity:.5,"data-element-type":"shape"}):y(Pe,{id:"shape-center-sector",d:A,fill:h.colorPrimaryBg,fillOpacity:.5,width:r*2+200,height:r*2+200,"data-element-type":"shape"}),y(De,{x:S-O/2,y:$-M/2,width:O,height:M,alignHorizontal:"center",alignVertical:"middle",fontSize:24,fontWeight:"bold",fill:h.colorText,"data-element-type":Ge.Title,children:c}),y(qe,{children:p}),y(je,{children:d})]})};We("list-sector",{component:h6,composites:["title","item"]});const f6=e=>{const{Title:t,Item:n,data:r,columns:i=4,gap:o=20,stepOffset:s=40}=e,{title:a,desc:l,items:c=[]}=r,u=t?y(t,{title:a,desc:l}):null,h=ae(y(ne,{indexes:[0]})),f=ae(y(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),d=[],p=[],g=f.width+o;return c.forEach((m,v)=>{const b=v%i,w=Math.floor(v/i),x=b*g,_=w*(f.height+o),C=b*s,P=_+C,S=[v];p.push(y(n,{indexes:S,datum:m,data:r,x,y:P,positionH:"center"})),d.push(y(nt,{indexes:S,x:x+(f.width-h.width)/2,y:P+f.height+5}))}),c.forEach((m,v)=>{const b=v%i,w=Math.floor(v/i),x=b*g,_=w*(f.height+o),C=b*s,P=_+C;if(v===0&&d.push(y(ne,{indexes:[0],x:x-o/2-h.width/2,y:P+(f.height-h.height)/2})),b<i-1&&v<c.length-1){const S=Math.floor((v+1)/i);w===S&&d.push(y(ne,{indexes:[v+1],x:x+f.width+(o-h.width)/2,y:P+(f.height-h.height)/2}))}(b===i-1||v===c.length-1)&&d.push(y(ne,{indexes:[v+1],x:x+f.width+(o-h.width)/2,y:P+(f.height-h.height)/2}))}),c.length===0&&d.push(y(ne,{indexes:[0],x:(i-1)*g/2+(f.width-h.width)/2,y:0})),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,k(Y,{children:[y(qe,{children:p}),y(je,{children:d})]})]})};We("list-waterfall",{component:f6,composites:["title","item"]});const UJ=6,Tf=700,d6=330,p6=333,KJ={1:[{x:.5,y:.6,anchor:"top-right"}],2:[{x:.42,y:.5,anchor:"top-right"},{x:.72,y:.4,anchor:"bottom"}],3:[{x:.3,y:.5,anchor:"top-right"},{x:.48,y:.3,anchor:"bottom-left"},{x:.8,y:.75,anchor:"top-right"}],4:[{x:.3,y:.5,anchor:"top-right"},{x:.35,y:.2,anchor:"bottom-left"},{x:.65,y:.73,anchor:"top-right"},{x:.8,y:.52,anchor:"bottom-left"}],5:[{x:.19,y:.4,anchor:"top-right"},{x:.38,y:.2,anchor:"bottom"},{x:.52,y:.62,anchor:"top-right"},{x:.7,y:.43,anchor:"bottom"},{x:.82,y:.8,anchor:"top-right"}],6:[{x:.16,y:.35,anchor:"top-right"},{x:.38,y:.2,anchor:"bottom"},{x:.48,y:.54,anchor:"top-right"},{x:.55,y:.43,anchor:"bottom-left"},{x:.8,y:.75,anchor:"top-right"},{x:.86,y:.65,anchor:"bottom-left"}]},ZJ={1:[{x:.5,y:.4,anchor:"bottom-right"}],2:[{x:.42,y:.5,anchor:"bottom-right"},{x:.72,y:.6,anchor:"top"}],3:[{x:.3,y:.5,anchor:"bottom-right"},{x:.48,y:.7,anchor:"top-left"},{x:.8,y:.25,anchor:"bottom-right"}],4:[{x:.3,y:.5,anchor:"bottom-right"},{x:.35,y:.8,anchor:"top-left"},{x:.65,y:.27,anchor:"bottom-right"},{x:.8,y:.48,anchor:"top-left"}],5:[{x:.19,y:.6,anchor:"bottom-right"},{x:.38,y:.8,anchor:"top"},{x:.52,y:.38,anchor:"bottom-right"},{x:.7,y:.57,anchor:"top"},{x:.82,y:.2,anchor:"bottom-right"}],6:[{x:.16,y:.65,anchor:"bottom-right"},{x:.38,y:.8,anchor:"top"},{x:.48,y:.46,anchor:"bottom-right"},{x:.55,y:.57,anchor:"top-left"},{x:.8,y:.25,anchor:"bottom-right"},{x:.86,y:.35,anchor:"top-left"}]},g6=(e,t,n)=>{const r=t[e];return r?r.map(i=>({x:i.x*Tf,y:i.y*n,anchor:i.anchor})):null},QJ=(e,t)=>{const n=e.anchor||"center";let r=e.x-t.width/2,i=e.y-t.height/2,o=e.y;switch(n){case"top":r=e.x-t.width/2,i=e.y,o=e.y+t.height/2;break;case"bottom":r=e.x-t.width/2,i=e.y-t.height,o=e.y-t.height/2;break;case"top-left":r=e.x,i=e.y,o=e.y+t.height/2;break;case"top-right":r=e.x-t.width,i=e.y,o=e.y+t.height/2;break;case"bottom-left":r=e.x,i=e.y-t.height,o=e.y-t.height/2;break;case"bottom-right":r=e.x-t.width,i=e.y-t.height,o=e.y-t.height/2;break}return{x:r,y:i,centerY:o}},Rf=(e,t)=>{const n=t.x-e.x,r=t.y-e.y,i=Math.hypot(n,r)||1;return{x:n/i,y:r/i}},m6=e=>{const{presetRatios:t,arrowHeight:n,Arrow:r}=e;return o=>{var s;const{Title:a,Item:l,data:c,options:u,itemGap:h=24}=o,{title:f,desc:d,items:p=[]}=c,g=Math.min(p.length,UJ),m=p.slice(0,g),v=a?y(a,{title:f,desc:d}):null,b=Pt(u),x=Et({colorPrimary:b},u).colorTextSecondary||"#737373",_=ae(y(ne,{indexes:[0]}));if(p.length===0){const N=(s=g6(1,t,n))==null?void 0:s[0];if(!N)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,y(Y,{children:y(r,{colorPrimary:b,colorShadow:x})})]});const H=N.x-_.width/2,D=N.y-_.height/2;return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,k(Y,{children:[y(r,{colorPrimary:b,colorShadow:x}),y(qe,{}),y(je,{children:y(ne,{indexes:[0],x:H,y:D})})]})]})}const C=ae(y(l,{indexes:[0],data:c,datum:p[0],positionH:"center"})),P=[],S=[],$=g6(g,t,n);if(!$)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,k(Y,{children:[y(r,{colorPrimary:b,colorShadow:x}),y(qe,{})]})]});const O=$,M=O.length>1?Rf(O[0],O[O.length-1]):{x:1,y:0},A=O.length>1?Rf(O[0],O[1]):M,E=O.length>1?Rf(O[O.length-2],O[O.length-1]):M,I=Math.max(C.width,C.height)*.45+h,T=N=>{const{x:H,y:D,centerY:W}=QJ(N,C);return{x:H,y:D,centerY:W}};if(O.forEach((N,H)=>{const D=T(N),W=D.centerY<n/2,F=[H],X=m[H];if(!X)return;S.push(y(l,{indexes:F,datum:X,data:c,x:D.x,y:D.y,positionH:"center"}));const G=D.x+C.width-_.width/2,L=W?D.y-_.height/2:D.y+C.height-_.height/2;P.push(y(nt,{indexes:F,x:G,y:L}))}),O.length>0){const N=O[0],H=N.x-A.x*I-_.width/2,D=N.y-A.y*I-_.height/2;P.push(y(ne,{indexes:[0],x:H,y:D}));for(let G=0;G<O.length-1;G++){const L=O[G],R=O[G+1],z=(L.x+R.x)/2,q=(L.y+R.y)/2,j=z-_.width/2,V=q-_.height/2;P.push(y(ne,{indexes:[G+1],x:j,y:V}))}const W=O[O.length-1],F=W.x+E.x*I-_.width/2,X=W.y+E.y*I-_.height/2;P.push(y(ne,{indexes:[g],x:F,y:X}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,k(Y,{children:[y(r,{colorPrimary:b,colorShadow:x}),y(qe,{children:S}),y(je,{children:P})]})]})}},JJ=({colorPrimary:e="#17CA2C",colorShadow:t="#737373"})=>{const n=be(e).darken(20).toHexString();return k(Y,{width:Tf,height:d6,children:[y("path",{d:"M228.864 159.446C230.266 159.446 231.623 158.768 232.689 157.535L274.263 110.162L265.717 102.923L227.311 148.082C225.977 149.623 224.281 150.47 222.529 150.47H175.404L182.03 158.367C182.795 159.445 182.795 159.446 183.734 159.446H228.864Z",fill:t}),y("path",{d:"M462.869 234.92C464.271 234.92 465.628 234.242 466.695 233.01L508.268 185.636L499.722 178.397L461.316 223.557C459.983 225.098 458.287 225.945 456.534 225.945H409.409L416.035 233.841C416.8 234.92 416.8 234.92 417.74 234.92H462.869Z",fill:t}),y("path",{d:"M697.005 330C698.783 330 700 328.82 700 327.001V256.638C700 254.857 697.848 253.965 696.591 255.225L693.409 258.411V320.402C693.409 322.058 692.069 323.401 690.414 323.401H630.718L627.536 326.587C626.278 327.847 627.169 330 628.947 330H697.005Z",fill:t}),y("path",{d:"M689.642 321.89C690.744 321.89 691.638 320.995 691.638 319.891V250.743C691.638 248.962 689.488 248.07 688.23 249.329L662.647 274.947L520.987 153.863C519.541 152.627 517.703 151.948 515.802 151.948H469.518C470.236 151.949 470.956 152.206 471.53 152.729L498.163 176.978L498.13 177.018L639.84 297.784L619.174 318.477C617.916 319.737 618.807 321.89 620.586 321.89H689.642Z",fill:e}),y("path",{d:"M429.279 198.995L467.208 153.03C468.3 151.716 470.268 151.579 471.531 152.729L498.163 176.978L460.69 221.107C459.173 222.894 456.946 223.924 454.6 223.924H408.473C409.366 223.924 410.252 223.527 410.845 222.764L429.279 198.995Z",fill:n}),y("path",{d:"M408.473 223.924H408.314L408.318 223.92C408.369 223.922 408.421 223.924 408.473 223.924Z",fill:n}),y("path",{d:"M406.524 223.203C407.826 224.318 409.796 224.116 410.845 222.761L429.279 198.932L287.411 77.8866C285.964 76.6523 284.125 75.9742 282.223 75.9742H234.606L234.625 75.9907C235.429 75.9118 236.263 76.1557 236.915 76.7378L263.662 100.621L263.546 100.758L406.524 223.203Z",fill:e}),y("path",{d:"M236.914 76.7386C235.651 75.6097 233.707 75.7513 232.621 77.0513L194.557 123.104L175.644 146.821C175.076 147.535 174.25 147.917 173.409 147.947L173.407 147.95H219.923C222.271 147.95 224.499 146.915 226.017 145.122L263.645 100.649L236.914 76.7386Z",fill:n}),y("path",{d:"M175.648 146.816C174.589 148.145 172.637 148.329 171.348 147.221L4.09334 3.51697C2.68586 2.30767 3.54106 0 5.39671 0H47.5805C49.4864 0 51.3297 0.680433 52.7785 1.91877L194.557 123.104L175.648 146.816Z",fill:e})]})},eee=({colorPrimary:e="#17CA2C",colorShadow:t="#737373"})=>{const n=be(e).darken(20).toHexString();return k(Y,{width:Tf,height:p6,children:[y("path",{d:"M19.0526 324L12.6762 329.482C11.2703 330.691 12.1234 333 13.976 333H56.1578C58.058 333 59.896 332.321 61.3413 331.085L201.854 210.901L194.249 201.693L54.0527 321.606C52.246 323.151 49.9486 324 47.5732 324H19.0526Z",fill:t}),y("path",{d:"M234.587 248L241.131 255.922C241.656 256.552 242.382 256.909 243.134 256.983L243.115 257H290.716C292.618 257 294.457 256.322 295.903 255.087L437.091 134.536L429.305 125.5L288.613 245.609C286.805 247.153 284.507 248 282.132 248H234.587Z",fill:t}),y("path",{d:"M461.123 162.429L475.642 179.918C476.237 180.635 477.092 181.001 477.951 181H524.22C526.121 181 527.959 180.321 529.404 179.085L670.786 58.1578L662.326 49.6809L522.115 169.606C520.309 171.151 518.011 172 515.636 172H469.369L461.123 162.429Z",fill:t}),y("path",{d:"M687.912 74.8875C690.374 75.9052 693.412 74.1668 693.412 71.1716V11H698.004C699.106 11 700 11.8954 700 13V82.1716C700 83.9534 697.85 84.8457 696.593 83.5858L687.912 74.8875Z",fill:t}),y("path",{d:"M689.419 0C690.522 0 691.415 0.895432 691.415 2V71.1716C691.415 72.9534 689.265 73.8457 688.008 72.5858L662.433 46.9598L520.819 168.085C519.374 169.321 517.536 170 515.636 170H469.367C470.084 169.999 470.804 169.742 471.379 169.219L498.003 144.961L497.969 144.922L639.634 24.115L618.975 3.41421C617.717 2.15428 618.608 0 620.386 0H689.419Z",fill:e}),y("path",{d:"M429.141 122.937L467.058 168.918C468.149 170.232 470.116 170.369 471.378 169.219L498.003 144.961L460.542 100.818C459.025 99.0305 456.798 98 454.453 98H408.341C409.234 98.0001 410.12 98.3968 410.712 99.1606L429.141 122.937Z",fill:n}),y("path",{d:"M408.341 98H408.183L408.186 98.004C408.237 98.0013 408.289 98 408.341 98Z",fill:n}),y("path",{d:"M406.393 98.721C407.695 97.606 409.664 97.8077 410.712 99.1633L429.141 123L287.318 244.087C285.872 245.322 284.033 246 282.132 246H234.53L234.55 245.983C235.353 246.062 236.187 245.818 236.839 245.236L263.577 221.345L263.461 221.208L406.393 98.721Z",fill:e}),y("path",{d:"M236.837 245.235C235.575 246.365 233.631 246.223 232.546 244.922L194.494 198.854L175.588 175.129C175.019 174.415 174.194 174.032 173.353 174.002L173.351 174H219.852C222.199 174 224.427 175.035 225.944 176.829L263.56 221.317L236.837 245.235Z",fill:n}),y("path",{d:"M175.593 175.135C174.533 173.805 172.581 173.622 171.291 174.73L4.09013 318.484C2.68329 319.693 3.53868 322 5.394 322H47.5627C49.4695 322 51.3136 321.319 52.7627 320.08L194.494 198.854L175.593 175.135Z",fill:e})]})},y6=m6({arrowHeight:d6,presetRatios:KJ,Arrow:JJ}),v6=m6({arrowHeight:p6,presetRatios:ZJ,Arrow:eee});We("list-zigzag-down",{component:y6,composites:["title","item"]}),We("list-zigzag-up",{component:v6,composites:["title","item"]});const b6=e=>{const{Title:t,Item:n,data:r,radius:i=150,startMode:o="top"}=e,{title:s,desc:a,items:l=[]}=r,c=t?y(t,{title:s,desc:a}):null,u=ae(y(ne,{indexes:[0]})),h=ae(y(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),f=[],d=[];if(l.length===0)return f.push(y(ne,{indexes:[0],x:-u.width/2,y:-u.height/2})),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,y(Y,{children:y(je,{children:f})})]});const p=Math.max(h.width,h.height),g=Math.max(i,p),m=g+p/2,v=l.map(()=>{const C=h.width,P=h.height;return(C+P)/2}),b=v.reduce((C,P)=>C+P,0);let w;o==="equal"?w=-Math.PI/2:w=-Math.PI/2+2*Math.PI/l.length/2;let x=w;l.forEach((C,P)=>{const S=v[P]/b*2*Math.PI,$=x+S/2;x+=S;const O=m+g*Math.cos($)-h.width/2,M=m+g*Math.sin($)-h.height/2;d.push(y(n,{indexes:[P],datum:C,data:r,x:O,y:M}));const A=g-Math.max(h.width,h.height)/2-20,E=m+A*Math.cos($)-u.width/2,I=m+A*Math.sin($)-u.height/2;f.push(y(nt,{indexes:[P],x:E,y:I}))});const _=g-Math.max(h.width,h.height)/2-20;if(l.length>0)for(let C=0;C<l.length;C++){const P=C*2*Math.PI/l.length-Math.PI/2,S=(C+1)%l.length*2*Math.PI/l.length-Math.PI/2;let $;if(C===l.length-1){const A=S+2*Math.PI-P;$=P+A/2}else $=(P+S)/2;const O=m+_*Math.cos($)-u.width/2,M=m+_*Math.sin($)-u.height/2;f.push(y(ne,{indexes:[C+1],x:O,y:M}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,k(Y,{children:[y(qe,{children:d}),y(je,{children:f})]})]})};We("relation-circle",{component:b6,composites:["title","item"]});function Zo(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(r.next(u))}catch(h){s(h)}}function l(u){try{c(r.throw(u))}catch(h){s(h)}}function c(u){u.done?o(u.value):i(u.value).then(a,l)}c((r=r.apply(e,[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const tee={abs:Math.abs,ceil:Math.ceil,floor:Math.floor,max:Math.max,min:Math.min,round:Math.round,sqrt:Math.sqrt,pow:Math.pow};class Tt extends Error{constructor(t,n,r){super(t),this.position=n,this.token=r,this.name="ExpressionError"}}var He;(function(e){e[e.STRING=0]="STRING",e[e.NUMBER=1]="NUMBER",e[e.BOOLEAN=2]="BOOLEAN",e[e.NULL=3]="NULL",e[e.IDENTIFIER=4]="IDENTIFIER",e[e.OPERATOR=5]="OPERATOR",e[e.FUNCTION=6]="FUNCTION",e[e.DOT=7]="DOT",e[e.BRACKET_LEFT=8]="BRACKET_LEFT",e[e.BRACKET_RIGHT=9]="BRACKET_RIGHT",e[e.PAREN_LEFT=10]="PAREN_LEFT",e[e.PAREN_RIGHT=11]="PAREN_RIGHT",e[e.COMMA=12]="COMMA",e[e.QUESTION=13]="QUESTION",e[e.COLON=14]="COLON",e[e.DOLLAR=15]="DOLLAR"})(He||(He={}));const nee=new Set([32,9,10,13]),ree=new Set([43,45,42,47,37,33,38,124,61,60,62]),iee=new Map([["true",He.BOOLEAN],["false",He.BOOLEAN],["null",He.NULL]]),kf=new Map([["===",!0],["!==",!0],["<=",!0],[">=",!0],["&&",!0],["||",!0],["+",!0],["-",!0],["*",!0],["/",!0],["%",!0],["!",!0],["<",!0],[">",!0]]),oee=new Map([[46,He.DOT],[91,He.BRACKET_LEFT],[93,He.BRACKET_RIGHT],[40,He.PAREN_LEFT],[41,He.PAREN_RIGHT],[44,He.COMMA],[63,He.QUESTION],[58,He.COLON],[36,He.DOLLAR]]),w6=new Map;for(const[e,t]of oee.entries())w6.set(e,{type:t,value:String.fromCharCode(e)});function Qo(e){return e>=48&&e<=57}function Lf(e){return e>=97&&e<=122||e>=65&&e<=90||e===95}function _6(e){return Lf(e)||Qo(e)}function see(e){return ree.has(e)}var St;(function(e){e[e.Program=0]="Program",e[e.Literal=1]="Literal",e[e.Identifier=2]="Identifier",e[e.MemberExpression=3]="MemberExpression",e[e.CallExpression=4]="CallExpression",e[e.BinaryExpression=5]="BinaryExpression",e[e.UnaryExpression=6]="UnaryExpression",e[e.ConditionalExpression=7]="ConditionalExpression"})(St||(St={}));const aee=new Map([["||",2],["&&",3],["===",4],["!==",4],[">",5],[">=",5],["<",5],["<=",5],["+",6],["-",6],["*",7],["/",7],["%",7],["!",8]]),lee={type:St.Literal,value:null},cee={type:St.Literal,value:!0},uee={type:St.Literal,value:!1},hee=e=>{let t=0;const n=e.length,r=()=>t>=n?null:e[t],i=()=>e[t++],o=h=>{const f=r();return f!==null&&f.type===h},s=h=>h.type===He.OPERATOR?aee.get(h.value)||-1:h.type===He.DOT||h.type===He.BRACKET_LEFT?9:h.type===He.QUESTION?1:-1,a=h=>{let f,d;if(i().type===He.DOT){if(!o(He.IDENTIFIER)){const g=r();throw new Tt("Expected property name",t,g?g.value:"<end of input>")}const p=i();f={type:St.Identifier,name:p.value},d=!1}else{if(f=c(0),!o(He.BRACKET_RIGHT)){const p=r();throw new Tt("Expected closing bracket",t,p?p.value:"<end of input>")}i(),d=!0}return{type:St.MemberExpression,object:h,property:f,computed:d}},l=()=>{const h=r();if(!h)throw new Tt("Unexpected end of input",t,"<end of input>");if(h.type===He.OPERATOR&&(h.value==="!"||h.value==="-")){i();const f=l();return{type:St.UnaryExpression,operator:h.value,argument:f,prefix:!0}}switch(h.type){case He.NUMBER:return i(),{type:St.Literal,value:Number(h.value)};case He.STRING:return i(),{type:St.Literal,value:h.value};case He.BOOLEAN:return i(),h.value==="true"?cee:uee;case He.NULL:return i(),lee;case He.IDENTIFIER:return i(),{type:St.Identifier,name:h.value};case He.FUNCTION:return(()=>{const f=i(),d=[];if(!o(He.PAREN_LEFT)){const p=r();throw new Tt("Expected opening parenthesis after function name",t,p?p.value:"<end of input>")}for(i();;){if(o(He.PAREN_RIGHT)){i();break}if(!r()){const g=r();throw new Tt("Expected closing parenthesis",t,g?g.value:"<end of input>")}if(d.length>0){if(!o(He.COMMA)){const g=r();throw new Tt("Expected comma between function arguments",t,g?g.value:"<end of input>")}i()}const p=c(0);d.push(p)}return{type:St.CallExpression,callee:{type:St.Identifier,name:f.value},arguments:d}})();case He.PAREN_LEFT:{i();const f=c(0);if(!o(He.PAREN_RIGHT)){const d=r();throw new Tt("Expected closing parenthesis",t,d?d.value:"<end of input>")}return i(),f}default:throw new Tt(`Unexpected token: ${h.type}`,t,h.value)}},c=(h=0)=>{let f=l();for(;t<n;){const d=e[t],p=s(d);if(p<=h)break;if(d.type!==He.QUESTION)if(d.type!==He.OPERATOR){if(d.type!==He.DOT&&d.type!==He.BRACKET_LEFT)break;f=a(f)}else{i();const g=c(p);f={type:St.BinaryExpression,operator:d.value,left:f,right:g}}else{i();const g=c(0);if(!o(He.COLON)){const v=r();throw new Tt("Expected : in conditional expression",t,v?v.value:"<end of input>")}i();const m=c(0);f={type:St.ConditionalExpression,test:f,consequent:g,alternate:m}}}return f},u=c();return{type:St.Program,body:u}},fee=(e,t,n)=>{let r=t;n&&(r=Dt(ut({},t),{context:ut(ut({},t.context),n)}));const i=o=>{switch(o.type){case St.Literal:return(s=>s.value)(o);case St.Identifier:return(s=>{if(!(s.name in r.context))throw new Tt(`Undefined variable: ${s.name}`);return r.context[s.name]})(o);case St.MemberExpression:return(s=>{const a=i(s.object);if(a==null)throw new Tt("Cannot access property of null or undefined");return a[s.computed?i(s.property):s.property.name]})(o);case St.CallExpression:return(s=>{const a=r.functions[s.callee.name];if(!a)throw new Tt(`Undefined function: ${s.callee.name}`);return a(...s.arguments.map((l=>i(l))))})(o);case St.BinaryExpression:return(s=>{if(s.operator==="&&"){const c=i(s.left);return c&&i(s.right)}if(s.operator==="||")return i(s.left)||i(s.right);const a=i(s.left),l=i(s.right);switch(s.operator){case"+":return a+l;case"-":return a-l;case"*":return a*l;case"/":return a/l;case"%":return a%l;case"===":return a===l;case"!==":return a!==l;case">":return a>l;case">=":return a>=l;case"<":return a<l;case"<=":return a<=l;default:throw new Tt(`Unknown operator: ${s.operator}`)}})(o);case St.UnaryExpression:return(s=>{const a=i(s.argument);if(s.prefix)switch(s.operator){case"!":return!a;case"-":if(typeof a!="number")throw new Tt(`Cannot apply unary - to non-number: ${a}`);return-a;default:throw new Tt(`Unknown operator: ${s.operator}`)}throw new Tt(`Postfix operators are not supported: ${s.operator}`)})(o);case St.ConditionalExpression:return(s=>{const a=i(s.test);return i(a?s.consequent:s.alternate)})(o);default:throw new Tt(`Evaluation error: Unsupported node type: ${o.type}`)}};return i(e.body)};function x6(e){const t=(i=>{const o=i,s=o.length,a=new Array(Math.ceil(s/3));let l=0,c=0;function u(m){const v=c+1;c++;let b="",w=!1;for(;c<s;){const x=o.charCodeAt(c);if(x===m)return w||(b=o.substring(v,c)),c++,{type:He.STRING,value:b};x===92?(w||(b=o.substring(v,c),w=!0),c++,b+=o[c]):w&&(b+=o[c]),c++}throw new Tt(`Unterminated string starting with ${String.fromCharCode(m)}`,c,o.substring(Math.max(0,c-10),c))}function h(){const m=c;for(o.charCodeAt(c)===45&&c++;c<s&&Qo(o.charCodeAt(c));)c++;if(c<s&&o.charCodeAt(c)===46)for(c++;c<s&&Qo(o.charCodeAt(c));)c++;const v=o.slice(m,c);return{type:He.NUMBER,value:v}}function f(){c++;const m=c;if(c<s&&Lf(o.charCodeAt(c)))for(c++;c<s&&_6(o.charCodeAt(c));)c++;const v=o.slice(m,c);return{type:He.FUNCTION,value:v}}function d(){const m=c++;for(;c<s&&_6(o.charCodeAt(c));)c++;const v=o.slice(m,c),b=iee.get(v);return b?{type:b,value:v}:{type:He.IDENTIFIER,value:v}}function p(){if(c+2<s){const v=o.substring(c,c+3);if(kf.has(v))return c+=3,{type:He.OPERATOR,value:v}}if(c+1<s){const v=o.substring(c,c+2);if(kf.has(v))return c+=2,{type:He.OPERATOR,value:v}}const m=o[c];if(kf.has(m))return c++,{type:He.OPERATOR,value:m};throw new Tt(`Unknown operator at position ${c}: ${o.substring(c,c+1)}`,c,o.substring(Math.max(0,c-10),c))}for(;c<s;){const m=o.charCodeAt(c);if(g=m,nee.has(g)){c++;continue}const v=w6.get(m);if(v)a[l++]=v,c++;else if(m!==34&&m!==39)if(Qo(m)||m===45&&c+1<s&&Qo(o.charCodeAt(c+1)))a[l++]=h();else if(m!==64)if(Lf(m))a[l++]=d();else{if(!see(m))throw new Tt(`Unexpected character: ${o[c]}`,c,o.substring(Math.max(0,c-10),c));a[l++]=p()}else a[l++]=f();else a[l++]=u(m)}var g;return l===a.length?a:a.slice(0,l)})(e),n=hee(t),r=((i={},o={})=>({context:i,functions:o}))({},tee);return(i={})=>fee(n,r,i)}function dee(e,t={}){return x6(e)(t)}function pee(e,t){if(typeof e!="string")return;const n=e.trim();if(n)try{return x6(n),dee(n,t)}catch(r){return}}function Ni(e){return typeof e=="number"}function C6(e){if(!e)return[0,0,0];if(Ni(e))return[e,e,e];if(Array.isArray(e)&&e.length===0)return[0,0,0];const[t,n=t,r=t]=e;return[t,n,r]}function gee(e){return Ni(e)?!0:Array.isArray(e)?e.every(t=>Ni(t)):!1}function hn(e){return e==null}function P6(e){return typeof e=="string"}function S6(e){return typeof e=="function"}function Nf(e,t){if(typeof e=="function")return e;if(typeof e=="string"){const n=e;return(...r)=>{const i={};for(let o=0;o<t.length;o++)i[t[o]]=r[o];return pee(n,i)}}return()=>e}function zf(e,t,n="node"){if(hn(e))return()=>t;if(P6(e)){const r=Nf(e,[n]);return i=>{const o=r(i);return Ni(o)?o:t}}return S6(e)?e:Ni(e)?()=>e:()=>t}function O6(e,t=10,n="node"){if(hn(e))return()=>t;if(P6(e)){const r=Nf(e,[n]);return i=>{const o=r(i);return gee(o)?o:t}}return S6(e)?e:Ni(e)?()=>e:Array.isArray(e)?()=>e:()=>t}function mee(e){var t;return[e.x,e.y,(t=e.z)!==null&&t!==void 0?t:0]}class yee{constructor(t,n={}){this.edgeIdCounter=new Map,this.nodeMap=wee(t.nodes,n.node),this.edgeMap=_ee(t.edges||[],n.edge,this.getEdgeId.bind(this))}data(){return{nodes:this.nodeMap,edges:this.edgeMap}}replace(t){this.nodeMap=t.nodes,this.edgeMap=t.edges,this.clearCache()}nodes(){return Array.from(this.nodeMap.values())}node(t){return this.nodeMap.get(t)}nodeAt(t){this.indexNodeCache||this.buildNodeIndexCache();const n=this.indexNodeCache.get(t);return n?this.nodeMap.get(n):void 0}nodeIndexOf(t){var n;return this.nodeIndexCache||this.buildNodeIndexCache(),(n=this.nodeIndexCache.get(t))!==null&&n!==void 0?n:-1}firstNode(){return this.nodeMap.values().next().value}forEachNode(t){let n=0;this.nodeMap.forEach(r=>t(r,n++))}originalNode(t){const n=this.nodeMap.get(t);return n==null?void 0:n._original}nodeCount(){return this.nodeMap.size}edges(){return Array.from(this.edgeMap.values())}edge(t){return this.edgeMap.get(t)}firstEdge(){return this.edgeMap.values().next().value}forEachEdge(t){let n=0;this.edgeMap.forEach(r=>t(r,n++))}originalEdge(t){const n=this.edgeMap.get(t);return n==null?void 0:n._original}edgeCount(){return this.edgeMap.size}getEdgeId(t){if(t.id)return t.id;const n=`${t.source}-${t.target}`,r=this.edgeIdCounter.get(n)||0,i=r===0?n:`${n}-${r}`;return this.edgeIdCounter.set(n,r+1),i}degree(t,n="both"){this.degreeCache||this.buildDegreeCache();const r=this.degreeCache.get(t);return r?r[n]:0}neighbors(t,n="both"){if((!this.outAdjacencyCache||!this.inAdjacencyCache)&&this.buildAdjacencyCache(),n==="out")return Array.from(this.outAdjacencyCache.get(t)||[]);if(n==="in")return Array.from(this.inAdjacencyCache.get(t)||[]);if(this.bothAdjacencyCache)return Array.from(this.bothAdjacencyCache.get(t)||[]);const r=this.inAdjacencyCache.get(t),i=this.outAdjacencyCache.get(t);if(!r&&!i)return[];if(!r)return Array.from(i);if(!i)return Array.from(r);const o=new Set;return r.forEach(s=>o.add(s)),i.forEach(s=>o.add(s)),Array.from(o)}successors(t){return this.neighbors(t,"out")}predecessors(t){return this.neighbors(t,"in")}setNodeOrder(t){const n=new Map;for(const r of t)n.set(r.id,r);this.nodeMap=n,this.nodeIndexCache=void 0,this.indexNodeCache=void 0}clearCache(){this.degreeCache=void 0,this.inAdjacencyCache=void 0,this.outAdjacencyCache=void 0,this.bothAdjacencyCache=void 0,this.nodeIndexCache=void 0,this.indexNodeCache=void 0}buildDegreeCache(){this.degreeCache=new Map;for(const t of this.edges()){const{source:n,target:r}=t;if(t.source===t.target)continue;this.degreeCache.has(n)||this.degreeCache.set(n,{in:0,out:0,both:0});const i=this.degreeCache.get(t.source);i&&(i.out++,i.both++),this.degreeCache.has(r)||this.degreeCache.set(r,{in:0,out:0,both:0});const o=this.degreeCache.get(t.target);o&&(o.in++,o.both++)}}buildAdjacencyCache(){this.inAdjacencyCache=new Map,this.outAdjacencyCache=new Map;for(const t of this.edges())!this.nodeMap.has(t.source)||!this.nodeMap.has(t.target)||(this.outAdjacencyCache.has(t.source)||this.outAdjacencyCache.set(t.source,new Set),this.outAdjacencyCache.get(t.source).add(t.target),this.inAdjacencyCache.has(t.target)||this.inAdjacencyCache.set(t.target,new Set),this.inAdjacencyCache.get(t.target).add(t.source))}buildNodeIndexCache(){this.nodeIndexCache=new Map,this.indexNodeCache=new Map;let t=0;this.nodeMap.forEach((n,r)=>{this.nodeIndexCache.set(r,t),this.indexNodeCache.set(t,r),t++})}destroy(){this.clearCache(),this.nodeMap.clear(),this.edgeMap.clear(),this.edgeIdCounter.clear()}}const vee=["id","x","y","z","vx","vy","vz","fx","fy","fz","parentId"],bee=["id","source","target","points"];function wee(e,t){if(!e)throw new Error("Data.nodes is required");const n=new Map;for(const r of e){const i={_original:r};for(const o of vee){const s=r[o];hn(s)||(i[o]=s)}if(t){const o=t(r);for(const s in o){const a=o[s];hn(a)||(i[s]=a)}}if(hn(i.id))throw new Error("Node is missing id field");n.set(i.id,i)}return n}function _ee(e,t,n){const r=new Map;for(const i of e){const o={_original:i};for(const s of bee){const a=i[s];hn(a)||(o[s]=a)}if(t){const s=t(i);for(const a in s){const l=s[a];hn(l)||(o[a]=l)}}if(hn(o.source)||hn(o.target))throw new Error("Edge is missing source or target field");hn(o.id)&&(o.id=n==null?void 0:n(i)),r.set(o.id,o)}return r}class xee{constructor(t,n={}){this.graph=new yee(t,n)}export(){return this.graph.data()}replace(t){this.graph.replace(t)}forEachNode(t){this.graph.forEachNode(t)}forEachEdge(t){this.graph.forEachEdge((n,r)=>{n.sourceNode=this.graph.node(n.source),n.targetNode=this.graph.node(n.target),t(n,r)})}destroy(){this.graph.destroy()}}const $6=Symbol("Comlink.proxy"),Cee=Symbol("Comlink.endpoint"),Pee=Symbol("Comlink.releaseProxy"),Df=Symbol("Comlink.finalizer"),Pl=Symbol("Comlink.thrown"),E6=e=>typeof e=="object"&&e!==null||typeof e=="function",See={canHandle:e=>E6(e)&&e[$6],serialize(e){const{port1:t,port2:n}=new MessageChannel;return A6(e,t),[n,[n]]},deserialize(e){return e.start(),T6(e)}},Oee={canHandle:e=>E6(e)&&Pl in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},M6=new Map([["proxy",See],["throw",Oee]]);function $ee(e,t){for(const n of e)if(t===n||n==="*"||n instanceof RegExp&&n.test(t))return!0;return!1}function A6(e,t=globalThis,n=["*"]){t.addEventListener("message",function r(i){if(!i||!i.data)return;if(!$ee(n,i.origin)){console.warn(`Invalid origin '${i.origin}' for comlink proxy`);return}const{id:o,type:s,path:a}=Object.assign({path:[]},i.data),l=(i.data.argumentList||[]).map(Kr);let c;try{const u=a.slice(0,-1).reduce((f,d)=>f[d],e),h=a.reduce((f,d)=>f[d],e);switch(s){case"GET":c=h;break;case"SET":u[a.slice(-1)[0]]=Kr(i.data.value),c=!0;break;case"APPLY":c=h.apply(u,l);break;case"CONSTRUCT":{const f=new h(...l);c=Ree(f)}break;case"ENDPOINT":{const{port1:f,port2:d}=new MessageChannel;A6(e,d),c=Tee(f,[f])}break;case"RELEASE":c=void 0;break;default:return}}catch(u){c={value:u,[Pl]:0}}Promise.resolve(c).catch(u=>({value:u,[Pl]:0})).then(u=>{const[h,f]=El(u);t.postMessage(Object.assign(Object.assign({},h),{id:o}),f),s==="RELEASE"&&(t.removeEventListener("message",r),I6(t),Df in e&&typeof e[Df]=="function"&&e[Df]())}).catch(u=>{const[h,f]=El({value:new TypeError("Unserializable return value"),[Pl]:0});t.postMessage(Object.assign(Object.assign({},h),{id:o}),f)})}),t.start&&t.start()}function Eee(e){return e.constructor.name==="MessagePort"}function I6(e){Eee(e)&&e.close()}function T6(e,t){const n=new Map;return e.addEventListener("message",function(i){const{data:o}=i;if(!o||!o.id)return;const s=n.get(o.id);if(s)try{s(o)}finally{n.delete(o.id)}}),qf(e,n,[],t)}function Sl(e){if(e)throw new Error("Proxy has been released and is not useable")}function R6(e){return zi(e,new Map,{type:"RELEASE"}).then(()=>{I6(e)})}const Ol=new WeakMap,$l="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(Ol.get(e)||0)-1;Ol.set(e,t),t===0&&R6(e)});function Mee(e,t){const n=(Ol.get(t)||0)+1;Ol.set(t,n),$l&&$l.register(e,t,e)}function Aee(e){$l&&$l.unregister(e)}function qf(e,t,n=[],r=function(){}){let i=!1;const o=new Proxy(r,{get(s,a){if(Sl(i),a===Pee)return()=>{Aee(o),R6(e),t.clear(),i=!0};if(a==="then"){if(n.length===0)return{then:()=>o};const l=zi(e,t,{type:"GET",path:n.map(c=>c.toString())}).then(Kr);return l.then.bind(l)}return qf(e,t,[...n,a])},set(s,a,l){Sl(i);const[c,u]=El(l);return zi(e,t,{type:"SET",path:[...n,a].map(h=>h.toString()),value:c},u).then(Kr)},apply(s,a,l){Sl(i);const c=n[n.length-1];if(c===Cee)return zi(e,t,{type:"ENDPOINT"}).then(Kr);if(c==="bind")return qf(e,t,n.slice(0,-1));const[u,h]=k6(l);return zi(e,t,{type:"APPLY",path:n.map(f=>f.toString()),argumentList:u},h).then(Kr)},construct(s,a){Sl(i);const[l,c]=k6(a);return zi(e,t,{type:"CONSTRUCT",path:n.map(u=>u.toString()),argumentList:l},c).then(Kr)}});return Mee(o,e),o}function Iee(e){return Array.prototype.concat.apply([],e)}function k6(e){const t=e.map(El);return[t.map(n=>n[0]),Iee(t.map(n=>n[1]))]}const L6=new WeakMap;function Tee(e,t){return L6.set(e,t),e}function Ree(e){return Object.assign(e,{[$6]:!0})}function El(e){for(const[t,n]of M6)if(n.canHandle(e)){const[r,i]=n.serialize(e);return[{type:"HANDLER",name:t,value:r},i]}return[{type:"RAW",value:e},L6.get(e)||[]]}function Kr(e){switch(e.type){case"HANDLER":return M6.get(e.name).deserialize(e.value);case"RAW":return e.value}}function zi(e,t,n,r){return new Promise(i=>{const o=kee();t.set(o,i),e.start&&e.start(),e.postMessage(Object.assign({id:o},n),r)})}function kee(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}class Lee{constructor(){this.worker=null,this.workerApi=null}execute(t,n,r){return Zo(this,void 0,void 0,function*(){if(this.worker||(yield this.initWorker()),!this.workerApi)throw new Error("Worker API not initialized");return yield this.workerApi.execute(t,n,r)})}destroy(){this.workerApi&&this.workerApi.destroy(),this.worker&&(this.worker.terminate(),this.worker=null,this.workerApi=null)}initWorker(){return Zo(this,void 0,void 0,function*(){const t=this.resolveWorkerPath(),r=t.includes("/lib/")||t.endsWith(".mjs")?"module":"classic";this.worker=new Worker(t,{type:r}),this.workerApi=T6(this.worker)})}resolveWorkerPath(){const t=(()=>{if(typeof document=="undefined")return null;const n=document.currentScript;if(n!=null&&n.src)return n.src;const r=document.getElementsByTagName("script");for(let i=r.length-1;i>=0;i--){const o=r[i].src;if(o&&(o.includes("index.js")||o.includes("index.min.js")))return o}return null})();if(t){if(t.includes("index.js")||t.includes("index.min.js")){const i=t.replace(/index(\.min)?\.(m?js)(\?.*)?$/,"worker.js");if(i!==t)return i}const n=t.replace(/\/runtime\/[^/]+\.(m?js)(\?.*)?$/,"/worker.js");if(n!==t)return n;const r=t.replace(/\/[^/]+\.(m?js)(\?.*)?$/,"/worker.js");if(r!==t)return r}return"./worker.js"}}class Nee{constructor(t){this.supervisor=null,this.initialOptions=this.mergeOptions(this.getDefaultOptions(),t)}get options(){return this.runtimeOptions||this.initialOptions}mergeOptions(t,n){return Object.assign({},t,n||{})}execute(t,n){return Zo(this,void 0,void 0,function*(){this.runtimeOptions=this.mergeOptions(this.initialOptions,n);const{node:r,edge:i,enableWorker:o}=this.runtimeOptions;this.context=new xee(t,{node:r,edge:i}),this.model=this.context.graph,o&&typeof Worker!="undefined"?yield this.layoutInWorker(t,this.runtimeOptions):yield this.layout(this.runtimeOptions)})}layoutInWorker(t,n){var r;return Zo(this,void 0,void 0,function*(){try{this.supervisor||(this.supervisor=new Lee);const i=yield this.supervisor.execute(this.id,t,n);(r=this.context)===null||r===void 0||r.replace(i)}catch(i){console.error("Layout in worker failed, fallback to main thread layout.",i),yield this.layout(n)}})}forEachNode(t){this.context.forEachNode(t)}forEachEdge(t){this.context.forEachEdge(t)}destroy(){var t;(t=this.context)===null||t===void 0||t.destroy(),this.model=null,this.context=null,this.supervisor&&(this.supervisor.destroy(),this.supervisor=null)}}function zee(e){return Array.isArray(e)}var Dee=(function(e){var t=typeof e;return e!==null&&t==="object"||t==="function"}),qee=function(e){return typeof e=="object"&&e!==null},Hee={}.toString,N6=function(e,t){return Hee.call(e)==="[object "+t+"]"},jee=function(e){if(!qee(e)||!N6(e,"Object"))return!1;if(Object.getPrototypeOf(e)===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},Ml=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Fee(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Hf(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var jf,z6;function Bee(){if(z6)return jf;z6=1;function e(){this.__data__=[],this.size=0}return jf=e,jf}var Ff,D6;function Di(){if(D6)return Ff;D6=1;function e(t,n){return t===n||t!==t&&n!==n}return Ff=e,Ff}var Bf,q6;function Al(){if(q6)return Bf;q6=1;var e=Di();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return Bf=t,Bf}var Wf,H6;function Wee(){if(H6)return Wf;H6=1;var e=Al(),t=Array.prototype,n=t.splice;function r(i){var o=this.__data__,s=e(o,i);if(s<0)return!1;var a=o.length-1;return s==a?o.pop():n.call(o,s,1),--this.size,!0}return Wf=r,Wf}var Vf,j6;function Vee(){if(j6)return Vf;j6=1;var e=Al();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return Vf=t,Vf}var Gf,F6;function Gee(){if(F6)return Gf;F6=1;var e=Al();function t(n){return e(this.__data__,n)>-1}return Gf=t,Gf}var Yf,B6;function Yee(){if(B6)return Yf;B6=1;var e=Al();function t(n,r){var i=this.__data__,o=e(i,n);return o<0?(++this.size,i.push([n,r])):i[o][1]=r,this}return Yf=t,Yf}var Xf,W6;function Il(){if(W6)return Xf;W6=1;var e=Bee(),t=Wee(),n=Vee(),r=Gee(),i=Yee();function o(s){var a=-1,l=s==null?0:s.length;for(this.clear();++a<l;){var c=s[a];this.set(c[0],c[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Xf=o,Xf}var Uf,V6;function Xee(){if(V6)return Uf;V6=1;var e=Il();function t(){this.__data__=new e,this.size=0}return Uf=t,Uf}var Kf,G6;function Uee(){if(G6)return Kf;G6=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return Kf=e,Kf}var Zf,Y6;function Kee(){if(Y6)return Zf;Y6=1;function e(t){return this.__data__.get(t)}return Zf=e,Zf}var Qf,X6;function Zee(){if(X6)return Qf;X6=1;function e(t){return this.__data__.has(t)}return Qf=e,Qf}var Jf,U6;function K6(){if(U6)return Jf;U6=1;var e=typeof Ml=="object"&&Ml&&Ml.Object===Object&&Ml;return Jf=e,Jf}var ed,Z6;function Cn(){if(Z6)return ed;Z6=1;var e=K6(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return ed=n,ed}var td,Q6;function qi(){if(Q6)return td;Q6=1;var e=Cn(),t=e.Symbol;return td=t,td}var nd,J6;function Qee(){if(J6)return nd;J6=1;var e=qi(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function o(s){var a=n.call(s,i),l=s[i];try{s[i]=void 0;var c=!0}catch(h){}var u=r.call(s);return c&&(a?s[i]=l:delete s[i]),u}return nd=o,nd}var rd,e7;function Jee(){if(e7)return rd;e7=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return rd=n,rd}var id,t7;function Zr(){if(t7)return id;t7=1;var e=qi(),t=Qee(),n=Jee(),r="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function s(a){return a==null?a===void 0?i:r:o&&o in Object(a)?t(a):n(a)}return id=s,id}var od,n7;function fn(){if(n7)return od;n7=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return od=e,od}var sd,r7;function Jo(){if(r7)return sd;r7=1;var e=Zr(),t=fn(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function s(a){if(!t(a))return!1;var l=e(a);return l==r||l==i||l==n||l==o}return sd=s,sd}var ad,i7;function ete(){if(i7)return ad;i7=1;var e=Cn(),t=e["__core-js_shared__"];return ad=t,ad}var ld,o7;function tte(){if(o7)return ld;o7=1;var e=ete(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return ld=n,ld}var cd,s7;function a7(){if(s7)return cd;s7=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch(i){}try{return r+""}catch(i){}}return""}return cd=n,cd}var ud,l7;function nte(){if(l7)return ud;l7=1;var e=Jo(),t=tte(),n=fn(),r=a7(),i=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,s=Function.prototype,a=Object.prototype,l=s.toString,c=a.hasOwnProperty,u=RegExp("^"+l.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(f){if(!n(f)||t(f))return!1;var d=e(f)?u:o;return d.test(r(f))}return ud=h,ud}var hd,c7;function rte(){if(c7)return hd;c7=1;function e(t,n){return t==null?void 0:t[n]}return hd=e,hd}var fd,u7;function Qr(){if(u7)return fd;u7=1;var e=nte(),t=rte();function n(r,i){var o=t(r,i);return e(o)?o:void 0}return fd=n,fd}var dd,h7;function pd(){if(h7)return dd;h7=1;var e=Qr(),t=Cn(),n=e(t,"Map");return dd=n,dd}var gd,f7;function Tl(){if(f7)return gd;f7=1;var e=Qr(),t=e(Object,"create");return gd=t,gd}var md,d7;function ite(){if(d7)return md;d7=1;var e=Tl();function t(){this.__data__=e?e(null):{},this.size=0}return md=t,md}var yd,p7;function ote(){if(p7)return yd;p7=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return yd=e,yd}var vd,g7;function ste(){if(g7)return vd;g7=1;var e=Tl(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(o){var s=this.__data__;if(e){var a=s[o];return a===t?void 0:a}return r.call(s,o)?s[o]:void 0}return vd=i,vd}var bd,m7;function ate(){if(m7)return bd;m7=1;var e=Tl(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var o=this.__data__;return e?o[i]!==void 0:n.call(o,i)}return bd=r,bd}var wd,y7;function lte(){if(y7)return wd;y7=1;var e=Tl(),t="__lodash_hash_undefined__";function n(r,i){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=e&&i===void 0?t:i,this}return wd=n,wd}var _d,v7;function cte(){if(v7)return _d;v7=1;var e=ite(),t=ote(),n=ste(),r=ate(),i=lte();function o(s){var a=-1,l=s==null?0:s.length;for(this.clear();++a<l;){var c=s[a];this.set(c[0],c[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,_d=o,_d}var xd,b7;function ute(){if(b7)return xd;b7=1;var e=cte(),t=Il(),n=pd();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return xd=r,xd}var Cd,w7;function hte(){if(w7)return Cd;w7=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Cd=e,Cd}var Pd,_7;function Rl(){if(_7)return Pd;_7=1;var e=hte();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return Pd=t,Pd}var Sd,x7;function fte(){if(x7)return Sd;x7=1;var e=Rl();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Sd=t,Sd}var Od,C7;function dte(){if(C7)return Od;C7=1;var e=Rl();function t(n){return e(this,n).get(n)}return Od=t,Od}var $d,P7;function pte(){if(P7)return $d;P7=1;var e=Rl();function t(n){return e(this,n).has(n)}return $d=t,$d}var Ed,S7;function gte(){if(S7)return Ed;S7=1;var e=Rl();function t(n,r){var i=e(this,n),o=i.size;return i.set(n,r),this.size+=i.size==o?0:1,this}return Ed=t,Ed}var Md,O7;function Ad(){if(O7)return Md;O7=1;var e=ute(),t=fte(),n=dte(),r=pte(),i=gte();function o(s){var a=-1,l=s==null?0:s.length;for(this.clear();++a<l;){var c=s[a];this.set(c[0],c[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Md=o,Md}var Id,$7;function mte(){if($7)return Id;$7=1;var e=Il(),t=pd(),n=Ad(),r=200;function i(o,s){var a=this.__data__;if(a instanceof e){var l=a.__data__;if(!t||l.length<r-1)return l.push([o,s]),this.size=++a.size,this;a=this.__data__=new n(l)}return a.set(o,s),this.size=a.size,this}return Id=i,Id}var Td,E7;function kl(){if(E7)return Td;E7=1;var e=Il(),t=Xee(),n=Uee(),r=Kee(),i=Zee(),o=mte();function s(a){var l=this.__data__=new e(a);this.size=l.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=i,s.prototype.set=o,Td=s,Td}var Rd,M7;function kd(){if(M7)return Rd;M7=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i&&n(t[r],r,t)!==!1;);return t}return Rd=e,Rd}var Ld,A7;function I7(){if(A7)return Ld;A7=1;var e=Qr(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch(r){}})();return Ld=t,Ld}var Nd,T7;function Ll(){if(T7)return Nd;T7=1;var e=I7();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return Nd=t,Nd}var zd,R7;function Nl(){if(R7)return zd;R7=1;var e=Ll(),t=Di(),n=Object.prototype,r=n.hasOwnProperty;function i(o,s,a){var l=o[s];(!(r.call(o,s)&&t(l,a))||a===void 0&&!(s in o))&&e(o,s,a)}return zd=i,zd}var Dd,k7;function es(){if(k7)return Dd;k7=1;var e=Nl(),t=Ll();function n(r,i,o,s){var a=!o;o||(o={});for(var l=-1,c=i.length;++l<c;){var u=i[l],h=s?s(o[u],r[u],u,o,r):void 0;h===void 0&&(h=r[u]),a?t(o,u,h):e(o,u,h)}return o}return Dd=n,Dd}var qd,L7;function yte(){if(L7)return qd;L7=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return qd=e,qd}var Hd,N7;function jn(){if(N7)return Hd;N7=1;function e(t){return t!=null&&typeof t=="object"}return Hd=e,Hd}var jd,z7;function vte(){if(z7)return jd;z7=1;var e=Zr(),t=jn(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return jd=r,jd}var Fd,D7;function ts(){if(D7)return Fd;D7=1;var e=vte(),t=jn(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=e((function(){return arguments})())?e:function(s){return t(s)&&r.call(s,"callee")&&!i.call(s,"callee")};return Fd=o,Fd}var Bd,q7;function Rt(){if(q7)return Bd;q7=1;var e=Array.isArray;return Bd=e,Bd}var ns={exports:{}},Wd,H7;function bte(){if(H7)return Wd;H7=1;function e(){return!1}return Wd=e,Wd}ns.exports;var j7;function Hi(){return j7||(j7=1,(function(e,t){var n=Cn(),r=bte(),i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===i,a=s?n.Buffer:void 0,l=a?a.isBuffer:void 0,c=l||r;e.exports=c})(ns,ns.exports)),ns.exports}var Vd,F7;function zl(){if(F7)return Vd;F7=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var o=typeof r;return i=i==null?e:i,!!i&&(o=="number"||o!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return Vd=n,Vd}var Gd,B7;function Yd(){if(B7)return Gd;B7=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Gd=t,Gd}var Xd,W7;function wte(){if(W7)return Xd;W7=1;var e=Zr(),t=Yd(),n=jn(),r="[object Arguments]",i="[object Array]",o="[object Boolean]",s="[object Date]",a="[object Error]",l="[object Function]",c="[object Map]",u="[object Number]",h="[object Object]",f="[object RegExp]",d="[object Set]",p="[object String]",g="[object WeakMap]",m="[object ArrayBuffer]",v="[object DataView]",b="[object Float32Array]",w="[object Float64Array]",x="[object Int8Array]",_="[object Int16Array]",C="[object Int32Array]",P="[object Uint8Array]",S="[object Uint8ClampedArray]",$="[object Uint16Array]",O="[object Uint32Array]",M={};M[b]=M[w]=M[x]=M[_]=M[C]=M[P]=M[S]=M[$]=M[O]=!0,M[r]=M[i]=M[m]=M[o]=M[v]=M[s]=M[a]=M[l]=M[c]=M[u]=M[h]=M[f]=M[d]=M[p]=M[g]=!1;function A(E){return n(E)&&t(E.length)&&!!M[e(E)]}return Xd=A,Xd}var Ud,V7;function Dl(){if(V7)return Ud;V7=1;function e(t){return function(n){return t(n)}}return Ud=e,Ud}var rs={exports:{}};rs.exports;var G7;function Kd(){return G7||(G7=1,(function(e,t){var n=K6(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,s=o&&n.process,a=(function(){try{var l=i&&i.require&&i.require("util").types;return l||s&&s.binding&&s.binding("util")}catch(c){}})();e.exports=a})(rs,rs.exports)),rs.exports}var Zd,Y7;function is(){if(Y7)return Zd;Y7=1;var e=wte(),t=Dl(),n=Kd(),r=n&&n.isTypedArray,i=r?t(r):e;return Zd=i,Zd}var Qd,X7;function U7(){if(X7)return Qd;X7=1;var e=yte(),t=ts(),n=Rt(),r=Hi(),i=zl(),o=is(),s=Object.prototype,a=s.hasOwnProperty;function l(c,u){var h=n(c),f=!h&&t(c),d=!h&&!f&&r(c),p=!h&&!f&&!d&&o(c),g=h||f||d||p,m=g?e(c.length,String):[],v=m.length;for(var b in c)(u||a.call(c,b))&&!(g&&(b=="length"||d&&(b=="offset"||b=="parent")||p&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||i(b,v)))&&m.push(b);return m}return Qd=l,Qd}var Jd,K7;function ql(){if(K7)return Jd;K7=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return Jd=t,Jd}var ep,Z7;function Q7(){if(Z7)return ep;Z7=1;function e(t,n){return function(r){return t(n(r))}}return ep=e,ep}var tp,J7;function _te(){if(J7)return tp;J7=1;var e=Q7(),t=e(Object.keys,Object);return tp=t,tp}var np,e9;function rp(){if(e9)return np;e9=1;var e=ql(),t=_te(),n=Object.prototype,r=n.hasOwnProperty;function i(o){if(!e(o))return t(o);var s=[];for(var a in Object(o))r.call(o,a)&&a!="constructor"&&s.push(a);return s}return np=i,np}var ip,t9;function rr(){if(t9)return ip;t9=1;var e=Jo(),t=Yd();function n(r){return r!=null&&t(r.length)&&!e(r)}return ip=n,ip}var op,n9;function wr(){if(n9)return op;n9=1;var e=U7(),t=rp(),n=rr();function r(i){return n(i)?e(i):t(i)}return op=r,op}var sp,r9;function xte(){if(r9)return sp;r9=1;var e=es(),t=wr();function n(r,i){return r&&e(i,t(i),r)}return sp=n,sp}var ap,i9;function Cte(){if(i9)return ap;i9=1;function e(t){var n=[];if(t!=null)for(var r in Object(t))n.push(r);return n}return ap=e,ap}var lp,o9;function Pte(){if(o9)return lp;o9=1;var e=fn(),t=ql(),n=Cte(),r=Object.prototype,i=r.hasOwnProperty;function o(s){if(!e(s))return n(s);var a=t(s),l=[];for(var c in s)c=="constructor"&&(a||!i.call(s,c))||l.push(c);return l}return lp=o,lp}var cp,s9;function Jr(){if(s9)return cp;s9=1;var e=U7(),t=Pte(),n=rr();function r(i){return n(i)?e(i,!0):t(i)}return cp=r,cp}var up,a9;function Ste(){if(a9)return up;a9=1;var e=es(),t=Jr();function n(r,i){return r&&e(i,t(i),r)}return up=n,up}var os={exports:{}};os.exports;var l9;function c9(){return l9||(l9=1,(function(e,t){var n=Cn(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,s=o?n.Buffer:void 0,a=s?s.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var h=c.length,f=a?a(h):new c.constructor(h);return c.copy(f),f}e.exports=l})(os,os.exports)),os.exports}var hp,u9;function h9(){if(u9)return hp;u9=1;function e(t,n){var r=-1,i=t.length;for(n||(n=Array(i));++r<i;)n[r]=t[r];return n}return hp=e,hp}var fp,f9;function d9(){if(f9)return fp;f9=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,o=0,s=[];++r<i;){var a=t[r];n(a,r,t)&&(s[o++]=a)}return s}return fp=e,fp}var dp,p9;function g9(){if(p9)return dp;p9=1;function e(){return[]}return dp=e,dp}var pp,m9;function gp(){if(m9)return pp;m9=1;var e=d9(),t=g9(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,o=i?function(s){return s==null?[]:(s=Object(s),e(i(s),function(a){return r.call(s,a)}))}:t;return pp=o,pp}var mp,y9;function Ote(){if(y9)return mp;y9=1;var e=es(),t=gp();function n(r,i){return e(r,t(r),i)}return mp=n,mp}var yp,v9;function vp(){if(v9)return yp;v9=1;function e(t,n){for(var r=-1,i=n.length,o=t.length;++r<i;)t[o+r]=n[r];return t}return yp=e,yp}var bp,b9;function Hl(){if(b9)return bp;b9=1;var e=Q7(),t=e(Object.getPrototypeOf,Object);return bp=t,bp}var wp,w9;function _9(){if(w9)return wp;w9=1;var e=vp(),t=Hl(),n=gp(),r=g9(),i=Object.getOwnPropertySymbols,o=i?function(s){for(var a=[];s;)e(a,n(s)),s=t(s);return a}:r;return wp=o,wp}var _p,x9;function $te(){if(x9)return _p;x9=1;var e=es(),t=_9();function n(r,i){return e(r,t(r),i)}return _p=n,_p}var xp,C9;function P9(){if(C9)return xp;C9=1;var e=vp(),t=Rt();function n(r,i,o){var s=i(r);return t(r)?s:e(s,o(r))}return xp=n,xp}var Cp,S9;function O9(){if(S9)return Cp;S9=1;var e=P9(),t=gp(),n=wr();function r(i){return e(i,n,t)}return Cp=r,Cp}var Pp,$9;function Ete(){if($9)return Pp;$9=1;var e=P9(),t=_9(),n=Jr();function r(i){return e(i,n,t)}return Pp=r,Pp}var Sp,E9;function Mte(){if(E9)return Sp;E9=1;var e=Qr(),t=Cn(),n=e(t,"DataView");return Sp=n,Sp}var Op,M9;function Ate(){if(M9)return Op;M9=1;var e=Qr(),t=Cn(),n=e(t,"Promise");return Op=n,Op}var $p,A9;function I9(){if(A9)return $p;A9=1;var e=Qr(),t=Cn(),n=e(t,"Set");return $p=n,$p}var Ep,T9;function Ite(){if(T9)return Ep;T9=1;var e=Qr(),t=Cn(),n=e(t,"WeakMap");return Ep=n,Ep}var Mp,R9;function ji(){if(R9)return Mp;R9=1;var e=Mte(),t=pd(),n=Ate(),r=I9(),i=Ite(),o=Zr(),s=a7(),a="[object Map]",l="[object Object]",c="[object Promise]",u="[object Set]",h="[object WeakMap]",f="[object DataView]",d=s(e),p=s(t),g=s(n),m=s(r),v=s(i),b=o;return(e&&b(new e(new ArrayBuffer(1)))!=f||t&&b(new t)!=a||n&&b(n.resolve())!=c||r&&b(new r)!=u||i&&b(new i)!=h)&&(b=function(w){var x=o(w),_=x==l?w.constructor:void 0,C=_?s(_):"";if(C)switch(C){case d:return f;case p:return a;case g:return c;case m:return u;case v:return h}return x}),Mp=b,Mp}var Ap,k9;function Tte(){if(k9)return Ap;k9=1;var e=Object.prototype,t=e.hasOwnProperty;function n(r){var i=r.length,o=new r.constructor(i);return i&&typeof r[0]=="string"&&t.call(r,"index")&&(o.index=r.index,o.input=r.input),o}return Ap=n,Ap}var Ip,L9;function N9(){if(L9)return Ip;L9=1;var e=Cn(),t=e.Uint8Array;return Ip=t,Ip}var Tp,z9;function Rp(){if(z9)return Tp;z9=1;var e=N9();function t(n){var r=new n.constructor(n.byteLength);return new e(r).set(new e(n)),r}return Tp=t,Tp}var kp,D9;function Rte(){if(D9)return kp;D9=1;var e=Rp();function t(n,r){var i=r?e(n.buffer):n.buffer;return new n.constructor(i,n.byteOffset,n.byteLength)}return kp=t,kp}var Lp,q9;function kte(){if(q9)return Lp;q9=1;var e=/\w*$/;function t(n){var r=new n.constructor(n.source,e.exec(n));return r.lastIndex=n.lastIndex,r}return Lp=t,Lp}var Np,H9;function Lte(){if(H9)return Np;H9=1;var e=qi(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;function r(i){return n?Object(n.call(i)):{}}return Np=r,Np}var zp,j9;function F9(){if(j9)return zp;j9=1;var e=Rp();function t(n,r){var i=r?e(n.buffer):n.buffer;return new n.constructor(i,n.byteOffset,n.length)}return zp=t,zp}var Dp,B9;function Nte(){if(B9)return Dp;B9=1;var e=Rp(),t=Rte(),n=kte(),r=Lte(),i=F9(),o="[object Boolean]",s="[object Date]",a="[object Map]",l="[object Number]",c="[object RegExp]",u="[object Set]",h="[object String]",f="[object Symbol]",d="[object ArrayBuffer]",p="[object DataView]",g="[object Float32Array]",m="[object Float64Array]",v="[object Int8Array]",b="[object Int16Array]",w="[object Int32Array]",x="[object Uint8Array]",_="[object Uint8ClampedArray]",C="[object Uint16Array]",P="[object Uint32Array]";function S($,O,M){var A=$.constructor;switch(O){case d:return e($);case o:case s:return new A(+$);case p:return t($,M);case g:case m:case v:case b:case w:case x:case _:case C:case P:return i($,M);case a:return new A;case l:case h:return new A($);case c:return n($);case u:return new A;case f:return r($)}}return Dp=S,Dp}var qp,W9;function V9(){if(W9)return qp;W9=1;var e=fn(),t=Object.create,n=(function(){function r(){}return function(i){if(!e(i))return{};if(t)return t(i);r.prototype=i;var o=new r;return r.prototype=void 0,o}})();return qp=n,qp}var Hp,G9;function Y9(){if(G9)return Hp;G9=1;var e=V9(),t=Hl(),n=ql();function r(i){return typeof i.constructor=="function"&&!n(i)?e(t(i)):{}}return Hp=r,Hp}var jp,X9;function zte(){if(X9)return jp;X9=1;var e=ji(),t=jn(),n="[object Map]";function r(i){return t(i)&&e(i)==n}return jp=r,jp}var Fp,U9;function Dte(){if(U9)return Fp;U9=1;var e=zte(),t=Dl(),n=Kd(),r=n&&n.isMap,i=r?t(r):e;return Fp=i,Fp}var Bp,K9;function qte(){if(K9)return Bp;K9=1;var e=ji(),t=jn(),n="[object Set]";function r(i){return t(i)&&e(i)==n}return Bp=r,Bp}var Wp,Z9;function Hte(){if(Z9)return Wp;Z9=1;var e=qte(),t=Dl(),n=Kd(),r=n&&n.isSet,i=r?t(r):e;return Wp=i,Wp}var Vp,Q9;function J9(){if(Q9)return Vp;Q9=1;var e=kl(),t=kd(),n=Nl(),r=xte(),i=Ste(),o=c9(),s=h9(),a=Ote(),l=$te(),c=O9(),u=Ete(),h=ji(),f=Tte(),d=Nte(),p=Y9(),g=Rt(),m=Hi(),v=Dte(),b=fn(),w=Hte(),x=wr(),_=Jr(),C=1,P=2,S=4,$="[object Arguments]",O="[object Array]",M="[object Boolean]",A="[object Date]",E="[object Error]",I="[object Function]",T="[object GeneratorFunction]",N="[object Map]",H="[object Number]",D="[object Object]",W="[object RegExp]",F="[object Set]",X="[object String]",G="[object Symbol]",L="[object WeakMap]",R="[object ArrayBuffer]",z="[object DataView]",q="[object Float32Array]",j="[object Float64Array]",V="[object Int8Array]",U="[object Int16Array]",K="[object Int32Array]",J="[object Uint8Array]",Z="[object Uint8ClampedArray]",ie="[object Uint16Array]",Q="[object Uint32Array]",te={};te[$]=te[O]=te[R]=te[z]=te[M]=te[A]=te[q]=te[j]=te[V]=te[U]=te[K]=te[N]=te[H]=te[D]=te[W]=te[F]=te[X]=te[G]=te[J]=te[Z]=te[ie]=te[Q]=!0,te[E]=te[I]=te[L]=!1;function ce(re,ee,oe,se,ue,pe){var fe,ge=ee&C,he=ee&P,xe=ee&S;if(oe&&(fe=ue?oe(re,se,ue,pe):oe(re)),fe!==void 0)return fe;if(!b(re))return re;var $e=g(re);if($e){if(fe=f(re),!ge)return s(re,fe)}else{var Me=h(re),Ce=Me==I||Me==T;if(m(re))return o(re,ge);if(Me==D||Me==$||Ce&&!ue){if(fe=he||Ce?{}:p(re),!ge)return he?l(re,i(fe,re)):a(re,r(fe,re))}else{if(!te[Me])return ue?re:{};fe=d(re,Me,ge)}}pe||(pe=new e);var Te=pe.get(re);if(Te)return Te;pe.set(re,fe),w(re)?re.forEach(function(ye){fe.add(ce(ye,ee,oe,ye,re,pe))}):v(re)&&re.forEach(function(ye,we){fe.set(we,ce(ye,ee,oe,we,re,pe))});var Ne=xe?he?u:c:he?_:x,ze=$e?void 0:Ne(re);return t(ze||re,function(ye,we){ze&&(we=ye,ye=re[we]),n(fe,we,ce(ye,ee,oe,we,re,pe))}),fe}return Vp=ce,Vp}var Gp,e8;function jte(){if(e8)return Gp;e8=1;var e=J9(),t=4;function n(r){return e(r,t)}return Gp=n,Gp}var Yp,t8;function Xp(){if(t8)return Yp;t8=1;function e(t){return function(){return t}}return Yp=e,Yp}var Up,n8;function Fte(){if(n8)return Up;n8=1;function e(t){return function(n,r,i){for(var o=-1,s=Object(n),a=i(n),l=a.length;l--;){var c=a[t?l:++o];if(r(s[c],c,s)===!1)break}return n}}return Up=e,Up}var Kp,r8;function Zp(){if(r8)return Kp;r8=1;var e=Fte(),t=e();return Kp=t,Kp}var Qp,i8;function Jp(){if(i8)return Qp;i8=1;var e=Zp(),t=wr();function n(r,i){return r&&e(r,i,t)}return Qp=n,Qp}var e0,o8;function Bte(){if(o8)return e0;o8=1;var e=rr();function t(n,r){return function(i,o){if(i==null)return i;if(!e(i))return n(i,o);for(var s=i.length,a=r?s:-1,l=Object(i);(r?a--:++a<s)&&o(l[a],a,l)!==!1;);return i}}return e0=t,e0}var t0,s8;function jl(){if(s8)return t0;s8=1;var e=Jp(),t=Bte(),n=t(e);return t0=n,t0}var n0,a8;function ei(){if(a8)return n0;a8=1;function e(t){return t}return n0=e,n0}var r0,l8;function c8(){if(l8)return r0;l8=1;var e=ei();function t(n){return typeof n=="function"?n:e}return r0=t,r0}var i0,u8;function h8(){if(u8)return i0;u8=1;var e=kd(),t=jl(),n=c8(),r=Rt();function i(o,s){var a=r(o)?e:t;return a(o,n(s))}return i0=i,i0}var o0,f8;function d8(){return f8||(f8=1,o0=h8()),o0}var s0,p8;function Wte(){if(p8)return s0;p8=1;var e=jl();function t(n,r){var i=[];return e(n,function(o,s,a){r(o,s,a)&&i.push(o)}),i}return s0=t,s0}var a0,g8;function Vte(){if(g8)return a0;g8=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return a0=t,a0}var l0,m8;function Gte(){if(m8)return l0;m8=1;function e(t){return this.__data__.has(t)}return l0=e,l0}var c0,y8;function v8(){if(y8)return c0;y8=1;var e=Ad(),t=Vte(),n=Gte();function r(i){var o=-1,s=i==null?0:i.length;for(this.__data__=new e;++o<s;)this.add(i[o])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,c0=r,c0}var u0,b8;function Yte(){if(b8)return u0;b8=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return u0=e,u0}var h0,w8;function _8(){if(w8)return h0;w8=1;function e(t,n){return t.has(n)}return h0=e,h0}var f0,x8;function C8(){if(x8)return f0;x8=1;var e=v8(),t=Yte(),n=_8(),r=1,i=2;function o(s,a,l,c,u,h){var f=l&r,d=s.length,p=a.length;if(d!=p&&!(f&&p>d))return!1;var g=h.get(s),m=h.get(a);if(g&&m)return g==a&&m==s;var v=-1,b=!0,w=l&i?new e:void 0;for(h.set(s,a),h.set(a,s);++v<d;){var x=s[v],_=a[v];if(c)var C=f?c(_,x,v,a,s,h):c(x,_,v,s,a,h);if(C!==void 0){if(C)continue;b=!1;break}if(w){if(!t(a,function(P,S){if(!n(w,S)&&(x===P||u(x,P,l,c,h)))return w.push(S)})){b=!1;break}}else if(!(x===_||u(x,_,l,c,h))){b=!1;break}}return h.delete(s),h.delete(a),b}return f0=o,f0}var d0,P8;function Xte(){if(P8)return d0;P8=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,o){r[++n]=[o,i]}),r}return d0=e,d0}var p0,S8;function g0(){if(S8)return p0;S8=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return p0=e,p0}var m0,O8;function Ute(){if(O8)return m0;O8=1;var e=qi(),t=N9(),n=Di(),r=C8(),i=Xte(),o=g0(),s=1,a=2,l="[object Boolean]",c="[object Date]",u="[object Error]",h="[object Map]",f="[object Number]",d="[object RegExp]",p="[object Set]",g="[object String]",m="[object Symbol]",v="[object ArrayBuffer]",b="[object DataView]",w=e?e.prototype:void 0,x=w?w.valueOf:void 0;function _(C,P,S,$,O,M,A){switch(S){case b:if(C.byteLength!=P.byteLength||C.byteOffset!=P.byteOffset)return!1;C=C.buffer,P=P.buffer;case v:return!(C.byteLength!=P.byteLength||!M(new t(C),new t(P)));case l:case c:case f:return n(+C,+P);case u:return C.name==P.name&&C.message==P.message;case d:case g:return C==P+"";case h:var E=i;case p:var I=$&s;if(E||(E=o),C.size!=P.size&&!I)return!1;var T=A.get(C);if(T)return T==P;$|=a,A.set(C,P);var N=r(E(C),E(P),$,O,M,A);return A.delete(C),N;case m:if(x)return x.call(C)==x.call(P)}return!1}return m0=_,m0}var y0,$8;function Kte(){if($8)return y0;$8=1;var e=O9(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(o,s,a,l,c,u){var h=a&t,f=e(o),d=f.length,p=e(s),g=p.length;if(d!=g&&!h)return!1;for(var m=d;m--;){var v=f[m];if(!(h?v in s:r.call(s,v)))return!1}var b=u.get(o),w=u.get(s);if(b&&w)return b==s&&w==o;var x=!0;u.set(o,s),u.set(s,o);for(var _=h;++m<d;){v=f[m];var C=o[v],P=s[v];if(l)var S=h?l(P,C,v,s,o,u):l(C,P,v,o,s,u);if(!(S===void 0?C===P||c(C,P,a,l,u):S)){x=!1;break}_||(_=v=="constructor")}if(x&&!_){var $=o.constructor,O=s.constructor;$!=O&&"constructor"in o&&"constructor"in s&&!(typeof $=="function"&&$ instanceof $&&typeof O=="function"&&O instanceof O)&&(x=!1)}return u.delete(o),u.delete(s),x}return y0=i,y0}var v0,E8;function Zte(){if(E8)return v0;E8=1;var e=kl(),t=C8(),n=Ute(),r=Kte(),i=ji(),o=Rt(),s=Hi(),a=is(),l=1,c="[object Arguments]",u="[object Array]",h="[object Object]",f=Object.prototype,d=f.hasOwnProperty;function p(g,m,v,b,w,x){var _=o(g),C=o(m),P=_?u:i(g),S=C?u:i(m);P=P==c?h:P,S=S==c?h:S;var $=P==h,O=S==h,M=P==S;if(M&&s(g)){if(!s(m))return!1;_=!0,$=!1}if(M&&!$)return x||(x=new e),_||a(g)?t(g,m,v,b,w,x):n(g,m,P,v,b,w,x);if(!(v&l)){var A=$&&d.call(g,"__wrapped__"),E=O&&d.call(m,"__wrapped__");if(A||E){var I=A?g.value():g,T=E?m.value():m;return x||(x=new e),w(I,T,v,b,x)}}return M?(x||(x=new e),r(g,m,v,b,w,x)):!1}return v0=p,v0}var b0,M8;function A8(){if(M8)return b0;M8=1;var e=Zte(),t=jn();function n(r,i,o,s,a){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,o,s,n,a)}return b0=n,b0}var w0,I8;function Qte(){if(I8)return w0;I8=1;var e=kl(),t=A8(),n=1,r=2;function i(o,s,a,l){var c=a.length,u=c,h=!l;if(o==null)return!u;for(o=Object(o);c--;){var f=a[c];if(h&&f[2]?f[1]!==o[f[0]]:!(f[0]in o))return!1}for(;++c<u;){f=a[c];var d=f[0],p=o[d],g=f[1];if(h&&f[2]){if(p===void 0&&!(d in o))return!1}else{var m=new e;if(l)var v=l(p,g,d,o,s,m);if(!(v===void 0?t(g,p,n|r,l,m):v))return!1}}return!0}return w0=i,w0}var _0,T8;function R8(){if(T8)return _0;T8=1;var e=fn();function t(n){return n===n&&!e(n)}return _0=t,_0}var x0,k8;function Jte(){if(k8)return x0;k8=1;var e=R8(),t=wr();function n(r){for(var i=t(r),o=i.length;o--;){var s=i[o],a=r[s];i[o]=[s,a,e(a)]}return i}return x0=n,x0}var C0,L8;function N8(){if(L8)return C0;L8=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return C0=e,C0}var P0,z8;function ene(){if(z8)return P0;z8=1;var e=Qte(),t=Jte(),n=N8();function r(i){var o=t(i);return o.length==1&&o[0][2]?n(o[0][0],o[0][1]):function(s){return s===i||e(s,i,o)}}return P0=r,P0}var S0,D8;function Fi(){if(D8)return S0;D8=1;var e=Zr(),t=jn(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return S0=r,S0}var O0,q8;function $0(){if(q8)return O0;q8=1;var e=Rt(),t=Fi(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(o,s){if(e(o))return!1;var a=typeof o;return a=="number"||a=="symbol"||a=="boolean"||o==null||t(o)?!0:r.test(o)||!n.test(o)||s!=null&&o in Object(s)}return O0=i,O0}var E0,H8;function tne(){if(H8)return E0;H8=1;var e=Ad(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var o=function(){var s=arguments,a=i?i.apply(this,s):s[0],l=o.cache;if(l.has(a))return l.get(a);var c=r.apply(this,s);return o.cache=l.set(a,c)||l,c};return o.cache=new(n.Cache||e),o}return n.Cache=e,E0=n,E0}var M0,j8;function nne(){if(j8)return M0;j8=1;var e=tne(),t=500;function n(r){var i=e(r,function(s){return o.size===t&&o.clear(),s}),o=i.cache;return i}return M0=n,M0}var A0,F8;function rne(){if(F8)return A0;F8=1;var e=nne(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var o=[];return i.charCodeAt(0)===46&&o.push(""),i.replace(t,function(s,a,l,c){o.push(l?c.replace(n,"$1"):a||s)}),o});return A0=r,A0}var I0,B8;function Fl(){if(B8)return I0;B8=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,o=Array(i);++r<i;)o[r]=n(t[r],r,t);return o}return I0=e,I0}var T0,W8;function ine(){if(W8)return T0;W8=1;var e=qi(),t=Fl(),n=Rt(),r=Fi(),i=e?e.prototype:void 0,o=i?i.toString:void 0;function s(a){if(typeof a=="string")return a;if(n(a))return t(a,s)+"";if(r(a))return o?o.call(a):"";var l=a+"";return l=="0"&&1/a==-1/0?"-0":l}return T0=s,T0}var R0,V8;function G8(){if(V8)return R0;V8=1;var e=ine();function t(n){return n==null?"":e(n)}return R0=t,R0}var k0,Y8;function Bl(){if(Y8)return k0;Y8=1;var e=Rt(),t=$0(),n=rne(),r=G8();function i(o,s){return e(o)?o:t(o,s)?[o]:n(r(o))}return k0=i,k0}var L0,X8;function ss(){if(X8)return L0;X8=1;var e=Fi();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return L0=t,L0}var N0,U8;function Wl(){if(U8)return N0;U8=1;var e=Bl(),t=ss();function n(r,i){i=e(i,r);for(var o=0,s=i.length;r!=null&&o<s;)r=r[t(i[o++])];return o&&o==s?r:void 0}return N0=n,N0}var z0,K8;function one(){if(K8)return z0;K8=1;var e=Wl();function t(n,r,i){var o=n==null?void 0:e(n,r);return o===void 0?i:o}return z0=t,z0}var D0,Z8;function sne(){if(Z8)return D0;Z8=1;function e(t,n){return t!=null&&n in Object(t)}return D0=e,D0}var q0,Q8;function J8(){if(Q8)return q0;Q8=1;var e=Bl(),t=ts(),n=Rt(),r=zl(),i=Yd(),o=ss();function s(a,l,c){l=e(l,a);for(var u=-1,h=l.length,f=!1;++u<h;){var d=o(l[u]);if(!(f=a!=null&&c(a,d)))break;a=a[d]}return f||++u!=h?f:(h=a==null?0:a.length,!!h&&i(h)&&r(d,h)&&(n(a)||t(a)))}return q0=s,q0}var H0,eC;function tC(){if(eC)return H0;eC=1;var e=sne(),t=J8();function n(r,i){return r!=null&&t(r,i,e)}return H0=n,H0}var j0,nC;function ane(){if(nC)return j0;nC=1;var e=A8(),t=one(),n=tC(),r=$0(),i=R8(),o=N8(),s=ss(),a=1,l=2;function c(u,h){return r(u)&&i(h)?o(s(u),h):function(f){var d=t(f,u);return d===void 0&&d===h?n(f,u):e(h,d,a|l)}}return j0=c,j0}var F0,rC;function iC(){if(rC)return F0;rC=1;function e(t){return function(n){return n==null?void 0:n[t]}}return F0=e,F0}var B0,oC;function lne(){if(oC)return B0;oC=1;var e=Wl();function t(n){return function(r){return e(r,n)}}return B0=t,B0}var W0,sC;function cne(){if(sC)return W0;sC=1;var e=iC(),t=lne(),n=$0(),r=ss();function i(o){return n(o)?e(r(o)):t(o)}return W0=i,W0}var V0,aC;function ir(){if(aC)return V0;aC=1;var e=ene(),t=ane(),n=ei(),r=Rt(),i=cne();function o(s){return typeof s=="function"?s:s==null?n:typeof s=="object"?r(s)?t(s[0],s[1]):e(s):i(s)}return V0=o,V0}var G0,lC;function cC(){if(lC)return G0;lC=1;var e=d9(),t=Wte(),n=ir(),r=Rt();function i(o,s){var a=r(o)?e:t;return a(o,n(s,3))}return G0=i,G0}var Y0,uC;function une(){if(uC)return Y0;uC=1;var e=Object.prototype,t=e.hasOwnProperty;function n(r,i){return r!=null&&t.call(r,i)}return Y0=n,Y0}var X0,hC;function fC(){if(hC)return X0;hC=1;var e=une(),t=J8();function n(r,i){return r!=null&&t(r,i,e)}return X0=n,X0}var U0,dC;function hne(){if(dC)return U0;dC=1;var e=rp(),t=ji(),n=ts(),r=Rt(),i=rr(),o=Hi(),s=ql(),a=is(),l="[object Map]",c="[object Set]",u=Object.prototype,h=u.hasOwnProperty;function f(d){if(d==null)return!0;if(i(d)&&(r(d)||typeof d=="string"||typeof d.splice=="function"||o(d)||a(d)||n(d)))return!d.length;var p=t(d);if(p==l||p==c)return!d.size;if(s(d))return!e(d).length;for(var g in d)if(h.call(d,g))return!1;return!0}return U0=f,U0}var K0,pC;function gC(){if(pC)return K0;pC=1;function e(t){return t===void 0}return K0=e,K0}var Z0,mC;function yC(){if(mC)return Z0;mC=1;var e=jl(),t=rr();function n(r,i){var o=-1,s=t(r)?Array(r.length):[];return e(r,function(a,l,c){s[++o]=i(a,l,c)}),s}return Z0=n,Z0}var Q0,vC;function bC(){if(vC)return Q0;vC=1;var e=Fl(),t=ir(),n=yC(),r=Rt();function i(o,s){var a=r(o)?e:n;return a(o,t(s,3))}return Q0=i,Q0}var J0,wC;function fne(){if(wC)return J0;wC=1;function e(t,n,r,i){var o=-1,s=t==null?0:t.length;for(i&&s&&(r=t[++o]);++o<s;)r=n(r,t[o],o,t);return r}return J0=e,J0}var eg,_C;function dne(){if(_C)return eg;_C=1;function e(t,n,r,i,o){return o(t,function(s,a,l){r=i?(i=!1,s):n(r,s,a,l)}),r}return eg=e,eg}var tg,xC;function CC(){if(xC)return tg;xC=1;var e=fne(),t=jl(),n=ir(),r=dne(),i=Rt();function o(s,a,l){var c=i(s)?e:r,u=arguments.length<3;return c(s,n(a,4),l,u,t)}return tg=o,tg}var ng,PC;function pne(){if(PC)return ng;PC=1;var e=Zr(),t=Rt(),n=jn(),r="[object String]";function i(o){return typeof o=="string"||!t(o)&&n(o)&&e(o)==r}return ng=i,ng}var rg,SC;function gne(){if(SC)return rg;SC=1;var e=iC(),t=e("length");return rg=t,rg}var ig,OC;function mne(){if(OC)return ig;OC=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,o="\\ufe0e\\ufe0f",s="\\u200d",a=RegExp("["+s+e+i+o+"]");function l(c){return a.test(c)}return ig=l,ig}var og,$C;function yne(){if($C)return og;$C=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,o="\\ufe0e\\ufe0f",s="["+e+"]",a="["+i+"]",l="\\ud83c[\\udffb-\\udfff]",c="(?:"+a+"|"+l+")",u="[^"+e+"]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",d="\\u200d",p=c+"?",g="["+o+"]?",m="(?:"+d+"(?:"+[u,h,f].join("|")+")"+g+p+")*",v=g+p+m,b="(?:"+[u+a+"?",a,h,f,s].join("|")+")",w=RegExp(l+"(?="+l+")|"+b+v,"g");function x(_){for(var C=w.lastIndex=0;w.test(_);)++C;return C}return og=x,og}var sg,EC;function vne(){if(EC)return sg;EC=1;var e=gne(),t=mne(),n=yne();function r(i){return t(i)?n(i):e(i)}return sg=r,sg}var ag,MC;function bne(){if(MC)return ag;MC=1;var e=rp(),t=ji(),n=rr(),r=pne(),i=vne(),o="[object Map]",s="[object Set]";function a(l){if(l==null)return 0;if(n(l))return r(l)?i(l):l.length;var c=t(l);return c==o||c==s?l.size:e(l).length}return ag=a,ag}var lg,AC;function wne(){if(AC)return lg;AC=1;var e=kd(),t=V9(),n=Jp(),r=ir(),i=Hl(),o=Rt(),s=Hi(),a=Jo(),l=fn(),c=is();function u(h,f,d){var p=o(h),g=p||s(h)||c(h);if(f=r(f,4),d==null){var m=h&&h.constructor;g?d=p?new m:[]:l(h)?d=a(m)?t(i(h)):{}:d={}}return(g?e:n)(h,function(v,b,w){return f(d,v,b,w)}),d}return lg=u,lg}var cg,IC;function _ne(){if(IC)return cg;IC=1;var e=qi(),t=ts(),n=Rt(),r=e?e.isConcatSpreadable:void 0;function i(o){return n(o)||t(o)||!!(r&&o&&o[r])}return cg=i,cg}var ug,TC;function hg(){if(TC)return ug;TC=1;var e=vp(),t=_ne();function n(r,i,o,s,a){var l=-1,c=r.length;for(o||(o=t),a||(a=[]);++l<c;){var u=r[l];i>0&&o(u)?i>1?n(u,i-1,o,s,a):e(a,u):s||(a[a.length]=u)}return a}return ug=n,ug}var fg,RC;function xne(){if(RC)return fg;RC=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return fg=e,fg}var dg,kC;function LC(){if(kC)return dg;kC=1;var e=xne(),t=Math.max;function n(r,i,o){return i=t(i===void 0?r.length-1:i,0),function(){for(var s=arguments,a=-1,l=t(s.length-i,0),c=Array(l);++a<l;)c[a]=s[i+a];a=-1;for(var u=Array(i+1);++a<i;)u[a]=s[a];return u[i]=o(c),e(r,this,u)}}return dg=n,dg}var pg,NC;function Cne(){if(NC)return pg;NC=1;var e=Xp(),t=I7(),n=ei(),r=t?function(i,o){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:n;return pg=r,pg}var gg,zC;function Pne(){if(zC)return gg;zC=1;var e=800,t=16,n=Date.now;function r(i){var o=0,s=0;return function(){var a=n(),l=t-(a-s);if(s=a,l>0){if(++o>=e)return arguments[0]}else o=0;return i.apply(void 0,arguments)}}return gg=r,gg}var mg,DC;function qC(){if(DC)return mg;DC=1;var e=Cne(),t=Pne(),n=t(e);return mg=n,mg}var yg,HC;function Vl(){if(HC)return yg;HC=1;var e=ei(),t=LC(),n=qC();function r(i,o){return n(t(i,o,e),i+"")}return yg=r,yg}var vg,jC;function FC(){if(jC)return vg;jC=1;function e(t,n,r,i){for(var o=t.length,s=r+(i?1:-1);i?s--:++s<o;)if(n(t[s],s,t))return s;return-1}return vg=e,vg}var bg,BC;function Sne(){if(BC)return bg;BC=1;function e(t){return t!==t}return bg=e,bg}var wg,WC;function One(){if(WC)return wg;WC=1;function e(t,n,r){for(var i=r-1,o=t.length;++i<o;)if(t[i]===n)return i;return-1}return wg=e,wg}var _g,VC;function $ne(){if(VC)return _g;VC=1;var e=FC(),t=Sne(),n=One();function r(i,o,s){return o===o?n(i,o,s):e(i,t,s)}return _g=r,_g}var xg,GC;function Ene(){if(GC)return xg;GC=1;var e=$ne();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return xg=t,xg}var Cg,YC;function Mne(){if(YC)return Cg;YC=1;function e(t,n,r){for(var i=-1,o=t==null?0:t.length;++i<o;)if(r(n,t[i]))return!0;return!1}return Cg=e,Cg}var Pg,XC;function Ane(){if(XC)return Pg;XC=1;function e(){}return Pg=e,Pg}var Sg,UC;function Ine(){if(UC)return Sg;UC=1;var e=I9(),t=Ane(),n=g0(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(o){return new e(o)}:t;return Sg=i,Sg}var Og,KC;function Tne(){if(KC)return Og;KC=1;var e=v8(),t=Ene(),n=Mne(),r=_8(),i=Ine(),o=g0(),s=200;function a(l,c,u){var h=-1,f=t,d=l.length,p=!0,g=[],m=g;if(u)p=!1,f=n;else if(d>=s){var v=c?null:i(l);if(v)return o(v);p=!1,f=r,m=new e}else m=c?[]:g;e:for(;++h<d;){var b=l[h],w=c?c(b):b;if(b=u||b!==0?b:0,p&&w===w){for(var x=m.length;x--;)if(m[x]===w)continue e;c&&m.push(w),g.push(b)}else f(m,w,u)||(m!==g&&m.push(w),g.push(b))}return g}return Og=a,Og}var $g,ZC;function QC(){if(ZC)return $g;ZC=1;var e=rr(),t=jn();function n(r){return t(r)&&e(r)}return $g=n,$g}var Eg,JC;function Rne(){if(JC)return Eg;JC=1;var e=hg(),t=Vl(),n=Tne(),r=QC(),i=t(function(o){return n(e(o,1,r,!0))});return Eg=i,Eg}var Mg,eP;function kne(){if(eP)return Mg;eP=1;var e=Fl();function t(n,r){return e(r,function(i){return n[i]})}return Mg=t,Mg}var Ag,tP;function nP(){if(tP)return Ag;tP=1;var e=kne(),t=wr();function n(r){return r==null?[]:e(r,t(r))}return Ag=n,Ag}var Ig,rP;function dn(){if(rP)return Ig;rP=1;var e;if(typeof Hf=="function")try{e={clone:jte(),constant:Xp(),each:d8(),filter:cC(),has:fC(),isArray:Rt(),isEmpty:hne(),isFunction:Jo(),isUndefined:gC(),keys:wr(),map:bC(),reduce:CC(),size:bne(),transform:wne(),union:Rne(),values:nP()}}catch(t){}return e||(e=window._),Ig=e,Ig}var Tg,iP;function Rg(){if(iP)return Tg;iP=1;var e=dn();Tg=i;var t="\0",n="\0",r="";function i(u){this._isDirected=e.has(u,"directed")?u.directed:!0,this._isMultigraph=e.has(u,"multigraph")?u.multigraph:!1,this._isCompound=e.has(u,"compound")?u.compound:!1,this._label=void 0,this._defaultNodeLabelFn=e.constant(void 0),this._defaultEdgeLabelFn=e.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[n]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(u){return this._label=u,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(u){return e.isFunction(u)||(u=e.constant(u)),this._defaultNodeLabelFn=u,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return e.keys(this._nodes)},i.prototype.sources=function(){var u=this;return e.filter(this.nodes(),function(h){return e.isEmpty(u._in[h])})},i.prototype.sinks=function(){var u=this;return e.filter(this.nodes(),function(h){return e.isEmpty(u._out[h])})},i.prototype.setNodes=function(u,h){var f=arguments,d=this;return e.each(u,function(p){f.length>1?d.setNode(p,h):d.setNode(p)}),this},i.prototype.setNode=function(u,h){return e.has(this._nodes,u)?(arguments.length>1&&(this._nodes[u]=h),this):(this._nodes[u]=arguments.length>1?h:this._defaultNodeLabelFn(u),this._isCompound&&(this._parent[u]=n,this._children[u]={},this._children[n][u]=!0),this._in[u]={},this._preds[u]={},this._out[u]={},this._sucs[u]={},++this._nodeCount,this)},i.prototype.node=function(u){return this._nodes[u]},i.prototype.hasNode=function(u){return e.has(this._nodes,u)},i.prototype.removeNode=function(u){var h=this;if(e.has(this._nodes,u)){var f=function(d){h.removeEdge(h._edgeObjs[d])};delete this._nodes[u],this._isCompound&&(this._removeFromParentsChildList(u),delete this._parent[u],e.each(this.children(u),function(d){h.setParent(d)}),delete this._children[u]),e.each(e.keys(this._in[u]),f),delete this._in[u],delete this._preds[u],e.each(e.keys(this._out[u]),f),delete this._out[u],delete this._sucs[u],--this._nodeCount}return this},i.prototype.setParent=function(u,h){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(e.isUndefined(h))h=n;else{h+="";for(var f=h;!e.isUndefined(f);f=this.parent(f))if(f===u)throw new Error("Setting "+h+" as parent of "+u+" would create a cycle");this.setNode(h)}return this.setNode(u),this._removeFromParentsChildList(u),this._parent[u]=h,this._children[h][u]=!0,this},i.prototype._removeFromParentsChildList=function(u){delete this._children[this._parent[u]][u]},i.prototype.parent=function(u){if(this._isCompound){var h=this._parent[u];if(h!==n)return h}},i.prototype.children=function(u){if(e.isUndefined(u)&&(u=n),this._isCompound){var h=this._children[u];if(h)return e.keys(h)}else{if(u===n)return this.nodes();if(this.hasNode(u))return[]}},i.prototype.predecessors=function(u){var h=this._preds[u];if(h)return e.keys(h)},i.prototype.successors=function(u){var h=this._sucs[u];if(h)return e.keys(h)},i.prototype.neighbors=function(u){var h=this.predecessors(u);if(h)return e.union(h,this.successors(u))},i.prototype.isLeaf=function(u){var h;return this.isDirected()?h=this.successors(u):h=this.neighbors(u),h.length===0},i.prototype.filterNodes=function(u){var h=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});h.setGraph(this.graph());var f=this;e.each(this._nodes,function(g,m){u(m)&&h.setNode(m,g)}),e.each(this._edgeObjs,function(g){h.hasNode(g.v)&&h.hasNode(g.w)&&h.setEdge(g,f.edge(g))});var d={};function p(g){var m=f.parent(g);return m===void 0||h.hasNode(m)?(d[g]=m,m):m in d?d[m]:p(m)}return this._isCompound&&e.each(h.nodes(),function(g){h.setParent(g,p(g))}),h},i.prototype.setDefaultEdgeLabel=function(u){return e.isFunction(u)||(u=e.constant(u)),this._defaultEdgeLabelFn=u,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return e.values(this._edgeObjs)},i.prototype.setPath=function(u,h){var f=this,d=arguments;return e.reduce(u,function(p,g){return d.length>1?f.setEdge(p,g,h):f.setEdge(p,g),g}),this},i.prototype.setEdge=function(){var u,h,f,d,p=!1,g=arguments[0];typeof g=="object"&&g!==null&&"v"in g?(u=g.v,h=g.w,f=g.name,arguments.length===2&&(d=arguments[1],p=!0)):(u=g,h=arguments[1],f=arguments[3],arguments.length>2&&(d=arguments[2],p=!0)),u=""+u,h=""+h,e.isUndefined(f)||(f=""+f);var m=a(this._isDirected,u,h,f);if(e.has(this._edgeLabels,m))return p&&(this._edgeLabels[m]=d),this;if(!e.isUndefined(f)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(u),this.setNode(h),this._edgeLabels[m]=p?d:this._defaultEdgeLabelFn(u,h,f);var v=l(this._isDirected,u,h,f);return u=v.v,h=v.w,Object.freeze(v),this._edgeObjs[m]=v,o(this._preds[h],u),o(this._sucs[u],h),this._in[h][m]=v,this._out[u][m]=v,this._edgeCount++,this},i.prototype.edge=function(u,h,f){var d=arguments.length===1?c(this._isDirected,arguments[0]):a(this._isDirected,u,h,f);return this._edgeLabels[d]},i.prototype.hasEdge=function(u,h,f){var d=arguments.length===1?c(this._isDirected,arguments[0]):a(this._isDirected,u,h,f);return e.has(this._edgeLabels,d)},i.prototype.removeEdge=function(u,h,f){var d=arguments.length===1?c(this._isDirected,arguments[0]):a(this._isDirected,u,h,f),p=this._edgeObjs[d];return p&&(u=p.v,h=p.w,delete this._edgeLabels[d],delete this._edgeObjs[d],s(this._preds[h],u),s(this._sucs[u],h),delete this._in[h][d],delete this._out[u][d],this._edgeCount--),this},i.prototype.inEdges=function(u,h){var f=this._in[u];if(f){var d=e.values(f);return h?e.filter(d,function(p){return p.v===h}):d}},i.prototype.outEdges=function(u,h){var f=this._out[u];if(f){var d=e.values(f);return h?e.filter(d,function(p){return p.w===h}):d}},i.prototype.nodeEdges=function(u,h){var f=this.inEdges(u,h);if(f)return f.concat(this.outEdges(u,h))};function o(u,h){u[h]?u[h]++:u[h]=1}function s(u,h){--u[h]||delete u[h]}function a(u,h,f,d){var p=""+h,g=""+f;if(!u&&p>g){var m=p;p=g,g=m}return p+r+g+r+(e.isUndefined(d)?t:d)}function l(u,h,f,d){var p=""+h,g=""+f;if(!u&&p>g){var m=p;p=g,g=m}var v={v:p,w:g};return d&&(v.name=d),v}function c(u,h){return a(u,h.v,h.w,h.name)}return Tg}var kg,oP;function Lne(){return oP||(oP=1,kg="2.1.8"),kg}var Lg,sP;function Nne(){return sP||(sP=1,Lg={Graph:Rg(),version:Lne()}),Lg}var Ng,aP;function zne(){if(aP)return Ng;aP=1;var e=dn(),t=Rg();Ng={write:n,read:o};function n(s){var a={options:{directed:s.isDirected(),multigraph:s.isMultigraph(),compound:s.isCompound()},nodes:r(s),edges:i(s)};return e.isUndefined(s.graph())||(a.value=e.clone(s.graph())),a}function r(s){return e.map(s.nodes(),function(a){var l=s.node(a),c=s.parent(a),u={v:a};return e.isUndefined(l)||(u.value=l),e.isUndefined(c)||(u.parent=c),u})}function i(s){return e.map(s.edges(),function(a){var l=s.edge(a),c={v:a.v,w:a.w};return e.isUndefined(a.name)||(c.name=a.name),e.isUndefined(l)||(c.value=l),c})}function o(s){var a=new t(s.options).setGraph(s.value);return e.each(s.nodes,function(l){a.setNode(l.v,l.value),l.parent&&a.setParent(l.v,l.parent)}),e.each(s.edges,function(l){a.setEdge({v:l.v,w:l.w,name:l.name},l.value)}),a}return Ng}var zg,lP;function Dne(){if(lP)return zg;lP=1;var e=dn();zg=t;function t(n){var r={},i=[],o;function s(a){e.has(r,a)||(r[a]=!0,o.push(a),e.each(n.successors(a),s),e.each(n.predecessors(a),s))}return e.each(n.nodes(),function(a){o=[],s(a),o.length&&i.push(o)}),i}return zg}var Dg,cP;function uP(){if(cP)return Dg;cP=1;var e=dn();Dg=t;function t(){this._arr=[],this._keyIndices={}}return t.prototype.size=function(){return this._arr.length},t.prototype.keys=function(){return this._arr.map(function(n){return n.key})},t.prototype.has=function(n){return e.has(this._keyIndices,n)},t.prototype.priority=function(n){var r=this._keyIndices[n];if(r!==void 0)return this._arr[r].priority},t.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},t.prototype.add=function(n,r){var i=this._keyIndices;if(n=String(n),!e.has(i,n)){var o=this._arr,s=o.length;return i[n]=s,o.push({key:n,priority:r}),this._decrease(s),!0}return!1},t.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var n=this._arr.pop();return delete this._keyIndices[n.key],this._heapify(0),n.key},t.prototype.decrease=function(n,r){var i=this._keyIndices[n];if(r>this._arr[i].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[i].priority+" New: "+r);this._arr[i].priority=r,this._decrease(i)},t.prototype._heapify=function(n){var r=this._arr,i=2*n,o=i+1,s=n;i<r.length&&(s=r[i].priority<r[s].priority?i:s,o<r.length&&(s=r[o].priority<r[s].priority?o:s),s!==n&&(this._swap(n,s),this._heapify(s)))},t.prototype._decrease=function(n){for(var r=this._arr,i=r[n].priority,o;n!==0&&(o=n>>1,!(r[o].priority<i));)this._swap(n,o),n=o},t.prototype._swap=function(n,r){var i=this._arr,o=this._keyIndices,s=i[n],a=i[r];i[n]=a,i[r]=s,o[a.key]=n,o[s.key]=r},Dg}var qg,hP;function fP(){if(hP)return qg;hP=1;var e=dn(),t=uP();qg=r;var n=e.constant(1);function r(o,s,a,l){return i(o,String(s),a||n,l||function(c){return o.outEdges(c)})}function i(o,s,a,l){var c={},u=new t,h,f,d=function(p){var g=p.v!==h?p.v:p.w,m=c[g],v=a(p),b=f.distance+v;if(v<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+p+" Weight: "+v);b<m.distance&&(m.distance=b,m.predecessor=h,u.decrease(g,b))};for(o.nodes().forEach(function(p){var g=p===s?0:Number.POSITIVE_INFINITY;c[p]={distance:g},u.add(p,g)});u.size()>0&&(h=u.removeMin(),f=c[h],f.distance!==Number.POSITIVE_INFINITY);)l(h).forEach(d);return c}return qg}var Hg,dP;function qne(){if(dP)return Hg;dP=1;var e=fP(),t=dn();Hg=n;function n(r,i,o){return t.transform(r.nodes(),function(s,a){s[a]=e(r,a,i,o)},{})}return Hg}var jg,pP;function gP(){if(pP)return jg;pP=1;var e=dn();jg=t;function t(n){var r=0,i=[],o={},s=[];function a(l){var c=o[l]={onStack:!0,lowlink:r,index:r++};if(i.push(l),n.successors(l).forEach(function(f){e.has(o,f)?o[f].onStack&&(c.lowlink=Math.min(c.lowlink,o[f].index)):(a(f),c.lowlink=Math.min(c.lowlink,o[f].lowlink))}),c.lowlink===c.index){var u=[],h;do h=i.pop(),o[h].onStack=!1,u.push(h);while(l!==h);s.push(u)}}return n.nodes().forEach(function(l){e.has(o,l)||a(l)}),s}return jg}var Fg,mP;function Hne(){if(mP)return Fg;mP=1;var e=dn(),t=gP();Fg=n;function n(r){return e.filter(t(r),function(i){return i.length>1||i.length===1&&r.hasEdge(i[0],i[0])})}return Fg}var Bg,yP;function jne(){if(yP)return Bg;yP=1;var e=dn();Bg=n;var t=e.constant(1);function n(i,o,s){return r(i,o||t,s||function(a){return i.outEdges(a)})}function r(i,o,s){var a={},l=i.nodes();return l.forEach(function(c){a[c]={},a[c][c]={distance:0},l.forEach(function(u){c!==u&&(a[c][u]={distance:Number.POSITIVE_INFINITY})}),s(c).forEach(function(u){var h=u.v===c?u.w:u.v,f=o(u);a[c][h]={distance:f,predecessor:c}})}),l.forEach(function(c){var u=a[c];l.forEach(function(h){var f=a[h];l.forEach(function(d){var p=f[c],g=u[d],m=f[d],v=p.distance+g.distance;v<m.distance&&(m.distance=v,m.predecessor=g.predecessor)})})}),a}return Bg}var Wg,vP;function bP(){if(vP)return Wg;vP=1;var e=dn();Wg=t,t.CycleException=n;function t(r){var i={},o={},s=[];function a(l){if(e.has(o,l))throw new n;e.has(i,l)||(o[l]=!0,i[l]=!0,e.each(r.predecessors(l),a),delete o[l],s.push(l))}if(e.each(r.sinks(),a),e.size(i)!==r.nodeCount())throw new n;return s}function n(){}return n.prototype=new Error,Wg}var Vg,wP;function Fne(){if(wP)return Vg;wP=1;var e=bP();Vg=t;function t(n){try{e(n)}catch(r){if(r instanceof e.CycleException)return!1;throw r}return!0}return Vg}var Gg,_P;function xP(){if(_P)return Gg;_P=1;var e=dn();Gg=t;function t(r,i,o){e.isArray(i)||(i=[i]);var s=(r.isDirected()?r.successors:r.neighbors).bind(r),a=[],l={};return e.each(i,function(c){if(!r.hasNode(c))throw new Error("Graph does not have node: "+c);n(r,c,o==="post",l,s,a)}),a}function n(r,i,o,s,a,l){e.has(s,i)||(s[i]=!0,o||l.push(i),e.each(a(i),function(c){n(r,c,o,s,a,l)}),o&&l.push(i))}return Gg}var Yg,CP;function Bne(){if(CP)return Yg;CP=1;var e=xP();Yg=t;function t(n,r){return e(n,r,"post")}return Yg}var Xg,PP;function Wne(){if(PP)return Xg;PP=1;var e=xP();Xg=t;function t(n,r){return e(n,r,"pre")}return Xg}var Ug,SP;function Vne(){if(SP)return Ug;SP=1;var e=dn(),t=Rg(),n=uP();Ug=r;function r(i,o){var s=new t,a={},l=new n,c;function u(f){var d=f.v===c?f.w:f.v,p=l.priority(d);if(p!==void 0){var g=o(f);g<p&&(a[d]=c,l.decrease(d,g))}}if(i.nodeCount()===0)return s;e.each(i.nodes(),function(f){l.add(f,Number.POSITIVE_INFINITY),s.setNode(f)}),l.decrease(i.nodes()[0],0);for(var h=!1;l.size()>0;){if(c=l.removeMin(),e.has(a,c))s.setEdge(c,a[c]);else{if(h)throw new Error("Input graph is not connected: "+i);h=!0}i.nodeEdges(c).forEach(u)}return s}return Ug}var Kg,OP;function Gne(){return OP||(OP=1,Kg={components:Dne(),dijkstra:fP(),dijkstraAll:qne(),findCycles:Hne(),floydWarshall:jne(),isAcyclic:Fne(),postorder:Bne(),preorder:Wne(),prim:Vne(),tarjan:gP(),topsort:bP()}),Kg}var Zg,$P;function Yne(){if($P)return Zg;$P=1;var e=Nne();return Zg={Graph:e.Graph,json:zne(),alg:Gne(),version:e.version},Zg}var Qg,EP;function Pn(){if(EP)return Qg;EP=1;var e;if(typeof Hf=="function")try{e=Yne()}catch(t){}return e||(e=window.graphlib),Qg=e,Qg}var Jg,MP;function Xne(){if(MP)return Jg;MP=1;var e=J9(),t=1,n=4;function r(i){return e(i,t|n)}return Jg=r,Jg}var e1,AP;function Gl(){if(AP)return e1;AP=1;var e=Di(),t=rr(),n=zl(),r=fn();function i(o,s,a){if(!r(a))return!1;var l=typeof s;return(l=="number"?t(a)&&n(s,a.length):l=="string"&&s in a)?e(a[s],o):!1}return e1=i,e1}var t1,IP;function Une(){if(IP)return t1;IP=1;var e=Vl(),t=Di(),n=Gl(),r=Jr(),i=Object.prototype,o=i.hasOwnProperty,s=e(function(a,l){a=Object(a);var c=-1,u=l.length,h=u>2?l[2]:void 0;for(h&&n(l[0],l[1],h)&&(u=1);++c<u;)for(var f=l[c],d=r(f),p=-1,g=d.length;++p<g;){var m=d[p],v=a[m];(v===void 0||t(v,i[m])&&!o.call(a,m))&&(a[m]=f[m])}return a});return t1=s,t1}var n1,TP;function Kne(){if(TP)return n1;TP=1;var e=ir(),t=rr(),n=wr();function r(i){return function(o,s,a){var l=Object(o);if(!t(o)){var c=e(s,3);o=n(o),s=function(h){return c(l[h],h,l)}}var u=i(o,s,a);return u>-1?l[c?o[u]:u]:void 0}}return n1=r,n1}var r1,RP;function Zne(){if(RP)return r1;RP=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return r1=t,r1}var i1,kP;function Qne(){if(kP)return i1;kP=1;var e=Zne(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return i1=n,i1}var o1,LP;function Jne(){if(LP)return o1;LP=1;var e=Qne(),t=fn(),n=Fi(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function l(c){if(typeof c=="number")return c;if(n(c))return r;if(t(c)){var u=typeof c.valueOf=="function"?c.valueOf():c;c=t(u)?u+"":u}if(typeof c!="string")return c===0?c:+c;c=e(c);var h=o.test(c);return h||s.test(c)?a(c.slice(2),h?2:8):i.test(c)?r:+c}return o1=l,o1}var s1,NP;function zP(){if(NP)return s1;NP=1;var e=Jne(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var o=i<0?-1:1;return o*n}return i===i?i:0}return s1=r,s1}var a1,DP;function ere(){if(DP)return a1;DP=1;var e=zP();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return a1=t,a1}var l1,qP;function tre(){if(qP)return l1;qP=1;var e=FC(),t=ir(),n=ere(),r=Math.max;function i(o,s,a){var l=o==null?0:o.length;if(!l)return-1;var c=a==null?0:n(a);return c<0&&(c=r(l+c,0)),e(o,t(s,3),c)}return l1=i,l1}var c1,HP;function nre(){if(HP)return c1;HP=1;var e=Kne(),t=tre(),n=e(t);return c1=n,c1}var u1,jP;function FP(){if(jP)return u1;jP=1;var e=hg();function t(n){var r=n==null?0:n.length;return r?e(n,1):[]}return u1=t,u1}var h1,BP;function rre(){if(BP)return h1;BP=1;var e=Zp(),t=c8(),n=Jr();function r(i,o){return i==null?i:e(i,t(o),n)}return h1=r,h1}var f1,WP;function ire(){if(WP)return f1;WP=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return f1=e,f1}var d1,VP;function ore(){if(VP)return d1;VP=1;var e=Ll(),t=Jp(),n=ir();function r(i,o){var s={};return o=n(o,3),t(i,function(a,l,c){e(s,l,o(a,l,c))}),s}return d1=r,d1}var p1,GP;function g1(){if(GP)return p1;GP=1;var e=Fi();function t(n,r,i){for(var o=-1,s=n.length;++o<s;){var a=n[o],l=r(a);if(l!=null&&(c===void 0?l===l&&!e(l):i(l,c)))var c=l,u=a}return u}return p1=t,p1}var m1,YP;function sre(){if(YP)return m1;YP=1;function e(t,n){return t>n}return m1=e,m1}var y1,XP;function are(){if(XP)return y1;XP=1;var e=g1(),t=sre(),n=ei();function r(i){return i&&i.length?e(i,n,t):void 0}return y1=r,y1}var v1,UP;function KP(){if(UP)return v1;UP=1;var e=Ll(),t=Di();function n(r,i,o){(o!==void 0&&!t(r[i],o)||o===void 0&&!(i in r))&&e(r,i,o)}return v1=n,v1}var b1,ZP;function lre(){if(ZP)return b1;ZP=1;var e=Zr(),t=Hl(),n=jn(),r="[object Object]",i=Function.prototype,o=Object.prototype,s=i.toString,a=o.hasOwnProperty,l=s.call(Object);function c(u){if(!n(u)||e(u)!=r)return!1;var h=t(u);if(h===null)return!0;var f=a.call(h,"constructor")&&h.constructor;return typeof f=="function"&&f instanceof f&&s.call(f)==l}return b1=c,b1}var w1,QP;function JP(){if(QP)return w1;QP=1;function e(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}return w1=e,w1}var _1,eS;function cre(){if(eS)return _1;eS=1;var e=es(),t=Jr();function n(r){return e(r,t(r))}return _1=n,_1}var x1,tS;function ure(){if(tS)return x1;tS=1;var e=KP(),t=c9(),n=F9(),r=h9(),i=Y9(),o=ts(),s=Rt(),a=QC(),l=Hi(),c=Jo(),u=fn(),h=lre(),f=is(),d=JP(),p=cre();function g(m,v,b,w,x,_,C){var P=d(m,b),S=d(v,b),$=C.get(S);if($){e(m,b,$);return}var O=_?_(P,S,b+"",m,v,C):void 0,M=O===void 0;if(M){var A=s(S),E=!A&&l(S),I=!A&&!E&&f(S);O=S,A||E||I?s(P)?O=P:a(P)?O=r(P):E?(M=!1,O=t(S,!0)):I?(M=!1,O=n(S,!0)):O=[]:h(S)||o(S)?(O=P,o(P)?O=p(P):(!u(P)||c(P))&&(O=i(S))):M=!1}M&&(C.set(S,O),x(O,S,w,_,C),C.delete(S)),e(m,b,O)}return x1=g,x1}var C1,nS;function hre(){if(nS)return C1;nS=1;var e=kl(),t=KP(),n=Zp(),r=ure(),i=fn(),o=Jr(),s=JP();function a(l,c,u,h,f){l!==c&&n(c,function(d,p){if(f||(f=new e),i(d))r(l,c,p,u,a,h,f);else{var g=h?h(s(l,p),d,p+"",l,c,f):void 0;g===void 0&&(g=d),t(l,p,g)}},o)}return C1=a,C1}var P1,rS;function fre(){if(rS)return P1;rS=1;var e=Vl(),t=Gl();function n(r){return e(function(i,o){var s=-1,a=o.length,l=a>1?o[a-1]:void 0,c=a>2?o[2]:void 0;for(l=r.length>3&&typeof l=="function"?(a--,l):void 0,c&&t(o[0],o[1],c)&&(l=a<3?void 0:l,a=1),i=Object(i);++s<a;){var u=o[s];u&&r(i,u,s,l)}return i})}return P1=n,P1}var S1,iS;function dre(){if(iS)return S1;iS=1;var e=hre(),t=fre(),n=t(function(r,i,o){e(r,i,o)});return S1=n,S1}var O1,oS;function sS(){if(oS)return O1;oS=1;function e(t,n){return t<n}return O1=e,O1}var $1,aS;function pre(){if(aS)return $1;aS=1;var e=g1(),t=sS(),n=ei();function r(i){return i&&i.length?e(i,n,t):void 0}return $1=r,$1}var E1,lS;function gre(){if(lS)return E1;lS=1;var e=g1(),t=ir(),n=sS();function r(i,o){return i&&i.length?e(i,t(o,2),n):void 0}return E1=r,E1}var M1,cS;function mre(){if(cS)return M1;cS=1;var e=Cn(),t=function(){return e.Date.now()};return M1=t,M1}var A1,uS;function yre(){if(uS)return A1;uS=1;var e=Nl(),t=Bl(),n=zl(),r=fn(),i=ss();function o(s,a,l,c){if(!r(s))return s;a=t(a,s);for(var u=-1,h=a.length,f=h-1,d=s;d!=null&&++u<h;){var p=i(a[u]),g=l;if(p==="__proto__"||p==="constructor"||p==="prototype")return s;if(u!=f){var m=d[p];g=c?c(m,p,d):void 0,g===void 0&&(g=r(m)?m:n(a[u+1])?[]:{})}e(d,p,g),d=d[p]}return s}return A1=o,A1}var I1,hS;function vre(){if(hS)return I1;hS=1;var e=Wl(),t=yre(),n=Bl();function r(i,o,s){for(var a=-1,l=o.length,c={};++a<l;){var u=o[a],h=e(i,u);s(h,u)&&t(c,n(u,i),h)}return c}return I1=r,I1}var T1,fS;function bre(){if(fS)return T1;fS=1;var e=vre(),t=tC();function n(r,i){return e(r,i,function(o,s){return t(r,s)})}return T1=n,T1}var R1,dS;function wre(){if(dS)return R1;dS=1;var e=FP(),t=LC(),n=qC();function r(i){return n(t(i,void 0,e),i+"")}return R1=r,R1}var k1,pS;function _re(){if(pS)return k1;pS=1;var e=bre(),t=wre(),n=t(function(r,i){return r==null?{}:e(r,i)});return k1=n,k1}var L1,gS;function xre(){if(gS)return L1;gS=1;var e=Math.ceil,t=Math.max;function n(r,i,o,s){for(var a=-1,l=t(e((i-r)/(o||1)),0),c=Array(l);l--;)c[s?l:++a]=r,r+=o;return c}return L1=n,L1}var N1,mS;function Cre(){if(mS)return N1;mS=1;var e=xre(),t=Gl(),n=zP();function r(i){return function(o,s,a){return a&&typeof a!="number"&&t(o,s,a)&&(s=a=void 0),o=n(o),s===void 0?(s=o,o=0):s=n(s),a=a===void 0?o<s?1:-1:n(a),e(o,s,a,i)}}return N1=r,N1}var z1,yS;function Pre(){if(yS)return z1;yS=1;var e=Cre(),t=e();return z1=t,z1}var D1,vS;function Sre(){if(vS)return D1;vS=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return D1=e,D1}var q1,bS;function Ore(){if(bS)return q1;bS=1;var e=Fi();function t(n,r){if(n!==r){var i=n!==void 0,o=n===null,s=n===n,a=e(n),l=r!==void 0,c=r===null,u=r===r,h=e(r);if(!c&&!h&&!a&&n>r||a&&l&&u&&!c&&!h||o&&l&&u||!i&&u||!s)return 1;if(!o&&!a&&!h&&n<r||h&&i&&s&&!o&&!a||c&&i&&s||!l&&s||!u)return-1}return 0}return q1=t,q1}var H1,wS;function $re(){if(wS)return H1;wS=1;var e=Ore();function t(n,r,i){for(var o=-1,s=n.criteria,a=r.criteria,l=s.length,c=i.length;++o<l;){var u=e(s[o],a[o]);if(u){if(o>=c)return u;var h=i[o];return u*(h=="desc"?-1:1)}}return n.index-r.index}return H1=t,H1}var j1,_S;function Ere(){if(_S)return j1;_S=1;var e=Fl(),t=Wl(),n=ir(),r=yC(),i=Sre(),o=Dl(),s=$re(),a=ei(),l=Rt();function c(u,h,f){h.length?h=e(h,function(g){return l(g)?function(m){return t(m,g.length===1?g[0]:g)}:g}):h=[a];var d=-1;h=e(h,o(n));var p=r(u,function(g,m,v){var b=e(h,function(w){return w(g)});return{criteria:b,index:++d,value:g}});return i(p,function(g,m){return s(g,m,f)})}return j1=c,j1}var F1,xS;function Mre(){if(xS)return F1;xS=1;var e=hg(),t=Ere(),n=Vl(),r=Gl(),i=n(function(o,s){if(o==null)return[];var a=s.length;return a>1&&r(o,s[0],s[1])?s=[]:a>2&&r(s[0],s[1],s[2])&&(s=[s[0]]),t(o,e(s,1),[])});return F1=i,F1}var B1,CS;function Are(){if(CS)return B1;CS=1;var e=G8(),t=0;function n(r){var i=++t;return e(r)+i}return B1=n,B1}var W1,PS;function Ire(){if(PS)return W1;PS=1;function e(t,n,r){for(var i=-1,o=t.length,s=n.length,a={};++i<o;){var l=i<s?n[i]:void 0;r(a,t[i],l)}return a}return W1=e,W1}var V1,SS;function Tre(){if(SS)return V1;SS=1;var e=Nl(),t=Ire();function n(r,i){return t(r||[],i||[],e)}return V1=n,V1}var G1,OS;function _t(){if(OS)return G1;OS=1;var e;if(typeof Hf=="function")try{e={cloneDeep:Xne(),constant:Xp(),defaults:Une(),each:d8(),filter:cC(),find:nre(),flatten:FP(),forEach:h8(),forIn:rre(),has:fC(),isUndefined:gC(),last:ire(),map:bC(),mapValues:ore(),max:are(),merge:dre(),min:pre(),minBy:gre(),now:mre(),pick:_re(),range:Pre(),reduce:CC(),sortBy:Mre(),uniqueId:Are(),values:nP(),zipObject:Tre()}}catch(t){}return e||(e=window._),G1=e,G1}var Y1,$S;function Rre(){if($S)return Y1;$S=1,Y1=e;function e(){var r={};r._next=r._prev=r,this._sentinel=r}e.prototype.dequeue=function(){var r=this._sentinel,i=r._prev;if(i!==r)return t(i),i},e.prototype.enqueue=function(r){var i=this._sentinel;r._prev&&r._next&&t(r),r._next=i._next,i._next._prev=r,i._next=r,r._prev=i},e.prototype.toString=function(){for(var r=[],i=this._sentinel,o=i._prev;o!==i;)r.push(JSON.stringify(o,n)),o=o._prev;return"["+r.join(", ")+"]"};function t(r){r._prev._next=r._next,r._next._prev=r._prev,delete r._next,delete r._prev}function n(r,i){if(r!=="_next"&&r!=="_prev")return i}return Y1}var X1,ES;function kre(){if(ES)return X1;ES=1;var e=_t(),t=Pn().Graph,n=Rre();X1=i;var r=e.constant(1);function i(c,u){if(c.nodeCount()<=1)return[];var h=a(c,u||r),f=o(h.graph,h.buckets,h.zeroIdx);return e.flatten(e.map(f,function(d){return c.outEdges(d.v,d.w)}),!0)}function o(c,u,h){for(var f=[],d=u[u.length-1],p=u[0],g;c.nodeCount();){for(;g=p.dequeue();)s(c,u,h,g);for(;g=d.dequeue();)s(c,u,h,g);if(c.nodeCount()){for(var m=u.length-2;m>0;--m)if(g=u[m].dequeue(),g){f=f.concat(s(c,u,h,g,!0));break}}}return f}function s(c,u,h,f,d){var p=d?[]:void 0;return e.forEach(c.inEdges(f.v),function(g){var m=c.edge(g),v=c.node(g.v);d&&p.push({v:g.v,w:g.w}),v.out-=m,l(u,h,v)}),e.forEach(c.outEdges(f.v),function(g){var m=c.edge(g),v=g.w,b=c.node(v);b.in-=m,l(u,h,b)}),c.removeNode(f.v),p}function a(c,u){var h=new t,f=0,d=0;e.forEach(c.nodes(),function(m){h.setNode(m,{v:m,in:0,out:0})}),e.forEach(c.edges(),function(m){var v=h.edge(m.v,m.w)||0,b=u(m),w=v+b;h.setEdge(m.v,m.w,w),d=Math.max(d,h.node(m.v).out+=b),f=Math.max(f,h.node(m.w).in+=b)});var p=e.range(d+f+3).map(function(){return new n}),g=f+1;return e.forEach(h.nodes(),function(m){l(p,g,h.node(m))}),{graph:h,buckets:p,zeroIdx:g}}function l(c,u,h){h.out?h.in?c[h.out-h.in+u].enqueue(h):c[c.length-1].enqueue(h):c[0].enqueue(h)}return X1}var U1,MS;function Lre(){if(MS)return U1;MS=1;var e=_t(),t=kre();U1={run:n,undo:i};function n(o){var s=o.graph().acyclicer==="greedy"?t(o,a(o)):r(o);e.forEach(s,function(l){var c=o.edge(l);o.removeEdge(l),c.forwardName=l.name,c.reversed=!0,o.setEdge(l.w,l.v,c,e.uniqueId("rev"))});function a(l){return function(c){return l.edge(c).weight}}}function r(o){var s=[],a={},l={};function c(u){e.has(l,u)||(l[u]=!0,a[u]=!0,e.forEach(o.outEdges(u),function(h){e.has(a,h.w)?s.push(h):c(h.w)}),delete a[u])}return e.forEach(o.nodes(),c),s}function i(o){e.forEach(o.edges(),function(s){var a=o.edge(s);if(a.reversed){o.removeEdge(s);var l=a.forwardName;delete a.reversed,delete a.forwardName,o.setEdge(s.w,s.v,a,l)}})}return U1}var K1,AS;function on(){if(AS)return K1;AS=1;var e=_t(),t=Pn().Graph;K1={addDummyNode:n,simplify:r,asNonCompoundGraph:i,successorWeights:o,predecessorWeights:s,intersectRect:a,buildLayerMatrix:l,normalizeRanks:c,removeEmptyRanks:u,addBorderNode:h,maxRank:f,partition:d,time:p,notime:g};function n(m,v,b,w){var x;do x=e.uniqueId(w);while(m.hasNode(x));return b.dummy=v,m.setNode(x,b),x}function r(m){var v=new t().setGraph(m.graph());return e.forEach(m.nodes(),function(b){v.setNode(b,m.node(b))}),e.forEach(m.edges(),function(b){var w=v.edge(b.v,b.w)||{weight:0,minlen:1},x=m.edge(b);v.setEdge(b.v,b.w,{weight:w.weight+x.weight,minlen:Math.max(w.minlen,x.minlen)})}),v}function i(m){var v=new t({multigraph:m.isMultigraph()}).setGraph(m.graph());return e.forEach(m.nodes(),function(b){m.children(b).length||v.setNode(b,m.node(b))}),e.forEach(m.edges(),function(b){v.setEdge(b,m.edge(b))}),v}function o(m){var v=e.map(m.nodes(),function(b){var w={};return e.forEach(m.outEdges(b),function(x){w[x.w]=(w[x.w]||0)+m.edge(x).weight}),w});return e.zipObject(m.nodes(),v)}function s(m){var v=e.map(m.nodes(),function(b){var w={};return e.forEach(m.inEdges(b),function(x){w[x.v]=(w[x.v]||0)+m.edge(x).weight}),w});return e.zipObject(m.nodes(),v)}function a(m,v){var b=m.x,w=m.y,x=v.x-b,_=v.y-w,C=m.width/2,P=m.height/2;if(!x&&!_)throw new Error("Not possible to find intersection inside of the rectangle");var S,$;return Math.abs(_)*C>Math.abs(x)*P?(_<0&&(P=-P),S=P*x/_,$=P):(x<0&&(C=-C),S=C,$=C*_/x),{x:b+S,y:w+$}}function l(m){var v=e.map(e.range(f(m)+1),function(){return[]});return e.forEach(m.nodes(),function(b){var w=m.node(b),x=w.rank;e.isUndefined(x)||(v[x][w.order]=b)}),v}function c(m){var v=e.min(e.map(m.nodes(),function(b){return m.node(b).rank}));e.forEach(m.nodes(),function(b){var w=m.node(b);e.has(w,"rank")&&(w.rank-=v)})}function u(m){var v=e.min(e.map(m.nodes(),function(_){return m.node(_).rank})),b=[];e.forEach(m.nodes(),function(_){var C=m.node(_).rank-v;b[C]||(b[C]=[]),b[C].push(_)});var w=0,x=m.graph().nodeRankFactor;e.forEach(b,function(_,C){e.isUndefined(_)&&C%x!==0?--w:w&&e.forEach(_,function(P){m.node(P).rank+=w})})}function h(m,v,b,w){var x={width:0,height:0};return arguments.length>=4&&(x.rank=b,x.order=w),n(m,"border",x,v)}function f(m){return e.max(e.map(m.nodes(),function(v){var b=m.node(v).rank;if(!e.isUndefined(b))return b}))}function d(m,v){var b={lhs:[],rhs:[]};return e.forEach(m,function(w){v(w)?b.lhs.push(w):b.rhs.push(w)}),b}function p(m,v){var b=e.now();try{return v()}finally{console.log(m+" time: "+(e.now()-b)+"ms")}}function g(m,v){return v()}return K1}var Z1,IS;function Nre(){if(IS)return Z1;IS=1;var e=_t(),t=on();Z1={run:n,undo:i};function n(o){o.graph().dummyChains=[],e.forEach(o.edges(),function(s){r(o,s)})}function r(o,s){var a=s.v,l=o.node(a).rank,c=s.w,u=o.node(c).rank,h=s.name,f=o.edge(s),d=f.labelRank;if(u!==l+1){o.removeEdge(s);var p,g,m;for(m=0,++l;l<u;++m,++l)f.points=[],g={width:0,height:0,edgeLabel:f,edgeObj:s,rank:l},p=t.addDummyNode(o,"edge",g,"_d"),l===d&&(g.width=f.width,g.height=f.height,g.dummy="edge-label",g.labelpos=f.labelpos),o.setEdge(a,p,{weight:f.weight},h),m===0&&o.graph().dummyChains.push(p),a=p;o.setEdge(a,c,{weight:f.weight},h)}}function i(o){e.forEach(o.graph().dummyChains,function(s){var a=o.node(s),l=a.edgeLabel,c;for(o.setEdge(a.edgeObj,l);a.dummy;)c=o.successors(s)[0],o.removeNode(s),l.points.push({x:a.x,y:a.y}),a.dummy==="edge-label"&&(l.x=a.x,l.y=a.y,l.width=a.width,l.height=a.height),s=c,a=o.node(s)})}return Z1}var Q1,TS;function Yl(){if(TS)return Q1;TS=1;var e=_t();Q1={longestPath:t,slack:n};function t(r){var i={};function o(s){var a=r.node(s);if(e.has(i,s))return a.rank;i[s]=!0;var l=e.min(e.map(r.outEdges(s),function(c){return o(c.w)-r.edge(c).minlen}));return(l===Number.POSITIVE_INFINITY||l===void 0||l===null)&&(l=0),a.rank=l}e.forEach(r.sources(),o)}function n(r,i){return r.node(i.w).rank-r.node(i.v).rank-r.edge(i).minlen}return Q1}var J1,RS;function kS(){if(RS)return J1;RS=1;var e=_t(),t=Pn().Graph,n=Yl().slack;J1=r;function r(a){var l=new t({directed:!1}),c=a.nodes()[0],u=a.nodeCount();l.setNode(c,{});for(var h,f;i(l,a)<u;)h=o(l,a),f=l.hasNode(h.v)?n(a,h):-n(a,h),s(l,a,f);return l}function i(a,l){function c(u){e.forEach(l.nodeEdges(u),function(h){var f=h.v,d=u===f?h.w:f;!a.hasNode(d)&&!n(l,h)&&(a.setNode(d,{}),a.setEdge(u,d,{}),c(d))})}return e.forEach(a.nodes(),c),a.nodeCount()}function o(a,l){return e.minBy(l.edges(),function(c){if(a.hasNode(c.v)!==a.hasNode(c.w))return n(l,c)})}function s(a,l,c){e.forEach(a.nodes(),function(u){l.node(u).rank+=c})}return J1}var em,LS;function zre(){if(LS)return em;LS=1;var e=_t(),t=kS(),n=Yl().slack,r=Yl().longestPath,i=Pn().alg.preorder,o=Pn().alg.postorder,s=on().simplify;em=a,a.initLowLimValues=h,a.initCutValues=l,a.calcCutValue=u,a.leaveEdge=d,a.enterEdge=p,a.exchangeEdges=g;function a(w){w=s(w),r(w);var x=t(w);h(x),l(x,w);for(var _,C;_=d(x);)C=p(x,w,_),g(x,w,_,C)}function l(w,x){var _=o(w,w.nodes());_=_.slice(0,_.length-1),e.forEach(_,function(C){c(w,x,C)})}function c(w,x,_){var C=w.node(_),P=C.parent;w.edge(_,P).cutvalue=u(w,x,_)}function u(w,x,_){var C=w.node(_),P=C.parent,S=!0,$=x.edge(_,P),O=0;return $||(S=!1,$=x.edge(P,_)),O=$.weight,e.forEach(x.nodeEdges(_),function(M){var A=M.v===_,E=A?M.w:M.v;if(E!==P){var I=A===S,T=x.edge(M).weight;if(O+=I?T:-T,v(w,_,E)){var N=w.edge(_,E).cutvalue;O+=I?-N:N}}}),O}function h(w,x){arguments.length<2&&(x=w.nodes()[0]),f(w,{},1,x)}function f(w,x,_,C,P){var S=_,$=w.node(C);return x[C]=!0,e.forEach(w.neighbors(C),function(O){e.has(x,O)||(_=f(w,x,_,O,C))}),$.low=S,$.lim=_++,P?$.parent=P:delete $.parent,_}function d(w){return e.find(w.edges(),function(x){return w.edge(x).cutvalue<0})}function p(w,x,_){var C=_.v,P=_.w;x.hasEdge(C,P)||(C=_.w,P=_.v);var S=w.node(C),$=w.node(P),O=S,M=!1;S.lim>$.lim&&(O=$,M=!0);var A=e.filter(x.edges(),function(E){return M===b(w,w.node(E.v),O)&&M!==b(w,w.node(E.w),O)});return e.minBy(A,function(E){return n(x,E)})}function g(w,x,_,C){var P=_.v,S=_.w;w.removeEdge(P,S),w.setEdge(C.v,C.w,{}),h(w),l(w,x),m(w,x)}function m(w,x){var _=e.find(w.nodes(),function(P){return!x.node(P).parent}),C=i(w,_);C=C.slice(1),e.forEach(C,function(P){var S=w.node(P).parent,$=x.edge(P,S),O=!1;$||($=x.edge(S,P),O=!0),x.node(P).rank=x.node(S).rank+(O?$.minlen:-$.minlen)})}function v(w,x,_){return w.hasEdge(x,_)}function b(w,x,_){return _.low<=x.lim&&x.lim<=_.lim}return em}var tm,NS;function Dre(){if(NS)return tm;NS=1;var e=Yl(),t=e.longestPath,n=kS(),r=zre();tm=i;function i(l){switch(l.graph().ranker){case"network-simplex":a(l);break;case"tight-tree":s(l);break;case"longest-path":o(l);break;default:a(l)}}var o=t;function s(l){t(l),n(l)}function a(l){r(l)}return tm}var nm,zS;function qre(){if(zS)return nm;zS=1;var e=_t();nm=t;function t(i){var o=r(i);e.forEach(i.graph().dummyChains,function(s){for(var a=i.node(s),l=a.edgeObj,c=n(i,o,l.v,l.w),u=c.path,h=c.lca,f=0,d=u[f],p=!0;s!==l.w;){if(a=i.node(s),p){for(;(d=u[f])!==h&&i.node(d).maxRank<a.rank;)f++;d===h&&(p=!1)}if(!p){for(;f<u.length-1&&i.node(d=u[f+1]).minRank<=a.rank;)f++;d=u[f]}i.setParent(s,d),s=i.successors(s)[0]}})}function n(i,o,s,a){var l=[],c=[],u=Math.min(o[s].low,o[a].low),h=Math.max(o[s].lim,o[a].lim),f,d;f=s;do f=i.parent(f),l.push(f);while(f&&(o[f].low>u||h>o[f].lim));for(d=f,f=a;(f=i.parent(f))!==d;)c.push(f);return{path:l.concat(c.reverse()),lca:d}}function r(i){var o={},s=0;function a(l){var c=s;e.forEach(i.children(l),a),o[l]={low:c,lim:s++}}return e.forEach(i.children(),a),o}return nm}var rm,DS;function Hre(){if(DS)return rm;DS=1;var e=_t(),t=on();rm={run:n,cleanup:s};function n(a){var l=t.addDummyNode(a,"root",{},"_root"),c=i(a),u=e.max(e.values(c))-1,h=2*u+1;a.graph().nestingRoot=l,e.forEach(a.edges(),function(d){a.edge(d).minlen*=h});var f=o(a)+1;e.forEach(a.children(),function(d){r(a,l,h,f,u,c,d)}),a.graph().nodeRankFactor=h}function r(a,l,c,u,h,f,d){var p=a.children(d);if(!p.length){d!==l&&a.setEdge(l,d,{weight:0,minlen:c});return}var g=t.addBorderNode(a,"_bt"),m=t.addBorderNode(a,"_bb"),v=a.node(d);a.setParent(g,d),v.borderTop=g,a.setParent(m,d),v.borderBottom=m,e.forEach(p,function(b){r(a,l,c,u,h,f,b);var w=a.node(b),x=w.borderTop?w.borderTop:b,_=w.borderBottom?w.borderBottom:b,C=w.borderTop?u:2*u,P=x!==_?1:h-f[d]+1;a.setEdge(g,x,{weight:C,minlen:P,nestingEdge:!0}),a.setEdge(_,m,{weight:C,minlen:P,nestingEdge:!0})}),a.parent(d)||a.setEdge(l,g,{weight:0,minlen:h+f[d]})}function i(a){var l={};function c(u,h){var f=a.children(u);f&&f.length&&e.forEach(f,function(d){c(d,h+1)}),l[u]=h}return e.forEach(a.children(),function(u){c(u,1)}),l}function o(a){return e.reduce(a.edges(),function(l,c){return l+a.edge(c).weight},0)}function s(a){var l=a.graph();a.removeNode(l.nestingRoot),delete l.nestingRoot,e.forEach(a.edges(),function(c){var u=a.edge(c);u.nestingEdge&&a.removeEdge(c)})}return rm}var im,qS;function jre(){if(qS)return im;qS=1;var e=_t(),t=on();im=n;function n(i){function o(s){var a=i.children(s),l=i.node(s);if(a.length&&e.forEach(a,o),e.has(l,"minRank")){l.borderLeft=[],l.borderRight=[];for(var c=l.minRank,u=l.maxRank+1;c<u;++c)r(i,"borderLeft","_bl",s,l,c),r(i,"borderRight","_br",s,l,c)}}e.forEach(i.children(),o)}function r(i,o,s,a,l,c){var u={width:0,height:0,rank:c,borderType:o},h=l[o][c-1],f=t.addDummyNode(i,"border",u,s);l[o][c]=f,i.setParent(f,a),h&&i.setEdge(h,f,{weight:1})}return im}var om,HS;function Fre(){if(HS)return om;HS=1;var e=_t();om={adjust:t,undo:n};function t(c){var u=c.graph().rankdir.toLowerCase();(u==="lr"||u==="rl")&&r(c)}function n(c){var u=c.graph().rankdir.toLowerCase();(u==="bt"||u==="rl")&&o(c),(u==="lr"||u==="rl")&&(a(c),r(c))}function r(c){e.forEach(c.nodes(),function(u){i(c.node(u))}),e.forEach(c.edges(),function(u){i(c.edge(u))})}function i(c){var u=c.width;c.width=c.height,c.height=u}function o(c){e.forEach(c.nodes(),function(u){s(c.node(u))}),e.forEach(c.edges(),function(u){var h=c.edge(u);e.forEach(h.points,s),e.has(h,"y")&&s(h)})}function s(c){c.y=-c.y}function a(c){e.forEach(c.nodes(),function(u){l(c.node(u))}),e.forEach(c.edges(),function(u){var h=c.edge(u);e.forEach(h.points,l),e.has(h,"x")&&l(h)})}function l(c){var u=c.x;c.x=c.y,c.y=u}return om}var sm,jS;function Bre(){if(jS)return sm;jS=1;var e=_t();sm=t;function t(n){var r={},i=e.filter(n.nodes(),function(c){return!n.children(c).length}),o=e.max(e.map(i,function(c){return n.node(c).rank})),s=e.map(e.range(o+1),function(){return[]});function a(c){if(!e.has(r,c)){r[c]=!0;var u=n.node(c);s[u.rank].push(c),e.forEach(n.successors(c),a)}}var l=e.sortBy(i,function(c){return n.node(c).rank});return e.forEach(l,a),s}return sm}var am,FS;function Wre(){if(FS)return am;FS=1;var e=_t();am=t;function t(r,i){for(var o=0,s=1;s<i.length;++s)o+=n(r,i[s-1],i[s]);return o}function n(r,i,o){for(var s=e.zipObject(o,e.map(o,function(f,d){return d})),a=e.flatten(e.map(i,function(f){return e.sortBy(e.map(r.outEdges(f),function(d){return{pos:s[d.w],weight:r.edge(d).weight}}),"pos")}),!0),l=1;l<o.length;)l<<=1;var c=2*l-1;l-=1;var u=e.map(new Array(c),function(){return 0}),h=0;return e.forEach(a.forEach(function(f){var d=f.pos+l;u[d]+=f.weight;for(var p=0;d>0;)d%2&&(p+=u[d+1]),d=d-1>>1,u[d]+=f.weight;h+=f.weight*p})),h}return am}var lm,BS;function Vre(){if(BS)return lm;BS=1;var e=_t();lm=t;function t(n,r){return e.map(r,function(i){var o=n.inEdges(i);if(o.length){var s=e.reduce(o,function(a,l){var c=n.edge(l),u=n.node(l.v);return{sum:a.sum+c.weight*u.order,weight:a.weight+c.weight}},{sum:0,weight:0});return{v:i,barycenter:s.sum/s.weight,weight:s.weight}}else return{v:i}})}return lm}var cm,WS;function Gre(){if(WS)return cm;WS=1;var e=_t();cm=t;function t(i,o){var s={};e.forEach(i,function(l,c){var u=s[l.v]={indegree:0,in:[],out:[],vs:[l.v],i:c};e.isUndefined(l.barycenter)||(u.barycenter=l.barycenter,u.weight=l.weight)}),e.forEach(o.edges(),function(l){var c=s[l.v],u=s[l.w];!e.isUndefined(c)&&!e.isUndefined(u)&&(u.indegree++,c.out.push(s[l.w]))});var a=e.filter(s,function(l){return!l.indegree});return n(a)}function n(i){var o=[];function s(c){return function(u){u.merged||(e.isUndefined(u.barycenter)||e.isUndefined(c.barycenter)||u.barycenter>=c.barycenter)&&r(c,u)}}function a(c){return function(u){u.in.push(c),--u.indegree===0&&i.push(u)}}for(;i.length;){var l=i.pop();o.push(l),e.forEach(l.in.reverse(),s(l)),e.forEach(l.out,a(l))}return e.map(e.filter(o,function(c){return!c.merged}),function(c){return e.pick(c,["vs","i","barycenter","weight"])})}function r(i,o){var s=0,a=0;i.weight&&(s+=i.barycenter*i.weight,a+=i.weight),o.weight&&(s+=o.barycenter*o.weight,a+=o.weight),i.vs=o.vs.concat(i.vs),i.barycenter=s/a,i.weight=a,i.i=Math.min(o.i,i.i),o.merged=!0}return cm}var um,VS;function Yre(){if(VS)return um;VS=1;var e=_t(),t=on();um=n;function n(o,s){var a=t.partition(o,function(g){return e.has(g,"barycenter")}),l=a.lhs,c=e.sortBy(a.rhs,function(g){return-g.i}),u=[],h=0,f=0,d=0;l.sort(i(!!s)),d=r(u,c,d),e.forEach(l,function(g){d+=g.vs.length,u.push(g.vs),h+=g.barycenter*g.weight,f+=g.weight,d=r(u,c,d)});var p={vs:e.flatten(u,!0)};return f&&(p.barycenter=h/f,p.weight=f),p}function r(o,s,a){for(var l;s.length&&(l=e.last(s)).i<=a;)s.pop(),o.push(l.vs),a++;return a}function i(o){return function(s,a){return s.barycenter<a.barycenter?-1:s.barycenter>a.barycenter?1:o?a.i-s.i:s.i-a.i}}return um}var hm,GS;function Xre(){if(GS)return hm;GS=1;var e=_t(),t=Vre(),n=Gre(),r=Yre();hm=i;function i(a,l,c,u){var h=a.children(l),f=a.node(l),d=f?f.borderLeft:void 0,p=f?f.borderRight:void 0,g={};d&&(h=e.filter(h,function(_){return _!==d&&_!==p}));var m=t(a,h);e.forEach(m,function(_){if(a.children(_.v).length){var C=i(a,_.v,c,u);g[_.v]=C,e.has(C,"barycenter")&&s(_,C)}});var v=n(m,c);o(v,g);var b=r(v,u);if(d&&(b.vs=e.flatten([d,b.vs,p],!0),a.predecessors(d).length)){var w=a.node(a.predecessors(d)[0]),x=a.node(a.predecessors(p)[0]);e.has(b,"barycenter")||(b.barycenter=0,b.weight=0),b.barycenter=(b.barycenter*b.weight+w.order+x.order)/(b.weight+2),b.weight+=2}return b}function o(a,l){e.forEach(a,function(c){c.vs=e.flatten(c.vs.map(function(u){return l[u]?l[u].vs:u}),!0)})}function s(a,l){e.isUndefined(a.barycenter)?(a.barycenter=l.barycenter,a.weight=l.weight):(a.barycenter=(a.barycenter*a.weight+l.barycenter*l.weight)/(a.weight+l.weight),a.weight+=l.weight)}return hm}var fm,YS;function Ure(){if(YS)return fm;YS=1;var e=_t(),t=Pn().Graph;fm=n;function n(i,o,s){var a=r(i),l=new t({compound:!0}).setGraph({root:a}).setDefaultNodeLabel(function(c){return i.node(c)});return e.forEach(i.nodes(),function(c){var u=i.node(c),h=i.parent(c);(u.rank===o||u.minRank<=o&&o<=u.maxRank)&&(l.setNode(c),l.setParent(c,h||a),e.forEach(i[s](c),function(f){var d=f.v===c?f.w:f.v,p=l.edge(d,c),g=e.isUndefined(p)?0:p.weight;l.setEdge(d,c,{weight:i.edge(f).weight+g})}),e.has(u,"minRank")&&l.setNode(c,{borderLeft:u.borderLeft[o],borderRight:u.borderRight[o]}))}),l}function r(i){for(var o;i.hasNode(o=e.uniqueId("_root")););return o}return fm}var dm,XS;function Kre(){if(XS)return dm;XS=1;var e=_t();dm=t;function t(n,r,i){var o={},s;e.forEach(i,function(a){for(var l=n.parent(a),c,u;l;){if(c=n.parent(l),c?(u=o[c],o[c]=l):(u=s,s=l),u&&u!==l){r.setEdge(u,l);return}l=c}})}return dm}var pm,US;function Zre(){if(US)return pm;US=1;var e=_t(),t=Bre(),n=Wre(),r=Xre(),i=Ure(),o=Kre(),s=Pn().Graph,a=on();pm=l;function l(f){var d=a.maxRank(f),p=c(f,e.range(1,d+1),"inEdges"),g=c(f,e.range(d-1,-1,-1),"outEdges"),m=t(f);h(f,m);for(var v=Number.POSITIVE_INFINITY,b,w=0,x=0;x<4;++w,++x){u(w%2?p:g,w%4>=2),m=a.buildLayerMatrix(f);var _=n(f,m);_<v&&(x=0,b=e.cloneDeep(m),v=_)}h(f,b)}function c(f,d,p){return e.map(d,function(g){return i(f,g,p)})}function u(f,d){var p=new s;e.forEach(f,function(g){var m=g.graph().root,v=r(g,m,p,d);e.forEach(v.vs,function(b,w){g.node(b).order=w}),o(g,p,v.vs)})}function h(f,d){e.forEach(d,function(p){e.forEach(p,function(g,m){f.node(g).order=m})})}return pm}var gm,KS;function Qre(){if(KS)return gm;KS=1;var e=_t(),t=Pn().Graph,n=on();gm={positionX:p,findType1Conflicts:r,findType2Conflicts:i,addConflict:s,hasConflict:a,verticalAlignment:l,horizontalCompaction:c,alignCoordinates:f,findSmallestWidthAlignment:h,balance:d};function r(v,b){var w={};function x(_,C){var P=0,S=0,$=_.length,O=e.last(C);return e.forEach(C,function(M,A){var E=o(v,M),I=E?v.node(E).order:$;(E||M===O)&&(e.forEach(C.slice(S,A+1),function(T){e.forEach(v.predecessors(T),function(N){var H=v.node(N),D=H.order;(D<P||I<D)&&!(H.dummy&&v.node(T).dummy)&&s(w,N,T)})}),S=A+1,P=I)}),C}return e.reduce(b,x),w}function i(v,b){var w={};function x(C,P,S,$,O){var M;e.forEach(e.range(P,S),function(A){M=C[A],v.node(M).dummy&&e.forEach(v.predecessors(M),function(E){var I=v.node(E);I.dummy&&(I.order<$||I.order>O)&&s(w,E,M)})})}function _(C,P){var S=-1,$,O=0;return e.forEach(P,function(M,A){if(v.node(M).dummy==="border"){var E=v.predecessors(M);E.length&&($=v.node(E[0]).order,x(P,O,A,S,$),O=A,S=$)}x(P,O,P.length,$,C.length)}),P}return e.reduce(b,_),w}function o(v,b){if(v.node(b).dummy)return e.find(v.predecessors(b),function(w){return v.node(w).dummy})}function s(v,b,w){if(b>w){var x=b;b=w,w=x}var _=v[b];_||(v[b]=_={}),_[w]=!0}function a(v,b,w){if(b>w){var x=b;b=w,w=x}return e.has(v[b],w)}function l(v,b,w,x){var _={},C={},P={};return e.forEach(b,function(S){e.forEach(S,function($,O){_[$]=$,C[$]=$,P[$]=O})}),e.forEach(b,function(S){var $=-1;e.forEach(S,function(O){var M=x(O);if(M.length){M=e.sortBy(M,function(N){return P[N]});for(var A=(M.length-1)/2,E=Math.floor(A),I=Math.ceil(A);E<=I;++E){var T=M[E];C[O]===O&&$<P[T]&&!a(w,O,T)&&(C[T]=O,C[O]=_[O]=_[T],$=P[T])}}})}),{root:_,align:C}}function c(v,b,w,x,_){var C={},P=u(v,b,w,_),S=_?"borderLeft":"borderRight";function $(A,E){for(var I=P.nodes(),T=I.pop(),N={};T;)N[T]?A(T):(N[T]=!0,I.push(T),I=I.concat(E(T))),T=I.pop()}function O(A){C[A]=P.inEdges(A).reduce(function(E,I){return Math.max(E,C[I.v]+P.edge(I))},0)}function M(A){var E=P.outEdges(A).reduce(function(T,N){return Math.min(T,C[N.w]-P.edge(N))},Number.POSITIVE_INFINITY),I=v.node(A);E!==Number.POSITIVE_INFINITY&&I.borderType!==S&&(C[A]=Math.max(C[A],E))}return $(O,P.predecessors.bind(P)),$(M,P.successors.bind(P)),e.forEach(x,function(A){C[A]=C[w[A]]}),C}function u(v,b,w,x){var _=new t,C=v.graph(),P=g(C.nodesep,C.edgesep,x);return e.forEach(b,function(S){var $;e.forEach(S,function(O){var M=w[O];if(_.setNode(M),$){var A=w[$],E=_.edge(A,M);_.setEdge(A,M,Math.max(P(v,O,$),E||0))}$=O})}),_}function h(v,b){return e.minBy(e.values(b),function(w){var x=Number.NEGATIVE_INFINITY,_=Number.POSITIVE_INFINITY;return e.forIn(w,function(C,P){var S=m(v,P)/2;x=Math.max(C+S,x),_=Math.min(C-S,_)}),x-_})}function f(v,b){var w=e.values(b),x=e.min(w),_=e.max(w);e.forEach(["u","d"],function(C){e.forEach(["l","r"],function(P){var S=C+P,$=v[S],O;if($!==b){var M=e.values($);O=P==="l"?x-e.min(M):_-e.max(M),O&&(v[S]=e.mapValues($,function(A){return A+O}))}})})}function d(v,b){return e.mapValues(v.ul,function(w,x){if(b)return v[b.toLowerCase()][x];var _=e.sortBy(e.map(v,x));return(_[1]+_[2])/2})}function p(v){var b=n.buildLayerMatrix(v),w=e.merge(r(v,b),i(v,b)),x={},_;e.forEach(["u","d"],function(P){_=P==="u"?b:e.values(b).reverse(),e.forEach(["l","r"],function(S){S==="r"&&(_=e.map(_,function(A){return e.values(A).reverse()}));var $=(P==="u"?v.predecessors:v.successors).bind(v),O=l(v,_,w,$),M=c(v,_,O.root,O.align,S==="r");S==="r"&&(M=e.mapValues(M,function(A){return-A})),x[P+S]=M})});var C=h(v,x);return f(x,C),d(x,v.graph().align)}function g(v,b,w){return function(x,_,C){var P=x.node(_),S=x.node(C),$=0,O;if($+=P.width/2,e.has(P,"labelpos"))switch(P.labelpos.toLowerCase()){case"l":O=-P.width/2;break;case"r":O=P.width/2;break}if(O&&($+=w?O:-O),O=0,$+=(P.dummy?b:v)/2,$+=(S.dummy?b:v)/2,$+=S.width/2,e.has(S,"labelpos"))switch(S.labelpos.toLowerCase()){case"l":O=S.width/2;break;case"r":O=-S.width/2;break}return O&&($+=w?O:-O),O=0,$}}function m(v,b){return v.node(b).width}return gm}var mm,ZS;function Jre(){if(ZS)return mm;ZS=1;var e=_t(),t=on(),n=Qre().positionX;mm=r;function r(o){o=t.asNonCompoundGraph(o),i(o),e.forEach(n(o),function(s,a){o.node(a).x=s})}function i(o){var s=t.buildLayerMatrix(o),a=o.graph().ranksep,l=0;e.forEach(s,function(c){var u=e.max(e.map(c,function(h){return o.node(h).height}));e.forEach(c,function(h){o.node(h).y=l+u/2}),l+=u+a})}return mm}var ym,QS;function eie(){if(QS)return ym;QS=1;var e=_t(),t=Lre(),n=Nre(),r=Dre(),i=on().normalizeRanks,o=qre(),s=on().removeEmptyRanks,a=Hre(),l=jre(),c=Fre(),u=Zre(),h=Jre(),f=on(),d=Pn().Graph;ym=p;function p(R,z){var q=z&&z.debugTiming?f.time:f.notime;q("layout",function(){var j=q(" buildLayoutGraph",function(){return $(R)});q(" runLayout",function(){g(j,q)}),q(" updateInputGraph",function(){m(R,j)})})}function g(R,z){z(" makeSpaceForEdgeLabels",function(){O(R)}),z(" removeSelfEdges",function(){W(R)}),z(" acyclic",function(){t.run(R)}),z(" nestingGraph.run",function(){a.run(R)}),z(" rank",function(){r(f.asNonCompoundGraph(R))}),z(" injectEdgeLabelProxies",function(){M(R)}),z(" removeEmptyRanks",function(){s(R)}),z(" nestingGraph.cleanup",function(){a.cleanup(R)}),z(" normalizeRanks",function(){i(R)}),z(" assignRankMinMax",function(){A(R)}),z(" removeEdgeLabelProxies",function(){E(R)}),z(" normalize.run",function(){n.run(R)}),z(" parentDummyChains",function(){o(R)}),z(" addBorderSegments",function(){l(R)}),z(" order",function(){u(R)}),z(" insertSelfEdges",function(){F(R)}),z(" adjustCoordinateSystem",function(){c.adjust(R)}),z(" position",function(){h(R)}),z(" positionSelfEdges",function(){X(R)}),z(" removeBorderNodes",function(){D(R)}),z(" normalize.undo",function(){n.undo(R)}),z(" fixupEdgeLabelCoords",function(){N(R)}),z(" undoCoordinateSystem",function(){c.undo(R)}),z(" translateGraph",function(){I(R)}),z(" assignNodeIntersects",function(){T(R)}),z(" reversePoints",function(){H(R)}),z(" acyclic.undo",function(){t.undo(R)})}function m(R,z){e.forEach(R.nodes(),function(q){var j=R.node(q),V=z.node(q);j&&(j.x=V.x,j.y=V.y,z.children(q).length&&(j.width=V.width,j.height=V.height))}),e.forEach(R.edges(),function(q){var j=R.edge(q),V=z.edge(q);j.points=V.points,e.has(V,"x")&&(j.x=V.x,j.y=V.y)}),R.graph().width=z.graph().width,R.graph().height=z.graph().height}var v=["nodesep","edgesep","ranksep","marginx","marginy"],b={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},w=["acyclicer","ranker","rankdir","align"],x=["width","height"],_={width:0,height:0},C=["minlen","weight","width","height","labeloffset"],P={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},S=["labelpos"];function $(R){var z=new d({multigraph:!0,compound:!0}),q=L(R.graph());return z.setGraph(e.merge({},b,G(q,v),e.pick(q,w))),e.forEach(R.nodes(),function(j){var V=L(R.node(j));z.setNode(j,e.defaults(G(V,x),_)),z.setParent(j,R.parent(j))}),e.forEach(R.edges(),function(j){var V=L(R.edge(j));z.setEdge(j,e.merge({},P,G(V,C),e.pick(V,S)))}),z}function O(R){var z=R.graph();z.ranksep/=2,e.forEach(R.edges(),function(q){var j=R.edge(q);j.minlen*=2,j.labelpos.toLowerCase()!=="c"&&(z.rankdir==="TB"||z.rankdir==="BT"?j.width+=j.labeloffset:j.height+=j.labeloffset)})}function M(R){e.forEach(R.edges(),function(z){var q=R.edge(z);if(q.width&&q.height){var j=R.node(z.v),V=R.node(z.w),U={rank:(V.rank-j.rank)/2+j.rank,e:z};f.addDummyNode(R,"edge-proxy",U,"_ep")}})}function A(R){var z=0;e.forEach(R.nodes(),function(q){var j=R.node(q);j.borderTop&&(j.minRank=R.node(j.borderTop).rank,j.maxRank=R.node(j.borderBottom).rank,z=e.max(z,j.maxRank))}),R.graph().maxRank=z}function E(R){e.forEach(R.nodes(),function(z){var q=R.node(z);q.dummy==="edge-proxy"&&(R.edge(q.e).labelRank=q.rank,R.removeNode(z))})}function I(R){var z=Number.POSITIVE_INFINITY,q=0,j=Number.POSITIVE_INFINITY,V=0,U=R.graph(),K=U.marginx||0,J=U.marginy||0;function Z(ie){var Q=ie.x,te=ie.y,ce=ie.width,re=ie.height;z=Math.min(z,Q-ce/2),q=Math.max(q,Q+ce/2),j=Math.min(j,te-re/2),V=Math.max(V,te+re/2)}e.forEach(R.nodes(),function(ie){Z(R.node(ie))}),e.forEach(R.edges(),function(ie){var Q=R.edge(ie);e.has(Q,"x")&&Z(Q)}),z-=K,j-=J,e.forEach(R.nodes(),function(ie){var Q=R.node(ie);Q.x-=z,Q.y-=j}),e.forEach(R.edges(),function(ie){var Q=R.edge(ie);e.forEach(Q.points,function(te){te.x-=z,te.y-=j}),e.has(Q,"x")&&(Q.x-=z),e.has(Q,"y")&&(Q.y-=j)}),U.width=q-z+K,U.height=V-j+J}function T(R){e.forEach(R.edges(),function(z){var q=R.edge(z),j=R.node(z.v),V=R.node(z.w),U,K;q.points?(U=q.points[0],K=q.points[q.points.length-1]):(q.points=[],U=V,K=j),q.points.unshift(f.intersectRect(j,U)),q.points.push(f.intersectRect(V,K))})}function N(R){e.forEach(R.edges(),function(z){var q=R.edge(z);if(e.has(q,"x"))switch((q.labelpos==="l"||q.labelpos==="r")&&(q.width-=q.labeloffset),q.labelpos){case"l":q.x-=q.width/2+q.labeloffset;break;case"r":q.x+=q.width/2+q.labeloffset;break}})}function H(R){e.forEach(R.edges(),function(z){var q=R.edge(z);q.reversed&&q.points.reverse()})}function D(R){e.forEach(R.nodes(),function(z){if(R.children(z).length){var q=R.node(z),j=R.node(q.borderTop),V=R.node(q.borderBottom),U=R.node(e.last(q.borderLeft)),K=R.node(e.last(q.borderRight));q.width=Math.abs(K.x-U.x),q.height=Math.abs(V.y-j.y),q.x=U.x+q.width/2,q.y=j.y+q.height/2}}),e.forEach(R.nodes(),function(z){R.node(z).dummy==="border"&&R.removeNode(z)})}function W(R){e.forEach(R.edges(),function(z){if(z.v===z.w){var q=R.node(z.v);q.selfEdges||(q.selfEdges=[]),q.selfEdges.push({e:z,label:R.edge(z)}),R.removeEdge(z)}})}function F(R){var z=f.buildLayerMatrix(R);e.forEach(z,function(q){var j=0;e.forEach(q,function(V,U){var K=R.node(V);K.order=U+j,e.forEach(K.selfEdges,function(J){f.addDummyNode(R,"selfedge",{width:J.label.width,height:J.label.height,rank:K.rank,order:U+ ++j,e:J.e,label:J.label},"_se")}),delete K.selfEdges})})}function X(R){e.forEach(R.nodes(),function(z){var q=R.node(z);if(q.dummy==="selfedge"){var j=R.node(q.e.v),V=j.x+j.width/2,U=j.y,K=q.x-V,J=j.height/2;R.setEdge(q.e,q.label),R.removeNode(z),q.label.points=[{x:V+2*K/3,y:U-J},{x:V+5*K/6,y:U-J},{x:V+K,y:U},{x:V+5*K/6,y:U+J},{x:V+2*K/3,y:U+J}],q.label.x=q.x,q.label.y=q.y}})}function G(R,z){return e.mapValues(e.pick(R,z),Number)}function L(R){var z={};return e.forEach(R,function(q,j){z[j.toLowerCase()]=q}),z}return ym}var vm,JS;function tie(){if(JS)return vm;JS=1;var e=_t(),t=on(),n=Pn().Graph;vm={debugOrdering:r};function r(i){var o=t.buildLayerMatrix(i),s=new n({compound:!0,multigraph:!0}).setGraph({});return e.forEach(i.nodes(),function(a){s.setNode(a,{label:a}),s.setParent(a,"layer"+i.node(a).rank)}),e.forEach(i.edges(),function(a){s.setEdge(a.v,a.w,{},a.name)}),e.forEach(o,function(a,l){var c="layer"+l;s.setNode(c,{rank:"same"}),e.reduce(a,function(u,h){return s.setEdge(u,h,{style:"invis"}),h})}),s}return vm}var bm,eO;function nie(){return eO||(eO=1,bm="0.8.5"),bm}var wm,tO;function rie(){return tO||(tO=1,wm={graphlib:Pn(),layout:eie(),debug:tie(),util:{time:on().time,notime:on().notime},version:nie()}),wm}var nO=rie(),iie=Fee(nO),oie=function(e){return N6(e,"Boolean")};function sie(e,t){if(e){var n;if(zee(e))for(var r=0,i=e.length;r<i&&(n=t(e[r],r),n!==!1);r++);else if(Dee(e)){for(var o in e)if(e.hasOwnProperty(o)&&(n=t(e[o],o),n===!1))break}}}var aie=Object.prototype.hasOwnProperty,lie=(function(e,t){if(e===null||!jee(e))return{};var n={};return sie(t,function(r){aie.call(e,r)&&(n[r]=e[r])}),n});class cie extends Nee{constructor(){super(...arguments),this.id="dagre",this.isCompoundGraph=null,this.config={graphAttributes:["rankdir","align","nodesep","edgesep","ranksep","marginx","marginy","acyclicer","ranker"],nodeAttributes:["width","height"],edgeAttributes:["minlen","weight","width","height","labelpos","labeloffset"]}}getDefaultOptions(){return{directed:!0,multigraph:!0,rankdir:"TB",align:void 0,nodesep:50,edgesep:10,ranksep:50,marginx:0,marginy:0,acyclicer:void 0,ranker:"network-simplex",nodeSize:[0,0],edgeMinLen:1,edgeWeight:1,edgeLabelSize:[0,0],edgeLabelPos:"r",edgeLabelOffset:10}}layout(){return Zo(this,void 0,void 0,function*(){const t=new nO.graphlib.Graph({directed:!!this.options.directed,multigraph:!!this.options.multigraph,compound:this.isCompound()});t.setGraph(lie(this.options,this.config.graphAttributes)),t.setDefaultEdgeLabel(()=>({}));const n=O6(this.options.nodeSize,0);this.model.forEachNode(d=>{const p=d._original,[g,m]=C6(n(p)),v={width:g,height:m};if(t.setNode(String(d.id),v),this.isCompound()){if(hn(d.parentId))return;t.setParent(String(d.id),String(d.parentId))}});const{edgeLabelSize:r,edgeLabelOffset:i,edgeLabelPos:o,edgeMinLen:s,edgeWeight:a}=this.options,l=O6(r,0,"edge"),c=zf(i,10,"edge"),u=typeof o=="string"?()=>o:Nf(o,["edge"]),h=zf(s,1,"edge"),f=zf(a,1,"edge");this.model.forEachEdge(d=>{const p=d._original,[g,m]=C6(l(p)),v={width:g,height:m,labelpos:u(p),labeloffset:c(p),minlen:h(p),weight:f(p)};t.setEdge(String(d.source),String(d.target),v,String(d.id))}),iie.layout(t),this.model.forEachNode(d=>{const p=t.node(String(d.id));p&&(d.x=p.x,d.y=p.y,d.size=[p.width,p.height])}),this.model.forEachEdge(d=>{const p=t.edge(String(d.source),String(d.target),String(d.id));if(!p)return;const{width:g,height:m,weight:v,minlen:b,labelpos:w,labeloffset:x,points:_}=p;d.labelSize=[g,m],d.weight=v,d.minLen=b,d.labelPos=w,d.labelOffset=x,d.points=_.map(mee)})})}isCompound(){return this.isCompoundGraph!==null?this.isCompoundGraph:oie(this.options.compound)?this.isCompoundGraph=this.options.compound:(this.isCompoundGraph=this.model.nodes().some(t=>!hn(t.parentId)),this.isCompoundGraph)}}var uie=Object.defineProperty,hie=Object.defineProperties,fie=Object.getOwnPropertyDescriptors,rO=Object.getOwnPropertySymbols,die=Object.prototype.hasOwnProperty,pie=Object.prototype.propertyIsEnumerable,iO=(e,t,n)=>t in e?uie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oO=(e,t)=>{for(var n in t||(t={}))die.call(t,n)&&iO(e,n,t[n]);if(rO)for(var n of rO(t))pie.call(t,n)&&iO(e,n,t[n]);return e},sO=(e,t)=>hie(e,fie(t));const gie=50,mie=70,yie=10,vie=2,bie=30,wie=(e,t)=>{var n,r;const i=new Map;e.forEach(a=>i.set(a,[]));for(const a of t){if(a.source===a.target)return!0;(n=i.get(a.source))==null||n.push({target:a.target,edgeId:a.id}),(r=i.get(a.target))==null||r.push({target:a.source,edgeId:a.id})}const o=new Set,s=(a,l)=>{o.add(a);const c=i.get(a)||[];for(const{target:u,edgeId:h}of c)if(h!==l&&(o.has(u)||s(u,h)))return!0;return!1};for(const a of e)if(!o.has(a)&&s(a,null))return!0;return!1},aO=e=>{var t,n;const{Title:r,Item:i,data:o,rankdir:s="TB",nodesep:a=gie,ranksep:l=mie,edgesep:c=yie,edgeWidth:u=vie,showConnections:h=!0,edgeColorMode:f="gradient",edgeStyle:d="solid",edgeDashPattern:p="5,5",edgeCornerRadius:g=12,edgeRouting:m="orth",showArrow:v=!0,arrowType:b="triangle",padding:w=bie,edgeAnimation:x="none",edgeAnimationSpeed:_=1,options:C}=e,{title:P,desc:S,items:$=[],relations:O=[]}=o,M=r?y(r,{title:P,desc:S}):null;if(!i||$.length===0)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[M,y(Y,{children:y(ne,{indexes:[0],x:0,y:0})})]});const A=new Map,E=new Map,I=new Map,T=new Map,N=new Set,H=new Map;let D=0;const W=$.map((Q,te)=>{var ce,re;const ee=Q,oe=String((ce=ee.id)!=null?ce:te),se=[te];let ue;const pe=String((re=ee.group)!=null?re:"");if(pe){let he=H.get(pe);he==null&&(he=D,H.set(pe,he),D+=1),ue=Fe(C,[he])}else ue=Fe(C,se);const fe=ue?Et({colorPrimary:ue},C):void 0;ue&&I.set(oe,ue);const ge=ae(y(i,{indexes:se,data:o,datum:ee,positionH:"center",positionV:"middle",themeColors:fe}));return E.set(oe,ge),A.set(oe,{id:oe,indexes:se,datum:ee,themeColors:fe}),T.set(te,oe),N.add(oe),{id:oe,parentId:ee.parentId}}),F=Q=>{if(Q==null)return null;const te=String(Q);if(N.has(te))return te;const ce=Number(Q);if(!Number.isNaN(ce)){const re=T.get(ce);if(re)return re}return null},X=O.map((Q,te)=>{const ce=F(Q.from),re=F(Q.to);return!ce||!re?null:{id:Q.id?String(Q.id):`edge-${te}`,source:ce,target:re,relation:Q}}).filter(Boolean),L=wie(Array.from(N),X)?"dagre":m,R=new cie({rankdir:s,nodesep:a,ranksep:l,edgesep:c,controlPoints:!0,nodeSize:Q=>{var te;const ce=String((te=Q.id)!=null?te:""),re=E.get(ce);return re?[re.width,re.height]:[0,0]}});R.execute({nodes:W,edges:X});const z=[];if(R.forEachNode(Q=>{var te,ce,re,ee;const oe=String(Q.id),se=A.get(oe);if(!se)return;const ue=E.get(oe),pe=(te=ue==null?void 0:ue.width)!=null?te:0,fe=(ce=ue==null?void 0:ue.height)!=null?ce:0,ge=((re=Q.x)!=null?re:0)-pe/2,he=((ee=Q.y)!=null?ee:0)-fe/2;z.push(sO(oO({},se),{x:ge,y:he,width:pe,height:fe,centerX:ge+pe/2,centerY:he+fe/2}))}),z.length===0)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[M,y(Y,{children:y(ne,{indexes:[0],x:0,y:0})})]});const q=Math.min(...z.map(Q=>Q.x)),j=Math.min(...z.map(Q=>Q.y)),V=w-q,U=w-j,K=new Map,J=[];z.forEach(Q=>{const te=Q.x+V,ce=Q.y+U,re=s==="LR"?"normal":s==="RL"?"flipped":"center",ee=s==="TB"?"normal":s==="BT"?"flipped":"middle";J.push(y(i,{indexes:Q.indexes,datum:Q.datum,data:o,x:te,y:ce,positionH:re,positionV:ee,themeColors:Q.themeColors})),K.set(Q.id,sO(oO({},Q),{x:te,y:ce,centerX:te+Q.width/2,centerY:ce+Q.height/2}))});const Z=[],ie=[];if(h){const Q=Pt(C),te=Et(C.themeConfig,C),ce=(t=te==null?void 0:te.colorBg)!=null?t:"#ffffff",re=(n=te==null?void 0:te.colorText)!=null?n:Q,ee=Math.max(10,u*4),oe=s==="TB"||s==="BT",se=x==="ant-line",ue=se?p:"",fe=se?ue:!se&&d==="dashed"?p:"",ge=se?ue.split(",").reduce((ye,we)=>ye+parseFloat(we.trim()||"0"),0):0,he=se&&ge>0?`${ge/(_*10)}s`:"1s",xe=g,$e=(ye,we,Ae)=>ye.map(([Ee,le],me)=>`${me===0?"M":"L"} ${Ee+we} ${le+Ae}`).join(" "),Me=(ye,we,Ae,Ee)=>{if(ye.length<2)return"";const le=(Oe,Be,Qe)=>Math.min(Qe,Math.max(Be,Oe)),me=([Oe,Be])=>({x:Oe+Ae,y:Be+Ee}),Se=[],Ye=me(ye[0]);if(Se.push(`M ${Ye.x} ${Ye.y}`),ye.length===2){const Oe=me(ye[1]);return Se.push(`L ${Oe.x} ${Oe.y}`),Se.join(" ")}for(let Oe=1;Oe<ye.length-1;Oe+=1){const Be=ye[Oe-1],Qe=ye[Oe],Je=ye[Oe+1],Xe=Qe[0]-Be[0],dt=Qe[1]-Be[1],et=Je[0]-Qe[0],Wt=Je[1]-Qe[1],Gt=Math.hypot(Xe,dt),Ue=Math.hypot(et,Wt);if(Gt===0||Ue===0){const li=me(Qe);Se.push(`L ${li.x} ${li.y}`);continue}const Ot=le(we,0,Math.min(Gt,Ue)/2);if(Ot===0){const li=me(Qe);Se.push(`L ${li.x} ${li.y}`);continue}const zt=Xe/Gt,Qt=dt/Gt,Vn=et/Ue,si=Wt/Ue,ai=me([Qe[0]-zt*Ot,Qe[1]-Qt*Ot]),Gn=me([Qe[0]+Vn*Ot,Qe[1]+si*Ot]);Se.push(`L ${ai.x} ${ai.y}`);const Rc=me(Qe);Se.push(`Q ${Rc.x} ${Rc.y} ${Gn.x} ${Gn.y}`)}const rt=me(ye[ye.length-1]);return Se.push(`L ${rt.x} ${rt.y}`),Se.join(" ")},Ce=(ye,we,Ae,Ee,le)=>{const me=Math.cos(Ae),Se=Math.sin(Ae),Ye=-Se,rt=me,Oe=ee,Be=ee*.55;if(Ee==="arrow"){const Je=ye-me*Oe+Ye*Be,Xe=we-Se*Oe+rt*Be,dt=ye-me*Oe-Ye*Be,et=we-Se*Oe-rt*Be;return[y(Pe,{d:`M ${Je} ${Xe} L ${ye} ${we} L ${dt} ${et}`,stroke:le,strokeWidth:Math.max(1.5,u),strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]}if(Ee==="diamond"){const Je=Oe*1.25,Xe=Be*.75,dt=ye-me*Je*.5,et=we-Se*Je*.5,Wt=[{x:ye,y:we},{x:dt+Ye*Xe,y:et+rt*Xe},{x:ye-me*Je,y:we-Se*Je},{x:dt-Ye*Xe,y:et-rt*Xe}];return[y(Yt,{points:Wt,fill:le,stroke:le,strokeWidth:Math.max(1,u*.8)})]}const Qe=[{x:ye,y:we},{x:ye-me*Oe+Ye*Be,y:we-Se*Oe+rt*Be},{x:ye-me*Oe-Ye*Be,y:we-Se*Oe-rt*Be}];return[y(Yt,{points:Qe,fill:le,stroke:le,strokeWidth:Math.max(1,u*.8)})]},Te=ye=>{if(ye.length===0)return null;if(ye.length===1)return ye[0];let we=0;const Ae=[];for(let le=0;le<ye.length-1;le+=1){const me=ye[le],Se=ye[le+1],Ye=Math.hypot(Se[0]-me[0],Se[1]-me[1]);Ae.push({length:Ye,start:me,end:Se}),we+=Ye}if(we===0)return ye[0];let Ee=we/2;for(let le=0;le<Ae.length;le+=1){const me=Ae[le];if(Ee<=me.length||le===Ae.length-1){const Se=me.length===0?0:Math.max(0,Math.min(1,Ee/me.length));return[me.start[0]+(me.end[0]-me.start[0])*Se,me.start[1]+(me.end[1]-me.start[1])*Se]}Ee-=me.length}return ye[Math.floor(ye.length/2)]},Ne=(ye,we)=>{const Ae=K.get(ye),Ee=K.get(we);return!Ae||!Ee?null:s==="TB"?{start:[Ae.centerX,Ae.y+Ae.height],end:[Ee.centerX,Ee.y]}:s==="BT"?{start:[Ae.centerX,Ae.y],end:[Ee.centerX,Ee.y+Ee.height]}:s==="LR"?{start:[Ae.x+Ae.width,Ae.centerY],end:[Ee.x,Ee.centerY]}:{start:[Ae.x,Ae.centerY],end:[Ee.x+Ee.width,Ee.centerY]}},ze=(ye,we)=>{const Ae=Ne(ye,we);if(!Ae)return null;const{start:Ee,end:le}=Ae;if(oe){const Se=Ee[1]+(le[1]-Ee[1])/2;return{start:Ee,end:le,points:[Ee,[Ee[0],Se],[le[0],Se],le]}}const me=Ee[0]+(le[0]-Ee[0])/2;return{start:Ee,end:le,points:[Ee,[me,Ee[1]],[me,le[1]],le]}};R.forEachEdge(ye=>{var we,Ae,Ee,le,me,Se,Ye,rt,Oe;const Be=xt=>Array.isArray(xt)?xt.map(pt=>pt&&Array.isArray(pt)&&pt.length>=2?[Number(pt[0]),Number(pt[1])]:null).filter(pt=>!!pt&&Number.isFinite(pt[0])&&Number.isFinite(pt[1])):[],Qe=()=>{const xt=K.get(String(ye.source)),pt=K.get(String(ye.target));return!xt||!pt?[]:[[xt.centerX-V,xt.centerY-U],[pt.centerX-V,pt.centerY-U]]},Je=L==="orth",Xe=Je?ze(String(ye.source),String(ye.target)):null,dt=Je?[]:Be(ye.points),et=Je?(we=Xe==null?void 0:Xe.points)!=null?we:[]:dt.length?dt:Qe();if(!et.length)return;const Wt=Je?0:V,Gt=Je?0:U,Ue=Je&&(Ae=Xe==null?void 0:Xe.start)!=null?Ae:et[0],Ot=Je&&(Ee=Xe==null?void 0:Xe.end)!=null?Ee:et[et.length-1],zt=(le=ye._original)==null?void 0:le.relation,Qt=(me=I.get(String(ye.source)))!=null?me:Q,Vn=(Se=I.get(String(ye.target)))!=null?Se:Q,si=`edge-gradient-${String(Qt)}-${String(Vn)}`.replace(/[^a-zA-Z0-9_-]/g,""),ai=f==="gradient"?`url(#${si})`:Q;let Gn="";if(xe>0?Gn=Me(et,xe,Wt,Gt):Gn=$e(et,Wt,Gt),!Gn)return;const Rc=y(Pe,{d:Gn,stroke:ai,strokeWidth:u,strokeDasharray:fe,fill:"none","data-element-type":"shape",children:se&&y("animate",{attributeName:"stroke-dashoffset",from:String(ge),to:"0",dur:he,repeatCount:"indefinite"})});if(ie.push(Rc),f==="gradient"){const xt=Ue,pt=Ot;Z.push(k("linearGradient",{id:si,gradientUnits:"userSpaceOnUse",x1:xt[0]+Wt,y1:xt[1]+Gt,x2:pt[0]+Wt,y2:pt[1]+Gt,children:[y("stop",{offset:"0%",stopColor:Qt}),y("stop",{offset:"100%",stopColor:Vn})]}))}if(zt!=null&&zt.label){let xt=null;const pt=Te(et);if(pt&&(xt=[pt[0]+Wt,pt[1]+Gt]),xt){const Zi=String(zt.label),Pr=ae(y(De,{fontSize:14,fontWeight:"normal",children:Zi})),ys=xt[0]-Pr.width/2,hce=xt[1]-Pr.height/2;ie.push(y(De,{x:ys,y:hce,width:Pr.width,height:Pr.height,fontSize:14,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:re,backgroundColor:ce,children:Zi}))}}const li=(Ye=zt==null?void 0:zt.showArrow)!=null?Ye:v,Sy=(rt=zt==null?void 0:zt.direction)!=null?rt:"forward",$M=(Oe=zt==null?void 0:zt.arrowType)!=null?Oe:b,EM=et.length-1;if(li&&et.length>1){if(Sy==="forward"||Sy==="both"){const xt=et[EM],pt=et[EM-1],Zi=Math.atan2(xt[1]-pt[1],xt[0]-pt[0]),Pr=f==="gradient"?Vn:Q,ys=Ce(xt[0]+Wt,xt[1]+Gt,Zi,$M,Pr);ie.push(...ys)}if(Sy==="both"){const xt=et[0],pt=et[1],Zi=Math.atan2(xt[1]-pt[1],xt[0]-pt[0]),Pr=f==="gradient"?Qt:Q,ys=Ce(xt[0]+Wt,xt[1]+Gt,Zi,$M,Pr);ie.push(...ys)}}})}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[M,k(Y,{children:[y(Ke,{children:Z}),y(Y,{width:0,height:0,children:ie}),y(qe,{children:J}),y(je,{})]})]})};We("relation-dagre-flow",{component:aO,composites:["title","item"]});const lO=e=>{const{Title:t,Item:n,data:r,spacing:i=120,showConnections:o=!0,options:s}=e,{title:a,desc:l,items:c=[]}=r,u=t?y(t,{title:a,desc:l}):null;if(c.length===0)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,y(Y,{children:y(qe,{})})]});const h=ae(y(n,{indexes:[0],data:r,datum:c[0],positionH:"center"}));function f(){const P=c.map((O,M)=>({id:M,data:O,isCenter:M===0,_originalIndex:[M]})),S=c.slice(1).map((O,M)=>({source:0,target:M+1})),$=RU(P).force("link",SU(S).id(O=>O.id).distance(i)).force("charge",kU().strength(-50)).force("center",iU(0,0)).force("collision",CU().radius(Math.max(h.width,h.height)/2+10));for(let O=0;O<300;++O)$.tick();return{nodes:P,links:S}}const{nodes:d,links:p}=f(),g=Math.min(...d.map(P=>{var S;return(S=P.x)!=null?S:0})),m=Math.min(...d.map(P=>{var S;return(S=P.y)!=null?S:0})),v=Math.max(0,-g+h.width/2),b=Math.max(0,-m+h.height/2),w=(P,S)=>({positionH:P<-50?"flipped":P>50?"normal":"center",positionV:S<-50?"flipped":S>50?"normal":"middle"}),x=d.map(P=>{if(P.x==null||P.y==null)return null;const S=P.x+v-h.width/2,$=P.y+b-h.height/2,{positionH:O,positionV:M}=w(P.x,P.y);return y(n,{indexes:P._originalIndex,datum:P.data,data:r,x:S,y:$,positionH:O,positionV:M},P.id)}).filter(Boolean),_=new Map(d.map(P=>[P.id,P])),C=o?p.map(P=>{const S=typeof P.source=="object"?P.source:_.get(P.source),$=typeof P.target=="object"?P.target:_.get(P.target);if(!S||!$||S.x==null||S.y==null||$.x==null||$.y==null)return null;const O=`M ${S.x+v} ${S.y+b} L ${$.x+v} ${$.y+b}`;return y(Pe,{d:O,stroke:Pt(s),strokeWidth:2,strokeOpacity:.6})}).filter(Boolean):[];return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,k(Y,{children:[y(Y,{children:C}),y(qe,{children:x})]})]})};We("relation-network",{component:lO,composites:["title","item"]});var _ie=Object.defineProperty,xie=Object.defineProperties,Cie=Object.getOwnPropertyDescriptors,Xl=Object.getOwnPropertySymbols,cO=Object.prototype.hasOwnProperty,uO=Object.prototype.propertyIsEnumerable,hO=(e,t,n)=>t in e?_ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pie=(e,t)=>{for(var n in t||(t={}))cO.call(t,n)&&hO(e,n,t[n]);if(Xl)for(var n of Xl(t))uO.call(t,n)&&hO(e,n,t[n]);return e},Sie=(e,t)=>xie(e,Cie(t)),Oie=(e,t)=>{var n={};for(var r in e)cO.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Xl)for(var r of Xl(e))t.indexOf(r)<0&&uO.call(e,r)&&(n[r]=e[r]);return n};const _m=e=>{var t=e,{width:n=25,height:r=25,colorPrimary:i="#6699FF",rotation:o=0}=t,s=Oie(t,["width","height","colorPrimary","rotation"]);const a=`gradient-arrow-stroke-${i.replace("#","")}`,l=`gradient-arrow-fill-${i.replace("#","")}`,c=Math.round(n*.515),u=Math.round(r*.275),h=Math.round(r*.875),f=[{x:0,y:u},{x:c,y:u},{x:c,y:r*.075},{x:n,y:r*.575},{x:c,y:r*1.075},{x:c,y:h},{x:0,y:h}],d=n/2,p=r/2,g=`rotate(${o} ${d} ${p})`;return k(tt,{children:[y(Yt,Sie(Pie({},s),{width:n,height:r,points:f,fill:`url(#${l})`,stroke:`url(#${a})`,transform:g,"data-element-type":"shape"})),k(Ke,{children:[k("linearGradient",{id:l,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[y("stop",{offset:"0%","stop-color":i,"stop-opacity":"0.36"}),y("stop",{offset:"100%","stop-color":i,"stop-opacity":"0"})]}),k("linearGradient",{id:a,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[y("stop",{offset:"0%","stop-color":i}),y("stop",{offset:"58%","stop-color":i,"stop-opacity":"0"})]})]})]})},$ie=({text:e,x:t=0,y:n=0,fontSize:r=56,fontWeight:i="bold",fill:o="#FFFFFF",textAnchor:s="middle",dominantBaseline:a="middle",shadowOffsetX:l=2,shadowOffsetY:c=4,midShadowOffsetX:u=1,midShadowOffsetY:h=2,deepShadowOpacity:f=.3,midShadowOpacity:d=.5})=>k(Y,{children:[y("text",{x:t,y:n,fontSize:r,fontWeight:i,fill:o,fillOpacity:f,textAnchor:s,dominantBaseline:a,transform:`translate(${l}, ${c})`,children:e}),y("text",{x:t,y:n,fontSize:r,fontWeight:i,fill:o,fillOpacity:d,textAnchor:s,dominantBaseline:a,transform:`translate(${u}, ${h})`,children:e}),y("text",{x:t,y:n,fontSize:r,fontWeight:i,fill:o,textAnchor:s,dominantBaseline:a,children:e})]});var Eie=Object.defineProperty,Mie=Object.defineProperties,Aie=Object.getOwnPropertyDescriptors,Ul=Object.getOwnPropertySymbols,fO=Object.prototype.hasOwnProperty,dO=Object.prototype.propertyIsEnumerable,pO=(e,t,n)=>t in e?Eie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Iie=(e,t)=>{for(var n in t||(t={}))fO.call(t,n)&&pO(e,n,t[n]);if(Ul)for(var n of Ul(t))dO.call(t,n)&&pO(e,n,t[n]);return e},Tie=(e,t)=>Mie(e,Aie(t)),Rie=(e,t)=>{var n={};for(var r in e)fO.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ul)for(var r of Ul(e))t.indexOf(r)<0&&dO.call(e,r)&&(n[r]=e[r]);return n};const kie=e=>{var t=e,{width:n=25,height:r=25,colorPrimary:i="#6699FF",rotation:o=0,strokeWidth:s=4}=t,a=Rie(t,["width","height","colorPrimary","rotation","strokeWidth"]);const l=[{x:n/2,y:0},{x:n,y:r},{x:0,y:r}],c=n/2,u=r/2,h=`rotate(${o} ${c} ${u})`;return y(Yt,Tie(Iie({},a),{width:n,height:r,points:l,fill:i,stroke:i,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",transform:h}))},Lie=-118,gO=118,mO=240,Nie=180,zie=40,Die="M238.9 69.7a6 6 0 0 1-.1 1v.2l-.2.3v.3l-.1.3a6.2 6.2 0 0 1-.3.6l-.1.3-.2.3-.2.4-.3.5-.1.1a10.9 10.9 0 0 1-.8 1v.1l-.5.5h-.1l-.4.4-.3.3-.3.2-.3.3-.4.2a13 13 0 0 1-.7.5l-.4.3-.5.3-97.5 56.7-.7.4h-.2l-.6.4h-.1l-.8.4h-.2l-.6.4h-.2l-.8.3h-.2l-.5.3-.5.1-.5.1-.5.2h-.5a33.7 33.7 0 0 1-3.2.7h-.2l-1 .2h-1.6l-.7.1h-4.7l-.8-.1h-.2a38.2 38.2 0 0 1-2-.4h-.4l-.7-.2h-.4l-.7-.2-.4-.1a27.3 27.3 0 0 1-2.2-.7h-.2a44.2 44.2 0 0 1-.9-.3l-.5-.3-.4-.1-.5-.2-.3-.2-.5-.2-.3-.2-.8-.4L6.5 78C2.2 75.6 0 72.4 0 69v41.7c0 3.2 2.1 6.5 6.4 9l98.1 56.6a23.2 23.2 0 0 0 1 .6l.6.3.3.1.5.2.4.2.3.1h.2l.2.2a21.4 21.4 0 0 0 1.9.6l.3.1h.2l.7.2a77.6 77.6 0 0 1 1.1.3h.3l.7.2h.4a42.5 42.5 0 0 0 1 .2l1 .2h1.1l.4.1h2.1l.7.1h1.5a22 22 0 0 0 1.8-.2h.4l1.1-.1h.2l1.2-.2h.1l.3-.1.6-.1a12.5 12.5 0 0 0 1-.3h.5l.5-.2a29 29 0 0 0 1-.3h.2l.3-.2h.2a27 27 0 0 0 1.6-.7h.2l.8-.4a19.4 19.4 0 0 0 1.6-.9l97.5-56.7.3-.1.2-.2.4-.2.4-.3.3-.2.3-.3.4-.2.3-.3.3-.3h.1l.3-.3.5-.6h.1l.3-.5h.1v-.1l.4-.4v-.1l.4-.5v-.1l.1-.2.1-.2.2-.3.1-.3.1-.3.1-.1a6.9 6.9 0 0 0 .2-.8l.1-.3v-.4l.1-.3v-1l.2-41.4v.4Z",qie="M232.5 60.4c8.5 4.9 8.5 12.8.1 17.7l-97.5 56.7c-8.4 4.9-22 4.9-30.5 0L6.5 78C-2 73-2 65.3 6.4 60.4l97.5-56.7c8.4-5 22-5 30.5 0l98.1 56.7Z",Hie="M119.1 0A31 31 0 0 0 104 3.7L6.4 60.4C-2 65.3-2 73.2 6.4 78l98.2 56.7c4.2 2.4 9.8 3.7 15.3 3.7a31 31 0 0 0 15.2-3.7L232.6 78c8.4-5 8.4-12.8 0-17.7L134.3 3.7A31.2 31.2 0 0 0 119.1 0Zm0 2.5c5.4 0 10.3 1.2 14 3.3l98.2 56.7c3.3 2 5.1 4.3 5.1 6.8 0 2.4-1.8 4.7-5 6.6l-97.5 56.7a28.3 28.3 0 0 1-14 3.4c-5.3 0-10.3-1.2-14-3.4L7.7 76c-3.3-1.9-5-4.3-5-6.7 0-2.4 1.7-4.8 5-6.7L105 5.8a29 29 0 0 1 14-3.3Z",yO=k("filter",{id:"sequence-ascending-stairs-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[y("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),y("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),y("feOffset",{dx:"0",dy:"4"}),y("feGaussianBlur",{stdDeviation:"6"}),y("feComposite",{in2:"hardAlpha",operator:"out"}),y("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),y("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),y("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]}),vO=e=>{const{Title:t,Item:n,data:r,options:i,cubeWidth:o=mO}=e,{title:s,desc:a,items:l=[]}=r,c=t?y(t,{title:s,desc:a}):null;if(l.length===0)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[y(Ke,{children:yO}),c,y(Y,{children:y(je,{children:y(ne,{indexes:[0],x:0,y:0})})})]});const u=ae(y(ne,{indexes:[0]})),h=[],f=[],d=[],p=o/mO,g=Nie*p;return l.forEach((m,v)=>{const b=[v],w=Fe(i,b),x=v*(o+Lie),_=(l.length-1-v)*gO,C=`cube-gradient-bottom-${v}`,P=`cube-gradient-top-${v}`,S=`cube-gradient-stroke-${v}`;d.push(k(Y,{x,y:_,id:`cube-${v}`,width:o,height:g,filter:"url(#sequence-ascending-stairs-3d-shadow-filter)",children:[k(Ke,{children:[k("linearGradient",{id:C,x1:"0",y1:"124.5",x2:"238.9",y2:"124.5",gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0",stopColor:w,stopOpacity:"0.8"}),y("stop",{offset:"1",stopColor:w,stopOpacity:"0.4"})]}),k("linearGradient",{id:P,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0",stopColor:w,stopOpacity:"0.9"}),y("stop",{offset:"1",stopColor:w,stopOpacity:"0.5"})]}),k("linearGradient",{id:S,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0",stopColor:w}),y("stop",{offset:"1",stopColor:w,stopOpacity:"0.7"})]})]}),k(Ct,{transform:`scale(${p})`,children:[y(Pe,{d:Die,fill:`url(#${C})`}),y(Pe,{d:qie,fill:`url(#${P})`}),y(Pe,{d:Hie,fill:`url(#${S})`})]}),y($ie,{text:v+1,x:115,y:65,fontSize:56})]}));const $=x+o+zie,O=_+g/2;if(f.push(y(n,{indexes:b,datum:m,data:r,x:$,y:O,positionH:"normal"})),h.push(y(nt,{indexes:b,x:x+o-u.width/2,y:_-u.height/2})),v===0&&h.push(y(ne,{indexes:[0],x:x-30-u.width/2,y:_+g/2-u.height/2})),v<l.length-1){const M=(l.length-1-(v+1))*gO,A=x+o-u.width/2,E=(_+g/2+M+g/2)/2-u.height/2;h.push(y(ne,{indexes:[v+1],x:A,y:E}))}else h.push(y(ne,{indexes:[l.length],x:x+o+30-u.width/2,y:_+g/2-u.height/2}))}),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[y(Ke,{children:yO}),c,k(Y,{x:0,y:0,children:[y(Y,{children:d}),y(qe,{children:f}),y(je,{children:h})]})]})};We("sequence-ascending-stairs-3d",{component:vO,composites:["title","item"]});const bO=e=>{const{Title:t,Item:n,data:r,hGap:i=0,vGap:o=0}=e,{title:s,desc:a,items:l=[]}=r,c=t?y(t,{title:s,desc:a}):null,u=ae(y(n,{indexes:[0],data:r,datum:l[0]})),h=[],f=[],d=l.length,p=u.width+i,g=u.height/2+o,m=u.width/2,b=0+(d-1)*g;return l.forEach((w,x)=>{const _=m+x*p,C=b-x*g,P=[x];h.push(y(n,{indexes:P,datum:w,data:r,x:_,y:C})),f.push(y(nt,{indexes:P,x:_+u.width-30,y:C+u.height/2+10})),f.push(y(ne,{indexes:P,x:_+u.width+i/2,y:C-30}))}),k(ve,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,k(Y,{children:[y(qe,{children:h}),y(je,{children:f})]})]})};We("sequence-ascending-steps",{component:bO,composites:["title","item"]});const jie=20,wO=5,_O=e=>{const{Title:t,Item:n,data:r,options:i,radius:o=150,arrowSize:s=4,strokeWidth:a=10}=e,{title:l,desc:c,items:u=[]}=r,h=ae(y(ne,{indexes:[0]})),f=Pt(i);if(!n)return k(ve,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[t?y(t,{title:l,desc:c}):null,y(Y,{children:y(je,{children:y(ne,{indexes:[0],x:0,y:0})})})]});const d=u.length;if(d===0)return k(ve,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[t?y(t,{title:l,desc:c}):null,y(Y,{children:y(je,{children:y(ne,{indexes:[0],x:0,y:0})})})]});const p=ae(y(n,{indexes:[0],data:r,datum:u[0]})),g=0,m=0,v=2*Math.PI/d,b=[];let w=1/0,x=1/0,_=-1/0,C=-1/0;for(let N=0;N<d;N++){const H=N*v-Math.PI/2,D=g+o*Math.cos(H),W=m+o*Math.sin(H);b.push({x:D,y:W}),w=Math.min(w,D),x=Math.min(x,W),_=Math.max(_,D),C=Math.max(C,W)}const P=[];for(let N=0;N<d;N++){const H=b[N],D=b[(N+1)%d],W=Math.sqrt(Math.pow(D.x-H.x,2)+Math.pow(D.y-H.y,2)),F=Math.min(W*.5,100),X=(H.x+D.x)/2,G=(H.y+D.y)/2;w=Math.min(w,X-F/2),x=Math.min(x,G-F/2),_=Math.max(_,X+F/2),C=Math.max(C,G+F/2);const L=Math.atan2(G-m,X-g),R=L<0?L+2*Math.PI:L;let z,q;const j=R*180/Math.PI,V=F/2+jie,U=X+Math.cos(L)*V,K=G+Math.sin(L)*V;j>=337.5||j<22.5?(z=U,q=K-p.height/2):j>=22.5&&j<67.5?(z=U,q=K):j>=67.5&&j<112.5?(z=U-p.width/2,q=K):j>=112.5&&j<157.5?(z=U-p.width,q=K):j>=157.5&&j<202.5?(z=U-p.width,q=K-p.height/2):j>=202.5&&j<247.5?(z=U-p.width,q=K-p.height):j>=247.5&&j<292.5?(z=U-p.width/2,q=K-p.height):(z=U,q=K-p.height),P.push({lineLength:W,circleBigW:F,midX:X,midY:G,itemX:z,itemY:q}),w=Math.min(w,z),x=Math.min(x,q),_=Math.max(_,z+p.width+h.width+5),C=Math.max(C,q+p.height)}const S=Math.max(0,-w),$=Math.max(0,-x),O=t?y(t,{title:l,desc:c}):null,M=[],A=[],E=[],I=[],T=b.map(N=>({x:N.x+S,y:N.y+$}));for(let N=0;N<d;N++){const H=T[N],D=T[(N+1)%d],W=(N+1)%d,F=[N],{lineLength:X,circleBigW:G,midX:L,midY:R}=P[N],z=Math.max(G-20,20),q=Math.max(z*.4,16),j=Fe(i,F)||f,V=D.x-H.x,U=D.y-H.y,K=X,J=V/K,Z=U/K,ie=wO*2+s,Q=Math.min(wO,(K-ie)/2),te=Math.max(0,H.x+J*Q),ce=Math.max(0,H.y+Z*Q),re=Math.max(0,D.x-J*Q),ee=Math.max(0,D.y-Z*Q),se=qK().x(Ce=>Math.max(0,Ce.x)).y(Ce=>Math.max(0,Ce.y)).curve(S4)([{x:te,y:ce},{x:re,y:ee}])||"",pe=`fork-arrow-${j.replace(/[^a-zA-Z0-9]/g,"")}-${N}`,fe=`
118
108
  M ${-s*.6} ${-s*.4}
119
109
  L 0 0
120
110
  L ${-s*.6} ${s*.4}
121
- `;A.push(y("marker",{id:pe,viewBox:`${-s} ${-s*.6} ${s*1.2} ${s*1.2}`,refX:-s*.08,refY:0,markerWidth:s,markerHeight:s,orient:"auto",markerUnits:"strokeWidth",children:y("path",{d:fe,fill:"none",stroke:j,strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"})})),E.push(y(Pe,{d:se,stroke:j,strokeWidth:a,fill:"none",markerEnd:`url(#${pe})`,strokeLinecap:"round","data-element-type":"shape"}));const ge=L+O,he=R+$,xe=Et({colorPrimary:j},i);E.push(y(Ze,{x:Math.max(0,ge-G/2),y:Math.max(0,he-G/2),width:G,height:G,fill:xe.colorPrimaryBg,"data-element-type":"shape"})),E.push(y(Ze,{x:Math.max(0,ge-z/2),y:Math.max(0,he-z/2),width:z,height:z,fill:"#ffffff"})),E.push(y(Ft,{x:Math.max(0,ge-q/2),y:Math.max(0,he-q/2),size:q,indexes:F,fill:j}));const $e=Math.max(0,ge-h.width/2),Me=Math.max(0,he-h.height/2);M.push(y(ne,{indexes:[B],x:$e,y:Me}))}for(let N=0;N<d;N++){const H=[N],D=u[N],{itemX:B,itemY:F}=P[N],X=Math.max(0,B+O),G=Math.max(0,F+$);I.push(y(n,{indexes:H,datum:D,data:r,x:X,y:G}));const L=Math.max(0,X+p.width+5),R=Math.max(0,G+p.height/2-h.height/2);M.push(y(nt,{indexes:H,x:L,y:R}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[S,k(Y,{x:0,y:0,children:[y(Ke,{children:A}),y(Y,{children:E}),y(qe,{children:I}),y(je,{children:M})]})]})};We("sequence-circle-arrows",{component:aS,composites:["title","item"]});const tie=100,nie=50,rie=6,iie="40",lS=e=>{const{Title:t,Item:n,data:r,options:i,outerRadius:o=180,innerRadius:s=120,itemDistance:a=310,gapAngle:l=5,iconRadius:c=34,iconBgRadius:u=38,iconSize:h=36}=e,{title:f,desc:d,items:p=[]}=r,g=t?y(t,{title:f,desc:d}):null,m=Math.max(a+tie,o+nie),v=Math.min(a,o),b=ae(y(ne,{indexes:[0]}));if(p.length===0)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,y(Y,{children:y(je,{children:y(ne,{indexes:[0],x:m-20,y:v-20})})})]});const _=[],x=[],w=[],C=[],P=ae(y(n,{indexes:[0],data:r,datum:p[0]})),S=(360-p.length*l)/p.length,M=(F,X,G,L,R,z)=>{const q=R*Math.PI/180,j=z*Math.PI/180,V=F+G*Math.cos(q),U=X+G*Math.sin(q),K=F+L*Math.cos(q),J=X+L*Math.sin(q),Z=F+L*Math.cos(j),ie=X+L*Math.sin(j),Q=F+G*Math.cos(j),te=X+G*Math.sin(j),ce=z-R<=180?"0":"1";return[`M ${V} ${U}`,`L ${K} ${J}`,`A ${L} ${L} 0 ${ce} 1 ${Z} ${ie}`,`L ${Q} ${te}`,`A ${G} ${G} 0 ${ce} 0 ${V} ${U}`,"Z"].join(" ")},I=({centerX:F,outerRadius:X,angleRad:G,btnBounds:L})=>{const R=F+(X+20)*Math.cos(G)-L.width/2,z=v+(X+20)*Math.sin(G)-L.height/2;return{x:R,y:z}},E=rie,A=(s+o)/2,T=E/A*(180/Math.PI);p.forEach((F,X)=>{const G=[X],L=X*(S+l)+270,R=L+S,z=(L+R)/2,q=z*Math.PI/180,j=Fe(i,G),V=j+iie,U=M(m,v,s,o,L,R);w.push(y(Pe,{d:U,fill:V,width:o*2,height:o*2,"data-element-type":"shape"}));const K=M(m,v,s+E,o-E,L+T,R-T);w.push(y(Pe,{d:K,fill:j,width:o*2,height:o*2,"data-element-type":"shape"}));const J=(s+o)/2,Z=m+J*Math.cos(q),ie=v+J*Math.sin(q);C.push(y(Ze,{x:Z-u,y:ie-u,width:u*2,height:u*2,fill:"#ffffff","data-element-type":"shape"})),C.push(y(Ze,{x:Z-c,y:ie-c,width:c*2,height:c*2,fill:j,"data-element-type":"shape"})),F.icon&&C.push(y(Ft,{x:Z-h/2,y:ie-h/2,indexes:G,size:h,fill:"#fff"}));const Q=(z%360+360)%360,te=Q>=270||Q<=90,ce=Q>=75&&Q<=105;let re,ee="normal",oe="normal";ce?(re=Q,oe="normal",ee="center"):te?(Q>=270?re=-60+(Q-270)/90*60:re=Q/90*60,ee="normal"):(re=120+(Q-90)/180*120,ee="flipped");const se=re*Math.PI/180,ue=m+a*Math.cos(se)-P.width/2;let pe=v+a*Math.sin(se)-P.height/2;ce&&(pe=v+o+P.height/2),x.push(y(n,{indexes:G,datum:F,data:r,x:ue,y:pe,positionH:ee,positionV:oe}));const fe=a+40,ge=m+fe*Math.cos(se)-b.width/2,he=v+fe*Math.sin(se)-b.height/2;_.push(y(nt,{indexes:G,x:ge,y:he}));const $e=(L+S+l/2)*Math.PI/180,{x:Me,y:Ce}=I({centerX:m,outerRadius:o,angleRad:$e,btnBounds:b});_.push(y(ne,{indexes:[X+1],x:Me,y:Ce}))});const H=(270-l/2)*Math.PI/180,{x:D,y:B}=I({centerX:m,outerRadius:o,angleRad:H,btnBounds:b});return _.unshift(y(ne,{indexes:[0],x:D,y:B})),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:70,children:[g,k(Y,{children:[y(Y,{children:w}),y(Y,{children:C}),y(qe,{children:x}),y(je,{children:_})]})]})};We("sequence-circular",{component:lS,composites:["title","item"]});const cS=e=>{const{Title:t,Item:n,data:r,gap:i=0,rowGap:o=0,itemsPerRow:s=3,circleStrokeWidth:a=18,options:l}=e,{title:c,desc:u,items:h=[]}=r,f=t?y(t,{title:c,desc:u}):null,d=Ot(l),p=ae(y(ne,{indexes:[0]})),g=ae(y(n,{indexes:[0],data:r,datum:h[0],positionH:"center"})),m=[],v=[],b=[],_=(o+g.height)/2,x=_;if(h.forEach((w,C)=>{const P=Math.floor(C/s),O=C%s,$=P%2===1,M=($?s-1-O:O)*(g.width+i)+x,I=P*(g.height+o),E=[C];if(v.push(y(n,{indexes:E,datum:w,data:r,x:M,y:I,positionH:"center",positionV:C%2===1?"flipped":"normal"})),m.push(y(nt,{indexes:E,x:M+(g.width-p.width)/2,y:I+g.height+10})),C===0&&m.push(y(ne,{indexes:E,x:M+(g.width-p.width)/2,y:I-p.height-10})),C<h.length-1){const A=Math.floor((C+1)/s);if(P===A)m.push(y(ne,{indexes:[C+1],x:M+(g.width-p.width)/2,y:I-p.height-10}));else{const N=I+g.height/2,H=I+g.height+o+g.height/2;let D,B,F;$?(D=M,F=0,B=`M ${D} ${N} A ${_} ${_} 0 0 ${F} ${D} ${H}`):(D=M+g.width,F=1,B=`M ${D} ${N} A ${_} ${_} 0 0 ${F} ${D} ${H}`);const X=H-N,G=Fe(l,E),L=Fe(l,[C+1]),R=`gradient-arc-${C}`;b.push(k(tt,{children:[y(Ke,{children:k("linearGradient",{id:R,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[y("stop",{offset:"0%",stopColor:G||d}),y("stop",{offset:"100%",stopColor:L||d})]})}),y(Pe,{d:B,stroke:`url(#${R})`,strokeWidth:a,fill:"none",width:x,height:X,"data-element-type":"shape"})]}));const z=$?D-_-p.width/2:D+_-p.width/2,q=I+g.height+o/2-p.height/2;m.push(y(ne,{indexes:[C+1],x:z,y:q}))}}}),h.length>0){const w=h.length-1,C=Math.floor(w/s),P=w%s,S=(C%2===1?s-1-P:P)*(g.width+i),M=C*(g.height+o);m.push(y(ne,{indexes:[h.length],x:S+(g.width-p.width)/2,y:M+g.height+p.height+20}))}if(h.length/s>2){const w=(o+g.height)/2,C=Fe(l,[0]);b.push(y(Le,{x:0,y:g.height/2-a/2,width:w,height:a,fill:C||d,"data-element-type":"shape"}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,k(Y,{width:s*g.width+(s-1)*i+_*2,height:Math.ceil(h.length/s)*(g.height+o),children:[y(Y,{children:b}),y(qe,{children:v}),y(je,{children:m})]})]})};We("sequence-color-snake-steps",{component:cS,composites:["title","item"]});const jl=(e,t)=>e===0?0:e===1?t/2:t/2+(e-1)*(t/2*3),Fl=(e,t,n)=>{if(e)return 0;const o=t===0?2:n;return n*2+o},oie=(e,t,n,r,i,o,s,a)=>{const l=Math.max(6,o*.15),c=r+(e-1)*i,u=e*l,h=100,d=c+u+h+50,p=d-h;let g=0,m=0,v=0,b=0;if(e>0){let x=1/0,w=-1/0;for(let A=0;A<e;A++){const T=A%2===0,N=Math.floor(A/2),H=jl(N,n),B=0+Fl(T,N,n)+H;x=Math.min(x,B-n),w=Math.max(w,B+n)}const C=(x+w)/2,P=0;g=0,b=g+t.width+a+s+n,v=b-P+C;const M=g+t.width/2,I=v-M;m=v+I-t.width/2}return{canvasHeight:d,startY:p,leftItemAlignedX:g,rightItemAlignedX:m,cylinderAreaStartX:b}},sie=(e,t,n,r,i,o,s)=>{const a=e%2===0,l=Math.floor(e/2),c=jl(l,t),u=Fl(a,l,t),h=s+u+c,f=o-e*i,d=n+e*r,p=f-d;return{x:h,y:p,height:d,bottomY:f,topY:p}},aie=(e,t,n,r,i,o,s,a,l)=>{const c=e%2===0,u=t.topY+t.height*.05;let h,f;c?(h=i,f=h+n.width+l):(h=o,f=h-l);let d;s==="top"?d=u:s==="bottom"?d=u-n.height:d=u-n.height/2,d+=a;const p=c?t.x-r:t.x+r,g=c?p-l:p+l;return{itemPos:{x:h,y:d},lineStartX:g,lineEndX:f,lineY:u}},lie=(e,t)=>{const n=be(t),r=[];return r.push(k("linearGradient",{id:`cylinderGradient${e}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[y("stop",{offset:"0%",stopColor:n.toRgbString(),stopOpacity:.7}),y("stop",{offset:"40%",stopColor:n.clone().lighten(5).toRgbString(),stopOpacity:.65}),y("stop",{offset:"70%",stopColor:n.clone().lighten(15).toRgbString(),stopOpacity:.6}),y("stop",{offset:"100%",stopColor:n.clone().lighten(20).toRgbString(),stopOpacity:.55})]})),r.push(k("linearGradient",{id:`topGradient${e}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[y("stop",{offset:"0%",stopColor:n.clone().lighten(15).toRgbString(),stopOpacity:1}),y("stop",{offset:"100%",stopColor:"#fafafa",stopOpacity:1})]})),r.push(k("linearGradient",{id:`bottomGradient${e}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[y("stop",{offset:"0%",stopColor:n.clone().darken(8).toRgbString(),stopOpacity:.75}),y("stop",{offset:"50%",stopColor:n.clone().darken(5).toRgbString(),stopOpacity:.7}),y("stop",{offset:"100%",stopColor:n.clone().darken(12).toRgbString(),stopOpacity:.65})]})),r.push(k("linearGradient",{id:`numberGradient${e}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[y("stop",{offset:"0%",stopColor:n.clone().darken(0).toRgbString(),stopOpacity:.9}),y("stop",{offset:"50%",stopColor:n.clone().lighten(5).toRgbString(),stopOpacity:.85}),y("stop",{offset:"100%",stopColor:n.clone().lighten(10).toRgbString(),stopOpacity:.8})]})),r.push(k("linearGradient",{id:`glowGradient${e}`,x1:"0%",y1:"100%",x2:"0%",y2:"0%",children:[y("stop",{offset:"0%",stopColor:"#FFFFFF",stopOpacity:.2}),y("stop",{offset:"90%",stopColor:"#FFFFFF",stopOpacity:0})]})),r},cie=(e,t,n,r)=>{const{x:i,topY:o,bottomY:s}=t,a=[];a.push(y("ellipse",{id:`cylinder-bottom-${e}`,cx:i,cy:s,rx:n,ry:r,fill:`url(#bottomGradient${e})`,opacity:.7})),a.push(y(Pe,{id:`cylinder-body-${e}`,d:`
111
+ `;I.push(y("marker",{id:pe,viewBox:`${-s} ${-s*.6} ${s*1.2} ${s*1.2}`,refX:-s*.08,refY:0,markerWidth:s,markerHeight:s,orient:"auto",markerUnits:"strokeWidth",children:y("path",{d:fe,fill:"none",stroke:j,strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"})})),E.push(y(Pe,{d:se,stroke:j,strokeWidth:a,fill:"none",markerEnd:`url(#${pe})`,strokeLinecap:"round","data-element-type":"shape"}));const ge=L+S,he=R+$,xe=Et({colorPrimary:j},i);E.push(y(Ze,{x:Math.max(0,ge-G/2),y:Math.max(0,he-G/2),width:G,height:G,fill:xe.colorPrimaryBg,"data-element-type":"shape"})),E.push(y(Ze,{x:Math.max(0,ge-z/2),y:Math.max(0,he-z/2),width:z,height:z,fill:"#ffffff"})),E.push(y(Ft,{x:Math.max(0,ge-q/2),y:Math.max(0,he-q/2),size:q,indexes:F,fill:j}));const $e=Math.max(0,ge-h.width/2),Me=Math.max(0,he-h.height/2);M.push(y(ne,{indexes:[W],x:$e,y:Me}))}for(let N=0;N<d;N++){const H=[N],D=u[N],{itemX:W,itemY:F}=P[N],X=Math.max(0,W+S),G=Math.max(0,F+$);A.push(y(n,{indexes:H,datum:D,data:r,x:X,y:G}));const L=Math.max(0,X+p.width+5),R=Math.max(0,G+p.height/2-h.height/2);M.push(y(nt,{indexes:H,x:L,y:R}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[O,k(Y,{x:0,y:0,children:[y(Ke,{children:I}),y(Y,{children:E}),y(qe,{children:A}),y(je,{children:M})]})]})};We("sequence-circle-arrows",{component:_O,composites:["title","item"]});const Fie=100,Bie=50,Wie=6,Vie="40",xO=e=>{const{Title:t,Item:n,data:r,options:i,outerRadius:o=180,innerRadius:s=120,itemDistance:a=310,gapAngle:l=5,iconRadius:c=34,iconBgRadius:u=38,iconSize:h=36}=e,{title:f,desc:d,items:p=[]}=r,g=t?y(t,{title:f,desc:d}):null,m=Math.max(a+Fie,o+Bie),v=Math.min(a,o),b=ae(y(ne,{indexes:[0]}));if(p.length===0)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,y(Y,{children:y(je,{children:y(ne,{indexes:[0],x:m-20,y:v-20})})})]});const w=[],x=[],_=[],C=[],P=ae(y(n,{indexes:[0],data:r,datum:p[0]})),O=(360-p.length*l)/p.length,M=(F,X,G,L,R,z)=>{const q=R*Math.PI/180,j=z*Math.PI/180,V=F+G*Math.cos(q),U=X+G*Math.sin(q),K=F+L*Math.cos(q),J=X+L*Math.sin(q),Z=F+L*Math.cos(j),ie=X+L*Math.sin(j),Q=F+G*Math.cos(j),te=X+G*Math.sin(j),ce=z-R<=180?"0":"1";return[`M ${V} ${U}`,`L ${K} ${J}`,`A ${L} ${L} 0 ${ce} 1 ${Z} ${ie}`,`L ${Q} ${te}`,`A ${G} ${G} 0 ${ce} 0 ${V} ${U}`,"Z"].join(" ")},A=({centerX:F,outerRadius:X,angleRad:G,btnBounds:L})=>{const R=F+(X+20)*Math.cos(G)-L.width/2,z=v+(X+20)*Math.sin(G)-L.height/2;return{x:R,y:z}},E=Wie,I=(s+o)/2,T=E/I*(180/Math.PI);p.forEach((F,X)=>{const G=[X],L=X*(O+l)+270,R=L+O,z=(L+R)/2,q=z*Math.PI/180,j=Fe(i,G),V=j+Vie,U=M(m,v,s,o,L,R);_.push(y(Pe,{d:U,fill:V,width:o*2,height:o*2,"data-element-type":"shape"}));const K=M(m,v,s+E,o-E,L+T,R-T);_.push(y(Pe,{d:K,fill:j,width:o*2,height:o*2,"data-element-type":"shape"}));const J=(s+o)/2,Z=m+J*Math.cos(q),ie=v+J*Math.sin(q);C.push(y(Ze,{x:Z-u,y:ie-u,width:u*2,height:u*2,fill:"#ffffff","data-element-type":"shape"})),C.push(y(Ze,{x:Z-c,y:ie-c,width:c*2,height:c*2,fill:j,"data-element-type":"shape"})),F.icon&&C.push(y(Ft,{x:Z-h/2,y:ie-h/2,indexes:G,size:h,fill:"#fff"}));const Q=(z%360+360)%360,te=Q>=270||Q<=90,ce=Q>=75&&Q<=105;let re,ee="normal",oe="normal";ce?(re=Q,oe="normal",ee="center"):te?(Q>=270?re=-60+(Q-270)/90*60:re=Q/90*60,ee="normal"):(re=120+(Q-90)/180*120,ee="flipped");const se=re*Math.PI/180,ue=m+a*Math.cos(se)-P.width/2;let pe=v+a*Math.sin(se)-P.height/2;ce&&(pe=v+o+P.height/2),x.push(y(n,{indexes:G,datum:F,data:r,x:ue,y:pe,positionH:ee,positionV:oe}));const fe=a+40,ge=m+fe*Math.cos(se)-b.width/2,he=v+fe*Math.sin(se)-b.height/2;w.push(y(nt,{indexes:G,x:ge,y:he}));const $e=(L+O+l/2)*Math.PI/180,{x:Me,y:Ce}=A({centerX:m,outerRadius:o,angleRad:$e,btnBounds:b});w.push(y(ne,{indexes:[X+1],x:Me,y:Ce}))});const H=(270-l/2)*Math.PI/180,{x:D,y:W}=A({centerX:m,outerRadius:o,angleRad:H,btnBounds:b});return w.unshift(y(ne,{indexes:[0],x:D,y:W})),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:70,children:[g,k(Y,{children:[y(Y,{children:_}),y(Y,{children:C}),y(qe,{children:x}),y(je,{children:w})]})]})};We("sequence-circular",{component:xO,composites:["title","item"]});const CO=e=>{const{Title:t,Item:n,data:r,gap:i=0,rowGap:o=0,itemsPerRow:s=3,circleStrokeWidth:a=18,options:l}=e,{title:c,desc:u,items:h=[]}=r,f=t?y(t,{title:c,desc:u}):null,d=Pt(l),p=ae(y(ne,{indexes:[0]})),g=ae(y(n,{indexes:[0],data:r,datum:h[0],positionH:"center"})),m=[],v=[],b=[],w=(o+g.height)/2,x=w;if(h.forEach((_,C)=>{const P=Math.floor(C/s),S=C%s,$=P%2===1,M=($?s-1-S:S)*(g.width+i)+x,A=P*(g.height+o),E=[C];if(v.push(y(n,{indexes:E,datum:_,data:r,x:M,y:A,positionH:"center",positionV:C%2===1?"flipped":"normal"})),m.push(y(nt,{indexes:E,x:M+(g.width-p.width)/2,y:A+g.height+10})),C===0&&m.push(y(ne,{indexes:E,x:M+(g.width-p.width)/2,y:A-p.height-10})),C<h.length-1){const I=Math.floor((C+1)/s);if(P===I)m.push(y(ne,{indexes:[C+1],x:M+(g.width-p.width)/2,y:A-p.height-10}));else{const N=A+g.height/2,H=A+g.height+o+g.height/2;let D,W,F;$?(D=M,F=0,W=`M ${D} ${N} A ${w} ${w} 0 0 ${F} ${D} ${H}`):(D=M+g.width,F=1,W=`M ${D} ${N} A ${w} ${w} 0 0 ${F} ${D} ${H}`);const X=H-N,G=Fe(l,E),L=Fe(l,[C+1]),R=`gradient-arc-${C}`;b.push(k(tt,{children:[y(Ke,{children:k("linearGradient",{id:R,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[y("stop",{offset:"0%",stopColor:G||d}),y("stop",{offset:"100%",stopColor:L||d})]})}),y(Pe,{d:W,stroke:`url(#${R})`,strokeWidth:a,fill:"none",width:x,height:X,"data-element-type":"shape"})]}));const z=$?D-w-p.width/2:D+w-p.width/2,q=A+g.height+o/2-p.height/2;m.push(y(ne,{indexes:[C+1],x:z,y:q}))}}}),h.length>0){const _=h.length-1,C=Math.floor(_/s),P=_%s,O=(C%2===1?s-1-P:P)*(g.width+i),M=C*(g.height+o);m.push(y(ne,{indexes:[h.length],x:O+(g.width-p.width)/2,y:M+g.height+p.height+20}))}if(h.length/s>2){const _=(o+g.height)/2,C=Fe(l,[0]);b.push(y(Le,{x:0,y:g.height/2-a/2,width:_,height:a,fill:C||d,"data-element-type":"shape"}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,k(Y,{width:s*g.width+(s-1)*i+w*2,height:Math.ceil(h.length/s)*(g.height+o),children:[y(Y,{children:b}),y(qe,{children:v}),y(je,{children:m})]})]})};We("sequence-color-snake-steps",{component:CO,composites:["title","item"]});const Kl=(e,t)=>e===0?0:e===1?t/2:t/2+(e-1)*(t/2*3),Zl=(e,t,n)=>{if(e)return 0;const o=t===0?2:n;return n*2+o},Gie=(e,t,n,r,i,o,s,a)=>{const l=Math.max(6,o*.15),c=r+(e-1)*i,u=e*l,h=100,d=c+u+h+50,p=d-h;let g=0,m=0,v=0,b=0;if(e>0){let x=1/0,_=-1/0;for(let I=0;I<e;I++){const T=I%2===0,N=Math.floor(I/2),H=Kl(N,n),W=0+Zl(T,N,n)+H;x=Math.min(x,W-n),_=Math.max(_,W+n)}const C=(x+_)/2,P=0;g=0,b=g+t.width+a+s+n,v=b-P+C;const M=g+t.width/2,A=v-M;m=v+A-t.width/2}return{canvasHeight:d,startY:p,leftItemAlignedX:g,rightItemAlignedX:m,cylinderAreaStartX:b}},Yie=(e,t,n,r,i,o,s)=>{const a=e%2===0,l=Math.floor(e/2),c=Kl(l,t),u=Zl(a,l,t),h=s+u+c,f=o-e*i,d=n+e*r,p=f-d;return{x:h,y:p,height:d,bottomY:f,topY:p}},Xie=(e,t,n,r,i,o,s,a,l)=>{const c=e%2===0,u=t.topY+t.height*.05;let h,f;c?(h=i,f=h+n.width+l):(h=o,f=h-l);let d;s==="top"?d=u:s==="bottom"?d=u-n.height:d=u-n.height/2,d+=a;const p=c?t.x-r:t.x+r,g=c?p-l:p+l;return{itemPos:{x:h,y:d},lineStartX:g,lineEndX:f,lineY:u}},Uie=(e,t)=>{const n=be(t),r=[];return r.push(k("linearGradient",{id:`cylinderGradient${e}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[y("stop",{offset:"0%",stopColor:n.toRgbString(),stopOpacity:.7}),y("stop",{offset:"40%",stopColor:n.clone().lighten(5).toRgbString(),stopOpacity:.65}),y("stop",{offset:"70%",stopColor:n.clone().lighten(15).toRgbString(),stopOpacity:.6}),y("stop",{offset:"100%",stopColor:n.clone().lighten(20).toRgbString(),stopOpacity:.55})]})),r.push(k("linearGradient",{id:`topGradient${e}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[y("stop",{offset:"0%",stopColor:n.clone().lighten(15).toRgbString(),stopOpacity:1}),y("stop",{offset:"100%",stopColor:"#fafafa",stopOpacity:1})]})),r.push(k("linearGradient",{id:`bottomGradient${e}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[y("stop",{offset:"0%",stopColor:n.clone().darken(8).toRgbString(),stopOpacity:.75}),y("stop",{offset:"50%",stopColor:n.clone().darken(5).toRgbString(),stopOpacity:.7}),y("stop",{offset:"100%",stopColor:n.clone().darken(12).toRgbString(),stopOpacity:.65})]})),r.push(k("linearGradient",{id:`numberGradient${e}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[y("stop",{offset:"0%",stopColor:n.clone().darken(0).toRgbString(),stopOpacity:.9}),y("stop",{offset:"50%",stopColor:n.clone().lighten(5).toRgbString(),stopOpacity:.85}),y("stop",{offset:"100%",stopColor:n.clone().lighten(10).toRgbString(),stopOpacity:.8})]})),r.push(k("linearGradient",{id:`glowGradient${e}`,x1:"0%",y1:"100%",x2:"0%",y2:"0%",children:[y("stop",{offset:"0%",stopColor:"#FFFFFF",stopOpacity:.2}),y("stop",{offset:"90%",stopColor:"#FFFFFF",stopOpacity:0})]})),r},Kie=(e,t,n,r)=>{const{x:i,topY:o,bottomY:s}=t,a=[];a.push(y("ellipse",{id:`cylinder-bottom-${e}`,cx:i,cy:s,rx:n,ry:r,fill:`url(#bottomGradient${e})`,opacity:.7})),a.push(y(Pe,{id:`cylinder-body-${e}`,d:`
122
112
  M ${i-n} ${o}
123
113
  A ${n} ${r} 0 0 0 ${i} ${o+r}
124
114
  A ${n} ${r} 0 0 0 ${i+n} ${o}
@@ -126,7 +116,7 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
126
116
  A ${n} ${r} 0 0 1 ${i} ${s+r}
127
117
  A ${n} ${r} 0 0 1 ${i-n} ${s}
128
118
  Z
129
- `,fill:`url(#cylinderGradient${e})`,stroke:"none"})),a.push(y(Le,{id:`cylinder-glow-${e}`,x:i-n,y:o-r*3,width:n*2,height:r*3,fill:`url(#glowGradient${e})`})),a.push(y("ellipse",{id:`cylinder-top-${e}`,cx:i,cy:o,rx:n,ry:r,fill:`url(#topGradient${e})`}));const l=i-10,c=o-15,f=`translate(${l}, ${c}) matrix(1, 0, ${-.6}, ${.6}, 0, 0)`;return a.push(y(De,{id:`cylinder-number-${e}`,width:50,height:50,fontFamily:"Arial Black, sans-serif",fontSize:32,fontWeight:900,fill:`url(#numberGradient${e})`,alignHorizontal:"center",alignVertical:"middle",transform:f,children:e+1})),a},uie=(e,t,n,r,i)=>{const s=[];return s.push(y("circle",{id:`decoration-dot-start-${e}`,cx:t,cy:r,r:2,fill:i})),s.push(y("line",{id:`decoration-line-${e}`,x1:t,y1:r,x2:n,y2:r,stroke:i,strokeWidth:1,opacity:.8})),s.push(y("circle",{id:`decoration-dot-end-${e}`,cx:n,cy:r,r:2,fill:i,opacity:.9})),s},hie=(e,t,n,r,i)=>{if(e===0)return null;const o=[];for(let x=0;x<e;x++){const w=x%2===0,C=Math.floor(x/2),P=jl(C,t),O=Fl(w,C,t),$=n+O+P,S=r-x*i;o.push({x:$,y:S})}const s=o[0],a=o[o.length-1],l=6,c=e>5?e*16:100,u=s.x-t-c,h=s.x+t+c,f=s.y+l+c/6,d=a.x-t-c,p=a.x+t+c,g=a.y+l-c/6,m=`
119
+ `,fill:`url(#cylinderGradient${e})`,stroke:"none"})),a.push(y(Le,{id:`cylinder-glow-${e}`,x:i-n,y:o-r*3,width:n*2,height:r*3,fill:`url(#glowGradient${e})`})),a.push(y("ellipse",{id:`cylinder-top-${e}`,cx:i,cy:o,rx:n,ry:r,fill:`url(#topGradient${e})`}));const l=i-10,c=o-15,f=`translate(${l}, ${c}) matrix(1, 0, ${-.6}, ${.6}, 0, 0)`;return a.push(y(De,{id:`cylinder-number-${e}`,width:50,height:50,fontFamily:"Arial Black, sans-serif",fontSize:32,fontWeight:900,fill:`url(#numberGradient${e})`,alignHorizontal:"center",alignVertical:"middle",transform:f,children:e+1})),a},Zie=(e,t,n,r,i)=>{const s=[];return s.push(y("circle",{id:`decoration-dot-start-${e}`,cx:t,cy:r,r:2,fill:i})),s.push(y("line",{id:`decoration-line-${e}`,x1:t,y1:r,x2:n,y2:r,stroke:i,strokeWidth:1,opacity:.8})),s.push(y("circle",{id:`decoration-dot-end-${e}`,cx:n,cy:r,r:2,fill:i,opacity:.9})),s},Qie=(e,t,n,r,i)=>{if(e===0)return null;const o=[];for(let x=0;x<e;x++){const _=x%2===0,C=Math.floor(x/2),P=Kl(C,t),S=Zl(_,C,t),$=n+S+P,O=r-x*i;o.push({x:$,y:O})}const s=o[0],a=o[o.length-1],l=6,c=e>5?e*16:100,u=s.x-t-c,h=s.x+t+c,f=s.y+l+c/6,d=a.x-t-c,p=a.x+t+c,g=a.y+l-c/6,m=`
130
120
  M ${u} ${f}
131
121
  L ${h} ${f}
132
122
  L ${p} ${g}
@@ -144,12 +134,12 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
144
134
  L ${h} ${f+l}
145
135
  L ${u} ${f+l}
146
136
  Z
147
- `;return k(Y,{children:[y(Ke,{children:k(tt,{children:[k("linearGradient",{id:"basePlateTopGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[y("stop",{offset:"0%",stopColor:"#fafafa",stopOpacity:1}),y("stop",{offset:"50%",stopColor:"#ffffff",stopOpacity:.98}),y("stop",{offset:"100%",stopColor:"#ececec",stopOpacity:.95})]}),k("linearGradient",{id:"basePlateFrontGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[y("stop",{offset:"0%",stopColor:"#e0e0e0",stopOpacity:.95}),y("stop",{offset:"50%",stopColor:"#d2d2d2",stopOpacity:.93}),y("stop",{offset:"100%",stopColor:"#c5c5c5",stopOpacity:.9})]}),k("linearGradient",{id:"basePlateSideGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[y("stop",{offset:"0%",stopColor:"#b8b8b8",stopOpacity:.92}),y("stop",{offset:"50%",stopColor:"#c0c0c0",stopOpacity:.88}),y("stop",{offset:"100%",stopColor:"#adadad",stopOpacity:.85})]})]})}),y(Pe,{id:"base-plate-front",d:b,fill:"url(#basePlateFrontGradient)",stroke:"#c5c5c5",strokeWidth:.3,opacity:.92}),y(Pe,{id:"base-plate-side",d:v,fill:"url(#basePlateSideGradient)",stroke:"#aaaaaa",strokeWidth:.3,opacity:.88}),y(Pe,{id:"base-plate-top",d:m,fill:"url(#basePlateTopGradient)",stroke:"#e5e5e5",strokeWidth:.5,opacity:.93})]})},uS=e=>{const{Title:t,Item:n,data:r,options:i,cylinderRx:o=28,cylinderRy:s=18,baseHeight:a=120,heightIncrement:l=40,depthSpacing:c=60,itemVerticalAlign:u="top",itemVerticalOffset:h=-12,firstDecorationWidth:f=90}=e,{title:d,desc:p,items:g=[]}=r,m=t?y(t,{title:d,desc:p}):null,v=ae(y(n,{indexes:[0],data:r,datum:g[0],positionH:"center"})),b=ae(y(ne,{indexes:[0]})),_=Ot(i),x=10,w=Math.max(6,c*.15),C=oie(g.length,v,o,a,l,c,f,x),{startY:P,leftItemAlignedX:O,rightItemAlignedX:$,cylinderAreaStartX:S}=C,M=[],I=[];g.forEach((G,L)=>{const R=Fe(i,[L])||_;M.push(...lie(L,R));const z=sie(L,o,a,l,w,P,S),q=cie(L,z,o,s),{itemPos:j,lineStartX:V,lineEndX:U,lineY:K}=aie(L,z,v,o,O,$,u,h,x),J=uie(L,V,U,K,R);q.push(...J);const Z=y(n,{indexes:[L],datum:G,data:r,x:j.x,y:j.y,positionH:L%2===0?"flipped":"normal"}),ie=[y(nt,{indexes:[L],x:j.x+v.width/2-b.width/2,y:j.y+v.height+10}),y(ne,{indexes:[L],x:j.x+v.width/2-b.width/2,y:j.y-b.height-10})];I[L]={cylinderNodes:q,itemNode:Z,btnNodes:ie,itemX:j.x,itemY:j.y}});let E=1/0,A=1/0,T=-1/0,N=-1/0;I.forEach(G=>{const{itemX:L,itemY:R}=G;E=Math.min(E,L),A=Math.min(A,R),T=Math.max(T,L+v.width),N=Math.max(N,R+v.height)});const H=T-E,D=N-A,B=[y(Ke,{children:M})],F=[],X=hie(g.length,o,S,P,w);X&&B.push(X);for(let G=g.length-1;G>=0;G--){const L=I[G];L&&(B.push(k(Y,{children:[y(Y,{children:L.cylinderNodes}),L.itemNode]})),F.push(...L.btnNodes))}if(g.length>0){const G=g.length%2===0,L=Math.floor(g.length/2),R=jl(L,o),z=Fl(G,L,o),q=S+z+R,j=P-g.length*w;F.push(y(ne,{indexes:[g.length],x:q,y:j-100}))}return k(ve,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,k(Y,{width:H,height:D,children:[y(qe,{children:B}),y(je,{children:F})]})]})};We("sequence-cylinders-3d",{component:uS,composites:["title","item"]});const st={WIDTH:160,HEIGHT:260,ARROW_HEIGHT:148,ARROW_WIDTH:100,LINE_X:100,RECT_X:0,RECT_Y:80,RECT_WIDTH:100,RECT_HEIGHT:130},Nn={SIZE:8,MAX_COUNT:40,MIN_COUNT:5,ARROW_RATIO:.6,MIN_ARROW_COUNT:3};function fie(e,t,n){return(e+t*7+n*13)%100}function die(e){const t=Math.ceil(Math.sqrt(e*1.5)),n=Math.ceil(e/t);return{cols:t,rows:n}}function pie(e,t,n,r,i,o,s,a){const l=Math.max(i,Math.min(e+n,o)),c=Math.max(s,Math.min(t+r,a));return{x:l,y:c}}function hS({count:e,rectX:t,rectY:n,rectWidth:r,rectHeight:i,seed:o}){const s=[],a=Nn.SIZE/2,{cols:l,rows:c}=die(e),u=(r-a*2)/(l+1),h=(i-a*2)/(c+1);let f=0;for(let d=0;d<c&&f<e;d++)for(let p=0;p<l&&f<e;p++){const g=fie(o,d,p),m=g%16-8,v=g*3%12-6,b=d%2===1?u/2:0,_=t+a+(p+1)*u+b,x=n+a+(d+1)*h,{x:w,y:C}=pie(_,x,m,v,t+a,t+r-a,n+a,n+i-a);s.push({x:w,y:C,colorIndex:f}),f++}return s}function gie(e,t){if(t<=1)return Nn.MAX_COUNT;const n=e/(t-1),r=Nn.MAX_COUNT-Nn.MIN_COUNT;return Math.round(Nn.MAX_COUNT-r*n)}function mie(){const s={topLeft:{x:40,y:25},topRight:{x:160,y:75},bottomLeft:{x:40,y:205},bottomRight:{x:160,y:255}},a=[];for(let l=0;l<=12;l++){const c=l/12,u={x:s.topLeft.x+(s.bottomLeft.x-s.topLeft.x)*c,y:s.topLeft.y+(s.bottomLeft.y-s.topLeft.y)*c},h={x:s.topRight.x+(s.bottomRight.x-s.topRight.x)*c,y:s.topRight.y+(s.bottomRight.y-s.topRight.y)*c};a.push(`M${u.x} ${u.y}L${h.x} ${h.y}`);const f={x:s.topLeft.x+(s.topRight.x-s.topLeft.x)*c,y:s.topLeft.y+(s.topRight.y-s.topLeft.y)*c},d={x:s.bottomLeft.x+(s.bottomRight.x-s.bottomLeft.x)*c,y:s.bottomLeft.y+(s.bottomRight.y-s.bottomLeft.y)*c};a.push(`M${f.x} ${f.y}L${d.x} ${d.y}`)}return a.join("")}function fS(e,t){return e.map(n=>{const r=Fe(t,[n.colorIndex]);return y(Pe,{d:"M4 0L8 4L4 8L0 4Z",fill:r,x:n.x,y:n.y,width:Nn.SIZE,height:Nn.SIZE,"data-element-type":"shape"})})}function yie(e,t,n,r,i){return k(Y,{x:t,y:0,width:st.WIDTH,height:st.HEIGHT,children:[k(Pt,{children:[y(Pe,{d:mie(),stroke:"#D9D9D9",strokeWidth:2}),y(Pe,{d:`M${st.LINE_X} 25V260`,stroke:"#BFBFBF",strokeWidth:2,strokeLinecap:"round"}),y(Le,{x:st.RECT_X,y:st.RECT_Y,width:st.RECT_WIDTH,height:st.RECT_HEIGHT,fill:"#FFCB0E",fillOpacity:.2})]}),y(tt,{children:fS(r,i)}),y(De,{x:st.LINE_X-25,y:0,width:50,height:20,fontSize:20,fontWeight:"bold",alignHorizontal:"center",alignVertical:"top",fill:n,children:String(e+1).padStart(2,"0")})]})}function vie(e,t){const n=st.RECT_Y+st.RECT_HEIGHT/2-st.ARROW_HEIGHT/2,r=Math.max(Math.round(Nn.MIN_COUNT*Nn.ARROW_RATIO),Nn.MIN_ARROW_COUNT),i=hS({count:r,rectX:0,rectY:14,rectWidth:57,rectHeight:120,seed:999});return k(Y,{x:e+st.WIDTH,y:n,children:[y(Pe,{d:"M0 13.9679H57.1429V0L100 74L57.1429 148V134.032H0V13.9679Z",width:st.ARROW_WIDTH,height:st.ARROW_HEIGHT,fill:"#FFCB0E",fillOpacity:.2,"data-element-type":"shape"}),y(tt,{children:fS(i,t)})]})}const dS=e=>{const{Title:t,Item:n,data:r,gap:i=20,options:o}=e,{title:s,desc:a,items:l=[]}=r,c=t?y(t,{title:s,desc:a}):null,u=ae(y(ne,{indexes:[0]})),h=ae(y(n,{indexes:[0],data:r,datum:l[0],width:st.WIDTH,positionH:"center"})),f=[],d=[],p=[],g=st.HEIGHT+i,m=g+h.height+10;if(l.forEach((v,b)=>{const _=b*st.WIDTH,x=[b],w=Fe(o,x),C=gie(b,l.length),P=hS({count:C,rectX:st.RECT_X,rectY:st.RECT_Y,rectWidth:st.RECT_WIDTH,rectHeight:st.RECT_HEIGHT,seed:b*100});f.push(yie(b,_,w,P,o)),b===l.length-1&&f.push(vie(_,o)),d.push(y(n,{indexes:x,datum:v,data:r,width:st.WIDTH,x:_+st.LINE_X-st.WIDTH/2,y:g,positionH:"center"})),p.push(y(nt,{indexes:x,x:_+st.LINE_X-u.width/2,y:m})),b<l.length-1&&p.push(y(ne,{indexes:[b+1],x:_+st.WIDTH-u.width/2,y:m}))}),l.length>0){p.unshift(y(ne,{indexes:[0],x:-u.width/2,y:m}));const v=(l.length-1)*st.WIDTH;p.push(y(ne,{indexes:[l.length],x:v+st.WIDTH-u.width/2,y:m}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,k(Y,{width:st.WIDTH*l.length+st.ARROW_WIDTH,height:st.HEIGHT+i+h.height,children:[y(Y,{children:f}),y(qe,{children:d}),y(je,{children:p})]})]})};We("sequence-filter-mesh",{component:dS,composites:["title","item"]});const Bl=e=>Math.round(e*1e10)/1e10,cm=(e,t)=>Bl(Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))),Wl=Math.PI,bie=Wl*2,_ie=(e,t)=>{const n=t-e;return n>Wl&&n<bie||n<0&&n>-Wl?-1:1},wie=(e,t,n,r,i,o)=>{const s=Math.atan2(e.y-t.y,e.x-t.x),a=Math.atan2(n.y-t.y,n.x-t.x),l=Math.acos((r*r+o*o-i*i)/(2*r*o)),c=1/Math.tan(l/2),u=_ie(s,a),h=s+u*l/2;return{prev:s,next:a,main:l,vel:c,dir:u,bis:h}},um=Math.PI,pS=(e,t,n)=>e.reduce((r,i)=>{const{x:o,y:s,angle:{prev:a,next:l},arc:{x:c,y:u,radius:h}}=i,f=i.angle.dir*-1,d=a+f*um/2,p=(f*um+l-a)%um,g=n-1,m=p/g,v=[];if(!m)return r.concat({x:o,y:s});for(let b=0;b<=g;b++)v.push({x:c+Math.cos(d+m*b)*h,y:u+Math.sin(d+m*b)*h});return r.concat(v)},[]),gS=(e,t=0)=>{const n=e.length,r=[],i=[],o=[];e.forEach((l,c)=>{const u=e[(c-1+n)%n],h=e[(c+1)%n],f=cm(u,l),d=cm(u,h),p=cm(l,h),g=wie(u,l,h,f,d,p);g.main===0&&(g.main=Number.EPSILON,g.vel=Number.MAX_SAFE_INTEGER),g.main===Wl&&(g.vel=0);const m={x:l.x,y:l.y,angle:g,offset:0,arc:{radius:t,hit:t,lim:Math.min(p/g.vel,f/g.vel,l.r||0)},in:{length:f,rest:f},out:{length:p,rest:p},locked:!1,id:c,get prev(){return r[(c-1+n)%n]},get next(){return r[(c+1)%n]}};isNaN(g.main)&&(g.main=0,g.bis=g.prev||g.next,o.push(m)),typeof l.r=="number"&&(l.r===0?o.push(m):i.push(m)),r.push(m)}),o.forEach(l=>{l.angle.vel=0,l.arc.radius=0,hm(l)}),r.forEach(l=>{l.arc.hit=Math.min(l.out.rest/(l.angle.vel+l.next.angle.vel),l.in.rest/(l.angle.vel+l.prev.angle.vel))});let s=Vl(i);for(;s;)xie(s),s=Vl(i);for(s=Vl(r);s;)Cie(s,t),s=Vl(r);const a=r.map(l=>{const c=l.arc.radius/Math.sin(l.angle.main/2);return{id:l.id,x:l.x,y:l.y,angle:{main:Bl(l.angle.main),prev:l.angle.prev,next:l.angle.next,bis:l.angle.bis,dir:l.angle.dir},offset:Bl(l.offset),arc:{radius:Bl(l.arc.radius),x:l.x+(Math.cos(l.angle.bis)*c||0),y:l.y+(Math.sin(l.angle.bis)*c||0)},in:{length:l.in.length,x:l.x+Math.cos(l.angle.prev)*l.offset,y:l.y+Math.sin(l.angle.prev)*l.offset},out:{length:l.out.length,x:l.x+Math.cos(l.angle.next)*l.offset,y:l.y+Math.sin(l.angle.next)*l.offset},get prev(){return a[(l.id-1+n)%n]},get next(){return a[(l.id+1)%n]}}});return a},xie=e=>{const{prev:t,next:n}=e;t.locked&&!n.locked?e.arc.radius=Math.min(Math.max((e.out.length-n.arc.lim*n.angle.vel)/e.angle.vel,e.out.length/(e.angle.vel+n.angle.vel)),e.in.rest/e.angle.vel,e.arc.lim):n.locked&&!t.locked?e.arc.radius=Math.min(Math.max((e.in.length-t.arc.lim*t.angle.vel)/e.angle.vel,e.in.length/(e.angle.vel+t.angle.vel)),e.out.rest/e.angle.vel,e.arc.lim):n.locked&&t.locked?e.arc.radius=Math.min(e.in.rest/e.angle.vel,e.out.rest/e.angle.vel,e.arc.lim):e.arc.radius=Math.min(Math.max((e.in.length-t.arc.lim*t.angle.vel)/e.angle.vel,e.in.length/(e.angle.vel+t.angle.vel)),Math.max((e.out.length-n.arc.lim*n.angle.vel)/e.angle.vel,e.out.length/(e.angle.vel+n.angle.vel)),e.arc.lim),hm(e)},Cie=(e,t)=>{if(t>e.arc.hit){const{prev:n,next:r}=e;n.locked&&!r.locked?e.arc.radius=Math.max(Math.min(e.in.rest/e.angle.vel,e.out.length/(e.angle.vel+r.angle.vel),e.arc.radius),0):r.locked&&!n.locked?e.arc.radius=Math.max(Math.min(e.out.rest/e.angle.vel,e.in.length/(e.angle.vel+n.angle.vel),e.arc.radius),0):r.locked&&n.locked?e.arc.radius=Math.max(Math.min(e.in.rest/e.angle.vel,e.out.rest/e.angle.vel,e.arc.radius),0):e.arc.radius=e.arc.hit}hm(e)},hm=e=>{const{prev:t,next:n}=e;e.offset=e.arc.radius*e.angle.vel,t.out.rest-=e.offset,e.in.rest-=e.offset,e.out.rest-=e.offset,n.in.rest-=e.offset,e.locked=!0,t.arc.hit=Math.min(t.in.length/(t.angle.vel+t.prev.angle.vel),t.in.rest/t.angle.vel,t.out.rest/t.angle.vel),n.arc.hit=Math.min(n.out.length/(n.angle.vel+n.next.angle.vel),n.out.rest/n.angle.vel,n.in.rest/n.angle.vel)},Vl=e=>e.reduce((t,n)=>n.locked?t:t?n.arc.hit<t.arc.hit?n:t:n,null),Pie=6,fm=32,Oie=1.25,dm=25,mS=15,yS=e=>{const{Title:t,Item:n,data:r,gap:i=10,width:o=700,funnelWidth:s,itemHeight:a=60,minBottomRatio:l=.25,options:c}=e,{title:u,desc:h,items:f=[]}=r,d=t?y(t,{title:u,desc:h}):null;if(f.length===0)return y(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:d});const p=Et(c.themeConfig),g=s!=null?s:o*.55,m=o-g,v=a*Oie,b=f.length*v+(f.length-1)*i,_=g*l,x=f.map((C,P)=>{const O=[P],$=Fe(c,[P])||p.colorPrimary,{points:S,topWidth:M}=Sie(g,_,v,i,b,P),I=gS(S,Pie),E=pS(I,"AMOUNT",10),A=g/2,T=P*(v+i),N=A+M/2,H=N-dm,D=m+dm-10,B=(v-a)/2,F=T+B,X=N+mS,G=D-dm-mS,L=F,R=A-fm/2,z=T+v/2-fm/2,q=`${$.replace("#","")}-funnel-${P}`;return{background:y(Le,{x:H,y:F,width:D,height:a,ry:"8",fill:be($).setAlpha(.1).toRgbString(),"data-element-type":"shape"}),funnel:[y(Ke,{children:k("linearGradient",{id:q,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[y("stop",{offset:"0%",stopColor:be($).lighten(10).toString()}),y("stop",{offset:"100%",stopColor:$})]})}),y(Yt,{points:E,fill:`url(#${q})`,y:T,"data-element-type":"shape",style:{filter:"drop-shadow(0px 2px 3px rgba(0,0,0,0.15))"}})],icon:y(Ft,{indexes:O,x:R,y:z,size:fm,fill:"#fff"}),item:y(n,{indexes:O,datum:C,data:r,x:X,y:L,width:G,height:a,positionV:"middle"}),btnRemove:y(nt,{indexes:O,x:H+D,y:F})}}),w=y(ne,{indexes:[f.length],x:o/2,y:b+10});return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,k(Y,{width:o,height:b+40,children:[y(Y,{children:x.map(C=>C.background)}),y(Y,{children:x.flatMap(C=>C.funnel)}),y(Y,{children:x.map(C=>C.icon)}),y(qe,{children:x.map(C=>C.item)}),k(je,{children:[x.map(C=>C.btnRemove),w]})]})]})};function Sie(e,t,n,r,i,o){const s=e/2,a=o*(n+r),l=a+n,c=e-t,u=e-c*(a/i),h=e-c*(l/i),f={x:s-u/2,y:0},d={x:s+u/2,y:0},p={x:s+h/2,y:n},g={x:s-h/2,y:n};return{points:[f,d,p,g],topWidth:u,bottomWidth:h}}We("sequence-funnel",{component:yS,composites:["title","item"]});const vS=e=>{const{Title:t,Item:n,data:r,gap:i=30,cardPadding:o=10,options:s}=e,{title:a,desc:l,items:c=[]}=r,u=t?y(t,{title:a,desc:l}):null,h=Ot(s),f=Et({colorPrimary:h},s),d=ae(y(ne,{indexes:[0]})),p=ae(y(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),g=[],m=[],v=[],b=p.width+o*2,_=p.height+o*2+30,x=8,w=6,C=Math.max(d.height+20,40),P=40;if(c.forEach((O,$)=>{const S=$%2===0,M=$*(b+i);let I;S?$%4===2?I=C:I=C+P:I=C+P+60;const E=[$],A=Fe(s,E)||h;if(S){const D=A===h?f.colorPrimaryBg||"#E8F3FF":`${A}20`,B=y(Le,{x:M,y:I,width:b,height:_,fill:D,rx:20,ry:20});v.push(B)}m.push(y(n,{indexes:E,datum:O,data:r,x:M+o,y:I+o,positionH:"center",positionV:"normal"}));const T=c.length*x+(c.length-1)*w,N=M+(b-T)/2,H=I+p.height+20;for(let D=0;D<c.length;D++){const B=N+D*(x+w),F=D===$;v.push(y(Ze,{x:B,y:H,width:x,height:x,fill:F?A:"transparent",stroke:A,strokeWidth:2}))}g.push(y(nt,{indexes:E,x:M+(b-d.width)/2,y:I+_+10})),$===0?g.push(y(ne,{indexes:E,x:M+(b-d.width)/2,y:I-d.height-10})):g.push(y(ne,{indexes:E,x:M-i/2-d.width/2,y:C-d.height-10}))}),c.length>0){const O=[],S=i/2,M=6,I=C+P,E=0-S,A=I+_/2;O.push(`M ${E} ${A-M}`),c.forEach((q,j)=>{const V=j%2===0,U=j*(b+i);let K;V?j%4===2?K=C:K=C+P:K=C+P+60;const J=U-S,Z=U+b+S,ie=K-S,Q=K+_+S,te=K+_/2;V?(O.push(`L ${J} ${ie+35}`),O.push(`Q ${J} ${ie} ${J+35} ${ie}`),O.push(`L ${Z-35} ${ie}`),O.push(`Q ${Z} ${ie} ${Z} ${ie+35}`),O.push(`L ${Z} ${te-M}`)):(O.push(`L ${J} ${te}`),O.push(`L ${J} ${Q-35}`),O.push(`Q ${J} ${Q} ${J+35} ${Q}`),O.push(`L ${Z-35} ${Q}`),O.push(`Q ${Z} ${Q} ${Z} ${Q-35}`),O.push(`L ${Z} ${te+M}`))});const T=c.length-1,N=T%2===0,H=T*(b+i);let D;N?T%4===2?D=C:D=C+P:D=C+P+60;const B=H+b+S,F=D+_/2,X=O.join(" "),G="gradient-zigzag-path",L=Fe(s,[0])||h,R=Fe(s,[c.length-1])||h,z=c.map((q,j)=>{const V=j/(c.length-1)*100,U=Fe(s,[j])||h;return y("stop",{offset:`${V}%`,stopColor:U})});v.unshift(k(tt,{children:[y(Ke,{children:y("linearGradient",{id:G,x1:E,y1:A,x2:B,y2:F,gradientUnits:"userSpaceOnUse",children:z})}),y(Pe,{d:X,stroke:`url(#${G})`,strokeWidth:2,fill:"none",width:(c.length-1)*(b+i)+b+S*2,height:_+120})]})),v.unshift(y(Ze,{x:E-M,y:A-M,width:M*2,height:M*2,fill:"transparent",stroke:L,strokeWidth:2})),v.unshift(y(Ze,{x:B-M,y:F-M,width:M*2,height:M*2,fill:"transparent",stroke:R,strokeWidth:2}))}if(c.length>0){const $=(c.length-1)*(b+i);g.push(y(ne,{indexes:[c.length],x:$+b+(i-d.width)/2,y:C-d.height-10}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,k(Y,{children:[y(Pt,{children:v}),y(qe,{children:m}),y(je,{children:g})]})]})};We("sequence-horizontal-zigzag",{component:vS,composites:["title","item"]});var $ie=Object.defineProperty,Eie=Object.defineProperties,Mie=Object.getOwnPropertyDescriptors,bS=Object.getOwnPropertySymbols,Iie=Object.prototype.hasOwnProperty,Aie=Object.prototype.propertyIsEnumerable,_S=(e,t,n)=>t in e?$ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gl=(e,t)=>{for(var n in t||(t={}))Iie.call(t,n)&&_S(e,n,t[n]);if(bS)for(var n of bS(t))Aie.call(t,n)&&_S(e,n,t[n]);return e},Yl=(e,t)=>Eie(e,Mie(t));function Tie(e){const{width:t,height:n,colorPrimary:r}=e,i=r,o=be.mix(r,"#000",20).toHexString(),s=be.mix(r,"#fff",50).toHexString(),a=be.mix(s,"#000",15).toHexString();function l(P,O){const S=[{position:.25,offset:.1},{position:.45,offset:-.02},{position:.6,offset:.04},{position:.75,offset:-.1}],M={x:0,y:O},I={x:P,y:O},E={x:P/2,y:0},A={x:P/2,y:O},T=O*.35,N=T/O,H={x:E.x*(1-N)+M.x*N,y:T},D={x:E.x,y:T},B={x:E.x*(1-N)+I.x*N,y:T},F=S.map(L=>{const R=H.x+(B.x-H.x)*L.position,z=T,q=O*L.offset;return{x:R,y:z+q,position:L.position,offset:L.offset}});F.sort((L,R)=>L.position-R.position);const X=F.filter(L=>L.x<=D.x),G=F.filter(L=>L.x>D.x);return{leftBottom:M,rightBottom:I,peak:E,centerBottom:A,snowLineY:T,leftEdge:H,centerSnow:D,rightEdge:B,leftRipples:X,rightRipples:G}}const{leftRipples:c,rightRipples:u,leftBottom:h,rightBottom:f,peak:d,centerBottom:p,leftEdge:g,centerSnow:m,rightEdge:v}=l(t,n),b=[d,g,...c,m],_=[d,m,...u,v],x=[g,...c,m,p,h],w=[m,...u,v,f,p],C=P=>P.map(O=>`${O.x},${O.y}`).join(" ");return k(Pt,Yl(Gl({},e),{children:[y("polygon",{points:C(b),fill:s}),y("polygon",{points:C(_),fill:a}),y("polygon",{points:C(x),fill:i}),y("polygon",{points:C(w),fill:o})]}))}function Rie(e){const n={tiny:27,small:48,medium:54,large:72}[e]||54,r="#17C76F",i="#139B57",o="#737373",s=n*.7,a=n-s,l=s*.8,c=l,u=c/6,h=(c-u)/2,f=s;return k(Pt,{width:c,height:n,children:[y("ellipse",{cx:l/2,cy:s/2,rx:l/2,ry:s/2,fill:r,clipPath:"inset(0 50% 0 0)"}),y("ellipse",{cx:l/2,cy:s/2,rx:l/2,ry:s/2,fill:i,clipPath:"inset(0 0 0 50%)"}),y("rect",{x:h,y:f,width:u,height:a,fill:o})]})}function kie(e){const{width:t,height:n}=e,r=t/2,i=n/2,o=Math.min(t,n)*.28,s=Math.min(t,n)*.14,a=Math.min(t,n)*.07,l=0,c=i-a/2,u=a*.4,h=8,f=Array.from({length:h},(d,p)=>{const g=360/h*p;return y("rect",{x:l,y:c,width:s,height:a,rx:u,ry:u,fill:"#FFCB0E",transform:`rotate(${g}, ${r}, ${i})`})});return k(Pt,Yl(Gl({},e),{children:[y("circle",{cx:r,cy:i,r:o,fill:"#FFCB0E"}),...f]}))}function Lie(e){return e.type==="single"?y(Pt,Yl(Gl({},e),{width:54,height:36,children:y("path",{d:"M10.2635 13.3806C11.0019 9.99045 12.7381 6.91002 15.2405 4.55004C17.743 2.19007 20.8929 0.662716 24.2701 0.171643C27.6473 -0.31943 31.0914 0.24912 34.143 1.80148C37.1946 3.35385 39.7087 5.81625 41.3501 8.86031C44.8835 9.0468 48.1994 10.6544 50.5684 13.3294C52.9373 16.0044 54.1653 19.5277 53.9821 23.1242C53.7989 26.7207 52.2195 30.0959 49.5914 32.5071C46.9634 34.9184 43.5019 36.1683 39.9684 35.9818H11.1517C4.93436 35.9818 0 30.9593 0 24.6309C0.0598447 21.8016 1.13799 19.093 3.02989 17.0192C4.9218 14.9454 7.49584 13.6506 10.2635 13.3806Z",fill:"#70CAF8"})})):k(Pt,Yl(Gl({},e),{width:73,height:40,children:[y("path",{d:"M61.6461 14.9716C60.8681 11.1875 58.9581 7.73823 56.1763 5.09315C53.3944 2.44806 49.8758 0.735682 46.0992 0.189041C42.3226 -0.357601 38.4714 0.288046 35.0699 2.03812C31.6683 3.7882 28.8815 6.5577 27.0889 9.96971C23.161 10.1687 19.4719 11.9405 16.8333 14.8953C14.1947 17.8502 12.8227 21.746 13.0191 25.7258C13.2155 29.7055 14.9642 33.4433 17.8806 36.1167C20.7969 38.7901 24.642 40.1802 28.5699 39.9812H60.6588C67.5702 39.9812 73.0006 34.4791 73.0006 27.4764C73.0006 20.9739 67.8664 15.4718 61.6461 14.9716Z",fill:"#70CAF8"}),y("path",{d:"M21.9691 6.47136e-09C25.9369 6.47136e-09 29.5264 1.62125 32.0003 4.21094C30.0604 5.7917 28.4423 7.75571 27.2581 10C23.3149 10.1989 19.6111 11.9702 16.9622 14.9238C14.3136 17.8774 12.936 21.772 13.1331 25.75C13.2057 27.2131 13.4902 28.6432 13.9652 30H10.7689C7.96116 29.8907 5.29664 28.7203 3.30402 26.7217C1.31144 24.7231 0.135825 22.0419 0.0110544 19.21C-0.113702 16.378 0.821178 13.6017 2.63019 11.4326C4.43921 9.26356 6.99065 7.8602 9.77766 7.5C11.9582 3.00012 16.6168 8.76701e-05 21.9691 6.47136e-09Z",fill:"#5BA2C6"})]}))}const wS=e=>{const{Title:t,Item:n,data:r,gap:i=20,minHeight:o=100,maxHeight:s=200,minWidth:a=260,maxWidth:l=300,options:c}=e,{title:u,desc:h,items:f=[]}=r,d=t?y(t,{title:u,desc:h}):null,p=[],g=[],m=[],v=[],b=f.length,_=Et(c.themeConfig),x=60,w={single:{width:54,height:36},double:{width:73,height:40}},C=[],P=[];let O=0,$=0;f.forEach((F,X)=>{const G=b>1?X/(b-1):0,R=(o+(s-o)*G)*1.6,z=Math.max(a,Math.min(l,R));C.push(z);const q=$;P.push(q),$+=z/2,X===b-1&&(O=q+z)});const S=P[0],M=P[b-1]+C[b-1],I=M-S,E=b>1?(I-i*(b-1))/b:I,A=ae(y(n,{indexes:[0],data:r,datum:f[0],width:E})),T=32,N=s+i,H=N+T+10;f.forEach((F,X)=>{const G=[X],L=o+(s-o)*(b>1?X/(b-1):0),R=C[X],z=P[X],q=s-L,j=Fe(c,[X])||_.colorPrimary;m.push(y(Tie,{colorPrimary:j,x:z,y:q,width:R,height:L}));const V=S+X*(E+i);v.push(y(De,{x:V,y:N,width:E,height:T,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:j,backgroundColor:j,backgroundOpacity:.5,backgroundRadius:4,children:String(X+1).padStart(2,"0")})),p.push(y(n,{indexes:G,datum:F,data:r,x:V,y:H,width:E}))});const D=ae(y(ne,{indexes:[0]})),B=H+A.height+10;if(f.forEach((F,X)=>{const G=[X],L=S+X*(E+i);g.push(y(nt,{indexes:G,x:L+E/2-D.width/2,y:B})),X<f.length-1&&g.push(y(ne,{indexes:[X+1],x:L+E+i/2-D.width/2,y:B}))}),b>0){const F=S;g.unshift(y(ne,{indexes:[0],x:F-i/2-D.width/2,y:B}));const X=S+(b-1)*(E+i);g.push(y(ne,{indexes:[b],x:X+E+i/2-D.width/2,y:B})),m.push(y(kie,{x:O-x-20,y:-35,width:x,height:x}));const G=["tiny","small","medium","large"],L={tiny:27,small:48,medium:54,large:72},R={tiny:14.85,small:26.4,medium:29.7,large:39.6},z=[],q=(V,U,K=5)=>z.some(J=>!(V+U+K<J.x||V>J.x+J.width+K));f.forEach((V,U)=>{const K=P[U],J=C[U],ie=U===b-1?3:U===0?1:2;for(let Q=0;Q<ie;Q++){const te=U*100+Q*37,ce=te*17%G.length,re=G[ce],ee=L[re],oe=R[re];let se=0,ue=0,pe=!1;for(;se<20&&!pe;){const fe=(te*13+se*19)%100/100,ge=K+J*.15,he=K+J*.85-oe;ue=ge+(he-ge)*fe,q(ue,oe)||(pe=!0),se++}if(pe){z.push({x:ue,width:oe});const fe=s-ee;m.push(y(Y,{x:ue,y:fe,children:Rie(re)}))}}});const j=Math.max(1,Math.floor(b/1.5));for(let V=0;V<j;V++){const U=V*11+b*5+1,K=U%2===0?"single":"double",J=w[K],Z=M-S-J.width,ie=S+U*7%100/100*Z,Q=U*13%40;m.push(y(Lie,{type:K,x:ie,y:Q,width:J.width,height:J.height}))}}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,k(Y,{children:[y(Y,{children:m}),y(Y,{children:v}),y(qe,{children:p}),y(je,{children:g})]})]})};We("sequence-mountain",{component:wS,composites:["title","item"]});const xS=e=>{const{Title:t,Item:n,data:r,gap:i=10,width:o=700,pyramidWidth:s,itemHeight:a=60,options:l}=e,{title:c,desc:u,items:h=[]}=r,f=t?y(t,{title:c,desc:u}):null;if(h.length===0)return y(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:f});const d=5,p=Et(l.themeConfig),g=30,m=[],v=[],b=[],_=[],x=s!=null?s:o*.6,w=o-x,C=a*1.2,P=h.length*C+(h.length-1)*i;return h.forEach((O,$)=>{const S=[$],M=$===0,I=Fe(l,[$])||p.colorPrimary,{points:E,topWidth:A,bottomWidth:T}=Nie(x,C,i,h.length,$),N=gS(E,d),H=pS(N,"AMOUNT",10),D=x/2,B=$*(C+i),F=(C-a)/2,X=B+F,G=D+A/2,L=D+T/2,z=G-d,q=w+d,j=a,V=z+q,U=D-g/2,K=B+C/2-g/2+(M?8:0),J=L,Z=V-L,ie=X;b.push(y(Le,{x:z,y:X,width:q,height:j,ry:"10",fill:p.colorPrimaryBg,"data-element-type":"shape"}));const Q=`${I}-pyramid-${$}`;v.push(y(Ke,{children:k("linearGradient",{id:Q,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[y("stop",{offset:"0","stop-color":I}),y("stop",{offset:"100%","stop-color":be.mix(I,"#fff",40).toHexString()})]})}),y(Yt,{points:H,fill:`url(#${Q})`,y:B,"data-element-type":"shape"})),_.push(y(Ft,{indexes:S,x:U,y:K,size:g,fill:"#fff"})),m.push(y(n,{indexes:S,datum:O,data:r,x:J,y:ie,width:Z,height:a,positionV:"middle"}))}),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,k(Y,{width:o,height:P,children:[y(Y,{children:b}),y(Y,{children:v}),y(Y,{children:_}),y(qe,{children:m}),y(je,{})]})]})};function Nie(e,t,n,r,i){const o=e/2,s=r*t+(r-1)*n,a=i*(t+n),l=a+t,c=a/s*e,u=l/s*e;let h;if(i===0){const f={x:o,y:0},d={x:o+u/2,y:t},p={x:o-u/2,y:t};h=[f,d,p]}else{const f={x:o+c/2,y:0},d={x:o+u/2,y:t},p={x:o-u/2,y:t},g={x:o-c/2,y:0};h=[f,d,p,g]}return{points:h,topWidth:c,bottomWidth:u}}We("sequence-pyramid",{component:xS,composites:["title","item"]});const rs={iconSize:50,roadWidth:24,outerRadius:60,rowWidth:400,spacing:30,colorDefault:"#666666"},CS=(e,t)=>`M ${e} ${t}`,vt=(e,t)=>`L ${e} ${t}`,Hi=(e,t,n,r)=>`A ${e} ${e} 0 0 ${t} ${n} ${r}`,zie=(e,{roadWidth:t,innerRadius:n,outerRadius:r})=>{const i=(t+n*2)*e;return{y1:i,y2:i+t,y3:i+t+n,y4:i+t+n*2,y5:i+r*2}};function Die({i:e,direction:t,x:n,y:r,color:i,data:o,itemBounds:s,item:a,Item:l,flipped:c}){const{iconSize:u}=rs,h=t==="left",f=h?n.x4-u/2:n.x3-u/2,d=r.y3-u/2,p=h?n.x6+rs.spacing:n.x1-rs.spacing-s.width,g=r.y3-s.height/2,m=h?c?"flipped":"normal":c?"normal":"flipped";return{icon:y(Dr,{indexes:[e],x:f,y:d,size:u,fill:i}),label:y(De,{width:40,x:h?f-50:f+u+10,y:d+u/2-15,fontSize:30,fill:i,alignHorizontal:h?"right":"left",children:String(e+1).padStart(2,"0")}),item:y(l,{indexes:[e],data:o,datum:a,x:p,y:g,positionH:m})}}function qie({direction:e,x:t,y:n,color:r,elements:i}){const o=e==="left";i.push(y(Yre,{x:o?t.x6+10:t.x1-20,y:n.y3-5,width:10,height:8,rotation:o?90:-90,colorPrimary:r,"data-element-type":"shape"}))}const PS=e=>{const{Title:t,Item:n,data:r,spacing:i=rs.spacing,options:o,flipped:s=!1}=e,{title:a,desc:l,items:c=[]}=r,u=t?y(t,{title:a,desc:l}):null,h=ae(y(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),{roadWidth:f,outerRadius:d,rowWidth:p,colorDefault:g}=rs,m=f/2,v=d-f,b=(h.width+i)*2+p,_=h.width+i,x=_+d,w=_+p-d,P=w+v+f,O=_+p/2,$=[],S=[],M=[],I=[],E=[],A=[],T=[];for(let D=0;D<c.length;D++){const B=Fe(o,[D])||g,F=D%2===0?"right":"left",X=D===0,G=D===c.length-1,L=zie(D,{roadWidth:f,innerRadius:v,outerRadius:d});if(F==="right"){const j=X?[P,L.y1]:[w,L.y1],V=[x,L.y1],U=[x,L.y5],K=X?[P,L.y2]:[w,L.y2],J=[x,L.y2];if($.push(X?CS(P,L.y1+m):vt(w,L.y1+m),vt(x,L.y1+m),Hi(d-m,0,x,L.y4+m)),S.push(X?CS(...j):vt(...j),vt(...V),Hi(d,0,...U)),M.push(vt(...K),vt(...J),Hi(v,1,...J)),G){const Z=f/2;S.push(vt(O,L.y5),vt(O,L.y5+Z),vt(O+f,L.y5-Z),vt(O,L.y4-Z),vt(O,L.y4),vt(x,L.y4)),$.push(vt(O,L.y4+m))}}else{const j=[x,L.y2],V=[w,L.y2],U=[w,L.y4],K=[x,L.y1],J=[w,L.y1];if($.push(vt(w,L.y1+m),Hi(d-m,1,w,L.y4+m)),S.push(vt(...j),vt(...V),Hi(v,1,...U)),M.push(vt(...K),vt(...J),Hi(d,0,...J)),G){const Z=f/2;S.push(vt(O,L.y4),vt(O,L.y4-Z),vt(O-f,L.y4+Z),vt(O,L.y5+Z),vt(O,L.y5),vt(w,L.y5)),$.push(vt(O,L.y4+m))}}qie({direction:F,x:{x1:_,x6:P},y:L,color:B,elements:T});const{icon:R,label:z,item:q}=Die({i:D,direction:F,x:{x1:_,x3:x,x4:w,x6:P},y:L,color:B,data:r,itemBounds:h,item:c[D],Item:n,flipped:s});I.push(R),E.push(z),A.push(q)}const N=[...S,...M.reverse(),"Z"],H=c.length*(f+v*2)+f*1.5;return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,k(Y,{width:b,height:h.height<=d*2?H:H+h.height-d*2,children:[y(Pe,{width:p,height:H,d:N.join(" "),fill:g,stroke:g,strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),y(Pe,{d:$.join(" "),stroke:"white",fill:"none",strokeWidth:"3",strokeDasharray:"8 8",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),k(tt,{children:[I,E,A,T]})]})]})};We("sequence-roadmap-vertical",{component:PS,composites:["title","item"]});const OS=e=>{const{Title:t,Item:n,data:r,gap:i=40,itemsPerRow:o=3,rowGap:s=80,options:a}=e,{title:l,desc:c,items:u=[]}=r,h=t?y(t,{title:l,desc:c}):null,f=Ot(a),d=ae(y(ne,{indexes:[0]})),p=ae(y(n,{indexes:[0],data:r,datum:u[0],positionH:"center"})),g=[],m=[],v=[],b=25,_=25;if(u.forEach((x,w)=>{const C=Math.floor(w/o),P=w%o,O=C%2===1,S=(O?o-1-P:P)*(p.width+i),M=C*(p.height+s),I=[w];if(m.push(y(n,{indexes:I,datum:x,data:r,x:S,y:M,positionH:"center"})),g.push(y(nt,{indexes:I,x:S+(p.width-d.width)/2,y:M+p.height+10})),w===0&&g.push(y(ne,{indexes:I,x:S+(p.width-d.width)/2,y:M-d.height-10})),w<u.length-1){const E=Math.floor((w+1)/o),A=(w+1)%o,H=(E%2===1?o-1-A:A)*(p.width+i);if(C===E){const B=O,F=B?H+p.width+(i-b)/2:S+p.width+(i-b)/2,X=M+p.height/2-_/2;v.push(y(lm,{x:F,y:X,width:b,height:_,colorPrimary:f,rotation:B?180:0})),g.push(y(ne,{indexes:[w+1],x:F+(b-d.width)/2,y:M-d.height-10}))}else{const B=S+p.width/2-b/2,F=M+p.height+(s-_)/2;v.push(y(lm,{x:B,y:F,width:b,height:_,colorPrimary:f,rotation:90})),g.push(y(ne,{indexes:[w+1],x:B+(b-d.width)/2,y:F+(_-d.height)/2}))}}}),u.length>0){const x=u.length-1,w=Math.floor(x/o),C=x%o,$=(w%2===1?o-1-C:C)*(p.width+i),S=w*(p.height+s);g.push(y(ne,{indexes:[u.length],x:$+(p.width-d.width)/2,y:S+p.height+d.height+20}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,k(Y,{children:[y(Y,{children:v}),y(qe,{children:m}),y(je,{children:g})]})]})};We("sequence-snake-steps",{component:OS,composites:["title","item"]});const SS=e=>{const{Title:t,Item:n,data:r,options:i,gap:o=16,perspectiveFactor:s=.2,width:a=720}=e,{title:l,desc:c,items:u=[]}=r,h=t,f=h?y(h,{title:l,desc:c}):null;if(u.length===0)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,y(Y,{children:y(je,{children:y(ne,{indexes:[0],x:0,y:0})})})]});const d=Ot(i),p=ae(y(ne,{indexes:[0]})),g=ae(y(n,{indexes:[0],data:r,datum:u[0]||{},positionH:"center"})),m=12,v=Math.min(a*.1,100),b=Math.min(a*.45,Math.max(80,a-g.width-m-v)),_=Math.max(24,b*s*.35),x=56,w=x*.7,C=u.length>1?(x-w)/(u.length-1):0,P=Math.max(p.height+_+20,_+28),O=b/2,$=b+v+m,S=u.map((ce,re)=>x-C*re),M=u.map((ce,re)=>Math.max(_*(1-re*.05),_*.7)),I=[],E=[],A=u.length-1;I[A]=P,E[A]=0;for(let ce=A-1;ce>=0;ce-=1)E[ce]=E[ce+1]+M[ce]+o,I[ce]=I[ce+1]+M[ce]+S[ce+1]+o;const T=E[0]||M[0]||_,N=b*(.55+s*.1),H=b-N,D=u.map((ce,re)=>{const ee=T===0?1:E[re]/T;return N+H*ee}),B=D.map(ce=>{const re=O+ce/2;return Math.max(0,$-m-re)}),F=[],X=[],G=[],L=[],R=[],z=0,q=(I[0]||P)+(S[0]||x),j=q-z,V=35,K=(D[A]||N)*.8,J=K*.65,Z=(D[0]||b)*.9;R.push(y(Yt,{points:[{x:O,y:z},{x:O+K/2,y:z+V},{x:O+J/2,y:z+V},{x:O+Z/2,y:q},{x:O-Z/2,y:q},{x:O-J/2,y:z+V},{x:O-K/2,y:z+V}],fill:"rgba(0,0,0,0.12)",width:Z,height:j,"data-element-type":"shape"}));let ie=I[A]+S[A]/2;u.forEach((ce,re)=>{const ee=[re],oe=D[re],se=M[re],ue=O-oe/2,pe=S[re],fe=I[re],ge=fe-se,he=fe+pe/2,xe=Fe(i,ee)||d;F.push(y(Le,{x:ue,y:fe,width:oe,height:pe,fill:xe,"data-element-type":"shape"}),y(Yt,{points:[{x:ue,y:fe},{x:ue+oe,y:fe},{x:ue+oe-se/2,y:ge},{x:ue+se/2,y:ge}],fill:xe,opacity:"0.3",width:oe,height:se,"data-element-type":"shape"}),y(De,{x:ue,y:fe,width:oe,height:pe,fontSize:pe/2,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:"#ffffff",children:String(re+1).padStart(2,"0")}));const $e=ue+oe,Me=he,Ce=B[re],Te=$e+Ce;L.push(y(Pe,{d:`M ${$e} ${Me} L ${Te} ${Me}`,stroke:xe,strokeWidth:2,fill:"none",width:Ce,height:2,"data-element-type":"shape"}),y(Pe,{d:`M ${Te} ${Me} L ${Te} ${Me}`,stroke:xe,strokeWidth:6,strokeLinecap:"round",width:1,height:1,"data-element-type":"shape"}));const Ne=he-g.height/2;X.push(y(n,{indexes:ee,datum:ce,data:r,x:$,y:Ne,positionV:"middle"})),G.push(y(nt,{indexes:ee,x:$+g.width+10,y:Ne+g.height/2-p.height/2})),re===0?G.push(y(ne,{indexes:[0],x:$+(g.width-p.width)/2,y:Ne-p.height-12})):G.push(y(ne,{indexes:ee,x:$+(g.width-p.width)/2,y:(ie+he)/2-p.height/2})),ie=he});const te=ie-g.height/2;return G.push(y(ne,{indexes:[u.length],x:$+(g.width-p.width)/2,y:te+g.height+12})),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,k(Y,{children:[y(Y,{children:R}),y(Y,{children:F}),y(Y,{children:L}),y(qe,{children:X}),y(je,{children:G})]})]})};We("sequence-stairs-front",{component:SS,composites:["title","item"]});const $S=e=>{const{Title:t,Item:n,data:r,gap:i=40,options:o}=e,{title:s,desc:a,items:l=[]}=r,c=t?y(t,{title:s,desc:a}):null,u=Ot(o),h=ae(y(ne,{indexes:[0]})),f=ae(y(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),d=[],p=[],g=[],m=25,v=25,b=Math.max(h.height+20,30);if(l.forEach((_,x)=>{const w=x*(f.width+i),C=[x];if(p.push(y(n,{indexes:C,datum:_,data:r,x:w,y:b,positionH:"center"})),d.push(y(nt,{indexes:C,x:w+(f.width-h.width)/2,y:b+f.height+10})),x===0?d.push(y(ne,{indexes:C,x:w+(f.width-h.width)/2,y:b-h.height-10})):d.push(y(ne,{indexes:C,x:w-i/2-h.width/2,y:b-h.height-10})),x<l.length-1){const P=w+f.width+(i-m)/2,O=b+f.height/2-v/2;g.push(y(lm,{x:P,y:O,width:m,height:v,colorPrimary:u}))}}),l.length>0){const _=(l.length-1)*(f.width+i);d.push(y(ne,{indexes:[l.length],x:_+f.width+(i-h.width)/2,y:b-h.height-10}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,k(Y,{children:[y(Y,{children:g}),y(qe,{children:p}),y(je,{children:d})]})]})};We("sequence-steps",{component:$S,composites:["title","item"]});const ES=e=>{const{Title:t,Item:n,data:r,gap:i=10,options:o}=e,{title:s,desc:a,items:l=[]}=r,c=t?y(t,{title:s,desc:a}):null,u=Ot(o),h=t3(o),f=ae(y(ne,{indexes:[0]})),d=ae(y(n,{indexes:[0],data:r,datum:l[0],positionH:"normal"})),p=[],g=[],m=[],v=10,b=v+70+10,_=b+30,x=6;if(l.length>1){const w=d.height/2+x,C=(l.length-1)*(d.height+i)+d.height/2-x,P=`M ${b} ${w} L ${b} ${C}`,O="gradient-timeline-line",$=C-w,S=l.map((M,I)=>{const A=(I*(d.height+i)+d.height/2-w)/$*100,T=Fe(o,[I]);return y("stop",{offset:`${A}%`,stopColor:T||u})});m.push(k(tt,{children:[y(Ke,{children:y("linearGradient",{id:O,x1:b,y1:w,x2:b,y2:C,gradientUnits:"userSpaceOnUse",children:S})}),y(Pe,{d:P,stroke:`url(#${O})`,strokeWidth:2,width:1,height:C-w})]}))}if(l.forEach((w,C)=>{const P=C*(d.height+i),O=P+d.height/2,$=[C];m.push(y(De,{x:v,y:O,width:70,fontSize:18,fontWeight:"bold",alignHorizontal:"left",alignVertical:"middle",fill:h[C%h.length],children:`STEP ${C+1}`})),g.push(y(n,{indexes:$,datum:w,data:r,x:_,y:P,positionH:"normal"})),m.push(y(Ze,{x:b-x,y:O-x,width:x*2,height:x*2,fill:h[C%h.length]})),p.push(y(nt,{indexes:$,x:_-f.width-10,y:P+(d.height-f.height)/2})),C===0?p.push(y(ne,{indexes:$,x:_+(d.width-f.width)/2,y:P-f.height-10})):p.push(y(ne,{indexes:$,x:_+(d.width-f.width)/2,y:P-i/2-f.height/2}))}),l.length>0){const w=(l.length-1)*(d.height+i);p.push(y(ne,{indexes:[l.length],x:_+(d.width-f.width)/2,y:w+d.height+10}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,k(Y,{children:[y(Pt,{children:m}),y(qe,{children:g}),y(je,{children:p})]})]})};We("sequence-timeline",{component:ES,composites:["title","item"]});const pm=120,gm=108,Xl=30,Hie="M4.49144e-05 34.4898C4.49144e-05 37.8786 0.848973 41.152 2.43571 44.2444C4.23516 47.7642 6.98514 51.0472 10.517 54.0009C21.331 63.047 39.4615 68.9814 59.9991 68.9814C80.5385 68.9814 98.6672 63.047 109.483 54.0009C113.013 51.0472 115.765 47.7642 117.564 44.2444C119.149 41.152 120 37.8786 120 34.4898C120 15.4407 93.1364 0 59.9991 0C26.8635 0 4.49144e-05 15.4407 4.49144e-05 34.4898Z",jie="M4.49145e-05 34.4898V53.9991C4.49145e-05 57.3879 0.848973 60.6613 2.43571 63.7556C9.75425 78.0545 32.7562 88.4907 59.999 88.4907C87.2438 88.4907 110.246 78.0545 117.564 63.7556C119.149 60.6613 120 57.3879 120 53.9991V34.4898C120 37.8786 119.149 41.152 117.564 44.2444C115.765 47.7642 113.013 51.0472 109.483 54.0009C98.6672 63.047 80.5385 68.9814 59.999 68.9814C39.4615 68.9814 21.3309 63.047 10.5169 54.0009C6.98509 51.0472 4.23516 47.7642 2.43567 44.2444C0.848928 41.152 4.49145e-05 37.8786 4.49145e-05 34.4898Z",Fie="M0 53.9991V73.5102C0 92.5593 26.8634 108 59.999 108C93.1363 108 120 92.5593 120 73.5102V53.9991C120 57.3879 119.149 60.6613 117.564 63.7556C110.246 78.0545 87.2438 88.4907 59.999 88.4907C32.7562 88.4907 9.75425 78.0545 2.43571 63.7556C0.848973 60.6613 0 57.3879 0 53.9991Z",MS=k("filter",{id:"sequence-zigzag-pucks-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[y("feOffset",{dx:"-7",dy:"7",in:"SourceAlpha",result:"offset"}),y("feGaussianBlur",{stdDeviation:"7.5",in:"offset",result:"blurred"}),y("feColorMatrix",{in:"blurred",type:"matrix",values:`0 0 0 0 0
137
+ `;return k(Y,{children:[y(Ke,{children:k(tt,{children:[k("linearGradient",{id:"basePlateTopGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[y("stop",{offset:"0%",stopColor:"#fafafa",stopOpacity:1}),y("stop",{offset:"50%",stopColor:"#ffffff",stopOpacity:.98}),y("stop",{offset:"100%",stopColor:"#ececec",stopOpacity:.95})]}),k("linearGradient",{id:"basePlateFrontGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[y("stop",{offset:"0%",stopColor:"#e0e0e0",stopOpacity:.95}),y("stop",{offset:"50%",stopColor:"#d2d2d2",stopOpacity:.93}),y("stop",{offset:"100%",stopColor:"#c5c5c5",stopOpacity:.9})]}),k("linearGradient",{id:"basePlateSideGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[y("stop",{offset:"0%",stopColor:"#b8b8b8",stopOpacity:.92}),y("stop",{offset:"50%",stopColor:"#c0c0c0",stopOpacity:.88}),y("stop",{offset:"100%",stopColor:"#adadad",stopOpacity:.85})]})]})}),y(Pe,{id:"base-plate-front",d:b,fill:"url(#basePlateFrontGradient)",stroke:"#c5c5c5",strokeWidth:.3,opacity:.92}),y(Pe,{id:"base-plate-side",d:v,fill:"url(#basePlateSideGradient)",stroke:"#aaaaaa",strokeWidth:.3,opacity:.88}),y(Pe,{id:"base-plate-top",d:m,fill:"url(#basePlateTopGradient)",stroke:"#e5e5e5",strokeWidth:.5,opacity:.93})]})},PO=e=>{const{Title:t,Item:n,data:r,options:i,cylinderRx:o=28,cylinderRy:s=18,baseHeight:a=120,heightIncrement:l=40,depthSpacing:c=60,itemVerticalAlign:u="top",itemVerticalOffset:h=-12,firstDecorationWidth:f=90}=e,{title:d,desc:p,items:g=[]}=r,m=t?y(t,{title:d,desc:p}):null,v=ae(y(n,{indexes:[0],data:r,datum:g[0],positionH:"center"})),b=ae(y(ne,{indexes:[0]})),w=Pt(i),x=10,_=Math.max(6,c*.15),C=Gie(g.length,v,o,a,l,c,f,x),{startY:P,leftItemAlignedX:S,rightItemAlignedX:$,cylinderAreaStartX:O}=C,M=[],A=[];g.forEach((G,L)=>{const R=Fe(i,[L])||w;M.push(...Uie(L,R));const z=Yie(L,o,a,l,_,P,O),q=Kie(L,z,o,s),{itemPos:j,lineStartX:V,lineEndX:U,lineY:K}=Xie(L,z,v,o,S,$,u,h,x),J=Zie(L,V,U,K,R);q.push(...J);const Z=y(n,{indexes:[L],datum:G,data:r,x:j.x,y:j.y,positionH:L%2===0?"flipped":"normal"}),ie=[y(nt,{indexes:[L],x:j.x+v.width/2-b.width/2,y:j.y+v.height+10}),y(ne,{indexes:[L],x:j.x+v.width/2-b.width/2,y:j.y-b.height-10})];A[L]={cylinderNodes:q,itemNode:Z,btnNodes:ie,itemX:j.x,itemY:j.y}});let E=1/0,I=1/0,T=-1/0,N=-1/0;A.forEach(G=>{const{itemX:L,itemY:R}=G;E=Math.min(E,L),I=Math.min(I,R),T=Math.max(T,L+v.width),N=Math.max(N,R+v.height)});const H=T-E,D=N-I,W=[y(Ke,{children:M})],F=[],X=Qie(g.length,o,O,P,_);X&&W.push(X);for(let G=g.length-1;G>=0;G--){const L=A[G];L&&(W.push(k(Y,{children:[y(Y,{children:L.cylinderNodes}),L.itemNode]})),F.push(...L.btnNodes))}if(g.length>0){const G=g.length%2===0,L=Math.floor(g.length/2),R=Kl(L,o),z=Zl(G,L,o),q=O+z+R,j=P-g.length*_;F.push(y(ne,{indexes:[g.length],x:q,y:j-100}))}return k(ve,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,k(Y,{width:H,height:D,children:[y(qe,{children:W}),y(je,{children:F})]})]})};We("sequence-cylinders-3d",{component:PO,composites:["title","item"]});const ot={WIDTH:160,HEIGHT:260,ARROW_HEIGHT:148,ARROW_WIDTH:100,LINE_X:100,RECT_X:0,RECT_Y:80,RECT_WIDTH:100,RECT_HEIGHT:130},Fn={SIZE:8,MAX_COUNT:40,MIN_COUNT:5,ARROW_RATIO:.6,MIN_ARROW_COUNT:3};function Jie(e,t,n){return(e+t*7+n*13)%100}function eoe(e){const t=Math.ceil(Math.sqrt(e*1.5)),n=Math.ceil(e/t);return{cols:t,rows:n}}function toe(e,t,n,r,i,o,s,a){const l=Math.max(i,Math.min(e+n,o)),c=Math.max(s,Math.min(t+r,a));return{x:l,y:c}}function SO({count:e,rectX:t,rectY:n,rectWidth:r,rectHeight:i,seed:o}){const s=[],a=Fn.SIZE/2,{cols:l,rows:c}=eoe(e),u=(r-a*2)/(l+1),h=(i-a*2)/(c+1);let f=0;for(let d=0;d<c&&f<e;d++)for(let p=0;p<l&&f<e;p++){const g=Jie(o,d,p),m=g%16-8,v=g*3%12-6,b=d%2===1?u/2:0,w=t+a+(p+1)*u+b,x=n+a+(d+1)*h,{x:_,y:C}=toe(w,x,m,v,t+a,t+r-a,n+a,n+i-a);s.push({x:_,y:C,colorIndex:f}),f++}return s}function noe(e,t){if(t<=1)return Fn.MAX_COUNT;const n=e/(t-1),r=Fn.MAX_COUNT-Fn.MIN_COUNT;return Math.round(Fn.MAX_COUNT-r*n)}function roe(){const s={topLeft:{x:40,y:25},topRight:{x:160,y:75},bottomLeft:{x:40,y:205},bottomRight:{x:160,y:255}},a=[];for(let l=0;l<=12;l++){const c=l/12,u={x:s.topLeft.x+(s.bottomLeft.x-s.topLeft.x)*c,y:s.topLeft.y+(s.bottomLeft.y-s.topLeft.y)*c},h={x:s.topRight.x+(s.bottomRight.x-s.topRight.x)*c,y:s.topRight.y+(s.bottomRight.y-s.topRight.y)*c};a.push(`M${u.x} ${u.y}L${h.x} ${h.y}`);const f={x:s.topLeft.x+(s.topRight.x-s.topLeft.x)*c,y:s.topLeft.y+(s.topRight.y-s.topLeft.y)*c},d={x:s.bottomLeft.x+(s.bottomRight.x-s.bottomLeft.x)*c,y:s.bottomLeft.y+(s.bottomRight.y-s.bottomLeft.y)*c};a.push(`M${f.x} ${f.y}L${d.x} ${d.y}`)}return a.join("")}function OO(e,t){return e.map(n=>{const r=Fe(t,[n.colorIndex]);return y(Pe,{d:"M4 0L8 4L4 8L0 4Z",fill:r,x:n.x,y:n.y,width:Fn.SIZE,height:Fn.SIZE,"data-element-type":"shape"})})}function ioe(e,t,n,r,i){return k(Y,{x:t,y:0,width:ot.WIDTH,height:ot.HEIGHT,children:[k(Ct,{children:[y(Pe,{d:roe(),stroke:"#D9D9D9",strokeWidth:2}),y(Pe,{d:`M${ot.LINE_X} 25V260`,stroke:"#BFBFBF",strokeWidth:2,strokeLinecap:"round"}),y(Le,{x:ot.RECT_X,y:ot.RECT_Y,width:ot.RECT_WIDTH,height:ot.RECT_HEIGHT,fill:"#FFCB0E",fillOpacity:.2})]}),y(tt,{children:OO(r,i)}),y(De,{x:ot.LINE_X-25,y:0,width:50,height:20,fontSize:20,fontWeight:"bold",alignHorizontal:"center",alignVertical:"top",fill:n,children:String(e+1).padStart(2,"0")})]})}function ooe(e,t){const n=ot.RECT_Y+ot.RECT_HEIGHT/2-ot.ARROW_HEIGHT/2,r=Math.max(Math.round(Fn.MIN_COUNT*Fn.ARROW_RATIO),Fn.MIN_ARROW_COUNT),i=SO({count:r,rectX:0,rectY:14,rectWidth:57,rectHeight:120,seed:999});return k(Y,{x:e+ot.WIDTH,y:n,children:[y(Pe,{d:"M0 13.9679H57.1429V0L100 74L57.1429 148V134.032H0V13.9679Z",width:ot.ARROW_WIDTH,height:ot.ARROW_HEIGHT,fill:"#FFCB0E",fillOpacity:.2,"data-element-type":"shape"}),y(tt,{children:OO(i,t)})]})}const $O=e=>{const{Title:t,Item:n,data:r,gap:i=20,options:o}=e,{title:s,desc:a,items:l=[]}=r,c=t?y(t,{title:s,desc:a}):null,u=ae(y(ne,{indexes:[0]})),h=ae(y(n,{indexes:[0],data:r,datum:l[0],width:ot.WIDTH,positionH:"center"})),f=[],d=[],p=[],g=ot.HEIGHT+i,m=g+h.height+10;if(l.forEach((v,b)=>{const w=b*ot.WIDTH,x=[b],_=Fe(o,x),C=noe(b,l.length),P=SO({count:C,rectX:ot.RECT_X,rectY:ot.RECT_Y,rectWidth:ot.RECT_WIDTH,rectHeight:ot.RECT_HEIGHT,seed:b*100});f.push(ioe(b,w,_,P,o)),b===l.length-1&&f.push(ooe(w,o)),d.push(y(n,{indexes:x,datum:v,data:r,width:ot.WIDTH,x:w+ot.LINE_X-ot.WIDTH/2,y:g,positionH:"center"})),p.push(y(nt,{indexes:x,x:w+ot.LINE_X-u.width/2,y:m})),b<l.length-1&&p.push(y(ne,{indexes:[b+1],x:w+ot.WIDTH-u.width/2,y:m}))}),l.length>0){p.unshift(y(ne,{indexes:[0],x:-u.width/2,y:m}));const v=(l.length-1)*ot.WIDTH;p.push(y(ne,{indexes:[l.length],x:v+ot.WIDTH-u.width/2,y:m}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,k(Y,{width:ot.WIDTH*l.length+ot.ARROW_WIDTH,height:ot.HEIGHT+i+h.height,children:[y(Y,{children:f}),y(qe,{children:d}),y(je,{children:p})]})]})};We("sequence-filter-mesh",{component:$O,composites:["title","item"]});const Ql=e=>Math.round(e*1e10)/1e10,xm=(e,t)=>Ql(Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))),Jl=Math.PI,soe=Jl*2,aoe=(e,t)=>{const n=t-e;return n>Jl&&n<soe||n<0&&n>-Jl?-1:1},loe=(e,t,n,r,i,o)=>{const s=Math.atan2(e.y-t.y,e.x-t.x),a=Math.atan2(n.y-t.y,n.x-t.x),l=Math.acos((r*r+o*o-i*i)/(2*r*o)),c=1/Math.tan(l/2),u=aoe(s,a),h=s+u*l/2;return{prev:s,next:a,main:l,vel:c,dir:u,bis:h}},Cm=Math.PI,EO=(e,t,n)=>e.reduce((r,i)=>{const{x:o,y:s,angle:{prev:a,next:l},arc:{x:c,y:u,radius:h}}=i,f=i.angle.dir*-1,d=a+f*Cm/2,p=(f*Cm+l-a)%Cm,g=n-1,m=p/g,v=[];if(!m)return r.concat({x:o,y:s});for(let b=0;b<=g;b++)v.push({x:c+Math.cos(d+m*b)*h,y:u+Math.sin(d+m*b)*h});return r.concat(v)},[]),MO=(e,t=0)=>{const n=e.length,r=[],i=[],o=[];e.forEach((l,c)=>{const u=e[(c-1+n)%n],h=e[(c+1)%n],f=xm(u,l),d=xm(u,h),p=xm(l,h),g=loe(u,l,h,f,d,p);g.main===0&&(g.main=Number.EPSILON,g.vel=Number.MAX_SAFE_INTEGER),g.main===Jl&&(g.vel=0);const m={x:l.x,y:l.y,angle:g,offset:0,arc:{radius:t,hit:t,lim:Math.min(p/g.vel,f/g.vel,l.r||0)},in:{length:f,rest:f},out:{length:p,rest:p},locked:!1,id:c,get prev(){return r[(c-1+n)%n]},get next(){return r[(c+1)%n]}};isNaN(g.main)&&(g.main=0,g.bis=g.prev||g.next,o.push(m)),typeof l.r=="number"&&(l.r===0?o.push(m):i.push(m)),r.push(m)}),o.forEach(l=>{l.angle.vel=0,l.arc.radius=0,Pm(l)}),r.forEach(l=>{l.arc.hit=Math.min(l.out.rest/(l.angle.vel+l.next.angle.vel),l.in.rest/(l.angle.vel+l.prev.angle.vel))});let s=ec(i);for(;s;)coe(s),s=ec(i);for(s=ec(r);s;)uoe(s,t),s=ec(r);const a=r.map(l=>{const c=l.arc.radius/Math.sin(l.angle.main/2);return{id:l.id,x:l.x,y:l.y,angle:{main:Ql(l.angle.main),prev:l.angle.prev,next:l.angle.next,bis:l.angle.bis,dir:l.angle.dir},offset:Ql(l.offset),arc:{radius:Ql(l.arc.radius),x:l.x+(Math.cos(l.angle.bis)*c||0),y:l.y+(Math.sin(l.angle.bis)*c||0)},in:{length:l.in.length,x:l.x+Math.cos(l.angle.prev)*l.offset,y:l.y+Math.sin(l.angle.prev)*l.offset},out:{length:l.out.length,x:l.x+Math.cos(l.angle.next)*l.offset,y:l.y+Math.sin(l.angle.next)*l.offset},get prev(){return a[(l.id-1+n)%n]},get next(){return a[(l.id+1)%n]}}});return a},coe=e=>{const{prev:t,next:n}=e;t.locked&&!n.locked?e.arc.radius=Math.min(Math.max((e.out.length-n.arc.lim*n.angle.vel)/e.angle.vel,e.out.length/(e.angle.vel+n.angle.vel)),e.in.rest/e.angle.vel,e.arc.lim):n.locked&&!t.locked?e.arc.radius=Math.min(Math.max((e.in.length-t.arc.lim*t.angle.vel)/e.angle.vel,e.in.length/(e.angle.vel+t.angle.vel)),e.out.rest/e.angle.vel,e.arc.lim):n.locked&&t.locked?e.arc.radius=Math.min(e.in.rest/e.angle.vel,e.out.rest/e.angle.vel,e.arc.lim):e.arc.radius=Math.min(Math.max((e.in.length-t.arc.lim*t.angle.vel)/e.angle.vel,e.in.length/(e.angle.vel+t.angle.vel)),Math.max((e.out.length-n.arc.lim*n.angle.vel)/e.angle.vel,e.out.length/(e.angle.vel+n.angle.vel)),e.arc.lim),Pm(e)},uoe=(e,t)=>{if(t>e.arc.hit){const{prev:n,next:r}=e;n.locked&&!r.locked?e.arc.radius=Math.max(Math.min(e.in.rest/e.angle.vel,e.out.length/(e.angle.vel+r.angle.vel),e.arc.radius),0):r.locked&&!n.locked?e.arc.radius=Math.max(Math.min(e.out.rest/e.angle.vel,e.in.length/(e.angle.vel+n.angle.vel),e.arc.radius),0):r.locked&&n.locked?e.arc.radius=Math.max(Math.min(e.in.rest/e.angle.vel,e.out.rest/e.angle.vel,e.arc.radius),0):e.arc.radius=e.arc.hit}Pm(e)},Pm=e=>{const{prev:t,next:n}=e;e.offset=e.arc.radius*e.angle.vel,t.out.rest-=e.offset,e.in.rest-=e.offset,e.out.rest-=e.offset,n.in.rest-=e.offset,e.locked=!0,t.arc.hit=Math.min(t.in.length/(t.angle.vel+t.prev.angle.vel),t.in.rest/t.angle.vel,t.out.rest/t.angle.vel),n.arc.hit=Math.min(n.out.length/(n.angle.vel+n.next.angle.vel),n.out.rest/n.angle.vel,n.in.rest/n.angle.vel)},ec=e=>e.reduce((t,n)=>n.locked?t:t?n.arc.hit<t.arc.hit?n:t:n,null),hoe=6,Sm=32,foe=1.25,Om=25,AO=15,IO=e=>{const{Title:t,Item:n,data:r,gap:i=10,width:o=700,funnelWidth:s,itemHeight:a=60,minBottomRatio:l=.25,options:c}=e,{title:u,desc:h,items:f=[]}=r,d=t?y(t,{title:u,desc:h}):null;if(f.length===0)return y(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:d});const p=Et(c.themeConfig),g=s!=null?s:o*.55,m=o-g,v=a*foe,b=f.length*v+(f.length-1)*i,w=g*l,x=f.map((C,P)=>{const S=[P],$=Fe(c,[P])||p.colorPrimary,{points:O,topWidth:M}=doe(g,w,v,i,b,P),A=MO(O,hoe),E=EO(A,"AMOUNT",10),I=g/2,T=P*(v+i),N=I+M/2,H=N-Om,D=m+Om-10,W=(v-a)/2,F=T+W,X=N+AO,G=D-Om-AO,L=F,R=I-Sm/2,z=T+v/2-Sm/2,q=`${$.replace("#","")}-funnel-${P}`;return{background:y(Le,{x:H,y:F,width:D,height:a,ry:"8",fill:be($).setAlpha(.1).toRgbString(),"data-element-type":"shape"}),funnel:[y(Ke,{children:k("linearGradient",{id:q,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[y("stop",{offset:"0%",stopColor:be($).lighten(10).toString()}),y("stop",{offset:"100%",stopColor:$})]})}),y(Yt,{points:E,fill:`url(#${q})`,y:T,"data-element-type":"shape",style:{filter:"drop-shadow(0px 2px 3px rgba(0,0,0,0.15))"}})],icon:y(Ft,{indexes:S,x:R,y:z,size:Sm,fill:"#fff"}),item:y(n,{indexes:S,datum:C,data:r,x:X,y:L,width:G,height:a,positionV:"middle"}),btnRemove:y(nt,{indexes:S,x:H+D,y:F})}}),_=y(ne,{indexes:[f.length],x:o/2,y:b+10});return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,k(Y,{width:o,height:b+40,children:[y(Y,{children:x.map(C=>C.background)}),y(Y,{children:x.flatMap(C=>C.funnel)}),y(Y,{children:x.map(C=>C.icon)}),y(qe,{children:x.map(C=>C.item)}),k(je,{children:[x.map(C=>C.btnRemove),_]})]})]})};function doe(e,t,n,r,i,o){const s=e/2,a=o*(n+r),l=a+n,c=e-t,u=e-c*(a/i),h=e-c*(l/i),f={x:s-u/2,y:0},d={x:s+u/2,y:0},p={x:s+h/2,y:n},g={x:s-h/2,y:n};return{points:[f,d,p,g],topWidth:u,bottomWidth:h}}We("sequence-funnel",{component:IO,composites:["title","item"]});const TO=e=>{const{Title:t,Item:n,data:r,gap:i=30,cardPadding:o=10,options:s}=e,{title:a,desc:l,items:c=[]}=r,u=t?y(t,{title:a,desc:l}):null,h=Pt(s),f=Et({colorPrimary:h},s),d=ae(y(ne,{indexes:[0]})),p=ae(y(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),g=[],m=[],v=[],b=p.width+o*2,w=p.height+o*2+30,x=8,_=6,C=Math.max(d.height+20,40),P=40;if(c.forEach((S,$)=>{const O=$%2===0,M=$*(b+i);let A;O?$%4===2?A=C:A=C+P:A=C+P+60;const E=[$],I=Fe(s,E)||h;if(O){const D=I===h?f.colorPrimaryBg||"#E8F3FF":`${I}20`,W=y(Le,{x:M,y:A,width:b,height:w,fill:D,rx:20,ry:20});v.push(W)}m.push(y(n,{indexes:E,datum:S,data:r,x:M+o,y:A+o,positionH:"center",positionV:"normal"}));const T=c.length*x+(c.length-1)*_,N=M+(b-T)/2,H=A+p.height+20;for(let D=0;D<c.length;D++){const W=N+D*(x+_),F=D===$;v.push(y(Ze,{x:W,y:H,width:x,height:x,fill:F?I:"transparent",stroke:I,strokeWidth:2}))}g.push(y(nt,{indexes:E,x:M+(b-d.width)/2,y:A+w+10})),$===0?g.push(y(ne,{indexes:E,x:M+(b-d.width)/2,y:A-d.height-10})):g.push(y(ne,{indexes:E,x:M-i/2-d.width/2,y:C-d.height-10}))}),c.length>0){const S=[],O=i/2,M=6,A=C+P,E=0-O,I=A+w/2;S.push(`M ${E} ${I-M}`),c.forEach((q,j)=>{const V=j%2===0,U=j*(b+i);let K;V?j%4===2?K=C:K=C+P:K=C+P+60;const J=U-O,Z=U+b+O,ie=K-O,Q=K+w+O,te=K+w/2;V?(S.push(`L ${J} ${ie+35}`),S.push(`Q ${J} ${ie} ${J+35} ${ie}`),S.push(`L ${Z-35} ${ie}`),S.push(`Q ${Z} ${ie} ${Z} ${ie+35}`),S.push(`L ${Z} ${te-M}`)):(S.push(`L ${J} ${te}`),S.push(`L ${J} ${Q-35}`),S.push(`Q ${J} ${Q} ${J+35} ${Q}`),S.push(`L ${Z-35} ${Q}`),S.push(`Q ${Z} ${Q} ${Z} ${Q-35}`),S.push(`L ${Z} ${te+M}`))});const T=c.length-1,N=T%2===0,H=T*(b+i);let D;N?T%4===2?D=C:D=C+P:D=C+P+60;const W=H+b+O,F=D+w/2,X=S.join(" "),G="gradient-zigzag-path",L=Fe(s,[0])||h,R=Fe(s,[c.length-1])||h,z=c.map((q,j)=>{const V=j/(c.length-1)*100,U=Fe(s,[j])||h;return y("stop",{offset:`${V}%`,stopColor:U})});v.unshift(k(tt,{children:[y(Ke,{children:y("linearGradient",{id:G,x1:E,y1:I,x2:W,y2:F,gradientUnits:"userSpaceOnUse",children:z})}),y(Pe,{d:X,stroke:`url(#${G})`,strokeWidth:2,fill:"none",width:(c.length-1)*(b+i)+b+O*2,height:w+120})]})),v.unshift(y(Ze,{x:E-M,y:I-M,width:M*2,height:M*2,fill:"transparent",stroke:L,strokeWidth:2})),v.unshift(y(Ze,{x:W-M,y:F-M,width:M*2,height:M*2,fill:"transparent",stroke:R,strokeWidth:2}))}if(c.length>0){const $=(c.length-1)*(b+i);g.push(y(ne,{indexes:[c.length],x:$+b+(i-d.width)/2,y:C-d.height-10}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,k(Y,{children:[y(Ct,{children:v}),y(qe,{children:m}),y(je,{children:g})]})]})};We("sequence-horizontal-zigzag",{component:TO,composites:["title","item"]});var poe=Object.defineProperty,goe=Object.defineProperties,moe=Object.getOwnPropertyDescriptors,RO=Object.getOwnPropertySymbols,yoe=Object.prototype.hasOwnProperty,voe=Object.prototype.propertyIsEnumerable,kO=(e,t,n)=>t in e?poe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tc=(e,t)=>{for(var n in t||(t={}))yoe.call(t,n)&&kO(e,n,t[n]);if(RO)for(var n of RO(t))voe.call(t,n)&&kO(e,n,t[n]);return e},nc=(e,t)=>goe(e,moe(t));function boe(e){const{width:t,height:n,colorPrimary:r}=e,i=r,o=be.mix(r,"#000",20).toHexString(),s=be.mix(r,"#fff",50).toHexString(),a=be.mix(s,"#000",15).toHexString();function l(P,S){const O=[{position:.25,offset:.1},{position:.45,offset:-.02},{position:.6,offset:.04},{position:.75,offset:-.1}],M={x:0,y:S},A={x:P,y:S},E={x:P/2,y:0},I={x:P/2,y:S},T=S*.35,N=T/S,H={x:E.x*(1-N)+M.x*N,y:T},D={x:E.x,y:T},W={x:E.x*(1-N)+A.x*N,y:T},F=O.map(L=>{const R=H.x+(W.x-H.x)*L.position,z=T,q=S*L.offset;return{x:R,y:z+q,position:L.position,offset:L.offset}});F.sort((L,R)=>L.position-R.position);const X=F.filter(L=>L.x<=D.x),G=F.filter(L=>L.x>D.x);return{leftBottom:M,rightBottom:A,peak:E,centerBottom:I,snowLineY:T,leftEdge:H,centerSnow:D,rightEdge:W,leftRipples:X,rightRipples:G}}const{leftRipples:c,rightRipples:u,leftBottom:h,rightBottom:f,peak:d,centerBottom:p,leftEdge:g,centerSnow:m,rightEdge:v}=l(t,n),b=[d,g,...c,m],w=[d,m,...u,v],x=[g,...c,m,p,h],_=[m,...u,v,f,p],C=P=>P.map(S=>`${S.x},${S.y}`).join(" ");return k(Ct,nc(tc({},e),{children:[y("polygon",{points:C(b),fill:s}),y("polygon",{points:C(w),fill:a}),y("polygon",{points:C(x),fill:i}),y("polygon",{points:C(_),fill:o})]}))}function woe(e){const n={tiny:27,small:48,medium:54,large:72}[e]||54,r="#17C76F",i="#139B57",o="#737373",s=n*.7,a=n-s,l=s*.8,c=l,u=c/6,h=(c-u)/2,f=s;return k(Ct,{width:c,height:n,children:[y("ellipse",{cx:l/2,cy:s/2,rx:l/2,ry:s/2,fill:r,clipPath:"inset(0 50% 0 0)"}),y("ellipse",{cx:l/2,cy:s/2,rx:l/2,ry:s/2,fill:i,clipPath:"inset(0 0 0 50%)"}),y("rect",{x:h,y:f,width:u,height:a,fill:o})]})}function _oe(e){const{width:t,height:n}=e,r=t/2,i=n/2,o=Math.min(t,n)*.28,s=Math.min(t,n)*.14,a=Math.min(t,n)*.07,l=0,c=i-a/2,u=a*.4,h=8,f=Array.from({length:h},(d,p)=>{const g=360/h*p;return y("rect",{x:l,y:c,width:s,height:a,rx:u,ry:u,fill:"#FFCB0E",transform:`rotate(${g}, ${r}, ${i})`})});return k(Ct,nc(tc({},e),{children:[y("circle",{cx:r,cy:i,r:o,fill:"#FFCB0E"}),...f]}))}function xoe(e){return e.type==="single"?y(Ct,nc(tc({},e),{width:54,height:36,children:y("path",{d:"M10.2635 13.3806C11.0019 9.99045 12.7381 6.91002 15.2405 4.55004C17.743 2.19007 20.8929 0.662716 24.2701 0.171643C27.6473 -0.31943 31.0914 0.24912 34.143 1.80148C37.1946 3.35385 39.7087 5.81625 41.3501 8.86031C44.8835 9.0468 48.1994 10.6544 50.5684 13.3294C52.9373 16.0044 54.1653 19.5277 53.9821 23.1242C53.7989 26.7207 52.2195 30.0959 49.5914 32.5071C46.9634 34.9184 43.5019 36.1683 39.9684 35.9818H11.1517C4.93436 35.9818 0 30.9593 0 24.6309C0.0598447 21.8016 1.13799 19.093 3.02989 17.0192C4.9218 14.9454 7.49584 13.6506 10.2635 13.3806Z",fill:"#70CAF8"})})):k(Ct,nc(tc({},e),{width:73,height:40,children:[y("path",{d:"M61.6461 14.9716C60.8681 11.1875 58.9581 7.73823 56.1763 5.09315C53.3944 2.44806 49.8758 0.735682 46.0992 0.189041C42.3226 -0.357601 38.4714 0.288046 35.0699 2.03812C31.6683 3.7882 28.8815 6.5577 27.0889 9.96971C23.161 10.1687 19.4719 11.9405 16.8333 14.8953C14.1947 17.8502 12.8227 21.746 13.0191 25.7258C13.2155 29.7055 14.9642 33.4433 17.8806 36.1167C20.7969 38.7901 24.642 40.1802 28.5699 39.9812H60.6588C67.5702 39.9812 73.0006 34.4791 73.0006 27.4764C73.0006 20.9739 67.8664 15.4718 61.6461 14.9716Z",fill:"#70CAF8"}),y("path",{d:"M21.9691 6.47136e-09C25.9369 6.47136e-09 29.5264 1.62125 32.0003 4.21094C30.0604 5.7917 28.4423 7.75571 27.2581 10C23.3149 10.1989 19.6111 11.9702 16.9622 14.9238C14.3136 17.8774 12.936 21.772 13.1331 25.75C13.2057 27.2131 13.4902 28.6432 13.9652 30H10.7689C7.96116 29.8907 5.29664 28.7203 3.30402 26.7217C1.31144 24.7231 0.135825 22.0419 0.0110544 19.21C-0.113702 16.378 0.821178 13.6017 2.63019 11.4326C4.43921 9.26356 6.99065 7.8602 9.77766 7.5C11.9582 3.00012 16.6168 8.76701e-05 21.9691 6.47136e-09Z",fill:"#5BA2C6"})]}))}const LO=e=>{const{Title:t,Item:n,data:r,gap:i=20,minHeight:o=100,maxHeight:s=200,minWidth:a=260,maxWidth:l=300,options:c}=e,{title:u,desc:h,items:f=[]}=r,d=t?y(t,{title:u,desc:h}):null,p=[],g=[],m=[],v=[],b=f.length,w=Et(c.themeConfig),x=60,_={single:{width:54,height:36},double:{width:73,height:40}},C=[],P=[];let S=0,$=0;f.forEach((F,X)=>{const G=b>1?X/(b-1):0,R=(o+(s-o)*G)*1.6,z=Math.max(a,Math.min(l,R));C.push(z);const q=$;P.push(q),$+=z/2,X===b-1&&(S=q+z)});const O=P[0],M=P[b-1]+C[b-1],A=M-O,E=b>1?(A-i*(b-1))/b:A,I=ae(y(n,{indexes:[0],data:r,datum:f[0],width:E})),T=32,N=s+i,H=N+T+10;f.forEach((F,X)=>{const G=[X],L=o+(s-o)*(b>1?X/(b-1):0),R=C[X],z=P[X],q=s-L,j=Fe(c,[X])||w.colorPrimary;m.push(y(boe,{colorPrimary:j,x:z,y:q,width:R,height:L}));const V=O+X*(E+i);v.push(y(De,{x:V,y:N,width:E,height:T,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:j,backgroundColor:j,backgroundOpacity:.5,backgroundRadius:4,children:String(X+1).padStart(2,"0")})),p.push(y(n,{indexes:G,datum:F,data:r,x:V,y:H,width:E}))});const D=ae(y(ne,{indexes:[0]})),W=H+I.height+10;if(f.forEach((F,X)=>{const G=[X],L=O+X*(E+i);g.push(y(nt,{indexes:G,x:L+E/2-D.width/2,y:W})),X<f.length-1&&g.push(y(ne,{indexes:[X+1],x:L+E+i/2-D.width/2,y:W}))}),b>0){const F=O;g.unshift(y(ne,{indexes:[0],x:F-i/2-D.width/2,y:W}));const X=O+(b-1)*(E+i);g.push(y(ne,{indexes:[b],x:X+E+i/2-D.width/2,y:W})),m.push(y(_oe,{x:S-x-20,y:-35,width:x,height:x}));const G=["tiny","small","medium","large"],L={tiny:27,small:48,medium:54,large:72},R={tiny:14.85,small:26.4,medium:29.7,large:39.6},z=[],q=(V,U,K=5)=>z.some(J=>!(V+U+K<J.x||V>J.x+J.width+K));f.forEach((V,U)=>{const K=P[U],J=C[U],ie=U===b-1?3:U===0?1:2;for(let Q=0;Q<ie;Q++){const te=U*100+Q*37,ce=te*17%G.length,re=G[ce],ee=L[re],oe=R[re];let se=0,ue=0,pe=!1;for(;se<20&&!pe;){const fe=(te*13+se*19)%100/100,ge=K+J*.15,he=K+J*.85-oe;ue=ge+(he-ge)*fe,q(ue,oe)||(pe=!0),se++}if(pe){z.push({x:ue,width:oe});const fe=s-ee;m.push(y(Y,{x:ue,y:fe,children:woe(re)}))}}});const j=Math.max(1,Math.floor(b/1.5));for(let V=0;V<j;V++){const U=V*11+b*5+1,K=U%2===0?"single":"double",J=_[K],Z=M-O-J.width,ie=O+U*7%100/100*Z,Q=U*13%40;m.push(y(xoe,{type:K,x:ie,y:Q,width:J.width,height:J.height}))}}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,k(Y,{children:[y(Y,{children:m}),y(Y,{children:v}),y(qe,{children:p}),y(je,{children:g})]})]})};We("sequence-mountain",{component:LO,composites:["title","item"]});const NO=e=>{const{Title:t,Item:n,data:r,gap:i=10,width:o=700,pyramidWidth:s,itemHeight:a=60,options:l}=e,{title:c,desc:u,items:h=[]}=r,f=t?y(t,{title:c,desc:u}):null;if(h.length===0)return y(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:f});const d=5,p=Et(l.themeConfig),g=30,m=[],v=[],b=[],w=[],x=s!=null?s:o*.6,_=o-x,C=a*1.2,P=h.length*C+(h.length-1)*i;return h.forEach((S,$)=>{const O=[$],M=$===0,A=Fe(l,[$])||p.colorPrimary,{points:E,topWidth:I,bottomWidth:T}=Coe(x,C,i,h.length,$),N=MO(E,d),H=EO(N,"AMOUNT",10),D=x/2,W=$*(C+i),F=(C-a)/2,X=W+F,G=D+I/2,L=D+T/2,z=G-d,q=_+d,j=a,V=z+q,U=D-g/2,K=W+C/2-g/2+(M?8:0),J=L,Z=V-L,ie=X;b.push(y(Le,{x:z,y:X,width:q,height:j,ry:"10",fill:p.colorPrimaryBg,"data-element-type":"shape"}));const Q=`${A}-pyramid-${$}`;v.push(y(Ke,{children:k("linearGradient",{id:Q,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[y("stop",{offset:"0","stop-color":A}),y("stop",{offset:"100%","stop-color":be.mix(A,"#fff",40).toHexString()})]})}),y(Yt,{points:H,fill:`url(#${Q})`,y:W,"data-element-type":"shape"})),w.push(y(Ft,{indexes:O,x:U,y:K,size:g,fill:"#fff"})),m.push(y(n,{indexes:O,datum:S,data:r,x:J,y:ie,width:Z,height:a,positionV:"middle"}))}),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,k(Y,{width:o,height:P,children:[y(Y,{children:b}),y(Y,{children:v}),y(Y,{children:w}),y(qe,{children:m}),y(je,{})]})]})};function Coe(e,t,n,r,i){const o=e/2,s=r*t+(r-1)*n,a=i*(t+n),l=a+t,c=a/s*e,u=l/s*e;let h;if(i===0){const f={x:o,y:0},d={x:o+u/2,y:t},p={x:o-u/2,y:t};h=[f,d,p]}else{const f={x:o+c/2,y:0},d={x:o+u/2,y:t},p={x:o-u/2,y:t},g={x:o-c/2,y:0};h=[f,d,p,g]}return{points:h,topWidth:c,bottomWidth:u}}We("sequence-pyramid",{component:NO,composites:["title","item"]});const as={iconSize:50,roadWidth:24,outerRadius:60,rowWidth:400,spacing:30,colorDefault:"#666666"},zO=(e,t)=>`M ${e} ${t}`,vt=(e,t)=>`L ${e} ${t}`,Bi=(e,t,n,r)=>`A ${e} ${e} 0 0 ${t} ${n} ${r}`,Poe=(e,{roadWidth:t,innerRadius:n,outerRadius:r})=>{const i=(t+n*2)*e;return{y1:i,y2:i+t,y3:i+t+n,y4:i+t+n*2,y5:i+r*2}};function Soe({i:e,direction:t,x:n,y:r,color:i,data:o,itemBounds:s,item:a,Item:l,flipped:c}){const{iconSize:u}=as,h=t==="left",f=h?n.x4-u/2:n.x3-u/2,d=r.y3-u/2,p=h?n.x6+as.spacing:n.x1-as.spacing-s.width,g=r.y3-s.height/2,m=h?c?"flipped":"normal":c?"normal":"flipped";return{icon:y(jr,{indexes:[e],x:f,y:d,size:u,fill:i}),label:y(De,{width:40,x:h?f-50:f+u+10,y:d+u/2-15,fontSize:30,fill:i,alignHorizontal:h?"right":"left",children:String(e+1).padStart(2,"0")}),item:y(l,{indexes:[e],data:o,datum:a,x:p,y:g,positionH:m})}}function Ooe({direction:e,x:t,y:n,color:r,elements:i}){const o=e==="left";i.push(y(kie,{x:o?t.x6+10:t.x1-20,y:n.y3-5,width:10,height:8,rotation:o?90:-90,colorPrimary:r,"data-element-type":"shape"}))}const DO=e=>{const{Title:t,Item:n,data:r,spacing:i=as.spacing,options:o,flipped:s=!1}=e,{title:a,desc:l,items:c=[]}=r,u=t?y(t,{title:a,desc:l}):null,h=ae(y(n,{indexes:[0],data:r,datum:c[0],positionH:"center"})),{roadWidth:f,outerRadius:d,rowWidth:p,colorDefault:g}=as,m=f/2,v=d-f,b=(h.width+i)*2+p,w=h.width+i,x=w+d,_=w+p-d,P=_+v+f,S=w+p/2,$=[],O=[],M=[],A=[],E=[],I=[],T=[];for(let D=0;D<c.length;D++){const W=Fe(o,[D])||g,F=D%2===0?"right":"left",X=D===0,G=D===c.length-1,L=Poe(D,{roadWidth:f,innerRadius:v,outerRadius:d});if(F==="right"){const j=X?[P,L.y1]:[_,L.y1],V=[x,L.y1],U=[x,L.y5],K=X?[P,L.y2]:[_,L.y2],J=[x,L.y2];if($.push(X?zO(P,L.y1+m):vt(_,L.y1+m),vt(x,L.y1+m),Bi(d-m,0,x,L.y4+m)),O.push(X?zO(...j):vt(...j),vt(...V),Bi(d,0,...U)),M.push(vt(...K),vt(...J),Bi(v,1,...J)),G){const Z=f/2;O.push(vt(S,L.y5),vt(S,L.y5+Z),vt(S+f,L.y5-Z),vt(S,L.y4-Z),vt(S,L.y4),vt(x,L.y4)),$.push(vt(S,L.y4+m))}}else{const j=[x,L.y2],V=[_,L.y2],U=[_,L.y4],K=[x,L.y1],J=[_,L.y1];if($.push(vt(_,L.y1+m),Bi(d-m,1,_,L.y4+m)),O.push(vt(...j),vt(...V),Bi(v,1,...U)),M.push(vt(...K),vt(...J),Bi(d,0,...J)),G){const Z=f/2;O.push(vt(S,L.y4),vt(S,L.y4-Z),vt(S-f,L.y4+Z),vt(S,L.y5+Z),vt(S,L.y5),vt(_,L.y5)),$.push(vt(S,L.y4+m))}}Ooe({direction:F,x:{x1:w,x6:P},y:L,color:W,elements:T});const{icon:R,label:z,item:q}=Soe({i:D,direction:F,x:{x1:w,x3:x,x4:_,x6:P},y:L,color:W,data:r,itemBounds:h,item:c[D],Item:n,flipped:s});A.push(R),E.push(z),I.push(q)}const N=[...O,...M.reverse(),"Z"],H=c.length*(f+v*2)+f*1.5;return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,k(Y,{width:b,height:h.height<=d*2?H:H+h.height-d*2,children:[y(Pe,{width:p,height:H,d:N.join(" "),fill:g,stroke:g,strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),y(Pe,{d:$.join(" "),stroke:"white",fill:"none",strokeWidth:"3",strokeDasharray:"8 8",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),k(tt,{children:[A,E,I,T]})]})]})};We("sequence-roadmap-vertical",{component:DO,composites:["title","item"]});const qO=e=>{const{Title:t,Item:n,data:r,gap:i=40,itemsPerRow:o=3,rowGap:s=80,options:a}=e,{title:l,desc:c,items:u=[]}=r,h=t?y(t,{title:l,desc:c}):null,f=Pt(a),d=ae(y(ne,{indexes:[0]})),p=ae(y(n,{indexes:[0],data:r,datum:u[0],positionH:"center"})),g=[],m=[],v=[],b=25,w=25;if(u.forEach((x,_)=>{const C=Math.floor(_/o),P=_%o,S=C%2===1,O=(S?o-1-P:P)*(p.width+i),M=C*(p.height+s),A=[_];if(m.push(y(n,{indexes:A,datum:x,data:r,x:O,y:M,positionH:"center"})),g.push(y(nt,{indexes:A,x:O+(p.width-d.width)/2,y:M+p.height+10})),_===0&&g.push(y(ne,{indexes:A,x:O+(p.width-d.width)/2,y:M-d.height-10})),_<u.length-1){const E=Math.floor((_+1)/o),I=(_+1)%o,H=(E%2===1?o-1-I:I)*(p.width+i);if(C===E){const W=S,F=W?H+p.width+(i-b)/2:O+p.width+(i-b)/2,X=M+p.height/2-w/2;v.push(y(_m,{x:F,y:X,width:b,height:w,colorPrimary:f,rotation:W?180:0})),g.push(y(ne,{indexes:[_+1],x:F+(b-d.width)/2,y:M-d.height-10}))}else{const W=O+p.width/2-b/2,F=M+p.height+(s-w)/2;v.push(y(_m,{x:W,y:F,width:b,height:w,colorPrimary:f,rotation:90})),g.push(y(ne,{indexes:[_+1],x:W+(b-d.width)/2,y:F+(w-d.height)/2}))}}}),u.length>0){const x=u.length-1,_=Math.floor(x/o),C=x%o,$=(_%2===1?o-1-C:C)*(p.width+i),O=_*(p.height+s);g.push(y(ne,{indexes:[u.length],x:$+(p.width-d.width)/2,y:O+p.height+d.height+20}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,k(Y,{children:[y(Y,{children:v}),y(qe,{children:m}),y(je,{children:g})]})]})};We("sequence-snake-steps",{component:qO,composites:["title","item"]});const HO=e=>{const{Title:t,Item:n,data:r,options:i,gap:o=16,perspectiveFactor:s=.2,width:a=720}=e,{title:l,desc:c,items:u=[]}=r,h=t,f=h?y(h,{title:l,desc:c}):null;if(u.length===0)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,y(Y,{children:y(je,{children:y(ne,{indexes:[0],x:0,y:0})})})]});const d=Pt(i),p=ae(y(ne,{indexes:[0]})),g=ae(y(n,{indexes:[0],data:r,datum:u[0]||{},positionH:"center"})),m=12,v=Math.min(a*.1,100),b=Math.min(a*.45,Math.max(80,a-g.width-m-v)),w=Math.max(24,b*s*.35),x=56,_=x*.7,C=u.length>1?(x-_)/(u.length-1):0,P=Math.max(p.height+w+20,w+28),S=b/2,$=b+v+m,O=u.map((ce,re)=>x-C*re),M=u.map((ce,re)=>Math.max(w*(1-re*.05),w*.7)),A=[],E=[],I=u.length-1;A[I]=P,E[I]=0;for(let ce=I-1;ce>=0;ce-=1)E[ce]=E[ce+1]+M[ce]+o,A[ce]=A[ce+1]+M[ce]+O[ce+1]+o;const T=E[0]||M[0]||w,N=b*(.55+s*.1),H=b-N,D=u.map((ce,re)=>{const ee=T===0?1:E[re]/T;return N+H*ee}),W=D.map(ce=>{const re=S+ce/2;return Math.max(0,$-m-re)}),F=[],X=[],G=[],L=[],R=[],z=0,q=(A[0]||P)+(O[0]||x),j=q-z,V=35,K=(D[I]||N)*.8,J=K*.65,Z=(D[0]||b)*.9;R.push(y(Yt,{points:[{x:S,y:z},{x:S+K/2,y:z+V},{x:S+J/2,y:z+V},{x:S+Z/2,y:q},{x:S-Z/2,y:q},{x:S-J/2,y:z+V},{x:S-K/2,y:z+V}],fill:"rgba(0,0,0,0.12)",width:Z,height:j,"data-element-type":"shape"}));let ie=A[I]+O[I]/2;u.forEach((ce,re)=>{const ee=[re],oe=D[re],se=M[re],ue=S-oe/2,pe=O[re],fe=A[re],ge=fe-se,he=fe+pe/2,xe=Fe(i,ee)||d;F.push(y(Le,{x:ue,y:fe,width:oe,height:pe,fill:xe,"data-element-type":"shape"}),y(Yt,{points:[{x:ue,y:fe},{x:ue+oe,y:fe},{x:ue+oe-se/2,y:ge},{x:ue+se/2,y:ge}],fill:xe,opacity:"0.3",width:oe,height:se,"data-element-type":"shape"}),y(De,{x:ue,y:fe,width:oe,height:pe,fontSize:pe/2,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:"#ffffff",children:String(re+1).padStart(2,"0")}));const $e=ue+oe,Me=he,Ce=W[re],Te=$e+Ce;L.push(y(Pe,{d:`M ${$e} ${Me} L ${Te} ${Me}`,stroke:xe,strokeWidth:2,fill:"none",width:Ce,height:2,"data-element-type":"shape"}),y(Pe,{d:`M ${Te} ${Me} L ${Te} ${Me}`,stroke:xe,strokeWidth:6,strokeLinecap:"round",width:1,height:1,"data-element-type":"shape"}));const Ne=he-g.height/2;X.push(y(n,{indexes:ee,datum:ce,data:r,x:$,y:Ne,positionV:"middle"})),G.push(y(nt,{indexes:ee,x:$+g.width+10,y:Ne+g.height/2-p.height/2})),re===0?G.push(y(ne,{indexes:[0],x:$+(g.width-p.width)/2,y:Ne-p.height-12})):G.push(y(ne,{indexes:ee,x:$+(g.width-p.width)/2,y:(ie+he)/2-p.height/2})),ie=he});const te=ie-g.height/2;return G.push(y(ne,{indexes:[u.length],x:$+(g.width-p.width)/2,y:te+g.height+12})),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,k(Y,{children:[y(Y,{children:R}),y(Y,{children:F}),y(Y,{children:L}),y(qe,{children:X}),y(je,{children:G})]})]})};We("sequence-stairs-front",{component:HO,composites:["title","item"]});const jO=e=>{const{Title:t,Item:n,data:r,gap:i=40,options:o}=e,{title:s,desc:a,items:l=[]}=r,c=t?y(t,{title:s,desc:a}):null,u=Pt(o),h=ae(y(ne,{indexes:[0]})),f=ae(y(n,{indexes:[0],data:r,datum:l[0],positionH:"center"})),d=[],p=[],g=[],m=25,v=25,b=Math.max(h.height+20,30);if(l.forEach((w,x)=>{const _=x*(f.width+i),C=[x];if(p.push(y(n,{indexes:C,datum:w,data:r,x:_,y:b,positionH:"center"})),d.push(y(nt,{indexes:C,x:_+(f.width-h.width)/2,y:b+f.height+10})),x===0?d.push(y(ne,{indexes:C,x:_+(f.width-h.width)/2,y:b-h.height-10})):d.push(y(ne,{indexes:C,x:_-i/2-h.width/2,y:b-h.height-10})),x<l.length-1){const P=_+f.width+(i-m)/2,S=b+f.height/2-v/2;g.push(y(_m,{x:P,y:S,width:m,height:v,colorPrimary:u}))}}),l.length>0){const w=(l.length-1)*(f.width+i);d.push(y(ne,{indexes:[l.length],x:w+f.width+(i-h.width)/2,y:b-h.height-10}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,k(Y,{children:[y(Y,{children:g}),y(qe,{children:p}),y(je,{children:d})]})]})};We("sequence-steps",{component:jO,composites:["title","item"]});const FO=e=>{const{Title:t,Item:n,data:r,gap:i=10,options:o}=e,{title:s,desc:a,items:l=[]}=r,c=t?y(t,{title:s,desc:a}):null,u=Pt(o),h=g3(o),f=ae(y(ne,{indexes:[0]})),d=ae(y(n,{indexes:[0],data:r,datum:l[0],positionH:"normal"})),p=[],g=[],m=[],v=10,b=v+70+10,w=b+30,x=6;if(l.length>1){const _=d.height/2+x,C=(l.length-1)*(d.height+i)+d.height/2-x,P=`M ${b} ${_} L ${b} ${C}`,S="gradient-timeline-line",$=C-_,O=l.map((M,A)=>{const I=(A*(d.height+i)+d.height/2-_)/$*100,T=Fe(o,[A]);return y("stop",{offset:`${I}%`,stopColor:T||u})});m.push(k(tt,{children:[y(Ke,{children:y("linearGradient",{id:S,x1:b,y1:_,x2:b,y2:C,gradientUnits:"userSpaceOnUse",children:O})}),y(Pe,{d:P,stroke:`url(#${S})`,strokeWidth:2,width:1,height:C-_})]}))}if(l.forEach((_,C)=>{const P=C*(d.height+i),S=P+d.height/2,$=[C];m.push(y(De,{x:v,y:S,width:70,fontSize:18,fontWeight:"bold",alignHorizontal:"left",alignVertical:"middle",fill:h[C%h.length],children:`STEP ${C+1}`})),g.push(y(n,{indexes:$,datum:_,data:r,x:w,y:P,positionH:"normal"})),m.push(y(Ze,{x:b-x,y:S-x,width:x*2,height:x*2,fill:h[C%h.length]})),p.push(y(nt,{indexes:$,x:w-f.width-10,y:P+(d.height-f.height)/2})),C===0?p.push(y(ne,{indexes:$,x:w+(d.width-f.width)/2,y:P-f.height-10})):p.push(y(ne,{indexes:$,x:w+(d.width-f.width)/2,y:P-i/2-f.height/2}))}),l.length>0){const _=(l.length-1)*(d.height+i);p.push(y(ne,{indexes:[l.length],x:w+(d.width-f.width)/2,y:_+d.height+10}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,k(Y,{children:[y(Ct,{children:m}),y(qe,{children:g}),y(je,{children:p})]})]})};We("sequence-timeline",{component:FO,composites:["title","item"]});const $m=120,Em=108,rc=30,$oe="M4.49144e-05 34.4898C4.49144e-05 37.8786 0.848973 41.152 2.43571 44.2444C4.23516 47.7642 6.98514 51.0472 10.517 54.0009C21.331 63.047 39.4615 68.9814 59.9991 68.9814C80.5385 68.9814 98.6672 63.047 109.483 54.0009C113.013 51.0472 115.765 47.7642 117.564 44.2444C119.149 41.152 120 37.8786 120 34.4898C120 15.4407 93.1364 0 59.9991 0C26.8635 0 4.49144e-05 15.4407 4.49144e-05 34.4898Z",Eoe="M4.49145e-05 34.4898V53.9991C4.49145e-05 57.3879 0.848973 60.6613 2.43571 63.7556C9.75425 78.0545 32.7562 88.4907 59.999 88.4907C87.2438 88.4907 110.246 78.0545 117.564 63.7556C119.149 60.6613 120 57.3879 120 53.9991V34.4898C120 37.8786 119.149 41.152 117.564 44.2444C115.765 47.7642 113.013 51.0472 109.483 54.0009C98.6672 63.047 80.5385 68.9814 59.999 68.9814C39.4615 68.9814 21.3309 63.047 10.5169 54.0009C6.98509 51.0472 4.23516 47.7642 2.43567 44.2444C0.848928 41.152 4.49145e-05 37.8786 4.49145e-05 34.4898Z",Moe="M0 53.9991V73.5102C0 92.5593 26.8634 108 59.999 108C93.1363 108 120 92.5593 120 73.5102V53.9991C120 57.3879 119.149 60.6613 117.564 63.7556C110.246 78.0545 87.2438 88.4907 59.999 88.4907C32.7562 88.4907 9.75425 78.0545 2.43571 63.7556C0.848973 60.6613 0 57.3879 0 53.9991Z",BO=k("filter",{id:"sequence-zigzag-pucks-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[y("feOffset",{dx:"-7",dy:"7",in:"SourceAlpha",result:"offset"}),y("feGaussianBlur",{stdDeviation:"7.5",in:"offset",result:"blurred"}),y("feColorMatrix",{in:"blurred",type:"matrix",values:`0 0 0 0 0
148
138
  0 0 0 0 0
149
139
  0 0 0 0 0
150
- 0 0 0 0.3 0`,result:"shadow"}),y("feBlend",{mode:"normal",in:"SourceGraphic",in2:"shadow"})]}),IS=e=>{const{Title:t,Item:n,data:r,options:i,gap:o=80}=e,s=pm,a=gm,{title:l,desc:c,items:u=[]}=r,h=t?y(t,{title:l,desc:c}):null,f=Ot(i);if(u.length===0)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[y(Ke,{children:MS}),h,y(Y,{children:y(je,{children:y(ne,{indexes:[0],x:0,y:0})})})]});const d=ae(y(n,{indexes:[0],data:r,datum:u[0],positionH:"center"})),p=ae(y(ne,{indexes:[0]})),g=[],m=[],v=[];let b=-1/0;const _=d.height+Xl+a;return u.forEach((x,w)=>{const C=[w],P=Fe(i,C),O=w%2===0,$=w*(s+o),S=O?0:d.height+Xl,M=`puck-gradient-middle-${w}`,I=`puck-gradient-bottom-${w}`;v.push(k(Y,{x:$,y:S,id:`puck-${w}`,width:s,height:a,filter:"url(#sequence-zigzag-pucks-3d-shadow-filter)",children:[k(Ke,{children:[k("linearGradient",{id:M,x1:"115",y1:"55.9991",x2:"15.0002",y2:"55.9991",gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0",stopColor:P||f}),y("stop",{offset:"1",stopColor:P||f,stopOpacity:"0.6"})]}),k("linearGradient",{id:I,x1:"115",y1:"72.1803",x2:"15.0002",y2:"72.1803",gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0",stopColor:"#F4F4FB"}),y("stop",{offset:"1",stopColor:"#8E8C90"})]})]}),k(Pt,{width:pm,height:gm,children:[y(Pe,{d:Hie,fill:P||f}),y(Pe,{d:jie,fill:`url(#${M})`}),y(Pe,{d:Fie,fill:`url(#${I})`}),y("rect",{fill:"transparent",y:gm,width:pm,height:20})]}),y("text",{x:65,y:40,width:50,height:50,fontSize:40,fontWeight:"bold",fill:"#FFFFFF",textAnchor:"middle",dominantBaseline:"middle",transform:"rotate(-15 65 40) scale(1, 0.8)",children:w+1})]}));const E=$+(s-d.width)/2,A=O?S+a+Xl:S-Xl-d.height;if(b=Math.max(b,A+d.height),m.push(y(n,{indexes:C,datum:x,data:r,x:E,y:A,positionH:"center"})),g.push(y(nt,{indexes:C,x:E+d.width-p.width/2,y:A+d.height-p.height/2})),w===0&&g.push(y(ne,{indexes:[0],x:$+s/2-p.width/2-(o+s)/2,y:S+a/2-p.height/2})),w<u.length-1){const N=(w+1)%2===0?0:_,H=$+s+o/2-p.width/2,D=(S+a/2+N+a/2)/2-p.height/2;g.push(y(ne,{indexes:[w+1],x:H,y:D}))}else g.push(y(ne,{indexes:[u.length],x:$+s+o/2-p.width/2,y:S+a/2-p.height/2}))}),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[y(Ke,{children:MS}),h,k(Y,{x:0,y:0,children:[y(Y,{children:v}),y(qe,{children:m}),y(je,{children:g})]})]})};We("sequence-zigzag-pucks-3d",{component:IS,composites:["title","item"]});const Bie=240,Wie=130,Vie=105,Qr=12,Gie=120,AS=50,Yie=.6,Xie="M132.821 50.6599L87.6795 76.8925C78.0629 82.4807 62.4238 82.4807 52.7445 76.8925L7.30824 50.6599C2.43719 47.8482 0.00459679 44.1562 0.0152907 40.472L3.17695e-05 45.6925C-0.0101404 49.378 2.42245 53.0686 7.29298 55.8803L52.7289 82.1129C62.4094 87.7011 78.0485 87.7011 87.6652 82.1129L132.806 55.8803C137.583 53.1038 139.975 49.4705 139.986 45.832L140 40.6116C139.989 44.2501 137.598 47.8834 132.821 50.6599Z",TS="M132.707 30.4224C142.386 36.0119 142.437 45.0704 132.821 50.6599L87.6795 76.8925C78.0629 82.4807 62.4238 82.4807 52.7445 76.8925L7.30825 50.6599C-2.37126 45.0717 -2.42225 36.0132 7.19414 30.4237L52.335 4.19115C61.9517 -1.39705 77.5908 -1.39705 87.2713 4.19115L132.707 30.4224Z",RS=70+Qr/2,kS=40+Qr/2,LS=y("filter",{id:"sequence-zigzag-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:y("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"15",result:"blur"})}),NS=e=>{var t;const{Title:n,Item:r,data:i,options:o,dx:s=Bie,dy:a=Wie,iconSize:l=30}=e,{title:c,desc:u,items:h=[]}=i,f=n?y(n,{title:c,desc:u}):null,d=Ot(o);if(h.length===0)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[y(Ke,{children:LS}),f,y(Y,{children:y(je,{children:y(ne,{indexes:[0],x:0,y:0})})})]});const p=ae(y(r,{indexes:[0],data:i,datum:h[0]})),g=ae(y(ne,{indexes:[0]})),m=[],v=[],b=[],_=[],x=[];let w=0,C=0,P="",O=1/0,$=-1/0,S=1/0,M=1/0;const I=[];h.forEach((T,N)=>{const H=w,D=C;I.push({x:H,y:D}),O=Math.min(O,D);const B=H-RS,F=D-kS;S=Math.min(S,B),M=Math.min(M,F);const X=N%2===0;N<h.length-1&&(w+=s,C=X?C+a:C-a)});const E=Math.max(0,-S),A=Math.max(0,-M);if(w=0,C=0,h.forEach((T,N)=>{const H=[N],D=I[N],B=D.x+E,F=D.y+A,X=Fe(o,H),G=Math.max(0,B-RS),L=Math.max(0,F-kS),R=10,z=AS+10,{colorPrimaryBg:q}=Et({colorPrimary:X});if(_.push(k(Pt,{x:G,y:L,width:140,height:110,children:[y(Ze,{x:R,y:z,width:Gie,height:AS,fill:X||d,filter:"url(#sequence-zigzag-glow-filter)",opacity:Yie}),y(Pe,{d:Xie,fill:X||d}),y(Pe,{d:TS,fill:"#fff"}),y(Pe,{d:TS,fill:q||q})]})),T.icon){const U=Math.max(0,B-l/2-Qr/2),K=Math.max(0,F-l/2-Qr/2);x.push(y(Ft,{x:U,y:K,size:l,indexes:H,fill:X}))}const j=B-p.width/2-Qr/2,V=Math.max(0,F+Vie-Qr/2);if($=Math.max($,V+p.height),N===0?P=`M ${B} ${F}`:P+=` L ${B} ${F}`,v.push(y(r,{indexes:H,datum:T,data:i,x:j,y:V})),m.push(y(nt,{indexes:H,x:Math.max(0,j+p.width-g.width/2),y:Math.max(0,V+p.height-g.height/2)})),N<h.length-1){const U=I[N+1],K=U.x+E,J=U.y+A,Z=Math.max(0,B+(K-B)/2-g.width/2),ie=Math.max(0,F+(J-F)/2-g.height/2);m.push(y(ne,{indexes:[N+1],x:Z,y:ie}))}else m.push(y(ne,{indexes:[h.length],x:Math.max(0,j+p.width+s/4),y:Math.max(0,V+p.height/2-g.height/2)}))}),P){const T=(((t=I[I.length-1])==null?void 0:t.x)||0)+E;b.push(y(Pe,{d:P,stroke:"#f3f2f1",strokeWidth:Qr,fill:"none",width:T,height:$-Math.min(O+A,0)}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[y(Ke,{children:LS}),f,k(Y,{x:0,y:0,children:[y(Y,{children:[...b,..._,...x]}),y(qe,{children:v}),y(je,{children:m})]})]})};We("sequence-zigzag-steps",{component:NS,composites:["title","item"]});class yr{init(t){Object.assign(this,t)}}class zS{constructor(t,n={}){this.clickTimer=null,this.singleClickCallback=null,this.doubleClickCallback=null,this.pointerId=null,this.startX=0,this.startY=0,this.skipClick=!1,this.dragged=!1,this.handlePointerDown=i=>{this.pointerId=i.pointerId,this.startX=i.clientX,this.startY=i.clientY,this.dragged=!1,this.skipClick=!1,window.addEventListener("pointermove",this.handlePointerMove,{passive:!0}),window.addEventListener("pointerup",this.handlePointerUp,{passive:!0}),window.addEventListener("pointercancel",this.handlePointerUp,{passive:!0})},this.handlePointerMove=i=>{if(this.pointerId===null||i.pointerId!==this.pointerId)return;const o=i.clientX-this.startX,s=i.clientY-this.startY;Math.hypot(o,s)>this.dragThreshold&&(this.skipClick=!0,this.dragged=!0)},this.handlePointerUp=i=>{this.pointerId!==null&&i.pointerId===this.pointerId&&(this.pointerId=null,window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp),this.dragged||(this.skipClick=!1),this.dragged=!1)};var r;this.element=t,this.delay=n.delay||300,this.dragThreshold=(r=n.dragThreshold)!=null?r:4,this.init()}init(){this.element.addEventListener("click",this.handleClick.bind(this)),this.element.addEventListener("dblclick",this.handleDoubleClick.bind(this)),this.element.addEventListener("pointerdown",this.handlePointerDown)}handleClick(t){if(this.skipClick){this.skipClick=!1;return}this.clickTimer&&clearTimeout(this.clickTimer),this.clickTimer=window.setTimeout(()=>{var n;(n=this.singleClickCallback)==null||n.call(this,t)},this.delay)}handleDoubleClick(t){var n;if(this.skipClick){this.skipClick=!1;return}this.clickTimer&&clearTimeout(this.clickTimer),(n=this.doubleClickCallback)==null||n.call(this,t)}onClick(t){return this.singleClickCallback=t,this}onDoubleClick(t){return this.doubleClickCallback=t,this}destroy(){this.clickTimer&&clearTimeout(this.clickTimer),this.element.removeEventListener("click",this.handleClick),this.element.removeEventListener("dblclick",this.handleDoubleClick),this.element.removeEventListener("pointerdown",this.handlePointerDown),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)}}function Uie(e){var t;return((t=e.getScreenCTM())==null?void 0:t.inverse())||new DOMMatrix}function vr(e,t,n){return new DOMPoint(t,n).matrixTransform(Uie(e))}function Qn(e,t){const n=t.getBoundingClientRect(),i=[{x:n.x,y:n.y},{x:n.x+n.width,y:n.y},{x:n.x,y:n.y+n.height},{x:n.x+n.width,y:n.y+n.height}].map(c=>vr(e,c.x,c.y)),o=Math.min(...i.map(c=>c.x)),s=Math.max(...i.map(c=>c.x)),a=Math.min(...i.map(c=>c.y)),l=Math.max(...i.map(c=>c.y));return new DOMRect(o,a,s-o,l-a)}function DS(e,t){if(t.length===0)return e.data;const n=uo(e,t);return n.children||(n.children=[]),n.children}function Kie(e,t="data.items"){return e.reduce((n,r,i)=>i===0?`${n}[${r}]`:`${n}.children[${r}]`,t)}function qS(e){var t,n;return((n=(t=Zie(e))==null?void 0:t.dataset.indexes)==null?void 0:n.split(",").map(Number))||[]}function Zie(e){return fr(e)?ma(e):e}function Ul(e){if(!e)return null;const t=[Qie];let n=e;for(const r of t){const i=r(n);if(i){n=i;break}}return HS(n)}function HS(e){if(!e)return null;const t=[Jie,eoe];for(const n of t){const r=n(e);if(r)return r}return _H(e)||Yn(e)||fr(e)?e:null}const Qie=e=>{var t;const n=r=>r?xH(r)||CH(r):!1;return n(e)?e.parentElement:n(e.parentElement)?(t=e.parentElement)==null?void 0:t.parentElement:null},Jie=e=>PH(e)&&R_(e.parentElement)?e.parentElement:null,eoe=e=>{const t=e.parentElement;return T_(t)?t:sh(e)?e:null};class jS{constructor(){this.extensions=new Map}register(t,n,r){if(!(r!=null&&r.override)&&this.extensions.has(t))throw new Error(`Extension "${t}" already registered`);this.extensions.set(t,n)}get(t){return this.extensions.get(t)}has(t){return this.extensions.has(t)}getAll(){return this.extensions}forEach(t){this.extensions.forEach((n,r)=>{t(n,r)})}[Symbol.iterator](){return this.extensions.entries()}unregister(t){return this.extensions.delete(t)}destroy(){this.extensions.forEach(t=>{t&&typeof t.dispose=="function"&&t.dispose()}),this.extensions.clear()}}const toe=e=>{if(!e||!(e instanceof HTMLElement))return!1;if(e.isContentEditable)return!0;const t=e.tagName.toLowerCase();return t==="input"||t==="textarea"||t==="select"},noe=e=>{const t=e.toLowerCase().split("+").map(r=>r.trim()).filter(Boolean),n={key:""};if(t.forEach(r=>{r==="shift"?n.shift=!0:r==="alt"||r==="option"?n.alt=!0:r==="ctrl"||r==="control"?n.ctrl=!0:r==="meta"||r==="cmd"||r==="command"?n.meta=!0:r==="mod"?n.mod=!0:n.key=r}),!n.key)throw new Error(`Invalid hotkey combo: "${e}"`);return n},roe=(e,t)=>{var n;if(e.key.toLowerCase()!==t.key)return!1;const i=(n=t.mod)!=null?n:!1,o=e.metaKey,s=e.ctrlKey,a=o||s,l=(c,u)=>c===void 0?!u:c===u;return i&&!a?!1:i?!(!l(t.shift,e.shiftKey)||!l(t.alt,e.altKey)||t.meta!==void 0&&!l(t.meta,o)||t.ctrl!==void 0&&!l(t.ctrl,s)):!(!l(t.meta,o)||!l(t.ctrl,s)||!l(t.shift,e.shiftKey)||!l(t.alt,e.altKey))};class ioe{constructor(t={}){this.bindings=[],this.handleKeydown=i=>{if(i instanceof KeyboardEvent&&!i.defaultPrevented&&!toe(i.target)&&!(this.filter&&!this.filter(i))){for(const o of this.bindings)if(o.combos.some(s=>roe(i,s))){o.handler(i);break}}};const{target:n=document,filter:r}=t;this.target=n,this.filter=r,this.target.addEventListener("keydown",this.handleKeydown)}bind(t,n){const i={combos:(Array.isArray(t)?t:[t]).map(o=>noe(o)),handler:n};return this.bindings.push(i),()=>this.unbind(i)}destroy(){this.target.removeEventListener("keydown",this.handleKeydown),this.bindings=[]}unbind(t){this.bindings=this.bindings.filter(n=>n!==t)}}var ooe=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class FS extends yr{constructor(){super(...arguments),this.name="brush-select",this.shiftKey=!1,this.dragging=!1,this.dragThreshold=4,this.handleStart=t=>{this.interaction.isActive()&&t.button===0&&(this.isTextSelectionTarget(t.target)||this.hasElementAtStart(t.target)||this.interaction.executeExclusiveInteraction(this,()=>ooe(this,null,function*(){return new Promise(n=>{this.completeInteraction=n;const r=this.editor.getDocument();this.startPoint=vr(r,t.clientX,t.clientY),this.pointerId=t.pointerId,this.shiftKey=t.shiftKey,this.dragging=!1,window.addEventListener("pointermove",this.handleMove),window.addEventListener("pointerup",this.handleEnd)})})))},this.handleMove=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;const n=this.editor.getDocument(),r=vr(n,t.clientX,t.clientY),i=r.x-this.startPoint.x,o=r.y-this.startPoint.y;if(!this.dragging){if(Math.hypot(i,o)<this.dragThreshold)return;this.dragging=!0,this.ensureBrush(),this.updateBrush(this.startPoint,r)}t.preventDefault(),t.stopPropagation(),this.updateBrush(this.startPoint,r)},this.handleEnd=t=>{var n,r;if(t.pointerId!==this.pointerId||!this.startPoint)return;window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd);let i=null;if(this.dragging){t.preventDefault(),t.stopPropagation();const l=this.editor.getDocument(),c=vr(l,t.clientX,t.clientY);i=this.updateBrush(this.startPoint,c),this.clearBrush()}this.pointerId=void 0,this.startPoint=void 0,this.dragging=!1;const o=this.shiftKey;if(this.shiftKey=!1,!i){(n=this.completeInteraction)==null||n.call(this),this.completeInteraction=void 0;return}const s=this.collectSelection(i);if((r=this.completeInteraction)==null||r.call(this),this.completeInteraction=void 0,s.length===0){o||this.interaction.clearSelection();return}const a=o?"add":"replace";this.interaction.select(s,a)}}init(t){super.init(t),this.editor.getDocument().addEventListener("pointerdown",this.handleStart)}destroy(){this.clearBrush(),this.editor.getDocument().removeEventListener("pointerdown",this.handleStart),window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd)}ensureBrush(){return this.brush?this.brush:(this.brush=this.interaction.appendTransientElement(Ae("rect",{fill:"rgba(51, 132, 245, 0.08)",stroke:"#3384F5","stroke-dasharray":"4 2","stroke-width":1,"pointer-events":"none"})),this.brush)}updateBrush(t,n){if(!this.brush)return null;const r=Math.min(t.x,n.x),i=Math.min(t.y,n.y),o=Math.abs(t.x-n.x),s=Math.abs(t.y-n.y);return ut(this.brush,{x:r,y:i,width:o,height:s}),{x:r,y:i,width:o,height:s}}clearBrush(){var t;(t=this.brush)==null||t.remove(),this.brush=void 0}collectSelection(t){const n=this.editor.getDocument(),r=Array.from(n.querySelectorAll("[data-element-type]")),i=(s,a)=>{const l=s.x+s.width,c=s.y+s.height,u=a.x+a.width,h=a.y+a.height;return!(l<a.x||u<s.x||c<a.y||h<s.y)},o=new Set;return r.reduce((s,a)=>{const l=HS(a);if(!l||o.has(l))return s;const c=Qn(n,l),u={x:c.x,y:c.y,width:c.width,height:c.height};return i(t,u)&&(s.push(l),o.add(l)),s},[])}hasElementAtStart(t){var n;return t instanceof Element?Ul(t)?!0:!!((n=t.closest)!=null&&n.call(t,"[data-element-type]")):!1}isTextSelectionTarget(t){if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const n=t.tagName.toLowerCase();return n==="input"||n==="textarea"}}var soe=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class BS extends yr{constructor(){super(...arguments),this.name="click-select",this.shiftKey=!1,this.onShiftKeyDown=t=>{t.key==="Shift"&&(this.shiftKey=!0)},this.onShiftKeyUp=t=>{t.key==="Shift"&&(this.shiftKey=!1)},this.onEscKeyDown=t=>{t.key==="Escape"&&this.interaction.clearSelection()}}init(t){super.init(t);const{editor:n,interaction:r}=this;this.clickHandler=new zS(n.getDocument(),{delay:0});const i=o=>{r.isActive()&&r.executeExclusiveInteraction(this,()=>soe(this,null,function*(){const s=Ul(o.target);k_(s)||(this.shiftKey?s&&(r.isSelected(s)?r.select([s],"remove"):r.select([s],"add")):s?r.select([s],"replace"):r.clearSelection())}))};this.clickHandler.onClick(i),document.addEventListener("keydown",this.onShiftKeyDown),document.addEventListener("keyup",this.onShiftKeyUp),document.addEventListener("keydown",this.onEscKeyDown)}destroy(){var t;(t=this.clickHandler)==null||t.destroy(),document.removeEventListener("keydown",this.onShiftKeyDown),document.removeEventListener("keyup",this.onShiftKeyUp),document.removeEventListener("keydown",this.onEscKeyDown)}}var WS=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class aoe{constructor(t){this.commands=t}apply(t){return WS(this,null,function*(){for(const n of this.commands)yield n.apply(t)})}undo(t){return WS(this,null,function*(){for(let n=this.commands.length-1;n>=0;n--)yield this.commands[n].undo(t)})}serialize(){return{type:"batch",commands:this.commands.map(t=>t.serialize())}}}var loe=Object.defineProperty,coe=Object.defineProperties,uoe=Object.getOwnPropertyDescriptors,VS=Object.getOwnPropertySymbols,hoe=Object.prototype.hasOwnProperty,foe=Object.prototype.propertyIsEnumerable,GS=(e,t,n)=>t in e?loe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,is=(e,t)=>{for(var n in t||(t={}))hoe.call(t,n)&&GS(e,n,t[n]);if(VS)for(var n of VS(t))foe.call(t,n)&&GS(e,n,t[n]);return e},YS=(e,t)=>coe(e,uoe(t)),XS=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class zn{constructor(t,n,r){this.element=t,this.modified=n;const i=doe(t,n);this.original=poe(i,r)}apply(t){return XS(this,null,function*(){US(this.element,this.modified),t.updateElement(this.element,this.modified)})}undo(t){return XS(this,null,function*(){this.original&&(US(this.element,this.original),t.updateElement(this.element,this.original))})}serialize(){return{type:"update-element",elementId:this.element.id,modified:this.modified,original:this.original}}}function US(e,t){Yn(e)?A_(e,t):fr(e)?jH(e,void 0,t.attributes):t.attributes&&ut(e,t.attributes)}function doe(e,t){const n=Object.keys(t.attributes||{}),r=cn(e,n,!1),i=s=>{s&&n.forEach(a=>{a in s&&(r[a]=s[a])})},o=YS(is({},t),{attributes:r});if(Yn(e)){const{attributes:s}=oh(e);i(s)}else if(fr(e)){if(!ma(e))return;i(uh(e))}return o}function poe(e,t){if(!e)return t;if(!t)return e;const n=is(is({},e.attributes||{}),t.attributes||{});return YS(is(is({},e),t),{attributes:Object.keys(n).length?n:void 0})}var goe=Object.defineProperty,KS=Object.getOwnPropertySymbols,moe=Object.prototype.hasOwnProperty,yoe=Object.prototype.propertyIsEnumerable,ZS=(e,t,n)=>t in e?goe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,QS=(e,t)=>{for(var n in t||(t={}))moe.call(t,n)&&ZS(e,n,t[n]);if(KS)for(var n of KS(t))yoe.call(t,n)&&ZS(e,n,t[n]);return e},JS=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class e${constructor(t,n){this.options=t,this.original=n}apply(t){return JS(this,null,function*(){const n=t.getOptions();this.original||(this.original=n),t.updateOptions(QS(QS({},n),this.options))})}undo(t){return JS(this,null,function*(){this.original&&t.updateOptions(this.original)})}serialize(){return{type:"update-options",options:this.options,original:this.original}}}var t$=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class voe{constructor(t,n,r){this.element=t,this.originalText=r!=null?r:da(t),this.modifiedText=n}apply(t){return t$(this,null,function*(){this.originalText!==this.modifiedText&&(ih(this.element,this.modifiedText),n$(t,this.element,this.modifiedText))})}undo(t){return t$(this,null,function*(){this.originalText!==this.modifiedText&&(ih(this.element,this.originalText),n$(t,this.element,this.originalText))})}serialize(){return{type:"update-text",elementId:this.element.id,original:this.originalText,modified:this.modifiedText}}}function n$(e,t,n){const r=ah(t);if(r.startsWith("item-")){const i=r.replace("item-",""),o=qS(t);e.updateItemDatum(o,{[i]:n})}else e.updateData(r,n)}var boe=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class r$ extends yr{constructor(){super(...arguments),this.name="dblclick-edit-text"}init(t){super.init(t);const{editor:n,commander:r,interaction:i}=t;this.clickHandler=new zS(n.getDocument()).onDoubleClick(o=>{i.isActive()&&i.executeExclusiveInteraction(this,()=>boe(this,null,function*(){const s=Ul(o.target);if(s&&Yn(s)){i.select([s],"replace");const a=da(s),l=yield new Promise(c=>{const u=this.listenSelectionChange(s);woe(s,{cursorPosition:{clientX:o.clientX,clientY:o.clientY},onBlur:c,onCancel:c}),this.detachSelectionListener=u});r.execute(new voe(s,l,a))}}))})}destroy(){var t,n;(t=this.clickHandler)==null||t.destroy(),(n=this.detachSelectionListener)==null||n.call(this)}listenSelectionChange(t){const n=({next:r})=>{var i;if(!r.includes(t)){(i=this.detachSelectionListener)==null||i.call(this),this.detachSelectionListener=void 0;const o=Nr(t);o&&o.blur()}};return this.emitter.on("selection:change",n),()=>this.emitter.off("selection:change",n)}}const _oe="infographic-inline-text-editor-style",Kl="infographic-inline-text-editor";function woe(e,t){const n=Nr(e);n&&(Coe(),new xoe(n,t).start())}class xoe{constructor(t,n){this.entity=t,this.options=n,this.handlePaste=r=>{r.clipboardData&&(r.preventDefault(),this.insertPlainText(r.clipboardData.getData("text/plain")))},this.handleKeydown=r=>{r.key==="Enter"&&!r.shiftKey&&(r.preventDefault(),this.insertPlainText(`
151
- `))},this.handleInput=()=>{var r,i;this.normalizeSpanContent(),(i=(r=this.options)==null?void 0:r.onInput)==null||i.call(r,this.getText())},this.handleBlur=()=>{var r,i;this.entity.removeAttribute("contenteditable"),this.entity.classList.remove(Kl),this.normalizeSpanContent(),(i=(r=this.options)==null?void 0:r.onBlur)==null||i.call(r,this.getText()),this.detachListeners()}}start(){this.entity.setAttribute("contenteditable","true"),this.entity.classList.add(Kl),this.entity.focus(),this.placeCaretAtClickPosition(),this.attachListeners()}attachListeners(){this.entity.addEventListener("paste",this.handlePaste),this.entity.addEventListener("keydown",this.handleKeydown),this.entity.addEventListener("input",this.handleInput),this.entity.addEventListener("blur",this.handleBlur,{once:!0})}detachListeners(){this.entity.removeEventListener("paste",this.handlePaste),this.entity.removeEventListener("keydown",this.handleKeydown),this.entity.removeEventListener("input",this.handleInput)}insertPlainText(t){var n,r;const i=window.getSelection();if(!i)return;i.rangeCount||this.placeCaretAtEnd();const o=i.rangeCount?i.getRangeAt(0):document.createRange();o.deleteContents();const s=document.createTextNode(t);o.insertNode(s),o.setStartAfter(s),o.setEndAfter(s),i.removeAllRanges(),i.addRange(o),this.normalizeSpanContent(),(r=(n=this.options)==null?void 0:n.onInput)==null||r.call(n,this.getText())}normalizeSpanContent(){var t;if(this.entity.childNodes.length===1&&((t=this.entity.firstChild)==null?void 0:t.nodeType)===Node.TEXT_NODE)return;const n=this.getText();this.entity.textContent=n}placeCaretAtClickPosition(){const t=window.getSelection();if(!t)return;const n=this.getRangeFromPoint();if(n){t.removeAllRanges(),t.addRange(n);return}this.placeCaretAtEnd()}getRangeFromPoint(){var t,n;const{cursorPosition:r}=this.options||{};if(!r)return null;const{clientX:i,clientY:o}=r,s=document,a=(n=(t=s.caretRangeFromPoint)==null?void 0:t.call(s,i,o))!=null?n:(()=>{var l;const c=(l=s.caretPositionFromPoint)==null?void 0:l.call(s,i,o);if(!c)return null;const u=document.createRange();return u.setStart(c.offsetNode,c.offset),u.collapse(!0),u})();return!a||!this.entity.contains(a.startContainer)?null:a}placeCaretAtEnd(){const t=window.getSelection();if(!t)return;const n=document.createRange();n.selectNodeContents(this.entity),n.collapse(!1),t.removeAllRanges(),t.addRange(n)}getText(){return this.entity.textContent||""}}function Coe(){An(_oe,`
152
- .${Kl} {
140
+ 0 0 0 0.3 0`,result:"shadow"}),y("feBlend",{mode:"normal",in:"SourceGraphic",in2:"shadow"})]}),WO=e=>{const{Title:t,Item:n,data:r,options:i,gap:o=80}=e,s=$m,a=Em,{title:l,desc:c,items:u=[]}=r,h=t?y(t,{title:l,desc:c}):null,f=Pt(i);if(u.length===0)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[y(Ke,{children:BO}),h,y(Y,{children:y(je,{children:y(ne,{indexes:[0],x:0,y:0})})})]});const d=ae(y(n,{indexes:[0],data:r,datum:u[0],positionH:"center"})),p=ae(y(ne,{indexes:[0]})),g=[],m=[],v=[];let b=-1/0;const w=d.height+rc+a;return u.forEach((x,_)=>{const C=[_],P=Fe(i,C),S=_%2===0,$=_*(s+o),O=S?0:d.height+rc,M=`puck-gradient-middle-${_}`,A=`puck-gradient-bottom-${_}`;v.push(k(Y,{x:$,y:O,id:`puck-${_}`,width:s,height:a,filter:"url(#sequence-zigzag-pucks-3d-shadow-filter)",children:[k(Ke,{children:[k("linearGradient",{id:M,x1:"115",y1:"55.9991",x2:"15.0002",y2:"55.9991",gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0",stopColor:P||f}),y("stop",{offset:"1",stopColor:P||f,stopOpacity:"0.6"})]}),k("linearGradient",{id:A,x1:"115",y1:"72.1803",x2:"15.0002",y2:"72.1803",gradientUnits:"userSpaceOnUse",children:[y("stop",{offset:"0",stopColor:"#F4F4FB"}),y("stop",{offset:"1",stopColor:"#8E8C90"})]})]}),k(Ct,{width:$m,height:Em,children:[y(Pe,{d:$oe,fill:P||f}),y(Pe,{d:Eoe,fill:`url(#${M})`}),y(Pe,{d:Moe,fill:`url(#${A})`}),y("rect",{fill:"transparent",y:Em,width:$m,height:20})]}),y("text",{x:65,y:40,width:50,height:50,fontSize:40,fontWeight:"bold",fill:"#FFFFFF",textAnchor:"middle",dominantBaseline:"middle",transform:"rotate(-15 65 40) scale(1, 0.8)",children:_+1})]}));const E=$+(s-d.width)/2,I=S?O+a+rc:O-rc-d.height;if(b=Math.max(b,I+d.height),m.push(y(n,{indexes:C,datum:x,data:r,x:E,y:I,positionH:"center"})),g.push(y(nt,{indexes:C,x:E+d.width-p.width/2,y:I+d.height-p.height/2})),_===0&&g.push(y(ne,{indexes:[0],x:$+s/2-p.width/2-(o+s)/2,y:O+a/2-p.height/2})),_<u.length-1){const N=(_+1)%2===0?0:w,H=$+s+o/2-p.width/2,D=(O+a/2+N+a/2)/2-p.height/2;g.push(y(ne,{indexes:[_+1],x:H,y:D}))}else g.push(y(ne,{indexes:[u.length],x:$+s+o/2-p.width/2,y:O+a/2-p.height/2}))}),k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[y(Ke,{children:BO}),h,k(Y,{x:0,y:0,children:[y(Y,{children:v}),y(qe,{children:m}),y(je,{children:g})]})]})};We("sequence-zigzag-pucks-3d",{component:WO,composites:["title","item"]});const Aoe=240,Ioe=130,Toe=105,ti=12,Roe=120,VO=50,koe=.6,Loe="M132.821 50.6599L87.6795 76.8925C78.0629 82.4807 62.4238 82.4807 52.7445 76.8925L7.30824 50.6599C2.43719 47.8482 0.00459679 44.1562 0.0152907 40.472L3.17695e-05 45.6925C-0.0101404 49.378 2.42245 53.0686 7.29298 55.8803L52.7289 82.1129C62.4094 87.7011 78.0485 87.7011 87.6652 82.1129L132.806 55.8803C137.583 53.1038 139.975 49.4705 139.986 45.832L140 40.6116C139.989 44.2501 137.598 47.8834 132.821 50.6599Z",GO="M132.707 30.4224C142.386 36.0119 142.437 45.0704 132.821 50.6599L87.6795 76.8925C78.0629 82.4807 62.4238 82.4807 52.7445 76.8925L7.30825 50.6599C-2.37126 45.0717 -2.42225 36.0132 7.19414 30.4237L52.335 4.19115C61.9517 -1.39705 77.5908 -1.39705 87.2713 4.19115L132.707 30.4224Z",YO=70+ti/2,XO=40+ti/2,UO=y("filter",{id:"sequence-zigzag-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:y("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"15",result:"blur"})}),KO=e=>{var t;const{Title:n,Item:r,data:i,options:o,dx:s=Aoe,dy:a=Ioe,iconSize:l=30}=e,{title:c,desc:u,items:h=[]}=i,f=n?y(n,{title:c,desc:u}):null,d=Pt(o);if(h.length===0)return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[y(Ke,{children:UO}),f,y(Y,{children:y(je,{children:y(ne,{indexes:[0],x:0,y:0})})})]});const p=ae(y(r,{indexes:[0],data:i,datum:h[0]})),g=ae(y(ne,{indexes:[0]})),m=[],v=[],b=[],w=[],x=[];let _=0,C=0,P="",S=1/0,$=-1/0,O=1/0,M=1/0;const A=[];h.forEach((T,N)=>{const H=_,D=C;A.push({x:H,y:D}),S=Math.min(S,D);const W=H-YO,F=D-XO;O=Math.min(O,W),M=Math.min(M,F);const X=N%2===0;N<h.length-1&&(_+=s,C=X?C+a:C-a)});const E=Math.max(0,-O),I=Math.max(0,-M);if(_=0,C=0,h.forEach((T,N)=>{const H=[N],D=A[N],W=D.x+E,F=D.y+I,X=Fe(o,H),G=Math.max(0,W-YO),L=Math.max(0,F-XO),R=10,z=VO+10,{colorPrimaryBg:q}=Et({colorPrimary:X});if(w.push(k(Ct,{x:G,y:L,width:140,height:110,children:[y(Ze,{x:R,y:z,width:Roe,height:VO,fill:X||d,filter:"url(#sequence-zigzag-glow-filter)",opacity:koe}),y(Pe,{d:Loe,fill:X||d}),y(Pe,{d:GO,fill:"#fff"}),y(Pe,{d:GO,fill:q||q})]})),T.icon){const U=Math.max(0,W-l/2-ti/2),K=Math.max(0,F-l/2-ti/2);x.push(y(Ft,{x:U,y:K,size:l,indexes:H,fill:X}))}const j=W-p.width/2-ti/2,V=Math.max(0,F+Toe-ti/2);if($=Math.max($,V+p.height),N===0?P=`M ${W} ${F}`:P+=` L ${W} ${F}`,v.push(y(r,{indexes:H,datum:T,data:i,x:j,y:V})),m.push(y(nt,{indexes:H,x:Math.max(0,j+p.width-g.width/2),y:Math.max(0,V+p.height-g.height/2)})),N<h.length-1){const U=A[N+1],K=U.x+E,J=U.y+I,Z=Math.max(0,W+(K-W)/2-g.width/2),ie=Math.max(0,F+(J-F)/2-g.height/2);m.push(y(ne,{indexes:[N+1],x:Z,y:ie}))}else m.push(y(ne,{indexes:[h.length],x:Math.max(0,j+p.width+s/4),y:Math.max(0,V+p.height/2-g.height/2)}))}),P){const T=(((t=A[A.length-1])==null?void 0:t.x)||0)+E;b.push(y(Pe,{d:P,stroke:"#f3f2f1",strokeWidth:ti,fill:"none",width:T,height:$-Math.min(S+I,0)}))}return k(ve,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[y(Ke,{children:UO}),f,k(Y,{x:0,y:0,children:[y(Y,{children:[...b,...w,...x]}),y(qe,{children:v}),y(je,{children:m})]})]})};We("sequence-zigzag-steps",{component:KO,composites:["title","item"]});var ZO=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class QO{constructor(t){this.commands=t}apply(t){return ZO(this,null,function*(){for(const n of this.commands)yield n.apply(t)})}undo(t){return ZO(this,null,function*(){for(let n=this.commands.length-1;n>=0;n--)yield this.commands[n].undo(t)})}serialize(){return{type:"batch",commands:this.commands.map(t=>t.serialize())}}}var Noe=Object.defineProperty,zoe=Object.defineProperties,Doe=Object.getOwnPropertyDescriptors,JO=Object.getOwnPropertySymbols,qoe=Object.prototype.hasOwnProperty,Hoe=Object.prototype.propertyIsEnumerable,e$=(e,t,n)=>t in e?Noe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ls=(e,t)=>{for(var n in t||(t={}))qoe.call(t,n)&&e$(e,n,t[n]);if(JO)for(var n of JO(t))Hoe.call(t,n)&&e$(e,n,t[n]);return e},t$=(e,t)=>zoe(e,Doe(t)),n$=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class Sn{constructor(t,n,r){this.element=t,this.modified=n;const i=joe(t,n);this.original=Foe(i,r)}apply(t){return n$(this,null,function*(){r$(this.element,this.modified),t.updateElement(this.element,this.modified)})}undo(t){return n$(this,null,function*(){this.original&&(r$(this.element,this.original),t.updateElement(this.element,this.original))})}serialize(){return{type:"update-element",elementId:this.element.id,modified:this.modified,original:this.original}}}function r$(e,t){Jn(e)?Ww(e,t):mr(e)?Mj(e,void 0,t.attributes):t.attributes&&ct(e,t.attributes)}function joe(e,t){const n=Object.keys(t.attributes||{}),r=cn(e,n,!1),i=s=>{s&&n.forEach(a=>{a in s&&(r[a]=s[a])})},o=t$(ls({},t),{attributes:r});if(Jn(e)){const{attributes:s}=vh(e);i(s)}else if(mr(e)){if(!Oa(e))return;i(Ch(e))}return o}function Foe(e,t){if(!e)return t;if(!t)return e;const n=ls(ls({},e.attributes||{}),t.attributes||{});return t$(ls(ls({},e),t),{attributes:Object.keys(n).length?n:void 0})}var i$=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class ic{constructor(t,n){this.options=t,this.original=n}apply(t){return i$(this,null,function*(){if(!this.original){const n=t.getOptions();this.original={},Object.keys(this.options).forEach(r=>{this.original[r]=n[r]})}t.updateOptions(this.options)})}undo(t){return i$(this,null,function*(){this.original&&t.updateOptions(this.original)})}serialize(){return{type:"update-options",options:this.options,original:this.original}}}class o${constructor(t,n={}){this.clickTimer=null,this.singleClickCallback=null,this.doubleClickCallback=null,this.pointerId=null,this.startX=0,this.startY=0,this.skipClick=!1,this.dragged=!1,this.handlePointerDown=i=>{this.pointerId=i.pointerId,this.startX=i.clientX,this.startY=i.clientY,this.dragged=!1,this.skipClick=!1,window.addEventListener("pointermove",this.handlePointerMove,{passive:!0}),window.addEventListener("pointerup",this.handlePointerUp,{passive:!0}),window.addEventListener("pointercancel",this.handlePointerUp,{passive:!0})},this.handlePointerMove=i=>{if(this.pointerId===null||i.pointerId!==this.pointerId)return;const o=i.clientX-this.startX,s=i.clientY-this.startY;Math.hypot(o,s)>this.dragThreshold&&(this.skipClick=!0,this.dragged=!0)},this.handlePointerUp=i=>{this.pointerId!==null&&i.pointerId===this.pointerId&&(this.pointerId=null,window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp),this.dragged||(this.skipClick=!1),this.dragged=!1)};var r;this.element=t,this.delay=n.delay||300,this.dragThreshold=(r=n.dragThreshold)!=null?r:4,this.init()}init(){this.element.addEventListener("click",this.handleClick.bind(this)),this.element.addEventListener("dblclick",this.handleDoubleClick.bind(this)),this.element.addEventListener("pointerdown",this.handlePointerDown)}handleClick(t){if(this.skipClick){this.skipClick=!1;return}this.clickTimer&&clearTimeout(this.clickTimer),this.clickTimer=window.setTimeout(()=>{var n;(n=this.singleClickCallback)==null||n.call(this,t)},this.delay)}handleDoubleClick(t){var n;if(this.skipClick){this.skipClick=!1;return}this.clickTimer&&clearTimeout(this.clickTimer),(n=this.doubleClickCallback)==null||n.call(this,t)}onClick(t){return this.singleClickCallback=t,this}onDoubleClick(t){return this.doubleClickCallback=t,this}destroy(){this.clickTimer&&clearTimeout(this.clickTimer),this.element.removeEventListener("click",this.handleClick),this.element.removeEventListener("dblclick",this.handleDoubleClick),this.element.removeEventListener("pointerdown",this.handlePointerDown),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)}}function Boe(e){var t;return((t=e.getScreenCTM())==null?void 0:t.inverse())||new DOMMatrix}function Bn(e,t,n){return new DOMPoint(t,n).matrixTransform(Boe(e))}function or(e,t){const n=t.getBoundingClientRect(),i=[{x:n.x,y:n.y},{x:n.x+n.width,y:n.y},{x:n.x,y:n.y+n.height},{x:n.x+n.width,y:n.y+n.height}].map(c=>Bn(e,c.x,c.y)),o=Math.min(...i.map(c=>c.x)),s=Math.max(...i.map(c=>c.x)),a=Math.min(...i.map(c=>c.y)),l=Math.max(...i.map(c=>c.y));return new DOMRect(o,a,s-o,l-a)}function s$(e,t){if(t.length===0)return e.items;const n=mo(e,t);return n==null?[]:(n.children||(n.children=[]),n.children)}function Woe(e,t="data.items"){return e.reduce((n,r,i)=>i===0?`${n}[${r}]`:`${n}.children[${r}]`,t)}function a$(e){var t,n;return((n=(t=Voe(e))==null?void 0:t.dataset.indexes)==null?void 0:n.split(",").map(Number))||[]}function Voe(e){return mr(e)?Oa(e):e}function oc(e){if(!e)return null;const t=[Goe];let n=e;for(const r of t){const i=r(n);if(i){n=i;break}}return l$(n)}function l$(e){if(!e)return null;const t=[Yoe,Xoe];for(const n of t){const r=n(e);if(r)return r}return lj(e)||Jn(e)||mr(e)?e:null}const Goe=e=>{var t;const n=r=>r?uj(r)||hj(r):!1;return n(e)?e.parentElement:n(e.parentElement)?(t=e.parentElement)==null?void 0:t.parentElement:null},Yoe=e=>fj(e)&&Gw(e.parentElement)?e.parentElement:null,Xoe=e=>{const t=e.parentElement;return Vw(t)?t:bh(e)?e:null};function c$(e){if(!(e instanceof HTMLElement))return!1;if(e.isContentEditable)return!0;const t=e.tagName.toLowerCase();return t==="input"||t==="textarea"}class u${constructor(){this.extensions=new Map}register(t,n,r){if(!(r!=null&&r.override)&&this.extensions.has(t))throw new Error(`Extension "${t}" already registered`);this.extensions.set(t,n)}get(t){return this.extensions.get(t)}has(t){return this.extensions.has(t)}getAll(){return this.extensions}forEach(t){this.extensions.forEach((n,r)=>{t(n,r)})}[Symbol.iterator](){return this.extensions.entries()}unregister(t){return this.extensions.delete(t)}destroy(){this.extensions.forEach(t=>{t&&typeof t.dispose=="function"&&t.dispose()}),this.extensions.clear()}}const Uoe=e=>{if(!e||!(e instanceof HTMLElement))return!1;if(e.isContentEditable)return!0;const t=e.tagName.toLowerCase();return t==="input"||t==="textarea"||t==="select"},Koe=e=>{const t=e.toLowerCase().split("+").map(r=>r.trim()).filter(Boolean),n={key:""};if(t.forEach(r=>{r==="shift"?n.shift=!0:r==="alt"||r==="option"?n.alt=!0:r==="ctrl"||r==="control"?n.ctrl=!0:r==="meta"||r==="cmd"||r==="command"?n.meta=!0:r==="mod"?n.mod=!0:n.key=r}),!n.key)throw new Error(`Invalid hotkey combo: "${e}"`);return n},Zoe=(e,t)=>{var n;if(e.key.toLowerCase()!==t.key)return!1;const i=(n=t.mod)!=null?n:!1,o=e.metaKey,s=e.ctrlKey,a=o||s,l=(c,u)=>c===void 0?!u:c===u;return i&&!a?!1:i?!(!l(t.shift,e.shiftKey)||!l(t.alt,e.altKey)||t.meta!==void 0&&!l(t.meta,o)||t.ctrl!==void 0&&!l(t.ctrl,s)):!(!l(t.meta,o)||!l(t.ctrl,s)||!l(t.shift,e.shiftKey)||!l(t.alt,e.altKey))};class Qoe{constructor(t={}){this.bindings=[],this.handleKeydown=i=>{if(i instanceof KeyboardEvent&&!i.defaultPrevented&&!Uoe(i.target)&&!(this.filter&&!this.filter(i))){for(const o of this.bindings)if(o.combos.some(s=>Zoe(i,s))){o.handler(i);break}}};const{target:n=document,filter:r}=t;this.target=n,this.filter=r,this.target.addEventListener("keydown",this.handleKeydown)}bind(t,n){const i={combos:(Array.isArray(t)?t:[t]).map(o=>Koe(o)),handler:n};return this.bindings.push(i),()=>this.unbind(i)}destroy(){this.target.removeEventListener("keydown",this.handleKeydown),this.bindings=[]}unbind(t){this.bindings=this.bindings.filter(n=>n!==t)}}function Joe(e,t,n="",r){const{bubbleUp:i=!1,collector:o}=r!=null?r:{},s=new Set;if(h$(e,t,n,o,i,s),i&&o&&s.size>0){const a=Array.from(s).sort((l,c)=>{const u=l===""?0:l.split(".").length;return(c===""?0:c.split(".").length)-u});for(const l of a){const c=l?Ks(e,l):e;o(l,Fu(c),void 0)}}}function h$(e,t,n,r,i,o){Object.keys(t).forEach(s=>{const a=n?`${n}.${s}`:s,l=t[s],c=e[s];l===void 0?(delete e[s],r==null||r(a,void 0,c),i&&f$(n,o)):ku(l)?(ku(e[s])||(e[s]={}),h$(e[s],l,a,r,i,o)):(e[s]=l,rD(l,c)||(r==null||r(a,l,c),i&&f$(n,o)))})}function f$(e,t){if(!e){t.add("");return}const n=e.split(".");for(let r=n.length;r>=0;r--)t.add(n.slice(0,r).join("."))}var d$=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class p${constructor(t,n,r){this.element=t,this.originalText=r!=null?r:Ca(t),this.modifiedText=n}apply(t){return d$(this,null,function*(){this.originalText!==this.modifiedText&&(yh(this.element,this.modifiedText),g$(t,this.element,this.modifiedText))})}undo(t){return d$(this,null,function*(){this.originalText!==this.modifiedText&&(yh(this.element,this.originalText),g$(t,this.element,this.originalText))})}serialize(){return{type:"update-text",elementId:this.element.id,original:this.originalText,modified:this.modifiedText}}}function g$(e,t,n){const r=wh(t);if(r.startsWith("item-")){const i=r.replace("item-",""),o=a$(t);e.updateItemDatum(o,{[i]:n})}else e.updateData(r,n)}class sr{init(t){Object.assign(this,t)}}var ese=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class m$ extends sr{constructor(){super(...arguments),this.name="brush-select",this.shiftKey=!1,this.dragging=!1,this.dragThreshold=4,this.handleStart=t=>{this.interaction.isActive()&&t.button===0&&(c$(t.target)||this.hasElementAtStart(t.target)||this.interaction.executeExclusiveInteraction(this,()=>ese(this,null,function*(){return new Promise(n=>{this.completeInteraction=n;const r=this.editor.getDocument();this.startPoint=Bn(r,t.clientX,t.clientY),this.pointerId=t.pointerId,this.shiftKey=t.shiftKey,this.dragging=!1,window.addEventListener("pointermove",this.handleMove),window.addEventListener("pointerup",this.handleEnd)})})))},this.handleMove=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;const n=this.editor.getDocument(),r=Bn(n,t.clientX,t.clientY),i=r.x-this.startPoint.x,o=r.y-this.startPoint.y;if(!this.dragging){if(Math.hypot(i,o)<this.dragThreshold)return;this.dragging=!0,this.ensureBrush(),this.updateBrush(this.startPoint,r)}t.preventDefault(),t.stopPropagation(),this.updateBrush(this.startPoint,r)},this.handleEnd=t=>{var n,r;if(t.pointerId!==this.pointerId||!this.startPoint)return;window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd);let i=null;if(this.dragging){t.preventDefault(),t.stopPropagation();const l=this.editor.getDocument(),c=Bn(l,t.clientX,t.clientY);i=this.updateBrush(this.startPoint,c),this.clearBrush()}this.pointerId=void 0,this.startPoint=void 0,this.dragging=!1;const o=this.shiftKey;if(this.shiftKey=!1,!i){(n=this.completeInteraction)==null||n.call(this),this.completeInteraction=void 0;return}const s=this.collectSelection(i);if((r=this.completeInteraction)==null||r.call(this),this.completeInteraction=void 0,s.length===0){o||this.interaction.clearSelection();return}const a=o?"add":"replace";this.interaction.select(s,a)}}init(t){super.init(t),this.editor.getDocument().addEventListener("pointerdown",this.handleStart)}destroy(){this.clearBrush(),this.editor.getDocument().removeEventListener("pointerdown",this.handleStart),window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd)}ensureBrush(){return this.brush?this.brush:(this.brush=this.interaction.appendTransientElement(Ie("rect",{fill:"rgba(51, 132, 245, 0.08)",stroke:"#3384F5","stroke-dasharray":"4 2","stroke-width":1,"pointer-events":"none"})),this.brush)}updateBrush(t,n){if(!this.brush)return null;const r=Math.min(t.x,n.x),i=Math.min(t.y,n.y),o=Math.abs(t.x-n.x),s=Math.abs(t.y-n.y);return ct(this.brush,{x:r,y:i,width:o,height:s}),{x:r,y:i,width:o,height:s}}clearBrush(){var t;(t=this.brush)==null||t.remove(),this.brush=void 0}collectSelection(t){const n=this.editor.getDocument(),r=Array.from(n.querySelectorAll("[data-element-type]")),i=(s,a)=>{const l=s.x+s.width,c=s.y+s.height,u=a.x+a.width,h=a.y+a.height;return!(l<a.x||u<s.x||c<a.y||h<s.y)},o=new Set;return r.reduce((s,a)=>{const l=l$(a);if(!l||o.has(l))return s;const c=or(n,l),u={x:c.x,y:c.y,width:c.width,height:c.height};return i(t,u)&&(s.push(l),o.add(l)),s},[])}hasElementAtStart(t){var n;return t instanceof Element?oc(t)?!0:!!((n=t.closest)!=null&&n.call(t,"[data-element-type]")):!1}}var tse=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class y$ extends sr{constructor(){super(...arguments),this.name="click-select",this.shiftKey=!1,this.onShiftKeyDown=t=>{t.key==="Shift"&&(this.shiftKey=!0)},this.onShiftKeyUp=t=>{t.key==="Shift"&&(this.shiftKey=!1)},this.onEscKeyDown=t=>{t.key==="Escape"&&this.interaction.clearSelection()}}init(t){super.init(t);const{editor:n,interaction:r}=this;this.clickHandler=new o$(n.getDocument(),{delay:0});const i=o=>{r.isActive()&&r.executeExclusiveInteraction(this,()=>tse(this,null,function*(){const s=oc(o.target);Yw(s)||(this.shiftKey?s&&(r.isSelected(s)?r.select([s],"remove"):r.select([s],"add")):s?r.select([s],"replace"):r.clearSelection())}))};this.clickHandler.onClick(i),document.addEventListener("keydown",this.onShiftKeyDown),document.addEventListener("keyup",this.onShiftKeyUp),document.addEventListener("keydown",this.onEscKeyDown)}destroy(){var t;(t=this.clickHandler)==null||t.destroy(),document.removeEventListener("keydown",this.onShiftKeyDown),document.removeEventListener("keyup",this.onShiftKeyUp),document.removeEventListener("keydown",this.onEscKeyDown)}}var nse=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class v$ extends sr{constructor(){super(...arguments),this.name="dblclick-edit-text"}init(t){super.init(t);const{editor:n,commander:r,interaction:i}=t;this.clickHandler=new o$(n.getDocument()).onDoubleClick(o=>{i.isActive()&&i.executeExclusiveInteraction(this,()=>nse(this,null,function*(){const s=oc(o.target);if(s&&Jn(s)){i.select([s],"replace");const a=Ca(s),l=yield new Promise(c=>{const u=this.listenSelectionChange(s);ise(s,{cursorPosition:{clientX:o.clientX,clientY:o.clientY},onBlur:c,onCancel:c}),this.detachSelectionListener=u});r.execute(new p$(s,l,a))}}))})}destroy(){var t,n;(t=this.clickHandler)==null||t.destroy(),(n=this.detachSelectionListener)==null||n.call(this)}listenSelectionChange(t){const n=({next:r})=>{var i;if(!r.includes(t)){(i=this.detachSelectionListener)==null||i.call(this),this.detachSelectionListener=void 0;const o=zr(t);o&&o.blur()}};return this.emitter.on("selection:change",n),()=>this.emitter.off("selection:change",n)}}const rse="infographic-inline-text-editor-style",sc="infographic-inline-text-editor";function ise(e,t){const n=zr(e);n&&(sse(),new ose(n,t).start())}class ose{constructor(t,n){this.entity=t,this.options=n,this.handlePaste=r=>{r.clipboardData&&(r.preventDefault(),this.insertPlainText(r.clipboardData.getData("text/plain")))},this.handleKeydown=r=>{r.key==="Enter"&&!r.shiftKey&&(r.preventDefault(),this.insertPlainText(`
141
+ `))},this.handleInput=()=>{var r,i;this.normalizeSpanContent(),(i=(r=this.options)==null?void 0:r.onInput)==null||i.call(r,this.getText())},this.handleBlur=()=>{var r,i;this.entity.removeAttribute("contenteditable"),this.entity.classList.remove(sc),this.normalizeSpanContent(),(i=(r=this.options)==null?void 0:r.onBlur)==null||i.call(r,this.getText()),this.detachListeners()}}start(){this.entity.setAttribute("contenteditable","true"),this.entity.classList.add(sc),this.entity.focus(),this.placeCaretAtClickPosition(),this.attachListeners()}attachListeners(){this.entity.addEventListener("paste",this.handlePaste),this.entity.addEventListener("keydown",this.handleKeydown),this.entity.addEventListener("input",this.handleInput),this.entity.addEventListener("blur",this.handleBlur,{once:!0})}detachListeners(){this.entity.removeEventListener("paste",this.handlePaste),this.entity.removeEventListener("keydown",this.handleKeydown),this.entity.removeEventListener("input",this.handleInput)}insertPlainText(t){var n,r;const i=window.getSelection();if(!i)return;i.rangeCount||this.placeCaretAtEnd();const o=i.rangeCount?i.getRangeAt(0):document.createRange();o.deleteContents();const s=document.createTextNode(t);o.insertNode(s),o.setStartAfter(s),o.setEndAfter(s),i.removeAllRanges(),i.addRange(o),this.normalizeSpanContent(),(r=(n=this.options)==null?void 0:n.onInput)==null||r.call(n,this.getText())}normalizeSpanContent(){var t;if(this.entity.childNodes.length===1&&((t=this.entity.firstChild)==null?void 0:t.nodeType)===Node.TEXT_NODE)return;const n=this.getText();this.entity.textContent=n}placeCaretAtClickPosition(){const t=window.getSelection();if(!t)return;const n=this.getRangeFromPoint();if(n){t.removeAllRanges(),t.addRange(n);return}this.placeCaretAtEnd()}getRangeFromPoint(){var t,n;const{cursorPosition:r}=this.options||{};if(!r)return null;const{clientX:i,clientY:o}=r,s=document,a=(n=(t=s.caretRangeFromPoint)==null?void 0:t.call(s,i,o))!=null?n:(()=>{var l;const c=(l=s.caretPositionFromPoint)==null?void 0:l.call(s,i,o);if(!c)return null;const u=document.createRange();return u.setStart(c.offsetNode,c.offset),u.collapse(!0),u})();return!a||!this.entity.contains(a.startContainer)?null:a}placeCaretAtEnd(){const t=window.getSelection();if(!t)return;const n=document.createRange();n.selectNodeContents(this.entity),n.collapse(!1),t.removeAllRanges(),t.addRange(n)}getText(){return this.entity.textContent||""}}function sse(){vn(rse,`
142
+ .${sc} {
153
143
  margin: 0;
154
144
  padding: 0;
155
145
  box-sizing: border-box;
@@ -157,11 +147,11 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
157
147
  outline: none;
158
148
  cursor: text;
159
149
  }
160
- .${Kl}::selection {
150
+ .${sc}::selection {
161
151
  background-color: #b3d4fc;
162
152
  }
163
- `)}var Poe=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class i$ extends yr{constructor(){super(...arguments),this.name="drag-element",this.selectionForDrag=[],this.willReplaceSelection=!1,this.exclusiveStarted=!1,this.dragItems=[],this.dragging=!1,this.dragThreshold=4,this.handleStart=t=>{if(!this.interaction.isActive()||t.pointerType==="mouse"&&t.button!==0)return;const n=Ul(t.target);if(!n||k_(n))return;const r=this.editor.getDocument();this.pointerId=t.pointerId,this.startPoint=vr(r,t.clientX,t.clientY),this.dragging=!1,this.startTarget=n;const i=this.interaction.isSelected(n);this.selectionForDrag=i?this.interaction.getSelection():[n],this.willReplaceSelection=!i,this.exclusiveStarted=!1,this.startBounds=this.getSelectionBounds(this.selectionForDrag),this.guideCandidates=this.collectGuideCandidates(this.selectionForDrag),window.addEventListener("pointermove",this.handleMove),window.addEventListener("pointerup",this.handleEnd),window.addEventListener("pointercancel",this.handleEnd)},this.handleMove=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;const n=this.editor.getDocument(),r=vr(n,t.clientX,t.clientY),i=r.x-this.startPoint.x,o=r.y-this.startPoint.y;if(!this.dragging){if(Math.hypot(i,o)<this.dragThreshold)return;if(!this.startDrag()){this.reset();return}this.dragging=!0}const a=t.altKey?{dx:i,dy:o}:this.getSnappedDelta(i,o);t.preventDefault(),t.stopPropagation(),this.updateGuides(a),this.applyTranslation(a.dx,a.dy),this.emitGeometryChange()},this.handleEnd=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;this.detachPointerListeners();const n=this.editor.getDocument(),r=vr(n,t.clientX,t.clientY),i=r.x-this.startPoint.x,o=r.y-this.startPoint.y;if((this.dragging||Math.hypot(i,o)>=this.dragThreshold)&&this.dragItems.length&&this.exclusiveStarted){t.preventDefault(),t.stopPropagation();const a=t.altKey?{dx:i,dy:o}:this.getSnappedDelta(i,o);this.updateGuides(a),this.applyTranslation(a.dx,a.dy),this.commitTranslation(a.dx,a.dy),this.emitGeometryChange()}this.reset()}}init(t){super.init(t),this.editor.getDocument().addEventListener("pointerdown",this.handleStart)}destroy(){this.detachPointerListeners(),this.editor.getDocument().removeEventListener("pointerdown",this.handleStart)}startDrag(){if(this.exclusiveStarted)return!0;if(!this.startTarget||(this.willReplaceSelection&&this.interaction.select([this.startTarget],"replace"),this.dragItems=this.selectionForDrag.filter(n=>Yn(n)).map(n=>this.createDragItem(n)).filter(Boolean),this.dragItems.length===0))return!1;let t=!1;return this.interaction.executeExclusiveInteraction(this,()=>Poe(this,null,function*(){return new Promise(n=>{this.completeInteraction=n,t=!0})})),this.exclusiveStarted=t,t}applyTranslation(t,n){this.dragItems.forEach(r=>{if(r.mode==="attr"){const i=r.startX+t,o=r.startY+n,s={x:i,y:o};r.hasDataX&&(s["data-x"]=i),r.hasDataY&&(s["data-y"]=o),ut(r.element,s)}else{const i=this.composeTransform(r.startX+t,r.startY+n,r.restTransform);ut(r.element,{transform:i})}})}commitTranslation(t,n){if(Math.abs(t)<1e-6&&Math.abs(n)<1e-6)return;const r=this.dragItems.map(i=>{if(i.mode==="attr"){const a=i.startX+t,l=i.startY+n,c={x:a,y:l},u={};return i.hasX?u.x=i.startX:u.x=null,i.hasY?u.y=i.startY:u.y=null,i.hasDataX&&(c["data-x"]=a,u["data-x"]=i.startX),i.hasDataY&&(c["data-y"]=l,u["data-y"]=i.startY),new zn(i.element,{attributes:c},{attributes:u})}const o=this.composeTransform(i.startX+t,i.startY+n,i.restTransform),s=i.originalTransform!==void 0?i.originalTransform:null;return new zn(i.element,{attributes:{transform:o}},{attributes:{transform:s}})});r.length&&this.commander.executeBatch(r)}createDragItem(t){const n=this.getTransformInfo(t);if(n)return{element:t,mode:"transform",startX:n.x,startY:n.y,hasX:!1,hasY:!1,hasDataX:!1,hasDataY:!1,restTransform:n.rest,originalTransform:n.original};const{x:r,y:i,hasX:o,hasY:s,hasDataX:a,hasDataY:l}=this.getAttrInfo(t);return{element:t,mode:"attr",startX:r,startY:i,hasX:o,hasY:s,hasDataX:a,hasDataY:l}}getAttrInfo(t){const n=this.editor.getDocument(),{x:r,y:i}=Qn(n,t),o=cn(t,["x","y","data-x","data-y"],!1),s=o.x!==null&&o.x!==void 0,a=o.y!==null&&o.y!==void 0,l=o["data-x"]!==null&&o["data-x"]!==void 0,c=o["data-y"]!==null&&o["data-y"]!==void 0,u=(v,b)=>{const _=v!=null?Number(v):NaN;return Number.isFinite(_)?_:b},h=u(o.x,NaN),f=u(o.y,NaN),d=u(o["data-x"],NaN),p=u(o["data-y"],NaN),g=Number.isFinite(h)?h:Number.isFinite(d)?d:r,m=Number.isFinite(f)?f:Number.isFinite(p)?p:i;return{x:g,y:m,hasX:s,hasY:a,hasDataX:l,hasDataY:c}}getTransformInfo(t){const n=t.getAttribute("transform");if(n===null)return null;const r=n.match(/translate\(\s*([-\d.]+)(?:[ ,]\s*([-\d.]+))?\s*\)/i);if(!r)return{x:0,y:0,rest:n,original:n};const i=Number(r[1])||0,o=r[2]!==void 0&&Number(r[2])||0,s=n.replace(r[0],"").trim();return{x:i,y:o,rest:s,original:n}}composeTransform(t,n,r){const i=`translate(${t}, ${n})`;return r&&r.length?`${i} ${r}`:i}emitGeometryChange(){var t;const n=(t=this.dragItems[0])==null?void 0:t.element;if(!n)return;const r=Qn(this.editor.getDocument(),n);this.emitter.emit("selection:geometrychange",{type:"selection:geometrychange",target:n,rect:r})}detachPointerListeners(){window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd),window.removeEventListener("pointercancel",this.handleEnd)}reset(){var t;this.detachPointerListeners(),this.clearGuides(),this.pointerId=void 0,this.startPoint=void 0,this.dragItems=[],this.startTarget=void 0,this.selectionForDrag=[],this.willReplaceSelection=!1,this.exclusiveStarted=!1,this.dragging=!1,this.startBounds=void 0,this.guideCandidates=void 0,(t=this.completeInteraction)==null||t.call(this),this.completeInteraction=void 0}getSelectionBounds(t){if(!t.length)return;const n=this.editor.getDocument(),r=t.map(i=>Qn(n,i));return Ci(r)}collectGuideCandidates(t){const n=this.editor.getDocument(),r=new Set(t),i=Array.from(n.querySelectorAll("[data-element-type]")).filter(a=>!r.has(a)),o=[],s=[];return i.forEach(a=>{const{x:l,y:c,width:u,height:h}=Qn(n,a);o.push(l,l+u/2,l+u),s.push(c,c+h/2,c+h)}),{vertical:o,horizontal:s}}getSnappedDelta(t,n){if(!this.startBounds||!this.guideCandidates)return{dx:t,dy:n};const r={x:this.startBounds.x+t,y:this.startBounds.y+n,width:this.startBounds.width,height:this.startBounds.height},i=this.getSnapOffset([r.x,r.x+r.width/2,r.x+r.width],this.guideCandidates.vertical),o=this.getSnapOffset([r.y,r.y+r.height/2,r.y+r.height],this.guideCandidates.horizontal);return{dx:t+((i==null?void 0:i.offset)||0),dy:n+((o==null?void 0:o.offset)||0),snapX:i,snapY:o}}getSnapOffset(t,n,r=5){let i=null;return t.forEach(o=>{n.forEach(s=>{const a=s-o;Math.abs(a)<=r&&(!i||Math.abs(a)<Math.abs(i.offset))&&(i={offset:a,at:s})})}),i||void 0}ensureGuideLine(t){const n=t==="vertical"?this.guideVertical:this.guideHorizontal;if(n)return n;const r=this.interaction.appendTransientElement(Ae("line",{stroke:"#FF7A45","stroke-width":1,"stroke-dasharray":"4 4","pointer-events":"none",visibility:"hidden"}));return t==="vertical"?this.guideVertical=r:this.guideHorizontal=r,r}updateGuides(t){const n=this.editor.getDocument(),{width:r,height:i}=n.viewBox.baseVal;if(t.snapX){const o=this.ensureGuideLine("vertical");ut(o,{x1:t.snapX.at,y1:0,x2:t.snapX.at,y2:i,visibility:"visible"})}else this.guideVertical&&this.guideVertical.setAttribute("visibility","hidden");if(t.snapY){const o=this.ensureGuideLine("horizontal");ut(o,{x1:0,y1:t.snapY.at,x2:r,y2:t.snapY.at,visibility:"visible"})}else this.guideHorizontal&&this.guideHorizontal.setAttribute("visibility","hidden")}clearGuides(){var t,n;(t=this.guideVertical)==null||t.remove(),(n=this.guideHorizontal)==null||n.remove(),this.guideVertical=void 0,this.guideHorizontal=void 0}}var o$=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class s$ extends yr{constructor(){super(...arguments),this.name="hotkey-history",this.handleUndo=t=>o$(this,null,function*(){t.preventDefault(),yield this.commander.undo()}),this.handleRedo=t=>o$(this,null,function*(){t.preventDefault(),yield this.commander.redo()})}init(t){super.init(t),this.hotkey=new ioe({filter:()=>this.interaction.isActive()}),this.hotkey.bind("mod+z",this.handleUndo),this.hotkey.bind(["mod+shift+z","mod+y"],this.handleRedo)}destroy(){var t;(t=this.hotkey)==null||t.destroy()}}var Ooe=Object.defineProperty,Soe=Object.defineProperties,$oe=Object.getOwnPropertyDescriptors,a$=Object.getOwnPropertySymbols,Eoe=Object.prototype.hasOwnProperty,Moe=Object.prototype.propertyIsEnumerable,l$=(e,t,n)=>t in e?Ooe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ioe=(e,t)=>{for(var n in t||(t={}))Eoe.call(t,n)&&l$(e,n,t[n]);if(a$)for(var n of a$(t))Moe.call(t,n)&&l$(e,n,t[n]);return e},Aoe=(e,t)=>Soe(e,$oe(t));class c$ extends yr{constructor(){super(...arguments),this.name="select-highlight",this.highlightMasks=[],this.handleSelectionChanged=({next:t})=>{this.highlightSelection(t)},this.handleGeometryChanged=({target:t})=>{this.interaction.isSelected(t)&&this.highlightSelection(this.interaction.getSelection())},this.handleHistoryChanged=()=>{this.highlightSelection(this.interaction.getSelection())}}init(t){super.init(t);const{emitter:n}=t;n.on("selection:change",this.handleSelectionChanged),n.on("selection:geometrychange",this.handleGeometryChanged),n.on("history:change",this.handleHistoryChanged),this.highlightSelection(this.interaction.getSelection())}destroy(){this.clearMasks();const{emitter:t}=this;t.off("selection:change",this.handleSelectionChanged),t.off("selection:geometrychange",this.handleGeometryChanged),t.off("history:change",this.handleHistoryChanged)}highlightSelection(t){if(t.length===1&&Yn(t[0])){this.clearMasks();return}this.drawElementMasks(t),this.drawCombinedBoundsMask(t)}drawElementMasks(t){let n=0;for(;n<t.length;n++){const{x:r,y:i,width:o,height:s}=Qn(this.editor.getDocument(),t[n]),a={x:r,y:i,width:o,height:s,fill:"none",stroke:"#3384F5","stroke-width":1,"pointer-events":"none"},l=this.highlightMasks[n];l?ut(l,a):this.highlightMasks[n]=this.interaction.appendTransientElement(Ae("rect",a))}for(;n<this.highlightMasks.length;n++)this.highlightMasks[n].remove();this.highlightMasks=this.highlightMasks.slice(0,t.length)}drawCombinedBoundsMask(t){var n;if(t.length<2){(n=this.combinedBoundsMask)==null||n.remove(),this.combinedBoundsMask=void 0;return}const r=Ci(t.map(o=>Qn(this.editor.getDocument(),o))),i=Aoe(Ioe({},r),{fill:"none",stroke:"#3384F5","stroke-width":2,"pointer-events":"none"});this.combinedBoundsMask?ut(this.combinedBoundsMask,i):this.combinedBoundsMask=this.interaction.appendTransientElement(Ae("rect",i))}clearMasks(){var t;this.highlightMasks.forEach(n=>n.remove()),this.highlightMasks=[],(t=this.combinedBoundsMask)==null||t.remove(),this.combinedBoundsMask=void 0}}const u$=20,h$=2e3,f$=1.1;class d$ extends yr{constructor(){super(...arguments),this.name="zoom-wheel",this.wheelListener=t=>{if(!this.shouldZoom(t))return;t.preventDefault();const r=t.deltaY<0?1/f$:f$,i=this.editor.getDocument(),o=ya(i),{width:s,height:a}=o,l=s*r,c=a*r;if(!pb(l,u$,h$)||!pb(c,u$,h$))return;if((t.ctrlKey||t.metaKey)&&t.shiftKey){const d=new e$({viewBox:void 0});this.commander.execute(d);return}const u=(t.ctrlKey||t.metaKey)&&!t.shiftKey?this.getMousePoint(i,t):this.getCenterPoint(o),h=WH(o,r,u),f=new e$({viewBox:VH(h)});this.commander.execute(f)},this.getMousePoint=(t,n)=>vr(t,n.clientX,n.clientY),this.getCenterPoint=t=>{const n=t.x+t.width/2,r=t.y+t.height/2;return{x:n,y:r}},this.shouldZoom=t=>{if(!this.interaction.isActive()||t.deltaY===0)return!1;const n=t.ctrlKey||t.metaKey,r=t.shiftKey;return n||r}}init(t){super.init(t),document.addEventListener("wheel",this.wheelListener,{passive:!1})}destroy(){document.removeEventListener("wheel",this.wheelListener)}}class mm{init(t){Object.assign(this,t)}}const Jr=({icon:e,onClick:t,activate:n=!1})=>{Roe();const r=document.createElement("button");r.type="button",r.classList.add(os),n&&r.setAttribute("data-activate","true"),t&&r.addEventListener("click",t);const i=e();return r.appendChild(i),Object.assign(r,{setActivate:(s=>{s?r.setAttribute("data-activate","true"):r.removeAttribute("data-activate")}).bind(r),activate:n})},os="infographic-edit-bar-icon-btn",Toe="infographic-edit-bar-icon-btn-style";function Roe(){An(Toe,`
164
- .${os} {
153
+ `)}var ase=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class b$ extends sr{constructor(t){super(),this.name="drag-canvas",this.trigger=["Space"],this.isTriggerPressed=!1,this.isHovering=!1,this.handleKeyDown=n=>{if(!this.interaction.isActive()||c$(n.target))return;const r=n.target,i=r===document.body||r===document.documentElement,o=r===this.document||this.document.contains(r);!i&&!o||this.trigger.includes(n.code)&&(!this.isHovering&&!this.isTriggerPressed||(n.preventDefault(),n.stopPropagation(),this.interaction.executeExclusiveInteraction(this,()=>ase(this,null,function*(){return new Promise(s=>{this.completeInteraction=s,this.isTriggerPressed=!0;const a=er(this.document);this.startViewBoxString=Dr(a),this.setCursor("grab"),this.document.addEventListener("pointerdown",this.handlePointerDown),window.addEventListener("keyup",this.handleKeyUp)})}))))},this.handlePointerDown=n=>{if(n.button!==0)return;n.preventDefault(),n.stopPropagation();const r=this.document;this.startPoint=Bn(r,n.clientX,n.clientY),this.pointerId=n.pointerId,this.setCursor("grabbing"),window.addEventListener("pointermove",this.handlePointerMove),window.addEventListener("pointerup",this.handlePointerUp),window.addEventListener("pointercancel",this.handlePointerUp)},this.handlePointerMove=n=>{if(n.pointerId!==this.pointerId||!this.startPoint)return;n.preventDefault(),n.stopPropagation();const r=this.document,i=Bn(r,n.clientX,n.clientY),o=i.x-this.startPoint.x,s=i.y-this.startPoint.y,a=er(r),{x:l,y:c,width:u,height:h}=a,f=l-o,d=c-s;this.state.updateOptions({viewBox:Dr({x:f,y:d,width:u,height:h})})},this.handlePointerUp=n=>{n.pointerId===this.pointerId&&(this.startPoint=void 0,this.pointerId=void 0,this.setCursor("grab"),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp))},this.handleKeyUp=n=>{this.trigger.includes(n.code)&&this.stopDrag()},this.stopDrag=()=>{var n;if(this.startViewBoxString){const r=this.document,i=er(r),o=Dr(i);if(this.startViewBoxString!==o){const s=new ic({viewBox:o},{viewBox:this.startViewBoxString});this.commander.execute(s)}}this.startViewBoxString=void 0,this.isTriggerPressed=!1,this.setCursor("default"),this.startPoint=void 0,this.pointerId=void 0,window.removeEventListener("keyup",this.handleKeyUp),this.document.removeEventListener("pointerdown",this.handlePointerDown),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp),(n=this.completeInteraction)==null||n.call(this),this.completeInteraction=void 0},this.setCursor=n=>{document.body.style.cursor=n},this.handleBlur=()=>{this.stopDrag()},this.onMouseEnter=()=>{this.isHovering=!0},this.onMouseLeave=()=>{this.isHovering=!1},t!=null&&t.trigger&&(this.trigger=t.trigger)}init(t){super.init(t),this.document=this.editor.getDocument(),this.document.addEventListener("mouseenter",this.onMouseEnter),this.document.addEventListener("mouseleave",this.onMouseLeave),window.addEventListener("keydown",this.handleKeyDown),window.addEventListener("blur",this.handleBlur)}destroy(){window.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("keyup",this.handleKeyUp),this.document.removeEventListener("pointerdown",this.handlePointerDown),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp),window.removeEventListener("blur",this.handleBlur),this.document.removeEventListener("mouseenter",this.onMouseEnter),this.document.removeEventListener("mouseleave",this.onMouseLeave)}}var lse=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class w$ extends sr{constructor(){super(...arguments),this.name="drag-element",this.selectionForDrag=[],this.willReplaceSelection=!1,this.exclusiveStarted=!1,this.dragItems=[],this.dragging=!1,this.dragThreshold=4,this.handleStart=t=>{if(!this.interaction.isActive()||t.pointerType==="mouse"&&t.button!==0)return;const n=oc(t.target);if(!n||Yw(n))return;const r=this.editor.getDocument();this.pointerId=t.pointerId,this.startPoint=Bn(r,t.clientX,t.clientY),this.dragging=!1,this.startTarget=n;const i=this.interaction.isSelected(n);this.selectionForDrag=i?this.interaction.getSelection():[n],this.willReplaceSelection=!i,this.exclusiveStarted=!1,this.startBounds=this.getSelectionBounds(this.selectionForDrag),this.guideCandidates=this.collectGuideCandidates(this.selectionForDrag),window.addEventListener("pointermove",this.handleMove),window.addEventListener("pointerup",this.handleEnd),window.addEventListener("pointercancel",this.handleEnd)},this.handleMove=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;const n=this.editor.getDocument(),r=Bn(n,t.clientX,t.clientY),i=r.x-this.startPoint.x,o=r.y-this.startPoint.y;if(!this.dragging){if(Math.hypot(i,o)<this.dragThreshold)return;if(!this.startDrag()){this.reset();return}this.dragging=!0}const a=t.altKey?{dx:i,dy:o}:this.getSnappedDelta(i,o);t.preventDefault(),t.stopPropagation(),this.updateGuides(a),this.applyTranslation(a.dx,a.dy),this.emitGeometryChange()},this.handleEnd=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;this.detachPointerListeners();const n=this.editor.getDocument(),r=Bn(n,t.clientX,t.clientY),i=r.x-this.startPoint.x,o=r.y-this.startPoint.y;if((this.dragging||Math.hypot(i,o)>=this.dragThreshold)&&this.dragItems.length&&this.exclusiveStarted){t.preventDefault(),t.stopPropagation();const a=t.altKey?{dx:i,dy:o}:this.getSnappedDelta(i,o);this.updateGuides(a),this.applyTranslation(a.dx,a.dy),this.commitTranslation(a.dx,a.dy),this.emitGeometryChange()}this.reset()}}init(t){super.init(t),this.editor.getDocument().addEventListener("pointerdown",this.handleStart)}destroy(){this.detachPointerListeners(),this.editor.getDocument().removeEventListener("pointerdown",this.handleStart)}startDrag(){if(this.exclusiveStarted)return!0;if(!this.startTarget||(this.dragItems=this.selectionForDrag.filter(n=>Jn(n)).map(n=>this.createDragItem(n)).filter(Boolean),this.dragItems.length===0))return!1;let t=!1;return this.interaction.executeExclusiveInteraction(this,()=>lse(this,null,function*(){return new Promise(n=>{this.willReplaceSelection&&this.startTarget&&this.interaction.select([this.startTarget],"replace"),this.completeInteraction=n,t=!0})})),this.exclusiveStarted=t,t}applyTranslation(t,n){this.dragItems.forEach(r=>{if(r.mode==="attr"){const i=r.startX+t,o=r.startY+n,s={x:i,y:o};r.hasDataX&&(s["data-x"]=i),r.hasDataY&&(s["data-y"]=o),ct(r.element,s)}else{const i=this.composeTransform(r.startX+t,r.startY+n,r.restTransform);ct(r.element,{transform:i})}})}commitTranslation(t,n){if(Math.abs(t)<1e-6&&Math.abs(n)<1e-6)return;const r=this.dragItems.map(i=>{if(i.mode==="attr"){const a=i.startX+t,l=i.startY+n,c={x:a,y:l},u={};return i.hasX?u.x=i.startX:u.x=null,i.hasY?u.y=i.startY:u.y=null,i.hasDataX&&(c["data-x"]=a,u["data-x"]=i.startX),i.hasDataY&&(c["data-y"]=l,u["data-y"]=i.startY),new Sn(i.element,{attributes:c},{attributes:u})}const o=this.composeTransform(i.startX+t,i.startY+n,i.restTransform),s=i.originalTransform!==void 0?i.originalTransform:null;return new Sn(i.element,{attributes:{transform:o}},{attributes:{transform:s}})});r.length&&this.commander.executeBatch(r)}createDragItem(t){const n=this.getTransformInfo(t);if(n)return{element:t,mode:"transform",startX:n.x,startY:n.y,hasX:!1,hasY:!1,hasDataX:!1,hasDataY:!1,restTransform:n.rest,originalTransform:n.original};const{x:r,y:i,hasX:o,hasY:s,hasDataX:a,hasDataY:l}=this.getAttrInfo(t);return{element:t,mode:"attr",startX:r,startY:i,hasX:o,hasY:s,hasDataX:a,hasDataY:l}}getAttrInfo(t){const n=this.editor.getDocument(),{x:r,y:i}=or(n,t),o=cn(t,["x","y","data-x","data-y"],!1),s=o.x!==null&&o.x!==void 0,a=o.y!==null&&o.y!==void 0,l=o["data-x"]!==null&&o["data-x"]!==void 0,c=o["data-y"]!==null&&o["data-y"]!==void 0,u=(v,b)=>{const w=v!=null?Number(v):NaN;return Number.isFinite(w)?w:b},h=u(o.x,NaN),f=u(o.y,NaN),d=u(o["data-x"],NaN),p=u(o["data-y"],NaN),g=Number.isFinite(h)?h:Number.isFinite(d)?d:r,m=Number.isFinite(f)?f:Number.isFinite(p)?p:i;return{x:g,y:m,hasX:s,hasY:a,hasDataX:l,hasDataY:c}}getTransformInfo(t){const n=t.getAttribute("transform");if(n===null)return null;const r=n.match(/translate\(\s*([-\d.]+)(?:[ ,]\s*([-\d.]+))?\s*\)/i);if(!r)return{x:0,y:0,rest:n,original:n};const i=Number(r[1])||0,o=r[2]!==void 0&&Number(r[2])||0,s=n.replace(r[0],"").trim();return{x:i,y:o,rest:s,original:n}}composeTransform(t,n,r){const i=`translate(${t}, ${n})`;return r&&r.length?`${i} ${r}`:i}emitGeometryChange(){var t;const n=(t=this.dragItems[0])==null?void 0:t.element;if(!n)return;const r=or(this.editor.getDocument(),n);this.emitter.emit("selection:geometrychange",{type:"selection:geometrychange",target:n,rect:r})}detachPointerListeners(){window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd),window.removeEventListener("pointercancel",this.handleEnd)}reset(){var t;this.detachPointerListeners(),this.clearGuides(),this.pointerId=void 0,this.startPoint=void 0,this.dragItems=[],this.startTarget=void 0,this.selectionForDrag=[],this.willReplaceSelection=!1,this.exclusiveStarted=!1,this.dragging=!1,this.startBounds=void 0,this.guideCandidates=void 0,(t=this.completeInteraction)==null||t.call(this),this.completeInteraction=void 0}getSelectionBounds(t){if(!t.length)return;const n=this.editor.getDocument(),r=t.map(i=>or(n,i));return Oi(r)}collectGuideCandidates(t){const n=this.editor.getDocument(),r=new Set(t),i=Array.from(n.querySelectorAll("[data-element-type]")).filter(a=>!r.has(a)),o=[],s=[];return i.forEach(a=>{const{x:l,y:c,width:u,height:h}=or(n,a);o.push(l,l+u/2,l+u),s.push(c,c+h/2,c+h)}),{vertical:o,horizontal:s}}getSnappedDelta(t,n){if(!this.startBounds||!this.guideCandidates)return{dx:t,dy:n};const r={x:this.startBounds.x+t,y:this.startBounds.y+n,width:this.startBounds.width,height:this.startBounds.height},i=this.getSnapOffset([r.x,r.x+r.width/2,r.x+r.width],this.guideCandidates.vertical),o=this.getSnapOffset([r.y,r.y+r.height/2,r.y+r.height],this.guideCandidates.horizontal);return{dx:t+((i==null?void 0:i.offset)||0),dy:n+((o==null?void 0:o.offset)||0),snapX:i,snapY:o}}getSnapOffset(t,n,r=5){let i=null;return t.forEach(o=>{n.forEach(s=>{const a=s-o;Math.abs(a)<=r&&(!i||Math.abs(a)<Math.abs(i.offset))&&(i={offset:a,at:s})})}),i||void 0}ensureGuideLine(t){const n=t==="vertical"?this.guideVertical:this.guideHorizontal;if(n)return n;const r=this.interaction.appendTransientElement(Ie("line",{stroke:"#FF7A45","stroke-width":1,"stroke-dasharray":"4 4","pointer-events":"none",visibility:"hidden"}));return t==="vertical"?this.guideVertical=r:this.guideHorizontal=r,r}updateGuides(t){const n=this.editor.getDocument(),{width:r,height:i}=n.viewBox.baseVal;if(t.snapX){const o=this.ensureGuideLine("vertical");ct(o,{x1:t.snapX.at,y1:0,x2:t.snapX.at,y2:i,visibility:"visible"})}else this.guideVertical&&this.guideVertical.setAttribute("visibility","hidden");if(t.snapY){const o=this.ensureGuideLine("horizontal");ct(o,{x1:0,y1:t.snapY.at,x2:r,y2:t.snapY.at,visibility:"visible"})}else this.guideHorizontal&&this.guideHorizontal.setAttribute("visibility","hidden")}clearGuides(){var t,n;(t=this.guideVertical)==null||t.remove(),(n=this.guideHorizontal)==null||n.remove(),this.guideVertical=void 0,this.guideHorizontal=void 0}}var _$=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class x$ extends sr{constructor(){super(...arguments),this.name="hotkey-history",this.handleUndo=t=>_$(this,null,function*(){t.preventDefault(),yield this.commander.undo()}),this.handleRedo=t=>_$(this,null,function*(){t.preventDefault(),yield this.commander.redo()})}init(t){super.init(t),this.hotkey=new Qoe({filter:()=>this.interaction.isActive()}),this.hotkey.bind("mod+z",this.handleUndo),this.hotkey.bind(["mod+shift+z","mod+y"],this.handleRedo)}destroy(){var t;(t=this.hotkey)==null||t.destroy()}}var cse=Object.defineProperty,use=Object.defineProperties,hse=Object.getOwnPropertyDescriptors,C$=Object.getOwnPropertySymbols,fse=Object.prototype.hasOwnProperty,dse=Object.prototype.propertyIsEnumerable,P$=(e,t,n)=>t in e?cse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pse=(e,t)=>{for(var n in t||(t={}))fse.call(t,n)&&P$(e,n,t[n]);if(C$)for(var n of C$(t))dse.call(t,n)&&P$(e,n,t[n]);return e},gse=(e,t)=>use(e,hse(t));class S$ extends sr{constructor(){super(...arguments),this.name="select-highlight",this.highlightMasks=[],this.handleSelectionChanged=({next:t})=>{this.highlightSelection(t)},this.handleGeometryChanged=({target:t})=>{this.interaction.isSelected(t)&&this.highlightSelection(this.interaction.getSelection())},this.handleHistoryChanged=()=>{this.highlightSelection(this.interaction.getSelection())}}init(t){super.init(t);const{emitter:n}=t;n.on("selection:change",this.handleSelectionChanged),n.on("selection:geometrychange",this.handleGeometryChanged),n.on("history:change",this.handleHistoryChanged),this.highlightSelection(this.interaction.getSelection())}destroy(){this.clearMasks();const{emitter:t}=this;t.off("selection:change",this.handleSelectionChanged),t.off("selection:geometrychange",this.handleGeometryChanged),t.off("history:change",this.handleHistoryChanged)}highlightSelection(t){if(t.length===1&&Jn(t[0])){this.clearMasks();return}this.drawElementMasks(t),this.drawCombinedBoundsMask(t)}drawElementMasks(t){let n=0;for(;n<t.length;n++){const{x:r,y:i,width:o,height:s}=or(this.editor.getDocument(),t[n]),a={x:r,y:i,width:o,height:s,fill:"none",stroke:"#3384F5","stroke-width":1,"pointer-events":"none"},l=this.highlightMasks[n];l?ct(l,a):this.highlightMasks[n]=this.interaction.appendTransientElement(Ie("rect",a))}for(;n<this.highlightMasks.length;n++)this.highlightMasks[n].remove();this.highlightMasks=this.highlightMasks.slice(0,t.length)}drawCombinedBoundsMask(t){var n;if(t.length<2){(n=this.combinedBoundsMask)==null||n.remove(),this.combinedBoundsMask=void 0;return}const r=Oi(t.map(o=>or(this.editor.getDocument(),o))),i=gse(pse({},r),{fill:"none",stroke:"#3384F5","stroke-width":2,"pointer-events":"none"});this.combinedBoundsMask?ct(this.combinedBoundsMask,i):this.combinedBoundsMask=this.interaction.appendTransientElement(Ie("rect",i))}clearMasks(){var t;this.highlightMasks.forEach(n=>n.remove()),this.highlightMasks=[],(t=this.combinedBoundsMask)==null||t.remove(),this.combinedBoundsMask=void 0}}const O$=1.1;class $$ extends sr{constructor(t){super(),this.name="zoom-wheel",this.minViewBoxSize=20,this.maxViewBoxSize=2e4,this.initialViewBox=null,this.handleKeyUp=n=>{if(!(n.ctrlKey||n.metaKey||n.shiftKey)&&this.initialViewBox){const i=Dr(er(this.editor.getDocument()));if(i!==this.initialViewBox){const o=new ic({viewBox:i},{viewBox:this.initialViewBox});this.commander.execute(o)}this.initialViewBox=null,document.removeEventListener("keyup",this.handleKeyUp)}},this.wheelListener=n=>{if(!this.shouldZoom(n))return;n.preventDefault();const i=n.deltaY<0?1/O$:O$,o=this.editor.getDocument(),s=er(o),{width:a,height:l}=s,c=a*i,u=l*i;if(!Eb(c,this.minViewBoxSize,this.maxViewBoxSize)||!Eb(u,this.minViewBoxSize,this.maxViewBoxSize))return;this.initialViewBox===null&&(this.initialViewBox=Dr(s),document.addEventListener("keyup",this.handleKeyUp));const h=(n.ctrlKey||n.metaKey)&&!n.shiftKey?this.getMousePoint(o,n):this.getCenterPoint(s),f=Tj(s,i,h);this.state.updateOptions({viewBox:Dr(f)})},this.getMousePoint=(n,r)=>Bn(n,r.clientX,r.clientY),this.getCenterPoint=n=>{const r=n.x+n.width/2,i=n.y+n.height/2;return{x:r,y:i}},this.shouldZoom=n=>{if(!this.interaction.isActive()||n.deltaY===0)return!1;const r=n.ctrlKey||n.metaKey,i=n.shiftKey;return r&&i?!1:r||i},(t==null?void 0:t.minViewBoxSize)!==void 0&&(this.minViewBoxSize=t.minViewBoxSize),(t==null?void 0:t.maxViewBoxSize)!==void 0&&(this.maxViewBoxSize=t.maxViewBoxSize)}init(t){super.init(t),document.addEventListener("wheel",this.wheelListener,{passive:!1})}destroy(){document.removeEventListener("wheel",this.wheelListener),document.removeEventListener("keyup",this.handleKeyUp)}}class cs{init(t){Object.assign(this,t)}}class mse extends cs{constructor(){super(...arguments),this.name="core-sync",this.unregisters=[]}init(t){super.init(t);const n=this.editor.getDocument();this.unregisters.push(this.editor.registerSync("viewBox",r=>{r?n.setAttribute("viewBox",r):n.removeAttribute("viewBox")},{immediate:!0})),this.unregisters.push(this.editor.registerSync("padding",r=>{r!==void 0&&n_(n,qr(r))},{immediate:!0}))}destroy(){this.unregisters.forEach(t=>t())}}const _r=({icon:e,onClick:t,activate:n=!1})=>{vse();const r=document.createElement("button");r.type="button",r.classList.add(us),n&&r.setAttribute("data-activate","true"),t&&r.addEventListener("click",t);const i=e();return r.appendChild(i),Object.assign(r,{setActivate:(s=>{s?r.setAttribute("data-activate","true"):r.removeAttribute("data-activate")}).bind(r),activate:n})},us="infographic-edit-bar-icon-btn",yse="infographic-edit-bar-icon-btn-style";function vse(){vn(yse,`
154
+ .${us} {
165
155
  padding: 0;
166
156
  display: flex;
167
157
  align-items: center;
@@ -176,28 +166,28 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
176
166
  cursor: pointer;
177
167
  transition: color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
178
168
  }
179
- .${os}:hover {
169
+ .${us}:hover {
180
170
  background-color: #f5f5f5;
181
171
  }
182
- .${os}:active {
172
+ .${us}:active {
183
173
  background-color: #d9d9d9;
184
174
  }
185
- .${os}[data-activate="true"] {
175
+ .${us}[data-activate="true"] {
186
176
  background-color: #d9d9d9;
187
177
  }
188
- `)}const Dn="infographic-color-picker",p$=`${Dn}__swatches`,Zl=`${Dn}__swatch`,g$=`${Dn}__controls`,Ql=`${Dn}__input`,m$=`${Dn}__format`,ei=`${Dn}__format-switch`,ym=`${Dn}__format-switch-knob`,Jl=`${Dn}__format-switch-label`,koe="infographic-color-picker-style",Loe="#1f1f1f",Noe=["#000000","#1f1f1f","#434343","#595959","#8c8c8c","#bfbfbf","#d9d9d9","#f0f0f0","#ffffff","#1677ff","#2f54eb","#91caff","#13c2c2","#36cfc9","#52c41a","#73d13d","#fadb14","#ffd666","#fa8c16","#fa541c","#f5222d","#ff7875","#eb2f96","#ffadd2","#722ed1","#9254de","rgba(0, 0, 0, 0.65)","rgba(255, 255, 255, 0.85)"];function y$(e){var t,n,r;if(typeof document=="undefined")throw new Error("ColorPicker can only be used in the browser.");Hoe();const i=document.createElement("div");i.classList.add(Dn);const o=document.createElement("div");o.classList.add(p$),i.appendChild(o);const s=document.createElement("div");s.classList.add(g$),i.appendChild(s);const a=document.createElement("input");a.type="text",a.spellcheck=!1,a.classList.add(Ql),s.appendChild(a);const l=document.createElement("div");l.classList.add(m$),s.appendChild(l);const c=document.createElement("button");c.type="button",c.classList.add(ei),c.appendChild(w$("HEXA"));const u=document.createElement("span");u.classList.add(ym),c.appendChild(u),c.appendChild(w$("RGBA")),l.appendChild(c);let h="hexa",f=(n=(t=ss(e.value))!=null?t:ss(Loe))!=null?n:{r:31,g:31,b:31,a:1};const d=[];return((r=e.swatches)!=null&&r.length?e.swatches:Noe).forEach(C=>{const P=ss(C);if(!P)return;const O=document.createElement("button");O.type="button",O.classList.add(Zl),O.style.setProperty("--swatch-color",ec(P,"rgba")),O.dataset.colorKey=b$(P),O.addEventListener("click",()=>{b(P)}),o.appendChild(O),d.push(O)}),c.addEventListener("click",()=>v(h==="hexa"?"rgba":"hexa")),a.addEventListener("change",m),a.addEventListener("keydown",C=>{C.key==="Enter"&&m()}),_(),Object.assign(i,{setValue:C=>{const P=ss(C);if(!P){a.setAttribute("data-invalid","true");return}a.removeAttribute("data-invalid"),b(P,!1)},destroy:()=>{i.remove()}});function m(){const C=ss(a.value);if(!C){a.setAttribute("data-invalid","true");return}a.removeAttribute("data-invalid"),b(C)}function v(C,P){var O;h!==C&&(h=C,_(),(O=e.onChange)==null||O.call(e,ec(f,h)))}function b(C,P=!0){var O;if(Doe(f,C)){_();return}f=C,_(),P&&((O=e.onChange)==null||O.call(e,ec(f,h)))}function _(){a.value=ec(f,h),x(),w()}function x(){const C=b$(f);d.forEach(P=>{P.dataset.colorKey===C?P.setAttribute("data-active","true"):P.removeAttribute("data-active")})}function w(){h==="rgba"?c.setAttribute("data-format","rgba"):c.setAttribute("data-format","hexa")}}function ss(e){var t;if(!e)return;const n=En(e);if(!n||typeof n.r!="number")return;const r=n;return{r:vm(r.r),g:vm(r.g),b:vm(r.b),a:_$((t=r.alpha)!=null?t:1)}}function ec(e,t){return t==="rgba"?zoe(e):v$(e)}function v$(e){const t=tc(e.r),n=tc(e.g),r=tc(e.b),i=e.a<1?tc(Math.round(e.a*255)):"";return`#${t}${n}${r}${i}`}function zoe(e){const t=qoe(e.a);return`rgba(${e.r}, ${e.g}, ${e.b}, ${t})`}function b$(e){return v$(e).toLowerCase()}function Doe(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}function _$(e){return Number.isNaN(e)?0:Math.min(1,Math.max(0,e))}function vm(e){if(Number.isNaN(e))return 0;const t=e<=1?e*255:e;return Math.round(Math.min(255,Math.max(0,t)))}function tc(e){return e.toString(16).padStart(2,"0")}function qoe(e){const t=Math.round(_$(e)*100)/100;return t===1?"1":t===0?"0":t.toString()}function w$(e){const t=document.createElement("span");return t.textContent=e,t.classList.add(Jl),t}function Hoe(){An(koe,`
189
- .${Dn} {
178
+ `)}const Wn="infographic-color-picker",E$=`${Wn}__swatches`,ac=`${Wn}__swatch`,M$=`${Wn}__controls`,lc=`${Wn}__input`,A$=`${Wn}__format`,ni=`${Wn}__format-switch`,Mm=`${Wn}__format-switch-knob`,cc=`${Wn}__format-switch-label`,bse="infographic-color-picker-style",wse="#1f1f1f",_se=["#000000","#1f1f1f","#434343","#595959","#8c8c8c","#bfbfbf","#d9d9d9","#f0f0f0","#ffffff","#1677ff","#2f54eb","#91caff","#13c2c2","#36cfc9","#52c41a","#73d13d","#fadb14","#ffd666","#fa8c16","#fa541c","#f5222d","#ff7875","#eb2f96","#ffadd2","#722ed1","#9254de","rgba(0, 0, 0, 0.65)","rgba(255, 255, 255, 0.85)"];function I$(e){var t,n,r;if(typeof document=="undefined")throw new Error("ColorPicker can only be used in the browser.");Sse();const i=document.createElement("div");i.classList.add(Wn);const o=document.createElement("div");o.classList.add(E$),i.appendChild(o);const s=document.createElement("div");s.classList.add(M$),i.appendChild(s);const a=document.createElement("input");a.type="text",a.spellcheck=!1,a.classList.add(lc),s.appendChild(a);const l=document.createElement("div");l.classList.add(A$),s.appendChild(l);const c=document.createElement("button");c.type="button",c.classList.add(ni),c.appendChild(L$("HEXA"));const u=document.createElement("span");u.classList.add(Mm),c.appendChild(u),c.appendChild(L$("RGBA")),l.appendChild(c);let h="hexa",f=(n=(t=hs(e.value))!=null?t:hs(wse))!=null?n:{r:31,g:31,b:31,a:1};const d=[];return((r=e.swatches)!=null&&r.length?e.swatches:_se).forEach(C=>{const P=hs(C);if(!P)return;const S=document.createElement("button");S.type="button",S.classList.add(ac),S.style.setProperty("--swatch-color",uc(P,"rgba")),S.dataset.colorKey=R$(P),S.addEventListener("click",()=>{b(P)}),o.appendChild(S),d.push(S)}),c.addEventListener("click",()=>v(h==="hexa"?"rgba":"hexa")),a.addEventListener("change",m),a.addEventListener("keydown",C=>{C.key==="Enter"&&m()}),w(),Object.assign(i,{setValue:C=>{const P=hs(C);if(!P){a.setAttribute("data-invalid","true");return}a.removeAttribute("data-invalid"),b(P,!1)},destroy:()=>{i.remove()}});function m(){const C=hs(a.value);if(!C){a.setAttribute("data-invalid","true");return}a.removeAttribute("data-invalid"),b(C)}function v(C,P){var S;h!==C&&(h=C,w(),(S=e.onChange)==null||S.call(e,uc(f,h)))}function b(C,P=!0){var S;if(Cse(f,C)){w();return}f=C,w(),P&&((S=e.onChange)==null||S.call(e,uc(f,h)))}function w(){a.value=uc(f,h),x(),_()}function x(){const C=R$(f);d.forEach(P=>{P.dataset.colorKey===C?P.setAttribute("data-active","true"):P.removeAttribute("data-active")})}function _(){h==="rgba"?c.setAttribute("data-format","rgba"):c.setAttribute("data-format","hexa")}}function hs(e){var t;if(!e)return;const n=In(e);if(!n||typeof n.r!="number")return;const r=n;return{r:Am(r.r),g:Am(r.g),b:Am(r.b),a:k$((t=r.alpha)!=null?t:1)}}function uc(e,t){return t==="rgba"?xse(e):T$(e)}function T$(e){const t=hc(e.r),n=hc(e.g),r=hc(e.b),i=e.a<1?hc(Math.round(e.a*255)):"";return`#${t}${n}${r}${i}`}function xse(e){const t=Pse(e.a);return`rgba(${e.r}, ${e.g}, ${e.b}, ${t})`}function R$(e){return T$(e).toLowerCase()}function Cse(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}function k$(e){return Number.isNaN(e)?0:Math.min(1,Math.max(0,e))}function Am(e){if(Number.isNaN(e))return 0;const t=e<=1?e*255:e;return Math.round(Math.min(255,Math.max(0,t)))}function hc(e){return e.toString(16).padStart(2,"0")}function Pse(e){const t=Math.round(k$(e)*100)/100;return t===1?"1":t===0?"0":t.toString()}function L$(e){const t=document.createElement("span");return t.textContent=e,t.classList.add(cc),t}function Sse(){vn(bse,`
179
+ .${Wn} {
190
180
  width: 240px;
191
181
  padding: 10px;
192
182
  box-sizing: border-box;
193
183
  }
194
- .${p$} {
184
+ .${E$} {
195
185
  display: grid;
196
186
  grid-template-columns: repeat(auto-fit, 26px);
197
187
  gap: 6px;
198
188
  margin-bottom: 10px;
199
189
  }
200
- .${Zl} {
190
+ .${ac} {
201
191
  width: 24px;
202
192
  height: 24px;
203
193
  border-radius: 50%;
@@ -208,19 +198,19 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
208
198
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
209
199
  transition: transform 0.15s ease, box-shadow 0.15s ease;
210
200
  }
211
- .${Zl}[data-active="true"] {
201
+ .${ac}[data-active="true"] {
212
202
  box-shadow: 0 0 0 2px #1677ff;
213
203
  transform: translateY(-1px);
214
204
  }
215
- .${Zl}:hover {
205
+ .${ac}:hover {
216
206
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
217
207
  }
218
- .${g$} {
208
+ .${M$} {
219
209
  display: flex;
220
210
  align-items: center;
221
211
  gap: 6px;
222
212
  }
223
- .${Ql} {
213
+ .${lc} {
224
214
  flex: 1;
225
215
  min-width: 0;
226
216
  height: 30px;
@@ -236,19 +226,19 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
236
226
  outline: none;
237
227
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
238
228
  }
239
- .${Ql}:focus {
229
+ .${lc}:focus {
240
230
  border-color: #1677ff;
241
231
  background: #ffffff;
242
232
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
243
233
  }
244
- .${Ql}[data-invalid="true"] {
234
+ .${lc}[data-invalid="true"] {
245
235
  border-color: #ff4d4f;
246
236
  box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.12);
247
237
  }
248
- .${m$} {
238
+ .${A$} {
249
239
  display: inline-flex;
250
240
  }
251
- .${ei} {
241
+ .${ni} {
252
242
  position: relative;
253
243
  display: grid;
254
244
  grid-template-columns: 1fr 1fr;
@@ -263,15 +253,15 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
263
253
  overflow: hidden;
264
254
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
265
255
  }
266
- .${ei}:hover {
256
+ .${ni}:hover {
267
257
  background: #ededed;
268
258
  }
269
- .${ei}:focus-visible {
259
+ .${ni}:focus-visible {
270
260
  outline: none;
271
261
  border-color: #1677ff;
272
262
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
273
263
  }
274
- .${ym} {
264
+ .${Mm} {
275
265
  position: absolute;
276
266
  inset: 0;
277
267
  width: 50%;
@@ -280,10 +270,10 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
280
270
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
281
271
  transition: transform 0.2s ease;
282
272
  }
283
- .${ei}[data-format="rgba"] .${ym} {
273
+ .${ni}[data-format="rgba"] .${Mm} {
284
274
  transform: translateX(100%);
285
275
  }
286
- .${Jl} {
276
+ .${cc} {
287
277
  position: relative;
288
278
  z-index: 1;
289
279
  text-align: center;
@@ -291,19 +281,19 @@ ${o(c)}}`}return i.push("type InfographicType = {"),n.includes("title")&&(i.push
291
281
  color: #434343;
292
282
  user-select: none;
293
283
  }
294
- .${ei}[data-format="hexa"] .${Jl}:first-child,
295
- .${ei}[data-format="rgba"] .${Jl}:last-child {
284
+ .${ni}[data-format="hexa"] .${cc}:first-child,
285
+ .${ni}[data-format="rgba"] .${cc}:last-child {
296
286
  color: #ffffff;
297
287
  }
298
- `)}const qt=(e,{viewBox:t="0 0 1024 1024",size:n="1.5em"}={})=>({fill:r="currentColor"}={})=>{const i=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="${t}" width="${n}" height="${n}" fill="${r}">
288
+ `)}const Lt=(e,{viewBox:t="0 0 1024 1024",size:n="1.5em"}={})=>({fill:r="currentColor"}={})=>{const i=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="${t}" width="${n}" height="${n}" fill="${r}">
299
289
  ${e.trim()}
300
- </svg>`;return document.createRange().createContextualFragment(i).firstElementChild},Jn={fontFamily:qt('<path d="M236.992 938.688H145.088L469.312 128h85.376l324.224 810.688h-91.904l-102.4-256H339.392l-102.4 256z m136.512-341.376h276.992L512 251.072l-138.496 346.24z"></path>',{size:"1.2em"}),fontSize:qt('<path d="M479.829333 640H202.837333l-85.333333 213.333333H25.6L298.666667 170.666667h85.333333l273.066667 682.666666h-91.904l-85.333334-213.333333z m-34.133333-85.333333L341.333333 293.76 236.970667 554.666667h208.725333zM896 534.826667V512h85.333333v341.333333h-85.333333v-22.826666a170.666667 170.666667 0 1 1 0-295.68zM810.666667 768a85.333333 85.333333 0 1 0 0-170.666667 85.333333 85.333333 0 0 0 0 170.666667z"></path>',{size:"1.2em"}),align:qt('<path d="M832 96c53.02 0 96 42.98 96 96v640c0 53.02-42.98 96-96 96H192c-53.02 0-96-42.98-96-96V192c0-53.02 42.98-96 96-96z m0 64H192c-17.673 0-32 14.327-32 32v640c0 17.673 14.327 32 32 32h640c17.673 0 32-14.327 32-32V192c0-17.673-14.327-32-32-32zM725.333 672c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004h426.666z m0-192c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004h426.666z m0-192c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004h426.666z"></path>'),alignTop:qt('<path d="M896 859.329c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768z m0-121.533c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM512.45 91.003L512 91a32.632 32.632 0 0 1 1.653 0.042l0.134 0.008c3.447 0.189 6.75 0.924 9.82 2.12l0.198 0.078a16.118 16.118 0 0 1 0.485 0.197l0.11 0.046a31.82 31.82 0 0 1 8.546 5.315l0.12 0.105a31.066 31.066 0 0 1 1.189 1.095l0.08 0.078 0.235 0.23 0.062 0.063 128 128.055c12.494 12.5 12.49 32.761-0.01 45.255-12.374 12.37-32.356 12.489-44.877 0.362l-0.377-0.372L544 200.28v413.598c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.996-31.471l-0.004-0.53V200.278l-73.368 73.4c-12.369 12.375-32.35 12.503-44.877 0.381l-0.378-0.37c-12.374-12.37-12.502-32.352-0.38-44.878l0.37-0.378 128-128.055 0.181-0.178a31.875 31.875 0 0 1 9.5-6.47l0.105-0.046c0.116-0.051 0.233-0.101 0.35-0.15 0.054-0.024 0.11-0.047 0.165-0.07a28.198 28.198 0 0 1 0.536-0.219l0.157-0.061a31.816 31.816 0 0 1 9.356-2.103l0.113-0.007c0.147-0.01 0.294-0.02 0.442-0.027l0.028-0.001 0.39-0.019 0.144-0.005a23.911 23.911 0 0 1 0.712-0.018c0.3-0.004 0.602-0.004 0.904 0z"></path>'),alignRight:qt('<path d="M896 800.339c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H298.667c-17.673 0-32-14.327-32-32 0-17.497 14.041-31.713 31.47-31.996l0.53-0.004H896z m0-213.226c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h768z m0-213.226c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004H896z m0-213.226c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z"></path>'),alignBottom:qt('<path d="M896 859.329c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768z m0-121.533c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM490.505 637.584l-0.127-0.117a32.174 32.174 0 0 1-0.633-0.596l-0.098-0.096-0.217-0.213-0.062-0.063-128-128.055c-12.494-12.499-12.49-32.76 0.01-45.254 12.374-12.37 32.356-12.489 44.877-0.362l0.377 0.371L480 536.598V123c0-17.673 14.327-32 32-32 17.496 0 31.713 14.042 31.996 31.47l0.004 0.53v413.597l73.368-73.398c12.494-12.5 32.755-12.503 45.255-0.01 12.374 12.37 12.502 32.352 0.38 44.878l-0.37 0.377-128 128.055c-0.121 0.12-0.238 0.236-0.356 0.35l0.355-0.35a31.922 31.922 0 0 1-9.68 6.649l-0.09 0.039a29.917 29.917 0 0 1-1.241 0.514 31.816 31.816 0 0 1-9.338 2.095l-0.113 0.008c-0.147 0.01-0.294 0.019-0.442 0.027h-0.028c-0.13 0.008-0.26 0.014-0.39 0.02l-0.144 0.005a23.92 23.92 0 0 1-0.796 0.019 33.927 33.927 0 0 1-0.37 0.002h-0.13l-0.236-0.002 0.366 0.002a32.633 32.633 0 0 1-1.153-0.02l-0.129-0.006a31.108 31.108 0 0 1-0.876-0.046l-0.105-0.008a31.811 31.811 0 0 1-8.926-1.931l-0.089-0.034a21.022 21.022 0 0 1-0.362-0.138l-0.098-0.04a22.132 22.132 0 0 1-0.746-0.304l-0.219-0.093-0.209-0.092a31.812 31.812 0 0 1-8.034-5.094l-0.12-0.105-0.173-0.153-0.151-0.136-0.105-0.093z"></path>'),alignLeft:qt('<path d="M725.333 800.339c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h597.333zM896 587.113c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h768zM725.333 373.887c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h597.333zM896 160.661c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z"></path>'),alignCenter:qt('<path d="M768 800.339c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H256c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h512z m128-213.226c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h768zM768 373.887c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H256c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h512z m128-213.226c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z"></path>'),alignMiddle:qt('<path d="M534.246 617.448l0.377 0.371 128 127.952c12.5 12.494 12.503 32.755 0.009 45.255-12.37 12.374-32.352 12.501-44.878 0.38l-0.377-0.372-73.38-73.352V939c0 17.673-14.326 32-32 32-17.496 0-31.712-14.042-31.995-31.47l-0.004-0.53-0.001-221.314-73.374 73.348c-12.374 12.37-32.356 12.49-44.878 0.363l-0.377-0.371c-12.37-12.375-12.49-32.356-0.362-44.878l0.37-0.377 128-127.952c12.372-12.366 32.347-12.49 44.87-0.37zM896 480.508c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM511.998 54c17.496 0 31.713 14.042 31.996 31.47l0.004 0.53-0.001 221.314 73.38-73.349c12.499-12.494 32.76-12.49 45.255 0.009 12.37 12.374 12.49 32.356 0.362 44.878l-0.37 0.377-128 127.951c-12.372 12.366-32.347 12.49-44.87 0.371l-0.377-0.37-128-127.952c-12.5-12.495-12.503-32.756-0.009-45.255 12.37-12.374 32.352-12.502 44.878-0.38l0.377 0.371 73.374 73.346V86c0-17.673 14.328-32 32-32z"></path>')},er={align:qt('<path d="M555.188 715.059c17.673 0 32 14.327 32 32V875c0 17.673-14.327 32-32 32H171c-17.673 0-32-14.327-32-32V747.059c0-17.673 14.327-32 32-32z m-32.001 63.999H203V843h320.187v-63.942zM854 416.529c17.673 0 32 14.327 32 32v127.942c0 17.673-14.327 32-32 32H171c-17.673 0-32-14.327-32-32V448.529c0-17.673 14.327-32 32-32z m-32 64H203v63.941h619v-63.941zM683.25 118c17.673 0 32 14.327 32 32v127.941c0 17.673-14.327 32-32 32H171c-17.673 0-32-14.327-32-32V150c0-17.673 14.327-32 32-32z m-32 64H203v63.941h448.25V182z"></path>'),alignTop:qt(`
301
- <path d="M661.333 272.411c17.673 0 32 14.327 32 32V902c0 17.673-14.327 32-32 32H362.667c-17.673 0-32-14.327-32-32V304.411c0-17.673 14.327-32 32-32z m-32 63.999H394.666V870h234.667V336.41zM896 101.671c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z" />`),alignRight:qt('<path d="M891.329 96c17.496 0 31.713 14.042 31.995 31.47l0.005 0.53v768c0 17.673-14.327 32-32 32-17.497 0-31.713-14.042-31.996-31.47l-0.004-0.53V128c0-17.673 14.327-32 32-32z m-170.74 234.667c17.673 0 32 14.327 32 32v298.666c0 17.673-14.327 32-32 32H123c-17.673 0-32-14.327-32-32V362.667c0-17.673 14.327-32 32-32z m-32 63.999H155v234.667h533.589V394.666z" />'),alignBottom:qt('<path d="M896 859.329c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768zM661.333 91c17.673 0 32 14.327 32 32v597.589c0 17.673-14.327 32-32 32H362.667c-17.673 0-32-14.327-32-32V123c0-17.673 14.327-32 32-32z m-32 64H394.666v533.589h234.667V155z" />'),alignLeft:qt('<path d="M133.671 96c17.497 0 31.713 14.042 31.996 31.47l0.004 0.53v768c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.995-31.47l-0.005-0.53V128c0-17.673 14.327-32 32-32zM902 330.667c17.673 0 32 14.327 32 32v298.666c0 17.673-14.327 32-32 32H304.411c-17.673 0-32-14.327-32-32V362.667c0-17.673 14.327-32 32-32z m-32.001 63.999H336.41v234.667h533.589V394.666z" />'),alignH:qt('<path d="M512.5 96c17.496 0 31.713 14.042 31.996 31.47l0.004 0.53v202.666H875c17.496 0 31.713 14.042 31.996 31.471l0.004 0.53v298.666c0 17.673-14.327 32-32 32H544.5V896c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.996-31.47l-0.004-0.53V693.333H150c-17.496 0-31.713-14.041-31.996-31.47l-0.004-0.53V362.667c0-17.673 14.327-32 32-32l330.5-0.001V128c0-17.673 14.327-32 32-32z m-32 298.666H182v234.667h298.5V394.666z m362.5 0H544.5v234.667H843V394.666z" />'),alignV:qt('<path d="M661.333 118c17.673 0 32 14.327 32 32v330.5H896c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H693.333V875c0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H362.667c-17.673 0-32-14.327-32-32l-0.001-330.5H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h202.666V150c0-17.496 14.042-31.713 31.471-31.996l0.53-0.004z m-32.001 426.5H394.665l0.001 298.5h234.667l-0.001-298.5z m0.001-362.5H394.666l-0.001 298.5h234.667l0.001-298.5z" />'),distributeH:qt('<path d="M853.333 96c17.497 0 31.713 14.042 31.996 31.47l0.004 0.53v768c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.995-31.47l-0.005-0.53V128c0-17.673 14.327-32 32-32z m-682.666 0c17.496 0 31.713 14.042 31.995 31.47l0.005 0.53v768c0 17.673-14.327 32-32 32-17.497 0-31.713-14.042-31.996-31.47l-0.004-0.53V128c0-17.673 14.327-32 32-32zM640 181.333c17.673 0 32 14.327 32 32v597.334c0 17.673-14.327 32-32 32H384c-17.673 0-32-14.327-32-32V213.333c0-17.673 14.327-32 32-32z m-32 64H416v533.333h192V245.333z" />'),distributeV:qt('<path d="M896 821.333c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM810.667 352c17.673 0 32 14.327 32 32v256c0 17.673-14.327 32-32 32H213.333c-17.673 0-32-14.327-32-32V384c0-17.673 14.327-32 32-32z m-32 64H245.334v192h533.333V416zM896 138.667c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768z" />')},nc="infographic-edit-popover",It=`${nc}__content`,xn=`${nc}__arrow`,joe="infographic-edit-popover-style";function ji(e){var t,n,r,i,o,s,a,l;Foe();const c=(t=e.placement)!=null?t:"top",u=(n=e.closeOnOutsideClick)!=null?n:!0,h=Array.isArray(e.trigger)?e.trigger:[e.trigger||"hover"],f=(r=e.mouseEnterDelay)!=null?r:50,d=(i=e.mouseLeaveDelay)!=null?i:150,p=(o=e.offset)!=null?o:8,g=8,m=7,v=typeof e.padding=="number"?`${e.padding}px`:(s=e.padding)!=null?s:"4px",b=document.createElement("div");b.classList.add(nc);const _=(a=e.target)!=null?a:document.createElement("div");b.appendChild(_);const x=()=>{const j=typeof e.getContainer=="function"?e.getContainer():e.getContainer;return j!=null?j:document.body},w=document.createElement("div");w.classList.add(It),xo(w,$c),w.dataset.placement=Array.isArray(c)?c[0]:c,w.setAttribute("data-open",String(!!e.open)),w.style.setProperty("--popover-gap",`${p}px`),w.style.setProperty("--popover-arrow-size",`${g}px`),w.style.setProperty("--popover-arrow-inner-size",`${m}px`);const C=x(),P=C!==b,O=document.createElement("div");O.classList.add(xn),w.appendChild(O);const $=document.createElement("div");$.classList.add(`${It}-body`),$.style.padding=v,w.appendChild($),C.appendChild(w);let S=!!e.open,M=Array.isArray(c)?c:[c],I=(l=M[0])!=null?l:"top";const E=()=>{var j;const V=_.getBoundingClientRect(),U=w.getBoundingClientRect(),K=window.scrollX||document.documentElement.scrollLeft,J=window.scrollY||document.documentElement.scrollTop,Z=document.documentElement.clientWidth,ie=document.documentElement.clientHeight;let Q=0,te=0;const ce=se=>{switch(se){case"top":return{left:K+V.left+V.width/2-U.width/2,top:J+V.top-U.height-p};case"bottom":return{left:K+V.left+V.width/2-U.width/2,top:J+V.bottom+p};case"left":return{left:K+V.left-U.width-p,top:J+V.top+V.height/2-U.height/2};default:return{left:K+V.right+p,top:J+V.top+V.height/2-U.height/2}}},re=(se,ue)=>se>=K&&ue>=J&&se+U.width<=K+Z&&ue+U.height<=J+ie;let ee=(j=M[0])!=null?j:"top",oe=ce(ee);for(const se of M){const ue=ce(se);if(oe=ue,re(ue.left,ue.top)){ee=se;break}}I=ee,w.dataset.placement=I,P&&({left:Q,top:te}=oe,w.style.left=`${Q}px`,w.style.top=`${te}px`,w.style.right="auto",w.style.bottom="auto",w.style.transform="translate(0, 0)")};P&&(w.style.position="absolute",window.addEventListener("resize",E),window.addEventListener("scroll",E,!0));const A=j=>{let V=j;typeof V=="function"&&(V=V()),$.innerHTML="",V instanceof HTMLElement?$.appendChild(V):$.textContent=V!=null?V:"",E()},T=j=>{var V;M=Array.isArray(j)?j:[j],I=(V=M[0])!=null?V:"top",E()},N=j=>{S=j,w.setAttribute("data-open",String(S)),S&&E(),S&&u?document.addEventListener("click",D,!0):document.removeEventListener("click",D,!0)},H=()=>N(!S),D=j=>{const V=j.target;!b.contains(V)&&(!P||!w.contains(V))&&N(!1)};let B,F;const X=h.includes("hover"),G=h.includes("click"),L=()=>{B!==void 0&&(clearTimeout(B),B=void 0),F!==void 0&&(clearTimeout(F),F=void 0)},R=()=>{X&&(L(),B=window.setTimeout(()=>N(!0),f))},z=()=>{X&&(L(),F=window.setTimeout(()=>N(!1),d))};return G&&_.addEventListener("click",H),X&&(b.addEventListener("mouseenter",R),b.addEventListener("mouseleave",z),w.addEventListener("mouseenter",R),w.addEventListener("mouseleave",z)),A(e.content),T(c),N(S),Object.assign(b,{setOpen:N,toggle:H,setContent:A,setPlacement:T,destroy:()=>{document.removeEventListener("click",D,!0),G&&_.removeEventListener("click",H),X&&(b.removeEventListener("mouseenter",R),b.removeEventListener("mouseleave",z),w.removeEventListener("mouseenter",R),w.removeEventListener("mouseleave",z),L()),P&&(window.removeEventListener("resize",E),window.removeEventListener("scroll",E,!0),w.remove()),b.remove()}})}function Foe(){An(joe,`
302
- .${nc} {
290
+ </svg>`;return document.createRange().createContextualFragment(i).firstElementChild},ar={fontFamily:Lt('<path d="M236.992 938.688H145.088L469.312 128h85.376l324.224 810.688h-91.904l-102.4-256H339.392l-102.4 256z m136.512-341.376h276.992L512 251.072l-138.496 346.24z"></path>',{size:"1.2em"}),fontSize:Lt('<path d="M479.829333 640H202.837333l-85.333333 213.333333H25.6L298.666667 170.666667h85.333333l273.066667 682.666666h-91.904l-85.333334-213.333333z m-34.133333-85.333333L341.333333 293.76 236.970667 554.666667h208.725333zM896 534.826667V512h85.333333v341.333333h-85.333333v-22.826666a170.666667 170.666667 0 1 1 0-295.68zM810.666667 768a85.333333 85.333333 0 1 0 0-170.666667 85.333333 85.333333 0 0 0 0 170.666667z"></path>',{size:"1.2em"}),align:Lt('<path d="M832 96c53.02 0 96 42.98 96 96v640c0 53.02-42.98 96-96 96H192c-53.02 0-96-42.98-96-96V192c0-53.02 42.98-96 96-96z m0 64H192c-17.673 0-32 14.327-32 32v640c0 17.673 14.327 32 32 32h640c17.673 0 32-14.327 32-32V192c0-17.673-14.327-32-32-32zM725.333 672c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004h426.666z m0-192c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004h426.666z m0-192c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004h426.666z"></path>'),alignTop:Lt('<path d="M896 859.329c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768z m0-121.533c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM512.45 91.003L512 91a32.632 32.632 0 0 1 1.653 0.042l0.134 0.008c3.447 0.189 6.75 0.924 9.82 2.12l0.198 0.078a16.118 16.118 0 0 1 0.485 0.197l0.11 0.046a31.82 31.82 0 0 1 8.546 5.315l0.12 0.105a31.066 31.066 0 0 1 1.189 1.095l0.08 0.078 0.235 0.23 0.062 0.063 128 128.055c12.494 12.5 12.49 32.761-0.01 45.255-12.374 12.37-32.356 12.489-44.877 0.362l-0.377-0.372L544 200.28v413.598c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.996-31.471l-0.004-0.53V200.278l-73.368 73.4c-12.369 12.375-32.35 12.503-44.877 0.381l-0.378-0.37c-12.374-12.37-12.502-32.352-0.38-44.878l0.37-0.378 128-128.055 0.181-0.178a31.875 31.875 0 0 1 9.5-6.47l0.105-0.046c0.116-0.051 0.233-0.101 0.35-0.15 0.054-0.024 0.11-0.047 0.165-0.07a28.198 28.198 0 0 1 0.536-0.219l0.157-0.061a31.816 31.816 0 0 1 9.356-2.103l0.113-0.007c0.147-0.01 0.294-0.02 0.442-0.027l0.028-0.001 0.39-0.019 0.144-0.005a23.911 23.911 0 0 1 0.712-0.018c0.3-0.004 0.602-0.004 0.904 0z"></path>'),alignRight:Lt('<path d="M896 800.339c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H298.667c-17.673 0-32-14.327-32-32 0-17.497 14.041-31.713 31.47-31.996l0.53-0.004H896z m0-213.226c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h768z m0-213.226c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004H896z m0-213.226c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z"></path>'),alignBottom:Lt('<path d="M896 859.329c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768z m0-121.533c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM490.505 637.584l-0.127-0.117a32.174 32.174 0 0 1-0.633-0.596l-0.098-0.096-0.217-0.213-0.062-0.063-128-128.055c-12.494-12.499-12.49-32.76 0.01-45.254 12.374-12.37 32.356-12.489 44.877-0.362l0.377 0.371L480 536.598V123c0-17.673 14.327-32 32-32 17.496 0 31.713 14.042 31.996 31.47l0.004 0.53v413.597l73.368-73.398c12.494-12.5 32.755-12.503 45.255-0.01 12.374 12.37 12.502 32.352 0.38 44.878l-0.37 0.377-128 128.055c-0.121 0.12-0.238 0.236-0.356 0.35l0.355-0.35a31.922 31.922 0 0 1-9.68 6.649l-0.09 0.039a29.917 29.917 0 0 1-1.241 0.514 31.816 31.816 0 0 1-9.338 2.095l-0.113 0.008c-0.147 0.01-0.294 0.019-0.442 0.027h-0.028c-0.13 0.008-0.26 0.014-0.39 0.02l-0.144 0.005a23.92 23.92 0 0 1-0.796 0.019 33.927 33.927 0 0 1-0.37 0.002h-0.13l-0.236-0.002 0.366 0.002a32.633 32.633 0 0 1-1.153-0.02l-0.129-0.006a31.108 31.108 0 0 1-0.876-0.046l-0.105-0.008a31.811 31.811 0 0 1-8.926-1.931l-0.089-0.034a21.022 21.022 0 0 1-0.362-0.138l-0.098-0.04a22.132 22.132 0 0 1-0.746-0.304l-0.219-0.093-0.209-0.092a31.812 31.812 0 0 1-8.034-5.094l-0.12-0.105-0.173-0.153-0.151-0.136-0.105-0.093z"></path>'),alignLeft:Lt('<path d="M725.333 800.339c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h597.333zM896 587.113c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h768zM725.333 373.887c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h597.333zM896 160.661c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z"></path>'),alignCenter:Lt('<path d="M768 800.339c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H256c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h512z m128-213.226c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h768zM768 373.887c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H256c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h512z m128-213.226c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z"></path>'),alignMiddle:Lt('<path d="M534.246 617.448l0.377 0.371 128 127.952c12.5 12.494 12.503 32.755 0.009 45.255-12.37 12.374-32.352 12.501-44.878 0.38l-0.377-0.372-73.38-73.352V939c0 17.673-14.326 32-32 32-17.496 0-31.712-14.042-31.995-31.47l-0.004-0.53-0.001-221.314-73.374 73.348c-12.374 12.37-32.356 12.49-44.878 0.363l-0.377-0.371c-12.37-12.375-12.49-32.356-0.362-44.878l0.37-0.377 128-127.952c12.372-12.366 32.347-12.49 44.87-0.37zM896 480.508c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM511.998 54c17.496 0 31.713 14.042 31.996 31.47l0.004 0.53-0.001 221.314 73.38-73.349c12.499-12.494 32.76-12.49 45.255 0.009 12.37 12.374 12.49 32.356 0.362 44.878l-0.37 0.377-128 127.951c-12.372 12.366-32.347 12.49-44.87 0.371l-0.377-0.37-128-127.952c-12.5-12.495-12.503-32.756-0.009-45.255 12.37-12.374 32.352-12.502 44.878-0.38l0.377 0.371 73.374 73.346V86c0-17.673 14.328-32 32-32z"></path>')},Ose=Lt('<path d="M502.714987 58.258904l-126.531056-54.617723a52.797131 52.797131 0 0 0-41.873587 96.855428A447.865322 447.865322 0 0 0 392.02307 946.707184a61.535967 61.535967 0 0 0 13.83649 1.820591 52.797131 52.797131 0 0 0 13.65443-103.773672 342.453118 342.453118 0 0 1-31.678278-651.771485l-8.374718 19.480321a52.615072 52.615072 0 0 0 27.855039 69.182448 51.522718 51.522718 0 0 0 20.572675 4.369418A52.797131 52.797131 0 0 0 476.498481 254.882703L530.205907 127.441352a52.979191 52.979191 0 0 0-27.49092-69.182448zM962.960326 509.765407A448.775617 448.775617 0 0 0 643.992829 68.090094a52.797131 52.797131 0 1 0-30.403866 101.042786A342.635177 342.635177 0 0 1 674.578753 801.059925a52.615072 52.615072 0 0 0-92.30395-50.612422l-71.913335 117.246043a52.433013 52.433013 0 0 0 17.295612 72.82363l117.063985 72.823629a52.797131 52.797131 0 1 0 54.617722-89.755123l-16.021198-10.013249A448.593558 448.593558 0 0 0 962.960326 509.765407z" p-id="1630"/>'),lr={align:Lt('<path d="M555.188 715.059c17.673 0 32 14.327 32 32V875c0 17.673-14.327 32-32 32H171c-17.673 0-32-14.327-32-32V747.059c0-17.673 14.327-32 32-32z m-32.001 63.999H203V843h320.187v-63.942zM854 416.529c17.673 0 32 14.327 32 32v127.942c0 17.673-14.327 32-32 32H171c-17.673 0-32-14.327-32-32V448.529c0-17.673 14.327-32 32-32z m-32 64H203v63.941h619v-63.941zM683.25 118c17.673 0 32 14.327 32 32v127.941c0 17.673-14.327 32-32 32H171c-17.673 0-32-14.327-32-32V150c0-17.673 14.327-32 32-32z m-32 64H203v63.941h448.25V182z"></path>'),alignTop:Lt(`
291
+ <path d="M661.333 272.411c17.673 0 32 14.327 32 32V902c0 17.673-14.327 32-32 32H362.667c-17.673 0-32-14.327-32-32V304.411c0-17.673 14.327-32 32-32z m-32 63.999H394.666V870h234.667V336.41zM896 101.671c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z" />`),alignRight:Lt('<path d="M891.329 96c17.496 0 31.713 14.042 31.995 31.47l0.005 0.53v768c0 17.673-14.327 32-32 32-17.497 0-31.713-14.042-31.996-31.47l-0.004-0.53V128c0-17.673 14.327-32 32-32z m-170.74 234.667c17.673 0 32 14.327 32 32v298.666c0 17.673-14.327 32-32 32H123c-17.673 0-32-14.327-32-32V362.667c0-17.673 14.327-32 32-32z m-32 63.999H155v234.667h533.589V394.666z" />'),alignBottom:Lt('<path d="M896 859.329c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768zM661.333 91c17.673 0 32 14.327 32 32v597.589c0 17.673-14.327 32-32 32H362.667c-17.673 0-32-14.327-32-32V123c0-17.673 14.327-32 32-32z m-32 64H394.666v533.589h234.667V155z" />'),alignLeft:Lt('<path d="M133.671 96c17.497 0 31.713 14.042 31.996 31.47l0.004 0.53v768c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.995-31.47l-0.005-0.53V128c0-17.673 14.327-32 32-32zM902 330.667c17.673 0 32 14.327 32 32v298.666c0 17.673-14.327 32-32 32H304.411c-17.673 0-32-14.327-32-32V362.667c0-17.673 14.327-32 32-32z m-32.001 63.999H336.41v234.667h533.589V394.666z" />'),alignH:Lt('<path d="M512.5 96c17.496 0 31.713 14.042 31.996 31.47l0.004 0.53v202.666H875c17.496 0 31.713 14.042 31.996 31.471l0.004 0.53v298.666c0 17.673-14.327 32-32 32H544.5V896c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.996-31.47l-0.004-0.53V693.333H150c-17.496 0-31.713-14.041-31.996-31.47l-0.004-0.53V362.667c0-17.673 14.327-32 32-32l330.5-0.001V128c0-17.673 14.327-32 32-32z m-32 298.666H182v234.667h298.5V394.666z m362.5 0H544.5v234.667H843V394.666z" />'),alignV:Lt('<path d="M661.333 118c17.673 0 32 14.327 32 32v330.5H896c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H693.333V875c0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H362.667c-17.673 0-32-14.327-32-32l-0.001-330.5H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h202.666V150c0-17.496 14.042-31.713 31.471-31.996l0.53-0.004z m-32.001 426.5H394.665l0.001 298.5h234.667l-0.001-298.5z m0.001-362.5H394.666l-0.001 298.5h234.667l0.001-298.5z" />'),distributeH:Lt('<path d="M853.333 96c17.497 0 31.713 14.042 31.996 31.47l0.004 0.53v768c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.995-31.47l-0.005-0.53V128c0-17.673 14.327-32 32-32z m-682.666 0c17.496 0 31.713 14.042 31.995 31.47l0.005 0.53v768c0 17.673-14.327 32-32 32-17.497 0-31.713-14.042-31.996-31.47l-0.004-0.53V128c0-17.673 14.327-32 32-32zM640 181.333c17.673 0 32 14.327 32 32v597.334c0 17.673-14.327 32-32 32H384c-17.673 0-32-14.327-32-32V213.333c0-17.673 14.327-32 32-32z m-32 64H416v533.333h192V245.333z" />'),distributeV:Lt('<path d="M896 821.333c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM810.667 352c17.673 0 32 14.327 32 32v256c0 17.673-14.327 32-32 32H213.333c-17.673 0-32-14.327-32-32V384c0-17.673 14.327-32 32-32z m-32 64H245.334v192h533.333V416zM896 138.667c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768z" />')},fc="infographic-edit-popover",At=`${fc}__content`,On=`${fc}__arrow`,$se="infographic-edit-popover-style";function Wi(e){var t,n,r,i,o,s,a,l;Ese();const c=(t=e.placement)!=null?t:"top",u=(n=e.closeOnOutsideClick)!=null?n:!0,h=Array.isArray(e.trigger)?e.trigger:[e.trigger||"hover"],f=(r=e.mouseEnterDelay)!=null?r:50,d=(i=e.mouseLeaveDelay)!=null?i:150,p=(o=e.offset)!=null?o:8,g=8,m=7,v=typeof e.padding=="number"?`${e.padding}px`:(s=e.padding)!=null?s:"4px",b=document.createElement("div");b.classList.add(fc);const w=(a=e.target)!=null?a:document.createElement("div");b.appendChild(w);const x=()=>{const j=typeof e.getContainer=="function"?e.getContainer():e.getContainer;return j!=null?j:document.body},_=document.createElement("div");_.classList.add(At),Pi(_,Cs),_.dataset.placement=Array.isArray(c)?c[0]:c,_.setAttribute("data-open",String(!!e.open)),_.style.setProperty("--popover-gap",`${p}px`),_.style.setProperty("--popover-arrow-size",`${g}px`),_.style.setProperty("--popover-arrow-inner-size",`${m}px`);const C=x(),P=C!==b,S=document.createElement("div");S.classList.add(On),_.appendChild(S);const $=document.createElement("div");$.classList.add(`${At}-body`),$.style.padding=v,_.appendChild($),C.appendChild(_);let O=!!e.open,M=Array.isArray(c)?c:[c],A=(l=M[0])!=null?l:"top";const E=()=>{var j;const V=w.getBoundingClientRect(),U=_.getBoundingClientRect(),K=window.scrollX||document.documentElement.scrollLeft,J=window.scrollY||document.documentElement.scrollTop,Z=document.documentElement.clientWidth,ie=document.documentElement.clientHeight;let Q=0,te=0;const ce=se=>{switch(se){case"top":return{left:K+V.left+V.width/2-U.width/2,top:J+V.top-U.height-p};case"bottom":return{left:K+V.left+V.width/2-U.width/2,top:J+V.bottom+p};case"left":return{left:K+V.left-U.width-p,top:J+V.top+V.height/2-U.height/2};default:return{left:K+V.right+p,top:J+V.top+V.height/2-U.height/2}}},re=(se,ue)=>se>=K&&ue>=J&&se+U.width<=K+Z&&ue+U.height<=J+ie;let ee=(j=M[0])!=null?j:"top",oe=ce(ee);for(const se of M){const ue=ce(se);if(oe=ue,re(ue.left,ue.top)){ee=se;break}}A=ee,_.dataset.placement=A,P&&({left:Q,top:te}=oe,_.style.left=`${Q}px`,_.style.top=`${te}px`,_.style.right="auto",_.style.bottom="auto",_.style.transform="translate(0, 0)")};P&&(_.style.position="absolute",window.addEventListener("resize",E),window.addEventListener("scroll",E,!0));const I=j=>{let V=j;typeof V=="function"&&(V=V()),$.innerHTML="",V instanceof HTMLElement?$.appendChild(V):$.textContent=V!=null?V:"",E()},T=j=>{var V;M=Array.isArray(j)?j:[j],A=(V=M[0])!=null?V:"top",E()},N=j=>{O=j,_.setAttribute("data-open",String(O)),O&&E(),O&&u?document.addEventListener("click",D,!0):document.removeEventListener("click",D,!0)},H=()=>N(!O),D=j=>{const V=j.target;!b.contains(V)&&(!P||!_.contains(V))&&N(!1)};let W,F;const X=h.includes("hover"),G=h.includes("click"),L=()=>{W!==void 0&&(clearTimeout(W),W=void 0),F!==void 0&&(clearTimeout(F),F=void 0)},R=()=>{X&&(L(),W=window.setTimeout(()=>N(!0),f))},z=()=>{X&&(L(),F=window.setTimeout(()=>N(!1),d))};return G&&w.addEventListener("click",H),X&&(b.addEventListener("mouseenter",R),b.addEventListener("mouseleave",z),_.addEventListener("mouseenter",R),_.addEventListener("mouseleave",z)),I(e.content),T(c),N(O),Object.assign(b,{setOpen:N,toggle:H,setContent:I,setPlacement:T,destroy:()=>{document.removeEventListener("click",D,!0),G&&w.removeEventListener("click",H),X&&(b.removeEventListener("mouseenter",R),b.removeEventListener("mouseleave",z),_.removeEventListener("mouseenter",R),_.removeEventListener("mouseleave",z),L()),P&&(window.removeEventListener("resize",E),window.removeEventListener("scroll",E,!0),_.remove()),b.remove()}})}function Ese(){vn($se,`
292
+ .${fc} {
303
293
  position: relative;
304
294
  display: inline-flex;
305
295
  }
306
- .${It} {
296
+ .${At} {
307
297
  position: absolute;
308
298
  z-index: 1200;
309
299
  padding: 0;
@@ -319,34 +309,34 @@ ${e.trim()}
319
309
  pointer-events: none;
320
310
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
321
311
  }
322
- .${It}-body {
312
+ .${At}-body {
323
313
  padding: 4px;
324
314
  color: #000000d9;
325
315
  font-size: 12px;
326
316
  line-height: 1.5;
327
317
  }
328
- .${It}[data-open="true"] {
318
+ .${At}[data-open="true"] {
329
319
  opacity: 1;
330
320
  visibility: visible;
331
321
  pointer-events: auto;
332
322
  }
333
- .${xn} {
323
+ .${On} {
334
324
  position: absolute;
335
325
  width: 0;
336
326
  height: 0;
337
327
  }
338
- .${xn}::after {
328
+ .${On}::after {
339
329
  content: '';
340
330
  position: absolute;
341
331
  width: 0;
342
332
  height: 0;
343
333
  }
344
- .${It}[data-placement="top"] {
334
+ .${At}[data-placement="top"] {
345
335
  left: 50%;
346
336
  bottom: calc(100% + var(--popover-gap));
347
337
  transform: translate(-50%, calc(-1 * var(--popover-gap) / 2));
348
338
  }
349
- .${It}[data-placement="top"] .${xn} {
339
+ .${At}[data-placement="top"] .${On} {
350
340
  left: 50%;
351
341
  bottom: calc(-1 * var(--popover-arrow-size));
352
342
  transform: translateX(-50%);
@@ -354,7 +344,7 @@ ${e.trim()}
354
344
  border-right: var(--popover-arrow-size) solid transparent;
355
345
  border-top: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);
356
346
  }
357
- .${It}[data-placement="top"] .${xn}::after {
347
+ .${At}[data-placement="top"] .${On}::after {
358
348
  left: 50%;
359
349
  bottom: 1px;
360
350
  transform: translateX(-50%);
@@ -362,15 +352,15 @@ ${e.trim()}
362
352
  border-right: var(--popover-arrow-inner-size) solid transparent;
363
353
  border-top: var(--popover-arrow-inner-size) solid #fff;
364
354
  }
365
- .${It}[data-placement="top"][data-open="true"] {
355
+ .${At}[data-placement="top"][data-open="true"] {
366
356
  transform: translate(-50%, 0);
367
357
  }
368
- .${It}[data-placement="bottom"] {
358
+ .${At}[data-placement="bottom"] {
369
359
  left: 50%;
370
360
  top: calc(100% + var(--popover-gap));
371
361
  transform: translate(-50%, calc(var(--popover-gap) / 2));
372
362
  }
373
- .${It}[data-placement="bottom"] .${xn} {
363
+ .${At}[data-placement="bottom"] .${On} {
374
364
  left: 50%;
375
365
  top: calc(-1 * var(--popover-arrow-size) + 2px);
376
366
  transform: translateX(-50%);
@@ -378,7 +368,7 @@ ${e.trim()}
378
368
  border-right: var(--popover-arrow-size) solid transparent;
379
369
  border-bottom: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);
380
370
  }
381
- .${It}[data-placement="bottom"] .${xn}::after {
371
+ .${At}[data-placement="bottom"] .${On}::after {
382
372
  left: 50%;
383
373
  top: 1px;
384
374
  transform: translateX(-50%);
@@ -386,15 +376,15 @@ ${e.trim()}
386
376
  border-right: var(--popover-arrow-inner-size) solid transparent;
387
377
  border-bottom: var(--popover-arrow-inner-size) solid #fff;
388
378
  }
389
- .${It}[data-placement="bottom"][data-open="true"] {
379
+ .${At}[data-placement="bottom"][data-open="true"] {
390
380
  transform: translate(-50%, 0);
391
381
  }
392
- .${It}[data-placement="left"] {
382
+ .${At}[data-placement="left"] {
393
383
  right: calc(100% + var(--popover-gap));
394
384
  top: 50%;
395
385
  transform: translate(calc(-1 * var(--popover-gap) / 2), -50%);
396
386
  }
397
- .${It}[data-placement="left"] .${xn} {
387
+ .${At}[data-placement="left"] .${On} {
398
388
  right: calc(-1 * var(--popover-arrow-size) + 1px);
399
389
  top: 50%;
400
390
  transform: translateY(-50%);
@@ -403,7 +393,7 @@ ${e.trim()}
403
393
  border-left: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);
404
394
  border-right: 0;
405
395
  }
406
- .${It}[data-placement="left"] .${xn}::after {
396
+ .${At}[data-placement="left"] .${On}::after {
407
397
  right: 1px;
408
398
  top: 50%;
409
399
  transform: translateY(-50%);
@@ -412,15 +402,15 @@ ${e.trim()}
412
402
  border-left: var(--popover-arrow-inner-size) solid #fff;
413
403
  border-right: 0;
414
404
  }
415
- .${It}[data-placement="left"][data-open="true"] {
405
+ .${At}[data-placement="left"][data-open="true"] {
416
406
  transform: translate(0, -50%);
417
407
  }
418
- .${It}[data-placement="right"] {
408
+ .${At}[data-placement="right"] {
419
409
  left: calc(100% + var(--popover-gap));
420
410
  top: 50%;
421
411
  transform: translate(calc(var(--popover-gap) / 2), -50%);
422
412
  }
423
- .${It}[data-placement="right"] .${xn} {
413
+ .${At}[data-placement="right"] .${On} {
424
414
  left: calc(-1 * var(--popover-arrow-size) + 1px);
425
415
  top: 50%;
426
416
  transform: translateY(-50%);
@@ -429,7 +419,7 @@ ${e.trim()}
429
419
  border-right: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);
430
420
  border-left: 0;
431
421
  }
432
- .${It}[data-placement="right"] .${xn}::after {
422
+ .${At}[data-placement="right"] .${On}::after {
433
423
  left: 1px;
434
424
  top: 50%;
435
425
  transform: translateY(-50%);
@@ -437,28 +427,28 @@ ${e.trim()}
437
427
  border-bottom: var(--popover-arrow-inner-size) solid transparent;
438
428
  border-right: var(--popover-arrow-inner-size) solid #fff;
439
429
  }
440
- .${It}[data-placement="right"][data-open="true"] {
430
+ .${At}[data-placement="right"][data-open="true"] {
441
431
  transform: translate(0, -50%);
442
432
  }
443
- `)}const bm="infographic-align-grid",x$=`${bm}--compact`,Boe="infographic-align-grid-style",Woe=`
444
- .${bm} {
433
+ `)}const Im="infographic-align-grid",N$=`${Im}--compact`,Mse="infographic-align-grid-style",Ase=`
434
+ .${Im} {
445
435
  display: grid;
446
436
  grid-template-columns: repeat(4, 32px);
447
437
  grid-auto-rows: 32px;
448
438
  gap: 2px;
449
439
  }
450
- .${x$} {
440
+ .${N$} {
451
441
  grid-template-columns: repeat(3, 32px);
452
442
  }
453
- `,C$=[{icon:er.alignLeft,action:"LEFT"},{icon:er.alignH,action:"H_CENTER"},{icon:er.alignRight,action:"RIGHT"},{icon:er.distributeH,action:"H_DISTRIBUTE"},{icon:er.alignTop,action:"TOP"},{icon:er.alignV,action:"V_CENTER"},{icon:er.alignBottom,action:"BOTTOM"},{icon:er.distributeV,action:"V_DISTRIBUTE"}],Voe=(e,t,n,r)=>{var i;An(Boe,Woe);const o=(i=r==null?void 0:r.enableDistribution)!=null?i:!0,s=Goe(a=>Yoe(e,a,n),o);return ji({target:Jr({icon:er.align}),content:s,placement:"top",offset:12})};function Goe(e,t){const n=document.createElement("div");return n.classList.add(bm),t||n.classList.add(x$),(t?C$:C$.filter(({action:i})=>i!=="H_DISTRIBUTE"&&i!=="V_DISTRIBUTE")).forEach(({icon:i,action:o})=>{const s=Jr({icon:i,onClick:()=>e(o)});n.appendChild(s)}),n}function Yoe(e,t,n){if(!e.length)return;const r=e[0].ownerSVGElement;if(!r)return;const i=e.map(u=>Koe(u,r)).filter(Boolean);if(!i.length)return;const o=i.filter(u=>u.movable);if(!o.length)return;const s=i.filter(u=>!u.movable),a=s.length?s:i,l=Ci(a.map(u=>u.bounds)),c=[];switch(t){case"LEFT":{const u=l.x;o.forEach(h=>{const f=u-h.bounds.x;br(c,h,f,0)});break}case"H_CENTER":{const u=l.x+l.width/2;o.forEach(h=>{const f=u-(h.bounds.x+h.bounds.width/2);br(c,h,f,0)});break}case"RIGHT":{const u=l.x+l.width;o.forEach(h=>{const f=u-(h.bounds.x+h.bounds.width);br(c,h,f,0)});break}case"TOP":{const u=l.y;o.forEach(h=>{const f=u-h.bounds.y;br(c,h,0,f)});break}case"V_CENTER":{const u=l.y+l.height/2;o.forEach(h=>{const f=u-(h.bounds.y+h.bounds.height/2);br(c,h,0,f)});break}case"BOTTOM":{const u=l.y+l.height;o.forEach(h=>{const f=u-(h.bounds.y+h.bounds.height);br(c,h,0,f)});break}case"H_DISTRIBUTE":{Xoe(i,c);break}case"V_DISTRIBUTE":{Uoe(i,c);break}}c.length&&n.executeBatch(c)}function Xoe(e,t){if(e.length<=2)return;const n=[...e].sort((i,o)=>i.bounds.x-o.bounds.x||i.bounds.y-o.bounds.y),r=P$(n);for(let i=0;i<r.length-1;i++){const o=r[i],s=r[i+1],a=n[o],l=n[s],c=n.slice(o+1,s);if(!c.length)continue;const u=l.bounds.x-(a.bounds.x+a.bounds.width),h=c.reduce((p,g)=>p+g.bounds.width,0),f=(u-h)/(c.length+1);let d=a.bounds.x+a.bounds.width+f;c.forEach(p=>{const g=d-p.bounds.x;br(t,p,g,0),d+=p.bounds.width+f})}}function Uoe(e,t){if(e.length<=2)return;const n=[...e].sort((i,o)=>i.bounds.y-o.bounds.y||i.bounds.x-o.bounds.x),r=P$(n);for(let i=0;i<r.length-1;i++){const o=r[i],s=r[i+1],a=n[o],l=n[s],c=n.slice(o+1,s);if(!c.length)continue;const u=l.bounds.y-(a.bounds.y+a.bounds.height),h=c.reduce((p,g)=>p+g.bounds.height,0),f=(u-h)/(c.length+1);let d=a.bounds.y+a.bounds.height+f;c.forEach(p=>{const g=d-p.bounds.y;br(t,p,0,g),d+=p.bounds.height+f})}}function P$(e){const t=new Set;return t.add(0),t.add(e.length-1),e.forEach((n,r)=>{n.movable||t.add(r)}),Array.from(t).sort((n,r)=>n-r)}function br(e,t,n,r){const i=Zoe(t,n,r);i&&e.push(i)}function Koe(e,t){const n=Qn(t,e),r=!fr(e),i=Joe(e);if(i)return{element:e,bounds:n,mode:"transform",startX:i.x,startY:i.y,hasX:!1,hasY:!1,hasDataX:!1,hasDataY:!1,restTransform:i.rest,originalTransform:i.original,movable:r};const{x:o,y:s,hasX:a,hasY:l,hasDataX:c,hasDataY:u}=Qoe(e,n);return{element:e,bounds:n,mode:"attr",startX:o,startY:s,hasX:a,hasY:l,hasDataX:c,hasDataY:u,movable:r}}function Zoe(e,t,n){if(!e.movable||Math.abs(t)<1e-6&&Math.abs(n)<1e-6)return null;if(e.mode==="attr"){const o=e.startX+t,s=e.startY+n,a={x:o,y:s},l={};return l.x=e.hasX?e.startX:null,l.y=e.hasY?e.startY:null,e.hasDataX&&(a["data-x"]=o,l["data-x"]=e.startX),e.hasDataY&&(a["data-y"]=s,l["data-y"]=e.startY),new zn(e.element,{attributes:a},{attributes:l})}const r=ese(e.startX+t,e.startY+n,e.restTransform),i=e.originalTransform!==void 0?e.originalTransform:null;return new zn(e.element,{attributes:{transform:r}},{attributes:{transform:i}})}function Qoe(e,t){const n=cn(e,["x","y","data-x","data-y"],!1),r=n.x!==null&&n.x!==void 0,i=n.y!==null&&n.y!==void 0,o=n["data-x"]!==null&&n["data-x"]!==void 0,s=n["data-y"]!==null&&n["data-y"]!==void 0,a=(p,g)=>{const m=p!=null?Number(p):NaN;return Number.isFinite(m)?m:g},l=a(n.x,NaN),c=a(n.y,NaN),u=a(n["data-x"],NaN),h=a(n["data-y"],NaN),f=Number.isFinite(l)?l:Number.isFinite(u)?u:t.x,d=Number.isFinite(c)?c:Number.isFinite(h)?h:t.y;return{x:f,y:d,hasX:r,hasY:i,hasDataX:o,hasDataY:s}}function Joe(e){var t;const n=e.getAttribute("transform");if(n===null)return null;const r=n.match(/translate\(\s*([-\d.]+)(?:[ ,]\s*([-\d.]+))?\s*\)/i);if(!r)return{x:0,y:0,rest:{before:n.trim(),after:""},original:n};const i=Number(r[1])||0,o=r[2]!==void 0&&Number(r[2])||0,s=(t=r.index)!=null?t:0,a=n.slice(0,s).trim(),l=n.slice(s+r[0].length).trim();return{x:i,y:o,rest:{before:a,after:l},original:n}}function ese(e,t,n){const r=`translate(${e}, ${t})`;return[n==null?void 0:n.before,r,n==null?void 0:n.after].filter(o=>o&&o.length).join(" ")}var tse=Object.defineProperty,O$=Object.getOwnPropertySymbols,nse=Object.prototype.hasOwnProperty,rse=Object.prototype.propertyIsEnumerable,S$=(e,t,n)=>t in e?tse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ise=(e,t)=>{for(var n in t||(t={}))nse.call(t,n)&&S$(e,n,t[n]);if(O$)for(var n of O$(t))rse.call(t,n)&&S$(e,n,t[n]);return e};const $$="infographic-font-align-grid",ose="infographic-font-align-grid-style",sse=[{icon:Jn.alignLeft,align:"LEFT"},{icon:Jn.alignCenter,align:"CENTER"},{icon:Jn.alignRight,align:"RIGHT"}],ase=[{icon:Jn.alignTop,align:"TOP"},{icon:Jn.alignMiddle,align:"MIDDLE"},{icon:Jn.alignBottom,align:"BOTTOM"}],lse=`
454
- .${$$} {
443
+ `,z$=[{icon:lr.alignLeft,action:"LEFT"},{icon:lr.alignH,action:"H_CENTER"},{icon:lr.alignRight,action:"RIGHT"},{icon:lr.distributeH,action:"H_DISTRIBUTE"},{icon:lr.alignTop,action:"TOP"},{icon:lr.alignV,action:"V_CENTER"},{icon:lr.alignBottom,action:"BOTTOM"},{icon:lr.distributeV,action:"V_DISTRIBUTE"}],Ise=(e,t,n,r)=>{var i;vn(Mse,Ase);const o=(i=r==null?void 0:r.enableDistribution)!=null?i:!0,s=Tse(a=>Rse(e,a,n),o);return Wi({target:_r({icon:lr.align}),content:s,placement:"top",offset:12})};function Tse(e,t){const n=document.createElement("div");return n.classList.add(Im),t||n.classList.add(N$),(t?z$:z$.filter(({action:i})=>i!=="H_DISTRIBUTE"&&i!=="V_DISTRIBUTE")).forEach(({icon:i,action:o})=>{const s=_r({icon:i,onClick:()=>e(o)});n.appendChild(s)}),n}function Rse(e,t,n){if(!e.length)return;const r=e[0].ownerSVGElement;if(!r)return;const i=e.map(u=>Nse(u,r)).filter(Boolean);if(!i.length)return;const o=i.filter(u=>u.movable);if(!o.length)return;const s=i.filter(u=>!u.movable),a=s.length?s:i,l=Oi(a.map(u=>u.bounds)),c=[];switch(t){case"LEFT":{const u=l.x;o.forEach(h=>{const f=u-h.bounds.x;xr(c,h,f,0)});break}case"H_CENTER":{const u=l.x+l.width/2;o.forEach(h=>{const f=u-(h.bounds.x+h.bounds.width/2);xr(c,h,f,0)});break}case"RIGHT":{const u=l.x+l.width;o.forEach(h=>{const f=u-(h.bounds.x+h.bounds.width);xr(c,h,f,0)});break}case"TOP":{const u=l.y;o.forEach(h=>{const f=u-h.bounds.y;xr(c,h,0,f)});break}case"V_CENTER":{const u=l.y+l.height/2;o.forEach(h=>{const f=u-(h.bounds.y+h.bounds.height/2);xr(c,h,0,f)});break}case"BOTTOM":{const u=l.y+l.height;o.forEach(h=>{const f=u-(h.bounds.y+h.bounds.height);xr(c,h,0,f)});break}case"H_DISTRIBUTE":{kse(i,c);break}case"V_DISTRIBUTE":{Lse(i,c);break}}c.length&&n.executeBatch(c)}function kse(e,t){if(e.length<=2)return;const n=[...e].sort((i,o)=>i.bounds.x-o.bounds.x||i.bounds.y-o.bounds.y),r=D$(n);for(let i=0;i<r.length-1;i++){const o=r[i],s=r[i+1],a=n[o],l=n[s],c=n.slice(o+1,s);if(!c.length)continue;const u=l.bounds.x-(a.bounds.x+a.bounds.width),h=c.reduce((p,g)=>p+g.bounds.width,0),f=(u-h)/(c.length+1);let d=a.bounds.x+a.bounds.width+f;c.forEach(p=>{const g=d-p.bounds.x;xr(t,p,g,0),d+=p.bounds.width+f})}}function Lse(e,t){if(e.length<=2)return;const n=[...e].sort((i,o)=>i.bounds.y-o.bounds.y||i.bounds.x-o.bounds.x),r=D$(n);for(let i=0;i<r.length-1;i++){const o=r[i],s=r[i+1],a=n[o],l=n[s],c=n.slice(o+1,s);if(!c.length)continue;const u=l.bounds.y-(a.bounds.y+a.bounds.height),h=c.reduce((p,g)=>p+g.bounds.height,0),f=(u-h)/(c.length+1);let d=a.bounds.y+a.bounds.height+f;c.forEach(p=>{const g=d-p.bounds.y;xr(t,p,0,g),d+=p.bounds.height+f})}}function D$(e){const t=new Set;return t.add(0),t.add(e.length-1),e.forEach((n,r)=>{n.movable||t.add(r)}),Array.from(t).sort((n,r)=>n-r)}function xr(e,t,n,r){const i=zse(t,n,r);i&&e.push(i)}function Nse(e,t){const n=or(t,e),r=!mr(e),i=qse(e);if(i)return{element:e,bounds:n,mode:"transform",startX:i.x,startY:i.y,hasX:!1,hasY:!1,hasDataX:!1,hasDataY:!1,restTransform:i.rest,originalTransform:i.original,movable:r};const{x:o,y:s,hasX:a,hasY:l,hasDataX:c,hasDataY:u}=Dse(e,n);return{element:e,bounds:n,mode:"attr",startX:o,startY:s,hasX:a,hasY:l,hasDataX:c,hasDataY:u,movable:r}}function zse(e,t,n){if(!e.movable||Math.abs(t)<1e-6&&Math.abs(n)<1e-6)return null;if(e.mode==="attr"){const o=e.startX+t,s=e.startY+n,a={x:o,y:s},l={};return l.x=e.hasX?e.startX:null,l.y=e.hasY?e.startY:null,e.hasDataX&&(a["data-x"]=o,l["data-x"]=e.startX),e.hasDataY&&(a["data-y"]=s,l["data-y"]=e.startY),new Sn(e.element,{attributes:a},{attributes:l})}const r=Hse(e.startX+t,e.startY+n,e.restTransform),i=e.originalTransform!==void 0?e.originalTransform:null;return new Sn(e.element,{attributes:{transform:r}},{attributes:{transform:i}})}function Dse(e,t){const n=cn(e,["x","y","data-x","data-y"],!1),r=n.x!==null&&n.x!==void 0,i=n.y!==null&&n.y!==void 0,o=n["data-x"]!==null&&n["data-x"]!==void 0,s=n["data-y"]!==null&&n["data-y"]!==void 0,a=(p,g)=>{const m=p!=null?Number(p):NaN;return Number.isFinite(m)?m:g},l=a(n.x,NaN),c=a(n.y,NaN),u=a(n["data-x"],NaN),h=a(n["data-y"],NaN),f=Number.isFinite(l)?l:Number.isFinite(u)?u:t.x,d=Number.isFinite(c)?c:Number.isFinite(h)?h:t.y;return{x:f,y:d,hasX:r,hasY:i,hasDataX:o,hasDataY:s}}function qse(e){var t;const n=e.getAttribute("transform");if(n===null)return null;const r=n.match(/translate\(\s*([-\d.]+)(?:[ ,]\s*([-\d.]+))?\s*\)/i);if(!r)return{x:0,y:0,rest:{before:n.trim(),after:""},original:n};const i=Number(r[1])||0,o=r[2]!==void 0&&Number(r[2])||0,s=(t=r.index)!=null?t:0,a=n.slice(0,s).trim(),l=n.slice(s+r[0].length).trim();return{x:i,y:o,rest:{before:a,after:l},original:n}}function Hse(e,t,n){const r=`translate(${e}, ${t})`;return[n==null?void 0:n.before,r,n==null?void 0:n.after].filter(o=>o&&o.length).join(" ")}var jse=Object.defineProperty,q$=Object.getOwnPropertySymbols,Fse=Object.prototype.hasOwnProperty,Bse=Object.prototype.propertyIsEnumerable,H$=(e,t,n)=>t in e?jse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wse=(e,t)=>{for(var n in t||(t={}))Fse.call(t,n)&&H$(e,n,t[n]);if(q$)for(var n of q$(t))Bse.call(t,n)&&H$(e,n,t[n]);return e};const j$="infographic-font-align-grid",Vse="infographic-font-align-grid-style",Gse=[{icon:ar.alignLeft,align:"LEFT"},{icon:ar.alignCenter,align:"CENTER"},{icon:ar.alignRight,align:"RIGHT"}],Yse=[{icon:ar.alignTop,align:"TOP"},{icon:ar.alignMiddle,align:"MIDDLE"},{icon:ar.alignBottom,align:"BOTTOM"}],Xse=`
444
+ .${j$} {
455
445
  display: grid;
456
446
  grid-template-columns: repeat(3, 32px);
457
447
  grid-auto-rows: 32px;
458
448
  gap: 2px;
459
449
  }
460
- `,E$=(e,t,n)=>{An(ose,lse);const r={horizontal:t["data-horizontal-align"],vertical:t["data-vertical-align"]},i=Jr({icon:Jn.align}),o=cse(r,s=>{const a={};s.horizontal&&(a["data-horizontal-align"]=s.horizontal),s.vertical&&(a["data-vertical-align"]=s.vertical),Object.keys(a).length&&n.executeBatch(e.map(l=>new zn(l,{attributes:a})))});return ji({target:i,content:o,placement:"top",offset:12})};function cse(e,t){const n=document.createElement("div");n.classList.add($$);const r={},i=()=>{Object.entries(r).forEach(([s,a])=>{const l=s===e.horizontal||s===e.vertical;a.setActivate(l)})},o=(s,a)=>{s.forEach(({icon:l,align:c})=>{const u=Jr({icon:l,onClick:()=>{e[a]!==c&&(Object.assign(e,{[a]:c}),i(),t(ise({},e)))},activate:c===e[a]});r[c]=u,n.appendChild(u)})};return o(sse,"horizontal"),o(ase,"vertical"),n}const rc="infographic-font-color-btn",use="infographic-font-color-style",_m="#1f1f1f",M$=(e,t,n)=>{fse();const r=hse(t.fill),i=t.fill===void 0&&e.length>1,o=document.createElement("button");o.type="button",o.classList.add(rc),I$(o,r!=null?r:_m,i);const s=y$({value:r!=null?r:_m,onChange:a=>{I$(o,a,!1),n.executeBatch(e.map(l=>new zn(l,{attributes:{fill:a}})))}});return ji({target:o,content:s,placement:["top","bottom"],offset:12,trigger:"hover",closeOnOutsideClick:!0,open:!1,padding:0})};function hse(e){if(e)return Sr(e)?e:void 0}function I$(e,t,n){e.style.setProperty("--infographic-font-color",t),n?e.setAttribute("data-mixed","true"):e.removeAttribute("data-mixed")}function fse(){An(use,`
461
- .${rc} {
450
+ `,F$=(e,t,n)=>{vn(Vse,Xse);const r={horizontal:t["data-horizontal-align"],vertical:t["data-vertical-align"]},i=_r({icon:ar.align}),o=Use(r,s=>{const a={};s.horizontal&&(a["data-horizontal-align"]=s.horizontal),s.vertical&&(a["data-vertical-align"]=s.vertical),Object.keys(a).length&&n.executeBatch(e.map(l=>new Sn(l,{attributes:a})))});return Wi({target:i,content:o,placement:"top",offset:12})};function Use(e,t){const n=document.createElement("div");n.classList.add(j$);const r={},i=()=>{Object.entries(r).forEach(([s,a])=>{const l=s===e.horizontal||s===e.vertical;a.setActivate(l)})},o=(s,a)=>{s.forEach(({icon:l,align:c})=>{const u=_r({icon:l,onClick:()=>{e[a]!==c&&(Object.assign(e,{[a]:c}),i(),t(Wse({},e)))},activate:c===e[a]});r[c]=u,n.appendChild(u)})};return o(Gse,"horizontal"),o(Yse,"vertical"),n}const dc="infographic-font-color-btn",Kse="infographic-font-color-style",Tm="#1f1f1f",B$=(e,t,n)=>{Qse();const r=Zse(t.fill),i=t.fill===void 0&&e.length>1,o=document.createElement("button");o.type="button",o.classList.add(dc),W$(o,r!=null?r:Tm,i);const s=I$({value:r!=null?r:Tm,onChange:a=>{W$(o,a,!1),n.executeBatch(e.map(l=>new Sn(l,{attributes:{fill:a}})))}});return Wi({target:o,content:s,placement:["top","bottom"],offset:12,trigger:"hover",closeOnOutsideClick:!0,open:!1,padding:0})};function Zse(e){if(e)return Er(e)?e:void 0}function W$(e,t,n){e.style.setProperty("--infographic-font-color",t),n?e.setAttribute("data-mixed","true"):e.removeAttribute("data-mixed")}function Qse(){vn(Kse,`
451
+ .${dc} {
462
452
  position: relative;
463
453
  width: 32px;
464
454
  height: 32px;
@@ -468,15 +458,15 @@ ${e.trim()}
468
458
  cursor: pointer;
469
459
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
470
460
  }
471
- .${rc}::after {
461
+ .${dc}::after {
472
462
  content: '';
473
463
  position: absolute;
474
464
  inset: 6px;
475
465
  border-radius: 50%;
476
- background: var(--infographic-font-color, ${_m});
466
+ background: var(--infographic-font-color, ${Tm});
477
467
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
478
468
  }
479
- .${rc}[data-mixed="true"]::after {
469
+ .${dc}[data-mixed="true"]::after {
480
470
  background: repeating-linear-gradient(
481
471
  45deg,
482
472
  #d9d9d9 0,
@@ -485,8 +475,8 @@ ${e.trim()}
485
475
  #f5f5f5 12px
486
476
  );
487
477
  }
488
- `)}const wm="infographic-font-family-list",ic=`${wm}__option`,dse="infographic-font-family-list-style",pse="默认",A$=(e,t,n)=>{mse();const r=zu(),i=T$(t["font-family"]),o=r.map(u=>({label:u.name||u.fontFamily,value:u.fontFamily}));o.some(u=>T$(u.value)===i)||o.unshift({label:pse,value:i});let s=i;const a=gse(o,s,u=>{s!==u&&(s=u,n.executeBatch(e.map(h=>new zn(h,{attributes:{"font-family":pi(u)}}))))}),l=Jr({icon:Jn.fontFamily});return ji({target:l,content:a,placement:["top","bottom"],offset:12,trigger:"hover",closeOnOutsideClick:!0,open:!1,padding:0})};function gse(e,t,n){const r=document.createElement("div");r.classList.add(wm);const i={},o=s=>{Object.entries(i).forEach(([a,l])=>{a===s?l.setAttribute("data-activate","true"):l.removeAttribute("data-activate")})};return e.forEach(({label:s,value:a})=>{const l=document.createElement("button");l.type="button",l.classList.add(ic),l.textContent=s,l.style.fontFamily=a,a===t&&l.setAttribute("data-activate","true"),l.addEventListener("click",()=>{t!==a&&(t=a,o(t),n(a))}),i[a]=l,r.appendChild(l)}),r}function T$(e){return e?Array.isArray(e)?Rr(e.join(", ")):Rr(String(e)):""}function mse(){An(dse,`
489
- .${wm} {
478
+ `)}const Rm="infographic-font-family-list",pc=`${Rm}__option`,Jse="infographic-font-family-list-style",eae="默认",V$=(e,t,n)=>{nae();const r=Ku(),i=G$(t["font-family"]),o=r.map(u=>({label:u.name||u.fontFamily,value:u.fontFamily}));o.some(u=>G$(u.value)===i)||o.unshift({label:eae,value:i});let s=i;const a=tae(o,s,u=>{s!==u&&(s=u,n.executeBatch(e.map(h=>new Sn(h,{attributes:{"font-family":yi(u)}}))))}),l=_r({icon:ar.fontFamily});return Wi({target:l,content:a,placement:["top","bottom"],offset:12,trigger:"hover",closeOnOutsideClick:!0,open:!1,padding:0})};function tae(e,t,n){const r=document.createElement("div");r.classList.add(Rm);const i={},o=s=>{Object.entries(i).forEach(([a,l])=>{a===s?l.setAttribute("data-activate","true"):l.removeAttribute("data-activate")})};return e.forEach(({label:s,value:a})=>{const l=document.createElement("button");l.type="button",l.classList.add(pc),l.textContent=s,l.style.fontFamily=a,a===t&&l.setAttribute("data-activate","true"),l.addEventListener("click",()=>{t!==a&&(t=a,o(t),n(a))}),i[a]=l,r.appendChild(l)}),r}function G$(e){return e?Array.isArray(e)?kr(e.join(", ")):kr(String(e)):""}function nae(){vn(Jse,`
479
+ .${Rm} {
490
480
  display: flex;
491
481
  flex-direction: column;
492
482
  gap: 2px;
@@ -495,7 +485,7 @@ ${e.trim()}
495
485
  max-height: 220px;
496
486
  overflow-y: auto;
497
487
  }
498
- .${ic} {
488
+ .${pc} {
499
489
  width: 100%;
500
490
  text-align: left;
501
491
  padding: 6px 10px;
@@ -507,22 +497,22 @@ ${e.trim()}
507
497
  color: #000000d9;
508
498
  transition: background-color 0.2s ease, color 0.2s ease;
509
499
  }
510
- .${ic}:hover {
500
+ .${pc}:hover {
511
501
  background: #f5f5f5;
512
502
  }
513
- .${ic}[data-activate="true"] {
503
+ .${pc}[data-activate="true"] {
514
504
  background: #e6f4ff;
515
505
  color: #0958d9;
516
506
  }
517
- `)}const R$="infographic-font-size-grid",yse="infographic-font-size-grid-style",vse=[{label:"XS",value:12},{label:"S",value:14},{label:"M",value:16},{label:"L",value:20},{label:"XL",value:24}],bse=`
518
- .${R$} {
507
+ `)}const Y$="infographic-font-size-grid",rae="infographic-font-size-grid-style",iae=[{label:"XS",value:12},{label:"S",value:14},{label:"M",value:16},{label:"L",value:20},{label:"XL",value:24}],oae=`
508
+ .${Y$} {
519
509
  display: grid;
520
510
  grid-template-columns: repeat(5, 32px);
521
511
  grid-auto-rows: 32px;
522
512
  gap: 2px;
523
513
  }
524
- `,k$=(e,t,n)=>{An(yse,bse);const r=Jr({icon:Jn.fontSize}),i=xse(t["font-size"]),o=_se(i,s=>{n.executeBatch(e.map(a=>new zn(a,{attributes:{"font-size":s}})))});return ji({target:r,content:o,placement:"top",offset:12})};function _se(e,t){const n=document.createElement("div");n.classList.add(R$);let r=e;const i={},o=()=>{Object.entries(i).forEach(([s,a])=>{const l=Number(s)===r;a.setActivate(l)})};return vse.forEach(({label:s,value:a})=>{const l=Jr({icon:wse(s),onClick:()=>{r!==a&&(r=a,o(),t(a))},activate:a===r});i[String(a)]=l,n.appendChild(l)}),n}function wse(e){return()=>{const t="1.2em",n=document.createElement("span");return n.textContent=e,n.style.display="inline-flex",n.style.alignItems="center",n.style.justifyContent="center",n.style.width=t,n.style.height=t,n.style.fontSize="12px",n}}function xse(e){if(typeof e=="number")return e;if(typeof e=="string"){const n=parseFloat(e);return Number.isFinite(n)?n:12}return 12}const oc="infographic-icon-color-btn",Cse="infographic-icon-color-style",xm="#1f1f1f",L$=(e,t,n)=>{Ose();const r=Pse(t.fill),i=t.fill===void 0&&e.length>1,o=document.createElement("button");o.type="button",o.classList.add(oc),N$(o,r!=null?r:xm,i);const s=y$({value:r!=null?r:xm,onChange:a=>{N$(o,a,!1),n.executeBatch(e.map(l=>new zn(l,{attributes:{fill:a}})))}});return ji({target:o,content:s,placement:["top","bottom"],offset:12,trigger:"hover",closeOnOutsideClick:!0,open:!1,padding:0})};function Pse(e){if(e)return Sr(e)?e:void 0}function N$(e,t,n){e.style.setProperty("--infographic-icon-color",t),n?e.setAttribute("data-mixed","true"):e.removeAttribute("data-mixed")}function Ose(){An(Cse,`
525
- .${oc} {
514
+ `,X$=(e,t,n)=>{vn(rae,oae);const r=_r({icon:ar.fontSize}),i=lae(t["font-size"]),o=sae(i,s=>{n.executeBatch(e.map(a=>new Sn(a,{attributes:{"font-size":s}})))});return Wi({target:r,content:o,placement:"top",offset:12})};function sae(e,t){const n=document.createElement("div");n.classList.add(Y$);let r=e;const i={},o=()=>{Object.entries(i).forEach(([s,a])=>{const l=Number(s)===r;a.setActivate(l)})};return iae.forEach(({label:s,value:a})=>{const l=_r({icon:aae(s),onClick:()=>{r!==a&&(r=a,o(),t(a))},activate:a===r});i[String(a)]=l,n.appendChild(l)}),n}function aae(e){return()=>{const t="1.2em",n=document.createElement("span");return n.textContent=e,n.style.display="inline-flex",n.style.alignItems="center",n.style.justifyContent="center",n.style.width=t,n.style.height=t,n.style.fontSize="12px",n}}function lae(e){if(typeof e=="number")return e;if(typeof e=="string"){const n=parseFloat(e);return Number.isFinite(n)?n:12}return 12}const gc="infographic-icon-color-btn",cae="infographic-icon-color-style",km="#1f1f1f",U$=(e,t,n)=>{hae();const r=uae(t.fill),i=t.fill===void 0&&e.length>1,o=document.createElement("button");o.type="button",o.classList.add(gc),K$(o,r!=null?r:km,i);const s=I$({value:r!=null?r:km,onChange:a=>{K$(o,a,!1),n.executeBatch(e.map(l=>new Sn(l,{attributes:{fill:a}})))}});return Wi({target:o,content:s,placement:["top","bottom"],offset:12,trigger:"hover",closeOnOutsideClick:!0,open:!1,padding:0})};function uae(e){if(e)return Er(e)?e:void 0}function K$(e,t,n){e.style.setProperty("--infographic-icon-color",t),n?e.setAttribute("data-mixed","true"):e.removeAttribute("data-mixed")}function hae(){vn(cae,`
515
+ .${gc} {
526
516
  position: relative;
527
517
  width: 32px;
528
518
  height: 32px;
@@ -532,15 +522,15 @@ ${e.trim()}
532
522
  cursor: pointer;
533
523
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
534
524
  }
535
- .${oc}::after {
525
+ .${gc}::after {
536
526
  content: '';
537
527
  position: absolute;
538
528
  inset: 6px;
539
529
  border-radius: 50%;
540
- background: var(--infographic-icon-color, ${xm});
530
+ background: var(--infographic-icon-color, ${km});
541
531
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
542
532
  }
543
- .${oc}[data-mixed="true"]::after {
533
+ .${gc}[data-mixed="true"]::after {
544
534
  background: repeating-linear-gradient(
545
535
  45deg,
546
536
  #d9d9d9 0,
@@ -549,13 +539,30 @@ ${e.trim()}
549
539
  #f5f5f5 12px
550
540
  );
551
541
  }
552
- `)}var Sse=Object.defineProperty,z$=Object.getOwnPropertySymbols,$se=Object.prototype.hasOwnProperty,Ese=Object.prototype.propertyIsEnumerable,D$=(e,t,n)=>t in e?Sse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mse=(e,t)=>{for(var n in t||(t={}))$se.call(t,n)&&D$(e,n,t[n]);if(z$)for(var n of z$(t))Ese.call(t,n)&&D$(e,n,t[n]);return e};class q$ extends mm{constructor(t){super(),this.options=t,this.name="edit-bar",this.selection=[],this.handleSelectionChanged=({next:n})=>{if(this.selection=n,n.length===0){this.container&&H$(this.container);return}const r=this.getOrCreateEditBar(),i=this.getEditItems(n);if(i.length===0){H$(r);return}Ise(r,i),this.placeEditBar(r,n),Cm(r)},this.handleGeometryChanged=({target:n})=>{!this.selection.includes(n)||!this.container||(this.placeEditBar(this.container,this.selection),Cm(this.container))},this.handleHistoryChanged=()=>{!this.container||this.selection.length===0||(this.placeEditBar(this.container,this.selection),Cm(this.container))}}init(t){super.init(t);const{emitter:n}=t;n.on("selection:change",this.handleSelectionChanged),n.on("selection:geometrychange",this.handleGeometryChanged),n.on("history:change",this.handleHistoryChanged)}destroy(){var t;const{emitter:n}=this;n.off("selection:change",this.handleSelectionChanged),n.off("selection:geometrychange",this.handleGeometryChanged),n.off("history:change",this.handleHistoryChanged),(t=this.container)==null||t.remove()}getEditItems(t){let n=!1,r=!1,i=!1;for(const o of t)if(Yn(o)?n=!0:fr(o)?r=!0:OH(o)&&(i=!0),n&&r&&i)break;return n&&!r&&!i?t.length===1?this.getTextEditItems(t[0]):this.getTextCollectionEditItems(t):!n&&r&&!i?t.length===1?this.getIconEditItems(t):this.getIconCollectionEditItems(t):!n&&!r&&i?t.length===1?this.getGeometryEditItems(t):this.getGeometryCollectionEditItems(t):this.getElementCollectionEditItems(t)}getOrCreateEditBar(){if(this.container)return this.container;const{style:t,className:n}=this.options||{},r=document.createElement("div");Object.assign(r.style,Mse({visibility:"hidden",position:"absolute",left:"0",top:"0",display:"flex",flexFlow:"row",justifyContent:"center",alignItems:"center",height:"40px",minWidth:"40px",minHeight:"40px",borderRadius:"8px",padding:"0 4px",backgroundColor:"#fff",border:"1px solid rgba(239, 240, 240, 0.9)",zIndex:"9999",boxShadow:"rgba(0, 0, 0, 0.08) 0px 1px 2px -2px, rgba(0, 0, 0, 0.04) 0px 2px 6px, rgba(0, 0, 0, 0.02) 0px 4px 8px 1px"},t)),n&&r.classList.add(n),xo(r,$c),this.container=r;const{getContainer:i}=this.options||{},o=typeof i=="function"?i():i,s=o!=null?o:document.body;return s==null||s.appendChild(r),r}getTextEditItems(t){const{attributes:n={}}=oh(t);return[M$,k$,E$,A$].map(r=>r([t],n,this.commander))}getTextCollectionEditItems(t){const n=Dy(t.map(o=>oh(o).attributes||{})),r=[M$,k$,E$,A$].map(o=>o(t,n,this.commander)),i=this.getElementCollectionEditItems(t);return[...r,...i]}getIconEditItems(t){const n=uh(t[0]);return[L$].map(r=>r(t,n,this.commander))}getIconCollectionEditItems(t){const n=Dy(t.map(r=>uh(r)));return[L$].map(r=>r(t,n,this.commander))}getGeometryEditItems(t){return[]}getGeometryCollectionEditItems(t){return[...this.getElementCollectionEditItems(t)]}getElementCollectionEditItems(t){return t.length<=1?[]:[Voe(t,{},this.commander,{enableDistribution:t.length>2})]}placeEditBar(t,n){var r;if(n.length===0)return;const i=Ci(n.map(_=>_.getBoundingClientRect())),o=(r=t.offsetParent)!=null?r:document.documentElement,s=document.documentElement.clientHeight,a=document.documentElement.clientWidth,l=t.getBoundingClientRect(),c=8,u={x:i.x+i.width/2,y:i.y},h={y:i.y+i.height},f=(_,x,w)=>Math.min(Math.max(_,x),w),d=u.y-c,p=s-h.y-c,g=d>=l.height||d>=p;if(o===document.body||o===document.documentElement){const _=window.scrollX||document.documentElement.scrollLeft,x=window.scrollY||document.documentElement.scrollTop;let w=_+u.x-l.width/2;w=f(w,_,_+Math.max(a-l.width,0));let C=g?x+u.y-l.height-c:x+h.y+c;C=f(C,x,x+Math.max(s-l.height,0)),t.style.left=`${w}px`,t.style.top=`${C}px`;return}const m=o.getBoundingClientRect();let v=u.x-m.left-l.width/2;v=f(v,0,Math.max(m.width-l.width,0));let b=g?u.y-m.top-l.height-c:h.y-m.top+c;b=f(b,0,Math.max(m.height-l.height,0)),t.style.left=`${v}px`,t.style.top=`${b}px`}}function Cm(e){e.style.visibility="visible"}function H$(e){e.style.visibility="hidden"}function Ise(e,t){e.innerHTML="",t.forEach(n=>{e.appendChild(n)})}var Ase=Object.defineProperty,j$=Object.getOwnPropertySymbols,Tse=Object.prototype.hasOwnProperty,Rse=Object.prototype.propertyIsEnumerable,F$=(e,t,n)=>t in e?Ase(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kse=(e,t)=>{for(var n in t||(t={}))Tse.call(t,n)&&F$(e,n,t[n]);if(j$)for(var n of j$(t))Rse.call(t,n)&&F$(e,n,t[n]);return e};const as=class Pn extends mm{constructor(){super(...arguments),this.name="resize-element",this.target=null,this.handles=[],this.activeHandle=null,this.activePointerId=null,this.handleSelectionChange=({next:t})=>{const n=t.length===1?t[0]:null;n&&Yn(n)?(this.target=n,this.updateHandles()):(this.target=null,this.hideHandles(),this.cancelDrag())},this.handleDeactivate=()=>{this.target=null,this.hideHandles(),this.cancelDrag()},this.handleGeometryChange=({target:t})=>{if(!this.target||t!==this.target)return;const n=this.getViewportRect(this.target);this.lastViewportRect=n,this.updateHandles(n)},this.handleHistoryChange=()=>{if(!this.target)return;const t=this.getViewportRect(this.target);this.lastViewportRect=t,this.updateHandles(t)},this.handlePointerMove=t=>{if(!this.target||!this.startPointer||!this.startRect||!this.activeHandle||this.activePointerId!==null&&t.pointerId!==this.activePointerId)return;const n=this.clientToElement(this.target,t.clientX,t.clientY),r=n.x-this.startPointer.x,i=n.y-this.startPointer.y,o=this.clampRect(this.applyDelta(this.startRect,r,i,this.activeHandle),this.activeHandle);this.lastRect=o,this.applyRect(this.target,o),this.lastViewportRect=this.getViewportRect(this.target),this.updateHandles(this.lastViewportRect),this.emitSelectionGeometryChange()},this.handlePointerUp=t=>{if(this.activePointerId!==null&&t.pointerId!==this.activePointerId)return;const n=this.lastRect,r=this.startAttrs,i=n&&this.startRect&&this.hasRectChanged(this.startRect,n);if(this.cancelDrag(),i&&this.target&&n&&r)this.commander.execute(new zn(this.target,{attributes:n},{attributes:r})),this.lastViewportRect=this.getViewportRect(this.target),this.updateHandles(this.lastViewportRect),this.emitSelectionGeometryChange();else if(this.target){const o=this.lastViewportRect||this.getViewportRect(this.target);this.updateHandles(o)}}}init(t){super.init(t);const{emitter:n}=t;n.on("selection:change",this.handleSelectionChange),n.on("selection:geometrychange",this.handleGeometryChange),n.on("history:change",this.handleHistoryChange),n.on("deactivated",this.handleDeactivate)}destroy(){this.cancelDrag(),this.removeContainer();const{emitter:t}=this;t.off("selection:change",this.handleSelectionChange),t.off("selection:geometrychange",this.handleGeometryChange),t.off("history:change",this.handleHistoryChange),t.off("deactivated",this.handleDeactivate)}ensureContainer(){if(this.container)return this.container;const t=Ae("g",{"pointer-events":"none"});this.overlay=Ae("rect",{fill:"rgba(51, 132, 245, 0.06)",stroke:"none","pointer-events":"none"});const n=Ae("rect",{fill:"none",stroke:"#3384F5","stroke-width":1,"stroke-dasharray":"4 2","pointer-events":"none"});t.appendChild(this.overlay),t.appendChild(n),this.outline=n;const r=Pn.HANDLE_POSITIONS,i={"top-left":"nwse-resize",top:"ns-resize","top-right":"nesw-resize",right:"ew-resize","bottom-right":"nwse-resize",bottom:"ns-resize","bottom-left":"nesw-resize",left:"ew-resize"};return r.forEach((o,s)=>{const l=o==="top"||o==="right"||o==="bottom"||o==="left"?Ae("line",{stroke:"transparent","stroke-width":Pn.LINE_STROKE_WIDTH}):Ae("circle",{r:Pn.HANDLE_SIZE/2,fill:"#3384F5",stroke:"#fff","stroke-width":1.5});l.style.cursor=i[o],l.style.pointerEvents="all",l.addEventListener("pointerdown",c=>this.handlePointerDown(c,o)),l.addEventListener("click",c=>{c.stopPropagation(),c.preventDefault()}),t.appendChild(l),this.handles[s]=l}),this.editor.getDocument().appendChild(t),this.container=t,t}updateHandles(t){if(!this.target){this.hideHandles();return}const n=t||this.getViewportRect(this.target)||this.lastViewportRect||null;if(!n){this.hideHandles();return}this.lastViewportRect=n;const r=this.ensureContainer();r.style.display="block",this.outline.style.display="block",ut(this.outline,n),this.overlay&&(this.overlay.style.display="block",ut(this.overlay,n));const i=this.getHandlePoints(n);this.handles.forEach((o,s)=>{const[a,l]=i[s];if(o.tagName==="circle")ut(o,{cx:a,cy:l});else{const c=Pn.HANDLE_POSITIONS[s],u=this.getHandleLine(n,c);ut(o,u)}o.style.display="block"})}hideHandles(){this.container&&(this.container.style.display="none"),this.outline&&(this.outline.style.display="none"),this.overlay&&(this.overlay.style.display="none"),this.handles.forEach(t=>t.style.display="none")}removeContainer(){var t;(t=this.container)==null||t.remove(),this.container=void 0,this.outline=void 0,this.overlay=void 0,this.handles=[]}handlePointerDown(t,n){if(!this.target||t.button!==0&&t.pointerType==="mouse")return;t.stopPropagation(),t.preventDefault();const r=this.clientToElement(this.target,t.clientX,t.clientY);this.activeHandle=n,this.activePointerId=t.pointerId,this.startPointer=r;const i=this.getCurrentAttributes(this.target);this.startRect=i,this.startAttrs=kse({},i),this.lastRect=i,this.lastViewportRect=this.getViewportRect(this.target),window.addEventListener("pointermove",this.handlePointerMove),window.addEventListener("pointerup",this.handlePointerUp),window.addEventListener("pointercancel",this.handlePointerUp)}cancelDrag(){this.activeHandle=null,this.activePointerId=null,this.startPointer=void 0,this.startRect=void 0,this.startAttrs=void 0,this.lastRect=void 0,this.lastViewportRect=void 0,window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)}applyRect(t,n){ut(t,{x:n.x,y:n.y,width:n.width,height:n.height})}getViewportRect(t){const{x:n,y:r,width:i,height:o}=Qn(this.editor.getDocument(),t);return{x:n,y:r,width:i,height:o}}clientToElement(t,n,r){var i,o;const s=((i=t.getScreenCTM())==null?void 0:i.inverse())||((o=this.editor.getDocument().getScreenCTM())==null?void 0:o.inverse())||new DOMMatrix;return new DOMPoint(n,r).matrixTransform(s)}getCurrentAttributes(t){const n=cn(t,["x","y","width","height"],!1),r=this.getViewportRect(t),i=(o,s)=>{const a=o!==null?Number(o):NaN;return Number.isFinite(a)?a:s};return{x:i(n.x,r.x),y:i(n.y,r.y),width:i(n.width,r.width),height:i(n.height,r.height)}}getHandlePoints(t){const{x:n,y:r,width:i,height:o}=t,s=n+i/2,a=r+o/2;return[[n,r],[s,r],[n+i,r],[n+i,a],[n+i,r+o],[s,r+o],[n,r+o],[n,a]]}applyDelta(t,n,r,i){let{x:o,y:s,width:a,height:l}=t;switch(i){case"top-left":o+=n,s+=r,a-=n,l-=r;break;case"top":s+=r,l-=r;break;case"top-right":s+=r,a+=n,l-=r;break;case"right":a+=n;break;case"bottom-right":a+=n,l+=r;break;case"bottom":l+=r;break;case"bottom-left":o+=n,a-=n,l+=r;break;case"left":o+=n,a-=n;break}return{x:o,y:s,width:a,height:l}}clampRect(t,n){let{x:r,y:i,width:o,height:s}=t;if(o<Pn.MIN_SIZE){const a=Pn.MIN_SIZE-o;(n==="top-left"||n==="bottom-left"||n==="left")&&(r-=a),o=Pn.MIN_SIZE}if(s<Pn.MIN_SIZE){const a=Pn.MIN_SIZE-s;(n==="top-left"||n==="top-right"||n==="top")&&(i-=a),s=Pn.MIN_SIZE}return{x:r,y:i,width:o,height:s}}hasRectChanged(t,n){return Math.abs(t.x-n.x)>.5||Math.abs(t.y-n.y)>.5||Math.abs(t.width-n.width)>.5||Math.abs(t.height-n.height)>.5}emitSelectionGeometryChange(){this.target&&this.lastViewportRect&&this.emitter.emit("selection:geometrychange",{type:"selection:geometrychange",target:this.target,rect:this.lastViewportRect})}getHandleLine(t,n){const{x:r,y:i,width:o,height:s}=t;switch(n){case"top":return{x1:r,y1:i,x2:r+o,y2:i};case"right":return{x1:r+o,y1:i,x2:r+o,y2:i+s};case"bottom":return{x1:r,y1:i+s,x2:r+o,y2:i+s};default:return{x1:r,y1:i,x2:r,y2:i+s}}}};as.HANDLE_SIZE=10,as.LINE_STROKE_WIDTH=8,as.MIN_SIZE=1,as.HANDLE_POSITIONS=["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"];let B$=as;function W$(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lse(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch(o){}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var sc={exports:{}},V$;function Nse(){if(V$)return sc.exports;V$=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return sc.exports=t(),sc.exports.createColors=t,sc.exports}const Cn=Lse(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Pm,G$;function Om(){if(G$)return Pm;G$=1;let e=Nse(),t=Cn;class n extends Error{constructor(i,o,s,a,l,c){super(i),this.name="CssSyntaxError",this.reason=i,l&&(this.file=l),a&&(this.source=a),c&&(this.plugin=c),typeof o!="undefined"&&typeof s!="undefined"&&(typeof o=="number"?(this.line=o,this.column=s):(this.line=o.line,this.column=o.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(i){if(!this.source)return"";let o=this.source;i==null&&(i=e.isColorSupported);let s=d=>d,a=d=>d,l=d=>d;if(i){let{bold:d,gray:p,red:g}=e.createColors(!0);a=m=>d(g(m)),s=m=>p(m),t&&(l=m=>t(m))}let c=o.split(/\r?\n/),u=Math.max(this.line-3,0),h=Math.min(this.line+2,c.length),f=String(h).length;return c.slice(u,h).map((d,p)=>{let g=u+1+p,m=" "+(" "+g).slice(-f)+" | ";if(g===this.line){if(d.length>160){let b=20,_=Math.max(0,this.column-b),x=Math.max(this.column+b,this.endColumn+b),w=d.slice(_,x),C=s(m.replace(/\d/g," "))+d.slice(0,Math.min(this.column-1,b-1)).replace(/[^\t]/g," ");return a(">")+s(m)+l(w)+`
542
+ `)}var fae=Object.defineProperty,Z$=Object.getOwnPropertySymbols,dae=Object.prototype.hasOwnProperty,pae=Object.prototype.propertyIsEnumerable,Q$=(e,t,n)=>t in e?fae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gae=(e,t)=>{for(var n in t||(t={}))dae.call(t,n)&&Q$(e,n,t[n]);if(Z$)for(var n of Z$(t))pae.call(t,n)&&Q$(e,n,t[n]);return e};class J$ extends cs{constructor(t){super(),this.options=t,this.name="edit-bar",this.selection=[],this.handleSelectionChanged=({next:n})=>{if(this.selection=n,n.length===0){this.container&&eE(this.container);return}const r=this.getOrCreateEditBar(),i=this.getEditItems(n);if(i.length===0){eE(r);return}mae(r,i),this.placeEditBar(r,n),Lm(r)},this.handleGeometryChanged=({target:n})=>{!this.selection.includes(n)||!this.container||(this.placeEditBar(this.container,this.selection),Lm(this.container))},this.handleHistoryChanged=()=>{!this.container||this.selection.length===0||(this.placeEditBar(this.container,this.selection),Lm(this.container))}}init(t){super.init(t);const{emitter:n}=t;n.on("selection:change",this.handleSelectionChanged),n.on("selection:geometrychange",this.handleGeometryChanged),n.on("history:change",this.handleHistoryChanged)}destroy(){var t;const{emitter:n}=this;n.off("selection:change",this.handleSelectionChanged),n.off("selection:geometrychange",this.handleGeometryChanged),n.off("history:change",this.handleHistoryChanged),(t=this.container)==null||t.remove()}getEditItems(t){let n=!1,r=!1,i=!1;for(const o of t)if(Jn(o)?n=!0:mr(o)?r=!0:dj(o)&&(i=!0),n&&r&&i)break;return n&&!r&&!i?t.length===1?this.getTextEditItems(t[0]):this.getTextCollectionEditItems(t):!n&&r&&!i?t.length===1?this.getIconEditItems(t):this.getIconCollectionEditItems(t):!n&&!r&&i?t.length===1?this.getGeometryEditItems(t):this.getGeometryCollectionEditItems(t):this.getElementCollectionEditItems(t)}getOrCreateEditBar(){if(this.container)return this.container;const{style:t,className:n}=this.options||{},r=document.createElement("div");Object.assign(r.style,gae({visibility:"hidden",position:"absolute",left:"0",top:"0",display:"flex",flexFlow:"row",justifyContent:"center",alignItems:"center",height:"40px",minWidth:"40px",minHeight:"40px",borderRadius:"8px",padding:"0 4px",backgroundColor:"#fff",border:"1px solid rgba(239, 240, 240, 0.9)",zIndex:"9999",boxShadow:"rgba(0, 0, 0, 0.08) 0px 1px 2px -2px, rgba(0, 0, 0, 0.04) 0px 2px 6px, rgba(0, 0, 0, 0.02) 0px 4px 8px 1px"},t)),n&&r.classList.add(n),Pi(r,Cs),this.container=r;const{getContainer:i}=this.options||{},o=typeof i=="function"?i():i,s=o!=null?o:document.body;return s==null||s.appendChild(r),r}getTextEditItems(t){const{attributes:n={}}=vh(t);return[B$,X$,F$,V$].map(r=>r([t],n,this.commander))}getTextCollectionEditItems(t){const n=Ky(t.map(o=>vh(o).attributes||{})),r=[B$,X$,F$,V$].map(o=>o(t,n,this.commander)),i=this.getElementCollectionEditItems(t);return[...r,...i]}getIconEditItems(t){const n=Ch(t[0]);return[U$].map(r=>r(t,n,this.commander))}getIconCollectionEditItems(t){const n=Ky(t.map(r=>Ch(r)));return[U$].map(r=>r(t,n,this.commander))}getGeometryEditItems(t){return[]}getGeometryCollectionEditItems(t){return[...this.getElementCollectionEditItems(t)]}getElementCollectionEditItems(t){return t.length<=1?[]:[Ise(t,{},this.commander,{enableDistribution:t.length>2})]}placeEditBar(t,n){var r;if(n.length===0)return;const i=Oi(n.map(w=>w.getBoundingClientRect())),o=(r=t.offsetParent)!=null?r:document.documentElement,s=document.documentElement.clientHeight,a=document.documentElement.clientWidth,l=t.getBoundingClientRect(),c=8,u={x:i.x+i.width/2,y:i.y},h={y:i.y+i.height},f=(w,x,_)=>Math.min(Math.max(w,x),_),d=u.y-c,p=s-h.y-c,g=d>=l.height||d>=p;if(o===document.body||o===document.documentElement){const w=window.scrollX||document.documentElement.scrollLeft,x=window.scrollY||document.documentElement.scrollTop;let _=w+u.x-l.width/2;_=f(_,w,w+Math.max(a-l.width,0));let C=g?x+u.y-l.height-c:x+h.y+c;C=f(C,x,x+Math.max(s-l.height,0)),t.style.left=`${_}px`,t.style.top=`${C}px`;return}const m=o.getBoundingClientRect();let v=u.x-m.left-l.width/2;v=f(v,0,Math.max(m.width-l.width,0));let b=g?u.y-m.top-l.height-c:h.y-m.top+c;b=f(b,0,Math.max(m.height-l.height,0)),t.style.left=`${v}px`,t.style.top=`${b}px`}}function Lm(e){e.style.visibility="visible"}function eE(e){e.style.visibility="hidden"}function mae(e,t){e.innerHTML="",t.forEach(n=>{e.appendChild(n)})}const tE=25,nE=25,Vi=40;class rE extends cs{constructor(t){super(),this.options=t,this.name="reset-viewBox",this.viewBoxChanged=!1,this.handleResize=()=>{this.updateOriginViewBox(),this.updatePosition()},this.handleViewBoxChange=n=>{const r=this.editor.getDocument();if(this.viewBoxChanged=n!==this.originViewBox,!this.viewBoxChanged){this.resetButton&&this.hideButton(this.resetButton);return}const i=this.getOrCreateResetButton();this.placeButton(i,r),this.showButton(i)},this.getOrCreateResetButton=()=>{if(this.resetButton)return this.resetButton;const{style:n,className:r}=this.options||{},i=_r({icon:Ose,onClick:this.resetViewBox});i.classList.add(iE),r&&i.classList.add(r),n&&Object.assign(i.style,n),Pi(i,Cs),this.resetButton=i;const{getContainer:o}=this.options||{},s=typeof o=="function"?o():o,a=s!=null?s:document.body;return a==null||a.appendChild(i),i},this.getTransformScale=n=>{const r=n.getBoundingClientRect(),i=n.offsetWidth>0?r.width/n.offsetWidth:1,o=n.offsetHeight>0?r.height/n.offsetHeight:1;return{scaleX:i,scaleY:o}},this.findStableContainer=n=>{let r=n.parentElement;for(;r;){if(r instanceof HTMLElement){const i=window.getComputedStyle(r);if(i.overflow&&i.overflow!=="visible"||i.overflowX&&i.overflowX!=="visible"||i.overflowY&&i.overflowY!=="visible")return r}r=r.parentElement}return null},this.placeButton=(n,r)=>{var i;if(!r.isConnected)return;const o=r.getBoundingClientRect(),s=(i=n.offsetParent)!=null?i:document.documentElement,a=this.findStableContainer(r),l=a==null?void 0:a.getBoundingClientRect(),c=l?{right:Math.min(o.right,l.right),bottom:Math.min(o.bottom,l.bottom)}:o;if(s===document.body||s===document.documentElement){const g=window.scrollX||document.documentElement.scrollLeft,m=window.scrollY||document.documentElement.scrollTop,v=g+c.right-tE-Vi,b=m+c.bottom-nE-Vi;n.style.left=`${v}px`,n.style.top=`${b}px`;return}const u=s.getBoundingClientRect(),{scaleX:h,scaleY:f}=this.getTransformScale(s),d=(c.right-u.left)/h-tE-Vi,p=(c.bottom-u.top)/f-nE-Vi;n.style.left=`${d}px`,n.style.top=`${p}px`},this.updatePosition=()=>{this.resetButton&&this.viewBoxChanged&&this.placeButton(this.resetButton,this.editor.getDocument())},this.resetViewBox=()=>{const n=new ic({viewBox:this.originViewBox});this.commander.execute(n)},this.showButton=n=>{n.style.display="flex",n.style.visibility="visible"},this.hideButton=n=>{n.style.display="none"},this.removeButton=()=>{var n;this.viewBoxChanged=!1,(n=this.resetButton)==null||n.remove(),this.resetButton=void 0}}init(t){super.init(t),this.ensureButtonStyle(),this.updateOriginViewBox(),this.unregisterSync=this.editor.registerSync("viewBox",this.handleViewBoxChange),window.addEventListener("resize",this.handleResize)}destroy(){var t;(t=this.unregisterSync)==null||t.call(this),window.removeEventListener("resize",this.handleResize),this.removeButton()}updateOriginViewBox(){const t=this.editor.getDocument();if(!t.getBBox){this.originViewBox=Dr(er(t));return}const{padding:n}=this.state.getOptions();this.originViewBox=i_(t,qr(n))}ensureButtonStyle(){vn(yae,`
543
+ button.${iE} {
544
+ visibility: hidden;
545
+ position: absolute;
546
+ display: flex;
547
+ justify-content: center;
548
+ align-items: center;
549
+ width: ${Vi}px;
550
+ height: ${Vi}px;
551
+ border-radius: 50%;
552
+ padding: 4px;
553
+ background-color: #fff;
554
+ border: 1px solid #e5e7eb;
555
+ z-index: 1000;
556
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
557
+ cursor: pointer;
558
+ }
559
+ `)}}const iE="infographic-reset-viewbox-btn",yae="infographic-reset-viewbox-btn-style";var vae=Object.defineProperty,oE=Object.getOwnPropertySymbols,bae=Object.prototype.hasOwnProperty,wae=Object.prototype.propertyIsEnumerable,sE=(e,t,n)=>t in e?vae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_ae=(e,t)=>{for(var n in t||(t={}))bae.call(t,n)&&sE(e,n,t[n]);if(oE)for(var n of oE(t))wae.call(t,n)&&sE(e,n,t[n]);return e};const fs=class En extends cs{constructor(){super(...arguments),this.name="resize-element",this.target=null,this.handles=[],this.activeHandle=null,this.activePointerId=null,this.handleSelectionChange=({next:t})=>{const n=t.length===1?t[0]:null;n&&Jn(n)?(this.target=n,this.updateHandles()):(this.target=null,this.hideHandles(),this.cancelDrag())},this.handleDeactivate=()=>{this.target=null,this.hideHandles(),this.cancelDrag()},this.handleGeometryChange=({target:t})=>{if(!this.target||t!==this.target)return;const n=this.getViewportRect(this.target);this.lastViewportRect=n,this.updateHandles(n)},this.handleHistoryChange=()=>{if(!this.target)return;const t=this.getViewportRect(this.target);this.lastViewportRect=t,this.updateHandles(t)},this.handlePointerMove=t=>{if(!this.target||!this.startPointer||!this.startRect||!this.activeHandle||this.activePointerId!==null&&t.pointerId!==this.activePointerId)return;const n=this.clientToElement(this.target,t.clientX,t.clientY),r=n.x-this.startPointer.x,i=n.y-this.startPointer.y,o=this.clampRect(this.applyDelta(this.startRect,r,i,this.activeHandle),this.activeHandle);this.lastRect=o,this.applyRect(this.target,o),this.lastViewportRect=this.getViewportRect(this.target),this.updateHandles(this.lastViewportRect),this.emitSelectionGeometryChange()},this.handlePointerUp=t=>{if(this.activePointerId!==null&&t.pointerId!==this.activePointerId)return;const n=this.lastRect,r=this.startAttrs,i=n&&this.startRect&&this.hasRectChanged(this.startRect,n);if(this.cancelDrag(),i&&this.target&&n&&r)this.commander.execute(new Sn(this.target,{attributes:n},{attributes:r})),this.lastViewportRect=this.getViewportRect(this.target),this.updateHandles(this.lastViewportRect),this.emitSelectionGeometryChange();else if(this.target){const o=this.lastViewportRect||this.getViewportRect(this.target);this.updateHandles(o)}}}init(t){super.init(t);const{emitter:n}=t;n.on("selection:change",this.handleSelectionChange),n.on("selection:geometrychange",this.handleGeometryChange),n.on("history:change",this.handleHistoryChange),n.on("deactivated",this.handleDeactivate)}destroy(){this.cancelDrag(),this.removeContainer();const{emitter:t}=this;t.off("selection:change",this.handleSelectionChange),t.off("selection:geometrychange",this.handleGeometryChange),t.off("history:change",this.handleHistoryChange),t.off("deactivated",this.handleDeactivate)}ensureContainer(){if(this.container)return this.container;const t=Ie("g",{"pointer-events":"none"});this.overlay=Ie("rect",{fill:"rgba(51, 132, 245, 0.06)",stroke:"none","pointer-events":"none"});const n=Ie("rect",{fill:"none",stroke:"#3384F5","stroke-width":1,"stroke-dasharray":"4 2","pointer-events":"none"});t.appendChild(this.overlay),t.appendChild(n),this.outline=n;const r=En.HANDLE_POSITIONS,i={"top-left":"nwse-resize",top:"ns-resize","top-right":"nesw-resize",right:"ew-resize","bottom-right":"nwse-resize",bottom:"ns-resize","bottom-left":"nesw-resize",left:"ew-resize"};return r.forEach((o,s)=>{const l=o==="top"||o==="right"||o==="bottom"||o==="left"?Ie("line",{stroke:"transparent","stroke-width":En.LINE_STROKE_WIDTH}):Ie("circle",{r:En.HANDLE_SIZE/2,fill:"#3384F5",stroke:"#fff","stroke-width":1.5});l.style.cursor=i[o],l.style.pointerEvents="all",l.addEventListener("pointerdown",c=>this.handlePointerDown(c,o)),l.addEventListener("click",c=>{c.stopPropagation(),c.preventDefault()}),t.appendChild(l),this.handles[s]=l}),this.editor.getDocument().appendChild(t),this.container=t,t}updateHandles(t){if(!this.target){this.hideHandles();return}const n=t||this.getViewportRect(this.target)||this.lastViewportRect||null;if(!n){this.hideHandles();return}this.lastViewportRect=n;const r=this.ensureContainer();r.style.display="block",this.outline.style.display="block",ct(this.outline,n),this.overlay&&(this.overlay.style.display="block",ct(this.overlay,n));const i=this.getHandlePoints(n);this.handles.forEach((o,s)=>{const[a,l]=i[s];if(o.tagName==="circle")ct(o,{cx:a,cy:l});else{const c=En.HANDLE_POSITIONS[s],u=this.getHandleLine(n,c);ct(o,u)}o.style.display="block"})}hideHandles(){this.container&&(this.container.style.display="none"),this.outline&&(this.outline.style.display="none"),this.overlay&&(this.overlay.style.display="none"),this.handles.forEach(t=>t.style.display="none")}removeContainer(){var t;(t=this.container)==null||t.remove(),this.container=void 0,this.outline=void 0,this.overlay=void 0,this.handles=[]}handlePointerDown(t,n){if(!this.target||t.button!==0&&t.pointerType==="mouse")return;t.stopPropagation(),t.preventDefault();const r=this.clientToElement(this.target,t.clientX,t.clientY);this.activeHandle=n,this.activePointerId=t.pointerId,this.startPointer=r;const i=this.getCurrentAttributes(this.target);this.startRect=i,this.startAttrs=_ae({},i),this.lastRect=i,this.lastViewportRect=this.getViewportRect(this.target),window.addEventListener("pointermove",this.handlePointerMove),window.addEventListener("pointerup",this.handlePointerUp),window.addEventListener("pointercancel",this.handlePointerUp)}cancelDrag(){this.activeHandle=null,this.activePointerId=null,this.startPointer=void 0,this.startRect=void 0,this.startAttrs=void 0,this.lastRect=void 0,this.lastViewportRect=void 0,window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)}applyRect(t,n){ct(t,{x:n.x,y:n.y,width:n.width,height:n.height})}getViewportRect(t){const{x:n,y:r,width:i,height:o}=or(this.editor.getDocument(),t);return{x:n,y:r,width:i,height:o}}clientToElement(t,n,r){var i,o;const s=((i=t.getScreenCTM())==null?void 0:i.inverse())||((o=this.editor.getDocument().getScreenCTM())==null?void 0:o.inverse())||new DOMMatrix;return new DOMPoint(n,r).matrixTransform(s)}getCurrentAttributes(t){const n=cn(t,["x","y","width","height"],!1),r=this.getViewportRect(t),i=(o,s)=>{const a=o!==null?Number(o):NaN;return Number.isFinite(a)?a:s};return{x:i(n.x,r.x),y:i(n.y,r.y),width:i(n.width,r.width),height:i(n.height,r.height)}}getHandlePoints(t){const{x:n,y:r,width:i,height:o}=t,s=n+i/2,a=r+o/2;return[[n,r],[s,r],[n+i,r],[n+i,a],[n+i,r+o],[s,r+o],[n,r+o],[n,a]]}applyDelta(t,n,r,i){let{x:o,y:s,width:a,height:l}=t;switch(i){case"top-left":o+=n,s+=r,a-=n,l-=r;break;case"top":s+=r,l-=r;break;case"top-right":s+=r,a+=n,l-=r;break;case"right":a+=n;break;case"bottom-right":a+=n,l+=r;break;case"bottom":l+=r;break;case"bottom-left":o+=n,a-=n,l+=r;break;case"left":o+=n,a-=n;break}return{x:o,y:s,width:a,height:l}}clampRect(t,n){let{x:r,y:i,width:o,height:s}=t;if(o<En.MIN_SIZE){const a=En.MIN_SIZE-o;(n==="top-left"||n==="bottom-left"||n==="left")&&(r-=a),o=En.MIN_SIZE}if(s<En.MIN_SIZE){const a=En.MIN_SIZE-s;(n==="top-left"||n==="top-right"||n==="top")&&(i-=a),s=En.MIN_SIZE}return{x:r,y:i,width:o,height:s}}hasRectChanged(t,n){return Math.abs(t.x-n.x)>.5||Math.abs(t.y-n.y)>.5||Math.abs(t.width-n.width)>.5||Math.abs(t.height-n.height)>.5}emitSelectionGeometryChange(){this.target&&this.lastViewportRect&&this.emitter.emit("selection:geometrychange",{type:"selection:geometrychange",target:this.target,rect:this.lastViewportRect})}getHandleLine(t,n){const{x:r,y:i,width:o,height:s}=t;switch(n){case"top":return{x1:r,y1:i,x2:r+o,y2:i};case"right":return{x1:r+o,y1:i,x2:r+o,y2:i+s};case"bottom":return{x1:r,y1:i+s,x2:r+o,y2:i+s};default:return{x1:r,y1:i,x2:r,y2:i+s}}}};fs.HANDLE_SIZE=10,fs.LINE_STROKE_WIDTH=8,fs.MIN_SIZE=1,fs.HANDLE_POSITIONS=["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"];let aE=fs;function lE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xae(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch(o){}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var mc={exports:{}},cE;function Cae(){if(cE)return mc.exports;cE=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return mc.exports=t(),mc.exports.createColors=t,mc.exports}const $n=xae(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Nm,uE;function zm(){if(uE)return Nm;uE=1;let e=Cae(),t=$n;class n extends Error{constructor(i,o,s,a,l,c){super(i),this.name="CssSyntaxError",this.reason=i,l&&(this.file=l),a&&(this.source=a),c&&(this.plugin=c),typeof o!="undefined"&&typeof s!="undefined"&&(typeof o=="number"?(this.line=o,this.column=s):(this.line=o.line,this.column=o.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(i){if(!this.source)return"";let o=this.source;i==null&&(i=e.isColorSupported);let s=d=>d,a=d=>d,l=d=>d;if(i){let{bold:d,gray:p,red:g}=e.createColors(!0);a=m=>d(g(m)),s=m=>p(m),t&&(l=m=>t(m))}let c=o.split(/\r?\n/),u=Math.max(this.line-3,0),h=Math.min(this.line+2,c.length),f=String(h).length;return c.slice(u,h).map((d,p)=>{let g=u+1+p,m=" "+(" "+g).slice(-f)+" | ";if(g===this.line){if(d.length>160){let b=20,w=Math.max(0,this.column-b),x=Math.max(this.column+b,this.endColumn+b),_=d.slice(w,x),C=s(m.replace(/\d/g," "))+d.slice(0,Math.min(this.column-1,b-1)).replace(/[^\t]/g," ");return a(">")+s(m)+l(_)+`
553
560
  `+C+a("^")}let v=s(m.replace(/\d/g," "))+d.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+s(m)+l(d)+`
554
561
  `+v+a("^")}return" "+s(m)+l(d)}).join(`
555
562
  `)}toString(){let i=this.showSourceCode();return i&&(i=`
556
563
 
557
564
  `+i+`
558
- `),this.name+": "+this.message+i}}return Pm=n,n.default=n,Pm}var Sm,Y$;function X$(){if(Y$)return Sm;Y$=1;const e={after:`
565
+ `),this.name+": "+this.message+i}}return Nm=n,n.default=n,Nm}var Dm,hE;function fE(){if(hE)return Dm;hE=1;const e={after:`
559
566
  `,beforeClose:`
560
567
  `,beforeComment:`
561
568
  `,beforeDecl:`
@@ -566,20 +573,20 @@ ${e.trim()}
566
573
  `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(o,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(i,o){let s;return i.walkDecls(a=>{if(typeof a.raws.before!="undefined")return s=a.raws.before,s.includes(`
567
574
  `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(o,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(i){let o;return i.walk(s=>{if(s.type!=="decl"&&(o=s.raws.between,typeof o!="undefined"))return!1}),o}rawBeforeRule(i){let o;return i.walk(s=>{if(s.nodes&&(s.parent!==i||i.first!==s)&&typeof s.raws.before!="undefined")return o=s.raws.before,o.includes(`
568
575
  `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(i){let o;return i.walkDecls(s=>{if(typeof s.raws.between!="undefined")return o=s.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(i){let o;return i.walk(s=>{if(s.nodes&&s.nodes.length===0&&(o=s.raws.after,typeof o!="undefined"))return!1}),o}rawIndent(i){if(i.raws.indent)return i.raws.indent;let o;return i.walk(s=>{let a=s.parent;if(a&&a!==i&&a.parent&&a.parent===i&&typeof s.raws.before!="undefined"){let l=s.raws.before.split(`
569
- `);return o=l[l.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(i){let o;return i.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(o=s.raws.semicolon,typeof o!="undefined"))return!1}),o}rawValue(i,o){let s=i[o],a=i.raws[o];return a&&a.value===s?a.raw:s}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,o){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,o)}}return Sm=n,n.default=n,Sm}var $m,U$;function ac(){if(U$)return $m;U$=1;let e=X$();function t(n,r){new e(r).stringify(n)}return $m=t,t.default=t,$m}var lc={},K$;function Em(){return K$||(K$=1,lc.isClean=Symbol("isClean"),lc.my=Symbol("my")),lc}var Mm,Z$;function cc(){if(Z$)return Mm;Z$=1;let e=Om(),t=X$(),n=ac(),{isClean:r,my:i}=Em();function o(l,c){let u=new l.constructor;for(let h in l){if(!Object.prototype.hasOwnProperty.call(l,h)||h==="proxyCache")continue;let f=l[h],d=typeof f;h==="parent"&&d==="object"?c&&(u[h]=c):h==="source"?u[h]=f:Array.isArray(f)?u[h]=f.map(p=>o(p,u)):(d==="object"&&f!==null&&(f=o(f)),u[h]=f)}return u}function s(l,c){if(c&&typeof c.offset!="undefined")return c.offset;let u=1,h=1,f=0;for(let d=0;d<l.length;d++){if(h===c.line&&u===c.column){f=d;break}l[d]===`
576
+ `);return o=l[l.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(i){let o;return i.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(o=s.raws.semicolon,typeof o!="undefined"))return!1}),o}rawValue(i,o){let s=i[o],a=i.raws[o];return a&&a.value===s?a.raw:s}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,o){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,o)}}return Dm=n,n.default=n,Dm}var qm,dE;function yc(){if(dE)return qm;dE=1;let e=fE();function t(n,r){new e(r).stringify(n)}return qm=t,t.default=t,qm}var vc={},pE;function Hm(){return pE||(pE=1,vc.isClean=Symbol("isClean"),vc.my=Symbol("my")),vc}var jm,gE;function bc(){if(gE)return jm;gE=1;let e=zm(),t=fE(),n=yc(),{isClean:r,my:i}=Hm();function o(l,c){let u=new l.constructor;for(let h in l){if(!Object.prototype.hasOwnProperty.call(l,h)||h==="proxyCache")continue;let f=l[h],d=typeof f;h==="parent"&&d==="object"?c&&(u[h]=c):h==="source"?u[h]=f:Array.isArray(f)?u[h]=f.map(p=>o(p,u)):(d==="object"&&f!==null&&(f=o(f)),u[h]=f)}return u}function s(l,c){if(c&&typeof c.offset!="undefined")return c.offset;let u=1,h=1,f=0;for(let d=0;d<l.length;d++){if(h===c.line&&u===c.column){f=d;break}l[d]===`
570
577
  `?(u=1,h+=1):u+=1}return f}class a{get proxyOf(){return this}constructor(c={}){this.raws={},this[r]=!1,this[i]=!0;for(let u in c)if(u==="nodes"){this.nodes=[];for(let h of c[u])typeof h.clone=="function"?this.append(h.clone()):this.append(h)}else this[u]=c[u]}addToError(c){if(c.postcssNode=this,c.stack&&this.source&&/\n\s{4}at /.test(c.stack)){let u=this.source;c.stack=c.stack.replace(/\n\s{4}at /,`$&${u.input.from}:${u.start.line}:${u.start.column}$&`)}return c}after(c){return this.parent.insertAfter(this,c),this}assign(c={}){for(let u in c)this[u]=c[u];return this}before(c){return this.parent.insertBefore(this,c),this}cleanRaws(c){delete this.raws.before,delete this.raws.after,c||delete this.raws.between}clone(c={}){let u=o(this);for(let h in c)u[h]=c[h];return u}cloneAfter(c={}){let u=this.clone(c);return this.parent.insertAfter(this,u),u}cloneBefore(c={}){let u=this.clone(c);return this.parent.insertBefore(this,u),u}error(c,u={}){if(this.source){let{end:h,start:f}=this.rangeBy(u);return this.source.input.error(c,{column:f.column,line:f.line},{column:h.column,line:h.line},u)}return new e(c)}getProxyProcessor(){return{get(c,u){return u==="proxyOf"?c:u==="root"?()=>c.root().toProxy():c[u]},set(c,u,h){return c[u]===h||(c[u]=h,(u==="prop"||u==="value"||u==="name"||u==="params"||u==="important"||u==="text")&&c.markDirty()),!0}}}markClean(){this[r]=!0}markDirty(){if(this[r]){this[r]=!1;let c=this;for(;c=c.parent;)c[r]=!1}}next(){if(!this.parent)return;let c=this.parent.index(this);return this.parent.nodes[c+1]}positionBy(c={}){let u=this.source.start;if(c.index)u=this.positionInside(c.index);else if(c.word){let h="document"in this.source.input?this.source.input.document:this.source.input.css,d=h.slice(s(h,this.source.start),s(h,this.source.end)).indexOf(c.word);d!==-1&&(u=this.positionInside(d))}return u}positionInside(c){let u=this.source.start.column,h=this.source.start.line,f="document"in this.source.input?this.source.input.document:this.source.input.css,d=s(f,this.source.start),p=d+c;for(let g=d;g<p;g++)f[g]===`
571
- `?(u=1,h+=1):u+=1;return{column:u,line:h,offset:p}}prev(){if(!this.parent)return;let c=this.parent.index(this);return this.parent.nodes[c-1]}rangeBy(c={}){let u="document"in this.source.input?this.source.input.document:this.source.input.css,h={column:this.source.start.column,line:this.source.start.line,offset:s(u,this.source.start)},f=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:s(u,this.source.end)+1}:{column:h.column+1,line:h.line,offset:h.offset+1};if(c.word){let p=u.slice(s(u,this.source.start),s(u,this.source.end)).indexOf(c.word);p!==-1&&(h=this.positionInside(p),f=this.positionInside(p+c.word.length))}else c.start?h={column:c.start.column,line:c.start.line,offset:s(u,c.start)}:c.index&&(h=this.positionInside(c.index)),c.end?f={column:c.end.column,line:c.end.line,offset:s(u,c.end)}:typeof c.endIndex=="number"?f=this.positionInside(c.endIndex):c.index&&(f=this.positionInside(c.index+1));return(f.line<h.line||f.line===h.line&&f.column<=h.column)&&(f={column:h.column+1,line:h.line,offset:h.offset+1}),{end:f,start:h}}raw(c,u){return new t().raw(this,c,u)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...c){if(this.parent){let u=this,h=!1;for(let f of c)f===this?h=!0:h?(this.parent.insertAfter(u,f),u=f):this.parent.insertBefore(u,f);h||this.remove()}return this}root(){let c=this;for(;c.parent&&c.parent.type!=="document";)c=c.parent;return c}toJSON(c,u){let h={},f=u==null;u=u||new Map;let d=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let g=this[p];if(Array.isArray(g))h[p]=g.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,u):m);else if(typeof g=="object"&&g.toJSON)h[p]=g.toJSON(null,u);else if(p==="source"){if(g==null)continue;let m=u.get(g.input);m==null&&(m=d,u.set(g.input,d),d++),h[p]={end:g.end,inputId:m,start:g.start}}else h[p]=g}return f&&(h.inputs=[...u.keys()].map(p=>p.toJSON())),h}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(c=n){c.stringify&&(c=c.stringify);let u="";return c(this,h=>{u+=h}),u}warn(c,u,h={}){let f={node:this};for(let d in h)f[d]=h[d];return c.warn(u,f)}}return Mm=a,a.default=a,Mm}var Im,Q$;function uc(){if(Q$)return Im;Q$=1;let e=cc();class t extends e{constructor(r){super(r),this.type="comment"}}return Im=t,t.default=t,Im}var Am,J$;function hc(){if(J$)return Am;J$=1;let e=cc();class t extends e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(r){r&&typeof r.value!="undefined"&&typeof r.value!="string"&&(r=zt(ht({},r),{value:String(r.value)})),super(r),this.type="decl"}}return Am=t,t.default=t,Am}var Tm,eE;function ti(){if(eE)return Tm;eE=1;let e=uc(),t=hc(),n=cc(),{isClean:r,my:i}=Em(),o,s,a,l;function c(f){return f.map(d=>(d.nodes&&(d.nodes=c(d.nodes)),delete d.source,d))}function u(f){if(f[r]=!1,f.proxyOf.nodes)for(let d of f.proxyOf.nodes)u(d)}class h extends n{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...d){for(let p of d){let g=this.normalize(p,this.last);for(let m of g)this.proxyOf.nodes.push(m)}return this.markDirty(),this}cleanRaws(d){if(super.cleanRaws(d),this.nodes)for(let p of this.nodes)p.cleanRaws(d)}each(d){if(!this.proxyOf.nodes)return;let p=this.getIterator(),g,m;for(;this.indexes[p]<this.proxyOf.nodes.length&&(g=this.indexes[p],m=d(this.proxyOf.nodes[g],g),m!==!1);)this.indexes[p]+=1;return delete this.indexes[p],m}every(d){return this.nodes.every(d)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let d=this.lastEach;return this.indexes[d]=0,d}getProxyProcessor(){return{get(d,p){return p==="proxyOf"?d:d[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...g)=>d[p](...g.map(m=>typeof m=="function"?(v,b)=>m(v.toProxy(),b):m)):p==="every"||p==="some"?g=>d[p]((m,...v)=>g(m.toProxy(),...v)):p==="root"?()=>d.root().toProxy():p==="nodes"?d.nodes.map(g=>g.toProxy()):p==="first"||p==="last"?d[p].toProxy():d[p]:d[p]},set(d,p,g){return d[p]===g||(d[p]=g,(p==="name"||p==="params"||p==="selector")&&d.markDirty()),!0}}}index(d){return typeof d=="number"?d:(d.proxyOf&&(d=d.proxyOf),this.proxyOf.nodes.indexOf(d))}insertAfter(d,p){let g=this.index(d),m=this.normalize(p,this.proxyOf.nodes[g]).reverse();g=this.index(d);for(let b of m)this.proxyOf.nodes.splice(g+1,0,b);let v;for(let b in this.indexes)v=this.indexes[b],g<v&&(this.indexes[b]=v+m.length);return this.markDirty(),this}insertBefore(d,p){let g=this.index(d),m=g===0?"prepend":!1,v=this.normalize(p,this.proxyOf.nodes[g],m).reverse();g=this.index(d);for(let _ of v)this.proxyOf.nodes.splice(g,0,_);let b;for(let _ in this.indexes)b=this.indexes[_],g<=b&&(this.indexes[_]=b+v.length);return this.markDirty(),this}normalize(d,p){if(typeof d=="string")d=c(s(d).nodes);else if(typeof d=="undefined")d=[];else if(Array.isArray(d)){d=d.slice(0);for(let m of d)m.parent&&m.parent.removeChild(m,"ignore")}else if(d.type==="root"&&this.type!=="document"){d=d.nodes.slice(0);for(let m of d)m.parent&&m.parent.removeChild(m,"ignore")}else if(d.type)d=[d];else if(d.prop){if(typeof d.value=="undefined")throw new Error("Value field is missed in node creation");typeof d.value!="string"&&(d.value=String(d.value)),d=[new t(d)]}else if(d.selector||d.selectors)d=[new l(d)];else if(d.name)d=[new o(d)];else if(d.text)d=[new e(d)];else throw new Error("Unknown node type in node creation");return d.map(m=>(m[i]||h.rebuild(m),m=m.proxyOf,m.parent&&m.parent.removeChild(m),m[r]&&u(m),m.raws||(m.raws={}),typeof m.raws.before=="undefined"&&p&&typeof p.raws.before!="undefined"&&(m.raws.before=p.raws.before.replace(/\S/g,"")),m.parent=this.proxyOf,m))}prepend(...d){d=d.reverse();for(let p of d){let g=this.normalize(p,this.first,"prepend").reverse();for(let m of g)this.proxyOf.nodes.unshift(m);for(let m in this.indexes)this.indexes[m]=this.indexes[m]+g.length}return this.markDirty(),this}push(d){return d.parent=this,this.proxyOf.nodes.push(d),this}removeAll(){for(let d of this.proxyOf.nodes)d.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(d){d=this.index(d),this.proxyOf.nodes[d].parent=void 0,this.proxyOf.nodes.splice(d,1);let p;for(let g in this.indexes)p=this.indexes[g],p>=d&&(this.indexes[g]=p-1);return this.markDirty(),this}replaceValues(d,p,g){return g||(g=p,p={}),this.walkDecls(m=>{p.props&&!p.props.includes(m.prop)||p.fast&&!m.value.includes(p.fast)||(m.value=m.value.replace(d,g))}),this.markDirty(),this}some(d){return this.nodes.some(d)}walk(d){return this.each((p,g)=>{let m;try{m=d(p,g)}catch(v){throw p.addToError(v)}return m!==!1&&p.walk&&(m=p.walk(d)),m})}walkAtRules(d,p){return p?d instanceof RegExp?this.walk((g,m)=>{if(g.type==="atrule"&&d.test(g.name))return p(g,m)}):this.walk((g,m)=>{if(g.type==="atrule"&&g.name===d)return p(g,m)}):(p=d,this.walk((g,m)=>{if(g.type==="atrule")return p(g,m)}))}walkComments(d){return this.walk((p,g)=>{if(p.type==="comment")return d(p,g)})}walkDecls(d,p){return p?d instanceof RegExp?this.walk((g,m)=>{if(g.type==="decl"&&d.test(g.prop))return p(g,m)}):this.walk((g,m)=>{if(g.type==="decl"&&g.prop===d)return p(g,m)}):(p=d,this.walk((g,m)=>{if(g.type==="decl")return p(g,m)}))}walkRules(d,p){return p?d instanceof RegExp?this.walk((g,m)=>{if(g.type==="rule"&&d.test(g.selector))return p(g,m)}):this.walk((g,m)=>{if(g.type==="rule"&&g.selector===d)return p(g,m)}):(p=d,this.walk((g,m)=>{if(g.type==="rule")return p(g,m)}))}}return h.registerParse=f=>{s=f},h.registerRule=f=>{l=f},h.registerAtRule=f=>{o=f},h.registerRoot=f=>{a=f},Tm=h,h.default=h,h.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,o.prototype):f.type==="rule"?Object.setPrototypeOf(f,l.prototype):f.type==="decl"?Object.setPrototypeOf(f,t.prototype):f.type==="comment"?Object.setPrototypeOf(f,e.prototype):f.type==="root"&&Object.setPrototypeOf(f,a.prototype),f[i]=!0,f.nodes&&f.nodes.forEach(d=>{h.rebuild(d)})},Tm}var Rm,tE;function km(){if(tE)return Rm;tE=1;let e=ti();class t extends e{constructor(r){super(r),this.type="atrule"}append(...r){return this.proxyOf.nodes||(this.nodes=[]),super.append(...r)}prepend(...r){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...r)}}return Rm=t,t.default=t,e.registerAtRule(t),Rm}var Lm,nE;function Nm(){if(nE)return Lm;nE=1;let e=ti(),t,n;class r extends e{constructor(o){super(ht({type:"document"},o)),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new n,this,o).stringify()}}return r.registerLazyResult=i=>{t=i},r.registerProcessor=i=>{n=i},Lm=r,r.default=r,Lm}var zm,rE;function zse(){if(rE)return zm;rE=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return zm={nanoid:(r=21)=>{let i="",o=r|0;for(;o--;)i+=e[Math.random()*64|0];return i},customAlphabet:(r,i=21)=>(o=i)=>{let s="",a=o|0;for(;a--;)s+=r[Math.random()*r.length|0];return s}},zm}var Dm,iE;function oE(){if(iE)return Dm;iE=1;let{existsSync:e,readFileSync:t}=Cn,{dirname:n,join:r}=Cn,{SourceMapConsumer:i,SourceMapGenerator:o}=Cn;function s(l){return Buffer?Buffer.from(l,"base64").toString():window.atob(l)}class a{constructor(c,u){if(u.map===!1)return;this.loadAnnotation(c),this.inline=this.startWith(this.annotation,"data:");let h=u.map?u.map.prev:void 0,f=this.loadMap(u.from,h);!this.mapFile&&u.from&&(this.mapFile=u.from),this.mapFile&&(this.root=n(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(c){let u=/^data:application\/json;charset=utf-?8;base64,/,h=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,d=/^data:application\/json,/,p=c.match(f)||c.match(d);if(p)return decodeURIComponent(c.substr(p[0].length));let g=c.match(u)||c.match(h);if(g)return s(c.substr(g[0].length));let m=c.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(c){return c.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(c){return typeof c!="object"?!1:typeof c.mappings=="string"||typeof c._mappings=="string"||Array.isArray(c.sections)}loadAnnotation(c){let u=c.match(/\/\*\s*# sourceMappingURL=/g);if(!u)return;let h=c.lastIndexOf(u.pop()),f=c.indexOf("*/",h);h>-1&&f>-1&&(this.annotation=this.getAnnotationURL(c.substring(h,f)))}loadFile(c){if(this.root=n(c),e(c))return this.mapFile=c,t(c,"utf-8").toString().trim()}loadMap(c,u){if(u===!1)return!1;if(u){if(typeof u=="string")return u;if(typeof u=="function"){let h=u(c);if(h){let f=this.loadFile(h);if(!f)throw new Error("Unable to load previous source map: "+h.toString());return f}}else{if(u instanceof i)return o.fromSourceMap(u).toString();if(u instanceof o)return u.toString();if(this.isMap(u))return JSON.stringify(u);throw new Error("Unsupported previous source map format: "+u.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let h=this.annotation;return c&&(h=r(n(c),h)),this.loadFile(h)}}}startWith(c,u){return c?c.substr(0,u.length)===u:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Dm=a,a.default=a,Dm}var qm,sE;function fc(){if(sE)return qm;sE=1;let{nanoid:e}=zse(),{isAbsolute:t,resolve:n}=Cn,{SourceMapConsumer:r,SourceMapGenerator:i}=Cn,{fileURLToPath:o,pathToFileURL:s}=Cn,a=Om(),l=oE(),c=Cn,u=Symbol("lineToIndexCache"),h=!!(r&&i),f=!!(n&&t);function d(g){if(g[u])return g[u];let m=g.css.split(`
572
- `),v=new Array(m.length),b=0;for(let _=0,x=m.length;_<x;_++)v[_]=b,b+=m[_].length+1;return g[u]=v,v}class p{get from(){return this.file||this.id}constructor(m,v={}){if(m===null||typeof m=="undefined"||typeof m=="object"&&!m.toString)throw new Error(`PostCSS received ${m} instead of CSS string`);if(this.css=m.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,v.document&&(this.document=v.document.toString()),v.from&&(!f||/^\w+:\/\//.test(v.from)||t(v.from)?this.file=v.from:this.file=n(v.from)),f&&h){let b=new l(this.css,v);if(b.text){this.map=b;let _=b.consumer().file;!this.file&&_&&(this.file=this.mapResolve(_))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(m,v,b,_={}){let x,w,C,P,O;if(v&&typeof v=="object"){let S=v,M=b;if(typeof S.offset=="number"){P=S.offset;let I=this.fromOffset(P);v=I.line,b=I.col}else v=S.line,b=S.column,P=this.fromLineAndColumn(v,b);if(typeof M.offset=="number"){C=M.offset;let I=this.fromOffset(C);w=I.line,x=I.col}else w=M.line,x=M.column,C=this.fromLineAndColumn(M.line,M.column)}else if(b)P=this.fromLineAndColumn(v,b);else{P=v;let S=this.fromOffset(P);v=S.line,b=S.col}let $=this.origin(v,b,w,x);return $?O=new a(m,$.endLine===void 0?$.line:{column:$.column,line:$.line},$.endLine===void 0?$.column:{column:$.endColumn,line:$.endLine},$.source,$.file,_.plugin):O=new a(m,w===void 0?v:{column:b,line:v},w===void 0?b:{column:x,line:w},this.css,this.file,_.plugin),O.input={column:b,endColumn:x,endLine:w,endOffset:C,line:v,offset:P,source:this.css},this.file&&(s&&(O.input.url=s(this.file).toString()),O.input.file=this.file),O}fromLineAndColumn(m,v){return d(this)[m-1]+v-1}fromOffset(m){let v=d(this),b=v[v.length-1],_=0;if(m>=b)_=v.length-1;else{let x=v.length-2,w;for(;_<x;)if(w=_+(x-_>>1),m<v[w])x=w-1;else if(m>=v[w+1])_=w+1;else{_=w;break}}return{col:m-v[_]+1,line:_+1}}mapResolve(m){return/^\w+:\/\//.test(m)?m:n(this.map.consumer().sourceRoot||this.map.root||".",m)}origin(m,v,b,_){if(!this.map)return!1;let x=this.map.consumer(),w=x.originalPositionFor({column:v,line:m});if(!w.source)return!1;let C;typeof b=="number"&&(C=x.originalPositionFor({column:_,line:b}));let P;t(w.source)?P=s(w.source):P=new URL(w.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let O={column:w.column,endColumn:C&&C.column,endLine:C&&C.line,line:w.line,url:P.toString()};if(P.protocol==="file:")if(o)O.file=o(P);else throw new Error("file: protocol is not available in this PostCSS build");let $=x.sourceContentFor(w.source);return $&&(O.source=$),O}toJSON(){let m={};for(let v of["hasBOM","css","file","id"])this[v]!=null&&(m[v]=this[v]);return this.map&&(m.map=ht({},this.map),m.map.consumerCache&&(m.map.consumerCache=void 0)),m}}return qm=p,p.default=p,c&&c.registerInput&&c.registerInput(p),qm}var Hm,aE;function ls(){if(aE)return Hm;aE=1;let e=ti(),t,n;class r extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,s,a){let l=super.normalize(o);if(s){if(a==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let c of l)c.raws.before=s.raws.before}return l}removeChild(o,s){let a=this.index(o);return!s&&a===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[a].raws.before),super.removeChild(o)}toResult(o={}){return new t(new n,this,o).stringify()}}return r.registerLazyResult=i=>{t=i},r.registerProcessor=i=>{n=i},Hm=r,r.default=r,e.registerRoot(r),Hm}var jm,lE;function cE(){if(lE)return jm;lE=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let n=[" ",`
573
- `," "];return e.split(t,n)},split(t,n,r){let i=[],o="",s=!1,a=0,l=!1,c="",u=!1;for(let h of t)u?u=!1:h==="\\"?u=!0:l?h===c&&(l=!1):h==='"'||h==="'"?(l=!0,c=h):h==="("?a+=1:h===")"?a>0&&(a-=1):a===0&&n.includes(h)&&(s=!0),s?(o!==""&&i.push(o.trim()),o="",s=!1):o+=h;return(r||o!=="")&&i.push(o.trim()),i}};return jm=e,e.default=e,jm}var Fm,uE;function Bm(){if(uE)return Fm;uE=1;let e=ti(),t=cE();class n extends e{get selectors(){return t.comma(this.selector)}set selectors(i){let o=this.selector?this.selector.match(/,\s*/):null,s=o?o[0]:","+this.raw("between","beforeOpen");this.selector=i.join(s)}constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}}return Fm=n,n.default=n,e.registerRule(n),Fm}var Wm,hE;function Dse(){if(hE)return Wm;hE=1;let e=km(),t=uc(),n=hc(),r=fc(),i=oE(),o=ls(),s=Bm();function a(l,c){if(Array.isArray(l))return l.map(p=>a(p));let f=l,{inputs:u}=f,h=py(f,["inputs"]);if(u){c=[];for(let p of u){let g=zt(ht({},p),{__proto__:r.prototype});g.map&&(g.map=zt(ht({},g.map),{__proto__:i.prototype})),c.push(g)}}if(h.nodes&&(h.nodes=l.nodes.map(p=>a(p,c))),h.source){let d=h.source,{inputId:p}=d,g=py(d,["inputId"]);h.source=g,p!=null&&(h.source.input=c[p])}if(h.type==="root")return new o(h);if(h.type==="decl")return new n(h);if(h.type==="rule")return new s(h);if(h.type==="comment")return new t(h);if(h.type==="atrule")return new e(h);throw new Error("Unknown node type: "+l.type)}return Wm=a,a.default=a,Wm}var Vm,fE;function dE(){if(fE)return Vm;fE=1;let{dirname:e,relative:t,resolve:n,sep:r}=Cn,{SourceMapConsumer:i,SourceMapGenerator:o}=Cn,{pathToFileURL:s}=Cn,a=fc(),l=!!(i&&o),c=!!(e&&n&&t&&r);class u{constructor(f,d,p,g){this.stringify=f,this.mapOpts=p.map||{},this.root=d,this.opts=p,this.css=g,this.originalCSS=g,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let f;this.isInline()?f="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?f=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?f=this.mapOpts.annotation(this.opts.to,this.root):f=this.outputFile()+".map";let d=`
578
+ `?(u=1,h+=1):u+=1;return{column:u,line:h,offset:p}}prev(){if(!this.parent)return;let c=this.parent.index(this);return this.parent.nodes[c-1]}rangeBy(c={}){let u="document"in this.source.input?this.source.input.document:this.source.input.css,h={column:this.source.start.column,line:this.source.start.line,offset:s(u,this.source.start)},f=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:s(u,this.source.end)+1}:{column:h.column+1,line:h.line,offset:h.offset+1};if(c.word){let p=u.slice(s(u,this.source.start),s(u,this.source.end)).indexOf(c.word);p!==-1&&(h=this.positionInside(p),f=this.positionInside(p+c.word.length))}else c.start?h={column:c.start.column,line:c.start.line,offset:s(u,c.start)}:c.index&&(h=this.positionInside(c.index)),c.end?f={column:c.end.column,line:c.end.line,offset:s(u,c.end)}:typeof c.endIndex=="number"?f=this.positionInside(c.endIndex):c.index&&(f=this.positionInside(c.index+1));return(f.line<h.line||f.line===h.line&&f.column<=h.column)&&(f={column:h.column+1,line:h.line,offset:h.offset+1}),{end:f,start:h}}raw(c,u){return new t().raw(this,c,u)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...c){if(this.parent){let u=this,h=!1;for(let f of c)f===this?h=!0:h?(this.parent.insertAfter(u,f),u=f):this.parent.insertBefore(u,f);h||this.remove()}return this}root(){let c=this;for(;c.parent&&c.parent.type!=="document";)c=c.parent;return c}toJSON(c,u){let h={},f=u==null;u=u||new Map;let d=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let g=this[p];if(Array.isArray(g))h[p]=g.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,u):m);else if(typeof g=="object"&&g.toJSON)h[p]=g.toJSON(null,u);else if(p==="source"){if(g==null)continue;let m=u.get(g.input);m==null&&(m=d,u.set(g.input,d),d++),h[p]={end:g.end,inputId:m,start:g.start}}else h[p]=g}return f&&(h.inputs=[...u.keys()].map(p=>p.toJSON())),h}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(c=n){c.stringify&&(c=c.stringify);let u="";return c(this,h=>{u+=h}),u}warn(c,u,h={}){let f={node:this};for(let d in h)f[d]=h[d];return c.warn(u,f)}}return jm=a,a.default=a,jm}var Fm,mE;function wc(){if(mE)return Fm;mE=1;let e=bc();class t extends e{constructor(r){super(r),this.type="comment"}}return Fm=t,t.default=t,Fm}var Bm,yE;function _c(){if(yE)return Bm;yE=1;let e=bc();class t extends e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(r){r&&typeof r.value!="undefined"&&typeof r.value!="string"&&(r=Dt(ut({},r),{value:String(r.value)})),super(r),this.type="decl"}}return Bm=t,t.default=t,Bm}var Wm,vE;function ri(){if(vE)return Wm;vE=1;let e=wc(),t=_c(),n=bc(),{isClean:r,my:i}=Hm(),o,s,a,l;function c(f){return f.map(d=>(d.nodes&&(d.nodes=c(d.nodes)),delete d.source,d))}function u(f){if(f[r]=!1,f.proxyOf.nodes)for(let d of f.proxyOf.nodes)u(d)}class h extends n{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...d){for(let p of d){let g=this.normalize(p,this.last);for(let m of g)this.proxyOf.nodes.push(m)}return this.markDirty(),this}cleanRaws(d){if(super.cleanRaws(d),this.nodes)for(let p of this.nodes)p.cleanRaws(d)}each(d){if(!this.proxyOf.nodes)return;let p=this.getIterator(),g,m;for(;this.indexes[p]<this.proxyOf.nodes.length&&(g=this.indexes[p],m=d(this.proxyOf.nodes[g],g),m!==!1);)this.indexes[p]+=1;return delete this.indexes[p],m}every(d){return this.nodes.every(d)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let d=this.lastEach;return this.indexes[d]=0,d}getProxyProcessor(){return{get(d,p){return p==="proxyOf"?d:d[p]?p==="each"||typeof p=="string"&&p.startsWith("walk")?(...g)=>d[p](...g.map(m=>typeof m=="function"?(v,b)=>m(v.toProxy(),b):m)):p==="every"||p==="some"?g=>d[p]((m,...v)=>g(m.toProxy(),...v)):p==="root"?()=>d.root().toProxy():p==="nodes"?d.nodes.map(g=>g.toProxy()):p==="first"||p==="last"?d[p].toProxy():d[p]:d[p]},set(d,p,g){return d[p]===g||(d[p]=g,(p==="name"||p==="params"||p==="selector")&&d.markDirty()),!0}}}index(d){return typeof d=="number"?d:(d.proxyOf&&(d=d.proxyOf),this.proxyOf.nodes.indexOf(d))}insertAfter(d,p){let g=this.index(d),m=this.normalize(p,this.proxyOf.nodes[g]).reverse();g=this.index(d);for(let b of m)this.proxyOf.nodes.splice(g+1,0,b);let v;for(let b in this.indexes)v=this.indexes[b],g<v&&(this.indexes[b]=v+m.length);return this.markDirty(),this}insertBefore(d,p){let g=this.index(d),m=g===0?"prepend":!1,v=this.normalize(p,this.proxyOf.nodes[g],m).reverse();g=this.index(d);for(let w of v)this.proxyOf.nodes.splice(g,0,w);let b;for(let w in this.indexes)b=this.indexes[w],g<=b&&(this.indexes[w]=b+v.length);return this.markDirty(),this}normalize(d,p){if(typeof d=="string")d=c(s(d).nodes);else if(typeof d=="undefined")d=[];else if(Array.isArray(d)){d=d.slice(0);for(let m of d)m.parent&&m.parent.removeChild(m,"ignore")}else if(d.type==="root"&&this.type!=="document"){d=d.nodes.slice(0);for(let m of d)m.parent&&m.parent.removeChild(m,"ignore")}else if(d.type)d=[d];else if(d.prop){if(typeof d.value=="undefined")throw new Error("Value field is missed in node creation");typeof d.value!="string"&&(d.value=String(d.value)),d=[new t(d)]}else if(d.selector||d.selectors)d=[new l(d)];else if(d.name)d=[new o(d)];else if(d.text)d=[new e(d)];else throw new Error("Unknown node type in node creation");return d.map(m=>(m[i]||h.rebuild(m),m=m.proxyOf,m.parent&&m.parent.removeChild(m),m[r]&&u(m),m.raws||(m.raws={}),typeof m.raws.before=="undefined"&&p&&typeof p.raws.before!="undefined"&&(m.raws.before=p.raws.before.replace(/\S/g,"")),m.parent=this.proxyOf,m))}prepend(...d){d=d.reverse();for(let p of d){let g=this.normalize(p,this.first,"prepend").reverse();for(let m of g)this.proxyOf.nodes.unshift(m);for(let m in this.indexes)this.indexes[m]=this.indexes[m]+g.length}return this.markDirty(),this}push(d){return d.parent=this,this.proxyOf.nodes.push(d),this}removeAll(){for(let d of this.proxyOf.nodes)d.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(d){d=this.index(d),this.proxyOf.nodes[d].parent=void 0,this.proxyOf.nodes.splice(d,1);let p;for(let g in this.indexes)p=this.indexes[g],p>=d&&(this.indexes[g]=p-1);return this.markDirty(),this}replaceValues(d,p,g){return g||(g=p,p={}),this.walkDecls(m=>{p.props&&!p.props.includes(m.prop)||p.fast&&!m.value.includes(p.fast)||(m.value=m.value.replace(d,g))}),this.markDirty(),this}some(d){return this.nodes.some(d)}walk(d){return this.each((p,g)=>{let m;try{m=d(p,g)}catch(v){throw p.addToError(v)}return m!==!1&&p.walk&&(m=p.walk(d)),m})}walkAtRules(d,p){return p?d instanceof RegExp?this.walk((g,m)=>{if(g.type==="atrule"&&d.test(g.name))return p(g,m)}):this.walk((g,m)=>{if(g.type==="atrule"&&g.name===d)return p(g,m)}):(p=d,this.walk((g,m)=>{if(g.type==="atrule")return p(g,m)}))}walkComments(d){return this.walk((p,g)=>{if(p.type==="comment")return d(p,g)})}walkDecls(d,p){return p?d instanceof RegExp?this.walk((g,m)=>{if(g.type==="decl"&&d.test(g.prop))return p(g,m)}):this.walk((g,m)=>{if(g.type==="decl"&&g.prop===d)return p(g,m)}):(p=d,this.walk((g,m)=>{if(g.type==="decl")return p(g,m)}))}walkRules(d,p){return p?d instanceof RegExp?this.walk((g,m)=>{if(g.type==="rule"&&d.test(g.selector))return p(g,m)}):this.walk((g,m)=>{if(g.type==="rule"&&g.selector===d)return p(g,m)}):(p=d,this.walk((g,m)=>{if(g.type==="rule")return p(g,m)}))}}return h.registerParse=f=>{s=f},h.registerRule=f=>{l=f},h.registerAtRule=f=>{o=f},h.registerRoot=f=>{a=f},Wm=h,h.default=h,h.rebuild=f=>{f.type==="atrule"?Object.setPrototypeOf(f,o.prototype):f.type==="rule"?Object.setPrototypeOf(f,l.prototype):f.type==="decl"?Object.setPrototypeOf(f,t.prototype):f.type==="comment"?Object.setPrototypeOf(f,e.prototype):f.type==="root"&&Object.setPrototypeOf(f,a.prototype),f[i]=!0,f.nodes&&f.nodes.forEach(d=>{h.rebuild(d)})},Wm}var Vm,bE;function Gm(){if(bE)return Vm;bE=1;let e=ri();class t extends e{constructor(r){super(r),this.type="atrule"}append(...r){return this.proxyOf.nodes||(this.nodes=[]),super.append(...r)}prepend(...r){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...r)}}return Vm=t,t.default=t,e.registerAtRule(t),Vm}var Ym,wE;function Xm(){if(wE)return Ym;wE=1;let e=ri(),t,n;class r extends e{constructor(o){super(ut({type:"document"},o)),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new n,this,o).stringify()}}return r.registerLazyResult=i=>{t=i},r.registerProcessor=i=>{n=i},Ym=r,r.default=r,Ym}var Um,_E;function Pae(){if(_E)return Um;_E=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Um={nanoid:(r=21)=>{let i="",o=r|0;for(;o--;)i+=e[Math.random()*64|0];return i},customAlphabet:(r,i=21)=>(o=i)=>{let s="",a=o|0;for(;a--;)s+=r[Math.random()*r.length|0];return s}},Um}var Km,xE;function CE(){if(xE)return Km;xE=1;let{existsSync:e,readFileSync:t}=$n,{dirname:n,join:r}=$n,{SourceMapConsumer:i,SourceMapGenerator:o}=$n;function s(l){return Buffer?Buffer.from(l,"base64").toString():window.atob(l)}class a{constructor(c,u){if(u.map===!1)return;this.loadAnnotation(c),this.inline=this.startWith(this.annotation,"data:");let h=u.map?u.map.prev:void 0,f=this.loadMap(u.from,h);!this.mapFile&&u.from&&(this.mapFile=u.from),this.mapFile&&(this.root=n(this.mapFile)),f&&(this.text=f)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}decodeInline(c){let u=/^data:application\/json;charset=utf-?8;base64,/,h=/^data:application\/json;base64,/,f=/^data:application\/json;charset=utf-?8,/,d=/^data:application\/json,/,p=c.match(f)||c.match(d);if(p)return decodeURIComponent(c.substr(p[0].length));let g=c.match(u)||c.match(h);if(g)return s(c.substr(g[0].length));let m=c.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(c){return c.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(c){return typeof c!="object"?!1:typeof c.mappings=="string"||typeof c._mappings=="string"||Array.isArray(c.sections)}loadAnnotation(c){let u=c.match(/\/\*\s*# sourceMappingURL=/g);if(!u)return;let h=c.lastIndexOf(u.pop()),f=c.indexOf("*/",h);h>-1&&f>-1&&(this.annotation=this.getAnnotationURL(c.substring(h,f)))}loadFile(c){if(this.root=n(c),e(c))return this.mapFile=c,t(c,"utf-8").toString().trim()}loadMap(c,u){if(u===!1)return!1;if(u){if(typeof u=="string")return u;if(typeof u=="function"){let h=u(c);if(h){let f=this.loadFile(h);if(!f)throw new Error("Unable to load previous source map: "+h.toString());return f}}else{if(u instanceof i)return o.fromSourceMap(u).toString();if(u instanceof o)return u.toString();if(this.isMap(u))return JSON.stringify(u);throw new Error("Unsupported previous source map format: "+u.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let h=this.annotation;return c&&(h=r(n(c),h)),this.loadFile(h)}}}startWith(c,u){return c?c.substr(0,u.length)===u:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Km=a,a.default=a,Km}var Zm,PE;function xc(){if(PE)return Zm;PE=1;let{nanoid:e}=Pae(),{isAbsolute:t,resolve:n}=$n,{SourceMapConsumer:r,SourceMapGenerator:i}=$n,{fileURLToPath:o,pathToFileURL:s}=$n,a=zm(),l=CE(),c=$n,u=Symbol("lineToIndexCache"),h=!!(r&&i),f=!!(n&&t);function d(g){if(g[u])return g[u];let m=g.css.split(`
579
+ `),v=new Array(m.length),b=0;for(let w=0,x=m.length;w<x;w++)v[w]=b,b+=m[w].length+1;return g[u]=v,v}class p{get from(){return this.file||this.id}constructor(m,v={}){if(m===null||typeof m=="undefined"||typeof m=="object"&&!m.toString)throw new Error(`PostCSS received ${m} instead of CSS string`);if(this.css=m.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,v.document&&(this.document=v.document.toString()),v.from&&(!f||/^\w+:\/\//.test(v.from)||t(v.from)?this.file=v.from:this.file=n(v.from)),f&&h){let b=new l(this.css,v);if(b.text){this.map=b;let w=b.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+e(6)+">"),this.map&&(this.map.file=this.from)}error(m,v,b,w={}){let x,_,C,P,S;if(v&&typeof v=="object"){let O=v,M=b;if(typeof O.offset=="number"){P=O.offset;let A=this.fromOffset(P);v=A.line,b=A.col}else v=O.line,b=O.column,P=this.fromLineAndColumn(v,b);if(typeof M.offset=="number"){C=M.offset;let A=this.fromOffset(C);_=A.line,x=A.col}else _=M.line,x=M.column,C=this.fromLineAndColumn(M.line,M.column)}else if(b)P=this.fromLineAndColumn(v,b);else{P=v;let O=this.fromOffset(P);v=O.line,b=O.col}let $=this.origin(v,b,_,x);return $?S=new a(m,$.endLine===void 0?$.line:{column:$.column,line:$.line},$.endLine===void 0?$.column:{column:$.endColumn,line:$.endLine},$.source,$.file,w.plugin):S=new a(m,_===void 0?v:{column:b,line:v},_===void 0?b:{column:x,line:_},this.css,this.file,w.plugin),S.input={column:b,endColumn:x,endLine:_,endOffset:C,line:v,offset:P,source:this.css},this.file&&(s&&(S.input.url=s(this.file).toString()),S.input.file=this.file),S}fromLineAndColumn(m,v){return d(this)[m-1]+v-1}fromOffset(m){let v=d(this),b=v[v.length-1],w=0;if(m>=b)w=v.length-1;else{let x=v.length-2,_;for(;w<x;)if(_=w+(x-w>>1),m<v[_])x=_-1;else if(m>=v[_+1])w=_+1;else{w=_;break}}return{col:m-v[w]+1,line:w+1}}mapResolve(m){return/^\w+:\/\//.test(m)?m:n(this.map.consumer().sourceRoot||this.map.root||".",m)}origin(m,v,b,w){if(!this.map)return!1;let x=this.map.consumer(),_=x.originalPositionFor({column:v,line:m});if(!_.source)return!1;let C;typeof b=="number"&&(C=x.originalPositionFor({column:w,line:b}));let P;t(_.source)?P=s(_.source):P=new URL(_.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let S={column:_.column,endColumn:C&&C.column,endLine:C&&C.line,line:_.line,url:P.toString()};if(P.protocol==="file:")if(o)S.file=o(P);else throw new Error("file: protocol is not available in this PostCSS build");let $=x.sourceContentFor(_.source);return $&&(S.source=$),S}toJSON(){let m={};for(let v of["hasBOM","css","file","id"])this[v]!=null&&(m[v]=this[v]);return this.map&&(m.map=ut({},this.map),m.map.consumerCache&&(m.map.consumerCache=void 0)),m}}return Zm=p,p.default=p,c&&c.registerInput&&c.registerInput(p),Zm}var Qm,SE;function ds(){if(SE)return Qm;SE=1;let e=ri(),t,n;class r extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,s,a){let l=super.normalize(o);if(s){if(a==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let c of l)c.raws.before=s.raws.before}return l}removeChild(o,s){let a=this.index(o);return!s&&a===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[a].raws.before),super.removeChild(o)}toResult(o={}){return new t(new n,this,o).stringify()}}return r.registerLazyResult=i=>{t=i},r.registerProcessor=i=>{n=i},Qm=r,r.default=r,e.registerRoot(r),Qm}var Jm,OE;function $E(){if(OE)return Jm;OE=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let n=[" ",`
580
+ `," "];return e.split(t,n)},split(t,n,r){let i=[],o="",s=!1,a=0,l=!1,c="",u=!1;for(let h of t)u?u=!1:h==="\\"?u=!0:l?h===c&&(l=!1):h==='"'||h==="'"?(l=!0,c=h):h==="("?a+=1:h===")"?a>0&&(a-=1):a===0&&n.includes(h)&&(s=!0),s?(o!==""&&i.push(o.trim()),o="",s=!1):o+=h;return(r||o!=="")&&i.push(o.trim()),i}};return Jm=e,e.default=e,Jm}var ey,EE;function ty(){if(EE)return ey;EE=1;let e=ri(),t=$E();class n extends e{get selectors(){return t.comma(this.selector)}set selectors(i){let o=this.selector?this.selector.match(/,\s*/):null,s=o?o[0]:","+this.raw("between","beforeOpen");this.selector=i.join(s)}constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}}return ey=n,n.default=n,e.registerRule(n),ey}var ny,ME;function Sae(){if(ME)return ny;ME=1;let e=Gm(),t=wc(),n=_c(),r=xc(),i=CE(),o=ds(),s=ty();function a(l,c){if(Array.isArray(l))return l.map(p=>a(p));let f=l,{inputs:u}=f,h=Oy(f,["inputs"]);if(u){c=[];for(let p of u){let g=Dt(ut({},p),{__proto__:r.prototype});g.map&&(g.map=Dt(ut({},g.map),{__proto__:i.prototype})),c.push(g)}}if(h.nodes&&(h.nodes=l.nodes.map(p=>a(p,c))),h.source){let d=h.source,{inputId:p}=d,g=Oy(d,["inputId"]);h.source=g,p!=null&&(h.source.input=c[p])}if(h.type==="root")return new o(h);if(h.type==="decl")return new n(h);if(h.type==="rule")return new s(h);if(h.type==="comment")return new t(h);if(h.type==="atrule")return new e(h);throw new Error("Unknown node type: "+l.type)}return ny=a,a.default=a,ny}var ry,AE;function IE(){if(AE)return ry;AE=1;let{dirname:e,relative:t,resolve:n,sep:r}=$n,{SourceMapConsumer:i,SourceMapGenerator:o}=$n,{pathToFileURL:s}=$n,a=xc(),l=!!(i&&o),c=!!(e&&n&&t&&r);class u{constructor(f,d,p,g){this.stringify=f,this.mapOpts=p.map||{},this.root=d,this.opts=p,this.css=g,this.originalCSS=g,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let f;this.isInline()?f="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?f=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?f=this.mapOpts.annotation(this.opts.to,this.root):f=this.outputFile()+".map";let d=`
574
581
  `;this.css.includes(`\r
575
582
  `)&&(d=`\r
576
- `),this.css+=d+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let d=this.toUrl(this.path(f.file)),p=f.root||e(f.file),g;this.mapOpts.sourcesContent===!1?(g=new i(f.text),g.sourcesContent&&(g.sourcesContent=null)):g=f.consumer(),this.map.applySourceMap(g,d,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let d=this.root.nodes.length-1;d>=0;d--)f=this.root.nodes[d],f.type==="comment"&&f.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(d)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),c&&l&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,d=>{f+=d}),[f]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let f=this.previous()[0].consumer();f.file=this.outputFile(),this.map=o.fromSourceMap(f,{ignoreInvalidMapping:!0})}else this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,d=1,p="<no source>",g={generated:{column:0,line:0},original:{column:0,line:0},source:""},m,v;this.stringify(this.root,(b,_,x)=>{if(this.css+=b,_&&x!=="end"&&(g.generated.line=f,g.generated.column=d-1,_.source&&_.source.start?(g.source=this.sourcePath(_),g.original.line=_.source.start.line,g.original.column=_.source.start.column-1,this.map.addMapping(g)):(g.source=p,g.original.line=1,g.original.column=0,this.map.addMapping(g))),v=b.match(/\n/g),v?(f+=v.length,m=b.lastIndexOf(`
577
- `),d=b.length-m):d+=b.length,_&&x!=="start"){let w=_.parent||{raws:{}};(!(_.type==="decl"||_.type==="atrule"&&!_.nodes)||_!==w.last||w.raws.semicolon)&&(_.source&&_.source.end?(g.source=this.sourcePath(_),g.original.line=_.source.end.line,g.original.column=_.source.end.column-1,g.generated.line=f,g.generated.column=d-2,this.map.addMapping(g)):(g.source=p,g.original.line=1,g.original.column=0,g.generated.line=f,g.generated.column=d-1,this.map.addMapping(g)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f!="undefined"&&f!==!0?!1:this.previous().length?this.previous().some(d=>d.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let d=this.memoizedPaths.get(f);if(d)return d;let p=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=e(n(p,this.mapOpts.annotation)));let g=t(p,f);return this.memoizedPaths.set(f,g),g}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let d=f.source.input.map;this.previousMaps.includes(d)||this.previousMaps.push(d)}});else{let f=new a(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(d=>{if(d.source){let p=d.source.input.from;if(p&&!f[p]){f[p]=!0;let g=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(g,d.source.input.css)}}});else if(this.css){let d=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(d,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let d=this.memoizedFileURLs.get(f);if(d)return d;if(s){let p=s(f).toString();return this.memoizedFileURLs.set(f,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let d=this.memoizedURLs.get(f);if(d)return d;r==="\\"&&(f=f.replace(/\\/g,"/"));let p=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,p),p}}return Vm=u,Vm}var Gm,pE;function qse(){if(pE)return Gm;pE=1;const e=39,t=34,n=92,r=47,i=10,o=32,s=12,a=9,l=13,c=91,u=93,h=40,f=41,d=123,p=125,g=59,m=42,v=58,b=64,_=/[\t\n\f\r "#'()/;[\\\]{}]/g,x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,C=/[\da-f]/i;return Gm=function(O,$={}){let S=O.css.valueOf(),M=$.ignoreErrors,I,E,A,T,N,H,D,B,F,X,G=S.length,L=0,R=[],z=[];function q(){return L}function j(J){throw O.error("Unclosed "+J,L)}function V(){return z.length===0&&L>=G}function U(J){if(z.length)return z.pop();if(L>=G)return;let Z=J?J.ignoreUnclosed:!1;switch(I=S.charCodeAt(L),I){case i:case o:case a:case l:case s:{T=L;do T+=1,I=S.charCodeAt(T);while(I===o||I===i||I===a||I===l||I===s);H=["space",S.slice(L,T)],L=T-1;break}case c:case u:case d:case p:case v:case g:case f:{let ie=String.fromCharCode(I);H=[ie,ie,L];break}case h:{if(X=R.length?R.pop()[1]:"",F=S.charCodeAt(L+1),X==="url"&&F!==e&&F!==t&&F!==o&&F!==i&&F!==a&&F!==s&&F!==l){T=L;do{if(D=!1,T=S.indexOf(")",T+1),T===-1)if(M||Z){T=L;break}else j("bracket");for(B=T;S.charCodeAt(B-1)===n;)B-=1,D=!D}while(D);H=["brackets",S.slice(L,T+1),L,T],L=T}else T=S.indexOf(")",L+1),E=S.slice(L,T+1),T===-1||w.test(E)?H=["(","(",L]:(H=["brackets",E,L,T],L=T);break}case e:case t:{N=I===e?"'":'"',T=L;do{if(D=!1,T=S.indexOf(N,T+1),T===-1)if(M||Z){T=L+1;break}else j("string");for(B=T;S.charCodeAt(B-1)===n;)B-=1,D=!D}while(D);H=["string",S.slice(L,T+1),L,T],L=T;break}case b:{_.lastIndex=L+1,_.test(S),_.lastIndex===0?T=S.length-1:T=_.lastIndex-2,H=["at-word",S.slice(L,T+1),L,T],L=T;break}case n:{for(T=L,A=!0;S.charCodeAt(T+1)===n;)T+=1,A=!A;if(I=S.charCodeAt(T+1),A&&I!==r&&I!==o&&I!==i&&I!==a&&I!==l&&I!==s&&(T+=1,C.test(S.charAt(T)))){for(;C.test(S.charAt(T+1));)T+=1;S.charCodeAt(T+1)===o&&(T+=1)}H=["word",S.slice(L,T+1),L,T],L=T;break}default:{I===r&&S.charCodeAt(L+1)===m?(T=S.indexOf("*/",L+2)+1,T===0&&(M||Z?T=S.length:j("comment")),H=["comment",S.slice(L,T+1),L,T],L=T):(x.lastIndex=L+1,x.test(S),x.lastIndex===0?T=S.length-1:T=x.lastIndex-2,H=["word",S.slice(L,T+1),L,T],R.push(H),L=T);break}}return L++,H}function K(J){z.push(J)}return{back:K,endOfFile:V,nextToken:U,position:q}},Gm}var Ym,gE;function Hse(){if(gE)return Ym;gE=1;let e=km(),t=uc(),n=hc(),r=ls(),i=Bm(),o=qse();const s={empty:!0,space:!0};function a(c){for(let u=c.length-1;u>=0;u--){let h=c[u],f=h[3]||h[2];if(f)return f}}class l{constructor(u){this.input=u,this.root=new r,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:u,start:{column:1,line:1,offset:0}}}atrule(u){let h=new e;h.name=u[1].slice(1),h.name===""&&this.unnamedAtrule(h,u),this.init(h,u[2]);let f,d,p,g=!1,m=!1,v=[],b=[];for(;!this.tokenizer.endOfFile();){if(u=this.tokenizer.nextToken(),f=u[0],f==="("||f==="["?b.push(f==="("?")":"]"):f==="{"&&b.length>0?b.push("}"):f===b[b.length-1]&&b.pop(),b.length===0)if(f===";"){h.source.end=this.getPosition(u[2]),h.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){m=!0;break}else if(f==="}"){if(v.length>0){for(p=v.length-1,d=v[p];d&&d[0]==="space";)d=v[--p];d&&(h.source.end=this.getPosition(d[3]||d[2]),h.source.end.offset++)}this.end(u);break}else v.push(u);else v.push(u);if(this.tokenizer.endOfFile()){g=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(h.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(h,"params",v),g&&(u=v[v.length-1],h.source.end=this.getPosition(u[3]||u[2]),h.source.end.offset++,this.spaces=h.raws.between,h.raws.between="")):(h.raws.afterName="",h.params=""),m&&(h.nodes=[],this.current=h)}checkMissedSemicolon(u){let h=this.colon(u);if(h===!1)return;let f=0,d;for(let p=h-1;p>=0&&(d=u[p],!(d[0]!=="space"&&(f+=1,f===2)));p--);throw this.input.error("Missed semicolon",d[0]==="word"?d[3]+1:d[2])}colon(u){let h=0,f,d,p;for(let[g,m]of u.entries()){if(d=m,p=d[0],p==="("&&(h+=1),p===")"&&(h-=1),h===0&&p===":")if(!f)this.doubleColon(d);else{if(f[0]==="word"&&f[1]==="progid")continue;return g}f=d}return!1}comment(u){let h=new t;this.init(h,u[2]),h.source.end=this.getPosition(u[3]||u[2]),h.source.end.offset++;let f=u[1].slice(2,-2);if(/^\s*$/.test(f))h.text="",h.raws.left=f,h.raws.right="";else{let d=f.match(/^(\s*)([^]*\S)(\s*)$/);h.text=d[2],h.raws.left=d[1],h.raws.right=d[3]}}createTokenizer(){this.tokenizer=o(this.input)}decl(u,h){let f=new n;this.init(f,u[0][2]);let d=u[u.length-1];for(d[0]===";"&&(this.semicolon=!0,u.pop()),f.source.end=this.getPosition(d[3]||d[2]||a(u)),f.source.end.offset++;u[0][0]!=="word";)u.length===1&&this.unknownWord(u),f.raws.before+=u.shift()[1];for(f.source.start=this.getPosition(u[0][2]),f.prop="";u.length;){let b=u[0][0];if(b===":"||b==="space"||b==="comment")break;f.prop+=u.shift()[1]}f.raws.between="";let p;for(;u.length;)if(p=u.shift(),p[0]===":"){f.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),f.raws.between+=p[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let g=[],m;for(;u.length&&(m=u[0][0],!(m!=="space"&&m!=="comment"));)g.push(u.shift());this.precheckMissedSemicolon(u);for(let b=u.length-1;b>=0;b--){if(p=u[b],p[1].toLowerCase()==="!important"){f.important=!0;let _=this.stringFrom(u,b);_=this.spacesFromEnd(u)+_,_!==" !important"&&(f.raws.important=_);break}else if(p[1].toLowerCase()==="important"){let _=u.slice(0),x="";for(let w=b;w>0;w--){let C=_[w][0];if(x.trim().startsWith("!")&&C!=="space")break;x=_.pop()[1]+x}x.trim().startsWith("!")&&(f.important=!0,f.raws.important=x,u=_)}if(p[0]!=="space"&&p[0]!=="comment")break}u.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(f.raws.between+=g.map(b=>b[1]).join(""),g=[]),this.raw(f,"value",g.concat(u),h),f.value.includes(":")&&!h&&this.checkMissedSemicolon(u)}doubleColon(u){throw this.input.error("Double colon",{offset:u[2]},{offset:u[2]+u[1].length})}emptyRule(u){let h=new i;this.init(h,u[2]),h.selector="",h.raws.between="",this.current=h}end(u){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(u[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(u)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(u){if(this.spaces+=u[1],this.current.nodes){let h=this.current.nodes[this.current.nodes.length-1];h&&h.type==="rule"&&!h.raws.ownSemicolon&&(h.raws.ownSemicolon=this.spaces,this.spaces="",h.source.end=this.getPosition(u[2]),h.source.end.offset+=h.raws.ownSemicolon.length)}}getPosition(u){let h=this.input.fromOffset(u);return{column:h.col,line:h.line,offset:u}}init(u,h){this.current.push(u),u.source={input:this.input,start:this.getPosition(h)},u.raws.before=this.spaces,this.spaces="",u.type!=="comment"&&(this.semicolon=!1)}other(u){let h=!1,f=null,d=!1,p=null,g=[],m=u[1].startsWith("--"),v=[],b=u;for(;b;){if(f=b[0],v.push(b),f==="("||f==="[")p||(p=b),g.push(f==="("?")":"]");else if(m&&d&&f==="{")p||(p=b),g.push("}");else if(g.length===0)if(f===";")if(d){this.decl(v,m);return}else break;else if(f==="{"){this.rule(v);return}else if(f==="}"){this.tokenizer.back(v.pop()),h=!0;break}else f===":"&&(d=!0);else f===g[g.length-1]&&(g.pop(),g.length===0&&(p=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),g.length>0&&this.unclosedBracket(p),h&&d){if(!m)for(;v.length&&(b=v[v.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(v.pop());this.decl(v,m)}else this.unknownWord(v)}parse(){let u;for(;!this.tokenizer.endOfFile();)switch(u=this.tokenizer.nextToken(),u[0]){case"space":this.spaces+=u[1];break;case";":this.freeSemicolon(u);break;case"}":this.end(u);break;case"comment":this.comment(u);break;case"at-word":this.atrule(u);break;case"{":this.emptyRule(u);break;default:this.other(u);break}this.endFile()}precheckMissedSemicolon(){}raw(u,h,f,d){let p,g,m=f.length,v="",b=!0,_,x;for(let w=0;w<m;w+=1)p=f[w],g=p[0],g==="space"&&w===m-1&&!d?b=!1:g==="comment"?(x=f[w-1]?f[w-1][0]:"empty",_=f[w+1]?f[w+1][0]:"empty",!s[x]&&!s[_]?v.slice(-1)===","?b=!1:v+=p[1]:b=!1):v+=p[1];if(!b){let w=f.reduce((C,P)=>C+P[1],"");u.raws[h]={raw:w,value:v}}u[h]=v}rule(u){u.pop();let h=new i;this.init(h,u[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(u),this.raw(h,"selector",u),this.current=h}spacesAndCommentsFromEnd(u){let h,f="";for(;u.length&&(h=u[u.length-1][0],!(h!=="space"&&h!=="comment"));)f=u.pop()[1]+f;return f}spacesAndCommentsFromStart(u){let h,f="";for(;u.length&&(h=u[0][0],!(h!=="space"&&h!=="comment"));)f+=u.shift()[1];return f}spacesFromEnd(u){let h,f="";for(;u.length&&(h=u[u.length-1][0],h==="space");)f=u.pop()[1]+f;return f}stringFrom(u,h){let f="";for(let d=h;d<u.length;d++)f+=u[d][1];return u.splice(h,u.length-h),f}unclosedBlock(){let u=this.current.source.start;throw this.input.error("Unclosed block",u.line,u.column)}unclosedBracket(u){throw this.input.error("Unclosed bracket",{offset:u[2]},{offset:u[2]+1})}unexpectedClose(u){throw this.input.error("Unexpected }",{offset:u[2]},{offset:u[2]+1})}unknownWord(u){throw this.input.error("Unknown word "+u[0][1],{offset:u[0][2]},{offset:u[0][2]+u[0][1].length})}unnamedAtrule(u,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}}return Ym=l,Ym}var Xm,mE;function Um(){if(mE)return Xm;mE=1;let e=ti(),t=fc(),n=Hse();function r(i,o){let s=new t(i,o),a=new n(s);try{a.parse()}catch(l){throw process.env.NODE_ENV!=="production"&&l.name==="CssSyntaxError"&&o&&o.from&&(/\.scss$/i.test(o.from)?l.message+=`
583
+ `),this.css+=d+"/*# sourceMappingURL="+f+" */"}applyPrevMaps(){for(let f of this.previous()){let d=this.toUrl(this.path(f.file)),p=f.root||e(f.file),g;this.mapOpts.sourcesContent===!1?(g=new i(f.text),g.sourcesContent&&(g.sourcesContent=null)):g=f.consumer(),this.map.applySourceMap(g,d,this.toUrl(this.path(p)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let f;for(let d=this.root.nodes.length-1;d>=0;d--)f=this.root.nodes[d],f.type==="comment"&&f.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(d)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),c&&l&&this.isMap())return this.generateMap();{let f="";return this.stringify(this.root,d=>{f+=d}),[f]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let f=this.previous()[0].consumer();f.file=this.outputFile(),this.map=o.fromSourceMap(f,{ignoreInvalidMapping:!0})}else this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0});let f=1,d=1,p="<no source>",g={generated:{column:0,line:0},original:{column:0,line:0},source:""},m,v;this.stringify(this.root,(b,w,x)=>{if(this.css+=b,w&&x!=="end"&&(g.generated.line=f,g.generated.column=d-1,w.source&&w.source.start?(g.source=this.sourcePath(w),g.original.line=w.source.start.line,g.original.column=w.source.start.column-1,this.map.addMapping(g)):(g.source=p,g.original.line=1,g.original.column=0,this.map.addMapping(g))),v=b.match(/\n/g),v?(f+=v.length,m=b.lastIndexOf(`
584
+ `),d=b.length-m):d+=b.length,w&&x!=="start"){let _=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==_.last||_.raws.semicolon)&&(w.source&&w.source.end?(g.source=this.sourcePath(w),g.original.line=w.source.end.line,g.original.column=w.source.end.column-1,g.generated.line=f,g.generated.column=d-2,this.map.addMapping(g)):(g.source=p,g.original.line=1,g.original.column=0,g.generated.line=f,g.generated.column=d-1,this.map.addMapping(g)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(f=>f.annotation):!0}isInline(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;let f=this.mapOpts.annotation;return typeof f!="undefined"&&f!==!0?!1:this.previous().length?this.previous().some(d=>d.inline):!0}isMap(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(f=>f.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(f){if(this.mapOpts.absolute||f.charCodeAt(0)===60||/^\w+:\/\//.test(f))return f;let d=this.memoizedPaths.get(f);if(d)return d;let p=this.opts.to?e(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(p=e(n(p,this.mapOpts.annotation)));let g=t(p,f);return this.memoizedPaths.set(f,g),g}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(f=>{if(f.source&&f.source.input.map){let d=f.source.input.map;this.previousMaps.includes(d)||this.previousMaps.push(d)}});else{let f=new a(this.originalCSS,this.opts);f.map&&this.previousMaps.push(f.map)}return this.previousMaps}setSourcesContent(){let f={};if(this.root)this.root.walk(d=>{if(d.source){let p=d.source.input.from;if(p&&!f[p]){f[p]=!0;let g=this.usesFileUrls?this.toFileUrl(p):this.toUrl(this.path(p));this.map.setSourceContent(g,d.source.input.css)}}});else if(this.css){let d=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(d,this.css)}}sourcePath(f){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(f.source.input.from):this.toUrl(this.path(f.source.input.from))}toBase64(f){return Buffer?Buffer.from(f).toString("base64"):window.btoa(unescape(encodeURIComponent(f)))}toFileUrl(f){let d=this.memoizedFileURLs.get(f);if(d)return d;if(s){let p=s(f).toString();return this.memoizedFileURLs.set(f,p),p}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(f){let d=this.memoizedURLs.get(f);if(d)return d;r==="\\"&&(f=f.replace(/\\/g,"/"));let p=encodeURI(f).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(f,p),p}}return ry=u,ry}var iy,TE;function Oae(){if(TE)return iy;TE=1;const e=39,t=34,n=92,r=47,i=10,o=32,s=12,a=9,l=13,c=91,u=93,h=40,f=41,d=123,p=125,g=59,m=42,v=58,b=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,_=/.[\r\n"'(/\\]/,C=/[\da-f]/i;return iy=function(S,$={}){let O=S.css.valueOf(),M=$.ignoreErrors,A,E,I,T,N,H,D,W,F,X,G=O.length,L=0,R=[],z=[];function q(){return L}function j(J){throw S.error("Unclosed "+J,L)}function V(){return z.length===0&&L>=G}function U(J){if(z.length)return z.pop();if(L>=G)return;let Z=J?J.ignoreUnclosed:!1;switch(A=O.charCodeAt(L),A){case i:case o:case a:case l:case s:{T=L;do T+=1,A=O.charCodeAt(T);while(A===o||A===i||A===a||A===l||A===s);H=["space",O.slice(L,T)],L=T-1;break}case c:case u:case d:case p:case v:case g:case f:{let ie=String.fromCharCode(A);H=[ie,ie,L];break}case h:{if(X=R.length?R.pop()[1]:"",F=O.charCodeAt(L+1),X==="url"&&F!==e&&F!==t&&F!==o&&F!==i&&F!==a&&F!==s&&F!==l){T=L;do{if(D=!1,T=O.indexOf(")",T+1),T===-1)if(M||Z){T=L;break}else j("bracket");for(W=T;O.charCodeAt(W-1)===n;)W-=1,D=!D}while(D);H=["brackets",O.slice(L,T+1),L,T],L=T}else T=O.indexOf(")",L+1),E=O.slice(L,T+1),T===-1||_.test(E)?H=["(","(",L]:(H=["brackets",E,L,T],L=T);break}case e:case t:{N=A===e?"'":'"',T=L;do{if(D=!1,T=O.indexOf(N,T+1),T===-1)if(M||Z){T=L+1;break}else j("string");for(W=T;O.charCodeAt(W-1)===n;)W-=1,D=!D}while(D);H=["string",O.slice(L,T+1),L,T],L=T;break}case b:{w.lastIndex=L+1,w.test(O),w.lastIndex===0?T=O.length-1:T=w.lastIndex-2,H=["at-word",O.slice(L,T+1),L,T],L=T;break}case n:{for(T=L,I=!0;O.charCodeAt(T+1)===n;)T+=1,I=!I;if(A=O.charCodeAt(T+1),I&&A!==r&&A!==o&&A!==i&&A!==a&&A!==l&&A!==s&&(T+=1,C.test(O.charAt(T)))){for(;C.test(O.charAt(T+1));)T+=1;O.charCodeAt(T+1)===o&&(T+=1)}H=["word",O.slice(L,T+1),L,T],L=T;break}default:{A===r&&O.charCodeAt(L+1)===m?(T=O.indexOf("*/",L+2)+1,T===0&&(M||Z?T=O.length:j("comment")),H=["comment",O.slice(L,T+1),L,T],L=T):(x.lastIndex=L+1,x.test(O),x.lastIndex===0?T=O.length-1:T=x.lastIndex-2,H=["word",O.slice(L,T+1),L,T],R.push(H),L=T);break}}return L++,H}function K(J){z.push(J)}return{back:K,endOfFile:V,nextToken:U,position:q}},iy}var oy,RE;function $ae(){if(RE)return oy;RE=1;let e=Gm(),t=wc(),n=_c(),r=ds(),i=ty(),o=Oae();const s={empty:!0,space:!0};function a(c){for(let u=c.length-1;u>=0;u--){let h=c[u],f=h[3]||h[2];if(f)return f}}class l{constructor(u){this.input=u,this.root=new r,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:u,start:{column:1,line:1,offset:0}}}atrule(u){let h=new e;h.name=u[1].slice(1),h.name===""&&this.unnamedAtrule(h,u),this.init(h,u[2]);let f,d,p,g=!1,m=!1,v=[],b=[];for(;!this.tokenizer.endOfFile();){if(u=this.tokenizer.nextToken(),f=u[0],f==="("||f==="["?b.push(f==="("?")":"]"):f==="{"&&b.length>0?b.push("}"):f===b[b.length-1]&&b.pop(),b.length===0)if(f===";"){h.source.end=this.getPosition(u[2]),h.source.end.offset++,this.semicolon=!0;break}else if(f==="{"){m=!0;break}else if(f==="}"){if(v.length>0){for(p=v.length-1,d=v[p];d&&d[0]==="space";)d=v[--p];d&&(h.source.end=this.getPosition(d[3]||d[2]),h.source.end.offset++)}this.end(u);break}else v.push(u);else v.push(u);if(this.tokenizer.endOfFile()){g=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(h.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(h,"params",v),g&&(u=v[v.length-1],h.source.end=this.getPosition(u[3]||u[2]),h.source.end.offset++,this.spaces=h.raws.between,h.raws.between="")):(h.raws.afterName="",h.params=""),m&&(h.nodes=[],this.current=h)}checkMissedSemicolon(u){let h=this.colon(u);if(h===!1)return;let f=0,d;for(let p=h-1;p>=0&&(d=u[p],!(d[0]!=="space"&&(f+=1,f===2)));p--);throw this.input.error("Missed semicolon",d[0]==="word"?d[3]+1:d[2])}colon(u){let h=0,f,d,p;for(let[g,m]of u.entries()){if(d=m,p=d[0],p==="("&&(h+=1),p===")"&&(h-=1),h===0&&p===":")if(!f)this.doubleColon(d);else{if(f[0]==="word"&&f[1]==="progid")continue;return g}f=d}return!1}comment(u){let h=new t;this.init(h,u[2]),h.source.end=this.getPosition(u[3]||u[2]),h.source.end.offset++;let f=u[1].slice(2,-2);if(/^\s*$/.test(f))h.text="",h.raws.left=f,h.raws.right="";else{let d=f.match(/^(\s*)([^]*\S)(\s*)$/);h.text=d[2],h.raws.left=d[1],h.raws.right=d[3]}}createTokenizer(){this.tokenizer=o(this.input)}decl(u,h){let f=new n;this.init(f,u[0][2]);let d=u[u.length-1];for(d[0]===";"&&(this.semicolon=!0,u.pop()),f.source.end=this.getPosition(d[3]||d[2]||a(u)),f.source.end.offset++;u[0][0]!=="word";)u.length===1&&this.unknownWord(u),f.raws.before+=u.shift()[1];for(f.source.start=this.getPosition(u[0][2]),f.prop="";u.length;){let b=u[0][0];if(b===":"||b==="space"||b==="comment")break;f.prop+=u.shift()[1]}f.raws.between="";let p;for(;u.length;)if(p=u.shift(),p[0]===":"){f.raws.between+=p[1];break}else p[0]==="word"&&/\w/.test(p[1])&&this.unknownWord([p]),f.raws.between+=p[1];(f.prop[0]==="_"||f.prop[0]==="*")&&(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1));let g=[],m;for(;u.length&&(m=u[0][0],!(m!=="space"&&m!=="comment"));)g.push(u.shift());this.precheckMissedSemicolon(u);for(let b=u.length-1;b>=0;b--){if(p=u[b],p[1].toLowerCase()==="!important"){f.important=!0;let w=this.stringFrom(u,b);w=this.spacesFromEnd(u)+w,w!==" !important"&&(f.raws.important=w);break}else if(p[1].toLowerCase()==="important"){let w=u.slice(0),x="";for(let _=b;_>0;_--){let C=w[_][0];if(x.trim().startsWith("!")&&C!=="space")break;x=w.pop()[1]+x}x.trim().startsWith("!")&&(f.important=!0,f.raws.important=x,u=w)}if(p[0]!=="space"&&p[0]!=="comment")break}u.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(f.raws.between+=g.map(b=>b[1]).join(""),g=[]),this.raw(f,"value",g.concat(u),h),f.value.includes(":")&&!h&&this.checkMissedSemicolon(u)}doubleColon(u){throw this.input.error("Double colon",{offset:u[2]},{offset:u[2]+u[1].length})}emptyRule(u){let h=new i;this.init(h,u[2]),h.selector="",h.raws.between="",this.current=h}end(u){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(u[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(u)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(u){if(this.spaces+=u[1],this.current.nodes){let h=this.current.nodes[this.current.nodes.length-1];h&&h.type==="rule"&&!h.raws.ownSemicolon&&(h.raws.ownSemicolon=this.spaces,this.spaces="",h.source.end=this.getPosition(u[2]),h.source.end.offset+=h.raws.ownSemicolon.length)}}getPosition(u){let h=this.input.fromOffset(u);return{column:h.col,line:h.line,offset:u}}init(u,h){this.current.push(u),u.source={input:this.input,start:this.getPosition(h)},u.raws.before=this.spaces,this.spaces="",u.type!=="comment"&&(this.semicolon=!1)}other(u){let h=!1,f=null,d=!1,p=null,g=[],m=u[1].startsWith("--"),v=[],b=u;for(;b;){if(f=b[0],v.push(b),f==="("||f==="[")p||(p=b),g.push(f==="("?")":"]");else if(m&&d&&f==="{")p||(p=b),g.push("}");else if(g.length===0)if(f===";")if(d){this.decl(v,m);return}else break;else if(f==="{"){this.rule(v);return}else if(f==="}"){this.tokenizer.back(v.pop()),h=!0;break}else f===":"&&(d=!0);else f===g[g.length-1]&&(g.pop(),g.length===0&&(p=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),g.length>0&&this.unclosedBracket(p),h&&d){if(!m)for(;v.length&&(b=v[v.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(v.pop());this.decl(v,m)}else this.unknownWord(v)}parse(){let u;for(;!this.tokenizer.endOfFile();)switch(u=this.tokenizer.nextToken(),u[0]){case"space":this.spaces+=u[1];break;case";":this.freeSemicolon(u);break;case"}":this.end(u);break;case"comment":this.comment(u);break;case"at-word":this.atrule(u);break;case"{":this.emptyRule(u);break;default:this.other(u);break}this.endFile()}precheckMissedSemicolon(){}raw(u,h,f,d){let p,g,m=f.length,v="",b=!0,w,x;for(let _=0;_<m;_+=1)p=f[_],g=p[0],g==="space"&&_===m-1&&!d?b=!1:g==="comment"?(x=f[_-1]?f[_-1][0]:"empty",w=f[_+1]?f[_+1][0]:"empty",!s[x]&&!s[w]?v.slice(-1)===","?b=!1:v+=p[1]:b=!1):v+=p[1];if(!b){let _=f.reduce((C,P)=>C+P[1],"");u.raws[h]={raw:_,value:v}}u[h]=v}rule(u){u.pop();let h=new i;this.init(h,u[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(u),this.raw(h,"selector",u),this.current=h}spacesAndCommentsFromEnd(u){let h,f="";for(;u.length&&(h=u[u.length-1][0],!(h!=="space"&&h!=="comment"));)f=u.pop()[1]+f;return f}spacesAndCommentsFromStart(u){let h,f="";for(;u.length&&(h=u[0][0],!(h!=="space"&&h!=="comment"));)f+=u.shift()[1];return f}spacesFromEnd(u){let h,f="";for(;u.length&&(h=u[u.length-1][0],h==="space");)f=u.pop()[1]+f;return f}stringFrom(u,h){let f="";for(let d=h;d<u.length;d++)f+=u[d][1];return u.splice(h,u.length-h),f}unclosedBlock(){let u=this.current.source.start;throw this.input.error("Unclosed block",u.line,u.column)}unclosedBracket(u){throw this.input.error("Unclosed bracket",{offset:u[2]},{offset:u[2]+1})}unexpectedClose(u){throw this.input.error("Unexpected }",{offset:u[2]},{offset:u[2]+1})}unknownWord(u){throw this.input.error("Unknown word "+u[0][1],{offset:u[0][2]},{offset:u[0][2]+u[0][1].length})}unnamedAtrule(u,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}}return oy=l,oy}var sy,kE;function ay(){if(kE)return sy;kE=1;let e=ri(),t=xc(),n=$ae();function r(i,o){let s=new t(i,o),a=new n(s);try{a.parse()}catch(l){throw process.env.NODE_ENV!=="production"&&l.name==="CssSyntaxError"&&o&&o.from&&(/\.scss$/i.test(o.from)?l.message+=`
578
585
  You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(o.from)?l.message+=`
579
586
  You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(o.from)&&(l.message+=`
580
- You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),l}return a.root}return Xm=r,r.default=r,e.registerParse(r),Xm}var Km,yE;function vE(){if(yE)return Km;yE=1;class e{constructor(n,r={}){if(this.type="warning",this.text=n,r.node&&r.node.source){let i=r.node.rangeBy(r);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in r)this[i]=r[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Km=e,e.default=e,Km}var Zm,bE;function Qm(){if(bE)return Zm;bE=1;let e=vE();class t{get content(){return this.css}constructor(r,i,o){this.processor=r,this.messages=[],this.root=i,this.opts=o,this.css="",this.map=void 0}toString(){return this.css}warn(r,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let o=new e(r,i);return this.messages.push(o),o}warnings(){return this.messages.filter(r=>r.type==="warning")}}return Zm=t,t.default=t,Zm}var Jm,_E;function wE(){if(_E)return Jm;_E=1;let e={};return Jm=function(n){e[n]||(e[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},Jm}var ey,xE;function CE(){if(xE)return ey;xE=1;let e=ti(),t=Nm(),n=dE(),r=Um(),i=Qm(),o=ls(),s=ac(),{isClean:a,my:l}=Em(),c=wE();const u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0},d=0;function p(x){return typeof x=="object"&&typeof x.then=="function"}function g(x){let w=!1,C=u[x.type];return x.type==="decl"?w=x.prop.toLowerCase():x.type==="atrule"&&(w=x.name.toLowerCase()),w&&x.append?[C,C+"-"+w,d,C+"Exit",C+"Exit-"+w]:w?[C,C+"-"+w,C+"Exit",C+"Exit-"+w]:x.append?[C,d,C+"Exit"]:[C,C+"Exit"]}function m(x){let w;return x.type==="document"?w=["Document",d,"DocumentExit"]:x.type==="root"?w=["Root",d,"RootExit"]:w=g(x),{eventIndex:0,events:w,iterator:0,node:x,visitorIndex:0,visitors:[]}}function v(x){return x[a]=!1,x.nodes&&x.nodes.forEach(w=>v(w)),x}let b={};class _{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(w,C,P){this.stringified=!1,this.processed=!1;let O;if(typeof C=="object"&&C!==null&&(C.type==="root"||C.type==="document"))O=v(C);else if(C instanceof _||C instanceof i)O=v(C.root),C.map&&(typeof P.map=="undefined"&&(P.map={}),P.map.inline||(P.map.inline=!1),P.map.prev=C.map);else{let $=r;P.syntax&&($=P.syntax.parse),P.parser&&($=P.parser),$.parse&&($=$.parse);try{O=$(C,P)}catch(S){this.processed=!0,this.error=S}O&&!O[l]&&e.rebuild(O)}this.result=new i(w,O,P),this.helpers=zt(ht({},b),{postcss:b,result:this.result}),this.plugins=this.processor.plugins.map($=>typeof $=="object"&&$.prepare?ht(ht({},$),$.prepare(this.result)):$)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,C){let P=this.result.lastPlugin;try{if(C&&C.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin)w.plugin=P.postcssPlugin,w.setMessage();else if(P.postcssVersion&&process.env.NODE_ENV!=="production"){let O=P.postcssPlugin,$=P.postcssVersion,S=this.result.processor.version,M=$.split("."),I=S.split(".");(M[0]!==I[0]||parseInt(M[1])>parseInt(I[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+S+", but "+O+" uses "+$+". Perhaps this is the source of the error below.")}}catch(O){console&&console.error&&console.error(O)}return w}prepareVisitors(){this.listeners={};let w=(C,P,O)=>{this.listeners[P]||(this.listeners[P]=[]),this.listeners[P].push([C,O])};for(let C of this.plugins)if(typeof C=="object")for(let P in C){if(!h[P]&&/^[A-Z]/.test(P))throw new Error(`Unknown event ${P} in ${C.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[P])if(typeof C[P]=="object")for(let O in C[P])O==="*"?w(C,P,C[P][O]):w(C,P+"-"+O.toLowerCase(),C[P][O]);else typeof C[P]=="function"&&w(C,P,C[P])}this.hasListener=Object.keys(this.listeners).length>0}runAsync(){return yM(this,null,function*(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let C=this.plugins[w],P=this.runOnRoot(C);if(p(P))try{yield P}catch(O){throw this.handleError(O)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[a];){w[a]=!0;let C=[m(w)];for(;C.length>0;){let P=this.visitTick(C);if(p(P))try{yield P}catch(O){let $=C[C.length-1].node;throw this.handleError(O,$)}}}if(this.listeners.OnceExit)for(let[C,P]of this.listeners.OnceExit){this.result.lastPlugin=C;try{if(w.type==="document"){let O=w.nodes.map($=>P($,this.helpers));yield Promise.all(O)}else yield P(w,this.helpers)}catch(O){throw this.handleError(O)}}}return this.processed=!0,this.stringify()})}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let C=this.result.root.nodes.map(P=>w.Once(P,this.helpers));return p(C[0])?Promise.all(C):C}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(C){throw this.handleError(C)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,C=s;w.syntax&&(C=w.syntax.stringify),w.stringifier&&(C=w.stringifier),C.stringify&&(C=C.stringify);let O=new n(C,this.result.root,this.result.opts).generate();return this.result.css=O[0],this.result.map=O[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let C=this.runOnRoot(w);if(p(C))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[a];)w[a]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let C of w.nodes)this.visitSync(this.listeners.OnceExit,C);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,C){return process.env.NODE_ENV!=="production"&&("from"in this.opts||c("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(w,C)}toString(){return this.css}visitSync(w,C){for(let[P,O]of w){this.result.lastPlugin=P;let $;try{$=O(C,this.helpers)}catch(S){throw this.handleError(S,C.proxyOf)}if(C.type!=="root"&&C.type!=="document"&&!C.parent)return!0;if(p($))throw this.getAsyncError()}}visitTick(w){let C=w[w.length-1],{node:P,visitors:O}=C;if(P.type!=="root"&&P.type!=="document"&&!P.parent){w.pop();return}if(O.length>0&&C.visitorIndex<O.length){let[S,M]=O[C.visitorIndex];C.visitorIndex+=1,C.visitorIndex===O.length&&(C.visitors=[],C.visitorIndex=0),this.result.lastPlugin=S;try{return M(P.toProxy(),this.helpers)}catch(I){throw this.handleError(I,P)}}if(C.iterator!==0){let S=C.iterator,M;for(;M=P.nodes[P.indexes[S]];)if(P.indexes[S]+=1,!M[a]){M[a]=!0,w.push(m(M));return}C.iterator=0,delete P.indexes[S]}let $=C.events;for(;C.eventIndex<$.length;){let S=$[C.eventIndex];if(C.eventIndex+=1,S===d){P.nodes&&P.nodes.length&&(P[a]=!0,C.iterator=P.getIterator());return}else if(this.listeners[S]){C.visitors=this.listeners[S];return}}w.pop()}walkSync(w){w[a]=!0;let C=g(w);for(let P of C)if(P===d)w.nodes&&w.each(O=>{O[a]||this.walkSync(O)});else{let O=this.listeners[P];if(O&&this.visitSync(O,w.toProxy()))return}}warnings(){return this.sync().warnings()}}return _.registerPostcss=x=>{b=x},ey=_,_.default=_,o.registerLazyResult(_),t.registerLazyResult(_),ey}var ty,PE;function jse(){if(PE)return ty;PE=1;let e=dE(),t=Um();const n=Qm();let r=ac(),i=wE();class o{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let a,l=t;try{a=l(this._css,this._opts)}catch(c){this.error=c}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(a,l,c){l=l.toString(),this.stringified=!1,this._processor=a,this._css=l,this._opts=c,this._map=void 0;let u,h=r;this.result=new n(this._processor,u,this._opts),this.result.css=l;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let d=new e(h,u,this._opts,l);if(d.isMap()){let[p,g]=d.generate();p&&(this.result.css=p),g&&(this.result.map=g)}else d.clearAnnotation(),this.result.css=d.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,l){return process.env.NODE_ENV!=="production"&&("from"in this._opts||i("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(a,l)}toString(){return this._css}warnings(){return[]}}return ty=o,o.default=o,ty}var ny,OE;function Fse(){if(OE)return ny;OE=1;let e=Nm(),t=CE(),n=jse(),r=ls();class i{constructor(s=[]){this.version="8.5.6",this.plugins=this.normalize(s)}normalize(s){let a=[];for(let l of s)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))a=a.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)a.push(l);else if(typeof l=="function")a.push(l);else if(typeof l=="object"&&(l.parse||l.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(l+" is not a PostCSS plugin");return a}process(s,a={}){return!this.plugins.length&&!a.parser&&!a.stringifier&&!a.syntax?new n(this,s,a):new t(this,s,a)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return ny=i,i.default=i,r.registerProcessor(i),e.registerProcessor(i),ny}var ry,SE;function Bse(){if(SE)return ry;SE=1;let e=km(),t=uc(),n=ti(),r=Om(),i=hc(),o=Nm(),s=Dse(),a=fc(),l=CE(),c=cE(),u=cc(),h=Um(),f=Fse(),d=Qm(),p=ls(),g=Bm(),m=ac(),v=vE();function b(..._){return _.length===1&&Array.isArray(_[0])&&(_=_[0]),new f(_)}return b.plugin=function(x,w){let C=!1;function P(...$){console&&console.warn&&!C&&(C=!0,console.warn(x+`: postcss.plugin was deprecated. Migration guide:
587
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),l}return a.root}return sy=r,r.default=r,e.registerParse(r),sy}var ly,LE;function NE(){if(LE)return ly;LE=1;class e{constructor(n,r={}){if(this.type="warning",this.text=n,r.node&&r.node.source){let i=r.node.rangeBy(r);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in r)this[i]=r[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return ly=e,e.default=e,ly}var cy,zE;function uy(){if(zE)return cy;zE=1;let e=NE();class t{get content(){return this.css}constructor(r,i,o){this.processor=r,this.messages=[],this.root=i,this.opts=o,this.css="",this.map=void 0}toString(){return this.css}warn(r,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let o=new e(r,i);return this.messages.push(o),o}warnings(){return this.messages.filter(r=>r.type==="warning")}}return cy=t,t.default=t,cy}var hy,DE;function qE(){if(DE)return hy;DE=1;let e={};return hy=function(n){e[n]||(e[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},hy}var fy,HE;function jE(){if(HE)return fy;HE=1;let e=ri(),t=Xm(),n=IE(),r=ay(),i=uy(),o=ds(),s=yc(),{isClean:a,my:l}=Hm(),c=qE();const u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0},d=0;function p(x){return typeof x=="object"&&typeof x.then=="function"}function g(x){let _=!1,C=u[x.type];return x.type==="decl"?_=x.prop.toLowerCase():x.type==="atrule"&&(_=x.name.toLowerCase()),_&&x.append?[C,C+"-"+_,d,C+"Exit",C+"Exit-"+_]:_?[C,C+"-"+_,C+"Exit",C+"Exit-"+_]:x.append?[C,d,C+"Exit"]:[C,C+"Exit"]}function m(x){let _;return x.type==="document"?_=["Document",d,"DocumentExit"]:x.type==="root"?_=["Root",d,"RootExit"]:_=g(x),{eventIndex:0,events:_,iterator:0,node:x,visitorIndex:0,visitors:[]}}function v(x){return x[a]=!1,x.nodes&&x.nodes.forEach(_=>v(_)),x}let b={};class w{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(_,C,P){this.stringified=!1,this.processed=!1;let S;if(typeof C=="object"&&C!==null&&(C.type==="root"||C.type==="document"))S=v(C);else if(C instanceof w||C instanceof i)S=v(C.root),C.map&&(typeof P.map=="undefined"&&(P.map={}),P.map.inline||(P.map.inline=!1),P.map.prev=C.map);else{let $=r;P.syntax&&($=P.syntax.parse),P.parser&&($=P.parser),$.parse&&($=$.parse);try{S=$(C,P)}catch(O){this.processed=!0,this.error=O}S&&!S[l]&&e.rebuild(S)}this.result=new i(_,S,P),this.helpers=Dt(ut({},b),{postcss:b,result:this.result}),this.plugins=this.processor.plugins.map($=>typeof $=="object"&&$.prepare?ut(ut({},$),$.prepare(this.result)):$)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(_){return this.async().catch(_)}finally(_){return this.async().then(_,_)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(_,C){let P=this.result.lastPlugin;try{if(C&&C.addToError(_),this.error=_,_.name==="CssSyntaxError"&&!_.plugin)_.plugin=P.postcssPlugin,_.setMessage();else if(P.postcssVersion&&process.env.NODE_ENV!=="production"){let S=P.postcssPlugin,$=P.postcssVersion,O=this.result.processor.version,M=$.split("."),A=O.split(".");(M[0]!==A[0]||parseInt(M[1])>parseInt(A[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+O+", but "+S+" uses "+$+". Perhaps this is the source of the error below.")}}catch(S){console&&console.error&&console.error(S)}return _}prepareVisitors(){this.listeners={};let _=(C,P,S)=>{this.listeners[P]||(this.listeners[P]=[]),this.listeners[P].push([C,S])};for(let C of this.plugins)if(typeof C=="object")for(let P in C){if(!h[P]&&/^[A-Z]/.test(P))throw new Error(`Unknown event ${P} in ${C.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[P])if(typeof C[P]=="object")for(let S in C[P])S==="*"?_(C,P,C[P][S]):_(C,P+"-"+S.toLowerCase(),C[P][S]);else typeof C[P]=="function"&&_(C,P,C[P])}this.hasListener=Object.keys(this.listeners).length>0}runAsync(){return TM(this,null,function*(){this.plugin=0;for(let _=0;_<this.plugins.length;_++){let C=this.plugins[_],P=this.runOnRoot(C);if(p(P))try{yield P}catch(S){throw this.handleError(S)}}if(this.prepareVisitors(),this.hasListener){let _=this.result.root;for(;!_[a];){_[a]=!0;let C=[m(_)];for(;C.length>0;){let P=this.visitTick(C);if(p(P))try{yield P}catch(S){let $=C[C.length-1].node;throw this.handleError(S,$)}}}if(this.listeners.OnceExit)for(let[C,P]of this.listeners.OnceExit){this.result.lastPlugin=C;try{if(_.type==="document"){let S=_.nodes.map($=>P($,this.helpers));yield Promise.all(S)}else yield P(_,this.helpers)}catch(S){throw this.handleError(S)}}}return this.processed=!0,this.stringify()})}runOnRoot(_){this.result.lastPlugin=_;try{if(typeof _=="object"&&_.Once){if(this.result.root.type==="document"){let C=this.result.root.nodes.map(P=>_.Once(P,this.helpers));return p(C[0])?Promise.all(C):C}return _.Once(this.result.root,this.helpers)}else if(typeof _=="function")return _(this.result.root,this.result)}catch(C){throw this.handleError(C)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let _=this.result.opts,C=s;_.syntax&&(C=_.syntax.stringify),_.stringifier&&(C=_.stringifier),C.stringify&&(C=C.stringify);let S=new n(C,this.result.root,this.result.opts).generate();return this.result.css=S[0],this.result.map=S[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let _ of this.plugins){let C=this.runOnRoot(_);if(p(C))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let _=this.result.root;for(;!_[a];)_[a]=!0,this.walkSync(_);if(this.listeners.OnceExit)if(_.type==="document")for(let C of _.nodes)this.visitSync(this.listeners.OnceExit,C);else this.visitSync(this.listeners.OnceExit,_)}return this.result}then(_,C){return process.env.NODE_ENV!=="production"&&("from"in this.opts||c("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(_,C)}toString(){return this.css}visitSync(_,C){for(let[P,S]of _){this.result.lastPlugin=P;let $;try{$=S(C,this.helpers)}catch(O){throw this.handleError(O,C.proxyOf)}if(C.type!=="root"&&C.type!=="document"&&!C.parent)return!0;if(p($))throw this.getAsyncError()}}visitTick(_){let C=_[_.length-1],{node:P,visitors:S}=C;if(P.type!=="root"&&P.type!=="document"&&!P.parent){_.pop();return}if(S.length>0&&C.visitorIndex<S.length){let[O,M]=S[C.visitorIndex];C.visitorIndex+=1,C.visitorIndex===S.length&&(C.visitors=[],C.visitorIndex=0),this.result.lastPlugin=O;try{return M(P.toProxy(),this.helpers)}catch(A){throw this.handleError(A,P)}}if(C.iterator!==0){let O=C.iterator,M;for(;M=P.nodes[P.indexes[O]];)if(P.indexes[O]+=1,!M[a]){M[a]=!0,_.push(m(M));return}C.iterator=0,delete P.indexes[O]}let $=C.events;for(;C.eventIndex<$.length;){let O=$[C.eventIndex];if(C.eventIndex+=1,O===d){P.nodes&&P.nodes.length&&(P[a]=!0,C.iterator=P.getIterator());return}else if(this.listeners[O]){C.visitors=this.listeners[O];return}}_.pop()}walkSync(_){_[a]=!0;let C=g(_);for(let P of C)if(P===d)_.nodes&&_.each(S=>{S[a]||this.walkSync(S)});else{let S=this.listeners[P];if(S&&this.visitSync(S,_.toProxy()))return}}warnings(){return this.sync().warnings()}}return w.registerPostcss=x=>{b=x},fy=w,w.default=w,o.registerLazyResult(w),t.registerLazyResult(w),fy}var dy,FE;function Eae(){if(FE)return dy;FE=1;let e=IE(),t=ay();const n=uy();let r=yc(),i=qE();class o{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let a,l=t;try{a=l(this._css,this._opts)}catch(c){this.error=c}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(a,l,c){l=l.toString(),this.stringified=!1,this._processor=a,this._css=l,this._opts=c,this._map=void 0;let u,h=r;this.result=new n(this._processor,u,this._opts),this.result.css=l;let f=this;Object.defineProperty(this.result,"root",{get(){return f.root}});let d=new e(h,u,this._opts,l);if(d.isMap()){let[p,g]=d.generate();p&&(this.result.css=p),g&&(this.result.map=g)}else d.clearAnnotation(),this.result.css=d.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,l){return process.env.NODE_ENV!=="production"&&("from"in this._opts||i("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(a,l)}toString(){return this._css}warnings(){return[]}}return dy=o,o.default=o,dy}var py,BE;function Mae(){if(BE)return py;BE=1;let e=Xm(),t=jE(),n=Eae(),r=ds();class i{constructor(s=[]){this.version="8.5.6",this.plugins=this.normalize(s)}normalize(s){let a=[];for(let l of s)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))a=a.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)a.push(l);else if(typeof l=="function")a.push(l);else if(typeof l=="object"&&(l.parse||l.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(l+" is not a PostCSS plugin");return a}process(s,a={}){return!this.plugins.length&&!a.parser&&!a.stringifier&&!a.syntax?new n(this,s,a):new t(this,s,a)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return py=i,i.default=i,r.registerProcessor(i),e.registerProcessor(i),py}var gy,WE;function Aae(){if(WE)return gy;WE=1;let e=Gm(),t=wc(),n=ri(),r=zm(),i=_c(),o=Xm(),s=Sae(),a=xc(),l=jE(),c=$E(),u=bc(),h=ay(),f=Mae(),d=uy(),p=ds(),g=ty(),m=yc(),v=NE();function b(...w){return w.length===1&&Array.isArray(w[0])&&(w=w[0]),new f(w)}return b.plugin=function(x,_){let C=!1;function P(...$){console&&console.warn&&!C&&(C=!0,console.warn(x+`: postcss.plugin was deprecated. Migration guide:
581
588
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(x+`: 里面 postcss.plugin 被弃用. 迁移指南:
582
- https://www.w3ctech.com/topic/2226`));let S=w(...$);return S.postcssPlugin=x,S.postcssVersion=new f().version,S}let O;return Object.defineProperty(P,"postcss",{get(){return O||(O=P()),O}}),P.process=function($,S,M){return b([P(M)]).process($,S)},P},b.stringify=m,b.parse=h,b.fromJSON=s,b.list=c,b.comment=_=>new t(_),b.atRule=_=>new e(_),b.decl=_=>new i(_),b.rule=_=>new g(_),b.root=_=>new p(_),b.document=_=>new o(_),b.CssSyntaxError=r,b.Declaration=i,b.Container=n,b.Processor=f,b.Document=o,b.Comment=t,b.Warning=v,b.AtRule=e,b.Result=d,b.Input=a,b.Rule=g,b.Root=p,b.Node=u,l.registerPostcss(b),ry=b,b.default=b,ry}var Wse=Bse();const bt=W$(Wse);bt.stringify,bt.fromJSON,bt.plugin,bt.parse,bt.list,bt.document,bt.comment,bt.atRule,bt.rule,bt.decl,bt.root,bt.CssSyntaxError,bt.Declaration,bt.Container,bt.Processor,bt.Document,bt.Comment,bt.Warning,bt.AtRule,bt.Result,bt.Input,bt.Rule,bt.Root,bt.Node;var Fi=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});function Vse(e,t=!0){return Fi(this,null,function*(){const n=Gse(e);if(n.size===0)return;const r=[];yield Promise.all(Array.from(n).map(i=>Fi(null,null,function*(){const o=Xse(i);if(!o.length)return;const s=yield Yse(i);if(!s.length)return;const a=yield Promise.all(s.map(l=>Fi(null,null,function*(){const c=Use(l),u=c["unicode-range"].replace(/\s/g,"");if(!o.find(g=>g.unicodeRange&&g.unicodeRange.replace(/\s/g,"")===u))return null;const f=Dz(c["font-family"],vb(c["font-weight"]));if(!f)return null;const d=c.src.match(/url\(["']?(.*?\.woff2)[^"']*["']?\)/);if(!(d!=null&&d[1]))return null;const p=fh(f,d[1]);if(t){const g=yield Zse(p);c.src=`url(${g}) format('woff2')`}else c.src=`url(${p}) format('woff2')`;return c})));r.push(...a.filter(Boolean)||[])}))),r.length>0&&Kse(e,r)})}function Gse(e){const t=new Set,n=i=>{i&&Tr(i).forEach(o=>{const s=pi(o);s&&t.add(s)})};n(e.getAttribute("font-family"));const r=e.querySelectorAll("foreignObject span");for(const i of r)n(i.style.fontFamily);return t}function Yse(e){return Fi(this,null,function*(){const t=$b(e),n=[];return yield Promise.allSettled(t.map(r=>Fi(null,null,function*(){const i=yield ga(r).then(o=>o.text()).catch(()=>(console.error(`Failed to fetch font CSS: ${r}`),null));if(i)try{bt.parse(i).walkAtRules("font-face",s=>{const a={};s.walkDecls(l=>{a[l.prop]=l.value}),n.push(a)})}catch(o){console.error(`Failed to parse CSS: ${r}`,o)}}))),n})}function Xse(e){const t=[],n=Tr(e).map(r=>pi(r));return document.fonts.forEach(r=>{n.includes(pi(r.family))&&r.status==="loaded"&&t.push(r)}),t}function Use(e){var t,n,r,i,o,s;return{"font-family":(t=e["font-family"])!=null?t:"",src:(n=e.src)!=null?n:"","font-style":(r=e["font-style"])!=null?r:"normal","font-display":(i=e["font-display"])!=null?i:"swap","font-weight":(o=e["font-weight"])!=null?o:"400","unicode-range":(s=e["unicode-range"])!=null?s:"U+0-FFFF"}}function Kse(e,t){const n=[],r=new Set;for(const s of t){const a=[s["font-family"],s["font-weight"],s["font-style"],s["unicode-range"],s.src].join("|");r.has(a)||(r.add(a),n.push(s))}if(n.length===0)return;const i=Ae("style",{type:"text/css"});i.innerHTML=n.map(s=>`
589
+ https://www.w3ctech.com/topic/2226`));let O=_(...$);return O.postcssPlugin=x,O.postcssVersion=new f().version,O}let S;return Object.defineProperty(P,"postcss",{get(){return S||(S=P()),S}}),P.process=function($,O,M){return b([P(M)]).process($,O)},P},b.stringify=m,b.parse=h,b.fromJSON=s,b.list=c,b.comment=w=>new t(w),b.atRule=w=>new e(w),b.decl=w=>new i(w),b.rule=w=>new g(w),b.root=w=>new p(w),b.document=w=>new o(w),b.CssSyntaxError=r,b.Declaration=i,b.Container=n,b.Processor=f,b.Document=o,b.Comment=t,b.Warning=v,b.AtRule=e,b.Result=d,b.Input=a,b.Rule=g,b.Root=p,b.Node=u,l.registerPostcss(b),gy=b,b.default=b,gy}var Iae=Aae();const bt=lE(Iae);bt.stringify,bt.fromJSON,bt.plugin,bt.parse,bt.list,bt.document,bt.comment,bt.atRule,bt.rule,bt.decl,bt.root,bt.CssSyntaxError,bt.Declaration,bt.Container,bt.Processor,bt.Document,bt.Comment,bt.Warning,bt.AtRule,bt.Result,bt.Input,bt.Rule,bt.Root,bt.Node;var Gi=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});function Tae(e,t=!0){return Gi(this,null,function*(){const n=Rae(e);if(n.size===0)return;const r=[];yield Promise.all(Array.from(n).map(i=>Gi(null,null,function*(){const o=Lae(i);if(!o.length)return;const s=yield kae(i);if(!s.length)return;const a=yield Promise.all(s.map(l=>Gi(null,null,function*(){const c=Nae(l),u=c["unicode-range"].replace(/\s/g,"");if(!o.find(g=>g.unicodeRange&&g.unicodeRange.replace(/\s/g,"")===u))return null;const f=$D(c["font-family"],Tb(c["font-weight"]));if(!f)return null;const d=c.src.match(/url\(["']?(.*?\.woff2)[^"']*["']?\)/);if(!(d!=null&&d[1]))return null;const p=Sh(f,d[1]);if(t){const g=yield Dae(p);c.src=`url(${g}) format('woff2')`}else c.src=`url(${p}) format('woff2')`;return c})));r.push(...a.filter(Boolean)||[])}))),r.length>0&&zae(e,r)})}function Rae(e){const t=new Set,n=i=>{i&&Rr(i).forEach(o=>{const s=yi(o);s&&t.add(s)})};n(e.getAttribute("font-family"));const r=e.querySelectorAll("foreignObject span");for(const i of r)n(i.style.fontFamily);return t}function kae(e){return Gi(this,null,function*(){const t=jb(e),n=[];return yield Promise.allSettled(t.map(r=>Gi(null,null,function*(){const i=yield Sa(r).then(o=>o.text()).catch(()=>(console.error(`Failed to fetch font CSS: ${r}`),null));if(i)try{bt.parse(i).walkAtRules("font-face",s=>{const a={};s.walkDecls(l=>{a[l.prop]=l.value}),n.push(a)})}catch(o){console.error(`Failed to parse CSS: ${r}`,o)}}))),n})}function Lae(e){const t=[],n=Rr(e).map(r=>yi(r));return document.fonts.forEach(r=>{n.includes(yi(r.family))&&r.status==="loaded"&&t.push(r)}),t}function Nae(e){var t,n,r,i,o,s;return{"font-family":(t=e["font-family"])!=null?t:"",src:(n=e.src)!=null?n:"","font-style":(r=e["font-style"])!=null?r:"normal","font-display":(i=e["font-display"])!=null?i:"swap","font-weight":(o=e["font-weight"])!=null?o:"400","unicode-range":(s=e["unicode-range"])!=null?s:"U+0-FFFF"}}function zae(e,t){const n=[],r=new Set;for(const s of t){const a=[s["font-family"],s["font-weight"],s["font-style"],s["unicode-range"],s.src].join("|");r.has(a)||(r.add(a),n.push(s))}if(n.length===0)return;const i=Ie("style",{type:"text/css"});i.innerHTML=n.map(s=>`
583
590
  @font-face {
584
591
  font-family: ${s["font-family"]};
585
592
  src: ${s.src};
@@ -589,5 +596,5 @@ https://www.w3ctech.com/topic/2226`));let S=w(...$);return S.postcssPlugin=x,S.p
589
596
  unicode-range: ${s["unicode-range"]};
590
597
  }
591
598
  `.trim()).join(`
592
- `);const o=e.querySelector("defs");o&&o.parentNode?o.parentNode.insertBefore(i,o.nextSibling):e.insertBefore(i,e.firstChild)}function Zse(e){return Fi(this,null,function*(){const t=yield ga(e);if(!t.ok)throw new Error(`Failed to load font: ${e}`);const n=yield t.blob();return yield new Promise((i,o)=>{const s=new FileReader;s.onloadend=()=>{i(s.result)},s.onerror=o,s.readAsDataURL(n)})})}var iy=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});function Qse(e){return iy(this,arguments,function*(t,n={}){const r=yield oy(t,n),i=new XMLSerializer().serializeToString(r);return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(i)})}function oy(e){return iy(this,arguments,function*(t,n={}){const{embedResources:r=!0,removeIds:i=!1}=n,o=t.cloneNode(!0),{width:s,height:a}=ya(t);return ut(o,{width:s,height:a}),i?(tae(o),hae(o)):yield Jse(o),yield Vse(o,r),mae(o),o})}function Jse(e){return iy(this,null,function*(){const t=e.querySelectorAll("use"),n=eae(e);t.forEach(r=>{const i=r.getAttribute("href");if(!i)return;if(!e.querySelector(i)){const s=document.querySelector(i);s&&n.appendChild(s.cloneNode(!0))}})})}const $E="icon-defs";function eae(e){const t=wi(e,$E);if(t)return t;const n=Ae("defs");return xo(n,$E),e.prepend(n),n}function tae(e){const t=Array.from(e.querySelectorAll("use"));t.length&&t.forEach(n=>{const r=nae(n);if(!r||!r.startsWith("#"))return;const i=rae(e,r);if(!i||i===n)return;const o=iae(n,i);o&&n.replaceWith(o)})}function nae(e){var t;return(t=e.getAttribute("href"))!=null?t:e.getAttribute("xlink:href")}function rae(e,t){const n=e.querySelector(t);return n||document.querySelector(t)}function iae(e,t){const n=t.tagName.toLowerCase();return n==="symbol"?oae(e,t):n==="svg"?sae(e,t):aae(e,t)}function oae(e,t){const n=t.cloneNode(!0),r=Ae("svg");for(dc(r,n,new Set(["id"])),dc(r,e,new Set(["href","xlink:href"]));n.firstChild;)r.appendChild(n.firstChild);return r}function sae(e,t){const n=t.cloneNode(!0);return n.removeAttribute("id"),dc(n,e,new Set(["href","xlink:href"])),n}function aae(e,t){const n=t.cloneNode(!0);n.removeAttribute("id");const r=Ae("g");dc(r,e,new Set(["href","xlink:href","x","y","width","height","transform"]));const i=lae(e);return i&&r.setAttribute("transform",i),r.appendChild(n),r}function lae(e){var t;const n=e.getAttribute("x"),r=e.getAttribute("y"),i=n||r?`translate(${n!=null?n:0} ${r!=null?r:0})`:"",o=(t=e.getAttribute("transform"))!=null?t:"";return i&&o?`${i} ${o}`:i||o||null}function dc(e,t,n=new Set){Array.from(t.attributes).forEach(r=>{if(!n.has(r.name)){if(r.name==="style"){cae(e,r.value);return}if(r.name==="class"){uae(e,r.value);return}e.setAttribute(r.name,r.value)}})}function cae(e,t){const n=e.getAttribute("style");if(!n){e.setAttribute("style",t);return}const r=n.trim().endsWith(";")?"":";";e.setAttribute("style",`${n}${r}${t}`)}function uae(e,t){const n=e.getAttribute("class");if(!n){e.setAttribute("class",t);return}e.setAttribute("class",`${n} ${t}`.trim())}const EE=/url\(\s*['"]?#([^'")\s]+)['"]?\s*\)/g;function hae(e){const t=fae(e);if(t.size===0){IE(e);return}const n=dae(e,t);n&&(_i(e,r=>{if(r.tagName.toLowerCase()==="defs")return!1;Array.from(r.attributes).forEach(o=>{const s=o.value;if(!s.includes("url("))return;const a=s.replace(EE,(l,c)=>{const u=encodeURIComponent(c);return`url("${n}#${u}")`});a!==s&&r.setAttribute(o.name,a)})}),IE(e))}function fae(e){const t=new Set;return _i(e,n=>{if(n.tagName.toLowerCase()==="defs")return!1;ME(n,r=>t.add(r))}),t}function ME(e,t){for(const n of Array.from(e.attributes)){const r=n.value;if(r.includes("url("))for(const i of r.matchAll(EE))i[1]&&t(i[1]);(n.name==="href"||n.name==="xlink:href")&&r[0]==="#"&&t(r.slice(1))}}function dae(e,t){if(t.size===0)return null;const n=pae(e,t);if(n.size===0)return null;const r=Ae("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),i=Ae("defs");if(n.forEach(s=>{i.appendChild(s.cloneNode(!0))}),!i.children.length)return null;r.appendChild(i);const o=new XMLSerializer().serializeToString(r);return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o)}function pae(e,t){const n=new Map,r=Array.from(t),i=new Set(r),o=new Set,s=a=>{o.has(a)||i.has(a)||(r.push(a),i.add(a))};for(;r.length;){const a=r.shift();if(o.has(a))continue;o.add(a);const l=`#${gae(a)}`,c=e.querySelector(l);c&&(n.set(a,c),_i(c,u=>{ME(u,s)}))}return n}function gae(e){return globalThis.CSS&&typeof globalThis.CSS.escape=="function"?globalThis.CSS.escape(e):e.replace(/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g,"\\$1")}function IE(e){Array.from(e.querySelectorAll("defs")).forEach(n=>n.remove())}function mae(e){yae(e),vae(e),bae(e),_ae(e)}function yae(e){const t=wi(e,Ge.BtnsGroup);t==null||t.remove();const n=wi(e,"btn-icon-defs");n==null||n.remove()}function vae(e){const t=e.querySelector("[data-element-type=transient-container]");t==null||t.remove()}function bae(e){e.querySelectorAll("g").forEach(n=>{n.removeAttribute("x"),n.removeAttribute("y"),n.removeAttribute("width"),n.removeAttribute("height")})}function _ae(e){_i(e,t=>{for(const n in t.dataset)delete t.dataset[n]})}var wae=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});function xae(e){return wae(this,arguments,function*(t,n={}){var r;const{dpr:i=(r=globalThis.devicePixelRatio)!=null?r:2}=n,o=yield oy(t),{width:s,height:a}=ya(o);return new Promise((l,c)=>{try{const u=document.createElement("canvas");u.width=s*i,u.height=a*i;const h=u.getContext("2d");if(!h){c(new Error("Failed to get canvas context"));return}h.scale(i,i),h.imageSmoothingEnabled=!0,h.imageSmoothingQuality="high",o.setAttribute("width",String(s)),o.setAttribute("height",String(a));const f=new XMLSerializer().serializeToString(o),d="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(f),p=new Image;p.onload=function(){h.clearRect(0,0,s,a),h.drawImage(p,0,0,s,a);const g=u.toDataURL("image/png");l(g)},p.onerror=function(g){c(new Error("Image load failed: "+g))},p.src=d}catch(u){c(u)}})})}var sy={exports:{}},AE;function Cae(){return AE||(AE=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function o(l,c,u,h,f){if(typeof u!="function")throw new TypeError("The listener must be a function");var d=new i(u,h||l,f),p=n?n+c:c;return l._events[p]?l._events[p].fn?l._events[p]=[l._events[p],d]:l._events[p].push(d):(l._events[p]=d,l._eventsCount++),l}function s(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var c=[],u,h;if(this._eventsCount===0)return c;for(h in u=this._events)t.call(u,h)&&c.push(n?h.slice(1):h);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},a.prototype.listeners=function(c){var u=n?n+c:c,h=this._events[u];if(!h)return[];if(h.fn)return[h.fn];for(var f=0,d=h.length,p=new Array(d);f<d;f++)p[f]=h[f].fn;return p},a.prototype.listenerCount=function(c){var u=n?n+c:c,h=this._events[u];return h?h.fn?1:h.length:0},a.prototype.emit=function(c,u,h,f,d,p){var g=n?n+c:c;if(!this._events[g])return!1;var m=this._events[g],v=arguments.length,b,_;if(m.fn){switch(m.once&&this.removeListener(c,m.fn,void 0,!0),v){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,u),!0;case 3:return m.fn.call(m.context,u,h),!0;case 4:return m.fn.call(m.context,u,h,f),!0;case 5:return m.fn.call(m.context,u,h,f,d),!0;case 6:return m.fn.call(m.context,u,h,f,d,p),!0}for(_=1,b=new Array(v-1);_<v;_++)b[_-1]=arguments[_];m.fn.apply(m.context,b)}else{var x=m.length,w;for(_=0;_<x;_++)switch(m[_].once&&this.removeListener(c,m[_].fn,void 0,!0),v){case 1:m[_].fn.call(m[_].context);break;case 2:m[_].fn.call(m[_].context,u);break;case 3:m[_].fn.call(m[_].context,u,h);break;case 4:m[_].fn.call(m[_].context,u,h,f);break;default:if(!b)for(w=1,b=new Array(v-1);w<v;w++)b[w-1]=arguments[w];m[_].fn.apply(m[_].context,b)}}return!0},a.prototype.on=function(c,u,h){return o(this,c,u,h,!1)},a.prototype.once=function(c,u,h){return o(this,c,u,h,!0)},a.prototype.removeListener=function(c,u,h,f){var d=n?n+c:c;if(!this._events[d])return this;if(!u)return s(this,d),this;var p=this._events[d];if(p.fn)p.fn===u&&(!f||p.once)&&(!h||p.context===h)&&s(this,d);else{for(var g=0,m=[],v=p.length;g<v;g++)(p[g].fn!==u||f&&!p[g].once||h&&p[g].context!==h)&&m.push(p[g]);m.length?this._events[d]=m.length===1?m[0]:m:s(this,d)}return this},a.prototype.removeAllListeners=function(c){var u;return c?(u=n?n+c:c,this._events[u]&&s(this,u)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a})(sy)),sy.exports}var Pae=Cae();const Oae=W$(Pae);var pc=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class Sae{constructor(){this.undoStack=[],this.redoStack=[]}init(t){Object.assign(this,t)}execute(t){return pc(this,null,function*(){yield t.apply(this.state),this.undoStack.push(t),this.redoStack=[],this.emitHistoryChange("execute")})}executeBatch(t){return pc(this,null,function*(){if(t.length===0)return;const n=new aoe(t);yield this.execute(n)})}undo(){return pc(this,null,function*(){const t=this.undoStack.pop();t&&(yield t.undo(this.state),this.redoStack.push(t),this.emitHistoryChange("undo"))})}redo(){return pc(this,null,function*(){const t=this.redoStack.pop();t&&(yield t.apply(this.state),this.undoStack.push(t),this.emitHistoryChange("redo"))})}serialize(){return this.undoStack.map(t=>t.serialize())}clear(){this.undoStack=[],this.redoStack=[]}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}getHistorySize(){return this.undoStack.length}destroy(){this.clear()}emitHistoryChange(t){var n;(n=this.emitter)==null||n.emit("history:change",{type:"history:change",action:t})}}var TE=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class $ae{constructor(){this.extensions=new jS,this.interactions=[],this.active=!1,this.running=null,this.concurrentInteractions=new Set,this.selection=new Set,this.handleClick=t=>{const n=this.editor.getDocument(),r=t.target;if(!r){this.deactivate();return}n.contains(r)||SH(r)?this.activate():this.deactivate()}}init(t){Object.assign(this,t),document.addEventListener("click",this.handleClick),this.interactions.forEach(n=>{this.extensions.register(n.name,n),n.init({emitter:this.emitter,editor:this.editor,commander:this.commander,state:this.state,interaction:this}),this.emitter.emit("interaction:registered",n)})}isActive(){return this.active}select(t,n){const r=this.getSelection(),i=[],o=[];if(n==="replace"){const l=new Set(t);r.forEach(c=>{l.has(c)||o.push(c)}),t.forEach(c=>{this.selection.has(c)||i.push(c)}),this.selection=l}else n==="add"?t.forEach(l=>{this.selection.has(l)||(this.selection.add(l),i.push(l))}):n==="remove"?t.forEach(l=>{this.selection.delete(l)&&o.push(l)}):n==="toggle"&&t.forEach(l=>{this.selection.has(l)?(this.selection.delete(l),o.push(l)):(this.selection.add(l),i.push(l))});const s=this.getSelection(),a={type:"selection:change",previous:r,next:s,added:i,removed:o,mode:n};this.emitter.emit("selection:change",a)}getSelection(){return[...this.selection]}isSelected(t){return this.selection.has(t)}clearSelection(){const t=this.getSelection();this.selection.clear();const n={type:"selection:change",previous:t,next:[],added:[],removed:t,mode:"replace"};this.emitter.emit("selection:change",n)}activate(){this.active=!0,this.emitter.emit("activated")}deactivate(){this.active=!1,this.running=null,this.clearSelection(),this.emitter.emit("deactivated")}executeExclusiveInteraction(t,n){return TE(this,null,function*(){if(!(!this.active||this.running)){this.running=t;try{this.emitter.emit("interaction:started",t),yield n(),this.emitter.emit("interaction:ended",t)}catch(r){console.error(`Error occurred during exclusive interaction "${t.name}":`,r),this.emitter.emit("interaction:error",t,r)}finally{this.running=null}}})}executeConcurrentInteraction(t,n){return TE(this,null,function*(){if(this.active){this.concurrentInteractions.add(t);try{this.emitter.emit("interaction:started",t),yield n(),this.emitter.emit("interaction:ended",t)}catch(r){console.error(`Error occurred during concurrent interaction "${t.name}":`,r),this.emitter.emit("interaction:error",t,r)}finally{this.concurrentInteractions.delete(t)}}})}getOrCreateTransientContainer(){const t="transient-container",n=this.editor.getDocument(),r=wi(n,t);if(r&&r.isConnected)return r;const i=Ae("g");return xo(i,t),n.appendChild(i),i}appendTransientElement(t){return this.getOrCreateTransientContainer().appendChild(t),t}destroy(){this.extensions.forEach(t=>{t.destroy(),this.emitter.emit("interaction:destroyed",t)}),this.extensions.destroy(),this.active=!1,this.running=null,this.clearSelection(),document.removeEventListener("click",this.handleClick),this.getOrCreateTransientContainer().remove()}}class Eae{constructor(){this.extensions=new jS}init(t,n=[]){Object.assign(this,t),n.forEach(r=>{this.registerPlugin(r)})}getPlugin(t){return this.extensions.get(t)}getPlugins(){return this.extensions.getAll()}registerPlugin(t){this.extensions.register(t.name,t);const n={emitter:this.emitter,editor:this.editor,commander:this.commander,plugin:this,state:this.state};t.init(n),this.emitter.emit("plugin:registered",t)}unregisterPlugin(t){const n=this.extensions.get(t);n&&(n.destroy(),this.extensions.unregister(t),this.emitter.emit("plugin:unregistered",n))}destroy(){this.extensions.getAll().forEach(t=>{this.unregisterPlugin(t.name),this.emitter.emit("plugin:destroyed",t)}),this.extensions.destroy()}}var Mae=Object.defineProperty,RE=Object.getOwnPropertySymbols,Iae=Object.prototype.hasOwnProperty,Aae=Object.prototype.propertyIsEnumerable,kE=(e,t,n)=>t in e?Mae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,LE=(e,t)=>{for(var n in t||(t={}))Iae.call(t,n)&&kE(e,n,t[n]);if(RE)for(var n of RE(t))Aae.call(t,n)&&kE(e,n,t[n]);return e};class Tae{init(t){Object.assign(this,t)}addItemDatum(t,n){const r=t.slice(0,-1),i=t[t.length-1],o=Array.isArray(n)?n:[n];DS(this.options.data,r).splice(i,0,...o),this.emitter.emit("options:data:item:add",{indexes:t,datum:n}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"add",path:"data.items",indexes:t,value:o}]})}updateItemDatum(t,n){const r=uo(this.options.data,t);Object.assign(r,n),this.emitter.emit("options:data:item:update",{indexes:t,datum:n}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:"data.items",indexes:t,value:n}]})}removeItemDatum(t,n=1){const r=t.slice(0,-1),i=t[t.length-1],s=DS(this.options.data,r).splice(i,n);this.emitter.emit("options:data:item:remove",{indexes:t,datum:s}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"remove",path:"data.items",indexes:t,value:s}]})}updateData(t,n){this.options.data[t]=n,this.emitter.emit("options:data:update",{key:t,value:n}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:`data.${t}`,value:n}]})}updateElement(t,n){this.updateBuiltInElement(t,n)}updateOptions(t){this.options=LE(LE({},this.options),t),this.options.viewBox?this.editor.getDocument().setAttribute("viewBox",this.options.viewBox):(this.editor.getDocument().removeAttribute("viewBox"),this.options.padding!==void 0&&B_(this.editor.getDocument(),xi(this.options.padding))),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:"",value:t}]})}getOptions(){return this.options}updateBuiltInElement(t,n){var r,i;const{data:o}=this.options,{attributes:s={}}=n,a=ah(t),l=fr(t)||Ge.ItemLabel===a||Ge.ItemDesc===a||Ge.ItemValue===a||Ge.ItemIllus===a,c=l?qS(t):void 0;if(l){const u=uo(o,c),h=a.replace("item-","");u.attributes||(u.attributes={}),(r=u.attributes)[h]||(r[h]={}),Object.assign(u.attributes[h],s)}else(Ge.Title===a||Ge.Desc===a||Ge.Illus===a)&&(o.attributes||(o.attributes={}),(i=o.attributes)[a]||(i[a]={}),Object.assign(o.attributes[a],s));this.emitter.emit("options:element:update",{element:t,props:n}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",role:a,indexes:c,path:l?`${Kie(c)}.attributes.${a.replace("item-","")}`:`data.attributes.${a}`,value:n}]})}destroy(){}}class Rae{constructor(t,n,r){if(this.emitter=t,this.document=n,this.options=r,!n.isConnected)throw new Error("The provided document is not connected to the DOM.");n.style.userSelect="none";const i=new Sae,o=new Tae,s=new Eae,a=new $ae;i.init({state:o,emitter:t}),o.init({emitter:t,editor:this,commander:i,options:r}),s.init({emitter:t,editor:this,commander:i,state:o},r.plugins),a.init({emitter:t,editor:this,commander:i,state:o,interactions:r.interactions}),this.commander=i,this.state=o,this.plugin=s,this.interaction=a}getDocument(){return this.document}destroy(){this.document.style.userSelect="",this.interaction.destroy(),this.plugin.destroy(),this.commander.destroy(),this.state.destroy()}}var kae=Object.defineProperty,Lae=Object.defineProperties,Nae=Object.getOwnPropertyDescriptors,gc=Object.getOwnPropertySymbols,NE=Object.prototype.hasOwnProperty,zE=Object.prototype.propertyIsEnumerable,DE=(e,t,n)=>t in e?kae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,un=(e,t)=>{for(var n in t||(t={}))NE.call(t,n)&&DE(e,n,t[n]);if(gc)for(var n of gc(t))zE.call(t,n)&&DE(e,n,t[n]);return e},Bi=(e,t)=>Lae(e,Nae(t)),Wi=(e,t)=>{var n={};for(var r in e)NE.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&gc)for(var r of gc(e))t.indexOf(r)<0&&zE.call(e,r)&&(n[r]=e[r]);return n};function zae(e){const t=e,{container:n="#container",padding:r=0,template:i,design:o,theme:s,themeConfig:a,data:l}=t,c=Wi(t,["container","padding","template","design","theme","themeConfig","data"]),u=typeof n=="string"?document.querySelector(n)||document.createElement("div"):n,h=i?Xi(i):void 0,f=gb({},h==null?void 0:h.themeConfig,a),d=s||a||h!=null&&h.themeConfig?Fae(s,f):void 0,p={container:u,padding:xi(r)};if(h){const m=h,{design:v}=m,b=Wi(m,["design"]);Object.assign(p,b)}Object.assign(p,c);const g=Dae(l,e.template);if(g&&(p.data=g),i&&(p.template=i),h!=null&&h.design||o){const m=Bi(un({},d?Bi(un({},e),{themeConfig:d}):e),{data:g||l}),v=qae(un(un({},h==null?void 0:h.design),o),m);mb(v)&&(p.design=v)}return s&&(p.theme=s),d&&(p.themeConfig=d),p}function Dae(e,t){if(!e)return;if(Array.isArray(e.items)&&e.items.length)return e;const{lists:n,sequences:r,compares:i,nodes:o,values:s,root:a}=e,l=()=>{if(!t)return null;const h={list:n,sequence:r,compare:i,relation:o,chart:s,hierarchy:a?[a]:[]},f=t.split("-")[0],d=h[f];return d!=null&&d.length?d:null},c=()=>{var h;return n!=null&&n.length?n:r!=null&&r.length?r:i!=null&&i.length?i:o!=null&&o.length?o:s!=null&&s.length?s:a?[a]:(h=e.items)!=null&&h.length?e.items:[]};let u=l()||c();return u===r&&e.order==="desc"&&(u=[...u].reverse()),Bi(un({},e),{items:u})}function ay(e){if(typeof e=="string")return{type:e};if(!("type"in e))throw new Error("Type is required");return e}function qae(e,t){const{structure:n,title:r,item:i,items:o}=e||{},s=qE(i||(o==null?void 0:o[0]),t);return{structure:Hae(n),title:jae(r,t),item:s,items:o?o.map(a=>qE(a,t)):[s]}}function Hae(e){if(!e)return null;const t=ay(e),{type:n}=t,r=Wi(t,["type"]),i=X4(n);if(!i)return null;const{component:o}=i;return Bi(un({},i),{component:s=>o(un(un({},s),r))})}function jae(e,t){if(!e)return{component:null};const n=ay(e),{type:r}=n,i=Wi(n,["type"]),{themeConfig:o}=t,s=(o==null?void 0:o.colorBg)||"#fff",a=HE(s,s);return{component:l=>Kw(un(Bi(un({},l),{themeColors:a}),i))}}function qE(e,t){if(!e)return null;const n=ay(e),{type:r}=n,i=Wi(n,["type"]),o=o3(r);if(!o)return null;const{component:s,options:a}=o;return Bi(un({},o),{component:l=>{var c;const{indexes:u}=l,{data:h,themeConfig:f}=t,d=(f==null?void 0:f.colorBg)||"#fff",p=l,{themeColors:g=HE(Vs(f==null?void 0:f.palette,u,(c=h==null?void 0:h.items)==null?void 0:c.length)||(f==null?void 0:f.colorPrimary)||"#FF356A",d)}=p,m=Wi(p,["themeColors"]);return s(un(un({themeColors:g},m),i))},options:a})}function Fae(e,t={}){var n;const r=e?Zw(e)||{}:{},i=gb({},r,t);return i.palette=t.palette||r.palette,i.stylize=(n=t.stylize)!=null?n:r.stylize,i.colorPrimary||(i.colorPrimary="#FF356A"),i.palette||(i.palette=[i.colorPrimary]),i}function HE(e,t="#fff"){return e3({colorPrimary:e,isDarkMode:F2(t),colorBg:t})}function Bae(e){return e===" "||e===" "}function Wae(e){let t=0,n=0;for(;n<e.length;){const r=e[n];if(r===" "){t+=1,n+=1;continue}if(r===" "){t+=2,n+=1;continue}break}return{indent:t,content:e.slice(n)}}function Vae(e){return e.trimEnd()}function Gae(e){return/[<>=o.x-]{2,}/.test(e)}function jE(e){const t=e.trim();if(!t)return null;const n=t.match(/^([^:\s=]+)\s*[:=]\s*(.*)$/);if(n)return{key:n[1],value:n[2].trim()};const r=t.match(/^([^\s]+)\s+(.*)$/);return r?{key:r[1],value:r[2].trim()}:{key:t,value:void 0}}function mc(e,t){return{kind:"object",line:e,value:t,entries:{}}}function FE(e){return{kind:"array",line:e,items:[]}}function Yae(e){const t=[],n=mc(0),r=[{indent:-1,node:n,parent:null,key:null}];return e.split(/\r?\n/).forEach((o,s)=>{const a=s+1;if(!o.trim())return;const{indent:l,content:c}=Wae(o),u=Vae(c);if(!u.trim())return;for(;r.length>1&&l<=r[r.length-1].indent;)r.pop();const h=r[r.length-1];let f=h.node;const d=u.trim();if(d.startsWith("-")&&(d.length===1||Bae(d[1]))){if(f.kind!=="array")if(f.kind==="object"&&Object.keys(f.entries).length===0&&f.value===void 0&&h.parent&&h.key){const b=FE(f.line);if(h.parent.kind==="object")h.parent.entries[h.key]=b;else if(h.parent.kind==="array"){const _=h.parent.items.indexOf(f);_>=0&&(h.parent.items[_]=b)}h.node=b,f=b}else{t.push({path:"",line:a,code:"bad_list",message:"List item is not under an array container.",raw:d});return}const m=d.slice(1).trim(),v=mc(a,m||void 0);f.items.push(v),r.push({indent:l,node:v,parent:f});return}if(h.key==="relations"&&!d.startsWith("-")&&Gae(d)){if(f.kind!=="array")if(f.kind==="object"&&Object.keys(f.entries).length===0&&f.value===void 0&&h.parent&&h.key){const v=FE(f.line);if(h.parent.kind==="object")h.parent.entries[h.key]=v;else if(h.parent.kind==="array"){const b=h.parent.items.indexOf(f);b>=0&&(h.parent.items[b]=v)}h.node=v,f=v}else{t.push({path:"",line:a,code:"bad_list",message:"List item is not under an array container.",raw:d});return}const m=mc(a,d);f.items.push(m),r.push({indent:l,node:m,parent:f});return}const p=jE(d);if(!p){t.push({path:"",line:a,code:"bad_syntax",message:"Invalid syntax line.",raw:d});return}if(f.kind!=="object"){t.push({path:"",line:a,code:"bad_syntax",message:"Key-value pair is not under an object container.",raw:d});return}const g=mc(a,p.value);f.entries[p.key]=g,r.push({indent:l,node:g,parent:f,key:p.key})}),{ast:n,errors:t}}function BE(e){return jE(e)}function yc(e,t){return{kind:"value",line:t,value:e}}const Xae=/^(#[0-9a-f]{8}|#[0-9a-f]{6}|#[0-9a-f]{4}|#[0-9a-f]{3})/i,Uae=/^((?:rgb|rgba|hsl|hsla)\([^)]*\))/i;function ni(e){const t=e.trim();return t==="true"?!0:t==="false"?!1:/^-?\d+(\.\d+)?$/.test(t)?parseFloat(t):t}function ri(e){if(e.kind==="value"||e.kind==="object")return e.value}function Ht(e,t,n,r,i,o){e.push({path:n,line:t.line,code:r,message:i,raw:o})}function WE(e,t="any"){let n=e.trim();if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1).trim()),!n)return[];let r;t==="comma"?r=n.split(","):t==="space"?r=n.split(/\s+/):r=n.split(/[,\s]+/);const i=[];for(const o of r){const s=o.trim();if(s){if(s==="#"||s==="//")break;i.push(s)}}return i}function Kae(e){let t=e.trim();const n=t.search(/\s+#(?![0-9a-f])/i);n>=0&&(t=t.slice(0,n).trimEnd());const r=t.indexOf("//");return r>=0&&(t=t.slice(0,r).trimEnd()),t}function ly(e){const t=Kae(e);if(!t)return;const n=t.match(Xae);if(n&&n[0].length===t.length)return t;const r=t.match(Uae);if(r&&r[1].length===t.length||be(t).isValid())return t}function VE(e,t,n,r={}){const i=ri(e);if(i===void 0){Ht(n,e,t,"schema_mismatch","Expected color value.");return}const o=ly(i);if(!o){r.soft||Ht(n,e,t,"invalid_value","Invalid color value.",i);return}return o}function Zae(e,t){return t.length>1||e.startsWith("[")&&e.endsWith("]")?!0:ly(e)!==void 0}function cy(e){if(e.kind==="array")return e.items.map(r=>cy(r));if(e.kind==="value"||!(Object.keys(e.entries).length>0)&&e.value!==void 0)return ni(e.value);const n={};return e.value!==void 0&&(n.value=ni(e.value)),Object.entries(e.entries).forEach(([r,i])=>{n[r]=cy(i)}),n}function Qae(e,t,n,r){let i,o=null;for(const s of t.variants){const a=[],l=sn(e,s,n,a);(o===null||a.length<o.length)&&(o=a,i=l)}return o&&r.push(...o),i}function sn(e,t,n,r){switch(t.kind){case"union":return Qae(e,t,n,r);case"string":{const i=ri(e);if(i===void 0){Ht(r,e,n,"schema_mismatch","Expected string value.");return}return i}case"number":{const i=ri(e);if(i===void 0){Ht(r,e,n,"schema_mismatch","Expected number value.");return}const s=i.trim().match(/^(-?\d+(\.\d+)?)(?:\s*(#|\/\/).*)?$/);if(!s){Ht(r,e,n,"invalid_value","Invalid number value.",i);return}return parseFloat(s[1])}case"boolean":{const i=ri(e);if(i===void 0){Ht(r,e,n,"schema_mismatch","Expected boolean value.");return}if(i!=="true"&&i!=="false"){Ht(r,e,n,"invalid_value","Invalid boolean value.",i);return}return i==="true"}case"enum":{const i=ri(e);if(i===void 0){Ht(r,e,n,"schema_mismatch","Expected enum value.");return}if(!t.values.includes(i)){Ht(r,e,n,"invalid_value","Invalid enum value.",i);return}return i}case"array":{if(e.kind==="array")return e.items.map((a,l)=>sn(a,t.item,`${n}[${l}]`,r)).filter(a=>a!==void 0);if(e.kind==="object"&&Object.keys(e.entries).length>0){Ht(r,e,n,"schema_mismatch","Expected array value.");return}const i=ri(e);if(i===void 0){Ht(r,e,n,"schema_mismatch","Expected array value.");return}const o=i.trim();return o.startsWith("[")&&!o.endsWith("]")?void 0:WE(i,t.split).map((a,l)=>sn(yc(a,e.line),t.item,`${n}[${l}]`,r)).filter(a=>a!==void 0)}case"palette":{if(e.kind==="array"){const l=sn(e,{kind:"array",item:{kind:"color"},split:"any"},n,r);return Array.isArray(l)&&l.length>0?l:void 0}if(e.kind==="object"&&Object.keys(e.entries).length>0){Ht(r,e,n,"schema_mismatch","Expected palette value.");return}const i=ri(e);if(i===void 0){Ht(r,e,n,"schema_mismatch","Expected palette value.");return}const o=i.trim();if(o.startsWith("[")&&!o.endsWith("]"))return;const s=ly(o);if(s)return[s];const a=WE(i,"any");if(Zae(o,a)){const l=a.map((c,u)=>VE(yc(c,e.line),`${n}[${u}]`,r)).filter(c=>c!==void 0);return l.length>0?l:void 0}return i}case"color":return VE(e,n,r,{soft:t.soft});case"object":{if(e.kind==="array"){Ht(r,e,n,"schema_mismatch","Expected object value.");return}const i={};if(e.kind==="value"){if(t.shorthandKey)return i[t.shorthandKey]=e.value,i;const o=BE(e.value);if((o==null?void 0:o.value)!==void 0){if(t.fields[o.key]){const s=sn(yc(o.value,e.line),t.fields[o.key],`${n}.${o.key}`,r);return s!==void 0&&(i[o.key]=s),i}return t.allowUnknown?(i[o.key]=ni(o.value),i):(Ht(r,e,`${n}.${o.key}`,"unknown_key","Unknown key in object.",o.key),i)}if(t.allowUnknown)return i.value=ni(e.value),i;Ht(r,e,n,"invalid_value","Expected object value.");return}if(e.value!==void 0)if(t.shorthandKey&&i[t.shorthandKey]===void 0)i[t.shorthandKey]=e.value;else{const o=BE(e.value);if((o==null?void 0:o.value)!==void 0)if(t.fields[o.key]){const s=sn(yc(o.value,e.line),t.fields[o.key],`${n}.${o.key}`,r);s!==void 0&&i[o.key]===void 0&&(i[o.key]=s)}else t.allowUnknown?i[o.key]=ni(o.value):Ht(r,e,`${n}.${o.key}`,"unknown_key","Unknown key in object.",o.key);else t.allowUnknown&&(i.value=ni(e.value))}return Object.entries(e.entries).forEach(([o,s])=>{const a=t.fields[o];if(!a){if(t.allowUnknown){i[o]=cy(s);return}Ht(r,s,`${n}.${o}`,"unknown_key","Unknown key in object.",o);return}const l=sn(s,a,`${n}.${o}`,r);l!==void 0&&(i[o]=l)}),i}default:return}}const Lt=()=>({kind:"string"}),_r=()=>({kind:"number"}),cs=e=>({kind:"enum",values:e}),Vi=(e={})=>({kind:"color",soft:e.soft}),tr=(e,t="any")=>({kind:"array",item:e,split:t}),Bt=(e,t={})=>({kind:"object",fields:e,allowUnknown:t.allowUnknown,shorthandKey:t.shorthandKey}),us=(...e)=>({kind:"union",variants:e}),Jae=()=>({kind:"palette"}),hs=()=>Bt({},{allowUnknown:!0}),GE={fill:Vi({soft:!0}),stroke:Vi({soft:!0})},Gi=Bt(GE,{allowUnknown:!0}),uy=Bt(GE,{allowUnknown:!0}),nr=Bt({},{allowUnknown:!0});nr.fields={id:Lt(),label:Lt(),value:us(_r(),Lt()),desc:Lt(),icon:us(Lt(),hs()),illus:us(Lt(),hs()),attributes:hs(),group:Lt(),category:Lt(),children:tr(nr)};const YE=Bt({id:Lt(),from:Lt(),to:Lt(),label:Lt(),direction:cs(["forward","both","none"]),showArrow:cs(["true","false"]),arrowType:cs(["arrow","triangle","diamond"])},{allowUnknown:!0}),XE=Bt({type:Lt(),colorBg:Vi(),colorPrimary:Vi(),palette:Jae(),title:Gi,desc:Gi,shape:uy,base:Bt({global:Bt({},{allowUnknown:!0}),shape:uy,text:Gi}),item:Bt({icon:Bt({},{allowUnknown:!0}),label:Gi,desc:Gi,value:Gi,shape:uy}),stylize:Bt({type:cs(["rough","pattern"]),roughness:_r(),bowing:_r(),fillWeight:_r(),hachureGap:_r(),pattern:Lt(),backgroundColor:Vi(),foregroundColor:Vi(),scale:_r()},{shorthandKey:"type"}),elements:Bt({},{allowUnknown:!0})},{shorthandKey:"type"}),vc=Bt({},{allowUnknown:!0,shorthandKey:"type"}),UE=Bt({structure:vc,item:vc,items:tr(vc),title:vc}),KE=Bt({title:Lt(),desc:Lt(),items:tr(nr),lists:tr(nr),sequences:tr(nr),root:nr,compares:tr(nr),nodes:tr(nr),relations:tr(YE),values:tr(nr),order:cs(["asc","desc"]),illus:hs(),attributes:hs()}),ZE=Bt({type:Lt()},{shorthandKey:"type"}),QE=Bt({template:ZE,design:UE,data:KE,theme:XE,width:us(_r(),Lt()),height:us(_r(),Lt())}),JE=/[<>=o.x-]{2,}/,bc=/[<>=o.x-]{2,}/g;function _c(e){let t=e.trim();if(!t)return"";const n=t[0],r=t[t.length-1];return(n==='"'&&r==='"'||n==="'"&&r==="'")&&(t=t.slice(1,-1)),t=t.replace(/\\(["'])/g,"$1").replace(/(&quot;|&#quot;|#quot;)/g,'"').replace(/(&apos;|&#39;|#apos;)/g,"'"),t.trim()}function ele(e){const t=e.trim().replace(/^[-=.ox]+/,"").trim();return _c(t)}function wc(e,t){let n=t;for(;n<e.length&&/\s/.test(e[n]);)n+=1;return n}function eM(e,t){let n=wc(e,t);if(n>=e.length)return null;const r=n;for(;n<e.length;){const s=e[n];if(/\s/.test(s)||s==="["||s==="("||s==="@"||s==="|"||s==="<"||s===">"||s==="-"&&(e[n+1]==="-"||e[n+1]===">"||e[n+1]==="<"))break;n+=1}if(n===r)return null;const i=e.slice(r,n).trim();if(!i)return null;if(e.startsWith("@{",n)){const s=e.indexOf("}",n+2);s!==-1&&(n=s+1)}n=wc(e,n);let o;if(e[n]==="["){const s=e.indexOf("]",n+1);s!==-1&&(o=_c(e.slice(n+1,s)),n=s+1)}else if(e[n]==="("){const s=e.indexOf(")",n+1);if(s!==-1){let a=e.slice(n+1,s).trim();a.startsWith("[")&&a.endsWith("]")&&(a=a.slice(1,-1).trim()),o=_c(a),n=s+1}}return{node:{id:i,label:o},nextIndex:n}}function tle(e,t){bc.lastIndex=t;const n=bc.exec(e);if(!n)return null;const r=n[0],i=n.index,o=i+r.length;let a=ele(e.slice(t,i))||void 0,l=r,c=o;if(c=wc(e,c),e[c]==="|"){const v=e.indexOf("|",c+1);if(v!==-1){a=_c(e.slice(c+1,v))||a,c=v+1;const _=wc(e,c);bc.lastIndex=_;const x=bc.exec(e);x&&x.index===_?(l+=x[0],c=x.index+x[0].length):c=_}}const u=l.includes("<"),h=l.includes(">"),f=l.match(/[xo]/gi)||[],d=/^[xo]/i.test(l),p=/[xo]$/i.test(l);let g="none",m=!1;return u&&h||u&&p||h&&d||d&&p?g="both":(u||h||f.length>0)&&(g="forward",m=u&&!h),{label:a,direction:g,reverse:m,nextIndex:c}}function nle(e){const t=[],n=[],r=new Map;let i=0;const o=eM(e,i);if(!o)return{relations:t,nodes:n};let s=o.node;for(r.has(s.id)||(r.set(s.id,s),n.push(s)),i=o.nextIndex;i<e.length;){const a=tle(e,i);if(!a)break;i=a.nextIndex;const l=eM(e,i);if(!l)break;i=l.nextIndex;let c=s.id,u=l.node.id;const h=a.direction;a.reverse&&(c=l.node.id,u=s.id);const f={from:c,to:u};a.label&&(f.label=a.label),h==="both"&&(f.direction="both"),h==="none"&&(f.direction="none"),t.push(f),r.has(s.id)||(r.set(s.id,s),n.push(s)),r.has(l.node.id)||(r.set(l.node.id,l.node),n.push(l.node)),s=l.node}return{relations:t,nodes:n}}function rle(e,t,n,r){if(!n)return;const i=e.get(n);if(i){!i.label&&r&&(i.label=r);return}const o={id:n,label:r||n};e.set(n,o),t.push(o)}function ile(e,t,n){const r=sn(e,YE,t,n);return!r||typeof r!="object"||typeof r.from!="string"||typeof r.to!="string"?null:r}function ole(e,t,n){const r=[],i=[],o=new Map,s=a=>{if(!JE.test(a))return;const l=nle(a);l.nodes.forEach(c=>{rle(o,i,c.id,c.label)}),r.push(...l.relations)};return e.kind==="array"?e.items.forEach((a,l)=>{if(a.kind==="object"&&a.value&&Object.keys(a.entries).length===0&&JE.test(a.value)){s(a.value);return}const c=ile(a,`${n}[${l}]`,t);c&&r.push(c)}):e.kind==="object"&&e.value&&s(e.value),{relations:r,items:i}}var sle=Object.defineProperty,ale=Object.defineProperties,lle=Object.getOwnPropertyDescriptors,xc=Object.getOwnPropertySymbols,tM=Object.prototype.hasOwnProperty,nM=Object.prototype.propertyIsEnumerable,rM=(e,t,n)=>t in e?sle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iM=(e,t)=>{for(var n in t||(t={}))tM.call(t,n)&&rM(e,n,t[n]);if(xc)for(var n of xc(t))nM.call(t,n)&&rM(e,n,t[n]);return e},cle=(e,t)=>ale(e,lle(t)),oM=(e,t)=>{var n={};for(var r in e)tM.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&xc)for(var r of xc(e))t.indexOf(r)<0&&nM.call(e,r)&&(n[r]=e[r]);return n};function ule(e){var t;const n=new Set,r=[];for(let i=e.length-1;i>=0;i-=1){const o=e[i],s=(t=o.id)!=null?t:o.label;if(!s){r.push(o);continue}n.has(s)||(n.add(s),o.id||(o.id=s),r.push(o))}return r.reverse()}function hle(e,t){if(!e)return;const n=sn(e,ZE,"template",t);if(n){if(typeof n=="string")return n;if(typeof n=="object"&&typeof n.type=="string")return n.type}}function sM(e){var t;const{ast:n,errors:r}=Yae(e),i=[],o={},s=iM({},n.entries),a=n.entries.infographic;let l;a&&a.kind==="object"&&(a.value&&(l=a.value),Object.entries(a.entries).forEach(([v,b])=>{v in s||(s[v]=b)}));const c=new Set(["infographic","template","design","data","theme","width","height"]);Object.keys(s).forEach(v=>{c.has(v)||r.push({path:v,line:s[v].line,code:"unknown_key",message:"Unknown top-level key.",raw:v})});const u=s.template,h=hle(u,r);h&&(o.template=h),!o.template&&l&&(o.template=l);const f=s.design;if(f){const v=sn(f,UE,"design",r);v&&(o.design=v)}const d=s.data;if(d){let v,b=d;if(d.kind==="object"){const x=d.entries,{relations:w}=x,C=oM(x,["relations"]);v=w,b=cle(iM({},d),{entries:C})}const _=sn(b,KE,"data",r);if(_&&(o.data=_),v){const x=ole(v,r,"data.relations");if(x.relations.length>0||x.items.length>0){const w=(t=o.data)!=null?t:{},C=Array.isArray(w.items)?w.items:[],P=ule(C),O=new Map;P.forEach($=>{$.id&&O.set($.id,$)}),x.items.forEach($=>{const S=O.get($.id);S?!S.label&&$.label&&(S.label=$.label):(P.push($),O.set($.id,$))}),w.items=P,w.relations=x.relations,o.data=w}}}const p=s.theme;if(p){const v=sn(p,XE,"theme",r);if(v&&typeof v=="object"){const b=v,{type:_}=b,x=oM(b,["type"]);typeof _=="string"&&_&&(o.theme=_),Object.keys(x).length>0&&(o.themeConfig=x)}}const g=s.width;if(g){const v=sn(g,QE.fields.width,"width",r);v!==void 0&&(o.width=v)}const m=s.height;if(m){const v=sn(m,QE.fields.height,"height",r);v!==void 0&&(o.height=v)}return{options:o,errors:r,warnings:i,ast:n}}const fle=()=>[new q$,new B$],dle=()=>[new r$,new FS,new BS,new i$,new s$,new d$,new c$],ple={padding:20,theme:"light",themeConfig:{palette:"antv"},get plugins(){return fle()},get interactions(){return dle()}};var gle=Object.defineProperty,aM=Object.getOwnPropertySymbols,mle=Object.prototype.hasOwnProperty,yle=Object.prototype.propertyIsEnumerable,lM=(e,t,n)=>t in e?gle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rr=(e,t)=>{for(var n in t||(t={}))mle.call(t,n)&&lM(e,n,t[n]);if(aM)for(var n of aM(t))yle.call(t,n)&&lM(e,n,t[n]);return e};function hy(e,t){const n=rr(rr({},e),t);return(e.design||t.design)&&(n.design=rr(rr({},e.design),t.design)),(e.themeConfig||t.themeConfig)&&(n.themeConfig=rr(rr({},e.themeConfig),t.themeConfig)),(e.svg||t.svg)&&(n.svg=rr(rr({},e.svg),t.svg)),n}function fy(e){const t=rr({},e);return t.data&&(t.data=fb(t.data)),t.elements&&(t.elements=fb(t.elements)),t}function cM(e){const{design:t,data:n}=e;return!(!t||!mb(t)||!n||!Array.isArray(n.items)||n.items.length<1)}var vle=Object.defineProperty,uM=Object.getOwnPropertySymbols,ble=Object.prototype.hasOwnProperty,_le=Object.prototype.propertyIsEnumerable,hM=(e,t,n)=>t in e?vle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wle=(e,t)=>{for(var n in t||(t={}))ble.call(t,n)&&hM(e,n,t[n]);if(uM)for(var n of uM(t))_le.call(t,n)&&hM(e,n,t[n]);return e},xle=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class Cle{constructor(t){this.rendered=!1,this.emitter=new Oae,this.node=null,this.initialOptions={},this.setOptions(t,"replace",!0)}getOptions(){return this.options}setOptions(t,n="replace",r=!1){const{options:i,errors:o,warnings:s}=Ple(t);r&&(this.initialOptions=i);const a=hy(n==="replace"?fy(this.initialOptions||{}):this.options||fy(this.initialOptions||{}),i);this.options=a,this.parsedOptions=zae(hy(ple,this.options)),s.length&&this.emitter.emit("warning",s),o.length&&this.emitter.emit("error",o)}render(t){t?this.setOptions(t,"replace"):!this.options&&this.initialOptions&&this.setOptions(this.initialOptions,"replace"),this.performRender()}update(t){this.setOptions(t,"merge"),this.performRender()}performRender(){var t;const n=this.parsedOptions;if(!cM(n)){this.emitter.emit("error",new Error("Incomplete options"));return}const{container:r}=this.parsedOptions,i=this.compose(n),o=new Wq(n,i);this.node=o.render(),r==null||r.replaceChildren(this.node),(t=this.editor)==null||t.destroy(),this.editor=void 0,this.options.editable&&(this.editor=new Rae(this.emitter,this.node,n)),this.rendered=!0,this.emitter.emit("rendered",{node:this.node,options:this.options});const s=this.node;return s&&Tz(s).then(()=>{this.node===s&&this.emitter.emit("loaded",{node:s,options:this.options})}),!0}compose(t){const{design:n,data:r}=t,{title:i,item:o,items:s,structure:a}=n,{component:l,props:c}=a,u=i.component,h=o.component,f=s.map(g=>g.component),d=aw(y(l,wle({data:r,Title:u,Item:h,Items:f,options:t},c))),p=bi(d);if(!p)throw new Error("Failed to parse SVG template");return p}getTypes(){const t=this.parsedOptions;if(!cM(t)){this.emitter.emit("error",new Error("Incomplete options"));return}const n=t.design,r=n.structure.composites||[],i=n.items.map(o=>o.composites||[]);return AH({structure:r,items:i})}toDataURL(t){return xle(this,null,function*(){if(!this.node)throw new Error("Infographic is not rendered yet.");return(t==null?void 0:t.type)==="svg"?yield Qse(this.node,t):yield xae(this.node,t)})}on(t,n){this.emitter.on(t,n)}off(t,n){this.emitter.off(t,n)}destroy(){var t,n;(t=this.editor)==null||t.destroy(),(n=this.node)==null||n.remove(),this.node=null,this.rendered=!1,this.emitter.emit("destroyed"),this.emitter.removeAllListeners()}}function Ple(e){if(typeof e=="string"){const{options:t,errors:n,warnings:r}=sM(e);return{options:t,errors:n,warnings:r}}return{options:fy(e),errors:[],warnings:[]}}const Ole="0.2.13";W.AlignLayout=Pi,W.BadgeCard=l3,W.BrushSelect=FS,W.BtnAdd=ne,W.BtnRemove=nt,W.BtnsGroup=je,W.CandyCardLite=h3,W.CapsuleItem=b3,W.ChartBar=U4,W.ChartColumn=K4,W.ChartLine=e5,W.ChartPie=s5,W.ChartWordCloud=f5,W.CircleNode=x3,W.CircularProgress=O3,W.ClickSelect=BS,W.CompactCard=M3,W.CompareBinaryHorizontal=x5,W.CompareHierarchyLeftRight=S5,W.CompareHierarchyRow=$5,W.DblClickEditText=r$,W.Defs=Ke,W.DoneList=T3,W.DragElement=i$,W.EditBar=q$,W.Ellipse=Ze,W.FlexLayout=ve,W.Fragment=Co,W.Gap=yt,W.Group=Y,W.HierarchyMindmap=D5,W.HierarchyStructure=H5,W.HierarchyTree=W5,W.HorizontalIconArrow=L3,W.HorizontalIconLine=H3,W.HotkeyHistory=s$,W.IconBadge=B3,W.Illus=vw,W.IndexedCard=G3,W.Infographic=Cle,W.Interaction=yr,W.ItemDesc=ft,W.ItemIcon=Ft,W.ItemIconCircle=Dr,W.ItemLabel=Ve,W.ItemValue=Mo,W.ItemsGroup=qe,W.LCornerCard=U3,W.LabelText=ax,W.LetterCard=Q3,W.LinedText=tx,W.ListColumn=V5,W.ListGrid=G5,W.ListPyramid=Y5,W.ListRow=X5,W.ListSector=Z5,W.ListWaterfall=Q5,W.ListZigzagDown=r6,W.ListZigzagUp=i6,W.Path=Pe,W.PillBadge=ix,W.Plugin=mm,W.Polygon=Yt,W.ProgressCard=p4,W.Quadrant=E5,W.QuarterCircular=y4,W.QuarterSimpleCard=_4,W.Rect=Le,W.RelationCircle=o6,W.RelationDagreFlow=YO,W.RelationNetwork=XO,W.ResizeElement=B$,W.RibbonCard=C4,W.RoundedRectNode=S4,W.SelectHighlight=c$,W.SequenceAscendingStairs3d=iS,W.SequenceAscendingSteps=oS,W.SequenceCircleArrows=aS,W.SequenceCircular=lS,W.SequenceColorSnakeSteps=cS,W.SequenceFilterMesh=dS,W.SequenceFunnel=yS,W.SequenceHorizontalZigzag=vS,W.SequenceMountain=wS,W.SequencePyramid=xS,W.SequenceRoadmapVertical=PS,W.SequenceSnakeSteps=OS,W.SequenceStairsFront=SS,W.SequenceSteps=$S,W.SequenceTimeline=ES,W.SequenceZigzagPucks3d=IS,W.SequenceZigzagSteps=NS,W.ShapesGroup=Pt,W.SimpleCircleNode=M4,W.SimpleHorizontalArrow=T4,W.SimpleIllusItem=L4,W.SimpleItem=D4,W.SimpleVerticalArrow=j4,W.Text=De,W.Title=Kw,W.UnderlineText=W4,W.VERSION=Ole,W.VerticalIconArrow=Y4,W.ZoomWheel=d$,W.cloneElement=dr,W.createFragment=QH,W.createLayout=vh,W.distributeLabels=pf,W.exportToSVG=oy,W.getCombinedBounds=Ci,W.getElementBounds=ae,W.getElementsBounds=zr,W.getFont=Nu,W.getFonts=zu,W.getItem=o3,W.getItemProps=lt,W.getItems=OF,W.getPalette=Mb,W.getPaletteColor=Vs,W.getPalettes=Bz,W.getStructure=X4,W.getStructures=kZ,W.getTemplate=Xi,W.getTemplates=Oc,W.getTheme=Zw,W.getThemeColors=Et,W.getThemes=aF,W.jsx=ba,W.jsxDEV=ej,W.jsxs=JH,W.loadSVGResource=yi,W.parseSVG=bi,W.parseSyntax=sM,W.registerFont=Sb,W.registerItem=ct,W.registerPalette=Hu,W.registerPattern=c_,W.registerResourceLoader=aD,W.registerStructure=We,W.registerTemplate=Jt,W.registerTheme=xh,W.renderSVG=aw,W.sequenceCylinders3d=uS,W.setDefaultFont=zz,W.setFontExtendFactor=Kq,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"})}));
599
+ `);const o=e.querySelector("defs");o&&o.parentNode?o.parentNode.insertBefore(i,o.nextSibling):e.insertBefore(i,e.firstChild)}function Dae(e){return Gi(this,null,function*(){const t=yield Sa(e);if(!t.ok)throw new Error(`Failed to load font: ${e}`);const n=yield t.blob();return yield new Promise((i,o)=>{const s=new FileReader;s.onloadend=()=>{i(s.result)},s.onerror=o,s.readAsDataURL(n)})})}var my=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});function qae(e){return my(this,arguments,function*(t,n={}){const r=yield yy(t,n),i=new XMLSerializer().serializeToString(r);return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(i)})}function yy(e){return my(this,arguments,function*(t,n={}){const{embedResources:r=!0,removeIds:i=!1}=n,o=t.cloneNode(!0),{width:s,height:a}=er(t);return ct(o,{width:s,height:a}),i?(Fae(o),Qae(o)):yield Hae(o),yield Tae(o,r),rle(o),o})}function Hae(e){return my(this,null,function*(){const t=e.querySelectorAll("use"),n=jae(e);t.forEach(r=>{const i=r.getAttribute("href");if(!i)return;if(!e.querySelector(i)){const s=document.querySelector(i);s&&n.appendChild(s.cloneNode(!0))}})})}const VE="icon-defs";function jae(e){const t=Si(e,VE);if(t)return t;const n=Ie("defs");return Pi(n,VE),e.prepend(n),n}function Fae(e){const t=Array.from(e.querySelectorAll("use"));t.length&&t.forEach(n=>{const r=Bae(n);if(!r||!r.startsWith("#"))return;const i=Wae(e,r);if(!i||i===n)return;const o=Vae(n,i);o&&n.replaceWith(o)})}function Bae(e){var t;return(t=e.getAttribute("href"))!=null?t:e.getAttribute("xlink:href")}function Wae(e,t){const n=e.querySelector(t);return n||document.querySelector(t)}function Vae(e,t){const n=t.tagName.toLowerCase();return n==="symbol"?Gae(e,t):n==="svg"?Yae(e,t):Xae(e,t)}function Gae(e,t){const n=t.cloneNode(!0),r=Ie("svg");for(Cc(r,n,new Set(["id"])),Cc(r,e,new Set(["href","xlink:href"]));n.firstChild;)r.appendChild(n.firstChild);return r}function Yae(e,t){const n=t.cloneNode(!0);return n.removeAttribute("id"),Cc(n,e,new Set(["href","xlink:href"])),n}function Xae(e,t){const n=t.cloneNode(!0);n.removeAttribute("id");const r=Ie("g");Cc(r,e,new Set(["href","xlink:href","x","y","width","height","transform"]));const i=Uae(e);return i&&r.setAttribute("transform",i),r.appendChild(n),r}function Uae(e){var t;const n=e.getAttribute("x"),r=e.getAttribute("y"),i=n||r?`translate(${n!=null?n:0} ${r!=null?r:0})`:"",o=(t=e.getAttribute("transform"))!=null?t:"";return i&&o?`${i} ${o}`:i||o||null}function Cc(e,t,n=new Set){Array.from(t.attributes).forEach(r=>{if(!n.has(r.name)){if(r.name==="style"){Kae(e,r.value);return}if(r.name==="class"){Zae(e,r.value);return}e.setAttribute(r.name,r.value)}})}function Kae(e,t){const n=e.getAttribute("style");if(!n){e.setAttribute("style",t);return}const r=n.trim().endsWith(";")?"":";";e.setAttribute("style",`${n}${r}${t}`)}function Zae(e,t){const n=e.getAttribute("class");if(!n){e.setAttribute("class",t);return}e.setAttribute("class",`${n} ${t}`.trim())}const GE=/url\(\s*['"]?#([^'")\s]+)['"]?\s*\)/g;function Qae(e){const t=Jae(e);if(t.size===0){XE(e);return}const n=ele(e,t);n&&(Ci(e,r=>{if(r.tagName.toLowerCase()==="defs")return!1;Array.from(r.attributes).forEach(o=>{const s=o.value;if(!s.includes("url("))return;const a=s.replace(GE,(l,c)=>{const u=encodeURIComponent(c);return`url("${n}#${u}")`});a!==s&&r.setAttribute(o.name,a)})}),XE(e))}function Jae(e){const t=new Set;return Ci(e,n=>{if(n.tagName.toLowerCase()==="defs")return!1;YE(n,r=>t.add(r))}),t}function YE(e,t){for(const n of Array.from(e.attributes)){const r=n.value;if(r.includes("url("))for(const i of r.matchAll(GE))i[1]&&t(i[1]);(n.name==="href"||n.name==="xlink:href")&&r[0]==="#"&&t(r.slice(1))}}function ele(e,t){if(t.size===0)return null;const n=tle(e,t);if(n.size===0)return null;const r=Ie("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),i=Ie("defs");if(n.forEach(s=>{i.appendChild(s.cloneNode(!0))}),!i.children.length)return null;r.appendChild(i);const o=new XMLSerializer().serializeToString(r);return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o)}function tle(e,t){const n=new Map,r=Array.from(t),i=new Set(r),o=new Set,s=a=>{o.has(a)||i.has(a)||(r.push(a),i.add(a))};for(;r.length;){const a=r.shift();if(o.has(a))continue;o.add(a);const l=`#${nle(a)}`,c=e.querySelector(l);c&&(n.set(a,c),Ci(c,u=>{YE(u,s)}))}return n}function nle(e){return globalThis.CSS&&typeof globalThis.CSS.escape=="function"?globalThis.CSS.escape(e):e.replace(/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g,"\\$1")}function XE(e){Array.from(e.querySelectorAll("defs")).forEach(n=>n.remove())}function rle(e){ile(e),ole(e),sle(e),ale(e)}function ile(e){const t=Si(e,Ge.BtnsGroup);t==null||t.remove();const n=Si(e,"btn-icon-defs");n==null||n.remove()}function ole(e){const t=e.querySelector("[data-element-type=transient-container]");t==null||t.remove()}function sle(e){e.querySelectorAll("g").forEach(n=>{n.removeAttribute("x"),n.removeAttribute("y"),n.removeAttribute("width"),n.removeAttribute("height")})}function ale(e){Ci(e,t=>{for(const n in t.dataset)delete t.dataset[n]})}var lle=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});function cle(e){return lle(this,arguments,function*(t,n={}){var r;const{dpr:i=(r=globalThis.devicePixelRatio)!=null?r:2}=n,o=yield yy(t),{width:s,height:a}=er(o);return new Promise((l,c)=>{try{const u=document.createElement("canvas");u.width=s*i,u.height=a*i;const h=u.getContext("2d");if(!h){c(new Error("Failed to get canvas context"));return}h.scale(i,i),h.imageSmoothingEnabled=!0,h.imageSmoothingQuality="high",o.setAttribute("width",String(s)),o.setAttribute("height",String(a));const f=new XMLSerializer().serializeToString(o),d="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(f),p=new Image;p.onload=function(){h.clearRect(0,0,s,a),h.drawImage(p,0,0,s,a);const g=u.toDataURL("image/png");l(g)},p.onerror=function(g){c(new Error("Image load failed: "+g))},p.src=d}catch(u){c(u)}})})}var vy={exports:{}},UE;function ule(){return UE||(UE=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function o(l,c,u,h,f){if(typeof u!="function")throw new TypeError("The listener must be a function");var d=new i(u,h||l,f),p=n?n+c:c;return l._events[p]?l._events[p].fn?l._events[p]=[l._events[p],d]:l._events[p].push(d):(l._events[p]=d,l._eventsCount++),l}function s(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var c=[],u,h;if(this._eventsCount===0)return c;for(h in u=this._events)t.call(u,h)&&c.push(n?h.slice(1):h);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},a.prototype.listeners=function(c){var u=n?n+c:c,h=this._events[u];if(!h)return[];if(h.fn)return[h.fn];for(var f=0,d=h.length,p=new Array(d);f<d;f++)p[f]=h[f].fn;return p},a.prototype.listenerCount=function(c){var u=n?n+c:c,h=this._events[u];return h?h.fn?1:h.length:0},a.prototype.emit=function(c,u,h,f,d,p){var g=n?n+c:c;if(!this._events[g])return!1;var m=this._events[g],v=arguments.length,b,w;if(m.fn){switch(m.once&&this.removeListener(c,m.fn,void 0,!0),v){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,u),!0;case 3:return m.fn.call(m.context,u,h),!0;case 4:return m.fn.call(m.context,u,h,f),!0;case 5:return m.fn.call(m.context,u,h,f,d),!0;case 6:return m.fn.call(m.context,u,h,f,d,p),!0}for(w=1,b=new Array(v-1);w<v;w++)b[w-1]=arguments[w];m.fn.apply(m.context,b)}else{var x=m.length,_;for(w=0;w<x;w++)switch(m[w].once&&this.removeListener(c,m[w].fn,void 0,!0),v){case 1:m[w].fn.call(m[w].context);break;case 2:m[w].fn.call(m[w].context,u);break;case 3:m[w].fn.call(m[w].context,u,h);break;case 4:m[w].fn.call(m[w].context,u,h,f);break;default:if(!b)for(_=1,b=new Array(v-1);_<v;_++)b[_-1]=arguments[_];m[w].fn.apply(m[w].context,b)}}return!0},a.prototype.on=function(c,u,h){return o(this,c,u,h,!1)},a.prototype.once=function(c,u,h){return o(this,c,u,h,!0)},a.prototype.removeListener=function(c,u,h,f){var d=n?n+c:c;if(!this._events[d])return this;if(!u)return s(this,d),this;var p=this._events[d];if(p.fn)p.fn===u&&(!f||p.once)&&(!h||p.context===h)&&s(this,d);else{for(var g=0,m=[],v=p.length;g<v;g++)(p[g].fn!==u||f&&!p[g].once||h&&p[g].context!==h)&&m.push(p[g]);m.length?this._events[d]=m.length===1?m[0]:m:s(this,d)}return this},a.prototype.removeAllListeners=function(c){var u;return c?(u=n?n+c:c,this._events[u]&&s(this,u)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a})(vy)),vy.exports}var hle=ule();const fle=lE(hle);var Pc=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class dle{constructor(){this.undoStack=[],this.redoStack=[]}init(t){Object.assign(this,t)}execute(t){return Pc(this,null,function*(){yield t.apply(this.state),this.undoStack.push(t),this.redoStack=[],this.emitHistoryChange("execute")})}executeBatch(t){return Pc(this,null,function*(){if(t.length===0)return;const n=new QO(t);yield this.execute(n)})}undo(){return Pc(this,null,function*(){const t=this.undoStack.pop();t&&(yield t.undo(this.state),this.redoStack.push(t),this.emitHistoryChange("undo"))})}redo(){return Pc(this,null,function*(){const t=this.redoStack.pop();t&&(yield t.apply(this.state),this.undoStack.push(t),this.emitHistoryChange("redo"))})}serialize(){return this.undoStack.map(t=>t.serialize())}clear(){this.undoStack=[],this.redoStack=[]}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}getHistorySize(){return this.undoStack.length}destroy(){this.clear()}emitHistoryChange(t){var n;(n=this.emitter)==null||n.emit("history:change",{type:"history:change",action:t})}}var KE=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class ple{constructor(){this.extensions=new u$,this.interactions=[],this.active=!1,this.running=null,this.concurrentInteractions=new Set,this.selection=new Set,this.handleClick=t=>{const n=this.editor.getDocument(),r=t.target;if(!r){this.deactivate();return}n.contains(r)||pj(r)?this.activate():this.deactivate()}}init(t){Object.assign(this,t),document.addEventListener("click",this.handleClick),this.interactions.forEach(n=>{this.extensions.register(n.name,n),n.init({emitter:this.emitter,editor:this.editor,commander:this.commander,state:this.state,interaction:this}),this.emitter.emit("interaction:registered",n)})}isActive(){return this.active}select(t,n){const r=this.getSelection(),i=[],o=[];if(n==="replace"){const l=new Set(t);r.forEach(c=>{l.has(c)||o.push(c)}),t.forEach(c=>{this.selection.has(c)||i.push(c)}),this.selection=l}else n==="add"?t.forEach(l=>{this.selection.has(l)||(this.selection.add(l),i.push(l))}):n==="remove"?t.forEach(l=>{this.selection.delete(l)&&o.push(l)}):n==="toggle"&&t.forEach(l=>{this.selection.has(l)?(this.selection.delete(l),o.push(l)):(this.selection.add(l),i.push(l))});const s=this.getSelection(),a={type:"selection:change",previous:r,next:s,added:i,removed:o,mode:n};this.emitter.emit("selection:change",a)}getSelection(){return[...this.selection]}isSelected(t){return this.selection.has(t)}clearSelection(){const t=this.getSelection();this.selection.clear();const n={type:"selection:change",previous:t,next:[],added:[],removed:t,mode:"replace"};this.emitter.emit("selection:change",n)}activate(){this.active=!0,this.emitter.emit("activated")}deactivate(){this.active=!1,this.running=null,this.clearSelection(),this.emitter.emit("deactivated")}executeExclusiveInteraction(t,n){return KE(this,null,function*(){if(!(!this.active||this.running)){this.running=t;try{this.emitter.emit("interaction:started",t),yield n(),this.emitter.emit("interaction:ended",t)}catch(r){console.error(`Error occurred during exclusive interaction "${t.name}":`,r),this.emitter.emit("interaction:error",t,r)}finally{this.running=null}}})}executeConcurrentInteraction(t,n){return KE(this,null,function*(){if(this.active){this.concurrentInteractions.add(t);try{this.emitter.emit("interaction:started",t),yield n(),this.emitter.emit("interaction:ended",t)}catch(r){console.error(`Error occurred during concurrent interaction "${t.name}":`,r),this.emitter.emit("interaction:error",t,r)}finally{this.concurrentInteractions.delete(t)}}})}getOrCreateTransientContainer(){const t="transient-container",n=this.editor.getDocument(),r=Si(n,t);if(r&&r.isConnected)return r;const i=Ie("g");return Pi(i,t),n.appendChild(i),i}appendTransientElement(t){return this.getOrCreateTransientContainer().appendChild(t),t}destroy(){this.extensions.forEach(t=>{t.destroy(),this.emitter.emit("interaction:destroyed",t)}),this.extensions.destroy(),this.active=!1,this.running=null,this.clearSelection(),document.removeEventListener("click",this.handleClick),this.getOrCreateTransientContainer().remove()}}class gle{constructor(){this.extensions=new u$}init(t,n=[]){Object.assign(this,t),n.forEach(r=>{this.registerPlugin(r)})}getPlugin(t){return this.extensions.get(t)}getPlugins(){return this.extensions.getAll()}registerPlugin(t){this.extensions.register(t.name,t);const n={emitter:this.emitter,editor:this.editor,commander:this.commander,plugin:this,state:this.state};t.init(n),this.emitter.emit("plugin:registered",t)}unregisterPlugin(t){const n=this.extensions.get(t);n&&(n.destroy(),this.extensions.unregister(t),this.emitter.emit("plugin:unregistered",n))}destroy(){this.extensions.getAll().forEach(t=>{this.unregisterPlugin(t.name),this.emitter.emit("plugin:destroyed",t)}),this.extensions.destroy()}}class mle{init(t){Object.assign(this,t)}addItemDatum(t,n){const r=t.slice(0,-1),i=t[t.length-1],o=Array.isArray(n)?n:[n];s$(this.options.data,r).splice(i,0,...o),this.emitter.emit("options:data:item:add",{indexes:t,datum:n}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"add",path:"data.items",indexes:t,value:o}]})}updateItemDatum(t,n){const r=mo(this.options.data,t);r==null||t.length===0||(Object.assign(r,n),this.emitter.emit("options:data:item:update",{indexes:t,datum:n}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:"data.items",indexes:t,value:n}]}))}removeItemDatum(t,n=1){const r=t.slice(0,-1),i=t[t.length-1],s=s$(this.options.data,r).splice(i,n);this.emitter.emit("options:data:item:remove",{indexes:t,datum:s}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"remove",path:"data.items",indexes:t,value:s}]})}updateData(t,n){this.options.data[t]=n,this.emitter.emit("options:data:update",{key:t,value:n}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:`data.${t}`,value:n}]})}updateElement(t,n){this.updateBuiltInElement(t,n)}updateOptions(t,n){const{bubbleUp:r=!1}=n||{};Joe(this.options,t,"",{bubbleUp:r,collector:(i,o,s)=>{this.editor.syncRegistry.trigger(i,o,s)}}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:"",value:t}]})}getOptions(){return this.options}updateBuiltInElement(t,n){var r,i;const{data:o}=this.options,{attributes:s={}}=n,a=wh(t),l=mr(t)||Ge.ItemLabel===a||Ge.ItemDesc===a||Ge.ItemValue===a||Ge.ItemIllus===a,c=l?a$(t):void 0;if(l){const u=mo(o,c);if(u==null)return;const h=a.replace("item-","");u.attributes||(u.attributes={}),(r=u.attributes)[h]||(r[h]={}),Object.assign(u.attributes[h],s)}else(Ge.Title===a||Ge.Desc===a||Ge.Illus===a)&&(o.attributes||(o.attributes={}),(i=o.attributes)[a]||(i[a]={}),Object.assign(o.attributes[a],s));this.emitter.emit("options:element:update",{element:t,props:n}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",role:a,indexes:c,path:l?`${Woe(c)}.attributes.${a.replace("item-","")}`:`data.attributes.${a}`,value:n}]})}destroy(){}}class yle{constructor(t){this.getOptions=t,this.handlers=new Map,this.isDispatching=!1,this.isDestroyed=!1}register(t,n,r){if(this.handlers.has(t)||this.handlers.set(t,new Set),this.handlers.get(t).add(n),r!=null&&r.immediate){const i=Ks(this.getOptions(),t);n(i,void 0)}return()=>{const i=this.handlers.get(t);i&&(i.delete(n),i.size===0&&this.handlers.delete(t))}}trigger(t,n,r){if(this.isDestroyed||this.isDispatching){this.isDispatching&&console.warn(`[SyncRegistry] Recursive update detected on ${t}. Skipped to prevent loop.`);return}const i=this.handlers.get(t);if(i){this.isDispatching=!0;try{i.forEach(o=>o(n,r))}finally{this.isDispatching=!1}}}destroy(){this.isDestroyed=!0,this.handlers.clear()}}class vle{constructor(t,n,r){if(this.emitter=t,this.document=n,this.options=r,!n.isConnected)throw new Error("The provided document is not connected to the DOM.");n.style.userSelect="none";const i=new dle,o=new mle,s=new gle,a=new ple,l=new yle(()=>o.getOptions());this.commander=i,this.state=o,this.plugin=s,this.interaction=a,this.syncRegistry=l,i.init({state:o,emitter:t}),o.init({emitter:t,editor:this,commander:i,options:r});const c=new mse,u=r.plugins||[];s.init({emitter:t,editor:this,commander:i,state:o},[c,...u]),a.init({emitter:t,editor:this,commander:i,state:o,interactions:r.interactions})}registerSync(t,n,r){return this.syncRegistry.register(t,n,r)}getDocument(){return this.document}destroy(){this.document.style.userSelect="",this.interaction.destroy(),this.plugin.destroy(),this.commander.destroy(),this.state.destroy(),this.syncRegistry.destroy()}}var ble=Object.defineProperty,wle=Object.defineProperties,_le=Object.getOwnPropertyDescriptors,Sc=Object.getOwnPropertySymbols,ZE=Object.prototype.hasOwnProperty,QE=Object.prototype.propertyIsEnumerable,JE=(e,t,n)=>t in e?ble(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,un=(e,t)=>{for(var n in t||(t={}))ZE.call(t,n)&&JE(e,n,t[n]);if(Sc)for(var n of Sc(t))QE.call(t,n)&&JE(e,n,t[n]);return e},Yi=(e,t)=>wle(e,_le(t)),Xi=(e,t)=>{var n={};for(var r in e)ZE.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Sc)for(var r of Sc(e))t.indexOf(r)<0&&QE.call(e,r)&&(n[r]=e[r]);return n};function xle(e){const t=e,{container:n="#container",padding:r=0,template:i,design:o,theme:s,themeConfig:a,data:l}=t,c=Xi(t,["container","padding","template","design","theme","themeConfig","data"]),u=typeof n=="string"?document.querySelector(n)||document.createElement("div"):n,h=i?Jt(i):void 0,f=Mb({},h==null?void 0:h.themeConfig,a),d=s||a||h!=null&&h.themeConfig?$le(s,f):void 0,p={container:u,padding:qr(r)};if(h){const m=h,{design:v}=m,b=Xi(m,["design"]);Object.assign(p,b)}Object.assign(p,c);const g=Cle(l,e.template);if(g&&(p.data=g),i&&(p.template=i),h!=null&&h.design||o){const m=Yi(un({},d?Yi(un({},e),{themeConfig:d}):e),{data:g||l}),v=Ple(un(un({},h==null?void 0:h.design),o),m);Ab(v)&&(p.design=v)}return s&&(p.theme=s),d&&(p.themeConfig=d),p}function Cle(e,t){if(!e)return;if(Array.isArray(e.items)&&e.items.length)return e;const{lists:n,sequences:r,compares:i,nodes:o,values:s,root:a}=e,l=()=>{if(!t)return null;const h={list:n,sequence:r,compare:i,relation:o,chart:s,hierarchy:a?[a]:[]},f=t.split("-")[0],d=h[f];return d!=null&&d.length?d:null},c=()=>{var h;return n!=null&&n.length?n:r!=null&&r.length?r:i!=null&&i.length?i:o!=null&&o.length?o:s!=null&&s.length?s:a?[a]:(h=e.items)!=null&&h.length?e.items:[]};let u=l()||c();return u===r&&e.order==="desc"&&(u=[...u].reverse()),Yi(un({},e),{items:u})}function by(e){if(typeof e=="string")return{type:e};if(!("type"in e))throw new Error("Type is required");return e}function Ple(e,t){const{structure:n,title:r,item:i,items:o}=e||{},s=eM(i||(o==null?void 0:o[0]),t);return{structure:Sle(n),title:Ole(r,t),item:s,items:o?o.map(a=>eM(a,t)):[s]}}function Sle(e){if(!e)return null;const t=by(e),{type:n}=t,r=Xi(t,["type"]),i=l5(n);if(!i)return null;const{component:o}=i;return Yi(un({},i),{component:s=>o(un(un({},s),r))})}function Ole(e,t){if(!e)return{component:null};const n=by(e),{type:r}=n,i=Xi(n,["type"]),{themeConfig:o}=t,s=(o==null?void 0:o.colorBg)||"#fff",a=tM(s,s);return{component:l=>u3(un(Yi(un({},l),{themeColors:a}),i))}}function eM(e,t){if(!e)return null;const n=by(e),{type:r}=n,i=Xi(n,["type"]),o=b3(r);if(!o)return null;const{component:s,options:a}=o;return Yi(un({},o),{component:l=>{var c;const{indexes:u}=l,{data:h,themeConfig:f}=t,d=(f==null?void 0:f.colorBg)||"#fff",p=l,{themeColors:g=tM(ta(f==null?void 0:f.palette,u,(c=h==null?void 0:h.items)==null?void 0:c.length)||(f==null?void 0:f.colorPrimary)||"#FF356A",d)}=p,m=Xi(p,["themeColors"]);return s(un(un({themeColors:g},m),i))},options:a})}function $le(e,t={}){var n;const r=e?h3(e)||{}:{},i=Mb({},r,t);return i.palette=t.palette||r.palette,i.stylize=(n=t.stylize)!=null?n:r.stylize,i.colorPrimary||(i.colorPrimary="#FF356A"),i.palette||(i.palette=[i.colorPrimary]),i}function tM(e,t="#fff"){return p3({colorPrimary:e,isDarkMode:ev(t),colorBg:t})}function Ele(e){return e===" "||e===" "}function Mle(e){let t=0,n=0;for(;n<e.length;){const r=e[n];if(r===" "){t+=1,n+=1;continue}if(r===" "){t+=2,n+=1;continue}break}return{indent:t,content:e.slice(n)}}function Ale(e){return e.trimEnd()}function Ile(e){return/[<>=o.x-]{2,}/.test(e)}function nM(e){const t=e.trim();if(!t)return null;const n=t.match(/^([^:\s=]+)\s*[:=]\s*(.*)$/);if(n)return{key:n[1],value:n[2].trim()};const r=t.match(/^([^\s]+)\s+(.*)$/);return r?{key:r[1],value:r[2].trim()}:{key:t,value:void 0}}function Oc(e,t){return{kind:"object",line:e,value:t,entries:{}}}function rM(e){return{kind:"array",line:e,items:[]}}function Tle(e){const t=[],n=Oc(0),r=[{indent:-1,node:n,parent:null,key:null}];return e.split(/\r?\n/).forEach((o,s)=>{const a=s+1;if(!o.trim())return;const{indent:l,content:c}=Mle(o),u=Ale(c);if(!u.trim())return;for(;r.length>1&&l<=r[r.length-1].indent;)r.pop();const h=r[r.length-1];let f=h.node;const d=u.trim();if(d.startsWith("-")&&(d.length===1||Ele(d[1]))){if(f.kind!=="array")if(f.kind==="object"&&Object.keys(f.entries).length===0&&f.value===void 0&&h.parent&&h.key){const b=rM(f.line);if(h.parent.kind==="object")h.parent.entries[h.key]=b;else if(h.parent.kind==="array"){const w=h.parent.items.indexOf(f);w>=0&&(h.parent.items[w]=b)}h.node=b,f=b}else{t.push({path:"",line:a,code:"bad_list",message:"List item is not under an array container.",raw:d});return}const m=d.slice(1).trim(),v=Oc(a,m||void 0);f.items.push(v),r.push({indent:l,node:v,parent:f});return}if(h.key==="relations"&&!d.startsWith("-")&&Ile(d)){if(f.kind!=="array")if(f.kind==="object"&&Object.keys(f.entries).length===0&&f.value===void 0&&h.parent&&h.key){const v=rM(f.line);if(h.parent.kind==="object")h.parent.entries[h.key]=v;else if(h.parent.kind==="array"){const b=h.parent.items.indexOf(f);b>=0&&(h.parent.items[b]=v)}h.node=v,f=v}else{t.push({path:"",line:a,code:"bad_list",message:"List item is not under an array container.",raw:d});return}const m=Oc(a,d);f.items.push(m),r.push({indent:l,node:m,parent:f});return}const p=nM(d);if(!p){t.push({path:"",line:a,code:"bad_syntax",message:"Invalid syntax line.",raw:d});return}if(f.kind!=="object"){t.push({path:"",line:a,code:"bad_syntax",message:"Key-value pair is not under an object container.",raw:d});return}const g=Oc(a,p.value);f.entries[p.key]=g,r.push({indent:l,node:g,parent:f,key:p.key})}),{ast:n,errors:t}}function iM(e){return nM(e)}function $c(e,t){return{kind:"value",line:t,value:e}}const Rle=/^(#[0-9a-f]{8}|#[0-9a-f]{6}|#[0-9a-f]{4}|#[0-9a-f]{3})/i,kle=/^((?:rgb|rgba|hsl|hsla)\([^)]*\))/i;function ii(e){const t=e.trim();return t==="true"?!0:t==="false"?!1:/^-?\d+(\.\d+)?$/.test(t)?parseFloat(t):t}function oi(e){if(e.kind==="value"||e.kind==="object")return e.value}function Ht(e,t,n,r,i,o){e.push({path:n,line:t.line,code:r,message:i,raw:o})}function oM(e,t="any"){let n=e.trim();if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1).trim()),!n)return[];let r;t==="comma"?r=n.split(","):t==="space"?r=n.split(/\s+/):r=n.split(/[,\s]+/);const i=[];for(const o of r){const s=o.trim();if(s){if(s==="#"||s==="//")break;i.push(s)}}return i}function Lle(e){let t=e.trim();const n=t.search(/\s+#(?![0-9a-f])/i);n>=0&&(t=t.slice(0,n).trimEnd());const r=t.indexOf("//");return r>=0&&(t=t.slice(0,r).trimEnd()),t}function wy(e){const t=Lle(e);if(!t)return;const n=t.match(Rle);if(n&&n[0].length===t.length)return t;const r=t.match(kle);if(r&&r[1].length===t.length||be(t).isValid())return t}function sM(e,t,n,r={}){const i=oi(e);if(i===void 0){Ht(n,e,t,"schema_mismatch","Expected color value.");return}const o=wy(i);if(!o){r.soft||Ht(n,e,t,"invalid_value","Invalid color value.",i);return}return o}function Nle(e,t){return t.length>1||e.startsWith("[")&&e.endsWith("]")?!0:wy(e)!==void 0}function _y(e){if(e.kind==="array")return e.items.map(r=>_y(r));if(e.kind==="value"||!(Object.keys(e.entries).length>0)&&e.value!==void 0)return ii(e.value);const n={};return e.value!==void 0&&(n.value=ii(e.value)),Object.entries(e.entries).forEach(([r,i])=>{n[r]=_y(i)}),n}function zle(e,t,n,r){let i,o=null;for(const s of t.variants){const a=[],l=sn(e,s,n,a);(o===null||a.length<o.length)&&(o=a,i=l)}return o&&r.push(...o),i}function sn(e,t,n,r){switch(t.kind){case"union":return zle(e,t,n,r);case"string":{const i=oi(e);if(i===void 0){Ht(r,e,n,"schema_mismatch","Expected string value.");return}return i}case"number":{const i=oi(e);if(i===void 0){Ht(r,e,n,"schema_mismatch","Expected number value.");return}const s=i.trim().match(/^(-?\d+(\.\d+)?)(?:\s*(#|\/\/).*)?$/);if(!s){Ht(r,e,n,"invalid_value","Invalid number value.",i);return}return parseFloat(s[1])}case"boolean":{const i=oi(e);if(i===void 0){Ht(r,e,n,"schema_mismatch","Expected boolean value.");return}if(i!=="true"&&i!=="false"){Ht(r,e,n,"invalid_value","Invalid boolean value.",i);return}return i==="true"}case"enum":{const i=oi(e);if(i===void 0){Ht(r,e,n,"schema_mismatch","Expected enum value.");return}if(!t.values.includes(i)){Ht(r,e,n,"invalid_value","Invalid enum value.",i);return}return i}case"array":{if(e.kind==="array")return e.items.map((a,l)=>sn(a,t.item,`${n}[${l}]`,r)).filter(a=>a!==void 0);if(e.kind==="object"&&Object.keys(e.entries).length>0){Ht(r,e,n,"schema_mismatch","Expected array value.");return}const i=oi(e);if(i===void 0){Ht(r,e,n,"schema_mismatch","Expected array value.");return}const o=i.trim();return o.startsWith("[")&&!o.endsWith("]")?void 0:oM(i,t.split).map((a,l)=>sn($c(a,e.line),t.item,`${n}[${l}]`,r)).filter(a=>a!==void 0)}case"palette":{if(e.kind==="array"){const l=sn(e,{kind:"array",item:{kind:"color"},split:"any"},n,r);return Array.isArray(l)&&l.length>0?l:void 0}if(e.kind==="object"&&Object.keys(e.entries).length>0){Ht(r,e,n,"schema_mismatch","Expected palette value.");return}const i=oi(e);if(i===void 0){Ht(r,e,n,"schema_mismatch","Expected palette value.");return}const o=i.trim();if(o.startsWith("[")&&!o.endsWith("]"))return;const s=wy(o);if(s)return[s];const a=oM(i,"any");if(Nle(o,a)){const l=a.map((c,u)=>sM($c(c,e.line),`${n}[${u}]`,r)).filter(c=>c!==void 0);return l.length>0?l:void 0}return i}case"color":return sM(e,n,r,{soft:t.soft});case"object":{if(e.kind==="array"){Ht(r,e,n,"schema_mismatch","Expected object value.");return}const i={};if(e.kind==="value"){if(t.shorthandKey)return i[t.shorthandKey]=e.value,i;const o=iM(e.value);if((o==null?void 0:o.value)!==void 0){if(t.fields[o.key]){const s=sn($c(o.value,e.line),t.fields[o.key],`${n}.${o.key}`,r);return s!==void 0&&(i[o.key]=s),i}return t.allowUnknown?(i[o.key]=ii(o.value),i):(Ht(r,e,`${n}.${o.key}`,"unknown_key","Unknown key in object.",o.key),i)}if(t.allowUnknown)return i.value=ii(e.value),i;Ht(r,e,n,"invalid_value","Expected object value.");return}if(e.value!==void 0)if(t.shorthandKey&&i[t.shorthandKey]===void 0)i[t.shorthandKey]=e.value;else{const o=iM(e.value);if((o==null?void 0:o.value)!==void 0)if(t.fields[o.key]){const s=sn($c(o.value,e.line),t.fields[o.key],`${n}.${o.key}`,r);s!==void 0&&i[o.key]===void 0&&(i[o.key]=s)}else t.allowUnknown?i[o.key]=ii(o.value):Ht(r,e,`${n}.${o.key}`,"unknown_key","Unknown key in object.",o.key);else t.allowUnknown&&(i.value=ii(e.value))}return Object.entries(e.entries).forEach(([o,s])=>{const a=t.fields[o];if(!a){if(t.allowUnknown){i[o]=_y(s);return}Ht(r,s,`${n}.${o}`,"unknown_key","Unknown key in object.",o);return}const l=sn(s,a,`${n}.${o}`,r);l!==void 0&&(i[o]=l)}),i}default:return}}const Nt=()=>({kind:"string"}),Cr=()=>({kind:"number"}),ps=e=>({kind:"enum",values:e}),Ui=(e={})=>({kind:"color",soft:e.soft}),cr=(e,t="any")=>({kind:"array",item:e,split:t}),Bt=(e,t={})=>({kind:"object",fields:e,allowUnknown:t.allowUnknown,shorthandKey:t.shorthandKey}),gs=(...e)=>({kind:"union",variants:e}),Dle=()=>({kind:"palette"}),ms=()=>Bt({},{allowUnknown:!0}),aM={fill:Ui({soft:!0}),stroke:Ui({soft:!0})},Ki=Bt(aM,{allowUnknown:!0}),xy=Bt(aM,{allowUnknown:!0}),ur=Bt({},{allowUnknown:!0});ur.fields={id:Nt(),label:Nt(),value:gs(Cr(),Nt()),desc:Nt(),icon:gs(Nt(),ms()),illus:gs(Nt(),ms()),attributes:ms(),group:Nt(),category:Nt(),children:cr(ur)};const lM=Bt({id:Nt(),from:Nt(),to:Nt(),label:Nt(),direction:ps(["forward","both","none"]),showArrow:ps(["true","false"]),arrowType:ps(["arrow","triangle","diamond"])},{allowUnknown:!0}),cM=Bt({type:Nt(),colorBg:Ui(),colorPrimary:Ui(),palette:Dle(),title:Ki,desc:Ki,shape:xy,base:Bt({global:Bt({},{allowUnknown:!0}),shape:xy,text:Ki}),item:Bt({icon:Bt({},{allowUnknown:!0}),label:Ki,desc:Ki,value:Ki,shape:xy}),stylize:Bt({type:ps(["rough","pattern"]),roughness:Cr(),bowing:Cr(),fillWeight:Cr(),hachureGap:Cr(),pattern:Nt(),backgroundColor:Ui(),foregroundColor:Ui(),scale:Cr()},{shorthandKey:"type"}),elements:Bt({},{allowUnknown:!0})},{shorthandKey:"type"}),Ec=Bt({},{allowUnknown:!0,shorthandKey:"type"}),uM=Bt({structure:Ec,item:Ec,items:cr(Ec),title:Ec}),hM=Bt({title:Nt(),desc:Nt(),items:cr(ur),lists:cr(ur),sequences:cr(ur),root:ur,compares:cr(ur),nodes:cr(ur),relations:cr(lM),values:cr(ur),order:ps(["asc","desc"]),illus:ms(),attributes:ms()}),fM=Bt({type:Nt()},{shorthandKey:"type"}),dM=Bt({template:fM,design:uM,data:hM,theme:cM,width:gs(Cr(),Nt()),height:gs(Cr(),Nt())}),pM=/[<>=o.x-]{2,}/,Mc=/[<>=o.x-]{2,}/g;function Ac(e){let t=e.trim();if(!t)return"";const n=t[0],r=t[t.length-1];return(n==='"'&&r==='"'||n==="'"&&r==="'")&&(t=t.slice(1,-1)),t=t.replace(/\\(["'])/g,"$1").replace(/(&quot;|&#quot;|#quot;)/g,'"').replace(/(&apos;|&#39;|#apos;)/g,"'"),t.trim()}function qle(e){const t=e.trim().replace(/^[-=.ox]+/,"").trim();return Ac(t)}function Ic(e,t){let n=t;for(;n<e.length&&/\s/.test(e[n]);)n+=1;return n}function gM(e,t){let n=Ic(e,t);if(n>=e.length)return null;const r=n;for(;n<e.length;){const s=e[n];if(/\s/.test(s)||s==="["||s==="("||s==="@"||s==="|"||s==="<"||s===">"||s==="-"&&(e[n+1]==="-"||e[n+1]===">"||e[n+1]==="<"))break;n+=1}if(n===r)return null;const i=e.slice(r,n).trim();if(!i)return null;if(e.startsWith("@{",n)){const s=e.indexOf("}",n+2);s!==-1&&(n=s+1)}n=Ic(e,n);let o;if(e[n]==="["){const s=e.indexOf("]",n+1);s!==-1&&(o=Ac(e.slice(n+1,s)),n=s+1)}else if(e[n]==="("){const s=e.indexOf(")",n+1);if(s!==-1){let a=e.slice(n+1,s).trim();a.startsWith("[")&&a.endsWith("]")&&(a=a.slice(1,-1).trim()),o=Ac(a),n=s+1}}return{node:{id:i,label:o},nextIndex:n}}function Hle(e,t){Mc.lastIndex=t;const n=Mc.exec(e);if(!n)return null;const r=n[0],i=n.index,o=i+r.length;let a=qle(e.slice(t,i))||void 0,l=r,c=o;if(c=Ic(e,c),e[c]==="|"){const v=e.indexOf("|",c+1);if(v!==-1){a=Ac(e.slice(c+1,v))||a,c=v+1;const w=Ic(e,c);Mc.lastIndex=w;const x=Mc.exec(e);x&&x.index===w?(l+=x[0],c=x.index+x[0].length):c=w}}const u=l.includes("<"),h=l.includes(">"),f=l.match(/[xo]/gi)||[],d=/^[xo]/i.test(l),p=/[xo]$/i.test(l);let g="none",m=!1;return u&&h||u&&p||h&&d||d&&p?g="both":(u||h||f.length>0)&&(g="forward",m=u&&!h),{label:a,direction:g,reverse:m,nextIndex:c}}function jle(e){const t=[],n=[],r=new Map;let i=0;const o=gM(e,i);if(!o)return{relations:t,nodes:n};let s=o.node;for(r.has(s.id)||(r.set(s.id,s),n.push(s)),i=o.nextIndex;i<e.length;){const a=Hle(e,i);if(!a)break;i=a.nextIndex;const l=gM(e,i);if(!l)break;i=l.nextIndex;let c=s.id,u=l.node.id;const h=a.direction;a.reverse&&(c=l.node.id,u=s.id);const f={from:c,to:u};a.label&&(f.label=a.label),h==="both"&&(f.direction="both"),h==="none"&&(f.direction="none"),t.push(f),r.has(s.id)||(r.set(s.id,s),n.push(s)),r.has(l.node.id)||(r.set(l.node.id,l.node),n.push(l.node)),s=l.node}return{relations:t,nodes:n}}function Fle(e,t,n,r){if(!n)return;const i=e.get(n);if(i){!i.label&&r&&(i.label=r);return}const o={id:n,label:r||n};e.set(n,o),t.push(o)}function Ble(e,t,n){const r=sn(e,lM,t,n);return!r||typeof r!="object"||typeof r.from!="string"||typeof r.to!="string"?null:r}function Wle(e,t,n){const r=[],i=[],o=new Map,s=a=>{if(!pM.test(a))return;const l=jle(a);l.nodes.forEach(c=>{Fle(o,i,c.id,c.label)}),r.push(...l.relations)};return e.kind==="array"?e.items.forEach((a,l)=>{if(a.kind==="object"&&a.value&&Object.keys(a.entries).length===0&&pM.test(a.value)){s(a.value);return}const c=Ble(a,`${n}[${l}]`,t);c&&r.push(c)}):e.kind==="object"&&e.value&&s(e.value),{relations:r,items:i}}var Vle=Object.defineProperty,Gle=Object.defineProperties,Yle=Object.getOwnPropertyDescriptors,Tc=Object.getOwnPropertySymbols,mM=Object.prototype.hasOwnProperty,yM=Object.prototype.propertyIsEnumerable,vM=(e,t,n)=>t in e?Vle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bM=(e,t)=>{for(var n in t||(t={}))mM.call(t,n)&&vM(e,n,t[n]);if(Tc)for(var n of Tc(t))yM.call(t,n)&&vM(e,n,t[n]);return e},Xle=(e,t)=>Gle(e,Yle(t)),wM=(e,t)=>{var n={};for(var r in e)mM.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Tc)for(var r of Tc(e))t.indexOf(r)<0&&yM.call(e,r)&&(n[r]=e[r]);return n};function Ule(e){var t;const n=new Set,r=[];for(let i=e.length-1;i>=0;i-=1){const o=e[i],s=(t=o.id)!=null?t:o.label;if(!s){r.push(o);continue}n.has(s)||(n.add(s),o.id||(o.id=s),r.push(o))}return r.reverse()}function Kle(e,t){if(!e)return;const n=sn(e,fM,"template",t);if(n){if(typeof n=="string")return n;if(typeof n=="object"&&typeof n.type=="string")return n.type}}function _M(e){var t;const{ast:n,errors:r}=Tle(e),i=[],o={},s=bM({},n.entries),a=n.entries.infographic;let l;a&&a.kind==="object"&&(a.value&&(l=a.value),Object.entries(a.entries).forEach(([v,b])=>{v in s||(s[v]=b)}));const c=new Set(["infographic","template","design","data","theme","width","height"]);Object.keys(s).forEach(v=>{c.has(v)||r.push({path:v,line:s[v].line,code:"unknown_key",message:"Unknown top-level key.",raw:v})});const u=s.template,h=Kle(u,r);h&&(o.template=h),!o.template&&l&&(o.template=l);const f=s.design;if(f){const v=sn(f,uM,"design",r);v&&(o.design=v)}const d=s.data;if(d){let v,b=d;if(d.kind==="object"){const x=d.entries,{relations:_}=x,C=wM(x,["relations"]);v=_,b=Xle(bM({},d),{entries:C})}const w=sn(b,hM,"data",r);if(w&&(o.data=w),v){const x=Wle(v,r,"data.relations");if(x.relations.length>0||x.items.length>0){const _=(t=o.data)!=null?t:{},C=Array.isArray(_.items)?_.items:[],P=Ule(C),S=new Map;P.forEach($=>{$.id&&S.set($.id,$)}),x.items.forEach($=>{const O=S.get($.id);O?!O.label&&$.label&&(O.label=$.label):(P.push($),S.set($.id,$))}),_.items=P,_.relations=x.relations,o.data=_}}}const p=s.theme;if(p){const v=sn(p,cM,"theme",r);if(v&&typeof v=="object"){const b=v,{type:w}=b,x=wM(b,["type"]);typeof w=="string"&&w&&(o.theme=w),Object.keys(x).length>0&&(o.themeConfig=x)}}const g=s.width;if(g){const v=sn(g,dM.fields.width,"width",r);v!==void 0&&(o.width=v)}const m=s.height;if(m){const v=sn(m,dM.fields.height,"height",r);v!==void 0&&(o.height=v)}return{options:o,errors:r,warnings:i,ast:n}}const Zle=()=>[new J$,new aE,new rE],Qle=()=>[new b$,new v$,new m$,new y$,new w$,new x$,new $$,new S$],Jle={padding:20,theme:"light",themeConfig:{palette:"antv"},get plugins(){return Zle()},get interactions(){return Qle()}};var ece=Object.defineProperty,xM=Object.getOwnPropertySymbols,tce=Object.prototype.hasOwnProperty,nce=Object.prototype.propertyIsEnumerable,CM=(e,t,n)=>t in e?ece(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hr=(e,t)=>{for(var n in t||(t={}))tce.call(t,n)&&CM(e,n,t[n]);if(xM)for(var n of xM(t))nce.call(t,n)&&CM(e,n,t[n]);return e};function Cy(e,t){const n=hr(hr({},e),t);return(e.design||t.design)&&(n.design=hr(hr({},e.design),t.design)),(e.themeConfig||t.themeConfig)&&(n.themeConfig=hr(hr({},e.themeConfig),t.themeConfig)),(e.svg||t.svg)&&(n.svg=hr(hr({},e.svg),t.svg)),n}function Py(e){const t=hr({},e);return t.data&&(t.data=Fu(t.data)),t.elements&&(t.elements=Fu(t.elements)),t}function PM(e){const{design:t,data:n}=e;return!(!t||!Ab(t)||!n||!Array.isArray(n.items)||n.items.length<1)}var rce=Object.defineProperty,SM=Object.getOwnPropertySymbols,ice=Object.prototype.hasOwnProperty,oce=Object.prototype.propertyIsEnumerable,OM=(e,t,n)=>t in e?rce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sce=(e,t)=>{for(var n in t||(t={}))ice.call(t,n)&&OM(e,n,t[n]);if(SM)for(var n of SM(t))oce.call(t,n)&&OM(e,n,t[n]);return e},ace=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});class lce{constructor(t){this.rendered=!1,this.emitter=new fle,this.node=null,this.initialOptions={},this.setOptions(t,"replace",!0)}getOptions(){return this.options}setOptions(t,n="replace",r=!1){const{options:i,errors:o,warnings:s}=cce(t);r&&(this.initialOptions=i);const a=Cy(n==="replace"?Py(this.initialOptions||{}):this.options||Py(this.initialOptions||{}),i);this.options=a,this.parsedOptions=xle(Cy(Jle,this.options)),s.length&&this.emitter.emit("warning",s),o.length&&this.emitter.emit("error",o)}render(t){t?this.setOptions(t,"replace"):!this.options&&this.initialOptions&&this.setOptions(this.initialOptions,"replace"),this.performRender()}update(t){this.setOptions(t,"merge"),this.performRender()}performRender(){var t;const n=this.parsedOptions;if(!PM(n)){this.emitter.emit("error",new Error("Incomplete options"));return}const{container:r}=this.parsedOptions,i=this.compose(n),o=new RH(n,i);this.node=o.render(),r==null||r.replaceChildren(this.node),(t=this.editor)==null||t.destroy(),this.editor=void 0,this.options.editable&&(this.editor=new vle(this.emitter,this.node,n)),this.rendered=!0,this.emitter.emit("rendered",{node:this.node,options:this.options});const s=this.node;return s&&_D(s).then(()=>{this.node===s&&this.emitter.emit("loaded",{node:s,options:this.options})}),!0}compose(t){const{design:n,data:r}=t,{title:i,item:o,items:s,structure:a}=n,{component:l,props:c}=a,u=i.component,h=o.component,f=s.map(g=>g.component),d=__(y(l,sce({data:r,Title:u,Item:h,Items:f,options:t},c))),p=xi(d);if(!p)throw new Error("Failed to parse SVG template");return p}getTypes(){const t=this.parsedOptions;if(!PM(t)){this.emitter.emit("error",new Error("Incomplete options"));return}const n=t.design,r=n.structure.composites||[],i=n.items.map(o=>o.composites||[]);return bj({structure:r,items:i})}toDataURL(t){return ace(this,null,function*(){if(!this.node)throw new Error("Infographic is not rendered yet.");return(t==null?void 0:t.type)==="svg"?yield qae(this.node,t):yield cle(this.node,t)})}on(t,n){this.emitter.on(t,n)}off(t,n){this.emitter.off(t,n)}destroy(){var t,n;(t=this.editor)==null||t.destroy(),(n=this.node)==null||n.remove(),this.node=null,this.rendered=!1,this.emitter.emit("destroyed"),this.emitter.removeAllListeners()}}function cce(e){if(typeof e=="string"){const{options:t,errors:n,warnings:r}=_M(e);return{options:t,errors:n,warnings:r}}return{options:Py(e),errors:[],warnings:[]}}const uce="0.2.14";B.AlignLayout=$i,B.BadgeCard=x3,B.BatchCommand=QO,B.BrushSelect=m$,B.BtnAdd=ne,B.BtnRemove=nt,B.BtnsGroup=je,B.CandyCardLite=S3,B.CapsuleItem=R3,B.ChartBar=c5,B.ChartColumn=u5,B.ChartLine=p5,B.ChartPie=w5,B.ChartWordCloud=O5,B.CircleNode=N3,B.CircularProgress=q3,B.ClickSelect=y$,B.CompactCard=B3,B.CompareBinaryHorizontal=N5,B.CompareHierarchyLeftRight=H5,B.CompareHierarchyRow=j5,B.DblClickEditText=v$,B.Defs=Ke,B.DoneList=G3,B.DragCanvas=b$,B.DragElement=w$,B.EditBar=J$,B.Ellipse=Ze,B.FlexLayout=ve,B.Fragment=$o,B.Gap=yt,B.Group=Y,B.HierarchyMindmap=Q5,B.HierarchyStructure=e6,B.HierarchyTree=i6,B.HorizontalIconArrow=U3,B.HorizontalIconLine=ex,B.HotkeyHistory=x$,B.IconBadge=rx,B.Illus=T_,B.IndexedCard=sx,B.Infographic=lce,B.Interaction=sr,B.ItemDesc=ht,B.ItemIcon=Ft,B.ItemIconCircle=jr,B.ItemLabel=Ve,B.ItemValue=Ro,B.ItemsGroup=qe,B.LCornerCard=cx,B.LabelText=_x,B.LetterCard=fx,B.LinedText=gx,B.ListColumn=o6,B.ListGrid=s6,B.ListPyramid=a6,B.ListRow=l6,B.ListSector=h6,B.ListWaterfall=f6,B.ListZigzagDown=y6,B.ListZigzagUp=v6,B.Path=Pe,B.PillBadge=vx,B.Plugin=cs,B.Polygon=Yt,B.ProgressCard=E4,B.Quadrant=F5,B.QuarterCircular=I4,B.QuarterSimpleCard=k4,B.Rect=Le,B.RelationCircle=b6,B.RelationDagreFlow=aO,B.RelationNetwork=lO,B.ResetViewBox=rE,B.ResizeElement=aE,B.RibbonCard=z4,B.RoundedRectNode=H4,B.SelectHighlight=S$,B.SequenceAscendingStairs3d=vO,B.SequenceAscendingSteps=bO,B.SequenceCircleArrows=_O,B.SequenceCircular=xO,B.SequenceColorSnakeSteps=CO,B.SequenceFilterMesh=$O,B.SequenceFunnel=IO,B.SequenceHorizontalZigzag=TO,B.SequenceMountain=LO,B.SequencePyramid=NO,B.SequenceRoadmapVertical=DO,B.SequenceSnakeSteps=qO,B.SequenceStairsFront=HO,B.SequenceSteps=jO,B.SequenceTimeline=FO,B.SequenceZigzagPucks3d=WO,B.SequenceZigzagSteps=KO,B.ShapesGroup=Ct,B.SimpleCircleNode=B4,B.SimpleHorizontalArrow=G4,B.SimpleIllusItem=U4,B.SimpleItem=Q4,B.SimpleVerticalArrow=t5,B.Text=De,B.Title=u3,B.UnderlineText=i5,B.UpdateElementCommand=Sn,B.UpdateOptionsCommand=ic,B.UpdateTextCommand=p$,B.VERSION=uce,B.VerticalIconArrow=a5,B.ZoomWheel=$$,B.cloneElement=yr,B.createFragment=qj,B.createLayout=Ih,B.distributeLabels=$f,B.exportToSVG=yy,B.getCombinedBounds=Oi,B.getElementBounds=ae,B.getElementsBounds=Hr,B.getFont=Uu,B.getFonts=Ku,B.getItem=b3,B.getItemProps=at,B.getItems=fB,B.getPalette=Bb,B.getPaletteColor=ta,B.getPalettes=TD,B.getStructure=l5,B.getStructures=_Q,B.getTemplate=Jt,B.getTemplates=bs,B.getTheme=h3,B.getThemeColors=Et,B.getThemes=XF,B.jsx=Ea,B.jsxDEV=jj,B.jsxs=Hj,B.loadSVGResource=wi,B.parseSVG=xi,B.parseSyntax=_M,B.registerFont=Hb,B.registerItem=lt,B.registerPalette=Ju,B.registerPattern=Cw,B.registerResourceLoader=KD,B.registerStructure=We,B.registerTemplate=$t,B.registerTheme=Lh,B.renderSVG=__,B.sequenceCylinders3d=PO,B.setDefaultFont=OD,B.setFontExtendFactor=DH,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})}));
593
600
  //# sourceMappingURL=infographic.min.js.map