@synnaxlabs/pluto 0.25.1 → 0.26.7

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 (69) hide show
  1. package/README.md +4 -3
  2. package/dist/{Animated-B5JgnUUd.cjs → Animated-C-Fn9eLa.cjs} +1 -1
  3. package/dist/{Animated-DLex_hI8.js → Animated-DEXyK03s.js} +1 -1
  4. package/dist/{Keyboard-Dq4czdJl.js → Keyboard-D2y8u-A6.js} +1 -1
  5. package/dist/{Keyboard-cRnR69tU.cjs → Keyboard-DkBJ6mo5.cjs} +1 -1
  6. package/dist/{LinePlot-Co1s_Tqs.cjs → LinePlot-Cgjyihyx.cjs} +7 -7
  7. package/dist/{LinePlot-CQD2Wqca.js → LinePlot-DYkTuZP2.js} +1 -1
  8. package/dist/{Link-BhQ-K5io.cjs → Link-BTJDCfSs.cjs} +1 -1
  9. package/dist/{Link-0lZQ38cR.js → Link-CBJMkW3j.js} +1 -1
  10. package/dist/{List-xUwGRWFg.js → List-DQ5KNkbE.js} +2 -2
  11. package/dist/{List-lSysLR6L.cjs → List-bpq4WGKS.cjs} +1 -1
  12. package/dist/{Toggle-BYLe2YvN.js → Toggle-2UJtIoEe.js} +1 -1
  13. package/dist/{Toggle-BKoV45C3.cjs → Toggle-CICqV_L2.cjs} +1 -1
  14. package/dist/{aggregator-ZdqEkvBK.js → aggregator-BTr6vhAN.js} +2372 -2288
  15. package/dist/aggregator-CYlhZeym.cjs +51 -0
  16. package/dist/button.cjs +1 -1
  17. package/dist/button.js +1 -1
  18. package/dist/color.cjs +1 -1
  19. package/dist/color.js +1 -1
  20. package/dist/dropdown.cjs +1 -1
  21. package/dist/dropdown.js +1 -1
  22. package/dist/ether.cjs +1 -1
  23. package/dist/ether.js +4 -4
  24. package/dist/{external-C5O8yyPx.cjs → external-5sM5N2VW.cjs} +1 -1
  25. package/dist/{external-wfqDajHH.cjs → external-BFMmnG8X.cjs} +1 -1
  26. package/dist/{external-CCaVfdMh.js → external-BT_-8FGY.js} +2 -2
  27. package/dist/{external-CZvU-o3e.js → external-BW10aqAd.js} +2 -2
  28. package/dist/{external-DluodP6q.js → external-BW4VYEGd.js} +2 -2
  29. package/dist/{external-CZ4JWSju.js → external-BqEoRX0C.js} +2 -2
  30. package/dist/{external-Cq-09sZJ.js → external-C727M7V8.js} +42 -42
  31. package/dist/{external-BQS9le5M.cjs → external-CKhZ6pQ5.cjs} +1 -1
  32. package/dist/{external-ARvsEsOz.cjs → external-CUKyGhKO.cjs} +1 -1
  33. package/dist/{external-Bs4ZUlV0.cjs → external-CjpJQPg2.cjs} +1 -1
  34. package/dist/{external-DauKaEP3.cjs → external-Crwp6CSf.cjs} +1 -1
  35. package/dist/{external-BlA8AVL_.js → external-D3fxB_on.js} +3 -3
  36. package/dist/{external-D3r8Iptl.js → external-DDLu6Grz.js} +2 -2
  37. package/dist/{external-xb_RKgNH.cjs → external-DZazAjmw.cjs} +1 -1
  38. package/dist/{external--9Vu3Tvu.js → external-Djw4SjVz.js} +2 -2
  39. package/dist/{external-D8t2fJPR.js → external-IEF-QKNR.js} +3 -3
  40. package/dist/{external-Cq39ap_s.cjs → external-aMslGVso.cjs} +1 -1
  41. package/dist/{external-Gp6DgYYV.cjs → external-otevW3YE.cjs} +1 -1
  42. package/dist/{external-aHhj9dKH.cjs → external-t7zjVyib.cjs} +1 -1
  43. package/dist/{external-xFWuaTdI.js → external-te3uGVrs.js} +5 -5
  44. package/dist/{external-B432ukHJ.js → external-uvPI2OkG.js} +2 -2
  45. package/dist/{external-CYaPBMuM.cjs → external-wossX6OP.cjs} +1 -1
  46. package/dist/header.cjs +1 -1
  47. package/dist/header.js +1 -1
  48. package/dist/index.cjs +1 -1
  49. package/dist/index.js +140 -140
  50. package/dist/input.cjs +1 -1
  51. package/dist/input.js +1 -1
  52. package/dist/list.cjs +1 -1
  53. package/dist/list.js +1 -1
  54. package/dist/menu.cjs +1 -1
  55. package/dist/menu.js +1 -1
  56. package/dist/src/hardware/device/Select.d.ts.map +1 -1
  57. package/dist/src/vis/diagram/edge/Edge.d.ts.map +1 -1
  58. package/dist/tabs.cjs +1 -1
  59. package/dist/tabs.js +1 -1
  60. package/dist/text.cjs +1 -1
  61. package/dist/text.js +2 -2
  62. package/dist/theming.cjs +1 -1
  63. package/dist/theming.js +2 -2
  64. package/dist/tree.cjs +1 -1
  65. package/dist/tree.js +1 -1
  66. package/dist/triggers.cjs +1 -1
  67. package/dist/triggers.js +1 -1
  68. package/package.json +5 -5
  69. package/dist/aggregator-BjcY2k2l.cjs +0 -51
package/dist/button.js CHANGED
@@ -1,4 +1,4 @@
1
- import { e } from "./external--9Vu3Tvu.js";
1
+ import { e } from "./external-Djw4SjVz.js";
2
2
  export {
3
3
  e as Button
4
4
  };
package/dist/color.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-wfqDajHH.cjs");exports.Color=e.external;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-BFMmnG8X.cjs");exports.Color=e.external;
package/dist/color.js CHANGED
@@ -1,4 +1,4 @@
1
- import { e } from "./external-D3r8Iptl.js";
1
+ import { e } from "./external-DDLu6Grz.js";
2
2
  export {
3
3
  e as Color
4
4
  };
package/dist/dropdown.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Toggle-BKoV45C3.cjs");exports.Dropdown=e.Dropdown;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Toggle-CICqV_L2.cjs");exports.Dropdown=e.Dropdown;
package/dist/dropdown.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as p } from "./Toggle-BYLe2YvN.js";
1
+ import { D as p } from "./Toggle-2UJtIoEe.js";
2
2
  export {
3
3
  p as Dropdown
4
4
  };
package/dist/ether.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./aggregator-BjcY2k2l.cjs"),n=require("./css-DY1Oedjj.cjs"),e=require("./LinePlot-Co1s_Tqs.cjs"),l=Object.freeze(Object.defineProperty({__proto__:null,Provider:t.Provider,REGISTRY:t.REGISTRY,SYNNAX_DARK:t.SYNNAX_DARK,SYNNAX_LIGHT:t.SYNNAX_LIGHT,SYNNAX_THEMES:t.SYNNAX_THEMES,fontString:t.fontString,themeZ:t.themeZ,use:t.use},Symbol.toStringTag,{value:"Module"})),a=Object.freeze(Object.defineProperty({__proto__:null,Context:e.Context,Controller:e.Controller,Eraser:e.Eraser,GLProgram:e.GLProgram,Loop:e.Loop,REASON_DATA:e.REASON_DATA,REASON_LAYOUT:e.REASON_LAYOUT,REASON_TOOL:e.REASON_TOOL},Symbol.toStringTag,{value:"Module"})),i=()=>{const r=new t.l((R,S)=>postMessage(R,S));onmessage=r.handle.bind(r);const o={...e.REGISTRY,...e.REGISTRY$1,...e.REGISTRY$2,...e.REGISTRY$3,...e.REGISTRY$4,...e.REGISTRY$5,...e.REGISTRY$6,...e.REGISTRY$7,...e.REGISTRY$8,...e.REGISTRY$9,...e.REGISTRY$10,...e.REGISTRY$11,...t.REGISTRY$1,...e.REGISTRY$12,...e.REGISTRY$13,...t.REGISTRY,...e.REGISTRY$14,...e.REGISTRY$15,...e.REGISTRY$16};t.render({worker:r.route("vis"),registry:o})},T=Object.freeze(Object.defineProperty({__proto__:null,render:i},Symbol.toStringTag,{value:"Module"})),s=Object.freeze(Object.defineProperty({__proto__:null,LinePlot:e.LinePlot,REGISTRY:e.REGISTRY$7,XAxis:e.XAxis,YAxis:e.YAxis,linePlotStateZ:e.linePlotStateZ,xAxisStateZ:e.xAxisStateZ,yAxisStateZ:e.yAxisStateZ},Symbol.toStringTag,{value:"Module"}));exports.aether=t.aether;exports.color=n.color;exports.canvas=e.canvas;exports.diagram=e.Diagram;exports.measure=e.measure;exports.rule=e.aether;exports.synnax=e.provider;exports.telem=e.external;exports.tooltip=e.tooltip;exports.value=e.value;exports.lineplot=s;exports.pluto=T;exports.render=a;exports.theming=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./aggregator-CYlhZeym.cjs"),n=require("./css-DY1Oedjj.cjs"),e=require("./LinePlot-Cgjyihyx.cjs"),l=Object.freeze(Object.defineProperty({__proto__:null,Provider:t.Provider,REGISTRY:t.REGISTRY,SYNNAX_DARK:t.SYNNAX_DARK,SYNNAX_LIGHT:t.SYNNAX_LIGHT,SYNNAX_THEMES:t.SYNNAX_THEMES,fontString:t.fontString,themeZ:t.themeZ,use:t.use},Symbol.toStringTag,{value:"Module"})),a=Object.freeze(Object.defineProperty({__proto__:null,Context:e.Context,Controller:e.Controller,Eraser:e.Eraser,GLProgram:e.GLProgram,Loop:e.Loop,REASON_DATA:e.REASON_DATA,REASON_LAYOUT:e.REASON_LAYOUT,REASON_TOOL:e.REASON_TOOL},Symbol.toStringTag,{value:"Module"})),i=()=>{const r=new t.l((R,S)=>postMessage(R,S));onmessage=r.handle.bind(r);const o={...e.REGISTRY,...e.REGISTRY$1,...e.REGISTRY$2,...e.REGISTRY$3,...e.REGISTRY$4,...e.REGISTRY$5,...e.REGISTRY$6,...e.REGISTRY$7,...e.REGISTRY$8,...e.REGISTRY$9,...e.REGISTRY$10,...e.REGISTRY$11,...t.REGISTRY$1,...e.REGISTRY$12,...e.REGISTRY$13,...t.REGISTRY,...e.REGISTRY$14,...e.REGISTRY$15,...e.REGISTRY$16};t.render({worker:r.route("vis"),registry:o})},T=Object.freeze(Object.defineProperty({__proto__:null,render:i},Symbol.toStringTag,{value:"Module"})),s=Object.freeze(Object.defineProperty({__proto__:null,LinePlot:e.LinePlot,REGISTRY:e.REGISTRY$7,XAxis:e.XAxis,YAxis:e.YAxis,linePlotStateZ:e.linePlotStateZ,xAxisStateZ:e.xAxisStateZ,yAxisStateZ:e.yAxisStateZ},Symbol.toStringTag,{value:"Module"}));exports.aether=t.aether;exports.color=n.color;exports.canvas=e.canvas;exports.diagram=e.Diagram;exports.measure=e.measure;exports.rule=e.aether;exports.synnax=e.provider;exports.telem=e.external;exports.tooltip=e.tooltip;exports.value=e.value;exports.lineplot=s;exports.pluto=T;exports.render=a;exports.theming=l;
package/dist/ether.js CHANGED
@@ -1,8 +1,8 @@
1
- import { P as R, R as a, S as n, a as S, b as l, f as T, t as E, u as i, l as Y, c as G, r as $ } from "./aggregator-ZdqEkvBK.js";
2
- import { d as ae } from "./aggregator-ZdqEkvBK.js";
1
+ import { P as R, R as a, S as n, a as S, b as l, f as T, t as E, u as i, l as Y, c as G, r as $ } from "./aggregator-BTr6vhAN.js";
2
+ import { d as ae } from "./aggregator-BTr6vhAN.js";
3
3
  import { d as te } from "./css-DEMSADUS.js";
4
- import { C as I, a as _, E as c, G as p, L as u, R as d, b as m, c as f, d as g, e as b, f as x, g as A, h as O, i as y, j, k as s, l as v, m as N, n as P, o as L, p as h, q as M, r as z, s as X, t as w, B as C, X as Z, Y as D, F as H, H as k, I as q } from "./LinePlot-CQD2Wqca.js";
5
- import { w as re, D as Re, y as ne, z as Se, u as le, v as Te, x as Ee, A as ie } from "./LinePlot-CQD2Wqca.js";
4
+ import { C as I, a as _, E as c, G as p, L as u, R as d, b as m, c as f, d as g, e as b, f as x, g as A, h as O, i as y, j, k as s, l as v, m as N, n as P, o as L, p as h, q as M, r as z, s as X, t as w, B as C, X as Z, Y as D, F as H, H as k, I as q } from "./LinePlot-DYkTuZP2.js";
5
+ import { w as re, D as Re, y as ne, z as Se, u as le, v as Te, x as Ee, A as ie } from "./LinePlot-DYkTuZP2.js";
6
6
  const U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7
7
  __proto__: null,
8
8
  Provider: R,
