@object-ui/console 3.0.3 → 3.1.1

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 (168) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/AdvancedChartImpl-D711bBuO.js +7 -0
  3. package/dist/assets/AppManagementPage-D_71FpIH.js +1 -0
  4. package/dist/assets/AuditLogPage-D3g_VEdE.js +1 -0
  5. package/dist/assets/AuthPageLayout-9l5xWV_-.js +1 -0
  6. package/dist/assets/{ChartImpl-2ivTljUi.js → ChartImpl-B9B4Fnbe.js} +1 -1
  7. package/dist/assets/CreateAppPage-mqt5j4rK.js +1 -0
  8. package/dist/assets/DashboardDesignPage-Cijb3jeF.js +1 -0
  9. package/dist/assets/DashboardView-DjhlMHLV.js +1 -0
  10. package/dist/assets/EditAppPage-BiK_DWcO.js +1 -0
  11. package/dist/assets/ForgotPasswordPage-Bzady8r_.js +1 -0
  12. package/dist/assets/KanbanEnhanced-OvdpYe81.js +1 -0
  13. package/dist/assets/KanbanImpl-EcxwmGw7.js +1 -0
  14. package/dist/assets/LoginPage-valW4Wu1.js +1 -0
  15. package/dist/assets/{MarkdownImpl-BshtTFK2.js → MarkdownImpl-C0wRapHT.js} +2 -2
  16. package/dist/assets/OrgManagementPage-D0d52PdP.js +1 -0
  17. package/dist/assets/PageDesignPage-hpFLdWCR.js +1 -0
  18. package/dist/assets/PageView-DxIAf-SB.js +2 -0
  19. package/dist/assets/PermissionManagementPage-ELCC8HyK.js +1 -0
  20. package/dist/assets/ProfilePage-Dj1N0mY3.js +1 -0
  21. package/dist/assets/RecordDetailView-DS9tEr5f.js +1 -0
  22. package/dist/assets/RegisterPage-DqUU8oW-.js +1 -0
  23. package/dist/assets/ReportView-CNi0A66t.js +1 -0
  24. package/dist/assets/RoleManagementPage-DRvuG53j.js +1 -0
  25. package/dist/assets/SearchResultsPage-nMlMQCb8.js +1 -0
  26. package/dist/assets/SystemHubPage-CAY-YvG2.js +1 -0
  27. package/dist/assets/UserManagementPage-fzvfJxav.js +1 -0
  28. package/dist/assets/data-adapter-rvE3xy2B.js +1 -0
  29. package/dist/assets/framework-BM176iet.js +10 -0
  30. package/dist/assets/index-B6cpm7bF.css +1 -0
  31. package/dist/assets/index-CTBPkbPG.js +9 -0
  32. package/dist/assets/index-Dv78M4Xq.js +1 -0
  33. package/dist/assets/infrastructure-n1j_TN6w.js +1 -0
  34. package/dist/assets/maplibre-gl-DVmJFhI2.js +811 -0
  35. package/dist/assets/plugins-core-qwgXbAqa.js +8 -0
  36. package/dist/assets/plugins-views-CveFN6PV.js +62 -0
  37. package/dist/assets/ui-components-BxvihT61.js +36 -0
  38. package/dist/assets/ui-components-CRV2BvKI.css +1 -0
  39. package/dist/assets/ui-layout-C6KWQtRO.js +1 -0
  40. package/dist/assets/{vendor-charts-CSvoW-yB.js → vendor-charts-BLNOCZWl.js} +2 -2
  41. package/dist/assets/vendor-dndkit-CX1oDZqy.js +5 -0
  42. package/dist/assets/vendor-i18n-E3-WitRV.js +9 -0
  43. package/dist/assets/{vendor-icons-CQ8b-fGy.js → vendor-icons-ndICq8DC.js} +3425 -3535
  44. package/dist/assets/vendor-objectstack-YKtcdalX.js +34 -0
  45. package/dist/assets/{vendor-radix-BbeYj_o4.js → vendor-radix-C6qchjxv.js} +1 -1
  46. package/dist/assets/vendor-react-9M-xu2bR.js +60 -0
  47. package/dist/assets/vendor-ui-utils-3tkeUVaX.js +1 -0
  48. package/dist/assets/vendor-zod-DxQVy2_o.js +39 -0
  49. package/dist/index.html +23 -22
  50. package/package.json +49 -46
  51. package/plugin.d.ts +1 -2
  52. package/plugin.js +1 -2
  53. package/plugin.ts +1 -2
  54. package/dist/assets/AdvancedChartImpl-DAS1mU9o.js +0 -7
  55. package/dist/assets/AdvancedChartImpl-DAS1mU9o.js.br +0 -0
  56. package/dist/assets/AdvancedChartImpl-DAS1mU9o.js.gz +0 -0
  57. package/dist/assets/AuditLogPage-CyY7VZJW.js +0 -1
  58. package/dist/assets/AuditLogPage-CyY7VZJW.js.br +0 -0
  59. package/dist/assets/AuditLogPage-CyY7VZJW.js.gz +0 -0
  60. package/dist/assets/ChartImpl-2ivTljUi.js.br +0 -0
  61. package/dist/assets/ChartImpl-2ivTljUi.js.gz +0 -0
  62. package/dist/assets/DashboardView-DSh9LYBb.js +0 -1
  63. package/dist/assets/DashboardView-DSh9LYBb.js.br +0 -0
  64. package/dist/assets/DashboardView-DSh9LYBb.js.gz +0 -0
  65. package/dist/assets/ForgotPasswordPage-DUfjj-wh.js +0 -1
  66. package/dist/assets/KanbanEnhanced-ZOndyXyg.js +0 -1
  67. package/dist/assets/KanbanEnhanced-ZOndyXyg.js.br +0 -0
  68. package/dist/assets/KanbanEnhanced-ZOndyXyg.js.gz +0 -0
  69. package/dist/assets/KanbanImpl-BsMtStI7.js +0 -1
  70. package/dist/assets/KanbanImpl-BsMtStI7.js.br +0 -0
  71. package/dist/assets/KanbanImpl-BsMtStI7.js.gz +0 -0
  72. package/dist/assets/LoginPage-2CoFvwsL.js +0 -1
  73. package/dist/assets/MarkdownImpl-BshtTFK2.js.br +0 -0
  74. package/dist/assets/MarkdownImpl-BshtTFK2.js.gz +0 -0
  75. package/dist/assets/OrgManagementPage-BJt5Iiun.js +0 -1
  76. package/dist/assets/OrgManagementPage-BJt5Iiun.js.br +0 -0
  77. package/dist/assets/OrgManagementPage-BJt5Iiun.js.gz +0 -0
  78. package/dist/assets/PageView-bHvRhycc.js +0 -1
  79. package/dist/assets/PageView-bHvRhycc.js.br +0 -0
  80. package/dist/assets/PageView-bHvRhycc.js.gz +0 -0
  81. package/dist/assets/ProfilePage-MVUfKMrp.js +0 -1
  82. package/dist/assets/ProfilePage-MVUfKMrp.js.br +0 -0
  83. package/dist/assets/ProfilePage-MVUfKMrp.js.gz +0 -0
  84. package/dist/assets/RecordDetailView-Sm8_iQw_.js +0 -1
  85. package/dist/assets/RecordDetailView-Sm8_iQw_.js.br +0 -0
  86. package/dist/assets/RecordDetailView-Sm8_iQw_.js.gz +0 -0
  87. package/dist/assets/RegisterPage-B9itUVYp.js +0 -1
  88. package/dist/assets/ReportView-B0D9jx4v.js +0 -1
  89. package/dist/assets/ReportView-B0D9jx4v.js.br +0 -0
  90. package/dist/assets/ReportView-B0D9jx4v.js.gz +0 -0
  91. package/dist/assets/RoleManagementPage-BRqaeF_L.js +0 -1
  92. package/dist/assets/RoleManagementPage-BRqaeF_L.js.br +0 -0
  93. package/dist/assets/RoleManagementPage-BRqaeF_L.js.gz +0 -0
  94. package/dist/assets/SearchResultsPage-wlC0eLLr.js +0 -1
  95. package/dist/assets/SearchResultsPage-wlC0eLLr.js.br +0 -0
  96. package/dist/assets/SearchResultsPage-wlC0eLLr.js.gz +0 -0
  97. package/dist/assets/UserManagementPage-DOH6ql6-.js +0 -1
  98. package/dist/assets/UserManagementPage-DOH6ql6-.js.br +0 -0
  99. package/dist/assets/UserManagementPage-DOH6ql6-.js.gz +0 -0
  100. package/dist/assets/ViewDesignerPage-TCaXYb43.js +0 -1
  101. package/dist/assets/ViewDesignerPage-TCaXYb43.js.br +0 -0
  102. package/dist/assets/ViewDesignerPage-TCaXYb43.js.gz +0 -0
  103. package/dist/assets/data-adapter-D15yh-pb.js +0 -1
  104. package/dist/assets/data-adapter-D15yh-pb.js.br +0 -0
  105. package/dist/assets/data-adapter-D15yh-pb.js.gz +0 -0
  106. package/dist/assets/framework-mHWN965c.js +0 -10
  107. package/dist/assets/framework-mHWN965c.js.br +0 -0
  108. package/dist/assets/framework-mHWN965c.js.gz +0 -0
  109. package/dist/assets/index-CUnVdETN.css +0 -1
  110. package/dist/assets/index-CUnVdETN.css.br +0 -0
  111. package/dist/assets/index-CUnVdETN.css.gz +0 -0
  112. package/dist/assets/index-RAPqkKVL.js +0 -9
  113. package/dist/assets/index-RAPqkKVL.js.br +0 -0
  114. package/dist/assets/index-RAPqkKVL.js.gz +0 -0
  115. package/dist/assets/infrastructure-Di0WqY4l.js +0 -1
  116. package/dist/assets/infrastructure-Di0WqY4l.js.br +0 -0
  117. package/dist/assets/infrastructure-Di0WqY4l.js.gz +0 -0
  118. package/dist/assets/maplibre-gl-D2AsLM0J.js +0 -811
  119. package/dist/assets/maplibre-gl-D2AsLM0J.js.br +0 -0
  120. package/dist/assets/maplibre-gl-D2AsLM0J.js.gz +0 -0
  121. package/dist/assets/plugins-core-Cv2TPt86.js +0 -4
  122. package/dist/assets/plugins-core-Cv2TPt86.js.br +0 -0
  123. package/dist/assets/plugins-core-Cv2TPt86.js.gz +0 -0
  124. package/dist/assets/plugins-views-P3eB-els.css.br +0 -0
  125. package/dist/assets/plugins-views-P3eB-els.css.gz +0 -0
  126. package/dist/assets/plugins-views-divN-xXs.js +0 -60
  127. package/dist/assets/plugins-views-divN-xXs.js.br +0 -0
  128. package/dist/assets/plugins-views-divN-xXs.js.gz +0 -0
  129. package/dist/assets/systemObjects-DSpePIIy.js.br +0 -2
  130. package/dist/assets/systemObjects-DSpePIIy.js.gz +0 -0
  131. package/dist/assets/ui-components-CseD2Dpn.js +0 -31
  132. package/dist/assets/ui-components-CseD2Dpn.js.br +0 -0
  133. package/dist/assets/ui-components-CseD2Dpn.js.gz +0 -0
  134. package/dist/assets/ui-components-GrNdJOi1.css +0 -1
  135. package/dist/assets/ui-components-GrNdJOi1.css.br +0 -0
  136. package/dist/assets/ui-components-GrNdJOi1.css.gz +0 -0
  137. package/dist/assets/ui-layout-CF_1bNSv.js +0 -1
  138. package/dist/assets/ui-layout-CF_1bNSv.js.br +0 -0
  139. package/dist/assets/ui-layout-CF_1bNSv.js.gz +0 -0
  140. package/dist/assets/vendor-charts-CSvoW-yB.js.br +0 -0
  141. package/dist/assets/vendor-charts-CSvoW-yB.js.gz +0 -0
  142. package/dist/assets/vendor-dndkit-DRGpK6sP.js +0 -5
  143. package/dist/assets/vendor-dndkit-DRGpK6sP.js.br +0 -0
  144. package/dist/assets/vendor-dndkit-DRGpK6sP.js.gz +0 -0
  145. package/dist/assets/vendor-i18n-D5KbMT7w.js +0 -9
  146. package/dist/assets/vendor-i18n-D5KbMT7w.js.br +0 -0
  147. package/dist/assets/vendor-i18n-D5KbMT7w.js.gz +0 -0
  148. package/dist/assets/vendor-icons-CQ8b-fGy.js.br +0 -0
  149. package/dist/assets/vendor-icons-CQ8b-fGy.js.gz +0 -0
  150. package/dist/assets/vendor-objectstack-Bifvxvds.js +0 -1
  151. package/dist/assets/vendor-objectstack-Bifvxvds.js.br +0 -0
  152. package/dist/assets/vendor-objectstack-Bifvxvds.js.gz +0 -0
  153. package/dist/assets/vendor-radix-BbeYj_o4.js.br +0 -0
  154. package/dist/assets/vendor-radix-BbeYj_o4.js.gz +0 -0
  155. package/dist/assets/vendor-react-Dy_xkBQQ.js +0 -60
  156. package/dist/assets/vendor-react-Dy_xkBQQ.js.br +0 -0
  157. package/dist/assets/vendor-react-Dy_xkBQQ.js.gz +0 -0
  158. package/dist/assets/vendor-ui-utils-h6yAcIi9.js +0 -1
  159. package/dist/assets/vendor-ui-utils-h6yAcIi9.js.br +0 -0
  160. package/dist/assets/vendor-ui-utils-h6yAcIi9.js.gz +0 -0
  161. package/dist/assets/vendor-zod-UZPqlszj.js +0 -39
  162. package/dist/assets/vendor-zod-UZPqlszj.js.br +0 -0
  163. package/dist/assets/vendor-zod-UZPqlszj.js.gz +0 -0
  164. package/dist/index.html.br +0 -0
  165. package/dist/index.html.gz +0 -0
  166. package/dist/mockServiceWorker.js.br +0 -0
  167. package/dist/mockServiceWorker.js.gz +0 -0
  168. package/dist/stats.html +0 -4949
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  The standard runtime UI for ObjectStack applications. This package provides the **Console** — a full-featured enterprise admin interface that renders from JSON metadata alone, requiring zero custom pages.
4
4
 
5
- > **Version:** 0.5.1  |  **Spec:** @objectstack/spec v3.0.0  |  [Full Roadmap →](./CONSOLE_ROADMAP.md)
5
+ > **Version:** 0.5.1  |  **Spec:** @objectstack/spec v3.0.7  |  [Full Roadmap →](./CONSOLE_ROADMAP.md)
6
6
 
7
7
  ## Features
8
8
 
