@prefecthq/prefab-ui 0.17.0 → 0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/app/{_basePickBy-DOA5KUMR.js → _basePickBy-BVmN5HKo.js} +1 -1
  2. package/dist/app/{_baseUniq-DNC1lkUQ.js → _baseUniq-DLSCZPvE.js} +1 -1
  3. package/dist/app/{architectureDiagram-2XIMDMQ5-DSBvrnBp.js → architectureDiagram-2XIMDMQ5-2JqupSrT.js} +1 -1
  4. package/dist/app/{blockDiagram-WCTKOSBZ-C3lqcHEK.js → blockDiagram-WCTKOSBZ-B524maQO.js} +1 -1
  5. package/dist/app/{bundle-CxPeOkEN.js → bundle-CuKB3rLB.js} +227 -4
  6. package/dist/app/{c4Diagram-IC4MRINW-XbaYr2aT.js → c4Diagram-IC4MRINW-LiBCLrwc.js} +1 -1
  7. package/dist/app/carousel-C1Mu00qO.js +1 -0
  8. package/dist/app/channel-DIEGSkkN.js +1 -0
  9. package/dist/app/{charts-DnKlwCuG.js → charts-CAbb86jt.js} +2 -2
  10. package/dist/app/{chunk-4BX2VUAB-B3Z42k1A.js → chunk-4BX2VUAB-Dx0YoTOp.js} +1 -1
  11. package/dist/app/{chunk-55IACEB6-CJ0jXTRd.js → chunk-55IACEB6-BMKwRFGH.js} +1 -1
  12. package/dist/app/{chunk-FMBD7UC4-DLO-MqfH.js → chunk-FMBD7UC4-P9b1fgHH.js} +1 -1
  13. package/dist/app/{chunk-JSJVCQXG-Bo_y_qwW.js → chunk-JSJVCQXG-C9-xDx_f.js} +1 -1
  14. package/dist/app/{chunk-KX2RTZJC-BVwQX8D_.js → chunk-KX2RTZJC-y06NOTAw.js} +1 -1
  15. package/dist/app/{chunk-NQ4KR5QH-CIPxVbrL.js → chunk-NQ4KR5QH-u-MeLygg.js} +1 -1
  16. package/dist/app/{chunk-QZHKN3VN-N6NVbhP7.js → chunk-QZHKN3VN-8B7bIcf4.js} +1 -1
  17. package/dist/app/{chunk-WL4C6EOR-DV5P-H0e.js → chunk-WL4C6EOR-cOPqvc_c.js} +1 -1
  18. package/dist/app/classDiagram-VBA2DB6C-C_-qrCYz.js +1 -0
  19. package/dist/app/classDiagram-v2-RAHNMMFH-C_-qrCYz.js +1 -0
  20. package/dist/app/clone-BtAo9xZX.js +1 -0
  21. package/dist/app/{compound-calendar-CienSxFY.js → compound-calendar-Ci50EeZ5.js} +1 -1
  22. package/dist/app/{content-C5unCzy-.js → content-B9KneKdC.js} +1 -1
  23. package/dist/app/{cose-bilkent-S5V4N54A-DHOrc67k.js → cose-bilkent-S5V4N54A-Dc9uKygA.js} +1 -1
  24. package/dist/app/{dagre-KLK3FWXG-Bfg29i9P.js → dagre-KLK3FWXG-CuYQqi5J.js} +1 -1
  25. package/dist/app/{diagram-E7M64L7V-ZptbrJCa.js → diagram-E7M64L7V-7lLEvUXT.js} +1 -1
  26. package/dist/app/{diagram-IFDJBPK2-WLONHH3W.js → diagram-IFDJBPK2-DfivzPeV.js} +1 -1
  27. package/dist/app/{diagram-P4PSJMXO-BoeOiMK0.js → diagram-P4PSJMXO-9eL_NaeT.js} +1 -1
  28. package/dist/app/{erDiagram-INFDFZHY-BDkwxkTc.js → erDiagram-INFDFZHY-DgnBfTmZ.js} +1 -1
  29. package/dist/app/{flowDiagram-PKNHOUZH-BK4NF-J1.js → flowDiagram-PKNHOUZH-BRLGgwUn.js} +1 -1
  30. package/dist/app/{ganttDiagram-A5KZAMGK-Bqyrd7tK.js → ganttDiagram-A5KZAMGK-iYM5gdvu.js} +1 -1
  31. package/dist/app/{gitGraphDiagram-K3NZZRJ6-Bwu4r5l6.js → gitGraphDiagram-K3NZZRJ6-BH7iD4e-.js} +1 -1
  32. package/dist/app/{graph-CP9RJrNf.js → graph-z0MF59mG.js} +1 -1
  33. package/dist/app/{icons-barrel-24twA0l4.js → icons-barrel-C1Fhceou.js} +1 -1
  34. package/dist/app/{infoDiagram-LFFYTUFH-C6PLpmeb.js → infoDiagram-LFFYTUFH-wthc3uSb.js} +1 -1
  35. package/dist/app/{ishikawaDiagram-PHBUUO56-C0hxTRPm.js → ishikawaDiagram-PHBUUO56-D8LCuUtc.js} +1 -1
  36. package/dist/app/{journeyDiagram-4ABVD52K-niBQJW9B.js → journeyDiagram-4ABVD52K-DPJtXOUh.js} +1 -1
  37. package/dist/app/{kanban-definition-K7BYSVSG-1OdNruGO.js → kanban-definition-K7BYSVSG-DIpHQQGq.js} +1 -1
  38. package/dist/app/{layout-CYJpeepd.js → layout-Cn0Vvyqu.js} +1 -1
  39. package/dist/app/{mermaid-j5mXnKJf.js → mermaid-CC_vTxSJ.js} +2 -2
  40. package/dist/app/{mermaid.core-ClCS18UG.js → mermaid.core-D6aFEa0I.js} +4 -4
  41. package/dist/app/{mindmap-definition-YRQLILUH-D_-V-IdP.js → mindmap-definition-YRQLILUH-BheWB4Ui.js} +1 -1
  42. package/dist/app/{pieDiagram-SKSYHLDU-BtQtaWCX.js → pieDiagram-SKSYHLDU-DOrruAwd.js} +1 -1
  43. package/dist/app/{quadrantDiagram-337W2JSQ-BDDLDhsG.js → quadrantDiagram-337W2JSQ-B8BTERHr.js} +1 -1
  44. package/dist/app/renderer.css +1 -1
  45. package/dist/app/renderer.js +119 -93
  46. package/dist/app/{requirementDiagram-Z7DCOOCP-Dds2-pGw.js → requirementDiagram-Z7DCOOCP-DnOpKcso.js} +1 -1
  47. package/dist/app/{sankeyDiagram-WA2Y5GQK-uhRMcMcg.js → sankeyDiagram-WA2Y5GQK-CoXOdwrO.js} +1 -1
  48. package/dist/app/{sequenceDiagram-2WXFIKYE-BbkjTnVd.js → sequenceDiagram-2WXFIKYE-CWNQviI4.js} +1 -1
  49. package/dist/app/{stateDiagram-RAJIS63D-C-m6XiJC.js → stateDiagram-RAJIS63D-C--FinAX.js} +1 -1
  50. package/dist/app/{stateDiagram-v2-FVOUBMTO-R4nRgMSq.js → stateDiagram-v2-FVOUBMTO-B8eU3khJ.js} +1 -1
  51. package/dist/app/{timeline-definition-YZTLITO2-DnVbviH7.js → timeline-definition-YZTLITO2-CTMhdLW0.js} +1 -1
  52. package/dist/app/{treemap-KZPCXAKY-dWDqf5vN.js → treemap-KZPCXAKY-H4wvUyKw.js} +1 -1
  53. package/dist/app/{vennDiagram-LZ73GAT5-Deq_BFSx.js → vennDiagram-LZ73GAT5-B_Dobi9s.js} +1 -1
  54. package/dist/app/{xychartDiagram-JWTSCODW-C5TnO261.js → xychartDiagram-JWTSCODW-C5MtDZ7P.js} +1 -1
  55. package/package.json +5 -1
  56. package/dist/app/channel-4HLppxQc.js +0 -1
  57. package/dist/app/classDiagram-VBA2DB6C-BHC3MA1_.js +0 -1
  58. package/dist/app/classDiagram-v2-RAHNMMFH-BHC3MA1_.js +0 -1
  59. package/dist/app/clone-DI72dXHQ.js +0 -1
