openwork-server 0.18.60 → 0.18.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/README.md +9 -2
  2. package/bin/openwork-server.mjs +1 -1
  3. package/bin/platform.mjs +7 -7
  4. package/dist/opencode-plugin-deps-1.18.30.tgz +0 -0
  5. package/dist/opencode-plugins/openwork-cloud-skills-v2.js +87 -41
  6. package/dist/opencode-plugins/openwork-context-v2.js +67 -35
  7. package/dist/opencode-plugins/openwork-gateway-quota-v2.js +187 -0
  8. package/dist/opencode-plugins/openwork-gateway-quota.js +232 -23
  9. package/dist/opencode-plugins/openwork-provider-sync-v2.js +85 -2
  10. package/dist/openwork-server.mjs +919 -333
  11. package/package.json +2 -2
  12. package/web/assets/{abnfDiagram-VCTEODGH-D0_4pXEx.js → abnfDiagram-VCTEODGH-DGCabXot.js} +1 -1
  13. package/web/assets/app-CkmqBm_1.css +32 -0
  14. package/web/assets/{app-BCXQnJUH.js → app-Cy3sY2K8.js} +435 -425
  15. package/web/assets/{arc-BSTwaImw.js → arc-OJTfUP9L.js} +1 -1
  16. package/web/assets/{architectureDiagram-5GKGNRK7-cXwF0iP0.js → architectureDiagram-5GKGNRK7-Ch0Zt81S.js} +1 -1
  17. package/web/assets/{artifact-code-view-CUXv3CYK.js → artifact-code-view-CSo8dBet.js} +1 -1
  18. package/web/assets/{artifact-spreadsheet-editor-CxhNYmjP.js → artifact-spreadsheet-editor-DG2AL4aO.js} +1 -1
  19. package/web/assets/{artifact-text-editor-k2TGQI-i.js → artifact-text-editor-BKs1cI6V.js} +1 -1
  20. package/web/assets/{blockDiagram-OSKFZWR5-Cl9p_z8u.js → blockDiagram-OSKFZWR5-Dur4PitI.js} +1 -1
  21. package/web/assets/{c4Diagram-7LVT6UL2-YQjnoUQ0.js → c4Diagram-7LVT6UL2-DN-qrh5o.js} +1 -1
  22. package/web/assets/channel-68fpiRG4.js +1 -0
  23. package/web/assets/{chunk-2Q5K7J3B-YZaSwlzj.js → chunk-2Q5K7J3B-BSmk0dam.js} +1 -1
  24. package/web/assets/{chunk-5VM5RSS4-BICC_wIw.js → chunk-5VM5RSS4-BwAmjLhK.js} +1 -1
  25. package/web/assets/{chunk-F27PBJKO-CBxmcmxs.js → chunk-F27PBJKO-DLKbY_DS.js} +1 -1
  26. package/web/assets/{chunk-HLEWEB6X-2h2z7zt8.js → chunk-HLEWEB6X-s4I3BuHN.js} +1 -1
  27. package/web/assets/{chunk-JWPE2WC7-BnAMOpXl.js → chunk-JWPE2WC7-LslAnaQK.js} +1 -1
  28. package/web/assets/{chunk-POPQ4Y6H-pvDYQBBM.js → chunk-POPQ4Y6H-e0_lKBGk.js} +1 -1
  29. package/web/assets/{chunk-SVP7TREG-QuKLl3v0.js → chunk-SVP7TREG-CBKOSsQl.js} +1 -1
  30. package/web/assets/{chunk-XXDRQBXY-4Bt9wCBO.js → chunk-XXDRQBXY-Bwqkh7ZD.js} +1 -1
  31. package/web/assets/{chunk-ZLD2IHE6-C_RSrkqU.js → chunk-ZLD2IHE6-anLhhsDd.js} +1 -1
  32. package/web/assets/classDiagram-CYGNFDIV-Z4CG2h2d.js +1 -0
  33. package/web/assets/classDiagram-v2-TLXNO2FR-Z4CG2h2d.js +1 -0
  34. package/web/assets/{cose-bilkent-JH36ORCC-CciOYQb4.js → cose-bilkent-JH36ORCC-CCj043X5.js} +1 -1
  35. package/web/assets/{cynefin-OW5HDTMX-k8-mUlq4.js → cynefin-OW5HDTMX-BGWD-i0N.js} +1 -1
  36. package/web/assets/{cynefinDiagram-5FMLGOSQ-D1qAHzq3.js → cynefinDiagram-5FMLGOSQ-ZWq_C5SK.js} +1 -1
  37. package/web/assets/{dagre-OS7QT2EB-BP1VuF_z.js → dagre-OS7QT2EB-In3Mah_T.js} +1 -1
  38. package/web/assets/{diagram-S7CK7UJ4-crXkWleC.js → diagram-S7CK7UJ4-DaTd6oXD.js} +1 -1
  39. package/web/assets/{diagram-UQ7AKVKN-CtHAmCY-.js → diagram-UQ7AKVKN-D3jwCd_v.js} +1 -1
  40. package/web/assets/{diagram-VSXAHHWV-C-Fhuwy8.js → diagram-VSXAHHWV-CsK-_hfn.js} +1 -1
  41. package/web/assets/{diagram-VX7I27RA-DkRkNPuj.js → diagram-VX7I27RA-BBLQ2mL7.js} +1 -1
  42. package/web/assets/{diagram-Z3DM3KII-DVERPCFS.js → diagram-Z3DM3KII-CUM2PN0X.js} +1 -1
  43. package/web/assets/{ebnfDiagram-PWID7BFC-PrSifYGF.js → ebnfDiagram-PWID7BFC-BjJTJ9Vr.js} +1 -1
  44. package/web/assets/{erDiagram-2YWLMYGG-D8-wfUYq.js → erDiagram-2YWLMYGG-BhjMQMDs.js} +1 -1
  45. package/web/assets/{flowDiagram-T62WH6J4-BS-_wkGe.js → flowDiagram-T62WH6J4-KrGbrW-t.js} +1 -1
  46. package/web/assets/{ganttDiagram-EL5Y4UJY-D9PWmuWE.js → ganttDiagram-EL5Y4UJY-Co_OE6ls.js} +1 -1
  47. package/web/assets/{gitGraphDiagram-WWUBYQGX-DIP9p63c.js → gitGraphDiagram-WWUBYQGX-BxM4C4Ti.js} +1 -1
  48. package/web/assets/{infoDiagram-FKFFQAWI-BzU6-acC.js → infoDiagram-FKFFQAWI-C8YaW3a6.js} +1 -1
  49. package/web/assets/{ishikawaDiagram-5VMMS53U-CvYS2ayc.js → ishikawaDiagram-5VMMS53U-MPTb2C9Y.js} +1 -1
  50. package/web/assets/{journeyDiagram-EYS64GPL-Cr0qdK-D.js → journeyDiagram-EYS64GPL-Dzq-vllP.js} +1 -1
  51. package/web/assets/{kanban-definition-UXKFOSKX-DhffGp7U.js → kanban-definition-UXKFOSKX-DWhE5bnH.js} +1 -1
  52. package/web/assets/{layout-b5jqOIam.js → layout-CMyIV62W.js} +1 -1
  53. package/web/assets/{linear-zLNMwGhI.js → linear-CX-tWibZ.js} +1 -1
  54. package/web/assets/{mermaid.core-DB_TNiSG.js → mermaid.core-DcgS6fFC.js} +6 -6
  55. package/web/assets/{mindmap-definition-THT77NOG-DkQz2hbh.js → mindmap-definition-THT77NOG-CJzNRYpk.js} +1 -1
  56. package/web/assets/{pegDiagram-XKGWAZYB-CB313CDF.js → pegDiagram-XKGWAZYB-BSIi724T.js} +1 -1
  57. package/web/assets/{pieDiagram-E7YTZNPT-yaDJVY4d.js → pieDiagram-E7YTZNPT-CoArMhZD.js} +1 -1
  58. package/web/assets/{quadrantDiagram-AXDQQJYC-BkV8iwHS.js → quadrantDiagram-AXDQQJYC-B9HoxOyK.js} +1 -1
  59. package/web/assets/{railroadDiagram-O6MQD6OU-T_JVDRpV.js → railroadDiagram-O6MQD6OU-C-aYV4dU.js} +1 -1
  60. package/web/assets/{requirementDiagram-IS5BZ75X-B68yTCqr.js → requirementDiagram-IS5BZ75X-DHPnVlti.js} +1 -1
  61. package/web/assets/{sankeyDiagram-P5KCCOFB-Bx31O26O.js → sankeyDiagram-P5KCCOFB-DlxAwgv1.js} +1 -1
  62. package/web/assets/{sequenceDiagram-WJ2MYXX4-CsCoFTAg.js → sequenceDiagram-WJ2MYXX4-DzVPZb2m.js} +1 -1
  63. package/web/assets/{sizeCapture-INFHLROL-B3a49hkJ.js → sizeCapture-INFHLROL-BkwjaMAx.js} +1 -1
  64. package/web/assets/{stateDiagram-XQSTLZYL-DjCdHmx5.js → stateDiagram-XQSTLZYL-DIeNtdWj.js} +1 -1
  65. package/web/assets/stateDiagram-v2-IH3M54BS-CZR_2wND.js +1 -0
  66. package/web/assets/{swimlanes-V6O3JKXN-4u8S1I3e.js → swimlanes-V6O3JKXN-CPUSs3Tj.js} +1 -1
  67. package/web/assets/swimlanesDiagram-JKAHXJPX-C1Sms2Ey.js +8 -0
  68. package/web/assets/{timeline-definition-24CTP7MA-r3GnOjJo.js → timeline-definition-24CTP7MA-CjBwDFJH.js} +1 -1
  69. package/web/assets/{vennDiagram-4TSXK5OY-59IlTU54.js → vennDiagram-4TSXK5OY-DOsoEsMT.js} +1 -1
  70. package/web/assets/{wardleyDiagram-VM6X3IG4-C3ALfLHE.js → wardleyDiagram-VM6X3IG4-_fhLZdvF.js} +1 -1
  71. package/web/assets/{workspace-file-tree-C6GhNx3L.js → workspace-file-tree-CTzNl5A5.js} +1 -1
  72. package/web/assets/{xychartDiagram-S5SC5T6Z-CoYtWlkb.js → xychartDiagram-S5SC5T6Z-D4Kz81TF.js} +1 -1
  73. package/web/index.html +2 -2
  74. package/web/assets/app-DVblmMbF.css +0 -32
  75. package/web/assets/channel-DwV664-P.js +0 -1
  76. package/web/assets/classDiagram-CYGNFDIV-BKhd9faI.js +0 -1
  77. package/web/assets/classDiagram-v2-TLXNO2FR-BKhd9faI.js +0 -1
  78. package/web/assets/stateDiagram-v2-IH3M54BS-Cf0tqY7x.js +0 -1
  79. package/web/assets/swimlanesDiagram-JKAHXJPX-COK5qx0u.js +0 -8