@@ -0,0 +1,7 @@
1
+ import{r as m,j as e}from"./vendor-react-9M-xu2bR.js";import{T as G,L as X,a as Y,P,c as Z,d as q,e as N,f as U,g as D,h as J,i as Q,S as _,C as R,X as $,Y as E,Z as V,j as ee,B as S,k as T,A as W,b as B,l as te,m as ae}from"./vendor-charts-BLNOCZWl.js";import"./vendor-ui-utils-3tkeUVaX.js";import"./vendor-i18n-E3-WitRV.js";const p=(...r)=>r.filter(Boolean).join(" "),ne={light:"",dark:".dark"},F=m.createContext(null);function H(){const r=m.useContext(F);if(!r)throw new Error("useChart must be used within a <ChartContainer />");return r}function y({id:r,className:o,children:a,config:n,...l}){const x=m.useId(),s=`chart-${r||x.replace(/:/g,"")}`;return e.jsx(F.Provider,{value:{config:n},children:e.jsxs("div",{"data-slot":"chart","data-chart":s,className:p("flex w-full h-[350px] justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground",o),...l,children:[e.jsx(re,{id:s,config:n}),e.jsx(Y,{width:"100%",height:"100%",children:a})]})})}const re=({id:r,config:o})=>{const a=Object.entries(o).filter(([,n])=>n.theme||n.color);return a.length?e.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(ne).map(([n,l])=>`
2
+ ${l} [data-chart=${r}] {
3
+ ${a.map(([x,s])=>{const d=s.theme?.[n]||s.color;return d?` --color-${x}: ${d};`:null}).join(`
4
+ `)}
5
+ }
6
+ `).join(`
7
+ `)}}):null},b=G;function v({active:r,payload:o,className:a,indicator:n="dot",hideLabel:l=!1,hideIndicator:x=!1,label:s,labelFormatter:d,labelClassName:j,formatter:w,color:k,nameKey:t,labelKey:c}){const{config:u}=H(),f=m.useMemo(()=>{if(l||!o?.length)return null;const[i]=o,A=`${c||i?.dataKey||i?.name||"value"}`,M=O(u,i,A),g=!c&&typeof s=="string"?u[s]?.label||s:M?.label;return d?e.jsx("div",{className:p("font-medium",j),children:d(g,o)}):g?e.jsx("div",{className:p("font-medium",j),children:g}):null},[s,d,o,l,j,u,c]);if(!r||!o?.length)return null;const h=o.length===1&&n!=="dot";return e.jsxs("div",{className:p("border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",a),children:[h?null:f,e.jsx("div",{className:"grid gap-1.5",children:o.filter(i=>i.type!=="none").map((i,A)=>{const M=`${t||i.name||i.dataKey||"value"}`,g=O(u,i,M),z=k||i.payload.fill||i.color;return e.jsx("div",{className:p("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",n==="dot"?"items-center":""),children:w&&i?.value!==void 0&&i.name?w(i.value,i.name,i,A,i.payload):e.jsxs(e.Fragment,{children:[g?.icon?e.jsx(g.icon,{}):!x&&e.jsx("div",{className:p("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",n==="dot"?"h-2.5 w-2.5":"",n==="line"?"w-1":"",n==="dashed"?"w-0 border-[1.5px] border-dashed bg-transparent":"",h&&n==="dashed"?"my-0.5":""),style:{"--color-bg":z,"--color-border":z}}),e.jsxs("div",{className:p("flex flex-1 justify-between leading-none",h?"items-end":"items-center"),children:[e.jsxs("div",{className:"grid gap-1.5",children:[h?f:null,e.jsx("span",{className:"text-muted-foreground",children:g?.label||i.name})]}),i.value&&e.jsx("span",{className:"text-foreground font-mono font-medium tabular-nums",children:i.value.toLocaleString()})]})]})},i.dataKey)})})]})}const C=X;function K({className:r,hideIcon:o=!1,payload:a,verticalAlign:n="bottom",nameKey:l}){const{config:x}=H();return a?.length?e.jsx("div",{className:p("flex items-center justify-center gap-4",n==="top"?"pb-3":"pt-3",r),children:a.filter(s=>s.type!=="none").map(s=>{const d=`${l||s.dataKey||"value"}`,j=O(x,s,d);return e.jsxs("div",{className:p("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),children:[j?.icon&&!o?e.jsx(j.icon,{}):e.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:s.color}}),j?.label]},s.value)})}):null}function O(r,o,a){if(typeof o!="object"||o===null)return;const n="payload"in o&&typeof o.payload=="object"&&o.payload!==null?o.payload:void 0;let l=a;return a in o&&typeof o[a]=="string"?l=o[a]:n&&a in n&&typeof n[a]=="string"&&(l=n[a]),l in r?r[l]:r[a]}const I="hsl(var(--primary))",se={slate:"#64748b",gray:"#6b7280",zinc:"#71717a",neutral:"#737373",stone:"#78716c",red:"#ef4444",orange:"#f97316",amber:"#f59e0b",yellow:"#eab308",lime:"#84cc16",green:"#22c55e",emerald:"#10b981",teal:"#14b8a6",cyan:"#06b6d4",sky:"#0ea5e9",blue:"#3b82f6",indigo:"#6366f1",violet:"#8b5cf6",purple:"#a855f7",fuchsia:"#d946ef",pink:"#ec4899",rose:"#f43f5e"},L=r=>se[r]||r;function ce({chartType:r="bar",data:o=[],config:a={},xAxisKey:n="name",series:l=[],className:x=""}){const s=Array.isArray(o)?o:[],[d,j]=m.useState(!1);m.useEffect(()=>{const t=()=>j(window.innerWidth<640);return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]);const w={bar:S,line:ae,area:te,pie:P,donut:P,radar:N,scatter:_,combo:S}[r]||S;console.log("📈 Rendering Chart:",{chartType:r,dataLength:s.length,config:a,series:l,xAxisKey:n});const k=()=>["hsl(var(--chart-1))","hsl(var(--chart-2))","hsl(var(--chart-3))","hsl(var(--chart-4))","hsl(var(--chart-5))"];if(r==="pie"||r==="donut"){const t=r==="donut"?60:0;return e.jsx(y,{config:a,className:x,children:e.jsxs(P,{children:[e.jsx(b,{cursor:!1,content:e.jsx(v,{hideLabel:!0})}),e.jsx(Z,{data:s,dataKey:l[0]?.dataKey||"value",nameKey:n||"name",innerRadius:t,strokeWidth:5,paddingAngle:2,outerRadius:80,children:s.map((c,u)=>{let f=a[c[n]]?.color;if(!f){const h=k();f=h[u%h.length]}return e.jsx(q,{fill:L(f)},`cell-${u}`)})}),e.jsx(C,{content:e.jsx(K,{nameKey:n}),...d&&{verticalAlign:"bottom",wrapperStyle:{fontSize:"11px",paddingTop:"8px"}}})]})})}return r==="radar"?e.jsx(y,{config:a,className:x,children:e.jsxs(N,{data:s,children:[e.jsx(U,{}),e.jsx(D,{dataKey:n}),e.jsx(J,{}),e.jsx(b,{content:e.jsx(v,{})}),e.jsx(C,{content:e.jsx(K,{}),...d&&{verticalAlign:"bottom",wrapperStyle:{fontSize:"11px",paddingTop:"8px"}}}),l.map(t=>{const c=L(a[t.dataKey]?.color||I);return e.jsx(Q,{dataKey:t.dataKey,stroke:c,fill:c,fillOpacity:.6},t.dataKey)})]})}):r==="scatter"?e.jsx(y,{config:a,className:x,children:e.jsxs(_,{children:[e.jsx(R,{vertical:!1}),e.jsx($,{type:"number",dataKey:n,name:String(a[n]?.label||n),tickLine:!1,axisLine:!1,interval:d?Math.ceil(s.length/5):0}),e.jsx(E,{type:"number",dataKey:l[0]?.dataKey||"value",name:String(a[l[0]?.dataKey]?.label||l[0]?.dataKey),tickLine:!1,axisLine:!1}),e.jsx(V,{type:"number",range:[60,400]}),e.jsx(b,{content:e.jsx(v,{})}),e.jsx(C,{content:e.jsx(K,{}),...d&&{verticalAlign:"bottom",wrapperStyle:{fontSize:"11px",paddingTop:"8px"}}}),l.map((t,c)=>{const u=k(),f=L(a[t.dataKey]?.color||u[c%u.length]);return e.jsx(ee,{name:a[t.dataKey]?.label||t.dataKey,data:s,fill:f},t.dataKey)})]})}):r==="combo"?e.jsx(y,{config:a,className:x,children:e.jsxs(S,{data:s,children:[e.jsx(R,{vertical:!1}),e.jsx($,{dataKey:n,tickLine:!1,tickMargin:10,axisLine:!1,interval:d?Math.ceil(s.length/5):0,tickFormatter:t=>t&&typeof t=="string"?t.slice(0,3):t}),e.jsx(E,{yAxisId:"left",tickLine:!1,axisLine:!1}),e.jsx(E,{yAxisId:"right",orientation:"right",tickLine:!1,axisLine:!1}),e.jsx(b,{content:e.jsx(v,{})}),e.jsx(C,{content:e.jsx(K,{}),...d&&{verticalAlign:"bottom",wrapperStyle:{fontSize:"11px",paddingTop:"8px"}}}),l.map((t,c)=>{const u=L(a[t.dataKey]?.color||I),f=t.chartType||(c===0?"bar":"line"),h=f==="bar"?"left":"right";return f==="line"?e.jsx(T,{yAxisId:h,type:"monotone",dataKey:t.dataKey,stroke:u,strokeWidth:2,dot:!1},t.dataKey):f==="area"?e.jsx(W,{yAxisId:h,type:"monotone",dataKey:t.dataKey,fill:u,stroke:u,fillOpacity:.4},t.dataKey):e.jsx(B,{yAxisId:h,dataKey:t.dataKey,fill:u,radius:4},t.dataKey)})]})}):e.jsx(y,{config:a,className:x,children:e.jsxs(w,{data:s,children:[e.jsx(R,{vertical:!1}),e.jsx($,{dataKey:n,tickLine:!1,tickMargin:10,axisLine:!1,interval:d?Math.ceil(s.length/5):0,tickFormatter:t=>t&&typeof t=="string"?t.slice(0,3):t}),e.jsx(b,{content:e.jsx(v,{})}),e.jsx(C,{content:e.jsx(K,{}),...d&&{verticalAlign:"bottom",wrapperStyle:{fontSize:"11px",paddingTop:"8px"}}}),l.map(t=>{const c=L(a[t.dataKey]?.color||I);return r==="bar"?e.jsx(B,{dataKey:t.dataKey,fill:c,radius:4},t.dataKey):r==="line"?e.jsx(T,{type:"monotone",dataKey:t.dataKey,stroke:c,strokeWidth:2,dot:!1},t.dataKey):r==="area"?e.jsx(W,{type:"monotone",dataKey:t.dataKey,fill:c,stroke:c,fillOpacity:.4},t.dataKey):null})]})})}export{ce as default};
@@ -0,0 +1 @@
1
+ import{h as L,i as E,r as t,j as e}from"./vendor-react-9M-xu2bR.js";import{B as o,aa as P,G as p,C as B,v as I}from"./ui-components-BxvihT61.js";import"./framework-BM176iet.js";import{b as d}from"./vendor-ui-utils-3tkeUVaX.js";import{b as F,r as w}from"./index-CTBPkbPG.js";import{m as M,S as Q,ai as y,$ as G,at as R,bc as T,bd as q,Q as O,l as H}from"./vendor-icons-ndICq8DC.js";import"./vendor-radix-C6qchjxv.js";import"./vendor-i18n-E3-WitRV.js";import"./vendor-charts-BLNOCZWl.js";import"./infrastructure-n1j_TN6w.js";import"./vendor-objectstack-YKtcdalX.js";import"./vendor-zod-DxQVy2_o.js";import"./plugins-core-qwgXbAqa.js";import"./vendor-dndkit-CX1oDZqy.js";import"./plugins-views-CveFN6PV.js";import"./data-adapter-rvE3xy2B.js";import"./ui-layout-C6KWQtRO.js";function re(){const u=L(),{appName:g}=E(),j=g?`/apps/${g}`:"",{apps:C,refresh:i}=F(),[h,k]=t.useState(""),[n,x]=t.useState(new Set),[f,b]=t.useState(null),[m,c]=t.useState(!1),l=(C||[]).filter(s=>{if(!h)return!0;const a=h.toLowerCase();return(s.name||"").toLowerCase().includes(a)||(s.label||"").toLowerCase().includes(a)||(s.description||"").toLowerCase().includes(a)}),S=t.useCallback(s=>{x(a=>{const r=new Set(a);return r.has(s)?r.delete(s):r.add(s),r})},[]),$=t.useCallback(()=>{n.size===l.length?x(new Set):x(new Set(l.map(s=>s.name)))},[n.size,l]),z=t.useCallback(async s=>{c(!0);try{const a=s.active===!1;d.success(`${s.label||s.name} ${a?"enabled":"disabled"}`),await i()}catch{d.error("Failed to toggle app status")}finally{c(!1)}},[i]),A=t.useCallback(async s=>{c(!0);try{d.success(`${s.label||s.name} set as default`),await i()}catch{d.error("Failed to set default app")}finally{c(!1)}},[i]),D=t.useCallback(async s=>{if(f!==s.name){b(s.name);return}c(!0);try{d.success(`${s.label||s.name} deleted`),b(null),await i()}catch{d.error("Failed to delete app")}finally{c(!1)}},[f,i]),v=t.useCallback(async s=>{c(!0);try{d.success(`${n.size} apps ${s?"enabled":"disabled"}`),x(new Set),await i()}catch{d.error("Bulk operation failed")}finally{c(!1)}},[n,i]);return e.jsxs("div",{className:"flex flex-col gap-4 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("h1",{className:"text-xl sm:text-2xl font-bold tracking-tight",children:"Applications"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Manage all configured applications"})]}),e.jsxs(o,{onClick:()=>u(`${j}/create-app`),"data-testid":"create-app-btn",children:[e.jsx(M,{className:"h-4 w-4 mr-2"}),"New App"]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center gap-2",children:[e.jsxs("div",{className:"relative flex-1 max-w-sm",children:[e.jsx(Q,{className:"pointer-events-none absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx(P,{placeholder:"Search apps...",value:h,onChange:s=>k(s.target.value),className:"pl-8","data-testid":"app-search-input"})]}),n.size>0&&e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(p,{variant:"secondary",children:[n.size," selected"]}),e.jsx(o,{variant:"outline",size:"sm",onClick:()=>v(!0),disabled:m,children:"Enable"}),e.jsx(o,{variant:"outline",size:"sm",onClick:()=>v(!1),disabled:m,children:"Disable"})]})]}),l.length>0&&e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx("input",{type:"checkbox",checked:n.size===l.length&&l.length>0,onChange:$,className:"rounded border-input","aria-label":"Select all apps"}),e.jsxs("span",{children:["Select all (",l.length,")"]})]}),l.length===0?e.jsxs("div",{className:"text-center py-12 text-muted-foreground","data-testid":"no-apps-message",children:[e.jsx(y,{className:"h-12 w-12 mx-auto mb-3 opacity-30"}),e.jsx("p",{children:"No apps found."})]}):e.jsx("div",{className:"grid gap-3",children:l.map(s=>{const a=s.active!==!1,r=s.isDefault===!0,N=f===s.name;return e.jsx(B,{className:a?"":"opacity-60","data-testid":`app-card-${s.name}`,children:e.jsxs(I,{className:"flex items-center gap-3 py-3 px-4",children:[e.jsx("input",{type:"checkbox",checked:n.has(s.name),onChange:()=>S(s.name),className:"rounded border-input shrink-0","aria-label":`Select ${s.label||s.name}`}),e.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-primary/10 text-primary",children:e.jsx(y,{className:"h-4 w-4"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"font-medium truncate",children:w(s.label)||s.name}),r&&e.jsx(p,{variant:"default",className:"text-xs",children:"Default"}),e.jsx(p,{variant:a?"secondary":"outline",className:"text-xs",children:a?"Active":"Inactive"})]}),s.description&&e.jsx("p",{className:"text-xs text-muted-foreground truncate",children:w(s.description)})]}),e.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[e.jsx(o,{variant:"ghost",size:"icon",title:"Open app",onClick:()=>u(`/apps/${s.name}`),children:e.jsx(G,{className:"h-4 w-4"})}),e.jsx(o,{variant:"ghost",size:"icon",title:"Edit app",onClick:()=>u(`${j}/edit-app/${s.name}`),children:e.jsx(R,{className:"h-4 w-4"})}),e.jsx(o,{variant:"ghost",size:"icon",title:a?"Disable app":"Enable app",onClick:()=>z(s),disabled:m,children:a?e.jsx(T,{className:"h-4 w-4"}):e.jsx(q,{className:"h-4 w-4"})}),e.jsx(o,{variant:"ghost",size:"icon",title:"Set as default",onClick:()=>A(s),disabled:m||r,children:e.jsx(O,{className:`h-4 w-4 ${r?"fill-current text-yellow-500":""}`})}),e.jsx(o,{variant:"ghost",size:"icon",title:N?"Click again to confirm delete":"Delete app",onClick:()=>D(s),disabled:m,className:N?"text-destructive":"",children:e.jsx(H,{className:"h-4 w-4"})})]})]})},s.name)})})]})}export{re as AppManagementPage};
@@ -0,0 +1 @@
1
+ import{r,j as e}from"./vendor-react-9M-xu2bR.js";import{C as u,v as h,G as f}from"./ui-components-BxvihT61.js";import"./framework-BM176iet.js";import{b as j}from"./vendor-ui-utils-3tkeUVaX.js";import{a as g}from"./index-CTBPkbPG.js";import{s as N}from"./systemObjects-DSpePIIy.js";import{bb as n,L as b}from"./vendor-icons-ndICq8DC.js";import"./vendor-radix-C6qchjxv.js";import"./vendor-i18n-E3-WitRV.js";import"./vendor-charts-BLNOCZWl.js";import"./infrastructure-n1j_TN6w.js";import"./vendor-objectstack-YKtcdalX.js";import"./vendor-zod-DxQVy2_o.js";import"./plugins-core-qwgXbAqa.js";import"./vendor-dndkit-CX1oDZqy.js";import"./plugins-views-CveFN6PV.js";import"./data-adapter-rvE3xy2B.js";import"./ui-layout-C6KWQtRO.js";const m=N.find(s=>s.name==="sys_audit_log"),i=m.views[0].columns;function V(){const s=g(),[o,c]=r.useState([]),[x,d]=r.useState(!0),l=r.useCallback(async()=>{if(s){d(!0);try{const t=await s.find("sys_audit_log",{$orderby:{createdAt:"desc"}});c(t.data||[])}catch{j.error("Failed to load audit logs")}finally{d(!1)}}},[s]);return r.useEffect(()=>{l()},[l]),e.jsxs("div",{className:"flex flex-col gap-4 sm:gap-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[e.jsx("div",{className:"bg-primary/10 p-2 rounded-md shrink-0",children:e.jsx(n,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h1",{className:"text-xl sm:text-2xl font-bold tracking-tight",children:"Audit Log"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:"View system activity and user actions"})]})]}),e.jsx(u,{children:e.jsx(h,{className:"p-0",children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsx("tr",{className:"border-b bg-muted/50",children:i.map(t=>{const a=m.fields.find(p=>p.name===t);return e.jsx("th",{className:"h-10 px-3 sm:px-4 text-left font-medium text-muted-foreground whitespace-nowrap",children:a?.label??t},t)})})}),e.jsx("tbody",{children:x?e.jsx("tr",{children:e.jsx("td",{className:"p-6 text-center",colSpan:i.length,children:e.jsx(b,{className:"h-6 w-6 animate-spin mx-auto text-muted-foreground"})})}):o.length===0?e.jsx("tr",{children:e.jsx("td",{className:"p-4 sm:p-6 text-center text-sm text-muted-foreground",colSpan:i.length,children:e.jsxs("div",{className:"flex flex-col items-center gap-2 py-4",children:[e.jsx(n,{className:"h-8 w-8 text-muted-foreground/50"}),e.jsx("p",{children:"No audit logs found."}),e.jsx(f,{variant:"secondary",className:"text-xs",children:"Read-only"})]})})}):o.map(t=>e.jsx("tr",{className:"border-b hover:bg-muted/50 transition-colors",children:i.map(a=>e.jsx("td",{className:"h-10 px-3 sm:px-4 whitespace-nowrap",children:String(t[a]??"")},a))},t.id||t._id))})]})})})})]})}export{V as AuditLogPage};
@@ -0,0 +1 @@
1
+ import{j as e}from"./vendor-react-9M-xu2bR.js";function t({children:s}){return e.jsxs("div",{className:"flex min-h-screen",children:[e.jsx("div",{className:"hidden lg:flex lg:w-1/2 items-center justify-center bg-primary p-12",children:e.jsxs("div",{className:"max-w-md space-y-6 text-primary-foreground",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-10 w-10",children:e.jsx("path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3"})}),e.jsx("span",{className:"text-2xl font-bold",children:"ObjectStack"})]}),e.jsx("h2",{className:"text-3xl font-bold leading-tight",children:"Build powerful business applications, faster."}),e.jsx("p",{className:"text-lg opacity-90",children:"The universal platform for enterprise data management, workflows, and analytics."})]})}),e.jsx("div",{className:"flex w-full lg:w-1/2 items-center justify-center bg-background px-6 py-12",children:s})]})}export{t as A};
@@ -1 +1 @@
1
- import{j as r}from"./vendor-react-Dy_xkBQQ.js";import{a as l,B as n,C as d,X as f,Y as p,T as x,L as u,b as c}from"./vendor-charts-CSvoW-yB.js";import"./vendor-ui-utils-h6yAcIi9.js";import"./vendor-i18n-D5KbMT7w.js";function y({data:e=[],dataKey:s="value",xAxisKey:a="name",height:t=400,className:i="",color:o="hsl(var(--primary))"}){return r.jsx("div",{className:`p-2 sm:p-3 md:p-4 rounded-xl border border-border bg-card/40 backdrop-blur-sm shadow-lg shadow-background/5 ${i}`,children:r.jsx(l,{width:"100%",height:t,children:r.jsxs(n,{data:e,margin:{top:10,right:10,left:10,bottom:5},children:[r.jsxs("defs",{children:[r.jsxs("linearGradient",{id:"barGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[r.jsx("stop",{offset:"0%",stopColor:o,stopOpacity:1}),r.jsx("stop",{offset:"90%",stopColor:o,stopOpacity:.6}),r.jsx("stop",{offset:"100%",stopColor:o,stopOpacity:.3})]}),r.jsxs("filter",{id:"glow",height:"130%",children:[r.jsx("feGaussianBlur",{in:"SourceAlpha",stdDeviation:"3",result:"blur"}),r.jsx("feOffset",{in:"blur",dx:"0",dy:"0",result:"offsetBlur"}),r.jsx("feFlood",{floodColor:o,floodOpacity:"0.5",result:"offsetColor"}),r.jsx("feComposite",{in:"offsetColor",in2:"offsetBlur",operator:"in",result:"offsetBlur"}),r.jsxs("feMerge",{children:[r.jsx("feMergeNode",{in:"offsetBlur"}),r.jsx("feMergeNode",{in:"SourceGraphic"})]})]})]}),r.jsx(d,{strokeDasharray:"3 3",stroke:"hsl(var(--border))",vertical:!1}),r.jsx(f,{dataKey:a,tick:{fill:"hsl(var(--muted-foreground))",fontSize:12,fontFamily:"monospace"},tickLine:!1,axisLine:{stroke:"hsl(var(--border))"},dy:10}),r.jsx(p,{tick:{fill:"hsl(var(--muted-foreground))",fontSize:12,fontFamily:"monospace"},tickLine:!1,axisLine:!1}),r.jsx(x,{cursor:{fill:"hsl(var(--muted))",opacity:.2},contentStyle:{backgroundColor:"hsl(var(--popover))",borderColor:"hsl(var(--border))",color:"hsl(var(--popover-foreground))",borderRadius:"8px",fontFamily:"monospace",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1)"},itemStyle:{color:"hsl(var(--primary))"}}),r.jsx(u,{wrapperStyle:{paddingTop:"20px",fontFamily:"monospace"}}),r.jsx(c,{dataKey:s,fill:"url(#barGradient)",radius:[4,4,0,0],filter:"url(#glow)",animationDuration:1500})]})})})}export{y as default};
1
+ import{j as r}from"./vendor-react-9M-xu2bR.js";import{a as l,B as n,C as d,X as f,Y as p,T as x,L as u,b as c}from"./vendor-charts-BLNOCZWl.js";import"./vendor-ui-utils-3tkeUVaX.js";import"./vendor-i18n-E3-WitRV.js";function y({data:e=[],dataKey:s="value",xAxisKey:a="name",height:t=400,className:i="",color:o="hsl(var(--primary))"}){return r.jsx("div",{className:`p-2 sm:p-3 md:p-4 rounded-xl border border-border bg-card/40 backdrop-blur-sm shadow-lg shadow-background/5 ${i}`,children:r.jsx(l,{width:"100%",height:t,children:r.jsxs(n,{data:e,margin:{top:10,right:10,left:10,bottom:5},children:[r.jsxs("defs",{children:[r.jsxs("linearGradient",{id:"barGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[r.jsx("stop",{offset:"0%",stopColor:o,stopOpacity:1}),r.jsx("stop",{offset:"90%",stopColor:o,stopOpacity:.6}),r.jsx("stop",{offset:"100%",stopColor:o,stopOpacity:.3})]}),r.jsxs("filter",{id:"glow",height:"130%",children:[r.jsx("feGaussianBlur",{in:"SourceAlpha",stdDeviation:"3",result:"blur"}),r.jsx("feOffset",{in:"blur",dx:"0",dy:"0",result:"offsetBlur"}),r.jsx("feFlood",{floodColor:o,floodOpacity:"0.5",result:"offsetColor"}),r.jsx("feComposite",{in:"offsetColor",in2:"offsetBlur",operator:"in",result:"offsetBlur"}),r.jsxs("feMerge",{children:[r.jsx("feMergeNode",{in:"offsetBlur"}),r.jsx("feMergeNode",{in:"SourceGraphic"})]})]})]}),r.jsx(d,{strokeDasharray:"3 3",stroke:"hsl(var(--border))",vertical:!1}),r.jsx(f,{dataKey:a,tick:{fill:"hsl(var(--muted-foreground))",fontSize:12,fontFamily:"monospace"},tickLine:!1,axisLine:{stroke:"hsl(var(--border))"},dy:10}),r.jsx(p,{tick:{fill:"hsl(var(--muted-foreground))",fontSize:12,fontFamily:"monospace"},tickLine:!1,axisLine:!1}),r.jsx(x,{cursor:{fill:"hsl(var(--muted))",opacity:.2},contentStyle:{backgroundColor:"hsl(var(--popover))",borderColor:"hsl(var(--border))",color:"hsl(var(--popover-foreground))",borderRadius:"8px",fontFamily:"monospace",boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1)"},itemStyle:{color:"hsl(var(--primary))"}}),r.jsx(u,{wrapperStyle:{paddingTop:"20px",fontFamily:"monospace"}}),r.jsx(c,{dataKey:s,fill:"url(#barGradient)",radius:[4,4,0,0],filter:"url(#glow)",animationDuration:1500})]})})})}export{y as default};
@@ -0,0 +1 @@
1
+ import{h as C,i as v,r as e,j as n}from"./vendor-react-9M-xu2bR.js";import{AppCreationWizard as x}from"./index-Dv78M4Xq.js";import{z as S}from"./framework-BM176iet.js";import"./vendor-objectstack-YKtcdalX.js";import{b,a as y}from"./index-CTBPkbPG.js";import{b as s}from"./vendor-ui-utils-3tkeUVaX.js";import"./vendor-icons-ndICq8DC.js";import"./infrastructure-n1j_TN6w.js";import"./vendor-i18n-E3-WitRV.js";import"./vendor-zod-DxQVy2_o.js";import"./ui-components-BxvihT61.js";import"./vendor-radix-C6qchjxv.js";import"./vendor-charts-BLNOCZWl.js";import"./plugins-core-qwgXbAqa.js";import"./vendor-dndkit-CX1oDZqy.js";import"./plugins-views-CveFN6PV.js";import"./data-adapter-rvE3xy2B.js";import"./ui-layout-C6KWQtRO.js";const i="objectui-app-wizard-draft";function K(){const t=C(),{appName:r}=v(),{objects:l,refresh:p}=b(),c=y(),f=(l||[]).map(a=>({name:a.name,label:a.label||a.name,icon:a.icon,selected:!1})),u=e.useCallback(()=>{try{const a=localStorage.getItem(i);if(a)return JSON.parse(a)}catch{}},[]),d=e.useCallback(async a=>{try{const o=S(a),m=c?.getClient();m&&await m.meta.saveItem("app",a.name,o),localStorage.removeItem(i),s.success(`Application "${a.title}" created successfully`),await p?.(),t(`/apps/${a.name}`)}catch(o){s.error(o?.message||"Failed to create application")}},[t,p,c]),g=e.useCallback(()=>{t(r?`/apps/${r}`:"/")},[t,r]),h=e.useCallback(a=>{try{localStorage.setItem(i,JSON.stringify(a)),s.info("Draft saved")}catch{}},[]);return n.jsx("div",{className:"mx-auto max-w-4xl py-8 px-4","data-testid":"create-app-page",children:n.jsx(x,{availableObjects:f,initialDraft:u(),onComplete:d,onCancel:g,onSaveDraft:h})})}export{K as CreateAppPage};
@@ -0,0 +1 @@
1
+ import{h as j,i as v,r as s,j as a}from"./vendor-react-9M-xu2bR.js";import{DashboardEditor as w}from"./index-Dv78M4Xq.js";import{b as h}from"./vendor-ui-utils-3tkeUVaX.js";import{a as k,b as D}from"./index-CTBPkbPG.js";import{A as E}from"./vendor-icons-ndICq8DC.js";import"./framework-BM176iet.js";import"./vendor-objectstack-YKtcdalX.js";import"./vendor-zod-DxQVy2_o.js";import"./ui-components-BxvihT61.js";import"./vendor-radix-C6qchjxv.js";import"./vendor-i18n-E3-WitRV.js";import"./vendor-charts-BLNOCZWl.js";import"./infrastructure-n1j_TN6w.js";import"./plugins-core-qwgXbAqa.js";import"./vendor-dndkit-CX1oDZqy.js";import"./plugins-views-CveFN6PV.js";import"./data-adapter-rvE3xy2B.js";import"./ui-layout-C6KWQtRO.js";function z(){const b=j(),{dashboardName:t}=v(),d=k(),{dashboards:f,refresh:u}=D(),r=f?.find(e=>e.name===t),[i,x]=s.useState(()=>r||{type:"dashboard",name:t??"",title:t??"",columns:2,widgets:[]}),p=s.useRef(i);p.current=i;const n=s.useCallback(async e=>{try{if(d)return await d.update("sys_dashboard",t,e),u().catch(()=>{}),!0}catch{}return!1},[d,t,u]),l=s.useCallback(async e=>{x(e),await n(e)},[n]);s.useEffect(()=>{const e=o=>{(o.ctrlKey||o.metaKey)&&o.key==="s"&&(o.preventDefault(),n(p.current).then(c=>{c&&h.success("Dashboard saved")}))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[n]);const g=s.useCallback(e=>{const o=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),c=URL.createObjectURL(o),m=document.createElement("a");m.href=c,m.download=`${t||"dashboard"}.json`,m.click(),URL.revokeObjectURL(c),h.success("Dashboard schema exported")},[t]),y=s.useCallback(e=>{h.success("Dashboard schema imported"),l(e)},[l]);return r?a.jsxs("div",{className:"h-full flex flex-col","data-testid":"dashboard-design-page",children:[a.jsxs("div",{className:"flex items-center gap-3 border-b px-4 py-3 sm:px-6",children:[a.jsx("button",{type:"button",onClick:()=>b(-1),className:"rounded p-1.5 text-muted-foreground hover:text-foreground","aria-label":"Go back","data-testid":"dashboard-design-back",children:a.jsx(E,{className:"h-4 w-4"})}),a.jsxs("h1",{className:"text-lg font-semibold tracking-tight truncate",children:["Edit Dashboard: ",r.label||r.title||t]})]}),a.jsx("div",{className:"flex-1 overflow-auto p-4 sm:p-6",children:a.jsx(w,{schema:i,onChange:l,onExport:g,onImport:y})})]}):a.jsxs("div",{className:"h-full flex items-center justify-center text-muted-foreground",children:['Dashboard "',t,'" not found']})}export{z as DashboardDesignPage};
@@ -0,0 +1 @@
1
+ import{j as e,i as X,r as i}from"./vendor-react-9M-xu2bR.js";import{a as J,W as Q,b as Z}from"./plugins-views-CveFN6PV.js";import{p as m,b7 as ee,b8 as te,b9 as ae,B as se}from"./ui-components-BxvihT61.js";import"./framework-BM176iet.js";import{u as re}from"./infrastructure-n1j_TN6w.js";import"./vendor-ui-utils-3tkeUVaX.js";import{u as ne,a as le,b as ie,r as F,M as oe}from"./index-CTBPkbPG.js";import{aX as de,u as ce,aY as ue,b5 as me,b6 as he,b7 as ge,ai as fe,m as be,at as pe,l as xe}from"./vendor-icons-ndICq8DC.js";import"./vendor-charts-BLNOCZWl.js";import"./vendor-i18n-E3-WitRV.js";import"./vendor-radix-C6qchjxv.js";import"./vendor-objectstack-YKtcdalX.js";import"./vendor-zod-DxQVy2_o.js";import"./plugins-core-qwgXbAqa.js";import"./vendor-dndkit-CX1oDZqy.js";import"./data-adapter-rvE3xy2B.js";import"./ui-layout-C6KWQtRO.js";function je({cards:t=6}){return e.jsxs("div",{className:"w-full space-y-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(m,{className:"h-7 w-56"}),e.jsx(m,{className:"h-4 w-80"})]}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:Array.from({length:4}).map((d,c)=>e.jsxs("div",{className:"rounded-lg border p-4 space-y-2",children:[e.jsx(m,{className:"h-4 w-20"}),e.jsx(m,{className:"h-8 w-24"}),e.jsx(m,{className:"h-3 w-16"})]},`stat-${c}`))}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:Array.from({length:t}).map((d,c)=>e.jsxs("div",{className:"rounded-lg border p-4 space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(m,{className:"h-5 w-32"}),e.jsx(m,{className:"h-5 w-5 rounded-full"})]}),e.jsx(m,{className:"h-40 w-full"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(m,{className:"h-3 w-16"}),e.jsx(m,{className:"h-3 w-12"})]})]},`widget-${c}`))})]})}const T=[{type:"metric",label:"KPI Metric",Icon:ce},{type:"bar",label:"Bar Chart",Icon:ue},{type:"line",label:"Line Chart",Icon:me},{type:"pie",label:"Pie Chart",Icon:he},{type:"table",label:"Table",Icon:ge},{type:"grid",label:"Grid",Icon:fe}];let P=0;function V(){return P+=1,`widget_${Date.now()}_${P}`}function we(t){return!t.widgets?.length||!t.widgets.some(c=>!c.id)?t:{...t,widgets:t.widgets.map(c=>c.id?c:{...c,id:V()})}}function ve(t){const d=T.find(c=>c.type===t);return d?`New ${d.label}`:"New Widget"}function E(t){return{title:t.title??"",description:t.description??"",type:t.type??"metric",object:t.object??"",categoryField:t.categoryField??"",valueField:t.valueField??"",aggregate:t.aggregate??"count",layoutW:t.layout?.w??1,layoutH:t.layout?.h??1,colorVariant:t.colorVariant??"default",actionUrl:t.actionUrl??""}}function M(t,d){return{title:t.title,description:t.description,type:t.type,object:t.object,categoryField:t.categoryField,valueField:t.valueField,aggregate:t.aggregate,layout:{...d.layout||{},w:t.layoutW,h:t.layoutH},colorVariant:t.colorVariant,actionUrl:t.actionUrl}}function ye(t){return{columns:t.columns??3,gap:t.gap??4,rowHeight:String(t.rowHeight??"120"),refreshInterval:String(t.refreshInterval??"0"),title:t.title??"",showDescription:t.showDescription??!0,theme:t.theme??"auto"}}function He({dataSource:t}){const{dashboardName:d}=X(),{showDebug:c}=ne(),y=le(),{t:C}=re(),[A,S]=i.useState(!0),[x,N]=i.useState(!1),[o,j]=i.useState(null),[k,v]=i.useState(0);i.useEffect(()=>{S(!0),h(null),N(!1),j(null),queueMicrotask(()=>S(!1))},[d]);const{dashboards:L,objects:b,refresh:I}=ie(),u=L?.find(a=>a.name===d),[n,h]=i.useState(null);i.useEffect(()=>{x||h(null)},[u]);const g=i.useCallback(async a=>{try{y&&(await y.update("sys_dashboard",d,a),I().catch(()=>{}))}catch(l){console.warn("[DashboardView] Auto-save failed:",l)}},[y,d,I]),O=i.useCallback(()=>{h(we(u)),N(!0),v(a=>a+1)},[u]),D=i.useCallback(()=>{N(!1),j(null)},[]),$=i.useCallback(a=>{if(!n)return;const l=V(),s={id:l,title:ve(a),type:a,layout:{x:0,y:n.widgets?.length??0,w:n.columns??2,h:1}},r={...n,widgets:[...n.widgets||[],s]};h(r),g(r),j(l),v(p=>p+1)},[n,g]),H=i.useCallback(a=>{if(!n)return;const l={...n,widgets:n.widgets.filter(s=>s.id!==a)};h(l),g(l),o===a&&j(null)},[n,o,g]),_=i.useMemo(()=>ye(n||u),[k]),U=i.useCallback(a=>{if(!n)return;const l={...n,columns:a.columns,gap:a.gap,rowHeight:a.rowHeight,refreshInterval:Number(a.refreshInterval)||0,title:a.title,showDescription:a.showDescription,theme:a.theme};h(l),g(l),v(s=>s+1)},[n,g]),B=i.useCallback((a,l)=>{n&&h(s=>s&&(a==="refreshInterval"?{...s,refreshInterval:Number(l)||0}:{...s,[a]:l}))},[n]),f=n?.widgets?.find(a=>a.id===o),G=i.useMemo(()=>f?E(f):{},[o,k]),R=i.useCallback(a=>{if(!n||!o||!f)return;const l=M(a,f),s={...n,widgets:n.widgets.map(r=>r.id===o?{...r,...l}:r)};h(s),g(s),v(r=>r+1)},[n,o,f,g]),Y=i.useCallback((a,l)=>{o&&h(s=>{if(!s)return s;const r=s.widgets?.find(w=>w.id===o);if(!r)return s;const p=E(r);p[a]=l;const K=M(p,r);return{...s,widgets:s.widgets.map(w=>w.id===o?{...w,...K}:w)}})},[o]),q=i.useMemo(()=>{if(b?.length)return b.map(a=>({value:a.name,label:a.label||a.name}))},[b]),z=i.useMemo(()=>{const a=f?.object;if(!a||!b?.length)return;const l=b.find(r=>r.name===a);if(!l?.fields)return;const s=l.fields;return Array.isArray(s)?s.filter(r=>r.name).map(r=>({value:r.name,label:r.label||r.name})):Object.entries(s).map(([r,p])=>({value:r,label:p.label||r}))},[f?.object,b]);if(A)return e.jsx(je,{});if(!u)return e.jsx("div",{className:"h-full flex items-center justify-center p-8",children:e.jsxs(ee,{children:[e.jsx("div",{className:"mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-muted",children:e.jsx(de,{className:"h-6 w-6 text-muted-foreground"})}),e.jsx(te,{children:"Dashboard Not Found"}),e.jsxs(ae,{children:['The dashboard "',d,'" could not be found. It may have been removed or renamed.']})]})});const W=n||u;return e.jsxs("div",{className:"flex flex-col h-full overflow-hidden bg-background",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row justify-between sm:items-center gap-3 sm:gap-4 p-4 sm:p-6 border-b shrink-0",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("h1",{className:"text-lg sm:text-xl md:text-2xl font-bold tracking-tight truncate",children:F(u.label,C)||u.name}),u.description&&e.jsx("p",{className:"text-sm text-muted-foreground mt-1 line-clamp-2",children:F(u.description,C)})]}),e.jsxs("div",{className:"shrink-0 flex items-center gap-1.5",children:[x&&e.jsx("div",{className:"flex items-center gap-1 mr-2","data-testid":"dashboard-widget-toolbar",children:T.map(({type:a,label:l,Icon:s})=>e.jsxs("button",{type:"button","data-testid":`dashboard-add-${a}`,onClick:()=>$(a),className:"inline-flex items-center gap-1 rounded-md border border-input bg-background px-2 py-1.5 text-[11px] font-medium text-muted-foreground hover:bg-accent hover:text-accent-foreground",title:`Add ${l}`,children:[e.jsx(be,{className:"h-3 w-3"}),e.jsx(s,{className:"h-3 w-3"})]},a))}),e.jsxs("button",{type:"button",onClick:O,className:"inline-flex items-center gap-1.5 rounded-md border border-input bg-background px-2.5 py-1.5 text-xs font-medium text-muted-foreground shadow-sm hover:bg-accent hover:text-accent-foreground","data-testid":"dashboard-edit-button",children:[e.jsx(pe,{className:"h-3.5 w-3.5"}),"Edit"]})]})]}),e.jsxs("div",{className:"flex-1 overflow-hidden flex flex-col sm:flex-row relative",children:[e.jsx("div",{className:"flex-1 min-w-0 overflow-auto p-0 sm:p-6",children:e.jsx(J,{schema:W,dataSource:t,designMode:x,selectedWidgetId:o,onWidgetClick:j})}),f?e.jsx(Q,{open:x,onClose:D,config:G,onSave:R,onFieldChange:Y,availableObjects:q,availableFields:z,headerExtra:e.jsx(se,{size:"sm",variant:"ghost",onClick:()=>H(o),className:"h-7 w-7 p-0 text-destructive hover:text-destructive","data-testid":"widget-delete-button",title:"Delete widget",children:e.jsx(xe,{className:"h-3.5 w-3.5"})})},o):e.jsx(Z,{open:x,onClose:D,config:_,onSave:U,onFieldChange:B}),e.jsx(oe,{open:c,sections:[{title:"Dashboard Configuration",data:W}]})]})]})}export{He as DashboardView};
@@ -0,0 +1 @@
1
+ import{h as C,i as N,r,j as s}from"./vendor-react-9M-xu2bR.js";import{AppCreationWizard as A}from"./index-Dv78M4Xq.js";import{z as j}from"./framework-BM176iet.js";import"./vendor-objectstack-YKtcdalX.js";import{b as S,a as w}from"./index-CTBPkbPG.js";import{b as p}from"./vendor-ui-utils-3tkeUVaX.js";import"./vendor-icons-ndICq8DC.js";import"./infrastructure-n1j_TN6w.js";import"./vendor-i18n-E3-WitRV.js";import"./vendor-zod-DxQVy2_o.js";import"./ui-components-BxvihT61.js";import"./vendor-radix-C6qchjxv.js";import"./vendor-charts-BLNOCZWl.js";import"./plugins-core-qwgXbAqa.js";import"./vendor-dndkit-CX1oDZqy.js";import"./plugins-views-CveFN6PV.js";import"./data-adapter-rvE3xy2B.js";import"./ui-layout-C6KWQtRO.js";function K(){const o=C(),{appName:i,editAppName:d}=N(),{apps:u,objects:f,refresh:m}=S(),c=w(),n=d||i,a=u.find(t=>t.name===n),g=(f||[]).map(t=>({name:t.name,label:t.label||t.name,icon:t.icon,selected:a?.navigation?.some(e=>e.type==="object"&&e.objectName===t.name)??!1})),x=r.useMemo(()=>{if(a)return{name:a.name,title:a.title||a.label||"",description:a.description||"",icon:a.icon||"",layout:a.layout||"sidebar",navigation:a.navigation||[],branding:{logo:a.branding?.logo||a.logo||"",primaryColor:a.branding?.primaryColor||"#3b82f6",favicon:a.branding?.favicon||a.favicon||""}}},[a]),b=r.useCallback(async t=>{try{const e=j(t),y={...a,...e},l=c?.getClient();l&&await l.meta.saveItem("app",t.name,y),p.success(`Application "${t.title}" updated successfully`),await m?.(),o(`/apps/${t.name}`)}catch(e){p.error(e?.message||"Failed to update application")}},[o,m,c,a]),v=r.useCallback(()=>{o(i?`/apps/${i}`:"/")},[o,i]),h=r.useCallback(t=>{try{localStorage.setItem(`objectui-edit-draft-${n}`,JSON.stringify(t)),p.info("Draft saved")}catch{}},[n]);return a?s.jsx("div",{className:"mx-auto max-w-4xl py-8 px-4","data-testid":"edit-app-page",children:s.jsx(A,{availableObjects:g,initialDraft:x,onComplete:b,onCancel:v,onSaveDraft:h})}):s.jsx("div",{className:"mx-auto max-w-4xl py-8 px-4 text-center","data-testid":"edit-app-not-found",children:s.jsxs("p",{className:"text-muted-foreground",children:['Application "',n,'" not found.']})})}export{K as EditAppPage};
@@ -0,0 +1 @@
1
+ import{j as t,L as a}from"./vendor-react-9M-xu2bR.js";import{u as e,F as i}from"./infrastructure-n1j_TN6w.js";import{A as n}from"./AuthPageLayout-9l5xWV_-.js";import"./vendor-i18n-E3-WitRV.js";const u=({href:o,className:s,children:r})=>t.jsx(a,{to:o,className:s,children:r});function d(){const{t:o}=e();return t.jsx(n,{children:t.jsx(i,{loginUrl:"/login",title:o("auth.forgotPassword.title"),description:o("auth.forgotPassword.description"),linkComponent:u,labels:{emailLabel:o("auth.forgotPassword.emailLabel"),emailPlaceholder:o("auth.forgotPassword.emailPlaceholder"),submitButton:o("auth.forgotPassword.submitButton"),submittingButton:o("auth.forgotPassword.submittingButton"),successTitle:o("auth.forgotPassword.successTitle"),successDescription:o("auth.forgotPassword.successDescription"),backToSignInText:o("auth.forgotPassword.backToSignInText"),rememberPasswordText:o("auth.forgotPassword.rememberPasswordText"),signInText:o("auth.forgotPassword.signInText")}})})}export{d as ForgotPasswordPage};
@@ -0,0 +1 @@
1
+ import{r as f,j as e}from"./vendor-react-9M-xu2bR.js";import{u as H}from"./plugins-core-qwgXbAqa.js";import{u as G,a as M,P as U,D as Y,e as _,f as J,b as Q,d as V,S as W,v as X,C as Z}from"./vendor-dndkit-CX1oDZqy.js";import{B as L,G as R,C as ee,s as se,u as te,t as re,v as ae,aa as ne}from"./ui-components-BxvihT61.js";import"./framework-BM176iet.js";import"./vendor-ui-utils-3tkeUVaX.js";import{a as ie,C as oe,T as le,m as de}from"./vendor-icons-ndICq8DC.js";import"./infrastructure-n1j_TN6w.js";import"./vendor-i18n-E3-WitRV.js";import"./plugins-views-CveFN6PV.js";import"./vendor-charts-BLNOCZWl.js";import"./vendor-radix-C6qchjxv.js";import"./vendor-objectstack-YKtcdalX.js";import"./vendor-zod-DxQVy2_o.js";const z=(...s)=>s.filter(Boolean).join(" ");function ce(s,l){if(!l||l.length===0)return{};for(const t of l){const i=s[t.field];if(i==null)continue;let n=!1;const a=String(i);switch(t.operator){case"equals":n=a===String(t.value);break;case"not_equals":n=a!==String(t.value);break;case"contains":n=a.toLowerCase().includes(String(t.value).toLowerCase());break;case"in":n=Array.isArray(t.value)&&t.value.includes(a);break}if(n)return{...t.backgroundColor?{backgroundColor:t.backgroundColor}:{},...t.borderColor?{borderColor:t.borderColor}:{}}}return{}}function A({card:s,conditionalFormatting:l}){const{attributes:t,listeners:i,setNodeRef:n,transform:a,transition:p,isDragging:d}=V({id:s.id}),h={transform:Z.Transform.toString(a),transition:p,opacity:d?.5:void 0},o=ce(s,l);return e.jsx("div",{ref:n,style:h,...t,...i,children:e.jsxs(ee,{className:"mb-2 cursor-grab active:cursor-grabbing border-border bg-card/60 hover:border-primary/40 hover:shadow-lg hover:shadow-primary/10 transition-all duration-300 group",style:o,children:[s.coverImage&&e.jsx("div",{className:"w-full h-32 overflow-hidden rounded-t-lg",children:e.jsx("img",{src:s.coverImage,alt:"",className:"w-full h-full object-cover",loading:"lazy"})}),e.jsxs(se,{className:"p-4",children:[e.jsx(te,{className:"text-sm font-medium font-mono tracking-tight text-foreground group-hover:text-primary transition-colors",children:s.title}),s.description&&e.jsx(re,{className:"text-xs text-muted-foreground font-mono",children:s.description})]}),s.badges&&s.badges.length>0&&e.jsx(ae,{className:"p-4 pt-0",children:e.jsx("div",{className:"flex flex-wrap gap-1",children:s.badges.map((g,v)=>e.jsx(R,{variant:g.variant||"default",className:"text-xs",children:g.label},v))})})]})})}function ue({cards:s,parentRef:l,conditionalFormatting:t}){const i=H({count:s.length,getScrollElement:()=>l.current,estimateSize:()=>120,overscan:5});return e.jsx("div",{style:{height:`${i.getTotalSize()}px`,width:"100%",position:"relative"},children:i.getVirtualItems().map(n=>{const a=s[n.index];return e.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${n.start}px)`},children:e.jsx(A,{card:a,conditionalFormatting:t})},a.id)})})}function me({columnId:s,onAdd:l}){const[t,i]=f.useState(!1),[n,a]=f.useState(""),p=f.useRef(null),d=()=>{const o=n.trim();o&&(l(s,o),a("")),i(!1)},h=o=>{o.key==="Enter"?(o.preventDefault(),d()):o.key==="Escape"&&(a(""),i(!1))};return t?e.jsx("div",{className:"mt-2 space-y-2",children:e.jsx(ne,{ref:p,value:n,onChange:o=>a(o.target.value),onKeyDown:h,onBlur:d,placeholder:"Enter card title...",className:"text-sm",autoFocus:!0})}):e.jsxs(L,{variant:"ghost",size:"sm",className:"w-full mt-2 text-muted-foreground hover:text-foreground",onClick:()=>{i(!0),setTimeout(()=>p.current?.focus(),0)},children:[e.jsx(de,{className:"h-4 w-4 mr-1"}),"Add Card"]})}function fe({column:s,cards:l,onToggle:t,enableVirtual:i,quickAdd:n,onQuickAdd:a,conditionalFormatting:p}){const d=l||[],h=f.useRef(null),{setNodeRef:o}=V({id:s.id,data:{type:"column"}}),g=s.limit&&d.length>=s.limit,v=s.limit&&d.length>=s.limit*.8;return e.jsxs("div",{ref:o,className:z("flex flex-col flex-shrink-0 rounded-lg border border-border bg-card/20 backdrop-blur-sm shadow-xl transition-all",s.collapsed?"w-16":"w-80",s.className),children:[e.jsxs("div",{className:"p-4 border-b border-border/50 bg-muted/20 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[e.jsx(L,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>t(!s.collapsed),children:s.collapsed?e.jsx(ie,{className:"h-4 w-4"}):e.jsx(oe,{className:"h-4 w-4"})}),!s.collapsed&&e.jsxs(e.Fragment,{children:[e.jsx("h3",{className:"font-mono text-sm font-semibold tracking-wider text-primary/90 uppercase truncate",children:s.title}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:z("font-mono text-xs",g?"text-destructive":v?"text-yellow-500":"text-muted-foreground"),children:[d.length,s.limit&&` / ${s.limit}`]}),g&&e.jsx(R,{variant:"destructive",className:"text-xs",children:"Full"}),v&&!g&&e.jsx(le,{className:"h-3 w-3 text-yellow-500"})]})]})]}),s.collapsed&&e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsx("span",{className:"font-mono text-xs font-bold text-primary/90 [writing-mode:vertical-rl] rotate-180",children:s.title}),e.jsx(R,{variant:"secondary",className:"text-xs",children:d.length})]})]}),!s.collapsed&&e.jsxs("div",{ref:h,className:"flex-1 p-4 overflow-y-auto",style:{maxHeight:"600px"},children:[e.jsx(W,{items:d.map(m=>m.id),strategy:X,children:i?e.jsx(ue,{cards:d,parentRef:h,conditionalFormatting:p}):e.jsx("div",{className:"space-y-2",children:d.map(m=>e.jsx(A,{card:m,conditionalFormatting:p},m.id))})}),n&&a&&e.jsx(me,{columnId:s.id,onAdd:a})]})]})}function Ie({columns:s,onCardMove:l,onColumnToggle:t,enableVirtualScrolling:i=!1,virtualScrollThreshold:n=50,className:a,quickAdd:p,onQuickAdd:d,conditionalFormatting:h}){const[o,g]=f.useState(null),v=f.useMemo(()=>(s||[]).map(r=>({...r,cards:r.cards||[]})),[s]),[m,I]=f.useState(v);f.useEffect(()=>{I(v)},[v]);const K=G(M(U,{activationConstraint:{distance:8}})),O=r=>{const{active:c}=r,u=$(c.id);g(u)},P=r=>{const{active:c,over:u}=r;if(g(null),!u)return;const x=c.id,w=u.id;if(x===w)return;const b=B(x),y=B(w)||q(w);if(!(!b||!y))if(b.id===y.id){const j=[...b.cards],N=j.findIndex(C=>C.id===x),E=j.findIndex(C=>C.id===w),T=Q(j,N,E);I(C=>C.map(S=>S.id===b.id?{...S,cards:T}:S))}else{const j=[...b.cards],N=[...y.cards],E=j.findIndex(k=>k.id===x),C=w===y.id?N.length:N.findIndex(k=>k.id===w),[S]=j.splice(E,1);N.splice(C,0,S),I(k=>k.map(D=>D.id===b.id?{...D,cards:j}:D.id===y.id?{...D,cards:N}:D)),l&&l(x,b.id,y.id,C)}},$=f.useCallback(r=>{for(const c of m){const u=c.cards.find(x=>x.id===r);if(u)return u}return null},[m]),B=f.useCallback(r=>m.find(c=>c.cards.some(u=>u.id===r))||null,[m]),q=f.useCallback(r=>m.find(c=>c.id===r)||null,[m]),F=f.useCallback((r,c)=>{I(u=>u.map(x=>x.id===r?{...x,collapsed:c}:x)),t?.(r,c)},[t]);return e.jsxs(Y,{sensors:K,collisionDetection:_,onDragStart:O,onDragEnd:P,children:[e.jsx("div",{className:z("flex gap-4 overflow-x-auto p-4",a),children:m.map(r=>{const c=i&&r.cards.length>n;return e.jsx(fe,{column:r,cards:r.cards,onToggle:u=>F(r.id,u),enableVirtual:c,quickAdd:p,onQuickAdd:d,conditionalFormatting:h},r.id)})}),e.jsx(J,{children:o?e.jsx(A,{card:o,conditionalFormatting:h}):null})]})}export{Ie as KanbanEnhanced,Ie as default};
@@ -0,0 +1 @@
1
+ import{j as e,r as p}from"./vendor-react-9M-xu2bR.js";import{u as Q,a as V,T as F,P as ee,D as se,e as te,S as _,v as q,f as re,b as ae,d as G,C as ne}from"./vendor-dndkit-CX1oDZqy.js";import{C as oe,s as ie,u as le,t as de,v as ce,G as $,bp as ue,B as me,aa as fe}from"./ui-components-BxvihT61.js";import{p as xe,q as pe}from"./framework-BM176iet.js";import"./vendor-ui-utils-3tkeUVaX.js";import{m as ge}from"./vendor-icons-ndICq8DC.js";import"./vendor-radix-C6qchjxv.js";import"./vendor-i18n-E3-WitRV.js";import"./vendor-charts-BLNOCZWl.js";import"./infrastructure-n1j_TN6w.js";import"./vendor-objectstack-YKtcdalX.js";import"./vendor-zod-DxQVy2_o.js";const E=(...s)=>s.filter(Boolean).join(" "),T="Uncategorized";function he(s,c){if(!c||c.length===0)return{};for(const o of c){const u=s[o.field];if(u==null)continue;let r=!1;const m=String(u);switch(o.operator){case"equals":r=m===String(o.value);break;case"not_equals":r=m!==String(o.value);break;case"contains":r=m.toLowerCase().includes(String(o.value).toLowerCase());break;case"in":r=Array.isArray(o.value)&&o.value.includes(m);break}if(r)return{...o.backgroundColor?{backgroundColor:o.backgroundColor}:{},...o.borderColor?{borderColor:o.borderColor}:{}}}return{}}function O({card:s,onCardClick:c,conditionalFormatting:o}){const{attributes:u,listeners:r,setNodeRef:m,transform:f,transition:v,isDragging:g}=G({id:s.id}),n={transform:ne.Transform.toString(f),transition:v,opacity:g?.5:void 0},b=he(s,o);return e.jsx("div",{ref:m,style:n,...u,...r,role:"listitem","aria-label":s.title,onClick:()=>c?.(s),children:e.jsxs(oe,{className:"mb-2 cursor-grab active:cursor-grabbing border-border border-l-4 border-l-primary/40 bg-card/60 hover:border-primary/40 hover:shadow-lg hover:shadow-primary/10 transition-all duration-300 group touch-manipulation",style:b,children:[s.coverImage&&e.jsx("div",{className:"w-full h-32 overflow-hidden rounded-t-lg",children:e.jsx("img",{src:s.coverImage,alt:"",className:"w-full h-full object-cover",loading:"lazy"})}),e.jsxs(ie,{className:"p-2 sm:p-4",children:[e.jsx(le,{className:"text-xs sm:text-sm font-medium font-mono tracking-tight text-foreground group-hover:text-primary transition-colors",children:s.title}),s.description&&e.jsx(de,{className:"text-xs text-muted-foreground font-mono line-clamp-2 sm:line-clamp-none",children:s.description})]}),s.badges&&s.badges.length>0&&e.jsx(ce,{className:"p-2 sm:p-4 pt-0",children:e.jsx("div",{className:"flex flex-wrap gap-1",children:s.badges.map((w,C)=>e.jsx($,{variant:w.variant||"default",className:"text-xs",children:w.label},C))})})]})})}function ve({columnId:s,onAdd:c}){const[o,u]=p.useState(!1),[r,m]=p.useState(""),f=p.useRef(null),v=()=>{const n=r.trim();n&&(c(s,n),m("")),u(!1)},g=n=>{n.key==="Enter"?(n.preventDefault(),v()):n.key==="Escape"&&(m(""),u(!1))};return o?e.jsx("div",{className:"mt-2 space-y-2",children:e.jsx(fe,{ref:f,value:r,onChange:n=>m(n.target.value),onKeyDown:g,onBlur:v,placeholder:"Enter card title...",className:"text-sm",autoFocus:!0})}):e.jsxs(me,{variant:"ghost",size:"sm",className:"w-full mt-2 text-muted-foreground hover:text-foreground",onClick:()=>{u(!0),setTimeout(()=>f.current?.focus(),0)},children:[e.jsx(ge,{className:"h-4 w-4 mr-1"}),"Add Card"]})}function be({column:s,cards:c,onCardClick:o,quickAdd:u,onQuickAdd:r,conditionalFormatting:m}){const f=c||[],{setNodeRef:v}=G({id:s.id,data:{type:"column"}}),g=s.limit&&f.length>=s.limit;return e.jsxs("div",{ref:v,role:"group","aria-label":s.title,className:E("flex flex-col w-[85vw] sm:w-80 flex-shrink-0 rounded-lg border border-border bg-card/20 backdrop-blur-sm shadow-xl snap-start",s.className),children:[e.jsx("div",{className:"p-3 sm:p-4 border-b border-border/50 bg-muted/30 rounded-t-lg",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h3",{id:`kanban-col-${s.id}`,className:"font-mono text-xs sm:text-sm font-semibold tracking-wider text-primary/90 uppercase truncate",children:s.title}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs($,{variant:"secondary",className:"text-xs font-mono tabular-nums",children:[f.length,s.limit&&` / ${s.limit}`]}),g&&e.jsx($,{variant:"destructive",className:"text-xs",children:"Full"})]})]})}),e.jsxs(ue,{className:"flex-1 p-4",children:[e.jsx(_,{items:f.map(n=>n.id),strategy:q,children:e.jsxs("div",{className:"space-y-2",role:"list","aria-label":`${s.title} cards`,children:[f.length===0&&e.jsx("div",{className:"flex flex-col items-center justify-center py-8 text-muted-foreground/50",children:e.jsx("span",{className:"text-xs font-mono",children:"No cards"})}),f.map(n=>e.jsx(O,{card:n,onCardClick:o,conditionalFormatting:m},n.id))]})}),u&&r&&e.jsx(ve,{columnId:s.id,onAdd:r})]})]})}function je({children:s}){const c=pe();return e.jsx(e.Fragment,{children:s(c)})}function Le({columns:s,onCardMove:c,onCardClick:o,className:u,quickAdd:r,onQuickAdd:m,coverImageField:f,conditionalFormatting:v,swimlaneField:g}){return xe()?e.jsx(je,{children:b=>e.jsx(z,{columns:s,onCardMove:c,onCardClick:o,className:u,dnd:b,quickAdd:r,onQuickAdd:m,coverImageField:f,conditionalFormatting:v,swimlaneField:g})}):e.jsx(z,{columns:s,onCardMove:c,onCardClick:o,className:u,dnd:null,quickAdd:r,onQuickAdd:m,coverImageField:f,conditionalFormatting:v,swimlaneField:g})}function z({columns:s,onCardMove:c,onCardClick:o,className:u,dnd:r,quickAdd:m,onQuickAdd:f,coverImageField:v,conditionalFormatting:g,swimlaneField:n}){const[b,w]=p.useState(null),C=n?`objectui:kanban-collapsed:${n}`:null,[H,J]=p.useState(()=>{if(!C)return new Set;try{const t=localStorage.getItem(C);if(t){const i=JSON.parse(t);if(Array.isArray(i))return new Set(i.filter(a=>typeof a=="string"))}}catch{}return new Set}),A=p.useMemo(()=>(s||[]).map(t=>({...t,cards:t.cards||[]})),[s]),[x,B]=p.useState(A);p.useEffect(()=>{B(A)},[A]);const R=p.useMemo(()=>{if(!n)return null;const t=x.flatMap(a=>a.cards),i=new Set;return t.forEach(a=>{const l=a[n];i.add(l!=null?String(l):T)}),Array.from(i).sort()},[x,n]),M=p.useCallback(t=>{J(i=>{const a=new Set(i);if(a.has(t)?a.delete(t):a.add(t),C)try{localStorage.setItem(C,JSON.stringify([...a]))}catch{}return a})},[C]),U=Q(V(ee,{activationConstraint:{distance:5}}),V(F,{activationConstraint:{delay:200,tolerance:5}})),Z=t=>{const{active:i}=t,a=X(i.id);if(w(a),r&&a){const l=K(a.id);l&&r.startDrag({id:a.id,type:"kanban-card",data:a,sourceId:l.id})}},W=t=>{const{active:i,over:a}=t;if(w(null),!a){r&&r.endDrag();return}const l=i.id,h=a.id;if(l===h){r&&r.endDrag();return}const d=K(l),y=K(h)||Y(h);if(!d||!y){r&&r.endDrag();return}if(d.id===y.id){const N=[...d.cards],S=N.findIndex(j=>j.id===l),L=N.findIndex(j=>j.id===h),P=ae(N,S,L);B(j=>j.map(D=>D.id===d.id?{...D,cards:P}:D))}else{const N=[...d.cards],S=[...y.cards],L=N.findIndex(k=>k.id===l),j=h===y.id?S.length:S.findIndex(k=>k.id===h),[D]=N.splice(L,1);S.splice(j,0,D),B(k=>k.map(I=>I.id===d.id?{...I,cards:N}:I.id===y.id?{...I,cards:S}:I)),c&&c(l,d.id,y.id,j)}r&&r.endDrag(y.id)},X=p.useCallback(t=>{for(const i of x){const a=i.cards.find(l=>l.id===t);if(a)return a}return null},[x]),K=p.useCallback(t=>x.find(i=>i.cards.some(a=>a.id===t))||null,[x]),Y=p.useCallback(t=>x.find(i=>i.id===t)||null,[x]);return e.jsxs(se,{sensors:U,collisionDetection:te,onDragStart:Z,onDragEnd:W,children:[e.jsxs("div",{className:"flex sm:hidden items-center justify-between px-3 pb-2 text-xs text-muted-foreground",children:[e.jsxs("span",{children:[x.length," columns"]}),e.jsx("span",{children:"← Swipe to navigate →"})]}),R?e.jsxs("div",{className:E("flex flex-col gap-1 p-2 sm:p-4 min-w-0 overflow-hidden",u),role:"region","aria-label":"Kanban board with swimlanes",children:[e.jsx("div",{className:"flex gap-3 sm:gap-4 pl-36 sm:pl-44 overflow-x-auto",children:x.map(t=>e.jsxs("div",{className:"w-[85vw] sm:w-80 flex-shrink-0 text-center",children:[e.jsx("span",{className:"font-mono text-xs sm:text-sm font-semibold tracking-wider text-primary/90 uppercase",children:t.title}),e.jsxs("span",{className:"ml-2 font-mono text-xs text-muted-foreground",children:["(",t.cards.length,")"]})]},t.id))}),R.map(t=>{const i=H.has(t),a=x.reduce((l,h)=>l+h.cards.filter(d=>(d[n]!=null?String(d[n]):T)===t).length,0);return e.jsxs("div",{className:"border rounded-lg bg-muted/10",children:[e.jsxs("button",{className:"w-full flex items-center gap-2 px-3 py-2 text-left hover:bg-muted/30 transition-colors",onClick:()=>M(t),"aria-expanded":!i,children:[e.jsx("span",{className:E("transition-transform text-xs",i?"":"rotate-90"),children:"▶"}),e.jsx("span",{className:"font-mono text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:t}),e.jsxs("span",{className:"font-mono text-xs text-muted-foreground",children:["(",a,")"]})]}),!i&&e.jsx("div",{className:"flex gap-3 sm:gap-4 overflow-x-auto px-2 pb-3 pl-36 sm:pl-44",children:x.map(l=>{const h=l.cards.filter(d=>(d[n]!=null?String(d[n]):T)===t);return e.jsx("div",{className:"w-[85vw] sm:w-80 flex-shrink-0 min-h-[60px] rounded-md bg-card/20 p-2",children:e.jsx(_,{items:h.map(d=>d.id),strategy:q,children:e.jsx("div",{className:"space-y-2",role:"list","aria-label":`${l.title} - ${t} cards`,children:h.map(d=>e.jsx(O,{card:d,onCardClick:o,conditionalFormatting:g},d.id))})})},l.id)})})]},t)})]}):e.jsx("div",{className:E("flex gap-3 sm:gap-4 overflow-x-auto snap-x snap-mandatory p-2 sm:p-4 bg-muted/10 rounded-lg [-webkit-overflow-scrolling:touch] min-w-0",u),role:"region","aria-label":"Kanban board",children:x.map(t=>e.jsx(be,{column:t,cards:t.cards,onCardClick:o,quickAdd:m,onQuickAdd:f,conditionalFormatting:g},t.id))}),e.jsx(re,{children:e.jsx("div",{"aria-live":"assertive","aria-label":b?`Dragging ${b.title}`:void 0,children:b?e.jsx(O,{card:b,conditionalFormatting:g}):null})})]})}export{Le as default};
@@ -0,0 +1 @@
1
+ import{h as s,j as a,L as e}from"./vendor-react-9M-xu2bR.js";import{u as n,L as r}from"./infrastructure-n1j_TN6w.js";import{A as l}from"./AuthPageLayout-9l5xWV_-.js";import"./vendor-i18n-E3-WitRV.js";const u=({href:o,className:t,children:i})=>a.jsx(e,{to:o,className:t,children:i});function p(){const o=s(),{t}=n();return a.jsx(l,{children:a.jsx(r,{onSuccess:()=>o("/"),registerUrl:"/register",forgotPasswordUrl:"/forgot-password",title:t("auth.login.title"),description:t("auth.login.description"),linkComponent:u,labels:{emailLabel:t("auth.login.emailLabel"),emailPlaceholder:t("auth.login.emailPlaceholder"),passwordLabel:t("auth.login.passwordLabel"),passwordPlaceholder:t("auth.login.passwordPlaceholder"),forgotPasswordText:t("auth.login.forgotPasswordText"),submitButton:t("auth.login.submitButton"),submittingButton:t("auth.login.submittingButton"),noAccountText:t("auth.login.noAccountText"),signUpText:t("auth.login.signUpText")}})})}export{p as LoginPage};
@@ -1,7 +1,7 @@
1
- import{g as lr,j as Ve}from"./vendor-react-Dy_xkBQQ.js";function Ci(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Ei=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ii=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ai={};function pt(e,t){return(Ai.jsx?Ii:Ei).test(e)}const Ti=/[ \t\n\f\r]/g;function Pi(e){return typeof e=="object"?e.type==="text"?mt(e.value):!1:mt(e)}function mt(e){return e.replace(Ti,"")===""}class Ke{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ke.prototype.normal={};Ke.prototype.property={};Ke.prototype.space=void 0;function or(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ke(n,r,t)}function Fn(e){return e.toLowerCase()}class ee{constructor(t,n){this.attribute=n,this.property=t}}ee.prototype.attribute="";ee.prototype.booleanish=!1;ee.prototype.boolean=!1;ee.prototype.commaOrSpaceSeparated=!1;ee.prototype.commaSeparated=!1;ee.prototype.defined=!1;ee.prototype.mustUseProperty=!1;ee.prototype.number=!1;ee.prototype.overloadedBoolean=!1;ee.prototype.property="";ee.prototype.spaceSeparated=!1;ee.prototype.space=void 0;let vi=0;const _=Ae(),Y=Ae(),Rn=Ae(),E=Ae(),W=Ae(),Fe=Ae(),te=Ae();function Ae(){return 2**++vi}const _n=Object.freeze(Object.defineProperty({__proto__:null,boolean:_,booleanish:Y,commaOrSpaceSeparated:te,commaSeparated:Fe,number:E,overloadedBoolean:Rn,spaceSeparated:W},Symbol.toStringTag,{value:"Module"})),dn=Object.keys(_n);class Vn extends ee{constructor(t,n,r,i){let o=-1;if(super(t,n),gt(this,"space",i),typeof r=="number")for(;++o<dn.length;){const l=dn[o];gt(this,dn[o],(r&_n[l])===_n[l])}}}Vn.prototype.defined=!0;function gt(e,t,n){n&&(e[t]=n)}function _e(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Vn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Fn(r)]=r,n[Fn(o.attribute)]=r}return new Ke(t,n,e.space)}const ar=_e({properties:{ariaActiveDescendant:null,ariaAtomic:Y,ariaAutoComplete:null,ariaBusy:Y,ariaChecked:Y,ariaColCount:E,ariaColIndex:E,ariaColSpan:E,ariaControls:W,ariaCurrent:null,ariaDescribedBy:W,ariaDetails:null,ariaDisabled:Y,ariaDropEffect:W,ariaErrorMessage:null,ariaExpanded:Y,ariaFlowTo:W,ariaGrabbed:Y,ariaHasPopup:null,ariaHidden:Y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:W,ariaLevel:E,ariaLive:null,ariaModal:Y,ariaMultiLine:Y,ariaMultiSelectable:Y,ariaOrientation:null,ariaOwns:W,ariaPlaceholder:null,ariaPosInSet:E,ariaPressed:Y,ariaReadOnly:Y,ariaRelevant:null,ariaRequired:Y,ariaRoleDescription:W,ariaRowCount:E,ariaRowIndex:E,ariaRowSpan:E,ariaSelected:Y,ariaSetSize:E,ariaSort:null,ariaValueMax:E,ariaValueMin:E,ariaValueNow:E,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ur(e,t){return t in e?e[t]:t}function sr(e,t){return ur(e,t.toLowerCase())}const Di=_e({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fe,acceptCharset:W,accessKey:W,action:null,allow:null,allowFullScreen:_,allowPaymentRequest:_,allowUserMedia:_,alt:null,as:null,async:_,autoCapitalize:null,autoComplete:W,autoFocus:_,autoPlay:_,blocking:W,capture:null,charSet:null,checked:_,cite:null,className:W,cols:E,colSpan:null,content:null,contentEditable:Y,controls:_,controlsList:W,coords:E|Fe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_,defer:_,dir:null,dirName:null,disabled:_,download:Rn,draggable:Y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_,formTarget:null,headers:W,height:E,hidden:Rn,high:E,href:null,hrefLang:null,htmlFor:W,httpEquiv:W,id:null,imageSizes:null,imageSrcSet:null,inert:_,inputMode:null,integrity:null,is:null,isMap:_,itemId:null,itemProp:W,itemRef:W,itemScope:_,itemType:W,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_,low:E,manifest:null,max:null,maxLength:E,media:null,method:null,min:null,minLength:E,multiple:_,muted:_,name:null,nonce:null,noModule:_,noValidate:_,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:_,optimum:E,pattern:null,ping:W,placeholder:null,playsInline:_,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_,referrerPolicy:null,rel:W,required:_,reversed:_,rows:E,rowSpan:E,sandbox:W,scope:null,scoped:_,seamless:_,selected:_,shadowRootClonable:_,shadowRootDelegatesFocus:_,shadowRootMode:null,shape:null,size:E,sizes:null,slot:null,span:E,spellCheck:Y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:E,step:null,style:null,tabIndex:E,target:null,title:null,translate:null,type:null,typeMustMatch:_,useMap:null,value:Y,width:E,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:W,axis:null,background:null,bgColor:null,border:E,borderColor:null,bottomMargin:E,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_,declare:_,event:null,face:null,frame:null,frameBorder:null,hSpace:E,leftMargin:E,link:null,longDesc:null,lowSrc:null,marginHeight:E,marginWidth:E,noResize:_,noHref:_,noShade:_,noWrap:_,object:null,profile:null,prompt:null,rev:null,rightMargin:E,rules:null,scheme:null,scrolling:Y,standby:null,summary:null,text:null,topMargin:E,valueType:null,version:null,vAlign:null,vLink:null,vSpace:E,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_,disableRemotePlayback:_,prefix:null,property:null,results:E,security:null,unselectable:null},space:"html",transform:sr}),zi=_e({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:te,accentHeight:E,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:E,amplitude:E,arabicForm:null,ascent:E,attributeName:null,attributeType:null,azimuth:E,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:E,by:null,calcMode:null,capHeight:E,className:W,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:E,diffuseConstant:E,direction:null,display:null,dur:null,divisor:E,dominantBaseline:null,download:_,dx:null,dy:null,edgeMode:null,editable:null,elevation:E,enableBackground:null,end:null,event:null,exponent:E,externalResourcesRequired:null,fill:null,fillOpacity:E,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Fe,g2:Fe,glyphName:Fe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:E,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:E,horizOriginX:E,horizOriginY:E,id:null,ideographic:E,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:E,k:E,k1:E,k2:E,k3:E,k4:E,kernelMatrix:te,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:E,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:E,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:E,overlineThickness:E,paintOrder:null,panose1:null,path:null,pathLength:E,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:W,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:E,pointsAtY:E,pointsAtZ:E,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:te,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:te,rev:te,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:te,requiredFeatures:te,requiredFonts:te,requiredFormats:te,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:E,specularExponent:E,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:E,strikethroughThickness:E,string:null,stroke:null,strokeDashArray:te,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:E,strokeOpacity:E,strokeWidth:null,style:null,surfaceScale:E,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:te,tabIndex:E,tableValues:null,target:null,targetX:E,targetY:E,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:te,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:E,underlineThickness:E,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:E,values:null,vAlphabetic:E,vMathematical:E,vectorEffect:null,vHanging:E,vIdeographic:E,version:null,vertAdvY:E,vertOriginX:E,vertOriginY:E,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:E,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ur}),cr=_e({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),fr=_e({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:sr}),hr=_e({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Li={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Fi=/[A-Z]/g,dt=/-[a-z]/g,Ri=/^data[-\w.:]+$/i;function _i(e,t){const n=Fn(t);let r=t,i=ee;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ri.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(dt,Mi);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!dt.test(o)){let l=o.replace(Fi,Oi);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=Vn}return new i(r,t)}function Oi(e){return"-"+e.toLowerCase()}function Mi(e){return e.charAt(1).toUpperCase()}const Ni=or([ar,Di,cr,fr,hr],"html"),$n=or([ar,zi,cr,fr,hr],"svg");function Bi(e){return e.join(" ").trim()}var De={},yn,yt;function ji(){if(yt)return yn;yt=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,s=`
1
+ import{g as lr,j as Ve}from"./vendor-react-9M-xu2bR.js";function Ci(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Ei=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ii=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ai={};function pt(e,t){return(Ai.jsx?Ii:Ei).test(e)}const Ti=/[ \t\n\f\r]/g;function Pi(e){return typeof e=="object"?e.type==="text"?mt(e.value):!1:mt(e)}function mt(e){return e.replace(Ti,"")===""}class Ke{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ke.prototype.normal={};Ke.prototype.property={};Ke.prototype.space=void 0;function or(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ke(n,r,t)}function Fn(e){return e.toLowerCase()}class ee{constructor(t,n){this.attribute=n,this.property=t}}ee.prototype.attribute="";ee.prototype.booleanish=!1;ee.prototype.boolean=!1;ee.prototype.commaOrSpaceSeparated=!1;ee.prototype.commaSeparated=!1;ee.prototype.defined=!1;ee.prototype.mustUseProperty=!1;ee.prototype.number=!1;ee.prototype.overloadedBoolean=!1;ee.prototype.property="";ee.prototype.spaceSeparated=!1;ee.prototype.space=void 0;let vi=0;const _=Ae(),Y=Ae(),Rn=Ae(),E=Ae(),W=Ae(),Fe=Ae(),te=Ae();function Ae(){return 2**++vi}const _n=Object.freeze(Object.defineProperty({__proto__:null,boolean:_,booleanish:Y,commaOrSpaceSeparated:te,commaSeparated:Fe,number:E,overloadedBoolean:Rn,spaceSeparated:W},Symbol.toStringTag,{value:"Module"})),dn=Object.keys(_n);class Vn extends ee{constructor(t,n,r,i){let o=-1;if(super(t,n),gt(this,"space",i),typeof r=="number")for(;++o<dn.length;){const l=dn[o];gt(this,dn[o],(r&_n[l])===_n[l])}}}Vn.prototype.defined=!0;function gt(e,t,n){n&&(e[t]=n)}function _e(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Vn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Fn(r)]=r,n[Fn(o.attribute)]=r}return new Ke(t,n,e.space)}const ar=_e({properties:{ariaActiveDescendant:null,ariaAtomic:Y,ariaAutoComplete:null,ariaBusy:Y,ariaChecked:Y,ariaColCount:E,ariaColIndex:E,ariaColSpan:E,ariaControls:W,ariaCurrent:null,ariaDescribedBy:W,ariaDetails:null,ariaDisabled:Y,ariaDropEffect:W,ariaErrorMessage:null,ariaExpanded:Y,ariaFlowTo:W,ariaGrabbed:Y,ariaHasPopup:null,ariaHidden:Y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:W,ariaLevel:E,ariaLive:null,ariaModal:Y,ariaMultiLine:Y,ariaMultiSelectable:Y,ariaOrientation:null,ariaOwns:W,ariaPlaceholder:null,ariaPosInSet:E,ariaPressed:Y,ariaReadOnly:Y,ariaRelevant:null,ariaRequired:Y,ariaRoleDescription:W,ariaRowCount:E,ariaRowIndex:E,ariaRowSpan:E,ariaSelected:Y,ariaSetSize:E,ariaSort:null,ariaValueMax:E,ariaValueMin:E,ariaValueNow:E,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ur(e,t){return t in e?e[t]:t}function sr(e,t){return ur(e,t.toLowerCase())}const Di=_e({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fe,acceptCharset:W,accessKey:W,action:null,allow:null,allowFullScreen:_,allowPaymentRequest:_,allowUserMedia:_,alt:null,as:null,async:_,autoCapitalize:null,autoComplete:W,autoFocus:_,autoPlay:_,blocking:W,capture:null,charSet:null,checked:_,cite:null,className:W,cols:E,colSpan:null,content:null,contentEditable:Y,controls:_,controlsList:W,coords:E|Fe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_,defer:_,dir:null,dirName:null,disabled:_,download:Rn,draggable:Y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_,formTarget:null,headers:W,height:E,hidden:Rn,high:E,href:null,hrefLang:null,htmlFor:W,httpEquiv:W,id:null,imageSizes:null,imageSrcSet:null,inert:_,inputMode:null,integrity:null,is:null,isMap:_,itemId:null,itemProp:W,itemRef:W,itemScope:_,itemType:W,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_,low:E,manifest:null,max:null,maxLength:E,media:null,method:null,min:null,minLength:E,multiple:_,muted:_,name:null,nonce:null,noModule:_,noValidate:_,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:_,optimum:E,pattern:null,ping:W,placeholder:null,playsInline:_,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_,referrerPolicy:null,rel:W,required:_,reversed:_,rows:E,rowSpan:E,sandbox:W,scope:null,scoped:_,seamless:_,selected:_,shadowRootClonable:_,shadowRootDelegatesFocus:_,shadowRootMode:null,shape:null,size:E,sizes:null,slot:null,span:E,spellCheck:Y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:E,step:null,style:null,tabIndex:E,target:null,title:null,translate:null,type:null,typeMustMatch:_,useMap:null,value:Y,width:E,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:W,axis:null,background:null,bgColor:null,border:E,borderColor:null,bottomMargin:E,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_,declare:_,event:null,face:null,frame:null,frameBorder:null,hSpace:E,leftMargin:E,link:null,longDesc:null,lowSrc:null,marginHeight:E,marginWidth:E,noResize:_,noHref:_,noShade:_,noWrap:_,object:null,profile:null,prompt:null,rev:null,rightMargin:E,rules:null,scheme:null,scrolling:Y,standby:null,summary:null,text:null,topMargin:E,valueType:null,version:null,vAlign:null,vLink:null,vSpace:E,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_,disableRemotePlayback:_,prefix:null,property:null,results:E,security:null,unselectable:null},space:"html",transform:sr}),zi=_e({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:te,accentHeight:E,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:E,amplitude:E,arabicForm:null,ascent:E,attributeName:null,attributeType:null,azimuth:E,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:E,by:null,calcMode:null,capHeight:E,className:W,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:E,diffuseConstant:E,direction:null,display:null,dur:null,divisor:E,dominantBaseline:null,download:_,dx:null,dy:null,edgeMode:null,editable:null,elevation:E,enableBackground:null,end:null,event:null,exponent:E,externalResourcesRequired:null,fill:null,fillOpacity:E,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Fe,g2:Fe,glyphName:Fe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:E,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:E,horizOriginX:E,horizOriginY:E,id:null,ideographic:E,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:E,k:E,k1:E,k2:E,k3:E,k4:E,kernelMatrix:te,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:E,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:E,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:E,overlineThickness:E,paintOrder:null,panose1:null,path:null,pathLength:E,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:W,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:E,pointsAtY:E,pointsAtZ:E,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:te,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:te,rev:te,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:te,requiredFeatures:te,requiredFonts:te,requiredFormats:te,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:E,specularExponent:E,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:E,strikethroughThickness:E,string:null,stroke:null,strokeDashArray:te,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:E,strokeOpacity:E,strokeWidth:null,style:null,surfaceScale:E,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:te,tabIndex:E,tableValues:null,target:null,targetX:E,targetY:E,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:te,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:E,underlineThickness:E,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:E,values:null,vAlphabetic:E,vMathematical:E,vectorEffect:null,vHanging:E,vIdeographic:E,version:null,vertAdvY:E,vertOriginX:E,vertOriginY:E,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:E,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ur}),cr=_e({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),fr=_e({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:sr}),hr=_e({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Li={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Fi=/[A-Z]/g,dt=/-[a-z]/g,Ri=/^data[-\w.:]+$/i;function _i(e,t){const n=Fn(t);let r=t,i=ee;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ri.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(dt,Mi);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!dt.test(o)){let l=o.replace(Fi,Oi);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=Vn}return new i(r,t)}function Oi(e){return"-"+e.toLowerCase()}function Mi(e){return e.charAt(1).toUpperCase()}const Ni=or([ar,Di,cr,fr,hr],"html"),$n=or([ar,zi,cr,fr,hr],"svg");function Bi(e){return e.join(" ").trim()}var De={},yn,yt;function ji(){if(yt)return yn;yt=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,s=`
2
2
  `,u="/",f="*",c="",p="comment",h="declaration";function d(S,y){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];y=y||{};var I=1,C=1;function F(z){var T=z.match(t);T&&(I+=T.length);var U=z.lastIndexOf(s);C=~U?z.length-U:C+z.length}function R(){var z={line:I,column:C};return function(T){return T.position=new b(z),j(),T}}function b(z){this.start=z,this.end={line:I,column:C},this.source=y.source}b.prototype.content=S;function M(z){var T=new Error(y.source+":"+I+":"+C+": "+z);if(T.reason=z,T.filename=y.source,T.line=I,T.column=C,T.source=S,!y.silent)throw T}function H(z){var T=z.exec(S);if(T){var U=T[0];return F(U),S=S.slice(U.length),T}}function j(){H(n)}function k(z){var T;for(z=z||[];T=P();)T!==!1&&z.push(T);return z}function P(){var z=R();if(!(u!=S.charAt(0)||f!=S.charAt(1))){for(var T=2;c!=S.charAt(T)&&(f!=S.charAt(T)||u!=S.charAt(T+1));)++T;if(T+=2,c===S.charAt(T-1))return M("End of comment missing");var U=S.slice(2,T-2);return C+=2,F(U),S=S.slice(T),C+=2,z({type:p,comment:U})}}function v(){var z=R(),T=H(r);if(T){if(P(),!H(i))return M("property missing ':'");var U=H(o),X=z({type:h,property:w(T[0].replace(e,c)),value:U?w(U[0].replace(e,c)):c});return H(l),X}}function q(){var z=[];k(z);for(var T;T=v();)T!==!1&&(z.push(T),k(z));return z}return j(),q()}function w(S){return S?S.replace(a,c):c}return yn=d,yn}var kt;function Hi(){if(kt)return De;kt=1;var e=De&&De.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(De,"__esModule",{value:!0}),De.default=n;const t=e(ji());function n(r,i){let o=null;if(!r||typeof r!="string")return o;const l=(0,t.default)(r),a=typeof i=="function";return l.forEach(s=>{if(s.type!=="declaration")return;const{property:u,value:f}=s;a?i(u,f,s):f&&(o=o||{},o[u]=f)}),o}return De}var je={},xt;function qi(){if(xt)return je;xt=1,Object.defineProperty(je,"__esModule",{value:!0}),je.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(u){return!u||n.test(u)||e.test(u)},l=function(u,f){return f.toUpperCase()},a=function(u,f){return"".concat(f,"-")},s=function(u,f){return f===void 0&&(f={}),o(u)?u:(u=u.toLowerCase(),f.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(t,l))};return je.camelCase=s,je}var He,bt;function Ui(){if(bt)return He;bt=1;var e=He&&He.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(Hi()),n=qi();function r(i,o){var l={};return!i||typeof i!="string"||(0,t.default)(i,function(a,s){a&&s&&(l[(0,n.camelCase)(a,o)]=s)}),l}return r.default=r,He=r,He}var Vi=Ui();const $i=lr(Vi),pr=mr("end"),Wn=mr("start");function mr(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function gr(e){const t=Wn(e),n=pr(e);if(t&&n)return{start:t,end:n}}function $e(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?wt(e.position):"start"in e||"end"in e?wt(e):"line"in e||"column"in e?On(e):""}function On(e){return St(e&&e.line)+":"+St(e&&e.column)}function wt(e){return On(e&&e.start)+"-"+On(e&&e.end)}function St(e){return e&&typeof e=="number"?e:1}class K extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?o.ruleId=r:(o.source=r.slice(0,s),o.ruleId=r.slice(s+1))}if(!o.place&&o.ancestors&&o.ancestors){const s=o.ancestors[o.ancestors.length-1];s&&(o.place=s.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=$e(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}K.prototype.file="";K.prototype.name="";K.prototype.reason="";K.prototype.message="";K.prototype.stack="";K.prototype.column=void 0;K.prototype.line=void 0;K.prototype.ancestors=void 0;K.prototype.cause=void 0;K.prototype.fatal=void 0;K.prototype.place=void 0;K.prototype.ruleId=void 0;K.prototype.source=void 0;const Yn={}.hasOwnProperty,Wi=new Map,Yi=/[A-Z]/g,Xi=new Set(["table","tbody","thead","tfoot","tr"]),Qi=new Set(["td","th"]),dr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Gi(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=il(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=rl(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?$n:Ni,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=yr(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function yr(e,t,n){if(t.type==="element")return Ki(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Ji(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return el(e,t,n);if(t.type==="mdxjsEsm")return Zi(e,t);if(t.type==="root")return nl(e,t,n);if(t.type==="text")return tl(e,t)}function Ki(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=$n,e.schema=i),e.ancestors.push(t);const o=xr(e,t.tagName,!1),l=ll(e,t);let a=Qn(e,t);return Xi.has(t.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!Pi(s):!0})),kr(e,l,o,t),Xn(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function Ji(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Xe(e,t.position)}function Zi(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Xe(e,t.position)}function el(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=$n,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:xr(e,t.name,!0),l=ol(e,t),a=Qn(e,t);return kr(e,l,o,t),Xn(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function nl(e,t,n){const r={};return Xn(r,Qn(e,t)),e.create(t,e.Fragment,r,n)}function tl(e,t){return t.value}function kr(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Xn(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function rl(e,t,n){return r;function r(i,o,l,a){const u=Array.isArray(l.children)?n:t;return a?u(o,l,a):u(o,l)}}function il(e,t){return n;function n(r,i,o,l){const a=Array.isArray(o.children),s=Wn(r);return t(i,o,l,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function ll(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Yn.call(t.properties,i)){const o=al(e,i,t.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&Qi.has(t.tagName)?r=a:n[l]=a}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function ol(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Xe(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Xe(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function Qn(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Wi;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const s=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(s){const u=i.get(s)||0;l=s+"-"+u,i.set(s,u+1)}}const a=yr(e,o,l);a!==void 0&&n.push(a)}return n}function al(e,t,n){const r=_i(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Ci(n):Bi(n)),r.property==="style"){let i=typeof n=="object"?n:ul(e,String(n));return e.stylePropertyNameCase==="css"&&(i=sl(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Li[r.property]||r.property:r.attribute,n]}}function ul(e,t){try{return $i(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new K("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=dr+"#cannot-parse-style-attribute",i}}function xr(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,l;for(;++o<i.length;){const a=pt(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=l}else r=pt(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Yn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Xe(e)}function Xe(e,t){const n=new K("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=dr+"#cannot-handle-mdx-estrees-without-createevaluater",n}function sl(e){const t={};let n;for(n in e)Yn.call(e,n)&&(t[cl(n)]=e[n]);return t}function cl(e){let t=e.replace(Yi,fl);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function fl(e){return"-"+e.toLowerCase()}const kn={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},hl={};function Gn(e,t){const n=hl,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return br(e,r,i)}function br(e,t,n){if(pl(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ct(e.children,t,n)}return Array.isArray(e)?Ct(e,t,n):""}function Ct(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=br(e[i],t,n);return r.join("")}function pl(e){return!!(e&&typeof e=="object")}const Et=document.createElement("i");function Kn(e){const t="&"+e+";";Et.innerHTML=t;const n=Et.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function re(e,t,n,r){const i=e.length;let o=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function ie(e,t){return e.length>0?(re(e,e.length,0,t),e):t}const It={}.hasOwnProperty;function wr(e){const t={};let n=-1;for(;++n<e.length;)ml(t,e[n]);return t}function ml(e,t){let n;for(n in t){const i=(It.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){It.call(i,l)||(i[l]=[]);const a=o[l];gl(i[l],Array.isArray(a)?a:a?[a]:[])}}}function gl(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);re(e,0,0,r)}function Sr(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function se(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const J=be(/[A-Za-z]/),G=be(/[\dA-Za-z]/),dl=be(/[#-'*+\--9=?A-Z^-~]/);function un(e){return e!==null&&(e<32||e===127)}const Mn=be(/\d/),yl=be(/[\dA-Fa-f]/),kl=be(/[!-/:-@[-`{-~]/);function D(e){return e!==null&&e<-2}function $(e){return e!==null&&(e<0||e===32)}function O(e){return e===-2||e===-1||e===32}const fn=be(/\p{P}|\p{S}/u),Ie=be(/\s/);function be(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Oe(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&G(e.charCodeAt(n+1))&&G(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function B(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(s){return O(s)?(e.enter(n),a(s)):t(s)}function a(s){return O(s)&&o++<i?(e.consume(s),a):(e.exit(n),t(s))}}const xl={tokenize:bl};function bl(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),B(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return D(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const wl={tokenize:Sl},At={tokenize:Cl};function Sl(e){const t=this,n=[];let r=0,i,o,l;return a;function a(C){if(r<n.length){const F=n[r];return t.containerState=F[1],e.attempt(F[0].continuation,s,u)(C)}return u(C)}function s(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&I();const F=t.events.length;let R=F,b;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){b=t.events[R][1].end;break}y(r);let M=F;for(;M<t.events.length;)t.events[M][1].end={...b},M++;return re(t.events,R+1,0,t.events.slice(F)),t.events.length=M,u(C)}return a(C)}function u(C){if(r===n.length){if(!i)return p(C);if(i.currentConstruct&&i.currentConstruct.concrete)return d(C);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(At,f,c)(C)}function f(C){return i&&I(),y(r),p(C)}function c(C){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,d(C)}function p(C){return t.containerState={},e.attempt(At,h,d)(C)}function h(C){return r++,n.push([t.currentConstruct,t.containerState]),p(C)}function d(C){if(C===null){i&&I(),y(0),e.consume(C);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),w(C)}function w(C){if(C===null){S(e.exit("chunkFlow"),!0),y(0),e.consume(C);return}return D(C)?(e.consume(C),S(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(C),w)}function S(C,F){const R=t.sliceStream(C);if(F&&R.push(null),C.previous=o,o&&(o.next=C),o=C,i.defineSkip(C.start),i.write(R),t.parser.lazy[C.start.line]){let b=i.events.length;for(;b--;)if(i.events[b][1].start.offset<l&&(!i.events[b][1].end||i.events[b][1].end.offset>l))return;const M=t.events.length;let H=M,j,k;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){if(j){k=t.events[H][1].end;break}j=!0}for(y(r),b=M;b<t.events.length;)t.events[b][1].end={...k},b++;re(t.events,H+1,0,t.events.slice(M)),t.events.length=b}}function y(C){let F=n.length;for(;F-- >C;){const R=n[F];t.containerState=R[1],R[0].exit.call(t,e)}n.length=C}function I(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Cl(e,t,n){return B(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Re(e){if(e===null||$(e)||Ie(e))return 1;if(fn(e))return 2}function hn(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const Nn={name:"attention",resolveAll:El,tokenize:Il};function El(e,t){let n=-1,r,i,o,l,a,s,u,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[n][1].start};Tt(c,-s),Tt(p,s),l={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},o={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:s>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[n][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=ie(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=ie(u,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",o,t]]),u=ie(u,hn(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=ie(u,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=ie(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,re(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Il(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Re(r);let o;return l;function l(s){return o=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===o)return e.consume(s),a;const u=e.exit("attentionSequence"),f=Re(s),c=!f||f===2&&i||n.includes(s),p=!i||i===2&&f||n.includes(r);return u._open=!!(o===42?c:c&&(i||!p)),u._close=!!(o===42?p:p&&(f||!c)),t(s)}}function Tt(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Al={name:"autolink",tokenize:Tl};function Tl(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return J(h)?(e.consume(h),l):h===64?n(h):u(h)}function l(h){return h===43||h===45||h===46||G(h)?(r=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),r=0,s):(h===43||h===45||h===46||G(h))&&r++<32?(e.consume(h),a):(r=0,u(h))}function s(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||un(h)?n(h):(e.consume(h),s)}function u(h){return h===64?(e.consume(h),f):dl(h)?(e.consume(h),u):n(h)}function f(h){return G(h)?c(h):n(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||G(h))&&r++<63){const d=h===45?p:c;return e.consume(h),d}return n(h)}}const Je={partial:!0,tokenize:Pl};function Pl(e,t,n){return r;function r(o){return O(o)?B(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||D(o)?t(o):n(o)}}const Cr={continuation:{tokenize:Dl},exit:zl,name:"blockQuote",tokenize:vl};function vl(e,t,n){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return O(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function Dl(e,t,n){const r=this;return i;function i(l){return O(l)?B(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Cr,t,n)(l)}}function zl(e){e.exit("blockQuote")}const Er={name:"characterEscape",tokenize:Ll};function Ll(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return kl(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Ir={name:"characterReference",tokenize:Fl};function Fl(e,t,n){const r=this;let i=0,o,l;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,l=G,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=yl,f):(e.enter("characterReferenceValue"),o=7,l=Mn,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===G&&!Kn(r.sliceSerialize(p))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(c)&&i++<o?(e.consume(c),f):n(c)}}const Pt={partial:!0,tokenize:_l},vt={concrete:!0,name:"codeFenced",tokenize:Rl};function Rl(e,t,n){const r=this,i={partial:!0,tokenize:R};let o=0,l=0,a;return s;function s(b){return u(b)}function u(b){const M=r.events[r.events.length-1];return o=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,a=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(b)}function f(b){return b===a?(l++,e.consume(b),f):l<3?n(b):(e.exit("codeFencedFenceSequence"),O(b)?B(e,c,"whitespace")(b):c(b))}function c(b){return b===null||D(b)?(e.exit("codeFencedFence"),r.interrupt?t(b):e.check(Pt,w,F)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||D(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(b)):O(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),B(e,h,"whitespace")(b)):b===96&&b===a?n(b):(e.consume(b),p)}function h(b){return b===null||D(b)?c(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(b))}function d(b){return b===null||D(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(b)):b===96&&b===a?n(b):(e.consume(b),d)}function w(b){return e.attempt(i,F,S)(b)}function S(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),y}function y(b){return o>0&&O(b)?B(e,I,"linePrefix",o+1)(b):I(b)}function I(b){return b===null||D(b)?e.check(Pt,w,F)(b):(e.enter("codeFlowValue"),C(b))}function C(b){return b===null||D(b)?(e.exit("codeFlowValue"),I(b)):(e.consume(b),C)}function F(b){return e.exit("codeFenced"),t(b)}function R(b,M,H){let j=0;return k;function k(T){return b.enter("lineEnding"),b.consume(T),b.exit("lineEnding"),P}function P(T){return b.enter("codeFencedFence"),O(T)?B(b,v,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):v(T)}function v(T){return T===a?(b.enter("codeFencedFenceSequence"),q(T)):H(T)}function q(T){return T===a?(j++,b.consume(T),q):j>=l?(b.exit("codeFencedFenceSequence"),O(T)?B(b,z,"whitespace")(T):z(T)):H(T)}function z(T){return T===null||D(T)?(b.exit("codeFencedFence"),M(T)):H(T)}}}function _l(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const xn={name:"codeIndented",tokenize:Ml},Ol={partial:!0,tokenize:Nl};function Ml(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),B(e,o,"linePrefix",5)(u)}function o(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(u):n(u)}function l(u){return u===null?s(u):D(u)?e.attempt(Ol,l,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||D(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function Nl(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):D(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):B(e,o,"linePrefix",5)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):D(l)?i(l):n(l)}}const Bl={name:"codeText",previous:Hl,resolve:jl,tokenize:ql};function jl(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Hl(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ql(e,t,n){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):D(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||D(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",u(c))}}class Ul{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&qe(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),qe(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),qe(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);qe(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);qe(this.left,n.reverse())}}}function qe(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Ar(e){const t={};let n=-1,r,i,o,l,a,s,u;const f=new Ul(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Vl(f,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,n),a.unshift(r),f.splice(i,n-i+1,a))}}return re(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function Vl(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,s=[],u={};let f,c,p=-1,h=n,d=0,w=0;const S=[w];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=n;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(w=p+1,S.push(w),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):S.pop(),p=S.length;p--;){const y=a.slice(S[p],S[p+1]),I=o.pop();s.push([I,I+y.length-1]),e.splice(I,2,y)}for(s.reverse(),p=-1;++p<s.length;)u[d+s[p][0]]=d+s[p][1],d+=s[p][1]-s[p][0]-1;return u}const $l={resolve:Yl,tokenize:Xl},Wl={partial:!0,tokenize:Ql};function Yl(e){return Ar(e),e}function Xl(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):D(a)?e.check(Wl,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function l(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Ql(e,t,n){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),B(e,o,"linePrefix")}function o(l){if(l===null||D(l))return n(l);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function Tr(e,t,n,r,i,o,l,a,s){const u=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),p):y===null||y===32||y===41||un(y)?n(y):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),w(y))}function p(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(a),p(y)):y===null||y===60||D(y)?n(y):(e.consume(y),y===92?d:h)}function d(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function w(y){return!f&&(y===null||y===41||$(y))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(y)):f<u&&y===40?(e.consume(y),f++,w):y===41?(e.consume(y),f--,w):y===null||y===32||y===40||un(y)?n(y):(e.consume(y),y===92?S:w)}function S(y){return y===40||y===41||y===92?(e.consume(y),w):w(y)}}function Pr(e,t,n,r,i,o){const l=this;let a=0,s;return u;function u(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),f}function f(h){return a>999||h===null||h===91||h===93&&!s||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):D(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||D(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),s||(s=!O(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function vr(e,t,n,r,i,o){let l;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,s):n(p)}function s(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),u(p))}function u(p){return p===l?(e.exit(o),s(l)):p===null?n(p):D(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),B(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||D(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function We(e,t){let n;return r;function r(i){return D(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):O(i)?B(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Gl={name:"definition",tokenize:Jl},Kl={partial:!0,tokenize:Zl};function Jl(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return Pr.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=se(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):n(h)}function s(h){return $(h)?We(e,u)(h):u(h)}function u(h){return Tr(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(Kl,c,c)(h)}function c(h){return O(h)?B(e,p,"whitespace")(h):p(h)}function p(h){return h===null||D(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function Zl(e,t,n){return r;function r(a){return $(a)?We(e,i)(a):n(a)}function i(a){return vr(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return O(a)?B(e,l,"whitespace")(a):l(a)}function l(a){return a===null||D(a)?t(a):n(a)}}const eo={name:"hardBreakEscape",tokenize:no};function no(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return D(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const to={name:"headingAtx",resolve:ro,tokenize:io};function ro(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},re(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function io(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||$(f)?(e.exit("atxHeadingSequence"),a(f)):n(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||D(f)?(e.exit("atxHeading"),t(f)):O(f)?B(e,a,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function s(f){return f===35?(e.consume(f),s):(e.exit("atxHeadingSequence"),a(f))}function u(f){return f===null||f===35||$(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),u)}}const lo=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Dt=["pre","script","style","textarea"],oo={concrete:!0,name:"htmlFlow",resolveTo:so,tokenize:co},ao={partial:!0,tokenize:ho},uo={partial:!0,tokenize:fo};function so(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function co(e,t,n){const r=this;let i,o,l,a,s;return u;function u(g){return f(g)}function f(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),p):g===47?(e.consume(g),o=!0,w):g===63?(e.consume(g),i=3,r.interrupt?t:m):J(g)?(e.consume(g),l=String.fromCharCode(g),S):n(g)}function p(g){return g===45?(e.consume(g),i=2,h):g===91?(e.consume(g),i=5,a=0,d):J(g)?(e.consume(g),i=4,r.interrupt?t:m):n(g)}function h(g){return g===45?(e.consume(g),r.interrupt?t:m):n(g)}function d(g){const ae="CDATA[";return g===ae.charCodeAt(a++)?(e.consume(g),a===ae.length?r.interrupt?t:v:d):n(g)}function w(g){return J(g)?(e.consume(g),l=String.fromCharCode(g),S):n(g)}function S(g){if(g===null||g===47||g===62||$(g)){const ae=g===47,we=l.toLowerCase();return!ae&&!o&&Dt.includes(we)?(i=1,r.interrupt?t(g):v(g)):lo.includes(l.toLowerCase())?(i=6,ae?(e.consume(g),y):r.interrupt?t(g):v(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(g):o?I(g):C(g))}return g===45||G(g)?(e.consume(g),l+=String.fromCharCode(g),S):n(g)}function y(g){return g===62?(e.consume(g),r.interrupt?t:v):n(g)}function I(g){return O(g)?(e.consume(g),I):k(g)}function C(g){return g===47?(e.consume(g),k):g===58||g===95||J(g)?(e.consume(g),F):O(g)?(e.consume(g),C):k(g)}function F(g){return g===45||g===46||g===58||g===95||G(g)?(e.consume(g),F):R(g)}function R(g){return g===61?(e.consume(g),b):O(g)?(e.consume(g),R):C(g)}function b(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),s=g,M):O(g)?(e.consume(g),b):H(g)}function M(g){return g===s?(e.consume(g),s=null,j):g===null||D(g)?n(g):(e.consume(g),M)}function H(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||$(g)?R(g):(e.consume(g),H)}function j(g){return g===47||g===62||O(g)?C(g):n(g)}function k(g){return g===62?(e.consume(g),P):n(g)}function P(g){return g===null||D(g)?v(g):O(g)?(e.consume(g),P):n(g)}function v(g){return g===45&&i===2?(e.consume(g),U):g===60&&i===1?(e.consume(g),X):g===62&&i===4?(e.consume(g),oe):g===63&&i===3?(e.consume(g),m):g===93&&i===5?(e.consume(g),he):D(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(ao,pe,q)(g)):g===null||D(g)?(e.exit("htmlFlowData"),q(g)):(e.consume(g),v)}function q(g){return e.check(uo,z,pe)(g)}function z(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),T}function T(g){return g===null||D(g)?q(g):(e.enter("htmlFlowData"),v(g))}function U(g){return g===45?(e.consume(g),m):v(g)}function X(g){return g===47?(e.consume(g),l="",le):v(g)}function le(g){if(g===62){const ae=l.toLowerCase();return Dt.includes(ae)?(e.consume(g),oe):v(g)}return J(g)&&l.length<8?(e.consume(g),l+=String.fromCharCode(g),le):v(g)}function he(g){return g===93?(e.consume(g),m):v(g)}function m(g){return g===62?(e.consume(g),oe):g===45&&i===2?(e.consume(g),m):v(g)}function oe(g){return g===null||D(g)?(e.exit("htmlFlowData"),pe(g)):(e.consume(g),oe)}function pe(g){return e.exit("htmlFlow"),t(g)}}function fo(e,t,n){const r=this;return i;function i(l){return D(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function ho(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Je,t,n)}}const po={name:"htmlText",tokenize:mo};function mo(e,t,n){const r=this;let i,o,l;return a;function a(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),s}function s(m){return m===33?(e.consume(m),u):m===47?(e.consume(m),R):m===63?(e.consume(m),C):J(m)?(e.consume(m),H):n(m)}function u(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),o=0,d):J(m)?(e.consume(m),I):n(m)}function f(m){return m===45?(e.consume(m),h):n(m)}function c(m){return m===null?n(m):m===45?(e.consume(m),p):D(m)?(l=c,X(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?U(m):m===45?p(m):c(m)}function d(m){const oe="CDATA[";return m===oe.charCodeAt(o++)?(e.consume(m),o===oe.length?w:d):n(m)}function w(m){return m===null?n(m):m===93?(e.consume(m),S):D(m)?(l=w,X(m)):(e.consume(m),w)}function S(m){return m===93?(e.consume(m),y):w(m)}function y(m){return m===62?U(m):m===93?(e.consume(m),y):w(m)}function I(m){return m===null||m===62?U(m):D(m)?(l=I,X(m)):(e.consume(m),I)}function C(m){return m===null?n(m):m===63?(e.consume(m),F):D(m)?(l=C,X(m)):(e.consume(m),C)}function F(m){return m===62?U(m):C(m)}function R(m){return J(m)?(e.consume(m),b):n(m)}function b(m){return m===45||G(m)?(e.consume(m),b):M(m)}function M(m){return D(m)?(l=M,X(m)):O(m)?(e.consume(m),M):U(m)}function H(m){return m===45||G(m)?(e.consume(m),H):m===47||m===62||$(m)?j(m):n(m)}function j(m){return m===47?(e.consume(m),U):m===58||m===95||J(m)?(e.consume(m),k):D(m)?(l=j,X(m)):O(m)?(e.consume(m),j):U(m)}function k(m){return m===45||m===46||m===58||m===95||G(m)?(e.consume(m),k):P(m)}function P(m){return m===61?(e.consume(m),v):D(m)?(l=P,X(m)):O(m)?(e.consume(m),P):j(m)}function v(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),i=m,q):D(m)?(l=v,X(m)):O(m)?(e.consume(m),v):(e.consume(m),z)}function q(m){return m===i?(e.consume(m),i=void 0,T):m===null?n(m):D(m)?(l=q,X(m)):(e.consume(m),q)}function z(m){return m===null||m===34||m===39||m===60||m===61||m===96?n(m):m===47||m===62||$(m)?j(m):(e.consume(m),z)}function T(m){return m===47||m===62||$(m)?j(m):n(m)}function U(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),t):n(m)}function X(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),le}function le(m){return O(m)?B(e,he,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):he(m)}function he(m){return e.enter("htmlTextData"),l(m)}}const Jn={name:"labelEnd",resolveAll:xo,resolveTo:bo,tokenize:wo},go={tokenize:So},yo={tokenize:Co},ko={tokenize:Eo};function xo(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&re(e,0,e.length,n),e}function bo(e,t){let n=e.length,r=0,i,o,l,a;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=n);const s={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",s,t],["enter",u,t]],a=ie(a,e.slice(o+1,o+r+3)),a=ie(a,[["enter",f,t]]),a=ie(a,hn(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),a=ie(a,[["exit",f,t],e[l-2],e[l-1],["exit",u,t]]),a=ie(a,e.slice(l+1)),a=ie(a,[["exit",s,t]]),re(e,o,e.length,a),e}function wo(e,t,n){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(p){return o?o._inactive?c(p):(l=r.parser.defined.includes(se(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):n(p)}function s(p){return p===40?e.attempt(go,f,l?f:c)(p):p===91?e.attempt(yo,f,l?u:c)(p):l?f(p):c(p)}function u(p){return e.attempt(ko,f,c)(p)}function f(p){return t(p)}function c(p){return o._balanced=!0,n(p)}}function So(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return $(c)?We(e,o)(c):o(c)}function o(c){return c===41?f(c):Tr(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return $(c)?We(e,s)(c):f(c)}function a(c){return n(c)}function s(c){return c===34||c===39||c===40?vr(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return $(c)?We(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function Co(e,t,n){const r=this;return i;function i(a){return Pr.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(se(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function l(a){return n(a)}}function Eo(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const Io={name:"labelStartImage",resolveAll:Jn.resolveAll,tokenize:Ao};function Ao(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):n(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const To={name:"labelStartLink",resolveAll:Jn.resolveAll,tokenize:Po};function Po(e,t,n){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const bn={name:"lineEnding",tokenize:vo};function vo(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),B(e,t,"linePrefix")}}const an={name:"thematicBreak",tokenize:Do};function Do(e,t,n){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),l(u)}function l(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||D(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),O(u)?B(e,a,"whitespace")(u):a(u))}}const Z={continuation:{tokenize:Ro},exit:Oo,name:"list",tokenize:Fo},zo={partial:!0,tokenize:Mo},Lo={partial:!0,tokenize:_o};function Fo(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(h){const d=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Mn(h)){if(r.containerState.type||(r.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(an,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return n(h)}function s(h){return Mn(h)&&++l<10?(e.consume(h),s):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Je,r.interrupt?n:f,e.attempt(zo,p,c))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function c(h){return O(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Ro(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Je,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,B(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!O(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Lo,t,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,B(e,e.attempt(Z,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function _o(e,t,n){const r=this;return B(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function Oo(e){e.exit(this.containerState.type)}function Mo(e,t,n){const r=this;return B(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!O(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const zt={name:"setextUnderline",resolveTo:No,tokenize:Bo};function No(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function Bo(e,t,n){const r=this;let i;return o;function o(u){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=u,l(u)):n(u)}function l(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),O(u)?B(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||D(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const jo={tokenize:Ho};function Ho(e){const t=this,n=e.attempt(Je,r,e.attempt(this.parser.constructs.flowInitial,i,B(e,e.attempt(this.parser.constructs.flow,i,e.attempt($l,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const qo={resolveAll:zr()},Uo=Dr("string"),Vo=Dr("text");function Dr(e){return{resolveAll:zr(e==="text"?$o:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,l,a);return l;function l(f){return u(f)?o(f):a(f)}function a(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),s}function s(f){return u(f)?(n.exit("data"),o(f)):(n.consume(f),s)}function u(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function zr(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function $o(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,l=-1,a=0,s;for(;o--;){const u=i[o];if(typeof u=="string"){for(l=u.length;u.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(u===-2)s=!0,a++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const Wo={42:Z,43:Z,45:Z,48:Z,49:Z,50:Z,51:Z,52:Z,53:Z,54:Z,55:Z,56:Z,57:Z,62:Cr},Yo={91:Gl},Xo={[-2]:xn,[-1]:xn,32:xn},Qo={35:to,42:an,45:[zt,an],60:oo,61:zt,95:an,96:vt,126:vt},Go={38:Ir,92:Er},Ko={[-5]:bn,[-4]:bn,[-3]:bn,33:Io,38:Ir,42:Nn,60:[Al,po],91:To,92:[eo,Er],93:Jn,95:Nn,96:Bl},Jo={null:[Nn,qo]},Zo={null:[42,95]},ea={null:[]},na=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Zo,contentInitial:Yo,disable:ea,document:Wo,flow:Qo,flowInitial:Xo,insideSpan:Jo,string:Go,text:Ko},Symbol.toStringTag,{value:"Module"}));function ta(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let l=[],a=[];const s={attempt:M(R),check:M(b),consume:I,enter:C,exit:F,interrupt:M(b,{interrupt:!0})},u={code:null,containerState:{},defineSkip:w,events:[],now:d,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=t.tokenize.call(u,s);return t.resolveAll&&o.push(t),u;function c(P){return l=ie(l,P),S(),l[l.length-1]!==null?[]:(H(t,0),u.events=hn(o,u.events,u),u.events)}function p(P,v){return ia(h(P),v)}function h(P){return ra(l,P)}function d(){const{_bufferIndex:P,_index:v,line:q,column:z,offset:T}=r;return{_bufferIndex:P,_index:v,line:q,column:z,offset:T}}function w(P){i[P.line]=P.column,k()}function S(){let P;for(;r._index<l.length;){const v=l[r._index];if(typeof v=="string")for(P=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===P&&r._bufferIndex<v.length;)y(v.charCodeAt(r._bufferIndex));else y(v)}}function y(P){f=f(P)}function I(P){D(P)?(r.line++,r.column=1,r.offset+=P===-3?2:1,k()):P!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=P}function C(P,v){const q=v||{};return q.type=P,q.start=d(),u.events.push(["enter",q,u]),a.push(q),q}function F(P){const v=a.pop();return v.end=d(),u.events.push(["exit",v,u]),v}function R(P,v){H(P,v.from)}function b(P,v){v.restore()}function M(P,v){return q;function q(z,T,U){let X,le,he,m;return Array.isArray(z)?pe(z):"tokenize"in z?pe([z]):oe(z);function oe(Q){return Me;function Me(ye){const Te=ye!==null&&Q[ye],Pe=ye!==null&&Q.null,nn=[...Array.isArray(Te)?Te:Te?[Te]:[],...Array.isArray(Pe)?Pe:Pe?[Pe]:[]];return pe(nn)(ye)}}function pe(Q){return X=Q,le=0,Q.length===0?U:g(Q[le])}function g(Q){return Me;function Me(ye){return m=j(),he=Q,Q.partial||(u.currentConstruct=Q),Q.name&&u.parser.constructs.disable.null.includes(Q.name)?we():Q.tokenize.call(v?Object.assign(Object.create(u),v):u,s,ae,we)(ye)}}function ae(Q){return P(he,m),T}function we(Q){return m.restore(),++le<X.length?g(X[le]):U}}}function H(P,v){P.resolveAll&&!o.includes(P)&&o.push(P),P.resolve&&re(u.events,v,u.events.length-v,P.resolve(u.events.slice(v),u)),P.resolveTo&&(u.events=P.resolveTo(u.events,u))}function j(){const P=d(),v=u.previous,q=u.currentConstruct,z=u.events.length,T=Array.from(a);return{from:z,restore:U};function U(){r=P,u.previous=v,u.currentConstruct=q,u.events.length=z,a=T,k()}}function k(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function ra(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let l;if(n===i)l=[e[n].slice(r,o)];else{if(l=e.slice(n,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function ia(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
3
3
  `;break}case-3:{l=`\r
4
- `;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function la(e){const r={constructs:wr([na,...(e||{}).extensions||[]]),content:i(xl),defined:[],document:i(wl),flow:i(jo),lazy:{},string:i(Uo),text:i(Vo)};return r;function i(o){return l;function l(a){return ta(r,o,a)}}}function oa(e){for(;!Ar(e););return e}const Lt=/[\0\t\n\r]/g;function aa(){let e=1,t="",n=!0,r;return i;function i(o,l,a){const s=[];let u,f,c,p,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,t="",n&&(o.charCodeAt(0)===65279&&c++,n=void 0);c<o.length;){if(Lt.lastIndex=c,u=Lt.exec(o),p=u&&u.index!==void 0?u.index:o.length,h=o.charCodeAt(p),!u){t=o.slice(c);break}if(h===10&&c===p&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<p&&(s.push(o.slice(c,p)),e+=p-c),h){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return a&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const ua=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function sa(e){return e.replace(ua,ca)}function ca(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return Sr(n.slice(o?2:1),o?16:10)}return Kn(n)||e}const Lr={}.hasOwnProperty;function fa(e,t,n){return typeof t!="string"&&(n=t,t=void 0),ha(n)(oa(la(n).document().write(aa()(e,t,!0))))}function ha(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ft),autolinkProtocol:j,autolinkEmail:j,atxHeading:o(ut),blockQuote:o(Pe),characterEscape:j,characterReference:j,codeFenced:o(nn),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(nn,l),codeText:o(mi,l),codeTextData:j,data:j,codeFlowValue:j,definition:o(gi),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(di),hardBreakEscape:o(st),hardBreakTrailing:o(st),htmlFlow:o(ct,l),htmlFlowData:j,htmlText:o(ct,l),htmlTextData:j,image:o(yi),label:l,link:o(ft),listItem:o(ki),listItemValue:p,listOrdered:o(ht,c),listUnordered:o(ht),paragraph:o(xi),reference:g,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(ut),strong:o(bi),thematicBreak:o(Si)},exit:{atxHeading:s(),atxHeadingSequence:R,autolink:s(),autolinkEmail:Te,autolinkProtocol:ye,blockQuote:s(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:we,characterReferenceMarkerNumeric:we,characterReferenceValue:Q,characterReference:Me,codeFenced:s(S),codeFencedFence:w,codeFencedFenceInfo:h,codeFencedFenceMeta:d,codeFlowValue:k,codeIndented:s(y),codeText:s(T),codeTextData:k,data:k,definition:s(),definitionDestinationString:F,definitionLabelString:I,definitionTitleString:C,emphasis:s(),hardBreakEscape:s(v),hardBreakTrailing:s(v),htmlFlow:s(q),htmlFlowData:k,htmlText:s(z),htmlTextData:k,image:s(X),label:he,labelText:le,lineEnding:P,link:s(U),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ae,resourceDestinationString:m,resourceTitleString:oe,resource:pe,setextHeading:s(H),setextHeadingLineSequence:M,setextHeadingText:b,strong:s(),thematicBreak:s()}};Fr(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(x){let A={type:"root",children:[]};const L={stack:[A],tokenStack:[],config:t,enter:a,exit:u,buffer:l,resume:f,data:n},N=[];let V=-1;for(;++V<x.length;)if(x[V][1].type==="listOrdered"||x[V][1].type==="listUnordered")if(x[V][0]==="enter")N.push(V);else{const ue=N.pop();V=i(x,ue,V)}for(V=-1;++V<x.length;){const ue=t[x[V][0]];Lr.call(ue,x[V][1].type)&&ue[x[V][1].type].call(Object.assign({sliceSerialize:x[V][2].sliceSerialize},L),x[V][1])}if(L.tokenStack.length>0){const ue=L.tokenStack[L.tokenStack.length-1];(ue[1]||Ft).call(L,void 0,ue[0])}for(A.position={start:ke(x.length>0?x[0][1].start:{line:1,column:1,offset:0}),end:ke(x.length>0?x[x.length-2][1].end:{line:1,column:1,offset:0})},V=-1;++V<t.transforms.length;)A=t.transforms[V](A)||A;return A}function i(x,A,L){let N=A-1,V=-1,ue=!1,Se,me,Ne,Be;for(;++N<=L;){const ne=x[N];switch(ne[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ne[0]==="enter"?V++:V--,Be=void 0;break}case"lineEndingBlank":{ne[0]==="enter"&&(Se&&!Be&&!V&&!Ne&&(Ne=N),Be=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Be=void 0}if(!V&&ne[0]==="enter"&&ne[1].type==="listItemPrefix"||V===-1&&ne[0]==="exit"&&(ne[1].type==="listUnordered"||ne[1].type==="listOrdered")){if(Se){let ve=N;for(me=void 0;ve--;){const ge=x[ve];if(ge[1].type==="lineEnding"||ge[1].type==="lineEndingBlank"){if(ge[0]==="exit")continue;me&&(x[me][1].type="lineEndingBlank",ue=!0),ge[1].type="lineEnding",me=ve}else if(!(ge[1].type==="linePrefix"||ge[1].type==="blockQuotePrefix"||ge[1].type==="blockQuotePrefixWhitespace"||ge[1].type==="blockQuoteMarker"||ge[1].type==="listItemIndent"))break}Ne&&(!me||Ne<me)&&(Se._spread=!0),Se.end=Object.assign({},me?x[me][1].start:ne[1].end),x.splice(me||N,0,["exit",Se,ne[2]]),N++,L++}if(ne[1].type==="listItemPrefix"){const ve={type:"listItem",_spread:!1,start:Object.assign({},ne[1].start),end:void 0};Se=ve,x.splice(N,0,["enter",ve,ne[2]]),N++,L++,Ne=void 0,Be=!0}}}return x[A][1]._spread=ue,L}function o(x,A){return L;function L(N){a.call(this,x(N),N),A&&A.call(this,N)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(x,A,L){this.stack[this.stack.length-1].children.push(x),this.stack.push(x),this.tokenStack.push([A,L||void 0]),x.position={start:ke(A.start),end:void 0}}function s(x){return A;function A(L){x&&x.call(this,L),u.call(this,L)}}function u(x,A){const L=this.stack.pop(),N=this.tokenStack.pop();if(N)N[0].type!==x.type&&(A?A.call(this,x,N[0]):(N[1]||Ft).call(this,x,N[0]));else throw new Error("Cannot close `"+x.type+"` ("+$e({start:x.start,end:x.end})+"): it’s not open");L.position.end=ke(x.end)}function f(){return Gn(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(x){if(this.data.expectingFirstListItemValue){const A=this.stack[this.stack.length-2];A.start=Number.parseInt(this.sliceSerialize(x),10),this.data.expectingFirstListItemValue=void 0}}function h(){const x=this.resume(),A=this.stack[this.stack.length-1];A.lang=x}function d(){const x=this.resume(),A=this.stack[this.stack.length-1];A.meta=x}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x.replace(/(\r?\n|\r)$/g,"")}function I(x){const A=this.resume(),L=this.stack[this.stack.length-1];L.label=A,L.identifier=se(this.sliceSerialize(x)).toLowerCase()}function C(){const x=this.resume(),A=this.stack[this.stack.length-1];A.title=x}function F(){const x=this.resume(),A=this.stack[this.stack.length-1];A.url=x}function R(x){const A=this.stack[this.stack.length-1];if(!A.depth){const L=this.sliceSerialize(x).length;A.depth=L}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function M(x){const A=this.stack[this.stack.length-1];A.depth=this.sliceSerialize(x).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function j(x){const L=this.stack[this.stack.length-1].children;let N=L[L.length-1];(!N||N.type!=="text")&&(N=wi(),N.position={start:ke(x.start),end:void 0},L.push(N)),this.stack.push(N)}function k(x){const A=this.stack.pop();A.value+=this.sliceSerialize(x),A.position.end=ke(x.end)}function P(x){const A=this.stack[this.stack.length-1];if(this.data.atHardBreak){const L=A.children[A.children.length-1];L.position.end=ke(x.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(A.type)&&(j.call(this,x),k.call(this,x))}function v(){this.data.atHardBreak=!0}function q(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x}function z(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x}function T(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x}function U(){const x=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=A,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function X(){const x=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=A,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function le(x){const A=this.sliceSerialize(x),L=this.stack[this.stack.length-2];L.label=sa(A),L.identifier=se(A).toLowerCase()}function he(){const x=this.stack[this.stack.length-1],A=this.resume(),L=this.stack[this.stack.length-1];if(this.data.inReference=!0,L.type==="link"){const N=x.children;L.children=N}else L.alt=A}function m(){const x=this.resume(),A=this.stack[this.stack.length-1];A.url=x}function oe(){const x=this.resume(),A=this.stack[this.stack.length-1];A.title=x}function pe(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function ae(x){const A=this.resume(),L=this.stack[this.stack.length-1];L.label=A,L.identifier=se(this.sliceSerialize(x)).toLowerCase(),this.data.referenceType="full"}function we(x){this.data.characterReferenceType=x.type}function Q(x){const A=this.sliceSerialize(x),L=this.data.characterReferenceType;let N;L?(N=Sr(A,L==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):N=Kn(A);const V=this.stack[this.stack.length-1];V.value+=N}function Me(x){const A=this.stack.pop();A.position.end=ke(x.end)}function ye(x){k.call(this,x);const A=this.stack[this.stack.length-1];A.url=this.sliceSerialize(x)}function Te(x){k.call(this,x);const A=this.stack[this.stack.length-1];A.url="mailto:"+this.sliceSerialize(x)}function Pe(){return{type:"blockquote",children:[]}}function nn(){return{type:"code",lang:null,meta:null,value:""}}function mi(){return{type:"inlineCode",value:""}}function gi(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function di(){return{type:"emphasis",children:[]}}function ut(){return{type:"heading",depth:0,children:[]}}function st(){return{type:"break"}}function ct(){return{type:"html",value:""}}function yi(){return{type:"image",title:null,url:"",alt:null}}function ft(){return{type:"link",title:null,url:"",children:[]}}function ht(x){return{type:"list",ordered:x.type==="listOrdered",start:null,spread:x._spread,children:[]}}function ki(x){return{type:"listItem",spread:x._spread,checked:null,children:[]}}function xi(){return{type:"paragraph",children:[]}}function bi(){return{type:"strong",children:[]}}function wi(){return{type:"text",value:""}}function Si(){return{type:"thematicBreak"}}}function ke(e){return{line:e.line,column:e.column,offset:e.offset}}function Fr(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Fr(e,r):pa(e,r)}}function pa(e,t){let n;for(n in t)if(Lr.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Ft(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+$e({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+$e({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+$e({start:t.start,end:t.end})+") is still open")}function ma(e){const t=this;t.parser=n;function n(r){return fa(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function ga(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function da(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
4
+ `;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function la(e){const r={constructs:wr([na,...(e||{}).extensions||[]]),content:i(xl),defined:[],document:i(wl),flow:i(jo),lazy:{},string:i(Uo),text:i(Vo)};return r;function i(o){return l;function l(a){return ta(r,o,a)}}}function oa(e){for(;!Ar(e););return e}const Lt=/[\0\t\n\r]/g;function aa(){let e=1,t="",n=!0,r;return i;function i(o,l,a){const s=[];let u,f,c,p,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,t="",n&&(o.charCodeAt(0)===65279&&c++,n=void 0);c<o.length;){if(Lt.lastIndex=c,u=Lt.exec(o),p=u&&u.index!==void 0?u.index:o.length,h=o.charCodeAt(p),!u){t=o.slice(c);break}if(h===10&&c===p&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<p&&(s.push(o.slice(c,p)),e+=p-c),h){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return a&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const ua=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function sa(e){return e.replace(ua,ca)}function ca(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return Sr(n.slice(o?2:1),o?16:10)}return Kn(n)||e}const Lr={}.hasOwnProperty;function fa(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),ha(n)(oa(la(n).document().write(aa()(e,t,!0))))}function ha(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ft),autolinkProtocol:j,autolinkEmail:j,atxHeading:o(ut),blockQuote:o(Pe),characterEscape:j,characterReference:j,codeFenced:o(nn),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(nn,l),codeText:o(mi,l),codeTextData:j,data:j,codeFlowValue:j,definition:o(gi),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(di),hardBreakEscape:o(st),hardBreakTrailing:o(st),htmlFlow:o(ct,l),htmlFlowData:j,htmlText:o(ct,l),htmlTextData:j,image:o(yi),label:l,link:o(ft),listItem:o(ki),listItemValue:p,listOrdered:o(ht,c),listUnordered:o(ht),paragraph:o(xi),reference:g,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(ut),strong:o(bi),thematicBreak:o(Si)},exit:{atxHeading:s(),atxHeadingSequence:R,autolink:s(),autolinkEmail:Te,autolinkProtocol:ye,blockQuote:s(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:we,characterReferenceMarkerNumeric:we,characterReferenceValue:Q,characterReference:Me,codeFenced:s(S),codeFencedFence:w,codeFencedFenceInfo:h,codeFencedFenceMeta:d,codeFlowValue:k,codeIndented:s(y),codeText:s(T),codeTextData:k,data:k,definition:s(),definitionDestinationString:F,definitionLabelString:I,definitionTitleString:C,emphasis:s(),hardBreakEscape:s(v),hardBreakTrailing:s(v),htmlFlow:s(q),htmlFlowData:k,htmlText:s(z),htmlTextData:k,image:s(X),label:he,labelText:le,lineEnding:P,link:s(U),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ae,resourceDestinationString:m,resourceTitleString:oe,resource:pe,setextHeading:s(H),setextHeadingLineSequence:M,setextHeadingText:b,strong:s(),thematicBreak:s()}};Fr(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(x){let A={type:"root",children:[]};const L={stack:[A],tokenStack:[],config:t,enter:a,exit:u,buffer:l,resume:f,data:n},N=[];let V=-1;for(;++V<x.length;)if(x[V][1].type==="listOrdered"||x[V][1].type==="listUnordered")if(x[V][0]==="enter")N.push(V);else{const ue=N.pop();V=i(x,ue,V)}for(V=-1;++V<x.length;){const ue=t[x[V][0]];Lr.call(ue,x[V][1].type)&&ue[x[V][1].type].call(Object.assign({sliceSerialize:x[V][2].sliceSerialize},L),x[V][1])}if(L.tokenStack.length>0){const ue=L.tokenStack[L.tokenStack.length-1];(ue[1]||Ft).call(L,void 0,ue[0])}for(A.position={start:ke(x.length>0?x[0][1].start:{line:1,column:1,offset:0}),end:ke(x.length>0?x[x.length-2][1].end:{line:1,column:1,offset:0})},V=-1;++V<t.transforms.length;)A=t.transforms[V](A)||A;return A}function i(x,A,L){let N=A-1,V=-1,ue=!1,Se,me,Ne,Be;for(;++N<=L;){const ne=x[N];switch(ne[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ne[0]==="enter"?V++:V--,Be=void 0;break}case"lineEndingBlank":{ne[0]==="enter"&&(Se&&!Be&&!V&&!Ne&&(Ne=N),Be=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Be=void 0}if(!V&&ne[0]==="enter"&&ne[1].type==="listItemPrefix"||V===-1&&ne[0]==="exit"&&(ne[1].type==="listUnordered"||ne[1].type==="listOrdered")){if(Se){let ve=N;for(me=void 0;ve--;){const ge=x[ve];if(ge[1].type==="lineEnding"||ge[1].type==="lineEndingBlank"){if(ge[0]==="exit")continue;me&&(x[me][1].type="lineEndingBlank",ue=!0),ge[1].type="lineEnding",me=ve}else if(!(ge[1].type==="linePrefix"||ge[1].type==="blockQuotePrefix"||ge[1].type==="blockQuotePrefixWhitespace"||ge[1].type==="blockQuoteMarker"||ge[1].type==="listItemIndent"))break}Ne&&(!me||Ne<me)&&(Se._spread=!0),Se.end=Object.assign({},me?x[me][1].start:ne[1].end),x.splice(me||N,0,["exit",Se,ne[2]]),N++,L++}if(ne[1].type==="listItemPrefix"){const ve={type:"listItem",_spread:!1,start:Object.assign({},ne[1].start),end:void 0};Se=ve,x.splice(N,0,["enter",ve,ne[2]]),N++,L++,Ne=void 0,Be=!0}}}return x[A][1]._spread=ue,L}function o(x,A){return L;function L(N){a.call(this,x(N),N),A&&A.call(this,N)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(x,A,L){this.stack[this.stack.length-1].children.push(x),this.stack.push(x),this.tokenStack.push([A,L||void 0]),x.position={start:ke(A.start),end:void 0}}function s(x){return A;function A(L){x&&x.call(this,L),u.call(this,L)}}function u(x,A){const L=this.stack.pop(),N=this.tokenStack.pop();if(N)N[0].type!==x.type&&(A?A.call(this,x,N[0]):(N[1]||Ft).call(this,x,N[0]));else throw new Error("Cannot close `"+x.type+"` ("+$e({start:x.start,end:x.end})+"): it’s not open");L.position.end=ke(x.end)}function f(){return Gn(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(x){if(this.data.expectingFirstListItemValue){const A=this.stack[this.stack.length-2];A.start=Number.parseInt(this.sliceSerialize(x),10),this.data.expectingFirstListItemValue=void 0}}function h(){const x=this.resume(),A=this.stack[this.stack.length-1];A.lang=x}function d(){const x=this.resume(),A=this.stack[this.stack.length-1];A.meta=x}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x.replace(/(\r?\n|\r)$/g,"")}function I(x){const A=this.resume(),L=this.stack[this.stack.length-1];L.label=A,L.identifier=se(this.sliceSerialize(x)).toLowerCase()}function C(){const x=this.resume(),A=this.stack[this.stack.length-1];A.title=x}function F(){const x=this.resume(),A=this.stack[this.stack.length-1];A.url=x}function R(x){const A=this.stack[this.stack.length-1];if(!A.depth){const L=this.sliceSerialize(x).length;A.depth=L}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function M(x){const A=this.stack[this.stack.length-1];A.depth=this.sliceSerialize(x).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function j(x){const L=this.stack[this.stack.length-1].children;let N=L[L.length-1];(!N||N.type!=="text")&&(N=wi(),N.position={start:ke(x.start),end:void 0},L.push(N)),this.stack.push(N)}function k(x){const A=this.stack.pop();A.value+=this.sliceSerialize(x),A.position.end=ke(x.end)}function P(x){const A=this.stack[this.stack.length-1];if(this.data.atHardBreak){const L=A.children[A.children.length-1];L.position.end=ke(x.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(A.type)&&(j.call(this,x),k.call(this,x))}function v(){this.data.atHardBreak=!0}function q(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x}function z(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x}function T(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x}function U(){const x=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=A,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function X(){const x=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=A,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function le(x){const A=this.sliceSerialize(x),L=this.stack[this.stack.length-2];L.label=sa(A),L.identifier=se(A).toLowerCase()}function he(){const x=this.stack[this.stack.length-1],A=this.resume(),L=this.stack[this.stack.length-1];if(this.data.inReference=!0,L.type==="link"){const N=x.children;L.children=N}else L.alt=A}function m(){const x=this.resume(),A=this.stack[this.stack.length-1];A.url=x}function oe(){const x=this.resume(),A=this.stack[this.stack.length-1];A.title=x}function pe(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function ae(x){const A=this.resume(),L=this.stack[this.stack.length-1];L.label=A,L.identifier=se(this.sliceSerialize(x)).toLowerCase(),this.data.referenceType="full"}function we(x){this.data.characterReferenceType=x.type}function Q(x){const A=this.sliceSerialize(x),L=this.data.characterReferenceType;let N;L?(N=Sr(A,L==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):N=Kn(A);const V=this.stack[this.stack.length-1];V.value+=N}function Me(x){const A=this.stack.pop();A.position.end=ke(x.end)}function ye(x){k.call(this,x);const A=this.stack[this.stack.length-1];A.url=this.sliceSerialize(x)}function Te(x){k.call(this,x);const A=this.stack[this.stack.length-1];A.url="mailto:"+this.sliceSerialize(x)}function Pe(){return{type:"blockquote",children:[]}}function nn(){return{type:"code",lang:null,meta:null,value:""}}function mi(){return{type:"inlineCode",value:""}}function gi(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function di(){return{type:"emphasis",children:[]}}function ut(){return{type:"heading",depth:0,children:[]}}function st(){return{type:"break"}}function ct(){return{type:"html",value:""}}function yi(){return{type:"image",title:null,url:"",alt:null}}function ft(){return{type:"link",title:null,url:"",children:[]}}function ht(x){return{type:"list",ordered:x.type==="listOrdered",start:null,spread:x._spread,children:[]}}function ki(x){return{type:"listItem",spread:x._spread,checked:null,children:[]}}function xi(){return{type:"paragraph",children:[]}}function bi(){return{type:"strong",children:[]}}function wi(){return{type:"text",value:""}}function Si(){return{type:"thematicBreak"}}}function ke(e){return{line:e.line,column:e.column,offset:e.offset}}function Fr(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Fr(e,r):pa(e,r)}}function pa(e,t){let n;for(n in t)if(Lr.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Ft(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+$e({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+$e({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+$e({start:t.start,end:t.end})+") is still open")}function ma(e){const t=this;t.parser=n;function n(r){return fa(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function ga(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function da(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
5
5
  `}]}function ya(e,t){const n=t.value?t.value+`
6
6
  `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function ka(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xa(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ba(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Oe(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,a+=1,e.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function wa(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Sa(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Rr(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function Ca(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Rr(e,t);const i={src:Oe(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function Ea(e,t){const n={src:Oe(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Ia(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Aa(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Rr(e,t);const i={href:Oe(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function Ta(e,t){const n={href:Oe(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Pa(e,t,n){const r=e.all(t),i=n?va(n):_r(t),o={},l=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(i||a!==0||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:`
7
7
  `}),f.type==="element"&&f.tagName==="p"&&!i?l.push(...f.children):l.push(f)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&l.push({type:"text",value:`
@@ -0,0 +1 @@
1
+ import{r,j as e}from"./vendor-react-9M-xu2bR.js";import{c as w}from"./infrastructure-n1j_TN6w.js";import{B as x,C as b,v as y,G as v}from"./ui-components-BxvihT61.js";import"./framework-BM176iet.js";import{b as i}from"./vendor-ui-utils-3tkeUVaX.js";import{a as z}from"./index-CTBPkbPG.js";import{s as C}from"./systemObjects-DSpePIIy.js";import{b8 as h,m as k,L as O,l as S}from"./vendor-icons-ndICq8DC.js";import"./vendor-i18n-E3-WitRV.js";import"./vendor-radix-C6qchjxv.js";import"./vendor-charts-BLNOCZWl.js";import"./vendor-objectstack-YKtcdalX.js";import"./vendor-zod-DxQVy2_o.js";import"./plugins-core-qwgXbAqa.js";import"./vendor-dndkit-CX1oDZqy.js";import"./plugins-views-CveFN6PV.js";import"./data-adapter-rvE3xy2B.js";import"./ui-layout-C6KWQtRO.js";const p=C.find(l=>l.name==="sys_org"),c=p.views[0].columns;function Q(){const{user:l}=w(),n=l?.role==="admin",t=z(),[m,u]=r.useState([]),[g,d]=r.useState(!0),a=r.useCallback(async()=>{if(t){d(!0);try{const s=await t.find("sys_org");u(s.data||[])}catch{i.error("Failed to load organizations")}finally{d(!1)}}},[t]);r.useEffect(()=>{a()},[a]);const f=r.useCallback(async()=>{if(t)try{await t.create("sys_org",{name:"New Organization",slug:"",plan:"free",status:"active"}),i.success("Organization created"),a()}catch{i.error("Failed to create organization")}},[t,a]),j=r.useCallback(async s=>{if(t)try{await t.delete("sys_org",s),i.success("Organization deleted"),a()}catch{i.error("Failed to delete organization")}},[t,a]);return e.jsxs("div",{className:"flex flex-col gap-4 sm:gap-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[e.jsx("div",{className:"bg-primary/10 p-2 rounded-md shrink-0",children:e.jsx(h,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h1",{className:"text-xl sm:text-2xl font-bold tracking-tight",children:"Organization Management"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:"Manage organizations and their members"})]})]}),n&&e.jsxs(x,{size:"sm",className:"shrink-0 gap-2",onClick:f,children:[e.jsx(k,{className:"h-4 w-4"}),"Add Organization"]})]}),e.jsx(b,{children:e.jsx(y,{className:"p-0",children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b bg-muted/50",children:[c.map(s=>{const o=p.fields.find(N=>N.name===s);return e.jsx("th",{className:"h-10 px-3 sm:px-4 text-left font-medium text-muted-foreground whitespace-nowrap",children:o?.label??s},s)}),n&&e.jsx("th",{className:"h-10 px-3 sm:px-4 text-right font-medium text-muted-foreground",children:"Actions"})]})}),e.jsx("tbody",{children:g?e.jsx("tr",{children:e.jsx("td",{className:"p-6 text-center",colSpan:c.length+(n?1:0),children:e.jsx(O,{className:"h-6 w-6 animate-spin mx-auto text-muted-foreground"})})}):m.length===0?e.jsx("tr",{children:e.jsx("td",{className:"p-4 sm:p-6 text-center text-sm text-muted-foreground",colSpan:c.length+(n?1:0),children:e.jsxs("div",{className:"flex flex-col items-center gap-2 py-4",children:[e.jsx(h,{className:"h-8 w-8 text-muted-foreground/50"}),e.jsx("p",{children:"No organizations found."}),e.jsx(v,{variant:"secondary",className:"text-xs",children:"plugin-grid powered"})]})})}):m.map(s=>e.jsxs("tr",{className:"border-b hover:bg-muted/50 transition-colors",children:[c.map(o=>e.jsx("td",{className:"h-10 px-3 sm:px-4 whitespace-nowrap",children:String(s[o]??"")},o)),n&&e.jsx("td",{className:"h-10 px-3 sm:px-4 text-right",children:e.jsx(x,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>j(s.id||s._id),children:e.jsx(S,{className:"h-3.5 w-3.5 text-destructive"})})})]},s.id||s._id))})]})})})})]})}export{Q as OrgManagementPage};
@@ -0,0 +1 @@
1
+ import{h as v,i as y,r as s,j as a}from"./vendor-react-9M-xu2bR.js";import{PageCanvasEditor as j}from"./index-Dv78M4Xq.js";import{b as d}from"./vendor-ui-utils-3tkeUVaX.js";import{a as w,b as k}from"./index-CTBPkbPG.js";import{A as E}from"./vendor-icons-ndICq8DC.js";import"./framework-BM176iet.js";import"./vendor-objectstack-YKtcdalX.js";import"./vendor-zod-DxQVy2_o.js";import"./ui-components-BxvihT61.js";import"./vendor-radix-C6qchjxv.js";import"./vendor-i18n-E3-WitRV.js";import"./vendor-charts-BLNOCZWl.js";import"./infrastructure-n1j_TN6w.js";import"./plugins-core-qwgXbAqa.js";import"./vendor-dndkit-CX1oDZqy.js";import"./plugins-views-CveFN6PV.js";import"./data-adapter-rvE3xy2B.js";import"./ui-layout-C6KWQtRO.js";function q(){const f=v(),{pageName:t}=y(),i=w(),{pages:g}=k(),r=g?.find(e=>e.name===t),[l,h]=s.useState(()=>r||{type:"page",name:t??"",title:t??"",children:[]}),u=s.useRef(l);u.current=l;const n=s.useCallback(async e=>{try{if(i)return await i.update("sys_page",t,e),!0}catch{}return!1},[i,t]),m=s.useCallback(async e=>{h(e),await n(e)},[n]);s.useEffect(()=>{const e=o=>{(o.ctrlKey||o.metaKey)&&o.key==="s"&&(o.preventDefault(),n(u.current).then(c=>{c&&d.success("Page saved")}))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[n]);const x=s.useCallback(e=>{const o=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),c=URL.createObjectURL(o),p=document.createElement("a");p.href=c,p.download=`${t||"page"}.json`,p.click(),URL.revokeObjectURL(c),d.success("Page schema exported")},[t]),b=s.useCallback(e=>{d.success("Page schema imported"),m(e)},[m]);return r?a.jsxs("div",{className:"h-full flex flex-col","data-testid":"page-design-page",children:[a.jsxs("div",{className:"flex items-center gap-3 border-b px-4 py-3 sm:px-6",children:[a.jsx("button",{type:"button",onClick:()=>f(-1),className:"rounded p-1.5 text-muted-foreground hover:text-foreground","aria-label":"Go back","data-testid":"page-design-back",children:a.jsx(E,{className:"h-4 w-4"})}),a.jsxs("h1",{className:"text-lg font-semibold tracking-tight truncate",children:["Edit Page: ",r.label||r.title||t]})]}),a.jsx("div",{className:"flex-1 overflow-auto p-4 sm:p-6",children:a.jsx(j,{schema:l,onChange:m,onExport:x,onImport:b})})]}):a.jsxs("div",{className:"h-full flex items-center justify-center text-muted-foreground",children:['Page "',t,'" not found']})}export{q as PageDesignPage};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Dv78M4Xq.js","assets/framework-BM176iet.js","assets/vendor-react-9M-xu2bR.js","assets/vendor-objectstack-YKtcdalX.js","assets/vendor-zod-DxQVy2_o.js","assets/ui-components-BxvihT61.js","assets/vendor-ui-utils-3tkeUVaX.js","assets/vendor-icons-ndICq8DC.js","assets/vendor-radix-C6qchjxv.js","assets/vendor-i18n-E3-WitRV.js","assets/vendor-charts-BLNOCZWl.js","assets/infrastructure-n1j_TN6w.js","assets/ui-components-CRV2BvKI.css"])))=>i.map(i=>d[i]);
2
+ import{S as w,h as v,i as j,j as b,k as y,b7 as S,b8 as E,b9 as N,ap as k}from"./ui-components-BxvihT61.js";import{r,j as e,i as D,k as P}from"./vendor-react-9M-xu2bR.js";import{S as C}from"./framework-BM176iet.js";import{b as _}from"./vendor-ui-utils-3tkeUVaX.js";import{a as O,u as R,b as T,M as L}from"./index-CTBPkbPG.js";import{ak as M,at as $}from"./vendor-icons-ndICq8DC.js";import"./vendor-radix-C6qchjxv.js";import"./vendor-i18n-E3-WitRV.js";import"./vendor-charts-BLNOCZWl.js";import"./infrastructure-n1j_TN6w.js";import"./vendor-objectstack-YKtcdalX.js";import"./vendor-zod-DxQVy2_o.js";import"./plugins-core-qwgXbAqa.js";import"./vendor-dndkit-CX1oDZqy.js";import"./plugins-views-CveFN6PV.js";import"./data-adapter-rvE3xy2B.js";import"./ui-layout-C6KWQtRO.js";function A({open:a,onOpenChange:x,title:o,description:m,schema:i,onSchemaChange:p,collection:s,recordName:l,children:h}){const u=O(),f=r.useRef(i);f.current=i;const c=r.useCallback(async t=>{try{if(u)return await u.update(s,l,t),!0}catch(n){console.warn("[DesignDrawer] Auto-save failed:",n)}return!1},[u,s,l]),d=r.useCallback(async t=>{p(t),await c(t)},[p,c]);return r.useEffect(()=>{if(!a)return;const t=n=>{(n.ctrlKey||n.metaKey)&&n.key==="s"&&(n.preventDefault(),c(f.current).then(g=>{g&&_.success(`${o} saved`)}))};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[a,c,o]),e.jsx(w,{open:a,onOpenChange:x,modal:!1,children:e.jsxs(v,{side:"right",hideOverlay:!0,className:"w-full sm:w-[540px] sm:max-w-[540px] lg:w-[640px] lg:max-w-[640px] p-0 flex flex-col","data-testid":"design-drawer",children:[e.jsxs(j,{className:"px-4 py-3 border-b shrink-0",children:[e.jsx(b,{children:o}),e.jsx(y,{className:m?"":"sr-only",children:m||`Visual editor — configure and preview ${o}`})]}),e.jsx("div",{className:"flex-1 overflow-auto p-4",children:h(i,d)})]})})}const I=r.lazy(()=>k(()=>import("./index-Dv78M4Xq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])).then(a=>({default:a.PageCanvasEditor})));function ae(){const{pageName:a}=D(),[x]=P(),{showDebug:o}=R(),[m,i]=r.useState(!1),{pages:p}=T(),s=p?.find(t=>t.name===a),[l,h]=r.useState(null),u=r.useCallback(()=>{h(s),i(!0)},[s]),f=r.useCallback(t=>{i(t)},[]);if(!s)return e.jsx("div",{className:"h-full flex items-center justify-center p-8",children:e.jsxs(S,{children:[e.jsx("div",{className:"mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-muted",children:e.jsx(M,{className:"h-6 w-6 text-muted-foreground"})}),e.jsx(E,{children:"Page Not Found"}),e.jsxs(N,{children:['The page "',a,'" could not be found. It may have been removed or renamed.']})]})});const c=Object.fromEntries(x.entries()),d=m&&l?l:s;return e.jsxs("div",{className:"flex flex-row h-full w-full overflow-hidden relative",children:[e.jsxs("div",{className:"flex-1 overflow-auto h-full relative group",children:[e.jsx("div",{className:`absolute top-1.5 sm:top-2 right-1.5 sm:right-2 z-50 flex items-center gap-1.5 transition-opacity ${o?"opacity-100":"opacity-0 group-hover:opacity-100"}`,children:e.jsxs("button",{type:"button",onClick:u,className:"inline-flex items-center gap-1.5 rounded-md border border-input bg-background px-2.5 py-1.5 text-xs font-medium text-muted-foreground shadow-sm hover:bg-accent hover:text-accent-foreground","data-testid":"page-edit-button",children:[e.jsx($,{className:"h-3.5 w-3.5"}),"Edit"]})}),e.jsx(C,{schema:{...d,type:d.type||"page",context:{...d.context,params:c}}})]}),e.jsx(L,{open:o,sections:[{title:"Page Configuration",data:d}]}),e.jsx(A,{open:m,onOpenChange:f,title:`Edit Page: ${s.label||s.title||a}`,schema:l||s,onSchemaChange:h,collection:"sys_page",recordName:a,children:(t,n)=>e.jsx(r.Suspense,{fallback:e.jsx("div",{className:"p-4 text-muted-foreground",children:"Loading editor…"}),children:e.jsx(I,{schema:t,onChange:n})})})]})}export{ae as PageView};