@@ -1 +1 @@
1
- "use strict";const s=require("./Toggle-BKoV45C3.cjs"),n=require("./jsx-runtime-Cek9Ww4S.cjs"),o=require("./aggregator-BjcY2k2l.cjs"),R=require("react"),l=require("./css-DY1Oedjj.cjs"),p=require("./Pack-BM_LmeO7.cjs"),D=({value:t,onChange:r,onBlur:e,...a})=>{const g=new o.m(t,"UTC"),[m,S]=R.useState(g.fString("ISO","local").slice(0,-1)),[d,x]=R.useState(!0),j=u=>{let c=u.toString();S(c);let i=new o.m(u,"UTC");c.length<23&&(c+=".000"),i=i.add(BigInt(o.m.now().date().getTimezoneOffset()-i.date().getTimezoneOffset())*o.w.MINUTE.valueOf());let C=!1;try{C=i.fString("ISO","local").slice(0,-1)===c}catch{console.error("e")}if(!C){x(!1);return}r(Number(i.valueOf())),x(!0)},f=u=>{x(!0),S(new o.m(t,"UTC").fString("ISO","local").slice(0,-1)),e==null||e(u)};return n.jsxRuntimeExports.jsx(s.Text$1,{type:"datetime-local",onBlur:f,required:!1,value:d?new o.m(t,"UTC").fString("ISO","local").slice(0,-1):m,onChange:j,...a})},T=({className:t,variant:r="error",...e})=>n.jsxRuntimeExports.jsx(s.Text,{className:l.CSS(l.CSS.B("input-help-text"),l.CSS.BM("input-help-text",r),t),level:"small",...e}),E=({className:t,required:r=!1,children:e,...a})=>n.jsxRuntimeExports.jsxs("label",{className:l.CSS(l.CSS.B("input-label"),t),...a,children:[e," ",r&&n.jsxRuntimeExports.jsx("span",{className:l.CSS.B("required-indicator"),children:"*"})]}),O=(t,r="x")=>t??(l.g.construct(r)==="y"?"stretch":"center"),h=({label:t,showLabel:r=!0,helpText:e,direction:a="y",className:g,children:m,required:S,align:d,size:x="small",padHelpText:j=!1,helpTextVariant:f,showHelpText:u=!0,...c})=>{let i;return u===!1&&r===!1?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:m}):(a==="x"?i=n.jsxRuntimeExports.jsxs(p.Space,{direction:"y",size:"small",children:[m,(j||e!=null&&e.length>0)&&n.jsxRuntimeExports.jsx(T,{variant:f,children:e})]}):i=n.jsxRuntimeExports.jsxs(p.Space,{direction:"y",size:1/3,children:[m,(j||e!=null&&e.length>0)&&n.jsxRuntimeExports.jsx(T,{variant:f,children:e})]}),n.jsxRuntimeExports.jsxs(p.Space,{className:l.CSS(l.CSS.B("input-item"),g),direction:a,size:x,align:O(d,a),...c,children:[r&&n.jsxRuntimeExports.jsx(E,{required:S,children:t}),i]}))},b=Object.freeze(Object.defineProperty({__proto__:null,Date:s.Date,DateTime:D,DragButton:s.DragButton,HelpText:T,Item:h,Label:E,Numeric:s.Numeric,Switch:s.Switch$1,Text:s.Text$1,TextArea:s.TextArea,Time:s.Time,combineDateAndTimeValue:s.combineDateAndTimeValue,useDate:s.useDate,useTime:s.useTime},Symbol.toStringTag,{value:"Module"}));exports.Item=h;exports.external=b;
1
+ "use strict";const s=require("./Toggle-CICqV_L2.cjs"),n=require("./jsx-runtime-Cek9Ww4S.cjs"),o=require("./aggregator-CYlhZeym.cjs"),R=require("react"),l=require("./css-DY1Oedjj.cjs"),p=require("./Pack-BM_LmeO7.cjs"),D=({value:t,onChange:r,onBlur:e,...a})=>{const g=new o.m(t,"UTC"),[m,S]=R.useState(g.fString("ISO","local").slice(0,-1)),[d,x]=R.useState(!0),j=u=>{let c=u.toString();S(c);let i=new o.m(u,"UTC");c.length<23&&(c+=".000"),i=i.add(BigInt(o.m.now().date().getTimezoneOffset()-i.date().getTimezoneOffset())*o.w.MINUTE.valueOf());let C=!1;try{C=i.fString("ISO","local").slice(0,-1)===c}catch{console.error("e")}if(!C){x(!1);return}r(Number(i.valueOf())),x(!0)},f=u=>{x(!0),S(new o.m(t,"UTC").fString("ISO","local").slice(0,-1)),e==null||e(u)};return n.jsxRuntimeExports.jsx(s.Text$1,{type:"datetime-local",onBlur:f,required:!1,value:d?new o.m(t,"UTC").fString("ISO","local").slice(0,-1):m,onChange:j,...a})},T=({className:t,variant:r="error",...e})=>n.jsxRuntimeExports.jsx(s.Text,{className:l.CSS(l.CSS.B("input-help-text"),l.CSS.BM("input-help-text",r),t),level:"small",...e}),E=({className:t,required:r=!1,children:e,...a})=>n.jsxRuntimeExports.jsxs("label",{className:l.CSS(l.CSS.B("input-label"),t),...a,children:[e," ",r&&n.jsxRuntimeExports.jsx("span",{className:l.CSS.B("required-indicator"),children:"*"})]}),O=(t,r="x")=>t??(l.g.construct(r)==="y"?"stretch":"center"),h=({label:t,showLabel:r=!0,helpText:e,direction:a="y",className:g,children:m,required:S,align:d,size:x="small",padHelpText:j=!1,helpTextVariant:f,showHelpText:u=!0,...c})=>{let i;return u===!1&&r===!1?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:m}):(a==="x"?i=n.jsxRuntimeExports.jsxs(p.Space,{direction:"y",size:"small",children:[m,(j||e!=null&&e.length>0)&&n.jsxRuntimeExports.jsx(T,{variant:f,children:e})]}):i=n.jsxRuntimeExports.jsxs(p.Space,{direction:"y",size:1/3,children:[m,(j||e!=null&&e.length>0)&&n.jsxRuntimeExports.jsx(T,{variant:f,children:e})]}),n.jsxRuntimeExports.jsxs(p.Space,{className:l.CSS(l.CSS.B("input-item"),g),direction:a,size:x,align:O(d,a),...c,children:[r&&n.jsxRuntimeExports.jsx(E,{required:S,children:t}),i]}))},b=Object.freeze(Object.defineProperty({__proto__:null,Date:s.Date,DateTime:D,DragButton:s.DragButton,HelpText:T,Item:h,Label:E,Numeric:s.Numeric,Switch:s.Switch$1,Text:s.Text$1,TextArea:s.TextArea,Time:s.Time,combineDateAndTimeValue:s.combineDateAndTimeValue,useDate:s.useDate,useTime:s.useTime},Symbol.toStringTag,{value:"Module"}));exports.Item=h;exports.external=b;
@@ -1 +1 @@
1
- "use strict";const e=require("./css-DY1Oedjj.cjs"),l=require("./jsx-runtime-Cek9Ww4S.cjs"),r=require("./Toggle-BKoV45C3.cjs"),b=require("react");require("./aggregator-BjcY2k2l.cjs");require("./Pack-BM_LmeO7.cjs");const d=({value:o,onChange:t,...u})=>{const i=s=>{s.hex==="transparent"&&t(e.ZERO),t(new e.Color(s.hex,s.rgb.a))};return l.jsxRuntimeExports.jsx(r.SketchPicker,{className:e.CSS.B("color-picker"),color:new e.Color(o).hex,onChange:i,presetColors:[],...u})},x="color",g=({value:o,onChange:t,className:u,size:i="medium",onVisibleChange:s,initialVisible:m,draggable:h=!0,...j})=>{const{visible:k,open:y,close:C}=r.use$1({onVisibleChange:s,initialVisible:m}),f=r.use().colors.gray.l0,c=new e.Color(o),w=r.useDraggingState(),S=b.useCallback(({items:a})=>{const[n]=r.filterByType(x,a);return n!=null&&n.key!==c.hex},[c.hex]),{startDrag:R,...E}=r.useDragAndDrop({type:"Color.Swatch",onDrop:({items:a})=>{const n=r.filterByType(x,a);return a.length>0&&(t==null||t(new e.Color(n[0].key))),n},canDrop:S}),p=l.jsxRuntimeExports.jsx(r.Button,{className:e.CSS(e.CSS.B("color-swatch"),e.CSS.size(i),c.contrast(f)>1.5&&c.a>.5&&e.CSS.M("no-border"),e.CSS.dropRegion(S(w)),u),draggable:h,onDragStart:()=>R([{type:x,key:c.hex}]),style:{backgroundColor:e.cssString(o)},variant:"text",onClick:y,size:i,tooltip:t!=null?l.jsxRuntimeExports.jsx(r.Text,{level:"small",children:"Click to change color"}):void 0,...E,...j});return t==null?p:l.jsxRuntimeExports.jsxs(r.Dialog,{close:C,visible:k,className:e.CSS.BE("color-swatch","dropdown"),keepMounted:!1,variant:"floating",children:[p,l.jsxRuntimeExports.jsx(d,{value:o,onChange:t})]})},D=Object.freeze(Object.defineProperty({__proto__:null,Color:e.Color,Picker:d,Swatch:g,ZERO:e.ZERO,crudeZ:e.crudeZ,cssString:e.cssString,fromHSLA:e.fromHSLA,toHex:e.toHex},Symbol.toStringTag,{value:"Module"}));exports.Swatch=g;exports.external=D;
1
+ "use strict";const e=require("./css-DY1Oedjj.cjs"),l=require("./jsx-runtime-Cek9Ww4S.cjs"),r=require("./Toggle-CICqV_L2.cjs"),b=require("react");require("./aggregator-CYlhZeym.cjs");require("./Pack-BM_LmeO7.cjs");const d=({value:o,onChange:t,...u})=>{const i=s=>{s.hex==="transparent"&&t(e.ZERO),t(new e.Color(s.hex,s.rgb.a))};return l.jsxRuntimeExports.jsx(r.SketchPicker,{className:e.CSS.B("color-picker"),color:new e.Color(o).hex,onChange:i,presetColors:[],...u})},x="color",g=({value:o,onChange:t,className:u,size:i="medium",onVisibleChange:s,initialVisible:m,draggable:h=!0,...j})=>{const{visible:k,open:y,close:C}=r.use$1({onVisibleChange:s,initialVisible:m}),f=r.use().colors.gray.l0,c=new e.Color(o),w=r.useDraggingState(),S=b.useCallback(({items:a})=>{const[n]=r.filterByType(x,a);return n!=null&&n.key!==c.hex},[c.hex]),{startDrag:R,...E}=r.useDragAndDrop({type:"Color.Swatch",onDrop:({items:a})=>{const n=r.filterByType(x,a);return a.length>0&&(t==null||t(new e.Color(n[0].key))),n},canDrop:S}),p=l.jsxRuntimeExports.jsx(r.Button,{className:e.CSS(e.CSS.B("color-swatch"),e.CSS.size(i),c.contrast(f)>1.5&&c.a>.5&&e.CSS.M("no-border"),e.CSS.dropRegion(S(w)),u),draggable:h,onDragStart:()=>R([{type:x,key:c.hex}]),style:{backgroundColor:e.cssString(o)},variant:"text",onClick:y,size:i,tooltip:t!=null?l.jsxRuntimeExports.jsx(r.Text,{level:"small",children:"Click to change color"}):void 0,...E,...j});return t==null?p:l.jsxRuntimeExports.jsxs(r.Dialog,{close:C,visible:k,className:e.CSS.BE("color-swatch","dropdown"),keepMounted:!1,variant:"floating",children:[p,l.jsxRuntimeExports.jsx(d,{value:o,onChange:t})]})},D=Object.freeze(Object.defineProperty({__proto__:null,Color:e.Color,Picker:d,Swatch:g,ZERO:e.ZERO,crudeZ:e.crudeZ,cssString:e.cssString,fromHSLA:e.fromHSLA,toHex:e.toHex},Symbol.toStringTag,{value:"Module"}));exports.Swatch=g;exports.external=D;
@@ -1,8 +1,8 @@
1
1
  import { j as a } from "./jsx-runtime-B6kdoens.js";
2
- import { A as u, g as d } from "./aggregator-ZdqEkvBK.js";
2
+ import { A as u, g as d } from "./aggregator-BTr6vhAN.js";
3
3
  import { createContext as v, useContext as j, isValidElement as f, Fragment as h } from "react";
4
4
  import { S as m } from "./Pack-E_3LSkGG.js";
5
- import { I as B, p as C, B as S, W as b } from "./Toggle-BYLe2YvN.js";
5
+ import { I as B, p as C, B as S, W as b } from "./Toggle-2UJtIoEe.js";
6
6
  import { C as n } from "./css-DEMSADUS.js";
