vibelet 1.2.241 → 1.2.243
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/index.cjs +1 -1
- package/dist/inventory-scan-worker.cjs +1 -1
- package/dist/runtime-version.cjs +1 -1
- package/dist/web/assets/{App-DoFtS2ld.css → App-6Cciblyj.css} +1 -1
- package/dist/web/assets/App-DHM2JpIe.js +2 -0
- package/dist/web/assets/{BrowserControlPanel-HSOIppjA.js → BrowserControlPanel-CvtVx3Hr.js} +1 -1
- package/dist/web/assets/{ChatPane-DG_WUdJo.css → ChatPane-CMZDQ9ZZ.css} +1 -1
- package/dist/web/assets/ChatPane-Crhr0Lkx.js +2 -0
- package/dist/web/assets/{ChipGroup-CXqq2wlt.js → ChipGroup-DAB6dZFc.js} +1 -1
- package/dist/web/assets/{ComposerMenus-rXTcwRKu.js → ComposerMenus-D7iN4bup.js} +1 -1
- package/dist/web/assets/{DiffDrawer-CXfOImnm.js → DiffDrawer-BR7NrEmt.js} +1 -1
- package/dist/web/assets/FilesControlPanel-B8w2_BRT.js +1 -0
- package/dist/web/assets/{GlobalPendingDialog-B4mfzOBi.js → GlobalPendingDialog-psYp4FyT.js} +1 -1
- package/dist/web/assets/{ImageViewer-C36pXFoT.js → ImageViewer-CKqlB_9p.js} +1 -1
- package/dist/web/assets/{LanguageSettingsPanel-Bb44m-LR.js → LanguageSettingsPanel-eEfHrFPA.js} +1 -1
- package/dist/web/assets/{MarkdownModePanel-CNaSfmI8.js → MarkdownModePanel-R_z8H9hQ.js} +1 -1
- package/dist/web/assets/{MessageImage-CAhJXwr7.js → MessageImage-L_caj_Dp.js} +1 -1
- package/dist/web/assets/{NewSessionDialog-BIVNe-MJ.js → NewSessionDialog-D6GYUsxw.js} +1 -1
- package/dist/web/assets/{NotificationSettingsPanel-FbuRkW04.js → NotificationSettingsPanel-8cC0qcjz.js} +1 -1
- package/dist/web/assets/{PanelFind-DnzTO9GZ.js → PanelFind-CtB-fTaM.js} +1 -1
- package/dist/web/assets/{RemoteLifeOSBlock-Bhm7Sf00.js → RemoteLifeOSBlock-CwM5U04N.js} +2 -2
- package/dist/web/assets/{RemoteWorkspaceSettings-DX0IhsyZ.js → RemoteWorkspaceSettings-BLk7MUa8.js} +1 -1
- package/dist/web/assets/{SessionTerminalPanel-CBbwf8LG.js → SessionTerminalPanel-D_5c6lMk.js} +2 -2
- package/dist/web/assets/{SpeechInputSettingsPanel-Cx71yVTZ.js → SpeechInputSettingsPanel-Bm1UPHiL.js} +1 -1
- package/dist/web/assets/{ThemeSettingsPanel-CxEeL1Yb.js → ThemeSettingsPanel-Tym9Xy1v.js} +1 -1
- package/dist/web/assets/{__vite-browser-external-2447137e-DrC7dgv5.js → __vite-browser-external-2447137e-Ck9f6uYD.js} +1 -1
- package/dist/web/assets/{abnfDiagram-VRR7QNED-ChWHpAet.js → abnfDiagram-VRR7QNED-BPSMtotk.js} +1 -1
- package/dist/web/assets/{arc-Dfxnvl-t.js → arc-CFHn4jAK.js} +1 -1
- package/dist/web/assets/{architectureDiagram-ZJ3FMSHR-kBLnPqES.js → architectureDiagram-ZJ3FMSHR-DoIyc6P-.js} +1 -1
- package/dist/web/assets/{arrow-left-BUz_m4Oq.js → arrow-left-B_J8dbJk.js} +1 -1
- package/dist/web/assets/{arrow-right-BY4NPg2p.js → arrow-right-B0Zthy7B.js} +1 -1
- package/dist/web/assets/{blockDiagram-677ZJIJ3-BNtwjuTh.js → blockDiagram-677ZJIJ3-BOarVZs5.js} +1 -1
- package/dist/web/assets/{c4Diagram-LMCZKHZV-8D-Mwesb.js → c4Diagram-LMCZKHZV-CDoawQWV.js} +1 -1
- package/dist/web/assets/channel-bz5uCtjG.js +1 -0
- package/dist/web/assets/chevron-up-BvhbPeN2.js +1 -0
- package/dist/web/assets/{chunk-2Q5K7J3B-B5fYkjtP.js → chunk-2Q5K7J3B-CkVdI1_G.js} +1 -1
- package/dist/web/assets/{chunk-32BRIVSS-tN_bs2O_.js → chunk-32BRIVSS-lfRflIJE.js} +1 -1
- package/dist/web/assets/{chunk-5VM5RSS4-BVcBoYrd.js → chunk-5VM5RSS4-ChvW640o.js} +1 -1
- package/dist/web/assets/{chunk-EX3LRPZG-CuXY6NcI.js → chunk-EX3LRPZG-LUlAwMu1.js} +1 -1
- package/dist/web/assets/{chunk-JWPE2WC7-C9fui0AP.js → chunk-JWPE2WC7-CZAbFhxm.js} +1 -1
- package/dist/web/assets/{chunk-MOJQB5TN-BsNzYnoh.js → chunk-MOJQB5TN-zbABsF-T.js} +1 -1
- package/dist/web/assets/{chunk-RYQCIY6F-KV-COyMH.js → chunk-RYQCIY6F-DO7-HDJp.js} +1 -1
- package/dist/web/assets/{chunk-V7JOEXUC-BtdUd2AL.js → chunk-V7JOEXUC-CZZpLt5o.js} +1 -1
- package/dist/web/assets/{chunk-VR4S4FIN-CvibGV30.js → chunk-VR4S4FIN-CPVLI9Cz.js} +1 -1
- package/dist/web/assets/{chunk-XXDRQBXY-BQgo6g4Q.js → chunk-XXDRQBXY-dA96ajoY.js} +1 -1
- package/dist/web/assets/classDiagram-OUVF2IWQ-DWTcdIri.js +1 -0
- package/dist/web/assets/classDiagram-v2-EOCWNBFH-DWTcdIri.js +1 -0
- package/dist/web/assets/{collectMessageImages-DfQK7APc.js → collectMessageImages-BHZAEp7l.js} +1 -1
- package/dist/web/assets/{cose-bilkent-JH36ORCC-DqJjP-1o.js → cose-bilkent-JH36ORCC-DkTAw3T7.js} +1 -1
- package/dist/web/assets/{cynefin-VYW2F7L2-CYle_Oh3.js → cynefin-VYW2F7L2-CPV5HP8b.js} +1 -1
- package/dist/web/assets/{cynefinDiagram-TSTJHNR4-Cs6U5rP8.js → cynefinDiagram-TSTJHNR4-BjqGh-JY.js} +1 -1
- package/dist/web/assets/{dagre-VKFMJZFB-B0PDjiVu.js → dagre-VKFMJZFB-CqPOtH9L.js} +1 -1
- package/dist/web/assets/{diagram-FQU43EPY-D1G0yF91.js → diagram-FQU43EPY-51RTvAnu.js} +1 -1
- package/dist/web/assets/{diagram-G47NLZAW-jMb0G0ac.js → diagram-G47NLZAW-B5GqRCH2.js} +1 -1
- package/dist/web/assets/{diagram-NH7WQ7WH-Dsybvax5.js → diagram-NH7WQ7WH-BYUwty2D.js} +1 -1
- package/dist/web/assets/{diagram-OA4YK3LP-C-mEVY1q.js → diagram-OA4YK3LP-C6yJt9W8.js} +1 -1
- package/dist/web/assets/{diagram-WEI45ONY-AWFjaNNW.js → diagram-WEI45ONY-Cc9-k4zE.js} +1 -1
- package/dist/web/assets/{ebnfDiagram-CCIWWBDH-DDcjK3O9.js → ebnfDiagram-CCIWWBDH-DCzmtavH.js} +1 -1
- package/dist/web/assets/{erDiagram-Q63AITRT-EbcQ9tS4.js → erDiagram-Q63AITRT-ZjDc6wjK.js} +1 -1
- package/dist/web/assets/{file-editor-FileCodeEditor-b6IgEhB0.js → file-editor-FileCodeEditor-ynS8wc-T.js} +1 -1
- package/dist/web/assets/{file-editor-ObsidianCodeEditor-B8GDcuAu.js → file-editor-ObsidianCodeEditor-BGsVxYpf.js} +1 -1
- package/dist/web/assets/{file-editor-ObsidianFileEditor-xduoJU9L.js → file-editor-ObsidianFileEditor-DCya_kV_.js} +1 -1
- package/dist/web/assets/{flowDiagram-23GEKE2U-Duhlfe1V.js → flowDiagram-23GEKE2U-JOT3y9OZ.js} +1 -1
- package/dist/web/assets/{folder-plus-CPlBpAjK.js → folder-plus-Dv3mIoot.js} +1 -1
- package/dist/web/assets/{ganttDiagram-NO4QXBWP-rxIBQVNR.js → ganttDiagram-NO4QXBWP-BwMM9lRV.js} +1 -1
- package/dist/web/assets/{gitGraphDiagram-IHSO6WYX-CfgOr47E.js → gitGraphDiagram-IHSO6WYX-Ca0Kjref.js} +1 -1
- package/dist/web/assets/highlighted-body-TPN3WLV5-VkAb1QUw.js +1 -0
- package/dist/web/assets/{imageViewerCopy-DbcGAYOb.js → imageViewerCopy-BBW9Oggj.js} +1 -1
- package/dist/web/assets/{index-CUEPjMAK.js → index-B5px1ls4.js} +1 -1
- package/dist/web/assets/{index-Cg-hTlne.js → index-CTpWXHK5.js} +2 -2
- package/dist/web/assets/{index-DIhhLINU.js → index-CtwbNx5m.js} +1 -1
- package/dist/web/assets/{index-C0OnaOQ9.js → index-ofOCAr04.js} +1 -1
- package/dist/web/assets/infoDiagram-FWYZ7A6U-FmG41IWW.js +1 -0
- package/dist/web/assets/{ishikawaDiagram-FXEZZL3T-CrwkydfS.js → ishikawaDiagram-FXEZZL3T-DJix30qW.js} +1 -1
- package/dist/web/assets/{journeyDiagram-5HDEW3XC-9mpjCVzY.js → journeyDiagram-5HDEW3XC-CIDtc9NL.js} +1 -1
- package/dist/web/assets/{kanban-definition-HUTT4EX6-BHH-hi9E.js → kanban-definition-HUTT4EX6-kNtL91_Y.js} +1 -1
- package/dist/web/assets/{key-round-BTcpevK5.js → key-round-CBNFW_Qp.js} +1 -1
- package/dist/web/assets/{linear-BFyDT02f.js → linear-Pl-iycWx.js} +1 -1
- package/dist/web/assets/{mermaid-O7DHMXV3-Btm49B1f.js → mermaid-O7DHMXV3-Bq_tcKDI.js} +2 -2
- package/dist/web/assets/{mermaid.core-DsV-uGyB.js → mermaid.core-DKLhQHMi.js} +2 -2
- package/dist/web/assets/{mic--tu-R1CO.js → mic-BHRmNhFG.js} +1 -1
- package/dist/web/assets/{mindmap-definition-LN4V7U3C-BKiIDYsx.js → mindmap-definition-LN4V7U3C-EdtXTVq3.js} +1 -1
- package/dist/web/assets/{pegDiagram-2B236MQR-sKr_MbJ8.js → pegDiagram-2B236MQR-CcQiWdRU.js} +1 -1
- package/dist/web/assets/{pieDiagram-ENE6RG2P-BDfwhOm3.js → pieDiagram-ENE6RG2P-B9OftxL2.js} +1 -1
- package/dist/web/assets/{quadrantDiagram-ABIIQ3AL-DP98F4Tc.js → quadrantDiagram-ABIIQ3AL-DNzteO4O.js} +1 -1
- package/dist/web/assets/{railroadDiagram-RFXS5EU6-CEIxXnOV.js → railroadDiagram-RFXS5EU6-DETkFxdL.js} +1 -1
- package/dist/web/assets/{requirementDiagram-TGXJPOKE-BFQiFukq.js → requirementDiagram-TGXJPOKE-Bc2ygXJE.js} +1 -1
- package/dist/web/assets/{sankeyDiagram-HTMAVEWB-CK7qSKcH.js → sankeyDiagram-HTMAVEWB-ued5WJdO.js} +1 -1
- package/dist/web/assets/{sequenceDiagram-DBY2YBRQ-DAsJtbEE.js → sequenceDiagram-DBY2YBRQ-CB9W7GEK.js} +1 -1
- package/dist/web/assets/{shield-check-DPmOpYg5.js → shield-check-BHYK9iHQ.js} +1 -1
- package/dist/web/assets/{sizeCapture-X5ZJPWSS-BGpUlliu.js → sizeCapture-X5ZJPWSS-BlYVWgJQ.js} +1 -1
- package/dist/web/assets/{stateDiagram-2N3HPSRC-C54QLFU7.js → stateDiagram-2N3HPSRC-BuBfZ-Ll.js} +1 -1
- package/dist/web/assets/stateDiagram-v2-6OUMAXLB-BVWYwLt9.js +1 -0
- package/dist/web/assets/{swimlanes-5IMT3BWC-BiTjNgIT.js → swimlanes-5IMT3BWC-DymXACYM.js} +2 -2
- package/dist/web/assets/swimlanesDiagram-G3AALYLV-BxIeu7lf.js +1 -0
- package/dist/web/assets/{timeline-definition-FHXFAJF6-C8-hX5IV.js → timeline-definition-FHXFAJF6-Doqvtw8A.js} +1 -1
- package/dist/web/assets/useComposerCompletion-f1any5m7.js +1 -0
- package/dist/web/assets/{useMessageImage-IJxrl7nu.js → useMessageImage-CkBgO2_p.js} +1 -1
- package/dist/web/assets/{vennDiagram-L72KCM5P-Dsqo3cMF.js → vennDiagram-L72KCM5P-BTDdTQn0.js} +1 -1
- package/dist/web/assets/{wardleyDiagram-EHGQE667-CeAk-yQG.js → wardleyDiagram-EHGQE667-DJVmxdj7.js} +1 -1
- package/dist/web/assets/{xychartDiagram-FW5EYKEG-y6abbBAM.js → xychartDiagram-FW5EYKEG-D1C4pPp4.js} +1 -1
- package/dist/web/assets/{zap-BBEUMj_u.js → zap-DsMffYum.js} +1 -1
- package/dist/web/index.html +1 -1
- package/dist/web/obsidian-editor-assets.json +1 -1
- package/package.json +1 -1
- package/dist/web/assets/App-DXhmlTQu.js +0 -2
- package/dist/web/assets/ChatPane-BaAKWPnJ.js +0 -2
- package/dist/web/assets/FilesControlPanel-Dlvt1Gp1.js +0 -1
- package/dist/web/assets/channel-DZo4wTF7.js +0 -1
- package/dist/web/assets/chevron-up-DQfpYsuw.js +0 -1
- package/dist/web/assets/classDiagram-OUVF2IWQ-kVNkVXMH.js +0 -1
- package/dist/web/assets/classDiagram-v2-EOCWNBFH-kVNkVXMH.js +0 -1
- package/dist/web/assets/highlighted-body-TPN3WLV5-Cnt0-aIs.js +0 -1
- package/dist/web/assets/infoDiagram-FWYZ7A6U-ClEYLmSr.js +0 -1
- package/dist/web/assets/stateDiagram-v2-6OUMAXLB-C1gZlI03.js +0 -1
- package/dist/web/assets/swimlanesDiagram-G3AALYLV-DMEyjS0M.js +0 -1
- package/dist/web/assets/useComposerCompletion-gVIPCpAa.js +0 -1
package/dist/web/assets/{ganttDiagram-NO4QXBWP-rxIBQVNR.js → ganttDiagram-NO4QXBWP-BwMM9lRV.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bf as t,bg as e,bh as n,bi as r,bj as i,bk as s,bl as a,_ as o,g as c,s as u,p as l,o as d,a as h,b as f,c as g,d as m,e as y,l as k,k as p,j as T,q as v,y as x}from"./mermaid.core-DsV-uGyB.js";import{d as b}from"./RemoteLifeOSBlock-Bhm7Sf00.js";import{g as w}from"./index-CUEPjMAK.js";import{b as D,t as M,c as C,a as $,l as _}from"./linear-BFyDT02f.js";import{i as S}from"./init-C0SZ43gy.js";import"./index-Cg-hTlne.js";import"./purify.es-BNLkGfTg.js";import"./marked.esm-BBjA1da9.js";import"./index-C0OnaOQ9.js";import"./file-editor-index-C6CU7Fik.js";import"./App-DXhmlTQu.js";import"./chevron-up-DQfpYsuw.js";import"./__vite-browser-external-2447137e-DrC7dgv5.js";import"./defaultLocale-Z7o9ZNZF.js";function Y(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function F(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function A(t){return t}var L=1e-6;function U(t){return"translate("+t+",0)"}function E(t){return"translate(0,"+t+")"}function O(t){return e=>+t(e)}function I(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function H(){return!this.__axis}function W(t,e){var n=[],r=null,i=null,s=6,a=6,o=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,u=1===t||4===t?-1:1,l=4===t||2===t?"x":"y",d=1===t||3===t?U:E;function h(h){var f=r??(e.ticks?e.ticks.apply(e,n):e.domain()),g=i??(e.tickFormat?e.tickFormat.apply(e,n):A),m=Math.max(s,0)+o,y=e.range(),k=+y[0]+c,p=+y[y.length-1]+c,T=(e.bandwidth?I:O)(e.copy(),c),v=h.selection?h.selection():h,x=v.selectAll(".domain").data([null]),b=v.selectAll(".tick").data(f,e).order(),w=b.exit(),D=b.enter().append("g").attr("class","tick"),M=b.select("line"),C=b.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),b=b.merge(D),M=M.merge(D.append("line").attr("stroke","currentColor").attr(l+"2",u*s)),C=C.merge(D.append("text").attr("fill","currentColor").attr(l,u*m).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==v&&(x=x.transition(h),b=b.transition(h),M=M.transition(h),C=C.transition(h),w=w.transition(h).attr("opacity",L).attr("transform",function(t){return isFinite(t=T(t))?d(t+c):this.getAttribute("transform")}),D.attr("opacity",L).attr("transform",function(t){var e=this.parentNode.__axis;return d((e&&isFinite(e=e(t))?e:T(t))+c)})),w.remove(),x.attr("d",4===t||2===t?a?"M"+u*a+","+k+"H"+c+"V"+p+"H"+u*a:"M"+c+","+k+"V"+p:a?"M"+k+","+u*a+"V"+c+"H"+p+"V"+u*a:"M"+k+","+c+"H"+p),b.attr("opacity",1).attr("transform",function(t){return d(T(t)+c)}),M.attr(l+"2",u*s),C.attr(l,u*m).text(g),v.filter(H).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),v.each(function(){this.__axis=T})}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(s=a=+t,h):s},h.tickSizeInner=function(t){return arguments.length?(s=+t,h):s},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(o=+t,h):o},h.offset=function(t){return arguments.length?(c=+t,h):c},h}const P=Math.PI/180,N=180/Math.PI,j=.96422,z=.82521,B=4/29,R=6/29,V=3*R*R,Z=R*R*R;function G(n){if(n instanceof q)return new q(n.l,n.a,n.b,n.opacity);if(n instanceof et)return nt(n);n instanceof t||(n=e(n));var r,i,s=K(n.r),a=K(n.g),o=K(n.b),c=Q((.2225045*s+.7168786*a+.0606169*o)/1);return s===a&&a===o?r=i=c:(r=Q((.4360747*s+.3850649*a+.1430804*o)/j),i=Q((.0139322*s+.0971045*a+.7141733*o)/z)),new q(116*c-16,500*(r-c),200*(c-i),n.opacity)}function q(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Q(t){return t>Z?Math.pow(t,1/3):t/V+B}function X(t){return t>R?t*t*t:V*(t-B)}function J(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function K(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function tt(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof et)return new et(t.h,t.c,t.l,t.opacity);if(t instanceof q||(t=G(t)),0===t.a&&0===t.b)return new et(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*N;return new et(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new et(t,e,n,r??1)}function et(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function nt(t){if(isNaN(t.h))return new q(t.l,0,0,t.opacity);var e=t.h*P;return new q(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}n(q,function(t,e,n,r){return 1===arguments.length?G(t):new q(t,e,n,r??1)},r(i,{brighter(t){return new q(this.l+18*(t??1),this.a,this.b,this.opacity)},darker(t){return new q(this.l-18*(t??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,n=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return n=j*X(n),e=1*X(e),r=z*X(r),new t(J(3.1338561*n-1.6168667*e-.4906146*r),J(-.9787684*n+1.9161415*e+.033454*r),J(.0719453*n-.2289914*e+1.4052427*r),this.opacity)}})),n(et,tt,r(i,{brighter(t){return new et(this.h,this.c,this.l+18*(t??1),this.opacity)},darker(t){return new et(this.h,this.c,this.l-18*(t??1),this.opacity)},rgb(){return nt(this).rgb()}}));const rt=function(t){return function(e,n){var r=t((e=tt(e)).h,(n=tt(n)).h),i=s(e.c,n.c),a=s(e.l,n.l),o=s(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}(a),it=new Date,st=new Date;function at(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),i.round=t=>{const e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,s)=>{const a=[];if(n=i.ceil(n),s=null==s?1:Math.floor(s),!(n<r&&s>0))return a;let o;do{a.push(o=new Date(+n)),e(n,s),t(n)}while(o<n&&n<r);return a},i.filter=n=>at(e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},(t,r)=>{if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}),n&&(i.count=(e,r)=>(it.setTime(+e),st.setTime(+r),t(it),t(st),Math.floor(n(it,st))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?e=>r(e)%t===0:e=>i.count(0,e)%t===0):i:null)),i}const ot=at(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);ot.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?at(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):ot:null),ot.range;const ct=1e3,ut=6e4,lt=36e5,dt=864e5,ht=6048e5,ft=31536e6,gt=at(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getUTCSeconds());gt.range;const mt=at(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ct)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getMinutes());mt.range,at(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getUTCMinutes()).range;const yt=at(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ct-t.getMinutes()*ut)},(t,e)=>{t.setTime(+t+e*lt)},(t,e)=>(e-t)/lt,t=>t.getHours());yt.range,at(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*lt)},(t,e)=>(e-t)/lt,t=>t.getUTCHours()).range;const kt=at(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ut)/dt,t=>t.getDate()-1);kt.range;const pt=at(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>t.getUTCDate()-1);function Tt(t){return at(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ut)/ht)}pt.range,at(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>Math.floor(t/dt)).range;const vt=Tt(0),xt=Tt(1),bt=Tt(2),wt=Tt(3),Dt=Tt(4),Mt=Tt(5),Ct=Tt(6);function $t(t){return at(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/ht)}vt.range,xt.range,bt.range,wt.range,Dt.range,Mt.range,Ct.range;const _t=$t(0),St=$t(1),Yt=$t(2),Ft=$t(3),At=$t(4),Lt=$t(5),Ut=$t(6);_t.range,St.range,Yt.range,Ft.range,At.range,Lt.range,Ut.range;const Et=at(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear()),t=>t.getMonth());Et.range,at(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear()),t=>t.getUTCMonth()).range;const Ot=at(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Ot.every=t=>isFinite(t=Math.floor(t))&&t>0?at(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}):null,Ot.range;const It=at(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());It.every=t=>isFinite(t=Math.floor(t))&&t>0?at(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null,It.range;const[Ht,Wt]=function(t){const e=[[gt,1,ct],[gt,5,5e3],[gt,15,15e3],[gt,30,3e4],[mt,1,ut],[mt,5,3e5],[mt,15,9e5],[mt,30,18e5],[yt,1,lt],[yt,3,108e5],[yt,6,216e5],[yt,12,432e5],[kt,1,dt],[kt,2,1728e5],[vt,1,ht],[Et,1,2592e6],[Et,3,7776e6],[t,1,ft]];function n(n,r,i){const s=Math.abs(r-n)/i,a=D(([,,t])=>t).right(e,s);if(a===e.length)return t.every(M(n/ft,r/ft,i));if(0===a)return ot.every(Math.max(M(n,r,i),1));const[o,c]=e[s/e[a-1][2]<e[a][2]/s?a-1:a];return o.every(c)}return[function(t,e,r){const i=e<t;i&&([t,e]=[e,t]);const s=r&&"function"==typeof r.range?r:n(t,e,r),a=s?s.range(t,+e+1):[];return i?a.reverse():a},n]}(Ot);function Pt(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Nt(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function jt(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var zt,Bt,Rt={"-":"",_:" ",0:"0"},Vt=/^\s*\d+/,Zt=/^%/,Gt=/[\\^$*+?|[\]().{}]/g;function qt(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(e)+i:i)}function Qt(t){return t.replace(Gt,"\\$&")}function Xt(t){return new RegExp("^(?:"+t.map(Qt).join("|")+")","i")}function Jt(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function Kt(t,e,n){var r=Vt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function te(t,e,n){var r=Vt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function ee(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function ne(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function re(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function ie(t,e,n){var r=Vt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function se(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ae(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function oe(t,e,n){var r=Vt.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function ce(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ue(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function le(t,e,n){var r=Vt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function de(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function he(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function fe(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function ge(t,e,n){var r=Vt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function me(t,e,n){var r=Vt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ye(t,e,n){var r=Zt.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function ke(t,e,n){var r=Vt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function pe(t,e,n){var r=Vt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Te(t,e){return qt(t.getDate(),e,2)}function ve(t,e){return qt(t.getHours(),e,2)}function xe(t,e){return qt(t.getHours()%12||12,e,2)}function be(t,e){return qt(1+kt.count(Ot(t),t),e,3)}function we(t,e){return qt(t.getMilliseconds(),e,3)}function De(t,e){return we(t,e)+"000"}function Me(t,e){return qt(t.getMonth()+1,e,2)}function Ce(t,e){return qt(t.getMinutes(),e,2)}function $e(t,e){return qt(t.getSeconds(),e,2)}function _e(t){var e=t.getDay();return 0===e?7:e}function Se(t,e){return qt(vt.count(Ot(t)-1,t),e,2)}function Ye(t){var e=t.getDay();return e>=4||0===e?Dt(t):Dt.ceil(t)}function Fe(t,e){return t=Ye(t),qt(Dt.count(Ot(t),t)+(4===Ot(t).getDay()),e,2)}function Ae(t){return t.getDay()}function Le(t,e){return qt(xt.count(Ot(t)-1,t),e,2)}function Ue(t,e){return qt(t.getFullYear()%100,e,2)}function Ee(t,e){return qt((t=Ye(t)).getFullYear()%100,e,2)}function Oe(t,e){return qt(t.getFullYear()%1e4,e,4)}function Ie(t,e){var n=t.getDay();return qt((t=n>=4||0===n?Dt(t):Dt.ceil(t)).getFullYear()%1e4,e,4)}function He(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+qt(e/60|0,"0",2)+qt(e%60,"0",2)}function We(t,e){return qt(t.getUTCDate(),e,2)}function Pe(t,e){return qt(t.getUTCHours(),e,2)}function Ne(t,e){return qt(t.getUTCHours()%12||12,e,2)}function je(t,e){return qt(1+pt.count(It(t),t),e,3)}function ze(t,e){return qt(t.getUTCMilliseconds(),e,3)}function Be(t,e){return ze(t,e)+"000"}function Re(t,e){return qt(t.getUTCMonth()+1,e,2)}function Ve(t,e){return qt(t.getUTCMinutes(),e,2)}function Ze(t,e){return qt(t.getUTCSeconds(),e,2)}function Ge(t){var e=t.getUTCDay();return 0===e?7:e}function qe(t,e){return qt(_t.count(It(t)-1,t),e,2)}function Qe(t){var e=t.getUTCDay();return e>=4||0===e?At(t):At.ceil(t)}function Xe(t,e){return t=Qe(t),qt(At.count(It(t),t)+(4===It(t).getUTCDay()),e,2)}function Je(t){return t.getUTCDay()}function Ke(t,e){return qt(St.count(It(t)-1,t),e,2)}function tn(t,e){return qt(t.getUTCFullYear()%100,e,2)}function en(t,e){return qt((t=Qe(t)).getUTCFullYear()%100,e,2)}function nn(t,e){return qt(t.getUTCFullYear()%1e4,e,4)}function rn(t,e){var n=t.getUTCDay();return qt((t=n>=4||0===n?At(t):At.ceil(t)).getUTCFullYear()%1e4,e,4)}function sn(){return"+0000"}function an(){return"%"}function on(t){return+t}function cn(t){return Math.floor(+t/1e3)}function un(t){return new Date(t)}function ln(t){return t instanceof Date?+t:+new Date(+t)}function dn(t,e,n,r,i,s,a,o,c,u){var l=C(),d=l.invert,h=l.domain,f=u(".%L"),g=u(":%S"),m=u("%I:%M"),y=u("%I %p"),k=u("%a %d"),p=u("%b %d"),T=u("%B"),v=u("%Y");function x(t){return(c(t)<t?f:o(t)<t?g:a(t)<t?m:s(t)<t?y:r(t)<t?i(t)<t?k:p:n(t)<t?T:v)(t)}return l.invert=function(t){return new Date(d(t))},l.domain=function(t){return arguments.length?h(Array.from(t,ln)):h().map(un)},l.ticks=function(e){var n=h();return t(n[0],n[n.length-1],e??10)},l.tickFormat=function(t,e){return null==e?x:u(e)},l.nice=function(t){var n=h();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],t??10)),t?h(function(t,e){var n,r=0,i=(t=t.slice()).length-1,s=t[r],a=t[i];return a<s&&(n=r,r=i,i=n,n=s,s=a,a=n),t[r]=e.floor(s),t[i]=e.ceil(a),t}(n,t)):l},l.copy=function(){return $(l,dn(t,e,n,r,i,s,a,o,c,u))},l}function hn(){return S.apply(dn(Ht,Wt,Ot,Et,vt,kt,yt,mt,gt,Bt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}zt=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,a=t.shortDays,o=t.months,c=t.shortMonths,u=Xt(i),l=Jt(i),d=Xt(s),h=Jt(s),f=Xt(a),g=Jt(a),m=Xt(o),y=Jt(o),k=Xt(c),p=Jt(c),T={a:function(t){return a[t.getDay()]},A:function(t){return s[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return o[t.getMonth()]},c:null,d:Te,e:Te,f:De,g:Ee,G:Ie,H:ve,I:xe,j:be,L:we,m:Me,M:Ce,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:on,s:cn,S:$e,u:_e,U:Se,V:Fe,w:Ae,W:Le,x:null,X:null,y:Ue,Y:Oe,Z:He,"%":an},v={a:function(t){return a[t.getUTCDay()]},A:function(t){return s[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return o[t.getUTCMonth()]},c:null,d:We,e:We,f:Be,g:en,G:rn,H:Pe,I:Ne,j:je,L:ze,m:Re,M:Ve,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:on,s:cn,S:Ze,u:Ge,U:qe,V:Xe,w:Je,W:Ke,x:null,X:null,y:tn,Y:nn,Z:sn,"%":an},x={a:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=g.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=k.exec(e.slice(n));return r?(t.m=p.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return D(t,e,n,r)},d:ue,e:ue,f:me,g:se,G:ie,H:de,I:de,j:le,L:ge,m:ce,M:he,p:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:oe,Q:ke,s:pe,S:fe,u:te,U:ee,V:ne,w:Kt,W:re,x:function(t,e,r){return D(t,n,e,r)},X:function(t,e,n){return D(t,r,e,n)},y:se,Y:ie,Z:ae,"%":ye};function b(t,e){return function(n){var r,i,s,a=[],o=-1,c=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++o<u;)37===t.charCodeAt(o)&&(a.push(t.slice(c,o)),null!=(i=Rt[r=t.charAt(++o)])?r=t.charAt(++o):i="e"===r?" ":"0",(s=e[r])&&(r=s(n,i)),a.push(r),c=o+1);return a.push(t.slice(c,o)),a.join("")}}function w(t,e){return function(n){var r,i,s=jt(1900,void 0,1);if(D(s,t,n+="",0)!=n.length)return null;if("Q"in s)return new Date(s.Q);if("s"in s)return new Date(1e3*s.s+("L"in s?s.L:0));if(e&&!("Z"in s)&&(s.Z=0),"p"in s&&(s.H=s.H%12+12*s.p),void 0===s.m&&(s.m="q"in s?s.q:0),"V"in s){if(s.V<1||s.V>53)return null;"w"in s||(s.w=1),"Z"in s?(i=(r=Nt(jt(s.y,0,1))).getUTCDay(),r=i>4||0===i?St.ceil(r):St(r),r=pt.offset(r,7*(s.V-1)),s.y=r.getUTCFullYear(),s.m=r.getUTCMonth(),s.d=r.getUTCDate()+(s.w+6)%7):(i=(r=Pt(jt(s.y,0,1))).getDay(),r=i>4||0===i?xt.ceil(r):xt(r),r=kt.offset(r,7*(s.V-1)),s.y=r.getFullYear(),s.m=r.getMonth(),s.d=r.getDate()+(s.w+6)%7)}else("W"in s||"U"in s)&&("w"in s||(s.w="u"in s?s.u%7:"W"in s?1:0),i="Z"in s?Nt(jt(s.y,0,1)).getUTCDay():Pt(jt(s.y,0,1)).getDay(),s.m=0,s.d="W"in s?(s.w+6)%7+7*s.W-(i+5)%7:s.w+7*s.U-(i+6)%7);return"Z"in s?(s.H+=s.Z/100|0,s.M+=s.Z%100,Nt(s)):Pt(s)}}function D(t,e,n,r){for(var i,s,a=0,o=e.length,c=n.length;a<o;){if(r>=c)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(s=x[i in Rt?e.charAt(a++):i])||(r=s(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return T.x=b(n,T),T.X=b(r,T),T.c=b(e,T),v.x=b(n,v),v.X=b(r,v),v.c=b(e,v),{format:function(t){var e=b(t+="",T);return e.toString=function(){return t},e},parse:function(t){var e=w(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=b(t+="",v);return e.toString=function(){return t},e},utcParse:function(t){var e=w(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Bt=zt.format,zt.parse,zt.utcFormat,zt.utcParse;var fn,gn={exports:{}};const mn=w(fn?gn.exports:(fn=1,gn.exports=function(){var t="day";return function(e,n,r){var i=function(e){return e.add(4-e.isoWeekday(),t)},s=n.prototype;s.isoWeekYear=function(){return i(this).year()},s.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),t);var n,s,a,o=i(this),c=(n=this.isoWeekYear(),a=4-(s=(this.$u?r.utc:r)().year(n).startOf("year")).isoWeekday(),s.isoWeekday()>4&&(a+=7),s.add(a,t));return o.diff(c,"week")+1},s.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)};var a=s.startOf;s.startOf=function(t,e){var n=this.$utils(),r=!!n.u(e)||e;return"isoweek"===n.p(t)?r?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(t,e)}}}()));var yn,kn={exports:{}};const pn=w(yn?kn.exports:(yn=1,kn.exports=function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,a={},o=function(t){return(t=+t)+(t>68?1900:2e3)},c=function(t){return function(e){this[t]=+e}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t)}],l=function(t){var e=a[t];return e&&(e.indexOf?e:e.s.concat(e.f))},d=function(t,e){var n,r=a.meridiem;if(r){for(var i=1;i<=24;i+=1)if(t.indexOf(r(i,0,e))>-1){n=i>12;break}}else n=t===(e?"pm":"PM");return n},h={A:[s,function(t){this.afternoon=d(t,!1)}],a:[s,function(t){this.afternoon=d(t,!0)}],Q:[n,function(t){this.month=3*(t-1)+1}],S:[n,function(t){this.milliseconds=100*+t}],SS:[r,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[i,c("seconds")],ss:[i,c("seconds")],m:[i,c("minutes")],mm:[i,c("minutes")],H:[i,c("hours")],h:[i,c("hours")],HH:[i,c("hours")],hh:[i,c("hours")],D:[i,c("day")],DD:[r,c("day")],Do:[s,function(t){var e=a.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var r=1;r<=31;r+=1)e(r).replace(/\[|\]/g,"")===t&&(this.day=r)}],w:[i,c("week")],ww:[r,c("week")],M:[i,c("month")],MM:[r,c("month")],MMM:[s,function(t){var e=l("months"),n=(l("monthsShort")||e.map(function(t){return t.slice(0,3)})).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[s,function(t){var e=l("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(t){this.year=o(t)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};return function(n,r,i){i.p.customParseFormat=!0,n&&n.parseTwoDigitYear&&(o=n.parseTwoDigitYear);var s=r.prototype,c=s.parse;s.parse=function(n){var r=n.date,s=n.utc,o=n.args;this.$u=s;var u=o[1];if("string"==typeof u){var l=!0===o[2],d=!0===o[3],f=l||d,g=o[2];d&&(g=o[2]),a=this.$locale(),!l&&g&&(a=i.Ls[g]),this.$d=function(n,r,i,s){try{if(["x","X"].indexOf(r)>-1)return new Date(("X"===r?1e3:1)*n);var o=function(n){var r,i;r=n,i=a&&a.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,n,r){var s=r&&r.toUpperCase();return n||i[r]||t[r]||i[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(t,e,n){return e||n.slice(1)})})).match(e),o=s.length,c=0;c<o;c+=1){var u=s[c],l=h[u],d=l&&l[0],f=l&&l[1];s[c]=f?{regex:d,parser:f}:u.replace(/^\[|\]$/g,"")}return function(t){for(var e={},n=0,r=0;n<o;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;else{var a=i.regex,c=i.parser,u=t.slice(r),l=a.exec(u)[0];c.call(e,l),t=t.replace(l,"")}}return function(t){var e=t.afternoon;if(void 0!==e){var n=t.hours;e?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon}}(e),e}}(r)(n),c=o.year,u=o.month,l=o.day,d=o.hours,f=o.minutes,g=o.seconds,m=o.milliseconds,y=o.zone,k=o.week,p=new Date,T=l||(c||u?1:p.getDate()),v=c||p.getFullYear(),x=0;c&&!u||(x=u>0?u-1:p.getMonth());var b,w=d||0,D=f||0,M=g||0,C=m||0;return y?new Date(Date.UTC(v,x,T,w,D,M,C+60*y.offset*1e3)):i?new Date(Date.UTC(v,x,T,w,D,M,C)):(b=new Date(v,x,T,w,D,M,C),k&&(b=s(b).week(k).toDate()),b)}catch($){return new Date("")}}(r,u,s,i),this.init(),g&&!0!==g&&(this.$L=this.locale(g).$L),f&&r!=this.format(u)&&(this.$d=new Date("")),a={}}else if(u instanceof Array)for(var m=u.length,y=1;y<=m;y+=1){o[1]=u[y-1];var k=i.apply(this,o);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}y===m&&(this.$d=new Date(""))}else c.call(this,n)}}}()));var Tn,vn={exports:{}};const xn=w(Tn?vn.exports:(Tn=1,vn.exports=function(t,e){var n=e.prototype,r=n.format;n.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return r.bind(this)(t);var i=this.$utils(),s=(t||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(t){switch(t){case"Q":return Math.ceil((e.$M+1)/3);case"Do":return n.ordinal(e.$D);case"gggg":return e.weekYear();case"GGGG":return e.isoWeekYear();case"wo":return n.ordinal(e.week(),"W");case"w":case"ww":return i.s(e.week(),"w"===t?1:2,"0");case"W":case"WW":return i.s(e.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return i.s(String(0===e.$H?24:e.$H),"k"===t?1:2,"0");case"X":return Math.floor(e.$d.getTime()/1e3);case"x":return e.$d.getTime();case"z":return"["+e.offsetName()+"]";case"zzz":return"["+e.offsetName("long")+"]";default:return t}});return r.bind(this)(s)}}));var bn,wn={exports:{}};const Dn=w(bn?wn.exports:(bn=1,wn.exports=function(){var t,e,n=1e3,r=6e4,i=36e5,s=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,o=31536e6,c=2628e6,u=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l={years:o,months:c,days:s,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(t){return t instanceof p},h=function(t,e,n){return new p(t,n,e.$l)},f=function(t){return e.p(t)+"s"},g=function(t){return t<0},m=function(t){return g(t)?Math.ceil(t):Math.floor(t)},y=function(t){return Math.abs(t)},k=function(t,e){return t?g(t)?{negative:!0,format:""+y(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},p=function(){function g(t,e,n){var r=this;if(this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),e)return h(t*l[f(e)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach(function(e){r.$d[f(e)]=t[e]}),this.calMilliseconds(),this;if("string"==typeof t){var i=t.match(u);if(i){var s=i.slice(2).map(function(t){return null!=t?Number(t):0});return this.$d.years=s[0],this.$d.months=s[1],this.$d.weeks=s[2],this.$d.days=s[3],this.$d.hours=s[4],this.$d.minutes=s[5],this.$d.seconds=s[6],this.calMilliseconds(),this}}return this}var y=g.prototype;return y.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce(function(e,n){return e+(t.$d[n]||0)*l[n]},0)},y.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=m(t/o),t%=o,this.$d.months=m(t/c),t%=c,this.$d.days=m(t/s),t%=s,this.$d.hours=m(t/i),t%=i,this.$d.minutes=m(t/r),t%=r,this.$d.seconds=m(t/n),t%=n,this.$d.milliseconds=t},y.toISOString=function(){var t=k(this.$d.years,"Y"),e=k(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=k(n,"D"),i=k(this.$d.hours,"H"),s=k(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var o=k(a,"S"),c=t.negative||e.negative||r.negative||i.negative||s.negative||o.negative,u=i.format||s.format||o.format?"T":"",l=(c?"-":"")+"P"+t.format+e.format+r.format+u+i.format+s.format+o.format;return"P"===l||"-P"===l?"P0D":l},y.toJSON=function(){return this.toISOString()},y.format=function(t){var n=t||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return n.replace(a,function(t,e){return e||String(r[t])})},y.as=function(t){return this.$ms/l[f(t)]},y.get=function(t){var e=this.$ms,n=f(t);return"milliseconds"===n?e%=1e3:e="weeks"===n?m(e/l[n]):this.$d[n],e||0},y.add=function(t,e,n){var r;return r=e?t*l[f(e)]:d(t)?t.$ms:h(t,this).$ms,h(this.$ms+r*(n?-1:1),this)},y.subtract=function(t,e){return this.add(t,e,!0)},y.locale=function(t){var e=this.clone();return e.$l=t,e},y.clone=function(){return h(this.$ms,this)},y.humanize=function(e){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},y.valueOf=function(){return this.asMilliseconds()},y.milliseconds=function(){return this.get("milliseconds")},y.asMilliseconds=function(){return this.as("milliseconds")},y.seconds=function(){return this.get("seconds")},y.asSeconds=function(){return this.as("seconds")},y.minutes=function(){return this.get("minutes")},y.asMinutes=function(){return this.as("minutes")},y.hours=function(){return this.get("hours")},y.asHours=function(){return this.as("hours")},y.days=function(){return this.get("days")},y.asDays=function(){return this.as("days")},y.weeks=function(){return this.get("weeks")},y.asWeeks=function(){return this.as("weeks")},y.months=function(){return this.get("months")},y.asMonths=function(){return this.as("months")},y.years=function(){return this.get("years")},y.asYears=function(){return this.as("years")},g}(),T=function(t,e,n){return t.add(e.years()*n,"y").add(e.months()*n,"M").add(e.days()*n,"d").add(e.hours()*n,"h").add(e.minutes()*n,"m").add(e.seconds()*n,"s").add(e.milliseconds()*n,"ms")};return function(n,r,i){t=i,e=i().$utils(),i.duration=function(t,e){var n=i.locale();return h(t,{$l:n},e)},i.isDuration=d;var s=r.prototype.add,a=r.prototype.subtract;r.prototype.add=function(t,e){return d(t)?T(this,t,1):s.bind(this)(t,e)},r.prototype.subtract=function(t,e){return d(t)?T(this,t,-1):a.bind(this)(t,e)}}}()));var Mn=function(){var t=o(function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],s=[1,29],a=[1,30],c=[1,31],u=[1,32],l=[1,33],d=[1,34],h=[1,9],f=[1,10],g=[1,11],m=[1,12],y=[1,13],k=[1,14],p=[1,15],T=[1,16],v=[1,19],x=[1,20],b=[1,21],w=[1,22],D=[1,23],M=[1,25],C=[1,35],$={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:o(function(t,e,n,r,i,s,a){var o=s.length-1;switch(i){case 1:return s[o-1];case 2:case 6:case 7:this.$=[];break;case 3:s[o-1].push(s[o]),this.$=s[o-1];break;case 4:case 5:this.$=s[o];break;case 8:r.setWeekday("monday");break;case 9:r.setWeekday("tuesday");break;case 10:r.setWeekday("wednesday");break;case 11:r.setWeekday("thursday");break;case 12:r.setWeekday("friday");break;case 13:r.setWeekday("saturday");break;case 14:r.setWeekday("sunday");break;case 15:r.setWeekend("friday");break;case 16:r.setWeekend("saturday");break;case 17:r.setDateFormat(s[o].substr(11)),this.$=s[o].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=s[o].substr(18);break;case 19:r.TopAxis(),this.$=s[o].substr(8);break;case 20:r.setAxisFormat(s[o].substr(11)),this.$=s[o].substr(11);break;case 21:r.setTickInterval(s[o].substr(13)),this.$=s[o].substr(13);break;case 22:r.setExcludes(s[o].substr(9)),this.$=s[o].substr(9);break;case 23:r.setIncludes(s[o].substr(9)),this.$=s[o].substr(9);break;case 24:r.setTodayMarker(s[o].substr(12)),this.$=s[o].substr(12);break;case 27:r.setDiagramTitle(s[o].substr(6)),this.$=s[o].substr(6);break;case 28:this.$=s[o].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=s[o].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(s[o].substr(8)),this.$=s[o].substr(8);break;case 33:r.addTask(s[o-1],s[o]),this.$="task";break;case 34:this.$=s[o-1],r.setClickEvent(s[o-1],s[o],null);break;case 35:this.$=s[o-2],r.setClickEvent(s[o-2],s[o-1],s[o]);break;case 36:this.$=s[o-2],r.setClickEvent(s[o-2],s[o-1],null),r.setLink(s[o-2],s[o]);break;case 37:this.$=s[o-3],r.setClickEvent(s[o-3],s[o-2],s[o-1]),r.setLink(s[o-3],s[o]);break;case 38:this.$=s[o-2],r.setClickEvent(s[o-2],s[o],null),r.setLink(s[o-2],s[o-1]);break;case 39:this.$=s[o-3],r.setClickEvent(s[o-3],s[o-1],s[o]),r.setLink(s[o-3],s[o-2]);break;case 40:this.$=s[o-1],r.setLink(s[o-1],s[o]);break;case 41:case 47:this.$=s[o-1]+" "+s[o];break;case 42:case 43:case 45:this.$=s[o-2]+" "+s[o-1]+" "+s[o];break;case 44:case 46:this.$=s[o-3]+" "+s[o-2]+" "+s[o-1]+" "+s[o]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:s,16:a,17:c,18:u,19:18,20:l,21:d,22:h,23:f,24:g,25:m,26:y,27:k,28:p,29:T,30:v,31:x,33:b,35:w,36:D,37:24,38:M,40:C},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:s,16:a,17:c,18:u,19:18,20:l,21:d,22:h,23:f,24:g,25:m,26:y,27:k,28:p,29:T,30:v,31:x,33:b,35:w,36:D,37:24,38:M,40:C},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:o(function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},"parseError"),parse:o(function(t){var e=this,n=[0],r=[],i=[null],s=[],a=this.table,c="",u=0,l=0,d=s.slice.call(arguments,1),h=Object.create(this.lexer),f={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(f.yy[g]=this.yy[g]);h.setInput(t,f.yy),f.yy.lexer=h,f.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var m=h.yylloc;s.push(m);var y=h.options&&h.options.ranges;function k(){var t;return"number"!=typeof(t=r.pop()||h.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,o(function(t){n.length=n.length-2*t,i.length=i.length-t,s.length=s.length-t},"popStack"),o(k,"lex");for(var p,T,v,x,b,w,D,M,C={};;){if(T=n[n.length-1],this.defaultActions[T]?v=this.defaultActions[T]:(null==p&&(p=k()),v=a[T]&&a[T][p]),void 0===v||!v.length||!v[0]){var $;for(b in M=[],a[T])this.terminals_[b]&&b>2&&M.push("'"+this.terminals_[b]+"'");$=h.showPosition?"Parse error on line "+(u+1)+":\n"+h.showPosition()+"\nExpecting "+M.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(u+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError($,{text:h.match,token:this.terminals_[p]||p,line:h.yylineno,loc:m,expected:M})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+p);switch(v[0]){case 1:n.push(p),i.push(h.yytext),s.push(h.yylloc),n.push(v[1]),p=null,l=h.yyleng,c=h.yytext,u=h.yylineno,m=h.yylloc;break;case 2:if(w=this.productions_[v[1]][1],C.$=i[i.length-w],C._$={first_line:s[s.length-(w||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(w||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(w||1)].range[0],s[s.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[c,l,u,f.yy,v[1],i,s].concat(d))))return x;w&&(n=n.slice(0,-1*w*2),i=i.slice(0,-1*w),s=s.slice(0,-1*w)),n.push(this.productions_[v[1]][0]),i.push(C.$),s.push(C._$),D=a[n[n.length-2]][n[n.length-1]],n.push(D);break;case 3:return!0}}return!0},"parse")},_=function(){return{EOF:1,parseError:o(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:o(function(t,e){return this.yy=e||this.yy||{},this._input=t,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:o(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:o(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:o(function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in i)this[s]=i[s];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),s=0;s<i.length;s++)if((n=this._input.match(this.rules[i[s]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[s])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){return this.next()||this.lex()},"lex"),begin:o(function(t){this.conditionStack.push(t)},"begin"),popState:o(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:o(function(t){this.begin(t)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 15:case 18:case 21:case 24:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:case 9:case 10:case 12:case 13:break;case 11:return 10;case 14:this.begin("href");break;case 16:return 43;case 17:this.begin("callbackname");break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 22:return 42;case 23:this.begin("click");break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}}();function S(){this.yy={}}return $.lexer=_,o(S,"Parser"),S.prototype=$,$.Parser=S,new S}();Mn.parser=Mn;var Cn=Mn;b.extend(mn),b.extend(pn),b.extend(xn);var $n,_n,Sn={friday:5,saturday:6},Yn="",Fn="",An=void 0,Ln="",Un=[],En=[],On=new Map,In=[],Hn=[],Wn="",Pn="",Nn=["active","done","crit","milestone","vert"],jn=[],zn="",Bn=!1,Rn=!1,Vn="sunday",Zn="saturday",Gn=0,qn=o(function(){In=[],Hn=[],Wn="",jn=[],Sr=0,$n=void 0,_n=void 0,Lr=[],Yn="",Fn="",Pn="",An=void 0,Ln="",Un=[],En=[],Bn=!1,Rn=!1,Gn=0,On=new Map,zn="",v(),Vn="sunday",Zn="saturday"},"clear"),Qn=o(function(t){zn=t},"setDiagramId"),Xn=o(function(t){Fn=t},"setAxisFormat"),Jn=o(function(){return Fn},"getAxisFormat"),Kn=o(function(t){An=t},"setTickInterval"),tr=o(function(){return An},"getTickInterval"),er=o(function(t){Ln=t},"setTodayMarker"),nr=o(function(){return Ln},"getTodayMarker"),rr=o(function(t){Yn=t},"setDateFormat"),ir=o(function(){Bn=!0},"enableInclusiveEndDates"),sr=o(function(){return Bn},"endDatesAreInclusive"),ar=o(function(){Rn=!0},"enableTopAxis"),or=o(function(){return Rn},"topAxisEnabled"),cr=o(function(t){Pn=t},"setDisplayMode"),ur=o(function(){return Pn},"getDisplayMode"),lr=o(function(){return Yn},"getDateFormat"),dr=o((t,e)=>{const n=e.toLowerCase().split(/[\s,]+/).filter(t=>""!==t);return[...new Set([...t,...n])]},"mergeTokens"),hr=o(function(t){Un=dr(Un,t)},"setIncludes"),fr=o(function(){return Un},"getIncludes"),gr=o(function(t){En=dr(En,t)},"setExcludes"),mr=o(function(){return En},"getExcludes"),yr=o(function(){return On},"getLinks"),kr=o(function(t){Wn=t,In.push(t)},"addSection"),pr=o(function(){return In},"getSections"),Tr=o(function(){let t=Hr(),e=0;for(;!t&&e<10;)t=Hr(),e++;return Hn=Lr},"getTasks"),vr=o(function(t,e,n,r){const i=t.format(e.trim()),s=t.format("YYYY-MM-DD");return!r.includes(i)&&!r.includes(s)&&(!(!n.includes("weekends")||t.isoWeekday()!==Sn[Zn]&&t.isoWeekday()!==Sn[Zn]+1)||!!n.includes(t.format("dddd").toLowerCase())||n.includes(i)||n.includes(s))},"isInvalidDate"),xr=o(function(t){Vn=t},"setWeekday"),br=o(function(){return Vn},"getWeekday"),wr=o(function(t){Zn=t},"setWeekend"),Dr=o(function(t,e,n,r){if(!n.length||t.manualEndTime)return;let i,s;i=t.startTime instanceof Date?b(t.startTime):b(t.startTime,e,!0),i=i.add(1,"d"),s=t.endTime instanceof Date?b(t.endTime):b(t.endTime,e,!0);const[a,o]=Mr(i,s,e,n,r);t.endTime=a.toDate(),t.renderEndTime=o},"checkTaskDates"),Mr=o(function(t,e,n,r,i){let s=!1,a=null;const o=e.add(1e4,"d");for(;t<=e;){if(s||(a=e.toDate()),s=vr(t,n,r,i),s&&(e=e.add(1,"d"))>o)throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[e,a]},"fixTaskDates"),Cr=o(function(t,e,n){if(n=n.trim(),o(t=>{const e=t.trim();return"x"===e||"X"===e},"isTimestampFormat")(e)&&/^\d+$/.test(n))return new Date(Number(n));const r=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(null!==r){let t=null;for(const n of r.groups.ids.split(" ")){let e=Or(n);void 0!==e&&(!t||e.endTime>t.endTime)&&(t=e)}if(t)return t.endTime;const e=new Date;return e.setHours(0,0,0,0),e}let i=b(n,e.trim(),!0);if(i.isValid())return i.toDate();{k.debug("Invalid date:"+n),k.debug("With date format:"+e.trim());const t=new Date(n);if(void 0===t||isNaN(t.getTime())||t.getFullYear()<-1e4||t.getFullYear()>1e4)throw new Error("Invalid date:"+n);return t}},"getStartDate"),$r=o(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return null!==e?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),_r=o(function(t,e,n,r=!1){n=n.trim();const i=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(null!==i){let t=null;for(const n of i.groups.ids.split(" ")){let e=Or(n);void 0!==e&&(!t||e.startTime<t.startTime)&&(t=e)}if(t)return t.startTime;const e=new Date;return e.setHours(0,0,0,0),e}let s=b(n,e.trim(),!0);if(s.isValid())return r&&(s=s.add(1,"d")),s.toDate();let a=b(t);const[o,c]=$r(n);if(!Number.isNaN(o)){const t=a.add(o,c);t.isValid()&&(a=t)}return a.toDate()},"getEndDate"),Sr=0,Yr=o(function(t){return void 0===t?"task"+(Sr+=1):t},"parseId"),Fr=o(function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const r=n.split(","),i={};Vr(r,i,Nn);for(let a=0;a<r.length;a++)r[a]=r[a].trim();let s="";switch(r.length){case 1:i.id=Yr(),i.startTime=t.endTime,s=r[0];break;case 2:i.id=Yr(),i.startTime=Cr(void 0,Yn,r[0]),s=r[1];break;case 3:i.id=Yr(r[0]),i.startTime=Cr(void 0,Yn,r[1]),s=r[2]}return s&&(i.endTime=_r(i.startTime,Yn,s,Bn),i.manualEndTime=b(s,"YYYY-MM-DD",!0).isValid(),Dr(i,Yn,En,Un)),i},"compileData"),Ar=o(function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const r=n.split(","),i={};Vr(r,i,Nn);for(let s=0;s<r.length;s++)r[s]=r[s].trim();switch(r.length){case 1:i.id=Yr(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:r[0]};break;case 2:i.id=Yr(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=Yr(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]}}return i},"parseData"),Lr=[],Ur={},Er=o(function(t,e){const n={section:Wn,type:Wn,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=Ar(_n,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=_n,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,n.vert?n.order=-1:(n.order=Gn,Gn++);const i=Lr.push(n);_n=n.id,Ur[n.id]=i-1},"addTask"),Or=o(function(t){const e=Ur[t];return Lr[e]},"findTaskById"),Ir=o(function(t,e){const n={section:Wn,type:Wn,description:t,task:t,classes:[]},r=Fr($n,e);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,$n=n,Hn.push(n)},"addTaskOrg"),Hr=o(function(){const t=o(function(t){const e=Lr[t];let n="";switch(Lr[t].raw.startTime.type){case"prevTaskEnd":{const t=Or(e.prevTaskId);e.startTime=t.endTime;break}case"getStartDate":n=Cr(void 0,Yn,Lr[t].raw.startTime.startData),n&&(Lr[t].startTime=n)}return Lr[t].startTime&&(Lr[t].endTime=_r(Lr[t].startTime,Yn,Lr[t].raw.endTime.data,Bn),Lr[t].endTime&&(Lr[t].processed=!0,Lr[t].manualEndTime=b(Lr[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Dr(Lr[t],Yn,En,Un))),Lr[t].processed},"compileTask");let e=!0;for(const[n,r]of Lr.entries())t(n),e=e&&r.processed;return e},"compileTasks"),Wr=o(function(t,e){let n=e;"loose"!==g().securityLevel&&(n=T.sanitizeUrl(e)),t.split(",").forEach(function(t){void 0!==Or(t)&&(jr(t,()=>{window.open(n,"_self")}),On.set(t,n))}),Pr(t,"clickable")},"setLink"),Pr=o(function(t,e){t.split(",").forEach(function(t){let n=Or(t);void 0!==n&&n.classes.push(e)})},"setClass"),Nr=o(function(t,e,n){if("loose"!==g().securityLevel)return;if(void 0===e)return;let r=[];if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<r.length;t++){let e=r[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),r[t]=e}}0===r.length&&r.push(t),void 0!==Or(t)&&jr(t,()=>{x.runFunc(e,...r)})},"setClickFun"),jr=o(function(t,e){jn.push(function(){const n=zn?`${zn}-${t}`:t,r=document.querySelector(`[id="${n}"]`);null!==r&&r.addEventListener("click",function(){e()})},function(){const n=zn?`${zn}-${t}`:t,r=document.querySelector(`[id="${n}-text"]`);null!==r&&r.addEventListener("click",function(){e()})})},"pushFun"),zr=o(function(t,e,n){t.split(",").forEach(function(t){Nr(t,e,n)}),Pr(t,"clickable")},"setClickEvent"),Br=o(function(t){jn.forEach(function(e){e(t)})},"bindFunctions"),Rr={getConfig:o(()=>g().gantt,"getConfig"),clear:qn,setDateFormat:rr,getDateFormat:lr,enableInclusiveEndDates:ir,endDatesAreInclusive:sr,enableTopAxis:ar,topAxisEnabled:or,setAxisFormat:Xn,getAxisFormat:Jn,setTickInterval:Kn,getTickInterval:tr,setTodayMarker:er,getTodayMarker:nr,setAccTitle:f,getAccTitle:h,setDiagramTitle:d,getDiagramTitle:l,setDiagramId:Qn,setDisplayMode:cr,getDisplayMode:ur,setAccDescription:u,getAccDescription:c,addSection:kr,getSections:pr,getTasks:Tr,addTask:Er,findTaskById:Or,addTaskOrg:Ir,setIncludes:hr,getIncludes:fr,setExcludes:gr,getExcludes:mr,setClickEvent:zr,setLink:Wr,getLinks:yr,bindFunctions:Br,parseDuration:$r,isInvalidDate:vr,setWeekday:xr,getWeekday:br,setWeekend:wr};function Vr(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(n){const i=new RegExp("^\\s*"+n+"\\s*$");t[0].match(i)&&(e[n]=!0,t.shift(1),r=!0)})}o(Vr,"getTaskTags"),b.extend(Dn);var Zr,Gr=o(function(){k.debug("Something is calling, setConf, remove the call")},"setConf"),qr={monday:xt,tuesday:bt,wednesday:wt,thursday:Dt,friday:Mt,saturday:Ct,sunday:vt},Qr=o((t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((t,e)=>t.startTime-e.startTime||t.order-e.order),i=0;for(const s of r)for(let t=0;t<n.length;t++)if(s.startTime>=n[t]){n[t]=s.endTime,s.order=t+e,t>i&&(i=t);break}return i},"getMaxIntersections"),Xr={parser:Cn,db:Rr,renderer:{setConf:Gr,draw:o(function(t,e,n,r){const i=g().gantt;r.db.setDiagramId(e);const s=g().securityLevel;let a;"sandbox"===s&&(a=m("#i"+e));const c=m("sandbox"===s?a.nodes()[0].contentDocument.body:"body"),u="sandbox"===s?a.nodes()[0].contentDocument:document,l=u.getElementById(e);void 0===(Zr=l.parentElement.offsetWidth)&&(Zr=1200),void 0!==i.useWidth&&(Zr=i.useWidth);const d=r.db.getTasks(),h=d.filter(t=>!t.vert);let f=[];for(const o of h)f.push(o.type);f=E(f);const T={};let v=2*i.topPadding;if("compact"===r.db.getDisplayMode()||"compact"===i.displayMode){const t={};for(const n of h)void 0===t[n.section]?t[n.section]=[n]:t[n.section].push(n);let e=0;for(const n of Object.keys(t)){const r=Qr(t[n],e)+1;e+=r,v+=r*(i.barHeight+i.barGap),T[n]=r}}else{v+=h.length*(i.barHeight+i.barGap);for(const t of f)T[t]=h.filter(e=>e.type===t).length}l.setAttribute("viewBox","0 0 "+Zr+" "+v);const x=c.select(`[id="${e}"]`),w=hn().domain([F(d,function(t){return t.startTime}),Y(d,function(t){return t.endTime})]).rangeRound([0,Zr-i.leftPadding-i.rightPadding]);function D(t,e){const n=t.startTime,r=e.startTime;let i=0;return n>r?i=1:n<r&&(i=-1),i}function M(t,e,n){const s=i.barHeight,a=s+i.barGap,o=i.topPadding,c=i.leftPadding;_().domain([0,f.length]).range(["#00B9FA","#F95002"]).interpolate(rt),$(a,o,c,0,n,t,r.db.getExcludes(),r.db.getIncludes()),A(c,o,0,n),C(t,a,o,c,s,0,e),L(a,o),U(c,0,0,n)}function C(t,n,s,a,o,c,u){t.sort((t,e)=>t.vert===e.vert?0:t.vert?1:-1);const l=t.filter(t=>!t.vert),d=[...new Set(l.map(t=>t.order))].map(t=>l.find(e=>e.order===t));x.append("g").selectAll("rect").data(d).enter().append("rect").attr("x",0).attr("y",function(t,e){return t.order*n+s-2}).attr("width",function(){return u-i.rightPadding/2}).attr("height",n).attr("class",function(t){for(const[e,n]of f.entries())if(t.type===n)return"section section"+e%i.numberSectionStyles;return"section section0"}).enter();const h=x.append("g").selectAll("rect").data(t).enter(),y=r.db.getLinks();if(h.append("rect").attr("id",function(t){return e+"-"+t.id}).attr("rx",3).attr("ry",3).attr("x",function(t){return t.milestone?w(t.startTime)+a+.5*(w(t.endTime)-w(t.startTime))-.5*o:w(t.startTime)+a}).attr("y",function(t,e){return e=t.order,t.vert?i.gridLineStartPadding:e*n+s}).attr("width",function(t){return t.milestone?o:t.vert?.08*o:w(t.renderEndTime||t.endTime)-w(t.startTime)}).attr("height",function(t){return t.vert?l.length*(i.barHeight+i.barGap)+2*i.barHeight:o}).attr("transform-origin",function(t,e){return e=t.order,(w(t.startTime)+a+.5*(w(t.endTime)-w(t.startTime))).toString()+"px "+(e*n+s+.5*o).toString()+"px"}).attr("class",function(t){let e="";t.classes.length>0&&(e=t.classes.join(" "));let n=0;for(const[s,a]of f.entries())t.type===a&&(n=s%i.numberSectionStyles);let r="";return t.active?t.crit?r+=" activeCrit":r=" active":t.done?r=t.crit?" doneCrit":" done":t.crit&&(r+=" crit"),0===r.length&&(r=" task"),t.milestone&&(r=" milestone "+r),t.vert&&(r=" vert "+r),r+=n,r+=" "+e,"task"+r}),h.append("text").attr("id",function(t){return e+"-"+t.id+"-text"}).text(function(t){return t.task}).attr("font-size",i.fontSize).attr("x",function(t){let e=w(t.startTime),n=w(t.renderEndTime||t.endTime);if(t.milestone&&(e+=.5*(w(t.endTime)-w(t.startTime))-.5*o,n=e+o),t.vert)return w(t.startTime)+a;const r=this.getBBox().width;return r>n-e?n+r+1.5*i.leftPadding>u?e+a-5:n+a+5:(n-e)/2+e+a}).attr("y",function(t,e){return t.vert?i.gridLineStartPadding+l.length*(i.barHeight+i.barGap)+60:t.order*n+i.barHeight/2+(i.fontSize/2-2)+s}).attr("text-height",o).attr("class",function(t){const e=w(t.startTime);let n=w(t.endTime);t.milestone&&(n=e+o);const r=this.getBBox().width;let s="";t.classes.length>0&&(s=t.classes.join(" "));let a=0;for(const[o,u]of f.entries())t.type===u&&(a=o%i.numberSectionStyles);let c="";return t.active&&(c=t.crit?"activeCritText"+a:"activeText"+a),t.done?c=t.crit?c+" doneCritText"+a:c+" doneText"+a:t.crit&&(c=c+" critText"+a),t.milestone&&(c+=" milestoneText"),t.vert&&(c+=" vertText"),r>n-e?n+r+1.5*i.leftPadding>u?s+" taskTextOutsideLeft taskTextOutside"+a+" "+c:s+" taskTextOutsideRight taskTextOutside"+a+" "+c+" width-"+r:s+" taskText taskText"+a+" "+c+" width-"+r}),"sandbox"===g().securityLevel){let t;t=m("#i"+e);const n=t.nodes()[0].contentDocument;h.filter(function(t){return y.has(t.id)}).each(function(t){var r=n.querySelector("#"+CSS.escape(e+"-"+t.id)),i=n.querySelector("#"+CSS.escape(e+"-"+t.id+"-text"));const s=r.parentNode;var a=n.createElement("a");a.setAttribute("xlink:href",y.get(t.id)),a.setAttribute("target","_top"),s.appendChild(a),a.appendChild(r),a.appendChild(i)})}}function $(t,n,s,a,o,c,u,l){if(0===u.length&&0===l.length)return;let d,h;for(const{startTime:e,endTime:r}of c)(void 0===d||e<d)&&(d=e),(void 0===h||r>h)&&(h=r);if(!d||!h)return;if(b(h).diff(b(d),"year")>5)return void k.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");const f=r.db.getDateFormat(),g=[];let m=null,y=b(d);for(;y.valueOf()<=h;)r.db.isInvalidDate(y,f,u,l)?m?m.end=y:m={start:y,end:y}:m&&(g.push(m),m=null),y=y.add(1,"d");x.append("g").selectAll("rect").data(g).enter().append("rect").attr("id",t=>e+"-exclude-"+t.start.format("YYYY-MM-DD")).attr("x",t=>w(t.start.startOf("day"))+s).attr("y",i.gridLineStartPadding).attr("width",t=>w(t.end.endOf("day"))-w(t.start.startOf("day"))).attr("height",o-n-i.gridLineStartPadding).attr("transform-origin",function(e,n){return(w(e.start)+s+.5*(w(e.end)-w(e.start))).toString()+"px "+(n*t+.5*o).toString()+"px"}).attr("class","exclude-range")}function S(t,e,n,r){if(n<=0||t>e)return 1/0;const i=e-t,s=b.duration({[r??"day"]:n}).asMilliseconds();return s<=0?1/0:Math.ceil(i/s)}function A(t,e,n,s){const a=r.db.getDateFormat();let o;o=r.db.getAxisFormat()||("D"===a?"%d":i.axisFormat??"%Y-%m-%d");let c=function(t){return W(3,t)}(w).tickSize(-s+e+i.gridLineStartPadding).tickFormat(Bt(o));const u=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(null!==u){const t=parseInt(u[1],10);if(isNaN(t)||t<=0)k.warn(`Invalid tick interval value: "${u[1]}". Skipping custom tick interval.`);else{const e=u[2],n=r.db.getWeekday()||i.weekday,s=w.domain(),a=S(s[0],s[1],t,e);if(a>1e4)k.warn(`The tick interval "${t}${e}" would generate ${a} ticks, which exceeds the maximum allowed (10000). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(e){case"millisecond":c.ticks(ot.every(t));break;case"second":c.ticks(gt.every(t));break;case"minute":c.ticks(mt.every(t));break;case"hour":c.ticks(yt.every(t));break;case"day":c.ticks(kt.every(t));break;case"week":c.ticks(qr[n].every(t));break;case"month":c.ticks(Et.every(t))}}}if(x.append("g").attr("class","grid").attr("transform","translate("+t+", "+(s-50)+")").call(c).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){let n=function(t){return W(1,t)}(w).tickSize(-s+e+i.gridLineStartPadding).tickFormat(Bt(o));if(null!==u){const t=parseInt(u[1],10);if(isNaN(t)||t<=0)k.warn(`Invalid tick interval value: "${u[1]}". Skipping custom tick interval.`);else{const e=u[2],s=r.db.getWeekday()||i.weekday,a=w.domain();if(S(a[0],a[1],t,e)<=1e4)switch(e){case"millisecond":n.ticks(ot.every(t));break;case"second":n.ticks(gt.every(t));break;case"minute":n.ticks(mt.every(t));break;case"hour":n.ticks(yt.every(t));break;case"day":n.ticks(kt.every(t));break;case"week":n.ticks(qr[s].every(t));break;case"month":n.ticks(Et.every(t))}}}x.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(n).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function L(t,e){let n=0;const r=Object.keys(T).map(t=>[t,T[t]]);x.append("g").selectAll("text").data(r).enter().append(function(t){const e=t[0].split(p.lineBreakRegex),n=-(e.length-1)/2,r=u.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("dy",n+"em");for(const[i,s]of e.entries()){const t=u.createElementNS("http://www.w3.org/2000/svg","tspan");t.setAttribute("alignment-baseline","central"),t.setAttribute("x","10"),i>0&&t.setAttribute("dy","1em"),t.textContent=s,r.appendChild(t)}return r}).attr("x",10).attr("y",function(i,s){if(!(s>0))return i[1]*t/2+e;for(let a=0;a<s;a++)return n+=r[s-1][1],i[1]*t/2+n*t+e}).attr("font-size",i.sectionFontSize).attr("class",function(t){for(const[e,n]of f.entries())if(t[0]===n)return"sectionTitle sectionTitle"+e%i.numberSectionStyles;return"sectionTitle"})}function U(t,e,n,s){const a=r.db.getTodayMarker();if("off"===a)return;const o=x.append("g").attr("class","today"),c=new Date,u=o.append("line");u.attr("x1",w(c)+t).attr("x2",w(c)+t).attr("y1",i.titleTopMargin).attr("y2",s-i.titleTopMargin).attr("class","today"),""!==a&&u.attr("style",a.replace(/,/g,";"))}function E(t){const e={},n=[];for(let r=0,i=t.length;r<i;++r)Object.prototype.hasOwnProperty.call(e,t[r])||(e[t[r]]=!0,n.push(t[r]));return n}o(D,"taskCompare"),d.sort(D),M(d,Zr,v),y(x,v,Zr,i.useMaxWidth),x.append("text").text(r.db.getDiagramTitle()).attr("x",Zr/2).attr("y",i.titleTopMargin).attr("class","titleText"),o(M,"makeGantt"),o(C,"drawRects"),o($,"drawExcludeDays"),o(S,"getEstimatedTickCount"),o(A,"makeGrid"),o(L,"vertLabels"),o(U,"drawToday"),o(E,"checkUnique")},"draw")},styles:o(t=>`\n .mermaid-main-font {\n font-family: ${t.fontFamily};\n }\n\n .exclude-range {\n fill: ${t.excludeBkgColor};\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${t.sectionBkgColor};\n }\n\n .section2 {\n fill: ${t.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${t.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n font-family: ${t.fontFamily};\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${t.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n }\n\n .grid .tick text {\n font-family: ${t.fontFamily};\n fill: ${t.textColor};\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${t.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: ${t.fontFamily};\n }\n\n .taskTextOutsideRight {\n fill: ${t.taskTextDarkColor};\n text-anchor: start;\n font-family: ${t.fontFamily};\n }\n\n .taskTextOutsideLeft {\n fill: ${t.taskTextDarkColor};\n text-anchor: end;\n }\n\n\n /* Special case clickable */\n\n .task.clickable {\n cursor: pointer;\n }\n\n .taskText.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${t.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${t.taskBkgColor};\n stroke: ${t.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${t.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${t.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${t.activeTaskBkgColor};\n stroke: ${t.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${t.doneTaskBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n /* Done task text displayed outside the bar sits against the diagram background,\n not against the done-task bar, so it must use the outside/contrast color. */\n .doneText0.taskTextOutsideLeft,\n .doneText0.taskTextOutsideRight,\n .doneText1.taskTextOutsideLeft,\n .doneText1.taskTextOutsideRight,\n .doneText2.taskTextOutsideLeft,\n .doneText2.taskTextOutsideRight,\n .doneText3.taskTextOutsideLeft,\n .doneText3.taskTextOutsideRight {\n fill: ${t.taskTextOutsideColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n /* Done-crit task text outside the bar — same reasoning as doneText above. */\n .doneCritText0.taskTextOutsideLeft,\n .doneCritText0.taskTextOutsideRight,\n .doneCritText1.taskTextOutsideLeft,\n .doneCritText1.taskTextOutsideRight,\n .doneCritText2.taskTextOutsideLeft,\n .doneCritText2.taskTextOutsideRight,\n .doneCritText3.taskTextOutsideLeft,\n .doneCritText3.taskTextOutsideRight {\n fill: ${t.taskTextOutsideColor} !important;\n }\n\n .vert {\n stroke: ${t.vertLineColor};\n }\n\n .vertText {\n font-size: 15px;\n text-anchor: middle;\n fill: ${t.vertLineColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.titleColor||t.textColor};\n font-family: ${t.fontFamily};\n }\n`,"getStyles")};export{Xr as diagram};
|
|
1
|
+
import{bf as t,bg as e,bh as n,bi as r,bj as i,bk as s,bl as a,_ as o,g as c,s as u,p as l,o as d,a as h,b as f,c as g,d as m,e as y,l as k,k as p,j as T,q as v,y as x}from"./mermaid.core-DKLhQHMi.js";import{d as b}from"./RemoteLifeOSBlock-CwM5U04N.js";import{g as w}from"./index-B5px1ls4.js";import{b as D,t as M,c as C,a as $,l as _}from"./linear-Pl-iycWx.js";import{i as S}from"./init-C0SZ43gy.js";import"./index-CTpWXHK5.js";import"./purify.es-BNLkGfTg.js";import"./marked.esm-BBjA1da9.js";import"./index-ofOCAr04.js";import"./file-editor-index-C6CU7Fik.js";import"./App-DHM2JpIe.js";import"./chevron-up-BvhbPeN2.js";import"./__vite-browser-external-2447137e-Ck9f6uYD.js";import"./defaultLocale-Z7o9ZNZF.js";function Y(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function F(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function A(t){return t}var L=1e-6;function U(t){return"translate("+t+",0)"}function E(t){return"translate(0,"+t+")"}function O(t){return e=>+t(e)}function I(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function H(){return!this.__axis}function W(t,e){var n=[],r=null,i=null,s=6,a=6,o=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,u=1===t||4===t?-1:1,l=4===t||2===t?"x":"y",d=1===t||3===t?U:E;function h(h){var f=r??(e.ticks?e.ticks.apply(e,n):e.domain()),g=i??(e.tickFormat?e.tickFormat.apply(e,n):A),m=Math.max(s,0)+o,y=e.range(),k=+y[0]+c,p=+y[y.length-1]+c,T=(e.bandwidth?I:O)(e.copy(),c),v=h.selection?h.selection():h,x=v.selectAll(".domain").data([null]),b=v.selectAll(".tick").data(f,e).order(),w=b.exit(),D=b.enter().append("g").attr("class","tick"),M=b.select("line"),C=b.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),b=b.merge(D),M=M.merge(D.append("line").attr("stroke","currentColor").attr(l+"2",u*s)),C=C.merge(D.append("text").attr("fill","currentColor").attr(l,u*m).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==v&&(x=x.transition(h),b=b.transition(h),M=M.transition(h),C=C.transition(h),w=w.transition(h).attr("opacity",L).attr("transform",function(t){return isFinite(t=T(t))?d(t+c):this.getAttribute("transform")}),D.attr("opacity",L).attr("transform",function(t){var e=this.parentNode.__axis;return d((e&&isFinite(e=e(t))?e:T(t))+c)})),w.remove(),x.attr("d",4===t||2===t?a?"M"+u*a+","+k+"H"+c+"V"+p+"H"+u*a:"M"+c+","+k+"V"+p:a?"M"+k+","+u*a+"V"+c+"H"+p+"V"+u*a:"M"+k+","+c+"H"+p),b.attr("opacity",1).attr("transform",function(t){return d(T(t)+c)}),M.attr(l+"2",u*s),C.attr(l,u*m).text(g),v.filter(H).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),v.each(function(){this.__axis=T})}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(s=a=+t,h):s},h.tickSizeInner=function(t){return arguments.length?(s=+t,h):s},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(o=+t,h):o},h.offset=function(t){return arguments.length?(c=+t,h):c},h}const P=Math.PI/180,N=180/Math.PI,j=.96422,z=.82521,B=4/29,R=6/29,V=3*R*R,Z=R*R*R;function G(n){if(n instanceof q)return new q(n.l,n.a,n.b,n.opacity);if(n instanceof et)return nt(n);n instanceof t||(n=e(n));var r,i,s=K(n.r),a=K(n.g),o=K(n.b),c=Q((.2225045*s+.7168786*a+.0606169*o)/1);return s===a&&a===o?r=i=c:(r=Q((.4360747*s+.3850649*a+.1430804*o)/j),i=Q((.0139322*s+.0971045*a+.7141733*o)/z)),new q(116*c-16,500*(r-c),200*(c-i),n.opacity)}function q(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Q(t){return t>Z?Math.pow(t,1/3):t/V+B}function X(t){return t>R?t*t*t:V*(t-B)}function J(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function K(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function tt(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof et)return new et(t.h,t.c,t.l,t.opacity);if(t instanceof q||(t=G(t)),0===t.a&&0===t.b)return new et(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*N;return new et(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new et(t,e,n,r??1)}function et(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function nt(t){if(isNaN(t.h))return new q(t.l,0,0,t.opacity);var e=t.h*P;return new q(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}n(q,function(t,e,n,r){return 1===arguments.length?G(t):new q(t,e,n,r??1)},r(i,{brighter(t){return new q(this.l+18*(t??1),this.a,this.b,this.opacity)},darker(t){return new q(this.l-18*(t??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,n=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return n=j*X(n),e=1*X(e),r=z*X(r),new t(J(3.1338561*n-1.6168667*e-.4906146*r),J(-.9787684*n+1.9161415*e+.033454*r),J(.0719453*n-.2289914*e+1.4052427*r),this.opacity)}})),n(et,tt,r(i,{brighter(t){return new et(this.h,this.c,this.l+18*(t??1),this.opacity)},darker(t){return new et(this.h,this.c,this.l-18*(t??1),this.opacity)},rgb(){return nt(this).rgb()}}));const rt=function(t){return function(e,n){var r=t((e=tt(e)).h,(n=tt(n)).h),i=s(e.c,n.c),a=s(e.l,n.l),o=s(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}(a),it=new Date,st=new Date;function at(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),i.round=t=>{const e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,s)=>{const a=[];if(n=i.ceil(n),s=null==s?1:Math.floor(s),!(n<r&&s>0))return a;let o;do{a.push(o=new Date(+n)),e(n,s),t(n)}while(o<n&&n<r);return a},i.filter=n=>at(e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},(t,r)=>{if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}),n&&(i.count=(e,r)=>(it.setTime(+e),st.setTime(+r),t(it),t(st),Math.floor(n(it,st))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?e=>r(e)%t===0:e=>i.count(0,e)%t===0):i:null)),i}const ot=at(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);ot.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?at(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):ot:null),ot.range;const ct=1e3,ut=6e4,lt=36e5,dt=864e5,ht=6048e5,ft=31536e6,gt=at(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ct)},(t,e)=>(e-t)/ct,t=>t.getUTCSeconds());gt.range;const mt=at(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ct)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getMinutes());mt.range,at(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ut)},(t,e)=>(e-t)/ut,t=>t.getUTCMinutes()).range;const yt=at(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ct-t.getMinutes()*ut)},(t,e)=>{t.setTime(+t+e*lt)},(t,e)=>(e-t)/lt,t=>t.getHours());yt.range,at(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*lt)},(t,e)=>(e-t)/lt,t=>t.getUTCHours()).range;const kt=at(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ut)/dt,t=>t.getDate()-1);kt.range;const pt=at(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>t.getUTCDate()-1);function Tt(t){return at(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ut)/ht)}pt.range,at(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/dt,t=>Math.floor(t/dt)).range;const vt=Tt(0),xt=Tt(1),bt=Tt(2),wt=Tt(3),Dt=Tt(4),Mt=Tt(5),Ct=Tt(6);function $t(t){return at(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/ht)}vt.range,xt.range,bt.range,wt.range,Dt.range,Mt.range,Ct.range;const _t=$t(0),St=$t(1),Yt=$t(2),Ft=$t(3),At=$t(4),Lt=$t(5),Ut=$t(6);_t.range,St.range,Yt.range,Ft.range,At.range,Lt.range,Ut.range;const Et=at(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear()),t=>t.getMonth());Et.range,at(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear()),t=>t.getUTCMonth()).range;const Ot=at(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Ot.every=t=>isFinite(t=Math.floor(t))&&t>0?at(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}):null,Ot.range;const It=at(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());It.every=t=>isFinite(t=Math.floor(t))&&t>0?at(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null,It.range;const[Ht,Wt]=function(t){const e=[[gt,1,ct],[gt,5,5e3],[gt,15,15e3],[gt,30,3e4],[mt,1,ut],[mt,5,3e5],[mt,15,9e5],[mt,30,18e5],[yt,1,lt],[yt,3,108e5],[yt,6,216e5],[yt,12,432e5],[kt,1,dt],[kt,2,1728e5],[vt,1,ht],[Et,1,2592e6],[Et,3,7776e6],[t,1,ft]];function n(n,r,i){const s=Math.abs(r-n)/i,a=D(([,,t])=>t).right(e,s);if(a===e.length)return t.every(M(n/ft,r/ft,i));if(0===a)return ot.every(Math.max(M(n,r,i),1));const[o,c]=e[s/e[a-1][2]<e[a][2]/s?a-1:a];return o.every(c)}return[function(t,e,r){const i=e<t;i&&([t,e]=[e,t]);const s=r&&"function"==typeof r.range?r:n(t,e,r),a=s?s.range(t,+e+1):[];return i?a.reverse():a},n]}(Ot);function Pt(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Nt(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function jt(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var zt,Bt,Rt={"-":"",_:" ",0:"0"},Vt=/^\s*\d+/,Zt=/^%/,Gt=/[\\^$*+?|[\]().{}]/g;function qt(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(e)+i:i)}function Qt(t){return t.replace(Gt,"\\$&")}function Xt(t){return new RegExp("^(?:"+t.map(Qt).join("|")+")","i")}function Jt(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function Kt(t,e,n){var r=Vt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function te(t,e,n){var r=Vt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function ee(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function ne(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function re(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function ie(t,e,n){var r=Vt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function se(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ae(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function oe(t,e,n){var r=Vt.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function ce(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ue(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function le(t,e,n){var r=Vt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function de(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function he(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function fe(t,e,n){var r=Vt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function ge(t,e,n){var r=Vt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function me(t,e,n){var r=Vt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function ye(t,e,n){var r=Zt.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function ke(t,e,n){var r=Vt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function pe(t,e,n){var r=Vt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Te(t,e){return qt(t.getDate(),e,2)}function ve(t,e){return qt(t.getHours(),e,2)}function xe(t,e){return qt(t.getHours()%12||12,e,2)}function be(t,e){return qt(1+kt.count(Ot(t),t),e,3)}function we(t,e){return qt(t.getMilliseconds(),e,3)}function De(t,e){return we(t,e)+"000"}function Me(t,e){return qt(t.getMonth()+1,e,2)}function Ce(t,e){return qt(t.getMinutes(),e,2)}function $e(t,e){return qt(t.getSeconds(),e,2)}function _e(t){var e=t.getDay();return 0===e?7:e}function Se(t,e){return qt(vt.count(Ot(t)-1,t),e,2)}function Ye(t){var e=t.getDay();return e>=4||0===e?Dt(t):Dt.ceil(t)}function Fe(t,e){return t=Ye(t),qt(Dt.count(Ot(t),t)+(4===Ot(t).getDay()),e,2)}function Ae(t){return t.getDay()}function Le(t,e){return qt(xt.count(Ot(t)-1,t),e,2)}function Ue(t,e){return qt(t.getFullYear()%100,e,2)}function Ee(t,e){return qt((t=Ye(t)).getFullYear()%100,e,2)}function Oe(t,e){return qt(t.getFullYear()%1e4,e,4)}function Ie(t,e){var n=t.getDay();return qt((t=n>=4||0===n?Dt(t):Dt.ceil(t)).getFullYear()%1e4,e,4)}function He(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+qt(e/60|0,"0",2)+qt(e%60,"0",2)}function We(t,e){return qt(t.getUTCDate(),e,2)}function Pe(t,e){return qt(t.getUTCHours(),e,2)}function Ne(t,e){return qt(t.getUTCHours()%12||12,e,2)}function je(t,e){return qt(1+pt.count(It(t),t),e,3)}function ze(t,e){return qt(t.getUTCMilliseconds(),e,3)}function Be(t,e){return ze(t,e)+"000"}function Re(t,e){return qt(t.getUTCMonth()+1,e,2)}function Ve(t,e){return qt(t.getUTCMinutes(),e,2)}function Ze(t,e){return qt(t.getUTCSeconds(),e,2)}function Ge(t){var e=t.getUTCDay();return 0===e?7:e}function qe(t,e){return qt(_t.count(It(t)-1,t),e,2)}function Qe(t){var e=t.getUTCDay();return e>=4||0===e?At(t):At.ceil(t)}function Xe(t,e){return t=Qe(t),qt(At.count(It(t),t)+(4===It(t).getUTCDay()),e,2)}function Je(t){return t.getUTCDay()}function Ke(t,e){return qt(St.count(It(t)-1,t),e,2)}function tn(t,e){return qt(t.getUTCFullYear()%100,e,2)}function en(t,e){return qt((t=Qe(t)).getUTCFullYear()%100,e,2)}function nn(t,e){return qt(t.getUTCFullYear()%1e4,e,4)}function rn(t,e){var n=t.getUTCDay();return qt((t=n>=4||0===n?At(t):At.ceil(t)).getUTCFullYear()%1e4,e,4)}function sn(){return"+0000"}function an(){return"%"}function on(t){return+t}function cn(t){return Math.floor(+t/1e3)}function un(t){return new Date(t)}function ln(t){return t instanceof Date?+t:+new Date(+t)}function dn(t,e,n,r,i,s,a,o,c,u){var l=C(),d=l.invert,h=l.domain,f=u(".%L"),g=u(":%S"),m=u("%I:%M"),y=u("%I %p"),k=u("%a %d"),p=u("%b %d"),T=u("%B"),v=u("%Y");function x(t){return(c(t)<t?f:o(t)<t?g:a(t)<t?m:s(t)<t?y:r(t)<t?i(t)<t?k:p:n(t)<t?T:v)(t)}return l.invert=function(t){return new Date(d(t))},l.domain=function(t){return arguments.length?h(Array.from(t,ln)):h().map(un)},l.ticks=function(e){var n=h();return t(n[0],n[n.length-1],e??10)},l.tickFormat=function(t,e){return null==e?x:u(e)},l.nice=function(t){var n=h();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],t??10)),t?h(function(t,e){var n,r=0,i=(t=t.slice()).length-1,s=t[r],a=t[i];return a<s&&(n=r,r=i,i=n,n=s,s=a,a=n),t[r]=e.floor(s),t[i]=e.ceil(a),t}(n,t)):l},l.copy=function(){return $(l,dn(t,e,n,r,i,s,a,o,c,u))},l}function hn(){return S.apply(dn(Ht,Wt,Ot,Et,vt,kt,yt,mt,gt,Bt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}zt=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,a=t.shortDays,o=t.months,c=t.shortMonths,u=Xt(i),l=Jt(i),d=Xt(s),h=Jt(s),f=Xt(a),g=Jt(a),m=Xt(o),y=Jt(o),k=Xt(c),p=Jt(c),T={a:function(t){return a[t.getDay()]},A:function(t){return s[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return o[t.getMonth()]},c:null,d:Te,e:Te,f:De,g:Ee,G:Ie,H:ve,I:xe,j:be,L:we,m:Me,M:Ce,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:on,s:cn,S:$e,u:_e,U:Se,V:Fe,w:Ae,W:Le,x:null,X:null,y:Ue,Y:Oe,Z:He,"%":an},v={a:function(t){return a[t.getUTCDay()]},A:function(t){return s[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return o[t.getUTCMonth()]},c:null,d:We,e:We,f:Be,g:en,G:rn,H:Pe,I:Ne,j:je,L:ze,m:Re,M:Ve,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:on,s:cn,S:Ze,u:Ge,U:qe,V:Xe,w:Je,W:Ke,x:null,X:null,y:tn,Y:nn,Z:sn,"%":an},x={a:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=g.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=k.exec(e.slice(n));return r?(t.m=p.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return D(t,e,n,r)},d:ue,e:ue,f:me,g:se,G:ie,H:de,I:de,j:le,L:ge,m:ce,M:he,p:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:oe,Q:ke,s:pe,S:fe,u:te,U:ee,V:ne,w:Kt,W:re,x:function(t,e,r){return D(t,n,e,r)},X:function(t,e,n){return D(t,r,e,n)},y:se,Y:ie,Z:ae,"%":ye};function b(t,e){return function(n){var r,i,s,a=[],o=-1,c=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++o<u;)37===t.charCodeAt(o)&&(a.push(t.slice(c,o)),null!=(i=Rt[r=t.charAt(++o)])?r=t.charAt(++o):i="e"===r?" ":"0",(s=e[r])&&(r=s(n,i)),a.push(r),c=o+1);return a.push(t.slice(c,o)),a.join("")}}function w(t,e){return function(n){var r,i,s=jt(1900,void 0,1);if(D(s,t,n+="",0)!=n.length)return null;if("Q"in s)return new Date(s.Q);if("s"in s)return new Date(1e3*s.s+("L"in s?s.L:0));if(e&&!("Z"in s)&&(s.Z=0),"p"in s&&(s.H=s.H%12+12*s.p),void 0===s.m&&(s.m="q"in s?s.q:0),"V"in s){if(s.V<1||s.V>53)return null;"w"in s||(s.w=1),"Z"in s?(i=(r=Nt(jt(s.y,0,1))).getUTCDay(),r=i>4||0===i?St.ceil(r):St(r),r=pt.offset(r,7*(s.V-1)),s.y=r.getUTCFullYear(),s.m=r.getUTCMonth(),s.d=r.getUTCDate()+(s.w+6)%7):(i=(r=Pt(jt(s.y,0,1))).getDay(),r=i>4||0===i?xt.ceil(r):xt(r),r=kt.offset(r,7*(s.V-1)),s.y=r.getFullYear(),s.m=r.getMonth(),s.d=r.getDate()+(s.w+6)%7)}else("W"in s||"U"in s)&&("w"in s||(s.w="u"in s?s.u%7:"W"in s?1:0),i="Z"in s?Nt(jt(s.y,0,1)).getUTCDay():Pt(jt(s.y,0,1)).getDay(),s.m=0,s.d="W"in s?(s.w+6)%7+7*s.W-(i+5)%7:s.w+7*s.U-(i+6)%7);return"Z"in s?(s.H+=s.Z/100|0,s.M+=s.Z%100,Nt(s)):Pt(s)}}function D(t,e,n,r){for(var i,s,a=0,o=e.length,c=n.length;a<o;){if(r>=c)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(s=x[i in Rt?e.charAt(a++):i])||(r=s(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return T.x=b(n,T),T.X=b(r,T),T.c=b(e,T),v.x=b(n,v),v.X=b(r,v),v.c=b(e,v),{format:function(t){var e=b(t+="",T);return e.toString=function(){return t},e},parse:function(t){var e=w(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=b(t+="",v);return e.toString=function(){return t},e},utcParse:function(t){var e=w(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Bt=zt.format,zt.parse,zt.utcFormat,zt.utcParse;var fn,gn={exports:{}};const mn=w(fn?gn.exports:(fn=1,gn.exports=function(){var t="day";return function(e,n,r){var i=function(e){return e.add(4-e.isoWeekday(),t)},s=n.prototype;s.isoWeekYear=function(){return i(this).year()},s.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),t);var n,s,a,o=i(this),c=(n=this.isoWeekYear(),a=4-(s=(this.$u?r.utc:r)().year(n).startOf("year")).isoWeekday(),s.isoWeekday()>4&&(a+=7),s.add(a,t));return o.diff(c,"week")+1},s.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)};var a=s.startOf;s.startOf=function(t,e){var n=this.$utils(),r=!!n.u(e)||e;return"isoweek"===n.p(t)?r?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(t,e)}}}()));var yn,kn={exports:{}};const pn=w(yn?kn.exports:(yn=1,kn.exports=function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,a={},o=function(t){return(t=+t)+(t>68?1900:2e3)},c=function(t){return function(e){this[t]=+e}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t)}],l=function(t){var e=a[t];return e&&(e.indexOf?e:e.s.concat(e.f))},d=function(t,e){var n,r=a.meridiem;if(r){for(var i=1;i<=24;i+=1)if(t.indexOf(r(i,0,e))>-1){n=i>12;break}}else n=t===(e?"pm":"PM");return n},h={A:[s,function(t){this.afternoon=d(t,!1)}],a:[s,function(t){this.afternoon=d(t,!0)}],Q:[n,function(t){this.month=3*(t-1)+1}],S:[n,function(t){this.milliseconds=100*+t}],SS:[r,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[i,c("seconds")],ss:[i,c("seconds")],m:[i,c("minutes")],mm:[i,c("minutes")],H:[i,c("hours")],h:[i,c("hours")],HH:[i,c("hours")],hh:[i,c("hours")],D:[i,c("day")],DD:[r,c("day")],Do:[s,function(t){var e=a.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var r=1;r<=31;r+=1)e(r).replace(/\[|\]/g,"")===t&&(this.day=r)}],w:[i,c("week")],ww:[r,c("week")],M:[i,c("month")],MM:[r,c("month")],MMM:[s,function(t){var e=l("months"),n=(l("monthsShort")||e.map(function(t){return t.slice(0,3)})).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[s,function(t){var e=l("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(t){this.year=o(t)}],YYYY:[/\d{4}/,c("year")],Z:u,ZZ:u};return function(n,r,i){i.p.customParseFormat=!0,n&&n.parseTwoDigitYear&&(o=n.parseTwoDigitYear);var s=r.prototype,c=s.parse;s.parse=function(n){var r=n.date,s=n.utc,o=n.args;this.$u=s;var u=o[1];if("string"==typeof u){var l=!0===o[2],d=!0===o[3],f=l||d,g=o[2];d&&(g=o[2]),a=this.$locale(),!l&&g&&(a=i.Ls[g]),this.$d=function(n,r,i,s){try{if(["x","X"].indexOf(r)>-1)return new Date(("X"===r?1e3:1)*n);var o=function(n){var r,i;r=n,i=a&&a.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(e,n,r){var s=r&&r.toUpperCase();return n||i[r]||t[r]||i[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(t,e,n){return e||n.slice(1)})})).match(e),o=s.length,c=0;c<o;c+=1){var u=s[c],l=h[u],d=l&&l[0],f=l&&l[1];s[c]=f?{regex:d,parser:f}:u.replace(/^\[|\]$/g,"")}return function(t){for(var e={},n=0,r=0;n<o;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;else{var a=i.regex,c=i.parser,u=t.slice(r),l=a.exec(u)[0];c.call(e,l),t=t.replace(l,"")}}return function(t){var e=t.afternoon;if(void 0!==e){var n=t.hours;e?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon}}(e),e}}(r)(n),c=o.year,u=o.month,l=o.day,d=o.hours,f=o.minutes,g=o.seconds,m=o.milliseconds,y=o.zone,k=o.week,p=new Date,T=l||(c||u?1:p.getDate()),v=c||p.getFullYear(),x=0;c&&!u||(x=u>0?u-1:p.getMonth());var b,w=d||0,D=f||0,M=g||0,C=m||0;return y?new Date(Date.UTC(v,x,T,w,D,M,C+60*y.offset*1e3)):i?new Date(Date.UTC(v,x,T,w,D,M,C)):(b=new Date(v,x,T,w,D,M,C),k&&(b=s(b).week(k).toDate()),b)}catch($){return new Date("")}}(r,u,s,i),this.init(),g&&!0!==g&&(this.$L=this.locale(g).$L),f&&r!=this.format(u)&&(this.$d=new Date("")),a={}}else if(u instanceof Array)for(var m=u.length,y=1;y<=m;y+=1){o[1]=u[y-1];var k=i.apply(this,o);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}y===m&&(this.$d=new Date(""))}else c.call(this,n)}}}()));var Tn,vn={exports:{}};const xn=w(Tn?vn.exports:(Tn=1,vn.exports=function(t,e){var n=e.prototype,r=n.format;n.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return r.bind(this)(t);var i=this.$utils(),s=(t||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(t){switch(t){case"Q":return Math.ceil((e.$M+1)/3);case"Do":return n.ordinal(e.$D);case"gggg":return e.weekYear();case"GGGG":return e.isoWeekYear();case"wo":return n.ordinal(e.week(),"W");case"w":case"ww":return i.s(e.week(),"w"===t?1:2,"0");case"W":case"WW":return i.s(e.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return i.s(String(0===e.$H?24:e.$H),"k"===t?1:2,"0");case"X":return Math.floor(e.$d.getTime()/1e3);case"x":return e.$d.getTime();case"z":return"["+e.offsetName()+"]";case"zzz":return"["+e.offsetName("long")+"]";default:return t}});return r.bind(this)(s)}}));var bn,wn={exports:{}};const Dn=w(bn?wn.exports:(bn=1,wn.exports=function(){var t,e,n=1e3,r=6e4,i=36e5,s=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,o=31536e6,c=2628e6,u=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l={years:o,months:c,days:s,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(t){return t instanceof p},h=function(t,e,n){return new p(t,n,e.$l)},f=function(t){return e.p(t)+"s"},g=function(t){return t<0},m=function(t){return g(t)?Math.ceil(t):Math.floor(t)},y=function(t){return Math.abs(t)},k=function(t,e){return t?g(t)?{negative:!0,format:""+y(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},p=function(){function g(t,e,n){var r=this;if(this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),e)return h(t*l[f(e)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach(function(e){r.$d[f(e)]=t[e]}),this.calMilliseconds(),this;if("string"==typeof t){var i=t.match(u);if(i){var s=i.slice(2).map(function(t){return null!=t?Number(t):0});return this.$d.years=s[0],this.$d.months=s[1],this.$d.weeks=s[2],this.$d.days=s[3],this.$d.hours=s[4],this.$d.minutes=s[5],this.$d.seconds=s[6],this.calMilliseconds(),this}}return this}var y=g.prototype;return y.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce(function(e,n){return e+(t.$d[n]||0)*l[n]},0)},y.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=m(t/o),t%=o,this.$d.months=m(t/c),t%=c,this.$d.days=m(t/s),t%=s,this.$d.hours=m(t/i),t%=i,this.$d.minutes=m(t/r),t%=r,this.$d.seconds=m(t/n),t%=n,this.$d.milliseconds=t},y.toISOString=function(){var t=k(this.$d.years,"Y"),e=k(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=k(n,"D"),i=k(this.$d.hours,"H"),s=k(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var o=k(a,"S"),c=t.negative||e.negative||r.negative||i.negative||s.negative||o.negative,u=i.format||s.format||o.format?"T":"",l=(c?"-":"")+"P"+t.format+e.format+r.format+u+i.format+s.format+o.format;return"P"===l||"-P"===l?"P0D":l},y.toJSON=function(){return this.toISOString()},y.format=function(t){var n=t||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return n.replace(a,function(t,e){return e||String(r[t])})},y.as=function(t){return this.$ms/l[f(t)]},y.get=function(t){var e=this.$ms,n=f(t);return"milliseconds"===n?e%=1e3:e="weeks"===n?m(e/l[n]):this.$d[n],e||0},y.add=function(t,e,n){var r;return r=e?t*l[f(e)]:d(t)?t.$ms:h(t,this).$ms,h(this.$ms+r*(n?-1:1),this)},y.subtract=function(t,e){return this.add(t,e,!0)},y.locale=function(t){var e=this.clone();return e.$l=t,e},y.clone=function(){return h(this.$ms,this)},y.humanize=function(e){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},y.valueOf=function(){return this.asMilliseconds()},y.milliseconds=function(){return this.get("milliseconds")},y.asMilliseconds=function(){return this.as("milliseconds")},y.seconds=function(){return this.get("seconds")},y.asSeconds=function(){return this.as("seconds")},y.minutes=function(){return this.get("minutes")},y.asMinutes=function(){return this.as("minutes")},y.hours=function(){return this.get("hours")},y.asHours=function(){return this.as("hours")},y.days=function(){return this.get("days")},y.asDays=function(){return this.as("days")},y.weeks=function(){return this.get("weeks")},y.asWeeks=function(){return this.as("weeks")},y.months=function(){return this.get("months")},y.asMonths=function(){return this.as("months")},y.years=function(){return this.get("years")},y.asYears=function(){return this.as("years")},g}(),T=function(t,e,n){return t.add(e.years()*n,"y").add(e.months()*n,"M").add(e.days()*n,"d").add(e.hours()*n,"h").add(e.minutes()*n,"m").add(e.seconds()*n,"s").add(e.milliseconds()*n,"ms")};return function(n,r,i){t=i,e=i().$utils(),i.duration=function(t,e){var n=i.locale();return h(t,{$l:n},e)},i.isDuration=d;var s=r.prototype.add,a=r.prototype.subtract;r.prototype.add=function(t,e){return d(t)?T(this,t,1):s.bind(this)(t,e)},r.prototype.subtract=function(t,e){return d(t)?T(this,t,-1):a.bind(this)(t,e)}}}()));var Mn=function(){var t=o(function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],s=[1,29],a=[1,30],c=[1,31],u=[1,32],l=[1,33],d=[1,34],h=[1,9],f=[1,10],g=[1,11],m=[1,12],y=[1,13],k=[1,14],p=[1,15],T=[1,16],v=[1,19],x=[1,20],b=[1,21],w=[1,22],D=[1,23],M=[1,25],C=[1,35],$={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:o(function(t,e,n,r,i,s,a){var o=s.length-1;switch(i){case 1:return s[o-1];case 2:case 6:case 7:this.$=[];break;case 3:s[o-1].push(s[o]),this.$=s[o-1];break;case 4:case 5:this.$=s[o];break;case 8:r.setWeekday("monday");break;case 9:r.setWeekday("tuesday");break;case 10:r.setWeekday("wednesday");break;case 11:r.setWeekday("thursday");break;case 12:r.setWeekday("friday");break;case 13:r.setWeekday("saturday");break;case 14:r.setWeekday("sunday");break;case 15:r.setWeekend("friday");break;case 16:r.setWeekend("saturday");break;case 17:r.setDateFormat(s[o].substr(11)),this.$=s[o].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=s[o].substr(18);break;case 19:r.TopAxis(),this.$=s[o].substr(8);break;case 20:r.setAxisFormat(s[o].substr(11)),this.$=s[o].substr(11);break;case 21:r.setTickInterval(s[o].substr(13)),this.$=s[o].substr(13);break;case 22:r.setExcludes(s[o].substr(9)),this.$=s[o].substr(9);break;case 23:r.setIncludes(s[o].substr(9)),this.$=s[o].substr(9);break;case 24:r.setTodayMarker(s[o].substr(12)),this.$=s[o].substr(12);break;case 27:r.setDiagramTitle(s[o].substr(6)),this.$=s[o].substr(6);break;case 28:this.$=s[o].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=s[o].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(s[o].substr(8)),this.$=s[o].substr(8);break;case 33:r.addTask(s[o-1],s[o]),this.$="task";break;case 34:this.$=s[o-1],r.setClickEvent(s[o-1],s[o],null);break;case 35:this.$=s[o-2],r.setClickEvent(s[o-2],s[o-1],s[o]);break;case 36:this.$=s[o-2],r.setClickEvent(s[o-2],s[o-1],null),r.setLink(s[o-2],s[o]);break;case 37:this.$=s[o-3],r.setClickEvent(s[o-3],s[o-2],s[o-1]),r.setLink(s[o-3],s[o]);break;case 38:this.$=s[o-2],r.setClickEvent(s[o-2],s[o],null),r.setLink(s[o-2],s[o-1]);break;case 39:this.$=s[o-3],r.setClickEvent(s[o-3],s[o-1],s[o]),r.setLink(s[o-3],s[o-2]);break;case 40:this.$=s[o-1],r.setLink(s[o-1],s[o]);break;case 41:case 47:this.$=s[o-1]+" "+s[o];break;case 42:case 43:case 45:this.$=s[o-2]+" "+s[o-1]+" "+s[o];break;case 44:case 46:this.$=s[o-3]+" "+s[o-2]+" "+s[o-1]+" "+s[o]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:s,16:a,17:c,18:u,19:18,20:l,21:d,22:h,23:f,24:g,25:m,26:y,27:k,28:p,29:T,30:v,31:x,33:b,35:w,36:D,37:24,38:M,40:C},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:s,16:a,17:c,18:u,19:18,20:l,21:d,22:h,23:f,24:g,25:m,26:y,27:k,28:p,29:T,30:v,31:x,33:b,35:w,36:D,37:24,38:M,40:C},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:o(function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},"parseError"),parse:o(function(t){var e=this,n=[0],r=[],i=[null],s=[],a=this.table,c="",u=0,l=0,d=s.slice.call(arguments,1),h=Object.create(this.lexer),f={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(f.yy[g]=this.yy[g]);h.setInput(t,f.yy),f.yy.lexer=h,f.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var m=h.yylloc;s.push(m);var y=h.options&&h.options.ranges;function k(){var t;return"number"!=typeof(t=r.pop()||h.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,o(function(t){n.length=n.length-2*t,i.length=i.length-t,s.length=s.length-t},"popStack"),o(k,"lex");for(var p,T,v,x,b,w,D,M,C={};;){if(T=n[n.length-1],this.defaultActions[T]?v=this.defaultActions[T]:(null==p&&(p=k()),v=a[T]&&a[T][p]),void 0===v||!v.length||!v[0]){var $;for(b in M=[],a[T])this.terminals_[b]&&b>2&&M.push("'"+this.terminals_[b]+"'");$=h.showPosition?"Parse error on line "+(u+1)+":\n"+h.showPosition()+"\nExpecting "+M.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(u+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError($,{text:h.match,token:this.terminals_[p]||p,line:h.yylineno,loc:m,expected:M})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+p);switch(v[0]){case 1:n.push(p),i.push(h.yytext),s.push(h.yylloc),n.push(v[1]),p=null,l=h.yyleng,c=h.yytext,u=h.yylineno,m=h.yylloc;break;case 2:if(w=this.productions_[v[1]][1],C.$=i[i.length-w],C._$={first_line:s[s.length-(w||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(w||1)].first_column,last_column:s[s.length-1].last_column},y&&(C._$.range=[s[s.length-(w||1)].range[0],s[s.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[c,l,u,f.yy,v[1],i,s].concat(d))))return x;w&&(n=n.slice(0,-1*w*2),i=i.slice(0,-1*w),s=s.slice(0,-1*w)),n.push(this.productions_[v[1]][0]),i.push(C.$),s.push(C._$),D=a[n[n.length-2]][n[n.length-1]],n.push(D);break;case 3:return!0}}return!0},"parse")},_=function(){return{EOF:1,parseError:o(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:o(function(t,e){return this.yy=e||this.yy||{},this._input=t,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:o(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:o(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:o(function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var s in i)this[s]=i[s];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),s=0;s<i.length;s++)if((n=this._input.match(this.rules[i[s]]))&&(!e||n[0].length>e[0].length)){if(e=n,r=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[s])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){return this.next()||this.lex()},"lex"),begin:o(function(t){this.conditionStack.push(t)},"begin"),popState:o(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:o(function(t){this.begin(t)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(t,e,n,r){switch(n){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 15:case 18:case 21:case 24:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:case 9:case 10:case 12:case 13:break;case 11:return 10;case 14:this.begin("href");break;case 16:return 43;case 17:this.begin("callbackname");break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 22:return 42;case 23:this.begin("click");break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}}();function S(){this.yy={}}return $.lexer=_,o(S,"Parser"),S.prototype=$,$.Parser=S,new S}();Mn.parser=Mn;var Cn=Mn;b.extend(mn),b.extend(pn),b.extend(xn);var $n,_n,Sn={friday:5,saturday:6},Yn="",Fn="",An=void 0,Ln="",Un=[],En=[],On=new Map,In=[],Hn=[],Wn="",Pn="",Nn=["active","done","crit","milestone","vert"],jn=[],zn="",Bn=!1,Rn=!1,Vn="sunday",Zn="saturday",Gn=0,qn=o(function(){In=[],Hn=[],Wn="",jn=[],Sr=0,$n=void 0,_n=void 0,Lr=[],Yn="",Fn="",Pn="",An=void 0,Ln="",Un=[],En=[],Bn=!1,Rn=!1,Gn=0,On=new Map,zn="",v(),Vn="sunday",Zn="saturday"},"clear"),Qn=o(function(t){zn=t},"setDiagramId"),Xn=o(function(t){Fn=t},"setAxisFormat"),Jn=o(function(){return Fn},"getAxisFormat"),Kn=o(function(t){An=t},"setTickInterval"),tr=o(function(){return An},"getTickInterval"),er=o(function(t){Ln=t},"setTodayMarker"),nr=o(function(){return Ln},"getTodayMarker"),rr=o(function(t){Yn=t},"setDateFormat"),ir=o(function(){Bn=!0},"enableInclusiveEndDates"),sr=o(function(){return Bn},"endDatesAreInclusive"),ar=o(function(){Rn=!0},"enableTopAxis"),or=o(function(){return Rn},"topAxisEnabled"),cr=o(function(t){Pn=t},"setDisplayMode"),ur=o(function(){return Pn},"getDisplayMode"),lr=o(function(){return Yn},"getDateFormat"),dr=o((t,e)=>{const n=e.toLowerCase().split(/[\s,]+/).filter(t=>""!==t);return[...new Set([...t,...n])]},"mergeTokens"),hr=o(function(t){Un=dr(Un,t)},"setIncludes"),fr=o(function(){return Un},"getIncludes"),gr=o(function(t){En=dr(En,t)},"setExcludes"),mr=o(function(){return En},"getExcludes"),yr=o(function(){return On},"getLinks"),kr=o(function(t){Wn=t,In.push(t)},"addSection"),pr=o(function(){return In},"getSections"),Tr=o(function(){let t=Hr(),e=0;for(;!t&&e<10;)t=Hr(),e++;return Hn=Lr},"getTasks"),vr=o(function(t,e,n,r){const i=t.format(e.trim()),s=t.format("YYYY-MM-DD");return!r.includes(i)&&!r.includes(s)&&(!(!n.includes("weekends")||t.isoWeekday()!==Sn[Zn]&&t.isoWeekday()!==Sn[Zn]+1)||!!n.includes(t.format("dddd").toLowerCase())||n.includes(i)||n.includes(s))},"isInvalidDate"),xr=o(function(t){Vn=t},"setWeekday"),br=o(function(){return Vn},"getWeekday"),wr=o(function(t){Zn=t},"setWeekend"),Dr=o(function(t,e,n,r){if(!n.length||t.manualEndTime)return;let i,s;i=t.startTime instanceof Date?b(t.startTime):b(t.startTime,e,!0),i=i.add(1,"d"),s=t.endTime instanceof Date?b(t.endTime):b(t.endTime,e,!0);const[a,o]=Mr(i,s,e,n,r);t.endTime=a.toDate(),t.renderEndTime=o},"checkTaskDates"),Mr=o(function(t,e,n,r,i){let s=!1,a=null;const o=e.add(1e4,"d");for(;t<=e;){if(s||(a=e.toDate()),s=vr(t,n,r,i),s&&(e=e.add(1,"d"))>o)throw new Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");t=t.add(1,"d")}return[e,a]},"fixTaskDates"),Cr=o(function(t,e,n){if(n=n.trim(),o(t=>{const e=t.trim();return"x"===e||"X"===e},"isTimestampFormat")(e)&&/^\d+$/.test(n))return new Date(Number(n));const r=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(null!==r){let t=null;for(const n of r.groups.ids.split(" ")){let e=Or(n);void 0!==e&&(!t||e.endTime>t.endTime)&&(t=e)}if(t)return t.endTime;const e=new Date;return e.setHours(0,0,0,0),e}let i=b(n,e.trim(),!0);if(i.isValid())return i.toDate();{k.debug("Invalid date:"+n),k.debug("With date format:"+e.trim());const t=new Date(n);if(void 0===t||isNaN(t.getTime())||t.getFullYear()<-1e4||t.getFullYear()>1e4)throw new Error("Invalid date:"+n);return t}},"getStartDate"),$r=o(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return null!==e?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),_r=o(function(t,e,n,r=!1){n=n.trim();const i=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(null!==i){let t=null;for(const n of i.groups.ids.split(" ")){let e=Or(n);void 0!==e&&(!t||e.startTime<t.startTime)&&(t=e)}if(t)return t.startTime;const e=new Date;return e.setHours(0,0,0,0),e}let s=b(n,e.trim(),!0);if(s.isValid())return r&&(s=s.add(1,"d")),s.toDate();let a=b(t);const[o,c]=$r(n);if(!Number.isNaN(o)){const t=a.add(o,c);t.isValid()&&(a=t)}return a.toDate()},"getEndDate"),Sr=0,Yr=o(function(t){return void 0===t?"task"+(Sr+=1):t},"parseId"),Fr=o(function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const r=n.split(","),i={};Vr(r,i,Nn);for(let a=0;a<r.length;a++)r[a]=r[a].trim();let s="";switch(r.length){case 1:i.id=Yr(),i.startTime=t.endTime,s=r[0];break;case 2:i.id=Yr(),i.startTime=Cr(void 0,Yn,r[0]),s=r[1];break;case 3:i.id=Yr(r[0]),i.startTime=Cr(void 0,Yn,r[1]),s=r[2]}return s&&(i.endTime=_r(i.startTime,Yn,s,Bn),i.manualEndTime=b(s,"YYYY-MM-DD",!0).isValid(),Dr(i,Yn,En,Un)),i},"compileData"),Ar=o(function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const r=n.split(","),i={};Vr(r,i,Nn);for(let s=0;s<r.length;s++)r[s]=r[s].trim();switch(r.length){case 1:i.id=Yr(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:r[0]};break;case 2:i.id=Yr(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=Yr(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]}}return i},"parseData"),Lr=[],Ur={},Er=o(function(t,e){const n={section:Wn,type:Wn,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=Ar(_n,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=_n,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,n.vert?n.order=-1:(n.order=Gn,Gn++);const i=Lr.push(n);_n=n.id,Ur[n.id]=i-1},"addTask"),Or=o(function(t){const e=Ur[t];return Lr[e]},"findTaskById"),Ir=o(function(t,e){const n={section:Wn,type:Wn,description:t,task:t,classes:[]},r=Fr($n,e);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,$n=n,Hn.push(n)},"addTaskOrg"),Hr=o(function(){const t=o(function(t){const e=Lr[t];let n="";switch(Lr[t].raw.startTime.type){case"prevTaskEnd":{const t=Or(e.prevTaskId);e.startTime=t.endTime;break}case"getStartDate":n=Cr(void 0,Yn,Lr[t].raw.startTime.startData),n&&(Lr[t].startTime=n)}return Lr[t].startTime&&(Lr[t].endTime=_r(Lr[t].startTime,Yn,Lr[t].raw.endTime.data,Bn),Lr[t].endTime&&(Lr[t].processed=!0,Lr[t].manualEndTime=b(Lr[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Dr(Lr[t],Yn,En,Un))),Lr[t].processed},"compileTask");let e=!0;for(const[n,r]of Lr.entries())t(n),e=e&&r.processed;return e},"compileTasks"),Wr=o(function(t,e){let n=e;"loose"!==g().securityLevel&&(n=T.sanitizeUrl(e)),t.split(",").forEach(function(t){void 0!==Or(t)&&(jr(t,()=>{window.open(n,"_self")}),On.set(t,n))}),Pr(t,"clickable")},"setLink"),Pr=o(function(t,e){t.split(",").forEach(function(t){let n=Or(t);void 0!==n&&n.classes.push(e)})},"setClass"),Nr=o(function(t,e,n){if("loose"!==g().securityLevel)return;if(void 0===e)return;let r=[];if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<r.length;t++){let e=r[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),r[t]=e}}0===r.length&&r.push(t),void 0!==Or(t)&&jr(t,()=>{x.runFunc(e,...r)})},"setClickFun"),jr=o(function(t,e){jn.push(function(){const n=zn?`${zn}-${t}`:t,r=document.querySelector(`[id="${n}"]`);null!==r&&r.addEventListener("click",function(){e()})},function(){const n=zn?`${zn}-${t}`:t,r=document.querySelector(`[id="${n}-text"]`);null!==r&&r.addEventListener("click",function(){e()})})},"pushFun"),zr=o(function(t,e,n){t.split(",").forEach(function(t){Nr(t,e,n)}),Pr(t,"clickable")},"setClickEvent"),Br=o(function(t){jn.forEach(function(e){e(t)})},"bindFunctions"),Rr={getConfig:o(()=>g().gantt,"getConfig"),clear:qn,setDateFormat:rr,getDateFormat:lr,enableInclusiveEndDates:ir,endDatesAreInclusive:sr,enableTopAxis:ar,topAxisEnabled:or,setAxisFormat:Xn,getAxisFormat:Jn,setTickInterval:Kn,getTickInterval:tr,setTodayMarker:er,getTodayMarker:nr,setAccTitle:f,getAccTitle:h,setDiagramTitle:d,getDiagramTitle:l,setDiagramId:Qn,setDisplayMode:cr,getDisplayMode:ur,setAccDescription:u,getAccDescription:c,addSection:kr,getSections:pr,getTasks:Tr,addTask:Er,findTaskById:Or,addTaskOrg:Ir,setIncludes:hr,getIncludes:fr,setExcludes:gr,getExcludes:mr,setClickEvent:zr,setLink:Wr,getLinks:yr,bindFunctions:Br,parseDuration:$r,isInvalidDate:vr,setWeekday:xr,getWeekday:br,setWeekend:wr};function Vr(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(n){const i=new RegExp("^\\s*"+n+"\\s*$");t[0].match(i)&&(e[n]=!0,t.shift(1),r=!0)})}o(Vr,"getTaskTags"),b.extend(Dn);var Zr,Gr=o(function(){k.debug("Something is calling, setConf, remove the call")},"setConf"),qr={monday:xt,tuesday:bt,wednesday:wt,thursday:Dt,friday:Mt,saturday:Ct,sunday:vt},Qr=o((t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((t,e)=>t.startTime-e.startTime||t.order-e.order),i=0;for(const s of r)for(let t=0;t<n.length;t++)if(s.startTime>=n[t]){n[t]=s.endTime,s.order=t+e,t>i&&(i=t);break}return i},"getMaxIntersections"),Xr={parser:Cn,db:Rr,renderer:{setConf:Gr,draw:o(function(t,e,n,r){const i=g().gantt;r.db.setDiagramId(e);const s=g().securityLevel;let a;"sandbox"===s&&(a=m("#i"+e));const c=m("sandbox"===s?a.nodes()[0].contentDocument.body:"body"),u="sandbox"===s?a.nodes()[0].contentDocument:document,l=u.getElementById(e);void 0===(Zr=l.parentElement.offsetWidth)&&(Zr=1200),void 0!==i.useWidth&&(Zr=i.useWidth);const d=r.db.getTasks(),h=d.filter(t=>!t.vert);let f=[];for(const o of h)f.push(o.type);f=E(f);const T={};let v=2*i.topPadding;if("compact"===r.db.getDisplayMode()||"compact"===i.displayMode){const t={};for(const n of h)void 0===t[n.section]?t[n.section]=[n]:t[n.section].push(n);let e=0;for(const n of Object.keys(t)){const r=Qr(t[n],e)+1;e+=r,v+=r*(i.barHeight+i.barGap),T[n]=r}}else{v+=h.length*(i.barHeight+i.barGap);for(const t of f)T[t]=h.filter(e=>e.type===t).length}l.setAttribute("viewBox","0 0 "+Zr+" "+v);const x=c.select(`[id="${e}"]`),w=hn().domain([F(d,function(t){return t.startTime}),Y(d,function(t){return t.endTime})]).rangeRound([0,Zr-i.leftPadding-i.rightPadding]);function D(t,e){const n=t.startTime,r=e.startTime;let i=0;return n>r?i=1:n<r&&(i=-1),i}function M(t,e,n){const s=i.barHeight,a=s+i.barGap,o=i.topPadding,c=i.leftPadding;_().domain([0,f.length]).range(["#00B9FA","#F95002"]).interpolate(rt),$(a,o,c,0,n,t,r.db.getExcludes(),r.db.getIncludes()),A(c,o,0,n),C(t,a,o,c,s,0,e),L(a,o),U(c,0,0,n)}function C(t,n,s,a,o,c,u){t.sort((t,e)=>t.vert===e.vert?0:t.vert?1:-1);const l=t.filter(t=>!t.vert),d=[...new Set(l.map(t=>t.order))].map(t=>l.find(e=>e.order===t));x.append("g").selectAll("rect").data(d).enter().append("rect").attr("x",0).attr("y",function(t,e){return t.order*n+s-2}).attr("width",function(){return u-i.rightPadding/2}).attr("height",n).attr("class",function(t){for(const[e,n]of f.entries())if(t.type===n)return"section section"+e%i.numberSectionStyles;return"section section0"}).enter();const h=x.append("g").selectAll("rect").data(t).enter(),y=r.db.getLinks();if(h.append("rect").attr("id",function(t){return e+"-"+t.id}).attr("rx",3).attr("ry",3).attr("x",function(t){return t.milestone?w(t.startTime)+a+.5*(w(t.endTime)-w(t.startTime))-.5*o:w(t.startTime)+a}).attr("y",function(t,e){return e=t.order,t.vert?i.gridLineStartPadding:e*n+s}).attr("width",function(t){return t.milestone?o:t.vert?.08*o:w(t.renderEndTime||t.endTime)-w(t.startTime)}).attr("height",function(t){return t.vert?l.length*(i.barHeight+i.barGap)+2*i.barHeight:o}).attr("transform-origin",function(t,e){return e=t.order,(w(t.startTime)+a+.5*(w(t.endTime)-w(t.startTime))).toString()+"px "+(e*n+s+.5*o).toString()+"px"}).attr("class",function(t){let e="";t.classes.length>0&&(e=t.classes.join(" "));let n=0;for(const[s,a]of f.entries())t.type===a&&(n=s%i.numberSectionStyles);let r="";return t.active?t.crit?r+=" activeCrit":r=" active":t.done?r=t.crit?" doneCrit":" done":t.crit&&(r+=" crit"),0===r.length&&(r=" task"),t.milestone&&(r=" milestone "+r),t.vert&&(r=" vert "+r),r+=n,r+=" "+e,"task"+r}),h.append("text").attr("id",function(t){return e+"-"+t.id+"-text"}).text(function(t){return t.task}).attr("font-size",i.fontSize).attr("x",function(t){let e=w(t.startTime),n=w(t.renderEndTime||t.endTime);if(t.milestone&&(e+=.5*(w(t.endTime)-w(t.startTime))-.5*o,n=e+o),t.vert)return w(t.startTime)+a;const r=this.getBBox().width;return r>n-e?n+r+1.5*i.leftPadding>u?e+a-5:n+a+5:(n-e)/2+e+a}).attr("y",function(t,e){return t.vert?i.gridLineStartPadding+l.length*(i.barHeight+i.barGap)+60:t.order*n+i.barHeight/2+(i.fontSize/2-2)+s}).attr("text-height",o).attr("class",function(t){const e=w(t.startTime);let n=w(t.endTime);t.milestone&&(n=e+o);const r=this.getBBox().width;let s="";t.classes.length>0&&(s=t.classes.join(" "));let a=0;for(const[o,u]of f.entries())t.type===u&&(a=o%i.numberSectionStyles);let c="";return t.active&&(c=t.crit?"activeCritText"+a:"activeText"+a),t.done?c=t.crit?c+" doneCritText"+a:c+" doneText"+a:t.crit&&(c=c+" critText"+a),t.milestone&&(c+=" milestoneText"),t.vert&&(c+=" vertText"),r>n-e?n+r+1.5*i.leftPadding>u?s+" taskTextOutsideLeft taskTextOutside"+a+" "+c:s+" taskTextOutsideRight taskTextOutside"+a+" "+c+" width-"+r:s+" taskText taskText"+a+" "+c+" width-"+r}),"sandbox"===g().securityLevel){let t;t=m("#i"+e);const n=t.nodes()[0].contentDocument;h.filter(function(t){return y.has(t.id)}).each(function(t){var r=n.querySelector("#"+CSS.escape(e+"-"+t.id)),i=n.querySelector("#"+CSS.escape(e+"-"+t.id+"-text"));const s=r.parentNode;var a=n.createElement("a");a.setAttribute("xlink:href",y.get(t.id)),a.setAttribute("target","_top"),s.appendChild(a),a.appendChild(r),a.appendChild(i)})}}function $(t,n,s,a,o,c,u,l){if(0===u.length&&0===l.length)return;let d,h;for(const{startTime:e,endTime:r}of c)(void 0===d||e<d)&&(d=e),(void 0===h||r>h)&&(h=r);if(!d||!h)return;if(b(h).diff(b(d),"year")>5)return void k.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");const f=r.db.getDateFormat(),g=[];let m=null,y=b(d);for(;y.valueOf()<=h;)r.db.isInvalidDate(y,f,u,l)?m?m.end=y:m={start:y,end:y}:m&&(g.push(m),m=null),y=y.add(1,"d");x.append("g").selectAll("rect").data(g).enter().append("rect").attr("id",t=>e+"-exclude-"+t.start.format("YYYY-MM-DD")).attr("x",t=>w(t.start.startOf("day"))+s).attr("y",i.gridLineStartPadding).attr("width",t=>w(t.end.endOf("day"))-w(t.start.startOf("day"))).attr("height",o-n-i.gridLineStartPadding).attr("transform-origin",function(e,n){return(w(e.start)+s+.5*(w(e.end)-w(e.start))).toString()+"px "+(n*t+.5*o).toString()+"px"}).attr("class","exclude-range")}function S(t,e,n,r){if(n<=0||t>e)return 1/0;const i=e-t,s=b.duration({[r??"day"]:n}).asMilliseconds();return s<=0?1/0:Math.ceil(i/s)}function A(t,e,n,s){const a=r.db.getDateFormat();let o;o=r.db.getAxisFormat()||("D"===a?"%d":i.axisFormat??"%Y-%m-%d");let c=function(t){return W(3,t)}(w).tickSize(-s+e+i.gridLineStartPadding).tickFormat(Bt(o));const u=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(null!==u){const t=parseInt(u[1],10);if(isNaN(t)||t<=0)k.warn(`Invalid tick interval value: "${u[1]}". Skipping custom tick interval.`);else{const e=u[2],n=r.db.getWeekday()||i.weekday,s=w.domain(),a=S(s[0],s[1],t,e);if(a>1e4)k.warn(`The tick interval "${t}${e}" would generate ${a} ticks, which exceeds the maximum allowed (10000). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(e){case"millisecond":c.ticks(ot.every(t));break;case"second":c.ticks(gt.every(t));break;case"minute":c.ticks(mt.every(t));break;case"hour":c.ticks(yt.every(t));break;case"day":c.ticks(kt.every(t));break;case"week":c.ticks(qr[n].every(t));break;case"month":c.ticks(Et.every(t))}}}if(x.append("g").attr("class","grid").attr("transform","translate("+t+", "+(s-50)+")").call(c).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){let n=function(t){return W(1,t)}(w).tickSize(-s+e+i.gridLineStartPadding).tickFormat(Bt(o));if(null!==u){const t=parseInt(u[1],10);if(isNaN(t)||t<=0)k.warn(`Invalid tick interval value: "${u[1]}". Skipping custom tick interval.`);else{const e=u[2],s=r.db.getWeekday()||i.weekday,a=w.domain();if(S(a[0],a[1],t,e)<=1e4)switch(e){case"millisecond":n.ticks(ot.every(t));break;case"second":n.ticks(gt.every(t));break;case"minute":n.ticks(mt.every(t));break;case"hour":n.ticks(yt.every(t));break;case"day":n.ticks(kt.every(t));break;case"week":n.ticks(qr[s].every(t));break;case"month":n.ticks(Et.every(t))}}}x.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(n).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function L(t,e){let n=0;const r=Object.keys(T).map(t=>[t,T[t]]);x.append("g").selectAll("text").data(r).enter().append(function(t){const e=t[0].split(p.lineBreakRegex),n=-(e.length-1)/2,r=u.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("dy",n+"em");for(const[i,s]of e.entries()){const t=u.createElementNS("http://www.w3.org/2000/svg","tspan");t.setAttribute("alignment-baseline","central"),t.setAttribute("x","10"),i>0&&t.setAttribute("dy","1em"),t.textContent=s,r.appendChild(t)}return r}).attr("x",10).attr("y",function(i,s){if(!(s>0))return i[1]*t/2+e;for(let a=0;a<s;a++)return n+=r[s-1][1],i[1]*t/2+n*t+e}).attr("font-size",i.sectionFontSize).attr("class",function(t){for(const[e,n]of f.entries())if(t[0]===n)return"sectionTitle sectionTitle"+e%i.numberSectionStyles;return"sectionTitle"})}function U(t,e,n,s){const a=r.db.getTodayMarker();if("off"===a)return;const o=x.append("g").attr("class","today"),c=new Date,u=o.append("line");u.attr("x1",w(c)+t).attr("x2",w(c)+t).attr("y1",i.titleTopMargin).attr("y2",s-i.titleTopMargin).attr("class","today"),""!==a&&u.attr("style",a.replace(/,/g,";"))}function E(t){const e={},n=[];for(let r=0,i=t.length;r<i;++r)Object.prototype.hasOwnProperty.call(e,t[r])||(e[t[r]]=!0,n.push(t[r]));return n}o(D,"taskCompare"),d.sort(D),M(d,Zr,v),y(x,v,Zr,i.useMaxWidth),x.append("text").text(r.db.getDiagramTitle()).attr("x",Zr/2).attr("y",i.titleTopMargin).attr("class","titleText"),o(M,"makeGantt"),o(C,"drawRects"),o($,"drawExcludeDays"),o(S,"getEstimatedTickCount"),o(A,"makeGrid"),o(L,"vertLabels"),o(U,"drawToday"),o(E,"checkUnique")},"draw")},styles:o(t=>`\n .mermaid-main-font {\n font-family: ${t.fontFamily};\n }\n\n .exclude-range {\n fill: ${t.excludeBkgColor};\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${t.sectionBkgColor};\n }\n\n .section2 {\n fill: ${t.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${t.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n font-family: ${t.fontFamily};\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${t.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n }\n\n .grid .tick text {\n font-family: ${t.fontFamily};\n fill: ${t.textColor};\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${t.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: ${t.fontFamily};\n }\n\n .taskTextOutsideRight {\n fill: ${t.taskTextDarkColor};\n text-anchor: start;\n font-family: ${t.fontFamily};\n }\n\n .taskTextOutsideLeft {\n fill: ${t.taskTextDarkColor};\n text-anchor: end;\n }\n\n\n /* Special case clickable */\n\n .task.clickable {\n cursor: pointer;\n }\n\n .taskText.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${t.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${t.taskBkgColor};\n stroke: ${t.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${t.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${t.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${t.activeTaskBkgColor};\n stroke: ${t.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${t.doneTaskBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n /* Done task text displayed outside the bar sits against the diagram background,\n not against the done-task bar, so it must use the outside/contrast color. */\n .doneText0.taskTextOutsideLeft,\n .doneText0.taskTextOutsideRight,\n .doneText1.taskTextOutsideLeft,\n .doneText1.taskTextOutsideRight,\n .doneText2.taskTextOutsideLeft,\n .doneText2.taskTextOutsideRight,\n .doneText3.taskTextOutsideLeft,\n .doneText3.taskTextOutsideRight {\n fill: ${t.taskTextOutsideColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n /* Done-crit task text outside the bar — same reasoning as doneText above. */\n .doneCritText0.taskTextOutsideLeft,\n .doneCritText0.taskTextOutsideRight,\n .doneCritText1.taskTextOutsideLeft,\n .doneCritText1.taskTextOutsideRight,\n .doneCritText2.taskTextOutsideLeft,\n .doneCritText2.taskTextOutsideRight,\n .doneCritText3.taskTextOutsideLeft,\n .doneCritText3.taskTextOutsideRight {\n fill: ${t.taskTextOutsideColor} !important;\n }\n\n .vert {\n stroke: ${t.vertLineColor};\n }\n\n .vertText {\n font-size: 15px;\n text-anchor: middle;\n fill: ${t.vertLineColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.titleColor||t.textColor};\n font-family: ${t.fontFamily};\n }\n`,"getStyles")};export{Xr as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as t}from"./chunk-2Q5K7J3B-B5fYkjtP.js";import{p as r}from"./chunk-JWPE2WC7-C9fui0AP.js";import{_ as e,p as o,o as n,s as a,g as s,a as i,b as c,z as d,l as h,d as $,c as m,y as l,A as g,q as p,k as y,B as f,D as x,E as u}from"./mermaid.core-DsV-uGyB.js";import{p as b}from"./cynefin-VYW2F7L2-CYle_Oh3.js";import"./index-Cg-hTlne.js";import"./RemoteLifeOSBlock-Bhm7Sf00.js";import"./index-C0OnaOQ9.js";import"./index-CUEPjMAK.js";import"./file-editor-index-C6CU7Fik.js";import"./App-DXhmlTQu.js";import"./chevron-up-DQfpYsuw.js";import"./__vite-browser-external-2447137e-DrC7dgv5.js";import"./purify.es-BNLkGfTg.js";import"./marked.esm-BBjA1da9.js";var w={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},k=x.gitGraph,B=e(()=>f({...k,...d().gitGraph}),"getConfig"),E=new t(()=>{const t=B(),r=t.mainBranchName,e=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:e}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function C(){return u({length:7})}function L(t,r){const e=Object.create(null);return t.reduce((t,o)=>{const n=r(o);return e[n]||(e[n]=!0,t.push(o)),t},[])}e(C,"getID"),e(L,"uniqBy");var T=e(function(t){E.records.direction=t},"setDirection"),M=e(function(t){h.debug("options str",t),t=t?.trim(),t=t||"{}";try{E.records.options=JSON.parse(t)}catch(r){h.error("error while parsing gitGraph options",r.message)}},"setOptions"),v=e(function(){return E.records.options},"getOptions"),I=e(function(t){let r=t.msg,e=t.id;const o=t.type;let n=t.tags;h.info("commit",r,e,o,n),h.debug("Entering commit:",r,e,o,n);const a=B();e=y.sanitizeText(e,a),r=y.sanitizeText(r,a),n=n?.map(t=>y.sanitizeText(t,a));const s={id:e||E.records.seq+"-"+C(),message:r,seq:E.records.seq++,type:o??w.NORMAL,tags:n??[],parents:null==E.records.head?[]:[E.records.head.id],branch:E.records.currBranch};E.records.head=s,h.info("main branch",a.mainBranchName),E.records.commits.has(s.id)&&h.warn(`Commit ID ${s.id} already exists`),E.records.commits.set(s.id,s),E.records.branches.set(E.records.currBranch,s.id),h.debug("in pushCommit "+s.id)},"commit"),R=e(function(t){let r=t.name;const e=t.order;if(r=y.sanitizeText(r,B()),E.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);E.records.branches.set(r,null!=E.records.head?E.records.head.id:null),E.records.branchConfig.set(r,{name:r,order:e}),A(r),h.debug("in createBranch")},"branch"),P=e(t=>{let r=t.branch,e=t.id;const o=t.type,n=t.tags,a=B();r=y.sanitizeText(r,a),e&&(e=y.sanitizeText(e,a));const s=E.records.branches.get(E.records.currBranch),i=E.records.branches.get(r),c=s?E.records.commits.get(s):void 0,d=i?E.records.commits.get(i):void 0;if(c&&d&&c.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(E.records.currBranch===r){const t=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},t}if(void 0===c||!c){const t=new Error(`Incorrect usage of "merge". Current branch (${E.records.currBranch})has no commits`);throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},t}if(!E.records.branches.has(r)){const t=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},t}if(void 0===d||!d){const t=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},t}if(c===d){const t=new Error('Incorrect usage of "merge". Both branches have same head');throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},t}if(e&&E.records.commits.has(e)){const t=new Error('Incorrect usage of "merge". Commit with id:'+e+" already exists, use different custom id");throw t.hash={text:`merge ${r} ${e} ${o} ${n?.join(" ")}`,token:`merge ${r} ${e} ${o} ${n?.join(" ")}`,expected:[`merge ${r} ${e}_UNIQUE ${o} ${n?.join(" ")}`]},t}const $=i||"",m={id:e||`${E.records.seq}-${C()}`,message:`merged branch ${r} into ${E.records.currBranch}`,seq:E.records.seq++,parents:null==E.records.head?[]:[E.records.head.id,$],branch:E.records.currBranch,type:w.MERGE,customType:o,customId:!!e,tags:n??[]};E.records.head=m,E.records.commits.set(m.id,m),E.records.branches.set(E.records.currBranch,m.id),h.debug(E.records.branches),h.debug("in mergeBranch")},"merge"),O=e(function(t){let r=t.id,e=t.targetId,o=t.tags,n=t.parent;h.debug("Entering cherryPick:",r,e,o);const a=B();if(r=y.sanitizeText(r,a),e=y.sanitizeText(e,a),o=o?.map(t=>y.sanitizeText(t,a)),n=y.sanitizeText(n,a),!r||!E.records.commits.has(r)){const t=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const s=E.records.commits.get(r);if(void 0===s||!s)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(n&&(!Array.isArray(s.parents)||!s.parents.includes(n)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const i=s.branch;if(s.type===w.MERGE&&!n)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!e||!E.records.commits.has(e)){if(i===E.records.currBranch){const t=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const t=E.records.branches.get(E.records.currBranch);if(void 0===t||!t){const t=new Error(`Incorrect usage of "cherry-pick". Current branch (${E.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const a=E.records.commits.get(t);if(void 0===a||!a){const t=new Error(`Incorrect usage of "cherry-pick". Current branch (${E.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const c={id:E.records.seq+"-"+C(),message:`cherry-picked ${s?.message} into ${E.records.currBranch}`,seq:E.records.seq++,parents:null==E.records.head?[]:[E.records.head.id,s.id],branch:E.records.currBranch,type:w.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${s.id}${s.type===w.MERGE?`|parent:${n}`:""}`]};E.records.head=c,E.records.commits.set(c.id,c),E.records.branches.set(E.records.currBranch,c.id),h.debug(E.records.branches),h.debug("in cherryPick")}},"cherryPick"),A=e(function(t){if(t=y.sanitizeText(t,B()),!E.records.branches.has(t)){const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}{E.records.currBranch=t;const r=E.records.branches.get(E.records.currBranch);E.records.head=void 0!==r&&r?E.records.commits.get(r)??null:null}},"checkout");function G(t,r,e){const o=t.indexOf(r);-1===o?t.push(e):t.splice(o,1,e)}function S(t){const r=t.reduce((t,r)=>t.seq>r.seq?t:r,t[0]);let e="";t.forEach(function(t){e+=t===r?"\t*":"\t|"});const o=[e,r.id,r.seq];for(const n in E.records.branches)E.records.branches.get(n)===r.id&&o.push(n);if(h.debug(o.join(" ")),r.parents&&2==r.parents.length&&r.parents[0]&&r.parents[1]){const e=E.records.commits.get(r.parents[0]);G(t,r,e),r.parents[1]&&t.push(E.records.commits.get(r.parents[1]))}else{if(0==r.parents.length)return;if(r.parents[0]){const e=E.records.commits.get(r.parents[0]);G(t,r,e)}}S(t=L(t,t=>t.id))}e(G,"upsert"),e(S,"prettyPrintCommitHistory");var W=e(function(){h.debug(E.records.commits),S([z()[0]])},"prettyPrint"),H=e(function(){E.reset(),p()},"clear"),j=e(function(){return[...E.records.branchConfig.values()].map((t,r)=>null!==t.order&&void 0!==t.order?t:{...t,order:parseFloat(`0.${r}`)}).sort((t,r)=>(t.order??0)-(r.order??0)).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),q=e(function(){return E.records.branches},"getBranches"),_=e(function(){return E.records.commits},"getCommits"),z=e(function(){const t=[...E.records.commits.values()];return t.forEach(function(t){h.debug(t.id)}),t.sort((t,r)=>t.seq-r.seq),t},"getCommitsArray"),D={commitType:w,getConfig:B,setDirection:T,setOptions:M,getOptions:v,commit:I,branch:R,merge:P,cherryPick:O,checkout:A,prettyPrint:W,clear:H,getBranchesAsObjArray:j,getBranches:q,getCommits:_,getCommitsArray:z,getCurrentBranch:e(function(){return E.records.currBranch},"getCurrentBranch"),getDirection:e(function(){return E.records.direction},"getDirection"),getHead:e(function(){return E.records.head},"getHead"),setAccTitle:c,getAccTitle:i,getAccDescription:s,setAccDescription:a,setDiagramTitle:n,getDiagramTitle:o},F=e((t,e)=>{r(t,e),t.dir&&e.setDirection(t.dir);for(const r of t.statements)N(r,e)},"populate"),N=e((t,r)=>{const o={Commit:e(t=>r.commit(K(t)),"Commit"),Branch:e(t=>r.branch(V(t)),"Branch"),Merge:e(t=>r.merge(Y(t)),"Merge"),Checkout:e(t=>r.checkout(U(t)),"Checkout"),CherryPicking:e(t=>r.cherryPick(J(t)),"CherryPicking")}[t.$type];o?o(t):h.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),K=e(t=>({id:t.id,msg:t.message??"",type:void 0!==t.type?w[t.type]:w.NORMAL,tags:t.tags??void 0}),"parseCommit"),V=e(t=>({name:t.name,order:t.order??0}),"parseBranch"),Y=e(t=>({branch:t.branch,id:t.id??"",type:void 0!==t.type?w[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),U=e(t=>t.branch,"parseCheckout"),J=e(t=>({id:t.id,targetId:"",tags:0===t.tags?.length?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),Q={parse:e(async t=>{const r=await b("gitGraph",t);h.debug(r),F(r,D)},"parse")},X=10,Z=40,tt=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),rt=new Set(["redux-color","redux-dark-color"]),et=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),ot=e((t,r,e=!1)=>e&&t>0?(t-1)%(r-1)+1:t%r,"calcColorIndex"),nt=new Map,at=new Map,st=new Map,it=[],ct=0,dt="LR",ht=e(()=>{nt.clear(),at.clear(),st.clear(),ct=0,it=[],dt="LR"},"clear"),$t=e(t=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return("string"==typeof t?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=t.trim(),r.appendChild(e)}),r},"drawText"),mt=e(t=>{let r,o,n;return"BT"===dt?(o=e((t,r)=>t<=r,"comparisonFunc"),n=1/0):(o=e((t,r)=>t>=r,"comparisonFunc"),n=0),t.forEach(t=>{const e="TB"===dt||"BT"==dt?at.get(t)?.y:at.get(t)?.x;void 0!==e&&o(e,n)&&(r=t,n=e)}),r},"findClosestParent"),lt=e(t=>{let r="",e=1/0;return t.forEach(t=>{const o=at.get(t).y;o<=e&&(r=t,e=o)}),r||void 0},"findClosestParentBT"),gt=e((t,r,e)=>{let o=e,n=e;const a=[];t.forEach(t=>{const e=r.get(t);if(!e)throw new Error(`Commit not found for key ${t}`);e.parents.length?(o=yt(e),n=Math.max(o,n)):a.push(e),ft(e,o)}),o=n,a.forEach(t=>{xt(t,o,e)}),t.forEach(t=>{const e=r.get(t);if(e?.parents.length){const t=lt(e.parents);o=at.get(t).y-Z,o<=n&&(n=o);const r=nt.get(e.branch).pos,a=o-X;at.set(e.id,{x:r,y:a})}})},"setParallelBTPos"),pt=e(t=>{const r=mt(t.parents.filter(t=>null!==t));if(!r)throw new Error(`Closest parent not found for commit ${t.id}`);const e=at.get(r)?.y;if(void 0===e)throw new Error(`Closest parent position not found for commit ${t.id}`);return e},"findClosestParentPos"),yt=e(t=>pt(t)+Z,"calculateCommitPosition"),ft=e((t,r)=>{const e=nt.get(t.branch);if(!e)throw new Error(`Branch not found for commit ${t.id}`);const o=e.pos,n=r+X;return at.set(t.id,{x:o,y:n}),{x:o,y:n}},"setCommitPosition"),xt=e((t,r,e)=>{const o=nt.get(t.branch);if(!o)throw new Error(`Branch not found for commit ${t.id}`);const n=r+e,a=o.pos;at.set(t.id,{x:a,y:n})},"setRootPosition"),ut=e((t,r,e,o,n,a)=>{const{theme:s}=m(),i=tt.has(s??""),c=rt.has(s??""),d=et.has(s??"");if(a===w.HIGHLIGHT)t.append("rect").attr("x",e.x-10+(i?3:0)).attr("y",e.y-10+(i?3:0)).attr("width",i?14:20).attr("height",i?14:20).attr("class",`commit ${r.id} commit-highlight${ot(n,8,c)} ${o}-outer`),t.append("rect").attr("x",e.x-6+(i?2:0)).attr("y",e.y-6+(i?2:0)).attr("width",i?8:12).attr("height",i?8:12).attr("class",`commit ${r.id} commit${ot(n,8,c)} ${o}-inner`);else if(a===w.CHERRY_PICK)t.append("circle").attr("cx",e.x).attr("cy",e.y).attr("r",i?7:10).attr("class",`commit ${r.id} ${o}`),t.append("circle").attr("cx",e.x-3).attr("cy",e.y+2).attr("r",i?2.5:2.75).attr("fill",d?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),t.append("circle").attr("cx",e.x+3).attr("cy",e.y+2).attr("r",i?2.5:2.75).attr("fill",d?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),t.append("line").attr("x1",e.x+3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke",d?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),t.append("line").attr("x1",e.x-3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke",d?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`);else{const s=t.append("circle");if(s.attr("cx",e.x),s.attr("cy",e.y),s.attr("r",i?7:10),s.attr("class",`commit ${r.id} commit${ot(n,8,c)}`),a===w.MERGE){const a=t.append("circle");a.attr("cx",e.x),a.attr("cy",e.y),a.attr("r",i?5:6),a.attr("class",`commit ${o} ${r.id} commit${ot(n,8,c)}`)}if(a===w.REVERSE){const a=i?4:5;t.append("path").attr("d",`M ${e.x-a},${e.y-a}L${e.x+a},${e.y+a}M${e.x-a},${e.y+a}L${e.x+a},${e.y-a}`).attr("class",`commit ${o} ${r.id} commit${ot(n,8,c)}`)}}},"drawCommitBullet"),bt=e((t,r,e,o,n)=>{if(r.type!==w.CHERRY_PICK&&(r.customId&&r.type===w.MERGE||r.type!==w.MERGE)&&n.showCommitLabel){const a=t.append("g"),s=a.insert("rect").attr("class","commit-label-bkg"),i=a.append("text").attr("x",o).attr("y",e.y+25).attr("class","commit-label").text(r.id),c=i.node()?.getBBox();if(c&&(s.attr("x",e.posWithOffset-c.width/2-2).attr("y",e.y+13.5).attr("width",c.width+4).attr("height",c.height+4),"TB"===dt||"BT"===dt?(s.attr("x",e.x-(c.width+16+5)).attr("y",e.y-12),i.attr("x",e.x-(c.width+16)).attr("y",e.y+c.height-12)):i.attr("x",e.posWithOffset-c.width/2),n.rotateCommitLabel))if("TB"===dt||"BT"===dt)i.attr("transform","rotate(-45, "+e.x+", "+e.y+")"),s.attr("transform","rotate(-45, "+e.x+", "+e.y+")");else{const t=-7.5-(c.width+10)/25*9.5,r=10+c.width/25*8.5;a.attr("transform","translate("+t+", "+r+") rotate(-45, "+o+", "+e.y+")")}}},"drawCommitLabel"),wt=e((t,r,e,o)=>{if(r.tags.length>0){let n=0,a=0,s=0;const i=[];for(const o of r.tags.reverse()){const r=t.insert("polygon"),c=t.append("circle"),d=t.append("text").attr("y",e.y-16-n).attr("class","tag-label").text(o),h=d.node()?.getBBox();if(!h)throw new Error("Tag bbox not found");a=Math.max(a,h.width),s=Math.max(s,h.height),d.attr("x",e.posWithOffset-h.width/2),i.push({tag:d,hole:c,rect:r,yOffset:n}),n+=20}for(const{tag:t,hole:r,rect:c,yOffset:d}of i){const n=s/2,i=e.y-19.2-d;if(c.attr("class","tag-label-bkg").attr("points",`\n ${o-a/2-2},${i+2} \n ${o-a/2-2},${i-2}\n ${e.posWithOffset-a/2-4},${i-n-2}\n ${e.posWithOffset+a/2+4},${i-n-2}\n ${e.posWithOffset+a/2+4},${i+n+2}\n ${e.posWithOffset-a/2-4},${i+n+2}`),r.attr("cy",i).attr("cx",o-a/2+2).attr("r",1.5).attr("class","tag-hole"),"TB"===dt||"BT"===dt){const s=o+d;c.attr("class","tag-label-bkg").attr("points",`\n ${e.x},${s+2}\n ${e.x},${s-2}\n ${e.x+X},${s-n-2}\n ${e.x+X+a+4},${s-n-2}\n ${e.x+X+a+4},${s+n+2}\n ${e.x+X},${s+n+2}`).attr("transform","translate(12,12) rotate(45, "+e.x+","+o+")"),r.attr("cx",e.x+2).attr("cy",s).attr("transform","translate(12,12) rotate(45, "+e.x+","+o+")"),t.attr("x",e.x+5).attr("y",s+3).attr("transform","translate(14,14) rotate(45, "+e.x+","+o+")")}}}},"drawCommitTags"),kt=e(t=>{switch(t.customType??t.type){case w.NORMAL:return"commit-normal";case w.REVERSE:return"commit-reverse";case w.HIGHLIGHT:return"commit-highlight";case w.MERGE:return"commit-merge";case w.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),Bt=e((t,r,e,o)=>{const n={x:0,y:0};if(!(t.parents.length>0))return"TB"===r?30:"BT"===r?(o.get(t.id)??n).y-Z:0;{const e=mt(t.parents);if(e){const a=o.get(e)??n;return"TB"===r?a.y+Z:"BT"===r?(o.get(t.id)??n).y-Z:a.x+Z}}return 0},"calculatePosition"),Et=e((t,r,e)=>{const o="BT"===dt&&e?r:r+X,n=nt.get(t.branch)?.pos,a="TB"===dt||"BT"===dt?nt.get(t.branch)?.pos:o;if(void 0===a||void 0===n)throw new Error(`Position were undefined for commit ${t.id}`);const s=tt.has(m().theme??"");return{x:a,y:"TB"===dt||"BT"===dt?o:n+(s?7:-2),posWithOffset:o}},"getCommitPosition"),Ct=e((t,r,o,n)=>{const a=t.append("g").attr("class","commit-bullets"),s=t.append("g").attr("class","commit-labels");let i="TB"===dt||"BT"===dt?30:0;const c=[...r.keys()],d=n.parallelCommits??!1,h=e((t,e)=>{const o=r.get(t)?.seq,n=r.get(e)?.seq;return void 0!==o&&void 0!==n?o-n:0},"sortKeys");let $=c.sort(h);"BT"===dt&&(d&>($,r,i),$=$.reverse()),$.forEach(t=>{const e=r.get(t);if(!e)throw new Error(`Commit not found for key ${t}`);d&&(i=Bt(e,dt,i,at));const c=Et(e,i,d);if(o){const t=kt(e),r=e.customType??e.type,o=nt.get(e.branch)?.index??0;ut(a,e,c,t,o,r),bt(s,e,c,i,n),wt(s,e,c,i)}"TB"===dt||"BT"===dt?at.set(e.id,{x:c.x,y:c.posWithOffset}):at.set(e.id,{x:c.posWithOffset,y:c.y}),i="BT"===dt&&d?i+Z:i+Z+X,i>ct&&(ct=i)})},"drawCommits"),Lt=e((t,r,o,n,a)=>{const s=("TB"===dt||"BT"===dt?o.x<n.x:o.y<n.y)?r.branch:t.branch,i=e(t=>t.branch===s,"isOnBranchToGetCurve"),c=e(e=>e.seq>t.seq&&e.seq<r.seq,"isBetweenCommits");return[...a.values()].some(t=>c(t)&&i(t))},"shouldRerouteArrow"),Tt=e((t,r,e=0)=>{const o=t+Math.abs(t-r)/2;if(e>5)return o;if(it.every(t=>Math.abs(t-o)>=10))return it.push(o),o;const n=Math.abs(t-r);return Tt(t,r-n/5,e+1)},"findLane"),Mt=e((t,r,e,o)=>{const{theme:n}=m(),a=rt.has(n??""),s=at.get(r.id),i=at.get(e.id);if(void 0===s||void 0===i)throw new Error(`Commit positions not found for commits ${r.id} and ${e.id}`);const c=Lt(r,e,s,i,o);let d,h="",$="",l=0,g=0,p=nt.get(e.branch)?.index;if(e.type===w.MERGE&&r.id!==e.parents[0]&&(p=nt.get(r.branch)?.index),c){h="A 10 10, 0, 0, 0,",$="A 10 10, 0, 0, 1,",l=10,g=10;const t=s.y<i.y?Tt(s.y,i.y):Tt(i.y,s.y),e=s.x<i.x?Tt(s.x,i.x):Tt(i.x,s.x);"TB"===dt?s.x<i.x?d=`M ${s.x} ${s.y} L ${e-l} ${s.y} ${$} ${e} ${s.y+g} L ${e} ${i.y-l} ${h} ${e+g} ${i.y} L ${i.x} ${i.y}`:(p=nt.get(r.branch)?.index,d=`M ${s.x} ${s.y} L ${e+l} ${s.y} ${h} ${e} ${s.y+g} L ${e} ${i.y-l} ${$} ${e-g} ${i.y} L ${i.x} ${i.y}`):"BT"===dt?s.x<i.x?d=`M ${s.x} ${s.y} L ${e-l} ${s.y} ${h} ${e} ${s.y-g} L ${e} ${i.y+l} ${$} ${e+g} ${i.y} L ${i.x} ${i.y}`:(p=nt.get(r.branch)?.index,d=`M ${s.x} ${s.y} L ${e+l} ${s.y} ${$} ${e} ${s.y-g} L ${e} ${i.y+l} ${h} ${e-g} ${i.y} L ${i.x} ${i.y}`):s.y<i.y?d=`M ${s.x} ${s.y} L ${s.x} ${t-l} ${h} ${s.x+g} ${t} L ${i.x-l} ${t} ${$} ${i.x} ${t+g} L ${i.x} ${i.y}`:(p=nt.get(r.branch)?.index,d=`M ${s.x} ${s.y} L ${s.x} ${t+l} ${$} ${s.x+g} ${t} L ${i.x-l} ${t} ${h} ${i.x} ${t-g} L ${i.x} ${i.y}`)}else h="A 20 20, 0, 0, 0,",$="A 20 20, 0, 0, 1,",l=20,g=20,"TB"===dt?(s.x<i.x&&(d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${s.x} ${s.y} L ${s.x} ${i.y-l} ${h} ${s.x+g} ${i.y} L ${i.x} ${i.y}`:`M ${s.x} ${s.y} L ${i.x-l} ${s.y} ${$} ${i.x} ${s.y+g} L ${i.x} ${i.y}`),s.x>i.x&&(h="A 20 20, 0, 0, 0,",$="A 20 20, 0, 0, 1,",l=20,g=20,d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${s.x} ${s.y} L ${s.x} ${i.y-l} ${$} ${s.x-g} ${i.y} L ${i.x} ${i.y}`:`M ${s.x} ${s.y} L ${i.x+l} ${s.y} ${h} ${i.x} ${s.y+g} L ${i.x} ${i.y}`),s.x===i.x&&(d=`M ${s.x} ${s.y} L ${i.x} ${i.y}`)):"BT"===dt?(s.x<i.x&&(d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${s.x} ${s.y} L ${s.x} ${i.y+l} ${$} ${s.x+g} ${i.y} L ${i.x} ${i.y}`:`M ${s.x} ${s.y} L ${i.x-l} ${s.y} ${h} ${i.x} ${s.y-g} L ${i.x} ${i.y}`),s.x>i.x&&(h="A 20 20, 0, 0, 0,",$="A 20 20, 0, 0, 1,",l=20,g=20,d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${s.x} ${s.y} L ${s.x} ${i.y+l} ${h} ${s.x-g} ${i.y} L ${i.x} ${i.y}`:`M ${s.x} ${s.y} L ${i.x+l} ${s.y} ${$} ${i.x} ${s.y-g} L ${i.x} ${i.y}`),s.x===i.x&&(d=`M ${s.x} ${s.y} L ${i.x} ${i.y}`)):(s.y<i.y&&(d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${s.x} ${s.y} L ${i.x-l} ${s.y} ${$} ${i.x} ${s.y+g} L ${i.x} ${i.y}`:`M ${s.x} ${s.y} L ${s.x} ${i.y-l} ${h} ${s.x+g} ${i.y} L ${i.x} ${i.y}`),s.y>i.y&&(d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${s.x} ${s.y} L ${i.x-l} ${s.y} ${h} ${i.x} ${s.y-g} L ${i.x} ${i.y}`:`M ${s.x} ${s.y} L ${s.x} ${i.y+l} ${$} ${s.x+g} ${i.y} L ${i.x} ${i.y}`),s.y===i.y&&(d=`M ${s.x} ${s.y} L ${i.x} ${i.y}`));if(void 0===d)throw new Error("Line definition not found");t.append("path").attr("d",d).attr("class","arrow arrow"+ot(p,8,a))},"drawArrow"),vt=e((t,r)=>{const e=t.append("g").attr("class","commit-arrows");[...r.keys()].forEach(t=>{const o=r.get(t);o.parents&&o.parents.length>0&&o.parents.forEach(t=>{Mt(e,r.get(t),o,r)})})},"drawArrows"),It=e((t,r,e,o)=>{const{look:n,theme:a,themeVariables:s}=m(),{dropShadow:i,THEME_COLOR_LIMIT:c}=s,d=tt.has(a??""),h=rt.has(a??""),$=t.append("g");r.forEach((t,r)=>{const a=ot(r,d?c:8,h),s=nt.get(t.name)?.pos;if(void 0===s)throw new Error(`Position not found for branch ${t.name}`);const m="TB"===dt||"BT"===dt?s:d?s+6+1:s-2,l=$.append("line");l.attr("x1",0),l.attr("y1",m),l.attr("x2",ct),l.attr("y2",m),l.attr("class","branch branch"+a),"TB"===dt?(l.attr("y1",30),l.attr("x1",s),l.attr("y2",ct),l.attr("x2",s)):"BT"===dt&&(l.attr("y1",ct),l.attr("x1",s),l.attr("y2",30),l.attr("x2",s)),it.push(m);const g=t.name,p=$t(g),y=$.insert("rect"),f=$.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+a);f.node().appendChild(p);const x=p.getBBox(),u=d?0:4,b=d?16:0,w=d?12:0;"neo"===n&&y.attr("data-look","neo"),y.attr("class","branchLabelBkg label"+a).attr("style","neo"===n?`filter:${d?`url(#${o}-drop-shadow)`:i}`:"").attr("rx",u).attr("ry",u).attr("x",-x.width-4-(!0===e.rotateCommitLabel?30:0)).attr("y",-x.height/2+10).attr("width",x.width+18+b).attr("height",x.height+4+w),f.attr("transform","translate("+(-x.width-14-(!0===e.rotateCommitLabel?30:0)+b/2)+", "+(m-x.height/2-2)+")"),"TB"===dt?(y.attr("x",s-x.width/2-10).attr("y",0),f.attr("transform","translate("+(s-x.width/2-5)+", 0)"),d&&(y.attr("transform",`translate(${-b/2-3}, ${-w-10})`),f.attr("transform","translate("+(s-x.width/2-5)+", "+(2*-w+7)+")"))):"BT"===dt?(y.attr("x",s-x.width/2-10).attr("y",ct),f.attr("transform","translate("+(s-x.width/2-5)+", "+ct+")"),d&&(y.attr("transform",`translate(${-b/2-3}, ${w+10})`),f.attr("transform","translate("+(s-x.width/2-5)+", "+(ct+2*w+4)+")"))):y.attr("transform","translate(-19, "+(m-12-w/2)+")")})},"drawBranches"),Rt=e(function(t,r,e,o,n){return nt.set(t,{pos:r,index:e}),r+(50+(n?40:0)+("TB"===dt||"BT"===dt?o.width/2:0))},"setBranchPosition"),Pt={draw:e(function(t,r,e,o){ht(),h.debug("in gitgraph renderer",t+"\n","id:",r,e);const n=o.db;if(!n.getConfig)return void h.error("getConfig method is not available on db");const a=n.getConfig(),s=a.rotateCommitLabel??!1;st=n.getCommits();const i=n.getBranchesAsObjArray();dt=n.getDirection();const c=$(`[id="${r}"]`),{look:d,theme:p,themeVariables:y}=m(),{useGradient:f,gradientStart:x,gradientStop:u,filterColor:b}=y;if(f){const t=c.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("stop").attr("offset","0%").attr("stop-color",x).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color",u).attr("stop-opacity",1)}"neo"===d&&tt.has(p??"")&&c.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",b);let w=0;i.forEach((t,r)=>{const e=$t(t.name),o=c.append("g"),n=o.insert("g").attr("class","branchLabel"),a=n.insert("g").attr("class","label branch-label");a.node()?.appendChild(e);const i=e.getBBox();w=Rt(t.name,w,r,i,s),a.remove(),n.remove(),o.remove()}),Ct(c,st,!1,a),a.showBranches&&It(c,i,a,r),vt(c,st),Ct(c,st,!0,a),l.insertTitle(c,"gitTitleText",a.titleTopMargin??0,n.getDiagramTitle()),g(void 0,c,a.diagramPadding,a.useMaxWidth)},"draw")},Ot=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),At=new Set(["redux-color","redux-dark-color"]),Gt=new Set(["neo","neo-dark"]),St=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),Wt=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),Ht=e(t=>{const{svgId:r}=t;let e="";if(t.useGradient&&r)for(let o=0;o<t.THEME_COLOR_LIMIT;o++)e+=`\n .label${o} { fill: ${t.mainBkg}; stroke: url(${r}-gradient); stroke-width: ${t.strokeWidth};}\n `;return e},"genGitGraphGradient"),jt=e(t=>{const r=d(),{theme:e,themeVariables:o}=r,{borderColorArray:n}=o,a=Ot.has(e);if(Gt.has(e)){let r="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)if(0===e)r+=`\n .branch-label${e} { fill: ${t.nodeBorder};}\n .commit${e} { stroke: ${t.nodeBorder}; }\n .commit-highlight${e} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }\n .arrow${e} { stroke: ${t.nodeBorder}; }\n .commit-bullets { fill: ${t.nodeBorder}; }\n .commit-cherry-pick${e} { stroke: ${t.nodeBorder}; }\n ${Ht(t)}`;else{const o=e%8;r+=`\n .branch-label${e} { fill: ${t["gitBranchLabel"+o]}; }\n .commit${e} { stroke: ${t["git"+o]}; fill: ${t["git"+o]}; }\n .commit-highlight${e} { stroke: ${t["gitInv"+o]}; fill: ${t["gitInv"+o]}; }\n .arrow${e} { stroke: ${t["git"+o]}; }\n `}return r}if(At.has(e)){let r="";for(let o=0;o<t.THEME_COLOR_LIMIT;o++)if(0===o)r+=`\n .branch-label${o} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }\n .commit${o} { stroke: ${t.nodeBorder}; }\n .commit-highlight${o} { stroke: ${t.nodeBorder}; fill: ${t.mainBkg}; }\n .label${o} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${a?`font-weight:${t.noteFontWeight}`:""} }\n .arrow${o} { stroke: ${t.nodeBorder}; }\n .commit-bullets { fill: ${t.nodeBorder}; }\n `;else{const s=o%n.length;r+=`\n .branch-label${o} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }\n .commit${o} { stroke: ${n[s]}; fill: ${n[s]}; }\n .commit-highlight${o} { stroke: ${n[s]}; fill: ${n[s]}; }\n .label${o} { fill: ${St.has(e)?t.mainBkg:n[s]}; stroke: ${n[s]}; stroke-width: ${t.strokeWidth}; }\n .arrow${o} { stroke: ${n[s]}; }\n `}return r}{let r="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)r+=`\n .branch-label${e} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }\n .commit${e} { stroke: ${t.nodeBorder}; }\n .commit-highlight${e} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }\n .label${e} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${a?`font-weight:${t.noteFontWeight}`:""}}\n .arrow${e} { stroke: ${t.nodeBorder}; }\n .commit-bullets { fill: ${t.nodeBorder}; }\n .commit-cherry-pick${e} { stroke: ${t.nodeBorder}; }\n `;return r}},"genColor"),qt=e(t=>`${Array.from({length:t.THEME_COLOR_LIMIT},(t,r)=>r).map(r=>{const e=r%8;return`\n .branch-label${r} { fill: ${t["gitBranchLabel"+e]}; }\n .commit${r} { stroke: ${t["git"+e]}; fill: ${t["git"+e]}; }\n .commit-highlight${r} { stroke: ${t["gitInv"+e]}; fill: ${t["gitInv"+e]}; }\n .label${r} { fill: ${t["git"+e]}; }\n .arrow${r} { stroke: ${t["git"+e]}; }\n `}).join("\n")}`,"normalTheme"),_t={parser:Q,db:D,renderer:Pt,styles:e(t=>{const r=d(),{theme:e}=r,o=Wt.has(e);return`\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n \n ${o?jt(t):qt(t)}\n\n .branch {\n stroke-width: ${t.strokeWidth};\n stroke: ${t.commitLineColor??t.lineColor};\n stroke-dasharray: ${o?"4 2":"2"};\n }\n .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${o?t.nodeBorder:t.commitLabelColor}; ${o?`font-weight:${t.noteFontWeight};`:""}}\n .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${o?"transparent":t.commitLabelBackground}; opacity: ${o?"":.5}; }\n .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}\n .tag-label-bkg { fill: ${o?t.mainBkg:t.tagLabelBackground}; stroke: ${o?t.nodeBorder:t.tagLabelBorder}; ${o?`filter:${t.dropShadow}`:""} }\n .tag-hole { fill: ${t.textColor}; }\n\n .commit-merge {\n stroke: ${o?t.mainBkg:t.primaryColor};\n fill: ${o?t.mainBkg:t.primaryColor};\n }\n .commit-reverse {\n stroke: ${o?t.mainBkg:t.primaryColor};\n fill: ${o?t.mainBkg:t.primaryColor};\n stroke-width: ${o?t.strokeWidth:3};\n }\n .commit-highlight-outer {\n }\n .commit-highlight-inner {\n stroke: ${o?t.mainBkg:t.primaryColor};\n fill: ${o?t.mainBkg:t.primaryColor};\n }\n\n .arrow {\n /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */\n stroke-width: ${Ot.has(e)?t.strokeWidth:8};\n stroke-linecap: round;\n fill: none\n }\n .gitTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n`},"getStyles")};export{_t as diagram};
|
|
1
|
+
import{I as t}from"./chunk-2Q5K7J3B-CkVdI1_G.js";import{p as r}from"./chunk-JWPE2WC7-CZAbFhxm.js";import{_ as e,p as o,o as n,s as a,g as s,a as i,b as c,z as d,l as h,d as $,c as m,y as l,A as g,q as p,k as y,B as f,D as x,E as u}from"./mermaid.core-DKLhQHMi.js";import{p as b}from"./cynefin-VYW2F7L2-CPV5HP8b.js";import"./index-CTpWXHK5.js";import"./RemoteLifeOSBlock-CwM5U04N.js";import"./index-ofOCAr04.js";import"./index-B5px1ls4.js";import"./file-editor-index-C6CU7Fik.js";import"./App-DHM2JpIe.js";import"./chevron-up-BvhbPeN2.js";import"./__vite-browser-external-2447137e-Ck9f6uYD.js";import"./purify.es-BNLkGfTg.js";import"./marked.esm-BBjA1da9.js";var w={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},k=x.gitGraph,B=e(()=>f({...k,...d().gitGraph}),"getConfig"),E=new t(()=>{const t=B(),r=t.mainBranchName,e=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:e}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function C(){return u({length:7})}function L(t,r){const e=Object.create(null);return t.reduce((t,o)=>{const n=r(o);return e[n]||(e[n]=!0,t.push(o)),t},[])}e(C,"getID"),e(L,"uniqBy");var T=e(function(t){E.records.direction=t},"setDirection"),M=e(function(t){h.debug("options str",t),t=t?.trim(),t=t||"{}";try{E.records.options=JSON.parse(t)}catch(r){h.error("error while parsing gitGraph options",r.message)}},"setOptions"),v=e(function(){return E.records.options},"getOptions"),I=e(function(t){let r=t.msg,e=t.id;const o=t.type;let n=t.tags;h.info("commit",r,e,o,n),h.debug("Entering commit:",r,e,o,n);const a=B();e=y.sanitizeText(e,a),r=y.sanitizeText(r,a),n=n?.map(t=>y.sanitizeText(t,a));const s={id:e||E.records.seq+"-"+C(),message:r,seq:E.records.seq++,type:o??w.NORMAL,tags:n??[],parents:null==E.records.head?[]:[E.records.head.id],branch:E.records.currBranch};E.records.head=s,h.info("main branch",a.mainBranchName),E.records.commits.has(s.id)&&h.warn(`Commit ID ${s.id} already exists`),E.records.commits.set(s.id,s),E.records.branches.set(E.records.currBranch,s.id),h.debug("in pushCommit "+s.id)},"commit"),R=e(function(t){let r=t.name;const e=t.order;if(r=y.sanitizeText(r,B()),E.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);E.records.branches.set(r,null!=E.records.head?E.records.head.id:null),E.records.branchConfig.set(r,{name:r,order:e}),A(r),h.debug("in createBranch")},"branch"),P=e(t=>{let r=t.branch,e=t.id;const o=t.type,n=t.tags,a=B();r=y.sanitizeText(r,a),e&&(e=y.sanitizeText(e,a));const s=E.records.branches.get(E.records.currBranch),i=E.records.branches.get(r),c=s?E.records.commits.get(s):void 0,d=i?E.records.commits.get(i):void 0;if(c&&d&&c.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(E.records.currBranch===r){const t=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},t}if(void 0===c||!c){const t=new Error(`Incorrect usage of "merge". Current branch (${E.records.currBranch})has no commits`);throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},t}if(!E.records.branches.has(r)){const t=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},t}if(void 0===d||!d){const t=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},t}if(c===d){const t=new Error('Incorrect usage of "merge". Both branches have same head');throw t.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},t}if(e&&E.records.commits.has(e)){const t=new Error('Incorrect usage of "merge". Commit with id:'+e+" already exists, use different custom id");throw t.hash={text:`merge ${r} ${e} ${o} ${n?.join(" ")}`,token:`merge ${r} ${e} ${o} ${n?.join(" ")}`,expected:[`merge ${r} ${e}_UNIQUE ${o} ${n?.join(" ")}`]},t}const $=i||"",m={id:e||`${E.records.seq}-${C()}`,message:`merged branch ${r} into ${E.records.currBranch}`,seq:E.records.seq++,parents:null==E.records.head?[]:[E.records.head.id,$],branch:E.records.currBranch,type:w.MERGE,customType:o,customId:!!e,tags:n??[]};E.records.head=m,E.records.commits.set(m.id,m),E.records.branches.set(E.records.currBranch,m.id),h.debug(E.records.branches),h.debug("in mergeBranch")},"merge"),O=e(function(t){let r=t.id,e=t.targetId,o=t.tags,n=t.parent;h.debug("Entering cherryPick:",r,e,o);const a=B();if(r=y.sanitizeText(r,a),e=y.sanitizeText(e,a),o=o?.map(t=>y.sanitizeText(t,a)),n=y.sanitizeText(n,a),!r||!E.records.commits.has(r)){const t=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const s=E.records.commits.get(r);if(void 0===s||!s)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(n&&(!Array.isArray(s.parents)||!s.parents.includes(n)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const i=s.branch;if(s.type===w.MERGE&&!n)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!e||!E.records.commits.has(e)){if(i===E.records.currBranch){const t=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const t=E.records.branches.get(E.records.currBranch);if(void 0===t||!t){const t=new Error(`Incorrect usage of "cherry-pick". Current branch (${E.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const a=E.records.commits.get(t);if(void 0===a||!a){const t=new Error(`Incorrect usage of "cherry-pick". Current branch (${E.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${r} ${e}`,token:`cherryPick ${r} ${e}`,expected:["cherry-pick abc"]},t}const c={id:E.records.seq+"-"+C(),message:`cherry-picked ${s?.message} into ${E.records.currBranch}`,seq:E.records.seq++,parents:null==E.records.head?[]:[E.records.head.id,s.id],branch:E.records.currBranch,type:w.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${s.id}${s.type===w.MERGE?`|parent:${n}`:""}`]};E.records.head=c,E.records.commits.set(c.id,c),E.records.branches.set(E.records.currBranch,c.id),h.debug(E.records.branches),h.debug("in cherryPick")}},"cherryPick"),A=e(function(t){if(t=y.sanitizeText(t,B()),!E.records.branches.has(t)){const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}{E.records.currBranch=t;const r=E.records.branches.get(E.records.currBranch);E.records.head=void 0!==r&&r?E.records.commits.get(r)??null:null}},"checkout");function G(t,r,e){const o=t.indexOf(r);-1===o?t.push(e):t.splice(o,1,e)}function S(t){const r=t.reduce((t,r)=>t.seq>r.seq?t:r,t[0]);let e="";t.forEach(function(t){e+=t===r?"\t*":"\t|"});const o=[e,r.id,r.seq];for(const n in E.records.branches)E.records.branches.get(n)===r.id&&o.push(n);if(h.debug(o.join(" ")),r.parents&&2==r.parents.length&&r.parents[0]&&r.parents[1]){const e=E.records.commits.get(r.parents[0]);G(t,r,e),r.parents[1]&&t.push(E.records.commits.get(r.parents[1]))}else{if(0==r.parents.length)return;if(r.parents[0]){const e=E.records.commits.get(r.parents[0]);G(t,r,e)}}S(t=L(t,t=>t.id))}e(G,"upsert"),e(S,"prettyPrintCommitHistory");var W=e(function(){h.debug(E.records.commits),S([z()[0]])},"prettyPrint"),H=e(function(){E.reset(),p()},"clear"),j=e(function(){return[...E.records.branchConfig.values()].map((t,r)=>null!==t.order&&void 0!==t.order?t:{...t,order:parseFloat(`0.${r}`)}).sort((t,r)=>(t.order??0)-(r.order??0)).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),q=e(function(){return E.records.branches},"getBranches"),_=e(function(){return E.records.commits},"getCommits"),z=e(function(){const t=[...E.records.commits.values()];return t.forEach(function(t){h.debug(t.id)}),t.sort((t,r)=>t.seq-r.seq),t},"getCommitsArray"),D={commitType:w,getConfig:B,setDirection:T,setOptions:M,getOptions:v,commit:I,branch:R,merge:P,cherryPick:O,checkout:A,prettyPrint:W,clear:H,getBranchesAsObjArray:j,getBranches:q,getCommits:_,getCommitsArray:z,getCurrentBranch:e(function(){return E.records.currBranch},"getCurrentBranch"),getDirection:e(function(){return E.records.direction},"getDirection"),getHead:e(function(){return E.records.head},"getHead"),setAccTitle:c,getAccTitle:i,getAccDescription:s,setAccDescription:a,setDiagramTitle:n,getDiagramTitle:o},F=e((t,e)=>{r(t,e),t.dir&&e.setDirection(t.dir);for(const r of t.statements)N(r,e)},"populate"),N=e((t,r)=>{const o={Commit:e(t=>r.commit(K(t)),"Commit"),Branch:e(t=>r.branch(V(t)),"Branch"),Merge:e(t=>r.merge(Y(t)),"Merge"),Checkout:e(t=>r.checkout(U(t)),"Checkout"),CherryPicking:e(t=>r.cherryPick(J(t)),"CherryPicking")}[t.$type];o?o(t):h.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),K=e(t=>({id:t.id,msg:t.message??"",type:void 0!==t.type?w[t.type]:w.NORMAL,tags:t.tags??void 0}),"parseCommit"),V=e(t=>({name:t.name,order:t.order??0}),"parseBranch"),Y=e(t=>({branch:t.branch,id:t.id??"",type:void 0!==t.type?w[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),U=e(t=>t.branch,"parseCheckout"),J=e(t=>({id:t.id,targetId:"",tags:0===t.tags?.length?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),Q={parse:e(async t=>{const r=await b("gitGraph",t);h.debug(r),F(r,D)},"parse")},X=10,Z=40,tt=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),rt=new Set(["redux-color","redux-dark-color"]),et=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),ot=e((t,r,e=!1)=>e&&t>0?(t-1)%(r-1)+1:t%r,"calcColorIndex"),nt=new Map,at=new Map,st=new Map,it=[],ct=0,dt="LR",ht=e(()=>{nt.clear(),at.clear(),st.clear(),ct=0,it=[],dt="LR"},"clear"),$t=e(t=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return("string"==typeof t?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=t.trim(),r.appendChild(e)}),r},"drawText"),mt=e(t=>{let r,o,n;return"BT"===dt?(o=e((t,r)=>t<=r,"comparisonFunc"),n=1/0):(o=e((t,r)=>t>=r,"comparisonFunc"),n=0),t.forEach(t=>{const e="TB"===dt||"BT"==dt?at.get(t)?.y:at.get(t)?.x;void 0!==e&&o(e,n)&&(r=t,n=e)}),r},"findClosestParent"),lt=e(t=>{let r="",e=1/0;return t.forEach(t=>{const o=at.get(t).y;o<=e&&(r=t,e=o)}),r||void 0},"findClosestParentBT"),gt=e((t,r,e)=>{let o=e,n=e;const a=[];t.forEach(t=>{const e=r.get(t);if(!e)throw new Error(`Commit not found for key ${t}`);e.parents.length?(o=yt(e),n=Math.max(o,n)):a.push(e),ft(e,o)}),o=n,a.forEach(t=>{xt(t,o,e)}),t.forEach(t=>{const e=r.get(t);if(e?.parents.length){const t=lt(e.parents);o=at.get(t).y-Z,o<=n&&(n=o);const r=nt.get(e.branch).pos,a=o-X;at.set(e.id,{x:r,y:a})}})},"setParallelBTPos"),pt=e(t=>{const r=mt(t.parents.filter(t=>null!==t));if(!r)throw new Error(`Closest parent not found for commit ${t.id}`);const e=at.get(r)?.y;if(void 0===e)throw new Error(`Closest parent position not found for commit ${t.id}`);return e},"findClosestParentPos"),yt=e(t=>pt(t)+Z,"calculateCommitPosition"),ft=e((t,r)=>{const e=nt.get(t.branch);if(!e)throw new Error(`Branch not found for commit ${t.id}`);const o=e.pos,n=r+X;return at.set(t.id,{x:o,y:n}),{x:o,y:n}},"setCommitPosition"),xt=e((t,r,e)=>{const o=nt.get(t.branch);if(!o)throw new Error(`Branch not found for commit ${t.id}`);const n=r+e,a=o.pos;at.set(t.id,{x:a,y:n})},"setRootPosition"),ut=e((t,r,e,o,n,a)=>{const{theme:s}=m(),i=tt.has(s??""),c=rt.has(s??""),d=et.has(s??"");if(a===w.HIGHLIGHT)t.append("rect").attr("x",e.x-10+(i?3:0)).attr("y",e.y-10+(i?3:0)).attr("width",i?14:20).attr("height",i?14:20).attr("class",`commit ${r.id} commit-highlight${ot(n,8,c)} ${o}-outer`),t.append("rect").attr("x",e.x-6+(i?2:0)).attr("y",e.y-6+(i?2:0)).attr("width",i?8:12).attr("height",i?8:12).attr("class",`commit ${r.id} commit${ot(n,8,c)} ${o}-inner`);else if(a===w.CHERRY_PICK)t.append("circle").attr("cx",e.x).attr("cy",e.y).attr("r",i?7:10).attr("class",`commit ${r.id} ${o}`),t.append("circle").attr("cx",e.x-3).attr("cy",e.y+2).attr("r",i?2.5:2.75).attr("fill",d?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),t.append("circle").attr("cx",e.x+3).attr("cy",e.y+2).attr("r",i?2.5:2.75).attr("fill",d?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),t.append("line").attr("x1",e.x+3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke",d?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),t.append("line").attr("x1",e.x-3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke",d?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`);else{const s=t.append("circle");if(s.attr("cx",e.x),s.attr("cy",e.y),s.attr("r",i?7:10),s.attr("class",`commit ${r.id} commit${ot(n,8,c)}`),a===w.MERGE){const a=t.append("circle");a.attr("cx",e.x),a.attr("cy",e.y),a.attr("r",i?5:6),a.attr("class",`commit ${o} ${r.id} commit${ot(n,8,c)}`)}if(a===w.REVERSE){const a=i?4:5;t.append("path").attr("d",`M ${e.x-a},${e.y-a}L${e.x+a},${e.y+a}M${e.x-a},${e.y+a}L${e.x+a},${e.y-a}`).attr("class",`commit ${o} ${r.id} commit${ot(n,8,c)}`)}}},"drawCommitBullet"),bt=e((t,r,e,o,n)=>{if(r.type!==w.CHERRY_PICK&&(r.customId&&r.type===w.MERGE||r.type!==w.MERGE)&&n.showCommitLabel){const a=t.append("g"),s=a.insert("rect").attr("class","commit-label-bkg"),i=a.append("text").attr("x",o).attr("y",e.y+25).attr("class","commit-label").text(r.id),c=i.node()?.getBBox();if(c&&(s.attr("x",e.posWithOffset-c.width/2-2).attr("y",e.y+13.5).attr("width",c.width+4).attr("height",c.height+4),"TB"===dt||"BT"===dt?(s.attr("x",e.x-(c.width+16+5)).attr("y",e.y-12),i.attr("x",e.x-(c.width+16)).attr("y",e.y+c.height-12)):i.attr("x",e.posWithOffset-c.width/2),n.rotateCommitLabel))if("TB"===dt||"BT"===dt)i.attr("transform","rotate(-45, "+e.x+", "+e.y+")"),s.attr("transform","rotate(-45, "+e.x+", "+e.y+")");else{const t=-7.5-(c.width+10)/25*9.5,r=10+c.width/25*8.5;a.attr("transform","translate("+t+", "+r+") rotate(-45, "+o+", "+e.y+")")}}},"drawCommitLabel"),wt=e((t,r,e,o)=>{if(r.tags.length>0){let n=0,a=0,s=0;const i=[];for(const o of r.tags.reverse()){const r=t.insert("polygon"),c=t.append("circle"),d=t.append("text").attr("y",e.y-16-n).attr("class","tag-label").text(o),h=d.node()?.getBBox();if(!h)throw new Error("Tag bbox not found");a=Math.max(a,h.width),s=Math.max(s,h.height),d.attr("x",e.posWithOffset-h.width/2),i.push({tag:d,hole:c,rect:r,yOffset:n}),n+=20}for(const{tag:t,hole:r,rect:c,yOffset:d}of i){const n=s/2,i=e.y-19.2-d;if(c.attr("class","tag-label-bkg").attr("points",`\n ${o-a/2-2},${i+2} \n ${o-a/2-2},${i-2}\n ${e.posWithOffset-a/2-4},${i-n-2}\n ${e.posWithOffset+a/2+4},${i-n-2}\n ${e.posWithOffset+a/2+4},${i+n+2}\n ${e.posWithOffset-a/2-4},${i+n+2}`),r.attr("cy",i).attr("cx",o-a/2+2).attr("r",1.5).attr("class","tag-hole"),"TB"===dt||"BT"===dt){const s=o+d;c.attr("class","tag-label-bkg").attr("points",`\n ${e.x},${s+2}\n ${e.x},${s-2}\n ${e.x+X},${s-n-2}\n ${e.x+X+a+4},${s-n-2}\n ${e.x+X+a+4},${s+n+2}\n ${e.x+X},${s+n+2}`).attr("transform","translate(12,12) rotate(45, "+e.x+","+o+")"),r.attr("cx",e.x+2).attr("cy",s).attr("transform","translate(12,12) rotate(45, "+e.x+","+o+")"),t.attr("x",e.x+5).attr("y",s+3).attr("transform","translate(14,14) rotate(45, "+e.x+","+o+")")}}}},"drawCommitTags"),kt=e(t=>{switch(t.customType??t.type){case w.NORMAL:return"commit-normal";case w.REVERSE:return"commit-reverse";case w.HIGHLIGHT:return"commit-highlight";case w.MERGE:return"commit-merge";case w.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),Bt=e((t,r,e,o)=>{const n={x:0,y:0};if(!(t.parents.length>0))return"TB"===r?30:"BT"===r?(o.get(t.id)??n).y-Z:0;{const e=mt(t.parents);if(e){const a=o.get(e)??n;return"TB"===r?a.y+Z:"BT"===r?(o.get(t.id)??n).y-Z:a.x+Z}}return 0},"calculatePosition"),Et=e((t,r,e)=>{const o="BT"===dt&&e?r:r+X,n=nt.get(t.branch)?.pos,a="TB"===dt||"BT"===dt?nt.get(t.branch)?.pos:o;if(void 0===a||void 0===n)throw new Error(`Position were undefined for commit ${t.id}`);const s=tt.has(m().theme??"");return{x:a,y:"TB"===dt||"BT"===dt?o:n+(s?7:-2),posWithOffset:o}},"getCommitPosition"),Ct=e((t,r,o,n)=>{const a=t.append("g").attr("class","commit-bullets"),s=t.append("g").attr("class","commit-labels");let i="TB"===dt||"BT"===dt?30:0;const c=[...r.keys()],d=n.parallelCommits??!1,h=e((t,e)=>{const o=r.get(t)?.seq,n=r.get(e)?.seq;return void 0!==o&&void 0!==n?o-n:0},"sortKeys");let $=c.sort(h);"BT"===dt&&(d&>($,r,i),$=$.reverse()),$.forEach(t=>{const e=r.get(t);if(!e)throw new Error(`Commit not found for key ${t}`);d&&(i=Bt(e,dt,i,at));const c=Et(e,i,d);if(o){const t=kt(e),r=e.customType??e.type,o=nt.get(e.branch)?.index??0;ut(a,e,c,t,o,r),bt(s,e,c,i,n),wt(s,e,c,i)}"TB"===dt||"BT"===dt?at.set(e.id,{x:c.x,y:c.posWithOffset}):at.set(e.id,{x:c.posWithOffset,y:c.y}),i="BT"===dt&&d?i+Z:i+Z+X,i>ct&&(ct=i)})},"drawCommits"),Lt=e((t,r,o,n,a)=>{const s=("TB"===dt||"BT"===dt?o.x<n.x:o.y<n.y)?r.branch:t.branch,i=e(t=>t.branch===s,"isOnBranchToGetCurve"),c=e(e=>e.seq>t.seq&&e.seq<r.seq,"isBetweenCommits");return[...a.values()].some(t=>c(t)&&i(t))},"shouldRerouteArrow"),Tt=e((t,r,e=0)=>{const o=t+Math.abs(t-r)/2;if(e>5)return o;if(it.every(t=>Math.abs(t-o)>=10))return it.push(o),o;const n=Math.abs(t-r);return Tt(t,r-n/5,e+1)},"findLane"),Mt=e((t,r,e,o)=>{const{theme:n}=m(),a=rt.has(n??""),s=at.get(r.id),i=at.get(e.id);if(void 0===s||void 0===i)throw new Error(`Commit positions not found for commits ${r.id} and ${e.id}`);const c=Lt(r,e,s,i,o);let d,h="",$="",l=0,g=0,p=nt.get(e.branch)?.index;if(e.type===w.MERGE&&r.id!==e.parents[0]&&(p=nt.get(r.branch)?.index),c){h="A 10 10, 0, 0, 0,",$="A 10 10, 0, 0, 1,",l=10,g=10;const t=s.y<i.y?Tt(s.y,i.y):Tt(i.y,s.y),e=s.x<i.x?Tt(s.x,i.x):Tt(i.x,s.x);"TB"===dt?s.x<i.x?d=`M ${s.x} ${s.y} L ${e-l} ${s.y} ${$} ${e} ${s.y+g} L ${e} ${i.y-l} ${h} ${e+g} ${i.y} L ${i.x} ${i.y}`:(p=nt.get(r.branch)?.index,d=`M ${s.x} ${s.y} L ${e+l} ${s.y} ${h} ${e} ${s.y+g} L ${e} ${i.y-l} ${$} ${e-g} ${i.y} L ${i.x} ${i.y}`):"BT"===dt?s.x<i.x?d=`M ${s.x} ${s.y} L ${e-l} ${s.y} ${h} ${e} ${s.y-g} L ${e} ${i.y+l} ${$} ${e+g} ${i.y} L ${i.x} ${i.y}`:(p=nt.get(r.branch)?.index,d=`M ${s.x} ${s.y} L ${e+l} ${s.y} ${$} ${e} ${s.y-g} L ${e} ${i.y+l} ${h} ${e-g} ${i.y} L ${i.x} ${i.y}`):s.y<i.y?d=`M ${s.x} ${s.y} L ${s.x} ${t-l} ${h} ${s.x+g} ${t} L ${i.x-l} ${t} ${$} ${i.x} ${t+g} L ${i.x} ${i.y}`:(p=nt.get(r.branch)?.index,d=`M ${s.x} ${s.y} L ${s.x} ${t+l} ${$} ${s.x+g} ${t} L ${i.x-l} ${t} ${h} ${i.x} ${t-g} L ${i.x} ${i.y}`)}else h="A 20 20, 0, 0, 0,",$="A 20 20, 0, 0, 1,",l=20,g=20,"TB"===dt?(s.x<i.x&&(d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${s.x} ${s.y} L ${s.x} ${i.y-l} ${h} ${s.x+g} ${i.y} L ${i.x} ${i.y}`:`M ${s.x} ${s.y} L ${i.x-l} ${s.y} ${$} ${i.x} ${s.y+g} L ${i.x} ${i.y}`),s.x>i.x&&(h="A 20 20, 0, 0, 0,",$="A 20 20, 0, 0, 1,",l=20,g=20,d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${s.x} ${s.y} L ${s.x} ${i.y-l} ${$} ${s.x-g} ${i.y} L ${i.x} ${i.y}`:`M ${s.x} ${s.y} L ${i.x+l} ${s.y} ${h} ${i.x} ${s.y+g} L ${i.x} ${i.y}`),s.x===i.x&&(d=`M ${s.x} ${s.y} L ${i.x} ${i.y}`)):"BT"===dt?(s.x<i.x&&(d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${s.x} ${s.y} L ${s.x} ${i.y+l} ${$} ${s.x+g} ${i.y} L ${i.x} ${i.y}`:`M ${s.x} ${s.y} L ${i.x-l} ${s.y} ${h} ${i.x} ${s.y-g} L ${i.x} ${i.y}`),s.x>i.x&&(h="A 20 20, 0, 0, 0,",$="A 20 20, 0, 0, 1,",l=20,g=20,d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${s.x} ${s.y} L ${s.x} ${i.y+l} ${h} ${s.x-g} ${i.y} L ${i.x} ${i.y}`:`M ${s.x} ${s.y} L ${i.x+l} ${s.y} ${$} ${i.x} ${s.y-g} L ${i.x} ${i.y}`),s.x===i.x&&(d=`M ${s.x} ${s.y} L ${i.x} ${i.y}`)):(s.y<i.y&&(d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${s.x} ${s.y} L ${i.x-l} ${s.y} ${$} ${i.x} ${s.y+g} L ${i.x} ${i.y}`:`M ${s.x} ${s.y} L ${s.x} ${i.y-l} ${h} ${s.x+g} ${i.y} L ${i.x} ${i.y}`),s.y>i.y&&(d=e.type===w.MERGE&&r.id!==e.parents[0]?`M ${s.x} ${s.y} L ${i.x-l} ${s.y} ${h} ${i.x} ${s.y-g} L ${i.x} ${i.y}`:`M ${s.x} ${s.y} L ${s.x} ${i.y+l} ${$} ${s.x+g} ${i.y} L ${i.x} ${i.y}`),s.y===i.y&&(d=`M ${s.x} ${s.y} L ${i.x} ${i.y}`));if(void 0===d)throw new Error("Line definition not found");t.append("path").attr("d",d).attr("class","arrow arrow"+ot(p,8,a))},"drawArrow"),vt=e((t,r)=>{const e=t.append("g").attr("class","commit-arrows");[...r.keys()].forEach(t=>{const o=r.get(t);o.parents&&o.parents.length>0&&o.parents.forEach(t=>{Mt(e,r.get(t),o,r)})})},"drawArrows"),It=e((t,r,e,o)=>{const{look:n,theme:a,themeVariables:s}=m(),{dropShadow:i,THEME_COLOR_LIMIT:c}=s,d=tt.has(a??""),h=rt.has(a??""),$=t.append("g");r.forEach((t,r)=>{const a=ot(r,d?c:8,h),s=nt.get(t.name)?.pos;if(void 0===s)throw new Error(`Position not found for branch ${t.name}`);const m="TB"===dt||"BT"===dt?s:d?s+6+1:s-2,l=$.append("line");l.attr("x1",0),l.attr("y1",m),l.attr("x2",ct),l.attr("y2",m),l.attr("class","branch branch"+a),"TB"===dt?(l.attr("y1",30),l.attr("x1",s),l.attr("y2",ct),l.attr("x2",s)):"BT"===dt&&(l.attr("y1",ct),l.attr("x1",s),l.attr("y2",30),l.attr("x2",s)),it.push(m);const g=t.name,p=$t(g),y=$.insert("rect"),f=$.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+a);f.node().appendChild(p);const x=p.getBBox(),u=d?0:4,b=d?16:0,w=d?12:0;"neo"===n&&y.attr("data-look","neo"),y.attr("class","branchLabelBkg label"+a).attr("style","neo"===n?`filter:${d?`url(#${o}-drop-shadow)`:i}`:"").attr("rx",u).attr("ry",u).attr("x",-x.width-4-(!0===e.rotateCommitLabel?30:0)).attr("y",-x.height/2+10).attr("width",x.width+18+b).attr("height",x.height+4+w),f.attr("transform","translate("+(-x.width-14-(!0===e.rotateCommitLabel?30:0)+b/2)+", "+(m-x.height/2-2)+")"),"TB"===dt?(y.attr("x",s-x.width/2-10).attr("y",0),f.attr("transform","translate("+(s-x.width/2-5)+", 0)"),d&&(y.attr("transform",`translate(${-b/2-3}, ${-w-10})`),f.attr("transform","translate("+(s-x.width/2-5)+", "+(2*-w+7)+")"))):"BT"===dt?(y.attr("x",s-x.width/2-10).attr("y",ct),f.attr("transform","translate("+(s-x.width/2-5)+", "+ct+")"),d&&(y.attr("transform",`translate(${-b/2-3}, ${w+10})`),f.attr("transform","translate("+(s-x.width/2-5)+", "+(ct+2*w+4)+")"))):y.attr("transform","translate(-19, "+(m-12-w/2)+")")})},"drawBranches"),Rt=e(function(t,r,e,o,n){return nt.set(t,{pos:r,index:e}),r+(50+(n?40:0)+("TB"===dt||"BT"===dt?o.width/2:0))},"setBranchPosition"),Pt={draw:e(function(t,r,e,o){ht(),h.debug("in gitgraph renderer",t+"\n","id:",r,e);const n=o.db;if(!n.getConfig)return void h.error("getConfig method is not available on db");const a=n.getConfig(),s=a.rotateCommitLabel??!1;st=n.getCommits();const i=n.getBranchesAsObjArray();dt=n.getDirection();const c=$(`[id="${r}"]`),{look:d,theme:p,themeVariables:y}=m(),{useGradient:f,gradientStart:x,gradientStop:u,filterColor:b}=y;if(f){const t=c.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("stop").attr("offset","0%").attr("stop-color",x).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color",u).attr("stop-opacity",1)}"neo"===d&&tt.has(p??"")&&c.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",b);let w=0;i.forEach((t,r)=>{const e=$t(t.name),o=c.append("g"),n=o.insert("g").attr("class","branchLabel"),a=n.insert("g").attr("class","label branch-label");a.node()?.appendChild(e);const i=e.getBBox();w=Rt(t.name,w,r,i,s),a.remove(),n.remove(),o.remove()}),Ct(c,st,!1,a),a.showBranches&&It(c,i,a,r),vt(c,st),Ct(c,st,!0,a),l.insertTitle(c,"gitTitleText",a.titleTopMargin??0,n.getDiagramTitle()),g(void 0,c,a.diagramPadding,a.useMaxWidth)},"draw")},Ot=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),At=new Set(["redux-color","redux-dark-color"]),Gt=new Set(["neo","neo-dark"]),St=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),Wt=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),Ht=e(t=>{const{svgId:r}=t;let e="";if(t.useGradient&&r)for(let o=0;o<t.THEME_COLOR_LIMIT;o++)e+=`\n .label${o} { fill: ${t.mainBkg}; stroke: url(${r}-gradient); stroke-width: ${t.strokeWidth};}\n `;return e},"genGitGraphGradient"),jt=e(t=>{const r=d(),{theme:e,themeVariables:o}=r,{borderColorArray:n}=o,a=Ot.has(e);if(Gt.has(e)){let r="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)if(0===e)r+=`\n .branch-label${e} { fill: ${t.nodeBorder};}\n .commit${e} { stroke: ${t.nodeBorder}; }\n .commit-highlight${e} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }\n .arrow${e} { stroke: ${t.nodeBorder}; }\n .commit-bullets { fill: ${t.nodeBorder}; }\n .commit-cherry-pick${e} { stroke: ${t.nodeBorder}; }\n ${Ht(t)}`;else{const o=e%8;r+=`\n .branch-label${e} { fill: ${t["gitBranchLabel"+o]}; }\n .commit${e} { stroke: ${t["git"+o]}; fill: ${t["git"+o]}; }\n .commit-highlight${e} { stroke: ${t["gitInv"+o]}; fill: ${t["gitInv"+o]}; }\n .arrow${e} { stroke: ${t["git"+o]}; }\n `}return r}if(At.has(e)){let r="";for(let o=0;o<t.THEME_COLOR_LIMIT;o++)if(0===o)r+=`\n .branch-label${o} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }\n .commit${o} { stroke: ${t.nodeBorder}; }\n .commit-highlight${o} { stroke: ${t.nodeBorder}; fill: ${t.mainBkg}; }\n .label${o} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${a?`font-weight:${t.noteFontWeight}`:""} }\n .arrow${o} { stroke: ${t.nodeBorder}; }\n .commit-bullets { fill: ${t.nodeBorder}; }\n `;else{const s=o%n.length;r+=`\n .branch-label${o} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }\n .commit${o} { stroke: ${n[s]}; fill: ${n[s]}; }\n .commit-highlight${o} { stroke: ${n[s]}; fill: ${n[s]}; }\n .label${o} { fill: ${St.has(e)?t.mainBkg:n[s]}; stroke: ${n[s]}; stroke-width: ${t.strokeWidth}; }\n .arrow${o} { stroke: ${n[s]}; }\n `}return r}{let r="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)r+=`\n .branch-label${e} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:""} }\n .commit${e} { stroke: ${t.nodeBorder}; }\n .commit-highlight${e} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }\n .label${e} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${a?`font-weight:${t.noteFontWeight}`:""}}\n .arrow${e} { stroke: ${t.nodeBorder}; }\n .commit-bullets { fill: ${t.nodeBorder}; }\n .commit-cherry-pick${e} { stroke: ${t.nodeBorder}; }\n `;return r}},"genColor"),qt=e(t=>`${Array.from({length:t.THEME_COLOR_LIMIT},(t,r)=>r).map(r=>{const e=r%8;return`\n .branch-label${r} { fill: ${t["gitBranchLabel"+e]}; }\n .commit${r} { stroke: ${t["git"+e]}; fill: ${t["git"+e]}; }\n .commit-highlight${r} { stroke: ${t["gitInv"+e]}; fill: ${t["gitInv"+e]}; }\n .label${r} { fill: ${t["git"+e]}; }\n .arrow${r} { stroke: ${t["git"+e]}; }\n `}).join("\n")}`,"normalTheme"),_t={parser:Q,db:D,renderer:Pt,styles:e(t=>{const r=d(),{theme:e}=r,o=Wt.has(e);return`\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n \n ${o?jt(t):qt(t)}\n\n .branch {\n stroke-width: ${t.strokeWidth};\n stroke: ${t.commitLineColor??t.lineColor};\n stroke-dasharray: ${o?"4 2":"2"};\n }\n .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${o?t.nodeBorder:t.commitLabelColor}; ${o?`font-weight:${t.noteFontWeight};`:""}}\n .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${o?"transparent":t.commitLabelBackground}; opacity: ${o?"":.5}; }\n .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}\n .tag-label-bkg { fill: ${o?t.mainBkg:t.tagLabelBackground}; stroke: ${o?t.nodeBorder:t.tagLabelBorder}; ${o?`filter:${t.dropShadow}`:""} }\n .tag-hole { fill: ${t.textColor}; }\n\n .commit-merge {\n stroke: ${o?t.mainBkg:t.primaryColor};\n fill: ${o?t.mainBkg:t.primaryColor};\n }\n .commit-reverse {\n stroke: ${o?t.mainBkg:t.primaryColor};\n fill: ${o?t.mainBkg:t.primaryColor};\n stroke-width: ${o?t.strokeWidth:3};\n }\n .commit-highlight-outer {\n }\n .commit-highlight-inner {\n stroke: ${o?t.mainBkg:t.primaryColor};\n fill: ${o?t.mainBkg:t.primaryColor};\n }\n\n .arrow {\n /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */\n stroke-width: ${Ot.has(e)?t.strokeWidth:8};\n stroke-linecap: round;\n fill: none\n }\n .gitTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n`},"getStyles")};export{_t as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{R as e,M as s,B as t}from"./mermaid-O7DHMXV3-Bq_tcKDI.js";import{r as a,j as i}from"./index-CTpWXHK5.js";import"./index-B5px1ls4.js";import"./index-ofOCAr04.js";import"./collectMessageImages-BHZAEp7l.js";import"./useMessageImage-CkBgO2_p.js";import"./App-DHM2JpIe.js";import"./MessageImage-L_caj_Dp.js";import"./index-CtwbNx5m.js";import"./index-BNl2LlC5.js";var r=({code:r,language:m,raw:o,className:g,startLine:l,...n})=>{let{shikiTheme:p}=a.useContext(e),d=s(),[j,u]=a.useState(o);return a.useEffect(()=>{if(!d)return void u(o);let e=d.highlight({code:r,language:m,themes:p},e=>{u(e)});e&&u(e)},[r,m,p,d,o]),i.jsx(t,{className:g,language:m,result:j,startLine:l,...n})};export{r as HighlightedCodeBlockBody};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e}from"./index-
|
|
1
|
+
import{h as e}from"./index-CTpWXHK5.js";async function a(e){const a=new Image;a.crossOrigin="anonymous",a.src=e,await a.decode();const i=document.createElement("canvas");i.width=a.naturalWidth,i.height=a.naturalHeight;const n=i.getContext("2d");if(!n)throw new Error("Canvas unavailable");return n.drawImage(a,0,0),await new Promise((e,a)=>i.toBlob(i=>i?e(i):a(new Error("Image conversion failed")),"image/png"))}async function i(i){const n=e().writeClipboardImage;n?await n(new Uint8Array(await(await a(i)).arrayBuffer())):await navigator.clipboard.write([new ClipboardItem({"image/png":a(i)})])}function n(e){return"en"===e?{title:"Image viewer",previous:"Previous image",next:"Next image",copy:"Copy image",copied:"Image copied",failed:"Could not copy image",open:"Open original in tab",close:"Close",unavailable:"Image unavailable"}:"zh-TW"===e?{title:"圖片檢視器",previous:"上一張",next:"下一張",copy:"複製圖片",copied:"圖片已複製",failed:"圖片複製失敗",open:"在 Tab 開啟原檔案",close:"關閉",unavailable:"無法載入圖片"}:{title:"图片查看器",previous:"上一张",next:"下一张",copy:"复制图片",copied:"图片已复制",failed:"图片复制失败",open:"在 Tab 打开原文件",close:"关闭",unavailable:"无法加载图片"}}export{n as i,i as w};
|