@@ -1,4 +1,4 @@
1
- import{r as Y,j,i as Xi,n as Bo,_ as I,k as Vo,l as Uo,m as Wo,t as $o,o as fe,q as tn,v as je,E as Zi}from"./app-BCXQnJUH.js";function De(e){const t=Y.useRef(e);return Y.useInsertionEffect(()=>void(t.current=e)),Y.useCallback((...n)=>t.current(...n),[])}const gs=Y.createContext(void 0);function Go({children:e,createEditor:t}){const n=Y.useRef(new WeakMap),i=De(r=>{const s=n.current.get(r);if(s!=null)return s;const o=t(r);return n.current.set(r,o),o});return j.jsx(gs.Provider,{value:i,children:e})}function jo(){return Y.useContext(gs)}const ms={position:"absolute",top:0,bottom:0,textAlign:"center",whiteSpace:"normal",touchAction:"none"},Ko={display:"contents"},vs="diffs-container",qo=(()=>{try{return!1}catch{return!1}})(),Yo=/(?=^diff --git)/gm,Xo=/(?<=\n)/,Zo=/^(---|\+\+\+)\s+([^\t\r\n]+)/,Jo=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,Qo=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,ea=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,Hi="header-prefix",Pi="header-filename-suffix",Oi="header-metadata",Dt="header-custom",J={dark:"pierre-dark",light:"pierre-light"},ta="data-theme-css",na="data-unsafe-css",ia="data-diffs-scrollbar-measure",ra="data-diffs-code-view-header",sa="data-diffs-code-view-footer",Ss="--diffs-scrollbar-gutter-measured",oa=1e5,Di={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},vt={...Di,hunkLineCount:1},aa={paddingTop:8,paddingBottom:8,gap:8},la={omega:.015,positionEpsilon:.5,velocityEpsilon:.05},da=Object.freeze({fromStart:0,fromEnd:0}),cn={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},bs={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function be(e){return`annotation-${"side"in e?`${e.side}-`:""}${e.lineNumber}`}function ha({hunkIndex:e,lineIndex:t,conflictIndex:n}){return`merge-conflict-action-${e}-${t}-${n}`}function Ae(e,t){return e-(t===0?0:1)}function pe(e,t){return Ae(e,t)+t}function ca(e,t){const n=t.hunks[e.hunkIndex];if(n!=null)return{hunkIndex:e.hunkIndex,lineIndex:ua(n,e.startContentIndex)}}function ua(e,t){let n=e.unifiedLineStart;for(let i=0;i<t;i++){const r=e.hunkContent[i];n+=r.type==="context"?r.lines:r.deletions+r.additions}return n}function fa({fileDiff:e,actions:t,renderCustomHeader:n,renderHeaderPrefix:i,renderHeaderFilenameSuffix:r,renderHeaderMetadata:s,renderAnnotation:o,renderGutterUtility:a,renderMergeConflictUtility:l,lineAnnotations:h,getHoveredLine:d,getInstance:c}){const u=n?.(e),f=i?.(e),p=r?.(e),g=s?.(e);return j.jsxs(j.Fragment,{children:[u!=null?j.jsx("div",{slot:Dt,children:u}):j.jsxs(j.Fragment,{children:[f!=null&&j.jsx("div",{slot:"header-prefix",children:f}),p!=null&&j.jsx("div",{slot:"header-filename-suffix",children:p}),g!=null&&j.jsx("div",{slot:"header-metadata",children:g})]}),o!=null&&h?.map((m,v)=>j.jsx("div",{slot:be(m),children:o(m)},v)),t!=null&&l!=null&&c!=null&&t.map(m=>{if(m==null)return;const v=pa(m,e);return j.jsx("div",{slot:v,style:Ko,children:l(m,c)},v)}),a!=null&&j.jsx("div",{slot:"gutter-utility-slot",style:ms,children:a(d)})]})}function pa(e,t){const n=ca(e,t);return n!=null?ha({hunkIndex:n.hunkIndex,lineIndex:n.lineIndex,conflictIndex:e.conflictIndex}):void 0}function ga({file:e,renderCustomHeader:t,renderHeaderPrefix:n,renderHeaderFilenameSuffix:i,renderHeaderMetadata:r,renderAnnotation:s,lineAnnotations:o,renderGutterUtility:a,getHoveredLine:l}){const h=t?.(e),d=n?.(e),c=i?.(e),u=r?.(e);return j.jsxs(j.Fragment,{children:[h!=null?j.jsx("div",{slot:Dt,children:h}):j.jsxs(j.Fragment,{children:[d!=null&&j.jsx("div",{slot:"header-prefix",children:d}),c!=null&&j.jsx("div",{slot:"header-filename-suffix",children:c}),u!=null&&j.jsx("div",{slot:"header-metadata",children:u})]}),s!=null&&o?.map((f,p)=>j.jsx("div",{slot:be(f),children:s(f)},p)),a!=null&&j.jsx("div",{slot:"gutter-utility-slot",style:ms,children:a(l)})]})}function mt(e,t){return e==null||t==null||typeof e=="string"||typeof t=="string"?e===t:e.dark===t.dark&&e.light===t.light}function we(e,t){return e?.cacheKey===t?.cacheKey&&e?.contents===t?.contents&&e?.name===t?.name&&e?.lang===t?.lang}const ti=new Set;function At(e){const t=[],n=new Set;for(const c of ma(e.themes)){const u=Cs(c)?c.getThemes():[c];for(const f of u){if(n.has(f.name))throw new Error(`Theme collection already contains theme "${f.name}"`);n.add(f.name),t.push(f)}}const i=Object.freeze([...t]),r=Object.freeze(i.filter(c=>c.colorScheme==="light")),s=Object.freeze(i.filter(c=>c.colorScheme==="dark")),o=new Map(i.map(c=>[c.name,c])),a=Object.freeze(i.map(c=>c.name)),l=Object.freeze(r.map(c=>c.name)),h=Object.freeze(s.map(c=>c.name));function d(c){if(c==null)return i;const{colorScheme:u,collection:f}=c;return f==null?u==="light"?r:u==="dark"?s:i:i.filter(p=>p.collection!==f?!1:u==null||p.colorScheme===u)}return{getTheme(c){return o.get(c)},getThemes(c){return d(c)},getThemeNames(c){return c?.collection==null?c?.colorScheme==="light"?l:c?.colorScheme==="dark"?h:a:d(c).map(u=>u.name)},hasTheme(c){return o.has(c)},orderBy(c){return At({themes:i.map((u,f)=>({descriptor:u,index:f})).sort((u,f)=>{const p=c(u.descriptor,f.descriptor);return p!==0?p:u.index-f.index}).map(u=>u.descriptor)})},pick(c){const u=[],f=new Set;for(const p of c){if(f.has(p))throw new Error(`Theme collection pick already includes theme "${p}"`);f.add(p);const g=o.get(p);if(g==null)throw new Error(`Theme collection does not contain theme "${p}"`);u.push(g)}return At({themes:u})},registerInto(c){for(const u of i)c.registerThemeIfAbsent(u.name,u.load)}}}function ma(e){return va(e)?[e]:e}function va(e){return Cs(e)||Sa(e)}function Sa(e){return typeof e.name=="string"&&typeof e.load=="function"}function Cs(e){return typeof e.getThemes=="function"}function ys(e){return e!==null&&typeof e=="object"&&"default"in e?e.default:e}var ba=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name="DuplicateThemeError"}},Ca=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name="UnregisteredThemeError"}},ya=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name="UnresolvedThemeError"}};function La(){const e=new Map,t=new Map,n=new Map;let i=0;function r(v,S){if(e.has(v))throw new ba(v);e.set(v,S)}function s(v,S){return e.has(v)?!1:(e.set(v,S),!0)}function o(v){return e.has(v)}function a(v){const S=t.get(v);if(S!==void 0)return Promise.resolve(S);const C=n.get(v);if(C!==void 0)return C;const b=e.get(v);if(b===void 0)return Promise.reject(new Ca(v));const y=i,L=b().then(k=>{const E=ys(k);return y===i&&t.set(v,E),n.get(v)===L&&n.delete(v),E}).catch(k=>{throw n.get(v)===L&&n.delete(v),k});return n.set(v,L),L}function l(v){return Promise.all(v.map(S=>a(S)))}function h(v,S){t.set(v,S)}function d(v){for(const[S,C]of v)h(S,C)}function c(v){return t.get(v)}function u(v){const S=[];for(const C of v){const b=t.get(C);if(b===void 0)throw new ya(C);S.push(b)}return S}function f(v){return t.has(v)}function p(v){for(const S of v)if(!t.has(S))return!1;return!0}function g(v){const S=t.get(v);return S!==void 0?S:a(v)}function m(){i++,t.clear(),n.clear()}return{clearResolvedThemes:m,getResolvedOrResolveTheme:g,getResolvedTheme:c,getResolvedThemes:u,hasRegisteredTheme:o,hasResolvedTheme:f,hasResolvedThemes:p,registerTheme:r,registerThemeIfAbsent:s,resolveTheme:a,resolveThemes:l,seedResolvedTheme:h,seedResolvedThemes:d}}const _e=La();function Ji(e,t){e=Array.isArray(e)?e:[e];for(let n of e){let i;if(typeof n=="string"){if(i=_e.getResolvedTheme(n),i==null)throw new Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else i=n,n=n.name,_e.getResolvedTheme(n)==null&&_e.seedResolvedTheme(n,i);ti.has(n)||(ti.add(n),t.loadThemeSync(i))}}const Rt=new Map,Hn=new Map,xa=new Map,ni=new Set;function Qi(e,t){e=Array.isArray(e)?e:[e];for(const n of e){if(ni.has(n.name))continue;let i=Rt.get(n.name);i==null&&(i=n,Rt.set(n.name,i)),ni.add(i.name),t.loadLanguageSync(i.data)}}function Ls(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}async function ka(e){if(Ls())throw new Error(`resolveLanguage("${e}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);const t=Hn.get(e);if(t!=null)return t;try{let n=xa.get(e);if(n==null&&Object.prototype.hasOwnProperty.call(Xi,e)&&(n=Xi[e]),n==null)throw new Error(`resolveLanguage: "${e}" not found in bundled or custom languages`);const i=n().then(({default:r})=>{const s={name:e,data:r};return Rt.has(e)||Rt.set(e,s),s});return Hn.set(e,i),await i}finally{Hn.delete(e)}}function wa(e){return Rt.get(e)??ka(e)}function xs({name:e,load:t,colorScheme:n,collection:i,displayName:r}){return{name:e,colorScheme:n,collection:i,displayName:r,load:Ea(t)}}function Ea(e){return async()=>Bo(ys(await e()))}const Ta="pierre",Aa=["pierre-dark","pierre-dark-soft","pierre-dark-vibrant","pierre-dark-protanopia-deuteranopia","pierre-dark-tritanopia"],ks=["pierre-light","pierre-light-soft","pierre-light-vibrant","pierre-light-protanopia-deuteranopia","pierre-light-tritanopia"],Ra=[...ks,...Aa],Ia=new Set(ks);function Ma(e){return Ia.has(e)?"light":"dark"}const Ha={"pierre-dark":"Pierre Dark","pierre-dark-soft":"Pierre Dark Soft","pierre-dark-vibrant":"Pierre Dark Vibrant","pierre-dark-protanopia-deuteranopia":"Pierre Dark Protanopia & Deuteranopia","pierre-dark-tritanopia":"Pierre Dark Tritanopia","pierre-light":"Pierre Light","pierre-light-soft":"Pierre Light Soft","pierre-light-vibrant":"Pierre Light Vibrant","pierre-light-protanopia-deuteranopia":"Pierre Light Protanopia & Deuteranopia","pierre-light-tritanopia":"Pierre Light Tritanopia"},Pa={"pierre-dark":()=>I(()=>import("./pierre-dark-CyvmCCZW.js"),[]),"pierre-dark-soft":()=>I(()=>import("./pierre-dark-soft-BHGpRqa4.js"),[]),"pierre-dark-vibrant":()=>I(()=>import("./pierre-dark-vibrant-BWBVywrn.js"),[]),"pierre-dark-protanopia-deuteranopia":()=>I(()=>import("./pierre-dark-protanopia-deuteranopia-Rgc0TwpF.js"),[]),"pierre-dark-tritanopia":()=>I(()=>import("./pierre-dark-tritanopia-Beq2gCRQ.js"),[]),"pierre-light":()=>I(()=>import("./pierre-light-480U9XYS.js"),[]),"pierre-light-soft":()=>I(()=>import("./pierre-light-soft-CVdyfjmI.js"),[]),"pierre-light-vibrant":()=>I(()=>import("./pierre-light-vibrant-DdTDNdfJ.js"),[]),"pierre-light-protanopia-deuteranopia":()=>I(()=>import("./pierre-light-protanopia-deuteranopia-CaVOBURG.js"),[]),"pierre-light-tritanopia":()=>I(()=>import("./pierre-light-tritanopia-B4_gpKOM.js"),[])};function Oa(e){return xs({name:e,collection:Ta,colorScheme:Ma(e),displayName:Ha[e],load:Pa[e]})}const ws=At({themes:Ra.map(e=>Oa(e))}),Da="shiki",Es=["ayu-light","catppuccin-latte","everforest-light","github-light","github-light-default","github-light-high-contrast","gruvbox-light-hard","gruvbox-light-medium","gruvbox-light-soft","horizon-bright","kanagawa-lotus","light-plus","material-theme-lighter","min-light","night-owl-light","one-light","rose-pine-dawn","slack-ochin","snazzy-light","solarized-light","vitesse-light"],_a=["andromeeda","aurora-x","ayu-dark","ayu-mirage","catppuccin-frappe","catppuccin-macchiato","catppuccin-mocha","dark-plus","dracula","dracula-soft","everforest-dark","github-dark","github-dark-default","github-dark-dimmed","github-dark-high-contrast","gruvbox-dark-hard","gruvbox-dark-medium","gruvbox-dark-soft","horizon","houston","kanagawa-dragon","kanagawa-wave","laserwave","material-theme","material-theme-darker","material-theme-ocean","material-theme-palenight","min-dark","monokai","night-owl","nord","one-dark-pro","plastic","poimandres","red","rose-pine","rose-pine-moon","slack-dark","solarized-dark","synthwave-84","tokyo-night","vesper","vitesse-black","vitesse-dark"],Fa=new Set(Es);function Na(e){return Fa.has(e)?"light":"dark"}const za={andromeeda:()=>I(()=>import("./andromeeda-C4gqWexZ.js"),[]),"aurora-x":()=>I(()=>import("./aurora-x-D-2ljcwZ.js"),[]),"ayu-dark":()=>I(()=>import("./ayu-dark-DYE7WIF3.js"),[]),"ayu-light":()=>I(()=>import("./ayu-light-BA47KaF1.js"),[]),"ayu-mirage":()=>I(()=>import("./ayu-mirage-32ctXXKs.js"),[]),"catppuccin-frappe":()=>I(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]),"catppuccin-latte":()=>I(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]),"catppuccin-macchiato":()=>I(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]),"catppuccin-mocha":()=>I(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]),"dark-plus":()=>I(()=>import("./dark-plus-C3mMm8J8.js"),[]),dracula:()=>I(()=>import("./dracula-BzJJZx-M.js"),[]),"dracula-soft":()=>I(()=>import("./dracula-soft-BXkSAIEj.js"),[]),"everforest-dark":()=>I(()=>import("./everforest-dark-BgDCqdQA.js"),[]),"everforest-light":()=>I(()=>import("./everforest-light-C8M2exoo.js"),[]),"github-dark":()=>I(()=>import("./github-dark-DHJKELXO.js"),[]),"github-dark-default":()=>I(()=>import("./github-dark-default-Cuk6v7N8.js"),[]),"github-dark-dimmed":()=>I(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]),"github-dark-high-contrast":()=>I(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]),"github-light":()=>I(()=>import("./github-light-DAi9KRSo.js"),[]),"github-light-default":()=>I(()=>import("./github-light-default-D7oLnXFd.js"),[]),"github-light-high-contrast":()=>I(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]),"gruvbox-dark-hard":()=>I(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]),"gruvbox-dark-medium":()=>I(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]),"gruvbox-dark-soft":()=>I(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]),"gruvbox-light-hard":()=>I(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]),"gruvbox-light-medium":()=>I(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]),"gruvbox-light-soft":()=>I(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]),horizon:()=>I(()=>import("./horizon-BUw7H-hv.js"),[]),"horizon-bright":()=>I(()=>import("./horizon-bright-CUuTKBJd.js"),[]),houston:()=>I(()=>import("./houston-DnULxvSX.js"),[]),"kanagawa-dragon":()=>I(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]),"kanagawa-lotus":()=>I(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]),"kanagawa-wave":()=>I(()=>import("./kanagawa-wave-DWedfzmr.js"),[]),laserwave:()=>I(()=>import("./laserwave-DUszq2jm.js"),[]),"light-plus":()=>I(()=>import("./light-plus-B7mTdjB0.js"),[]),"material-theme":()=>I(()=>import("./material-theme-D5KoaKCx.js"),[]),"material-theme-darker":()=>I(()=>import("./material-theme-darker-BfHTSMKl.js"),[]),"material-theme-lighter":()=>I(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]),"material-theme-ocean":()=>I(()=>import("./material-theme-ocean-CyktbL80.js"),[]),"material-theme-palenight":()=>I(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]),"min-dark":()=>I(()=>import("./min-dark-CafNBF8u.js"),[]),"min-light":()=>I(()=>import("./min-light-CTRr51gU.js"),[]),monokai:()=>I(()=>import("./monokai-D4h5O-jR.js"),[]),"night-owl":()=>I(()=>import("./night-owl-C39BiMTA.js"),[]),"night-owl-light":()=>I(()=>import("./night-owl-light-CMTm3GFP.js"),[]),nord:()=>I(()=>import("./nord-Ddv68eIx.js"),[]),"one-dark-pro":()=>I(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]),"one-light":()=>I(()=>import("./one-light-C3Wv6jpd.js"),[]),plastic:()=>I(()=>import("./plastic-3e1v2bzS.js"),[]),poimandres:()=>I(()=>import("./poimandres-CS3Unz2-.js"),[]),red:()=>I(()=>import("./red-bN70gL4F.js"),[]),"rose-pine":()=>I(()=>import("./rose-pine-qdsjHGoJ.js"),[]),"rose-pine-dawn":()=>I(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[]),"rose-pine-moon":()=>I(()=>import("./rose-pine-moon-D4_iv3hh.js"),[]),"slack-dark":()=>I(()=>import("./slack-dark-BthQWCQV.js"),[]),"slack-ochin":()=>I(()=>import("./slack-ochin-DqwNpetd.js"),[]),"snazzy-light":()=>I(()=>import("./snazzy-light-Bw305WKR.js"),[]),"solarized-dark":()=>I(()=>import("./solarized-dark-DXbdFlpD.js"),[]),"solarized-light":()=>I(()=>import("./solarized-light-L9t79GZl.js"),[]),"synthwave-84":()=>I(()=>import("./synthwave-84-CbfX1IO0.js"),[]),"tokyo-night":()=>I(()=>import("./tokyo-night-hegEt444.js"),[]),vesper:()=>I(()=>import("./vesper-DU1UobuO.js"),[]),"vitesse-black":()=>I(()=>import("./vitesse-black-Bkuqu6BP.js"),[]),"vitesse-dark":()=>I(()=>import("./vitesse-dark-D0r3Knsf.js"),[]),"vitesse-light":()=>I(()=>import("./vitesse-light-CVO1_9PV.js"),[])};function er(e){return xs({name:e,collection:Da,colorScheme:Na(e),load:za[e]})}const Ts=At({themes:Object.freeze([...Es.map(e=>er(e)),..._a.map(e=>er(e))])});At({themes:[ws,Ts]});function Ba(e){if(Ls())throw new Error(`Theme "${e}" cannot be resolved from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);if(_e.hasRegisteredTheme(e))return;const t=Ts.getTheme(e);if(t!=null){_e.registerThemeIfAbsent(t.name,t.load);return}throw new Error(`No valid theme loader registered for "${e}"`)}function Va(e,t){if(t.name!==e)throw new Error(`resolvedTheme: themeName: ${e} does not match theme.name: ${t.name}`)}async function Ua(e){Ba(e);const t=await _e.resolveTheme(e);return Va(e,t),t}function Wa(e){return _e.getResolvedTheme(e)??Ua(e)}let ke;async function As({themes:e,langs:t,preferredHighlighter:n="shiki-js"}){ke??=Vo({themes:[],langs:["text"],engine:n==="shiki-wasm"?Uo(I(()=>import("./wasm-CG6Dc4jp.js"),[])):Wo()});const i=$a(ke)?await ke:ke;ke=i;const r=[];for(const o of t){if(o==="text"||o==="ansi")continue;const a=wa(o);"then"in a?r.push(a):Qi(a,i)}const s=[];for(const o of e){const a=Wa(o);"then"in a?s.push(a):Ji(a,ke)}return(r.length>0||s.length>0)&&await Promise.all([Promise.all(r).then(o=>{Qi(o,i)}),Promise.all(s).then(o=>{Ji(o,i)})]),i}function Rs(){if(ke!=null&&!("then"in ke))return ke}function $a(e=ke){return e!=null&&"then"in e}for(const e of ws.getThemes())_e.registerThemeIfAbsent(e.name,e.load);function _i(e=J){const t=[];return typeof e=="string"?t.push(e):(t.push(e.dark),t.push(e.light)),t}function Ga(e){return _e.hasResolvedThemes(e)}function et(e,t){return mt(e.theme,t.theme)&&e.useTokenTransformer===t.useTokenTransformer&&e.tokenizeMaxLineLength===t.tokenizeMaxLineLength}const tt=new Map,St={"1c":"1c",abap:"abap",as:"actionscript-3",ada:"ada",adb:"ada",ads:"ada",adoc:"asciidoc",asciidoc:"asciidoc","component.html":"angular-html","component.ts":"angular-ts",conf:"nginx",htaccess:"apache",cls:"tex",trigger:"apex",apl:"apl",applescript:"applescript",scpt:"applescript",ara:"ara",asm:"asm",s:"riscv",astro:"astro",awk:"awk",bal:"ballerina",sh:"zsh",bash:"zsh",bat:"cmd",cmd:"cmd",be:"berry",beancount:"beancount",bib:"bibtex",bicep:"bicep","blade.php":"blade",bsl:"bsl",c:"c",h:"objective-cpp",cs:"csharp",cpp:"cpp",hpp:"cpp",cc:"cpp",cxx:"cpp",hh:"cpp",cdc:"cdc",cairo:"cairo",clar:"clarity",clj:"clojure",cljs:"clojure",cljc:"clojure",soy:"soy",cmake:"cmake","CMakeLists.txt":"cmake",cob:"cobol",cbl:"cobol",cobol:"cobol",CODEOWNERS:"codeowners",ql:"ql",coffee:"coffeescript",lisp:"lisp",cl:"lisp",lsp:"lisp",log:"log",v:"verilog",cql:"cql",cr:"crystal",css:"css",csv:"csv",cue:"cue",cypher:"cypher",cyp:"cypher",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",patch:"diff",Dockerfile:"dockerfile",dockerfile:"dockerfile",env:"dotenv",dm:"dream-maker",edge:"edge",el:"emacs-lisp",ex:"elixir",exs:"elixir",elm:"elm",erb:"erb",erl:"erlang",hrl:"erlang",f:"fortran-fixed-form",for:"fortran-fixed-form",fs:"fsharp",fsi:"fsharp",fsx:"fsharp",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"fortran-free-form",f95:"fortran-free-form",fnl:"fennel",fish:"fish",ftl:"ftl",tres:"gdresource",res:"gdresource",gd:"gdscript",gdshader:"gdshader",gs:"genie",feature:"gherkin",COMMIT_EDITMSG:"git-commit","git-rebase-todo":"git-rebase",gjs:"glimmer-js",gleam:"gleam",gts:"glimmer-ts",glsl:"glsl",vert:"glsl",frag:"glsl",shader:"shaderlab",gp:"gnuplot",plt:"gnuplot",gnuplot:"gnuplot",go:"go",graphql:"graphql",gql:"graphql",groovy:"groovy",gvy:"groovy",hack:"hack",haml:"haml",hbs:"handlebars",handlebars:"handlebars",hs:"haskell",lhs:"haskell",hx:"haxe",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",fx:"hlsl",html:"html",htm:"html",http:"http",rest:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",cfg:"ini",jade:"pug",pug:"pug",java:"java",js:"javascript",mjs:"javascript",cjs:"javascript",jinja:"jinja",jinja2:"jinja",j2:"jinja",jison:"jison",jl:"julia",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",libsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",kt:"kotlin",kts:"kts",kql:"kusto",tex:"tex",ltx:"tex",lean:"lean4",less:"less",liquid:"liquid",lit:"lit",ll:"llvm",logo:"logo",lua:"lua",luau:"luau",Makefile:"makefile",mk:"makefile",makefile:"makefile",md:"markdown",markdown:"markdown",marko:"marko",m:"wolfram",mat:"matlab",mdc:"mdc",mdx:"mdx",wiki:"wikitext",mediawiki:"wikitext",mmd:"mermaid",mermaid:"mermaid",mips:"mipsasm",mojo:"mojo","🔥":"mojo",move:"move",nar:"narrat",nf:"nextflow",nim:"nim",nims:"nim",nimble:"nim",nix:"nix",nu:"nushell",mm:"objective-cpp",ml:"ocaml",mli:"ocaml",mll:"ocaml",mly:"ocaml",pas:"pascal",p:"pascal",pl:"prolog",pm:"perl",t:"perl",raku:"raku",p6:"raku",pl6:"raku",php:"php",phtml:"php",pls:"plsql",sql:"sql",po:"po",polar:"polar",pcss:"postcss",pot:"pot",potx:"potx",pq:"powerquery",pqm:"powerquery",ps1:"powershell",psm1:"powershell",psd1:"powershell",prisma:"prisma",pro:"prolog",P:"prolog",properties:"properties",proto:"protobuf",pp:"puppet",purs:"purescript",py:"python",pyw:"python",pyi:"python",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",R:"r",rkt:"racket",rktl:"racket",razor:"razor",cshtml:"razor",rb:"ruby",rbw:"ruby",reg:"reg",regex:"regexp",rel:"rel",rs:"rust",rst:"rst",rake:"ruby",gemspec:"ruby",jbuilder:"ruby",builder:"ruby",rabl:"ruby",arb:"ruby",ru:"ruby",podspec:"ruby",Gemfile:"ruby",Rakefile:"ruby",Guardfile:"ruby",Capfile:"ruby",Berksfile:"ruby",Brewfile:"ruby",Vagrantfile:"ruby",Thorfile:"ruby",Appraisals:"ruby",Dangerfile:"ruby",sas:"sas",sass:"sass",scala:"scala",sc:"scala",scm:"scheme",ss:"scheme",sld:"scheme",scss:"scss",sdbl:"sdbl",shadergraph:"shader",st:"smalltalk",sol:"solidity",sparql:"sparql",rq:"sparql",spl:"splunk",config:"ssh-config",do:"stata",ado:"stata",dta:"stata",styl:"stylus",stylus:"stylus",svelte:"svelte",swift:"swift",sv:"system-verilog",svh:"system-verilog",service:"systemd",socket:"systemd",device:"systemd",timer:"systemd",talon:"talonscript",tasl:"tasl",tcl:"tcl",templ:"templ",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"typescript",mts:"typescript",cts:"typescript",tsp:"typespec",tsv:"tsv",tsx:"tsx",ttl:"turtle",twig:"twig",typ:"typst",vv:"v",vala:"vala",vapi:"vala",vb:"vb",vbs:"vb",bas:"vb",vh:"verilog",vhd:"vhdl",vhdl:"vhdl",vim:"vimscript",vue:"vue","vine.ts":"vue-vine",vy:"vyper",wasm:"wasm",wat:"wasm",wy:"文言",wgsl:"wgsl",wit:"wit",wl:"wolfram",nb:"wolfram",xml:"xml",xsl:"xsl",xslt:"xsl",yaml:"yaml",yml:"yml",zs:"zenscript",zig:"zig",zsh:"zsh",sty:"tex"};function he(e){if(tt.has(e))return tt.get(e)??"text";if(St[e]!=null)return St[e];const t=e.match(/\.([^/\\]+\.[^/\\]+)$/);if(t!=null){if(tt.has(t[1]))return tt.get(t[1])??"text";if(St[t[1]]!=null)return St[t[1]]??"text"}const n=e.match(/\.([^.]+)$/)?.[1]??"";return tt.has(n)?tt.get(n)??"text":St[n]??"text"}function ii(e){return(e.lang??he(e.name))==="text"}const un=10,fn=13,ja=4,Ka=40;function Fi(e){const t=[0];let n=e.indexOf("\r"),i=e.indexOf(`
1
+ import{r as Y,j,i as Xi,n as Bo,_ as I,k as Vo,l as Uo,m as Wo,t as $o,o as fe,q as tn,v as je,E as Zi}from"./app-Cy3sY2K8.js";function De(e){const t=Y.useRef(e);return Y.useInsertionEffect(()=>void(t.current=e)),Y.useCallback((...n)=>t.current(...n),[])}const gs=Y.createContext(void 0);function Go({children:e,createEditor:t}){const n=Y.useRef(new WeakMap),i=De(r=>{const s=n.current.get(r);if(s!=null)return s;const o=t(r);return n.current.set(r,o),o});return j.jsx(gs.Provider,{value:i,children:e})}function jo(){return Y.useContext(gs)}const ms={position:"absolute",top:0,bottom:0,textAlign:"center",whiteSpace:"normal",touchAction:"none"},Ko={display:"contents"},vs="diffs-container",qo=(()=>{try{return!1}catch{return!1}})(),Yo=/(?=^diff --git)/gm,Xo=/(?<=\n)/,Zo=/^(---|\+\+\+)\s+([^\t\r\n]+)/,Jo=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,Qo=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,ea=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,Hi="header-prefix",Pi="header-filename-suffix",Oi="header-metadata",Dt="header-custom",J={dark:"pierre-dark",light:"pierre-light"},ta="data-theme-css",na="data-unsafe-css",ia="data-diffs-scrollbar-measure",ra="data-diffs-code-view-header",sa="data-diffs-code-view-footer",Ss="--diffs-scrollbar-gutter-measured",oa=1e5,Di={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8},vt={...Di,hunkLineCount:1},aa={paddingTop:8,paddingBottom:8,gap:8},la={omega:.015,positionEpsilon:.5,velocityEpsilon:.05},da=Object.freeze({fromStart:0,fromEnd:0}),cn={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},bs={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function be(e){return`annotation-${"side"in e?`${e.side}-`:""}${e.lineNumber}`}function ha({hunkIndex:e,lineIndex:t,conflictIndex:n}){return`merge-conflict-action-${e}-${t}-${n}`}function Ae(e,t){return e-(t===0?0:1)}function pe(e,t){return Ae(e,t)+t}function ca(e,t){const n=t.hunks[e.hunkIndex];if(n!=null)return{hunkIndex:e.hunkIndex,lineIndex:ua(n,e.startContentIndex)}}function ua(e,t){let n=e.unifiedLineStart;for(let i=0;i<t;i++){const r=e.hunkContent[i];n+=r.type==="context"?r.lines:r.deletions+r.additions}return n}function fa({fileDiff:e,actions:t,renderCustomHeader:n,renderHeaderPrefix:i,renderHeaderFilenameSuffix:r,renderHeaderMetadata:s,renderAnnotation:o,renderGutterUtility:a,renderMergeConflictUtility:l,lineAnnotations:h,getHoveredLine:d,getInstance:c}){const u=n?.(e),f=i?.(e),p=r?.(e),g=s?.(e);return j.jsxs(j.Fragment,{children:[u!=null?j.jsx("div",{slot:Dt,children:u}):j.jsxs(j.Fragment,{children:[f!=null&&j.jsx("div",{slot:"header-prefix",children:f}),p!=null&&j.jsx("div",{slot:"header-filename-suffix",children:p}),g!=null&&j.jsx("div",{slot:"header-metadata",children:g})]}),o!=null&&h?.map((m,v)=>j.jsx("div",{slot:be(m),children:o(m)},v)),t!=null&&l!=null&&c!=null&&t.map(m=>{if(m==null)return;const v=pa(m,e);return j.jsx("div",{slot:v,style:Ko,children:l(m,c)},v)}),a!=null&&j.jsx("div",{slot:"gutter-utility-slot",style:ms,children:a(d)})]})}function pa(e,t){const n=ca(e,t);return n!=null?ha({hunkIndex:n.hunkIndex,lineIndex:n.lineIndex,conflictIndex:e.conflictIndex}):void 0}function ga({file:e,renderCustomHeader:t,renderHeaderPrefix:n,renderHeaderFilenameSuffix:i,renderHeaderMetadata:r,renderAnnotation:s,lineAnnotations:o,renderGutterUtility:a,getHoveredLine:l}){const h=t?.(e),d=n?.(e),c=i?.(e),u=r?.(e);return j.jsxs(j.Fragment,{children:[h!=null?j.jsx("div",{slot:Dt,children:h}):j.jsxs(j.Fragment,{children:[d!=null&&j.jsx("div",{slot:"header-prefix",children:d}),c!=null&&j.jsx("div",{slot:"header-filename-suffix",children:c}),u!=null&&j.jsx("div",{slot:"header-metadata",children:u})]}),s!=null&&o?.map((f,p)=>j.jsx("div",{slot:be(f),children:s(f)},p)),a!=null&&j.jsx("div",{slot:"gutter-utility-slot",style:ms,children:a(l)})]})}function mt(e,t){return e==null||t==null||typeof e=="string"||typeof t=="string"?e===t:e.dark===t.dark&&e.light===t.light}function we(e,t){return e?.cacheKey===t?.cacheKey&&e?.contents===t?.contents&&e?.name===t?.name&&e?.lang===t?.lang}const ti=new Set;function At(e){const t=[],n=new Set;for(const c of ma(e.themes)){const u=Cs(c)?c.getThemes():[c];for(const f of u){if(n.has(f.name))throw new Error(`Theme collection already contains theme "${f.name}"`);n.add(f.name),t.push(f)}}const i=Object.freeze([...t]),r=Object.freeze(i.filter(c=>c.colorScheme==="light")),s=Object.freeze(i.filter(c=>c.colorScheme==="dark")),o=new Map(i.map(c=>[c.name,c])),a=Object.freeze(i.map(c=>c.name)),l=Object.freeze(r.map(c=>c.name)),h=Object.freeze(s.map(c=>c.name));function d(c){if(c==null)return i;const{colorScheme:u,collection:f}=c;return f==null?u==="light"?r:u==="dark"?s:i:i.filter(p=>p.collection!==f?!1:u==null||p.colorScheme===u)}return{getTheme(c){return o.get(c)},getThemes(c){return d(c)},getThemeNames(c){return c?.collection==null?c?.colorScheme==="light"?l:c?.colorScheme==="dark"?h:a:d(c).map(u=>u.name)},hasTheme(c){return o.has(c)},orderBy(c){return At({themes:i.map((u,f)=>({descriptor:u,index:f})).sort((u,f)=>{const p=c(u.descriptor,f.descriptor);return p!==0?p:u.index-f.index}).map(u=>u.descriptor)})},pick(c){const u=[],f=new Set;for(const p of c){if(f.has(p))throw new Error(`Theme collection pick already includes theme "${p}"`);f.add(p);const g=o.get(p);if(g==null)throw new Error(`Theme collection does not contain theme "${p}"`);u.push(g)}return At({themes:u})},registerInto(c){for(const u of i)c.registerThemeIfAbsent(u.name,u.load)}}}function ma(e){return va(e)?[e]:e}function va(e){return Cs(e)||Sa(e)}function Sa(e){return typeof e.name=="string"&&typeof e.load=="function"}function Cs(e){return typeof e.getThemes=="function"}function ys(e){return e!==null&&typeof e=="object"&&"default"in e?e.default:e}var ba=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name="DuplicateThemeError"}},Ca=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name="UnregisteredThemeError"}},ya=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name="UnresolvedThemeError"}};function La(){const e=new Map,t=new Map,n=new Map;let i=0;function r(v,S){if(e.has(v))throw new ba(v);e.set(v,S)}function s(v,S){return e.has(v)?!1:(e.set(v,S),!0)}function o(v){return e.has(v)}function a(v){const S=t.get(v);if(S!==void 0)return Promise.resolve(S);const C=n.get(v);if(C!==void 0)return C;const b=e.get(v);if(b===void 0)return Promise.reject(new Ca(v));const y=i,L=b().then(k=>{const E=ys(k);return y===i&&t.set(v,E),n.get(v)===L&&n.delete(v),E}).catch(k=>{throw n.get(v)===L&&n.delete(v),k});return n.set(v,L),L}function l(v){return Promise.all(v.map(S=>a(S)))}function h(v,S){t.set(v,S)}function d(v){for(const[S,C]of v)h(S,C)}function c(v){return t.get(v)}function u(v){const S=[];for(const C of v){const b=t.get(C);if(b===void 0)throw new ya(C);S.push(b)}return S}function f(v){return t.has(v)}function p(v){for(const S of v)if(!t.has(S))return!1;return!0}function g(v){const S=t.get(v);return S!==void 0?S:a(v)}function m(){i++,t.clear(),n.clear()}return{clearResolvedThemes:m,getResolvedOrResolveTheme:g,getResolvedTheme:c,getResolvedThemes:u,hasRegisteredTheme:o,hasResolvedTheme:f,hasResolvedThemes:p,registerTheme:r,registerThemeIfAbsent:s,resolveTheme:a,resolveThemes:l,seedResolvedTheme:h,seedResolvedThemes:d}}const _e=La();function Ji(e,t){e=Array.isArray(e)?e:[e];for(let n of e){let i;if(typeof n=="string"){if(i=_e.getResolvedTheme(n),i==null)throw new Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else i=n,n=n.name,_e.getResolvedTheme(n)==null&&_e.seedResolvedTheme(n,i);ti.has(n)||(ti.add(n),t.loadThemeSync(i))}}const Rt=new Map,Hn=new Map,xa=new Map,ni=new Set;function Qi(e,t){e=Array.isArray(e)?e:[e];for(const n of e){if(ni.has(n.name))continue;let i=Rt.get(n.name);i==null&&(i=n,Rt.set(n.name,i)),ni.add(i.name),t.loadLanguageSync(i.data)}}function Ls(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}async function ka(e){if(Ls())throw new Error(`resolveLanguage("${e}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);const t=Hn.get(e);if(t!=null)return t;try{let n=xa.get(e);if(n==null&&Object.prototype.hasOwnProperty.call(Xi,e)&&(n=Xi[e]),n==null)throw new Error(`resolveLanguage: "${e}" not found in bundled or custom languages`);const i=n().then(({default:r})=>{const s={name:e,data:r};return Rt.has(e)||Rt.set(e,s),s});return Hn.set(e,i),await i}finally{Hn.delete(e)}}function wa(e){return Rt.get(e)??ka(e)}function xs({name:e,load:t,colorScheme:n,collection:i,displayName:r}){return{name:e,colorScheme:n,collection:i,displayName:r,load:Ea(t)}}function Ea(e){return async()=>Bo(ys(await e()))}const Ta="pierre",Aa=["pierre-dark","pierre-dark-soft","pierre-dark-vibrant","pierre-dark-protanopia-deuteranopia","pierre-dark-tritanopia"],ks=["pierre-light","pierre-light-soft","pierre-light-vibrant","pierre-light-protanopia-deuteranopia","pierre-light-tritanopia"],Ra=[...ks,...Aa],Ia=new Set(ks);function Ma(e){return Ia.has(e)?"light":"dark"}const Ha={"pierre-dark":"Pierre Dark","pierre-dark-soft":"Pierre Dark Soft","pierre-dark-vibrant":"Pierre Dark Vibrant","pierre-dark-protanopia-deuteranopia":"Pierre Dark Protanopia & Deuteranopia","pierre-dark-tritanopia":"Pierre Dark Tritanopia","pierre-light":"Pierre Light","pierre-light-soft":"Pierre Light Soft","pierre-light-vibrant":"Pierre Light Vibrant","pierre-light-protanopia-deuteranopia":"Pierre Light Protanopia & Deuteranopia","pierre-light-tritanopia":"Pierre Light Tritanopia"},Pa={"pierre-dark":()=>I(()=>import("./pierre-dark-CyvmCCZW.js"),[]),"pierre-dark-soft":()=>I(()=>import("./pierre-dark-soft-BHGpRqa4.js"),[]),"pierre-dark-vibrant":()=>I(()=>import("./pierre-dark-vibrant-BWBVywrn.js"),[]),"pierre-dark-protanopia-deuteranopia":()=>I(()=>import("./pierre-dark-protanopia-deuteranopia-Rgc0TwpF.js"),[]),"pierre-dark-tritanopia":()=>I(()=>import("./pierre-dark-tritanopia-Beq2gCRQ.js"),[]),"pierre-light":()=>I(()=>import("./pierre-light-480U9XYS.js"),[]),"pierre-light-soft":()=>I(()=>import("./pierre-light-soft-CVdyfjmI.js"),[]),"pierre-light-vibrant":()=>I(()=>import("./pierre-light-vibrant-DdTDNdfJ.js"),[]),"pierre-light-protanopia-deuteranopia":()=>I(()=>import("./pierre-light-protanopia-deuteranopia-CaVOBURG.js"),[]),"pierre-light-tritanopia":()=>I(()=>import("./pierre-light-tritanopia-B4_gpKOM.js"),[])};function Oa(e){return xs({name:e,collection:Ta,colorScheme:Ma(e),displayName:Ha[e],load:Pa[e]})}const ws=At({themes:Ra.map(e=>Oa(e))}),Da="shiki",Es=["ayu-light","catppuccin-latte","everforest-light","github-light","github-light-default","github-light-high-contrast","gruvbox-light-hard","gruvbox-light-medium","gruvbox-light-soft","horizon-bright","kanagawa-lotus","light-plus","material-theme-lighter","min-light","night-owl-light","one-light","rose-pine-dawn","slack-ochin","snazzy-light","solarized-light","vitesse-light"],_a=["andromeeda","aurora-x","ayu-dark","ayu-mirage","catppuccin-frappe","catppuccin-macchiato","catppuccin-mocha","dark-plus","dracula","dracula-soft","everforest-dark","github-dark","github-dark-default","github-dark-dimmed","github-dark-high-contrast","gruvbox-dark-hard","gruvbox-dark-medium","gruvbox-dark-soft","horizon","houston","kanagawa-dragon","kanagawa-wave","laserwave","material-theme","material-theme-darker","material-theme-ocean","material-theme-palenight","min-dark","monokai","night-owl","nord","one-dark-pro","plastic","poimandres","red","rose-pine","rose-pine-moon","slack-dark","solarized-dark","synthwave-84","tokyo-night","vesper","vitesse-black","vitesse-dark"],Fa=new Set(Es);function Na(e){return Fa.has(e)?"light":"dark"}const za={andromeeda:()=>I(()=>import("./andromeeda-C4gqWexZ.js"),[]),"aurora-x":()=>I(()=>import("./aurora-x-D-2ljcwZ.js"),[]),"ayu-dark":()=>I(()=>import("./ayu-dark-DYE7WIF3.js"),[]),"ayu-light":()=>I(()=>import("./ayu-light-BA47KaF1.js"),[]),"ayu-mirage":()=>I(()=>import("./ayu-mirage-32ctXXKs.js"),[]),"catppuccin-frappe":()=>I(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]),"catppuccin-latte":()=>I(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]),"catppuccin-macchiato":()=>I(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]),"catppuccin-mocha":()=>I(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]),"dark-plus":()=>I(()=>import("./dark-plus-C3mMm8J8.js"),[]),dracula:()=>I(()=>import("./dracula-BzJJZx-M.js"),[]),"dracula-soft":()=>I(()=>import("./dracula-soft-BXkSAIEj.js"),[]),"everforest-dark":()=>I(()=>import("./everforest-dark-BgDCqdQA.js"),[]),"everforest-light":()=>I(()=>import("./everforest-light-C8M2exoo.js"),[]),"github-dark":()=>I(()=>import("./github-dark-DHJKELXO.js"),[]),"github-dark-default":()=>I(()=>import("./github-dark-default-Cuk6v7N8.js"),[]),"github-dark-dimmed":()=>I(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]),"github-dark-high-contrast":()=>I(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]),"github-light":()=>I(()=>import("./github-light-DAi9KRSo.js"),[]),"github-light-default":()=>I(()=>import("./github-light-default-D7oLnXFd.js"),[]),"github-light-high-contrast":()=>I(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]),"gruvbox-dark-hard":()=>I(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]),"gruvbox-dark-medium":()=>I(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]),"gruvbox-dark-soft":()=>I(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]),"gruvbox-light-hard":()=>I(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]),"gruvbox-light-medium":()=>I(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]),"gruvbox-light-soft":()=>I(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]),horizon:()=>I(()=>import("./horizon-BUw7H-hv.js"),[]),"horizon-bright":()=>I(()=>import("./horizon-bright-CUuTKBJd.js"),[]),houston:()=>I(()=>import("./houston-DnULxvSX.js"),[]),"kanagawa-dragon":()=>I(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]),"kanagawa-lotus":()=>I(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]),"kanagawa-wave":()=>I(()=>import("./kanagawa-wave-DWedfzmr.js"),[]),laserwave:()=>I(()=>import("./laserwave-DUszq2jm.js"),[]),"light-plus":()=>I(()=>import("./light-plus-B7mTdjB0.js"),[]),"material-theme":()=>I(()=>import("./material-theme-D5KoaKCx.js"),[]),"material-theme-darker":()=>I(()=>import("./material-theme-darker-BfHTSMKl.js"),[]),"material-theme-lighter":()=>I(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]),"material-theme-ocean":()=>I(()=>import("./material-theme-ocean-CyktbL80.js"),[]),"material-theme-palenight":()=>I(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]),"min-dark":()=>I(()=>import("./min-dark-CafNBF8u.js"),[]),"min-light":()=>I(()=>import("./min-light-CTRr51gU.js"),[]),monokai:()=>I(()=>import("./monokai-D4h5O-jR.js"),[]),"night-owl":()=>I(()=>import("./night-owl-C39BiMTA.js"),[]),"night-owl-light":()=>I(()=>import("./night-owl-light-CMTm3GFP.js"),[]),nord:()=>I(()=>import("./nord-Ddv68eIx.js"),[]),"one-dark-pro":()=>I(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]),"one-light":()=>I(()=>import("./one-light-C3Wv6jpd.js"),[]),plastic:()=>I(()=>import("./plastic-3e1v2bzS.js"),[]),poimandres:()=>I(()=>import("./poimandres-CS3Unz2-.js"),[]),red:()=>I(()=>import("./red-bN70gL4F.js"),[]),"rose-pine":()=>I(()=>import("./rose-pine-qdsjHGoJ.js"),[]),"rose-pine-dawn":()=>I(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[]),"rose-pine-moon":()=>I(()=>import("./rose-pine-moon-D4_iv3hh.js"),[]),"slack-dark":()=>I(()=>import("./slack-dark-BthQWCQV.js"),[]),"slack-ochin":()=>I(()=>import("./slack-ochin-DqwNpetd.js"),[]),"snazzy-light":()=>I(()=>import("./snazzy-light-Bw305WKR.js"),[]),"solarized-dark":()=>I(()=>import("./solarized-dark-DXbdFlpD.js"),[]),"solarized-light":()=>I(()=>import("./solarized-light-L9t79GZl.js"),[]),"synthwave-84":()=>I(()=>import("./synthwave-84-CbfX1IO0.js"),[]),"tokyo-night":()=>I(()=>import("./tokyo-night-hegEt444.js"),[]),vesper:()=>I(()=>import("./vesper-DU1UobuO.js"),[]),"vitesse-black":()=>I(()=>import("./vitesse-black-Bkuqu6BP.js"),[]),"vitesse-dark":()=>I(()=>import("./vitesse-dark-D0r3Knsf.js"),[]),"vitesse-light":()=>I(()=>import("./vitesse-light-CVO1_9PV.js"),[])};function er(e){return xs({name:e,collection:Da,colorScheme:Na(e),load:za[e]})}const Ts=At({themes:Object.freeze([...Es.map(e=>er(e)),..._a.map(e=>er(e))])});At({themes:[ws,Ts]});function Ba(e){if(Ls())throw new Error(`Theme "${e}" cannot be resolved from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);if(_e.hasRegisteredTheme(e))return;const t=Ts.getTheme(e);if(t!=null){_e.registerThemeIfAbsent(t.name,t.load);return}throw new Error(`No valid theme loader registered for "${e}"`)}function Va(e,t){if(t.name!==e)throw new Error(`resolvedTheme: themeName: ${e} does not match theme.name: ${t.name}`)}async function Ua(e){Ba(e);const t=await _e.resolveTheme(e);return Va(e,t),t}function Wa(e){return _e.getResolvedTheme(e)??Ua(e)}let ke;async function As({themes:e,langs:t,preferredHighlighter:n="shiki-js"}){ke??=Vo({themes:[],langs:["text"],engine:n==="shiki-wasm"?Uo(I(()=>import("./wasm-CG6Dc4jp.js"),[])):Wo()});const i=$a(ke)?await ke:ke;ke=i;const r=[];for(const o of t){if(o==="text"||o==="ansi")continue;const a=wa(o);"then"in a?r.push(a):Qi(a,i)}const s=[];for(const o of e){const a=Wa(o);"then"in a?s.push(a):Ji(a,ke)}return(r.length>0||s.length>0)&&await Promise.all([Promise.all(r).then(o=>{Qi(o,i)}),Promise.all(s).then(o=>{Ji(o,i)})]),i}function Rs(){if(ke!=null&&!("then"in ke))return ke}function $a(e=ke){return e!=null&&"then"in e}for(const e of ws.getThemes())_e.registerThemeIfAbsent(e.name,e.load);function _i(e=J){const t=[];return typeof e=="string"?t.push(e):(t.push(e.dark),t.push(e.light)),t}function Ga(e){return _e.hasResolvedThemes(e)}function et(e,t){return mt(e.theme,t.theme)&&e.useTokenTransformer===t.useTokenTransformer&&e.tokenizeMaxLineLength===t.tokenizeMaxLineLength}const tt=new Map,St={"1c":"1c",abap:"abap",as:"actionscript-3",ada:"ada",adb:"ada",ads:"ada",adoc:"asciidoc",asciidoc:"asciidoc","component.html":"angular-html","component.ts":"angular-ts",conf:"nginx",htaccess:"apache",cls:"tex",trigger:"apex",apl:"apl",applescript:"applescript",scpt:"applescript",ara:"ara",asm:"asm",s:"riscv",astro:"astro",awk:"awk",bal:"ballerina",sh:"zsh",bash:"zsh",bat:"cmd",cmd:"cmd",be:"berry",beancount:"beancount",bib:"bibtex",bicep:"bicep","blade.php":"blade",bsl:"bsl",c:"c",h:"objective-cpp",cs:"csharp",cpp:"cpp",hpp:"cpp",cc:"cpp",cxx:"cpp",hh:"cpp",cdc:"cdc",cairo:"cairo",clar:"clarity",clj:"clojure",cljs:"clojure",cljc:"clojure",soy:"soy",cmake:"cmake","CMakeLists.txt":"cmake",cob:"cobol",cbl:"cobol",cobol:"cobol",CODEOWNERS:"codeowners",ql:"ql",coffee:"coffeescript",lisp:"lisp",cl:"lisp",lsp:"lisp",log:"log",v:"verilog",cql:"cql",cr:"crystal",css:"css",csv:"csv",cue:"cue",cypher:"cypher",cyp:"cypher",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",patch:"diff",Dockerfile:"dockerfile",dockerfile:"dockerfile",env:"dotenv",dm:"dream-maker",edge:"edge",el:"emacs-lisp",ex:"elixir",exs:"elixir",elm:"elm",erb:"erb",erl:"erlang",hrl:"erlang",f:"fortran-fixed-form",for:"fortran-fixed-form",fs:"fsharp",fsi:"fsharp",fsx:"fsharp",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"fortran-free-form",f95:"fortran-free-form",fnl:"fennel",fish:"fish",ftl:"ftl",tres:"gdresource",res:"gdresource",gd:"gdscript",gdshader:"gdshader",gs:"genie",feature:"gherkin",COMMIT_EDITMSG:"git-commit","git-rebase-todo":"git-rebase",gjs:"glimmer-js",gleam:"gleam",gts:"glimmer-ts",glsl:"glsl",vert:"glsl",frag:"glsl",shader:"shaderlab",gp:"gnuplot",plt:"gnuplot",gnuplot:"gnuplot",go:"go",graphql:"graphql",gql:"graphql",groovy:"groovy",gvy:"groovy",hack:"hack",haml:"haml",hbs:"handlebars",handlebars:"handlebars",hs:"haskell",lhs:"haskell",hx:"haxe",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",fx:"hlsl",html:"html",htm:"html",http:"http",rest:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",cfg:"ini",jade:"pug",pug:"pug",java:"java",js:"javascript",mjs:"javascript",cjs:"javascript",jinja:"jinja",jinja2:"jinja",j2:"jinja",jison:"jison",jl:"julia",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",libsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",kt:"kotlin",kts:"kts",kql:"kusto",tex:"tex",ltx:"tex",lean:"lean4",less:"less",liquid:"liquid",lit:"lit",ll:"llvm",logo:"logo",lua:"lua",luau:"luau",Makefile:"makefile",mk:"makefile",makefile:"makefile",md:"markdown",markdown:"markdown",marko:"marko",m:"wolfram",mat:"matlab",mdc:"mdc",mdx:"mdx",wiki:"wikitext",mediawiki:"wikitext",mmd:"mermaid",mermaid:"mermaid",mips:"mipsasm",mojo:"mojo","🔥":"mojo",move:"move",nar:"narrat",nf:"nextflow",nim:"nim",nims:"nim",nimble:"nim",nix:"nix",nu:"nushell",mm:"objective-cpp",ml:"ocaml",mli:"ocaml",mll:"ocaml",mly:"ocaml",pas:"pascal",p:"pascal",pl:"prolog",pm:"perl",t:"perl",raku:"raku",p6:"raku",pl6:"raku",php:"php",phtml:"php",pls:"plsql",sql:"sql",po:"po",polar:"polar",pcss:"postcss",pot:"pot",potx:"potx",pq:"powerquery",pqm:"powerquery",ps1:"powershell",psm1:"powershell",psd1:"powershell",prisma:"prisma",pro:"prolog",P:"prolog",properties:"properties",proto:"protobuf",pp:"puppet",purs:"purescript",py:"python",pyw:"python",pyi:"python",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",R:"r",rkt:"racket",rktl:"racket",razor:"razor",cshtml:"razor",rb:"ruby",rbw:"ruby",reg:"reg",regex:"regexp",rel:"rel",rs:"rust",rst:"rst",rake:"ruby",gemspec:"ruby",jbuilder:"ruby",builder:"ruby",rabl:"ruby",arb:"ruby",ru:"ruby",podspec:"ruby",Gemfile:"ruby",Rakefile:"ruby",Guardfile:"ruby",Capfile:"ruby",Berksfile:"ruby",Brewfile:"ruby",Vagrantfile:"ruby",Thorfile:"ruby",Appraisals:"ruby",Dangerfile:"ruby",sas:"sas",sass:"sass",scala:"scala",sc:"scala",scm:"scheme",ss:"scheme",sld:"scheme",scss:"scss",sdbl:"sdbl",shadergraph:"shader",st:"smalltalk",sol:"solidity",sparql:"sparql",rq:"sparql",spl:"splunk",config:"ssh-config",do:"stata",ado:"stata",dta:"stata",styl:"stylus",stylus:"stylus",svelte:"svelte",swift:"swift",sv:"system-verilog",svh:"system-verilog",service:"systemd",socket:"systemd",device:"systemd",timer:"systemd",talon:"talonscript",tasl:"tasl",tcl:"tcl",templ:"templ",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"typescript",mts:"typescript",cts:"typescript",tsp:"typespec",tsv:"tsv",tsx:"tsx",ttl:"turtle",twig:"twig",typ:"typst",vv:"v",vala:"vala",vapi:"vala",vb:"vb",vbs:"vb",bas:"vb",vh:"verilog",vhd:"vhdl",vhdl:"vhdl",vim:"vimscript",vue:"vue","vine.ts":"vue-vine",vy:"vyper",wasm:"wasm",wat:"wasm",wy:"文言",wgsl:"wgsl",wit:"wit",wl:"wolfram",nb:"wolfram",xml:"xml",xsl:"xsl",xslt:"xsl",yaml:"yaml",yml:"yml",zs:"zenscript",zig:"zig",zsh:"zsh",sty:"tex"};function he(e){if(tt.has(e))return tt.get(e)??"text";if(St[e]!=null)return St[e];const t=e.match(/\.([^/\\]+\.[^/\\]+)$/);if(t!=null){if(tt.has(t[1]))return tt.get(t[1])??"text";if(St[t[1]]!=null)return St[t[1]]??"text"}const n=e.match(/\.([^.]+)$/)?.[1]??"";return tt.has(n)?tt.get(n)??"text":St[n]??"text"}function ii(e){return(e.lang??he(e.name))==="text"}const un=10,fn=13,ja=4,Ka=40;function Fi(e){const t=[0];let n=e.indexOf("\r"),i=e.indexOf(`
2
2
  `),r=0,s=0;for(;n!==-1||i!==-1;){let o;if(n!==-1&&(i===-1||n<i)?i===n+1?(o=i+1,n=e.indexOf("\r",o),i=e.indexOf(`
3
3
  `,o)):(o=n+1,n=e.indexOf("\r",o)):(o=i+1,i=e.indexOf(`
4
4
  `,o)),t.push(o),++s===ja){if(o-r<=Ka){for(let a=o;a<e.length;a++){const l=e.charCodeAt(a);(l===un||l===fn)&&(l===fn&&a+1<e.length&&e.charCodeAt(a+1)===un&&a++,t.push(a+1))}return t}r=o,s=0}}return t}function qa(e){let t=0;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);(i===un||i===fn)&&(i===fn&&n+1<e.length&&e.charCodeAt(n+1)===un&&n++,t++)}return t}function nn(e){const t=Fi(e);return Array.from({length:t.length},(n,i)=>{const r=t[i],s=t[i+1]??e.length;return e.slice(r,s)})}function Te(e){return{type:"text",value:e}}function F({tagName:e,children:t=[],properties:n={}}){return{type:"element",tagName:e,properties:n,children:t}}function pn({name:e,width:t=16,height:n=16,properties:i}){return F({tagName:"svg",properties:{width:t,height:n,viewBox:"0 0 16 16",...i},children:[F({tagName:"use",properties:{href:`#${e.replace(/^#/,"")}`}})]})}function Ya(e){let t=e.children[0];for(;t!=null;){if(t.type==="element"&&t.tagName==="code")return t;"children"in t?t=t.children[0]:t=null}}function rt(e){return F({tagName:"div",properties:{"data-gutter":""},children:e})}function Is(e,t,n,i={}){return F({tagName:"div",properties:{"data-line-type":e,"data-column-number":t,"data-line-index":n,...i},children:t!=null?[F({tagName:"span",properties:{"data-line-number-content":""},children:[Te(`${t}`)]})]:void 0})}function ge(e,t,n){return F({tagName:"div",properties:{"data-gutter-buffer":t,"data-buffer-size":n,"data-line-type":t==="annotation"?void 0:e,style:t==="annotation"?`grid-row: span ${n};`:`grid-row: span ${n};min-height:calc(${n} * 1lh);`}})}function Xa(e,t,n){const i=typeof n.lineInfo=="function"?n.lineInfo(t):n.lineInfo[t-1];if(i==null){const r=`processLine: line ${t}, contains no state.lineInfo`;throw console.error(r,{node:e,line:t,state:n}),new Error(r)}return e.tagName="div",e.properties["data-line"]=i.lineNumber,e.properties["data-alt-line"]=i.altLineNumber,e.properties["data-line-type"]=i.type,e.properties["data-line-index"]=i.lineIndex,e.children.length===0&&e.children.push(Te(`
@@ -1,4 +1,4 @@
1
- import{T as Xt,f as st,Q as j,j as E,L as zt,B as A,P as rt,c as Ft,u as Zt,r as P,a as jt}from"./app-BCXQnJUH.js";const I=new Set(["input","option","optgroup","select","button","datalist","textarea"]),f=new Set(["p"]),ot=new Set(["thead","tbody"]),it=new Set(["dd","dt"]),at=new Set(["rt","rp"]),Bt=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",f],["h1",f],["h2",f],["h3",f],["h4",f],["h5",f],["h6",f],["select",I],["input",I],["output",I],["button",I],["datalist",I],["textarea",I],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",it],["dt",it],["address",f],["article",f],["aside",f],["blockquote",f],["details",f],["div",f],["dl",f],["fieldset",f],["figcaption",f],["figure",f],["footer",f],["form",f],["header",f],["hr",f],["main",f],["nav",f],["ol",f],["pre",f],["section",f],["table",f],["ul",f],["rt",at],["rp",at],["tbody",ot],["tfoot",ot]]),Vt=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),ct=new Set(["math","svg"]),lt=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),Wt=/\s|\//;class Ht{constructor(t,n={}){var s,r,o,i,a;this.options=n,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t??{},this.lowerCaseTagNames=(s=n.lowerCaseTags)!==null&&s!==void 0?s:!n.xmlMode,this.lowerCaseAttributeNames=(r=n.lowerCaseAttributeNames)!==null&&r!==void 0?r:!n.xmlMode,this.tokenizer=new((o=n.Tokenizer)!==null&&o!==void 0?o:Xt)(this.options,this),(a=(i=this.cbs).onparserinit)===null||a===void 0||a.call(i,this)}ontext(t,n){var s,r;const o=this.getSlice(t,n);this.endIndex=n-1,(r=(s=this.cbs).ontext)===null||r===void 0||r.call(s,o),this.startIndex=n}ontextentity(t){var n,s;const r=this.tokenizer.getSectionStart();this.endIndex=r-1,(s=(n=this.cbs).ontext)===null||s===void 0||s.call(n,st(t)),this.startIndex=r}isVoidElement(t){return!this.options.xmlMode&&Vt.has(t)}onopentagname(t,n){this.endIndex=n;let s=this.getSlice(t,n);this.lowerCaseTagNames&&(s=s.toLowerCase()),this.emitOpenTag(s)}emitOpenTag(t){var n,s,r,o;this.openTagStart=this.startIndex,this.tagname=t;const i=!this.options.xmlMode&&Bt.get(t);if(i)for(;this.stack.length>0&&i.has(this.stack[this.stack.length-1]);){const a=this.stack.pop();(s=(n=this.cbs).onclosetag)===null||s===void 0||s.call(n,a,!0)}this.isVoidElement(t)||(this.stack.push(t),ct.has(t)?this.foreignContext.push(!0):lt.has(t)&&this.foreignContext.push(!1)),(o=(r=this.cbs).onopentagname)===null||o===void 0||o.call(r,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var n,s;this.startIndex=this.openTagStart,this.attribs&&((s=(n=this.cbs).onopentag)===null||s===void 0||s.call(n,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,n){var s,r,o,i,a,c;this.endIndex=n;let h=this.getSlice(t,n);if(this.lowerCaseTagNames&&(h=h.toLowerCase()),(ct.has(h)||lt.has(h))&&this.foreignContext.pop(),this.isVoidElement(h))!this.options.xmlMode&&h==="br"&&((r=(s=this.cbs).onopentagname)===null||r===void 0||r.call(s,"br"),(i=(o=this.cbs).onopentag)===null||i===void 0||i.call(o,"br",{},!0),(c=(a=this.cbs).onclosetag)===null||c===void 0||c.call(a,"br",!1));else{const u=this.stack.lastIndexOf(h);if(u!==-1)if(this.cbs.onclosetag){let l=this.stack.length-u;for(;l--;)this.cbs.onclosetag(this.stack.pop(),l!==0)}else this.stack.length=u;else!this.options.xmlMode&&h==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=n+1}onselfclosingtag(t){this.endIndex=t,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var n,s;const r=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===r&&((s=(n=this.cbs).onclosetag)===null||s===void 0||s.call(n,r,!t),this.stack.pop())}onattribname(t,n){this.startIndex=t;const s=this.getSlice(t,n);this.attribname=this.lowerCaseAttributeNames?s.toLowerCase():s}onattribdata(t,n){this.attribvalue+=this.getSlice(t,n)}onattribentity(t){this.attribvalue+=st(t)}onattribend(t,n){var s,r;this.endIndex=n,(r=(s=this.cbs).onattribute)===null||r===void 0||r.call(s,this.attribname,this.attribvalue,t===j.Double?'"':t===j.Single?"'":t===j.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){const n=t.search(Wt);let s=n<0?t:t.substr(0,n);return this.lowerCaseTagNames&&(s=s.toLowerCase()),s}ondeclaration(t,n){this.endIndex=n;const s=this.getSlice(t,n);if(this.cbs.onprocessinginstruction){const r=this.getInstructionName(s);this.cbs.onprocessinginstruction(`!${r}`,`!${s}`)}this.startIndex=n+1}onprocessinginstruction(t,n){this.endIndex=n;const s=this.getSlice(t,n);if(this.cbs.onprocessinginstruction){const r=this.getInstructionName(s);this.cbs.onprocessinginstruction(`?${r}`,`?${s}`)}this.startIndex=n+1}oncomment(t,n,s){var r,o,i,a;this.endIndex=n,(o=(r=this.cbs).oncomment)===null||o===void 0||o.call(r,this.getSlice(t,n-s)),(a=(i=this.cbs).oncommentend)===null||a===void 0||a.call(i),this.startIndex=n+1}oncdata(t,n,s){var r,o,i,a,c,h,u,l,d,m;this.endIndex=n;const b=this.getSlice(t,n-s);this.options.xmlMode||this.options.recognizeCDATA?((o=(r=this.cbs).oncdatastart)===null||o===void 0||o.call(r),(a=(i=this.cbs).ontext)===null||a===void 0||a.call(i,b),(h=(c=this.cbs).oncdataend)===null||h===void 0||h.call(c)):((l=(u=this.cbs).oncomment)===null||l===void 0||l.call(u,`[CDATA[${b}]]`),(m=(d=this.cbs).oncommentend)===null||m===void 0||m.call(d)),this.startIndex=n+1}onend(){var t,n;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let s=this.stack.length;s>0;this.cbs.onclosetag(this.stack[--s],!0));}(n=(t=this.cbs).onend)===null||n===void 0||n.call(t)}reset(){var t,n,s,r;(n=(t=this.cbs).onreset)===null||n===void 0||n.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(r=(s=this.cbs).onparserinit)===null||r===void 0||r.call(s,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,n){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let s=this.buffers[0].slice(t-this.bufferOffset,n-this.bufferOffset);for(;n-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),s+=this.buffers[0].slice(0,n-this.bufferOffset);return s}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var n,s;if(this.ended){(s=(n=this.cbs).onerror)===null||s===void 0||s.call(n,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)}end(t){var n,s;if(this.ended){(s=(n=this.cbs).onerror)===null||s===void 0||s.call(n,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(t){this.write(t)}done(t){this.end(t)}}const Et=67324752,St=33639248,yt=101010256,Yt=1,Gt=8,Kt=64,Q=0,vt=8,Qt=12*1024*1024,X=128,kt=10*1024*1024,$=2*1024*1024,_t=100,Ct=new TextEncoder,qt=new TextDecoder("utf-8");function _(e){return Ct.encode(e)}function q(e){return qt.decode(e)}function It(e){return Ct.encode(e).byteLength}function T(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Tt(e){const t=e.reduce((r,o)=>r+o.byteLength,0),n=new Uint8Array(t);let s=0;for(const r of e)n.set(r,s),s+=r.byteLength;return n}async function $t(e,t,n){const s=e.getReader(),r=[];let o=0;try{for(;;){const{done:i,value:a}=await s.read();if(i)break;if(o+=a.byteLength,o>t)throw await s.cancel(),new Error(`ZIP entry ${n} inflated beyond its declared size.`);r.push(a)}}finally{s.releaseLock()}return Tt(r)}function Lt(e){const t=new Uint8Array(e.byteLength);return t.set(e),new ReadableStream({start(n){n.enqueue(t),n.close()}})}async function Jt(e,t,n){const s=Lt(e).pipeThrough(new DecompressionStream("deflate-raw"));return await $t(s,t,n)}async function te(e){const t=Lt(e).pipeThrough(new CompressionStream("deflate-raw"));return await $t(t,$+1024,"(deflate)")}function ee(e){const t=T(e),n=Math.max(0,e.byteLength-65535-22);for(let s=e.byteLength-22;s>=n;s-=1){if(s<0||t.getUint32(s,!0)!==yt)continue;const r=t.getUint16(s+20,!0);if(s+22+r===e.byteLength)return s}throw new Error("ZIP end-of-central-directory not found.")}function Rt(e,t){if((e&Yt)!==0)throw new Error(`ZIP entry ${t} is encrypted.`);if((e&Kt)!==0)throw new Error(`ZIP entry ${t} uses strong encryption.`)}function ht(e,t,n){return t===n?!0:(e&Gt)!==0&&t===0}function ne(e){if(e.byteLength>Qt)throw new Error("ZIP input exceeds compressed byte limit.");const t=T(e),n=ee(e),s=t.getUint16(n+4,!0),r=t.getUint16(n+6,!0),o=t.getUint16(n+8,!0),i=t.getUint16(n+10,!0),a=t.getUint32(n+12,!0),c=t.getUint32(n+16,!0),h=c+a;if(s!==0||r!==0||o!==i)throw new Error("Multi-disk ZIP archives are not supported.");if(i===65535||a===4294967295||c===4294967295)throw new Error("ZIP64 archives are not supported.");if(i>X)throw new Error(`ZIP entry count ${i} exceeds limit ${X}.`);if(c+a>e.byteLength)throw new Error("ZIP central directory is out of bounds.");if(h>n)throw new Error("ZIP central directory overlaps the end-of-central-directory record.");const u=[];let l=c,d=0;for(let m=0;m<i;m+=1){if(l+46>h||t.getUint32(l,!0)!==St)throw new Error("Invalid ZIP central directory entry.");const b=t.getUint16(l+8,!0),x=t.getUint16(l+10,!0),w=t.getUint32(l+20,!0),p=t.getUint32(l+24,!0),g=t.getUint16(l+28,!0),k=t.getUint16(l+30,!0),v=t.getUint16(l+32,!0),y=t.getUint32(l+42,!0);if(w===4294967295||p===4294967295||y===4294967295)throw new Error("ZIP64 archives are not supported.");if(l+46+g+k+v>h)throw new Error("ZIP central directory entry is out of bounds.");const S=q(e.subarray(l+46,l+46+g));if(Rt(b,S),x!==Q&&x!==vt)throw new Error(`ZIP entry ${S} uses unsupported compression method ${x}.`);if(p>$)throw new Error(`ZIP entry ${S} exceeds per-entry uncompressed limit.`);if(p>0&&w===0)throw new Error(`ZIP entry ${S} has an invalid compression ratio.`);if(w>0&&p/w>_t)throw new Error(`ZIP entry ${S} exceeds compression ratio limit.`);if(d+=p,d>kt)throw new Error("ZIP archive exceeds total uncompressed limit.");u.push({name:S,flags:b,method:x,compressedSize:w,uncompressedSize:p,localOffset:y}),l+=46+g+k+v}if(l!==h)throw new Error("ZIP central directory size does not match its entries.");return u}async function se(e,t){const n=T(e),s=t.localOffset;if(s+30>e.byteLength||n.getUint32(s,!0)!==Et)throw new Error(`Invalid local ZIP header for ${t.name}.`);const r=n.getUint16(s+6,!0),o=n.getUint16(s+8,!0),i=n.getUint32(s+18,!0),a=n.getUint32(s+22,!0),c=n.getUint16(s+26,!0),h=n.getUint16(s+28,!0);if(Rt(r,t.name),o!==t.method)throw new Error(`ZIP method mismatch for ${t.name}.`);if(!ht(r,i,t.compressedSize)||!ht(r,a,t.uncompressedSize))throw new Error(`ZIP size mismatch for ${t.name}.`);if(s+30+c+h>e.byteLength)throw new Error(`ZIP local header for ${t.name} is out of bounds.`);if(q(e.subarray(s+30,s+30+c))!==t.name)throw new Error(`ZIP local header name mismatch for ${t.name}.`);const l=s+30+c+h;if(l+t.compressedSize>e.byteLength)throw new Error(`ZIP data for ${t.name} is out of bounds.`);const d=e.subarray(l,l+t.compressedSize),m=t.method===Q?d.slice():await Jt(d,t.uncompressedSize,t.name);if(m.byteLength!==t.uncompressedSize)throw new Error(`ZIP uncompressed size mismatch for ${t.name}.`);return m}function re(e){const t=new Map;for(const n of e)t.set(n.name,n);return t}async function L(e,t,n){const s=t.get(n);if(!s)return null;const r=q(await se(e,s));return Mt(r),r}let O=null;function oe(e){if(!O){O=new Uint32Array(256);for(let n=0;n<256;n+=1){let s=n;for(let r=0;r<8;r+=1)s=s&1?3988292384^s>>>1:s>>>1;O[n]=s>>>0}}let t=4294967295;for(const n of e)t=O[(t^n)&255]^t>>>8;return(t^4294967295)>>>0}async function ie(e){if(e.length>X)throw new Error(`ZIP entry count ${e.length} exceeds limit ${X}.`);const t=[],n=[];let s=0,r=0;for(const c of e){if(c.data.byteLength>$)throw new Error(`ZIP entry ${c.name} exceeds per-entry uncompressed limit.`);if(r+=c.data.byteLength,r>kt)throw new Error("ZIP archive exceeds total uncompressed limit.");const h=await te(c.data),u=h.byteLength<c.data.byteLength&&c.data.byteLength/Math.max(1,h.byteLength)<=_t,l=u?h:c.data,d=u?vt:Q,m=_(c.name),b=oe(c.data),x=new Uint8Array(30),w=T(x);w.setUint32(0,Et,!0),w.setUint16(4,20,!0),w.setUint16(6,0,!0),w.setUint16(8,d,!0),w.setUint32(14,b,!0),w.setUint32(18,l.byteLength,!0),w.setUint32(22,c.data.byteLength,!0),w.setUint16(26,m.byteLength,!0),t.push(x,m,l);const p=new Uint8Array(46),g=T(p);g.setUint32(0,St,!0),g.setUint16(4,20,!0),g.setUint16(6,20,!0),g.setUint16(8,0,!0),g.setUint16(10,d,!0),g.setUint32(16,b,!0),g.setUint32(20,l.byteLength,!0),g.setUint32(24,c.data.byteLength,!0),g.setUint16(28,m.byteLength,!0),g.setUint32(42,s,!0),n.push(p,m),s+=x.byteLength+m.byteLength+l.byteLength}const o=n.reduce((c,h)=>c+h.byteLength,0),i=new Uint8Array(22),a=T(i);return a.setUint32(0,yt,!0),a.setUint16(8,e.length,!0),a.setUint16(10,e.length,!0),a.setUint32(12,o,!0),a.setUint32(16,s,!0),Tt([...t,...n,i])}function Mt(e){if(It(e)>$)throw new Error("Office XML exceeds the parser input limit.");const t=e.toLowerCase();if(t.includes("<!doctype")||t.includes("<!entity"))throw new Error("Office XML DTD and entity declarations are not supported.")}function ut(e){const t=e.lastIndexOf(":");return(t===-1?e:e.slice(t+1)).toLowerCase()}function z(e,t){Mt(e);let n="",s=0;const r=t||" ";return new Ht({onopentag(i){s>0?s+=1:ut(i)==="script"||ut(i)==="style"?(n+=r,s=1):n+=t},ontext(i){s===0&&(n+=i)},onclosetag(){s>0?(s-=1,s===0&&(n+=r)):n+=t}},{decodeEntities:!0,xmlMode:!0}).end(e),n}function ae(e){return z(`<openwork-value>${e}</openwork-value>`,"")}function Ut(e){return z(e," ").replace(/\s+/g," ").trim()}function J(e){return`(?:[A-Za-z_][\\w.-]*:)?${e}`}function tt(e){const t={},n=/([\w:.-]+)\s*=\s*(?:"([^"]*)"|'([^']*)')/g;let s;for(;s=n.exec(e);){const r=s[1],o=s[2]??s[3]??"";t[r]=ae(o)}return t}function M(e,t){const n=J(t),s=new RegExp(`<${n}\\b([^>]*)>([\\s\\S]*?)<\\/${n}>`,"g"),r=[];let o;for(;o=s.exec(e);)r.push({attributes:tt(o[1]),inner:o[2]});return r}function C(e,t){const n=J(t),s=new RegExp(`<${n}\\b([^>]*)\\/?\\s*>`,"g"),r=[];let o;for(;o=s.exec(e);)r.push(tt(o[1]));return r}function ce(e,t){const n=M(e,t)[0];if(n)return z(n.inner,"").trim()}function B(e,t){const n=J(t),s=new RegExp(`<${n}\\b([^>]*?)(\\/>|>([\\s\\S]*?)<\\/${n}>)`,"g"),r=[];let o;for(;o=s.exec(e);)r.push({attributes:tt(o[1]),inner:o[3]??""});return r}function W(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/[\u0000-\u0008\u000b\u000c\u000e-\u001f]/g,"")}function dt(...e){const t=[];for(const n of e.join("/").split("/"))!n||n==="."||(n===".."?t.pop():t.push(n));return t.join("/")}function le(e,t){const n=new Map;if(!e)return n;for(const s of C(e,"Relationship")){const r=s.Id,o=s.Target;!r||!o||s.TargetMode==="External"||/^[a-z][a-z0-9+.-]*:/i.test(o)||n.set(r,o.startsWith("/")?dt(o.slice(1)):dt(t,o))}return n}const he=64,ue=2e5,de=25e4,ft=32,mt=5e4,H=1048576,Y=16384,pt=31,gt=32767,wt=Date.UTC(1899,11,30),fe=Date.UTC(1904,0,1),V=864e5;function G(e){let t=e,n="";for(;t>0;){const s=(t-1)%26;n=String.fromCharCode(65+s)+n,t=Math.floor((t-1)/26)}return n}function me(e){let t=0;for(const n of e.toUpperCase()){const s=n.charCodeAt(0);if(s<65||s>90)return 0;t=t*26+(s-64)}return t}function K(e){const t=/^\$?([A-Za-z]{1,3})\$?(\d{1,7})$/.exec(e.trim());if(!t)return null;const n=me(t[1]),s=Number.parseInt(t[2],10);return n<1||n>Y||s<1||s>H?null:{row:s,column:n}}function pe(e){const t=e.trim(),[n,s=n]=t.split(":"),r=K(n),o=K(s);return!r||!o?null:{firstRow:Math.min(r.row,o.row),lastRow:Math.max(r.row,o.row),firstColumn:Math.min(r.column,o.column),lastColumn:Math.max(r.column,o.column)}}function ge(e,t){const n=le(t,"xl"),s=C(e,"sheet"),r=s.slice(0,he).map((o,i)=>{const a=o["r:id"]??o.id??"",c=a&&n.has(a)?n.get(a)??"":`xl/worksheets/sheet${i+1}.xml`;return{position:i+1,name:o.name??`Sheet${i+1}`,sheetId:o.sheetId??String(i+1),relationshipId:a,path:c,hidden:o.state==="hidden"||o.state==="veryHidden"}});return{sheets:r,omittedSheets:s.length-r.length}}function Nt(e){return M(e,"t").map(n=>z(n.inner,"")).join("").trim()||Ut(e)}function we(e){if(!e)return[];const t=[];for(const n of M(e,"si")){if(t.length>=ue)break;t.push(Nt(n.inner))}return t}function be(e){switch(e){case"0":return"General";case"1":return"0";case"2":return"0.00";case"3":return"#,##0";case"4":return"#,##0.00";case"9":return"0%";case"10":return"0.00%";case"11":return"0.00E+00";case"14":return"mm-dd-yy";case"15":return"d-mmm-yy";case"16":return"d-mmm";case"17":return"mmm-yy";case"18":return"h:mm AM/PM";case"19":return"h:mm:ss AM/PM";case"20":return"h:mm";case"21":return"h:mm:ss";case"22":return"m/d/yy h:mm";case"27":case"28":case"29":case"30":case"31":case"36":case"50":case"51":case"52":case"53":case"54":case"57":case"58":return"yyyy-mm-dd";case"32":case"33":case"34":case"35":case"55":case"56":return"h:mm:ss";case"45":return"mm:ss";case"46":return"[h]:mm:ss";case"47":return"mmss.0";case"49":return"@";default:return""}}function xe(e){if(!e)return[];const t=new Map;for(const s of C(e,"numFmt"))s.numFmtId&&s.formatCode&&t.set(s.numFmtId,s.formatCode);const n=M(e,"cellXfs")[0]?.inner??"";return C(n,"xf").map(s=>{const r=s.numFmtId??"0";return t.get(r)??be(r)})}function Ee(e){if(!e||e==="General"||e==="@")return!1;const t=e.replace(/"[^"]*"/g,"").replace(/\[[^\]]*\]/g,"").replace(/\\./g,"").replace(/[Ee][+-]/g,"");return/[ymdhs]/i.test(t)}function R(e,t=2){return String(e).padStart(t,"0")}function Se(e,t=!1){if(!Number.isFinite(e)||e<0||e>2958465)return null;const n=t?fe:e<60?wt+V:wt,s=Math.round(e*V),r=new Date(n+s);if(Number.isNaN(r.getTime()))return null;const o=`${R(r.getUTCHours())}:${R(r.getUTCMinutes())}:${R(r.getUTCSeconds())}`;if(e<1&&!t)return o;const i=`${r.getUTCFullYear()}-${R(r.getUTCMonth()+1)}-${R(r.getUTCDate())}`;return s%V===0?i:`${i} ${o}`}function ye(e){return e==="s"?"shared_string":e==="inlineStr"?"inline_string":e==="str"?"formula_string":e==="b"?"boolean":e==="e"?"error":e==="d"?"date":e||"number"}function ve(e,t,n,s,r,o){if(e==="inlineStr")return Nt(n)||void 0;if(e==="s"&&t!==void 0){const i=Number.parseInt(t,10);return Number.isInteger(i)?s[i]:void 0}return e==="b"&&t!==void 0?t==="1"?"TRUE":"FALSE":(e===""||e==="n")&&t!==void 0&&Ee(r)?Se(Number(t),o)??t:t}function ke(e,t,n,s,r){const o=C(e,"dimension")[0]?.ref??"",i=[];for(const d of C(e,"mergeCell"))d.ref&&i.push(d.ref);const a=M(e,"sheetData")[0]?.inner??e,c=[];let h=0,u=0,l=0;for(const d of B(a,"row")){const m=Number.parseInt(d.attributes.r??"",10),b=Number.isInteger(m)&&m>0?m:l+1;l=b;let x=0;for(const w of B(d.inner,"c")){const p=w.attributes,g=w.inner,k=p.r?K(p.r):null,v=k?.column??x+1,y=k?.row??b;x=v;const S=B(g,"f")[0],U=ce(g,"v"),F=p.t??"";if(S&&(u+=1),U===void 0&&!S&&F!=="inlineStr")continue;if(c.length>=r){h+=1;continue}const N=p.s,Z=N!==void 0?n[Number.parseInt(N,10)]:void 0,nt=ve(F,U,g,t,Z,s),Dt=S?Ut(S.inner):"";c.push({reference:`${G(v)}${y}`,row:y,column:v,type:ye(F),...N!==void 0?{styleIndex:N}:{},...Z?{numberFormat:Z}:{},...S?{formula:Dt}:{},...S?.attributes.t?{formulaType:S.attributes.t}:{},...S?.attributes.ref?{formulaRef:S.attributes.ref}:{},...U!==void 0?{rawValue:U}:{},...nt!==void 0?{displayedValue:nt}:{}})}}return{dimension:o,mergedRanges:i,cells:c,omittedCells:h,formulaCount:u}}function _e(e,t){const n=e.length===0&&t?pe(t):null;if(n)return n;if(e.length===0)return{firstRow:0,lastRow:0,firstColumn:0,lastColumn:0};let s=Number.POSITIVE_INFINITY,r=0,o=Number.POSITIVE_INFINITY,i=0;for(const a of e)s=Math.min(s,a.row),r=Math.max(r,a.row),o=Math.min(o,a.column),i=Math.max(i,a.column);return{firstRow:s,lastRow:r,firstColumn:o,lastColumn:i}}async function Ce(e){const t=re(ne(e)),n=await L(e,t,"xl/workbook.xml");if(!n)throw new Error("XLSX workbook.xml was not found.");const s=we(await L(e,t,"xl/sharedStrings.xml")),r=xe(await L(e,t,"xl/styles.xml")),{sheets:o,omittedSheets:i}=ge(n,await L(e,t,"xl/_rels/workbook.xml.rels"));if(o.length===0)throw new Error("XLSX workbook contained no sheets.");const a=C(n,"workbookPr").some(c=>c.date1904==="1"||c.date1904==="true");return{sheets:o,omittedSheets:i,sharedStringCount:s.length,styleCount:r.length,date1904:a,async readSheet(c,h={}){const u=c.path.startsWith("xl/worksheets/")&&c.path.endsWith(".xml")?c.path:"",l=u?await L(e,t,u):null;if(!l)throw new Error(`Worksheet XML for "${c.name}" was not found or was outside xl/worksheets.`);const d=ke(l,s,r,a,h.cellLimit??de);return{info:c,...d,..._e(d.cells,d.dimension)}}}}const Ie=25e4;function Te(e,t={}){if(e.cells.length===0)return[[""]];const n=t.maxCells??Ie;if(e.lastRow*e.lastColumn>n)throw new Error(`This sheet spans ${e.lastRow} rows by ${e.lastColumn} columns, which is too large to show as an editable grid.`);const s=Array.from({length:e.lastRow},()=>Array.from({length:e.lastColumn},()=>""));for(const r of e.cells)s[r.row-1][r.column-1]=t.formulas&&r.formula?`=${r.formula}`:r.displayedValue??r.rawValue??(r.formula?`=${r.formula}`:"");return s}const $e=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/,bt=8192,Le=/\b(DDE|WEBSERVICE|FILTERXML|RTD|CALL|REGISTER(?:\.ID)?|EXEC|SQL\.REQUEST|IMPORT(?:DATA|XML|HTML|FEED|RANGE)|IMAGE)\s*\(/i,Re=/\[[^\]]*\][^!'"(),;+\-*/^&=<>\[\]{}]*!|'[^']*\[[^\]]*\][^']*'!/u,Me=/'[^']*(?::\/\/|\\\\)[^']*'!/;function At(e){return typeof e=="object"&&e!==null&&typeof e.formula=="string"}function Ue(e){const t=e.trim().replace(/^=/,"");if(!t)return"is empty";if(t.length>bt)return`is longer than ${bt} characters`;if(t.includes("|"))return"contains a DDE-style external command reference";const n=Le.exec(t);return n?`uses ${n[1].toUpperCase()}, which reaches outside the workbook when it recalculates`:Re.test(t)?"references another workbook":Me.test(t)?"references a remote or network path":null}function Ne(e,t){const n=Ue(e.formula);if(n)throw new Error(`Formula in ${t} ${n}; only calculations inside the workbook are written. Write the value instead.`);return e.formula.trim().replace(/^=/,"")}function Ae(e){if(e==="")return null;if(e==="TRUE")return!0;if(e==="FALSE")return!1;if($e.test(e)){const t=Number(e);if(Number.isFinite(t))return t}return e}function Pe(e,t,n){let r=(e??"").replace(/[\u0000-\u001f\u007f[\]:*?/\\]/g," ").replace(/\s+/g," ").replace(/^'+|'+$/g,"").trim().slice(0,pt).trim()||`Sheet${t}`,o=2;for(;n.has(r.toLowerCase())||r.toLowerCase()==="history";)r=`${r.slice(0,pt-String(o).length-1)}-${o}`,o+=1;return n.add(r.toLowerCase()),r}function Oe(e,t,n){const s=n>0?` s="${n}"`:"";if(t===null||t==="")return"";if(typeof t=="number")return Number.isFinite(t)?`<c r="${e}"${s}><v>${t}</v></c>`:`<c r="${e}" t="e"${s}><v>#NUM!</v></c>`;if(typeof t=="boolean")return`<c r="${e}" t="b"${s}><v>${t?1:0}</v></c>`;if(At(t))return`<c r="${e}"${s}><f>${W(Ne(t,e))}</f></c>`;if(t.length>gt)throw new Error(`Cell ${e} holds ${t.length} characters of text; Excel allows ${gt}. Shorten it or split it across cells.`);const r=/^\s|\s$|\n/.test(t)?' xml:space="preserve"':"";return`<c r="${e}" t="inlineStr"${s}><is><t${r}>${W(t)}</t></is></c>`}function De(e){return e===null?0:At(e)?12:String(e).split(`
1
+ import{T as Xt,f as st,Q as j,j as E,L as zt,B as A,P as rt,c as Ft,u as Zt,r as P,a as jt}from"./app-Cy3sY2K8.js";const I=new Set(["input","option","optgroup","select","button","datalist","textarea"]),f=new Set(["p"]),ot=new Set(["thead","tbody"]),it=new Set(["dd","dt"]),at=new Set(["rt","rp"]),Bt=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",f],["h1",f],["h2",f],["h3",f],["h4",f],["h5",f],["h6",f],["select",I],["input",I],["output",I],["button",I],["datalist",I],["textarea",I],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",it],["dt",it],["address",f],["article",f],["aside",f],["blockquote",f],["details",f],["div",f],["dl",f],["fieldset",f],["figcaption",f],["figure",f],["footer",f],["form",f],["header",f],["hr",f],["main",f],["nav",f],["ol",f],["pre",f],["section",f],["table",f],["ul",f],["rt",at],["rp",at],["tbody",ot],["tfoot",ot]]),Vt=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),ct=new Set(["math","svg"]),lt=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),Wt=/\s|\//;class Ht{constructor(t,n={}){var s,r,o,i,a;this.options=n,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t??{},this.lowerCaseTagNames=(s=n.lowerCaseTags)!==null&&s!==void 0?s:!n.xmlMode,this.lowerCaseAttributeNames=(r=n.lowerCaseAttributeNames)!==null&&r!==void 0?r:!n.xmlMode,this.tokenizer=new((o=n.Tokenizer)!==null&&o!==void 0?o:Xt)(this.options,this),(a=(i=this.cbs).onparserinit)===null||a===void 0||a.call(i,this)}ontext(t,n){var s,r;const o=this.getSlice(t,n);this.endIndex=n-1,(r=(s=this.cbs).ontext)===null||r===void 0||r.call(s,o),this.startIndex=n}ontextentity(t){var n,s;const r=this.tokenizer.getSectionStart();this.endIndex=r-1,(s=(n=this.cbs).ontext)===null||s===void 0||s.call(n,st(t)),this.startIndex=r}isVoidElement(t){return!this.options.xmlMode&&Vt.has(t)}onopentagname(t,n){this.endIndex=n;let s=this.getSlice(t,n);this.lowerCaseTagNames&&(s=s.toLowerCase()),this.emitOpenTag(s)}emitOpenTag(t){var n,s,r,o;this.openTagStart=this.startIndex,this.tagname=t;const i=!this.options.xmlMode&&Bt.get(t);if(i)for(;this.stack.length>0&&i.has(this.stack[this.stack.length-1]);){const a=this.stack.pop();(s=(n=this.cbs).onclosetag)===null||s===void 0||s.call(n,a,!0)}this.isVoidElement(t)||(this.stack.push(t),ct.has(t)?this.foreignContext.push(!0):lt.has(t)&&this.foreignContext.push(!1)),(o=(r=this.cbs).onopentagname)===null||o===void 0||o.call(r,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var n,s;this.startIndex=this.openTagStart,this.attribs&&((s=(n=this.cbs).onopentag)===null||s===void 0||s.call(n,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,n){var s,r,o,i,a,c;this.endIndex=n;let h=this.getSlice(t,n);if(this.lowerCaseTagNames&&(h=h.toLowerCase()),(ct.has(h)||lt.has(h))&&this.foreignContext.pop(),this.isVoidElement(h))!this.options.xmlMode&&h==="br"&&((r=(s=this.cbs).onopentagname)===null||r===void 0||r.call(s,"br"),(i=(o=this.cbs).onopentag)===null||i===void 0||i.call(o,"br",{},!0),(c=(a=this.cbs).onclosetag)===null||c===void 0||c.call(a,"br",!1));else{const u=this.stack.lastIndexOf(h);if(u!==-1)if(this.cbs.onclosetag){let l=this.stack.length-u;for(;l--;)this.cbs.onclosetag(this.stack.pop(),l!==0)}else this.stack.length=u;else!this.options.xmlMode&&h==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=n+1}onselfclosingtag(t){this.endIndex=t,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var n,s;const r=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===r&&((s=(n=this.cbs).onclosetag)===null||s===void 0||s.call(n,r,!t),this.stack.pop())}onattribname(t,n){this.startIndex=t;const s=this.getSlice(t,n);this.attribname=this.lowerCaseAttributeNames?s.toLowerCase():s}onattribdata(t,n){this.attribvalue+=this.getSlice(t,n)}onattribentity(t){this.attribvalue+=st(t)}onattribend(t,n){var s,r;this.endIndex=n,(r=(s=this.cbs).onattribute)===null||r===void 0||r.call(s,this.attribname,this.attribvalue,t===j.Double?'"':t===j.Single?"'":t===j.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){const n=t.search(Wt);let s=n<0?t:t.substr(0,n);return this.lowerCaseTagNames&&(s=s.toLowerCase()),s}ondeclaration(t,n){this.endIndex=n;const s=this.getSlice(t,n);if(this.cbs.onprocessinginstruction){const r=this.getInstructionName(s);this.cbs.onprocessinginstruction(`!${r}`,`!${s}`)}this.startIndex=n+1}onprocessinginstruction(t,n){this.endIndex=n;const s=this.getSlice(t,n);if(this.cbs.onprocessinginstruction){const r=this.getInstructionName(s);this.cbs.onprocessinginstruction(`?${r}`,`?${s}`)}this.startIndex=n+1}oncomment(t,n,s){var r,o,i,a;this.endIndex=n,(o=(r=this.cbs).oncomment)===null||o===void 0||o.call(r,this.getSlice(t,n-s)),(a=(i=this.cbs).oncommentend)===null||a===void 0||a.call(i),this.startIndex=n+1}oncdata(t,n,s){var r,o,i,a,c,h,u,l,d,m;this.endIndex=n;const b=this.getSlice(t,n-s);this.options.xmlMode||this.options.recognizeCDATA?((o=(r=this.cbs).oncdatastart)===null||o===void 0||o.call(r),(a=(i=this.cbs).ontext)===null||a===void 0||a.call(i,b),(h=(c=this.cbs).oncdataend)===null||h===void 0||h.call(c)):((l=(u=this.cbs).oncomment)===null||l===void 0||l.call(u,`[CDATA[${b}]]`),(m=(d=this.cbs).oncommentend)===null||m===void 0||m.call(d)),this.startIndex=n+1}onend(){var t,n;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let s=this.stack.length;s>0;this.cbs.onclosetag(this.stack[--s],!0));}(n=(t=this.cbs).onend)===null||n===void 0||n.call(t)}reset(){var t,n,s,r;(n=(t=this.cbs).onreset)===null||n===void 0||n.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(r=(s=this.cbs).onparserinit)===null||r===void 0||r.call(s,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,n){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let s=this.buffers[0].slice(t-this.bufferOffset,n-this.bufferOffset);for(;n-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),s+=this.buffers[0].slice(0,n-this.bufferOffset);return s}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var n,s;if(this.ended){(s=(n=this.cbs).onerror)===null||s===void 0||s.call(n,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)}end(t){var n,s;if(this.ended){(s=(n=this.cbs).onerror)===null||s===void 0||s.call(n,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(t){this.write(t)}done(t){this.end(t)}}const Et=67324752,St=33639248,yt=101010256,Yt=1,Gt=8,Kt=64,Q=0,vt=8,Qt=12*1024*1024,X=128,kt=10*1024*1024,$=2*1024*1024,_t=100,Ct=new TextEncoder,qt=new TextDecoder("utf-8");function _(e){return Ct.encode(e)}function q(e){return qt.decode(e)}function It(e){return Ct.encode(e).byteLength}function T(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Tt(e){const t=e.reduce((r,o)=>r+o.byteLength,0),n=new Uint8Array(t);let s=0;for(const r of e)n.set(r,s),s+=r.byteLength;return n}async function $t(e,t,n){const s=e.getReader(),r=[];let o=0;try{for(;;){const{done:i,value:a}=await s.read();if(i)break;if(o+=a.byteLength,o>t)throw await s.cancel(),new Error(`ZIP entry ${n} inflated beyond its declared size.`);r.push(a)}}finally{s.releaseLock()}return Tt(r)}function Lt(e){const t=new Uint8Array(e.byteLength);return t.set(e),new ReadableStream({start(n){n.enqueue(t),n.close()}})}async function Jt(e,t,n){const s=Lt(e).pipeThrough(new DecompressionStream("deflate-raw"));return await $t(s,t,n)}async function te(e){const t=Lt(e).pipeThrough(new CompressionStream("deflate-raw"));return await $t(t,$+1024,"(deflate)")}function ee(e){const t=T(e),n=Math.max(0,e.byteLength-65535-22);for(let s=e.byteLength-22;s>=n;s-=1){if(s<0||t.getUint32(s,!0)!==yt)continue;const r=t.getUint16(s+20,!0);if(s+22+r===e.byteLength)return s}throw new Error("ZIP end-of-central-directory not found.")}function Rt(e,t){if((e&Yt)!==0)throw new Error(`ZIP entry ${t} is encrypted.`);if((e&Kt)!==0)throw new Error(`ZIP entry ${t} uses strong encryption.`)}function ht(e,t,n){return t===n?!0:(e&Gt)!==0&&t===0}function ne(e){if(e.byteLength>Qt)throw new Error("ZIP input exceeds compressed byte limit.");const t=T(e),n=ee(e),s=t.getUint16(n+4,!0),r=t.getUint16(n+6,!0),o=t.getUint16(n+8,!0),i=t.getUint16(n+10,!0),a=t.getUint32(n+12,!0),c=t.getUint32(n+16,!0),h=c+a;if(s!==0||r!==0||o!==i)throw new Error("Multi-disk ZIP archives are not supported.");if(i===65535||a===4294967295||c===4294967295)throw new Error("ZIP64 archives are not supported.");if(i>X)throw new Error(`ZIP entry count ${i} exceeds limit ${X}.`);if(c+a>e.byteLength)throw new Error("ZIP central directory is out of bounds.");if(h>n)throw new Error("ZIP central directory overlaps the end-of-central-directory record.");const u=[];let l=c,d=0;for(let m=0;m<i;m+=1){if(l+46>h||t.getUint32(l,!0)!==St)throw new Error("Invalid ZIP central directory entry.");const b=t.getUint16(l+8,!0),x=t.getUint16(l+10,!0),w=t.getUint32(l+20,!0),p=t.getUint32(l+24,!0),g=t.getUint16(l+28,!0),k=t.getUint16(l+30,!0),v=t.getUint16(l+32,!0),y=t.getUint32(l+42,!0);if(w===4294967295||p===4294967295||y===4294967295)throw new Error("ZIP64 archives are not supported.");if(l+46+g+k+v>h)throw new Error("ZIP central directory entry is out of bounds.");const S=q(e.subarray(l+46,l+46+g));if(Rt(b,S),x!==Q&&x!==vt)throw new Error(`ZIP entry ${S} uses unsupported compression method ${x}.`);if(p>$)throw new Error(`ZIP entry ${S} exceeds per-entry uncompressed limit.`);if(p>0&&w===0)throw new Error(`ZIP entry ${S} has an invalid compression ratio.`);if(w>0&&p/w>_t)throw new Error(`ZIP entry ${S} exceeds compression ratio limit.`);if(d+=p,d>kt)throw new Error("ZIP archive exceeds total uncompressed limit.");u.push({name:S,flags:b,method:x,compressedSize:w,uncompressedSize:p,localOffset:y}),l+=46+g+k+v}if(l!==h)throw new Error("ZIP central directory size does not match its entries.");return u}async function se(e,t){const n=T(e),s=t.localOffset;if(s+30>e.byteLength||n.getUint32(s,!0)!==Et)throw new Error(`Invalid local ZIP header for ${t.name}.`);const r=n.getUint16(s+6,!0),o=n.getUint16(s+8,!0),i=n.getUint32(s+18,!0),a=n.getUint32(s+22,!0),c=n.getUint16(s+26,!0),h=n.getUint16(s+28,!0);if(Rt(r,t.name),o!==t.method)throw new Error(`ZIP method mismatch for ${t.name}.`);if(!ht(r,i,t.compressedSize)||!ht(r,a,t.uncompressedSize))throw new Error(`ZIP size mismatch for ${t.name}.`);if(s+30+c+h>e.byteLength)throw new Error(`ZIP local header for ${t.name} is out of bounds.`);if(q(e.subarray(s+30,s+30+c))!==t.name)throw new Error(`ZIP local header name mismatch for ${t.name}.`);const l=s+30+c+h;if(l+t.compressedSize>e.byteLength)throw new Error(`ZIP data for ${t.name} is out of bounds.`);const d=e.subarray(l,l+t.compressedSize),m=t.method===Q?d.slice():await Jt(d,t.uncompressedSize,t.name);if(m.byteLength!==t.uncompressedSize)throw new Error(`ZIP uncompressed size mismatch for ${t.name}.`);return m}function re(e){const t=new Map;for(const n of e)t.set(n.name,n);return t}async function L(e,t,n){const s=t.get(n);if(!s)return null;const r=q(await se(e,s));return Mt(r),r}let O=null;function oe(e){if(!O){O=new Uint32Array(256);for(let n=0;n<256;n+=1){let s=n;for(let r=0;r<8;r+=1)s=s&1?3988292384^s>>>1:s>>>1;O[n]=s>>>0}}let t=4294967295;for(const n of e)t=O[(t^n)&255]^t>>>8;return(t^4294967295)>>>0}async function ie(e){if(e.length>X)throw new Error(`ZIP entry count ${e.length} exceeds limit ${X}.`);const t=[],n=[];let s=0,r=0;for(const c of e){if(c.data.byteLength>$)throw new Error(`ZIP entry ${c.name} exceeds per-entry uncompressed limit.`);if(r+=c.data.byteLength,r>kt)throw new Error("ZIP archive exceeds total uncompressed limit.");const h=await te(c.data),u=h.byteLength<c.data.byteLength&&c.data.byteLength/Math.max(1,h.byteLength)<=_t,l=u?h:c.data,d=u?vt:Q,m=_(c.name),b=oe(c.data),x=new Uint8Array(30),w=T(x);w.setUint32(0,Et,!0),w.setUint16(4,20,!0),w.setUint16(6,0,!0),w.setUint16(8,d,!0),w.setUint32(14,b,!0),w.setUint32(18,l.byteLength,!0),w.setUint32(22,c.data.byteLength,!0),w.setUint16(26,m.byteLength,!0),t.push(x,m,l);const p=new Uint8Array(46),g=T(p);g.setUint32(0,St,!0),g.setUint16(4,20,!0),g.setUint16(6,20,!0),g.setUint16(8,0,!0),g.setUint16(10,d,!0),g.setUint32(16,b,!0),g.setUint32(20,l.byteLength,!0),g.setUint32(24,c.data.byteLength,!0),g.setUint16(28,m.byteLength,!0),g.setUint32(42,s,!0),n.push(p,m),s+=x.byteLength+m.byteLength+l.byteLength}const o=n.reduce((c,h)=>c+h.byteLength,0),i=new Uint8Array(22),a=T(i);return a.setUint32(0,yt,!0),a.setUint16(8,e.length,!0),a.setUint16(10,e.length,!0),a.setUint32(12,o,!0),a.setUint32(16,s,!0),Tt([...t,...n,i])}function Mt(e){if(It(e)>$)throw new Error("Office XML exceeds the parser input limit.");const t=e.toLowerCase();if(t.includes("<!doctype")||t.includes("<!entity"))throw new Error("Office XML DTD and entity declarations are not supported.")}function ut(e){const t=e.lastIndexOf(":");return(t===-1?e:e.slice(t+1)).toLowerCase()}function z(e,t){Mt(e);let n="",s=0;const r=t||" ";return new Ht({onopentag(i){s>0?s+=1:ut(i)==="script"||ut(i)==="style"?(n+=r,s=1):n+=t},ontext(i){s===0&&(n+=i)},onclosetag(){s>0?(s-=1,s===0&&(n+=r)):n+=t}},{decodeEntities:!0,xmlMode:!0}).end(e),n}function ae(e){return z(`<openwork-value>${e}</openwork-value>`,"")}function Ut(e){return z(e," ").replace(/\s+/g," ").trim()}function J(e){return`(?:[A-Za-z_][\\w.-]*:)?${e}`}function tt(e){const t={},n=/([\w:.-]+)\s*=\s*(?:"([^"]*)"|'([^']*)')/g;let s;for(;s=n.exec(e);){const r=s[1],o=s[2]??s[3]??"";t[r]=ae(o)}return t}function M(e,t){const n=J(t),s=new RegExp(`<${n}\\b([^>]*)>([\\s\\S]*?)<\\/${n}>`,"g"),r=[];let o;for(;o=s.exec(e);)r.push({attributes:tt(o[1]),inner:o[2]});return r}function C(e,t){const n=J(t),s=new RegExp(`<${n}\\b([^>]*)\\/?\\s*>`,"g"),r=[];let o;for(;o=s.exec(e);)r.push(tt(o[1]));return r}function ce(e,t){const n=M(e,t)[0];if(n)return z(n.inner,"").trim()}function B(e,t){const n=J(t),s=new RegExp(`<${n}\\b([^>]*?)(\\/>|>([\\s\\S]*?)<\\/${n}>)`,"g"),r=[];let o;for(;o=s.exec(e);)r.push({attributes:tt(o[1]),inner:o[3]??""});return r}function W(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/[\u0000-\u0008\u000b\u000c\u000e-\u001f]/g,"")}function dt(...e){const t=[];for(const n of e.join("/").split("/"))!n||n==="."||(n===".."?t.pop():t.push(n));return t.join("/")}function le(e,t){const n=new Map;if(!e)return n;for(const s of C(e,"Relationship")){const r=s.Id,o=s.Target;!r||!o||s.TargetMode==="External"||/^[a-z][a-z0-9+.-]*:/i.test(o)||n.set(r,o.startsWith("/")?dt(o.slice(1)):dt(t,o))}return n}const he=64,ue=2e5,de=25e4,ft=32,mt=5e4,H=1048576,Y=16384,pt=31,gt=32767,wt=Date.UTC(1899,11,30),fe=Date.UTC(1904,0,1),V=864e5;function G(e){let t=e,n="";for(;t>0;){const s=(t-1)%26;n=String.fromCharCode(65+s)+n,t=Math.floor((t-1)/26)}return n}function me(e){let t=0;for(const n of e.toUpperCase()){const s=n.charCodeAt(0);if(s<65||s>90)return 0;t=t*26+(s-64)}return t}function K(e){const t=/^\$?([A-Za-z]{1,3})\$?(\d{1,7})$/.exec(e.trim());if(!t)return null;const n=me(t[1]),s=Number.parseInt(t[2],10);return n<1||n>Y||s<1||s>H?null:{row:s,column:n}}function pe(e){const t=e.trim(),[n,s=n]=t.split(":"),r=K(n),o=K(s);return!r||!o?null:{firstRow:Math.min(r.row,o.row),lastRow:Math.max(r.row,o.row),firstColumn:Math.min(r.column,o.column),lastColumn:Math.max(r.column,o.column)}}function ge(e,t){const n=le(t,"xl"),s=C(e,"sheet"),r=s.slice(0,he).map((o,i)=>{const a=o["r:id"]??o.id??"",c=a&&n.has(a)?n.get(a)??"":`xl/worksheets/sheet${i+1}.xml`;return{position:i+1,name:o.name??`Sheet${i+1}`,sheetId:o.sheetId??String(i+1),relationshipId:a,path:c,hidden:o.state==="hidden"||o.state==="veryHidden"}});return{sheets:r,omittedSheets:s.length-r.length}}function Nt(e){return M(e,"t").map(n=>z(n.inner,"")).join("").trim()||Ut(e)}function we(e){if(!e)return[];const t=[];for(const n of M(e,"si")){if(t.length>=ue)break;t.push(Nt(n.inner))}return t}function be(e){switch(e){case"0":return"General";case"1":return"0";case"2":return"0.00";case"3":return"#,##0";case"4":return"#,##0.00";case"9":return"0%";case"10":return"0.00%";case"11":return"0.00E+00";case"14":return"mm-dd-yy";case"15":return"d-mmm-yy";case"16":return"d-mmm";case"17":return"mmm-yy";case"18":return"h:mm AM/PM";case"19":return"h:mm:ss AM/PM";case"20":return"h:mm";case"21":return"h:mm:ss";case"22":return"m/d/yy h:mm";case"27":case"28":case"29":case"30":case"31":case"36":case"50":case"51":case"52":case"53":case"54":case"57":case"58":return"yyyy-mm-dd";case"32":case"33":case"34":case"35":case"55":case"56":return"h:mm:ss";case"45":return"mm:ss";case"46":return"[h]:mm:ss";case"47":return"mmss.0";case"49":return"@";default:return""}}function xe(e){if(!e)return[];const t=new Map;for(const s of C(e,"numFmt"))s.numFmtId&&s.formatCode&&t.set(s.numFmtId,s.formatCode);const n=M(e,"cellXfs")[0]?.inner??"";return C(n,"xf").map(s=>{const r=s.numFmtId??"0";return t.get(r)??be(r)})}function Ee(e){if(!e||e==="General"||e==="@")return!1;const t=e.replace(/"[^"]*"/g,"").replace(/\[[^\]]*\]/g,"").replace(/\\./g,"").replace(/[Ee][+-]/g,"");return/[ymdhs]/i.test(t)}function R(e,t=2){return String(e).padStart(t,"0")}function Se(e,t=!1){if(!Number.isFinite(e)||e<0||e>2958465)return null;const n=t?fe:e<60?wt+V:wt,s=Math.round(e*V),r=new Date(n+s);if(Number.isNaN(r.getTime()))return null;const o=`${R(r.getUTCHours())}:${R(r.getUTCMinutes())}:${R(r.getUTCSeconds())}`;if(e<1&&!t)return o;const i=`${r.getUTCFullYear()}-${R(r.getUTCMonth()+1)}-${R(r.getUTCDate())}`;return s%V===0?i:`${i} ${o}`}function ye(e){return e==="s"?"shared_string":e==="inlineStr"?"inline_string":e==="str"?"formula_string":e==="b"?"boolean":e==="e"?"error":e==="d"?"date":e||"number"}function ve(e,t,n,s,r,o){if(e==="inlineStr")return Nt(n)||void 0;if(e==="s"&&t!==void 0){const i=Number.parseInt(t,10);return Number.isInteger(i)?s[i]:void 0}return e==="b"&&t!==void 0?t==="1"?"TRUE":"FALSE":(e===""||e==="n")&&t!==void 0&&Ee(r)?Se(Number(t),o)??t:t}function ke(e,t,n,s,r){const o=C(e,"dimension")[0]?.ref??"",i=[];for(const d of C(e,"mergeCell"))d.ref&&i.push(d.ref);const a=M(e,"sheetData")[0]?.inner??e,c=[];let h=0,u=0,l=0;for(const d of B(a,"row")){const m=Number.parseInt(d.attributes.r??"",10),b=Number.isInteger(m)&&m>0?m:l+1;l=b;let x=0;for(const w of B(d.inner,"c")){const p=w.attributes,g=w.inner,k=p.r?K(p.r):null,v=k?.column??x+1,y=k?.row??b;x=v;const S=B(g,"f")[0],U=ce(g,"v"),F=p.t??"";if(S&&(u+=1),U===void 0&&!S&&F!=="inlineStr")continue;if(c.length>=r){h+=1;continue}const N=p.s,Z=N!==void 0?n[Number.parseInt(N,10)]:void 0,nt=ve(F,U,g,t,Z,s),Dt=S?Ut(S.inner):"";c.push({reference:`${G(v)}${y}`,row:y,column:v,type:ye(F),...N!==void 0?{styleIndex:N}:{},...Z?{numberFormat:Z}:{},...S?{formula:Dt}:{},...S?.attributes.t?{formulaType:S.attributes.t}:{},...S?.attributes.ref?{formulaRef:S.attributes.ref}:{},...U!==void 0?{rawValue:U}:{},...nt!==void 0?{displayedValue:nt}:{}})}}return{dimension:o,mergedRanges:i,cells:c,omittedCells:h,formulaCount:u}}function _e(e,t){const n=e.length===0&&t?pe(t):null;if(n)return n;if(e.length===0)return{firstRow:0,lastRow:0,firstColumn:0,lastColumn:0};let s=Number.POSITIVE_INFINITY,r=0,o=Number.POSITIVE_INFINITY,i=0;for(const a of e)s=Math.min(s,a.row),r=Math.max(r,a.row),o=Math.min(o,a.column),i=Math.max(i,a.column);return{firstRow:s,lastRow:r,firstColumn:o,lastColumn:i}}async function Ce(e){const t=re(ne(e)),n=await L(e,t,"xl/workbook.xml");if(!n)throw new Error("XLSX workbook.xml was not found.");const s=we(await L(e,t,"xl/sharedStrings.xml")),r=xe(await L(e,t,"xl/styles.xml")),{sheets:o,omittedSheets:i}=ge(n,await L(e,t,"xl/_rels/workbook.xml.rels"));if(o.length===0)throw new Error("XLSX workbook contained no sheets.");const a=C(n,"workbookPr").some(c=>c.date1904==="1"||c.date1904==="true");return{sheets:o,omittedSheets:i,sharedStringCount:s.length,styleCount:r.length,date1904:a,async readSheet(c,h={}){const u=c.path.startsWith("xl/worksheets/")&&c.path.endsWith(".xml")?c.path:"",l=u?await L(e,t,u):null;if(!l)throw new Error(`Worksheet XML for "${c.name}" was not found or was outside xl/worksheets.`);const d=ke(l,s,r,a,h.cellLimit??de);return{info:c,...d,..._e(d.cells,d.dimension)}}}}const Ie=25e4;function Te(e,t={}){if(e.cells.length===0)return[[""]];const n=t.maxCells??Ie;if(e.lastRow*e.lastColumn>n)throw new Error(`This sheet spans ${e.lastRow} rows by ${e.lastColumn} columns, which is too large to show as an editable grid.`);const s=Array.from({length:e.lastRow},()=>Array.from({length:e.lastColumn},()=>""));for(const r of e.cells)s[r.row-1][r.column-1]=t.formulas&&r.formula?`=${r.formula}`:r.displayedValue??r.rawValue??(r.formula?`=${r.formula}`:"");return s}const $e=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/,bt=8192,Le=/\b(DDE|WEBSERVICE|FILTERXML|RTD|CALL|REGISTER(?:\.ID)?|EXEC|SQL\.REQUEST|IMPORT(?:DATA|XML|HTML|FEED|RANGE)|IMAGE)\s*\(/i,Re=/\[[^\]]*\][^!'"(),;+\-*/^&=<>\[\]{}]*!|'[^']*\[[^\]]*\][^']*'!/u,Me=/'[^']*(?::\/\/|\\\\)[^']*'!/;function At(e){return typeof e=="object"&&e!==null&&typeof e.formula=="string"}function Ue(e){const t=e.trim().replace(/^=/,"");if(!t)return"is empty";if(t.length>bt)return`is longer than ${bt} characters`;if(t.includes("|"))return"contains a DDE-style external command reference";const n=Le.exec(t);return n?`uses ${n[1].toUpperCase()}, which reaches outside the workbook when it recalculates`:Re.test(t)?"references another workbook":Me.test(t)?"references a remote or network path":null}function Ne(e,t){const n=Ue(e.formula);if(n)throw new Error(`Formula in ${t} ${n}; only calculations inside the workbook are written. Write the value instead.`);return e.formula.trim().replace(/^=/,"")}function Ae(e){if(e==="")return null;if(e==="TRUE")return!0;if(e==="FALSE")return!1;if($e.test(e)){const t=Number(e);if(Number.isFinite(t))return t}return e}function Pe(e,t,n){let r=(e??"").replace(/[\u0000-\u001f\u007f[\]:*?/\\]/g," ").replace(/\s+/g," ").replace(/^'+|'+$/g,"").trim().slice(0,pt).trim()||`Sheet${t}`,o=2;for(;n.has(r.toLowerCase())||r.toLowerCase()==="history";)r=`${r.slice(0,pt-String(o).length-1)}-${o}`,o+=1;return n.add(r.toLowerCase()),r}function Oe(e,t,n){const s=n>0?` s="${n}"`:"";if(t===null||t==="")return"";if(typeof t=="number")return Number.isFinite(t)?`<c r="${e}"${s}><v>${t}</v></c>`:`<c r="${e}" t="e"${s}><v>#NUM!</v></c>`;if(typeof t=="boolean")return`<c r="${e}" t="b"${s}><v>${t?1:0}</v></c>`;if(At(t))return`<c r="${e}"${s}><f>${W(Ne(t,e))}</f></c>`;if(t.length>gt)throw new Error(`Cell ${e} holds ${t.length} characters of text; Excel allows ${gt}. Shorten it or split it across cells.`);const r=/^\s|\s$|\n/.test(t)?' xml:space="preserve"':"";return`<c r="${e}" t="inlineStr"${s}><is><t${r}>${W(t)}</t></is></c>`}function De(e){return e===null?0:At(e)?12:String(e).split(`
2
2
  `).reduce((t,n)=>Math.max(t,n.length),0)}function Xe(e){const t=e.rows,n=t.reduce((u,l)=>Math.max(u,l.length),0);if(t.length>H)throw new Error(`Sheet "${e.name??""}" has ${t.length} rows; Excel allows ${H}.`);if(n>Y)throw new Error(`Sheet "${e.name??""}" has ${n} columns; Excel allows ${Y}.`);const s=e.header??!0,r=Array.from({length:n},()=>0),o=[];t.forEach((u,l)=>{const d=[];u.forEach((m,b)=>{r[b]=Math.max(r[b],De(m));const x=Oe(`${G(b+1)}${l+1}`,m,s&&l===0?1:0);x&&d.push(x)}),d.length&&o.push(`<row r="${l+1}">${d.join("")}</row>`)});const i=t.length&&n?`A1:${G(n)}${t.length}`:"A1",a=n?`<cols>${r.map((u,l)=>`<col min="${l+1}" max="${l+1}" width="${Math.min(60,Math.max(8,u+2))}" customWidth="1"/>`).join("")}</cols>`:"",c=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3
3
  <worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"><dimension ref="${i}"/><sheetViews><sheetView workbookViewId="0"${s&&t.length>1?'><pane ySplit="1" topLeftCell="A2" activePane="bottomLeft" state="frozen"/></sheetView>':"/>"}</sheetViews><sheetFormatPr defaultRowHeight="15"/>${a}<sheetData>${o.join("")}</sheetData><pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3"/></worksheet>`,h=It(c);if(h>$)throw new Error(`Sheet ${JSON.stringify(e.name??"")} would be ${h} bytes of worksheet XML; the limit is ${$} bytes (roughly 30,000 text cells). Split the rows across sheets or files, shorten cell text, or write a CSV instead.`);return{xml:c,rows:t.length,columns:n}}const ze=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