7
7
  const x = v({
8
8
  divided: !1,
@@ -1,5 +1,5 @@
1
- import { S as e, a as t, b as a, t as r } from "./aggregator-ZdqEkvBK.js";
2
- import { P as s, S as o, t as S, u, a as i, b as n, c as m } from "./Toggle-BYLe2YvN.js";
1
+ import { S as e, a as t, b as a, t as r } from "./aggregator-BTr6vhAN.js";
2
+ import { P as s, S as o, t as S, u, a as i, b as n, c as m } from "./Toggle-2UJtIoEe.js";
3
3
  const p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4
4
  __proto__: null,
5
5
  Provider: s,
@@ -1,9 +1,9 @@
1
1
  import { j as o } from "./jsx-runtime-B6kdoens.js";
2
- import { y as M, I as T, k as _, W as S, e as L, Q as O } from "./Toggle-BYLe2YvN.js";
2
+ import { y as M, I as T, k as _, W as S, e as L, Q as O } from "./Toggle-2UJtIoEe.js";
3
3
  import { createContext as R, useCallback as v, useContext as Z } from "react";
4
4
  import { S as P, P as z } from "./Pack-E_3LSkGG.js";
5
5
  import { C as c, g as A } from "./css-DEMSADUS.js";
6
- import { j as Q, C as q } from "./aggregator-ZdqEkvBK.js";
6
+ import { j as Q, C as q } from "./aggregator-BTr6vhAN.js";
7
7
  import { z as p } from "zod";
8
8
  const F = (l = "", s = []) => {
9
9
  var n;
@@ -1,6 +1,6 @@
1
- import { ak as O, e as b, al as C, am as N, an as v, ao as w, ap as D, aq as z, ar as B, as as U, at as V } from "./Toggle-BYLe2YvN.js";
1
+ import { ak as O, e as b, al as C, am as N, an as v, ao as w, ap as D, aq as z, ar as B, as as U, at as V } from "./Toggle-2UJtIoEe.js";
2
2
  import { j as a } from "./jsx-runtime-B6kdoens.js";
3
- import { m as u, w as _ } from "./aggregator-ZdqEkvBK.js";
3
+ import { m as u, w as _ } from "./aggregator-BTr6vhAN.js";
4
4
  import { useState as I } from "react";
5
5
  import { C as n, g as A } from "./css-DEMSADUS.js";
6
6
  import { S as j } from "./Pack-E_3LSkGG.js";
@@ -1,12 +1,12 @@
1
- import { E as te, A as k, e as ne, n as re } from "./aggregator-ZdqEkvBK.js";
1
+ import { E as te, A as k, e as ne, n as re } from "./aggregator-BTr6vhAN.js";
2
2
  import { j as N } from "./jsx-runtime-B6kdoens.js";
3
- import { v as se, w as ae, k as le, n as oe, q as ie, C as ce, M as de, x as fe, y as ue, z as he, B as pe, A as W, E as me, F as ge, G as xe, H as ye } from "./Toggle-BYLe2YvN.js";
3
+ import { v as se, w as ae, k as le, n as oe, q as ie, C as ce, M as de, x as fe, y as ue, z as he, B as pe, A as W, E as me, F as ge, G as xe, H as ye } from "./Toggle-2UJtIoEe.js";
4
4
  import { memo as Ce, useState as Ee, useCallback as b, useMemo as Ne } from "react";
5
- import { L as be } from "./Link-0lZQ38cR.js";
6
- import { A as ve } from "./Animated-DLex_hI8.js";
5
+ import { L as be } from "./Link-CBJMkW3j.js";
6
+ import { A as ve } from "./Animated-DEXyK03s.js";
7
7
  import { C as u } from "./css-DEMSADUS.js";
8
8
  import "./Pack-E_3LSkGG.js";
9
- import { L as Te } from "./List-xUwGRWFg.js";
9
+ import { L as Te } from "./List-DQ5KNkbE.js";
10
10
  const X = (e, t) => t.includes(e.key), H = (e, t) => {
11
11
  t && e.sort((n, r) => te.stringsWithNumbers(n.name, r.name));
12
12
  let s = !1;
@@ -21,11 +21,11 @@ const X = (e, t) => t.includes(e.key), H = (e, t) => {
21
21
  depth: s = 0,
22
22
  sort: n = !0
23
23
  }) => {
24
- s === 0 && n && (e = e.sort((a, l) => a.name.localeCompare(l.name)));
24
+ s === 0 && n && (e = e.sort((a, o) => a.name.localeCompare(o.name)));
25
25
  const r = [];
26
- return e.forEach((a, l) => {
26
+ return e.forEach((a, o) => {
27
27
  const i = X(a, t);
28
- r.push({ ...a, depth: s, expanded: i, index: l }), i && a.children != null && (a.children = H(a.children, n), r.push(
28
+ r.push({ ...a, depth: s, expanded: i, index: o }), i && a.children != null && (a.children = H(a.children, n), r.push(
29
29
  ...G({ nodes: a.children, expanded: t, depth: s + 1, sort: n })
30
30
  ));
31
31
  }), r;
@@ -40,8 +40,8 @@ const X = (e, t) => t.includes(e.key), H = (e, t) => {
40
40
  const r = s.indexOf(n);
41
41
  if (r !== -1) e.splice(r, 1);
42
42
  else {
43
- const l = $({ tree: e, key: n });
44
- l != null && (l.children = (a = l.children) == null ? void 0 : a.filter((i) => i.key !== n));
43
+ const o = $({ tree: e, key: n });
44
+ o != null && (o.children = (a = o.children) == null ? void 0 : a.filter((i) => i.key !== n));
45
45
  }
46
46
  }), e;
47
47
  }, q = ({ tree: e, destination: t, additions: s }) => {
@@ -60,7 +60,7 @@ const X = (e, t) => t.includes(e.key), H = (e, t) => {
60
60
  updater: s,
61
61
  throwOnMissing: n = !0
62
62
  }) => {
63
- var l, i;
63
+ var o, i;
64
64
  const r = v({ tree: e, key: t });
65
65
  if (r == null) {
66
66
  if (n) throw new Error(`Could not find node with key ${t}`);
@@ -68,11 +68,11 @@ const X = (e, t) => t.includes(e.key), H = (e, t) => {
68
68
  }
69
69
  const a = $({ tree: e, key: t });
70
70
  if (a != null) {
71
- const o = (l = a.children) == null ? void 0 : l.findIndex((x) => x.key === t);
72
- o != null && o !== -1 && ((i = a.children) == null || i.splice(o, 1, s(r)));
71
+ const l = (o = a.children) == null ? void 0 : o.findIndex((x) => x.key === t);
72
+ l != null && l !== -1 && ((i = a.children) == null || i.splice(l, 1, s(r)));
73
73
  } else
74
74
  e.splice(
75
- e.findIndex((o) => o.key === t),
75
+ e.findIndex((l) => l.key === t),
76
76
  1,
77
77
  s(r)
78
78
  );
@@ -121,18 +121,18 @@ const X = (e, t) => t.includes(e.key), H = (e, t) => {
121
121
  if (n != null) return n;
122
122
  }
123
123
  return null;
124
- }, V = (e) => e.map((t) => ({ ...t, children: V(t.children ?? []) })), B = "tree-item", Le = [["Shift"]], je = (e) => {
124
+ }, V = (e) => e.map((t) => ({ ...t, children: V(t.children ?? []) })), M = "tree-item", Le = [["Shift"]], je = (e) => {
125
125
  const {
126
126
  onExpand: t,
127
127
  nodes: s,
128
128
  initialExpanded: n = [],
129
129
  sort: r = !0,
130
130
  selected: a,
131
- onSelectedChange: l
132
- } = e ?? {}, [i, o, x] = fe(n), [c, T] = ne({
131
+ onSelectedChange: o
132
+ } = e ?? {}, [i, l, x] = fe(n), [c, T] = ne({
133
133
  initial: [],
134
134
  value: a,
135
- onChange: l
135
+ onChange: o
136
136
  }), _ = Ne(() => G({ nodes: s, expanded: i, sort: r }), [s, i, r]), w = ue(_), L = he({ triggers: Le }), R = b(
137
137
  (f, { clicked: d }) => {
138
138
  T(f);
@@ -140,20 +140,20 @@ const X = (e, t) => t.includes(e.key), H = (e, t) => {
140
140
  if ((g == null ? void 0 : g.hasChildren) === !1 || d == null || L.current.held) return;
141
141
  const y = x.current, S = y.some((E) => E === d) ? "contract" : "expand";
142
142
  let C = y;
143
- S === "contract" ? C = y.filter((E) => E !== d) : C = [...y, d], o(C), t == null || t({ current: C, action: S, clicked: d });
143
+ S === "contract" ? C = y.filter((E) => E !== d) : C = [...y, d], l(C), t == null || t({ current: C, action: S, clicked: d });
144
144
  },
145
- [t, w, o, T]
145
+ [t, w, l, T]
146
146
  ), h = b(
147
147
  (f) => {
148
- o((d) => re([...d, f])), t == null || t({ current: i, action: "expand", clicked: f });
148
+ l((d) => re([...d, f])), t == null || t({ current: i, action: "expand", clicked: f });
149
149
  },
150
- [o]
150
+ [l]
151
151
  ), j = b(
152
152
  (f) => {
153
- o((d) => d.filter((g) => g !== f)), t == null || t({ current: i, action: "contract", clicked: f });
153
+ l((d) => d.filter((g) => g !== f)), t == null || t({ current: i, action: "contract", clicked: f });
154
154
  },
155
- [o]
156
- ), I = b(() => o([]), [o]);
155
+ [l]
156
+ ), I = b(() => l([]), [l]);
157
157
  return {
158
158
  onSelect: R,
159
159
  selected: c,
@@ -171,9 +171,9 @@ const X = (e, t) => t.includes(e.key), H = (e, t) => {
171
171
  onDrop: n,
172
172
  onRename: r,
173
173
  onSuccessfulDrop: a,
174
- onDoubleClick: l,
174
+ onDoubleClick: o,
175
175
  loading: i = !1,
176
- useMargin: o = !0,
176
+ useMargin: l = !0,
177
177
  translate: x
178
178
  }) => {
179
179
  const {
@@ -196,20 +196,20 @@ const X = (e, t) => t.includes(e.key), H = (e, t) => {
196
196
  const [E, A] = Ee(!1), { startDrag: U, ...J } = oe({
197
197
  type: "Tree.Item",
198
198
  key: c,
199
- canDrop: b(({ items: p, source: M }) => {
199
+ canDrop: b(({ items: p, source: O }) => {
200
200
  const m = p.map((P) => P.key);
201
- return A(!1), M.type === "Tree.Item" && !m.includes(c);
201
+ return A(!1), O.type === "Tree.Item" && !m.includes(c);
202
202
  }, []),
203
203
  onDrop: b((p) => (n == null ? void 0 : n(c, p)) ?? [], [c, n]),
204
204
  onDragOver: b(() => A(!0), [])
205
205
  }), Q = () => {
206
- const p = d(), M = g().filter(
206
+ const p = d(), O = g().filter(
207
207
  (m) => p.includes(m.key)
208
208
  );
209
209
  if (p.includes(c)) {
210
- const m = M.map(({ key: P, haulItems: O, depth: z }) => [
211
- { type: B, key: P, data: { depth: z } },
212
- ...(O == null ? void 0 : O.map((F) => ({
210
+ const m = O.map(({ key: P, haulItems: B, depth: z }) => [
211
+ { type: M, key: P, data: { depth: z } },
212
+ ...(B == null ? void 0 : B.map((F) => ({
213
213
  ...F,
214
214
  data: { ...F.data, depth: z }
215
215
  }))) ?? []
@@ -218,12 +218,12 @@ const X = (e, t) => t.includes(e.key), H = (e, t) => {
218
218
  }
219
219
  U(
220
220
  [
221
- { type: B, key: c, data: { depth: h } },
221
+ { type: M, key: c, data: { depth: h } },
222
222
  ...f.map((m) => ({ ...m, data: { ...m.data, depth: h } }))
223
223
  ],
224
224
  (m) => a == null ? void 0 : a(c, m)
225
225
  );
226
- }, Z = o ? "marginLeft" : "paddingLeft", D = {
226
+ }, Z = l ? "marginLeft" : "paddingLeft", D = {
227
227
  id: c,
228
228
  variant: "text",
229
229
  draggable: f.length > 0,
@@ -243,7 +243,7 @@ const X = (e, t) => t.includes(e.key), H = (e, t) => {
243
243
  border: "none",
244
244
  position: x != null ? "absolute" : "relative",
245
245
  transform: `translateY(${x}px)`,
246
- [Z]: `${h * 1.5 + 1.5}rem`,
246
+ [Z]: `${h * 1.5 + (y && l ? 0 : 2)}rem`,
247
247
  // @ts-expect-error - CSS variable
248
248
  "--pluto-tree-indicator-offset": `${h * 1.5 + (h === 0 ? 0 : 0.5)}rem`
249
249
  },
@@ -251,7 +251,7 @@ const X = (e, t) => t.includes(e.key), H = (e, t) => {
251
251
  iconSpacing: "small",
252
252
  noWrap: !0,
253
253
  endIcon: C,
254
- onDoubleClick: (p) => l == null ? void 0 : l(c, p),
254
+ onDoubleClick: (p) => o == null ? void 0 : o(c, p),
255
255
  href: I,
256
256
  ...J
257
257
  }, ee = I != null ? be : pe;
@@ -276,9 +276,9 @@ const Pe = ye(K), Re = ({
276
276
  onDrop: n,
277
277
  onRename: r,
278
278
  onSuccessfulDrop: a,
279
- onDoubleClick: l,
279
+ onDoubleClick: o,
280
280
  className: i,
281
- children: o = Pe,
281
+ children: l = Pe,
282
282
  itemHeight: x = 27,
283
283
  useMargin: c = !1,
284
284
  showRules: T = !1,
@@ -304,7 +304,7 @@ const Pe = ye(K), Re = ({
304
304
  itemHeight: x,
305
305
  className: u(i, u.B("tree"), T && u.M("rules")),
306
306
  ...I,
307
- children: ({ key: d, ...g }) => o({
307
+ children: ({ key: d, ...g }) => l({
308
308
  ...g,
309
309
  key: d,
310
310
  loading: j === d,
@@ -312,7 +312,7 @@ const Pe = ye(K), Re = ({
312
312
  onDrop: n,
313
313
  onRename: r,
314
314
  onSuccessfulDrop: a,
315
- onDoubleClick: l
315
+ onDoubleClick: o
316
316
  })
317
317
  }
318
318
  )
@@ -321,7 +321,7 @@ const Pe = ye(K), Re = ({
321
321
  }, $e = (e, t) => ge(`text-${e}`, t), Ae = (e) => xe(`text-${e}`), Fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
322
322
  __proto__: null,
323
323
  DefaultItem: K,
324
- HAUL_TYPE: B,
324
+ HAUL_TYPE: M,
325
325
  Tree: Re,
326
326
  asyncRename: Ae,
327
327
  deepCopy: V,
@@ -1 +1 @@
1
- "use strict";const m=require("./Toggle-BKoV45C3.cjs"),ke=require("./jsx-runtime-Cek9Ww4S.cjs"),$e=require("react"),he=require("./aggregator-BjcY2k2l.cjs");require("./css-DY1Oedjj.cjs");require("./Pack-BM_LmeO7.cjs");const ve=require("./List-lSysLR6L.cjs"),W=Symbol(),ue=Symbol(),X=Symbol();let je=(t,e)=>new Proxy(t,e);const z=Object.getPrototypeOf,se=new WeakMap,J=t=>t&&(se.has(t)?se.get(t):z(t)===Object.prototype||z(t)===Array.prototype),re=t=>typeof t=="object"&&t!==null,ne=new WeakMap,fe=t=>t[X]||t,de=(t,e,s)=>{if(!J(t))return t;const r=fe(t),n=(c=>Object.isFrozen(c)||Object.values(Object.getOwnPropertyDescriptors(c)).some(o=>!o.writable))(r);let i=s&&s.get(r);return i&&i[1].f===n||(i=((c,o)=>{const a={f:o};let h=!1;const l=(d,g)=>{if(!h){let p=a.a.get(c);p||(p=new Set,a.a.set(c,p)),g&&p.has(W)||p.add(d)}},u={get:(d,g)=>g===X?c:(l(g),de(d[g],a.a,a.c)),has:(d,g)=>g===ue?(h=!0,a.a.delete(c),!0):(l(g),g in d),getOwnPropertyDescriptor:(d,g)=>(l(g,!0),Object.getOwnPropertyDescriptor(d,g)),ownKeys:d=>(l(W),Reflect.ownKeys(d))};return o&&(u.set=u.deleteProperty=()=>!1),[u,a]})(r,n),i[1].p=je(n?(c=>{let o=ne.get(c);if(!o){if(Array.isArray(c))o=Array.from(c);else{const a=Object.getOwnPropertyDescriptors(c);Object.values(a).forEach(h=>{h.configurable=!0}),o=Object.create(z(c),a)}ne.set(c,o)}return o})(r):r,i[0]),s&&s.set(r,i)),i[1].a=e,i[1].c=s,i[1].p},Te=(t,e)=>{const s=Reflect.ownKeys(t),r=Reflect.ownKeys(e);return s.length!==r.length||s.some((n,i)=>n!==r[i])},ge=(t,e,s,r)=>{if(Object.is(t,e))return!1;if(!re(t)||!re(e))return!0;const n=s.get(fe(t));if(!n)return!0;if(r){const c=r.get(t);if(c&&c.n===e)return c.g;r.set(t,{n:e,g:!1})}let i=null;for(const c of n){const o=c===W?Te(t,e):ge(t[c],e[c],s,r);if(o!==!0&&o!==!1||(i=o),i)break}return i===null&&(i=!0),r&&r.set(t,{n:e,g:i}),i},Fe=t=>!!J(t)&&ue in t,Z=t=>J(t)&&t[X]||null,H=t=>typeof t=="object"&&t!==null,pe=(t,e)=>{if(!H(t))return t;const s=Z(t);return s!==null?(Fe(t),s):(e.has(t)||(e.add(t),Object.entries(t).forEach(([r,n])=>{const i=pe(n,e);Object.is(i,n)||(t[r]=i)})),t)},F=(t,e,s)=>{if(!H(t)||!H(e))return;const r=s.get(Z(e)||e);r&&r.forEach(n=>{F(t[n],e[n],s)})},Ne=(t,e)=>{var s;let r=0;const n=(s=e==null?void 0:e.size)!=null?s:1,i=[],c=new WeakMap,o=new WeakMap;return a=>{const h=Z(a)||a,l=c.get(h);if(l)return F(a,l.o,l.a),l.r;for(let M=0;M<n;M+=1){const y=i[(r+M)%n];if(!y)break;if(!ge(y.o,a,y.a,new WeakMap))return c.set(h,y),F(a,y.o,y.a),y.r}const u=new WeakMap,d=de(a,u,o),g=pe(t(d),new Set);F(a,a,u);const p={o:a,r:g,a:u};return r=(r-1+n)%n,i[r]=p,c.set(h,p),g}},me=(t,e)=>he.w$1.RUNTIME==="browser"?Ne(t,e):t;function I(t){return Array.isArray?Array.isArray(t):xe(t)==="[object Array]"}const De=1/0;function Pe(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-De?"-0":e}function Ke(t){return t==null?"":Pe(t)}function _(t){return typeof t=="string"}function Me(t){return typeof t=="number"}function We(t){return t===!0||t===!1||ze(t)&&xe(t)=="[object Boolean]"}function ye(t){return typeof t=="object"}function ze(t){return ye(t)&&t!==null}function x(t){return t!=null}function K(t){return!t.trim().length}function xe(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const He="Incorrect 'index' type",Ue=t=>`Invalid value for key ${t}`,Ve=t=>`Pattern length exceeds max of ${t}.`,Be=t=>`Missing ${t} property in key`,Ge=t=>`Property 'weight' in key '${t}' must be a positive integer`,ie=Object.prototype.hasOwnProperty;class Ye{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(r=>{let n=Se(r);this._keys.push(n),this._keyMap[n.id]=n,s+=n.weight}),this._keys.forEach(r=>{r.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Se(t){let e=null,s=null,r=null,n=1,i=null;if(_(t)||I(t))r=t,e=ce(t),s=U(t);else{if(!ie.call(t,"name"))throw new Error(Be("name"));const c=t.name;if(r=c,ie.call(t,"weight")&&(n=t.weight,n<=0))throw new Error(Ge(c));e=ce(c),s=U(c),i=t.getFn}return{path:e,id:s,weight:n,src:r,getFn:i}}function ce(t){return I(t)?t:t.split(".")}function U(t){return I(t)?t.join("."):t}function Qe(t,e){let s=[],r=!1;const n=(i,c,o)=>{if(x(i))if(!c[o])s.push(i);else{let a=c[o];const h=i[a];if(!x(h))return;if(o===c.length-1&&(_(h)||Me(h)||We(h)))s.push(Ke(h));else if(I(h)){r=!0;for(let l=0,u=h.length;l<u;l+=1)n(h[l],c,o+1)}else c.length&&n(h,c,o+1)}};return n(t,_(e)?e.split("."):e,0),r?s:s[0]}const Xe={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Je={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},Ze={location:0,threshold:.6,distance:100},qe={useExtendedSearch:!1,getFn:Qe,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var f={...Je,...Xe,...Ze,...qe};const et=/[^ ]+/g;function tt(t=1,e=3){const s=new Map,r=Math.pow(10,e);return{get(n){const i=n.match(et).length;if(s.has(i))return s.get(i);const c=1/Math.pow(i,.5*t),o=parseFloat(Math.round(c*r)/r);return s.set(i,o),o},clear(){s.clear()}}}class q{constructor({getFn:e=f.getFn,fieldNormWeight:s=f.fieldNormWeight}={}){this.norm=tt(s,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((s,r)=>{this._keysMap[s.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,_(this.docs[0])?this.docs.forEach((e,s)=>{this._addString(e,s)}):this.docs.forEach((e,s)=>{this._addObject(e,s)}),this.norm.clear())}add(e){const s=this.size();_(e)?this._addString(e,s):this._addObject(e,s)}removeAt(e){this.records.splice(e,1);for(let s=e,r=this.size();s<r;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(e,s){return e[this._keysMap[s]]}size(){return this.records.length}_addString(e,s){if(!x(e)||K(e))return;let r={v:e,i:s,n:this.norm.get(e)};this.records.push(r)}_addObject(e,s){let r={i:s,$:{}};this.keys.forEach((n,i)=>{let c=n.getFn?n.getFn(e):this.getFn(e,n.path);if(x(c)){if(I(c)){let o=[];const a=[{nestedArrIndex:-1,value:c}];for(;a.length;){const{nestedArrIndex:h,value:l}=a.pop();if(x(l))if(_(l)&&!K(l)){let u={v:l,i:h,n:this.norm.get(l)};o.push(u)}else I(l)&&l.forEach((u,d)=>{a.push({nestedArrIndex:d,value:u})})}r.$[i]=o}else if(_(c)&&!K(c)){let o={v:c,n:this.norm.get(c)};r.$[i]=o}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function Ee(t,e,{getFn:s=f.getFn,fieldNormWeight:r=f.fieldNormWeight}={}){const n=new q({getFn:s,fieldNormWeight:r});return n.setKeys(t.map(Se)),n.setSources(e),n.create(),n}function st(t,{getFn:e=f.getFn,fieldNormWeight:s=f.fieldNormWeight}={}){const{keys:r,records:n}=t,i=new q({getFn:e,fieldNormWeight:s});return i.setKeys(r),i.setIndexRecords(n),i}function T(t,{errors:e=0,currentLocation:s=0,expectedLocation:r=0,distance:n=f.distance,ignoreLocation:i=f.ignoreLocation}={}){const c=e/t.length;if(i)return c;const o=Math.abs(r-s);return n?c+o/n:o?1:c}function rt(t=[],e=f.minMatchCharLength){let s=[],r=-1,n=-1,i=0;for(let c=t.length;i<c;i+=1){let o=t[i];o&&r===-1?r=i:!o&&r!==-1&&(n=i-1,n-r+1>=e&&s.push([r,n]),r=-1)}return t[i-1]&&i-r>=e&&s.push([r,i-1]),s}const L=32;function nt(t,e,s,{location:r=f.location,distance:n=f.distance,threshold:i=f.threshold,findAllMatches:c=f.findAllMatches,minMatchCharLength:o=f.minMatchCharLength,includeMatches:a=f.includeMatches,ignoreLocation:h=f.ignoreLocation}={}){if(e.length>L)throw new Error(Ve(L));const l=e.length,u=t.length,d=Math.max(0,Math.min(r,u));let g=i,p=d;const M=o>1||a,y=M?Array(u):[];let b;for(;(b=t.indexOf(e,p))>-1;){let S=T(e,{currentLocation:b,expectedLocation:d,distance:n,ignoreLocation:h});if(g=Math.min(S,g),p=b+l,M){let w=0;for(;w<l;)y[b+w]=1,w+=1}}p=-1;let R=[],C=1,v=l+u;const Re=1<<l-1;for(let S=0;S<l;S+=1){let w=0,A=v;for(;w<A;)T(e,{errors:S,currentLocation:d+A,expectedLocation:d,distance:n,ignoreLocation:h})<=g?w=A:v=A,A=Math.floor((v-w)/2+w);v=A;let ee=Math.max(1,d-A+1),P=c?u:Math.min(d+A,u)+l,k=Array(P+2);k[P+1]=(1<<S)-1;for(let E=P;E>=ee;E-=1){let j=E-1,te=s[t.charAt(j)];if(M&&(y[j]=+!!te),k[E]=(k[E+1]<<1|1)&te,S&&(k[E]|=(R[E+1]|R[E])<<1|1|R[E+1]),k[E]&Re&&(C=T(e,{errors:S,currentLocation:j,expectedLocation:d,distance:n,ignoreLocation:h}),C<=g)){if(g=C,p=j,p<=d)break;ee=Math.max(1,2*d-p)}}if(T(e,{errors:S+1,currentLocation:d,expectedLocation:d,distance:n,ignoreLocation:h})>g)break;R=k}const D={isMatch:p>=0,score:Math.max(.001,C)};if(M){const S=rt(y,o);S.length?a&&(D.indices=S):D.isMatch=!1}return D}function it(t){let e={};for(let s=0,r=t.length;s<r;s+=1){const n=t.charAt(s);e[n]=(e[n]||0)|1<<r-s-1}return e}class _e{constructor(e,{location:s=f.location,threshold:r=f.threshold,distance:n=f.distance,includeMatches:i=f.includeMatches,findAllMatches:c=f.findAllMatches,minMatchCharLength:o=f.minMatchCharLength,isCaseSensitive:a=f.isCaseSensitive,ignoreLocation:h=f.ignoreLocation}={}){if(this.options={location:s,threshold:r,distance:n,includeMatches:i,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const l=(d,g)=>{this.chunks.push({pattern:d,alphabet:it(d),startIndex:g})},u=this.pattern.length;if(u>L){let d=0;const g=u%L,p=u-g;for(;d<p;)l(this.pattern.substr(d,L),d),d+=L;if(g){const M=u-L;l(this.pattern.substr(M),M)}}else l(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,includeMatches:r}=this.options;if(s||(e=e.toLowerCase()),this.pattern===e){let p={isMatch:!0,score:0};return r&&(p.indices=[[0,e.length-1]]),p}const{location:n,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:a,ignoreLocation:h}=this.options;let l=[],u=0,d=!1;this.chunks.forEach(({pattern:p,alphabet:M,startIndex:y})=>{const{isMatch:b,score:R,indices:C}=nt(e,p,M,{location:n+y,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:a,includeMatches:r,ignoreLocation:h});b&&(d=!0),u+=R,b&&C&&(l=[...l,...C])});let g={isMatch:d,score:d?u/this.chunks.length:1};return d&&r&&(g.indices=l),g}}class O{constructor(e){this.pattern=e}static isMultiMatch(e){return oe(e,this.multiRegex)}static isSingleMatch(e){return oe(e,this.singleRegex)}search(){}}function oe(t,e){const s=t.match(e);return s?s[1]:null}class ct extends O{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const s=e===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class ot extends O{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const r=e.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class at extends O{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const s=e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class lt extends O{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const s=!e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class ht extends O{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const s=e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class ut extends O{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const s=!e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class be extends O{constructor(e,{location:s=f.location,threshold:r=f.threshold,distance:n=f.distance,includeMatches:i=f.includeMatches,findAllMatches:c=f.findAllMatches,minMatchCharLength:o=f.minMatchCharLength,isCaseSensitive:a=f.isCaseSensitive,ignoreLocation:h=f.ignoreLocation}={}){super(e),this._bitapSearch=new _e(e,{location:s,threshold:r,distance:n,includeMatches:i,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Ie extends O{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,r;const n=[],i=this.pattern.length;for(;(r=e.indexOf(this.pattern,s))>-1;)s=r+i,n.push([r,s-1]);const c=!!n.length;return{isMatch:c,score:c?0:1,indices:n}}}const V=[ct,Ie,at,lt,ut,ht,ot,be],ae=V.length,ft=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,dt="|";function gt(t,e={}){return t.split(dt).map(s=>{let r=s.trim().split(ft).filter(i=>i&&!!i.trim()),n=[];for(let i=0,c=r.length;i<c;i+=1){const o=r[i];let a=!1,h=-1;for(;!a&&++h<ae;){const l=V[h];let u=l.isMultiMatch(o);u&&(n.push(new l(u,e)),a=!0)}if(!a)for(h=-1;++h<ae;){const l=V[h];let u=l.isSingleMatch(o);if(u){n.push(new l(u,e));break}}}return n})}const pt=new Set([be.type,Ie.type]);class mt{constructor(e,{isCaseSensitive:s=f.isCaseSensitive,includeMatches:r=f.includeMatches,minMatchCharLength:n=f.minMatchCharLength,ignoreLocation:i=f.ignoreLocation,findAllMatches:c=f.findAllMatches,location:o=f.location,threshold:a=f.threshold,distance:h=f.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:r,minMatchCharLength:n,findAllMatches:c,ignoreLocation:i,location:o,threshold:a,distance:h},this.pattern=s?e:e.toLowerCase(),this.query=gt(this.pattern,this.options)}static condition(e,s){return s.useExtendedSearch}searchIn(e){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:n}=this.options;e=n?e:e.toLowerCase();let i=0,c=[],o=0;for(let a=0,h=s.length;a<h;a+=1){const l=s[a];c.length=0,i=0;for(let u=0,d=l.length;u<d;u+=1){const g=l[u],{isMatch:p,indices:M,score:y}=g.search(e);if(p){if(i+=1,o+=y,r){const b=g.constructor.type;pt.has(b)?c=[...c,...M]:c.push(M)}}else{o=0,i=0,c.length=0;break}}if(i){let u={isMatch:!0,score:o/i};return r&&(u.indices=c),u}}return{isMatch:!1,score:1}}}const B=[];function Mt(...t){B.push(...t)}function G(t,e){for(let s=0,r=B.length;s<r;s+=1){let n=B[s];if(n.condition(t,e))return new n(t,e)}return new _e(t,e)}const N={AND:"$and",OR:"$or"},Y={PATH:"$path",PATTERN:"$val"},Q=t=>!!(t[N.AND]||t[N.OR]),yt=t=>!!t[Y.PATH],xt=t=>!I(t)&&ye(t)&&!Q(t),le=t=>({[N.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function we(t,e,{auto:s=!0}={}){const r=n=>{let i=Object.keys(n);const c=yt(n);if(!c&&i.length>1&&!Q(n))return r(le(n));if(xt(n)){const a=c?n[Y.PATH]:i[0],h=c?n[Y.PATTERN]:n[a];if(!_(h))throw new Error(Ue(a));const l={keyId:U(a),pattern:h};return s&&(l.searcher=G(h,e)),l}let o={children:[],operator:i[0]};return i.forEach(a=>{const h=n[a];I(h)&&h.forEach(l=>{o.children.push(r(l))})}),o};return Q(t)||(t=le(t)),r(t)}function St(t,{ignoreFieldNorm:e=f.ignoreFieldNorm}){t.forEach(s=>{let r=1;s.matches.forEach(({key:n,norm:i,score:c})=>{const o=n?n.weight:null;r*=Math.pow(c===0&&o?Number.EPSILON:c,(o||1)*(e?1:i))}),s.score=r})}function Et(t,e){const s=t.matches;e.matches=[],x(s)&&s.forEach(r=>{if(!x(r.indices)||!r.indices.length)return;const{indices:n,value:i}=r;let c={indices:n,value:i};r.key&&(c.key=r.key.src),r.idx>-1&&(c.refIndex=r.idx),e.matches.push(c)})}function _t(t,e){e.score=t.score}function bt(t,e,{includeMatches:s=f.includeMatches,includeScore:r=f.includeScore}={}){const n=[];return s&&n.push(Et),r&&n.push(_t),t.map(i=>{const{idx:c}=i,o={item:e[c],refIndex:c};return n.length&&n.forEach(a=>{a(i,o)}),o})}class ${constructor(e,s={},r){this.options={...f,...s},this.options.useExtendedSearch,this._keyStore=new Ye(this.options.keys),this.setCollection(e,r)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof q))throw new Error(He);this._myIndex=s||Ee(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){x(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let r=0,n=this._docs.length;r<n;r+=1){const i=this._docs[r];e(i,r)&&(this.removeAt(r),r-=1,n-=1,s.push(i))}return s}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:s=-1}={}){const{includeMatches:r,includeScore:n,shouldSort:i,sortFn:c,ignoreFieldNorm:o}=this.options;let a=_(e)?_(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return St(a,{ignoreFieldNorm:o}),i&&a.sort(c),Me(s)&&s>-1&&(a=a.slice(0,s)),bt(a,this._docs,{includeMatches:r,includeScore:n})}_searchStringList(e){const s=G(e,this.options),{records:r}=this._myIndex,n=[];return r.forEach(({v:i,i:c,n:o})=>{if(!x(i))return;const{isMatch:a,score:h,indices:l}=s.searchIn(i);a&&n.push({item:i,idx:c,matches:[{score:h,value:i,norm:o,indices:l}]})}),n}_searchLogical(e){const s=we(e,this.options),r=(o,a,h)=>{if(!o.children){const{keyId:u,searcher:d}=o,g=this._findMatches({key:this._keyStore.get(u),value:this._myIndex.getValueForItemAtKeyId(a,u),searcher:d});return g&&g.length?[{idx:h,item:a,matches:g}]:[]}const l=[];for(let u=0,d=o.children.length;u<d;u+=1){const g=o.children[u],p=r(g,a,h);if(p.length)l.push(...p);else if(o.operator===N.AND)return[]}return l},n=this._myIndex.records,i={},c=[];return n.forEach(({$:o,i:a})=>{if(x(o)){let h=r(s,o,a);h.length&&(i[a]||(i[a]={idx:a,item:o,matches:[]},c.push(i[a])),h.forEach(({matches:l})=>{i[a].matches.push(...l)}))}}),c}_searchObjectList(e){const s=G(e,this.options),{keys:r,records:n}=this._myIndex,i=[];return n.forEach(({$:c,i:o})=>{if(!x(c))return;let a=[];r.forEach((h,l)=>{a.push(...this._findMatches({key:h,value:c[l],searcher:s}))}),a.length&&i.push({idx:o,item:c,matches:a})}),i}_findMatches({key:e,value:s,searcher:r}){if(!x(s))return[];let n=[];if(I(s))s.forEach(({v:i,i:c,n:o})=>{if(!x(i))return;const{isMatch:a,score:h,indices:l}=r.searchIn(i);a&&n.push({score:h,key:e,value:i,idx:c,norm:o,indices:l})});else{const{v:i,n:c}=s,{isMatch:o,score:a,indices:h}=r.searchIn(i);o&&n.push({score:a,key:e,value:i,norm:c,indices:h})}return n}}$.version="7.0.0";$.createIndex=Ee;$.parseIndex=st;$.config=f;$.parseQuery=we;Mt(mt);const It={threshold:.3},Ae=t=>e=>{const s=new $(e,{keys:Object.keys(e[0]),...It,...t});return{type:"fuse",page:(r,n)=>e.slice(r*n,(r+1)*n),search:r=>s.search(r).map(({item:n})=>n),retrieve:r=>e.filter(n=>r.includes(n.key))}},wt=Ae(),Oe=({term:t,searcher:e=wt})=>me(({data:s})=>typeof e=="function"?t.length===0||(s==null?void 0:s.length)===0?{data:s,transformed:!1}:{data:e(s).search(t),transformed:!0}:{data:e.search(t),transformed:!0}),Ce=({debounce:t=250,value:e,onChange:s,transformBefore:r})=>{const[n,i]=he.usePurePassthrough({onChange:s,value:e,initial:""}),{setTransform:c,deleteTransform:o}=m.useDataUtilContext(),a=m.useDebouncedCallback(c,t,[]),h=$e.useCallback(l=>{i(l),l.length===0?o("filter"):(r!=null&&(l=r(l)),a("filter",Oe({term:l})))},[i,r]);return{value:n,onChange:h}},Le=({children:t=s=>ke.jsxRuntimeExports.jsx(m.Text$1,{...s}),...e})=>t(Ce(e)),At=Object.freeze(Object.defineProperty({__proto__:null,Column:m.Column,ColumnContext:m.ColumnContext,Core:m.Core,DataProvider:m.DataProvider,Filter:Le,Hover:m.Hover,ItemFrame:m.ItemFrame,List:ve.List,Search:m.Search,Selector:m.Selector,selectValueIsZero:m.selectValueIsZero,useDataContext:m.useDataContext,useDataUtilContext:m.useDataUtilContext,useFilter:Ce,useGetTransformedData:m.useGetTransformedData,useHoverContext:m.useHoverContext,useSearch:m.useSearch,useSelect:m.useSelect,useSelection:m.useSelection,useSelectionContext:m.useSelectionContext,useSelectionUtils:m.useSelectionUtils,useSetSourceData:m.useSetSourceData,useSourceData:m.useSourceData,useTransformedData:m.useTransformedData},Symbol.toStringTag,{value:"Module"}));exports.Filter=Le;exports.createFilterTransform=Oe;exports.external=At;exports.fuseFilter=Ae;exports.proxyMemo=me;
1
+ "use strict";const m=require("./Toggle-CICqV_L2.cjs"),ke=require("./jsx-runtime-Cek9Ww4S.cjs"),$e=require("react"),he=require("./aggregator-CYlhZeym.cjs");require("./css-DY1Oedjj.cjs");require("./Pack-BM_LmeO7.cjs");const ve=require("./List-bpq4WGKS.cjs"),W=Symbol(),ue=Symbol(),X=Symbol();let je=(t,e)=>new Proxy(t,e);const z=Object.getPrototypeOf,se=new WeakMap,J=t=>t&&(se.has(t)?se.get(t):z(t)===Object.prototype||z(t)===Array.prototype),re=t=>typeof t=="object"&&t!==null,ne=new WeakMap,fe=t=>t[X]||t,de=(t,e,s)=>{if(!J(t))return t;const r=fe(t),n=(c=>Object.isFrozen(c)||Object.values(Object.getOwnPropertyDescriptors(c)).some(o=>!o.writable))(r);let i=s&&s.get(r);return i&&i[1].f===n||(i=((c,o)=>{const a={f:o};let h=!1;const l=(d,g)=>{if(!h){let p=a.a.get(c);p||(p=new Set,a.a.set(c,p)),g&&p.has(W)||p.add(d)}},u={get:(d,g)=>g===X?c:(l(g),de(d[g],a.a,a.c)),has:(d,g)=>g===ue?(h=!0,a.a.delete(c),!0):(l(g),g in d),getOwnPropertyDescriptor:(d,g)=>(l(g,!0),Object.getOwnPropertyDescriptor(d,g)),ownKeys:d=>(l(W),Reflect.ownKeys(d))};return o&&(u.set=u.deleteProperty=()=>!1),[u,a]})(r,n),i[1].p=je(n?(c=>{let o=ne.get(c);if(!o){if(Array.isArray(c))o=Array.from(c);else{const a=Object.getOwnPropertyDescriptors(c);Object.values(a).forEach(h=>{h.configurable=!0}),o=Object.create(z(c),a)}ne.set(c,o)}return o})(r):r,i[0]),s&&s.set(r,i)),i[1].a=e,i[1].c=s,i[1].p},Te=(t,e)=>{const s=Reflect.ownKeys(t),r=Reflect.ownKeys(e);return s.length!==r.length||s.some((n,i)=>n!==r[i])},ge=(t,e,s,r)=>{if(Object.is(t,e))return!1;if(!re(t)||!re(e))return!0;const n=s.get(fe(t));if(!n)return!0;if(r){const c=r.get(t);if(c&&c.n===e)return c.g;r.set(t,{n:e,g:!1})}let i=null;for(const c of n){const o=c===W?Te(t,e):ge(t[c],e[c],s,r);if(o!==!0&&o!==!1||(i=o),i)break}return i===null&&(i=!0),r&&r.set(t,{n:e,g:i}),i},Fe=t=>!!J(t)&&ue in t,Z=t=>J(t)&&t[X]||null,H=t=>typeof t=="object"&&t!==null,pe=(t,e)=>{if(!H(t))return t;const s=Z(t);return s!==null?(Fe(t),s):(e.has(t)||(e.add(t),Object.entries(t).forEach(([r,n])=>{const i=pe(n,e);Object.is(i,n)||(t[r]=i)})),t)},F=(t,e,s)=>{if(!H(t)||!H(e))return;const r=s.get(Z(e)||e);r&&r.forEach(n=>{F(t[n],e[n],s)})},Ne=(t,e)=>{var s;let r=0;const n=(s=e==null?void 0:e.size)!=null?s:1,i=[],c=new WeakMap,o=new WeakMap;return a=>{const h=Z(a)||a,l=c.get(h);if(l)return F(a,l.o,l.a),l.r;for(let M=0;M<n;M+=1){const y=i[(r+M)%n];if(!y)break;if(!ge(y.o,a,y.a,new WeakMap))return c.set(h,y),F(a,y.o,y.a),y.r}const u=new WeakMap,d=de(a,u,o),g=pe(t(d),new Set);F(a,a,u);const p={o:a,r:g,a:u};return r=(r-1+n)%n,i[r]=p,c.set(h,p),g}},me=(t,e)=>he.w$1.RUNTIME==="browser"?Ne(t,e):t;function I(t){return Array.isArray?Array.isArray(t):xe(t)==="[object Array]"}const De=1/0;function Pe(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-De?"-0":e}function Ke(t){return t==null?"":Pe(t)}function _(t){return typeof t=="string"}function Me(t){return typeof t=="number"}function We(t){return t===!0||t===!1||ze(t)&&xe(t)=="[object Boolean]"}function ye(t){return typeof t=="object"}function ze(t){return ye(t)&&t!==null}function x(t){return t!=null}function K(t){return!t.trim().length}function xe(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const He="Incorrect 'index' type",Ue=t=>`Invalid value for key ${t}`,Ve=t=>`Pattern length exceeds max of ${t}.`,Be=t=>`Missing ${t} property in key`,Ge=t=>`Property 'weight' in key '${t}' must be a positive integer`,ie=Object.prototype.hasOwnProperty;class Ye{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(r=>{let n=Se(r);this._keys.push(n),this._keyMap[n.id]=n,s+=n.weight}),this._keys.forEach(r=>{r.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Se(t){let e=null,s=null,r=null,n=1,i=null;if(_(t)||I(t))r=t,e=ce(t),s=U(t);else{if(!ie.call(t,"name"))throw new Error(Be("name"));const c=t.name;if(r=c,ie.call(t,"weight")&&(n=t.weight,n<=0))throw new Error(Ge(c));e=ce(c),s=U(c),i=t.getFn}return{path:e,id:s,weight:n,src:r,getFn:i}}function ce(t){return I(t)?t:t.split(".")}function U(t){return I(t)?t.join("."):t}function Qe(t,e){let s=[],r=!1;const n=(i,c,o)=>{if(x(i))if(!c[o])s.push(i);else{let a=c[o];const h=i[a];if(!x(h))return;if(o===c.length-1&&(_(h)||Me(h)||We(h)))s.push(Ke(h));else if(I(h)){r=!0;for(let l=0,u=h.length;l<u;l+=1)n(h[l],c,o+1)}else c.length&&n(h,c,o+1)}};return n(t,_(e)?e.split("."):e,0),r?s:s[0]}const Xe={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Je={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},Ze={location:0,threshold:.6,distance:100},qe={useExtendedSearch:!1,getFn:Qe,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var f={...Je,...Xe,...Ze,...qe};const et=/[^ ]+/g;function tt(t=1,e=3){const s=new Map,r=Math.pow(10,e);return{get(n){const i=n.match(et).length;if(s.has(i))return s.get(i);const c=1/Math.pow(i,.5*t),o=parseFloat(Math.round(c*r)/r);return s.set(i,o),o},clear(){s.clear()}}}class q{constructor({getFn:e=f.getFn,fieldNormWeight:s=f.fieldNormWeight}={}){this.norm=tt(s,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((s,r)=>{this._keysMap[s.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,_(this.docs[0])?this.docs.forEach((e,s)=>{this._addString(e,s)}):this.docs.forEach((e,s)=>{this._addObject(e,s)}),this.norm.clear())}add(e){const s=this.size();_(e)?this._addString(e,s):this._addObject(e,s)}removeAt(e){this.records.splice(e,1);for(let s=e,r=this.size();s<r;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(e,s){return e[this._keysMap[s]]}size(){return this.records.length}_addString(e,s){if(!x(e)||K(e))return;let r={v:e,i:s,n:this.norm.get(e)};this.records.push(r)}_addObject(e,s){let r={i:s,$:{}};this.keys.forEach((n,i)=>{let c=n.getFn?n.getFn(e):this.getFn(e,n.path);if(x(c)){if(I(c)){let o=[];const a=[{nestedArrIndex:-1,value:c}];for(;a.length;){const{nestedArrIndex:h,value:l}=a.pop();if(x(l))if(_(l)&&!K(l)){let u={v:l,i:h,n:this.norm.get(l)};o.push(u)}else I(l)&&l.forEach((u,d)=>{a.push({nestedArrIndex:d,value:u})})}r.$[i]=o}else if(_(c)&&!K(c)){let o={v:c,n:this.norm.get(c)};r.$[i]=o}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function Ee(t,e,{getFn:s=f.getFn,fieldNormWeight:r=f.fieldNormWeight}={}){const n=new q({getFn:s,fieldNormWeight:r});return n.setKeys(t.map(Se)),n.setSources(e),n.create(),n}function st(t,{getFn:e=f.getFn,fieldNormWeight:s=f.fieldNormWeight}={}){const{keys:r,records:n}=t,i=new q({getFn:e,fieldNormWeight:s});return i.setKeys(r),i.setIndexRecords(n),i}function T(t,{errors:e=0,currentLocation:s=0,expectedLocation:r=0,distance:n=f.distance,ignoreLocation:i=f.ignoreLocation}={}){const c=e/t.length;if(i)return c;const o=Math.abs(r-s);return n?c+o/n:o?1:c}function rt(t=[],e=f.minMatchCharLength){let s=[],r=-1,n=-1,i=0;for(let c=t.length;i<c;i+=1){let o=t[i];o&&r===-1?r=i:!o&&r!==-1&&(n=i-1,n-r+1>=e&&s.push([r,n]),r=-1)}return t[i-1]&&i-r>=e&&s.push([r,i-1]),s}const L=32;function nt(t,e,s,{location:r=f.location,distance:n=f.distance,threshold:i=f.threshold,findAllMatches:c=f.findAllMatches,minMatchCharLength:o=f.minMatchCharLength,includeMatches:a=f.includeMatches,ignoreLocation:h=f.ignoreLocation}={}){if(e.length>L)throw new Error(Ve(L));const l=e.length,u=t.length,d=Math.max(0,Math.min(r,u));let g=i,p=d;const M=o>1||a,y=M?Array(u):[];let b;for(;(b=t.indexOf(e,p))>-1;){let S=T(e,{currentLocation:b,expectedLocation:d,distance:n,ignoreLocation:h});if(g=Math.min(S,g),p=b+l,M){let w=0;for(;w<l;)y[b+w]=1,w+=1}}p=-1;let R=[],C=1,v=l+u;const Re=1<<l-1;for(let S=0;S<l;S+=1){let w=0,A=v;for(;w<A;)T(e,{errors:S,currentLocation:d+A,expectedLocation:d,distance:n,ignoreLocation:h})<=g?w=A:v=A,A=Math.floor((v-w)/2+w);v=A;let ee=Math.max(1,d-A+1),P=c?u:Math.min(d+A,u)+l,k=Array(P+2);k[P+1]=(1<<S)-1;for(let E=P;E>=ee;E-=1){let j=E-1,te=s[t.charAt(j)];if(M&&(y[j]=+!!te),k[E]=(k[E+1]<<1|1)&te,S&&(k[E]|=(R[E+1]|R[E])<<1|1|R[E+1]),k[E]&Re&&(C=T(e,{errors:S,currentLocation:j,expectedLocation:d,distance:n,ignoreLocation:h}),C<=g)){if(g=C,p=j,p<=d)break;ee=Math.max(1,2*d-p)}}if(T(e,{errors:S+1,currentLocation:d,expectedLocation:d,distance:n,ignoreLocation:h})>g)break;R=k}const D={isMatch:p>=0,score:Math.max(.001,C)};if(M){const S=rt(y,o);S.length?a&&(D.indices=S):D.isMatch=!1}return D}function it(t){let e={};for(let s=0,r=t.length;s<r;s+=1){const n=t.charAt(s);e[n]=(e[n]||0)|1<<r-s-1}return e}class _e{constructor(e,{location:s=f.location,threshold:r=f.threshold,distance:n=f.distance,includeMatches:i=f.includeMatches,findAllMatches:c=f.findAllMatches,minMatchCharLength:o=f.minMatchCharLength,isCaseSensitive:a=f.isCaseSensitive,ignoreLocation:h=f.ignoreLocation}={}){if(this.options={location:s,threshold:r,distance:n,includeMatches:i,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const l=(d,g)=>{this.chunks.push({pattern:d,alphabet:it(d),startIndex:g})},u=this.pattern.length;if(u>L){let d=0;const g=u%L,p=u-g;for(;d<p;)l(this.pattern.substr(d,L),d),d+=L;if(g){const M=u-L;l(this.pattern.substr(M),M)}}else l(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,includeMatches:r}=this.options;if(s||(e=e.toLowerCase()),this.pattern===e){let p={isMatch:!0,score:0};return r&&(p.indices=[[0,e.length-1]]),p}const{location:n,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:a,ignoreLocation:h}=this.options;let l=[],u=0,d=!1;this.chunks.forEach(({pattern:p,alphabet:M,startIndex:y})=>{const{isMatch:b,score:R,indices:C}=nt(e,p,M,{location:n+y,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:a,includeMatches:r,ignoreLocation:h});b&&(d=!0),u+=R,b&&C&&(l=[...l,...C])});let g={isMatch:d,score:d?u/this.chunks.length:1};return d&&r&&(g.indices=l),g}}class O{constructor(e){this.pattern=e}static isMultiMatch(e){return oe(e,this.multiRegex)}static isSingleMatch(e){return oe(e,this.singleRegex)}search(){}}function oe(t,e){const s=t.match(e);return s?s[1]:null}class ct extends O{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const s=e===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class ot extends O{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const r=e.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class at extends O{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const s=e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class lt extends O{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const s=!e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class ht extends O{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const s=e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class ut extends O{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const s=!e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class be extends O{constructor(e,{location:s=f.location,threshold:r=f.threshold,distance:n=f.distance,includeMatches:i=f.includeMatches,findAllMatches:c=f.findAllMatches,minMatchCharLength:o=f.minMatchCharLength,isCaseSensitive:a=f.isCaseSensitive,ignoreLocation:h=f.ignoreLocation}={}){super(e),this._bitapSearch=new _e(e,{location:s,threshold:r,distance:n,includeMatches:i,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Ie extends O{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,r;const n=[],i=this.pattern.length;for(;(r=e.indexOf(this.pattern,s))>-1;)s=r+i,n.push([r,s-1]);const c=!!n.length;return{isMatch:c,score:c?0:1,indices:n}}}const V=[ct,Ie,at,lt,ut,ht,ot,be],ae=V.length,ft=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,dt="|";function gt(t,e={}){return t.split(dt).map(s=>{let r=s.trim().split(ft).filter(i=>i&&!!i.trim()),n=[];for(let i=0,c=r.length;i<c;i+=1){const o=r[i];let a=!1,h=-1;for(;!a&&++h<ae;){const l=V[h];let u=l.isMultiMatch(o);u&&(n.push(new l(u,e)),a=!0)}if(!a)for(h=-1;++h<ae;){const l=V[h];let u=l.isSingleMatch(o);if(u){n.push(new l(u,e));break}}}return n})}const pt=new Set([be.type,Ie.type]);class mt{constructor(e,{isCaseSensitive:s=f.isCaseSensitive,includeMatches:r=f.includeMatches,minMatchCharLength:n=f.minMatchCharLength,ignoreLocation:i=f.ignoreLocation,findAllMatches:c=f.findAllMatches,location:o=f.location,threshold:a=f.threshold,distance:h=f.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:r,minMatchCharLength:n,findAllMatches:c,ignoreLocation:i,location:o,threshold:a,distance:h},this.pattern=s?e:e.toLowerCase(),this.query=gt(this.pattern,this.options)}static condition(e,s){return s.useExtendedSearch}searchIn(e){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:n}=this.options;e=n?e:e.toLowerCase();let i=0,c=[],o=0;for(let a=0,h=s.length;a<h;a+=1){const l=s[a];c.length=0,i=0;for(let u=0,d=l.length;u<d;u+=1){const g=l[u],{isMatch:p,indices:M,score:y}=g.search(e);if(p){if(i+=1,o+=y,r){const b=g.constructor.type;pt.has(b)?c=[...c,...M]:c.push(M)}}else{o=0,i=0,c.length=0;break}}if(i){let u={isMatch:!0,score:o/i};return r&&(u.indices=c),u}}return{isMatch:!1,score:1}}}const B=[];function Mt(...t){B.push(...t)}function G(t,e){for(let s=0,r=B.length;s<r;s+=1){let n=B[s];if(n.condition(t,e))return new n(t,e)}return new _e(t,e)}const N={AND:"$and",OR:"$or"},Y={PATH:"$path",PATTERN:"$val"},Q=t=>!!(t[N.AND]||t[N.OR]),yt=t=>!!t[Y.PATH],xt=t=>!I(t)&&ye(t)&&!Q(t),le=t=>({[N.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function we(t,e,{auto:s=!0}={}){const r=n=>{let i=Object.keys(n);const c=yt(n);if(!c&&i.length>1&&!Q(n))return r(le(n));if(xt(n)){const a=c?n[Y.PATH]:i[0],h=c?n[Y.PATTERN]:n[a];if(!_(h))throw new Error(Ue(a));const l={keyId:U(a),pattern:h};return s&&(l.searcher=G(h,e)),l}let o={children:[],operator:i[0]};return i.forEach(a=>{const h=n[a];I(h)&&h.forEach(l=>{o.children.push(r(l))})}),o};return Q(t)||(t=le(t)),r(t)}function St(t,{ignoreFieldNorm:e=f.ignoreFieldNorm}){t.forEach(s=>{let r=1;s.matches.forEach(({key:n,norm:i,score:c})=>{const o=n?n.weight:null;r*=Math.pow(c===0&&o?Number.EPSILON:c,(o||1)*(e?1:i))}),s.score=r})}function Et(t,e){const s=t.matches;e.matches=[],x(s)&&s.forEach(r=>{if(!x(r.indices)||!r.indices.length)return;const{indices:n,value:i}=r;let c={indices:n,value:i};r.key&&(c.key=r.key.src),r.idx>-1&&(c.refIndex=r.idx),e.matches.push(c)})}function _t(t,e){e.score=t.score}function bt(t,e,{includeMatches:s=f.includeMatches,includeScore:r=f.includeScore}={}){const n=[];return s&&n.push(Et),r&&n.push(_t),t.map(i=>{const{idx:c}=i,o={item:e[c],refIndex:c};return n.length&&n.forEach(a=>{a(i,o)}),o})}class ${constructor(e,s={},r){this.options={...f,...s},this.options.useExtendedSearch,this._keyStore=new Ye(this.options.keys),this.setCollection(e,r)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof q))throw new Error(He);this._myIndex=s||Ee(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){x(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let r=0,n=this._docs.length;r<n;r+=1){const i=this._docs[r];e(i,r)&&(this.removeAt(r),r-=1,n-=1,s.push(i))}return s}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:s=-1}={}){const{includeMatches:r,includeScore:n,shouldSort:i,sortFn:c,ignoreFieldNorm:o}=this.options;let a=_(e)?_(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return St(a,{ignoreFieldNorm:o}),i&&a.sort(c),Me(s)&&s>-1&&(a=a.slice(0,s)),bt(a,this._docs,{includeMatches:r,includeScore:n})}_searchStringList(e){const s=G(e,this.options),{records:r}=this._myIndex,n=[];return r.forEach(({v:i,i:c,n:o})=>{if(!x(i))return;const{isMatch:a,score:h,indices:l}=s.searchIn(i);a&&n.push({item:i,idx:c,matches:[{score:h,value:i,norm:o,indices:l}]})}),n}_searchLogical(e){const s=we(e,this.options),r=(o,a,h)=>{if(!o.children){const{keyId:u,searcher:d}=o,g=this._findMatches({key:this._keyStore.get(u),value:this._myIndex.getValueForItemAtKeyId(a,u),searcher:d});return g&&g.length?[{idx:h,item:a,matches:g}]:[]}const l=[];for(let u=0,d=o.children.length;u<d;u+=1){const g=o.children[u],p=r(g,a,h);if(p.length)l.push(...p);else if(o.operator===N.AND)return[]}return l},n=this._myIndex.records,i={},c=[];return n.forEach(({$:o,i:a})=>{if(x(o)){let h=r(s,o,a);h.length&&(i[a]||(i[a]={idx:a,item:o,matches:[]},c.push(i[a])),h.forEach(({matches:l})=>{i[a].matches.push(...l)}))}}),c}_searchObjectList(e){const s=G(e,this.options),{keys:r,records:n}=this._myIndex,i=[];return n.forEach(({$:c,i:o})=>{if(!x(c))return;let a=[];r.forEach((h,l)=>{a.push(...this._findMatches({key:h,value:c[l],searcher:s}))}),a.length&&i.push({idx:o,item:c,matches:a})}),i}_findMatches({key:e,value:s,searcher:r}){if(!x(s))return[];let n=[];if(I(s))s.forEach(({v:i,i:c,n:o})=>{if(!x(i))return;const{isMatch:a,score:h,indices:l}=r.searchIn(i);a&&n.push({score:h,key:e,value:i,idx:c,norm:o,indices:l})});else{const{v:i,n:c}=s,{isMatch:o,score:a,indices:h}=r.searchIn(i);o&&n.push({score:a,key:e,value:i,norm:c,indices:h})}return n}}$.version="7.0.0";$.createIndex=Ee;$.parseIndex=st;$.config=f;$.parseQuery=we;Mt(mt);const It={threshold:.3},Ae=t=>e=>{const s=new $(e,{keys:Object.keys(e[0]),...It,...t});return{type:"fuse",page:(r,n)=>e.slice(r*n,(r+1)*n),search:r=>s.search(r).map(({item:n})=>n),retrieve:r=>e.filter(n=>r.includes(n.key))}},wt=Ae(),Oe=({term:t,searcher:e=wt})=>me(({data:s})=>typeof e=="function"?t.length===0||(s==null?void 0:s.length)===0?{data:s,transformed:!1}:{data:e(s).search(t),transformed:!0}:{data:e.search(t),transformed:!0}),Ce=({debounce:t=250,value:e,onChange:s,transformBefore:r})=>{const[n,i]=he.usePurePassthrough({onChange:s,value:e,initial:""}),{setTransform:c,deleteTransform:o}=m.useDataUtilContext(),a=m.useDebouncedCallback(c,t,[]),h=$e.useCallback(l=>{i(l),l.length===0?o("filter"):(r!=null&&(l=r(l)),a("filter",Oe({term:l})))},[i,r]);return{value:n,onChange:h}},Le=({children:t=s=>ke.jsxRuntimeExports.jsx(m.Text$1,{...s}),...e})=>t(Ce(e)),At=Object.freeze(Object.defineProperty({__proto__:null,Column:m.Column,ColumnContext:m.ColumnContext,Core:m.Core,DataProvider:m.DataProvider,Filter:Le,Hover:m.Hover,ItemFrame:m.ItemFrame,List:ve.List,Search:m.Search,Selector:m.Selector,selectValueIsZero:m.selectValueIsZero,useDataContext:m.useDataContext,useDataUtilContext:m.useDataUtilContext,useFilter:Ce,useGetTransformedData:m.useGetTransformedData,useHoverContext:m.useHoverContext,useSearch:m.useSearch,useSelect:m.useSelect,useSelection:m.useSelection,useSelectionContext:m.useSelectionContext,useSelectionUtils:m.useSelectionUtils,useSetSourceData:m.useSetSourceData,useSourceData:m.useSourceData,useTransformedData:m.useTransformedData},Symbol.toStringTag,{value:"Module"}));exports.Filter=Le;exports.createFilterTransform=Oe;exports.external=At;exports.fuseFilter=Ae;exports.proxyMemo=me;
@@ -1 +1 @@
1
- "use strict";const r=require("./aggregator-BjcY2k2l.cjs"),e=require("./Toggle-BKoV45C3.cjs"),t=Object.freeze(Object.defineProperty({__proto__:null,Provider:e.Provider,SYNNAX_DARK:r.SYNNAX_DARK,SYNNAX_LIGHT:r.SYNNAX_LIGHT,SYNNAX_THEMES:r.SYNNAX_THEMES,Switch:e.Switch,get Theming(){return t},themeZ:r.themeZ,toCSSVars:e.toCSSVars,use:e.use,useContext:e.useContext,useProvider:e.useProvider,useTypography:e.useTypography},Symbol.toStringTag,{value:"Module"}));exports.external=t;
1
+ "use strict";const r=require("./aggregator-CYlhZeym.cjs"),e=require("./Toggle-CICqV_L2.cjs"),t=Object.freeze(Object.defineProperty({__proto__:null,Provider:e.Provider,SYNNAX_DARK:r.SYNNAX_DARK,SYNNAX_LIGHT:r.SYNNAX_LIGHT,SYNNAX_THEMES:r.SYNNAX_THEMES,Switch:e.Switch,get Theming(){return t},themeZ:r.themeZ,toCSSVars:e.toCSSVars,use:e.use,useContext:e.useContext,useProvider:e.useProvider,useTypography:e.useTypography},Symbol.toStringTag,{value:"Module"}));exports.external=t;
@@ -1 +1 @@
1
- "use strict";const I=require("./aggregator-BjcY2k2l.cjs"),R=require("./jsx-runtime-Cek9Ww4S.cjs"),d=require("./Toggle-BKoV45C3.cjs"),x=require("react"),te=require("./Link-BhQ-K5io.cjs"),ne=require("./Animated-B5JgnUUd.cjs"),h=require("./css-DY1Oedjj.cjs");require("./Pack-BM_LmeO7.cjs");const re=require("./List-lSysLR6L.cjs"),Y=(e,t)=>t.includes(e.key),H=(e,t)=>{t&&e.sort((n,r)=>I.E.stringsWithNumbers(n.name,r.name));let s=!1;for(let n=0;n<e.length;n++){const r=e[n];r.forcePosition!=null&&n!==r.forcePosition&&(s=!0,e.splice(n,1),e.splice(r.forcePosition,0,r))}return s?H(e,!1):e},K=({nodes:e,expanded:t,depth:s=0,sort:n=!0})=>{s===0&&n&&(e=e.sort((l,a)=>l.name.localeCompare(a.name)));const r=[];return e.forEach((l,a)=>{const o=Y(l,t);r.push({...l,depth:s,expanded:o,index:a}),o&&l.children!=null&&(l.children=H(l.children,n),r.push(...K({nodes:l.children,expanded:t,depth:s+1,sort:n})))}),r},se=({tree:e,destination:t,keys:s})=>(s=I.A(s),s.forEach(n=>{const r=j({tree:e,key:n});r!=null&&(z({tree:e,keys:n}),F({tree:e,destination:t,additions:r}))}),e),z=({tree:e,keys:t})=>{t=I.A(t);const s=e.map(n=>n.key);return t.forEach(n=>{var l;const r=s.indexOf(n);if(r!==-1)e.splice(r,1);else{const a=q({tree:e,key:n});a!=null&&(a.children=(l=a.children)==null?void 0:l.filter(o=>o.key!==n))}}),e},F=({tree:e,destination:t,additions:s})=>{s=I.A(s);const n=j({tree:e,key:t});if(n==null)throw new Error(`Could not find node with key ${t}`);n.children==null&&(n.children=[]);const r=s.map(l=>l.key);return n.children=[...s,...n.children.filter(l=>!r.includes(l.key))],e},le=({tree:e,key:t,updater:s,throwOnMissing:n=!0})=>{var a,o;const r=j({tree:e,key:t});if(r==null){if(n)throw new Error(`Could not find node with key ${t}`);return e}const l=q({tree:e,key:t});if(l!=null){const i=(a=l.children)==null?void 0:a.findIndex(S=>S.key===t);i!=null&&i!==-1&&((o=l.children)==null||o.splice(i,1,s(r)))}else e.splice(e.findIndex(i=>i.key===t),1,s(r));return e},ae=({tree:e,parent:t,updater:s,throwOnMissing:n=!0})=>{const r=j({tree:e,key:t});if(r==null){if(n)throw new Error(`Could not find node with key ${t}`);return e}return r.children=s(r.children??[]),e},j=({tree:e,key:t,depth:s=0})=>{for(let n=0;n<e.length;n++){const r=e[n];if(r.key===t){const l=r;return l.depth=s,l.position=n,l}if(r.children!=null){const l=j({tree:r.children,key:t,depth:s+1});if(l!=null)return l}}return null},ie=({tree:e,keys:t})=>{const s=[];for(const n of t){const r=j({tree:e,key:n});r!=null&&s.push(r)}return s},q=({tree:e,key:t})=>{for(const s of e)if(s.children!=null){if(s.children.some(r=>r.key===t))return s;const n=q({tree:s.children,key:t});if(n!=null)return n}return null},V=e=>e.map(t=>({...t,children:V(t.children??[])})),B="tree-item",oe=[["Shift"]],ce=e=>{const{onExpand:t,nodes:s,initialExpanded:n=[],sort:r=!0,selected:l,onSelectedChange:a}=e??{},[o,i,S]=d.useCombinedStateAndRef(n),[c,N]=I.usePassthrough({initial:[],value:l,onChange:a}),T=x.useMemo(()=>K({nodes:s,expanded:o,sort:r}),[s,o,r]),v=d.useSyncedRef(T),w=d.useHeldRef({triggers:oe}),P=x.useCallback((f,{clicked:u})=>{N(f);const C=v.current.find(b=>b.key===u);if((C==null?void 0:C.hasChildren)===!1||u==null||w.current.held)return;const E=S.current,k=E.some(b=>b===u)?"contract":"expand";let y=E;k==="contract"?y=E.filter(b=>b!==u):y=[...E,u],i(y),t==null||t({current:y,action:k,clicked:u})},[t,v,i,N]),p=x.useCallback(f=>{i(u=>I.n([...u,f])),t==null||t({current:o,action:"expand",clicked:f})},[i]),L=x.useCallback(f=>{i(u=>u.filter(C=>C!==f)),t==null||t({current:o,action:"contract",clicked:f})},[i]),_=x.useCallback(()=>i([]),[i]);return{onSelect:P,selected:c,expanded:o,contract:L,expand:p,nodes:T,clearExpanded:_}},G=x.memo(({entry:e,selected:t,onSelect:s,onDrop:n,onRename:r,onSuccessfulDrop:l,onDoubleClick:a,loading:o=!1,useMargin:i=!0,translate:S})=>{const{key:c,hasChildren:N=!1,allowRename:T=!1,children:v,icon:w,name:P,depth:p,expanded:L,href:_,haulItems:f=[]}=e,{getSelected:u}=d.useSelectionUtils(),{getSourceData:C}=d.useDataUtilContext(),E=N||v!=null&&v.length>0,k=[];E&&k.push(R.jsxRuntimeExports.jsx(ne.Animated,{enabled:L,enabledLoc:"bottom",disabledLoc:"right"})),w!=null&&k.push(w);const y=[];o&&y.push(R.jsxRuntimeExports.jsx(d.k0.Loading,{className:h.CSS.B("loading-indicator")}));const[b,O]=x.useState(!1),{startDrag:U,...J}=d.useDragAndDrop({type:"Tree.Item",key:c,canDrop:x.useCallback(({items:m,source:$})=>{const g=m.map(A=>A.key);return O(!1),$.type==="Tree.Item"&&!g.includes(c)},[]),onDrop:x.useCallback(m=>(n==null?void 0:n(c,m))??[],[c,n]),onDragOver:x.useCallback(()=>O(!0),[])}),Q=()=>{const m=u(),$=C().filter(g=>m.includes(g.key));if(m.includes(c)){const g=$.map(({key:A,haulItems:M,depth:W})=>[{type:B,key:A,data:{depth:W}},...(M==null?void 0:M.map(X=>({...X,data:{...X.data,depth:W}})))??[]]).flat();return U(g,A=>l==null?void 0:l(c,A))}U([{type:B,key:c,data:{depth:p}},...f.map(g=>({...g,data:{...g.data,depth:p}}))],g=>l==null?void 0:l(c,g))},Z=i?"marginLeft":"paddingLeft",D={id:c,variant:"text",draggable:f.length>0,className:h.CSS(h.CSS.BE("list","item"),d.CONTEXT_TARGET,b&&h.CSS.M("dragging-over"),t&&d.CONTEXT_SELECTED,h.CSS.selected(t),E&&h.CSS.M("has-children"),h.CSS.BM("depth",p.toString())),onDragLeave:()=>O(!1),onDragStart:Q,onClick:()=>s==null?void 0:s(c),style:{border:"none",position:S!=null?"absolute":"relative",transform:`translateY(${S}px)`,[Z]:`${p*1.5+1.5}rem`,"--pluto-tree-indicator-offset":`${p*1.5+(p===0?0:.5)}rem`},startIcon:k,iconSpacing:"small",noWrap:!0,endIcon:y,onDoubleClick:m=>a==null?void 0:a(c,m),href:_,...J},ee=_!=null?te.Link:d.Button;return R.jsxRuntimeExports.jsx(ee,{className:h.CSS.BE("list","item"),...D,children:R.jsxRuntimeExports.jsx(d.MaybeEditable,{id:`text-${c}`,level:"p",allowDoubleClick:!1,value:P,disabled:!T,onChange:m=>r==null?void 0:r(c,m)})})});G.displayName="Tree.Item";const de=d.componentRenderProp(G),ue=({nodes:e,selected:t=[],onSelect:s,onDrop:n,onRename:r,onSuccessfulDrop:l,onDoubleClick:a,className:o,children:i=de,itemHeight:S=27,useMargin:c=!1,showRules:N=!1,virtual:T=!0,clearExpanded:v,expand:w,contract:P,emptyContent:p,loading:L,..._})=>{const f=T?d.Core.Virtual:d.Core;return R.jsxRuntimeExports.jsx(re.List,{data:e,emptyContent:p,children:R.jsxRuntimeExports.jsx(d.Selector,{value:t,onChange:s,allowMultiple:!0,replaceOnSingle:!0,children:R.jsxRuntimeExports.jsx(f,{itemHeight:S,className:h.CSS(o,h.CSS.B("tree"),N&&h.CSS.M("rules")),..._,children:({key:u,...C})=>i({...C,key:u,loading:L===u,useMargin:c,onDrop:n,onRename:r,onSuccessfulDrop:l,onDoubleClick:a})})})})},fe=(e,t)=>d.edit(`text-${e}`,t),he=e=>d.asyncEdit(`text-${e}`),pe=Object.freeze(Object.defineProperty({__proto__:null,DefaultItem:G,HAUL_TYPE:B,Tree:ue,asyncRename:he,deepCopy:V,findNode:j,findNodeParent:q,findNodes:ie,flatten:K,moveNode:se,removeNode:z,setNode:F,shouldExpand:Y,sortAndSplice:H,startRenaming:fe,updateNode:le,updateNodeChildren:ae,use:ce},Symbol.toStringTag,{value:"Module"}));exports.external=pe;
1
+ "use strict";const I=require("./aggregator-CYlhZeym.cjs"),R=require("./jsx-runtime-Cek9Ww4S.cjs"),d=require("./Toggle-CICqV_L2.cjs"),x=require("react"),te=require("./Link-BTJDCfSs.cjs"),ne=require("./Animated-C-Fn9eLa.cjs"),h=require("./css-DY1Oedjj.cjs");require("./Pack-BM_LmeO7.cjs");const re=require("./List-bpq4WGKS.cjs"),Y=(e,t)=>t.includes(e.key),H=(e,t)=>{t&&e.sort((n,r)=>I.E.stringsWithNumbers(n.name,r.name));let s=!1;for(let n=0;n<e.length;n++){const r=e[n];r.forcePosition!=null&&n!==r.forcePosition&&(s=!0,e.splice(n,1),e.splice(r.forcePosition,0,r))}return s?H(e,!1):e},K=({nodes:e,expanded:t,depth:s=0,sort:n=!0})=>{s===0&&n&&(e=e.sort((l,i)=>l.name.localeCompare(i.name)));const r=[];return e.forEach((l,i)=>{const o=Y(l,t);r.push({...l,depth:s,expanded:o,index:i}),o&&l.children!=null&&(l.children=H(l.children,n),r.push(...K({nodes:l.children,expanded:t,depth:s+1,sort:n})))}),r},se=({tree:e,destination:t,keys:s})=>(s=I.A(s),s.forEach(n=>{const r=j({tree:e,key:n});r!=null&&(z({tree:e,keys:n}),F({tree:e,destination:t,additions:r}))}),e),z=({tree:e,keys:t})=>{t=I.A(t);const s=e.map(n=>n.key);return t.forEach(n=>{var l;const r=s.indexOf(n);if(r!==-1)e.splice(r,1);else{const i=q({tree:e,key:n});i!=null&&(i.children=(l=i.children)==null?void 0:l.filter(o=>o.key!==n))}}),e},F=({tree:e,destination:t,additions:s})=>{s=I.A(s);const n=j({tree:e,key:t});if(n==null)throw new Error(`Could not find node with key ${t}`);n.children==null&&(n.children=[]);const r=s.map(l=>l.key);return n.children=[...s,...n.children.filter(l=>!r.includes(l.key))],e},le=({tree:e,key:t,updater:s,throwOnMissing:n=!0})=>{var i,o;const r=j({tree:e,key:t});if(r==null){if(n)throw new Error(`Could not find node with key ${t}`);return e}const l=q({tree:e,key:t});if(l!=null){const a=(i=l.children)==null?void 0:i.findIndex(S=>S.key===t);a!=null&&a!==-1&&((o=l.children)==null||o.splice(a,1,s(r)))}else e.splice(e.findIndex(a=>a.key===t),1,s(r));return e},ae=({tree:e,parent:t,updater:s,throwOnMissing:n=!0})=>{const r=j({tree:e,key:t});if(r==null){if(n)throw new Error(`Could not find node with key ${t}`);return e}return r.children=s(r.children??[]),e},j=({tree:e,key:t,depth:s=0})=>{for(let n=0;n<e.length;n++){const r=e[n];if(r.key===t){const l=r;return l.depth=s,l.position=n,l}if(r.children!=null){const l=j({tree:r.children,key:t,depth:s+1});if(l!=null)return l}}return null},ie=({tree:e,keys:t})=>{const s=[];for(const n of t){const r=j({tree:e,key:n});r!=null&&s.push(r)}return s},q=({tree:e,key:t})=>{for(const s of e)if(s.children!=null){if(s.children.some(r=>r.key===t))return s;const n=q({tree:s.children,key:t});if(n!=null)return n}return null},V=e=>e.map(t=>({...t,children:V(t.children??[])})),M="tree-item",oe=[["Shift"]],ce=e=>{const{onExpand:t,nodes:s,initialExpanded:n=[],sort:r=!0,selected:l,onSelectedChange:i}=e??{},[o,a,S]=d.useCombinedStateAndRef(n),[c,N]=I.usePassthrough({initial:[],value:l,onChange:i}),T=x.useMemo(()=>K({nodes:s,expanded:o,sort:r}),[s,o,r]),v=d.useSyncedRef(T),w=d.useHeldRef({triggers:oe}),P=x.useCallback((f,{clicked:u})=>{N(f);const C=v.current.find(b=>b.key===u);if((C==null?void 0:C.hasChildren)===!1||u==null||w.current.held)return;const E=S.current,k=E.some(b=>b===u)?"contract":"expand";let y=E;k==="contract"?y=E.filter(b=>b!==u):y=[...E,u],a(y),t==null||t({current:y,action:k,clicked:u})},[t,v,a,N]),p=x.useCallback(f=>{a(u=>I.n([...u,f])),t==null||t({current:o,action:"expand",clicked:f})},[a]),L=x.useCallback(f=>{a(u=>u.filter(C=>C!==f)),t==null||t({current:o,action:"contract",clicked:f})},[a]),_=x.useCallback(()=>a([]),[a]);return{onSelect:P,selected:c,expanded:o,contract:L,expand:p,nodes:T,clearExpanded:_}},G=x.memo(({entry:e,selected:t,onSelect:s,onDrop:n,onRename:r,onSuccessfulDrop:l,onDoubleClick:i,loading:o=!1,useMargin:a=!0,translate:S})=>{const{key:c,hasChildren:N=!1,allowRename:T=!1,children:v,icon:w,name:P,depth:p,expanded:L,href:_,haulItems:f=[]}=e,{getSelected:u}=d.useSelectionUtils(),{getSourceData:C}=d.useDataUtilContext(),E=N||v!=null&&v.length>0,k=[];E&&k.push(R.jsxRuntimeExports.jsx(ne.Animated,{enabled:L,enabledLoc:"bottom",disabledLoc:"right"})),w!=null&&k.push(w);const y=[];o&&y.push(R.jsxRuntimeExports.jsx(d.k0.Loading,{className:h.CSS.B("loading-indicator")}));const[b,O]=x.useState(!1),{startDrag:U,...J}=d.useDragAndDrop({type:"Tree.Item",key:c,canDrop:x.useCallback(({items:m,source:$})=>{const g=m.map(A=>A.key);return O(!1),$.type==="Tree.Item"&&!g.includes(c)},[]),onDrop:x.useCallback(m=>(n==null?void 0:n(c,m))??[],[c,n]),onDragOver:x.useCallback(()=>O(!0),[])}),Q=()=>{const m=u(),$=C().filter(g=>m.includes(g.key));if(m.includes(c)){const g=$.map(({key:A,haulItems:B,depth:W})=>[{type:M,key:A,data:{depth:W}},...(B==null?void 0:B.map(X=>({...X,data:{...X.data,depth:W}})))??[]]).flat();return U(g,A=>l==null?void 0:l(c,A))}U([{type:M,key:c,data:{depth:p}},...f.map(g=>({...g,data:{...g.data,depth:p}}))],g=>l==null?void 0:l(c,g))},Z=a?"marginLeft":"paddingLeft",D={id:c,variant:"text",draggable:f.length>0,className:h.CSS(h.CSS.BE("list","item"),d.CONTEXT_TARGET,b&&h.CSS.M("dragging-over"),t&&d.CONTEXT_SELECTED,h.CSS.selected(t),E&&h.CSS.M("has-children"),h.CSS.BM("depth",p.toString())),onDragLeave:()=>O(!1),onDragStart:Q,onClick:()=>s==null?void 0:s(c),style:{border:"none",position:S!=null?"absolute":"relative",transform:`translateY(${S}px)`,[Z]:`${p*1.5+(E&&a?0:2)}rem`,"--pluto-tree-indicator-offset":`${p*1.5+(p===0?0:.5)}rem`},startIcon:k,iconSpacing:"small",noWrap:!0,endIcon:y,onDoubleClick:m=>i==null?void 0:i(c,m),href:_,...J},ee=_!=null?te.Link:d.Button;return R.jsxRuntimeExports.jsx(ee,{className:h.CSS.BE("list","item"),...D,children:R.jsxRuntimeExports.jsx(d.MaybeEditable,{id:`text-${c}`,level:"p",allowDoubleClick:!1,value:P,disabled:!T,onChange:m=>r==null?void 0:r(c,m)})})});G.displayName="Tree.Item";const de=d.componentRenderProp(G),ue=({nodes:e,selected:t=[],onSelect:s,onDrop:n,onRename:r,onSuccessfulDrop:l,onDoubleClick:i,className:o,children:a=de,itemHeight:S=27,useMargin:c=!1,showRules:N=!1,virtual:T=!0,clearExpanded:v,expand:w,contract:P,emptyContent:p,loading:L,..._})=>{const f=T?d.Core.Virtual:d.Core;return R.jsxRuntimeExports.jsx(re.List,{data:e,emptyContent:p,children:R.jsxRuntimeExports.jsx(d.Selector,{value:t,onChange:s,allowMultiple:!0,replaceOnSingle:!0,children:R.jsxRuntimeExports.jsx(f,{itemHeight:S,className:h.CSS(o,h.CSS.B("tree"),N&&h.CSS.M("rules")),..._,children:({key:u,...C})=>a({...C,key:u,loading:L===u,useMargin:c,onDrop:n,onRename:r,onSuccessfulDrop:l,onDoubleClick:i})})})})},fe=(e,t)=>d.edit(`text-${e}`,t),he=e=>d.asyncEdit(`text-${e}`),pe=Object.freeze(Object.defineProperty({__proto__:null,DefaultItem:G,HAUL_TYPE:M,Tree:ue,asyncRename:he,deepCopy:V,findNode:j,findNodeParent:q,findNodes:ie,flatten:K,moveNode:se,removeNode:z,setNode:F,shouldExpand:Y,sortAndSplice:H,startRenaming:fe,updateNode:le,updateNodeChildren:ae,use:ce},Symbol.toStringTag,{value:"Module"}));exports.external=pe;
@@ -1 +1 @@
1
- "use strict";const i=require("./jsx-runtime-Cek9Ww4S.cjs"),d=require("./aggregator-BjcY2k2l.cjs"),c=require("react"),S=require("./Pack-BM_LmeO7.cjs"),a=require("./Toggle-BKoV45C3.cjs"),o=require("./css-DY1Oedjj.cjs"),p=c.createContext({divided:!1,level:"h1"}),l=()=>c.useContext(p),j=({children:s,className:r,level:e="h1",divided:n=!1,...t})=>i.jsxRuntimeExports.jsx(p.Provider,{value:{level:e,divided:n},children:i.jsxRuntimeExports.jsx(S.Space,{el:"header",direction:"x",justify:"spaceBetween",className:o.CSS(o.CSS.B("header"),o.CSS.bordered("bottom"),n&&o.CSS.BM("header","divided"),r),...t,children:s})}),m=({children:s=[]})=>{const{level:r,divided:e}=l();return i.jsxRuntimeExports.jsx(S.Space,{direction:"x",size:"small",align:"center",className:o.CSS.BE("header","actions"),children:d.A(s).map((n,t)=>i.jsxRuntimeExports.jsx(h,{index:t,level:r,divided:e,children:n},t))})},h=({index:s,level:r,children:e,divided:n})=>{let t=e;if(!c.isValidElement(e)){const{onClick:x,...C}=e;t=i.jsxRuntimeExports.jsx(a.Icon,{onClick:u=>{u.stopPropagation(),u.preventDefault(),x==null||x(u)},size:d.LevelComponentSizes[r],...C},s)}return i.jsxRuntimeExports.jsxs(c.Fragment,{children:[n&&i.jsxRuntimeExports.jsx(a.Divider,{}),t]},s)},v=({children:s="",className:r,onClick:e,...n})=>{const{level:t}=l();return i.jsxRuntimeExports.jsx(a.Button,{variant:"text",size:d.LevelComponentSizes[t],onClick:e,className:o.CSS(o.CSS.B("header-button-title"),r),sharp:!0,...n,children:s})},E=({className:s,level:r,...e})=>{const{level:n,divided:t}=l();return i.jsxRuntimeExports.jsx(a.WithIcon,{className:o.CSS(o.CSS.BE("header","text"),s),level:r??n,divided:t,size:1.5,...e})},R=Object.freeze(Object.defineProperty({__proto__:null,Actions:m,ButtonTitle:v,Header:j,Title:E,useContext:l},Symbol.toStringTag,{value:"Module"}));exports.Actions=m;exports.ButtonTitle=v;exports.Header=j;exports.external=R;
1
+ "use strict";const i=require("./jsx-runtime-Cek9Ww4S.cjs"),d=require("./aggregator-CYlhZeym.cjs"),c=require("react"),S=require("./Pack-BM_LmeO7.cjs"),a=require("./Toggle-CICqV_L2.cjs"),o=require("./css-DY1Oedjj.cjs"),p=c.createContext({divided:!1,level:"h1"}),l=()=>c.useContext(p),j=({children:s,className:r,level:e="h1",divided:n=!1,...t})=>i.jsxRuntimeExports.jsx(p.Provider,{value:{level:e,divided:n},children:i.jsxRuntimeExports.jsx(S.Space,{el:"header",direction:"x",justify:"spaceBetween",className:o.CSS(o.CSS.B("header"),o.CSS.bordered("bottom"),n&&o.CSS.BM("header","divided"),r),...t,children:s})}),m=({children:s=[]})=>{const{level:r,divided:e}=l();return i.jsxRuntimeExports.jsx(S.Space,{direction:"x",size:"small",align:"center",className:o.CSS.BE("header","actions"),children:d.A(s).map((n,t)=>i.jsxRuntimeExports.jsx(h,{index:t,level:r,divided:e,children:n},t))})},h=({index:s,level:r,children:e,divided:n})=>{let t=e;if(!c.isValidElement(e)){const{onClick:x,...C}=e;t=i.jsxRuntimeExports.jsx(a.Icon,{onClick:u=>{u.stopPropagation(),u.preventDefault(),x==null||x(u)},size:d.LevelComponentSizes[r],...C},s)}return i.jsxRuntimeExports.jsxs(c.Fragment,{children:[n&&i.jsxRuntimeExports.jsx(a.Divider,{}),t]},s)},v=({children:s="",className:r,onClick:e,...n})=>{const{level:t}=l();return i.jsxRuntimeExports.jsx(a.Button,{variant:"text",size:d.LevelComponentSizes[t],onClick:e,className:o.CSS(o.CSS.B("header-button-title"),r),sharp:!0,...n,children:s})},E=({className:s,level:r,...e})=>{const{level:n,divided:t}=l();return i.jsxRuntimeExports.jsx(a.WithIcon,{className:o.CSS(o.CSS.BE("header","text"),s),level:r??n,divided:t,size:1.5,...e})},R=Object.freeze(Object.defineProperty({__proto__:null,Actions:m,ButtonTitle:v,Header:j,Title:E,useContext:l},Symbol.toStringTag,{value:"Module"}));exports.Actions=m;exports.ButtonTitle=v;exports.Header=j;exports.external=R;
@@ -1,10 +1,10 @@
1
- import { w as he, au as Ae, ak as Oe, K as ke, av as Le, A as Re, h as Ce, J as je, aw as ve, ax as $e, E as Ne, ay as Fe, az as Te, aA as Pe, aB as De, aC as Ke, L as We, aD as ze, aE as He, v as Ve, aF as Be, aG as Ge, aH as Ue } from "./Toggle-BYLe2YvN.js";
1
+ import { w as he, au as Ae, ak as Oe, K as ke, av as Le, A as Re, h as Ce, J as je, aw as ve, ax as $e, E as Ne, ay as Fe, az as Te, aA as Pe, aB as De, aC as Ke, L as We, aD as ze, aE as He, v as Ve, aF as Be, aG as Ge, aH as Ue } from "./Toggle-2UJtIoEe.js";
2
2
  import { j as Ye } from "./jsx-runtime-B6kdoens.js";
3
3
  import { useCallback as Je } from "react";
4
- import { k as Qe, j as Xe } from "./aggregator-ZdqEkvBK.js";
4
+ import { k as Qe, j as Xe } from "./aggregator-BTr6vhAN.js";
5
5
  import "./css-DEMSADUS.js";
6
6
  import "./Pack-E_3LSkGG.js";
7
- import { L as Ze } from "./List-xUwGRWFg.js";
7
+ import { L as Ze } from "./List-DQ5KNkbE.js";
8
8
  const K = Symbol(), le = Symbol(), J = Symbol();
9
9
  let qe = (t, e) => new Proxy(t, e);
10
10
  const W = Object.getPrototypeOf, te = /* @__PURE__ */ new WeakMap(), Q = (t) => t && (te.has(t) ? te.get(t) : W(t) === Object.prototype || W(t) === Array.prototype), se = (t) => typeof t == "object" && t !== null, re = /* @__PURE__ */ new WeakMap(), ue = (t) => t[J] || t, fe = (t, e, s) => {
@@ -1,8 +1,8 @@
1
1
  import { C as r, a as l, Z as g, c as f, b as v, f as E, t as T } from "./css-DEMSADUS.js";
2
2
  import { j as c } from "./jsx-runtime-B6kdoens.js";
3
- import { i as A, j as C, u as H, l as M, m as x, n as N, B as O, e as R, o as Z } from "./Toggle-BYLe2YvN.js";
3
+ import { i as A, j as C, u as H, l as M, m as x, n as N, B as O, e as R, o as Z } from "./Toggle-2UJtIoEe.js";
4
4
  import { useCallback as L } from "react";
5
- import "./aggregator-ZdqEkvBK.js";
5
+ import "./aggregator-BTr6vhAN.js";
6
6
  import "./Pack-E_3LSkGG.js";
7
7
  const k = ({ value: t, onChange: o, ...p }) => {
8
8
  const n = (e) => {
@@ -1 +1 @@
1
- "use strict";const e=require("./Toggle-BKoV45C3.cjs"),o=require("./Link-BhQ-K5io.cjs"),n=Object.freeze(Object.defineProperty({__proto__:null,Button:e.Button,Icon:e.Icon,Link:o.Link,Toggle:e.Toggle,ToggleIcon:e.ToggleIcon},Symbol.toStringTag,{value:"Module"}));exports.external=n;
1
+ "use strict";const e=require("./Toggle-CICqV_L2.cjs"),o=require("./Link-BTJDCfSs.cjs"),n=Object.freeze(Object.defineProperty({__proto__:null,Button:e.Button,Icon:e.Icon,Link:o.Link,Toggle:e.Toggle,ToggleIcon:e.ToggleIcon},Symbol.toStringTag,{value:"Module"}));exports.external=n;
@@ -1,5 +1,5 @@
1
- import { B as o, I as e, T as t, d as r } from "./Toggle-BYLe2YvN.js";
2
- import { L as a } from "./Link-0lZQ38cR.js";
1
+ import { B as o, I as e, T as t, d as r } from "./Toggle-2UJtIoEe.js";
2
+ import { L as a } from "./Link-CBJMkW3j.js";
3
3
  const s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4
4
  __proto__: null,
5
5
  Button: o,
@@ -1,10 +1,10 @@
1
- import { Y as p, e as S, U as d, k as g, Z as b, _ as h, $ as C, a0 as j, a1 as T, a2 as K, a3 as R, a4 as k, a5 as _, a6 as L, a7 as v, a8 as A, a9 as O, aa as Z, ab as U, ac as Y, ad as w, ae as H, af as P, ag as N, ah as z, ai as F, aj as I, z as $ } from "./Toggle-BYLe2YvN.js";
1
+ import { Y as p, e as S, U as d, k as g, Z as b, _ as h, $ as C, a0 as j, a1 as T, a2 as K, a3 as R, a4 as k, a5 as _, a6 as L, a7 as v, a8 as A, a9 as O, aa as Z, ab as U, ac as Y, ad as w, ae as H, af as P, ag as N, ah as z, ai as F, aj as I, z as $ } from "./Toggle-2UJtIoEe.js";
2
2
  import { j as r } from "./jsx-runtime-B6kdoens.js";
3
3
  import { useState as q, useEffect as X, useRef as x, useCallback as M } from "react";
4
- import "./aggregator-ZdqEkvBK.js";
4
+ import "./aggregator-BTr6vhAN.js";
5
5
  import { q as l, T as f } from "./css-DEMSADUS.js";
6
6
  import "./Pack-E_3LSkGG.js";
7
- import { K as B } from "./Keyboard-Dq4czdJl.js";
7
+ import { K as B } from "./Keyboard-D2y8u-A6.js";
8
8
  const G = (e) => {
9
9
  const { listen: t } = p(), [n, c] = q([]);
10
10
  return X(
@@ -1 +1 @@
1
- "use strict";const t=require("./Toggle-BKoV45C3.cjs"),C=require("./jsx-runtime-Cek9Ww4S.cjs"),v=require("./Link-BhQ-K5io.cjs"),x=require("./css-DY1Oedjj.cjs"),u=require("react"),a=u.createContext({onClick:()=>{},selected:""}),E=()=>u.useContext(a),O=({children:i,onChange:e,level:c,iconSpacing:o,value:r=""})=>{const n=u.useCallback(s=>{typeof e=="function"?e(s):e&&s in e&&e[s](s)},[e]),l=u.useMemo(()=>({onClick:n,selected:r,level:c,iconSpacing:o}),[r,n,c,o]);return C.jsxRuntimeExports.jsx(a.Provider,{value:l,children:i})},R=()=>C.jsxRuntimeExports.jsx(t.Divider,{direction:"x",padded:!0}),m=(i,e)=>c=>{const{itemKey:o,className:r,onClick:n,size:l,...s}={...e,...c},{onClick:S,selected:j,level:p,iconSpacing:M}=E(),_=k=>{S(o),n==null||n(k)},I=j===o;return C.jsxRuntimeExports.jsx(i,{level:p,...s,onClick:_,variant:"text",className:x.CSS(x.CSS.B("menu-item"),x.CSS.selected(I),r),size:l??M})},d=m(t.Button,{noWrap:!0}),f=m(t.Icon),L=m(v.Link,{noWrap:!0}),T=d;T.Icon=f;T.Link=L;const N=Object.freeze(Object.defineProperty({__proto__:null,CONTEXT_SELECTED:t.CONTEXT_SELECTED,CONTEXT_TARGET:t.CONTEXT_TARGET,ContextMenu:t.ContextMenu,CoreItem:d,Divider:R,Item:T,Menu:O,MenuContext:a,useContextMenu:t.useContextMenu,useMenuContext:E},Symbol.toStringTag,{value:"Module"}));exports.external=N;
1
+ "use strict";const t=require("./Toggle-CICqV_L2.cjs"),C=require("./jsx-runtime-Cek9Ww4S.cjs"),v=require("./Link-BTJDCfSs.cjs"),x=require("./css-DY1Oedjj.cjs"),u=require("react"),a=u.createContext({onClick:()=>{},selected:""}),E=()=>u.useContext(a),O=({children:i,onChange:e,level:c,iconSpacing:o,value:r=""})=>{const n=u.useCallback(s=>{typeof e=="function"?e(s):e&&s in e&&e[s](s)},[e]),l=u.useMemo(()=>({onClick:n,selected:r,level:c,iconSpacing:o}),[r,n,c,o]);return C.jsxRuntimeExports.jsx(a.Provider,{value:l,children:i})},R=()=>C.jsxRuntimeExports.jsx(t.Divider,{direction:"x",padded:!0}),m=(i,e)=>c=>{const{itemKey:o,className:r,onClick:n,size:l,...s}={...e,...c},{onClick:S,selected:j,level:p,iconSpacing:M}=E(),_=k=>{S(o),n==null||n(k)},I=j===o;return C.jsxRuntimeExports.jsx(i,{level:p,...s,onClick:_,variant:"text",className:x.CSS(x.CSS.B("menu-item"),x.CSS.selected(I),r),size:l??M})},d=m(t.Button,{noWrap:!0}),f=m(t.Icon),L=m(v.Link,{noWrap:!0}),T=d;T.Icon=f;T.Link=L;const N=Object.freeze(Object.defineProperty({__proto__:null,CONTEXT_SELECTED:t.CONTEXT_SELECTED,CONTEXT_TARGET:t.CONTEXT_TARGET,ContextMenu:t.ContextMenu,CoreItem:d,Divider:R,Item:T,Menu:O,MenuContext:a,useContextMenu:t.useContextMenu,useMenuContext:E},Symbol.toStringTag,{value:"Module"}));exports.external=N;
@@ -1 +1 @@
1
- "use strict";const x=require("./aggregator-BjcY2k2l.cjs"),e=require("./Toggle-BKoV45C3.cjs"),D=require("./Keyboard-cRnR69tU.cjs"),o=require("./jsx-runtime-Cek9Ww4S.cjs"),f=require("react"),T=require("./Pack-BM_LmeO7.cjs"),q=require("./Animated-B5JgnUUd.cjs"),k=require("./css-DY1Oedjj.cjs"),v=require("./List-lSysLR6L.cjs"),A=[],C=({data:t,emptyContent:n,value:l,onChange:s,allowMultiple:u,allowNone:a,hideColumnHeader:i=!1,children:p,columns:j=A,visible:d,itemHeight:r=e.Column.itemHeight,listItem:y=e.componentRenderProp(e.Column.Item),replaceOnSingle:b,omit:S,autoSelectOnNone:m,...E})=>o.jsxRuntimeExports.jsx(v.List,{data:t,emptyContent:n,omit:S,children:o.jsxRuntimeExports.jsx(e.Selector,{value:l,onChange:s,allowMultiple:u,allowNone:a,replaceOnSingle:b,autoSelectOnNone:m,children:o.jsxRuntimeExports.jsxs(e.Dialog,{visible:d,className:k.CSS.B("select"),keepMounted:!1,...E,children:[p,o.jsxRuntimeExports.jsx(e.Hover,{disabled:!d,children:o.jsxRuntimeExports.jsx(e.Column.Header,{hide:i||y!=null,columns:j,children:o.jsxRuntimeExports.jsx(e.Core.Virtual,{itemHeight:r,children:y})})})]})})}),h=({children:t=M,value:n,onChange:l,entryRenderKey:s="key",allowNone:u=!1,allowMultiple:a=!1,data:i,replaceOnSingle:p,...j})=>{const{onSelect:d}=e.useSelect({allowMultiple:a,allowNone:u,replaceOnSingle:p,data:i,value:n,onChange:l});return o.jsxRuntimeExports.jsx(T.Pack,{...j,children:i.map(r=>t({key:r.key,onClick:()=>d(r.key),selected:r.key===n,entry:r,title:r[s]}))})},M=({entry:t,onClick:n,selected:l,title:s})=>o.jsxRuntimeExports.jsx(e.Button,{onClick:n,variant:l?"filled":"outlined",children:s},t.key),L=({selected:t,renderKey:n,toggle:l,visible:s,children:u,...a})=>o.jsxRuntimeExports.jsx(e.Button,{className:k.CSS.B("select-button"),onClick:l,variant:"outlined",endIcon:o.jsxRuntimeExports.jsx(q.Animated,{enabledLoc:"bottom",disabledLoc:"left",enabled:s}),...a,children:u??(t==null?void 0:t[n])}),B=e.componentRenderProp(L),z=({data:t,value:n,columns:l=[],children:s=B,entryRenderKey:u="key",allowNone:a=!1,onChange:i,disabled:p,hideColumnHeader:j=!0,...d})=>{const{close:r,visible:y,toggle:b}=e.use$1(),[S,m]=f.useState((t==null?void 0:t.find(c=>c.key===n))??null);f.useEffect(()=>{m((t==null?void 0:t.find(c=>c.key===n))??null)},[t,n]);const E=f.useCallback((c,g)=>{if(!(Array.isArray(c)||c===null)){if(r(),c==null)return m(null),i(n);m(g.entries[0]),i(c)}},[i,n,r,m]);return o.jsxRuntimeExports.jsx(C,{close:r,data:t,visible:y,value:n,onChange:E,allowMultiple:!1,allowNone:a,columns:l,hideColumnHeader:j,...d,children:s({selected:S,renderKey:u,toggle:b,visible:y,disabled:p})})},P=[{key:"h2",label:"XL"},{key:"h3",label:"L"},{key:"h4",label:"M"},{key:"p",label:"S"},{key:"small",label:"XS"}],_=({key:t,entry:n,onClick:l,selected:s})=>o.jsxRuntimeExports.jsx(e.Button,{variant:s?"filled":"outlined",onClick:l,children:n.label},t),R=({children:t=_,...n})=>o.jsxRuntimeExports.jsx(h,{...n,data:P,children:t}),K=Object.freeze(Object.defineProperty({__proto__:null,ComponentSizeLevels:x.ComponentSizeLevels,CoreDateTime:e.CoreDateTime,DateTime:e.DateTime,Editable:e.Editable,Keyboard:D.Keyboard,LEVELS:x.LEVELS,LevelComponentSizes:x.LevelComponentSizes,Link:e.Link,MaybeEditable:e.MaybeEditable,SelectLevel:R,Symbols:e.Symbols,Text:e.Text,WithIcon:e.WithIcon,asyncEdit:e.asyncEdit,dimensions:x.dimensions,edit:e.edit,evalColor:e.evalColor,formatChildren:e.formatChildren,levelZ:x.levelZ,specZ:x.specZ},Symbol.toStringTag,{value:"Module"}));exports.BaseButton=L;exports.Button=h;exports.Core=C;exports.DropdownButton=z;exports.SelectLevel=R;exports.defaultButton=B;exports.external=K;
1
+ "use strict";const x=require("./aggregator-CYlhZeym.cjs"),e=require("./Toggle-CICqV_L2.cjs"),D=require("./Keyboard-DkBJ6mo5.cjs"),o=require("./jsx-runtime-Cek9Ww4S.cjs"),f=require("react"),T=require("./Pack-BM_LmeO7.cjs"),q=require("./Animated-C-Fn9eLa.cjs"),k=require("./css-DY1Oedjj.cjs"),v=require("./List-bpq4WGKS.cjs"),A=[],C=({data:t,emptyContent:n,value:l,onChange:s,allowMultiple:u,allowNone:a,hideColumnHeader:i=!1,children:p,columns:j=A,visible:d,itemHeight:r=e.Column.itemHeight,listItem:y=e.componentRenderProp(e.Column.Item),replaceOnSingle:b,omit:S,autoSelectOnNone:m,...E})=>o.jsxRuntimeExports.jsx(v.List,{data:t,emptyContent:n,omit:S,children:o.jsxRuntimeExports.jsx(e.Selector,{value:l,onChange:s,allowMultiple:u,allowNone:a,replaceOnSingle:b,autoSelectOnNone:m,children:o.jsxRuntimeExports.jsxs(e.Dialog,{visible:d,className:k.CSS.B("select"),keepMounted:!1,...E,children:[p,o.jsxRuntimeExports.jsx(e.Hover,{disabled:!d,children:o.jsxRuntimeExports.jsx(e.Column.Header,{hide:i||y!=null,columns:j,children:o.jsxRuntimeExports.jsx(e.Core.Virtual,{itemHeight:r,children:y})})})]})})}),h=({children:t=M,value:n,onChange:l,entryRenderKey:s="key",allowNone:u=!1,allowMultiple:a=!1,data:i,replaceOnSingle:p,...j})=>{const{onSelect:d}=e.useSelect({allowMultiple:a,allowNone:u,replaceOnSingle:p,data:i,value:n,onChange:l});return o.jsxRuntimeExports.jsx(T.Pack,{...j,children:i.map(r=>t({key:r.key,onClick:()=>d(r.key),selected:r.key===n,entry:r,title:r[s]}))})},M=({entry:t,onClick:n,selected:l,title:s})=>o.jsxRuntimeExports.jsx(e.Button,{onClick:n,variant:l?"filled":"outlined",children:s},t.key),L=({selected:t,renderKey:n,toggle:l,visible:s,children:u,...a})=>o.jsxRuntimeExports.jsx(e.Button,{className:k.CSS.B("select-button"),onClick:l,variant:"outlined",endIcon:o.jsxRuntimeExports.jsx(q.Animated,{enabledLoc:"bottom",disabledLoc:"left",enabled:s}),...a,children:u??(t==null?void 0:t[n])}),B=e.componentRenderProp(L),z=({data:t,value:n,columns:l=[],children:s=B,entryRenderKey:u="key",allowNone:a=!1,onChange:i,disabled:p,hideColumnHeader:j=!0,...d})=>{const{close:r,visible:y,toggle:b}=e.use$1(),[S,m]=f.useState((t==null?void 0:t.find(c=>c.key===n))??null);f.useEffect(()=>{m((t==null?void 0:t.find(c=>c.key===n))??null)},[t,n]);const E=f.useCallback((c,g)=>{if(!(Array.isArray(c)||c===null)){if(r(),c==null)return m(null),i(n);m(g.entries[0]),i(c)}},[i,n,r,m]);return o.jsxRuntimeExports.jsx(C,{close:r,data:t,visible:y,value:n,onChange:E,allowMultiple:!1,allowNone:a,columns:l,hideColumnHeader:j,...d,children:s({selected:S,renderKey:u,toggle:b,visible:y,disabled:p})})},P=[{key:"h2",label:"XL"},{key:"h3",label:"L"},{key:"h4",label:"M"},{key:"p",label:"S"},{key:"small",label:"XS"}],_=({key:t,entry:n,onClick:l,selected:s})=>o.jsxRuntimeExports.jsx(e.Button,{variant:s?"filled":"outlined",onClick:l,children:n.label},t),R=({children:t=_,...n})=>o.jsxRuntimeExports.jsx(h,{...n,data:P,children:t}),K=Object.freeze(Object.defineProperty({__proto__:null,ComponentSizeLevels:x.ComponentSizeLevels,CoreDateTime:e.CoreDateTime,DateTime:e.DateTime,Editable:e.Editable,Keyboard:D.Keyboard,LEVELS:x.LEVELS,LevelComponentSizes:x.LevelComponentSizes,Link:e.Link,MaybeEditable:e.MaybeEditable,SelectLevel:R,Symbols:e.Symbols,Text:e.Text,WithIcon:e.WithIcon,asyncEdit:e.asyncEdit,dimensions:x.dimensions,edit:e.edit,evalColor:e.evalColor,formatChildren:e.formatChildren,levelZ:x.levelZ,specZ:x.specZ},Symbol.toStringTag,{value:"Module"}));exports.BaseButton=L;exports.Button=h;exports.Core=C;exports.DropdownButton=z;exports.SelectLevel=R;exports.defaultButton=B;exports.external=K;