@@ -1,4 +1,4 @@
1
- import{g as he}from"./chunk-FMBD7UC4-DLO-MqfH.js";import{_ as d,F as lt,d as C,e as ge,l as v,y as de,A as ue,a3 as pe,c as M,O as fe,a4 as Y,a5 as vt,a6 as at,a7 as xe,u as st,k as ye,a8 as be,i as Bt,a9 as Ct,aa as we}from"./mermaid.core-ClCS18UG.js";import{c as me}from"./clone-DI72dXHQ.js";import{G as Le}from"./graph-CP9RJrNf.js";import{c as Se}from"./channel-4HLppxQc.js";import{l as ve,c as Ee}from"./string-Bl2zznvy.js";import"./renderer.js";import"./purify.es-DIZLy5JB.js";import"./_baseUniq-DNC1lkUQ.js";var bt=(function(){var e=d(function(N,y,u,p){for(u=u||{},p=N.length;p--;u[N[p]]=y);return u},"o"),t=[1,15],a=[1,7],i=[1,13],l=[1,14],s=[1,19],r=[1,16],n=[1,17],c=[1,18],x=[8,30],h=[8,10,21,28,29,30,31,39,43,46],f=[1,23],w=[1,24],b=[8,10,15,16,21,28,29,30,31,39,43,46],m=[8,10,15,16,21,27,28,29,30,31,39,43,46],k=[1,49],L={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:d(function(y,u,p,S,E,o,_){var g=o.length-1;switch(E){case 4:S.getLogger().debug("Rule: separator (NL) ");break;case 5:S.getLogger().debug("Rule: separator (Space) ");break;case 6:S.getLogger().debug("Rule: separator (EOF) ");break;case 7:S.getLogger().debug("Rule: hierarchy: ",o[g-1]),S.setHierarchy(o[g-1]);break;case 8:S.getLogger().debug("Stop NL ");break;case 9:S.getLogger().debug("Stop EOF ");break;case 10:S.getLogger().debug("Stop NL2 ");break;case 11:S.getLogger().debug("Stop EOF2 ");break;case 12:S.getLogger().debug("Rule: statement: ",o[g]),typeof o[g].length=="number"?this.$=o[g]:this.$=[o[g]];break;case 13:S.getLogger().debug("Rule: statement #2: ",o[g-1]),this.$=[o[g-1]].concat(o[g]);break;case 14:S.getLogger().debug("Rule: link: ",o[g],y),this.$={edgeTypeStr:o[g],label:""};break;case 15:S.getLogger().debug("Rule: LABEL link: ",o[g-3],o[g-1],o[g]),this.$={edgeTypeStr:o[g],label:o[g-1]};break;case 18:const D=parseInt(o[g]),T=S.generateId();this.$={id:T,type:"space",label:"",width:D,children:[]};break;case 23:S.getLogger().debug("Rule: (nodeStatement link node) ",o[g-2],o[g-1],o[g]," typestr: ",o[g-1].edgeTypeStr);const K=S.edgeStrToEdgeData(o[g-1].edgeTypeStr);this.$=[{id:o[g-2].id,label:o[g-2].label,type:o[g-2].type,directions:o[g-2].directions},{id:o[g-2].id+"-"+o[g].id,start:o[g-2].id,end:o[g].id,label:o[g-1].label,type:"edge",directions:o[g].directions,arrowTypeEnd:K,arrowTypeStart:"arrow_open"},{id:o[g].id,label:o[g].label,type:S.typeStr2Type(o[g].typeStr),directions:o[g].directions}];break;case 24:S.getLogger().debug("Rule: nodeStatement (abc88 node size) ",o[g-1],o[g]),this.$={id:o[g-1].id,label:o[g-1].label,type:S.typeStr2Type(o[g-1].typeStr),directions:o[g-1].directions,widthInColumns:parseInt(o[g],10)};break;case 25:S.getLogger().debug("Rule: nodeStatement (node) ",o[g]),this.$={id:o[g].id,label:o[g].label,type:S.typeStr2Type(o[g].typeStr),directions:o[g].directions,widthInColumns:1};break;case 26:S.getLogger().debug("APA123",this?this:"na"),S.getLogger().debug("COLUMNS: ",o[g]),this.$={type:"column-setting",columns:o[g]==="auto"?-1:parseInt(o[g])};break;case 27:S.getLogger().debug("Rule: id-block statement : ",o[g-2],o[g-1]),S.generateId(),this.$={...o[g-2],type:"composite",children:o[g-1]};break;case 28:S.getLogger().debug("Rule: blockStatement : ",o[g-2],o[g-1],o[g]);const P=S.generateId();this.$={id:P,type:"composite",label:"",children:o[g-1]};break;case 29:S.getLogger().debug("Rule: node (NODE_ID separator): ",o[g]),this.$={id:o[g]};break;case 30:S.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",o[g-1],o[g]),this.$={id:o[g-1],label:o[g].label,typeStr:o[g].typeStr,directions:o[g].directions};break;case 31:S.getLogger().debug("Rule: dirList: ",o[g]),this.$=[o[g]];break;case 32:S.getLogger().debug("Rule: dirList: ",o[g-1],o[g]),this.$=[o[g-1]].concat(o[g]);break;case 33:S.getLogger().debug("Rule: nodeShapeNLabel: ",o[g-2],o[g-1],o[g]),this.$={typeStr:o[g-2]+o[g],label:o[g-1]};break;case 34:S.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",o[g-3],o[g-2]," #3:",o[g-1],o[g]),this.$={typeStr:o[g-3]+o[g],label:o[g-2],directions:o[g-1]};break;case 35:case 36:this.$={type:"classDef",id:o[g-1].trim(),css:o[g].trim()};break;case 37:this.$={type:"applyClass",id:o[g-1].trim(),styleClass:o[g].trim()};break;case 38:this.$={type:"applyStyles",id:o[g-1].trim(),stylesStr:o[g].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:l,31:s,39:r,43:n,46:c},{8:[1,20]},e(x,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:a,28:i,29:l,31:s,39:r,43:n,46:c}),e(h,[2,16],{14:22,15:f,16:w}),e(h,[2,17]),e(h,[2,18]),e(h,[2,19]),e(h,[2,20]),e(h,[2,21]),e(h,[2,22]),e(b,[2,25],{27:[1,25]}),e(h,[2,26]),{19:26,26:12,31:s},{10:t,11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:l,31:s,39:r,43:n,46:c},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(m,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(x,[2,13]),{26:35,31:s},{31:[2,14]},{17:[1,36]},e(b,[2,24]),{10:t,11:37,13:4,14:22,15:f,16:w,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:l,31:s,39:r,43:n,46:c},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(m,[2,30]),{18:[1,43]},{18:[1,44]},e(b,[2,23]),{18:[1,45]},{30:[1,46]},e(h,[2,28]),e(h,[2,35]),e(h,[2,36]),e(h,[2,37]),e(h,[2,38]),{36:[1,47]},{33:48,34:k},{15:[1,50]},e(h,[2,27]),e(m,[2,33]),{38:[1,51]},{33:52,34:k,38:[2,31]},{31:[2,15]},e(m,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:d(function(y,u){if(u.recoverable)this.trace(y);else{var p=new Error(y);throw p.hash=u,p}},"parseError"),parse:d(function(y){var u=this,p=[0],S=[],E=[null],o=[],_=this.table,g="",D=0,T=0,K=2,P=1,Q=o.slice.call(arguments,1),R=Object.create(this.lexer),U={yy:{}};for(var et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,et)&&(U.yy[et]=this.yy[et]);R.setInput(y,U.yy),U.yy.lexer=R,U.yy.parser=this,typeof R.yylloc>"u"&&(R.yylloc={});var rt=R.yylloc;o.push(rt);var ce=R.options&&R.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function oe(X){p.length=p.length-2*X,E.length=E.length-X,o.length=o.length-X}d(oe,"popStack");function Nt(){var X;return X=S.pop()||R.lex()||P,typeof X!="number"&&(X instanceof Array&&(S=X,X=S.pop()),X=u.symbols_[X]||X),X}d(Nt,"lex");for(var H,$,V,ft,tt={},ct,J,It,ot;;){if($=p[p.length-1],this.defaultActions[$]?V=this.defaultActions[$]:((H===null||typeof H>"u")&&(H=Nt()),V=_[$]&&_[$][H]),typeof V>"u"||!V.length||!V[0]){var xt="";ot=[];for(ct in _[$])this.terminals_[ct]&&ct>K&&ot.push("'"+this.terminals_[ct]+"'");R.showPosition?xt="Parse error on line "+(D+1)+`:
1
+ import{g as he}from"./chunk-FMBD7UC4-P9b1fgHH.js";import{_ as d,F as lt,d as C,e as ge,l as v,y as de,A as ue,a3 as pe,c as M,O as fe,a4 as Y,a5 as vt,a6 as at,a7 as xe,u as st,k as ye,a8 as be,i as Bt,a9 as Ct,aa as we}from"./mermaid.core-D6aFEa0I.js";import{c as me}from"./clone-BtAo9xZX.js";import{G as Le}from"./graph-z0MF59mG.js";import{c as Se}from"./channel-DIEGSkkN.js";import{l as ve,c as Ee}from"./string-Bl2zznvy.js";import"./renderer.js";import"./purify.es-DIZLy5JB.js";import"./_baseUniq-DLSCZPvE.js";var bt=(function(){var e=d(function(N,y,u,p){for(u=u||{},p=N.length;p--;u[N[p]]=y);return u},"o"),t=[1,15],a=[1,7],i=[1,13],l=[1,14],s=[1,19],r=[1,16],n=[1,17],c=[1,18],x=[8,30],h=[8,10,21,28,29,30,31,39,43,46],f=[1,23],w=[1,24],b=[8,10,15,16,21,28,29,30,31,39,43,46],m=[8,10,15,16,21,27,28,29,30,31,39,43,46],k=[1,49],L={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:d(function(y,u,p,S,E,o,_){var g=o.length-1;switch(E){case 4:S.getLogger().debug("Rule: separator (NL) ");break;case 5:S.getLogger().debug("Rule: separator (Space) ");break;case 6:S.getLogger().debug("Rule: separator (EOF) ");break;case 7:S.getLogger().debug("Rule: hierarchy: ",o[g-1]),S.setHierarchy(o[g-1]);break;case 8:S.getLogger().debug("Stop NL ");break;case 9:S.getLogger().debug("Stop EOF ");break;case 10:S.getLogger().debug("Stop NL2 ");break;case 11:S.getLogger().debug("Stop EOF2 ");break;case 12:S.getLogger().debug("Rule: statement: ",o[g]),typeof o[g].length=="number"?this.$=o[g]:this.$=[o[g]];break;case 13:S.getLogger().debug("Rule: statement #2: ",o[g-1]),this.$=[o[g-1]].concat(o[g]);break;case 14:S.getLogger().debug("Rule: link: ",o[g],y),this.$={edgeTypeStr:o[g],label:""};break;case 15:S.getLogger().debug("Rule: LABEL link: ",o[g-3],o[g-1],o[g]),this.$={edgeTypeStr:o[g],label:o[g-1]};break;case 18:const D=parseInt(o[g]),T=S.generateId();this.$={id:T,type:"space",label:"",width:D,children:[]};break;case 23:S.getLogger().debug("Rule: (nodeStatement link node) ",o[g-2],o[g-1],o[g]," typestr: ",o[g-1].edgeTypeStr);const K=S.edgeStrToEdgeData(o[g-1].edgeTypeStr);this.$=[{id:o[g-2].id,label:o[g-2].label,type:o[g-2].type,directions:o[g-2].directions},{id:o[g-2].id+"-"+o[g].id,start:o[g-2].id,end:o[g].id,label:o[g-1].label,type:"edge",directions:o[g].directions,arrowTypeEnd:K,arrowTypeStart:"arrow_open"},{id:o[g].id,label:o[g].label,type:S.typeStr2Type(o[g].typeStr),directions:o[g].directions}];break;case 24:S.getLogger().debug("Rule: nodeStatement (abc88 node size) ",o[g-1],o[g]),this.$={id:o[g-1].id,label:o[g-1].label,type:S.typeStr2Type(o[g-1].typeStr),directions:o[g-1].directions,widthInColumns:parseInt(o[g],10)};break;case 25:S.getLogger().debug("Rule: nodeStatement (node) ",o[g]),this.$={id:o[g].id,label:o[g].label,type:S.typeStr2Type(o[g].typeStr),directions:o[g].directions,widthInColumns:1};break;case 26:S.getLogger().debug("APA123",this?this:"na"),S.getLogger().debug("COLUMNS: ",o[g]),this.$={type:"column-setting",columns:o[g]==="auto"?-1:parseInt(o[g])};break;case 27:S.getLogger().debug("Rule: id-block statement : ",o[g-2],o[g-1]),S.generateId(),this.$={...o[g-2],type:"composite",children:o[g-1]};break;case 28:S.getLogger().debug("Rule: blockStatement : ",o[g-2],o[g-1],o[g]);const P=S.generateId();this.$={id:P,type:"composite",label:"",children:o[g-1]};break;case 29:S.getLogger().debug("Rule: node (NODE_ID separator): ",o[g]),this.$={id:o[g]};break;case 30:S.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",o[g-1],o[g]),this.$={id:o[g-1],label:o[g].label,typeStr:o[g].typeStr,directions:o[g].directions};break;case 31:S.getLogger().debug("Rule: dirList: ",o[g]),this.$=[o[g]];break;case 32:S.getLogger().debug("Rule: dirList: ",o[g-1],o[g]),this.$=[o[g-1]].concat(o[g]);break;case 33:S.getLogger().debug("Rule: nodeShapeNLabel: ",o[g-2],o[g-1],o[g]),this.$={typeStr:o[g-2]+o[g],label:o[g-1]};break;case 34:S.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",o[g-3],o[g-2]," #3:",o[g-1],o[g]),this.$={typeStr:o[g-3]+o[g],label:o[g-2],directions:o[g-1]};break;case 35:case 36:this.$={type:"classDef",id:o[g-1].trim(),css:o[g].trim()};break;case 37:this.$={type:"applyClass",id:o[g-1].trim(),styleClass:o[g].trim()};break;case 38:this.$={type:"applyStyles",id:o[g-1].trim(),stylesStr:o[g].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:l,31:s,39:r,43:n,46:c},{8:[1,20]},e(x,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:a,28:i,29:l,31:s,39:r,43:n,46:c}),e(h,[2,16],{14:22,15:f,16:w}),e(h,[2,17]),e(h,[2,18]),e(h,[2,19]),e(h,[2,20]),e(h,[2,21]),e(h,[2,22]),e(b,[2,25],{27:[1,25]}),e(h,[2,26]),{19:26,26:12,31:s},{10:t,11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:l,31:s,39:r,43:n,46:c},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(m,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(x,[2,13]),{26:35,31:s},{31:[2,14]},{17:[1,36]},e(b,[2,24]),{10:t,11:37,13:4,14:22,15:f,16:w,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:l,31:s,39:r,43:n,46:c},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(m,[2,30]),{18:[1,43]},{18:[1,44]},e(b,[2,23]),{18:[1,45]},{30:[1,46]},e(h,[2,28]),e(h,[2,35]),e(h,[2,36]),e(h,[2,37]),e(h,[2,38]),{36:[1,47]},{33:48,34:k},{15:[1,50]},e(h,[2,27]),e(m,[2,33]),{38:[1,51]},{33:52,34:k,38:[2,31]},{31:[2,15]},e(m,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:d(function(y,u){if(u.recoverable)this.trace(y);else{var p=new Error(y);throw p.hash=u,p}},"parseError"),parse:d(function(y){var u=this,p=[0],S=[],E=[null],o=[],_=this.table,g="",D=0,T=0,K=2,P=1,Q=o.slice.call(arguments,1),R=Object.create(this.lexer),U={yy:{}};for(var et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,et)&&(U.yy[et]=this.yy[et]);R.setInput(y,U.yy),U.yy.lexer=R,U.yy.parser=this,typeof R.yylloc>"u"&&(R.yylloc={});var rt=R.yylloc;o.push(rt);var ce=R.options&&R.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function oe(X){p.length=p.length-2*X,E.length=E.length-X,o.length=o.length-X}d(oe,"popStack");function Nt(){var X;return X=S.pop()||R.lex()||P,typeof X!="number"&&(X instanceof Array&&(S=X,X=S.pop()),X=u.symbols_[X]||X),X}d(Nt,"lex");for(var H,$,V,ft,tt={},ct,J,It,ot;;){if($=p[p.length-1],this.defaultActions[$]?V=this.defaultActions[$]:((H===null||typeof H>"u")&&(H=Nt()),V=_[$]&&_[$][H]),typeof V>"u"||!V.length||!V[0]){var xt="";ot=[];for(ct in _[$])this.terminals_[ct]&&ct>K&&ot.push("'"+this.terminals_[ct]+"'");R.showPosition?xt="Parse error on line "+(D+1)+`:
2
2
  `+R.showPosition()+`
3
3
  Expecting `+ot.join(", ")+", got '"+(this.terminals_[H]||H)+"'":xt="Parse error on line "+(D+1)+": Unexpected "+(H==P?"end of input":"'"+(this.terminals_[H]||H)+"'"),this.parseError(xt,{text:R.match,token:this.terminals_[H]||H,line:R.yylineno,loc:rt,expected:ot})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+H);switch(V[0]){case 1:p.push(H),E.push(R.yytext),o.push(R.yylloc),p.push(V[1]),H=null,T=R.yyleng,g=R.yytext,D=R.yylineno,rt=R.yylloc;break;case 2:if(J=this.productions_[V[1]][1],tt.$=E[E.length-J],tt._$={first_line:o[o.length-(J||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(J||1)].first_column,last_column:o[o.length-1].last_column},ce&&(tt._$.range=[o[o.length-(J||1)].range[0],o[o.length-1].range[1]]),ft=this.performAction.apply(tt,[g,T,D,U.yy,V[1],E,o].concat(Q)),typeof ft<"u")return ft;J&&(p=p.slice(0,-1*J*2),E=E.slice(0,-1*J),o=o.slice(0,-1*J)),p.push(this.productions_[V[1]][0]),E.push(tt.$),o.push(tt._$),It=_[p[p.length-2]][p[p.length-1]],p.push(It);break;case 3:return!0}}return!0},"parse")},B=(function(){var N={EOF:1,parseError:d(function(u,p){if(this.yy.parser)this.yy.parser.parseError(u,p);else throw new Error(u)},"parseError"),setInput:d(function(y,u){return this.yy=u||this.yy||{},this._input=y,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var y=this._input[0];this.yytext+=y,this.yyleng++,this.offset++,this.match+=y,this.matched+=y;var u=y.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),y},"input"),unput:d(function(y){var u=y.length,p=y.split(/(?:\r\n?|\n)/g);this._input=y+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var S=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1&&(this.yylineno-=p.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===S.length?this.yylloc.first_column:0)+S[S.length-p.length].length-p[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(y){this.unput(this.match.slice(y))},"less"),pastInput:d(function(){var y=this.matched.substr(0,this.matched.length-this.match.length);return(y.length>20?"...":"")+y.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var y=this.match;return y.length<20&&(y+=this._input.substr(0,20-y.length)),(y.substr(0,20)+(y.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var y=this.pastInput(),u=new Array(y.length+1).join("-");return y+this.upcomingInput()+`
@@ -179,6 +179,10 @@ class PrefabApp(BaseModel):
179
179
  default=None,
180
180
  description="Custom JS action handlers: name → function expression",
181
181
  )
182
+ on_mount: Any | None = Field(
183
+ default=None,
184
+ description="Action(s) to execute when the app mounts",
185
+ )
182
186
 
183
187
  _context_root: Any = PrivateAttr(default=None)
184
188
 
@@ -259,7 +263,7 @@ class PrefabApp(BaseModel):
259
263
 
260
264
  if isinstance(self.view, dict):
261
265
  # Pre-serialized dict — wrap in a serialized Div
262
- wrapper = Div(css_class=cls)
266
+ wrapper = Div(css_class=cls, on_mount=self.on_mount)
263
267
  wrapper_json = wrapper.to_json()
264
268
  wrapper_json["children"] = [self.view]
265
269
  return wrapper_json
@@ -271,10 +275,14 @@ class PrefabApp(BaseModel):
271
275
  ):
272
276
  # Bare Div from context manager — stamp the class directly
273
277
  self.view.css_class = cls
278
+ if self.on_mount is not None:
279
+ self.view.on_mount = self.on_mount
274
280
  return self.view.to_json()
275
281
 
276
282
  # Wrap the user's view in a new Div
277
- return Div(children=[self.view], css_class=cls).to_json()
283
+ return Div(
284
+ children=[self.view], css_class=cls, on_mount=self.on_mount
285
+ ).to_json()
278
286
 
279
287
  def to_json(
280
288
  self,
@@ -1150,6 +1158,7 @@ from prefab_ui.components.combobox import (
1150
1158
  ComboboxOption,
1151
1159
  ComboboxSeparator,
1152
1160
  )
1161
+ from prefab_ui.components.carousel import Carousel
1153
1162
  from prefab_ui.components.code import Code
1154
1163
  from prefab_ui.components.column import Column
1155
1164
  from prefab_ui.components.container import Container
@@ -1259,6 +1268,7 @@ __all__ = [
1259
1268
  "CardFooter",
1260
1269
  "CardHeader",
1261
1270
  "CardTitle",
1271
+ "Carousel",
1262
1272
  "Checkbox",
1263
1273
  "ChoiceCard",
1264
1274
  "Code",
@@ -2005,6 +2015,12 @@ class Component(BaseModel):
2005
2015
  description="CSS/Tailwind classes for styling. Accepts a Responsive() for breakpoint-aware classes.",
2006
2016
  )
2007
2017
 
2018
+ on_mount: Any | None = Field(
2019
+ default=None,
2020
+ alias="onMount",
2021
+ description="Action(s) to execute when this component mounts.",
2022
+ )
2023
+
2008
2024
  def __init__(self, /, **kwargs: Any) -> None:
2009
2025
  parent = kwargs.pop("parent", None)
2010
2026
  if parent is not None:
@@ -2636,6 +2652,154 @@ class CardFooter(ContainerComponent):
2636
2652
  """
2637
2653
 
2638
2654
  type: Literal["CardFooter"] = "CardFooter"
2655
+ `,"prefab_ui/components/carousel.py":`"""Carousel — scrollable container with auto-advance and navigation."""
2656
+
2657
+ from __future__ import annotations
2658
+
2659
+ from typing import Any, Literal
2660
+
2661
+ from pydantic import Field
2662
+
2663
+ from prefab_ui.components.base import ContainerComponent
2664
+
2665
+
2666
+ class Carousel(ContainerComponent):
2667
+ """Scrollable container that cycles through children.
2668
+
2669
+ Supports three modes depending on configuration:
2670
+
2671
+ - **Carousel** (default): one item visible, user navigates with
2672
+ arrows/dots/swipe.
2673
+ - **Reel**: auto-advances on a timer. Set \`\`auto_advance\`\` and
2674
+ \`\`show_controls=False\`\`.
2675
+ - **Marquee**: continuous smooth scroll. Set \`\`continuous=True\`\`.
2676
+
2677
+ Args:
2678
+ visible: How many slides are visible at once. Use a float for
2679
+ peek: \`\`1.3\`\` shows 1 full slide + 15% of prev/next peeking
2680
+ on each side. \`\`None\`\` = natural slide sizing (default for
2681
+ marquee when \`\`continuous=True\`\` and \`\`visible\`\` is omitted).
2682
+ gap: Pixels between slides.
2683
+ height: Fixed height in pixels. Auto-detected for vertical
2684
+ carousels from the first slide's content.
2685
+ direction: Scroll direction.
2686
+ loop: Whether to loop back to the start.
2687
+ auto_advance: Milliseconds between auto-advances. 0 = off.
2688
+ continuous: Smooth continuous scroll (marquee mode).
2689
+ speed: Scroll speed for continuous mode (1-10).
2690
+ effect: Visual transition effect.
2691
+ dim_inactive: Reduce opacity of non-active slides.
2692
+ show_controls: Show navigation arrows.
2693
+ controls_position: Position controls over slides or outside the viewport.
2694
+ show_dots: Show pagination dots.
2695
+ pause_on_hover: Pause auto-advance/continuous scroll on hover.
2696
+ align: Slide alignment within the viewport.
2697
+ slides_to_scroll: Number of slides to advance per step.
2698
+ drag: Allow drag/swipe to navigate.
2699
+
2700
+ **Example:**
2701
+
2702
+ \`\`\`python
2703
+ with Carousel(auto_advance=3000, loop=True):
2704
+ Card(children=[Heading("Slide 1")])
2705
+ Card(children=[Heading("Slide 2")])
2706
+ Card(children=[Heading("Slide 3")])
2707
+ \`\`\`
2708
+ """
2709
+
2710
+ type: Literal["Carousel"] = "Carousel"
2711
+ visible: float | None = Field(
2712
+ default=1,
2713
+ description="Slides visible at once. Float for peek: 1.3 = 1 slide + 15% peek each side. None = natural sizing (default for marquee when visible is omitted).",
2714
+ )
2715
+ gap: int = Field(
2716
+ default=16,
2717
+ description="Pixels between slides",
2718
+ )
2719
+ height: int | None = Field(
2720
+ default=None,
2721
+ description="Fixed height in pixels. Auto-detected for vertical carousels.",
2722
+ )
2723
+ direction: Literal["left", "right", "up", "down"] = Field(
2724
+ default="left",
2725
+ description="Scroll direction",
2726
+ )
2727
+ loop: bool = Field(
2728
+ default=True,
2729
+ description="Loop back to start after reaching the end",
2730
+ )
2731
+ auto_advance: int = Field(
2732
+ default=0,
2733
+ alias="autoAdvance",
2734
+ description="Milliseconds between auto-advances. 0 = manual only.",
2735
+ )
2736
+ continuous: bool = Field(
2737
+ default=False,
2738
+ description="Smooth continuous scroll (marquee mode)",
2739
+ )
2740
+ speed: int = Field(
2741
+ default=2,
2742
+ description="Scroll speed for continuous mode (1-10)",
2743
+ )
2744
+ effect: Literal["slide", "fade"] = Field(
2745
+ default="slide",
2746
+ description="Transition effect: slide or fade",
2747
+ )
2748
+ dim_inactive: bool = Field(
2749
+ default=False,
2750
+ alias="dimInactive",
2751
+ description="Reduce opacity of non-active slides",
2752
+ )
2753
+ show_controls: bool = Field(
2754
+ default=True,
2755
+ alias="showControls",
2756
+ description="Show previous/next navigation arrows",
2757
+ )
2758
+ controls_position: Literal["overlay", "outside"] = Field(
2759
+ default="outside",
2760
+ alias="controlsPosition",
2761
+ description="Position controls over slides (overlay) or outside the viewport",
2762
+ )
2763
+ show_dots: bool = Field(
2764
+ default=False,
2765
+ alias="showDots",
2766
+ description="Show pagination dots",
2767
+ )
2768
+ pause_on_hover: bool = Field(
2769
+ default=True,
2770
+ alias="pauseOnHover",
2771
+ description="Pause auto-advance or continuous scroll on hover",
2772
+ )
2773
+ align: Literal["start", "center", "end"] = Field(
2774
+ default="start",
2775
+ description="Slide alignment within the viewport",
2776
+ )
2777
+ slides_to_scroll: int = Field(
2778
+ default=1,
2779
+ alias="slidesToScroll",
2780
+ description="Number of slides to advance per step",
2781
+ )
2782
+ drag: bool = Field(
2783
+ default=True,
2784
+ description="Allow drag/swipe to navigate",
2785
+ )
2786
+
2787
+ def __init__(self, **kwargs: Any) -> None:
2788
+ # Marquee defaults to natural sizing unless visible is explicitly set.
2789
+ if kwargs.get("continuous") and "visible" not in kwargs:
2790
+ kwargs["visible"] = None
2791
+ # Fade mode is single-slide only.
2792
+ if kwargs.get("effect") == "fade":
2793
+ kwargs["visible"] = 1
2794
+ super().__init__(**kwargs)
2795
+
2796
+ def to_json(self) -> dict[str, Any]:
2797
+ data = super().to_json()
2798
+ # Keep explicit visible=None on the wire so the renderer can
2799
+ # differentiate it from an omitted value.
2800
+ if "visible" in self.model_fields_set and self.visible is None:
2801
+ data["visible"] = None
2802
+ return data
2639
2803
  `,"prefab_ui/components/charts/__init__.py":`"""Chart components — BarChart, LineChart, AreaChart, PieChart, RadarChart, RadialChart, ScatterChart, Sparkline.
2640
2804
 
2641
2805
  Built on Recharts + shadcn ChartContainer in the renderer.
@@ -2749,6 +2913,9 @@ class BarChart(Component):
2749
2913
  show_tooltip: bool = Field(
2750
2914
  default=True, alias="showTooltip", description="Show tooltip on hover"
2751
2915
  )
2916
+ animate: bool = Field(
2917
+ default=True, description="Animate transitions when data changes"
2918
+ )
2752
2919
  show_grid: bool = Field(
2753
2920
  default=True, alias="showGrid", description="Show cartesian grid"
2754
2921
  )
@@ -2815,6 +2982,9 @@ class LineChart(Component):
2815
2982
  show_tooltip: bool = Field(
2816
2983
  default=True, alias="showTooltip", description="Show tooltip on hover"
2817
2984
  )
2985
+ animate: bool = Field(
2986
+ default=True, description="Animate transitions when data changes"
2987
+ )
2818
2988
  show_grid: bool = Field(
2819
2989
  default=True, alias="showGrid", description="Show cartesian grid"
2820
2990
  )
@@ -2884,6 +3054,9 @@ class AreaChart(Component):
2884
3054
  show_tooltip: bool = Field(
2885
3055
  default=True, alias="showTooltip", description="Show tooltip on hover"
2886
3056
  )
3057
+ animate: bool = Field(
3058
+ default=True, description="Animate transitions when data changes"
3059
+ )
2887
3060
  show_grid: bool = Field(
2888
3061
  default=True, alias="showGrid", description="Show cartesian grid"
2889
3062
  )
@@ -2948,6 +3121,9 @@ class PieChart(Component):
2948
3121
  show_tooltip: bool = Field(
2949
3122
  default=True, alias="showTooltip", description="Show tooltip on hover"
2950
3123
  )
3124
+ animate: bool = Field(
3125
+ default=True, description="Animate transitions when data changes"
3126
+ )
2951
3127
 
2952
3128
 
2953
3129
  class ScatterChart(Component):
@@ -3002,6 +3178,9 @@ class ScatterChart(Component):
3002
3178
  show_tooltip: bool = Field(
3003
3179
  default=True, alias="showTooltip", description="Show tooltip on hover"
3004
3180
  )
3181
+ animate: bool = Field(
3182
+ default=True, description="Animate transitions when data changes"
3183
+ )
3005
3184
  show_grid: bool = Field(
3006
3185
  default=True, alias="showGrid", description="Show cartesian grid"
3007
3186
  )
@@ -3056,6 +3235,9 @@ class RadarChart(Component):
3056
3235
  show_tooltip: bool = Field(
3057
3236
  default=True, alias="showTooltip", description="Show tooltip on hover"
3058
3237
  )
3238
+ animate: bool = Field(
3239
+ default=True, description="Animate transitions when data changes"
3240
+ )
3059
3241
  show_grid: bool = Field(
3060
3242
  default=True, alias="showGrid", description="Show polar grid"
3061
3243
  )
@@ -3111,6 +3293,9 @@ class RadialChart(Component):
3111
3293
  show_tooltip: bool = Field(
3112
3294
  default=True, alias="showTooltip", description="Show tooltip on hover"
3113
3295
  )
3296
+ animate: bool = Field(
3297
+ default=True, description="Animate transitions when data changes"
3298
+ )
3114
3299
 
3115
3300
 
3116
3301
  SparklineVariant = (
@@ -5642,6 +5827,9 @@ class Histogram(Component):
5642
5827
  show_tooltip: bool = Field(
5643
5828
  default=True, alias="showTooltip", description="Show tooltip on hover"
5644
5829
  )
5830
+ animate: bool = Field(
5831
+ default=True, description="Animate transitions when data changes"
5832
+ )
5645
5833
  show_legend: bool = Field(
5646
5834
  default=True, alias="showLegend", description="Show legend"
5647
5835
  )
@@ -8873,7 +9061,9 @@ class SetInterval(Action):
8873
9061
  """
8874
9062
 
8875
9063
  action: Literal["setInterval"] = "setInterval"
8876
- duration: int = Field(description="Interval between ticks, in milliseconds.")
9064
+ duration: int | RxStr = Field(
9065
+ description="Interval between ticks, in milliseconds. Accepts Rx for reactive values.",
9066
+ )
8877
9067
  while_: RxStr | None = Field(
8878
9068
  default=None,
8879
9069
  alias="while",
@@ -9310,6 +9500,10 @@ def _format_scalar(value: object) -> str:
9310
9500
  """Format a non-Rx Python value as an expression token.
9311
9501
 
9312
9502
  Strings → single-quoted, numbers → bare, bools → true/false, None → null.
9503
+
9504
+ Strings containing \`\`{{ expr }}\`\` templates (e.g. from f-strings like
9505
+ \`\`f"{STATE.x}%"\`\`) are expanded into concatenation expressions so
9506
+ \`\`"{{ stats.cpu }}%"\`\` becomes \`\`stats.cpu + '%'\`\`.
9313
9507
  """
9314
9508
  if isinstance(value, bool):
9315
9509
  return "true" if value else "false"
@@ -9318,10 +9512,39 @@ def _format_scalar(value: object) -> str:
9318
9512
  if value is None:
9319
9513
  return "null"
9320
9514
  if isinstance(value, str):
9515
+ if "{{" in value:
9516
+ return _expand_template_string(value)
9321
9517
  return f"'{value}'"
9322
9518
  return str(value)
9323
9519
 
9324
9520
 
9521
+ def _expand_template_string(s: str) -> str:
9522
+ """Convert a string with \`\`{{ }}\`\` markers into a concatenation expression.
9523
+
9524
+ \`\`"{{ x }}%"\`\` → \`\`x + '%'\`\`
9525
+ \`\`"Hello {{ name }}, you have {{ count }} items"\`\`
9526
+ → \`\`'Hello ' + name + ', you have ' + count + ' items'\`\`
9527
+ """
9528
+ import re
9529
+
9530
+ parts: list[str] = []
9531
+ last_end = 0
9532
+ for m in re.finditer(r"\\{\\{\\s*(.*?)\\s*\\}\\}", s):
9533
+ # Text before this template
9534
+ before = s[last_end : m.start()]
9535
+ if before:
9536
+ parts.append(f"'{before}'")
9537
+ # The expression inside {{ }}
9538
+ parts.append(m.group(1))
9539
+ last_end = m.end()
9540
+ # Text after the last template
9541
+ after = s[last_end:]
9542
+ if after:
9543
+ parts.append(f"'{after}'")
9544
+
9545
+ return " + ".join(parts) if parts else "''"
9546
+
9547
+
9325
9548
  def _resolve_operand(value: object, min_prec: int, *, strict: bool = False) -> str:
9326
9549
  """Resolve a child operand (Rx or scalar) for use in an expression.
9327
9550
 
@@ -9606,7 +9829,7 @@ class Rx:
9606
9829
  # ── Ternary ──────────────────────────────────────────────────────
9607
9830
 
9608
9831
  def then(self, if_true: object, if_false: object) -> Rx:
9609
- """Ternary conditional: \`condition ? if_true : if_false\`."""
9832
+ """Ternary conditional: \`\`condition ? if_true : if_false\`\`."""
9610
9833
  return Rx(_Ternary(self, if_true, if_false), _PREC_TERNARY)
9611
9834
 
9612
9835
  # ── Pipes ────────────────────────────────────────────────────────
@@ -1,4 +1,4 @@
1
- import{g as Se,d as De}from"./chunk-JSJVCQXG-Bo_y_qwW.js";import{s as Pe,g as Be,a as Ie,b as Me,_ as g,c as Bt,d as jt,l as de,e as Le,f as Ne,h as Tt,i as ge,j as Ye,w as je,k as $t,m as fe}from"./mermaid.core-ClCS18UG.js";import"./renderer.js";import"./purify.es-DIZLy5JB.js";import"./string-Bl2zznvy.js";var Ft=(function(){var e=g(function(_t,x,m,v){for(m=m||{},v=_t.length;v--;m[_t[v]]=x);return m},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],a=[1,28],r=[1,63],n=[1,64],i=[1,65],u=[1,66],d=[1,67],f=[1,68],y=[1,69],E=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],it=[1,45],nt=[1,46],rt=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Qt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],St=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],k=[1,82],A=[1,83],C=[1,84],w=[1,85],T=[12,14,42],le=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],vt=[12,33],Ht=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qt={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:g(function(x,m,v,b,R,h,Dt){var p=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[p-3]);break;case 19:b.setTitle(h[p].substring(6)),this.$=h[p].substring(6);break;case 20:b.setAccDescription(h[p].substring(15)),this.$=h[p].substring(15);break;case 21:this.$=h[p].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[p].trim(),b.setAccDescription(this.$);break;case 28:h[p].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 29:h[p].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 30:b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 31:h[p].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[p]),this.$=h[p];break;case 32:b.addDeploymentNode("node",...h[p]),this.$=h[p];break;case 33:b.addDeploymentNode("nodeL",...h[p]),this.$=h[p];break;case 34:b.addDeploymentNode("nodeR",...h[p]),this.$=h[p];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[p]),this.$=h[p];break;case 40:b.addPersonOrSystem("external_person",...h[p]),this.$=h[p];break;case 41:b.addPersonOrSystem("system",...h[p]),this.$=h[p];break;case 42:b.addPersonOrSystem("system_db",...h[p]),this.$=h[p];break;case 43:b.addPersonOrSystem("system_queue",...h[p]),this.$=h[p];break;case 44:b.addPersonOrSystem("external_system",...h[p]),this.$=h[p];break;case 45:b.addPersonOrSystem("external_system_db",...h[p]),this.$=h[p];break;case 46:b.addPersonOrSystem("external_system_queue",...h[p]),this.$=h[p];break;case 47:b.addContainer("container",...h[p]),this.$=h[p];break;case 48:b.addContainer("container_db",...h[p]),this.$=h[p];break;case 49:b.addContainer("container_queue",...h[p]),this.$=h[p];break;case 50:b.addContainer("external_container",...h[p]),this.$=h[p];break;case 51:b.addContainer("external_container_db",...h[p]),this.$=h[p];break;case 52:b.addContainer("external_container_queue",...h[p]),this.$=h[p];break;case 53:b.addComponent("component",...h[p]),this.$=h[p];break;case 54:b.addComponent("component_db",...h[p]),this.$=h[p];break;case 55:b.addComponent("component_queue",...h[p]),this.$=h[p];break;case 56:b.addComponent("external_component",...h[p]),this.$=h[p];break;case 57:b.addComponent("external_component_db",...h[p]),this.$=h[p];break;case 58:b.addComponent("external_component_queue",...h[p]),this.$=h[p];break;case 60:b.addRel("rel",...h[p]),this.$=h[p];break;case 61:b.addRel("birel",...h[p]),this.$=h[p];break;case 62:b.addRel("rel_u",...h[p]),this.$=h[p];break;case 63:b.addRel("rel_d",...h[p]),this.$=h[p];break;case 64:b.addRel("rel_l",...h[p]),this.$=h[p];break;case 65:b.addRel("rel_r",...h[p]),this.$=h[p];break;case 66:b.addRel("rel_b",...h[p]),this.$=h[p];break;case 67:h[p].splice(0,1),b.addRel("rel",...h[p]),this.$=h[p];break;case 68:b.updateElStyle("update_el_style",...h[p]),this.$=h[p];break;case 69:b.updateRelStyle("update_rel_style",...h[p]),this.$=h[p];break;case 70:b.updateLayoutConfig("update_layout_config",...h[p]),this.$=h[p];break;case 71:this.$=[h[p]];break;case 72:h[p].unshift(h[p-1]),this.$=h[p];break;case 73:case 75:this.$=h[p].trim();break;case 74:let Et={};Et[h[p-1].trim()]=h[p].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:n,37:i,38:u,39:d,40:f,41:y,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ct,[2,14]),e(Qt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(St,[2,19]),e(St,[2,20]),{25:[1,78]},{27:[1,79]},e(St,[2,23]),{35:80,75:81,76:k,77:A,79:C,80:w},{35:86,75:81,76:k,77:A,79:C,80:w},{35:87,75:81,76:k,77:A,79:C,80:w},{35:88,75:81,76:k,77:A,79:C,80:w},{35:89,75:81,76:k,77:A,79:C,80:w},{35:90,75:81,76:k,77:A,79:C,80:w},{35:91,75:81,76:k,77:A,79:C,80:w},{35:92,75:81,76:k,77:A,79:C,80:w},{35:93,75:81,76:k,77:A,79:C,80:w},{35:94,75:81,76:k,77:A,79:C,80:w},{35:95,75:81,76:k,77:A,79:C,80:w},{35:96,75:81,76:k,77:A,79:C,80:w},{35:97,75:81,76:k,77:A,79:C,80:w},{35:98,75:81,76:k,77:A,79:C,80:w},{35:99,75:81,76:k,77:A,79:C,80:w},{35:100,75:81,76:k,77:A,79:C,80:w},{35:101,75:81,76:k,77:A,79:C,80:w},{35:102,75:81,76:k,77:A,79:C,80:w},{35:103,75:81,76:k,77:A,79:C,80:w},{35:104,75:81,76:k,77:A,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:k,77:A,79:C,80:w},{35:106,75:81,76:k,77:A,79:C,80:w},{35:107,75:81,76:k,77:A,79:C,80:w},{35:108,75:81,76:k,77:A,79:C,80:w},{35:109,75:81,76:k,77:A,79:C,80:w},{35:110,75:81,76:k,77:A,79:C,80:w},{35:111,75:81,76:k,77:A,79:C,80:w},{35:112,75:81,76:k,77:A,79:C,80:w},{35:113,75:81,76:k,77:A,79:C,80:w},{35:114,75:81,76:k,77:A,79:C,80:w},{35:115,75:81,76:k,77:A,79:C,80:w},{20:116,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:k,77:A,79:C,80:w},{35:120,75:81,76:k,77:A,79:C,80:w},{35:121,75:81,76:k,77:A,79:C,80:w},{35:122,75:81,76:k,77:A,79:C,80:w},{35:123,75:81,76:k,77:A,79:C,80:w},{35:124,75:81,76:k,77:A,79:C,80:w},{35:125,75:81,76:k,77:A,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Qt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:a}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:a,34:r,36:n,37:i,38:u,39:d,40:f,41:y,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(St,[2,21]),e(St,[2,22]),e(T,[2,39]),e(le,[2,71],{75:81,35:132,76:k,77:A,79:C,80:w}),e(Mt,[2,73]),{78:[1,133]},e(Mt,[2,75]),e(Mt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Qt,[2,18]),e(Ct,[2,38]),e(le,[2,72]),e(Mt,[2,74]),e(T,[2,24]),e(T,[2,35]),e(Ht,[2,25]),e(Ht,[2,26],{12:[1,138]}),e(Ht,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:g(function(x,m){if(m.recoverable)this.trace(x);else{var v=new Error(x);throw v.hash=m,v}},"parseError"),parse:g(function(x){var m=this,v=[0],b=[],R=[null],h=[],Dt=this.table,p="",Et=0,oe=0,we=2,ce=1,Te=h.slice.call(arguments,1),D=Object.create(this.lexer),kt={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(kt.yy[Gt]=this.yy[Gt]);D.setInput(x,kt.yy),kt.yy.lexer=D,kt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Kt=D.yylloc;h.push(Kt);var Oe=D.options&&D.options.ranges;typeof kt.yy.parseError=="function"?this.parseError=kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(L){v.length=v.length-2*L,R.length=R.length-L,h.length=h.length-L}g(Re,"popStack");function he(){var L;return L=b.pop()||D.lex()||ce,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=m.symbols_[L]||L),L}g(he,"lex");for(var I,At,N,Jt,wt={},Nt,W,ue,Yt;;){if(At=v[v.length-1],this.defaultActions[At]?N=this.defaultActions[At]:((I===null||typeof I>"u")&&(I=he()),N=Dt[At]&&Dt[At][I]),typeof N>"u"||!N.length||!N[0]){var Zt="";Yt=[];for(Nt in Dt[At])this.terminals_[Nt]&&Nt>we&&Yt.push("'"+this.terminals_[Nt]+"'");D.showPosition?Zt="Parse error on line "+(Et+1)+`:
1
+ import{g as Se,d as De}from"./chunk-JSJVCQXG-C9-xDx_f.js";import{s as Pe,g as Be,a as Ie,b as Me,_ as g,c as Bt,d as jt,l as de,e as Le,f as Ne,h as Tt,i as ge,j as Ye,w as je,k as $t,m as fe}from"./mermaid.core-D6aFEa0I.js";import"./renderer.js";import"./purify.es-DIZLy5JB.js";import"./string-Bl2zznvy.js";var Ft=(function(){var e=g(function(_t,x,m,v){for(m=m||{},v=_t.length;v--;m[_t[v]]=x);return m},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],a=[1,28],r=[1,63],n=[1,64],i=[1,65],u=[1,66],d=[1,67],f=[1,68],y=[1,69],E=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],it=[1,45],nt=[1,46],rt=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Qt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],St=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],k=[1,82],A=[1,83],C=[1,84],w=[1,85],T=[12,14,42],le=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],vt=[12,33],Ht=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qt={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:g(function(x,m,v,b,R,h,Dt){var p=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[p-3]);break;case 19:b.setTitle(h[p].substring(6)),this.$=h[p].substring(6);break;case 20:b.setAccDescription(h[p].substring(15)),this.$=h[p].substring(15);break;case 21:this.$=h[p].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[p].trim(),b.setAccDescription(this.$);break;case 28:h[p].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 29:h[p].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 30:b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 31:h[p].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[p]),this.$=h[p];break;case 32:b.addDeploymentNode("node",...h[p]),this.$=h[p];break;case 33:b.addDeploymentNode("nodeL",...h[p]),this.$=h[p];break;case 34:b.addDeploymentNode("nodeR",...h[p]),this.$=h[p];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[p]),this.$=h[p];break;case 40:b.addPersonOrSystem("external_person",...h[p]),this.$=h[p];break;case 41:b.addPersonOrSystem("system",...h[p]),this.$=h[p];break;case 42:b.addPersonOrSystem("system_db",...h[p]),this.$=h[p];break;case 43:b.addPersonOrSystem("system_queue",...h[p]),this.$=h[p];break;case 44:b.addPersonOrSystem("external_system",...h[p]),this.$=h[p];break;case 45:b.addPersonOrSystem("external_system_db",...h[p]),this.$=h[p];break;case 46:b.addPersonOrSystem("external_system_queue",...h[p]),this.$=h[p];break;case 47:b.addContainer("container",...h[p]),this.$=h[p];break;case 48:b.addContainer("container_db",...h[p]),this.$=h[p];break;case 49:b.addContainer("container_queue",...h[p]),this.$=h[p];break;case 50:b.addContainer("external_container",...h[p]),this.$=h[p];break;case 51:b.addContainer("external_container_db",...h[p]),this.$=h[p];break;case 52:b.addContainer("external_container_queue",...h[p]),this.$=h[p];break;case 53:b.addComponent("component",...h[p]),this.$=h[p];break;case 54:b.addComponent("component_db",...h[p]),this.$=h[p];break;case 55:b.addComponent("component_queue",...h[p]),this.$=h[p];break;case 56:b.addComponent("external_component",...h[p]),this.$=h[p];break;case 57:b.addComponent("external_component_db",...h[p]),this.$=h[p];break;case 58:b.addComponent("external_component_queue",...h[p]),this.$=h[p];break;case 60:b.addRel("rel",...h[p]),this.$=h[p];break;case 61:b.addRel("birel",...h[p]),this.$=h[p];break;case 62:b.addRel("rel_u",...h[p]),this.$=h[p];break;case 63:b.addRel("rel_d",...h[p]),this.$=h[p];break;case 64:b.addRel("rel_l",...h[p]),this.$=h[p];break;case 65:b.addRel("rel_r",...h[p]),this.$=h[p];break;case 66:b.addRel("rel_b",...h[p]),this.$=h[p];break;case 67:h[p].splice(0,1),b.addRel("rel",...h[p]),this.$=h[p];break;case 68:b.updateElStyle("update_el_style",...h[p]),this.$=h[p];break;case 69:b.updateRelStyle("update_rel_style",...h[p]),this.$=h[p];break;case 70:b.updateLayoutConfig("update_layout_config",...h[p]),this.$=h[p];break;case 71:this.$=[h[p]];break;case 72:h[p].unshift(h[p-1]),this.$=h[p];break;case 73:case 75:this.$=h[p].trim();break;case 74:let Et={};Et[h[p-1].trim()]=h[p].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:n,37:i,38:u,39:d,40:f,41:y,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ct,[2,14]),e(Qt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(St,[2,19]),e(St,[2,20]),{25:[1,78]},{27:[1,79]},e(St,[2,23]),{35:80,75:81,76:k,77:A,79:C,80:w},{35:86,75:81,76:k,77:A,79:C,80:w},{35:87,75:81,76:k,77:A,79:C,80:w},{35:88,75:81,76:k,77:A,79:C,80:w},{35:89,75:81,76:k,77:A,79:C,80:w},{35:90,75:81,76:k,77:A,79:C,80:w},{35:91,75:81,76:k,77:A,79:C,80:w},{35:92,75:81,76:k,77:A,79:C,80:w},{35:93,75:81,76:k,77:A,79:C,80:w},{35:94,75:81,76:k,77:A,79:C,80:w},{35:95,75:81,76:k,77:A,79:C,80:w},{35:96,75:81,76:k,77:A,79:C,80:w},{35:97,75:81,76:k,77:A,79:C,80:w},{35:98,75:81,76:k,77:A,79:C,80:w},{35:99,75:81,76:k,77:A,79:C,80:w},{35:100,75:81,76:k,77:A,79:C,80:w},{35:101,75:81,76:k,77:A,79:C,80:w},{35:102,75:81,76:k,77:A,79:C,80:w},{35:103,75:81,76:k,77:A,79:C,80:w},{35:104,75:81,76:k,77:A,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:k,77:A,79:C,80:w},{35:106,75:81,76:k,77:A,79:C,80:w},{35:107,75:81,76:k,77:A,79:C,80:w},{35:108,75:81,76:k,77:A,79:C,80:w},{35:109,75:81,76:k,77:A,79:C,80:w},{35:110,75:81,76:k,77:A,79:C,80:w},{35:111,75:81,76:k,77:A,79:C,80:w},{35:112,75:81,76:k,77:A,79:C,80:w},{35:113,75:81,76:k,77:A,79:C,80:w},{35:114,75:81,76:k,77:A,79:C,80:w},{35:115,75:81,76:k,77:A,79:C,80:w},{20:116,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:k,77:A,79:C,80:w},{35:120,75:81,76:k,77:A,79:C,80:w},{35:121,75:81,76:k,77:A,79:C,80:w},{35:122,75:81,76:k,77:A,79:C,80:w},{35:123,75:81,76:k,77:A,79:C,80:w},{35:124,75:81,76:k,77:A,79:C,80:w},{35:125,75:81,76:k,77:A,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Qt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:a}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:a,34:r,36:n,37:i,38:u,39:d,40:f,41:y,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(St,[2,21]),e(St,[2,22]),e(T,[2,39]),e(le,[2,71],{75:81,35:132,76:k,77:A,79:C,80:w}),e(Mt,[2,73]),{78:[1,133]},e(Mt,[2,75]),e(Mt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Qt,[2,18]),e(Ct,[2,38]),e(le,[2,72]),e(Mt,[2,74]),e(T,[2,24]),e(T,[2,35]),e(Ht,[2,25]),e(Ht,[2,26],{12:[1,138]}),e(Ht,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:g(function(x,m){if(m.recoverable)this.trace(x);else{var v=new Error(x);throw v.hash=m,v}},"parseError"),parse:g(function(x){var m=this,v=[0],b=[],R=[null],h=[],Dt=this.table,p="",Et=0,oe=0,we=2,ce=1,Te=h.slice.call(arguments,1),D=Object.create(this.lexer),kt={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(kt.yy[Gt]=this.yy[Gt]);D.setInput(x,kt.yy),kt.yy.lexer=D,kt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Kt=D.yylloc;h.push(Kt);var Oe=D.options&&D.options.ranges;typeof kt.yy.parseError=="function"?this.parseError=kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(L){v.length=v.length-2*L,R.length=R.length-L,h.length=h.length-L}g(Re,"popStack");function he(){var L;return L=b.pop()||D.lex()||ce,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=m.symbols_[L]||L),L}g(he,"lex");for(var I,At,N,Jt,wt={},Nt,W,ue,Yt;;){if(At=v[v.length-1],this.defaultActions[At]?N=this.defaultActions[At]:((I===null||typeof I>"u")&&(I=he()),N=Dt[At]&&Dt[At][I]),typeof N>"u"||!N.length||!N[0]){var Zt="";Yt=[];for(Nt in Dt[At])this.terminals_[Nt]&&Nt>we&&Yt.push("'"+this.terminals_[Nt]+"'");D.showPosition?Zt="Parse error on line "+(Et+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+Yt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Zt="Parse error on line "+(Et+1)+": Unexpected "+(I==ce?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Zt,{text:D.match,token:this.terminals_[I]||I,line:D.yylineno,loc:Kt,expected:Yt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+At+", token: "+I);switch(N[0]){case 1:v.push(I),R.push(D.yytext),h.push(D.yylloc),v.push(N[1]),I=null,oe=D.yyleng,p=D.yytext,Et=D.yylineno,Kt=D.yylloc;break;case 2:if(W=this.productions_[N[1]][1],wt.$=R[R.length-W],wt._$={first_line:h[h.length-(W||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(W||1)].first_column,last_column:h[h.length-1].last_column},Oe&&(wt._$.range=[h[h.length-(W||1)].range[0],h[h.length-1].range[1]]),Jt=this.performAction.apply(wt,[p,oe,Et,kt.yy,N[1],R,h].concat(Te)),typeof Jt<"u")return Jt;W&&(v=v.slice(0,-1*W*2),R=R.slice(0,-1*W),h=h.slice(0,-1*W)),v.push(this.productions_[N[1]][0]),R.push(wt.$),h.push(wt._$),ue=Dt[v[v.length-2]][v[v.length-1]],v.push(ue);break;case 3:return!0}}return!0},"parse")},Ce=(function(){var _t={EOF:1,parseError:g(function(m,v){if(this.yy.parser)this.yy.parser.parseError(m,v);else throw new Error(m)},"parseError"),setInput:g(function(x,m){return this.yy=m||this.yy||{},this._input=x,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:g(function(){var x=this._input[0];this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x;var m=x.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),x},"input"),unput:g(function(x){var m=x.length,v=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),v.length-1&&(this.yylineno-=v.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:v?(v.length===b.length?this.yylloc.first_column:0)+b[b.length-v.length].length-v[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:g(function(x){this.unput(this.match.slice(x))},"less"),pastInput:g(function(){var x=this.matched.substr(0,this.matched.length-this.match.length);return(x.length>20?"...":"")+x.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:g(function(){var x=this.match;return x.length<20&&(x+=this._input.substr(0,20-x.length)),(x.substr(0,20)+(x.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:g(function(){var x=this.pastInput(),m=new Array(x.length+1).join("-");return x+this.upcomingInput()+`
@@ -0,0 +1 @@
1
+ import{r as _,g as It,j as W,c as Xt,h as fn,i as dn,k as pn,l as gn}from"./renderer.js";function mn(t){return Object.prototype.toString.call(t)==="[object Object]"}function _t(t){return mn(t)||Array.isArray(t)}function hn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Tt(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!==i.length)return!1;const s=JSON.stringify(Object.keys(t.breakpoints||{})),r=JSON.stringify(Object.keys(n.breakpoints||{}));return s!==r?!1:e.every(o=>{const l=t[o],c=n[o];return typeof l=="function"?`${l}`==`${c}`:!_t(l)||!_t(c)?l===c:Tt(l,c)})}function qt(t){return t.concat().sort((n,e)=>n.name>e.name?1:-1).map(n=>n.options)}function yn(t,n){if(t.length!==n.length)return!1;const e=qt(t),i=qt(n);return e.every((s,r)=>{const o=i[r];return Tt(s,o)})}function Pt(t){return typeof t=="number"}function Dt(t){return typeof t=="string"}function xt(t){return typeof t=="boolean"}function Gt(t){return Object.prototype.toString.call(t)==="[object Object]"}function q(t){return Math.abs(t)}function Mt(t){return Math.sign(t)}function pt(t,n){return q(t-n)}function Sn(t,n){if(t===0||n===0||q(t)<=q(n))return 0;const e=pt(q(t),q(n));return q(e/t)}function bn(t){return Math.round(t*100)/100}function gt(t){return mt(t).map(Number)}function st(t){return t[yt(t)]}function yt(t){return Math.max(0,t.length-1)}function At(t,n){return n===yt(t)}function Yt(t,n=0){return Array.from(Array(t),(e,i)=>n+i)}function mt(t){return Object.keys(t)}function Qt(t,n){return[t,n].reduce((e,i)=>(mt(i).forEach(s=>{const r=e[s],o=i[s],l=Gt(r)&&Gt(o);e[s]=l?Qt(r,o):o}),e),{})}function Lt(t,n){return typeof n.MouseEvent<"u"&&t instanceof n.MouseEvent}function xn(t,n){const e={start:i,center:s,end:r};function i(){return 0}function s(c){return r(c)/2}function r(c){return n-c}function o(c,a){return Dt(t)?e[t](c):t(n,c,a)}return{measure:o}}function ht(){let t=[];function n(s,r,o,l={passive:!0}){let c;if("addEventListener"in s)s.addEventListener(r,o,l),c=()=>s.removeEventListener(r,o,l);else{const a=s;a.addListener(o),c=()=>a.removeListener(o)}return t.push(c),i}function e(){t=t.filter(s=>s())}const i={add:n,clear:e};return i}function vn(t,n,e,i){const s=ht(),r=1e3/60;let o=null,l=0,c=0;function a(){s.add(t,"visibilitychange",()=>{t.hidden&&d()})}function y(){v(),s.clear()}function f(h){if(!c)return;o||(o=h,e(),e());const u=h-o;for(o=h,l+=u;l>=r;)e(),l-=r;const S=l/r;i(S),c&&(c=n.requestAnimationFrame(f))}function p(){c||(c=n.requestAnimationFrame(f))}function v(){n.cancelAnimationFrame(c),o=null,l=0,c=0}function d(){o=null,l=0}return{init:a,destroy:y,start:p,stop:v,update:e,render:i}}function En(t,n){const e=n==="rtl",i=t==="y",s=i?"y":"x",r=i?"x":"y",o=!i&&e?-1:1,l=y(),c=f();function a(d){const{height:g,width:h}=d;return i?g:h}function y(){return i?"top":e?"right":"left"}function f(){return i?"bottom":e?"left":"right"}function p(d){return d*o}return{scroll:s,cross:r,startEdge:l,endEdge:c,measureSize:a,direction:p}}function lt(t=0,n=0){const e=q(t-n);function i(a){return a<t}function s(a){return a>n}function r(a){return i(a)||s(a)}function o(a){return r(a)?i(a)?t:n:a}function l(a){return e?a-e*Math.ceil((a-n)/e):a}return{length:e,max:n,min:t,constrain:o,reachedAny:r,reachedMax:s,reachedMin:i,removeOffset:l}}function Jt(t,n,e){const{constrain:i}=lt(0,t),s=t+1;let r=o(n);function o(p){return e?q((s+p)%s):i(p)}function l(){return r}function c(p){return r=o(p),f}function a(p){return y().set(l()+p)}function y(){return Jt(t,l(),e)}const f={get:l,set:c,add:a,clone:y};return f}function On(t,n,e,i,s,r,o,l,c,a,y,f,p,v,d,g,h,u,S){const{cross:E,direction:P}=t,C=["INPUT","SELECT","TEXTAREA"],L={passive:!1},w=ht(),T=ht(),m=lt(50,225).constrain(v.measure(20)),D={mouse:300,touch:400},F={mouse:500,touch:600},U=d?43:25;let Y=!1,b=0,I=0,O=!1,M=!1,A=!1,k=!1;function N(x){if(!S)return;function B(Z){(xt(S)||S(x,Z))&&rt(Z)}const X=n;w.add(X,"dragstart",Z=>Z.preventDefault(),L).add(X,"touchmove",()=>{},L).add(X,"touchend",()=>{}).add(X,"touchstart",B).add(X,"mousedown",B).add(X,"touchcancel",K).add(X,"contextmenu",K).add(X,"click",tt,!0)}function j(){w.clear(),T.clear()}function R(){const x=k?e:n;T.add(x,"touchmove",Q,L).add(x,"touchend",K).add(x,"mousemove",Q,L).add(x,"mouseup",K)}function z(x){const B=x.nodeName||"";return C.includes(B)}function H(){return(d?F:D)[k?"mouse":"touch"]}function nt(x,B){const X=f.add(Mt(x)*-1),Z=y.byDistance(x,!d).distance;return d||q(x)<m?Z:h&&B?Z*.5:y.byIndex(X.get(),0).distance}function rt(x){const B=Lt(x,i);k=B,A=d&&B&&!x.buttons&&Y,Y=pt(s.get(),o.get())>=2,!(B&&x.button!==0)&&(z(x.target)||(O=!0,r.pointerDown(x),a.useFriction(0).useDuration(0),s.set(o),R(),b=r.readPoint(x),I=r.readPoint(x,E),p.emit("pointerDown")))}function Q(x){if(!Lt(x,i)&&x.touches.length>=2)return K(x);const X=r.readPoint(x),Z=r.readPoint(x,E),et=pt(X,b),ot=pt(Z,I);if(!M&&!k&&(!x.cancelable||(M=et>ot,!M)))return K(x);const V=r.pointerMove(x);et>g&&(A=!0),a.useFriction(.3).useDuration(.75),l.start(),s.add(P(V)),x.preventDefault()}function K(x){const X=y.byDistance(0,!1).index!==f.get(),Z=r.pointerUp(x)*H(),et=nt(P(Z),X),ot=Sn(Z,et),V=U-10*ot,G=u+ot/50;M=!1,O=!1,T.clear(),a.useDuration(V).useFriction(G),c.distance(et,!d),k=!1,p.emit("pointerUp")}function tt(x){A&&(x.stopPropagation(),x.preventDefault(),A=!1)}function J(){return O}return{init:N,destroy:j,pointerDown:J}}function In(t,n){let i,s;function r(f){return f.timeStamp}function o(f,p){const d=`client${(p||t.scroll)==="x"?"X":"Y"}`;return(Lt(f,n)?f:f.touches[0])[d]}function l(f){return i=f,s=f,o(f)}function c(f){const p=o(f)-o(s),v=r(f)-r(i)>170;return s=f,v&&(i=f),p}function a(f){if(!i||!s)return 0;const p=o(s)-o(i),v=r(f)-r(i),d=r(f)-r(s)>170,g=p/v;return v&&!d&&q(g)>.1?g:0}return{pointerDown:l,pointerMove:c,pointerUp:a,readPoint:o}}function wn(){function t(e){const{offsetTop:i,offsetLeft:s,offsetWidth:r,offsetHeight:o}=e;return{top:i,right:s+r,bottom:i+o,left:s,width:r,height:o}}return{measure:t}}function Dn(t){function n(i){return t*(i/100)}return{measure:n}}function Ln(t,n,e,i,s,r,o){const l=[t].concat(i);let c,a,y=[],f=!1;function p(h){return s.measureSize(o.measure(h))}function v(h){if(!r)return;a=p(t),y=i.map(p);function u(S){for(const E of S){if(f)return;const P=E.target===t,C=i.indexOf(E.target),L=P?a:y[C],w=p(P?t:i[C]);if(q(w-L)>=.5){h.reInit(),n.emit("resize");break}}}c=new ResizeObserver(S=>{(xt(r)||r(h,S))&&u(S)}),e.requestAnimationFrame(()=>{l.forEach(S=>c.observe(S))})}function d(){f=!0,c&&c.disconnect()}return{init:v,destroy:d}}function Tn(t,n,e,i,s,r){let o=0,l=0,c=s,a=r,y=t.get(),f=0;function p(){const L=i.get()-t.get(),w=!c;let T=0;return w?(o=0,e.set(i),t.set(i),T=L):(e.set(t),o+=L/c,o*=a,y+=o,t.add(o),T=y-f),l=Mt(T),f=y,C}function v(){const L=i.get()-n.get();return q(L)<.001}function d(){return c}function g(){return l}function h(){return o}function u(){return E(s)}function S(){return P(r)}function E(L){return c=L,C}function P(L){return a=L,C}const C={direction:g,duration:d,velocity:h,seek:p,settled:v,useBaseFriction:S,useBaseDuration:u,useFriction:P,useDuration:E};return C}function Pn(t,n,e,i,s){const r=s.measure(10),o=s.measure(50),l=lt(.1,.99);let c=!1;function a(){return!(c||!t.reachedAny(e.get())||!t.reachedAny(n.get()))}function y(v){if(!a())return;const d=t.reachedMin(n.get())?"min":"max",g=q(t[d]-n.get()),h=e.get()-n.get(),u=l.constrain(g/o);e.subtract(h*u),!v&&q(h)<r&&(e.set(t.constrain(e.get())),i.useDuration(25).useBaseFriction())}function f(v){c=!v}return{shouldConstrain:a,constrain:y,toggleActive:f}}function Mn(t,n,e,i,s){const r=lt(-n+t,0),o=f(),l=y(),c=p();function a(d,g){return pt(d,g)<=1}function y(){const d=o[0],g=st(o),h=o.lastIndexOf(d),u=o.indexOf(g)+1;return lt(h,u)}function f(){return e.map((d,g)=>{const{min:h,max:u}=r,S=r.constrain(d),E=!g,P=At(e,g);return E?u:P||a(h,S)?h:a(u,S)?u:S}).map(d=>parseFloat(d.toFixed(3)))}function p(){if(n<=t+s)return[r.max];if(i==="keepSnaps")return o;const{min:d,max:g}=l;return o.slice(d,g)}return{snapsContained:c,scrollContainLimit:l}}function An(t,n,e){const i=n[0],s=e?i-t:st(n);return{limit:lt(s,i)}}function Fn(t,n,e,i){const r=n.min+.1,o=n.max+.1,{reachedMin:l,reachedMax:c}=lt(r,o);function a(p){return p===1?c(e.get()):p===-1?l(e.get()):!1}function y(p){if(!a(p))return;const v=t*(p*-1);i.forEach(d=>d.add(v))}return{loop:y}}function Cn(t){const{max:n,length:e}=t;function i(r){const o=r-n;return e?o/-e:0}return{get:i}}function kn(t,n,e,i,s){const{startEdge:r,endEdge:o}=t,{groupSlides:l}=s,c=f().map(n.measure),a=p(),y=v();function f(){return l(i).map(g=>st(g)[o]-g[0][r]).map(q)}function p(){return i.map(g=>e[r]-g[r]).map(g=>-q(g))}function v(){return l(a).map(g=>g[0]).map((g,h)=>g+c[h])}return{snaps:a,snapsAligned:y}}function Nn(t,n,e,i,s,r){const{groupSlides:o}=s,{min:l,max:c}=i,a=y();function y(){const p=o(r),v=!t||n==="keepSnaps";return e.length===1?[r]:v?p:p.slice(l,c).map((d,g,h)=>{const u=!g,S=At(h,g);if(u){const E=st(h[0])+1;return Yt(E)}if(S){const E=yt(r)-st(h)[0]+1;return Yt(E,st(h)[0])}return d})}return{slideRegistry:a}}function Bn(t,n,e,i,s){const{reachedAny:r,removeOffset:o,constrain:l}=i;function c(d){return d.concat().sort((g,h)=>q(g)-q(h))[0]}function a(d){const g=t?o(d):l(d),h=n.map((S,E)=>({diff:y(S-g,0),index:E})).sort((S,E)=>q(S.diff)-q(E.diff)),{index:u}=h[0];return{index:u,distance:g}}function y(d,g){const h=[d,d+e,d-e];if(!t)return d;if(!g)return c(h);const u=h.filter(S=>Mt(S)===g);return u.length?c(u):st(h)-e}function f(d,g){const h=n[d]-s.get(),u=y(h,g);return{index:d,distance:u}}function p(d,g){const h=s.get()+d,{index:u,distance:S}=a(h),E=!t&&r(h);if(!g||E)return{index:u,distance:d};const P=n[u]-S,C=d+y(P,0);return{index:u,distance:C}}return{byDistance:p,byIndex:f,shortcut:y}}function jn(t,n,e,i,s,r,o){function l(f){const p=f.distance,v=f.index!==n.get();r.add(p),p&&(i.duration()?t.start():(t.update(),t.render(1),t.update())),v&&(e.set(n.get()),n.set(f.index),o.emit("select"))}function c(f,p){const v=s.byDistance(f,p);l(v)}function a(f,p){const v=n.clone().set(f),d=s.byIndex(v.get(),p);l(d)}return{distance:c,index:a}}function Rn(t,n,e,i,s,r,o,l){const c={passive:!0,capture:!0};let a=0;function y(v){if(!l)return;function d(g){if(new Date().getTime()-a>10)return;o.emit("slideFocusStart"),t.scrollLeft=0;const S=e.findIndex(E=>E.includes(g));Pt(S)&&(s.useDuration(0),i.index(S,0),o.emit("slideFocus"))}r.add(document,"keydown",f,!1),n.forEach((g,h)=>{r.add(g,"focus",u=>{(xt(l)||l(v,u))&&d(h)},c)})}function f(v){v.code==="Tab"&&(a=new Date().getTime())}return{init:y}}function dt(t){let n=t;function e(){return n}function i(c){n=o(c)}function s(c){n+=o(c)}function r(c){n-=o(c)}function o(c){return Pt(c)?c:c.get()}return{get:e,set:i,add:s,subtract:r}}function Zt(t,n){const e=t.scroll==="x"?o:l,i=n.style;let s=null,r=!1;function o(p){return`translate3d(${p}px,0px,0px)`}function l(p){return`translate3d(0px,${p}px,0px)`}function c(p){if(r)return;const v=bn(t.direction(p));v!==s&&(i.transform=e(v),s=v)}function a(p){r=!p}function y(){r||(i.transform="",n.getAttribute("style")||n.removeAttribute("style"))}return{clear:y,to:c,toggleActive:a}}function zn(t,n,e,i,s,r,o,l,c){const y=gt(s),f=gt(s).reverse(),p=u().concat(S());function v(w,T){return w.reduce((m,D)=>m-s[D],T)}function d(w,T){return w.reduce((m,D)=>v(m,T)>0?m.concat([D]):m,[])}function g(w){return r.map((T,m)=>({start:T-i[m]+.5+w,end:T+n-.5+w}))}function h(w,T,m){const D=g(T);return w.map(F=>{const U=m?0:-e,Y=m?e:0,b=m?"end":"start",I=D[F][b];return{index:F,loopPoint:I,slideLocation:dt(-1),translate:Zt(t,c[F]),target:()=>l.get()>I?U:Y}})}function u(){const w=o[0],T=d(f,w);return h(T,e,!1)}function S(){const w=n-o[0]-1,T=d(y,w);return h(T,-e,!0)}function E(){return p.every(({index:w})=>{const T=y.filter(m=>m!==w);return v(T,n)<=.1})}function P(){p.forEach(w=>{const{target:T,translate:m,slideLocation:D}=w,F=T();F!==D.get()&&(m.to(F),D.set(F))})}function C(){p.forEach(w=>w.translate.clear())}return{canLoop:E,clear:C,loop:P,loopPoints:p}}function Un(t,n,e){let i,s=!1;function r(c){if(!e)return;function a(y){for(const f of y)if(f.type==="childList"){c.reInit(),n.emit("slidesChanged");break}}i=new MutationObserver(y=>{s||(xt(e)||e(c,y))&&a(y)}),i.observe(t,{childList:!0})}function o(){i&&i.disconnect(),s=!0}return{init:r,destroy:o}}function $n(t,n,e,i){const s={};let r=null,o=null,l,c=!1;function a(){l=new IntersectionObserver(d=>{c||(d.forEach(g=>{const h=n.indexOf(g.target);s[h]=g}),r=null,o=null,e.emit("slidesInView"))},{root:t.parentElement,threshold:i}),n.forEach(d=>l.observe(d))}function y(){l&&l.disconnect(),c=!0}function f(d){return mt(s).reduce((g,h)=>{const u=parseInt(h),{isIntersecting:S}=s[u];return(d&&S||!d&&!S)&&g.push(u),g},[])}function p(d=!0){if(d&&r)return r;if(!d&&o)return o;const g=f(d);return d&&(r=g),d||(o=g),g}return{init:a,destroy:y,get:p}}function Hn(t,n,e,i,s,r){const{measureSize:o,startEdge:l,endEdge:c}=t,a=e[0]&&s,y=d(),f=g(),p=e.map(o),v=h();function d(){if(!a)return 0;const S=e[0];return q(n[l]-S[l])}function g(){if(!a)return 0;const S=r.getComputedStyle(st(i));return parseFloat(S.getPropertyValue(`margin-${c}`))}function h(){return e.map((S,E,P)=>{const C=!E,L=At(P,E);return C?p[E]+y:L?p[E]+f:P[E+1][l]-S[l]}).map(q)}return{slideSizes:p,slideSizesWithGaps:v,startGap:y,endGap:f}}function Vn(t,n,e,i,s,r,o,l,c){const{startEdge:a,endEdge:y,direction:f}=t,p=Pt(e);function v(u,S){return gt(u).filter(E=>E%S===0).map(E=>u.slice(E,E+S))}function d(u){return u.length?gt(u).reduce((S,E,P)=>{const C=st(S)||0,L=C===0,w=E===yt(u),T=s[a]-r[C][a],m=s[a]-r[E][y],D=!i&&L?f(o):0,F=!i&&w?f(l):0,U=q(m-F-(T+D));return P&&U>n+c&&S.push(E),w&&S.push(u.length),S},[]).map((S,E,P)=>{const C=Math.max(P[E-1]||0);return u.slice(C,S)}):[]}function g(u){return p?v(u,e):d(u)}return{groupSlides:g}}function _n(t,n,e,i,s,r,o){const{align:l,axis:c,direction:a,startIndex:y,loop:f,duration:p,dragFree:v,dragThreshold:d,inViewThreshold:g,slidesToScroll:h,skipSnaps:u,containScroll:S,watchResize:E,watchSlides:P,watchDrag:C,watchFocus:L}=r,w=2,T=wn(),m=T.measure(n),D=e.map(T.measure),F=En(c,a),U=F.measureSize(m),Y=Dn(U),b=xn(l,U),I=!f&&!!S,O=f||!!S,{slideSizes:M,slideSizesWithGaps:A,startGap:k,endGap:N}=Hn(F,m,D,e,O,s),j=Vn(F,U,h,f,m,D,k,N,w),{snaps:R,snapsAligned:z}=kn(F,b,m,D,j),H=-st(R)+st(A),{snapsContained:nt,scrollContainLimit:rt}=Mn(U,H,z,S,w),Q=I?nt:z,{limit:K}=An(H,Q,f),tt=Jt(yt(Q),y,f),J=tt.clone(),$=gt(e),x=({dragHandler:at,scrollBody:Et,scrollBounds:Ot,options:{loop:St}})=>{St||Ot.constrain(at.pointerDown()),Et.seek()},B=({scrollBody:at,translate:Et,location:Ot,offsetLocation:St,previousLocation:en,scrollLooper:on,slideLooper:sn,dragHandler:rn,animation:cn,eventHandler:Rt,scrollBounds:ln,options:{loop:zt}},Ut)=>{const $t=at.settled(),an=!ln.shouldConstrain(),Ht=zt?$t:$t&&an,Vt=Ht&&!rn.pointerDown();Vt&&cn.stop();const un=Ot.get()*Ut+en.get()*(1-Ut);St.set(un),zt&&(on.loop(at.direction()),sn.loop()),Et.to(St.get()),Vt&&Rt.emit("settle"),Ht||Rt.emit("scroll")},X=vn(i,s,()=>x(vt),at=>B(vt,at)),Z=.68,et=Q[tt.get()],ot=dt(et),V=dt(et),G=dt(et),it=dt(et),ct=Tn(ot,G,V,it,p,Z),ut=Bn(f,Q,H,K,it),ft=jn(X,tt,J,ct,ut,it,o),Nt=Cn(K),Bt=ht(),tn=$n(n,e,o,g),{slideRegistry:jt}=Nn(I,S,Q,rt,j,$),nn=Rn(t,e,jt,ft,ct,Bt,o,L),vt={ownerDocument:i,ownerWindow:s,eventHandler:o,containerRect:m,slideRects:D,animation:X,axis:F,dragHandler:On(F,t,i,s,it,In(F,s),ot,X,ft,ct,ut,tt,o,Y,v,d,u,Z,C),eventStore:Bt,percentOfView:Y,index:tt,indexPrevious:J,limit:K,location:ot,offsetLocation:G,previousLocation:V,options:r,resizeHandler:Ln(n,o,s,e,F,E,T),scrollBody:ct,scrollBounds:Pn(K,G,it,ct,Y),scrollLooper:Fn(H,K,G,[ot,G,V,it]),scrollProgress:Nt,scrollSnapList:Q.map(Nt.get),scrollSnaps:Q,scrollTarget:ut,scrollTo:ft,slideLooper:zn(F,U,H,M,A,R,Q,G,e),slideFocus:nn,slidesHandler:Un(n,o,P),slidesInView:tn,slideIndexes:$,slideRegistry:jt,slidesToScroll:j,target:it,translate:Zt(F,n)};return vt}function qn(){let t={},n;function e(a){n=a}function i(a){return t[a]||[]}function s(a){return i(a).forEach(y=>y(n,a)),c}function r(a,y){return t[a]=i(a).concat([y]),c}function o(a,y){return t[a]=i(a).filter(f=>f!==y),c}function l(){t={}}const c={init:e,emit:s,off:o,on:r,clear:l};return c}const Gn={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Yn(t){function n(r,o){return Qt(r,o||{})}function e(r){const o=r.breakpoints||{},l=mt(o).filter(c=>t.matchMedia(c).matches).map(c=>o[c]).reduce((c,a)=>n(c,a),{});return n(r,l)}function i(r){return r.map(o=>mt(o.breakpoints||{})).reduce((o,l)=>o.concat(l),[]).map(t.matchMedia)}return{mergeOptions:n,optionsAtMedia:e,optionsMediaQueries:i}}function Kn(t){let n=[];function e(r,o){return n=o.filter(({options:l})=>t.optionsAtMedia(l).active!==!1),n.forEach(l=>l.init(r,t)),o.reduce((l,c)=>Object.assign(l,{[c.name]:c}),{})}function i(){n=n.filter(r=>r.destroy())}return{init:e,destroy:i}}function bt(t,n,e){const i=t.ownerDocument,s=i.defaultView,r=Yn(s),o=Kn(r),l=ht(),c=qn(),{mergeOptions:a,optionsAtMedia:y,optionsMediaQueries:f}=r,{on:p,off:v,emit:d}=c,g=F;let h=!1,u,S=a(Gn,bt.globalOptions),E=a(S),P=[],C,L,w;function T(){const{container:$,slides:x}=E;L=(Dt($)?t.querySelector($):$)||t.children[0];const X=Dt(x)?L.querySelectorAll(x):x;w=[].slice.call(X||L.children)}function m($){const x=_n(t,L,w,i,s,$,c);if($.loop&&!x.slideLooper.canLoop()){const B=Object.assign({},$,{loop:!1});return m(B)}return x}function D($,x){h||(S=a(S,$),E=y(S),P=x||P,T(),u=m(E),f([S,...P.map(({options:B})=>B)]).forEach(B=>l.add(B,"change",F)),E.active&&(u.translate.to(u.location.get()),u.animation.init(),u.slidesInView.init(),u.slideFocus.init(J),u.eventHandler.init(J),u.resizeHandler.init(J),u.slidesHandler.init(J),u.options.loop&&u.slideLooper.loop(),L.offsetParent&&w.length&&u.dragHandler.init(J),C=o.init(J,P)))}function F($,x){const B=j();U(),D(a({startIndex:B},$),x),c.emit("reInit")}function U(){u.dragHandler.destroy(),u.eventStore.clear(),u.translate.clear(),u.slideLooper.clear(),u.resizeHandler.destroy(),u.slidesHandler.destroy(),u.slidesInView.destroy(),u.animation.destroy(),o.destroy(),l.clear()}function Y(){h||(h=!0,l.clear(),U(),c.emit("destroy"),c.clear())}function b($,x,B){!E.active||h||(u.scrollBody.useBaseFriction().useDuration(x===!0?0:E.duration),u.scrollTo.index($,B||0))}function I($){const x=u.index.add(1).get();b(x,$,-1)}function O($){const x=u.index.add(-1).get();b(x,$,1)}function M(){return u.index.add(1).get()!==j()}function A(){return u.index.add(-1).get()!==j()}function k(){return u.scrollSnapList}function N(){return u.scrollProgress.get(u.offsetLocation.get())}function j(){return u.index.get()}function R(){return u.indexPrevious.get()}function z(){return u.slidesInView.get()}function H(){return u.slidesInView.get(!1)}function nt(){return C}function rt(){return u}function Q(){return t}function K(){return L}function tt(){return w}const J={canScrollNext:M,canScrollPrev:A,containerNode:K,internalEngine:rt,destroy:Y,off:v,on:p,emit:d,plugins:nt,previousScrollSnap:R,reInit:g,rootNode:Q,scrollNext:I,scrollPrev:O,scrollProgress:N,scrollSnapList:k,scrollTo:b,selectedScrollSnap:j,slideNodes:tt,slidesInView:z,slidesNotInView:H};return D(n,e),setTimeout(()=>c.emit("init"),0),J}bt.globalOptions=void 0;function Ft(t={},n=[]){const e=_.useRef(t),i=_.useRef(n),[s,r]=_.useState(),[o,l]=_.useState(),c=_.useCallback(()=>{s&&s.reInit(e.current,i.current)},[s]);return _.useEffect(()=>{Tt(e.current,t)||(e.current=t,c())},[t,c]),_.useEffect(()=>{yn(i.current,n)||(i.current=n,c())},[n,c]),_.useEffect(()=>{if(hn()&&o){bt.globalOptions=Ft.globalOptions;const a=bt(o,e.current,i.current);return r(a),()=>a.destroy()}else r(void 0)},[o,r]),[l,s]}Ft.globalOptions=void 0;const Xn={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function Qn(t,n){const e=t.scrollSnapList();return typeof n=="number"?e.map(()=>n):n(e,t)}function Jn(t,n){const e=t.rootNode();return n&&n(e)||e}function Ct(t={}){let n,e,i,s,r=null,o=0,l=!1,c=!1,a=!1,y=!1;function f(b,I){e=b;const{mergeOptions:O,optionsAtMedia:M}=I,A=O(Xn,Ct.globalOptions),k=O(A,t);if(n=M(k),e.scrollSnapList().length<=1)return;y=n.jump,i=!1,s=Qn(e,n.delay);const{eventStore:N,ownerDocument:j}=e.internalEngine(),R=!!e.internalEngine().options.watchDrag,z=Jn(e,n.rootNode);N.add(j,"visibilitychange",u),R&&e.on("pointerDown",E),R&&!n.stopOnInteraction&&e.on("pointerUp",P),n.stopOnMouseEnter&&N.add(z,"mouseenter",C),n.stopOnMouseEnter&&!n.stopOnInteraction&&N.add(z,"mouseleave",L),n.stopOnFocusIn&&e.on("slideFocusStart",h),n.stopOnFocusIn&&!n.stopOnInteraction&&N.add(e.containerNode(),"focusout",g),n.playOnInit&&g()}function p(){e.off("pointerDown",E).off("pointerUp",P).off("slideFocusStart",h),h(),i=!0,l=!1}function v(){const{ownerWindow:b}=e.internalEngine();b.clearTimeout(o),o=b.setTimeout(F,s[e.selectedScrollSnap()]),r=new Date().getTime(),e.emit("autoplay:timerset")}function d(){const{ownerWindow:b}=e.internalEngine();b.clearTimeout(o),o=0,r=null,e.emit("autoplay:timerstopped")}function g(){if(!i){if(S()){a=!0;return}l||e.emit("autoplay:play"),v(),l=!0}}function h(){i||(l&&e.emit("autoplay:stop"),d(),l=!1)}function u(){if(S())return a=l,h();a&&g()}function S(){const{ownerDocument:b}=e.internalEngine();return b.visibilityState==="hidden"}function E(){c||h()}function P(){c||g()}function C(){c=!0,h()}function L(){c=!1,g()}function w(b){typeof b<"u"&&(y=b),g()}function T(){l&&h()}function m(){l&&g()}function D(){return l}function F(){const{index:b}=e.internalEngine(),I=b.clone().add(1).get(),O=e.scrollSnapList().length-1,M=n.stopOnLastSnap&&I===O;if(e.canScrollNext()?e.scrollNext(y):e.scrollTo(0,y),e.emit("autoplay:select"),M)return h();g()}function U(){if(!r)return null;const b=s[e.selectedScrollSnap()],I=new Date().getTime()-r;return b-I}return{name:"autoplay",options:t,init:f,destroy:p,play:w,stop:T,reset:m,isPlaying:D,timeUntilNext:U}}Ct.globalOptions=void 0;const Zn={direction:"forward",speed:2,startDelay:1e3,active:!0,breakpoints:{},playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,rootNode:null};function Wn(t,n){const e=t.rootNode();return n&&n(e)||e}function kt(t={}){let n,e,i,s,r=0,o=!1,l=!1,c;function a(m,D){e=m;const{mergeOptions:F,optionsAtMedia:U}=D,Y=F(Zn,kt.globalOptions),b=F(Y,t);if(n=U(b),e.scrollSnapList().length<=1)return;s=n.startDelay,i=!1,c=e.internalEngine().scrollBody;const{eventStore:I}=e.internalEngine(),O=!!e.internalEngine().options.watchDrag,M=Wn(e,n.rootNode);O&&e.on("pointerDown",d),O&&!n.stopOnInteraction&&e.on("pointerUp",g),n.stopOnMouseEnter&&I.add(M,"mouseenter",h),n.stopOnMouseEnter&&!n.stopOnInteraction&&I.add(M,"mouseleave",u),n.stopOnFocusIn&&e.on("slideFocusStart",p),n.stopOnFocusIn&&!n.stopOnInteraction&&I.add(e.containerNode(),"focusout",f),n.playOnInit&&f()}function y(){e.off("pointerDown",d).off("pointerUp",g).off("slideFocusStart",p).off("settle",S),p(),i=!0,o=!1}function f(){if(i||o)return;e.emit("autoScroll:play");const m=e.internalEngine(),{ownerWindow:D}=m;r=D.setTimeout(()=>{m.scrollBody=v(m),m.animation.start()},s),o=!0}function p(){if(i||!o)return;e.emit("autoScroll:stop");const m=e.internalEngine(),{ownerWindow:D}=m;m.scrollBody=c,D.clearTimeout(r),r=0,o=!1}function v(m){const{location:D,previousLocation:F,offsetLocation:U,target:Y,scrollTarget:b,index:I,indexPrevious:O,limit:{reachedMin:M,reachedMax:A,constrain:k},options:{loop:N}}=m,j=n.direction==="forward"?-1:1,R=()=>tt;let z=0,H=0,nt=D.get(),rt=0,Q=!1;function K(){let J=0;F.set(D),z=j*n.speed,nt+=z,D.add(z),Y.set(D),J=nt-rt,H=Math.sign(J),rt=nt;const $=b.byDistance(0,!1).index;I.get()!==$&&(O.set(I.get()),I.set($),e.emit("select"));const x=n.direction==="forward"?M(U.get()):A(U.get());if(!N&&x){Q=!0;const B=k(D.get());D.set(B),Y.set(D),p()}return tt}const tt={direction:()=>H,duration:()=>-1,velocity:()=>z,settled:()=>Q,seek:K,useBaseFriction:R,useBaseDuration:R,useFriction:R,useDuration:R};return tt}function d(){l||p()}function g(){l||E()}function h(){l=!0,p()}function u(){l=!1,f()}function S(){e.off("settle",S),f()}function E(){e.on("settle",S)}function P(m){typeof m<"u"&&(s=m),f()}function C(){o&&p()}function L(){o&&(p(),E())}function w(){return o}return{name:"autoScroll",options:t,init:a,destroy:y,play:P,stop:C,reset:L,isPlaying:w}}kt.globalOptions=void 0;function Kt(t,n,e){return Math.min(Math.max(t,n),e)}function wt(t){return typeof t=="number"&&!isNaN(t)}function Wt(t={}){let s,r=[],o,l=0,c=0,a=0,y=!1,f,p;function v(b){s=b;const I=s.selectedScrollSnap(),{scrollBody:O,containerRect:M,axis:A}=s.internalEngine(),k=A.measureSize(M);o=Kt(k*.75,200,500),y=!1,r=s.scrollSnapList().map((N,j)=>j===I?1:0),f=O.settled,p=s.scrollProgress,O.settled=F,s.scrollProgress=U,s.on("select",S).on("slideFocus",g).on("pointerDown",u).on("pointerUp",h),P(),g()}function d(){const{scrollBody:b}=s.internalEngine();b.settled=f,s.scrollProgress=p,s.off("select",S).off("slideFocus",g).off("pointerDown",u).off("pointerUp",h),s.slideNodes().forEach(I=>{const O=I.style;O.opacity="",O.transform="",O.pointerEvents="",I.getAttribute("style")||I.removeAttribute("style")})}function g(){const b=s.selectedScrollSnap();L(b,1)}function h(){y=!1}function u(){y=!1,l=0,c=0}function S(){const b=s.internalEngine().scrollBody.duration();c=b?0:1,y=!0,b||g()}function E(b){const{axis:I}=s.internalEngine();return`translate${I.scroll.toUpperCase()}(${I.direction(b)}px)`}function P(){const{translate:b,slideLooper:I}=s.internalEngine();b.clear(),b.toggleActive(!1),I.loopPoints.forEach(({translate:O})=>{O.clear(),O.toggleActive(!1)})}function C(b){const{scrollSnaps:I,location:O,target:M}=s.internalEngine();!wt(b)||r[b]<.5||(O.set(I[b]),M.set(O))}function L(b,I){s.scrollSnapList().forEach((M,A)=>{const k=Math.abs(I),N=r[A],j=A===b,R=j?N+k:N-k,z=Kt(R,0,1);r[A]=z;const H=j&&y,nt=s.previousScrollSnap();H&&(r[nt]=1-z),j&&T(b,z),w(A)})}function w(b){const I=s.internalEngine().slideRegistry[b],{scrollSnaps:O,containerRect:M}=s.internalEngine(),A=r[b];I.forEach(k=>{const N=s.slideNodes()[k].style,j=parseFloat(A.toFixed(2)),R=j>0,z=R?O[b]:M.width+2,H=E(z);R&&(N.transform=H),N.opacity=j.toString(),N.pointerEvents=A>.5?"auto":"none",R||(N.transform=H)})}function T(b,I){const{index:O,dragHandler:M,scrollSnaps:A}=s.internalEngine(),k=M.pointerDown(),N=1/(A.length-1);let j=b,R=k?s.selectedScrollSnap():s.previousScrollSnap();if(k&&j===R){const nt=Math.sign(l)*-1;j=R,R=O.clone().set(R).add(nt).get()}const z=R*N,H=(j-R)*N;a=z+H*I}function m(){const{dragHandler:b,index:I,scrollBody:O}=s.internalEngine(),M=s.selectedScrollSnap();if(!b.pointerDown())return M;const A=Math.sign(O.velocity()),k=Math.sign(l),N=I.clone().set(M).add(A*-1).get();return!A||!k?null:k===A?N:M}function D(b){const{dragHandler:I,scrollBody:O}=b.internalEngine(),M=I.pointerDown(),A=O.velocity(),k=O.duration(),N=m(),j=!wt(N);if(M){if(!A)return;l+=A,c=Math.abs(A/o),C(N)}if(!M){if(!k||j)return;c+=(1-r[N])/k,c*=.68}j||L(N,c)}function F(){const{target:b,location:I}=s.internalEngine(),O=b.get()-I.get(),M=Math.abs(O)>=1,A=m(),k=!wt(A);return D(s),k||M?!1:r[A]>.999}function U(){return a}return{name:"fade",options:t,init:v,destroy:d}}Wt.globalOptions=void 0;function te(t,n,e){return e==="fade"?1:t!==void 0?t:n?null:1}function ne(t,n,e){return n==="fade"&&e===1?0:t}function ee({loop:t,continuous:n,visibleCount:e,childCount:i}){if(!t||n||e==null||e<=1||i<=0)return 1;const s=Math.ceil(e)+1;return i>=s?1:Math.ceil(s/i)}function oe(t,n){const[e,i]=_.useState(void 0);return[_.useCallback(r=>{if(!r||!t||n!=null)return;const o=r.firstElementChild;o&&o.offsetHeight>0?i(o.offsetHeight):requestAnimationFrame(()=>{const l=r.firstElementChild;l&&l.offsetHeight>0&&i(l.offsetHeight)})},[t,n]),n??e]}function ie({visible:t,gap:n=0,height:e,direction:i="left",loop:s=!0,autoAdvance:r=0,continuous:o=!1,speed:l=2,effect:c="slide",dimInactive:a=!1,showControls:y=!0,controlsPosition:f="outside",showDots:p=!1,pauseOnHover:v=!0,align:d="start",slidesToScroll:g=1,drag:h=!0,className:u,cssClass:S,children:E}){const P=i==="up"||i==="down",C=te(t,o,c),L=_.Children.toArray(E).filter(O=>O!=null&&O!==""),[w,T]=oe(P,e),m=!P||T!=null,D=C!=null&&C>0?C:null,F=ne(n,c,D),U=F>0?F/2:0,Y=D!=null?P&&T!=null?`${T/D}px`:`${100/D}%`:void 0;let b=L;if(s&&o)b=[...L,...L.map((O,M)=>It.cloneElement(O,{key:`dup1-${M}`})),...L.map((O,M)=>It.cloneElement(O,{key:`dup2-${M}`}))];else if(s&&D!=null&&D>1&&L.length>0){const O=ee({loop:s,continuous:o,visibleCount:D,childCount:L.length});O>1&&(b=Array.from({length:O},(M,A)=>L.map((k,N)=>It.cloneElement(k,{key:`loopdup-${A}-${N}`}))).flat())}const I=L.length;return m?W.jsx(se,{isVertical:P,effectiveHeight:T,validChildren:b,realSlideCount:I,slideBasis:Y,halfGap:U,loop:s,align:d,slidesToScroll:g,continuous:o,drag:h,effect:c,autoAdvance:r,speed:l,direction:i,pauseOnHover:v,dimInactive:a,showControls:y,controlsPosition:f,showDots:p,className:u,cssClass:S}):W.jsx("div",{ref:w,className:Xt(u,S),style:{overflow:"hidden",height:0,position:"relative"},children:L[0]})}function se({isVertical:t,effectiveHeight:n,validChildren:e,realSlideCount:i,slideBasis:s,halfGap:r,loop:o,align:l,slidesToScroll:c,continuous:a,drag:y,effect:f,autoAdvance:p,speed:v,direction:d,pauseOnHover:g,dimInactive:h,showControls:u,controlsPosition:S,showDots:E,className:P,cssClass:C}){const L={axis:t?"y":"x",loop:o,align:l,slidesToScroll:c,dragFree:a,watchDrag:y},w=[];f==="fade"&&w.push(Wt()),a?w.push(kt({speed:v,direction:d==="right"||d==="down"?"backward":"forward",playOnInit:!0,stopOnMouseEnter:g,stopOnInteraction:!1})):p>0&&w.push(Ct({delay:p,playOnInit:!0,stopOnMouseEnter:g,stopOnInteraction:!1}));const[T,m]=Ft(L,w);_.useEffect(()=>{if(!m)return;const V=window;V.__emblaDebug||(V.__emblaDebug=[]),V.__emblaDebug.push(m),console.log("[Carousel] init axis="+(t?"y":"x")+" snaps="+m.scrollSnapList().length+" canNext="+m.canScrollNext()+" canPrev="+m.canScrollPrev()+" slides="+m.slideNodes().length)},[m]);const[D,F]=_.useState(!1),[U,Y]=_.useState(!1),[b,I]=_.useState(0),[O,M]=_.useState(0),[A,k]=_.useState([]),N=_.useCallback(()=>m==null?void 0:m.scrollPrev(),[m]),j=_.useCallback(()=>m==null?void 0:m.scrollNext(),[m]),R=_.useCallback(V=>m==null?void 0:m.scrollTo(V),[m]),z=_.useCallback(()=>{if(!m)return;F(m.canScrollPrev()),Y(m.canScrollNext());const V=m.selectedScrollSnap();I(i>0?V%i:V)},[m,i]),H=_.useCallback(V=>{const G=V.scrollProgress(),ct=V.scrollSnapList().map(ut=>{const ft=Math.abs(G-ut);return Math.max(.3,1-ft*2)});k(ct)},[]);_.useEffect(()=>{if(m)return M(i),z(),m.on("select",z),m.on("reInit",z),h&&(H(m),m.on("scroll",H),m.on("reInit",H)),()=>{m.off("select",z),m.off("reInit",z),h&&(m.off("scroll",H),m.off("reInit",H))}},[m,z,h,H,i]);const nt=t?fn:dn,rt=t?pn:gn,Q=u&&!a,K=S==="outside",tt=E&&O>1,J=tt&&t,$=tt&&!t,x=32,B=x+8,Z={position:"relative",...Q&&K?t?{paddingTop:B,paddingBottom:B}:{paddingLeft:B,paddingRight:B}:{},...J?{paddingRight:20}:{}},et=K?t?{top:0,left:"50%",transform:"translateX(-50%)"}:{left:0,top:"50%",transform:"translateY(-50%)"}:t?{top:8,right:8}:{left:8,top:"50%",transform:"translateY(-50%)"},ot=K?t?{bottom:0,left:"50%",transform:"translateX(-50%)"}:{right:0,top:"50%",transform:"translateY(-50%)"}:t?{bottom:8,right:8}:{right:8,top:"50%",transform:"translateY(-50%)"};return W.jsxs("div",{className:Xt(P,C),style:{position:"relative"},children:[W.jsxs("div",{style:Z,children:[W.jsx("div",{ref:T,style:{overflow:"hidden",...t&&n!=null?{height:n}:{}},children:W.jsx("div",{style:{display:"flex",flexDirection:t?"column":"row",...t&&n!=null?{height:n}:{},touchAction:t?"pan-x pinch-zoom":"pan-y pinch-zoom",...r>0?t?{marginTop:-r,marginBottom:-r}:{marginLeft:-r,marginRight:-r}:{},...f==="fade"?{position:"relative"}:{}},children:e.map((V,G)=>W.jsx("div",{role:"group","aria-roledescription":"slide",style:{flexShrink:0,flexGrow:0,...t?{minHeight:0}:{minWidth:0},...s!=null?{flexBasis:s}:{},...r>0?t?{paddingTop:r,paddingBottom:r}:{paddingLeft:r,paddingRight:r}:{},...h&&A[G]!=null?{opacity:A[G],transition:"opacity 300ms ease"}:{}},children:V},G))})}),Q&&W.jsxs(W.Fragment,{children:[W.jsx("button",{onClick:N,disabled:!o&&!D,style:{position:"absolute",zIndex:10,display:"flex",alignItems:"center",justifyContent:"center",width:x,height:x,borderRadius:"50%",border:"1px solid var(--border, #e5e7eb)",background:"var(--background, #fff)",boxShadow:"0 1px 3px rgba(0,0,0,.1)",cursor:"pointer",opacity:!o&&!D?0:1,transition:"opacity 150ms",...et},children:W.jsx(nt,{style:{width:16,height:16}})}),W.jsx("button",{onClick:j,disabled:!o&&!U,style:{position:"absolute",zIndex:10,display:"flex",alignItems:"center",justifyContent:"center",width:x,height:x,borderRadius:"50%",border:"1px solid var(--border, #e5e7eb)",background:"var(--background, #fff)",boxShadow:"0 1px 3px rgba(0,0,0,.1)",cursor:"pointer",opacity:!o&&!U?0:1,transition:"opacity 150ms",...ot},children:W.jsx(rt,{style:{width:16,height:16}})})]}),J&&W.jsx("div",{style:{position:"absolute",top:"50%",right:0,transform:"translateY(-50%)",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:6},children:Array.from({length:O},(V,G)=>W.jsx("button",{onClick:()=>R(G),style:{width:8,height:8,borderRadius:"50%",border:"none",cursor:"pointer",transition:"opacity 150ms",background:"var(--foreground, #000)",opacity:G===b?1:.2}},G))})]}),$&&W.jsx("div",{style:{display:"flex",justifyContent:"center",gap:6,marginTop:12},children:Array.from({length:O},(V,G)=>W.jsx("button",{onClick:()=>R(G),style:{width:8,height:8,borderRadius:"50%",border:"none",cursor:"pointer",transition:"opacity 150ms",background:"var(--foreground, #000)",opacity:G===b?1:.2}},G))})]})}export{ie as PrefabCarousel};
@@ -0,0 +1 @@
1
+ import{a1 as o,a2 as n}from"./mermaid.core-D6aFEa0I.js";const t=(a,r)=>o.lang.round(n.parse(a)[r]);export{t as c};