4
4
  <styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><fonts count="2"><font><sz val="11"/><name val="Calibri"/></font><font><b/><sz val="11"/><name val="Calibri"/></font></fonts><fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills><borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs><cellXfs count="2"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/><xf numFmtId="0" fontId="1" fillId="0" borderId="0" xfId="0" applyFont="1"/></cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles></styleSheet>`;async function Fe(e){if(e.length===0)throw new Error("A workbook needs at least one sheet.");if(e.length>ft)throw new Error(`A workbook may contain at most ${ft} sheets.`);const t=e.reduce((i,a)=>i+a.rows.reduce((c,h)=>c+h.length,0),0);if(t>mt)throw new Error(`Workbook has ${t} cells; spreadsheet_write accepts at most ${mt}. Split the data across files or write a CSV.`);const n=new Set,s=e.map((i,a)=>({...i,name:Pe(i.name,a+1,n)})),r=s.map(i=>Xe(i)),o=[{name:"[Content_Types].xml",data:_(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
@@ -1,4 +1,4 @@
1
- import{b as g0,s as m0,r as Ei,j as mf,c as S0,A as b0}from"./app-BCXQnJUH.js";let Zo=[],Od=[];(()=>{let r="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<r.length;e++)(e%2?Od:Zo).push(t=t+r[e])})();function y0(r){if(r<768)return!1;for(let e=0,t=Zo.length;;){let i=e+t>>1;if(r<Zo[i])t=i;else if(r>=Od[i])e=i+1;else return!0;if(e==t)return!1}}function Sf(r){return r>=127462&&r<=127487}const bf=8205;function x0(r,e,t=!0,i=!0){return(t?gd:k0)(r,e,i)}function gd(r,e,t){if(e==r.length)return e;e&&md(r.charCodeAt(e))&&Sd(r.charCodeAt(e-1))&&e--;let i=zl(r,e);for(e+=yf(i);e<r.length;){let n=zl(r,e);if(i==bf||n==bf||t&&y0(n))e+=yf(n),i=n;else if(Sf(n)){let s=0,l=e-2;for(;l>=0&&Sf(zl(r,l));)s++,l-=2;if(s%2==0)break;e+=2}else break}return e}function k0(r,e,t){for(;e>0;){let i=gd(r,e-2,t);if(i<e)return i;e--}return 0}function zl(r,e){let t=r.charCodeAt(e);if(!Sd(t)||e+1==r.length)return t;let i=r.charCodeAt(e+1);return md(i)?(t-55296<<10)+(i-56320)+65536:t}function md(r){return r>=56320&&r<57344}function Sd(r){return r>=55296&&r<56320}function yf(r){return r<65536?1:2}let F=class bd{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=nn(this,e,t);let n=[];return this.decompose(0,e,n,2),i.length&&i.decompose(0,i.length,n,3),this.decompose(t,this.length,n,1),bs.from(n,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=nn(this,e,t);let i=[];return this.decompose(e,t,i,0),bs.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),n=new qn(this),s=new qn(e);for(let l=t,o=t;;){if(n.next(l),s.next(l),l=0,n.lineBreak!=s.lineBreak||n.done!=s.done||n.value!=s.value)return!1;if(o+=n.value.length,n.done||o>=i)return!0}}iter(e=1){return new qn(this,e)}iterRange(e,t=this.length){return new yd(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let n=this.line(e).from;i=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new xd(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?bd.empty:e.length<=32?new ut(e):bs.from(ut.split(e,[]))}},ut=class Qt extends F{constructor(e,t=w0(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,n){for(let s=0;;s++){let l=this.text[s],o=n+l.length;if((t?i:o)>=e)return new $0(n,o,i,l);n=o+1,i++}}decompose(e,t,i,n){let s=e<=0&&t>=this.length?this:new Qt(xf(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(n&1){let l=i.pop(),o=ys(s.text,l.text.slice(),0,s.length);if(o.length<=32)i.push(new Qt(o,l.length+s.length));else{let a=o.length>>1;i.push(new Qt(o.slice(0,a)),new Qt(o.slice(a)))}}else i.push(s)}replace(e,t,i){if(!(i instanceof Qt))return super.replace(e,t,i);[e,t]=nn(this,e,t);let n=ys(this.text,ys(i.text,xf(this.text,0,e)),t),s=this.length+i.length-(t-e);return n.length<=32?new Qt(n,s):bs.from(Qt.split(n,[]),s)}sliceString(e,t=this.length,i=`
1
+ import{b as g0,s as m0,r as Ei,j as mf,c as S0,A as b0}from"./app-Cy3sY2K8.js";let Zo=[],Od=[];(()=>{let r="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<r.length;e++)(e%2?Od:Zo).push(t=t+r[e])})();function y0(r){if(r<768)return!1;for(let e=0,t=Zo.length;;){let i=e+t>>1;if(r<Zo[i])t=i;else if(r>=Od[i])e=i+1;else return!0;if(e==t)return!1}}function Sf(r){return r>=127462&&r<=127487}const bf=8205;function x0(r,e,t=!0,i=!0){return(t?gd:k0)(r,e,i)}function gd(r,e,t){if(e==r.length)return e;e&&md(r.charCodeAt(e))&&Sd(r.charCodeAt(e-1))&&e--;let i=zl(r,e);for(e+=yf(i);e<r.length;){let n=zl(r,e);if(i==bf||n==bf||t&&y0(n))e+=yf(n),i=n;else if(Sf(n)){let s=0,l=e-2;for(;l>=0&&Sf(zl(r,l));)s++,l-=2;if(s%2==0)break;e+=2}else break}return e}function k0(r,e,t){for(;e>0;){let i=gd(r,e-2,t);if(i<e)return i;e--}return 0}function zl(r,e){let t=r.charCodeAt(e);if(!Sd(t)||e+1==r.length)return t;let i=r.charCodeAt(e+1);return md(i)?(t-55296<<10)+(i-56320)+65536:t}function md(r){return r>=56320&&r<57344}function Sd(r){return r>=55296&&r<56320}function yf(r){return r<65536?1:2}let F=class bd{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=nn(this,e,t);let n=[];return this.decompose(0,e,n,2),i.length&&i.decompose(0,i.length,n,3),this.decompose(t,this.length,n,1),bs.from(n,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=nn(this,e,t);let i=[];return this.decompose(e,t,i,0),bs.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),n=new qn(this),s=new qn(e);for(let l=t,o=t;;){if(n.next(l),s.next(l),l=0,n.lineBreak!=s.lineBreak||n.done!=s.done||n.value!=s.value)return!1;if(o+=n.value.length,n.done||o>=i)return!0}}iter(e=1){return new qn(this,e)}iterRange(e,t=this.length){return new yd(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let n=this.line(e).from;i=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new xd(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?bd.empty:e.length<=32?new ut(e):bs.from(ut.split(e,[]))}},ut=class Qt extends F{constructor(e,t=w0(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,n){for(let s=0;;s++){let l=this.text[s],o=n+l.length;if((t?i:o)>=e)return new $0(n,o,i,l);n=o+1,i++}}decompose(e,t,i,n){let s=e<=0&&t>=this.length?this:new Qt(xf(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(n&1){let l=i.pop(),o=ys(s.text,l.text.slice(),0,s.length);if(o.length<=32)i.push(new Qt(o,l.length+s.length));else{let a=o.length>>1;i.push(new Qt(o.slice(0,a)),new Qt(o.slice(a)))}}else i.push(s)}replace(e,t,i){if(!(i instanceof Qt))return super.replace(e,t,i);[e,t]=nn(this,e,t);let n=ys(this.text,ys(i.text,xf(this.text,0,e)),t),s=this.length+i.length-(t-e);return n.length<=32?new Qt(n,s):bs.from(Qt.split(n,[]),s)}sliceString(e,t=this.length,i=`
2
2
  `){[e,t]=nn(this,e,t);let n="";for(let s=0,l=0;s<=t&&l<this.text.length;l++){let o=this.text[l],a=s+o.length;s>e&&l&&(n+=i),e<a&&t>s&&(n+=o.slice(Math.max(0,e-s),t-s)),s=a+1}return n}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],n=-1;for(let s of e)i.push(s),n+=s.length+1,i.length==32&&(t.push(new Qt(i,n)),i=[],n=-1);return n>-1&&t.push(new Qt(i,n)),t}},bs=class Bi extends F{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,n){for(let s=0;;s++){let l=this.children[s],o=n+l.length,a=i+l.lines-1;if((t?a:o)>=e)return l.lineInner(e,t,i,n);n=o+1,i=a+1}}decompose(e,t,i,n){for(let s=0,l=0;l<=t&&s<this.children.length;s++){let o=this.children[s],a=l+o.length;if(e<=a&&t>=l){let h=n&((l<=e?1:0)|(a>=t?2:0));l>=e&&a<=t&&!h?i.push(o):o.decompose(e-l,t-l,i,h)}l=a+1}}replace(e,t,i){if([e,t]=nn(this,e,t),i.lines<this.lines)for(let n=0,s=0;n<this.children.length;n++){let l=this.children[n],o=s+l.length;if(e>=s&&t<=o){let a=l.replace(e-s,t-s,i),h=this.lines-l.lines+a.lines;if(a.lines<h>>4&&a.lines>h>>6){let f=this.children.slice();return f[n]=a,new Bi(f,this.length-(t-e)+i.length)}return super.replace(s,o,a)}s=o+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
3
3
  `){[e,t]=nn(this,e,t);let n="";for(let s=0,l=0;s<this.children.length&&l<=t;s++){let o=this.children[s],a=l+o.length;l>e&&s&&(n+=i),e<a&&t>l&&(n+=o.sliceString(e-l,t-l,i)),l=a+1}return n}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Bi))return 0;let i=0,[n,s,l,o]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;n+=t,s+=t){if(n==l||s==o)return i;let a=this.children[n],h=e.children[s];if(a!=h)return i+a.scanIdentical(h,t);i+=a.length+1}}static from(e,t=e.reduce((i,n)=>i+n.length+1,-1)){let i=0;for(let d of e)i+=d.lines;if(i<32){let d=[];for(let p of e)p.flatten(d);return new ut(d,t)}let n=Math.max(32,i>>5),s=n<<1,l=n>>1,o=[],a=0,h=-1,f=[];function c(d){let p;if(d.lines>s&&d instanceof Bi)for(let O of d.children)c(O);else d.lines>l&&(a>l||!a)?(u(),o.push(d)):d instanceof ut&&a&&(p=f[f.length-1])instanceof ut&&d.lines+p.lines<=32?(a+=d.lines,h+=d.length+1,f[f.length-1]=new ut(p.text.concat(d.text),p.length+1+d.length)):(a+d.lines>n&&u(),a+=d.lines,h+=d.length+1,f.push(d))}function u(){a!=0&&(o.push(f.length==1?f[0]:Bi.from(f,h)),h=-1,a=f.length=0)}for(let d of e)c(d);return u(),o.length==1?o[0]:new Bi(o,t)}};F.empty=new ut([""],0);function w0(r){let e=-1;for(let t of r)e+=t.length+1;return e}function ys(r,e,t=0,i=1e9){for(let n=0,s=0,l=!0;s<r.length&&n<=i;s++){let o=r[s],a=n+o.length;a>=t&&(a>i&&(o=o.slice(0,i-n)),n<t&&(o=o.slice(t-n)),l?(e[e.length-1]+=o,l=!1):e.push(o)),n=a+1}return e}function xf(r,e,t){return ys(r,[""],e,t)}let qn=class{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof ut?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,n=this.nodes[i],s=this.offsets[i],l=s>>1,o=n instanceof ut?n.text.length:n.children.length;if(l==(t>0?o:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((s&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
4
4
  `,this;e--}else if(n instanceof ut){let a=n.text[l+(t<0?-1:0)];if(this.offsets[i]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=n.children[l+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof ut?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},yd=class{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new qn(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:n}=this.cursor.next(e);return this.pos+=(n.length+e)*t,this.value=n.length<=i?n:t<0?n.slice(n.length-i):n.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}},xd=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:n}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<"u"&&(F.prototype[Symbol.iterator]=function(){return this.iter()},qn.prototype[Symbol.iterator]=yd.prototype[Symbol.iterator]=xd.prototype[Symbol.iterator]=function(){return this});let $0=class{constructor(e,t,i,n){this.from=e,this.to=t,this.number=i,this.text=n}get length(){return this.to-this.from}};function nn(r,e,t){return e=Math.max(0,Math.min(r.length,e)),[e,Math.max(e,Math.min(r.length,t))]}function ve(r,e,t=!0,i=!0){return x0(r,e,t,i)}function Q0(r){return r>=56320&&r<57344}function v0(r){return r>=55296&&r<56320}function P0(r,e){let t=r.charCodeAt(e);if(!v0(t)||e+1==r.length)return t;let i=r.charCodeAt(e+1);return Q0(i)?(t-55296<<10)+(i-56320)+65536:t}function T0(r){return r<65536?1:2}const Xo=/\r\n?|\n/;var Ue=(function(r){return r[r.Simple=0]="Simple",r[r.TrackDel=1]="TrackDel",r[r.TrackBefore=2]="TrackBefore",r[r.TrackAfter=3]="TrackAfter",r})(Ue||(Ue={}));let Yi=class xs{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,n=0;t<this.sections.length;){let s=this.sections[t++],l=this.sections[t++];l<0?(e(i,n,s),n+=s):n+=l,i+=s}}iterChangedRanges(e,t=!1){Eo(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],n=this.sections[t++];n<0?e.push(i,n):e.push(n,i)}return new xs(e)}composeDesc(e){return this.empty?e:e.empty?this:kd(this,e)}mapDesc(e,t=!1){return e.empty?this:Lo(this,e,t)}mapPos(e,t=-1,i=Ue.Simple){let n=0,s=0;for(let l=0;l<this.sections.length;){let o=this.sections[l++],a=this.sections[l++],h=n+o;if(a<0){if(h>e)return s+(e-n);s+=o}else{if(i!=Ue.Simple&&h>=e&&(i==Ue.TrackDel&&n<e&&h>e||i==Ue.TrackBefore&&n<e||i==Ue.TrackAfter&&h>e))return null;if(h>e||h==e&&t<0&&!o)return e==n||t<0?s:s+a;s+=a}n=h}if(e>n)throw new RangeError(`Position ${e} is out of range for changeset of length ${n}`);return s}touchesRange(e,t=e){for(let i=0,n=0;i<this.sections.length&&n<=t;){let s=this.sections[i++],l=this.sections[i++],o=n+s;if(l>=0&&n<=t&&o>=e)return n<e&&o>t?"cover":!0;n=o}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],n=this.sections[t++];e+=(e?" ":"")+i+(n>=0?":"+n:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new xs(e)}static create(e){return new xs(e)}},gt=class ii extends Yi{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Eo(this,(t,i,n,s,l)=>e=e.replace(n,n+(i-t),l),!1),e}mapDesc(e,t=!1){return Lo(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let n=0,s=0;n<t.length;n+=2){let l=t[n],o=t[n+1];if(o>=0){t[n]=o,t[n+1]=l;let a=n>>1;for(;i.length<a;)i.push(F.empty);i.push(l?e.slice(s,s+l):F.empty)}s+=l}return new ii(t,i)}compose(e){return this.empty?e:e.empty?this:kd(this,e,!0)}map(e,t=!1){return e.empty?this:Lo(this,e,t,!0)}iterChanges(e,t=!1){Eo(this,e,t)}get desc(){return Yi.create(this.sections)}filter(e){let t=[],i=[],n=[],s=new sr(this);e:for(let l=0,o=0;;){let a=l==e.length?1e9:e[l++];for(;o<a||o==a&&s.len==0;){if(s.done)break e;let f=Math.min(s.len,a-o);$e(n,f,-1);let c=s.ins==-1?-1:s.off==0?s.ins:0;$e(t,f,c),c>0&&ai(i,t,s.text),s.forward(f),o+=f}let h=e[l++];for(;o<h;){if(s.done)break e;let f=Math.min(s.len,h-o);$e(t,f,-1),$e(n,f,s.ins==-1?-1:s.off==0?s.ins:0),s.forward(f),o+=f}}return{changes:new ii(t,i),filtered:Yi.create(n)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t],n=this.sections[t+1];n<0?e.push(i):n==0?e.push([i]):e.push([i].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,i){let n=[],s=[],l=0,o=null;function a(f=!1){if(!f&&!n.length)return;l<t&&$e(n,t-l,-1);let c=new ii(n,s);o=o?o.compose(c.map(o)):c,n=[],s=[],l=0}function h(f){if(Array.isArray(f))for(let c of f)h(c);else if(f instanceof ii){if(f.length!=t)throw new RangeError(`Mismatched change set length (got ${f.length}, expected ${t})`);a(),o=o?o.compose(f.map(o)):f}else{let{from:c,to:u=c,insert:d}=f;if(c>u||c<0||u>t)throw new RangeError(`Invalid change range ${c} to ${u} (in doc of length ${t})`);let p=d?typeof d=="string"?F.of(d.split(i||Xo)):d:F.empty,O=p.length;if(c==u&&O==0)return;c<l&&a(),c>l&&$e(n,c-l,-1),$e(n,u-c,O),ai(s,n,p),l=u}}return h(e),a(!o),o}static empty(e){return new ii(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let n=0;n<e.length;n++){let s=e[n];if(typeof s=="number")t.push(s,-1);else{if(!Array.isArray(s)||typeof s[0]!="number"||s.some((l,o)=>o&&typeof l!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)t.push(s[0],0);else{for(;i.length<n;)i.push(F.empty);i[n]=F.of(s.slice(1)),t.push(s[0],i[n].length)}}}return new ii(t,i)}static createSet(e,t){return new ii(e,t)}};function $e(r,e,t,i=!1){if(e==0&&t<=0)return;let n=r.length-2;n>=0&&t<=0&&t==r[n+1]?r[n]+=e:n>=0&&e==0&&r[n]==0?r[n+1]+=t:i?(r[n]+=e,r[n+1]+=t):r.push(e,t)}function ai(r,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i<r.length)r[r.length-1]=r[r.length-1].append(t);else{for(;r.length<i;)r.push(F.empty);r.push(t)}}function Eo(r,e,t){let i=r.inserted;for(let n=0,s=0,l=0;l<r.sections.length;){let o=r.sections[l++],a=r.sections[l++];if(a<0)n+=o,s+=o;else{let h=n,f=s,c=F.empty;for(;h+=o,f+=a,a&&i&&(c=c.append(i[l-2>>1])),!(t||l==r.sections.length||r.sections[l+1]<0);)o=r.sections[l++],a=r.sections[l++];e(n,h,s,f,c),n=h,s=f}}}function Lo(r,e,t,i=!1){let n=[],s=i?[]:null,l=new sr(r),o=new sr(e);for(let a=-1;;){if(l.done&&o.len||o.done&&l.len)throw new Error("Mismatched change set lengths");if(l.ins==-1&&o.ins==-1){let h=Math.min(l.len,o.len);$e(n,h,-1),l.forward(h),o.forward(h)}else if(o.ins>=0&&(l.ins<0||a==l.i||l.off==0&&(o.len<l.len||o.len==l.len&&!t))){let h=o.len;for($e(n,o.ins,-1);h;){let f=Math.min(l.len,h);l.ins>=0&&a<l.i&&l.len<=f&&($e(n,0,l.ins),s&&ai(s,n,l.text),a=l.i),l.forward(f),h-=f}o.next()}else if(l.ins>=0){let h=0,f=l.len;for(;f;)if(o.ins==-1){let c=Math.min(f,o.len);h+=c,f-=c,o.forward(c)}else if(o.ins==0&&o.len<f)f-=o.len,o.next();else break;$e(n,h,a<l.i?l.ins:0),s&&a<l.i&&ai(s,n,l.text),a=l.i,l.forward(l.len-f)}else{if(l.done&&o.done)return s?gt.createSet(n,s):Yi.create(n);throw new Error("Mismatched change set lengths")}}}function kd(r,e,t=!1){let i=[],n=t?[]:null,s=new sr(r),l=new sr(e);for(let o=!1;;){if(s.done&&l.done)return n?gt.createSet(i,n):Yi.create(i);if(s.ins==0)$e(i,s.len,0,o),s.next();else if(l.len==0&&!l.done)$e(i,0,l.ins,o),n&&ai(n,i,l.text),l.next();else{if(s.done||l.done)throw new Error("Mismatched change set lengths");{let a=Math.min(s.len2,l.len),h=i.length;if(s.ins==-1){let f=l.ins==-1?-1:l.off?0:l.ins;$e(i,a,f,o),n&&f&&ai(n,i,l.text)}else l.ins==-1?($e(i,s.off?0:s.len,a,o),n&&ai(n,i,s.textBit(a))):($e(i,s.off?0:s.len,l.off?0:l.ins,o),n&&!l.off&&ai(n,i,l.text));o=(s.ins>a||l.ins>=0&&l.len>a)&&(o||i.length>h),s.forward2(a),l.forward(a)}}}}let sr=class{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?F.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?F.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}},Ir=class Bo{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let i,n;return this.empty?i=n=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),i==this.from&&n==this.to?this:new Bo(i,n,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return T.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return T.range(this.anchor,i)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return T.range(e.anchor,e.head)}static create(e,t,i){return new Bo(e,t,i)}},T=class qe{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:qe.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(e.ranges[i],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new qe([this.main],0)}addRange(e,t=!0){return qe.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let i=this.ranges.slice();return i[t]=e,qe.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new qe(e.ranges.map(t=>Ir.fromJSON(t)),e.main)}static single(e,t=e){return new qe([qe.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,n=0;n<e.length;n++){let s=e[n];if(s.empty?s.from<=i:s.from<i)return qe.normalized(e.slice(),t);i=s.to}return new qe(e,t)}static cursor(e,t=0,i,n){return Ir.create(e,e,(t==0?0:t<0?8:16)|(i==null?7:Math.min(6,i))|(n??16777215)<<6)}static range(e,t,i,n){let s=(i??16777215)<<6|(n==null?7:Math.min(6,n));return t<e?Ir.create(t,e,48|s):Ir.create(e,t,(t>e?8:0)|s)}static normalized(e,t=0){let i=e[t];e.sort((n,s)=>n.from-s.from),t=e.indexOf(i);for(let n=1;n<e.length;n++){let s=e[n],l=e[n-1];if(s.empty?s.from<=l.to:s.from<l.to){let o=l.from,a=Math.max(s.to,l.to);n<=t&&t--,e.splice(--n,2,s.anchor>s.head?qe.range(a,o):qe.range(o,a))}}return new qe(e,t)}};function wd(r,e){for(let t of r.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let Oh=0,E=class $d{constructor(e,t,i,n,s){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=n,this.id=Oh++,this.default=e([]),this.extensions=typeof s=="function"?s(this):s}get reader(){return this}static define(e={}){return new $d(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:gh),!!e.static,e.enables)}of(e){return new ks([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new ks(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new ks(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}};function gh(r,e){return r==e||r.length==e.length&&r.every((t,i)=>t===e[i])}let ks=class{constructor(e,t,i,n){this.dependencies=e,this.facet=t,this.type=i,this.value=n,this.id=Oh++}dynamicSlot(e){var t;let i=this.value,n=this.facet.compareInput,s=this.id,l=e[s]>>1,o=this.type==2,a=!1,h=!1,f=[];for(let c of this.dependencies)c=="doc"?a=!0:c=="selection"?h=!0:(((t=e[c.id])!==null&&t!==void 0?t:1)&1)==0&&f.push(e[c.id]);return{create(c){return c.values[l]=i(c),1},update(c,u){if(a&&u.docChanged||h&&(u.docChanged||u.selection)||Do(c,f)){let d=i(c);if(o?!kf(d,c.values[l],n):!n(d,c.values[l]))return c.values[l]=d,1}return 0},reconfigure:(c,u)=>{let d,p=u.config.address[s];if(p!=null){let O=Ws(u,p);if(this.dependencies.every(g=>g instanceof E?u.facet(g)===c.facet(g):g instanceof Ri?u.field(g,!1)==c.field(g,!1):!0)||(o?kf(d=i(c),O,n):n(d=i(c),O)))return c.values[l]=O,0}else d=i(c);return c.values[l]=d,1}}}};function kf(r,e,t){if(r.length!=e.length)return!1;for(let i=0;i<r.length;i++)if(!t(r[i],e[i]))return!1;return!0}function Do(r,e){let t=!1;for(let i of e)Nn(r,i)&1&&(t=!0);return t}function C0(r,e,t){let i=t.map(a=>r[a.id]),n=t.map(a=>a.type),s=i.filter(a=>!(a&1)),l=r[e.id]>>1;function o(a){let h=[];for(let f=0;f<i.length;f++){let c=Ws(a,i[f]);if(n[f]==2)for(let u of c)h.push(u);else h.push(c)}return e.combine(h)}return{create(a){for(let h of i)Nn(a,h);return a.values[l]=o(a),1},update(a,h){if(!Do(a,s))return 0;let f=o(a);return e.compare(f,a.values[l])?0:(a.values[l]=f,1)},reconfigure(a,h){let f=Do(a,i),c=h.config.facets[e.id],u=h.facet(e);if(c&&!f&&gh(t,c))return a.values[l]=u,0;let d=o(a);return e.compare(d,u)?(a.values[l]=u,0):(a.values[l]=d,1)}}}const Vr=E.define({static:!0});let Ri=class Qd{constructor(e,t,i,n,s){this.id=e,this.createF=t,this.updateF=i,this.compareF=n,this.spec=s,this.provides=void 0}static define(e){let t=new Qd(Oh++,e.create,e.update,e.compare||((i,n)=>i===n),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(Vr).find(i=>i.field==this);return(t?.create||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,n)=>{let s=i.values[t],l=this.updateF(s,n);return this.compareF(s,l)?0:(i.values[t]=l,1)},reconfigure:(i,n)=>{let s=i.facet(Vr),l=n.facet(Vr),o;return(o=s.find(a=>a.field==this))&&o!=l.find(a=>a.field==this)?(i.values[t]=o.create(i),1):n.config.address[this.id]!=null?(i.values[t]=n.field(this),0):(i.values[t]=this.create(i),1)}}}init(e){return[this,Vr.of({field:this,create:e})]}get extension(){return this}};const ki={lowest:4,low:3,default:2,high:1,highest:0};function vn(r){return e=>new vd(e,r)}const mh={highest:vn(ki.highest),high:vn(ki.high),default:vn(ki.default),low:vn(ki.low),lowest:vn(ki.lowest)};let vd=class{constructor(e,t){this.inner=e,this.prec=t}},Pd=class Td{of(e){return new Wo(this,e)}reconfigure(e){return Td.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}},Wo=class{constructor(e,t){this.compartment=e,this.inner=t}},wf=class Cd{constructor(e,t,i,n,s,l){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=n,this.staticValues=s,this.facets=l,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,i){let n=[],s=Object.create(null),l=new Map;for(let u of A0(e,t,l))u instanceof Ri?n.push(u):(s[u.facet.id]||(s[u.facet.id]=[])).push(u);let o=Object.create(null),a=[],h=[];for(let u of n)o[u.id]=h.length<<1,h.push(d=>u.slot(d));let f=i?.config.facets;for(let u in s){let d=s[u],p=d[0].facet,O=f&&f[u]||[];if(d.every(g=>g.type==0))if(o[p.id]=a.length<<1|1,gh(O,d))a.push(i.facet(p));else{let g=p.combine(d.map(m=>m.value));a.push(i&&p.compare(g,i.facet(p))?i.facet(p):g)}else{for(let g of d)g.type==0?(o[g.id]=a.length<<1|1,a.push(g.value)):(o[g.id]=h.length<<1,h.push(m=>g.dynamicSlot(m)));o[p.id]=h.length<<1,h.push(g=>C0(g,p,d))}}let c=h.map(u=>u(o));return new Cd(e,l,c,o,a,s)}};function A0(r,e,t){let i=[[],[],[],[],[]],n=new Map;function s(l,o){let a=n.get(l);if(a!=null){if(a<=o)return;let h=i[a].indexOf(l);h>-1&&i[a].splice(h,1),l instanceof Wo&&t.delete(l.compartment)}if(n.set(l,o),Array.isArray(l))for(let h of l)s(h,o);else if(l instanceof Wo){if(t.has(l.compartment))throw new RangeError("Duplicate use of compartment in extensions");let h=e.get(l.compartment)||l.inner;t.set(l.compartment,h),s(h,o)}else if(l instanceof vd)s(l.inner,l.prec);else if(l instanceof Ri)i[o].push(l),l.provides&&s(l.provides,o);else if(l instanceof ks)i[o].push(l),l.facet.extensions&&s(l.facet.extensions,ki.default);else{let h=l.extension;if(!h)throw new Error(`Unrecognized extension value in extension set (${l}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(h,o)}}return s(r,ki.default),i.reduce((l,o)=>l.concat(o))}function Nn(r,e){if(e&1)return 2;let t=e>>1,i=r.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;r.status[t]=4;let n=r.computeSlot(r,r.config.dynamicSlots[t]);return r.status[t]=2|n}function Ws(r,e){return e&1?r.config.staticValues[e>>1]:r.values[e>>1]}const Ad=E.define(),zo=E.define({combine:r=>r.some(e=>e),static:!0}),Md=E.define({combine:r=>r.length?r[0]:void 0,static:!0}),Rd=E.define(),Zd=E.define(),Xd=E.define(),Ed=E.define({combine:r=>r.length?r[0]:!1});let gi=class{constructor(e,t){this.type=e,this.value=t}static define(){return new M0}},M0=class{of(e){return new gi(this,e)}},R0=class{constructor(e){this.map=e}of(e){return new Oe(this,e)}},Oe=class Ld{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new Ld(this.type,t)}is(e){return this.type==e}static define(e={}){return new R0(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let n of e){let s=n.map(t);s&&i.push(s)}return i}};Oe.reconfigure=Oe.define();Oe.appendConfig=Oe.define();let Ie=class Bn{constructor(e,t,i,n,s,l){this.startState=e,this.changes=t,this.selection=i,this.effects=n,this.annotations=s,this.scrollIntoView=l,this._doc=null,this._state=null,i&&wd(i,t.newLength),s.some(o=>o.type==Bn.time)||(this.annotations=s.concat(Bn.time.of(Date.now())))}static create(e,t,i,n,s,l){return new Bn(e,t,i,n,s,l)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(Bn.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}};Ie.time=gi.define();Ie.userEvent=gi.define();Ie.addToHistory=gi.define();Ie.remote=gi.define();function Z0(r,e){let t=[];for(let i=0,n=0;;){let s,l;if(i<r.length&&(n==e.length||e[n]>=r[i]))s=r[i++],l=r[i++];else if(n<e.length)s=e[n++],l=e[n++];else return t;!t.length||t[t.length-1]<s?t.push(s,l):t[t.length-1]<l&&(t[t.length-1]=l)}}function Bd(r,e,t){var i;let n,s,l;return t?(n=e.changes,s=gt.empty(e.changes.length),l=r.changes.compose(e.changes)):(n=e.changes.map(r.changes),s=r.changes.mapDesc(e.changes,!0),l=r.changes.compose(n)),{changes:l,selection:e.selection?e.selection.map(s):(i=r.selection)===null||i===void 0?void 0:i.map(n),effects:Oe.mapEffects(r.effects,n).concat(Oe.mapEffects(e.effects,s)),annotations:r.annotations.length?r.annotations.concat(e.annotations):e.annotations,scrollIntoView:r.scrollIntoView||e.scrollIntoView}}function Io(r,e,t){let i=e.selection,n=_i(e.annotations);return e.userEvent&&(n=n.concat(Ie.userEvent.of(e.userEvent))),{changes:e.changes instanceof gt?e.changes:gt.of(e.changes||[],t,r.facet(Md)),selection:i&&(i instanceof T?i:T.single(i.anchor,i.head)),effects:_i(e.effects),annotations:n,scrollIntoView:!!e.scrollIntoView}}function Dd(r,e,t){let i=Io(r,e.length?e[0]:{},r.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let s=1;s<e.length;s++){e[s].filter===!1&&(t=!1);let l=!!e[s].sequential;i=Bd(i,Io(r,e[s],l?i.changes.newLength:r.doc.length),l)}let n=Ie.create(r,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return E0(t?X0(n):n)}function X0(r){let e=r.startState,t=!0;for(let n of e.facet(Rd)){let s=n(r);if(s===!1){t=!1;break}Array.isArray(s)&&(t=t===!0?s:Z0(t,s))}if(t!==!0){let n,s;if(t===!1)s=r.changes.invertedDesc,n=gt.empty(e.doc.length);else{let l=r.changes.filter(t);n=l.changes,s=l.filtered.mapDesc(l.changes).invertedDesc}r=Ie.create(e,n,r.selection&&r.selection.map(s),Oe.mapEffects(r.effects,s),r.annotations,r.scrollIntoView)}let i=e.facet(Zd);for(let n=i.length-1;n>=0;n--){let s=i[n](r);s instanceof Ie?r=s:Array.isArray(s)&&s.length==1&&s[0]instanceof Ie?r=s[0]:r=Dd(e,_i(s),!1)}return r}function E0(r){let e=r.startState,t=e.facet(Xd),i=r;for(let n=t.length-1;n>=0;n--){let s=t[n](r);s&&Object.keys(s).length&&(i=Bd(i,Io(e,s,r.changes.newLength),!0))}return i==r?r:Ie.create(e,r.changes,r.selection,i.effects,i.annotations,i.scrollIntoView)}const L0=[];function _i(r){return r==null?L0:Array.isArray(r)?r:[r]}var qt=(function(r){return r[r.Word=0]="Word",r[r.Space=1]="Space",r[r.Other=2]="Other",r})(qt||(qt={}));const B0=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Vo;try{Vo=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function D0(r){if(Vo)return Vo.test(r);for(let e=0;e<r.length;e++){let t=r[e];if(/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||B0.test(t)))return!0}return!1}function W0(r){return e=>{if(!/\S/.test(e))return qt.Space;if(D0(e))return qt.Word;for(let t=0;t<r.length;t++)if(e.indexOf(r[t])>-1)return qt.Word;return qt.Other}}let ge=class ht{constructor(e,t,i,n,s,l){this.config=e,this.doc=t,this.selection=i,this.values=n,this.status=e.statusTemplate.slice(),this.computeSlot=s,l&&(l._state=this);for(let o=0;o<this.config.dynamicSlots.length;o++)Nn(this,o<<1);this.computeSlot=null}field(e,t=!0){let i=this.config.address[e.id];if(i==null){if(t)throw new RangeError("Field is not present in this state");return}return Nn(this,i),Ws(this,i)}update(...e){return Dd(this,e,!0)}applyTransaction(e){let t=this.config,{base:i,compartments:n}=t;for(let o of e.effects)o.is(Pd.reconfigure)?(t&&(n=new Map,t.compartments.forEach((a,h)=>n.set(h,a)),t=null),n.set(o.value.compartment,o.value.extension)):o.is(Oe.reconfigure)?(t=null,i=o.value):o.is(Oe.appendConfig)&&(t=null,i=_i(i).concat(o.value));let s;t?s=e.startState.values.slice():(t=wf.resolve(i,n,this),s=new ht(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(a,h)=>h.reconfigure(a,this),null).values);let l=e.startState.facet(zo)?e.newSelection:e.newSelection.asSingle();new ht(t,e.newDoc,l,s,(o,a)=>a.update(o,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:T.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),n=this.changes(i.changes),s=[i.range],l=_i(i.effects);for(let o=1;o<t.ranges.length;o++){let a=e(t.ranges[o]),h=this.changes(a.changes),f=h.map(n);for(let u=0;u<o;u++)s[u]=s[u].map(f);let c=n.mapDesc(h,!0);s.push(a.range.map(c)),n=n.compose(f),l=Oe.mapEffects(l,f).concat(Oe.mapEffects(_i(a.effects),c))}return{changes:n,selection:T.create(s,t.mainIndex),effects:l}}changes(e=[]){return e instanceof gt?e:gt.of(e,this.doc.length,this.facet(ht.lineSeparator))}toText(e){return F.of(e.split(this.facet(ht.lineSeparator)||Xo))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(Nn(this,t),Ws(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let n=e[i];n instanceof Ri&&this.config.address[n.id]!=null&&(t[i]=n.spec.toJSON(this.field(e[i]),this))}return t}static fromJSON(e,t={},i){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let n=[];if(i){for(let s in i)if(Object.prototype.hasOwnProperty.call(e,s)){let l=i[s],o=e[s];n.push(l.init(a=>l.spec.fromJSON(o,a)))}}return ht.create({doc:e.doc,selection:T.fromJSON(e.selection),extensions:t.extensions?n.concat([t.extensions]):n})}static create(e={}){let t=wf.resolve(e.extensions||[],new Map),i=e.doc instanceof F?e.doc:F.of((e.doc||"").split(t.staticFacet(ht.lineSeparator)||Xo)),n=e.selection?e.selection instanceof T?e.selection:T.single(e.selection.anchor,e.selection.head):T.single(0);return wd(n,i.length),t.staticFacet(zo)||(n=n.asSingle()),new ht(t,i,n,t.dynamicSlots.map(()=>null),(s,l)=>l.create(s),null)}get tabSize(){return this.facet(ht.tabSize)}get lineBreak(){return this.facet(ht.lineSeparator)||`
@@ -1,4 +1,4 @@
1
- import{g as Pe}from"./chunk-5VM5RSS4-BICC_wIw.js";import{aC as Fe,aD as xe,aE as Me,aF as Ke,aG as Ye,aH as We,aI as Ve,aJ as Ue,aK as He,aL as Xe,aM as je,aN as Ge,aO as qe,aP as Je,aQ as Ze,aR as Qe,aS as $e,aT as et,aU as tt,aV as st,aW as rt,aX as it,aY as at,aZ as nt,a_ as ot,_ as u,A as Y,j as X,a$ as ct,d as lt,l as m,r as ut,u as gt,c as Le,a7 as ht,ay as dt,ax as pt,az as ft,k as bt,b0 as St,ah as ye,ai as xt}from"./mermaid.core-DB_TNiSG.js";import{c as Lt}from"./channel-DwV664-P.js";import"./app-BCXQnJUH.js";function yt(e){return Array.isArray(e)}function mt(e){if(Fe(e))return e;const a=xe(e);if(!wt(e))return{};if(yt(e)){const r=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(r.index=e.index,r.input=e.input),r}if(Me(e)){const r=e,l=r.constructor;return new l(r.buffer,r.byteOffset,r.length)}if(a==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(a==="[object DataView]"){const r=e,l=r.buffer,d=r.byteOffset,s=r.byteLength,h=new ArrayBuffer(s),x=new Uint8Array(l,d,s);return new Uint8Array(h).set(x),new DataView(h)}if(a==="[object Boolean]"||a==="[object Number]"||a==="[object String]"){const r=e.constructor,l=new r(e.valueOf());return a==="[object String]"?_t(l,e):se(l,e),l}if(a==="[object Date]")return new Date(Number(e));if(a==="[object RegExp]"){const r=e,l=new RegExp(r.source,r.flags);return l.lastIndex=r.lastIndex,l}if(a==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(a==="[object Map]"){const r=e,l=new Map;return r.forEach((d,s)=>{l.set(s,d)}),l}if(a==="[object Set]"){const r=e,l=new Set;return r.forEach(d=>{l.add(d)}),l}if(a==="[object Arguments]"){const r=e,l={};return se(l,r),l.length=r.length,l[Symbol.iterator]=r[Symbol.iterator],l}const o={};return kt(o,e),se(o,e),Et(o,e),o}function wt(e){switch(xe(e)){case ot:case nt:case at:case it:case rt:case st:case tt:case et:case $e:case Qe:case Ze:case Je:case qe:case Ge:case je:case Xe:case He:case Ue:case Ve:case We:case Ye:case Ke:return!0;default:return!1}}function se(e,a){for(const o in a)Object.hasOwn(a,o)&&(e[o]=a[o])}function Et(e,a){const o=Object.getOwnPropertySymbols(a);for(let r=0;r<o.length;r++){const l=o[r];Object.prototype.propertyIsEnumerable.call(a,l)&&(e[l]=a[l])}}function _t(e,a){const o=a.valueOf().length;for(const r in a)Object.hasOwn(a,r)&&(Number.isNaN(Number(r))||Number(r)>=o)&&(e[r]=a[r])}function kt(e,a){const o=Object.getPrototypeOf(a);o!==null&&typeof a.constructor=="function"&&Object.setPrototypeOf(e,o)}var ie=(function(){var e=u(function(v,g,i,c){for(i=i||{},c=v.length;c--;i[v[c]]=g);return i},"o"),a=[1,15],o=[1,7],r=[1,13],l=[1,14],d=[1,19],s=[1,16],h=[1,17],x=[1,18],y=[8,30],S=[8,10,21,28,29,30,31,39,43,46],f=[1,23],L=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],b=[8,10,15,16,21,27,28,29,30,31,39,43,46],k=[1,49],_={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:u(function(g,i,c,p,E,t,M){var n=t.length-1;switch(E){case 4:p.getLogger().debug("Rule: separator (NL) ");break;case 5:p.getLogger().debug("Rule: separator (Space) ");break;case 6:p.getLogger().debug("Rule: separator (EOF) ");break;case 7:p.getLogger().debug("Rule: hierarchy: ",t[n-1]),p.setHierarchy(t[n-1]);break;case 8:p.getLogger().debug("Stop NL ");break;case 9:p.getLogger().debug("Stop EOF ");break;case 10:p.getLogger().debug("Stop NL2 ");break;case 11:p.getLogger().debug("Stop EOF2 ");break;case 12:p.getLogger().debug("Rule: statement: ",t[n]),typeof t[n].length=="number"?this.$=t[n]:this.$=[t[n]];break;case 13:p.getLogger().debug("Rule: statement #2: ",t[n-1]),this.$=[t[n-1]].concat(t[n]);break;case 14:p.getLogger().debug("Rule: link: ",t[n],g),this.$={edgeTypeStr:t[n],label:""};break;case 15:p.getLogger().debug("Rule: LABEL link: ",t[n-3],t[n-1],t[n]),this.$={edgeTypeStr:t[n],label:t[n-1]};break;case 18:const P=parseInt(t[n]),W=p.generateId();this.$={id:W,type:"space",label:"",width:P,children:[]};break;case 23:p.getLogger().debug("Rule: (nodeStatement link node) ",t[n-2],t[n-1],t[n]," typestr: ",t[n-1].edgeTypeStr);const J=p.edgeStrToEdgeData(t[n-1].edgeTypeStr),V=p.edgeStrToEdgeStartData(t[n-1].edgeTypeStr),Z=p.edgeStrToThickness(t[n-1].edgeTypeStr),D=p.edgeStrToPattern(t[n-1].edgeTypeStr);this.$=[{id:t[n-2].id,label:t[n-2].label,type:t[n-2].type,directions:t[n-2].directions},{id:t[n-2].id+"-"+t[n].id,start:t[n-2].id,end:t[n].id,label:t[n-1].label,type:"edge",thickness:Z,pattern:D,directions:t[n].directions,arrowTypeEnd:J,arrowTypeStart:V},{id:t[n].id,label:t[n].label,type:p.typeStr2Type(t[n].typeStr),directions:t[n].directions}];break;case 24:p.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[n-1],t[n]),this.$={id:t[n-1].id,label:t[n-1].label,type:p.typeStr2Type(t[n-1].typeStr),directions:t[n-1].directions,widthInColumns:parseInt(t[n],10)};break;case 25:p.getLogger().debug("Rule: nodeStatement (node) ",t[n]),this.$={id:t[n].id,label:t[n].label,type:p.typeStr2Type(t[n].typeStr),directions:t[n].directions,widthInColumns:1};break;case 26:p.getLogger().debug("APA123",this?this:"na"),p.getLogger().debug("COLUMNS: ",t[n]),this.$={type:"column-setting",columns:t[n]==="auto"?-1:parseInt(t[n])};break;case 27:p.getLogger().debug("Rule: id-block statement : ",t[n-2],t[n-1]),p.generateId(),this.$={...t[n-2],type:"composite",children:t[n-1]};break;case 28:p.getLogger().debug("Rule: blockStatement : ",t[n-2],t[n-1],t[n]);const A=p.generateId();this.$={id:A,type:"composite",label:"",children:t[n-1]};break;case 29:p.getLogger().debug("Rule: node (NODE_ID separator): ",t[n]),this.$={id:t[n]};break;case 30:p.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[n-1],t[n]),this.$={id:t[n-1],label:t[n].label,typeStr:t[n].typeStr,directions:t[n].directions};break;case 31:p.getLogger().debug("Rule: dirList: ",t[n]),this.$=[t[n]];break;case 32:p.getLogger().debug("Rule: dirList: ",t[n-1],t[n]),this.$=[t[n-1]].concat(t[n]);break;case 33:p.getLogger().debug("Rule: nodeShapeNLabel: ",t[n-2],t[n-1],t[n]),this.$={typeStr:t[n-2]+t[n],label:t[n-1]};break;case 34:p.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[n-3],t[n-2]," #3:",t[n-1],t[n]),this.$={typeStr:t[n-3]+t[n],label:t[n-2],directions:t[n-1]};break;case 35:case 36:this.$={type:"classDef",id:t[n-1].trim(),css:t[n].trim()};break;case 37:this.$={type:"applyClass",id:t[n-1].trim(),styleClass:t[n].trim()};break;case 38:this.$={type:"applyStyles",id:t[n-1].trim(),stylesStr:t[n].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:a,11:3,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:r,29:l,31:d,39:s,43:h,46:x},{8:[1,20]},e(y,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:a,21:o,28:r,29:l,31:d,39:s,43:h,46:x}),e(S,[2,16],{14:22,15:f,16:L}),e(S,[2,17]),e(S,[2,18]),e(S,[2,19]),e(S,[2,20]),e(S,[2,21]),e(S,[2,22]),e(w,[2,25],{27:[1,25]}),e(S,[2,26]),{19:26,26:12,31:d},{10:a,11:27,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:r,29:l,31:d,39:s,43:h,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(b,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(y,[2,13]),{26:35,31:d},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:a,11:37,13:4,14:22,15:f,16:L,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:r,29:l,31:d,39:s,43:h,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(b,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(S,[2,28]),e(S,[2,35]),e(S,[2,36]),e(S,[2,37]),e(S,[2,38]),{36:[1,47]},{33:48,34:k},{15:[1,50]},e(S,[2,27]),e(b,[2,33]),{38:[1,51]},{33:52,34:k,38:[2,31]},{31:[2,15]},e(b,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(g,i){if(i.recoverable)this.trace(g);else{var c=new Error(g);throw c.hash=i,c}},"parseError"),parse:u(function(g){var i=this,c=[0],p=[],E=[null],t=[],M=this.table,n="",P=0,W=0,J=2,V=1,Z=t.slice.call(arguments,1),D=Object.create(this.lexer),A={yy:{}};for(var Q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Q)&&(A.yy[Q]=this.yy[Q]);D.setInput(g,A.yy),A.yy.lexer=D,A.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var $=D.yylloc;t.push($);var Be=D.options&&D.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(I){c.length=c.length-2*I,E.length=E.length-I,t.length=t.length-I}u(Re,"popStack");function de(){var I;return I=p.pop()||D.lex()||V,typeof I!="number"&&(I instanceof Array&&(p=I,I=p.pop()),I=i.symbols_[I]||I),I}u(de,"lex");for(var N,R,C,ee,F={},U,B,pe,H;;){if(R=c[c.length-1],this.defaultActions[R]?C=this.defaultActions[R]:((N===null||typeof N>"u")&&(N=de()),C=M[R]&&M[R][N]),typeof C>"u"||!C.length||!C[0]){var te="";H=[];for(U in M[R])this.terminals_[U]&&U>J&&H.push("'"+this.terminals_[U]+"'");D.showPosition?te="Parse error on line "+(P+1)+`:
1
+ import{g as Pe}from"./chunk-5VM5RSS4-BwAmjLhK.js";import{aC as Fe,aD as xe,aE as Me,aF as Ke,aG as Ye,aH as We,aI as Ve,aJ as Ue,aK as He,aL as Xe,aM as je,aN as Ge,aO as qe,aP as Je,aQ as Ze,aR as Qe,aS as $e,aT as et,aU as tt,aV as st,aW as rt,aX as it,aY as at,aZ as nt,a_ as ot,_ as u,A as Y,j as X,a$ as ct,d as lt,l as m,r as ut,u as gt,c as Le,a7 as ht,ay as dt,ax as pt,az as ft,k as bt,b0 as St,ah as ye,ai as xt}from"./mermaid.core-DcgS6fFC.js";import{c as Lt}from"./channel-68fpiRG4.js";import"./app-Cy3sY2K8.js";function yt(e){return Array.isArray(e)}function mt(e){if(Fe(e))return e;const a=xe(e);if(!wt(e))return{};if(yt(e)){const r=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(r.index=e.index,r.input=e.input),r}if(Me(e)){const r=e,l=r.constructor;return new l(r.buffer,r.byteOffset,r.length)}if(a==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(a==="[object DataView]"){const r=e,l=r.buffer,d=r.byteOffset,s=r.byteLength,h=new ArrayBuffer(s),x=new Uint8Array(l,d,s);return new Uint8Array(h).set(x),new DataView(h)}if(a==="[object Boolean]"||a==="[object Number]"||a==="[object String]"){const r=e.constructor,l=new r(e.valueOf());return a==="[object String]"?_t(l,e):se(l,e),l}if(a==="[object Date]")return new Date(Number(e));if(a==="[object RegExp]"){const r=e,l=new RegExp(r.source,r.flags);return l.lastIndex=r.lastIndex,l}if(a==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(a==="[object Map]"){const r=e,l=new Map;return r.forEach((d,s)=>{l.set(s,d)}),l}if(a==="[object Set]"){const r=e,l=new Set;return r.forEach(d=>{l.add(d)}),l}if(a==="[object Arguments]"){const r=e,l={};return se(l,r),l.length=r.length,l[Symbol.iterator]=r[Symbol.iterator],l}const o={};return kt(o,e),se(o,e),Et(o,e),o}function wt(e){switch(xe(e)){case ot:case nt:case at:case it:case rt:case st:case tt:case et:case $e:case Qe:case Ze:case Je:case qe:case Ge:case je:case Xe:case He:case Ue:case Ve:case We:case Ye:case Ke:return!0;default:return!1}}function se(e,a){for(const o in a)Object.hasOwn(a,o)&&(e[o]=a[o])}function Et(e,a){const o=Object.getOwnPropertySymbols(a);for(let r=0;r<o.length;r++){const l=o[r];Object.prototype.propertyIsEnumerable.call(a,l)&&(e[l]=a[l])}}function _t(e,a){const o=a.valueOf().length;for(const r in a)Object.hasOwn(a,r)&&(Number.isNaN(Number(r))||Number(r)>=o)&&(e[r]=a[r])}function kt(e,a){const o=Object.getPrototypeOf(a);o!==null&&typeof a.constructor=="function"&&Object.setPrototypeOf(e,o)}var ie=(function(){var e=u(function(v,g,i,c){for(i=i||{},c=v.length;c--;i[v[c]]=g);return i},"o"),a=[1,15],o=[1,7],r=[1,13],l=[1,14],d=[1,19],s=[1,16],h=[1,17],x=[1,18],y=[8,30],S=[8,10,21,28,29,30,31,39,43,46],f=[1,23],L=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],b=[8,10,15,16,21,27,28,29,30,31,39,43,46],k=[1,49],_={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:u(function(g,i,c,p,E,t,M){var n=t.length-1;switch(E){case 4:p.getLogger().debug("Rule: separator (NL) ");break;case 5:p.getLogger().debug("Rule: separator (Space) ");break;case 6:p.getLogger().debug("Rule: separator (EOF) ");break;case 7:p.getLogger().debug("Rule: hierarchy: ",t[n-1]),p.setHierarchy(t[n-1]);break;case 8:p.getLogger().debug("Stop NL ");break;case 9:p.getLogger().debug("Stop EOF ");break;case 10:p.getLogger().debug("Stop NL2 ");break;case 11:p.getLogger().debug("Stop EOF2 ");break;case 12:p.getLogger().debug("Rule: statement: ",t[n]),typeof t[n].length=="number"?this.$=t[n]:this.$=[t[n]];break;case 13:p.getLogger().debug("Rule: statement #2: ",t[n-1]),this.$=[t[n-1]].concat(t[n]);break;case 14:p.getLogger().debug("Rule: link: ",t[n],g),this.$={edgeTypeStr:t[n],label:""};break;case 15:p.getLogger().debug("Rule: LABEL link: ",t[n-3],t[n-1],t[n]),this.$={edgeTypeStr:t[n],label:t[n-1]};break;case 18:const P=parseInt(t[n]),W=p.generateId();this.$={id:W,type:"space",label:"",width:P,children:[]};break;case 23:p.getLogger().debug("Rule: (nodeStatement link node) ",t[n-2],t[n-1],t[n]," typestr: ",t[n-1].edgeTypeStr);const J=p.edgeStrToEdgeData(t[n-1].edgeTypeStr),V=p.edgeStrToEdgeStartData(t[n-1].edgeTypeStr),Z=p.edgeStrToThickness(t[n-1].edgeTypeStr),D=p.edgeStrToPattern(t[n-1].edgeTypeStr);this.$=[{id:t[n-2].id,label:t[n-2].label,type:t[n-2].type,directions:t[n-2].directions},{id:t[n-2].id+"-"+t[n].id,start:t[n-2].id,end:t[n].id,label:t[n-1].label,type:"edge",thickness:Z,pattern:D,directions:t[n].directions,arrowTypeEnd:J,arrowTypeStart:V},{id:t[n].id,label:t[n].label,type:p.typeStr2Type(t[n].typeStr),directions:t[n].directions}];break;case 24:p.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[n-1],t[n]),this.$={id:t[n-1].id,label:t[n-1].label,type:p.typeStr2Type(t[n-1].typeStr),directions:t[n-1].directions,widthInColumns:parseInt(t[n],10)};break;case 25:p.getLogger().debug("Rule: nodeStatement (node) ",t[n]),this.$={id:t[n].id,label:t[n].label,type:p.typeStr2Type(t[n].typeStr),directions:t[n].directions,widthInColumns:1};break;case 26:p.getLogger().debug("APA123",this?this:"na"),p.getLogger().debug("COLUMNS: ",t[n]),this.$={type:"column-setting",columns:t[n]==="auto"?-1:parseInt(t[n])};break;case 27:p.getLogger().debug("Rule: id-block statement : ",t[n-2],t[n-1]),p.generateId(),this.$={...t[n-2],type:"composite",children:t[n-1]};break;case 28:p.getLogger().debug("Rule: blockStatement : ",t[n-2],t[n-1],t[n]);const A=p.generateId();this.$={id:A,type:"composite",label:"",children:t[n-1]};break;case 29:p.getLogger().debug("Rule: node (NODE_ID separator): ",t[n]),this.$={id:t[n]};break;case 30:p.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[n-1],t[n]),this.$={id:t[n-1],label:t[n].label,typeStr:t[n].typeStr,directions:t[n].directions};break;case 31:p.getLogger().debug("Rule: dirList: ",t[n]),this.$=[t[n]];break;case 32:p.getLogger().debug("Rule: dirList: ",t[n-1],t[n]),this.$=[t[n-1]].concat(t[n]);break;case 33:p.getLogger().debug("Rule: nodeShapeNLabel: ",t[n-2],t[n-1],t[n]),this.$={typeStr:t[n-2]+t[n],label:t[n-1]};break;case 34:p.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[n-3],t[n-2]," #3:",t[n-1],t[n]),this.$={typeStr:t[n-3]+t[n],label:t[n-2],directions:t[n-1]};break;case 35:case 36:this.$={type:"classDef",id:t[n-1].trim(),css:t[n].trim()};break;case 37:this.$={type:"applyClass",id:t[n-1].trim(),styleClass:t[n].trim()};break;case 38:this.$={type:"applyStyles",id:t[n-1].trim(),stylesStr:t[n].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:a,11:3,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:r,29:l,31:d,39:s,43:h,46:x},{8:[1,20]},e(y,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:a,21:o,28:r,29:l,31:d,39:s,43:h,46:x}),e(S,[2,16],{14:22,15:f,16:L}),e(S,[2,17]),e(S,[2,18]),e(S,[2,19]),e(S,[2,20]),e(S,[2,21]),e(S,[2,22]),e(w,[2,25],{27:[1,25]}),e(S,[2,26]),{19:26,26:12,31:d},{10:a,11:27,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:r,29:l,31:d,39:s,43:h,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(b,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(y,[2,13]),{26:35,31:d},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:a,11:37,13:4,14:22,15:f,16:L,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:r,29:l,31:d,39:s,43:h,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(b,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(S,[2,28]),e(S,[2,35]),e(S,[2,36]),e(S,[2,37]),e(S,[2,38]),{36:[1,47]},{33:48,34:k},{15:[1,50]},e(S,[2,27]),e(b,[2,33]),{38:[1,51]},{33:52,34:k,38:[2,31]},{31:[2,15]},e(b,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(g,i){if(i.recoverable)this.trace(g);else{var c=new Error(g);throw c.hash=i,c}},"parseError"),parse:u(function(g){var i=this,c=[0],p=[],E=[null],t=[],M=this.table,n="",P=0,W=0,J=2,V=1,Z=t.slice.call(arguments,1),D=Object.create(this.lexer),A={yy:{}};for(var Q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Q)&&(A.yy[Q]=this.yy[Q]);D.setInput(g,A.yy),A.yy.lexer=D,A.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var $=D.yylloc;t.push($);var Be=D.options&&D.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(I){c.length=c.length-2*I,E.length=E.length-I,t.length=t.length-I}u(Re,"popStack");function de(){var I;return I=p.pop()||D.lex()||V,typeof I!="number"&&(I instanceof Array&&(p=I,I=p.pop()),I=i.symbols_[I]||I),I}u(de,"lex");for(var N,R,C,ee,F={},U,B,pe,H;;){if(R=c[c.length-1],this.defaultActions[R]?C=this.defaultActions[R]:((N===null||typeof N>"u")&&(N=de()),C=M[R]&&M[R][N]),typeof C>"u"||!C.length||!C[0]){var te="";H=[];for(U in M[R])this.terminals_[U]&&U>J&&H.push("'"+this.terminals_[U]+"'");D.showPosition?te="Parse error on line "+(P+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+H.join(", ")+", got '"+(this.terminals_[N]||N)+"'":te="Parse error on line "+(P+1)+": Unexpected "+(N==V?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(te,{text:D.match,token:this.terminals_[N]||N,line:D.yylineno,loc:$,expected:H})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+N);switch(C[0]){case 1:c.push(N),E.push(D.yytext),t.push(D.yylloc),c.push(C[1]),N=null,W=D.yyleng,n=D.yytext,P=D.yylineno,$=D.yylloc;break;case 2:if(B=this.productions_[C[1]][1],F.$=E[E.length-B],F._$={first_line:t[t.length-(B||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(B||1)].first_column,last_column:t[t.length-1].last_column},Be&&(F._$.range=[t[t.length-(B||1)].range[0],t[t.length-1].range[1]]),ee=this.performAction.apply(F,[n,W,P,A.yy,C[1],E,t].concat(Z)),typeof ee<"u")return ee;B&&(c=c.slice(0,-1*B*2),E=E.slice(0,-1*B),t=t.slice(0,-1*B)),c.push(this.productions_[C[1]][0]),E.push(F.$),t.push(F._$),pe=M[c[c.length-2]][c[c.length-1]],c.push(pe);break;case 3:return!0}}return!0},"parse")},T=(function(){var v={EOF:1,parseError:u(function(i,c){if(this.yy.parser)this.yy.parser.parseError(i,c);else throw new Error(i)},"parseError"),setInput:u(function(g,i){return this.yy=i||this.yy||{},this._input=g,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:u(function(){var g=this._input[0];this.yytext+=g,this.yyleng++,this.offset++,this.match+=g,this.matched+=g;var i=g.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),g},"input"),unput:u(function(g){var i=g.length,c=g.split(/(?:\r\n?|\n)/g);this._input=g+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var p=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===p.length?this.yylloc.first_column:0)+p[p.length-c.length].length-c[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(g){this.unput(this.match.slice(g))},"less"),pastInput:u(function(){var g=this.matched.substr(0,this.matched.length-this.match.length);return(g.length>20?"...":"")+g.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var g=this.match;return g.length<20&&(g+=this._input.substr(0,20-g.length)),(g.substr(0,20)+(g.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var g=this.pastInput(),i=new Array(g.length+1).join("-");return g+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{d as Ne}from"./chunk-F27PBJKO-CBxmcmxs.js";import{s as Ae,g as Le,a as Ie,b as Me,_ as d,c as Ct,l as ce,d as Be,e as Ve,f as Ot,h as Ye,i as ye,j as Kt,w as Fe,k as Jt,m as ue}from"./mermaid.core-DB_TNiSG.js";import"./app-BCXQnJUH.js";var Yt=(function(){var t=d(function(yt,m,x,E){for(x=x||{},E=yt.length;E--;x[yt[E]]=m);return x},"o"),e=[1,24],r=[1,25],a=[1,26],u=[1,27],i=[1,28],n=[1,63],l=[1,64],s=[1,65],h=[1,66],y=[1,67],f=[1,68],b=[1,69],v=[1,29],w=[1,30],N=[1,31],O=[1,32],P=[1,33],I=[1,34],W=[1,35],X=[1,36],q=[1,37],H=[1,38],Q=[1,39],K=[1,40],G=[1,41],J=[1,42],Z=[1,43],$=[1,44],tt=[1,45],et=[1,46],nt=[1,47],st=[1,48],rt=[1,50],at=[1,51],it=[1,52],ot=[1,53],lt=[1,54],ct=[1,55],ut=[1,56],ht=[1,57],dt=[1,58],pt=[1,59],ft=[1,60],kt=[14,42],jt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Rt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],S=[1,82],k=[1,83],T=[1,84],C=[1,85],R=[12,14,42],re=[12,14,33,42],Lt=[12,14,33,42,76,77,79,80],gt=[12,33],zt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Wt={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:d(function(m,x,E,_,D,o,wt){var p=o.length-1;switch(D){case 3:_.setDirection("TB");break;case 4:_.setDirection("BT");break;case 5:_.setDirection("RL");break;case 6:_.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:_.setC4Type(o[p-3]);break;case 19:_.setTitle(o[p].substring(6)),this.$=o[p].substring(6);break;case 20:_.setAccDescription(o[p].substring(15)),this.$=o[p].substring(15);break;case 21:this.$=o[p].trim(),_.setTitle(this.$);break;case 22:case 23:this.$=o[p].trim(),_.setAccDescription(this.$);break;case 28:o[p].splice(2,0,"ENTERPRISE"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 29:o[p].splice(2,0,"SYSTEM"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 30:_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 31:o[p].splice(2,0,"CONTAINER"),_.addContainerBoundary(...o[p]),this.$=o[p];break;case 32:_.addDeploymentNode("node",...o[p]),this.$=o[p];break;case 33:_.addDeploymentNode("nodeL",...o[p]),this.$=o[p];break;case 34:_.addDeploymentNode("nodeR",...o[p]),this.$=o[p];break;case 35:_.popBoundaryParseStack();break;case 39:_.addPersonOrSystem("person",...o[p]),this.$=o[p];break;case 40:_.addPersonOrSystem("external_person",...o[p]),this.$=o[p];break;case 41:_.addPersonOrSystem("system",...o[p]),this.$=o[p];break;case 42:_.addPersonOrSystem("system_db",...o[p]),this.$=o[p];break;case 43:_.addPersonOrSystem("system_queue",...o[p]),this.$=o[p];break;case 44:_.addPersonOrSystem("external_system",...o[p]),this.$=o[p];break;case 45:_.addPersonOrSystem("external_system_db",...o[p]),this.$=o[p];break;case 46:_.addPersonOrSystem("external_system_queue",...o[p]),this.$=o[p];break;case 47:_.addContainer("container",...o[p]),this.$=o[p];break;case 48:_.addContainer("container_db",...o[p]),this.$=o[p];break;case 49:_.addContainer("container_queue",...o[p]),this.$=o[p];break;case 50:_.addContainer("external_container",...o[p]),this.$=o[p];break;case 51:_.addContainer("external_container_db",...o[p]),this.$=o[p];break;case 52:_.addContainer("external_container_queue",...o[p]),this.$=o[p];break;case 53:_.addComponent("component",...o[p]),this.$=o[p];break;case 54:_.addComponent("component_db",...o[p]),this.$=o[p];break;case 55:_.addComponent("component_queue",...o[p]),this.$=o[p];break;case 56:_.addComponent("external_component",...o[p]),this.$=o[p];break;case 57:_.addComponent("external_component_db",...o[p]),this.$=o[p];break;case 58:_.addComponent("external_component_queue",...o[p]),this.$=o[p];break;case 60:_.addRel("rel",...o[p]),this.$=o[p];break;case 61:_.addRel("birel",...o[p]),this.$=o[p];break;case 62:_.addRel("rel_u",...o[p]),this.$=o[p];break;case 63:_.addRel("rel_d",...o[p]),this.$=o[p];break;case 64:_.addRel("rel_l",...o[p]),this.$=o[p];break;case 65:_.addRel("rel_r",...o[p]),this.$=o[p];break;case 66:_.addRel("rel_b",...o[p]),this.$=o[p];break;case 67:o[p].splice(0,1),_.addRel("rel",...o[p]),this.$=o[p];break;case 68:_.updateElStyle("update_el_style",...o[p]),this.$=o[p];break;case 69:_.updateRelStyle("update_rel_style",...o[p]),this.$=o[p];break;case 70:_.updateLayoutConfig("update_layout_config",...o[p]),this.$=o[p];break;case 71:this.$=[o[p]];break;case 72:o[p].unshift(o[p-1]),this.$=o[p];break;case 73:case 75:this.$=o[p].trim();break;case 74:let xt={};xt[o[p-1].trim()]=o[p].trim(),this.$=xt;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:r,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:70,19:20,20:21,21:22,22:e,23:r,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:71,19:20,20:21,21:22,22:e,23:r,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:72,19:20,20:21,21:22,22:e,23:r,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:73,19:20,20:21,21:22,22:e,23:r,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{14:[1,74]},t(kt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:l,37:s,38:h,39:y,40:f,41:b,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft}),t(kt,[2,14]),t(jt,[2,16],{12:[1,76]}),t(kt,[2,36],{12:[1,77]}),t(Rt,[2,19]),t(Rt,[2,20]),{25:[1,78]},{27:[1,79]},t(Rt,[2,23]),{35:80,75:81,76:S,77:k,79:T,80:C},{35:86,75:81,76:S,77:k,79:T,80:C},{35:87,75:81,76:S,77:k,79:T,80:C},{35:88,75:81,76:S,77:k,79:T,80:C},{35:89,75:81,76:S,77:k,79:T,80:C},{35:90,75:81,76:S,77:k,79:T,80:C},{35:91,75:81,76:S,77:k,79:T,80:C},{35:92,75:81,76:S,77:k,79:T,80:C},{35:93,75:81,76:S,77:k,79:T,80:C},{35:94,75:81,76:S,77:k,79:T,80:C},{35:95,75:81,76:S,77:k,79:T,80:C},{35:96,75:81,76:S,77:k,79:T,80:C},{35:97,75:81,76:S,77:k,79:T,80:C},{35:98,75:81,76:S,77:k,79:T,80:C},{35:99,75:81,76:S,77:k,79:T,80:C},{35:100,75:81,76:S,77:k,79:T,80:C},{35:101,75:81,76:S,77:k,79:T,80:C},{35:102,75:81,76:S,77:k,79:T,80:C},{35:103,75:81,76:S,77:k,79:T,80:C},{35:104,75:81,76:S,77:k,79:T,80:C},t(R,[2,59]),{35:105,75:81,76:S,77:k,79:T,80:C},{35:106,75:81,76:S,77:k,79:T,80:C},{35:107,75:81,76:S,77:k,79:T,80:C},{35:108,75:81,76:S,77:k,79:T,80:C},{35:109,75:81,76:S,77:k,79:T,80:C},{35:110,75:81,76:S,77:k,79:T,80:C},{35:111,75:81,76:S,77:k,79:T,80:C},{35:112,75:81,76:S,77:k,79:T,80:C},{35:113,75:81,76:S,77:k,79:T,80:C},{35:114,75:81,76:S,77:k,79:T,80:C},{35:115,75:81,76:S,77:k,79:T,80:C},{20:116,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{12:[1,118],33:[1,117]},{35:119,75:81,76:S,77:k,79:T,80:C},{35:120,75:81,76:S,77:k,79:T,80:C},{35:121,75:81,76:S,77:k,79:T,80:C},{35:122,75:81,76:S,77:k,79:T,80:C},{35:123,75:81,76:S,77:k,79:T,80:C},{35:124,75:81,76:S,77:k,79:T,80:C},{35:125,75:81,76:S,77:k,79:T,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(kt,[2,15]),t(jt,[2,17],{21:22,19:130,22:e,23:r,24:a,26:u,28:i}),t(kt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:r,24:a,26:u,28:i,34:n,36:l,37:s,38:h,39:y,40:f,41:b,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft}),t(Rt,[2,21]),t(Rt,[2,22]),t(R,[2,39]),t(re,[2,71],{75:81,35:132,76:S,77:k,79:T,80:C}),t(Lt,[2,73]),{78:[1,133]},t(Lt,[2,75]),t(Lt,[2,76]),t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(R,[2,52]),t(R,[2,53]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,60]),t(R,[2,61]),t(R,[2,62]),t(R,[2,63]),t(R,[2,64]),t(R,[2,65]),t(R,[2,66]),t(R,[2,67]),t(R,[2,68]),t(R,[2,69]),t(R,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(gt,[2,28]),t(gt,[2,29]),t(gt,[2,30]),t(gt,[2,31]),t(gt,[2,32]),t(gt,[2,33]),t(gt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(jt,[2,18]),t(kt,[2,38]),t(re,[2,72]),t(Lt,[2,74]),t(R,[2,24]),t(R,[2,35]),t(zt,[2,25]),t(zt,[2,26],{12:[1,138]}),t(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:d(function(m,x){if(x.recoverable)this.trace(m);else{var E=new Error(m);throw E.hash=x,E}},"parseError"),parse:d(function(m){var x=this,E=[0],_=[],D=[null],o=[],wt=this.table,p="",xt=0,ae=0,we=2,ie=1,Oe=o.slice.call(arguments,1),A=Object.create(this.lexer),vt={yy:{}};for(var Xt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Xt)&&(vt.yy[Xt]=this.yy[Xt]);A.setInput(m,vt.yy),vt.yy.lexer=A,vt.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var qt=A.yylloc;o.push(qt);var Pe=A.options&&A.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function De(B){E.length=E.length-2*B,D.length=D.length-B,o.length=o.length-B}d(De,"popStack");function oe(){var B;return B=_.pop()||A.lex()||ie,typeof B!="number"&&(B instanceof Array&&(_=B,B=_.pop()),B=x.symbols_[B]||B),B}d(oe,"lex");for(var M,Et,V,Ht,Tt={},Mt,j,le,Bt;;){if(Et=E[E.length-1],this.defaultActions[Et]?V=this.defaultActions[Et]:((M===null||typeof M>"u")&&(M=oe()),V=wt[Et]&&wt[Et][M]),typeof V>"u"||!V.length||!V[0]){var Qt="";Bt=[];for(Mt in wt[Et])this.terminals_[Mt]&&Mt>we&&Bt.push("'"+this.terminals_[Mt]+"'");A.showPosition?Qt="Parse error on line "+(xt+1)+`:
1
+ import{d as Ne}from"./chunk-F27PBJKO-DLKbY_DS.js";import{s as Ae,g as Le,a as Ie,b as Me,_ as d,c as Ct,l as ce,d as Be,e as Ve,f as Ot,h as Ye,i as ye,j as Kt,w as Fe,k as Jt,m as ue}from"./mermaid.core-DcgS6fFC.js";import"./app-Cy3sY2K8.js";var Yt=(function(){var t=d(function(yt,m,x,E){for(x=x||{},E=yt.length;E--;x[yt[E]]=m);return x},"o"),e=[1,24],r=[1,25],a=[1,26],u=[1,27],i=[1,28],n=[1,63],l=[1,64],s=[1,65],h=[1,66],y=[1,67],f=[1,68],b=[1,69],v=[1,29],w=[1,30],N=[1,31],O=[1,32],P=[1,33],I=[1,34],W=[1,35],X=[1,36],q=[1,37],H=[1,38],Q=[1,39],K=[1,40],G=[1,41],J=[1,42],Z=[1,43],$=[1,44],tt=[1,45],et=[1,46],nt=[1,47],st=[1,48],rt=[1,50],at=[1,51],it=[1,52],ot=[1,53],lt=[1,54],ct=[1,55],ut=[1,56],ht=[1,57],dt=[1,58],pt=[1,59],ft=[1,60],kt=[14,42],jt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Rt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],S=[1,82],k=[1,83],T=[1,84],C=[1,85],R=[12,14,42],re=[12,14,33,42],Lt=[12,14,33,42,76,77,79,80],gt=[12,33],zt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Wt={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:d(function(m,x,E,_,D,o,wt){var p=o.length-1;switch(D){case 3:_.setDirection("TB");break;case 4:_.setDirection("BT");break;case 5:_.setDirection("RL");break;case 6:_.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:_.setC4Type(o[p-3]);break;case 19:_.setTitle(o[p].substring(6)),this.$=o[p].substring(6);break;case 20:_.setAccDescription(o[p].substring(15)),this.$=o[p].substring(15);break;case 21:this.$=o[p].trim(),_.setTitle(this.$);break;case 22:case 23:this.$=o[p].trim(),_.setAccDescription(this.$);break;case 28:o[p].splice(2,0,"ENTERPRISE"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 29:o[p].splice(2,0,"SYSTEM"),_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 30:_.addPersonOrSystemBoundary(...o[p]),this.$=o[p];break;case 31:o[p].splice(2,0,"CONTAINER"),_.addContainerBoundary(...o[p]),this.$=o[p];break;case 32:_.addDeploymentNode("node",...o[p]),this.$=o[p];break;case 33:_.addDeploymentNode("nodeL",...o[p]),this.$=o[p];break;case 34:_.addDeploymentNode("nodeR",...o[p]),this.$=o[p];break;case 35:_.popBoundaryParseStack();break;case 39:_.addPersonOrSystem("person",...o[p]),this.$=o[p];break;case 40:_.addPersonOrSystem("external_person",...o[p]),this.$=o[p];break;case 41:_.addPersonOrSystem("system",...o[p]),this.$=o[p];break;case 42:_.addPersonOrSystem("system_db",...o[p]),this.$=o[p];break;case 43:_.addPersonOrSystem("system_queue",...o[p]),this.$=o[p];break;case 44:_.addPersonOrSystem("external_system",...o[p]),this.$=o[p];break;case 45:_.addPersonOrSystem("external_system_db",...o[p]),this.$=o[p];break;case 46:_.addPersonOrSystem("external_system_queue",...o[p]),this.$=o[p];break;case 47:_.addContainer("container",...o[p]),this.$=o[p];break;case 48:_.addContainer("container_db",...o[p]),this.$=o[p];break;case 49:_.addContainer("container_queue",...o[p]),this.$=o[p];break;case 50:_.addContainer("external_container",...o[p]),this.$=o[p];break;case 51:_.addContainer("external_container_db",...o[p]),this.$=o[p];break;case 52:_.addContainer("external_container_queue",...o[p]),this.$=o[p];break;case 53:_.addComponent("component",...o[p]),this.$=o[p];break;case 54:_.addComponent("component_db",...o[p]),this.$=o[p];break;case 55:_.addComponent("component_queue",...o[p]),this.$=o[p];break;case 56:_.addComponent("external_component",...o[p]),this.$=o[p];break;case 57:_.addComponent("external_component_db",...o[p]),this.$=o[p];break;case 58:_.addComponent("external_component_queue",...o[p]),this.$=o[p];break;case 60:_.addRel("rel",...o[p]),this.$=o[p];break;case 61:_.addRel("birel",...o[p]),this.$=o[p];break;case 62:_.addRel("rel_u",...o[p]),this.$=o[p];break;case 63:_.addRel("rel_d",...o[p]),this.$=o[p];break;case 64:_.addRel("rel_l",...o[p]),this.$=o[p];break;case 65:_.addRel("rel_r",...o[p]),this.$=o[p];break;case 66:_.addRel("rel_b",...o[p]),this.$=o[p];break;case 67:o[p].splice(0,1),_.addRel("rel",...o[p]),this.$=o[p];break;case 68:_.updateElStyle("update_el_style",...o[p]),this.$=o[p];break;case 69:_.updateRelStyle("update_rel_style",...o[p]),this.$=o[p];break;case 70:_.updateLayoutConfig("update_layout_config",...o[p]),this.$=o[p];break;case 71:this.$=[o[p]];break;case 72:o[p].unshift(o[p-1]),this.$=o[p];break;case 73:case 75:this.$=o[p].trim();break;case 74:let xt={};xt[o[p-1].trim()]=o[p].trim(),this.$=xt;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:r,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:70,19:20,20:21,21:22,22:e,23:r,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:71,19:20,20:21,21:22,22:e,23:r,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:72,19:20,20:21,21:22,22:e,23:r,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{13:73,19:20,20:21,21:22,22:e,23:r,24:a,26:u,28:i,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{14:[1,74]},t(kt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:n,36:l,37:s,38:h,39:y,40:f,41:b,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft}),t(kt,[2,14]),t(jt,[2,16],{12:[1,76]}),t(kt,[2,36],{12:[1,77]}),t(Rt,[2,19]),t(Rt,[2,20]),{25:[1,78]},{27:[1,79]},t(Rt,[2,23]),{35:80,75:81,76:S,77:k,79:T,80:C},{35:86,75:81,76:S,77:k,79:T,80:C},{35:87,75:81,76:S,77:k,79:T,80:C},{35:88,75:81,76:S,77:k,79:T,80:C},{35:89,75:81,76:S,77:k,79:T,80:C},{35:90,75:81,76:S,77:k,79:T,80:C},{35:91,75:81,76:S,77:k,79:T,80:C},{35:92,75:81,76:S,77:k,79:T,80:C},{35:93,75:81,76:S,77:k,79:T,80:C},{35:94,75:81,76:S,77:k,79:T,80:C},{35:95,75:81,76:S,77:k,79:T,80:C},{35:96,75:81,76:S,77:k,79:T,80:C},{35:97,75:81,76:S,77:k,79:T,80:C},{35:98,75:81,76:S,77:k,79:T,80:C},{35:99,75:81,76:S,77:k,79:T,80:C},{35:100,75:81,76:S,77:k,79:T,80:C},{35:101,75:81,76:S,77:k,79:T,80:C},{35:102,75:81,76:S,77:k,79:T,80:C},{35:103,75:81,76:S,77:k,79:T,80:C},{35:104,75:81,76:S,77:k,79:T,80:C},t(R,[2,59]),{35:105,75:81,76:S,77:k,79:T,80:C},{35:106,75:81,76:S,77:k,79:T,80:C},{35:107,75:81,76:S,77:k,79:T,80:C},{35:108,75:81,76:S,77:k,79:T,80:C},{35:109,75:81,76:S,77:k,79:T,80:C},{35:110,75:81,76:S,77:k,79:T,80:C},{35:111,75:81,76:S,77:k,79:T,80:C},{35:112,75:81,76:S,77:k,79:T,80:C},{35:113,75:81,76:S,77:k,79:T,80:C},{35:114,75:81,76:S,77:k,79:T,80:C},{35:115,75:81,76:S,77:k,79:T,80:C},{20:116,29:49,30:61,32:62,34:n,36:l,37:s,38:h,39:y,40:f,41:b,43:23,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft},{12:[1,118],33:[1,117]},{35:119,75:81,76:S,77:k,79:T,80:C},{35:120,75:81,76:S,77:k,79:T,80:C},{35:121,75:81,76:S,77:k,79:T,80:C},{35:122,75:81,76:S,77:k,79:T,80:C},{35:123,75:81,76:S,77:k,79:T,80:C},{35:124,75:81,76:S,77:k,79:T,80:C},{35:125,75:81,76:S,77:k,79:T,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(kt,[2,15]),t(jt,[2,17],{21:22,19:130,22:e,23:r,24:a,26:u,28:i}),t(kt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:r,24:a,26:u,28:i,34:n,36:l,37:s,38:h,39:y,40:f,41:b,44:v,45:w,46:N,47:O,48:P,49:I,50:W,51:X,52:q,53:H,54:Q,55:K,56:G,57:J,58:Z,59:$,60:tt,61:et,62:nt,63:st,64:rt,65:at,66:it,67:ot,68:lt,69:ct,70:ut,71:ht,72:dt,73:pt,74:ft}),t(Rt,[2,21]),t(Rt,[2,22]),t(R,[2,39]),t(re,[2,71],{75:81,35:132,76:S,77:k,79:T,80:C}),t(Lt,[2,73]),{78:[1,133]},t(Lt,[2,75]),t(Lt,[2,76]),t(R,[2,40]),t(R,[2,41]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(R,[2,52]),t(R,[2,53]),t(R,[2,54]),t(R,[2,55]),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,60]),t(R,[2,61]),t(R,[2,62]),t(R,[2,63]),t(R,[2,64]),t(R,[2,65]),t(R,[2,66]),t(R,[2,67]),t(R,[2,68]),t(R,[2,69]),t(R,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(gt,[2,28]),t(gt,[2,29]),t(gt,[2,30]),t(gt,[2,31]),t(gt,[2,32]),t(gt,[2,33]),t(gt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t(jt,[2,18]),t(kt,[2,38]),t(re,[2,72]),t(Lt,[2,74]),t(R,[2,24]),t(R,[2,35]),t(zt,[2,25]),t(zt,[2,26],{12:[1,138]}),t(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:d(function(m,x){if(x.recoverable)this.trace(m);else{var E=new Error(m);throw E.hash=x,E}},"parseError"),parse:d(function(m){var x=this,E=[0],_=[],D=[null],o=[],wt=this.table,p="",xt=0,ae=0,we=2,ie=1,Oe=o.slice.call(arguments,1),A=Object.create(this.lexer),vt={yy:{}};for(var Xt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Xt)&&(vt.yy[Xt]=this.yy[Xt]);A.setInput(m,vt.yy),vt.yy.lexer=A,vt.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var qt=A.yylloc;o.push(qt);var Pe=A.options&&A.options.ranges;typeof vt.yy.parseError=="function"?this.parseError=vt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function De(B){E.length=E.length-2*B,D.length=D.length-B,o.length=o.length-B}d(De,"popStack");function oe(){var B;return B=_.pop()||A.lex()||ie,typeof B!="number"&&(B instanceof Array&&(_=B,B=_.pop()),B=x.symbols_[B]||B),B}d(oe,"lex");for(var M,Et,V,Ht,Tt={},Mt,j,le,Bt;;){if(Et=E[E.length-1],this.defaultActions[Et]?V=this.defaultActions[Et]:((M===null||typeof M>"u")&&(M=oe()),V=wt[Et]&&wt[Et][M]),typeof V>"u"||!V.length||!V[0]){var Qt="";Bt=[];for(Mt in wt[Et])this.terminals_[Mt]&&Mt>we&&Bt.push("'"+this.terminals_[Mt]+"'");A.showPosition?Qt="Parse error on line "+(xt+1)+`:
2
2
  `+A.showPosition()+`
3
3
  Expecting `+Bt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":Qt="Parse error on line "+(xt+1)+": Unexpected "+(M==ie?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Qt,{text:A.match,token:this.terminals_[M]||M,line:A.yylineno,loc:qt,expected:Bt})}if(V[0]instanceof Array&&V.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Et+", token: "+M);switch(V[0]){case 1:E.push(M),D.push(A.yytext),o.push(A.yylloc),E.push(V[1]),M=null,ae=A.yyleng,p=A.yytext,xt=A.yylineno,qt=A.yylloc;break;case 2:if(j=this.productions_[V[1]][1],Tt.$=D[D.length-j],Tt._$={first_line:o[o.length-(j||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(j||1)].first_column,last_column:o[o.length-1].last_column},Pe&&(Tt._$.range=[o[o.length-(j||1)].range[0],o[o.length-1].range[1]]),Ht=this.performAction.apply(Tt,[p,ae,xt,vt.yy,V[1],D,o].concat(Oe)),typeof Ht<"u")return Ht;j&&(E=E.slice(0,-1*j*2),D=D.slice(0,-1*j),o=o.slice(0,-1*j)),E.push(this.productions_[V[1]][0]),D.push(Tt.$),o.push(Tt._$),le=wt[E[E.length-2]][E[E.length-1]],E.push(le);break;case 3:return!0}}return!0},"parse")},Re=(function(){var yt={EOF:1,parseError:d(function(x,E){if(this.yy.parser)this.yy.parser.parseError(x,E);else throw new Error(x)},"parseError"),setInput:d(function(m,x){return this.yy=x||this.yy||{},this._input=m,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var x=m.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},"input"),unput:d(function(m){var x=m.length,E=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var _=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),E.length-1&&(this.yylineno-=E.length-1);var D=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:E?(E.length===_.length?this.yylloc.first_column:0)+_[_.length-E.length].length-E[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[D[0],D[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(m){this.unput(this.match.slice(m))},"less"),pastInput:d(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var m=this.pastInput(),x=new Array(m.length+1).join("-");return m+this.upcomingInput()+`
@@ -0,0 +1 @@
1
+ import{U as a,C as n}from"./mermaid.core-DcgS6fFC.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
@@ -1 +1 @@
1
- import{_ as i}from"./mermaid.core-DB_TNiSG.js";var r=class{constructor(t){this.init=t,this.records=this.init()}static{i(this,"ImperativeState")}reset(){this.records=this.init()}};export{r as I};
1
+ import{_ as i}from"./mermaid.core-DcgS6fFC.js";var r=class{constructor(t){this.init=t,this.records=this.init()}static{i(this,"ImperativeState")}reset(){this.records=this.init()}};export{r as I};
@@ -1,4 +1,4 @@
1
- import{_ as e}from"./mermaid.core-DB_TNiSG.js";var l=e(()=>`
1
+ import{_ as e}from"./mermaid.core-DcgS6fFC.js";var l=e(()=>`
2
2
  /* Font Awesome icon styling - consolidated */
3
3
  .label-icon {
4
4
  display: inline-block;
@@ -1 +1 @@
1
- import{_ as i,j as l,n as d,o}from"./mermaid.core-DB_TNiSG.js";var x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),y=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",n)},"drawImage"),g=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),h=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),f=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{p as a,h as b,g as c,x as d,m as e,w as f,f as g,y as h};
1
+ import{_ as i,j as l,n as d,o}from"./mermaid.core-DcgS6fFC.js";var x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),y=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",n)},"drawImage"),g=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),h=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),f=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{p as a,h as b,g as c,x as d,m as e,w as f,f as g,y as h};