@marimo-team/frontend 0.14.17-dev50 → 0.14.17-dev52
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.
- package/dist/assets/{ConnectedDataExplorerComponent-Ce0TC-tZ.js → ConnectedDataExplorerComponent-DKw6KrX_.js} +1 -1
- package/dist/assets/{ImageComparisonComponent-DwSOwXhh.js → ImageComparisonComponent-DAPG8gPk.js} +1 -1
- package/dist/assets/{VegaLite-DvsYftTu.js → VegaLite-kpaj3jnh.js} +1 -1
- package/dist/assets/_baseEach-DgKJ_yh2.js +1 -0
- package/dist/assets/_baseMap-_qjAB773.js +1 -0
- package/dist/assets/_baseUniq-DsEmgZj4.js +1 -0
- package/dist/assets/{_createAggregator-CSBoqMlf.js → _createAggregator-0VsbCMQy.js} +1 -1
- package/dist/assets/{any-language-editor-BQlzQXKx.js → any-language-editor-XYuree7L.js} +1 -1
- package/dist/assets/{architectureDiagram-SUXI7LT5-B9Wxsw8t.js → architectureDiagram-SUXI7LT5-Bh9Z8-nA.js} +1 -1
- package/dist/assets/{blockDiagram-6J76NXCF-yXpuPCJ9.js → blockDiagram-6J76NXCF-yF4TXxi-.js} +1 -1
- package/dist/assets/{c4Diagram-6F6E4RAY-B0u0AKt2.js → c4Diagram-6F6E4RAY-BwpAvqdA.js} +1 -1
- package/dist/assets/channel-Cw6AEncD.js +1 -0
- package/dist/assets/{chunk-353BL4L5-Bx2Tp8dL.js → chunk-353BL4L5-DMTfIREf.js} +1 -1
- package/dist/assets/{chunk-67H74DCK-DT5zwdot.js → chunk-67H74DCK-BRE_KCf1.js} +1 -1
- package/dist/assets/{chunk-AACKK3MU-CS4IlaFm.js → chunk-AACKK3MU-CVrqgt5L.js} +1 -1
- package/dist/assets/{chunk-BFAMUDN2-C6afvyCK.js → chunk-BFAMUDN2-CXdFTjp4.js} +1 -1
- package/dist/assets/{chunk-E2GYISFI-xz1MYNbG.js → chunk-E2GYISFI-Bs9UZyZq.js} +1 -1
- package/dist/assets/{chunk-OW32GOEJ-C-bwAx0F.js → chunk-OW32GOEJ-C0bSrD3h.js} +1 -1
- package/dist/assets/{chunk-SKB7J2MH-IkNjP7aw.js → chunk-SKB7J2MH-BDH2f5qw.js} +1 -1
- package/dist/assets/{chunk-SZ463SBG-DeR9mZtM.js → chunk-SZ463SBG-Cd1qqD6j.js} +1 -1
- package/dist/assets/{circle-play-OPSOZUSJ.js → circle-play-ClFywCWK.js} +1 -1
- package/dist/assets/classDiagram-M3E45YP4-BZuQEW-x.js +1 -0
- package/dist/assets/classDiagram-v2-YAWTLIQI-BZuQEW-x.js +1 -0
- package/dist/assets/clone-D0U_4Foz.js +1 -0
- package/dist/assets/{compile-DPgtA4Er.js → compile-J4o3SSt8.js} +5 -5
- package/dist/assets/{dagre-JOIXM2OF-CzDN_bfy.js → dagre-JOIXM2OF-Cgr-ekQp.js} +1 -1
- package/dist/assets/{data-grid-overlay-editor-BEStKz7e.js → data-grid-overlay-editor-BFMjRfym.js} +1 -1
- package/dist/assets/{diagram-5UYTHUR4-TyPhhbg4.js → diagram-5UYTHUR4-C9sEDAJt.js} +1 -1
- package/dist/assets/{diagram-VMROVX33-B_yxodJs.js → diagram-VMROVX33-CGOvHRlz.js} +1 -1
- package/dist/assets/{diagram-ZTM2IBQH-CXiAslA1.js → diagram-ZTM2IBQH-Bz4gykiz.js} +1 -1
- package/dist/assets/edit-page-D5gsQ3AR.js +148 -0
- package/dist/assets/{erDiagram-3M52JZNH-BNCrTAQ9.js → erDiagram-3M52JZNH-BhaX3GHb.js} +1 -1
- package/dist/assets/{flowDiagram-KYDEHFYC-Ba_c9EPm.js → flowDiagram-KYDEHFYC-DPoEQUTq.js} +1 -1
- package/dist/assets/{ganttDiagram-EK5VF46D-DnIuKw2R.js → ganttDiagram-EK5VF46D-CLgJbKxE.js} +4 -4
- package/dist/assets/{gitGraphDiagram-GW3U2K7C-1QmaE2WA.js → gitGraphDiagram-GW3U2K7C-DY_b362V.js} +1 -1
- package/dist/assets/{glide-data-editor-d6grwpew.js → glide-data-editor-DOqNa5NG.js} +11 -11
- package/dist/assets/{graph-0uy08CRw.js → graph-BqHJo60z.js} +1 -1
- package/dist/assets/home-page-DePHQhvN.js +9 -0
- package/dist/assets/{index-ukteXaqC.js → index-B68QxZ4j.js} +1 -1
- package/dist/assets/{index-C2R0lChn.js → index-BEyze6er.js} +1 -1
- package/dist/assets/{index-CG-OzDYE.js → index-BIqVhCGI.js} +1 -1
- package/dist/assets/{index-CJtYacYk.js → index-BIv4gd5k.js} +1 -1
- package/dist/assets/{index-DMmdMuSp.js → index-BvsboPlP.js} +1 -1
- package/dist/assets/{index-DTGFFGrU.js → index-C6tN7Sd5.js} +1 -1
- package/dist/assets/{index-BRsKX55I.js → index-CSPyN4cW.js} +336 -336
- package/dist/assets/{index-8gVzrL6y.js → index-CX90WBn3.js} +1 -1
- package/dist/assets/{index-BspvY5k3.js → index-CXXB4K2m.js} +1 -1
- package/dist/assets/{index-D6I0WKad.js → index-CcmN_7Ri.js} +1 -1
- package/dist/assets/{index-DdZuv69w.js → index-ChwnRmyU.js} +1 -1
- package/dist/assets/{index-HJI8bjV4.js → index-CmbEuD_J.js} +1 -1
- package/dist/assets/{index-DTou-2SI.js → index-CpDzU4a4.js} +1 -1
- package/dist/assets/{index-Cp8m6mju.js → index-CwT8oLaJ.js} +1 -1
- package/dist/assets/{index-B7vzVfNW.js → index-D0hmgAd4.js} +1 -1
- package/dist/assets/{index-CD-N3MY0.js → index-D3oH_ISv.js} +1 -1
- package/dist/assets/index-DmaoBTfT.css +1 -0
- package/dist/assets/{index-C4qMdaWk.js → index-DoJNd5TO.js} +1 -1
- package/dist/assets/{index-CH-KhRgU.js → index-OpfXYM03.js} +1 -1
- package/dist/assets/{index-DU5V1UXh.js → index-bQahjypS.js} +1 -1
- package/dist/assets/infoDiagram-LHK5PUON-D4kH3IO6.js +2 -0
- package/dist/assets/{journeyDiagram-EWQZEKCU-JatEjWMR.js → journeyDiagram-EWQZEKCU-BHYscvV9.js} +1 -1
- package/dist/assets/{kanban-definition-ZSS6B67P-CWf3jJz4.js → kanban-definition-ZSS6B67P-DwjByFqu.js} +1 -1
- package/dist/assets/{layout-DSIdkdp6.js → layout-BBBTcalD.js} +1 -1
- package/dist/assets/{linear-5RI6BcLf.js → linear-CRzT0Y7Z.js} +1 -1
- package/dist/assets/links-BNeucPnM.js +17 -0
- package/dist/assets/{mermaid-BFX9YpwT.js → mermaid-CBWSg5mK.js} +4 -4
- package/dist/assets/{min-BEQ0qmNL.js → min-D0cY_cmP.js} +1 -1
- package/dist/assets/{mindmap-definition-6CBA2TL7-BwwGh_xX.js → mindmap-definition-6CBA2TL7-Bp8ZUhrl.js} +1 -1
- package/dist/assets/{number-overlay-editor-CzV-HwJ1.js → number-overlay-editor-Dns19i7x.js} +2 -2
- package/dist/assets/{pieDiagram-NIOCPIFQ-CvOXeZeg.js → pieDiagram-NIOCPIFQ-BSdUjCxL.js} +1 -1
- package/dist/assets/{quadrantDiagram-2OG54O6I-DWctHQ5M.js → quadrantDiagram-2OG54O6I-BN7rcYOZ.js} +1 -1
- package/dist/assets/{react-plotly-7rSO6_pO.js → react-plotly-Cwm_Zws7.js} +1 -1
- package/dist/assets/{requirementDiagram-QOLK2EJ7-E5ILV_jW.js → requirementDiagram-QOLK2EJ7-Z0LaSHDM.js} +1 -1
- package/dist/assets/run-page-e5zqdLNb.js +1 -0
- package/dist/assets/{sankeyDiagram-4UZDY2LN-BbQXWZt4.js → sankeyDiagram-4UZDY2LN-URGiryWU.js} +1 -1
- package/dist/assets/{sequenceDiagram-SKLFT4DO-DN-Qt_J3.js → sequenceDiagram-SKLFT4DO-Do-YLmj0.js} +1 -1
- package/dist/assets/{slides-component-DhafDKo1.js → slides-component-DaklX30G.js} +1 -1
- package/dist/assets/{sortBy-ByqiSfmy.js → sortBy-CyFp7E_N.js} +1 -1
- package/dist/assets/{stateDiagram-MI5ZYTHO-C3voiVpG.js → stateDiagram-MI5ZYTHO-BxhxWedO.js} +1 -1
- package/dist/assets/stateDiagram-v2-5AN5P6BG-D1pJlR6r.js +1 -0
- package/dist/assets/{storage-BwdfKb3e.js → storage-Dr_iHaXY.js} +6 -6
- package/dist/assets/{terminal-DnEiY_Di.js → terminal-C_Y6lZQe.js} +1 -1
- package/dist/assets/time-BOg6M-VK.js +1 -0
- package/dist/assets/{timeline-definition-MYPXXCX6-D2ZXeK1N.js → timeline-definition-MYPXXCX6-GoOe2GO2.js} +1 -1
- package/dist/assets/timer-BwIYMJWC.js +1 -0
- package/dist/assets/tracing-CSH0Hox7.js +2 -0
- package/dist/assets/{transform-CDNfLgV5.js → transform-B8bpuzxV.js} +1 -1
- package/dist/assets/{trash-Crss8VH4.js → trash-Dpszkgwx.js} +1 -1
- package/dist/assets/{treemap-75Q7IDZK-Cn9k8at_.js → treemap-75Q7IDZK-Dr0M6FZV.js} +1 -1
- package/dist/assets/{vega-component-wMB3EDRs.js → vega-component-DeXvh_Gw.js} +1 -1
- package/dist/assets/{xychartDiagram-H2YORKM3-qkBu9yox.js → xychartDiagram-H2YORKM3-6T7dRn7U.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/_baseEach-Bt_hy8p5.js +0 -1
- package/dist/assets/_baseMap-wg3_pLeD.js +0 -1
- package/dist/assets/_baseUniq-LUPmCTek.js +0 -1
- package/dist/assets/channel-B5GewZ-i.js +0 -1
- package/dist/assets/classDiagram-M3E45YP4-UOaLNaLd.js +0 -1
- package/dist/assets/classDiagram-v2-YAWTLIQI-UOaLNaLd.js +0 -1
- package/dist/assets/clone-BNsKcv3n.js +0 -1
- package/dist/assets/edit-page-Dem5AQ2A.js +0 -148
- package/dist/assets/home-page-BtKVarMy.js +0 -9
- package/dist/assets/index-BdR5uFJr.css +0 -1
- package/dist/assets/infoDiagram-LHK5PUON-CMztT734.js +0 -2
- package/dist/assets/links-DhS7HdtO.js +0 -17
- package/dist/assets/run-page-CiJgXbRq.js +0 -1
- package/dist/assets/stateDiagram-v2-5AN5P6BG-Ct72fLIl.js +0 -1
- package/dist/assets/time-DKizHULL.js +0 -1
- package/dist/assets/timer-Bqd5yn_a.js +0 -1
- package/dist/assets/tracing-Bvs8Nv6U.js +0 -2
- package/dist/assets/worker-Bma4sWEs.js +0 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import{b as ve,
|
1
|
+
import{b as ve,U as ae,ck as De,j as pe,cl as Re,L as xe}from"./index-CSPyN4cW.js";var ge,me={exports:{}},fe,Se,Ae=ge?me.exports:(ge=1,me.exports=(fe={},(()=>{var J=fe;function Y(z,q,B){return z.addEventListener(q,B),{dispose:()=>{B&&z.removeEventListener(q,B)}}}Object.defineProperty(J,"__esModule",{value:!0}),J.AttachAddon=void 0,J.AttachAddon=class{constructor(z,q){this._disposables=[],this._socket=z,this._socket.binaryType="arraybuffer",this._bidirectional=!(q&&q.bidirectional===!1)}activate(z){this._disposables.push(Y(this._socket,"message",q=>{const B=q.data;z.write(typeof B=="string"?B:new Uint8Array(B))})),this._bidirectional&&(this._disposables.push(z.onData(q=>this._sendData(q))),this._disposables.push(z.onBinary(q=>this._sendBinary(q)))),this._disposables.push(Y(this._socket,"close",()=>this.dispose())),this._disposables.push(Y(this._socket,"error",()=>this.dispose()))}dispose(){for(const z of this._disposables)z.dispose()}_sendData(z){this._checkOpenSocket()&&this._socket.send(z)}_sendBinary(z){if(!this._checkOpenSocket())return;const q=new Uint8Array(z.length);for(let B=0;B<z.length;++B)q[B]=255&z.charCodeAt(B);this._socket.send(q)}_checkOpenSocket(){switch(this._socket.readyState){case WebSocket.OPEN:return!0;case WebSocket.CONNECTING:throw new Error("Attach addon was loaded before socket was open");case WebSocket.CLOSING:return console.warn("Attach addon socket is closing"),!1;case WebSocket.CLOSED:throw new Error("Attach addon socket is closed");default:throw new Error("Unexpected socket state")}}}})(),fe)),Ce={exports:{}},be,we,Be=Se?Ce.exports:(Se=1,be=()=>(()=>{var J,Y={};return J=Y,Object.defineProperty(J,"__esModule",{value:!0}),J.FitAddon=void 0,J.FitAddon=class{activate(z){this._terminal=z}dispose(){}fit(){const z=this.proposeDimensions();if(!z||!this._terminal||isNaN(z.cols)||isNaN(z.rows))return;const q=this._terminal._core;this._terminal.rows===z.rows&&this._terminal.cols===z.cols||(q._renderService.clear(),this._terminal.resize(z.cols,z.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;const z=this._terminal._core,q=z._renderService.dimensions;if(q.css.cell.width===0||q.css.cell.height===0)return;const B=this._terminal.options.scrollback===0?0:z.viewport.scrollBarWidth,r=window.getComputedStyle(this._terminal.element.parentElement),o=parseInt(r.getPropertyValue("height")),l=Math.max(0,parseInt(r.getPropertyValue("width"))),_=window.getComputedStyle(this._terminal.element),n=o-(parseInt(_.getPropertyValue("padding-top"))+parseInt(_.getPropertyValue("padding-bottom"))),d=l-(parseInt(_.getPropertyValue("padding-right"))+parseInt(_.getPropertyValue("padding-left")))-B;return{cols:Math.max(2,Math.floor(d/q.css.cell.width)),rows:Math.max(1,Math.floor(n/q.css.cell.height))}}},Y})(),Ce.exports=be()),ye={exports:{}},Ee,Te=(we||(we=1,Ee=ye,function(J,Y){Ee.exports=Y()}(globalThis,()=>(()=>{var J={4567:function(B,r,o){var l=this&&this.__decorate||function(e,t,a,f){var u,p=arguments.length,c=p<3?t:f===null?f=Object.getOwnPropertyDescriptor(t,a):f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,t,a,f);else for(var m=e.length-1;m>=0;m--)(u=e[m])&&(c=(p<3?u(c):p>3?u(t,a,c):u(t,a))||c);return p>3&&c&&Object.defineProperty(t,a,c),c},_=this&&this.__param||function(e,t){return function(a,f){t(a,f,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;const n=o(9042),d=o(9924),v=o(844),g=o(4725),h=o(2585),i=o(3656);let s=r.AccessibilityManager=class extends v.Disposable{constructor(e,t,a,f){super(),this._terminal=e,this._coreBrowserService=a,this._renderService=f,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let u=0;u<this._terminal.rows;u++)this._rowElements[u]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[u]);if(this._topBoundaryFocusListener=u=>this._handleBoundaryFocus(u,0),this._bottomBoundaryFocusListener=u=>this._handleBoundaryFocus(u,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new d.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(u=>this._handleResize(u.rows))),this.register(this._terminal.onRender(u=>this._refreshRows(u.start,u.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(u=>this._handleChar(u))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
|
2
2
|
`))),this.register(this._terminal.onA11yTab(u=>this._handleTab(u))),this.register(this._terminal.onKey(u=>this._handleKey(u.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this.register((0,i.addDisposableDomListener)(document,"selectionchange",()=>this._handleSelectionChange())),this.register(this._coreBrowserService.onDprChange(()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,v.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(e){for(let t=0;t<e;t++)this._handleChar(" ")}_handleChar(e){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,e===`
|
3
3
|
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=n.tooMuchOutput)))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(e){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(e)||this._charsToConsume.push(e)}_refreshRows(e,t){this._liveRegionDebouncer.refresh(e,t,this._terminal.rows)}_renderRows(e,t){const a=this._terminal.buffer,f=a.lines.length.toString();for(let u=e;u<=t;u++){const p=a.lines.get(a.ydisp+u),c=[],m=(p==null?void 0:p.translateToString(!0,void 0,void 0,c))||"",y=(a.ydisp+u+1).toString(),k=this._rowElements[u];k&&(m.length===0?(k.innerText="\xA0",this._rowColumns.set(k,[0,1])):(k.textContent=m,this._rowColumns.set(k,c)),k.setAttribute("aria-posinset",y),k.setAttribute("aria-setsize",f))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(e,t){const a=e.target,f=this._rowElements[t===0?1:this._rowElements.length-2];if(a.getAttribute("aria-posinset")===(t===0?"1":`${this._terminal.buffer.lines.length}`)||e.relatedTarget!==f)return;let u,p;if(t===0?(u=a,p=this._rowElements.pop(),this._rowContainer.removeChild(p)):(u=this._rowElements.shift(),p=a,this._rowContainer.removeChild(u)),u.removeEventListener("focus",this._topBoundaryFocusListener),p.removeEventListener("focus",this._bottomBoundaryFocusListener),t===0){const c=this._createAccessibilityTreeNode();this._rowElements.unshift(c),this._rowContainer.insertAdjacentElement("afterbegin",c)}else{const c=this._createAccessibilityTreeNode();this._rowElements.push(c),this._rowContainer.appendChild(c)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(t===0?-1:1),this._rowElements[t===0?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}_handleSelectionChange(){var m;if(this._rowElements.length===0)return;const e=document.getSelection();if(!e)return;if(e.isCollapsed)return void(this._rowContainer.contains(e.anchorNode)&&this._terminal.clearSelection());if(!e.anchorNode||!e.focusNode)return void console.error("anchorNode and/or focusNode are null");let t={node:e.anchorNode,offset:e.anchorOffset},a={node:e.focusNode,offset:e.focusOffset};if((t.node.compareDocumentPosition(a.node)&Node.DOCUMENT_POSITION_PRECEDING||t.node===a.node&&t.offset>a.offset)&&([t,a]=[a,t]),t.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(t={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(t.node))return;const f=this._rowElements.slice(-1)[0];if(a.node.compareDocumentPosition(f)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(a={node:f,offset:((m=f.textContent)==null?void 0:m.length)??0}),!this._rowContainer.contains(a.node))return;const u=({node:y,offset:k})=>{const L=y instanceof Text?y.parentNode:y;let w=parseInt(L==null?void 0:L.getAttribute("aria-posinset"),10)-1;if(isNaN(w))return console.warn("row is invalid. Race condition?"),null;const x=this._rowColumns.get(L);if(!x)return console.warn("columns is null. Race condition?"),null;let T=k<x.length?x[k]:x.slice(-1)[0]+1;return T>=this._terminal.cols&&(++w,T=0),{row:w,column:T}},p=u(t),c=u(a);if(p&&c){if(p.row>c.row||p.row===c.row&&p.column>=c.column)throw new Error("invalid range");this._terminal.select(p.column,p.row,(c.row-p.row)*this._terminal.cols-p.column+c.column)}}_handleResize(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let t=this._rowContainer.children.length;t<this._terminal.rows;t++)this._rowElements[t]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[t]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const e=this._coreBrowserService.mainDocument.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e])}}_refreshRowDimensions(e){e.style.height=`${this._renderService.dimensions.css.cell.height}px`}};r.AccessibilityManager=s=l([_(1,h.IInstantiationService),_(2,g.ICoreBrowserService),_(3,g.IRenderService)],s)},3614:(B,r)=>{function o(d){return d.replace(/\r?\n/g,"\r")}function l(d,v){return v?"\x1B[200~"+d+"\x1B[201~":d}function _(d,v,g,h){d=l(d=o(d),g.decPrivateModes.bracketedPasteMode&&h.rawOptions.ignoreBracketedPasteMode!==!0),g.triggerDataEvent(d,!0),v.value=""}function n(d,v,g){const h=g.getBoundingClientRect(),i=d.clientX-h.left-10,s=d.clientY-h.top-10;v.style.width="20px",v.style.height="20px",v.style.left=`${i}px`,v.style.top=`${s}px`,v.style.zIndex="1000",v.focus()}Object.defineProperty(r,"__esModule",{value:!0}),r.rightClickHandler=r.moveTextAreaUnderMouseCursor=r.paste=r.handlePasteEvent=r.copyHandler=r.bracketTextForPaste=r.prepareTextForTerminal=void 0,r.prepareTextForTerminal=o,r.bracketTextForPaste=l,r.copyHandler=function(d,v){d.clipboardData&&d.clipboardData.setData("text/plain",v.selectionText),d.preventDefault()},r.handlePasteEvent=function(d,v,g,h){d.stopPropagation(),d.clipboardData&&_(d.clipboardData.getData("text/plain"),v,g,h)},r.paste=_,r.moveTextAreaUnderMouseCursor=n,r.rightClickHandler=function(d,v,g,h,i){n(d,v,g),i&&h.rightClickSelect(d),v.value=h.selectionText,v.select()}},7239:(B,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ColorContrastCache=void 0;const l=o(1505);r.ColorContrastCache=class{constructor(){this._color=new l.TwoKeyMap,this._css=new l.TwoKeyMap}setCss(_,n,d){this._css.set(_,n,d)}getCss(_,n){return this._css.get(_,n)}setColor(_,n,d){this._color.set(_,n,d)}getColor(_,n){return this._color.get(_,n)}clear(){this._color.clear(),this._css.clear()}}},3656:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.addDisposableDomListener=void 0,r.addDisposableDomListener=function(o,l,_,n){o.addEventListener(l,_,n);let d=!1;return{dispose:()=>{d||(d=!0,o.removeEventListener(l,_,n))}}}},3551:function(B,r,o){var l=this&&this.__decorate||function(s,e,t,a){var f,u=arguments.length,p=u<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(s,e,t,a);else for(var c=s.length-1;c>=0;c--)(f=s[c])&&(p=(u<3?f(p):u>3?f(e,t,p):f(e,t))||p);return u>3&&p&&Object.defineProperty(e,t,p),p},_=this&&this.__param||function(s,e){return function(t,a){e(t,a,s)}};Object.defineProperty(r,"__esModule",{value:!0}),r.Linkifier=void 0;const n=o(3656),d=o(8460),v=o(844),g=o(2585),h=o(4725);let i=r.Linkifier=class extends v.Disposable{get currentLink(){return this._currentLink}constructor(s,e,t,a,f){super(),this._element=s,this._mouseService=e,this._renderService=t,this._bufferService=a,this._linkProviderService=f,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new d.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new d.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,v.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,v.toDisposable)(()=>{var u;this._lastMouseEvent=void 0,(u=this._activeProviderReplies)==null||u.clear()})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0})),this.register((0,n.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,n.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(s){this._lastMouseEvent=s;const e=this._positionFromMouseEvent(s,this._element,this._mouseService);if(!e)return;this._isMouseOut=!1;const t=s.composedPath();for(let a=0;a<t.length;a++){const f=t[a];if(f.classList.contains("xterm"))break;if(f.classList.contains("xterm-hover"))return}this._lastBufferCell&&e.x===this._lastBufferCell.x&&e.y===this._lastBufferCell.y||(this._handleHover(e),this._lastBufferCell=e)}_handleHover(s){if(this._activeLine!==s.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(s,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,s)||(this._clearCurrentLink(),this._askForLink(s,!0))}_askForLink(s,e){var a,f;this._activeProviderReplies&&e||((a=this._activeProviderReplies)==null||a.forEach(u=>{u==null||u.forEach(p=>{p.link.dispose&&p.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=s.y);let t=!1;for(const[u,p]of this._linkProviderService.linkProviders.entries())e?(f=this._activeProviderReplies)!=null&&f.get(u)&&(t=this._checkLinkProviderResult(u,s,t)):p.provideLinks(s.y,c=>{var y,k;if(this._isMouseOut)return;const m=c==null?void 0:c.map(L=>({link:L}));(y=this._activeProviderReplies)==null||y.set(u,m),t=this._checkLinkProviderResult(u,s,t),((k=this._activeProviderReplies)==null?void 0:k.size)===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(s.y,this._activeProviderReplies)})}_removeIntersectingLinks(s,e){const t=new Set;for(let a=0;a<e.size;a++){const f=e.get(a);if(f)for(let u=0;u<f.length;u++){const p=f[u],c=p.link.range.start.y<s?0:p.link.range.start.x,m=p.link.range.end.y>s?this._bufferService.cols:p.link.range.end.x;for(let y=c;y<=m;y++){if(t.has(y)){f.splice(u--,1);break}t.add(y)}}}}_checkLinkProviderResult(s,e,t){var u;if(!this._activeProviderReplies)return t;const a=this._activeProviderReplies.get(s);let f=!1;for(let p=0;p<s;p++)this._activeProviderReplies.has(p)&&!this._activeProviderReplies.get(p)||(f=!0);if(!f&&a){const p=a.find(c=>this._linkAtPosition(c.link,e));p&&(t=!0,this._handleNewLink(p))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!t)for(let p=0;p<this._activeProviderReplies.size;p++){const c=(u=this._activeProviderReplies.get(p))==null?void 0:u.find(m=>this._linkAtPosition(m.link,e));if(c){t=!0,this._handleNewLink(c);break}}return t}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(s){if(!this._currentLink)return;const e=this._positionFromMouseEvent(s,this._element,this._mouseService);e&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,e)&&this._currentLink.link.activate(s,this._currentLink.link.text)}_clearCurrentLink(s,e){this._currentLink&&this._lastMouseEvent&&(!s||!e||this._currentLink.link.range.start.y>=s&&this._currentLink.link.range.end.y<=e)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,v.disposeArray)(this._linkCacheDisposables))}_handleNewLink(s){if(!this._lastMouseEvent)return;const e=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);e&&this._linkAtPosition(s.link,e)&&(this._currentLink=s,this._currentLink.state={decorations:{underline:s.link.decorations===void 0||s.link.decorations.underline,pointerCursor:s.link.decorations===void 0||s.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,s.link,this._lastMouseEvent),s.link.decorations={},Object.defineProperties(s.link.decorations,{pointerCursor:{get:()=>{var t,a;return(a=(t=this._currentLink)==null?void 0:t.state)==null?void 0:a.decorations.pointerCursor},set:t=>{var a;(a=this._currentLink)!=null&&a.state&&this._currentLink.state.decorations.pointerCursor!==t&&(this._currentLink.state.decorations.pointerCursor=t,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",t))}},underline:{get:()=>{var t,a;return(a=(t=this._currentLink)==null?void 0:t.state)==null?void 0:a.decorations.underline},set:t=>{var a,f,u;(a=this._currentLink)!=null&&a.state&&((u=(f=this._currentLink)==null?void 0:f.state)==null?void 0:u.decorations.underline)!==t&&(this._currentLink.state.decorations.underline=t,this._currentLink.state.isHovered&&this._fireUnderlineEvent(s.link,t))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(t=>{if(!this._currentLink)return;const a=t.start===0?0:t.start+1+this._bufferService.buffer.ydisp,f=this._bufferService.buffer.ydisp+1+t.end;if(this._currentLink.link.range.start.y>=a&&this._currentLink.link.range.end.y<=f&&(this._clearCurrentLink(a,f),this._lastMouseEvent)){const u=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);u&&this._askForLink(u,!1)}})))}_linkHover(s,e,t){var a;(a=this._currentLink)!=null&&a.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(e,!0),this._currentLink.state.decorations.pointerCursor&&s.classList.add("xterm-cursor-pointer")),e.hover&&e.hover(t,e.text)}_fireUnderlineEvent(s,e){const t=s.range,a=this._bufferService.buffer.ydisp,f=this._createLinkUnderlineEvent(t.start.x-1,t.start.y-a-1,t.end.x,t.end.y-a-1,void 0);(e?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(f)}_linkLeave(s,e,t){var a;(a=this._currentLink)!=null&&a.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(e,!1),this._currentLink.state.decorations.pointerCursor&&s.classList.remove("xterm-cursor-pointer")),e.leave&&e.leave(t,e.text)}_linkAtPosition(s,e){const t=s.range.start.y*this._bufferService.cols+s.range.start.x,a=s.range.end.y*this._bufferService.cols+s.range.end.x,f=e.y*this._bufferService.cols+e.x;return t<=f&&f<=a}_positionFromMouseEvent(s,e,t){const a=t.getCoords(s,e,this._bufferService.cols,this._bufferService.rows);if(a)return{x:a[0],y:a[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(s,e,t,a,f){return{x1:s,y1:e,x2:t,y2:a,cols:this._bufferService.cols,fg:f}}};r.Linkifier=i=l([_(1,h.IMouseService),_(2,h.IRenderService),_(3,g.IBufferService),_(4,h.ILinkProviderService)],i)},9042:(B,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.tooMuchOutput=r.promptLabel=void 0,r.promptLabel="Terminal input",r.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(B,r,o){var l=this&&this.__decorate||function(h,i,s,e){var t,a=arguments.length,f=a<3?i:e===null?e=Object.getOwnPropertyDescriptor(i,s):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(h,i,s,e);else for(var u=h.length-1;u>=0;u--)(t=h[u])&&(f=(a<3?t(f):a>3?t(i,s,f):t(i,s))||f);return a>3&&f&&Object.defineProperty(i,s,f),f},_=this&&this.__param||function(h,i){return function(s,e){i(s,e,h)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OscLinkProvider=void 0;const n=o(511),d=o(2585);let v=r.OscLinkProvider=class{constructor(h,i,s){this._bufferService=h,this._optionsService=i,this._oscLinkService=s}provideLinks(h,i){var m;const s=this._bufferService.buffer.lines.get(h-1);if(!s)return void i(void 0);const e=[],t=this._optionsService.rawOptions.linkHandler,a=new n.CellData,f=s.getTrimmedLength();let u=-1,p=-1,c=!1;for(let y=0;y<f;y++)if(p!==-1||s.hasContent(y)){if(s.loadCell(y,a),a.hasExtendedAttrs()&&a.extended.urlId){if(p===-1){p=y,u=a.extended.urlId;continue}c=a.extended.urlId!==u}else p!==-1&&(c=!0);if(c||p!==-1&&y===f-1){const k=(m=this._oscLinkService.getLinkData(u))==null?void 0:m.uri;if(k){const L={start:{x:p+1,y:h},end:{x:y+(c||y!==f-1?0:1),y:h}};let w=!1;if(!(t!=null&&t.allowNonHttpProtocols))try{const x=new URL(k);["http:","https:"].includes(x.protocol)||(w=!0)}catch{w=!0}w||e.push({text:k,range:L,activate:(x,T)=>t?t.activate(x,T,L):g(0,T),hover:(x,T)=>{var P;return(P=t==null?void 0:t.hover)==null?void 0:P.call(t,x,T,L)},leave:(x,T)=>{var P;return(P=t==null?void 0:t.leave)==null?void 0:P.call(t,x,T,L)}})}c=!1,a.hasExtendedAttrs()&&a.extended.urlId?(p=y,u=a.extended.urlId):(p=-1,u=-1)}}i(e)}};function g(h,i){if(confirm(`Do you want to navigate to ${i}?
|
4
4
|
|
@@ -0,0 +1 @@
|
|
1
|
+
import{R as q,r as ln,d as z,e as E,C as G,n as d,h as fn}from"./timer-BwIYMJWC.js";import{c as bn,a as pn}from"./linear-CRzT0Y7Z.js";import{i as yn}from"./init-DLRA0X12.js";import{bt as vn,bu as m,bv as M,bw as N,bx as D,by as H,bz as wn,bA as J,bB as P,bC as K,bD as gn,bE as O,bF as Q,bG as R,bH as S,bI as Y,bJ as j,bK as mn,bL as dn,bM as Mn,bN as Nn,bO as Dn,bP as In,bQ as kn}from"./index-CSPyN4cW.js";function xn(n,r){let i;if(r===void 0)for(const e of n)e!=null&&(i<e||i===void 0&&e>=e)&&(i=e);else{let e=-1;for(let a of n)(a=r(a,++e,n))!=null&&(i<a||i===void 0&&a>=a)&&(i=a)}return i}function Pn(n,r){let i;if(r===void 0)for(const e of n)e!=null&&(i>e||i===void 0&&e>=e)&&(i=e);else{let e=-1;for(let a of n)(a=r(a,++e,n))!=null&&(i>a||i===void 0&&a>=a)&&(i=a)}return i}function T(n,r,i,e,a,s){const o=[[m,1,M],[m,5,5*M],[m,15,15*M],[m,30,30*M],[s,1,N],[s,5,5*N],[s,15,15*N],[s,30,30*N],[a,1,D],[a,3,3*D],[a,6,6*D],[a,12,12*D],[e,1,H],[e,2,2*H],[i,1,wn],[r,1,J],[r,3,3*J],[n,1,P]];function b(l,u,c){const v=Math.abs(u-l)/c,h=vn(([,,x])=>x).right(o,v);if(h===o.length)return n.every(K(l/P,u/P,c));if(h===0)return gn.every(Math.max(K(l,u,c),1));const[w,k]=o[v/o[h-1][2]<o[h][2]/v?h-1:h];return w.every(k)}return[function(l,u,c){const v=u<l;v&&([l,u]=[u,l]);const h=c&&typeof c.range=="function"?c:b(l,u,c),w=h?h.range(l,+u+1):[];return v?w.reverse():w},b]}const[An,Bn]=T(In,Dn,Nn,Mn,dn,mn),[Cn,Fn]=T(j,Y,S,R,Q,O),U=Math.PI/180,V=180/Math.PI,W=.96422,X=.82521,Z=4/29,g=6/29,_=3*g*g,Ln=g*g*g;function $(n){if(n instanceof p)return new p(n.l,n.a,n.b,n.opacity);if(n instanceof y)return an(n);n instanceof q||(n=ln(n));var r,i,e=F(n.r),a=F(n.g),s=F(n.b),o=A((.2225045*e+.7168786*a+.0606169*s)/1);return e===a&&a===s?r=i=o:(r=A((.4360747*e+.3850649*a+.1430804*s)/W),i=A((.0139322*e+.0971045*a+.7141733*s)/X)),new p(116*o-16,500*(r-o),200*(o-i),n.opacity)}function nn(n,r,i,e){return arguments.length===1?$(n):new p(n,r,i,e??1)}function p(n,r,i,e){this.l=+n,this.a=+r,this.b=+i,this.opacity=+e}function A(n){return n>Ln?Math.pow(n,1/3):n/_+Z}function B(n){return n>g?n*n*n:_*(n-Z)}function C(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function F(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function I(n,r,i,e){return arguments.length===1?function(a){if(a instanceof y)return new y(a.h,a.c,a.l,a.opacity);if(a instanceof p||(a=$(a)),a.a===0&&a.b===0)return new y(NaN,0<a.l&&a.l<100?0:NaN,a.l,a.opacity);var s=Math.atan2(a.b,a.a)*V;return new y(s<0?s+360:s,Math.sqrt(a.a*a.a+a.b*a.b),a.l,a.opacity)}(n):new y(n,r,i,e??1)}function y(n,r,i,e){this.h=+n,this.c=+r,this.l=+i,this.opacity=+e}function an(n){if(isNaN(n.h))return new p(n.l,0,0,n.opacity);var r=n.h*U;return new p(n.l,Math.cos(r)*n.c,Math.sin(r)*n.c,n.opacity)}function rn(n){return function(r,i){var e=n((r=I(r)).h,(i=I(i)).h),a=d(r.c,i.c),s=d(r.l,i.l),o=d(r.opacity,i.opacity);return function(b){return r.h=e(b),r.c=a(b),r.l=s(b),r.opacity=o(b),r+""}}}z(p,nn,E(G,{brighter(n){return new p(this.l+18*(n??1),this.a,this.b,this.opacity)},darker(n){return new p(this.l-18*(n??1),this.a,this.b,this.opacity)},rgb(){var n=(this.l+16)/116,r=isNaN(this.a)?n:n+this.a/500,i=isNaN(this.b)?n:n-this.b/200;return r=W*B(r),n=1*B(n),i=X*B(i),new q(C(3.1338561*r-1.6168667*n-.4906146*i),C(-.9787684*r+1.9161415*n+.033454*i),C(.0719453*r-.2289914*n+1.4052427*i),this.opacity)}})),z(y,I,E(G,{brighter(n){return new y(this.h,this.c,this.l+18*(n??1),this.opacity)},darker(n){return new y(this.h,this.c,this.l-18*(n??1),this.opacity)},rgb(){return an(this).rgb()}}));const qn=rn(fn);var zn=rn(d);function en(n,r){var i,e=0,a=(n=n.slice()).length-1,s=n[e],o=n[a];return o<s&&(i=e,e=a,a=i,i=s,s=o,o=i),n[e]=r.floor(s),n[a]=r.ceil(o),n}function En(n){return new Date(n)}function Gn(n){return n instanceof Date?+n:+new Date(+n)}function L(n,r,i,e,a,s,o,b,l,u){var c=bn(),v=c.invert,h=c.domain,w=u(".%L"),k=u(":%S"),x=u("%I:%M"),tn=u("%I %p"),sn=u("%a %d"),on=u("%b %d"),un=u("%B"),cn=u("%Y");function hn(t){return(l(t)<t?w:b(t)<t?k:o(t)<t?x:s(t)<t?tn:e(t)<t?a(t)<t?sn:on:i(t)<t?un:cn)(t)}return c.invert=function(t){return new Date(v(t))},c.domain=function(t){return arguments.length?h(Array.from(t,Gn)):h().map(En)},c.ticks=function(t){var f=h();return n(f[0],f[f.length-1],t??10)},c.tickFormat=function(t,f){return f==null?hn:u(f)},c.nice=function(t){var f=h();return t&&typeof t.range=="function"||(t=r(f[0],f[f.length-1],t??10)),t?h(en(f,t)):c},c.copy=function(){return pn(c,L(n,r,i,e,a,s,o,b,l,u))},c}function Hn(){return yn.apply(L(Cn,Fn,j,Y,S,R,Q,O,m,kn).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}export{xn as a,An as b,L as c,V as d,I as e,zn as h,qn as i,nn as l,Pn as m,en as n,U as r,Hn as t,Bn as u};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import{_ as r,c as yt,l as $,T as gt,V as ft,W as mt,X as xt,B as bt,Y as _t,y as kt}from"./mermaid-
|
1
|
+
import{_ as r,c as yt,l as $,T as gt,V as ft,W as mt,X as xt,B as bt,Y as _t,y as kt}from"./mermaid-CBWSg5mK.js";import{s as G}from"./transform-B8bpuzxV.js";import{d as K}from"./arc-ZB5pDULS.js";import"./index-CSPyN4cW.js";import"./step-BwsUM5iJ.js";import"./timer-BwIYMJWC.js";var Y=function(){var n=r(function(s,h,l,p){for(l=l||{},p=s.length;p--;l[s[p]]=h);return l},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],o=[1,10],i=[1,11],a=[1,12],u=[1,13],f=[1,16],d=[1,17],g={trace:r(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:r(function(s,h,l,p,y,c,w){var x=c.length-1;switch(y){case 1:return c[x-1];case 2:case 6:case 7:this.$=[];break;case 3:c[x-1].push(c[x]),this.$=c[x-1];break;case 4:case 5:this.$=c[x];break;case 8:p.getCommonDb().setDiagramTitle(c[x].substr(6)),this.$=c[x].substr(6);break;case 9:this.$=c[x].trim(),p.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=c[x].trim(),p.getCommonDb().setAccDescription(this.$);break;case 12:p.addSection(c[x].substr(8)),this.$=c[x].substr(8);break;case 15:p.addTask(c[x],0,""),this.$=c[x];break;case 16:p.addEvent(c[x].substr(2)),this.$=c[x]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:o,14:i,16:a,17:u,18:14,19:15,20:f,21:d},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:o,14:i,16:a,17:u,18:14,19:15,20:f,21:d},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:r(function(s,h){if(!h.recoverable){var l=new Error(s);throw l.hash=h,l}this.trace(s)},"parseError"),parse:r(function(s){var h=this,l=[0],p=[],y=[null],c=[],w=this.table,x="",A=0,L=0,D=c.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(I.yy[H]=this.yy[H]);b.setInput(s,I.yy),I.yy.lexer=b,I.yy.parser=this,b.yylloc===void 0&&(b.yylloc={});var M=b.yylloc;c.push(M);var v=b.options&&b.options.ranges;function N(){var E;return typeof(E=p.pop()||b.lex()||1)!="number"&&(E instanceof Array&&(E=(p=E).pop()),E=h.symbols_[E]||E),E}typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,r(function(E){l.length=l.length-2*E,y.length=y.length-E,c.length=c.length-E},"popStack"),r(N,"lex");for(var k,T,S,z,B,C,Z,F,O={};;){if(T=l[l.length-1],this.defaultActions[T]?S=this.defaultActions[T]:(k==null&&(k=N()),S=w[T]&&w[T][k]),S===void 0||!S.length||!S[0]){var J="";for(B in F=[],w[T])this.terminals_[B]&&B>2&&F.push("'"+this.terminals_[B]+"'");J=b.showPosition?"Parse error on line "+(A+1)+`:
|
2
2
|
`+b.showPosition()+`
|
3
3
|
Expecting `+F.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(A+1)+": Unexpected "+(k==1?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(J,{text:b.match,token:this.terminals_[k]||k,line:b.yylineno,loc:M,expected:F})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+k);switch(S[0]){case 1:l.push(k),y.push(b.yytext),c.push(b.yylloc),l.push(S[1]),k=null,L=b.yyleng,x=b.yytext,A=b.yylineno,M=b.yylloc;break;case 2:if(C=this.productions_[S[1]][1],O.$=y[y.length-C],O._$={first_line:c[c.length-(C||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(C||1)].first_column,last_column:c[c.length-1].last_column},v&&(O._$.range=[c[c.length-(C||1)].range[0],c[c.length-1].range[1]]),(z=this.performAction.apply(O,[x,L,A,I.yy,S[1],y,c].concat(D)))!==void 0)return z;C&&(l=l.slice(0,-1*C*2),y=y.slice(0,-1*C),c=c.slice(0,-1*C)),l.push(this.productions_[S[1]][0]),y.push(O.$),c.push(O._$),Z=w[l[l.length-2]][l[l.length-1]],l.push(Z);break;case 3:return!0}}return!0},"parse")},_=function(){return{EOF:1,parseError:r(function(s,h){if(!this.yy.parser)throw new Error(s);this.yy.parser.parseError(s,h)},"parseError"),setInput:r(function(s,h){return this.yy=h||this.yy||{},this._input=s,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:r(function(){var s=this._input[0];return this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s,s.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:r(function(s){var h=s.length,l=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var p=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),l.length-1&&(this.yylineno-=l.length-1);var y=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:l?(l.length===p.length?this.yylloc.first_column:0)+p[p.length-l.length].length-l[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:r(function(){return this._more=!0,this},"more"),reject:r(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:r(function(s){this.unput(this.match.slice(s))},"less"),pastInput:r(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r(function(){var s=this.pastInput(),h=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
@@ -0,0 +1 @@
|
|
1
|
+
var Ne={value:()=>{}};function ee(){for(var e,r=0,n=arguments.length,t={};r<n;++r){if(!(e=arguments[r]+"")||e in t||/[\s.]/.test(e))throw new Error("illegal type: "+e);t[e]=[]}return new j(t)}function j(e){this._=e}function Me(e,r){for(var n,t=0,i=e.length;t<i;++t)if((n=e[t]).name===r)return n.value}function re(e,r,n){for(var t=0,i=e.length;t<i;++t)if(e[t].name===r){e[t]=Ne,e=e.slice(0,t).concat(e.slice(t+1));break}return n!=null&&e.push({name:r,value:n}),e}function I(e,r,n){e.prototype=r.prototype=n,n.constructor=e}function V(e,r){var n=Object.create(e.prototype);for(var t in r)n[t]=r[t];return n}function x(){}j.prototype=ee.prototype={constructor:j,on:function(e,r){var n,t,i=this._,a=(t=i,(e+"").trim().split(/^|\s+/).map(function(u){var h="",l=u.indexOf(".");if(l>=0&&(h=u.slice(l+1),u=u.slice(0,l)),u&&!t.hasOwnProperty(u))throw new Error("unknown type: "+u);return{type:u,name:h}})),o=-1,s=a.length;if(!(arguments.length<2)){if(r!=null&&typeof r!="function")throw new Error("invalid callback: "+r);for(;++o<s;)if(n=(e=a[o]).type)i[n]=re(i[n],e.name,r);else if(r==null)for(n in i)i[n]=re(i[n],e.name,null);return this}for(;++o<s;)if((n=(e=a[o]).type)&&(n=Me(i[n],e.name)))return n},copy:function(){var e={},r=this._;for(var n in r)e[n]=r[n].slice();return new j(e)},call:function(e,r){if((n=arguments.length-2)>0)for(var n,t,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=0,n=(t=this._[e]).length;a<n;++a)t[a].value.apply(r,i)},apply:function(e,r,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var t=this._[e],i=0,a=t.length;i<a;++i)t[i].value.apply(r,n)}};var k=.7,_=1/k,$="\\s*([+-]?\\d+)\\s*",E="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",w="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_e=/^#([0-9a-f]{3,8})$/,Ee=new RegExp(`^rgb\\(${$},${$},${$}\\)$`),qe=new RegExp(`^rgb\\(${w},${w},${w}\\)$`),Xe=new RegExp(`^rgba\\(${$},${$},${$},${E}\\)$`),Re=new RegExp(`^rgba\\(${w},${w},${w},${E}\\)$`),He=new RegExp(`^hsl\\(${E},${w},${w}\\)$`),Oe=new RegExp(`^hsla\\(${E},${w},${w},${E}\\)$`),ne={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function te(){return this.rgb().formatHex()}function ie(){return this.rgb().formatRgb()}function Y(e){var r,n;return e=(e+"").trim().toLowerCase(),(r=_e.exec(e))?(n=r[1].length,r=parseInt(r[1],16),n===6?ae(r):n===3?new g(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):n===8?A(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):n===4?A(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=Ee.exec(e))?new g(r[1],r[2],r[3],1):(r=qe.exec(e))?new g(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Xe.exec(e))?A(r[1],r[2],r[3],r[4]):(r=Re.exec(e))?A(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=He.exec(e))?le(r[1],r[2]/100,r[3]/100,1):(r=Oe.exec(e))?le(r[1],r[2]/100,r[3]/100,r[4]):ne.hasOwnProperty(e)?ae(ne[e]):e==="transparent"?new g(NaN,NaN,NaN,0):null}function ae(e){return new g(e>>16&255,e>>8&255,255&e,1)}function A(e,r,n,t){return t<=0&&(e=r=n=NaN),new g(e,r,n,t)}function oe(e){return e instanceof x||(e=Y(e)),e?new g((e=e.rgb()).r,e.g,e.b,e.opacity):new g}function q(e,r,n,t){return arguments.length===1?oe(e):new g(e,r,n,t??1)}function g(e,r,n,t){this.r=+e,this.g=+r,this.b=+n,this.opacity=+t}function se(){return`#${b(this.r)}${b(this.g)}${b(this.b)}`}function ue(){const e=S(this.opacity);return`${e===1?"rgb(":"rgba("}${y(this.r)}, ${y(this.g)}, ${y(this.b)}${e===1?")":`, ${e})`}`}function S(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function y(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function b(e){return((e=y(e))<16?"0":"")+e.toString(16)}function le(e,r,n,t){return t<=0?e=r=n=NaN:n<=0||n>=1?e=r=NaN:r<=0&&(e=NaN),new p(e,r,n,t)}function he(e){if(e instanceof p)return new p(e.h,e.s,e.l,e.opacity);if(e instanceof x||(e=Y(e)),!e)return new p;if(e instanceof p)return e;var r=(e=e.rgb()).r/255,n=e.g/255,t=e.b/255,i=Math.min(r,n,t),a=Math.max(r,n,t),o=NaN,s=a-i,u=(a+i)/2;return s?(o=r===a?(n-t)/s+6*(n<t):n===a?(t-r)/s+2:(r-n)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new p(o,s,u,e.opacity)}function ce(e,r,n,t){return arguments.length===1?he(e):new p(e,r,n,t??1)}function p(e,r,n,t){this.h=+e,this.s=+r,this.l=+n,this.opacity=+t}function fe(e){return(e=(e||0)%360)<0?e+360:e}function P(e){return Math.max(0,Math.min(1,e||0))}function W(e,r,n){return 255*(e<60?r+(n-r)*e/60:e<180?n:e<240?r+(n-r)*(240-e)/60:r)}function ge(e,r,n,t,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*r+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*t+o*i)/6}function pe(e){var r=e.length-1;return function(n){var t=n<=0?n=0:n>=1?(n=1,r-1):Math.floor(n*r),i=e[t],a=e[t+1],o=t>0?e[t-1]:2*i-a,s=t<r-1?e[t+2]:2*a-i;return ge((n-t/r)*r,o,i,a,s)}}function we(e){var r=e.length;return function(n){var t=Math.floor(((n%=1)<0?++n:n)*r),i=e[(t+r-1)%r],a=e[t%r],o=e[(t+1)%r],s=e[(t+2)%r];return ge((n-t/r)*r,i,a,o,s)}}I(x,Y,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:te,formatHex:te,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return he(this).formatHsl()},formatRgb:ie,toString:ie}),I(g,q,V(x,{brighter(e){return e=e==null?_:Math.pow(_,e),new g(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?k:Math.pow(k,e),new g(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new g(y(this.r),y(this.g),y(this.b),S(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:se,formatHex:se,formatHex8:function(){return`#${b(this.r)}${b(this.g)}${b(this.b)}${b(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ue,toString:ue})),I(p,ce,V(x,{brighter(e){return e=e==null?_:Math.pow(_,e),new p(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?k:Math.pow(k,e),new p(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),r=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,t=n+(n<.5?n:1-n)*r,i=2*n-t;return new g(W(e>=240?e-240:e+120,i,t),W(e,i,t),W(e<120?e+240:e-120,i,t),this.opacity)},clamp(){return new p(fe(this.h),P(this.s),P(this.l),S(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=S(this.opacity);return`${e===1?"hsl(":"hsla("}${fe(this.h)}, ${100*P(this.s)}%, ${100*P(this.l)}%${e===1?")":`, ${e})`}`}}));const T=e=>()=>e;function de(e,r){return function(n){return e+n*r}}function je(e,r){var n=r-e;return n?de(e,n>180||n<-180?n-360*Math.round(n/360):n):T(isNaN(e)?r:e)}function Ie(e){return(e=+e)==1?B:function(r,n){return n-r?function(t,i,a){return t=Math.pow(t,a),i=Math.pow(i,a)-t,a=1/a,function(o){return Math.pow(t+o*i,a)}}(r,n,e):T(isNaN(r)?n:r)}}function B(e,r){var n=r-e;return n?de(e,n):T(isNaN(e)?r:e)}const Ye=function e(r){var n=Ie(r);function t(i,a){var o=n((i=q(i)).r,(a=q(a)).r),s=n(i.g,a.g),u=n(i.b,a.b),h=B(i.opacity,a.opacity);return function(l){return i.r=o(l),i.g=s(l),i.b=u(l),i.opacity=h(l),i+""}}return t.gamma=e,t}(1);function me(e){return function(r){var n,t,i=r.length,a=new Array(i),o=new Array(i),s=new Array(i);for(n=0;n<i;++n)t=q(r[n]),a[n]=t.r||0,o[n]=t.g||0,s[n]=t.b||0;return a=e(a),o=e(o),s=e(s),t.opacity=1,function(u){return t.r=a(u),t.g=o(u),t.b=s(u),t+""}}}var Ae=me(pe),Se=me(we);function d(e,r){return e=+e,r=+r,function(n){return e*(1-n)+r*n}}var G=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,J=new RegExp(G.source,"g");function Pe(e,r){var n,t,i,a=G.lastIndex=J.lastIndex=0,o=-1,s=[],u=[];for(e+="",r+="";(n=G.exec(e))&&(t=J.exec(r));)(i=t.index)>a&&(i=r.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(t=t[0])?s[o]?s[o]+=t:s[++o]=t:(s[++o]=null,u.push({i:o,x:d(n,t)})),a=J.lastIndex;return a<r.length&&(i=r.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?u[0]?function(h){return function(l){return h(l)+""}}(u[0].x):function(h){return function(){return h}}(r):(r=u.length,function(h){for(var l,c=0;c<r;++c)s[(l=u[c]).i]=l.x(h);return s.join("")})}var C,ye=180/Math.PI,Q={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function be(e,r,n,t,i,a){var o,s,u;return(o=Math.sqrt(e*e+r*r))&&(e/=o,r/=o),(u=e*n+r*t)&&(n-=e*u,t-=r*u),(s=Math.sqrt(n*n+t*t))&&(n/=s,t/=s,u/=s),e*t<r*n&&(e=-e,r=-r,u=-u,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(r,e)*ye,skewX:Math.atan(u)*ye,scaleX:o,scaleY:s}}function ve(e,r,n,t){function i(a){return a.length?a.pop()+" ":""}return function(a,o){var s=[],u=[];return a=e(a),o=e(o),function(h,l,c,f,m,L){if(h!==c||l!==f){var M=m.push("translate(",null,r,null,n);L.push({i:M-4,x:d(h,c)},{i:M-2,x:d(l,f)})}else(c||f)&&m.push("translate("+c+r+f+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,u),function(h,l,c,f){h!==l?(h-l>180?l+=360:l-h>180&&(h+=360),f.push({i:c.push(i(c)+"rotate(",null,t)-2,x:d(h,l)})):l&&c.push(i(c)+"rotate("+l+t)}(a.rotate,o.rotate,s,u),function(h,l,c,f){h!==l?f.push({i:c.push(i(c)+"skewX(",null,t)-2,x:d(h,l)}):l&&c.push(i(c)+"skewX("+l+t)}(a.skewX,o.skewX,s,u),function(h,l,c,f,m,L){if(h!==c||l!==f){var M=m.push(i(m)+"scale(",null,",",null,")");L.push({i:M-4,x:d(h,c)},{i:M-2,x:d(l,f)})}else c===1&&f===1||m.push(i(m)+"scale("+c+","+f+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,u),a=o=null,function(h){for(var l,c=-1,f=u.length;++c<f;)s[(l=u[c]).i]=l.x(h);return s.join("")}}}var D,X,Te=ve(function(e){const r=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return r.isIdentity?Q:be(r.a,r.b,r.c,r.d,r.e,r.f)},"px, ","px)","deg)"),Ce=ve(function(e){return e==null?Q:(C||(C=document.createElementNS("http://www.w3.org/2000/svg","g")),C.setAttribute("transform",e),(e=C.transform.baseVal.consolidate())?be((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Q)},", ",")",")"),N=0,R=0,H=0,F=0,v=0,z=0,O=typeof performance=="object"&&performance.now?performance:Date,xe=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function U(){return v||(xe(De),v=O.now()+z)}function De(){v=0}function K(){this._call=this._time=this._next=null}function ke(e,r,n){var t=new K;return t.restart(e,r,n),t}function $e(){v=(F=O.now())+z,N=R=0;try{(function(){U(),++N;for(var e,r=D;r;)(e=v-r._time)>=0&&r._call.call(void 0,e),r=r._next;--N})()}finally{N=0,function(){for(var e,r,n=D,t=1/0;n;)n._call?(t>n._time&&(t=n._time),e=n,n=n._next):(r=n._next,n._next=null,n=e?e._next=r:D=r);X=e,Z(t)}(),v=0}}function Fe(){var e=O.now(),r=e-F;r>1e3&&(z-=r,F=e)}function Z(e){N||(R&&(R=clearTimeout(R)),e-v>24?(e<1/0&&(R=setTimeout($e,e-O.now()-z)),H&&(H=clearInterval(H))):(H||(F=O.now(),H=setInterval(Fe,1e3)),N=1,xe($e)))}K.prototype=ke.prototype={constructor:K,restart:function(e,r,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?U():+n)+(r==null?0:+r),this._next||X===this||(X?X._next=this:D=this,X=this),this._call=e,this._time=n,Z()},stop:function(){this._call&&(this._call=null,this._time=1/0,Z())}};export{x as C,g as R,K as T,Ye as a,Pe as b,T as c,I as d,V as e,Y as f,ee as g,je as h,d as i,Ce as j,Te as k,U as l,k as m,B as n,_ as o,ce as p,pe as q,oe as r,we as s,ke as t,Ae as u,Se as v,q as w};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-bQahjypS.js","./VegaLite-kpaj3jnh.js","./index-CSPyN4cW.js","./index-DmaoBTfT.css","./compile-J4o3SSt8.js","./time-BOg6M-VK.js","./timer-BwIYMJWC.js","./linear-CRzT0Y7Z.js","./init-DLRA0X12.js","./range-CtcPcB_L.js","./zoom-COrs4lFh.js","./ordinal-DDUp3AbE.js","./colors-bszWmPJw.js","./step-BwsUM5iJ.js","./arc-ZB5pDULS.js","./index-BEQfoZiP.js","./index-CX90WBn3.js"])))=>i.map(i=>d[i]);
|
2
|
+
import{c as K,a as N,V as O,al as Q,am as W,U as k,j as s,b as X,an as Z,ao as tt,ap as U,aq as et,ar as rt,as as st,at as A,au as it,av as ot,aw as at,ax as lt,__tla as nt}from"./index-CSPyN4cW.js";import{c as mt}from"./compile-J4o3SSt8.js";import{r as pt,b as ct,__tla as dt}from"./storage-Dr_iHaXY.js";import{P as ut,C as ht,f as Y,E as xt,a as gt,__tla as ft}from"./edit-page-D5gsQ3AR.js";import{A as vt}from"./links-BNeucPnM.js";import{C as jt}from"./circle-play-ClFywCWK.js";import"./time-BOg6M-VK.js";import"./timer-BwIYMJWC.js";import"./linear-CRzT0Y7Z.js";import"./init-DLRA0X12.js";import"./range-CtcPcB_L.js";import"./zoom-COrs4lFh.js";import"./ordinal-DDUp3AbE.js";import"./colors-bszWmPJw.js";import"./step-BwsUM5iJ.js";import"./arc-ZB5pDULS.js";import"./index-BEQfoZiP.js";import"./index-DoJNd5TO.js";import"./index-ChwnRmyU.js";import"./index-BvsboPlP.js";import"./index-CpDzU4a4.js";import"./index-C6tN7Sd5.js";import"./index-D3oH_ISv.js";import"./index-D0hmgAd4.js";import"./index-B68QxZ4j.js";import"./index-CmbEuD_J.js";import"./index-OpfXYM03.js";import"./index-BIv4gd5k.js";import"./index-BIqVhCGI.js";import"./index-CXXB4K2m.js";import"./apl-CXdQSnD-.js";import"./asciiarmor-D5V0T9Cu.js";import"./asterisk-B46aRdXb.js";import"./brainfuck-CtZaYBKt.js";import"./clike-BgBwzOhw.js";import"./cmake-DXn5xaP-.js";import"./cobol-stawOqaz.js";import"./coffeescript-BTDxI-eT.js";import"./commonlisp-vq6DHwts.js";import"./crystal-CRzZ78HM.js";import"./cypher-gJDei3ni.js";import"./d-BShv7fp-.js";import"./diff-UJJ5BM9S.js";import"./dockerfile-knGOOxt4.js";import"./simple-mode-C3vEBAcb.js";import"./dtd-DI9Herc-.js";import"./dylan-DkEP81N9.js";import"./ebnf-B-Df8AvO.js";import"./ecl-DPFc0Uaf.js";import"./eiffel-DR5c0IrL.js";import"./elm-DompmV0j.js";import"./erlang-BuqgqA5h.js";import"./factor-CFXhaUWb.js";import"./fcl-CVaBTCzQ.js";import"./forth-POgR1ypr.js";import"./fortran-DL7KluxX.js";import"./gas-bV0CklSb.js";import"./gherkin-B6X1vGSW.js";import"./groovy-DnIzCrpZ.js";import"./haskell-CLQs6EAM.js";import"./haxe-D25e-2l-.js";import"./http-BKJkqRj4.js";import"./idl-pcmmZuaN.js";import"./jinja2-DhgKlfW7.js";import"./julia-DjdwvFuI.js";import"./livescript-HO6ttBFx.js";import"./lua-8DXOpKDz.js";import"./mathematica-IIbmv7SK.js";import"./mbox-z_N2Mo3d.js";import"./mirc-DkvFAiy5.js";import"./modelica-DSrSSXCg.js";import"./mscgen-B2igx18G.js";import"./mumps-zvxmGV4l.js";import"./nginx-B4hAVlXN.js";import"./nsis-BvKfQ9lQ.js";import"./ntriples-BSwWqoLa.js";import"./octave-C4hdQ5Hf.js";import"./oz-qQq7irPq.js";import"./pascal-CafrKXZF.js";import"./perl-tdMlh9QA.js";import"./pig-CwGJVRC4.js";import"./powershell-D1ly3AHC.js";import"./properties-_nPj978X.js";import"./protobuf-B4y9do6W.js";import"./puppet-Bc-yJKzi.js";import"./q-B0kTJ4cI.js";import"./r-BA4EbLKE.js";import"./ruby-CR-u2WLS.js";import"./sas-Bqaci40L.js";import"./scheme-qjP0V5Ag.js";import"./shell-BLav31RL.js";import"./sieve-r025o_jW.js";import"./smalltalk-C7J3IyEP.js";import"./solr-78MBEUkU.js";import"./sparql-BRLJFz69.js";import"./spreadsheet-CGlWr0eM.js";import"./stylus-Bdo_Aemu.js";import"./swift-B_XXVlXX.js";import"./tcl-B2fODqDH.js";import"./textile-BuVhTOzU.js";import"./tiddlywiki-BgR6AEZu.js";import"./tiki-CI-ztowC.js";import"./toml-wcPdHu67.js";import"./troff-Ce85hlLp.js";import"./ttcn-BxnYHtq8.js";import"./turtle-BkSuIpt-.js";import"./vb-BHgjm0DN.js";import"./vbscript-Dawdd5GZ.js";import"./velocity-BdD_26Jv.js";import"./verilog-B4LBqg_1.js";import"./vhdl-CWWH2SUo.js";import"./webidl-CGwyPRYs.js";import"./xquery-CVDBqZPY.js";import"./yacas-I8QjZlxf.js";import"./z80-D8p3gKXp.js";import"./trash-Dpszkgwx.js";import"./_createAggregator-0VsbCMQy.js";import"./_baseEach-DgKJ_yh2.js";import{__tla as yt}from"./loro_wasm_bg-C3hKWL9L.js";import"./transform-B8bpuzxV.js";import"./sortBy-CyFp7E_N.js";import"./_baseMap-_qjAB773.js";import"./index-CX90WBn3.js";let G,w,It=Promise.all([(()=>{try{return nt}catch{}})(),(()=>{try{return dt}catch{}})(),(()=>{try{return ft}catch{}})(),(()=>{try{return yt}catch{}})()]).then(async()=>{const J=K("circle-ellipsis",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M17 12h.01",key:"1m0b6t"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M7 12h.01",key:"eqddd0"}]]),M="hoveredCellId",P="cellHover",C="cell",R="startTimestamp",L="endTimestamp",z="status";let E,B,$,q,H,V,D,F;E=Q(new Map),G=()=>{const e=N.c(28),{runIds:t,runMap:r}=O(pt),l=O(E),{clearRuns:o}=ct(),{theme:a}=W(),[i,u]=k.useState("above");let m;e[0]!==i?(m=()=>{u(i==="above"?"sideBySide":"above")},e[0]=i,e[1]=m):m=e[1];const x=m;if(t.length===0){let h;return e[2]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(ut,{title:"No traces",description:s.jsx("span",{children:"Cells that have ran will appear here."}),icon:s.jsx(vt,{})}),e[2]=h):h=e[2],h}let d;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx("label",{htmlFor:"chartPosition",className:"text-xs",children:"Inline chart"}),e[3]=d):d=e[3];const p=i==="sideBySide";let g,c,y,f,v,I;if(e[4]!==p||e[5]!==x?(g=s.jsxs("div",{className:"flex flex-row gap-1 items-center",children:[d,s.jsx("input",{type:"checkbox",name:"chartPosition","data-testid":"chartPosition",onClick:x,defaultChecked:p,className:"h-3 cursor-pointer"})]}),e[4]=p,e[5]=x,e[6]=g):g=e[6],e[7]!==o?(c=s.jsx(ht,{dataTestId:"clear-traces-button",onClick:o}),e[7]=o,e[8]=c):c=e[8],e[9]!==g||e[10]!==c?(y=s.jsxs("div",{className:"flex flex-row justify-end gap-3",children:[g,c]}),e[9]=g,e[10]=c,e[11]=y):y=e[11],e[12]!==i||e[13]!==l||e[14]!==t||e[15]!==r||e[16]!==a){let h;e[18]!==i||e[19]!==l||e[20]!==r||e[21]!==a?(h=(_,n)=>{const j=r.get(_);if(j)return s.jsx(q,{run:j,isExpanded:l.get(j.runId),isMostRecentRun:n===0,chartPosition:i,theme:a},j.runId)},e[18]=i,e[19]=l,e[20]=r,e[21]=a,e[22]=h):h=e[22],f=t.map(h),e[12]=i,e[13]=l,e[14]=t,e[15]=r,e[16]=a,e[17]=f}else f=e[17];return e[23]!==f?(v=s.jsx("div",{className:"flex flex-col gap-3",children:f}),e[23]=f,e[24]=v):v=e[24],e[25]!==y||e[26]!==v?(I=s.jsxs("div",{className:"py-1 px-2 overflow-y-scroll",children:[y,v]}),e[25]=y,e[26]=v,e[27]=I):I=e[27],I},B=X.lazy(()=>Z(()=>import("./index-bQahjypS.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url).then(e=>({default:e.Vega}))),$=e=>{const t=N.c(10),{ref:r,width:l}=lt(),o=l===void 0?300:l,a=e.theme==="dark"?"dark":void 0,i=o-50;let u,m;return t[0]!==e.height||t[1]!==e.signalListeners||t[2]!==e.vegaSpec||t[3]!==a||t[4]!==i?(u=s.jsx(k.Suspense,{children:s.jsx(B,{spec:e.vegaSpec,theme:a,width:i,height:e.height,signalListeners:e.signalListeners,actions:!1})}),t[0]=e.height,t[1]=e.signalListeners,t[2]=e.vegaSpec,t[3]=a,t[4]=i,t[5]=u):u=t[5],t[6]!==e.className||t[7]!==r||t[8]!==u?(m=s.jsx("div",{className:e.className,ref:r,children:u}),t[6]=e.className,t[7]=r,t[8]=u,t[9]=m):m=t[9],m},q=({run:e,isMostRecentRun:t,chartPosition:r,isExpanded:l,theme:o})=>{const a=tt(E),i=(l=l??t)?it:ot,u=s.jsx(i,{height:16,className:"inline"}),m=s.jsxs("span",{className:"text-sm cursor-pointer",onClick:()=>{a(x=>{const d=new Map(x);return d.set(e.runId,!l),d})},children:["Run - ",U(e.runStartTime),u]});return l?s.jsx(H,{run:e,chartPosition:r,theme:o,title:m},e.runId):s.jsx("div",{className:"flex flex-col",children:s.jsx("pre",{className:"font-mono font-semibold",children:m})},e.runId)},H=e=>{const t=N.c(32),{run:r,chartPosition:l,theme:o,title:a}=e,[i,u]=k.useState();let m;t[0]===Symbol.for("react.memo_cache_sentinel")?(m={[P]:(_,n)=>{var b;const j=n,S=(b=j.cell)==null?void 0:b[0];u(S??null)}},t[0]=m):m=t[0];const x=m,d=et();let p,g;if(t[1]!==d||t[2]!==l||t[3]!==r.cellRuns||t[4]!==r.runId||t[5]!==o){const _=[...r.cellRuns.values()].map(n=>{const j=n.elapsedTime??0;return{cell:n.cellId,cellNum:d.inOrderIds.indexOf(n.cellId),startTimestamp:w(n.startTime),endTimestamp:w(n.startTime+j),elapsedTime:Y(1e3*j),status:n.status}});p=`hiddenInputElement-${r.runId}`,g=mt(function(n,j,S,b){return{$schema:"https://vega.github.io/schema/vega-lite/v5.json",background:b==="dark"?"black":void 0,mark:{type:"bar",cornerRadius:2},params:[{name:M,bind:{element:`#${j}`}},{name:P,select:{type:"point",on:"mouseover",fields:[C],clear:"mouseout"}}],height:{step:S==="sideBySide"?26:21},encoding:{y:{field:"cellNum",scale:{paddingInner:.2},sort:{field:"sortPriority"},title:"cell",axis:S==="sideBySide"?null:void 0},x:{field:R,type:"temporal",axis:{orient:"top",title:null}},x2:{field:L,type:"temporal"},tooltip:[{field:R,type:"temporal",timeUnit:"hoursminutessecondsmilliseconds",title:"Start"},{field:L,type:"temporal",timeUnit:"hoursminutessecondsmilliseconds",title:"End"}],size:{value:{expr:`${M} == toString(datum.${C}) ? 19.5 : 18`}},color:{field:z,scale:{domain:["success","error"],range:["#37BE5F","red"]},legend:null}},data:{values:n},transform:[{calculate:`datum.${z} === 'queued' ? 9999999999999 : datum.${R}`,as:"sortPriority"}],config:{view:{stroke:"transparent"}}}}(_,p,l,o)),t[1]=d,t[2]=l,t[3]=r.cellRuns,t[4]=r.runId,t[5]=o,t[6]=p,t[7]=g}else p=t[6],g=t[7];const c=g.spec;let y;t[8]!==p||t[9]!==i||t[10]!==r?(y=s.jsx(V,{run:r,hoveredCellId:i,hiddenInputElementId:p}),t[8]=p,t[9]=i,t[10]=r,t[11]=y):y=t[11];const f=y;if(l==="above"){let _,n,j;return t[12]!==o||t[13]!==c?(_=s.jsx($,{vegaSpec:c,height:120,signalListeners:x,theme:o}),t[12]=o,t[13]=c,t[14]=_):_=t[14],t[15]!==_||t[16]!==a||t[17]!==f?(n=s.jsxs("pre",{className:"font-mono font-semibold",children:[a,_,f]}),t[15]=_,t[16]=a,t[17]=f,t[18]=n):n=t[18],t[19]!==r.runId||t[20]!==n?(j=s.jsx("div",{className:"flex flex-col",children:n},r.runId),t[19]=r.runId,t[20]=n,t[21]=j):j=t[21],j}let v,I,h;return t[22]!==a||t[23]!==f?(v=s.jsxs("pre",{className:"font-mono font-semibold",children:[a,f]}),t[22]=a,t[23]=f,t[24]=v):v=t[24],t[25]!==o||t[26]!==c?(I=s.jsx($,{className:"-mt-0.5 flex-1",vegaSpec:c,height:100,signalListeners:x,theme:o}),t[25]=o,t[26]=c,t[27]=I):I=t[27],t[28]!==r.runId||t[29]!==v||t[30]!==I?(h=s.jsxs("div",{className:"flex flex-row",children:[v,I]},r.runId),t[28]=r.runId,t[29]=v,t[30]=I,t[31]=h):h=t[31],h},V=e=>{const t=N.c(12),{run:r,hoveredCellId:l,hiddenInputElementId:o}=e,a=k.useRef(null);let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=c=>{a.current&&(a.current.value=String(c),a.current.dispatchEvent(new Event("input",{bubbles:!0})))},t[0]=i):i=t[0];const u=i,m=l||"";let x,d,p,g;return t[1]!==o||t[2]!==m?(x=s.jsx("input",{type:"text",id:o,defaultValue:m,hidden:!0,ref:a}),t[1]=o,t[2]=m,t[3]=x):x=t[3],t[4]!==r.cellRuns?(d=[...r.cellRuns.values()],t[4]=r.cellRuns,t[5]=d):d=t[5],t[6]!==l||t[7]!==d?(p=d.map(c=>s.jsx(F,{cellRun:c,hovered:c.cellId===l,dispatchHoverEvent:u},c.cellId)),t[6]=l,t[7]=d,t[8]=p):p=t[8],t[9]!==x||t[10]!==p?(g=s.jsxs("div",{className:"text-xs mt-0.5 ml-3 flex flex-col gap-0.5",children:[x,p]}),t[9]=x,t[10]=p,t[11]=g):g=t[11],g},D={success:s.jsx(gt,{color:"green",size:14}),running:s.jsx(jt,{color:"var(--blue-10)",size:14}),error:s.jsx(at,{color:"red",size:14}),queued:s.jsx(J,{color:"grey",size:14})},F=e=>{const t=N.c(39),{cellRun:r,hovered:l,dispatchHoverEvent:o}=e;let a;t[0]!==r.elapsedTime?(a=r.elapsedTime?Y(1e3*r.elapsedTime):"-",t[0]=r.elapsedTime,t[1]=a):a=t[1];const i=a;let u;t[2]!==r.elapsedTime||t[3]!==i?(u=r.elapsedTime?s.jsxs("span",{children:["This cell took ",s.jsx(xt,{elapsedTime:i})," to run"]}):s.jsx("span",{children:"This cell has not been run"}),t[2]=r.elapsedTime,t[3]=i,t[4]=u):u=t[4];const m=u;let x;t[5]!==r.cellId||t[6]!==o?(x=()=>{o(r.cellId)},t[5]=r.cellId,t[6]=o,t[7]=x):x=t[7];const d=x;let p;t[8]!==o?(p=()=>{o(null)},t[8]=o,t[9]=p):p=t[9];const g=p,c=l&&"bg-[var(--gray-3)] opacity-100";let y,f,v,I,h,_,n;t[10]!==c?(y=rt("flex flex-row gap-2 py-1 px-1 opacity-70 hover:bg-[var(--gray-3)] hover:opacity-100",c),t[10]=c,t[11]=y):y=t[11],t[12]!==r.startTime?(f=U(r.startTime),t[12]=r.startTime,t[13]=f):f=t[13],t[14]!==f?(v=s.jsxs("span",{className:"text-[var(--gray-10)] dark:text-[var(--gray-11)]",children:["[",f,"]"]}),t[14]=f,t[15]=v):v=t[15],t[16]!==r.cellId?(I=s.jsxs("span",{className:"text-[var(--gray-10)] w-16",children:["(",s.jsx(st,{cellId:r.cellId}),")"]}),t[16]=r.cellId,t[17]=I):I=t[17],t[18]!==r.code?(h=s.jsx("span",{className:"w-40 truncate -ml-1",children:r.code}),t[18]=r.code,t[19]=h):h=t[19],t[20]!==i?(_=s.jsx("span",{className:"text-[var(--gray-10)] dark:text-[var(--gray-11)]",children:i}),t[20]=i,t[21]=_):_=t[21],t[22]!==m||t[23]!==_?(n=s.jsx(A,{content:m,children:_}),t[22]=m,t[23]=_,t[24]=n):n=t[24];const j=D[r.status];let S,b,T;return t[25]!==r.status||t[26]!==j?(S=s.jsx(A,{content:r.status,children:j}),t[25]=r.status,t[26]=j,t[27]=S):S=t[27],t[28]!==n||t[29]!==S?(b=s.jsxs("div",{className:"flex flex-row gap-1 w-16 justify-end -ml-2",children:[n,S]}),t[28]=n,t[29]=S,t[30]=b):b=t[30],t[31]!==d||t[32]!==g||t[33]!==h||t[34]!==b||t[35]!==y||t[36]!==v||t[37]!==I?(T=s.jsxs("div",{className:y,onMouseEnter:d,onMouseLeave:g,children:[v,I,h,b]}),t[31]=d,t[32]=g,t[33]=h,t[34]=b,t[35]=y,t[36]=v,t[37]=I,t[38]=T):T=t[38],T},w=function(e){try{const t=new Date(1e3*e),r=t.getFullYear(),l=String(t.getMonth()+1).padStart(2,"0"),o=String(t.getDate()).padStart(2,"0"),a=String(t.getHours()).padStart(2,"0"),i=String(t.getMinutes()).padStart(2,"0"),u=String(t.getSeconds()).padStart(2,"0");return`${r}-${l}-${o} ${a}:${i}:${u}.${String(t.getMilliseconds()).padStart(3,"0")}`}catch{return""}}});export{G as Tracing,It as __tla,w as formatChartTime};
|
@@ -1 +1 @@
|
|
1
|
-
import{T as it,t as ot,g as ut,i as st,a as V,b as at,f as X,j as lt,k as ct,l as ft}from"./timer-Bqd5yn_a.js";function z(t,n,e){var r=new it;return n=n==null?0:+n,r.restart(i=>{r.stop(),t(i+n)},n,e),r}var M="http://www.w3.org/1999/xhtml";const H={svg:"http://www.w3.org/2000/svg",xhtml:M,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function T(t){var n=t+="",e=n.indexOf(":");return e>=0&&(n=t.slice(0,e))!=="xmlns"&&(t=t.slice(e+1)),H.hasOwnProperty(n)?{space:H[n],local:t}:t}function ht(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===M&&n.documentElement.namespaceURI===M?n.createElement(t):n.createElementNS(e,t)}}function pt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function I(t){var n=T(t);return(n.local?pt:ht)(n)}function _t(){}function q(t){return t==null?_t:function(){return this.querySelector(t)}}function vt(){return[]}function R(t){return t==null?vt:function(){return this.querySelectorAll(t)}}function dt(t){return function(){return(n=t.apply(this,arguments))==null?[]:Array.isArray(n)?n:Array.from(n);var n}}function U(t){return function(){return this.matches(t)}}function Y(t){return function(n){return n.matches(t)}}var yt=Array.prototype.find;function mt(){return this.firstElementChild}var gt=Array.prototype.filter;function wt(){return Array.from(this.children)}function $(t){return new Array(t.length)}function L(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function At(t,n,e,r,i,u){for(var s,o=0,l=n.length,a=u.length;o<a;++o)(s=n[o])?(s.__data__=u[o],r[o]=s):e[o]=new L(t,u[o]);for(;o<l;++o)(s=n[o])&&(i[o]=s)}function xt(t,n,e,r,i,u,s){var o,l,a,c=new Map,f=n.length,h=u.length,p=new Array(f);for(o=0;o<f;++o)(l=n[o])&&(p[o]=a=s.call(l,l.__data__,o,n)+"",c.has(a)?i[o]=l:c.set(a,l));for(o=0;o<h;++o)a=s.call(t,u[o],o,u)+"",(l=c.get(a))?(r[o]=l,l.__data__=u[o],c.delete(a)):e[o]=new L(t,u[o]);for(o=0;o<f;++o)(l=n[o])&&c.get(p[o])===l&&(i[o]=l)}function bt(t){return t.__data__}function Et(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function St(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function Nt(t){return function(){this.removeAttribute(t)}}function Ct(t){return function(){this.removeAttributeNS(t.space,t.local)}}function kt(t,n){return function(){this.setAttribute(t,n)}}function Pt(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Tt(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttribute(t):this.setAttribute(t,e)}}function Lt(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function F(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Bt(t){return function(){this.style.removeProperty(t)}}function Mt(t,n,e){return function(){this.style.setProperty(t,n,e)}}function qt(t,n,e){return function(){var r=n.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function C(t,n){return t.style.getPropertyValue(n)||F(t).getComputedStyle(t,null).getPropertyValue(n)}function Dt(t){return function(){delete this[t]}}function Ot(t,n){return function(){this[t]=n}}function jt(t,n){return function(){var e=n.apply(this,arguments);e==null?delete this[t]:this[t]=e}}function G(t){return t.trim().split(/^|\s+/)}function D(t){return t.classList||new J(t)}function J(t){this._node=t,this._names=G(t.getAttribute("class")||"")}function K(t,n){for(var e=D(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function Q(t,n){for(var e=D(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function Vt(t){return function(){K(this,t)}}function Xt(t){return function(){Q(this,t)}}function zt(t,n){return function(){(n.apply(this,arguments)?K:Q)(this,t)}}function Ht(){this.textContent=""}function It(t){return function(){this.textContent=t}}function Rt(t){return function(){var n=t.apply(this,arguments);this.textContent=n??""}}function Ut(){this.innerHTML=""}function Yt(t){return function(){this.innerHTML=t}}function $t(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n??""}}function Ft(){this.nextSibling&&this.parentNode.appendChild(this)}function Gt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Jt(){return null}function Kt(){var t=this.parentNode;t&&t.removeChild(this)}function Qt(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Wt(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Zt(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,u=n.length;r<u;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.options);++i?n.length=i:delete this.__on}}}function tn(t,n,e){return function(){var r,i=this.__on,u=function(l){return function(a){l.call(this,a,this.__data__)}}(n);if(i){for(var s=0,o=i.length;s<o;++s)if((r=i[s]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=u,r.options=e),void(r.value=n)}this.addEventListener(t.type,u,e),r={type:t.type,name:t.name,value:n,listener:u,options:e},i?i.push(r):this.__on=[r]}}function W(t,n,e){var r=F(t),i=r.CustomEvent;typeof i=="function"?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function nn(t,n){return function(){return W(this,t,n)}}function en(t,n){return function(){return W(this,t,n.apply(this,arguments))}}L.prototype={constructor:L,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},J.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Z=[null];function g(t,n){this._groups=t,this._parents=n}function k(){return new g([[document.documentElement]],Z)}function rn(t){return typeof t=="string"?new g([[document.querySelector(t)]],[document.documentElement]):new g([[t]],Z)}g.prototype=k.prototype={constructor:g,select:function(t){typeof t!="function"&&(t=q(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var u,s,o=n[i],l=o.length,a=r[i]=new Array(l),c=0;c<l;++c)(u=o[c])&&(s=t.call(u,u.__data__,c,o))&&("__data__"in u&&(s.__data__=u.__data__),a[c]=s);return new g(r,this._parents)},selectAll:function(t){t=typeof t=="function"?dt(t):R(t);for(var n=this._groups,e=n.length,r=[],i=[],u=0;u<e;++u)for(var s,o=n[u],l=o.length,a=0;a<l;++a)(s=o[a])&&(r.push(t.call(s,s.__data__,a,o)),i.push(s));return new g(r,i)},selectChild:function(t){return this.select(t==null?mt:function(n){return function(){return yt.call(this.children,n)}}(typeof t=="function"?t:Y(t)))},selectChildren:function(t){return this.selectAll(t==null?wt:function(n){return function(){return gt.call(this.children,n)}}(typeof t=="function"?t:Y(t)))},filter:function(t){typeof t!="function"&&(t=U(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var u,s=n[i],o=s.length,l=r[i]=[],a=0;a<o;++a)(u=s[a])&&t.call(u,u.__data__,a,s)&&l.push(u);return new g(r,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,bt);var e,r=n?xt:At,i=this._parents,u=this._groups;typeof t!="function"&&(e=t,t=function(){return e});for(var s=u.length,o=new Array(s),l=new Array(s),a=new Array(s),c=0;c<s;++c){var f=i[c],h=u[c],p=h.length,_=Et(t.call(f,f&&f.__data__,c,i)),y=_.length,m=l[c]=new Array(y),d=o[c]=new Array(y);r(f,h,m,d,a[c]=new Array(p),_,n);for(var x,S,v=0,P=0;v<y;++v)if(x=m[v]){for(v>=P&&(P=v+1);!(S=d[P])&&++P<y;);x._next=S||null}}return(o=new g(o,i))._enter=l,o._exit=a,o},enter:function(){return new g(this._enter||this._groups.map($),this._parents)},exit:function(){return new g(this._exit||this._groups.map($),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,u=this.exit();return typeof t=="function"?(r=t(r))&&(r=r.selection()):r=r.append(t+""),n!=null&&(i=n(i))&&(i=i.selection()),e==null?u.remove():e(u),r&&i?r.merge(i).order():i},merge:function(t){for(var n=t.selection?t.selection():t,e=this._groups,r=n._groups,i=e.length,u=r.length,s=Math.min(i,u),o=new Array(i),l=0;l<s;++l)for(var a,c=e[l],f=r[l],h=c.length,p=o[l]=new Array(h),_=0;_<h;++_)(a=c[_]||f[_])&&(p[_]=a);for(;l<i;++l)o[l]=e[l];return new g(o,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],u=i.length-1,s=i[u];--u>=0;)(r=i[u])&&(s&&4^r.compareDocumentPosition(s)&&s.parentNode.insertBefore(r,s),s=r);return this},sort:function(t){function n(f,h){return f&&h?t(f.__data__,h.__data__):!f-!h}t||(t=St);for(var e=this._groups,r=e.length,i=new Array(r),u=0;u<r;++u){for(var s,o=e[u],l=o.length,a=i[u]=new Array(l),c=0;c<l;++c)(s=o[c])&&(a[c]=s);a.sort(n)}return new g(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,u=r.length;i<u;++i){var s=r[i];if(s)return s}return null},size:function(){let t=0;for(const n of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,u=n[e],s=0,o=u.length;s<o;++s)(i=u[s])&&t.call(i,i.__data__,s,u);return this},attr:function(t,n){var e=T(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((n==null?e.local?Ct:Nt:typeof n=="function"?e.local?Lt:Tt:e.local?Pt:kt)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((n==null?Bt:typeof n=="function"?qt:Mt)(t,n,e??"")):C(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((n==null?Dt:typeof n=="function"?jt:Ot)(t,n)):this.node()[t]},classed:function(t,n){var e=G(t+"");if(arguments.length<2){for(var r=D(this.node()),i=-1,u=e.length;++i<u;)if(!r.contains(e[i]))return!1;return!0}return this.each((typeof n=="function"?zt:n?Vt:Xt)(e,n))},text:function(t){return arguments.length?this.each(t==null?Ht:(typeof t=="function"?Rt:It)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?Ut:(typeof t=="function"?$t:Yt)(t)):this.node().innerHTML},raise:function(){return this.each(Ft)},lower:function(){return this.each(Gt)},append:function(t){var n=typeof t=="function"?t:I(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function(t,n){var e=typeof t=="function"?t:I(t),r=n==null?Jt:typeof n=="function"?n:q(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(Kt)},clone:function(t){return this.select(t?Wt:Qt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,u=function(f){return f.trim().split(/^|\s+/).map(function(h){var p="",_=h.indexOf(".");return _>=0&&(p=h.slice(_+1),h=h.slice(0,_)),{type:h,name:p}})}(t+""),s=u.length;if(!(arguments.length<2)){for(o=n?tn:Zt,r=0;r<s;++r)this.each(o(u[r],n,e));return this}var o=this.node().__on;if(o){for(var l,a=0,c=o.length;a<c;++a)for(r=0,l=o[a];r<s;++r)if((i=u[r]).type===l.type&&i.name===l.name)return l.value}},dispatch:function(t,n){return this.each((typeof n=="function"?en:nn)(t,n))},[Symbol.iterator]:function*(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r,i=t[n],u=0,s=i.length;u<s;++u)(r=i[u])&&(yield r)}};var on=ut("start","end","cancel","interrupt"),un=[];function B(t,n,e,r,i,u){var s=t.__transition;if(s){if(e in s)return}else t.__transition={};(function(o,l,a){var c,f=o.__transition;function h(m){a.state=1,a.timer.restart(p,a.delay,a.time),a.delay<=m&&p(m-a.delay)}function p(m){var d,x,S,v;if(a.state!==1)return y();for(d in f)if((v=f[d]).name===a.name){if(v.state===3)return z(p);v.state===4?(v.state=6,v.timer.stop(),v.on.call("interrupt",o,o.__data__,v.index,v.group),delete f[d]):+d<l&&(v.state=6,v.timer.stop(),v.on.call("cancel",o,o.__data__,v.index,v.group),delete f[d])}if(z(function(){a.state===3&&(a.state=4,a.timer.restart(_,a.delay,a.time),_(m))}),a.state=2,a.on.call("start",o,o.__data__,a.index,a.group),a.state===2){for(a.state=3,c=new Array(S=a.tween.length),d=0,x=-1;d<S;++d)(v=a.tween[d].value.call(o,o.__data__,a.index,a.group))&&(c[++x]=v);c.length=x+1}}function _(m){for(var d=m<a.duration?a.ease.call(null,m/a.duration):(a.timer.restart(y),a.state=5,1),x=-1,S=c.length;++x<S;)c[x].call(o,d);a.state===5&&(a.on.call("end",o,o.__data__,a.index,a.group),y())}function y(){for(var m in a.state=6,a.timer.stop(),delete f[l],f)return;delete o.__transition}f[l]=a,a.timer=ot(h,0,a.time)})(t,e,{name:n,index:r,group:i,on,tween:un,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:0})}function O(t,n){var e=w(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function A(t,n){var e=w(t,n);if(e.state>3)throw new Error("too late; already running");return e}function w(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function tt(t,n){var e,r,i,u=t.__transition,s=!0;if(u){for(i in n=n==null?null:n+"",u)(e=u[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete u[i]):s=!1;s&&delete t.__transition}}function sn(t,n){var e,r;return function(){var i=A(this,t),u=i.tween;if(u!==e){for(var s=0,o=(r=e=u).length;s<o;++s)if(r[s].name===n){(r=r.slice()).splice(s,1);break}}i.tween=r}}function an(t,n,e){var r,i;if(typeof e!="function")throw new Error;return function(){var u=A(this,t),s=u.tween;if(s!==r){i=(r=s).slice();for(var o={name:n,value:e},l=0,a=i.length;l<a;++l)if(i[l].name===n){i[l]=o;break}l===a&&i.push(o)}u.tween=i}}function j(t,n,e){var r=t._id;return t.each(function(){var i=A(this,r);(i.value||(i.value={}))[n]=e.apply(this,arguments)}),function(i){return w(i,r).value[n]}}function nt(t,n){var e;return(typeof n=="number"?st:n instanceof X?V:(e=X(n))?(n=e,V):at)(t,n)}function ln(t){return function(){this.removeAttribute(t)}}function cn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function fn(t,n,e){var r,i,u=e+"";return function(){var s=this.getAttribute(t);return s===u?null:s===r?i:i=n(r=s,e)}}function hn(t,n,e){var r,i,u=e+"";return function(){var s=this.getAttributeNS(t.space,t.local);return s===u?null:s===r?i:i=n(r=s,e)}}function pn(t,n,e){var r,i,u;return function(){var s,o,l=e(this);if(l!=null)return(s=this.getAttribute(t))===(o=l+"")?null:s===r&&o===i?u:(i=o,u=n(r=s,l));this.removeAttribute(t)}}function _n(t,n,e){var r,i,u;return function(){var s,o,l=e(this);if(l!=null)return(s=this.getAttributeNS(t.space,t.local))===(o=l+"")?null:s===r&&o===i?u:(i=o,u=n(r=s,l));this.removeAttributeNS(t.space,t.local)}}function vn(t,n){var e,r;function i(){var u=n.apply(this,arguments);return u!==r&&(e=(r=u)&&function(s,o){return function(l){this.setAttributeNS(s.space,s.local,o.call(this,l))}}(t,u)),e}return i._value=n,i}function dn(t,n){var e,r;function i(){var u=n.apply(this,arguments);return u!==r&&(e=(r=u)&&function(s,o){return function(l){this.setAttribute(s,o.call(this,l))}}(t,u)),e}return i._value=n,i}function yn(t,n){return function(){O(this,t).delay=+n.apply(this,arguments)}}function mn(t,n){return n=+n,function(){O(this,t).delay=n}}function gn(t,n){return function(){A(this,t).duration=+n.apply(this,arguments)}}function wn(t,n){return n=+n,function(){A(this,t).duration=n}}var An=k.prototype.constructor;function et(t){return function(){this.style.removeProperty(t)}}var xn=0;function b(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function rt(){return++xn}var E=k.prototype;b.prototype={constructor:b,select:function(t){var n=this._name,e=this._id;typeof t!="function"&&(t=q(t));for(var r=this._groups,i=r.length,u=new Array(i),s=0;s<i;++s)for(var o,l,a=r[s],c=a.length,f=u[s]=new Array(c),h=0;h<c;++h)(o=a[h])&&(l=t.call(o,o.__data__,h,a))&&("__data__"in o&&(l.__data__=o.__data__),f[h]=l,B(f[h],n,e,h,f,w(o,e)));return new b(u,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;typeof t!="function"&&(t=R(t));for(var r=this._groups,i=r.length,u=[],s=[],o=0;o<i;++o)for(var l,a=r[o],c=a.length,f=0;f<c;++f)if(l=a[f]){for(var h,p=t.call(l,l.__data__,f,a),_=w(l,e),y=0,m=p.length;y<m;++y)(h=p[y])&&B(h,n,e,y,p,_);u.push(p),s.push(l)}return new b(u,s,n,e)},selectChild:E.selectChild,selectChildren:E.selectChildren,filter:function(t){typeof t!="function"&&(t=U(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var u,s=n[i],o=s.length,l=r[i]=[],a=0;a<o;++a)(u=s[a])&&t.call(u,u.__data__,a,s)&&l.push(u);return new b(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,u=Math.min(r,i),s=new Array(r),o=0;o<u;++o)for(var l,a=n[o],c=e[o],f=a.length,h=s[o]=new Array(f),p=0;p<f;++p)(l=a[p]||c[p])&&(h[p]=l);for(;o<r;++o)s[o]=n[o];return new b(s,this._parents,this._name,this._id)},selection:function(){return new An(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=rt(),r=this._groups,i=r.length,u=0;u<i;++u)for(var s,o=r[u],l=o.length,a=0;a<l;++a)if(s=o[a]){var c=w(s,n);B(s,t,e,a,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new b(r,this._parents,t,e)},call:E.call,nodes:E.nodes,node:E.node,size:E.size,empty:E.empty,each:E.each,on:function(t,n){var e=this._id;return arguments.length<2?w(this.node(),e).on.on(t):this.each(function(r,i,u){var s,o,l=function(a){return(a+"").trim().split(/^|\s+/).every(function(c){var f=c.indexOf(".");return f>=0&&(c=c.slice(0,f)),!c||c==="start"})}(i)?O:A;return function(){var a=l(this,r),c=a.on;c!==s&&(o=(s=c).copy()).on(i,u),a.on=o}}(e,t,n))},attr:function(t,n){var e=T(t),r=e==="transform"?lt:nt;return this.attrTween(t,typeof n=="function"?(e.local?_n:pn)(e,r,j(this,"attr."+t,n)):n==null?(e.local?cn:ln)(e):(e.local?hn:fn)(e,r,n))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(n==null)return this.tween(e,null);if(typeof n!="function")throw new Error;var r=T(t);return this.tween(e,(r.local?vn:dn)(r,n))},style:function(t,n,e){var r=(t+="")=="transform"?ct:nt;return n==null?this.styleTween(t,function(i,u){var s,o,l;return function(){var a=C(this,i),c=(this.style.removeProperty(i),C(this,i));return a===c?null:a===s&&c===o?l:l=u(s=a,o=c)}}(t,r)).on("end.style."+t,et(t)):typeof n=="function"?this.styleTween(t,function(i,u,s){var o,l,a;return function(){var c=C(this,i),f=s(this),h=f+"";return f==null&&(this.style.removeProperty(i),h=f=C(this,i)),c===h?null:c===o&&h===l?a:(l=h,a=u(o=c,f))}}(t,r,j(this,"style."+t,n))).each(function(i,u){var s,o,l,a,c="style."+u,f="end."+c;return function(){var h=A(this,i),p=h.on,_=h.value[c]==null?a||(a=et(u)):void 0;p===s&&l===_||(o=(s=p).copy()).on(f,l=_),h.on=o}}(this._id,t)):this.styleTween(t,function(i,u,s){var o,l,a=s+"";return function(){var c=C(this,i);return c===a?null:c===o?l:l=u(o=c,s)}}(t,r,n),e).on("end.style."+t,null)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(n==null)return this.tween(r,null);if(typeof n!="function")throw new Error;return this.tween(r,function(i,u,s){var o,l;function a(){var c=u.apply(this,arguments);return c!==l&&(o=(l=c)&&function(f,h,p){return function(_){this.style.setProperty(f,h.call(this,_),p)}}(i,c,s)),o}return a._value=u,a}(t,n,e??""))},text:function(t){return this.tween("text",typeof t=="function"?function(n){return function(){var e=n(this);this.textContent=e??""}}(j(this,"text",t)):function(n){return function(){this.textContent=n}}(t==null?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,function(e){var r,i;function u(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&function(o){return function(l){this.textContent=o.call(this,l)}}(s)),r}return u._value=e,u}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=w(this.node(),e).tween,u=0,s=i.length;u<s;++u)if((r=i[u]).name===t)return r.value;return null}return this.each((n==null?sn:an)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?yn:mn)(n,t)):w(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?gn:wn)(n,t)):w(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(function(e,r){if(typeof r!="function")throw new Error;return function(){A(this,e).ease=r}}(n,t)):w(this.node(),n).ease},easeVarying:function(t){if(typeof t!="function")throw new Error;return this.each(function(n,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;A(this,n).ease=r}}(this._id,t))},end:function(){var t,n,e=this,r=e._id,i=e.size();return new Promise(function(u,s){var o={value:s},l={value:function(){--i===0&&u()}};e.each(function(){var a=A(this,r),c=a.on;c!==t&&((n=(t=c).copy())._.cancel.push(o),n._.interrupt.push(o),n._.end.push(l)),a.on=n}),i===0&&u()})},[Symbol.iterator]:E[Symbol.iterator]};var bn={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function En(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return e}function N(t,n,e){this.k=t,this.x=n,this.y=e}k.prototype.interrupt=function(t){return this.each(function(){tt(this,t)})},k.prototype.transition=function(t){var n,e;t instanceof b?(n=t._id,t=t._name):(n=rt(),(e=bn).time=ft(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,u=0;u<i;++u)for(var s,o=r[u],l=o.length,a=0;a<l;++a)(s=o[a])&&B(s,t,n,a,o,e||En(s,n));return new b(r,this._parents,t,n)},N.prototype={constructor:N,scale:function(t){return t===1?this:new N(this.k*t,this.x,this.y)},translate:function(t,n){return t===0&n===0?this:new N(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Sn=new N(1,0,0);N.prototype;export{N as T,tt as a,Sn as i,rn as s};
|
1
|
+
import{T as it,t as ot,g as ut,i as st,a as V,b as at,f as X,j as lt,k as ct,l as ft}from"./timer-BwIYMJWC.js";var M="http://www.w3.org/1999/xhtml";const z={svg:"http://www.w3.org/2000/svg",xhtml:M,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function T(t){var n=t+="",e=n.indexOf(":");return e>=0&&(n=t.slice(0,e))!=="xmlns"&&(t=t.slice(e+1)),z.hasOwnProperty(n)?{space:z[n],local:t}:t}function ht(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===M&&n.documentElement.namespaceURI===M?n.createElement(t):n.createElementNS(e,t)}}function pt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function H(t){var n=T(t);return(n.local?pt:ht)(n)}function _t(){}function q(t){return t==null?_t:function(){return this.querySelector(t)}}function vt(){return[]}function I(t){return t==null?vt:function(){return this.querySelectorAll(t)}}function dt(t){return function(){return(n=t.apply(this,arguments))==null?[]:Array.isArray(n)?n:Array.from(n);var n}}function R(t){return function(){return this.matches(t)}}function U(t){return function(n){return n.matches(t)}}var yt=Array.prototype.find;function mt(){return this.firstElementChild}var gt=Array.prototype.filter;function wt(){return Array.from(this.children)}function Y(t){return new Array(t.length)}function L(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function At(t,n,e,r,i,u){for(var s,o=0,l=n.length,a=u.length;o<a;++o)(s=n[o])?(s.__data__=u[o],r[o]=s):e[o]=new L(t,u[o]);for(;o<l;++o)(s=n[o])&&(i[o]=s)}function xt(t,n,e,r,i,u,s){var o,l,a,c=new Map,f=n.length,h=u.length,p=new Array(f);for(o=0;o<f;++o)(l=n[o])&&(p[o]=a=s.call(l,l.__data__,o,n)+"",c.has(a)?i[o]=l:c.set(a,l));for(o=0;o<h;++o)a=s.call(t,u[o],o,u)+"",(l=c.get(a))?(r[o]=l,l.__data__=u[o],c.delete(a)):e[o]=new L(t,u[o]);for(o=0;o<f;++o)(l=n[o])&&c.get(p[o])===l&&(i[o]=l)}function bt(t){return t.__data__}function Et(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function St(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function Nt(t){return function(){this.removeAttribute(t)}}function Ct(t){return function(){this.removeAttributeNS(t.space,t.local)}}function kt(t,n){return function(){this.setAttribute(t,n)}}function Pt(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Tt(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttribute(t):this.setAttribute(t,e)}}function Lt(t,n){return function(){var e=n.apply(this,arguments);e==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function $(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Bt(t){return function(){this.style.removeProperty(t)}}function Mt(t,n,e){return function(){this.style.setProperty(t,n,e)}}function qt(t,n,e){return function(){var r=n.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function C(t,n){return t.style.getPropertyValue(n)||$(t).getComputedStyle(t,null).getPropertyValue(n)}function Dt(t){return function(){delete this[t]}}function Ot(t,n){return function(){this[t]=n}}function jt(t,n){return function(){var e=n.apply(this,arguments);e==null?delete this[t]:this[t]=e}}function F(t){return t.trim().split(/^|\s+/)}function D(t){return t.classList||new G(t)}function G(t){this._node=t,this._names=F(t.getAttribute("class")||"")}function J(t,n){for(var e=D(t),r=-1,i=n.length;++r<i;)e.add(n[r])}function K(t,n){for(var e=D(t),r=-1,i=n.length;++r<i;)e.remove(n[r])}function Vt(t){return function(){J(this,t)}}function Xt(t){return function(){K(this,t)}}function zt(t,n){return function(){(n.apply(this,arguments)?J:K)(this,t)}}function Ht(){this.textContent=""}function It(t){return function(){this.textContent=t}}function Rt(t){return function(){var n=t.apply(this,arguments);this.textContent=n??""}}function Ut(){this.innerHTML=""}function Yt(t){return function(){this.innerHTML=t}}function $t(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n??""}}function Ft(){this.nextSibling&&this.parentNode.appendChild(this)}function Gt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Jt(){return null}function Kt(){var t=this.parentNode;t&&t.removeChild(this)}function Qt(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Wt(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Zt(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,u=n.length;r<u;++r)e=n[r],t.type&&e.type!==t.type||e.name!==t.name?n[++i]=e:this.removeEventListener(e.type,e.listener,e.options);++i?n.length=i:delete this.__on}}}function tn(t,n,e){return function(){var r,i=this.__on,u=function(l){return function(a){l.call(this,a,this.__data__)}}(n);if(i){for(var s=0,o=i.length;s<o;++s)if((r=i[s]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=u,r.options=e),void(r.value=n)}this.addEventListener(t.type,u,e),r={type:t.type,name:t.name,value:n,listener:u,options:e},i?i.push(r):this.__on=[r]}}function Q(t,n,e){var r=$(t),i=r.CustomEvent;typeof i=="function"?i=new i(n,e):(i=r.document.createEvent("Event"),e?(i.initEvent(n,e.bubbles,e.cancelable),i.detail=e.detail):i.initEvent(n,!1,!1)),t.dispatchEvent(i)}function nn(t,n){return function(){return Q(this,t,n)}}function en(t,n){return function(){return Q(this,t,n.apply(this,arguments))}}L.prototype={constructor:L,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},G.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var W=[null];function g(t,n){this._groups=t,this._parents=n}function k(){return new g([[document.documentElement]],W)}function rn(t){return typeof t=="string"?new g([[document.querySelector(t)]],[document.documentElement]):new g([[t]],W)}function Z(t,n,e){var r=new it;return n=n==null?0:+n,r.restart(i=>{r.stop(),t(i+n)},n,e),r}g.prototype=k.prototype={constructor:g,select:function(t){typeof t!="function"&&(t=q(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var u,s,o=n[i],l=o.length,a=r[i]=new Array(l),c=0;c<l;++c)(u=o[c])&&(s=t.call(u,u.__data__,c,o))&&("__data__"in u&&(s.__data__=u.__data__),a[c]=s);return new g(r,this._parents)},selectAll:function(t){t=typeof t=="function"?dt(t):I(t);for(var n=this._groups,e=n.length,r=[],i=[],u=0;u<e;++u)for(var s,o=n[u],l=o.length,a=0;a<l;++a)(s=o[a])&&(r.push(t.call(s,s.__data__,a,o)),i.push(s));return new g(r,i)},selectChild:function(t){return this.select(t==null?mt:function(n){return function(){return yt.call(this.children,n)}}(typeof t=="function"?t:U(t)))},selectChildren:function(t){return this.selectAll(t==null?wt:function(n){return function(){return gt.call(this.children,n)}}(typeof t=="function"?t:U(t)))},filter:function(t){typeof t!="function"&&(t=R(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var u,s=n[i],o=s.length,l=r[i]=[],a=0;a<o;++a)(u=s[a])&&t.call(u,u.__data__,a,s)&&l.push(u);return new g(r,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,bt);var e,r=n?xt:At,i=this._parents,u=this._groups;typeof t!="function"&&(e=t,t=function(){return e});for(var s=u.length,o=new Array(s),l=new Array(s),a=new Array(s),c=0;c<s;++c){var f=i[c],h=u[c],p=h.length,_=Et(t.call(f,f&&f.__data__,c,i)),y=_.length,m=l[c]=new Array(y),d=o[c]=new Array(y);r(f,h,m,d,a[c]=new Array(p),_,n);for(var x,S,v=0,P=0;v<y;++v)if(x=m[v]){for(v>=P&&(P=v+1);!(S=d[P])&&++P<y;);x._next=S||null}}return(o=new g(o,i))._enter=l,o._exit=a,o},enter:function(){return new g(this._enter||this._groups.map(Y),this._parents)},exit:function(){return new g(this._exit||this._groups.map(Y),this._parents)},join:function(t,n,e){var r=this.enter(),i=this,u=this.exit();return typeof t=="function"?(r=t(r))&&(r=r.selection()):r=r.append(t+""),n!=null&&(i=n(i))&&(i=i.selection()),e==null?u.remove():e(u),r&&i?r.merge(i).order():i},merge:function(t){for(var n=t.selection?t.selection():t,e=this._groups,r=n._groups,i=e.length,u=r.length,s=Math.min(i,u),o=new Array(i),l=0;l<s;++l)for(var a,c=e[l],f=r[l],h=c.length,p=o[l]=new Array(h),_=0;_<h;++_)(a=c[_]||f[_])&&(p[_]=a);for(;l<i;++l)o[l]=e[l];return new g(o,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,n=-1,e=t.length;++n<e;)for(var r,i=t[n],u=i.length-1,s=i[u];--u>=0;)(r=i[u])&&(s&&4^r.compareDocumentPosition(s)&&s.parentNode.insertBefore(r,s),s=r);return this},sort:function(t){function n(f,h){return f&&h?t(f.__data__,h.__data__):!f-!h}t||(t=St);for(var e=this._groups,r=e.length,i=new Array(r),u=0;u<r;++u){for(var s,o=e[u],l=o.length,a=i[u]=new Array(l),c=0;c<l;++c)(s=o[c])&&(a[c]=s);a.sort(n)}return new g(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r=t[n],i=0,u=r.length;i<u;++i){var s=r[i];if(s)return s}return null},size:function(){let t=0;for(const n of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,e=0,r=n.length;e<r;++e)for(var i,u=n[e],s=0,o=u.length;s<o;++s)(i=u[s])&&t.call(i,i.__data__,s,u);return this},attr:function(t,n){var e=T(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((n==null?e.local?Ct:Nt:typeof n=="function"?e.local?Lt:Tt:e.local?Pt:kt)(e,n))},style:function(t,n,e){return arguments.length>1?this.each((n==null?Bt:typeof n=="function"?qt:Mt)(t,n,e??"")):C(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((n==null?Dt:typeof n=="function"?jt:Ot)(t,n)):this.node()[t]},classed:function(t,n){var e=F(t+"");if(arguments.length<2){for(var r=D(this.node()),i=-1,u=e.length;++i<u;)if(!r.contains(e[i]))return!1;return!0}return this.each((typeof n=="function"?zt:n?Vt:Xt)(e,n))},text:function(t){return arguments.length?this.each(t==null?Ht:(typeof t=="function"?Rt:It)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(t==null?Ut:(typeof t=="function"?$t:Yt)(t)):this.node().innerHTML},raise:function(){return this.each(Ft)},lower:function(){return this.each(Gt)},append:function(t){var n=typeof t=="function"?t:H(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function(t,n){var e=typeof t=="function"?t:H(t),r=n==null?Jt:typeof n=="function"?n:q(n);return this.select(function(){return this.insertBefore(e.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(Kt)},clone:function(t){return this.select(t?Wt:Qt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,e){var r,i,u=function(f){return f.trim().split(/^|\s+/).map(function(h){var p="",_=h.indexOf(".");return _>=0&&(p=h.slice(_+1),h=h.slice(0,_)),{type:h,name:p}})}(t+""),s=u.length;if(!(arguments.length<2)){for(o=n?tn:Zt,r=0;r<s;++r)this.each(o(u[r],n,e));return this}var o=this.node().__on;if(o){for(var l,a=0,c=o.length;a<c;++a)for(r=0,l=o[a];r<s;++r)if((i=u[r]).type===l.type&&i.name===l.name)return l.value}},dispatch:function(t,n){return this.each((typeof n=="function"?en:nn)(t,n))},[Symbol.iterator]:function*(){for(var t=this._groups,n=0,e=t.length;n<e;++n)for(var r,i=t[n],u=0,s=i.length;u<s;++u)(r=i[u])&&(yield r)}};var on=ut("start","end","cancel","interrupt"),un=[];function B(t,n,e,r,i,u){var s=t.__transition;if(s){if(e in s)return}else t.__transition={};(function(o,l,a){var c,f=o.__transition;function h(m){a.state=1,a.timer.restart(p,a.delay,a.time),a.delay<=m&&p(m-a.delay)}function p(m){var d,x,S,v;if(a.state!==1)return y();for(d in f)if((v=f[d]).name===a.name){if(v.state===3)return Z(p);v.state===4?(v.state=6,v.timer.stop(),v.on.call("interrupt",o,o.__data__,v.index,v.group),delete f[d]):+d<l&&(v.state=6,v.timer.stop(),v.on.call("cancel",o,o.__data__,v.index,v.group),delete f[d])}if(Z(function(){a.state===3&&(a.state=4,a.timer.restart(_,a.delay,a.time),_(m))}),a.state=2,a.on.call("start",o,o.__data__,a.index,a.group),a.state===2){for(a.state=3,c=new Array(S=a.tween.length),d=0,x=-1;d<S;++d)(v=a.tween[d].value.call(o,o.__data__,a.index,a.group))&&(c[++x]=v);c.length=x+1}}function _(m){for(var d=m<a.duration?a.ease.call(null,m/a.duration):(a.timer.restart(y),a.state=5,1),x=-1,S=c.length;++x<S;)c[x].call(o,d);a.state===5&&(a.on.call("end",o,o.__data__,a.index,a.group),y())}function y(){for(var m in a.state=6,a.timer.stop(),delete f[l],f)return;delete o.__transition}f[l]=a,a.timer=ot(h,0,a.time)})(t,e,{name:n,index:r,group:i,on,tween:un,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:0})}function O(t,n){var e=w(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function A(t,n){var e=w(t,n);if(e.state>3)throw new Error("too late; already running");return e}function w(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function tt(t,n){var e,r,i,u=t.__transition,s=!0;if(u){for(i in n=n==null?null:n+"",u)(e=u[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete u[i]):s=!1;s&&delete t.__transition}}function sn(t,n){var e,r;return function(){var i=A(this,t),u=i.tween;if(u!==e){for(var s=0,o=(r=e=u).length;s<o;++s)if(r[s].name===n){(r=r.slice()).splice(s,1);break}}i.tween=r}}function an(t,n,e){var r,i;if(typeof e!="function")throw new Error;return function(){var u=A(this,t),s=u.tween;if(s!==r){i=(r=s).slice();for(var o={name:n,value:e},l=0,a=i.length;l<a;++l)if(i[l].name===n){i[l]=o;break}l===a&&i.push(o)}u.tween=i}}function j(t,n,e){var r=t._id;return t.each(function(){var i=A(this,r);(i.value||(i.value={}))[n]=e.apply(this,arguments)}),function(i){return w(i,r).value[n]}}function nt(t,n){var e;return(typeof n=="number"?st:n instanceof X?V:(e=X(n))?(n=e,V):at)(t,n)}function ln(t){return function(){this.removeAttribute(t)}}function cn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function fn(t,n,e){var r,i,u=e+"";return function(){var s=this.getAttribute(t);return s===u?null:s===r?i:i=n(r=s,e)}}function hn(t,n,e){var r,i,u=e+"";return function(){var s=this.getAttributeNS(t.space,t.local);return s===u?null:s===r?i:i=n(r=s,e)}}function pn(t,n,e){var r,i,u;return function(){var s,o,l=e(this);if(l!=null)return(s=this.getAttribute(t))===(o=l+"")?null:s===r&&o===i?u:(i=o,u=n(r=s,l));this.removeAttribute(t)}}function _n(t,n,e){var r,i,u;return function(){var s,o,l=e(this);if(l!=null)return(s=this.getAttributeNS(t.space,t.local))===(o=l+"")?null:s===r&&o===i?u:(i=o,u=n(r=s,l));this.removeAttributeNS(t.space,t.local)}}function vn(t,n){var e,r;function i(){var u=n.apply(this,arguments);return u!==r&&(e=(r=u)&&function(s,o){return function(l){this.setAttributeNS(s.space,s.local,o.call(this,l))}}(t,u)),e}return i._value=n,i}function dn(t,n){var e,r;function i(){var u=n.apply(this,arguments);return u!==r&&(e=(r=u)&&function(s,o){return function(l){this.setAttribute(s,o.call(this,l))}}(t,u)),e}return i._value=n,i}function yn(t,n){return function(){O(this,t).delay=+n.apply(this,arguments)}}function mn(t,n){return n=+n,function(){O(this,t).delay=n}}function gn(t,n){return function(){A(this,t).duration=+n.apply(this,arguments)}}function wn(t,n){return n=+n,function(){A(this,t).duration=n}}var An=k.prototype.constructor;function et(t){return function(){this.style.removeProperty(t)}}var xn=0;function b(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function rt(){return++xn}var E=k.prototype;b.prototype={constructor:b,select:function(t){var n=this._name,e=this._id;typeof t!="function"&&(t=q(t));for(var r=this._groups,i=r.length,u=new Array(i),s=0;s<i;++s)for(var o,l,a=r[s],c=a.length,f=u[s]=new Array(c),h=0;h<c;++h)(o=a[h])&&(l=t.call(o,o.__data__,h,a))&&("__data__"in o&&(l.__data__=o.__data__),f[h]=l,B(f[h],n,e,h,f,w(o,e)));return new b(u,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;typeof t!="function"&&(t=I(t));for(var r=this._groups,i=r.length,u=[],s=[],o=0;o<i;++o)for(var l,a=r[o],c=a.length,f=0;f<c;++f)if(l=a[f]){for(var h,p=t.call(l,l.__data__,f,a),_=w(l,e),y=0,m=p.length;y<m;++y)(h=p[y])&&B(h,n,e,y,p,_);u.push(p),s.push(l)}return new b(u,s,n,e)},selectChild:E.selectChild,selectChildren:E.selectChildren,filter:function(t){typeof t!="function"&&(t=R(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var u,s=n[i],o=s.length,l=r[i]=[],a=0;a<o;++a)(u=s[a])&&t.call(u,u.__data__,a,s)&&l.push(u);return new b(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,u=Math.min(r,i),s=new Array(r),o=0;o<u;++o)for(var l,a=n[o],c=e[o],f=a.length,h=s[o]=new Array(f),p=0;p<f;++p)(l=a[p]||c[p])&&(h[p]=l);for(;o<r;++o)s[o]=n[o];return new b(s,this._parents,this._name,this._id)},selection:function(){return new An(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=rt(),r=this._groups,i=r.length,u=0;u<i;++u)for(var s,o=r[u],l=o.length,a=0;a<l;++a)if(s=o[a]){var c=w(s,n);B(s,t,e,a,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new b(r,this._parents,t,e)},call:E.call,nodes:E.nodes,node:E.node,size:E.size,empty:E.empty,each:E.each,on:function(t,n){var e=this._id;return arguments.length<2?w(this.node(),e).on.on(t):this.each(function(r,i,u){var s,o,l=function(a){return(a+"").trim().split(/^|\s+/).every(function(c){var f=c.indexOf(".");return f>=0&&(c=c.slice(0,f)),!c||c==="start"})}(i)?O:A;return function(){var a=l(this,r),c=a.on;c!==s&&(o=(s=c).copy()).on(i,u),a.on=o}}(e,t,n))},attr:function(t,n){var e=T(t),r=e==="transform"?lt:nt;return this.attrTween(t,typeof n=="function"?(e.local?_n:pn)(e,r,j(this,"attr."+t,n)):n==null?(e.local?cn:ln)(e):(e.local?hn:fn)(e,r,n))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(n==null)return this.tween(e,null);if(typeof n!="function")throw new Error;var r=T(t);return this.tween(e,(r.local?vn:dn)(r,n))},style:function(t,n,e){var r=(t+="")=="transform"?ct:nt;return n==null?this.styleTween(t,function(i,u){var s,o,l;return function(){var a=C(this,i),c=(this.style.removeProperty(i),C(this,i));return a===c?null:a===s&&c===o?l:l=u(s=a,o=c)}}(t,r)).on("end.style."+t,et(t)):typeof n=="function"?this.styleTween(t,function(i,u,s){var o,l,a;return function(){var c=C(this,i),f=s(this),h=f+"";return f==null&&(this.style.removeProperty(i),h=f=C(this,i)),c===h?null:c===o&&h===l?a:(l=h,a=u(o=c,f))}}(t,r,j(this,"style."+t,n))).each(function(i,u){var s,o,l,a,c="style."+u,f="end."+c;return function(){var h=A(this,i),p=h.on,_=h.value[c]==null?a||(a=et(u)):void 0;p===s&&l===_||(o=(s=p).copy()).on(f,l=_),h.on=o}}(this._id,t)):this.styleTween(t,function(i,u,s){var o,l,a=s+"";return function(){var c=C(this,i);return c===a?null:c===o?l:l=u(o=c,s)}}(t,r,n),e).on("end.style."+t,null)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(n==null)return this.tween(r,null);if(typeof n!="function")throw new Error;return this.tween(r,function(i,u,s){var o,l;function a(){var c=u.apply(this,arguments);return c!==l&&(o=(l=c)&&function(f,h,p){return function(_){this.style.setProperty(f,h.call(this,_),p)}}(i,c,s)),o}return a._value=u,a}(t,n,e??""))},text:function(t){return this.tween("text",typeof t=="function"?function(n){return function(){var e=n(this);this.textContent=e??""}}(j(this,"text",t)):function(n){return function(){this.textContent=n}}(t==null?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,function(e){var r,i;function u(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&function(o){return function(l){this.textContent=o.call(this,l)}}(s)),r}return u._value=e,u}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=w(this.node(),e).tween,u=0,s=i.length;u<s;++u)if((r=i[u]).name===t)return r.value;return null}return this.each((n==null?sn:an)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?yn:mn)(n,t)):w(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?gn:wn)(n,t)):w(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(function(e,r){if(typeof r!="function")throw new Error;return function(){A(this,e).ease=r}}(n,t)):w(this.node(),n).ease},easeVarying:function(t){if(typeof t!="function")throw new Error;return this.each(function(n,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;A(this,n).ease=r}}(this._id,t))},end:function(){var t,n,e=this,r=e._id,i=e.size();return new Promise(function(u,s){var o={value:s},l={value:function(){--i===0&&u()}};e.each(function(){var a=A(this,r),c=a.on;c!==t&&((n=(t=c).copy())._.cancel.push(o),n._.interrupt.push(o),n._.end.push(l)),a.on=n}),i===0&&u()})},[Symbol.iterator]:E[Symbol.iterator]};var bn={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function En(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return e}function N(t,n,e){this.k=t,this.x=n,this.y=e}k.prototype.interrupt=function(t){return this.each(function(){tt(this,t)})},k.prototype.transition=function(t){var n,e;t instanceof b?(n=t._id,t=t._name):(n=rt(),(e=bn).time=ft(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,u=0;u<i;++u)for(var s,o=r[u],l=o.length,a=0;a<l;++a)(s=o[a])&&B(s,t,n,a,o,e||En(s,n));return new b(r,this._parents,t,n)},N.prototype={constructor:N,scale:function(t){return t===1?this:new N(this.k*t,this.x,this.y)},translate:function(t,n){return t===0&n===0?this:new N(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Sn=new N(1,0,0);N.prototype;export{N as T,tt as a,Sn as i,rn as s};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var ec=Object.defineProperty;var tc=(n,e,t)=>e in n?ec(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Je=(n,e,t)=>tc(n,typeof e!="symbol"?e+"":e,t);var Ut,Ft,Bt,Kt,Vt,Ht,jt,Wt,zt,Yt,qt,Xt,Qt,Zt,Jt,en,tn;import{oU as nc,di as rc,x as Hs,cO as ic,Q as St,d3 as sc,d8 as ac,d9 as oc,J as lc,M as js,K as Ws,bY as yi,oV as zs,ak as ae,da as cc,cX as Ys,oW as qs,aD as uc,cZ as Xs,aA as dc,oX as hc,d4 as fc,oY as pc,dc as we,P as dt,aC as Qs,ci as mc,oZ as z,o_ as Ee,an as ht}from"./index-BRsKX55I.js";import{b as Zs,a as nn}from"./_baseEach-Bt_hy8p5.js";import{g as gc,v as Y,h as Js,j as yc,k as Tc,a as ea,c as I,i as He,r as de,f as Ae,n as q}from"./_baseUniq-LUPmCTek.js";import{m as x,f as It,h as C,d as Ti,l as Ct,c as vc}from"./min-BEQ0qmNL.js";import{ac as M}from"./mermaid-BFX9YpwT.js";import{c as Z}from"./clone-BNsKcv3n.js";import{c as Rc}from"./_createAggregator-CSBoqMlf.js";var $c=Object.prototype.hasOwnProperty,ke=nc(function(n,e){if(rc(e)||Hs(e))ic(e,St(e),n);else for(var t in e)$c.call(e,t)&&sc(n,t,e[t])});function rn(n){for(var e=-1,t=n==null?0:n.length,r=0,i=[];++e<t;){var s=n[e];s&&(i[r++]=s)}return i}var er=lc(function(n,e){return js(n)?function(t,r,i,s){var a=-1,o=gc,l=!0,c=t.length,u=[],h=r.length;if(!c)return u;r.length>=200&&(o=oc,l=!1,r=new ac(r));e:for(;++a<c;){var d=t[a],f=d;if(d=d!==0?d:0,l&&f==f){for(var p=h;p--;)if(r[p]===f)continue e;u.push(d)}else o(r,f,s)||u.push(d)}return u}(n,Ws(e,1,js,!0)):[]});function J(n,e,t){var r=n==null?0:n.length;return r?(e=e===void 0?1:yi(e),zs(n,e<0?0:e,r)):[]}function sn(n,e,t){var r=n==null?0:n.length;return r?(e=e===void 0?1:yi(e),zs(n,0,(e=r-e)<0?0:e)):[]}function Ec(n,e){for(var t=-1,r=n==null?0:n.length;++t<r;)if(!e(n[t],t,n))return!1;return!0}function Ac(n,e){var t=!0;return Zs(n,function(r,i,s){return t=!!e(r,i,s)}),t}function be(n,e,t){return(ae(n)?Ec:Ac)(n,nn(e))}function Pe(n){return n&&n.length?n[0]:void 0}function xe(n,e){return Ws(x(n,e))}var kc=Object.prototype.hasOwnProperty,xc=Rc(function(n,e,t){kc.call(n,t)?n[t].push(e):cc(n,t,[e])});function ge(n){return typeof n=="string"||!ae(n)&&Ys(n)&&qs(n)=="[object String]"}var Sc=Math.max;function he(n,e,t,r){n=Hs(n)?n:Y(n),t=t?yi(t):0;var i=n.length;return t<0&&(t=Sc(i+t,0)),ge(n)?t<=i&&n.indexOf(e,t)>-1:!!i&&Js(n,e,t)>-1}function ta(n,e,t){return n!=null&&n.length?Js(n,e,0):-1}var na=Xs&&Xs.isRegExp,je=na?uc(na):function(n){return Ys(n)&&qs(n)=="[object RegExp]"};function Me(n,e){if(n==null)return{};var t=dc(yc(n),function(r){return[r]});return e=nn(e),hc(n,t,function(r,i){return e(r,i[0])})}function tr(n,e){return(ae(n)?fc:Tc)(n,function(t){if(typeof t!="function")throw new TypeError("Expected a function");return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}(nn(e)))}function Ic(n,e){var t;return Zs(n,function(r,i,s){return!(t=e(r,i,s))}),!!t}function ra(n,e,t){return(ae(n)?pc:Ic)(n,nn(e))}function vi(n){return n&&n.length?ea(n):[]}function oe(n){return typeof n=="object"&&n!==null&&typeof n.$type=="string"}function Ue(n){return typeof n=="object"&&n!==null&&typeof n.$refText=="string"}function nr(n){return typeof n=="object"&&n!==null&&oe(n.container)&&Ue(n.reference)&&typeof n.message=="string"}class ia{constructor(){this.subtypes={},this.allSubtypes={}}isInstance(e,t){return oe(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let r=this.subtypes[e];r||(r=this.subtypes[e]={});const i=r[t];if(i!==void 0)return i;{const s=this.computeIsSubtype(e,t);return r[t]=s,s}}getAllSubTypes(e){const t=this.allSubtypes[e];if(t)return t;{const r=this.getAllTypes(),i=[];for(const s of r)this.isSubtype(s,e)&&i.push(s);return this.allSubtypes[e]=i,i}}}function an(n){return typeof n=="object"&&n!==null&&Array.isArray(n.content)}function sa(n){return typeof n=="object"&&n!==null&&typeof n.tokenType=="object"}function aa(n){return an(n)&&typeof n.fullText=="string"}class re{constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){const e=this.iterator();let t=0,r=e.next();for(;!r.done;)t++,r=e.next();return t}toArray(){const e=[],t=this.iterator();let r;do r=t.next(),r.value!==void 0&&e.push(r.value);while(!r.done);return e}toSet(){return new Set(this)}toMap(e,t){const r=this.map(i=>[e?e(i):i,t?t(i):i]);return new Map(r)}toString(){return this.join()}concat(e){return new re(()=>({first:this.startFn(),firstDone:!1,iterator:e[Symbol.iterator]()}),t=>{let r;if(!t.firstDone){do if(r=this.nextFn(t.first),!r.done)return r;while(!r.done);t.firstDone=!0}do if(r=t.iterator.next(),!r.done)return r;while(!r.done);return Se})}join(e=","){const t=this.iterator();let r,i="",s=!1;do r=t.next(),r.done||(s&&(i+=e),i+=Cc(r.value)),s=!0;while(!r.done);return i}indexOf(e,t=0){const r=this.iterator();let i=0,s=r.next();for(;!s.done;){if(i>=t&&s.value===e)return i;s=r.next(),i++}return-1}every(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(!e(r.value))return!1;r=t.next()}return!0}some(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(e(r.value))return!0;r=t.next()}return!1}forEach(e){const t=this.iterator();let r=0,i=t.next();for(;!i.done;)e(i.value,r),i=t.next(),r++}map(e){return new re(this.startFn,t=>{const{done:r,value:i}=this.nextFn(t);return r?Se:{done:!1,value:e(i)}})}filter(e){return new re(this.startFn,t=>{let r;do if(r=this.nextFn(t),!r.done&&e(r.value))return r;while(!r.done);return Se})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,t){const r=this.iterator();let i=t,s=r.next();for(;!s.done;)i=i===void 0?s.value:e(i,s.value),s=r.next();return i}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,r){const i=e.next();if(i.done)return r;const s=this.recursiveReduce(e,t,r);return s===void 0?i.value:t(s,i.value)}find(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(e(r.value))return r.value;r=t.next()}}findIndex(e){const t=this.iterator();let r=0,i=t.next();for(;!i.done;){if(e(i.value))return r;i=t.next(),r++}return-1}includes(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(r.value===e)return!0;r=t.next()}return!1}flatMap(e){return new re(()=>({this:this.startFn()}),t=>{do{if(t.iterator){const s=t.iterator.next();if(!s.done)return s;t.iterator=void 0}const{done:r,value:i}=this.nextFn(t.this);if(!r){const s=e(i);if(!rr(s))return{done:!1,value:s};t.iterator=s[Symbol.iterator]()}}while(t.iterator);return Se})}flat(e){if(e===void 0&&(e=1),e<=0)return this;const t=e>1?this.flat(e-1):this;return new re(()=>({this:t.startFn()}),r=>{do{if(r.iterator){const a=r.iterator.next();if(!a.done)return a;r.iterator=void 0}const{done:i,value:s}=t.nextFn(r.this);if(!i){if(!rr(s))return{done:!1,value:s};r.iterator=s[Symbol.iterator]()}}while(r.iterator);return Se})}head(){const e=this.iterator().next();if(!e.done)return e.value}tail(e=1){return new re(()=>{const t=this.startFn();for(let r=0;r<e;r++)if(this.nextFn(t).done)return t;return t},this.nextFn)}limit(e){return new re(()=>({size:0,state:this.startFn()}),t=>(t.size++,t.size>e?Se:this.nextFn(t.state)))}distinct(e){return new re(()=>({set:new Set,internalState:this.startFn()}),t=>{let r;do if(r=this.nextFn(t.internalState),!r.done){const i=e?e(r.value):r.value;if(!t.set.has(i))return t.set.add(i),r}while(!r.done);return Se})}exclude(e,t){const r=new Set;for(const i of e){const s=t?t(i):i;r.add(s)}return this.filter(i=>{const s=t?t(i):i;return!r.has(s)})}}function Cc(n){return typeof n=="string"?n:n===void 0?"undefined":typeof n.toString=="function"?n.toString():Object.prototype.toString.call(n)}function rr(n){return!!n&&typeof n[Symbol.iterator]=="function"}const Nc=new re(()=>{},()=>Se),Se=Object.freeze({done:!0,value:void 0});function ee(...n){if(n.length===1){const e=n[0];if(e instanceof re)return e;if(rr(e))return new re(()=>e[Symbol.iterator](),t=>t.next());if(typeof e.length=="number")return new re(()=>({index:0}),t=>t.index<e.length?{done:!1,value:e[t.index++]}:Se)}return n.length>1?new re(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){const t=e.iterator.next();if(!t.done)return t;e.iterator=void 0}if(e.array){if(e.arrIndex<e.array.length)return{done:!1,value:e.array[e.arrIndex++]};e.array=void 0,e.arrIndex=0}if(e.collIndex<n.length){const t=n[e.collIndex++];rr(t)?e.iterator=t[Symbol.iterator]():t&&typeof t.length=="number"&&(e.array=t)}}while(e.iterator||e.array||e.collIndex<n.length);return Se}):Nc}class Ri extends re{constructor(e,t,r){super(()=>({iterators:r!=null&&r.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),i=>{for(i.pruned&&(i.iterators.pop(),i.pruned=!1);i.iterators.length>0;){const s=i.iterators[i.iterators.length-1].next();if(!s.done)return i.iterators.push(t(s.value)[Symbol.iterator]()),s;i.iterators.pop()}return Se})}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}}var $i,We;function Ei(n){return new Ri(n,e=>an(e)?e.content:[],{includeRoot:!0})}function Ai(n){return{start:{character:n.startColumn-1,line:n.startLine-1},end:{character:n.endColumn,line:n.endLine-1}}}function ir(n){if(!n)return;const{offset:e,end:t,range:r}=n;return{range:r,offset:e,end:t,length:t-e}}function wc(n,e){return function(r,i){if(r.end.line<i.start.line||r.end.line===i.start.line&&r.end.character<=i.start.character)return We.Before;if(r.start.line>i.end.line||r.start.line===i.end.line&&r.start.character>=i.end.character)return We.After;const s=r.start.line>i.start.line||r.start.line===i.start.line&&r.start.character>=i.start.character,a=r.end.line<i.end.line||r.end.line===i.end.line&&r.end.character<=i.end.character;return s&&a?We.Inside:s?We.OverlapBack:a?We.OverlapFront:We.Outside}(n,e)>We.After}(function(n){n.sum=function(e){return e.reduce((t,r)=>t+r,0)},n.product=function(e){return e.reduce((t,r)=>t*r,0)},n.min=function(e){return e.reduce((t,r)=>Math.min(t,r))},n.max=function(e){return e.reduce((t,r)=>Math.max(t,r))}})($i||($i={})),function(n){n[n.Before=0]="Before",n[n.After=1]="After",n[n.OverlapFront=2]="OverlapFront",n[n.OverlapBack=3]="OverlapBack",n[n.Inside=4]="Inside",n[n.Outside=5]="Outside"}(We||(We={}));const Lc=/^[\w\p{L}]$/u;function Oc(n,e){if(n){const t=function(r,i=!0){for(;r.container;){const s=r.container;let a=s.content.indexOf(r);for(;a>0;){a--;const o=s.content[a];if(i||!o.hidden)return o}r=s}}(n,!0);if(t&&oa(t,e))return t;if(aa(n))for(let r=n.content.findIndex(i=>!i.hidden)-1;r>=0;r--){const i=n.content[r];if(oa(i,e))return i}}}function oa(n,e){return sa(n)&&e.includes(n.tokenType.name)}class la extends Error{constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}}function on(n){throw new Error("Error! The input value was not handled.")}const sr="AbstractRule",ar="AbstractType",ki="Condition",ca="TypeDefinition",xi="ValueLiteral",ln="AbstractElement";function _c(n){return b.isInstance(n,ln)}const or="ArrayLiteral",lr="ArrayType",cn="BooleanLiteral",un="Conjunction",dn="Disjunction",cr="Grammar",Si="GrammarImport",hn="InferredType";function ua(n){return b.isInstance(n,hn)}const fn="Interface";function da(n){return b.isInstance(n,fn)}const Ii="NamedArgument",pn="Negation",ur="NumberLiteral",dr="Parameter",mn="ParameterReference",gn="ParserRule";function Le(n){return b.isInstance(n,gn)}const hr="ReferenceType",fr="ReturnType",yn="SimpleType";function bc(n){return b.isInstance(n,yn)}const pr="StringLiteral",Nt="TerminalRule";function ft(n){return b.isInstance(n,Nt)}const Tn="Type";function ha(n){return b.isInstance(n,Tn)}const Ci="TypeAttribute",mr="UnionType",vn="Action";function gr(n){return b.isInstance(n,vn)}const Rn="Alternatives";function fa(n){return b.isInstance(n,Rn)}const $n="Assignment";function pt(n){return b.isInstance(n,$n)}const En="CharacterRange",An="CrossReference";function Ni(n){return b.isInstance(n,An)}const kn="EndOfFile",xn="Group";function wi(n){return b.isInstance(n,xn)}const Sn="Keyword";function mt(n){return b.isInstance(n,Sn)}const In="NegatedToken",Cn="RegexToken",Nn="RuleCall";function gt(n){return b.isInstance(n,Nn)}const wn="TerminalAlternatives",Ln="TerminalGroup",On="TerminalRuleCall",_n="UnorderedGroup";function pa(n){return b.isInstance(n,_n)}const bn="UntilToken",Pn="Wildcard";class ma extends ia{getAllTypes(){return[ln,sr,ar,vn,Rn,or,lr,$n,cn,En,ki,un,An,dn,kn,cr,Si,xn,hn,fn,Sn,Ii,In,pn,ur,dr,mn,gn,hr,Cn,fr,Nn,yn,pr,wn,Ln,Nt,On,Tn,Ci,ca,mr,_n,bn,xi,Pn]}computeIsSubtype(e,t){switch(e){case vn:case Rn:case $n:case En:case An:case kn:case xn:case Sn:case In:case Cn:case Nn:case wn:case Ln:case On:case _n:case bn:case Pn:return this.isSubtype(ln,t);case or:case ur:case pr:return this.isSubtype(xi,t);case lr:case hr:case yn:case mr:return this.isSubtype(ca,t);case cn:return this.isSubtype(ki,t)||this.isSubtype(xi,t);case un:case dn:case pn:case mn:return this.isSubtype(ki,t);case hn:case fn:case Tn:return this.isSubtype(ar,t);case gn:return this.isSubtype(sr,t)||this.isSubtype(ar,t);case Nt:return this.isSubtype(sr,t);default:return!1}}getReferenceType(e){const t=`${e.container.$type}:${e.property}`;switch(t){case"Action:type":case"CrossReference:type":case"Interface:superTypes":case"ParserRule:returnType":case"SimpleType:typeRef":return ar;case"Grammar:hiddenTokens":case"ParserRule:hiddenTokens":case"RuleCall:rule":return sr;case"Grammar:usedGrammars":return cr;case"NamedArgument:parameter":case"ParameterReference:parameter":return dr;case"TerminalRuleCall:rule":return Nt;default:throw new Error(`${t} is not a valid reference id.`)}}getTypeMetaData(e){switch(e){case ln:return{name:ln,properties:[{name:"cardinality"},{name:"lookahead"}]};case or:return{name:or,properties:[{name:"elements",defaultValue:[]}]};case lr:return{name:lr,properties:[{name:"elementType"}]};case cn:return{name:cn,properties:[{name:"true",defaultValue:!1}]};case un:return{name:un,properties:[{name:"left"},{name:"right"}]};case dn:return{name:dn,properties:[{name:"left"},{name:"right"}]};case cr:return{name:cr,properties:[{name:"definesHiddenTokens",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"imports",defaultValue:[]},{name:"interfaces",defaultValue:[]},{name:"isDeclared",defaultValue:!1},{name:"name"},{name:"rules",defaultValue:[]},{name:"types",defaultValue:[]},{name:"usedGrammars",defaultValue:[]}]};case Si:return{name:Si,properties:[{name:"path"}]};case hn:return{name:hn,properties:[{name:"name"}]};case fn:return{name:fn,properties:[{name:"attributes",defaultValue:[]},{name:"name"},{name:"superTypes",defaultValue:[]}]};case Ii:return{name:Ii,properties:[{name:"calledByName",defaultValue:!1},{name:"parameter"},{name:"value"}]};case pn:return{name:pn,properties:[{name:"value"}]};case ur:return{name:ur,properties:[{name:"value"}]};case dr:return{name:dr,properties:[{name:"name"}]};case mn:return{name:mn,properties:[{name:"parameter"}]};case gn:return{name:gn,properties:[{name:"dataType"},{name:"definesHiddenTokens",defaultValue:!1},{name:"definition"},{name:"entry",defaultValue:!1},{name:"fragment",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"inferredType"},{name:"name"},{name:"parameters",defaultValue:[]},{name:"returnType"},{name:"wildcard",defaultValue:!1}]};case hr:return{name:hr,properties:[{name:"referenceType"}]};case fr:return{name:fr,properties:[{name:"name"}]};case yn:return{name:yn,properties:[{name:"primitiveType"},{name:"stringType"},{name:"typeRef"}]};case pr:return{name:pr,properties:[{name:"value"}]};case Nt:return{name:Nt,properties:[{name:"definition"},{name:"fragment",defaultValue:!1},{name:"hidden",defaultValue:!1},{name:"name"},{name:"type"}]};case Tn:return{name:Tn,properties:[{name:"name"},{name:"type"}]};case Ci:return{name:Ci,properties:[{name:"defaultValue"},{name:"isOptional",defaultValue:!1},{name:"name"},{name:"type"}]};case mr:return{name:mr,properties:[{name:"types",defaultValue:[]}]};case vn:return{name:vn,properties:[{name:"cardinality"},{name:"feature"},{name:"inferredType"},{name:"lookahead"},{name:"operator"},{name:"type"}]};case Rn:return{name:Rn,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case $n:return{name:$n,properties:[{name:"cardinality"},{name:"feature"},{name:"lookahead"},{name:"operator"},{name:"terminal"}]};case En:return{name:En,properties:[{name:"cardinality"},{name:"left"},{name:"lookahead"},{name:"right"}]};case An:return{name:An,properties:[{name:"cardinality"},{name:"deprecatedSyntax",defaultValue:!1},{name:"lookahead"},{name:"terminal"},{name:"type"}]};case kn:return{name:kn,properties:[{name:"cardinality"},{name:"lookahead"}]};case xn:return{name:xn,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"guardCondition"},{name:"lookahead"}]};case Sn:return{name:Sn,properties:[{name:"cardinality"},{name:"lookahead"},{name:"value"}]};case In:return{name:In,properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case Cn:return{name:Cn,properties:[{name:"cardinality"},{name:"lookahead"},{name:"regex"}]};case Nn:return{name:Nn,properties:[{name:"arguments",defaultValue:[]},{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case wn:return{name:wn,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case Ln:return{name:Ln,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case On:return{name:On,properties:[{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case _n:return{name:_n,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case bn:return{name:bn,properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case Pn:return{name:Pn,properties:[{name:"cardinality"},{name:"lookahead"}]};default:return{name:e,properties:[]}}}}const b=new ma;function yr(n,e){let t=n;for(;t;){if(e(t))return t;t=t.$container}}function et(n){const e=Li(n).$document;if(!e)throw new Error("AST node has no document.");return e}function Li(n){for(;n.$container;)n=n.$container;return n}function Oi(n,e){if(!n)throw new Error("Node must be an AstNode.");const t=e==null?void 0:e.range;return new re(()=>({keys:Object.keys(n),keyIndex:0,arrayIndex:0}),r=>{for(;r.keyIndex<r.keys.length;){const i=r.keys[r.keyIndex];if(!i.startsWith("$")){const s=n[i];if(oe(s)){if(r.keyIndex++,ga(s,t))return{done:!1,value:s}}else if(Array.isArray(s)){for(;r.arrayIndex<s.length;){const a=s[r.arrayIndex++];if(oe(a)&&ga(a,t))return{done:!1,value:a}}r.arrayIndex=0}}r.keyIndex++}return Se})}function Mn(n,e){if(!n)throw new Error("Root node must be an AstNode.");return new Ri(n,t=>Oi(t,e))}function wt(n,e){if(!n)throw new Error("Root node must be an AstNode.");return new Ri(n,t=>Oi(t,e),{includeRoot:!0})}function ga(n,e){var t;if(!e)return!0;const r=(t=n.$cstNode)===null||t===void 0?void 0:t.range;return!!r&&wc(r,e)}function ya(n){return new re(()=>({keys:Object.keys(n),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndex<e.keys.length;){const t=e.keys[e.keyIndex];if(!t.startsWith("$")){const r=n[t];if(Ue(r))return e.keyIndex++,{done:!1,value:{reference:r,container:n,property:t}};if(Array.isArray(r)){for(;e.arrayIndex<r.length;){const i=e.arrayIndex++,s=r[i];if(Ue(s))return{done:!1,value:{reference:s,container:n,property:t,index:i}}}e.arrayIndex=0}}e.keyIndex++}return Se})}function Ta(n){return Array.isArray(n)?[...n.map(Ta)]:n}function N(n){return n.charCodeAt(0)}function _i(n,e){Array.isArray(n)?n.forEach(function(t){e.push(t)}):e.push(n)}function Dn(n,e){if(n[e]===!0)throw"duplicate flag "+e;n[e],n[e]=!0}function Lt(n){if(n===void 0)throw Error("Internal Error - Should never get here!");return!0}function va(n){return n.type==="Character"}const Tr=[];for(let n=N("0");n<=N("9");n++)Tr.push(n);const vr=[N("_")].concat(Tr);for(let n=N("a");n<=N("z");n++)vr.push(n);for(let n=N("A");n<=N("Z");n++)vr.push(n);const Ra=[N(" "),N("\f"),N(`
|
1
|
+
var ec=Object.defineProperty;var tc=(n,e,t)=>e in n?ec(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Je=(n,e,t)=>tc(n,typeof e!="symbol"?e+"":e,t);var Ut,Ft,Bt,Kt,Vt,Ht,jt,Wt,zt,Yt,qt,Xt,Qt,Zt,Jt,en,tn;import{od as nc,dd as rc,x as Hs,cJ as ic,Q as St,c_ as sc,d3 as ac,d4 as oc,J as lc,M as js,K as Ws,bT as yi,oe as zs,ak as ae,d5 as cc,cS as Ys,of as qs,aD as uc,cU as Xs,aA as dc,og as hc,c$ as fc,oh as pc,d7 as we,P as dt,aC as Qs,cd as mc,oi as z,oj as Ee,an as ht}from"./index-CSPyN4cW.js";import{b as Zs,a as nn}from"./_baseEach-DgKJ_yh2.js";import{g as gc,v as Y,h as Js,j as yc,k as Tc,a as ea,c as I,i as He,r as de,f as Ae,n as q}from"./_baseUniq-DsEmgZj4.js";import{m as x,f as It,h as C,d as Ti,l as Ct,c as vc}from"./min-D0cY_cmP.js";import{ac as M}from"./mermaid-CBWSg5mK.js";import{c as Z}from"./clone-D0U_4Foz.js";import{c as Rc}from"./_createAggregator-0VsbCMQy.js";var $c=Object.prototype.hasOwnProperty,ke=nc(function(n,e){if(rc(e)||Hs(e))ic(e,St(e),n);else for(var t in e)$c.call(e,t)&&sc(n,t,e[t])});function rn(n){for(var e=-1,t=n==null?0:n.length,r=0,i=[];++e<t;){var s=n[e];s&&(i[r++]=s)}return i}var er=lc(function(n,e){return js(n)?function(t,r,i,s){var a=-1,o=gc,l=!0,c=t.length,u=[],h=r.length;if(!c)return u;r.length>=200&&(o=oc,l=!1,r=new ac(r));e:for(;++a<c;){var d=t[a],f=d;if(d=d!==0?d:0,l&&f==f){for(var p=h;p--;)if(r[p]===f)continue e;u.push(d)}else o(r,f,s)||u.push(d)}return u}(n,Ws(e,1,js,!0)):[]});function J(n,e,t){var r=n==null?0:n.length;return r?(e=e===void 0?1:yi(e),zs(n,e<0?0:e,r)):[]}function sn(n,e,t){var r=n==null?0:n.length;return r?(e=e===void 0?1:yi(e),zs(n,0,(e=r-e)<0?0:e)):[]}function Ec(n,e){for(var t=-1,r=n==null?0:n.length;++t<r;)if(!e(n[t],t,n))return!1;return!0}function Ac(n,e){var t=!0;return Zs(n,function(r,i,s){return t=!!e(r,i,s)}),t}function be(n,e,t){return(ae(n)?Ec:Ac)(n,nn(e))}function Pe(n){return n&&n.length?n[0]:void 0}function xe(n,e){return Ws(x(n,e))}var kc=Object.prototype.hasOwnProperty,xc=Rc(function(n,e,t){kc.call(n,t)?n[t].push(e):cc(n,t,[e])});function ge(n){return typeof n=="string"||!ae(n)&&Ys(n)&&qs(n)=="[object String]"}var Sc=Math.max;function he(n,e,t,r){n=Hs(n)?n:Y(n),t=t?yi(t):0;var i=n.length;return t<0&&(t=Sc(i+t,0)),ge(n)?t<=i&&n.indexOf(e,t)>-1:!!i&&Js(n,e,t)>-1}function ta(n,e,t){return n!=null&&n.length?Js(n,e,0):-1}var na=Xs&&Xs.isRegExp,je=na?uc(na):function(n){return Ys(n)&&qs(n)=="[object RegExp]"};function Me(n,e){if(n==null)return{};var t=dc(yc(n),function(r){return[r]});return e=nn(e),hc(n,t,function(r,i){return e(r,i[0])})}function tr(n,e){return(ae(n)?fc:Tc)(n,function(t){if(typeof t!="function")throw new TypeError("Expected a function");return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}(nn(e)))}function Ic(n,e){var t;return Zs(n,function(r,i,s){return!(t=e(r,i,s))}),!!t}function ra(n,e,t){return(ae(n)?pc:Ic)(n,nn(e))}function vi(n){return n&&n.length?ea(n):[]}function oe(n){return typeof n=="object"&&n!==null&&typeof n.$type=="string"}function Ue(n){return typeof n=="object"&&n!==null&&typeof n.$refText=="string"}function nr(n){return typeof n=="object"&&n!==null&&oe(n.container)&&Ue(n.reference)&&typeof n.message=="string"}class ia{constructor(){this.subtypes={},this.allSubtypes={}}isInstance(e,t){return oe(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t)return!0;let r=this.subtypes[e];r||(r=this.subtypes[e]={});const i=r[t];if(i!==void 0)return i;{const s=this.computeIsSubtype(e,t);return r[t]=s,s}}getAllSubTypes(e){const t=this.allSubtypes[e];if(t)return t;{const r=this.getAllTypes(),i=[];for(const s of r)this.isSubtype(s,e)&&i.push(s);return this.allSubtypes[e]=i,i}}}function an(n){return typeof n=="object"&&n!==null&&Array.isArray(n.content)}function sa(n){return typeof n=="object"&&n!==null&&typeof n.tokenType=="object"}function aa(n){return an(n)&&typeof n.fullText=="string"}class re{constructor(e,t){this.startFn=e,this.nextFn=t}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){const e=this.iterator();let t=0,r=e.next();for(;!r.done;)t++,r=e.next();return t}toArray(){const e=[],t=this.iterator();let r;do r=t.next(),r.value!==void 0&&e.push(r.value);while(!r.done);return e}toSet(){return new Set(this)}toMap(e,t){const r=this.map(i=>[e?e(i):i,t?t(i):i]);return new Map(r)}toString(){return this.join()}concat(e){return new re(()=>({first:this.startFn(),firstDone:!1,iterator:e[Symbol.iterator]()}),t=>{let r;if(!t.firstDone){do if(r=this.nextFn(t.first),!r.done)return r;while(!r.done);t.firstDone=!0}do if(r=t.iterator.next(),!r.done)return r;while(!r.done);return Se})}join(e=","){const t=this.iterator();let r,i="",s=!1;do r=t.next(),r.done||(s&&(i+=e),i+=Cc(r.value)),s=!0;while(!r.done);return i}indexOf(e,t=0){const r=this.iterator();let i=0,s=r.next();for(;!s.done;){if(i>=t&&s.value===e)return i;s=r.next(),i++}return-1}every(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(!e(r.value))return!1;r=t.next()}return!0}some(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(e(r.value))return!0;r=t.next()}return!1}forEach(e){const t=this.iterator();let r=0,i=t.next();for(;!i.done;)e(i.value,r),i=t.next(),r++}map(e){return new re(this.startFn,t=>{const{done:r,value:i}=this.nextFn(t);return r?Se:{done:!1,value:e(i)}})}filter(e){return new re(this.startFn,t=>{let r;do if(r=this.nextFn(t),!r.done&&e(r.value))return r;while(!r.done);return Se})}nonNullable(){return this.filter(e=>e!=null)}reduce(e,t){const r=this.iterator();let i=t,s=r.next();for(;!s.done;)i=i===void 0?s.value:e(i,s.value),s=r.next();return i}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,r){const i=e.next();if(i.done)return r;const s=this.recursiveReduce(e,t,r);return s===void 0?i.value:t(s,i.value)}find(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(e(r.value))return r.value;r=t.next()}}findIndex(e){const t=this.iterator();let r=0,i=t.next();for(;!i.done;){if(e(i.value))return r;i=t.next(),r++}return-1}includes(e){const t=this.iterator();let r=t.next();for(;!r.done;){if(r.value===e)return!0;r=t.next()}return!1}flatMap(e){return new re(()=>({this:this.startFn()}),t=>{do{if(t.iterator){const s=t.iterator.next();if(!s.done)return s;t.iterator=void 0}const{done:r,value:i}=this.nextFn(t.this);if(!r){const s=e(i);if(!rr(s))return{done:!1,value:s};t.iterator=s[Symbol.iterator]()}}while(t.iterator);return Se})}flat(e){if(e===void 0&&(e=1),e<=0)return this;const t=e>1?this.flat(e-1):this;return new re(()=>({this:t.startFn()}),r=>{do{if(r.iterator){const a=r.iterator.next();if(!a.done)return a;r.iterator=void 0}const{done:i,value:s}=t.nextFn(r.this);if(!i){if(!rr(s))return{done:!1,value:s};r.iterator=s[Symbol.iterator]()}}while(r.iterator);return Se})}head(){const e=this.iterator().next();if(!e.done)return e.value}tail(e=1){return new re(()=>{const t=this.startFn();for(let r=0;r<e;r++)if(this.nextFn(t).done)return t;return t},this.nextFn)}limit(e){return new re(()=>({size:0,state:this.startFn()}),t=>(t.size++,t.size>e?Se:this.nextFn(t.state)))}distinct(e){return new re(()=>({set:new Set,internalState:this.startFn()}),t=>{let r;do if(r=this.nextFn(t.internalState),!r.done){const i=e?e(r.value):r.value;if(!t.set.has(i))return t.set.add(i),r}while(!r.done);return Se})}exclude(e,t){const r=new Set;for(const i of e){const s=t?t(i):i;r.add(s)}return this.filter(i=>{const s=t?t(i):i;return!r.has(s)})}}function Cc(n){return typeof n=="string"?n:n===void 0?"undefined":typeof n.toString=="function"?n.toString():Object.prototype.toString.call(n)}function rr(n){return!!n&&typeof n[Symbol.iterator]=="function"}const Nc=new re(()=>{},()=>Se),Se=Object.freeze({done:!0,value:void 0});function ee(...n){if(n.length===1){const e=n[0];if(e instanceof re)return e;if(rr(e))return new re(()=>e[Symbol.iterator](),t=>t.next());if(typeof e.length=="number")return new re(()=>({index:0}),t=>t.index<e.length?{done:!1,value:e[t.index++]}:Se)}return n.length>1?new re(()=>({collIndex:0,arrIndex:0}),e=>{do{if(e.iterator){const t=e.iterator.next();if(!t.done)return t;e.iterator=void 0}if(e.array){if(e.arrIndex<e.array.length)return{done:!1,value:e.array[e.arrIndex++]};e.array=void 0,e.arrIndex=0}if(e.collIndex<n.length){const t=n[e.collIndex++];rr(t)?e.iterator=t[Symbol.iterator]():t&&typeof t.length=="number"&&(e.array=t)}}while(e.iterator||e.array||e.collIndex<n.length);return Se}):Nc}class Ri extends re{constructor(e,t,r){super(()=>({iterators:r!=null&&r.includeRoot?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:!1}),i=>{for(i.pruned&&(i.iterators.pop(),i.pruned=!1);i.iterators.length>0;){const s=i.iterators[i.iterators.length-1].next();if(!s.done)return i.iterators.push(t(s.value)[Symbol.iterator]()),s;i.iterators.pop()}return Se})}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=!0},[Symbol.iterator]:()=>e};return e}}var $i,We;function Ei(n){return new Ri(n,e=>an(e)?e.content:[],{includeRoot:!0})}function Ai(n){return{start:{character:n.startColumn-1,line:n.startLine-1},end:{character:n.endColumn,line:n.endLine-1}}}function ir(n){if(!n)return;const{offset:e,end:t,range:r}=n;return{range:r,offset:e,end:t,length:t-e}}function wc(n,e){return function(r,i){if(r.end.line<i.start.line||r.end.line===i.start.line&&r.end.character<=i.start.character)return We.Before;if(r.start.line>i.end.line||r.start.line===i.end.line&&r.start.character>=i.end.character)return We.After;const s=r.start.line>i.start.line||r.start.line===i.start.line&&r.start.character>=i.start.character,a=r.end.line<i.end.line||r.end.line===i.end.line&&r.end.character<=i.end.character;return s&&a?We.Inside:s?We.OverlapBack:a?We.OverlapFront:We.Outside}(n,e)>We.After}(function(n){n.sum=function(e){return e.reduce((t,r)=>t+r,0)},n.product=function(e){return e.reduce((t,r)=>t*r,0)},n.min=function(e){return e.reduce((t,r)=>Math.min(t,r))},n.max=function(e){return e.reduce((t,r)=>Math.max(t,r))}})($i||($i={})),function(n){n[n.Before=0]="Before",n[n.After=1]="After",n[n.OverlapFront=2]="OverlapFront",n[n.OverlapBack=3]="OverlapBack",n[n.Inside=4]="Inside",n[n.Outside=5]="Outside"}(We||(We={}));const Lc=/^[\w\p{L}]$/u;function Oc(n,e){if(n){const t=function(r,i=!0){for(;r.container;){const s=r.container;let a=s.content.indexOf(r);for(;a>0;){a--;const o=s.content[a];if(i||!o.hidden)return o}r=s}}(n,!0);if(t&&oa(t,e))return t;if(aa(n))for(let r=n.content.findIndex(i=>!i.hidden)-1;r>=0;r--){const i=n.content[r];if(oa(i,e))return i}}}function oa(n,e){return sa(n)&&e.includes(n.tokenType.name)}class la extends Error{constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}}function on(n){throw new Error("Error! The input value was not handled.")}const sr="AbstractRule",ar="AbstractType",ki="Condition",ca="TypeDefinition",xi="ValueLiteral",ln="AbstractElement";function _c(n){return b.isInstance(n,ln)}const or="ArrayLiteral",lr="ArrayType",cn="BooleanLiteral",un="Conjunction",dn="Disjunction",cr="Grammar",Si="GrammarImport",hn="InferredType";function ua(n){return b.isInstance(n,hn)}const fn="Interface";function da(n){return b.isInstance(n,fn)}const Ii="NamedArgument",pn="Negation",ur="NumberLiteral",dr="Parameter",mn="ParameterReference",gn="ParserRule";function Le(n){return b.isInstance(n,gn)}const hr="ReferenceType",fr="ReturnType",yn="SimpleType";function bc(n){return b.isInstance(n,yn)}const pr="StringLiteral",Nt="TerminalRule";function ft(n){return b.isInstance(n,Nt)}const Tn="Type";function ha(n){return b.isInstance(n,Tn)}const Ci="TypeAttribute",mr="UnionType",vn="Action";function gr(n){return b.isInstance(n,vn)}const Rn="Alternatives";function fa(n){return b.isInstance(n,Rn)}const $n="Assignment";function pt(n){return b.isInstance(n,$n)}const En="CharacterRange",An="CrossReference";function Ni(n){return b.isInstance(n,An)}const kn="EndOfFile",xn="Group";function wi(n){return b.isInstance(n,xn)}const Sn="Keyword";function mt(n){return b.isInstance(n,Sn)}const In="NegatedToken",Cn="RegexToken",Nn="RuleCall";function gt(n){return b.isInstance(n,Nn)}const wn="TerminalAlternatives",Ln="TerminalGroup",On="TerminalRuleCall",_n="UnorderedGroup";function pa(n){return b.isInstance(n,_n)}const bn="UntilToken",Pn="Wildcard";class ma extends ia{getAllTypes(){return[ln,sr,ar,vn,Rn,or,lr,$n,cn,En,ki,un,An,dn,kn,cr,Si,xn,hn,fn,Sn,Ii,In,pn,ur,dr,mn,gn,hr,Cn,fr,Nn,yn,pr,wn,Ln,Nt,On,Tn,Ci,ca,mr,_n,bn,xi,Pn]}computeIsSubtype(e,t){switch(e){case vn:case Rn:case $n:case En:case An:case kn:case xn:case Sn:case In:case Cn:case Nn:case wn:case Ln:case On:case _n:case bn:case Pn:return this.isSubtype(ln,t);case or:case ur:case pr:return this.isSubtype(xi,t);case lr:case hr:case yn:case mr:return this.isSubtype(ca,t);case cn:return this.isSubtype(ki,t)||this.isSubtype(xi,t);case un:case dn:case pn:case mn:return this.isSubtype(ki,t);case hn:case fn:case Tn:return this.isSubtype(ar,t);case gn:return this.isSubtype(sr,t)||this.isSubtype(ar,t);case Nt:return this.isSubtype(sr,t);default:return!1}}getReferenceType(e){const t=`${e.container.$type}:${e.property}`;switch(t){case"Action:type":case"CrossReference:type":case"Interface:superTypes":case"ParserRule:returnType":case"SimpleType:typeRef":return ar;case"Grammar:hiddenTokens":case"ParserRule:hiddenTokens":case"RuleCall:rule":return sr;case"Grammar:usedGrammars":return cr;case"NamedArgument:parameter":case"ParameterReference:parameter":return dr;case"TerminalRuleCall:rule":return Nt;default:throw new Error(`${t} is not a valid reference id.`)}}getTypeMetaData(e){switch(e){case ln:return{name:ln,properties:[{name:"cardinality"},{name:"lookahead"}]};case or:return{name:or,properties:[{name:"elements",defaultValue:[]}]};case lr:return{name:lr,properties:[{name:"elementType"}]};case cn:return{name:cn,properties:[{name:"true",defaultValue:!1}]};case un:return{name:un,properties:[{name:"left"},{name:"right"}]};case dn:return{name:dn,properties:[{name:"left"},{name:"right"}]};case cr:return{name:cr,properties:[{name:"definesHiddenTokens",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"imports",defaultValue:[]},{name:"interfaces",defaultValue:[]},{name:"isDeclared",defaultValue:!1},{name:"name"},{name:"rules",defaultValue:[]},{name:"types",defaultValue:[]},{name:"usedGrammars",defaultValue:[]}]};case Si:return{name:Si,properties:[{name:"path"}]};case hn:return{name:hn,properties:[{name:"name"}]};case fn:return{name:fn,properties:[{name:"attributes",defaultValue:[]},{name:"name"},{name:"superTypes",defaultValue:[]}]};case Ii:return{name:Ii,properties:[{name:"calledByName",defaultValue:!1},{name:"parameter"},{name:"value"}]};case pn:return{name:pn,properties:[{name:"value"}]};case ur:return{name:ur,properties:[{name:"value"}]};case dr:return{name:dr,properties:[{name:"name"}]};case mn:return{name:mn,properties:[{name:"parameter"}]};case gn:return{name:gn,properties:[{name:"dataType"},{name:"definesHiddenTokens",defaultValue:!1},{name:"definition"},{name:"entry",defaultValue:!1},{name:"fragment",defaultValue:!1},{name:"hiddenTokens",defaultValue:[]},{name:"inferredType"},{name:"name"},{name:"parameters",defaultValue:[]},{name:"returnType"},{name:"wildcard",defaultValue:!1}]};case hr:return{name:hr,properties:[{name:"referenceType"}]};case fr:return{name:fr,properties:[{name:"name"}]};case yn:return{name:yn,properties:[{name:"primitiveType"},{name:"stringType"},{name:"typeRef"}]};case pr:return{name:pr,properties:[{name:"value"}]};case Nt:return{name:Nt,properties:[{name:"definition"},{name:"fragment",defaultValue:!1},{name:"hidden",defaultValue:!1},{name:"name"},{name:"type"}]};case Tn:return{name:Tn,properties:[{name:"name"},{name:"type"}]};case Ci:return{name:Ci,properties:[{name:"defaultValue"},{name:"isOptional",defaultValue:!1},{name:"name"},{name:"type"}]};case mr:return{name:mr,properties:[{name:"types",defaultValue:[]}]};case vn:return{name:vn,properties:[{name:"cardinality"},{name:"feature"},{name:"inferredType"},{name:"lookahead"},{name:"operator"},{name:"type"}]};case Rn:return{name:Rn,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case $n:return{name:$n,properties:[{name:"cardinality"},{name:"feature"},{name:"lookahead"},{name:"operator"},{name:"terminal"}]};case En:return{name:En,properties:[{name:"cardinality"},{name:"left"},{name:"lookahead"},{name:"right"}]};case An:return{name:An,properties:[{name:"cardinality"},{name:"deprecatedSyntax",defaultValue:!1},{name:"lookahead"},{name:"terminal"},{name:"type"}]};case kn:return{name:kn,properties:[{name:"cardinality"},{name:"lookahead"}]};case xn:return{name:xn,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"guardCondition"},{name:"lookahead"}]};case Sn:return{name:Sn,properties:[{name:"cardinality"},{name:"lookahead"},{name:"value"}]};case In:return{name:In,properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case Cn:return{name:Cn,properties:[{name:"cardinality"},{name:"lookahead"},{name:"regex"}]};case Nn:return{name:Nn,properties:[{name:"arguments",defaultValue:[]},{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case wn:return{name:wn,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case Ln:return{name:Ln,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case On:return{name:On,properties:[{name:"cardinality"},{name:"lookahead"},{name:"rule"}]};case _n:return{name:_n,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]};case bn:return{name:bn,properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]};case Pn:return{name:Pn,properties:[{name:"cardinality"},{name:"lookahead"}]};default:return{name:e,properties:[]}}}}const b=new ma;function yr(n,e){let t=n;for(;t;){if(e(t))return t;t=t.$container}}function et(n){const e=Li(n).$document;if(!e)throw new Error("AST node has no document.");return e}function Li(n){for(;n.$container;)n=n.$container;return n}function Oi(n,e){if(!n)throw new Error("Node must be an AstNode.");const t=e==null?void 0:e.range;return new re(()=>({keys:Object.keys(n),keyIndex:0,arrayIndex:0}),r=>{for(;r.keyIndex<r.keys.length;){const i=r.keys[r.keyIndex];if(!i.startsWith("$")){const s=n[i];if(oe(s)){if(r.keyIndex++,ga(s,t))return{done:!1,value:s}}else if(Array.isArray(s)){for(;r.arrayIndex<s.length;){const a=s[r.arrayIndex++];if(oe(a)&&ga(a,t))return{done:!1,value:a}}r.arrayIndex=0}}r.keyIndex++}return Se})}function Mn(n,e){if(!n)throw new Error("Root node must be an AstNode.");return new Ri(n,t=>Oi(t,e))}function wt(n,e){if(!n)throw new Error("Root node must be an AstNode.");return new Ri(n,t=>Oi(t,e),{includeRoot:!0})}function ga(n,e){var t;if(!e)return!0;const r=(t=n.$cstNode)===null||t===void 0?void 0:t.range;return!!r&&wc(r,e)}function ya(n){return new re(()=>({keys:Object.keys(n),keyIndex:0,arrayIndex:0}),e=>{for(;e.keyIndex<e.keys.length;){const t=e.keys[e.keyIndex];if(!t.startsWith("$")){const r=n[t];if(Ue(r))return e.keyIndex++,{done:!1,value:{reference:r,container:n,property:t}};if(Array.isArray(r)){for(;e.arrayIndex<r.length;){const i=e.arrayIndex++,s=r[i];if(Ue(s))return{done:!1,value:{reference:s,container:n,property:t,index:i}}}e.arrayIndex=0}}e.keyIndex++}return Se})}function Ta(n){return Array.isArray(n)?[...n.map(Ta)]:n}function N(n){return n.charCodeAt(0)}function _i(n,e){Array.isArray(n)?n.forEach(function(t){e.push(t)}):e.push(n)}function Dn(n,e){if(n[e]===!0)throw"duplicate flag "+e;n[e],n[e]=!0}function Lt(n){if(n===void 0)throw Error("Internal Error - Should never get here!");return!0}function va(n){return n.type==="Character"}const Tr=[];for(let n=N("0");n<=N("9");n++)Tr.push(n);const vr=[N("_")].concat(Tr);for(let n=N("a");n<=N("z");n++)vr.push(n);for(let n=N("A");n<=N("Z");n++)vr.push(n);const Ra=[N(" "),N("\f"),N(`
|
2
2
|
`),N("\r"),N(" "),N("\v"),N(" "),N("\xA0"),N("\u1680"),N("\u2000"),N("\u2001"),N("\u2002"),N("\u2003"),N("\u2004"),N("\u2005"),N("\u2006"),N("\u2007"),N("\u2008"),N("\u2009"),N("\u200A"),N("\u2028"),N("\u2029"),N("\u202F"),N("\u205F"),N("\u3000"),N("\uFEFF")],Pc=/[0-9a-fA-F]/,Rr=/[0-9]/,Mc=/[1-9]/;class $a{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const t=this.disjunction();this.consumeChar("/");const r={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":Dn(r,"global");break;case"i":Dn(r,"ignoreCase");break;case"m":Dn(r,"multiLine");break;case"u":Dn(r,"unicode");break;case"y":Dn(r,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:t,loc:this.loc(0)}}disjunction(){const e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){const e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":let t;switch(this.consumeChar("?"),this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead"}Lt(t);const r=this.disjunction();return this.consumeChar(")"),{type:t,value:r,loc:this.loc(e)}}return function(){throw Error("Internal Error - Should never get here!")}()}quantifier(e=!1){let t;const r=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":const i=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:i,atMost:i};break;case",":let s;this.isDigit()?(s=this.integerIncludingZero(),t={atLeast:i,atMost:s}):t={atLeast:i,atMost:1/0},this.consumeChar("}")}if(e===!0&&t===void 0)return;Lt(t)}if(e!==!0||t!==void 0)return Lt(t)?(this.peekChar(0)==="?"?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(r),t):void 0}atom(){let e;const t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group()}if(e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),Lt(e))return e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[N(`
|
3
3
|
`),N("\r"),N("\u2028"),N("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=Tr;break;case"D":e=Tr,t=!0;break;case"s":e=Ra;break;case"S":e=Ra,t=!0;break;case"w":e=vr;break;case"W":e=vr,t=!0}if(Lt(e))return{type:"Set",value:e,complement:t}}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=N("\f");break;case"n":e=N(`
|
4
4
|
`);break;case"r":e=N("\r");break;case"t":e=N(" ");break;case"v":e=N("\v")}if(Lt(e))return{type:"Character",value:e}}controlLetterEscapeAtom(){this.consumeChar("c");const e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:N("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){return{type:"Character",value:N(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case`
|
@@ -1 +1 @@
|
|
1
|
-
import{aH as
|
1
|
+
import{aH as K,aI as E,a as F,aJ as D,aK as G,aL as W,j as g,E as $,am as C,U as j,aM as L,aN as I,aO as R,L as _,aP as T,aQ as U,aR as q,aS as J,aT as Q,at as B,aU as X}from"./index-CSPyN4cW.js";import{M as y}from"./compile-J4o3SSt8.js";import{a as Y}from"./VegaLite-kpaj3jnh.js";import"./time-BOg6M-VK.js";import"./timer-BwIYMJWC.js";import"./linear-CRzT0Y7Z.js";import"./init-DLRA0X12.js";import"./range-CtcPcB_L.js";import"./zoom-COrs4lFh.js";import"./ordinal-DDUp3AbE.js";import"./colors-bszWmPJw.js";import"./step-BwsUM5iJ.js";import"./arc-ZB5pDULS.js";import"./index-BEQfoZiP.js";import"./index-CX90WBn3.js";const V=new Set(["boxplot","errorband","errorbar"]),S={getMarkType(t){const e=typeof t=="string"?t:t.type;if(V.has(e))throw new Error("Not supported");return e},isInteractive(t){const e=typeof t=="string"?t:t.type;return!V.has(e)},makeClickable(t){const e=typeof t=="string"?t:t.type;return e in y?typeof t=="string"?{type:t,cursor:"pointer",tooltip:!0}:{...t,type:e,cursor:"pointer",tooltip:!0}:t},getOpacity:t=>typeof t=="string"?null:"opacity"in t&&typeof t.opacity=="number"?t.opacity:null},tt=new Set(["color","fill","fillOpacity","opacity","shape","size"]);function et(t,e,r,i){const m={and:r.map(d=>({param:d}))};if(t==="opacity"){const d=S.getOpacity(i)||1;return{...e,opacity:{condition:{test:m,value:d},value:d/5}}}return e}const w={point:t=>t==null?"select_point":`select_point_${t}`,interval:t=>t==null?"select_interval":`select_interval_${t}`,legendSelection:t=>`legend_selection_${t}`,HIGHLIGHT:"highlight",PAN_ZOOM:"pan_zoom",hasPoint:t=>t.some(e=>e.startsWith("select_point")),hasInterval:t=>t.some(e=>e.startsWith("select_interval")),hasLegend:t=>t.some(e=>e.startsWith("legend_selection")),hasPanZoom:t=>t.some(e=>e.startsWith("pan_zoom"))},P={highlight:()=>({name:w.HIGHLIGHT,select:{type:"point",on:"mouseover"}}),interval:(t,e)=>({name:w.interval(e),select:{type:"interval",encodings:Z(t),mark:{fill:"#669EFF",fillOpacity:.07,stroke:"#669EFF",strokeOpacity:.4},on:"[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]",translate:"[mousedown[!event.metaKey], mouseup] > mousemove[!event.metaKey]"}}),point:(t,e)=>({name:w.point(e),select:{type:"point",encodings:Z(t),on:"click[!event.metaKey]"}}),legend:t=>({name:w.legendSelection(t),select:{type:"point",fields:[t]},bind:"legend"}),panZoom:()=>({name:w.PAN_ZOOM,bind:"scales",select:{type:"interval",on:"[mousedown[event.metaKey], window:mouseup] > window:mousemove!",translate:"[mousedown[event.metaKey], window:mouseup] > window:mousemove!",zoom:"wheel![event.metaKey]"}})};function Z(t){switch(S.getMarkType(t.mark)){case y.image:case y.trail:return;case y.area:case y.arc:return["color"];case y.bar:{const e=function(r){var d,l;if(!r||!("mark"in r))return;const i=(d=r.encoding)==null?void 0:d.x,m=(l=r.encoding)==null?void 0:l.y;if(i&&"type"in i&&i.type==="nominal")return"vertical";if(m&&"type"in m&&m.type==="nominal"||i&&"aggregate"in i)return"horizontal";if(m&&"aggregate"in m)return"vertical"}(t);return e==="horizontal"?["y"]:e==="vertical"?["x"]:void 0}case y.circle:case y.geoshape:case y.line:case y.point:case y.rect:case y.rule:case y.square:case y.text:case y.tick:return["x","y"]}}function z(t){return"params"in t&&t.params&&t.params.length>0?t.params.filter(e=>e!=null&&"select"in e&&e.select!==void 0).map(e=>e.name):"layer"in t?[...new Set(t.layer.flatMap(z))]:[]}function at(t,e){var f,v;let{chartSelection:r=!0,fieldSelection:i=!0}=e;if(!r&&!i)return t;if(((f=t.params)==null?void 0:f.some(c=>c.bind==="legend"))&&(i=!1),((v=t.params)==null?void 0:v.some(c=>!c.bind))&&(r=!1),"vconcat"in t){const c=t.vconcat.map(o=>"mark"in o?O(o):o);return{...t,vconcat:c}}if("hconcat"in t){const c=t.hconcat.map(o=>"mark"in o?O(o):o);return{...t,hconcat:c}}if("layer"in t){const c=t.layer.map((o,p)=>{if(!("mark"in o))return o;let s=o;return s=A(s,r,p),s=O(s),p===0&&(s=H(s)),s});return{...t,layer:c}}if(!("mark"in t)||!S.isInteractive(t.mark))return t;let l=t;return l=function(c,o){if(o===!1)return c;let p=function(h){if(!h||!("encoding"in h))return[];const{encoding:b}=h;return b?Object.entries(b).flatMap(a=>{const[n,u]=a;return u&&tt.has(n)?"field"in u&&typeof u.field=="string"?[u.field]:"condition"in u&&u.condition&&typeof u.condition=="object"&&"field"in u.condition&&u.condition.field&&typeof u.condition.field=="string"?[u.condition.field]:[]:[]}):[]}(c);Array.isArray(o)&&(p=p.filter(h=>o.includes(h)));const s=p.map(h=>P.legend(h)),x=[...c.params||[],...s];return{...c,params:x}}(l,i),l=A(l,r,void 0),l=O(l),l=H(l),l}function A(t,e,r){if(e===!1)return t;let i;try{i=S.getMarkType(t.mark)}catch{return t}if(i==="geoshape")return t;const m=e===!0?function(f){switch(f){case"arc":case"area":return["point"];case"text":case"bar":default:return["point","interval"];case"line":return}}(i):[e];if(!m)return t;const d=m.map(f=>f==="interval"?P.interval(t,r):P.point(t,r)),l=[...t.params||[],...d];return{...t,params:l}}function H(t){let e;try{e=S.getMarkType(t.mark)}catch{}if(e==="geoshape")return t;const r=t.params||[];return r.some(i=>i.bind==="scales")?t:{...t,params:[...r,P.panZoom()]}}function O(t){const e="encoding"in t?t.encoding:void 0,r=t.params||[],i=r.map(m=>m.name);return r.length===0?t:S.isInteractive(t.mark)?{...t,mark:S.makeClickable(t.mark),encoding:et("opacity",e||{},i,t.mark)}:t}G("arrow",W);const nt=t=>{const e=F.c(11),{value:r,setValue:i,chartSelection:m,fieldSelection:d,spec:l}=t;let f,v;e[0]!==l?(f=async()=>async function(s){if(!s)return s;const x="datasets"in s?{...s.datasets}:{},h=async a=>{if(!a)return a;if("layer"in a){const k=await Promise.all(a.layer.map(h));a={...a,layer:k}}if("hconcat"in a){const k=await Promise.all(a.hconcat.map(h));a={...a,hconcat:k}}if("vconcat"in a){const k=await Promise.all(a.vconcat.map(h));a={...a,vconcat:k}}if("spec"in a&&(a={...a,spec:await h(a.spec)}),!a.data||!("url"in a.data))return a;let n;try{n=K(a.data.url)}catch{return a}const u=await E(n.href,a.data.format);return x[n.pathname]=u,{...a,data:{name:n.pathname}}},b=await h(s);return Object.keys(x).length===0?b:{...b,datasets:x}}(l),v=[l],e[0]=l,e[1]=f,e[2]=v):(f=e[1],v=e[2]);const{data:c,error:o}=D(f,v);if(o){let s;return e[3]!==o?(s=g.jsx($,{error:o}),e[3]=o,e[4]=s):s=e[4],s}if(!c)return null;let p;return e[5]!==m||e[6]!==d||e[7]!==c||e[8]!==i||e[9]!==r?(p=g.jsx(rt,{value:r,setValue:i,chartSelection:m,fieldSelection:d,spec:c}),e[5]=m,e[6]=d,e[7]=c,e[8]=i,e[9]=r,e[10]=p):p=e[10],p},rt=({value:t,setValue:e,chartSelection:r,fieldSelection:i,spec:m})=>{const{theme:d}=C(),l=j.useRef(void 0),[f,v]=j.useState(),c=L(m),o=j.useMemo(()=>at(function(n){return n.data&&"url"in n.data&&(n.data.url=K(n.data.url).href),n}(c),{chartSelection:r,fieldSelection:i}),[c,r,i]),p=j.useMemo(()=>z(o),[o]),s=I(n=>{e({...t,...n})}),x=L(p),h=j.useMemo(()=>x.reduce((n,u)=>(w.PAN_ZOOM===u||(n[u]=R((k,N)=>{_.debug("[Vega signal]",k,N);let M=T.mapValues(N,st);M=T.mapValues(M,ot),s({[k]:M})},100)),n),{}),[x,s]),b=I(n=>{_.error(n),_.debug(o),v(n)}),a=I(n=>{_.debug("[Vega view] created",n),l.current=n,v(void 0)});return g.jsxs(g.Fragment,{children:[f&&g.jsxs(U,{variant:"destructive",children:[g.jsx(q,{children:f.message}),g.jsx("div",{className:"text-md",children:f.stack})]}),g.jsxs("div",{className:"relative",onPointerDown:J.stopPropagation(),children:[g.jsx(Y,{spec:o,theme:d==="dark"?"dark":void 0,actions:it,signalListeners:h,onError:b,onNewView:a}),(()=>{const n=[];return w.hasPoint(p)&&n.push(["Point selection","click to select a point; hold shift for multi-select"]),w.hasInterval(p)&&n.push(["Interval selection","click and drag to select an interval"]),w.hasLegend(p)&&n.push(["Legend selection","click to select a legend item; hold shift for multi-select"]),w.hasPanZoom(p)&&n.push(["Pan","hold the meta key and drag"],["Zoom","hold the meta key and scroll"]),n.length===0?null:g.jsx(B,{delayDuration:300,side:"left",content:g.jsx("div",{className:"text-xs flex flex-col",children:n.map((u,k)=>g.jsxs("div",{children:[g.jsxs("span",{className:"font-bold tracking-wide",children:[u[0],":"]})," ",u[1]]},k))}),children:g.jsx(X,{className:"absolute bottom-1 right-0 m-2 h-4 w-4 cursor-help text-muted-foreground hover:text-foreground"})})})()]})]})},it={source:!1,compiled:!1};function ot(t){return t instanceof Set?[...t]:t}function st(t){return Array.isArray(t)?t.map(e=>e instanceof Date&&Q(e)?new Date(e).getTime():e):t}export{nt as default};
|
package/dist/assets/{xychartDiagram-H2YORKM3-qkBu9yox.js → xychartDiagram-H2YORKM3-6T7dRn7U.js}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
var G,j,Q,K,q,Z,J,tt,it,et;import{_ as a,s as hi,g as oi,q as It,p as ri,a as li,b as ci,l as $t,I as gi,d as ui,y as xi,F as ft,E as Bt,G as di,L as pi,h as fi,ab as mi}from"./mermaid-
|
1
|
+
var G,j,Q,K,q,Z,J,tt,it,et;import{_ as a,s as hi,g as oi,q as It,p as ri,a as li,b as ci,l as $t,I as gi,d as ui,y as xi,F as ft,E as Bt,G as di,L as pi,h as fi,ab as mi}from"./mermaid-CBWSg5mK.js";import"./transform-B8bpuzxV.js";import{i as yi}from"./init-DLRA0X12.js";import{o as bi}from"./ordinal-DDUp3AbE.js";import{r as Ai}from"./range-CtcPcB_L.js";import{l as zt}from"./linear-CRzT0Y7Z.js";import{l as Ot}from"./step-BwsUM5iJ.js";import"./index-CSPyN4cW.js";import"./timer-BwIYMJWC.js";function mt(){var e,t,i=bi().unknown(void 0),s=i.domain,n=i.range,c=0,g=1,p=!1,d=0,_=0,L=.5;function S(){var y=s().length,E=g<c,D=E?g:c,P=E?c:g;e=(P-D)/Math.max(1,y-d+2*_),p&&(e=Math.floor(e)),D+=(P-D-e*(y-d))*L,t=e*(1-d),p&&(D=Math.round(D),t=Math.round(t));var M=Ai(y).map(function(f){return D+e*f});return n(E?M.reverse():M)}return delete i.unknown,i.domain=function(y){return arguments.length?(s(y),S()):s()},i.range=function(y){return arguments.length?([c,g]=y,c=+c,g=+g,S()):[c,g]},i.rangeRound=function(y){return[c,g]=y,c=+c,g=+g,p=!0,S()},i.bandwidth=function(){return t},i.step=function(){return e},i.round=function(y){return arguments.length?(p=!!y,S()):p},i.padding=function(y){return arguments.length?(d=Math.min(1,_=+y),S()):d},i.paddingInner=function(y){return arguments.length?(d=Math.min(1,y),S()):d},i.paddingOuter=function(y){return arguments.length?(_=+y,S()):_},i.align=function(y){return arguments.length?(L=Math.max(0,Math.min(1,y)),S()):L},i.copy=function(){return mt(s(),[c,g]).round(p).paddingInner(d).paddingOuter(_).align(L)},yi.apply(S(),arguments)}var yt=function(){var e=a(function(h,b,u,x){for(u=u||{},x=h.length;x--;u[h[x]]=b);return u},"o"),t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],n=[1,5],c=[1,6],g=[1,7],p=[1,5,10,12,14,16,18,19,21,23,34,35,36],d=[1,25],_=[1,26],L=[1,28],S=[1,29],y=[1,30],E=[1,31],D=[1,32],P=[1,33],M=[1,34],f=[1,35],k=[1,36],l=[1,37],z=[1,43],O=[1,42],Y=[1,47],F=[1,50],r=[1,10,12,14,16,18,19,21,23,34,35,36],v=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],C=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],T=[1,64],st={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:a(function(h,b,u,x,w,o,nt){var m=o.length-1;switch(w){case 5:x.setOrientation(o[m]);break;case 9:x.setDiagramTitle(o[m].text.trim());break;case 12:x.setLineData({text:"",type:"text"},o[m]);break;case 13:x.setLineData(o[m-1],o[m]);break;case 14:x.setBarData({text:"",type:"text"},o[m]);break;case 15:x.setBarData(o[m-1],o[m]);break;case 16:this.$=o[m].trim(),x.setAccTitle(this.$);break;case 17:case 18:this.$=o[m].trim(),x.setAccDescription(this.$);break;case 19:case 27:this.$=o[m-1];break;case 20:this.$=[Number(o[m-2]),...o[m]];break;case 21:this.$=[Number(o[m])];break;case 22:x.setXAxisTitle(o[m]);break;case 23:x.setXAxisTitle(o[m-1]);break;case 24:x.setXAxisTitle({type:"text",text:""});break;case 25:x.setXAxisBand(o[m]);break;case 26:x.setXAxisRangeData(Number(o[m-2]),Number(o[m]));break;case 28:this.$=[o[m-2],...o[m]];break;case 29:this.$=[o[m]];break;case 30:x.setYAxisTitle(o[m]);break;case 31:x.setYAxisTitle(o[m-1]);break;case 32:x.setYAxisTitle({type:"text",text:""});break;case 33:x.setYAxisRangeData(Number(o[m-2]),Number(o[m]));break;case 37:case 38:this.$={text:o[m],type:"text"};break;case 39:this.$={text:o[m],type:"markdown"};break;case 40:this.$=o[m];break;case 41:this.$=o[m-1]+""+o[m]}},"anonymous"),table:[e(t,i,{3:1,4:2,7:4,5:s,34:n,35:c,36:g}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,34:n,35:c,36:g}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:c,36:g}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(p,[2,34]),e(p,[2,35]),e(p,[2,36]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,34:n,35:c,36:g}),{1:[2,3]},e(p,[2,5]),e(t,[2,7],{4:22,34:n,35:c,36:g}),{11:23,37:24,38:d,39:_,40:27,41:L,42:S,43:y,44:E,45:D,46:P,47:M,48:f,49:k,50:l},{11:39,13:38,24:z,27:O,29:40,30:41,37:24,38:d,39:_,40:27,41:L,42:S,43:y,44:E,45:D,46:P,47:M,48:f,49:k,50:l},{11:45,15:44,27:Y,33:46,37:24,38:d,39:_,40:27,41:L,42:S,43:y,44:E,45:D,46:P,47:M,48:f,49:k,50:l},{11:49,17:48,24:F,37:24,38:d,39:_,40:27,41:L,42:S,43:y,44:E,45:D,46:P,47:M,48:f,49:k,50:l},{11:52,17:51,24:F,37:24,38:d,39:_,40:27,41:L,42:S,43:y,44:E,45:D,46:P,47:M,48:f,49:k,50:l},{20:[1,53]},{22:[1,54]},e(r,[2,18]),{1:[2,2]},e(r,[2,8]),e(r,[2,9]),e(v,[2,37],{40:55,41:L,42:S,43:y,44:E,45:D,46:P,47:M,48:f,49:k,50:l}),e(v,[2,38]),e(v,[2,39]),e(C,[2,40]),e(C,[2,42]),e(C,[2,43]),e(C,[2,44]),e(C,[2,45]),e(C,[2,46]),e(C,[2,47]),e(C,[2,48]),e(C,[2,49]),e(C,[2,50]),e(C,[2,51]),e(r,[2,10]),e(r,[2,22],{30:41,29:56,24:z,27:O}),e(r,[2,24]),e(r,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:d,39:_,40:27,41:L,42:S,43:y,44:E,45:D,46:P,47:M,48:f,49:k,50:l},e(r,[2,11]),e(r,[2,30],{33:60,27:Y}),e(r,[2,32]),{31:[1,61]},e(r,[2,12]),{17:62,24:F},{25:63,27:T},e(r,[2,14]),{17:65,24:F},e(r,[2,16]),e(r,[2,17]),e(C,[2,41]),e(r,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},e(r,[2,31]),{27:[1,69]},e(r,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},e(r,[2,15]),e(r,[2,26]),e(r,[2,27]),{11:59,32:72,37:24,38:d,39:_,40:27,41:L,42:S,43:y,44:E,45:D,46:P,47:M,48:f,49:k,50:l},e(r,[2,33]),e(r,[2,19]),{25:73,27:T},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:a(function(h,b){if(!b.recoverable){var u=new Error(h);throw u.hash=b,u}this.trace(h)},"parseError"),parse:a(function(h){var b=this,u=[0],x=[],w=[null],o=[],nt=this.table,m="",rt=0,Lt=0,ni=o.slice.call(arguments,1),R=Object.create(this.lexer),N={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(N.yy[dt]=this.yy[dt]);R.setInput(h,N.yy),N.yy.lexer=R,N.yy.parser=this,R.yylloc===void 0&&(R.yylloc={});var pt=R.yylloc;o.push(pt);var ai=R.options&&R.options.ranges;function Pt(){var B;return typeof(B=x.pop()||R.lex()||1)!="number"&&(B instanceof Array&&(B=(x=B).pop()),B=b.symbols_[B]||B),B}typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,a(function(B){u.length=u.length-2*B,w.length=w.length-B,o.length=o.length-B},"popStack"),a(Pt,"lex");for(var I,V,$,vt,lt,W,Et,ct,H={};;){if(V=u[u.length-1],this.defaultActions[V]?$=this.defaultActions[V]:(I==null&&(I=Pt()),$=nt[V]&&nt[V][I]),$===void 0||!$.length||!$[0]){var Mt="";for(lt in ct=[],nt[V])this.terminals_[lt]&<>2&&ct.push("'"+this.terminals_[lt]+"'");Mt=R.showPosition?"Parse error on line "+(rt+1)+`:
|
2
2
|
`+R.showPosition()+`
|
3
3
|
Expecting `+ct.join(", ")+", got '"+(this.terminals_[I]||I)+"'":"Parse error on line "+(rt+1)+": Unexpected "+(I==1?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Mt,{text:R.match,token:this.terminals_[I]||I,line:R.yylineno,loc:pt,expected:ct})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+I);switch($[0]){case 1:u.push(I),w.push(R.yytext),o.push(R.yylloc),u.push($[1]),I=null,Lt=R.yyleng,m=R.yytext,rt=R.yylineno,pt=R.yylloc;break;case 2:if(W=this.productions_[$[1]][1],H.$=w[w.length-W],H._$={first_line:o[o.length-(W||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(W||1)].first_column,last_column:o[o.length-1].last_column},ai&&(H._$.range=[o[o.length-(W||1)].range[0],o[o.length-1].range[1]]),(vt=this.performAction.apply(H,[m,Lt,rt,N.yy,$[1],w,o].concat(ni)))!==void 0)return vt;W&&(u=u.slice(0,-1*W*2),w=w.slice(0,-1*W),o=o.slice(0,-1*W)),u.push(this.productions_[$[1]][0]),w.push(H.$),o.push(H._$),Et=nt[u[u.length-2]][u[u.length-1]],u.push(Et);break;case 3:return!0}}return!0},"parse")},ot=function(){return{EOF:1,parseError:a(function(h,b){if(!this.yy.parser)throw new Error(h);this.yy.parser.parseError(h,b)},"parseError"),setInput:a(function(h,b){return this.yy=b||this.yy||{},this._input=h,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:a(function(){var h=this._input[0];return this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h,h.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},"input"),unput:a(function(h){var b=h.length,u=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var x=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),u.length-1&&(this.yylineno-=u.length-1);var w=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:u?(u.length===x.length?this.yylloc.first_column:0)+x[x.length-u.length].length-u[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[w[0],w[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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})},"reject"),less:a(function(h){this.unput(this.match.slice(h))},"less"),pastInput:a(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var h=this.pastInput(),b=new Array(h.length+1).join("-");return h+this.upcomingInput()+`
|
package/dist/index.html
CHANGED
@@ -59,8 +59,8 @@
|
|
59
59
|
<marimo-server-token data-token="{{ server_token }}" hidden></marimo-server-token>
|
60
60
|
<!-- /TODO -->
|
61
61
|
<title>{{ title }}</title>
|
62
|
-
<script type="module" crossorigin src="./assets/index-
|
63
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
62
|
+
<script type="module" crossorigin src="./assets/index-CSPyN4cW.js"></script>
|
63
|
+
<link rel="stylesheet" crossorigin href="./assets/index-DmaoBTfT.css">
|
64
64
|
</head>
|
65
65
|
<body>
|
66
66
|
<div id="root"></div>
|