forge-openclaw-plugin 0.2.102 → 0.2.103

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 (174) hide show
  1. package/dist/assets/activity-page-Dv6X5ZCV.js +1 -0
  2. package/dist/assets/{ai-surface-workspace-xtB5RFQu.js → ai-surface-workspace-CutiG6uS.js} +1 -1
  3. package/dist/assets/{atlas-panel-B3dPHCmZ.js → atlas-panel-jgMRyaHn.js} +1 -1
  4. package/dist/assets/{board-DqHzdCPQ.js → board-dIX6etHh.js} +1 -1
  5. package/dist/assets/calendar-page-q7Nm5E2U.js +1 -0
  6. package/dist/assets/calendar-rules-DPFsfiRl.js +1 -0
  7. package/dist/assets/{calendar-week-toolbar-BZ_-X3Wb.js → calendar-week-toolbar-nVhgB-0s.js} +1 -1
  8. package/dist/assets/{charts-FcU0F3XV.js → charts-DFnEuIMB.js} +1 -1
  9. package/dist/assets/companion-sync-lab-page-CJ8UTij8.js +1 -0
  10. package/dist/assets/{daily-metrics-dashboard-BMyL0Qr4.js → daily-metrics-dashboard-CiJkkkd1.js} +1 -1
  11. package/dist/assets/entity-note-count-link-RzBB6ujx.js +1 -0
  12. package/dist/assets/{entity-notes-surface-CBylYDwy.js → entity-notes-surface-Djz50HvD.js} +1 -1
  13. package/dist/assets/execution-board-CtPhI-58.js +1 -0
  14. package/dist/assets/{faceted-token-search-D7xPWfOl.js → faceted-token-search-DEC6ANa9.js} +1 -1
  15. package/dist/assets/{flagship-signal-deck-BEFKOhvx.js → flagship-signal-deck-CtHC3mql.js} +1 -1
  16. package/dist/assets/floating-action-menu-CKQRhff9.js +1 -0
  17. package/dist/assets/{forms-CmLAyGqz.js → forms-hB0SqEh-.js} +1 -1
  18. package/dist/assets/goal-detail-page-CF5fNQeR.js +1 -0
  19. package/dist/assets/goals-page-fsY8NzGB.js +1 -0
  20. package/dist/assets/{graph-BTa79qum.js → graph-DDUZNRsO.js} +1 -1
  21. package/dist/assets/habits-page-COoGz4kj.js +1 -0
  22. package/dist/assets/index-BAXYM89v.css +1 -0
  23. package/dist/assets/index-EqQsXoat.js +19 -0
  24. package/dist/assets/{insight-flow-dialog-BtIQXXsS.js → insight-flow-dialog-DtX_5W7g.js} +1 -1
  25. package/dist/assets/insights-page-cBd74ObU.js +8 -0
  26. package/dist/assets/kanban-page-CYav9THw.js +1 -0
  27. package/dist/assets/knowledge-graph-page-D2A-W1jE.js +1 -0
  28. package/dist/assets/{life-force-page-BGDkKfbJ.js → life-force-page-CACGlNhq.js} +1 -1
  29. package/dist/assets/life-force-workspace-BJ4N1I78.js +1 -0
  30. package/dist/assets/{maps-CF1RagUX.js → maps-C-yOWiDN.js} +1 -1
  31. package/dist/assets/{metric-tile-4iMd_WnJ.js → metric-tile-CMadwnGz.js} +1 -1
  32. package/dist/assets/{motion-CfdU2F35.js → motion-Lt5B1XuE.js} +1 -1
  33. package/dist/assets/movement-page-D5VqFd2q.js +1 -0
  34. package/dist/assets/{note-markdown-CsGQhQXF.js → note-markdown-BzK2Qlgr.js} +1 -1
  35. package/dist/assets/{note-tags-input-DdZi93tj.js → note-tags-input-CZzqJMLc.js} +1 -1
  36. package/dist/assets/notes-page-D3Hsh90C.js +1 -0
  37. package/dist/assets/{open-in-graph-button-C0TGev7c.js → open-in-graph-button-BFPKfyK3.js} +1 -1
  38. package/dist/assets/{orbit-map-DVXkfQdd.js → orbit-map-CnyfSmOG.js} +1 -1
  39. package/dist/assets/{overview-page-BwMlFQKX.js → overview-page-CXdWrOV1.js} +1 -1
  40. package/dist/assets/{page-hero-oFHaAjtL.js → page-hero-ffKzgyW3.js} +1 -1
  41. package/dist/assets/pill-cluster-C2D0h3lx.js +1 -0
  42. package/dist/assets/{preference-entity-handoff-button-DOKV9bZc.js → preference-entity-handoff-button-Dj3V6VxL.js} +1 -1
  43. package/dist/assets/preferences-page-Jo8Gw386.js +1 -0
  44. package/dist/assets/project-collections-qSqp90HN.js +1 -0
  45. package/dist/assets/{project-detail-page-DogvVNEn.js → project-detail-page-BifhiLQX.js} +1 -1
  46. package/dist/assets/project-management-hierarchy-page-DZ_9klIc.js +1 -0
  47. package/dist/assets/project-management-section-nav-BImLCVvf.js +1 -0
  48. package/dist/assets/projects-page-ptcx6H38.js +1 -0
  49. package/dist/assets/{psyche-behaviors-page-BeVlXvbj.js → psyche-behaviors-page-BDwXyDta.js} +1 -1
  50. package/dist/assets/{psyche-flashcards-page-CqAWCO4E.js → psyche-flashcards-page-DL1BP1jX.js} +1 -1
  51. package/dist/assets/{psyche-goal-map-page-IyNnbk_W.js → psyche-goal-map-page-ovcpisx1.js} +1 -1
  52. package/dist/assets/{psyche-graph-IkUQRaDK.js → psyche-graph-EP5GL612.js} +1 -1
  53. package/dist/assets/{psyche-metrics-page-uai0a7Lx.js → psyche-metrics-page-Bcu813Rg.js} +1 -1
  54. package/dist/assets/{psyche-mode-guide-page-C7p-ABiF.js → psyche-mode-guide-page-C0g27Xpt.js} +1 -1
  55. package/dist/assets/{psyche-modes-page-CLQ5V3w0.js → psyche-modes-page-BjKjX5MR.js} +1 -1
  56. package/dist/assets/{psyche-page-NQBHkkpU.js → psyche-page-F4tF2W70.js} +1 -1
  57. package/dist/assets/{psyche-patterns-page-BkRiNpI_.js → psyche-patterns-page-B-14hukK.js} +1 -1
  58. package/dist/assets/{psyche-questionnaire-builder-page-Du-7HwPC.js → psyche-questionnaire-builder-page-BdXmoHvK.js} +1 -1
  59. package/dist/assets/{psyche-questionnaire-detail-page-C5-yf8MF.js → psyche-questionnaire-detail-page-Cu5uwlJu.js} +1 -1
  60. package/dist/assets/{psyche-questionnaire-run-detail-page-CoSH5O6R.js → psyche-questionnaire-run-detail-page-C3R4PClg.js} +1 -1
  61. package/dist/assets/{psyche-questionnaire-run-page-ChI7c1wy.js → psyche-questionnaire-run-page-Div3iDdt.js} +1 -1
  62. package/dist/assets/{psyche-questionnaires-page-xUcJJzbI.js → psyche-questionnaires-page-DpqAPQCp.js} +1 -1
  63. package/dist/assets/{psyche-report-detail-page-BPrZCFZS.js → psyche-report-detail-page-BvWVDKP3.js} +1 -1
  64. package/dist/assets/{psyche-reports-page-D2EXJmm6.js → psyche-reports-page-BrbWUlAq.js} +1 -1
  65. package/dist/assets/{psyche-schemas-RcZYaokx.js → psyche-schemas-Dxj554nU.js} +1 -1
  66. package/dist/assets/{psyche-schemas-beliefs-page-h0ooZ1lp.js → psyche-schemas-beliefs-page-DYKvAtSD.js} +1 -1
  67. package/dist/assets/{psyche-screen-time-page-_3-4LikV.js → psyche-screen-time-page-CAOKCyQw.js} +1 -1
  68. package/dist/assets/{psyche-self-observation-page-BdbCsgR5.js → psyche-self-observation-page-F0MVA0UH.js} +1 -1
  69. package/dist/assets/{psyche-values-page-DuUVki5e.js → psyche-values-page-DyvX-d0o.js} +1 -1
  70. package/dist/assets/{report-chain-fields-BBMz0sGI.js → report-chain-fields-CeC1cJFS.js} +1 -1
  71. package/dist/assets/rewards-page-C2loyODo.js +1 -0
  72. package/dist/assets/scheduling-rules-editor-D40AC2jR.js +1 -0
  73. package/dist/assets/{schema-badge-D93RcG36.js → schema-badge-FY7818qB.js} +1 -1
  74. package/dist/assets/{select-menu-Cdq7foRu.js → select-menu-DJsCG6rM.js} +1 -1
  75. package/dist/assets/settings-agents-page-BFkJ5AAD.js +6 -0
  76. package/dist/assets/settings-bin-page-D3-Ab-iA.js +1 -0
  77. package/dist/assets/settings-calendar-page-ly_mSTAD.js +5 -0
  78. package/dist/assets/settings-data-page-D7QOqNf-.js +1 -0
  79. package/dist/assets/settings-logs-page-Ca87HEUx.js +1 -0
  80. package/dist/assets/settings-mobile-page-D0jejZot.js +1 -0
  81. package/dist/assets/settings-models-page-DPDsZjSc.js +1 -0
  82. package/dist/assets/settings-page-1cArlSPM.js +1 -0
  83. package/dist/assets/settings-rewards-page-Db4BV1DC.js +1 -0
  84. package/dist/assets/{settings-section-nav-Dc4IeVBt.js → settings-section-nav-DP9o4peU.js} +1 -1
  85. package/dist/assets/settings-users-page-BHFyDSsd.js +1 -0
  86. package/dist/assets/settings-wiki-page-BNaiupBm.js +1 -0
  87. package/dist/assets/sleep-page-BmOPF0yD.js +1 -0
  88. package/dist/assets/sports-page-BldIiclr.js +1 -0
  89. package/dist/assets/{state-VYvD1QVP.js → state-vCcAT5Hq.js} +1 -1
  90. package/dist/assets/strategies-page-CaTN99qj.js +1 -0
  91. package/dist/assets/strategy-detail-page-DsgFTd-U.js +1 -0
  92. package/dist/assets/{strategy-dialog-DMyRKrWf.js → strategy-dialog-7X7peRzu.js} +1 -1
  93. package/dist/assets/{surface-Bfz_sLX6.js → surface-CJI17F3n.js} +1 -1
  94. package/dist/assets/{table-C0VTeqw0.js → table-BNqMG3_S.js} +1 -1
  95. package/dist/assets/task-detail-page-M1sIIPA8.js +1 -0
  96. package/dist/assets/timebox-planning-dialog-ByojN0AN.js +1 -0
  97. package/dist/assets/today-page-BjDijtn8.js +1 -0
  98. package/dist/assets/training-load-page-BPRmaWmF.js +1 -0
  99. package/dist/assets/{ui-CsEkP2V8.js → ui-C1iwpj2-.js} +1 -1
  100. package/dist/assets/{use-psyche-focus-target-qxT5Oy_z.js → use-psyche-focus-target-Ct-acS9G.js} +1 -1
  101. package/dist/assets/{vendor-kIz9EZnX.js → vendor-Dnkkx2co.js} +3 -3
  102. package/dist/assets/{vitals-page-Dz1Jt5H8.js → vitals-page-CE9zdGLF.js} +1 -1
  103. package/dist/assets/weekly-review-page-CzhTv90n.js +1 -0
  104. package/dist/assets/weight-loss-page-Bp_cIk78.js +5 -0
  105. package/dist/assets/wiki-article-markdown-Dok2uy2p.js +4 -0
  106. package/dist/assets/wiki-editor-page-BuW32Y3f.js +26 -0
  107. package/dist/assets/wiki-ingest-history-page-DZKSBNHV.js +1 -0
  108. package/dist/assets/wiki-ingest-modal-DyqBEZcC.js +1 -0
  109. package/dist/assets/wiki-page-DqxlbLKG.js +1 -0
  110. package/dist/assets/workbench-flow-page-C4nc9jUg.js +5 -0
  111. package/dist/assets/workbench-page-BnyR7SL0.js +1 -0
  112. package/dist/assets/{workout-detail-page-DD9IGN6l.js → workout-detail-page-DT-c5cHL.js} +2 -2
  113. package/dist/index.html +9 -9
  114. package/dist/server/server/src/app.js +22 -3
  115. package/dist/server/server/src/health-weight-loss.js +114 -39
  116. package/dist/server/server/src/repositories/model-settings.js +9 -3
  117. package/dist/server/src/components/workbench-boxes/shared/generic-node-view.js +13 -5
  118. package/dist/server/src/lib/api.js +10 -1
  119. package/openclaw.plugin.json +1 -1
  120. package/package.json +1 -1
  121. package/dist/assets/activity-page-CgF7K2ww.js +0 -1
  122. package/dist/assets/calendar-page-C1Wfd2Fy.js +0 -1
  123. package/dist/assets/calendar-rules-CaZXtlxt.js +0 -1
  124. package/dist/assets/companion-sync-lab-page-NgeK-O-P.js +0 -1
  125. package/dist/assets/entity-note-count-link-BrS1-O0o.js +0 -1
  126. package/dist/assets/execution-board-CpO2ch6v.js +0 -1
  127. package/dist/assets/floating-action-menu-zzC2r0Ob.js +0 -1
  128. package/dist/assets/goal-detail-page-JK_Nva8e.js +0 -1
  129. package/dist/assets/goals-page-yeoJ06Vw.js +0 -1
  130. package/dist/assets/habits-page-Dx5EhkJi.js +0 -1
  131. package/dist/assets/index-BHIKoiZ6.js +0 -19
  132. package/dist/assets/index-H8R-ABM3.css +0 -1
  133. package/dist/assets/insights-page-CujrosD_.js +0 -8
  134. package/dist/assets/kanban-page-Q9NuIz5w.js +0 -1
  135. package/dist/assets/knowledge-graph-page-DaJmlvvM.js +0 -1
  136. package/dist/assets/life-force-workspace-CLVexVnb.js +0 -1
  137. package/dist/assets/movement-page-ClaoTNuX.js +0 -1
  138. package/dist/assets/notes-page-DYI8s3NN.js +0 -1
  139. package/dist/assets/pill-cluster-7UZd_lHp.js +0 -1
  140. package/dist/assets/preferences-page-BrKEkmfD.js +0 -1
  141. package/dist/assets/project-collections-CZagCmeH.js +0 -1
  142. package/dist/assets/project-management-hierarchy-page-Dr7hW9PW.js +0 -1
  143. package/dist/assets/project-management-section-nav-BLdAgTge.js +0 -1
  144. package/dist/assets/projects-page-UKrby_5-.js +0 -1
  145. package/dist/assets/rewards-page-PZFPa6rR.js +0 -1
  146. package/dist/assets/scheduling-rules-editor-B9KNKsQz.js +0 -1
  147. package/dist/assets/settings-agents-page-DPx2F6wf.js +0 -6
  148. package/dist/assets/settings-bin-page-COwP3gjo.js +0 -1
  149. package/dist/assets/settings-calendar-page-C-ghE0YT.js +0 -5
  150. package/dist/assets/settings-data-page-CBubzKBw.js +0 -1
  151. package/dist/assets/settings-logs-page-uOuXMeBm.js +0 -1
  152. package/dist/assets/settings-mobile-page-C5rfj8_r.js +0 -1
  153. package/dist/assets/settings-models-page-DijmUWdU.js +0 -1
  154. package/dist/assets/settings-page-B4u5TR5g.js +0 -1
  155. package/dist/assets/settings-rewards-page-COiTwkMH.js +0 -1
  156. package/dist/assets/settings-users-page-DEGa5DNn.js +0 -1
  157. package/dist/assets/settings-wiki-page-Cvsiz5_e.js +0 -1
  158. package/dist/assets/sleep-page-BnSOwkEU.js +0 -1
  159. package/dist/assets/sports-page-l1RqXzA_.js +0 -1
  160. package/dist/assets/strategies-page-DEnPlpAs.js +0 -1
  161. package/dist/assets/strategy-detail-page-Ls8bxKeH.js +0 -1
  162. package/dist/assets/task-detail-page-CgrYgQLD.js +0 -1
  163. package/dist/assets/timebox-planning-dialog-Ww0NGLLo.js +0 -1
  164. package/dist/assets/today-page-CIuFHMi1.js +0 -1
  165. package/dist/assets/training-load-page-BIwc648i.js +0 -1
  166. package/dist/assets/weekly-review-page-BFpBe1kI.js +0 -1
  167. package/dist/assets/weight-loss-page-BgMoBpBt.js +0 -5
  168. package/dist/assets/wiki-article-markdown-gsPTXTg1.js +0 -4
  169. package/dist/assets/wiki-editor-page-BpAZHooY.js +0 -26
  170. package/dist/assets/wiki-ingest-history-page-C-ig8O22.js +0 -1
  171. package/dist/assets/wiki-ingest-modal-BK4eQgqs.js +0 -1
  172. package/dist/assets/wiki-page-CMTZ60Zt.js +0 -1
  173. package/dist/assets/workbench-flow-page-BIpWUcLJ.js +0 -5
  174. package/dist/assets/workbench-page-CtCjYSRe.js +0 -1
@@ -1036,7 +1036,7 @@ Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}
1036
1036
  *
1037
1037
  * This source code is licensed under the MIT license found in the
1038
1038
  * LICENSE file in the root directory of this source tree.
1039
- */var YS;function _z(){if(YS)return Og;YS=1;var e=Jo(),t=ZE();function n(g,p){return g===p&&(g!==0||1/g===1/p)||g!==g&&p!==p}var i=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,u=e.useRef,c=e.useEffect,f=e.useMemo,h=e.useDebugValue;return Og.useSyncExternalStoreWithSelector=function(g,p,m,v,S){var M=u(null);if(M.current===null){var b={hasValue:!1,value:null};M.current=b}else b=M.current;M=f(function(){function E(O){if(!A){if(A=!0,k=O,O=v(O),S!==void 0&&b.hasValue){var D=b.value;if(S(D,O))return T=D}return T=O}if(D=T,i(k,O))return D;var N=v(O);return S!==void 0&&S(D,N)?(k=O,D):(k=O,T=N)}var A=!1,k,T,C=m===void 0?null:m;return[function(){return E(p())},C===null?void 0:function(){return E(C())}]},[p,m,v,S]);var w=o(g,M[0],M[1]);return c(function(){b.hasValue=!0,b.value=w},[w]),h(w),w},Og}var VS;function wz(){return VS||(VS=1,xg.exports=_z()),xg.exports}var Mz=wz();const kG=Zt(Mz);function We(e){return function(){return e}}const JE=Math.cos,nf=Math.sin,Kn=Math.sqrt,rf=Math.PI,kf=2*rf,n1=Math.PI,r1=2*n1,aa=1e-6,Tz=r1-aa;function WE(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Ez(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return WE;const n=10**t;return function(i){this._+=i[0];for(let o=1,u=i.length;o<u;++o)this._+=Math.round(arguments[o]*n)/n+i[o]}}class xz{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?WE:Ez(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,i,o){this._append`Q${+t},${+n},${this._x1=+i},${this._y1=+o}`}bezierCurveTo(t,n,i,o,u,c){this._append`C${+t},${+n},${+i},${+o},${this._x1=+u},${this._y1=+c}`}arcTo(t,n,i,o,u){if(t=+t,n=+n,i=+i,o=+o,u=+u,u<0)throw new Error(`negative radius: ${u}`);let c=this._x1,f=this._y1,h=i-t,g=o-n,p=c-t,m=f-n,v=p*p+m*m;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(v>aa)if(!(Math.abs(m*h-g*p)>aa)||!u)this._append`L${this._x1=t},${this._y1=n}`;else{let S=i-c,M=o-f,b=h*h+g*g,w=S*S+M*M,E=Math.sqrt(b),A=Math.sqrt(v),k=u*Math.tan((n1-Math.acos((b+v-w)/(2*E*A)))/2),T=k/A,C=k/E;Math.abs(T-1)>aa&&this._append`L${t+T*p},${n+T*m}`,this._append`A${u},${u},0,0,${+(m*S>p*M)},${this._x1=t+C*h},${this._y1=n+C*g}`}}arc(t,n,i,o,u,c){if(t=+t,n=+n,i=+i,c=!!c,i<0)throw new Error(`negative radius: ${i}`);let f=i*Math.cos(o),h=i*Math.sin(o),g=t+f,p=n+h,m=1^c,v=c?o-u:u-o;this._x1===null?this._append`M${g},${p}`:(Math.abs(this._x1-g)>aa||Math.abs(this._y1-p)>aa)&&this._append`L${g},${p}`,i&&(v<0&&(v=v%r1+r1),v>Tz?this._append`A${i},${i},0,1,${m},${t-f},${n-h}A${i},${i},0,1,${m},${this._x1=g},${this._y1=p}`:v>aa&&this._append`A${i},${i},0,${+(v>=n1)},${m},${this._x1=t+i*Math.cos(u)},${this._y1=n+i*Math.sin(u)}`)}rect(t,n,i,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${i=+i}v${+o}h${-i}Z`}toString(){return this._}}function Z1(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const i=Math.floor(n);if(!(i>=0))throw new RangeError(`invalid digits: ${n}`);t=i}return e},()=>new xz(t)}function J1(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function e3(e){this._context=e}e3.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 t3(e){return new e3(e)}function n3(e){return e[0]}function r3(e){return e[1]}function Oz(e,t){var n=We(!0),i=null,o=t3,u=null,c=Z1(f);e=typeof e=="function"?e:e===void 0?n3:We(e),t=typeof t=="function"?t:t===void 0?r3:We(t);function f(h){var g,p=(h=J1(h)).length,m,v=!1,S;for(i==null&&(u=o(S=c())),g=0;g<=p;++g)!(g<p&&n(m=h[g],g,h))===v&&((v=!v)?u.lineStart():u.lineEnd()),v&&u.point(+e(m,g,h),+t(m,g,h));if(S)return u=null,S+""||null}return f.x=function(h){return arguments.length?(e=typeof h=="function"?h:We(+h),f):e},f.y=function(h){return arguments.length?(t=typeof h=="function"?h:We(+h),f):t},f.defined=function(h){return arguments.length?(n=typeof h=="function"?h:We(!!h),f):n},f.curve=function(h){return arguments.length?(o=h,i!=null&&(u=o(i)),f):o},f.context=function(h){return arguments.length?(h==null?i=u=null:u=o(i=h),f):i},f}function AG(e,t,n){var i=null,o=We(!0),u=null,c=t3,f=null,h=Z1(g);e=typeof e=="function"?e:e===void 0?n3:We(+e),t=typeof t=="function"?t:We(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?r3:We(+n);function g(m){var v,S,M,b=(m=J1(m)).length,w,E=!1,A,k=new Array(b),T=new Array(b);for(u==null&&(f=c(A=h())),v=0;v<=b;++v){if(!(v<b&&o(w=m[v],v,m))===E)if(E=!E)S=v,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),M=v-1;M>=S;--M)f.point(k[M],T[M]);f.lineEnd(),f.areaEnd()}E&&(k[v]=+e(w,v,m),T[v]=+t(w,v,m),f.point(i?+i(w,v,m):k[v],n?+n(w,v,m):T[v]))}if(A)return f=null,A+""||null}function p(){return Oz().defined(o).curve(c).context(u)}return g.x=function(m){return arguments.length?(e=typeof m=="function"?m:We(+m),i=null,g):e},g.x0=function(m){return arguments.length?(e=typeof m=="function"?m:We(+m),g):e},g.x1=function(m){return arguments.length?(i=m==null?null:typeof m=="function"?m:We(+m),g):i},g.y=function(m){return arguments.length?(t=typeof m=="function"?m:We(+m),n=null,g):t},g.y0=function(m){return arguments.length?(t=typeof m=="function"?m:We(+m),g):t},g.y1=function(m){return arguments.length?(n=m==null?null:typeof m=="function"?m:We(+m),g):n},g.lineX0=g.lineY0=function(){return p().x(e).y(t)},g.lineY1=function(){return p().x(e).y(n)},g.lineX1=function(){return p().x(i).y(t)},g.defined=function(m){return arguments.length?(o=typeof m=="function"?m:We(!!m),g):o},g.curve=function(m){return arguments.length?(c=m,u!=null&&(f=c(u)),g):c},g.context=function(m){return arguments.length?(m==null?u=f=null:f=c(u=m),g):u},g}class i3{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function DG(e){return new i3(e,!0)}function NG(e){return new i3(e,!1)}const Cz={draw(e,t){const n=Kn(t/rf);e.moveTo(n,0),e.arc(0,0,n,0,kf)}},RG={draw(e,t){const n=Kn(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},a3=Kn(1/3),kz=a3*2,zG={draw(e,t){const n=Kn(t/kz),i=n*a3;e.moveTo(0,-n),e.lineTo(i,0),e.lineTo(0,n),e.lineTo(-i,0),e.closePath()}},LG={draw(e,t){const n=Kn(t),i=-n/2;e.rect(i,i,n,n)}},Az=.8908130915292852,o3=nf(rf/10)/nf(7*rf/10),Dz=nf(kf/10)*o3,Nz=-JE(kf/10)*o3,IG={draw(e,t){const n=Kn(t*Az),i=Dz*n,o=Nz*n;e.moveTo(0,-n),e.lineTo(i,o);for(let u=1;u<5;++u){const c=kf*u/5,f=JE(c),h=nf(c);e.lineTo(h*n,-f*n),e.lineTo(f*i-h*o,h*i+f*o)}e.closePath()}},Ag=Kn(3),qG={draw(e,t){const n=-Kn(t/(Ag*3));e.moveTo(0,n*2),e.lineTo(-Ag*n,-n),e.lineTo(Ag*n,-n),e.closePath()}},En=-.5,xn=Kn(3)/2,i1=1/Kn(12),Rz=(i1/2+1)*3,UG={draw(e,t){const n=Kn(t/Rz),i=n/2,o=n*i1,u=i,c=n*i1+n,f=-u,h=c;e.moveTo(i,o),e.lineTo(u,c),e.lineTo(f,h),e.lineTo(En*i-xn*o,xn*i+En*o),e.lineTo(En*u-xn*c,xn*u+En*c),e.lineTo(En*f-xn*h,xn*f+En*h),e.lineTo(En*i+xn*o,En*o-xn*i),e.lineTo(En*u+xn*c,En*c-xn*u),e.lineTo(En*f+xn*h,En*h-xn*f),e.closePath()}};function jG(e,t){let n=null,i=Z1(o);e=typeof e=="function"?e:We(e||Cz),t=typeof t=="function"?t:We(t===void 0?64:+t);function o(){let u;if(n||(n=u=i()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),u)return n=null,u+""||null}return o.type=function(u){return arguments.length?(e=typeof u=="function"?u:We(u),o):e},o.size=function(u){return arguments.length?(t=typeof u=="function"?u:We(+u),o):t},o.context=function(u){return arguments.length?(n=u??null,o):n},o}function af(){}function of(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function l3(e){this._context=e}l3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:of(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(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;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:of(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function HG(e){return new l3(e)}function u3(e){this._context=e}u3.prototype={areaStart:af,areaEnd:af,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:of(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function BG(e){return new u3(e)}function s3(e){this._context=e}s3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:of(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function PG(e){return new s3(e)}function c3(e){this._context=e}c3.prototype={areaStart:af,areaEnd:af,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function $G(e){return new c3(e)}function FS(e){return e<0?-1:1}function GS(e,t,n){var i=e._x1-e._x0,o=t-e._x1,u=(e._y1-e._y0)/(i||o<0&&-0),c=(n-e._y1)/(o||i<0&&-0),f=(u*o+c*i)/(i+o);return(FS(u)+FS(c))*Math.min(Math.abs(u),Math.abs(c),.5*Math.abs(f))||0}function QS(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Dg(e,t,n){var i=e._x0,o=e._y0,u=e._x1,c=e._y1,f=(u-i)/3;e._context.bezierCurveTo(i+f,o+f*t,u-f,c-f*n,u,c)}function lf(e){this._context=e}lf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Dg(this,this._t0,QS(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Dg(this,QS(this,n=GS(this,e,t)),n);break;default:Dg(this,this._t0,n=GS(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function f3(e){this._context=new h3(e)}(f3.prototype=Object.create(lf.prototype)).point=function(e,t){lf.prototype.point.call(this,t,e)};function h3(e){this._context=e}h3.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,i,o,u){this._context.bezierCurveTo(t,e,i,n,u,o)}};function YG(e){return new lf(e)}function VG(e){return new f3(e)}function d3(e){this._context=e}d3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var i=XS(e),o=XS(t),u=0,c=1;c<n;++u,++c)this._context.bezierCurveTo(i[0][u],o[0][u],i[1][u],o[1][u],e[c],t[c]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function XS(e){var t,n=e.length-1,i,o=new Array(n),u=new Array(n),c=new Array(n);for(o[0]=0,u[0]=2,c[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,u[t]=4,c[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,u[n-1]=7,c[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)i=o[t]/u[t-1],u[t]-=i,c[t]-=i*c[t-1];for(o[n-1]=c[n-1]/u[n-1],t=n-2;t>=0;--t)o[t]=(c[t]-o[t+1])/u[t];for(u[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)u[t]=2*e[t+1]-o[t+1];return[o,u]}function FG(e){return new d3(e)}function Af(e,t){this._context=e,this._t=t}Af.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,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:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function GG(e){return new Af(e,.5)}function QG(e){return new Af(e,0)}function XG(e){return new Af(e,1)}function Mu(e,t){if((c=e.length)>1)for(var n=1,i,o,u=e[t[0]],c,f=u.length;n<c;++n)for(o=u,u=e[t[n]],i=0;i<f;++i)u[i][1]+=u[i][0]=isNaN(o[i][1])?o[i][0]:o[i][1]}function KS(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function zz(e,t){return e[t]}function Lz(e){const t=[];return t.key=e,t}function KG(){var e=We([]),t=KS,n=Mu,i=zz;function o(u){var c=Array.from(e.apply(this,arguments),Lz),f,h=c.length,g=-1,p;for(const m of u)for(f=0,++g;f<h;++f)(c[f][g]=[0,+i(m,c[f].key,g,u)]).data=m;for(f=0,p=J1(t(c));f<h;++f)c[p[f]].index=f;return n(c,p),c}return o.keys=function(u){return arguments.length?(e=typeof u=="function"?u:We(Array.from(u)),o):e},o.value=function(u){return arguments.length?(i=typeof u=="function"?u:We(+u),o):i},o.order=function(u){return arguments.length?(t=u==null?KS:typeof u=="function"?u:We(Array.from(u)),o):t},o.offset=function(u){return arguments.length?(n=u??Mu,o):n},o}function ZG(e,t){if((i=e.length)>0){for(var n,i,o=0,u=e[0].length,c;o<u;++o){for(c=n=0;n<i;++n)c+=e[n][o][1]||0;if(c)for(n=0;n<i;++n)e[n][o][1]/=c}Mu(e,t)}}function JG(e,t){if((o=e.length)>0){for(var n=0,i=e[t[0]],o,u=i.length;n<u;++n){for(var c=0,f=0;c<o;++c)f+=e[c][n][1]||0;i[n][1]+=i[n][0]=-f/2}Mu(e,t)}}function WG(e,t){if(!(!((c=e.length)>0)||!((u=(o=e[t[0]]).length)>0))){for(var n=0,i=1,o,u,c;i<u;++i){for(var f=0,h=0,g=0;f<c;++f){for(var p=e[t[f]],m=p[i][1]||0,v=p[i-1][1]||0,S=(m-v)/2,M=0;M<f;++M){var b=e[t[M]],w=b[i][1]||0,E=b[i-1][1]||0;S+=w-E}h+=m,g+=S*m}o[i-1][1]+=o[i-1][0]=n,h&&(n-=g/h)}o[i-1][1]+=o[i-1][0]=n,Mu(e,t)}}var Ng={},Rg={},ZS;function Iz(){return ZS||(ZS=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(Rg)),Rg}var zg={},JS;function g3(){return JS||(JS=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t})(zg)),zg}var Lg={},WS;function W1(){return WS||(WS=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var i;return typeof n=="string"||typeof n=="symbol"?n:Object.is((i=n==null?void 0:n.valueOf)==null?void 0:i.call(n),-0)?"-0":String(n)}e.toKey=t})(Lg)),Lg}var Ig={},qg={},e_;function qz(){return e_||(e_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(n==null)return"";if(typeof n=="string")return n;if(Array.isArray(n))return n.map(t).join(",");const i=String(n);return i==="0"&&Object.is(Number(n),-0)?"-0":i}e.toString=t})(qg)),qg}var t_;function ey(){return t_||(t_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=qz(),n=W1();function i(o){if(Array.isArray(o))return o.map(n.toKey);if(typeof o=="symbol")return[o];o=t.toString(o);const u=[],c=o.length;if(c===0)return u;let f=0,h="",g="",p=!1;for(o.charCodeAt(0)===46&&(u.push(""),f++);f<c;){const m=o[f];g?m==="\\"&&f+1<c?(f++,h+=o[f]):m===g?g="":h+=m:p?m==='"'||m==="'"?g=m:m==="]"?(p=!1,u.push(h),h=""):h+=m:m==="["?(p=!0,h&&(u.push(h),h="")):m==="."?h&&(u.push(h),h=""):h+=m,f++}return h&&u.push(h),u}e.toPath=i})(Ig)),Ig}var n_;function ty(){return n_||(n_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Iz(),n=g3(),i=W1(),o=ey();function u(f,h,g){if(f==null)return g;switch(typeof h){case"string":{if(t.isUnsafeProperty(h))return g;const p=f[h];return p===void 0?n.isDeepKey(h)?u(f,o.toPath(h),g):g:p}case"number":case"symbol":{typeof h=="number"&&(h=i.toKey(h));const p=f[h];return p===void 0?g:p}default:{if(Array.isArray(h))return c(f,h,g);if(Object.is(h==null?void 0:h.valueOf(),-0)?h="-0":h=String(h),t.isUnsafeProperty(h))return g;const p=f[h];return p===void 0?g:p}}}function c(f,h,g){if(h.length===0)return g;let p=f;for(let m=0;m<h.length;m++){if(p==null||t.isUnsafeProperty(h[m]))return g;p=p[h[m]]}return p===void 0?g:p}e.get=u})(Ng)),Ng}var Ug,r_;function Uz(){return r_||(r_=1,Ug=ty().get),Ug}var jz=Uz();const eQ=Zt(jz);var jg={},Hg={},i_;function Hz(){return i_||(i_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,i){const o=new Map;for(let u=0;u<n.length;u++){const c=n[u],f=i(c,u,n);o.has(f)||o.set(f,c)}return Array.from(o.values())}e.uniqBy=t})(Hg)),Hg}var Bg={},a_;function Bz(){return a_||(a_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,i){return function(...o){return n.apply(this,o.slice(0,i))}}e.ary=t})(Bg)),Bg}var Pg={},o_;function p3(){return o_||(o_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(Pg)),Pg}var $g={},Yg={},Vg={},l_;function Pz(){return l_||(l_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(Vg)),Vg}var u_;function ny(){return u_||(u_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Pz();function n(i){return i!=null&&typeof i!="function"&&t.isLength(i.length)}e.isArrayLike=n})(Yg)),Yg}var Fg={},s_;function $z(){return s_||(s_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(Fg)),Fg}var c_;function Yz(){return c_||(c_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ny(),n=$z();function i(o){return n.isObjectLike(o)&&t.isArrayLike(o)}e.isArrayLikeObject=i})($g)),$g}var Gg={},Qg={},f_;function Vz(){return f_||(f_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ty();function n(i){return function(o){return t.get(o,i)}}e.property=n})(Qg)),Qg}var Xg={},Kg={},Zg={},Jg={},h_;function y3(){return h_||(h_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t})(Jg)),Jg}var Wg={},d_;function m3(){return d_||(d_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t})(Wg)),Wg}var e0={},g_;function v3(){return g_||(g_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,i){return n===i||Number.isNaN(n)&&Number.isNaN(i)}e.isEqualsSameValueZero=t})(e0)),e0}var p_;function Fz(){return p_||(p_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=y3(),n=m3(),i=v3();function o(p,m,v){return typeof v!="function"?o(p,m,()=>{}):u(p,m,function S(M,b,w,E,A,k){const T=v(M,b,w,E,A,k);return T!==void 0?!!T:u(M,b,S,k)},new Map)}function u(p,m,v,S){if(m===p)return!0;switch(typeof m){case"object":return c(p,m,v,S);case"function":return Object.keys(m).length>0?u(p,{...m},v,S):i.isEqualsSameValueZero(p,m);default:return t.isObject(p)?typeof m=="string"?m==="":!0:i.isEqualsSameValueZero(p,m)}}function c(p,m,v,S){if(m==null)return!0;if(Array.isArray(m))return h(p,m,v,S);if(m instanceof Map)return f(p,m,v,S);if(m instanceof Set)return g(p,m,v,S);const M=Object.keys(m);if(p==null||n.isPrimitive(p))return M.length===0;if(M.length===0)return!0;if(S!=null&&S.has(m))return S.get(m)===p;S==null||S.set(m,p);try{for(let b=0;b<M.length;b++){const w=M[b];if(!n.isPrimitive(p)&&!(w in p)||m[w]===void 0&&p[w]!==void 0||m[w]===null&&p[w]!==null||!v(p[w],m[w],w,p,m,S))return!1}return!0}finally{S==null||S.delete(m)}}function f(p,m,v,S){if(m.size===0)return!0;if(!(p instanceof Map))return!1;for(const[M,b]of m.entries()){const w=p.get(M);if(v(w,b,M,p,m,S)===!1)return!1}return!0}function h(p,m,v,S){if(m.length===0)return!0;if(!Array.isArray(p))return!1;const M=new Set;for(let b=0;b<m.length;b++){const w=m[b];let E=!1;for(let A=0;A<p.length;A++){if(M.has(A))continue;const k=p[A];let T=!1;if(v(k,w,b,p,m,S)&&(T=!0),T){M.add(A),E=!0;break}}if(!E)return!1}return!0}function g(p,m,v,S){return m.size===0?!0:p instanceof Set?h([...p],[...m],v,S):!1}e.isMatchWith=o,e.isSetMatch=g})(Zg)),Zg}var y_;function b3(){return y_||(y_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Fz();function n(i,o){return t.isMatchWith(i,o,()=>{})}e.isMatch=n})(Kg)),Kg}var t0={},n0={},r0={},m_;function Gz(){return m_||(m_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(i=>Object.prototype.propertyIsEnumerable.call(n,i))}e.getSymbols=t})(r0)),r0}var i0={},v_;function ry(){return v_||(v_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t})(i0)),i0}var a0={},b_;function S3(){return b_||(b_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",i="[object Number]",o="[object Boolean]",u="[object Arguments]",c="[object Symbol]",f="[object Date]",h="[object Map]",g="[object Set]",p="[object Array]",m="[object Function]",v="[object ArrayBuffer]",S="[object Object]",M="[object Error]",b="[object DataView]",w="[object Uint8Array]",E="[object Uint8ClampedArray]",A="[object Uint16Array]",k="[object Uint32Array]",T="[object BigUint64Array]",C="[object Int8Array]",O="[object Int16Array]",D="[object Int32Array]",N="[object BigInt64Array]",P="[object Float32Array]",Z="[object Float64Array]";e.argumentsTag=u,e.arrayBufferTag=v,e.arrayTag=p,e.bigInt64ArrayTag=N,e.bigUint64ArrayTag=T,e.booleanTag=o,e.dataViewTag=b,e.dateTag=f,e.errorTag=M,e.float32ArrayTag=P,e.float64ArrayTag=Z,e.functionTag=m,e.int16ArrayTag=O,e.int32ArrayTag=D,e.int8ArrayTag=C,e.mapTag=h,e.numberTag=i,e.objectTag=S,e.regexpTag=t,e.setTag=g,e.stringTag=n,e.symbolTag=c,e.uint16ArrayTag=A,e.uint32ArrayTag=k,e.uint8ArrayTag=w,e.uint8ClampedArrayTag=E})(a0)),a0}var o0={},S_;function Qz(){return S_||(S_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(o0)),o0}var __;function _3(){return __||(__=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Gz(),n=ry(),i=S3(),o=m3(),u=Qz();function c(p,m){return f(p,void 0,p,new Map,m)}function f(p,m,v,S=new Map,M=void 0){const b=M==null?void 0:M(p,m,v,S);if(b!==void 0)return b;if(o.isPrimitive(p))return p;if(S.has(p))return S.get(p);if(Array.isArray(p)){const w=new Array(p.length);S.set(p,w);for(let E=0;E<p.length;E++)w[E]=f(p[E],E,v,S,M);return Object.hasOwn(p,"index")&&(w.index=p.index),Object.hasOwn(p,"input")&&(w.input=p.input),w}if(p instanceof Date)return new Date(p.getTime());if(p instanceof RegExp){const w=new RegExp(p.source,p.flags);return w.lastIndex=p.lastIndex,w}if(p instanceof Map){const w=new Map;S.set(p,w);for(const[E,A]of p)w.set(E,f(A,E,v,S,M));return w}if(p instanceof Set){const w=new Set;S.set(p,w);for(const E of p)w.add(f(E,void 0,v,S,M));return w}if(typeof Buffer<"u"&&Buffer.isBuffer(p))return p.subarray();if(u.isTypedArray(p)){const w=new(Object.getPrototypeOf(p)).constructor(p.length);S.set(p,w);for(let E=0;E<p.length;E++)w[E]=f(p[E],E,v,S,M);return w}if(p instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&p instanceof SharedArrayBuffer)return p.slice(0);if(p instanceof DataView){const w=new DataView(p.buffer.slice(0),p.byteOffset,p.byteLength);return S.set(p,w),h(w,p,v,S,M),w}if(typeof File<"u"&&p instanceof File){const w=new File([p],p.name,{type:p.type});return S.set(p,w),h(w,p,v,S,M),w}if(typeof Blob<"u"&&p instanceof Blob){const w=new Blob([p],{type:p.type});return S.set(p,w),h(w,p,v,S,M),w}if(p instanceof Error){const w=structuredClone(p);return S.set(p,w),w.message=p.message,w.name=p.name,w.stack=p.stack,w.cause=p.cause,w.constructor=p.constructor,h(w,p,v,S,M),w}if(p instanceof Boolean){const w=new Boolean(p.valueOf());return S.set(p,w),h(w,p,v,S,M),w}if(p instanceof Number){const w=new Number(p.valueOf());return S.set(p,w),h(w,p,v,S,M),w}if(p instanceof String){const w=new String(p.valueOf());return S.set(p,w),h(w,p,v,S,M),w}if(typeof p=="object"&&g(p)){const w=Object.create(Object.getPrototypeOf(p));return S.set(p,w),h(w,p,v,S,M),w}return p}function h(p,m,v=p,S,M){const b=[...Object.keys(m),...t.getSymbols(m)];for(let w=0;w<b.length;w++){const E=b[w],A=Object.getOwnPropertyDescriptor(p,E);(A==null||A.writable)&&(p[E]=f(m[E],E,v,S,M))}}function g(p){switch(n.getTag(p)){case i.argumentsTag:case i.arrayTag:case i.arrayBufferTag:case i.dataViewTag:case i.booleanTag:case i.dateTag:case i.float32ArrayTag:case i.float64ArrayTag:case i.int8ArrayTag:case i.int16ArrayTag:case i.int32ArrayTag:case i.mapTag:case i.numberTag:case i.objectTag:case i.regexpTag:case i.setTag:case i.stringTag:case i.symbolTag:case i.uint8ArrayTag:case i.uint8ClampedArrayTag:case i.uint16ArrayTag:case i.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=c,e.cloneDeepWithImpl=f,e.copyProperties=h})(n0)),n0}var w_;function Xz(){return w_||(w_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_3();function n(i){return t.cloneDeepWithImpl(i,void 0,i,new Map,void 0)}e.cloneDeep=n})(t0)),t0}var M_;function Kz(){return M_||(M_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=b3(),n=Xz();function i(o){return o=n.cloneDeep(o),u=>t.isMatch(u,o)}e.matches=i})(Xg)),Xg}var l0={},u0={},s0={},T_;function Zz(){return T_||(T_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_3(),n=ry(),i=S3();function o(u,c){return t.cloneDeepWith(u,(f,h,g,p)=>{const m=c==null?void 0:c(f,h,g,p);if(m!==void 0)return m;if(typeof u=="object"){if(n.getTag(u)===i.objectTag&&typeof u.constructor!="function"){const v={};return p.set(u,v),t.copyProperties(v,u,g,p),v}switch(Object.prototype.toString.call(u)){case i.numberTag:case i.stringTag:case i.booleanTag:{const v=new u.constructor(u==null?void 0:u.valueOf());return t.copyProperties(v,u),v}case i.argumentsTag:{const v={};return t.copyProperties(v,u),v.length=u.length,v[Symbol.iterator]=u[Symbol.iterator],v}default:return}}})}e.cloneDeepWith=o})(s0)),s0}var E_;function Jz(){return E_||(E_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Zz();function n(i){return t.cloneDeepWith(i)}e.cloneDeep=n})(u0)),u0}var c0={},f0={},x_;function w3(){return x_||(x_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(i,o=Number.MAX_SAFE_INTEGER){switch(typeof i){case"number":return Number.isInteger(i)&&i>=0&&i<o;case"symbol":return!1;case"string":return t.test(i)}}e.isIndex=n})(f0)),f0}var h0={},O_;function Wz(){return O_||(O_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ry();function n(i){return i!==null&&typeof i=="object"&&t.getTag(i)==="[object Arguments]"}e.isArguments=n})(h0)),h0}var C_;function eL(){return C_||(C_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=g3(),n=w3(),i=Wz(),o=ey();function u(c,f){let h;if(Array.isArray(f)?h=f:typeof f=="string"&&t.isDeepKey(f)&&(c==null?void 0:c[f])==null?h=o.toPath(f):h=[f],h.length===0)return!1;let g=c;for(let p=0;p<h.length;p++){const m=h[p];if((g==null||!Object.hasOwn(g,m))&&!((Array.isArray(g)||i.isArguments(g))&&n.isIndex(m)&&m<g.length))return!1;g=g[m]}return!0}e.has=u})(c0)),c0}var k_;function tL(){return k_||(k_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=b3(),n=W1(),i=Jz(),o=ty(),u=eL();function c(f,h){switch(typeof f){case"object":{Object.is(f==null?void 0:f.valueOf(),-0)&&(f="-0");break}case"number":{f=n.toKey(f);break}}return h=i.cloneDeep(h),function(g){const p=o.get(g,f);return p===void 0?u.has(g,f):h===void 0?p===void 0:t.isMatch(p,h)}}e.matchesProperty=c})(l0)),l0}var A_;function nL(){return A_||(A_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=p3(),n=Vz(),i=Kz(),o=tL();function u(c){if(c==null)return t.identity;switch(typeof c){case"function":return c;case"object":return Array.isArray(c)&&c.length===2?o.matchesProperty(c[0],c[1]):i.matches(c);case"string":case"symbol":case"number":return n.property(c)}}e.iteratee=u})(Gg)),Gg}var D_;function rL(){return D_||(D_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Hz(),n=Bz(),i=p3(),o=Yz(),u=nL();function c(f,h=i.identity){return o.isArrayLikeObject(f)?t.uniqBy(Array.from(f),n.ary(u.iteratee(h),1)):[]}e.uniqBy=c})(jg)),jg}var d0,N_;function iL(){return N_||(N_=1,d0=rL().uniqBy),d0}var aL=iL();const tQ=Zt(aL);var g0={},p0={},y0={},R_;function oL(){return R_||(R_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(i){return typeof i=="symbol"?1:i===null?2:i===void 0?3:i!==i?4:0}const n=(i,o,u)=>{if(i!==o){const c=t(i),f=t(o);if(c===f&&c===0){if(i<o)return u==="desc"?1:-1;if(i>o)return u==="desc"?-1:1}return u==="desc"?f-c:c-f}return 0};e.compareValues=n})(y0)),y0}var m0={},v0={},z_;function M3(){return z_||(z_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t})(v0)),v0}var L_;function lL(){return L_||(L_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=M3(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;function o(u,c){return Array.isArray(u)?!1:typeof u=="number"||typeof u=="boolean"||u==null||t.isSymbol(u)?!0:typeof u=="string"&&(i.test(u)||!n.test(u))||c!=null&&Object.hasOwn(c,u)}e.isKey=o})(m0)),m0}var I_;function uL(){return I_||(I_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oL(),n=lL(),i=ey();function o(u,c,f,h){if(u==null)return[];f=h?void 0:f,Array.isArray(u)||(u=Object.values(u)),Array.isArray(c)||(c=c==null?[null]:[c]),c.length===0&&(c=[null]),Array.isArray(f)||(f=f==null?[]:[f]),f=f.map(S=>String(S));const g=(S,M)=>{let b=S;for(let w=0;w<M.length&&b!=null;++w)b=b[M[w]];return b},p=(S,M)=>M==null||S==null?M:typeof S=="object"&&"key"in S?Object.hasOwn(M,S.key)?M[S.key]:g(M,S.path):typeof S=="function"?S(M):Array.isArray(S)?g(M,S):typeof M=="object"?M[S]:M,m=c.map(S=>(Array.isArray(S)&&S.length===1&&(S=S[0]),S==null||typeof S=="function"||Array.isArray(S)||n.isKey(S)?S:{key:S,path:i.toPath(S)}));return u.map(S=>({original:S,criteria:m.map(M=>p(M,S))})).slice().sort((S,M)=>{for(let b=0;b<m.length;b++){const w=t.compareValues(S.criteria[b],M.criteria[b],f[b]);if(w!==0)return w}return 0}).map(S=>S.original)}e.orderBy=o})(p0)),p0}var b0={},q_;function sL(){return q_||(q_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,i=1){const o=[],u=Math.floor(i),c=(f,h)=>{for(let g=0;g<f.length;g++){const p=f[g];Array.isArray(p)&&h<u?c(p,h+1):o.push(p)}};return c(n,0),o}e.flatten=t})(b0)),b0}var S0={},U_;function T3(){return U_||(U_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=w3(),n=ny(),i=y3(),o=v3();function u(c,f,h){return i.isObject(h)&&(typeof f=="number"&&n.isArrayLike(h)&&t.isIndex(f)&&f<h.length||typeof f=="string"&&f in h)?o.isEqualsSameValueZero(h[f],c):!1}e.isIterateeCall=u})(S0)),S0}var j_;function cL(){return j_||(j_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=uL(),n=sL(),i=T3();function o(u,...c){const f=c.length;return f>1&&i.isIterateeCall(u,c[0],c[1])?c=[]:f>2&&i.isIterateeCall(c[0],c[1],c[2])&&(c=[c[0]]),t.orderBy(u,n.flatten(c),["asc"])}e.sortBy=o})(g0)),g0}var _0,H_;function fL(){return H_||(H_=1,_0=cL().sortBy),_0}var hL=fL();const nQ=Zt(hL);var w0={},M0={},T0={},B_;function dL(){return B_||(B_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,i,{signal:o,edges:u}={}){let c,f=null;const h=u!=null&&u.includes("leading"),g=u==null||u.includes("trailing"),p=()=>{f!==null&&(n.apply(c,f),c=void 0,f=null)},m=()=>{g&&p(),b()};let v=null;const S=()=>{v!=null&&clearTimeout(v),v=setTimeout(()=>{v=null,m()},i)},M=()=>{v!==null&&(clearTimeout(v),v=null)},b=()=>{M(),c=void 0,f=null},w=()=>{p()},E=function(...A){if(o!=null&&o.aborted)return;c=this,f=A;const k=v==null;S(),h&&k&&p()};return E.schedule=S,E.cancel=b,E.flush=w,o==null||o.addEventListener("abort",b,{once:!0}),E}e.debounce=t})(T0)),T0}var P_;function gL(){return P_||(P_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dL();function n(i,o=0,u={}){typeof u!="object"&&(u={});const{leading:c=!1,trailing:f=!0,maxWait:h}=u,g=Array(2);c&&(g[0]="leading"),f&&(g[1]="trailing");let p,m=null;const v=t.debounce(function(...b){p=i.apply(this,b),m=null},o,{edges:g}),S=function(...b){return h!=null&&(m===null&&(m=Date.now()),Date.now()-m>=h)?(p=i.apply(this,b),m=Date.now(),v.cancel(),v.schedule(),p):(v.apply(this,b),p)},M=()=>(v.flush(),p);return S.cancel=v.cancel,S.flush=M,S}e.debounce=n})(M0)),M0}var $_;function pL(){return $_||($_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gL();function n(i,o=0,u={}){const{leading:c=!0,trailing:f=!0}=u;return t.debounce(i,o,{leading:c,maxWait:o,trailing:f})}e.throttle=n})(w0)),w0}var E0,Y_;function yL(){return Y_||(Y_=1,E0=pL().throttle),E0}var mL=yL();const rQ=Zt(mL);var E3=Symbol.for("immer-nothing"),V_=Symbol.for("immer-draftable"),hn=Symbol.for("immer-state");function Fn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Tu=Object.getPrototypeOf;function Fo(e){return!!e&&!!e[hn]}function xa(e){var t;return e?x3(e)||Array.isArray(e)||!!e[V_]||!!((t=e.constructor)!=null&&t[V_])||ju(e)||Nf(e):!1}var vL=Object.prototype.constructor.toString(),F_=new WeakMap;function x3(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let i=F_.get(n);return i===void 0&&(i=Function.toString.call(n),F_.set(n,i)),i===vL}function uf(e,t,n=!0){Df(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((i,o)=>t(o,i,e))}function Df(e){const t=e[hn];return t?t.type_:Array.isArray(e)?1:ju(e)?2:Nf(e)?3:0}function a1(e,t){return Df(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function O3(e,t,n){const i=Df(e);i===2?e.set(t,n):i===3?e.add(n):e[t]=n}function bL(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function ju(e){return e instanceof Map}function Nf(e){return e instanceof Set}function oa(e){return e.copy_||e.base_}function o1(e,t){if(ju(e))return new Map(e);if(Nf(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=x3(e);if(t===!0||t==="class_only"&&!n){const i=Object.getOwnPropertyDescriptors(e);delete i[hn];let o=Reflect.ownKeys(i);for(let u=0;u<o.length;u++){const c=o[u],f=i[c];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(i[c]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[c]})}return Object.create(Tu(e),i)}else{const i=Tu(e);if(i!==null&&n)return{...e};const o=Object.create(i);return Object.assign(o,e)}}function iy(e,t=!1){return Rf(e)||Fo(e)||!xa(e)||(Df(e)>1&&Object.defineProperties(e,{set:bc,add:bc,clear:bc,delete:bc}),Object.freeze(e),t&&Object.values(e).forEach(n=>iy(n,!0))),e}function SL(){Fn(2)}var bc={value:SL};function Rf(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var _L={};function Oa(e){const t=_L[e];return t||Fn(0,e),t}var Eu;function C3(){return Eu}function wL(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function G_(e,t){t&&(Oa("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function l1(e){u1(e),e.drafts_.forEach(ML),e.drafts_=null}function u1(e){e===Eu&&(Eu=e.parent_)}function Q_(e){return Eu=wL(Eu,e)}function ML(e){const t=e[hn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function X_(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[hn].modified_&&(l1(t),Fn(4)),xa(e)&&(e=sf(t,e),t.parent_||cf(t,e)),t.patches_&&Oa("Patches").generateReplacementPatches_(n[hn].base_,e,t.patches_,t.inversePatches_)):e=sf(t,n,[]),l1(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==E3?e:void 0}function sf(e,t,n){if(Rf(t))return t;const i=e.immer_.shouldUseStrictIteration(),o=t[hn];if(!o)return uf(t,(u,c)=>K_(e,o,t,u,c,n),i),t;if(o.scope_!==e)return t;if(!o.modified_)return cf(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const u=o.copy_;let c=u,f=!1;o.type_===3&&(c=new Set(u),u.clear(),f=!0),uf(c,(h,g)=>K_(e,o,u,h,g,n,f),i),cf(e,u,!1),n&&e.patches_&&Oa("Patches").generatePatches_(o,n,e.patches_,e.inversePatches_)}return o.copy_}function K_(e,t,n,i,o,u,c){if(o==null||typeof o!="object"&&!c)return;const f=Rf(o);if(!(f&&!c)){if(Fo(o)){const h=u&&t&&t.type_!==3&&!a1(t.assigned_,i)?u.concat(i):void 0,g=sf(e,o,h);if(O3(n,i,g),Fo(g))e.canAutoFreeze_=!1;else return}else c&&n.add(o);if(xa(o)&&!f){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[i]===o&&f)return;sf(e,o),(!t||!t.scope_.parent_)&&typeof i!="symbol"&&(ju(n)?n.has(i):Object.prototype.propertyIsEnumerable.call(n,i))&&cf(e,o)}}}function cf(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&iy(t,n)}function TL(e,t){const n=Array.isArray(e),i={type_:n?1:0,scope_:t?t.scope_:C3(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=i,u=ay;n&&(o=[i],u=xu);const{revoke:c,proxy:f}=Proxy.revocable(o,u);return i.draft_=f,i.revoke_=c,f}var ay={get(e,t){if(t===hn)return e;const n=oa(e);if(!a1(n,t))return EL(e,n,t);const i=n[t];return e.finalized_||!xa(i)?i:i===x0(e.base_,t)?(O0(e),e.copy_[t]=c1(i,e)):i},has(e,t){return t in oa(e)},ownKeys(e){return Reflect.ownKeys(oa(e))},set(e,t,n){const i=k3(oa(e),t);if(i!=null&&i.set)return i.set.call(e.draft_,n),!0;if(!e.modified_){const o=x0(oa(e),t),u=o==null?void 0:o[hn];if(u&&u.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(bL(n,o)&&(n!==void 0||a1(e.base_,t)))return!0;O0(e),s1(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return x0(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,O0(e),s1(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=oa(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:i.enumerable,value:n[t]}},defineProperty(){Fn(11)},getPrototypeOf(e){return Tu(e.base_)},setPrototypeOf(){Fn(12)}},xu={};uf(ay,(e,t)=>{xu[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});xu.deleteProperty=function(e,t){return xu.set.call(this,e,t,void 0)};xu.set=function(e,t,n){return ay.set.call(this,e[0],t,n,e[0])};function x0(e,t){const n=e[hn];return(n?oa(n):e)[t]}function EL(e,t,n){var o;const i=k3(t,n);return i?"value"in i?i.value:(o=i.get)==null?void 0:o.call(e.draft_):void 0}function k3(e,t){if(!(t in e))return;let n=Tu(e);for(;n;){const i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Tu(n)}}function s1(e){e.modified_||(e.modified_=!0,e.parent_&&s1(e.parent_))}function O0(e){e.copy_||(e.copy_=o1(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var xL=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,i)=>{if(typeof t=="function"&&typeof n!="function"){const u=n;n=t;const c=this;return function(h=u,...g){return c.produce(h,p=>n.call(this,p,...g))}}typeof n!="function"&&Fn(6),i!==void 0&&typeof i!="function"&&Fn(7);let o;if(xa(t)){const u=Q_(this),c=c1(t,void 0);let f=!0;try{o=n(c),f=!1}finally{f?l1(u):u1(u)}return G_(u,i),X_(o,u)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===E3&&(o=void 0),this.autoFreeze_&&iy(o,!0),i){const u=[],c=[];Oa("Patches").generateReplacementPatches_(t,o,u,c),i(u,c)}return o}else Fn(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(c,...f)=>this.produceWithPatches(c,h=>t(h,...f));let i,o;return[this.produce(t,n,(c,f)=>{i=c,o=f}),i,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){xa(e)||Fn(8),Fo(e)&&(e=OL(e));const t=Q_(this),n=c1(e,void 0);return n[hn].isManual_=!0,u1(t),n}finishDraft(e,t){const n=e&&e[hn];(!n||!n.isManual_)&&Fn(9);const{scope_:i}=n;return G_(i,t),X_(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const i=Oa("Patches").applyPatches_;return Fo(e)?i(e,t):this.produce(e,o=>i(o,t))}};function c1(e,t){const n=ju(e)?Oa("MapSet").proxyMap_(e,t):Nf(e)?Oa("MapSet").proxySet_(e,t):TL(e,t);return(t?t.scope_:C3()).drafts_.push(n),n}function OL(e){return Fo(e)||Fn(10,e),A3(e)}function A3(e){if(!xa(e)||Rf(e))return e;const t=e[hn];let n,i=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=o1(e,t.scope_.immer_.useStrictShallowCopy_),i=t.scope_.immer_.shouldUseStrictIteration()}else n=o1(e,!0);return uf(n,(o,u)=>{O3(n,o,A3(u))},i),t&&(t.finalized_=!1),n}var CL=new xL;CL.produce;function iQ(e){return e}var C0={},k0={},A0={},Z_;function kL(){return Z_||(Z_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=M3();function n(i){return t.isSymbol(i)?NaN:Number(i)}e.toNumber=n})(A0)),A0}var J_;function AL(){return J_||(J_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=kL();function n(i){return i?(i=t.toNumber(i),i===1/0||i===-1/0?(i<0?-1:1)*Number.MAX_VALUE:i===i?i:0):i===0?i:0}e.toFinite=n})(k0)),k0}var W_;function DL(){return W_||(W_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=T3(),n=AL();function i(o,u,c){c&&typeof c!="number"&&t.isIterateeCall(o,u,c)&&(u=c=void 0),o=n.toFinite(o),u===void 0?(u=o,o=0):u=n.toFinite(u),c=c===void 0?o<u?1:-1:n.toFinite(c);const f=Math.max(Math.ceil((u-o)/(c||1)),0),h=new Array(f);for(let g=0;g<f;g++)h[g]=o,o+=c;return h}e.range=i})(C0)),C0}var D0,ew;function NL(){return ew||(ew=1,D0=DL().range),D0}var RL=NL();const aQ=Zt(RL);var il=1e9,zL={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},ly,it=!0,Ln="[DecimalError] ",wa=Ln+"Invalid argument: ",oy=Ln+"Exponent out of range: ",al=Math.floor,la=Math.pow,LL=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,cn,Tt=1e7,nt=7,D3=9007199254740991,ff=al(D3/nt),de={};de.absoluteValue=de.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};de.comparedTo=de.cmp=function(e){var t,n,i,o,u=this;if(e=new u.constructor(e),u.s!==e.s)return u.s||-e.s;if(u.e!==e.e)return u.e>e.e^u.s<0?1:-1;for(i=u.d.length,o=e.d.length,t=0,n=i<o?i:o;t<n;++t)if(u.d[t]!==e.d[t])return u.d[t]>e.d[t]^u.s<0?1:-1;return i===o?0:i>o^u.s<0?1:-1};de.decimalPlaces=de.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*nt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};de.dividedBy=de.div=function(e){return Pr(this,new this.constructor(e))};de.dividedToIntegerBy=de.idiv=function(e){var t=this,n=t.constructor;return Je(Pr(t,new n(e),0,1),n.precision)};de.equals=de.eq=function(e){return!this.cmp(e)};de.exponent=function(){return yt(this)};de.greaterThan=de.gt=function(e){return this.cmp(e)>0};de.greaterThanOrEqualTo=de.gte=function(e){return this.cmp(e)>=0};de.isInteger=de.isint=function(){return this.e>this.d.length-2};de.isNegative=de.isneg=function(){return this.s<0};de.isPositive=de.ispos=function(){return this.s>0};de.isZero=function(){return this.s===0};de.lessThan=de.lt=function(e){return this.cmp(e)<0};de.lessThanOrEqualTo=de.lte=function(e){return this.cmp(e)<1};de.logarithm=de.log=function(e){var t,n=this,i=n.constructor,o=i.precision,u=o+5;if(e===void 0)e=new i(10);else if(e=new i(e),e.s<1||e.eq(cn))throw Error(Ln+"NaN");if(n.s<1)throw Error(Ln+(n.s?"NaN":"-Infinity"));return n.eq(cn)?new i(0):(it=!1,t=Pr(Ou(n,u),Ou(e,u),u),it=!0,Je(t,o))};de.minus=de.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?z3(t,e):N3(t,(e.s=-e.s,e))};de.modulo=de.mod=function(e){var t,n=this,i=n.constructor,o=i.precision;if(e=new i(e),!e.s)throw Error(Ln+"NaN");return n.s?(it=!1,t=Pr(n,e,0,1).times(e),it=!0,n.minus(t)):Je(new i(n),o)};de.naturalExponential=de.exp=function(){return R3(this)};de.naturalLogarithm=de.ln=function(){return Ou(this)};de.negated=de.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};de.plus=de.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?N3(t,e):z3(t,(e.s=-e.s,e))};de.precision=de.sd=function(e){var t,n,i,o=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(wa+e);if(t=yt(o)+1,i=o.d.length-1,n=i*nt+1,i=o.d[i],i){for(;i%10==0;i/=10)n--;for(i=o.d[0];i>=10;i/=10)n++}return e&&t>n?t:n};de.squareRoot=de.sqrt=function(){var e,t,n,i,o,u,c,f=this,h=f.constructor;if(f.s<1){if(!f.s)return new h(0);throw Error(Ln+"NaN")}for(e=yt(f),it=!1,o=Math.sqrt(+f),o==0||o==1/0?(t=or(f.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=al((e+1)/2)-(e<0||e%2),o==1/0?t="5e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),i=new h(t)):i=new h(o.toString()),n=h.precision,o=c=n+3;;)if(u=i,i=u.plus(Pr(f,u,c+2)).times(.5),or(u.d).slice(0,c)===(t=or(i.d)).slice(0,c)){if(t=t.slice(c-3,c+1),o==c&&t=="4999"){if(Je(u,n+1,0),u.times(u).eq(f)){i=u;break}}else if(t!="9999")break;c+=4}return it=!0,Je(i,n)};de.times=de.mul=function(e){var t,n,i,o,u,c,f,h,g,p=this,m=p.constructor,v=p.d,S=(e=new m(e)).d;if(!p.s||!e.s)return new m(0);for(e.s*=p.s,n=p.e+e.e,h=v.length,g=S.length,h<g&&(u=v,v=S,S=u,c=h,h=g,g=c),u=[],c=h+g,i=c;i--;)u.push(0);for(i=g;--i>=0;){for(t=0,o=h+i;o>i;)f=u[o]+S[i]*v[o-i-1]+t,u[o--]=f%Tt|0,t=f/Tt|0;u[o]=(u[o]+t)%Tt|0}for(;!u[--c];)u.pop();return t?++n:u.shift(),e.d=u,e.e=n,it?Je(e,m.precision):e};de.toDecimalPlaces=de.todp=function(e,t){var n=this,i=n.constructor;return n=new i(n),e===void 0?n:(ur(e,0,il),t===void 0?t=i.rounding:ur(t,0,8),Je(n,e+yt(n)+1,t))};de.toExponential=function(e,t){var n,i=this,o=i.constructor;return e===void 0?n=Ca(i,!0):(ur(e,0,il),t===void 0?t=o.rounding:ur(t,0,8),i=Je(new o(i),e+1,t),n=Ca(i,!0,e+1)),n};de.toFixed=function(e,t){var n,i,o=this,u=o.constructor;return e===void 0?Ca(o):(ur(e,0,il),t===void 0?t=u.rounding:ur(t,0,8),i=Je(new u(o),e+yt(o)+1,t),n=Ca(i.abs(),!1,e+yt(i)+1),o.isneg()&&!o.isZero()?"-"+n:n)};de.toInteger=de.toint=function(){var e=this,t=e.constructor;return Je(new t(e),yt(e)+1,t.rounding)};de.toNumber=function(){return+this};de.toPower=de.pow=function(e){var t,n,i,o,u,c,f=this,h=f.constructor,g=12,p=+(e=new h(e));if(!e.s)return new h(cn);if(f=new h(f),!f.s){if(e.s<1)throw Error(Ln+"Infinity");return f}if(f.eq(cn))return f;if(i=h.precision,e.eq(cn))return Je(f,i);if(t=e.e,n=e.d.length-1,c=t>=n,u=f.s,c){if((n=p<0?-p:p)<=D3){for(o=new h(cn),t=Math.ceil(i/nt+4),it=!1;n%2&&(o=o.times(f),nw(o.d,t)),n=al(n/2),n!==0;)f=f.times(f),nw(f.d,t);return it=!0,e.s<0?new h(cn).div(o):Je(o,i)}}else if(u<0)throw Error(Ln+"NaN");return u=u<0&&e.d[Math.max(t,n)]&1?-1:1,f.s=1,it=!1,o=e.times(Ou(f,i+g)),it=!0,o=R3(o),o.s=u,o};de.toPrecision=function(e,t){var n,i,o=this,u=o.constructor;return e===void 0?(n=yt(o),i=Ca(o,n<=u.toExpNeg||n>=u.toExpPos)):(ur(e,1,il),t===void 0?t=u.rounding:ur(t,0,8),o=Je(new u(o),e,t),n=yt(o),i=Ca(o,e<=n||n<=u.toExpNeg,e)),i};de.toSignificantDigits=de.tosd=function(e,t){var n=this,i=n.constructor;return e===void 0?(e=i.precision,t=i.rounding):(ur(e,1,il),t===void 0?t=i.rounding:ur(t,0,8)),Je(new i(n),e,t)};de.toString=de.valueOf=de.val=de.toJSON=de[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=yt(e),n=e.constructor;return Ca(e,t<=n.toExpNeg||t>=n.toExpPos)};function N3(e,t){var n,i,o,u,c,f,h,g,p=e.constructor,m=p.precision;if(!e.s||!t.s)return t.s||(t=new p(e)),it?Je(t,m):t;if(h=e.d,g=t.d,c=e.e,o=t.e,h=h.slice(),u=c-o,u){for(u<0?(i=h,u=-u,f=g.length):(i=g,o=c,f=h.length),c=Math.ceil(m/nt),f=c>f?c+1:f+1,u>f&&(u=f,i.length=1),i.reverse();u--;)i.push(0);i.reverse()}for(f=h.length,u=g.length,f-u<0&&(u=f,i=g,g=h,h=i),n=0;u;)n=(h[--u]=h[u]+g[u]+n)/Tt|0,h[u]%=Tt;for(n&&(h.unshift(n),++o),f=h.length;h[--f]==0;)h.pop();return t.d=h,t.e=o,it?Je(t,m):t}function ur(e,t,n){if(e!==~~e||e<t||e>n)throw Error(wa+e)}function or(e){var t,n,i,o=e.length-1,u="",c=e[0];if(o>0){for(u+=c,t=1;t<o;t++)i=e[t]+"",n=nt-i.length,n&&(u+=Ei(n)),u+=i;c=e[t],i=c+"",n=nt-i.length,n&&(u+=Ei(n))}else if(c===0)return"0";for(;c%10===0;)c/=10;return u+c}var Pr=(function(){function e(i,o){var u,c=0,f=i.length;for(i=i.slice();f--;)u=i[f]*o+c,i[f]=u%Tt|0,c=u/Tt|0;return c&&i.unshift(c),i}function t(i,o,u,c){var f,h;if(u!=c)h=u>c?1:-1;else for(f=h=0;f<u;f++)if(i[f]!=o[f]){h=i[f]>o[f]?1:-1;break}return h}function n(i,o,u){for(var c=0;u--;)i[u]-=c,c=i[u]<o[u]?1:0,i[u]=c*Tt+i[u]-o[u];for(;!i[0]&&i.length>1;)i.shift()}return function(i,o,u,c){var f,h,g,p,m,v,S,M,b,w,E,A,k,T,C,O,D,N,P=i.constructor,Z=i.s==o.s?1:-1,W=i.d,G=o.d;if(!i.s)return new P(i);if(!o.s)throw Error(Ln+"Division by zero");for(h=i.e-o.e,D=G.length,C=W.length,S=new P(Z),M=S.d=[],g=0;G[g]==(W[g]||0);)++g;if(G[g]>(W[g]||0)&&--h,u==null?A=u=P.precision:c?A=u+(yt(i)-yt(o))+1:A=u,A<0)return new P(0);if(A=A/nt+2|0,g=0,D==1)for(p=0,G=G[0],A++;(g<C||p)&&A--;g++)k=p*Tt+(W[g]||0),M[g]=k/G|0,p=k%G|0;else{for(p=Tt/(G[0]+1)|0,p>1&&(G=e(G,p),W=e(W,p),D=G.length,C=W.length),T=D,b=W.slice(0,D),w=b.length;w<D;)b[w++]=0;N=G.slice(),N.unshift(0),O=G[0],G[1]>=Tt/2&&++O;do p=0,f=t(G,b,D,w),f<0?(E=b[0],D!=w&&(E=E*Tt+(b[1]||0)),p=E/O|0,p>1?(p>=Tt&&(p=Tt-1),m=e(G,p),v=m.length,w=b.length,f=t(m,b,v,w),f==1&&(p--,n(m,D<v?N:G,v))):(p==0&&(f=p=1),m=G.slice()),v=m.length,v<w&&m.unshift(0),n(b,m,w),f==-1&&(w=b.length,f=t(G,b,D,w),f<1&&(p++,n(b,D<w?N:G,w))),w=b.length):f===0&&(p++,b=[0]),M[g++]=p,f&&b[0]?b[w++]=W[T]||0:(b=[W[T]],w=1);while((T++<C||b[0]!==void 0)&&A--)}return M[0]||M.shift(),S.e=h,Je(S,c?u+yt(S)+1:u)}})();function R3(e,t){var n,i,o,u,c,f,h=0,g=0,p=e.constructor,m=p.precision;if(yt(e)>16)throw Error(oy+yt(e));if(!e.s)return new p(cn);for(it=!1,f=m,c=new p(.03125);e.abs().gte(.1);)e=e.times(c),g+=5;for(i=Math.log(la(2,g))/Math.LN10*2+5|0,f+=i,n=o=u=new p(cn),p.precision=f;;){if(o=Je(o.times(e),f),n=n.times(++h),c=u.plus(Pr(o,n,f)),or(c.d).slice(0,f)===or(u.d).slice(0,f)){for(;g--;)u=Je(u.times(u),f);return p.precision=m,t==null?(it=!0,Je(u,m)):u}u=c}}function yt(e){for(var t=e.e*nt,n=e.d[0];n>=10;n/=10)t++;return t}function N0(e,t,n){if(t>e.LN10.sd())throw it=!0,n&&(e.precision=n),Error(Ln+"LN10 precision limit exceeded");return Je(new e(e.LN10),t)}function Ei(e){for(var t="";e--;)t+="0";return t}function Ou(e,t){var n,i,o,u,c,f,h,g,p,m=1,v=10,S=e,M=S.d,b=S.constructor,w=b.precision;if(S.s<1)throw Error(Ln+(S.s?"NaN":"-Infinity"));if(S.eq(cn))return new b(0);if(t==null?(it=!1,g=w):g=t,S.eq(10))return t==null&&(it=!0),N0(b,g);if(g+=v,b.precision=g,n=or(M),i=n.charAt(0),u=yt(S),Math.abs(u)<15e14){for(;i<7&&i!=1||i==1&&n.charAt(1)>3;)S=S.times(e),n=or(S.d),i=n.charAt(0),m++;u=yt(S),i>1?(S=new b("0."+n),u++):S=new b(i+"."+n.slice(1))}else return h=N0(b,g+2,w).times(u+""),S=Ou(new b(i+"."+n.slice(1)),g-v).plus(h),b.precision=w,t==null?(it=!0,Je(S,w)):S;for(f=c=S=Pr(S.minus(cn),S.plus(cn),g),p=Je(S.times(S),g),o=3;;){if(c=Je(c.times(p),g),h=f.plus(Pr(c,new b(o),g)),or(h.d).slice(0,g)===or(f.d).slice(0,g))return f=f.times(2),u!==0&&(f=f.plus(N0(b,g+2,w).times(u+""))),f=Pr(f,new b(m),g),b.precision=w,t==null?(it=!0,Je(f,w)):f;f=h,o+=2}}function tw(e,t){var n,i,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(i=t.search(/e/i))>0?(n<0&&(n=i),n+=+t.slice(i+1),t=t.substring(0,i)):n<0&&(n=t.length),i=0;t.charCodeAt(i)===48;)++i;for(o=t.length;t.charCodeAt(o-1)===48;)--o;if(t=t.slice(i,o),t){if(o-=i,n=n-i-1,e.e=al(n/nt),e.d=[],i=(n+1)%nt,n<0&&(i+=nt),i<o){for(i&&e.d.push(+t.slice(0,i)),o-=nt;i<o;)e.d.push(+t.slice(i,i+=nt));t=t.slice(i),i=nt-t.length}else i-=o;for(;i--;)t+="0";if(e.d.push(+t),it&&(e.e>ff||e.e<-ff))throw Error(oy+n)}else e.s=0,e.e=0,e.d=[0];return e}function Je(e,t,n){var i,o,u,c,f,h,g,p,m=e.d;for(c=1,u=m[0];u>=10;u/=10)c++;if(i=t-c,i<0)i+=nt,o=t,g=m[p=0];else{if(p=Math.ceil((i+1)/nt),u=m.length,p>=u)return e;for(g=u=m[p],c=1;u>=10;u/=10)c++;i%=nt,o=i-nt+c}if(n!==void 0&&(u=la(10,c-o-1),f=g/u%10|0,h=t<0||m[p+1]!==void 0||g%u,h=n<4?(f||h)&&(n==0||n==(e.s<0?3:2)):f>5||f==5&&(n==4||h||n==6&&(i>0?o>0?g/la(10,c-o):0:m[p-1])%10&1||n==(e.s<0?8:7))),t<1||!m[0])return h?(u=yt(e),m.length=1,t=t-u-1,m[0]=la(10,(nt-t%nt)%nt),e.e=al(-t/nt)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(i==0?(m.length=p,u=1,p--):(m.length=p+1,u=la(10,nt-i),m[p]=o>0?(g/la(10,c-o)%la(10,o)|0)*u:0),h)for(;;)if(p==0){(m[0]+=u)==Tt&&(m[0]=1,++e.e);break}else{if(m[p]+=u,m[p]!=Tt)break;m[p--]=0,u=1}for(i=m.length;m[--i]===0;)m.pop();if(it&&(e.e>ff||e.e<-ff))throw Error(oy+yt(e));return e}function z3(e,t){var n,i,o,u,c,f,h,g,p,m,v=e.constructor,S=v.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new v(e),it?Je(t,S):t;if(h=e.d,m=t.d,i=t.e,g=e.e,h=h.slice(),c=g-i,c){for(p=c<0,p?(n=h,c=-c,f=m.length):(n=m,i=g,f=h.length),o=Math.max(Math.ceil(S/nt),f)+2,c>o&&(c=o,n.length=1),n.reverse(),o=c;o--;)n.push(0);n.reverse()}else{for(o=h.length,f=m.length,p=o<f,p&&(f=o),o=0;o<f;o++)if(h[o]!=m[o]){p=h[o]<m[o];break}c=0}for(p&&(n=h,h=m,m=n,t.s=-t.s),f=h.length,o=m.length-f;o>0;--o)h[f++]=0;for(o=m.length;o>c;){if(h[--o]<m[o]){for(u=o;u&&h[--u]===0;)h[u]=Tt-1;--h[u],h[o]+=Tt}h[o]-=m[o]}for(;h[--f]===0;)h.pop();for(;h[0]===0;h.shift())--i;return h[0]?(t.d=h,t.e=i,it?Je(t,S):t):new v(0)}function Ca(e,t,n){var i,o=yt(e),u=or(e.d),c=u.length;return t?(n&&(i=n-c)>0?u=u.charAt(0)+"."+u.slice(1)+Ei(i):c>1&&(u=u.charAt(0)+"."+u.slice(1)),u=u+(o<0?"e":"e+")+o):o<0?(u="0."+Ei(-o-1)+u,n&&(i=n-c)>0&&(u+=Ei(i))):o>=c?(u+=Ei(o+1-c),n&&(i=n-o-1)>0&&(u=u+"."+Ei(i))):((i=o+1)<c&&(u=u.slice(0,i)+"."+u.slice(i)),n&&(i=n-c)>0&&(o+1===c&&(u+="."),u+=Ei(i))),e.s<0?"-"+u:u}function nw(e,t){if(e.length>t)return e.length=t,!0}function L3(e){var t,n,i;function o(u){var c=this;if(!(c instanceof o))return new o(u);if(c.constructor=o,u instanceof o){c.s=u.s,c.e=u.e,c.d=(u=u.d)?u.slice():u;return}if(typeof u=="number"){if(u*0!==0)throw Error(wa+u);if(u>0)c.s=1;else if(u<0)u=-u,c.s=-1;else{c.s=0,c.e=0,c.d=[0];return}if(u===~~u&&u<1e7){c.e=0,c.d=[u];return}return tw(c,u.toString())}else if(typeof u!="string")throw Error(wa+u);if(u.charCodeAt(0)===45?(u=u.slice(1),c.s=-1):c.s=1,LL.test(u))tw(c,u);else throw Error(wa+u)}if(o.prototype=de,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=L3,o.config=o.set=IL,e===void 0&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<i.length;)e.hasOwnProperty(n=i[t++])||(e[n]=this[n]);return o.config(e),o}function IL(e){if(!e||typeof e!="object")throw Error(Ln+"Object expected");var t,n,i,o=["precision",1,il,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if((i=e[n=o[t]])!==void 0)if(al(i)===i&&i>=o[t+1]&&i<=o[t+2])this[n]=i;else throw Error(wa+n+": "+i);if((i=e[n="LN10"])!==void 0)if(i==Math.LN10)this[n]=new this(i);else throw Error(wa+n+": "+i);return this}var ly=L3(zL);cn=new ly(1);const oQ=ly;function Ii(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function qL(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function uy(e){let t,n,i;e.length!==2?(t=Ii,n=(f,h)=>Ii(e(f),h),i=(f,h)=>e(f)-h):(t=e===Ii||e===qL?e:UL,n=e,i=e);function o(f,h,g=0,p=f.length){if(g<p){if(t(h,h)!==0)return p;do{const m=g+p>>>1;n(f[m],h)<0?g=m+1:p=m}while(g<p)}return g}function u(f,h,g=0,p=f.length){if(g<p){if(t(h,h)!==0)return p;do{const m=g+p>>>1;n(f[m],h)<=0?g=m+1:p=m}while(g<p)}return g}function c(f,h,g=0,p=f.length){const m=o(f,h,g,p-1);return m>g&&i(f[m-1],h)>-i(f[m],h)?m-1:m}return{left:o,center:c,right:u}}function UL(){return 0}function I3(e){return e===null?NaN:+e}function*jL(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const HL=uy(Ii),Hu=HL.right;uy(I3).center;class rw extends Map{constructor(t,n=$L){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[i,o]of t)this.set(i,o)}get(t){return super.get(iw(this,t))}has(t){return super.has(iw(this,t))}set(t,n){return super.set(BL(this,t),n)}delete(t){return super.delete(PL(this,t))}}function iw({_intern:e,_key:t},n){const i=t(n);return e.has(i)?e.get(i):n}function BL({_intern:e,_key:t},n){const i=t(n);return e.has(i)?e.get(i):(e.set(i,n),n)}function PL({_intern:e,_key:t},n){const i=t(n);return e.has(i)&&(n=e.get(i),e.delete(i)),n}function $L(e){return e!==null&&typeof e=="object"?e.valueOf():e}function YL(e=Ii){if(e===Ii)return q3;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const i=e(t,n);return i||i===0?i:(e(n,n)===0)-(e(t,t)===0)}}function q3(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const VL=Math.sqrt(50),FL=Math.sqrt(10),GL=Math.sqrt(2);function hf(e,t,n){const i=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(i)),u=i/Math.pow(10,o),c=u>=VL?10:u>=FL?5:u>=GL?2:1;let f,h,g;return o<0?(g=Math.pow(10,-o)/c,f=Math.round(e*g),h=Math.round(t*g),f/g<e&&++f,h/g>t&&--h,g=-g):(g=Math.pow(10,o)*c,f=Math.round(e/g),h=Math.round(t/g),f*g<e&&++f,h*g>t&&--h),h<f&&.5<=n&&n<2?hf(e,t,n*2):[f,h,g]}function f1(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const i=t<e,[o,u,c]=i?hf(t,e,n):hf(e,t,n);if(!(u>=o))return[];const f=u-o+1,h=new Array(f);if(i)if(c<0)for(let g=0;g<f;++g)h[g]=(u-g)/-c;else for(let g=0;g<f;++g)h[g]=(u-g)*c;else if(c<0)for(let g=0;g<f;++g)h[g]=(o+g)/-c;else for(let g=0;g<f;++g)h[g]=(o+g)*c;return h}function h1(e,t,n){return t=+t,e=+e,n=+n,hf(e,t,n)[2]}function d1(e,t,n){t=+t,e=+e,n=+n;const i=t<e,o=i?h1(t,e,n):h1(e,t,n);return(i?-1:1)*(o<0?1/-o:o)}function aw(e,t){let n;for(const i of e)i!=null&&(n<i||n===void 0&&i>=i)&&(n=i);return n}function ow(e,t){let n;for(const i of e)i!=null&&(n>i||n===void 0&&i>=i)&&(n=i);return n}function U3(e,t,n=0,i=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),i=Math.floor(Math.min(e.length-1,i)),!(n<=t&&t<=i))return e;for(o=o===void 0?q3:YL(o);i>n;){if(i-n>600){const h=i-n+1,g=t-n+1,p=Math.log(h),m=.5*Math.exp(2*p/3),v=.5*Math.sqrt(p*m*(h-m)/h)*(g-h/2<0?-1:1),S=Math.max(n,Math.floor(t-g*m/h+v)),M=Math.min(i,Math.floor(t+(h-g)*m/h+v));U3(e,t,S,M,o)}const u=e[t];let c=n,f=i;for(au(e,n,t),o(e[i],u)>0&&au(e,n,i);c<f;){for(au(e,c,f),++c,--f;o(e[c],u)<0;)++c;for(;o(e[f],u)>0;)--f}o(e[n],u)===0?au(e,n,f):(++f,au(e,f,i)),f<=t&&(n=f+1),t<=f&&(i=f-1)}return e}function au(e,t,n){const i=e[t];e[t]=e[n],e[n]=i}function QL(e,t,n){if(e=Float64Array.from(jL(e)),!(!(i=e.length)||isNaN(t=+t))){if(t<=0||i<2)return ow(e);if(t>=1)return aw(e);var i,o=(i-1)*t,u=Math.floor(o),c=aw(U3(e,u).subarray(0,u+1)),f=ow(e.subarray(u+1));return c+(f-c)*(o-u)}}function XL(e,t,n=I3){if(!(!(i=e.length)||isNaN(t=+t))){if(t<=0||i<2)return+n(e[0],0,e);if(t>=1)return+n(e[i-1],i-1,e);var i,o=(i-1)*t,u=Math.floor(o),c=+n(e[u],u,e),f=+n(e[u+1],u+1,e);return c+(f-c)*(o-u)}}function KL(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var i=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,u=new Array(o);++i<o;)u[i]=e+i*n;return u}function qn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Xr(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const g1=Symbol("implicit");function sy(){var e=new rw,t=[],n=[],i=g1;function o(u){let c=e.get(u);if(c===void 0){if(i!==g1)return i;e.set(u,c=t.push(u)-1)}return n[c%n.length]}return o.domain=function(u){if(!arguments.length)return t.slice();t=[],e=new rw;for(const c of u)e.has(c)||e.set(c,t.push(c)-1);return o},o.range=function(u){return arguments.length?(n=Array.from(u),o):n.slice()},o.unknown=function(u){return arguments.length?(i=u,o):i},o.copy=function(){return sy(t,n).unknown(i)},qn.apply(o,arguments),o}function cy(){var e=sy().unknown(void 0),t=e.domain,n=e.range,i=0,o=1,u,c,f=!1,h=0,g=0,p=.5;delete e.unknown;function m(){var v=t().length,S=o<i,M=S?o:i,b=S?i:o;u=(b-M)/Math.max(1,v-h+g*2),f&&(u=Math.floor(u)),M+=(b-M-u*(v-h))*p,c=u*(1-h),f&&(M=Math.round(M),c=Math.round(c));var w=KL(v).map(function(E){return M+u*E});return n(S?w.reverse():w)}return e.domain=function(v){return arguments.length?(t(v),m()):t()},e.range=function(v){return arguments.length?([i,o]=v,i=+i,o=+o,m()):[i,o]},e.rangeRound=function(v){return[i,o]=v,i=+i,o=+o,f=!0,m()},e.bandwidth=function(){return c},e.step=function(){return u},e.round=function(v){return arguments.length?(f=!!v,m()):f},e.padding=function(v){return arguments.length?(h=Math.min(1,g=+v),m()):h},e.paddingInner=function(v){return arguments.length?(h=Math.min(1,v),m()):h},e.paddingOuter=function(v){return arguments.length?(g=+v,m()):g},e.align=function(v){return arguments.length?(p=Math.max(0,Math.min(1,v)),m()):p},e.copy=function(){return cy(t(),[i,o]).round(f).paddingInner(h).paddingOuter(g).align(p)},qn.apply(m(),arguments)}function j3(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return j3(t())},e}function ZL(){return j3(cy.apply(null,arguments).paddingInner(1))}function JL(e){return function(){return e}}function df(e){return+e}var lw=[0,1];function Ht(e){return e}function p1(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:JL(isNaN(t)?NaN:.5)}function WL(e,t){var n;return e>t&&(n=e,e=t,t=n),function(i){return Math.max(e,Math.min(t,i))}}function eI(e,t,n){var i=e[0],o=e[1],u=t[0],c=t[1];return o<i?(i=p1(o,i),u=n(c,u)):(i=p1(i,o),u=n(u,c)),function(f){return u(i(f))}}function tI(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),u=new Array(i),c=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++c<i;)o[c]=p1(e[c],e[c+1]),u[c]=n(t[c],t[c+1]);return function(f){var h=Hu(e,f,1,i)-1;return u[h](o[h](f))}}function Bu(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function zf(){var e=lw,t=lw,n=rl,i,o,u,c=Ht,f,h,g;function p(){var v=Math.min(e.length,t.length);return c!==Ht&&(c=WL(e[0],e[v-1])),f=v>2?tI:eI,h=g=null,m}function m(v){return v==null||isNaN(v=+v)?u:(h||(h=f(e.map(i),t,n)))(i(c(v)))}return m.invert=function(v){return c(o((g||(g=f(t,e.map(i),Yn)))(v)))},m.domain=function(v){return arguments.length?(e=Array.from(v,df),p()):e.slice()},m.range=function(v){return arguments.length?(t=Array.from(v),p()):t.slice()},m.rangeRound=function(v){return t=Array.from(v),n=F1,p()},m.clamp=function(v){return arguments.length?(c=v?!0:Ht,p()):c!==Ht},m.interpolate=function(v){return arguments.length?(n=v,p()):n},m.unknown=function(v){return arguments.length?(u=v,m):u},function(v,S){return i=v,o=S,p()}}function fy(){return zf()(Ht,Ht)}function nI(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function gf(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),i=e.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function Go(e){return e=gf(Math.abs(e)),e?e[1]:NaN}function rI(e,t){return function(n,i){for(var o=n.length,u=[],c=0,f=e[0],h=0;o>0&&f>0&&(h+f+1>i&&(f=Math.max(1,i-h)),u.push(n.substring(o-=f,o+f)),!((h+=f+1)>i));)f=e[c=(c+1)%e.length];return u.reverse().join(t)}}function iI(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var aI=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Cu(e){if(!(t=aI.exec(e)))throw new Error("invalid format: "+e);var t;return new hy({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]})}Cu.prototype=hy.prototype;function hy(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+""}hy.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 oI(e){e:for(var t=e.length,n=1,i=-1,o;n<t;++n)switch(e[n]){case".":i=o=n;break;case"0":i===0&&(i=n),o=n;break;default:if(!+e[n])break e;i>0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(o+1):e}var pf;function lI(e,t){var n=gf(e,t);if(!n)return pf=void 0,e.toPrecision(t);var i=n[0],o=n[1],u=o-(pf=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,c=i.length;return u===c?i:u>c?i+new Array(u-c+1).join("0"):u>0?i.slice(0,u)+"."+i.slice(u):"0."+new Array(1-u).join("0")+gf(e,Math.max(0,t+u-1))[0]}function uw(e,t){var n=gf(e,t);if(!n)return e+"";var i=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}const sw={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:nI,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)=>uw(e*100,t),r:uw,s:lI,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function cw(e){return e}var fw=Array.prototype.map,hw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function uI(e){var t=e.grouping===void 0||e.thousands===void 0?cw:rI(fw.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",i=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",u=e.numerals===void 0?cw:iI(fw.call(e.numerals,String)),c=e.percent===void 0?"%":e.percent+"",f=e.minus===void 0?"−":e.minus+"",h=e.nan===void 0?"NaN":e.nan+"";function g(m,v){m=Cu(m);var S=m.fill,M=m.align,b=m.sign,w=m.symbol,E=m.zero,A=m.width,k=m.comma,T=m.precision,C=m.trim,O=m.type;O==="n"?(k=!0,O="g"):sw[O]||(T===void 0&&(T=12),C=!0,O="g"),(E||S==="0"&&M==="=")&&(E=!0,S="0",M="=");var D=(v&&v.prefix!==void 0?v.prefix:"")+(w==="$"?n:w==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),N=(w==="$"?i:/[%p]/.test(O)?c:"")+(v&&v.suffix!==void 0?v.suffix:""),P=sw[O],Z=/[defgprs%]/.test(O);T=T===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,T)):Math.max(0,Math.min(20,T));function W(G){var ue=D,q=N,re,R,F;if(O==="c")q=P(G)+q,G="";else{G=+G;var ie=G<0||1/G<0;if(G=isNaN(G)?h:P(Math.abs(G),T),C&&(G=oI(G)),ie&&+G==0&&b!=="+"&&(ie=!1),ue=(ie?b==="("?b:f:b==="-"||b==="("?"":b)+ue,q=(O==="s"&&!isNaN(G)&&pf!==void 0?hw[8+pf/3]:"")+q+(ie&&b==="("?")":""),Z){for(re=-1,R=G.length;++re<R;)if(F=G.charCodeAt(re),48>F||F>57){q=(F===46?o+G.slice(re+1):G.slice(re))+q,G=G.slice(0,re);break}}}k&&!E&&(G=t(G,1/0));var se=ue.length+G.length+q.length,K=se<A?new Array(A-se+1).join(S):"";switch(k&&E&&(G=t(K+G,K.length?A-q.length:1/0),K=""),M){case"<":G=ue+G+q+K;break;case"=":G=ue+K+G+q;break;case"^":G=K.slice(0,se=K.length>>1)+ue+G+q+K.slice(se);break;default:G=K+ue+G+q;break}return u(G)}return W.toString=function(){return m+""},W}function p(m,v){var S=Math.max(-8,Math.min(8,Math.floor(Go(v)/3)))*3,M=Math.pow(10,-S),b=g((m=Cu(m),m.type="f",m),{suffix:hw[8+S/3]});return function(w){return b(M*w)}}return{format:g,formatPrefix:p}}var Sc,dy,H3;sI({thousands:",",grouping:[3],currency:["$",""]});function sI(e){return Sc=uI(e),dy=Sc.format,H3=Sc.formatPrefix,Sc}function cI(e){return Math.max(0,-Go(Math.abs(e)))}function fI(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Go(t)/3)))*3-Go(Math.abs(e)))}function hI(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Go(t)-Go(e))+1}function B3(e,t,n,i){var o=d1(e,t,n),u;switch(i=Cu(i??",f"),i.type){case"s":{var c=Math.max(Math.abs(e),Math.abs(t));return i.precision==null&&!isNaN(u=fI(o,c))&&(i.precision=u),H3(i,c)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(u=hI(o,Math.max(Math.abs(e),Math.abs(t))))&&(i.precision=u-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(u=cI(o))&&(i.precision=u-(i.type==="%")*2);break}}return dy(i)}function Ui(e){var t=e.domain;return e.ticks=function(n){var i=t();return f1(i[0],i[i.length-1],n??10)},e.tickFormat=function(n,i){var o=t();return B3(o[0],o[o.length-1],n??10,i)},e.nice=function(n){n==null&&(n=10);var i=t(),o=0,u=i.length-1,c=i[o],f=i[u],h,g,p=10;for(f<c&&(g=c,c=f,f=g,g=o,o=u,u=g);p-- >0;){if(g=h1(c,f,n),g===h)return i[o]=c,i[u]=f,t(i);if(g>0)c=Math.floor(c/g)*g,f=Math.ceil(f/g)*g;else if(g<0)c=Math.ceil(c*g)/g,f=Math.floor(f*g)/g;else break;h=g}return e},e}function P3(){var e=fy();return e.copy=function(){return Bu(e,P3())},qn.apply(e,arguments),Ui(e)}function $3(e){var t;function n(i){return i==null||isNaN(i=+i)?t:i}return n.invert=n,n.domain=n.range=function(i){return arguments.length?(e=Array.from(i,df),n):e.slice()},n.unknown=function(i){return arguments.length?(t=i,n):t},n.copy=function(){return $3(e).unknown(t)},e=arguments.length?Array.from(e,df):[0,1],Ui(n)}function Y3(e,t){e=e.slice();var n=0,i=e.length-1,o=e[n],u=e[i],c;return u<o&&(c=n,n=i,i=c,c=o,o=u,u=c),e[n]=t.floor(o),e[i]=t.ceil(u),e}function dw(e){return Math.log(e)}function gw(e){return Math.exp(e)}function dI(e){return-Math.log(-e)}function gI(e){return-Math.exp(-e)}function pI(e){return isFinite(e)?+("1e"+e):e<0?0:e}function yI(e){return e===10?pI:e===Math.E?Math.exp:t=>Math.pow(e,t)}function mI(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function pw(e){return(t,n)=>-e(-t,n)}function gy(e){const t=e(dw,gw),n=t.domain;let i=10,o,u;function c(){return o=mI(i),u=yI(i),n()[0]<0?(o=pw(o),u=pw(u),e(dI,gI)):e(dw,gw),t}return t.base=function(f){return arguments.length?(i=+f,c()):i},t.domain=function(f){return arguments.length?(n(f),c()):n()},t.ticks=f=>{const h=n();let g=h[0],p=h[h.length-1];const m=p<g;m&&([g,p]=[p,g]);let v=o(g),S=o(p),M,b;const w=f==null?10:+f;let E=[];if(!(i%1)&&S-v<w){if(v=Math.floor(v),S=Math.ceil(S),g>0){for(;v<=S;++v)for(M=1;M<i;++M)if(b=v<0?M/u(-v):M*u(v),!(b<g)){if(b>p)break;E.push(b)}}else for(;v<=S;++v)for(M=i-1;M>=1;--M)if(b=v>0?M/u(-v):M*u(v),!(b<g)){if(b>p)break;E.push(b)}E.length*2<w&&(E=f1(g,p,w))}else E=f1(v,S,Math.min(S-v,w)).map(u);return m?E.reverse():E},t.tickFormat=(f,h)=>{if(f==null&&(f=10),h==null&&(h=i===10?"s":","),typeof h!="function"&&(!(i%1)&&(h=Cu(h)).precision==null&&(h.trim=!0),h=dy(h)),f===1/0)return h;const g=Math.max(1,i*f/t.ticks().length);return p=>{let m=p/u(Math.round(o(p)));return m*i<i-.5&&(m*=i),m<=g?h(p):""}},t.nice=()=>n(Y3(n(),{floor:f=>u(Math.floor(o(f))),ceil:f=>u(Math.ceil(o(f)))})),t}function V3(){const e=gy(zf()).domain([1,10]);return e.copy=()=>Bu(e,V3()).base(e.base()),qn.apply(e,arguments),e}function yw(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function mw(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function py(e){var t=1,n=e(yw(t),mw(t));return n.constant=function(i){return arguments.length?e(yw(t=+i),mw(t)):t},Ui(n)}function F3(){var e=py(zf());return e.copy=function(){return Bu(e,F3()).constant(e.constant())},qn.apply(e,arguments)}function vw(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function vI(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function bI(e){return e<0?-e*e:e*e}function yy(e){var t=e(Ht,Ht),n=1;function i(){return n===1?e(Ht,Ht):n===.5?e(vI,bI):e(vw(n),vw(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,i()):n},Ui(t)}function my(){var e=yy(zf());return e.copy=function(){return Bu(e,my()).exponent(e.exponent())},qn.apply(e,arguments),e}function SI(){return my.apply(null,arguments).exponent(.5)}function bw(e){return Math.sign(e)*e*e}function _I(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function G3(){var e=fy(),t=[0,1],n=!1,i;function o(u){var c=_I(e(u));return isNaN(c)?i:n?Math.round(c):c}return o.invert=function(u){return e.invert(bw(u))},o.domain=function(u){return arguments.length?(e.domain(u),o):e.domain()},o.range=function(u){return arguments.length?(e.range((t=Array.from(u,df)).map(bw)),o):t.slice()},o.rangeRound=function(u){return o.range(u).round(!0)},o.round=function(u){return arguments.length?(n=!!u,o):n},o.clamp=function(u){return arguments.length?(e.clamp(u),o):e.clamp()},o.unknown=function(u){return arguments.length?(i=u,o):i},o.copy=function(){return G3(e.domain(),t).round(n).clamp(e.clamp()).unknown(i)},qn.apply(o,arguments),Ui(o)}function Q3(){var e=[],t=[],n=[],i;function o(){var c=0,f=Math.max(1,t.length);for(n=new Array(f-1);++c<f;)n[c-1]=XL(e,c/f);return u}function u(c){return c==null||isNaN(c=+c)?i:t[Hu(n,c)]}return u.invertExtent=function(c){var f=t.indexOf(c);return f<0?[NaN,NaN]:[f>0?n[f-1]:e[0],f<n.length?n[f]:e[e.length-1]]},u.domain=function(c){if(!arguments.length)return e.slice();e=[];for(let f of c)f!=null&&!isNaN(f=+f)&&e.push(f);return e.sort(Ii),o()},u.range=function(c){return arguments.length?(t=Array.from(c),o()):t.slice()},u.unknown=function(c){return arguments.length?(i=c,u):i},u.quantiles=function(){return n.slice()},u.copy=function(){return Q3().domain(e).range(t).unknown(i)},qn.apply(u,arguments)}function X3(){var e=0,t=1,n=1,i=[.5],o=[0,1],u;function c(h){return h!=null&&h<=h?o[Hu(i,h,0,n)]:u}function f(){var h=-1;for(i=new Array(n);++h<n;)i[h]=((h+1)*t-(h-n)*e)/(n+1);return c}return c.domain=function(h){return arguments.length?([e,t]=h,e=+e,t=+t,f()):[e,t]},c.range=function(h){return arguments.length?(n=(o=Array.from(h)).length-1,f()):o.slice()},c.invertExtent=function(h){var g=o.indexOf(h);return g<0?[NaN,NaN]:g<1?[e,i[0]]:g>=n?[i[n-1],t]:[i[g-1],i[g]]},c.unknown=function(h){return arguments.length&&(u=h),c},c.thresholds=function(){return i.slice()},c.copy=function(){return X3().domain([e,t]).range(o).unknown(u)},qn.apply(Ui(c),arguments)}function K3(){var e=[.5],t=[0,1],n,i=1;function o(u){return u!=null&&u<=u?t[Hu(e,u,0,i)]:n}return o.domain=function(u){return arguments.length?(e=Array.from(u),i=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(u){return arguments.length?(t=Array.from(u),i=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(u){var c=t.indexOf(u);return[e[c-1],e[c]]},o.unknown=function(u){return arguments.length?(n=u,o):n},o.copy=function(){return K3().domain(e).range(t).unknown(n)},qn.apply(o,arguments)}const R0=new Date,z0=new Date;function bt(e,t,n,i){function o(u){return e(u=arguments.length===0?new Date:new Date(+u)),u}return o.floor=u=>(e(u=new Date(+u)),u),o.ceil=u=>(e(u=new Date(u-1)),t(u,1),e(u),u),o.round=u=>{const c=o(u),f=o.ceil(u);return u-c<f-u?c:f},o.offset=(u,c)=>(t(u=new Date(+u),c==null?1:Math.floor(c)),u),o.range=(u,c,f)=>{const h=[];if(u=o.ceil(u),f=f==null?1:Math.floor(f),!(u<c)||!(f>0))return h;let g;do h.push(g=new Date(+u)),t(u,f),e(u);while(g<u&&u<c);return h},o.filter=u=>bt(c=>{if(c>=c)for(;e(c),!u(c);)c.setTime(c-1)},(c,f)=>{if(c>=c)if(f<0)for(;++f<=0;)for(;t(c,-1),!u(c););else for(;--f>=0;)for(;t(c,1),!u(c););}),n&&(o.count=(u,c)=>(R0.setTime(+u),z0.setTime(+c),e(R0),e(z0),Math.floor(n(R0,z0))),o.every=u=>(u=Math.floor(u),!isFinite(u)||!(u>0)?null:u>1?o.filter(i?c=>i(c)%u===0:c=>o.count(0,c)%u===0):o)),o}const yf=bt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);yf.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?bt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):yf);yf.range;const Hr=1e3,Rn=Hr*60,Br=Rn*60,Fr=Br*24,vy=Fr*7,Sw=Fr*30,L0=Fr*365,fa=bt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Hr)},(e,t)=>(t-e)/Hr,e=>e.getUTCSeconds());fa.range;const by=bt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Hr)},(e,t)=>{e.setTime(+e+t*Rn)},(e,t)=>(t-e)/Rn,e=>e.getMinutes());by.range;const Sy=bt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Rn)},(e,t)=>(t-e)/Rn,e=>e.getUTCMinutes());Sy.range;const _y=bt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Hr-e.getMinutes()*Rn)},(e,t)=>{e.setTime(+e+t*Br)},(e,t)=>(t-e)/Br,e=>e.getHours());_y.range;const wy=bt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Br)},(e,t)=>(t-e)/Br,e=>e.getUTCHours());wy.range;const Pu=bt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Rn)/Fr,e=>e.getDate()-1);Pu.range;const Lf=bt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Fr,e=>e.getUTCDate()-1);Lf.range;const Z3=bt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Fr,e=>Math.floor(e/Fr));Z3.range;function Da(e){return bt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Rn)/vy)}const If=Da(0),mf=Da(1),wI=Da(2),MI=Da(3),Qo=Da(4),TI=Da(5),EI=Da(6);If.range;mf.range;wI.range;MI.range;Qo.range;TI.range;EI.range;function Na(e){return bt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/vy)}const qf=Na(0),vf=Na(1),xI=Na(2),OI=Na(3),Xo=Na(4),CI=Na(5),kI=Na(6);qf.range;vf.range;xI.range;OI.range;Xo.range;CI.range;kI.range;const My=bt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());My.range;const Ty=bt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Ty.range;const Gr=bt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Gr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:bt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Gr.range;const Qr=bt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Qr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:bt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Qr.range;function J3(e,t,n,i,o,u){const c=[[fa,1,Hr],[fa,5,5*Hr],[fa,15,15*Hr],[fa,30,30*Hr],[u,1,Rn],[u,5,5*Rn],[u,15,15*Rn],[u,30,30*Rn],[o,1,Br],[o,3,3*Br],[o,6,6*Br],[o,12,12*Br],[i,1,Fr],[i,2,2*Fr],[n,1,vy],[t,1,Sw],[t,3,3*Sw],[e,1,L0]];function f(g,p,m){const v=p<g;v&&([g,p]=[p,g]);const S=m&&typeof m.range=="function"?m:h(g,p,m),M=S?S.range(g,+p+1):[];return v?M.reverse():M}function h(g,p,m){const v=Math.abs(p-g)/m,S=uy(([,,w])=>w).right(c,v);if(S===c.length)return e.every(d1(g/L0,p/L0,m));if(S===0)return yf.every(Math.max(d1(g,p,m),1));const[M,b]=c[v/c[S-1][2]<c[S][2]/v?S-1:S];return M.every(b)}return[f,h]}const[AI,DI]=J3(Qr,Ty,qf,Z3,wy,Sy),[NI,RI]=J3(Gr,My,If,Pu,_y,by);function I0(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function q0(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ou(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function zI(e){var t=e.dateTime,n=e.date,i=e.time,o=e.periods,u=e.days,c=e.shortDays,f=e.months,h=e.shortMonths,g=lu(o),p=uu(o),m=lu(u),v=uu(u),S=lu(c),M=uu(c),b=lu(f),w=uu(f),E=lu(h),A=uu(h),k={a:F,A:ie,b:se,B:K,c:null,d:xw,e:xw,f:rq,g:dq,G:pq,H:eq,I:tq,j:nq,L:W3,m:iq,M:aq,p:z,q:Q,Q:kw,s:Aw,S:oq,u:lq,U:uq,V:sq,w:cq,W:fq,x:null,X:null,y:hq,Y:gq,Z:yq,"%":Cw},T={a:oe,A:le,b:ce,B:he,c:null,d:Ow,e:Ow,f:Sq,g:Aq,G:Nq,H:mq,I:vq,j:bq,L:tx,m:_q,M:wq,p:ve,q:Ae,Q:kw,s:Aw,S:Mq,u:Tq,U:Eq,V:xq,w:Oq,W:Cq,x:null,X:null,y:kq,Y:Dq,Z:Rq,"%":Cw},C={a:Z,A:W,b:G,B:ue,c:q,d:Tw,e:Tw,f:KI,g:Mw,G:ww,H:Ew,I:Ew,j:FI,L:XI,m:VI,M:GI,p:P,q:YI,Q:JI,s:WI,S:QI,u:jI,U:HI,V:BI,w:UI,W:PI,x:re,X:R,y:Mw,Y:ww,Z:$I,"%":ZI};k.x=O(n,k),k.X=O(i,k),k.c=O(t,k),T.x=O(n,T),T.X=O(i,T),T.c=O(t,T);function O(ne,we){return function(xe){var ae=[],st=-1,De=0,xt=ne.length,Ot,cr,ol;for(xe instanceof Date||(xe=new Date(+xe));++st<xt;)ne.charCodeAt(st)===37&&(ae.push(ne.slice(De,st)),(cr=_w[Ot=ne.charAt(++st)])!=null?Ot=ne.charAt(++st):cr=Ot==="e"?" ":"0",(ol=we[Ot])&&(Ot=ol(xe,cr)),ae.push(Ot),De=st+1);return ae.push(ne.slice(De,st)),ae.join("")}}function D(ne,we){return function(xe){var ae=ou(1900,void 0,1),st=N(ae,ne,xe+="",0),De,xt;if(st!=xe.length)return null;if("Q"in ae)return new Date(ae.Q);if("s"in ae)return new Date(ae.s*1e3+("L"in ae?ae.L:0));if(we&&!("Z"in ae)&&(ae.Z=0),"p"in ae&&(ae.H=ae.H%12+ae.p*12),ae.m===void 0&&(ae.m="q"in ae?ae.q:0),"V"in ae){if(ae.V<1||ae.V>53)return null;"w"in ae||(ae.w=1),"Z"in ae?(De=q0(ou(ae.y,0,1)),xt=De.getUTCDay(),De=xt>4||xt===0?vf.ceil(De):vf(De),De=Lf.offset(De,(ae.V-1)*7),ae.y=De.getUTCFullYear(),ae.m=De.getUTCMonth(),ae.d=De.getUTCDate()+(ae.w+6)%7):(De=I0(ou(ae.y,0,1)),xt=De.getDay(),De=xt>4||xt===0?mf.ceil(De):mf(De),De=Pu.offset(De,(ae.V-1)*7),ae.y=De.getFullYear(),ae.m=De.getMonth(),ae.d=De.getDate()+(ae.w+6)%7)}else("W"in ae||"U"in ae)&&("w"in ae||(ae.w="u"in ae?ae.u%7:"W"in ae?1:0),xt="Z"in ae?q0(ou(ae.y,0,1)).getUTCDay():I0(ou(ae.y,0,1)).getDay(),ae.m=0,ae.d="W"in ae?(ae.w+6)%7+ae.W*7-(xt+5)%7:ae.w+ae.U*7-(xt+6)%7);return"Z"in ae?(ae.H+=ae.Z/100|0,ae.M+=ae.Z%100,q0(ae)):I0(ae)}}function N(ne,we,xe,ae){for(var st=0,De=we.length,xt=xe.length,Ot,cr;st<De;){if(ae>=xt)return-1;if(Ot=we.charCodeAt(st++),Ot===37){if(Ot=we.charAt(st++),cr=C[Ot in _w?we.charAt(st++):Ot],!cr||(ae=cr(ne,xe,ae))<0)return-1}else if(Ot!=xe.charCodeAt(ae++))return-1}return ae}function P(ne,we,xe){var ae=g.exec(we.slice(xe));return ae?(ne.p=p.get(ae[0].toLowerCase()),xe+ae[0].length):-1}function Z(ne,we,xe){var ae=S.exec(we.slice(xe));return ae?(ne.w=M.get(ae[0].toLowerCase()),xe+ae[0].length):-1}function W(ne,we,xe){var ae=m.exec(we.slice(xe));return ae?(ne.w=v.get(ae[0].toLowerCase()),xe+ae[0].length):-1}function G(ne,we,xe){var ae=E.exec(we.slice(xe));return ae?(ne.m=A.get(ae[0].toLowerCase()),xe+ae[0].length):-1}function ue(ne,we,xe){var ae=b.exec(we.slice(xe));return ae?(ne.m=w.get(ae[0].toLowerCase()),xe+ae[0].length):-1}function q(ne,we,xe){return N(ne,t,we,xe)}function re(ne,we,xe){return N(ne,n,we,xe)}function R(ne,we,xe){return N(ne,i,we,xe)}function F(ne){return c[ne.getDay()]}function ie(ne){return u[ne.getDay()]}function se(ne){return h[ne.getMonth()]}function K(ne){return f[ne.getMonth()]}function z(ne){return o[+(ne.getHours()>=12)]}function Q(ne){return 1+~~(ne.getMonth()/3)}function oe(ne){return c[ne.getUTCDay()]}function le(ne){return u[ne.getUTCDay()]}function ce(ne){return h[ne.getUTCMonth()]}function he(ne){return f[ne.getUTCMonth()]}function ve(ne){return o[+(ne.getUTCHours()>=12)]}function Ae(ne){return 1+~~(ne.getUTCMonth()/3)}return{format:function(ne){var we=O(ne+="",k);return we.toString=function(){return ne},we},parse:function(ne){var we=D(ne+="",!1);return we.toString=function(){return ne},we},utcFormat:function(ne){var we=O(ne+="",T);return we.toString=function(){return ne},we},utcParse:function(ne){var we=D(ne+="",!0);return we.toString=function(){return ne},we}}}var _w={"-":"",_:" ",0:"0"},Et=/^\s*\d+/,LI=/^%/,II=/[\\^$*+?|[\]().{}]/g;function Pe(e,t,n){var i=e<0?"-":"",o=(i?-e:e)+"",u=o.length;return i+(u<n?new Array(n-u+1).join(t)+o:o)}function qI(e){return e.replace(II,"\\$&")}function lu(e){return new RegExp("^(?:"+e.map(qI).join("|")+")","i")}function uu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function UI(e,t,n){var i=Et.exec(t.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function jI(e,t,n){var i=Et.exec(t.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function HI(e,t,n){var i=Et.exec(t.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function BI(e,t,n){var i=Et.exec(t.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function PI(e,t,n){var i=Et.exec(t.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function ww(e,t,n){var i=Et.exec(t.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function Mw(e,t,n){var i=Et.exec(t.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function $I(e,t,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function YI(e,t,n){var i=Et.exec(t.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function VI(e,t,n){var i=Et.exec(t.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function Tw(e,t,n){var i=Et.exec(t.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function FI(e,t,n){var i=Et.exec(t.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function Ew(e,t,n){var i=Et.exec(t.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function GI(e,t,n){var i=Et.exec(t.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function QI(e,t,n){var i=Et.exec(t.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function XI(e,t,n){var i=Et.exec(t.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function KI(e,t,n){var i=Et.exec(t.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function ZI(e,t,n){var i=LI.exec(t.slice(n,n+1));return i?n+i[0].length:-1}function JI(e,t,n){var i=Et.exec(t.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function WI(e,t,n){var i=Et.exec(t.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function xw(e,t){return Pe(e.getDate(),t,2)}function eq(e,t){return Pe(e.getHours(),t,2)}function tq(e,t){return Pe(e.getHours()%12||12,t,2)}function nq(e,t){return Pe(1+Pu.count(Gr(e),e),t,3)}function W3(e,t){return Pe(e.getMilliseconds(),t,3)}function rq(e,t){return W3(e,t)+"000"}function iq(e,t){return Pe(e.getMonth()+1,t,2)}function aq(e,t){return Pe(e.getMinutes(),t,2)}function oq(e,t){return Pe(e.getSeconds(),t,2)}function lq(e){var t=e.getDay();return t===0?7:t}function uq(e,t){return Pe(If.count(Gr(e)-1,e),t,2)}function ex(e){var t=e.getDay();return t>=4||t===0?Qo(e):Qo.ceil(e)}function sq(e,t){return e=ex(e),Pe(Qo.count(Gr(e),e)+(Gr(e).getDay()===4),t,2)}function cq(e){return e.getDay()}function fq(e,t){return Pe(mf.count(Gr(e)-1,e),t,2)}function hq(e,t){return Pe(e.getFullYear()%100,t,2)}function dq(e,t){return e=ex(e),Pe(e.getFullYear()%100,t,2)}function gq(e,t){return Pe(e.getFullYear()%1e4,t,4)}function pq(e,t){var n=e.getDay();return e=n>=4||n===0?Qo(e):Qo.ceil(e),Pe(e.getFullYear()%1e4,t,4)}function yq(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Pe(t/60|0,"0",2)+Pe(t%60,"0",2)}function Ow(e,t){return Pe(e.getUTCDate(),t,2)}function mq(e,t){return Pe(e.getUTCHours(),t,2)}function vq(e,t){return Pe(e.getUTCHours()%12||12,t,2)}function bq(e,t){return Pe(1+Lf.count(Qr(e),e),t,3)}function tx(e,t){return Pe(e.getUTCMilliseconds(),t,3)}function Sq(e,t){return tx(e,t)+"000"}function _q(e,t){return Pe(e.getUTCMonth()+1,t,2)}function wq(e,t){return Pe(e.getUTCMinutes(),t,2)}function Mq(e,t){return Pe(e.getUTCSeconds(),t,2)}function Tq(e){var t=e.getUTCDay();return t===0?7:t}function Eq(e,t){return Pe(qf.count(Qr(e)-1,e),t,2)}function nx(e){var t=e.getUTCDay();return t>=4||t===0?Xo(e):Xo.ceil(e)}function xq(e,t){return e=nx(e),Pe(Xo.count(Qr(e),e)+(Qr(e).getUTCDay()===4),t,2)}function Oq(e){return e.getUTCDay()}function Cq(e,t){return Pe(vf.count(Qr(e)-1,e),t,2)}function kq(e,t){return Pe(e.getUTCFullYear()%100,t,2)}function Aq(e,t){return e=nx(e),Pe(e.getUTCFullYear()%100,t,2)}function Dq(e,t){return Pe(e.getUTCFullYear()%1e4,t,4)}function Nq(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Xo(e):Xo.ceil(e),Pe(e.getUTCFullYear()%1e4,t,4)}function Rq(){return"+0000"}function Cw(){return"%"}function kw(e){return+e}function Aw(e){return Math.floor(+e/1e3)}var wo,rx,ix;zq({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function zq(e){return wo=zI(e),rx=wo.format,wo.parse,ix=wo.utcFormat,wo.utcParse,wo}function Lq(e){return new Date(e)}function Iq(e){return e instanceof Date?+e:+new Date(+e)}function Ey(e,t,n,i,o,u,c,f,h,g){var p=fy(),m=p.invert,v=p.domain,S=g(".%L"),M=g(":%S"),b=g("%I:%M"),w=g("%I %p"),E=g("%a %d"),A=g("%b %d"),k=g("%B"),T=g("%Y");function C(O){return(h(O)<O?S:f(O)<O?M:c(O)<O?b:u(O)<O?w:i(O)<O?o(O)<O?E:A:n(O)<O?k:T)(O)}return p.invert=function(O){return new Date(m(O))},p.domain=function(O){return arguments.length?v(Array.from(O,Iq)):v().map(Lq)},p.ticks=function(O){var D=v();return e(D[0],D[D.length-1],O??10)},p.tickFormat=function(O,D){return D==null?C:g(D)},p.nice=function(O){var D=v();return(!O||typeof O.range!="function")&&(O=t(D[0],D[D.length-1],O??10)),O?v(Y3(D,O)):p},p.copy=function(){return Bu(p,Ey(e,t,n,i,o,u,c,f,h,g))},p}function qq(){return qn.apply(Ey(NI,RI,Gr,My,If,Pu,_y,by,fa,rx).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Uq(){return qn.apply(Ey(AI,DI,Qr,Ty,qf,Lf,wy,Sy,fa,ix).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Uf(){var e=0,t=1,n,i,o,u,c=Ht,f=!1,h;function g(m){return m==null||isNaN(m=+m)?h:c(o===0?.5:(m=(u(m)-n)*o,f?Math.max(0,Math.min(1,m)):m))}g.domain=function(m){return arguments.length?([e,t]=m,n=u(e=+e),i=u(t=+t),o=n===i?0:1/(i-n),g):[e,t]},g.clamp=function(m){return arguments.length?(f=!!m,g):f},g.interpolator=function(m){return arguments.length?(c=m,g):c};function p(m){return function(v){var S,M;return arguments.length?([S,M]=v,c=m(S,M),g):[c(0),c(1)]}}return g.range=p(rl),g.rangeRound=p(F1),g.unknown=function(m){return arguments.length?(h=m,g):h},function(m){return u=m,n=m(e),i=m(t),o=n===i?0:1/(i-n),g}}function ji(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function ax(){var e=Ui(Uf()(Ht));return e.copy=function(){return ji(e,ax())},Xr.apply(e,arguments)}function ox(){var e=gy(Uf()).domain([1,10]);return e.copy=function(){return ji(e,ox()).base(e.base())},Xr.apply(e,arguments)}function lx(){var e=py(Uf());return e.copy=function(){return ji(e,lx()).constant(e.constant())},Xr.apply(e,arguments)}function xy(){var e=yy(Uf());return e.copy=function(){return ji(e,xy()).exponent(e.exponent())},Xr.apply(e,arguments)}function jq(){return xy.apply(null,arguments).exponent(.5)}function ux(){var e=[],t=Ht;function n(i){if(i!=null&&!isNaN(i=+i))return t((Hu(e,i,1)-1)/(e.length-1))}return n.domain=function(i){if(!arguments.length)return e.slice();e=[];for(let o of i)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(Ii),n},n.interpolator=function(i){return arguments.length?(t=i,n):t},n.range=function(){return e.map((i,o)=>t(o/(e.length-1)))},n.quantiles=function(i){return Array.from({length:i+1},(o,u)=>QL(e,u/i))},n.copy=function(){return ux(t).domain(e)},Xr.apply(n,arguments)}function jf(){var e=0,t=.5,n=1,i=1,o,u,c,f,h,g=Ht,p,m=!1,v;function S(b){return isNaN(b=+b)?v:(b=.5+((b=+p(b))-u)*(i*b<i*u?f:h),g(m?Math.max(0,Math.min(1,b)):b))}S.domain=function(b){return arguments.length?([e,t,n]=b,o=p(e=+e),u=p(t=+t),c=p(n=+n),f=o===u?0:.5/(u-o),h=u===c?0:.5/(c-u),i=u<o?-1:1,S):[e,t,n]},S.clamp=function(b){return arguments.length?(m=!!b,S):m},S.interpolator=function(b){return arguments.length?(g=b,S):g};function M(b){return function(w){var E,A,k;return arguments.length?([E,A,k]=w,g=t9(b,[E,A,k]),S):[g(0),g(.5),g(1)]}}return S.range=M(rl),S.rangeRound=M(F1),S.unknown=function(b){return arguments.length?(v=b,S):v},function(b){return p=b,o=b(e),u=b(t),c=b(n),f=o===u?0:.5/(u-o),h=u===c?0:.5/(c-u),i=u<o?-1:1,S}}function sx(){var e=Ui(jf()(Ht));return e.copy=function(){return ji(e,sx())},Xr.apply(e,arguments)}function cx(){var e=gy(jf()).domain([.1,1,10]);return e.copy=function(){return ji(e,cx()).base(e.base())},Xr.apply(e,arguments)}function fx(){var e=py(jf());return e.copy=function(){return ji(e,fx()).constant(e.constant())},Xr.apply(e,arguments)}function Oy(){var e=yy(jf());return e.copy=function(){return ji(e,Oy()).exponent(e.exponent())},Xr.apply(e,arguments)}function Hq(){return Oy.apply(null,arguments).exponent(.5)}const lQ=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:cy,scaleDiverging:sx,scaleDivergingLog:cx,scaleDivergingPow:Oy,scaleDivergingSqrt:Hq,scaleDivergingSymlog:fx,scaleIdentity:$3,scaleImplicit:g1,scaleLinear:P3,scaleLog:V3,scaleOrdinal:sy,scalePoint:ZL,scalePow:my,scaleQuantile:Q3,scaleQuantize:X3,scaleRadial:G3,scaleSequential:ax,scaleSequentialLog:ox,scaleSequentialPow:xy,scaleSequentialQuantile:ux,scaleSequentialSqrt:jq,scaleSequentialSymlog:lx,scaleSqrt:SI,scaleSymlog:F3,scaleThreshold:K3,scaleTime:qq,scaleUtc:Uq,tickFormat:B3},Symbol.toStringTag,{value:"Module"}));var U0={exports:{}},Dw;function Bq(){return Dw||(Dw=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(n=!1));function o(h,g,p){this.fn=h,this.context=g,this.once=p||!1}function u(h,g,p,m,v){if(typeof p!="function")throw new TypeError("The listener must be a function");var S=new o(p,m||h,v),M=n?n+g:g;return h._events[M]?h._events[M].fn?h._events[M]=[h._events[M],S]:h._events[M].push(S):(h._events[M]=S,h._eventsCount++),h}function c(h,g){--h._eventsCount===0?h._events=new i:delete h._events[g]}function f(){this._events=new i,this._eventsCount=0}f.prototype.eventNames=function(){var g=[],p,m;if(this._eventsCount===0)return g;for(m in p=this._events)t.call(p,m)&&g.push(n?m.slice(1):m);return Object.getOwnPropertySymbols?g.concat(Object.getOwnPropertySymbols(p)):g},f.prototype.listeners=function(g){var p=n?n+g:g,m=this._events[p];if(!m)return[];if(m.fn)return[m.fn];for(var v=0,S=m.length,M=new Array(S);v<S;v++)M[v]=m[v].fn;return M},f.prototype.listenerCount=function(g){var p=n?n+g:g,m=this._events[p];return m?m.fn?1:m.length:0},f.prototype.emit=function(g,p,m,v,S,M){var b=n?n+g:g;if(!this._events[b])return!1;var w=this._events[b],E=arguments.length,A,k;if(w.fn){switch(w.once&&this.removeListener(g,w.fn,void 0,!0),E){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,p),!0;case 3:return w.fn.call(w.context,p,m),!0;case 4:return w.fn.call(w.context,p,m,v),!0;case 5:return w.fn.call(w.context,p,m,v,S),!0;case 6:return w.fn.call(w.context,p,m,v,S,M),!0}for(k=1,A=new Array(E-1);k<E;k++)A[k-1]=arguments[k];w.fn.apply(w.context,A)}else{var T=w.length,C;for(k=0;k<T;k++)switch(w[k].once&&this.removeListener(g,w[k].fn,void 0,!0),E){case 1:w[k].fn.call(w[k].context);break;case 2:w[k].fn.call(w[k].context,p);break;case 3:w[k].fn.call(w[k].context,p,m);break;case 4:w[k].fn.call(w[k].context,p,m,v);break;default:if(!A)for(C=1,A=new Array(E-1);C<E;C++)A[C-1]=arguments[C];w[k].fn.apply(w[k].context,A)}}return!0},f.prototype.on=function(g,p,m){return u(this,g,p,m,!1)},f.prototype.once=function(g,p,m){return u(this,g,p,m,!0)},f.prototype.removeListener=function(g,p,m,v){var S=n?n+g:g;if(!this._events[S])return this;if(!p)return c(this,S),this;var M=this._events[S];if(M.fn)M.fn===p&&(!v||M.once)&&(!m||M.context===m)&&c(this,S);else{for(var b=0,w=[],E=M.length;b<E;b++)(M[b].fn!==p||v&&!M[b].once||m&&M[b].context!==m)&&w.push(M[b]);w.length?this._events[S]=w.length===1?w[0]:w:c(this,S)}return this},f.prototype.removeAllListeners=function(g){var p;return g?(p=n?n+g:g,this._events[p]&&c(this,p)):(this._events=new i,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=n,f.EventEmitter=f,e.exports=f})(U0)),U0.exports}var Pq=Bq();const uQ=Zt(Pq);var j0={exports:{}},Ke={};/**
1039
+ */var YS;function _z(){if(YS)return Og;YS=1;var e=Jo(),t=ZE();function n(g,p){return g===p&&(g!==0||1/g===1/p)||g!==g&&p!==p}var i=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,u=e.useRef,c=e.useEffect,f=e.useMemo,h=e.useDebugValue;return Og.useSyncExternalStoreWithSelector=function(g,p,m,v,S){var M=u(null);if(M.current===null){var b={hasValue:!1,value:null};M.current=b}else b=M.current;M=f(function(){function E(O){if(!A){if(A=!0,k=O,O=v(O),S!==void 0&&b.hasValue){var D=b.value;if(S(D,O))return T=D}return T=O}if(D=T,i(k,O))return D;var N=v(O);return S!==void 0&&S(D,N)?(k=O,D):(k=O,T=N)}var A=!1,k,T,C=m===void 0?null:m;return[function(){return E(p())},C===null?void 0:function(){return E(C())}]},[p,m,v,S]);var w=o(g,M[0],M[1]);return c(function(){b.hasValue=!0,b.value=w},[w]),h(w),w},Og}var VS;function wz(){return VS||(VS=1,xg.exports=_z()),xg.exports}var Mz=wz();const kG=Zt(Mz);var bc={exports:{}},FS;function Tz(){if(FS)return bc.exports;FS=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(C,O,D){return Function.prototype.apply.call(C,O,D)},n;e&&typeof e.ownKeys=="function"?n=e.ownKeys:Object.getOwnPropertySymbols?n=function(C){return Object.getOwnPropertyNames(C).concat(Object.getOwnPropertySymbols(C))}:n=function(C){return Object.getOwnPropertyNames(C)};function i(T){console&&console.warn&&console.warn(T)}var o=Number.isNaN||function(C){return C!==C};function u(){u.init.call(this)}bc.exports=u,bc.exports.once=E,u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var c=10;function f(T){if(typeof T!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof T)}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(T){if(typeof T!="number"||T<0||o(T))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+T+".");c=T}}),u.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(C){if(typeof C!="number"||C<0||o(C))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+C+".");return this._maxListeners=C,this};function h(T){return T._maxListeners===void 0?u.defaultMaxListeners:T._maxListeners}u.prototype.getMaxListeners=function(){return h(this)},u.prototype.emit=function(C){for(var O=[],D=1;D<arguments.length;D++)O.push(arguments[D]);var N=C==="error",P=this._events;if(P!==void 0)N=N&&P.error===void 0;else if(!N)return!1;if(N){var Z;if(O.length>0&&(Z=O[0]),Z instanceof Error)throw Z;var W=new Error("Unhandled error."+(Z?" ("+Z.message+")":""));throw W.context=Z,W}var G=P[C];if(G===void 0)return!1;if(typeof G=="function")t(G,this,O);else for(var ue=G.length,q=M(G,ue),D=0;D<ue;++D)t(q[D],this,O);return!0};function g(T,C,O,D){var N,P,Z;if(f(O),P=T._events,P===void 0?(P=T._events=Object.create(null),T._eventsCount=0):(P.newListener!==void 0&&(T.emit("newListener",C,O.listener?O.listener:O),P=T._events),Z=P[C]),Z===void 0)Z=P[C]=O,++T._eventsCount;else if(typeof Z=="function"?Z=P[C]=D?[O,Z]:[Z,O]:D?Z.unshift(O):Z.push(O),N=h(T),N>0&&Z.length>N&&!Z.warned){Z.warned=!0;var W=new Error("Possible EventEmitter memory leak detected. "+Z.length+" "+String(C)+" listeners added. Use emitter.setMaxListeners() to increase limit");W.name="MaxListenersExceededWarning",W.emitter=T,W.type=C,W.count=Z.length,i(W)}return T}u.prototype.addListener=function(C,O){return g(this,C,O,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(C,O){return g(this,C,O,!0)};function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(T,C,O){var D={fired:!1,wrapFn:void 0,target:T,type:C,listener:O},N=p.bind(D);return N.listener=O,D.wrapFn=N,N}u.prototype.once=function(C,O){return f(O),this.on(C,m(this,C,O)),this},u.prototype.prependOnceListener=function(C,O){return f(O),this.prependListener(C,m(this,C,O)),this},u.prototype.removeListener=function(C,O){var D,N,P,Z,W;if(f(O),N=this._events,N===void 0)return this;if(D=N[C],D===void 0)return this;if(D===O||D.listener===O)--this._eventsCount===0?this._events=Object.create(null):(delete N[C],N.removeListener&&this.emit("removeListener",C,D.listener||O));else if(typeof D!="function"){for(P=-1,Z=D.length-1;Z>=0;Z--)if(D[Z]===O||D[Z].listener===O){W=D[Z].listener,P=Z;break}if(P<0)return this;P===0?D.shift():b(D,P),D.length===1&&(N[C]=D[0]),N.removeListener!==void 0&&this.emit("removeListener",C,W||O)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(C){var O,D,N;if(D=this._events,D===void 0)return this;if(D.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):D[C]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete D[C]),this;if(arguments.length===0){var P=Object.keys(D),Z;for(N=0;N<P.length;++N)Z=P[N],Z!=="removeListener"&&this.removeAllListeners(Z);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(O=D[C],typeof O=="function")this.removeListener(C,O);else if(O!==void 0)for(N=O.length-1;N>=0;N--)this.removeListener(C,O[N]);return this};function v(T,C,O){var D=T._events;if(D===void 0)return[];var N=D[C];return N===void 0?[]:typeof N=="function"?O?[N.listener||N]:[N]:O?w(N):M(N,N.length)}u.prototype.listeners=function(C){return v(this,C,!0)},u.prototype.rawListeners=function(C){return v(this,C,!1)},u.listenerCount=function(T,C){return typeof T.listenerCount=="function"?T.listenerCount(C):S.call(T,C)},u.prototype.listenerCount=S;function S(T){var C=this._events;if(C!==void 0){var O=C[T];if(typeof O=="function")return 1;if(O!==void 0)return O.length}return 0}u.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]};function M(T,C){for(var O=new Array(C),D=0;D<C;++D)O[D]=T[D];return O}function b(T,C){for(;C+1<T.length;C++)T[C]=T[C+1];T.pop()}function w(T){for(var C=new Array(T.length),O=0;O<C.length;++O)C[O]=T[O].listener||T[O];return C}function E(T,C){return new Promise(function(O,D){function N(Z){T.removeListener(C,P),D(Z)}function P(){typeof T.removeListener=="function"&&T.removeListener("error",N),O([].slice.call(arguments))}k(T,C,P,{once:!0}),C!=="error"&&A(T,N,{once:!0})})}function A(T,C,O){typeof T.on=="function"&&k(T,"error",C,O)}function k(T,C,O,D){if(typeof T.on=="function")D.once?T.once(C,O):T.on(C,O);else if(typeof T.addEventListener=="function")T.addEventListener(C,function N(P){D.once&&T.removeEventListener(C,N),O(P)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof T)}return bc.exports}var AG=Tz();function We(e){return function(){return e}}const JE=Math.cos,nf=Math.sin,Kn=Math.sqrt,rf=Math.PI,kf=2*rf,n1=Math.PI,r1=2*n1,aa=1e-6,Ez=r1-aa;function WE(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function xz(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return WE;const n=10**t;return function(i){this._+=i[0];for(let o=1,u=i.length;o<u;++o)this._+=Math.round(arguments[o]*n)/n+i[o]}}class Oz{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?WE:xz(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,i,o){this._append`Q${+t},${+n},${this._x1=+i},${this._y1=+o}`}bezierCurveTo(t,n,i,o,u,c){this._append`C${+t},${+n},${+i},${+o},${this._x1=+u},${this._y1=+c}`}arcTo(t,n,i,o,u){if(t=+t,n=+n,i=+i,o=+o,u=+u,u<0)throw new Error(`negative radius: ${u}`);let c=this._x1,f=this._y1,h=i-t,g=o-n,p=c-t,m=f-n,v=p*p+m*m;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(v>aa)if(!(Math.abs(m*h-g*p)>aa)||!u)this._append`L${this._x1=t},${this._y1=n}`;else{let S=i-c,M=o-f,b=h*h+g*g,w=S*S+M*M,E=Math.sqrt(b),A=Math.sqrt(v),k=u*Math.tan((n1-Math.acos((b+v-w)/(2*E*A)))/2),T=k/A,C=k/E;Math.abs(T-1)>aa&&this._append`L${t+T*p},${n+T*m}`,this._append`A${u},${u},0,0,${+(m*S>p*M)},${this._x1=t+C*h},${this._y1=n+C*g}`}}arc(t,n,i,o,u,c){if(t=+t,n=+n,i=+i,c=!!c,i<0)throw new Error(`negative radius: ${i}`);let f=i*Math.cos(o),h=i*Math.sin(o),g=t+f,p=n+h,m=1^c,v=c?o-u:u-o;this._x1===null?this._append`M${g},${p}`:(Math.abs(this._x1-g)>aa||Math.abs(this._y1-p)>aa)&&this._append`L${g},${p}`,i&&(v<0&&(v=v%r1+r1),v>Ez?this._append`A${i},${i},0,1,${m},${t-f},${n-h}A${i},${i},0,1,${m},${this._x1=g},${this._y1=p}`:v>aa&&this._append`A${i},${i},0,${+(v>=n1)},${m},${this._x1=t+i*Math.cos(u)},${this._y1=n+i*Math.sin(u)}`)}rect(t,n,i,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${i=+i}v${+o}h${-i}Z`}toString(){return this._}}function Z1(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const i=Math.floor(n);if(!(i>=0))throw new RangeError(`invalid digits: ${n}`);t=i}return e},()=>new Oz(t)}function J1(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function e3(e){this._context=e}e3.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 t3(e){return new e3(e)}function n3(e){return e[0]}function r3(e){return e[1]}function Cz(e,t){var n=We(!0),i=null,o=t3,u=null,c=Z1(f);e=typeof e=="function"?e:e===void 0?n3:We(e),t=typeof t=="function"?t:t===void 0?r3:We(t);function f(h){var g,p=(h=J1(h)).length,m,v=!1,S;for(i==null&&(u=o(S=c())),g=0;g<=p;++g)!(g<p&&n(m=h[g],g,h))===v&&((v=!v)?u.lineStart():u.lineEnd()),v&&u.point(+e(m,g,h),+t(m,g,h));if(S)return u=null,S+""||null}return f.x=function(h){return arguments.length?(e=typeof h=="function"?h:We(+h),f):e},f.y=function(h){return arguments.length?(t=typeof h=="function"?h:We(+h),f):t},f.defined=function(h){return arguments.length?(n=typeof h=="function"?h:We(!!h),f):n},f.curve=function(h){return arguments.length?(o=h,i!=null&&(u=o(i)),f):o},f.context=function(h){return arguments.length?(h==null?i=u=null:u=o(i=h),f):i},f}function DG(e,t,n){var i=null,o=We(!0),u=null,c=t3,f=null,h=Z1(g);e=typeof e=="function"?e:e===void 0?n3:We(+e),t=typeof t=="function"?t:We(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?r3:We(+n);function g(m){var v,S,M,b=(m=J1(m)).length,w,E=!1,A,k=new Array(b),T=new Array(b);for(u==null&&(f=c(A=h())),v=0;v<=b;++v){if(!(v<b&&o(w=m[v],v,m))===E)if(E=!E)S=v,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),M=v-1;M>=S;--M)f.point(k[M],T[M]);f.lineEnd(),f.areaEnd()}E&&(k[v]=+e(w,v,m),T[v]=+t(w,v,m),f.point(i?+i(w,v,m):k[v],n?+n(w,v,m):T[v]))}if(A)return f=null,A+""||null}function p(){return Cz().defined(o).curve(c).context(u)}return g.x=function(m){return arguments.length?(e=typeof m=="function"?m:We(+m),i=null,g):e},g.x0=function(m){return arguments.length?(e=typeof m=="function"?m:We(+m),g):e},g.x1=function(m){return arguments.length?(i=m==null?null:typeof m=="function"?m:We(+m),g):i},g.y=function(m){return arguments.length?(t=typeof m=="function"?m:We(+m),n=null,g):t},g.y0=function(m){return arguments.length?(t=typeof m=="function"?m:We(+m),g):t},g.y1=function(m){return arguments.length?(n=m==null?null:typeof m=="function"?m:We(+m),g):n},g.lineX0=g.lineY0=function(){return p().x(e).y(t)},g.lineY1=function(){return p().x(e).y(n)},g.lineX1=function(){return p().x(i).y(t)},g.defined=function(m){return arguments.length?(o=typeof m=="function"?m:We(!!m),g):o},g.curve=function(m){return arguments.length?(c=m,u!=null&&(f=c(u)),g):c},g.context=function(m){return arguments.length?(m==null?u=f=null:f=c(u=m),g):u},g}class i3{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function NG(e){return new i3(e,!0)}function RG(e){return new i3(e,!1)}const kz={draw(e,t){const n=Kn(t/rf);e.moveTo(n,0),e.arc(0,0,n,0,kf)}},zG={draw(e,t){const n=Kn(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},a3=Kn(1/3),Az=a3*2,LG={draw(e,t){const n=Kn(t/Az),i=n*a3;e.moveTo(0,-n),e.lineTo(i,0),e.lineTo(0,n),e.lineTo(-i,0),e.closePath()}},IG={draw(e,t){const n=Kn(t),i=-n/2;e.rect(i,i,n,n)}},Dz=.8908130915292852,o3=nf(rf/10)/nf(7*rf/10),Nz=nf(kf/10)*o3,Rz=-JE(kf/10)*o3,qG={draw(e,t){const n=Kn(t*Dz),i=Nz*n,o=Rz*n;e.moveTo(0,-n),e.lineTo(i,o);for(let u=1;u<5;++u){const c=kf*u/5,f=JE(c),h=nf(c);e.lineTo(h*n,-f*n),e.lineTo(f*i-h*o,h*i+f*o)}e.closePath()}},Ag=Kn(3),UG={draw(e,t){const n=-Kn(t/(Ag*3));e.moveTo(0,n*2),e.lineTo(-Ag*n,-n),e.lineTo(Ag*n,-n),e.closePath()}},En=-.5,xn=Kn(3)/2,i1=1/Kn(12),zz=(i1/2+1)*3,jG={draw(e,t){const n=Kn(t/zz),i=n/2,o=n*i1,u=i,c=n*i1+n,f=-u,h=c;e.moveTo(i,o),e.lineTo(u,c),e.lineTo(f,h),e.lineTo(En*i-xn*o,xn*i+En*o),e.lineTo(En*u-xn*c,xn*u+En*c),e.lineTo(En*f-xn*h,xn*f+En*h),e.lineTo(En*i+xn*o,En*o-xn*i),e.lineTo(En*u+xn*c,En*c-xn*u),e.lineTo(En*f+xn*h,En*h-xn*f),e.closePath()}};function HG(e,t){let n=null,i=Z1(o);e=typeof e=="function"?e:We(e||kz),t=typeof t=="function"?t:We(t===void 0?64:+t);function o(){let u;if(n||(n=u=i()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),u)return n=null,u+""||null}return o.type=function(u){return arguments.length?(e=typeof u=="function"?u:We(u),o):e},o.size=function(u){return arguments.length?(t=typeof u=="function"?u:We(+u),o):t},o.context=function(u){return arguments.length?(n=u??null,o):n},o}function af(){}function of(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function l3(e){this._context=e}l3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:of(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(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;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:of(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function BG(e){return new l3(e)}function u3(e){this._context=e}u3.prototype={areaStart:af,areaEnd:af,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:of(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function PG(e){return new u3(e)}function s3(e){this._context=e}s3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:of(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $G(e){return new s3(e)}function c3(e){this._context=e}c3.prototype={areaStart:af,areaEnd:af,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function YG(e){return new c3(e)}function GS(e){return e<0?-1:1}function QS(e,t,n){var i=e._x1-e._x0,o=t-e._x1,u=(e._y1-e._y0)/(i||o<0&&-0),c=(n-e._y1)/(o||i<0&&-0),f=(u*o+c*i)/(i+o);return(GS(u)+GS(c))*Math.min(Math.abs(u),Math.abs(c),.5*Math.abs(f))||0}function XS(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Dg(e,t,n){var i=e._x0,o=e._y0,u=e._x1,c=e._y1,f=(u-i)/3;e._context.bezierCurveTo(i+f,o+f*t,u-f,c-f*n,u,c)}function lf(e){this._context=e}lf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Dg(this,this._t0,XS(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Dg(this,XS(this,n=QS(this,e,t)),n);break;default:Dg(this,this._t0,n=QS(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function f3(e){this._context=new h3(e)}(f3.prototype=Object.create(lf.prototype)).point=function(e,t){lf.prototype.point.call(this,t,e)};function h3(e){this._context=e}h3.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,i,o,u){this._context.bezierCurveTo(t,e,i,n,u,o)}};function VG(e){return new lf(e)}function FG(e){return new f3(e)}function d3(e){this._context=e}d3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var i=KS(e),o=KS(t),u=0,c=1;c<n;++u,++c)this._context.bezierCurveTo(i[0][u],o[0][u],i[1][u],o[1][u],e[c],t[c]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function KS(e){var t,n=e.length-1,i,o=new Array(n),u=new Array(n),c=new Array(n);for(o[0]=0,u[0]=2,c[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,u[t]=4,c[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,u[n-1]=7,c[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)i=o[t]/u[t-1],u[t]-=i,c[t]-=i*c[t-1];for(o[n-1]=c[n-1]/u[n-1],t=n-2;t>=0;--t)o[t]=(c[t]-o[t+1])/u[t];for(u[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)u[t]=2*e[t+1]-o[t+1];return[o,u]}function GG(e){return new d3(e)}function Af(e,t){this._context=e,this._t=t}Af.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,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:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function QG(e){return new Af(e,.5)}function XG(e){return new Af(e,0)}function KG(e){return new Af(e,1)}function Mu(e,t){if((c=e.length)>1)for(var n=1,i,o,u=e[t[0]],c,f=u.length;n<c;++n)for(o=u,u=e[t[n]],i=0;i<f;++i)u[i][1]+=u[i][0]=isNaN(o[i][1])?o[i][0]:o[i][1]}function ZS(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Lz(e,t){return e[t]}function Iz(e){const t=[];return t.key=e,t}function ZG(){var e=We([]),t=ZS,n=Mu,i=Lz;function o(u){var c=Array.from(e.apply(this,arguments),Iz),f,h=c.length,g=-1,p;for(const m of u)for(f=0,++g;f<h;++f)(c[f][g]=[0,+i(m,c[f].key,g,u)]).data=m;for(f=0,p=J1(t(c));f<h;++f)c[p[f]].index=f;return n(c,p),c}return o.keys=function(u){return arguments.length?(e=typeof u=="function"?u:We(Array.from(u)),o):e},o.value=function(u){return arguments.length?(i=typeof u=="function"?u:We(+u),o):i},o.order=function(u){return arguments.length?(t=u==null?ZS:typeof u=="function"?u:We(Array.from(u)),o):t},o.offset=function(u){return arguments.length?(n=u??Mu,o):n},o}function JG(e,t){if((i=e.length)>0){for(var n,i,o=0,u=e[0].length,c;o<u;++o){for(c=n=0;n<i;++n)c+=e[n][o][1]||0;if(c)for(n=0;n<i;++n)e[n][o][1]/=c}Mu(e,t)}}function WG(e,t){if((o=e.length)>0){for(var n=0,i=e[t[0]],o,u=i.length;n<u;++n){for(var c=0,f=0;c<o;++c)f+=e[c][n][1]||0;i[n][1]+=i[n][0]=-f/2}Mu(e,t)}}function eQ(e,t){if(!(!((c=e.length)>0)||!((u=(o=e[t[0]]).length)>0))){for(var n=0,i=1,o,u,c;i<u;++i){for(var f=0,h=0,g=0;f<c;++f){for(var p=e[t[f]],m=p[i][1]||0,v=p[i-1][1]||0,S=(m-v)/2,M=0;M<f;++M){var b=e[t[M]],w=b[i][1]||0,E=b[i-1][1]||0;S+=w-E}h+=m,g+=S*m}o[i-1][1]+=o[i-1][0]=n,h&&(n-=g/h)}o[i-1][1]+=o[i-1][0]=n,Mu(e,t)}}var Ng={},Rg={},JS;function qz(){return JS||(JS=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(Rg)),Rg}var zg={},WS;function g3(){return WS||(WS=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t})(zg)),zg}var Lg={},e_;function W1(){return e_||(e_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var i;return typeof n=="string"||typeof n=="symbol"?n:Object.is((i=n==null?void 0:n.valueOf)==null?void 0:i.call(n),-0)?"-0":String(n)}e.toKey=t})(Lg)),Lg}var Ig={},qg={},t_;function Uz(){return t_||(t_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(n==null)return"";if(typeof n=="string")return n;if(Array.isArray(n))return n.map(t).join(",");const i=String(n);return i==="0"&&Object.is(Number(n),-0)?"-0":i}e.toString=t})(qg)),qg}var n_;function ey(){return n_||(n_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Uz(),n=W1();function i(o){if(Array.isArray(o))return o.map(n.toKey);if(typeof o=="symbol")return[o];o=t.toString(o);const u=[],c=o.length;if(c===0)return u;let f=0,h="",g="",p=!1;for(o.charCodeAt(0)===46&&(u.push(""),f++);f<c;){const m=o[f];g?m==="\\"&&f+1<c?(f++,h+=o[f]):m===g?g="":h+=m:p?m==='"'||m==="'"?g=m:m==="]"?(p=!1,u.push(h),h=""):h+=m:m==="["?(p=!0,h&&(u.push(h),h="")):m==="."?h&&(u.push(h),h=""):h+=m,f++}return h&&u.push(h),u}e.toPath=i})(Ig)),Ig}var r_;function ty(){return r_||(r_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=qz(),n=g3(),i=W1(),o=ey();function u(f,h,g){if(f==null)return g;switch(typeof h){case"string":{if(t.isUnsafeProperty(h))return g;const p=f[h];return p===void 0?n.isDeepKey(h)?u(f,o.toPath(h),g):g:p}case"number":case"symbol":{typeof h=="number"&&(h=i.toKey(h));const p=f[h];return p===void 0?g:p}default:{if(Array.isArray(h))return c(f,h,g);if(Object.is(h==null?void 0:h.valueOf(),-0)?h="-0":h=String(h),t.isUnsafeProperty(h))return g;const p=f[h];return p===void 0?g:p}}}function c(f,h,g){if(h.length===0)return g;let p=f;for(let m=0;m<h.length;m++){if(p==null||t.isUnsafeProperty(h[m]))return g;p=p[h[m]]}return p===void 0?g:p}e.get=u})(Ng)),Ng}var Ug,i_;function jz(){return i_||(i_=1,Ug=ty().get),Ug}var Hz=jz();const tQ=Zt(Hz);var jg={},Hg={},a_;function Bz(){return a_||(a_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,i){const o=new Map;for(let u=0;u<n.length;u++){const c=n[u],f=i(c,u,n);o.has(f)||o.set(f,c)}return Array.from(o.values())}e.uniqBy=t})(Hg)),Hg}var Bg={},o_;function Pz(){return o_||(o_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,i){return function(...o){return n.apply(this,o.slice(0,i))}}e.ary=t})(Bg)),Bg}var Pg={},l_;function p3(){return l_||(l_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(Pg)),Pg}var $g={},Yg={},Vg={},u_;function $z(){return u_||(u_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(Vg)),Vg}var s_;function ny(){return s_||(s_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$z();function n(i){return i!=null&&typeof i!="function"&&t.isLength(i.length)}e.isArrayLike=n})(Yg)),Yg}var Fg={},c_;function Yz(){return c_||(c_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(Fg)),Fg}var f_;function Vz(){return f_||(f_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ny(),n=Yz();function i(o){return n.isObjectLike(o)&&t.isArrayLike(o)}e.isArrayLikeObject=i})($g)),$g}var Gg={},Qg={},h_;function Fz(){return h_||(h_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ty();function n(i){return function(o){return t.get(o,i)}}e.property=n})(Qg)),Qg}var Xg={},Kg={},Zg={},Jg={},d_;function y3(){return d_||(d_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t})(Jg)),Jg}var Wg={},g_;function m3(){return g_||(g_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t})(Wg)),Wg}var e0={},p_;function v3(){return p_||(p_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,i){return n===i||Number.isNaN(n)&&Number.isNaN(i)}e.isEqualsSameValueZero=t})(e0)),e0}var y_;function Gz(){return y_||(y_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=y3(),n=m3(),i=v3();function o(p,m,v){return typeof v!="function"?o(p,m,()=>{}):u(p,m,function S(M,b,w,E,A,k){const T=v(M,b,w,E,A,k);return T!==void 0?!!T:u(M,b,S,k)},new Map)}function u(p,m,v,S){if(m===p)return!0;switch(typeof m){case"object":return c(p,m,v,S);case"function":return Object.keys(m).length>0?u(p,{...m},v,S):i.isEqualsSameValueZero(p,m);default:return t.isObject(p)?typeof m=="string"?m==="":!0:i.isEqualsSameValueZero(p,m)}}function c(p,m,v,S){if(m==null)return!0;if(Array.isArray(m))return h(p,m,v,S);if(m instanceof Map)return f(p,m,v,S);if(m instanceof Set)return g(p,m,v,S);const M=Object.keys(m);if(p==null||n.isPrimitive(p))return M.length===0;if(M.length===0)return!0;if(S!=null&&S.has(m))return S.get(m)===p;S==null||S.set(m,p);try{for(let b=0;b<M.length;b++){const w=M[b];if(!n.isPrimitive(p)&&!(w in p)||m[w]===void 0&&p[w]!==void 0||m[w]===null&&p[w]!==null||!v(p[w],m[w],w,p,m,S))return!1}return!0}finally{S==null||S.delete(m)}}function f(p,m,v,S){if(m.size===0)return!0;if(!(p instanceof Map))return!1;for(const[M,b]of m.entries()){const w=p.get(M);if(v(w,b,M,p,m,S)===!1)return!1}return!0}function h(p,m,v,S){if(m.length===0)return!0;if(!Array.isArray(p))return!1;const M=new Set;for(let b=0;b<m.length;b++){const w=m[b];let E=!1;for(let A=0;A<p.length;A++){if(M.has(A))continue;const k=p[A];let T=!1;if(v(k,w,b,p,m,S)&&(T=!0),T){M.add(A),E=!0;break}}if(!E)return!1}return!0}function g(p,m,v,S){return m.size===0?!0:p instanceof Set?h([...p],[...m],v,S):!1}e.isMatchWith=o,e.isSetMatch=g})(Zg)),Zg}var m_;function b3(){return m_||(m_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Gz();function n(i,o){return t.isMatchWith(i,o,()=>{})}e.isMatch=n})(Kg)),Kg}var t0={},n0={},r0={},v_;function Qz(){return v_||(v_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(i=>Object.prototype.propertyIsEnumerable.call(n,i))}e.getSymbols=t})(r0)),r0}var i0={},b_;function ry(){return b_||(b_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t})(i0)),i0}var a0={},S_;function S3(){return S_||(S_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",i="[object Number]",o="[object Boolean]",u="[object Arguments]",c="[object Symbol]",f="[object Date]",h="[object Map]",g="[object Set]",p="[object Array]",m="[object Function]",v="[object ArrayBuffer]",S="[object Object]",M="[object Error]",b="[object DataView]",w="[object Uint8Array]",E="[object Uint8ClampedArray]",A="[object Uint16Array]",k="[object Uint32Array]",T="[object BigUint64Array]",C="[object Int8Array]",O="[object Int16Array]",D="[object Int32Array]",N="[object BigInt64Array]",P="[object Float32Array]",Z="[object Float64Array]";e.argumentsTag=u,e.arrayBufferTag=v,e.arrayTag=p,e.bigInt64ArrayTag=N,e.bigUint64ArrayTag=T,e.booleanTag=o,e.dataViewTag=b,e.dateTag=f,e.errorTag=M,e.float32ArrayTag=P,e.float64ArrayTag=Z,e.functionTag=m,e.int16ArrayTag=O,e.int32ArrayTag=D,e.int8ArrayTag=C,e.mapTag=h,e.numberTag=i,e.objectTag=S,e.regexpTag=t,e.setTag=g,e.stringTag=n,e.symbolTag=c,e.uint16ArrayTag=A,e.uint32ArrayTag=k,e.uint8ArrayTag=w,e.uint8ClampedArrayTag=E})(a0)),a0}var o0={},__;function Xz(){return __||(__=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(o0)),o0}var w_;function _3(){return w_||(w_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Qz(),n=ry(),i=S3(),o=m3(),u=Xz();function c(p,m){return f(p,void 0,p,new Map,m)}function f(p,m,v,S=new Map,M=void 0){const b=M==null?void 0:M(p,m,v,S);if(b!==void 0)return b;if(o.isPrimitive(p))return p;if(S.has(p))return S.get(p);if(Array.isArray(p)){const w=new Array(p.length);S.set(p,w);for(let E=0;E<p.length;E++)w[E]=f(p[E],E,v,S,M);return Object.hasOwn(p,"index")&&(w.index=p.index),Object.hasOwn(p,"input")&&(w.input=p.input),w}if(p instanceof Date)return new Date(p.getTime());if(p instanceof RegExp){const w=new RegExp(p.source,p.flags);return w.lastIndex=p.lastIndex,w}if(p instanceof Map){const w=new Map;S.set(p,w);for(const[E,A]of p)w.set(E,f(A,E,v,S,M));return w}if(p instanceof Set){const w=new Set;S.set(p,w);for(const E of p)w.add(f(E,void 0,v,S,M));return w}if(typeof Buffer<"u"&&Buffer.isBuffer(p))return p.subarray();if(u.isTypedArray(p)){const w=new(Object.getPrototypeOf(p)).constructor(p.length);S.set(p,w);for(let E=0;E<p.length;E++)w[E]=f(p[E],E,v,S,M);return w}if(p instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&p instanceof SharedArrayBuffer)return p.slice(0);if(p instanceof DataView){const w=new DataView(p.buffer.slice(0),p.byteOffset,p.byteLength);return S.set(p,w),h(w,p,v,S,M),w}if(typeof File<"u"&&p instanceof File){const w=new File([p],p.name,{type:p.type});return S.set(p,w),h(w,p,v,S,M),w}if(typeof Blob<"u"&&p instanceof Blob){const w=new Blob([p],{type:p.type});return S.set(p,w),h(w,p,v,S,M),w}if(p instanceof Error){const w=structuredClone(p);return S.set(p,w),w.message=p.message,w.name=p.name,w.stack=p.stack,w.cause=p.cause,w.constructor=p.constructor,h(w,p,v,S,M),w}if(p instanceof Boolean){const w=new Boolean(p.valueOf());return S.set(p,w),h(w,p,v,S,M),w}if(p instanceof Number){const w=new Number(p.valueOf());return S.set(p,w),h(w,p,v,S,M),w}if(p instanceof String){const w=new String(p.valueOf());return S.set(p,w),h(w,p,v,S,M),w}if(typeof p=="object"&&g(p)){const w=Object.create(Object.getPrototypeOf(p));return S.set(p,w),h(w,p,v,S,M),w}return p}function h(p,m,v=p,S,M){const b=[...Object.keys(m),...t.getSymbols(m)];for(let w=0;w<b.length;w++){const E=b[w],A=Object.getOwnPropertyDescriptor(p,E);(A==null||A.writable)&&(p[E]=f(m[E],E,v,S,M))}}function g(p){switch(n.getTag(p)){case i.argumentsTag:case i.arrayTag:case i.arrayBufferTag:case i.dataViewTag:case i.booleanTag:case i.dateTag:case i.float32ArrayTag:case i.float64ArrayTag:case i.int8ArrayTag:case i.int16ArrayTag:case i.int32ArrayTag:case i.mapTag:case i.numberTag:case i.objectTag:case i.regexpTag:case i.setTag:case i.stringTag:case i.symbolTag:case i.uint8ArrayTag:case i.uint8ClampedArrayTag:case i.uint16ArrayTag:case i.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=c,e.cloneDeepWithImpl=f,e.copyProperties=h})(n0)),n0}var M_;function Kz(){return M_||(M_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_3();function n(i){return t.cloneDeepWithImpl(i,void 0,i,new Map,void 0)}e.cloneDeep=n})(t0)),t0}var T_;function Zz(){return T_||(T_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=b3(),n=Kz();function i(o){return o=n.cloneDeep(o),u=>t.isMatch(u,o)}e.matches=i})(Xg)),Xg}var l0={},u0={},s0={},E_;function Jz(){return E_||(E_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_3(),n=ry(),i=S3();function o(u,c){return t.cloneDeepWith(u,(f,h,g,p)=>{const m=c==null?void 0:c(f,h,g,p);if(m!==void 0)return m;if(typeof u=="object"){if(n.getTag(u)===i.objectTag&&typeof u.constructor!="function"){const v={};return p.set(u,v),t.copyProperties(v,u,g,p),v}switch(Object.prototype.toString.call(u)){case i.numberTag:case i.stringTag:case i.booleanTag:{const v=new u.constructor(u==null?void 0:u.valueOf());return t.copyProperties(v,u),v}case i.argumentsTag:{const v={};return t.copyProperties(v,u),v.length=u.length,v[Symbol.iterator]=u[Symbol.iterator],v}default:return}}})}e.cloneDeepWith=o})(s0)),s0}var x_;function Wz(){return x_||(x_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Jz();function n(i){return t.cloneDeepWith(i)}e.cloneDeep=n})(u0)),u0}var c0={},f0={},O_;function w3(){return O_||(O_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(i,o=Number.MAX_SAFE_INTEGER){switch(typeof i){case"number":return Number.isInteger(i)&&i>=0&&i<o;case"symbol":return!1;case"string":return t.test(i)}}e.isIndex=n})(f0)),f0}var h0={},C_;function eL(){return C_||(C_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ry();function n(i){return i!==null&&typeof i=="object"&&t.getTag(i)==="[object Arguments]"}e.isArguments=n})(h0)),h0}var k_;function tL(){return k_||(k_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=g3(),n=w3(),i=eL(),o=ey();function u(c,f){let h;if(Array.isArray(f)?h=f:typeof f=="string"&&t.isDeepKey(f)&&(c==null?void 0:c[f])==null?h=o.toPath(f):h=[f],h.length===0)return!1;let g=c;for(let p=0;p<h.length;p++){const m=h[p];if((g==null||!Object.hasOwn(g,m))&&!((Array.isArray(g)||i.isArguments(g))&&n.isIndex(m)&&m<g.length))return!1;g=g[m]}return!0}e.has=u})(c0)),c0}var A_;function nL(){return A_||(A_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=b3(),n=W1(),i=Wz(),o=ty(),u=tL();function c(f,h){switch(typeof f){case"object":{Object.is(f==null?void 0:f.valueOf(),-0)&&(f="-0");break}case"number":{f=n.toKey(f);break}}return h=i.cloneDeep(h),function(g){const p=o.get(g,f);return p===void 0?u.has(g,f):h===void 0?p===void 0:t.isMatch(p,h)}}e.matchesProperty=c})(l0)),l0}var D_;function rL(){return D_||(D_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=p3(),n=Fz(),i=Zz(),o=nL();function u(c){if(c==null)return t.identity;switch(typeof c){case"function":return c;case"object":return Array.isArray(c)&&c.length===2?o.matchesProperty(c[0],c[1]):i.matches(c);case"string":case"symbol":case"number":return n.property(c)}}e.iteratee=u})(Gg)),Gg}var N_;function iL(){return N_||(N_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Bz(),n=Pz(),i=p3(),o=Vz(),u=rL();function c(f,h=i.identity){return o.isArrayLikeObject(f)?t.uniqBy(Array.from(f),n.ary(u.iteratee(h),1)):[]}e.uniqBy=c})(jg)),jg}var d0,R_;function aL(){return R_||(R_=1,d0=iL().uniqBy),d0}var oL=aL();const nQ=Zt(oL);var g0={},p0={},y0={},z_;function lL(){return z_||(z_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(i){return typeof i=="symbol"?1:i===null?2:i===void 0?3:i!==i?4:0}const n=(i,o,u)=>{if(i!==o){const c=t(i),f=t(o);if(c===f&&c===0){if(i<o)return u==="desc"?1:-1;if(i>o)return u==="desc"?-1:1}return u==="desc"?f-c:c-f}return 0};e.compareValues=n})(y0)),y0}var m0={},v0={},L_;function M3(){return L_||(L_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t})(v0)),v0}var I_;function uL(){return I_||(I_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=M3(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;function o(u,c){return Array.isArray(u)?!1:typeof u=="number"||typeof u=="boolean"||u==null||t.isSymbol(u)?!0:typeof u=="string"&&(i.test(u)||!n.test(u))||c!=null&&Object.hasOwn(c,u)}e.isKey=o})(m0)),m0}var q_;function sL(){return q_||(q_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=lL(),n=uL(),i=ey();function o(u,c,f,h){if(u==null)return[];f=h?void 0:f,Array.isArray(u)||(u=Object.values(u)),Array.isArray(c)||(c=c==null?[null]:[c]),c.length===0&&(c=[null]),Array.isArray(f)||(f=f==null?[]:[f]),f=f.map(S=>String(S));const g=(S,M)=>{let b=S;for(let w=0;w<M.length&&b!=null;++w)b=b[M[w]];return b},p=(S,M)=>M==null||S==null?M:typeof S=="object"&&"key"in S?Object.hasOwn(M,S.key)?M[S.key]:g(M,S.path):typeof S=="function"?S(M):Array.isArray(S)?g(M,S):typeof M=="object"?M[S]:M,m=c.map(S=>(Array.isArray(S)&&S.length===1&&(S=S[0]),S==null||typeof S=="function"||Array.isArray(S)||n.isKey(S)?S:{key:S,path:i.toPath(S)}));return u.map(S=>({original:S,criteria:m.map(M=>p(M,S))})).slice().sort((S,M)=>{for(let b=0;b<m.length;b++){const w=t.compareValues(S.criteria[b],M.criteria[b],f[b]);if(w!==0)return w}return 0}).map(S=>S.original)}e.orderBy=o})(p0)),p0}var b0={},U_;function cL(){return U_||(U_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,i=1){const o=[],u=Math.floor(i),c=(f,h)=>{for(let g=0;g<f.length;g++){const p=f[g];Array.isArray(p)&&h<u?c(p,h+1):o.push(p)}};return c(n,0),o}e.flatten=t})(b0)),b0}var S0={},j_;function T3(){return j_||(j_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=w3(),n=ny(),i=y3(),o=v3();function u(c,f,h){return i.isObject(h)&&(typeof f=="number"&&n.isArrayLike(h)&&t.isIndex(f)&&f<h.length||typeof f=="string"&&f in h)?o.isEqualsSameValueZero(h[f],c):!1}e.isIterateeCall=u})(S0)),S0}var H_;function fL(){return H_||(H_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=sL(),n=cL(),i=T3();function o(u,...c){const f=c.length;return f>1&&i.isIterateeCall(u,c[0],c[1])?c=[]:f>2&&i.isIterateeCall(c[0],c[1],c[2])&&(c=[c[0]]),t.orderBy(u,n.flatten(c),["asc"])}e.sortBy=o})(g0)),g0}var _0,B_;function hL(){return B_||(B_=1,_0=fL().sortBy),_0}var dL=hL();const rQ=Zt(dL);var w0={},M0={},T0={},P_;function gL(){return P_||(P_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,i,{signal:o,edges:u}={}){let c,f=null;const h=u!=null&&u.includes("leading"),g=u==null||u.includes("trailing"),p=()=>{f!==null&&(n.apply(c,f),c=void 0,f=null)},m=()=>{g&&p(),b()};let v=null;const S=()=>{v!=null&&clearTimeout(v),v=setTimeout(()=>{v=null,m()},i)},M=()=>{v!==null&&(clearTimeout(v),v=null)},b=()=>{M(),c=void 0,f=null},w=()=>{p()},E=function(...A){if(o!=null&&o.aborted)return;c=this,f=A;const k=v==null;S(),h&&k&&p()};return E.schedule=S,E.cancel=b,E.flush=w,o==null||o.addEventListener("abort",b,{once:!0}),E}e.debounce=t})(T0)),T0}var $_;function pL(){return $_||($_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gL();function n(i,o=0,u={}){typeof u!="object"&&(u={});const{leading:c=!1,trailing:f=!0,maxWait:h}=u,g=Array(2);c&&(g[0]="leading"),f&&(g[1]="trailing");let p,m=null;const v=t.debounce(function(...b){p=i.apply(this,b),m=null},o,{edges:g}),S=function(...b){return h!=null&&(m===null&&(m=Date.now()),Date.now()-m>=h)?(p=i.apply(this,b),m=Date.now(),v.cancel(),v.schedule(),p):(v.apply(this,b),p)},M=()=>(v.flush(),p);return S.cancel=v.cancel,S.flush=M,S}e.debounce=n})(M0)),M0}var Y_;function yL(){return Y_||(Y_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=pL();function n(i,o=0,u={}){const{leading:c=!0,trailing:f=!0}=u;return t.debounce(i,o,{leading:c,maxWait:o,trailing:f})}e.throttle=n})(w0)),w0}var E0,V_;function mL(){return V_||(V_=1,E0=yL().throttle),E0}var vL=mL();const iQ=Zt(vL);var E3=Symbol.for("immer-nothing"),F_=Symbol.for("immer-draftable"),hn=Symbol.for("immer-state");function Fn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Tu=Object.getPrototypeOf;function Fo(e){return!!e&&!!e[hn]}function xa(e){var t;return e?x3(e)||Array.isArray(e)||!!e[F_]||!!((t=e.constructor)!=null&&t[F_])||ju(e)||Nf(e):!1}var bL=Object.prototype.constructor.toString(),G_=new WeakMap;function x3(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let i=G_.get(n);return i===void 0&&(i=Function.toString.call(n),G_.set(n,i)),i===bL}function uf(e,t,n=!0){Df(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((i,o)=>t(o,i,e))}function Df(e){const t=e[hn];return t?t.type_:Array.isArray(e)?1:ju(e)?2:Nf(e)?3:0}function a1(e,t){return Df(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function O3(e,t,n){const i=Df(e);i===2?e.set(t,n):i===3?e.add(n):e[t]=n}function SL(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function ju(e){return e instanceof Map}function Nf(e){return e instanceof Set}function oa(e){return e.copy_||e.base_}function o1(e,t){if(ju(e))return new Map(e);if(Nf(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=x3(e);if(t===!0||t==="class_only"&&!n){const i=Object.getOwnPropertyDescriptors(e);delete i[hn];let o=Reflect.ownKeys(i);for(let u=0;u<o.length;u++){const c=o[u],f=i[c];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(i[c]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[c]})}return Object.create(Tu(e),i)}else{const i=Tu(e);if(i!==null&&n)return{...e};const o=Object.create(i);return Object.assign(o,e)}}function iy(e,t=!1){return Rf(e)||Fo(e)||!xa(e)||(Df(e)>1&&Object.defineProperties(e,{set:Sc,add:Sc,clear:Sc,delete:Sc}),Object.freeze(e),t&&Object.values(e).forEach(n=>iy(n,!0))),e}function _L(){Fn(2)}var Sc={value:_L};function Rf(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var wL={};function Oa(e){const t=wL[e];return t||Fn(0,e),t}var Eu;function C3(){return Eu}function ML(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Q_(e,t){t&&(Oa("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function l1(e){u1(e),e.drafts_.forEach(TL),e.drafts_=null}function u1(e){e===Eu&&(Eu=e.parent_)}function X_(e){return Eu=ML(Eu,e)}function TL(e){const t=e[hn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function K_(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[hn].modified_&&(l1(t),Fn(4)),xa(e)&&(e=sf(t,e),t.parent_||cf(t,e)),t.patches_&&Oa("Patches").generateReplacementPatches_(n[hn].base_,e,t.patches_,t.inversePatches_)):e=sf(t,n,[]),l1(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==E3?e:void 0}function sf(e,t,n){if(Rf(t))return t;const i=e.immer_.shouldUseStrictIteration(),o=t[hn];if(!o)return uf(t,(u,c)=>Z_(e,o,t,u,c,n),i),t;if(o.scope_!==e)return t;if(!o.modified_)return cf(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const u=o.copy_;let c=u,f=!1;o.type_===3&&(c=new Set(u),u.clear(),f=!0),uf(c,(h,g)=>Z_(e,o,u,h,g,n,f),i),cf(e,u,!1),n&&e.patches_&&Oa("Patches").generatePatches_(o,n,e.patches_,e.inversePatches_)}return o.copy_}function Z_(e,t,n,i,o,u,c){if(o==null||typeof o!="object"&&!c)return;const f=Rf(o);if(!(f&&!c)){if(Fo(o)){const h=u&&t&&t.type_!==3&&!a1(t.assigned_,i)?u.concat(i):void 0,g=sf(e,o,h);if(O3(n,i,g),Fo(g))e.canAutoFreeze_=!1;else return}else c&&n.add(o);if(xa(o)&&!f){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[i]===o&&f)return;sf(e,o),(!t||!t.scope_.parent_)&&typeof i!="symbol"&&(ju(n)?n.has(i):Object.prototype.propertyIsEnumerable.call(n,i))&&cf(e,o)}}}function cf(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&iy(t,n)}function EL(e,t){const n=Array.isArray(e),i={type_:n?1:0,scope_:t?t.scope_:C3(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=i,u=ay;n&&(o=[i],u=xu);const{revoke:c,proxy:f}=Proxy.revocable(o,u);return i.draft_=f,i.revoke_=c,f}var ay={get(e,t){if(t===hn)return e;const n=oa(e);if(!a1(n,t))return xL(e,n,t);const i=n[t];return e.finalized_||!xa(i)?i:i===x0(e.base_,t)?(O0(e),e.copy_[t]=c1(i,e)):i},has(e,t){return t in oa(e)},ownKeys(e){return Reflect.ownKeys(oa(e))},set(e,t,n){const i=k3(oa(e),t);if(i!=null&&i.set)return i.set.call(e.draft_,n),!0;if(!e.modified_){const o=x0(oa(e),t),u=o==null?void 0:o[hn];if(u&&u.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(SL(n,o)&&(n!==void 0||a1(e.base_,t)))return!0;O0(e),s1(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return x0(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,O0(e),s1(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=oa(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:i.enumerable,value:n[t]}},defineProperty(){Fn(11)},getPrototypeOf(e){return Tu(e.base_)},setPrototypeOf(){Fn(12)}},xu={};uf(ay,(e,t)=>{xu[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});xu.deleteProperty=function(e,t){return xu.set.call(this,e,t,void 0)};xu.set=function(e,t,n){return ay.set.call(this,e[0],t,n,e[0])};function x0(e,t){const n=e[hn];return(n?oa(n):e)[t]}function xL(e,t,n){var o;const i=k3(t,n);return i?"value"in i?i.value:(o=i.get)==null?void 0:o.call(e.draft_):void 0}function k3(e,t){if(!(t in e))return;let n=Tu(e);for(;n;){const i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Tu(n)}}function s1(e){e.modified_||(e.modified_=!0,e.parent_&&s1(e.parent_))}function O0(e){e.copy_||(e.copy_=o1(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var OL=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,i)=>{if(typeof t=="function"&&typeof n!="function"){const u=n;n=t;const c=this;return function(h=u,...g){return c.produce(h,p=>n.call(this,p,...g))}}typeof n!="function"&&Fn(6),i!==void 0&&typeof i!="function"&&Fn(7);let o;if(xa(t)){const u=X_(this),c=c1(t,void 0);let f=!0;try{o=n(c),f=!1}finally{f?l1(u):u1(u)}return Q_(u,i),K_(o,u)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===E3&&(o=void 0),this.autoFreeze_&&iy(o,!0),i){const u=[],c=[];Oa("Patches").generateReplacementPatches_(t,o,u,c),i(u,c)}return o}else Fn(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(c,...f)=>this.produceWithPatches(c,h=>t(h,...f));let i,o;return[this.produce(t,n,(c,f)=>{i=c,o=f}),i,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){xa(e)||Fn(8),Fo(e)&&(e=CL(e));const t=X_(this),n=c1(e,void 0);return n[hn].isManual_=!0,u1(t),n}finishDraft(e,t){const n=e&&e[hn];(!n||!n.isManual_)&&Fn(9);const{scope_:i}=n;return Q_(i,t),K_(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const i=Oa("Patches").applyPatches_;return Fo(e)?i(e,t):this.produce(e,o=>i(o,t))}};function c1(e,t){const n=ju(e)?Oa("MapSet").proxyMap_(e,t):Nf(e)?Oa("MapSet").proxySet_(e,t):EL(e,t);return(t?t.scope_:C3()).drafts_.push(n),n}function CL(e){return Fo(e)||Fn(10,e),A3(e)}function A3(e){if(!xa(e)||Rf(e))return e;const t=e[hn];let n,i=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=o1(e,t.scope_.immer_.useStrictShallowCopy_),i=t.scope_.immer_.shouldUseStrictIteration()}else n=o1(e,!0);return uf(n,(o,u)=>{O3(n,o,A3(u))},i),t&&(t.finalized_=!1),n}var kL=new OL;kL.produce;function aQ(e){return e}var C0={},k0={},A0={},J_;function AL(){return J_||(J_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=M3();function n(i){return t.isSymbol(i)?NaN:Number(i)}e.toNumber=n})(A0)),A0}var W_;function DL(){return W_||(W_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=AL();function n(i){return i?(i=t.toNumber(i),i===1/0||i===-1/0?(i<0?-1:1)*Number.MAX_VALUE:i===i?i:0):i===0?i:0}e.toFinite=n})(k0)),k0}var ew;function NL(){return ew||(ew=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=T3(),n=DL();function i(o,u,c){c&&typeof c!="number"&&t.isIterateeCall(o,u,c)&&(u=c=void 0),o=n.toFinite(o),u===void 0?(u=o,o=0):u=n.toFinite(u),c=c===void 0?o<u?1:-1:n.toFinite(c);const f=Math.max(Math.ceil((u-o)/(c||1)),0),h=new Array(f);for(let g=0;g<f;g++)h[g]=o,o+=c;return h}e.range=i})(C0)),C0}var D0,tw;function RL(){return tw||(tw=1,D0=NL().range),D0}var zL=RL();const oQ=Zt(zL);var il=1e9,LL={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},ly,it=!0,Ln="[DecimalError] ",wa=Ln+"Invalid argument: ",oy=Ln+"Exponent out of range: ",al=Math.floor,la=Math.pow,IL=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,cn,Tt=1e7,nt=7,D3=9007199254740991,ff=al(D3/nt),de={};de.absoluteValue=de.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};de.comparedTo=de.cmp=function(e){var t,n,i,o,u=this;if(e=new u.constructor(e),u.s!==e.s)return u.s||-e.s;if(u.e!==e.e)return u.e>e.e^u.s<0?1:-1;for(i=u.d.length,o=e.d.length,t=0,n=i<o?i:o;t<n;++t)if(u.d[t]!==e.d[t])return u.d[t]>e.d[t]^u.s<0?1:-1;return i===o?0:i>o^u.s<0?1:-1};de.decimalPlaces=de.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*nt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};de.dividedBy=de.div=function(e){return Pr(this,new this.constructor(e))};de.dividedToIntegerBy=de.idiv=function(e){var t=this,n=t.constructor;return Je(Pr(t,new n(e),0,1),n.precision)};de.equals=de.eq=function(e){return!this.cmp(e)};de.exponent=function(){return yt(this)};de.greaterThan=de.gt=function(e){return this.cmp(e)>0};de.greaterThanOrEqualTo=de.gte=function(e){return this.cmp(e)>=0};de.isInteger=de.isint=function(){return this.e>this.d.length-2};de.isNegative=de.isneg=function(){return this.s<0};de.isPositive=de.ispos=function(){return this.s>0};de.isZero=function(){return this.s===0};de.lessThan=de.lt=function(e){return this.cmp(e)<0};de.lessThanOrEqualTo=de.lte=function(e){return this.cmp(e)<1};de.logarithm=de.log=function(e){var t,n=this,i=n.constructor,o=i.precision,u=o+5;if(e===void 0)e=new i(10);else if(e=new i(e),e.s<1||e.eq(cn))throw Error(Ln+"NaN");if(n.s<1)throw Error(Ln+(n.s?"NaN":"-Infinity"));return n.eq(cn)?new i(0):(it=!1,t=Pr(Ou(n,u),Ou(e,u),u),it=!0,Je(t,o))};de.minus=de.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?z3(t,e):N3(t,(e.s=-e.s,e))};de.modulo=de.mod=function(e){var t,n=this,i=n.constructor,o=i.precision;if(e=new i(e),!e.s)throw Error(Ln+"NaN");return n.s?(it=!1,t=Pr(n,e,0,1).times(e),it=!0,n.minus(t)):Je(new i(n),o)};de.naturalExponential=de.exp=function(){return R3(this)};de.naturalLogarithm=de.ln=function(){return Ou(this)};de.negated=de.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};de.plus=de.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?N3(t,e):z3(t,(e.s=-e.s,e))};de.precision=de.sd=function(e){var t,n,i,o=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(wa+e);if(t=yt(o)+1,i=o.d.length-1,n=i*nt+1,i=o.d[i],i){for(;i%10==0;i/=10)n--;for(i=o.d[0];i>=10;i/=10)n++}return e&&t>n?t:n};de.squareRoot=de.sqrt=function(){var e,t,n,i,o,u,c,f=this,h=f.constructor;if(f.s<1){if(!f.s)return new h(0);throw Error(Ln+"NaN")}for(e=yt(f),it=!1,o=Math.sqrt(+f),o==0||o==1/0?(t=or(f.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=al((e+1)/2)-(e<0||e%2),o==1/0?t="5e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),i=new h(t)):i=new h(o.toString()),n=h.precision,o=c=n+3;;)if(u=i,i=u.plus(Pr(f,u,c+2)).times(.5),or(u.d).slice(0,c)===(t=or(i.d)).slice(0,c)){if(t=t.slice(c-3,c+1),o==c&&t=="4999"){if(Je(u,n+1,0),u.times(u).eq(f)){i=u;break}}else if(t!="9999")break;c+=4}return it=!0,Je(i,n)};de.times=de.mul=function(e){var t,n,i,o,u,c,f,h,g,p=this,m=p.constructor,v=p.d,S=(e=new m(e)).d;if(!p.s||!e.s)return new m(0);for(e.s*=p.s,n=p.e+e.e,h=v.length,g=S.length,h<g&&(u=v,v=S,S=u,c=h,h=g,g=c),u=[],c=h+g,i=c;i--;)u.push(0);for(i=g;--i>=0;){for(t=0,o=h+i;o>i;)f=u[o]+S[i]*v[o-i-1]+t,u[o--]=f%Tt|0,t=f/Tt|0;u[o]=(u[o]+t)%Tt|0}for(;!u[--c];)u.pop();return t?++n:u.shift(),e.d=u,e.e=n,it?Je(e,m.precision):e};de.toDecimalPlaces=de.todp=function(e,t){var n=this,i=n.constructor;return n=new i(n),e===void 0?n:(ur(e,0,il),t===void 0?t=i.rounding:ur(t,0,8),Je(n,e+yt(n)+1,t))};de.toExponential=function(e,t){var n,i=this,o=i.constructor;return e===void 0?n=Ca(i,!0):(ur(e,0,il),t===void 0?t=o.rounding:ur(t,0,8),i=Je(new o(i),e+1,t),n=Ca(i,!0,e+1)),n};de.toFixed=function(e,t){var n,i,o=this,u=o.constructor;return e===void 0?Ca(o):(ur(e,0,il),t===void 0?t=u.rounding:ur(t,0,8),i=Je(new u(o),e+yt(o)+1,t),n=Ca(i.abs(),!1,e+yt(i)+1),o.isneg()&&!o.isZero()?"-"+n:n)};de.toInteger=de.toint=function(){var e=this,t=e.constructor;return Je(new t(e),yt(e)+1,t.rounding)};de.toNumber=function(){return+this};de.toPower=de.pow=function(e){var t,n,i,o,u,c,f=this,h=f.constructor,g=12,p=+(e=new h(e));if(!e.s)return new h(cn);if(f=new h(f),!f.s){if(e.s<1)throw Error(Ln+"Infinity");return f}if(f.eq(cn))return f;if(i=h.precision,e.eq(cn))return Je(f,i);if(t=e.e,n=e.d.length-1,c=t>=n,u=f.s,c){if((n=p<0?-p:p)<=D3){for(o=new h(cn),t=Math.ceil(i/nt+4),it=!1;n%2&&(o=o.times(f),rw(o.d,t)),n=al(n/2),n!==0;)f=f.times(f),rw(f.d,t);return it=!0,e.s<0?new h(cn).div(o):Je(o,i)}}else if(u<0)throw Error(Ln+"NaN");return u=u<0&&e.d[Math.max(t,n)]&1?-1:1,f.s=1,it=!1,o=e.times(Ou(f,i+g)),it=!0,o=R3(o),o.s=u,o};de.toPrecision=function(e,t){var n,i,o=this,u=o.constructor;return e===void 0?(n=yt(o),i=Ca(o,n<=u.toExpNeg||n>=u.toExpPos)):(ur(e,1,il),t===void 0?t=u.rounding:ur(t,0,8),o=Je(new u(o),e,t),n=yt(o),i=Ca(o,e<=n||n<=u.toExpNeg,e)),i};de.toSignificantDigits=de.tosd=function(e,t){var n=this,i=n.constructor;return e===void 0?(e=i.precision,t=i.rounding):(ur(e,1,il),t===void 0?t=i.rounding:ur(t,0,8)),Je(new i(n),e,t)};de.toString=de.valueOf=de.val=de.toJSON=de[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=yt(e),n=e.constructor;return Ca(e,t<=n.toExpNeg||t>=n.toExpPos)};function N3(e,t){var n,i,o,u,c,f,h,g,p=e.constructor,m=p.precision;if(!e.s||!t.s)return t.s||(t=new p(e)),it?Je(t,m):t;if(h=e.d,g=t.d,c=e.e,o=t.e,h=h.slice(),u=c-o,u){for(u<0?(i=h,u=-u,f=g.length):(i=g,o=c,f=h.length),c=Math.ceil(m/nt),f=c>f?c+1:f+1,u>f&&(u=f,i.length=1),i.reverse();u--;)i.push(0);i.reverse()}for(f=h.length,u=g.length,f-u<0&&(u=f,i=g,g=h,h=i),n=0;u;)n=(h[--u]=h[u]+g[u]+n)/Tt|0,h[u]%=Tt;for(n&&(h.unshift(n),++o),f=h.length;h[--f]==0;)h.pop();return t.d=h,t.e=o,it?Je(t,m):t}function ur(e,t,n){if(e!==~~e||e<t||e>n)throw Error(wa+e)}function or(e){var t,n,i,o=e.length-1,u="",c=e[0];if(o>0){for(u+=c,t=1;t<o;t++)i=e[t]+"",n=nt-i.length,n&&(u+=Ei(n)),u+=i;c=e[t],i=c+"",n=nt-i.length,n&&(u+=Ei(n))}else if(c===0)return"0";for(;c%10===0;)c/=10;return u+c}var Pr=(function(){function e(i,o){var u,c=0,f=i.length;for(i=i.slice();f--;)u=i[f]*o+c,i[f]=u%Tt|0,c=u/Tt|0;return c&&i.unshift(c),i}function t(i,o,u,c){var f,h;if(u!=c)h=u>c?1:-1;else for(f=h=0;f<u;f++)if(i[f]!=o[f]){h=i[f]>o[f]?1:-1;break}return h}function n(i,o,u){for(var c=0;u--;)i[u]-=c,c=i[u]<o[u]?1:0,i[u]=c*Tt+i[u]-o[u];for(;!i[0]&&i.length>1;)i.shift()}return function(i,o,u,c){var f,h,g,p,m,v,S,M,b,w,E,A,k,T,C,O,D,N,P=i.constructor,Z=i.s==o.s?1:-1,W=i.d,G=o.d;if(!i.s)return new P(i);if(!o.s)throw Error(Ln+"Division by zero");for(h=i.e-o.e,D=G.length,C=W.length,S=new P(Z),M=S.d=[],g=0;G[g]==(W[g]||0);)++g;if(G[g]>(W[g]||0)&&--h,u==null?A=u=P.precision:c?A=u+(yt(i)-yt(o))+1:A=u,A<0)return new P(0);if(A=A/nt+2|0,g=0,D==1)for(p=0,G=G[0],A++;(g<C||p)&&A--;g++)k=p*Tt+(W[g]||0),M[g]=k/G|0,p=k%G|0;else{for(p=Tt/(G[0]+1)|0,p>1&&(G=e(G,p),W=e(W,p),D=G.length,C=W.length),T=D,b=W.slice(0,D),w=b.length;w<D;)b[w++]=0;N=G.slice(),N.unshift(0),O=G[0],G[1]>=Tt/2&&++O;do p=0,f=t(G,b,D,w),f<0?(E=b[0],D!=w&&(E=E*Tt+(b[1]||0)),p=E/O|0,p>1?(p>=Tt&&(p=Tt-1),m=e(G,p),v=m.length,w=b.length,f=t(m,b,v,w),f==1&&(p--,n(m,D<v?N:G,v))):(p==0&&(f=p=1),m=G.slice()),v=m.length,v<w&&m.unshift(0),n(b,m,w),f==-1&&(w=b.length,f=t(G,b,D,w),f<1&&(p++,n(b,D<w?N:G,w))),w=b.length):f===0&&(p++,b=[0]),M[g++]=p,f&&b[0]?b[w++]=W[T]||0:(b=[W[T]],w=1);while((T++<C||b[0]!==void 0)&&A--)}return M[0]||M.shift(),S.e=h,Je(S,c?u+yt(S)+1:u)}})();function R3(e,t){var n,i,o,u,c,f,h=0,g=0,p=e.constructor,m=p.precision;if(yt(e)>16)throw Error(oy+yt(e));if(!e.s)return new p(cn);for(it=!1,f=m,c=new p(.03125);e.abs().gte(.1);)e=e.times(c),g+=5;for(i=Math.log(la(2,g))/Math.LN10*2+5|0,f+=i,n=o=u=new p(cn),p.precision=f;;){if(o=Je(o.times(e),f),n=n.times(++h),c=u.plus(Pr(o,n,f)),or(c.d).slice(0,f)===or(u.d).slice(0,f)){for(;g--;)u=Je(u.times(u),f);return p.precision=m,t==null?(it=!0,Je(u,m)):u}u=c}}function yt(e){for(var t=e.e*nt,n=e.d[0];n>=10;n/=10)t++;return t}function N0(e,t,n){if(t>e.LN10.sd())throw it=!0,n&&(e.precision=n),Error(Ln+"LN10 precision limit exceeded");return Je(new e(e.LN10),t)}function Ei(e){for(var t="";e--;)t+="0";return t}function Ou(e,t){var n,i,o,u,c,f,h,g,p,m=1,v=10,S=e,M=S.d,b=S.constructor,w=b.precision;if(S.s<1)throw Error(Ln+(S.s?"NaN":"-Infinity"));if(S.eq(cn))return new b(0);if(t==null?(it=!1,g=w):g=t,S.eq(10))return t==null&&(it=!0),N0(b,g);if(g+=v,b.precision=g,n=or(M),i=n.charAt(0),u=yt(S),Math.abs(u)<15e14){for(;i<7&&i!=1||i==1&&n.charAt(1)>3;)S=S.times(e),n=or(S.d),i=n.charAt(0),m++;u=yt(S),i>1?(S=new b("0."+n),u++):S=new b(i+"."+n.slice(1))}else return h=N0(b,g+2,w).times(u+""),S=Ou(new b(i+"."+n.slice(1)),g-v).plus(h),b.precision=w,t==null?(it=!0,Je(S,w)):S;for(f=c=S=Pr(S.minus(cn),S.plus(cn),g),p=Je(S.times(S),g),o=3;;){if(c=Je(c.times(p),g),h=f.plus(Pr(c,new b(o),g)),or(h.d).slice(0,g)===or(f.d).slice(0,g))return f=f.times(2),u!==0&&(f=f.plus(N0(b,g+2,w).times(u+""))),f=Pr(f,new b(m),g),b.precision=w,t==null?(it=!0,Je(f,w)):f;f=h,o+=2}}function nw(e,t){var n,i,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(i=t.search(/e/i))>0?(n<0&&(n=i),n+=+t.slice(i+1),t=t.substring(0,i)):n<0&&(n=t.length),i=0;t.charCodeAt(i)===48;)++i;for(o=t.length;t.charCodeAt(o-1)===48;)--o;if(t=t.slice(i,o),t){if(o-=i,n=n-i-1,e.e=al(n/nt),e.d=[],i=(n+1)%nt,n<0&&(i+=nt),i<o){for(i&&e.d.push(+t.slice(0,i)),o-=nt;i<o;)e.d.push(+t.slice(i,i+=nt));t=t.slice(i),i=nt-t.length}else i-=o;for(;i--;)t+="0";if(e.d.push(+t),it&&(e.e>ff||e.e<-ff))throw Error(oy+n)}else e.s=0,e.e=0,e.d=[0];return e}function Je(e,t,n){var i,o,u,c,f,h,g,p,m=e.d;for(c=1,u=m[0];u>=10;u/=10)c++;if(i=t-c,i<0)i+=nt,o=t,g=m[p=0];else{if(p=Math.ceil((i+1)/nt),u=m.length,p>=u)return e;for(g=u=m[p],c=1;u>=10;u/=10)c++;i%=nt,o=i-nt+c}if(n!==void 0&&(u=la(10,c-o-1),f=g/u%10|0,h=t<0||m[p+1]!==void 0||g%u,h=n<4?(f||h)&&(n==0||n==(e.s<0?3:2)):f>5||f==5&&(n==4||h||n==6&&(i>0?o>0?g/la(10,c-o):0:m[p-1])%10&1||n==(e.s<0?8:7))),t<1||!m[0])return h?(u=yt(e),m.length=1,t=t-u-1,m[0]=la(10,(nt-t%nt)%nt),e.e=al(-t/nt)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(i==0?(m.length=p,u=1,p--):(m.length=p+1,u=la(10,nt-i),m[p]=o>0?(g/la(10,c-o)%la(10,o)|0)*u:0),h)for(;;)if(p==0){(m[0]+=u)==Tt&&(m[0]=1,++e.e);break}else{if(m[p]+=u,m[p]!=Tt)break;m[p--]=0,u=1}for(i=m.length;m[--i]===0;)m.pop();if(it&&(e.e>ff||e.e<-ff))throw Error(oy+yt(e));return e}function z3(e,t){var n,i,o,u,c,f,h,g,p,m,v=e.constructor,S=v.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new v(e),it?Je(t,S):t;if(h=e.d,m=t.d,i=t.e,g=e.e,h=h.slice(),c=g-i,c){for(p=c<0,p?(n=h,c=-c,f=m.length):(n=m,i=g,f=h.length),o=Math.max(Math.ceil(S/nt),f)+2,c>o&&(c=o,n.length=1),n.reverse(),o=c;o--;)n.push(0);n.reverse()}else{for(o=h.length,f=m.length,p=o<f,p&&(f=o),o=0;o<f;o++)if(h[o]!=m[o]){p=h[o]<m[o];break}c=0}for(p&&(n=h,h=m,m=n,t.s=-t.s),f=h.length,o=m.length-f;o>0;--o)h[f++]=0;for(o=m.length;o>c;){if(h[--o]<m[o]){for(u=o;u&&h[--u]===0;)h[u]=Tt-1;--h[u],h[o]+=Tt}h[o]-=m[o]}for(;h[--f]===0;)h.pop();for(;h[0]===0;h.shift())--i;return h[0]?(t.d=h,t.e=i,it?Je(t,S):t):new v(0)}function Ca(e,t,n){var i,o=yt(e),u=or(e.d),c=u.length;return t?(n&&(i=n-c)>0?u=u.charAt(0)+"."+u.slice(1)+Ei(i):c>1&&(u=u.charAt(0)+"."+u.slice(1)),u=u+(o<0?"e":"e+")+o):o<0?(u="0."+Ei(-o-1)+u,n&&(i=n-c)>0&&(u+=Ei(i))):o>=c?(u+=Ei(o+1-c),n&&(i=n-o-1)>0&&(u=u+"."+Ei(i))):((i=o+1)<c&&(u=u.slice(0,i)+"."+u.slice(i)),n&&(i=n-c)>0&&(o+1===c&&(u+="."),u+=Ei(i))),e.s<0?"-"+u:u}function rw(e,t){if(e.length>t)return e.length=t,!0}function L3(e){var t,n,i;function o(u){var c=this;if(!(c instanceof o))return new o(u);if(c.constructor=o,u instanceof o){c.s=u.s,c.e=u.e,c.d=(u=u.d)?u.slice():u;return}if(typeof u=="number"){if(u*0!==0)throw Error(wa+u);if(u>0)c.s=1;else if(u<0)u=-u,c.s=-1;else{c.s=0,c.e=0,c.d=[0];return}if(u===~~u&&u<1e7){c.e=0,c.d=[u];return}return nw(c,u.toString())}else if(typeof u!="string")throw Error(wa+u);if(u.charCodeAt(0)===45?(u=u.slice(1),c.s=-1):c.s=1,IL.test(u))nw(c,u);else throw Error(wa+u)}if(o.prototype=de,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=L3,o.config=o.set=qL,e===void 0&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<i.length;)e.hasOwnProperty(n=i[t++])||(e[n]=this[n]);return o.config(e),o}function qL(e){if(!e||typeof e!="object")throw Error(Ln+"Object expected");var t,n,i,o=["precision",1,il,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if((i=e[n=o[t]])!==void 0)if(al(i)===i&&i>=o[t+1]&&i<=o[t+2])this[n]=i;else throw Error(wa+n+": "+i);if((i=e[n="LN10"])!==void 0)if(i==Math.LN10)this[n]=new this(i);else throw Error(wa+n+": "+i);return this}var ly=L3(LL);cn=new ly(1);const lQ=ly;function Ii(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function UL(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function uy(e){let t,n,i;e.length!==2?(t=Ii,n=(f,h)=>Ii(e(f),h),i=(f,h)=>e(f)-h):(t=e===Ii||e===UL?e:jL,n=e,i=e);function o(f,h,g=0,p=f.length){if(g<p){if(t(h,h)!==0)return p;do{const m=g+p>>>1;n(f[m],h)<0?g=m+1:p=m}while(g<p)}return g}function u(f,h,g=0,p=f.length){if(g<p){if(t(h,h)!==0)return p;do{const m=g+p>>>1;n(f[m],h)<=0?g=m+1:p=m}while(g<p)}return g}function c(f,h,g=0,p=f.length){const m=o(f,h,g,p-1);return m>g&&i(f[m-1],h)>-i(f[m],h)?m-1:m}return{left:o,center:c,right:u}}function jL(){return 0}function I3(e){return e===null?NaN:+e}function*HL(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const BL=uy(Ii),Hu=BL.right;uy(I3).center;class iw extends Map{constructor(t,n=YL){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[i,o]of t)this.set(i,o)}get(t){return super.get(aw(this,t))}has(t){return super.has(aw(this,t))}set(t,n){return super.set(PL(this,t),n)}delete(t){return super.delete($L(this,t))}}function aw({_intern:e,_key:t},n){const i=t(n);return e.has(i)?e.get(i):n}function PL({_intern:e,_key:t},n){const i=t(n);return e.has(i)?e.get(i):(e.set(i,n),n)}function $L({_intern:e,_key:t},n){const i=t(n);return e.has(i)&&(n=e.get(i),e.delete(i)),n}function YL(e){return e!==null&&typeof e=="object"?e.valueOf():e}function VL(e=Ii){if(e===Ii)return q3;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const i=e(t,n);return i||i===0?i:(e(n,n)===0)-(e(t,t)===0)}}function q3(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const FL=Math.sqrt(50),GL=Math.sqrt(10),QL=Math.sqrt(2);function hf(e,t,n){const i=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(i)),u=i/Math.pow(10,o),c=u>=FL?10:u>=GL?5:u>=QL?2:1;let f,h,g;return o<0?(g=Math.pow(10,-o)/c,f=Math.round(e*g),h=Math.round(t*g),f/g<e&&++f,h/g>t&&--h,g=-g):(g=Math.pow(10,o)*c,f=Math.round(e/g),h=Math.round(t/g),f*g<e&&++f,h*g>t&&--h),h<f&&.5<=n&&n<2?hf(e,t,n*2):[f,h,g]}function f1(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const i=t<e,[o,u,c]=i?hf(t,e,n):hf(e,t,n);if(!(u>=o))return[];const f=u-o+1,h=new Array(f);if(i)if(c<0)for(let g=0;g<f;++g)h[g]=(u-g)/-c;else for(let g=0;g<f;++g)h[g]=(u-g)*c;else if(c<0)for(let g=0;g<f;++g)h[g]=(o+g)/-c;else for(let g=0;g<f;++g)h[g]=(o+g)*c;return h}function h1(e,t,n){return t=+t,e=+e,n=+n,hf(e,t,n)[2]}function d1(e,t,n){t=+t,e=+e,n=+n;const i=t<e,o=i?h1(t,e,n):h1(e,t,n);return(i?-1:1)*(o<0?1/-o:o)}function ow(e,t){let n;for(const i of e)i!=null&&(n<i||n===void 0&&i>=i)&&(n=i);return n}function lw(e,t){let n;for(const i of e)i!=null&&(n>i||n===void 0&&i>=i)&&(n=i);return n}function U3(e,t,n=0,i=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),i=Math.floor(Math.min(e.length-1,i)),!(n<=t&&t<=i))return e;for(o=o===void 0?q3:VL(o);i>n;){if(i-n>600){const h=i-n+1,g=t-n+1,p=Math.log(h),m=.5*Math.exp(2*p/3),v=.5*Math.sqrt(p*m*(h-m)/h)*(g-h/2<0?-1:1),S=Math.max(n,Math.floor(t-g*m/h+v)),M=Math.min(i,Math.floor(t+(h-g)*m/h+v));U3(e,t,S,M,o)}const u=e[t];let c=n,f=i;for(au(e,n,t),o(e[i],u)>0&&au(e,n,i);c<f;){for(au(e,c,f),++c,--f;o(e[c],u)<0;)++c;for(;o(e[f],u)>0;)--f}o(e[n],u)===0?au(e,n,f):(++f,au(e,f,i)),f<=t&&(n=f+1),t<=f&&(i=f-1)}return e}function au(e,t,n){const i=e[t];e[t]=e[n],e[n]=i}function XL(e,t,n){if(e=Float64Array.from(HL(e)),!(!(i=e.length)||isNaN(t=+t))){if(t<=0||i<2)return lw(e);if(t>=1)return ow(e);var i,o=(i-1)*t,u=Math.floor(o),c=ow(U3(e,u).subarray(0,u+1)),f=lw(e.subarray(u+1));return c+(f-c)*(o-u)}}function KL(e,t,n=I3){if(!(!(i=e.length)||isNaN(t=+t))){if(t<=0||i<2)return+n(e[0],0,e);if(t>=1)return+n(e[i-1],i-1,e);var i,o=(i-1)*t,u=Math.floor(o),c=+n(e[u],u,e),f=+n(e[u+1],u+1,e);return c+(f-c)*(o-u)}}function ZL(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var i=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,u=new Array(o);++i<o;)u[i]=e+i*n;return u}function qn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Xr(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const g1=Symbol("implicit");function sy(){var e=new iw,t=[],n=[],i=g1;function o(u){let c=e.get(u);if(c===void 0){if(i!==g1)return i;e.set(u,c=t.push(u)-1)}return n[c%n.length]}return o.domain=function(u){if(!arguments.length)return t.slice();t=[],e=new iw;for(const c of u)e.has(c)||e.set(c,t.push(c)-1);return o},o.range=function(u){return arguments.length?(n=Array.from(u),o):n.slice()},o.unknown=function(u){return arguments.length?(i=u,o):i},o.copy=function(){return sy(t,n).unknown(i)},qn.apply(o,arguments),o}function cy(){var e=sy().unknown(void 0),t=e.domain,n=e.range,i=0,o=1,u,c,f=!1,h=0,g=0,p=.5;delete e.unknown;function m(){var v=t().length,S=o<i,M=S?o:i,b=S?i:o;u=(b-M)/Math.max(1,v-h+g*2),f&&(u=Math.floor(u)),M+=(b-M-u*(v-h))*p,c=u*(1-h),f&&(M=Math.round(M),c=Math.round(c));var w=ZL(v).map(function(E){return M+u*E});return n(S?w.reverse():w)}return e.domain=function(v){return arguments.length?(t(v),m()):t()},e.range=function(v){return arguments.length?([i,o]=v,i=+i,o=+o,m()):[i,o]},e.rangeRound=function(v){return[i,o]=v,i=+i,o=+o,f=!0,m()},e.bandwidth=function(){return c},e.step=function(){return u},e.round=function(v){return arguments.length?(f=!!v,m()):f},e.padding=function(v){return arguments.length?(h=Math.min(1,g=+v),m()):h},e.paddingInner=function(v){return arguments.length?(h=Math.min(1,v),m()):h},e.paddingOuter=function(v){return arguments.length?(g=+v,m()):g},e.align=function(v){return arguments.length?(p=Math.max(0,Math.min(1,v)),m()):p},e.copy=function(){return cy(t(),[i,o]).round(f).paddingInner(h).paddingOuter(g).align(p)},qn.apply(m(),arguments)}function j3(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return j3(t())},e}function JL(){return j3(cy.apply(null,arguments).paddingInner(1))}function WL(e){return function(){return e}}function df(e){return+e}var uw=[0,1];function Ht(e){return e}function p1(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:WL(isNaN(t)?NaN:.5)}function eI(e,t){var n;return e>t&&(n=e,e=t,t=n),function(i){return Math.max(e,Math.min(t,i))}}function tI(e,t,n){var i=e[0],o=e[1],u=t[0],c=t[1];return o<i?(i=p1(o,i),u=n(c,u)):(i=p1(i,o),u=n(u,c)),function(f){return u(i(f))}}function nI(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),u=new Array(i),c=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++c<i;)o[c]=p1(e[c],e[c+1]),u[c]=n(t[c],t[c+1]);return function(f){var h=Hu(e,f,1,i)-1;return u[h](o[h](f))}}function Bu(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function zf(){var e=uw,t=uw,n=rl,i,o,u,c=Ht,f,h,g;function p(){var v=Math.min(e.length,t.length);return c!==Ht&&(c=eI(e[0],e[v-1])),f=v>2?nI:tI,h=g=null,m}function m(v){return v==null||isNaN(v=+v)?u:(h||(h=f(e.map(i),t,n)))(i(c(v)))}return m.invert=function(v){return c(o((g||(g=f(t,e.map(i),Yn)))(v)))},m.domain=function(v){return arguments.length?(e=Array.from(v,df),p()):e.slice()},m.range=function(v){return arguments.length?(t=Array.from(v),p()):t.slice()},m.rangeRound=function(v){return t=Array.from(v),n=F1,p()},m.clamp=function(v){return arguments.length?(c=v?!0:Ht,p()):c!==Ht},m.interpolate=function(v){return arguments.length?(n=v,p()):n},m.unknown=function(v){return arguments.length?(u=v,m):u},function(v,S){return i=v,o=S,p()}}function fy(){return zf()(Ht,Ht)}function rI(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function gf(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),i=e.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function Go(e){return e=gf(Math.abs(e)),e?e[1]:NaN}function iI(e,t){return function(n,i){for(var o=n.length,u=[],c=0,f=e[0],h=0;o>0&&f>0&&(h+f+1>i&&(f=Math.max(1,i-h)),u.push(n.substring(o-=f,o+f)),!((h+=f+1)>i));)f=e[c=(c+1)%e.length];return u.reverse().join(t)}}function aI(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var oI=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Cu(e){if(!(t=oI.exec(e)))throw new Error("invalid format: "+e);var t;return new hy({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]})}Cu.prototype=hy.prototype;function hy(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+""}hy.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 lI(e){e:for(var t=e.length,n=1,i=-1,o;n<t;++n)switch(e[n]){case".":i=o=n;break;case"0":i===0&&(i=n),o=n;break;default:if(!+e[n])break e;i>0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(o+1):e}var pf;function uI(e,t){var n=gf(e,t);if(!n)return pf=void 0,e.toPrecision(t);var i=n[0],o=n[1],u=o-(pf=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,c=i.length;return u===c?i:u>c?i+new Array(u-c+1).join("0"):u>0?i.slice(0,u)+"."+i.slice(u):"0."+new Array(1-u).join("0")+gf(e,Math.max(0,t+u-1))[0]}function sw(e,t){var n=gf(e,t);if(!n)return e+"";var i=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}const cw={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:rI,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)=>sw(e*100,t),r:sw,s:uI,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function fw(e){return e}var hw=Array.prototype.map,dw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function sI(e){var t=e.grouping===void 0||e.thousands===void 0?fw:iI(hw.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",i=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",u=e.numerals===void 0?fw:aI(hw.call(e.numerals,String)),c=e.percent===void 0?"%":e.percent+"",f=e.minus===void 0?"−":e.minus+"",h=e.nan===void 0?"NaN":e.nan+"";function g(m,v){m=Cu(m);var S=m.fill,M=m.align,b=m.sign,w=m.symbol,E=m.zero,A=m.width,k=m.comma,T=m.precision,C=m.trim,O=m.type;O==="n"?(k=!0,O="g"):cw[O]||(T===void 0&&(T=12),C=!0,O="g"),(E||S==="0"&&M==="=")&&(E=!0,S="0",M="=");var D=(v&&v.prefix!==void 0?v.prefix:"")+(w==="$"?n:w==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),N=(w==="$"?i:/[%p]/.test(O)?c:"")+(v&&v.suffix!==void 0?v.suffix:""),P=cw[O],Z=/[defgprs%]/.test(O);T=T===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,T)):Math.max(0,Math.min(20,T));function W(G){var ue=D,q=N,re,R,F;if(O==="c")q=P(G)+q,G="";else{G=+G;var ie=G<0||1/G<0;if(G=isNaN(G)?h:P(Math.abs(G),T),C&&(G=lI(G)),ie&&+G==0&&b!=="+"&&(ie=!1),ue=(ie?b==="("?b:f:b==="-"||b==="("?"":b)+ue,q=(O==="s"&&!isNaN(G)&&pf!==void 0?dw[8+pf/3]:"")+q+(ie&&b==="("?")":""),Z){for(re=-1,R=G.length;++re<R;)if(F=G.charCodeAt(re),48>F||F>57){q=(F===46?o+G.slice(re+1):G.slice(re))+q,G=G.slice(0,re);break}}}k&&!E&&(G=t(G,1/0));var se=ue.length+G.length+q.length,K=se<A?new Array(A-se+1).join(S):"";switch(k&&E&&(G=t(K+G,K.length?A-q.length:1/0),K=""),M){case"<":G=ue+G+q+K;break;case"=":G=ue+K+G+q;break;case"^":G=K.slice(0,se=K.length>>1)+ue+G+q+K.slice(se);break;default:G=K+ue+G+q;break}return u(G)}return W.toString=function(){return m+""},W}function p(m,v){var S=Math.max(-8,Math.min(8,Math.floor(Go(v)/3)))*3,M=Math.pow(10,-S),b=g((m=Cu(m),m.type="f",m),{suffix:dw[8+S/3]});return function(w){return b(M*w)}}return{format:g,formatPrefix:p}}var _c,dy,H3;cI({thousands:",",grouping:[3],currency:["$",""]});function cI(e){return _c=sI(e),dy=_c.format,H3=_c.formatPrefix,_c}function fI(e){return Math.max(0,-Go(Math.abs(e)))}function hI(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Go(t)/3)))*3-Go(Math.abs(e)))}function dI(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Go(t)-Go(e))+1}function B3(e,t,n,i){var o=d1(e,t,n),u;switch(i=Cu(i??",f"),i.type){case"s":{var c=Math.max(Math.abs(e),Math.abs(t));return i.precision==null&&!isNaN(u=hI(o,c))&&(i.precision=u),H3(i,c)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(u=dI(o,Math.max(Math.abs(e),Math.abs(t))))&&(i.precision=u-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(u=fI(o))&&(i.precision=u-(i.type==="%")*2);break}}return dy(i)}function Ui(e){var t=e.domain;return e.ticks=function(n){var i=t();return f1(i[0],i[i.length-1],n??10)},e.tickFormat=function(n,i){var o=t();return B3(o[0],o[o.length-1],n??10,i)},e.nice=function(n){n==null&&(n=10);var i=t(),o=0,u=i.length-1,c=i[o],f=i[u],h,g,p=10;for(f<c&&(g=c,c=f,f=g,g=o,o=u,u=g);p-- >0;){if(g=h1(c,f,n),g===h)return i[o]=c,i[u]=f,t(i);if(g>0)c=Math.floor(c/g)*g,f=Math.ceil(f/g)*g;else if(g<0)c=Math.ceil(c*g)/g,f=Math.floor(f*g)/g;else break;h=g}return e},e}function P3(){var e=fy();return e.copy=function(){return Bu(e,P3())},qn.apply(e,arguments),Ui(e)}function $3(e){var t;function n(i){return i==null||isNaN(i=+i)?t:i}return n.invert=n,n.domain=n.range=function(i){return arguments.length?(e=Array.from(i,df),n):e.slice()},n.unknown=function(i){return arguments.length?(t=i,n):t},n.copy=function(){return $3(e).unknown(t)},e=arguments.length?Array.from(e,df):[0,1],Ui(n)}function Y3(e,t){e=e.slice();var n=0,i=e.length-1,o=e[n],u=e[i],c;return u<o&&(c=n,n=i,i=c,c=o,o=u,u=c),e[n]=t.floor(o),e[i]=t.ceil(u),e}function gw(e){return Math.log(e)}function pw(e){return Math.exp(e)}function gI(e){return-Math.log(-e)}function pI(e){return-Math.exp(-e)}function yI(e){return isFinite(e)?+("1e"+e):e<0?0:e}function mI(e){return e===10?yI:e===Math.E?Math.exp:t=>Math.pow(e,t)}function vI(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function yw(e){return(t,n)=>-e(-t,n)}function gy(e){const t=e(gw,pw),n=t.domain;let i=10,o,u;function c(){return o=vI(i),u=mI(i),n()[0]<0?(o=yw(o),u=yw(u),e(gI,pI)):e(gw,pw),t}return t.base=function(f){return arguments.length?(i=+f,c()):i},t.domain=function(f){return arguments.length?(n(f),c()):n()},t.ticks=f=>{const h=n();let g=h[0],p=h[h.length-1];const m=p<g;m&&([g,p]=[p,g]);let v=o(g),S=o(p),M,b;const w=f==null?10:+f;let E=[];if(!(i%1)&&S-v<w){if(v=Math.floor(v),S=Math.ceil(S),g>0){for(;v<=S;++v)for(M=1;M<i;++M)if(b=v<0?M/u(-v):M*u(v),!(b<g)){if(b>p)break;E.push(b)}}else for(;v<=S;++v)for(M=i-1;M>=1;--M)if(b=v>0?M/u(-v):M*u(v),!(b<g)){if(b>p)break;E.push(b)}E.length*2<w&&(E=f1(g,p,w))}else E=f1(v,S,Math.min(S-v,w)).map(u);return m?E.reverse():E},t.tickFormat=(f,h)=>{if(f==null&&(f=10),h==null&&(h=i===10?"s":","),typeof h!="function"&&(!(i%1)&&(h=Cu(h)).precision==null&&(h.trim=!0),h=dy(h)),f===1/0)return h;const g=Math.max(1,i*f/t.ticks().length);return p=>{let m=p/u(Math.round(o(p)));return m*i<i-.5&&(m*=i),m<=g?h(p):""}},t.nice=()=>n(Y3(n(),{floor:f=>u(Math.floor(o(f))),ceil:f=>u(Math.ceil(o(f)))})),t}function V3(){const e=gy(zf()).domain([1,10]);return e.copy=()=>Bu(e,V3()).base(e.base()),qn.apply(e,arguments),e}function mw(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function vw(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function py(e){var t=1,n=e(mw(t),vw(t));return n.constant=function(i){return arguments.length?e(mw(t=+i),vw(t)):t},Ui(n)}function F3(){var e=py(zf());return e.copy=function(){return Bu(e,F3()).constant(e.constant())},qn.apply(e,arguments)}function bw(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function bI(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function SI(e){return e<0?-e*e:e*e}function yy(e){var t=e(Ht,Ht),n=1;function i(){return n===1?e(Ht,Ht):n===.5?e(bI,SI):e(bw(n),bw(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,i()):n},Ui(t)}function my(){var e=yy(zf());return e.copy=function(){return Bu(e,my()).exponent(e.exponent())},qn.apply(e,arguments),e}function _I(){return my.apply(null,arguments).exponent(.5)}function Sw(e){return Math.sign(e)*e*e}function wI(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function G3(){var e=fy(),t=[0,1],n=!1,i;function o(u){var c=wI(e(u));return isNaN(c)?i:n?Math.round(c):c}return o.invert=function(u){return e.invert(Sw(u))},o.domain=function(u){return arguments.length?(e.domain(u),o):e.domain()},o.range=function(u){return arguments.length?(e.range((t=Array.from(u,df)).map(Sw)),o):t.slice()},o.rangeRound=function(u){return o.range(u).round(!0)},o.round=function(u){return arguments.length?(n=!!u,o):n},o.clamp=function(u){return arguments.length?(e.clamp(u),o):e.clamp()},o.unknown=function(u){return arguments.length?(i=u,o):i},o.copy=function(){return G3(e.domain(),t).round(n).clamp(e.clamp()).unknown(i)},qn.apply(o,arguments),Ui(o)}function Q3(){var e=[],t=[],n=[],i;function o(){var c=0,f=Math.max(1,t.length);for(n=new Array(f-1);++c<f;)n[c-1]=KL(e,c/f);return u}function u(c){return c==null||isNaN(c=+c)?i:t[Hu(n,c)]}return u.invertExtent=function(c){var f=t.indexOf(c);return f<0?[NaN,NaN]:[f>0?n[f-1]:e[0],f<n.length?n[f]:e[e.length-1]]},u.domain=function(c){if(!arguments.length)return e.slice();e=[];for(let f of c)f!=null&&!isNaN(f=+f)&&e.push(f);return e.sort(Ii),o()},u.range=function(c){return arguments.length?(t=Array.from(c),o()):t.slice()},u.unknown=function(c){return arguments.length?(i=c,u):i},u.quantiles=function(){return n.slice()},u.copy=function(){return Q3().domain(e).range(t).unknown(i)},qn.apply(u,arguments)}function X3(){var e=0,t=1,n=1,i=[.5],o=[0,1],u;function c(h){return h!=null&&h<=h?o[Hu(i,h,0,n)]:u}function f(){var h=-1;for(i=new Array(n);++h<n;)i[h]=((h+1)*t-(h-n)*e)/(n+1);return c}return c.domain=function(h){return arguments.length?([e,t]=h,e=+e,t=+t,f()):[e,t]},c.range=function(h){return arguments.length?(n=(o=Array.from(h)).length-1,f()):o.slice()},c.invertExtent=function(h){var g=o.indexOf(h);return g<0?[NaN,NaN]:g<1?[e,i[0]]:g>=n?[i[n-1],t]:[i[g-1],i[g]]},c.unknown=function(h){return arguments.length&&(u=h),c},c.thresholds=function(){return i.slice()},c.copy=function(){return X3().domain([e,t]).range(o).unknown(u)},qn.apply(Ui(c),arguments)}function K3(){var e=[.5],t=[0,1],n,i=1;function o(u){return u!=null&&u<=u?t[Hu(e,u,0,i)]:n}return o.domain=function(u){return arguments.length?(e=Array.from(u),i=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(u){return arguments.length?(t=Array.from(u),i=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(u){var c=t.indexOf(u);return[e[c-1],e[c]]},o.unknown=function(u){return arguments.length?(n=u,o):n},o.copy=function(){return K3().domain(e).range(t).unknown(n)},qn.apply(o,arguments)}const R0=new Date,z0=new Date;function bt(e,t,n,i){function o(u){return e(u=arguments.length===0?new Date:new Date(+u)),u}return o.floor=u=>(e(u=new Date(+u)),u),o.ceil=u=>(e(u=new Date(u-1)),t(u,1),e(u),u),o.round=u=>{const c=o(u),f=o.ceil(u);return u-c<f-u?c:f},o.offset=(u,c)=>(t(u=new Date(+u),c==null?1:Math.floor(c)),u),o.range=(u,c,f)=>{const h=[];if(u=o.ceil(u),f=f==null?1:Math.floor(f),!(u<c)||!(f>0))return h;let g;do h.push(g=new Date(+u)),t(u,f),e(u);while(g<u&&u<c);return h},o.filter=u=>bt(c=>{if(c>=c)for(;e(c),!u(c);)c.setTime(c-1)},(c,f)=>{if(c>=c)if(f<0)for(;++f<=0;)for(;t(c,-1),!u(c););else for(;--f>=0;)for(;t(c,1),!u(c););}),n&&(o.count=(u,c)=>(R0.setTime(+u),z0.setTime(+c),e(R0),e(z0),Math.floor(n(R0,z0))),o.every=u=>(u=Math.floor(u),!isFinite(u)||!(u>0)?null:u>1?o.filter(i?c=>i(c)%u===0:c=>o.count(0,c)%u===0):o)),o}const yf=bt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);yf.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?bt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):yf);yf.range;const Hr=1e3,Rn=Hr*60,Br=Rn*60,Fr=Br*24,vy=Fr*7,_w=Fr*30,L0=Fr*365,fa=bt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Hr)},(e,t)=>(t-e)/Hr,e=>e.getUTCSeconds());fa.range;const by=bt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Hr)},(e,t)=>{e.setTime(+e+t*Rn)},(e,t)=>(t-e)/Rn,e=>e.getMinutes());by.range;const Sy=bt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Rn)},(e,t)=>(t-e)/Rn,e=>e.getUTCMinutes());Sy.range;const _y=bt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Hr-e.getMinutes()*Rn)},(e,t)=>{e.setTime(+e+t*Br)},(e,t)=>(t-e)/Br,e=>e.getHours());_y.range;const wy=bt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Br)},(e,t)=>(t-e)/Br,e=>e.getUTCHours());wy.range;const Pu=bt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Rn)/Fr,e=>e.getDate()-1);Pu.range;const Lf=bt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Fr,e=>e.getUTCDate()-1);Lf.range;const Z3=bt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Fr,e=>Math.floor(e/Fr));Z3.range;function Da(e){return bt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Rn)/vy)}const If=Da(0),mf=Da(1),MI=Da(2),TI=Da(3),Qo=Da(4),EI=Da(5),xI=Da(6);If.range;mf.range;MI.range;TI.range;Qo.range;EI.range;xI.range;function Na(e){return bt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/vy)}const qf=Na(0),vf=Na(1),OI=Na(2),CI=Na(3),Xo=Na(4),kI=Na(5),AI=Na(6);qf.range;vf.range;OI.range;CI.range;Xo.range;kI.range;AI.range;const My=bt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());My.range;const Ty=bt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Ty.range;const Gr=bt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Gr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:bt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Gr.range;const Qr=bt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Qr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:bt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Qr.range;function J3(e,t,n,i,o,u){const c=[[fa,1,Hr],[fa,5,5*Hr],[fa,15,15*Hr],[fa,30,30*Hr],[u,1,Rn],[u,5,5*Rn],[u,15,15*Rn],[u,30,30*Rn],[o,1,Br],[o,3,3*Br],[o,6,6*Br],[o,12,12*Br],[i,1,Fr],[i,2,2*Fr],[n,1,vy],[t,1,_w],[t,3,3*_w],[e,1,L0]];function f(g,p,m){const v=p<g;v&&([g,p]=[p,g]);const S=m&&typeof m.range=="function"?m:h(g,p,m),M=S?S.range(g,+p+1):[];return v?M.reverse():M}function h(g,p,m){const v=Math.abs(p-g)/m,S=uy(([,,w])=>w).right(c,v);if(S===c.length)return e.every(d1(g/L0,p/L0,m));if(S===0)return yf.every(Math.max(d1(g,p,m),1));const[M,b]=c[v/c[S-1][2]<c[S][2]/v?S-1:S];return M.every(b)}return[f,h]}const[DI,NI]=J3(Qr,Ty,qf,Z3,wy,Sy),[RI,zI]=J3(Gr,My,If,Pu,_y,by);function I0(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function q0(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ou(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function LI(e){var t=e.dateTime,n=e.date,i=e.time,o=e.periods,u=e.days,c=e.shortDays,f=e.months,h=e.shortMonths,g=lu(o),p=uu(o),m=lu(u),v=uu(u),S=lu(c),M=uu(c),b=lu(f),w=uu(f),E=lu(h),A=uu(h),k={a:F,A:ie,b:se,B:K,c:null,d:Ow,e:Ow,f:iq,g:gq,G:yq,H:tq,I:nq,j:rq,L:W3,m:aq,M:oq,p:z,q:Q,Q:Aw,s:Dw,S:lq,u:uq,U:sq,V:cq,w:fq,W:hq,x:null,X:null,y:dq,Y:pq,Z:mq,"%":kw},T={a:oe,A:le,b:ce,B:he,c:null,d:Cw,e:Cw,f:_q,g:Dq,G:Rq,H:vq,I:bq,j:Sq,L:tx,m:wq,M:Mq,p:ve,q:Ae,Q:Aw,s:Dw,S:Tq,u:Eq,U:xq,V:Oq,w:Cq,W:kq,x:null,X:null,y:Aq,Y:Nq,Z:zq,"%":kw},C={a:Z,A:W,b:G,B:ue,c:q,d:Ew,e:Ew,f:ZI,g:Tw,G:Mw,H:xw,I:xw,j:GI,L:KI,m:FI,M:QI,p:P,q:VI,Q:WI,s:eq,S:XI,u:HI,U:BI,V:PI,w:jI,W:$I,x:re,X:R,y:Tw,Y:Mw,Z:YI,"%":JI};k.x=O(n,k),k.X=O(i,k),k.c=O(t,k),T.x=O(n,T),T.X=O(i,T),T.c=O(t,T);function O(ne,we){return function(xe){var ae=[],st=-1,De=0,xt=ne.length,Ot,cr,ol;for(xe instanceof Date||(xe=new Date(+xe));++st<xt;)ne.charCodeAt(st)===37&&(ae.push(ne.slice(De,st)),(cr=ww[Ot=ne.charAt(++st)])!=null?Ot=ne.charAt(++st):cr=Ot==="e"?" ":"0",(ol=we[Ot])&&(Ot=ol(xe,cr)),ae.push(Ot),De=st+1);return ae.push(ne.slice(De,st)),ae.join("")}}function D(ne,we){return function(xe){var ae=ou(1900,void 0,1),st=N(ae,ne,xe+="",0),De,xt;if(st!=xe.length)return null;if("Q"in ae)return new Date(ae.Q);if("s"in ae)return new Date(ae.s*1e3+("L"in ae?ae.L:0));if(we&&!("Z"in ae)&&(ae.Z=0),"p"in ae&&(ae.H=ae.H%12+ae.p*12),ae.m===void 0&&(ae.m="q"in ae?ae.q:0),"V"in ae){if(ae.V<1||ae.V>53)return null;"w"in ae||(ae.w=1),"Z"in ae?(De=q0(ou(ae.y,0,1)),xt=De.getUTCDay(),De=xt>4||xt===0?vf.ceil(De):vf(De),De=Lf.offset(De,(ae.V-1)*7),ae.y=De.getUTCFullYear(),ae.m=De.getUTCMonth(),ae.d=De.getUTCDate()+(ae.w+6)%7):(De=I0(ou(ae.y,0,1)),xt=De.getDay(),De=xt>4||xt===0?mf.ceil(De):mf(De),De=Pu.offset(De,(ae.V-1)*7),ae.y=De.getFullYear(),ae.m=De.getMonth(),ae.d=De.getDate()+(ae.w+6)%7)}else("W"in ae||"U"in ae)&&("w"in ae||(ae.w="u"in ae?ae.u%7:"W"in ae?1:0),xt="Z"in ae?q0(ou(ae.y,0,1)).getUTCDay():I0(ou(ae.y,0,1)).getDay(),ae.m=0,ae.d="W"in ae?(ae.w+6)%7+ae.W*7-(xt+5)%7:ae.w+ae.U*7-(xt+6)%7);return"Z"in ae?(ae.H+=ae.Z/100|0,ae.M+=ae.Z%100,q0(ae)):I0(ae)}}function N(ne,we,xe,ae){for(var st=0,De=we.length,xt=xe.length,Ot,cr;st<De;){if(ae>=xt)return-1;if(Ot=we.charCodeAt(st++),Ot===37){if(Ot=we.charAt(st++),cr=C[Ot in ww?we.charAt(st++):Ot],!cr||(ae=cr(ne,xe,ae))<0)return-1}else if(Ot!=xe.charCodeAt(ae++))return-1}return ae}function P(ne,we,xe){var ae=g.exec(we.slice(xe));return ae?(ne.p=p.get(ae[0].toLowerCase()),xe+ae[0].length):-1}function Z(ne,we,xe){var ae=S.exec(we.slice(xe));return ae?(ne.w=M.get(ae[0].toLowerCase()),xe+ae[0].length):-1}function W(ne,we,xe){var ae=m.exec(we.slice(xe));return ae?(ne.w=v.get(ae[0].toLowerCase()),xe+ae[0].length):-1}function G(ne,we,xe){var ae=E.exec(we.slice(xe));return ae?(ne.m=A.get(ae[0].toLowerCase()),xe+ae[0].length):-1}function ue(ne,we,xe){var ae=b.exec(we.slice(xe));return ae?(ne.m=w.get(ae[0].toLowerCase()),xe+ae[0].length):-1}function q(ne,we,xe){return N(ne,t,we,xe)}function re(ne,we,xe){return N(ne,n,we,xe)}function R(ne,we,xe){return N(ne,i,we,xe)}function F(ne){return c[ne.getDay()]}function ie(ne){return u[ne.getDay()]}function se(ne){return h[ne.getMonth()]}function K(ne){return f[ne.getMonth()]}function z(ne){return o[+(ne.getHours()>=12)]}function Q(ne){return 1+~~(ne.getMonth()/3)}function oe(ne){return c[ne.getUTCDay()]}function le(ne){return u[ne.getUTCDay()]}function ce(ne){return h[ne.getUTCMonth()]}function he(ne){return f[ne.getUTCMonth()]}function ve(ne){return o[+(ne.getUTCHours()>=12)]}function Ae(ne){return 1+~~(ne.getUTCMonth()/3)}return{format:function(ne){var we=O(ne+="",k);return we.toString=function(){return ne},we},parse:function(ne){var we=D(ne+="",!1);return we.toString=function(){return ne},we},utcFormat:function(ne){var we=O(ne+="",T);return we.toString=function(){return ne},we},utcParse:function(ne){var we=D(ne+="",!0);return we.toString=function(){return ne},we}}}var ww={"-":"",_:" ",0:"0"},Et=/^\s*\d+/,II=/^%/,qI=/[\\^$*+?|[\]().{}]/g;function Pe(e,t,n){var i=e<0?"-":"",o=(i?-e:e)+"",u=o.length;return i+(u<n?new Array(n-u+1).join(t)+o:o)}function UI(e){return e.replace(qI,"\\$&")}function lu(e){return new RegExp("^(?:"+e.map(UI).join("|")+")","i")}function uu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function jI(e,t,n){var i=Et.exec(t.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function HI(e,t,n){var i=Et.exec(t.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function BI(e,t,n){var i=Et.exec(t.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function PI(e,t,n){var i=Et.exec(t.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function $I(e,t,n){var i=Et.exec(t.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function Mw(e,t,n){var i=Et.exec(t.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function Tw(e,t,n){var i=Et.exec(t.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function YI(e,t,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function VI(e,t,n){var i=Et.exec(t.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function FI(e,t,n){var i=Et.exec(t.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function Ew(e,t,n){var i=Et.exec(t.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function GI(e,t,n){var i=Et.exec(t.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function xw(e,t,n){var i=Et.exec(t.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function QI(e,t,n){var i=Et.exec(t.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function XI(e,t,n){var i=Et.exec(t.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function KI(e,t,n){var i=Et.exec(t.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function ZI(e,t,n){var i=Et.exec(t.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function JI(e,t,n){var i=II.exec(t.slice(n,n+1));return i?n+i[0].length:-1}function WI(e,t,n){var i=Et.exec(t.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function eq(e,t,n){var i=Et.exec(t.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function Ow(e,t){return Pe(e.getDate(),t,2)}function tq(e,t){return Pe(e.getHours(),t,2)}function nq(e,t){return Pe(e.getHours()%12||12,t,2)}function rq(e,t){return Pe(1+Pu.count(Gr(e),e),t,3)}function W3(e,t){return Pe(e.getMilliseconds(),t,3)}function iq(e,t){return W3(e,t)+"000"}function aq(e,t){return Pe(e.getMonth()+1,t,2)}function oq(e,t){return Pe(e.getMinutes(),t,2)}function lq(e,t){return Pe(e.getSeconds(),t,2)}function uq(e){var t=e.getDay();return t===0?7:t}function sq(e,t){return Pe(If.count(Gr(e)-1,e),t,2)}function ex(e){var t=e.getDay();return t>=4||t===0?Qo(e):Qo.ceil(e)}function cq(e,t){return e=ex(e),Pe(Qo.count(Gr(e),e)+(Gr(e).getDay()===4),t,2)}function fq(e){return e.getDay()}function hq(e,t){return Pe(mf.count(Gr(e)-1,e),t,2)}function dq(e,t){return Pe(e.getFullYear()%100,t,2)}function gq(e,t){return e=ex(e),Pe(e.getFullYear()%100,t,2)}function pq(e,t){return Pe(e.getFullYear()%1e4,t,4)}function yq(e,t){var n=e.getDay();return e=n>=4||n===0?Qo(e):Qo.ceil(e),Pe(e.getFullYear()%1e4,t,4)}function mq(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Pe(t/60|0,"0",2)+Pe(t%60,"0",2)}function Cw(e,t){return Pe(e.getUTCDate(),t,2)}function vq(e,t){return Pe(e.getUTCHours(),t,2)}function bq(e,t){return Pe(e.getUTCHours()%12||12,t,2)}function Sq(e,t){return Pe(1+Lf.count(Qr(e),e),t,3)}function tx(e,t){return Pe(e.getUTCMilliseconds(),t,3)}function _q(e,t){return tx(e,t)+"000"}function wq(e,t){return Pe(e.getUTCMonth()+1,t,2)}function Mq(e,t){return Pe(e.getUTCMinutes(),t,2)}function Tq(e,t){return Pe(e.getUTCSeconds(),t,2)}function Eq(e){var t=e.getUTCDay();return t===0?7:t}function xq(e,t){return Pe(qf.count(Qr(e)-1,e),t,2)}function nx(e){var t=e.getUTCDay();return t>=4||t===0?Xo(e):Xo.ceil(e)}function Oq(e,t){return e=nx(e),Pe(Xo.count(Qr(e),e)+(Qr(e).getUTCDay()===4),t,2)}function Cq(e){return e.getUTCDay()}function kq(e,t){return Pe(vf.count(Qr(e)-1,e),t,2)}function Aq(e,t){return Pe(e.getUTCFullYear()%100,t,2)}function Dq(e,t){return e=nx(e),Pe(e.getUTCFullYear()%100,t,2)}function Nq(e,t){return Pe(e.getUTCFullYear()%1e4,t,4)}function Rq(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Xo(e):Xo.ceil(e),Pe(e.getUTCFullYear()%1e4,t,4)}function zq(){return"+0000"}function kw(){return"%"}function Aw(e){return+e}function Dw(e){return Math.floor(+e/1e3)}var wo,rx,ix;Lq({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Lq(e){return wo=LI(e),rx=wo.format,wo.parse,ix=wo.utcFormat,wo.utcParse,wo}function Iq(e){return new Date(e)}function qq(e){return e instanceof Date?+e:+new Date(+e)}function Ey(e,t,n,i,o,u,c,f,h,g){var p=fy(),m=p.invert,v=p.domain,S=g(".%L"),M=g(":%S"),b=g("%I:%M"),w=g("%I %p"),E=g("%a %d"),A=g("%b %d"),k=g("%B"),T=g("%Y");function C(O){return(h(O)<O?S:f(O)<O?M:c(O)<O?b:u(O)<O?w:i(O)<O?o(O)<O?E:A:n(O)<O?k:T)(O)}return p.invert=function(O){return new Date(m(O))},p.domain=function(O){return arguments.length?v(Array.from(O,qq)):v().map(Iq)},p.ticks=function(O){var D=v();return e(D[0],D[D.length-1],O??10)},p.tickFormat=function(O,D){return D==null?C:g(D)},p.nice=function(O){var D=v();return(!O||typeof O.range!="function")&&(O=t(D[0],D[D.length-1],O??10)),O?v(Y3(D,O)):p},p.copy=function(){return Bu(p,Ey(e,t,n,i,o,u,c,f,h,g))},p}function Uq(){return qn.apply(Ey(RI,zI,Gr,My,If,Pu,_y,by,fa,rx).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function jq(){return qn.apply(Ey(DI,NI,Qr,Ty,qf,Lf,wy,Sy,fa,ix).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Uf(){var e=0,t=1,n,i,o,u,c=Ht,f=!1,h;function g(m){return m==null||isNaN(m=+m)?h:c(o===0?.5:(m=(u(m)-n)*o,f?Math.max(0,Math.min(1,m)):m))}g.domain=function(m){return arguments.length?([e,t]=m,n=u(e=+e),i=u(t=+t),o=n===i?0:1/(i-n),g):[e,t]},g.clamp=function(m){return arguments.length?(f=!!m,g):f},g.interpolator=function(m){return arguments.length?(c=m,g):c};function p(m){return function(v){var S,M;return arguments.length?([S,M]=v,c=m(S,M),g):[c(0),c(1)]}}return g.range=p(rl),g.rangeRound=p(F1),g.unknown=function(m){return arguments.length?(h=m,g):h},function(m){return u=m,n=m(e),i=m(t),o=n===i?0:1/(i-n),g}}function ji(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function ax(){var e=Ui(Uf()(Ht));return e.copy=function(){return ji(e,ax())},Xr.apply(e,arguments)}function ox(){var e=gy(Uf()).domain([1,10]);return e.copy=function(){return ji(e,ox()).base(e.base())},Xr.apply(e,arguments)}function lx(){var e=py(Uf());return e.copy=function(){return ji(e,lx()).constant(e.constant())},Xr.apply(e,arguments)}function xy(){var e=yy(Uf());return e.copy=function(){return ji(e,xy()).exponent(e.exponent())},Xr.apply(e,arguments)}function Hq(){return xy.apply(null,arguments).exponent(.5)}function ux(){var e=[],t=Ht;function n(i){if(i!=null&&!isNaN(i=+i))return t((Hu(e,i,1)-1)/(e.length-1))}return n.domain=function(i){if(!arguments.length)return e.slice();e=[];for(let o of i)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(Ii),n},n.interpolator=function(i){return arguments.length?(t=i,n):t},n.range=function(){return e.map((i,o)=>t(o/(e.length-1)))},n.quantiles=function(i){return Array.from({length:i+1},(o,u)=>XL(e,u/i))},n.copy=function(){return ux(t).domain(e)},Xr.apply(n,arguments)}function jf(){var e=0,t=.5,n=1,i=1,o,u,c,f,h,g=Ht,p,m=!1,v;function S(b){return isNaN(b=+b)?v:(b=.5+((b=+p(b))-u)*(i*b<i*u?f:h),g(m?Math.max(0,Math.min(1,b)):b))}S.domain=function(b){return arguments.length?([e,t,n]=b,o=p(e=+e),u=p(t=+t),c=p(n=+n),f=o===u?0:.5/(u-o),h=u===c?0:.5/(c-u),i=u<o?-1:1,S):[e,t,n]},S.clamp=function(b){return arguments.length?(m=!!b,S):m},S.interpolator=function(b){return arguments.length?(g=b,S):g};function M(b){return function(w){var E,A,k;return arguments.length?([E,A,k]=w,g=t9(b,[E,A,k]),S):[g(0),g(.5),g(1)]}}return S.range=M(rl),S.rangeRound=M(F1),S.unknown=function(b){return arguments.length?(v=b,S):v},function(b){return p=b,o=b(e),u=b(t),c=b(n),f=o===u?0:.5/(u-o),h=u===c?0:.5/(c-u),i=u<o?-1:1,S}}function sx(){var e=Ui(jf()(Ht));return e.copy=function(){return ji(e,sx())},Xr.apply(e,arguments)}function cx(){var e=gy(jf()).domain([.1,1,10]);return e.copy=function(){return ji(e,cx()).base(e.base())},Xr.apply(e,arguments)}function fx(){var e=py(jf());return e.copy=function(){return ji(e,fx()).constant(e.constant())},Xr.apply(e,arguments)}function Oy(){var e=yy(jf());return e.copy=function(){return ji(e,Oy()).exponent(e.exponent())},Xr.apply(e,arguments)}function Bq(){return Oy.apply(null,arguments).exponent(.5)}const uQ=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:cy,scaleDiverging:sx,scaleDivergingLog:cx,scaleDivergingPow:Oy,scaleDivergingSqrt:Bq,scaleDivergingSymlog:fx,scaleIdentity:$3,scaleImplicit:g1,scaleLinear:P3,scaleLog:V3,scaleOrdinal:sy,scalePoint:JL,scalePow:my,scaleQuantile:Q3,scaleQuantize:X3,scaleRadial:G3,scaleSequential:ax,scaleSequentialLog:ox,scaleSequentialPow:xy,scaleSequentialQuantile:ux,scaleSequentialSqrt:Hq,scaleSequentialSymlog:lx,scaleSqrt:_I,scaleSymlog:F3,scaleThreshold:K3,scaleTime:Uq,scaleUtc:jq,tickFormat:B3},Symbol.toStringTag,{value:"Module"}));var U0={exports:{}},Nw;function Pq(){return Nw||(Nw=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(n=!1));function o(h,g,p){this.fn=h,this.context=g,this.once=p||!1}function u(h,g,p,m,v){if(typeof p!="function")throw new TypeError("The listener must be a function");var S=new o(p,m||h,v),M=n?n+g:g;return h._events[M]?h._events[M].fn?h._events[M]=[h._events[M],S]:h._events[M].push(S):(h._events[M]=S,h._eventsCount++),h}function c(h,g){--h._eventsCount===0?h._events=new i:delete h._events[g]}function f(){this._events=new i,this._eventsCount=0}f.prototype.eventNames=function(){var g=[],p,m;if(this._eventsCount===0)return g;for(m in p=this._events)t.call(p,m)&&g.push(n?m.slice(1):m);return Object.getOwnPropertySymbols?g.concat(Object.getOwnPropertySymbols(p)):g},f.prototype.listeners=function(g){var p=n?n+g:g,m=this._events[p];if(!m)return[];if(m.fn)return[m.fn];for(var v=0,S=m.length,M=new Array(S);v<S;v++)M[v]=m[v].fn;return M},f.prototype.listenerCount=function(g){var p=n?n+g:g,m=this._events[p];return m?m.fn?1:m.length:0},f.prototype.emit=function(g,p,m,v,S,M){var b=n?n+g:g;if(!this._events[b])return!1;var w=this._events[b],E=arguments.length,A,k;if(w.fn){switch(w.once&&this.removeListener(g,w.fn,void 0,!0),E){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,p),!0;case 3:return w.fn.call(w.context,p,m),!0;case 4:return w.fn.call(w.context,p,m,v),!0;case 5:return w.fn.call(w.context,p,m,v,S),!0;case 6:return w.fn.call(w.context,p,m,v,S,M),!0}for(k=1,A=new Array(E-1);k<E;k++)A[k-1]=arguments[k];w.fn.apply(w.context,A)}else{var T=w.length,C;for(k=0;k<T;k++)switch(w[k].once&&this.removeListener(g,w[k].fn,void 0,!0),E){case 1:w[k].fn.call(w[k].context);break;case 2:w[k].fn.call(w[k].context,p);break;case 3:w[k].fn.call(w[k].context,p,m);break;case 4:w[k].fn.call(w[k].context,p,m,v);break;default:if(!A)for(C=1,A=new Array(E-1);C<E;C++)A[C-1]=arguments[C];w[k].fn.apply(w[k].context,A)}}return!0},f.prototype.on=function(g,p,m){return u(this,g,p,m,!1)},f.prototype.once=function(g,p,m){return u(this,g,p,m,!0)},f.prototype.removeListener=function(g,p,m,v){var S=n?n+g:g;if(!this._events[S])return this;if(!p)return c(this,S),this;var M=this._events[S];if(M.fn)M.fn===p&&(!v||M.once)&&(!m||M.context===m)&&c(this,S);else{for(var b=0,w=[],E=M.length;b<E;b++)(M[b].fn!==p||v&&!M[b].once||m&&M[b].context!==m)&&w.push(M[b]);w.length?this._events[S]=w.length===1?w[0]:w:c(this,S)}return this},f.prototype.removeAllListeners=function(g){var p;return g?(p=n?n+g:g,this._events[p]&&c(this,p)):(this._events=new i,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=n,f.EventEmitter=f,e.exports=f})(U0)),U0.exports}var $q=Pq();const sQ=Zt($q);var j0={exports:{}},Ke={};/**
1040
1040
  * @license React
1041
1041
  * react-is.production.js
1042
1042
  *
@@ -1044,7 +1044,7 @@ Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}
1044
1044
  *
1045
1045
  * This source code is licensed under the MIT license found in the
1046
1046
  * LICENSE file in the root directory of this source tree.
1047
- */var Nw;function $q(){if(Nw)return Ke;Nw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),S=Symbol.for("react.client.reference");function M(b){if(typeof b=="object"&&b!==null){var w=b.$$typeof;switch(w){case e:switch(b=b.type,b){case n:case o:case i:case h:case g:case v:return b;default:switch(b=b&&b.$$typeof,b){case c:case f:case m:case p:return b;case u:return b;default:return w}}case t:return w}}}return Ke.ContextConsumer=u,Ke.ContextProvider=c,Ke.Element=e,Ke.ForwardRef=f,Ke.Fragment=n,Ke.Lazy=m,Ke.Memo=p,Ke.Portal=t,Ke.Profiler=o,Ke.StrictMode=i,Ke.Suspense=h,Ke.SuspenseList=g,Ke.isContextConsumer=function(b){return M(b)===u},Ke.isContextProvider=function(b){return M(b)===c},Ke.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Ke.isForwardRef=function(b){return M(b)===f},Ke.isFragment=function(b){return M(b)===n},Ke.isLazy=function(b){return M(b)===m},Ke.isMemo=function(b){return M(b)===p},Ke.isPortal=function(b){return M(b)===t},Ke.isProfiler=function(b){return M(b)===o},Ke.isStrictMode=function(b){return M(b)===i},Ke.isSuspense=function(b){return M(b)===h},Ke.isSuspenseList=function(b){return M(b)===g},Ke.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===o||b===i||b===h||b===g||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===p||b.$$typeof===c||b.$$typeof===u||b.$$typeof===f||b.$$typeof===S||b.getModuleId!==void 0)},Ke.typeOf=M,Ke}var Rw;function Yq(){return Rw||(Rw=1,j0.exports=$q()),j0.exports}var sQ=Yq(),H0={},zw;function Vq(){return zw||(zw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var o;if(typeof n!="object"||n==null)return!1;if(Object.getPrototypeOf(n)===null)return!0;if(Object.prototype.toString.call(n)!=="[object Object]"){const u=n[Symbol.toStringTag];return u==null||!((o=Object.getOwnPropertyDescriptor(n,Symbol.toStringTag))!=null&&o.writable)?!1:n.toString()===`[object ${u}]`}let i=n;for(;Object.getPrototypeOf(i)!==null;)i=Object.getPrototypeOf(i);return Object.getPrototypeOf(n)===i}e.isPlainObject=t})(H0)),H0}var B0,Lw;function Fq(){return Lw||(Lw=1,B0=Vq().isPlainObject),B0}var Gq=Fq();const cQ=Zt(Gq);var P0={},$0={},Iw;function Qq(){return Iw||(Iw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n[n.length-1]}e.last=t})($0)),$0}var Y0={},qw;function Xq(){return qw||(qw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Array.isArray(n)?n:Array.from(n)}e.toArray=t})(Y0)),Y0}var Uw;function Kq(){return Uw||(Uw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Qq(),n=Xq(),i=ny();function o(u){if(i.isArrayLike(u))return t.last(n.toArray(u))}e.last=o})(P0)),P0}var V0,jw;function Zq(){return jw||(jw=1,V0=Kq().last),V0}var Jq=Zq();const fQ=Zt(Jq);var Wq="Invariant failed";function hQ(e,t){throw new Error(Wq)}var _c={exports:{}},Hw;function eU(){if(Hw)return _c.exports;Hw=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(C,O,D){return Function.prototype.apply.call(C,O,D)},n;e&&typeof e.ownKeys=="function"?n=e.ownKeys:Object.getOwnPropertySymbols?n=function(C){return Object.getOwnPropertyNames(C).concat(Object.getOwnPropertySymbols(C))}:n=function(C){return Object.getOwnPropertyNames(C)};function i(T){console&&console.warn&&console.warn(T)}var o=Number.isNaN||function(C){return C!==C};function u(){u.init.call(this)}_c.exports=u,_c.exports.once=E,u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var c=10;function f(T){if(typeof T!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof T)}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(T){if(typeof T!="number"||T<0||o(T))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+T+".");c=T}}),u.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(C){if(typeof C!="number"||C<0||o(C))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+C+".");return this._maxListeners=C,this};function h(T){return T._maxListeners===void 0?u.defaultMaxListeners:T._maxListeners}u.prototype.getMaxListeners=function(){return h(this)},u.prototype.emit=function(C){for(var O=[],D=1;D<arguments.length;D++)O.push(arguments[D]);var N=C==="error",P=this._events;if(P!==void 0)N=N&&P.error===void 0;else if(!N)return!1;if(N){var Z;if(O.length>0&&(Z=O[0]),Z instanceof Error)throw Z;var W=new Error("Unhandled error."+(Z?" ("+Z.message+")":""));throw W.context=Z,W}var G=P[C];if(G===void 0)return!1;if(typeof G=="function")t(G,this,O);else for(var ue=G.length,q=M(G,ue),D=0;D<ue;++D)t(q[D],this,O);return!0};function g(T,C,O,D){var N,P,Z;if(f(O),P=T._events,P===void 0?(P=T._events=Object.create(null),T._eventsCount=0):(P.newListener!==void 0&&(T.emit("newListener",C,O.listener?O.listener:O),P=T._events),Z=P[C]),Z===void 0)Z=P[C]=O,++T._eventsCount;else if(typeof Z=="function"?Z=P[C]=D?[O,Z]:[Z,O]:D?Z.unshift(O):Z.push(O),N=h(T),N>0&&Z.length>N&&!Z.warned){Z.warned=!0;var W=new Error("Possible EventEmitter memory leak detected. "+Z.length+" "+String(C)+" listeners added. Use emitter.setMaxListeners() to increase limit");W.name="MaxListenersExceededWarning",W.emitter=T,W.type=C,W.count=Z.length,i(W)}return T}u.prototype.addListener=function(C,O){return g(this,C,O,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(C,O){return g(this,C,O,!0)};function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(T,C,O){var D={fired:!1,wrapFn:void 0,target:T,type:C,listener:O},N=p.bind(D);return N.listener=O,D.wrapFn=N,N}u.prototype.once=function(C,O){return f(O),this.on(C,m(this,C,O)),this},u.prototype.prependOnceListener=function(C,O){return f(O),this.prependListener(C,m(this,C,O)),this},u.prototype.removeListener=function(C,O){var D,N,P,Z,W;if(f(O),N=this._events,N===void 0)return this;if(D=N[C],D===void 0)return this;if(D===O||D.listener===O)--this._eventsCount===0?this._events=Object.create(null):(delete N[C],N.removeListener&&this.emit("removeListener",C,D.listener||O));else if(typeof D!="function"){for(P=-1,Z=D.length-1;Z>=0;Z--)if(D[Z]===O||D[Z].listener===O){W=D[Z].listener,P=Z;break}if(P<0)return this;P===0?D.shift():b(D,P),D.length===1&&(N[C]=D[0]),N.removeListener!==void 0&&this.emit("removeListener",C,W||O)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(C){var O,D,N;if(D=this._events,D===void 0)return this;if(D.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):D[C]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete D[C]),this;if(arguments.length===0){var P=Object.keys(D),Z;for(N=0;N<P.length;++N)Z=P[N],Z!=="removeListener"&&this.removeAllListeners(Z);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(O=D[C],typeof O=="function")this.removeListener(C,O);else if(O!==void 0)for(N=O.length-1;N>=0;N--)this.removeListener(C,O[N]);return this};function v(T,C,O){var D=T._events;if(D===void 0)return[];var N=D[C];return N===void 0?[]:typeof N=="function"?O?[N.listener||N]:[N]:O?w(N):M(N,N.length)}u.prototype.listeners=function(C){return v(this,C,!0)},u.prototype.rawListeners=function(C){return v(this,C,!1)},u.listenerCount=function(T,C){return typeof T.listenerCount=="function"?T.listenerCount(C):S.call(T,C)},u.prototype.listenerCount=S;function S(T){var C=this._events;if(C!==void 0){var O=C[T];if(typeof O=="function")return 1;if(O!==void 0)return O.length}return 0}u.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]};function M(T,C){for(var O=new Array(C),D=0;D<C;++D)O[D]=T[D];return O}function b(T,C){for(;C+1<T.length;C++)T[C]=T[C+1];T.pop()}function w(T){for(var C=new Array(T.length),O=0;O<C.length;++O)C[O]=T[O].listener||T[O];return C}function E(T,C){return new Promise(function(O,D){function N(Z){T.removeListener(C,P),D(Z)}function P(){typeof T.removeListener=="function"&&T.removeListener("error",N),O([].slice.call(arguments))}k(T,C,P,{once:!0}),C!=="error"&&A(T,N,{once:!0})})}function A(T,C,O){typeof T.on=="function"&&k(T,"error",C,O)}function k(T,C,O,D){if(typeof T.on=="function")D.once?T.once(C,O):T.on(C,O);else if(typeof T.addEventListener=="function")T.addEventListener(C,function N(P){D.once&&T.removeEventListener(C,N),O(P)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof T)}return _c.exports}var dQ=eU();function Mo(e,t,n){let i=n.initialDeps??[],o,u=!0;function c(){var f,h,g;let p;n.key&&((f=n.debug)!=null&&f.call(n))&&(p=Date.now());const m=e();if(!(m.length!==i.length||m.some((M,b)=>i[b]!==M)))return o;i=m;let S;if(n.key&&((h=n.debug)!=null&&h.call(n))&&(S=Date.now()),o=t(...m),n.key&&((g=n.debug)!=null&&g.call(n))){const M=Math.round((Date.now()-p)*100)/100,b=Math.round((Date.now()-S)*100)/100,w=b/16,E=(A,k)=>{for(A=String(A);A.length<k;)A=" "+A;return A};console.info(`%c⏱ ${E(b,5)} /${E(M,5)} ms`,`
1047
+ */var Rw;function Yq(){if(Rw)return Ke;Rw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),S=Symbol.for("react.client.reference");function M(b){if(typeof b=="object"&&b!==null){var w=b.$$typeof;switch(w){case e:switch(b=b.type,b){case n:case o:case i:case h:case g:case v:return b;default:switch(b=b&&b.$$typeof,b){case c:case f:case m:case p:return b;case u:return b;default:return w}}case t:return w}}}return Ke.ContextConsumer=u,Ke.ContextProvider=c,Ke.Element=e,Ke.ForwardRef=f,Ke.Fragment=n,Ke.Lazy=m,Ke.Memo=p,Ke.Portal=t,Ke.Profiler=o,Ke.StrictMode=i,Ke.Suspense=h,Ke.SuspenseList=g,Ke.isContextConsumer=function(b){return M(b)===u},Ke.isContextProvider=function(b){return M(b)===c},Ke.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Ke.isForwardRef=function(b){return M(b)===f},Ke.isFragment=function(b){return M(b)===n},Ke.isLazy=function(b){return M(b)===m},Ke.isMemo=function(b){return M(b)===p},Ke.isPortal=function(b){return M(b)===t},Ke.isProfiler=function(b){return M(b)===o},Ke.isStrictMode=function(b){return M(b)===i},Ke.isSuspense=function(b){return M(b)===h},Ke.isSuspenseList=function(b){return M(b)===g},Ke.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===o||b===i||b===h||b===g||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===p||b.$$typeof===c||b.$$typeof===u||b.$$typeof===f||b.$$typeof===S||b.getModuleId!==void 0)},Ke.typeOf=M,Ke}var zw;function Vq(){return zw||(zw=1,j0.exports=Yq()),j0.exports}var cQ=Vq(),H0={},Lw;function Fq(){return Lw||(Lw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var o;if(typeof n!="object"||n==null)return!1;if(Object.getPrototypeOf(n)===null)return!0;if(Object.prototype.toString.call(n)!=="[object Object]"){const u=n[Symbol.toStringTag];return u==null||!((o=Object.getOwnPropertyDescriptor(n,Symbol.toStringTag))!=null&&o.writable)?!1:n.toString()===`[object ${u}]`}let i=n;for(;Object.getPrototypeOf(i)!==null;)i=Object.getPrototypeOf(i);return Object.getPrototypeOf(n)===i}e.isPlainObject=t})(H0)),H0}var B0,Iw;function Gq(){return Iw||(Iw=1,B0=Fq().isPlainObject),B0}var Qq=Gq();const fQ=Zt(Qq);var P0={},$0={},qw;function Xq(){return qw||(qw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n[n.length-1]}e.last=t})($0)),$0}var Y0={},Uw;function Kq(){return Uw||(Uw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Array.isArray(n)?n:Array.from(n)}e.toArray=t})(Y0)),Y0}var jw;function Zq(){return jw||(jw=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Xq(),n=Kq(),i=ny();function o(u){if(i.isArrayLike(u))return t.last(n.toArray(u))}e.last=o})(P0)),P0}var V0,Hw;function Jq(){return Hw||(Hw=1,V0=Zq().last),V0}var Wq=Jq();const hQ=Zt(Wq);var eU="Invariant failed";function dQ(e,t){throw new Error(eU)}function Mo(e,t,n){let i=n.initialDeps??[],o,u=!0;function c(){var f,h,g;let p;n.key&&((f=n.debug)!=null&&f.call(n))&&(p=Date.now());const m=e();if(!(m.length!==i.length||m.some((M,b)=>i[b]!==M)))return o;i=m;let S;if(n.key&&((h=n.debug)!=null&&h.call(n))&&(S=Date.now()),o=t(...m),n.key&&((g=n.debug)!=null&&g.call(n))){const M=Math.round((Date.now()-p)*100)/100,b=Math.round((Date.now()-S)*100)/100,w=b/16,E=(A,k)=>{for(A=String(A);A.length<k;)A=" "+A;return A};console.info(`%c⏱ ${E(b,5)} /${E(M,5)} ms`,`
1048
1048
  font-size: .6rem;
1049
1049
  font-weight: bold;
1050
1050
  color: hsl(${Math.max(0,Math.min(120-120*w,120))}deg 100% 31%);`,n==null?void 0:n.key)}return n!=null&&n.onChange&&!(u&&n.skipInitialOnChange)&&n.onChange(o),u=!1,o}return c.updateDeps=f=>{i=f},c}function Bw(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const tU=(e,t)=>Math.abs(e-t)<1.01,nU=(e,t,n)=>{let i;return function(...o){e.clearTimeout(i),i=e.setTimeout(()=>t.apply(this,o),n)}},Pw=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},rU=e=>e,iU=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),i=[];for(let o=t;o<=n;o++)i.push(o);return i},aU=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;const o=c=>{const{width:f,height:h}=c;t({width:Math.round(f),height:Math.round(h)})};if(o(Pw(n)),!i.ResizeObserver)return()=>{};const u=new i.ResizeObserver(c=>{const f=()=>{const h=c[0];if(h!=null&&h.borderBoxSize){const g=h.borderBoxSize[0];if(g){o({width:g.inlineSize,height:g.blockSize});return}}o(Pw(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()});return u.observe(n,{box:"border-box"}),()=>{u.unobserve(n)}},$w={passive:!0},Yw=typeof window>"u"?!0:"onscrollend"in window,oU=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;let o=0;const u=e.options.useScrollendEvent&&Yw?()=>{}:nU(i,()=>{t(o,!1)},e.options.isScrollingResetDelay),c=p=>()=>{const{horizontal:m,isRtl:v}=e.options;o=m?n.scrollLeft*(v&&-1||1):n.scrollTop,u(),t(o,p)},f=c(!0),h=c(!1);n.addEventListener("scroll",f,$w);const g=e.options.useScrollendEvent&&Yw;return g&&n.addEventListener("scrollend",h,$w),()=>{n.removeEventListener("scroll",f),g&&n.removeEventListener("scrollend",h)}},lU=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const i=t.borderBoxSize[0];if(i)return Math.round(i[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},uU=(e,{adjustments:t=0,behavior:n},i)=>{var o,u;const c=e+t;(u=(o=i.scrollElement)==null?void 0:o.scrollTo)==null||u.call(o,{[i.options.horizontal?"left":"top"]:c,behavior:n})};class sU{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var n,i,o;return((o=(i=(n=this.targetWindow)==null?void 0:n.performance)==null?void 0:i.now)==null?void 0:o.call(i))??Date.now()},this.observer=(()=>{let n=null;const i=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(o=>{o.forEach(u=>{const c=()=>{const f=u.target,h=this.indexFromElement(f);if(!f.isConnected){this.observer.unobserve(f);return}this.shouldMeasureDuringScroll(h)&&this.resizeItem(h,this.options.measureElement(f,u,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()})}));return{disconnect:()=>{var o;(o=i())==null||o.disconnect(),n=null},observe:o=>{var u;return(u=i())==null?void 0:u.observe(o,{box:"border-box"})},unobserve:o=>{var u;return(u=i())==null?void 0:u.unobserve(o)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([i,o])=>{typeof o>"u"&&delete n[i]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:rU,rangeExtractor:iU,onChange:()=>{},measureElement:lU,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var i,o;(o=(i=this.options).onChange)==null||o.call(i,this,n)},this.maybeNotify=Mo(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i){this.maybeNotify();return}this.scrollElement=i,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,u)=>{this.scrollAdjustments=0,this.scrollDirection=u?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=u,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,i)=>{const o=new Map,u=new Map;for(let c=i-1;c>=0;c--){const f=n[c];if(o.has(f.lane))continue;const h=u.get(f.lane);if(h==null||f.end>h.end?u.set(f.lane,f):f.end<h.end&&o.set(f.lane,!0),o.size===this.options.lanes)break}return u.size===this.options.lanes?Array.from(u.values()).sort((c,f)=>c.end===f.end?c.index-f.index:c.end-f.end)[0]:void 0},this.getMeasurementOptions=Mo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(n,i,o,u,c,f)=>(this.prevLanes!==void 0&&this.prevLanes!==f&&(this.lanesChangedFlag=!0),this.prevLanes=f,this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:i,scrollMargin:o,getItemKey:u,enabled:c,lanes:f}),{key:!1}),this.getMeasurements=Mo(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:i,scrollMargin:o,getItemKey:u,enabled:c,lanes:f},h)=>{if(!c)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>n)for(const v of this.laneAssignments.keys())v>=n&&this.laneAssignments.delete(v);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(v=>{this.itemSizeCache.set(v.key,v.size)}));const g=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===n&&(this.lanesSettling=!1);const p=this.measurementsCache.slice(0,g),m=new Array(f).fill(void 0);for(let v=0;v<g;v++){const S=p[v];S&&(m[S.lane]=v)}for(let v=g;v<n;v++){const S=u(v),M=this.laneAssignments.get(v);let b,w;if(M!==void 0&&this.options.lanes>1){b=M;const T=m[b],C=T!==void 0?p[T]:void 0;w=C?C.end+this.options.gap:i+o}else{const T=this.options.lanes===1?p[v-1]:this.getFurthestMeasurement(p,v);w=T?T.end+this.options.gap:i+o,b=T?T.lane:v%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(v,b)}const E=h.get(S),A=typeof E=="number"?E:this.options.estimateSize(v),k=w+A;p[v]={index:v,start:w,size:A,end:k,key:S,lane:b},m[b]=v}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Mo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,i,o,u)=>this.range=n.length>0&&i>0?cU({measurements:n,outerSize:i,scrollOffset:o,lanes:u}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Mo(()=>{let n=null,i=null;const o=this.calculateRange();return o&&(n=o.startIndex,i=o.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,i]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,i]},(n,i,o,u,c)=>u===null||c===null?[]:n({startIndex:u,endIndex:c,overscan:i,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const i=this.options.indexAttribute,o=n.getAttribute(i);return o?parseInt(o,10):(console.warn(`Missing attribute name '${i}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=n=>{var i;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const o=this.scrollState.index??((i=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:i.index);if(o!==void 0&&this.range){const u=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),c=Math.max(0,o-u),f=Math.min(this.options.count-1,o+u);return n>=c&&n<=f}return!0},this.measureElement=n=>{if(!n){this.elementsCache.forEach((c,f)=>{c.isConnected||(this.observer.unobserve(c),this.elementsCache.delete(f))});return}const i=this.indexFromElement(n),o=this.options.getItemKey(i),u=this.elementsCache.get(o);u!==n&&(u&&this.observer.unobserve(u),this.observer.observe(n),this.elementsCache.set(o,n)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(i)&&this.resizeItem(i,this.options.measureElement(n,void 0,this))},this.resizeItem=(n,i)=>{var o;const u=this.measurementsCache[n];if(!u)return;const c=this.itemSizeCache.get(u.key)??u.size,f=i-c;f!==0&&(((o=this.scrollState)==null?void 0:o.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(u,f,this):u.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=f,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(u.index),this.itemSizeCache=new Map(this.itemSizeCache.set(u.key,i)),this.notify(!1))},this.getVirtualItems=Mo(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,i)=>{const o=[];for(let u=0,c=n.length;u<c;u++){const f=n[u],h=i[f];o.push(h)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const i=this.getMeasurements();if(i.length!==0)return Bw(i[hx(0,i.length-1,o=>Bw(i[o]).start,n)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const n=this.scrollElement.document.documentElement;return this.options.horizontal?n.scrollWidth-this.scrollElement.innerWidth:n.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(n,i,o=0)=>{if(!this.scrollElement)return 0;const u=this.getSize(),c=this.getScrollOffset();i==="auto"&&(i=n>=c+u?"end":"start"),i==="center"?n+=(o-u)/2:i==="end"&&(n-=u);const f=this.getMaxScrollOffset();return Math.max(Math.min(f,n),0)},this.getOffsetForIndex=(n,i="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const o=this.getSize(),u=this.getScrollOffset(),c=this.measurementsCache[n];if(!c)return;if(i==="auto")if(c.end>=u+o-this.options.scrollPaddingEnd)i="end";else if(c.start<=u+this.options.scrollPaddingStart)i="start";else return[u,i];if(i==="end"&&n===this.options.count-1)return[this.getMaxScrollOffset(),i];const f=i==="end"?c.end+this.options.scrollPaddingEnd:c.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(f,i,c.size),i]},this.scrollToOffset=(n,{align:i="start",behavior:o="auto"}={})=>{const u=this.getOffsetForAlignment(n,i),c=this.now();this.scrollState={index:null,align:i,behavior:o,startedAt:c,lastTargetOffset:u,stableFrames:0},this._scrollToOffset(u,{adjustments:void 0,behavior:o}),this.scheduleScrollReconcile()},this.scrollToIndex=(n,{align:i="auto",behavior:o="auto"}={})=>{n=Math.max(0,Math.min(n,this.options.count-1));const u=this.getOffsetForIndex(n,i);if(!u)return;const[c,f]=u,h=this.now();this.scrollState={index:n,align:f,behavior:o,startedAt:h,lastTargetOffset:c,stableFrames:0},this._scrollToOffset(c,{adjustments:void 0,behavior:o}),this.scheduleScrollReconcile()},this.scrollBy=(n,{behavior:i="auto"}={})=>{const o=this.getScrollOffset()+n,u=this.now();this.scrollState={index:null,align:"start",behavior:i,startedAt:u,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var n;const i=this.getMeasurements();let o;if(i.length===0)o=this.options.paddingStart;else if(this.options.lanes===1)o=((n=i[i.length-1])==null?void 0:n.end)??0;else{const u=Array(this.options.lanes).fill(null);let c=i.length-1;for(;c>=0&&u.some(f=>f===null);){const f=i[c];u[f.lane]===null&&(u[f.lane]=f.end),c--}o=Math.max(...u.filter(f=>f!==null))}return Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:i,behavior:o})=>{this.options.scrollToFn(n,{behavior:o,adjustments:i},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const i=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,o=i?i[0]:this.scrollState.lastTargetOffset,u=1,c=o!==this.scrollState.lastTargetOffset;if(!c&&tU(o,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=u){this.scrollState=null;return}}else this.scrollState.stableFrames=0,c&&(this.scrollState.lastTargetOffset=o,this.scrollState.behavior="auto",this._scrollToOffset(o,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const hx=(e,t,n,i)=>{for(;e<=t;){const o=(e+t)/2|0,u=n(o);if(u<i)e=o+1;else if(u>i)t=o-1;else return o}return e>0?e-1:0};function cU({measurements:e,outerSize:t,scrollOffset:n,lanes:i}){const o=e.length-1,u=h=>e[h].start;if(e.length<=i)return{startIndex:0,endIndex:o};let c=hx(0,o,u,n),f=c;if(i===1)for(;f<o&&e[f].end<n+t;)f++;else if(i>1){const h=Array(i).fill(0);for(;f<o&&h.some(p=>p<n+t);){const p=e[f];h[p.lane]=p.end,f++}const g=Array(i).fill(n+t);for(;c>=0&&g.some(p=>p>=n);){const p=e[c];g[p.lane]=p.start,c--}c=Math.max(0,c-c%i),f=Math.min(o,f+(i-1-f%i))}return{startIndex:c,endIndex:f}}const Vw=typeof document<"u"?U.useLayoutEffect:U.useEffect;function fU({useFlushSync:e=!0,...t}){const n=U.useReducer(()=>({}),{})[1],i={...t,onChange:(u,c)=>{var f;e&&c?tE.flushSync(n):n(),(f=t.onChange)==null||f.call(t,u,c)}},[o]=U.useState(()=>new sU(i));return o.setOptions(i),Vw(()=>o._didMount(),[]),Vw(()=>o._willUpdate()),o}function gQ(e){return fU({observeElementRect:aU,observeElementOffset:oU,scrollToFn:uU,...e})}var hU=ZE();const dx=U.createContext(null);function gn(){const e=U.useContext(dx);if(e===null)throw new Error("No Tree Api Provided");return e}const gx=U.createContext(null);function dU(){const e=U.useContext(gx);if(e===null)throw new Error("Provide a NodesContext");return e}const px=U.createContext(null);function gU(){const e=U.useContext(px);if(e===null)throw new Error("Provide a DnDContext");return e}const yx=U.createContext(0);function mx(){U.useContext(yx)}function zc(e,t,n){return Math.max(Math.min(e,n),t)}function vx(e){return e&&e.isLeaf}function bx(e){return e&&e.isInternal&&!e.isOpen}function Sx(e){var t;return e&&e.isOpen&&!(!((t=e.children)===null||t===void 0)&&t.length)}const _x=(e,t)=>{let n=e;for(;n;){if(n.id===t.id)return!0;n=n.parent}return!1},wx=e=>{if(!e.parent)throw Error("Node does not have a parent");return e.parent.children.findIndex(t=>t.id===e.id)};function Cy(e,t){if(!e)return null;if(e.id===t)return e;if(e.children)for(let n of e.children){const i=Cy(n,t);if(i)return i}return null}function bf(e,t){if(t(e),e.children)for(let n of e.children)bf(n,t)}function Mx(e){const t=Ex(e);let n;for(let i=0;i<t.length;++i)if(t[i]===e){n=pU(t,i);break}n==null||n.focus()}function Tx(e){const t=Ex(e);let n;for(let i=0;i<t.length;++i)if(t[i]===e){n=yU(t,i);break}n==null||n.focus()}function pU(e,t){return t+1<e.length?e[t+1]:e[0]}function yU(e,t){return t-1>=0?e[t-1]:e[e.length-1]}function Ex(e){return Array.from(document.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), details:not([disabled]), summary:not(:disabled)')).filter(t=>t===e||!e.contains(t))}function pu(e,t){return typeof t=="boolean"?t:typeof t=="string"?e[t]:t(e)}function xx(e){return e===null?null:ua(e)}function ua(e){return typeof e=="string"?e:e.id}function Ox(e,...t){if(e)return e(...t)}function Cx(e){return new Promise((t,n)=>{let i=0;function o(){i+=1,i===100&&n(),e()?t():setTimeout(o,10)}o()})}function kx(e){var t,n;const i=e.focusedNode;return i?i.isOpen?0:i.parent?i.childIndex+1:0:(n=(t=e.root.children)===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0}function Ax(e){const t=e.focusedNode;return t?t.isOpen?t.id:t.parent&&!t.parent.isRoot?t.parent.id:null:null}const mU=Object.freeze(Object.defineProperty({__proto__:null,access:pu,bound:zc,dfs:Cy,focusNextElement:Mx,focusPrevElement:Tx,getInsertIndex:kx,getInsertParentId:Ax,identify:ua,identifyNull:xx,indexOf:wx,isClosed:bx,isDescendant:_x,isItem:vx,isOpenWithEmptyChildren:Sx,safeRun:Ox,waitFor:Cx,walk:bf},Symbol.toStringTag,{value:"Module"})),vU={display:"flex",alignItems:"center",zIndex:1},bU={flex:1,height:"2px",background:"#4B91E2",borderRadius:"1px"},SU={width:"4px",height:"4px",boxShadow:"0 0 0 3px #4B91E2",borderRadius:"50%"},_U=x1.memo(function({top:t,left:n,indent:i}){const o={position:"absolute",pointerEvents:"none",top:t-2+"px",left:n+"px",right:i+"px"};return Te.jsxs("div",{style:Object.assign(Object.assign({},vU),o),children:[Te.jsx("div",{style:Object.assign({},SU)}),Te.jsx("div",{style:Object.assign({},bU)})]})});function wU({node:e,attrs:t,innerRef:n,children:i}){return Te.jsx("div",Object.assign({},t,{ref:n,onFocus:o=>o.stopPropagation(),onClick:e.handleClick,children:i}))}function MU(e){return Te.jsxs("div",{ref:e.dragHandle,style:e.style,children:[Te.jsx("span",{onClick:t=>{t.stopPropagation(),e.node.toggle()},children:e.node.isLeaf?"🌳":e.node.isOpen?"🗁":"🗀"})," ",e.node.isEditing?Te.jsx(EU,Object.assign({},e)):Te.jsx(TU,Object.assign({},e))]})}function TU(e){return Te.jsx(Te.Fragment,{children:Te.jsx("span",{children:e.node.data.name})})}function EU({node:e}){const t=U.useRef();return U.useEffect(()=>{var n,i;(n=t.current)===null||n===void 0||n.focus(),(i=t.current)===null||i===void 0||i.select()},[]),Te.jsx("input",{ref:t,defaultValue:e.data.name,onBlur:()=>e.reset(),onKeyDown:n=>{var i;n.key==="Escape"&&e.reset(),n.key==="Enter"&&e.submit(((i=t.current)===null||i===void 0?void 0:i.value)||"")}})}function F0(e){return{type:"EDIT",id:e}}function xU(e={id:null},t){return t.type==="EDIT"?Object.assign(Object.assign({},e),{id:t.id}):e}function To(e){return{type:"FOCUS",id:e}}function OU(){return{type:"TREE_BLUR"}}function CU(e={id:null,treeFocused:!1},t){return t.type==="FOCUS"?Object.assign(Object.assign({},e),{id:t.id,treeFocused:!0}):t.type==="TREE_BLUR"?Object.assign(Object.assign({},e),{treeFocused:!1}):e}class Sf{constructor(t){this.handleClick=n=>{n.metaKey&&!this.tree.props.disableMultiSelection?this.isSelected?this.deselect():this.selectMulti():n.shiftKey&&!this.tree.props.disableMultiSelection?this.selectContiguous():(this.select(),this.activate())},this.tree=t.tree,this.id=t.id,this.data=t.data,this.level=t.level,this.children=t.children,this.parent=t.parent,this.isDraggable=t.isDraggable,this.rowIndex=t.rowIndex}get isRoot(){return this.id===ku}get isLeaf(){return!Array.isArray(this.children)}get isInternal(){return!this.isLeaf}get isOpen(){return this.isLeaf?!1:this.tree.isOpen(this.id)}get isClosed(){return this.isLeaf?!1:!this.tree.isOpen(this.id)}get isEditable(){return this.tree.isEditable(this.data)}get isEditing(){return this.tree.editingId===this.id}get isSelected(){return this.tree.isSelected(this.id)}get isOnlySelection(){return this.isSelected&&this.tree.hasOneSelection}get isSelectedStart(){var t;return this.isSelected&&!(!((t=this.prev)===null||t===void 0)&&t.isSelected)}get isSelectedEnd(){var t;return this.isSelected&&!(!((t=this.next)===null||t===void 0)&&t.isSelected)}get isFocused(){return this.tree.isFocused(this.id)}get isDragging(){return this.tree.isDragging(this.id)}get willReceiveDrop(){return this.tree.willReceiveDrop(this.id)}get state(){return{isClosed:this.isClosed,isDragging:this.isDragging,isEditing:this.isEditing,isFocused:this.isFocused,isInternal:this.isInternal,isLeaf:this.isLeaf,isOpen:this.isOpen,isSelected:this.isSelected,isSelectedEnd:this.isSelectedEnd,isSelectedStart:this.isSelectedStart,willReceiveDrop:this.willReceiveDrop}}get childIndex(){return this.parent&&this.parent.children?this.parent.children.findIndex(t=>t.id===this.id):-1}get next(){return this.rowIndex===null?null:this.tree.at(this.rowIndex+1)}get prev(){return this.rowIndex===null?null:this.tree.at(this.rowIndex-1)}get nextSibling(){var t,n;const i=this.childIndex;return(n=(t=this.parent)===null||t===void 0?void 0:t.children[i+1])!==null&&n!==void 0?n:null}isAncestorOf(t){if(!t)return!1;let n=t;for(;n;){if(n.id===this.id)return!0;n=n.parent}return!1}select(){this.tree.select(this)}deselect(){this.tree.deselect(this)}selectMulti(){this.tree.selectMulti(this)}selectContiguous(){this.tree.selectContiguous(this)}activate(){this.tree.activate(this)}focus(){this.tree.focus(this)}toggle(){this.tree.toggle(this)}open(){this.tree.open(this)}openParents(){this.tree.openParents(this)}close(){this.tree.close(this)}submit(t){this.tree.submit(this,t)}reset(){this.tree.reset()}clone(){return new Sf(Object.assign({},this))}edit(){return this.tree.edit(this)}}const ku="__REACT_ARBORIST_INTERNAL_ROOT__";function Fw(e){var t;function n(u,c,f){const h=e.accessId(u),g=new Sf({tree:e,data:u,level:c,parent:f,id:h,children:null,isDraggable:e.isDraggable(u),rowIndex:null}),p=e.accessChildren(u);return p&&(g.children=p.map(m=>n(m,c+1,g))),g}const i=new Sf({tree:e,id:ku,data:{id:ku},level:-1,parent:null,children:null,isDraggable:!0,rowIndex:null}),o=(t=e.props.data)!==null&&t!==void 0?t:[];return i.children=o.map(u=>n(u,0,i)),i}const y1={open(e,t){return{type:"VISIBILITY_OPEN",id:e,filtered:t}},close(e,t){return{type:"VISIBILITY_CLOSE",id:e,filtered:t}},toggle(e,t){return{type:"VISIBILITY_TOGGLE",id:e,filtered:t}},clear(e){return{type:"VISIBILITY_CLEAR",filtered:e}}};function Gw(e={},t){if(t.type==="VISIBILITY_OPEN")return Object.assign(Object.assign({},e),{[t.id]:!0});if(t.type==="VISIBILITY_CLOSE")return Object.assign(Object.assign({},e),{[t.id]:!1});if(t.type==="VISIBILITY_TOGGLE"){const n=e[t.id];return Object.assign(Object.assign({},e),{[t.id]:!n})}else return t.type==="VISIBILITY_CLEAR"?{}:e}function kU(e={filtered:{},unfiltered:{}},t){return t.type.startsWith("VISIBILITY")?t.filtered?Object.assign(Object.assign({},e),{filtered:Gw(e.filtered,t)}):Object.assign(Object.assign({},e),{unfiltered:Gw(e.unfiltered,t)}):e}const Ko=e=>{var t;return{nodes:{open:{filtered:{},unfiltered:(t=e==null?void 0:e.initialOpenState)!==null&&t!==void 0?t:{}},focus:{id:null,treeFocused:!1},edit:{id:null},drag:{id:null,selectedIds:[],destinationParentId:null,destinationIndex:null},selection:{ids:new Set,anchor:null,mostRecent:null}},dnd:{cursor:{type:"none"},dragId:null,dragIds:[],parentId:null,index:-1}}},Bn={clear:()=>({type:"SELECTION_CLEAR"}),only:e=>({type:"SELECTION_ONLY",id:ua(e)}),add:e=>({type:"SELECTION_ADD",ids:(Array.isArray(e)?e:[e]).map(ua)}),remove:e=>({type:"SELECTION_REMOVE",ids:(Array.isArray(e)?e:[e]).map(ua)}),set:e=>Object.assign({type:"SELECTION_SET"},e),mostRecent:e=>({type:"SELECTION_MOST_RECENT",id:e===null?null:ua(e)}),anchor:e=>({type:"SELECTION_ANCHOR",id:e===null?null:ua(e)})};function AU(e=Ko().nodes.selection,t){const n=e.ids;switch(t.type){case"SELECTION_CLEAR":return Object.assign(Object.assign({},e),{ids:new Set});case"SELECTION_ONLY":return Object.assign(Object.assign({},e),{ids:new Set([t.id])});case"SELECTION_ADD":return t.ids.length===0?e:(t.ids.forEach(i=>n.add(i)),Object.assign(Object.assign({},e),{ids:new Set(n)}));case"SELECTION_REMOVE":return t.ids.length===0?e:(t.ids.forEach(i=>n.delete(i)),Object.assign(Object.assign({},e),{ids:new Set(n)}));case"SELECTION_SET":return Object.assign(Object.assign({},e),{ids:t.ids,mostRecent:t.mostRecent,anchor:t.anchor});case"SELECTION_MOST_RECENT":return Object.assign(Object.assign({},e),{mostRecent:t.id});case"SELECTION_ANCHOR":return Object.assign(Object.assign({},e),{anchor:t.id});default:return e}}const Zo={cursor(e){return{type:"DND_CURSOR",cursor:e}},dragStart(e,t){return{type:"DND_DRAG_START",id:e,dragIds:t}},dragEnd(){return{type:"DND_DRAG_END"}},hovering(e,t){return{type:"DND_HOVERING",parentId:e,index:t}}};function DU(e=Ko().dnd,t){switch(t.type){case"DND_CURSOR":return Object.assign(Object.assign({},e),{cursor:t.cursor});case"DND_DRAG_START":return Object.assign(Object.assign({},e),{dragId:t.id,dragIds:t.dragIds});case"DND_DRAG_END":return Ko().dnd;case"DND_HOVERING":return Object.assign(Object.assign({},e),{parentId:t.parentId,index:t.index});default:return e}}const NU={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},RU=e=>{if(!e)return{display:"none"};const{x:t,y:n}=e;return{transform:`translate(${t}px, ${n}px)`}},zU=e=>{if(!e)return{display:"none"};const{x:t,y:n}=e;return{transform:`translate(${t+10}px, ${n+10}px)`}};function Dx({offset:e,mouse:t,id:n,dragIds:i,isDragging:o}){return Te.jsxs(LU,{isDragging:o,children:[Te.jsx(IU,{offset:e,children:Te.jsx(UU,{id:n,dragIds:i})}),Te.jsx(qU,{mouse:t,count:i.length})]})}const LU=U.memo(function(t){return t.isDragging?Te.jsx("div",{style:NU,children:t.children}):null});function IU(e){return Te.jsx("div",{className:"row preview",style:RU(e.offset),children:e.children})}function qU(e){const{count:t,mouse:n}=e;return t>1?Te.jsx("div",{className:"selected-count",style:zU(n),children:t}):null}const UU=U.memo(function(t){const n=gn(),i=n.get(t.id);return i?Te.jsx(n.renderNode,{preview:!0,node:i,style:{paddingLeft:i.level*n.indent,opacity:.2,background:"transparent"},tree:n}):null});function m1(){return m1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},m1.apply(null,arguments)}function Qw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v1(e,t){return v1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},v1(e,t)}function jU(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,v1(e,t)}var Xw=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function HU(e,t){return!!(e===t||Xw(e)&&Xw(t))}function BU(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!HU(e[n],t[n]))return!1;return!0}function G0(e,t){t===void 0&&(t=BU);var n,i=[],o,u=!1;function c(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];return u&&n===this&&t(f,i)||(o=e.apply(this,f),u=!0,n=this,i=f),o}return c}var PU=typeof performance=="object"&&typeof performance.now=="function",Kw=PU?function(){return performance.now()}:function(){return Date.now()};function Zw(e){cancelAnimationFrame(e.id)}function $U(e,t){var n=Kw();function i(){Kw()-n>=t?e.call(null):o.id=requestAnimationFrame(i)}var o={id:requestAnimationFrame(i)};return o}var Q0=-1;function Jw(e){if(e===void 0&&(e=!1),Q0===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Q0=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Q0}var Eo=null;function Ww(e){if(e===void 0&&(e=!1),Eo===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var i=document.createElement("div"),o=i.style;return o.width="100px",o.height="100px",t.appendChild(i),document.body.appendChild(t),t.scrollLeft>0?Eo="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Eo="negative":Eo="positive-ascending"),document.body.removeChild(t),Eo}return Eo}var YU=150,VU=function(t,n){return t};function FU(e){var t,n=e.getItemOffset,i=e.getEstimatedTotalSize,o=e.getItemSize,u=e.getOffsetForIndexAndAlignment,c=e.getStartIndexForOffset,f=e.getStopIndexForStartIndex,h=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,p=e.validateProps;return t=(function(m){jU(v,m);function v(M){var b;return b=m.call(this,M)||this,b._instanceProps=h(b.props,Qw(b)),b._outerRef=void 0,b._resetIsScrollingTimeoutId=null,b.state={instance:Qw(b),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof b.props.initialScrollOffset=="number"?b.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},b._callOnItemsRendered=void 0,b._callOnItemsRendered=G0(function(w,E,A,k){return b.props.onItemsRendered({overscanStartIndex:w,overscanStopIndex:E,visibleStartIndex:A,visibleStopIndex:k})}),b._callOnScroll=void 0,b._callOnScroll=G0(function(w,E,A){return b.props.onScroll({scrollDirection:w,scrollOffset:E,scrollUpdateWasRequested:A})}),b._getItemStyle=void 0,b._getItemStyle=function(w){var E=b.props,A=E.direction,k=E.itemSize,T=E.layout,C=b._getItemStyleCache(g&&k,g&&T,g&&A),O;if(C.hasOwnProperty(w))O=C[w];else{var D=n(b.props,w,b._instanceProps),N=o(b.props,w,b._instanceProps),P=A==="horizontal"||T==="horizontal",Z=A==="rtl",W=P?D:0;C[w]=O={position:"absolute",left:Z?void 0:W,right:Z?W:void 0,top:P?0:D,height:P?"100%":N,width:P?N:"100%"}}return O},b._getItemStyleCache=void 0,b._getItemStyleCache=G0(function(w,E,A){return{}}),b._onScrollHorizontal=function(w){var E=w.currentTarget,A=E.clientWidth,k=E.scrollLeft,T=E.scrollWidth;b.setState(function(C){if(C.scrollOffset===k)return null;var O=b.props.direction,D=k;if(O==="rtl")switch(Ww()){case"negative":D=-k;break;case"positive-descending":D=T-A-k;break}return D=Math.max(0,Math.min(D,T-A)),{isScrolling:!0,scrollDirection:C.scrollOffset<D?"forward":"backward",scrollOffset:D,scrollUpdateWasRequested:!1}},b._resetIsScrollingDebounced)},b._onScrollVertical=function(w){var E=w.currentTarget,A=E.clientHeight,k=E.scrollHeight,T=E.scrollTop;b.setState(function(C){if(C.scrollOffset===T)return null;var O=Math.max(0,Math.min(T,k-A));return{isScrolling:!0,scrollDirection:C.scrollOffset<O?"forward":"backward",scrollOffset:O,scrollUpdateWasRequested:!1}},b._resetIsScrollingDebounced)},b._outerRefSetter=function(w){var E=b.props.outerRef;b._outerRef=w,typeof E=="function"?E(w):E!=null&&typeof E=="object"&&E.hasOwnProperty("current")&&(E.current=w)},b._resetIsScrollingDebounced=function(){b._resetIsScrollingTimeoutId!==null&&Zw(b._resetIsScrollingTimeoutId),b._resetIsScrollingTimeoutId=$U(b._resetIsScrolling,YU)},b._resetIsScrolling=function(){b._resetIsScrollingTimeoutId=null,b.setState({isScrolling:!1},function(){b._getItemStyleCache(-1,null)})},b}v.getDerivedStateFromProps=function(b,w){return GU(b,w),p(b),null};var S=v.prototype;return S.scrollTo=function(b){b=Math.max(0,b),this.setState(function(w){return w.scrollOffset===b?null:{scrollDirection:w.scrollOffset<b?"forward":"backward",scrollOffset:b,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},S.scrollToItem=function(b,w){w===void 0&&(w="auto");var E=this.props,A=E.itemCount,k=E.layout,T=this.state.scrollOffset;b=Math.max(0,Math.min(b,A-1));var C=0;if(this._outerRef){var O=this._outerRef;k==="vertical"?C=O.scrollWidth>O.clientWidth?Jw():0:C=O.scrollHeight>O.clientHeight?Jw():0}this.scrollTo(u(this.props,b,w,T,this._instanceProps,C))},S.componentDidMount=function(){var b=this.props,w=b.direction,E=b.initialScrollOffset,A=b.layout;if(typeof E=="number"&&this._outerRef!=null){var k=this._outerRef;w==="horizontal"||A==="horizontal"?k.scrollLeft=E:k.scrollTop=E}this._callPropsCallbacks()},S.componentDidUpdate=function(){var b=this.props,w=b.direction,E=b.layout,A=this.state,k=A.scrollOffset,T=A.scrollUpdateWasRequested;if(T&&this._outerRef!=null){var C=this._outerRef;if(w==="horizontal"||E==="horizontal")if(w==="rtl")switch(Ww()){case"negative":C.scrollLeft=-k;break;case"positive-ascending":C.scrollLeft=k;break;default:var O=C.clientWidth,D=C.scrollWidth;C.scrollLeft=D-O-k;break}else C.scrollLeft=k;else C.scrollTop=k}this._callPropsCallbacks()},S.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Zw(this._resetIsScrollingTimeoutId)},S.render=function(){var b=this.props,w=b.children,E=b.className,A=b.direction,k=b.height,T=b.innerRef,C=b.innerElementType,O=b.innerTagName,D=b.itemCount,N=b.itemData,P=b.itemKey,Z=P===void 0?VU:P,W=b.layout,G=b.outerElementType,ue=b.outerTagName,q=b.style,re=b.useIsScrolling,R=b.width,F=this.state.isScrolling,ie=A==="horizontal"||W==="horizontal",se=ie?this._onScrollHorizontal:this._onScrollVertical,K=this._getRangeToRender(),z=K[0],Q=K[1],oe=[];if(D>0)for(var le=z;le<=Q;le++)oe.push(U.createElement(w,{data:N,key:Z(le,N),index:le,isScrolling:re?F:void 0,style:this._getItemStyle(le)}));var ce=i(this.props,this._instanceProps);return U.createElement(G||ue||"div",{className:E,onScroll:se,ref:this._outerRefSetter,style:m1({position:"relative",height:k,width:R,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:A},q)},U.createElement(C||O||"div",{children:oe,ref:T,style:{height:ie?"100%":ce,pointerEvents:F?"none":void 0,width:ie?ce:"100%"}}))},S._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var b=this.props.itemCount;if(b>0){var w=this._getRangeToRender(),E=w[0],A=w[1],k=w[2],T=w[3];this._callOnItemsRendered(E,A,k,T)}}if(typeof this.props.onScroll=="function"){var C=this.state,O=C.scrollDirection,D=C.scrollOffset,N=C.scrollUpdateWasRequested;this._callOnScroll(O,D,N)}},S._getRangeToRender=function(){var b=this.props,w=b.itemCount,E=b.overscanCount,A=this.state,k=A.isScrolling,T=A.scrollDirection,C=A.scrollOffset;if(w===0)return[0,0,0,0];var O=c(this.props,C,this._instanceProps),D=f(this.props,O,C,this._instanceProps),N=!k||T==="backward"?Math.max(1,E):1,P=!k||T==="forward"?Math.max(1,E):1;return[Math.max(0,O-N),Math.max(0,Math.min(w-1,D+P)),O,D]},v})(U.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var GU=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},QU=FU({getItemOffset:function(t,n){var i=t.itemSize;return n*i},getItemSize:function(t,n){var i=t.itemSize;return i},getEstimatedTotalSize:function(t){var n=t.itemCount,i=t.itemSize;return i*n},getOffsetForIndexAndAlignment:function(t,n,i,o,u,c){var f=t.direction,h=t.height,g=t.itemCount,p=t.itemSize,m=t.layout,v=t.width,S=f==="horizontal"||m==="horizontal",M=S?v:h,b=Math.max(0,g*p-M),w=Math.min(b,n*p),E=Math.max(0,n*p-M+p+c);switch(i==="smart"&&(o>=E-M&&o<=w+M?i="auto":i="center"),i){case"start":return w;case"end":return E;case"center":{var A=Math.round(E+(w-E)/2);return A<Math.ceil(M/2)?0:A>b+Math.floor(M/2)?b:A}case"auto":default:return o>=E&&o<=w?o:o<E?E:w}},getStartIndexForOffset:function(t,n){var i=t.itemCount,o=t.itemSize;return Math.max(0,Math.min(i-1,Math.floor(n/o)))},getStopIndexForStartIndex:function(t,n,i){var o=t.direction,u=t.height,c=t.itemCount,f=t.itemSize,h=t.layout,g=t.width,p=o==="horizontal"||h==="horizontal",m=n*f,v=p?g:u,S=Math.ceil((v+i-m)/f);return Math.max(0,Math.min(c-1,n+S-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}});function XU(){var e,t;const n=gn(),o=gU().cursor;if(!o||o.type!=="line")return null;const u=n.indent,c=n.rowHeight*o.index+((t=(e=n.props.padding)!==null&&e!==void 0?e:n.props.paddingTop)!==null&&t!==void 0?t:0),f=u*o.level,h=n.renderCursor;return Te.jsx(h,{top:c,left:f,indent:u})}var KU=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};const ZU=U.forwardRef(function(t,n){const{children:i}=t,o=KU(t,["children"]),u=gn();return Te.jsxs("div",Object.assign({ref:n},o,{onClick:c=>{c.currentTarget===c.target&&u.deselectAll()},children:[Te.jsx(JU,{}),i]}))}),JU=()=>{const e=gn();return Te.jsx("div",{style:{height:e.visibleNodes.length*e.rowHeight,width:"100%",position:"absolute",left:"0",right:"0"},children:Te.jsx(XU,{})})};var WU=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n};const ej=U.forwardRef(function(t,n){var i,o,u,c,{style:f}=t,h=WU(t,["style"]);const g=gn(),p=(o=(i=g.props.padding)!==null&&i!==void 0?i:g.props.paddingTop)!==null&&o!==void 0?o:0,m=(c=(u=g.props.padding)!==null&&u!==void 0?u:g.props.paddingBottom)!==null&&c!==void 0?c:0;return Te.jsx("div",Object.assign({ref:n,style:Object.assign(Object.assign({},f),{height:`${parseFloat(f.height)+p+m}px`})},h))});var Nx=U.createContext({dragDropManager:void 0}),Nn;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(Nn||(Nn={}));function Ee(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];if(!e){var u;if(t===void 0)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=0;u=new Error(t.replace(/%s/g,function(){return i[c++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var ky="dnd-core/INIT_COORDS",Hf="dnd-core/BEGIN_DRAG",Ay="dnd-core/PUBLISH_DRAG_SOURCE",Bf="dnd-core/HOVER",Pf="dnd-core/DROP",$f="dnd-core/END_DRAG";function eM(e,t){return{type:ky,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function Lc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lc=function(n){return typeof n}:Lc=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Lc(e)}function tj(e,t,n){return t.split(".").reduce(function(i,o){return i&&i[o]?i[o]:n||null},e)}function nj(e,t){return e.filter(function(n){return n!==t})}function Rx(e){return Lc(e)==="object"}function rj(e,t){var n=new Map,i=function(c){n.set(c,n.has(c)?n.get(c)+1:1)};e.forEach(i),t.forEach(i);var o=[];return n.forEach(function(u,c){u===1&&o.push(c)}),o}function ij(e,t){return e.filter(function(n){return t.indexOf(n)>-1})}var aj={type:ky,payload:{clientOffset:null,sourceClientOffset:null}};function oj(e){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},o=i.publishSource,u=o===void 0?!0:o,c=i.clientOffset,f=i.getSourceClientOffset,h=e.getMonitor(),g=e.getRegistry();e.dispatch(eM(c)),lj(n,h,g);var p=cj(n,h);if(p===null){e.dispatch(aj);return}var m=null;if(c){if(!f)throw new Error("getSourceClientOffset must be defined");uj(f),m=f(p)}e.dispatch(eM(c,m));var v=g.getSource(p),S=v.beginDrag(h,p);if(S!=null){sj(S),g.pinSource(p);var M=g.getSourceType(p);return{type:Hf,payload:{itemType:M,item:S,sourceId:p,clientOffset:c||null,sourceClientOffset:m||null,isSourcePublic:!!u}}}}}function lj(e,t,n){Ee(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(i){Ee(n.getSource(i),"Expected sourceIds to be registered.")})}function uj(e){Ee(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function sj(e){Ee(Rx(e),"Item must be an object.")}function cj(e,t){for(var n=null,i=e.length-1;i>=0;i--)if(t.canDragSource(e[i])){n=e[i];break}return n}function fj(e){return function(){var n=e.getMonitor();if(n.isDragging())return{type:Ay}}}function b1(e,t){return t===null?e===null:Array.isArray(e)?e.some(function(n){return n===t}):e===t}function hj(e){return function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.clientOffset;dj(n);var u=n.slice(0),c=e.getMonitor(),f=e.getRegistry();gj(u,c,f);var h=c.getItemType();return pj(u,f,h),yj(u,c,f),{type:Bf,payload:{targetIds:u,clientOffset:o||null}}}}function dj(e){Ee(Array.isArray(e),"Expected targetIds to be an array.")}function gj(e,t,n){Ee(t.isDragging(),"Cannot call hover while not dragging."),Ee(!t.didDrop(),"Cannot call hover after drop.");for(var i=0;i<e.length;i++){var o=e[i];Ee(e.lastIndexOf(o)===i,"Expected targetIds to be unique in the passed array.");var u=n.getTarget(o);Ee(u,"Expected targetIds to be registered.")}}function pj(e,t,n){for(var i=e.length-1;i>=0;i--){var o=e[i],u=t.getTargetType(o);b1(u,n)||e.splice(i,1)}}function yj(e,t,n){e.forEach(function(i){var o=n.getTarget(i);o.hover(t,i)})}function tM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function nM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tM(Object(n),!0).forEach(function(i){mj(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tM(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function mj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vj(e){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=e.getMonitor(),o=e.getRegistry();bj(i);var u=wj(i);u.forEach(function(c,f){var h=Sj(c,f,o,i),g={type:Pf,payload:{dropResult:nM(nM({},n),h)}};e.dispatch(g)})}}function bj(e){Ee(e.isDragging(),"Cannot call drop while not dragging."),Ee(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function Sj(e,t,n,i){var o=n.getTarget(e),u=o?o.drop(i,e):void 0;return _j(u),typeof u>"u"&&(u=t===0?{}:i.getDropResult()),u}function _j(e){Ee(typeof e>"u"||Rx(e),"Drop result must either be an object or undefined.")}function wj(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function Mj(e){return function(){var n=e.getMonitor(),i=e.getRegistry();Tj(n);var o=n.getSourceId();if(o!=null){var u=i.getSource(o,!0);u.endDrag(n,o),i.unpinSource()}return{type:$f}}}function Tj(e){Ee(e.isDragging(),"Cannot call endDrag while not dragging.")}function Ej(e){return{beginDrag:oj(e),publishDragSource:fj(e),hover:hj(e),drop:vj(e),endDrag:Mj(e)}}function xj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oj(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Cj(e,t,n){return t&&Oj(e.prototype,t),e}function su(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kj=(function(){function e(t,n){var i=this;xj(this,e),su(this,"store",void 0),su(this,"monitor",void 0),su(this,"backend",void 0),su(this,"isSetUp",!1),su(this,"handleRefCountChange",function(){var o=i.store.getState().refCount>0;i.backend&&(o&&!i.isSetUp?(i.backend.setup(),i.isSetUp=!0):!o&&i.isSetUp&&(i.backend.teardown(),i.isSetUp=!1))}),this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}return Cj(e,[{key:"receiveBackend",value:function(n){this.backend=n}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var n=this,i=this.store.dispatch;function o(c){return function(){for(var f=arguments.length,h=new Array(f),g=0;g<f;g++)h[g]=arguments[g];var p=c.apply(n,h);typeof p<"u"&&i(p)}}var u=Ej(this);return Object.keys(u).reduce(function(c,f){var h=u[f];return c[f]=o(h),c},{})}},{key:"dispatch",value:function(n){this.store.dispatch(n)}}]),e})();function On(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var rM=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),iM=function(){return Math.random().toString(36).substring(7).split("").join(".")},aM={INIT:"@@redux/INIT"+iM(),REPLACE:"@@redux/REPLACE"+iM()};function Aj(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function zx(e,t,n){var i;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(On(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(On(1));return n(zx)(e,t)}if(typeof e!="function")throw new Error(On(2));var o=e,u=t,c=[],f=c,h=!1;function g(){f===c&&(f=c.slice())}function p(){if(h)throw new Error(On(3));return u}function m(b){if(typeof b!="function")throw new Error(On(4));if(h)throw new Error(On(5));var w=!0;return g(),f.push(b),function(){if(w){if(h)throw new Error(On(6));w=!1,g();var A=f.indexOf(b);f.splice(A,1),c=null}}}function v(b){if(!Aj(b))throw new Error(On(7));if(typeof b.type>"u")throw new Error(On(8));if(h)throw new Error(On(9));try{h=!0,u=o(u,b)}finally{h=!1}for(var w=c=f,E=0;E<w.length;E++){var A=w[E];A()}return b}function S(b){if(typeof b!="function")throw new Error(On(10));o=b,v({type:aM.REPLACE})}function M(){var b,w=m;return b={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(On(11));function k(){A.next&&A.next(p())}k();var T=w(k);return{unsubscribe:T}}},b[rM]=function(){return this},b}return v({type:aM.INIT}),i={dispatch:v,subscribe:m,getState:p,replaceReducer:S},i[rM]=M,i}var Dj=function(t,n){return t===n};function Nj(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Rj(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Dj;if(e.length!==t.length)return!1;for(var i=0;i<e.length;++i)if(!n(e[i],t[i]))return!1;return!0}function oM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function lM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oM(Object(n),!0).forEach(function(i){zj(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oM(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function zj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uM={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Lj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:uM,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case ky:case Hf:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Bf:return Nj(e.clientOffset,n.clientOffset)?e:lM(lM({},e),{},{clientOffset:n.clientOffset});case $f:case Pf:return uM;default:return e}}var Dy="dnd-core/ADD_SOURCE",Ny="dnd-core/ADD_TARGET",Ry="dnd-core/REMOVE_SOURCE",Yf="dnd-core/REMOVE_TARGET";function Ij(e){return{type:Dy,payload:{sourceId:e}}}function qj(e){return{type:Ny,payload:{targetId:e}}}function Uj(e){return{type:Ry,payload:{sourceId:e}}}function jj(e){return{type:Yf,payload:{targetId:e}}}function sM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function Cn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sM(Object(n),!0).forEach(function(i){Hj(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sM(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Hj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bj={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Pj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bj,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case Hf:return Cn(Cn({},e),{},{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Ay:return Cn(Cn({},e),{},{isSourcePublic:!0});case Bf:return Cn(Cn({},e),{},{targetIds:n.targetIds});case Yf:return e.targetIds.indexOf(n.targetId)===-1?e:Cn(Cn({},e),{},{targetIds:nj(e.targetIds,n.targetId)});case Pf:return Cn(Cn({},e),{},{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case $f:return Cn(Cn({},e),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function $j(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Dy:case Ny:return e+1;case Ry:case Yf:return e-1;default:return e}}var _f=[],zy=[];_f.__IS_NONE__=!0;zy.__IS_ALL__=!0;function Yj(e,t){if(e===_f)return!1;if(e===zy||typeof t>"u")return!0;var n=ij(t,e);return n.length>0}function Vj(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case Bf:break;case Dy:case Ny:case Yf:case Ry:return _f;case Hf:case Ay:case $f:case Pf:default:return zy}var t=e.payload,n=t.targetIds,i=n===void 0?[]:n,o=t.prevTargetIds,u=o===void 0?[]:o,c=rj(i,u),f=c.length>0||!Rj(i,u);if(!f)return _f;var h=u[u.length-1],g=i[i.length-1];return h!==g&&(h&&c.push(h),g&&c.push(g)),c}function Fj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e+1}function cM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function fM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cM(Object(n),!0).forEach(function(i){Gj(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cM(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Gj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:Vj(e.dirtyHandlerIds,{type:t.type,payload:fM(fM({},t.payload),{},{prevTargetIds:tj(e,"dragOperation.targetIds",[])})}),dragOffset:Lj(e.dragOffset,t),refCount:$j(e.refCount,t),dragOperation:Pj(e.dragOperation,t),stateId:Fj(e.stateId)}}function Xj(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Lx(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Kj(e){var t=e.clientOffset,n=e.initialClientOffset,i=e.initialSourceClientOffset;return!t||!n||!i?null:Lx(Xj(t,i),n)}function Zj(e){var t=e.clientOffset,n=e.initialClientOffset;return!t||!n?null:Lx(t,n)}function Jj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wj(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function eH(e,t,n){return t&&Wj(e.prototype,t),e}function hM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tH=(function(){function e(t,n){Jj(this,e),hM(this,"store",void 0),hM(this,"registry",void 0),this.store=t,this.registry=n}return eH(e,[{key:"subscribeToStateChange",value:function(n){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},u=o.handlerIds;Ee(typeof n=="function","listener must be a function."),Ee(typeof u>"u"||Array.isArray(u),"handlerIds, when specified, must be an array of strings.");var c=this.store.getState().stateId,f=function(){var g=i.store.getState(),p=g.stateId;try{var m=p===c||p===c+1&&!Yj(g.dirtyHandlerIds,u);m||n()}finally{c=p}};return this.store.subscribe(f)}},{key:"subscribeToOffsetChange",value:function(n){var i=this;Ee(typeof n=="function","listener must be a function.");var o=this.store.getState().dragOffset,u=function(){var f=i.store.getState().dragOffset;f!==o&&(o=f,n())};return this.store.subscribe(u)}},{key:"canDragSource",value:function(n){if(!n)return!1;var i=this.registry.getSource(n);return Ee(i,"Expected to find a valid source. sourceId=".concat(n)),this.isDragging()?!1:i.canDrag(this,n)}},{key:"canDropOnTarget",value:function(n){if(!n)return!1;var i=this.registry.getTarget(n);if(Ee(i,"Expected to find a valid target. targetId=".concat(n)),!this.isDragging()||this.didDrop())return!1;var o=this.registry.getTargetType(n),u=this.getItemType();return b1(o,u)&&i.canDrop(this,n)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(n){if(!n)return!1;var i=this.registry.getSource(n,!0);if(Ee(i,"Expected to find a valid source. sourceId=".concat(n)),!this.isDragging()||!this.isSourcePublic())return!1;var o=this.registry.getSourceType(n),u=this.getItemType();return o!==u?!1:i.isDragging(this,n)}},{key:"isOverTarget",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!n)return!1;var o=i.shallow;if(!this.isDragging())return!1;var u=this.registry.getTargetType(n),c=this.getItemType();if(c&&!b1(u,c))return!1;var f=this.getTargetIds();if(!f.length)return!1;var h=f.indexOf(n);return o?h===f.length-1:h>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return!!this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return Kj(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return Zj(this.store.getState().dragOffset)}}]),e})(),nH=0;function rH(){return nH++}function Ic(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ic=function(n){return typeof n}:Ic=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ic(e)}function iH(e){Ee(typeof e.canDrag=="function","Expected canDrag to be a function."),Ee(typeof e.beginDrag=="function","Expected beginDrag to be a function."),Ee(typeof e.endDrag=="function","Expected endDrag to be a function.")}function aH(e){Ee(typeof e.canDrop=="function","Expected canDrop to be a function."),Ee(typeof e.hover=="function","Expected hover to be a function."),Ee(typeof e.drop=="function","Expected beginDrag to be a function.")}function S1(e,t){if(t&&Array.isArray(e)){e.forEach(function(n){return S1(n,!1)});return}Ee(typeof e=="string"||Ic(e)==="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const dM=typeof global<"u"?global:self,Ix=dM.MutationObserver||dM.WebKitMutationObserver;function qx(e){return function(){const n=setTimeout(o,0),i=setInterval(o,50);function o(){clearTimeout(n),clearInterval(i),e()}}}function oH(e){let t=1;const n=new Ix(e),i=document.createTextNode("");return n.observe(i,{characterData:!0}),function(){t=-t,i.data=t}}const lH=typeof Ix=="function"?oH:qx;class uH{enqueueTask(t){const{queue:n,requestFlush:i}=this;n.length||(i(),this.flushing=!0),n[n.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const n=this.index;if(this.index++,t[n].call(),this.index>this.capacity){for(let i=0,o=t.length-this.index;i<o;i++)t[i]=t[i+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=lH(this.flush),this.requestErrorThrow=qx(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class sH{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,n){this.onError=t,this.release=n,this.task=null}}class cH{create(t){const n=this.freeTasks,i=n.length?n.pop():new sH(this.onError,o=>n[n.length]=o);return i.task=t,i}constructor(t){this.onError=t,this.freeTasks=[]}}const Ux=new uH,fH=new cH(Ux.registerPendingError);function hH(e){Ux.enqueueTask(fH.create(e))}function dH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gH(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function pH(e,t,n){return t&&gH(e.prototype,t),e}function xo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yH(e,t){return SH(e)||bH(e,t)||vH(e,t)||mH()}function mH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
@@ -1064,4 +1064,4 @@ Make sure your charset is UTF-8`);u=(u>>>8&255)*192+(u&255),i.put(u,13)}},Tp=n,T
1064
1064
  The chosen QR Code version cannot contain this amount of data.
1065
1065
  Minimum version required to store current data is: `+W+`.
1066
1066
  `);const G=k(D,N,Z),ue=e.getSymbolSize(D),q=new i(ue);return S(q,D),M(q),b(q,D),E(q,N,0),D>=7&&w(q,D),A(q,G),isNaN(P)&&(P=c.getBestMask(q,E.bind(null,q,N))),c.applyMask(P,q),E(q,N,P),{modules:q,version:D,errorCorrectionLevel:N,maskPattern:P,segments:Z}}return lp.create=function(D,N){if(typeof D>"u"||D==="")throw new Error("No input text");let P=t.M,Z,W;return typeof N<"u"&&(P=t.from(N.errorCorrectionLevel,t.M),Z=g.from(N.version),W=c.from(N.maskPattern),N.toSJISFunc&&e.setToSJISFunction(N.toSJISFunc)),C(D,Z,P,W)},lp}var xp={},Op={},uT;function a5(){return uT||(uT=1,(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let i=n.slice().replace("#","").split("");if(i.length<3||i.length===5||i.length>8)throw new Error("Invalid hex color: "+n);(i.length===3||i.length===4)&&(i=Array.prototype.concat.apply([],i.map(function(u){return[u,u]}))),i.length===6&&i.push("F","F");const o=parseInt(i.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+i.slice(0,6).join("")}}e.getOptions=function(i){i||(i={}),i.color||(i.color={});const o=typeof i.margin>"u"||i.margin===null||i.margin<0?4:i.margin,u=i.width&&i.width>=21?i.width:void 0,c=i.scale||4;return{width:u,scale:u?4:c,margin:o,color:{dark:t(i.color.dark||"#000000ff"),light:t(i.color.light||"#ffffffff")},type:i.type,rendererOpts:i.rendererOpts||{}}},e.getScale=function(i,o){return o.width&&o.width>=i+o.margin*2?o.width/(i+o.margin*2):o.scale},e.getImageWidth=function(i,o){const u=e.getScale(i,o);return Math.floor((i+o.margin*2)*u)},e.qrToImageData=function(i,o,u){const c=o.modules.size,f=o.modules.data,h=e.getScale(c,u),g=Math.floor((c+u.margin*2)*h),p=u.margin*h,m=[u.color.light,u.color.dark];for(let v=0;v<g;v++)for(let S=0;S<g;S++){let M=(v*g+S)*4,b=u.color.light;if(v>=p&&S>=p&&v<g-p&&S<g-p){const w=Math.floor((v-p)/h),E=Math.floor((S-p)/h);b=m[f[w*c+E]?1:0]}i[M++]=b.r,i[M++]=b.g,i[M++]=b.b,i[M]=b.a}}})(Op)),Op}var sT;function w$(){return sT||(sT=1,(function(e){const t=a5();function n(o,u,c){o.clearRect(0,0,u.width,u.height),u.style||(u.style={}),u.height=c,u.width=c,u.style.height=c+"px",u.style.width=c+"px"}function i(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(u,c,f){let h=f,g=c;typeof h>"u"&&(!c||!c.getContext)&&(h=c,c=void 0),c||(g=i()),h=t.getOptions(h);const p=t.getImageWidth(u.modules.size,h),m=g.getContext("2d"),v=m.createImageData(p,p);return t.qrToImageData(v.data,u,h),n(m,g,p),m.putImageData(v,0,0),g},e.renderToDataURL=function(u,c,f){let h=f;typeof h>"u"&&(!c||!c.getContext)&&(h=c,c=void 0),h||(h={});const g=e.render(u,c,h),p=h.type||"image/png",m=h.rendererOpts||{};return g.toDataURL(p,m.quality)}})(xp)),xp}var Cp={},cT;function M$(){if(cT)return Cp;cT=1;const e=a5();function t(o,u){const c=o.a/255,f=u+'="'+o.hex+'"';return c<1?f+" "+u+'-opacity="'+c.toFixed(2).slice(1)+'"':f}function n(o,u,c){let f=o+u;return typeof c<"u"&&(f+=" "+c),f}function i(o,u,c){let f="",h=0,g=!1,p=0;for(let m=0;m<o.length;m++){const v=Math.floor(m%u),S=Math.floor(m/u);!v&&!g&&(g=!0),o[m]?(p++,m>0&&v>0&&o[m-1]||(f+=g?n("M",v+c,.5+S+c):n("m",h,0),h=0,g=!1),v+1<u&&o[m+1]||(f+=n("h",p),p=0)):h++}return f}return Cp.render=function(u,c,f){const h=e.getOptions(c),g=u.modules.size,p=u.modules.data,m=g+h.margin*2,v=h.color.light.a?"<path "+t(h.color.light,"fill")+' d="M0 0h'+m+"v"+m+'H0z"/>':"",S="<path "+t(h.color.dark,"stroke")+' d="'+i(p,g,h.margin)+'"/>',M='viewBox="0 0 '+m+" "+m+'"',w='<svg xmlns="http://www.w3.org/2000/svg" '+(h.width?'width="'+h.width+'" height="'+h.width+'" ':"")+M+' shape-rendering="crispEdges">'+v+S+`</svg>
1067
- `;return typeof f=="function"&&f(null,w),w},Cp}var fT;function T$(){if(fT)return ko;fT=1;const e=i$(),t=_$(),n=w$(),i=M$();function o(u,c,f,h,g){const p=[].slice.call(arguments,1),m=p.length,v=typeof p[m-1]=="function";if(!v&&!e())throw new Error("Callback required as last argument");if(v){if(m<2)throw new Error("Too few arguments provided");m===2?(g=f,f=c,c=h=void 0):m===3&&(c.getContext&&typeof g>"u"?(g=h,h=void 0):(g=h,h=f,f=c,c=void 0))}else{if(m<1)throw new Error("Too few arguments provided");return m===1?(f=c,c=h=void 0):m===2&&!c.getContext&&(h=f,f=c,c=void 0),new Promise(function(S,M){try{const b=t.create(f,h);S(u(b,c,h))}catch(b){M(b)}})}try{const S=t.create(f,h);g(null,u(S,c,h))}catch(S){g(S)}}return ko.create=t.create,ko.toCanvas=o.bind(null,n.render),ko.toDataURL=o.bind(null,n.renderToDataURL),ko.toString=o.bind(null,function(u,c,f){return i.render(u,f)}),ko}var E$=T$();const yQ=Zt(E$);export{zG as $,Rr as A,qN as B,dQ as C,Zt as D,O$ as E,tE as F,P$ as G,vG as H,A$ as I,mG as J,Gc as K,SG as L,D$ as M,yG as N,bG as O,_G as P,nC as Q,x1 as R,xG as S,b8 as T,eQ as U,jG as V,UG as W,qG as X,IG as Y,LG as Z,uN as _,An as a,NF as a$,RG as a0,Cz as a1,tQ as a2,Mz as a3,nQ as a4,KG as a5,KS as a6,Mu as a7,WG as a8,JG as a9,gG as aA,pG as aB,WT as aC,UY as aD,DF as aE,WF as aF,HF as aG,dG as aH,XY as aI,Qn as aJ,hG as aK,QF as aL,JY as aM,GY as aN,OV as aO,iV as aP,gF as aQ,eF as aR,KV as aS,FF as aT,XV as aU,lY as aV,KF as aW,dV as aX,pF as aY,vF as aZ,cF as a_,ZG as aa,rQ as ab,iQ as ac,AG as ad,Oz as ae,QG as af,XG as ag,GG as ah,FG as ai,VG as aj,YG as ak,t3 as al,$G as am,NG as an,DG as ao,HG as ap,PG as aq,BG as ar,oQ as as,lQ as at,aQ as au,uQ as av,sQ as aw,cQ as ax,fQ as ay,hQ as az,ET as b,R$ as b$,DY as b0,fG as b1,eY as b2,CF as b3,uF as b4,R1 as b5,tV as b6,kV as b7,Q$ as b8,fF as b9,VV as bA,zk as bB,Z$ as bC,zV as bD,HY as bE,nV as bF,hV as bG,aG as bH,uY as bI,sV as bJ,dF as bK,$$ as bL,YF as bM,bY as bN,cY as bO,iG as bP,L$ as bQ,Lu as bR,I$ as bS,yY as bT,pY as bU,QV as bV,OY as bW,_F as bX,j$ as bY,uk as bZ,U$ as b_,W$ as ba,SV as bb,xY as bc,nY as bd,iY as be,qF as bf,X$ as bg,rV as bh,WV as bi,_Y as bj,G$ as bk,fY as bl,rG as bm,PY as bn,lV as bo,aV as bp,XF as bq,oF as br,sY as bs,ZV as bt,lG as bu,EV as bv,uG as bw,tG as bx,fV as by,$V as bz,SE as c,Y$ as c$,C$ as c0,H$ as c1,B$ as c2,NV as c3,nF as c4,RF as c5,TY as c6,ZF as c7,RY as c8,EF as c9,dY as cA,ZY as cB,bV as cC,MV as cD,BF as cE,GF as cF,gV as cG,yV as cH,GV as cI,IV as cJ,mF as cK,PF as cL,wV as cM,FY as cN,yF as cO,NY as cP,YY as cQ,AY as cR,_V as cS,K$ as cT,F$ as cU,BV as cV,LV as cW,$Y as cX,UF as cY,zY as cZ,xF as c_,BY as ca,TV as cb,q$ as cc,mY as cd,rF as ce,wY as cf,JF as cg,tF as ch,jF as ci,qV as cj,eV as ck,bF as cl,AF as cm,PV as cn,LY as co,TF as cp,YV as cq,qY as cr,gQ as cs,UV as ct,eG as cu,SY as cv,gY as cw,hY as cx,QY as cy,pQ as cz,wS as d,jV as d0,iF as d1,FV as d2,wF as d3,cG as d4,vY as d5,OF as d6,JV as d7,mV as d8,VF as d9,jY as dA,aF as dB,J$ as dC,nG as dD,uV as dE,VY as dF,oG as dG,xV as dH,pV as dI,$F as dJ,tY as dK,oV as dL,CV as dM,kF as dN,HV as dO,aY as dP,WY as da,V$ as db,cV as dc,zF as dd,vV as de,MY as df,kY as dg,yQ as dh,oY as di,sF as dj,AV as dk,MF as dl,EY as dm,LF as dn,CY as dp,IY as dq,lF as dr,IF as ds,DV as dt,rY as du,hF as dv,RV as dw,SF as dx,KY as dy,sG as dz,Bc as e,wG as f,_E as g,EN as h,MG as i,Te as j,EG as k,wE as l,LN as m,zt as n,Ur as o,K1 as p,e9 as q,U as r,k$ as s,TG as t,kG as u,rl as v,z$ as w,gz as x,OG as y,CG as z};
1067
+ `;return typeof f=="function"&&f(null,w),w},Cp}var fT;function T$(){if(fT)return ko;fT=1;const e=i$(),t=_$(),n=w$(),i=M$();function o(u,c,f,h,g){const p=[].slice.call(arguments,1),m=p.length,v=typeof p[m-1]=="function";if(!v&&!e())throw new Error("Callback required as last argument");if(v){if(m<2)throw new Error("Too few arguments provided");m===2?(g=f,f=c,c=h=void 0):m===3&&(c.getContext&&typeof g>"u"?(g=h,h=void 0):(g=h,h=f,f=c,c=void 0))}else{if(m<1)throw new Error("Too few arguments provided");return m===1?(f=c,c=h=void 0):m===2&&!c.getContext&&(h=f,f=c,c=void 0),new Promise(function(S,M){try{const b=t.create(f,h);S(u(b,c,h))}catch(b){M(b)}})}try{const S=t.create(f,h);g(null,u(S,c,h))}catch(S){g(S)}}return ko.create=t.create,ko.toCanvas=o.bind(null,n.render),ko.toDataURL=o.bind(null,n.renderToDataURL),ko.toString=o.bind(null,function(u,c,f){return i.render(u,f)}),ko}var E$=T$();const yQ=Zt(E$);export{LG as $,Rr as A,qN as B,AG as C,Zt as D,O$ as E,tE as F,P$ as G,vG as H,A$ as I,mG as J,Gc as K,SG as L,D$ as M,yG as N,bG as O,_G as P,nC as Q,x1 as R,xG as S,b8 as T,tQ as U,HG as V,jG as W,UG as X,qG as Y,IG as Z,uN as _,An as a,NF as a$,zG as a0,kz as a1,nQ as a2,Mz as a3,rQ as a4,ZG as a5,ZS as a6,Mu as a7,eQ as a8,WG as a9,gG as aA,pG as aB,WT as aC,UY as aD,DF as aE,WF as aF,HF as aG,dG as aH,XY as aI,Qn as aJ,hG as aK,QF as aL,JY as aM,GY as aN,OV as aO,iV as aP,gF as aQ,eF as aR,KV as aS,FF as aT,XV as aU,lY as aV,KF as aW,dV as aX,pF as aY,vF as aZ,cF as a_,JG as aa,iQ as ab,aQ as ac,DG as ad,Cz as ae,XG as af,KG as ag,QG as ah,GG as ai,FG as aj,VG as ak,t3 as al,YG as am,RG as an,NG as ao,BG as ap,$G as aq,PG as ar,lQ as as,uQ as at,oQ as au,sQ as av,cQ as aw,fQ as ax,hQ as ay,dQ as az,ET as b,R$ as b$,DY as b0,fG as b1,eY as b2,CF as b3,uF as b4,R1 as b5,tV as b6,kV as b7,Q$ as b8,fF as b9,VV as bA,zk as bB,Z$ as bC,zV as bD,HY as bE,nV as bF,hV as bG,aG as bH,uY as bI,sV as bJ,dF as bK,$$ as bL,YF as bM,bY as bN,cY as bO,iG as bP,L$ as bQ,Lu as bR,I$ as bS,yY as bT,pY as bU,QV as bV,OY as bW,_F as bX,j$ as bY,uk as bZ,U$ as b_,W$ as ba,SV as bb,xY as bc,nY as bd,iY as be,qF as bf,X$ as bg,rV as bh,WV as bi,_Y as bj,G$ as bk,fY as bl,rG as bm,PY as bn,lV as bo,aV as bp,XF as bq,oF as br,sY as bs,ZV as bt,lG as bu,EV as bv,uG as bw,tG as bx,fV as by,$V as bz,SE as c,Y$ as c$,C$ as c0,H$ as c1,B$ as c2,NV as c3,nF as c4,RF as c5,TY as c6,ZF as c7,RY as c8,EF as c9,dY as cA,ZY as cB,bV as cC,MV as cD,BF as cE,GF as cF,gV as cG,yV as cH,GV as cI,IV as cJ,mF as cK,PF as cL,wV as cM,FY as cN,yF as cO,NY as cP,YY as cQ,AY as cR,_V as cS,K$ as cT,F$ as cU,BV as cV,LV as cW,$Y as cX,UF as cY,zY as cZ,xF as c_,BY as ca,TV as cb,q$ as cc,mY as cd,rF as ce,wY as cf,JF as cg,tF as ch,jF as ci,qV as cj,eV as ck,bF as cl,AF as cm,PV as cn,LY as co,TF as cp,YV as cq,qY as cr,gQ as cs,UV as ct,eG as cu,SY as cv,gY as cw,hY as cx,QY as cy,pQ as cz,wS as d,jV as d0,iF as d1,FV as d2,wF as d3,cG as d4,vY as d5,OF as d6,JV as d7,mV as d8,VF as d9,jY as dA,aF as dB,J$ as dC,nG as dD,uV as dE,VY as dF,oG as dG,xV as dH,pV as dI,$F as dJ,tY as dK,oV as dL,CV as dM,kF as dN,HV as dO,aY as dP,WY as da,V$ as db,cV as dc,zF as dd,vV as de,MY as df,kY as dg,yQ as dh,oY as di,sF as dj,AV as dk,MF as dl,EY as dm,LF as dn,CY as dp,IY as dq,lF as dr,IF as ds,DV as dt,rY as du,hF as dv,RV as dw,SF as dx,KY as dy,sG as dz,Bc as e,wG as f,_E as g,EN as h,MG as i,Te as j,EG as k,wE as l,LN as m,zt as n,Ur as o,K1 as p,e9 as q,U as r,k$ as s,TG as t,kG as u,rl as v,z$ as w,gz as x,OG as y,CG as z};